text
stringlengths
2
99.9k
meta
dict
package name func EmptyIfNil(input *string) string { if input == nil { return "" } return *input }
{ "pile_set_name": "Github" }
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License */ package com.android.server.backup.params; import android.os.ParcelFileDescriptor; public class AdbBackupParams extends AdbParams { public boolean includeApks; public boolean includeObbs; public boolean includeShared; public boolean doWidgets; public boolean allApps; public boolean includeSystem; public boolean doCompress; public boolean includeKeyValue; public String[] packages; public AdbBackupParams(ParcelFileDescriptor output, boolean saveApks, boolean saveObbs, boolean saveShared, boolean alsoWidgets, boolean doAllApps, boolean doSystem, boolean compress, boolean doKeyValue, String[] pkgList) { fd = output; includeApks = saveApks; includeObbs = saveObbs; includeShared = saveShared; doWidgets = alsoWidgets; allApps = doAllApps; includeSystem = doSystem; doCompress = compress; includeKeyValue = doKeyValue; packages = pkgList; } }
{ "pile_set_name": "Github" }
/* Copyright 2018 The Kubernetes Authors. 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. */ // +k8s:deepcopy-gen=package // +k8s:conversion-gen=k8s.io/client-go/pkg/apis/clientauthentication // +k8s:openapi-gen=true // +k8s:defaulter-gen=TypeMeta // +groupName=client.authentication.k8s.io package v1beta1 // import "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1"
{ "pile_set_name": "Github" }
๏ปฟ// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Text.Primitives.Tests.Encoding; namespace System.Text.Primitives.Benchmarks { public class EncoderHelper { public static IEnumerable<CodePoint> GetEncodingPerformanceTestData() { yield return new CodePoint(0x0, TextEncoderConstants.Utf8OneByteLastCodePoint); yield return new CodePoint(TextEncoderConstants.Utf8OneByteLastCodePoint + 1, TextEncoderConstants.Utf8TwoBytesLastCodePoint); yield return new CodePoint(TextEncoderConstants.Utf8TwoBytesLastCodePoint + 1, TextEncoderConstants.Utf8ThreeBytesLastCodePoint); yield return new CodePoint(TextEncoderConstants.Utf16HighSurrogateFirstCodePoint, TextEncoderConstants.Utf16LowSurrogateLastCodePoint); yield return new CodePoint(0x0, TextEncoderConstants.Utf8ThreeBytesLastCodePoint); yield return new CodePoint(0, 0, SpecialTestCases.AlternatingASCIIAndNonASCII); yield return new CodePoint(0, 0, SpecialTestCases.MostlyASCIIAndSomeNonASCII); } public static string GenerateStringData(int length, int minCodePoint, int maxCodePoint, SpecialTestCases special = SpecialTestCases.None) { if (special != SpecialTestCases.None) { if (special == SpecialTestCases.AlternatingASCIIAndNonASCII) return TextEncoderTestHelper.GenerateStringAlternatingASCIIAndNonASCII(length); if (special == SpecialTestCases.MostlyASCIIAndSomeNonASCII) return TextEncoderTestHelper.GenerateStringWithMostlyASCIIAndSomeNonASCII(length); return ""; } else { return TextEncoderTestHelper.GenerateValidString(length, minCodePoint, maxCodePoint); } } public enum SpecialTestCases { None, AlternatingASCIIAndNonASCII, MostlyASCIIAndSomeNonASCII } } }
{ "pile_set_name": "Github" }
'use strict'; var Uint8ArrayReader = require('./uint8ArrayReader'); function NodeBufferReader(data) { this.data = data; this.length = this.data.length; this.index = 0; this.zero = 0; } NodeBufferReader.prototype = new Uint8ArrayReader(); /** * @see DataReader.readData */ NodeBufferReader.prototype.readData = function(size) { this.checkOffset(size); var result = this.data.slice(this.zero + this.index, this.zero + this.index + size); this.index += size; return result; }; module.exports = NodeBufferReader;
{ "pile_set_name": "Github" }
<?php /** * @copyright Copyright (C) eZ Systems AS. All rights reserved. * @license For full copyright and license information view LICENSE file distributed with this source code. */ namespace eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor; /** * ForbiddenException value object visitor. */ class ForbiddenException extends Exception { /** * Returns HTTP status code. * * @return int */ protected function getStatus() { return 403; } }
{ "pile_set_name": "Github" }
[ { "created_at": "Thu Apr 06 15:28:43 +0000 2017", "id": 850007368138018817, "id_str": "850007368138018817", "text": "RT @TwitterDev: 1/ Today weโ€™re sharing our vision for the future of the Twitter API platform!\nhttps://t.co/XweGngmxlP", "truncated": false, "entities": { "hashtags": [], "symbols": [], "user_mentions": [ { "screen_name": "TwitterDev", "name": "TwitterDev", "id": 2244994945, "id_str": "2244994945", "indices": [ 3, 14 ] } ], "urls": [ { "url": "https://t.co/XweGngmxlP", "expanded_url": "https://cards.twitter.com/cards/18ce53wgo4h/3xo1c", "display_url": "cards.twitter.com/cards/18ce53wgโ€ฆ", "indices": [ 94, 117 ] } ] }, "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>", "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 6253282, "id_str": "6253282", "name": "Twitter API", "screen_name": "twitterapi", "location": "San Francisco, CA", "description": "The Real Twitter API. I tweet about API changes, service issues and happily answer questions about Twitter and our API. Don't get an answer? It's on my website.", "url": "http://t.co/78pYTvWfJd", "entities": { "url": { "urls": [ { "url": "http://t.co/78pYTvWfJd", "expanded_url": "https://dev.twitter.com", "display_url": "dev.twitter.com", "indices": [ 0, 22 ] } ] }, "description": { "urls": [] } }, "protected": false, "followers_count": 6172353, "friends_count": 46, "listed_count": 13091, "created_at": "Wed May 23 06:01:13 +0000 2007", "favourites_count": 26, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": true, "statuses_count": 3583, "lang": "en", "contributors_enabled": false, "is_translator": false, "is_translation_enabled": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/656927849/miyt9dpjz77sc0w3d4vj.png", "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/656927849/miyt9dpjz77sc0w3d4vj.png", "profile_background_tile": true, "profile_image_url": "http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png", "profile_image_url_https": "https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png", "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1431474710", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "has_extended_profile": false, "default_profile": false, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": false, "translator_type": "regular" }, "geo": null, "coordinates": null, "place": null, "contributors": null, "retweeted_status": { "created_at": "Thu Apr 06 15:24:15 +0000 2017", "id": 850006245121695744, "id_str": "850006245121695744", "text": "1/ Today weโ€™re sharing our vision for the future of the Twitter API platform!\nhttps://t.co/XweGngmxlP", "truncated": false, "entities": { "hashtags": [], "symbols": [], "user_mentions": [], "urls": [ { "url": "https://t.co/XweGngmxlP", "expanded_url": "https://cards.twitter.com/cards/18ce53wgo4h/3xo1c", "display_url": "cards.twitter.com/cards/18ce53wgโ€ฆ", "indices": [ 78, 101 ] } ] }, "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>", "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 2244994945, "id_str": "2244994945", "name": "TwitterDev", "screen_name": "TwitterDev", "location": "Internet", "description": "Your official source for Twitter Platform news, updates & events. Need technical help? Visit https://t.co/mGHnxZCxkt โŒจ๏ธ #TapIntoTwitter", "url": "https://t.co/66w26cua1O", "entities": { "url": { "urls": [ { "url": "https://t.co/66w26cua1O", "expanded_url": "https://dev.twitter.com/", "display_url": "dev.twitter.com", "indices": [ 0, 23 ] } ] }, "description": { "urls": [ { "url": "https://t.co/mGHnxZCxkt", "expanded_url": "https://twittercommunity.com/", "display_url": "twittercommunity.com", "indices": [ 93, 116 ] } ] } }, "protected": false, "followers_count": 465425, "friends_count": 1523, "listed_count": 1168, "created_at": "Sat Dec 14 04:35:55 +0000 2013", "favourites_count": 2098, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": true, "statuses_count": 3031, "lang": "en", "contributors_enabled": false, "is_translator": false, "is_translation_enabled": false, "profile_background_color": "FFFFFF", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_tile": false, "profile_image_url": "http://pbs.twimg.com/profile_images/530814764687949824/npQQVkq8_normal.png", "profile_image_url_https": "https://pbs.twimg.com/profile_images/530814764687949824/npQQVkq8_normal.png", "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1396995246", "profile_link_color": "0084B4", "profile_sidebar_border_color": "FFFFFF", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": false, "has_extended_profile": false, "default_profile": false, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": false, "translator_type": "regular" }, "geo": null, "coordinates": null, "place": null, "contributors": null, "is_quote_status": false, "retweet_count": 284, "favorite_count": 399, "favorited": false, "retweeted": false, "possibly_sensitive": false, "lang": "en" }, "is_quote_status": false, "retweet_count": 284, "favorite_count": 0, "favorited": false, "retweeted": false, "possibly_sensitive": false, "lang": "en" }, { "created_at": "Mon Apr 03 16:09:50 +0000 2017", "id": 848930551989915648, "id_str": "848930551989915648", "text": "RT @TwitterMktg: Starting today, businesses can request and share locations when engaging with people in Direct Messages. https://t.co/rpYnโ€ฆ", "truncated": false, "entities": { "hashtags": [], "symbols": [], "user_mentions": [ { "screen_name": "TwitterMktg", "name": "Twitter Marketing", "id": 357750891, "id_str": "357750891", "indices": [ 3, 15 ] } ], "urls": [] }, "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>", "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 6253282, "id_str": "6253282", "name": "Twitter API", "screen_name": "twitterapi", "location": "San Francisco, CA", "description": "The Real Twitter API. I tweet about API changes, service issues and happily answer questions about Twitter and our API. Don't get an answer? It's on my website.", "url": "http://t.co/78pYTvWfJd", "entities": { "url": { "urls": [ { "url": "http://t.co/78pYTvWfJd", "expanded_url": "https://dev.twitter.com", "display_url": "dev.twitter.com", "indices": [ 0, 22 ] } ] }, "description": { "urls": [] } }, "protected": false, "followers_count": 6172353, "friends_count": 46, "listed_count": 13091, "created_at": "Wed May 23 06:01:13 +0000 2007", "favourites_count": 26, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": true, "statuses_count": 3583, "lang": "en", "contributors_enabled": false, "is_translator": false, "is_translation_enabled": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/656927849/miyt9dpjz77sc0w3d4vj.png", "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/656927849/miyt9dpjz77sc0w3d4vj.png", "profile_background_tile": true, "profile_image_url": "http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png", "profile_image_url_https": "https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png", "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1431474710", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "has_extended_profile": false, "default_profile": false, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": false, "translator_type": "regular" }, "geo": null, "coordinates": null, "place": null, "contributors": null, "retweeted_status": { "created_at": "Mon Apr 03 16:05:05 +0000 2017", "id": 848929357519241216, "id_str": "848929357519241216", "text": "Starting today, businesses can request and share locations when engaging with people in Direct Messages. https://t.co/rpYndqWfQw", "truncated": false, "entities": { "hashtags": [], "symbols": [], "user_mentions": [], "urls": [ { "url": "https://t.co/rpYndqWfQw", "expanded_url": "https://cards.twitter.com/cards/5wzucr/3x700", "display_url": "cards.twitter.com/cards/5wzucr/3โ€ฆ", "indices": [ 105, 128 ] } ] }, "source": "<a href=\"https://ads.twitter.com\" rel=\"nofollow\">Twitter Ads</a>", "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 357750891, "id_str": "357750891", "name": "Twitter Marketing", "screen_name": "TwitterMktg", "location": "Twitter HQ ", "description": "Twitterโ€™s place for marketers, agencies, and creative thinkers โญ Bringing you insights, news, updates, and inspiration. Visit @TwitterAdsHelp for Ads support.", "url": "https://t.co/Tfo4moo92y", "entities": { "url": { "urls": [ { "url": "https://t.co/Tfo4moo92y", "expanded_url": "https://marketing.twitter.com", "display_url": "marketing.twitter.com", "indices": [ 0, 23 ] } ] }, "description": { "urls": [] } }, "protected": false, "followers_count": 924546, "friends_count": 661, "listed_count": 3893, "created_at": "Thu Aug 18 21:08:15 +0000 2011", "favourites_count": 1934, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": true, "statuses_count": 6329, "lang": "en", "contributors_enabled": false, "is_translator": false, "is_translation_enabled": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/662767273/jvmxdpdrplhxcw8yvkv2.png", "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/662767273/jvmxdpdrplhxcw8yvkv2.png", "profile_background_tile": true, "profile_image_url": "http://pbs.twimg.com/profile_images/800953549697888256/UlXXL5h5_normal.jpg", "profile_image_url_https": "https://pbs.twimg.com/profile_images/800953549697888256/UlXXL5h5_normal.jpg", "profile_banner_url": "https://pbs.twimg.com/profile_banners/357750891/1487188210", "profile_link_color": "19CF86", "profile_sidebar_border_color": "FFFFFF", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "has_extended_profile": false, "default_profile": false, "default_profile_image": false, "following": false, "follow_request_sent": false, "notifications": false, "translator_type": "none" }, "geo": null, "coordinates": null, "place": null, "contributors": null, "is_quote_status": false, "retweet_count": 111, "favorite_count": 162, "favorited": false, "retweeted": false, "possibly_sensitive": false, "lang": "en" }, "is_quote_status": false, "retweet_count": 111, "favorite_count": 0, "favorited": false, "retweeted": false, "possibly_sensitive": false, "lang": "en" } ]
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <dmxmodel name="Stairville Crown FX PAR77 6 Channel" parm1="36" parm2="1" parm3="1" DisplayAs="DMX" StringType="Single Color White" Transparency="0" PixelSize="2" ModelBrightness="" Antialias="1" StartSide="B" Dir="L" StrandNames="" NodeNames="Intensity red,Intensity green,Intensity blue,Intensity UV,Strobe effect,Strobe function,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," SourceVersion="2018.19" DmxPanDegOfRot="540" DmxPanChannel="0" DmxTiltChannel="0" DmxShutterChannel="0" DmxRedChannel="0" DmxGreenChannel="0" DmxBlueChannel="0" DmxWhiteChannel="0" DmxTiltDegOfRot="180" DmxStyle="Moving Head Bars" DmxPanOrient="0" DmxTiltOrient="0" DmxShutterOpen="1" DmxTiltMinLimit="0" DmxTiltMaxLimit="0" DmxPanMinLimit="0" DmxPanMaxLimit="0" DmxNodChannel="0" DmxNodOrient="0" DmxNodDegOfRot="0" DmxNodMinLimit="0" DmxNodMaxLimit="0" DmxJawChannel="0" DmxJawMinLimit="0" DmxJawMaxLimit="0" DmxEyeBrtChannel="0" DmxEyeUDChannel="0" DmxEyeUDMinLimit="0" DmxEyeUDMaxLimit="0" DmxEyeLRChannel="0" DmxEyeLRMinLimit="0" DmxEyeLRMaxLimit="0"> <stateInfo Name="presets" CustomColors="1" Type = "SingleNode" s1="Intensity red" s1-Name="all_leds_off" s1-Color="#020202" s2="Intensity red" s2-Name="auto_programme_1_if_channel_2_eq_0_250_sound_programme_1_if_channel_2_eq_251_255" s2-Color="#0C0C0C" s3="Intensity red" s3-Name="auto_programme_2_if_channel_2_eq_0_250_sound_programme_2_if_channel_2_eq_251_255" s3-Color="#1B1B1B" s4="Intensity red" s4-Name="auto_programme_3_if_channel_2_eq_0_250_sound_programme_3_if_channel_2_eq_251_255" s4-Color="#292929" s5="Intensity red" s5-Name="auto_programme_4_if_channel_2_eq_0_250_sound_programme_4_if_channel_2_eq_251_255" s5-Color="#383838" s6="Intensity red" s6-Name="auto_programme_5_if_channel_2_eq_0_250_sound_programme_5_if_channel_2_eq_251_255" s6-Color="#464646" s7="Intensity red" s7-Name="auto_programme_6_if_channel_2_eq_0_250_sound_programme_6_if_channel_2_eq_251_255" s7-Color="#555555" s8="Intensity red" s8-Name="auto_programme_7_if_channel_2_eq_0_250_sound_programme_7_if_channel_2_eq_251_255" s8-Color="#636363" s9="Intensity red" s9-Name="auto_programme_8_if_channel_2_eq_0_250_sound_programme_8_if_channel_2_eq_251_255" s9-Color="#727272" s10="Intensity red" s10-Name="auto_programme_9_if_channel_2_eq_0_250_sound_programme_9_if_channel_2_eq_251_255" s10-Color="#808080" s11="Intensity red" s11-Name="auto_programme_10_if_channel_2_eq_0_250_sound_programme_10_if_channel_2_eq_251_255" s11-Color="#8F8F8F" s12="Intensity red" s12-Name="auto_programme_11_if_channel_2_eq_0_250_sound_programme_11_if_channel_2_eq_251_255" s12-Color="#9D9D9D" s13="Intensity red" s13-Name="auto_programme_12_if_channel_2_eq_0_250_sound_programme_12_if_channel_2_eq_251_255" s13-Color="#ACACAC" s14="Intensity red" s14-Name="auto_programme_13_if_channel_2_eq_0_250_sound_programme_13_if_channel_2_eq_251_255" s14-Color="#BABABA" s15="Intensity red" s15-Name="auto_programme_14_if_channel_2_eq_0_250_sound_programme_13_if_channel_2_eq_251_255" s15-Color="#C9C9C9" s16="Intensity red" s16-Name="auto_programme_15_if_channel_2_eq_0_250_sound_programme_13_if_channel_2_eq_251_255" s16-Color="#D7D7D7" s17="Intensity red" s17-Name="auto_programme_16_if_channel_2_eq_0_250_sound_programme_13_if_channel_2_eq_251_255" s17-Color="#E6E6E6" s18="Intensity red" s18-Name="auto_programme_17_if_channel_2_eq_0_250_sound_programme_13_if_channel_2_eq_251_255" s18-Color="#F6F6F6" s19="Intensity green" s19-Name="programme_speed_increasing" s19-Color="#7D7D7D" s20="Intensity green" s20-Name="sound-controlled_mode_specifies_the_auto_programme_sound_programme_setting_for_channel_1_" s20-Color="#FDFDFD" s21="Strobe function" s21-Name="strobe_effect_off" s21-Color="#020202" s22="Strobe function" s22-Name="strobe_effect_increasing_speed_all_colour_leds" s22-Color="#808080" s23="Strobe function" s23-Name="strobe_effect_sound_mode_all_colour_leds" s23-Color="#FDFDFD" s24="Node8" s24-Name="no_function" s24-Color="#020202" s25="Node8" s25-Name="strobe_led_ring_constantly_on" s25-Color="#0D0D0D" s26="Node8" s26-Name="strobe_effect_increasing_speed_strobe_led_ring" s26-Color="#878787" s27="Node8" s27-Name="strobe_effect_sound_mode_strobe_led_ring" s27-Color="#FDFDFD" s28="Node16" s28-Name="strobe_effect_off" s28-Color="#020202" s29="Node16" s29-Name="strobe_effect_increasing_speed_all_colour_leds" s29-Color="#808080" s30="Node16" s30-Name="strobe_effect_sound_mode_all_colour_leds" s30-Color="#FDFDFD" s31="Node17" s31-Name="no_function" s31-Color="#020202" s32="Node17" s32-Name="strobe_led_ring_constantly_on" s32-Color="#0D0D0D" s33="Node17" s33-Name="strobe_effect_increasing_speed_strobe_led_ring" s33-Color="#878787" s34="Node17" s34-Name="strobe_effect_sound_mode_strobe_led_ring" s34-Color="#FDFDFD" s35="Node22" s35-Name="strobe_effect_off_zone_1" s35-Color="#020202" s36="Node22" s36-Name="strobe_effect_increasing_speed_zone_1" s36-Color="#808080" s37="Node22" s37-Name="strobe_effect_sound_mode_zone_1" s37-Color="#FDFDFD" s38="Node27" s38-Name="strobe_effect_off_zone_2" s38-Color="#020202" s39="Node27" s39-Name="strobe_effect_increasing_speed_zone_2" s39-Color="#808080" s40="Node27" s40-Name="strobe_effect_sound_mode_zone_2" s40-Color="#FDFDFD" /> </dmxmodel>
{ "pile_set_name": "Github" }
๏ปฟ<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <LocalDebuggerWorkingDirectory>$(SolutionDir)\build\bin\$(Configuration)\</LocalDebuggerWorkingDirectory> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <LocalDebuggerWorkingDirectory>$(SolutionDir)\build\bin\$(Configuration)\</LocalDebuggerWorkingDirectory> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> </PropertyGroup> </Project>
{ "pile_set_name": "Github" }
heading --- heading =================================== not a heading ----------------------------------- text
{ "pile_set_name": "Github" }
import {fromNowPipeInjectables} from './FromNowPipe'; export var utilInjectables: Array<any> = [ fromNowPipeInjectables ];
{ "pile_set_name": "Github" }
bookdown::word_document2: default
{ "pile_set_name": "Github" }
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/dcmemory.h // Purpose: wxMemoryDC class // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_DCMEMORY_H_ #define _WX_DCMEMORY_H_ #include "wx/osx/dcclient.h" class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPaintDCImpl { public: wxMemoryDCImpl( wxMemoryDC *owner ); wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap ); wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); virtual ~wxMemoryDCImpl(); virtual void DoGetSize( int *width, int *height ) const wxOVERRIDE; virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const wxOVERRIDE { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect); } virtual void DoSelect(const wxBitmap& bitmap) wxOVERRIDE; virtual const wxBitmap& GetSelectedBitmap() const wxOVERRIDE { return m_selected; } virtual wxBitmap& GetSelectedBitmap() wxOVERRIDE { return m_selected; } private: void Init(); wxBitmap m_selected; wxDECLARE_CLASS(wxMemoryDCImpl); wxDECLARE_NO_COPY_CLASS(wxMemoryDCImpl); }; #endif // _WX_DCMEMORY_H_
{ "pile_set_name": "Github" }
/************************************************************************ Modifications Copyright 2017-2019 eBay Inc. Author/Developer(s): Jung-Sang Ahn Original Copyright: See URL: https://github.com/greensky00/event_awaiter (v0.1.1) 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 https://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. **************************************************************************/ #pragma once #include <atomic> #include <condition_variable> #include <mutex> class EventAwaiter { private: enum class AS { idle = 0x0, ready = 0x1, waiting = 0x2, done = 0x3 }; public: EventAwaiter() : status(AS::idle) {} void reset() { status.store(AS::idle); } void wait() { wait_us(0); } void wait_ms(size_t time_ms) { wait_us(time_ms * 1000); } void wait_us(size_t time_us) { AS expected = AS::idle; if (status.compare_exchange_strong(expected, AS::ready)) { // invoke() has not been invoked yet, wait for it. std::unique_lock<std::mutex> l(cvLock); expected = AS::ready; if (status.compare_exchange_strong(expected, AS::waiting)) { if (time_us) { cv.wait_for(l, std::chrono::microseconds(time_us)); } else { cv.wait(l); } status.store(AS::done); } else { // invoke() has grabbed `cvLock` earlier than this. } } else { // invoke() already has been called earlier than this. } } void invoke() { AS expected = AS::idle; if (status.compare_exchange_strong(expected, AS::done)) { // wait() has not been invoked yet, do nothing. return; } std::unique_lock<std::mutex> l(cvLock); expected = AS::ready; if (status.compare_exchange_strong(expected, AS::done)) { // wait() has been called earlier than invoke(), // but invoke() has grabbed `cvLock` earlier than wait(). // Do nothing. } else { // wait() is waiting for ack. cv.notify_all(); } } private: std::atomic<AS> status; std::mutex cvLock; std::condition_variable cv; };
{ "pile_set_name": "Github" }
ka: account: show: change_credentials_link: แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒ›แƒแƒœแƒแƒชแƒ”แƒ›แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒชแƒ•แƒšแƒ erase_account_link: แƒฉแƒ”แƒ›แƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒฌแƒแƒจแƒšแƒ finish_verification: แƒ•แƒ”แƒ แƒ˜แƒคแƒ˜แƒ™แƒแƒชแƒ˜แƒ˜แƒก แƒ“แƒแƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒ notifications: แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ organization_name_label: แƒแƒ แƒ’แƒแƒœแƒ˜แƒ–แƒแƒชแƒ˜แƒ˜แƒก แƒ“แƒแƒกแƒแƒฎแƒ”แƒšแƒ”แƒ‘แƒ organization_responsible_name_placeholder: แƒแƒ แƒ’แƒแƒœแƒ˜แƒ–แƒแƒชแƒ˜แƒ˜แƒก/แƒฏแƒ’แƒฃแƒคแƒ˜แƒก แƒฌแƒแƒ แƒ›แƒแƒ›แƒแƒ“แƒ’แƒ”แƒœแƒ”แƒšแƒ˜ personal: แƒžแƒ”แƒ แƒกแƒแƒœแƒแƒšแƒฃแƒ แƒ˜ แƒ›แƒแƒœแƒแƒชแƒ”แƒ›แƒ”แƒ‘แƒ˜ phone_number_label: แƒขแƒ”แƒšแƒ”แƒคแƒแƒœแƒ˜แƒก แƒœแƒแƒ›แƒ”แƒ แƒ˜ public_interests_my_title_list: แƒ˜แƒ› แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒ˜แƒก แƒขแƒ”แƒ’แƒ”แƒ‘แƒ˜, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒกแƒแƒช แƒ—แƒฅแƒ•แƒ”แƒœ แƒ›แƒ˜แƒฐแƒงแƒ•แƒ”แƒ‘แƒ˜แƒ— public_interests_user_title_list: แƒ˜แƒ› แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒ˜แƒก แƒขแƒ”แƒ’แƒ”แƒ‘แƒ˜, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒกแƒแƒช แƒ”แƒก แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ›แƒ˜แƒฐแƒงแƒ•แƒ”แƒ‘แƒ save_changes_submit: แƒชแƒ•แƒšแƒ˜แƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒœแƒแƒฎแƒ•แƒ recommendations: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ title: แƒฉแƒ”แƒ›แƒ˜ แƒžแƒ แƒแƒคแƒ˜แƒšแƒ˜ user_permission_debates: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ user_permission_info: แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒ— แƒ—แƒฅแƒ•แƒ”แƒœ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ—... user_permission_proposal: แƒแƒฎแƒแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ user_permission_support_proposal: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ user_permission_title: แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ user_permission_verify: แƒงแƒ•แƒ”แƒšแƒ แƒคแƒฃแƒœแƒฅแƒชแƒ˜แƒ˜แƒ— แƒกแƒแƒ แƒ’แƒ”แƒ‘แƒšแƒแƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ’แƒแƒ˜แƒแƒ แƒ”แƒ— แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ’แƒแƒ“แƒแƒ›แƒแƒฌแƒ›แƒ”แƒ‘แƒ. user_permission_verify_info: "* แƒ›แƒฎแƒแƒšแƒแƒ“ แƒแƒฆแƒฌแƒ”แƒ แƒแƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ” แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก." user_permission_votes: แƒกแƒแƒ‘แƒแƒšแƒแƒ แƒ™แƒ”แƒœแƒญแƒ˜แƒกแƒงแƒ แƒแƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ username_label: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒกแƒแƒฎแƒ”แƒšแƒ˜ verified_account: แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜ แƒ’แƒแƒ“แƒแƒ›แƒแƒฌแƒ›แƒ”แƒ‘แƒฃแƒšแƒ˜แƒ verify_my_account: แƒฉแƒ”แƒ›แƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ“แƒแƒ“แƒแƒกแƒขแƒฃแƒ แƒ”แƒ‘แƒ application: close: แƒ“แƒแƒฎแƒฃแƒ แƒ•แƒ menu: แƒ›แƒ”แƒœแƒ˜แƒฃ comments: comments_closed: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ แƒ“แƒแƒฎแƒฃแƒ แƒฃแƒšแƒ˜แƒ verified_only: แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก %{verify_account} comment: admin: แƒแƒ“แƒ›แƒ˜แƒœแƒ˜แƒกแƒขแƒ แƒแƒขแƒแƒ แƒ˜ author: แƒแƒ•แƒขแƒแƒ แƒ˜ deleted: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ moderator: แƒ›แƒแƒ“แƒ”แƒ แƒแƒขแƒแƒ แƒ˜ responses: zero: แƒžแƒแƒกแƒฃแƒฎแƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒžแƒแƒกแƒฃแƒฎแƒ˜ other: "%{count} แƒžแƒแƒกแƒฃแƒฎแƒ˜" responses_show: zero: แƒžแƒแƒกแƒฃแƒฎแƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: "1 แƒžแƒแƒกแƒฃแƒฎแƒ˜ (แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ)" other: "%{count} แƒžแƒแƒกแƒฃแƒฎแƒ˜ (แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ)" responses_collapse: zero: แƒžแƒแƒกแƒฃแƒฎแƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: "1 แƒžแƒแƒกแƒฃแƒฎแƒ˜ (แƒแƒ™แƒ”แƒชแƒ•แƒ)" other: "%{count} แƒžแƒแƒกแƒฃแƒฎแƒ˜ (แƒ“แƒแƒฎแƒฃแƒ แƒ•แƒ)" user_deleted: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ votes: zero: แƒฎแƒ›แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒฎแƒ›แƒ other: "%{count} แƒฎแƒ›แƒ" form: comment_as_admin: แƒ“แƒแƒขแƒแƒ•แƒ”แƒ— แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜, แƒ แƒแƒ’แƒแƒ แƒช แƒแƒ“แƒ›แƒ˜แƒœแƒ˜แƒกแƒขแƒ แƒแƒขแƒแƒ แƒ›แƒ comment_as_moderator: แƒ“แƒแƒขแƒแƒ•แƒ”แƒ— แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜, แƒ แƒแƒ’แƒแƒ แƒช แƒ›แƒแƒ“แƒ”แƒ แƒแƒขแƒแƒ แƒ›แƒ leave_comment: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜แƒก แƒ“แƒแƒขแƒแƒ•แƒ”แƒ‘แƒ orders: most_voted: แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒ›แƒ”แƒขแƒ˜ แƒฎแƒ›แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” newest: แƒฃแƒแƒฎแƒšแƒ”แƒกแƒ˜ แƒžแƒ˜แƒ แƒ•แƒ”แƒš แƒ แƒ˜แƒ’แƒจแƒ˜ oldest: แƒฃแƒซแƒ•แƒ”แƒšแƒ”แƒกแƒ˜ แƒžแƒ˜แƒ แƒ•แƒ”แƒš แƒ แƒ˜แƒ’แƒจแƒ˜ most_commented: แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒ›แƒ”แƒขแƒ˜ แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” select_order: แƒ“แƒแƒšแƒแƒ’แƒ”แƒ‘แƒ show: return_to_commentable: "แƒฃแƒ™แƒแƒœ แƒ“แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒ " comments_helper: comment_button: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜แƒก แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒ comment_link: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ comments_title: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ reply_button: แƒžแƒแƒกแƒฃแƒฎแƒ˜แƒก แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒ reply_link: แƒžแƒแƒกแƒฃแƒฎแƒ˜ debates: create: form: submit_button: แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒ“แƒแƒฌแƒงแƒ”แƒ‘แƒ debate: comments: zero: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ other: "%{count} แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜" votes: zero: แƒฎแƒ›แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒฎแƒ›แƒ other: "%{count} แƒฎแƒ›แƒ" edit: editing: แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ form: submit_button: แƒชแƒ•แƒšแƒ˜แƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒœแƒแƒฎแƒ•แƒ show_link: แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ form: debate_title: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒกแƒแƒฎแƒ”แƒšแƒ”แƒ‘แƒ tags_instructions: แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒ›แƒแƒœแƒ˜แƒจแƒ•แƒœแƒ. tags_placeholder: "แƒจแƒ”แƒ˜แƒงแƒ•แƒแƒœแƒ”แƒ— แƒ˜แƒก แƒขแƒ”แƒ’แƒ”แƒ‘แƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ—แƒ แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒแƒช แƒ’แƒกแƒฃแƒ แƒ—, แƒ’แƒแƒ›แƒแƒงแƒแƒ•แƒ˜แƒ— แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒ›แƒซแƒ˜แƒ›แƒ˜แƒ— (',')" index: featured_debates: แƒ’แƒแƒ›แƒแƒ แƒฉแƒ”แƒฃแƒšแƒ˜ orders: confidence_score: แƒ›แƒแƒฆแƒแƒšแƒ˜ แƒจแƒ”แƒคแƒแƒกแƒ”แƒ‘แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” created_at: แƒฃแƒแƒฎแƒšแƒ”แƒกแƒ˜ hot_score: แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒแƒฅแƒขแƒ˜แƒฃแƒ แƒ˜ most_commented: แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒ›แƒ”แƒขแƒ˜ แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” relevance: แƒจแƒ”แƒกแƒแƒ‘แƒแƒ›แƒ˜แƒกแƒแƒ‘แƒ recommendations: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ recommendations: without_results: แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒ˜แƒœแƒขแƒ”แƒ แƒ”แƒกแƒ”แƒ‘แƒ—แƒแƒœ แƒแƒฎแƒšแƒแƒก แƒ›แƒงแƒแƒคแƒ˜ แƒแƒ แƒชแƒ”แƒ แƒ—แƒ˜ แƒ“แƒ”แƒ‘แƒแƒขแƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ without_interests: แƒ›แƒ˜แƒฐแƒงแƒ”แƒ•แƒ˜แƒ— แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒก, แƒ แƒแƒ—แƒ แƒจแƒ”แƒ•แƒซแƒšแƒแƒ— แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒ›แƒฃแƒจแƒแƒ•แƒ”แƒ‘แƒ/แƒ’แƒแƒฌแƒ”แƒ•แƒ disable: "แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒแƒฆแƒแƒ  แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ, แƒ—แƒฃ แƒ’แƒแƒแƒฅแƒ แƒแƒ‘แƒ— แƒ›แƒแƒ—. แƒ›แƒแƒ—แƒ˜ แƒฎแƒ”แƒšแƒแƒฎแƒšแƒ แƒฉแƒแƒ แƒ—แƒ•แƒ 'แƒฉแƒ”แƒ›แƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก' แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜แƒ“แƒแƒœ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ—" actions: success: "แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒ’แƒแƒ›แƒแƒ แƒ—แƒฃแƒšแƒ˜แƒ" error: "แƒจแƒ”แƒชแƒ“แƒแƒ›แƒ! แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒ’แƒแƒ“แƒแƒฎแƒ•แƒ˜แƒ“แƒ”แƒ— 'แƒฉแƒ”แƒ›แƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก' แƒ’แƒ•แƒ”แƒ แƒ“แƒ–แƒ” แƒ“แƒ แƒฎแƒ”แƒšแƒ˜แƒ— แƒ’แƒแƒ›แƒแƒ แƒ—แƒแƒ— แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜" search_form: button: แƒซแƒ”แƒ‘แƒœแƒ placeholder: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒซแƒ”แƒ‘แƒœแƒ... title: แƒซแƒ”แƒ‘แƒœแƒ search_results: one: " แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒ“แƒ”แƒก แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒแƒก <strong>%{search_term}</strong>" other: " แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒ“แƒ”แƒก แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒแƒก <strong>%{search_term}</strong>" select_order: แƒ“แƒแƒšแƒแƒ’แƒ”แƒ‘แƒ start_debate: แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒ“แƒแƒฌแƒงแƒ”แƒ‘แƒ title: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ section_header: icon_alt: แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒœแƒ˜แƒจแƒแƒœแƒ˜ title: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ help: แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ section_footer: title: แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ description: แƒ“แƒแƒ˜แƒฌแƒงแƒ”แƒ— แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ แƒ“แƒ แƒ’แƒแƒฃแƒ–แƒ˜แƒแƒ แƒ”แƒ— แƒกแƒฎแƒ•แƒ”แƒ‘แƒก แƒ›แƒแƒกแƒแƒ–แƒ แƒ”แƒ‘แƒ”แƒ‘แƒ˜ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ•แƒแƒœ แƒกแƒแƒ™แƒ˜แƒ—แƒฎแƒ”แƒ‘แƒ–แƒ”. help_text_1: "แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒกแƒ˜แƒ•แƒ แƒชแƒ” แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒแƒก แƒแƒซแƒšแƒ”แƒ•แƒก แƒœแƒ”แƒ‘แƒ˜แƒกแƒ›แƒ˜แƒ”แƒ  แƒ“แƒแƒ˜แƒœแƒขแƒ”แƒ แƒ”แƒกแƒ”แƒ‘แƒฃแƒš แƒ›แƒฎแƒแƒ แƒ”แƒก แƒ’แƒแƒแƒ–แƒ˜แƒแƒ แƒแƒก แƒกแƒแƒ™แƒฃแƒ—แƒแƒ แƒ˜ แƒจแƒ”แƒฎแƒ”แƒ“แƒฃแƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜ แƒ“แƒ แƒ›แƒแƒ˜แƒกแƒ›แƒ˜แƒœแƒแƒก แƒกแƒฎแƒ•แƒ˜แƒกแƒ˜ แƒแƒ–แƒ แƒ˜. " help_text_2: 'แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒ’แƒแƒ˜แƒแƒ แƒ”แƒ— แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ %{org}-แƒ–แƒ”. แƒแƒ›แƒ˜แƒ— แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒšแƒแƒ‘แƒ แƒ’แƒ”แƒฅแƒœแƒ”แƒ‘แƒแƒ—, แƒ“แƒแƒแƒคแƒ˜แƒฅแƒกแƒ˜แƒ แƒแƒ— แƒ›แƒแƒกแƒแƒ–แƒ แƒ”แƒ‘แƒ แƒ›แƒแƒชแƒ”แƒ›แƒฃแƒš แƒกแƒแƒ™แƒ˜แƒ—แƒฎแƒ–แƒ” แƒ“แƒ แƒจแƒ”แƒแƒคแƒแƒกแƒแƒœ แƒ˜แƒกแƒ˜แƒœแƒ˜ "แƒ•แƒ”แƒ—แƒแƒœแƒฎแƒ›แƒ”แƒ‘แƒ˜" แƒแƒœ "แƒแƒ  แƒ•แƒ”แƒ—แƒแƒœแƒฎแƒ›แƒ”แƒ‘แƒ˜" แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ–แƒ” แƒ“แƒแƒญแƒ”แƒ แƒ˜แƒ—.' new: form: submit_button: แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒ“แƒแƒฌแƒงแƒ”แƒ‘แƒ info: 'แƒ—แƒฃ แƒ’แƒกแƒฃแƒ แƒ— แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ’แƒแƒ™แƒ”แƒ—แƒ”แƒ‘แƒ, แƒ—แƒฅแƒ•แƒ”แƒœ แƒแƒ แƒแƒกแƒฌแƒแƒ  แƒแƒ“แƒ’แƒ˜แƒšแƒแƒก แƒแƒฆแƒ›แƒแƒฉแƒœแƒ“แƒ˜แƒ—, แƒ’แƒแƒ“แƒแƒ“แƒ˜แƒ— แƒจแƒ”แƒ›แƒ“แƒ”แƒ’ แƒ‘แƒ›แƒฃแƒšแƒ–แƒ”: %{info_link}.' info_link: แƒแƒฎแƒแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ more_info: แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ recommendation_four: แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ— แƒ”แƒก แƒกแƒ˜แƒ•แƒ แƒชแƒ” แƒกแƒแƒ™แƒฃแƒ—แƒแƒ แƒ˜ แƒแƒ–แƒ แƒ˜แƒก แƒ’แƒแƒ›แƒแƒกแƒแƒฎแƒแƒขแƒแƒ•แƒแƒ“. recommendation_one: แƒœแƒฃ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ— แƒ›แƒฎแƒแƒšแƒแƒ“ แƒ“แƒ˜แƒ“ แƒแƒกแƒแƒ”แƒ‘แƒก แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒ“แƒแƒกแƒแƒกแƒแƒ—แƒแƒฃแƒ แƒ”แƒ‘แƒšแƒแƒ“ แƒแƒœ แƒฌแƒ˜แƒœแƒแƒ“แƒแƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒ“แƒ’แƒ”แƒœแƒแƒ“. recommendation_three: แƒ›แƒฌแƒ•แƒแƒ•แƒ” แƒ™แƒ แƒ˜แƒขแƒ˜แƒ™แƒ แƒ›แƒ˜แƒกแƒแƒกแƒแƒšแƒ›แƒ”แƒ‘แƒ”แƒšแƒ˜แƒ. แƒ”แƒก แƒแƒ แƒ˜แƒก แƒกแƒ˜แƒ•แƒ แƒชแƒ” แƒกแƒแƒ™แƒฃแƒ—แƒแƒ แƒ˜ แƒแƒ–แƒ แƒ˜แƒก แƒ’แƒแƒ›แƒแƒกแƒแƒฎแƒแƒขแƒแƒ•แƒแƒ“. แƒ—แƒฃแƒ›แƒชแƒ, แƒฉแƒ•แƒ”แƒœ แƒ’แƒ˜แƒ แƒฉแƒ”แƒ•แƒ—, แƒ แƒแƒ› แƒ“แƒแƒ˜แƒชแƒ•แƒแƒ— แƒ—แƒแƒ•แƒแƒ–แƒ˜แƒแƒœแƒแƒ‘แƒ แƒ“แƒ แƒกแƒแƒ–แƒ แƒ˜แƒแƒœแƒแƒ‘แƒ. แƒ›แƒกแƒแƒคแƒšแƒ˜แƒ แƒ’แƒแƒชแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒ— แƒฃแƒ™แƒ”แƒ—แƒ”แƒกแƒ˜ แƒแƒ“แƒ’แƒ˜แƒšแƒ˜แƒ แƒแƒ› แƒฆแƒ˜แƒ แƒกแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒ—. recommendation_two: แƒœแƒ”แƒ‘แƒ˜แƒกแƒ›แƒ˜แƒ”แƒ แƒ˜ แƒ“แƒ”แƒ‘แƒแƒขแƒ˜, แƒแƒœ แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒแƒ แƒแƒ™แƒแƒœแƒแƒœแƒ˜แƒ”แƒ แƒ˜ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒžแƒ แƒแƒ•แƒแƒชแƒ˜แƒ แƒ”แƒ‘แƒแƒก แƒแƒฎแƒ“แƒ”แƒœแƒก, แƒฌแƒแƒ˜แƒจแƒšแƒ”แƒ‘แƒ. แƒ“แƒแƒฃแƒจแƒ•แƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒกแƒแƒ“แƒ”แƒ‘แƒแƒขแƒ แƒกแƒ˜แƒ•แƒ แƒชแƒ˜แƒก แƒกแƒแƒ‘แƒแƒขแƒแƒŸแƒ˜แƒช. แƒงแƒ•แƒ”แƒšแƒ แƒกแƒฎแƒ•แƒ แƒ“แƒแƒœแƒแƒ แƒฉแƒ”แƒœแƒ˜ แƒ“แƒแƒจแƒ•แƒ”แƒ‘แƒฃแƒšแƒ˜แƒ. recommendations_title: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฅแƒ›แƒœแƒ”แƒšแƒแƒ“ start_new: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒฌแƒงแƒ”แƒ‘แƒ show: author_deleted: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ comments: zero: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ other: "%{count} แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜" comments_title: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ edit_debate_link: แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ flag: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ—แƒ แƒ’แƒแƒ แƒ™แƒ•แƒ”แƒฃแƒšแƒ›แƒ แƒœแƒแƒฌแƒ˜แƒšแƒ›แƒ แƒ”แƒก แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ แƒ’แƒแƒแƒกแƒแƒฉแƒ˜แƒ•แƒ แƒ. share: แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ author: แƒแƒ•แƒขแƒแƒ แƒ˜ update: form: submit_button: แƒชแƒ•แƒšแƒ˜แƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒœแƒแƒฎแƒ•แƒ errors: messages: user_not_found: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ invalid_date_range: "แƒ—แƒแƒ แƒ˜แƒฆแƒ—แƒ แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒ˜ แƒแƒ แƒแƒกแƒฌแƒแƒ แƒ˜แƒ" form: accept_terms: แƒ•แƒ”แƒ—แƒแƒœแƒฎแƒ›แƒ”แƒ‘แƒ˜ %{policy} แƒ“แƒ %{conditions} accept_terms_title: แƒ•แƒ”แƒ—แƒแƒœแƒฎแƒ›แƒ”แƒ‘แƒ˜ แƒ™แƒแƒœแƒคแƒ˜แƒ“แƒ”แƒœแƒชแƒ˜แƒแƒšแƒฃแƒ แƒแƒ‘แƒ˜แƒก แƒžแƒแƒšแƒ˜แƒขแƒ˜แƒ™แƒแƒก แƒ“แƒ แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ˜แƒก แƒฌแƒ”แƒกแƒ”แƒ‘แƒกแƒ แƒ“แƒ แƒžแƒ˜แƒ แƒแƒ‘แƒ”แƒ‘แƒก conditions: แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ˜แƒก แƒฌแƒ”แƒกแƒ”แƒ‘แƒ˜ แƒ“แƒ แƒžแƒ˜แƒ แƒแƒ‘แƒ”แƒ‘แƒ˜ debate: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ direct_message: แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ error: แƒจแƒ”แƒชแƒ“แƒแƒ›แƒ errors: แƒจแƒ”แƒชแƒ“แƒแƒ›แƒ”แƒ‘แƒ˜ not_saved: "%{resource}-แƒ˜แƒก แƒ“แƒแƒ›แƒแƒฎแƒกแƒแƒ•แƒ แƒ”แƒ‘แƒ แƒ•แƒ”แƒ  แƒ›แƒแƒฎแƒ”แƒ แƒฎแƒ“แƒ. <br>แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒจแƒ”แƒแƒ›แƒแƒฌแƒ›แƒแƒ— แƒ›แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ˜ แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜:" policy: แƒ™แƒแƒœแƒคแƒ˜แƒ“แƒ”แƒœแƒชแƒ˜แƒแƒšแƒฃแƒ แƒแƒ‘แƒ˜แƒก แƒžแƒแƒšแƒ˜แƒขแƒ˜แƒ™แƒ banner: แƒ‘แƒแƒœแƒ”แƒ แƒ˜ proposal: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ proposal_notification: "แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ" budget/investment: แƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ budget/group: แƒกแƒแƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ แƒฏแƒ’แƒฃแƒคแƒ˜ budget/heading: แƒกแƒแƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ แƒ แƒฃแƒ‘แƒ แƒ˜แƒ™แƒ geozone: แƒ’แƒ”แƒแƒ’แƒ แƒแƒคแƒ˜แƒฃแƒšแƒ˜ แƒ–แƒแƒœแƒ legislation/draft_version: แƒ›แƒแƒœแƒแƒฎแƒแƒ–แƒ˜ legislation/process: แƒžแƒ แƒแƒชแƒ”แƒกแƒ˜ legislation/question: แƒจแƒ”แƒ™แƒ˜แƒ—แƒฎแƒ•แƒ poll/shift: แƒชแƒ•แƒšแƒ poll/question/answer: แƒžแƒแƒกแƒฃแƒฎแƒ˜ user: แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜ verification/sms: แƒขแƒ”แƒšแƒ”แƒคแƒแƒœแƒ˜ signature_sheet: แƒฎแƒ”แƒšแƒ›แƒแƒฌแƒ”แƒ แƒ˜แƒก แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜ document: แƒ“แƒแƒ™แƒฃแƒ›แƒ”แƒœแƒขแƒ˜ topic: แƒกแƒแƒ™แƒ˜แƒ—แƒฎแƒ˜ image: แƒคแƒแƒขแƒแƒกแƒฃแƒ แƒแƒ—แƒ˜ local_census_record: แƒแƒ“แƒ’แƒ˜แƒšแƒแƒ‘แƒ แƒ˜แƒ•แƒ˜ แƒ›แƒแƒกแƒแƒฎแƒšแƒ”แƒแƒ‘แƒ˜แƒก แƒแƒฆแƒฌแƒ”แƒ แƒ˜แƒก แƒฉแƒแƒœแƒแƒฌแƒ”แƒ แƒ˜ local_census_records/import: แƒแƒ“แƒ’แƒ˜แƒšแƒแƒ‘แƒ แƒ˜แƒ•แƒ˜ แƒ›แƒแƒกแƒแƒฎแƒšแƒ”แƒแƒ‘แƒ˜แƒก แƒแƒฆแƒฌแƒ”แƒ แƒ˜แƒก แƒฉแƒแƒœแƒแƒฌแƒ”แƒ แƒ”แƒ‘แƒ˜แƒก แƒแƒขแƒ•แƒ˜แƒ แƒ—แƒ•แƒ site_customization/content_block: แƒจแƒ˜แƒœแƒแƒแƒ แƒกแƒ˜แƒก แƒ‘แƒšแƒแƒ™แƒ˜ site_customization/page: แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜ geozones: none: แƒ›แƒ—แƒ”แƒšแƒ˜ แƒฅแƒแƒšแƒแƒฅแƒ˜ layouts: application: chrome: Google Chrome firefox: Firefox ie: แƒ แƒแƒ’แƒแƒ แƒช แƒฉแƒแƒœแƒก แƒ—แƒฅแƒ•แƒ”แƒœ Internet Explorer-แƒก แƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ—. แƒ’แƒแƒชแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒ— แƒกแƒฌแƒ แƒแƒคแƒ˜ แƒ’แƒแƒ›แƒแƒชแƒ“แƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒฆแƒ”แƒ‘แƒแƒ“ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ— %{firefox} แƒแƒœ %{chrome}. ie_title: แƒ”แƒก แƒ•แƒ”แƒ‘โ€“แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก แƒแƒžแƒขแƒ˜แƒ›แƒ˜แƒ–แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ‘แƒ แƒแƒฃแƒ–แƒ”แƒ แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก dashboard: proposal_header: published: แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒฃแƒšแƒ˜ draft: แƒ›แƒแƒœแƒแƒฎแƒแƒ–แƒ˜ retired: แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ proposal_totals: active_resources: แƒแƒฅแƒขแƒ˜แƒฃแƒ แƒ˜ แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ”แƒ‘แƒ˜ community: แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ’แƒแƒ”แƒ แƒ—แƒ˜แƒแƒœแƒ”แƒ‘แƒ˜แƒก แƒฌแƒ”แƒ•แƒ แƒ”แƒ‘แƒ˜ show_proposal: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ preview_proposal: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒฌแƒ˜แƒœแƒแƒกแƒฌแƒแƒ แƒ˜ แƒ’แƒแƒ“แƒแƒฎแƒ”แƒ“แƒ•แƒ current_goal: แƒ“แƒแƒกแƒแƒฎแƒฃแƒšแƒ˜ แƒ›แƒ˜แƒ–แƒแƒœแƒ˜ supports: zero: แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ˜ other: "แƒฎแƒ›แƒ”แƒ‘แƒ˜" footer: accessibility: แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒแƒ‘แƒ conditions: แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ˜แƒก แƒฌแƒ”แƒกแƒ”แƒ‘แƒ˜ แƒ“แƒ แƒžแƒ˜แƒ แƒแƒ‘แƒ”แƒ‘แƒ˜ consul: CONSUL-แƒ˜แƒก แƒแƒžแƒšแƒ˜แƒ™แƒแƒชแƒ˜แƒ consul_url: https://github.com/consul/consul contact_us: แƒขแƒ”แƒฅแƒœแƒ˜แƒ™แƒฃแƒ แƒ˜ แƒ›แƒฎแƒแƒ แƒ“แƒแƒญแƒ”แƒ แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒฆแƒ”แƒ‘แƒแƒ“ แƒ”แƒฌแƒ•แƒ˜แƒ”แƒ— copyright: CONSUL, %{year} description: แƒแƒฆแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ˜ แƒžแƒแƒ แƒขแƒแƒšแƒ˜ แƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒก %{consul}, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒแƒ แƒ˜แƒก %{open_source}. open_source: แƒฆแƒ˜แƒ แƒฌแƒงแƒแƒ แƒแƒ”แƒ‘แƒ˜แƒก แƒžแƒ แƒแƒ’แƒ แƒแƒ›แƒฃแƒšแƒ˜ แƒฃแƒ–แƒ แƒฃแƒœแƒ•แƒ”แƒšแƒงแƒแƒคแƒ open_source_url: http://www.gnu.org/licenses/agpl-3.0.html participation_text: แƒ’แƒแƒ“แƒแƒฌแƒงแƒ•แƒ˜แƒขแƒ”แƒ—, แƒ แƒแƒ’แƒแƒ  แƒ’แƒกแƒฃแƒ แƒ— แƒ˜แƒงแƒแƒก แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒฅแƒแƒšแƒแƒฅแƒ˜ แƒ›แƒแƒฌแƒงแƒแƒ‘แƒ˜แƒšแƒ˜. participation_title: แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ privacy: แƒ™แƒแƒœแƒคแƒ˜แƒ“แƒ”แƒœแƒชแƒ˜แƒแƒšแƒฃแƒ แƒแƒ‘แƒ˜แƒก แƒžแƒแƒšแƒ˜แƒขแƒ˜แƒ™แƒ header: administration_menu: แƒ›แƒ”แƒœแƒ˜แƒฃ administration: แƒแƒ“แƒ›แƒ˜แƒœแƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ available_locales: แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒ”แƒœแƒ”แƒ‘แƒ˜ collaborative_legislation: แƒ”แƒ แƒ—แƒแƒ‘แƒšแƒ˜แƒ•แƒ˜ แƒกแƒแƒ›แƒแƒฅแƒแƒšแƒแƒฅแƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ debates: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ locale: "แƒ”แƒœแƒ:" logo: CONSUL-แƒ˜แƒก แƒšแƒแƒ’แƒ management: แƒ›แƒ”แƒœแƒ”แƒฏแƒ›แƒ”แƒœแƒขแƒ˜ moderation: แƒ›แƒแƒ“แƒ”แƒ แƒแƒชแƒ˜แƒ valuation: แƒจแƒ”แƒคแƒแƒกแƒ”แƒ‘แƒ officing: แƒ™แƒ”แƒœแƒญแƒ˜แƒกแƒงแƒ แƒ˜แƒก แƒแƒคแƒ˜แƒชแƒ แƒ”แƒ‘แƒ˜ help: แƒ“แƒแƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ my_account_link: แƒฉแƒ”แƒ›แƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜ my_activity_link: แƒฉแƒ”แƒ›แƒ˜ แƒแƒฅแƒขแƒ˜แƒ•แƒแƒ‘แƒ open_gov: แƒฆแƒ˜แƒ แƒ›แƒ›แƒแƒ แƒ—แƒ•แƒ”แƒšแƒแƒ‘แƒ proposals: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ poll_questions: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ budgets: แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ˜แƒ—แƒ˜ แƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ˜แƒ แƒ”แƒ‘แƒ notification_item: new_notifications: one: แƒ—แƒฅแƒ•แƒ”แƒœ แƒ’แƒแƒฅแƒ•แƒ— แƒ”แƒ แƒ—แƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ other: แƒ—แƒฅแƒ•แƒ”แƒœ แƒ’แƒแƒฅแƒ•แƒ— %{count} แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ notifications: แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ no_notifications: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒแƒ  แƒ’แƒแƒฅแƒ•แƒ— แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ" notifications: index: empty_notifications: แƒ—แƒฅแƒ•แƒ”แƒœ แƒแƒ  แƒ’แƒแƒฅแƒ•แƒ— แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ. mark_all_as_read: แƒ›แƒแƒ•แƒœแƒ˜แƒจแƒœแƒแƒ— แƒงแƒ•แƒ”แƒšแƒ, แƒ แƒแƒ’แƒแƒ แƒช แƒฌแƒแƒ™แƒ˜แƒ—แƒฎแƒฃแƒšแƒ˜ read: แƒฌแƒแƒ™แƒ˜แƒ—แƒฎแƒฃแƒšแƒ˜ title: แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ unread: แƒฌแƒแƒกแƒแƒ™แƒ˜แƒ—แƒฎแƒ˜ notification: action: comments_on: one: แƒ•แƒ˜แƒฆแƒแƒชแƒแƒ› แƒ“แƒแƒแƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ other: แƒ•แƒ˜แƒฆแƒแƒชแƒแƒ› แƒ“แƒแƒขแƒแƒ•แƒ %{count} แƒแƒฎแƒแƒšแƒ˜ แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ proposal_notification: one: แƒ—แƒฅแƒ•แƒ”แƒœ แƒ’แƒแƒฅแƒ•แƒ— แƒ”แƒ แƒ—แƒ˜ แƒแƒฎแƒแƒšแƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ other: แƒ—แƒฅแƒ•แƒ”แƒœ แƒ’แƒแƒฅแƒ•แƒ— %{count} แƒแƒฎแƒแƒšแƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ replies_to: one: แƒ•แƒ˜แƒฆแƒแƒชแƒแƒ› แƒฃแƒžแƒแƒกแƒฃแƒฎแƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒก other: แƒ—แƒฅแƒ•แƒ”แƒœ แƒ’แƒแƒฅแƒ•แƒ— %{count} แƒแƒฎแƒแƒšแƒ˜ แƒžแƒแƒกแƒฃแƒฎแƒ˜ แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ–แƒ” mark_as_read: แƒ›แƒแƒ•แƒœแƒ˜แƒจแƒœแƒแƒ—, แƒ แƒแƒ’แƒแƒ แƒช แƒฌแƒแƒ™แƒ˜แƒ—แƒฎแƒฃแƒšแƒ˜ mark_as_unread: แƒ›แƒแƒ•แƒœแƒ˜แƒจแƒœแƒแƒ—, แƒ แƒแƒ’แƒแƒ แƒช แƒฌแƒแƒกแƒแƒ™แƒ˜แƒ—แƒฎแƒ˜ notifiable_hidden: แƒ”แƒก แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ˜ แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒแƒฆแƒแƒ  แƒแƒ แƒ˜แƒก. map: title: "แƒแƒšแƒฅแƒ”แƒ‘แƒ˜" proposal_for_district: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ“แƒแƒฌแƒงแƒ”แƒ‘แƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒแƒšแƒฅแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก" start_proposal: แƒแƒฎแƒแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ omniauth: facebook: sign_in: Facebook-แƒ˜แƒ— แƒจแƒ”แƒกแƒ•แƒšแƒ sign_up: Facebook-แƒ˜แƒ— แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ name: Facebook finish_signup: title: "แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒ“แƒ”แƒขแƒแƒšแƒ”แƒ‘แƒ˜" username_warning: "แƒฉแƒ•แƒ”แƒœแƒ˜ แƒ“แƒ แƒกแƒแƒช. แƒฅแƒกแƒ”แƒšแƒ”แƒ‘แƒ˜แƒก แƒฃแƒ แƒ—แƒ˜แƒ”แƒ แƒ—แƒแƒ‘แƒ˜แƒ“แƒแƒœ แƒ’แƒแƒ›แƒแƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ”, แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒกแƒแƒฎแƒ”แƒšแƒ˜ แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒก, แƒ แƒแƒ’แƒแƒ แƒช 'แƒฃแƒ™แƒ•แƒ” แƒ“แƒแƒ™แƒแƒ•แƒ”แƒ‘แƒฃแƒšแƒ˜'. แƒแƒกแƒ”แƒ— แƒจแƒ”แƒ›แƒ—แƒฎแƒ•แƒ”แƒ•แƒแƒจแƒ˜, แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒจแƒ”แƒแƒ แƒฉแƒ˜แƒแƒ— แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒกแƒฎแƒ•แƒ แƒกแƒแƒฎแƒ”แƒšแƒ˜." google_oauth2: sign_in: Google-แƒ˜แƒ— แƒจแƒ”แƒกแƒ•แƒšแƒ sign_up: Google-แƒ˜แƒ— แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ name: Google wordpress_oauth2: sign_in: Wordpress-แƒ˜แƒ— แƒจแƒ”แƒกแƒ•แƒšแƒ sign_up: Wordpress-แƒ˜แƒ— แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ name: Wordpress twitter: sign_in: Twitter-แƒ˜แƒ— แƒจแƒ”แƒกแƒ•แƒšแƒ sign_up: Twitter-แƒ˜แƒ— แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ name: Twitter info: sign_in: "แƒจแƒ”แƒกแƒ•แƒšแƒ:" sign_up: "แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ˜แƒก แƒ’แƒแƒ•แƒšแƒ:" or_fill: "แƒแƒœ แƒจแƒ”แƒแƒ•แƒกแƒ”แƒ— แƒฌแƒ˜แƒœแƒแƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ” แƒคแƒแƒ แƒ›แƒ:" proposals: create: form: submit_button: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ created: title: แƒ’แƒ˜แƒšแƒแƒชแƒแƒ•แƒ—! แƒ—แƒฅแƒ•แƒ”แƒœ แƒ’แƒแƒ˜แƒแƒ แƒ”แƒ— แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒ˜ แƒ”แƒขแƒแƒžแƒ˜. motivation: "แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ•แƒแƒœแƒ˜แƒ แƒ™แƒแƒ›แƒžแƒแƒœแƒ˜แƒ˜แƒก แƒ›แƒแƒ›แƒ–แƒแƒ“แƒ”แƒ‘แƒ. แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒ˜ แƒ“แƒฆแƒ”แƒ”แƒ‘แƒ˜ แƒ’แƒแƒ“แƒแƒ›แƒฌแƒงแƒ•แƒ”แƒขแƒ˜แƒ." motivation_2: "<strong>แƒ—แƒฃ แƒ’แƒกแƒฃแƒ แƒ— แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒแƒ›แƒ“แƒ” แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒฆแƒ”แƒ‘แƒ, แƒ“แƒแƒขแƒแƒ•แƒ”แƒ— แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒ›แƒแƒœแƒแƒฎแƒแƒ–แƒ˜แƒก แƒคแƒแƒ แƒ›แƒแƒขแƒจแƒ˜ แƒ“แƒ แƒฉแƒ•แƒ”แƒœ แƒแƒฆแƒ›แƒแƒ’แƒ˜แƒฉแƒ”แƒœแƒ— แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ— แƒ“แƒแƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒแƒก.</strong>" publish: แƒแƒ แƒ, แƒ›แƒกแƒฃแƒ แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒ dashboard: แƒ“แƒ˜แƒแƒฎ, แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒแƒ›แƒ“แƒ” แƒ›แƒกแƒฃแƒ แƒก แƒ“แƒแƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ preview_title: แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒ›แƒ“แƒ”แƒ’, แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก แƒจแƒ”แƒ›แƒ“แƒ”แƒ’แƒœแƒแƒ˜แƒ แƒ˜ แƒกแƒแƒฎแƒ” แƒ”แƒฅแƒœแƒ”แƒ‘แƒ share: improve_it: แƒ’แƒแƒแƒฃแƒ›แƒฏแƒแƒ‘แƒ”แƒกแƒ”แƒ— แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ™แƒแƒ›แƒžแƒแƒœแƒ˜แƒ แƒ“แƒ แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ— แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒ›แƒฎแƒแƒ แƒ“แƒแƒญแƒ”แƒ แƒ. dashboard: แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ message: "แƒ›แƒ” แƒฎแƒ›แƒ แƒ›แƒ˜แƒ•แƒ”แƒชแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก แƒกแƒแƒฎแƒ”แƒšแƒแƒ“: %{title} %{handle}-แƒจแƒ˜. แƒ—แƒฃ แƒจแƒ”แƒœแƒช แƒฎแƒแƒ  แƒ“แƒแƒ˜แƒœแƒขแƒ”แƒ แƒ”แƒกแƒ”แƒ‘แƒฃแƒšแƒ˜, แƒ“แƒแƒฃแƒญแƒ˜แƒ แƒ” แƒ›แƒฎแƒแƒ แƒ˜!" edit: editing: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ form: submit_button: แƒชแƒ•แƒšแƒ˜แƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒœแƒแƒฎแƒ•แƒ show_link: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ retire_form: title: แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ warning: "แƒ—แƒฃ แƒ›แƒแƒแƒฎแƒ“แƒ”แƒœแƒ— แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ–แƒแƒชแƒ˜แƒแƒก, แƒ˜แƒก แƒ›แƒแƒ˜แƒœแƒช แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ‘แƒก แƒฎแƒ›แƒ”แƒ‘แƒก, แƒ›แƒแƒ’แƒ แƒแƒ› แƒแƒฆแƒแƒ  แƒ˜แƒฅแƒœแƒ”แƒ‘แƒ แƒ›แƒ—แƒแƒ•แƒแƒ  แƒฉแƒแƒ›แƒแƒœแƒแƒ—แƒ•แƒแƒšแƒจแƒ˜ แƒ“แƒ แƒงแƒ•แƒ”แƒšแƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ—แƒแƒœ แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ แƒ˜แƒ›แƒ˜แƒก แƒ—แƒแƒแƒ‘แƒแƒ–แƒ”, แƒ แƒแƒ› แƒแƒ•แƒขแƒแƒ แƒก แƒแƒฆแƒแƒ  แƒกแƒฃแƒ แƒก แƒ›แƒ˜แƒกแƒ›แƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ› แƒฎแƒ›แƒ”แƒ‘แƒ˜ แƒ“แƒแƒแƒ’แƒ แƒแƒ•แƒแƒก" retired_reason_blank: แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒกแƒแƒกแƒฃแƒ แƒ•แƒ”แƒšแƒ˜ แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ˜ retired_explanation_placeholder: แƒ›แƒแƒ™แƒšแƒ”แƒ“ แƒ’แƒแƒœแƒ›แƒแƒ แƒขแƒ”แƒ—, แƒ แƒแƒขแƒแƒ› แƒแƒ  แƒ’แƒกแƒฃแƒ แƒ—, แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ› แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒฎแƒ›แƒ”แƒ‘แƒ˜ แƒ›แƒ˜แƒ˜แƒฆแƒแƒก submit_button: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒแƒชแƒ˜แƒ retire_options: duplicated: แƒ“แƒฃแƒ‘แƒšแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ started: แƒฃแƒ™แƒ•แƒ” แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ”แƒแƒ‘แƒก unfeasible: แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ done: แƒจแƒ”แƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜ other: แƒกแƒฎแƒ•แƒ form: proposal_responsible_name_note: "(แƒ˜แƒœแƒ“แƒ˜แƒ•แƒ˜แƒ“แƒฃแƒแƒšแƒฃแƒ แƒแƒ“, แƒแƒœ แƒ แƒแƒ’แƒแƒ แƒช แƒ’แƒฃแƒœแƒ“แƒ˜แƒก แƒ”แƒ แƒ—-แƒ”แƒ แƒ—แƒ˜ แƒฌแƒแƒ แƒ›แƒแƒ›แƒแƒ“แƒ’แƒ”แƒœแƒ”แƒšแƒ˜; แƒแƒ  แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒกแƒแƒฏแƒแƒ แƒแƒ“)" proposal_summary_note: "(แƒ›แƒแƒฅแƒกแƒ˜แƒ›แƒฃแƒ› 200 แƒกแƒ˜แƒ›แƒ‘แƒแƒšแƒ)" proposal_video_url_note: แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒ“แƒแƒแƒ›แƒแƒขแƒแƒ— YouTube-แƒ˜แƒก แƒแƒœ Vimeo-แƒ˜แƒก แƒ‘แƒ›แƒฃแƒšแƒ˜ tag_category_label: "แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ”แƒ‘แƒ˜" tags_instructions: "แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒจแƒ”แƒแƒ แƒฉแƒ˜แƒแƒ— แƒจแƒ”แƒ›แƒแƒ—แƒแƒ•แƒแƒ–แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ”แƒ‘แƒ˜แƒ“แƒแƒœ แƒแƒœ แƒจแƒ”แƒฅแƒ›แƒœแƒแƒ— แƒกแƒแƒ™แƒฃแƒ—แƒแƒ แƒ˜" tags_label: แƒขแƒ”แƒ’แƒ”แƒ‘แƒ˜ tags_placeholder: "แƒจแƒ”แƒ˜แƒงแƒ•แƒแƒœแƒ”แƒ— แƒ˜แƒก แƒขแƒ”แƒ’แƒ”แƒ‘แƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ—แƒ แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒแƒช แƒ’แƒกแƒฃแƒ แƒ—, แƒ’แƒแƒ›แƒแƒงแƒแƒ•แƒ˜แƒ— แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒ›แƒซแƒ˜แƒ›แƒ˜แƒ— (',')" map_location: "แƒšแƒแƒ™แƒแƒชแƒ˜แƒ แƒ แƒฃแƒ™แƒแƒ–แƒ”" map_location_instructions: "แƒ“แƒแƒกแƒ•แƒ˜แƒ— แƒ›แƒแƒ แƒ™แƒ”แƒ แƒ˜ แƒ แƒฃแƒ™แƒ˜แƒก แƒกแƒแƒกแƒฃแƒ แƒ•แƒ”แƒš แƒžแƒแƒ–แƒ˜แƒชแƒ˜แƒแƒ–แƒ”." map_remove_marker: "แƒ›แƒแƒ แƒ™แƒ”แƒ แƒ˜แƒก แƒฌแƒแƒจแƒšแƒ" map_skip_checkbox: "แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก แƒแƒ  แƒแƒฅแƒ•แƒก แƒ–แƒฃแƒกแƒขแƒแƒ“ แƒ’แƒแƒœแƒกแƒแƒ–แƒฆแƒ•แƒ แƒฃแƒšแƒ˜ แƒšแƒแƒ™แƒแƒชแƒ˜แƒ, แƒแƒœ แƒ›แƒ” แƒ›แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก แƒแƒ  แƒ•แƒคแƒšแƒแƒ‘." index: featured_proposals: แƒ’แƒแƒ›แƒแƒ แƒฉแƒ”แƒฃแƒšแƒ˜ orders: confidence_score: แƒ›แƒแƒฆแƒแƒšแƒ˜ แƒจแƒ”แƒคแƒแƒกแƒ”แƒ‘แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” created_at: แƒฃแƒแƒฎแƒšแƒ”แƒกแƒ˜ hot_score: แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒแƒฅแƒขแƒ˜แƒฃแƒ แƒ˜ most_commented: แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒ›แƒ”แƒขแƒ˜ แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” relevance: แƒจแƒ”แƒกแƒแƒ‘แƒแƒ›แƒ˜แƒกแƒแƒ‘แƒ archival_date: แƒ“แƒแƒแƒ แƒฅแƒ˜แƒ•แƒ”แƒ‘แƒฃแƒšแƒ˜ recommendations: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ recommendations: without_results: แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒ˜แƒœแƒขแƒ”แƒ แƒ”แƒกแƒ”แƒ‘แƒ—แƒแƒœ แƒแƒฎแƒšแƒแƒก แƒ›แƒงแƒแƒคแƒ˜ แƒแƒ แƒชแƒ”แƒ แƒ—แƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ without_interests: แƒ›แƒ˜แƒฐแƒงแƒ”แƒ•แƒ˜แƒ— แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒก, แƒ แƒแƒ—แƒ แƒจแƒ”แƒ•แƒซแƒšแƒแƒ— แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒ›แƒฃแƒจแƒแƒ•แƒ”แƒ‘แƒ/แƒ’แƒแƒฌแƒ”แƒ•แƒ disable: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒแƒฆแƒแƒ  แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ, แƒ—แƒฃ แƒ’แƒแƒแƒฅแƒ แƒแƒ‘แƒ— แƒ›แƒแƒ—. แƒ›แƒแƒ—แƒ˜ แƒฎแƒ”แƒšแƒแƒฎแƒšแƒ แƒฉแƒแƒ แƒ—แƒ•แƒ 'แƒฉแƒ”แƒ›แƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก' แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜แƒ“แƒแƒœ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ—" actions: success: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒ’แƒแƒ›แƒแƒ แƒ—แƒฃแƒšแƒ˜แƒ" error: "แƒจแƒ”แƒชแƒ“แƒแƒ›แƒ! แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒ’แƒแƒ“แƒแƒฎแƒ•แƒ˜แƒ“แƒ”แƒ— 'แƒฉแƒ”แƒ›แƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก' แƒ’แƒ•แƒ”แƒ แƒ“แƒ–แƒ” แƒ“แƒ แƒฎแƒ”แƒšแƒ˜แƒ— แƒ’แƒแƒ›แƒแƒ แƒ—แƒแƒ— แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜" retired_proposals: แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ retired_proposals_link: "แƒแƒ•แƒขแƒแƒ แƒ˜แƒก แƒ›แƒ˜แƒ”แƒ  แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜" selected_proposals: แƒจแƒ”แƒ แƒฉแƒ”แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ selected_proposals_link: แƒจแƒ”แƒ แƒฉแƒ”แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ archived_proposals: แƒ“แƒแƒแƒ แƒฅแƒ˜แƒ•แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ proposals_lists: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒก แƒฉแƒแƒ›แƒแƒœแƒแƒ—แƒ•แƒแƒšแƒ˜ retired_links: all: แƒงแƒ•แƒ”แƒšแƒ duplicated: แƒ“แƒฃแƒ‘แƒšแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ started: แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ” unfeasible: แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ done: แƒจแƒ”แƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜ other: แƒกแƒฎแƒ•แƒ search_form: button: แƒซแƒ”แƒ‘แƒœแƒ placeholder: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒก แƒซแƒ”แƒ‘แƒœแƒ... title: แƒซแƒ”แƒ‘แƒœแƒ search_results: one: " แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒ“แƒ”แƒก แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒแƒก <strong>%{search_term}</strong>" other: " แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒ“แƒ”แƒก แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒแƒก <strong>%{search_term}</strong>" select_order: แƒ“แƒแƒšแƒแƒ’แƒ”แƒ‘แƒ select_order_long: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ แƒœแƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ˜แƒ:" start_proposal: แƒแƒฎแƒแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ title: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ top: แƒ™แƒ•แƒ˜แƒ แƒ˜แƒก แƒ›แƒแƒฌแƒ˜แƒœแƒแƒ•แƒ” top_link_proposals: แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ˜แƒก แƒ›แƒ˜แƒฎแƒ”แƒ“แƒ•แƒ˜แƒ— แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒ›แƒ”แƒขแƒ˜ แƒฎแƒ›แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ section_header: icon_alt: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒก แƒœแƒ˜แƒจแƒแƒœแƒ˜ title: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ help: แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ section_footer: title: แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ description: แƒ›แƒแƒฅแƒแƒšแƒแƒฅแƒ”แƒ—แƒ แƒฏแƒ’แƒฃแƒคแƒ”แƒ‘แƒก แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒ™แƒแƒšแƒ”แƒฅแƒขแƒ˜แƒฃแƒ แƒแƒ“ แƒจแƒ”แƒ˜แƒ›แƒฃแƒจแƒแƒแƒœ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ แƒ—แƒแƒ•แƒ˜แƒแƒœแƒ—แƒ˜ แƒฅแƒแƒšแƒแƒฅแƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ แƒ“แƒ แƒ›แƒ˜แƒ˜แƒฆแƒแƒœ แƒกแƒฎแƒ•แƒ”แƒ‘แƒ˜แƒก แƒ›แƒฎแƒแƒ แƒ“แƒแƒญแƒ”แƒ แƒ. new: form: submit_button: แƒแƒฎแƒแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ more_info: แƒ แƒแƒ’แƒแƒ  แƒ›แƒฃแƒจแƒแƒแƒ‘แƒก แƒ›แƒแƒฅแƒแƒšแƒแƒฅแƒ”แƒ—แƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜? recommendation_one: แƒœแƒฃ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ— แƒ›แƒฎแƒแƒšแƒแƒ“ แƒ“แƒ˜แƒ“ แƒแƒกแƒแƒ”แƒ‘แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ“แƒแƒกแƒแƒกแƒแƒ—แƒแƒฃแƒ แƒ”แƒ‘แƒšแƒแƒ“ แƒแƒœ แƒฌแƒ˜แƒœแƒแƒ“แƒแƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒ“แƒ’แƒ”แƒœแƒแƒ“. recommendation_three: แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ— แƒ”แƒก แƒกแƒ˜แƒ•แƒ แƒชแƒ” แƒกแƒแƒ™แƒฃแƒ—แƒแƒ แƒ˜ แƒแƒ–แƒ แƒ˜แƒก แƒ’แƒแƒ›แƒแƒกแƒแƒฎแƒแƒขแƒแƒ“. recommendation_two: แƒœแƒ”แƒ‘แƒ˜แƒกแƒ›แƒ˜แƒ”แƒ แƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒแƒœ แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒแƒ แƒแƒ™แƒแƒœแƒแƒœแƒ˜แƒ”แƒ แƒ˜ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒžแƒ แƒแƒ•แƒแƒชแƒ˜แƒ แƒ”แƒ‘แƒแƒก แƒแƒฎแƒ“แƒ”แƒœแƒก, แƒฌแƒแƒ˜แƒจแƒšแƒ”แƒ‘แƒ. แƒ“แƒแƒฃแƒจแƒ•แƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒกแƒแƒ“แƒ”แƒ‘แƒแƒขแƒ แƒกแƒ˜แƒ•แƒ แƒชแƒ˜แƒก แƒกแƒแƒ‘แƒแƒขแƒแƒŸแƒ˜แƒช. แƒกแƒฎแƒ•แƒ แƒงแƒ•แƒ”แƒšแƒแƒคแƒ”แƒ แƒ˜ แƒœแƒ”แƒ‘แƒแƒ“แƒแƒ แƒ—แƒฃแƒšแƒ˜แƒ. recommendations_title: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก start_new: แƒแƒฎแƒแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ notice: retired: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜แƒ published: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ“แƒ proposal: created: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒจแƒ”แƒฅแƒ›แƒ”แƒœแƒ˜แƒ— แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ!" share: guide: "แƒแƒฎแƒšแƒ แƒ›แƒ˜แƒกแƒ˜ แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ แƒกแƒฎแƒ•แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒกแƒแƒช แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ—." edit: "แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒแƒ›แƒ“แƒ” แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒจแƒ”แƒชแƒ•แƒšแƒ แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ." view_proposal: แƒแƒฎแƒšแƒ แƒแƒ แƒ, แƒ’แƒแƒ“แƒแƒ•แƒ˜แƒ“แƒ”แƒ— แƒฉแƒ”แƒ›แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ–แƒ” already_supported: แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒ™แƒ•แƒ” แƒ›แƒ˜แƒ”แƒชแƒ˜แƒ— แƒฎแƒ›แƒ แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก. แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒ›แƒ˜แƒกแƒ˜ แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ! comments: zero: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ other: "%{count} แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜" support: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ support_title: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ supports: zero: แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ˜ other: "%{count} แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ˜" votes: zero: แƒฎแƒ›แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒฎแƒ›แƒ other: "%{count} แƒฎแƒ›แƒ" supports_necessary: "แƒกแƒแƒญแƒ˜แƒ แƒแƒ %{number} แƒฎแƒ›แƒ" total_percent: 100% archived: "แƒ”แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒ’แƒแƒ“แƒแƒขแƒแƒœแƒ˜แƒšแƒ˜แƒ แƒแƒ แƒฅแƒ˜แƒ•แƒจแƒ˜ แƒ“แƒ แƒ›แƒแƒกแƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ." successful: "แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ› แƒ›แƒ˜แƒแƒฆแƒฌแƒ˜แƒ แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ—แƒ แƒกแƒแƒญแƒ˜แƒ แƒ แƒ แƒแƒแƒ“แƒ”แƒœแƒแƒ‘แƒแƒก." selected: "แƒจแƒ”แƒ แƒฉแƒ”แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ" show: author_deleted: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ code: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ™แƒแƒ“แƒ˜:" comments: zero: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ one: 1 แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ other: "%{count} แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜" comments_tab: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ dashboard_proposal_link: แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ—แƒ แƒ“แƒแƒคแƒ flag: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ—แƒ แƒ’แƒแƒ แƒ™แƒ•แƒ”แƒฃแƒšแƒ›แƒ แƒœแƒแƒฌแƒ˜แƒšแƒ›แƒ แƒ”แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒ’แƒแƒแƒกแƒแƒฉแƒ˜แƒ•แƒ แƒ. notifications_tab: แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ milestones_tab: แƒ”แƒขแƒแƒžแƒ”แƒ‘แƒ˜ retired_warning: "แƒแƒ•แƒขแƒแƒ แƒ˜แƒก แƒแƒ–แƒ แƒ˜แƒ—, แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก แƒแƒฆแƒแƒ  แƒ”แƒกแƒแƒญแƒ˜แƒ แƒแƒ”แƒ‘แƒ แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ”แƒ‘แƒ˜." retired_warning_link_to_explanation: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒแƒ›แƒ“แƒ”, แƒ’แƒแƒ”แƒชแƒแƒœแƒ˜แƒ— แƒแƒฎแƒกแƒœแƒ-แƒ’แƒแƒœแƒ›แƒแƒ แƒขแƒ”แƒ‘แƒแƒก. retired: แƒแƒ•แƒขแƒแƒ แƒ˜แƒก แƒ›แƒ˜แƒ”แƒ  แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ share: แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ no_notifications: "แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ." embed_video_title: "แƒ•แƒ˜แƒ“แƒ”แƒ %{proposal}-แƒ—แƒ•แƒ˜แƒก" title_video_url: "แƒกแƒฎแƒ•แƒ แƒกแƒ”แƒ แƒ•แƒ”แƒ แƒ–แƒ” แƒ’แƒแƒœแƒ—แƒแƒ•แƒกแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ•แƒ˜แƒ“แƒ”แƒ" author: แƒแƒ•แƒขแƒแƒ แƒ˜ draft: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒจแƒ”แƒฅแƒ›แƒœแƒ˜แƒก แƒžแƒ แƒแƒชแƒ”แƒกแƒจแƒ˜แƒ. แƒแƒ› แƒ”แƒขแƒแƒžแƒ–แƒ” แƒ˜แƒ’แƒ˜ แƒแƒ  แƒฉแƒแƒœแƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ—แƒ แƒฉแƒแƒ›แƒแƒœแƒแƒ—แƒ•แƒแƒšแƒจแƒ˜ แƒ“แƒ แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒ›แƒแƒกแƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ. update: form: submit_button: แƒชแƒ•แƒšแƒ˜แƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒœแƒแƒฎแƒ•แƒ dashboard: menu: my_proposal: แƒฉแƒ”แƒ›แƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ progress: แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ”แƒแƒ‘แƒ resources: แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ”แƒ‘แƒ˜ community: แƒกแƒแƒ–แƒแƒ’แƒแƒ“แƒแƒ”แƒ‘แƒ polls: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ mailing: แƒ”แƒš. แƒคแƒแƒกแƒขแƒ poster: แƒžแƒแƒกแƒขแƒ”แƒ แƒ˜ recommended_actions: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜ messages: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒ—แƒแƒœ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ related_content: แƒ›แƒกแƒ’แƒแƒ•แƒกแƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ form: request: แƒ›แƒแƒ—แƒฎแƒแƒ•แƒœแƒ create_request: success: แƒ›แƒแƒ—แƒฎแƒแƒ•แƒœแƒ แƒฌแƒแƒ แƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ— แƒ’แƒแƒ˜แƒ’แƒ–แƒแƒ•แƒœแƒ. แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ— แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก แƒฃแƒแƒฎแƒšแƒแƒ”แƒก แƒ›แƒแƒ›แƒแƒ•แƒแƒšแƒจแƒ˜ แƒ›แƒแƒ’แƒแƒฌแƒ•แƒ“แƒ˜แƒ—. archived: แƒ”แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒแƒ แƒฅแƒ˜แƒ•แƒจแƒ˜แƒ แƒ’แƒแƒ“แƒแƒขแƒแƒœแƒ˜แƒšแƒ˜ แƒ“แƒ แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒ—แƒฎแƒแƒ•แƒœแƒ. progress: title: แƒ’แƒ แƒแƒคแƒ˜แƒ™แƒฃแƒšแƒ˜ group_by_month: แƒงแƒแƒ•แƒ”แƒšแƒ—แƒ•แƒ˜แƒฃแƒ แƒแƒ“ group_by_week: แƒงแƒแƒ•แƒ”แƒšแƒ™แƒ•แƒ˜แƒ แƒ”แƒฃแƒšแƒแƒ“ group_by_date: แƒงแƒแƒ•แƒ”แƒšแƒ“แƒฆแƒ˜แƒฃแƒ แƒแƒ“ progress: แƒ›แƒ˜แƒฆแƒฌแƒ”แƒฃแƒšแƒ˜ แƒžแƒ แƒแƒ’แƒ แƒ”แƒกแƒ˜ supports: แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ”แƒ‘แƒ˜ success: แƒžแƒ แƒแƒ’แƒ แƒ”แƒกแƒ˜แƒก แƒกแƒแƒกแƒฃแƒ แƒ•แƒ”แƒšแƒ˜ แƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ˜ new_action: แƒแƒฎแƒแƒšแƒ˜ index: title: แƒ’แƒแƒ›แƒแƒชแƒ”แƒ›แƒ edit_proposal_link: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ publish: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒ retire: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒแƒชแƒ˜แƒ new_request: links: แƒ‘แƒ›แƒฃแƒšแƒ”แƒ‘แƒ˜ resources: available_resources: แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ”แƒ‘แƒ˜ resource: required_days: "แƒกแƒแƒญแƒ˜แƒ แƒแƒ %{days} แƒ“แƒฆแƒ”" required_supports: "แƒกแƒแƒญแƒ˜แƒ แƒแƒ %{supports} แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ˜" and: แƒ“แƒ view_resource: แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ resource_requested: แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ˜ แƒฃแƒ™แƒ•แƒ” แƒ›แƒแƒ—แƒฎแƒแƒ•แƒœแƒ˜แƒšแƒ˜แƒ request_resource: แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ˜แƒก แƒ›แƒแƒ—แƒฎแƒแƒ•แƒœแƒ resource_locked: แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ˜ แƒ“แƒแƒ‘แƒšแƒแƒ™แƒ˜แƒšแƒ˜แƒ recommended_actions: title: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜ goto_proposed_actions: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒš แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒจแƒ˜ แƒ’แƒแƒ“แƒแƒกแƒ•แƒšแƒ see_proposed_actions: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ hide_proposed_actions: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒ›แƒแƒšแƒ•แƒ pending_title: แƒ›แƒแƒšแƒแƒ“แƒ˜แƒœแƒ˜แƒก แƒ แƒ”แƒŸแƒ˜แƒ›แƒจแƒ˜แƒ show_description: แƒแƒฆแƒฌแƒ”แƒ แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ without_pending_actions: แƒ›แƒแƒšแƒแƒ“แƒ˜แƒœแƒ˜แƒก แƒ แƒ”แƒŸแƒ˜แƒ›แƒจแƒ˜ แƒ›แƒงแƒแƒคแƒ˜ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ done_title: แƒจแƒ”แƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜ without_done_actions: แƒจแƒ”แƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ next_goal: title: แƒ›แƒ˜แƒ–แƒแƒœแƒ˜ see_complete_course: แƒ“แƒแƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ™แƒฃแƒ แƒกแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ hide_course: แƒ™แƒฃแƒ แƒกแƒ˜แƒก แƒ“แƒแƒ›แƒแƒšแƒ•แƒ goal: target_supports: one: แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ— %{count} แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ˜ แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒกแƒแƒ—แƒ•แƒ˜แƒก other: แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ— %{count} แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ˜ แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒกแƒแƒ—แƒ•แƒ˜แƒก days: one: "%{count} แƒ“แƒฆแƒ”" other: "%{count} แƒ“แƒฆแƒ”" locked_resource: แƒ แƒ”แƒกแƒฃแƒ แƒกแƒ˜ แƒ“แƒแƒ‘แƒšแƒแƒ™แƒ˜แƒšแƒ˜แƒ ideal_time: แƒกแƒแƒกแƒฃแƒ แƒ•แƒ”แƒšแƒ˜ แƒ“แƒ แƒ community: access_community: แƒฌแƒ”แƒ•แƒ แƒ”แƒ‘แƒ—แƒแƒœ แƒฌแƒ•แƒ“แƒแƒ›แƒ latest_activity: "แƒฌแƒ”แƒ•แƒ แƒ”แƒ‘แƒ˜แƒก แƒ‘แƒแƒšแƒ แƒแƒฅแƒขแƒ˜แƒ•แƒแƒ‘แƒ: %{at}" participants: แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒ”แƒ‘แƒ˜ debates: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ comments: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ latest_comments: แƒฃแƒแƒฎแƒšแƒ”แƒกแƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ messages: send_notification: แƒ’แƒแƒ•แƒฃแƒ’แƒ–แƒแƒ•แƒœแƒแƒ— แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ›แƒ˜แƒ›แƒ“แƒ”แƒ•แƒ แƒ”แƒ‘แƒก previous_notifications: แƒฌแƒ˜แƒœแƒ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ polls: index: title: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ create: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ count: one: แƒ—แƒฅแƒ•แƒ”แƒœ แƒจแƒ”แƒฅแƒ›แƒ”แƒœแƒ˜แƒ— %{count} แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ other: แƒ—แƒฅแƒ•แƒ”แƒœ แƒจแƒ”แƒฅแƒ›แƒ”แƒœแƒ˜แƒ— %{count} แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ. links: แƒ‘แƒ›แƒฃแƒšแƒ”แƒ‘แƒ˜ additiontal_information: แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ new: title: แƒแƒฎแƒแƒš แƒกแƒแƒ™แƒ˜แƒ—แƒฎแƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ submit: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ edit: submit: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒ’แƒแƒœแƒแƒฎแƒšแƒ”แƒ‘แƒ poll: responses: one: "%{count} แƒžแƒแƒกแƒฃแƒฎแƒ˜" other: "%{count} แƒžแƒแƒกแƒฃแƒฎแƒ˜" view_results: แƒจแƒ”แƒ“แƒ”แƒ’แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ edit_poll: แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ˜แƒก แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ show_results_help: แƒแƒ› แƒฃแƒฏแƒ แƒ”แƒ“แƒ˜แƒก แƒ›แƒแƒœแƒ˜แƒจแƒ•แƒœแƒ˜แƒ— แƒจแƒ”แƒ“แƒ”แƒ’แƒ”แƒ‘แƒ˜ แƒกแƒแƒฏแƒแƒ แƒ แƒ’แƒแƒฎแƒ“แƒ”แƒ‘แƒ แƒ“แƒ แƒ›แƒแƒ—แƒ˜ แƒœแƒแƒฎแƒ•แƒ แƒงแƒ•แƒ”แƒšแƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒจแƒ”แƒ”แƒซแƒšแƒ”แƒ‘แƒ delete: แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ˜แƒก แƒฌแƒแƒจแƒšแƒ alert_notice: แƒแƒ› แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒ— แƒฌแƒแƒ˜แƒจแƒšแƒ”แƒ‘แƒ แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ แƒ“แƒ แƒ›แƒแƒกแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒ”แƒ™แƒ˜แƒ—แƒฎแƒ•แƒ”แƒ‘แƒ˜. success_notice: แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ แƒฌแƒแƒ แƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ— แƒฌแƒแƒ˜แƒจแƒแƒšแƒ unable_notice: แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ˜แƒก แƒฌแƒแƒจแƒšแƒ แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ, แƒ แƒแƒ“แƒ’แƒแƒœ แƒ›แƒแƒกแƒจแƒ˜ แƒฃแƒ™แƒ•แƒ” แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒก แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ form: name: แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ˜แƒก แƒ“แƒแƒกแƒแƒฎแƒ”แƒšแƒ”แƒ‘แƒ add_question: แƒ™แƒ˜แƒ—แƒฎแƒ•แƒ˜แƒก แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ question_fields: remove_question: แƒจแƒ”แƒ™แƒ˜แƒ—แƒฎแƒ•แƒ˜แƒก แƒฌแƒแƒจแƒšแƒ add_answer: แƒžแƒแƒกแƒฃแƒฎแƒ˜แƒก แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ question_answer_fields: remove_answer: แƒžแƒแƒกแƒฃแƒฎแƒ˜แƒก แƒฌแƒแƒจแƒšแƒ poster: index: title: แƒžแƒแƒกแƒขแƒ”แƒ แƒ˜แƒก แƒ”แƒกแƒ™แƒ˜แƒ–แƒ˜ poster_title: "แƒœแƒฃ แƒฎแƒแƒ  แƒ’แƒแƒแƒชแƒ”แƒ‘แƒฃแƒšแƒ˜," poster_subtitle: "แƒ“แƒแƒ›แƒ”แƒฎแƒ›แƒแƒ แƒ”! ;)" intro_text: "<strong>แƒ›แƒ” แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒแƒก แƒ•แƒ˜แƒฆแƒ”แƒ‘ %{org}-แƒจแƒ˜</strong> แƒฉแƒ”แƒ›แƒ˜ แƒกแƒแƒ›แƒแƒฅแƒแƒšแƒแƒฅแƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒ—. แƒ—แƒฃ แƒจแƒ”แƒœแƒช แƒฉแƒแƒ”แƒ แƒ—แƒ•แƒ”แƒ‘แƒ˜, แƒ›แƒแƒฅแƒกแƒ˜แƒ›แƒฃแƒ›แƒก แƒ’แƒแƒ•แƒแƒ™แƒ”แƒ—แƒ”แƒ‘ แƒ˜แƒ›แƒ˜แƒกแƒแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ› แƒฉแƒ•แƒ”แƒœแƒ˜ แƒฅแƒแƒšแƒแƒฅแƒ˜ แƒ’แƒแƒฎแƒ“แƒ”แƒก แƒ˜แƒกแƒ”แƒ—แƒ˜, แƒ แƒแƒ’แƒแƒ แƒ˜แƒช แƒ’แƒ•แƒกแƒฃแƒ แƒก." proposal_code: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ™แƒแƒ“แƒ˜: %{code}" support: แƒฉแƒ”แƒ›แƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ›แƒฎแƒแƒ แƒ“แƒแƒญแƒ”แƒ แƒ footer: "<strong>แƒ“แƒแƒแƒญแƒ˜แƒ แƒ”แƒ— %{link} แƒ“แƒ แƒ›แƒฎแƒแƒ แƒ˜ แƒ“แƒแƒฃแƒญแƒ˜แƒ แƒ”แƒ— แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก.</strong> แƒ แƒแƒช แƒ›แƒ”แƒขแƒ˜ แƒ•แƒ˜แƒฅแƒœแƒ”แƒ‘แƒ˜แƒ—, แƒ›แƒ˜แƒ— แƒฃแƒ™แƒ”แƒ—แƒ”แƒกแƒ˜. แƒ›แƒแƒ“แƒšแƒแƒ‘แƒ!" new: title: แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒžแƒแƒกแƒขแƒ”แƒ แƒ˜ options: preview: แƒ”แƒกแƒ™แƒ˜แƒ–แƒ˜ download: แƒฉแƒแƒ›แƒแƒขแƒ•แƒ˜แƒ แƒ—แƒ•แƒ mailing: index: title: แƒ”แƒš. แƒฌแƒ”แƒ แƒ˜แƒšแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ new: title: แƒ’แƒแƒกแƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ”แƒš. แƒฌแƒ”แƒ แƒ˜แƒšแƒ˜ mailing_options: send: แƒ’แƒแƒ”แƒ’แƒ–แƒแƒ•แƒœแƒแƒก %{address} preview: แƒฌแƒ˜แƒœแƒแƒกแƒฌแƒแƒ  แƒ’แƒแƒ“แƒแƒฎแƒ”แƒ“แƒ•แƒ create: sent: แƒฌแƒ”แƒ แƒ˜แƒšแƒ˜ แƒ’แƒแƒ˜แƒ’แƒ–แƒแƒ•แƒœแƒ mailer: forward: subtitle: "แƒ—แƒฃ แƒ›แƒฎแƒแƒ แƒก แƒ“แƒแƒ›แƒ˜แƒญแƒ”แƒ ,<br>แƒ”แƒ แƒ—แƒแƒ“ แƒ’แƒแƒ›แƒแƒ’แƒ•แƒ˜แƒ•แƒ." support_button: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ share_in: แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ hi: "แƒ’แƒแƒ›แƒแƒ แƒฏแƒแƒ‘แƒ!" introduction: แƒ’แƒฌแƒ”แƒ แƒ—, แƒ แƒแƒ—แƒ แƒ’แƒแƒชแƒœแƒแƒ‘แƒแƒ—, แƒ แƒแƒ› แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒแƒก แƒ•แƒ˜แƒฆแƒ”แƒ‘ %{org}-แƒจแƒ˜. แƒ”แƒก แƒแƒ แƒ˜แƒก แƒžแƒšแƒแƒขแƒคแƒแƒ แƒ›แƒ, แƒ แƒแƒ›แƒšแƒ˜แƒก แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒ˜แƒ—แƒแƒช แƒจแƒ”แƒ’แƒ•แƒ˜แƒซแƒšแƒ˜แƒ แƒ’แƒแƒ“แƒแƒ•แƒฌแƒงแƒ•แƒ˜แƒขแƒแƒ—, แƒ แƒแƒ’แƒแƒ แƒ˜ แƒฅแƒแƒšแƒแƒฅแƒ˜ แƒ’แƒ•แƒ˜แƒœแƒ“แƒ แƒ แƒแƒ› แƒ’แƒ•แƒฅแƒแƒœแƒ“แƒ”แƒก. แƒแƒ› แƒ›แƒ˜แƒ–แƒœแƒ˜แƒ—, แƒจแƒ”แƒ•แƒฅแƒ›แƒ”แƒœแƒ˜ แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒกแƒแƒ›แƒแƒฅแƒแƒšแƒแƒฅแƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒ“แƒ แƒแƒ›แƒŸแƒแƒ›แƒแƒ“, แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ›แƒฎแƒแƒ แƒ“แƒแƒญแƒ”แƒ แƒ แƒ›แƒ”แƒกแƒแƒญแƒ˜แƒ แƒแƒ”แƒ‘แƒ! แƒœแƒฃ แƒฆแƒ”แƒšแƒแƒ•แƒ—, แƒซแƒแƒšแƒ˜แƒแƒœ แƒ›แƒแƒ แƒขแƒ˜แƒ•แƒ˜แƒ แƒ“แƒ แƒ‘แƒ”แƒ•แƒ  แƒ“แƒ แƒแƒก แƒแƒ  แƒฌแƒแƒ’แƒแƒ แƒ—แƒ›แƒ”แƒ•แƒ—. support: "แƒฃแƒ‘แƒ แƒแƒšแƒแƒ“ แƒ“แƒแƒแƒญแƒ˜แƒ แƒ” 'แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก' แƒฆแƒ˜แƒšแƒแƒ™แƒก. แƒกแƒแƒœแƒแƒ› แƒฆแƒ˜แƒšแƒแƒ™แƒก แƒ“แƒแƒแƒฌแƒ•แƒ”แƒ‘แƒ˜ แƒ“แƒ แƒแƒ›แƒ˜แƒ— แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก แƒ“แƒแƒแƒฌแƒ˜แƒœแƒแƒฃแƒ แƒ”แƒ‘, แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒ แƒ›แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒกแƒแƒช แƒ’แƒแƒ”แƒชแƒœแƒ. แƒกแƒแƒ™แƒ แƒ”แƒ‘แƒฃแƒšแƒแƒก แƒ›แƒ˜แƒ”แƒ  แƒ’แƒแƒœแƒฎแƒแƒ แƒชแƒ˜แƒ”แƒšแƒ“แƒ”แƒ‘แƒ แƒ›แƒฎแƒแƒšแƒแƒ“ แƒ˜แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ—แƒ แƒ›แƒแƒฅแƒกแƒ˜แƒ›แƒแƒšแƒฃแƒ  แƒ แƒแƒแƒ“แƒ”แƒœแƒแƒ‘แƒแƒก แƒ›แƒแƒแƒ’แƒ แƒแƒ•แƒ”แƒ‘แƒก. แƒ˜แƒ›แƒ”แƒ“แƒ˜ แƒ›แƒแƒฅแƒ•แƒก, แƒแƒ›แƒ˜แƒก แƒ›แƒ˜แƒฆแƒฌแƒ”แƒ•แƒแƒจแƒ˜ แƒ“แƒแƒ›แƒ”แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ˜!" share: "แƒ“แƒ แƒ—แƒฃแƒ™แƒ˜ แƒฉแƒ”แƒ›แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก แƒ›แƒ”แƒ’แƒแƒ‘แƒ แƒ”แƒ‘แƒก แƒ“แƒ แƒแƒฎแƒšแƒแƒ‘แƒšแƒ”แƒ‘แƒกแƒแƒช แƒ’แƒแƒฃแƒ–แƒ˜แƒแƒ แƒ”แƒ‘, แƒ™แƒ˜แƒ“แƒ”แƒ• แƒฃแƒคแƒ แƒ แƒ“แƒแƒ›แƒ”แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ˜!" polls: all: "แƒงแƒ•แƒ”แƒšแƒ" no_dates: "แƒ—แƒแƒ แƒ˜แƒฆแƒ˜ แƒ’แƒแƒœแƒกแƒแƒ–แƒฆแƒ•แƒ แƒฃแƒšแƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก" dates: "%{open_at}-แƒ“แƒแƒœ %{closed_at}-แƒ›แƒ“แƒ”" final_date: "แƒกแƒแƒ‘แƒแƒšแƒแƒ แƒจแƒ”แƒ“แƒ”แƒ’แƒ”แƒ‘แƒ˜" index: filters: current: "แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ”" expired: "แƒ“แƒแƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜" title: "แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ" participate_button: "แƒแƒ› แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒแƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ" participate_button_expired: "แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒ“แƒแƒกแƒ แƒฃแƒšแƒ“แƒ" no_geozone_restricted: "แƒ›แƒ—แƒ”แƒšแƒ˜ แƒฅแƒแƒšแƒแƒฅแƒ˜" geozone_restricted: "แƒแƒšแƒฅแƒ”แƒ‘แƒ˜" geozone_info: "แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ˜แƒก แƒ›แƒ˜แƒฆแƒ”แƒ‘แƒ แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒจแƒ”แƒ›แƒ“แƒ”แƒ’แƒ˜ แƒ’แƒ”แƒ. แƒ–แƒแƒœแƒ˜แƒก แƒกแƒแƒงแƒแƒ•แƒ”แƒšแƒ—แƒแƒ แƒแƒฆแƒฌแƒ”แƒ แƒแƒจแƒ˜: " already_answer: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒ™แƒ•แƒ” แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ แƒแƒ› แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒแƒจแƒ˜" not_logged_in: "แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒฆแƒ”แƒ‘แƒแƒ“ แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒœแƒ“แƒ แƒ’แƒแƒ˜แƒแƒ แƒแƒ— แƒแƒ•แƒขแƒแƒ แƒ˜แƒ–แƒแƒชแƒ˜แƒ แƒแƒœ แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ" unverified: "แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒฆแƒ”แƒ‘แƒแƒ“ แƒกแƒแƒญแƒ˜แƒ แƒแƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜ แƒ’แƒแƒ“แƒแƒ›แƒแƒฌแƒ›แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒงแƒแƒก" cant_answer: "แƒ”แƒก แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒแƒ  แƒแƒ แƒ˜แƒก แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ’แƒ”แƒแƒ’แƒ แƒแƒคแƒ˜แƒฃแƒšแƒ˜ แƒ–แƒแƒœแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก" section_header: icon_alt: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒœแƒ˜แƒจแƒแƒœแƒ˜ title: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ help: แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ section_footer: title: แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ description: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒแƒ แƒ˜แƒก แƒ›แƒแƒฅแƒแƒšแƒแƒฅแƒ”แƒ—แƒ แƒฉแƒแƒ แƒ—แƒฃแƒšแƒแƒ‘แƒ˜แƒก แƒ›แƒ”แƒฅแƒแƒœแƒ˜แƒ–แƒ›แƒ˜, แƒ แƒแƒ›แƒšแƒ˜แƒก แƒ›แƒ”แƒจแƒ•แƒ”แƒแƒ‘แƒ˜แƒ—แƒแƒช แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒฃแƒคแƒšแƒ”แƒ‘แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” แƒžแƒ˜แƒ แƒ”แƒ‘แƒก แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒ’แƒแƒ“แƒแƒฌแƒงแƒ•แƒ”แƒขแƒ˜แƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒฆแƒ”แƒ‘แƒ˜แƒก แƒžแƒ แƒแƒชแƒ”แƒกแƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ no_polls: "แƒฆแƒ˜แƒ แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒแƒ  แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ." show: already_voted_in_booth: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒ™แƒ•แƒ” แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ แƒ แƒ”แƒแƒšแƒฃแƒ  แƒ™แƒแƒ‘แƒ˜แƒœแƒแƒจแƒ˜. แƒฎแƒ”แƒšแƒ›แƒ”แƒแƒ แƒ”แƒ“ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ." already_voted_in_web: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒ™แƒ•แƒ” แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ แƒแƒ› แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒแƒจแƒ˜. แƒฎแƒ”แƒšแƒแƒฎแƒแƒšแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ แƒžแƒ˜แƒ แƒ•แƒแƒœแƒ“แƒ”แƒš แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒก แƒฉแƒแƒแƒœแƒแƒชแƒ•แƒšแƒ”แƒ‘แƒก." back: แƒ™แƒ”แƒœแƒญแƒ˜แƒกแƒงแƒ แƒแƒจแƒ˜ แƒ“แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒ cant_answer_not_logged_in: "แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒฆแƒ”แƒ‘แƒแƒ“ แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒœแƒ“แƒ แƒ’แƒแƒ˜แƒแƒ แƒแƒ— %{signin} แƒแƒœ %{signup}." comments_tab: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ cant_answer_verify: "แƒžแƒแƒกแƒฃแƒฎแƒ˜แƒก แƒ“แƒแƒกแƒแƒคแƒ˜แƒฅแƒกแƒ˜แƒ แƒ”แƒ‘แƒšแƒแƒ“ แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒœแƒ“แƒ แƒ›แƒแƒแƒฎแƒ“แƒ˜แƒœแƒแƒ— %{verify_link}." verify_link: "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ“แƒแƒ“แƒแƒกแƒขแƒฃแƒ แƒ”แƒ‘แƒ" cant_answer_expired: "แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒ“แƒแƒกแƒ แƒฃแƒšแƒ“แƒ." cant_answer_wrong_geozone: "แƒ”แƒก แƒจแƒ”แƒ™แƒ˜แƒ—แƒฎแƒ•แƒ แƒแƒ  แƒแƒ แƒ˜แƒก แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ’แƒ”แƒแƒ’แƒ แƒแƒคแƒ˜แƒฃแƒšแƒ˜ แƒ–แƒแƒœแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก." more_info_title: "แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ" documents: แƒ“แƒแƒ™แƒฃแƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒ˜ zoom_plus: แƒกแƒฃแƒ แƒแƒ—แƒ˜แƒก แƒ’แƒแƒ“แƒ˜แƒ“แƒ”แƒ‘แƒ read_more: "%{answer}-แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ แƒ›แƒ”แƒขแƒ˜แƒก แƒ’แƒแƒ’แƒ”แƒ‘แƒ" read_less: "%{answer}-แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ แƒœแƒแƒ™แƒšแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ”แƒ‘แƒ" videos: "แƒกแƒฎแƒ•แƒ แƒกแƒ”แƒ แƒ•แƒ”แƒ แƒ–แƒ” แƒ’แƒแƒœแƒ—แƒแƒ•แƒกแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ•แƒ˜แƒ“แƒ”แƒ" info_menu: "แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ" stats_menu: "แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒ—แƒ แƒกแƒขแƒแƒขแƒ˜แƒกแƒขแƒ˜แƒ™แƒ" results_menu: "แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒจแƒ”แƒ“แƒ”แƒ’แƒ”แƒ‘แƒ˜" stats: total_votes: "แƒ’แƒแƒชแƒ”แƒ›แƒฃแƒšแƒ˜ แƒฎแƒ›แƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒ”แƒ แƒ—แƒ แƒ แƒแƒแƒ“แƒ”แƒœแƒแƒ‘แƒ" votes: "แƒฎแƒ›แƒ”แƒ‘แƒ˜" web: "WEB" mail: "MAIL" booth: "แƒ™แƒแƒ‘แƒ˜แƒœแƒ" total: "แƒฏแƒแƒ›แƒจแƒ˜" valid: "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ˜" white: "แƒกแƒ แƒฃแƒšแƒ˜แƒแƒ“ แƒชแƒแƒ แƒ˜แƒ”แƒšแƒ˜" null_votes: "แƒ‘แƒแƒ—แƒ˜แƒšแƒ˜" results: title: "แƒ™แƒ˜แƒ—แƒฎแƒ•แƒ”แƒ‘แƒ˜" most_voted_answer: "แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒ›แƒ”แƒขแƒ˜ แƒฎแƒ›แƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” แƒžแƒแƒกแƒฃแƒฎแƒ˜: " poll_header: back_to_proposal: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒจแƒ˜ แƒ“แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒ poll_questions: show: vote_answer: "%{answer}-แƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ" voted: "%{answer}-แƒ–แƒ” แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒ™แƒ•แƒ” แƒ›แƒ˜แƒ”แƒชแƒ˜แƒ— แƒฎแƒ›แƒ" proposal_notifications: new: title: "แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ" submit_button: "แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ" info_about_receivers: "แƒ”แƒก แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ แƒ’แƒแƒ˜แƒ’แƒ–แƒแƒ•แƒœแƒ”แƒ‘แƒ <strong>%{count} แƒแƒ“แƒแƒ›แƒ˜แƒแƒœแƒ—แƒแƒœ</strong> แƒ“แƒ แƒ›แƒ˜แƒกแƒ˜ แƒœแƒแƒฎแƒ•แƒ แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ˜แƒฅแƒœแƒ”แƒ‘แƒ %{proposal_page}.<br>แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ แƒแƒ  แƒฎแƒ“แƒ”แƒ‘แƒ แƒ›แƒแƒ›แƒ”แƒœแƒขแƒแƒšแƒฃแƒ แƒแƒ“. แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒ˜ แƒžแƒ”แƒ แƒ˜แƒแƒ“แƒฃแƒšแƒแƒ“ แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ‘แƒ”แƒœ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒก แƒ”แƒš.แƒคแƒแƒกแƒขแƒ˜แƒก แƒ›แƒ”แƒจแƒ•แƒ”แƒแƒ‘แƒ˜แƒ—." proposal_page: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ—แƒ แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜" show: back: "'แƒฉแƒ”แƒ›แƒก แƒแƒฅแƒขแƒ˜แƒ•แƒแƒ‘แƒแƒจแƒ˜' แƒ“แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒ" shared: edit: "แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ" save: "แƒ“แƒแƒ›แƒแƒฎแƒกแƒแƒ•แƒ แƒ”แƒ‘แƒ" delete: "แƒฌแƒแƒจแƒšแƒ" "yes": "แƒ“แƒ˜แƒแƒฎ" "no": "แƒแƒ แƒ" search_results: "แƒซแƒ”แƒ‘แƒœแƒ˜แƒก แƒจแƒ”แƒ“แƒ”แƒ’แƒ”แƒ‘แƒ˜" advanced_search: author_type: "แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ˜แƒก แƒแƒ•แƒขแƒแƒ แƒ˜แƒก แƒ›แƒ˜แƒฎแƒ”แƒ“แƒ•แƒ˜แƒ—" author_type_blank: "แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ˜แƒก แƒจแƒ”แƒ แƒฉแƒ”แƒ•แƒ" date: "แƒ—แƒแƒ แƒ˜แƒฆแƒ˜แƒก แƒ›แƒ˜แƒฎแƒ”แƒ“แƒ•แƒ˜แƒ—" date_placeholder: "DD/MM/YYYY" date_range_blank: "แƒ—แƒแƒ แƒ˜แƒฆแƒ˜แƒก แƒแƒ แƒฉแƒ”แƒ•แƒ" date_1: "แƒ‘แƒแƒšแƒ 24 แƒกแƒแƒแƒ—แƒจแƒ˜" date_2: "แƒ’แƒแƒกแƒฃแƒš แƒ™แƒ•แƒ˜แƒ แƒแƒจแƒ˜" date_3: "แƒ’แƒแƒกแƒฃแƒš แƒ—แƒ•แƒ”แƒก" date_4: "แƒ’แƒแƒกแƒฃแƒš แƒฌแƒ”แƒšแƒก" date_5: "แƒžแƒ”แƒ แƒกแƒแƒœแƒแƒšแƒ˜แƒ–แƒ”แƒ‘แƒฃแƒšแƒ˜" from: "แƒ“แƒแƒœ" general: "แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒ—" general_placeholder: "แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒ“แƒแƒฌแƒ”แƒ แƒ" search: "แƒคแƒ˜แƒšแƒขแƒ แƒ˜" title: "แƒ“แƒ”แƒขแƒแƒšแƒฃแƒ แƒ˜ แƒซแƒ”แƒ‘แƒœแƒ" to: "แƒ›แƒ“แƒ”" author_info: author_deleted: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ email_deleted: แƒ”แƒš.แƒคแƒแƒกแƒขแƒ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ back: แƒฃแƒ™แƒแƒœ แƒ“แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒ check: แƒจแƒ”แƒ แƒฉแƒ”แƒ•แƒ check_all: แƒงแƒ•แƒ”แƒšแƒ check_none: แƒแƒ แƒชแƒ”แƒ แƒ—แƒ˜ collective: แƒ™แƒแƒšแƒ”แƒฅแƒขแƒ˜แƒฃแƒ แƒ˜ flag: แƒ’แƒแƒกแƒแƒฉแƒ˜แƒ•แƒ แƒ”แƒ‘แƒ follow: "แƒ’แƒแƒ›แƒแƒฌแƒ”แƒ แƒ" following: "แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜" follow_entity: "%{entity} แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜" followable: budget_investment: create: notice: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒ’แƒแƒฎแƒ“แƒ˜แƒ— แƒแƒ› แƒกแƒแƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒžแƒ แƒแƒ”แƒฅแƒขแƒ˜แƒก แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜! <br> แƒแƒ›แƒ˜แƒ”แƒ แƒ˜แƒ“แƒแƒœ แƒงแƒ•แƒ”แƒšแƒ แƒชแƒ•แƒšแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ แƒ›แƒแƒ’แƒแƒฌแƒ•แƒ“แƒ˜แƒ— แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก." destroy: notice: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒแƒฆแƒแƒ  แƒฎแƒแƒ แƒ— แƒแƒ› แƒกแƒแƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒžแƒ แƒแƒ”แƒฅแƒขแƒ˜แƒก แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜! <br> แƒ—แƒฅแƒ•แƒ”แƒœ แƒ•แƒ”แƒฆแƒแƒ  แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ‘แƒ— แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก แƒแƒ› แƒžแƒ แƒแƒ”แƒฅแƒขแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒกแƒ˜แƒแƒฎแƒšแƒ”แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘." proposal: create: notice: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒ’แƒแƒฎแƒ“แƒ˜แƒ— แƒแƒ› แƒกแƒแƒ›แƒแƒฅแƒแƒšแƒแƒฅแƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜! <br> แƒแƒ›แƒ˜แƒ”แƒ แƒ˜แƒ“แƒแƒœ แƒงแƒ•แƒ”แƒšแƒ แƒชแƒ•แƒšแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ แƒ›แƒแƒ’แƒแƒฌแƒ•แƒ“แƒ˜แƒ— แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก." destroy: notice: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒแƒฆแƒแƒ  แƒฎแƒแƒ แƒ— แƒแƒ› แƒกแƒแƒ›แƒแƒฅแƒแƒšแƒแƒฅแƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜! <br> แƒ—แƒฅแƒ•แƒ”แƒœ แƒ•แƒ”แƒฆแƒแƒ  แƒ›แƒ˜แƒ˜แƒฆแƒ”แƒ‘แƒ— แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก แƒแƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒกแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒกแƒ˜แƒแƒฎแƒšแƒ”แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘." print: print_button: แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ˜แƒก แƒ‘แƒ”แƒญแƒ“แƒ•แƒ search: แƒซแƒ”แƒ‘แƒœแƒ show: แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ suggest: debate: found: one: "แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒ %{query}-แƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ”แƒ แƒ—แƒ˜ แƒ“แƒ”แƒ‘แƒแƒขแƒ˜ แƒ›แƒแƒ•แƒ˜แƒซแƒ˜แƒ”แƒ—. แƒแƒฎแƒšแƒ˜แƒก แƒ’แƒแƒฎแƒกแƒœแƒ˜แƒก แƒœแƒแƒชแƒ•แƒšแƒแƒ“, แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒจแƒ˜ แƒ›แƒ˜แƒ˜แƒฆแƒแƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ." other: "แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒ %{query}-แƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ แƒ›แƒแƒ•แƒ˜แƒซแƒ˜แƒ”แƒ—. แƒแƒฎแƒšแƒ˜แƒก แƒ’แƒแƒฎแƒกแƒœแƒ˜แƒก แƒกแƒแƒœแƒแƒชแƒ•แƒšแƒแƒ“ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒจแƒ˜ แƒ›แƒ˜แƒ˜แƒฆแƒแƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ." message: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒฎแƒ”แƒ“แƒแƒ•แƒ— %{limit} แƒ“แƒ”แƒ‘แƒแƒขแƒก (แƒกแƒฃแƒš %{count}), แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒ˜แƒก %{query}' แƒจแƒ”แƒ›แƒชแƒ•แƒ”แƒšแƒแƒ‘แƒ˜แƒ—" see_all: "แƒงแƒ•แƒ”แƒšแƒแƒก แƒœแƒแƒฎแƒ•แƒ" budget_investment: found: one: "%{query} - แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒแƒกแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ”แƒ แƒ—แƒ˜ แƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒ›แƒแƒ•แƒ˜แƒซแƒ˜แƒ”แƒ—. แƒแƒฎแƒšแƒ˜แƒก แƒ’แƒแƒฎแƒกแƒœแƒ˜แƒก แƒœแƒแƒชแƒ•แƒšแƒแƒ“, แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒจแƒ˜ แƒ›แƒ˜แƒ˜แƒฆแƒแƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ." other: "แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒ %{query}-แƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ แƒ›แƒแƒ•แƒ˜แƒซแƒ˜แƒ”แƒ—. แƒแƒฎแƒšแƒ˜แƒก แƒ’แƒแƒฎแƒกแƒœแƒ˜แƒก แƒกแƒแƒœแƒแƒชแƒ•แƒšแƒแƒ“ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒจแƒ˜ แƒ›แƒ˜แƒ˜แƒฆแƒแƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ." message: "'%{query}'- แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒ˜แƒก แƒจแƒ”แƒ›แƒชแƒ•แƒ”แƒšแƒแƒ‘แƒ˜แƒ—, แƒฏแƒแƒ›แƒจแƒ˜ %{count} แƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒ›แƒแƒ˜แƒซแƒ”แƒ‘แƒœแƒ. แƒœแƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ˜แƒ %{limit}" see_all: "แƒงแƒ•แƒ”แƒšแƒแƒก แƒœแƒแƒฎแƒ•แƒ" proposal: found: one: "%{query} - แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒแƒกแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ”แƒ แƒ—แƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒ›แƒแƒ•แƒ˜แƒซแƒ˜แƒ”แƒ—. แƒแƒฎแƒšแƒ˜แƒก แƒ’แƒแƒฎแƒกแƒœแƒ˜แƒก แƒœแƒแƒชแƒ•แƒšแƒแƒ“, แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒจแƒ˜ แƒ›แƒ˜แƒ˜แƒฆแƒแƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ" other: "แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒ %{query}-แƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ แƒ›แƒแƒ•แƒ˜แƒซแƒ˜แƒ”แƒ—. แƒแƒฎแƒšแƒ˜แƒก แƒ’แƒแƒฎแƒกแƒœแƒ˜แƒก แƒกแƒแƒœแƒแƒชแƒ•แƒšแƒแƒ“ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒจแƒ˜ แƒ›แƒ˜แƒ˜แƒฆแƒแƒ— แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ" message: "แƒ—แƒฅแƒ•แƒ”แƒœ แƒฎแƒ”แƒ“แƒแƒ•แƒ— %{limit} แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒก (แƒกแƒฃแƒš %{count}), แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒ”แƒœ แƒกแƒแƒซแƒ˜แƒ”แƒ‘แƒ แƒกแƒ˜แƒขแƒงแƒ•แƒแƒก '%{query}'" see_all: "แƒงแƒ•แƒ”แƒšแƒแƒก แƒœแƒแƒฎแƒ•แƒ" tags_cloud: tags: แƒคแƒแƒ แƒ—แƒแƒ“ แƒ’แƒแƒœแƒฎแƒ˜แƒšแƒฃแƒšแƒ˜ districts: "แƒแƒšแƒฅแƒ”แƒ‘แƒ˜" districts_list: "แƒแƒšแƒฅแƒ”แƒ‘แƒ˜แƒก แƒฉแƒแƒ›แƒแƒœแƒแƒ—แƒ•แƒแƒšแƒ˜" categories: "แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ”แƒ‘แƒ˜" target_blank: " (แƒ‘แƒ›แƒฃแƒšแƒ˜ แƒ’แƒแƒ˜แƒฎแƒกแƒœแƒ”แƒ‘แƒ แƒแƒฎแƒแƒš แƒคแƒแƒœแƒฏแƒแƒ แƒแƒจแƒ˜)" you_are_in: "แƒจแƒ”แƒกแƒฃแƒšแƒ˜ แƒฎแƒแƒ แƒ—" unflag: แƒ›แƒแƒœแƒ˜แƒจแƒ•แƒœแƒ˜แƒก แƒ›แƒแƒฎแƒกแƒœแƒ unfollow_entity: "%{entity} แƒ’แƒแƒ›แƒแƒฌแƒ”แƒ แƒ˜แƒก แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ" outline: searcher: แƒ›แƒแƒซแƒ˜แƒ”แƒ‘แƒ”แƒšแƒ˜ go_to_page: "แƒ’แƒแƒ“แƒแƒกแƒ•แƒšแƒ " share: แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ orbit: previous_slide: แƒฌแƒ˜แƒœแƒ แƒกแƒšแƒแƒ˜แƒ“แƒ˜ next_slide: แƒจแƒ”แƒ›แƒ“แƒ”แƒ’แƒ˜ แƒกแƒšแƒแƒ˜แƒ“แƒ˜ documentation: แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒ“แƒแƒ™แƒฃแƒ›แƒ”แƒœแƒขแƒแƒชแƒ˜แƒ view_mode: title: แƒœแƒแƒฎแƒ•แƒ˜แƒก แƒ แƒ”แƒŸแƒ˜แƒ›แƒ˜ cards: แƒ‘แƒแƒ แƒแƒ—แƒ”แƒ‘แƒ˜ list: แƒฉแƒแƒ›แƒแƒœแƒแƒ—แƒ•แƒแƒšแƒ˜ recommended_index: title: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ see_more: แƒกแƒฎแƒ•แƒ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ hide: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒ›แƒแƒšแƒ•แƒ translations: select_language_prompt: แƒ”แƒœแƒ˜แƒก แƒแƒ แƒฉแƒ”แƒ•แƒ remove_language: แƒ”แƒœแƒ˜แƒก แƒฌแƒแƒจแƒšแƒ add_language: แƒ”แƒœแƒ˜แƒก แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ languages_in_use: zero: "แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒแƒจแƒ˜แƒ 0 แƒ”แƒœแƒ" one: "แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒแƒจแƒ˜แƒ 1 แƒ”แƒœแƒ" other: "แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒแƒจแƒ˜แƒ %{count} แƒ”แƒœแƒ" social: facebook: "%{org} Facebook" twitter: "%{org} Twitter" youtube: "%{org} YouTube" whatsapp: WhatsApp telegram: "%{org} Telegram" instagram: "%{org} Instagram" stats: index: visits: แƒ•แƒ˜แƒ–แƒ˜แƒขแƒ”แƒ‘แƒ˜ debates: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ proposals: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ comments: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ proposal_votes: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ–แƒ” แƒ›แƒ˜แƒชแƒ”แƒ›แƒฃแƒšแƒ˜ แƒฎแƒ›แƒ”แƒ‘แƒ˜ debate_votes: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ–แƒ” แƒ›แƒ˜แƒชแƒ”แƒ›แƒฃแƒšแƒ˜ แƒฎแƒ›แƒ”แƒ‘แƒ˜ comment_votes: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ–แƒ” แƒ›แƒ˜แƒชแƒ”แƒ›แƒฃแƒšแƒ˜ แƒฎแƒ›แƒ”แƒ‘แƒ˜ votes: แƒฎแƒ›แƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒ”แƒ แƒ—แƒ แƒ แƒแƒแƒ“แƒ”แƒœแƒแƒ‘แƒ verified_users: แƒ’แƒแƒ“แƒแƒ›แƒแƒฌแƒ›แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒ˜ unverified_users: แƒ’แƒแƒ“แƒแƒฃแƒ›แƒแƒฌแƒ›แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒ˜ unauthorized: default: แƒแƒ› แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ˜แƒก แƒฃแƒคแƒšแƒ”แƒ‘แƒ แƒแƒ  แƒ’แƒแƒฅแƒ•แƒ—. manage: all: "%{subject}-แƒ–แƒ” %{action} แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒฃแƒคแƒšแƒ”แƒ‘แƒ แƒแƒ  แƒ’แƒแƒฅแƒ•แƒ—." users: login_to_comment: "แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜แƒก แƒ“แƒแƒกแƒแƒขแƒแƒ•แƒ”แƒ‘แƒšแƒแƒ“ แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒœแƒ“แƒ แƒ’แƒแƒ˜แƒแƒ แƒแƒ— %{signin} แƒแƒœ %{signup}." login_to_continue: "แƒ’แƒแƒกแƒแƒ’แƒ แƒซแƒ”แƒšแƒ”แƒ‘แƒšแƒแƒ“ แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒœแƒ“แƒ แƒ’แƒแƒ˜แƒแƒ แƒแƒ— %{signin} แƒแƒœ %{signup}." signin: "แƒแƒ•แƒขแƒแƒ แƒ˜แƒ–แƒแƒชแƒ˜แƒ" signup: "แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ" verify_account: "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ“แƒแƒ“แƒแƒกแƒขแƒฃแƒ แƒ”แƒ‘แƒ" direct_messages: new: direct_messages_bloqued: "แƒแƒ› แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒแƒ  แƒกแƒฃแƒ แƒก แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒ’แƒ–แƒแƒ•แƒœแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒฆแƒ”แƒ‘แƒ" submit_button: แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ title: แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ %{receiver}-แƒ—แƒแƒœ verified_only: แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒกแƒแƒ’แƒ–แƒแƒ•แƒœแƒแƒ“ แƒ›แƒแƒแƒฎแƒ“แƒ˜แƒœแƒ”แƒ— %{verify_account} show: receiver: แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ แƒ’แƒแƒ˜แƒ’แƒ–แƒแƒ•แƒœแƒ %{receiver}-แƒ—แƒแƒœ show: deleted: แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜ deleted_debate: แƒ”แƒก แƒ“แƒ”แƒ‘แƒแƒขแƒ˜ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ deleted_proposal: แƒ”แƒก แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ deleted_budget_investment: แƒ”แƒก แƒกแƒแƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒžแƒ แƒแƒ”แƒฅแƒขแƒ˜ แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ˜แƒ proposals: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ proposals_status: แƒกแƒขแƒแƒขแƒฃแƒกแƒ˜ debates: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ budget_investments: แƒกแƒแƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ แƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ”แƒ‘แƒ˜ comments: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜ actions: แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜ filters: comments: one: 1 แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ other: "%{count} แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜" debates: one: 1 แƒ“แƒ”แƒ‘แƒแƒขแƒ˜ other: "%{count} แƒ“แƒ”แƒ‘แƒแƒขแƒ˜" proposals: one: 1 แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ other: "%{count} แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ" budget_investments: one: 1 แƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ other: "%{count} แƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ" follows: one: '%{count} แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜' other: "%{count} แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜" no_activity: แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒแƒ  แƒ’แƒแƒœแƒฃแƒฎแƒแƒ แƒชแƒ˜แƒ”แƒšแƒ”แƒ‘แƒ˜แƒ แƒ แƒแƒ˜แƒ›แƒ” แƒกแƒแƒฎแƒ˜แƒก แƒกแƒแƒฏแƒแƒ แƒ แƒแƒฅแƒขแƒ˜แƒ•แƒแƒ‘แƒ no_private_messages: "แƒแƒ› แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒแƒ  แƒกแƒฃแƒ แƒก แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒฆแƒ”แƒ‘แƒ." private_activity: แƒแƒ› แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒแƒ  แƒกแƒฃแƒ แƒก แƒแƒฅแƒขแƒ˜แƒ•แƒแƒ‘แƒ˜แƒก แƒฉแƒแƒ›แƒแƒœแƒแƒ—แƒ•แƒแƒšแƒ˜แƒก แƒ’แƒแƒกแƒแƒฏแƒแƒ แƒแƒ”แƒ‘แƒ. send_private_message: "แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ" delete_alert: "แƒœแƒแƒ›แƒ“แƒ•แƒ˜แƒšแƒแƒ“ แƒ’แƒกแƒฃแƒ แƒ— แƒกแƒแƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒžแƒ แƒแƒ”แƒฅแƒขแƒ˜แƒก แƒฌแƒแƒจแƒšแƒ? แƒ›แƒ˜แƒกแƒ˜ แƒแƒฆแƒ“แƒ’แƒ”แƒœแƒ แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ˜แƒฅแƒœแƒ”แƒ‘แƒ" proposals: retired: "แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ" draft: แƒ›แƒแƒœแƒแƒฎแƒแƒ–แƒ˜ published: แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ”แƒ‘แƒฃแƒšแƒ˜ see: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ" actions: แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜ retired_help_text: แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ—แƒ แƒ“แƒแƒคแƒ แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก แƒ“แƒ”แƒแƒฅแƒขแƒ˜แƒ•แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก votes: agree: แƒ•แƒ”แƒ—แƒแƒœแƒฎแƒ›แƒ”แƒ‘แƒ˜ anonymous: แƒ–แƒ”แƒ“แƒ›แƒ”แƒขแƒแƒ“ แƒ‘แƒ”แƒ•แƒ แƒ˜ แƒแƒœแƒแƒœแƒ˜แƒ›แƒฃแƒ แƒ˜ แƒฎแƒ›แƒแƒ แƒ˜แƒ›แƒ˜แƒกแƒแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ› แƒ”แƒก แƒฎแƒ›แƒ แƒฉแƒแƒ˜แƒ—แƒ•แƒแƒšแƒแƒก %{verify_account}. comment_unauthenticated: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒชแƒ”แƒ›แƒแƒ“ แƒ’แƒแƒ˜แƒแƒ แƒ”แƒ— %{signin} แƒแƒœ %{signup}. disagree: แƒแƒ  แƒ•แƒ”แƒ—แƒแƒœแƒฎแƒ›แƒ”แƒ‘แƒ˜ organizations: แƒแƒ แƒ’แƒแƒœแƒ˜แƒ–แƒแƒชแƒ˜แƒ”แƒ‘แƒก แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒแƒ  แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— supports: แƒ›แƒฎแƒแƒ แƒ“แƒแƒ›แƒญแƒ”แƒ แƒ”แƒ‘แƒ˜ verified_only: แƒ›แƒฎแƒแƒšแƒแƒ“ แƒ’แƒแƒ“แƒแƒ›แƒแƒฌแƒ›แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒแƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ; %{verify_account}. budget_investments: not_logged_in: แƒ’แƒแƒกแƒแƒ’แƒ แƒซแƒ”แƒšแƒ”แƒ‘แƒšแƒแƒ“ แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒœแƒ“แƒ แƒ’แƒแƒ˜แƒแƒ แƒแƒ— %{signin} แƒแƒœ %{signup}. not_verified: แƒ›แƒฎแƒแƒšแƒแƒ“ แƒ’แƒแƒ“แƒแƒ›แƒแƒฌแƒ›แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ›แƒฅแƒแƒœแƒ” แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒกแƒแƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒžแƒ แƒแƒ”แƒฅแƒขแƒ”แƒ‘แƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ; %{verify_account}. organization: แƒแƒ แƒ’แƒแƒœแƒ˜แƒ–แƒแƒชแƒ˜แƒ”แƒ‘แƒก แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒแƒ  แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— unfeasible: แƒแƒ แƒแƒ’แƒแƒœแƒฎแƒแƒ แƒชแƒ˜แƒ”แƒšแƒ”แƒ‘แƒแƒ“ แƒกแƒแƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒžแƒ แƒแƒ”แƒฅแƒขแƒ”แƒ‘แƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒจแƒ”แƒฃแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ not_voting_allowed: แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ˜แƒก แƒคแƒแƒ–แƒ แƒ“แƒแƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜แƒ different_heading_assigned: one: "แƒกแƒแƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒžแƒ แƒแƒ”แƒฅแƒขแƒ”แƒ‘แƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒ›แƒฎแƒแƒšแƒแƒ“ %{count} แƒแƒšแƒฅแƒจแƒ˜ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ—. แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒ™แƒ•แƒ” แƒ›แƒ”แƒ˜แƒชแƒ˜แƒ— แƒฎแƒ›แƒ %{supported_headings}-แƒจแƒ˜." other: "แƒกแƒแƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ แƒžแƒ แƒแƒ”แƒฅแƒขแƒ”แƒ‘แƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ แƒ›แƒฎแƒแƒšแƒแƒ“ %{count} แƒ แƒแƒ˜แƒแƒœแƒจแƒ˜ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ—. แƒ—แƒฅแƒ•แƒ”แƒœ แƒฃแƒ™แƒ•แƒ” แƒ›แƒ”แƒ˜แƒชแƒ˜แƒ— แƒฎแƒ›แƒ %{supported_headings}-แƒจแƒ˜." welcome: feed: most_active: debates: "แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒแƒฅแƒขแƒ˜แƒฃแƒ แƒ˜ แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜" proposals: "แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒแƒฅแƒขแƒ˜แƒฃแƒ แƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜" processes: "แƒฆแƒ˜แƒ แƒžแƒ แƒแƒชแƒ”แƒกแƒ”แƒ‘แƒ˜" see_all_debates: แƒงแƒ•แƒ”แƒšแƒ แƒ“แƒ”แƒ‘แƒแƒขแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ see_all_proposals: แƒงแƒ•แƒ”แƒšแƒ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ see_all_processes: แƒงแƒ•แƒ”แƒšแƒ แƒžแƒ แƒแƒชแƒ”แƒกแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ process_label: แƒžแƒ แƒแƒชแƒ”แƒกแƒ˜ see_process: แƒžแƒ แƒแƒชแƒ”แƒกแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ cards: title: แƒ’แƒแƒ›แƒแƒ แƒฉแƒ”แƒฃแƒšแƒ˜ recommended: title: แƒ—แƒฅแƒ•แƒ”แƒœแƒ—แƒ•แƒ˜แƒก แƒกแƒแƒ˜แƒœแƒขแƒ”แƒ แƒ”แƒกแƒ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ help: "แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒ“แƒ’แƒ”แƒœแƒ แƒฎแƒ“แƒ”แƒ‘แƒ แƒ˜แƒ› แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒกแƒ แƒ“แƒ แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒขแƒ”แƒ’แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒฎแƒ”แƒ“แƒ•แƒ˜แƒ—, แƒ แƒแƒ›แƒ”แƒšแƒ—แƒ แƒ’แƒแƒ›แƒแƒ›แƒฌแƒ”แƒ แƒ˜แƒช แƒ—แƒฅแƒ•แƒ”แƒœ แƒฎแƒแƒ แƒ—." debates: title: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜ btn_text_link: แƒงแƒ•แƒ”แƒšแƒ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ“แƒ”แƒ‘แƒแƒขแƒ˜ proposals: title: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜ btn_text_link: แƒงแƒ•แƒ”แƒšแƒ แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ budget_investments: title: แƒ แƒ”แƒ™แƒแƒ›แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ”แƒ‘แƒ˜ slide: "แƒ˜แƒฎแƒ˜แƒšแƒ”แƒ— %{title}" verification: i_dont_have_an_account: แƒแƒ  แƒ›แƒแƒฅแƒ•แƒก แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜ i_have_an_account: แƒฃแƒ™แƒ•แƒ” แƒ›แƒแƒฅแƒ•แƒก แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜ question: แƒฃแƒ™แƒ•แƒ” แƒ’แƒแƒฅแƒ•แƒ— แƒแƒœแƒ’แƒแƒ แƒ˜ แƒจแƒ”แƒฅแƒ›แƒœแƒ˜แƒšแƒ˜ %{org_name}-แƒจแƒ˜? title: แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ•แƒ”แƒ แƒ˜แƒคแƒ˜แƒ™แƒแƒชแƒ˜แƒ welcome: go_to_index: แƒแƒฎแƒšแƒ แƒแƒ แƒ, แƒ’แƒแƒ“แƒแƒ“แƒ˜แƒ— แƒ›แƒ—แƒแƒ•แƒแƒ  แƒ’แƒ•แƒ”แƒ แƒ“แƒ–แƒ” start_using_consul: แƒ›แƒ—แƒแƒ•แƒแƒ  แƒ’แƒ•แƒ”แƒ แƒ“แƒ–แƒ” แƒ’แƒแƒ“แƒแƒกแƒ•แƒšแƒ title: แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ user_permission_debates: แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ user_permission_info: แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒ— แƒ—แƒฅแƒ•แƒ”แƒœ แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ—... user_permission_proposal: แƒแƒฎแƒแƒšแƒ˜ แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ user_permission_support_proposal: แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ”แƒ‘แƒ–แƒ” แƒฎแƒ›แƒ˜แƒก แƒ›แƒ˜แƒชแƒ”แƒ›แƒ* user_permission_verify: "แƒแƒ› แƒคแƒฃแƒœแƒฅแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒ— แƒกแƒแƒ แƒ’แƒ”แƒ‘แƒšแƒแƒ‘แƒ˜แƒกแƒแƒ—แƒ•แƒ˜แƒก, แƒ“แƒแƒแƒ“แƒแƒกแƒขแƒฃแƒ แƒ”แƒ— แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜." user_permission_verify_info: "* แƒ›แƒฎแƒแƒšแƒแƒ“ แƒแƒฆแƒฌแƒ”แƒ แƒแƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ” แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก." user_permission_verify_my_account: แƒฉแƒ”แƒ›แƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ“แƒแƒ“แƒแƒกแƒขแƒฃแƒ แƒ”แƒ‘แƒ user_permission_votes: แƒกแƒแƒ‘แƒแƒšแƒแƒ แƒ™แƒ”แƒœแƒญแƒ˜แƒกแƒงแƒ แƒแƒจแƒ˜ แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ invisible_captcha: sentence_for_humans: "แƒ—แƒฃ แƒ แƒแƒ‘แƒแƒขแƒ˜ แƒแƒ  แƒฎแƒแƒ แƒ—, แƒแƒ  แƒ›แƒ˜แƒแƒฅแƒชแƒ˜แƒแƒ— แƒแƒ› แƒ•แƒ”แƒšแƒก แƒงแƒฃแƒ แƒแƒ“แƒฆแƒ”แƒ‘แƒ" timestamp_error_message: "แƒซแƒแƒšแƒ˜แƒแƒœ แƒ˜แƒฉแƒฅแƒแƒ แƒ”แƒ—, แƒ’แƒ—แƒฎแƒแƒ•แƒ— แƒกแƒชแƒแƒ“แƒแƒ— แƒฎแƒ”แƒšแƒแƒฎแƒšแƒ." related_content: title: "แƒ›แƒกแƒ’แƒแƒ•แƒกแƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ" add: "แƒ›แƒกแƒ’แƒแƒ•แƒกแƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ˜แƒก แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ" label: "แƒ‘แƒ›แƒฃแƒšแƒ˜ แƒ›แƒกแƒ’แƒแƒ•แƒก แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒกแƒ—แƒแƒœ" placeholder: "%{url}" help: "แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ— %{models}-แƒ˜แƒก แƒ‘แƒ›แƒฃแƒšแƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ %{org}-แƒ˜แƒก แƒฅแƒแƒšแƒ’แƒ˜แƒก แƒฅแƒ•แƒ”แƒจ." submit: "แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ" error: "แƒ‘แƒ›แƒฃแƒšแƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ˜. แƒ“แƒแƒกแƒแƒฌแƒงแƒ˜แƒกแƒจแƒ˜ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ— %{url}." error_itself: "แƒ‘แƒ›แƒฃแƒšแƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ˜. แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ”แƒ‘แƒ˜ แƒ˜แƒ“แƒ”แƒœแƒขแƒฃแƒ แƒ˜แƒ." success: "แƒ›แƒกแƒ’แƒแƒ•แƒกแƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒ“แƒแƒ”แƒ›แƒแƒขแƒ" is_related: "แƒ”แƒก แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒ™แƒแƒ•แƒจแƒ˜แƒ แƒจแƒ˜แƒ แƒซแƒ˜แƒ แƒ˜แƒ—แƒแƒ“ แƒจแƒ˜แƒœแƒแƒแƒ แƒกแƒ—แƒแƒœ?" score_positive: "แƒ“แƒ˜แƒแƒฎ" score_negative: "แƒแƒ แƒ" content_title: proposal: "แƒ˜แƒœแƒ˜แƒชแƒ˜แƒแƒขแƒ˜แƒ•แƒ" debate: "แƒ“แƒ”แƒ‘แƒแƒขแƒ”แƒ‘แƒ˜" budget_investment: "แƒกแƒแƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ แƒ˜แƒœแƒ•แƒ”แƒกแƒขแƒ˜แƒชแƒ˜แƒ" admin/widget: header: title: แƒแƒ“แƒ›แƒ˜แƒœแƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ annotator: help: alt: แƒจแƒ”แƒแƒ แƒฉแƒ˜แƒ”แƒ— แƒขแƒ”แƒฅแƒกแƒขแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ–แƒ”แƒช แƒ’แƒกแƒฃแƒ แƒ— แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜แƒก แƒ’แƒแƒ™แƒ”แƒ—แƒ”แƒ‘แƒ แƒ“แƒ แƒ“แƒแƒแƒญแƒ˜แƒ แƒ”แƒ— แƒฆแƒ˜แƒšแƒแƒ™แƒก แƒคแƒแƒœแƒฅแƒ แƒ˜แƒก แƒœแƒ˜แƒจแƒœแƒ˜แƒ—. text: แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜แƒก แƒ’แƒแƒกแƒแƒ™แƒ”แƒ—แƒ”แƒ‘แƒšแƒแƒ“ แƒ’แƒแƒ˜แƒแƒ แƒ”แƒ— %{sign_in} แƒแƒœ %{sign_up}. แƒจแƒ”แƒ›แƒ“แƒ”แƒ’ แƒ›แƒแƒœแƒ˜แƒจแƒœแƒ”แƒ— แƒขแƒ”แƒฅแƒกแƒขแƒ˜, แƒ แƒแƒ›แƒšแƒ˜แƒก แƒ™แƒแƒ›แƒ”แƒœแƒขแƒ˜แƒ แƒ”แƒ‘แƒแƒช แƒ’แƒกแƒฃแƒ แƒ— แƒ“แƒ แƒ“แƒแƒแƒฌแƒ”แƒฅแƒ˜แƒ— แƒฆแƒ˜แƒšแƒแƒ™แƒก แƒคแƒแƒœแƒฅแƒ แƒ˜แƒก แƒ’แƒแƒ›แƒแƒกแƒแƒฎแƒฃแƒšแƒ”แƒ‘แƒ˜แƒ—. title: แƒ แƒแƒ’แƒแƒ  แƒ’แƒแƒ•แƒแƒ™แƒ”แƒ—แƒ แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ˜ แƒแƒ› แƒ“แƒแƒ™แƒฃแƒ›แƒ”แƒœแƒขแƒ–แƒ”? links: form: delete_button: แƒฌแƒแƒจแƒšแƒ cancel_button: แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ nested_links: title: แƒ‘แƒ›แƒฃแƒšแƒ”แƒ‘แƒ˜ note: แƒกแƒแƒ˜แƒœแƒขแƒ”แƒ แƒ”แƒกแƒ แƒ‘แƒ›แƒฃแƒšแƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ add_new_link: แƒแƒฎแƒแƒšแƒ˜ แƒ‘แƒ›แƒฃแƒšแƒ˜แƒก แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ link_fields: label_placeholder: แƒ‘แƒ›แƒฃแƒšแƒ˜แƒก แƒ“แƒแƒกแƒแƒฎแƒ”แƒšแƒ”แƒ‘แƒ url_placeholder: แƒ‘แƒ›แƒฃแƒšแƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒ›แƒแƒ แƒ—แƒ˜ communities: show: surveys: แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ”แƒ‘แƒ˜ complete_survey: แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ˜แƒก แƒ“แƒแƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒ subnav: surveys: แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ”แƒ‘แƒ˜ poll: take_part: แƒ›แƒแƒœแƒแƒฌแƒ˜แƒšแƒ”แƒแƒ‘แƒ %{from}-แƒ“แƒแƒœ %{to}-แƒ›แƒ“แƒ” remote_translations: text: แƒ”แƒก แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒ”แƒœแƒแƒ–แƒ” แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก all_remote_translations_enqueued_text: แƒ’แƒแƒœแƒแƒแƒฎแƒšแƒ”แƒ— แƒ”แƒก แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜ แƒžแƒ”แƒ แƒ˜แƒแƒ“แƒฃแƒšแƒแƒ“, แƒ แƒแƒ—แƒ แƒ›แƒแƒกแƒ–แƒ” แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ แƒกแƒแƒกแƒฃแƒ แƒ•แƒ”แƒš แƒ”แƒœแƒแƒ–แƒ” แƒจแƒ”แƒซแƒšแƒแƒ—. create: enqueue_remote_translation: แƒ—แƒแƒ แƒ’แƒ›แƒแƒœแƒ”แƒ‘แƒ˜ แƒ›แƒแƒ—แƒฎแƒแƒ•แƒœแƒ˜แƒš แƒ˜แƒฅแƒœแƒ. button: แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜แƒก แƒ—แƒแƒ แƒ’แƒ›แƒœแƒ
{ "pile_set_name": "Github" }
๏ปฟ@page "/gantt-chart/taskbar-template" @using Syncfusion.Blazor.Gantt @using blazor_samples @using ej2_blazor_taskbartemplatedata @inherits SampleBaseComponent; <SampleDescription> <p>This sample visualizes the complete event schedule of the 90th Academy awards.Taskbars are customized using template support and timeline header is customized for a better view of the data.</p> </SampleDescription> <ActionDescription> <p>The Gantt Chart provides support for customizing taskbar UI using taskbar template feature. The <code>TaskbarTemplate</code> property accepts either string or HTML element`s ID value, which will be used as the template for the taskbars. The summary tasks and the milestone items can also customized using the <code>ParentTaskbarTemplate</code> and <code>MilestoneTemplate</code> properties. In this demo, we have customized the taskbar UI by using the HTML elements between the template tags and displays the data from custom columns. </p> </ActionDescription> <div class="col-lg-12 control-section"> <div class="content-wrapper"> <div class="row"> <SfGantt RowHeight="75" TaskbarHeight="65" ProjectStartDate="@ProjectStart" ProjectEndDate="@ProjectEnd" DurationUnit="DurationUnit.Minute" DateFormat="hh:mm a" DataSource="@TaskCollection" Height="450px" Width="100%" > <GanttTaskFields Id="TaskId" Name="TaskName" StartDate="StartDate" EndDate="EndDate" Duration="Duration" Progress="Progress" Dependency="Predecessor"></GanttTaskFields> <GanttColumns> <GanttColumn Field="TaskId" HeaderText="Event Id"></GanttColumn> <GanttColumn Field="TaskName" HeaderText="Event Name"></GanttColumn> <GanttColumn Field="StartDate" HeaderText="Start Time"></GanttColumn> <GanttColumn Field="EndDate" HeaderText="End Time"></GanttColumn> <GanttColumn Field="Winner" HeaderText="Winner"></GanttColumn> <GanttColumn Field="Movie" HeaderText="Movie"></GanttColumn> <GanttColumn Field="Performance" HeaderText="Moments / Performance Details"></GanttColumn> </GanttColumns> <GanttEventMarkers> <GanttEventMarker Day="@EventDay1" Label="Performance"></GanttEventMarker> <GanttEventMarker Day="@EventDay2" Label="Moments"></GanttEventMarker> <GanttEventMarker Day="@EventDay3" Label="Performance"></GanttEventMarker> <GanttEventMarker Day="@EventDay4" Label="Moments"></GanttEventMarker> <GanttEventMarker Day="@EventDay5" Label="Moments"></GanttEventMarker> <GanttEventMarker Day="@EventDay6" Label="Performance"></GanttEventMarker> <GanttEventMarker Day="@EventDay7" Label="Moments"></GanttEventMarker> </GanttEventMarkers> <GanttLabelSettings> <LeftLabelTemplate> <div class="e-left-label-inner-div" style="height:22px;margin-top:7px;"> <span class="e-label">@((context as TaskbarTemplateData.TaskbarData).GanttProperties.TaskName)</span> </div> </LeftLabelTemplate> </GanttLabelSettings> <GanttTemplates> <TaskbarTemplate> @if ((context as TaskbarTemplateData.TaskbarData).GanttProperties.TaskName == "Oscar moments") { <div class="e-gantt-child-taskbar e-custom-moments" style="height:68px;border-radius:5px;"> @if (((context as TaskbarTemplateData.TaskbarData).GanttProperties.Duration) < 4) { <img class="moments" height="32" width="44" /> } else { <img class="moments" height="32" width="32" /> <span class="e-task-label" style="position:absolute;top:15px;font-size:12px;text-overflow:ellipsis;height:90%;overflow:hidden;">@((context as dynamic).Performance)</span> } </div> } else if ((context as TaskbarTemplateData.TaskbarData).GanttProperties.TaskName == "Oscar performance") { <div class="e-gantt-child-taskbar e-custom-performance" style="height:68px;border-radius:5px;"> @if (((context as TaskbarTemplateData.TaskbarData).GanttProperties.Duration) <= 5) { <img class="face-mask" height="32" width="32" /> } else { <img class="face-mask" height="32" width="32" /> <span class="e-task-label" style="position:absolute;top:5px;font-size:12px;text-overflow:ellipsis;height:90%;overflow:hidden;">@((context as TaskbarTemplateData.TaskbarData).Performance)</span> } </div> } else { <div class="e-gantt-parent-taskbar e-custom-parent" style="height:68px;border-radius:5px;text-overflow:ellipsis;"> @if (((context as TaskbarTemplateData.TaskbarData).GanttProperties.Duration) < 4) { <img class="oscar" height="32" width="32" /> } else { @if (!string.IsNullOrEmpty(((context as TaskbarTemplateData.TaskbarData).Winner)) && !string.IsNullOrEmpty(((context as TaskbarTemplateData.TaskbarData).Movie))) { <img class="oscar" height="32" width="32" /> <span class="e-task-label" style="position:absolute; top:13px;font-size:14px;">@((context as TaskbarTemplateData.TaskbarData).Winner)</span> <span class="e-task-label" style="position:absolute;top:33px;font-size:10px;text-overflow:ellipsis;">@((context as TaskbarTemplateData.TaskbarData).Movie)</span> } else if (!string.IsNullOrEmpty(((context as TaskbarTemplateData.TaskbarData).Movie))) { <img class="oscar" height="32" width="32" /> <span class="e-task-label" style="position:absolute; top:18px;font-size:12px;text-overflow:ellipsis;">@((context as TaskbarTemplateData.TaskbarData).Movie)</span> } else { <span class="e-task-label"></span> } } </div> } </TaskbarTemplate> <MilestoneTemplate> <div style="margin-top:-7px;"> <div class="e-gantt-milestone" style="position:absolute;"> <img class="moments" height="24" width="48" /> <div class="e-milestone-top" style="border-right-width:26px; margin-top: -24px;border-left-width:26px;border-bottom-width:26px;"></div> <div class="e-milestone-bottom" style="top:26px;border-right-width:26px; border-left-width:26px; border-top-width:26px;"></div> </div> </div> </MilestoneTemplate> </GanttTemplates> <GanttTimelineSettings TimelineUnitSize="60"> <GanttTopTierSettings Unit="TimelineViewMode.Hour" Format="MMM dd, yyyy"></GanttTopTierSettings> <GanttBottomTierSettings Unit="TimelineViewMode.Minutes" Count="2" Format="h:mm a"></GanttBottomTierSettings> </GanttTimelineSettings> <GanttSplitterSettings ColumnIndex="1"></GanttSplitterSettings> <GanttDayWorkingTimeCollection> <GanttDayWorkingTime From="0" To="24"></GanttDayWorkingTime> </GanttDayWorkingTimeCollection> </SfGantt> </div> </div> </div> @code{ public DateTime EventDay1 = new DateTime(2018, 3, 5, 19, 9, 0); public DateTime EventDay2 = new DateTime(2018, 3, 5, 19, 46, 0); public DateTime EventDay3 = new DateTime(2018, 3, 5, 19, 59, 0); public DateTime EventDay4 = new DateTime(2018, 3, 5, 20, 8, 0); public DateTime EventDay5 = new DateTime(2018, 3, 5, 20, 24, 0); public DateTime EventDay6 = new DateTime(2018, 3, 5, 20, 31, 0); public DateTime EventDay7 = new DateTime(2018, 3, 5, 20, 47, 0); public DateTime ProjectStart = new DateTime (2018, 3, 5, 18, 0, 0); public DateTime ProjectEnd = new DateTime(2018, 3, 5, 21, 50, 0); public List<TaskbarTemplateData.TaskbarData> TaskCollection { get; set; } protected override void OnInitialized() { this.TaskCollection = TaskbarTemplateData.TaskTemplateData(); } } <style> .e-custom-parent { background-color: #6d619b; border: 1px solid #3f51b5; } .e-custom-performance { background-color: #ad7a66; border: 1px solid #3f51b5; } .e-custom-moments { background-color: #7ab748; border: 1px solid #3f51b5; } .moments, .face-mask, .oscar { position: relative; top: 14px; left: 5px; padding-right: 4px; } .e-milestone-top { border-bottom-color: #7ab748 !important; border-bottom: 1px solid #3f51b5; } .e-milestone-bottom { border-top-color: #7ab748 !important; border-top: 1px solid #3f51b5; } .oscar { content: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzIgMzI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDF7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQoJLnN0MntmaWxsOiNGRkZGRkY7fQoJLnN0M3tmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQoJLnN0NHtmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3Q3e3N0cm9rZTojRkZGRkZGO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDh7ZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3Q5e3N0cm9rZTojMDAwMDAwO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3QxMHtmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDExe2ZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3QxMntmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDEze2ZpbGw6bm9uZTtzdHJva2U6I0RERERERDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9CgljaXJjbGUscGF0aHtmaWxsOiNGRkY7fQo8L3N0eWxlPgo8Zz4KCTxjaXJjbGUgY3g9IjE1LjciIGN5PSIyMS45IiByPSI4LjEiLz4KCTxwYXRoIGQ9Ik0yMywxNS40TDI5LDRoLTcuNGwtNC43LDguMkMxOS4zLDEyLjUsMjEuNCwxMy42LDIzLDE1LjR6Ii8+Cgk8cGF0aCBkPSJNMTQuOSwxMi4yTDEwLjIsNEgzbDUuNywxMS4xQzEwLjMsMTMuNSwxMi41LDEyLjQsMTQuOSwxMi4yeiIvPgo8L2c+Cjwvc3ZnPgo='); } .face-mask { content: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzIgMzI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlPgoJcGF0aHtmaWxsOiNGRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGQ9Ik0yNy40LDE0LjlsLTYuNS0yLjhjLTAuNy0wLjMtMS40LTAuMy0yLjEsMGMtMC41LDAuMy0wLjksMC42LTEuMiwxLjFjLTAuMS0xLTAuMy0xLjktMC44LTIuOGwtMi40LTQuOQoJCWMtMC42LTEuMy0yLjItMS44LTMuNS0xLjJsLTYuNCwzQzMuOSw3LjYsMy40LDguMiwzLjEsOC45Yy0wLjIsMC43LTAuMiwxLjMsMC4xLDJsMi40LDQuOWMxLjMsMi43LDQuMSw0LjQsNy4xLDQuNAoJCWMwLjYsMCwxLjEtMC4xLDEuNy0wLjJoMC4xbDAuMS0wLjFjMC4xLTAuMSwwLjItMC4yLDAuMy0wLjNjLTAuOCwzLDAuNCw2LjMsMyw4LjNMMTgsMjhoMC4xYzAuNCwwLDAuOSwwLDEuMywwCgkJYzMuMSwwLDYtMS44LDcuMi00LjdsMi4xLTVDMjkuNCwxNywyOC43LDE1LjUsMjcuNCwxNC45eiBNMTEuNSw4LjFjMC43LTAuMywxLjMtMC4zLDEuNSwwYzAuMiwwLjMtMC4zLDAuOS0xLDEuMnMtMS4zLDAuMy0xLjUsMAoJCVMxMC44LDguNSwxMS41LDguMXogTTYuMywxMS4zYy0wLjItMC4zLDAuMy0wLjgsMC45LTEuMmMwLjctMC4zLDEuMy0wLjMsMS41LDBjMC4yLDAuMy0wLjIsMC45LTAuOSwxLjIKCQlDNy4xLDExLjcsNi41LDExLjYsNi4zLDExLjN6IE04LjIsMTQuOWMwLDAsNC4xLDAuOCw2LjQtM0MxNC42LDExLjksMTQuNiwxOS41LDguMiwxNC45eiBNMjcuOSwxNy45bC0yLjEsNQoJCWMtMS4yLDIuOC00LjMsNC41LTcuNCw0Yy0yLjUtMi0zLjQtNS4zLTIuMi04LjFsMi4xLTVjMC4yLTAuNCwwLjUtMC43LDAuOS0wLjhjMC40LTAuMiwwLjktMC4yLDEuMywwbDYuNSwyLjgKCQlDMjcuOCwxNi4yLDI4LjIsMTcuMSwyNy45LDE3Ljl6Ii8+Cgk8cGF0aCBkPSJNMjQuOCwxNy44Yy0wLjctMC4zLTEuNC0wLjMtMS41LDAuMWMtMC4xLDAuMywwLjMsMC44LDEsMS4xczEuNCwwLjMsMS41LTAuMUMyNS45LDE4LjUsMjUuNSwxOC4xLDI0LjgsMTcuOHoiLz4KCTxwYXRoIGQ9Ik0xOS45LDE3LjJjMC43LDAuMywxLjQsMC4zLDEuNS0wLjFjMC4xLTAuMy0wLjMtMC44LTEtMS4xYy0wLjctMC4zLTEuNC0wLjMtMS41LDAuMUMxOC44LDE2LjQsMTkuMywxNi45LDE5LjksMTcuMnoiLz4KCTxwYXRoIGQ9Ik0xNy41LDE5LjhjMC43LDcuOCw2LjUsMi44LDYuNSwyLjhDMTkuNiwyMy41LDE3LjUsMTkuOCwxNy41LDE5Ljh6Ii8+CjwvZz4KPC9zdmc+Cg=='); } .moments { content: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIyLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzIgMzI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDF7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQoJLnN0MntmaWxsOiNGRkZGRkY7fQoJLnN0M3tmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQoJLnN0NHtmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3Q3e3N0cm9rZTojRkZGRkZGO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDh7ZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3Q5e3N0cm9rZTojMDAwMDAwO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3QxMHtmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDExe2ZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3QxMntmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30KCS5zdDEze2ZpbGw6bm9uZTtzdHJva2U6I0RERERERDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9CglwYXRoLGVsbGlwc2V7ZmlsbDojRkZGO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBkPSJNMzAuMSw2LjNjMC44LTAuNSwxLjEtMS41LDAuNy0yLjRzLTEuNS0xLjItMi4zLTAuN3MtMS4xLDEuNS0wLjcsMi40QzI4LjIsNi40LDI5LjMsNi43LDMwLjEsNi4zeiIvPgoJPHBhdGggZD0iTTMwLjMsNi45Yy0wLjcsMC40LTEuNiwwLjMtMi4zLTAuMkwyOC4yLDljLTAuMiwwLTAuNSwwLjEtMC43LDAuM2wtNS41LDQuM2wtNC4zLTIuOGMtMC4yLTAuMy0wLjUtMC42LTAuOS0wLjhMMTQsOWwtMyw2CgkJTDgsOWwtMi45LDEuMWMtMC4yLDAuMS0wLjQsMC4yLTAuNSwwLjNjLTAuMiwwLjEtMC40LDAuMy0wLjUsMC41bC0zLjYsNi40Yy0wLjIsMC4zLTAuMiwwLjctMC4yLDFsMS43LDguNEMyLjIsMjcuNSwyLjksMjgsMy42LDI4CgkJYzAuMSwwLDAuMiwwLDAuMywwYzAuMiwwLDAuMy0wLjEsMC41LTAuMkw0LDMwaDE0bC0xLjgtMTAuOWwxLjItNC45bDQsMi42YzAuMiwwLjIsMC41LDAuMiwwLjgsMC4yYzAuMywwLDAuNy0wLjEsMC45LTAuM2w1LjUtNC40CgkJYzAsMC4zLTAuMSwwLjYtMC4yLDAuOGMtMC4zLDAuNy0wLjYsMC42LTEuMiwwLjVjLTAuMSwwLTAuMSwwLTAuMiwwbDAsMC4zYzAuMSwwLDAuMiwwLDAuMiwwYzAuMywwLjEsMC43LDAuMSwxLDAKCQljMC4yLTAuMSwwLjQtMC4zLDAuNS0wLjdjMC4xLTAuMywwLjItMC43LDAuMi0xLjFjMC4xLDAsMC4zLTAuMSwwLjMtMC4zbDAsMGwwLjItMC4yYzAuNi0wLjUsMC43LTEuNCwwLjMtMmwwLjctMi44CgkJQzMwLjQsNi45LDMwLjMsNi45LDMwLjMsNi45eiBNNC44LDI1bC0xLjQtNi43bDEuNS0yLjdMNS44LDE5TDQuOCwyNXoiLz4KCTxlbGxpcHNlIGN4PSIxMSIgY3k9IjUiIHJ4PSIzLjUiIHJ5PSI0Ii8+CjwvZz4KPC9zdmc+Cg=='); } </style>
{ "pile_set_name": "Github" }
/* * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ import Foundation protocol I { func foo() -> Int } protocol E { func foo() -> Any } extension I { func foo1() -> Int { return 1 } func foo2() -> Int { return 2 } func foo3() -> Int { return 3 } func foo4() -> Int { return 4 } func foo5() -> Int { return 5 } func foo6() -> Int { return 6 } func foo7() -> Int { return 7 } func foo8() -> Int { return 8 } func foo9() -> Int { return 9 } func foo10() -> Int { return 10 } func foo11() -> Int { return 11 } func foo12() -> Int { return 12 } func foo13() -> Int { return 13 } func foo14() -> Int { return 14 } func foo15() -> Int { return 15 } func foo16() -> Int { return 16 } func foo17() -> Int { return 17 } func foo18() -> Int { return 18 } func foo19() -> Int { return 19 } func foo20() -> Int { return 20 } func foo21() -> Int { return 21 } func foo22() -> Int { return 22 } func foo23() -> Int { return 23 } func foo24() -> Int { return 24 } func foo25() -> Int { return 25 } func foo26() -> Int { return 26 } func foo27() -> Int { return 27 } func foo28() -> Int { return 28 } func foo29() -> Int { return 29 } func foo30() -> Int { return 30 } func foo31() -> Int { return 31 } func foo32() -> Int { return 32 } func foo33() -> Int { return 33 } func foo34() -> Int { return 34 } func foo35() -> Int { return 35 } func foo36() -> Int { return 36 } func foo37() -> Int { return 37 } func foo38() -> Int { return 38 } func foo39() -> Int { return 39 } func foo40() -> Int { return 40 } func foo41() -> Int { return 41 } func foo42() -> Int { return 42 } func foo43() -> Int { return 43 } func foo44() -> Int { return 44 } func foo45() -> Int { return 45 } func foo46() -> Int { return 46 } func foo47() -> Int { return 47 } func foo48() -> Int { return 48 } func foo49() -> Int { return 49 } func foo50() -> Int { return 50 } func foo51() -> Int { return 51 } func foo52() -> Int { return 52 } func foo53() -> Int { return 53 } func foo54() -> Int { return 54 } func foo55() -> Int { return 55 } func foo56() -> Int { return 56 } func foo57() -> Int { return 57 } func foo58() -> Int { return 58 } func foo59() -> Int { return 59 } func foo60() -> Int { return 60 } func foo61() -> Int { return 31 } func foo62() -> Int { return 62 } func foo63() -> Int { return 63 } func foo64() -> Int { return 64 } func foo65() -> Int { return 65 } func foo66() -> Int { return 66 } func foo67() -> Int { return 67 } func foo68() -> Int { return 68 } func foo69() -> Int { return 69 } func foo70() -> Int { return 70 } func foo71() -> Int { return 71 } func foo72() -> Int { return 72 } func foo73() -> Int { return 73 } func foo74() -> Int { return 74 } func foo75() -> Int { return 75 } func foo76() -> Int { return 76 } func foo77() -> Int { return 77 } func foo78() -> Int { return 78 } func foo79() -> Int { return 79 } func foo80() -> Int { return 80 } func foo81() -> Int { return 81 } func foo82() -> Int { return 82 } func foo83() -> Int { return 83 } func foo84() -> Int { return 84 } func foo85() -> Int { return 85 } func foo86() -> Int { return 86 } func foo87() -> Int { return 87 } func foo88() -> Int { return 88 } func foo89() -> Int { return 89 } func foo90() -> Int { return 90 } func foo91() -> Int { return 91 } func foo92() -> Int { return 92 } func foo93() -> Int { return 93 } func foo94() -> Int { return 94 } func foo95() -> Int { return 95 } func foo96() -> Int { return 96 } func foo97() -> Int { return 97 } func foo98() -> Int { return 98 } func foo99() -> Int { return 99 } } protocol A : I {} class CallsBenchmarks { class B : A { func foo() -> Int { return 42 } } class C : A { func foo() -> Int { return 117 } } class D : A { func foo() -> Int { return 314 } } class X : A { func foo() -> Int { return 456456 } } class Y : A { func foo() -> Int { return -398473 } } class Z : A { func foo() -> Int { return 8298734 } } let d = D() let a1: A = B() let a2: A = C() lazy var a3: A = d lazy var i1: I = a1 lazy var i2: I = a2 lazy var i3: I = d let i4: I = X() let i5: I = Y() let i6: I = Z() func finalMethodCall() -> Int { var x = 0 let d = self.d for _ in 0..<Constants.RUNS { x += d.foo() } return x } func classOpenMethodCall_MonomorphicCallsite() -> Int { var x = 0 let a1 = self.a1 for _ in 0..<Constants.RUNS { x += a1.foo() } return x } func classOpenMethodCall_BimorphicCallsite() -> Int { var x = 0 let a1 = self.a1 let a2 = self.a2 for i in 0..<Constants.RUNS { x += ((i & 1 == 0) ? a1 : a2).foo() } return x } func classOpenMethodCall_TrimorphicCallsite() -> Int { var x = 0 let a1 = self.a1 let a2 = self.a2 let a3 = self.a3 for i in 0..<Constants.RUNS { switch (i % 3) { case 1: x += a1.foo() case 2: x += a2.foo() default: x += a3.foo() } } return x } func interfaceMethodCall_MonomorphicCallsite() -> Int { var x = 0 let i1 = self.i1 for _ in 0..<Constants.RUNS { x += i1.foo() } return x } func interfaceMethodCall_BimorphicCallsite() -> Int { var x = 0 let i1 = self.i1 let i2 = self.i2 for i in 0..<Constants.RUNS { x += ((i & 1 == 0) ? i1 : i2).foo() } return x } func interfaceMethodCall_TrimorphicCallsite() -> Int { var x = 0 let i1 = self.i1 let i2 = self.i2 let i3 = self.i3 for i in 0..<Constants.RUNS { switch (i % 3) { case 1: x += i1.foo() case 2: x += i2.foo() default: x += i3.foo() } } return x } func interfaceMethodCall_HexamorphicCallsite() -> Int { var x = 0 let i1 = self.i1 let i2 = self.i2 let i3 = self.i3 let i4 = self.i4 let i5 = self.i5 let i6 = self.i6 for i in 0..<Constants.RUNS { switch (i % 6) { case 1: x += i1.foo() case 2: x += i2.foo() case 3: x += i3.foo() case 4: x += i4.foo() case 5: x += i5.foo() default: x += i6.foo() } } return x } class F : E { func foo() -> Any { return 42 } } let e: E = F() func returnBoxUnboxFolding() -> Int { var x = 0 let e = self.e for _ in 0..<Constants.RUNS { x += e.foo() as! Int } return x } }
{ "pile_set_name": "Github" }
[2] CompilerSupportLibraries_jll = "e66e0078-7015-5450-92f7-15fbd957f2ae" Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" MPICH_jll = "7cb0a576-ebde-5e09-9194-50597f1243b4" OpenBLAS_jll = "4536629a-c528-5b80-bd46-f80d51c5b363" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: 3dea79a331c4fe241bd693b0b7bc745a folderAsset: yes DefaultImporter: userData: assetBundleName: assetBundleVariant:
{ "pile_set_name": "Github" }
# Copyright (c) 1997-2009 Graham Barr <gbarr@pobox.com>. All rights reserved. # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. # # Maintained since 2013 by Paul Evans <leonerd@leonerd.org.uk> package List::Util; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw( all any first min max minstr maxstr none notall product reduce sum sum0 shuffle uniq uniqnum uniqstr pairs unpairs pairkeys pairvalues pairmap pairgrep pairfirst ); our $VERSION = "1.46_02"; our $XS_VERSION = $VERSION; $VERSION = eval $VERSION; require XSLoader; XSLoader::load('List::Util', $XS_VERSION); sub import { my $pkg = caller; # (RT88848) Touch the caller's $a and $b, to avoid the warning of # Name "main::a" used only once: possible typo" warning no strict 'refs'; ${"${pkg}::a"} = ${"${pkg}::a"}; ${"${pkg}::b"} = ${"${pkg}::b"}; goto &Exporter::import; } # For objects returned by pairs() sub List::Util::_Pair::key { shift->[0] } sub List::Util::_Pair::value { shift->[1] } =head1 NAME List::Util - A selection of general-utility list subroutines =head1 SYNOPSIS use List::Util qw( reduce any all none notall first max maxstr min minstr product sum sum0 pairs unpairs pairkeys pairvalues pairfirst pairgrep pairmap shuffle uniq uniqnum uniqstr ); =head1 DESCRIPTION C<List::Util> contains a selection of subroutines that people have expressed would be nice to have in the perl core, but the usage would not really be high enough to warrant the use of a keyword, and the size so small such that being individual extensions would be wasteful. By default C<List::Util> does not export any subroutines. =cut =head1 LIST-REDUCTION FUNCTIONS The following set of functions all reduce a list down to a single value. =cut =head2 reduce $result = reduce { BLOCK } @list Reduces C<@list> by calling C<BLOCK> in a scalar context multiple times, setting C<$a> and C<$b> each time. The first call will be with C<$a> and C<$b> set to the first two elements of the list, subsequent calls will be done by setting C<$a> to the result of the previous call and C<$b> to the next element in the list. Returns the result of the last call to the C<BLOCK>. If C<@list> is empty then C<undef> is returned. If C<@list> only contains one element then that element is returned and C<BLOCK> is not executed. The following examples all demonstrate how C<reduce> could be used to implement the other list-reduction functions in this module. (They are not in fact implemented like this, but instead in a more efficient manner in individual C functions). $foo = reduce { defined($a) ? $a : $code->(local $_ = $b) ? $b : undef } undef, @list # first $foo = reduce { $a > $b ? $a : $b } 1..10 # max $foo = reduce { $a gt $b ? $a : $b } 'A'..'Z' # maxstr $foo = reduce { $a < $b ? $a : $b } 1..10 # min $foo = reduce { $a lt $b ? $a : $b } 'aa'..'zz' # minstr $foo = reduce { $a + $b } 1 .. 10 # sum $foo = reduce { $a . $b } @bar # concat $foo = reduce { $a || $code->(local $_ = $b) } 0, @bar # any $foo = reduce { $a && $code->(local $_ = $b) } 1, @bar # all $foo = reduce { $a && !$code->(local $_ = $b) } 1, @bar # none $foo = reduce { $a || !$code->(local $_ = $b) } 0, @bar # notall # Note that these implementations do not fully short-circuit If your algorithm requires that C<reduce> produce an identity value, then make sure that you always pass that identity value as the first argument to prevent C<undef> being returned $foo = reduce { $a + $b } 0, @values; # sum with 0 identity value The above example code blocks also suggest how to use C<reduce> to build a more efficient combined version of one of these basic functions and a C<map> block. For example, to find the total length of the all the strings in a list, we could use $total = sum map { length } @strings; However, this produces a list of temporary integer values as long as the original list of strings, only to reduce it down to a single value again. We can compute the same result more efficiently by using C<reduce> with a code block that accumulates lengths by writing this instead as: $total = reduce { $a + length $b } 0, @strings The remaining list-reduction functions are all specialisations of this generic idea. =head2 any my $bool = any { BLOCK } @list; I<Since version 1.33.> Similar to C<grep> in that it evaluates C<BLOCK> setting C<$_> to each element of C<@list> in turn. C<any> returns true if any element makes the C<BLOCK> return a true value. If C<BLOCK> never returns true or C<@list> was empty then it returns false. Many cases of using C<grep> in a conditional can be written using C<any> instead, as it can short-circuit after the first true result. if( any { length > 10 } @strings ) { # at least one string has more than 10 characters } =head2 all my $bool = all { BLOCK } @list; I<Since version 1.33.> Similar to L</any>, except that it requires all elements of the C<@list> to make the C<BLOCK> return true. If any element returns false, then it returns false. If the C<BLOCK> never returns false or the C<@list> was empty then it returns true. =head2 none =head2 notall my $bool = none { BLOCK } @list; my $bool = notall { BLOCK } @list; I<Since version 1.33.> Similar to L</any> and L</all>, but with the return sense inverted. C<none> returns true only if no value in the C<@list> causes the C<BLOCK> to return true, and C<notall> returns true only if not all of the values do. =head2 first my $val = first { BLOCK } @list; Similar to C<grep> in that it evaluates C<BLOCK> setting C<$_> to each element of C<@list> in turn. C<first> returns the first element where the result from C<BLOCK> is a true value. If C<BLOCK> never returns true or C<@list> was empty then C<undef> is returned. $foo = first { defined($_) } @list # first defined value in @list $foo = first { $_ > $value } @list # first value in @list which # is greater than $value =head2 max my $num = max @list; Returns the entry in the list with the highest numerical value. If the list is empty then C<undef> is returned. $foo = max 1..10 # 10 $foo = max 3,9,12 # 12 $foo = max @bar, @baz # whatever =head2 maxstr my $str = maxstr @list; Similar to L</max>, but treats all the entries in the list as strings and returns the highest string as defined by the C<gt> operator. If the list is empty then C<undef> is returned. $foo = maxstr 'A'..'Z' # 'Z' $foo = maxstr "hello","world" # "world" $foo = maxstr @bar, @baz # whatever =head2 min my $num = min @list; Similar to L</max> but returns the entry in the list with the lowest numerical value. If the list is empty then C<undef> is returned. $foo = min 1..10 # 1 $foo = min 3,9,12 # 3 $foo = min @bar, @baz # whatever =head2 minstr my $str = minstr @list; Similar to L</min>, but treats all the entries in the list as strings and returns the lowest string as defined by the C<lt> operator. If the list is empty then C<undef> is returned. $foo = minstr 'A'..'Z' # 'A' $foo = minstr "hello","world" # "hello" $foo = minstr @bar, @baz # whatever =head2 product my $num = product @list; I<Since version 1.35.> Returns the numerical product of all the elements in C<@list>. If C<@list> is empty then C<1> is returned. $foo = product 1..10 # 3628800 $foo = product 3,9,12 # 324 =head2 sum my $num_or_undef = sum @list; Returns the numerical sum of all the elements in C<@list>. For backwards compatibility, if C<@list> is empty then C<undef> is returned. $foo = sum 1..10 # 55 $foo = sum 3,9,12 # 24 $foo = sum @bar, @baz # whatever =head2 sum0 my $num = sum0 @list; I<Since version 1.26.> Similar to L</sum>, except this returns 0 when given an empty list, rather than C<undef>. =cut =head1 KEY/VALUE PAIR LIST FUNCTIONS The following set of functions, all inspired by L<List::Pairwise>, consume an even-sized list of pairs. The pairs may be key/value associations from a hash, or just a list of values. The functions will all preserve the original ordering of the pairs, and will not be confused by multiple pairs having the same "key" value - nor even do they require that the first of each pair be a plain string. B<NOTE>: At the time of writing, the following C<pair*> functions that take a block do not modify the value of C<$_> within the block, and instead operate using the C<$a> and C<$b> globals instead. This has turned out to be a poor design, as it precludes the ability to provide a C<pairsort> function. Better would be to pass pair-like objects as 2-element array references in C<$_>, in a style similar to the return value of the C<pairs> function. At some future version this behaviour may be added. Until then, users are alerted B<NOT> to rely on the value of C<$_> remaining unmodified between the outside and the inside of the control block. In particular, the following example is B<UNSAFE>: my @kvlist = ... foreach (qw( some keys here )) { my @items = pairgrep { $a eq $_ } @kvlist; ... } Instead, write this using a lexical variable: foreach my $key (qw( some keys here )) { my @items = pairgrep { $a eq $key } @kvlist; ... } =cut =head2 pairs my @pairs = pairs @kvlist; I<Since version 1.29.> A convenient shortcut to operating on even-sized lists of pairs, this function returns a list of C<ARRAY> references, each containing two items from the given list. It is a more efficient version of @pairs = pairmap { [ $a, $b ] } @kvlist It is most convenient to use in a C<foreach> loop, for example: foreach my $pair ( pairs @kvlist ) { my ( $key, $value ) = @$pair; ... } Since version C<1.39> these C<ARRAY> references are blessed objects, recognising the two methods C<key> and C<value>. The following code is equivalent: foreach my $pair ( pairs @kvlist ) { my $key = $pair->key; my $value = $pair->value; ... } =head2 unpairs my @kvlist = unpairs @pairs I<Since version 1.42.> The inverse function to C<pairs>; this function takes a list of C<ARRAY> references containing two elements each, and returns a flattened list of the two values from each of the pairs, in order. This is notionally equivalent to my @kvlist = map { @{$_}[0,1] } @pairs except that it is implemented more efficiently internally. Specifically, for any input item it will extract exactly two values for the output list; using C<undef> if the input array references are short. Between C<pairs> and C<unpairs>, a higher-order list function can be used to operate on the pairs as single scalars; such as the following near-equivalents of the other C<pair*> higher-order functions: @kvlist = unpairs grep { FUNC } pairs @kvlist # Like pairgrep, but takes $_ instead of $a and $b @kvlist = unpairs map { FUNC } pairs @kvlist # Like pairmap, but takes $_ instead of $a and $b Note however that these versions will not behave as nicely in scalar context. Finally, this technique can be used to implement a sort on a keyvalue pair list; e.g.: @kvlist = unpairs sort { $a->key cmp $b->key } pairs @kvlist =head2 pairkeys my @keys = pairkeys @kvlist; I<Since version 1.29.> A convenient shortcut to operating on even-sized lists of pairs, this function returns a list of the the first values of each of the pairs in the given list. It is a more efficient version of @keys = pairmap { $a } @kvlist =head2 pairvalues my @values = pairvalues @kvlist; I<Since version 1.29.> A convenient shortcut to operating on even-sized lists of pairs, this function returns a list of the the second values of each of the pairs in the given list. It is a more efficient version of @values = pairmap { $b } @kvlist =head2 pairgrep my @kvlist = pairgrep { BLOCK } @kvlist; my $count = pairgrep { BLOCK } @kvlist; I<Since version 1.29.> Similar to perl's C<grep> keyword, but interprets the given list as an even-sized list of pairs. It invokes the C<BLOCK> multiple times, in scalar context, with C<$a> and C<$b> set to successive pairs of values from the C<@kvlist>. Returns an even-sized list of those pairs for which the C<BLOCK> returned true in list context, or the count of the B<number of pairs> in scalar context. (Note, therefore, in scalar context that it returns a number half the size of the count of items it would have returned in list context). @subset = pairgrep { $a =~ m/^[[:upper:]]+$/ } @kvlist As with C<grep> aliasing C<$_> to list elements, C<pairgrep> aliases C<$a> and C<$b> to elements of the given list. Any modifications of it by the code block will be visible to the caller. =head2 pairfirst my ( $key, $val ) = pairfirst { BLOCK } @kvlist; my $found = pairfirst { BLOCK } @kvlist; I<Since version 1.30.> Similar to the L</first> function, but interprets the given list as an even-sized list of pairs. It invokes the C<BLOCK> multiple times, in scalar context, with C<$a> and C<$b> set to successive pairs of values from the C<@kvlist>. Returns the first pair of values from the list for which the C<BLOCK> returned true in list context, or an empty list of no such pair was found. In scalar context it returns a simple boolean value, rather than either the key or the value found. ( $key, $value ) = pairfirst { $a =~ m/^[[:upper:]]+$/ } @kvlist As with C<grep> aliasing C<$_> to list elements, C<pairfirst> aliases C<$a> and C<$b> to elements of the given list. Any modifications of it by the code block will be visible to the caller. =head2 pairmap my @list = pairmap { BLOCK } @kvlist; my $count = pairmap { BLOCK } @kvlist; I<Since version 1.29.> Similar to perl's C<map> keyword, but interprets the given list as an even-sized list of pairs. It invokes the C<BLOCK> multiple times, in list context, with C<$a> and C<$b> set to successive pairs of values from the C<@kvlist>. Returns the concatenation of all the values returned by the C<BLOCK> in list context, or the count of the number of items that would have been returned in scalar context. @result = pairmap { "The key $a has value $b" } @kvlist As with C<map> aliasing C<$_> to list elements, C<pairmap> aliases C<$a> and C<$b> to elements of the given list. Any modifications of it by the code block will be visible to the caller. See L</KNOWN BUGS> for a known-bug with C<pairmap>, and a workaround. =cut =head1 OTHER FUNCTIONS =cut =head2 shuffle my @values = shuffle @values; Returns the values of the input in a random order @cards = shuffle 0..51 # 0..51 in a random order =head2 uniq my @subset = uniq @values I<Since version 1.45.> Filters a list of values to remove subsequent duplicates, as judged by a DWIM-ish string equality or C<undef> test. Preserves the order of unique elements, and retains the first value of any duplicate set. my $count = uniq @values In scalar context, returns the number of elements that would have been returned as a list. The C<undef> value is treated by this function as distinct from the empty string, and no warning will be produced. It is left as-is in the returned list. Subsequent C<undef> values are still considered identical to the first, and will be removed. =head2 uniqnum my @subset = uniqnum @values I<Since version 1.44.> Filters a list of values to remove subsequent duplicates, as judged by a numerical equality test. Preserves the order of unique elements, and retains the first value of any duplicate set. my $count = uniqnum @values In scalar context, returns the number of elements that would have been returned as a list. Note that C<undef> is treated much as other numerical operations treat it; it compares equal to zero but additionally produces a warning if such warnings are enabled (C<use warnings 'uninitialized';>). In addition, an C<undef> in the returned list is coerced into a numerical zero, so that the entire list of values returned by C<uniqnum> are well-behaved as numbers. Note also that multiple IEEE C<NaN> values are treated as duplicates of each other, regardless of any differences in their payloads, and despite the fact that C<< 0+'NaN' == 0+'NaN' >> yields false. =head2 uniqstr my @subset = uniqstr @values I<Since version 1.45.> Filters a list of values to remove subsequent duplicates, as judged by a string equality test. Preserves the order of unique elements, and retains the first value of any duplicate set. my $count = uniqstr @values In scalar context, returns the number of elements that would have been returned as a list. Note that C<undef> is treated much as other string operations treat it; it compares equal to the empty string but additionally produces a warning if such warnings are enabled (C<use warnings 'uninitialized';>). In addition, an C<undef> in the returned list is coerced into an empty string, so that the entire list of values returned by C<uniqstr> are well-behaved as strings. =cut =head1 KNOWN BUGS =head2 RT #95409 L<https://rt.cpan.org/Ticket/Display.html?id=95409> If the block of code given to L</pairmap> contains lexical variables that are captured by a returned closure, and the closure is executed after the block has been re-used for the next iteration, these lexicals will not see the correct values. For example: my @subs = pairmap { my $var = "$a is $b"; sub { print "$var\n" }; } one => 1, two => 2, three => 3; $_->() for @subs; Will incorrectly print three is 3 three is 3 three is 3 This is due to the performance optimisation of using C<MULTICALL> for the code block, which means that fresh SVs do not get allocated for each call to the block. Instead, the same SV is re-assigned for each iteration, and all the closures will share the value seen on the final iteration. To work around this bug, surround the code with a second set of braces. This creates an inner block that defeats the C<MULTICALL> logic, and does get fresh SVs allocated each time: my @subs = pairmap { { my $var = "$a is $b"; sub { print "$var\n"; } } } one => 1, two => 2, three => 3; This bug only affects closures that are generated by the block but used afterwards. Lexical variables that are only used during the lifetime of the block's execution will take their individual values for each invocation, as normal. =head2 uniqnum() on oversized bignums Due to the way that C<uniqnum()> compares numbers, it cannot distinguish differences between bignums (especially bigints) that are too large to fit in the native platform types. For example, my $x = Math::BigInt->new( "1" x 100 ); my $y = $x + 1; say for uniqnum( $x, $y ); Will print just the value of C<$x>, believing that C<$y> is a numerically- equivalent value. This bug does not affect C<uniqstr()>, which will correctly observe that the two values stringify to different strings. =head1 SUGGESTED ADDITIONS The following are additions that have been requested, but I have been reluctant to add due to them being very simple to implement in perl # How many elements are true sub true { scalar grep { $_ } @_ } # How many elements are false sub false { scalar grep { !$_ } @_ } =head1 SEE ALSO L<Scalar::Util>, L<List::MoreUtils> =head1 COPYRIGHT Copyright (c) 1997-2007 Graham Barr <gbarr@pobox.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Recent additions and current maintenance by Paul Evans, <leonerd@leonerd.org.uk>. =cut 1;
{ "pile_set_name": "Github" }
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #pragma once #ifdef __cplusplus extern "C" { #endif typedef WINBOOL (CALLBACK *PFIND_DEBUG_FILE_CALLBACK)(HANDLE FileHandle,PCSTR FileName,PVOID CallerData); typedef WINBOOL (CALLBACK *PFIND_DEBUG_FILE_CALLBACKW)(HANDLE FileHandle,PCWSTR FileName,PVOID CallerData); typedef WINBOOL (CALLBACK *PFINDFILEINPATHCALLBACK)(PCSTR filename,PVOID context); typedef WINBOOL (CALLBACK *PFINDFILEINPATHCALLBACKW)(PCWSTR filename,PVOID context); typedef WINBOOL (CALLBACK *PFIND_EXE_FILE_CALLBACK)(HANDLE FileHandle,PCSTR FileName,PVOID CallerData); typedef WINBOOL (CALLBACK *PFIND_EXE_FILE_CALLBACKW)(HANDLE FileHandle,PCWSTR FileName,PVOID CallerData); typedef WINBOOL (WINAPI *PSYMBOLSERVERPROC)(LPCSTR,LPCSTR,PVOID,DWORD,DWORD,LPSTR); typedef WINBOOL (WINAPI *PSYMBOLSERVEROPENPROC)(VOID); typedef WINBOOL (WINAPI *PSYMBOLSERVERCLOSEPROC)(VOID); typedef WINBOOL (WINAPI *PSYMBOLSERVERSETOPTIONSPROC)(UINT_PTR,ULONG64); typedef WINBOOL (CALLBACK WINAPI *PSYMBOLSERVERCALLBACKPROC)(UINT_PTR action,ULONG64 data,ULONG64 context); typedef UINT_PTR (WINAPI *PSYMBOLSERVERGETOPTIONSPROC)(); typedef WINBOOL (WINAPI *PSYMBOLSERVERPINGPROC)(LPCSTR); HANDLE IMAGEAPI FindDebugInfoFile(PCSTR FileName,PCSTR SymbolPath,PSTR DebugFilePath); HANDLE IMAGEAPI FindDebugInfoFileEx(PCSTR FileName,PCSTR SymbolPath,PSTR DebugFilePath,PFIND_DEBUG_FILE_CALLBACK Callback,PVOID CallerData); HANDLE IMAGEAPI FindDebugInfoFileExW(PCWSTR FileName,PCWSTR SymbolPath,PWSTR DebugFilePath,PFIND_DEBUG_FILE_CALLBACKW Callback,PVOID CallerData); WINBOOL IMAGEAPI SymFindFileInPath(HANDLE hprocess,PCSTR SearchPath,PCSTR FileName,PVOID id,DWORD two,DWORD three,DWORD flags,LPSTR FoundFile,PFINDFILEINPATHCALLBACK callback,PVOID context); WINBOOL IMAGEAPI SymFindFileInPathW(HANDLE hprocess,PCWSTR SearchPath,PCWSTR FileName,PVOID id,DWORD two,DWORD three,DWORD flags,LPSTR FoundFile,PFINDFILEINPATHCALLBACKW callback,PVOID context); HANDLE IMAGEAPI FindExecutableImage(PCSTR FileName,PCSTR SymbolPath,PSTR ImageFilePath); HANDLE IMAGEAPI FindExecutableImageEx(PCSTR FileName,PCSTR SymbolPath,PSTR ImageFilePath,PFIND_EXE_FILE_CALLBACK Callback,PVOID CallerData); HANDLE IMAGEAPI FindExecutableImageExW(PCWSTR FileName,PCWSTR SymbolPath,PWSTR ImageFilePath,PFIND_EXE_FILE_CALLBACKW Callback,PVOID CallerData); PIMAGE_NT_HEADERS IMAGEAPI ImageNtHeader(PVOID Base); PVOID IMAGEAPI ImageDirectoryEntryToDataEx(PVOID Base,BOOLEAN MappedAsImage,USHORT DirectoryEntry,PULONG Size,PIMAGE_SECTION_HEADER *FoundHeader); PVOID IMAGEAPI ImageDirectoryEntryToData(PVOID Base,BOOLEAN MappedAsImage,USHORT DirectoryEntry,PULONG Size); PIMAGE_SECTION_HEADER IMAGEAPI ImageRvaToSection(PIMAGE_NT_HEADERS NtHeaders,PVOID Base,ULONG Rva); PVOID IMAGEAPI ImageRvaToVa(PIMAGE_NT_HEADERS NtHeaders,PVOID Base,ULONG Rva,PIMAGE_SECTION_HEADER *LastRvaSection); #define SSRVOPT_CALLBACK 0x0001 #define SSRVOPT_DWORD 0x0002 #define SSRVOPT_DWORDPTR 0x0004 #define SSRVOPT_GUIDPTR 0x0008 #define SSRVOPT_OLDGUIDPTR 0x0010 #define SSRVOPT_UNATTENDED 0x0020 #define SSRVOPT_NOCOPY 0x0040 #define SSRVOPT_PARENTWIN 0x0080 #define SSRVOPT_PARAMTYPE 0x0100 #define SSRVOPT_SECURE 0x0200 #define SSRVOPT_TRACE 0x0400 #define SSRVOPT_SETCONTEXT 0x0800 #define SSRVOPT_PROXY 0x1000 #define SSRVOPT_DOWNSTREAM_STORE 0x2000 #define SSRVOPT_RESET ((ULONG_PTR)-1) #define SSRVACTION_TRACE 1 #define SSRVACTION_QUERYCANCEL 2 #define SSRVACTION_EVENT 3 #ifndef _WIN64 typedef struct _IMAGE_DEBUG_INFORMATION { LIST_ENTRY List; DWORD ReservedSize; PVOID ReservedMappedBase; USHORT ReservedMachine; USHORT ReservedCharacteristics; DWORD ReservedCheckSum; DWORD ImageBase; DWORD SizeOfImage; DWORD ReservedNumberOfSections; PIMAGE_SECTION_HEADER ReservedSections; DWORD ReservedExportedNamesSize; PSTR ReservedExportedNames; DWORD ReservedNumberOfFunctionTableEntries; PIMAGE_FUNCTION_ENTRY ReservedFunctionTableEntries; DWORD ReservedLowestFunctionStartingAddress; DWORD ReservedHighestFunctionEndingAddress; DWORD ReservedNumberOfFpoTableEntries; PFPO_DATA ReservedFpoTableEntries; DWORD SizeOfCoffSymbols; PIMAGE_COFF_SYMBOLS_HEADER CoffSymbols; DWORD ReservedSizeOfCodeViewSymbols; PVOID ReservedCodeViewSymbols; PSTR ImageFilePath; PSTR ImageFileName; PSTR ReservedDebugFilePath; DWORD ReservedTimeDateStamp; WINBOOL ReservedRomImage; PIMAGE_DEBUG_DIRECTORY ReservedDebugDirectory; DWORD ReservedNumberOfDebugDirectories; DWORD ReservedOriginalFunctionTableBaseAddress; DWORD Reserved[2]; } IMAGE_DEBUG_INFORMATION,*PIMAGE_DEBUG_INFORMATION; PIMAGE_DEBUG_INFORMATION IMAGEAPI MapDebugInformation(HANDLE FileHandle,PSTR FileName,PSTR SymbolPath,DWORD ImageBase); WINBOOL IMAGEAPI UnmapDebugInformation(PIMAGE_DEBUG_INFORMATION DebugInfo); #endif typedef WINBOOL (CALLBACK *PENUMDIRTREE_CALLBACK)(LPCSTR FilePath,PVOID CallerData); WINBOOL IMAGEAPI SearchTreeForFile(PSTR RootPath,PSTR InputPathName,PSTR OutputPathBuffer); WINBOOL IMAGEAPI SearchTreeForFileW(PWSTR RootPath,PWSTR InputPathName,PWSTR OutputPathBuffer); WINBOOL IMAGEAPI EnumDirTree(HANDLE hProcess,PSTR RootPath,PSTR InputPathName,PSTR OutputPathBuffer,PENUMDIRTREE_CALLBACK Callback,PVOID CallbackData); WINBOOL IMAGEAPI MakeSureDirectoryPathExists(PCSTR DirPath); #define UNDNAME_COMPLETE (0x0000) #define UNDNAME_NO_LEADING_UNDERSCORES (0x0001) #define UNDNAME_NO_MS_KEYWORDS (0x0002) #define UNDNAME_NO_FUNCTION_RETURNS (0x0004) #define UNDNAME_NO_ALLOCATION_MODEL (0x0008) #define UNDNAME_NO_ALLOCATION_LANGUAGE (0x0010) #define UNDNAME_NO_MS_THISTYPE (0x0020) #define UNDNAME_NO_CV_THISTYPE (0x0040) #define UNDNAME_NO_THISTYPE (0x0060) #define UNDNAME_NO_ACCESS_SPECIFIERS (0x0080) #define UNDNAME_NO_THROW_SIGNATURES (0x0100) #define UNDNAME_NO_MEMBER_TYPE (0x0200) #define UNDNAME_NO_RETURN_UDT_MODEL (0x0400) #define UNDNAME_32_BIT_DECODE (0x0800) #define UNDNAME_NAME_ONLY (0x1000) #define UNDNAME_NO_ARGUMENTS (0x2000) #define UNDNAME_NO_SPECIAL_SYMS (0x4000) #define UNDNAME_NO_ARGUMENTS (0x2000) #define UNDNAME_NO_SPECIAL_SYMS (0x4000) DWORD IMAGEAPI WINAPI UnDecorateSymbolName(PCSTR DecoratedName,PSTR UnDecoratedName,DWORD UndecoratedLength,DWORD Flags); DWORD IMAGEAPI WINAPI UnDecorateSymbolNameW(PCWSTR DecoratedName,PWSTR UnDecoratedName,DWORD UndecoratedLength,DWORD Flags); #ifdef DBGHELP_TRANSLATE_TCHAR #define UnDecorateSymbolName UnDecorateSymbolNameW #endif #define DBHHEADER_DEBUGDIRS 0x1 #define DBHHEADER_CVMISC 0x2 typedef struct _MODLOAD_CVMISC { DWORD oCV; size_t cCV; DWORD oMisc; size_t cMisc; DWORD dtImage; DWORD cImage; } MODLOAD_CVMISC, *PMODLOAD_CVMISC; typedef enum { AddrMode1616, AddrMode1632, AddrModeReal, AddrModeFlat } ADDRESS_MODE; typedef struct _tagADDRESS64 { DWORD64 Offset; WORD Segment; ADDRESS_MODE Mode; } ADDRESS64,*LPADDRESS64; #ifdef _IMAGEHLP64 #define ADDRESS ADDRESS64 #define LPADDRESS LPADDRESS64 #else typedef struct _tagADDRESS { DWORD Offset; WORD Segment; ADDRESS_MODE Mode; } ADDRESS,*LPADDRESS; static __inline void Address32To64(LPADDRESS a32,LPADDRESS64 a64) { a64->Offset = (ULONG64)(LONG64)(LONG)a32->Offset; a64->Segment = a32->Segment; a64->Mode = a32->Mode; } static __inline void Address64To32(LPADDRESS64 a64,LPADDRESS a32) { a32->Offset = (ULONG)a64->Offset; a32->Segment = a64->Segment; a32->Mode = a64->Mode; } #endif typedef struct _KDHELP64 { DWORD64 Thread; DWORD ThCallbackStack; DWORD ThCallbackBStore; DWORD NextCallback; DWORD FramePointer; DWORD64 KiCallUserMode; DWORD64 KeUserCallbackDispatcher; DWORD64 SystemRangeStart; DWORD64 KiUserExceptionDispatcher; DWORD64 StackBase; DWORD64 StackLimit; DWORD64 Reserved[5]; } KDHELP64,*PKDHELP64; #ifdef _IMAGEHLP64 #define KDHELP KDHELP64 #define PKDHELP PKDHELP64 #else typedef struct _KDHELP { DWORD Thread; DWORD ThCallbackStack; DWORD NextCallback; DWORD FramePointer; DWORD KiCallUserMode; DWORD KeUserCallbackDispatcher; DWORD SystemRangeStart; DWORD ThCallbackBStore; DWORD KiUserExceptionDispatcher; DWORD StackBase; DWORD StackLimit; DWORD Reserved[5]; } KDHELP,*PKDHELP; static __inline void KdHelp32To64(PKDHELP p32,PKDHELP64 p64) { p64->Thread = p32->Thread; p64->ThCallbackStack = p32->ThCallbackStack; p64->NextCallback = p32->NextCallback; p64->FramePointer = p32->FramePointer; p64->KiCallUserMode = p32->KiCallUserMode; p64->KeUserCallbackDispatcher = p32->KeUserCallbackDispatcher; p64->SystemRangeStart = p32->SystemRangeStart; p64->KiUserExceptionDispatcher = p32->KiUserExceptionDispatcher; p64->StackBase = p32->StackBase; p64->StackLimit = p32->StackLimit; } #endif typedef struct _tagSTACKFRAME64 { ADDRESS64 AddrPC; ADDRESS64 AddrReturn; ADDRESS64 AddrFrame; ADDRESS64 AddrStack; ADDRESS64 AddrBStore; PVOID FuncTableEntry; DWORD64 Params[4]; WINBOOL Far; WINBOOL Virtual; DWORD64 Reserved[3]; KDHELP64 KdHelp; } STACKFRAME64,*LPSTACKFRAME64; #ifdef _IMAGEHLP64 #define STACKFRAME STACKFRAME64 #define LPSTACKFRAME LPSTACKFRAME64 #else typedef struct _tagSTACKFRAME { ADDRESS AddrPC; ADDRESS AddrReturn; ADDRESS AddrFrame; ADDRESS AddrStack; PVOID FuncTableEntry; DWORD Params[4]; WINBOOL Far; WINBOOL Virtual; DWORD Reserved[3]; KDHELP KdHelp; ADDRESS AddrBStore; } STACKFRAME,*LPSTACKFRAME; #endif typedef WINBOOL (WINAPI *PREAD_PROCESS_MEMORY_ROUTINE64)(HANDLE hProcess,DWORD64 qwBaseAddress,PVOID lpBuffer,DWORD nSize,LPDWORD lpNumberOfBytesRead); typedef PVOID (WINAPI *PFUNCTION_TABLE_ACCESS_ROUTINE64)(HANDLE hProcess,DWORD64 AddrBase); typedef DWORD64 (WINAPI *PGET_MODULE_BASE_ROUTINE64)(HANDLE hProcess,DWORD64 Address); typedef DWORD64 (WINAPI *PTRANSLATE_ADDRESS_ROUTINE64)(HANDLE hProcess,HANDLE hThread,LPADDRESS64 lpaddr); WINBOOL IMAGEAPI StackWalk64(DWORD MachineType,HANDLE hProcess,HANDLE hThread,LPSTACKFRAME64 StackFrame,PVOID ContextRecord,PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine,PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine,PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine,PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress); #ifdef _IMAGEHLP64 #define PREAD_PROCESS_MEMORY_ROUTINE PREAD_PROCESS_MEMORY_ROUTINE64 #define PFUNCTION_TABLE_ACCESS_ROUTINE PFUNCTION_TABLE_ACCESS_ROUTINE64 #define PGET_MODULE_BASE_ROUTINE PGET_MODULE_BASE_ROUTINE64 #define PTRANSLATE_ADDRESS_ROUTINE PTRANSLATE_ADDRESS_ROUTINE64 #define StackWalk StackWalk64 #else typedef WINBOOL (WINAPI *PREAD_PROCESS_MEMORY_ROUTINE)(HANDLE hProcess,DWORD lpBaseAddress,PVOID lpBuffer,DWORD nSize,PDWORD lpNumberOfBytesRead); typedef PVOID (WINAPI *PFUNCTION_TABLE_ACCESS_ROUTINE)(HANDLE hProcess,DWORD AddrBase); typedef DWORD (WINAPI *PGET_MODULE_BASE_ROUTINE)(HANDLE hProcess,DWORD Address); typedef DWORD (WINAPI *PTRANSLATE_ADDRESS_ROUTINE)(HANDLE hProcess,HANDLE hThread,LPADDRESS lpaddr); WINBOOL IMAGEAPI StackWalk(DWORD MachineType,HANDLE hProcess,HANDLE hThread,LPSTACKFRAME StackFrame,PVOID ContextRecord,PREAD_PROCESS_MEMORY_ROUTINE ReadMemoryRoutine,PFUNCTION_TABLE_ACCESS_ROUTINE FunctionTableAccessRoutine,PGET_MODULE_BASE_ROUTINE GetModuleBaseRoutine,PTRANSLATE_ADDRESS_ROUTINE TranslateAddress); #endif #define API_VERSION_NUMBER 11 typedef struct API_VERSION { USHORT MajorVersion; USHORT MinorVersion; USHORT Revision; USHORT Reserved; } API_VERSION,*LPAPI_VERSION; LPAPI_VERSION IMAGEAPI ImagehlpApiVersion(VOID); LPAPI_VERSION IMAGEAPI ImagehlpApiVersionEx(LPAPI_VERSION AppVersion); DWORD IMAGEAPI GetTimestampForLoadedLibrary(HMODULE Module); typedef WINBOOL (CALLBACK *PSYM_ENUMMODULES_CALLBACK64)(PCSTR ModuleName,DWORD64 BaseOfDll,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYM_ENUMMODULES_CALLBACKW64)(PCWSTR ModuleName,DWORD64 BaseOfDll,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK64)(PCSTR SymbolName,DWORD64 SymbolAddress,ULONG SymbolSize,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK64W)(PCWSTR SymbolName,DWORD64 SymbolAddress,ULONG SymbolSize,PVOID UserContext); typedef WINBOOL (CALLBACK *PENUMLOADED_MODULES_CALLBACK64)(PCSTR ModuleName,DWORD64 ModuleBase,ULONG ModuleSize,PVOID UserContext); typedef WINBOOL (CALLBACK *PENUMLOADED_MODULES_CALLBACKW64)(PCWSTR ModuleName,DWORD64 ModuleBase,ULONG ModuleSize,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYMBOL_REGISTERED_CALLBACK64)(HANDLE hProcess,ULONG ActionCode,ULONG64 CallbackData,ULONG64 UserContext); typedef PVOID (CALLBACK *PSYMBOL_FUNCENTRY_CALLBACK)(HANDLE hProcess,DWORD AddrBase,PVOID UserContext); typedef PVOID (CALLBACK *PSYMBOL_FUNCENTRY_CALLBACK64)(HANDLE hProcess,ULONG64 AddrBase,ULONG64 UserContext); #ifdef _IMAGEHLP64 #define PSYM_ENUMMODULES_CALLBACK PSYM_ENUMMODULES_CALLBACK64 #define PSYM_ENUMSYMBOLS_CALLBACK PSYM_ENUMSYMBOLS_CALLBACK64 #define PSYM_ENUMSYMBOLS_CALLBACKW PSYM_ENUMSYMBOLS_CALLBACK64W #define PENUMLOADED_MODULES_CALLBACK PENUMLOADED_MODULES_CALLBACK64 #define PSYMBOL_REGISTERED_CALLBACK PSYMBOL_REGISTERED_CALLBACK64 #define PSYMBOL_FUNCENTRY_CALLBACK PSYMBOL_FUNCENTRY_CALLBACK64 #else typedef WINBOOL (CALLBACK *PSYM_ENUMMODULES_CALLBACK)(PCSTR ModuleName,ULONG BaseOfDll,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK)(PCSTR SymbolName,ULONG SymbolAddress,ULONG SymbolSize,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYM_ENUMSYMBOLS_CALLBACKW)(PCWSTR SymbolName,ULONG SymbolAddress,ULONG SymbolSize,PVOID UserContext); typedef WINBOOL (CALLBACK *PENUMLOADED_MODULES_CALLBACK)(PCSTR ModuleName,ULONG ModuleBase,ULONG ModuleSize,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYMBOL_REGISTERED_CALLBACK)(HANDLE hProcess,ULONG ActionCode,PVOID CallbackData,PVOID UserContext); #endif #define SYMFLAG_VALUEPRESENT 0x00000001 #define SYMFLAG_REGISTER 0x00000008 #define SYMFLAG_REGREL 0x00000010 #define SYMFLAG_FRAMEREL 0x00000020 #define SYMFLAG_PARAMETER 0x00000040 #define SYMFLAG_LOCAL 0x00000080 #define SYMFLAG_CONSTANT 0x00000100 #define SYMFLAG_EXPORT 0x00000200 #define SYMFLAG_FORWARDER 0x00000400 #define SYMFLAG_FUNCTION 0x00000800 #define SYMFLAG_VIRTUAL 0x00001000 #define SYMFLAG_THUNK 0x00002000 #define SYMFLAG_TLSREL 0x00004000 typedef enum { SymNone = 0, SymCoff, SymCv, SymPdb, SymExport, SymDeferred, SymSym, SymDia, SymVirtual, NumSymTypes } SYM_TYPE; typedef struct _IMAGEHLP_SYMBOL64 { DWORD SizeOfStruct; DWORD64 Address; DWORD Size; DWORD Flags; DWORD MaxNameLength; CHAR Name[1]; } IMAGEHLP_SYMBOL64,*PIMAGEHLP_SYMBOL64; typedef struct _IMAGEHLP_SYMBOL64_PACKAGE { IMAGEHLP_SYMBOL64 sym; CHAR name[MAX_SYM_NAME + 1]; } IMAGEHLP_SYMBOL64_PACKAGE,*PIMAGEHLP_SYMBOL64_PACKAGE; #ifdef _IMAGEHLP64 #define IMAGEHLP_SYMBOL IMAGEHLP_SYMBOL64 #define PIMAGEHLP_SYMBOL PIMAGEHLP_SYMBOL64 #define IMAGEHLP_SYMBOL_PACKAGE IMAGEHLP_SYMBOL64_PACKAGE #define PIMAGEHLP_SYMBOL_PACKAGE PIMAGEHLP_SYMBOL64_PACKAGE #else typedef struct _IMAGEHLP_SYMBOL { DWORD SizeOfStruct; DWORD Address; DWORD Size; DWORD Flags; DWORD MaxNameLength; CHAR Name[1]; } IMAGEHLP_SYMBOL,*PIMAGEHLP_SYMBOL; typedef struct _IMAGEHLP_SYMBOL_PACKAGE { IMAGEHLP_SYMBOL sym; CHAR name[MAX_SYM_NAME + 1]; } IMAGEHLP_SYMBOL_PACKAGE,*PIMAGEHLP_SYMBOL_PACKAGE; #endif typedef struct _IMAGEHLP_MODULE64 { DWORD SizeOfStruct; DWORD64 BaseOfImage; DWORD ImageSize; DWORD TimeDateStamp; DWORD CheckSum; DWORD NumSyms; SYM_TYPE SymType; CHAR ModuleName[32]; CHAR ImageName[256]; CHAR LoadedImageName[256]; CHAR LoadedPdbName[256]; DWORD CVSig; CHAR CVData[MAX_PATH*3]; DWORD PdbSig; GUID PdbSig70; DWORD PdbAge; WINBOOL PdbUnmatched; WINBOOL DbgUnmatched; WINBOOL LineNumbers; WINBOOL GlobalSymbols; WINBOOL TypeInfo; WINBOOL SourceIndexed; WINBOOL Publics; } IMAGEHLP_MODULE64,*PIMAGEHLP_MODULE64; typedef struct _IMAGEHLP_MODULE64W { DWORD SizeOfStruct; DWORD64 BaseOfImage; DWORD ImageSize; DWORD TimeDateStamp; DWORD CheckSum; DWORD NumSyms; SYM_TYPE SymType; WCHAR ModuleName[32]; WCHAR ImageName[256]; WCHAR LoadedImageName[256]; WCHAR LoadedPdbName[256]; DWORD CVSig; WCHAR CVData[MAX_PATH*3]; DWORD PdbSig; GUID PdbSig70; DWORD PdbAge; WINBOOL PdbUnmatched; WINBOOL DbgUnmatched; WINBOOL LineNumbers; WINBOOL GlobalSymbols; WINBOOL TypeInfo; WINBOOL SourceIndexed; WINBOOL Publics; } IMAGEHLP_MODULEW64,*PIMAGEHLP_MODULEW64; #ifdef _IMAGEHLP64 #define IMAGEHLP_MODULE IMAGEHLP_MODULE64 #define PIMAGEHLP_MODULE PIMAGEHLP_MODULE64 #define IMAGEHLP_MODULEW IMAGEHLP_MODULEW64 #define PIMAGEHLP_MODULEW PIMAGEHLP_MODULEW64 #else typedef struct _IMAGEHLP_MODULE { DWORD SizeOfStruct; DWORD BaseOfImage; DWORD ImageSize; DWORD TimeDateStamp; DWORD CheckSum; DWORD NumSyms; SYM_TYPE SymType; CHAR ModuleName[32]; CHAR ImageName[256]; CHAR LoadedImageName[256]; } IMAGEHLP_MODULE,*PIMAGEHLP_MODULE; typedef struct _IMAGEHLP_MODULEW { DWORD SizeOfStruct; DWORD BaseOfImage; DWORD ImageSize; DWORD TimeDateStamp; DWORD CheckSum; DWORD NumSyms; SYM_TYPE SymType; WCHAR ModuleName[32]; WCHAR ImageName[256]; WCHAR LoadedImageName[256]; } IMAGEHLP_MODULEW,*PIMAGEHLP_MODULEW; #endif typedef struct _IMAGEHLP_LINE64 { DWORD SizeOfStruct; PVOID Key; DWORD LineNumber; PCHAR FileName; DWORD64 Address; } IMAGEHLP_LINE64,*PIMAGEHLP_LINE64; typedef struct _IMAGEHLP_LINEW64 { DWORD SizeOfStruct; PVOID Key; DWORD LineNumber; PWSTR FileName; DWORD64 Address; } IMAGEHLP_LINEW64, *PIMAGEHLP_LINEW64; #ifdef _IMAGEHLP64 #define IMAGEHLP_LINE IMAGEHLP_LINE64 #define PIMAGEHLP_LINE PIMAGEHLP_LINE64 #else typedef struct _IMAGEHLP_LINE { DWORD SizeOfStruct; PVOID Key; DWORD LineNumber; PCHAR FileName; DWORD Address; } IMAGEHLP_LINE,*PIMAGEHLP_LINE; #endif typedef struct _SOURCEFILE { DWORD64 ModBase; PCHAR FileName; } SOURCEFILE,*PSOURCEFILE; typedef struct _SOURCEFILEW { DWORD64 ModBase; PWCHAR FileName; } SOURCEFILEW,*PSOURCEFILEW; #define CBA_DEFERRED_SYMBOL_LOAD_START 0x00000001 #define CBA_DEFERRED_SYMBOL_LOAD_COMPLETE 0x00000002 #define CBA_DEFERRED_SYMBOL_LOAD_FAILURE 0x00000003 #define CBA_SYMBOLS_UNLOADED 0x00000004 #define CBA_DUPLICATE_SYMBOL 0x00000005 #define CBA_READ_MEMORY 0x00000006 #define CBA_DEFERRED_SYMBOL_LOAD_CANCEL 0x00000007 #define CBA_SET_OPTIONS 0x00000008 #define CBA_EVENT 0x00000010 #define CBA_DEFERRED_SYMBOL_LOAD_PARTIAL 0x00000020 #define CBA_DEBUG_INFO 0x10000000 #define CBA_SRCSRV_INFO 0x20000000 #define CBA_SRCSRV_EVENT 0x40000000 typedef struct _IMAGEHLP_CBA_READ_MEMORY { DWORD64 addr; PVOID buf; DWORD bytes; DWORD *bytesread; } IMAGEHLP_CBA_READ_MEMORY,*PIMAGEHLP_CBA_READ_MEMORY; enum { sevInfo = 0, sevProblem, sevAttn, sevFatal, sevMax }; typedef struct _IMAGEHLP_CBA_EVENT { DWORD severity; DWORD code; PCHAR desc; PVOID object; } IMAGEHLP_CBA_EVENT,*PIMAGEHLP_CBA_EVENT; typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD64 { DWORD SizeOfStruct; DWORD64 BaseOfImage; DWORD CheckSum; DWORD TimeDateStamp; CHAR FileName[MAX_PATH]; BOOLEAN Reparse; HANDLE hFile; DWORD Flags; } IMAGEHLP_DEFERRED_SYMBOL_LOAD64,*PIMAGEHLP_DEFERRED_SYMBOL_LOAD64; #define DSLFLAG_MISMATCHED_PDB 0x1 #define DSLFLAG_MISMATCHED_DBG 0x2 #ifdef _IMAGEHLP64 #define IMAGEHLP_DEFERRED_SYMBOL_LOAD IMAGEHLP_DEFERRED_SYMBOL_LOAD64 #define PIMAGEHLP_DEFERRED_SYMBOL_LOAD PIMAGEHLP_DEFERRED_SYMBOL_LOAD64 #else typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD { DWORD SizeOfStruct; DWORD BaseOfImage; DWORD CheckSum; DWORD TimeDateStamp; CHAR FileName[MAX_PATH]; BOOLEAN Reparse; HANDLE hFile; } IMAGEHLP_DEFERRED_SYMBOL_LOAD,*PIMAGEHLP_DEFERRED_SYMBOL_LOAD; #endif typedef struct _IMAGEHLP_DUPLICATE_SYMBOL64 { DWORD SizeOfStruct; DWORD NumberOfDups; PIMAGEHLP_SYMBOL64 Symbol; DWORD SelectedSymbol; } IMAGEHLP_DUPLICATE_SYMBOL64,*PIMAGEHLP_DUPLICATE_SYMBOL64; #ifdef _IMAGEHLP64 #define IMAGEHLP_DUPLICATE_SYMBOL IMAGEHLP_DUPLICATE_SYMBOL64 #define PIMAGEHLP_DUPLICATE_SYMBOL PIMAGEHLP_DUPLICATE_SYMBOL64 #else typedef struct _IMAGEHLP_DUPLICATE_SYMBOL { DWORD SizeOfStruct; DWORD NumberOfDups; PIMAGEHLP_SYMBOL Symbol; DWORD SelectedSymbol; } IMAGEHLP_DUPLICATE_SYMBOL,*PIMAGEHLP_DUPLICATE_SYMBOL; #endif typedef struct _SYMSRV_INDEX_INFO { DWORD sizeofstruct; CHAR file[MAX_PATH +1]; WINBOOL stripped; DWORD timestamp; DWORD size; CHAR dbgfile[MAX_PATH +1]; CHAR pdbfile[MAX_PATH + 1]; GUID guid; DWORD sig; DWORD age; } SYMSRV_INDEX_INFO, *PSYMSRV_INDEX_INFO; typedef struct _SYMSRV_INDEX_INFOW { DWORD sizeofstruct; WCHAR file[MAX_PATH +1]; WINBOOL stripped; DWORD timestamp; DWORD size; WCHAR dbgfile[MAX_PATH +1]; WCHAR pdbfile[MAX_PATH + 1]; GUID guid; DWORD sig; DWORD age; } SYMSRV_INDEX_INFOW, *PSYMSRV_INDEX_INFOW; WINBOOL IMAGEAPI SymSetParentWindow(HWND hwnd); PCHAR IMAGEAPI SymSetHomeDirectory(HANDLE hProcess,PCSTR dir); PCHAR IMAGEAPI SymSetHomeDirectoryW(HANDLE hProcess,PCWSTR dir); PCHAR IMAGEAPI SymGetHomeDirectory(DWORD type,PSTR dir,size_t size); PWCHAR IMAGEAPI SymGetHomeDirectoryW(DWORD type,PWSTR dir,size_t size); #define hdBase 0 #define hdSym 1 #define hdSrc 2 #define hdMax 3 #define SYMOPT_CASE_INSENSITIVE 0x00000001 #define SYMOPT_UNDNAME 0x00000002 #define SYMOPT_DEFERRED_LOADS 0x00000004 #define SYMOPT_NO_CPP 0x00000008 #define SYMOPT_LOAD_LINES 0x00000010 #define SYMOPT_OMAP_FIND_NEAREST 0x00000020 #define SYMOPT_LOAD_ANYTHING 0x00000040 #define SYMOPT_IGNORE_CVREC 0x00000080 #define SYMOPT_NO_UNQUALIFIED_LOADS 0x00000100 #define SYMOPT_FAIL_CRITICAL_ERRORS 0x00000200 #define SYMOPT_EXACT_SYMBOLS 0x00000400 #define SYMOPT_ALLOW_ABSOLUTE_SYMBOLS 0x00000800 #define SYMOPT_IGNORE_NT_SYMPATH 0x00001000 #define SYMOPT_INCLUDE_32BIT_MODULES 0x00002000 #define SYMOPT_PUBLICS_ONLY 0x00004000 #define SYMOPT_NO_PUBLICS 0x00008000 #define SYMOPT_AUTO_PUBLICS 0x00010000 #define SYMOPT_NO_IMAGE_SEARCH 0x00020000 #define SYMOPT_SECURE 0x00040000 #define SYMOPT_NO_PROMPTS 0x00080000 #define SYMOPT_ALLOW_ZERO_ADDRESS 0x01000000 #define SYMOPT_DISABLE_SYMSRV_AUTODETECT 0x02000000 #define SYMOPT_FAVOR_COMPRESSED 0x00800000 #define SYMOPT_FLAT_DIRECTORY 0x00400000 #define SYMOPT_IGNORE_IMAGEDIR 0x00200000 #define SYMOPT_OVERWRITE 0x00100000 #define SYMOPT_DEBUG 0x80000000 DWORD IMAGEAPI SymSetOptions(DWORD SymOptions); DWORD IMAGEAPI SymGetOptions(VOID); WINBOOL IMAGEAPI SymCleanup(HANDLE hProcess); WINBOOL IMAGEAPI SymMatchString(PCSTR string,PCSTR expression,WINBOOL fCase); WINBOOL IMAGEAPI SymMatchStringW(PCWSTR string,PCWSTR expression,WINBOOL fCase); typedef WINBOOL (CALLBACK *PSYM_ENUMSOURCEFILES_CALLBACK)(PSOURCEFILE pSourceFile,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYM_ENUMSOURCEFILES_CALLBACKW)(PSOURCEFILEW pSourceFile,PVOID UserContext); #define PSYM_ENUMSOURCFILES_CALLBACK PSYM_ENUMSOURCEFILES_CALLBACK WINBOOL IMAGEAPI SymEnumSourceFiles(HANDLE hProcess,ULONG64 ModBase,PCSTR Mask,PSYM_ENUMSOURCEFILES_CALLBACK cbSrcFiles,PVOID UserContext); WINBOOL IMAGEAPI SymEnumSourceFilesW(HANDLE hProcess,ULONG64 ModBase,PCWSTR Mask,PSYM_ENUMSOURCEFILES_CALLBACKW cbSrcFiles,PVOID UserContext); WINBOOL IMAGEAPI SymEnumerateModules64(HANDLE hProcess,PSYM_ENUMMODULES_CALLBACK64 EnumModulesCallback,PVOID UserContext); WINBOOL IMAGEAPI SymEnumerateModulesW64(HANDLE hProcess,PSYM_ENUMMODULES_CALLBACKW64 EnumModulesCallback,PVOID UserContext); #ifdef _IMAGEHLP64 #define SymEnumerateModules SymEnumerateModules64 #else WINBOOL IMAGEAPI SymEnumerateModules(HANDLE hProcess,PSYM_ENUMMODULES_CALLBACK EnumModulesCallback,PVOID UserContext); #endif WINBOOL IMAGEAPI SymEnumerateSymbols64(HANDLE hProcess,DWORD64 BaseOfDll,PSYM_ENUMSYMBOLS_CALLBACK64 EnumSymbolsCallback,PVOID UserContext); WINBOOL IMAGEAPI SymEnumerateSymbolsW64(HANDLE hProcess,DWORD64 BaseOfDll,PSYM_ENUMSYMBOLS_CALLBACK64W EnumSymbolsCallback,PVOID UserContext); #ifdef _IMAGEHLP64 #define SymEnumerateSymbols SymEnumerateSymbols64 #define SymEnumerateSymbolsW SymEnumerateSymbolsW64 #else WINBOOL IMAGEAPI SymEnumerateSymbols(HANDLE hProcess,DWORD BaseOfDll,PSYM_ENUMSYMBOLS_CALLBACK EnumSymbolsCallback,PVOID UserContext); WINBOOL IMAGEAPI SymEnumerateSymbolsW(HANDLE hProcess,DWORD BaseOfDll,PSYM_ENUMSYMBOLS_CALLBACKW EnumSymbolsCallback,PVOID UserContext); #endif WINBOOL IMAGEAPI EnumerateLoadedModules64(HANDLE hProcess,PENUMLOADED_MODULES_CALLBACK64 EnumLoadedModulesCallback,PVOID UserContext); WINBOOL IMAGEAPI EnumerateLoadedModulesW64(HANDLE hProcess,PENUMLOADED_MODULES_CALLBACKW64 EnumLoadedModulesCallback,PVOID UserContext); #ifdef DBGHELP_TRANSLATE_TCHAR #define EnumerateLoadedModules64 EnumerateLoadedModulesW64 #endif #ifdef _IMAGEHLP64 #define EnumerateLoadedModules EnumerateLoadedModules64 #else WINBOOL IMAGEAPI EnumerateLoadedModules(HANDLE hProcess,PENUMLOADED_MODULES_CALLBACK EnumLoadedModulesCallback,PVOID UserContext); #endif PVOID IMAGEAPI SymFunctionTableAccess64(HANDLE hProcess,DWORD64 AddrBase); #ifdef _IMAGEHLP64 #define SymFunctionTableAccess SymFunctionTableAccess64 #else PVOID IMAGEAPI SymFunctionTableAccess(HANDLE hProcess,DWORD AddrBase); #endif WINBOOL IMAGEAPI SymGetModuleInfo64(HANDLE hProcess,DWORD64 qwAddr,PIMAGEHLP_MODULE64 ModuleInfo); WINBOOL IMAGEAPI SymGetModuleInfoW64(HANDLE hProcess,DWORD64 qwAddr,PIMAGEHLP_MODULEW64 ModuleInfo); #ifdef _IMAGEHLP64 #define SymGetModuleInfo SymGetModuleInfo64 #define SymGetModuleInfoW SymGetModuleInfoW64 #else WINBOOL IMAGEAPI SymGetModuleInfo(HANDLE hProcess,DWORD dwAddr,PIMAGEHLP_MODULE ModuleInfo); WINBOOL IMAGEAPI SymGetModuleInfoW(HANDLE hProcess,DWORD dwAddr,PIMAGEHLP_MODULEW ModuleInfo); #endif DWORD64 IMAGEAPI SymGetModuleBase64(HANDLE hProcess,DWORD64 qwAddr); #ifdef _IMAGEHLP64 #define SymGetModuleBase SymGetModuleBase64 #else DWORD IMAGEAPI SymGetModuleBase(HANDLE hProcess,DWORD dwAddr); #endif WINBOOL IMAGEAPI SymGetSymNext64(HANDLE hProcess,PIMAGEHLP_SYMBOL64 Symbol); #ifdef _IMAGEHLP64 #define SymGetSymNext SymGetSymNext64 #else WINBOOL IMAGEAPI SymGetSymNext(HANDLE hProcess,PIMAGEHLP_SYMBOL Symbol); #endif WINBOOL IMAGEAPI SymGetSymPrev64(HANDLE hProcess,PIMAGEHLP_SYMBOL64 Symbol); #ifdef _IMAGEHLP64 #define SymGetSymPrev SymGetSymPrev64 #else WINBOOL IMAGEAPI SymGetSymPrev(HANDLE hProcess,PIMAGEHLP_SYMBOL Symbol); #endif typedef struct _SRCCODEINFO { DWORD SizeOfStruct; PVOID Key; DWORD64 ModBase; CHAR Obj[MAX_PATH + 1]; CHAR FileName[MAX_PATH + 1]; DWORD LineNumber; DWORD64 Address; } SRCCODEINFO,*PSRCCODEINFO; typedef struct _SRCCODEINFOW { DWORD SizeOfStruct; PVOID Key; DWORD64 ModBase; WCHAR Obj[MAX_PATH + 1]; WCHAR FileName[MAX_PATH + 1]; DWORD LineNumber; DWORD64 Address; } SRCCODEINFOW,*PSRCCODEINFOW; typedef WINBOOL (CALLBACK *PSYM_ENUMLINES_CALLBACK)(PSRCCODEINFO LineInfo,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYM_ENUMLINES_CALLBACKW)(PSRCCODEINFOW LineInfo,PVOID UserContext); WINBOOL IMAGEAPI SymEnumLines(HANDLE hProcess,ULONG64 Base,PCSTR Obj,PCSTR File,PSYM_ENUMLINES_CALLBACK EnumLinesCallback,PVOID UserContext); WINBOOL IMAGEAPI SymEnumLinesW(HANDLE hProcess,ULONG64 Base,PCWSTR Obj,PCSTR File,PSYM_ENUMLINES_CALLBACKW EnumLinesCallback,PVOID UserContext); WINBOOL IMAGEAPI SymGetLineFromAddr64(HANDLE hProcess,DWORD64 qwAddr,PDWORD pdwDisplacement,PIMAGEHLP_LINE64 Line64); WINBOOL IMAGEAPI SymGetLineFromAddrW64(HANDLE hProcess,DWORD64 qwAddr,PDWORD pdwDisplacement,PIMAGEHLP_LINEW64 Line64); #ifdef _IMAGEHLP64 #define SymGetLineFromAddr SymGetLineFromAddr64 #else WINBOOL IMAGEAPI SymGetLineFromAddr(HANDLE hProcess,DWORD dwAddr,PDWORD pdwDisplacement,PIMAGEHLP_LINE Line); #endif WINBOOL IMAGEAPI SymGetLineFromName64(HANDLE hProcess,PCSTR ModuleName,PCSTR FileName,DWORD dwLineNumber,PLONG plDisplacement,PIMAGEHLP_LINE64 Line); WINBOOL IMAGEAPI SymGetLineFromNameW64(HANDLE hProcess,PCWSTR ModuleName,PCWSTR FileName,DWORD dwLineNumber,PLONG plDisplacement,PIMAGEHLP_LINEW64 Line); #ifdef _IMAGEHLP64 #define SymGetLineFromName SymGetLineFromName64 #else WINBOOL IMAGEAPI SymGetLineFromName(HANDLE hProcess,PCSTR ModuleName,PCSTR FileName,DWORD dwLineNumber,PLONG plDisplacement,PIMAGEHLP_LINE Line); #endif WINBOOL IMAGEAPI SymGetLineNext64(HANDLE hProcess,PIMAGEHLP_LINE64 Line); WINBOOL IMAGEAPI SymGetLineNextW64(HANDLE hProcess,PIMAGEHLP_LINEW64 Line); #ifdef _IMAGEHLP64 #define SymGetLineNext SymGetLineNext64 #else WINBOOL IMAGEAPI SymGetLineNext(HANDLE hProcess,PIMAGEHLP_LINE Line); #endif WINBOOL IMAGEAPI SymGetLinePrev64(HANDLE hProcess,PIMAGEHLP_LINE64 Line); WINBOOL IMAGEAPI SymGetLinePrevW64(HANDLE hProcess,PIMAGEHLP_LINEW64 Line); #ifdef _IMAGEHLP64 #define SymGetLinePrev SymGetLinePrev64 #else WINBOOL IMAGEAPI SymGetLinePrev(HANDLE hProcess,PIMAGEHLP_LINE Line); #endif WINBOOL IMAGEAPI SymMatchFileName(PCSTR FileName,PCSTR Match,PSTR *FileNameStop,PSTR *MatchStop); WINBOOL IMAGEAPI SymMatchFileNameW(PCWSTR FileName,PCWSTR Match,PWSTR *FileNameStop,PWSTR *MatchStop); WINBOOL IMAGEAPI SymInitialize(HANDLE hProcess,PCSTR UserSearchPath,WINBOOL fInvadeProcess); WINBOOL IMAGEAPI SymInitializeW(HANDLE hProcess,PCWSTR UserSearchPath,WINBOOL fInvadeProcess); WINBOOL IMAGEAPI SymGetSearchPath(HANDLE hProcess,PSTR SearchPath,DWORD SearchPathLength); WINBOOL IMAGEAPI SymGetSearchPathW(HANDLE hProcess,PWSTR SearchPath,DWORD SearchPathLength); WINBOOL IMAGEAPI SymSetSearchPath(HANDLE hProcess,PCSTR SearchPath); WINBOOL IMAGEAPI SymSetSearchPathW(HANDLE hProcess,PCWSTR SearchPath); DWORD64 IMAGEAPI SymLoadModule64(HANDLE hProcess,HANDLE hFile,PSTR ImageName,PSTR ModuleName,DWORD64 BaseOfDll,DWORD SizeOfDll); #define SLMFLAG_VIRTUAL 0x1 DWORD64 IMAGEAPI SymLoadModuleEx(HANDLE hProcess,HANDLE hFile,PCSTR ImageName,PCSTR ModuleName,DWORD64 BaseOfDll,DWORD DllSize,PMODLOAD_DATA Data,DWORD Flags); DWORD64 IMAGEAPI SymLoadModuleExW(HANDLE hProcess,HANDLE hFile,PCWSTR ImageName,PCWSTR ModuleName,DWORD64 BaseOfDll,DWORD DllSize,PMODLOAD_DATA Data,DWORD Flags); #ifdef _IMAGEHLP64 #define SymLoadModule SymLoadModule64 #else DWORD IMAGEAPI SymLoadModule(HANDLE hProcess,HANDLE hFile,PCSTR ImageName,PCSTR ModuleName,DWORD BaseOfDll,DWORD SizeOfDll); #endif WINBOOL IMAGEAPI SymUnloadModule64(HANDLE hProcess,DWORD64 BaseOfDll); #ifdef _IMAGEHLP64 #define SymUnloadModule SymUnloadModule64 #else WINBOOL IMAGEAPI SymUnloadModule(HANDLE hProcess,DWORD BaseOfDll); #endif WINBOOL IMAGEAPI SymUnDName64(PIMAGEHLP_SYMBOL64 sym,PSTR UnDecName,DWORD UnDecNameLength); #ifdef _IMAGEHLP64 #define SymUnDName SymUnDName64 #else WINBOOL IMAGEAPI SymUnDName(PIMAGEHLP_SYMBOL sym,PSTR UnDecName,DWORD UnDecNameLength); #endif WINBOOL IMAGEAPI SymRegisterCallback64(HANDLE hProcess,PSYMBOL_REGISTERED_CALLBACK64 CallbackFunction,ULONG64 UserContext); WINBOOL IMAGEAPI SymRegisterCallback64W(HANDLE hProcess,PSYMBOL_REGISTERED_CALLBACK64 CallbackFunction,ULONG64 UserContext); WINBOOL IMAGEAPI SymRegisterFunctionEntryCallback64(HANDLE hProcess,PSYMBOL_FUNCENTRY_CALLBACK64 CallbackFunction,ULONG64 UserContext); #ifdef _IMAGEHLP64 #define SymRegisterCallback SymRegisterCallback64 #define SymRegisterFunctionEntryCallback SymRegisterFunctionEntryCallback64 #else WINBOOL IMAGEAPI SymRegisterCallback(HANDLE hProcess,PSYMBOL_REGISTERED_CALLBACK CallbackFunction,PVOID UserContext); WINBOOL IMAGEAPI SymRegisterFunctionEntryCallback(HANDLE hProcess,PSYMBOL_FUNCENTRY_CALLBACK CallbackFunction,PVOID UserContext); #endif typedef struct _IMAGEHLP_SYMBOL_SRC { DWORD sizeofstruct; DWORD type; char file[MAX_PATH]; } IMAGEHLP_SYMBOL_SRC,*PIMAGEHLP_SYMBOL_SRC; typedef struct _MODULE_TYPE_INFO { USHORT dataLength; USHORT leaf; BYTE data[1]; } MODULE_TYPE_INFO,*PMODULE_TYPE_INFO; typedef struct _SYMBOL_INFO { ULONG SizeOfStruct; ULONG TypeIndex; ULONG64 Reserved[2]; ULONG info; ULONG Size; ULONG64 ModBase; ULONG Flags; ULONG64 Value; ULONG64 Address; ULONG Register; ULONG Scope; ULONG Tag; ULONG NameLen; ULONG MaxNameLen; CHAR Name[1]; } SYMBOL_INFO,*PSYMBOL_INFO; typedef struct _SYMBOL_INFOW { ULONG SizeOfStruct; ULONG TypeIndex; ULONG64 Reserved[2]; ULONG info; ULONG Size; ULONG64 ModBase; ULONG Flags; ULONG64 Value; ULONG64 Address; ULONG Register; ULONG Scope; ULONG Tag; ULONG NameLen; ULONG MaxNameLen; WCHAR Name[1]; } SYMBOL_INFOW,*PSYMBOL_INFOW; #define SYMFLAG_CLR_TOKEN 0x00040000 #define SYMFLAG_CONSTANT 0x00000100 #define SYMFLAG_EXPORT 0x00000200 #define SYMFLAG_FORWARDER 0x00000400 #define SYMFLAG_FRAMEREL 0x00000020 #define SYMFLAG_FUNCTION 0x00000800 #define SYMFLAG_ILREL 0x00010000 #define SYMFLAG_LOCAL 0x00000080 #define SYMFLAG_METADATA 0x00020000 #define SYMFLAG_PARAMETER 0x00000040 #define SYMFLAG_REGISTER 0x00000008 #define SYMFLAG_REGREL 0x00000010 #define SYMFLAG_SLOT 0x00008000 #define SYMFLAG_THUNK 0x00002000 #define SYMFLAG_TLSREL 0x00004000 #define SYMFLAG_VALUEPRESENT 0x00000001 #define SYMFLAG_VIRTUAL 0x00001000 typedef struct _SYMBOL_INFO_PACKAGE { SYMBOL_INFO si; CHAR name[MAX_SYM_NAME + 1]; } SYMBOL_INFO_PACKAGE,*PSYMBOL_INFO_PACKAGE; typedef struct _IMAGEHLP_STACK_FRAME { ULONG64 InstructionOffset; ULONG64 ReturnOffset; ULONG64 FrameOffset; ULONG64 StackOffset; ULONG64 BackingStoreOffset; ULONG64 FuncTableEntry; ULONG64 Params[4]; ULONG64 Reserved[5]; WINBOOL Virtual; ULONG Reserved2; } IMAGEHLP_STACK_FRAME,*PIMAGEHLP_STACK_FRAME; typedef VOID IMAGEHLP_CONTEXT,*PIMAGEHLP_CONTEXT; WINBOOL IMAGEAPI SymSetContext(HANDLE hProcess,PIMAGEHLP_STACK_FRAME StackFrame,PIMAGEHLP_CONTEXT Context); WINBOOL IMAGEAPI SymFromAddr(HANDLE hProcess,DWORD64 Address,PDWORD64 Displacement,PSYMBOL_INFO Symbol); WINBOOL IMAGEAPI SymFromAddrW(HANDLE hProcess,DWORD64 Address,PDWORD64 Displacement,PSYMBOL_INFOW Symbol); WINBOOL IMAGEAPI SymFromToken(HANDLE hProcess,DWORD64 Base,DWORD Token,PSYMBOL_INFO Symbol); WINBOOL IMAGEAPI SymFromTokenW(HANDLE hProcess,DWORD64 Base,DWORD Token,PSYMBOL_INFOW Symbol); WINBOOL IMAGEAPI SymFromName(HANDLE hProcess,PCSTR Name,PSYMBOL_INFO Symbol); WINBOOL IMAGEAPI SymFromNameW(HANDLE hProcess,PCWSTR Name,PSYMBOL_INFOW Symbol); typedef WINBOOL (CALLBACK *PSYM_ENUMERATESYMBOLS_CALLBACK)(PSYMBOL_INFO pSymInfo,ULONG SymbolSize,PVOID UserContext); typedef WINBOOL (CALLBACK *PSYM_ENUMERATESYMBOLS_CALLBACKW)(PSYMBOL_INFOW pSymInfo,ULONG SymbolSize,PVOID UserContext); WINBOOL IMAGEAPI SymEnumSymbols(HANDLE hProcess,ULONG64 BaseOfDll,PCSTR Mask,PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback,PVOID UserContext); WINBOOL IMAGEAPI SymEnumSymbolsW(HANDLE hProcess,ULONG64 BaseOfDll,PCWSTR Mask,PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback,PVOID UserContext); WINBOOL IMAGEAPI SymEnumSymbolsForAddr(HANDLE hProcess,DWORD64 Address,PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback,PVOID UserContext); WINBOOL IMAGEAPI SymEnumSymbolsForAddrW(HANDLE hProcess,DWORD64 Address,PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback,PVOID UserContext); #define SYMENUMFLAG_FULLSRCH 1 #define SYMENUMFLAG_SPEEDSRCH 2 typedef enum _IMAGEHLP_SYMBOL_TYPE_INFO { TI_GET_SYMTAG, TI_GET_SYMNAME, TI_GET_LENGTH, TI_GET_TYPE, TI_GET_TYPEID, TI_GET_BASETYPE, TI_GET_ARRAYINDEXTYPEID, TI_FINDCHILDREN, TI_GET_DATAKIND, TI_GET_ADDRESSOFFSET, TI_GET_OFFSET, TI_GET_VALUE, TI_GET_COUNT, TI_GET_CHILDRENCOUNT, TI_GET_BITPOSITION, TI_GET_VIRTUALBASECLASS, TI_GET_VIRTUALTABLESHAPEID, TI_GET_VIRTUALBASEPOINTEROFFSET, TI_GET_CLASSPARENTID, TI_GET_NESTED, TI_GET_SYMINDEX, TI_GET_LEXICALPARENT, TI_GET_ADDRESS, TI_GET_THISADJUST, TI_GET_UDTKIND, TI_IS_EQUIV_TO, TI_GET_CALLING_CONVENTION } IMAGEHLP_SYMBOL_TYPE_INFO; typedef struct _TI_FINDCHILDREN_PARAMS { ULONG Count; ULONG Start; ULONG ChildId[1]; } TI_FINDCHILDREN_PARAMS; WINBOOL IMAGEAPI SymGetTypeInfo(HANDLE hProcess,DWORD64 ModBase,ULONG TypeId,IMAGEHLP_SYMBOL_TYPE_INFO GetType,PVOID pInfo); WINBOOL IMAGEAPI SymEnumTypes(HANDLE hProcess,ULONG64 BaseOfDll,PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback,PVOID UserContext); WINBOOL IMAGEAPI SymEnumTypesW(HANDLE hProcess,ULONG64 BaseOfDll,PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback,PVOID UserContext); WINBOOL IMAGEAPI SymGetTypeFromName(HANDLE hProcess,ULONG64 BaseOfDll,PCSTR Name,PSYMBOL_INFO Symbol); WINBOOL IMAGEAPI SymGetTypeFromNameW(HANDLE hProcess,ULONG64 BaseOfDll,PCWSTR Name,PSYMBOL_INFOW Symbol); WINBOOL IMAGEAPI SymAddSymbol(HANDLE hProcess,ULONG64 BaseOfDll,PCSTR Name,DWORD64 Address,DWORD Size,DWORD Flags); WINBOOL IMAGEAPI SymAddSymbolW(HANDLE hProcess,ULONG64 BaseOfDll,PCWSTR Name,DWORD64 Address,DWORD Size,DWORD Flags); WINBOOL IMAGEAPI SymDeleteSymbol(HANDLE hProcess,ULONG64 BaseOfDll,PCSTR Name,DWORD64 Address,DWORD Flags); WINBOOL IMAGEAPI SymDeleteSymbolW(HANDLE hProcess,ULONG64 BaseOfDll,PCWSTR Name,DWORD64 Address,DWORD Flags); typedef WINBOOL (WINAPI *PDBGHELP_CREATE_USER_DUMP_CALLBACK)(DWORD DataType,PVOID *Data,LPDWORD DataLength,PVOID UserData); WINBOOL WINAPI DbgHelpCreateUserDump(LPCSTR FileName,PDBGHELP_CREATE_USER_DUMP_CALLBACK Callback,PVOID UserData); WINBOOL WINAPI DbgHelpCreateUserDumpW(LPCWSTR FileName,PDBGHELP_CREATE_USER_DUMP_CALLBACK Callback,PVOID UserData); WINBOOL IMAGEAPI SymGetSymFromAddr64(HANDLE hProcess,DWORD64 qwAddr,PDWORD64 pdwDisplacement,PIMAGEHLP_SYMBOL64 Symbol); #ifdef _IMAGEHLP64 #define SymGetSymFromAddr SymGetSymFromAddr64 #else WINBOOL IMAGEAPI SymGetSymFromAddr(HANDLE hProcess,DWORD dwAddr,PDWORD pdwDisplacement,PIMAGEHLP_SYMBOL Symbol); #endif WINBOOL IMAGEAPI SymGetSymFromName64(HANDLE hProcess,PCSTR Name,PIMAGEHLP_SYMBOL64 Symbol); #ifdef _IMAGEHLP64 #define SymGetSymFromName SymGetSymFromName64 #else WINBOOL IMAGEAPI SymGetSymFromName(HANDLE hProcess,PCSTR Name,PIMAGEHLP_SYMBOL Symbol); #endif DBHLP_DEPRECIATED WINBOOL IMAGEAPI FindFileInPath(HANDLE hprocess,PCSTR SearchPath,PCSTR FileName,PVOID id,DWORD two,DWORD three,DWORD flags,PSTR FilePath); DBHLP_DEPRECIATED WINBOOL IMAGEAPI FindFileInSearchPath(HANDLE hprocess,PCSTR SearchPath,PCSTR FileName,DWORD one,DWORD two,DWORD three,PSTR FilePath); DBHLP_DEPRECIATED WINBOOL IMAGEAPI SymEnumSym(HANDLE hProcess,ULONG64 BaseOfDll,PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback,PVOID UserContext); #ifdef __cplusplus } #endif #define SYMF_OMAP_GENERATED 0x00000001 #define SYMF_OMAP_MODIFIED 0x00000002 #define SYMF_REGISTER 0x00000008 #define SYMF_REGREL 0x00000010 #define SYMF_FRAMEREL 0x00000020 #define SYMF_PARAMETER 0x00000040 #define SYMF_LOCAL 0x00000080 #define SYMF_CONSTANT 0x00000100 #define SYMF_EXPORT 0x00000200 #define SYMF_FORWARDER 0x00000400 #define SYMF_FUNCTION 0x00000800 #define SYMF_VIRTUAL 0x00001000 #define SYMF_THUNK 0x00002000 #define SYMF_TLSREL 0x00004000 #define IMAGEHLP_SYMBOL_INFO_VALUEPRESENT 1 #define IMAGEHLP_SYMBOL_INFO_REGISTER SYMF_REGISTER #define IMAGEHLP_SYMBOL_INFO_REGRELATIVE SYMF_REGREL #define IMAGEHLP_SYMBOL_INFO_FRAMERELATIVE SYMF_FRAMEREL #define IMAGEHLP_SYMBOL_INFO_PARAMETER SYMF_PARAMETER #define IMAGEHLP_SYMBOL_INFO_LOCAL SYMF_LOCAL #define IMAGEHLP_SYMBOL_INFO_CONSTANT SYMF_CONSTANT #define IMAGEHLP_SYMBOL_FUNCTION SYMF_FUNCTION #define IMAGEHLP_SYMBOL_VIRTUAL SYMF_VIRTUAL #define IMAGEHLP_SYMBOL_THUNK SYMF_THUNK #define IMAGEHLP_SYMBOL_INFO_TLSRELATIVE SYMF_TLSREL #include <pshpack4.h> #define MINIDUMP_SIGNATURE ('PMDM') #define MINIDUMP_VERSION (42899) typedef DWORD RVA; typedef ULONG64 RVA64; typedef struct _MINIDUMP_LOCATION_DESCRIPTOR { ULONG32 DataSize; RVA Rva; } MINIDUMP_LOCATION_DESCRIPTOR; typedef struct _MINIDUMP_LOCATION_DESCRIPTOR64 { ULONG64 DataSize; RVA64 Rva; } MINIDUMP_LOCATION_DESCRIPTOR64; typedef struct _MINIDUMP_MEMORY_DESCRIPTOR { ULONG64 StartOfMemoryRange; MINIDUMP_LOCATION_DESCRIPTOR Memory; } MINIDUMP_MEMORY_DESCRIPTOR,*PMINIDUMP_MEMORY_DESCRIPTOR; typedef struct _MINIDUMP_MEMORY_DESCRIPTOR64 { ULONG64 StartOfMemoryRange; ULONG64 DataSize; } MINIDUMP_MEMORY_DESCRIPTOR64,*PMINIDUMP_MEMORY_DESCRIPTOR64; typedef struct _MINIDUMP_HEADER { ULONG32 Signature; ULONG32 Version; ULONG32 NumberOfStreams; RVA StreamDirectoryRva; ULONG32 CheckSum; __C89_NAMELESS union { ULONG32 Reserved; ULONG32 TimeDateStamp; }; ULONG64 Flags; } MINIDUMP_HEADER,*PMINIDUMP_HEADER; typedef struct _MINIDUMP_DIRECTORY { ULONG32 StreamType; MINIDUMP_LOCATION_DESCRIPTOR Location; } MINIDUMP_DIRECTORY,*PMINIDUMP_DIRECTORY; typedef struct _MINIDUMP_STRING { ULONG32 Length; WCHAR Buffer[0]; } MINIDUMP_STRING,*PMINIDUMP_STRING; typedef enum _MINIDUMP_STREAM_TYPE { UnusedStream = 0, ReservedStream0 = 1, ReservedStream1 = 2, ThreadListStream = 3, ModuleListStream = 4, MemoryListStream = 5, ExceptionStream = 6, SystemInfoStream = 7, ThreadExListStream = 8, Memory64ListStream = 9, CommentStreamA = 10, CommentStreamW = 11, HandleDataStream = 12, FunctionTableStream = 13, UnloadedModuleListStream = 14, MiscInfoStream = 15, MemoryInfoListStream = 16, ThreadInfoListStream = 17, HandleOperationListStream = 18, TokenStream = 19, ceStreamNull = 0x8000, ceStreamSystemInfo = 0x8001, ceStreamException = 0x8002, ceStreamModuleList = 0x8003, ceStreamProcessList = 0x8004, ceStreamThreadList = 0x8005, ceStreamThreadContextList = 0x8006, ceStreamThreadCallStackList = 0x8007, ceStreamMemoryVirtualList = 0x8008, ceStreamMemoryPhysicalList = 0x8009, ceStreamBucketParameters = 0x800a, ceStreamProcessModuleMap = 0x800b, ceStreamDiagnosisList = 0x800c, LastReservedStream = 0xffff } MINIDUMP_STREAM_TYPE; typedef union _CPU_INFORMATION { struct { ULONG32 VendorId[3]; ULONG32 VersionInformation; ULONG32 FeatureInformation; ULONG32 AMDExtendedCpuFeatures; } X86CpuInfo; struct { ULONG64 ProcessorFeatures[2]; } OtherCpuInfo; } CPU_INFORMATION,*PCPU_INFORMATION; typedef struct _MINIDUMP_SYSTEM_INFO { USHORT ProcessorArchitecture; USHORT ProcessorLevel; USHORT ProcessorRevision; __C89_NAMELESS union { USHORT Reserved0; __C89_NAMELESS struct { UCHAR NumberOfProcessors; UCHAR ProductType; }; }; ULONG32 MajorVersion; ULONG32 MinorVersion; ULONG32 BuildNumber; ULONG32 PlatformId; RVA CSDVersionRva; __C89_NAMELESS union { ULONG32 Reserved1; __C89_NAMELESS struct { USHORT SuiteMask; USHORT Reserved2; }; }; CPU_INFORMATION Cpu; } MINIDUMP_SYSTEM_INFO,*PMINIDUMP_SYSTEM_INFO; C_ASSERT(sizeof(((PPROCESS_INFORMATION)0)->dwThreadId)==4); typedef struct _MINIDUMP_THREAD { ULONG32 ThreadId; ULONG32 SuspendCount; ULONG32 PriorityClass; ULONG32 Priority; ULONG64 Teb; MINIDUMP_MEMORY_DESCRIPTOR Stack; MINIDUMP_LOCATION_DESCRIPTOR ThreadContext; } MINIDUMP_THREAD,*PMINIDUMP_THREAD; typedef struct _MINIDUMP_THREAD_LIST { ULONG32 NumberOfThreads; MINIDUMP_THREAD Threads[0]; } MINIDUMP_THREAD_LIST,*PMINIDUMP_THREAD_LIST; typedef struct _MINIDUMP_THREAD_EX { ULONG32 ThreadId; ULONG32 SuspendCount; ULONG32 PriorityClass; ULONG32 Priority; ULONG64 Teb; MINIDUMP_MEMORY_DESCRIPTOR Stack; MINIDUMP_LOCATION_DESCRIPTOR ThreadContext; MINIDUMP_MEMORY_DESCRIPTOR BackingStore; } MINIDUMP_THREAD_EX,*PMINIDUMP_THREAD_EX; typedef struct _MINIDUMP_THREAD_EX_LIST { ULONG32 NumberOfThreads; MINIDUMP_THREAD_EX Threads[0]; } MINIDUMP_THREAD_EX_LIST,*PMINIDUMP_THREAD_EX_LIST; typedef struct _MINIDUMP_EXCEPTION { ULONG32 ExceptionCode; ULONG32 ExceptionFlags; ULONG64 ExceptionRecord; ULONG64 ExceptionAddress; ULONG32 NumberParameters; ULONG32 __unusedAlignment; ULONG64 ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS]; } MINIDUMP_EXCEPTION,*PMINIDUMP_EXCEPTION; typedef struct MINIDUMP_EXCEPTION_STREAM { ULONG32 ThreadId; ULONG32 __alignment; MINIDUMP_EXCEPTION ExceptionRecord; MINIDUMP_LOCATION_DESCRIPTOR ThreadContext; } MINIDUMP_EXCEPTION_STREAM,*PMINIDUMP_EXCEPTION_STREAM; typedef struct _MINIDUMP_MODULE { ULONG64 BaseOfImage; ULONG32 SizeOfImage; ULONG32 CheckSum; ULONG32 TimeDateStamp; RVA ModuleNameRva; VS_FIXEDFILEINFO VersionInfo; MINIDUMP_LOCATION_DESCRIPTOR CvRecord; MINIDUMP_LOCATION_DESCRIPTOR MiscRecord; ULONG64 Reserved0; ULONG64 Reserved1; } MINIDUMP_MODULE,*PMINIDUMP_MODULE; typedef struct _MINIDUMP_MODULE_LIST { ULONG32 NumberOfModules; MINIDUMP_MODULE Modules[0]; } MINIDUMP_MODULE_LIST,*PMINIDUMP_MODULE_LIST; typedef struct _MINIDUMP_MEMORY_LIST { ULONG32 NumberOfMemoryRanges; MINIDUMP_MEMORY_DESCRIPTOR MemoryRanges[0]; } MINIDUMP_MEMORY_LIST,*PMINIDUMP_MEMORY_LIST; typedef struct _MINIDUMP_MEMORY64_LIST { ULONG64 NumberOfMemoryRanges; RVA64 BaseRva; MINIDUMP_MEMORY_DESCRIPTOR64 MemoryRanges[0]; } MINIDUMP_MEMORY64_LIST,*PMINIDUMP_MEMORY64_LIST; typedef struct _MINIDUMP_EXCEPTION_INFORMATION { DWORD ThreadId; PEXCEPTION_POINTERS ExceptionPointers; WINBOOL ClientPointers; } MINIDUMP_EXCEPTION_INFORMATION,*PMINIDUMP_EXCEPTION_INFORMATION; typedef struct _MINIDUMP_EXCEPTION_INFORMATION64 { DWORD ThreadId; ULONG64 ExceptionRecord; ULONG64 ContextRecord; WINBOOL ClientPointers; } MINIDUMP_EXCEPTION_INFORMATION64,*PMINIDUMP_EXCEPTION_INFORMATION64; typedef struct _MINIDUMP_HANDLE_DESCRIPTOR { ULONG64 Handle; RVA TypeNameRva; RVA ObjectNameRva; ULONG32 Attributes; ULONG32 GrantedAccess; ULONG32 HandleCount; ULONG32 PointerCount; } MINIDUMP_HANDLE_DESCRIPTOR,*PMINIDUMP_HANDLE_DESCRIPTOR; typedef struct _MINIDUMP_HANDLE_DATA_STREAM { ULONG32 SizeOfHeader; ULONG32 SizeOfDescriptor; ULONG32 NumberOfDescriptors; ULONG32 Reserved; } MINIDUMP_HANDLE_DATA_STREAM,*PMINIDUMP_HANDLE_DATA_STREAM; typedef struct _MINIDUMP_FUNCTION_TABLE_DESCRIPTOR { ULONG64 MinimumAddress; ULONG64 MaximumAddress; ULONG64 BaseAddress; ULONG32 EntryCount; ULONG32 SizeOfAlignPad; } MINIDUMP_FUNCTION_TABLE_DESCRIPTOR,*PMINIDUMP_FUNCTION_TABLE_DESCRIPTOR; typedef struct _MINIDUMP_FUNCTION_TABLE_STREAM { ULONG32 SizeOfHeader; ULONG32 SizeOfDescriptor; ULONG32 SizeOfNativeDescriptor; ULONG32 SizeOfFunctionEntry; ULONG32 NumberOfDescriptors; ULONG32 SizeOfAlignPad; } MINIDUMP_FUNCTION_TABLE_STREAM,*PMINIDUMP_FUNCTION_TABLE_STREAM; typedef struct _MINIDUMP_UNLOADED_MODULE { ULONG64 BaseOfImage; ULONG32 SizeOfImage; ULONG32 CheckSum; ULONG32 TimeDateStamp; RVA ModuleNameRva; } MINIDUMP_UNLOADED_MODULE,*PMINIDUMP_UNLOADED_MODULE; typedef struct _MINIDUMP_UNLOADED_MODULE_LIST { ULONG32 SizeOfHeader; ULONG32 SizeOfEntry; ULONG32 NumberOfEntries; } MINIDUMP_UNLOADED_MODULE_LIST,*PMINIDUMP_UNLOADED_MODULE_LIST; #define MINIDUMP_MISC1_PROCESS_ID 0x00000001 #define MINIDUMP_MISC1_PROCESS_TIMES 0x00000002 #define MINIDUMP_MISC1_PROCESSOR_POWER_INFO 0x00000004 typedef struct _MINIDUMP_MISC_INFO { ULONG32 SizeOfInfo; ULONG32 Flags1; ULONG32 ProcessId; ULONG32 ProcessCreateTime; ULONG32 ProcessUserTime; ULONG32 ProcessKernelTime; } MINIDUMP_MISC_INFO,*PMINIDUMP_MISC_INFO; typedef struct _MINIDUMP_USER_RECORD { ULONG32 Type; MINIDUMP_LOCATION_DESCRIPTOR Memory; } MINIDUMP_USER_RECORD,*PMINIDUMP_USER_RECORD; typedef struct _MINIDUMP_USER_STREAM { ULONG32 Type; ULONG BufferSize; PVOID Buffer; } MINIDUMP_USER_STREAM,*PMINIDUMP_USER_STREAM; typedef struct _MINIDUMP_USER_STREAM_INFORMATION { ULONG UserStreamCount; PMINIDUMP_USER_STREAM UserStreamArray; } MINIDUMP_USER_STREAM_INFORMATION,*PMINIDUMP_USER_STREAM_INFORMATION; typedef enum _MINIDUMP_CALLBACK_TYPE { ModuleCallback, ThreadCallback, ThreadExCallback, IncludeThreadCallback, IncludeModuleCallback, MemoryCallback, CancelCallback, WriteKernelMinidumpCallback, KernelMinidumpStatusCallback, RemoveMemoryCallback, IncludeVmRegionCallback, IoStartCallback, IoWriteAllCallback, IoFinishCallback, ReadMemoryFailureCallback, SecondaryFlagsCallback } MINIDUMP_CALLBACK_TYPE; typedef struct _MINIDUMP_THREAD_CALLBACK { ULONG ThreadId; HANDLE ThreadHandle; CONTEXT Context; ULONG SizeOfContext; ULONG64 StackBase; ULONG64 StackEnd; } MINIDUMP_THREAD_CALLBACK,*PMINIDUMP_THREAD_CALLBACK; typedef struct _MINIDUMP_THREAD_EX_CALLBACK { ULONG ThreadId; HANDLE ThreadHandle; CONTEXT Context; ULONG SizeOfContext; ULONG64 StackBase; ULONG64 StackEnd; ULONG64 BackingStoreBase; ULONG64 BackingStoreEnd; } MINIDUMP_THREAD_EX_CALLBACK,*PMINIDUMP_THREAD_EX_CALLBACK; typedef struct _MINIDUMP_INCLUDE_THREAD_CALLBACK { ULONG ThreadId; } MINIDUMP_INCLUDE_THREAD_CALLBACK,*PMINIDUMP_INCLUDE_THREAD_CALLBACK; typedef enum _THREAD_WRITE_FLAGS { ThreadWriteThread = 0x0001, ThreadWriteStack = 0x0002, ThreadWriteContext = 0x0004, ThreadWriteBackingStore = 0x0008, ThreadWriteInstructionWindow = 0x0010, ThreadWriteThreadData = 0x0020, ThreadWriteThreadInfo = 0x0040 } THREAD_WRITE_FLAGS; typedef struct _MINIDUMP_MODULE_CALLBACK { PWCHAR FullPath; ULONG64 BaseOfImage; ULONG SizeOfImage; ULONG CheckSum; ULONG TimeDateStamp; VS_FIXEDFILEINFO VersionInfo; PVOID CvRecord; ULONG SizeOfCvRecord; PVOID MiscRecord; ULONG SizeOfMiscRecord; } MINIDUMP_MODULE_CALLBACK,*PMINIDUMP_MODULE_CALLBACK; typedef struct _MINIDUMP_INCLUDE_MODULE_CALLBACK { ULONG64 BaseOfImage; } MINIDUMP_INCLUDE_MODULE_CALLBACK,*PMINIDUMP_INCLUDE_MODULE_CALLBACK; typedef enum _MODULE_WRITE_FLAGS { ModuleWriteModule = 0x0001, ModuleWriteDataSeg = 0x0002, ModuleWriteMiscRecord = 0x0004, ModuleWriteCvRecord = 0x0008, ModuleReferencedByMemory = 0x0010, ModuleWriteTlsData = 0x0020, ModuleWriteCodeSegs = 0x0040 } MODULE_WRITE_FLAGS; typedef enum _MINIDUMP_SECONDARY_FLAGS { MiniSecondaryWithoutPowerInfo = 0x00000001 } MINIDUMP_SECONDARY_FLAGS; typedef struct _MINIDUMP_CALLBACK_INPUT { ULONG ProcessId; HANDLE ProcessHandle; ULONG CallbackType; __C89_NAMELESS union { MINIDUMP_THREAD_CALLBACK Thread; MINIDUMP_THREAD_EX_CALLBACK ThreadEx; MINIDUMP_MODULE_CALLBACK Module; MINIDUMP_INCLUDE_THREAD_CALLBACK IncludeThread; MINIDUMP_INCLUDE_MODULE_CALLBACK IncludeModule; }; } MINIDUMP_CALLBACK_INPUT,*PMINIDUMP_CALLBACK_INPUT; typedef struct _MINIDUMP_MEMORY_INFO { ULONG64 BaseAddress; ULONG64 AllocationBase; ULONG32 AllocationProtect; ULONG32 __alignment1; ULONG64 RegionSize; ULONG32 State; ULONG32 Protect; ULONG32 Type; ULONG32 __alignment2; } MINIDUMP_MEMORY_INFO, *PMINIDUMP_MEMORY_INFO; typedef struct _MINIDUMP_MISC_INFO_2 { ULONG32 SizeOfInfo; ULONG32 Flags1; ULONG32 ProcessId; ULONG32 ProcessCreateTime; ULONG32 ProcessUserTime; ULONG32 ProcessKernelTime; ULONG32 ProcessorMaxMhz; ULONG32 ProcessorCurrentMhz; ULONG32 ProcessorMhzLimit; ULONG32 ProcessorMaxIdleState; ULONG32 ProcessorCurrentIdleState; } MINIDUMP_MISC_INFO_2, *PMINIDUMP_MISC_INFO_2; typedef struct _MINIDUMP_MEMORY_INFO_LIST { ULONG SizeOfHeader; ULONG SizeOfEntry; ULONG64 NumberOfEntries; } MINIDUMP_MEMORY_INFO_LIST, *PMINIDUMP_MEMORY_INFO_LIST; typedef struct _MINIDUMP_CALLBACK_OUTPUT { __C89_NAMELESS union { ULONG ModuleWriteFlags; ULONG ThreadWriteFlags; ULONG SecondaryFlags; __C89_NAMELESS struct { ULONG64 MemoryBase; ULONG MemorySize; }; __C89_NAMELESS struct { WINBOOL CheckCancel; WINBOOL Cancel; }; HANDLE Handle; }; __C89_NAMELESS struct { MINIDUMP_MEMORY_INFO VmRegion; WINBOOL Continue; }; HRESULT Status; } MINIDUMP_CALLBACK_OUTPUT, *PMINIDUMP_CALLBACK_OUTPUT; typedef enum _MINIDUMP_TYPE { MiniDumpNormal = 0x00000000, MiniDumpWithDataSegs = 0x00000001, MiniDumpWithFullMemory = 0x00000002, MiniDumpWithHandleData = 0x00000004, MiniDumpFilterMemory = 0x00000008, MiniDumpScanMemory = 0x00000010, MiniDumpWithUnloadedModules = 0x00000020, MiniDumpWithIndirectlyReferencedMemory = 0x00000040, MiniDumpFilterModulePaths = 0x00000080, MiniDumpWithProcessThreadData = 0x00000100, MiniDumpWithPrivateReadWriteMemory = 0x00000200, MiniDumpWithoutOptionalData = 0x00000400, MiniDumpWithFullMemoryInfo = 0x00000800, MiniDumpWithThreadInfo = 0x00001000, MiniDumpWithCodeSegs = 0x00002000, MiniDumpWithoutAuxiliaryState = 0x00004000, MiniDumpWithFullAuxiliaryState = 0x00008000, MiniDumpWithPrivateWriteCopyMemory = 0x00010000, MiniDumpIgnoreInaccessibleMemory = 0x00020000, MiniDumpWithTokenInformation = 0x00040000 } MINIDUMP_TYPE; #define MINIDUMP_THREAD_INFO_ERROR_THREAD 0x00000001 #define MINIDUMP_THREAD_INFO_WRITING_THREAD 0x00000002 #define MINIDUMP_THREAD_INFO_EXITED_THREAD 0x00000004 #define MINIDUMP_THREAD_INFO_INVALID_INFO 0x00000008 #define MINIDUMP_THREAD_INFO_INVALID_CONTEXT 0x00000010 #define MINIDUMP_THREAD_INFO_INVALID_TEB 0x00000020 typedef struct _MINIDUMP_THREAD_INFO { ULONG32 ThreadId; ULONG32 DumpFlags; ULONG32 DumpError; ULONG32 ExitStatus; ULONG64 CreateTime; ULONG64 ExitTime; ULONG64 KernelTime; ULONG64 UserTime; ULONG64 StartAddress; ULONG64 Affinity; } MINIDUMP_THREAD_INFO, *PMINIDUMP_THREAD_INFO; typedef struct _MINIDUMP_THREAD_INFO_LIST { ULONG SizeOfHeader; ULONG SizeOfEntry; ULONG NumberOfEntries; } MINIDUMP_THREAD_INFO_LIST, *PMINIDUMP_THREAD_INFO_LIST; typedef struct _MINIDUMP_HANDLE_OPERATION_LIST { ULONG32 SizeOfHeader; ULONG32 SizeOfEntry; ULONG32 NumberOfEntries; ULONG32 Reserved; } MINIDUMP_HANDLE_OPERATION_LIST, *PMINIDUMP_HANDLE_OPERATION_LIST; #ifdef __cplusplus extern "C" { #endif typedef WINBOOL (WINAPI *MINIDUMP_CALLBACK_ROUTINE)(PVOID CallbackParam,CONST PMINIDUMP_CALLBACK_INPUT CallbackInput,PMINIDUMP_CALLBACK_OUTPUT CallbackOutput); typedef struct _MINIDUMP_CALLBACK_INFORMATION { MINIDUMP_CALLBACK_ROUTINE CallbackRoutine; PVOID CallbackParam; } MINIDUMP_CALLBACK_INFORMATION,*PMINIDUMP_CALLBACK_INFORMATION; #define RVA_TO_ADDR(Mapping,Rva) ((PVOID)(((ULONG_PTR) (Mapping)) + (Rva))) WINBOOL WINAPI MiniDumpWriteDump(HANDLE hProcess,DWORD ProcessId,HANDLE hFile,MINIDUMP_TYPE DumpType,CONST PMINIDUMP_EXCEPTION_INFORMATION ExceptionParam,CONST PMINIDUMP_USER_STREAM_INFORMATION UserStreamParam,CONST PMINIDUMP_CALLBACK_INFORMATION CallbackParam); WINBOOL WINAPI MiniDumpReadDumpStream(PVOID BaseOfDump,ULONG StreamNumber,PMINIDUMP_DIRECTORY *Dir,PVOID *StreamPointer,ULONG *StreamSize); WINBOOL WINAPI EnumerateLoadedModulesEx( HANDLE hProcess, PENUMLOADED_MODULES_CALLBACK64 EnumLoadedModulesCallback, PVOID UserContext ); WINBOOL WINAPI EnumerateLoadedModulesExW( HANDLE hProcess, PENUMLOADED_MODULES_CALLBACKW64 EnumLoadedModulesCallback, PVOID UserContext ); WINBOOL WINAPI SymAddSourceStream( HANDLE hProcess, ULONG64 Base, PCSTR StreamFile, PBYTE Buffer, size_t Size ); WINBOOL WINAPI SymAddSourceStreamW( HANDLE hProcess, ULONG64 Base, PCWSTR StreamFile, PBYTE Buffer, size_t Size ); WINBOOL WINAPI SymEnumSourceLines( HANDLE hProcess, ULONG64 Base, PCSTR Obj, PCSTR File, DWORD Line, DWORD Flags, PSYM_ENUMLINES_CALLBACK EnumLinesCallback, PVOID UserContext ); WINBOOL WINAPI SymEnumSourceLinesW( HANDLE hProcess, ULONG64 Base, PCWSTR Obj, PCWSTR File, DWORD Line, DWORD Flags, PSYM_ENUMLINES_CALLBACKW EnumLinesCallback, PVOID UserContext ); WINBOOL WINAPI SymEnumTypesByName( HANDLE hProcess, ULONG64 BaseOfDll, PCSTR mask, PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, PVOID UserContext ); WINBOOL WINAPI SymEnumTypesByNameW( HANDLE hProcess, ULONG64 BaseOfDll, PCSTR mask, PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, PVOID UserContext ); HANDLE WINAPI SymFindDebugInfoFile( HANDLE hProcess, PCSTR FileName, PSTR DebugFilePath, PFIND_DEBUG_FILE_CALLBACK Callback, PVOID CallerData ); HANDLE WINAPI SymFindDebugInfoFileW( HANDLE hProcess, PCWSTR FileName, PWSTR DebugFilePath, PFIND_DEBUG_FILE_CALLBACKW Callback, PVOID CallerData ); HANDLE WINAPI SymFindExecutableImage( HANDLE hProcess, PCSTR FileName, PSTR ImageFilePath, PFIND_EXE_FILE_CALLBACK Callback, PVOID CallerData ); HANDLE WINAPI SymFindExecutableImageW( HANDLE hProcess, PCWSTR FileName, PWSTR ImageFilePath, PFIND_EXE_FILE_CALLBACKW Callback, PVOID CallerData ); WINBOOL WINAPI SymFromIndex( HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, PSYMBOL_INFO Symbol ); WINBOOL WINAPI SymFromIndexW( HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, PSYMBOL_INFOW Symbol ); WINBOOL WINAPI SymGetScope( HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, PSYMBOL_INFO Symbol ); WINBOOL WINAPI SymGetScopeW( HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, PSYMBOL_INFOW Symbol ); WINBOOL WINAPI SymGetSourceFileFromToken( HANDLE hProcess, PVOID Token, PCSTR Params, PSTR FilePath, DWORD Size ); WINBOOL WINAPI SymGetSourceFileFromTokenW( HANDLE hProcess, PVOID Token, PCWSTR Params, PWSTR FilePath, DWORD Size ); WINBOOL WINAPI SymGetSourceFileToken( HANDLE hProcess, ULONG64 Base, PCSTR FileSpec, PVOID *Token, DWORD *Size ); WINBOOL WINAPI SymGetSourceFileTokenW( HANDLE hProcess, ULONG64 Base, PCWSTR FileSpec, PVOID *Token, DWORD *Size ); WINBOOL WINAPI SymGetSourceFile( HANDLE hProcess, ULONG64 Base, PCSTR Params, PCSTR FileSpec, PSTR FilePath, DWORD Size ); WINBOOL WINAPI SymGetSourceFileW( HANDLE hProcess, ULONG64 Base, PCWSTR Params, PCWSTR FileSpec, PWSTR FilePath, DWORD Size ); WINBOOL WINAPI SymGetSourceVarFromToken( HANDLE hProcess, PVOID Token, PCSTR Params, PCSTR VarName, PSTR Value, DWORD Size ); WINBOOL WINAPI SymGetSourceVarFromTokenW( HANDLE hProcess, PVOID Token, PCWSTR Params, PCWSTR VarName, PWSTR Value, DWORD Size ); WINBOOL WINAPI SymGetSymbolFile( HANDLE hProcess, PCSTR SymPath, PCSTR ImageFile, DWORD Type, PSTR SymbolFile, size_t cSymbolFile, PSTR DbgFile, size_t cDbgFile ); WINBOOL WINAPI SymGetSymbolFileW( HANDLE hProcess, PCWSTR SymPath, PCWSTR ImageFile, DWORD Type, PWSTR SymbolFile, size_t cSymbolFile, PWSTR DbgFile, size_t cDbgFile ); WINBOOL WINAPI SymNext( HANDLE hProcess, PSYMBOL_INFO Symbol ); WINBOOL WINAPI SymNextW( HANDLE hProcess, PSYMBOL_INFOW Symbol ); WINBOOL WINAPI SymPrev( HANDLE hProcess, PSYMBOL_INFO Symbol ); WINBOOL WINAPI SymPrevW( HANDLE hProcess, PSYMBOL_INFOW Symbol ); WINBOOL WINAPI SymRefreshModuleList( HANDLE hProcess ); #define SYMSEARCH_MASKOBJS 0x01 #define SYMSEARCH_RECURSE 0x02 #define SYMSEARCH_GLOBALSONLY 0x04 #define SYMSEARCH_ALLITEMS 0x08 WINBOOL WINAPI SymSearch( HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, DWORD SymTag, PCSTR Mask, DWORD64 Address, PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, PVOID UserContext, DWORD Options ); WINBOOL WINAPI SymSearchW( HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, DWORD SymTag, PCWSTR Mask, DWORD64 Address, PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, PVOID UserContext, DWORD Options ); WINBOOL WINAPI SymSrvGetFileIndexString( HANDLE hProcess, PCSTR SrvPath, PCSTR File, PSTR Index, size_t Size, DWORD Flags ); WINBOOL WINAPI SymSrvGetFileIndexStringW( HANDLE hProcess, PCWSTR SrvPath, PCWSTR File, PWSTR Index, size_t Size, DWORD Flags ); #ifdef DBGHELP_TRANSLATE_TCHAR #define SymSrvGetFileIndexString SymSrvGetFileIndexStringW #endif WINBOOL WINAPI SymSrvGetFileIndexInfo( PCSTR File, PSYMSRV_INDEX_INFO Info, DWORD Flags ); WINBOOL WINAPI SymSrvGetFileIndexInfoW( PCWSTR File, PSYMSRV_INDEX_INFOW Info, DWORD Flags ); #ifdef DBGHELP_TRANSLATE_TCHAR #define SymSrvGetFileIndexInfo SymSrvGetFileIndexInfoW #endif WINBOOL WINAPI SymSrvGetFileIndexes( PCTSTR File, GUID *Id, DWORD *Val1, DWORD *Val2, DWORD Flags ); WINBOOL WINAPI SymSrvGetFileIndexesW( PCWSTR File, GUID *Id, DWORD *Val1, DWORD *Val2, DWORD Flags ); #ifdef DBGHELP_TRANSLATE_TCHAR #define SymSrvGetFileIndexes SymSrvGetFileIndexesW #endif PCSTR WINAPI SymSrvGetSupplement( HANDLE hProcess, PCSTR SymPath, PCSTR Node, PCSTR File ); PCWSTR WINAPI SymSrvGetSupplementW( HANDLE hProcess, PCWSTR SymPath, PCWSTR Node, PCWSTR File ); #ifdef DBGHELP_TRANSLATE_TCHAR #define SymSrvGetSupplement SymSrvGetSupplementW #endif WINBOOL WINAPI SymSrvIsStore( HANDLE hProcess, PCSTR path ); WINBOOL WINAPI SymSrvIsStoreW( HANDLE hProcess, PCWSTR path ); #ifdef DBGHELP_TRANSLATE_TCHAR #define SymSrvIsStore SymSrvIsStoreW #endif PCSTR WINAPI SymSrvStoreFile( HANDLE hProcess, PCSTR SrvPath, PCSTR File, DWORD Flags ); PCWSTR WINAPI SymSrvStoreFileW( HANDLE hProcess, PCWSTR SrvPath, PCWSTR File, DWORD Flags ); #define SYMSTOREOPT_COMPRESS 0x01 #define SYMSTOREOPT_OVERWRITE 0x02 #define SYMSTOREOPT_RETURNINDEX 0x04 #define SYMSTOREOPT_POINTER 0x08 #define SYMSTOREOPT_PASS_IF_EXISTS 0x40 #ifdef DBGHELP_TRANSLATE_TCHAR #define SymSrvStoreFile SymSrvStoreFileW #endif PCSTR WINAPI SymSrvStoreSupplement( HANDLE hProcess, const PCTSTR SymPath, PCSTR Node, PCSTR File, DWORD Flags ); PCWSTR WINAPI SymSrvStoreSupplementW( HANDLE hProcess, const PCWSTR SymPath, PCWSTR Node, PCWSTR File, DWORD Flags ); #ifdef DBGHELP_TRANSLATE_TCHAR #define SymSrvStoreSupplement SymSrvStoreSupplementW #endif PCSTR WINAPI SymSrvDeltaName( HANDLE hProcess, PCSTR SymPath, PCSTR Type, PCSTR File1, PCSTR File2 ); PCWSTR WINAPI SymSrvDeltaNameW( HANDLE hProcess, PCWSTR SymPath, PCWSTR Type, PCWSTR File1, PCWSTR File2 ); #ifdef DBGHELP_TRANSLATE_TCHAR #define SymSrvDeltaName SymSrvDeltaNameW #endif #include <poppack.h> #ifdef __cplusplus } #endif
{ "pile_set_name": "Github" }
#define DINT #include <../Source/umfpack_numeric.c>
{ "pile_set_name": "Github" }
[gd_resource type="Environment" load_steps=2 format=2] [sub_resource type="ProceduralSky" id=1] radiance_size = 1 sky_top_color = Color( 0.301961, 0.403922, 0.909804, 1 ) sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 ) sky_curve = 0.25 sky_energy = 1.0 ground_bottom_color = Color( 0.196078, 0.152941, 0.0980392, 1 ) ground_horizon_color = Color( 0.329412, 0.211765, 0.0627451, 1 ) ground_curve = 0.25 ground_energy = 1.0 sun_color = Color( 1, 1, 1, 1 ) sun_latitude = 35.0 sun_longitude = 0.0 sun_angle_min = 1.0 sun_angle_max = 100.0 sun_curve = 0.05 sun_energy = 16.0 texture_size = 0 [resource] background_mode = 2 background_sky = SubResource( 1 ) background_sky_scale = 1.0 background_color = Color( 0, 0, 0, 1 ) background_energy = 1.0 background_canvas_max_layer = 0 ambient_light_color = Color( 0, 0, 0, 1 ) ambient_light_energy = 1.0 ambient_light_sky_contribution = 0.0 fog_enabled = false fog_color = Color( 0.5, 0.6, 0.7, 1 ) fog_sun_color = Color( 1, 0.9, 0.7, 1 ) fog_sun_amount = 0.0 fog_depth_enabled = true fog_depth_begin = 10.0 fog_depth_curve = 1.0 fog_transmit_enabled = false fog_transmit_curve = 1.0 fog_height_enabled = false fog_height_min = 0.0 fog_height_max = 100.0 fog_height_curve = 1.0 tonemap_mode = 0 tonemap_exposure = 1.0 tonemap_white = 1.0 auto_exposure_enabled = false auto_exposure_scale = 0.4 auto_exposure_min_luma = 0.05 auto_exposure_max_luma = 8.0 auto_exposure_speed = 0.5 ss_reflections_enabled = false ss_reflections_max_steps = 64 ss_reflections_fade_in = 0.15 ss_reflections_fade_out = 2.0 ss_reflections_depth_tolerance = 0.2 ss_reflections_roughness = true ssao_enabled = false ssao_radius = 1.0 ssao_intensity = 1.0 ssao_radius2 = 0.0 ssao_intensity2 = 1.0 ssao_bias = 0.01 ssao_light_affect = 0.0 ssao_color = Color( 0, 0, 0, 1 ) ssao_blur = true dof_blur_far_enabled = false dof_blur_far_distance = 10.0 dof_blur_far_transition = 5.0 dof_blur_far_amount = 0.1 dof_blur_far_quality = 1 dof_blur_near_enabled = false dof_blur_near_distance = 2.0 dof_blur_near_transition = 1.0 dof_blur_near_amount = 0.1 dof_blur_near_quality = 1 glow_enabled = false glow_levels/1 = false glow_levels/2 = false glow_levels/3 = true glow_levels/4 = false glow_levels/5 = true glow_levels/6 = false glow_levels/7 = false glow_intensity = 0.8 glow_strength = 1.0 glow_bloom = 0.0 glow_blend_mode = 2 glow_hdr_treshold = 1.0 glow_hdr_scale = 2.0 glow_bicubic_upscale = false adjustment_enabled = false adjustment_brightness = 1.0 adjustment_contrast = 1.0 adjustment_saturation = 1.0
{ "pile_set_name": "Github" }
--- title: ๅฆ‚ๆžœๆทฑๅœณ็š„ๅคœๆ™šๆฒกๆœ‰้ฃŽ date: 2016-09-25 23:25:24 categories: ้š็ฌ” tags: [essay] comments: false --- <p id="div-border-top-green">่ฟ™ๅบงๅŸŽๅธ‚ไบบๅพˆๅคš๏ผŒๆฏๅคฉๅœจ่ทฏไธŠ้ƒฝ่ƒฝ็œ‹ๅˆฐๅฅฝๅคšๆ‹‰็€่กŒๆŽ็ฎฑ็š„ไบบ๏ผŒไธ็ฎกไป–ไปฌๆ˜ฏๆฅๅˆฐ่ฟ™ๅบงๅŸŽๅธ‚่ฟ˜ๆ˜ฏ็ฆปๅผ€่ฟ™ๅบงๅŸŽๅธ‚๏ผŒ่‡ณๅฐ‘ไป–ไปฌ้ƒฝๆ›พๅŠชๅŠ›่ฟ‡ใ€‚ </p> <br/> <!-- more --> ๅ…ถๅฎžไธ“ไธšๅšๅšๅฎข็š„็ฝ‘็ซ™่ฟ˜ๆ˜ฏๆŒบๅคš็š„๏ผŒๆฏ”ๅฆ‚่ฏด CSDN ๆ˜ฏๅง๏ผŒๆˆ‘ไน‹ๅ‰ไนŸๆ˜ฏๅœจ CSDN ไธŠ้ขๅ†™ไธ€็‚นไธœ่ฅฟ๏ผŒๆˆ‘็š„ CSDN ๅšๅฎข [http://blog.csdn.net/csdn_yudong](http://blog.csdn.net/csdn_yudong) ใ€‚ไฝ†ๆ˜ฏ CSDN ๆฏ•็ซŸๆ˜ฏไธ€ไธชๆŠ€ๆœฏ็ฑป็š„ๅšๅฎข็ฝ‘็ซ™๏ผŒๅฆ‚ๆžœๅ†™ไธ€็‚น็”Ÿๆดปๆ‚่ฐˆ่ฟ˜ๆ˜ฏไธๅคชๅฅฝ๏ผŒ่€Œไธ” CSDN ไธŠ้ขๆŒ‚่ฝฝ็š„ๅนฟๅ‘Š๏ผŒไปฅๅŠ้กต้ข้ฃŽๆ ผ๏ผŒๆˆ‘ไธๅคชๅ–œๆฌข๏ผŒๅ› ไธบๆˆ‘ๅ–œๆฌขใ€็ฒพไบŽๅฟƒ๏ผŒ็ฎ€ไบŽๅฝขใ€‘๏ผŒ่ฟ™ๆณข [NexT](https://github.com/iissnan/hexo-theme-next) ไธป้ข˜็š„ๅนฟๅ‘Šๆ˜ฏไธๆ˜ฏๅพˆ็กฌใ€‚ ๅœจๆˆ‘ๆƒณๅšๅšๅฎขไน‹ๅ‰๏ผŒไธ€็›ดๅˆฐๆˆ‘ๅผ€ๅง‹็€ๆ‰‹ๅš่ฟ™ไธชๅšๅฎข๏ผŒๅ…ถๅฎž่Šฑไบ†ๅฅฝไน…ๆ—ถ้—ดใ€‚่€Œๅœจๆˆ‘็€ๆ‰‹ๅผ€ๅง‹ๅš่ฟ™ไธชๅšๅฎข๏ผŒๅˆฐ่ฟ™ไธชๅšๅฎขๅฎŒๆˆ๏ผŒๅ…ถๅฎžๅนถๆฒกๆœ‰่Šฑๅคšไน…ใ€‚ไนŸ่ฏดๆ˜Žไบ†ไธ€ไธช้“็†๏ผŒๅฐฑๆ˜ฏไธ€ๅฎš่ฆๅ‹‡ไบŽๅฐ่ฏ•๏ผŒๅ…ณ้”ฎๆ˜ฏ่ฆๅŠจๆ‰‹ใ€‚ๆˆ‘ๆƒณ่ตทไบ†้ฉฌๅฃซๅ…ต่€ๅธˆ็š„ไธ€ๅฅ่ฏ๏ผŒไธ€ไธชๆ–ฐ้ฒœ็š„ไบ‹็‰ฉ๏ผŒไฝ ไธ€ๅฎš่ฆๅ…ˆๅŽป็”จๅฎƒ๏ผŒๅบ”็”จ้ฉฑๅŠจๅญฆไน ใ€‚โ€”โ€”[ๆˆ‘็š„ๅปบ็ซ™ๆ—ฅๅฟ—](https://neveryu.github.io/weblog/)ๆœ‰่ฎฐๅฝ•็ฝ‘็ซ™็š„ๅปบ่ฎพ่ฟ‡็จ‹ใ€‚ ็ฉถๅ…ถๅŽŸๅ› ๏ผš็ฌฌไธ€ไธช๏ผŒๆˆ‘่ง‰ๅพ—ๆ˜ฏ่‡ชๅทฑ่€ƒ่™‘็š„ๅคชๅคš๏ผŒๆฒกๆœ‰ๅคชๅคง็š„ๆŠŠๆกๅฐฑไธไผš่ฝปๆ˜“็š„ๅŽปๅฐ่ฏ•๏ผŒๆ‰€ไปฅๆˆ‘ๅœจ็€ๆ‰‹ๅš่ฟ™ไธชไน‹ๅ‰่Šฑไบ†ๅพˆๅคš็š„ๆ—ถ้—ดๅŽปๆŸฅ๏ผŒๅŸŸๅ็ฉบ้—ด่ฟ™ไบ›็š„๏ผŒ่€Œไธ”่ฟ™ไบ›ๅ‡บๅ”ฎ่ฟ™ไบ›็š„ๆœๅŠกๅ•†ไนŸๆŒบๅคš็š„๏ผŒๆˆ‘่ฟ™ไธชไบบๆœ‰้€‰ๆ‹ฉๆๆƒง็—‡ใ€‚ไนŸๆ˜ฏๆ€ชๅฐดๅฐฌ็š„๏ผŒๆฏๆฌก็œ‹ๅˆฐไธ€ไธชไธœ่ฅฟๆœ‰ๅฅฝๅคš้€‰ๆ‹ฉ็š„ๆ—ถๅ€™๏ผŒๆˆ‘้ƒฝๅŽปๆฏ”่พƒ๏ผŒๅŽปๅˆ†ๆž๏ผŒๅคด็—›ใ€‚ใ€‚่€Œไธ”ๆˆ‘ๆƒณ๏ผŒๅŸŸๅ็ฉบ้—ดๆžๅฅฝไปฅๅŽ๏ผŒ่ฟ˜่ฆ่‡ชๅทฑๅ†™้กต้ข่ฟ™ไบ›็š„ใ€‚ๅ…ณ้”ฎๆ˜ฏ่ฟ˜่ฆ่ฎพ่ฎกๅšๅฎข้ฃŽๆ ผ๏ผŒ้กต้ขๆ ทๅผ่ฟ™ไบ›็š„๏ผŒไธ€ๆƒณๅˆฐ่ฟ™ไบ›๏ผŒๅฐฑๆ„Ÿ่ง‰ๆ˜ฏไธ€ไธชไธๅฐ็š„ๅทฅ็จ‹ๅ•Š๏ผŒๅŽๆฅๆ‰ๅ‘็Žฐๆˆ‘ๅคš่™‘ไบ†ใ€‚ ๅŽๆฅ๏ผŒๆ— ๆ„ไธญ็œ‹ๅˆฐไบ† Hexo ็š„ Next ไธป้ข˜็š„ไธ€็ฏ‡ๅšๅฎข๏ผŒ้ฃŽๆ ผๆ ทๅผๆŒบไธ้”™็š„๏ผŒๆ„Ÿ่ฐข [Hexo](https://hexo.io/) ๅ’Œ [Next](http://theme-next.iissnan.com/) ็š„ๆ–‡ๆกฃๅ†™็š„ๅฆ‚ๆญค็š„ๆฃ’๏ผŒไปฅ่‡ณไบŽๆฏไธ€ไธชไบบ้ƒฝ่ƒฝๆ นๆฎๆ•™็จ‹ๆญๅปบไธ€ไธช่‡ชๅทฑ็š„ๅšๅฎขใ€‚่ฟ™ไธ€ๅˆ‡ๆ˜ฏๅฆ‚ๆญค็š„็พŽๅฅฝใ€‚
{ "pile_set_name": "Github" }
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Want to Publish Stock Alerts to Slack?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Before getting started please confirm the [the notebook-integration docker stack is running](https://github.com/AlgoTraders/stock-analysis-engine#jupyter)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Publishing FinViz Screeners to Slack" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "Please edit your ```./compose/envs/jupyter.env``` file and add the following Slack webhook to your docker environment variables:\n", " \n", "```\n", "SLACK_WEBHOOK=https://hooks.slack.com/services/<your remaining webhook path>\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Restart the Stack" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "Please restart the stack so the new ``SLACK_WEBHOOK`` environment variable can take effect. If you are using docker compose please restart the stack with the commands:\n", "\n", "```\n", "$ ./compose/stop.sh -j\n", "$ ./compose/start.sh -j\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Pick a FinViz Screener\n", "\n", "This notebook uses [a simple NYSE Dow Jones Index Financials with a P/E above 5 screener url](https://finviz.com/screener.ashx?v=111&f=exch_nyse,fa_pe_o5,idx_dji,sec_financial&ft=4) to fetch a list tickers and a ``pandas.DataFrame`` from the resulting html table." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# After you build a FinViz screen just paste the url here:\n", "url = 'https://finviz.com/screener.ashx?v=111&f=exch_nyse,fa_pe_o5,idx_dji,sec_financial&ft=4'" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Imports" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import datetime\n", "import pandas as pd\n", "from IPython.display import display\n", "from IPython.display import HTML\n", "from analysis_engine.consts import SUCCESS\n", "from analysis_engine.consts import SLACK_FINVIZ_COLUMNS\n", "from analysis_engine.consts import get_status\n", "from analysis_engine.consts import ev\n", "from analysis_engine.finviz.fetch_api import fetch_tickers_from_screener\n", "from analysis_engine.send_to_slack import post_df\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Fetch Tickers from FinViz Screener" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Fetching tickers from url: https://finviz.com/screener.ashx?v=111&f=exch_nyse,fa_pe_o5,idx_dji,sec_financial&ft=4\n", "\n", "2018-10-17 23:51:08,371 - analysis_engine.finviz.fetch_api - INFO - fz-screen-converter fetching url=https://finviz.com/screener.ashx?v=111&f=exch_nyse,fa_pe_o5,idx_dji,sec_financial&ft=4\n", "2018-10-17 23:51:09,963 - analysis_engine.finviz.fetch_api - INFO - fz-screen-converter fetch done - df=5 from url=https://finviz.com/screener.ashx?v=111&f=exch_nyse,fa_pe_o5,idx_dji,sec_financial&ft=4 with tickers=['AXP', 'GS', 'JPM', 'TRV', 'V'] rows=5\n", "Found tickers: ['AXP', 'GS', 'JPM', 'TRV', 'V']\n" ] }, { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>change</th>\n", " <th>company</th>\n", " <th>country</th>\n", " <th>industry</th>\n", " <th>market_cap</th>\n", " <th>pe</th>\n", " <th>price</th>\n", " <th>sector</th>\n", " <th>ticker</th>\n", " <th>ticker_id</th>\n", " <th>volume</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>0</th>\n", " <td>0.07%</td>\n", " <td>American Express Company</td>\n", " <td>USA</td>\n", " <td>Credit Services</td>\n", " <td>89.73B</td>\n", " <td>15.30</td>\n", " <td>104.34</td>\n", " <td>Financial</td>\n", " <td>AXP</td>\n", " <td>1</td>\n", " <td>3,789,094</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>2.97%</td>\n", " <td>The Goldman Sachs Group, Inc.</td>\n", " <td>USA</td>\n", " <td>Investment Brokerage - National</td>\n", " <td>85.83B</td>\n", " <td>9.61</td>\n", " <td>228.28</td>\n", " <td>Financial</td>\n", " <td>GS</td>\n", " <td>2</td>\n", " <td>4,951,867</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>1.11%</td>\n", " <td>JPMorgan Chase &amp; Co.</td>\n", " <td>USA</td>\n", " <td>Money Center Banks</td>\n", " <td>373.20B</td>\n", " <td>13.67</td>\n", " <td>109.83</td>\n", " <td>Financial</td>\n", " <td>JPM</td>\n", " <td>3</td>\n", " <td>18,650,929</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>1.35%</td>\n", " <td>The Travelers Companies, Inc.</td>\n", " <td>USA</td>\n", " <td>Property &amp; Casualty Insurance</td>\n", " <td>34.03B</td>\n", " <td>16.11</td>\n", " <td>126.44</td>\n", " <td>Financial</td>\n", " <td>TRV</td>\n", " <td>4</td>\n", " <td>2,106,779</td>\n", " </tr>\n", " <tr>\n", " <th>4</th>\n", " <td>0.50%</td>\n", " <td>Visa Inc.</td>\n", " <td>USA</td>\n", " <td>Credit Services</td>\n", " <td>302.64B</td>\n", " <td>39.29</td>\n", " <td>142.45</td>\n", " <td>Financial</td>\n", " <td>V</td>\n", " <td>5</td>\n", " <td>9,167,145</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " change company country \\\n", "0 0.07% American Express Company USA \n", "1 2.97% The Goldman Sachs Group, Inc. USA \n", "2 1.11% JPMorgan Chase & Co. USA \n", "3 1.35% The Travelers Companies, Inc. USA \n", "4 0.50% Visa Inc. USA \n", "\n", " industry market_cap pe price sector \\\n", "0 Credit Services 89.73B 15.30 104.34 Financial \n", "1 Investment Brokerage - National 85.83B 9.61 228.28 Financial \n", "2 Money Center Banks 373.20B 13.67 109.83 Financial \n", "3 Property & Casualty Insurance 34.03B 16.11 126.44 Financial \n", "4 Credit Services 302.64B 39.29 142.45 Financial \n", "\n", " ticker ticker_id volume \n", "0 AXP 1 3,789,094 \n", "1 GS 2 4,951,867 \n", "2 JPM 3 18,650,929 \n", "3 TRV 4 2,106,779 \n", "4 V 5 9,167,145 " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "print(f'Fetching tickers from url: {url}\\n')\n", "res = fetch_tickers_from_screener(url=url)\n", "\n", "df = None\n", "\n", "if res['status'] != SUCCESS:\n", " print(f'Failed to fetch tickers from FinViz url={url} with error={res["err"]} and status={get_status(status=res["status"])}')\n", "else:\n", " print(f'Found tickers: {res["rec"]["tickers"]}')\n", " df = res['rec']['data']\n", " display(df)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Publish the FinViz HTML Table to Slack\n", "\n", "With your ``SLACK_WEBHOOK`` environment variable in place, Jupyter should be able to publish the FinViz's screener table to Slack." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "2018-10-17 23:51:10,312 - analysis_engine.send_to_slack - INFO - Successful post of attachment=True to slack_webhook\n", "2018-10-17 23:51:10,551 - analysis_engine.send_to_slack - INFO - Successful post of attachment=True to slack_webhook\n" ] } ], "source": [ "if ev('SLACK_WEBHOOK', False):\n", " # Post the pandas.DataFrame as a Jupyter code block message to Slack\n", " post_df(\n", " df=df[SLACK_FINVIZ_COLUMNS],\n", " columns=SLACK_FINVIZ_COLUMNS)\n", "else:\n", " print('Missing the SLACK_WEBHOOK environment variable\\nUnable to publish to Slack without this environment variable')" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.6" } }, "nbformat": 4, "nbformat_minor": 2 }
{ "pile_set_name": "Github" }
// Package csv contains the csv result encoders and decoders. package csv import ( "context" "encoding/csv" "encoding/json" "fmt" "io" "strconv" "strings" "sync/atomic" "time" "unicode/utf8" "github.com/apache/arrow/go/arrow/array" "github.com/influxdata/flux" "github.com/influxdata/flux/arrow" "github.com/influxdata/flux/codes" "github.com/influxdata/flux/execute" "github.com/influxdata/flux/internal/errors" "github.com/influxdata/flux/iocounter" "github.com/influxdata/flux/memory" "github.com/influxdata/flux/values" ) const ( defaultMaxBufferCount = 1000 annotationIdx = 0 resultIdx = 1 tableIdx = 2 recordStartIdx = 3 datatypeAnnotation = "datatype" groupAnnotation = "group" defaultAnnotation = "default" resultLabel = "result" tableLabel = "table" commentPrefix = "#" stringDatatype = "string" timeDatatype = "dateTime" floatDatatype = "double" boolDatatype = "boolean" intDatatype = "long" uintDatatype = "unsignedLong" timeDataTypeWithFmt = "dateTime:RFC3339" nullValue = "" ) // ResultDecoder decodes a csv representation of a result. type ResultDecoder struct { c ResultDecoderConfig } // NewResultDecoder creates a new ResultDecoder. func NewResultDecoder(c ResultDecoderConfig) *ResultDecoder { if c.MaxBufferCount == 0 { c.MaxBufferCount = defaultMaxBufferCount } return &ResultDecoder{ c: c, } } // ResultDecoderConfig are options that can be specified on the ResultDecoder. type ResultDecoderConfig struct { // NoHeader indicates that the CSV data will not have a header row. NoHeader bool // MaxBufferCount is the maximum number of rows that will be buffered when decoding. // If 0, then a value of 1000 will be used. MaxBufferCount int // Allocator is the memory allocator that will be used during decoding. // The default is to use an unlimited allocator when this is not set. Allocator *memory.Allocator // Context is the context for this ResultDecoder. // When the context is canceled, the decoder will also be canceled. // This defaults to context.Background. Context context.Context } func (d *ResultDecoder) Decode(r io.Reader) (flux.Result, error) { return newResultDecoder(newCSVReader(r), d.c, nil) } // MultiResultDecoder reads multiple results from a single csv file. // Results are delimited by an empty line. type MultiResultDecoder struct { c ResultDecoderConfig } // NewMultiResultDecoder creates a new MultiResultDecoder. func NewMultiResultDecoder(c ResultDecoderConfig) *MultiResultDecoder { if c.MaxBufferCount == 0 { c.MaxBufferCount = defaultMaxBufferCount } return &MultiResultDecoder{ c: c, } } func (d *MultiResultDecoder) Decode(r io.ReadCloser) (flux.ResultIterator, error) { return &resultIterator{ c: d.c, r: r, cr: newCSVReader(r), }, nil } // resultIterator iterates through the results encoded in r. type resultIterator struct { c ResultDecoderConfig r io.ReadCloser cr *csv.Reader next *resultDecoder err error canceled bool } func (r *resultIterator) More() bool { if r.next == nil || !r.next.eof { var extraMeta *tableMetadata if r.next != nil { extraMeta = r.next.extraMeta } r.next, r.err = newResultDecoder(r.cr, r.c, extraMeta) if r.err == nil { return true } if r.err == io.EOF { // Do not report EOF errors r.err = nil } } // Release the resources for this query. r.Release() return false } func (r *resultIterator) Next() flux.Result { return r.next } func (r *resultIterator) Release() { if r.canceled { return } if err := r.r.Close(); err != nil && r.err == nil { r.err = err } r.canceled = true } func (r *resultIterator) Err() error { return r.err } func (r *resultIterator) Statistics() flux.Statistics { return flux.Statistics{} } type resultDecoder struct { id string c ResultDecoderConfig cr *csv.Reader extraMeta *tableMetadata eof bool } func newResultDecoder(cr *csv.Reader, c ResultDecoderConfig, extraMeta *tableMetadata) (*resultDecoder, error) { d := &resultDecoder{ c: c, cr: cr, extraMeta: extraMeta, } // We need to know the result ID before we return if extraMeta == nil { tm, err := readMetadata(d.cr, c, nil) if err != nil { if err == io.EOF { return nil, err } else if sfe, ok := err.(*serializedFluxError); ok { return nil, sfe.err } return nil, errors.Wrap(err, codes.Inherit, "failed to read metadata") } d.extraMeta = &tm } d.id = d.extraMeta.ResultID return d, nil } func newCSVReader(r io.Reader) *csv.Reader { csvr := csv.NewReader(r) csvr.ReuseRecord = true // Do not check record size csvr.FieldsPerRecord = -1 return csvr } func (r *resultDecoder) Name() string { return r.id } func (r *resultDecoder) Tables() flux.TableIterator { return r } func (r *resultDecoder) Abort(error) { panic("not implemented") } func (r *resultDecoder) Do(f func(flux.Table) error) error { ctx := r.c.Context if ctx == nil { ctx = context.Background() } var extraLine []string var meta tableMetadata newMeta := true for !r.eof { if newMeta { if r.extraMeta != nil { meta = *r.extraMeta r.extraMeta = nil } else { tm, err := readMetadata(r.cr, r.c, extraLine) if err != nil { if err == io.EOF { r.eof = true return nil } if sfe, ok := err.(*serializedFluxError); ok { return sfe.err } return errors.Wrap(err, codes.Inherit, "failed to read metadata") } meta = tm extraLine = nil } if meta.ResultID != r.id { r.extraMeta = &meta return nil } } // create new table b, err := newTable(r.cr, r.c, meta, extraLine) if err != nil { return err } if err := f(b); err != nil { return err } select { case <-b.done: case <-ctx.Done(): return ctx.Err() } // track whether we hit the EOF r.eof = b.eof // track any extra line that was read extraLine = b.extraLine if len(extraLine) > 0 { newMeta = extraLine[annotationIdx] != "" } } return nil } type tableMetadata struct { ResultID string TableID string Cols []colMeta Groups []bool Defaults []values.Value NumFields int } // serializedFluxError represents an error that occurred during // Flux execution that has been serialized to CSV. type serializedFluxError struct { err error } func (sfe *serializedFluxError) Error() string { return sfe.err.Error() } // readMetadata reads the table annotations and header. // If there is no more data, returns (tableMetadata{}, io.EOF). // In case of an actual error: // - if it's error that was serialized to CSV, it will be wrapped in serializedFluxError. // - otherwise, it's a serialization error, it will be returned as-is. func readMetadata(r *csv.Reader, c ResultDecoderConfig, extraLine []string) (tableMetadata, error) { n := -1 var resultID, tableID string var datatypes, groups, defaults []string for datatypes == nil || groups == nil || defaults == nil { var line []string if len(extraLine) > 0 { line = extraLine extraLine = nil } else { l, err := r.Read() if err != nil { if err == io.EOF { if datatypes == nil && groups == nil && defaults == nil { return tableMetadata{}, err } switch { case datatypes == nil: return tableMetadata{}, fmt.Errorf("missing expected annotation datatype") case groups == nil: return tableMetadata{}, fmt.Errorf("missing expected annotation group") case defaults == nil: return tableMetadata{}, fmt.Errorf("missing expected annotation default") } } return tableMetadata{}, err } line = l } if n == -1 { n = len(line) } if n != len(line) { return tableMetadata{}, errors.Wrap(csv.ErrFieldCount, codes.Invalid, "failed to read annotations") } switch annotation := strings.TrimPrefix(line[annotationIdx], commentPrefix); annotation { case datatypeAnnotation: datatypes = copyLine(line[recordStartIdx:]) case groupAnnotation: groups = copyLine(line[recordStartIdx:]) case defaultAnnotation: resultID = line[resultIdx] tableID = line[tableIdx] if _, err := strconv.ParseInt(tableID, 10, 64); tableID != "" && err != nil { return tableMetadata{}, fmt.Errorf("default Table ID is not an integer") } defaults = copyLine(line[recordStartIdx:]) default: if !strings.HasPrefix(line[annotationIdx], commentPrefix) { switch { case datatypes == nil: return tableMetadata{}, fmt.Errorf("missing expected annotation datatype") case groups == nil: return tableMetadata{}, fmt.Errorf("missing expected annotation group") case defaults == nil: return tableMetadata{}, fmt.Errorf("missing expected annotation default") } } // Ignore unsupported/unknown annotations. } } // Determine column labels var labels []string if c.NoHeader { labels := make([]string, len(datatypes)) for i := range labels { labels[i] = fmt.Sprintf("col%d", i) } } else { // Read header row line, err := r.Read() if err != nil { if err == io.EOF { return tableMetadata{}, errors.New(codes.Invalid, "missing expected header row") } return tableMetadata{}, err } if n != len(line) { return tableMetadata{}, errors.Wrap(csv.ErrFieldCount, codes.Invalid, "failed to read header row") } if len(line) > 1 && line[1] == "error" { // Read the first row and return the error. line, err := r.Read() if err != nil || n != len(line) { if err == io.EOF { return tableMetadata{}, errors.Wrap(io.ErrUnexpectedEOF, codes.Invalid) } else if err == nil && n != len(line) { return tableMetadata{}, errors.Wrap(csv.ErrFieldCount, codes.Invalid) } return tableMetadata{}, errors.Wrap(err, codes.Inherit, "failed to read error value") } // TODO: We should determine the correct error code here: // https://github.com/influxdata/flux/issues/1916 return tableMetadata{}, &serializedFluxError{err: errors.New(codes.Internal, line[1])} } labels = line[recordStartIdx:] } cols := make([]colMeta, len(labels)) defaultValues := make([]values.Value, len(labels)) groupValues := make([]bool, len(labels)) for j, label := range labels { t, desc, err := decodeType(datatypes[j]) if err != nil { return tableMetadata{}, errors.Wrapf(err, codes.Invalid, "column %q has invalid datatype", label) } cols[j].ColMeta.Label = label cols[j].ColMeta.Type = t if t == flux.TTime { switch desc { case "RFC3339": cols[j].fmt = time.RFC3339 case "RFC3339Nano": cols[j].fmt = time.RFC3339Nano default: cols[j].fmt = desc } } if defaults[j] == nullValue { defaultValues[j] = values.NewNull(flux.SemanticType(cols[j].ColMeta.Type)) } else if defaults[j] == "" { // for now, the null value is always represented with "", so this is // unreachable. // When we support the #null annotation we'll want to distinguish // between "" (for strings) and null here. panic("unreachable") } else { v, err := decodeValue(defaults[j], cols[j]) if err != nil { return tableMetadata{}, errors.Wrapf(err, codes.Invalid, "column %q has invalid default value", label) } defaultValues[j] = v } groupValues[j] = groups[j] == "true" } return tableMetadata{ ResultID: resultID, TableID: tableID, Cols: cols, Groups: groupValues, Defaults: defaultValues, NumFields: n, }, nil } type tableDecoder struct { r *csv.Reader c ResultDecoderConfig meta tableMetadata used int32 empty bool initialized bool id string key flux.GroupKey colMeta []flux.ColMeta cols []array.Builder nrows int done chan struct{} eof bool extraLine []string } func newTable( r *csv.Reader, c ResultDecoderConfig, meta tableMetadata, extraLine []string, ) (*tableDecoder, error) { b := &tableDecoder{ r: r, c: c, meta: meta, // assume its empty until we append a record empty: true, done: make(chan struct{}), } more, err := b.advance(extraLine) if !more { close(b.done) } if err != nil { return nil, err } if !b.initialized { return b, b.init(nil) } return b, nil } func (d *tableDecoder) Do(f func(flux.ColReader) error) error { if !atomic.CompareAndSwapInt32(&d.used, 0, 1) { return errors.New(codes.Internal, "table already read") } // Ensure that all internal memory is released when we exit. defer d.release() // Send off first batch from first advance call. if err := d.Emit(f); err != nil { return err } select { case <-d.done: return nil default: } more := true defer close(d.done) for more { var err error more, err = d.advance(nil) if err != nil { return err } if err := d.Emit(f); err != nil { return err } } return nil } func (d *tableDecoder) Done() { _ = d.Do(func(flux.ColReader) error { return nil }) } // advance reads the csv data until the end of the table or bufSize rows have been read. // Advance returns whether there is more data and any error. func (d *tableDecoder) advance(extraLine []string) (bool, error) { var line, record []string var err error for !d.initialized || d.nrows < d.c.MaxBufferCount { if len(extraLine) > 0 { line = extraLine extraLine = nil } else { l, err := d.r.Read() if err != nil { if err == io.EOF { d.eof = true return false, nil } return false, err } line = l } // whatever this line is, it's not part of this table so goto DONE if len(line) != d.meta.NumFields { if len(line) > annotationIdx && line[annotationIdx] == "" { return false, csv.ErrFieldCount } goto DONE } // Check for new annotation if line[annotationIdx] != "" { goto DONE } if !d.initialized { if err := d.init(line); err != nil { return false, err } d.initialized = true } // check if we have tableID that is now different if line[tableIdx] != "" && line[tableIdx] != d.id { goto DONE } record = line[recordStartIdx:] err = d.appendRecord(record) if err != nil { return false, err } } return true, nil DONE: // table is done d.extraLine = line if !d.initialized { // if we found a new annotation without any data rows, then the table is empty and we // init using the meta.Default column values. if d.empty { if err := d.init(nil); err != nil { return false, err } } else { return false, errors.New(codes.Internal, "table was not initialized, missing group key data") } } return false, nil } func (d *tableDecoder) init(line []string) error { if len(line) != 0 { d.id = line[tableIdx] } else if d.meta.TableID != "" { d.id = d.meta.TableID } else { return errors.New(codes.Invalid, "missing table ID") } var record []string if len(line) != 0 { record = line[recordStartIdx:] } keyCols := make([]flux.ColMeta, 0, len(d.meta.Cols)) keyValues := make([]values.Value, 0, len(d.meta.Cols)) for j, c := range d.meta.Cols { if d.meta.Groups[j] { var value values.Value if record != nil && record[j] != "" { // TODO: consider treatment of nullValue here v, err := decodeValue(record[j], c) if err != nil { return err } value = v } else { value = d.meta.Defaults[j] } keyCols = append(keyCols, c.ColMeta) keyValues = append(keyValues, value) } } d.key = execute.NewGroupKey(keyCols, keyValues) alloc := memory.DefaultAllocator if d.c.Allocator != nil { alloc = d.c.Allocator } if len(d.meta.Cols) > 0 { d.colMeta = make([]flux.ColMeta, len(d.meta.Cols)) d.cols = make([]array.Builder, len(d.meta.Cols)) for i, c := range d.meta.Cols { d.colMeta[i] = c.ColMeta d.cols[i] = arrow.NewBuilder(c.Type, alloc) } } return nil } func (d *tableDecoder) appendRecord(record []string) error { d.empty = false for j, c := range d.meta.Cols { if record[j] == "" { v := d.meta.Defaults[j] if err := arrow.AppendValue(d.cols[j], v); err != nil { return err } continue } if err := decodeValueInto(c, record[j], d.cols[j]); err != nil { return err } } d.nrows++ return nil } func (d *tableDecoder) Empty() bool { return d.empty } func (d *tableDecoder) Key() flux.GroupKey { return d.key } func (d *tableDecoder) Cols() []flux.ColMeta { return d.colMeta } func (d *tableDecoder) Emit(f func(flux.ColReader) error) error { cr := arrow.TableBuffer{ GroupKey: d.key, Columns: d.colMeta, Values: make([]array.Interface, len(d.cols)), } for i, c := range d.cols { // Creating a new array resets the builder so // we do not have to release the memory or // reinitialize the builder. cr.Values[i] = c.NewArray() } d.nrows = 0 defer cr.Release() return f(&cr) } func (d *tableDecoder) release() { for _, c := range d.cols { c.Release() } d.cols = nil } type colMeta struct { flux.ColMeta fmt string } type ResultEncoder struct { c ResultEncoderConfig written bool } // ResultEncoderConfig are options that can be specified on the ResultEncoder. type ResultEncoderConfig struct { // Annotations is a list of annotations to include. Annotations []string // NoHeader indicates whether a header row should be added. NoHeader bool // Delimiter is the character to delimite columns. // It must not be \r, \n, or the Unicode replacement character (0xFFFD). Delimiter rune } func (c ResultEncoderConfig) MarshalJSON() ([]byte, error) { request := struct { Header bool `json:"header,omitempty"` Delimiter string `json:"delimiter"` Annotations []string `json:"annotations,omitempty"` }{ Delimiter: string(c.Delimiter), Annotations: c.Annotations, Header: !c.NoHeader, } return json.Marshal(request) } func (c *ResultEncoderConfig) UnmarshalJSON(b []byte) error { request := &struct { Header *bool `json:"header,omitempty"` Delimiter string `json:"delimiter"` Annotations []string `json:"annotations,omitempty"` }{} if err := json.Unmarshal(b, request); err != nil { return err } if request.Delimiter == "" { request.Delimiter = "," } c.Delimiter, _ = utf8.DecodeRuneInString(request.Delimiter) c.NoHeader = false if request.Header != nil { c.NoHeader = !*request.Header } c.Annotations = request.Annotations return nil } func DefaultEncoderConfig() ResultEncoderConfig { return ResultEncoderConfig{ Annotations: []string{datatypeAnnotation, groupAnnotation, defaultAnnotation}, } } // NewResultEncoder creates a new encoder with the provided configuration. func NewResultEncoder(c ResultEncoderConfig) *ResultEncoder { return &ResultEncoder{ c: c, } } func (e *ResultEncoder) csvWriter(w io.Writer) *csv.Writer { writer := csv.NewWriter(w) if e.c.Delimiter != 0 { writer.Comma = e.c.Delimiter } writer.UseCRLF = true return writer } type csvEncoderError struct { err error } func (e *csvEncoderError) Error() string { return fmt.Sprintf("csv encoder error: %s", e.err.Error()) } func (e *csvEncoderError) IsEncoderError() bool { return true } func (e *csvEncoderError) Unwrap() error { return e.err } func wrapEncodingError(err error) error { if err == nil { return err } return &csvEncoderError{err: err} } func (e *ResultEncoder) Encode(w io.Writer, result flux.Result) (int64, error) { tableID := 0 tableIDStr := "0" metaCols := []colMeta{ {ColMeta: flux.ColMeta{Label: "", Type: flux.TInvalid}}, {ColMeta: flux.ColMeta{Label: resultLabel, Type: flux.TString}}, {ColMeta: flux.ColMeta{Label: tableLabel, Type: flux.TInt}}, } writeCounter := &iocounter.Writer{Writer: w} writer := e.csvWriter(writeCounter) var lastCols []colMeta var lastEmpty bool resultName := result.Name() err := result.Tables().Do(func(tbl flux.Table) error { e.written = true // Update cols with table cols cols := metaCols for _, c := range tbl.Cols() { cm := colMeta{ColMeta: c} if c.Type == flux.TTime { cm.fmt = time.RFC3339Nano } cols = append(cols, cm) } // pre-allocate row slice row := make([]string, len(cols)) schemaChanged := !equalCols(cols, lastCols) if lastEmpty || schemaChanged || tbl.Empty() { if len(lastCols) > 0 { // Write out empty line if not first table writer.Write(nil) } if err := writeSchema(writer, &e.c, row, cols, tbl.Empty(), tbl.Key(), resultName, tableIDStr); err != nil { return wrapEncodingError(err) } } if execute.ContainsStr(e.c.Annotations, defaultAnnotation) { for j := range cols { switch j { case annotationIdx: row[j] = "" case resultIdx: row[j] = "" case tableIdx: row[j] = tableIDStr default: row[j] = "" } } } else { for j := range cols { switch j { case annotationIdx: row[j] = "" case resultIdx: row[j] = resultName case tableIdx: row[j] = tableIDStr default: row[j] = "" } } } if err := tbl.Do(func(cr flux.ColReader) error { record := row[recordStartIdx:] l := cr.Len() for i := 0; i < l; i++ { for j, c := range cols[recordStartIdx:] { v, err := encodeValueFrom(i, j, c, cr) if err != nil { return wrapEncodingError(err) } record[j] = v } writer.Write(row) } writer.Flush() return wrapEncodingError(writer.Error()) }); err != nil { return err } tableID++ tableIDStr = strconv.Itoa(tableID) lastCols = cols lastEmpty = tbl.Empty() writer.Flush() return wrapEncodingError(writer.Error()) }) return writeCounter.Count(), err } func (e *ResultEncoder) EncodeError(w io.Writer, err error) error { writer := e.csvWriter(w) if e.written { // Write out empty line writer.Write(nil) } for _, anno := range e.c.Annotations { switch anno { case datatypeAnnotation: writer.Write([]string{commentPrefix + datatypeAnnotation, "string", "string"}) case groupAnnotation: writer.Write([]string{commentPrefix + groupAnnotation, "true", "true"}) case defaultAnnotation: writer.Write([]string{commentPrefix + defaultAnnotation, "", ""}) } } writer.Write([]string{"", "error", "reference"}) // TODO: Add referenced code writer.Write([]string{"", err.Error(), ""}) writer.Flush() return writer.Error() } func writeSchema(writer *csv.Writer, c *ResultEncoderConfig, row []string, cols []colMeta, useKeyDefaults bool, key flux.GroupKey, resultName, tableID string) error { defaults := make([]string, len(row)) for j, c := range cols { switch j { case annotationIdx: case resultIdx: defaults[j] = resultName case tableIdx: if useKeyDefaults { defaults[j] = tableID } else { defaults[j] = "" } default: if useKeyDefaults { kj := execute.ColIdx(c.Label, key.Cols()) if kj >= 0 { v, err := encodeValue(key.Value(kj), c) if err != nil { return err } defaults[j] = v } else { defaults[j] = nullValue } } else { defaults[j] = nullValue } } } if err := writeAnnotations(writer, c.Annotations, row, defaults, cols, key); err != nil { return err } if !c.NoHeader { // Write labels header for j, c := range cols { row[j] = c.Label } writer.Write(row) } return writer.Error() } func writeAnnotations(writer *csv.Writer, annotations []string, row, defaults []string, cols []colMeta, key flux.GroupKey) error { for _, annotation := range annotations { switch annotation { case datatypeAnnotation: if err := writeDatatypes(writer, row, cols); err != nil { return err } case groupAnnotation: if err := writeGroups(writer, row, cols, key); err != nil { return err } case defaultAnnotation: if err := writeDefaults(writer, row, defaults); err != nil { return err } default: return fmt.Errorf("unsupported annotation %q", annotation) } } return writer.Error() } func writeDatatypes(writer *csv.Writer, row []string, cols []colMeta) error { for j, c := range cols { if j == annotationIdx { row[j] = commentPrefix + datatypeAnnotation continue } switch c.Type { case flux.TBool: row[j] = boolDatatype case flux.TInt: row[j] = intDatatype case flux.TUInt: row[j] = uintDatatype case flux.TFloat: row[j] = floatDatatype case flux.TString: row[j] = stringDatatype case flux.TTime: row[j] = timeDataTypeWithFmt default: return fmt.Errorf("unknown column type %v", c.Type) } } return writer.Write(row) } func writeGroups(writer *csv.Writer, row []string, cols []colMeta, key flux.GroupKey) error { for j, c := range cols { if j == annotationIdx { row[j] = commentPrefix + groupAnnotation continue } if j == resultIdx || j == tableIdx { row[j] = "false" continue } row[j] = strconv.FormatBool(key.HasCol(c.Label)) } return writer.Write(row) } func writeDefaults(writer *csv.Writer, row, defaults []string) error { for j := range defaults { switch j { case annotationIdx: row[j] = commentPrefix + defaultAnnotation default: row[j] = defaults[j] } } return writer.Write(row) } func decodeValue(value string, c colMeta) (values.Value, error) { if value == nullValue { return values.NewNull(flux.SemanticType(c.Type)), nil } var val values.Value switch c.Type { case flux.TBool: v, err := strconv.ParseBool(value) if err != nil { return nil, err } val = values.NewBool(v) case flux.TInt: v, err := strconv.ParseInt(value, 10, 64) if err != nil { return nil, err } val = values.NewInt(v) case flux.TUInt: v, err := strconv.ParseUint(value, 10, 64) if err != nil { return nil, err } val = values.NewUInt(v) case flux.TFloat: v, err := strconv.ParseFloat(value, 64) if err != nil { return nil, err } val = values.NewFloat(v) case flux.TString: val = values.NewString(value) case flux.TTime: v, err := decodeTime(value, c.fmt) if err != nil { return nil, err } val = values.NewTime(v) default: return nil, fmt.Errorf("unsupported type %v", c.Type) } return val, nil } func decodeValueInto(c colMeta, value string, b array.Builder) error { switch c.Type { case flux.TBool: v, err := strconv.ParseBool(value) if err != nil { return err } return arrow.AppendBool(b, v) case flux.TInt: v, err := strconv.ParseInt(value, 10, 64) if err != nil { return err } return arrow.AppendInt(b, v) case flux.TUInt: v, err := strconv.ParseUint(value, 10, 64) if err != nil { return err } return arrow.AppendUint(b, v) case flux.TFloat: v, err := strconv.ParseFloat(value, 64) if err != nil { return err } return arrow.AppendFloat(b, v) case flux.TString: return arrow.AppendString(b, value) case flux.TTime: t, err := decodeTime(value, c.fmt) if err != nil { return err } return arrow.AppendTime(b, t) default: return fmt.Errorf("unsupported type %v", c.Type) } } func encodeValue(value values.Value, c colMeta) (string, error) { if value.IsNull() { return nullValue, nil } switch c.Type { case flux.TBool: return strconv.FormatBool(value.Bool()), nil case flux.TInt: return strconv.FormatInt(value.Int(), 10), nil case flux.TUInt: return strconv.FormatUint(value.UInt(), 10), nil case flux.TFloat: return strconv.FormatFloat(value.Float(), 'f', -1, 64), nil case flux.TString: return value.Str(), nil case flux.TTime: return encodeTime(value.Time(), c.fmt), nil default: return "", fmt.Errorf("unknown type %v", c.Type) } } func encodeValueFrom(i, j int, c colMeta, cr flux.ColReader) (string, error) { var v = nullValue switch c.Type { case flux.TBool: if cr.Bools(j).IsValid(i) { v = strconv.FormatBool(cr.Bools(j).Value(i)) } case flux.TInt: if cr.Ints(j).IsValid(i) { v = strconv.FormatInt(cr.Ints(j).Value(i), 10) } case flux.TUInt: if cr.UInts(j).IsValid(i) { v = strconv.FormatUint(cr.UInts(j).Value(i), 10) } case flux.TFloat: if cr.Floats(j).IsValid(i) { v = strconv.FormatFloat(cr.Floats(j).Value(i), 'f', -1, 64) } case flux.TString: if cr.Strings(j).IsValid(i) { v = cr.Strings(j).ValueString(i) } case flux.TTime: if cr.Times(j).IsValid(i) { v = encodeTime(execute.Time(cr.Times(j).Value(i)), c.fmt) } default: return "", fmt.Errorf("unknown type %v", c.Type) } return v, nil } func decodeTime(t string, fmt string) (execute.Time, error) { v, err := time.Parse(fmt, t) if err != nil { return 0, err } return values.ConvertTime(v), nil } func encodeTime(t execute.Time, fmt string) string { return t.Time().Format(fmt) } func copyLine(line []string) []string { cpy := make([]string, len(line)) copy(cpy, line) return cpy } // decodeType returns the flux.ColType and any additional format description. func decodeType(datatype string) (t flux.ColType, desc string, err error) { split := strings.SplitN(datatype, ":", 2) if len(split) > 1 { desc = split[1] } typ := split[0] switch typ { case boolDatatype: t = flux.TBool case intDatatype: t = flux.TInt case uintDatatype: t = flux.TUInt case floatDatatype: t = flux.TFloat case stringDatatype: t = flux.TString case timeDatatype: t = flux.TTime default: err = fmt.Errorf("unsupported data type %q", typ) } return } func equalCols(a, b []colMeta) bool { if len(a) != len(b) { return false } for j := range a { if a[j] != b[j] { return false } } return true } func NewMultiResultEncoder(c ResultEncoderConfig) flux.MultiResultEncoder { return &flux.DelimitedMultiResultEncoder{ Delimiter: []byte("\r\n"), Encoder: NewResultEncoder(c), } }
{ "pile_set_name": "Github" }
import React from 'react'; import { Redirect } from 'umi'; import pathToRegexp from 'path-to-regexp'; import { connect } from 'dva'; import Authorized from '@/utils/Authorized'; import { getAuthority } from '@/utils/authority'; import Exception403 from '@/pages/Exception/403'; function AuthComponent({ children, location, routerData }) { const auth = getAuthority(); const isLogin = auth && auth[0] !== 'guest'; const getRouteAuthority = (path, routeData) => { let authorities; routeData.forEach(route => { // match prefix if (pathToRegexp(`${route.path}(.*)`).test(path)) { authorities = route.authority || authorities; // get children authority recursively if (route.routes) { authorities = getRouteAuthority(path, route.routes) || authorities; } } }); return authorities; }; return ( <Authorized authority={getRouteAuthority(location.pathname, routerData)} noMatch={isLogin ? <Exception403 /> : <Redirect to="/user/login" />} > {children} </Authorized> ); } export default connect(({ menu: menuModel }) => ({ routerData: menuModel.routerData, }))(AuthComponent);
{ "pile_set_name": "Github" }
--- title: 'The buildDir Property' description: Define the dist directory for your Nuxt.js application menu: buildDir category: configuration-glossary position: 2 --- - Type: `String` - Default: `.nuxt` > Define the dist directory for your Nuxt.js application ```js{}[nuxt.config.js] export default { buildDir: 'nuxt-dist' } ``` By default, many tools assume that `.nuxt` is a hidden directory, because its name starts with a dot. You can use this option to prevent that.
{ "pile_set_name": "Github" }
/*** BEGIN file-header ***/ /* auto-generated enums for vips introspection */ #include <vips/vips.h> /*** END file-header ***/ /*** BEGIN file-production ***/ /* enumerations from "@filename@" */ /*** END file-production ***/ /*** BEGIN value-header ***/ GType @enum_name@_get_type( void ) { static GType etype = 0; if( etype == 0 ) { static const G@Type@Value values[] = { /*** END value-header ***/ /*** BEGIN value-production ***/ {@VALUENAME@, "@VALUENAME@", "@valuenick@"}, /*** END value-production ***/ /*** BEGIN value-tail ***/ {0, NULL, NULL} }; etype = g_@type@_register_static( "@EnumName@", values ); } return( etype ); } /*** END value-tail ***/
{ "pile_set_name": "Github" }
/** * NNStreamer Android API * Copyright (C) 2019 Samsung Electronics Co., Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. */ /** * @file nnstreamer-native-customfilter.c * @date 10 July 2019 * @brief Native code for NNStreamer API * @author Jaeyun Jung <jy1210.jung@samsung.com> * @bug No known bugs except for NYI items */ #include "nnstreamer-native.h" /** * @brief Private data for CustomFilter class. */ typedef struct { jmethodID mid_invoke; ml_tensors_info_h in_info; jobject in_info_obj; } customfilter_priv_data_s; /** * @brief Release private data in custom filter. */ static void nns_customfilter_priv_free (gpointer data, JNIEnv * env) { customfilter_priv_data_s *priv = (customfilter_priv_data_s *) data; ml_tensors_info_destroy (priv->in_info); if (priv->in_info_obj) (*env)->DeleteGlobalRef (env, priv->in_info_obj); g_free (priv); } /** * @brief Update input info in private data. */ static gboolean nns_customfilter_priv_set_in_info (pipeline_info_s * pipe_info, JNIEnv * env, ml_tensors_info_h in_info) { customfilter_priv_data_s *priv; jobject obj_info = NULL; priv = (customfilter_priv_data_s *) pipe_info->priv_data; if (ml_tensors_info_is_equal (in_info, priv->in_info)) { /* do nothing, tensors info is equal. */ return TRUE; } if (!nns_convert_tensors_info (pipe_info, env, in_info, &obj_info)) { nns_loge ("Failed to convert tensors info."); return FALSE; } ml_tensors_info_free (priv->in_info); ml_tensors_info_clone (priv->in_info, in_info); if (priv->in_info_obj) (*env)->DeleteGlobalRef (env, priv->in_info_obj); priv->in_info_obj = (*env)->NewGlobalRef (env, obj_info); (*env)->DeleteLocalRef (env, obj_info); return TRUE; } /** * @brief The mandatory callback for custom-filter execution. * @return 0 if OK. 1 to drop input buffer. Negative value if error. */ static int nns_customfilter_invoke (const ml_tensors_data_h in, ml_tensors_data_h out, void *user_data) { pipeline_info_s *pipe_info = NULL; customfilter_priv_data_s *priv; JNIEnv *env; jobject obj_in_data, obj_out_data; int ret = -1; /* get pipe info and init */ pipe_info = (pipeline_info_s *) user_data; g_return_val_if_fail (pipe_info, -1); env = nns_get_jni_env (pipe_info); g_return_val_if_fail (env, -1); obj_in_data = obj_out_data = NULL; priv = (customfilter_priv_data_s *) pipe_info->priv_data; /* convert to data object */ if (!nns_convert_tensors_data (pipe_info, env, in, priv->in_info_obj, &obj_in_data)) { nns_loge ("Failed to convert input data to data-object."); goto done; } /* call invoke callback */ obj_out_data = (*env)->CallObjectMethod (env, pipe_info->instance, priv->mid_invoke, obj_in_data); if ((*env)->ExceptionCheck (env)) { nns_loge ("Failed to call the custom-invoke callback."); (*env)->ExceptionClear (env); goto done; } if (obj_out_data == NULL) { /* drop current buffer */ ret = 1; goto done; } if (!nns_parse_tensors_data (pipe_info, env, obj_out_data, TRUE, &out, NULL)) { nns_loge ("Failed to parse output data."); goto done; } /* callback finished */ ret = 0; done: if (obj_in_data) (*env)->DeleteLocalRef (env, obj_in_data); if (obj_out_data) (*env)->DeleteLocalRef (env, obj_out_data); return ret; } /** * @brief Native method for custom filter. */ jlong nns_native_custom_initialize (JNIEnv * env, jobject thiz, jstring name, jobject in, jobject out) { pipeline_info_s *pipe_info = NULL; customfilter_priv_data_s *priv; ml_custom_easy_filter_h custom; ml_tensors_info_h in_info, out_info; gboolean is_done = FALSE; int status; const char *model_name = (*env)->GetStringUTFChars (env, name, NULL); nns_logd ("Try to add custom-filter %s.", model_name); in_info = out_info = NULL; pipe_info = nns_construct_pipe_info (env, thiz, NULL, NNS_PIPE_TYPE_CUSTOM); if (pipe_info == NULL) { nns_loge ("Failed to create pipe info."); goto done; } priv = g_new0 (customfilter_priv_data_s, 1); priv->mid_invoke = (*env)->GetMethodID (env, pipe_info->cls, "invoke", "(L" NNS_CLS_TDATA ";)L" NNS_CLS_TDATA ";"); ml_tensors_info_create (&priv->in_info); nns_set_priv_data (pipe_info, priv, nns_customfilter_priv_free); if (!nns_parse_tensors_info (pipe_info, env, in, &in_info)) { nns_loge ("Failed to parse input info."); goto done; } if (!nns_parse_tensors_info (pipe_info, env, out, &out_info)) { nns_loge ("Failed to parse output info."); goto done; } /* update input info */ if (!nns_customfilter_priv_set_in_info (pipe_info, env, in_info)) { goto done; } status = ml_pipeline_custom_easy_filter_register (model_name, in_info, out_info, nns_customfilter_invoke, pipe_info, &custom); if (status != ML_ERROR_NONE) { nns_loge ("Failed to register custom-filter %s.", model_name); goto done; } pipe_info->pipeline_handle = custom; is_done = TRUE; done: (*env)->ReleaseStringUTFChars (env, name, model_name); ml_tensors_info_destroy (in_info); ml_tensors_info_destroy (out_info); if (!is_done) { nns_destroy_pipe_info (pipe_info, env); pipe_info = NULL; } return CAST_TO_LONG (pipe_info); } /** * @brief Native method for custom filter. */ void nns_native_custom_destroy (JNIEnv * env, jobject thiz, jlong handle) { pipeline_info_s *pipe_info = NULL; pipe_info = CAST_TO_TYPE (handle, pipeline_info_s *); nns_destroy_pipe_info (pipe_info, env); }
{ "pile_set_name": "Github" }
#format: frame checksums #version: 2 #hash: MD5 #extradata 0, 16, 32fe9f95e57b78773a0fe54c47055a60 #tb 0: 1/25 #media_type 0: video #codec_id 0: utvideo #dimensions 0: 352x288 #sar 0: 0/1 #stream#, dts, pts, duration, size, hash 0, 0, 0, 1, 62876, 5e2a5276e10b86511fb8101733bc4795 0, 1, 1, 1, 62832, fb1e0a7b2bdbcbada9892e3db7be7821 0, 2, 2, 1, 64076, e0d2af56a9c80e3e8096cf246260f3ca 0, 3, 3, 1, 62724, bceca3c261206308030e2d7ad45e7599 0, 4, 4, 1, 61664, ca8c005ba88cf1c97d49fe25f4830383 0, 5, 5, 1, 63296, 7967f2592369b10bcd3ecac43413daeb 0, 6, 6, 1, 63528, 5374d62636243ba8f3fd1d7f31b632a8 0, 7, 7, 1, 62784, 8c6b4791881433bfa65732ecb5b16866 0, 8, 8, 1, 63176, 5b63d41ddcb0ab291a0d435d5f581ee8 0, 9, 9, 1, 63492, e0b3ecdb25bda555ab9b9dfd98179653 0, 10, 10, 1, 63328, 3dd8397b620d84ca3e7a78f9c8d350d3 0, 11, 11, 1, 63328, 1af5a1dddff26660e0d7a32e24bd9276 0, 12, 12, 1, 62384, 1ff3c26a6bac33d80b63c0f8595201ea 0, 13, 13, 1, 62944, 9c02a60be982847673da55180ef2c18d 0, 14, 14, 1, 63932, ad7a22cf139c6e4ab8c5e53d9db3e68e 0, 15, 15, 1, 64020, 53c8612a310d938be1080de4eebb18ba 0, 16, 16, 1, 62940, bb481e1e906a4fdfdafa1cc15ebcbb5c 0, 17, 17, 1, 63052, 0d97caa8514b4344c0ad8115e10b48c1 0, 18, 18, 1, 62404, 0b05bb86b7bb1deaa3a1f0105adb823a 0, 19, 19, 1, 62148, e70896d0e240f44275ca7d34e4de1b90 0, 20, 20, 1, 61692, 5811d0049807b3e30bb165c106f121f6 0, 21, 21, 1, 61704, 7b0714038c38fbaba0f30077e1fff859 0, 22, 22, 1, 61964, 01e0aa600de8039bcfa29f4855861f72 0, 23, 23, 1, 62812, a9374a4f24248363aa1011d48f352bea 0, 24, 24, 1, 63480, 9837389866f467888b58d869c6c629c3 0, 25, 25, 1, 62708, e463497b45db8c805fe8ef6903b1ce9c 0, 26, 26, 1, 62252, 4a386a10f454c4a16314ce824348ccfc 0, 27, 27, 1, 61752, ec17bfb853b0347ed5851adec930ac88 0, 28, 28, 1, 60248, 2dce5d2345acaebe8d2ffe68248db51b 0, 29, 29, 1, 60232, 69e26cd6734e29179a152271d31ec4d9 0, 30, 30, 1, 61240, 4eb9641a3a7f96a1db6291ec1208b243 0, 31, 31, 1, 62228, 6ea9280e5c470a1843e2af7b086270b0 0, 32, 32, 1, 62636, cab91136cea5c672b970dbc9e1491ea1 0, 33, 33, 1, 63840, 25dd643075412e90e16fd6732a7cb218 0, 34, 34, 1, 62996, 173c292ebe568e845835e63ae98064f7 0, 35, 35, 1, 62476, 4bdc99c66bcd82238d84f478b2be6d6d 0, 36, 36, 1, 61744, fb3161857f91255e2fa3efff1fadfd4e 0, 37, 37, 1, 62012, a7f45644fba6f9d3088800a18a78fe93 0, 38, 38, 1, 61748, 3c606f8fc6f7535651f1203a0d390a1d 0, 39, 39, 1, 61688, 636f94c06a5af282026aa82010362fd6 0, 40, 40, 1, 60528, 157ff55e69660cb272c94ef1bf56f510 0, 41, 41, 1, 62248, 1001e1aa4249cdc55bfc1f7daea931ad 0, 42, 42, 1, 61832, 9435239c2ebe6bfee404c002c1f1a683 0, 43, 43, 1, 61688, 6bdc7de71e539f50ddc7961e7e56e822 0, 44, 44, 1, 61216, adf9cb20324a6ea37840aa96cc57f67f 0, 45, 45, 1, 60192, 4d170c4d05a84440c9dbf60902902d70 0, 46, 46, 1, 59388, f292adfcec971be4dd87e68da7edc662 0, 47, 47, 1, 59620, ad02e16282fc53a395a3b61c077f56ca 0, 48, 48, 1, 59584, e9cad9e33a2d9508ab4feabfc9545738 0, 49, 49, 1, 58800, 83eed6619d5fa154a30128761561ff90
{ "pile_set_name": "Github" }
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "bytes" "errors" "io" "strconv" "strings" "golang.org/x/net/html/atom" ) // A TokenType is the type of a Token. type TokenType uint32 const ( // ErrorToken means that an error occurred during tokenization. ErrorToken TokenType = iota // TextToken means a text node. TextToken // A StartTagToken looks like <a>. StartTagToken // An EndTagToken looks like </a>. EndTagToken // A SelfClosingTagToken tag looks like <br/>. SelfClosingTagToken // A CommentToken looks like <!--x-->. CommentToken // A DoctypeToken looks like <!DOCTYPE x> DoctypeToken ) // ErrBufferExceeded means that the buffering limit was exceeded. var ErrBufferExceeded = errors.New("max buffer exceeded") // String returns a string representation of the TokenType. func (t TokenType) String() string { switch t { case ErrorToken: return "Error" case TextToken: return "Text" case StartTagToken: return "StartTag" case EndTagToken: return "EndTag" case SelfClosingTagToken: return "SelfClosingTag" case CommentToken: return "Comment" case DoctypeToken: return "Doctype" } return "Invalid(" + strconv.Itoa(int(t)) + ")" } // An Attribute is an attribute namespace-key-value triple. Namespace is // non-empty for foreign attributes like xlink, Key is alphabetic (and hence // does not contain escapable characters like '&', '<' or '>'), and Val is // unescaped (it looks like "a<b" rather than "a&lt;b"). // // Namespace is only used by the parser, not the tokenizer. type Attribute struct { Namespace, Key, Val string } // A Token consists of a TokenType and some Data (tag name for start and end // tags, content for text, comments and doctypes). A tag Token may also contain // a slice of Attributes. Data is unescaped for all Tokens (it looks like "a<b" // rather than "a&lt;b"). For tag Tokens, DataAtom is the atom for Data, or // zero if Data is not a known tag name. type Token struct { Type TokenType DataAtom atom.Atom Data string Attr []Attribute } // tagString returns a string representation of a tag Token's Data and Attr. func (t Token) tagString() string { if len(t.Attr) == 0 { return t.Data } buf := bytes.NewBufferString(t.Data) for _, a := range t.Attr { buf.WriteByte(' ') buf.WriteString(a.Key) buf.WriteString(`="`) escape(buf, a.Val) buf.WriteByte('"') } return buf.String() } // String returns a string representation of the Token. func (t Token) String() string { switch t.Type { case ErrorToken: return "" case TextToken: return EscapeString(t.Data) case StartTagToken: return "<" + t.tagString() + ">" case EndTagToken: return "</" + t.tagString() + ">" case SelfClosingTagToken: return "<" + t.tagString() + "/>" case CommentToken: return "<!--" + t.Data + "-->" case DoctypeToken: return "<!DOCTYPE " + t.Data + ">" } return "Invalid(" + strconv.Itoa(int(t.Type)) + ")" } // span is a range of bytes in a Tokenizer's buffer. The start is inclusive, // the end is exclusive. type span struct { start, end int } // A Tokenizer returns a stream of HTML Tokens. type Tokenizer struct { // r is the source of the HTML text. r io.Reader // tt is the TokenType of the current token. tt TokenType // err is the first error encountered during tokenization. It is possible // for tt != Error && err != nil to hold: this means that Next returned a // valid token but the subsequent Next call will return an error token. // For example, if the HTML text input was just "plain", then the first // Next call would set z.err to io.EOF but return a TextToken, and all // subsequent Next calls would return an ErrorToken. // err is never reset. Once it becomes non-nil, it stays non-nil. err error // readErr is the error returned by the io.Reader r. It is separate from // err because it is valid for an io.Reader to return (n int, err1 error) // such that n > 0 && err1 != nil, and callers should always process the // n > 0 bytes before considering the error err1. readErr error // buf[raw.start:raw.end] holds the raw bytes of the current token. // buf[raw.end:] is buffered input that will yield future tokens. raw span buf []byte // maxBuf limits the data buffered in buf. A value of 0 means unlimited. maxBuf int // buf[data.start:data.end] holds the raw bytes of the current token's data: // a text token's text, a tag token's tag name, etc. data span // pendingAttr is the attribute key and value currently being tokenized. // When complete, pendingAttr is pushed onto attr. nAttrReturned is // incremented on each call to TagAttr. pendingAttr [2]span attr [][2]span nAttrReturned int // rawTag is the "script" in "</script>" that closes the next token. If // non-empty, the subsequent call to Next will return a raw or RCDATA text // token: one that treats "<p>" as text instead of an element. // rawTag's contents are lower-cased. rawTag string // textIsRaw is whether the current text token's data is not escaped. textIsRaw bool // convertNUL is whether NUL bytes in the current token's data should // be converted into \ufffd replacement characters. convertNUL bool // allowCDATA is whether CDATA sections are allowed in the current context. allowCDATA bool } // AllowCDATA sets whether or not the tokenizer recognizes <![CDATA[foo]]> as // the text "foo". The default value is false, which means to recognize it as // a bogus comment "<!-- [CDATA[foo]] -->" instead. // // Strictly speaking, an HTML5 compliant tokenizer should allow CDATA if and // only if tokenizing foreign content, such as MathML and SVG. However, // tracking foreign-contentness is difficult to do purely in the tokenizer, // as opposed to the parser, due to HTML integration points: an <svg> element // can contain a <foreignObject> that is foreign-to-SVG but not foreign-to- // HTML. For strict compliance with the HTML5 tokenization algorithm, it is the // responsibility of the user of a tokenizer to call AllowCDATA as appropriate. // In practice, if using the tokenizer without caring whether MathML or SVG // CDATA is text or comments, such as tokenizing HTML to find all the anchor // text, it is acceptable to ignore this responsibility. func (z *Tokenizer) AllowCDATA(allowCDATA bool) { z.allowCDATA = allowCDATA } // NextIsNotRawText instructs the tokenizer that the next token should not be // considered as 'raw text'. Some elements, such as script and title elements, // normally require the next token after the opening tag to be 'raw text' that // has no child elements. For example, tokenizing "<title>a<b>c</b>d</title>" // yields a start tag token for "<title>", a text token for "a<b>c</b>d", and // an end tag token for "</title>". There are no distinct start tag or end tag // tokens for the "<b>" and "</b>". // // This tokenizer implementation will generally look for raw text at the right // times. Strictly speaking, an HTML5 compliant tokenizer should not look for // raw text if in foreign content: <title> generally needs raw text, but a // <title> inside an <svg> does not. Another example is that a <textarea> // generally needs raw text, but a <textarea> is not allowed as an immediate // child of a <select>; in normal parsing, a <textarea> implies </select>, but // one cannot close the implicit element when parsing a <select>'s InnerHTML. // Similarly to AllowCDATA, tracking the correct moment to override raw-text- // ness is difficult to do purely in the tokenizer, as opposed to the parser. // For strict compliance with the HTML5 tokenization algorithm, it is the // responsibility of the user of a tokenizer to call NextIsNotRawText as // appropriate. In practice, like AllowCDATA, it is acceptable to ignore this // responsibility for basic usage. // // Note that this 'raw text' concept is different from the one offered by the // Tokenizer.Raw method. func (z *Tokenizer) NextIsNotRawText() { z.rawTag = "" } // Err returns the error associated with the most recent ErrorToken token. // This is typically io.EOF, meaning the end of tokenization. func (z *Tokenizer) Err() error { if z.tt != ErrorToken { return nil } return z.err } // readByte returns the next byte from the input stream, doing a buffered read // from z.r into z.buf if necessary. z.buf[z.raw.start:z.raw.end] remains a contiguous byte // slice that holds all the bytes read so far for the current token. // It sets z.err if the underlying reader returns an error. // Pre-condition: z.err == nil. func (z *Tokenizer) readByte() byte { if z.raw.end >= len(z.buf) { // Our buffer is exhausted and we have to read from z.r. Check if the // previous read resulted in an error. if z.readErr != nil { z.err = z.readErr return 0 } // We copy z.buf[z.raw.start:z.raw.end] to the beginning of z.buf. If the length // z.raw.end - z.raw.start is more than half the capacity of z.buf, then we // allocate a new buffer before the copy. c := cap(z.buf) d := z.raw.end - z.raw.start var buf1 []byte if 2*d > c { buf1 = make([]byte, d, 2*c) } else { buf1 = z.buf[:d] } copy(buf1, z.buf[z.raw.start:z.raw.end]) if x := z.raw.start; x != 0 { // Adjust the data/attr spans to refer to the same contents after the copy. z.data.start -= x z.data.end -= x z.pendingAttr[0].start -= x z.pendingAttr[0].end -= x z.pendingAttr[1].start -= x z.pendingAttr[1].end -= x for i := range z.attr { z.attr[i][0].start -= x z.attr[i][0].end -= x z.attr[i][1].start -= x z.attr[i][1].end -= x } } z.raw.start, z.raw.end, z.buf = 0, d, buf1[:d] // Now that we have copied the live bytes to the start of the buffer, // we read from z.r into the remainder. var n int n, z.readErr = readAtLeastOneByte(z.r, buf1[d:cap(buf1)]) if n == 0 { z.err = z.readErr return 0 } z.buf = buf1[:d+n] } x := z.buf[z.raw.end] z.raw.end++ if z.maxBuf > 0 && z.raw.end-z.raw.start >= z.maxBuf { z.err = ErrBufferExceeded return 0 } return x } // Buffered returns a slice containing data buffered but not yet tokenized. func (z *Tokenizer) Buffered() []byte { return z.buf[z.raw.end:] } // readAtLeastOneByte wraps an io.Reader so that reading cannot return (0, nil). // It returns io.ErrNoProgress if the underlying r.Read method returns (0, nil) // too many times in succession. func readAtLeastOneByte(r io.Reader, b []byte) (int, error) { for i := 0; i < 100; i++ { n, err := r.Read(b) if n != 0 || err != nil { return n, err } } return 0, io.ErrNoProgress } // skipWhiteSpace skips past any white space. func (z *Tokenizer) skipWhiteSpace() { if z.err != nil { return } for { c := z.readByte() if z.err != nil { return } switch c { case ' ', '\n', '\r', '\t', '\f': // No-op. default: z.raw.end-- return } } } // readRawOrRCDATA reads until the next "</foo>", where "foo" is z.rawTag and // is typically something like "script" or "textarea". func (z *Tokenizer) readRawOrRCDATA() { if z.rawTag == "script" { z.readScript() z.textIsRaw = true z.rawTag = "" return } loop: for { c := z.readByte() if z.err != nil { break loop } if c != '<' { continue loop } c = z.readByte() if z.err != nil { break loop } if c != '/' { continue loop } if z.readRawEndTag() || z.err != nil { break loop } } z.data.end = z.raw.end // A textarea's or title's RCDATA can contain escaped entities. z.textIsRaw = z.rawTag != "textarea" && z.rawTag != "title" z.rawTag = "" } // readRawEndTag attempts to read a tag like "</foo>", where "foo" is z.rawTag. // If it succeeds, it backs up the input position to reconsume the tag and // returns true. Otherwise it returns false. The opening "</" has already been // consumed. func (z *Tokenizer) readRawEndTag() bool { for i := 0; i < len(z.rawTag); i++ { c := z.readByte() if z.err != nil { return false } if c != z.rawTag[i] && c != z.rawTag[i]-('a'-'A') { z.raw.end-- return false } } c := z.readByte() if z.err != nil { return false } switch c { case ' ', '\n', '\r', '\t', '\f', '/', '>': // The 3 is 2 for the leading "</" plus 1 for the trailing character c. z.raw.end -= 3 + len(z.rawTag) return true } z.raw.end-- return false } // readScript reads until the next </script> tag, following the byzantine // rules for escaping/hiding the closing tag. func (z *Tokenizer) readScript() { defer func() { z.data.end = z.raw.end }() var c byte scriptData: c = z.readByte() if z.err != nil { return } if c == '<' { goto scriptDataLessThanSign } goto scriptData scriptDataLessThanSign: c = z.readByte() if z.err != nil { return } switch c { case '/': goto scriptDataEndTagOpen case '!': goto scriptDataEscapeStart } z.raw.end-- goto scriptData scriptDataEndTagOpen: if z.readRawEndTag() || z.err != nil { return } goto scriptData scriptDataEscapeStart: c = z.readByte() if z.err != nil { return } if c == '-' { goto scriptDataEscapeStartDash } z.raw.end-- goto scriptData scriptDataEscapeStartDash: c = z.readByte() if z.err != nil { return } if c == '-' { goto scriptDataEscapedDashDash } z.raw.end-- goto scriptData scriptDataEscaped: c = z.readByte() if z.err != nil { return } switch c { case '-': goto scriptDataEscapedDash case '<': goto scriptDataEscapedLessThanSign } goto scriptDataEscaped scriptDataEscapedDash: c = z.readByte() if z.err != nil { return } switch c { case '-': goto scriptDataEscapedDashDash case '<': goto scriptDataEscapedLessThanSign } goto scriptDataEscaped scriptDataEscapedDashDash: c = z.readByte() if z.err != nil { return } switch c { case '-': goto scriptDataEscapedDashDash case '<': goto scriptDataEscapedLessThanSign case '>': goto scriptData } goto scriptDataEscaped scriptDataEscapedLessThanSign: c = z.readByte() if z.err != nil { return } if c == '/' { goto scriptDataEscapedEndTagOpen } if 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z' { goto scriptDataDoubleEscapeStart } z.raw.end-- goto scriptData scriptDataEscapedEndTagOpen: if z.readRawEndTag() || z.err != nil { return } goto scriptDataEscaped scriptDataDoubleEscapeStart: z.raw.end-- for i := 0; i < len("script"); i++ { c = z.readByte() if z.err != nil { return } if c != "script"[i] && c != "SCRIPT"[i] { z.raw.end-- goto scriptDataEscaped } } c = z.readByte() if z.err != nil { return } switch c { case ' ', '\n', '\r', '\t', '\f', '/', '>': goto scriptDataDoubleEscaped } z.raw.end-- goto scriptDataEscaped scriptDataDoubleEscaped: c = z.readByte() if z.err != nil { return } switch c { case '-': goto scriptDataDoubleEscapedDash case '<': goto scriptDataDoubleEscapedLessThanSign } goto scriptDataDoubleEscaped scriptDataDoubleEscapedDash: c = z.readByte() if z.err != nil { return } switch c { case '-': goto scriptDataDoubleEscapedDashDash case '<': goto scriptDataDoubleEscapedLessThanSign } goto scriptDataDoubleEscaped scriptDataDoubleEscapedDashDash: c = z.readByte() if z.err != nil { return } switch c { case '-': goto scriptDataDoubleEscapedDashDash case '<': goto scriptDataDoubleEscapedLessThanSign case '>': goto scriptData } goto scriptDataDoubleEscaped scriptDataDoubleEscapedLessThanSign: c = z.readByte() if z.err != nil { return } if c == '/' { goto scriptDataDoubleEscapeEnd } z.raw.end-- goto scriptDataDoubleEscaped scriptDataDoubleEscapeEnd: if z.readRawEndTag() { z.raw.end += len("</script>") goto scriptDataEscaped } if z.err != nil { return } goto scriptDataDoubleEscaped } // readComment reads the next comment token starting with "<!--". The opening // "<!--" has already been consumed. func (z *Tokenizer) readComment() { z.data.start = z.raw.end defer func() { if z.data.end < z.data.start { // It's a comment with no data, like <!-->. z.data.end = z.data.start } }() for dashCount := 2; ; { c := z.readByte() if z.err != nil { // Ignore up to two dashes at EOF. if dashCount > 2 { dashCount = 2 } z.data.end = z.raw.end - dashCount return } switch c { case '-': dashCount++ continue case '>': if dashCount >= 2 { z.data.end = z.raw.end - len("-->") return } case '!': if dashCount >= 2 { c = z.readByte() if z.err != nil { z.data.end = z.raw.end return } if c == '>' { z.data.end = z.raw.end - len("--!>") return } } } dashCount = 0 } } // readUntilCloseAngle reads until the next ">". func (z *Tokenizer) readUntilCloseAngle() { z.data.start = z.raw.end for { c := z.readByte() if z.err != nil { z.data.end = z.raw.end return } if c == '>' { z.data.end = z.raw.end - len(">") return } } } // readMarkupDeclaration reads the next token starting with "<!". It might be // a "<!--comment-->", a "<!DOCTYPE foo>", a "<![CDATA[section]]>" or // "<!a bogus comment". The opening "<!" has already been consumed. func (z *Tokenizer) readMarkupDeclaration() TokenType { z.data.start = z.raw.end var c [2]byte for i := 0; i < 2; i++ { c[i] = z.readByte() if z.err != nil { z.data.end = z.raw.end return CommentToken } } if c[0] == '-' && c[1] == '-' { z.readComment() return CommentToken } z.raw.end -= 2 if z.readDoctype() { return DoctypeToken } if z.allowCDATA && z.readCDATA() { z.convertNUL = true return TextToken } // It's a bogus comment. z.readUntilCloseAngle() return CommentToken } // readDoctype attempts to read a doctype declaration and returns true if // successful. The opening "<!" has already been consumed. func (z *Tokenizer) readDoctype() bool { const s = "DOCTYPE" for i := 0; i < len(s); i++ { c := z.readByte() if z.err != nil { z.data.end = z.raw.end return false } if c != s[i] && c != s[i]+('a'-'A') { // Back up to read the fragment of "DOCTYPE" again. z.raw.end = z.data.start return false } } if z.skipWhiteSpace(); z.err != nil { z.data.start = z.raw.end z.data.end = z.raw.end return true } z.readUntilCloseAngle() return true } // readCDATA attempts to read a CDATA section and returns true if // successful. The opening "<!" has already been consumed. func (z *Tokenizer) readCDATA() bool { const s = "[CDATA[" for i := 0; i < len(s); i++ { c := z.readByte() if z.err != nil { z.data.end = z.raw.end return false } if c != s[i] { // Back up to read the fragment of "[CDATA[" again. z.raw.end = z.data.start return false } } z.data.start = z.raw.end brackets := 0 for { c := z.readByte() if z.err != nil { z.data.end = z.raw.end return true } switch c { case ']': brackets++ case '>': if brackets >= 2 { z.data.end = z.raw.end - len("]]>") return true } brackets = 0 default: brackets = 0 } } } // startTagIn returns whether the start tag in z.buf[z.data.start:z.data.end] // case-insensitively matches any element of ss. func (z *Tokenizer) startTagIn(ss ...string) bool { loop: for _, s := range ss { if z.data.end-z.data.start != len(s) { continue loop } for i := 0; i < len(s); i++ { c := z.buf[z.data.start+i] if 'A' <= c && c <= 'Z' { c += 'a' - 'A' } if c != s[i] { continue loop } } return true } return false } // readStartTag reads the next start tag token. The opening "<a" has already // been consumed, where 'a' means anything in [A-Za-z]. func (z *Tokenizer) readStartTag() TokenType { z.readTag(true) if z.err != nil { return ErrorToken } // Several tags flag the tokenizer's next token as raw. c, raw := z.buf[z.data.start], false if 'A' <= c && c <= 'Z' { c += 'a' - 'A' } switch c { case 'i': raw = z.startTagIn("iframe") case 'n': raw = z.startTagIn("noembed", "noframes", "noscript") case 'p': raw = z.startTagIn("plaintext") case 's': raw = z.startTagIn("script", "style") case 't': raw = z.startTagIn("textarea", "title") case 'x': raw = z.startTagIn("xmp") } if raw { z.rawTag = strings.ToLower(string(z.buf[z.data.start:z.data.end])) } // Look for a self-closing token like "<br/>". if z.err == nil && z.buf[z.raw.end-2] == '/' { return SelfClosingTagToken } return StartTagToken } // readTag reads the next tag token and its attributes. If saveAttr, those // attributes are saved in z.attr, otherwise z.attr is set to an empty slice. // The opening "<a" or "</a" has already been consumed, where 'a' means anything // in [A-Za-z]. func (z *Tokenizer) readTag(saveAttr bool) { z.attr = z.attr[:0] z.nAttrReturned = 0 // Read the tag name and attribute key/value pairs. z.readTagName() if z.skipWhiteSpace(); z.err != nil { return } for { c := z.readByte() if z.err != nil || c == '>' { break } z.raw.end-- z.readTagAttrKey() z.readTagAttrVal() // Save pendingAttr if saveAttr and that attribute has a non-empty key. if saveAttr && z.pendingAttr[0].start != z.pendingAttr[0].end { z.attr = append(z.attr, z.pendingAttr) } if z.skipWhiteSpace(); z.err != nil { break } } } // readTagName sets z.data to the "div" in "<div k=v>". The reader (z.raw.end) // is positioned such that the first byte of the tag name (the "d" in "<div") // has already been consumed. func (z *Tokenizer) readTagName() { z.data.start = z.raw.end - 1 for { c := z.readByte() if z.err != nil { z.data.end = z.raw.end return } switch c { case ' ', '\n', '\r', '\t', '\f': z.data.end = z.raw.end - 1 return case '/', '>': z.raw.end-- z.data.end = z.raw.end return } } } // readTagAttrKey sets z.pendingAttr[0] to the "k" in "<div k=v>". // Precondition: z.err == nil. func (z *Tokenizer) readTagAttrKey() { z.pendingAttr[0].start = z.raw.end for { c := z.readByte() if z.err != nil { z.pendingAttr[0].end = z.raw.end return } switch c { case ' ', '\n', '\r', '\t', '\f', '/': z.pendingAttr[0].end = z.raw.end - 1 return case '=', '>': z.raw.end-- z.pendingAttr[0].end = z.raw.end return } } } // readTagAttrVal sets z.pendingAttr[1] to the "v" in "<div k=v>". func (z *Tokenizer) readTagAttrVal() { z.pendingAttr[1].start = z.raw.end z.pendingAttr[1].end = z.raw.end if z.skipWhiteSpace(); z.err != nil { return } c := z.readByte() if z.err != nil { return } if c != '=' { z.raw.end-- return } if z.skipWhiteSpace(); z.err != nil { return } quote := z.readByte() if z.err != nil { return } switch quote { case '>': z.raw.end-- return case '\'', '"': z.pendingAttr[1].start = z.raw.end for { c := z.readByte() if z.err != nil { z.pendingAttr[1].end = z.raw.end return } if c == quote { z.pendingAttr[1].end = z.raw.end - 1 return } } default: z.pendingAttr[1].start = z.raw.end - 1 for { c := z.readByte() if z.err != nil { z.pendingAttr[1].end = z.raw.end return } switch c { case ' ', '\n', '\r', '\t', '\f': z.pendingAttr[1].end = z.raw.end - 1 return case '>': z.raw.end-- z.pendingAttr[1].end = z.raw.end return } } } } // Next scans the next token and returns its type. func (z *Tokenizer) Next() TokenType { z.raw.start = z.raw.end z.data.start = z.raw.end z.data.end = z.raw.end if z.err != nil { z.tt = ErrorToken return z.tt } if z.rawTag != "" { if z.rawTag == "plaintext" { // Read everything up to EOF. for z.err == nil { z.readByte() } z.data.end = z.raw.end z.textIsRaw = true } else { z.readRawOrRCDATA() } if z.data.end > z.data.start { z.tt = TextToken z.convertNUL = true return z.tt } } z.textIsRaw = false z.convertNUL = false loop: for { c := z.readByte() if z.err != nil { break loop } if c != '<' { continue loop } // Check if the '<' we have just read is part of a tag, comment // or doctype. If not, it's part of the accumulated text token. c = z.readByte() if z.err != nil { break loop } var tokenType TokenType switch { case 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z': tokenType = StartTagToken case c == '/': tokenType = EndTagToken case c == '!' || c == '?': // We use CommentToken to mean any of "<!--actual comments-->", // "<!DOCTYPE declarations>" and "<?xml processing instructions?>". tokenType = CommentToken default: // Reconsume the current character. z.raw.end-- continue } // We have a non-text token, but we might have accumulated some text // before that. If so, we return the text first, and return the non- // text token on the subsequent call to Next. if x := z.raw.end - len("<a"); z.raw.start < x { z.raw.end = x z.data.end = x z.tt = TextToken return z.tt } switch tokenType { case StartTagToken: z.tt = z.readStartTag() return z.tt case EndTagToken: c = z.readByte() if z.err != nil { break loop } if c == '>' { // "</>" does not generate a token at all. Generate an empty comment // to allow passthrough clients to pick up the data using Raw. // Reset the tokenizer state and start again. z.tt = CommentToken return z.tt } if 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z' { z.readTag(false) if z.err != nil { z.tt = ErrorToken } else { z.tt = EndTagToken } return z.tt } z.raw.end-- z.readUntilCloseAngle() z.tt = CommentToken return z.tt case CommentToken: if c == '!' { z.tt = z.readMarkupDeclaration() return z.tt } z.raw.end-- z.readUntilCloseAngle() z.tt = CommentToken return z.tt } } if z.raw.start < z.raw.end { z.data.end = z.raw.end z.tt = TextToken return z.tt } z.tt = ErrorToken return z.tt } // Raw returns the unmodified text of the current token. Calling Next, Token, // Text, TagName or TagAttr may change the contents of the returned slice. func (z *Tokenizer) Raw() []byte { return z.buf[z.raw.start:z.raw.end] } // convertNewlines converts "\r" and "\r\n" in s to "\n". // The conversion happens in place, but the resulting slice may be shorter. func convertNewlines(s []byte) []byte { for i, c := range s { if c != '\r' { continue } src := i + 1 if src >= len(s) || s[src] != '\n' { s[i] = '\n' continue } dst := i for src < len(s) { if s[src] == '\r' { if src+1 < len(s) && s[src+1] == '\n' { src++ } s[dst] = '\n' } else { s[dst] = s[src] } src++ dst++ } return s[:dst] } return s } var ( nul = []byte("\x00") replacement = []byte("\ufffd") ) // Text returns the unescaped text of a text, comment or doctype token. The // contents of the returned slice may change on the next call to Next. func (z *Tokenizer) Text() []byte { switch z.tt { case TextToken, CommentToken, DoctypeToken: s := z.buf[z.data.start:z.data.end] z.data.start = z.raw.end z.data.end = z.raw.end s = convertNewlines(s) if (z.convertNUL || z.tt == CommentToken) && bytes.Contains(s, nul) { s = bytes.Replace(s, nul, replacement, -1) } if !z.textIsRaw { s = unescape(s, false) } return s } return nil } // TagName returns the lower-cased name of a tag token (the `img` out of // `<IMG SRC="foo">`) and whether the tag has attributes. // The contents of the returned slice may change on the next call to Next. func (z *Tokenizer) TagName() (name []byte, hasAttr bool) { if z.data.start < z.data.end { switch z.tt { case StartTagToken, EndTagToken, SelfClosingTagToken: s := z.buf[z.data.start:z.data.end] z.data.start = z.raw.end z.data.end = z.raw.end return lower(s), z.nAttrReturned < len(z.attr) } } return nil, false } // TagAttr returns the lower-cased key and unescaped value of the next unparsed // attribute for the current tag token and whether there are more attributes. // The contents of the returned slices may change on the next call to Next. func (z *Tokenizer) TagAttr() (key, val []byte, moreAttr bool) { if z.nAttrReturned < len(z.attr) { switch z.tt { case StartTagToken, SelfClosingTagToken: x := z.attr[z.nAttrReturned] z.nAttrReturned++ key = z.buf[x[0].start:x[0].end] val = z.buf[x[1].start:x[1].end] return lower(key), unescape(convertNewlines(val), true), z.nAttrReturned < len(z.attr) } } return nil, nil, false } // Token returns the next Token. The result's Data and Attr values remain valid // after subsequent Next calls. func (z *Tokenizer) Token() Token { t := Token{Type: z.tt} switch z.tt { case TextToken, CommentToken, DoctypeToken: t.Data = string(z.Text()) case StartTagToken, SelfClosingTagToken, EndTagToken: name, moreAttr := z.TagName() for moreAttr { var key, val []byte key, val, moreAttr = z.TagAttr() t.Attr = append(t.Attr, Attribute{"", atom.String(key), string(val)}) } if a := atom.Lookup(name); a != 0 { t.DataAtom, t.Data = a, a.String() } else { t.DataAtom, t.Data = 0, string(name) } } return t } // SetMaxBuf sets a limit on the amount of data buffered during tokenization. // A value of 0 means unlimited. func (z *Tokenizer) SetMaxBuf(n int) { z.maxBuf = n } // NewTokenizer returns a new HTML Tokenizer for the given Reader. // The input is assumed to be UTF-8 encoded. func NewTokenizer(r io.Reader) *Tokenizer { return NewTokenizerFragment(r, "") } // NewTokenizerFragment returns a new HTML Tokenizer for the given Reader, for // tokenizing an existing element's InnerHTML fragment. contextTag is that // element's tag, such as "div" or "iframe". // // For example, how the InnerHTML "a<b" is tokenized depends on whether it is // for a <p> tag or a <script> tag. // // The input is assumed to be UTF-8 encoded. func NewTokenizerFragment(r io.Reader, contextTag string) *Tokenizer { z := &Tokenizer{ r: r, buf: make([]byte, 0, 4096), } if contextTag != "" { switch s := strings.ToLower(contextTag); s { case "iframe", "noembed", "noframes", "noscript", "plaintext", "script", "style", "title", "textarea", "xmp": z.rawTag = s } } return z }
{ "pile_set_name": "Github" }
/* * UVD_5_0 Register documentation * * Copyright (C) 2014 Advanced Micro Devices, Inc. * * 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 COPYRIGHT HOLDER(S) 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. */ #ifndef UVD_5_0_D_H #define UVD_5_0_D_H #define mmUVD_SEMA_ADDR_LOW 0x3bc0 #define mmUVD_SEMA_ADDR_HIGH 0x3bc1 #define mmUVD_SEMA_CMD 0x3bc2 #define mmUVD_GPCOM_VCPU_CMD 0x3bc3 #define mmUVD_GPCOM_VCPU_DATA0 0x3bc4 #define mmUVD_GPCOM_VCPU_DATA1 0x3bc5 #define mmUVD_ENGINE_CNTL 0x3bc6 #define mmUVD_UDEC_ADDR_CONFIG 0x3bd3 #define mmUVD_UDEC_DB_ADDR_CONFIG 0x3bd4 #define mmUVD_UDEC_DBW_ADDR_CONFIG 0x3bd5 #define mmUVD_NO_OP 0x3bff #define mmUVD_LMI_RBC_RB_64BIT_BAR_LOW 0x3c69 #define mmUVD_LMI_RBC_RB_64BIT_BAR_HIGH 0x3c68 #define mmUVD_LMI_RBC_IB_64BIT_BAR_LOW 0x3c67 #define mmUVD_LMI_RBC_IB_64BIT_BAR_HIGH 0x3c66 #define mmUVD_LMI_VCPU_CACHE_64BIT_BAR_LOW 0x3c5f #define mmUVD_LMI_VCPU_CACHE_64BIT_BAR_HIGH 0x3c5e #define mmUVD_SEMA_CNTL 0x3d00 #define mmUVD_LMI_EXT40_ADDR 0x3d26 #define mmUVD_CTX_INDEX 0x3d28 #define mmUVD_CTX_DATA 0x3d29 #define mmUVD_CGC_GATE 0x3d2a #define mmUVD_CGC_STATUS 0x3d2b #define mmUVD_CGC_CTRL 0x3d2c #define mmUVD_CGC_UDEC_STATUS 0x3d2d #define mmUVD_LMI_CTRL2 0x3d3d #define mmUVD_MASTINT_EN 0x3d40 #define mmUVD_LMI_ADDR_EXT 0x3d65 #define mmUVD_LMI_CTRL 0x3d66 #define mmUVD_LMI_STATUS 0x3d67 #define mmUVD_LMI_SWAP_CNTL 0x3d6d #define mmUVD_MP_SWAP_CNTL 0x3d6f #define mmUVD_MPC_CNTL 0x3d77 #define mmUVD_MPC_SET_MUXA0 0x3d79 #define mmUVD_MPC_SET_MUXA1 0x3d7a #define mmUVD_MPC_SET_MUXB0 0x3d7b #define mmUVD_MPC_SET_MUXB1 0x3d7c #define mmUVD_MPC_SET_MUX 0x3d7d #define mmUVD_MPC_SET_ALU 0x3d7e #define mmUVD_VCPU_CACHE_OFFSET0 0x3d82 #define mmUVD_VCPU_CACHE_SIZE0 0x3d83 #define mmUVD_VCPU_CACHE_OFFSET1 0x3d84 #define mmUVD_VCPU_CACHE_SIZE1 0x3d85 #define mmUVD_VCPU_CACHE_OFFSET2 0x3d86 #define mmUVD_VCPU_CACHE_SIZE2 0x3d87 #define mmUVD_VCPU_CNTL 0x3d98 #define mmUVD_SOFT_RESET 0x3da0 #define mmUVD_LMI_RBC_IB_VMID 0x3da1 #define mmUVD_RBC_IB_SIZE 0x3da2 #define mmUVD_LMI_RBC_RB_VMID 0x3da3 #define mmUVD_RBC_RB_RPTR 0x3da4 #define mmUVD_RBC_RB_WPTR 0x3da5 #define mmUVD_RBC_RB_WPTR_CNTL 0x3da6 #define mmUVD_RBC_RB_CNTL 0x3da9 #define mmUVD_RBC_RB_RPTR_ADDR 0x3daa #define mmUVD_STATUS 0x3daf #define mmUVD_SEMA_TIMEOUT_STATUS 0x3db0 #define mmUVD_SEMA_WAIT_INCOMPLETE_TIMEOUT_CNTL 0x3db1 #define mmUVD_SEMA_WAIT_FAULT_TIMEOUT_CNTL 0x3db2 #define mmUVD_SEMA_SIGNAL_INCOMPLETE_TIMEOUT_CNTL 0x3db3 #define mmUVD_CONTEXT_ID 0x3dbd #define mmUVD_RBC_IB_SIZE_UPDATE 0x3df1 #define mmUVD_SUVD_CGC_GATE 0x3be4 #define mmUVD_SUVD_CGC_STATUS 0x3be5 #define mmUVD_SUVD_CGC_CTRL 0x3be6 #define ixUVD_LMI_VMID_INTERNAL 0x99 #define ixUVD_LMI_VMID_INTERNAL2 0x9a #define ixUVD_LMI_CACHE_CTRL 0x9b #define ixUVD_LMI_SWAP_CNTL2 0xaa #define ixUVD_LMI_ADDR_EXT2 0xab #define ixUVD_CGC_MEM_CTRL 0xc0 #define ixUVD_CGC_CTRL2 0xc1 #define ixUVD_LMI_VMID_INTERNAL3 0x162 #define mmUVD_PGFSM_CONFIG 0x38c0 #define mmUVD_PGFSM_READ_TILE1 0x38c2 #define mmUVD_PGFSM_READ_TILE2 0x38c3 #define mmUVD_POWER_STATUS 0x38c4 #define mmUVD_PGFSM_READ_TILE3 0x38c5 #define mmUVD_PGFSM_READ_TILE4 0x38c6 #define mmUVD_PGFSM_READ_TILE5 0x38c8 #define mmUVD_PGFSM_READ_TILE6 0x38ee #define mmUVD_PGFSM_READ_TILE7 0x38ef #define mmUVD_MIF_CURR_ADDR_CONFIG 0x3992 #define mmUVD_MIF_REF_ADDR_CONFIG 0x3993 #define mmUVD_MIF_RECON1_ADDR_CONFIG 0x39c5 #define ixUVD_MIF_SCLR_ADDR_CONFIG 0x4 #define mmUVD_JPEG_ADDR_CONFIG 0x3a1f #endif /* UVD_5_0_D_H */
{ "pile_set_name": "Github" }
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace DTS\eBaySDK\Fulfillment\Types; /** * * @property string $orderId */ class GetAnOrderRestRequest extends \DTS\eBaySDK\Types\BaseType { /** * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ 'orderId' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, 'elementName' => 'orderId' ] ]; /** * @param array $values Optional properties and values to assign to the object. */ public function __construct(array $values = []) { list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); parent::__construct($parentValues); if (!array_key_exists(__CLASS__, self::$properties)) { self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); } $this->setValues(__CLASS__, $childValues); } }
{ "pile_set_name": "Github" }
/* * Copyright (c) 2003-2012 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. The rights granted to you under the License * may not be used to create, or enable the creation or redistribution of, * unlawful or unlicensed copies of an Apple operating system, or to * circumvent, violate, or enable the circumvention or violation of, any * terms of an Apple operating system software license agreement. * * Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ #ifndef _BLKCNT_T #define _BLKCNT_T typedef __darwin_blkcnt_t blkcnt_t; #endif /* _BLKCNT_T */
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Angular Data Grid - Bootstrap Design</title> <link rel="icon" href="https://angularjs.org/favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <link rel="stylesheet" href="css/angular-data-grid.bootstrap.css"> </head> <body ng-app="myApp" ng-controller="myAppController" ng-cloak> <nav class="navbar navbar-inverse"> <div class="container"> <a href="#" class="navbar-brand">Angular Data Grid - Bootstrap Design</a> <div class="navbar-form navbar-right" uib-dropdown> <button id="single-button" type="button" class="btn btn-info" uib-dropdown-toggle> Change Theme <span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="simple-dropdown"> <li> <a href="index.html"><strong>Bootstrap Design</strong></a> </li> <li> <a href="../material/">Material Design</a> </li> </ul> </div> </div> </nav> <div class="container"> <div class="margin-bottom-basic"> <h3>Angular Data Grid sample using out-of-box Bootstrap styling</h3> Features enabled: sorting, filtering (using both in-grid and external controls), sync with browser URLs, pagination and items-per-page functionality, <a href="https://angular-data-grid.github.io/dist/JSONToCSVConvertor.js" target="_blank">optional plugin</a> for CSV exports. Angular UI Datepicker used for date controls, although you can use any other framework, plugin or styling. <a href="https://github.com/angular-data-grid/angular-data-grid.github.io" target="_blank">Project GitHub</a> </div> <h4>Additional Demos</h4> <ul> <li> <a href="../100k/" class="margin-bottom-basic" target="_blank">100k rows</a> </li> <li> <a href="multiple.html" target="_blank">Multiple grids on page</a> </li> <li> <a href="server-pagination.html" target="_blank">Server pagination</a> </li> <li> <a href="ui-router.html" target="_blank">UI Router plus server pagination</a> </li> <li> <a href="../fixed-header/bootstrap-grid.html" target="_blank">Fixed header table</a> </li> </ul> <hr> <div class="row"> <div> <div class="col-md-4"> <div class="form-group"> <label for="orderIdFilter">Search by Order #</label> <input id="orderIdFilter" type="text" class="form-control order-search-box" placeholder="Enter Order #" ng-change="gridActions.filter()" ng-model="code" filter-by="code" filter-type="text"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="dateFromFilter">Date From</label> <div class="input-group"> <input type="text" id="dateFromFilter" class="form-control" uib-datepicker-popup="dd/MM/yyyy" placeholder="DD/MM/YYYY" max-date="dateTo" close-text="Close" ng-model="dateFrom" show-weeks="true" is-open="dateFromOpened" ng-click="dateFromOpened = true" filter-by="placed" filter-type="dateFrom" ng-blur="gridActions.filter()" ng-focus="gridActions.filter()" show-weeks="false" close-text="Close"/> <span class="input-group-btn"> <label for="dateFromFilter" class="btn btn-default"> <i class="fa fa-calendar"></i></label> </span> </div> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="dateToInput">Date To</label> <div class="input-group"> <input type="text" id="dateToInput" class="form-control" uib-datepicker-popup="dd/MM/yyyy" placeholder="DD/MM/YYYY" min-date="dateFrom" max-date="dateTo" close-text="Close" ng-model="dateTo" show-weeks="true" is-open="dateToOpened" ng-click="dateToOpened = true" filter-by="placed" filter-type="dateTo" ng-blur="gridActions.filter()" ng-focus="gridActions.filter()" show-weeks="false" close-text="Close"> <span class="input-group-btn"> <label for="dateToInput" class="btn btn-default"> <i class="fa fa-calendar"></i></label> </span> </div> </div> <div ng-show="dateTo || dateFrom" class="buttons-right"> <a href="" ng-click="dateTo = ''; dateFrom = ''; gridActions.refresh();">Clear Dates</a> </div> </div> </div> </div> <hr> <div class="text-right"> <button class="btn btn-default" ng-click="exportToCsv(gridOptions.data)">Export all data to CSV <i class="fa fa-download"></i></button> <button class="btn btn-default" ng-click="exportToCsv(gridOptions.grid.filtered)">Export filtered data to CSV <i class="fa fa-download"></i></button> </div> <hr> <div class="row"> <div class="col-md-12"> <div grid-data id='test' grid-options="gridOptions" grid-actions="gridActions"> <div class="row"> <div class="col-md-3"> <span class="items">{{filtered.length}} items total</span> </div> <div class="col-md-9 text-right"> <form class="form-inline pull-right margin-bottom-basic"> <div class="form-group"> <grid-pagination max-size="5" boundary-links="true" class="pagination-sm" total-items="paginationOptions.totalItems" ng-model="paginationOptions.currentPage" ng-change="reloadGrid()" items-per-page="paginationOptions.itemsPerPage"></grid-pagination> </div> <div class="form-group items-per-page"> <label for="itemsOnPageSelect1">Items per page:</label> <select id="itemsOnPageSelect1" class="form-control input-sm" ng-init="paginationOptions.itemsPerPage = '10'" ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()"> <option>10</option> <option>25</option> <option>50</option> <option>75</option> </select> </div> </form> </div> </div> <table class="table table-bordered table-striped"> <thead> <tr> <th sortable="code" class="sortable"> Order # </th> <th sortable="placed" class="sortable"> Date Placed </th> <th class="st-sort-disable th-dropdown"> <select class="form-control width-15" filter-by="statusDisplay" filter-type="select" ng-model="status" ng-change="filter()"> <option value="">All Statuses</option> <option ng-repeat="option in statusOptions track by option.value" value="{{option.value}}">{{option.text}} </option> </select> </th> <th sortable='total.value' class="sortable"> Total </th> </tr> </thead> <tbody> <tr grid-item> <td width="30%" ng-bind="item.code"></td> <td width="30%" ng-bind="item.placed | date:'MM/dd/yyyy'"></td> <td ng-bind="item.statusDisplay"></td> <td ng-bind="item.total.formattedValue"></td> </tr> </tbody> </table> <form class="form-inline pull-right margin-bottom-basic"> <div class="form-group"> <grid-pagination max-size="5" boundary-links="true" class="pagination-sm" total-items="paginationOptions.totalItems" ng-model="paginationOptions.currentPage" ng-change="reloadGrid()" items-per-page="paginationOptions.itemsPerPage"></grid-pagination> </div> <div class="form-group items-per-page"> <label for="itemsOnPageSelect2">Items per page:</label> <select id="itemsOnPageSelect2" class="form-control input-sm" ng-init="paginationOptions.itemsPerPage = '10'" ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()"> <option>10</option> <option>25</option> <option>50</option> <option>75</option> </select> </div> </form> </div> </div> </div> <hr> <div> <button class="btn btn-info margin-bottom-basic" ng-click="showCode = !showCode">CodePen</button> <div ng-show="showCode"> <p data-height="768" data-theme-id="21603" data-slug-hash="xZddZm" data-default-tab="html" data-user="AngularDataGrid" class='codepen'>See the Pen <a href='http://codepen.io/AngularDataGrid/pen/xZddZm/'>xZddZm</a> by AngularDataGrid (<a href='http://codepen.io/AngularDataGrid'>@AngularDataGrid</a>) on <a href='http://codepen.io'>CodePen</a>. </p> <script async src="//assets.codepen.io/assets/embed/ei.js"></script> </div> </div> <hr> </div> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script> <script src="https://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-2.5.0.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-animate.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-aria.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-messages.min.js"></script> <script src="../../dist/pagination.min.js"></script> <script src="../../dist/dataGrid.min.js"></script> <script src="../../dist/JSONToCSVConvertor.js"></script> <script src="js/demoApp.js"></script> </body> </html>
{ "pile_set_name": "Github" }
/** * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'codesnippet', 'eo', { button: 'Enmeti kodaฤตeron', codeContents: 'Kodenhavo', emptySnippetError: 'Kodaฤตero ne povas esti malplena.', language: 'Lingvo', title: 'Kodaฤตero', pathName: 'kodaฤตero' } );
{ "pile_set_name": "Github" }
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Copyright 2011, Blender Foundation. */ #include "COM_DisplaceOperation.h" #include "BLI_math.h" #include "BLI_utildefines.h" DisplaceOperation::DisplaceOperation() : NodeOperation() { this->addInputSocket(COM_DT_COLOR); this->addInputSocket(COM_DT_VECTOR); this->addInputSocket(COM_DT_VALUE); this->addInputSocket(COM_DT_VALUE); this->addOutputSocket(COM_DT_COLOR); this->setComplex(true); this->m_inputColorProgram = NULL; this->m_inputVectorProgram = NULL; this->m_inputScaleXProgram = NULL; this->m_inputScaleYProgram = NULL; } void DisplaceOperation::initExecution() { this->m_inputColorProgram = this->getInputSocketReader(0); this->m_inputVectorProgram = this->getInputSocketReader(1); this->m_inputScaleXProgram = this->getInputSocketReader(2); this->m_inputScaleYProgram = this->getInputSocketReader(3); this->m_width_x4 = this->getWidth() * 4; this->m_height_x4 = this->getHeight() * 4; } void DisplaceOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/) { float xy[2] = {x, y}; float uv[2], deriv[2][2]; pixelTransform(xy, uv, deriv); if (is_zero_v2(deriv[0]) && is_zero_v2(deriv[1])) { this->m_inputColorProgram->readSampled(output, uv[0], uv[1], COM_PS_BILINEAR); } else { /* EWA filtering (without nearest it gets blurry with NO distortion) */ this->m_inputColorProgram->readFiltered(output, uv[0], uv[1], deriv[0], deriv[1]); } } bool DisplaceOperation::read_displacement( float x, float y, float xscale, float yscale, const float origin[2], float &r_u, float &r_v) { float width = m_inputVectorProgram->getWidth(); float height = m_inputVectorProgram->getHeight(); if (x < 0.0f || x >= width || y < 0.0f || y >= height) { r_u = 0.0f; r_v = 0.0f; return false; } else { float col[4]; m_inputVectorProgram->readSampled(col, x, y, COM_PS_BILINEAR); r_u = origin[0] - col[0] * xscale; r_v = origin[1] - col[1] * yscale; return true; } } void DisplaceOperation::pixelTransform(const float xy[2], float r_uv[2], float r_deriv[2][2]) { float col[4]; float uv[2]; /* temporary variables for derivative estimation */ int num; m_inputScaleXProgram->readSampled(col, xy[0], xy[1], COM_PS_NEAREST); float xs = col[0]; m_inputScaleYProgram->readSampled(col, xy[0], xy[1], COM_PS_NEAREST); float ys = col[0]; /* clamp x and y displacement to triple image resolution - * to prevent hangs from huge values mistakenly plugged in eg. z buffers */ CLAMP(xs, -m_width_x4, m_width_x4); CLAMP(ys, -m_height_x4, m_height_x4); /* displaced pixel in uv coords, for image sampling */ read_displacement(xy[0], xy[1], xs, ys, xy, r_uv[0], r_uv[1]); /* Estimate partial derivatives using 1-pixel offsets */ const float epsilon[2] = {1.0f, 1.0f}; zero_v2(r_deriv[0]); zero_v2(r_deriv[1]); num = 0; if (read_displacement(xy[0] + epsilon[0], xy[1], xs, ys, xy, uv[0], uv[1])) { r_deriv[0][0] += uv[0] - r_uv[0]; r_deriv[1][0] += uv[1] - r_uv[1]; num++; } if (read_displacement(xy[0] - epsilon[0], xy[1], xs, ys, xy, uv[0], uv[1])) { r_deriv[0][0] += r_uv[0] - uv[0]; r_deriv[1][0] += r_uv[1] - uv[1]; num++; } if (num > 0) { float numinv = 1.0f / (float)num; r_deriv[0][0] *= numinv; r_deriv[1][0] *= numinv; } num = 0; if (read_displacement(xy[0], xy[1] + epsilon[1], xs, ys, xy, uv[0], uv[1])) { r_deriv[0][1] += uv[0] - r_uv[0]; r_deriv[1][1] += uv[1] - r_uv[1]; num++; } if (read_displacement(xy[0], xy[1] - epsilon[1], xs, ys, xy, uv[0], uv[1])) { r_deriv[0][1] += r_uv[0] - uv[0]; r_deriv[1][1] += r_uv[1] - uv[1]; num++; } if (num > 0) { float numinv = 1.0f / (float)num; r_deriv[0][1] *= numinv; r_deriv[1][1] *= numinv; } } void DisplaceOperation::deinitExecution() { this->m_inputColorProgram = NULL; this->m_inputVectorProgram = NULL; this->m_inputScaleXProgram = NULL; this->m_inputScaleYProgram = NULL; } bool DisplaceOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) { rcti colorInput; rcti vectorInput; NodeOperation *operation = NULL; /* the vector buffer only needs a 2x2 buffer. The image needs whole buffer */ /* image */ operation = getInputOperation(0); colorInput.xmax = operation->getWidth(); colorInput.xmin = 0; colorInput.ymax = operation->getHeight(); colorInput.ymin = 0; if (operation->determineDependingAreaOfInterest(&colorInput, readOperation, output)) { return true; } /* vector */ operation = getInputOperation(1); vectorInput.xmax = input->xmax + 1; vectorInput.xmin = input->xmin - 1; vectorInput.ymax = input->ymax + 1; vectorInput.ymin = input->ymin - 1; if (operation->determineDependingAreaOfInterest(&vectorInput, readOperation, output)) { return true; } /* scale x */ operation = getInputOperation(2); if (operation->determineDependingAreaOfInterest(input, readOperation, output)) { return true; } /* scale y */ operation = getInputOperation(3); if (operation->determineDependingAreaOfInterest(input, readOperation, output)) { return true; } return false; }
{ "pile_set_name": "Github" }
Param([string]$framework) Start-Process -filepath "dotnet" -argumentlist "run -p .\Fortune-Teller-Service\Fortune-Teller-Service.csproj --force -f $framework" Start-Process -filepath "dotnet" -argumentlist "run -p .\Fortune-Teller-UI\Fortune-Teller-UI.csproj --force -f $framework"
{ "pile_set_name": "Github" }
/* * Copyright (C) 2013-2020 Byron 3D Games Studio (www.b3dgs.com) Pierre-Alexandre (contact@b3dgs.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package com.b3dgs.lionengine.io; import com.b3dgs.lionengine.InputDevice; import com.b3dgs.lionengine.LionEngineException; /** * Represents a directional device, supporting multiple axis. */ public interface InputDeviceDirectional extends InputDevice { /** * Set the horizontal positive control code. * * @param code The horizontal positive control code (must not be <code>null</code>). * @throws LionEngineException If invalid argument. */ void setHorizontalControlPositive(Integer code); /** * Set the horizontal negative control code. * * @param code The horizontal negative control code (must not be <code>null</code>). * @throws LionEngineException If invalid argument. */ void setHorizontalControlNegative(Integer code); /** * Set the vertical positive control code. * * @param code The vertical positive control code (must not be <code>null</code>). * @throws LionEngineException If invalid argument. */ void setVerticalControlPositive(Integer code); /** * Set the vertical negative control code. * * @param code The vertical negative control code (must not be <code>null</code>). * @throws LionEngineException If invalid argument. */ void setVerticalControlNegative(Integer code); /** * Get the horizontal positive control code. * * @return The horizontal positive control code. */ Integer getHorizontalControlPositive(); /** * Get the horizontal negative control code. * * @return The horizontal negative control code. */ Integer getHorizontalControlNegative(); /** * Get the vertical positive control code. * * @return The vertical positive control code. */ Integer getVerticalControlPositive(); /** * Get the vertical negative control code. * * @return The vertical negative control code. */ Integer getVerticalControlNegative(); /** * Get the horizontal direction. * * @return <code>negative</code> if left, <code>positive</code> if right, 0 if none. */ double getHorizontalDirection(); /** * Get the horizontal direction. * * @return <code>positive</code> if up, <code>negative</code> if down, 0 if none. */ double getVerticalDirection(); }
{ "pile_set_name": "Github" }
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build windows package fsnotify import ( "errors" "fmt" "os" "path/filepath" "runtime" "sync" "syscall" "unsafe" ) // Watcher watches a set of files, delivering events to a channel. type Watcher struct { Events chan Event Errors chan error isClosed bool // Set to true when Close() is first called mu sync.Mutex // Map access port syscall.Handle // Handle to completion port watches watchMap // Map of watches (key: i-number) input chan *input // Inputs to the reader are sent on this channel quit chan chan<- error } // NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. func NewWatcher() (*Watcher, error) { port, e := syscall.CreateIoCompletionPort(syscall.InvalidHandle, 0, 0, 0) if e != nil { return nil, os.NewSyscallError("CreateIoCompletionPort", e) } w := &Watcher{ port: port, watches: make(watchMap), input: make(chan *input, 1), Events: make(chan Event, 50), Errors: make(chan error), quit: make(chan chan<- error, 1), } go w.readEvents() return w, nil } // Close removes all watches and closes the events channel. func (w *Watcher) Close() error { if w.isClosed { return nil } w.isClosed = true // Send "quit" message to the reader goroutine ch := make(chan error) w.quit <- ch if err := w.wakeupReader(); err != nil { return err } return <-ch } // Add starts watching the named file or directory (non-recursively). func (w *Watcher) Add(name string) error { if w.isClosed { return errors.New("watcher already closed") } in := &input{ op: opAddWatch, path: filepath.Clean(name), flags: sysFSALLEVENTS, reply: make(chan error), } w.input <- in if err := w.wakeupReader(); err != nil { return err } return <-in.reply } // Remove stops watching the the named file or directory (non-recursively). func (w *Watcher) Remove(name string) error { in := &input{ op: opRemoveWatch, path: filepath.Clean(name), reply: make(chan error), } w.input <- in if err := w.wakeupReader(); err != nil { return err } return <-in.reply } const ( // Options for AddWatch sysFSONESHOT = 0x80000000 sysFSONLYDIR = 0x1000000 // Events sysFSACCESS = 0x1 sysFSALLEVENTS = 0xfff sysFSATTRIB = 0x4 sysFSCLOSE = 0x18 sysFSCREATE = 0x100 sysFSDELETE = 0x200 sysFSDELETESELF = 0x400 sysFSMODIFY = 0x2 sysFSMOVE = 0xc0 sysFSMOVEDFROM = 0x40 sysFSMOVEDTO = 0x80 sysFSMOVESELF = 0x800 // Special events sysFSIGNORED = 0x8000 sysFSQOVERFLOW = 0x4000 ) func newEvent(name string, mask uint32) Event { e := Event{Name: name} if mask&sysFSCREATE == sysFSCREATE || mask&sysFSMOVEDTO == sysFSMOVEDTO { e.Op |= Create } if mask&sysFSDELETE == sysFSDELETE || mask&sysFSDELETESELF == sysFSDELETESELF { e.Op |= Remove } if mask&sysFSMODIFY == sysFSMODIFY { e.Op |= Write } if mask&sysFSMOVE == sysFSMOVE || mask&sysFSMOVESELF == sysFSMOVESELF || mask&sysFSMOVEDFROM == sysFSMOVEDFROM { e.Op |= Rename } if mask&sysFSATTRIB == sysFSATTRIB { e.Op |= Chmod } return e } const ( opAddWatch = iota opRemoveWatch ) const ( provisional uint64 = 1 << (32 + iota) ) type input struct { op int path string flags uint32 reply chan error } type inode struct { handle syscall.Handle volume uint32 index uint64 } type watch struct { ov syscall.Overlapped ino *inode // i-number path string // Directory path mask uint64 // Directory itself is being watched with these notify flags names map[string]uint64 // Map of names being watched and their notify flags rename string // Remembers the old name while renaming a file buf [4096]byte } type indexMap map[uint64]*watch type watchMap map[uint32]indexMap func (w *Watcher) wakeupReader() error { e := syscall.PostQueuedCompletionStatus(w.port, 0, 0, nil) if e != nil { return os.NewSyscallError("PostQueuedCompletionStatus", e) } return nil } func getDir(pathname string) (dir string, err error) { attr, e := syscall.GetFileAttributes(syscall.StringToUTF16Ptr(pathname)) if e != nil { return "", os.NewSyscallError("GetFileAttributes", e) } if attr&syscall.FILE_ATTRIBUTE_DIRECTORY != 0 { dir = pathname } else { dir, _ = filepath.Split(pathname) dir = filepath.Clean(dir) } return } func getIno(path string) (ino *inode, err error) { h, e := syscall.CreateFile(syscall.StringToUTF16Ptr(path), syscall.FILE_LIST_DIRECTORY, syscall.FILE_SHARE_READ|syscall.FILE_SHARE_WRITE|syscall.FILE_SHARE_DELETE, nil, syscall.OPEN_EXISTING, syscall.FILE_FLAG_BACKUP_SEMANTICS|syscall.FILE_FLAG_OVERLAPPED, 0) if e != nil { return nil, os.NewSyscallError("CreateFile", e) } var fi syscall.ByHandleFileInformation if e = syscall.GetFileInformationByHandle(h, &fi); e != nil { syscall.CloseHandle(h) return nil, os.NewSyscallError("GetFileInformationByHandle", e) } ino = &inode{ handle: h, volume: fi.VolumeSerialNumber, index: uint64(fi.FileIndexHigh)<<32 | uint64(fi.FileIndexLow), } return ino, nil } // Must run within the I/O thread. func (m watchMap) get(ino *inode) *watch { if i := m[ino.volume]; i != nil { return i[ino.index] } return nil } // Must run within the I/O thread. func (m watchMap) set(ino *inode, watch *watch) { i := m[ino.volume] if i == nil { i = make(indexMap) m[ino.volume] = i } i[ino.index] = watch } // Must run within the I/O thread. func (w *Watcher) addWatch(pathname string, flags uint64) error { dir, err := getDir(pathname) if err != nil { return err } if flags&sysFSONLYDIR != 0 && pathname != dir { return nil } ino, err := getIno(dir) if err != nil { return err } w.mu.Lock() watchEntry := w.watches.get(ino) w.mu.Unlock() if watchEntry == nil { if _, e := syscall.CreateIoCompletionPort(ino.handle, w.port, 0, 0); e != nil { syscall.CloseHandle(ino.handle) return os.NewSyscallError("CreateIoCompletionPort", e) } watchEntry = &watch{ ino: ino, path: dir, names: make(map[string]uint64), } w.mu.Lock() w.watches.set(ino, watchEntry) w.mu.Unlock() flags |= provisional } else { syscall.CloseHandle(ino.handle) } if pathname == dir { watchEntry.mask |= flags } else { watchEntry.names[filepath.Base(pathname)] |= flags } if err = w.startRead(watchEntry); err != nil { return err } if pathname == dir { watchEntry.mask &= ^provisional } else { watchEntry.names[filepath.Base(pathname)] &= ^provisional } return nil } // Must run within the I/O thread. func (w *Watcher) remWatch(pathname string) error { dir, err := getDir(pathname) if err != nil { return err } ino, err := getIno(dir) if err != nil { return err } w.mu.Lock() watch := w.watches.get(ino) w.mu.Unlock() if watch == nil { return fmt.Errorf("can't remove non-existent watch for: %s", pathname) } if pathname == dir { w.sendEvent(watch.path, watch.mask&sysFSIGNORED) watch.mask = 0 } else { name := filepath.Base(pathname) w.sendEvent(filepath.Join(watch.path, name), watch.names[name]&sysFSIGNORED) delete(watch.names, name) } return w.startRead(watch) } // Must run within the I/O thread. func (w *Watcher) deleteWatch(watch *watch) { for name, mask := range watch.names { if mask&provisional == 0 { w.sendEvent(filepath.Join(watch.path, name), mask&sysFSIGNORED) } delete(watch.names, name) } if watch.mask != 0 { if watch.mask&provisional == 0 { w.sendEvent(watch.path, watch.mask&sysFSIGNORED) } watch.mask = 0 } } // Must run within the I/O thread. func (w *Watcher) startRead(watch *watch) error { if e := syscall.CancelIo(watch.ino.handle); e != nil { w.Errors <- os.NewSyscallError("CancelIo", e) w.deleteWatch(watch) } mask := toWindowsFlags(watch.mask) for _, m := range watch.names { mask |= toWindowsFlags(m) } if mask == 0 { if e := syscall.CloseHandle(watch.ino.handle); e != nil { w.Errors <- os.NewSyscallError("CloseHandle", e) } w.mu.Lock() delete(w.watches[watch.ino.volume], watch.ino.index) w.mu.Unlock() return nil } e := syscall.ReadDirectoryChanges(watch.ino.handle, &watch.buf[0], uint32(unsafe.Sizeof(watch.buf)), false, mask, nil, &watch.ov, 0) if e != nil { err := os.NewSyscallError("ReadDirectoryChanges", e) if e == syscall.ERROR_ACCESS_DENIED && watch.mask&provisional == 0 { // Watched directory was probably removed if w.sendEvent(watch.path, watch.mask&sysFSDELETESELF) { if watch.mask&sysFSONESHOT != 0 { watch.mask = 0 } } err = nil } w.deleteWatch(watch) w.startRead(watch) return err } return nil } // readEvents reads from the I/O completion port, converts the // received events into Event objects and sends them via the Events channel. // Entry point to the I/O thread. func (w *Watcher) readEvents() { var ( n, key uint32 ov *syscall.Overlapped ) runtime.LockOSThread() for { e := syscall.GetQueuedCompletionStatus(w.port, &n, &key, &ov, syscall.INFINITE) watch := (*watch)(unsafe.Pointer(ov)) if watch == nil { select { case ch := <-w.quit: w.mu.Lock() var indexes []indexMap for _, index := range w.watches { indexes = append(indexes, index) } w.mu.Unlock() for _, index := range indexes { for _, watch := range index { w.deleteWatch(watch) w.startRead(watch) } } var err error if e := syscall.CloseHandle(w.port); e != nil { err = os.NewSyscallError("CloseHandle", e) } close(w.Events) close(w.Errors) ch <- err return case in := <-w.input: switch in.op { case opAddWatch: in.reply <- w.addWatch(in.path, uint64(in.flags)) case opRemoveWatch: in.reply <- w.remWatch(in.path) } default: } continue } switch e { case syscall.ERROR_MORE_DATA: if watch == nil { w.Errors <- errors.New("ERROR_MORE_DATA has unexpectedly null lpOverlapped buffer") } else { // The i/o succeeded but the buffer is full. // In theory we should be building up a full packet. // In practice we can get away with just carrying on. n = uint32(unsafe.Sizeof(watch.buf)) } case syscall.ERROR_ACCESS_DENIED: // Watched directory was probably removed w.sendEvent(watch.path, watch.mask&sysFSDELETESELF) w.deleteWatch(watch) w.startRead(watch) continue case syscall.ERROR_OPERATION_ABORTED: // CancelIo was called on this handle continue default: w.Errors <- os.NewSyscallError("GetQueuedCompletionPort", e) continue case nil: } var offset uint32 for { if n == 0 { w.Events <- newEvent("", sysFSQOVERFLOW) w.Errors <- errors.New("short read in readEvents()") break } // Point "raw" to the event in the buffer raw := (*syscall.FileNotifyInformation)(unsafe.Pointer(&watch.buf[offset])) buf := (*[syscall.MAX_PATH]uint16)(unsafe.Pointer(&raw.FileName)) name := syscall.UTF16ToString(buf[:raw.FileNameLength/2]) fullname := filepath.Join(watch.path, name) var mask uint64 switch raw.Action { case syscall.FILE_ACTION_REMOVED: mask = sysFSDELETESELF case syscall.FILE_ACTION_MODIFIED: mask = sysFSMODIFY case syscall.FILE_ACTION_RENAMED_OLD_NAME: watch.rename = name case syscall.FILE_ACTION_RENAMED_NEW_NAME: if watch.names[watch.rename] != 0 { watch.names[name] |= watch.names[watch.rename] delete(watch.names, watch.rename) mask = sysFSMOVESELF } } sendNameEvent := func() { if w.sendEvent(fullname, watch.names[name]&mask) { if watch.names[name]&sysFSONESHOT != 0 { delete(watch.names, name) } } } if raw.Action != syscall.FILE_ACTION_RENAMED_NEW_NAME { sendNameEvent() } if raw.Action == syscall.FILE_ACTION_REMOVED { w.sendEvent(fullname, watch.names[name]&sysFSIGNORED) delete(watch.names, name) } if w.sendEvent(fullname, watch.mask&toFSnotifyFlags(raw.Action)) { if watch.mask&sysFSONESHOT != 0 { watch.mask = 0 } } if raw.Action == syscall.FILE_ACTION_RENAMED_NEW_NAME { fullname = filepath.Join(watch.path, watch.rename) sendNameEvent() } // Move to the next event in the buffer if raw.NextEntryOffset == 0 { break } offset += raw.NextEntryOffset // Error! if offset >= n { w.Errors <- errors.New("Windows system assumed buffer larger than it is, events have likely been missed.") break } } if err := w.startRead(watch); err != nil { w.Errors <- err } } } func (w *Watcher) sendEvent(name string, mask uint64) bool { if mask == 0 { return false } event := newEvent(name, uint32(mask)) select { case ch := <-w.quit: w.quit <- ch case w.Events <- event: } return true } func toWindowsFlags(mask uint64) uint32 { var m uint32 if mask&sysFSACCESS != 0 { m |= syscall.FILE_NOTIFY_CHANGE_LAST_ACCESS } if mask&sysFSMODIFY != 0 { m |= syscall.FILE_NOTIFY_CHANGE_LAST_WRITE } if mask&sysFSATTRIB != 0 { m |= syscall.FILE_NOTIFY_CHANGE_ATTRIBUTES } if mask&(sysFSMOVE|sysFSCREATE|sysFSDELETE) != 0 { m |= syscall.FILE_NOTIFY_CHANGE_FILE_NAME | syscall.FILE_NOTIFY_CHANGE_DIR_NAME } return m } func toFSnotifyFlags(action uint32) uint64 { switch action { case syscall.FILE_ACTION_ADDED: return sysFSCREATE case syscall.FILE_ACTION_REMOVED: return sysFSDELETE case syscall.FILE_ACTION_MODIFIED: return sysFSMODIFY case syscall.FILE_ACTION_RENAMED_OLD_NAME: return sysFSMOVEDFROM case syscall.FILE_ACTION_RENAMED_NEW_NAME: return sysFSMOVEDTO } return 0 }
{ "pile_set_name": "Github" }
import $ from '$'; import key from 'key'; import { KeyState } from 'Common/Enums'; import { leftPanelDisabled } from 'Common/Globals'; import { settings, inbox } from 'Common/Links'; import { getFolderInboxName } from 'Common/Cache'; import * as Settings from 'Storage/Settings'; import { view, ViewType, setHash, settingsMenuKeysHandler } from 'Knoin/Knoin'; import { AbstractViewNext } from 'Knoin/AbstractViewNext'; @view({ name: 'View/User/Settings/Menu', type: ViewType.Left, templateID: 'SettingsMenu' }) class MenuSettingsUserView extends AbstractViewNext { /** * @param {Object} screen */ constructor(screen) { super(); this.leftPanelDisabled = leftPanelDisabled; this.mobile = Settings.appSettingsGet('mobile'); this.menu = screen.menu; } onBuild(dom) { if (this.mobile) { dom.on('click', '.b-settings-menu .e-item.selectable', () => { leftPanelDisabled(true); }); } key('up, down', KeyState.Settings, settingsMenuKeysHandler($('.b-settings-menu .e-item', dom))); } link(route) { return settings(route); } backToMailBoxClick() { setHash(inbox(getFolderInboxName())); } } export { MenuSettingsUserView, MenuSettingsUserView as default };
{ "pile_set_name": "Github" }
// Copyright 2011-2016 Google LLC // // 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. package com.google.security.zynamics.reil.translators.ppc; import com.google.security.zynamics.reil.ReilInstruction; import com.google.security.zynamics.reil.translators.IInstructionTranslator; import com.google.security.zynamics.reil.translators.ITranslationEnvironment; import com.google.security.zynamics.reil.translators.InternalTranslationException; import com.google.security.zynamics.zylib.disassembly.IInstruction; import java.util.List; public class LfdxTranslator implements IInstructionTranslator { @Override public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException { UnknownGenerator.generate(environment, instruction, instructions, "lfdx"); } }
{ "pile_set_name": "Github" }
# Using Abseil in WebRTC You may use a subset of the utilities provided by the [Abseil][abseil] library when writing WebRTC C++ code. Below, we list the explicitly *allowed* and the explicitly *disallowed* subsets of Abseil; if you find yourself in need of something that isn&rsquo;t in either subset, please add it to the *allowed* subset in this doc in the same CL that adds the first use. [abseil]: https://abseil.io/about/ ## **Allowed** * `absl::InlinedVector` * `absl::WrapUnique` * `absl::optional` and related stuff from `absl/types/optional.h`. * `absl::string_view` * The functions in `absl/strings/ascii.h`, `absl/strings/match.h`, and `absl/strings/str_replace.h`. * `absl::is_trivially_copy_constructible`, `absl::is_trivially_copy_assignable`, and `absl::is_trivially_destructible` from `absl/meta/type_traits.h`. * `absl::variant` and related stuff from `absl/types/variant.h`. * The functions in `absl/algorithm/algorithm.h` and `absl/algorithm/container.h`. * The macros in `absl/base/attributes.h`, `absl/base/config.h` and `absl/base/macros.h`. ## **Disallowed** ### `absl::make_unique` *Use `std::make_unique` instead.* ### `absl::Mutex` *Use `rtc::CriticalSection` instead.* Chromium has a ban on new static initializers, and `absl::Mutex` uses one. To make `absl::Mutex` available, we would need to nicely ask the Abseil team to remove that initializer (like they already did for a spinlock initializer). Additionally, `absl::Mutex` handles time in a way that may not be compatible with the rest of WebRTC. ### `absl::Span` *Use `rtc::ArrayView` instead.* `absl::Span` differs from `rtc::ArrayView` on several points, and both of them differ from the `std::span` that was voted into C++20&mdash;and `std::span` is likely to undergo further changes before C++20 is finalized. We should just keep using `rtc::ArrayView` and avoid `absl::Span` until C++20 is finalized and the Abseil team has decided if they will change `absl::Span` to match. [Bug](https://bugs.webrtc.org/9214). ### `absl::StrCat`, `absl::StrAppend`, `absl::StrJoin`, `absl::StrSplit` *Use `rtc::SimpleStringBuilder` to build strings.* These are optimized for speed, not binary size. Even `StrCat` calls with a modest number of arguments can easily add several hundred bytes to the binary.
{ "pile_set_name": "Github" }
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../../utils/Class'); var CONST = require('../const'); var FileTypesManager = require('../FileTypesManager'); var JSONFile = require('./JSONFile.js'); /** * @classdesc * A single JSON Pack File suitable for loading by the Loader. * * These are created when you use the Phaser.Loader.LoaderPlugin#pack method and are not typically created directly. * * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#pack. * * @class PackFile * @extends Phaser.Loader.File * @memberof Phaser.Loader.FileTypes * @constructor * @since 3.7.0 * * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file. * @param {(string|Phaser.Types.Loader.FileTypes.PackFileConfig)} key - The key to use for this file, or a file configuration object. * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.json`, i.e. if `key` was "alien" then the URL will be "alien.json". * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file. * @param {string} [dataKey] - When the JSON file loads only this property will be stored in the Cache. */ var PackFile = new Class({ Extends: JSONFile, initialize: // url can either be a string, in which case it is treated like a proper url, or an object, in which case it is treated as a ready-made JS Object // dataKey allows you to pluck a specific object out of the JSON and put just that into the cache, rather than the whole thing function PackFile (loader, key, url, xhrSettings, dataKey) { JSONFile.call(this, loader, key, url, xhrSettings, dataKey); this.type = 'packfile'; }, /** * Called automatically by Loader.nextFile. * This method controls what extra work this File does with its loaded data. * * @method Phaser.Loader.FileTypes.PackFile#onProcess * @since 3.7.0 */ onProcess: function () { if (this.state !== CONST.FILE_POPULATED) { this.state = CONST.FILE_PROCESSING; this.data = JSON.parse(this.xhrLoader.responseText); } // Let's pass the pack file data over to the Loader ... this.loader.addPack(this.data, this.config); this.onProcessComplete(); } }); /** * Adds a JSON File Pack, or array of packs, to the current load queue. * * You can call this method from within your Scene's `preload`, along with any other files you wish to load: * * ```javascript * function preload () * { * this.load.pack('level1', 'data/Level1Files.json'); * } * ``` * * A File Pack is a JSON file (or object) that contains details about other files that should be added into the Loader. * Here is a small example: * * ```json * { * "test1": { * "files": [ * { * "type": "image", * "key": "taikodrummaster", * "url": "assets/pics/taikodrummaster.jpg" * }, * { * "type": "image", * "key": "sukasuka-chtholly", * "url": "assets/pics/sukasuka-chtholly.png" * } * ] * }, * "meta": { * "generated": "1401380327373", * "app": "Phaser 3 Asset Packer", * "url": "https://phaser.io", * "version": "1.0", * "copyright": "Photon Storm Ltd. 2018" * } * } * ``` * * The pack can be split into sections. In the example above you'll see a section called `test1. You can tell * the `load.pack` method to parse only a particular section of a pack. The pack is stored in the JSON Cache, * so you can pass it to the Loader to process additional sections as needed in your game, or you can just load * them all at once without specifying anything. * * The pack file can contain an entry for any type of file that Phaser can load. The object structures exactly * match that of the file type configs, and all properties available within the file type configs can be used * in the pack file too. * * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts, * or if it's already running, when the next free load slot becomes available. This happens automatically if you * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued * it means you cannot use the file immediately after calling this method, but must wait for the file to complete. * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been * loaded. * * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details. * * The key must be a unique String. It is used to add the file to the global JSON Cache upon a successful load. * The key should be unique both in terms of files being loaded and files already present in the JSON Cache. * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file * then remove it from the JSON Cache first, before loading a new one. * * Instead of passing arguments you can pass a configuration object, such as: * * ```javascript * this.load.pack({ * key: 'level1', * url: 'data/Level1Files.json' * }); * ``` * * See the documentation for `Phaser.Types.Loader.FileTypes.PackFileConfig` for more details. * * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files * key. For example, if the prefix was `LEVEL1.` and the key was `Waves` the final key will be `LEVEL1.Waves` and * this is what you would use to retrieve the text from the JSON Cache. * * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it. * * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is "data" * and no URL is given then the Loader will set the URL to be "data.json". It will always add `.json` as the extension, although * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL. * * You can also optionally provide a `dataKey` to use. This allows you to extract only a part of the JSON and store it in the Cache, * rather than the whole file. For example, if your JSON data had a structure like this: * * ```json * { * "level1": { * "baddies": { * "aliens": {}, * "boss": {} * } * }, * "level2": {}, * "level3": {} * } * ``` * * And you only wanted to store the `boss` data in the Cache, then you could pass `level1.baddies.boss`as the `dataKey`. * * Note: The ability to load this type of file will only be available if the Pack File type has been built into Phaser. * It is available in the default build but can be excluded from custom builds. * * @method Phaser.Loader.LoaderPlugin#pack * @fires Phaser.Loader.LoaderPlugin#ADD * @since 3.7.0 * * @param {(string|Phaser.Types.Loader.FileTypes.PackFileConfig|Phaser.Types.Loader.FileTypes.PackFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them. * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.json`, i.e. if `key` was "alien" then the URL will be "alien.json". * @param {string} [dataKey] - When the JSON file loads only this property will be stored in the Cache. * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings. * * @return {this} The Loader instance. */ FileTypesManager.register('pack', function (key, url, packKey, xhrSettings) { // Supports an Object file definition in the key argument // Or an array of objects in the key argument // Or a single entry where all arguments have been defined if (Array.isArray(key)) { for (var i = 0; i < key.length; i++) { this.addFile(new PackFile(this, key[i])); } } else { this.addFile(new PackFile(this, key, url, xhrSettings, packKey)); } return this; }); module.exports = PackFile;
{ "pile_set_name": "Github" }
//===--- DiagnosticCrossTU.h - Diagnostics for Cross TU ---------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_DIAGNOSTICCROSSTU_H #define LLVM_CLANG_BASIC_DIAGNOSTICCROSSTU_H #include "clang/Basic/Diagnostic.h" namespace clang { namespace diag { enum { #define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \ SHOWINSYSHEADER, CATEGORY) \ ENUM, #define CROSSTUSTART #include "clang/Basic/DiagnosticCrossTUKinds.inc" #undef DIAG NUM_BUILTIN_CROSSTU_DIAGNOSTICS }; } // end namespace diag } // end namespace clang #endif // LLVM_CLANG_BASIC_DIAGNOSTICCROSSTU_H
{ "pile_set_name": "Github" }
/* term.c */ int set_termname __ARGS((char_u *term)); void set_mouse_termcode __ARGS((int n, char_u *s)); void del_mouse_termcode __ARGS((int n)); void getlinecol __ARGS((long *cp, long *rp)); int add_termcap_entry __ARGS((char_u *name, int force)); int term_is_8bit __ARGS((char_u *name)); int term_is_gui __ARGS((char_u *name)); char_u *tltoa __ARGS((unsigned long i)); void termcapinit __ARGS((char_u *name)); void out_flush __ARGS((void)); void out_flush_check __ARGS((void)); void out_trash __ARGS((void)); void out_char __ARGS((unsigned c)); void out_str_nf __ARGS((char_u *s)); void out_str __ARGS((char_u *s)); void term_windgoto __ARGS((int row, int col)); void term_cursor_right __ARGS((int i)); void term_append_lines __ARGS((int line_count)); void term_delete_lines __ARGS((int line_count)); void term_set_winpos __ARGS((int x, int y)); void term_set_winsize __ARGS((int width, int height)); void term_fg_color __ARGS((int n)); void term_bg_color __ARGS((int n)); void term_settitle __ARGS((char_u *title)); void ttest __ARGS((int pairs)); void add_long_to_buf __ARGS((long_u val, char_u *dst)); void check_shellsize __ARGS((void)); void limit_screen_size __ARGS((void)); void win_new_shellsize __ARGS((void)); void shell_resized __ARGS((void)); void shell_resized_check __ARGS((void)); void set_shellsize __ARGS((int width, int height, int mustset)); void settmode __ARGS((int tmode)); void starttermcap __ARGS((void)); void stoptermcap __ARGS((void)); int did_request_esc_sequence __ARGS((void)); void resume_get_esc_sequence __ARGS((void)); void may_req_termresponse __ARGS((void)); void may_req_ambiguous_char_width __ARGS((void)); int swapping_screen __ARGS((void)); void setmouse __ARGS((void)); int mouse_has __ARGS((int c)); int mouse_model_popup __ARGS((void)); void scroll_start __ARGS((void)); void cursor_on __ARGS((void)); void cursor_off __ARGS((void)); void term_cursor_shape __ARGS((void)); void scroll_region_set __ARGS((win_T *wp, int off)); void scroll_region_reset __ARGS((void)); void clear_termcodes __ARGS((void)); void add_termcode __ARGS((char_u *name, char_u *string, int flags)); char_u *find_termcode __ARGS((char_u *name)); char_u *get_termcode __ARGS((int i)); void del_termcode __ARGS((char_u *name)); void set_mouse_topline __ARGS((win_T *wp)); int check_termcode __ARGS((int max_offset, char_u *buf, int bufsize, int *buflen)); char_u *replace_termcodes __ARGS((char_u *from, char_u **bufp, int from_part, int do_lt, int special)); int find_term_bykeys __ARGS((char_u *src)); void show_termcodes __ARGS((void)); int show_one_termcode __ARGS((char_u *name, char_u *code, int printit)); char_u *translate_mapping __ARGS((char_u *str, int expmap)); void update_tcap __ARGS((int attr)); /* vim: set ft=c : */
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>IDESourceControlProjectFavoriteDictionaryKey</key> <false/> <key>IDESourceControlProjectIdentifier</key> <string>35304396-AEAE-464C-9071-B2AB8799BAF3</string> <key>IDESourceControlProjectName</key> <string>Adding Persons to Groups</string> <key>IDESourceControlProjectOriginsDictionary</key> <dict> <key>FAE4317C0AD339F317935F9863494CB31647F712</key> <string>github.com:vandadnp/iOS-8-Swift-Programming-Cookbook.git</string> </dict> <key>IDESourceControlProjectPath</key> <string>chapter-addressBook/Adding Persons to Groups/Adding Persons to Groups.xcodeproj</string> <key>IDESourceControlProjectRelativeInstallPathDictionary</key> <dict> <key>FAE4317C0AD339F317935F9863494CB31647F712</key> <string>../../../..</string> </dict> <key>IDESourceControlProjectURL</key> <string>github.com:vandadnp/iOS-8-Swift-Programming-Cookbook.git</string> <key>IDESourceControlProjectVersion</key> <integer>111</integer> <key>IDESourceControlProjectWCCIdentifier</key> <string>FAE4317C0AD339F317935F9863494CB31647F712</string> <key>IDESourceControlProjectWCConfigurations</key> <array> <dict> <key>IDESourceControlRepositoryExtensionIdentifierKey</key> <string>public.vcs.git</string> <key>IDESourceControlWCCIdentifierKey</key> <string>FAE4317C0AD339F317935F9863494CB31647F712</string> <key>IDESourceControlWCCName</key> <string>iOS-8-Swift-Programming-Cookbook</string> </dict> </array> </dict> </plist>
{ "pile_set_name": "Github" }
<section> <span>ๅฏ็ป™clearAll()ไผ ๅ…ฅๅ‚ๆ•ฐไปฅๅฎšไน‰ไธๅŒreason</span> <div class="row"> <div class="col-md-6"> <div class="devui-input-group devui-dropdown-origin-wrapper devui-dropdown-origin"> <input class="devui-input devui-form-control" placeholder="y/MM/dd" name="dp" [(ngModel)]="selectedDate2" (focus)="datePicker1.toggle($event)" autocomplete="off" dDatepicker #datePicker1="datepicker" (selectedDateChange)="getValue($event)" [customViewTemplate]="myCustomview" /> <div *ngIf="selectedDate2" class="devui-input-group-addon icon-close-wrapper" (click)="datePicker1.clearAll()"> <i class="icon icon-close"></i> </div> <div class="devui-input-group-addon" (click)="datePicker1.toggle($event)"> <i class="icon icon-calendar"></i> </div> </div> </div> </div> <ng-template #myCustomview let-chooseDate="chooseDate" let-clearAll="clearAll" let-datePicker> <div class="box"> <d-button bsStyle="common" (btnClick)="clearAll(changeReason.button)" bsSize="sm"> ๆธ…้™ค </d-button> <d-button bsStyle="common" (btnClick)="chooseDate(getDay(0))" bsSize="sm"> ไปŠๅคฉ </d-button> </div> </ng-template> </section>
{ "pile_set_name": "Github" }
// Copyright 2016 The Draco Authors. // // 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. // #ifndef DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_WRAP_ENCODING_TRANSFORM_H_ #define DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_WRAP_ENCODING_TRANSFORM_H_ #include "draco/compression/attributes/prediction_schemes/prediction_scheme_wrap_transform_base.h" #include "draco/core/encoder_buffer.h" namespace draco { // PredictionSchemeWrapEncodingTransform wraps input values using the wrapping // scheme described in: prediction_scheme_wrap_transform_base.h . template <typename DataTypeT, typename CorrTypeT = DataTypeT> class PredictionSchemeWrapEncodingTransform : public PredictionSchemeWrapTransformBase<DataTypeT> { public: typedef CorrTypeT CorrType; PredictionSchemeWrapEncodingTransform() {} void Init(const DataTypeT *orig_data, int size, int num_components) { PredictionSchemeWrapTransformBase<DataTypeT>::Init(num_components); // Go over the original values and compute the bounds. if (size == 0) { return; } DataTypeT min_value = orig_data[0]; DataTypeT max_value = min_value; for (int i = 1; i < size; ++i) { if (orig_data[i] < min_value) { min_value = orig_data[i]; } else if (orig_data[i] > max_value) { max_value = orig_data[i]; } } this->set_min_value(min_value); this->set_max_value(max_value); this->InitCorrectionBounds(); } // Computes the corrections based on the input original value and the // predicted value. Out of bound correction values are wrapped around the max // range of input values. inline void ComputeCorrection(const DataTypeT *original_vals, const DataTypeT *predicted_vals, CorrTypeT *out_corr_vals) const { for (int i = 0; i < this->num_components(); ++i) { predicted_vals = this->ClampPredictedValue(predicted_vals); out_corr_vals[i] = original_vals[i] - predicted_vals[i]; // Wrap around if needed. DataTypeT &corr_val = out_corr_vals[i]; if (corr_val < this->min_correction()) { corr_val += this->max_dif(); } else if (corr_val > this->max_correction()) { corr_val -= this->max_dif(); } } } bool EncodeTransformData(EncoderBuffer *buffer) { // Store the input value range as it is needed by the decoder. buffer->Encode(this->min_value()); buffer->Encode(this->max_value()); return true; } }; } // namespace draco #endif // DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_WRAP_ENCODING_TRANSFORM_H_
{ "pile_set_name": "Github" }
pragma solidity ^0.6.0; contract D { receive () external payable { revert("inherited receive"); } }
{ "pile_set_name": "Github" }
# Grid System - Tipo: `leitura` - Formato: `individual` - Duraรงรฃo: `30min` *** ## Objetivos de Aprendizagem - Conhecer e entender a estrutura do *Grid System* e como podemos criar nosso site com ele. ## O que รฉ *Grid System*? Uma das formas mais simples de obter um design organizado รฉ aplicar um *Grid System* (Sistema de Grade). ร‰ uma tรฉcnica que se originou no design grรกfico para impressรฃo de textos. As *grids* (grades) no Web Design Responsivo ajudam a proporcionar uma experiรชncia uniforme em vรกrios dispositivos com diferentes tamanhos de tela. O sistema de grade ajuda a alinhar elementos de pรกgina com base em colunas e linhas sequenciadas. Usamos essa estrutura baseada em colunas para colocar texto, imagens e funรงรตes de forma consistente em todo o design. Cada elemento tem o seu lugar que podemos ver instantaneamente e reproduzir em outro lugar. ![Grid](https://camo.githubusercontent.com/1a3e525985d883b828432c55f65c608b4921feff/687474703a2f2f746573742e76697369746e6f727761792e6f72672f77702d636f6e74656e742f75706c6f6164732f73697465732f322f323031332f30322f477269645f332e706e67) Como mencionamos, uma *grid* geralmente consiste em *containers* (contรชineres), *rows* (linhas), *columns* (colunas) e *gutters* (calhas). ![Grid](https://camo.githubusercontent.com/c11e6c49f2117fbfad0f32669953e9e7b28f2633/68747470733a2f2f6d646e2e6d6f7a696c6c6164656d6f732e6f72672f66696c65732f31333839392f677269642e706e67) ## Elementos do *Grid System* - Container ![Container](https://camo.githubusercontent.com/4c3d277ab34ed1268ee73fd906924921c33672c0/687474703a2f2f6a346e2e636f2f636f6e74656e742f342d626c6f672f31312d4372656174696e672d796f75722d6f776e2d6373732d677269642d73797374656d2f636f6e7461696e65722e706e67) O objetivo do *container* รฉ estabelecer a largura de toda a *grid*. A largura do *container* รฉ geralmente 100%, mas vocรช tambรฉm pode querer definir uma largura mรกxima para telas maiores. - Row ![Row](https://camo.githubusercontent.com/adb0ba784b72c8adab3c466743eb338d443bdcdb/687474703a2f2f6a346e2e636f2f636f6e74656e742f342d626c6f672f31312d4372656174696e672d796f75722d6f776e2d6373732d677269642d73797374656d2f726f772e706e67) O objetivo de *row* รฉ impedir que as colunas dentro dela ultrapassem outras *rows*. - Columns ![Columns](https://camo.githubusercontent.com/2725351b07c403c1e3d56597e2b7f0dfe29f8e84/687474703a2f2f6a346e2e636f2f636f6e74656e742f342d626c6f672f31312d4372656174696e672d796f75722d6f776e2d6373732d677269642d73797374656d2f636f6c756d6e2e706e67) O objetivo de *columns* รฉ conter os elementos que queremos exibir em nosso sรญtio web. - Gutters ![Gutters](https://camo.githubusercontent.com/c73f70a89038801b38159cbf37666dec199c5d0c/687474703a2f2f6a346e2e636f2f636f6e74656e742f342d626c6f672f31312d4372656174696e672d796f75722d6f776e2d6373732d677269642d73797374656d2f636f6c756d6e2d677574746572732e706e67) Os *gutters* sรฃo os espaรงos entre as *columns* (colunas). *** ## Material complementar Se vocรช quiser entender um pouco mais como funcionam as *grids*, leia este [artigo](https://medium.com/@antonellaweyler/grid-system-e-seus-layouts-6cdf653943ba).
{ "pile_set_name": "Github" }
// Massgate // Copyright (C) 2017 Ubisoft Entertainment // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. #ifndef MMG_RANKPROTOCOL_H #define MMG_RANKPROTOCOL_H #include "MN_WriteMessage.h" #include "MN_ReadMessage.h" class MMG_RankProtocol { public: class LeftNextRankReq { public: void ToStream(MN_WriteMessage& theStream) const; bool FromStream(MN_ReadMessage& theStream); }; class LeftNextRankRsp { public: void ToStream(MN_WriteMessage& theStream) const; bool FromStream(MN_ReadMessage& theStream); unsigned int nextRank; unsigned int scoreNeeded; unsigned int ladderPercentageNeeded; }; }; #endif
{ "pile_set_name": "Github" }
package org.tuxdevelop.spring.batch.lightmin.client.listener; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; import org.mockito.junit.MockitoJUnitRunner; import org.springframework.batch.core.ExitStatus; import org.springframework.batch.core.JobExecution; import org.springframework.batch.core.JobInstance; import org.springframework.boot.test.context.SpringBootTest; import org.tuxdevelop.spring.batch.lightmin.api.resource.monitoring.JobExecutionEventInfo; import org.tuxdevelop.spring.batch.lightmin.client.publisher.RemoteJobExecutionEventPublisher; import org.tuxdevelop.spring.batch.lightmin.client.publisher.RemoteStepExecutionEventPublisher; import org.tuxdevelop.spring.batch.lightmin.event.JobExecutionEvent; import static org.mockito.Mockito.any; @RunWith(MockitoJUnitRunner.class) @SpringBootTest() public class OnJobExecutionFinishedEventListenerTest { private OnJobExecutionFinishedEventListener onJobExecutionFinishedEventListener; @Mock private RemoteJobExecutionEventPublisher jobExecutionEventPublisher; @Mock private RemoteStepExecutionEventPublisher remoteStepExecutionEventPublisher; @Test public void testOnApplicationEventJobExecution() { final JobInstance instance = new JobInstance(1L, "testJob"); final JobExecution jobExecution = new JobExecution(1L); jobExecution.setJobInstance(instance); jobExecution.setExitStatus(ExitStatus.COMPLETED); final JobExecutionEvent jobExecutionEvent = new JobExecutionEvent(jobExecution, "testApplication"); this.onJobExecutionFinishedEventListener.onApplicationEvent(jobExecutionEvent); Mockito.verify(this.jobExecutionEventPublisher, Mockito.times(1)) .publishEvent(any(JobExecutionEventInfo.class)); } @Before public void init() { MockitoAnnotations.initMocks(this); this.onJobExecutionFinishedEventListener = new OnJobExecutionFinishedEventListener(this.jobExecutionEventPublisher, this.remoteStepExecutionEventPublisher); } }
{ "pile_set_name": "Github" }
/* Belarusian initialisation for the jQuery UI date picker plugin. */ /* Written by Pavel Selitskas <p.selitskas@gmail.com> */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "../datepicker" ], factory ); } else { // Browser globals factory( jQuery.datepicker ); } }(function( datepicker ) { datepicker.regional['be'] = { closeText: 'ะ—ะฐั‡ั‹ะฝั–ั†ัŒ', prevText: '&larr;ะŸะฐะฟัั€.', nextText: 'ะะฐัั‚.&rarr;', currentText: 'ะกั‘ะฝัŒะฝั', monthNames: ['ะกั‚ัƒะดะทะตะฝัŒ','ะ›ัŽั‚ั‹','ะกะฐะบะฐะฒั–ะบ','ะšั€ะฐัะฐะฒั–ะบ','ะขั€ะฐะฒะตะฝัŒ','ะงัั€ะฒะตะฝัŒ', 'ะ›ั–ะฟะตะฝัŒ','ะ–ะฝั–ะฒะตะฝัŒ','ะ’ะตั€ะฐัะตะฝัŒ','ะšะฐัั‚ั€ั‹ั‡ะฝั–ะบ','ะ›ั–ัั‚ะฐะฟะฐะด','ะกัŒะฝะตะถะฐะฝัŒ'], monthNamesShort: ['ะกั‚ัƒ','ะ›ัŽั‚','ะกะฐะบ','ะšั€ะฐ','ะขั€ะฐ','ะงัั€', 'ะ›ั–ะฟ','ะ–ะฝั–','ะ’ะตั€','ะšะฐั','ะ›ั–ั','ะกัŒะฝ'], dayNames: ['ะฝัะดะทะตะปั','ะฟะฐะฝัะดะทะตะปะฐะบ','ะฐัžั‚ะพั€ะฐะบ','ัะตั€ะฐะดะฐ','ั‡ะฐั†ัŒะฒะตั€','ะฟัั‚ะฝั–ั†ะฐ','ััƒะฑะพั‚ะฐ'], dayNamesShort: ['ะฝะดะท','ะฟะฝะด','ะฐัžั‚','ัั€ะด','ั‡ั†ะฒ','ะฟั‚ะฝ','ัะฑั‚'], dayNamesMin: ['ะะด','ะŸะฝ','ะัž','ะกั€','ะงั†','ะŸั‚','ะกะฑ'], weekHeader: 'ะขะด', dateFormat: 'dd.mm.yy', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; datepicker.setDefaults(datepicker.regional['be']); return datepicker.regional['be']; }));
{ "pile_set_name": "Github" }
<script type="text/template"> <header class="label-box-editor-button"> <h3 class="headline-3">Labels</h3> <% if ($("body").data("username")) { %> <span class="js-Issue-categoryEditor"> <button class="nav-button nav-link icon right js-CategoryEditorLauncher js-LabelEditorLauncher" aria-label="Edit labels"> <svg class="nav-text icon nav-icon" viewBox="0 0 30 30" role="presentation" aria-hidden="true"> <use xlink:href="#svg-sliders" /> </svg> </button> </span> <% } %> </header> <div class="js-Category-list"> <% _.each(data.labels, function(label) { %> <span class="label label-<%= label.remoteName %> js-Label"> <%= label.name %> </span> <% }); %> </div> </script>
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. */ package org.apache.camel.component.telegram; import org.apache.camel.EndpointInject; import org.apache.camel.Exchange; import org.apache.camel.RoutesBuilder; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.component.telegram.model.IncomingMessage; import org.apache.camel.component.telegram.model.IncomingPhotoSize; import org.apache.camel.component.telegram.model.IncomingVideo; import org.apache.camel.component.telegram.util.TelegramMockRoutes; import org.apache.camel.component.telegram.util.TelegramTestSupport; import org.apache.camel.component.telegram.util.TelegramTestUtil; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; /** * Tests the reception of messages without text having media content. */ public class TelegramConsumerMediaVideoTest extends TelegramTestSupport { @EndpointInject("mock:telegram") private MockEndpoint endpoint; @Test public void testReceptionOfAMessageWithAVideo() throws Exception { endpoint.expectedMinimumMessageCount(1); endpoint.assertIsSatisfied(5000); Exchange mediaExchange = endpoint.getExchanges().get(0); IncomingMessage msg = mediaExchange.getIn().getBody(IncomingMessage.class); IncomingVideo video = msg.getVideo(); assertNotNull(video); assertEquals(Integer.valueOf(2), video.getDurationSeconds()); assertEquals(Integer.valueOf(360), video.getHeight()); assertEquals(Integer.valueOf(640), video.getWidth()); assertEquals(Long.valueOf(299284), video.getFileSize()); assertEquals("BAADBAADAgADyzvwCC7_4AyvdAXXXX", video.getFileId()); IncomingPhotoSize thumb = video.getThumb(); assertNotNull(thumb); } @Override protected RoutesBuilder[] createRouteBuilders() throws Exception { return new RoutesBuilder[] { getMockRoutes(), new RouteBuilder() { @Override public void configure() throws Exception { from("telegram:bots?authorizationToken=mock-token") .to("mock:telegram"); } } }; } @Override protected TelegramMockRoutes createMockRoutes() { return new TelegramMockRoutes(port) .addEndpoint( "getUpdates", "GET", String.class, TelegramTestUtil.stringResource("messages/updates-media-video.json"), TelegramTestUtil.stringResource("messages/updates-empty.json")); } }
{ "pile_set_name": "Github" }
github "AliSoftware/OHHTTPStubs" "57feceaabf333e72b2c637dfba6c13a7a5c49619"
{ "pile_set_name": "Github" }
/* * \brief Mutex-guarded allocator interface * \author Norman Feske * \author Stefan Kalkowski * \date 2008-08-05 */ /* * Copyright (C) 2008-2020 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ #ifndef _INCLUDE__BASE__SYNCED_ALLOCATOR_H_ #define _INCLUDE__BASE__SYNCED_ALLOCATOR_H_ #include <base/allocator.h> #include <base/synced_interface.h> namespace Genode { template <typename> class Synced_allocator; } /** * Mutex-guarded allocator * * This class wraps the complete 'Allocator' interface while * preventing concurrent calls to the wrapped allocator implementation. * * \param ALLOC class implementing the 'Allocator' interface */ template <typename ALLOC> class Genode::Synced_allocator : public Allocator { private: Mutex _mutex { }; ALLOC _alloc; Synced_interface<ALLOC, Mutex> _synced_object; public: using Guard = typename Synced_interface<ALLOC, Mutex>::Guard; template <typename... ARGS> Synced_allocator(ARGS &&... args) : _alloc(args...), _synced_object(_mutex, &_alloc) { } Guard operator () () { return _synced_object(); } Guard operator () () const { return _synced_object(); } /************************* ** Allocator interface ** *************************/ bool alloc(size_t size, void **out_addr) override { return _synced_object()->alloc(size, out_addr); } void free(void *addr, size_t size) override { _synced_object()->free(addr, size); } size_t consumed() const override { return _synced_object()->consumed(); } size_t overhead(size_t size) const override { return _synced_object()->overhead(size); } bool need_size_for_free() const override { return _synced_object()->need_size_for_free(); } }; #endif /* _INCLUDE__BASE__SYNCED_ALLOCATOR_H_ */
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!-- /* ** Copyright 2016, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You my 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. */ --> <!-- These resources are around just to allow their values to be customized for different hardware and product builds. --> <resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string-array name="wfcOperatorErrorAlertMessages"> <item msgid="3017901214286816293">"Wi-Fi เท„เถปเท„เท เถ‡เถธเถญเท”เถธเทŠ เทƒเท’เถฏเท” เถšเท’เถปเท“เถธเถง เทƒเท„ เถดเถซเท’เท€เท’เถฉ เถบเทเท€เท“เถธเถง, เถดเท…เถธเท”เท€ เถธเท™เถธ เทƒเทšเท€เทเท€ เถดเท’เท„เท’เถงเท”เท€เถฑ เถฝเท™เทƒ เถ”เถถเทš เท€เทเท„เถšเถบเท™เถฑเทŠ เถ‰เถฝเทŠเถฝเถฑเทŠเถฑ. เถ…เถฑเถญเท”เถปเท”เท€ เทƒเทเถšเทƒเท“เถธเทŠ เท€เท™เถญเท’เถฑเทŠ Wi-Fi เถ‡เถธเถญเท”เถธ เถฑเทเท€เถญ เถšเทŠโ€เถปเท’เถบเทเถญเทŠเถธเถš เถšเถปเถฑเทŠเถฑ."</item> </string-array> <string-array name="wfcOperatorErrorNotificationMessages"> <item msgid="7068215934335709161">"เถ”เถถเถœเทš เท€เทเท„เถšเถบ เทƒเถธเถŸ เถฝเท’เถบเทเถดเถฏเท’เถ‚เถ เท’ เท€เถฑเทŠเถฑ"</item> </string-array> <string name="wfcSpnFormat" msgid="2031160810542298336">"%s Wi-Fi เถ…เถธเถญเถธเท’เถฑเทŠ"</string> </resources>
{ "pile_set_name": "Github" }
" Vim filetype plugin file " Language: Django HTML template " Maintainer: Dave Hodder <dmh@dmh.org.uk> " Last Change: 2007 Jan 25 " Only use this filetype plugin when no other was loaded. if exists("b:did_ftplugin") finish endif " Use HTML and Django template ftplugins. runtime! ftplugin/html.vim runtime! ftplugin/django.vim
{ "pile_set_name": "Github" }
# MongoDB - Aula 04 - Exercรญcio autor: Diego Ferreira ##1. Adicionar 2 ataques ao mesmo tempo para os seguintes pokemons, pikachu, squirtle, Bulbassauro e Charmander. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = { $or: [{ name: /pikachu/i}, {name: /squirtle/i}, {name: /bulbasaur/i}, {name: /charmander/i }] } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> query { "$or": [ { "name": /pikachu/i }, { "name": /squirtle/i }, { "name": /bulbasaur/i }, { "name": /charmander/i } ] } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var mod = {$set: {'moves': ['furacao 2000', 'bola de fogo']}} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> mod { "$set": { "moves": [ "furacao 2000", "bola de fogo" ] } } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var options = {multi: true} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.update(query, mod, options) Updated 4 existing record(s) in 6ms WriteResult({ "nMatched": 4, "nUpserted": 0, "nModified": 4 }) Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) { "_id": ObjectId("5643bc001ab2c09858ea975d"), "name": "Pikachu", "description": "Pikachu usa eletricidade como forca. Amigo fiel do Ash", "attack": 55, "defense": 40, "height": 0.4, "moves": [ "furacao 2000", "bola de fogo" ] } { "_id": ObjectId("564d1788a7190dd16904f211"), "name": "Squirtle", "description": "Squirtle's shell is not merely used for protection. The shell's rounded shape and the grooves on its surface help minimize resistance in water, enabling this Pokรฉmon to swim at high speeds.", "type": "water", "attack": 48, "defense": 65, "height": 0.5, "moves": [ "furacao 2000", "bola de fogo" ] } { "_id": ObjectId("564d17d5a7190dd16904f212"), "name": "Charmander", "description": "The flame that burns at the tip of its tail is an indication of its emotions. The flame wavers when Charmander is enjoying itself. If the Pokรฉmon becomes enraged, the flame burns fiercely.", "type": "fire", "attack": 52, "defense": 43, "height": 0.6, "moves": [ "furacao 2000", "bola de fogo" ] } { "_id": ObjectId("564d17efa7190dd16904f213"), "name": "Bulbasaur", "description": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.", "type": "grass", "attack": 49, "defense": 49, "height": 0.7, "moves": [ "furacao 2000", "bola de fogo" ] } Fetched 4 record(s) in 27ms ``` ##2. Adicionar 1 movimento em todos os pokemons: 'desvio'. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = {} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var mod = { $push: {moves:"desvio"}} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var options = {multi: true} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.update(query,mod,options) Updated 9 existing record(s) in 10ms WriteResult({ "nMatched": 9, "nUpserted": 0, "nModified": 9 }) ``` ##3. Adicionar o pokemon 'AindaNaoExisteMon' caso ele nao exista com todos os dados com o valor 'null' e a descricao: 'Sem maiores informacoes'. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = {name: /AindaNaoExisteMon/i} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var mod = { $set: { active: true }, $setOnInsert: { name: "AindaNaoExisteMon", attack: null, defense: null, height: null, moves: [], description: 'sem maiores informaรงรตes' } } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var options = {upsert: true} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.update(query, mod, options) Updated 1 new record(s) in 8ms WriteResult({ "nMatched": 0, "nUpserted": 1, "nModified": 0, "_id": ObjectId("564d1ff457ad618a8e0afb53") { "_id": ObjectId("564d1ff457ad618a8e0afb53"), "active": true, "name": "AindaNaoExisteMon", "attack": null, "defense": null, "height": null, "moves": [ ], "description": "sem maiores informaรงรตes" } ``` ##4. Pesquisar todos os pokemons que possuam o ataque 'investida' e mais um que voce adicionou, escolha seu pokemon favorito. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = {'moves': { $all: ['investida', 'desvio'] }} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) { "_id": ObjectId("5643bc5e1ab2c09858ea975e"), "name": "Gurdurr", "description": "With strengthened bodies, they skillfully wield steel beams to take down buildings. ", "attack": 105, "defense": 85, "height": 12, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643bce81ab2c09858ea975f"), "name": "Charizard", "description": "Charizard flies around the sky in search of powerful opponents.", "attack": 84, "defense": 78, "height": 17, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("564a6cd083ff67e1fa450081"), "name": "Testemon", "attack": 8000, "defense": 8000, "height": 2.1, "description": "pokemon de teste", "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643b9421ab2c09858ea975c"), "name": "Charmeleon", "description": "Charmeleon mercilessly destroys its foes using its sharp claws. If it encounters a strong foe, it turns agressive.", "attack": 64, "defense": 58, "height": 11, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643bd581ab2c09858ea9760"), "name": "Sawk", "description": "Desiring the strongest karate chop, they seclude themselves in mountains and train without sleeping.", "attack": 125, "defense": 75, "height": 14, "moves": [ "investida", "desvio" ] } Fetched 5 record(s) in 3ms ``` ##5. Pesquisar todos os pokemons que possuam os ataques que voce adicionou, escolha seu pokemon favorito. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = { moves: { $all: [ 'furacao 2000','bola de fogo' ] } } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) { "_id": ObjectId("564d1788a7190dd16904f211"), "name": "Squirtle", "description": "Squirtle's shell is not merely used for protection. The shell's rounded shape and the grooves on its surface help minimize resistance in water, enabling this Pokรฉmon to swim at high speeds.", "type": "water", "attack": 48, "defense": 65, "height": 0.5, "moves": [ "furacao 2000", "bola de fogo", "desvio" ] } { "_id": ObjectId("564d17d5a7190dd16904f212"), "name": "Charmander", "description": "The flame that burns at the tip of its tail is an indication of its emotions. The flame wavers when Charmander is enjoying itself. If the Pokรฉmon becomes enraged, the flame burns fiercely.", "type": "fire", "attack": 52, "defense": 43, "height": 0.6, "moves": [ "furacao 2000", "bola de fogo", "desvio" ] } { "_id": ObjectId("564d17efa7190dd16904f213"), "name": "Bulbasaur", "description": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.", "type": "grass", "attack": 49, "defense": 49, "height": 0.7, "moves": [ "furacao 2000", "bola de fogo", "desvio" ] } Fetched 3 record(s) in 3ms ``` ##6. Pesquisar todos os pokemons que nao sao do tipo 'eletrico'. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = {type : "eletric"} Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) { "_id": ObjectId("5643bc001ab2c09858ea975d"), "name": "Pikachu", "description": "Pikachu usa eletricidade como forca. Amigo fiel do Ash", "attack": 55, "defense": 40, "height": 0.4, "moves": [ "desvio" ], "type": "eletric" } { "_id": ObjectId("5643bd581ab2c09858ea9760"), "name": "Sawk", "description": "Desiring the strongest karate chop, they seclude themselves in mountains and train without sleeping.", "attack": 125, "defense": 75, "height": 14, "moves": [ "investida", "desvio" ], "type": "eletric" } Fetched 2 record(s) in 5ms ``` ##7. Pesquisar todos os pokemons que tenha o ataque 'investida' E tenham a defesa nao menor ou igual a 49. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = { $and: [ { moves: 'investida' }, { defense: { $gte: 49 } } ] } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) { "_id": ObjectId("5643bc5e1ab2c09858ea975e"), "name": "Gurdurr", "description": "With strengthened bodies, they skillfully wield steel beams to take down buildings. ", "attack": 105, "defense": 85, "height": 12, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643bce81ab2c09858ea975f"), "name": "Charizard", "description": "Charizard flies around the sky in search of powerful opponents.", "attack": 84, "defense": 78, "height": 17, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("564a6cd083ff67e1fa450081"), "name": "Testemon", "attack": 8000, "defense": 8000, "height": 2.1, "description": "pokemon de teste", "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643b9421ab2c09858ea975c"), "name": "Charmeleon", "description": "Charmeleon mercilessly destroys its foes using its sharp claws. If it encounters a strong foe, it turns agressive.", "attack": 64, "defense": 58, "height": 11, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643bd581ab2c09858ea9760"), "name": "Sawk", "description": "Desiring the strongest karate chop, they seclude themselves in mountains and train without sleeping.", "attack": 125, "defense": 75, "height": 14, "moves": [ "investida", "desvio" ], "type": "eletric" } Fetched 5 record(s) in 4ms ``` ##8. Remova todos os pokemons do tipo agua e com attack menor que 50. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = { $and: [ { type: "water" }, { attack: { $lte: 50 } } ] } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) { "_id": ObjectId("564d1788a7190dd16904f211"), "name": "Squirtle", "description": "Squirtle's shell is not merely used for protection. The shell's rounded shape and the grooves on its surface help minimize resistance in water, enabling this Pokรฉmon to swim at high speeds.", "type": "water", "attack": 48, "defense": 65, "height": 0.5, "moves": [ "furacao 2000", "bola de fogo", "desvio" ] } Fetched 1 record(s) in 2ms Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.remove(query) Removed 1 record(s) in 11ms WriteResult({ "nRemoved": 1 }) ``` ##9.9. Esse item nรฃo estรก no vรญdeo e se vocรช fizer significa que vocรช lรช as coisas, nesse exercรญcio demonstre qual a diferenรงa entre os operadores `$ne` e `$not`. $ne -> $ne รฉ operador not equals. Este operador retorna o elemento se o valor nรฃo for igual ao valor passado. Ex.: { type : { $ne : "fire"} } // retornara os pokemons que tiverem o campo diferente de fire. Exemplo uso $ne: ``` ir-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = { type : { $ne : "fire"} } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) { "_id": ObjectId("5643bc001ab2c09858ea975d"), "name": "Pikachu", "description": "Pikachu usa eletricidade como forca. Amigo fiel do Ash", "attack": 55, "defense": 40, "height": 0.4, "moves": [ "desvio" ], "type": "eletric" } { "_id": ObjectId("5643bc5e1ab2c09858ea975e"), "name": "Gurdurr", "description": "With strengthened bodies, they skillfully wield steel beams to take down buildings. ", "attack": 105, "defense": 85, "height": 12, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643bce81ab2c09858ea975f"), "name": "Charizard", "description": "Charizard flies around the sky in search of powerful opponents.", "attack": 84, "defense": 78, "height": 17, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("564a6cd083ff67e1fa450081"), "name": "Testemon", "attack": 8000, "defense": 8000, "height": 2.1, "description": "pokemon de teste", "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643b9421ab2c09858ea975c"), "name": "Charmeleon", "description": "Charmeleon mercilessly destroys its foes using its sharp claws. If it encounters a strong foe, it turns agressive.", "attack": 64, "defense": 58, "height": 11, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("564d17efa7190dd16904f213"), "name": "Bulbasaur", "description": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.", "type": "grass", "attack": 49, "defense": 49, "height": 0.7, "moves": [ "furacao 2000", "bola de fogo", "desvio" ] } { "_id": ObjectId("5643bd581ab2c09858ea9760"), "name": "Sawk", "description": "Desiring the strongest karate chop, they seclude themselves in mountains and train without sleeping.", "attack": 125, "defense": 75, "height": 14, "moves": [ "investida", "desvio" ], "type": "eletric" } { "_id": ObjectId("564d1ff457ad618a8e0afb53"), "active": true, "name": "AindaNaoExisteMon", "attack": null, "defense": null, "height": null, "moves": [ ], "description": "sem maiores informaรงรตes" } Fetched 8 record(s) in 8ms ``` Obs.: Diferente dos outros operadoes o operador $ne nรฃo aceira RegEx como valor do campo a ser pesquisado. Ex.: { type : { $ne : /fire/i} } // retorna erro ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = { type : { $ne : /fire/i} } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) Error: error: { "$err": "Can't canonicalize query: BadValue Can't have regex as arg to $ne.", "code": 17287 } ``` $not -> O operador $not, por sua vez jรก aceira RegEx porรฉm o mesmo trabalha retornado o objeto que nรฃo satisfaz a condiรงรฃo do campo. ``` Air-de-Diego(mongod-3.0.7) be-mean-pokemons> var query = {type: { $not : /fire/i } } Air-de-Diego(mongod-3.0.7) be-mean-pokemons> db.pokemons.find(query) { "_id": ObjectId("5643bc001ab2c09858ea975d"), "name": "Pikachu", "description": "Pikachu usa eletricidade como forca. Amigo fiel do Ash", "attack": 55, "defense": 40, "height": 0.4, "moves": [ "desvio" ], "type": "eletric" } { "_id": ObjectId("5643bc5e1ab2c09858ea975e"), "name": "Gurdurr", "description": "With strengthened bodies, they skillfully wield steel beams to take down buildings. ", "attack": 105, "defense": 85, "height": 12, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643bce81ab2c09858ea975f"), "name": "Charizard", "description": "Charizard flies around the sky in search of powerful opponents.", "attack": 84, "defense": 78, "height": 17, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("564a6cd083ff67e1fa450081"), "name": "Testemon", "attack": 8000, "defense": 8000, "height": 2.1, "description": "pokemon de teste", "moves": [ "investida", "desvio" ] } { "_id": ObjectId("5643b9421ab2c09858ea975c"), "name": "Charmeleon", "description": "Charmeleon mercilessly destroys its foes using its sharp claws. If it encounters a strong foe, it turns agressive.", "attack": 64, "defense": 58, "height": 11, "moves": [ "investida", "desvio" ] } { "_id": ObjectId("564d17efa7190dd16904f213"), "name": "Bulbasaur", "description": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.", "type": "grass", "attack": 49, "defense": 49, "height": 0.7, "moves": [ "furacao 2000", "bola de fogo", "desvio" ] } { "_id": ObjectId("5643bd581ab2c09858ea9760"), "name": "Sawk", "description": "Desiring the strongest karate chop, they seclude themselves in mountains and train without sleeping.", "attack": 125, "defense": 75, "height": 14, "moves": [ "investida", "desvio" ], "type": "eletric" } { "_id": ObjectId("564d1ff457ad618a8e0afb53"), "active": true, "name": "AindaNaoExisteMon", "attack": null, "defense": null, "height": null, "moves": [ ], "description": "sem maiores informaรงรตes" } Fetched 8 record(s) in 4ms ``` Ou seja, basicamente a diferenรงa entre eles esta no uso ou nรฃo de REGEX e o $ne retorna objetos que satisfaรงam a condiรงรฃo e o $not objetos que nรฃo satisfaรงam a condiรงรฃo.
{ "pile_set_name": "Github" }
/* * Copyright (c) 2016 MediaTek Inc. * Author: Chen Zhong <chen.zhong@mediatek.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/mfd/mt6397/core.h> #include <linux/mfd/mt6323/registers.h> #include <linux/regulator/driver.h> #include <linux/regulator/machine.h> #include <linux/regulator/mt6323-regulator.h> #include <linux/regulator/of_regulator.h> #define MT6323_LDO_MODE_NORMAL 0 #define MT6323_LDO_MODE_LP 1 /* * MT6323 regulators' information * * @desc: standard fields of regulator description. * @qi: Mask for query enable signal status of regulators * @vselon_reg: Register sections for hardware control mode of bucks * @vselctrl_reg: Register for controlling the buck control mode. * @vselctrl_mask: Mask for query buck's voltage control mode. */ struct mt6323_regulator_info { struct regulator_desc desc; u32 qi; u32 vselon_reg; u32 vselctrl_reg; u32 vselctrl_mask; u32 modeset_reg; u32 modeset_mask; }; #define MT6323_BUCK(match, vreg, min, max, step, volt_ranges, enreg, \ vosel, vosel_mask, voselon, vosel_ctrl) \ [MT6323_ID_##vreg] = { \ .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ .ops = &mt6323_volt_range_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6323_ID_##vreg, \ .owner = THIS_MODULE, \ .n_voltages = (max - min)/step + 1, \ .linear_ranges = volt_ranges, \ .n_linear_ranges = ARRAY_SIZE(volt_ranges), \ .vsel_reg = vosel, \ .vsel_mask = vosel_mask, \ .enable_reg = enreg, \ .enable_mask = BIT(0), \ }, \ .qi = BIT(13), \ .vselon_reg = voselon, \ .vselctrl_reg = vosel_ctrl, \ .vselctrl_mask = BIT(1), \ } #define MT6323_LDO(match, vreg, ldo_volt_table, enreg, enbit, vosel, \ vosel_mask, _modeset_reg, _modeset_mask) \ [MT6323_ID_##vreg] = { \ .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ .ops = &mt6323_volt_table_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6323_ID_##vreg, \ .owner = THIS_MODULE, \ .n_voltages = ARRAY_SIZE(ldo_volt_table), \ .volt_table = ldo_volt_table, \ .vsel_reg = vosel, \ .vsel_mask = vosel_mask, \ .enable_reg = enreg, \ .enable_mask = BIT(enbit), \ }, \ .qi = BIT(15), \ .modeset_reg = _modeset_reg, \ .modeset_mask = _modeset_mask, \ } #define MT6323_REG_FIXED(match, vreg, enreg, enbit, volt, \ _modeset_reg, _modeset_mask) \ [MT6323_ID_##vreg] = { \ .desc = { \ .name = #vreg, \ .of_match = of_match_ptr(match), \ .ops = &mt6323_volt_fixed_ops, \ .type = REGULATOR_VOLTAGE, \ .id = MT6323_ID_##vreg, \ .owner = THIS_MODULE, \ .n_voltages = 1, \ .enable_reg = enreg, \ .enable_mask = BIT(enbit), \ .min_uV = volt, \ }, \ .qi = BIT(15), \ .modeset_reg = _modeset_reg, \ .modeset_mask = _modeset_mask, \ } static const struct regulator_linear_range buck_volt_range1[] = { REGULATOR_LINEAR_RANGE(700000, 0, 0x7f, 6250), }; static const struct regulator_linear_range buck_volt_range2[] = { REGULATOR_LINEAR_RANGE(1400000, 0, 0x7f, 12500), }; static const struct regulator_linear_range buck_volt_range3[] = { REGULATOR_LINEAR_RANGE(500000, 0, 0x3f, 50000), }; static const u32 ldo_volt_table1[] = { 3300000, 3400000, 3500000, 3600000, }; static const u32 ldo_volt_table2[] = { 1500000, 1800000, 2500000, 2800000, }; static const u32 ldo_volt_table3[] = { 1800000, 3300000, }; static const u32 ldo_volt_table4[] = { 3000000, 3300000, }; static const u32 ldo_volt_table5[] = { 1200000, 1300000, 1500000, 1800000, 2000000, 2800000, 3000000, 3300000, }; static const u32 ldo_volt_table6[] = { 1200000, 1300000, 1500000, 1800000, 2500000, 2800000, 3000000, 2000000, }; static const u32 ldo_volt_table7[] = { 1200000, 1300000, 1500000, 1800000, }; static const u32 ldo_volt_table8[] = { 1800000, 3000000, }; static const u32 ldo_volt_table9[] = { 1200000, 1350000, 1500000, 1800000, }; static const u32 ldo_volt_table10[] = { 1200000, 1300000, 1500000, 1800000, }; static int mt6323_get_status(struct regulator_dev *rdev) { int ret; u32 regval; struct mt6323_regulator_info *info = rdev_get_drvdata(rdev); ret = regmap_read(rdev->regmap, info->desc.enable_reg, &regval); if (ret != 0) { dev_err(&rdev->dev, "Failed to get enable reg: %d\n", ret); return ret; } return (regval & info->qi) ? REGULATOR_STATUS_ON : REGULATOR_STATUS_OFF; } static int mt6323_ldo_set_mode(struct regulator_dev *rdev, unsigned int mode) { int ret, val = 0; struct mt6323_regulator_info *info = rdev_get_drvdata(rdev); if (!info->modeset_mask) { dev_err(&rdev->dev, "regulator %s doesn't support set_mode\n", info->desc.name); return -EINVAL; } switch (mode) { case REGULATOR_MODE_STANDBY: val = MT6323_LDO_MODE_LP; break; case REGULATOR_MODE_NORMAL: val = MT6323_LDO_MODE_NORMAL; break; default: return -EINVAL; } val <<= ffs(info->modeset_mask) - 1; ret = regmap_update_bits(rdev->regmap, info->modeset_reg, info->modeset_mask, val); return ret; } static unsigned int mt6323_ldo_get_mode(struct regulator_dev *rdev) { unsigned int val; unsigned int mode; int ret; struct mt6323_regulator_info *info = rdev_get_drvdata(rdev); if (!info->modeset_mask) { dev_err(&rdev->dev, "regulator %s doesn't support get_mode\n", info->desc.name); return -EINVAL; } ret = regmap_read(rdev->regmap, info->modeset_reg, &val); if (ret < 0) return ret; val &= info->modeset_mask; val >>= ffs(info->modeset_mask) - 1; if (val & 0x1) mode = REGULATOR_MODE_STANDBY; else mode = REGULATOR_MODE_NORMAL; return mode; } static const struct regulator_ops mt6323_volt_range_ops = { .list_voltage = regulator_list_voltage_linear_range, .map_voltage = regulator_map_voltage_linear_range, .set_voltage_sel = regulator_set_voltage_sel_regmap, .get_voltage_sel = regulator_get_voltage_sel_regmap, .set_voltage_time_sel = regulator_set_voltage_time_sel, .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = regulator_is_enabled_regmap, .get_status = mt6323_get_status, }; static const struct regulator_ops mt6323_volt_table_ops = { .list_voltage = regulator_list_voltage_table, .map_voltage = regulator_map_voltage_iterate, .set_voltage_sel = regulator_set_voltage_sel_regmap, .get_voltage_sel = regulator_get_voltage_sel_regmap, .set_voltage_time_sel = regulator_set_voltage_time_sel, .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = regulator_is_enabled_regmap, .get_status = mt6323_get_status, .set_mode = mt6323_ldo_set_mode, .get_mode = mt6323_ldo_get_mode, }; static const struct regulator_ops mt6323_volt_fixed_ops = { .list_voltage = regulator_list_voltage_linear, .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = regulator_is_enabled_regmap, .get_status = mt6323_get_status, .set_mode = mt6323_ldo_set_mode, .get_mode = mt6323_ldo_get_mode, }; /* The array is indexed by id(MT6323_ID_XXX) */ static struct mt6323_regulator_info mt6323_regulators[] = { MT6323_BUCK("buck_vproc", VPROC, 700000, 1493750, 6250, buck_volt_range1, MT6323_VPROC_CON7, MT6323_VPROC_CON9, 0x7f, MT6323_VPROC_CON10, MT6323_VPROC_CON5), MT6323_BUCK("buck_vsys", VSYS, 1400000, 2987500, 12500, buck_volt_range2, MT6323_VSYS_CON7, MT6323_VSYS_CON9, 0x7f, MT6323_VSYS_CON10, MT6323_VSYS_CON5), MT6323_BUCK("buck_vpa", VPA, 500000, 3650000, 50000, buck_volt_range3, MT6323_VPA_CON7, MT6323_VPA_CON9, 0x3f, MT6323_VPA_CON10, MT6323_VPA_CON5), MT6323_REG_FIXED("ldo_vtcxo", VTCXO, MT6323_ANALDO_CON1, 10, 2800000, MT6323_ANALDO_CON1, 0x2), MT6323_REG_FIXED("ldo_vcn28", VCN28, MT6323_ANALDO_CON19, 12, 2800000, MT6323_ANALDO_CON20, 0x2), MT6323_LDO("ldo_vcn33_bt", VCN33_BT, ldo_volt_table1, MT6323_ANALDO_CON16, 7, MT6323_ANALDO_CON16, 0xC, MT6323_ANALDO_CON21, 0x2), MT6323_LDO("ldo_vcn33_wifi", VCN33_WIFI, ldo_volt_table1, MT6323_ANALDO_CON17, 12, MT6323_ANALDO_CON16, 0xC, MT6323_ANALDO_CON21, 0x2), MT6323_REG_FIXED("ldo_va", VA, MT6323_ANALDO_CON2, 14, 2800000, MT6323_ANALDO_CON2, 0x2), MT6323_LDO("ldo_vcama", VCAMA, ldo_volt_table2, MT6323_ANALDO_CON4, 15, MT6323_ANALDO_CON10, 0x60, -1, 0), MT6323_REG_FIXED("ldo_vio28", VIO28, MT6323_DIGLDO_CON0, 14, 2800000, MT6323_DIGLDO_CON0, 0x2), MT6323_REG_FIXED("ldo_vusb", VUSB, MT6323_DIGLDO_CON2, 14, 3300000, MT6323_DIGLDO_CON2, 0x2), MT6323_LDO("ldo_vmc", VMC, ldo_volt_table3, MT6323_DIGLDO_CON3, 12, MT6323_DIGLDO_CON24, 0x10, MT6323_DIGLDO_CON3, 0x2), MT6323_LDO("ldo_vmch", VMCH, ldo_volt_table4, MT6323_DIGLDO_CON5, 14, MT6323_DIGLDO_CON26, 0x80, MT6323_DIGLDO_CON5, 0x2), MT6323_LDO("ldo_vemc3v3", VEMC3V3, ldo_volt_table4, MT6323_DIGLDO_CON6, 14, MT6323_DIGLDO_CON27, 0x80, MT6323_DIGLDO_CON6, 0x2), MT6323_LDO("ldo_vgp1", VGP1, ldo_volt_table5, MT6323_DIGLDO_CON7, 15, MT6323_DIGLDO_CON28, 0xE0, MT6323_DIGLDO_CON7, 0x2), MT6323_LDO("ldo_vgp2", VGP2, ldo_volt_table6, MT6323_DIGLDO_CON8, 15, MT6323_DIGLDO_CON29, 0xE0, MT6323_DIGLDO_CON8, 0x2), MT6323_LDO("ldo_vgp3", VGP3, ldo_volt_table7, MT6323_DIGLDO_CON9, 15, MT6323_DIGLDO_CON30, 0x60, MT6323_DIGLDO_CON9, 0x2), MT6323_REG_FIXED("ldo_vcn18", VCN18, MT6323_DIGLDO_CON11, 14, 1800000, MT6323_DIGLDO_CON11, 0x2), MT6323_LDO("ldo_vsim1", VSIM1, ldo_volt_table8, MT6323_DIGLDO_CON13, 15, MT6323_DIGLDO_CON34, 0x20, MT6323_DIGLDO_CON13, 0x2), MT6323_LDO("ldo_vsim2", VSIM2, ldo_volt_table8, MT6323_DIGLDO_CON14, 15, MT6323_DIGLDO_CON35, 0x20, MT6323_DIGLDO_CON14, 0x2), MT6323_REG_FIXED("ldo_vrtc", VRTC, MT6323_DIGLDO_CON15, 8, 2800000, -1, 0), MT6323_LDO("ldo_vcamaf", VCAMAF, ldo_volt_table5, MT6323_DIGLDO_CON31, 15, MT6323_DIGLDO_CON32, 0xE0, MT6323_DIGLDO_CON31, 0x2), MT6323_LDO("ldo_vibr", VIBR, ldo_volt_table5, MT6323_DIGLDO_CON39, 15, MT6323_DIGLDO_CON40, 0xE0, MT6323_DIGLDO_CON39, 0x2), MT6323_REG_FIXED("ldo_vrf18", VRF18, MT6323_DIGLDO_CON45, 15, 1825000, MT6323_DIGLDO_CON45, 0x2), MT6323_LDO("ldo_vm", VM, ldo_volt_table9, MT6323_DIGLDO_CON47, 14, MT6323_DIGLDO_CON48, 0x30, MT6323_DIGLDO_CON47, 0x2), MT6323_REG_FIXED("ldo_vio18", VIO18, MT6323_DIGLDO_CON49, 14, 1800000, MT6323_DIGLDO_CON49, 0x2), MT6323_LDO("ldo_vcamd", VCAMD, ldo_volt_table10, MT6323_DIGLDO_CON51, 14, MT6323_DIGLDO_CON52, 0x60, MT6323_DIGLDO_CON51, 0x2), MT6323_REG_FIXED("ldo_vcamio", VCAMIO, MT6323_DIGLDO_CON53, 14, 1800000, MT6323_DIGLDO_CON53, 0x2), }; static int mt6323_set_buck_vosel_reg(struct platform_device *pdev) { struct mt6397_chip *mt6323 = dev_get_drvdata(pdev->dev.parent); int i; u32 regval; for (i = 0; i < MT6323_MAX_REGULATOR; i++) { if (mt6323_regulators[i].vselctrl_reg) { if (regmap_read(mt6323->regmap, mt6323_regulators[i].vselctrl_reg, &regval) < 0) { dev_err(&pdev->dev, "Failed to read buck ctrl\n"); return -EIO; } if (regval & mt6323_regulators[i].vselctrl_mask) { mt6323_regulators[i].desc.vsel_reg = mt6323_regulators[i].vselon_reg; } } } return 0; } static int mt6323_regulator_probe(struct platform_device *pdev) { struct mt6397_chip *mt6323 = dev_get_drvdata(pdev->dev.parent); struct regulator_config config = {}; struct regulator_dev *rdev; int i; u32 reg_value; /* Query buck controller to select activated voltage register part */ if (mt6323_set_buck_vosel_reg(pdev)) return -EIO; /* Read PMIC chip revision to update constraints and voltage table */ if (regmap_read(mt6323->regmap, MT6323_CID, &reg_value) < 0) { dev_err(&pdev->dev, "Failed to read Chip ID\n"); return -EIO; } dev_info(&pdev->dev, "Chip ID = 0x%x\n", reg_value); for (i = 0; i < MT6323_MAX_REGULATOR; i++) { config.dev = &pdev->dev; config.driver_data = &mt6323_regulators[i]; config.regmap = mt6323->regmap; rdev = devm_regulator_register(&pdev->dev, &mt6323_regulators[i].desc, &config); if (IS_ERR(rdev)) { dev_err(&pdev->dev, "failed to register %s\n", mt6323_regulators[i].desc.name); return PTR_ERR(rdev); } } return 0; } static const struct platform_device_id mt6323_platform_ids[] = { {"mt6323-regulator", 0}, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(platform, mt6323_platform_ids); static struct platform_driver mt6323_regulator_driver = { .driver = { .name = "mt6323-regulator", }, .probe = mt6323_regulator_probe, .id_table = mt6323_platform_ids, }; module_platform_driver(mt6323_regulator_driver); MODULE_AUTHOR("Chen Zhong <chen.zhong@mediatek.com>"); MODULE_DESCRIPTION("Regulator Driver for MediaTek MT6323 PMIC"); MODULE_LICENSE("GPL v2");
{ "pile_set_name": "Github" }
framework module FirebaseInstanceID { umbrella header "FirebaseInstanceID.h" export * module * { export *} link "z" link framework "Security" link framework "SystemConfiguration"}
{ "pile_set_name": "Github" }
package customproviders // Copyright (c) Microsoft and contributors. All rights reserved. // // 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. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) // CustomResourceProviderClient is the allows extension of ARM control plane with custom resource providers. type CustomResourceProviderClient struct { BaseClient } // NewCustomResourceProviderClient creates an instance of the CustomResourceProviderClient client. func NewCustomResourceProviderClient(subscriptionID string) CustomResourceProviderClient { return NewCustomResourceProviderClientWithBaseURI(DefaultBaseURI, subscriptionID) } // NewCustomResourceProviderClientWithBaseURI creates an instance of the CustomResourceProviderClient client using a // custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, // Azure stack). func NewCustomResourceProviderClientWithBaseURI(baseURI string, subscriptionID string) CustomResourceProviderClient { return CustomResourceProviderClient{NewWithBaseURI(baseURI, subscriptionID)} } // CreateOrUpdate creates or updates the custom resource provider. // Parameters: // resourceGroupName - the name of the resource group. // resourceProviderName - the name of the resource provider. // resourceProvider - the parameters required to create or update a custom resource provider definition. func (client CustomResourceProviderClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceProviderName string, resourceProvider CustomRPManifest) (result CustomResourceProviderCreateOrUpdateFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomResourceProviderClient.CreateOrUpdate") defer func() { sc := -1 if result.Response() != nil { sc = result.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() } if err := validation.Validate([]validation.Validation{ {TargetValue: resourceProviderName, Constraints: []validation.Constraint{{Target: "resourceProviderName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "resourceProviderName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { return result, validation.NewError("customproviders.CustomResourceProviderClient", "CreateOrUpdate", err.Error()) } req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceProviderName, resourceProvider) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "CreateOrUpdate", nil, "Failure preparing request") return } result, err = client.CreateOrUpdateSender(req) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } return } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client CustomResourceProviderClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceProviderName string, resourceProvider CustomRPManifest) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceProviderName": autorest.Encode("path", resourceProviderName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}", pathParameters), autorest.WithJSON(resourceProvider), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client CustomResourceProviderClient) CreateOrUpdateSender(req *http.Request) (future CustomResourceProviderCreateOrUpdateFuture, err error) { var resp *http.Response resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } future.Future, err = azure.NewFutureFromResponse(resp) return } // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client CustomResourceProviderClient) CreateOrUpdateResponder(resp *http.Response) (result CustomRPManifest, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // Delete deletes the custom resource provider. // Parameters: // resourceGroupName - the name of the resource group. // resourceProviderName - the name of the resource provider. func (client CustomResourceProviderClient) Delete(ctx context.Context, resourceGroupName string, resourceProviderName string) (result CustomResourceProviderDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomResourceProviderClient.Delete") defer func() { sc := -1 if result.Response() != nil { sc = result.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() } if err := validation.Validate([]validation.Validation{ {TargetValue: resourceProviderName, Constraints: []validation.Constraint{{Target: "resourceProviderName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "resourceProviderName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { return result, validation.NewError("customproviders.CustomResourceProviderClient", "Delete", err.Error()) } req, err := client.DeletePreparer(ctx, resourceGroupName, resourceProviderName) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Delete", nil, "Failure preparing request") return } result, err = client.DeleteSender(req) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Delete", result.Response(), "Failure sending request") return } return } // DeletePreparer prepares the Delete request. func (client CustomResourceProviderClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceProviderName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceProviderName": autorest.Encode("path", resourceProviderName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client CustomResourceProviderClient) DeleteSender(req *http.Request) (future CustomResourceProviderDeleteFuture, err error) { var resp *http.Response resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } future.Future, err = azure.NewFutureFromResponse(resp) return } // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client CustomResourceProviderClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp return } // Get gets the custom resource provider manifest. // Parameters: // resourceGroupName - the name of the resource group. // resourceProviderName - the name of the resource provider. func (client CustomResourceProviderClient) Get(ctx context.Context, resourceGroupName string, resourceProviderName string) (result CustomRPManifest, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomResourceProviderClient.Get") defer func() { sc := -1 if result.Response.Response != nil { sc = result.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } if err := validation.Validate([]validation.Validation{ {TargetValue: resourceProviderName, Constraints: []validation.Constraint{{Target: "resourceProviderName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "resourceProviderName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { return result, validation.NewError("customproviders.CustomResourceProviderClient", "Get", err.Error()) } req, err := client.GetPreparer(ctx, resourceGroupName, resourceProviderName) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. func (client CustomResourceProviderClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceProviderName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceProviderName": autorest.Encode("path", resourceProviderName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client CustomResourceProviderClient) GetSender(req *http.Request) (*http.Response, error) { return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client CustomResourceProviderClient) GetResponder(resp *http.Response) (result CustomRPManifest, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // ListByResourceGroup gets all the custom resource providers within a resource group. // Parameters: // resourceGroupName - the name of the resource group. func (client CustomResourceProviderClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListByCustomRPManifestPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomResourceProviderClient.ListByResourceGroup") defer func() { sc := -1 if result.lbcrm.Response.Response != nil { sc = result.lbcrm.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.fn = client.listByResourceGroupNextResults req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "ListByResourceGroup", nil, "Failure preparing request") return } resp, err := client.ListByResourceGroupSender(req) if err != nil { result.lbcrm.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "ListByResourceGroup", resp, "Failure sending request") return } result.lbcrm, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "ListByResourceGroup", resp, "Failure responding to request") } if result.lbcrm.hasNextLink() && result.lbcrm.IsEmpty() { err = result.NextWithContext(ctx) } return } // ListByResourceGroupPreparer prepares the ListByResourceGroup request. func (client CustomResourceProviderClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the // http.Response Body if it receives an error. func (client CustomResourceProviderClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always // closes the http.Response Body. func (client CustomResourceProviderClient) ListByResourceGroupResponder(resp *http.Response) (result ListByCustomRPManifest, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // listByResourceGroupNextResults retrieves the next set of results, if any. func (client CustomResourceProviderClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListByCustomRPManifest) (result ListByCustomRPManifest, err error) { req, err := lastResults.listByCustomRPManifestPreparer(ctx) if err != nil { return result, autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") } if req == nil { return } resp, err := client.ListByResourceGroupSender(req) if err != nil { result.Response = autorest.Response{Response: resp} return result, autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") } result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") } return } // ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. func (client CustomResourceProviderClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListByCustomRPManifestIterator, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomResourceProviderClient.ListByResourceGroup") defer func() { sc := -1 if result.Response().Response.Response != nil { sc = result.page.Response().Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) return } // ListBySubscription gets all the custom resource providers within a subscription. func (client CustomResourceProviderClient) ListBySubscription(ctx context.Context) (result ListByCustomRPManifestPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomResourceProviderClient.ListBySubscription") defer func() { sc := -1 if result.lbcrm.Response.Response != nil { sc = result.lbcrm.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.fn = client.listBySubscriptionNextResults req, err := client.ListBySubscriptionPreparer(ctx) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "ListBySubscription", nil, "Failure preparing request") return } resp, err := client.ListBySubscriptionSender(req) if err != nil { result.lbcrm.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "ListBySubscription", resp, "Failure sending request") return } result.lbcrm, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "ListBySubscription", resp, "Failure responding to request") } if result.lbcrm.hasNextLink() && result.lbcrm.IsEmpty() { err = result.NextWithContext(ctx) } return } // ListBySubscriptionPreparer prepares the ListBySubscription request. func (client CustomResourceProviderClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CustomProviders/resourceProviders", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // ListBySubscriptionSender sends the ListBySubscription request. The method will close the // http.Response Body if it receives an error. func (client CustomResourceProviderClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always // closes the http.Response Body. func (client CustomResourceProviderClient) ListBySubscriptionResponder(resp *http.Response) (result ListByCustomRPManifest, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // listBySubscriptionNextResults retrieves the next set of results, if any. func (client CustomResourceProviderClient) listBySubscriptionNextResults(ctx context.Context, lastResults ListByCustomRPManifest) (result ListByCustomRPManifest, err error) { req, err := lastResults.listByCustomRPManifestPreparer(ctx) if err != nil { return result, autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") } if req == nil { return } resp, err := client.ListBySubscriptionSender(req) if err != nil { result.Response = autorest.Response{Response: resp} return result, autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") } result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") } return } // ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. func (client CustomResourceProviderClient) ListBySubscriptionComplete(ctx context.Context) (result ListByCustomRPManifestIterator, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomResourceProviderClient.ListBySubscription") defer func() { sc := -1 if result.Response().Response.Response != nil { sc = result.page.Response().Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.page, err = client.ListBySubscription(ctx) return } // Update updates an existing custom resource provider. The only value that can be updated via PATCH currently is the // tags. // Parameters: // resourceGroupName - the name of the resource group. // resourceProviderName - the name of the resource provider. // patchableResource - the updatable fields of a custom resource provider. func (client CustomResourceProviderClient) Update(ctx context.Context, resourceGroupName string, resourceProviderName string, patchableResource ResourceProvidersUpdate) (result CustomRPManifest, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomResourceProviderClient.Update") defer func() { sc := -1 if result.Response.Response != nil { sc = result.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } if err := validation.Validate([]validation.Validation{ {TargetValue: resourceProviderName, Constraints: []validation.Constraint{{Target: "resourceProviderName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "resourceProviderName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { return result, validation.NewError("customproviders.CustomResourceProviderClient", "Update", err.Error()) } req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceProviderName, patchableResource) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Update", nil, "Failure preparing request") return } resp, err := client.UpdateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Update", resp, "Failure sending request") return } result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "customproviders.CustomResourceProviderClient", "Update", resp, "Failure responding to request") } return } // UpdatePreparer prepares the Update request. func (client CustomResourceProviderClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceProviderName string, patchableResource ResourceProvidersUpdate) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceProviderName": autorest.Encode("path", resourceProviderName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}", pathParameters), autorest.WithJSON(patchableResource), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client CustomResourceProviderClient) UpdateSender(req *http.Request) (*http.Response, error) { return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client CustomResourceProviderClient) UpdateResponder(resp *http.Response) (result CustomRPManifest, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="8191" systemVersion="15A284" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none"> <dependencies> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/> </dependencies> <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SecondViewController"> <connections> <outlet property="addButtonPressed" destination="aUT-zJ-ZJ5" id="FpM-7e-36F"/> <outlet property="collectionView" destination="EBS-RO-kYK" id="12C-Ya-bjc"/> <outlet property="image" destination="YTV-eK-QB6" id="yuV-3Z-r3u"/> <outlet property="scrollView" destination="YTV-eK-QB6" id="LrX-GD-xZq"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> <rect key="frame" x="0.0" y="0.0" width="320" height="568"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" id="YTV-eK-QB6"> <rect key="frame" x="0.0" y="0.0" width="320" height="568"/> <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/> <subviews> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="aUT-zJ-ZJ5"> <rect key="frame" x="0.0" y="534" width="320" height="30"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <animations/> <state key="normal" title="ๅขžๅŠ ไธ€ไธชSection"/> <connections> <action selector="addEnvirnmentClick:" destination="-1" eventType="touchUpInside" id="iry-wg-8sT"/> </connections> </button> <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" scrollEnabled="NO" dataMode="none" id="EBS-RO-kYK"> <rect key="frame" x="0.0" y="154" width="320" height="370"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <animations/> <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="LJp-DV-Bah"> <size key="itemSize" width="50" height="50"/> <size key="headerReferenceSize" width="0.0" height="0.0"/> <size key="footerReferenceSize" width="0.0" height="0.0"/> <inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/> </collectionViewFlowLayout> <connections> <outlet property="dataSource" destination="-1" id="ry5-H1-x6z"/> <outlet property="delegate" destination="-1" id="Hfg-lG-seD"/> </connections> </collectionView> <imageView contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home" id="1hn-2B-Yig"> <rect key="frame" x="0.0" y="0.0" width="320" height="153"/> <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMaxY="YES"/> <animations/> </imageView> </subviews> <animations/> <connections> <outlet property="delegate" destination="i5M-Pr-FkT" id="1oy-EP-Btq"/> </connections> </scrollView> </subviews> <animations/> <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> <point key="canvasLocation" x="336" y="292"/> </view> </objects> <resources> <image name="home" width="280" height="300"/> </resources> </document>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="iso-8859-1"?> <project> <fileVersion>2</fileVersion> <configuration> <name>STM32412G_DISCOVERY</name> <toolchain> <name>ARM</name> </toolchain> <debug>1</debug> <settings> <name>C-SPY</name> <archiveVersion>2</archiveVersion> <data> <version>26</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>CInput</name> <state>1</state> </option> <option> <name>CEndian</name> <state>1</state> </option> <option> <name>CProcessor</name> <state>1</state> </option> <option> <name>OCVariant</name> <state>0</state> </option> <option> <name>MacOverride</name> <state>0</state> </option> <option> <name>MacFile</name> <state></state> </option> <option> <name>MemOverride</name> <state>0</state> </option> <option> <name>MemFile</name> <state>$TOOLKIT_DIR$\CONFIG\debugger\ST\STM32F412ZG.ddf</state> </option> <option> <name>RunToEnable</name> <state>1</state> </option> <option> <name>RunToName</name> <state>main</state> </option> <option> <name>CExtraOptionsCheck</name> <state>0</state> </option> <option> <name>CExtraOptions</name> <state></state> </option> <option> <name>CFpuProcessor</name> <state>1</state> </option> <option> <name>OCDDFArgumentProducer</name> <state></state> </option> <option> <name>OCDownloadSuppressDownload</name> <state>0</state> </option> <option> <name>OCDownloadVerifyAll</name> <state>1</state> </option> <option> <name>OCProductVersion</name> <state>7.30.1.7765</state> </option> <option> <name>OCDynDriverList</name> <state>STLINK_ID</state> </option> <option> <name>OCLastSavedByProductVersion</name> <state>7.40.1.8463</state> </option> <option> <name>OCDownloadAttachToProgram</name> <state>0</state> </option> <option> <name>UseFlashLoader</name> <state>1</state> </option> <option> <name>CLowLevel</name> <state>1</state> </option> <option> <name>OCBE8Slave</name> <state>1</state> </option> <option> <name>MacFile2</name> <state></state> </option> <option> <name>CDevice</name> <state>1</state> </option> <option> <name>FlashLoadersV3</name> <state>$TOOLKIT_DIR$\config\flashloader\ST\FlashSTM32F412ZG.board</state> </option> <option> <name>OCImagesSuppressCheck1</name> <state>0</state> </option> <option> <name>OCImagesPath1</name> <state></state> </option> <option> <name>OCImagesSuppressCheck2</name> <state>0</state> </option> <option> <name>OCImagesPath2</name> <state></state> </option> <option> <name>OCImagesSuppressCheck3</name> <state>0</state> </option> <option> <name>OCImagesPath3</name> <state></state> </option> <option> <name>OverrideDefFlashBoard</name> <state>0</state> </option> <option> <name>OCImagesOffset1</name> <state></state> </option> <option> <name>OCImagesOffset2</name> <state></state> </option> <option> <name>OCImagesOffset3</name> <state></state> </option> <option> <name>OCImagesUse1</name> <state>0</state> </option> <option> <name>OCImagesUse2</name> <state>0</state> </option> <option> <name>OCImagesUse3</name> <state>0</state> </option> <option> <name>OCDeviceConfigMacroFile</name> <state>1</state> </option> <option> <name>OCDebuggerExtraOption</name> <state>1</state> </option> <option> <name>OCAllMTBOptions</name> <state>1</state> </option> <option> <name>OCMulticoreNrOfCores</name> <state>1</state> </option> <option> <name>OCMulticoreMaster</name> <state>0</state> </option> <option> <name>OCMulticorePort</name> <state>53461</state> </option> <option> <name>OCMulticoreWorkspace</name> <state></state> </option> <option> <name>OCMulticoreSlaveProject</name> <state></state> </option> <option> <name>OCMulticoreSlaveConfiguration</name> <state></state> </option> </data> </settings> <settings> <name>ARMSIM_ID</name> <archiveVersion>2</archiveVersion> <data> <version>1</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>OCSimDriverInfo</name> <state>1</state> </option> <option> <name>OCSimEnablePSP</name> <state>0</state> </option> <option> <name>OCSimPspOverrideConfig</name> <state>0</state> </option> <option> <name>OCSimPspConfigFile</name> <state></state> </option> </data> </settings> <settings> <name>ANGEL_ID</name> <archiveVersion>2</archiveVersion> <data> <version>0</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>CCAngelHeartbeat</name> <state>1</state> </option> <option> <name>CAngelCommunication</name> <state>1</state> </option> <option> <name>CAngelCommBaud</name> <version>0</version> <state>3</state> </option> <option> <name>CAngelCommPort</name> <version>0</version> <state>0</state> </option> <option> <name>ANGELTCPIP</name> <state>aaa.bbb.ccc.ddd</state> </option> <option> <name>DoAngelLogfile</name> <state>0</state> </option> <option> <name>AngelLogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>OCDriverInfo</name> <state>1</state> </option> </data> </settings> <settings> <name>CMSISDAP_ID</name> <archiveVersion>2</archiveVersion> <data> <version>2</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>CMSISDAPAttachSlave</name> <state>1</state> </option> <option> <name>OCIarProbeScriptFile</name> <state>1</state> </option> <option> <name>CMSISDAPResetList</name> <version>1</version> <state>10</state> </option> <option> <name>CMSISDAPHWResetDuration</name> <state>300</state> </option> <option> <name>CMSISDAPHWResetDelay</name> <state>200</state> </option> <option> <name>CMSISDAPDoLogfile</name> <state>0</state> </option> <option> <name>CMSISDAPLogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>CMSISDAPInterfaceRadio</name> <state>0</state> </option> <option> <name>CMSISDAPInterfaceCmdLine</name> <state>0</state> </option> <option> <name>CMSISDAPMultiTargetEnable</name> <state>0</state> </option> <option> <name>CMSISDAPMultiTarget</name> <state>0</state> </option> <option> <name>CMSISDAPJtagSpeedList</name> <version>0</version> <state>0</state> </option> <option> <name>CMSISDAPBreakpointRadio</name> <state>0</state> </option> <option> <name>CMSISDAPRestoreBreakpointsCheck</name> <state>0</state> </option> <option> <name>CMSISDAPUpdateBreakpointsEdit</name> <state>_call_main</state> </option> <option> <name>RDICatchReset</name> <state>0</state> </option> <option> <name>RDICatchUndef</name> <state>1</state> </option> <option> <name>RDICatchSWI</name> <state>0</state> </option> <option> <name>RDICatchData</name> <state>1</state> </option> <option> <name>RDICatchPrefetch</name> <state>1</state> </option> <option> <name>RDICatchIRQ</name> <state>0</state> </option> <option> <name>RDICatchFIQ</name> <state>0</state> </option> <option> <name>CatchCORERESET</name> <state>0</state> </option> <option> <name>CatchMMERR</name> <state>1</state> </option> <option> <name>CatchNOCPERR</name> <state>1</state> </option> <option> <name>CatchCHKERR</name> <state>1</state> </option> <option> <name>CatchSTATERR</name> <state>1</state> </option> <option> <name>CatchBUSERR</name> <state>1</state> </option> <option> <name>CatchINTERR</name> <state>1</state> </option> <option> <name>CatchHARDERR</name> <state>1</state> </option> <option> <name>CatchDummy</name> <state>0</state> </option> <option> <name>CMSISDAPMultiCPUEnable</name> <state>0</state> </option> <option> <name>CMSISDAPMultiCPUNumber</name> <state>0</state> </option> <option> <name>OCProbeCfgOverride</name> <state>0</state> </option> <option> <name>OCProbeConfig</name> <state></state> </option> <option> <name>CMSISDAPProbeConfigRadio</name> <state>0</state> </option> <option> <name>CMSISDAPSelectedCPUBehaviour</name> <state>0</state> </option> <option> <name>ICpuName</name> <state></state> </option> <option> <name>OCJetEmuParams</name> <state>1</state> </option> </data> </settings> <settings> <name>GDBSERVER_ID</name> <archiveVersion>2</archiveVersion> <data> <version>0</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>TCPIP</name> <state>aaa.bbb.ccc.ddd</state> </option> <option> <name>DoLogfile</name> <state>0</state> </option> <option> <name>LogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>CCJTagBreakpointRadio</name> <state>0</state> </option> <option> <name>CCJTagDoUpdateBreakpoints</name> <state>0</state> </option> <option> <name>CCJTagUpdateBreakpoints</name> <state>_call_main</state> </option> </data> </settings> <settings> <name>IARROM_ID</name> <archiveVersion>2</archiveVersion> <data> <version>1</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>CRomLogFileCheck</name> <state>0</state> </option> <option> <name>CRomLogFileEditB</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>CRomCommPort</name> <version>0</version> <state>0</state> </option> <option> <name>CRomCommBaud</name> <version>0</version> <state>7</state> </option> <option> <name>OCDriverInfo</name> <state>1</state> </option> </data> </settings> <settings> <name>IJET_ID</name> <archiveVersion>2</archiveVersion> <data> <version>6</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>IjetAttachSlave</name> <state>1</state> </option> <option> <name>OCIarProbeScriptFile</name> <state>1</state> </option> <option> <name>IjetResetList</name> <version>1</version> <state>10</state> </option> <option> <name>IjetHWResetDuration</name> <state>300</state> </option> <option> <name>IjetHWResetDelay</name> <state>200</state> </option> <option> <name>IjetPowerFromProbe</name> <state>1</state> </option> <option> <name>IjetPowerRadio</name> <state>0</state> </option> <option> <name>IjetDoLogfile</name> <state>0</state> </option> <option> <name>IjetLogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>IjetInterfaceRadio</name> <state>0</state> </option> <option> <name>IjetInterfaceCmdLine</name> <state>0</state> </option> <option> <name>IjetMultiTargetEnable</name> <state>0</state> </option> <option> <name>IjetMultiTarget</name> <state>0</state> </option> <option> <name>IjetScanChainNonARMDevices</name> <state>0</state> </option> <option> <name>IjetIRLength</name> <state>0</state> </option> <option> <name>IjetJtagSpeedList</name> <version>0</version> <state>0</state> </option> <option> <name>IjetProtocolRadio</name> <state>0</state> </option> <option> <name>IjetSwoPin</name> <state>0</state> </option> <option> <name>IjetCpuClockEdit</name> <state>72.0</state> </option> <option> <name>IjetSwoPrescalerList</name> <version>1</version> <state>0</state> </option> <option> <name>IjetBreakpointRadio</name> <state>0</state> </option> <option> <name>IjetRestoreBreakpointsCheck</name> <state>0</state> </option> <option> <name>IjetUpdateBreakpointsEdit</name> <state>_call_main</state> </option> <option> <name>RDICatchReset</name> <state>0</state> </option> <option> <name>RDICatchUndef</name> <state>1</state> </option> <option> <name>RDICatchSWI</name> <state>0</state> </option> <option> <name>RDICatchData</name> <state>1</state> </option> <option> <name>RDICatchPrefetch</name> <state>1</state> </option> <option> <name>RDICatchIRQ</name> <state>0</state> </option> <option> <name>RDICatchFIQ</name> <state>0</state> </option> <option> <name>CatchCORERESET</name> <state>0</state> </option> <option> <name>CatchMMERR</name> <state>1</state> </option> <option> <name>CatchNOCPERR</name> <state>1</state> </option> <option> <name>CatchCHKERR</name> <state>1</state> </option> <option> <name>CatchSTATERR</name> <state>1</state> </option> <option> <name>CatchBUSERR</name> <state>1</state> </option> <option> <name>CatchINTERR</name> <state>1</state> </option> <option> <name>CatchHARDERR</name> <state>1</state> </option> <option> <name>CatchDummy</name> <state>0</state> </option> <option> <name>OCProbeCfgOverride</name> <state>0</state> </option> <option> <name>OCProbeConfig</name> <state></state> </option> <option> <name>IjetProbeConfigRadio</name> <state>0</state> </option> <option> <name>IjetMultiCPUEnable</name> <state>0</state> </option> <option> <name>IjetMultiCPUNumber</name> <state>0</state> </option> <option> <name>IjetSelectedCPUBehaviour</name> <state>0</state> </option> <option> <name>ICpuName</name> <state></state> </option> <option> <name>OCJetEmuParams</name> <state>1</state> </option> <option> <name>IjetPreferETB</name> <state>1</state> </option> <option> <name>IjetTraceSettingsList</name> <version>0</version> <state>0</state> </option> <option> <name>IjetTraceSizeList</name> <version>0</version> <state>2</state> </option> <option> <name>FlashBoardPathSlave</name> <state>0</state> </option> </data> </settings> <settings> <name>JLINK_ID</name> <archiveVersion>2</archiveVersion> <data> <version>15</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>JLinkSpeed</name> <state>1000</state> </option> <option> <name>CCJLinkDoLogfile</name> <state>0</state> </option> <option> <name>CCJLinkLogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>CCJLinkHWResetDelay</name> <state>0</state> </option> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>JLinkInitialSpeed</name> <state>1000</state> </option> <option> <name>CCDoJlinkMultiTarget</name> <state>0</state> </option> <option> <name>CCScanChainNonARMDevices</name> <state>0</state> </option> <option> <name>CCJLinkMultiTarget</name> <state>0</state> </option> <option> <name>CCJLinkIRLength</name> <state>0</state> </option> <option> <name>CCJLinkCommRadio</name> <state>0</state> </option> <option> <name>CCJLinkTCPIP</name> <state>aaa.bbb.ccc.ddd</state> </option> <option> <name>CCJLinkSpeedRadioV2</name> <state>0</state> </option> <option> <name>CCUSBDevice</name> <version>1</version> <state>1</state> </option> <option> <name>CCRDICatchReset</name> <state>0</state> </option> <option> <name>CCRDICatchUndef</name> <state>0</state> </option> <option> <name>CCRDICatchSWI</name> <state>0</state> </option> <option> <name>CCRDICatchData</name> <state>0</state> </option> <option> <name>CCRDICatchPrefetch</name> <state>0</state> </option> <option> <name>CCRDICatchIRQ</name> <state>0</state> </option> <option> <name>CCRDICatchFIQ</name> <state>0</state> </option> <option> <name>CCJLinkBreakpointRadio</name> <state>0</state> </option> <option> <name>CCJLinkDoUpdateBreakpoints</name> <state>0</state> </option> <option> <name>CCJLinkUpdateBreakpoints</name> <state>_call_main</state> </option> <option> <name>CCJLinkInterfaceRadio</name> <state>0</state> </option> <option> <name>OCJLinkAttachSlave</name> <state>1</state> </option> <option> <name>CCJLinkResetList</name> <version>6</version> <state>5</state> </option> <option> <name>CCJLinkInterfaceCmdLine</name> <state>0</state> </option> <option> <name>CCCatchCORERESET</name> <state>0</state> </option> <option> <name>CCCatchMMERR</name> <state>0</state> </option> <option> <name>CCCatchNOCPERR</name> <state>0</state> </option> <option> <name>CCCatchCHRERR</name> <state>0</state> </option> <option> <name>CCCatchSTATERR</name> <state>0</state> </option> <option> <name>CCCatchBUSERR</name> <state>0</state> </option> <option> <name>CCCatchINTERR</name> <state>0</state> </option> <option> <name>CCCatchHARDERR</name> <state>0</state> </option> <option> <name>CCCatchDummy</name> <state>0</state> </option> <option> <name>OCJLinkScriptFile</name> <state>1</state> </option> <option> <name>CCJLinkUsbSerialNo</name> <state></state> </option> <option> <name>CCTcpIpAlt</name> <version>0</version> <state>0</state> </option> <option> <name>CCJLinkTcpIpSerialNo</name> <state></state> </option> <option> <name>CCCpuClockEdit</name> <state>72.0</state> </option> <option> <name>CCSwoClockAuto</name> <state>0</state> </option> <option> <name>CCSwoClockEdit</name> <state>2000</state> </option> <option> <name>OCJLinkTraceSource</name> <state>0</state> </option> <option> <name>OCJLinkTraceSourceDummy</name> <state>0</state> </option> <option> <name>OCJLinkDeviceName</name> <state>1</state> </option> </data> </settings> <settings> <name>LMIFTDI_ID</name> <archiveVersion>2</archiveVersion> <data> <version>2</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>LmiftdiSpeed</name> <state>500</state> </option> <option> <name>CCLmiftdiDoLogfile</name> <state>0</state> </option> <option> <name>CCLmiftdiLogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>CCLmiFtdiInterfaceRadio</name> <state>0</state> </option> <option> <name>CCLmiFtdiInterfaceCmdLine</name> <state>0</state> </option> </data> </settings> <settings> <name>MACRAIGOR_ID</name> <archiveVersion>2</archiveVersion> <data> <version>3</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>jtag</name> <version>0</version> <state>0</state> </option> <option> <name>EmuSpeed</name> <state>1</state> </option> <option> <name>TCPIP</name> <state>aaa.bbb.ccc.ddd</state> </option> <option> <name>DoLogfile</name> <state>0</state> </option> <option> <name>LogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>DoEmuMultiTarget</name> <state>0</state> </option> <option> <name>EmuMultiTarget</name> <state>0@ARM7TDMI</state> </option> <option> <name>EmuHWReset</name> <state>0</state> </option> <option> <name>CEmuCommBaud</name> <version>0</version> <state>4</state> </option> <option> <name>CEmuCommPort</name> <version>0</version> <state>0</state> </option> <option> <name>jtago</name> <version>0</version> <state>0</state> </option> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>UnusedAddr</name> <state>0x00800000</state> </option> <option> <name>CCMacraigorHWResetDelay</name> <state></state> </option> <option> <name>CCJTagBreakpointRadio</name> <state>0</state> </option> <option> <name>CCJTagDoUpdateBreakpoints</name> <state>0</state> </option> <option> <name>CCJTagUpdateBreakpoints</name> <state>_call_main</state> </option> <option> <name>CCMacraigorInterfaceRadio</name> <state>0</state> </option> <option> <name>CCMacraigorInterfaceCmdLine</name> <state>0</state> </option> </data> </settings> <settings> <name>PEMICRO_ID</name> <archiveVersion>2</archiveVersion> <data> <version>1</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>OCPEMicroAttachSlave</name> <state>1</state> </option> <option> <name>CCPEMicroInterfaceList</name> <version>0</version> <state>0</state> </option> <option> <name>CCPEMicroResetDelay</name> <state></state> </option> <option> <name>CCPEMicroJtagSpeed</name> <state>#UNINITIALIZED#</state> </option> <option> <name>CCJPEMicroShowSettings</name> <state>0</state> </option> <option> <name>DoLogfile</name> <state>0</state> </option> <option> <name>LogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>CCPEMicroUSBDevice</name> <version>0</version> <state>0</state> </option> <option> <name>CCPEMicroSerialPort</name> <version>0</version> <state>0</state> </option> <option> <name>CCJPEMicroTCPIPAutoScanNetwork</name> <state>1</state> </option> <option> <name>CCPEMicroTCPIP</name> <state>10.0.0.1</state> </option> <option> <name>CCPEMicroCommCmdLineProducer</name> <state>0</state> </option> <option> <name>CCSTLinkInterfaceRadio</name> <state>0</state> </option> <option> <name>CCSTLinkInterfaceCmdLine</name> <state>0</state> </option> </data> </settings> <settings> <name>RDI_ID</name> <archiveVersion>2</archiveVersion> <data> <version>2</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>CRDIDriverDll</name> <state>###Uninitialized###</state> </option> <option> <name>CRDILogFileCheck</name> <state>0</state> </option> <option> <name>CRDILogFileEdit</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>CCRDIHWReset</name> <state>0</state> </option> <option> <name>CCRDICatchReset</name> <state>0</state> </option> <option> <name>CCRDICatchUndef</name> <state>0</state> </option> <option> <name>CCRDICatchSWI</name> <state>0</state> </option> <option> <name>CCRDICatchData</name> <state>0</state> </option> <option> <name>CCRDICatchPrefetch</name> <state>0</state> </option> <option> <name>CCRDICatchIRQ</name> <state>0</state> </option> <option> <name>CCRDICatchFIQ</name> <state>0</state> </option> <option> <name>OCDriverInfo</name> <state>1</state> </option> </data> </settings> <settings> <name>STLINK_ID</name> <archiveVersion>2</archiveVersion> <data> <version>2</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>CCSTLinkInterfaceRadio</name> <state>1</state> </option> <option> <name>CCSTLinkInterfaceCmdLine</name> <state>0</state> </option> <option> <name>CCSTLinkResetList</name> <version>1</version> <state>2</state> </option> <option> <name>CCCpuClockEdit</name> <state>100.0</state> </option> <option> <name>CCSwoClockAuto</name> <state>0</state> </option> <option> <name>CCSwoClockEdit</name> <state>2000</state> </option> </data> </settings> <settings> <name>THIRDPARTY_ID</name> <archiveVersion>2</archiveVersion> <data> <version>0</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>CThirdPartyDriverDll</name> <state>###Uninitialized###</state> </option> <option> <name>CThirdPartyLogFileCheck</name> <state>0</state> </option> <option> <name>CThirdPartyLogFileEditB</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> <option> <name>OCDriverInfo</name> <state>1</state> </option> </data> </settings> <settings> <name>XDS100_ID</name> <archiveVersion>2</archiveVersion> <data> <version>2</version> <wantNonLocal>1</wantNonLocal> <debug>1</debug> <option> <name>OCDriverInfo</name> <state>1</state> </option> <option> <name>OCXDS100AttachSlave</name> <state>1</state> </option> <option> <name>TIPackageOverride</name> <state>0</state> </option> <option> <name>TIPackage</name> <state></state> </option> <option> <name>CCXds100InterfaceList</name> <version>2</version> <state>0</state> </option> <option> <name>BoardFile</name> <state></state> </option> <option> <name>DoLogfile</name> <state>0</state> </option> <option> <name>LogFile</name> <state>$PROJ_DIR$\cspycomm.log</state> </option> </data> </settings> <debuggerPlugins> <plugin> <file>$TOOLKIT_DIR$\plugins\middleware\HCCWare\HCCWare.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\AVIX\AVIX.ENU.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\MQX\MQXRtosPlugin.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\OpenRTOS\OpenRTOSPlugin.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\Quadros\Quadros_EWB7_Plugin.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\SafeRTOS\SafeRTOSPlugin.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\TI-RTOS\tirtosplugin.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-286-KA-CSpy.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$TOOLKIT_DIR$\plugins\rtos\uCOS-III\uCOS-III-KA-CSpy.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$EW_DIR$\common\plugins\CodeCoverage\CodeCoverage.ENU.ewplugin</file> <loadFlag>1</loadFlag> </plugin> <plugin> <file>$EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin</file> <loadFlag>0</loadFlag> </plugin> <plugin> <file>$EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin</file> <loadFlag>1</loadFlag> </plugin> <plugin> <file>$EW_DIR$\common\plugins\uCProbe\uCProbePlugin.ENU.ewplugin</file> <loadFlag>0</loadFlag> </plugin> </debuggerPlugins> </configuration> </project>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `SETUID` constant in crate `std`."> <meta name="keywords" content="rust, rustlang, rust-lang, SETUID"> <title>std::os::unix::fs::SETUID - Rust</title> <link rel="stylesheet" type="text/css" href="../../../../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../../../../main.css"> <link rel="shortcut icon" href="https://doc.rust-lang.org/favicon.ico"> </head> <body class="rustdoc"> <!--[if lte IE 8]> <div class="warning"> This old browser is unsupported and will most likely display funky things. </div> <![endif]--> <nav class="sidebar"> <a href='../../../../std/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png' alt='' width='100'></a> <p class='location'><a href='../../../index.html'>std</a>::<wbr><a href='../../index.html'>os</a>::<wbr><a href='../index.html'>unix</a>::<wbr><a href='index.html'>fs</a></p><script>window.sidebarCurrent = {name: 'SETUID', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script> </nav> <nav class="sub"> <form class="search-form js-only"> <div class="search-container"> <input class="search-input" name="search" autocomplete="off" placeholder="Click or press โ€˜Sโ€™ to search, โ€˜?โ€™ for more optionsโ€ฆ" type="search"> </div> </form> </nav> <section id='main' class="content constant"> <h1 class='fqn'><span class='in-band'><a href='../../../index.html'>std</a>::<wbr><a href='../../index.html'>os</a>::<wbr><a href='../index.html'>unix</a>::<wbr><a href='index.html'>fs</a>::<wbr><a class='constant' href=''>SETUID</a></span><span class='out-of-band'><span id='render-detail'> <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> [<span class='inner'>&#x2212;</span>] </a> </span><a id='src-12086' class='srclink' href='../../../../src/std/sys/unix/ext/fs.rs.html#58' title='goto source code'>[src]</a></span></h1> <pre class='rust const'>pub const SETUID: <a class='type' href='../../../../std/os/linux/raw/type.mode_t.html' title='std::os::linux::raw::mode_t'>mode_t</a><code> = </code><code>0o4000</code></pre><div class='stability'><em class='stab unstable'>Unstable (<code>fs_mode</code> <a href="https://github.com/rust-lang/rust/issues/27712">#27712</a>)<p>: recently added API</p> </em></div></section> <section id='search' class="content hidden"></section> <section class="footer"></section> <aside id="help" class="hidden"> <div> <h1 class="hidden">Help</h1> <div class="shortcuts"> <h2>Keyboard Shortcuts</h2> <dl> <dt>?</dt> <dd>Show this help dialog</dd> <dt>S</dt> <dd>Focus the search field</dd> <dt>&larrb;</dt> <dd>Move up in search results</dd> <dt>&rarrb;</dt> <dd>Move down in search results</dd> <dt>&#9166;</dt> <dd>Go to active search result</dd> </dl> </div> <div class="infos"> <h2>Search Tricks</h2> <p> Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type. </p> <p> Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>. </p> <p> Search functions by type signature (e.g. <code>vec -> usize</code>) </p> </div> </div> </aside> <script> window.rootPath = "../../../../"; window.currentCrate = "std"; window.playgroundUrl = "https://play.rust-lang.org/"; </script> <script src="../../../../jquery.js"></script> <script src="../../../../main.js"></script> <script src="../../../../playpen.js"></script> <script defer src="../../../../search-index.js"></script> </body> </html>
{ "pile_set_name": "Github" }
require('../modules/core.number.iterator'); module.exports = require('../modules/_core').Number;
{ "pile_set_name": "Github" }
import React from 'react'; import PropTypes from 'prop-types'; import PageButton from './page-button'; const PaginatonList = props => ( <ul className="pagination react-bootstrap-table-page-btns-ul"> { props.pages.map((pageProps) => { if (props.pageButtonRenderer) { return props.pageButtonRenderer({ ...pageProps, onPageChange: props.onPageChange }); } return ( <PageButton key={ pageProps.page } { ...pageProps } onPageChange={ props.onPageChange } /> ); }) } </ul> ); PaginatonList.propTypes = { pages: PropTypes.arrayOf(PropTypes.shape({ page: PropTypes.oneOfType([ PropTypes.node, PropTypes.number, PropTypes.string ]), active: PropTypes.bool, disable: PropTypes.bool, title: PropTypes.string })).isRequired, onPageChange: PropTypes.func.isRequired, pageButtonRenderer: PropTypes.func }; PaginatonList.defaultProps = { pageButtonRenderer: null }; export default PaginatonList;
{ "pile_set_name": "Github" }
// Copyright 2013 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_V8_PLATFORM_H_ #define V8_V8_PLATFORM_H_ #include <stddef.h> #include <stdint.h> #include <memory> #include <string> namespace v8 { class Isolate; /** * A Task represents a unit of work. */ class Task { public: virtual ~Task() = default; virtual void Run() = 0; }; /** * An IdleTask represents a unit of work to be performed in idle time. * The Run method is invoked with an argument that specifies the deadline in * seconds returned by MonotonicallyIncreasingTime(). * The idle task is expected to complete by this deadline. */ class IdleTask { public: virtual ~IdleTask() = default; virtual void Run(double deadline_in_seconds) = 0; }; /** * The interface represents complex arguments to trace events. */ class ConvertableToTraceFormat { public: virtual ~ConvertableToTraceFormat() = default; /** * Append the class info to the provided |out| string. The appended * data must be a valid JSON object. Strings must be properly quoted, and * escaped. There is no processing applied to the content after it is * appended. */ virtual void AppendAsTraceFormat(std::string* out) const = 0; }; /** * V8 Platform abstraction layer. * * The embedder has to provide an implementation of this interface before * initializing the rest of V8. */ class Platform { public: /** * This enum is used to indicate whether a task is potentially long running, * or causes a long wait. The embedder might want to use this hint to decide * whether to execute the task on a dedicated thread. */ enum ExpectedRuntime { kShortRunningTask, kLongRunningTask }; virtual ~Platform() = default; /** * Gets the number of threads that are used to execute background tasks. Is * used to estimate the number of tasks a work package should be split into. * A return value of 0 means that there are no background threads available. * Note that a value of 0 won't prohibit V8 from posting tasks using * |CallOnBackgroundThread|. */ virtual size_t NumberOfAvailableBackgroundThreads() { return 0; } /** * Schedules a task to be invoked on a background thread. |expected_runtime| * indicates that the task will run a long time. The Platform implementation * takes ownership of |task|. There is no guarantee about order of execution * of tasks wrt order of scheduling, nor is there a guarantee about the * thread the task will be run on. */ virtual void CallOnBackgroundThread(Task* task, ExpectedRuntime expected_runtime) = 0; /** * Schedules a task to be invoked on a foreground thread wrt a specific * |isolate|. Tasks posted for the same isolate should be execute in order of * scheduling. The definition of "foreground" is opaque to V8. */ virtual void CallOnForegroundThread(Isolate* isolate, Task* task) = 0; /** * Schedules a task to be invoked on a foreground thread wrt a specific * |isolate| after the given number of seconds |delay_in_seconds|. * Tasks posted for the same isolate should be execute in order of * scheduling. The definition of "foreground" is opaque to V8. */ virtual void CallDelayedOnForegroundThread(Isolate* isolate, Task* task, double delay_in_seconds) = 0; /** * Schedules a task to be invoked on a foreground thread wrt a specific * |isolate| when the embedder is idle. * Requires that SupportsIdleTasks(isolate) is true. * Idle tasks may be reordered relative to other task types and may be * starved for an arbitrarily long time if no idle time is available. * The definition of "foreground" is opaque to V8. */ virtual void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) { // TODO(ulan): Make this function abstract after V8 roll in Chromium. } /** * Returns true if idle tasks are enabled for the given |isolate|. */ virtual bool IdleTasksEnabled(Isolate* isolate) { // TODO(ulan): Make this function abstract after V8 roll in Chromium. return false; } /** * Monotonically increasing time in seconds from an arbitrary fixed point in * the past. This function is expected to return at least * millisecond-precision values. For this reason, * it is recommended that the fixed point be no further in the past than * the epoch. **/ virtual double MonotonicallyIncreasingTime() = 0; /** * Called by TRACE_EVENT* macros, don't call this directly. * The name parameter is a category group for example: * TRACE_EVENT0("v8,parse", "V8.Parse") * The pointer returned points to a value with zero or more of the bits * defined in CategoryGroupEnabledFlags. **/ virtual const uint8_t* GetCategoryGroupEnabled(const char* name) { static uint8_t no = 0; return &no; } /** * Gets the category group name of the given category_enabled_flag pointer. * Usually used while serliazing TRACE_EVENTs. **/ virtual const char* GetCategoryGroupName( const uint8_t* category_enabled_flag) { static const char dummy[] = "dummy"; return dummy; } /** * Adds a trace event to the platform tracing system. This function call is * usually the result of a TRACE_* macro from trace_event_common.h when * tracing and the category of the particular trace are enabled. It is not * advisable to call this function on its own; it is really only meant to be * used by the trace macros. The returned handle can be used by * UpdateTraceEventDuration to update the duration of COMPLETE events. */ virtual uint64_t AddTraceEvent( char phase, const uint8_t* category_enabled_flag, const char* name, const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, const char** arg_names, const uint8_t* arg_types, const uint64_t* arg_values, unsigned int flags) { return 0; } /** * Adds a trace event to the platform tracing system. This function call is * usually the result of a TRACE_* macro from trace_event_common.h when * tracing and the category of the particular trace are enabled. It is not * advisable to call this function on its own; it is really only meant to be * used by the trace macros. The returned handle can be used by * UpdateTraceEventDuration to update the duration of COMPLETE events. */ virtual uint64_t AddTraceEvent( char phase, const uint8_t* category_enabled_flag, const char* name, const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, const char** arg_names, const uint8_t* arg_types, const uint64_t* arg_values, std::unique_ptr<ConvertableToTraceFormat>* arg_convertables, unsigned int flags) { return AddTraceEvent(phase, category_enabled_flag, name, scope, id, bind_id, num_args, arg_names, arg_types, arg_values, flags); } /** * Sets the duration field of a COMPLETE trace event. It must be called with * the handle returned from AddTraceEvent(). **/ virtual void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, const char* name, uint64_t handle) {} class TraceStateObserver { public: virtual ~TraceStateObserver() = default; virtual void OnTraceEnabled() = 0; virtual void OnTraceDisabled() = 0; }; /** Adds tracing state change observer. */ virtual void AddTraceStateObserver(TraceStateObserver*) {} /** Removes tracing state change observer. */ virtual void RemoveTraceStateObserver(TraceStateObserver*) {} }; } // namespace v8 #endif // V8_V8_PLATFORM_H_
{ "pile_set_name": "Github" }
# -*- coding: binary -*- module Msf require 'msf/core/exploit/tcp' ### # # This module exposes methods that may be useful to exploits that deal with # servers that speak the File Transfer Protocol (FTP). # ### module Exploit::Remote::Ftp include Exploit::Remote::Tcp # # Creates an instance of an FTP exploit module. # def initialize(info = {}) super # Register the options that all FTP exploits may make use of. register_options( [ Opt::RHOST, Opt::RPORT(21), OptString.new('FTPUSER', [ false, 'The username to authenticate as', 'anonymous']), OptString.new('FTPPASS', [ false, 'The password for the specified username', 'mozilla@example.com']) ], Msf::Exploit::Remote::Ftp) register_advanced_options( [ OptInt.new('FTPTimeout', [ true, 'The number of seconds to wait for a reply from an FTP command', 16]), OptBool.new('FTPDEBUG', [ false, 'Whether or not to print verbose debug statements', false ]), OptBool.new('PassiveMode', [ false, 'Set true for extended passive (EPSV) ftp mode.', false]) ], Msf::Exploit::Remote::Ftp) register_autofilter_ports([ 21, 2121]) register_autofilter_services(%W{ ftp }) @ftpbuff = "" end # # This method establishes an FTP connection to host and port specified by # the 'rhost' and 'rport' methods. After connecting, the banner # message is read in and stored in the 'banner' attribute. # def connect(global = true, verbose = nil) verbose ||= datastore['FTPDEBUG'] verbose ||= datastore['VERBOSE'] print_status("Connecting to FTP server #{rhost}:#{rport}...") if verbose fd = super(global) # Wait for a banner to arrive... self.banner = recv_ftp_resp(fd) print_status("Connected to target FTP server.") if verbose # Return the file descriptor to the caller fd end # # This method handles establishing datasocket for data channel # def data_connect(mode = nil, nsock = self.sock) pass_mode = datastore['PassiveMode'] if mode res = send_cmd([ 'TYPE' , mode ], true, nsock) return nil if not res =~ /^200/ end # force datasocket to renegotiate self.datasocket.shutdown if self.datasocket != nil # Need to be able to do both extended and normal # passive modes. normal passive mode is default # details of EPSV are in RFC2428 # pass_mode = true is EPSV; false is PASV if pass_mode res = send_cmd(['EPSV'], true, nsock) return nil if not res =~ /^229/ # 229 Entering Passive Mode (|||port|) if res =~ /\(\|\|\|(\d+)\|\)/ # convert port to FTP syntax datahost = "#{rhost}" dataport = $1.to_i self.datasocket = Rex::Socket::Tcp.create( 'PeerHost' => datahost, 'PeerPort' => dataport, 'Context' => { 'Msf' => framework, 'MsfExploit' => self } ) end else res = send_cmd(['PASV'], true, nsock) return nil if not res =~ /^227/ # 227 Entering Passive Mode (127,0,0,1,196,5) if res =~ /\((\d+)\,(\d+),(\d+),(\d+),(\d+),(\d+)/ # convert port to FTP syntax datahost = "#{$1}.#{$2}.#{$3}.#{$4}" dataport = ($5.to_i * 256) + $6.to_i self.datasocket = Rex::Socket::Tcp.create( 'PeerHost' => datahost, 'PeerPort' => dataport, 'Context' => { 'Msf' => framework, 'MsfExploit' => self } ) end end self.datasocket end # # This method handles disconnecting our data channel # def data_disconnect begin if datasocket datasocket.shutdown datasocket.close end rescue IOError end datasocket = nil if datasocket end # # Connect and login to the remote FTP server using the credentials # that have been supplied in the exploit options. # def connect_login(global = true, verbose = nil) verbose ||= datastore['FTPDEBUG'] verbose ||= datastore['VERBOSE'] ftpsock = connect(global, verbose) if !(user and pass) print_error("No username and password were supplied, unable to login") return false end print_status("Authenticating as #{user} with password #{pass}...") if verbose res = send_user(user, ftpsock) if (res !~ /^(331|2)/) print_error("The server rejected our username") if verbose return false end if (pass) print_status("Sending password...") if verbose res = send_pass(pass, ftpsock) if (res !~ /^2/) print_error("The server rejected our password") if verbose return false end end return true end # # This method logs in as the supplied user by transmitting the FTP # 'USER <user>' command. # def send_user(user, nsock = self.sock) raw_send("USER #{user}\r\n", nsock) recv_ftp_resp(nsock) end # # This method completes user authentication by sending the supplied # password using the FTP 'PASS <pass>' command. # def send_pass(pass, nsock = self.sock) raw_send("PASS #{pass}\r\n", nsock) recv_ftp_resp(nsock) end # # This method sends a QUIT command. # def send_quit(nsock = self.sock) raw_send("QUIT\r\n", nsock) recv_ftp_resp(nsock) end # # This method sends one command with zero or more parameters # def send_cmd(args, recv = true, nsock = self.sock) cmd = args.join(" ") + "\r\n" ret = raw_send(cmd, nsock) if (recv) return recv_ftp_resp(nsock) end return ret end # # This method transmits the command in args and receives / uploads DATA via data channel # For commands not needing data, it will fall through to the original send_cmd # # For commands that send data only, the return will be the server response. # For commands returning both data and a server response, an array will be returned. # # NOTE: This function always waits for a response from the server. # def send_cmd_data(args, data, mode = 'a', nsock = self.sock) type = nil # implement some aliases for various commands if (args[0] =~ /^DIR$/i || args[0] =~ /^LS$/i) # TODO || args[0] =~ /^MDIR$/i || args[0] =~ /^MLS$/i args[0] = "LIST" type = "get" elsif (args[0] =~ /^GET$/i) args[0] = "RETR" type = "get" elsif (args[0] =~ /^PUT$/i) args[0] = "STOR" type = "put" end # fall back if it's not a supported data command if not type return send_cmd(args, true, nsock) end # Set the transfer mode and connect to the remove server return nil if not data_connect(mode) # Our pending command should have got a connection now. res = send_cmd(args, true, nsock) # make sure could open port return nil unless res =~ /^(150|125) / # dispatch to the proper method if (type == "get") # failed listings just disconnect.. begin data = datasocket.get(ftp_timeout, ftp_data_timeout) rescue ::EOFError data = nil end else sent = self.datasocket.put(data) end # close data channel so command channel updates data_disconnect # get status of transfer ret = nil if (type == "get") ret = recv_ftp_resp(nsock) ret = [ ret, data ] else ret = recv_ftp_resp(nsock) end ret end # # This method transmits a FTP command and waits for a response. If one is # received, it is returned to the caller. # def raw_send_recv(cmd, nsock = self.sock) nsock.put(cmd) nsock.get_once(-1, ftp_timeout) end # # This method reads an FTP response based on FTP continuation stuff # def recv_ftp_resp(nsock = self.sock) found_end = false resp = "" left = "" if !@ftpbuff.empty? left << @ftpbuff @ftpbuff = "" end while true data = nsock.get_once(-1, ftp_timeout) if not data @ftpbuff << resp @ftpbuff << left return data end got = left + data left = "" # handle the end w/o newline case enlidx = got.rindex(0x0a.chr) if enlidx != (got.length-1) if not enlidx left << got next else left << got.slice!((enlidx+1)..got.length) end end # split into lines rarr = got.split(/\r?\n/) rarr.each do |ln| if not found_end resp << ln resp << "\r\n" if ln.length > 3 and ln[3,1] == ' ' found_end = true end else left << ln left << "\r\n" end end if found_end @ftpbuff << left print_status("FTP recv: #{resp.inspect}") if datastore['FTPDEBUG'] return resp end end end # # This method transmits a FTP command and does not wait for a response # def raw_send(cmd, nsock = self.sock) print_status("FTP send: #{cmd.inspect}") if datastore['FTPDEBUG'] nsock.put(cmd) end ## # # Wrappers for getters # ## # # Returns the user string from the 'FTPUSER' option. # def user datastore['FTPUSER'] end # # Returns the user string from the 'FTPPASS' option. # def pass datastore['FTPPASS'] end # # Returns the number of seconds to wait for a FTP reply # def ftp_timeout (datastore['FTPTimeout'] || 10).to_i end # # Returns the number of seconds to wait to get more FTP data # def ftp_data_timeout (datastore['FTPDataTimeout'] || 1).to_i end protected # # This attribute holds the banner that was read in after a successful call # to connect or connect_login. # attr_accessor :banner, :datasocket end end
{ "pile_set_name": "Github" }
/* valid adjtimex test * by: John Stultz <john.stultz@linaro.org> * (C) Copyright Linaro 2015 * Licensed under the GPLv2 * * This test validates adjtimex interface with valid * and invalid test data. * * Usage: valid-adjtimex * * To build: * $ gcc valid-adjtimex.c -o valid-adjtimex -lrt * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <sys/timex.h> #include <string.h> #include <signal.h> #include <unistd.h> #include "../kselftest.h" #define NSEC_PER_SEC 1000000000LL #define USEC_PER_SEC 1000000LL #define ADJ_SETOFFSET 0x0100 #include <sys/syscall.h> static int clock_adjtime(clockid_t id, struct timex *tx) { return syscall(__NR_clock_adjtime, id, tx); } /* clear NTP time_status & time_state */ int clear_time_state(void) { struct timex tx; int ret; tx.modes = ADJ_STATUS; tx.status = 0; ret = adjtimex(&tx); return ret; } #define NUM_FREQ_VALID 32 #define NUM_FREQ_OUTOFRANGE 4 #define NUM_FREQ_INVALID 2 long valid_freq[NUM_FREQ_VALID] = { -499<<16, -450<<16, -400<<16, -350<<16, -300<<16, -250<<16, -200<<16, -150<<16, -100<<16, -75<<16, -50<<16, -25<<16, -10<<16, -5<<16, -1<<16, -1000, 1<<16, 5<<16, 10<<16, 25<<16, 50<<16, 75<<16, 100<<16, 150<<16, 200<<16, 250<<16, 300<<16, 350<<16, 400<<16, 450<<16, 499<<16, }; long outofrange_freq[NUM_FREQ_OUTOFRANGE] = { -1000<<16, -550<<16, 550<<16, 1000<<16, }; #define LONG_MAX (~0UL>>1) #define LONG_MIN (-LONG_MAX - 1) long invalid_freq[NUM_FREQ_INVALID] = { LONG_MAX, LONG_MIN, }; int validate_freq(void) { struct timex tx; int ret, pass = 0; int i; clear_time_state(); memset(&tx, 0, sizeof(struct timex)); /* Set the leap second insert flag */ printf("Testing ADJ_FREQ... "); fflush(stdout); for (i = 0; i < NUM_FREQ_VALID; i++) { tx.modes = ADJ_FREQUENCY; tx.freq = valid_freq[i]; ret = adjtimex(&tx); if (ret < 0) { printf("[FAIL]\n"); printf("Error: adjtimex(ADJ_FREQ, %ld - %ld ppm\n", valid_freq[i], valid_freq[i]>>16); pass = -1; goto out; } tx.modes = 0; ret = adjtimex(&tx); if (tx.freq != valid_freq[i]) { printf("Warning: freq value %ld not what we set it (%ld)!\n", tx.freq, valid_freq[i]); } } for (i = 0; i < NUM_FREQ_OUTOFRANGE; i++) { tx.modes = ADJ_FREQUENCY; tx.freq = outofrange_freq[i]; ret = adjtimex(&tx); if (ret < 0) { printf("[FAIL]\n"); printf("Error: adjtimex(ADJ_FREQ, %ld - %ld ppm\n", outofrange_freq[i], outofrange_freq[i]>>16); pass = -1; goto out; } tx.modes = 0; ret = adjtimex(&tx); if (tx.freq == outofrange_freq[i]) { printf("[FAIL]\n"); printf("ERROR: out of range value %ld actually set!\n", tx.freq); pass = -1; goto out; } } if (sizeof(long) == 8) { /* this case only applies to 64bit systems */ for (i = 0; i < NUM_FREQ_INVALID; i++) { tx.modes = ADJ_FREQUENCY; tx.freq = invalid_freq[i]; ret = adjtimex(&tx); if (ret >= 0) { printf("[FAIL]\n"); printf("Error: No failure on invalid ADJ_FREQUENCY %ld\n", invalid_freq[i]); pass = -1; goto out; } } } printf("[OK]\n"); out: /* reset freq to zero */ tx.modes = ADJ_FREQUENCY; tx.freq = 0; ret = adjtimex(&tx); return pass; } int set_offset(long long offset, int use_nano) { struct timex tmx = {}; int ret; tmx.modes = ADJ_SETOFFSET; if (use_nano) { tmx.modes |= ADJ_NANO; tmx.time.tv_sec = offset / NSEC_PER_SEC; tmx.time.tv_usec = offset % NSEC_PER_SEC; if (offset < 0 && tmx.time.tv_usec) { tmx.time.tv_sec -= 1; tmx.time.tv_usec += NSEC_PER_SEC; } } else { tmx.time.tv_sec = offset / USEC_PER_SEC; tmx.time.tv_usec = offset % USEC_PER_SEC; if (offset < 0 && tmx.time.tv_usec) { tmx.time.tv_sec -= 1; tmx.time.tv_usec += USEC_PER_SEC; } } ret = clock_adjtime(CLOCK_REALTIME, &tmx); if (ret < 0) { printf("(sec: %ld usec: %ld) ", tmx.time.tv_sec, tmx.time.tv_usec); printf("[FAIL]\n"); return -1; } return 0; } int set_bad_offset(long sec, long usec, int use_nano) { struct timex tmx = {}; int ret; tmx.modes = ADJ_SETOFFSET; if (use_nano) tmx.modes |= ADJ_NANO; tmx.time.tv_sec = sec; tmx.time.tv_usec = usec; ret = clock_adjtime(CLOCK_REALTIME, &tmx); if (ret >= 0) { printf("Invalid (sec: %ld usec: %ld) did not fail! ", tmx.time.tv_sec, tmx.time.tv_usec); printf("[FAIL]\n"); return -1; } return 0; } int validate_set_offset(void) { printf("Testing ADJ_SETOFFSET... "); fflush(stdout); /* Test valid values */ if (set_offset(NSEC_PER_SEC - 1, 1)) return -1; if (set_offset(-NSEC_PER_SEC + 1, 1)) return -1; if (set_offset(-NSEC_PER_SEC - 1, 1)) return -1; if (set_offset(5 * NSEC_PER_SEC, 1)) return -1; if (set_offset(-5 * NSEC_PER_SEC, 1)) return -1; if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) return -1; if (set_offset(-5 * NSEC_PER_SEC - NSEC_PER_SEC / 2, 1)) return -1; if (set_offset(USEC_PER_SEC - 1, 0)) return -1; if (set_offset(-USEC_PER_SEC + 1, 0)) return -1; if (set_offset(-USEC_PER_SEC - 1, 0)) return -1; if (set_offset(5 * USEC_PER_SEC, 0)) return -1; if (set_offset(-5 * USEC_PER_SEC, 0)) return -1; if (set_offset(5 * USEC_PER_SEC + USEC_PER_SEC / 2, 0)) return -1; if (set_offset(-5 * USEC_PER_SEC - USEC_PER_SEC / 2, 0)) return -1; /* Test invalid values */ if (set_bad_offset(0, -1, 1)) return -1; if (set_bad_offset(0, -1, 0)) return -1; if (set_bad_offset(0, 2 * NSEC_PER_SEC, 1)) return -1; if (set_bad_offset(0, 2 * USEC_PER_SEC, 0)) return -1; if (set_bad_offset(0, NSEC_PER_SEC, 1)) return -1; if (set_bad_offset(0, USEC_PER_SEC, 0)) return -1; if (set_bad_offset(0, -NSEC_PER_SEC, 1)) return -1; if (set_bad_offset(0, -USEC_PER_SEC, 0)) return -1; printf("[OK]\n"); return 0; } int main(int argc, char **argv) { if (validate_freq()) return ksft_exit_fail(); if (validate_set_offset()) return ksft_exit_fail(); return ksft_exit_pass(); }
{ "pile_set_name": "Github" }
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ package org.apache.cxf.rs.security.oauth2.grants; import java.util.Collections; import java.util.List; import java.util.logging.Logger; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.MultivaluedMap; import org.apache.cxf.common.logging.LogUtils; import org.apache.cxf.rs.security.oauth2.common.AccessTokenRegistration; import org.apache.cxf.rs.security.oauth2.common.Client; import org.apache.cxf.rs.security.oauth2.common.OAuthError; import org.apache.cxf.rs.security.oauth2.common.ServerAccessToken; import org.apache.cxf.rs.security.oauth2.common.UserSubject; import org.apache.cxf.rs.security.oauth2.provider.AccessTokenGrantHandler; import org.apache.cxf.rs.security.oauth2.provider.OAuthDataProvider; import org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException; import org.apache.cxf.rs.security.oauth2.utils.OAuthConstants; import org.apache.cxf.rs.security.oauth2.utils.OAuthUtils; /** * Abstract access token grant handler */ public abstract class AbstractGrantHandler implements AccessTokenGrantHandler { protected static final Logger LOG = LogUtils.getL7dLogger(AbstractGrantHandler.class); private List<String> supportedGrants; private OAuthDataProvider dataProvider; private boolean partialMatchScopeValidation; private boolean canSupportPublicClients; protected AbstractGrantHandler(String grant) { supportedGrants = Collections.singletonList(grant); } protected AbstractGrantHandler(List<String> grants) { if (grants.isEmpty()) { throw new IllegalArgumentException("The list of grant types can not be empty"); } supportedGrants = grants; } public void setDataProvider(OAuthDataProvider dataProvider) { this.dataProvider = dataProvider; } public OAuthDataProvider getDataProvider() { return dataProvider; } public List<String> getSupportedGrantTypes() { return Collections.unmodifiableList(supportedGrants); } protected String getSingleGrantType() { if (supportedGrants.size() > 1) { String errorMessage = "Request grant type must be specified"; LOG.warning(errorMessage); throw new WebApplicationException(500); } return supportedGrants.get(0); } protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, MultivaluedMap<String, String> params) { return doCreateAccessToken(client, subject, OAuthUtils.parseScope(params.getFirst(OAuthConstants.SCOPE)), getAudiences(client, params.getFirst(OAuthConstants.CLIENT_AUDIENCE))); } protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, List<String> requestedScopes) { return doCreateAccessToken(client, subject, getSingleGrantType(), requestedScopes); } protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, List<String> requestedScopes, List<String> audiences) { return doCreateAccessToken(client, subject, getSingleGrantType(), requestedScopes, audiences); } protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes) { return doCreateAccessToken(client, subject, requestedGrant, requestedScopes, Collections.emptyList()); } protected ServerAccessToken doCreateAccessToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes, List<String> audiences) { ServerAccessToken token = getPreAuthorizedToken(client, subject, requestedGrant, requestedScopes, audiences); if (token != null) { return token; } // Delegate to the data provider to create the one AccessTokenRegistration reg = new AccessTokenRegistration(); reg.setClient(client); reg.setGrantType(requestedGrant); reg.setSubject(subject); reg.setRequestedScope(requestedScopes); reg.setApprovedScope(getApprovedScopes(client, subject, requestedScopes)); reg.setAudiences(audiences); return dataProvider.createAccessToken(reg); } protected List<String> getApprovedScopes(Client client, UserSubject subject, List<String> requestedScopes) { // This method can be overridden if the down-scoping is required return Collections.emptyList(); } protected ServerAccessToken getPreAuthorizedToken(Client client, UserSubject subject, String requestedGrant, List<String> requestedScopes, List<String> audiences) { if (!OAuthUtils.validateScopes(requestedScopes, client.getRegisteredScopes(), partialMatchScopeValidation)) { throw new OAuthServiceException(new OAuthError(OAuthConstants.INVALID_SCOPE)); } if (!OAuthUtils.validateAudiences(audiences, client.getRegisteredAudiences())) { throw new OAuthServiceException(new OAuthError(OAuthConstants.INVALID_GRANT)); } // Get a pre-authorized token if available return dataProvider.getPreauthorizedToken( client, requestedScopes, subject, requestedGrant); } public boolean isPartialMatchScopeValidation() { return partialMatchScopeValidation; } public void setPartialMatchScopeValidation(boolean partialMatchScopeValidation) { this.partialMatchScopeValidation = partialMatchScopeValidation; } public void setCanSupportPublicClients(boolean support) { canSupportPublicClients = support; } public boolean isCanSupportPublicClients() { return canSupportPublicClients; } protected List<String> getAudiences(Client client, String clientAudience) { if (client.getRegisteredAudiences().isEmpty() && clientAudience == null) { return Collections.emptyList(); } if (clientAudience != null) { List<String> audiences = Collections.singletonList(clientAudience); if (!OAuthUtils.validateAudiences(audiences, client.getRegisteredAudiences())) { throw new OAuthServiceException(OAuthConstants.INVALID_GRANT); } return audiences; } return client.getRegisteredAudiences(); } }
{ "pile_set_name": "Github" }
object Test extends App { val a = Map("a" -> Some(1), "b" -> None) println(a) // inferred type should be Map[String, Int] val res = a collect {case (p, Some(a)) => (p, a)} // variations: const target -> switch, non-const -> normal match, char target --> scrut needs toInt, // eta-expanded --> work is done by typedFunction, non-eta-expanded --> typedMatch object nonConstCharEta { final val GT : Char = 'a' final val GTGT : Char = 'b' final val GTGTGT : Char = 'c' final val GTEQ : Char = 'd' final val GTGTEQ : Char = 'e' final val GTGTGTEQ: Char = 'f' final val ASSIGN : Char = 'g' def acceptClosingAngle(in: Char): Unit = { val closers: PartialFunction[Char, Char] = { case GTGTGTEQ => GTGTEQ case GTGTGT => GTGT case GTGTEQ => GTEQ case GTGT => GT case GTEQ => ASSIGN } if (closers isDefinedAt in) println(closers(in)) else println("undefined") } def test() = { acceptClosingAngle(GTGT) acceptClosingAngle(ASSIGN) } } object nonConstChar { final val GT : Char = 'a' final val GTGT : Char = 'b' final val GTGTGT : Char = 'c' final val GTEQ : Char = 'd' final val GTGTEQ : Char = 'e' final val GTGTGTEQ: Char = 'f' final val ASSIGN : Char = 'g' def acceptClosingAngle(in: Char): Unit = { val closers: PartialFunction[Char, Char] = x => x match { case GTGTGTEQ => GTGTEQ case GTGTGT => GTGT case GTGTEQ => GTEQ case GTGT => GT case GTEQ => ASSIGN } if (closers isDefinedAt in) println(closers(in)) else println("undefined") } def test() = { acceptClosingAngle(GTGT) acceptClosingAngle(ASSIGN) } } object constCharEta { final val GT = 'a' final val GTGT = 'b' final val GTGTGT = 'c' final val GTEQ = 'd' final val GTGTEQ = 'e' final val GTGTGTEQ= 'f' final val ASSIGN = 'g' def acceptClosingAngle(in: Char): Unit = { val closers: PartialFunction[Char, Char] = x => x match { case GTGTGTEQ => GTGTEQ case GTGTGT => GTGT case GTGTEQ => GTEQ case GTGT => GT case GTEQ => ASSIGN } if (closers isDefinedAt in) println(closers(in)) else println("undefined") } def test() = { acceptClosingAngle(GTGT) acceptClosingAngle(ASSIGN) } } object constChar { final val GT = 'a' final val GTGT = 'b' final val GTGTGT = 'c' final val GTEQ = 'd' final val GTGTEQ = 'e' final val GTGTGTEQ= 'f' final val ASSIGN = 'g' def acceptClosingAngle(in: Char): Unit = { val closers: PartialFunction[Char, Char] = { case GTGTGTEQ => GTGTEQ case GTGTGT => GTGT case GTGTEQ => GTEQ case GTGT => GT case GTEQ => ASSIGN } if (closers isDefinedAt in) println(closers(in)) else println("undefined") } def test() = { acceptClosingAngle(GTGT) acceptClosingAngle(ASSIGN) } } object constIntEta { final val GT = 1 final val GTGT = 2 final val GTGTGT = 3 final val GTEQ = 4 final val GTGTEQ = 5 final val GTGTGTEQ = 6 final val ASSIGN = 7 def acceptClosingAngle(in: Int): Unit = { val closers: PartialFunction[Int, Int] = x => {println("hai!"); (x + 1)} match { case GTGTGTEQ => GTGTEQ case GTGTGT => GTGT case GTGTEQ => GTEQ case GTGT => GT case GTEQ => ASSIGN } if (closers isDefinedAt in) println(closers(in)) else println("undefined") } def test() = { acceptClosingAngle(GTGT) acceptClosingAngle(ASSIGN) } } object constInt { final val GT = 1 final val GTGT = 2 final val GTGTGT = 3 final val GTEQ = 4 final val GTGTEQ = 5 final val GTGTGTEQ = 6 final val ASSIGN = 7 def acceptClosingAngle(in: Int): Unit = { val closers: PartialFunction[Int, Int] = { case GTGTGTEQ => GTGTEQ case GTGTGT => GTGT case GTGTEQ => GTEQ case GTGT => GT case GTEQ => ASSIGN } if (closers isDefinedAt in) println(closers(in)) else println("undefined") } def test() = { acceptClosingAngle(GTGT) acceptClosingAngle(ASSIGN) } } println(res) // prints "Map(a -> 1)" nonConstCharEta.test() nonConstChar.test() constCharEta.test() constChar.test() constIntEta.test() constInt.test() }
{ "pile_set_name": "Github" }
package packngo const planBasePath = "/plans" // PlanService interface defines available plan methods type PlanService interface { List() ([]Plan, *Response, error) } type planRoot struct { Plans []Plan `json:"plans"` } // Plan represents a Packet service plan type Plan struct { ID string `json:"id"` Slug string `json:"slug,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Line string `json:"line,omitempty"` Specs *Specs `json:"specs,omitempty"` Pricing *Pricing `json:"pricing,omitempty"` } func (p Plan) String() string { return Stringify(p) } // Specs - the server specs for a plan type Specs struct { Cpus []*Cpus `json:"cpus,omitempty"` Memory *Memory `json:"memory,omitempty"` Drives []*Drives `json:"drives,omitempty"` Nics []*Nics `json:"nics,omitempty"` Features *Features `json:"features,omitempty"` } func (s Specs) String() string { return Stringify(s) } // Cpus - the CPU config details for specs on a plan type Cpus struct { Count int `json:"count,omitempty"` Type string `json:"type,omitempty"` } func (c Cpus) String() string { return Stringify(c) } // Memory - the RAM config details for specs on a plan type Memory struct { Total string `json:"total,omitempty"` } func (m Memory) String() string { return Stringify(m) } // Drives - the storage config details for specs on a plan type Drives struct { Count int `json:"count,omitempty"` Size string `json:"size,omitempty"` Type string `json:"type,omitempty"` } func (d Drives) String() string { return Stringify(d) } // Nics - the network hardware details for specs on a plan type Nics struct { Count int `json:"count,omitempty"` Type string `json:"type,omitempty"` } func (n Nics) String() string { return Stringify(n) } // Features - other features in the specs for a plan type Features struct { Raid bool `json:"raid,omitempty"` Txt bool `json:"txt,omitempty"` } func (f Features) String() string { return Stringify(f) } // Pricing - the pricing options on a plan type Pricing struct { Hourly float32 `json:"hourly,omitempty"` Monthly float32 `json:"monthly,omitempty"` } func (p Pricing) String() string { return Stringify(p) } // PlanServiceOp implements PlanService type PlanServiceOp struct { client *Client } // List method returns all available plans func (s *PlanServiceOp) List() ([]Plan, *Response, error) { root := new(planRoot) resp, err := s.client.DoRequest("GET", planBasePath, nil, root) if err != nil { return nil, resp, err } return root.Plans, resp, err }
{ "pile_set_name": "Github" }
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS="" APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" warn ( ) { echo "$*" } die ( ) { echo echo "$*" echo exit 1 } # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false case "`uname`" in CYGWIN* ) cygwin=true ;; Darwin* ) darwin=true ;; MINGW* ) msys=true ;; esac # Attempt to set APP_HOME # Resolve links: $0 may be a link PRG="$0" # Need this for relative symlinks. while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done SAVED="`pwd`" cd "`dirname \"$PRG\"`/" >/dev/null APP_HOME="`pwd -P`" cd "$SAVED" >/dev/null CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else JAVACMD="java" which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi # Increase the maximum file descriptors if we can. if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then MAX_FD_LIMIT=`ulimit -H -n` if [ $? -eq 0 ] ; then if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then MAX_FD="$MAX_FD_LIMIT" fi ulimit -n $MAX_FD if [ $? -ne 0 ] ; then warn "Could not set maximum file descriptor limit: $MAX_FD" fi else warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" fi fi # For Darwin, add options to specify how the application appears in the dock if $darwin; then GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" fi # For Cygwin, switch paths to Windows format before running java if $cygwin ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` SEP="" for dir in $ROOTDIRSRAW ; do ROOTDIRS="$ROOTDIRS$SEP$dir" SEP="|" done OURCYGPATTERN="(^($ROOTDIRS))" # Add a user-defined pattern to the cygpath arguments if [ "$GRADLE_CYGPATTERN" != "" ] ; then OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" fi # Now convert the arguments - kludge to limit ourselves to /bin/sh i=0 for arg in "$@" ; do CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` else eval `echo args$i`="\"$arg\"" fi i=$((i+1)) done case $i in (0) set -- ;; (1) set -- "$args0" ;; (2) set -- "$args0" "$args1" ;; (3) set -- "$args0" "$args1" "$args2" ;; (4) set -- "$args0" "$args1" "$args2" "$args3" ;; (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; esac fi # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules function splitJvmOpts() { JVM_OPTS=("$@") } eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
{ "pile_set_name": "Github" }
// Boost.Bimap // // Copyright (c) 2006-2007 Matias Capeletto // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) /// \file relation/symmetrical_base.hpp /// \brief Base class for symmetrical types #ifndef BOOST_BIMAP_RELATION_SYMMETRICAL_BASE_HPP #define BOOST_BIMAP_RELATION_SYMMETRICAL_BASE_HPP #if defined(_MSC_VER) #pragma once #endif #include <boost/config.hpp> #include <boost/mpl/if.hpp> #include <boost/type_traits/remove_const.hpp> // Boost.Bimap #include <boost/bimap/tags/tagged.hpp> #include <boost/bimap/tags/support/default_tagged.hpp> #include <boost/bimap/relation/member_at.hpp> namespace boost { namespace bimaps { namespace relation { /// \brief Base of symetrical tagged types. /** **/ template< class TA, class TB, bool force_mutable = false > class symmetrical_base { public: typedef BOOST_DEDUCED_TYPENAME tags::support::default_tagged < TA, member_at::left >::type tagged_left_type; typedef BOOST_DEDUCED_TYPENAME tags::support::default_tagged < TB, member_at::right >::type tagged_right_type; public: //@{ /// The type stored in the relation typedef BOOST_DEDUCED_TYPENAME ::boost::mpl::if_c< force_mutable, BOOST_DEDUCED_TYPENAME ::boost::remove_const< BOOST_DEDUCED_TYPENAME tagged_left_type::value_type >::type, BOOST_DEDUCED_TYPENAME tagged_left_type::value_type >::type left_value_type; typedef BOOST_DEDUCED_TYPENAME ::boost::mpl::if_c< force_mutable, BOOST_DEDUCED_TYPENAME ::boost::remove_const< BOOST_DEDUCED_TYPENAME tagged_right_type::value_type >::type, BOOST_DEDUCED_TYPENAME tagged_right_type::value_type >::type right_value_type; //@} //@{ /// The tag of the member. By default it is \c member_at::{side} typedef BOOST_DEDUCED_TYPENAME tagged_left_type ::tag left_tag; typedef BOOST_DEDUCED_TYPENAME tagged_right_type::tag right_tag; //@} }; } // namespace relation } // namespace bimaps } // namespace boost #endif // BOOST_BIMAP_RELATION_SYMMETRICAL_BASE_HPP
{ "pile_set_name": "Github" }
/* * wpa_supplicant / WPS integration * Copyright (c) 2008, Jouni Malinen <j@w1.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Alternatively, this software may be distributed under the terms of BSD * license. * * See README and COPYING for more details. */ #ifndef WPS_SUPPLICANT_H #define WPS_SUPPLICANT_H #ifdef CONFIG_WPS #include "wps/wps.h" #include "wps/wps_defs.h" int wpas_wps_init(struct wpa_supplicant *wpa_s); void wpas_wps_deinit(struct wpa_supplicant *wpa_s); int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s); enum wps_request_type wpas_wps_get_req_type(struct wpa_ssid *ssid); int wpas_wps_start_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid); int wpas_wps_start_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, const char *pin); int wpas_wps_start_reg(struct wpa_supplicant *wpa_s, const u8 *bssid, const char *pin); int wpas_wps_ssid_bss_match(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, struct wpa_scan_res *bss); int wpas_wps_ssid_wildcard_ok(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, struct wpa_scan_res *bss); int wpas_wps_scan_pbc_overlap(struct wpa_supplicant *wpa_s, struct wpa_scan_res *selected, struct wpa_ssid *ssid); void wpas_wps_notify_scan_results(struct wpa_supplicant *wpa_s); int wpas_wps_searching(struct wpa_supplicant *wpa_s); #else /* CONFIG_WPS */ static inline int wpas_wps_init(struct wpa_supplicant *wpa_s) { return 0; } static inline void wpas_wps_deinit(struct wpa_supplicant *wpa_s) { } static inline int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s) { return 0; } static inline u8 wpas_wps_get_req_type(struct wpa_ssid *ssid) { return 0; } static inline int wpas_wps_ssid_bss_match(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, struct wpa_scan_res *bss) { return -1; } static inline int wpas_wps_ssid_wildcard_ok(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, struct wpa_scan_res *bss) { return 0; } static inline int wpas_wps_scan_pbc_overlap(struct wpa_supplicant *wpa_s, struct wpa_scan_res *selected, struct wpa_ssid *ssid) { return 0; } static inline void wpas_wps_notify_scan_results(struct wpa_supplicant *wpa_s) { } static inline int wpas_wps_searching(struct wpa_supplicant *wpa_s) { return 0; } #endif /* CONFIG_WPS */ #endif /* WPS_SUPPLICANT_H */
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &100470 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 490018} m_Layer: 26 m_Name: Attach_ControllerTip m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &101548 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 471722} - 81: {fileID: 8194540} m_Layer: 0 m_Name: FollowHead m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &105336 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 402768} m_Layer: 0 m_Name: NoSteamVRFallbackObjects m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 0 --- !u!1 &107460 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 409054} - 23: {fileID: 2326430} - 33: {fileID: 3390842} - 114: {fileID: 11451472} m_Layer: 0 m_Name: PlayVolume m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 0 --- !u!1 &107946 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 447954} - 114: {fileID: 11465950} m_Layer: 0 m_Name: Player m_TagString: Untagged m_Icon: {fileID: 3936346786652291628, guid: 0000000000000000d000000000000000, type: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &109154 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 422332} - 33: {fileID: 3368578} - 23: {fileID: 2353626} m_Layer: 26 m_Name: Indicator m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &110716 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 496744} - 20: {fileID: 2083460} - 114: {fileID: 11476190} m_Layer: 0 m_Name: FallbackObjects m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &114188 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 494198} m_Layer: 0 m_Name: SteamVRObjects m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &121078 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 453574} - 135: {fileID: 13533284} - 54: {fileID: 5452286} m_Layer: 26 m_Name: HeadCollider m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &125964 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 429506} - 20: {fileID: 2014920} - 114: {fileID: 11450526} - 92: {fileID: 9215702} - 124: {fileID: 12440092} - 114: {fileID: 114000012530188460} m_Layer: 0 m_Name: VRCamera m_TagString: MainCamera m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &129006 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 495400} - 114: {fileID: 11405908} m_Layer: 0 m_Name: ControllerHoverHighlight m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &133480 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 471232} - 114: {fileID: 11461462} - 114: {fileID: 11464692} - 114: {fileID: 114000013786455312} m_Layer: 0 m_Name: InputModule m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &135526 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 458882} - 114: {fileID: 11497470} - 54: {fileID: 5492098} m_Layer: 26 m_Name: FallbackHand m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &144230 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 476540} - 114: {fileID: 11450312} m_Layer: 26 m_Name: Hand1 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &160596 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 485514} - 114: {fileID: 11401046} m_Layer: 26 m_Name: Hand2 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &165334 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 480432} m_Layer: 26 m_Name: Attach_ControllerTip m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &167242 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 451882} - 114: {fileID: 11461284} m_Layer: 0 m_Name: ControllerHoverHighlight m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &168724 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 472612} - 114: {fileID: 11479638} m_Layer: 0 m_Name: '[SteamVR]' m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &171246 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 446772} - 114: {fileID: 11489144} m_Layer: 26 m_Name: ControllerButtonHints m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &177230 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 413580} - 114: {fileID: 11494192} m_Layer: 26 m_Name: ControllerButtonHints m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &191996 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 476076} - 136: {fileID: 13693334} - 114: {fileID: 11455280} - 54: {fileID: 5475726} m_Layer: 27 m_Name: BodyCollider m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &402768 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 105336} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 496744} - {fileID: 458882} m_Father: {fileID: 447954} m_RootOrder: 1 --- !u!4 &409054 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 107460} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 447954} m_RootOrder: 4 --- !u!4 &413580 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 177230} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 476540} m_RootOrder: 2 --- !u!4 &422332 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 109154} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0.025, y: 0.025, z: 0.025} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 458882} m_RootOrder: 0 --- !u!4 &429506 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 125964} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 494198} m_RootOrder: 4 --- !u!4 &446772 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 171246} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 485514} m_RootOrder: 2 --- !u!4 &447954 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 107946} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 494198} - {fileID: 402768} - {fileID: 471722} - {fileID: 471232} - {fileID: 409054} - {fileID: 4000012025983752} m_Father: {fileID: 0} m_RootOrder: 0 --- !u!4 &451882 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 167242} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1.0100001, y: 1.01, z: 1.0100001} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 476540} m_RootOrder: 1 --- !u!4 &453574 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 121078} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 471722} m_RootOrder: 0 --- !u!4 &458882 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 135526} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 422332} m_Father: {fileID: 402768} m_RootOrder: 1 --- !u!4 &471232 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 133480} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 447954} m_RootOrder: 3 --- !u!4 &471722 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 101548} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 453574} m_Father: {fileID: 447954} m_RootOrder: 2 --- !u!4 &472612 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 168724} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 494198} m_RootOrder: 1 --- !u!4 &476076 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 191996} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 494198} m_RootOrder: 0 --- !u!4 &476540 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 144230} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: -0.25, y: 1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 490018} - {fileID: 451882} - {fileID: 413580} m_Father: {fileID: 494198} m_RootOrder: 2 --- !u!4 &480432 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 165334} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: -0.017, z: 0.0332} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 485514} m_RootOrder: 0 --- !u!4 &485514 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 160596} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0.25, y: 1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 480432} - {fileID: 495400} - {fileID: 446772} m_Father: {fileID: 494198} m_RootOrder: 3 --- !u!4 &490018 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 100470} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: -0.017, z: 0.0332} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 476540} m_RootOrder: 0 --- !u!4 &494198 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 114188} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 476076} - {fileID: 472612} - {fileID: 476540} - {fileID: 485514} - {fileID: 429506} - {fileID: 4000011044845102} m_Father: {fileID: 447954} m_RootOrder: 0 --- !u!4 &495400 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 129006} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1.0099999, y: 1.01, z: 1.0099999} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 485514} m_RootOrder: 1 --- !u!4 &496744 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 110716} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 1.75, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 402768} m_RootOrder: 0 --- !u!20 &2014920 Camera: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 125964} m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 m_BackGroundColor: {r: 0.028762981, g: 0.05902014, b: 0.1397059, a: 1} m_NormalizedViewPortRect: serializedVersion: 2 x: 0 y: 0 width: 1 height: 1 near clip plane: 0.05 far clip plane: 300 field of view: 60 orthographic: 0 orthographic size: 5 m_Depth: -1 m_CullingMask: serializedVersion: 2 m_Bits: 4160749567 m_RenderingPath: -1 m_TargetTexture: {fileID: 0} m_TargetDisplay: 0 m_TargetEye: 3 m_HDR: 0 m_OcclusionCulling: 1 m_StereoConvergence: 10 m_StereoSeparation: 0.022 m_StereoMirrorMode: 0 --- !u!20 &2083460 Camera: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 110716} m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 m_BackGroundColor: {r: 0.028762981, g: 0.05902014, b: 0.1397059, a: 1} m_NormalizedViewPortRect: serializedVersion: 2 x: 0 y: 0 width: 1 height: 1 near clip plane: 0.05 far clip plane: 300 field of view: 60 orthographic: 0 orthographic size: 5 m_Depth: -1 m_CullingMask: serializedVersion: 2 m_Bits: 4160749567 m_RenderingPath: -1 m_TargetTexture: {fileID: 0} m_TargetDisplay: 0 m_TargetEye: 0 m_HDR: 0 m_OcclusionCulling: 1 m_StereoConvergence: 10 m_StereoSeparation: 0.022 m_StereoMirrorMode: 0 --- !u!23 &2326430 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 107460} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 0 m_Materials: - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} m_SubsetIndices: m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_SelectedWireframeHidden: 0 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingOrder: 0 --- !u!23 &2353626 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 109154} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_Materials: - {fileID: 2100000, guid: 9e995e61de69d8647ae2b2d65eceab3f, type: 2} m_SubsetIndices: m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_SelectedWireframeHidden: 0 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingOrder: 0 --- !u!33 &3368578 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 109154} m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} --- !u!33 &3390842 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 107460} m_Mesh: {fileID: 0} --- !u!54 &5452286 Rigidbody: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 121078} serializedVersion: 2 m_Mass: 1 m_Drag: 0 m_AngularDrag: 0 m_UseGravity: 0 m_IsKinematic: 1 m_Interpolate: 0 m_Constraints: 0 m_CollisionDetection: 0 --- !u!54 &5475726 Rigidbody: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 191996} serializedVersion: 2 m_Mass: 1 m_Drag: 0 m_AngularDrag: 0 m_UseGravity: 0 m_IsKinematic: 1 m_Interpolate: 0 m_Constraints: 0 m_CollisionDetection: 0 --- !u!54 &5492098 Rigidbody: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 135526} serializedVersion: 2 m_Mass: 1 m_Drag: 0 m_AngularDrag: 0 m_UseGravity: 0 m_IsKinematic: 1 m_Interpolate: 0 m_Constraints: 0 m_CollisionDetection: 0 --- !u!81 &8194540 AudioListener: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 101548} m_Enabled: 1 --- !u!92 &9215702 Behaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 125964} m_Enabled: 1 --- !u!114 &11401046 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 160596} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 29e3e4511966ba94d8ba0b98c6c62f82, type: 3} m_Name: m_EditorClassIdentifier: otherHand: {fileID: 11450312} startingHandType: 2 hoverSphereTransform: {fileID: 0} hoverSphereRadius: 0.05 hoverLayerMask: serializedVersion: 2 m_Bits: 4294967295 hoverUpdateInterval: 0.1 noSteamVRFallbackCamera: {fileID: 0} noSteamVRFallbackMaxDistanceNoItem: 10 noSteamVRFallbackMaxDistanceWithItem: 0.5 controllerPrefab: {fileID: 168468, guid: 3f39fc63a93686e4a8e9168ee73f24d9, type: 2} showDebugText: 0 spewDebugText: 0 --- !u!114 &11405908 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 129006} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 8ca2cc563cc33f542a5d9f8f661184ba, type: 3} m_Name: m_EditorClassIdentifier: highLightMaterial: {fileID: 2100000, guid: 7b939e5e799d98a469f594828ebab52e, type: 2} fireHapticsOnHightlight: 1 --- !u!114 &11450312 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 144230} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 29e3e4511966ba94d8ba0b98c6c62f82, type: 3} m_Name: m_EditorClassIdentifier: otherHand: {fileID: 11401046} startingHandType: 2 hoverSphereTransform: {fileID: 0} hoverSphereRadius: 0.05 hoverLayerMask: serializedVersion: 2 m_Bits: 4294967295 hoverUpdateInterval: 0.1 noSteamVRFallbackCamera: {fileID: 0} noSteamVRFallbackMaxDistanceNoItem: 10 noSteamVRFallbackMaxDistanceWithItem: 0.5 controllerPrefab: {fileID: 168468, guid: 3f39fc63a93686e4a8e9168ee73f24d9, type: 2} showDebugText: 0 spewDebugText: 0 --- !u!114 &11450526 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 125964} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 2ad1e469d4e3e04489f9a36419f1a4f8, type: 3} m_Name: m_EditorClassIdentifier: --- !u!114 &11451472 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 107460} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 1f0522eaef74d984591c060d05a095c8, type: 3} m_Name: m_EditorClassIdentifier: borderThickness: -0.07 wireframeHeight: 2 drawWireframeWhenSelectedOnly: 0 drawInGame: 1 size: 0 color: {r: 0, g: 1, b: 1, a: 0.922} vertices: - {x: 1.0000002, y: 0.01, z: -1.0000002} - {x: -1.0000002, y: 0.01, z: -1.0000002} - {x: -1.0000002, y: 0.01, z: 1.0000002} - {x: 1.0000002, y: 0.01, z: 1.0000002} - {x: 0.93000025, y: 0.01, z: -0.93000025} - {x: -0.93000025, y: 0.01, z: -0.93000025} - {x: -0.93000025, y: 0.01, z: 0.93000025} - {x: 0.93000025, y: 0.01, z: 0.93000025} --- !u!114 &11455280 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 191996} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 1731d642c0b250b48bb8cdfb153d9792, type: 3} m_Name: m_EditorClassIdentifier: head: {fileID: 0} --- !u!114 &11461284 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 167242} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 8ca2cc563cc33f542a5d9f8f661184ba, type: 3} m_Name: m_EditorClassIdentifier: highLightMaterial: {fileID: 2100000, guid: 7b939e5e799d98a469f594828ebab52e, type: 2} fireHapticsOnHightlight: 1 --- !u!114 &11461462 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 133480} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_FirstSelected: {fileID: 0} m_sendNavigationEvents: 0 m_DragThreshold: 0 --- !u!114 &11464692 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 133480} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: c9e05292e0d62b542ac5bba92674a86d, type: 3} m_Name: m_EditorClassIdentifier: --- !u!114 &11465950 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 107946} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 202a6e24b48d1684398409c47161adcb, type: 3} m_Name: m_EditorClassIdentifier: trackingOriginTransform: {fileID: 447954} hmdTransforms: - {fileID: 429506} - {fileID: 496744} hands: - {fileID: 11450312} - {fileID: 11401046} - {fileID: 11497470} headCollider: {fileID: 13533284} rigSteamVR: {fileID: 114188} rig2DFallback: {fileID: 105336} audioListener: {fileID: 471722} allowToggleTo2D: 1 --- !u!114 &11476190 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 110716} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 6043f3be9a21bd74281f9770463bea00, type: 3} m_Name: m_EditorClassIdentifier: speed: 4 shiftSpeed: 16 showInstructions: 1 --- !u!114 &11479638 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 168724} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: e979227f3384fac4b8ca0b3550bf005c, type: 3} m_Name: m_EditorClassIdentifier: pauseGameWhenDashboardIsVisible: 1 lockPhysicsUpdateRateToRenderFrequency: 1 externalCamera: {fileID: 0} externalCameraConfigPath: externalcamera.cfg trackingSpace: 1 --- !u!114 &11489144 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 171246} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: ea1001a6626353541ab4d4b39f4c3569, type: 3} m_Name: m_EditorClassIdentifier: controllerMaterial: {fileID: 2100000, guid: 11b050e661ec0cf48a289a7266451e91, type: 2} flashColor: {r: 1, g: 0.9170069, b: 0.453, a: 0.709} textHintPrefab: {fileID: 140952, guid: 5fa42bb9e52706a42b8a1eaf0b54326a, type: 2} debugHints: 0 --- !u!114 &11494192 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 177230} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: ea1001a6626353541ab4d4b39f4c3569, type: 3} m_Name: m_EditorClassIdentifier: controllerMaterial: {fileID: 2100000, guid: 11b050e661ec0cf48a289a7266451e91, type: 2} flashColor: {r: 1, g: 0.9170069, b: 0.453, a: 0.709} textHintPrefab: {fileID: 140952, guid: 5fa42bb9e52706a42b8a1eaf0b54326a, type: 2} debugHints: 0 --- !u!114 &11497470 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 135526} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 29e3e4511966ba94d8ba0b98c6c62f82, type: 3} m_Name: m_EditorClassIdentifier: otherHand: {fileID: 0} startingHandType: 2 hoverSphereTransform: {fileID: 0} hoverSphereRadius: 0.05 hoverLayerMask: serializedVersion: 2 m_Bits: 4294967295 hoverUpdateInterval: 0.1 noSteamVRFallbackCamera: {fileID: 2083460} noSteamVRFallbackMaxDistanceNoItem: 10 noSteamVRFallbackMaxDistanceWithItem: 0.5 controllerPrefab: {fileID: 0} showDebugText: 0 spewDebugText: 0 --- !u!124 &12440092 Behaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 125964} m_Enabled: 1 --- !u!135 &13533284 SphereCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 121078} m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 serializedVersion: 2 m_Radius: 0.12 m_Center: {x: 0, y: 0, z: 0} --- !u!136 &13693334 CapsuleCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 191996} m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 0 m_Radius: 0.25 m_Height: 1.5 m_Direction: 1 m_Center: {x: 0, y: 0.75, z: 0} --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: - target: {fileID: 0} propertyPath: m_LocalRotation.y value: 0 objectReference: {fileID: 0} - target: {fileID: 0} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - target: {fileID: 0} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 0} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 0} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 107946} m_IsPrefabParent: 1 --- !u!1 &1000011019469502 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 4000011044845102} m_Layer: 8 m_Name: '[Status]' m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1000011498581176 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 4000012025983752} - 114: {fileID: 114000013709408034} m_Layer: 0 m_Name: DebugUI m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1000012100580070 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 4000013797098244} - 20: {fileID: 20000012311191358} - 92: {fileID: 92000014103672220} - 132: {fileID: 132000010923692124} - 114: {fileID: 114000011983135080} - 114: {fileID: 114000013017895756} m_Layer: 8 m_Name: _Stats m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1000013281422588 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 4 m_Component: - 4: {fileID: 4000011699137176} - 114: {fileID: 114000010777378212} m_Layer: 8 m_Name: Overlay m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &4000011044845102 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000011019469502} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: - {fileID: 4000013797098244} - {fileID: 4000011699137176} m_Father: {fileID: 494198} m_RootOrder: 5 --- !u!4 &4000011699137176 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000013281422588} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 4000011044845102} m_RootOrder: 1 --- !u!4 &4000012025983752 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000011498581176} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 447954} m_RootOrder: 5 --- !u!4 &4000013797098244 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012100580070} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0.1, y: 0.75, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_Children: [] m_Father: {fileID: 4000011044845102} m_RootOrder: 0 --- !u!20 &20000012311191358 Camera: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012100580070} m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 2 m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} m_NormalizedViewPortRect: serializedVersion: 2 x: 0 y: 0 width: 1 height: 1 near clip plane: 0.3 far clip plane: 1000 field of view: 60 orthographic: 0 orthographic size: 5 m_Depth: -1 m_CullingMask: serializedVersion: 2 m_Bits: 256 m_RenderingPath: -1 m_TargetTexture: {fileID: 8400000, guid: 005ed5a6df2f5ff468efd6497d37fefa, type: 2} m_TargetDisplay: 0 m_TargetEye: 3 m_HDR: 0 m_OcclusionCulling: 0 m_StereoConvergence: 10 m_StereoSeparation: 0.022 m_StereoMirrorMode: 0 --- !u!92 &92000014103672220 Behaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012100580070} m_Enabled: 1 --- !u!114 &114000010777378212 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000013281422588} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 46fe9e0b23166454c8cb73040321d78c, type: 3} m_Name: m_EditorClassIdentifier: texture: {fileID: 8400000, guid: 005ed5a6df2f5ff468efd6497d37fefa, type: 2} curved: 1 antialias: 1 highquality: 1 scale: 3 distance: 1.25 alpha: 1 uvOffset: {x: 0, y: 0, z: 1, w: 1} mouseScale: {x: 1, y: 1} curvedRange: {x: 1, y: 2} inputMethod: 0 --- !u!114 &114000011983135080 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012100580070} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 8c3faa610c019764a81eb8497109e2d4, type: 3} m_Name: m_EditorClassIdentifier: text: {fileID: 0} fadeColor: {r: 0, g: 0, b: 0, a: 1} fadeDuration: 1 --- !u!114 &114000012530188460 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 125964} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 6bca9ccf900ccc84c887d783321d27e2, type: 3} m_Name: m_EditorClassIdentifier: _head: {fileID: 429506} _ears: {fileID: 0} wireframe: 0 --- !u!114 &114000013017895756 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012100580070} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: e7afc8c74d1f73b458705e0b946292a0, type: 3} m_Name: m_EditorClassIdentifier: cursor: {fileID: 2800000, guid: 2db89a771043d7b4eb9d26622f6b97c7, type: 3} background: {fileID: 2800000, guid: bb00cc87e146a414fbf2c4d3c0d31151, type: 3} logo: {fileID: 2800000, guid: 09db43b3b77bf744287ba587fea02f8b, type: 3} logoHeight: 340 menuOffset: 40 scaleLimits: {x: 0.1, y: 5} scaleRate: 0.5 --- !u!114 &114000013709408034 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000011498581176} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 6f3bba2c36dd79242b3157dbcd876bf2, type: 3} m_Name: m_EditorClassIdentifier: --- !u!114 &114000013786455312 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 133480} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_HorizontalAxis: Horizontal m_VerticalAxis: Vertical m_SubmitButton: Submit m_CancelButton: Cancel m_InputActionsPerSecond: 10 m_RepeatDelay: 0.5 m_ForceModuleActive: 0 --- !u!132 &132000010923692124 GUIText: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1000012100580070} m_Enabled: 1 serializedVersion: 3 m_Text: m_Anchor: 0 m_Alignment: 0 m_PixelOffset: {x: 0, y: 0} m_LineSpacing: 1 m_TabSize: 4 m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_Material: {fileID: 0} m_FontSize: 32 m_FontStyle: 1 m_Color: serializedVersion: 2 rgba: 4278221311 m_PixelCorrect: 1 m_RichText: 1
{ "pile_set_name": "Github" }
a = "Hello" a[0] = "J"
{ "pile_set_name": "Github" }
cmd: | This is what you would type on the command-line. $ ytt -f deployment.yml -f service.yml \ -f common.lib.yml -f consts.lib.star \ -f values.yml
{ "pile_set_name": "Github" }
<?php namespace ProcessMaker\Traits; use GuzzleHttp\Exception\GuzzleException; use Illuminate\Support\Facades\Log; use Mustache_Engine; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use Illuminate\Support\Arr; use ProcessMaker\Exception\HttpResponseException; use Psr\Http\Message\ResponseInterface; trait MakeHttpRequests { private $authTypes = [ 'BASIC' => 'basicAuthorization', 'OAUTH2_BEARER' => 'bearerAuthorization', 'OAUTH2_PASSWORD' => 'passwordAuthorization', ]; /** * Verify certificate ssl * * @var bool */ protected $verifySsl = true; /** * Send a HTTP request based on the datasource, configuration * and the process request data. * * @param array $data * @param array $config * * @return array * * @throws GuzzleException * @throws HttpResponseException */ public function request(array $data = [], array $config = []) { $mustache = new Mustache_Engine(); $endpoint = $this->endpoints[$config['endpoint']]; $method = $mustache->render($endpoint['method'], $data); $url = $mustache->render($endpoint['url'], $data); // If exists a query string in the call, add it to the URL if (array_key_exists('queryString', $config)) { $separator = strpos($url, '?') ? '&' : '?'; $url .= $separator . $config['queryString']; } $this->verifySsl = array_key_exists('verify_certificate', $this->credentials) ? $this->credentials['verify_certificate'] : true; // Datasource works with json responses $headers = ['Accept' => 'application/json']; if (isset($endpoint['headers']) && is_array($endpoint['headers'])) { foreach ($endpoint['headers'] as $header) { $headers[$mustache->render($header['key'], $data)] = $mustache->render($header['value'], $data); } } if (isset($config['dataMapping'])) { $mappedData = []; foreach ($config['dataMapping'] as $map) { $mappedData[$map['key']] = $map['value']; } if (empty($endpoint['body'])) { $endpoint['body'] = json_encode($mappedData); } else { $endpointBody = json_decode($endpoint['body'], true); $endpoint['body'] = json_encode(array_merge($endpointBody, $mappedData)); } } $body = $mustache->render($endpoint['body'], $data); $bodyType = $mustache->render($endpoint['body_type'], $data); $request = [$method, $url, $headers, $body, $bodyType]; $request = $this->addAuthorizationHeaders(...$request); try { return $this->response($this->call(...$request), $data, $config, $mustache); } catch (ClientException $exception) { throw new HttpResponseException($exception->getResponse()); } } /** * Add authorization parameters * * @param array ...$config * * @return array */ private function addAuthorizationHeaders(...$config) { if (isset($this->authTypes[$this->authtype])) { $callable = [$this, $this->authTypes[$this->authtype]]; return call_user_func_array($callable, $config); } return $config; } /** * Add basic authorization to header * * @param string $method * @param string $url * @param array $headers * @param string $body * @param $bodyType * * @return array */ private function basicAuthorization($method, $url, $headers, $body, $bodyType) { if (isset($this->credentials) && is_array($this->credentials)) { $headers['Authorization'] = 'Basic ' . base64_encode($this->credentials['username'] . ':' . $this->credentials['password']); } return [$method, $url, $headers, $body, $bodyType]; } /** * Add bearer authorization to header * * @param string $method * @param string $url * @param array $headers * @param string $body * @param $bodyType * * @return array */ private function bearerAuthorization($method, $url, $headers, $body, $bodyType) { if (isset($this->credentials) && is_array($this->credentials)) { $headers['Authorization'] = 'Bearer ' . $this->credentials['token']; } return [$method, $url, $headers, $body, $bodyType]; } /** * Get token with credentials * * @param string $method * @param string $url * @param array $headers * @param string $body * @param $bodyType * * @return array */ private function passwordAuthorization($method, $url, $headers, $body, $bodyType) { if (isset($this->credentials) && is_array($this->credentials)) { //todo enable mustache $config = [ 'username' => $this->credentials['username'], 'password' => $this->credentials['password'], 'grant_type' => 'password', 'client_id' => $this->credentials['client_id'], 'client_secret' => $this->credentials['client_secret'], ]; $token = $this->response($this->call('POST', $this->credentials['url'], ['Accept' => 'application/json'], json_encode($config), 'form-data'), [], ['dataMapping' => []], new Mustache_Engine()); $headers['Authorization'] = 'Bearer ' . $token['response']['access_token']; } return [$method, $url, $headers, $body, $bodyType]; } /** * Prepare the response, using the mapping configuration * * @param Response $response * @param array $data * @param array $config * @param Mustache_Engine $mustache * * @return array * @throws HttpResponseException */ private function response($response, array $data = [], array $config = [], Mustache_Engine $mustache) { $status = $response->getStatusCode(); switch (true) { case $status == 200: $content = json_decode($response->getBody()->getContents(), true); break; case $status > 200 && $status < 300: $content = []; break; default: throw new HttpResponseException($response); } $mapped = []; !is_array($content) ?: $merged = array_merge($data, $content); $mapped['status'] = $status; $mapped['response'] = $content; if (isset($config['dataMapping'])) { foreach ($config['dataMapping'] as $map) { //$value = $mustache->render($map['value'], $merged); $value = Arr::get($merged, $map['value'], ''); Arr::set($mapped, $map['key'], $value); } } return $mapped; } /** * Call an HTTP request * * @param string $method * @param string $url * @param array $headers * @param $body * @param string $bodyType * * @return mixed|ResponseInterface * * @throws GuzzleException */ private function call($method, $url, array $headers, $body, $bodyType) { $client = new Client(['verify' => $this->verifySsl]); $options = []; if ($bodyType === 'form-data') { $options['form_params'] = json_decode($body, true); } $request = new Request($method, $url, $headers, $body); return $client->send($request, $options); } }
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: 9c2d166d95086c371b6787c093be9551 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 13350 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
{ "pile_set_name": "Github" }
--- title: "Create an Alarm" menutitle: "Create Alarm" date: 2020-09-15T11:16:09-04:00 chapter: false weight: 3 pre: "<b>3. </b>" --- Now that the right metric has been identified to monitor the dependency, it is time to create an alarm to monitor the metric and send notifications based on thresholds defined. [CloudWatch Alarms](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#CloudWatchAlarms) can be used to automatically initiate actions on your behalf. An alarm watches a single metric over a specified time period, and performs one or more specified actions, based on the value of the metric relative to a threshold over time. The action is a notification sent to an Amazon SNS topic or an Auto Scaling policy. An alarm needs to be created that checks the Lambda function invocation every minute to ensure that it has been invoked at least one time, and treats missing data as an indication that the function has not not been invoked, and as such the dependency that is being monitoring has failed. If the alarm is triggered, a notification should be sent to an SNS topic so that someone can be notified and respond, or an automatic remediation activity can be triggered as a result. 1. Go to the Amazon CloudWatch console at <https://console.aws.amazon.com/cloudwatch>, click on **Alarms**, and then **Create alarm** ![CWAlarms](/Operations/100_Dependency_Monitoring/Images/CWAlarms.png) 1. Click on **Select metric** 1. In the search bar under **All metrics**, enter the name of the data read function - `WA-Lab-DataReadFunction` and press enter 1. In the metric breakdown, select **Lambda > By Resource** and you will see a list of Lambda metrics available 1. Check the box for the metric **Invocations** and click **Select metric** ![CWAlarmSelectMetric](/Operations/100_Dependency_Monitoring/Images/CWAlarmSelectMetric.png) 1. On the **Specify metric and conditions** page, make the following changes for the **Metric**: * Change **Statistic** from Average to Sum * Change **Period** from 5 minutes to 1 minute ![CWAlarmSelectPeriod](/Operations/100_Dependency_Monitoring/Images/CWAlarmSelectPeriod.png) 1. Scroll down to the **Conditions** section and configure it as follows: * **Threshold type** - set to Static * **Whenever invocations is...** - set to Lower * **than...** - enter 1 since this is the minimum number of invocations that is expected every minute 1. Click on the arrow next to **Additional Configuration** to expand that section and make the following configuration changes: * **Datapoints to alarm** should be 1 out of 1 * **Missing data treatment** should be set to Treat missing data as bad (breaching threshold) since Lambda will not report any metrics if a function was not invoked 1. Click **Next** to go to the **Configure actions** page ![CWAlarmConditions](/Operations/100_Dependency_Monitoring/Images/CWAlarmConditions.png) 1. Under **Notification**, make the following changes: * **Alarm state trigger** - select In alarm * **Select an SNS topic** - choose Select an existing SNS topic since a topic was created as part of the CloudFormation stack * **Send a notification to...** - select WA-Lab-Dependency-Notification and verify that the **Email (endpoints)** listed below is the same that was specified during stack creation 1. Click **Next** to go to the **Add name and description** page ![CWAlarmAction](/Operations/100_Dependency_Monitoring/Images/CWAlarmAction.png) 1. Under **Name and description**, specify the following: * **Alarm name** - enter a recognizable name for the alarm such as `WA-Lab-Dependency-Alarm` * **Alarm description** - this is an optional field that can be left blank for this exercise ![CWAlarmName](/Operations/100_Dependency_Monitoring/Images/CWAlarmName.png) 1. Click **Next** to go to the **Preview and create** page 1. Click **Create alarm** Once the alarm has been created, you will be returned to the **Alarms** page on the CloudWatch console. In the search bar, enter the name of the alarm that was just created WA-Lab-Dependency-Alarm. The alarm will be listed with a state of **Insufficient data**. This is because CloudWatch is currently evaluating the underlying metric to determine the current state. In a few minutes, you will see the alarm transition from **Insufficient data** to **OK**. Click on the alarm name to go to the alarm details page. Review contents of the page to understand the configuration of the alarm such as metric used, threshold set, evaluation interval, etc. The red line on the graph indicates the threshold that has been set for the alarm. Based on the alarm conditions, the alarm will go into an **In alarm** state if the metric graph falls below this threshold. ![CWAlarmInsufficientData](/Operations/100_Dependency_Monitoring/Images/CWAlarmInsufficientData.png) Under the **History** section, you will be able to view all state changes with respect to the alarm. Once the alarm is in an **OK** state, you will see a **State update** event under **History**. ![CWAlarmStateChange](/Operations/100_Dependency_Monitoring/Images/CWAlarmStateChange.png) An alarm has now been created on a suitable metric to identify if the external service that the workload is dependent on is experiencing outage. Additionally, notifications have been configured to alert relevant stakeholders when the workload outcome is at risk due to failure/unavailability of the external service. ![ArchitectureLast](/Operations/100_Dependency_Monitoring/Images/ArchitectureLast.png)
{ "pile_set_name": "Github" }
var app = getApp(); var socketOpen = false; Page({ data:{ // text:"่ฟ™ๆ˜ฏไธ€ไธช้กต้ข" value:"", message:[] }, onLoad:function(options){ // ้กต้ขๅˆๅง‹ๅŒ– optionsไธบ้กต้ข่ทณ่ฝฌๆ‰€ๅธฆๆฅ็š„ๅ‚ๆ•ฐ }, onReady:function(){ // ้กต้ขๆธฒๆŸ“ๅฎŒๆˆ var _self = this; wx.onSocketOpen(function(res) { socketOpen=true; console.log('WebSocket่ฟžๆŽฅๅทฒๆ‰“ๅผ€๏ผ') }) wx.onSocketError(function(res){ socketOpen=false; console.log('WebSocket่ฟžๆŽฅๆ‰“ๅผ€ๅคฑ่ดฅ๏ผŒ่ฏทๆฃ€ๆŸฅ๏ผ') }) wx.onSocketMessage(function(res) { var t = _self.data.message; t.push(res.data) _self.setData({ message : t }) }) wx.onSocketClose(function(res) { console.log('WebSocket ๅทฒๅ…ณ้—ญ๏ผ') socketOpen = false; }) }, onShow:function(){ // ้กต้ขๆ˜พ็คบ }, onHide:function(){ // ้กต้ข้š่— }, onUnload:function(){ // ้กต้ขๅ…ณ้—ญ }, connect:function(){ wx.connectSocket({ url: app.globalData.wsip }) }, stopws:function(){ if (socketOpen) { wx.closeSocket() }else{ console.log("่ฏทๅ…ˆๅปบ็ซ‹่ฟžๆŽฅ") } }, msg:function(){ var _self = this; sendSocketMessage(_self.data.value) }, inputfun:function(e){ this.setData({ value:e.detail.value }) } }) function sendSocketMessage(msg) { if (socketOpen) { wx.sendSocketMessage({ data:msg, success:function(data){ console.log(data); } }) } else { console.log("่ฏทๅ…ˆๅปบ็ซ‹่ฟžๆŽฅ") } }
{ "pile_set_name": "Github" }
// RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -fsyntax-only -verify -Wno-inaccessible-base // expected-no-diagnostics #define SA(n, p) int a##n[(p) ? 1 : -1] namespace Test0 { struct A { int a; }; SA(0, sizeof(A) == 4); struct B { }; SA(1, sizeof(B) == 1); struct C : A, B { }; SA(2, sizeof(C) == 4); struct D { }; struct E : D { }; struct F : E { }; struct G : E, F { }; SA(3, sizeof(G) == 2); struct Empty { Empty(); }; struct I : Empty { Empty e; }; SA(4, sizeof(I) == 2); struct J : Empty { Empty e[2]; }; SA(5, sizeof(J) == 3); template<int N> struct Derived : Empty, Derived<N - 1> { }; template<> struct Derived<0> : Empty { }; struct S1 : virtual Derived<10> { Empty e; }; SA(6, sizeof(S1) == 24); struct S2 : virtual Derived<10> { Empty e[2]; }; SA(7, sizeof(S2) == 24); struct S3 { Empty e; }; struct S4 : Empty, S3 { }; SA(8, sizeof(S4) == 2); struct S5 : S3, Empty {}; SA(9, sizeof(S5) == 2); struct S6 : S5 { }; SA(10, sizeof(S6) == 2); struct S7 : Empty { void *v; }; SA(11, sizeof(S7) == 8); struct S8 : Empty, A { }; SA(12, sizeof(S8) == 4); } namespace Test1 { // Test that we don't try to place both A subobjects at offset 0. struct A { }; class B { virtual void f(); }; class C : A, virtual B { }; struct D : virtual C { }; struct E : virtual A { }; class F : D, E { }; SA(0, sizeof(F) == 24); } namespace Test2 { // Test that B::a isn't laid out at offset 0. struct Empty { }; struct A : Empty { }; struct B : Empty { A a; }; SA(0, sizeof(B) == 2); } namespace Test3 { // Test that B::a isn't laid out at offset 0. struct Empty { }; struct A { Empty e; }; struct B : Empty { A a; }; SA(0, sizeof(B) == 2); } namespace Test4 { // Test that C::Empty isn't laid out at offset 0. struct Empty { }; struct A : Empty { }; struct B { A a; }; struct C : B, Empty { }; SA(0, sizeof(C) == 2); } namespace Test5 { // Test that B::Empty isn't laid out at offset 0. struct Empty { }; struct Field : virtual Empty { }; struct A { Field f; }; struct B : A, Empty { }; SA(0, sizeof(B) == 16); } namespace Test6 { // Test that B::A isn't laid out at offset 0. struct Empty { }; struct Field : virtual Empty { }; struct A { Field f; }; struct B : Empty, A { }; SA(0, sizeof(B) == 16); } namespace Test7 { // Make sure we reserve enough space for both bases; PR11745. struct Empty { }; struct Base1 : Empty { }; struct Base2 : Empty { }; struct Test : Base1, Base2 { char c; }; SA(0, sizeof(Test) == 2); } namespace Test8 { // Test that type sugar doesn't make us incorrectly determine the size of an // array of empty classes. struct Empty1 {}; struct Empty2 {}; struct Empties : Empty1, Empty2 {}; typedef Empty1 Sugar[4]; struct A : Empty2, Empties { // This must go at offset 2, because if it were at offset 0, // V[0][1] would overlap Empties::Empty1. Sugar V[1]; }; SA(0, sizeof(A) == 6); }
{ "pile_set_name": "Github" }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cache_1 = require("./cache"); const watch_1 = require("./watch"); exports.ADD = 'add'; exports.UPDATE = 'update'; exports.DELETE = 'delete'; function makeInformer(kubeconfig, path, listPromiseFn) { const watch = new watch_1.Watch(kubeconfig); return new cache_1.ListWatch(path, watch, listPromiseFn, false); } exports.makeInformer = makeInformer; //# sourceMappingURL=informer.js.map
{ "pile_set_name": "Github" }
function(ast_eval ast context) if(ARGN) set(args ${ARGN}) list_pop_front( args) ans(ast_language) map_tryget(${ast_language} evaluators) ans(ast_evaluators) function_import_table(${ast_evaluators} ast_evaluator_table) endif() if(NOT ast_evaluators) message(FATAL_ERROR "no ast_evaluators given") endif() #message("evaluator prefix ${ast_evaluators}... ${ARGN}") map_get(${ast} types) ans(types) is_map("${ast_evaluators}" ) ans(ismap) while(true) list_pop_front( types) ans(type) map_tryget(${ast_evaluators} "${type}") ans(eval_command) # message("eval command ist ${eval_command}") # avaible vars # ast context ast_language ast_evaluators # available commands ast_evaluator_table if(COMMAND "${eval_command}") ast_evaluator_table(${type}) ans(res) return_ref(res) endif() #if(COMMAND "${eval_command}") # eval("${eval_command}(\"${ast}\" \"${scope}\")") #ans(res) #return_ans() #endif() endwhile() endfunction()
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head><link rel="apple-touch-icon" sizes="180x180" href="/glide/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/glide/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/glide/favicon-16x16.png"><link rel="manifest" href="/glide/manifest.json"> <!-- Generated by javadoc (1.8.0_144) on Fri Jan 05 11:09:28 PST 2018 --> <title>SupportRequestManagerFragment (glide API)</title> <meta name="date" content="2018-01-05"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="SupportRequestManagerFragment (glide API)"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/bumptech/glide/manager/RequestTracker.html" title="class in com.bumptech.glide.manager"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../com/bumptech/glide/manager/TargetTracker.html" title="class in com.bumptech.glide.manager"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/bumptech/glide/manager/SupportRequestManagerFragment.html" target="_top">Frames</a></li> <li><a href="SupportRequestManagerFragment.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li><a href="#nested.classes.inherited.from.class.android.support.v4.app.Fragment">Nested</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.bumptech.glide.manager</div> <h2 title="Class SupportRequestManagerFragment" class="title">Class SupportRequestManagerFragment</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> <li> <ul class="inheritance"> <li><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">android.support.v4.app.Fragment</a></li> <li> <ul class="inheritance"> <li>com.bumptech.glide.manager.SupportRequestManagerFragment</li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="http://d.android.com/reference/android/arch.lifecycle.LifecycleOwner.html?is-external=true" title="class or interface in android">android.arch.lifecycle.LifecycleOwner</a>, <a href="http://d.android.com/reference/android/content/ComponentCallbacks.html?is-external=true" title="class or interface in android.content">ComponentCallbacks</a>, <a href="http://d.android.com/reference/android/view/View.OnCreateContextMenuListener.html?is-external=true" title="class or interface in android.view">View.OnCreateContextMenuListener</a></dd> </dl> <hr> <br> <pre>public class <span class="typeNameLabel">SupportRequestManagerFragment</span> extends <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></pre> <div class="block">A view-less <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app"><code>Fragment</code></a> used to safely store an <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide"><code>RequestManager</code></a> that can be used to start, stop and manage Glide requests started for targets within the fragment or activity this fragment is a child of.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../com/bumptech/glide/manager/RequestManagerFragment.html" title="class in com.bumptech.glide.manager"><code>RequestManagerFragment</code></a>, <a href="../../../../com/bumptech/glide/manager/RequestManagerRetriever.html" title="class in com.bumptech.glide.manager"><code>RequestManagerRetriever</code></a>, <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide"><code>RequestManager</code></a></dd> </dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== NESTED CLASS SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="nested.class.summary"> <!-- --> </a> <h3>Nested Class Summary</h3> <ul class="blockList"> <li class="blockList"><a name="nested.classes.inherited.from.class.android.support.v4.app.Fragment"> <!-- --> </a> <h3>Nested classes/interfaces inherited from class&nbsp;android.support.v4.app.<a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></h3> <code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.InstantiationException.html?is-external=true" title="class or interface in android.support.v4.app">Fragment.InstantiationException</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.SavedState.html?is-external=true" title="class or interface in android.support.v4.app">Fragment.SavedState</a></code></li> </ul> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#SupportRequestManagerFragment--">SupportRequestManagerFragment</a></span>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#SupportRequestManagerFragment-com.bumptech.glide.manager.ActivityFragmentLifecycle-">SupportRequestManagerFragment</a></span>(com.bumptech.glide.manager.ActivityFragmentLifecycle&nbsp;lifecycle)</code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code><a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide">RequestManager</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#getRequestManager--">getRequestManager</a></span>()</code> <div class="block">Returns the current <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide"><code>RequestManager</code></a> or null if none is put.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/bumptech/glide/manager/RequestManagerTreeNode.html" title="interface in com.bumptech.glide.manager">RequestManagerTreeNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#getRequestManagerTreeNode--">getRequestManagerTreeNode</a></span>()</code> <div class="block">Returns the <a href="../../../../com/bumptech/glide/manager/RequestManagerTreeNode.html" title="interface in com.bumptech.glide.manager"><code>RequestManagerTreeNode</code></a> that provides tree traversal methods relative to the associated <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide"><code>RequestManager</code></a>.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#onAttach-android.content.Context-">onAttach</a></span>(<a href="http://d.android.com/reference/android/content/Context.html?is-external=true" title="class or interface in android.content">Context</a>&nbsp;context)</code>&nbsp;</td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#onDestroy--">onDestroy</a></span>()</code>&nbsp;</td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#onDetach--">onDetach</a></span>()</code>&nbsp;</td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#onStart--">onStart</a></span>()</code>&nbsp;</td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#onStop--">onStop</a></span>()</code>&nbsp;</td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#setRequestManager-com.bumptech.glide.RequestManager-">setRequestManager</a></span>(<a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide">RequestManager</a>&nbsp;requestManager)</code> <div class="block">Sets the current <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide"><code>RequestManager</code></a>.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code><a href="http://d.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/bumptech/glide/manager/SupportRequestManagerFragment.html#toString--">toString</a></span>()</code>&nbsp;</td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.android.support.v4.app.Fragment"> <!-- --> </a> <h3>Methods inherited from class&nbsp;android.support.v4.app.<a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></h3> <code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#dump-java.lang.String-java.io.FileDescriptor-java.io.PrintWriter-java.lang.String:A-" title="class or interface in android.support.v4.app">dump</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#equals-java.lang.Object-" title="class or interface in android.support.v4.app">equals</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getActivity--" title="class or interface in android.support.v4.app">getActivity</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getAllowEnterTransitionOverlap--" title="class or interface in android.support.v4.app">getAllowEnterTransitionOverlap</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getAllowReturnTransitionOverlap--" title="class or interface in android.support.v4.app">getAllowReturnTransitionOverlap</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getArguments--" title="class or interface in android.support.v4.app">getArguments</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getChildFragmentManager--" title="class or interface in android.support.v4.app">getChildFragmentManager</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getContext--" title="class or interface in android.support.v4.app">getContext</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getEnterTransition--" title="class or interface in android.support.v4.app">getEnterTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getExitTransition--" title="class or interface in android.support.v4.app">getExitTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getFragmentManager--" title="class or interface in android.support.v4.app">getFragmentManager</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getHost--" title="class or interface in android.support.v4.app">getHost</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getId--" title="class or interface in android.support.v4.app">getId</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getLayoutInflater--" title="class or interface in android.support.v4.app">getLayoutInflater</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getLayoutInflater-android.os.Bundle-" title="class or interface in android.support.v4.app">getLayoutInflater</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getLifecycle--" title="class or interface in android.support.v4.app">getLifecycle</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getLoaderManager--" title="class or interface in android.support.v4.app">getLoaderManager</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getParentFragment--" title="class or interface in android.support.v4.app">getParentFragment</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getReenterTransition--" title="class or interface in android.support.v4.app">getReenterTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getResources--" title="class or interface in android.support.v4.app">getResources</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getRetainInstance--" title="class or interface in android.support.v4.app">getRetainInstance</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getReturnTransition--" title="class or interface in android.support.v4.app">getReturnTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getSharedElementEnterTransition--" title="class or interface in android.support.v4.app">getSharedElementEnterTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getSharedElementReturnTransition--" title="class or interface in android.support.v4.app">getSharedElementReturnTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getString-int-" title="class or interface in android.support.v4.app">getString</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getString-int-java.lang.Object...-" title="class or interface in android.support.v4.app">getString</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getTag--" title="class or interface in android.support.v4.app">getTag</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getTargetFragment--" title="class or interface in android.support.v4.app">getTargetFragment</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getTargetRequestCode--" title="class or interface in android.support.v4.app">getTargetRequestCode</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getText-int-" title="class or interface in android.support.v4.app">getText</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getUserVisibleHint--" title="class or interface in android.support.v4.app">getUserVisibleHint</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#getView--" title="class or interface in android.support.v4.app">getView</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#hashCode--" title="class or interface in android.support.v4.app">hashCode</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#hasOptionsMenu--" title="class or interface in android.support.v4.app">hasOptionsMenu</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#instantiate-android.content.Context-java.lang.String-" title="class or interface in android.support.v4.app">instantiate</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#instantiate-android.content.Context-java.lang.String-android.os.Bundle-" title="class or interface in android.support.v4.app">instantiate</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isAdded--" title="class or interface in android.support.v4.app">isAdded</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isDetached--" title="class or interface in android.support.v4.app">isDetached</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isHidden--" title="class or interface in android.support.v4.app">isHidden</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isInLayout--" title="class or interface in android.support.v4.app">isInLayout</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isMenuVisible--" title="class or interface in android.support.v4.app">isMenuVisible</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isRemoving--" title="class or interface in android.support.v4.app">isRemoving</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isResumed--" title="class or interface in android.support.v4.app">isResumed</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isStateSaved--" title="class or interface in android.support.v4.app">isStateSaved</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#isVisible--" title="class or interface in android.support.v4.app">isVisible</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onActivityCreated-android.os.Bundle-" title="class or interface in android.support.v4.app">onActivityCreated</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onActivityResult-int-int-android.content.Intent-" title="class or interface in android.support.v4.app">onActivityResult</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onAttach-android.app.Activity-" title="class or interface in android.support.v4.app">onAttach</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onAttachFragment-android.support.v4.app.Fragment-" title="class or interface in android.support.v4.app">onAttachFragment</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onConfigurationChanged-android.content.res.Configuration-" title="class or interface in android.support.v4.app">onConfigurationChanged</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onContextItemSelected-android.view.MenuItem-" title="class or interface in android.support.v4.app">onContextItemSelected</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onCreate-android.os.Bundle-" title="class or interface in android.support.v4.app">onCreate</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onCreateAnimation-int-boolean-int-" title="class or interface in android.support.v4.app">onCreateAnimation</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onCreateAnimator-int-boolean-int-" title="class or interface in android.support.v4.app">onCreateAnimator</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onCreateContextMenu-android.view.ContextMenu-android.view.View-android.view.ContextMenu.ContextMenuInfo-" title="class or interface in android.support.v4.app">onCreateContextMenu</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onCreateOptionsMenu-android.view.Menu-android.view.MenuInflater-" title="class or interface in android.support.v4.app">onCreateOptionsMenu</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onCreateView-android.view.LayoutInflater-android.view.ViewGroup-android.os.Bundle-" title="class or interface in android.support.v4.app">onCreateView</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onDestroyOptionsMenu--" title="class or interface in android.support.v4.app">onDestroyOptionsMenu</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onDestroyView--" title="class or interface in android.support.v4.app">onDestroyView</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onGetLayoutInflater-android.os.Bundle-" title="class or interface in android.support.v4.app">onGetLayoutInflater</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onHiddenChanged-boolean-" title="class or interface in android.support.v4.app">onHiddenChanged</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onInflate-android.app.Activity-android.util.AttributeSet-android.os.Bundle-" title="class or interface in android.support.v4.app">onInflate</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onInflate-android.content.Context-android.util.AttributeSet-android.os.Bundle-" title="class or interface in android.support.v4.app">onInflate</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onLowMemory--" title="class or interface in android.support.v4.app">onLowMemory</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onMultiWindowModeChanged-boolean-" title="class or interface in android.support.v4.app">onMultiWindowModeChanged</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onOptionsItemSelected-android.view.MenuItem-" title="class or interface in android.support.v4.app">onOptionsItemSelected</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onOptionsMenuClosed-android.view.Menu-" title="class or interface in android.support.v4.app">onOptionsMenuClosed</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onPause--" title="class or interface in android.support.v4.app">onPause</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onPictureInPictureModeChanged-boolean-" title="class or interface in android.support.v4.app">onPictureInPictureModeChanged</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onPrepareOptionsMenu-android.view.Menu-" title="class or interface in android.support.v4.app">onPrepareOptionsMenu</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onRequestPermissionsResult-int-java.lang.String:A-int:A-" title="class or interface in android.support.v4.app">onRequestPermissionsResult</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onResume--" title="class or interface in android.support.v4.app">onResume</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onSaveInstanceState-android.os.Bundle-" title="class or interface in android.support.v4.app">onSaveInstanceState</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onViewCreated-android.view.View-android.os.Bundle-" title="class or interface in android.support.v4.app">onViewCreated</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onViewStateRestored-android.os.Bundle-" title="class or interface in android.support.v4.app">onViewStateRestored</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#postponeEnterTransition--" title="class or interface in android.support.v4.app">postponeEnterTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#registerForContextMenu-android.view.View-" title="class or interface in android.support.v4.app">registerForContextMenu</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#requestPermissions-java.lang.String:A-int-" title="class or interface in android.support.v4.app">requestPermissions</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setAllowEnterTransitionOverlap-boolean-" title="class or interface in android.support.v4.app">setAllowEnterTransitionOverlap</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setAllowReturnTransitionOverlap-boolean-" title="class or interface in android.support.v4.app">setAllowReturnTransitionOverlap</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setArguments-android.os.Bundle-" title="class or interface in android.support.v4.app">setArguments</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setEnterSharedElementCallback-android.support.v4.app.SharedElementCallback-" title="class or interface in android.support.v4.app">setEnterSharedElementCallback</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setEnterTransition-java.lang.Object-" title="class or interface in android.support.v4.app">setEnterTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setExitSharedElementCallback-android.support.v4.app.SharedElementCallback-" title="class or interface in android.support.v4.app">setExitSharedElementCallback</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setExitTransition-java.lang.Object-" title="class or interface in android.support.v4.app">setExitTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setHasOptionsMenu-boolean-" title="class or interface in android.support.v4.app">setHasOptionsMenu</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setInitialSavedState-android.support.v4.app.Fragment.SavedState-" title="class or interface in android.support.v4.app">setInitialSavedState</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setMenuVisibility-boolean-" title="class or interface in android.support.v4.app">setMenuVisibility</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setReenterTransition-java.lang.Object-" title="class or interface in android.support.v4.app">setReenterTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setRetainInstance-boolean-" title="class or interface in android.support.v4.app">setRetainInstance</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setReturnTransition-java.lang.Object-" title="class or interface in android.support.v4.app">setReturnTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setSharedElementEnterTransition-java.lang.Object-" title="class or interface in android.support.v4.app">setSharedElementEnterTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setSharedElementReturnTransition-java.lang.Object-" title="class or interface in android.support.v4.app">setSharedElementReturnTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setTargetFragment-android.support.v4.app.Fragment-int-" title="class or interface in android.support.v4.app">setTargetFragment</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#setUserVisibleHint-boolean-" title="class or interface in android.support.v4.app">setUserVisibleHint</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#shouldShowRequestPermissionRationale-java.lang.String-" title="class or interface in android.support.v4.app">shouldShowRequestPermissionRationale</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#startActivity-android.content.Intent-" title="class or interface in android.support.v4.app">startActivity</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#startActivity-android.content.Intent-android.os.Bundle-" title="class or interface in android.support.v4.app">startActivity</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#startActivityForResult-android.content.Intent-int-" title="class or interface in android.support.v4.app">startActivityForResult</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#startActivityForResult-android.content.Intent-int-android.os.Bundle-" title="class or interface in android.support.v4.app">startActivityForResult</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#startIntentSenderForResult-android.content.IntentSender-int-android.content.Intent-int-int-int-android.os.Bundle-" title="class or interface in android.support.v4.app">startIntentSenderForResult</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#startPostponedEnterTransition--" title="class or interface in android.support.v4.app">startPostponedEnterTransition</a>, <a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#unregisterForContextMenu-android.view.View-" title="class or interface in android.support.v4.app">unregisterForContextMenu</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.<a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> <code><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="SupportRequestManagerFragment--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SupportRequestManagerFragment</h4> <pre>public&nbsp;SupportRequestManagerFragment()</pre> </li> </ul> <a name="SupportRequestManagerFragment-com.bumptech.glide.manager.ActivityFragmentLifecycle-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>SupportRequestManagerFragment</h4> <pre>public&nbsp;SupportRequestManagerFragment(com.bumptech.glide.manager.ActivityFragmentLifecycle&nbsp;lifecycle)</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="setRequestManager-com.bumptech.glide.RequestManager-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setRequestManager</h4> <pre>public&nbsp;void&nbsp;setRequestManager(<a href="http://d.android.com/reference/android/support/annotation/Nullable.html?is-external=true" title="class or interface in android.support.annotation">@Nullable</a> <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide">RequestManager</a>&nbsp;requestManager)</pre> <div class="block">Sets the current <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide"><code>RequestManager</code></a>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>requestManager</code> - The manager to put.</dd> </dl> </li> </ul> <a name="getRequestManager--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRequestManager</h4> <pre><a href="http://d.android.com/reference/android/support/annotation/Nullable.html?is-external=true" title="class or interface in android.support.annotation">@Nullable</a> public&nbsp;<a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide">RequestManager</a>&nbsp;getRequestManager()</pre> <div class="block">Returns the current <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide"><code>RequestManager</code></a> or null if none is put.</div> </li> </ul> <a name="getRequestManagerTreeNode--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRequestManagerTreeNode</h4> <pre>public&nbsp;<a href="../../../../com/bumptech/glide/manager/RequestManagerTreeNode.html" title="interface in com.bumptech.glide.manager">RequestManagerTreeNode</a>&nbsp;getRequestManagerTreeNode()</pre> <div class="block">Returns the <a href="../../../../com/bumptech/glide/manager/RequestManagerTreeNode.html" title="interface in com.bumptech.glide.manager"><code>RequestManagerTreeNode</code></a> that provides tree traversal methods relative to the associated <a href="../../../../com/bumptech/glide/RequestManager.html" title="class in com.bumptech.glide"><code>RequestManager</code></a>.</div> </li> </ul> <a name="onAttach-android.content.Context-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onAttach</h4> <pre>public&nbsp;void&nbsp;onAttach(<a href="http://d.android.com/reference/android/content/Context.html?is-external=true" title="class or interface in android.content">Context</a>&nbsp;context)</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onAttach-android.content.Context-" title="class or interface in android.support.v4.app">onAttach</a></code>&nbsp;in class&nbsp;<code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></code></dd> </dl> </li> </ul> <a name="onDetach--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onDetach</h4> <pre>public&nbsp;void&nbsp;onDetach()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onDetach--" title="class or interface in android.support.v4.app">onDetach</a></code>&nbsp;in class&nbsp;<code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></code></dd> </dl> </li> </ul> <a name="onStart--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onStart</h4> <pre>public&nbsp;void&nbsp;onStart()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onStart--" title="class or interface in android.support.v4.app">onStart</a></code>&nbsp;in class&nbsp;<code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></code></dd> </dl> </li> </ul> <a name="onStop--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onStop</h4> <pre>public&nbsp;void&nbsp;onStop()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onStop--" title="class or interface in android.support.v4.app">onStop</a></code>&nbsp;in class&nbsp;<code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></code></dd> </dl> </li> </ul> <a name="onDestroy--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onDestroy</h4> <pre>public&nbsp;void&nbsp;onDestroy()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#onDestroy--" title="class or interface in android.support.v4.app">onDestroy</a></code>&nbsp;in class&nbsp;<code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></code></dd> </dl> </li> </ul> <a name="toString--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>toString</h4> <pre>public&nbsp;<a href="http://d.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true#toString--" title="class or interface in android.support.v4.app">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://d.android.com/reference/android/support/v4/app/Fragment.html?is-external=true" title="class or interface in android.support.v4.app">Fragment</a></code></dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/bumptech/glide/manager/RequestTracker.html" title="class in com.bumptech.glide.manager"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../com/bumptech/glide/manager/TargetTracker.html" title="class in com.bumptech.glide.manager"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/bumptech/glide/manager/SupportRequestManagerFragment.html" target="_top">Frames</a></li> <li><a href="SupportRequestManagerFragment.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li><a href="#nested.classes.inherited.from.class.android.support.v4.app.Fragment">Nested</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
{ "pile_set_name": "Github" }
# Minimal makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build SOURCEDIR = . BUILDDIR = _build # Put it first so that "make" without argument is like "make help". help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) .PHONY: help Makefile # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
{ "pile_set_name": "Github" }
DEAL::Size 32 Unknowns 961 DEAL::Solver type: N6dealii13PETScWrappers8SolverCGE DEAL::Starting value 7.750 DEAL::Convergence step 41 value 0.0006730 DEAL::Solver stopped after 41 iterations
{ "pile_set_name": "Github" }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org/"> <wicket:head> <wicket:link> <link rel="stylesheet" href="styleTaskManager.css" type="text/css"> </wicket:link> </wicket:head> <body> <wicket:extend> <div wicket:id="dialog"></div> <ul class="links-above-table"> <li><a class="add-link" href="#" wicket:id="addNew"><wicket:message key="addNew" /></a></li> <li><a class="remove-link" href="#" wicket:id="removeSelected"><wicket:message key="removeSelected" /></a></li> <li><a class="copy-link" href="#" wicket:id="copySelected"><wicket:message key="copySelected" /></a></li> <li><a class="import-link" href="#" wicket:id="import"><wicket:message key="import" /></a></li> </ul> <div wicket:id="configurationsPanel"></div> </wicket:extend> </body> </html>
{ "pile_set_name": "Github" }
(ns quo.components.text-input (:require [clojure.spec.alpha :as s] [reagent.core :as reagent] [oops.core :refer [ocall]] [quo.react-native :as rn] ;; TODO(Ferossgp): Move icon component to lib [status-im.ui.components.icons.vector-icons :as icons] [quo.components.tooltip :as tooltip] [quo.platform :as platform] [quo.design-system.typography :as typography] [quo.design-system.spacing :as spacing] [quo.design-system.colors :as colors] [quo.components.text :as text])) ;; NOTE(Ferossgp): Refactor with hooks when available ;; We track all currently mounted text input refs ;; in a ref-to-defaultValue map ;; so that we can clear them (restore their default values) ;; when global react-navigation's onWillBlur event is invoked (defonce text-input-refs (atom {})) (s/def ::multiline boolean?) (s/def ::secure-text-entry boolean?) (s/def ::show-cancel boolean?) (s/def ::label (s/nilable (s/or :string string? :component vector?))) (s/def ::cancel-label (s/nilable string?)) (s/def ::default-value (s/nilable string?)) (s/def ::placeholder (s/nilable string?)) (s/def ::keyboard-type (s/nilable (s/or :string string? :keyword keyword?))) ; TODO: make set (s/def ::accessibility-label (s/nilable (s/or :string string? :keyword keyword?))) (s/def ::on-focus fn?) (s/def ::on-blur fn?) (s/def ::on-press fn?) (s/def ::accessory (s/keys :opt-un [::on-press ::icon ::component])) (s/def ::after (s/nilable ::accessory)) (s/def ::before (s/nilable ::accessory)) (s/def ::style (s/nilable map?)) (s/def ::input-style (s/nilable map?)) (s/def ::text-input (s/keys :opt-un [::label ::multiline ::error ::style ::input-style ::keyboard-type ::before ::after ::cancel-label ::on-focus ::on-blur ::show-cancel ::accessibility-label ::bottom-value ::secure-text-entry])) (defn check-spec [spec prop] (if (s/valid? spec prop) true (do (s/explain spec prop) false))) ;; TODO(Ferossgp): Check performance for android layout animations (when (and platform/android? (aget rn/ui-manager "setLayoutAnimationEnabledExperimental")) (ocall rn/ui-manager "setLayoutAnimationEnabledExperimental" true)) (def height 44) ; 22 line-height + 11*2 vertical padding (def multiline-height 88) ; 3 * 22 three line-height + 11* vertical padding (defn label-style [] {:margin-bottom (:tiny spacing/spacing)}) (defn text-input-row-style [] {:flex-direction :row :align-items :center}) (defn text-input-view-style [style] (merge {:border-radius 8 :flex-direction :row :flex 1 :align-items :center :background-color (:ui-01 @colors/theme)} style)) (defn text-input-style [multiline input-style monospace before after] (merge (if monospace typography/monospace typography/font-regular) {:padding-top 11 :padding-bottom 11 :font-size 15 :margin 0 :text-align-vertical :center :flex 1 :color (:text-01 @colors/theme) :height height} (when-not before {:padding-left (:base spacing/spacing)}) (when-not after {:padding-right (:base spacing/spacing)}) (when multiline {:text-align-vertical :top :line-height 22 :height multiline-height}) input-style)) (defn cancel-style [] {:margin-left (:tiny spacing/spacing) :padding-left (:tiny spacing/spacing) :justify-content :center :align-self :stretch}) (defn accessory-style [] (merge (:base spacing/padding-horizontal) {:flex 1 :justify-content :center})) (defn accessory-element [{:keys [icon component icon-opts style accessibility-label on-press]}] (let [el (if on-press rn/touchable-opacity rn/view)] [el (merge {:style {:align-self :stretch}} (when on-press {:on-press on-press})) [rn/view (merge {:style (merge (accessory-style) style)} (when accessibility-label {:accessibility-label accessibility-label})) (cond icon [icons/icon icon (merge {:color (:icon-01 @colors/theme)} icon-opts)] component component :else nil)]])) (defn text-input-raw [] (let [focused (reagent/atom nil) visible (reagent/atom false) ref (atom nil) blur (fn [] (some-> @ref (ocall "blur")))] (fn [{:keys [label multiline error style input-style keyboard-type before after cancel-label on-focus on-blur show-cancel accessibility-label bottom-value secure-text-entry container-style get-ref on-cancel monospace] :or {cancel-label "Cancel"} :as props}] {:pre [(check-spec ::text-input props)]} (let [show-cancel (if (nil? show-cancel) ;; Enabled by default on iOs and disabled on Android platform/ios? show-cancel) after (cond (and secure-text-entry @visible) {:icon :main-icons/hide :on-press #(reset! visible false)} (and secure-text-entry (not @visible)) {:icon :main-icons/show :on-press #(reset! visible true)} :else after) secure (and (true? secure-text-entry) (or platform/android? (not @visible))) on-cancel (fn [] (when on-cancel (on-cancel)) (blur)) keyboard-type (cond (and platform/ios? (= keyboard-type "visible-password")) "default" ;; NOTE: Now switching dynamically brakes android input (and platform/android? secure-text-entry @visible) "visible-password" :else keyboard-type)] [rn/view {:style container-style} (when label [text/text {:style (label-style)} label]) [rn/view {:style (text-input-row-style)} [rn/view {:style (text-input-view-style style) :important-for-accessibility (if secure-text-entry :no-hide-descendants :auto)} (when before [accessory-element before]) [rn/text-input (merge {:style (text-input-style multiline input-style monospace before after) :ref (fn [r] (reset! ref r) (when get-ref (get-ref r))) :placeholder-text-color (:text-02 @colors/theme) :underline-color-android :transparent :auto-capitalize :none :secure-text-entry secure :on-focus (fn [evt] (when on-focus (on-focus evt)) (when show-cancel (rn/configure-next (:ease-in-ease-out rn/layout-animation-presets))) (reset! focused true)) :on-blur (fn [evt] (when on-blur (on-blur evt)) (when show-cancel (rn/configure-next (:ease-in-ease-out rn/layout-animation-presets))) (reset! focused false)) :keyboard-type keyboard-type} (when (and platform/ios? (not after)) {:clear-button-mode :while-editing}) (dissoc props :style :keyboard-type :on-focus :on-blur :secure-text-entry :ref :get-ref))] (when after [accessory-element after])] (when (and show-cancel (not multiline) @focused) [rn/touchable-opacity {:style (cancel-style) :on-press on-cancel} [text/text {:color :link} cancel-label]]) (when error [tooltip/tooltip (merge {:bottom-value (if bottom-value bottom-value 0)} (when accessibility-label {:accessibility-label (str (name accessibility-label) "-error")})) [text/text {:color :negative :align :center :size :small} error]])]])))) ;; TODO(Ferossgp): Refactor me when hooks available (defn text-input [{:keys [preserve-input?] :as props}] (if preserve-input? [text-input-raw props] (let [id (random-uuid)] (reagent/create-class {:component-will-unmount (fn [] (swap! text-input-refs dissoc id)) :reagent-render (fn [{:keys [get-ref default-value] :as props}] [text-input-raw (merge props {:get-ref (fn [r] ;; Store input and its defaultValue ;; one we receive a non-nil ref (when r (swap! text-input-refs assoc id {:ref r :value default-value})) (when get-ref (get-ref r)))})])}))))
{ "pile_set_name": "Github" }
/* * Copyright (C) 2015 - 2018, IBEROXARXA SERVICIOS INTEGRALES, S.L. * Copyright (C) 2015 - 2018, Jaume Olivรฉ Petrus (jolive@whitecatboard.org) * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the <organization> nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * The WHITECAT logotype cannot be changed, you can remove it, but you * cannot change it in any way. The WHITECAT logotype is: * * /\ /\ * / \_____/ \ * /_____________\ * W H I T E C A T * * * Redistributions in binary form must retain all copyright notices printed * to any local or remote output device. This include any reference to * Lua RTOS, whitecatboard.org, Lua, and other copyright notices that may * appear in the future. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Lua RTOS minimal signal implementation * */ #include "freertos/FreeRTOS.h" #include "freertos/queue.h" #include <pthread.h> #include <signal.h> #include <sys/list.h> #include <sys/_signal.h> static xQueueHandle queue = NULL; static void signal_task(void *args) { signal_data_t data; for(;;) { xQueueReceive(queue, &data, portMAX_DELAY); _pthread_exec_signal(data.dest, data.s); } } void _signal_init() { // Create queue to receive signals queue = xQueueCreate(10, sizeof(signal_data_t)); assert(queue != NULL); // Create signal task BaseType_t ret = xTaskCreatePinnedToCore(signal_task, "signal", configMINIMAL_STACK_SIZE, NULL, CONFIG_LUA_RTOS_LUA_TASK_PRIORITY + 1, NULL, 0); assert(ret == pdPASS); } void _signal_queue(int dest, int s) { signal_data_t data; data.dest = dest; data.s = s; xQueueSend(queue, &data, 0); } sig_t signal(int s, sig_t h) { return _pthread_signal(s, h); }
{ "pile_set_name": "Github" }
"""A bottom-up tree matching algorithm implementation meant to speed up 2to3's matching process. After the tree patterns are reduced to their rarest linear path, a linear Aho-Corasick automaton is created. The linear automaton traverses the linear paths from the leaves to the root of the AST and returns a set of nodes for further matching. This reduces significantly the number of candidate nodes.""" __author__ = "George Boutsioukis <gboutsioukis@gmail.com>" import logging import itertools from collections import defaultdict from . import pytree from .btm_utils import reduce_tree class BMNode(object): """Class for a node of the Aho-Corasick automaton used in matching""" count = itertools.count() def __init__(self): self.transition_table = {} self.fixers = [] self.id = next(BMNode.count) self.content = '' class BottomMatcher(object): """The main matcher class. After instantiating the patterns should be added using the add_fixer method""" def __init__(self): self.match = set() self.root = BMNode() self.nodes = [self.root] self.fixers = [] self.logger = logging.getLogger("RefactoringTool") def add_fixer(self, fixer): """Reduces a fixer's pattern tree to a linear path and adds it to the matcher(a common Aho-Corasick automaton). The fixer is appended on the matching states and called when they are reached""" self.fixers.append(fixer) tree = reduce_tree(fixer.pattern_tree) linear = tree.get_linear_subpattern() match_nodes = self.add(linear, start=self.root) for match_node in match_nodes: match_node.fixers.append(fixer) def add(self, pattern, start): "Recursively adds a linear pattern to the AC automaton" #print("adding pattern", pattern, "to", start) if not pattern: #print("empty pattern") return [start] if isinstance(pattern[0], tuple): #alternatives #print("alternatives") match_nodes = [] for alternative in pattern[0]: #add all alternatives, and add the rest of the pattern #to each end node end_nodes = self.add(alternative, start=start) for end in end_nodes: match_nodes.extend(self.add(pattern[1:], end)) return match_nodes else: #single token #not last if pattern[0] not in start.transition_table: #transition did not exist, create new next_node = BMNode() start.transition_table[pattern[0]] = next_node else: #transition exists already, follow next_node = start.transition_table[pattern[0]] if pattern[1:]: end_nodes = self.add(pattern[1:], start=next_node) else: end_nodes = [next_node] return end_nodes def run(self, leaves): """The main interface with the bottom matcher. The tree is traversed from the bottom using the constructed automaton. Nodes are only checked once as the tree is retraversed. When the automaton fails, we give it one more shot(in case the above tree matches as a whole with the rejected leaf), then we break for the next leaf. There is the special case of multiple arguments(see code comments) where we recheck the nodes Args: The leaves of the AST tree to be matched Returns: A dictionary of node matches with fixers as the keys """ current_ac_node = self.root results = defaultdict(list) for leaf in leaves: current_ast_node = leaf while current_ast_node: current_ast_node.was_checked = True for child in current_ast_node.children: # multiple statements, recheck if isinstance(child, pytree.Leaf) and child.value == ";": current_ast_node.was_checked = False break if current_ast_node.type == 1: #name node_token = current_ast_node.value else: node_token = current_ast_node.type if node_token in current_ac_node.transition_table: #token matches current_ac_node = current_ac_node.transition_table[node_token] for fixer in current_ac_node.fixers: if not fixer in results: results[fixer] = [] results[fixer].append(current_ast_node) else: #matching failed, reset automaton current_ac_node = self.root if (current_ast_node.parent is not None and current_ast_node.parent.was_checked): #the rest of the tree upwards has been checked, next leaf break #recheck the rejected node once from the root if node_token in current_ac_node.transition_table: #token matches current_ac_node = current_ac_node.transition_table[node_token] for fixer in current_ac_node.fixers: if not fixer in results.keys(): results[fixer] = [] results[fixer].append(current_ast_node) current_ast_node = current_ast_node.parent return results def print_ac(self): "Prints a graphviz diagram of the BM automaton(for debugging)" print("digraph g{") def print_node(node): for subnode_key in node.transition_table.keys(): subnode = node.transition_table[subnode_key] print("%d -> %d [label=%s] //%s" % (node.id, subnode.id, type_repr(subnode_key), str(subnode.fixers))) if subnode_key == 1: print(subnode.content) print_node(subnode) print_node(self.root) print("}") # taken from pytree.py for debugging; only used by print_ac _type_reprs = {} def type_repr(type_num): global _type_reprs if not _type_reprs: from .pygram import python_symbols # printing tokens is possible but not as useful # from .pgen2 import token // token.__dict__.items(): for name, val in python_symbols.__dict__.items(): if type(val) == int: _type_reprs[val] = name return _type_reprs.setdefault(type_num, type_num)
{ "pile_set_name": "Github" }
/* BWTConstruct.c BWT-Index Construction This module constructs BWT and auxiliary data structures. Copyright (C) 2004, Wong Chi Kwong. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdint.h> #include <errno.h> #include "QSufSort.h" #ifdef USE_MALLOC_WRAPPERS # include "malloc_wrap.h" #endif typedef uint64_t bgint_t; typedef int64_t sbgint_t; #define ALPHABET_SIZE 4 #define BIT_PER_CHAR 2 #define CHAR_PER_WORD 16 #define CHAR_PER_BYTE 4 #define BITS_IN_WORD 32 #define BITS_IN_BYTE 8 #define BYTES_IN_WORD 4 #define ALL_ONE_MASK 0xFFFFFFFF #define DNA_OCC_CNT_TABLE_SIZE_IN_WORD 65536 #define BITS_PER_OCC_VALUE 16 #define OCC_VALUE_PER_WORD 2 #define OCC_INTERVAL 256 #define OCC_INTERVAL_MAJOR 65536 #define TRUE 1 #define FALSE 0 #define BWTINC_INSERT_SORT_NUM_ITEM 7 #define MIN_AVAILABLE_WORD 0x10000 #define average(value1, value2) ( ((value1) & (value2)) + ((value1) ^ (value2)) / 2 ) #define min(value1, value2) ( ((value1) < (value2)) ? (value1) : (value2) ) #define max(value1, value2) ( ((value1) > (value2)) ? (value1) : (value2) ) #define med3(a, b, c) ( a<b ? (b<c ? b : a<c ? c : a) : (b>c ? b : a>c ? c : a)) #define swap(a, b, t); t = a; a = b; b = t; #define truncateLeft(value, offset) ( (value) << (offset) >> (offset) ) #define truncateRight(value, offset) ( (value) >> (offset) << (offset) ) #define DNA_OCC_SUM_EXCEPTION(sum) ((sum & 0xfefefeff) == 0) typedef struct BWT { bgint_t textLength; // length of the text bgint_t inverseSa0; // SA-1[0] bgint_t *cumulativeFreq; // cumulative frequency unsigned int *bwtCode; // BWT code unsigned int *occValue; // Occurrence values stored explicitly bgint_t *occValueMajor; // Occurrence values stored explicitly unsigned int *decodeTable; // For decoding BWT by table lookup bgint_t bwtSizeInWord; // Temporary variable to hold the memory allocated bgint_t occSizeInWord; // Temporary variable to hold the memory allocated bgint_t occMajorSizeInWord; // Temporary variable to hold the memory allocated } BWT; typedef struct BWTInc { BWT *bwt; unsigned int numberOfIterationDone; bgint_t *cumulativeCountInCurrentBuild; bgint_t availableWord; bgint_t buildSize; bgint_t initialMaxBuildSize; bgint_t incMaxBuildSize; unsigned int firstCharInLastIteration; unsigned int *workingMemory; unsigned int *packedText; unsigned char *textBuffer; unsigned int *packedShift; } BWTInc; static bgint_t TextLengthFromBytePacked(bgint_t bytePackedLength, unsigned int bitPerChar, unsigned int lastByteLength) { return (bytePackedLength - 1) * (BITS_IN_BYTE / bitPerChar) + lastByteLength; } static void initializeVAL(unsigned int *startAddr, const bgint_t length, const unsigned int initValue) { bgint_t i; for (i=0; i<length; i++) startAddr[i] = initValue; } static void initializeVAL_bg(bgint_t *startAddr, const bgint_t length, const bgint_t initValue) { bgint_t i; for (i=0; i<length; i++) startAddr[i] = initValue; } static void GenerateDNAOccCountTable(unsigned int *dnaDecodeTable) { unsigned int i, j, c, t; for (i=0; i<DNA_OCC_CNT_TABLE_SIZE_IN_WORD; i++) { dnaDecodeTable[i] = 0; c = i; for (j=0; j<8; j++) { t = c & 0x00000003; dnaDecodeTable[i] += 1 << (t * 8); c >>= 2; } } } // for BWTIncCreate() static bgint_t BWTOccValueMajorSizeInWord(const bgint_t numChar) { bgint_t numOfOccValue; unsigned numOfOccIntervalPerMajor; numOfOccValue = (numChar + OCC_INTERVAL - 1) / OCC_INTERVAL + 1; // Value at both end for bi-directional encoding numOfOccIntervalPerMajor = OCC_INTERVAL_MAJOR / OCC_INTERVAL; return (numOfOccValue + numOfOccIntervalPerMajor - 1) / numOfOccIntervalPerMajor * ALPHABET_SIZE; } // for BWTIncCreate() static bgint_t BWTOccValueMinorSizeInWord(const bgint_t numChar) { bgint_t numOfOccValue; numOfOccValue = (numChar + OCC_INTERVAL - 1) / OCC_INTERVAL + 1; // Value at both end for bi-directional encoding return (numOfOccValue + OCC_VALUE_PER_WORD - 1) / OCC_VALUE_PER_WORD * ALPHABET_SIZE; } // for BWTIncCreate() static bgint_t BWTResidentSizeInWord(const bgint_t numChar) { bgint_t numCharRoundUpToOccInterval; // The $ in BWT at the position of inverseSa0 is not encoded numCharRoundUpToOccInterval = (numChar + OCC_INTERVAL - 1) / OCC_INTERVAL * OCC_INTERVAL; return (numCharRoundUpToOccInterval + CHAR_PER_WORD - 1) / CHAR_PER_WORD; } static void BWTIncSetBuildSizeAndTextAddr(BWTInc *bwtInc) { bgint_t maxBuildSize; if (bwtInc->bwt->textLength == 0) { // initial build // Minus 2 because n+1 entries of seq and rank needed for n char maxBuildSize = (bwtInc->availableWord - (2 + OCC_INTERVAL / CHAR_PER_WORD) * (sizeof(bgint_t) / 4)) / (2 * CHAR_PER_WORD + 1) * CHAR_PER_WORD / (sizeof(bgint_t) / 4); if (bwtInc->initialMaxBuildSize > 0) { bwtInc->buildSize = min(bwtInc->initialMaxBuildSize, maxBuildSize); } else { bwtInc->buildSize = maxBuildSize; } } else { // Minus 3 because n+1 entries of sorted rank, seq and rank needed for n char // Minus numberOfIterationDone because bwt slightly shift to left in each iteration maxBuildSize = (bwtInc->availableWord - bwtInc->bwt->bwtSizeInWord - bwtInc->bwt->occSizeInWord - (3 + bwtInc->numberOfIterationDone * OCC_INTERVAL / BIT_PER_CHAR) * (sizeof(bgint_t) / 4)) / 3 / (sizeof(bgint_t) / 4); if (maxBuildSize < CHAR_PER_WORD) { fprintf(stderr, "BWTIncSetBuildSizeAndTextAddr(): Not enough space allocated to continue construction!\n"); exit(1); } if (bwtInc->incMaxBuildSize > 0) { bwtInc->buildSize = min(bwtInc->incMaxBuildSize, maxBuildSize); } else { bwtInc->buildSize = maxBuildSize; } if (bwtInc->buildSize < CHAR_PER_WORD) bwtInc->buildSize = CHAR_PER_WORD; } if (bwtInc->buildSize < CHAR_PER_WORD) { fprintf(stderr, "BWTIncSetBuildSizeAndTextAddr(): Not enough space allocated to continue construction!\n"); exit(1); } bwtInc->buildSize = bwtInc->buildSize / CHAR_PER_WORD * CHAR_PER_WORD; bwtInc->packedText = bwtInc->workingMemory + 2 * (bwtInc->buildSize + 1) * (sizeof(bgint_t) / 4); bwtInc->textBuffer = (unsigned char*)(bwtInc->workingMemory + (bwtInc->buildSize + 1) * (sizeof(bgint_t) / 4)); } // for ceilLog2() unsigned int leadingZero(const unsigned int input) { unsigned int l; const static unsigned int leadingZero8bit[256] = {8,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; if (input & 0xFFFF0000) { if (input & 0xFF000000) { l = leadingZero8bit[input >> 24]; } else { l = 8 + leadingZero8bit[input >> 16]; } } else { if (input & 0x0000FF00) { l = 16 + leadingZero8bit[input >> 8]; } else { l = 24 + leadingZero8bit[input]; } } return l; } // for BitPerBytePackedChar() static unsigned int ceilLog2(const unsigned int input) { if (input <= 1) return 0; return BITS_IN_WORD - leadingZero(input - 1); } // for ConvertBytePackedToWordPacked() static unsigned int BitPerBytePackedChar(const unsigned int alphabetSize) { unsigned int bitPerChar; bitPerChar = ceilLog2(alphabetSize); // Return the largest number of bit that does not affect packing efficiency if (BITS_IN_BYTE / (BITS_IN_BYTE / bitPerChar) > bitPerChar) bitPerChar = BITS_IN_BYTE / (BITS_IN_BYTE / bitPerChar); return bitPerChar; } // for ConvertBytePackedToWordPacked() static unsigned int BitPerWordPackedChar(const unsigned int alphabetSize) { return ceilLog2(alphabetSize); } static void ConvertBytePackedToWordPacked(const unsigned char *input, unsigned int *output, const unsigned int alphabetSize, const bgint_t textLength) { bgint_t i; unsigned int j, k, c; unsigned int bitPerBytePackedChar; unsigned int bitPerWordPackedChar; unsigned int charPerWord; unsigned int charPerByte; unsigned int bytePerIteration; bgint_t byteProcessed = 0; bgint_t wordProcessed = 0; unsigned int mask, shift; unsigned int buffer[BITS_IN_WORD]; bitPerBytePackedChar = BitPerBytePackedChar(alphabetSize); bitPerWordPackedChar = BitPerWordPackedChar(alphabetSize); charPerByte = BITS_IN_BYTE / bitPerBytePackedChar; charPerWord = BITS_IN_WORD / bitPerWordPackedChar; bytePerIteration = charPerWord / charPerByte; mask = truncateRight(ALL_ONE_MASK, BITS_IN_WORD - bitPerWordPackedChar); shift = BITS_IN_WORD - BITS_IN_BYTE + bitPerBytePackedChar - bitPerWordPackedChar; while ((wordProcessed + 1) * charPerWord < textLength) { k = 0; for (i=0; i<bytePerIteration; i++) { c = (unsigned int)input[byteProcessed] << shift; for (j=0; j<charPerByte; j++) { buffer[k] = c & mask; c <<= bitPerBytePackedChar; k++; } byteProcessed++; } c = 0; for (i=0; i<charPerWord; i++) { c |= buffer[i] >> bitPerWordPackedChar * i; } output[wordProcessed] = c; wordProcessed++; } k = 0; for (i=0; i < (textLength - wordProcessed * charPerWord - 1) / charPerByte + 1; i++) { c = (unsigned int)input[byteProcessed] << shift; for (j=0; j<charPerByte; j++) { buffer[k] = c & mask; c <<= bitPerBytePackedChar; k++; } byteProcessed++; } c = 0; for (i=0; i<textLength - wordProcessed * charPerWord; i++) { c |= buffer[i] >> bitPerWordPackedChar * i; } output[wordProcessed] = c; } BWT *BWTCreate(const bgint_t textLength, unsigned int *decodeTable) { BWT *bwt; bwt = (BWT*)calloc(1, sizeof(BWT)); bwt->textLength = 0; bwt->cumulativeFreq = (bgint_t*)calloc((ALPHABET_SIZE + 1), sizeof(bgint_t)); initializeVAL_bg(bwt->cumulativeFreq, ALPHABET_SIZE + 1, 0); bwt->bwtSizeInWord = 0; // Generate decode tables if (decodeTable == NULL) { bwt->decodeTable = (unsigned*)calloc(DNA_OCC_CNT_TABLE_SIZE_IN_WORD, sizeof(unsigned int)); GenerateDNAOccCountTable(bwt->decodeTable); } else { // FIXME Prevent BWTFree() from freeing decodeTable in this case bwt->decodeTable = decodeTable; } bwt->occMajorSizeInWord = BWTOccValueMajorSizeInWord(textLength); bwt->occValueMajor = (bgint_t*)calloc(bwt->occMajorSizeInWord, sizeof(bgint_t)); bwt->occSizeInWord = 0; bwt->occValue = NULL; return bwt; } BWTInc *BWTIncCreate(const bgint_t textLength, unsigned int initialMaxBuildSize, unsigned int incMaxBuildSize) { BWTInc *bwtInc; unsigned int i, n_iter; if (textLength < incMaxBuildSize) incMaxBuildSize = textLength; if (textLength < initialMaxBuildSize) initialMaxBuildSize = textLength; bwtInc = (BWTInc*)calloc(1, sizeof(BWTInc)); bwtInc->numberOfIterationDone = 0; bwtInc->bwt = BWTCreate(textLength, NULL); bwtInc->initialMaxBuildSize = initialMaxBuildSize; bwtInc->incMaxBuildSize = incMaxBuildSize; bwtInc->cumulativeCountInCurrentBuild = (bgint_t*)calloc((ALPHABET_SIZE + 1), sizeof(bgint_t)); initializeVAL_bg(bwtInc->cumulativeCountInCurrentBuild, ALPHABET_SIZE + 1, 0); // Build frequently accessed data bwtInc->packedShift = (unsigned*)calloc(CHAR_PER_WORD, sizeof(unsigned int)); for (i=0; i<CHAR_PER_WORD; i++) bwtInc->packedShift[i] = BITS_IN_WORD - (i+1) * BIT_PER_CHAR; n_iter = (textLength - initialMaxBuildSize) / incMaxBuildSize + 1; bwtInc->availableWord = BWTResidentSizeInWord(textLength) + BWTOccValueMinorSizeInWord(textLength) // minimal memory requirement + OCC_INTERVAL / BIT_PER_CHAR * n_iter * 2 * (sizeof(bgint_t) / 4) // buffer at the end of occ array + incMaxBuildSize/5 * 3 * (sizeof(bgint_t) / 4); // space for the 3 temporary arrays in each iteration if (bwtInc->availableWord < MIN_AVAILABLE_WORD) bwtInc->availableWord = MIN_AVAILABLE_WORD; // lh3: otherwise segfaul when availableWord is too small fprintf(stderr, "[%s] textLength=%ld, availableWord=%ld\n", __func__, (long)textLength, (long)bwtInc->availableWord); bwtInc->workingMemory = (unsigned*)calloc(bwtInc->availableWord, BYTES_IN_WORD); return bwtInc; } // for BWTIncConstruct() static void BWTIncPutPackedTextToRank(const unsigned int *packedText, bgint_t* __restrict rank, bgint_t* __restrict cumulativeCount, const bgint_t numChar) { bgint_t i; unsigned int j; unsigned int c, t; unsigned int packedMask; bgint_t rankIndex; bgint_t lastWord; unsigned int numCharInLastWord; lastWord = (numChar - 1) / CHAR_PER_WORD; numCharInLastWord = numChar - lastWord * CHAR_PER_WORD; packedMask = ALL_ONE_MASK >> (BITS_IN_WORD - BIT_PER_CHAR); rankIndex = numChar - 1; t = packedText[lastWord] >> (BITS_IN_WORD - numCharInLastWord * BIT_PER_CHAR); for (i=0; i<numCharInLastWord; i++) { c = t & packedMask; cumulativeCount[c+1]++; rank[rankIndex] = c; rankIndex--; t >>= BIT_PER_CHAR; } for (i=lastWord; i--;) { // loop from lastWord - 1 to 0 t = packedText[i]; for (j=0; j<CHAR_PER_WORD; j++) { c = t & packedMask; cumulativeCount[c+1]++; rank[rankIndex] = c; rankIndex--; t >>= BIT_PER_CHAR; } } // Convert occurrence to cumulativeCount cumulativeCount[2] += cumulativeCount[1]; cumulativeCount[3] += cumulativeCount[2]; cumulativeCount[4] += cumulativeCount[3]; } static void ForwardDNAAllOccCountNoLimit(const unsigned int* dna, const bgint_t index, bgint_t* __restrict occCount, const unsigned int* dnaDecodeTable) { static const unsigned int truncateRightMask[16] = { 0x00000000, 0xC0000000, 0xF0000000, 0xFC000000, 0xFF000000, 0xFFC00000, 0xFFF00000, 0xFFFC0000, 0xFFFF0000, 0xFFFFC000, 0xFFFFF000, 0xFFFFFC00, 0xFFFFFF00, 0xFFFFFFC0, 0xFFFFFFF0, 0xFFFFFFFC }; bgint_t iteration, i; unsigned int wordToCount, charToCount; unsigned int j, c, sum; occCount[0] = 0; occCount[1] = 0; occCount[2] = 0; occCount[3] = 0; iteration = index / 256; wordToCount = (index - iteration * 256) / 16; charToCount = index - iteration * 256 - wordToCount * 16; for (i=0; i<iteration; i++) { sum = 0; for (j=0; j<16; j++) { sum += dnaDecodeTable[*dna >> 16]; sum += dnaDecodeTable[*dna & 0x0000FFFF]; dna++; } if (!DNA_OCC_SUM_EXCEPTION(sum)) { occCount[0] += sum & 0x000000FF; sum >>= 8; occCount[1] += sum & 0x000000FF; sum >>= 8; occCount[2] += sum & 0x000000FF; sum >>= 8; occCount[3] += sum; } else { // only some or all of the 3 bits are on // in reality, only one of the four cases are possible if (sum == 0x00000100) { occCount[0] += 256; } else if (sum == 0x00010000) { occCount[1] += 256; } else if (sum == 0x01000000) { occCount[2] += 256; } else if (sum == 0x00000000) { occCount[3] += 256; } else { fprintf(stderr, "ForwardDNAAllOccCountNoLimit(): DNA occ sum exception!\n"); exit(1); } } } sum = 0; for (j=0; j<wordToCount; j++) { sum += dnaDecodeTable[*dna >> 16]; sum += dnaDecodeTable[*dna & 0x0000FFFF]; dna++; } if (charToCount > 0) { c = *dna & truncateRightMask[charToCount]; // increase count of 'a' by 16 - c; sum += dnaDecodeTable[c >> 16]; sum += dnaDecodeTable[c & 0xFFFF]; sum += charToCount - 16; // decrease count of 'a' by 16 - positionToProcess } occCount[0] += sum & 0x000000FF; sum >>= 8; occCount[1] += sum & 0x000000FF; sum >>= 8; occCount[2] += sum & 0x000000FF; sum >>= 8; occCount[3] += sum; } static void BWTIncBuildPackedBwt(const bgint_t *relativeRank, unsigned int* __restrict bwt, const bgint_t numChar, const bgint_t *cumulativeCount, const unsigned int *packedShift) { bgint_t i, r; unsigned int c; bgint_t previousRank, currentRank; bgint_t wordIndex, charIndex; bgint_t inverseSa0; inverseSa0 = previousRank = relativeRank[0]; for (i=1; i<=numChar; i++) { currentRank = relativeRank[i]; // previousRank > cumulativeCount[c] because $ is one of the char c = (previousRank > cumulativeCount[1]) + (previousRank > cumulativeCount[2]) + (previousRank > cumulativeCount[3]); // set bwt for currentRank if (c > 0) { // c <> 'a' r = currentRank; if (r > inverseSa0) { // - 1 because $ at inverseSa0 is not encoded r--; } wordIndex = r / CHAR_PER_WORD; charIndex = r - wordIndex * CHAR_PER_WORD; bwt[wordIndex] |= c << packedShift[charIndex]; } previousRank = currentRank; } } static inline bgint_t BWTOccValueExplicit(const BWT *bwt, const bgint_t occIndexExplicit, const unsigned int character) { bgint_t occIndexMajor; occIndexMajor = occIndexExplicit * OCC_INTERVAL / OCC_INTERVAL_MAJOR; if (occIndexExplicit % OCC_VALUE_PER_WORD == 0) { return bwt->occValueMajor[occIndexMajor * ALPHABET_SIZE + character] + (bwt->occValue[occIndexExplicit / OCC_VALUE_PER_WORD * ALPHABET_SIZE + character] >> 16); } else { return bwt->occValueMajor[occIndexMajor * ALPHABET_SIZE + character] + (bwt->occValue[occIndexExplicit / OCC_VALUE_PER_WORD * ALPHABET_SIZE + character] & 0x0000FFFF); } } static unsigned int ForwardDNAOccCount(const unsigned int* dna, const unsigned int index, const unsigned int character, const unsigned int* dnaDecodeTable) { static const unsigned int truncateRightMask[16] = { 0x00000000, 0xC0000000, 0xF0000000, 0xFC000000, 0xFF000000, 0xFFC00000, 0xFFF00000, 0xFFFC0000, 0xFFFF0000, 0xFFFFC000, 0xFFFFF000, 0xFFFFFC00, 0xFFFFFF00, 0xFFFFFFC0, 0xFFFFFFF0, 0xFFFFFFFC }; unsigned int wordToCount, charToCount; unsigned int i, c; unsigned int sum = 0; wordToCount = index / 16; charToCount = index - wordToCount * 16; for (i=0; i<wordToCount; i++) { sum += dnaDecodeTable[dna[i] >> 16]; sum += dnaDecodeTable[dna[i] & 0x0000FFFF]; } if (charToCount > 0) { c = dna[i] & truncateRightMask[charToCount]; // increase count of 'a' by 16 - c; sum += dnaDecodeTable[c >> 16]; sum += dnaDecodeTable[c & 0xFFFF]; sum += charToCount - 16; // decrease count of 'a' by 16 - positionToProcess } return (sum >> (character * 8)) & 0x000000FF; } static unsigned int BackwardDNAOccCount(const unsigned int* dna, const unsigned int index, const unsigned int character, const unsigned int* dnaDecodeTable) { static const unsigned int truncateLeftMask[16] = { 0x00000000, 0x00000003, 0x0000000F, 0x0000003F, 0x000000FF, 0x000003FF, 0x00000FFF, 0x00003FFF, 0x0000FFFF, 0x0003FFFF, 0x000FFFFF, 0x003FFFFF, 0x00FFFFFF, 0x03FFFFFF, 0x0FFFFFFF, 0x3FFFFFFF }; unsigned int wordToCount, charToCount; unsigned int i, c; unsigned int sum = 0; wordToCount = index / 16; charToCount = index - wordToCount * 16; dna -= wordToCount + 1; if (charToCount > 0) { c = *dna & truncateLeftMask[charToCount]; // increase count of 'a' by 16 - c; sum += dnaDecodeTable[c >> 16]; sum += dnaDecodeTable[c & 0xFFFF]; sum += charToCount - 16; // decrease count of 'a' by 16 - positionToProcess } for (i=0; i<wordToCount; i++) { dna++; sum += dnaDecodeTable[*dna >> 16]; sum += dnaDecodeTable[*dna & 0x0000FFFF]; } return (sum >> (character * 8)) & 0x000000FF; } bgint_t BWTOccValue(const BWT *bwt, bgint_t index, const unsigned int character) { bgint_t occValue; bgint_t occExplicitIndex, occIndex; // $ is supposed to be positioned at inverseSa0 but it is not encoded // therefore index is subtracted by 1 for adjustment if (index > bwt->inverseSa0) index--; occExplicitIndex = (index + OCC_INTERVAL / 2 - 1) / OCC_INTERVAL; // Bidirectional encoding occIndex = occExplicitIndex * OCC_INTERVAL; occValue = BWTOccValueExplicit(bwt, occExplicitIndex, character); if (occIndex == index) return occValue; if (occIndex < index) { return occValue + ForwardDNAOccCount(bwt->bwtCode + occIndex / CHAR_PER_WORD, index - occIndex, character, bwt->decodeTable); } else { return occValue - BackwardDNAOccCount(bwt->bwtCode + occIndex / CHAR_PER_WORD, occIndex - index, character, bwt->decodeTable); } } static bgint_t BWTIncGetAbsoluteRank(BWT *bwt, bgint_t* __restrict absoluteRank, bgint_t* __restrict seq, const unsigned int *packedText, const bgint_t numChar, const bgint_t* cumulativeCount, const unsigned int firstCharInLastIteration) { bgint_t saIndex; bgint_t lastWord; unsigned int packedMask; bgint_t i; unsigned int c, t, j; bgint_t rankIndex; unsigned int shift; bgint_t seqIndexFromStart[ALPHABET_SIZE]; bgint_t seqIndexFromEnd[ALPHABET_SIZE]; for (i=0; i<ALPHABET_SIZE; i++) { seqIndexFromStart[i] = cumulativeCount[i]; seqIndexFromEnd[i] = cumulativeCount[i+1] - 1; } shift = BITS_IN_WORD - BIT_PER_CHAR; packedMask = ALL_ONE_MASK >> shift; saIndex = bwt->inverseSa0; rankIndex = numChar - 1; lastWord = numChar / CHAR_PER_WORD; for (i=lastWord; i--;) { // loop from lastWord - 1 to 0 t = packedText[i]; for (j=0; j<CHAR_PER_WORD; j++) { c = t & packedMask; saIndex = bwt->cumulativeFreq[c] + BWTOccValue(bwt, saIndex, c) + 1; // A counting sort using the first character of suffix is done here // If rank > inverseSa0 -> fill seq from end, otherwise fill seq from start -> to leave the right entry for inverseSa0 if (saIndex > bwt->inverseSa0) { seq[seqIndexFromEnd[c]] = rankIndex; absoluteRank[seqIndexFromEnd[c]] = saIndex; seqIndexFromEnd[c]--; } else { seq[seqIndexFromStart[c]] = rankIndex; absoluteRank[seqIndexFromStart[c]] = saIndex; seqIndexFromStart[c]++; } rankIndex--; t >>= BIT_PER_CHAR; } } absoluteRank[seqIndexFromStart[firstCharInLastIteration]] = bwt->inverseSa0; // representing the substring of all preceding characters seq[seqIndexFromStart[firstCharInLastIteration]] = numChar; return seqIndexFromStart[firstCharInLastIteration]; } static void BWTIncSortKey(bgint_t* __restrict key, bgint_t* __restrict seq, const bgint_t numItem) { #define EQUAL_KEY_THRESHOLD 4 // Partition for equal key if data array size / the number of data with equal value with pivot < EQUAL_KEY_THRESHOLD int64_t lowIndex, highIndex, midIndex; int64_t lowPartitionIndex, highPartitionIndex; int64_t lowStack[32], highStack[32]; int stackDepth; int64_t i, j; bgint_t tempSeq, tempKey; int64_t numberOfEqualKey; if (numItem < 2) return; stackDepth = 0; lowIndex = 0; highIndex = numItem - 1; for (;;) { for (;;) { // Sort small array of data if (highIndex - lowIndex < BWTINC_INSERT_SORT_NUM_ITEM) { // Insertion sort on smallest arrays for (i=lowIndex+1; i<=highIndex; i++) { tempSeq = seq[i]; tempKey = key[i]; for (j = i; j > lowIndex && key[j-1] > tempKey; j--) { seq[j] = seq[j-1]; key[j] = key[j-1]; } if (j != i) { seq[j] = tempSeq; key[j] = tempKey; } } break; } // Choose pivot as median of the lowest, middle, and highest data; sort the three data midIndex = average(lowIndex, highIndex); if (key[lowIndex] > key[midIndex]) { tempSeq = seq[lowIndex]; tempKey = key[lowIndex]; seq[lowIndex] = seq[midIndex]; key[lowIndex] = key[midIndex]; seq[midIndex] = tempSeq; key[midIndex] = tempKey; } if (key[lowIndex] > key[highIndex]) { tempSeq = seq[lowIndex]; tempKey = key[lowIndex]; seq[lowIndex] = seq[highIndex]; key[lowIndex] = key[highIndex]; seq[highIndex] = tempSeq; key[highIndex] = tempKey; } if (key[midIndex] > key[highIndex]) { tempSeq = seq[midIndex]; tempKey = key[midIndex]; seq[midIndex] = seq[highIndex]; key[midIndex] = key[highIndex]; seq[highIndex] = tempSeq; key[highIndex] = tempKey; } // Partition data numberOfEqualKey = 0; lowPartitionIndex = lowIndex + 1; highPartitionIndex = highIndex - 1; for (;;) { while (lowPartitionIndex <= highPartitionIndex && key[lowPartitionIndex] <= key[midIndex]) { numberOfEqualKey += (key[lowPartitionIndex] == key[midIndex]); lowPartitionIndex++; } while (lowPartitionIndex < highPartitionIndex) { if (key[midIndex] >= key[highPartitionIndex]) { numberOfEqualKey += (key[midIndex] == key[highPartitionIndex]); break; } highPartitionIndex--; } if (lowPartitionIndex >= highPartitionIndex) { break; } tempSeq = seq[lowPartitionIndex]; tempKey = key[lowPartitionIndex]; seq[lowPartitionIndex] = seq[highPartitionIndex]; key[lowPartitionIndex] = key[highPartitionIndex]; seq[highPartitionIndex] = tempSeq; key[highPartitionIndex] = tempKey; if (highPartitionIndex == midIndex) { // partition key has been moved midIndex = lowPartitionIndex; } lowPartitionIndex++; highPartitionIndex--; } // Adjust the partition index highPartitionIndex = lowPartitionIndex; lowPartitionIndex--; // move the partition key to end of low partition tempSeq = seq[midIndex]; tempKey = key[midIndex]; seq[midIndex] = seq[lowPartitionIndex]; key[midIndex] = key[lowPartitionIndex]; seq[lowPartitionIndex] = tempSeq; key[lowPartitionIndex] = tempKey; if (highIndex - lowIndex + BWTINC_INSERT_SORT_NUM_ITEM <= EQUAL_KEY_THRESHOLD * numberOfEqualKey) { // Many keys = partition key; separate the equal key data from the lower partition midIndex = lowIndex; for (;;) { while (midIndex < lowPartitionIndex && key[midIndex] < key[lowPartitionIndex]) { midIndex++; } while (midIndex < lowPartitionIndex && key[lowPartitionIndex] == key[lowPartitionIndex - 1]) { lowPartitionIndex--; } if (midIndex >= lowPartitionIndex) { break; } tempSeq = seq[midIndex]; tempKey = key[midIndex]; seq[midIndex] = seq[lowPartitionIndex - 1]; key[midIndex] = key[lowPartitionIndex - 1]; seq[lowPartitionIndex - 1] = tempSeq; key[lowPartitionIndex - 1] = tempKey; midIndex++; lowPartitionIndex--; } } if (lowPartitionIndex - lowIndex > highIndex - highPartitionIndex) { // put the larger partition to stack lowStack[stackDepth] = lowIndex; highStack[stackDepth] = lowPartitionIndex - 1; stackDepth++; // sort the smaller partition first lowIndex = highPartitionIndex; } else { // put the larger partition to stack lowStack[stackDepth] = highPartitionIndex; highStack[stackDepth] = highIndex; stackDepth++; // sort the smaller partition first if (lowPartitionIndex > lowIndex) { highIndex = lowPartitionIndex - 1; } else { // all keys in the partition equals to the partition key break; } } continue; } // Pop a range from stack if (stackDepth > 0) { stackDepth--; lowIndex = lowStack[stackDepth]; highIndex = highStack[stackDepth]; continue; } else return; } } static void BWTIncBuildRelativeRank(bgint_t* __restrict sortedRank, bgint_t* __restrict seq, bgint_t* __restrict relativeRank, const bgint_t numItem, bgint_t oldInverseSa0, const bgint_t *cumulativeCount) { bgint_t i, c; bgint_t s, r; bgint_t lastRank, lastIndex; bgint_t oldInverseSa0RelativeRank = 0; bgint_t freq; lastIndex = numItem; lastRank = sortedRank[numItem]; if (lastRank > oldInverseSa0) { sortedRank[numItem]--; // to prepare for merging; $ is not encoded in bwt } s = seq[numItem]; relativeRank[s] = numItem; if (lastRank == oldInverseSa0) { oldInverseSa0RelativeRank = numItem; oldInverseSa0++; // so that this segment of code is not run again lastRank++; // so that oldInverseSa0 become a sorted group with 1 item } c = ALPHABET_SIZE - 1; freq = cumulativeCount[c]; for (i=numItem; i--;) { // from numItem - 1 to 0 r = sortedRank[i]; if (r > oldInverseSa0) sortedRank[i]--; // to prepare for merging; $ is not encoded in bwt s = seq[i]; if (i < freq) { if (lastIndex >= freq) lastRank++; // to trigger the group across alphabet boundary to be split c--; freq = cumulativeCount[c]; } if (r == lastRank) { relativeRank[s] = lastIndex; } else { if (i == lastIndex - 1) { if (lastIndex < numItem && (sbgint_t)seq[lastIndex + 1] < 0) { seq[lastIndex] = seq[lastIndex + 1] - 1; } else { seq[lastIndex] = (bgint_t)-1; } } lastIndex = i; lastRank = r; relativeRank[s] = i; if (r == oldInverseSa0) { oldInverseSa0RelativeRank = i; oldInverseSa0++; // so that this segment of code is not run again lastRank++; // so that oldInverseSa0 become a sorted group with 1 item } } } } static void BWTIncBuildBwt(unsigned int* insertBwt, const bgint_t *relativeRank, const bgint_t numChar, const bgint_t *cumulativeCount) { unsigned int c; bgint_t i; bgint_t previousRank, currentRank; previousRank = relativeRank[0]; for (i=1; i<=numChar; i++) { currentRank = relativeRank[i]; c = (previousRank >= cumulativeCount[1]) + (previousRank >= cumulativeCount[2]) + (previousRank >= cumulativeCount[3]); insertBwt[currentRank] = c; previousRank = currentRank; } } static void BWTIncMergeBwt(const bgint_t *sortedRank, const unsigned int* oldBwt, const unsigned int *insertBwt, unsigned int* __restrict mergedBwt, const bgint_t numOldBwt, const bgint_t numInsertBwt) { unsigned int bitsInWordMinusBitPerChar; bgint_t leftShift, rightShift; bgint_t o; bgint_t oIndex, iIndex, mIndex; bgint_t mWord, mChar, oWord, oChar; bgint_t numInsert; bitsInWordMinusBitPerChar = BITS_IN_WORD - BIT_PER_CHAR; oIndex = 0; iIndex = 0; mIndex = 0; mWord = 0; mChar = 0; mergedBwt[0] = 0; // this can be cleared as merged Bwt slightly shift to the left in each iteration while (oIndex < numOldBwt) { // copy from insertBwt while (iIndex <= numInsertBwt && sortedRank[iIndex] <= oIndex) { if (sortedRank[iIndex] != 0) { // special value to indicate that this is for new inverseSa0 mergedBwt[mWord] |= insertBwt[iIndex] << (BITS_IN_WORD - (mChar + 1) * BIT_PER_CHAR); mIndex++; mChar++; if (mChar == CHAR_PER_WORD) { mChar = 0; mWord++; mergedBwt[mWord] = 0; // no need to worry about crossing mergedBwt boundary } } iIndex++; } // Copy from oldBwt to mergedBwt if (iIndex <= numInsertBwt) { o = sortedRank[iIndex]; } else { o = numOldBwt; } numInsert = o - oIndex; oWord = oIndex / CHAR_PER_WORD; oChar = oIndex - oWord * CHAR_PER_WORD; if (oChar > mChar) { leftShift = (oChar - mChar) * BIT_PER_CHAR; rightShift = (CHAR_PER_WORD + mChar - oChar) * BIT_PER_CHAR; mergedBwt[mWord] = mergedBwt[mWord] | (oldBwt[oWord] << (oChar * BIT_PER_CHAR) >> (mChar * BIT_PER_CHAR)) | (oldBwt[oWord+1] >> rightShift); oIndex += min(numInsert, CHAR_PER_WORD - mChar); while (o > oIndex) { oWord++; mWord++; mergedBwt[mWord] = (oldBwt[oWord] << leftShift) | (oldBwt[oWord+1] >> rightShift); oIndex += CHAR_PER_WORD; } } else if (oChar < mChar) { rightShift = (mChar - oChar) * BIT_PER_CHAR; leftShift = (CHAR_PER_WORD + oChar - mChar) * BIT_PER_CHAR; mergedBwt[mWord] = mergedBwt[mWord] | (oldBwt[oWord] << (oChar * BIT_PER_CHAR) >> (mChar * BIT_PER_CHAR)); oIndex += min(numInsert, CHAR_PER_WORD - mChar); while (o > oIndex) { oWord++; mWord++; mergedBwt[mWord] = (oldBwt[oWord-1] << leftShift) | (oldBwt[oWord] >> rightShift); oIndex += CHAR_PER_WORD; } } else { // oChar == mChar mergedBwt[mWord] = mergedBwt[mWord] | truncateLeft(oldBwt[oWord], mChar * BIT_PER_CHAR); oIndex += min(numInsert, CHAR_PER_WORD - mChar); while (o > oIndex) { oWord++; mWord++; mergedBwt[mWord] = oldBwt[oWord]; oIndex += CHAR_PER_WORD; } } oIndex = o; mIndex += numInsert; // Clear the trailing garbage in mergedBwt mWord = mIndex / CHAR_PER_WORD; mChar = mIndex - mWord * CHAR_PER_WORD; if (mChar == 0) { mergedBwt[mWord] = 0; } else { mergedBwt[mWord] = truncateRight(mergedBwt[mWord], (BITS_IN_WORD - mChar * BIT_PER_CHAR)); } } // copy from insertBwt while (iIndex <= numInsertBwt) { if (sortedRank[iIndex] != 0) { mergedBwt[mWord] |= insertBwt[iIndex] << (BITS_IN_WORD - (mChar + 1) * BIT_PER_CHAR); mIndex++; mChar++; if (mChar == CHAR_PER_WORD) { mChar = 0; mWord++; mergedBwt[mWord] = 0; // no need to worry about crossing mergedBwt boundary } } iIndex++; } } void BWTClearTrailingBwtCode(BWT *bwt) { bgint_t bwtResidentSizeInWord; bgint_t wordIndex, offset; bgint_t i; bwtResidentSizeInWord = BWTResidentSizeInWord(bwt->textLength); wordIndex = bwt->textLength / CHAR_PER_WORD; offset = (bwt->textLength - wordIndex * CHAR_PER_WORD) * BIT_PER_CHAR; if (offset > 0) { bwt->bwtCode[wordIndex] = truncateRight(bwt->bwtCode[wordIndex], BITS_IN_WORD - offset); } else { if (wordIndex < bwtResidentSizeInWord) { bwt->bwtCode[wordIndex] = 0; } } for (i=wordIndex+1; i<bwtResidentSizeInWord; i++) { bwt->bwtCode[i] = 0; } } void BWTGenerateOccValueFromBwt(const unsigned int* bwt, unsigned int* __restrict occValue, bgint_t* __restrict occValueMajor, const bgint_t textLength, const unsigned int* decodeTable) { bgint_t numberOfOccValueMajor, numberOfOccValue; unsigned int wordBetweenOccValue; bgint_t numberOfOccIntervalPerMajor; unsigned int c; bgint_t i, j; bgint_t occMajorIndex; bgint_t occIndex, bwtIndex; bgint_t sum; // perhaps unsigned is big enough bgint_t tempOccValue0[ALPHABET_SIZE], tempOccValue1[ALPHABET_SIZE]; wordBetweenOccValue = OCC_INTERVAL / CHAR_PER_WORD; // Calculate occValue numberOfOccValue = (textLength + OCC_INTERVAL - 1) / OCC_INTERVAL + 1; // Value at both end for bi-directional encoding numberOfOccIntervalPerMajor = OCC_INTERVAL_MAJOR / OCC_INTERVAL; numberOfOccValueMajor = (numberOfOccValue + numberOfOccIntervalPerMajor - 1) / numberOfOccIntervalPerMajor; tempOccValue0[0] = 0; tempOccValue0[1] = 0; tempOccValue0[2] = 0; tempOccValue0[3] = 0; occValueMajor[0] = 0; occValueMajor[1] = 0; occValueMajor[2] = 0; occValueMajor[3] = 0; occIndex = 0; bwtIndex = 0; for (occMajorIndex=1; occMajorIndex<numberOfOccValueMajor; occMajorIndex++) { for (i=0; i<numberOfOccIntervalPerMajor/2; i++) { sum = 0; tempOccValue1[0] = tempOccValue0[0]; tempOccValue1[1] = tempOccValue0[1]; tempOccValue1[2] = tempOccValue0[2]; tempOccValue1[3] = tempOccValue0[3]; for (j=0; j<wordBetweenOccValue; j++) { c = bwt[bwtIndex]; sum += decodeTable[c >> 16]; sum += decodeTable[c & 0x0000FFFF]; bwtIndex++; } if (!DNA_OCC_SUM_EXCEPTION(sum)) { tempOccValue1[0] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[1] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[2] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[3] += sum; } else { if (sum == 0x00000100) { tempOccValue1[0] += 256; } else if (sum == 0x00010000) { tempOccValue1[1] += 256; } else if (sum == 0x01000000) { tempOccValue1[2] += 256; } else { tempOccValue1[3] += 256; } } occValue[occIndex * 4 + 0] = (tempOccValue0[0] << 16) | tempOccValue1[0]; occValue[occIndex * 4 + 1] = (tempOccValue0[1] << 16) | tempOccValue1[1]; occValue[occIndex * 4 + 2] = (tempOccValue0[2] << 16) | tempOccValue1[2]; occValue[occIndex * 4 + 3] = (tempOccValue0[3] << 16) | tempOccValue1[3]; tempOccValue0[0] = tempOccValue1[0]; tempOccValue0[1] = tempOccValue1[1]; tempOccValue0[2] = tempOccValue1[2]; tempOccValue0[3] = tempOccValue1[3]; sum = 0; occIndex++; for (j=0; j<wordBetweenOccValue; j++) { c = bwt[bwtIndex]; sum += decodeTable[c >> 16]; sum += decodeTable[c & 0x0000FFFF]; bwtIndex++; } if (!DNA_OCC_SUM_EXCEPTION(sum)) { tempOccValue0[0] += (sum & 0x000000FF); sum >>= 8; tempOccValue0[1] += (sum & 0x000000FF); sum >>= 8; tempOccValue0[2] += (sum & 0x000000FF); sum >>= 8; tempOccValue0[3] += sum; } else { if (sum == 0x00000100) { tempOccValue0[0] += 256; } else if (sum == 0x00010000) { tempOccValue0[1] += 256; } else if (sum == 0x01000000) { tempOccValue0[2] += 256; } else { tempOccValue0[3] += 256; } } } occValueMajor[occMajorIndex * 4 + 0] = occValueMajor[(occMajorIndex - 1) * 4 + 0] + tempOccValue0[0]; occValueMajor[occMajorIndex * 4 + 1] = occValueMajor[(occMajorIndex - 1) * 4 + 1] + tempOccValue0[1]; occValueMajor[occMajorIndex * 4 + 2] = occValueMajor[(occMajorIndex - 1) * 4 + 2] + tempOccValue0[2]; occValueMajor[occMajorIndex * 4 + 3] = occValueMajor[(occMajorIndex - 1) * 4 + 3] + tempOccValue0[3]; tempOccValue0[0] = 0; tempOccValue0[1] = 0; tempOccValue0[2] = 0; tempOccValue0[3] = 0; } while (occIndex < (numberOfOccValue-1)/2) { sum = 0; tempOccValue1[0] = tempOccValue0[0]; tempOccValue1[1] = tempOccValue0[1]; tempOccValue1[2] = tempOccValue0[2]; tempOccValue1[3] = tempOccValue0[3]; for (j=0; j<wordBetweenOccValue; j++) { c = bwt[bwtIndex]; sum += decodeTable[c >> 16]; sum += decodeTable[c & 0x0000FFFF]; bwtIndex++; } if (!DNA_OCC_SUM_EXCEPTION(sum)) { tempOccValue1[0] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[1] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[2] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[3] += sum; } else { if (sum == 0x00000100) { tempOccValue1[0] += 256; } else if (sum == 0x00010000) { tempOccValue1[1] += 256; } else if (sum == 0x01000000) { tempOccValue1[2] += 256; } else { tempOccValue1[3] += 256; } } occValue[occIndex * 4 + 0] = (tempOccValue0[0] << 16) | tempOccValue1[0]; occValue[occIndex * 4 + 1] = (tempOccValue0[1] << 16) | tempOccValue1[1]; occValue[occIndex * 4 + 2] = (tempOccValue0[2] << 16) | tempOccValue1[2]; occValue[occIndex * 4 + 3] = (tempOccValue0[3] << 16) | tempOccValue1[3]; tempOccValue0[0] = tempOccValue1[0]; tempOccValue0[1] = tempOccValue1[1]; tempOccValue0[2] = tempOccValue1[2]; tempOccValue0[3] = tempOccValue1[3]; sum = 0; occIndex++; for (j=0; j<wordBetweenOccValue; j++) { c = bwt[bwtIndex]; sum += decodeTable[c >> 16]; sum += decodeTable[c & 0x0000FFFF]; bwtIndex++; } if (!DNA_OCC_SUM_EXCEPTION(sum)) { tempOccValue0[0] += (sum & 0x000000FF); sum >>= 8; tempOccValue0[1] += (sum & 0x000000FF); sum >>= 8; tempOccValue0[2] += (sum & 0x000000FF); sum >>= 8; tempOccValue0[3] += sum; } else { if (sum == 0x00000100) { tempOccValue0[0] += 256; } else if (sum == 0x00010000) { tempOccValue0[1] += 256; } else if (sum == 0x01000000) { tempOccValue0[2] += 256; } else { tempOccValue0[3] += 256; } } } sum = 0; tempOccValue1[0] = tempOccValue0[0]; tempOccValue1[1] = tempOccValue0[1]; tempOccValue1[2] = tempOccValue0[2]; tempOccValue1[3] = tempOccValue0[3]; if (occIndex * 2 < numberOfOccValue - 1) { for (j=0; j<wordBetweenOccValue; j++) { c = bwt[bwtIndex]; sum += decodeTable[c >> 16]; sum += decodeTable[c & 0x0000FFFF]; bwtIndex++; } if (!DNA_OCC_SUM_EXCEPTION(sum)) { tempOccValue1[0] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[1] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[2] += (sum & 0x000000FF); sum >>= 8; tempOccValue1[3] += sum; } else { if (sum == 0x00000100) { tempOccValue1[0] += 256; } else if (sum == 0x00010000) { tempOccValue1[1] += 256; } else if (sum == 0x01000000) { tempOccValue1[2] += 256; } else { tempOccValue1[3] += 256; } } } occValue[occIndex * 4 + 0] = (tempOccValue0[0] << 16) | tempOccValue1[0]; occValue[occIndex * 4 + 1] = (tempOccValue0[1] << 16) | tempOccValue1[1]; occValue[occIndex * 4 + 2] = (tempOccValue0[2] << 16) | tempOccValue1[2]; occValue[occIndex * 4 + 3] = (tempOccValue0[3] << 16) | tempOccValue1[3]; } static void BWTIncConstruct(BWTInc *bwtInc, const bgint_t numChar) { unsigned int i; bgint_t mergedBwtSizeInWord, mergedOccSizeInWord; unsigned int firstCharInThisIteration; bgint_t *relativeRank, *seq, *sortedRank; unsigned int *insertBwt, *mergedBwt; bgint_t newInverseSa0RelativeRank, oldInverseSa0RelativeRank, newInverseSa0; mergedBwtSizeInWord = BWTResidentSizeInWord(bwtInc->bwt->textLength + numChar); mergedOccSizeInWord = BWTOccValueMinorSizeInWord(bwtInc->bwt->textLength + numChar); initializeVAL_bg(bwtInc->cumulativeCountInCurrentBuild, ALPHABET_SIZE + 1, 0); if (bwtInc->bwt->textLength == 0) { // Initial build // Set address seq = (bgint_t*)bwtInc->workingMemory; relativeRank = seq + bwtInc->buildSize + 1; // mergedBwt and packedTex may share memory mergedBwt = insertBwt = bwtInc->workingMemory + bwtInc->availableWord - mergedBwtSizeInWord; // build in place assert((void*)(relativeRank + bwtInc->buildSize + 1) <= (void*)bwtInc->packedText); assert((void*)(relativeRank + bwtInc->buildSize + 1) <= (void*)mergedBwt); // ->packedText is not used any more and may be overwritten by mergedBwt BWTIncPutPackedTextToRank(bwtInc->packedText, relativeRank, bwtInc->cumulativeCountInCurrentBuild, numChar); firstCharInThisIteration = relativeRank[0]; relativeRank[numChar] = 0; // Sort suffix QSufSortSuffixSort((qsint_t*)relativeRank, (qsint_t*)seq, (qsint_t)numChar, (qsint_t)ALPHABET_SIZE - 1, 0, FALSE); newInverseSa0 = relativeRank[0]; // Clear BWT area initializeVAL(insertBwt, mergedBwtSizeInWord, 0); // Build BWT BWTIncBuildPackedBwt(relativeRank, insertBwt, numChar, bwtInc->cumulativeCountInCurrentBuild, bwtInc->packedShift); // so that the cumulativeCount is not deducted bwtInc->firstCharInLastIteration = ALPHABET_SIZE; } else { // Incremental build // Set address sortedRank = (bgint_t*)bwtInc->workingMemory; seq = sortedRank + bwtInc->buildSize + 1; insertBwt = (unsigned*)seq; // insertBwt and seq share memory // relativeRank and ->packedText may share memory relativeRank = seq + bwtInc->buildSize + 1; assert((void*)relativeRank <= (void*)bwtInc->packedText); // Store the first character of this iteration firstCharInThisIteration = bwtInc->packedText[0] >> (BITS_IN_WORD - BIT_PER_CHAR); // Count occurrence of input text ForwardDNAAllOccCountNoLimit(bwtInc->packedText, numChar, bwtInc->cumulativeCountInCurrentBuild + 1, bwtInc->bwt->decodeTable); // Add the first character of the previous iteration to represent the inverseSa0 of the previous iteration bwtInc->cumulativeCountInCurrentBuild[bwtInc->firstCharInLastIteration + 1]++; bwtInc->cumulativeCountInCurrentBuild[2] += bwtInc->cumulativeCountInCurrentBuild[1]; bwtInc->cumulativeCountInCurrentBuild[3] += bwtInc->cumulativeCountInCurrentBuild[2]; bwtInc->cumulativeCountInCurrentBuild[4] += bwtInc->cumulativeCountInCurrentBuild[3]; // Get rank of new suffix among processed suffix // The seq array is built into ALPHABET_SIZE + 2 groups; ALPHABET_SIZE groups + 1 group divided into 2 by inverseSa0 + inverseSa0 as 1 group // ->packedText is not used any more and will be overwritten by relativeRank oldInverseSa0RelativeRank = BWTIncGetAbsoluteRank(bwtInc->bwt, sortedRank, seq, bwtInc->packedText, numChar, bwtInc->cumulativeCountInCurrentBuild, bwtInc->firstCharInLastIteration); // Sort rank by ALPHABET_SIZE + 2 groups (or ALPHABET_SIZE + 1 groups when inverseSa0 sit on the border of a group) for (i=0; i<ALPHABET_SIZE; i++) { if (bwtInc->cumulativeCountInCurrentBuild[i] > oldInverseSa0RelativeRank || bwtInc->cumulativeCountInCurrentBuild[i+1] <= oldInverseSa0RelativeRank) { BWTIncSortKey(sortedRank + bwtInc->cumulativeCountInCurrentBuild[i], seq + bwtInc->cumulativeCountInCurrentBuild[i], bwtInc->cumulativeCountInCurrentBuild[i+1] - bwtInc->cumulativeCountInCurrentBuild[i]); } else { if (bwtInc->cumulativeCountInCurrentBuild[i] < oldInverseSa0RelativeRank) { BWTIncSortKey(sortedRank + bwtInc->cumulativeCountInCurrentBuild[i], seq + bwtInc->cumulativeCountInCurrentBuild[i], oldInverseSa0RelativeRank - bwtInc->cumulativeCountInCurrentBuild[i]); } if (bwtInc->cumulativeCountInCurrentBuild[i+1] > oldInverseSa0RelativeRank + 1) { BWTIncSortKey(sortedRank + oldInverseSa0RelativeRank + 1, seq + oldInverseSa0RelativeRank + 1, bwtInc->cumulativeCountInCurrentBuild[i+1] - oldInverseSa0RelativeRank - 1); } } } // build relative rank; sortedRank is updated for merging to cater for the fact that $ is not encoded in bwt // the cumulative freq information is used to make sure that inverseSa0 and suffix beginning with different characters are kept in different unsorted groups) BWTIncBuildRelativeRank(sortedRank, seq, relativeRank, numChar, bwtInc->bwt->inverseSa0, bwtInc->cumulativeCountInCurrentBuild); assert(relativeRank[numChar] == oldInverseSa0RelativeRank); // Sort suffix QSufSortSuffixSort((qsint_t*)relativeRank, (qsint_t*)seq, (qsint_t)numChar, (qsint_t)numChar, 1, TRUE); newInverseSa0RelativeRank = relativeRank[0]; newInverseSa0 = sortedRank[newInverseSa0RelativeRank] + newInverseSa0RelativeRank; sortedRank[newInverseSa0RelativeRank] = 0; // a special value so that this is skipped in the merged bwt // Build BWT; seq is overwritten by insertBwt BWTIncBuildBwt(insertBwt, relativeRank, numChar, bwtInc->cumulativeCountInCurrentBuild); // Merge BWT; relativeRank may be overwritten by mergedBwt mergedBwt = bwtInc->workingMemory + bwtInc->availableWord - mergedBwtSizeInWord - bwtInc->numberOfIterationDone * OCC_INTERVAL / BIT_PER_CHAR * (sizeof(bgint_t) / 4); // minus numberOfIteration * occInterval to create a buffer for merging assert(mergedBwt >= insertBwt + numChar); BWTIncMergeBwt(sortedRank, bwtInc->bwt->bwtCode, insertBwt, mergedBwt, bwtInc->bwt->textLength, numChar); } // Build auxiliary structure and update info and pointers in BWT bwtInc->bwt->textLength += numChar; bwtInc->bwt->bwtCode = mergedBwt; bwtInc->bwt->bwtSizeInWord = mergedBwtSizeInWord; bwtInc->bwt->occSizeInWord = mergedOccSizeInWord; assert(mergedBwt >= bwtInc->workingMemory + mergedOccSizeInWord); bwtInc->bwt->occValue = mergedBwt - mergedOccSizeInWord; BWTClearTrailingBwtCode(bwtInc->bwt); BWTGenerateOccValueFromBwt(bwtInc->bwt->bwtCode, bwtInc->bwt->occValue, bwtInc->bwt->occValueMajor, bwtInc->bwt->textLength, bwtInc->bwt->decodeTable); bwtInc->bwt->inverseSa0 = newInverseSa0; bwtInc->bwt->cumulativeFreq[1] += bwtInc->cumulativeCountInCurrentBuild[1] - (bwtInc->firstCharInLastIteration <= 0); bwtInc->bwt->cumulativeFreq[2] += bwtInc->cumulativeCountInCurrentBuild[2] - (bwtInc->firstCharInLastIteration <= 1); bwtInc->bwt->cumulativeFreq[3] += bwtInc->cumulativeCountInCurrentBuild[3] - (bwtInc->firstCharInLastIteration <= 2); bwtInc->bwt->cumulativeFreq[4] += bwtInc->cumulativeCountInCurrentBuild[4] - (bwtInc->firstCharInLastIteration <= 3); bwtInc->firstCharInLastIteration = firstCharInThisIteration; // Set build size and text address for the next build BWTIncSetBuildSizeAndTextAddr(bwtInc); bwtInc->numberOfIterationDone++; } BWTInc *BWTIncConstructFromPacked(const char *inputFileName, bgint_t initialMaxBuildSize, bgint_t incMaxBuildSize) { FILE *packedFile; bgint_t packedFileLen; bgint_t totalTextLength; bgint_t textToLoad, textSizeInByte; bgint_t processedTextLength; unsigned char lastByteLength; BWTInc *bwtInc; packedFile = (FILE*)fopen(inputFileName, "rb"); if (packedFile == NULL) { fprintf(stderr, "BWTIncConstructFromPacked() : Cannot open %s : %s\n", inputFileName, strerror(errno)); exit(1); } if (fseek(packedFile, -1, SEEK_END) != 0) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't seek on %s : %s\n", inputFileName, strerror(errno)); exit(1); } packedFileLen = ftell(packedFile); if (packedFileLen == -1) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't ftell on %s : %s\n", inputFileName, strerror(errno)); exit(1); } if (fread(&lastByteLength, sizeof(unsigned char), 1, packedFile) != 1) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't read from %s : %s\n", inputFileName, ferror(packedFile)? strerror(errno) : "Unexpected end of file"); exit(1); } totalTextLength = TextLengthFromBytePacked(packedFileLen, BIT_PER_CHAR, lastByteLength); bwtInc = BWTIncCreate(totalTextLength, initialMaxBuildSize, incMaxBuildSize); BWTIncSetBuildSizeAndTextAddr(bwtInc); if (bwtInc->buildSize > totalTextLength) { textToLoad = totalTextLength; } else { textToLoad = totalTextLength - ((totalTextLength - bwtInc->buildSize + CHAR_PER_WORD - 1) / CHAR_PER_WORD * CHAR_PER_WORD); } textSizeInByte = textToLoad / CHAR_PER_BYTE; // excluded the odd byte if (fseek(packedFile, -((long)textSizeInByte + 2), SEEK_CUR) != 0) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't seek on %s : %s\n", inputFileName, strerror(errno)); exit(1); } if (fread(bwtInc->textBuffer, sizeof(unsigned char), textSizeInByte + 1, packedFile) != textSizeInByte + 1) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't read from %s : %s\n", inputFileName, ferror(packedFile)? strerror(errno) : "Unexpected end of file"); exit(1); } if (fseek(packedFile, -((long)textSizeInByte + 1), SEEK_CUR) != 0) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't seek on %s : %s\n", inputFileName, strerror(errno)); exit(1); } ConvertBytePackedToWordPacked(bwtInc->textBuffer, bwtInc->packedText, ALPHABET_SIZE, textToLoad); BWTIncConstruct(bwtInc, textToLoad); processedTextLength = textToLoad; while (processedTextLength < totalTextLength) { textToLoad = bwtInc->buildSize / CHAR_PER_WORD * CHAR_PER_WORD; if (textToLoad > totalTextLength - processedTextLength) { textToLoad = totalTextLength - processedTextLength; } textSizeInByte = textToLoad / CHAR_PER_BYTE; if (fseek(packedFile, -((long)textSizeInByte), SEEK_CUR) != 0) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't seek on %s : %s\n", inputFileName, strerror(errno)); exit(1); } if (fread(bwtInc->textBuffer, sizeof(unsigned char), textSizeInByte, packedFile) != textSizeInByte) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't read from %s : %s\n", inputFileName, ferror(packedFile)? strerror(errno) : "Unexpected end of file"); exit(1); } if (fseek(packedFile, -((long)textSizeInByte), SEEK_CUR) != 0) { fprintf(stderr, "BWTIncConstructFromPacked() : Can't seek on %s : %s\n", inputFileName, strerror(errno)); exit(1); } ConvertBytePackedToWordPacked(bwtInc->textBuffer, bwtInc->packedText, ALPHABET_SIZE, textToLoad); BWTIncConstruct(bwtInc, textToLoad); processedTextLength += textToLoad; if (bwtInc->numberOfIterationDone % 10 == 0) { fprintf(stderr, "[BWTIncConstructFromPacked] %lu iterations done. %lu characters processed.\n", (long)bwtInc->numberOfIterationDone, (long)processedTextLength); } } fclose(packedFile); return bwtInc; } void BWTIncFree(BWTInc *bwtInc) { if (bwtInc == 0) return; free(bwtInc->bwt->cumulativeFreq); free(bwtInc->bwt->occValueMajor); free(bwtInc->bwt->decodeTable); free(bwtInc->bwt); free(bwtInc->workingMemory); free(bwtInc->cumulativeCountInCurrentBuild); free(bwtInc->packedShift); free(bwtInc); } static bgint_t BWTFileSizeInWord(const bgint_t numChar) { // The $ in BWT at the position of inverseSa0 is not encoded return (numChar + CHAR_PER_WORD - 1) / CHAR_PER_WORD; } void BWTSaveBwtCodeAndOcc(const BWT *bwt, const char *bwtFileName, const char *occValueFileName) { FILE *bwtFile; /* FILE *occValueFile; */ bgint_t bwtLength; bwtFile = (FILE*)fopen(bwtFileName, "wb"); if (bwtFile == NULL) { fprintf(stderr, "BWTSaveBwtCodeAndOcc(): Cannot open %s for writing: %s\n", bwtFileName, strerror(errno)); exit(1); } bwtLength = BWTFileSizeInWord(bwt->textLength); if (fwrite(&bwt->inverseSa0, sizeof(bgint_t), 1, bwtFile) != 1 || fwrite(bwt->cumulativeFreq + 1, sizeof(bgint_t), ALPHABET_SIZE, bwtFile) != ALPHABET_SIZE || fwrite(bwt->bwtCode, sizeof(unsigned int), bwtLength, bwtFile) != bwtLength) { fprintf(stderr, "BWTSaveBwtCodeAndOcc(): Error writing to %s : %s\n", bwtFileName, strerror(errno)); exit(1); } if (fclose(bwtFile) != 0) { fprintf(stderr, "BWTSaveBwtCodeAndOcc(): Error on closing %s : %s\n", bwtFileName, strerror(errno)); exit(1); } } void bwt_bwtgen2(const char *fn_pac, const char *fn_bwt, int block_size) { BWTInc *bwtInc; bwtInc = BWTIncConstructFromPacked(fn_pac, block_size, block_size); fprintf(stderr, "[bwt_gen] Finished constructing BWT in %u iterations.\n", bwtInc->numberOfIterationDone); BWTSaveBwtCodeAndOcc(bwtInc->bwt, fn_bwt, 0); BWTIncFree(bwtInc); } void bwt_bwtgen(const char *fn_pac, const char *fn_bwt) { bwt_bwtgen2(fn_pac, fn_bwt, 10000000); } int bwt_bwtgen_main(int argc, char *argv[]) { if (argc < 3) { fprintf(stderr, "Usage: bwtgen <in.pac> <out.bwt>\n"); return 1; } bwt_bwtgen(argv[1], argv[2]); return 0; } #ifdef MAIN_BWT_GEN int main(int argc, char *argv[]) { return bwt_bwtgen_main(argc, argv); } #endif
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE FixtureDefinition> <FixtureDefinition xmlns="http://www.qlcplus.org/FixtureDefinition"> <Creator> <Name>Q Light Controller Plus</Name> <Version>4.12.0 GIT</Version> <Author>Edgar Aichinger</Author> </Creator> <Manufacturer>American DJ</Manufacturer> <Model>WiFly PAR QA5</Model> <Type>Color Changer</Type> <Channel Name="Red" Preset="IntensityRed"/> <Channel Name="Green" Preset="IntensityGreen"/> <Channel Name="Blue" Preset="IntensityBlue"/> <Channel Name="Amber" Preset="IntensityAmber"/> <Channel Name="Master dimmer" Preset="IntensityMasterDimmer"/> <Channel Name="Strobing"> <Group Byte="0">Shutter</Group> <Capability Min="0" Max="15" Preset="ShutterOpen">Off</Capability> <Capability Min="16" Max="255" Preset="StrobeSlowToFast">Strobing slow โ€“ fast</Capability> </Channel> <Channel Name="Color Macros"> <Group Byte="0">Colour</Group> <Capability Min="0" Max="15">Off</Capability> <Capability Min="16" Max="31" Preset="ColorMacro" Res1="#ff0000">Red</Capability> <Capability Min="32" Max="47" Preset="ColorMacro" Res1="#00ff00">Green</Capability> <Capability Min="48" Max="63" Preset="ColorMacro" Res1="#0000ff">Blue</Capability> <Capability Min="64" Max="79" Preset="ColorMacro" Res1="#ffaa00">Amber</Capability> <Capability Min="80" Max="95" Preset="ColorMacro" Res1="#ffff00">Red + Green</Capability> <Capability Min="96" Max="111" Preset="ColorMacro" Res1="#ff00ff">Red + Blue</Capability> <Capability Min="112" Max="127" Preset="ColorMacro" Res1="#ff5500">Red + Amber</Capability> <Capability Min="128" Max="143" Preset="ColorMacro" Res1="#00ffff">Green + Blue</Capability> <Capability Min="144" Max="159" Preset="ColorMacro" Res1="#88ff00">Green + Amber</Capability> <Capability Min="160" Max="175" Preset="ColorMacro" Res1="#8800ff">Blue + Amber</Capability> <Capability Min="176" Max="191" Preset="ColorMacro" Res1="#ffffff">Red + Green + Blue</Capability> <Capability Min="192" Max="207" Preset="ColorMacro" Res1="#ffcc00">Red + Green + Amber</Capability> <Capability Min="208" Max="223" Preset="ColorMacro" Res1="#ff007b">Red + Blue + Amber</Capability> <Capability Min="224" Max="239">Green + Blue + Amber</Capability> <Capability Min="240" Max="255" Preset="ColorMacro" Res1="#ffffff">Red + Green + Blue + Amber</Capability> </Channel> <Channel Name="Program selection mode"> <Group Byte="0">Maintenance</Group> <Capability Min="0" Max="51" Preset="Alias">Dimming mode</Capability> <Capability Min="52" Max="102" Preset="Alias">Color macro mode</Capability> <Capability Min="103" Max="153" Preset="Alias">Color change mode <Alias Mode="8 ch" Channel="Strobing" With="Speed Control"/> <Alias Mode="8 ch" Channel="Color Macros" With="Color Change"/> </Capability> <Capability Min="154" Max="204" Preset="Alias">Color fade mode <Alias Mode="8 ch" Channel="Strobing" With="Speed Control"/> <Alias Mode="8 ch" Channel="Color Macros" With="Color Fade"/> </Capability> <Capability Min="205" Max="255" Preset="Alias">Auto run mode <Alias Mode="8 ch" Channel="Strobing" With="Sound Sensivity"/> <Alias Mode="8 ch" Channel="Color Macros" With="Sound Active"/> </Capability> </Channel> <Channel Name="Color Change"> <Group Byte="0">Effect</Group> <Capability Min="0" Max="15">Color Change 1</Capability> <Capability Min="16" Max="31">Color Change 2</Capability> <Capability Min="32" Max="47">Color Change 3</Capability> <Capability Min="48" Max="63">Color Change 4</Capability> <Capability Min="64" Max="79">Color Change 5</Capability> <Capability Min="80" Max="95">Color Change 6</Capability> <Capability Min="96" Max="111">Color Change 7</Capability> <Capability Min="112" Max="127">Color Change 8</Capability> <Capability Min="128" Max="143">Color Change 9</Capability> <Capability Min="144" Max="159">Color Change 10</Capability> <Capability Min="160" Max="175">Color Change 11</Capability> <Capability Min="176" Max="191">Color Change 12</Capability> <Capability Min="192" Max="207">Color Change 13</Capability> <Capability Min="208" Max="223">Color Change 14</Capability> <Capability Min="224" Max="239">Color Change 15</Capability> <Capability Min="240" Max="255">Color Change 16</Capability> </Channel> <Channel Name="Color Fade"> <Group Byte="0">Effect</Group> <Capability Min="0" Max="15">Color Fade 1</Capability> <Capability Min="16" Max="31">Color Fade 2</Capability> <Capability Min="32" Max="47">Color Fade 3</Capability> <Capability Min="48" Max="63">Color Fade 4</Capability> <Capability Min="64" Max="79">Color Fade 5</Capability> <Capability Min="80" Max="95">Color Fade 6</Capability> <Capability Min="96" Max="111">Color Fade 7</Capability> <Capability Min="112" Max="127">Color Fade 8</Capability> <Capability Min="128" Max="143">Color Fade 9</Capability> <Capability Min="144" Max="159">Color Fade 10</Capability> <Capability Min="160" Max="175">Color Fade 11</Capability> <Capability Min="176" Max="191">Color Fade 12</Capability> <Capability Min="192" Max="207">Color Fade 13</Capability> <Capability Min="208" Max="223">Color Fade 14</Capability> <Capability Min="224" Max="239">Color Fade 15</Capability> <Capability Min="240" Max="255">Color Fade 16</Capability> </Channel> <Channel Name="Sound Active"> <Group Byte="0">Effect</Group> <Capability Min="0" Max="15">Sound Active 1</Capability> <Capability Min="16" Max="31">Sound Active 2</Capability> <Capability Min="32" Max="47">Sound Active 3</Capability> <Capability Min="48" Max="63">Sound Active 4</Capability> <Capability Min="64" Max="79">Sound Active 5</Capability> <Capability Min="80" Max="95">Sound Active 6</Capability> <Capability Min="96" Max="111">Sound Active 7</Capability> <Capability Min="112" Max="127">Sound Active 8</Capability> <Capability Min="128" Max="143">Sound Active 9</Capability> <Capability Min="144" Max="159">Sound Active 10</Capability> <Capability Min="160" Max="175">Sound Active 11</Capability> <Capability Min="176" Max="191">Sound Active 12</Capability> <Capability Min="192" Max="207">Sound Active 13</Capability> <Capability Min="208" Max="223">Sound Active 14</Capability> <Capability Min="224" Max="239">Sound Active 15</Capability> <Capability Min="240" Max="255">Sound Active 16</Capability> </Channel> <Channel Name="Speed Control"> <Group Byte="0">Speed</Group> <Capability Min="0" Max="255">Speed slow - fast</Capability> </Channel> <Channel Name="Sound Sensivity"> <Group Byte="0">Speed</Group> <Capability Min="0" Max="31">no function</Capability> <Capability Min="32" Max="255">Sound Sensivity low - high</Capability> </Channel> <Mode Name="1 channel"> <Channel Number="0">Color Macros</Channel> </Mode> <Mode Name="2 channel"> <Channel Number="0">Color Macros</Channel> <Channel Number="1">Master dimmer</Channel> </Mode> <Mode Name="3 channel"> <Channel Number="0">Color Macros</Channel> <Channel Number="1">Master dimmer</Channel> <Channel Number="2">Strobing</Channel> </Mode> <Mode Name="4 channel"> <Channel Number="0">Red</Channel> <Channel Number="1">Green</Channel> <Channel Number="2">Blue</Channel> <Channel Number="3">Amber</Channel> </Mode> <Mode Name="5 channel"> <Channel Number="0">Red</Channel> <Channel Number="1">Green</Channel> <Channel Number="2">Blue</Channel> <Channel Number="3">Amber</Channel> <Channel Number="4">Master dimmer</Channel> </Mode> <Mode Name="6 channel"> <Channel Number="0">Red</Channel> <Channel Number="1">Green</Channel> <Channel Number="2">Blue</Channel> <Channel Number="3">Amber</Channel> <Channel Number="4">Master dimmer</Channel> <Channel Number="5">Color Macros</Channel> </Mode> <Mode Name="7 channel"> <Channel Number="0">Red</Channel> <Channel Number="1">Green</Channel> <Channel Number="2">Blue</Channel> <Channel Number="3">Amber</Channel> <Channel Number="4">Master dimmer</Channel> <Channel Number="5">Strobing</Channel> <Channel Number="6">Color Macros</Channel> </Mode> <Mode Name="8 channel"> <Channel Number="0">Red</Channel> <Channel Number="1">Green</Channel> <Channel Number="2">Blue</Channel> <Channel Number="3">Amber</Channel> <Channel Number="4">Master dimmer</Channel> <Channel Number="5">Strobing</Channel> <Channel Number="6">Program selection mode</Channel> <Channel Number="7">Color Macros</Channel> </Mode> <Physical> <Bulb Type="LED" Lumens="0" ColourTemperature="0"/> <Dimensions Weight="4.2" Width="240" Height="164" Depth="265"/> <Lens Name="Other" DegreesMin="25" DegreesMax="25"/> <Focus Type="Fixed" PanMax="0" TiltMax="0"/> <Technical PowerConsumption="58" DmxConnector="3-pin and 5-pin"/> </Physical> </FixtureDefinition>
{ "pile_set_name": "Github" }
import { StudentEntity } from "../model/student"; import { studentsMockData } from "./mock-data"; import { } from "core-js"; class StudentApi { studentsData: StudentEntity[]; constructor() { // Let"s the mockdata whenever the singleton is instatiated // and the play with the inmemory array this.studentsData = studentsMockData; } loadStudentList(): Promise<StudentEntity[]> { return Promise.resolve(this.studentsData); } getStudentById(id: number): Promise<StudentEntity> { const student = this.studentsData.find(st => st.id === id); return Promise.resolve(student); } saveStudent(student: StudentEntity): Promise<boolean> { const index = this.studentsData.findIndex(st => st.id === student.id); // Just to ensure we get a new object (no mutability) this.studentsData = this.studentsData .slice(0, index) .concat([student]) .concat(this.studentsData.slice(index + 1)); return Promise.resolve(true); } } export const studentApi = new StudentApi();
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (C) 2018 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="enabled_by_admin" msgid="6630472777476410137">"แž”แžพแž€แžŠแŸ„แž™โ€‹แžขแŸ’แž“แž€แž‚แŸ’แžšแž”แŸ‹แž‚แŸ’แžšแž„"</string> <string name="disabled_by_admin" msgid="4023569940620832713">"แž”แžทแž‘แžŠแŸ„แž™แžขแŸ’แž“แž€แž‚แŸ’แžšแž”แŸ‹แž‚แŸ’แžšแž„"</string> </resources>
{ "pile_set_name": "Github" }