content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
## 1. String Manipulation ## hello = "hello world"[0:5] foo = "some string" password = "password" print(foo[5:11]) # Your code goes here fifth = password[4] last_four = password[len(password)-4:] ## 2. Omitting starting or ending indices ## hello = "hello world"[:5] foo = "some string" print(foo[5:]) my_string = "string slicing is fun!" # Your code goes here first_nine = my_string[:9] remainder = my_string[9:] ## 3. Slicing with a step ## hlo = "hello world"[:5:2] my_string = "string slicing is fun!" # Your code goes here gibberish = my_string[0:len(my_string):2] worse_gibberish = my_string[7::3] ## 4. Negative Indexing ## olleh = "hello world"[4::-1] able_string = "able was I ere I saw elba" # Your code goes here phrase_palindrome = is_palindrome(able_string) ## 6. Checking for Substrings ## theres_no = "I" in "team" # Your code goes here countup_passwords = easy_patterns('1234') ## 7. First-Class Functions ## ints = list(map(int, [1.5, 2.4, 199.7, 56.0])) print(ints) # Your code goes here floats = list(map(float,not_floats)) ## 8. Average Password Length ## # Your code goes here password_lengths = list(map(len, passwords)) avg_password_length = sum(password_lengths) / len(passwords) ## 9. More Uses For First-Class Functions ## # Your code goes here palindrome_passwords = list(filter(is_palindrome, passwords)) ## 10. Lambda Functions ## numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] evens = list(filter(lambda x : x % 2 == 0, numbers)) print(evens) # Your code goes here palindrome_passwords = list(filter(lambda my_string : my_string[::-1] == my_string, passwords)) ## 11. Password Strengths ## numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] evens = list(filter(lambda x : x % 2 == 0, numbers)) print(evens) # Your code goes here weak_passwords = list(filter(lambda x : len(x) < 6, passwords)) medium_passwords = list(filter(lambda x : len(x) >= 6 and len(x) <= 10, passwords)) strong_passwords = list(filter(lambda x : len(x) > 10, passwords))
[ 2235, 352, 13, 10903, 35045, 1741, 22492, 198, 198, 31373, 796, 366, 31373, 995, 17912, 15, 25, 20, 60, 198, 21943, 796, 366, 11246, 4731, 1, 198, 28712, 796, 366, 28712, 1, 198, 198, 4798, 7, 21943, 58, 20, 25, 1157, 12962, 198, ...
2.696477
738
import discord from discord.ext import commands from discord.utils import get from discord.ext.commands import has_permissions, MissingPermissions class Moderation(commands.Cog): """ Moderation commands for discord """ @commands.command(help='Kicks people from the server') @commands.has_permissions(kick_members=True) @commands.command(help='Bans members from a server') @commands.has_permissions(ban_members=True) @commands.command(help="Gives Help")
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 13, 26791, 1330, 651, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 468, 62, 525, 8481, 11, 25639, 5990, 8481, 198, 198, 4871, 35926, 341, 7, 9503, 1746, 13, ...
3.205298
151
import os import sys from git import Repo commits = list(Repo('.').iter_commits('master')) authors = {} notable = {} changelog = {} for i, c in enumerate(commits): s = c.summary tags = [] while s[0] == '[': r = s.find(']') tag = s[1:r] tags.append(tag) s = s[r + 1:] s = s.strip() for tag in tags: if tag[0].isupper(): tag = tag.lower() notable[tag] = notable.get(tag, 0) + 1 changelog[tag] = changelog.get(tag, 0) + 1 a = str(c.author).split(' <')[0] authors[a] = authors.get(a, 0) + 1 print('Authors:') print_table(authors, 'author') print('') print('Highlights:') print_table(notable, 'tag') print('') print('Full changelog:') print_table(changelog, 'tag')
[ 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 17606, 1330, 1432, 78, 198, 198, 9503, 896, 796, 1351, 7, 6207, 78, 10786, 2637, 737, 2676, 62, 9503, 896, 10786, 9866, 6, 4008, 198, 198, 41617, 796, 23884, 198, 1662, 540, 796, 23884,...
2.097561
369
# do not import pylab, because this file may need to be loaded from Python environments that don't necessarily have access to pylab # from pylab import * import os scenes = [] # # Archinteriors volumes 00-09 # scenes.append({"name": "ai_001_001", "archive_file": "AI1_001.rar", "asset_file": "01", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_002", "archive_file": "AI1_002.rar", "asset_file": "02", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_003", "archive_file": "AI1_003.rar", "asset_file": "03", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_004", "archive_file": "AI1_004.rar", "asset_file": "04", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_005", "archive_file": "AI1_005.rar", "asset_file": "05", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_006", "archive_file": "AI1_006.rar", "asset_file": "06", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_007", "archive_file": "AI1_007.rar", "asset_file": "07", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_008", "archive_file": "AI1_008.rar", "asset_file": "08", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_009", "archive_file": "AI1_009.rar", "asset_file": "09", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_001_010", "archive_file": "AI1_010.rar", "asset_file": "10", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_001", "archive_file": "AI2_001.rar", "asset_file": "001", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_002", "archive_file": "AI2_002.rar", "asset_file": "002", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_003", "archive_file": "AI2_003.rar", "asset_file": "003", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_004", "archive_file": "AI2_004.rar", "asset_file": "004", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_005", "archive_file": "AI2_005.rar", "asset_file": "005", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_006", "archive_file": "AI2_006.rar", "asset_file": "006", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_007", "archive_file": "AI2_007.rar", "asset_file": "007", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_008", "archive_file": "AI2_008.rar", "asset_file": "008", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_009", "archive_file": "AI2_009.rar", "asset_file": "009", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_002_010", "archive_file": "AI2_010.rar", "asset_file": "010", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_001", "archive_file": "AI3_01.rar", "asset_file": "01", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_002", "archive_file": "AI3_02.rar", "asset_file": "02", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_003", "archive_file": "AI3_03.rar", "asset_file": "03", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_004", "archive_file": "AI3_04.rar", "asset_file": "04", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_005", "archive_file": "AI3_05.rar", "asset_file": "05", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_006", "archive_file": "AI3_06.rar", "asset_file": "06", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_007", "archive_file": "AI3_07.rar", "asset_file": "07", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_008", "archive_file": "AI3_08.rar", "asset_file": "08", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_009", "archive_file": "AI3_09.rar", "asset_file": "09", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_003_010", "archive_file": "AI3_10.rar", "asset_file": "10", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_001", "archive_file": "AI4_001.rar", "asset_file": "001", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_002", "archive_file": "AI4_002.rar", "asset_file": "002", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_003", "archive_file": "AI4_003.rar", "asset_file": "003", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_004", "archive_file": "AI4_004.rar", "asset_file": "004", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_005", "archive_file": "AI4_005.rar", "asset_file": "005", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_006", "archive_file": "AI4_006.rar", "asset_file": "006", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_007", "archive_file": "AI4_007.rar", "asset_file": "007", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_008", "archive_file": "AI4_008.rar", "asset_file": "008", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_009", "archive_file": "AI4_009.rar", "asset_file": "009", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_004_010", "archive_file": "AI4_010.rar", "asset_file": "010", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_001", "archive_file": "AI5_001.rar", "asset_file": "SCENE 01", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # bad lighting # scenes.append({"name": "ai_005_002", "archive_file": "AI5_002.rar", "asset_file": "SCENE 02", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_003", "archive_file": "AI5_003.rar", "asset_file": "SCENE 03", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_004", "archive_file": "AI5_004.rar", "asset_file": "SCENE 04", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_005", "archive_file": "AI5_005.rar", "asset_file": "SCENE 05", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_006", "archive_file": "AI5_006.rar", "asset_file": "SCENE 06", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_007", "archive_file": "AI5_007.rar", "asset_file": "SCENE 07", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_008", "archive_file": "AI5_008.rar", "asset_file": "SCENE 08", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_009", "archive_file": "AI5_009.rar", "asset_file": "SCENE 09", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_005_010", "archive_file": "AI5_010.rar", "asset_file": "SCENE 10", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_001", "archive_file": "AI6_001.rar", "asset_file": "001", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_002", "archive_file": "AI6_002.rar", "asset_file": "002", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_003", "archive_file": "AI6_003.rar", "asset_file": "003", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_004", "archive_file": "AI6_004.rar", "asset_file": "004", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # slightly bad lighting # scenes.append({"name": "ai_006_005", "archive_file": "AI6_005.rar", "asset_file": "005", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_006", "archive_file": "AI6_006.rar", "asset_file": "006", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_007", "archive_file": "AI6_007.rar", "asset_file": "007", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_008", "archive_file": "AI6_008.rar", "asset_file": "008", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_009", "archive_file": "AI6_009.rar", "asset_file": "009", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_006_010", "archive_file": "AI6_010.rar", "asset_file": "010", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_001", "archive_file": "AI7_01.RAR", "asset_file": "01", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_002", "archive_file": "AI7_02.RAR", "asset_file": "02", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # bad lighting # scenes.append({"name": "ai_007_003", "archive_file": "AI7_03.RAR", "asset_file": "03", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_004", "archive_file": "AI7_04.RAR", "asset_file": "04", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_005", "archive_file": "AI7_05.RAR", "asset_file": "05", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_006", "archive_file": "AI7_06.RAR", "asset_file": "06", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_007", "archive_file": "AI7_07.RAR", "asset_file": "07", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_008", "archive_file": "AI7_08.RAR", "asset_file": "08", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_009", "archive_file": "AI7_09.RAR", "asset_file": "09", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_007_010", "archive_file": "AI7_10.RAR", "asset_file": "10", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_001", "archive_file": "AI8_01.rar", "asset_file": "01", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_002", "archive_file": "AI8_02.rar", "asset_file": "02", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_003", "archive_file": "AI8_03.rar", "asset_file": "03", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_004", "archive_file": "AI8_04.rar", "asset_file": "04", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_005", "archive_file": "AI8_05.rar", "asset_file": "05", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_006", "archive_file": "AI8_06.rar", "asset_file": "06", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_007", "archive_file": "AI8_07.rar", "asset_file": "07", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_008", "archive_file": "AI8_08.rar", "asset_file": "08", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_009", "archive_file": "AI8_09.rar", "asset_file": "09", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_008_010", "archive_file": "AI8_10.rar", "asset_file": "010", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_001", "archive_file": "AI9_SCENE 01.rar", "asset_file": "SCENE 01", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_002", "archive_file": "AI9_SCENE 02.rar", "asset_file": "SCENE 02", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_003", "archive_file": "AI9_SCENE 03.rar", "asset_file": "SCENE 03", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_004", "archive_file": "AI9_SCENE 04.rar", "asset_file": "SCENE 04", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_005", "archive_file": "AI9_SCENE 05.rar", "asset_file": "SCENE 05", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_006", "archive_file": "AI9_SCENE 06.rar", "asset_file": "SCENE 06", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_007", "archive_file": "AI9_SCENE 07.rar", "asset_file": "SCENE 07", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_008", "archive_file": "AI9_SCENE 08.rar", "asset_file": "SCENE 08", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_009_009", "archive_file": "AI9_SCENE 09.rar", "asset_file": "SCENE 09", "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generates error during export: vertex coordinate too big adjust object-scale # scenes.append({"name": "ai_009_010", "archive_file": "AI9_SCENE 10.rar", "asset_file": "SCENE 10", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # # Archinteriors volumes 10-19 # scenes.append({"name": "ai_010_001", "archive_file": "AI10_001.RAR", "asset_file": "001", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_010_002", "archive_file": "AI10_002.RAR", "asset_file": "002", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_010_003", "archive_file": "AI10_003.RAR", "asset_file": "003", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_010_004", "archive_file": "AI10_004.RAR", "asset_file": "004", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_010_005", "archive_file": "AI10_005.RAR", "asset_file": "005", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_010_006", "archive_file": "AI10_006.RAR", "asset_file": "006", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_010_007", "archive_file": "AI10_007.RAR", "asset_file": "007", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_010_008", "archive_file": "AI10_008.RAR", "asset_file": "008", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_010_009", "archive_file": "AI10_009.RAR", "asset_file": "009", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # bad lighting # scenes.append({"name": "ai_010_010", "archive_file": "AI10_010.RAR", "asset_file": "010", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_001", "archive_file": "AI11_01.rar", "asset_file": "01", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generates error during export: vertex coordinate too big adjust object-scale # scenes.append({"name": "ai_011_002", "archive_file": "AI11_02.rar", "asset_file": "02", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_003", "archive_file": "AI11_03.rar", "asset_file": "03", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_004", "archive_file": "AI11_04.rar", "asset_file": "04", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_005", "archive_file": "AI11_05.rar", "asset_file": "05", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_006", "archive_file": "AI11_06.rar", "asset_file": "06", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_007", "archive_file": "AI11_07.rar", "asset_file": "07", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_008", "archive_file": "AI11_08.rar", "asset_file": "08", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_009", "archive_file": "AI11_09.rar", "asset_file": "09", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_011_010", "archive_file": "AI11_10.rar", "asset_file": "10", "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_001", "archive_file": "archinteriors_vol_012_scene_001.rar", "asset_file": os.path.join("ArchInteriors_12_01", "ArchInteriors_12_01"), "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_002", "archive_file": "archinteriors_vol_012_scene_002.rar", "asset_file": os.path.join("ArchInteriors_12_02", "ArchInteriors_12_02"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_003", "archive_file": "archinteriors_vol_012_scene_003.rar", "asset_file": os.path.join("ArchInteriors_12_03", "ArchInteriors_12_03"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_004", "archive_file": "archinteriors_vol_012_scene_004.rar", "asset_file": os.path.join("ArchInteriors_12_04", "ArchInteriors_12_04"), "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_005", "archive_file": "archinteriors_vol_012_scene_005.rar", "asset_file": os.path.join("ArchInteriors_12_05", "ArchInteriors_12_05"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_006", "archive_file": "archinteriors_vol_012_scene_006.rar", "asset_file": os.path.join("ArchInteriors_12_06", "ArchInteriors_12_06"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_007", "archive_file": "archinteriors_vol_012_scene_007.rar", "asset_file": os.path.join("ArchInteriors_12_07", "ArchInteriors_12_07"), "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_008", "archive_file": "archinteriors_vol_012_scene_008.rar", "asset_file": os.path.join("ArchInteriors_12_08", "ArchInteriors_12_08"), "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_009", "archive_file": "archinteriors_vol_012_scene_009.rar", "asset_file": os.path.join("ArchInteriors_12_09", "ArchInteriors_12_09"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_012_010", "archive_file": "archinteriors_vol_012_scene_010.rar", "asset_file": os.path.join("ArchInteriors_12_10", "ArchInteriors_12_10"), "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_001", "archive_file": "archinteriors_vol13_01.rar", "asset_file": os.path.join("archinteriors_vol13_01", "001"), "normalization_policy": "v2", "scene_extent_meters": 500.0, "voxel_extent_meters": 1.0}) scenes.append({"name": "ai_013_002", "archive_file": "archinteriors_vol13_02.rar", "asset_file": os.path.join("archinteriors_vol13_02", "002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_003", "archive_file": "archinteriors_vol13_03.rar", "asset_file": os.path.join("archinteriors_vol13_03", "003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_004", "archive_file": "archinteriors_vol13_04.rar", "asset_file": os.path.join("archinteriors_vol13_04", "004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_005", "archive_file": "archinteriors_vol13_05.rar", "asset_file": os.path.join("archinteriors_vol13_05", "005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_006", "archive_file": "archinteriors_vol13_06.rar", "asset_file": os.path.join("archinteriors_vol13_06", "006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_007", "archive_file": "archinteriors_vol13_07.rar", "asset_file": os.path.join("archinteriors_vol13_07", "007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_008", "archive_file": "archinteriors_vol13_08.rar", "asset_file": os.path.join("archinteriors_vol13_08", "008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_009", "archive_file": "archinteriors_vol13_09.rar", "asset_file": os.path.join("archinteriors_vol13_09", "009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_013_010", "archive_file": "archinteriors_vol13_10.rar", "asset_file": os.path.join("archinteriors_vol13_10", "010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_001", "archive_file": "archinteriors_vol_014_scene_001.rar", "asset_file": os.path.join("ArchInteriors_14_01", "Archinteriors_14_01"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_002", "archive_file": "archinteriors_vol_014_scene_002.rar", "asset_file": os.path.join("ArchInteriors_14_02", "Archinteriors_14_02"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_003", "archive_file": "archinteriors_vol_014_scene_003.rar", "asset_file": os.path.join("ArchInteriors_14_03", "Archinteriors_14_03"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_004", "archive_file": "archinteriors_vol_014_scene_004.rar", "asset_file": os.path.join("ArchInteriors_14_04", "Archinteriors_14_04"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_005", "archive_file": "archinteriors_vol_014_scene_005.rar", "asset_file": os.path.join("ArchInteriors_14_05", "Archinteriors_14_05"), "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_006", "archive_file": "archinteriors_vol_014_scene_006.rar", "asset_file": os.path.join("ArchInteriors_14_06", "Archinteriors_14_06"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # slightly bad lighting # scenes.append({"name": "ai_014_007", "archive_file": "archinteriors_vol_014_scene_007.rar", "asset_file": os.path.join("ArchInteriors_14_07", "Archinteriors_14_07"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_008", "archive_file": "archinteriors_vol_014_scene_008.rar", "asset_file": os.path.join("ArchInteriors_14_08", "Archinteriors_14_08"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_009", "archive_file": "archinteriors_vol_014_scene_009.rar", "asset_file": os.path.join("ArchInteriors_14_09", "Archinteriors_14_09"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_014_010", "archive_file": "archinteriors_vol_014_scene_010.rar", "asset_file": os.path.join("ArchInteriors_14_10", "Archinteriors_14_10"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_001", "archive_file": "archinteriors_vol_015_scene_001.rar", "asset_file": os.path.join("001", "archinteriors15_1"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_002", "archive_file": "archinteriors_vol_015_scene_002.rar", "asset_file": os.path.join("002", "archinteriors15_2"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_003", "archive_file": "archinteriors_vol_015_scene_003.rar", "asset_file": os.path.join("003", "archinteriors15_3"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_004", "archive_file": "archinteriors_vol_015_scene_004.rar", "asset_file": os.path.join("004", "archinteriors15_4"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_005", "archive_file": "archinteriors_vol_015_scene_005.rar", "asset_file": os.path.join("005", "archinteriors15_5"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_006", "archive_file": "archinteriors_vol_015_scene_006.rar", "asset_file": os.path.join("006", "archinteriors15_6"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_007", "archive_file": "archinteriors_vol_015_scene_007.rar", "asset_file": os.path.join("007", "archinteriors15_7"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_008", "archive_file": "archinteriors_vol_015_scene_008.rar", "asset_file": os.path.join("008", "archinteriors15_8"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_009", "archive_file": "archinteriors_vol_015_scene_009.rar", "asset_file": os.path.join("009", "archinteriors15_9"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_015_010", "archive_file": "archinteriors_vol_015_scene_010.rar", "asset_file": os.path.join("010", "archinteriors15_10"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_001", "archive_file": "archinteriors_vol_016_scene_001.rar", "asset_file": os.path.join("01", "archinteriors16_1"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_002", "archive_file": "archinteriors_vol_016_scene_002.rar", "asset_file": os.path.join("02", "archinteriors16_2"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_003", "archive_file": "archinteriors_vol_016_scene_003.rar", "asset_file": os.path.join("03", "archinteriors_16_3"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_004", "archive_file": "archinteriors_vol_016_scene_004.rar", "asset_file": os.path.join("04", "archinteriors_16_4"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_005", "archive_file": "archinteriors_vol_016_scene_005.rar", "asset_file": os.path.join("05", "archinteriors_15_5"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_006", "archive_file": "archinteriors_vol_016_scene_006.rar", "asset_file": os.path.join("06", "archinteriors_16_6"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_007", "archive_file": "archinteriors_vol_016_scene_007.rar", "asset_file": os.path.join("07", "archinteriors_16_07"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_008", "archive_file": "archinteriors_vol_016_scene_008.rar", "asset_file": os.path.join("08", "archinteriors_16_08"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_009", "archive_file": "archinteriors_vol_016_scene_009.rar", "asset_file": os.path.join("09", "archinteriors_16_09"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_016_010", "archive_file": "archinteriors_vol_016_scene_010.rar", "asset_file": os.path.join("10", "archinteriors_16_10"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_001", "archive_file": "archinteriors_vol_017_scene_001.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_001", "Archinteriors_17_01"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_002", "archive_file": "archinteriors_vol_017_scene_002.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_002", "Archinteriors_17_02"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_003", "archive_file": "archinteriors_vol_017_scene_003.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_003", "Archinteriors_17_03"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_004", "archive_file": "archinteriors_vol_017_scene_004.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_004", "Archinteriors_17_04"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_005", "archive_file": "archinteriors_vol_017_scene_005.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_005", "Archinteriors_17_05"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_006", "archive_file": "archinteriors_vol_017_scene_006.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_006", "Archinteriors_17_06"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_007", "archive_file": "archinteriors_vol_017_scene_007.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_007", "archinteriors17_07"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_008", "archive_file": "archinteriors_vol_017_scene_008.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_008", "archinteriors17_08"), "normalization_policy": "v0", "scene_extent_meters": 50.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_009", "archive_file": "archinteriors_vol_017_scene_009.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_009", "archinteriors17_09"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_017_010", "archive_file": "archinteriors_vol_017_scene_010.rar", "asset_file": os.path.join("archinteriors_vol_017_scene_010", "archinteriors17_10"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_001", "archive_file": "Archinteriors_vol_18_001.rar", "asset_file": os.path.join("001", "001"), "normalization_policy": "v2", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_002", "archive_file": "Archinteriors_vol_18_002.rar", "asset_file": os.path.join("002", "002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_003", "archive_file": "Archinteriors_vol_18_003.rar", "asset_file": "Archinteriors_vol_18_003", "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_004", "archive_file": "Archinteriors_vol_18_004.rar", "asset_file": os.path.join("004", "004"), "normalization_policy": "v1", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_005", "archive_file": "Archinteriors_vol_18_005.rar", "asset_file": os.path.join("005", "005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_006", "archive_file": "Archinteriors_vol_18_006.rar", "asset_file": os.path.join("006", "006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_007", "archive_file": "Archinteriors_vol_18_007.rar", "asset_file": os.path.join("007", "007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_008", "archive_file": "Archinteriors_vol_18_008.rar", "asset_file": os.path.join("008", "008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_009", "archive_file": "Archinteriors_vol_18_009.rar", "asset_file": os.path.join("009", "009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_018_010", "archive_file": "Archinteriors_vol_18_010.rar", "asset_file": os.path.join("010", "010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_019_001", "archive_file": "Archinteriors_19_001.rar", "asset_file": os.path.join("001", "AI19_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_019_002", "archive_file": "Archinteriors_19_002.rar", "asset_file": os.path.join("002", "AI19_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_019_003", "archive_file": "Archinteriors_19_003.rar", "asset_file": os.path.join("003", "AI19_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_019_004", "archive_file": "Archinteriors_19_004.rar", "asset_file": os.path.join("004", "AI19_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generate_merged_gi_files.py is very slow # scenes.append({"name": "ai_019_005", "archive_file": "Archinteriors_19_005.rar", "asset_file": os.path.join("005", "AI19_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_019_006", "archive_file": "Archinteriors_19_006.rar", "asset_file": os.path.join("006", "AI19_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_019_007", "archive_file": "Archinteriors_19_007.rar", "asset_file": os.path.join("007", "AI19_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_019_008", "archive_file": "Archinteriors_19_008.rar", "asset_file": os.path.join("008", "AI19_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_019_009", "archive_file": "Archinteriors_19_009.rar", "asset_file": os.path.join("009", "AI19_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generate_merged_gi_files.py is very slow # scenes.append({"name": "ai_019_010", "archive_file": "Archinteriors_19_010.rar", "asset_file": os.path.join("010", "AI19_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # # Archinteriors volumes 20-29 # # Archinteriors volume 20 is not distributed under the "Royalty Free Licence - All Extended Uses" license, so we exclude it scenes.append({"name": "ai_021_001", "archive_file": "Archinteriors_21_01.rar", "asset_file": os.path.join("01", "01"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_021_002", "archive_file": "Archinteriors_21_02.rar", "asset_file": os.path.join("02", "02"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_021_003", "archive_file": "Archinteriors_21_03.rar", "asset_file": os.path.join("03", "03"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # bad lighting # scenes.append({"name": "ai_021_004", "archive_file": "Archinteriors_21_04.rar", "asset_file": os.path.join("04", "04"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generate_merged_gi_files.py is very slow # scenes.append({"name": "ai_021_005", "archive_file": "Archinteriors_21_05.rar", "asset_file": os.path.join("05", "05"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # bad lighting # scenes.append({"name": "ai_021_006", "archive_file": "Archinteriors_21_06.rar", "asset_file": os.path.join("06", "06"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_021_007", "archive_file": "Archinteriors_21_07.rar", "asset_file": os.path.join("07", "07"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_021_008", "archive_file": "Archinteriors_21_08.rar", "asset_file": os.path.join("08", "08"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_021_009", "archive_file": "Archinteriors_21_09.rar", "asset_file": os.path.join("09", "09"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_021_010", "archive_file": "Archinteriors_21_10.rar", "asset_file": os.path.join("10", "10"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_001", "archive_file": "Archinteriors_22_01.rar", "asset_file": os.path.join("01", "01"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_002", "archive_file": "Archinteriors_22_02.rar", "asset_file": os.path.join("02", "02"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_003", "archive_file": "Archinteriors_22_03.rar", "asset_file": os.path.join("03", "03"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_004", "archive_file": "Archinteriors_22_04.rar", "asset_file": os.path.join("04", "04"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_005", "archive_file": "Archinteriors_22_05.rar", "asset_file": os.path.join("05", "05"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_006", "archive_file": "Archinteriors_22_06.rar", "asset_file": os.path.join("06", "06"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_007", "archive_file": "Archinteriors_22_07.rar", "asset_file": os.path.join("07", "07"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_008", "archive_file": "Archinteriors_22_08.rar", "asset_file": os.path.join("08", "08"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_009", "archive_file": "Archinteriors_22_09.rar", "asset_file": os.path.join("09", "09"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_022_010", "archive_file": "Archinteriors_22_10.rar", "asset_file": os.path.join("10", "10"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_001", "archive_file": "Archinteriors_23_01.part1.rar", "asset_file": os.path.join("01", "01"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_002", "archive_file": "Archinteriors_23_02.part1.rar", "asset_file": os.path.join("02", "02"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_003", "archive_file": "Archinteriors_23_03.part1.rar", "asset_file": os.path.join("03", "03"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_004", "archive_file": "Archinteriors_23_04.part1.rar", "asset_file": os.path.join("04", "04"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_005", "archive_file": "Archinteriors_23_05.part1.rar", "asset_file": os.path.join("05", "05"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_006", "archive_file": "Archinteriors_23_06.part1.rar", "asset_file": os.path.join("06", "06"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_007", "archive_file": "Archinteriors_23_07.rar", "asset_file": os.path.join("07", "07"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_008", "archive_file": "Archinteriors_23_08.part1.rar", "asset_file": os.path.join("08", "08"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_009", "archive_file": "Archinteriors_23_09.part1.rar", "asset_file": os.path.join("09", "09"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_023_010", "archive_file": "Archinteriors_23_10.part1.rar", "asset_file": os.path.join("10", "10"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_001", "archive_file": "Archinteriors24_001.rar", "asset_file": os.path.join("001", "Archinteriors_24_hall_001"), "normalization_policy": "v0", "scene_extent_meters": 50.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_002", "archive_file": "Archinteriors24_002.rar", "asset_file": os.path.join("002", "Archinteriors_24_hall_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_003", "archive_file": "Archinteriors24_003.rar", "asset_file": os.path.join("003", "Archinteriors_24_hall_003"), "normalization_policy": "v0", "scene_extent_meters": 80.0, "voxel_extent_meters": 0.2}) scenes.append({"name": "ai_024_004", "archive_file": "Archinteriors24_004.rar", "asset_file": os.path.join("004", "Archinteriors_24_hall_004"), "normalization_policy": "v0", "scene_extent_meters": 50.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_005", "archive_file": "Archinteriors24_005.rar", "asset_file": os.path.join("005", "Archinteriors_24_hall_005"), "normalization_policy": "v0", "scene_extent_meters": 80.0, "voxel_extent_meters": 0.2}) scenes.append({"name": "ai_024_006", "archive_file": "Archinteriors24_006.rar", "asset_file": os.path.join("006", "Archinteriors_024_hall_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_007", "archive_file": "Archinteriors24_007.rar", "asset_file": os.path.join("007", "Archinteriors_024_hall_007"), "normalization_policy": "v0", "scene_extent_meters": 50.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_008", "archive_file": "Archinteriors24_008.rar", "asset_file": os.path.join("008", "Archinteriors_024_hall_08"), "normalization_policy": "v0", "scene_extent_meters": 50.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_009", "archive_file": "Archinteriors24_009.rar", "asset_file": os.path.join("009", "Archinteriors_024_hall_009"), "normalization_policy": "v0", "scene_extent_meters": 150.0, "voxel_extent_meters": 0.5}) scenes.append({"name": "ai_024_010", "archive_file": "Archinteriors24_010.rar", "asset_file": os.path.join("010", "Archinteriors_24_hall_010_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_011", "archive_file": "Archinteriors24_011.rar", "asset_file": os.path.join("011", "Archinteriors_24_hall_011_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_012", "archive_file": "Archinteriors24_012.rar", "asset_file": os.path.join("012", "Archinteriors_24_hall_012_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_013", "archive_file": "Archinteriors24_013.rar", "asset_file": os.path.join("013", "Archinteriors_24_hall_013_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_014", "archive_file": "Archinteriors24_014.rar", "asset_file": os.path.join("014", "Archinteriors_24_hall_014_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_015", "archive_file": "Archinteriors24_015.rar", "asset_file": os.path.join("015", "Archinteriors_24_hall_015_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_016", "archive_file": "Archinteriors24_016.rar", "asset_file": os.path.join("016", "Archinteriors_24_hall_016_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_017", "archive_file": "Archinteriors24_017.rar", "asset_file": os.path.join("017", "Archinteriors_24_hall_017_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_018", "archive_file": "Archinteriors24_018.rar", "asset_file": os.path.join("018", "Archinteriors_24_hall_018_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_024_019", "archive_file": "Archinteriors24_019.rar", "asset_file": os.path.join("019", "Archinteriors_24_hall_019_hall"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # slightly bad lighting # scenes.append({"name": "ai_024_020", "archive_file": "Archinteriors24_020.rar", "asset_file": os.path.join("020", "Archinteriors_24_hall_020_hall"), "normalization_policy": "v0", "scene_extent_meters": 50.0, "voxel_extent_meters": 0.1}) # Archinteriors volume 25 is not distributed under the "Royalty Free Licence - All Extended Uses" license, so we exclude it scenes.append({"name": "ai_026_001", "archive_file": "Archinteriors_26_1.rar", "asset_file": os.path.join("Archinteriors_26_1", "Archinteriors_26_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_002", "archive_file": "Archinteriors_26_2.rar", "asset_file": os.path.join("Archinteriors_26_2", "Archinteriors_26_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_003", "archive_file": "Archinteriors_26_3.rar", "asset_file": os.path.join("Archinteriors_26_3", "Archinteriors_26_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_004", "archive_file": "Archinteriors_26_4.rar", "asset_file": os.path.join("Archinteriors_26_4", "Archinteriors_26_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_005", "archive_file": "Archinteriors_26_5.rar", "asset_file": os.path.join("Archinteriors_26_5", "Archinteriors_26_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_006", "archive_file": "Archinteriors_26_6.rar", "asset_file": os.path.join("Archinteriors_26_6", "Archinteriors_26_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_007", "archive_file": "Archinteriors_26_7.rar", "asset_file": os.path.join("Archinteriors_26_7", "Archinteriors_26_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_008", "archive_file": "Archinteriors_26_8.rar", "asset_file": os.path.join("Archinteriors_26_8", "Archinteriors_26_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_009", "archive_file": "Archinteriors_26_9.rar", "asset_file": os.path.join("Archinteriors_26_9", "Archinteriors_26_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generate_merged_gi_files.py is very slow # scenes.append({"name": "ai_026_010", "archive_file": "Archinteriors_26_10.rar", "asset_file": os.path.join("Archinteriors_26_10", "Archinteriors_26_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_011", "archive_file": "Archinteriors_26_11.rar", "asset_file": os.path.join("Archinteriors_26_11", "Archinteriors_26_011"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_012", "archive_file": "Archinteriors_26_12.rar", "asset_file": os.path.join("Archinteriors_26_12", "Archinteriors_26_012"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_013", "archive_file": "Archinteriors_26_13.rar", "asset_file": os.path.join("Archinteriors_26_13", "Archinteriors_26_013"), "normalization_policy": "v0", "scene_extent_meters": 80.0, "voxel_extent_meters": 0.2}) scenes.append({"name": "ai_026_014", "archive_file": "Archinteriors_26_14.rar", "asset_file": os.path.join("Archinteriors_26_14", "Archinteriors_026_014"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_015", "archive_file": "Archinteriors_26_15.rar", "asset_file": os.path.join("Archinteriors_26_15", "Archinteriors_26_015"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_016", "archive_file": "Archinteriors_26_16.rar", "asset_file": os.path.join("Archinteriors_26_16", "Archinteriors_26_16"), "normalization_policy": "v0", "scene_extent_meters": 80.0, "voxel_extent_meters": 0.2}) scenes.append({"name": "ai_026_017", "archive_file": "Archinteriors_26_17.rar", "asset_file": os.path.join("Archinteriors_26_17", "Archinteriors_26_017"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_018", "archive_file": "Archinteriors_26_18.rar", "asset_file": os.path.join("Archinteriors_26_18", "Archinteriors_26_018"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_019", "archive_file": "Archinteriors_26_19.rar", "asset_file": os.path.join("Archinteriors_26_19", "Archinteriors_26_19"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_026_020", "archive_file": "Archinteriors_26_20.rar", "asset_file": os.path.join("Archinteriors_26_20", "Archinteriors_26_020"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_001", "archive_file": "Archinteriors_27_001.rar", "asset_file": os.path.join("Archinteriors_27_001", "AI_27_001_cam001_cam002_cam003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_027_002", "archive_file": "Archinteriors_27_002.rar", "asset_file": os.path.join("Archinteriors_27_002", "AI_027_002_cam001_cam002_cam003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_003", "archive_file": "Archinteriors_27_003.rar", "asset_file": os.path.join("Archinteriors_27_003", "AI_27_003_cam001_cam002_cam003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_004", "archive_file": "Archinteriors_27_004.rar", "asset_file": os.path.join("Archinteriors_27_004", "AI_27_004_cam001_cam002_cam003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_005", "archive_file": "Archinteriors_27_005.rar", "asset_file": os.path.join("Archinteriors_27_005", "AI_27_005_cam001_cam002_cam003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_006", "archive_file": "Archinteriors_27_006.rar", "asset_file": os.path.join("Archinteriors_27_006", "AI_27_006_cam001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_007", "archive_file": "Archinteriors_27_007.rar", "asset_file": os.path.join("Archinteriors_27_007", "AI_27_07_cam001_cam002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_008", "archive_file": "Archinteriors_27_008.rar", "asset_file": os.path.join("Archinteriors_27_008", "AI_027_008_cam001_cam002_cam004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_009", "archive_file": "Archinteriors_27_009.rar", "asset_file": os.path.join("Archinteriors_27_009", "AI_27_009_cam001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_027_010", "archive_file": "Archinteriors_27_010.rar", "asset_file": os.path.join("Archinteriors_27_010", "AI_27_10_cam001_cam002_cam003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_001", "archive_file": "Archinteriors_28_001.rar", "asset_file": os.path.join("01", "AI28_01"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_002", "archive_file": "Archinteriors_28_002.rar", "asset_file": os.path.join("02", "AI28_02"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_003", "archive_file": "Archinteriors_28_003.rar", "asset_file": os.path.join("03", "AI28_03"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_004", "archive_file": "Archinteriors_28_004.rar", "asset_file": os.path.join("04", "AI28_04"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_005", "archive_file": "Archinteriors_28_005.rar", "asset_file": os.path.join("05", "AI28_05"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_006", "archive_file": "Archinteriors_28_006.rar", "asset_file": os.path.join("06", "AI28_06"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # slightly bad lighting # scenes.append({"name": "ai_028_007", "archive_file": "Archinteriors_28_007.rar", "asset_file": os.path.join("07", "AI28_07"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_008", "archive_file": "Archinteriors_28_008.rar", "asset_file": os.path.join("08", "AI28_08"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_009", "archive_file": "Archinteriors_28_009.rar", "asset_file": os.path.join("09", "AI28_09"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_028_010", "archive_file": "Archinteriors_28_010.rar", "asset_file": os.path.join("10", "AI28_10"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_029_001", "archive_file": "AI29_Scene_01.rar", "asset_file": os.path.join("Scene_01", "AI29_01_camera_1,2_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_029_002", "archive_file": "AI29_Scene_02.rar", "asset_file": os.path.join("Scene_02", "AI29_02_camera_1,2,3_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_029_003", "archive_file": "AI29_Scene_03.rar", "asset_file": os.path.join("Scene_03", "AI29_03_camera_1,2,3_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_029_004", "archive_file": "AI29_Scene_04.rar", "asset_file": os.path.join("Scene_04", "AI29_04 v2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_029_005", "archive_file": "AI29_Scene_05.rar", "asset_file": os.path.join("Scene_05", "AI29_05 v2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # # Archinteriors volumes 30-39 # scenes.append({"name": "ai_030_001", "archive_file": "AM30_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI30_001_camera_1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_030_002", "archive_file": "AM30_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI30_002_camera_1_2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_030_003", "archive_file": "AM30_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI30_003_camera_1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_030_004", "archive_file": "AM30_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI30_004_camera_1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_030_005", "archive_file": "AM30_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI30_005_camera_1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # bad lighting # scenes.append({"name": "ai_030_006", "archive_file": "AM30_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI30_006_camera_1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_030_007", "archive_file": "AM30_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI30_007_camera_1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_030_008", "archive_file": "AM30_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI30_008_camera1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_030_009", "archive_file": "AM30_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI30_009_camera_1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_030_010", "archive_file": "AM30_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI30_010_camera_1_ver2010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_001", "archive_file": "Archinteriors_31_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI31_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generate_merged_gi_files.py is very slow # scenes.append({"name": "ai_031_002", "archive_file": "Archinteriors_31_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI31_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_003", "archive_file": "Archinteriors_31_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_004", "archive_file": "Archinteriors_31_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI31_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_005", "archive_file": "Archinteriors_31_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI31_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_006", "archive_file": "Archinteriors_31_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI31_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_007", "archive_file": "Archinteriors_31_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI31_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_008", "archive_file": "Archinteriors_31_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI31_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_009", "archive_file": "Archinteriors_31_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI31_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_031_010", "archive_file": "Archinteriors_31_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI31_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_032_001", "archive_file": "Archinteriors_32_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI32_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_032_002", "archive_file": "Archinteriors_32_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI32_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_032_003", "archive_file": "Archinteriors_32_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI32_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_032_004", "archive_file": "Archinteriors_32_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI32_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_032_005", "archive_file": "Archinteriors_32_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI32_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # bad lighting # scenes.append({"name": "ai_032_006", "archive_file": "Archinteriors_32_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI32_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_032_007", "archive_file": "Archinteriors_32_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI32_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_032_008", "archive_file": "Archinteriors_32_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AM32_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_032_009", "archive_file": "Archinteriors_32_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI32_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # runs out of memory when parsing obj # scenes.append({"name": "ai_032_010", "archive_file": "Archinteriors_32_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI32_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_033_001", "archive_file": "AI33_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI33_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_033_002", "archive_file": "AI33_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI33_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_033_003", "archive_file": "AI33_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI33_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_033_004", "archive_file": "AI33_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI33_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_033_005", "archive_file": "AI33_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI33_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generate_merged_gi_files.py is very slow # scenes.append({"name": "ai_033_006", "archive_file": "AI33_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI33_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_033_007", "archive_file": "AI33_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI33_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_033_008", "archive_file": "AI33_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI33_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_033_009", "archive_file": "AI33_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI33_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_033_010", "archive_file": "AI33_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI33_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_034_001", "archive_file": "AI34_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI34_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_034_002", "archive_file": "AI34_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI34_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_034_003", "archive_file": "AI34_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI34_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # generate_merged_gi_files.py is very slow # scenes.append({"name": "ai_034_004", "archive_file": "AI34_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI34_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_034_005", "archive_file": "AI34_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI34_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_001", "archive_file": "AI35_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI35_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_002", "archive_file": "AI35_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI35_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_003", "archive_file": "AI35_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI35_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_004", "archive_file": "AI35_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI35_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_005", "archive_file": "AI35_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI35_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_006", "archive_file": "AI35_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI35_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_007", "archive_file": "AI35_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI35_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_008", "archive_file": "AI35_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI35_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_009", "archive_file": "AI35_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI35_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_035_010", "archive_file": "AI35_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI35_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_001", "archive_file": "AI36_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI36_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_002", "archive_file": "AI36_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI36_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_003", "archive_file": "AI36_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI36_003_2011"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_036_004", "archive_file": "AI36_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI36_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_005", "archive_file": "AI36_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI36_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_006", "archive_file": "AI36_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI36_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_007", "archive_file": "AI36_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI36_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_008", "archive_file": "AI36_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI36_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_009", "archive_file": "AI36_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI36_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_036_010", "archive_file": "AI36_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI36_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_001", "archive_file": "AI37_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI37_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_002", "archive_file": "AI37_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI37_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_003", "archive_file": "AI37_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI37_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_004", "archive_file": "AI37_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI37_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_005", "archive_file": "AI37_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI37_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_006", "archive_file": "AI37_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI37_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_007", "archive_file": "AI37_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI37_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_008", "archive_file": "AI37_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI37_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_009", "archive_file": "AI37_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI37_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_037_010", "archive_file": "AI37_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI37_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_038_001", "archive_file": "AI38_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI38_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_038_002", "archive_file": "AI38_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI38_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_038_003", "archive_file": "AI38_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI38_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_038_004", "archive_file": "AI38_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI38_004"), "normalization_policy": "v0", "scene_extent_meters": 300.0, "voxel_extent_meters": 1.0}) scenes.append({"name": "ai_038_005", "archive_file": "AI38_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI38_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_038_006", "archive_file": "AI38_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI38_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_038_007", "archive_file": "AI38_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI38_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_038_008", "archive_file": "AI38_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI38_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_038_009", "archive_file": "AI38_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI38_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_038_010", "archive_file": "AI38_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI_38_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_001", "archive_file": "AI39_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI39_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_002", "archive_file": "AI39_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI39_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_003", "archive_file": "AI39_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI39_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_004", "archive_file": "AI39_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI39_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_005", "archive_file": "AI39_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI39_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_006", "archive_file": "AI39_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI39_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_007", "archive_file": "AI39_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI39_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_008", "archive_file": "AI39_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI39_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_009", "archive_file": "AI39_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI39_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_039_010", "archive_file": "AI39_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI39_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # # Archinteriors volumes 40-49 # # Archinteriors volume 40 is not distributed under the "Royalty Free Licence - All Extended Uses" license, so we exclude it scenes.append({"name": "ai_041_001", "archive_file": "AI41_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI41_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_002", "archive_file": "AI41_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI41_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_003", "archive_file": "AI41_Scene_003.part1.rar", "asset_file": os.path.join("Scene_003", "AI41_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_004", "archive_file": "AI41_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI41_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_005", "archive_file": "AI41_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI41_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_006", "archive_file": "AI41_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI41_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_007", "archive_file": "AI41_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI41_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_008", "archive_file": "AI41_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI41_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_009", "archive_file": "AI41_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI41_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_041_010", "archive_file": "AI41_Scene_010.part1.rar", "asset_file": os.path.join("Scene_010", "AI41_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_042_001", "archive_file": "AI42_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI42_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_042_002", "archive_file": "AI42_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI42_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_042_003", "archive_file": "AI42_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI42_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_042_004", "archive_file": "AI42_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI42_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_042_005", "archive_file": "AI42_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI42_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_043_001", "archive_file": "AI43_001.rar", "asset_file": os.path.join("001", "AI43_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_002", "archive_file": "AI43_002.rar", "asset_file": os.path.join("002", "AI43_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_003", "archive_file": "AI43_003.rar", "asset_file": os.path.join("003", "AE43_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_004", "archive_file": "AI43_004.rar", "asset_file": os.path.join("004", "AI43_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_005", "archive_file": "AI43_005.rar", "asset_file": os.path.join("005", "AI43_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_006", "archive_file": "AI43_006.rar", "asset_file": os.path.join("006", "AI43_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_007", "archive_file": "AI43_007.rar", "asset_file": os.path.join("007", "AI43_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_008", "archive_file": "AI43_008.rar", "asset_file": os.path.join("008", "AI43_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_009", "archive_file": "AI43_009.rar", "asset_file": os.path.join("009", "AI43_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_043_010", "archive_file": "AI43_010.rar", "asset_file": os.path.join("010", "AI43_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_001", "archive_file": "AI44_Scene_001.rar", "asset_file": os.path.join("Scene_001", "AI44_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_002", "archive_file": "AI44_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI44_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_003", "archive_file": "AI44_Scene_003.part1.rar", "asset_file": os.path.join("Scene_003", "AI44_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_004", "archive_file": "AI44_Scene_004.rar", "asset_file": os.path.join("Scene_004", "AI44_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_005", "archive_file": "AI44_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI44_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_006", "archive_file": "AI44_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI44_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_007", "archive_file": "AI44_Scene_007.rar", "asset_file": os.path.join("Scene_007", "AI44_007"), "normalization_policy": "v0", "scene_extent_meters": 70.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_008", "archive_file": "AI44_Scene_008.rar", "asset_file": os.path.join("Scene_008", "AI44_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_009", "archive_file": "AI44_Scene_009.rar", "asset_file": os.path.join("Scene_009", "AI44_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_044_010", "archive_file": "AI44_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI44_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_045_001", "archive_file": "AI45_Scene_001.part1.rar", "asset_file": os.path.join("Scene_001", "AI45_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_045_002", "archive_file": "AI45_Scene_002.rar", "asset_file": os.path.join("Scene_002", "AI45_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_045_003", "archive_file": "AI45_Scene_003.rar", "asset_file": os.path.join("Scene_003", "AI45_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_045_004", "archive_file": "AI45_Scene_004.part1.rar", "asset_file": os.path.join("Scene_004", "AI45_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_045_005", "archive_file": "AI45_Scene_005.rar", "asset_file": os.path.join("Scene_005", "AI45_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_045_006", "archive_file": "AI45_Scene_006.rar", "asset_file": os.path.join("Scene_006", "AI45_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_045_007", "archive_file": "AI45_Scene_007.part1.rar", "asset_file": os.path.join("Scene_007", "AI45_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_045_008", "archive_file": "AI45_Scene_008.part1.rar", "asset_file": os.path.join("Scene_008", "AI45_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_045_009", "archive_file": "AI45_Scene_009.part1.rar", "asset_file": os.path.join("Scene_009", "AI45_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_045_010", "archive_file": "AI45_Scene_010.rar", "asset_file": os.path.join("Scene_010", "AI45_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_001", "archive_file": "AI46_Scene_001.rar", "asset_file": os.path.join("001", "AI46_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_002", "archive_file": "AI46_Scene_002.rar", "asset_file": os.path.join("002", "AI46_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_003", "archive_file": "AI46_Scene_003.rar", "asset_file": os.path.join("003", "AI46_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_004", "archive_file": "AI46_Scene_004.rar", "asset_file": os.path.join("004", "AI46_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_005", "archive_file": "AI46_Scene_005.rar", "asset_file": os.path.join("005", "AI46_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_006", "archive_file": "AI46_Scene_006.rar", "asset_file": os.path.join("006", "AI46_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_007", "archive_file": "AI46_Scene_007.rar", "asset_file": os.path.join("007", "AI46_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_008", "archive_file": "AI46_Scene_008.rar", "asset_file": os.path.join("008", "AI46_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_046_009", "archive_file": "AI46_Scene_009.rar", "asset_file": os.path.join("009", "AI46_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_046_010", "archive_file": "AI46_Scene_010.rar", "asset_file": os.path.join("010", "AI46_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_001", "archive_file": "AI47_001.rar", "asset_file": os.path.join("001", "AI47_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_002", "archive_file": "AI47_002.rar", "asset_file": os.path.join("002", "AI47_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_003", "archive_file": "AI47_003.rar", "asset_file": os.path.join("003", "AI47_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_004", "archive_file": "AI47_004.rar", "asset_file": os.path.join("004", "AI47_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_005", "archive_file": "AI47_005.rar", "asset_file": os.path.join("005", "AI47_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_006", "archive_file": "AI47_006.rar", "asset_file": os.path.join("006", "AI47_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_007", "archive_file": "AI47_007.rar", "asset_file": os.path.join("007", "AI47_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_008", "archive_file": "AI47_008.rar", "asset_file": os.path.join("008", "AI47_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_047_009", "archive_file": "AI47_009.rar", "asset_file": os.path.join("009", "AI47_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # crashes during export # scenes.append({"name": "ai_047_010", "archive_file": "AI47_010.rar", "asset_file": os.path.join("010", "AI47_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_001", "archive_file": "Ai48_001.7z", "asset_file": os.path.join("001", "AI48_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_002", "archive_file": "Ai48_002.7z", "asset_file": os.path.join("002", "AI48_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_003", "archive_file": "Ai48_003.7z.001", "asset_file": os.path.join("003", "AI48_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_004", "archive_file": "Ai48_004.7z", "asset_file": os.path.join("004", "AI48_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_005", "archive_file": "Ai48_005.7z", "asset_file": os.path.join("005", "AI48_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_006", "archive_file": "Ai48_006.7z.001", "asset_file": os.path.join("006", "AI48_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_007", "archive_file": "Ai48_007.7z.001", "asset_file": os.path.join("007", "AI48_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_008", "archive_file": "Ai48_008.7z", "asset_file": os.path.join("008", "AI48_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_009", "archive_file": "Ai48_009.7z", "asset_file": os.path.join("009", "AI48_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_048_010", "archive_file": "Ai48_010.7z", "asset_file": os.path.join("010", "AI48_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) # Archinteriors volume 49 appears to consist mostly of isolated objects rather than scenes, so we exclude it # # Archinteriors volumes 50-59 # scenes.append({"name": "ai_050_001", "archive_file": "AI50_001.7z", "asset_file": os.path.join("001", "AI50_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_050_002", "archive_file": "AI50_002.7z", "asset_file": os.path.join("002", "AI50_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_050_003", "archive_file": "AI50_003.7z", "asset_file": os.path.join("003", "AI50_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_050_004", "archive_file": "AI50_004.7z", "asset_file": os.path.join("004", "AI50_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_050_005", "archive_file": "AI50_005.7z", "asset_file": os.path.join("005", "AI50_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_051_001", "archive_file": "AI51_001.7z", "asset_file": os.path.join("001", "AI51_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_051_002", "archive_file": "AI51_002.7z", "asset_file": os.path.join("002", "AI51_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_051_003", "archive_file": "AI51_003.7z.001", "asset_file": os.path.join("003", "AI51_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_051_004", "archive_file": "AI51_004.7z.001", "asset_file": os.path.join("004", "AI51_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_051_005", "archive_file": "AI51_005.7z.001", "asset_file": os.path.join("005", "AI51_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_001", "archive_file": "AI52_001.7z.001", "asset_file": os.path.join("001", "AI52_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_002", "archive_file": "AI52_002.7z.001", "asset_file": os.path.join("002", "AI52_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_003", "archive_file": "AI52_003.7z.001", "asset_file": os.path.join("003", "AI52_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_004", "archive_file": "AI52_004.7z.001", "asset_file": os.path.join("004", "AI52_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_005", "archive_file": "AI52_005.7z.001", "asset_file": os.path.join("005", "AI52_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_006", "archive_file": "AI52_006.7z.001", "asset_file": os.path.join("006", "AI52_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_007", "archive_file": "AI52_007.7z.001", "asset_file": os.path.join("007", "AI52_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_008", "archive_file": "AI52_008.7z.001", "asset_file": os.path.join("008", "AI52_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_009", "archive_file": "AI52_009.7z.001", "asset_file": os.path.join("009", "AI52_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_052_010", "archive_file": "AI52_010.7z.001", "asset_file": os.path.join("010", "AI52_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_001", "archive_file": "AI53_001.7z", "asset_file": os.path.join("AI53_001", "AI53_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_002", "archive_file": "AI53_002.7z", "asset_file": os.path.join("AI53_002", "AI53_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_003", "archive_file": "AI53_003.7z", "asset_file": os.path.join("AI53_003", "AI53_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_004", "archive_file": "AI53_004.7z", "asset_file": os.path.join("AI53_004", "AI53_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_005", "archive_file": "AI53_005.7z", "asset_file": os.path.join("AI53_005", "AI53_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_006", "archive_file": "AI53_006.7z", "asset_file": os.path.join("AI53_006", "AI53_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_007", "archive_file": "AI53_007.7z", "asset_file": os.path.join("AI53_007", "AI53_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_008", "archive_file": "AI53_008.7z", "asset_file": os.path.join("AI53_008", "AI53_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_009", "archive_file": "AI53_009.7z", "asset_file": os.path.join("AI53_009", "AI53_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_010", "archive_file": "AI53_010.7z", "asset_file": os.path.join("AI53_010", "AI53_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_011", "archive_file": "AI53_011.7z", "asset_file": os.path.join("AI53_011", "AI53_011"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_012", "archive_file": "AI53_012.7z", "asset_file": os.path.join("AI53_012", "AI53_012"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_013", "archive_file": "AI53_013.7z", "asset_file": os.path.join("AI53_013", "AI53_013"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_014", "archive_file": "AI53_014.7z", "asset_file": os.path.join("AI53_014", "AI53_014"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_015", "archive_file": "AI53_015.7z", "asset_file": os.path.join("AI53_015", "AI53_015"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_016", "archive_file": "AI53_016.7z", "asset_file": os.path.join("AI53_016", "AI53_016"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_017", "archive_file": "AI53_017.7z", "asset_file": os.path.join("AI53_017", "AI53_017"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_018", "archive_file": "AI53_018.7z", "asset_file": os.path.join("AI53_018", "AI53_018"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_019", "archive_file": "AI53_019.7z", "asset_file": os.path.join("AI53_019", "AI53_019"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_053_020", "archive_file": "AI53_020.7z", "asset_file": os.path.join("AI53_020", "AI53_020"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_001", "archive_file": "AI54_001.7z.001", "asset_file": os.path.join("001", "AI54_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_002", "archive_file": "AI54_002.7z.001", "asset_file": os.path.join("002", "AI54_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_003", "archive_file": "AI54_003.7z.001", "asset_file": os.path.join("003", "AI54_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_004", "archive_file": "AI54_004.7z.001", "asset_file": os.path.join("004", "AI54_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_005", "archive_file": "AI54_005.7z.001", "asset_file": os.path.join("005", "AI54_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_006", "archive_file": "AI54_006.7z.001", "asset_file": os.path.join("006", "AI54_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_007", "archive_file": "AI54_007.7z.001", "asset_file": os.path.join("007", "AI54_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_008", "archive_file": "AI54_008.7z.001", "asset_file": os.path.join("008", "AI54_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_009", "archive_file": "AI54_009.7z.001", "asset_file": os.path.join("009", "AI54_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_054_010", "archive_file": "AI54_010.7z.001", "asset_file": os.path.join("010", "AI54_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_001", "archive_file": "AI55_001.7z.001", "asset_file": os.path.join("001", "AI55_001"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_002", "archive_file": "AI55_002.7z.001", "asset_file": os.path.join("002", "AI55_002"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_003", "archive_file": "AI55_003.7z.001", "asset_file": os.path.join("003", "AI55_003"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_004", "archive_file": "AI55_004.7z.001", "asset_file": os.path.join("004", "AI55_004"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_005", "archive_file": "AI55_005.7z.001", "asset_file": os.path.join("005", "AI55_005"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_006", "archive_file": "AI55_006.7z.001", "asset_file": os.path.join("006", "AI55_006"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_007", "archive_file": "AI55_007.7z.001", "asset_file": os.path.join("007", "AI55_007"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_008", "archive_file": "AI55_008.7z.001", "asset_file": os.path.join("008", "AI55_008"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_009", "archive_file": "AI55_009.7z.001", "asset_file": os.path.join("009", "AI55_009"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1}) scenes.append({"name": "ai_055_010", "archive_file": "AI55_010.7z.001", "asset_file": os.path.join("010", "AI55_010"), "normalization_policy": "v0", "scene_extent_meters": 30.0, "voxel_extent_meters": 0.1})
[ 2, 466, 407, 1330, 279, 2645, 397, 11, 780, 428, 2393, 743, 761, 284, 307, 9639, 422, 11361, 12493, 326, 836, 470, 6646, 423, 1895, 284, 279, 2645, 397, 198, 2, 422, 279, 2645, 397, 1330, 1635, 198, 198, 11748, 28686, 628, 198, 19...
1.809523
80,498
import json import logging from argparse import Namespace import numpy as np from fairseq import metrics, search, utils from fairseq.data import encoders from fairseq.tasks import register_task from fairseq.tasks.translation_multi_simple_epoch import TranslationMultiSimpleEpochTask from fairseq.sequence_generator import SequenceGenerator EVAL_BLEU_ORDER = 4 logger = logging.getLogger(__name__) @register_task('translation_multi_simple_epoch_extended') class TranslationMultiSimpleEpochTaskExtended(TranslationMultiSimpleEpochTask): """ Extended version of TranslationMultiSimpleEpochTask to support Validation using BLEU. """ @staticmethod def add_args(parser): """Add task-specific arguments to the parser.""" # options for reporting BLEU during validation TranslationMultiSimpleEpochTask.add_args(parser) parser.add_argument('--eval-bleu', action='store_true', help='evaluation with BLEU scores') parser.add_argument('--eval-bleu-detok', type=str, default="space", help='detokenize before computing BLEU (e.g., "moses"); ' 'required if using --eval-bleu; use "space" to ' 'disable detokenization; see fairseq.data.encoders ' 'for other options') parser.add_argument('--eval-bleu-detok-args', type=str, metavar='JSON', help='args for building the tokenizer, if needed') parser.add_argument('--eval-tokenized-bleu', action='store_true', default=False, help='compute tokenized BLEU instead of sacrebleu') parser.add_argument('--eval-bleu-remove-bpe', nargs='?', const='@@ ', default=None, help='remove BPE before computing BLEU') parser.add_argument('--eval-bleu-args', type=str, metavar='JSON', help='generation args for BLUE scoring, ' 'e.g., \'{"beam": 4, "lenpen": 0.6}\'') parser.add_argument('--eval-bleu-print-samples', action='store_true', help='print sample generations during validation') parser.add_argument('--bleu-type', type=str, default='text', choices=['text', 'code'], help='compute bleu for text or code')
[ 11748, 33918, 198, 11748, 18931, 198, 6738, 1822, 29572, 1330, 28531, 10223, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3148, 41068, 1330, 20731, 11, 2989, 11, 3384, 4487, 198, 6738, 3148, 41068, 13, 7890, 1330, 2207, 375, 364, ...
2.277674
1,066
import numpy as np import matplotlib.pyplot as plt # TODO def mesh2d_(f,*args): """ Plot function taking len 2 vector as single argument f(xs) """ mesh2d(g,*args) def mesh2d(f,*args): """ Plot function taking two arguments f(x,y) """ fig = plt.figure() ax = fig.add_subplot(111, projection='3d') x = y = np.arange(-0.5, 0.5, 0.005) X, Y = np.meshgrid(x, y) zs = np.array([ f(x_,y_,*args) for x_,y_ in zip( np.ravel(X), np.ravel(Y)) ]) Z = zs.reshape(X.shape) ax.plot_surface(X, Y, Z) ax.set_xlabel('X Label') ax.set_ylabel('Y Label') ax.set_zlabel('Z Label') plt.show()
[ 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 16926, 46, 198, 198, 4299, 19609, 17, 67, 41052, 69, 11, 9, 22046, 2599, 198, 220, 220, 220, 37227, 28114, 2163, 2263, 18...
2.043344
323
from pyhdl.core import * from pyhdl.parts.logic import * @module("NOT4", [ "B4" ], [ "B4" ]) @module("AND4", [ "B4", "B4" ], [ "B4" ]) @module("AND4S", [ "B4", "N" ], [ "B4" ]) @module("OR4", [ "B4", "B4" ], [ "B4" ]) @module("XOR4", [ "B4", "B4" ], [ "B4" ]) @module("XOR4S", [ "B4", "N" ], [ "B4" ]) @module("MUX4", [ "N", "B4", "B4" ], [ "B4" ]) @module("DMUX4", [ "N", "B4" ], [ "B4", "B4" ]) @module("ADC4", [ "B4", "B4", "N" ], [ "B4", "N" ]) @module("INC4", [ "B4", "N" ], [ "B4", "N" ]) @module("SUB4", [ "B4", "B4", "N" ], [ "B4", "N" ]) @module("DEC4", [ "B4", "N" ], [ "B4", "N" ]) @module("IDC4", [ "B4", "N", "N" ], [ "B4", "N" ]) @module("SHL4", [ "B4", "N" ], [ "B4", "N" ]) @module("SHR4", [ "N", "N" ], [ "N", "N" ]) @module("EQZ4", [ "B4" ], [ "N" ]) @module("LTZ4", [ "B4" ], [ "N" ]) @module("LATCH4", [ "N", "B4" ], [ "B4" ]) @module("REG4", [ "N", "N", "B4" ], [ "B4" ]) @module("UCOUNT4", [ "N", "N", "B4", "N" ], [ "B4", "N" ]) @module("DCOUNT4", [ "N", "N", "B4", "N" ], [ "B4", "N" ]) @module("UDCOUNT4", [ "N", "N", "N", "B4", "N" ], [ "B4", "N" ]) @module("SEL4", [ "N", "N", "N", "N" ], [ "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N" ])
[ 198, 198, 6738, 12972, 71, 25404, 13, 7295, 220, 220, 220, 220, 220, 220, 220, 1330, 1635, 198, 6738, 12972, 71, 25404, 13, 42632, 13, 6404, 291, 1330, 1635, 628, 198, 198, 31, 21412, 7203, 11929, 19, 1600, 685, 366, 33, 19, 1, 16...
1.791317
714
import argparse import geopandas as gpd import pandas as pd from shapely.geometry import MultiPolygon import sys import textwrap sys.path.append('scripts/') from config import METRICS, CANVAS, PROCESS_METRICS from grid import Grid, CellCalculator from metrics import Metric, CMetric, ClusterNumberMetric, MinimumClusterDistanceMetric, \ MetricFactory, ProcessMetricFactory from polygon import Reader, Collection, Footprint, Iteration, Uniter, Shifter from visualizer import Visualizer from writer import JsonWriter, CsvWriter class CollectionPipeline(Pipeline): """ Pipeline that produces a collection from a given shapefile name. Returns a new collection shifted to (0, 0) as bottom left """ # Runs well # def _run(self): # df = self.reader.read(self.filename) # _collection = Collection(Footprint) # collection = Collection(Footprint) # for geometry in df: # _collection.add(Footprint(geometry)) # del df # for element in _collection: # collection = Uniter().make(collection, element) # del _collection # return Shifter().make(collection) class MetricsPipeline(Pipeline): """ Pipeline that calculates metrics for a particular collection. Returns dictionary of metrics calculated for a given collection. """ class ProcessMetricsPipeline(Pipeline): """ Pipeline that calculates metrics for a particular collection. Returns dictionary of metrics calculated for a given collection. """ class IterPipeline(Pipeline): """ Pipeline that makes one iteration of growth on a given value. Returns a new Collection. """ class GridPipeline(Pipeline): """ Pipeline that makes one iteration of growth on a given value. Returns a new Collection. """ class TestPipeline(Pipeline): """ Pipeline to test different ideas. """ if __name__ == '__main__': parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, description=textwrap.dedent('''\ USAGE: python pipeline.py area.shp ------------------------------------------------------------------------ This is an algorithm that runs the metrics calculation for a chosen area. ------------------------------------------------------------------------ '''), epilog=textwrap.dedent('''\ The algorithm will be updated with the changes made in the strategy. ''')) parser.add_argument('filename', type=str, help='path to the shapefile to inspect', default=None) ############################################################################ args = parser.parse_args() FILE = args.filename collection = CollectionPipeline(FILE).run() m_pipe = MetricsPipeline(FILE) result = m_pipe.run(collection, initial_collection=collection) writer = CsvWriter(filename=FILE.split('.')[0]) writer.add("{}".format(0), result) # v = Visualizer(collection, name='{}_iter'.format(n)).visualize() for i in range(1, 14): _collection = IterPipeline(FILE, i).run(collection) result = m_pipe.run(_collection, initial_collection=collection) writer.add(i, result) # v = Visualizer(_collection, name='{}_iter'.format(i)).visualize() # del v del _collection del result process_pipe = ProcessMetricsPipeline(FILE).run(writer.content) writer.add('whole', process_pipe) writer.save()
[ 11748, 1822, 29572, 198, 11748, 30324, 392, 292, 355, 27809, 67, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 5485, 306, 13, 469, 15748, 1330, 15237, 34220, 14520, 198, 11748, 25064, 198, 11748, 2420, 37150, 198, 198, 17597, 13, 697...
3.2364
1,011
import matplotlib.pyplot as plt
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83 ]
3.1
10
from __future__ import absolute_import, unicode_literals # Taken from the following StackOverflow answer: # http://stackoverflow.com/a/3703727/199176 SELECT_TYPES_SQL = """ SELECT n.nspname as schema, t.typname as type FROM pg_type t LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.typnamespace WHERE (t.typrelid = 0 OR ( SELECT c.relkind = 'c' FROM pg_catalog.pg_class c WHERE c.oid = t.typrelid) ) AND NOT EXISTS( SELECT 1 FROM pg_catalog.pg_type el WHERE el.oid = t.typelem AND el.typarray = t.oid ) AND n.nspname NOT IN ('pg_catalog', 'information_schema') """ def get_type_names(connection): """Return a list of custom types currently defined and visible to the application in PostgreSQL. """ cursor = connection.cursor() cursor.execute(SELECT_TYPES_SQL) rows = cursor.fetchall() return set([i[1] for i in rows]) def type_exists(connection, type_name): """Return True if the given PostgreSQL type exists, False otherwise.""" type_name = type_name.lower() return type_name in get_type_names(connection)
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 628, 198, 2, 30222, 422, 262, 1708, 23881, 5886, 11125, 3280, 25, 198, 2, 220, 220, 2638, 1378, 25558, 2502, 11125, 13, 785, 14, 64, 14, 20167, 2718, 1...
2.346304
514
import cvxpy as cp import numpy as np import mosek
[ 11748, 269, 85, 87, 9078, 355, 31396, 220, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 285, 577, 74, 628, 198 ]
2.571429
21
from re import match from io import BytesIO from lxml import etree from urllib import request __CURRENT_QUOTE_URL = "http://rate.bot.com.tw/xrt?Lang=zh-TW" __HISTORY_QUOTE_URL_PATTERN = "http://rate.bot.com.tw/xrt/quote/{range}/{currency}" __NAME_DICT = {} def now_all(): """取得目前所有幣別的牌告匯率 :rtype: dict """ ret = {} tree = __parse_tree(__CURRENT_QUOTE_URL) table = tree.xpath(u'//table[@title="牌告匯率"]')[0] quote_time = tree.xpath(u'//span[@class="time"]/text()')[0] for row in table.xpath("tbody/tr"): tds = row.xpath("td") full_name = ( tds[0].xpath('div/div[@class="visible-phone print_hide"]/text()')[0].strip() ) key = match(r".*\((\w+)\)", full_name).group(1) __NAME_DICT[key] = full_name cash_buy = tds[1].text.strip() cash_sell = tds[2].text.strip() rate_buy = tds[3].text.strip() rate_sell = tds[4].text.strip() ret[key] = (quote_time, cash_buy, cash_sell, rate_buy, rate_sell) return ret def now(currency): """取得目前指定幣別的牌告匯率 :param str currency: 貨幣代號 :rtype: list """ return now_all()[currency] def currencies(): """取得所有幣別代碼 :rtype: list """ return list(currency_name_dict().keys()) def currency_name_dict(): """取得所有幣別的中文名稱 :rtype: dict """ if not __NAME_DICT: now_all() return dict(__NAME_DICT) def past_day(currency): """取得最近一日的報價 :param str currency: 貨幣代號 :rtype: list """ return __parse_history_page( __HISTORY_QUOTE_URL_PATTERN.format(currency=currency, range="day"), first_column_is_link=False, ) def past_six_month(currency): """取得最近六個月的報價(包含貨幣名稱) :param str currency: 貨幣代號 :rtype: list """ return __parse_history_page( __HISTORY_QUOTE_URL_PATTERN.format(currency=currency, range="l6m") ) def specify_month(currency, year, month): """取得指定月份的報價(包含貨幣名稱) :param str currency: 貨幣代號 :param int year: 年 :param int month: 月 :rtype: list """ month_str = "{}-{:02}".format(year, month) return __parse_history_page( __HISTORY_QUOTE_URL_PATTERN.format(currency=currency, range=month_str) )
[ 6738, 302, 1330, 2872, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 6738, 2956, 297, 571, 1330, 2581, 198, 198, 834, 34, 39237, 62, 10917, 23051, 62, 21886, 796, 366, 4023, 1378, 4873, 13, 136...
1.868399
1,193
from moviepy.editor import * import os # split("D:/Загрузки/hackathon_part_1.mp4", "D:/datasets/")
[ 6738, 3807, 9078, 13, 35352, 1330, 1635, 198, 11748, 28686, 628, 198, 198, 2, 6626, 7203, 35, 14079, 140, 245, 16142, 140, 111, 21169, 35072, 140, 115, 31583, 18849, 14, 31153, 12938, 62, 3911, 62, 16, 13, 3149, 19, 1600, 366, 35, 1...
2.081633
49
def spin_words(sentence=None): """ Description: Write a function that takes in a string of one or more words, and returns the same string, but with all five or more letter words reversed (Just like the name of this Kata). Strings passed in will consist of only letters and spaces. Spaces will be included only when more than one word is present. Examples: spinWords( "Hey fellow warriors" ) => returns "Hey wollef sroirraw" spinWords( "This is a test") => returns "This is a test" spinWords( "This is another test" )=> returns "This is rehtona test" """ sentence_list = sentence.split() for i in range(len(sentence_list)): if len(sentence_list[i]) >= 5: sentence_list[i] = "".join(reversed(sentence_list[i])) else: pass sentence = " ".join(x for x in sentence_list) return sentence if __name__ == "__main__": spin_words()
[ 4299, 7906, 62, 10879, 7, 34086, 594, 28, 14202, 2599, 198, 220, 220, 220, 220, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 12489, 25, 198, 220, 220, 220, 19430, 257, 2163, 326, 2753, 287, 257, 4731, 286, 530, 393, 517, 2456, 1...
2.611413
368
from bioblend.galaxy import GalaxyInstance from bioblend.galaxy.histories import HistoryClient from bioblend.galaxy.libraries import LibraryClient from bioblend.galaxy.tools import ToolClient from bioblend.galaxy.datasets import DatasetClient from bioblend.galaxy.jobs import JobsClient from urllib.parse import urlparse, urlunparse import urllib.request import shutil import json import uuid import tempfile from ftplib import FTP from collections import namedtuple import os import time from fileop import IOHelper #gi = GalaxyInstance(url='http://sr-p2irc-big8.usask.ca:8080', key='7483fa940d53add053903042c39f853a') # r = toolClient.run_tool('a799d38679e985db', 'toolshed.g2.bx.psu.edu/repos/devteam/fastq_groomer/fastq_groomer/1.0.4', params) #=============================================================================== # run_fastq_groomer # {"tool_id":"toolshed.g2.bx.psu.edu/repos/devteam/fastq_groomer/fastq_groomer/1.0.4", # "tool_version":"1.0.4", # "inputs":{"input_file":{"values":[{"src":"hda","name":"SRR034608.fastq","tags":[],"keep":false,"hid":1,"id":"c9468fdb6dc5c5f1"}],"batch":false}, # "input_type":"sanger","options_type|options_type_selector":"basic"}} #=============================================================================== #=============================================================================== # run_bwa # {"tool_id":"toolshed.g2.bx.psu.edu/repos/devteam/bwa/bwa/0.7.15.2","tool_version":"0.7.15.2", # "inputs":{ # "reference_source|reference_source_selector":"history", # "reference_source|ref_file":{ # "values":[{ # "src":"hda", # "name":"all.cDNA", # "tags":[], # "keep":false, # "hid":2, # "id":"0d72ca01c763d02d"}], # "batch":false}, # "reference_source|index_a":"auto", # "input_type|input_type_selector":"paired", # "input_type|fastq_input1":{ # "values":[{ # "src":"hda", # "name":"FASTQ Groomer on data 1", # "tags":[], # "keep":false, # "hid":10, # "id":"4eb81b04b33684fd"}], # "batch":false # }, # "input_type|fastq_input2":{ # "values":[{ # "src":"hda", # "name":"FASTQ Groomer on data 1", # "tags":[], # "keep":false, # "hid":11, # "id":"5761546ab79a71f2"}], # "batch":false # }, # "input_type|adv_pe_options|adv_pe_options_selector":"do_not_set", # "rg|rg_selector":"do_not_set", # "analysis_type|analysis_type_selector":"illumina" # } #===============================================================================
[ 6738, 3182, 45292, 437, 13, 13528, 6969, 1330, 9252, 33384, 198, 6738, 3182, 45292, 437, 13, 13528, 6969, 13, 10034, 1749, 1330, 7443, 11792, 198, 6738, 3182, 45292, 437, 13, 13528, 6969, 13, 75, 11127, 1330, 10074, 11792, 198, 6738, 31...
2.238794
1,227
#!/usr/bin/python3 import struct import time import argparse import ssl import socket import sys import os from concurrent.futures import ProcessPoolExecutor class Server: ''' This class represents a remote server implementing the exobrain protocol It performs the UI and Display roles of said protocol, to enable testing of the protocol as spoken by the server. It is *NOT* intended for use with sensitive data or in a production environment. ''' # Process args and build conf, expectations parser = argparse.ArgumentParser(description="Exobrain Test CLI") parser.add_argument("--key", required=True) parser.add_argument("--cert", required=True) parser.add_argument("--ca", required=True) parser.add_argument("--tag", action='append', required=True) parser.add_argument("--pw", action='append', required=True) parser.add_argument("--server-port", type=int, required=True, dest='sport') parser.add_argument("--display-port", type=int, required=True, dest='dport') conf = parser.parse_args(sys.argv[1:]) server = Server(conf) actual_tags = server.list_tags() check_tags(actual_tags, conf.tag) # Each input password is actually a tag:password expected_passwords = [p.split(':') for p in conf.pw] for tag,expected in expected_passwords: actual = server.get_password(tag) if actual != expected: print ("Password for tag '%s' was '%s', but should have been '%s'" % (tag, actual, expected)) sys.exit(1) print ("Test passed") sys.exit(0)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 2878, 198, 11748, 640, 198, 11748, 1822, 29572, 198, 11748, 264, 6649, 198, 11748, 17802, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 24580, 13, 69, 315, 942, 1330, 10854, ...
3.088296
487
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. from __future__ import absolute_import from oci._vendor import requests # noqa: F401 from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient from oci.config import get_config_value_or_default, validate_config from oci.signer import Signer from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME from .models import mysql_type_mapping missing = Sentinel("Missing") class DbSystemClient(object): """ The API for the MySQL Database Service """ def __init__(self, config, **kwargs): """ Creates a new service client :param dict config: Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__. The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config the dict using :py:meth:`~oci.config.validate_config` :param str service_endpoint: (optional) The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit need to specify a service endpoint. :param timeout: (optional) The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. :type timeout: float or tuple(float, float) :param signer: (optional) The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values provided in the config parameter. One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument :type signer: :py:class:`~oci.signer.AbstractBaseSigner` :param obj retry_strategy: (optional) A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. Any value provided at the operation level will override whatever is specified at the client level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. :param obj circuit_breaker_strategy: (optional) A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). This client will not have circuit breakers enabled by default, users can use their own circuit breaker strategy or the convenient :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` provided by the SDK to enable it. The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__. :param function circuit_breaker_callback: (optional) Callback function to receive any exceptions triggerred by the circuit breaker. """ validate_config(config, signer=kwargs.get('signer')) if 'signer' in kwargs: signer = kwargs['signer'] elif AUTHENTICATION_TYPE_FIELD_NAME in config: signer = get_signer_from_authentication_type(config) else: signer = Signer( tenancy=config["tenancy"], user=config["user"], fingerprint=config["fingerprint"], private_key_file_location=config.get("key_file"), pass_phrase=get_config_value_or_default(config, "pass_phrase"), private_key_content=config.get("key_content") ) base_client_init_kwargs = { 'regional_client': True, 'service_endpoint': kwargs.get('service_endpoint'), 'base_path': '/20190415', 'service_endpoint_template': 'https://mysql.{region}.ocp.{secondLevelDomain}', 'skip_deserialization': kwargs.get('skip_deserialization', False), 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY) } if 'timeout' in kwargs: base_client_init_kwargs['timeout'] = kwargs.get('timeout') self.base_client = BaseClient("db_system", config, signer, mysql_type_mapping, **base_client_init_kwargs) self.retry_strategy = kwargs.get('retry_strategy') self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') def add_analytics_cluster(self, db_system_id, add_analytics_cluster_details, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Adds an Analytics Cluster to the DB System. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.mysql.models.AddAnalyticsClusterDetails add_analytics_cluster_details: (required) Request to add an Analytics Cluster. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.AnalyticsCluster` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/add_analytics_cluster.py.html>`__ to see an example of how to use add_analytics_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsCluster/actions/add" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "add_analytics_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=add_analytics_cluster_details, response_type="AnalyticsCluster") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=add_analytics_cluster_details, response_type="AnalyticsCluster") def add_heat_wave_cluster(self, db_system_id, add_heat_wave_cluster_details, **kwargs): """ Adds a HeatWave cluster to the DB System. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.mysql.models.AddHeatWaveClusterDetails add_heat_wave_cluster_details: (required) Request to add a HeatWave cluster. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.HeatWaveCluster` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/add_heat_wave_cluster.py.html>`__ to see an example of how to use add_heat_wave_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveCluster/actions/add" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "add_heat_wave_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=add_heat_wave_cluster_details, response_type="HeatWaveCluster") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=add_heat_wave_cluster_details, response_type="HeatWaveCluster") def create_db_system(self, create_db_system_details, **kwargs): """ Creates and launches a DB System. :param oci.mysql.models.CreateDbSystemDetails create_db_system_details: (required) Request to create a DB System. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.DbSystem` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/create_db_system.py.html>`__ to see an example of how to use create_db_system API. """ resource_path = "/dbSystems" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "create_db_system got unknown kwargs: {!r}".format(extra_kwargs)) header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, header_params=header_params, body=create_db_system_details, response_type="DbSystem") else: return self.base_client.call_api( resource_path=resource_path, method=method, header_params=header_params, body=create_db_system_details, response_type="DbSystem") def delete_analytics_cluster(self, db_system_id, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Deletes the Analytics Cluster including terminating, detaching, removing, finalizing and otherwise deleting all related resources. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/delete_analytics_cluster.py.html>`__ to see an example of how to use delete_analytics_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsCluster" method = "DELETE" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "delete_analytics_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def delete_db_system(self, db_system_id, **kwargs): """ Delete a DB System, including terminating, detaching, removing, finalizing and otherwise deleting all related resources. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/delete_db_system.py.html>`__ to see an example of how to use delete_db_system API. """ resource_path = "/dbSystems/{dbSystemId}" method = "DELETE" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "delete_db_system got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def delete_heat_wave_cluster(self, db_system_id, **kwargs): """ Deletes the HeatWave cluster including terminating, detaching, removing, finalizing and otherwise deleting all related resources. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/delete_heat_wave_cluster.py.html>`__ to see an example of how to use delete_heat_wave_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveCluster" method = "DELETE" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "delete_heat_wave_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def generate_analytics_cluster_memory_estimate(self, db_system_id, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Sends a request to estimate the memory footprints of user tables when loaded to Analytics Cluster memory. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.AnalyticsClusterMemoryEstimate` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/generate_analytics_cluster_memory_estimate.py.html>`__ to see an example of how to use generate_analytics_cluster_memory_estimate API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsClusterMemoryEstimate/actions/generate" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "generate_analytics_cluster_memory_estimate got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="AnalyticsClusterMemoryEstimate") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="AnalyticsClusterMemoryEstimate") def generate_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): """ Sends a request to estimate the memory footprints of user tables when loaded to HeatWave cluster memory. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.HeatWaveClusterMemoryEstimate` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/generate_heat_wave_cluster_memory_estimate.py.html>`__ to see an example of how to use generate_heat_wave_cluster_memory_estimate API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveClusterMemoryEstimate/actions/generate" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "generate_heat_wave_cluster_memory_estimate got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="HeatWaveClusterMemoryEstimate") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="HeatWaveClusterMemoryEstimate") def get_analytics_cluster(self, db_system_id, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Gets information about the Analytics Cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str if_none_match: (optional) For conditional requests. In the GET call for a resource, set the `If-None-Match` header to the value of the ETag from a previous GET (or POST or PUT) response for that resource. The server will return with either a 304 Not Modified response if the resource has not changed, or a 200 OK response with the updated representation. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.AnalyticsCluster` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_analytics_cluster.py.html>`__ to see an example of how to use get_analytics_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsCluster" method = "GET" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id", "if_none_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "get_analytics_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="AnalyticsCluster") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="AnalyticsCluster") def get_analytics_cluster_memory_estimate(self, db_system_id, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Gets the most recent Analytics Cluster memory estimate that can be used to determine a suitable Analytics Cluster size. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.AnalyticsClusterMemoryEstimate` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_analytics_cluster_memory_estimate.py.html>`__ to see an example of how to use get_analytics_cluster_memory_estimate API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsClusterMemoryEstimate" method = "GET" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "get_analytics_cluster_memory_estimate got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="AnalyticsClusterMemoryEstimate") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="AnalyticsClusterMemoryEstimate") def get_db_system(self, db_system_id, **kwargs): """ Get information about the specified DB System. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str if_none_match: (optional) For conditional requests. In the GET call for a resource, set the `If-None-Match` header to the value of the ETag from a previous GET (or POST or PUT) response for that resource. The server will return with either a 304 Not Modified response if the resource has not changed, or a 200 OK response with the updated representation. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.DbSystem` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_db_system.py.html>`__ to see an example of how to use get_db_system API. """ resource_path = "/dbSystems/{dbSystemId}" method = "GET" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id", "if_none_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "get_db_system got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="DbSystem") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="DbSystem") def get_heat_wave_cluster(self, db_system_id, **kwargs): """ Gets information about the HeatWave cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str if_none_match: (optional) For conditional requests. In the GET call for a resource, set the `If-None-Match` header to the value of the ETag from a previous GET (or POST or PUT) response for that resource. The server will return with either a 304 Not Modified response if the resource has not changed, or a 200 OK response with the updated representation. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.HeatWaveCluster` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_heat_wave_cluster.py.html>`__ to see an example of how to use get_heat_wave_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveCluster" method = "GET" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id", "if_none_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "get_heat_wave_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="HeatWaveCluster") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="HeatWaveCluster") def get_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): """ Gets the most recent HeatWave cluster memory estimate that can be used to determine a suitable HeatWave cluster size. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.mysql.models.HeatWaveClusterMemoryEstimate` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_heat_wave_cluster_memory_estimate.py.html>`__ to see an example of how to use get_heat_wave_cluster_memory_estimate API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveClusterMemoryEstimate" method = "GET" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "get_heat_wave_cluster_memory_estimate got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="HeatWaveClusterMemoryEstimate") else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, response_type="HeatWaveClusterMemoryEstimate") def list_db_systems(self, compartment_id, **kwargs): """ Get a list of DB Systems in the specified compartment. The default sort order is by timeUpdated, descending. :param str compartment_id: (required) The compartment `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param bool is_analytics_cluster_attached: (optional) DEPRECATED -- please use HeatWave API instead. If true, return only DB Systems with an Analytics Cluster attached, if false return only DB Systems with no Analytics Cluster attached. If not present, return all DB Systems. :param bool is_heat_wave_cluster_attached: (optional) If true, return only DB Systems with a HeatWave cluster attached, if false return only DB Systems with no HeatWave cluster attached. If not present, return all DB Systems. :param str db_system_id: (optional) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str display_name: (optional) A filter to return only the resource matching the given display name exactly. :param str lifecycle_state: (optional) DbSystem Lifecycle State Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED" :param str configuration_id: (optional) The requested Configuration instance. :param bool is_up_to_date: (optional) Filter instances if they are using the latest revision of the Configuration they are associated with. :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Time fields are default ordered as descending. Display name is default ordered as ascending. Allowed values are: "displayName", "timeCreated" :param str sort_order: (optional) The sort order to use (ASC or DESC). Allowed values are: "ASC", "DESC" :param int limit: (optional) The maximum number of items to return in a paginated list call. For information about pagination, see `List Pagination`__. __ https://docs.cloud.oracle.com/#API/Concepts/usingapi.htm#List_Pagination :param str page: (optional) The value of the `opc-next-page` or `opc-prev-page` response header from the previous list call. For information about pagination, see `List Pagination`__. __ https://docs.cloud.oracle.com/#API/Concepts/usingapi.htm#List_Pagination :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.mysql.models.DbSystemSummary` :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/list_db_systems.py.html>`__ to see an example of how to use list_db_systems API. """ resource_path = "/dbSystems" method = "GET" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "opc_request_id", "is_analytics_cluster_attached", "is_heat_wave_cluster_attached", "db_system_id", "display_name", "lifecycle_state", "configuration_id", "is_up_to_date", "sort_by", "sort_order", "limit", "page" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "list_db_systems got unknown kwargs: {!r}".format(extra_kwargs)) if 'lifecycle_state' in kwargs: lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"] if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: raise ValueError( "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values) ) if 'sort_by' in kwargs: sort_by_allowed_values = ["displayName", "timeCreated"] if kwargs['sort_by'] not in sort_by_allowed_values: raise ValueError( "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values) ) if 'sort_order' in kwargs: sort_order_allowed_values = ["ASC", "DESC"] if kwargs['sort_order'] not in sort_order_allowed_values: raise ValueError( "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values) ) query_params = { "isAnalyticsClusterAttached": kwargs.get("is_analytics_cluster_attached", missing), "isHeatWaveClusterAttached": kwargs.get("is_heat_wave_cluster_attached", missing), "compartmentId": compartment_id, "dbSystemId": kwargs.get("db_system_id", missing), "displayName": kwargs.get("display_name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing), "configurationId": kwargs.get("configuration_id", missing), "isUpToDate": kwargs.get("is_up_to_date", missing), "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing), "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, query_params=query_params, header_params=header_params, response_type="list[DbSystemSummary]") else: return self.base_client.call_api( resource_path=resource_path, method=method, query_params=query_params, header_params=header_params, response_type="list[DbSystemSummary]") def restart_analytics_cluster(self, db_system_id, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Restarts the Analytics Cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/restart_analytics_cluster.py.html>`__ to see an example of how to use restart_analytics_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsCluster/actions/restart" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "restart_analytics_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def restart_db_system(self, db_system_id, restart_db_system_details, **kwargs): """ Restarts the specified DB System. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.mysql.models.RestartDbSystemDetails restart_db_system_details: (required) Optional parameters for the stop portion of the restart action. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/restart_db_system.py.html>`__ to see an example of how to use restart_db_system API. """ resource_path = "/dbSystems/{dbSystemId}/actions/restart" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "restart_db_system got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=restart_db_system_details) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=restart_db_system_details) def restart_heat_wave_cluster(self, db_system_id, **kwargs): """ Restarts the HeatWave cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/restart_heat_wave_cluster.py.html>`__ to see an example of how to use restart_heat_wave_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveCluster/actions/restart" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "restart_heat_wave_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def start_analytics_cluster(self, db_system_id, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Starts the Analytics Cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/start_analytics_cluster.py.html>`__ to see an example of how to use start_analytics_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsCluster/actions/start" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "start_analytics_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def start_db_system(self, db_system_id, **kwargs): """ Start the specified DB System. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/start_db_system.py.html>`__ to see an example of how to use start_db_system API. """ resource_path = "/dbSystems/{dbSystemId}/actions/start" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "start_db_system got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def start_heat_wave_cluster(self, db_system_id, **kwargs): """ Starts the HeatWave cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/start_heat_wave_cluster.py.html>`__ to see an example of how to use start_heat_wave_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveCluster/actions/start" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "start_heat_wave_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def stop_analytics_cluster(self, db_system_id, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Stops the Analytics Cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/stop_analytics_cluster.py.html>`__ to see an example of how to use stop_analytics_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsCluster/actions/stop" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "stop_analytics_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def stop_db_system(self, db_system_id, stop_db_system_details, **kwargs): """ Stops the specified DB System. A stopped DB System is not billed. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.mysql.models.StopDbSystemDetails stop_db_system_details: (required) Optional parameters for the stop action. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/stop_db_system.py.html>`__ to see an example of how to use stop_db_system API. """ resource_path = "/dbSystems/{dbSystemId}/actions/stop" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "stop_db_system got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=stop_db_system_details) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=stop_db_system_details) def stop_heat_wave_cluster(self, db_system_id, **kwargs): """ Stops the HeatWave cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param str opc_retry_token: (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/stop_heat_wave_cluster.py.html>`__ to see an example of how to use stop_heat_wave_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveCluster/actions/stop" method = "POST" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id", "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "stop_heat_wave_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params) def update_analytics_cluster(self, db_system_id, update_analytics_cluster_details, **kwargs): """ DEPRECATED -- please use HeatWave API instead. Updates the Analytics Cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.mysql.models.UpdateAnalyticsClusterDetails update_analytics_cluster_details: (required) Request to update an Analytics Cluster. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/update_analytics_cluster.py.html>`__ to see an example of how to use update_analytics_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/analyticsCluster" method = "PUT" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "update_analytics_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=update_analytics_cluster_details) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=update_analytics_cluster_details) def update_db_system(self, db_system_id, update_db_system_details, **kwargs): """ Update the configuration of a DB System. Updating different fields in the DB System will have different results on the uptime of the DB System. For example, changing the displayName of a DB System will take effect immediately, but changing the shape of a DB System is an asynchronous operation that involves provisioning new Compute resources, pausing the DB System and migrating storage before making the DB System available again. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.mysql.models.UpdateDbSystemDetails update_db_system_details: (required) Request to update a DB System. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/update_db_system.py.html>`__ to see an example of how to use update_db_system API. """ resource_path = "/dbSystems/{dbSystemId}" method = "PUT" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "update_db_system got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=update_db_system_details) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=update_db_system_details) def update_heat_wave_cluster(self, db_system_id, update_heat_wave_cluster_details, **kwargs): """ Updates the HeatWave cluster. :param str db_system_id: (required) The DB System `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.mysql.models.UpdateHeatWaveClusterDetails update_heat_wave_cluster_details: (required) Request to update a HeatWave cluster. :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `If-Match` header to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/update_heat_wave_cluster.py.html>`__ to see an example of how to use update_heat_wave_cluster API. """ resource_path = "/dbSystems/{dbSystemId}/heatWaveCluster" method = "PUT" # Don't accept unknown kwargs expected_kwargs = [ "retry_strategy", "if_match", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( "update_heat_wave_cluster got unknown kwargs: {!r}".format(extra_kwargs)) path_params = { "dbSystemId": db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} for (k, v) in six.iteritems(path_params): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k)) header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( self.base_client.call_api, resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=update_heat_wave_cluster_details) else: return self.base_client.call_api( resource_path=resource_path, method=method, path_params=path_params, header_params=header_params, body=update_heat_wave_cluster_details)
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 15069, 357, 66, 8, 1584, 11, 33448, 11, 18650, 290, 14, 273, 663, 29116, 13, 220, 1439, 2489, 10395, 13, 198, 2, 770, 3788, 318, 10668, 12, 36612, 284, 345, 739, 262, 14499, 2448, 33532, 1...
2.343043
56,885
# -*- coding: utf-8 -*- """Operator plugin that inherits a base class and is made available through `type`.""" from __future__ import unicode_literals from __future__ import print_function import logging import json from typing import Dict from cookiecutter.operators import BaseOperator logger = logging.getLogger(__name__) class JsonOperator(BaseOperator): """ Operator for json. If no `contents` is provided, the operator reads from path. Otherwise it writes the `contents`. :param contents: A dict to write :param path: The path to write the file :return: When writing, returns path. When reading, returns dict """ type: str = 'json' contents: Dict = None path: str
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 18843, 1352, 13877, 326, 10639, 896, 257, 2779, 1398, 290, 318, 925, 1695, 832, 4600, 4906, 63, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, ...
3.147826
230
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 17 22:02:56 2020 @author: cuixiwen """ #Import essential packages import requests import pandas as pd import time import datetime from datetime import timedelta #def a function to using huobi API to get history Kline data and return a dataframe #Get current Price
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 1737, 1596, 2534, 25, 2999, 25, 3980, 12131, 198, 198, 31, 9800, 25, 18912, 844, 14...
3.149533
107
# Copyright (c) 2018 Copyright holder of the paper Generative Adversarial Model Learning # submitted to NeurIPS 2019 for review # All rights reserved. import rllab.misc.logger as logger from rllab.torch.sampler.torchSampler import TorchBaseSampler from rllab.sampler import parallel_sampler from rllab.algos.base import RLAlgorithm from rllab.torch.algos.trpo import TRPO from rllab.torch.utils.misc import create_torch_var_from_paths import torch from rllab.misc.overrides import overrides """ class which is used for GAIL training to imitate a expert policy """
[ 2, 15069, 357, 66, 8, 2864, 15069, 15762, 286, 262, 3348, 2980, 876, 1215, 690, 36098, 9104, 18252, 198, 2, 8948, 284, 3169, 333, 47643, 13130, 329, 2423, 198, 2, 1439, 2489, 10395, 13, 198, 198, 11748, 374, 297, 397, 13, 44374, 13,...
3.277457
173
from django.shortcuts import render, HttpResponseRedirect from .forms import LoginForm from django.contrib.auth import get_user_model, authenticate, login, logout # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 367, 29281, 31077, 7738, 1060, 198, 198, 6738, 764, 23914, 1330, 23093, 8479, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 11, 8323, 5344, 11, ...
3.574074
54
# Copyright 2014 M. A. Zentile, J. Keaveney, L. Weller, D. Whiting, # C. S. Adams and I. G. Hughes. # 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. """ Simulated annealing fitting routine. Complete rebuild of the original SA fitting module written by Mark A. Zentile, now using lmfit Last updated 2018-07-12 MAZ """ # py 2.7 compatibility from __future__ import (division, print_function, absolute_import) import numpy as np import matplotlib.pyplot as plt import warnings import sys import copy import time import pickle as pickle import psutil from multiprocessing import Pool from elecsus.libs import MLFittingRoutine as ML import lmfit as lm from elecsus.libs.spectra import get_spectra p_dict_bounds_default = {'lcell':1e-3,'Bfield':100., 'T':20., 'GammaBuf':20., 'shift':100., # Polarisation of light 'theta0':10., 'E_x':0.05, 'E_y':0.05, 'E_phase':0.01, # B-field angle w.r.t. light k-vector 'Btheta':10*3.14/180, 'Bphi':10*3.14/180, 'DoppTemp':20., 'rb85frac':1, 'K40frac':1, 'K41frac':1, } def chisq(yo,ye,err=None): """ Evaluate the chi-squared value of a given data/theory combination Inputs: yo : observed data ye : expected (theory) data err : Optional, error bars - array of length(x) Returns: float of chi-squared value """ if err is None: err = np.ones_like(yo) return (((yo-ye)/err)**2).sum() def evaluate(args): """ Evaluate chi-squared value for a given set of parameters """ warnings.simplefilter("ignore") data = args[0] p_dict = args[2] E_in = np.array([p_dict['E_x'],p_dict['E_y']*np.exp(1.j*p_dict['E_phase']),0.]) p_dict_bools = args[3] data_type = args[4] theory_vals = get_spectra(data[0],E_in,p_dict,outputs=[data_type])[0].real chisq_val = chisq(data[1],theory_vals) return chisq_val, p_dict def SA_fit(data,E_in,p_dict,p_dict_bools,p_dict_bounds=None,no_evals=None,data_type='S0',verbose=False): """ Simulated annealing fitting method. Before simulated annealing starts, the parameter space is randomly sampled to find good starting conditions for the SA fit. data: an Nx2 iterable for the x and y data to be fitted E_in: the initial electric field input. See docstring for the spectra.py module for details. no_evals: The number of randomly-selected start points for downhill fitting. Defaults to 2**(3+2*nFitParams) where nFitParams is the number of varying fit parameters p_dict: dictionary containing all the calculation (initial) parameters p_dict_bools: dictionary with the same keys as p_dict, with Boolean values representing each parameter that is to be varied in the fitting p_dict_bounds: dictionary with the same keys as p_dict, with values that represent the deviation each parameter can take in the initial parameter search NOTE: this works slightly differently to p_dict_bounds in the ML fitting methods. In RR and SA fitting, the bounds select the range in parameter space that is randomly explored to find good starting parameters for the SA routine, rather than being strict bounds on the fit parameters. data_type: Data type to fit experimental data to. Can be one of: 'S0', 'S1', 'S2', 'S3', 'Ix', 'Iy', ... verbose: Boolean - more print statements provided as the program progresses """ if p_dict_bounds is None: p_dict_bounds = p_dict_bounds_default print('Starting Simulated Annealing Fitting Routine') x = np.array(data[0]) y = np.array(data[1]) p_dict['E_x'] = E_in[0] p_dict['E_y'] = E_in[1][0] p_dict['E_phase'] = E_in[1][1] E_in_vector = np.array([p_dict['E_x'],p_dict['E_y']*np.exp(1.j*p_dict['E_phase']),0.]) # count number of fit parameters nFitParams = 0 for key in p_dict_bools: if p_dict_bools[key]: nFitParams += 1 # default number of iterations based on number of fit parameters if no_evals == None: no_evals = 2**(8+2*nFitParams) # Create random array of starting parameters based on parameter ranges given in p_dict_bounds dictionary # Scattered uniformly over the parameter space #clone the parameter dictionary p_dict_list = [] for i in range(no_evals): p_dict_list.append(copy.deepcopy(p_dict)) for key in p_dict_bools: if p_dict_bools[key]==True: start_vals = p_dict[key] #print start_vals for i in range(len(p_dict_list)): p_dict_list[i][key] = start_vals + np.random.uniform(-1,1) * p_dict_bounds[key] if verbose: print('List of initial parameter dictionaries:') for pd in p_dict_list: print(pd) #print p_dict_list print('\n\n') #Do parallel ML fitting by utilising multiple cores po = Pool() # Pool() uses all cores, Pool(3) uses 3 cores for example. ## use lower process priority so computer is still responsive while calculating!! parent = psutil.Process() parent.nice(psutil.BELOW_NORMAL_PRIORITY_CLASS) for child in parent.children(): child.nice(psutil.IDLE_PRIORITY_CLASS) args_list = [(data, E_in, p_dict_list[k], p_dict_bools, data_type) for k in range(no_evals)] Res = po.map_async(evaluate,args_list) result = Res.get() po.close() po.join() result = np.array(result) lineMin = np.argmin(result[:,0]) # position of lowest chi-squared value from initial guesses SA_params = result[lineMin][1] # parameter dictionary associated with lowest chi-squared best_chi_sq = result[lineMin][0] # lowest chi-squared value current_chi_sq = best_chi_sq current_params = copy.deepcopy(SA_params) print('\n\n Initial parameter space evaluations completed...') # Measure of how much the chi-squared values change over the parameter space spread = np.std(result[:,0]) # Initial 'temperature' for the annealing T = 1500. # Cold temperature extreme where the algorithm will stop searching minimum_T = 50. # sets the effective range of a given temperature range_scaling = 3 k = abs(spread)/T / range_scaling # Cooling rate - how much the temperature decreases on each run. cooling_rate = 7e-6 # Number of times a jump uphill is rejected before switching to ML fit. uphill_escape_chance = 0 uphill_escape_threshold = 300 # Number of iterations to investigate a plateau in parameter space (i.e. chi-squared does not change) plateau_escape_chance = 0 plateau_escape_threshold = 300 trial_params = copy.deepcopy(current_params) best_params = copy.deepcopy(current_params) best_chi_sq = current_chi_sq #print trial_params ## testing - log algorithm path chi_sq_log = [current_chi_sq] T_log = [trial_params['T']] B_log = [trial_params['Bfield']] hot_iterations = 250 iteration = 0 while T > minimum_T: # Generate a new set of parameters that are close to the last evaluated parameters for key in p_dict_bools: if p_dict_bools[key]==True: # (extra check) ## parameters varied over 10% of range specified before... trial_params[key] = copy.deepcopy(current_params[key]) + np.random.normal(0,p_dict_bounds[key]) # * p_dict_bounds[key] #* 0.1 print('Before calculation:') print(('Trial: ', trial_params['T'], trial_params['Bfield'])) print(('Current: ', current_params['T'], current_params['Bfield'])) trial_theory = get_spectra(x,E_in_vector,trial_params,outputs=[data_type])[0].real trial_chi_sq = chisq(data[1],trial_theory) # log best chi_squared values and parameters if trial_chi_sq < best_chi_sq: best_chi_sq = trial_chi_sq best_params = copy.deepcopy(trial_params) # Calculate energy difference delta_chi_sq = trial_chi_sq - current_chi_sq # and convert to probability of acceptance if delta_chi_sq < 1e-5: # if there's no change in chi-squared (i.e. parameter space is locally flat), accept with small (5%) probability print('WARNING - no change in chi-squared - probably due to plateau in parameter space!') prob = 0.05 plateau_escape_chance += 1 else: prob = np.exp(-delta_chi_sq/(k*T)) if verbose: print(('\n\tBest chi-squared so far:', best_chi_sq)) print(('\tBest Parameters so far (T, B): ', best_params['T'], best_params['Bfield'])) print(('\tCurrent Parameters (T, B): ', current_params['T'], current_params['Bfield'])) print(('\tTrial Parameters (T, B): ', trial_params['T'], trial_params['Bfield'])) print(('\n\tCurrent chi-squared:', current_chi_sq)) print(('\tTrial chi-squared:', trial_chi_sq)) print(('\tChange in chi-squared from previous:', delta_chi_sq)) print(('\tTemperature parameter: ', T)) print(('\tProbability that new parameters will be accepted (>1 == 1):', prob)) if (delta_chi_sq < 0) or (prob > np.random.random()): # accept downhill movement, or uphill movement with probability prob - update chi_squared and parameters current_chi_sq = trial_chi_sq current_params = copy.deepcopy(trial_params) chi_sq_log.append(trial_chi_sq) ## keep log of chi-squared values (on succesful iterations only) T_log.append(trial_params['T']) B_log.append(trial_params['Bfield']) print('\t...Values accepted. Current parameters updated.') print('\n') # reset escape chance uphill_escape_chance = 0 else: print(('\t...Values rejected. Escape threshold:', uphill_escape_chance, ' / ', uphill_escape_threshold)) print('\n') uphill_escape_chance += 1 # Cool system # Hold T constant for first N iterations if iteration > hot_iterations: T = T/(1 + (cooling_rate*T)) #Lundy's Method (http://link.springer.com/article/10.1007/BF01582166) iteration += 1 # Exit annealing loop if conditions are correct if (uphill_escape_chance > uphill_escape_threshold): print(('Simulated annealing completed ( No improvement found after {:d} iterations)'.format(uphill_escape_threshold))) print('Switching to downhill fit using best found parameters...\n') break if (T < minimum_T): #No jumps up hill for a while, or minimum temperature reached print('Simulated annealing completed ( Temperature reached minimum threshold )') print('Switching to downhill fit using best found parameters...\n') break if (plateau_escape_chance > plateau_escape_threshold): print('!!!\n\tCAUTION :: Annealing has not converged.') print('\tAnnealing algorithm found plateau in parameter space') print('\tSwitching to downhill fit using best found parameters...\n!!!') break #### Marquardt-Levenberg fit ##### try: print(('Downhill fit with initial parameters: (T,B) ', best_params['T'], best_params['Bfield'])) ML_best_params, result = ML.ML_fit(data, E_in, best_params, p_dict_bools, data_type) MLchi_sq = result.chisqr if MLchi_sq <= best_chi_sq: best_params = ML_best_params final_result = result success = True print('Downhill fit converged successfully.\n') else: print('Downhill fit did not find further improvement. Continuing with simulated annealing result.\n') success = False final_result = 1 except: print('Downhill fit failed to converge. Continuing with simulated annealing result.\n') success = False final_result = 1 return best_params, final_result #, chi_sq_log, T_log, B_log, success def test_fit2(calc=False): """ Alternate data set to test """ p_dict = {'elem':'Rb','Dline':'D2','T':80.,'lcell':2e-3,'Bfield':250.,'Btheta':0., 'Bphi':0.,'GammaBuf':0.,'shift':0.} # only need to specify parameters that are varied p_dict_bools = {'T':True,'Bfield':True} p_dict_bounds = {'T':15,'Bfield':100} E_in = np.array([1.0,0.0,0.0]) E_in_angle = [E_in[0].real,[abs(E_in[1]),np.angle(E_in[1])]] print(E_in_angle) x = np.linspace(-7000,8000,200) if calc: [y] = get_spectra(x,E_in,p_dict,outputs=['S0']) + np.random.randn(len(x))*0.02 pickle.dump([x,y],open('pickle_xydata.pkl','wb')) else: x,y = pickle.load(open('pickle_xydata.pkl','rb')) data = [x,y.real] # Map chi-squared surface: Tvals = np.linspace(40,120,300) Bvals = np.linspace(0,500,250) T2D, B2D = np.meshgrid(Tvals,Bvals) CSQ_map = np.zeros((len(Tvals),len(Bvals))) if calc: for i,TT in enumerate(Tvals): print((i, len(Tvals))) for j, BB in enumerate(Bvals): p_dict['T'] = TT p_dict['Bfield'] = BB [ye] = get_spectra(x,E_in,p_dict,outputs=['S0']) CSQ_map[i,j] = chisq(y,ye) pickle.dump([T2D,B2D,CSQ_map],open('pickle_CSQmap.pkl','wb')) else: T2D, B2D, CSQ_map = pickle.load(open('pickle_CSQmap.pkl','rb')) fig_map = plt.figure() ax = plt.subplot2grid((1,14),(0,0),colspan=13) ax_cb = plt.subplot2grid((1,14),(0,13),colspan=1) im = ax.imshow(CSQ_map.T,origin='lower',aspect='auto', extent=(Tvals[0],Tvals[-1],Bvals[0],Bvals[-1]), cmap=plt.cm.jet,alpha=0.7) ax.contour(T2D, B2D, CSQ_map.T,7,lw=2,color='k') cb = fig_map.colorbar(im,cax=ax_cb) #plt.show() ## Do SA fitting best_params, result, chi_sq_log, T_log, B_log = SA_fit(data, E_in_angle, p_dict, p_dict_bools, p_dict_bounds, no_evals = 2, data_type='S0') report = result.fit_report() fit = result.best_fit fig_data = plt.figure() print(report) plt.plot(x,y,'ko') plt.plot(x,fit,'r-',lw=2) # Chi-squared log with iteration number fig_chisqlog = plt.figure() plt.plot(chi_sq_log) plt.ylabel('Chi_squared value') plt.xlabel('Iteration') #plt.show() ax.plot(T_log, B_log, 'ko', ms=1) ax.plot(T_log[0], B_log[0], 'rs', ms=6) ax.plot(T_log[-1], B_log[-1], 'bs', ms=6) plt.show() def test_fit3(calc=False): """ Alternate data set to test """ p_dict = {'elem':'Rb','Dline':'D2','T':155.,'lcell':5e-3,'Bfield':1100.,'Btheta':0., 'Bphi':0.,'GammaBuf':0.,'shift':0.} # only need to specify parameters that are varied p_dict_bools = {'T':True,'Bfield':True} p_dict_bounds = {'T':25,'Bfield':300} E_in = np.array([1.0,0.0,0.0]) E_in_angle = [E_in[0].real,[abs(E_in[1]),np.angle(E_in[1])]] print(E_in_angle) x = np.linspace(-13000,-6000,150) if calc: [y] = get_spectra(x,E_in,p_dict,outputs=['S1']) + np.random.randn(len(x))*0.02 pickle.dump([x,y],open('pickle_xydata.pkl','wb')) else: x,y = pickle.load(open('pickle_xydata.pkl','rb')) data = [x,y.real] # Map chi-squared surface: #Tvals = np.linspace(p_dict['T']-p_dict_bounds['T'],p_dict['T']+p_dict_bounds['T'],150) #Bvals = np.linspace(p_dict['Bfield']-p_dict_bounds['Bfield'],p_dict['Bfield']+p_dict_bounds['Bfield'],125) Tvals = np.linspace(80,250,450) Bvals = np.linspace(0,2500,300) T2D, B2D = np.meshgrid(Tvals,Bvals) CSQ_map = np.zeros((len(Tvals),len(Bvals))) if calc: for i,TT in enumerate(Tvals): print((i, len(Tvals))) for j, BB in enumerate(Bvals): p_dict['T'] = TT p_dict['Bfield'] = BB [ye] = get_spectra(x,E_in,p_dict,outputs=['S1']) CSQ_map[i,j] = chisq(y,ye) pickle.dump([T2D,B2D,CSQ_map],open('pickle_CSQmap.pkl','wb')) else: T2D, B2D, CSQ_map = pickle.load(open('pickle_CSQmap.pkl','rb')) print(T2D) print(B2D) fig_map = plt.figure() ax = plt.subplot2grid((1,14),(0,0),colspan=13) ax_cb = plt.subplot2grid((1,14),(0,13),colspan=1) im = ax.imshow(CSQ_map.T,origin='lower',aspect='auto', extent=(T2D[0][0],T2D[-1][-1],B2D[0][0],B2D[-1][-1]), cmap=plt.cm.jet,alpha=0.7) ax.contour(T2D, B2D, CSQ_map.T,9,lw=2,color='k') cb = fig_map.colorbar(im,cax=ax_cb) #plt.show() ## Do SA fitting best_params, result, chi_sq_log, T_log, B_log, success = SA_fit(data, E_in_angle, p_dict, p_dict_bools, p_dict_bounds, no_evals = 32, data_type='S1') if success: report = result.fit_report() fit = result.best_fit print(report) fig_data = plt.figure() plt.plot(x,y,'ko') if success: plt.plot(x,fit,'r-',lw=2) # Chi-squared log with iteration number fig_chisqlog = plt.figure() plt.plot(chi_sq_log) plt.ylabel('Chi_squared value') plt.xlabel('Iteration') #plt.show() ax.plot(T_log, B_log, 'ko', ms=1) ax.plot(T_log, B_log, 'k--', lw=1.5) ax.plot(T_log[0], B_log[0], 'rs', ms=6) ax.plot(T_log[-1], B_log[-1], 'bs', ms=6) plt.show() def test_fit4(calc=False): """ Alternate data set to test """ #actual params 110 / 7000 p_dict = {'elem':'Rb','Dline':'D2','T':100.,'lcell':5e-3,'Bfield':6100.,'Btheta':0., 'Bphi':0.,'GammaBuf':0.,'shift':0.,'rb85frac':1.0} # only need to specify parameters that are varied p_dict_bools = {'T':True,'Bfield':True} p_dict_bounds = {'T':5,'Bfield':400} E_in = np.array([1.0,0.0,0.0]) E_in_angle = [E_in[0].real,[abs(E_in[1]),np.angle(E_in[1])]] print(E_in_angle) x = np.linspace(-21000,-13000,150) if calc: [y] = get_spectra(x,E_in,p_dict,outputs=['S0']) + np.random.randn(len(x))*0.02 pickle.dump([x,y],open('pickle_xydata.pkl','wb')) else: x,y = pickle.load(open('pickle_xydata.pkl','rb')) data = [x,y.real] # Map chi-squared surface: #Tvals = np.linspace(p_dict['T']-p_dict_bounds['T'],p_dict['T']+p_dict_bounds['T'],150) #Bvals = np.linspace(p_dict['Bfield']-p_dict_bounds['Bfield'],p_dict['Bfield']+p_dict_bounds['Bfield'],125) Tvals = np.linspace(70,150,350) Bvals = np.linspace(5000,10000,300) T2D, B2D = np.meshgrid(Tvals,Bvals) CSQ_map = np.zeros((len(Tvals),len(Bvals))) if calc: for i,TT in enumerate(Tvals): print((i, len(Tvals))) for j, BB in enumerate(Bvals): p_dict['T'] = TT p_dict['Bfield'] = BB [ye] = get_spectra(x,E_in,p_dict,outputs=['S0']) CSQ_map[i,j] = chisq(y,ye) pickle.dump([T2D,B2D,CSQ_map],open('pickle_CSQmap.pkl','wb')) else: T2D, B2D, CSQ_map = pickle.load(open('pickle_CSQmap.pkl','rb')) print(T2D) print(B2D) fig_map = plt.figure() ax = plt.subplot2grid((1,14),(0,0),colspan=13) ax_cb = plt.subplot2grid((1,14),(0,13),colspan=1) im = ax.imshow(CSQ_map.T,origin='lower',aspect='auto', extent=(T2D[0][0],T2D[-1][-1],B2D[0][0],B2D[-1][-1]), cmap=plt.cm.jet,alpha=0.7) ax.contour(T2D, B2D, CSQ_map.T,9,lw=2,color='k') cb = fig_map.colorbar(im,cax=ax_cb) #plt.show() ## Do SA fitting best_params, result, chi_sq_log, T_log, B_log, success = SA_fit(data, E_in_angle, p_dict, p_dict_bools, p_dict_bounds, no_evals = 32, data_type='S0') fig_data = plt.figure() plt.plot(x,y,'ko') if success: report = result.fit_report() fit = result.best_fit print(report) else: print(best_params) fit = get_spectra(x,E_in,best_params,outputs=['S0'])[0].real plt.plot(x,fit,'r-',lw=2) # Chi-squared log with iteration number fig_chisqlog = plt.figure() plt.plot(chi_sq_log) plt.ylabel('Chi_squared value') plt.xlabel('Iteration') #plt.show() ax.plot(T_log, B_log, 'ko', ms=1) ax.plot(T_log, B_log, 'k--', lw=1.5) ax.plot(T_log[0], B_log[0], 'rs', ms=6) ax.plot(T_log[-1], B_log[-1], 'bs', ms=6) plt.show() if __name__ == '__main__': test_fit4(False)
[ 2, 15069, 1946, 337, 13, 317, 13, 1168, 298, 576, 11, 449, 13, 3873, 4005, 2959, 11, 406, 13, 3894, 263, 11, 360, 13, 854, 1780, 11, 198, 2, 327, 13, 311, 13, 12620, 290, 314, 13, 402, 13, 19712, 13, 198, 198, 2, 49962, 739, ...
2.33085
8,188
import pytest import numpy as np from factor import OrderFinder, QuantumOrderFinder, FakeQuantumOrderFinder TEST_RNG = np.random.default_rng(seed=2022) TEST_N_TRIALS = 3
[ 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 5766, 1330, 8284, 37, 5540, 11, 29082, 18743, 37, 5540, 11, 33482, 24915, 388, 18743, 37, 5540, 198, 198, 51, 6465, 62, 49, 10503, 796, 45941, 13, 25120, 13, 1228...
2.707692
65
#!/usr/bin/env python3 # Copyright 2013-present Barefoot Networks, Inc. # Copyright 2018 VMware, Inc. # # 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. """ Contains different eBPF models and specifies their individual behavior Currently five phases are defined: 1. Invokes the specified compiler on a provided p4 file. 2. Parses an stf file and generates an pcap output. 3. Loads the generated template or compiles it to a runnable binary. 4. Feeds the generated pcap test packets into the P4 "filter" 5. Evaluates the output with the expected result from the .stf file """ import os import sys from glob import glob import scapy.utils as scapy_util from .ebpfstf import create_table_file, parse_stf_file # path to the tools folder of the compiler sys.path.insert(0, os.path.dirname( os.path.realpath(__file__)) + '/../../../tools') from testutils import * PCAP_PREFIX = "pcap" # match pattern PCAP_SUFFIX = ".pcap" # could also be ".pcapng" class EBPFTarget(object): """ Parent Object of the EBPF Targets Defines common functions and variables""" def filename(self, interface, direction): """ Constructs the pcap filename from the given interface and packet stream direction. For example "pcap1_out.pcap" implies that the given stream contains tx packets from interface 1 """ return (self.tmpdir + "/" + PCAP_PREFIX + str(interface) + "_" + direction + PCAP_SUFFIX) def interface_of_filename(self, f): """ Extracts the interface name out of a pcap filename""" return int(os.path.basename(f).rstrip(PCAP_SUFFIX). lstrip(PCAP_PREFIX).rsplit('_', 1)[0]) def compile_p4(self, argv): # To override """ Compile the p4 target """ if not os.path.isfile(self.options.p4filename): report_err(self.outputs["stderr"], ("No such file " + self.options.p4filename)) sys.exit(FAILURE) # Initialize arguments for the makefile args = self.get_make_args(self.runtimedir, self.options.target) # name of the makefile target args += self.template + ".c " # name of the output source file args += "BPFOBJ=" + self.template + ".c " # location of the P4 input file args += "P4FILE=" + self.options.p4filename + " " # location of the P4 compiler args += "P4C=" + self.compiler p4_args = ' '.join(map(str, argv)) if (p4_args): # Remaining arguments args += " P4ARGS=\"" + p4_args + "\" " errmsg = "Failed to compile P4:" result = run_timeout(self.options.verbose, args, TIMEOUT, self.outputs, errmsg) if result != SUCCESS: # If the compiler crashed fail the test if 'Compiler Bug' in open(self.outputs["stderr"]).readlines(): sys.exit(FAILURE) # Check if we expect the p4 compilation of the p4 file to fail expected_error = is_err(self.options.p4filename) if expected_error: # We do, so invert the result if result == SUCCESS: result = FAILURE else: result = SUCCESS return result, expected_error def _write_pcap_files(self, iface_pkts_map): """ Writes the collected packets to their respective interfaces. This is done by creating a pcap file with the corresponding name. """ for iface, pkts in iface_pkts_map.items(): direction = "in" infile = self.filename(iface, direction) # Linktype 1 the Ethernet Link Type, see also 'man pcap-linktype' fp = scapy_util.RawPcapWriter(infile, linktype=1) fp._write_header(None) for pkt_data in pkts: try: fp._write_packet(pkt_data) except ValueError: report_err(self.outputs["stderr"], "Invalid packet data", pkt_data) return FAILURE fp.flush() fp.close() # debug -- the bytes in the pcap file should be identical to the # hex strings in the STF file # packets = rdpcap(infile) # for p in packets: # print(p.convert_to(Raw).show()) return SUCCESS def generate_model_inputs(self, stffile): # To override """ Parses the stf file and creates a .pcap file with input packets. It also adds the expected output packets per interface to a global dictionary. After parsing the necessary information, it creates a control header for the runtime, which contains the extracted control plane commands """ with open(stffile) as raw_stf: input_pkts, cmds, self.expected = parse_stf_file( raw_stf) result, err = create_table_file(cmds, self.tmpdir, "control.h") if result != SUCCESS: return result result = self._write_pcap_files(input_pkts) if result != SUCCESS: return result return SUCCESS def compile_dataplane(self, argv=""): # To override """ Compiles a filter from the previously generated template """ raise NotImplementedError("Method create_filter not implemented!") def run(self, argv=""): # To override """ Runs the filter and feeds attached interfaces with packets """ raise NotImplementedError("Method run() not implemented!") def check_outputs(self): """ Checks if the output of the filter matches expectations """ report_output(self.outputs["stdout"], self.options.verbose, "Comparing outputs") direction = "out" for file in glob(self.filename('*', direction)): report_output(self.outputs["stdout"], self.options.verbose, "Checking file %s" % file) interface = self.interface_of_filename(file) if os.stat(file).st_size == 0: packets = [] else: try: packets = scapy_util.rdpcap(file) except Exception as e: report_err(self.outputs["stderr"], "Corrupt pcap file", file, e) self.showLog() return FAILURE if interface not in self.expected: expected = [] else: # Check for expected packets. if self.expected[interface]["any"]: if self.expected[interface]["pkts"]: report_err(self.outputs["stderr"], ("Interface " + interface + " has both expected with" " packets and without")) continue expected = self.expected[interface]["pkts"] if len(expected) != len(packets): report_err(self.outputs["stderr"], "Expected", len( expected), "packets on port", str(interface), "got", len(packets)) return FAILURE for i in range(0, len(expected)): cmp = compare_pkt( self.outputs, expected[i], packets[i]) if cmp != SUCCESS: report_err(self.outputs["stderr"], "Packet", i, "on port", str(interface), "differs") return cmp # Remove successfully checked interfaces if interface in self.expected: del self.expected[interface] if len(self.expected) != 0: # Didn't find all the expects we were expecting report_err(self.outputs["stderr"], "Expected packets on port(s)", list(self.expected.keys()), "not received") return FAILURE report_output(self.outputs["stdout"], self.options.verbose, "All went well.") return SUCCESS
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 2211, 12, 25579, 38234, 5898, 27862, 11, 3457, 13, 198, 2, 15069, 2864, 37754, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 35...
2.192076
3,988
# -*- coding: utf-8 -*- """Unit tests for Request class""" import pytest from ga4gh.refget.http.request import Request testdata_header = [ ("Content-Type", "appliciation/json"), ("Content-Type", "text/plain"), ("Range", "bytes=25-100") ] testdata_path = [ ("seqid", "ga4gh:SQ.HKyMuwwEWbdUDXfk5o1EGxGeqBmon6Sp"), ("seqid", "1cac8cbb0c0459b7540d77e4e68d441b119ea819a89fa4a9"), ("seqid", "000000ca1658e86c7439f5b4f1c1341c") ] testdata_query = [ ("start", "20"), ("start", "600"), ("end", "999") ] @pytest.mark.parametrize("key,value", testdata_header) @pytest.mark.parametrize("key,value", testdata_path) @pytest.mark.parametrize("key,value", testdata_query)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26453, 5254, 329, 19390, 1398, 37811, 198, 198, 11748, 12972, 9288, 198, 6738, 31986, 19, 456, 13, 5420, 1136, 13, 4023, 13, 25927, 1330, 19390, 198, 198, 9288, 7...
2.184375
320
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2013 Frederik Elwert <frederik.elwert@web.de> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. """ A to-TCF converter that wraps the SfS web service. """ from tcflib.service import RemoteWorker, run_as_cli if __name__ == '__main__': run_as_cli(NltkTokenizer)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 2211, 18669, 1134, 2574, 86, 861, 1279, 39193, 263, 1134, 13, 417, 86, 861, 31, ...
3.39899
396
from coinbase.wallet.client import Client import huobi_main_monitor import time import email_client if __name__ == '__main__': main()
[ 6738, 10752, 8692, 13, 44623, 13, 16366, 1330, 20985, 198, 11748, 289, 84, 13411, 62, 12417, 62, 41143, 198, 11748, 640, 198, 11748, 3053, 62, 16366, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 2...
3.136364
44
# Generated by Django 2.1 on 2020-07-20 05:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 319, 12131, 12, 2998, 12, 1238, 8870, 25, 1238, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, ...
3.1
50
#!/usr/bin/env python3 import helm_generator.generator as gen import sys if __name__ == '__main__': sys.exit(main())
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 18030, 62, 8612, 1352, 13, 8612, 1352, 355, 2429, 198, 11748, 25064, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 25064, 13, ...
2.638298
47
from appJar import gui app = gui('Internal marks caliculator') app.setBg('#8b9dc3') app.addLabel('lb1','Enter your marks') app.addLabelNumericEntry('class test 1') app.addLabelNumericEntry('class test 2') app.addLabelNumericEntry('class test 3') app.addLabelNumericEntry('class test 4') app.addLabelNumericEntry('mid 1') app.addLabelNumericEntry('mid 2') app.addButton('caliculate',total) app.setResizable(False) app.go()
[ 6738, 598, 47511, 1330, 11774, 198, 198, 1324, 796, 11774, 10786, 37693, 8849, 2386, 291, 8927, 11537, 198, 1324, 13, 2617, 33, 70, 10786, 2, 23, 65, 24, 17896, 18, 11537, 198, 1324, 13, 2860, 33986, 10786, 23160, 16, 41707, 17469, 53...
2.871622
148
# # quiz # # what is a result of following Python code a = "5" b = "6" print( a + b ) # # 1. 11 # # 2. 5 # # 3. 6 # # 4. 56 # # 5. compile error a=2 b=2 if (a > 5 and b < 3): print("heheh") else: print("hohoho") a=2 b=2 if (a > 5 or b < 3): print("heheh") else: print("hohoho") # ## Please code 'xxxx' part # # please correct to print all lower case of country country = "CaNaDa" print( country.lower() ) # # please correct the code to match the conditions # # I have a farm which has these animals, 4 rabbits and 2 chickens # no money : hungry # $1 : candy # $5 : ice cream # $10 : burger # if ( xxxx ): # print("I can buy a burger") # xxxx: # print("I can buy icecream") # xxxx: # print("I can buy candy") # xxxx: # print("I am hungry") # ================= money = 5 if money >= 10: print("I can buy a burger") elif money >= 5: print("I can buy an ice cream") elif money >= 1: print("I can buy candy") else: print("I am hungry")
[ 2, 1303, 38964, 198, 2, 1303, 644, 318, 257, 1255, 286, 1708, 11361, 2438, 198, 64, 796, 366, 20, 1, 198, 65, 796, 366, 21, 1, 198, 4798, 7, 257, 1343, 275, 1267, 198, 198, 2, 1303, 352, 13, 1367, 198, 2, 1303, 362, 13, 642, ...
2.486216
399
import time import receiver if __name__ == '__main__': recv = receiver.Receiver() recv.start_thread(12345) try: print('Press Ctrl-C to stop') while True: while recv.available(): msgs = recv.get() print(msgs) time.sleep(1 / 60) finally: recv.stop_thread()
[ 11748, 640, 198, 11748, 9733, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 664, 85, 796, 9733, 13, 3041, 39729, 3419, 198, 220, 220, 220, 664, 85, 13, 9688, 62, 16663, 7, 10163, 2231, 8, ...
1.934066
182
import unittest from slack_ttt.native.dynamo_db import DynamoDB from slack_ttt.request_handler import RequestHandler # NEW GAME USE CASES # GAME ACCEPT USE CASES # GAME DECLINE USE CASES # DISPLAY BOARD TEST CASES # GAME MOVES TEST CASES # GAME COMPLETION TEST CASES # GAME ENDING TEST CASES if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 30740, 62, 926, 83, 13, 30191, 13, 67, 4989, 78, 62, 9945, 1330, 41542, 11012, 198, 6738, 30740, 62, 926, 83, 13, 25927, 62, 30281, 1330, 19390, 25060, 628, 220, 220, 220, 1303, 12682, 30517, 23210, ...
2.777778
135
# Copyright (c) OpenMMLab. All rights reserved. import argparse from collections import OrderedDict import torch def convert(src, dst): """Convert keys in torchvision pretrained MobileNetV2 models to mmcls style.""" # load pytorch model blobs = torch.load(src, map_location='cpu') # convert to pytorch style state_dict = OrderedDict() converted_names = set() for key, weight in blobs.items(): if 'features.0' in key: convert_conv1(key, weight, state_dict, converted_names) elif 'classifier' in key: convert_head(key, weight, state_dict, converted_names) elif 'features.18' in key: convert_conv5(key, weight, state_dict, converted_names) else: convert_block(key, weight, state_dict, converted_names) # check if all layers are converted for key in blobs: if key not in converted_names: print(f'not converted: {key}') # save checkpoint checkpoint = dict() checkpoint['state_dict'] = state_dict torch.save(checkpoint, dst) if __name__ == '__main__': main()
[ 2, 15069, 357, 66, 8, 4946, 44, 5805, 397, 13, 1439, 2489, 10395, 13, 198, 11748, 1822, 29572, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 28034, 628, 628, 628, 198, 4299, 10385, 7, 10677, 11, 29636, 2599, 198, 22...
2.532584
445
from keys.sol6_keys import * from converters.sol1_flags import * from keys.sol6_keys import V2MapBase from mapping_v2 import * import logging log = logging.getLogger(__name__)
[ 6738, 8251, 13, 34453, 21, 62, 13083, 1330, 1635, 198, 6738, 6718, 1010, 13, 34453, 16, 62, 33152, 1330, 1635, 198, 6738, 8251, 13, 34453, 21, 62, 13083, 1330, 569, 17, 13912, 14881, 198, 6738, 16855, 62, 85, 17, 1330, 1635, 198, 11...
3.051724
58
from aws_api_mock.Entity_Generator_Command_Interface import Entity_Generator_Command_Interface from aws_api_mock.aws_data_helpers import get_exadecimal_sample
[ 6738, 3253, 82, 62, 15042, 62, 76, 735, 13, 32398, 62, 8645, 1352, 62, 21575, 62, 39317, 1330, 20885, 62, 8645, 1352, 62, 21575, 62, 39317, 198, 6738, 3253, 82, 62, 15042, 62, 76, 735, 13, 8356, 62, 7890, 62, 16794, 364, 1330, 651...
3.057692
52
#!/usr/bin/env python3 import io import sys import cv2 import os import json import asyncio import aiohttp import numpy as np from PIL import Image from ai import Detector from json import JSONEncoder from datetime import datetime, date from kafka import KafkaConsumer #Override the default method if __name__ == "__main__": # Put configuration into the environment TODO worker = Worker(os.getenv("TOPIC", "CAMERA_1"), os.getenv("ENDPOINT_URL", "http://localhost:5000/api")) asyncio.run(worker.run())
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33245, 198, 11748, 25064, 198, 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 30351, 952, 198, 11748, 257, 952, 4023, 198, 11748, 299, 32152, 355, ...
2.928177
181
# jobs.py Class to work with submitted LogicApp jobs import os,json, sys, requests from datetime import datetime from slugify import slugify class Jobs(): """ system for managing running jobs Usage: from mljob.job import Jobs # in app init, put the class inside the app app.jobs = Jobs # set the configuration app.jobs.job_config = app.config # don't need all of the config, but this is easy # in views from app import app def retrieve_job(jobname): if (app.jobs.job_exists(jobname)): job = app.jobs(jobname) """ # this is set once for all jobs and used during app life cycle config = {'JOB_PATH' : 'jobs', 'JOB_CONTAINER_FILE_MOUNT': 'jobs', 'JOB_URL': "http://localhost:5000/localjob"} # job status codes is a simple dictionary mirroring a small subset of http status codes # these are status codes sent from the api that creates the job, or via the job itself. # some job status codes are the results of status codes from http trigger of the job launcher (auzre logic app in our case) # note that 'timeout' is not 'gateway timeout' job_status_codes = {200:"Completed", 201:"Created", 202:"Accepted", 404:"Not Found", 500:"Internal Server Error", 504:"Timeout"} jobs_status_descriptions = { 200:"Job completed successfully", 201:"Job was created and may or may not be running", 202:"Job was accepted and is being created", 404:"There is no job with that specification on this server (ID)", 500:"There was a problem with the job creation or a run-time error", 504:"Timeout. There has been no status updates from the job within the expected time, assumed error" } @classmethod def path_friendly_jobname(cls,jobname): """ job name must be useable to create file paths and other cloud resources, so remove unuesable or unicode characters""" #rules for conainters: The container name must contain no more than 63 characters and must match the regex '[a-z0-9]([-a-z0-9]*[a-z0-9])?' (e.g. 'my-name')." # this needs to be idempotent becuase we may call it on an already modified jobname to be safe # azure containers must have names matching regex '[a-z0-9]([-a-z0-9]*[a-z0-9])?' (e.g. 'my-name')." # this is more restrictive that file paths. # For slugify, the regex pattern is what to exclude, so it uses the negation operator ^ # do two passes - one for slugify's chaacter conversion, and one to make it cloud friendly filefriendly_jobname = slugify(jobname.lower(), lowercase=True) cloud_container_exclude_pattern=r'[^a-z0-9]([^-a-z0-9]*[^a-z0-9])?' cloudfriendly_jobname = slugify(filefriendly_jobname, separator='-', regex_pattern=cloud_container_exclude_pattern) return(cloudfriendly_jobname) # TODO rename standard job folder @classmethod def retrieve_job_folder(cls,jobname): """ return the job folder based on current config, or empty string if no job folder exists""" jobname = Jobs.path_friendly_jobname(jobname) job_folder = os.path.join(cls.config.get("JOB_PATH"), jobname) if os.path.isdir(job_folder): return(job_folder) else: return('') @classmethod def job_exists(cls,jobname): """look up job based on job config""" jobname = cls.path_friendly_jobname(jobname) jf = cls.retrieve_job_folder(jobname) if jf: return(True) else: return(False) @classmethod def list_all_jobs(cls): """ given the path where jobs live, pull the list of all jobs """ job_path = cls.config['JOB_PATH'] with os.scandir(job_path) as jobdir: joblist = [d.name for d in jobdir if d.is_dir() and not d.name.startswith('.')] return(joblist) @classmethod def valid_results_filename(possible_file_name): """convert user input into value OS filename, strip out most punctuation and spacing, preserve case. The goal is to reduce risk of security problems from user input but allow what should be a valid results file name. This does not limit to what we may know as valid file names""" file_regex_pattern = r'[^-A-Za-z0-9_\.]+' slugified_file_name = slugify(possible_file_name, lowercase=False,regex_pattern=file_regex_pattern) return(slugified_file_name) #============== def job_status(self): """ use methods above to construct and return the state of the job""" jf = self.retrieve_job_folder() if not jf: return('4o4') def job_json(self): """build the data payload for the http trigger """ # TODO remove the hard-coded "jobs" folder here and set as config value # the job folder ('jobs') must be in sync in the app and the job-runner container setting # TODO remove all of this cloud config from this app! # most does not change from job-to-job, so set it when creating the logic app # these values are set or can be discovered using commands in the CLI script. so perhaps they need to go # direct into the ARM template (as params to the template), since they don't affect the app. job_path=f"{Jobs.config.get('JOB_CONTAINER_FILE_MOUNT')}/jobs/" input_file_name = self.input_file_name() results_file_name = self.results_file_name() # "imageName": f"{acrname}.azurecr.io/{Jobs.config.get('JOB_IMAGE_NAME']}:{app_config['JOB_IMAGE_TAG')}", docker_image_config = { "imageName": f"{Jobs.config.get('CONTAINER_REGISTRY_URL')}/{Jobs.config.get('JOB_IMAGE_NAME')}:{Jobs.config.get('JOB_IMAGE_TAG')}", "registry": { "server": Jobs.config.get('CONTAINER_REGISTRY_URL'), "username": Jobs.config.get('CONTAINER_REGISTRY_USER'), "password": Jobs.config.get("CONTAINER_REGISTRY_PW") } } volume_config = { "name": "geneplexusfiles", "mountPath": Jobs.config.get('JOB_CONTAINER_FILE_MOUNT'), "readOnly": False, "shareName": Jobs.config.get("STORAGE_SHARE_NAME"), "shareReadOnly": False, "storageAccountName": Jobs.config.get("STORAGE_ACCOUNT_NAME"), "storageAccountKey": Jobs.config.get("STORAGE_ACCOUNT_KEY") } # TODO see above, set most of this when creating the logic app # TODO remove the hard-coded data folder, and set this as an env var envvars = { "FLASK_ENV": "development", "FLASK_DEBUG": True, "GP_NET_TYPE": self.config.get('net_type'), "GP_FEATURES": self.config.get('features'), "GP_GSC": self.config.get('GSC'), "JOBNAME": self.config.get('jobname'), "JOBID": self.config.get('jobid'), "DATA_PATH": f"{Jobs.config.get('JOB_CONTAINER_FILE_MOUNT')}/data_backend2/", "GENE_FILE": f"{job_path}/{self.config.get('jobname')}/{input_file_name}", "OUTPUT_FILE": f"{job_path}/{self.config.get('jobname')}/{results_file_name}", "JOB_PATH": job_path } # TODO get CPU and ram from job_config # TODO alter jog config, increase ram depending on network size # job_data = { "aciName": "geneplexus-backend", "location": "centralus", "memoryInGB": 16, "cpu": 2, "volumeMount": volume_config, "image": docker_image_config, "envvars": envvars } return json.dumps(job_data) def launch_job(self,genes): """prep job inputs for use with file paths, create JSON data, save the input file (and json) to the share folder, then send json to the logic app url that launches the job container This assumes the application has the following configured app_config["STORAGE_ACCOUNT_KEY"] app_config["CONTAINER_REGISTRY_PW"] app_config["JOB_URL"] """ #TODO error checking : are all needed values in app_config? # prep all the filenames and paths jobname = Jobs.path_friendly_jobname(self.config.get('jobname')) # jobid = self.config.get('jobid') input_file_name = Jobs.create_input_file_name(jobname) json_file_name = Jobs.create_json_file_name(jobname) local_job_folder = f"{Jobs.config['JOB_PATH']}/{jobname}" input_file_path = f"{local_job_folder}/{input_file_name}" json_file_path = f"{local_job_folder}/{json_file_name}" #TODO use these tidied-up file names in the job_config job_data = self.job_json() # TODO wrap in try/catch # create new folder and write files into it if not os.path.isdir(local_job_folder): os.mkdir(local_job_folder) # write gene file with open(input_file_path, 'w') as f: f.writelines("%s\n" % gene for gene in genes) # only write the env vars from job data to storage # otherwise we are writing cloud-specific info (keys, etc) to storage that we don't need for job status # use this convoluted method json->dict->select one key->new dict->json job_vars = json.dumps({'envvars':json.loads(job_data)['envvars']}) # write job params ( data sent to azure ) with open(json_file_path, 'w') as f: f.write(job_vars) jsonHeaders = {'Content-type': 'application/json', 'Accept': 'text/plain'} # launch! response = requests.post(Jobs.config['JOB_URL'], data=job_data, headers=jsonHeaders) print(f"Job data sent for {jobname}. Status code: {response.status_code}", file=sys.stderr) return response def results_file_dir(self,data_file_name = None): """return to flask the absolute path to a data file to be returned for download, or nothing if neigher the job path exists, or the file does not exist in the job path (this is different than retrieve_job_folder) parameters jobname = id of job app_config config dictionary used to find the job path data_file_name output file to look for returns jf directory where files live data_file_name, same data file name (santized) """ # sanitize the input # use the default name if none given if not ( data_file_name) : data_file_name = Jobs.create_results_file_name(self.jobname) else: data_file_name = Jobs.valid_results_filename(data_file_name) # get the path this job jf = Jobs.retrieve_job_folder(self.jobname) # get path if job exists, or return '' if jf: data_file_path = os.path.join(jf, data_file_name) if os.path.exists(data_file_path): return(jf) return(None) def results_file_path(self,results_file = None): """construct the path to the job (for local/mounted file storage)""" # use the default name if none given if not ( results_file) : results_file = self.results_file_name() jf = self.retrieve_job_folder() if jf: return(os.path.join(jf, results_file)) else: return(None) def check_results(self, jobname): """" return T/F if there is a results file """ fp = Jobs.results_file_path(jobname) # if results file exists and it's non-zero size, then true return( os.path.exists(fp) and os.path.getsize(fp) > 0) def retrieve_job_params(self): """construct the path to the job (for local/mounted file storage)""" job_folder = self.retrieve_job_folder() if job_folder: params_file_path = os.path.join(job_folder, self.json_file_name()) else: return('') if os.path.exists(params_file_path): with open(params_file_path) as f: content = f.read() params_vars = json.loads(content) return(params_vars['envvars']) else: return('') def retrieve_results_data(self,data_file_name): """get any one of several of the results data files (TSV, JSON, etc) This does not check if the file name is one of the 'approved' file names to give flexibility to the job runner during development""" data_file_name = Jobs.valid_results_filename(data_file_name) # TODO define standard filenames for various results types and vet data file name as security precaution jf = self.retrieve_job_folder() # get path if job exists, or return '' # if the path, and the file both exists, read it and return the contents if jf: data_file_path = os.path.join(jf, data_file_name) if os.path.exists(data_file_path): try: with open(data_file_path) as f: content = f.read() except OSError: print(f"OS error trying to read {data_file_path}",file=sys.stderr) except Exception as err: print(f"Unexpected error opening {data_file_path} is",repr(err),file=sys.stderr) else: return(content) # otherwise return none return(None) def job_info(self): """ return a dict of job info for jobs table (no results) """ # create default empty dict for consistent rows job_info = { 'jobname': self.jobname, 'is_job' : False, 'submit_time' : None, 'has_results' : '', 'params' : {}, 'status' : 'NOT FOUND' } jf = self.retrieve_job_folder() if jf: job_info['is_job'] = True job_info['submit_time'] = datetime.fromtimestamp(os.path.getmtime(jf)).strftime("%Y-%m-%d %H:%M:%S") job_info['has_results'] = self.check_results() job_info['params']= self.retrieve_job_params() job_info['status']= self.retrieve_job_status() else: job_info['is_job'] = False job_info['status'] = 'NOT FOUND' return(job_info) # RUNNING LOCALLY: shoud still use a shell script, just like a remote job # And return control to the app rather than make it wait. # if Jobs.config['RUN_LOCAL']: # print("running job locally (may take a while") # html_output = run_and_render(genes, net_type=self.config.get('net_type'], features=self.config.get('features'), GSC=job_config['GSC'), jobname=jobname, output_path=local_job_folder) # # TODO find the method here that constructs a results file! # results_file = os.path.join(local_job_folder, 'results.html') # with open(results_file, 'w') as f: # f.write(html_output) # response = "200"
[ 2, 3946, 13, 9078, 220, 5016, 284, 670, 351, 8948, 30146, 4677, 3946, 198, 198, 11748, 28686, 11, 17752, 11, 25064, 11, 7007, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 31065, 1958, 1330, 31065, 1958, 198, 198, 4871, 19161, 3...
2.290115
6,687
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-11-04 20:19 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 16, 319, 2177, 12, 1157, 12, 3023, 1160, 25, 1129, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
#!/usr/bin/env python # coding: utf-8 # In[2]: #hide from nbdev_demo.core import * # # nbdev_demo # # > Just my little demo. # This file will become your README and also the index of your documentation. # ## Install # `pip install nbdev_demo` # ## How to use # Fill me in please! Don't forget code examples: # In[3]: say_hello("Sylvain") # In[ ]:
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 17, 5974, 628, 198, 2, 24717, 198, 6738, 299, 65, 7959, 62, 9536, 78, 13, 7295, 1330, 1635, 628, 198, 2, 1303, 299, 65, 79...
2.513699
146
"""Generates new queries on the JOB-light schema. For each JOB-light join template, repeat #queries per template: - sample a tuple from this inner join result via factorized_sampler - sample #filters, and columns to put these filters on - query literals: use this tuple's values - sample ops: {>=, <=, =} for numerical columns and = for categoricals. Uses either Spark or Postgres for actual execution to obtain true cardinalities. Both setups require data already be loaded. For Postgres, the server needs to be live. Typical usage: To generate queries: python make_job_queries.py --output_csv <csv> --num_queries <n> To print selectivities of already generated queries: python make_job_queries.py \ --print_sel --output_csv queries/job-light.csv --num_queries 70 """ import os import subprocess import textwrap import time from absl import app from absl import flags from absl import logging from mako import template import numpy as np import pandas as pd import psycopg2 as pg #from pyspark.sql import SparkSession import common import datasets from factorized_sampler import FactorizedSamplerIterDataset import join_utils import utils FLAGS = flags.FLAGS flags.DEFINE_string( 'job_light_csv', '/home_nfs/peizhi/zizhong/dataset/imdb/job-light-ranges_mm_wisdm.csv', 'Path to the original JOB-light queries; used for loading templates.') flags.DEFINE_integer( 'num_queries', 10000, 'Number of queries to generate, distributed across templates.') flags.DEFINE_integer('min_filters', 3, 'Minimum # of filters (inclusive) a query can have.') flags.DEFINE_integer('max_filters', 8, 'Maximum # of filters (inclusive) a query can have.') flags.DEFINE_string( 'db', 'dbname=imdb host=127.0.0.1', 'Configs for connecting to Postgres server (must be launched and running).') flags.DEFINE_string('output_csv', './job-light-range_mm_wisdm_train.csv', 'Path to CSV file to output into.') flags.DEFINE_string('output_sql', './job-light-range_mm_wisdm_train.sql', 'Path to sql file to output into.') # Spark configs. #flags.DEFINE_string('spark_master', 'local[*]', 'spark.master.') # Print selectivities. flags.DEFINE_bool( 'print_sel', False, 'If specified, load generated cardinalities from ' '--output_csv and print selectivities.') JOB_LIGHT_OUTER_CARDINALITY = 2128877229383 def MakeQueries(cursor, num_queries, tables_in_templates, table_names, join_keys, rng): """Sample a tuple from actual join result then place filters.""" #spark.catalog.clearCache() # TODO: this assumes single equiv class. join_items = list(join_keys.items()) lhs = join_items[0][1] join_clauses_list = [] for rhs in join_items[1:]: rhs = rhs[1] join_clauses_list.append('{} = {}'.format(lhs, rhs)) lhs = rhs join_clauses = '\n AND '.join(join_clauses_list) # Take only the content columns. content_cols = [] categoricals = [] numericals = [] for table_name in table_names: categorical_cols = datasets.JoinOrderBenchmark.CATEGORICAL_COLUMNS[ table_name] for c in categorical_cols: disambiguated_name = common.JoinTableAndColumnNames(table_name, c, sep='.') content_cols.append(disambiguated_name) categoricals.append(disambiguated_name) range_cols = datasets.JoinOrderBenchmark.RANGE_COLUMNS[table_name] for c in range_cols: disambiguated_name = common.JoinTableAndColumnNames(table_name, c, sep='.') content_cols.append(disambiguated_name) numericals.append(disambiguated_name) # Build a concat table representing the join result schema. join_keys_list = [join_keys[n] for n in table_names] join_spec = join_utils.get_join_spec({ "join_tables": table_names, "join_keys": dict( zip(table_names, [[k.split(".")[1]] for k in join_keys_list])), "join_root": "title", "join_how": "inner", }) ds = FactorizedSamplerIterDataset(tables_in_templates, join_spec, sample_batch_size=num_queries, disambiguate_column_names=False, add_full_join_indicators=False, add_full_join_fanouts=False) concat_table = common.ConcatTables(tables_in_templates, join_keys_list, sample_from_join_dataset=ds) template_for_execution = template.Template( textwrap.dedent(""" SELECT COUNT(*) FROM ${', '.join(table_names)} WHERE ${join_clauses} AND ${filter_clauses}; """).strip()) true_inner_join_card = ds.sampler.join_card true_full_join_card = JOB_LIGHT_OUTER_CARDINALITY print('True inner join card', true_inner_join_card, 'true full', true_full_join_card) ncols = len(content_cols) queries = [] filter_strings = [] sql_queries = [] # To get true cardinalities. while len(queries) < num_queries: sampled_df = ds.sampler.run()[content_cols] for r in sampled_df.iterrows(): tup = r[1] num_filters = rng.randint(FLAGS.min_filters, max(ncols // 2, FLAGS.max_filters)) # Positions where the values are non-null. non_null_indices = np.argwhere(~pd.isnull(tup).values).reshape(-1,) if len(non_null_indices) < num_filters: continue print('{} filters out of {} content cols'.format( num_filters, ncols)) # Place {'<=', '>=', '='} on numericals and '=' on categoricals. idxs = rng.choice(non_null_indices, replace=False, size=num_filters) vals = tup[idxs].values cols = np.take(content_cols, idxs) ops = rng.choice(['<=', '>=', '='], size=num_filters) sensible_to_do_range = [c in numericals for c in cols] ops = np.where(sensible_to_do_range, ops, '=') print('cols', cols, 'ops', ops, 'vals', vals) queries.append((cols, ops, vals)) filter_strings.append(','.join( [','.join((c, o, str(v))) for c, o, v in zip(cols, ops, vals)])) # Quote string literals & leave other literals alone. filter_clauses = '\n AND '.join([ '{} {} {}'.format(col, op, val) if concat_table[col].data.dtype in [np.int64, np.float64] else '{} {} \'{}\''.format(col, op, val) for col, op, val in zip(cols, ops, vals) ]) sql = template_for_execution.render(table_names=table_names, join_clauses=join_clauses, filter_clauses=filter_clauses) sql_queries.append(sql) if len(queries) >= num_queries: break true_cards = [] for i, sql_query in enumerate(sql_queries): #DropBufferCache() #spark.catalog.clearCache() print(' Query', i, 'out of', len(sql_queries), '[{}]'.format(filter_strings[i]), end='') t1 = time.time() #true_card = ExecuteSql(cursor, sql_query)[0][0] #cursor.execute(sql_query) #result = cursor.fetchall() #true_card = result[0][0] true_card = 0 dur = time.time() - t1 true_cards.append(true_card) print( '...done: {} (inner join sel {}; full sel {}; inner join {}); dur {:.1f}s' .format(true_card, true_card / true_inner_join_card, true_card / true_full_join_card, true_inner_join_card, dur)) # if i > 0 and i % 1 == 0: # spark = StartSpark(spark) df = pd.DataFrame({ 'tables': [','.join(table_names)] * len(true_cards), 'join_conds': [ ','.join(map(lambda s: s.replace(' ', ''), join_clauses_list)) ] * len(true_cards), 'filters': filter_strings, 'true_cards': true_cards, }) df.to_csv(FLAGS.output_csv, sep='#', mode='a', index=False, header=False) print('Template done.') return queries, true_cards, sql_queries ''' def StartSpark(spark=None): spark = SparkSession.builder.appName('make_job_queries')\ .config('spark.master', FLAGS.spark_master)\ .config('spark.driver.memory', '200g')\ .config('spark.eventLog.enabled', 'true')\ .config('spark.sql.warehouse.dir', '/home/ubuntu/spark-sql-warehouse')\ .config('spark.sql.cbo.enabled', 'true')\ .config('spark.memory.fraction', '0.9')\ .config('spark.driver.extraJavaOptions', '-XX:+UseG1GC')\ .config('spark.memory.offHeap.enabled', 'true')\ .config('spark.memory.offHeap.size', '100g')\ .enableHiveSupport()\ .getOrCreate() print('Launched spark:', spark.sparkContext) executors = str( spark.sparkContext._jsc.sc().getExecutorMemoryStatus().keys().mkString( '\n ')).strip() print('{} executors:\n'.format(executors.count('\n') + 1), executors) return spark def DropBufferCache(): worker_addresses = os.path.expanduser('~/hosts-workers') if os.path.exists(worker_addresses): # If distributed, drop each worker. print( str( subprocess.check_output([ 'parallel-ssh', '-h', worker_addresses, '--inline-stdout', 'sync && sudo bash -c \'echo 3 > /proc/sys/vm/drop_caches\' && free -h' ]))) else: # Drop this machine only. subprocess.check_output(['sync']) subprocess.check_output( ['sudo', 'sh', '-c', 'echo 3 > /proc/sys/vm/drop_caches']) subprocess.check_output(['free', '-h']) ''' if __name__ == '__main__': app.run(main)
[ 37811, 8645, 689, 649, 20743, 319, 262, 449, 9864, 12, 2971, 32815, 13, 198, 198, 1890, 1123, 449, 9864, 12, 2971, 4654, 11055, 11, 9585, 1303, 421, 10640, 583, 11055, 25, 198, 220, 220, 532, 6291, 257, 46545, 422, 428, 8434, 4654, ...
2.077813
5,012
""" Figure 2: Quick look into mostly valency """ import numpy as np from .figureCommon import subplotLabel, setFontSize, getSetup, popCompare from .figureS2 import vieqPlot ligConc = np.array([1e-8]) KxStarP = 1e-10 affinity = 1e8 # 7
[ 37811, 198, 11337, 362, 25, 12029, 804, 656, 4632, 1188, 1387, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 764, 26875, 17227, 1330, 850, 29487, 33986, 11, 900, 38160, 11, 651, 40786, 11, 1461, 41488, 198, 6738, 764, 26875...
2.833333
84
from aws_cdk import( core, aws_codepipeline as codepipeline, aws_codepipeline_actions as cpactions, aws_codecommit as codecommit, aws_s3 as s3, aws_iam as iam, aws_codebuild as codebuild, pipelines ) import json
[ 6738, 3253, 82, 62, 10210, 74, 1330, 7, 198, 220, 4755, 11, 198, 220, 3253, 82, 62, 19815, 538, 541, 4470, 355, 14873, 538, 541, 4470, 11, 198, 220, 3253, 82, 62, 19815, 538, 541, 4470, 62, 4658, 355, 31396, 4658, 11, 198, 220, ...
2.222222
108
# This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # 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 # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, see # <http://www.gnu.org/licenses/>. """ unit tests for creating/modifying JAR files with python-javatools. author: Konstantin Shemyak <konstantin@shemyak.com> license: LGPL v.3 """ from unittest import TestCase from shutil import copyfile, copytree, rmtree import os from tempfile import NamedTemporaryFile, mkdtemp from . import get_data_fn from javatools.jarutil import cli_create_jar, cli_sign_jar, \ cli_verify_jar_signature, verify, VerificationError, \ JarSignatureMissingError, SignatureBlockFileVerificationError, \ JarChecksumError, ManifestChecksumError # Tests that signature-related files are skipped when the signature is # verified. The JAR file is a normal signed JAR, plus junk files with # "signature-related" names. # The test does not guarantee that no other files are skipped. # # The end.
[ 2, 770, 5888, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 340, 739, 262, 2846, 286, 262, 22961, 12892, 263, 3611, 5094, 13789, 355, 198, 2, 3199, 416, 262, 3232, 10442, 5693, 26, 2035, 2196, 513, ...
3.407407
432
# Copyright 2019-2020 by Peter Cock, The James Hutton Institute. # All rights reserved. # This file is part of the THAPBI Phytophthora ITS1 Classifier Tool (PICT), # and is released under the "MIT License Agreement". Please see the LICENSE # file that should have been included as part of this package. """Code for sample submission to ENA/SRA. This implements the ``thapbi_pict ena-submit ...`` command. """ import os import shutil import sys import tempfile from .prepare import find_fastq_pairs from .utils import load_metadata TABLE_HEADER = ( "sample_alias\tinstrument_model\tlibrary_name\tlibrary_source\t" "library_selection\tlibrary_strategy\tdesign_description\t" "library_construction_protocol\tinsert_size\t" "forward_file_name\tforward_file_md5\t" "reverse_file_name\treverse_file_md5\n" ) TABLE_TEMPLATE = "%s\t%s\t%s\tMETAGENOMIC\tPCR\tAMPLICON\t%s\t%s\t%i\t%s\t%s\t%s\t%s\n" assert TABLE_HEADER.count("\t") == TABLE_TEMPLATE.count("\t") def load_md5(file_list): """Return a dict mapping given filenames to MD5 digests.""" assert file_list, "Nothing to do here." answer = {} base_names = {os.path.split(_)[1] for _ in file_list} if len(base_names) < len(file_list): # This isn't a problem locally, but will be on upload to ENA sys.exit("ERROR: Duplicate FASTQ names once folder dropped") checksum_files = {_ + ".md5" for _ in file_list} checksum_files.update( os.path.join(os.path.split(_)[0], "MD5SUM.txt") for _ in file_list ) for cache in checksum_files: if os.path.isfile(cache): with open(cache) as handle: for line in handle: md5, filename = line.strip().split() # If MD5 file contains relative path, interpret it assert "/" not in filename, filename filename = os.path.join(os.path.split(cache)[0], filename) if filename in file_list: answer[filename] = md5 if not answer: sys.exit("ERROR: Need to provide MD5SUM.txt or example.fastq.gz.md5 files") for f in file_list: if f not in answer: sys.exit(f"ERROR: Need MD5 for {f} and not in {f}.md5 or MD5SUM.txt") return answer def write_table( handle, pairs, meta, library_name, instrument_model, design_description, library_construction_protocol, insert_size, ): """Write read file table for ENA upload.""" file_list = [_[1] for _ in pairs] + [_[2] for _ in pairs] md5_dict = load_md5(file_list) lines = [] for stem, raw_R1, raw_R2 in pairs: sample = os.path.split(stem)[1] folder = os.path.split(os.path.split(raw_R1)[0])[1] lines.append( TABLE_TEMPLATE % ( meta[sample] if meta else sample, instrument_model, folder if library_name == "-" else library_name, design_description, library_construction_protocol, insert_size, os.path.split(raw_R1)[1], md5_dict[raw_R1], os.path.split(raw_R2)[1], md5_dict[raw_R2], ) ) handle.write(TABLE_HEADER) for line in sorted(lines): handle.write(line) def main( fastq, output, metadata_file=None, metadata_encoding=None, metadata_cols=None, metadata_fieldnames=None, metadata_index=None, ignore_prefixes=None, library_name="-", instrument_model="Illumina MiSeq", design_description="", library_construction_protocol="", insert_size=250, tmp_dir=None, debug=False, ): """Implement the ``thapbi_pict ena-submit`` command.""" fastq_file_pairs = find_fastq_pairs(fastq, debug=debug) if not fastq_file_pairs: sys.exit("ERROR: No FASTQ pairs found") if debug: sys.stderr.write("Preparing %i FASTQ pairs\n" % len(fastq_file_pairs)) if tmp_dir: # Up to the user to remove the files tmp_obj = None shared_tmp = tmp_dir else: tmp_obj = tempfile.TemporaryDirectory() shared_tmp = tmp_obj.name if debug: sys.stderr.write("DEBUG: Temp folder %s\n" % shared_tmp) tmp_output = None if output == "-": table_handle = sys.stdout elif os.path.isdir(output): sys.exit(f"ERROR: Output filename {output} is a directory") else: tmp_output = os.path.join(shared_tmp, "experiment_paired_fastq_spreadsheet.tsv") table_handle = open(tmp_output, "w") samples = sorted( os.path.basename(stem) for stem, _raw_R1, _raw_R2 in fastq_file_pairs ) (metadata, _, meta_names, group_col,) = load_metadata( metadata_file, metadata_encoding, metadata_cols, None, # i.e. metadata_groups=None, metadata_fieldnames, metadata_index, ignore_prefixes=ignore_prefixes, debug=debug, ) if metadata_file and len(meta_names) != 1: sys.exit( "Need one and only one column for the -c argument, " "giving the ENA sample accession or refname." ) missing_meta = set(samples).difference(metadata) if metadata_file and missing_meta: sys.exit( "ERROR: Loaded %i samples, %i missing metadata, e.g. %s\n" % (len(samples), len(missing_meta), sorted(missing_meta)[0]) ) if metadata_file: # Just one column, don't need values as list: meta = {k: v[0] for k, v in metadata.items()} else: meta = None write_table( table_handle, fastq_file_pairs, meta, library_name, instrument_model, design_description, library_construction_protocol, insert_size, ) if output != "-": table_handle.close() shutil.move(tmp_output, output)
[ 2, 15069, 13130, 12, 42334, 416, 5613, 23769, 11, 383, 3700, 367, 21115, 5136, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 770, 2393, 318, 636, 286, 262, 2320, 2969, 3483, 1380, 20760, 2522, 34261, 42437, 16, 5016, 7483, 16984, 357, ...
2.198893
2,710
# PolynomialFeatures(degree=2, interaction_only=False, include_bias=True) import sys X = [[1, 2], [3, 4], [5, 6]] my_poly = PolynomialTools(order=2) #, interactions_only=True, include_bias=False) my_poly.fit(X) # print(len(my_poly.__powers_lists)) # print(my_poly.__powers_lists) print(my_poly.get_features_names(['y0', 'y1'])) print() sys.exit() my_poly.transform(X) for row in my_poly.X_poly: print(row) print() my_poly1 = PolynomialTools(order=2) #, interactions_only=True, include_bias=False) my_poly1.fit_transform(X) for row in my_poly1.X_poly: print(row)
[ 2, 12280, 26601, 498, 23595, 7, 16863, 28, 17, 11, 10375, 62, 8807, 28, 25101, 11, 2291, 62, 65, 4448, 28, 17821, 8, 198, 11748, 25064, 628, 198, 198, 55, 796, 16410, 16, 11, 362, 4357, 685, 18, 11, 604, 4357, 685, 20, 11, 718, ...
2.372951
244
import pathlib import pickle import numpy as np import scipy.stats from horaha import PROJECT_ROOT
[ 11748, 3108, 8019, 198, 11748, 2298, 293, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 34242, 198, 198, 6738, 3076, 12236, 1330, 21965, 23680, 62, 13252, 2394, 628, 628, 198 ]
3
35
#!/usr/bin/python # -*- coding: utf-8 -*- #用于进行http请求,以及MD5加密,生成签名的工具类 import http.client import urllib import json import hashlib import time import requests from urllib.parse import urljoin from urllib.parse import urlencode
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 18796, 101, 12859, 236, 32573, 249, 26193, 234, 4023, 46237, 115, 162, 109, 224, 171, 120, 234, 20015, 98, 20998, 232, 12...
1.965812
117
""" TODO """ import csv import StringIO from flask import current_app from psqlgraph import Node from sheepdog.errors import UserError from sheepdog.utils.transforms.bcr_xml_to_json import ( BcrXmlToJsonParser, BcrClinicalXmlToJsonParser, ) def parse_bool_from_string(value): """ Return a boolean given a string value *iff* :param:`value` is a valid string representation of a boolean, otherwise return the original :param:`value` to be handled by later type checking. ..note: ``bool('maybe') is True``, this is undesirable, but ``parse_bool_from_string('maybe') == 'maybe'`` """ mapping = {"true": True, "false": False} return mapping.get(strip(value).lower(), value) def parse_list_from_string(value): """ Handle array fields by converting them to a list. Example: 1,2,3 -> ['1','2','3'] """ return [x.strip() for x in value.split(",")] def set_row_type(row): """Get the class for a row dict, setting 'type'. Coerce '' -> None.""" row["type"] = row.get("type", None) if not row["type"]: row.pop("type") return None return Node.get_subclass(row["type"]) def strip(text): """ Strip if the text is a basestring """ if not isinstance(text, basestring): return text else: return text.strip() def strip_whitespace_from_str_dict(dictionary): """ Return new dict with leading/trailing whitespace removed from keys and values. """ return {strip(key): strip(value) for key, value in dictionary.iteritems()} def get_links_from_row(row): """Return a dict of key/value pairs that are links.""" return {k: v for k, v in row.iteritems() if "." in k} def get_props_from_row(row): """Return a dict of key/value pairs that are props, not links.""" return {k: v for k, v in row.iteritems() if "." not in k and v != ""} class DelimitedConverter(object): """ TODO """ def set_reader(self, _): """ Implement this in a subclass to self.reader to be an iterable of rows given a doc. """ msg = "set_reader generator not implemented for {}".format(type(self)) raise NotImplementedError(msg) def convert(self, doc): """ Add an entire document to the converter. Return docs and errors gathered so far. """ try: self.set_reader(doc) map(self.add_row, self.reader) except Exception as e: current_app.logger.exception(e) raise UserError("Unable to parse document") return self.docs, self.errors @staticmethod def get_unknown_cls_dict(row): """ TODO: What? Either none or invalid type, don't know what properties to expect, property types, etc, so add a doc with non-link properties (i.e. to allow identification the error report later) and short circuit. """ return get_props_from_row(row) def add_row(self, row): """ Add a canonical JSON entity for given a :param:`row`. Args: row (dict): column, value for a given row in delimited file Return: None """ doc, links = {}, {} row = strip_whitespace_from_str_dict(row) # Parse type cls = set_row_type(row) if cls is None: return self.docs.append(get_props_from_row(row)) # Add properties props_dict = get_props_from_row(row) for key, value in props_dict.iteritems(): if value == "null": doc[key] = None else: converted = self.convert_type(cls, key, value) if converted is not None: doc[key] = converted # Add links links_dict = get_links_from_row(row) for key, value in links_dict.iteritems(): self.add_link_value(links, cls, key, value) doc.update({k: v.values() for k, v in links.iteritems()}) self.docs.append(doc) def add_link_value(self, links, cls, key, value): """ TODO """ converted_value = self.convert_type(cls, key, value) if converted_value is None: return if value == "null": converted_value = None parsed = key.split(".") link = parsed[0] if not link: error = "Invalid link name: {}".format(key) return self.record_error(error, columns=[key]) prop = ".".join(parsed[1:]) if not prop: error = "Invalid link property name: {}".format(key) return self.record_error(error, columns=[key]) # Add to doc if "#" in prop: items = prop.split("#") if len(items) > 2: error = "# is not allowed in link identitifer" return self.record_error(error, columns=[key]) prop = items[0] link_id = items[1] else: link_id = 1 if link in links: if link_id in links[link]: if isinstance(links[link][link_id], dict): links[link][link_id][prop] = converted_value else: # this block should never be reached error = "name collision: name {} specified twice" return self.record_error(error.format(link), columns=[key, link]) else: links[link][link_id] = {prop: converted_value} else: links[link] = {link_id: {prop: converted_value}} @staticmethod def convert_type(to_cls, key, value): """ Cast value based on key. TODO """ if value is None: return None key, value = strip(key), strip(value) types = to_cls.__pg_properties__.get(key, (str,)) types = types or (str,) value_type = types[0] try: if value_type == bool: return parse_bool_from_string(value) elif value_type == list: return parse_list_from_string(value) elif strip(value) == "": return None else: return value_type(value) except Exception as exception: # pylint: disable=broad-except current_app.logger.exception(exception) return value @property def is_valid(self): """Indicate that the conversion is valid if there are no errors.""" return not self.errors def record_error(self, message, columns=None, **kwargs): """ Record an error message. Args: message (str): error message to record keys (list): which keys in the JSON were invalid Return: None """ if columns is None: columns = [] self.errors.append( dict(message=message, columns=columns, line=self.reader.line_num, **kwargs) )
[ 37811, 198, 51, 3727, 46, 198, 37811, 198, 198, 11748, 269, 21370, 198, 11748, 10903, 9399, 198, 198, 6738, 42903, 1330, 1459, 62, 1324, 198, 6738, 279, 25410, 34960, 1330, 19081, 198, 198, 6738, 15900, 9703, 13, 48277, 1330, 11787, 123...
2.19491
3,222
import sys import os import signal import requests import json import queue import time import threading import ntplib from threading import Thread from gethongbao import verControl, HongBao, QiangHongBao, get_cookie, update_cookie from basemodule.logger import logger from douyu_login import utils as login_utils from basemodule.config import Config, BASE_DIR bEXIT = False if __name__ == '__main__': signal.signal(signal.SIGINT, quit) signal.signal(signal.SIGTERM, quit) verControl() logger.level("HONGBAO", no=50, color="<red>", icon="🧧") hongbao_logfile = os.environ.get('HONGBAO_LOGFILE') or 'hongbao.log' logger.log("HONGBAO", '抢到礼物立即自动赠送[{}] (火箭、飞机除外)', '开启' if Config.AUTO_SEND else '关闭') logger.log("HONGBAO", '红包的记录文件: {}', os.path.join(BASE_DIR, hongbao_logfile)) logger.log("HONGBAO", '格式: unix时间 房间名 房间号 礼物名') logger.add(os.path.join(BASE_DIR, hongbao_logfile), format="<g>{time}</> - <lvl>{message}</>", level="HONGBAO", enqueue=True, rotation="50 MB", encoding='utf-8') cookie_douyu = get_cookie() acf_uid , acf_nickname = login_utils.get_uidAndname(cookie_douyu) logger.success(f'账号: {acf_nickname}({acf_uid})') os.system(f"title 账号: {acf_nickname}({acf_uid}) - Powered by obrua.com") hongbao_queue = queue.Queue() stock_hongbao = [] got_hongbao = set() qiang_service = QiangHongBao(_queue=hongbao_queue, cookie_douyu=cookie_douyu, threadNum=6) hongbao_service = HongBao(_queue=hongbao_queue, cookie_douyu=cookie_douyu, stock_hongbao=stock_hongbao, got_hongbao=got_hongbao, qiang=qiang_service) while True: logger.info('服务健康检查...') nowThreadsName = [] # 用来保存当前线程名称 for i in threading.enumerate(): nowThreadsName.append(i.getName()) # 保存当前线程名称 logger.info('检查内容: {} [{} {}] [{} {}]', nowThreadsName, hongbao_service, hongbao_service.get_done() if hongbao_service else 'none', qiang_service, qiang_service.get_done() if qiang_service else 'none') isxuqi = False if hongbao_service and hongbao_service.get_overcookie(): logger.warning('cookie过期, 续期cookie并重启服务') if hongbao_service: hongbao_service.stop() if qiang_service: qiang_service.stop() # 重新获取cookie cookie_douyu = update_cookie(cookie_douyu) if not cookie_douyu: logger.error('cookie续期失败, 请重启重新扫码登录') break time.sleep(5) acf_uid , acf_nickname = login_utils.get_uidAndname(cookie_douyu) logger.success(f'账号: {acf_nickname}({acf_uid})') isxuqi = True if not isxuqi and 'HongBao-do' not in nowThreadsName: logger.error('红包监控线程丢失') if hongbao_service: hongbao_service.stop() logger.error('停止服务 准备重启') time.sleep(10) if not isxuqi and 'HongBao-qiang' not in nowThreadsName: logger.error('抢红包线程丢失') if qiang_service: qiang_service.stop() logger.error('停止服务 准备重启') time.sleep(10) if qiang_service and qiang_service.get_done(): # 抢服务中断 logger.warning('抢服务中断 重启') qiang_service = None qiang_service = QiangHongBao(_queue=hongbao_queue, cookie_douyu=cookie_douyu, threadNum=6) elif not qiang_service: # 抢服务不存在 logger.warning('抢服务丢失 重启') qiang_service = QiangHongBao(_queue=hongbao_queue, cookie_douyu=cookie_douyu, threadNum=6) if hongbao_service and hongbao_service.get_done(): # 红包服务中断 logger.warning('红包服务中断 重启') hongbao_service = None hongbao_service = HongBao(_queue=hongbao_queue, cookie_douyu=cookie_douyu, stock_hongbao=stock_hongbao, got_hongbao=got_hongbao, qiang=qiang_service) elif not hongbao_service: # 红包服务中断 logger.warning('红包服务丢失 重启') hongbao_service = HongBao(_queue=hongbao_queue, cookie_douyu=cookie_douyu, stock_hongbao=stock_hongbao, got_hongbao=got_hongbao, qiang=qiang_service) if bEXIT: if hongbao_service: hongbao_service.stop() if qiang_service: qiang_service.stop() break for i in range(12*5): if bEXIT: break time.sleep(5)
[ 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 6737, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 16834, 198, 11748, 640, 198, 11748, 4704, 278, 198, 11748, 299, 83, 489, 571, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 651, 71...
1.70369
2,710
import cv2 import numpy as np import skimage.io from src.software_retina.retina import *
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1341, 9060, 13, 952, 198, 198, 6738, 12351, 13, 43776, 62, 1186, 1437, 13, 1186, 1437, 1330, 1635, 198 ]
2.903226
31
""" Iterating multiple lists at the same time """ l1 = [1,2,3] l2 = [6,7,8,10,20,30] for a,b in zip(l1, l2): if (a < b): print(a) else: print(b) print("____ LEARNING RANGE BUILT IN FUNCTION ____") """ Built in function Creates a sequence of numbers but does not save them in memory very useful for generating numbers""" print(list(range(0,10))) a = range(0,15,3) print(a) print(type(a)) print(list(a)) l = [1,2,3] for num in l: print(num) for num in range(1,4,2): print(num)
[ 37811, 198, 29993, 803, 3294, 8341, 379, 262, 976, 640, 198, 37811, 198, 75, 16, 796, 685, 16, 11, 17, 11, 18, 60, 198, 75, 17, 796, 685, 21, 11, 22, 11, 23, 11, 940, 11, 1238, 11, 1270, 60, 198, 1640, 257, 11, 65, 287, 1997...
2.243363
226
#made by atul narayan. this game is for 4 players. choice = input('How many players? (1,2 or 3):') if choice not in range (1,4): print("enter valid number of players") if choice in ('1'): player1 = str(input("Enter Your Name:")) if choice == '1': print('welcome', '' ,player1) import random number = random.randint(1,100) attempts = 0 guess = 0 while guess != number: try: guess = eval(str(input('Guess number between 1 to 100:'))) except NameError: print('enter only number') continue except SyntaxError: print('no special characters allowed') continue if guess not in range (1,101): print('enter only numbers between 1 to 100') continue attempts += 1 if guess == number: print ('Correct! You used', attempts, 'attempts!') break if guess < number: print ('Go higher!') if guess > number: print ('Go lower!') if choice in ('2'): player2=str(input('Enter First Player Name:')) print('welcome', '' ,player2) player3=str(input('Enter Second Player Name:')) print('welcome', '' ,player3) import random number = random.randint(1,100) attempts1 = 0 guess = 0 print(player2,'', 'will play first') while guess != number: try: guess = eval(str(input('Guess number between 1 to 100:'))) except NameError: print('enter only number') continue except SyntaxError: print('no special characters allowed') continue if guess not in range (1,101): print('enter only numbers between 1 to 100') continue attempts1 += 1 if guess < number: print ('Go higher!') if guess > number: print ('Go lower!') if guess == number: print ('Correct! You used', attempts1, 'attempts!') print('now','', player3,'', 'will play') import random number = random.randint(1,100) attempts2 = 0 guess = 0 while guess != number: try: guess = eval(str(input('Guess number between 1 to 100:'))) except NameError: print('enter only number') continue except SyntaxError: print('no special characters allowed') continue if guess not in range (1,101): print('enter only numbers between 1 to 100') continue attempts2 += 1 if guess == number: print ('Correct! You used', attempts2, 'attempts!') break if guess < number: print ('Go higher!') if guess > number: print ('Go lower!') print('now it is result time') if attempts1 < attempts2: print(player2, '', "has won and ", player3, "lost") elif attempts1 == attempts2 : print('It is a tie') else: print(player3, '', "has won and ", player,2, "lost") if choice in ('3'): player4=str(input('Enter First Player Name:')) print('welcome', '' ,player4) player5=str(input('Enter Second Player Name:')) print('welcome', '' ,player5) player6=str(input('Enter Third Player Name:')) print('welcome', '' ,player6) import random number = random.randint(1,100) attempts3 = 0 guess = 0 print(player4,'', 'will play first') while guess != number: try: guess = eval(str(input('Guess number between 1 to 100:'))) except NameError: print('enter only number') continue except SyntaxError: print('no special characters allowed') continue if guess not in range (1,101): print('enter only numbers between 1 to 100') continue attempts3 += 1 if guess < number: print ('Go higher!') if guess > number: print ('Go lower!') if guess == number: print ('Correct! You used', attempts3, 'attempts!') print('now','', player5,'', 'will play') import random number = random.randint(1,100) attempts4 = 0 guess = 0 while guess != number: try: guess = eval(str(input('Guess number between 1 to 100:'))) except NameError: print('enter only number') continue except SyntaxError: print('no special characters allowed') continue if guess not in range (1,101): print('enter only numbers between 1 to 100') continue attempts4 += 1 if guess == number: print ('Correct! You used', attempts4, 'attempts!') break if guess < number: print ('Go higher!') if guess > number: print ('Go lower!') print('now','', player6,'', 'will play') import random number = random.randint(1,100) attempts5 = 0 guess = 0 while guess != number: try: guess = eval(str(input('Guess number between 1 to 100:'))) except NameError: print('enter only number') continue except SyntaxError: print('no special characters allowed') continue if guess not in range (1,101): print('enter only numbers between 1 to 100') continue attempts5 += 1 if guess == number: print ('Correct! You used', attempts5, 'attempts!') break if guess < number: print ('Go higher!') if guess > number: print ('Go lower!') print('now it is result time') t = min(attempts3,attempts4,attempts5) if t == attempts3: print(player4, '', "has won and ", player5, " and ", player6, "lost" ) if t == attempts4: print(player5, '', "has won and ", player4, " and ", player6, "lost") if t == attempts5: print(player6, '', "has won and ", player4, " and ", player5, "lost") if attempts3 == attempts4: print("It is a tie between ", player4, " and ", player5) if attempts4 == attempts5: print("It is a tie between ", player5, " and ", player6) if attempts3 == attempts5: print("It is a tie between ", player4, " and ", player6) if attempts3 == attempts5 == attempts4: print("It is a tie between ", player4, " , ", player5 , " and ", player6 )
[ 2, 9727, 416, 379, 377, 30083, 22931, 13, 428, 983, 318, 329, 604, 1938, 13, 198, 25541, 796, 5128, 10786, 2437, 867, 1938, 30, 357, 16, 11, 17, 393, 513, 2599, 11537, 198, 361, 3572, 407, 287, 2837, 357, 16, 11, 19, 2599, 198, ...
1.743548
4,921
# Generated by Django 2.1.5 on 2019-03-16 09:29 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 20, 319, 13130, 12, 3070, 12, 1433, 7769, 25, 1959, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
"""Authors: Cody Baker and Ben Dichter.""" import spikeextractors as se from nwb_conversion_tools import NWBConverter, neuroscopedatainterface from .watsonlfpdatainterface import WatsonLFPInterface from .watsonbehaviordatainterface import WatsonBehaviorInterface from .watsonnorecording import WatsonNoRecording from .watsonsortinginterface import WatsonSortingInterface import numpy as np from scipy.io import loadmat import os from lxml import etree as et from datetime import datetime from dateutil.parser import parse as dateparse from ..neuroscope import get_clusters_single_shank
[ 37811, 30515, 669, 25, 27035, 14372, 290, 3932, 360, 488, 353, 526, 15931, 198, 11748, 20240, 2302, 974, 669, 355, 384, 198, 6738, 299, 39346, 62, 1102, 9641, 62, 31391, 1330, 21966, 2749, 261, 332, 353, 11, 7669, 1416, 19458, 265, 39...
3.51497
167
"""Abstention loss function classes and associated alpha updater classes for classification. loss function classes --------------------- * DACLoss(tf.keras.losses.Loss): Modified k-class cross-entropy per-sample loss with spinup, as defined by Sunil Thulasidasan. * NotWrongLoss(tf.keras.losses.Loss): Abstention loss function that highlights being "not wrong", rather than being right, while penalizing abstentions. alpha updater classes --------------------- * Colorado(AlphaUpdater): Discrete-time PID updater using moving sums of batch counts. * Minnesota(AlphaUpdater): Discrete-time PID updater using non-overlapping sets of batch counts. * Washington(AlphaUpdater): A PID-like updater based on the code of Sunil Thulasidasan. Notes ----- * All abstention loss functions have a penalty term to control the fraction of abstentions. The penalty term takes the form: penalty = -alpha * log(likelihood of not abstaining) * The updater determines how alpha changes throughout the training. The changes can be systematic, or using control theory to achieve a specified setpoint. """ import sys from abc import ABC, abstractmethod import tensorflow as tf __author__ = "Elizabeth A. Barnes and Randal J. Barnes" __date__ = "22 April 2021" # ============================================================================= # DAC ABSTENTION LOSS FUNCTIONS CLASSES # ============================================================================= # ----------------------------------------------------------------------------- class DACLoss(tf.keras.losses.Loss): """Modified k-class cross-entropy per-sample loss with spinup. The standard cross-entropy training loss is computed during the initial spinup epochs, then the modified k-class cross-entropy per-sample loss is computed thereafter. The modified k-class cross-entropy per-sample loss is a direct application of Thulasidasan, et al. (2019), Equation (1), which is the same as Thulasidasan (2020), Equation (3.1). Attributes ---------- updater : an instance of an AlphaUpdater. spinup_epochs : int The number of initial spinup epochs. Requirements ------------ * The abstention category must be the last category. * The y_pred must be the output from a softmax, so that y_pred sums to 1. References ---------- * Thulasidasan, S., T. Bhattacharya, J. Bilmes, G. Chennupati, and J. Mohd-Yusof, 2019, Combating Label Noise in Deep Learning Using Abstention. arXiv [stat.ML]. * Thulasidasan, S., 2020, Deep Learning with Abstention: Algorithms for Robust Training and Predictive Uncertainty, PhD Dissertation, University of Washington. https://digital.lib.washington.edu/researchworks/handle/1773/45781 """ # ----------------------------------------------------------------------------- class NotWrongLoss(tf.keras.losses.Loss): """Abstention loss function that highlights being "not wrong", rather than being right, while penalizing abstentions. Attributes ---------- updater : an instance of an AlphaUpdater. Requirements ------------ * The abstention category must be the last category. * The y_pred must be the output from a softmax, so that y_pred sums to 1. """ # ============================================================================= # ALPHA UPDATER CLASSES # ============================================================================= # ----------------------------------------------------------------------------- class AlphaUpdater(ABC): """The abstract base class for all alpha updaters. Attributes ---------- setpoint : float The abstention setpoint. alpha : float The current alpha value. Requirements ------------ * An instance of an AlphaUpdaterCallBack must be included in the callbacks of the model.fit. """ current_epoch = tf.Variable(0, trainable=False) current_batch = tf.Variable(0, trainable=False) def __init__(self, setpoint, alpha_init): """The abstract base class for all alpha update classes. Arguments --------- setpoint : float The abstention setpoint. alpha_init : float The initial alpha. """ self.setpoint = tf.constant(setpoint, dtype=tf.float64) self.alpha_init = tf.constant(alpha_init, dtype=tf.float64) self.alpha = tf.Variable(alpha_init, trainable=False, dtype=tf.float64) @abstractmethod @abstractmethod # ----------------------------------------------------------------------------- class Minnesota(AlphaUpdater): """Discrete-time PID updater using non-overlapping sets of batch counts. The penalty factor, alpha, is updated once every <length> batches, based on the abstention fraction of the previous <length> batches combined. The controller is an implementation of a discrete-time PID controller (velocity algorithm). See, for example, Visioli (2006) Equation (1.38). Attributes ---------- setpoint : float The abstention fraction setpoint. alpha_init : float The initial alpha. k : array-like, shape=(3,), dtype=float The three tuning parameters; e.g. k=(0.50, 0.40, 0.10). clip_at : array-like, shape=(2,), dtype=float The lower and upper clip points for defining the maximum change in alpha on any update; e.g. clip_at=(-0.5, 0.5). length : int The number of batches between updates; e.g. length=50. Requirements ------------ * 0 < setpoint < 1 * 0 <= alpha_init * k[1] - 2*k[2] > 0 * k[0] - k[1] + k[2] > 0 * k[2] > 0 * clip_at[0] < 0 < clip_at[1] * length >= 1 Notes ----- * We can relate the components of the three K tuning parameters to the standard PID parameters as [ 0 1 -2 ] [ k[0] ] [ 1 ] [ 1 -1 1 ] * [ k[1] ] = K_p * [ dt/T_i ] [ 0 0 1 ] [ k[2] ] [ T_d/dt ] or equivalently [ 1 1 1 ] [ 1 ] [ k[0] ] K_p * [ 1 0 2 ] * [ dt/T_i ] = [ k[1] ] [ 0 0 1 ] [ T_d/dt ] [ k[2] ] References ---------- * Visioli, A, 2006, Practical PID Control, Springer, ISBN-13: 9781846285851. """ # ----------------------------------------------------------------------------- class Colorado(AlphaUpdater): """Discrete-time PID updater using moving averages of batch counts. The penalty factor, alpha, is updated every batch, based on the abstention fraction of the previous <length> batches combined. The controller is an implementation of a discrete-time PID controller (velocity algorithm). See, for example, Visioli (2006) Equation (1.38). Attributes ---------- setpoint : float The abstention fraction setpoint. alpha_init : float The initial alpha. k : array-like, shape=(3,), dtype=float The three tuning parameters; e.g. k=(0.50, 0.40, 0.10). clip_at : array-like, shape=(2,), dtype=float The lower and upper clip points for defining the maximum change in alpha on any update; e.g. clip_at=(-0.5, 0.5). length : int The length of the cyclic queue; e.g. length=50. Requirements ------------ * 0 < setpoint < 1 * 0 <= alpha_init * k[1] - 2*k[2] > 0 * k[0] - k[1] + k[2] > 0 * k[2] > 0 * clip_at[0] < 0 < clip_at[1] * length >= 1 """ # ----------------------------------------------------------------------------- class Washington(AlphaUpdater): """A PID-like updater based on the code of Sunil Thulasidasan. References ---------- * Thulasidasan, S., 2020, Deep Learning with Abstention: Algorithms for Robust Training and Predictive Uncertainty, PhD Dissertation, University of Washington. https://digital.lib.washington.edu/researchworks/handle/1773/45781 * https://github.com/thulas/dac-label-noise/blob/master/dac_loss.py """ # ============================================================================= # CYCLIC QUEUE # ============================================================================= class CyclicQueue: """A tensorflow-compatable, cyclic queue. Attributes ---------- length : int The length of the cyclic queue. queue : array-like, shape=(length,), dtype=int32 The storage for the queued values. index : int The index of the current top of the cyclic queue. """ # ============================================================================= # ALPHA UPDATER CALLBACK # # An instance of an AlphaUpdaterCallBack MUST BE included in the callbacks # of the model.fit. # ============================================================================= # -----------------------------------------------------------------------------
[ 37811, 4826, 301, 1463, 2994, 2163, 6097, 290, 3917, 17130, 2325, 729, 6097, 329, 198, 4871, 2649, 13, 198, 198, 22462, 2163, 6097, 198, 19351, 12, 198, 9, 45793, 43, 793, 7, 27110, 13, 6122, 292, 13, 22462, 274, 13, 43, 793, 2599, ...
3.04213
2,967
# Copyright (c) OpenMMLab. All rights reserved. from .class_names import get_classes, get_palette from .eval_hooks import DistEvalHook, EvalHook from .metrics import (eval_metrics, intersect_and_union, mean_dice, mean_fscore, mean_iou, pre_eval_to_metrics) __all__ = [ 'EvalHook', 'DistEvalHook', 'mean_dice', 'mean_iou', 'mean_fscore', 'eval_metrics', 'get_classes', 'get_palette', 'pre_eval_to_metrics', 'intersect_and_union' ]
[ 2, 15069, 357, 66, 8, 4946, 44, 5805, 397, 13, 1439, 2489, 10395, 13, 198, 6738, 764, 4871, 62, 14933, 1330, 651, 62, 37724, 11, 651, 62, 18596, 5857, 198, 6738, 764, 18206, 62, 25480, 82, 1330, 4307, 36, 2100, 39, 566, 11, 26439,...
2.348485
198
# Copyright (c) 2014, Fundacion Dr. Manuel Sadosky # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # 2. 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. # 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. from arithmetic import * from bitwise import * from control import * from flag import * from logical import * from misc import * from sse import * from string import * from transfer import * dispatcher = {} dispatcher.update(arithmetic.dispatcher) dispatcher.update(bitwise.dispatcher) dispatcher.update(control.dispatcher) dispatcher.update(flag.dispatcher) dispatcher.update(logical.dispatcher) dispatcher.update(misc.dispatcher) dispatcher.update(sse.dispatcher) dispatcher.update(string.dispatcher) dispatcher.update(transfer.dispatcher)
[ 2, 15069, 357, 66, 8, 1946, 11, 7557, 49443, 1583, 13, 25995, 14668, 418, 2584, 198, 2, 1439, 2489, 10395, 13, 198, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431,...
3.415913
553
#!/usr/bin/env python3 """infoset classes that manage various configurations.""" import os.path import os # Import project libraries from infoset.utils import general from infoset.utils import log class Config(object): """Class gathers all configuration information.""" def __init__(self): """Function for intializing the class. Args: None Returns: None """ # Initialize key variables directories = general.config_directories() self.config_dict = general.read_yaml_files(directories) self.config_directory = directories[0] def configuration_directory(self): """Determine the configuration_directory. Args: None Returns: value: configured configuration_directory """ # Initialize key variables value = self.config_directory return value def configuration(self): """Return configuration. Args: None Returns: value: configuration """ # Initialize key variables value = self.config_dict return value def ingest_cache_directory(self): """Determine the ingest_cache_directory. Args: None Returns: value: configured ingest_cache_directory """ # Initialize key variables key = 'main' sub_key = 'ingest_cache_directory' # Process configuration value = _key_sub_key(key, sub_key, self.config_dict) # Check if value exists if os.path.isdir(value) is False: log_message = ( 'ingest_cache_directory: "%s" ' 'in configuration doesn\'t exist!') % (value) log.log2die(1011, log_message) # Return return value def ingest_failures_directory(self): """Determine the ingest_failures_directory. Args: None Returns: value: configured ingest_failures_directory """ # Get parameter value = ('%s/failures') % (self.ingest_cache_directory()) # Check if value exists if os.path.exists(value) is False: os.makedirs(value, mode=0o755) # Return return value def db_name(self): """Get db_name. Args: None Returns: result: result """ # Initialize key variables key = 'main' sub_key = 'db_name' # Process configuration result = _key_sub_key(key, sub_key, self.config_dict) # Get result return result def db_username(self): """Get db_username. Args: None Returns: result: result """ # Initialize key variables key = 'main' sub_key = 'db_username' # Process configuration result = _key_sub_key(key, sub_key, self.config_dict) # Get result return result def db_password(self): """Get db_password. Args: None Returns: result: result """ # Initialize key variables key = 'main' sub_key = 'db_password' # Process configuration result = _key_sub_key(key, sub_key, self.config_dict) # Get result return result def db_hostname(self): """Get db_hostname. Args: None Returns: result: result """ # Initialize key variables key = 'main' sub_key = 'db_hostname' # Process configuration result = _key_sub_key(key, sub_key, self.config_dict) # Get result return result def listen_address(self): """Get listen_address. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'listen_address' result = _key_sub_key(key, sub_key, self.config_dict, die=False) # Default to 0.0.0.0 if result is None: result = '0.0.0.0' return result def username(self): """Get username. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'username' result = _key_sub_key(key, sub_key, self.config_dict, die=False) # Default to None if result is None: result = None return result def interval(self): """Get interval. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'interval' intermediate = _key_sub_key(key, sub_key, self.config_dict, die=False) # Default to 300 if intermediate is None: result = 300 else: result = int(intermediate) return result def bind_port(self): """Get bind_port. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'bind_port' intermediate = _key_sub_key(key, sub_key, self.config_dict, die=False) # Default to 6000 if intermediate is None: result = 6000 else: result = int(intermediate) return result def ingest_pool_size(self): """Get ingest_pool_size. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'ingest_pool_size' intermediate = _key_sub_key(key, sub_key, self.config_dict, die=False) # Default to 20 if intermediate is None: result = 20 else: result = int(intermediate) return result def sqlalchemy_pool_size(self): """Get sqlalchemy_pool_size. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'sqlalchemy_pool_size' intermediate = _key_sub_key(key, sub_key, self.config_dict, die=False) # Set default if intermediate is None: result = 10 else: result = int(intermediate) return result def memcached_port(self): """Get memcached_port. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'memcached_port' intermediate = _key_sub_key(key, sub_key, self.config_dict, die=False) # Set default if intermediate is None: result = 11211 else: result = int(intermediate) return result def memcached_hostname(self): """Get memcached_hostname. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'memcached_hostname' result = _key_sub_key(key, sub_key, self.config_dict, die=False) # Default to localhost if result is None: result = 'localhost' return result def sqlalchemy_max_overflow(self): """Get sqlalchemy_max_overflow. Args: None Returns: result: result """ # Get result key = 'main' sub_key = 'sqlalchemy_max_overflow' intermediate = _key_sub_key(key, sub_key, self.config_dict, die=False) # Set default if intermediate is None: result = 10 else: result = int(intermediate) return result def log_directory(self): """Determine the log_directory. Args: None Returns: value: configured log_directory """ # Initialize key variables key = 'main' sub_key = 'log_directory' # Process configuration value = _key_sub_key(key, sub_key, self.config_dict) # Check if value exists if os.path.isdir(value) is False: log_message = ( 'log_directory: "%s" ' 'in configuration doesn\'t exist!') % (value) log.log2die(1030, log_message) # Return return value def log_file(self): """Get log_file. Args: None Returns: result: result """ # Get new result result = ('%s/infoset-ng.log') % (self.log_directory()) # Return return result def web_log_file(self): """Get web_log_file. Args: None Returns: result: result """ # Get new result result = ('%s/api-web.log') % (self.log_directory()) # Return return result def log_level(self): """Get log_level. Args: None Returns: result: result """ # Get result sub_key = 'log_level' result = None key = 'main' # Get new result result = _key_sub_key(key, sub_key, self.config_dict) # Return return result def _key_sub_key(key, sub_key, config_dict, die=True): """Get config parameter from YAML. Args: key: Primary key sub_key: Secondary key config_dict: Dictionary to explore die: Die if true and the result encountered is None Returns: result: result """ # Get result result = None # Verify config_dict is indeed a dict. # Die safely as log_directory is not defined if isinstance(config_dict, dict) is False: log.log2die_safe(1021, 'Invalid configuration file. config_dict: {}'.format(config_dict)) # Get new result if key in config_dict: # Make sure we don't have a None value if config_dict[key] is None: log_message = ( 'Configuration value {}: is blank. Please fix.' ''.format(key)) log.log2die_safe(1129, log_message) # Get value we need if sub_key in config_dict[key]: result = config_dict[key][sub_key] # Error if not configured if result is None and die is True: log_message = ( '%s:%s not defined in configuration') % (key, sub_key) log.log2die_safe(1016, log_message) # Return return result
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 10745, 418, 316, 6097, 326, 6687, 2972, 25412, 526, 15931, 198, 198, 11748, 28686, 13, 6978, 198, 11748, 28686, 198, 198, 2, 17267, 1628, 12782, 198, 6738, 1167, 418, 316, 1...
2.045158
5,204
#!/usr/bin/python # -*- coding: UTF-8 -*- import maya.cmds as cmds
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 743, 64, 13, 28758, 82, 355, 23991, 82, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198...
1.782609
46
from emojitations.emojitypes import EmojiAnnotations emoji = [ EmojiAnnotations(emoji='😀', codepoints=(128512,), name='sura inayokenua', slug='sura_inayokenua', annotations=frozenset({'kenua', 'uso'})), EmojiAnnotations(emoji='😁', codepoints=(128513,), name='uso uliokenua na macho yanayotabasamu', slug='uso_uliokenua_na_macho_yanayotabasamu', annotations=frozenset({'tabasamu', 'kenua', 'macho', 'uso'})), EmojiAnnotations(emoji='😂', codepoints=(128514,), name='uso wenye machozi ya furaha', slug='uso_wenye_machozi_ya_furaha', annotations=frozenset({'cheka', 'uso', 'furaha', 'chozi'})), EmojiAnnotations(emoji='😃', codepoints=(128515,), name='uso unaotabasamu na mdomo uliofunguliwa', slug='uso_unaotabasamu_na_mdomo_uliofunguliwa', annotations=frozenset({'tabasamu', 'uso', 'mdomo', 'funguliwa'})), EmojiAnnotations(emoji='😄', codepoints=(128516,), name='uso unaotabasamu unaoonyesha mdomo uliofunguliwa na macho yanayotabasamu', slug='uso_unaotabasamu_unaoonyesha_mdomo_uliofunguliwa_na_macho_yanayotabasamu', annotations=frozenset({'jicho', 'tabasamu', 'uso', 'mdomo', 'funguliwa'})), EmojiAnnotations(emoji='😅', codepoints=(128517,), name='uso unaotabasamu unaoonyesha mdomo uliofunguliwa na jasho jembamba', slug='uso_unaotabasamu_unaoonyesha_mdomo_uliofunguliwa_na_jasho_jembamba', annotations=frozenset({'jembamba', 'tabasamu', 'jasho', 'uso', 'funguliwa'})), EmojiAnnotations(emoji='😆', codepoints=(128518,), name='uso unaotabasamu unaoonyesha mdomo ulio wazi na macho yaliyofungwa', slug='uso_unaotabasamu_unaoonyesha_mdomo_ulio_wazi_na_macho_yaliyofungwa', annotations=frozenset({'mdomo', 'tabasamu', 'cheka', 'uso', 'ridhika', 'funguliwa'})), EmojiAnnotations(emoji='😉', codepoints=(128521,), name='uso unaokonyeza', slug='uso_unaokonyeza', annotations=frozenset({'konyeza', 'uso'})), EmojiAnnotations(emoji='😊', codepoints=(128522,), name='uso unaotabasamu na macho yanayotabasamu', slug='uso_unaotabasamu_na_macho_yanayotabasamu', annotations=frozenset({'wekundu wa uso', 'jicho', 'tabasamu', 'uso'})), EmojiAnnotations(emoji='😋', codepoints=(128523,), name='uso unaofurahia chakula kitamu', slug='uso_unaofurahia_chakula_kitamu', annotations=frozenset({'tabasamu', 'kufurahia', 'utamu', 'uso', 'tamu'})), EmojiAnnotations(emoji='😎', codepoints=(128526,), name='uso unaotabasamu uliovaa miwani', slug='uso_unaotabasamu_uliovaa_miwani', annotations=frozenset({'nzuri', 'tabasamu', "inayong'aa", 'jua', 'uso', 'hali ya hewa', 'jicho', 'wimani ya jua', 'vali la macho'})), EmojiAnnotations(emoji='😍', codepoints=(128525,), name='uso unaotabasamu ulio na macho ya umbo la moyo', slug='uso_unaotabasamu_ulio_na_macho_ya_umbo_la_moyo', annotations=frozenset({'jicho', 'moyo', 'tabasamu', 'uso', 'upendo'})), EmojiAnnotations(emoji='😘', codepoints=(128536,), name='uso unaotoa busu', slug='uso_unaotoa_busu', annotations=frozenset({'moyo', 'busu', 'uso'})), EmojiAnnotations(emoji='😗', codepoints=(128535,), name='uso unaobusu', slug='uso_unaobusu', annotations=frozenset({'busu', 'uso'})), EmojiAnnotations(emoji='😙', codepoints=(128537,), name='uso unaobusu na macho yanayotabasamu', slug='uso_unaobusu_na_macho_yanayotabasamu', annotations=frozenset({'jicho', 'tabasamu', 'busu', 'uso'})), EmojiAnnotations(emoji='😚', codepoints=(128538,), name='uso unaobusu na macho yaliyofungwa', slug='uso_unaobusu_na_macho_yaliyofungwa', annotations=frozenset({'jicho', 'iliyofungwa', 'uso', 'busu'})), EmojiAnnotations(emoji='☺', codepoints=(9786,), name='uso unaotabasamu', slug='uso_unaotabasamu', annotations=frozenset({'tabasamu', 'tulivu', 'uso', 'iliyobainishwa'})), EmojiAnnotations(emoji='\U0001f642', codepoints=(128578,), name='uso unaotabasamu kwa mbali', slug='uso_unaotabasamu_kwa_mbali', annotations=frozenset({'tabasamu', 'uso'})), EmojiAnnotations(emoji='\U0001f917', codepoints=(129303,), name='uso unaokumbatia', slug='uso_unaokumbatia', annotations=frozenset({'uso', 'kukumbatia', 'kumbatia'})), EmojiAnnotations(emoji='😇', codepoints=(128519,), name='uso unaotabasamu ulio na mduara wa mwangaza juu yake', slug='uso_unaotabasamu_ulio_na_mduara_wa_mwangaza_juu_yake', annotations=frozenset({'kichimbakazi', 'asiye na hatia', 'tabasamu', 'duara ya mwangaza', 'malaika', 'njozi', 'uso'})), EmojiAnnotations(emoji='\U0001f914', codepoints=(129300,), name='uso unaotafakari', slug='uso_unaotafakari', annotations=frozenset({'kufikiri', 'uso'})), EmojiAnnotations(emoji='😐', codepoints=(128528,), name='uso uliotulia', slug='uso_uliotulia', annotations=frozenset({'uso', 'bila hisia', 'kutulia'})), EmojiAnnotations(emoji='😑', codepoints=(128529,), name='uso uliojikausha', slug='uso_uliojikausha', annotations=frozenset({'wenye kujikausha', 'uso', 'usioleza chochote', 'usioonyesha hisia'})), EmojiAnnotations(emoji='😶', codepoints=(128566,), name='uso usio na mdomo', slug='uso_usio_na_mdomo', annotations=frozenset({'uso', 'mdomo', 'kimya'})), EmojiAnnotations(emoji='\U0001f644', codepoints=(128580,), name='usio wenye macho yanayorembua', slug='usio_wenye_macho_yanayorembua', annotations=frozenset({'macho', 'uso', 'kurembua'})), EmojiAnnotations(emoji='😏', codepoints=(128527,), name='uso unaobeza', slug='uso_unaobeza', annotations=frozenset({'uso', 'beza'})), EmojiAnnotations(emoji='😣', codepoints=(128547,), name='uso unaovumilia', slug='uso_unaovumilia', annotations=frozenset({'uso', 'kuvumilia'})), EmojiAnnotations(emoji='😥', codepoints=(128549,), name='uso uliosikitika lakini unaoonyesha kufarijika', slug='uso_uliosikitika_lakini_unaoonyesha_kufarijika', annotations=frozenset({'kusikitika', 'uso', 'faraja', 'kufarijika'})), EmojiAnnotations(emoji='😮', codepoints=(128558,), name='uso wenye mdomo ulio wazi', slug='uso_wenye_mdomo_ulio_wazi', annotations=frozenset({'huruma', 'uso', 'mdomo', 'funguliwa'})), EmojiAnnotations(emoji='\U0001f910', codepoints=(129296,), name='uso uliofungwa mdomo kwa zipu', slug='uso_uliofungwa_mdomo_kwa_zipu', annotations=frozenset({'zipu', 'uso', 'mdomo'})), EmojiAnnotations(emoji='😯', codepoints=(128559,), name='uso ulionyamaa', slug='uso_ulionyamaa', annotations=frozenset({'uso', 'kushangazwa', 'kunyamaa', 'kustaajabu'})), EmojiAnnotations(emoji='😪', codepoints=(128554,), name='uso unaosinzia', slug='uso_unaosinzia', annotations=frozenset({'uso', 'usingizi'})), EmojiAnnotations(emoji='😫', codepoints=(128555,), name='uso uliochoka', slug='uso_uliochoka', annotations=frozenset({'uchovu', 'uso'})), EmojiAnnotations(emoji='😴', codepoints=(128564,), name='uso unaoonyesha usingizi', slug='uso_unaoonyesha_usingizi', annotations=frozenset({'kusinzia', 'uso', 'usingizi'})), EmojiAnnotations(emoji='😌', codepoints=(128524,), name='uso uliofarijika', slug='uso_uliofarijika', annotations=frozenset({'uso', 'farijika'})), EmojiAnnotations(emoji='\U0001f913', codepoints=(129299,), name='uso wa mjuaji', slug='uso_wa_mjuaji', annotations=frozenset({'uso', 'mtaalamu wa mambo', 'mjuzi wa teknolojia'})), EmojiAnnotations(emoji='😛', codepoints=(128539,), name='uso wenye ulimi nje', slug='uso_wenye_ulimi_nje', annotations=frozenset({'ulimi', 'uso'})), EmojiAnnotations(emoji='😜', codepoints=(128540,), name='uso unaotoa ulimi nje na jicho lililokonyeza', slug='uso_unaotoa_ulimi_nje_na_jicho_lililokonyeza', annotations=frozenset({'jicho', 'konyeza', 'ulimi', 'uso', 'utani'})), EmojiAnnotations(emoji='😝', codepoints=(128541,), name='uso unaotoa ulimi nje na macho yaliyofungwa kabisa', slug='uso_unaotoa_ulimi_nje_na_macho_yaliyofungwa_kabisa', annotations=frozenset({'jicho', 'ulimi', 'uso', 'mbaya', 'ladha'})), EmojiAnnotations(emoji='☹', codepoints=(9785,), name='uso ulionuna', slug='uso_ulionuna', annotations=frozenset({'kununa', 'uso'})), EmojiAnnotations(emoji='\U0001f641', codepoints=(128577,), name='uso ulionuna kiasi', slug='uso_ulionuna_kiasi', annotations=frozenset({'kununa', 'uso'})), EmojiAnnotations(emoji='😒', codepoints=(128530,), name='uso usio na furaha', slug='uso_usio_na_furaha', annotations=frozenset({'kutofurahi', 'uso', 'kukosa furaha'})), EmojiAnnotations(emoji='😓', codepoints=(128531,), name='uso wenye jasho jembamba', slug='uso_wenye_jasho_jembamba', annotations=frozenset({'jembamba', 'uso', 'jasho'})), EmojiAnnotations(emoji='😔', codepoints=(128532,), name='uso uliozama katika mawazo', slug='uso_uliozama_katika_mawazo', annotations=frozenset({'wenye mawazo', 'uso', 'huzunishwa'})), EmojiAnnotations(emoji='😕', codepoints=(128533,), name='uso uliochanganyikiwa', slug='uso_uliochanganyikiwa', annotations=frozenset({'uso', 'kuchanganyikiwa'})), EmojiAnnotations(emoji='😖', codepoints=(128534,), name='uso ulioshangazwa', slug='uso_ulioshangazwa', annotations=frozenset({'uso', 'kushangazwa'})), EmojiAnnotations(emoji='\U0001f643', codepoints=(128579,), name='uso uliogeuzwa juu chini', slug='uso_uliogeuzwa_juu_chini', annotations=frozenset({'uso', 'kugeuzwa juu chini'})), EmojiAnnotations(emoji='😷', codepoints=(128567,), name='uso uliovaa barakoa ya matibabu', slug='uso_uliovaa_barakoa_ya_matibabu', annotations=frozenset({'dawa', 'mafua', 'mgonjwa', 'barakoa', 'uso', 'daktari'})), EmojiAnnotations(emoji='\U0001f912', codepoints=(129298,), name='uso wenye kipimajoto mdomoni', slug='uso_wenye_kipimajoto_mdomoni', annotations=frozenset({'ugonjwa', 'uso', 'ngonjwa', 'pima joto'})), EmojiAnnotations(emoji='\U0001f915', codepoints=(129301,), name='uso uliofungwa bandeji kichwani', slug='uso_uliofungwa_bandeji_kichwani', annotations=frozenset({'uso', 'bandeji', 'maumivu', 'kuumia'})), EmojiAnnotations(emoji='\U0001f911', codepoints=(129297,), name='uso unaoonyesha pesa ya noti mdomoni', slug='uso_unaoonyesha_pesa_ya_noti_mdomoni', annotations=frozenset({'uso', 'mdomo', 'pesa'})), EmojiAnnotations(emoji='😲', codepoints=(128562,), name='uso uliostaajabu', slug='uso_uliostaajabu', annotations=frozenset({'kustaajabishwa', 'kushtuliwa', 'uso', 'kabisa'})), EmojiAnnotations(emoji='😞', codepoints=(128542,), name='uso uliosikitika', slug='uso_uliosikitika', annotations=frozenset({'uso', 'sikitiko'})), EmojiAnnotations(emoji='😟', codepoints=(128543,), name='uso ulio na wasiwasi', slug='uso_ulio_na_wasiwasi', annotations=frozenset({'uso', 'wasiwasi'})), EmojiAnnotations(emoji='😤', codepoints=(128548,), name='uso wenye mvuke unaotoka puani', slug='uso_wenye_mvuke_unaotoka_puani', annotations=frozenset({'ushindi', 'uso', 'shinda'})), EmojiAnnotations(emoji='😢', codepoints=(128546,), name='uso unaolia', slug='uso_unaolia', annotations=frozenset({'uso', 'lia', 'huzuni', 'chozi'})), EmojiAnnotations(emoji='😭', codepoints=(128557,), name='uso unaolia kwa sauti', slug='uso_unaolia_kwa_sauti', annotations=frozenset({'uso', 'lia', 'huzuni', 'chozi', 'kulia'})), EmojiAnnotations(emoji='😦', codepoints=(128550,), name='uso ulionuna wenye mdomo uliofunguliwa', slug='uso_ulionuna_wenye_mdomo_uliofunguliwa', annotations=frozenset({'kununa', 'uso', 'mdomo', 'funguliwa'})), EmojiAnnotations(emoji='😧', codepoints=(128551,), name='uso unaoonyesha uchungu', slug='uso_unaoonyesha_uchungu', annotations=frozenset({'uso', 'uchungu'})), EmojiAnnotations(emoji='😨', codepoints=(128552,), name='uso unaoogopa', slug='uso_unaoogopa', annotations=frozenset({'uso', 'woga', 'kuhofu', 'kuogopa'})), EmojiAnnotations(emoji='😩', codepoints=(128553,), name='uso unaoonyesha uchovu', slug='uso_unaoonyesha_uchovu', annotations=frozenset({'uchovu', 'kuchoka', 'uso'})), EmojiAnnotations(emoji='😬', codepoints=(128556,), name='uso uliokunjwa', slug='uso_uliokunjwa', annotations=frozenset({'kunja', 'uso'})), EmojiAnnotations(emoji='😰', codepoints=(128560,), name='uso wenye mdomo uliofunguliwa na jasho jembamba', slug='uso_wenye_mdomo_uliofunguliwa_na_jasho_jembamba', annotations=frozenset({'jasho', 'mdomo', 'sisimka', 'jembamba', 'uso', 'samawati', 'funguliwa'})), EmojiAnnotations(emoji='😱', codepoints=(128561,), name='uso unaopiga mayowe ya hofu', slug='uso_unaopiga_mayowe_ya_hofu', annotations=frozenset({'kuogopa', 'woga', 'uso', 'kula', 'kuhofu', 'mayowe'})), EmojiAnnotations(emoji='😳', codepoints=(128563,), name='uso uliojawa msisimko', slug='uso_uliojawa_msisimko', annotations=frozenset({'kizunguzungu', 'sisimka', 'uso'})), EmojiAnnotations(emoji='😵', codepoints=(128565,), name='uso unaoonyesha kuwa na kizunguzungu', slug='uso_unaoonyesha_kuwa_na_kizunguzungu', annotations=frozenset({'kizunguzungu', 'uso'})), EmojiAnnotations(emoji='😡', codepoints=(128545,), name='uso uliobibidua midomo', slug='uso_uliobibidua_midomo', annotations=frozenset({'nyekundu', 'bibidua midomo', 'ghadhabu', 'kasirika', 'uso', 'hasira'})), EmojiAnnotations(emoji='😠', codepoints=(128544,), name='uso uliojaa hasira', slug='uso_uliojaa_hasira', annotations=frozenset({'kasirika', 'uso', 'hasira'})), EmojiAnnotations(emoji='😈', codepoints=(128520,), name='uso unaotabasamu wenye pembe', slug='uso_unaotabasamu_wenye_pembe', annotations=frozenset({'tabasamu', 'pembe', 'uso', 'njozi', 'kichimbakazi'})), EmojiAnnotations(emoji='👿', codepoints=(128127,), name='kishetani', slug='kishetani', annotations=frozenset({'pepo', 'uso', 'shetani', 'kichimbakazi', 'njozi'})), EmojiAnnotations(emoji='👹', codepoints=(128121,), name='zimwi', slug='zimwi', annotations=frozenset({'uso', 'njozi', 'kichimbakazi', 'kiumbe', 'kijapani'})), EmojiAnnotations(emoji='👺', codepoints=(128122,), name='afriti', slug='afriti', annotations=frozenset({'kichimbakazi', 'kiumbe', 'njozi', 'uso', 'kijapani', 'zimwi'})), EmojiAnnotations(emoji='💀', codepoints=(128128,), name='fuvu', slug='fuvu', annotations=frozenset({'kifo', 'uso', 'zimwi', 'kichimbakazi', 'mwili'})), EmojiAnnotations(emoji='☠', codepoints=(9760,), name='fuvu na mifupa', slug='fuvu_na_mifupa', annotations=frozenset({'fuvu', 'kifo', 'mifupa', 'uso', 'mwili', 'zimwi'})), EmojiAnnotations(emoji='👻', codepoints=(128123,), name='jini', slug='jini', annotations=frozenset({'uso', 'njozi', 'kichimbakazi', 'kiumbe', 'zimwi'})), EmojiAnnotations(emoji='👽', codepoints=(128125,), name='jitu geni', slug='jitu_geni', annotations=frozenset({'kichimbakazi', 'kiumbe', 'njozi', 'uso', 'anga', 'kitu kisichojulikana kinachopaa hewani', 'zimwi'})), EmojiAnnotations(emoji='👾', codepoints=(128126,), name='dubwana geni', slug='dubwana_geni', annotations=frozenset({'geni', 'kichimbakazi', 'kiumbe', 'njozi', 'uso', 'anga', 'kitu kisichojulikana kinachopaa hewani', 'jitu geni', 'zimwi'})), EmojiAnnotations(emoji='\U0001f916', codepoints=(129302,), name='uso wa roboti', slug='uso_wa_roboti', annotations=frozenset({'roboti', 'uso', 'zimwi'})), EmojiAnnotations(emoji='💩', codepoints=(128169,), name='kinyesi', slug='kinyesi', annotations=frozenset({'mavi', 'uso', 'kibonzo', 'zimwi'})), EmojiAnnotations(emoji='😺', codepoints=(128570,), name='uso wa paka unaocheka na mdomo uliofunguliwa', slug='uso_wa_paka_unaocheka_na_mdomo_uliofunguliwa', annotations=frozenset({'tabasamu', 'paka', 'uso', 'mdomo', 'funguliwa'})), EmojiAnnotations(emoji='😸', codepoints=(128568,), name='uso wa paka unaokenua na macho yanayotabasamu', slug='uso_wa_paka_unaokenua_na_macho_yanayotabasamu', annotations=frozenset({'jicho', 'kenua', 'paka', 'uso', 'tabasamu'})), EmojiAnnotations(emoji='😹', codepoints=(128569,), name='uso wa paka wenye machozi ya furaha', slug='uso_wa_paka_wenye_machozi_ya_furaha', annotations=frozenset({'paka', 'uso', 'furaha', 'chozi'})), EmojiAnnotations(emoji='😻', codepoints=(128571,), name='uso wa paka unaotabasamu wenye macho yenye umbo la moyo', slug='uso_wa_paka_unaotabasamu_wenye_macho_yenye_umbo_la_moyo', annotations=frozenset({'tabasamu', 'uso', 'jicho', 'moyo', 'paka', 'upendo'})), EmojiAnnotations(emoji='😼', codepoints=(128572,), name='uso wa paka wenye tabasamu la kulazimisha', slug='uso_wa_paka_wenye_tabasamu_la_kulazimisha', annotations=frozenset({'tabasamu', 'kulazimisha', 'paka', 'uso', 'kejeli'})), EmojiAnnotations(emoji='😽', codepoints=(128573,), name='uso wa paka wenye busu na macho yaliyofungwa', slug='uso_wa_paka_wenye_busu_na_macho_yaliyofungwa', annotations=frozenset({'jicho', 'paka', 'uso', 'busu'})), EmojiAnnotations(emoji='🙀', codepoints=(128576,), name='uso wa paka uliochoka', slug='uso_wa_paka_uliochoka', annotations=frozenset({'uchovu', 'loh', 'paka', 'uso', 'shangazwa'})), EmojiAnnotations(emoji='😿', codepoints=(128575,), name='uso wa paka unaolia', slug='uso_wa_paka_unaolia', annotations=frozenset({'paka', 'uso', 'lia', 'huzuni', 'chozi'})), EmojiAnnotations(emoji='😾', codepoints=(128574,), name='uso wa paka uliobibidua midomo', slug='uso_wa_paka_uliobibidua_midomo', annotations=frozenset({'paka', 'uso', 'bibidua midomo'})), EmojiAnnotations(emoji='🙈', codepoints=(128584,), name='uso wenye macho yaliyofunikwa kwa mikono', slug='uso_wenye_macho_yaliyofunikwa_kwa_mikono', annotations=frozenset({'siyo', 'katazwa', 'ishara', 'marufuku', 'tumbili', 'uso', 'hapana', 'angalia', 'uovu'})), EmojiAnnotations(emoji='🙉', codepoints=(128585,), name='uso wenye masikio yaliyofunikwa kwa mikono', slug='uso_wenye_masikio_yaliyofunikwa_kwa_mikono', annotations=frozenset({'siyo', 'katazwa', 'ishara', 'marufuku', 'tumbili', 'uso', 'hapana', 'uovu'})), EmojiAnnotations(emoji='🙊', codepoints=(128586,), name='uso wenye mdomo uliofunikwa kwa mikono', slug='uso_wenye_mdomo_uliofunikwa_kwa_mikono', annotations=frozenset({'siyo', 'katazwa', 'ishara', 'marufuku', 'tumbili', 'uso', 'hapana', 'uovu', 'zungumza'})), EmojiAnnotations(emoji='👧', codepoints=(128103,), name='msichana', slug='msichana', annotations=frozenset({'zodiaki', 'mwali', 'mashuke', 'bikira'})), EmojiAnnotations(emoji='👴', codepoints=(128116,), name='babu', slug='babu', annotations=frozenset({'mzee', 'mwanamume'})), EmojiAnnotations(emoji='👵', codepoints=(128117,), name='bibi', slug='bibi', annotations=frozenset({'mzee', 'mwanamke'})), EmojiAnnotations(emoji='👱', codepoints=(128113,), name='mtu mwenye nywele za rangi ya shaba au kimanjano', slug='mtu_mwenye_nywele_za_rangi_ya_shaba_au_kimanjano', annotations=frozenset({'rangi ya shaba au kimanjano'})), EmojiAnnotations(emoji='👮', codepoints=(128110,), name='askari polisi', slug='askari_polisi', annotations=frozenset({'afisa', 'polisi'})), EmojiAnnotations(emoji='👲', codepoints=(128114,), name='mwanamume aliyevaa kofia ya kichina', slug='mwanamume_aliyevaa_kofia_ya_kichina', annotations=frozenset({'kofia', 'gua pi mao', 'mwanamume'})), EmojiAnnotations(emoji='👳', codepoints=(128115,), name='mwanaume aliyefunga kilemba', slug='mwanaume_aliyefunga_kilemba', annotations=frozenset({'kilemba', 'mwanamume'})), EmojiAnnotations(emoji='👷', codepoints=(128119,), name='mfanyakazi wa ujenzi', slug='mfanyakazi_wa_ujenzi', annotations=frozenset({'kofia', 'ujenzi', 'mfanyakazi'})), EmojiAnnotations(emoji='⛑', codepoints=(9937,), name='helmeti iliyo na msalaba mweupe', slug='helmeti_iliyo_na_msalaba_mweupe', annotations=frozenset({'msalaba', 'helmeti', 'kofia', 'uso', 'msaada'})), EmojiAnnotations(emoji='👸', codepoints=(128120,), name='binti mfalme', slug='binti_mfalme', annotations=frozenset({'njozi', 'kichimbakazi'})), EmojiAnnotations(emoji='\U0001f575', codepoints=(128373,), name='mpelelezi', slug='mpelelezi', annotations=frozenset({'jasusi'})), EmojiAnnotations(emoji='🎅', codepoints=(127877,), name='baba krismasi', slug='baba_krismasi', annotations=frozenset({'baba', 'sherehe', 'njozi', 'krismasi', 'kichimbakazi'})), EmojiAnnotations(emoji='👼', codepoints=(128124,), name='mtoto malaika', slug='mtoto_malaika', annotations=frozenset({'uso', 'malaika', 'kichimbakazi', 'mtoto', 'njozi'})), EmojiAnnotations(emoji='💆', codepoints=(128134,), name='kukanda uso', slug='kukanda_uso', annotations=frozenset({'kukanda', 'mahali panapotoa huduma zinazohusiana na mitindo'})), EmojiAnnotations(emoji='💇', codepoints=(128135,), name='kukata nywele', slug='kukata_nywele', annotations=frozenset({'urembo', 'kinyozi', 'ukumbi'})), EmojiAnnotations(emoji='👰', codepoints=(128112,), name='bi harusi aliyevaa shela', slug='bi_harusi_aliyevaa_shela', annotations=frozenset({'bi harusi', 'harusi', 'shela'})), EmojiAnnotations(emoji='🙍', codepoints=(128589,), name='mtu anayekunja kipaji cha uso', slug='mtu_anayekunja_kipaji_cha_uso', annotations=frozenset({'chukizwa', 'ishara'})), EmojiAnnotations(emoji='🙎', codepoints=(128590,), name='mtu aliyebibidua midomo', slug='mtu_aliyebibidua_midomo', annotations=frozenset({'bibidua midomo', 'ishara'})), EmojiAnnotations(emoji='🙅', codepoints=(128581,), name='mtu anayeonyesha ishara ya kukataa', slug='mtu_anayeonyesha_ishara_ya_kukataa', annotations=frozenset({'siyo', 'katazwa', 'ishara', 'marufuku', 'hapana', 'mkono'})), EmojiAnnotations(emoji='🙆', codepoints=(128582,), name='mtu anayeonyesha ishara ya kukubali', slug='mtu_anayeonyesha_ishara_ya_kukubali', annotations=frozenset({'mkono', 'ishara', 'sawa'})), EmojiAnnotations(emoji='💁', codepoints=(128129,), name='mhudumu anayetoa maelezo', slug='mhudumu_anayetoa_maelezo', annotations=frozenset({'mkono', 'maelezo', 'anayejiamini', 'usaidizi'})), EmojiAnnotations(emoji='🙋', codepoints=(128587,), name='mtu mwenye furaha aliyeinua mkono', slug='mtu_mwenye_furaha_aliyeinua_mkono', annotations=frozenset({'mkono', 'inuliwa', 'furaha', 'ishara'})), EmojiAnnotations(emoji='🙇', codepoints=(128583,), name='mtu aliyeinama', slug='mtu_aliyeinama', annotations=frozenset({'inama', 'msamaha', 'ishara', 'samahani'})), EmojiAnnotations(emoji='🙌', codepoints=(128588,), name='mtu aliyeinua mikono', slug='mtu_aliyeinua_mikono', annotations=frozenset({'inuliwa', 'ishara', 'mwili', 'shangwe', 'mkono', 'kusherehekea'})), EmojiAnnotations(emoji='🙏', codepoints=(128591,), name='mtu aliyekunja mikono', slug='mtu_aliyekunja_mikono', annotations=frozenset({'ishara', 'omba', 'tafadhali', 'mwili', 'uliza', 'mkono', 'asante', 'inama', 'kunjwa'})), EmojiAnnotations(emoji='\U0001f5e3', codepoints=(128483,), name='kichwa kinachozugumza', slug='kichwa_kinachozugumza', annotations=frozenset({'uso', 'kichwa', 'zungumza', 'kivuli', 'kuzungumza'})), EmojiAnnotations(emoji='👤', codepoints=(128100,), name='sanamu ya kichwa na mabega ya mtu katika kivuli', slug='sanamu_ya_kichwa_na_mabega_ya_mtu_katika_kivuli', annotations=frozenset({'sanamu ya kichwa na mabega ya mtu', 'kivuli'})), EmojiAnnotations(emoji='👥', codepoints=(128101,), name='sanamu za kichwa na mabega ya mtu katika kivuli', slug='sanamu_za_kichwa_na_mabega_ya_mtu_katika_kivuli', annotations=frozenset({'sanamu ya kichwa na mabega ya mtu', 'kivuli'})), EmojiAnnotations(emoji='🚶', codepoints=(128694,), name='mtu anayetembea', slug='mtu_anayetembea', annotations=frozenset({'kutembea', 'kutembea umbali mrefu', 'tembea'})), EmojiAnnotations(emoji='🏃', codepoints=(127939,), name='mkimbiaji', slug='mkimbiaji', annotations=frozenset({'mbio za masafa marefu', 'kukimbia'})), EmojiAnnotations(emoji='👯', codepoints=(128111,), name='wanawake wanaosherehekea', slug='wanawake_wanaosherehekea', annotations=frozenset({'sungura', 'mwanamke', 'msichana', 'mcheza dansi', 'sikio'})), EmojiAnnotations(emoji='\U0001f574', codepoints=(128372,), name='mwanaume aliyevaa suti anaye elea hewani', slug='mwanaume_aliyevaa_suti_anaye_elea_hewani', annotations=frozenset({'biashara', 'suti', 'mwanamume'})), EmojiAnnotations(emoji='💏', codepoints=(128143,), name='busu', slug='busu', annotations=frozenset({'mapenzi', 'mume na mke'})), EmojiAnnotations(emoji='💑', codepoints=(128145,), name='mume na muke na ishara ya moyo', slug='mume_na_muke_na_ishara_ya_moyo', annotations=frozenset({'moyo', 'mapenzi', 'mume na mke', 'upendo'})), EmojiAnnotations(emoji='👪', codepoints=(128106,), name='familia', slug='familia', annotations=frozenset({'baba', 'mama', 'mtoto'})), EmojiAnnotations(emoji='👫', codepoints=(128107,), name='mwanamume na mwanamke walioshikana mikono', slug='mwanamume_na_mwanamke_walioshikana_mikono', annotations=frozenset({'mkono', 'shikilia', 'mwanamke', 'mume na mke', 'mwanamume'})), EmojiAnnotations(emoji='👬', codepoints=(128108,), name='wanaume wawili walioshikana mikono', slug='wanaume_wawili_walioshikana_mikono', annotations=frozenset({'mwanamume', 'mume na mke', 'shikilia', 'mapacha', 'mkono', 'zodiaki'})), EmojiAnnotations(emoji='👭', codepoints=(128109,), name='wanawake wawili walioshikana mikono', slug='wanawake_wawili_walioshikana_mikono', annotations=frozenset({'mkono', 'shikilia', 'mwanamke', 'mume na mke'})), EmojiAnnotations(emoji='\U0001f3fb', codepoints=(127995,), name='ngozi aina ya-1-2', slug='ngozi_aina_ya_1_2', annotations=frozenset({'fitzpatrick', 'mwonekano', 'gamba', 'kibadilisha emoji'})), EmojiAnnotations(emoji='\U0001f3fc', codepoints=(127996,), name='ngozi aina ya-3', slug='ngozi_aina_ya_3', annotations=frozenset({'fitzpatrick', 'mwonekano', 'gamba', 'kibadilisha emoji'})), EmojiAnnotations(emoji='\U0001f3fd', codepoints=(127997,), name='ngozi aina ya-4', slug='ngozi_aina_ya_4', annotations=frozenset({'fitzpatrick', 'mwonekano', 'gamba', 'kibadilisha emoji'})), EmojiAnnotations(emoji='\U0001f3fe', codepoints=(127998,), name='ngozi aina ya-5', slug='ngozi_aina_ya_5', annotations=frozenset({'fitzpatrick', 'mwonekano', 'gamba', 'kibadilisha emoji'})), EmojiAnnotations(emoji='\U0001f3ff', codepoints=(127999,), name='ngozi aina ya-6', slug='ngozi_aina_ya_6', annotations=frozenset({'fitzpatrick', 'mwonekano', 'gamba', 'kibadilisha emoji'})), EmojiAnnotations(emoji='💪', codepoints=(128170,), name='misuli iliyotunishwa', slug='misuli_iliyotunishwa', annotations=frozenset({'musuli', 'misuli za mikono', 'kibonzo', 'mwili', 'tunisha'})), EmojiAnnotations(emoji='👈', codepoints=(128072,), name='kidole cha kwanza kinachoelekeza kushoto', slug='kidole_cha_kwanza_kinachoelekeza_kushoto', annotations=frozenset({'kidole', 'elekeza', 'mwili', 'mkono', 'cha kwanza', 'nyuma ya mkono'})), EmojiAnnotations(emoji='👉', codepoints=(128073,), name='kidole cha kwanza kinachoelekeza kulia', slug='kidole_cha_kwanza_kinachoelekeza_kulia', annotations=frozenset({'kidole', 'elekeza', 'mwili', 'mkono', 'cha kwanza', 'nyuma ya mkono'})), EmojiAnnotations(emoji='☝', codepoints=(9757,), name='kidole cha kwanza kinachoelekeza juu', slug='kidole_cha_kwanza_kinachoelekeza_juu', annotations=frozenset({'kidole', 'elekeza', 'mwili', 'mkono', 'cha kwanza', 'juu'})), EmojiAnnotations(emoji='👆', codepoints=(128070,), name='kidole cha kwanza kinachoelekeza juu kwa nyuma', slug='kidole_cha_kwanza_kinachoelekeza_juu_kwa_nyuma', annotations=frozenset({'kidole', 'elekeza', 'mwili', 'mkono', 'cha kwanza', 'nyuma ya mkono', 'juu'})), EmojiAnnotations(emoji='\U0001f595', codepoints=(128405,), name='kidole cha kati', slug='kidole_cha_kati', annotations=frozenset({'mkono', 'kidole', 'mwili'})), EmojiAnnotations(emoji='👇', codepoints=(128071,), name='kidole cha kwanza kinachoelekeza chini kwa nyuma', slug='kidole_cha_kwanza_kinachoelekeza_chini_kwa_nyuma', annotations=frozenset({'kidole', 'elekeza', 'mwili', 'mkono', 'cha kwanza', 'nyuma ya mkono'})), EmojiAnnotations(emoji='✌', codepoints=(9996,), name='mkono wa ushindi', slug='mkono_wa_ushindi', annotations=frozenset({'mkono', 'v', 'ushindi', 'mwili'})), EmojiAnnotations(emoji='\U0001f596', codepoints=(128406,), name='ishara ya vulkani', slug='ishara_ya_vulkani', annotations=frozenset({'mkono', 'spoku', 'vulkani', 'kidole', 'mwili'})), EmojiAnnotations(emoji='\U0001f918', codepoints=(129304,), name='ishara ya pembe', slug='ishara_ya_pembe', annotations=frozenset({'mkono', 'cheza', 'pembe', 'kidole', 'mwili'})), EmojiAnnotations(emoji='\U0001f590', codepoints=(128400,), name='mkono ulioinuliwa na vidole vilivyotanuliwa', slug='mkono_ulioinuliwa_na_vidole_vilivyotanuliwa', annotations=frozenset({'mkono', 'kidole', 'mwili', 'tanuliwa'})), EmojiAnnotations(emoji='✋', codepoints=(9995,), name='mkono ulioinuliwa', slug='mkono_ulioinuliwa', annotations=frozenset({'mkono', 'mwili'})), EmojiAnnotations(emoji='👌', codepoints=(128076,), name='mkono wa kuonyesha mambo yako shwari', slug='mkono_wa_kuonyesha_mambo_yako_shwari', annotations=frozenset({'mkono', 'mwili', 'sawa'})), EmojiAnnotations(emoji='👍', codepoints=(128077,), name='dole gumba juu', slug='dole_gumba_juu', annotations=frozenset({'mkono', 'gumba', 'juu', 'mwili', '1'})), EmojiAnnotations(emoji='👎', codepoints=(128078,), name='dole gumba chini', slug='dole_gumba_chini', annotations=frozenset({'mkono', '-1', 'gumba', 'chini', 'mwili'})), EmojiAnnotations(emoji='✊', codepoints=(9994,), name='ngumi iliyoinuliwa', slug='ngumi_iliyoinuliwa', annotations=frozenset({'mkono', 'ngumi', 'kunja ngumi', 'mwili', 'konde'})), EmojiAnnotations(emoji='👊', codepoints=(128074,), name='ngumi uliyonyooshewa', slug='ngumi_uliyonyooshewa', annotations=frozenset({'mkono', 'ngumi', 'kunja ngumi', 'mwili', 'konde'})), EmojiAnnotations(emoji='👋', codepoints=(128075,), name='mkono unaopunga', slug='mkono_unaopunga', annotations=frozenset({'mkono', 'punga', 'kupunga', 'mwili'})), EmojiAnnotations(emoji='👏', codepoints=(128079,), name='mikono inayopiga makofi', slug='mikono_inayopiga_makofi', annotations=frozenset({'mkono', 'piga makofi', 'mwili'})), EmojiAnnotations(emoji='👐', codepoints=(128080,), name='mikono iliyowazi', slug='mikono_iliyowazi', annotations=frozenset({'mkono', 'wazi', 'mwili'})), EmojiAnnotations(emoji='✍', codepoints=(9997,), name='mkono unaoandika', slug='mkono_unaoandika', annotations=frozenset({'mkono', 'mwili', 'andika'})), EmojiAnnotations(emoji='💅', codepoints=(128133,), name='rangi ya kupaka kwenye kucha', slug='rangi_ya_kupaka_kwenye_kucha', annotations=frozenset({'rangi', 'kucha', 'tunza', 'vipodozi', 'tengeneza kucha', 'mwili'})), EmojiAnnotations(emoji='👂', codepoints=(128066,), name='sikio', slug='sikio', annotations=frozenset({'mwili'})), EmojiAnnotations(emoji='👃', codepoints=(128067,), name='pua', slug='pua', annotations=frozenset({'mwili'})), EmojiAnnotations(emoji='👣', codepoints=(128099,), name='nyayo', slug='nyayo', annotations=frozenset({'alama', 'mavazi', 'mwili'})), EmojiAnnotations(emoji='👀', codepoints=(128064,), name='macho', slug='macho', annotations=frozenset({'jicho', 'uso', 'mwili'})), EmojiAnnotations(emoji='\U0001f441', codepoints=(128065,), name='jicho', slug='jicho', annotations=frozenset({'mwili'})), EmojiAnnotations(emoji='👅', codepoints=(128069,), name='ulimi', slug='ulimi', annotations=frozenset({'mwili'})), EmojiAnnotations(emoji='👄', codepoints=(128068,), name='mdomo', slug='mdomo', annotations=frozenset({'midomo', 'mwili'})), EmojiAnnotations(emoji='💋', codepoints=(128139,), name='alama ya busu', slug='alama_ya_busu', annotations=frozenset({'moyo', 'busu', 'midomo', 'alama', 'mapenzi'})), EmojiAnnotations(emoji='💘', codepoints=(128152,), name='moyo uliopenyezwa mshale', slug='moyo_uliopenyezwa_mshale', annotations=frozenset({'mshale', 'moyo', 'mapenzi', 'alama ya mapenzi'})), EmojiAnnotations(emoji='❤', codepoints=(10084,), name='moyo mwekundu', slug='moyo_mwekundu', annotations=frozenset({'moyo'})), EmojiAnnotations(emoji='💓', codepoints=(128147,), name='moyo unaodunda', slug='moyo_unaodunda', annotations=frozenset({'moyo', 'kupiga', 'mbio', 'mapigo ya moyo'})), EmojiAnnotations(emoji='💔', codepoints=(128148,), name='moyo uliovunjika', slug='moyo_uliovunjika', annotations=frozenset({'moyo', 'vunja', 'vunjika'})), EmojiAnnotations(emoji='💕', codepoints=(128149,), name='mioyo miwili', slug='mioyo_miwili', annotations=frozenset({"moyo' upendo"})), EmojiAnnotations(emoji='💖', codepoints=(128150,), name="moyo unaong'aa", slug="moyo_unaong'aa", annotations=frozenset({'furahia', 'moyo', 'metameta'})), EmojiAnnotations(emoji='💗', codepoints=(128151,), name='moyo uaokua', slug='moyo_uaokua', annotations=frozenset({'', 'wasiwasi', 'mpaigo ya moyo', 'furahia', 'kukua', 'moyo'})), EmojiAnnotations(emoji='💙', codepoints=(128153,), name='moyo ya samawati', slug='moyo_ya_samawati', annotations=frozenset({'moyo', 'samawati'})), EmojiAnnotations(emoji='💚', codepoints=(128154,), name='moyo wa kijani', slug='moyo_wa_kijani', annotations=frozenset({'moyo', 'kijani'})), EmojiAnnotations(emoji='💛', codepoints=(128155,), name='moyo wa manjano', slug='moyo_wa_manjano', annotations=frozenset({'moyo', 'manjano'})), EmojiAnnotations(emoji='💜', codepoints=(128156,), name='moyo wa zambarau', slug='moyo_wa_zambarau', annotations=frozenset({'moyo', 'zambarau'})), EmojiAnnotations(emoji='💝', codepoints=(128157,), name='moyo uliofungwa kwa utepe', slug='moyo_uliofungwa_kwa_utepe', annotations=frozenset({'moyo', 'utepe', 'valentine'})), EmojiAnnotations(emoji='💞', codepoints=(128158,), name='mioyo inayozunguka', slug='mioyo_inayozunguka', annotations=frozenset({'moyo', 'kuzunguka'})), EmojiAnnotations(emoji='💟', codepoints=(128159,), name='mapambo ya moyo', slug='mapambo_ya_moyo', annotations=frozenset({'moyo'})), EmojiAnnotations(emoji='❣', codepoints=(10083,), name='pambo la moyo ulio na alama ya mshangao', slug='pambo_la_moyo_ulio_na_alama_ya_mshangao', annotations=frozenset({'moyo', 'alama', 'mshangao', 'uakifishaji'})), EmojiAnnotations(emoji='💌', codepoints=(128140,), name='barua ya mapenzi', slug='barua_ya_mapenzi', annotations=frozenset({'moyo', 'mapenzi', 'barua', 'upendo'})), EmojiAnnotations(emoji='💤', codepoints=(128164,), name='usingizi', slug='usingizi', annotations=frozenset({'kibonzo'})), EmojiAnnotations(emoji='💢', codepoints=(128162,), name='alama ya hasira', slug='alama_ya_hasira', annotations=frozenset({'hasira', 'kibonzo', 'ghadhabu'})), EmojiAnnotations(emoji='💣', codepoints=(128163,), name='bomu', slug='bomu', annotations=frozenset({'kibonzo'})), EmojiAnnotations(emoji='💥', codepoints=(128165,), name='mgongano', slug='mgongano', annotations=frozenset({'kibonzo', 'mlio'})), EmojiAnnotations(emoji='💦', codepoints=(128166,), name='matone ya jasho', slug='matone_ya_jasho', annotations=frozenset({'kibonzo', 'matone', 'jasho'})), EmojiAnnotations(emoji='💨', codepoints=(128168,), name='kuharakisha', slug='kuharakisha', annotations=frozenset({'dashi', 'kibonzo', 'kukimbia'})), EmojiAnnotations(emoji='💫', codepoints=(128171,), name='kizunguzungu', slug='kizunguzungu', annotations=frozenset({'nyota', 'kibonzo'})), EmojiAnnotations(emoji='💬', codepoints=(128172,), name='kitufe cha usemi', slug='kitufe_cha_usemi', annotations=frozenset({'mazungumzo', 'kibonzo', 'puto', 'ishara', 'usemi'})), EmojiAnnotations(emoji='\U0001f5e8', codepoints=(128488,), name='kitufe cha usemi cha kushoto', slug='kitufe_cha_usemi_cha_kushoto', annotations=frozenset({'mazungumzo', 'usemi'})), EmojiAnnotations(emoji='\U0001f5ef', codepoints=(128495,), name='kitufe cha usemi wa hasira cha kulia', slug='kitufe_cha_usemi_wa_hasira_cha_kulia', annotations=frozenset({'hasira', 'puto', 'ishara', 'ghadhabu'})), EmojiAnnotations(emoji='💭', codepoints=(128173,), name='kitufe cha mawazo', slug='kitufe_cha_mawazo', annotations=frozenset({'wazo', 'kibonzo', 'puto', 'ishara'})), EmojiAnnotations(emoji='👓', codepoints=(128083,), name='miwani', slug='miwani', annotations=frozenset({'jicho', 'maiwani', 'mavazi', 'miwani ya macho'})), EmojiAnnotations(emoji='\U0001f576', codepoints=(128374,), name='miwani ya jua', slug='miwani_ya_jua', annotations=frozenset({'jicho', 'nyeusi', 'miwani ya macho', 'miwani'})), EmojiAnnotations(emoji='👔', codepoints=(128084,), name='tai', slug='tai', annotations=frozenset({'mavazi'})), EmojiAnnotations(emoji='👕', codepoints=(128085,), name='fulana', slug='fulana', annotations=frozenset({'mavazi', 'shati'})), EmojiAnnotations(emoji='👖', codepoints=(128086,), name='suruali ya jinzi', slug='suruali_ya_jinzi', annotations=frozenset({'mavazi', 'suruali'})), EmojiAnnotations(emoji='👗', codepoints=(128087,), name='nguo', slug='nguo', annotations=frozenset({'mavazi'})), EmojiAnnotations(emoji='👘', codepoints=(128088,), name='kimono', slug='kimono', annotations=frozenset({'mavazi'})), EmojiAnnotations(emoji='👙', codepoints=(128089,), name='bikini', slug='bikini', annotations=frozenset({'kuogelea', 'mavazi'})), EmojiAnnotations(emoji='👚', codepoints=(128090,), name='nguo za wanawake', slug='nguo_za_wanawake', annotations=frozenset({'mwanamke', 'mavazi'})), EmojiAnnotations(emoji='👛', codepoints=(128091,), name='kibeti', slug='kibeti', annotations=frozenset({'sarafu', 'mavazi'})), EmojiAnnotations(emoji='👜', codepoints=(128092,), name='mfuko', slug='mfuko', annotations=frozenset({'mavazi'})), EmojiAnnotations(emoji='👝', codepoints=(128093,), name='kipochi', slug='kipochi', annotations=frozenset({'mavazi', 'mkoba'})), EmojiAnnotations(emoji='\U0001f6cd', codepoints=(128717,), name='mifuko ya kubeba bidhaa baada ya kununua', slug='mifuko_ya_kubeba_bidhaa_baada_ya_kununua', annotations=frozenset({'ununuzi', 'hoteli', 'mkoba'})), EmojiAnnotations(emoji='🎒', codepoints=(127890,), name='mfuko wa shuleni', slug='mfuko_wa_shuleni', annotations=frozenset({'shule', 'begi', 'mkoba'})), EmojiAnnotations(emoji='👞', codepoints=(128094,), name='kiatu cha wanaume', slug='kiatu_cha_wanaume', annotations=frozenset({'kiatu', 'mavazi', 'mwanamume'})), EmojiAnnotations(emoji='👟', codepoints=(128095,), name='kiatu cha kukimbia', slug='kiatu_cha_kukimbia', annotations=frozenset({'raba ya kukimbia', 'mbio', 'kiatu', 'mavazi'})), EmojiAnnotations(emoji='👠', codepoints=(128096,), name='kiatu chenye kisigino kirefu', slug='kiatu_chenye_kisigino_kirefu', annotations=frozenset({'mwanamke', 'kiatu', 'mavazi', 'kisigino'})), EmojiAnnotations(emoji='👡', codepoints=(128097,), name='ndara ya mwanamke', slug='ndara_ya_mwanamke', annotations=frozenset({'mwanamke', 'kiatu', 'mavazi', 'ndara'})), EmojiAnnotations(emoji='👢', codepoints=(128098,), name='buti la mwanamke', slug='buti_la_mwanamke', annotations=frozenset({'buti', 'mwanamke', 'kiatu', 'mavazi'})), EmojiAnnotations(emoji='👑', codepoints=(128081,), name='taji', slug='taji', annotations=frozenset({'malkia', 'mavazi', 'mfalme'})), EmojiAnnotations(emoji='👒', codepoints=(128082,), name='kofia ya mwanamke', slug='kofia_ya_mwanamke', annotations=frozenset({'kofia', 'mwanamke', 'mavazi'})), EmojiAnnotations(emoji='🎩', codepoints=(127913,), name='kofia ya mwanamume', slug='kofia_ya_mwanamume', annotations=frozenset({'kofia', 'mavazi', 'juu'})), EmojiAnnotations(emoji='🎓', codepoints=(127891,), name='kofia inayovaliwa kwenye sherehe za kuhitimu masomo', slug='kofia_inayovaliwa_kwenye_sherehe_za_kuhitimu_masomo', annotations=frozenset({'kofia', 'hitimu', 'mavazi', 'kusherehekea'})), EmojiAnnotations(emoji='\U0001f4ff', codepoints=(128255,), name='shanga za maombi', slug='shanga_za_maombi', annotations=frozenset({'mkufu', 'ombi', 'dini', 'mavazi', 'shanga'})), EmojiAnnotations(emoji='💄', codepoints=(128132,), name='rangi ya midomo', slug='rangi_ya_midomo', annotations=frozenset({'vipodozi', 'urembo'})), EmojiAnnotations(emoji='💍', codepoints=(128141,), name='pete', slug='pete', annotations=frozenset({'almasi', 'mapenzi'})), EmojiAnnotations(emoji='💎', codepoints=(128142,), name='kito', slug='kito', annotations=frozenset({'almasi', 'mapenzi'})), EmojiAnnotations(emoji='🐵', codepoints=(128053,), name='uso wa tumbili', slug='uso_wa_tumbili', annotations=frozenset({'uso', 'tumbili'})), EmojiAnnotations(emoji='🐶', codepoints=(128054,), name='uso wa mbwa', slug='uso_wa_mbwa', annotations=frozenset({'mnyama kipenzi', 'uso', 'mbwa'})), EmojiAnnotations(emoji='🐕', codepoints=(128021,), name='mbwa', slug='mbwa', annotations=frozenset({'mnyama kipenzi'})), EmojiAnnotations(emoji='🐩', codepoints=(128041,), name='kijibwa', slug='kijibwa', annotations=frozenset({'mbwa'})), EmojiAnnotations(emoji='🐺', codepoints=(128058,), name='uso wa mbwa mwitu', slug='uso_wa_mbwa_mwitu', annotations=frozenset({'uso', 'mbwa mwitu'})), EmojiAnnotations(emoji='🐱', codepoints=(128049,), name='uso wa paka', slug='uso_wa_paka', annotations=frozenset({'mnyama kipenzi', 'paka', 'uso'})), EmojiAnnotations(emoji='🐈', codepoints=(128008,), name='paka', slug='paka', annotations=frozenset({'mnyama kipenzi'})), EmojiAnnotations(emoji='\U0001f981', codepoints=(129409,), name='uso wa simba', slug='uso_wa_simba', annotations=frozenset({'', 'uso'})), EmojiAnnotations(emoji='🐯', codepoints=(128047,), name='uso wa chui milia', slug='uso_wa_chui_milia', annotations=frozenset({'uso', 'chui milia'})), EmojiAnnotations(emoji='🐴', codepoints=(128052,), name='uso wa farasi', slug='uso_wa_farasi', annotations=frozenset({'uso', 'farasi'})), EmojiAnnotations(emoji='🐎', codepoints=(128014,), name='farasi', slug='farasi', annotations=frozenset({'mashindano', 'kuendesha farasi'})), EmojiAnnotations(emoji='\U0001f984', codepoints=(129412,), name='uso wa mnyama kama farasi mwenye pembe moja', slug='uso_wa_mnyama_kama_farasi_mwenye_pembe_moja', annotations=frozenset({'uso'})), EmojiAnnotations(emoji='🐮', codepoints=(128046,), name="uso wa ng'ombe", slug="uso_wa_ng'ombe", annotations=frozenset({'uso', "ng'ombe"})), EmojiAnnotations(emoji='🐂', codepoints=(128002,), name='maksai', slug='maksai', annotations=frozenset({'fahali', 'zodiaki', 'ng', 'ombe'})), EmojiAnnotations(emoji='🐃', codepoints=(128003,), name='nyati', slug='nyati', annotations=frozenset({'maji'})), EmojiAnnotations(emoji='🐷', codepoints=(128055,), name='uso wa nguruwe', slug='uso_wa_nguruwe', annotations=frozenset({'nguruwe', 'uso'})), EmojiAnnotations(emoji='🐖', codepoints=(128022,), name='nguruwe', slug='nguruwe', annotations=frozenset({'nguruwe jike'})), EmojiAnnotations(emoji='🐗', codepoints=(128023,), name='uso wa nguruwe dume', slug='uso_wa_nguruwe_dume', annotations=frozenset({'nguruwe'})), EmojiAnnotations(emoji='🐽', codepoints=(128061,), name='pua la nguruwe', slug='pua_la_nguruwe', annotations=frozenset({'pua', 'uso', 'nguruwe'})), EmojiAnnotations(emoji='🐏', codepoints=(128015,), name='kondoo dume', slug='kondoo_dume', annotations=frozenset({'kondoo', 'zodiaki'})), EmojiAnnotations(emoji='🐐', codepoints=(128016,), name='mbuzi', slug='mbuzi', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='🐪', codepoints=(128042,), name='ngamia', slug='ngamia', annotations=frozenset({'nundu', 'ngamia mwenye nundu moja'})), EmojiAnnotations(emoji='🐫', codepoints=(128043,), name='ngamia mwenye vibyongo viwili', slug='ngamia_mwenye_vibyongo_viwili', annotations=frozenset({'ngamia', 'nundu', 'ngamia mwenye nundu mbili'})), EmojiAnnotations(emoji='🐘', codepoints=(128024,), name='ndovu', slug='ndovu', annotations=frozenset({'tembo'})), EmojiAnnotations(emoji='🐭', codepoints=(128045,), name='uso wa panya', slug='uso_wa_panya', annotations=frozenset({'uso', 'panya'})), EmojiAnnotations(emoji='🐹', codepoints=(128057,), name='uso wa buku', slug='uso_wa_buku', annotations=frozenset({'mnyama kipenzi', 'uso', 'buku'})), EmojiAnnotations(emoji='🐰', codepoints=(128048,), name='uso wa sungura', slug='uso_wa_sungura', annotations=frozenset({'sungura', 'mnayama kipenzi', 'uso'})), EmojiAnnotations(emoji='🐇', codepoints=(128007,), name='sungura', slug='sungura', annotations=frozenset({'mnayama kipenzi'})), EmojiAnnotations(emoji='🐻', codepoints=(128059,), name='uso wa dubu', slug='uso_wa_dubu', annotations=frozenset({'budu', 'uso'})), EmojiAnnotations(emoji='🐨', codepoints=(128040,), name='koala', slug='koala', annotations=frozenset({'dubu'})), EmojiAnnotations(emoji='🐼', codepoints=(128060,), name='uso wa panda', slug='uso_wa_panda', annotations=frozenset({'uso', 'panda'})), EmojiAnnotations(emoji='🐾', codepoints=(128062,), name='nyayo za mnyama', slug='nyayo_za_mnyama', annotations=frozenset({'nyayo', 'nyayo zenye makucha', 'alama'})), EmojiAnnotations(emoji='🐓', codepoints=(128019,), name='jogoo', slug='jogoo', annotations=frozenset({'jimbi'})), EmojiAnnotations(emoji='🐣', codepoints=(128035,), name='kifaranga kinachoanguliwa', slug='kifaranga_kinachoanguliwa', annotations=frozenset({'kifaranga', 'mtoto', 'kuanguliwa'})), EmojiAnnotations(emoji='🐤', codepoints=(128036,), name='kifaranga', slug='kifaranga', annotations=frozenset({'mtoto'})), EmojiAnnotations(emoji='🐥', codepoints=(128037,), name='kifaranga kinachotazama mbele', slug='kifaranga_kinachotazama_mbele', annotations=frozenset({'kifaranga', 'mtoto'})), EmojiAnnotations(emoji='\U0001f54a', codepoints=(128330,), name='njiwa', slug='njiwa', annotations=frozenset({'paa', 'amani', 'ndege'})), EmojiAnnotations(emoji='🐸', codepoints=(128056,), name='uso wa chura', slug='uso_wa_chura', annotations=frozenset({'uso', 'chura'})), EmojiAnnotations(emoji='🐢', codepoints=(128034,), name='mzee kobe', slug='mzee_kobe', annotations=frozenset({'kobe'})), EmojiAnnotations(emoji='🐍', codepoints=(128013,), name='nyoka', slug='nyoka', annotations=frozenset({'dubu', 'opichasi', 'joka', 'zodiaki'})), EmojiAnnotations(emoji='🐲', codepoints=(128050,), name='uso wa dragoni', slug='uso_wa_dragoni', annotations=frozenset({'dragoni', 'uso', 'kichimbakazi'})), EmojiAnnotations(emoji='🐉', codepoints=(128009,), name='dragoni', slug='dragoni', annotations=frozenset({'kichimbakazi'})), EmojiAnnotations(emoji='🐳', codepoints=(128051,), name='nyangumi anayerusha maji', slug='nyangumi_anayerusha_maji', annotations=frozenset({'kurusha', 'uso', 'nyangumi'})), EmojiAnnotations(emoji='🐬', codepoints=(128044,), name='pomboo', slug='pomboo', annotations=frozenset({'kikono'})), EmojiAnnotations(emoji='🐟', codepoints=(128031,), name='samaki', slug='samaki', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='🐠', codepoints=(128032,), name='samaki wa tropiki', slug='samaki_wa_tropiki', annotations=frozenset({'tropikali', 'samaki'})), EmojiAnnotations(emoji='🐡', codepoints=(128033,), name='aina ya samaki', slug='aina_ya_samaki', annotations=frozenset({'samaki'})), EmojiAnnotations(emoji='🐚', codepoints=(128026,), name='kombe la mzunguko', slug='kombe_la_mzunguko', annotations=frozenset({'mzunguko', 'kombe'})), EmojiAnnotations(emoji='\U0001f980', codepoints=(129408,), name='kaa', slug='kaa', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='🐜', codepoints=(128028,), name='siafu', slug='siafu', annotations=frozenset({'mdudu'})), EmojiAnnotations(emoji='🐝', codepoints=(128029,), name='nyuki', slug='nyuki', annotations=frozenset({'mdudu'})), EmojiAnnotations(emoji='🐞', codepoints=(128030,), name='kombamwiko', slug='kombamwiko', annotations=frozenset({'mdudu', 'mende'})), EmojiAnnotations(emoji='\U0001f577', codepoints=(128375,), name='buibui', slug='buibui', annotations=frozenset({'mdudu'})), EmojiAnnotations(emoji='\U0001f578', codepoints=(128376,), name='tandabui', slug='tandabui', annotations=frozenset({'buibui'})), EmojiAnnotations(emoji='\U0001f982', codepoints=(129410,), name="ng'e", slug="ng'e", annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='💐', codepoints=(128144,), name='shada la maua', slug='shada_la_maua', annotations=frozenset({'ua', 'mmea', 'mapenzi'})), EmojiAnnotations(emoji='🌸', codepoints=(127800,), name='ua la mcheri', slug='ua_la_mcheri', annotations=frozenset({'ua', 'mmea', 'cheri', 'chanua'})), EmojiAnnotations(emoji='💮', codepoints=(128174,), name='ua jeupe', slug='ua_jeupe', annotations=frozenset({'ua'})), EmojiAnnotations(emoji='\U0001f3f5', codepoints=(127989,), name='waridi', slug='waridi', annotations=frozenset({'mmea'})), EmojiAnnotations(emoji='🌹', codepoints=(127801,), name='ua la waridi', slug='ua_la_waridi', annotations=frozenset({'ua', 'mmea'})), EmojiAnnotations(emoji='🌺', codepoints=(127802,), name='haibiskasi', slug='haibiskasi', annotations=frozenset({'ua', 'mmea'})), EmojiAnnotations(emoji='🌻', codepoints=(127803,), name='alizeti', slug='alizeti', annotations=frozenset({'jua', 'ua', 'mmea'})), EmojiAnnotations(emoji='🌼', codepoints=(127804,), name='maua mengi', slug='maua_mengi', annotations=frozenset({'ua', 'mmea'})), EmojiAnnotations(emoji='🌷', codepoints=(127799,), name='tulipu', slug='tulipu', annotations=frozenset({'ua', 'mmea'})), EmojiAnnotations(emoji='🌱', codepoints=(127793,), name='mche', slug='mche', annotations=frozenset({'mmea'})), EmojiAnnotations(emoji='🌲', codepoints=(127794,), name='mmea wenye majani mwaka mzima', slug='mmea_wenye_majani_mwaka_mzima', annotations=frozenset({'mmea', 'mti'})), EmojiAnnotations(emoji='🌳', codepoints=(127795,), name='mti unaopukutika majani yake', slug='mti_unaopukutika_majani_yake', annotations=frozenset({'mmea', 'puputika majani', 'kupuputika', 'mti'})), EmojiAnnotations(emoji='🌴', codepoints=(127796,), name='mnazi', slug='mnazi', annotations=frozenset({'mmea', 'mti'})), EmojiAnnotations(emoji='🌵', codepoints=(127797,), name='dungusi kakati', slug='dungusi_kakati', annotations=frozenset({'mmea'})), EmojiAnnotations(emoji='🌾', codepoints=(127806,), name='shada la mchele', slug='shada_la_mchele', annotations=frozenset({'mchele', 'mmea', 'sikio'})), EmojiAnnotations(emoji='🌿', codepoints=(127807,), name='mimea ya msimu', slug='mimea_ya_msimu', annotations=frozenset({'tawi', 'mmea'})), EmojiAnnotations(emoji='☘', codepoints=(9752,), name='shamroki', slug='shamroki', annotations=frozenset({'mmea'})), EmojiAnnotations(emoji='🍀', codepoints=(127808,), name='klova yenye majani manne', slug='klova_yenye_majani_manne', annotations=frozenset({'4', 'nne', 'tawi', 'mmea', 'klova'})), EmojiAnnotations(emoji='🍁', codepoints=(127809,), name='jani la mshira', slug='jani_la_mshira', annotations=frozenset({'jani', 'mshira', 'mmea', 'kuanguka'})), EmojiAnnotations(emoji='🍂', codepoints=(127810,), name='jani lililoanguka', slug='jani_lililoanguka', annotations=frozenset({'majani', 'mmea', 'kuanguka'})), EmojiAnnotations(emoji='🍃', codepoints=(127811,), name='jani linalopepea kwenye upepo', slug='jani_linalopepea_kwenye_upepo', annotations=frozenset({'pepea', 'tawi', 'mmea', 'upepo', 'puliza'})), EmojiAnnotations(emoji='🍇', codepoints=(127815,), name='zabibu', slug='zabibu', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍈', codepoints=(127816,), name='tikiti', slug='tikiti', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍉', codepoints=(127817,), name='tikitimaji', slug='tikitimaji', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍊', codepoints=(127818,), name='chenza', slug='chenza', annotations=frozenset({'tunda', 'mmea', 'chungwa'})), EmojiAnnotations(emoji='🍋', codepoints=(127819,), name='limau', slug='limau', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍌', codepoints=(127820,), name='ndizi', slug='ndizi', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍍', codepoints=(127821,), name='nanasi', slug='nanasi', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍎', codepoints=(127822,), name='tufaha jekundu', slug='tufaha_jekundu', annotations=frozenset({'jekundu', 'tunda', 'mmea', 'tufaha'})), EmojiAnnotations(emoji='🍏', codepoints=(127823,), name='tufaha la kijani', slug='tufaha_la_kijani', annotations=frozenset({'tunda', 'mmea', 'kijani', 'tufaha'})), EmojiAnnotations(emoji='🍐', codepoints=(127824,), name='pea', slug='pea', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍑', codepoints=(127825,), name='pichi', slug='pichi', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍒', codepoints=(127826,), name='cheri', slug='cheri', annotations=frozenset({'tunda', 'mmea'})), EmojiAnnotations(emoji='🍓', codepoints=(127827,), name='stroberi', slug='stroberi', annotations=frozenset({'tunda', 'beri', 'mmea'})), EmojiAnnotations(emoji='🍅', codepoints=(127813,), name='nyanya', slug='nyanya', annotations=frozenset({'mmea', 'mbogamboga'})), EmojiAnnotations(emoji='🍆', codepoints=(127814,), name='biringanya', slug='biringanya', annotations=frozenset({'mmea', 'mbogamboga'})), EmojiAnnotations(emoji='🌽', codepoints=(127805,), name='mahindi', slug='mahindi', annotations=frozenset({'tazaa', 'mmea', 'nafaka', 'sikio'})), EmojiAnnotations(emoji='\U0001f336', codepoints=(127798,), name='pilipili kali', slug='pilipili_kali', annotations=frozenset({'mmea', 'moto', 'pilipili'})), EmojiAnnotations(emoji='🍄', codepoints=(127812,), name='uyoga', slug='uyoga', annotations=frozenset({'mmea'})), EmojiAnnotations(emoji='🌰', codepoints=(127792,), name='aina ya njugu', slug='aina_ya_njugu', annotations=frozenset({'mmea'})), EmojiAnnotations(emoji='\U0001f9c0', codepoints=(129472,), name='kipande cha jibini', slug='kipande_cha_jibini', annotations=frozenset({'jibini'})), EmojiAnnotations(emoji='🍖', codepoints=(127830,), name='nyama kwenye mfupa', slug='nyama_kwenye_mfupa', annotations=frozenset({'nyama', 'mfupa'})), EmojiAnnotations(emoji='🍗', codepoints=(127831,), name='paja la kuku', slug='paja_la_kuku', annotations=frozenset({'mguu', 'mfupa', 'ndege wanaofugwa', 'kuku'})), EmojiAnnotations(emoji='🍔', codepoints=(127828,), name='hambaga', slug='hambaga', annotations=frozenset({'baga'})), EmojiAnnotations(emoji='🍕', codepoints=(127829,), name='piza', slug='piza', annotations=frozenset({'jibini', 'kipande'})), EmojiAnnotations(emoji='\U0001f32d', codepoints=(127789,), name='soseji katika mkate', slug='soseji_katika_mkate', annotations=frozenset({'frankfurter', 'soseji'})), EmojiAnnotations(emoji='\U0001f32e', codepoints=(127790,), name='chapati iliyojazwa vyakula mbalimbali', slug='chapati_iliyojazwa_vyakula_mbalimbali', annotations=frozenset({'meksiko'})), EmojiAnnotations(emoji='\U0001f32f', codepoints=(127791,), name='mkate wa kimeksiko uliowekwa nyama au maharage ndani', slug='mkate_wa_kimeksiko_uliowekwa_nyama_au_maharage_ndani', annotations=frozenset({'meksiko'})), EmojiAnnotations(emoji='🍲', codepoints=(127858,), name='chungu cha chakula', slug='chungu_cha_chakula', annotations=frozenset({'chungu', 'mchuzi'})), EmojiAnnotations(emoji='🍱', codepoints=(127857,), name='boksi ya kuweka chakula', slug='boksi_ya_kuweka_chakula', annotations=frozenset({'boksi', 'bento'})), EmojiAnnotations(emoji='🍘', codepoints=(127832,), name='chakula kilichotengenezwa kutoka kwa mchele', slug='chakula_kilichotengenezwa_kutoka_kwa_mchele', annotations=frozenset({'mchele'})), EmojiAnnotations(emoji='🍙', codepoints=(127833,), name='mchele uliotengenezwa kwa mtindo wa tufe', slug='mchele_uliotengenezwa_kwa_mtindo_wa_tufe', annotations=frozenset({'mchele', 'mpira', 'kijapani'})), EmojiAnnotations(emoji='🍚', codepoints=(127834,), name='wali', slug='wali', annotations=frozenset({'mchele', 'uliopikwa'})), EmojiAnnotations(emoji='🍛', codepoints=(127835,), name='wali ulio na mchuzi wa viungo', slug='wali_ulio_na_mchuzi_wa_viungo', annotations=frozenset({'mchele', 'mchuzi wa viungo'})), EmojiAnnotations(emoji='🍜', codepoints=(127836,), name='bakuli yenye tambi', slug='bakuli_yenye_tambi', annotations=frozenset({'kupika kwa mvuke', 'tambi za kijapani', 'tambi', 'bakuli'})), EmojiAnnotations(emoji='🍠', codepoints=(127840,), name='kiazi kitamu kilichochomwa', slug='kiazi_kitamu_kilichochomwa', annotations=frozenset({'kiazi', 'tamu', 'kuchoma'})), EmojiAnnotations(emoji='🍢', codepoints=(127842,), name='odeni', slug='odeni', annotations=frozenset({'kibaniko', 'kebabu', 'kijiti', 'chakula cha majini'})), EmojiAnnotations(emoji='🍤', codepoints=(127844,), name='uduvi iliyokaangwa', slug='uduvi_iliyokaangwa', annotations=frozenset({'tempura', 'karangwa', 'uduvi', 'ushimba'})), EmojiAnnotations(emoji='🍥', codepoints=(127845,), name='keki ya samaki iliyozingwa', slug='keki_ya_samaki_iliyozingwa', annotations=frozenset({'zinga', 'samaki', 'vitobosha', 'keki'})), EmojiAnnotations(emoji='🍡', codepoints=(127841,), name='dango', slug='dango', annotations=frozenset({'kibaniko', 'tamu', 'kitindamlo', 'kijapani', 'ijiti'})), EmojiAnnotations(emoji='🍦', codepoints=(127846,), name='aisikrimu laini', slug='aisikrimu_laini', annotations=frozenset({'krimu', 'kitandamlo', 'barafu', 'laini', 'tamu', 'aisikrimu'})), EmojiAnnotations(emoji='🍧', codepoints=(127847,), name='aisikrimu iliyotengenezwa kwa barafu iliyokatwakatwa', slug='aisikrimu_iliyotengenezwa_kwa_barafu_iliyokatwakatwa', annotations=frozenset({'barafu', 'katwakatwa', 'tamu', 'kitindamlo'})), EmojiAnnotations(emoji='🍨', codepoints=(127848,), name='aisikrimu', slug='aisikrimu', annotations=frozenset({'barafu', 'krimu', 'tamu', 'kitindamlo'})), EmojiAnnotations(emoji='🍩', codepoints=(127849,), name='kitumbua', slug='kitumbua', annotations=frozenset({'tamu', 'kitindamlo'})), EmojiAnnotations(emoji='🍪', codepoints=(127850,), name='biskuti', slug='biskuti', annotations=frozenset({'peremende', 'kitindamlo'})), EmojiAnnotations(emoji='🎂', codepoints=(127874,), name='keki ya kusherehekea siku ya kuzaliwa', slug='keki_ya_kusherehekea_siku_ya_kuzaliwa', annotations=frozenset({'vitobosha', 'siku ya kuzaliwa', 'kitindamlo', 'tamu', 'kusherehekea', 'keki'})), EmojiAnnotations(emoji='🍰', codepoints=(127856,), name='keki', slug='keki', annotations=frozenset({'kipande', 'vitobosha', 'kitindamlo', 'tamu'})), EmojiAnnotations(emoji='🍫', codepoints=(127851,), name='chokoleti', slug='chokoleti', annotations=frozenset({'mche', 'tamu', 'kitindamlo'})), EmojiAnnotations(emoji='🍬', codepoints=(127852,), name='peremende', slug='peremende', annotations=frozenset({'kitindamlo'})), EmojiAnnotations(emoji='🍭', codepoints=(127853,), name='pipi', slug='pipi', annotations=frozenset({'tamu', 'kitindamlo'})), EmojiAnnotations(emoji='🍮', codepoints=(127854,), name='faluda', slug='faluda', annotations=frozenset({'pudini', 'kitindamlo', 'tamu'})), EmojiAnnotations(emoji='🍯', codepoints=(127855,), name='chungu cha asali', slug='chungu_cha_asali', annotations=frozenset({'jungu', 'asali', 'tamu'})), EmojiAnnotations(emoji='🍼', codepoints=(127868,), name='chupa ya maziwa ya mtoto', slug='chupa_ya_maziwa_ya_mtoto', annotations=frozenset({'kinywaji', 'chupa', 'maziwa', 'mtoto'})), EmojiAnnotations(emoji='☕', codepoints=(9749,), name='kinywaji moto', slug='kinywaji_moto', annotations=frozenset({'kinywaji', 'kahawa', 'moto', 'chai'})), EmojiAnnotations(emoji='🍵', codepoints=(127861,), name='kikombe kisicho na kishikio', slug='kikombe_kisicho_na_kishikio', annotations=frozenset({'kinywaji', 'kikombe', 'chai', 'kikombe cha chai'})), EmojiAnnotations(emoji='🍶', codepoints=(127862,), name='kinywaji cha kijapani kinachotengenezwa kwa kuvundika mchele', slug='kinywaji_cha_kijapani_kinachotengenezwa_kwa_kuvundika_mchele', annotations=frozenset({'baa', 'kinywaji', 'chupa', 'kikombe'})), EmojiAnnotations(emoji='\U0001f37e', codepoints=(127870,), name='chupa yenye kifuniko kilichofunguliwa', slug='chupa_yenye_kifuniko_kilichofunguliwa', annotations=frozenset({'baa', 'kifuniko', 'kinywaji', 'chupa', 'kufungua'})), EmojiAnnotations(emoji='🍷', codepoints=(127863,), name='glasi ya divai', slug='glasi_ya_divai', annotations=frozenset({'baa', 'kinywaji', 'glasi', 'mvinyo'})), EmojiAnnotations(emoji='🍸', codepoints=(127864,), name='glasi ya kokteli', slug='glasi_ya_kokteli', annotations=frozenset({'baa', 'kokteli', 'kinywaji', 'glasi'})), EmojiAnnotations(emoji='🍹', codepoints=(127865,), name='kinywaji cha tropiki', slug='kinywaji_cha_tropiki', annotations=frozenset({'baa', 'kinywaji', 'tropikali'})), EmojiAnnotations(emoji='🍺', codepoints=(127866,), name='kikombe cha bia', slug='kikombe_cha_bia', annotations=frozenset({'baa', 'kinywaji', 'kukombe', 'bia'})), EmojiAnnotations(emoji='🍻', codepoints=(127867,), name='vikombe vya bia vilivyogonganishwa', slug='vikombe_vya_bia_vilivyogonganishwa', annotations=frozenset({'baa', 'kinywaji', 'kikombe', 'gonganisha', 'bia'})), EmojiAnnotations(emoji='\U0001f37d', codepoints=(127869,), name='uma na kisu na sahani', slug='uma_na_kisu_na_sahani', annotations=frozenset({'sahani', 'kupika', 'uma', 'kisu'})), EmojiAnnotations(emoji='🍴', codepoints=(127860,), name='uma na kisu', slug='uma_na_kisu', annotations=frozenset({'kupika', 'uma', 'kisu'})), EmojiAnnotations(emoji='🍳', codepoints=(127859,), name='kupika', slug='kupika', annotations=frozenset({"kukaang'a", 'yai', 'sufuria'})), EmojiAnnotations(emoji='\U0001f3fa', codepoints=(127994,), name='jungu', slug='jungu', annotations=frozenset({'birika', 'kupika', 'silaha', 'ndoo', 'kunywa', 'zodiaki', 'zana'})), EmojiAnnotations(emoji='🌍', codepoints=(127757,), name='tufe linaloonyesha ulaya-afrika', slug='tufe_linaloonyesha_ulaya_afrika', annotations=frozenset({'tufe', 'afrika', 'dunia', 'ulaya', 'ulimwengu'})), EmojiAnnotations(emoji='🌎', codepoints=(127758,), name='tufe linaloonyesha amerika', slug='tufe_linaloonyesha_amerika', annotations=frozenset({'tufe', 'marekani', 'dunia', 'ulimwengu'})), EmojiAnnotations(emoji='🌏', codepoints=(127759,), name='tufe linaloonyesha asia-australia', slug='tufe_linaloonyesha_asia_australia', annotations=frozenset({'tufe', 'australia', 'dunia', 'ulimwengu', 'asia'})), EmojiAnnotations(emoji='🌐', codepoints=(127760,), name='tufe lenye meridiani', slug='tufe_lenye_meridiani', annotations=frozenset({'tufe', 'dunia', 'ulimwengu', 'meridiani'})), EmojiAnnotations(emoji='\U0001f5fa', codepoints=(128506,), name='ramani ya dunia', slug='ramani_ya_dunia', annotations=frozenset({'dunia', 'ramani'})), EmojiAnnotations(emoji='\U0001f3d4', codepoints=(127956,), name='mlima wenye theluji', slug='mlima_wenye_theluji', annotations=frozenset({'baridi', 'theluji', 'mlima'})), EmojiAnnotations(emoji='🌋', codepoints=(127755,), name='volkano', slug='volkano', annotations=frozenset({'kulipuka', 'hali ya hewa', 'mlima'})), EmojiAnnotations(emoji='🗻', codepoints=(128507,), name='mlima fuji', slug='mlima_fuji', annotations=frozenset({'fuji', 'mlima'})), EmojiAnnotations(emoji='\U0001f3d6', codepoints=(127958,), name='ufuo na mwavuli', slug='ufuo_na_mwavuli', annotations=frozenset({'ufuo', 'mwavuli'})), EmojiAnnotations(emoji='\U0001f3dd', codepoints=(127965,), name='kisiwa cha jangwa', slug='kisiwa_cha_jangwa', annotations=frozenset({'kisiwa', 'jangwa'})), EmojiAnnotations(emoji='\U0001f3de', codepoints=(127966,), name='mbuga ya taifa ya wanyama', slug='mbuga_ya_taifa_ya_wanyama', annotations=frozenset({'mbuga'})), EmojiAnnotations(emoji='\U0001f3db', codepoints=(127963,), name='jengo la zamani', slug='jengo_la_zamani', annotations=frozenset({'jengo', 'zamani'})), EmojiAnnotations(emoji='\U0001f3d7', codepoints=(127959,), name='ujenzi wa jengo', slug='ujenzi_wa_jengo', annotations=frozenset({'jengo', 'ujenzi'})), EmojiAnnotations(emoji='\U0001f3d8', codepoints=(127960,), name='majengo ya nyumba', slug='majengo_ya_nyumba', annotations=frozenset({'jengo', 'nyumba'})), EmojiAnnotations(emoji='\U0001f3d9', codepoints=(127961,), name='mwonekano wa jiji', slug='mwonekano_wa_jiji', annotations=frozenset({'jengo', 'jiji'})), EmojiAnnotations(emoji='\U0001f3da', codepoints=(127962,), name='jengo la nyumba lililochakaa', slug='jengo_la_nyumba_lililochakaa', annotations=frozenset({'jengo', 'nyumba', 'chakaa'})), EmojiAnnotations(emoji='🏠', codepoints=(127968,), name='jengo la nyumba', slug='jengo_la_nyumba', annotations=frozenset({'jengo', 'nyumbani', 'nyumba'})), EmojiAnnotations(emoji='🏡', codepoints=(127969,), name='nyumba yenye ua', slug='nyumba_yenye_ua', annotations=frozenset({'jengo', 'nyumbani', 'nyumba', 'bustani'})), EmojiAnnotations(emoji='⛪', codepoints=(9962,), name='kanisa', slug='kanisa', annotations=frozenset({'ukristo', 'dini', 'jengo', 'msalaba'})), EmojiAnnotations(emoji='\U0001f54b', codepoints=(128331,), name='kaaba', slug='kaaba', annotations=frozenset({'dini', 'uislamu', 'muislamu'})), EmojiAnnotations(emoji='\U0001f54c', codepoints=(128332,), name='msikiti', slug='msikiti', annotations=frozenset({'dini', 'uislamu', 'muislamu'})), EmojiAnnotations(emoji='\U0001f54d', codepoints=(128333,), name='hekalu la kiyahudi', slug='hekalu_la_kiyahudi', annotations=frozenset({'dini', 'uyahudi', 'myahudi', 'hekalu'})), EmojiAnnotations(emoji='⛩', codepoints=(9961,), name='madhabahu ya shinto', slug='madhabahu_ya_shinto', annotations=frozenset({'dini', 'shinto', 'madhabahu'})), EmojiAnnotations(emoji='🏢', codepoints=(127970,), name='jengo la ofisi', slug='jengo_la_ofisi', annotations=frozenset({'jengo'})), EmojiAnnotations(emoji='🏣', codepoints=(127971,), name='posta ya japani', slug='posta_ya_japani', annotations=frozenset({'jengo', 'kijapani', 'posta'})), EmojiAnnotations(emoji='🏤', codepoints=(127972,), name='posta', slug='posta', annotations=frozenset({'jengo', 'ulaya'})), EmojiAnnotations(emoji='🏥', codepoints=(127973,), name='hospitali', slug='hospitali', annotations=frozenset({'jengo', 'dawa', 'daktari'})), EmojiAnnotations(emoji='🏦', codepoints=(127974,), name='benki', slug='benki', annotations=frozenset({'jengo'})), EmojiAnnotations(emoji='🏨', codepoints=(127976,), name='hoteli', slug='hoteli', annotations=frozenset({'jengo'})), EmojiAnnotations(emoji='🏩', codepoints=(127977,), name='hoteli ya mapenzi', slug='hoteli_ya_mapenzi', annotations=frozenset({'jengo', 'hoteli', 'upendo'})), EmojiAnnotations(emoji='🏪', codepoints=(127978,), name='duka la karibu', slug='duka_la_karibu', annotations=frozenset({'jengo', 'duka'})), EmojiAnnotations(emoji='🏫', codepoints=(127979,), name='shule', slug='shule', annotations=frozenset({'jengo'})), EmojiAnnotations(emoji='🏬', codepoints=(127980,), name='duka kuu', slug='duka_kuu', annotations=frozenset({'jengo', 'duka'})), EmojiAnnotations(emoji='🏭', codepoints=(127981,), name='kiwanda', slug='kiwanda', annotations=frozenset({'jengo'})), EmojiAnnotations(emoji='🏯', codepoints=(127983,), name='kasri la kijapani', slug='kasri_la_kijapani', annotations=frozenset({'kasri', 'jengo', 'kijapani'})), EmojiAnnotations(emoji='🏰', codepoints=(127984,), name='kasri', slug='kasri', annotations=frozenset({'jengo', 'ulaya'})), EmojiAnnotations(emoji='💒', codepoints=(128146,), name='harusi', slug='harusi', annotations=frozenset({'kanisa', 'mapenzi'})), EmojiAnnotations(emoji='🗼', codepoints=(128508,), name='mnara wa tokyo', slug='mnara_wa_tokyo', annotations=frozenset({'tokyo', 'mnara'})), EmojiAnnotations(emoji='🗽', codepoints=(128509,), name='sanamu ya uhuru', slug='sanamu_ya_uhuru', annotations=frozenset({'uhuru', 'sanamu'})), EmojiAnnotations(emoji='🗾', codepoints=(128510,), name='ramani ya japani', slug='ramani_ya_japani', annotations=frozenset({'japani', 'ramani'})), EmojiAnnotations(emoji='⛺', codepoints=(9978,), name='hema', slug='hema', annotations=frozenset({'kupiga kambi'})), EmojiAnnotations(emoji='🌁', codepoints=(127745,), name='ukungu', slug='ukungu', annotations=frozenset({'hali ya hewa'})), EmojiAnnotations(emoji='🌃', codepoints=(127747,), name='usiku na nyota', slug='usiku_na_nyota', annotations=frozenset({'nyota', 'hali ya hewa', 'usiku'})), EmojiAnnotations(emoji='🌄', codepoints=(127748,), name='macheo kwenye milima', slug='macheo_kwenye_milima', annotations=frozenset({'jua', 'macheo', 'asubuhi', 'hali yahewa', 'mlima'})), EmojiAnnotations(emoji='🌅', codepoints=(127749,), name='macheo', slug='macheo', annotations=frozenset({'jua', 'asubuhi', 'hali ya hewa'})), EmojiAnnotations(emoji='🌆', codepoints=(127750,), name='mwonekano wa jiji usiku', slug='mwonekano_wa_jiji_usiku', annotations=frozenset({'machweo', 'jiji', 'jua', 'hali ya hewa', 'jioni', 'jengo', 'giza', 'mandhari'})), EmojiAnnotations(emoji='🌇', codepoints=(127751,), name='machweo', slug='machweo', annotations=frozenset({'jua', 'jengo', 'giza', 'hali ya hewa'})), EmojiAnnotations(emoji='🌉', codepoints=(127753,), name='daraja usiku', slug='daraja_usiku', annotations=frozenset({'daraja', 'hali ya hewa', 'usiku'})), EmojiAnnotations(emoji='♨', codepoints=(9832,), name='chemichemi za maji ya moto', slug='chemichemi_za_maji_ya_moto', annotations=frozenset({'moto', 'chemcheni za maji moto', 'chemchemi', 'mvuke'})), EmojiAnnotations(emoji='🌌', codepoints=(127756,), name='kilimia', slug='kilimia', annotations=frozenset({'hali ya jwa', 'anga'})), EmojiAnnotations(emoji='🎠', codepoints=(127904,), name='farasi inayozunguka', slug='farasi_inayozunguka', annotations=frozenset({'farasi', 'kuzunguka'})), EmojiAnnotations(emoji='🎡', codepoints=(127905,), name='gurudumu linalozunguka', slug='gurudumu_linalozunguka', annotations=frozenset({'ferris', 'sehemu za burudani', 'gurudumu'})), EmojiAnnotations(emoji='🎢', codepoints=(127906,), name='rola kosta', slug='rola_kosta', annotations=frozenset({'viti vinavyozunguka', 'sehemu za burudani', 'gurudumu'})), EmojiAnnotations(emoji='💈', codepoints=(128136,), name='nguzo ya kinyozi', slug='nguzo_ya_kinyozi', annotations=frozenset({'nguzo', 'kinyozi', 'kunyolewa'})), EmojiAnnotations(emoji='🎪', codepoints=(127914,), name='hema ya sarakasi', slug='hema_ya_sarakasi', annotations=frozenset({'sarakasi', 'hema'})), EmojiAnnotations(emoji='🎭', codepoints=(127917,), name='sanaa', slug='sanaa', annotations=frozenset({'ukumbi wa maigizo', 'kuigiza', 'barakoa'})), EmojiAnnotations(emoji='\U0001f5bc', codepoints=(128444,), name='fremu yenye picha', slug='fremu_yenye_picha', annotations=frozenset({'makumbusho', 'sanaa', 'fremu', 'picha', 'kuchora'})), EmojiAnnotations(emoji='🎨', codepoints=(127912,), name='paleti ya msanii', slug='paleti_ya_msanii', annotations=frozenset({'makumbusho', 'sanaa', 'paleti', 'kuchora'})), EmojiAnnotations(emoji='🎰', codepoints=(127920,), name='mashine ya kamari', slug='mashine_ya_kamari', annotations=frozenset({'mchezo'})), EmojiAnnotations(emoji='🚂', codepoints=(128642,), name='garimoshi', slug='garimoshi', annotations=frozenset({'injini', 'gari', 'reli', 'mvuke', 'treni'})), EmojiAnnotations(emoji='🚃', codepoints=(128643,), name='gari la moshi', slug='gari_la_moshi', annotations=frozenset({'tramu', 'treni', 'reli', 'gari', 'basi la tramu', 'umeme'})), EmojiAnnotations(emoji='🚄', codepoints=(128644,), name='treni yenye kasi', slug='treni_yenye_kasi', annotations=frozenset({'gari', 'reli', 'kasi', 'treni', 'shinkansen'})), EmojiAnnotations(emoji='🚅', codepoints=(128645,), name='treni yenye kasi yenye umbo la risasi', slug='treni_yenye_kasi_yenye_umbo_la_risasi', annotations=frozenset({'treni', 'reli', 'gari', 'risasi', 'kasi', 'shinkansen'})), EmojiAnnotations(emoji='🚆', codepoints=(128646,), name='treni', slug='treni', annotations=frozenset({'gari', 'reli'})), EmojiAnnotations(emoji='🚇', codepoints=(128647,), name='metro', slug='metro', annotations=frozenset({'reli ya chini ya ardhi', 'gari'})), EmojiAnnotations(emoji='🚈', codepoints=(128648,), name='reli nyepesi', slug='reli_nyepesi', annotations=frozenset({'gari', 'reli'})), EmojiAnnotations(emoji='🚉', codepoints=(128649,), name='kituo', slug='kituo', annotations=frozenset({'gari', 'reli', 'teni'})), EmojiAnnotations(emoji='🚊', codepoints=(128650,), name='tramu', slug='tramu', annotations=frozenset({'gari', 'basi la tramu'})), EmojiAnnotations(emoji='🚝', codepoints=(128669,), name='reli moja', slug='reli_moja', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='🚞', codepoints=(128670,), name='reli ya milimani', slug='reli_ya_milimani', annotations=frozenset({'gari', 'reli', 'mlima'})), EmojiAnnotations(emoji='🚋', codepoints=(128651,), name='gari la tramu', slug='gari_la_tramu', annotations=frozenset({'tramu', 'gari', 'basi la tramu'})), EmojiAnnotations(emoji='🚌', codepoints=(128652,), name='basi', slug='basi', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='🚍', codepoints=(128653,), name='basi linalokuja', slug='basi_linalokuja', annotations=frozenset({'linalokuja', 'gari', 'basi'})), EmojiAnnotations(emoji='🚎', codepoints=(128654,), name='kiberenge', slug='kiberenge', annotations=frozenset({'tramu', 'gari', 'basi', 'toroli'})), EmojiAnnotations(emoji='🚏', codepoints=(128655,), name='kituo cha basi', slug='kituo_cha_basi', annotations=frozenset({'gari', 'kituo'})), EmojiAnnotations(emoji='🚐', codepoints=(128656,), name='basi dogo', slug='basi_dogo', annotations=frozenset({'gari', 'basi'})), EmojiAnnotations(emoji='🚑', codepoints=(128657,), name='ambulansi', slug='ambulansi', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='🚒', codepoints=(128658,), name='gari la zimamoto', slug='gari_la_zimamoto', annotations=frozenset({'injini', 'gari', 'moto', 'lori'})), EmojiAnnotations(emoji='🚓', codepoints=(128659,), name='gari la polisi', slug='gari_la_polisi', annotations=frozenset({'gari', 'polisi', 'ziara'})), EmojiAnnotations(emoji='🚔', codepoints=(128660,), name='gari la polisi linalokuja', slug='gari_la_polisi_linalokuja', annotations=frozenset({'linalokuja', 'gari', 'polisi'})), EmojiAnnotations(emoji='🚕', codepoints=(128661,), name='teksi', slug='teksi', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='🚖', codepoints=(128662,), name='teksi inayokuja', slug='teksi_inayokuja', annotations=frozenset({'linalokuja', 'gari', 'teksi'})), EmojiAnnotations(emoji='🚗', codepoints=(128663,), name='gari', slug='gari', annotations=frozenset({'motokaa'})), EmojiAnnotations(emoji='🚘', codepoints=(128664,), name='gari linalokuja', slug='gari_linalokuja', annotations=frozenset({'linalokuja', 'gari', 'motokaa'})), EmojiAnnotations(emoji='🚙', codepoints=(128665,), name='gari la burudani', slug='gari_la_burudani', annotations=frozenset({'gari', 'rv', 'la burudani'})), EmojiAnnotations(emoji='🚚', codepoints=(128666,), name='gari la kusafirisha mizigo', slug='gari_la_kusafirisha_mizigo', annotations=frozenset({'gari', 'kusafirisha', 'lori'})), EmojiAnnotations(emoji='🚛', codepoints=(128667,), name='lori linalobeba mizigo', slug='lori_linalobeba_mizigo', annotations=frozenset({'gari', 'lori', 'lori dogo'})), EmojiAnnotations(emoji='🚜', codepoints=(128668,), name='trekta', slug='trekta', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='🚲', codepoints=(128690,), name='baisikeli', slug='baisikeli', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='⛽', codepoints=(9981,), name='pampu ya mafuta', slug='pampu_ya_mafuta', annotations=frozenset({'pampu', 'mafuta', 'kituo'})), EmojiAnnotations(emoji='\U0001f6e3', codepoints=(128739,), name='barabara kuu', slug='barabara_kuu', annotations=frozenset({'barabara'})), EmojiAnnotations(emoji='\U0001f6e4', codepoints=(128740,), name='njia ya reli', slug='njia_ya_reli', annotations=frozenset({'reli', 'treni'})), EmojiAnnotations(emoji='🚨', codepoints=(128680,), name='taa ya gari la polisi', slug='taa_ya_gari_la_polisi', annotations=frozenset({'mwanga', 'kuzunguka', 'gari', 'polisi', 'taa'})), EmojiAnnotations(emoji='🚥', codepoints=(128677,), name='taa mlalo ya trafiki', slug='taa_mlalo_ya_trafiki', annotations=frozenset({'trafiki', 'ishara', 'taa'})), EmojiAnnotations(emoji='🚦', codepoints=(128678,), name='taa wima ya trafiki', slug='taa_wima_ya_trafiki', annotations=frozenset({'trafiki', 'ishara', 'taa'})), EmojiAnnotations(emoji='🚧', codepoints=(128679,), name='ujenzi', slug='ujenzi', annotations=frozenset({'kizuizi'})), EmojiAnnotations(emoji='⚓', codepoints=(9875,), name='nanga', slug='nanga', annotations=frozenset({'meli', 'zana'})), EmojiAnnotations(emoji='⛵', codepoints=(9973,), name='mashua', slug='mashua', annotations=frozenset({'bahari', 'boti', 'gari', 'mashura', 'mahali pa kutembelea watalii'})), EmojiAnnotations(emoji='🚣', codepoints=(128675,), name='ngalawa', slug='ngalawa', annotations=frozenset({'boti', 'gari'})), EmojiAnnotations(emoji='🚤', codepoints=(128676,), name='mashua ya kasi', slug='mashua_ya_kasi', annotations=frozenset({'boti', 'gari'})), EmojiAnnotations(emoji='\U0001f6f3', codepoints=(128755,), name='meli ya abiria', slug='meli_ya_abiria', annotations=frozenset({'gari', 'abiria', 'meli'})), EmojiAnnotations(emoji='⛴', codepoints=(9972,), name='kivuko', slug='kivuko', annotations=frozenset({'boti'})), EmojiAnnotations(emoji='\U0001f6e5', codepoints=(128741,), name='motaboti', slug='motaboti', annotations=frozenset({'boti', 'gari'})), EmojiAnnotations(emoji='🚢', codepoints=(128674,), name='meli', slug='meli', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='✈', codepoints=(9992,), name='ndege', slug='ndege', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='\U0001f6e9', codepoints=(128745,), name='ndege ndogo', slug='ndege_ndogo', annotations=frozenset({'gari', 'ndege'})), EmojiAnnotations(emoji='\U0001f6eb', codepoints=(128747,), name='ndege inayoondoka', slug='ndege_inayoondoka', annotations=frozenset({'kuingia', 'gari', 'kuondoka', 'ndege'})), EmojiAnnotations(emoji='\U0001f6ec', codepoints=(128748,), name='ndege inayowasili', slug='ndege_inayowasili', annotations=frozenset({'kutua', 'gari', 'kuwasili', 'inaasili', 'ndege'})), EmojiAnnotations(emoji='🚁', codepoints=(128641,), name='helikopta', slug='helikopta', annotations=frozenset({'gari'})), EmojiAnnotations(emoji='🚟', codepoints=(128671,), name='reli inayoelea angani', slug='reli_inayoelea_angani', annotations=frozenset({'elea', 'reli', 'gari'})), EmojiAnnotations(emoji='🚠', codepoints=(128672,), name='gari linalosafiri milimani kwa kamba', slug='gari_linalosafiri_milimani_kwa_kamba', annotations=frozenset({"gari linalosafiri kwenye kamba zilizoning'ing'izwa hewani", 'gari', 'kebo'})), EmojiAnnotations(emoji='🚡', codepoints=(128673,), name='tramu inayosafiri angani kwa kamba', slug='tramu_inayosafiri_angani_kwa_kamba', annotations=frozenset({"gari linalosafiri kwenye kamba zilizoning'ing'izwa hewani", 'njia ya tramu', 'kebo', 'njia ya kamba', 'gari', 'hewani'})), EmojiAnnotations(emoji='🚀', codepoints=(128640,), name='roketi', slug='roketi', annotations=frozenset({'gari', 'anga'})), EmojiAnnotations(emoji='\U0001f6f0', codepoints=(128752,), name='setilaiti', slug='setilaiti', annotations=frozenset({'gari', 'anga'})), EmojiAnnotations(emoji='\U0001f6ce', codepoints=(128718,), name='kengele ya mwandazi', slug='kengele_ya_mwandazi', annotations=frozenset({'hoteli', 'kengele', 'mwandazi'})), EmojiAnnotations(emoji='\U0001f6cc', codepoints=(128716,), name='mtu aliyelala kitandani', slug='mtu_aliyelala_kitandani', annotations=frozenset({'lala', 'hoteli'})), EmojiAnnotations(emoji='\U0001f6cf', codepoints=(128719,), name='kitanda', slug='kitanda', annotations=frozenset({'lala', 'hoteli'})), EmojiAnnotations(emoji='\U0001f6cb', codepoints=(128715,), name='kochi na taa', slug='kochi_na_taa', annotations=frozenset({'taa', 'hoteli', 'kochi'})), EmojiAnnotations(emoji='🚿', codepoints=(128703,), name='bafu ya manyunyu', slug='bafu_ya_manyunyu', annotations=frozenset({'maji'})), EmojiAnnotations(emoji='🛀', codepoints=(128704,), name='mtu anayeoga', slug='mtu_anayeoga', annotations=frozenset({'hodhi', 'bafu'})), EmojiAnnotations(emoji='⌛', codepoints=(8987,), name='shisha', slug='shisha', annotations=frozenset({'kipima muda', 'mchanga'})), EmojiAnnotations(emoji='⏳', codepoints=(9203,), name='shisha inayotiririsha mchanga', slug='shisha_inayotiririsha_mchanga', annotations=frozenset({'kipima muda', 'mchanga', 'shisha'})), EmojiAnnotations(emoji='⏰', codepoints=(9200,), name='kipima muda', slug='kipima_muda', annotations=frozenset({'saa'})), EmojiAnnotations(emoji='⏱', codepoints=(9201,), name='saa ya michezo', slug='saa_ya_michezo', annotations=frozenset({'saa'})), EmojiAnnotations(emoji='⏲', codepoints=(9202,), name='saa ya kupima muda', slug='saa_ya_kupima_muda', annotations=frozenset({'kipima muda', 'saa'})), EmojiAnnotations(emoji='\U0001f570', codepoints=(128368,), name='saa ya mezani', slug='saa_ya_mezani', annotations=frozenset({'saa'})), EmojiAnnotations(emoji='🕛', codepoints=(128347,), name='saa sita', slug='saa_sita', annotations=frozenset({'saa', 'sita', '00', '12', '12:00'})), EmojiAnnotations(emoji='🕧', codepoints=(128359,), name='saa sita na nusu', slug='saa_sita_na_nusu', annotations=frozenset({'sita', '12', '12:30', 'saa', 'nusu', '30'})), EmojiAnnotations(emoji='🕐', codepoints=(128336,), name='saa saba', slug='saa_saba', annotations=frozenset({'saba', '1:00', '00', 'saa', '1'})), EmojiAnnotations(emoji='🕜', codepoints=(128348,), name='saa saba na nusu', slug='saa_saba_na_nusu', annotations=frozenset({'saba', '1', '1:30', 'saa', 'nusu', '30'})), EmojiAnnotations(emoji='🕑', codepoints=(128337,), name='saa nane', slug='saa_nane', annotations=frozenset({'2:00', 'nane', '2', '00', 'saa'})), EmojiAnnotations(emoji='🕝', codepoints=(128349,), name='saa nane na nusu', slug='saa_nane_na_nusu', annotations=frozenset({'2:30', 'saa', 'nusu', 'nane', '2', '30'})), EmojiAnnotations(emoji='🕒', codepoints=(128338,), name='saa tisa', slug='saa_tisa', annotations=frozenset({'tisa', '3:00', '00', 'saa', '3'})), EmojiAnnotations(emoji='🕞', codepoints=(128350,), name='saa tisa na nusu', slug='saa_tisa_na_nusu', annotations=frozenset({'tisa', '3', 'saa', 'nusu', '3:30', '30'})), EmojiAnnotations(emoji='🕓', codepoints=(128339,), name='saa kumi', slug='saa_kumi', annotations=frozenset({'4', '4:00', '00', 'saa', 'kumi'})), EmojiAnnotations(emoji='🕟', codepoints=(128351,), name='saa kumi na nusu', slug='saa_kumi_na_nusu', annotations=frozenset({'kumi', '4:30', 'saa', '4', 'nusu', '30'})), EmojiAnnotations(emoji='🕔', codepoints=(128340,), name='saa kumi na moja', slug='saa_kumi_na_moja', annotations=frozenset({'5', 'kumi na moja', '00', '5:00', 'saa'})), EmojiAnnotations(emoji='🕠', codepoints=(128352,), name='saa kumi na moja na nusu', slug='saa_kumi_na_moja_na_nusu', annotations=frozenset({'5:30', 'kumi na moja', '5', 'saa', 'nusu', '30'})), EmojiAnnotations(emoji='🕕', codepoints=(128341,), name='saa kumi na mbili', slug='saa_kumi_na_mbili', annotations=frozenset({'kumi na mbili', '6:00', '00', '6', 'saa'})), EmojiAnnotations(emoji='🕡', codepoints=(128353,), name='sa kumi na mbili na nusu', slug='sa_kumi_na_mbili_na_nusu', annotations=frozenset({'6', 'kumi na mbili', 'saa', 'nusu', '6:30', '30'})), EmojiAnnotations(emoji='🕖', codepoints=(128342,), name='saa moja', slug='saa_moja', annotations=frozenset({'7', 'moja', '00', '7:00', 'saa'})), EmojiAnnotations(emoji='🕢', codepoints=(128354,), name='saa moja na nusu', slug='saa_moja_na_nusu', annotations=frozenset({'7', 'moja', '7:30', 'saa', 'nusu', '30'})), EmojiAnnotations(emoji='🕗', codepoints=(128343,), name='saa mbili', slug='saa_mbili', annotations=frozenset({'8', 'mbili', '00', '8:00', 'saa'})), EmojiAnnotations(emoji='🕣', codepoints=(128355,), name='saa mbili na nusu', slug='saa_mbili_na_nusu', annotations=frozenset({'mbili', '8:30', 'saa', '8', 'nusu', '30'})), EmojiAnnotations(emoji='🕘', codepoints=(128344,), name='saa tatu', slug='saa_tatu', annotations=frozenset({'9:00', 'tatu', '00', 'saa', '9'})), EmojiAnnotations(emoji='🕤', codepoints=(128356,), name='saa tatu na nusu', slug='saa_tatu_na_nusu', annotations=frozenset({'tatu', 'saa', '9', 'nusu', '30', '9:30'})), EmojiAnnotations(emoji='🕙', codepoints=(128345,), name='saa nne', slug='saa_nne', annotations=frozenset({'nne', '10', '10:00', '00', 'saa'})), EmojiAnnotations(emoji='🕥', codepoints=(128357,), name='saa nne na nusu', slug='saa_nne_na_nusu', annotations=frozenset({'10', 'nne', '10:30', 'saa', 'nusu', '30'})), EmojiAnnotations(emoji='🕚', codepoints=(128346,), name='saa tano', slug='saa_tano', annotations=frozenset({'11', 'tano', '00', '11:00', 'saa'})), EmojiAnnotations(emoji='🕦', codepoints=(128358,), name='saa tano na nusu', slug='saa_tano_na_nusu', annotations=frozenset({'11', 'tano', '11:30', 'saa', 'nusu', '30'})), EmojiAnnotations(emoji='🌑', codepoints=(127761,), name='mwezi mpya', slug='mwezi_mpya', annotations=frozenset({'mwezi', 'nyeusi', 'hali ya hewa', 'anga'})), EmojiAnnotations(emoji='🌒', codepoints=(127762,), name='mwezi mwandamo', slug='mwezi_mwandamo', annotations=frozenset({'mwezi', 'hali yahewa', 'kuanza', 'anga'})), EmojiAnnotations(emoji='🌓', codepoints=(127763,), name='mwezi wa robo ya kwanza', slug='mwezi_wa_robo_ya_kwanza', annotations=frozenset({'mwezi', 'hali ya hewa', 'robo', 'anga'})), EmojiAnnotations(emoji='🌔', codepoints=(127764,), name='mwezi ulioangazwa zaidi ya nusu unaotanda', slug='mwezi_ulioangazwa_zaidi_ya_nusu_unaotanda', annotations=frozenset({'mwezi', 'kuanza', 'hali ya hewa', 'mwezi ulioangazwa zaidi ya nusu', 'anga'})), EmojiAnnotations(emoji='🌕', codepoints=(127765,), name='mwezi kamili', slug='mwezi_kamili', annotations=frozenset({'mwezi', 'kamili', 'hali ya hewa', 'anga'})), EmojiAnnotations(emoji='🌖', codepoints=(127766,), name='mwezi ulioangazwa zaidi ya nusu unaofifia', slug='mwezi_ulioangazwa_zaidi_ya_nusu_unaofifia', annotations=frozenset({'mwezi', 'hali ya hewa', 'mwezi ulioangazwa zaidi ya nusu', 'anga', 'kuisha'})), EmojiAnnotations(emoji='🌗', codepoints=(127767,), name='mwezi wa robo ya mwisho', slug='mwezi_wa_robo_ya_mwisho', annotations=frozenset({'mwezi', 'hali ya hewa', 'robo', 'anga'})), EmojiAnnotations(emoji='🌘', codepoints=(127768,), name='mwezi kongo', slug='mwezi_kongo', annotations=frozenset({'mwezi', 'hali yahewa', 'mwezi mwandamo', 'anga', 'kuisha'})), EmojiAnnotations(emoji='🌙', codepoints=(127769,), name='mwezi unaoandama mwezi mpya', slug='mwezi_unaoandama_mwezi_mpya', annotations=frozenset({'mwezi', 'mwezi mwandamo', 'hali ya hewa', 'anga'})), EmojiAnnotations(emoji='🌚', codepoints=(127770,), name='uso wa mwezi mpya', slug='uso_wa_mwezi_mpya', annotations=frozenset({'mwezi', 'uso', 'hali ya hewa', 'anga'})), EmojiAnnotations(emoji='🌛', codepoints=(127771,), name='mwezi wa robo ya kwanza wenye uso', slug='mwezi_wa_robo_ya_kwanza_wenye_uso', annotations=frozenset({'mwezi', 'uso', 'hali ya hewa', 'robo', 'anga'})), EmojiAnnotations(emoji='🌜', codepoints=(127772,), name='mwezi wa robo ya mwisho wenye uso', slug='mwezi_wa_robo_ya_mwisho_wenye_uso', annotations=frozenset({'mwezi', 'uso', 'hali ya hewa', 'robo', 'anga'})), EmojiAnnotations(emoji='\U0001f321', codepoints=(127777,), name='pima joto', slug='pima_joto', annotations=frozenset({'hali ya hewa'})), EmojiAnnotations(emoji='☀', codepoints=(9728,), name='jua', slug='jua', annotations=frozenset({'miali', 'hali ya hewa', 'anga', "kung'aa"})), EmojiAnnotations(emoji='🌝', codepoints=(127773,), name='uso unaokaa mwezi', slug='uso_unaokaa_mwezi', annotations=frozenset({'kamili', 'uso', 'hali ya hewa', 'anga', "kung'aa"})), EmojiAnnotations(emoji='🌞', codepoints=(127774,), name='uso unaokaa jua', slug='uso_unaokaa_jua', annotations=frozenset({'anga', 'jua', 'hali ya hewa', 'usi', "kung'aa"})), EmojiAnnotations(emoji='⭐', codepoints=(11088,), name='nyota nyeupe ya wastani', slug='nyota_nyeupe_ya_wastani', annotations=frozenset({'nyota'})), EmojiAnnotations(emoji='🌟', codepoints=(127775,), name="nyota inayong'aa", slug="nyota_inayong'aa", annotations=frozenset({'nyota', 'kumetameta', "ng'aa", "kung'ara", 'metameta'})), EmojiAnnotations(emoji='🌠', codepoints=(127776,), name='kimwondo', slug='kimwondo', annotations=frozenset({'kaunguka', 'nyota', 'anga'})), EmojiAnnotations(emoji='☁', codepoints=(9729,), name='wingu', slug='wingu', annotations=frozenset({'hali ya hewa'})), EmojiAnnotations(emoji='⛅', codepoints=(9925,), name='jua nyuma ya wingu', slug='jua_nyuma_ya_wingu', annotations=frozenset({'wingu', 'jua', 'hali ya hewa'})), EmojiAnnotations(emoji='⛈', codepoints=(9928,), name='wingu pamoja na radi na mvua', slug='wingu_pamoja_na_radi_na_mvua', annotations=frozenset({'wingu', 'ngurumo', 'mvua', 'hali ya hewa'})), EmojiAnnotations(emoji='\U0001f324', codepoints=(127780,), name='jua nyuma ya wingu dogo', slug='jua_nyuma_ya_wingu_dogo', annotations=frozenset({'wingu', 'jua', 'hali ya hewa'})), EmojiAnnotations(emoji='\U0001f325', codepoints=(127781,), name='jua nyuma ya wingu kubwa', slug='jua_nyuma_ya_wingu_kubwa', annotations=frozenset({'wingu', 'jua', 'hali ya hewa'})), EmojiAnnotations(emoji='\U0001f326', codepoints=(127782,), name='jua nyuma ya wingi lenye mvua', slug='jua_nyuma_ya_wingi_lenye_mvua', annotations=frozenset({'wingu', 'jua', 'mvua', 'hali ya jewa'})), EmojiAnnotations(emoji='\U0001f327', codepoints=(127783,), name='wingu lenye mvua', slug='wingu_lenye_mvua', annotations=frozenset({'wingu', 'hali ya hewa', 'mvua'})), EmojiAnnotations(emoji='\U0001f328', codepoints=(127784,), name='wingu lenye theluji', slug='wingu_lenye_theluji', annotations=frozenset({'wingu', 'baridi', 'theluji', 'hali ya hewa'})), EmojiAnnotations(emoji='\U0001f329', codepoints=(127785,), name='wingu lenye radi', slug='wingu_lenye_radi', annotations=frozenset({'wingu', 'hali ya hewa', 'radi'})), EmojiAnnotations(emoji='\U0001f32a', codepoints=(127786,), name='kimbunga', slug='kimbunga', annotations=frozenset({'wingu', 'hali ya hewa'})), EmojiAnnotations(emoji='\U0001f32b', codepoints=(127787,), name='ukungu', slug='ukungu', annotations=frozenset({'wingu', 'hali ya hewa'})), EmojiAnnotations(emoji='\U0001f32c', codepoints=(127788,), name='uso unaopuliza upepo', slug='uso_unaopuliza_upepo', annotations=frozenset({'wingu', 'upepo', 'uso', 'hali ya hewa', 'puliza'})), EmojiAnnotations(emoji='🌀', codepoints=(127744,), name='tufani', slug='tufani', annotations=frozenset({'kizunguzungu', 'kimbunga', 'hali ya hewa'})), EmojiAnnotations(emoji='🌈', codepoints=(127752,), name='upinde wa mvua', slug='upinde_wa_mvua', annotations=frozenset({'hali ya hewa', 'mvua'})), EmojiAnnotations(emoji='🌂', codepoints=(127746,), name='mwavuli uliokunjwa', slug='mwavuli_uliokunjwa', annotations=frozenset({'hali ya hewa', 'mvua', 'mavazi', 'mwavuli'})), EmojiAnnotations(emoji='☂', codepoints=(9730,), name='mwavuli', slug='mwavuli', annotations=frozenset({'hali ya hewa', 'mvua', 'mavazi'})), EmojiAnnotations(emoji='☔', codepoints=(9748,), name='mwavuli na matone ya mvua', slug='mwavuli_na_matone_ya_mvua', annotations=frozenset({'tone', 'hali ya hewa', 'mvua', 'mavazi', 'mwavuli'})), EmojiAnnotations(emoji='⛱', codepoints=(9969,), name='mwavuli ulio kwenye ardhi', slug='mwavuli_ulio_kwenye_ardhi', annotations=frozenset({'jua', 'hali ya hewa', 'mvua', 'mwavuli'})), EmojiAnnotations(emoji='⚡', codepoints=(9889,), name='volteji ya juu', slug='volteji_ya_juu', annotations=frozenset({'kuungua kwa umeme', 'hatari', 'volteji', 'umeme', 'radi'})), EmojiAnnotations(emoji='❄', codepoints=(10052,), name='chembe ya theluji', slug='chembe_ya_theluji', annotations=frozenset({'baridi', 'theluji', 'hali ya hewa'})), EmojiAnnotations(emoji='☃', codepoints=(9731,), name='sanamu ya mtu ya theluji', slug='sanamu_ya_mtu_ya_theluji', annotations=frozenset({'baridi', 'theluji', 'hali ya hewa'})), EmojiAnnotations(emoji='⛄', codepoints=(9924,), name='sanamu ya mtu ya theluji bila theluji', slug='sanamu_ya_mtu_ya_theluji_bila_theluji', annotations=frozenset({'baridi', 'theluji', 'hali ya hewa'})), EmojiAnnotations(emoji='☄', codepoints=(9732,), name='kimondo', slug='kimondo', annotations=frozenset({'anga'})), EmojiAnnotations(emoji='🔥', codepoints=(128293,), name='moto', slug='moto', annotations=frozenset({'mwali', 'zana'})), EmojiAnnotations(emoji='💧', codepoints=(128167,), name='tone', slug='tone', annotations=frozenset({'jembamba', 'hali ya hewa', 'kibonzo', 'jasho'})), EmojiAnnotations(emoji='🌊', codepoints=(127754,), name='wimbi la maji', slug='wimbi_la_maji', annotations=frozenset({'bahari', "wimbi' hali ya hewa", 'maji'})), EmojiAnnotations(emoji='🎃', codepoints=(127875,), name='taa ya malenge yenye umbo la uso wa mtu', slug='taa_ya_malenge_yenye_umbo_la_uso_wa_mtu', annotations=frozenset({'taa', 'halloween', 'kusherehekea', 'jack'})), EmojiAnnotations(emoji='🎄', codepoints=(127876,), name='mti wa krismasi', slug='mti_wa_krismasi', annotations=frozenset({'sherehe', 'mti', 'krismasi'})), EmojiAnnotations(emoji='🎆', codepoints=(127878,), name='fataki', slug='fataki', annotations=frozenset({'sherehe'})), EmojiAnnotations(emoji='🎇', codepoints=(127879,), name='kimetameta', slug='kimetameta', annotations=frozenset({'fataki', 'metameta', 'kusherehekea'})), EmojiAnnotations(emoji='✨', codepoints=(10024,), name='kumetameta', slug='kumetameta', annotations=frozenset({'nyota', 'metameta'})), EmojiAnnotations(emoji='🎈', codepoints=(127880,), name='puto', slug='puto', annotations=frozenset({'sherehe'})), EmojiAnnotations(emoji='🎉', codepoints=(127881,), name='mapambo ya sherehe', slug='mapambo_ya_sherehe', annotations=frozenset({'sherehe', 'puto', 'kusherehekea', 'tada'})), EmojiAnnotations(emoji='🎊', codepoints=(127882,), name='mpira wa mapambo', slug='mpira_wa_mapambo', annotations=frozenset({'mpira', 'kusherehekea', 'mapambo'})), EmojiAnnotations(emoji='🎋', codepoints=(127883,), name='mti wa tanabata', slug='mti_wa_tanabata', annotations=frozenset({'mti', 'kijapani', 'bango', 'kusherehekea'})), EmojiAnnotations(emoji='🎌', codepoints=(127884,), name='bendera mbili zilizopishana', slug='bendera_mbili_zilizopishana', annotations=frozenset({'iliyopishanishwa', 'kijapani', 'kusherehekea', 'pishanisha'})), EmojiAnnotations(emoji='🎍', codepoints=(127885,), name='mapamabo ya msonobari', slug='mapamabo_ya_msonobari', annotations=frozenset({'msonobari', 'mmea', 'kijapani', 'mwanzi', 'kusherehekea'})), EmojiAnnotations(emoji='🎎', codepoints=(127886,), name='vidosho vya kijapani', slug='vidosho_vya_kijapani', annotations=frozenset({'sherehe', 'kidosho', 'kijapani', 'kusherehekea'})), EmojiAnnotations(emoji='🎏', codepoints=(127887,), name='bendera ya kambare mamba', slug='bendera_ya_kambare_mamba', annotations=frozenset({'bendera', 'kambare', 'kusherehekea'})), EmojiAnnotations(emoji='🎐', codepoints=(127888,), name='kengele ya upepo', slug='kengele_ya_upepo', annotations=frozenset({'kulia', 'upepo', 'kengele', 'kusherehekea'})), EmojiAnnotations(emoji='🎑', codepoints=(127889,), name='sherehe ya mwezi', slug='sherehe_ya_mwezi', annotations=frozenset({'mwezi', 'sherehe', 'kusherehekea'})), EmojiAnnotations(emoji='🎀', codepoints=(127872,), name='utepe', slug='utepe', annotations=frozenset({'kusherehekea'})), EmojiAnnotations(emoji='🎁', codepoints=(127873,), name='zawadi iliyofungwa', slug='zawadi_iliyofungwa', annotations=frozenset({'zawadi', 'iliyofungwa', 'sanduku', 'kusherehekea'})), EmojiAnnotations(emoji='\U0001f396', codepoints=(127894,), name='tuzo ya kijeshi', slug='tuzo_ya_kijeshi', annotations=frozenset({'jeshi', 'medali', 'kusherehekea'})), EmojiAnnotations(emoji='\U0001f397', codepoints=(127895,), name='utepe wa ukumbusho', slug='utepe_wa_ukumbusho', annotations=frozenset({'kikumbusho', 'utepe', 'kusherehekea'})), EmojiAnnotations(emoji='\U0001f39e', codepoints=(127902,), name='fremu za utepe wa filamu', slug='fremu_za_utepe_wa_filamu', annotations=frozenset({'filamu', 'fremu', 'sinema'})), EmojiAnnotations(emoji='\U0001f39f', codepoints=(127903,), name='tiketi za kuingia', slug='tiketi_za_kuingia', annotations=frozenset({'kuingia', 'tiketi'})), EmojiAnnotations(emoji='🎫', codepoints=(127915,), name='tiketi', slug='tiketi', annotations=frozenset({'kuingia'})), EmojiAnnotations(emoji='⚽', codepoints=(9917,), name='mpira wa miguu', slug='mpira_wa_miguu', annotations=frozenset({'soka', 'mpira'})), EmojiAnnotations(emoji='⚾', codepoints=(9918,), name='mpira wa besibali', slug='mpira_wa_besibali', annotations=frozenset({'mpira'})), EmojiAnnotations(emoji='🏀', codepoints=(127936,), name='mpira wa kikapu', slug='mpira_wa_kikapu', annotations=frozenset({'mpira', 'kikapu'})), EmojiAnnotations(emoji='🏈', codepoints=(127944,), name='mpira wa marekani', slug='mpira_wa_marekani', annotations=frozenset({'marekani', 'mpira', 'mpira wa miguu'})), EmojiAnnotations(emoji='🏉', codepoints=(127945,), name='mpira wa raga', slug='mpira_wa_raga', annotations=frozenset({'raga', 'mpira', 'mpira wa miguu'})), EmojiAnnotations(emoji='🎾', codepoints=(127934,), name='mpira wa tenisi', slug='mpira_wa_tenisi', annotations=frozenset({'raketi', 'mpira'})), EmojiAnnotations(emoji='🎱', codepoints=(127921,), name='biliadi', slug='biliadi', annotations=frozenset({'8', 'mchezo', 'mpira 8', 'nane', 'mpira'})), EmojiAnnotations(emoji='🎳', codepoints=(127923,), name='mchezo wa kuvingirisha matufe chini', slug='mchezo_wa_kuvingirisha_matufe_chini', annotations=frozenset({'mchezo', 'mpira'})), EmojiAnnotations(emoji='⛳', codepoints=(9971,), name='bendera katika shimo', slug='bendera_katika_shimo', annotations=frozenset({'gofu', 'shimo'})), EmojiAnnotations(emoji='\U0001f3cc', codepoints=(127948,), name='mcheza gofu', slug='mcheza_gofu', annotations=frozenset({'gofu', 'mpira'})), EmojiAnnotations(emoji='⛸', codepoints=(9976,), name='viatu vya kuteleza kwenye theluji', slug='viatu_vya_kuteleza_kwenye_theluji', annotations=frozenset({'kuteleza', 'theluji'})), EmojiAnnotations(emoji='🎣', codepoints=(127907,), name='ndoano ya uvuvi', slug='ndoano_ya_uvuvi', annotations=frozenset({'ndoano', 'samaki'})), EmojiAnnotations(emoji='🎽', codepoints=(127933,), name='shati ya kukimbia', slug='shati_ya_kukimbia', annotations=frozenset({'shati', 'kukimbia', 'mshipi'})), EmojiAnnotations(emoji='🎿', codepoints=(127935,), name='ski', slug='ski', annotations=frozenset({'theluji'})), EmojiAnnotations(emoji='⛷', codepoints=(9975,), name='mtu anayecheza mchezo wa kuskii', slug='mtu_anayecheza_mchezo_wa_kuskii', annotations=frozenset({'ski', 'theluji'})), EmojiAnnotations(emoji='🏂', codepoints=(127938,), name='mtu anayeteleza kwenye theluji', slug='mtu_anayeteleza_kwenye_theluji', annotations=frozenset({'ski', 'theluji', 'ubao wa kuteleza kwenye theluji'})), EmojiAnnotations(emoji='🏄', codepoints=(127940,), name='mtu anayeteleza kwenye mawimbi', slug='mtu_anayeteleza_kwenye_mawimbi', annotations=frozenset({'kuteleza kwenye mawimbi'})), EmojiAnnotations(emoji='🏇', codepoints=(127943,), name='mbio za farasi', slug='mbio_za_farasi', annotations=frozenset({'farasi ya mashindano', 'mashindano', 'farasi', 'mwendesha farasi'})), EmojiAnnotations(emoji='🏊', codepoints=(127946,), name='mwogeleaji', slug='mwogeleaji', annotations=frozenset({'kuogelea'})), EmojiAnnotations(emoji='⛹', codepoints=(9977,), name='mtu na mpira', slug='mtu_na_mpira', annotations=frozenset({'mpira'})), EmojiAnnotations(emoji='\U0001f3cb', codepoints=(127947,), name='mbeba vyuma vizito', slug='mbeba_vyuma_vizito', annotations=frozenset({'uzito', 'mbeba vyuma'})), EmojiAnnotations(emoji='🚴', codepoints=(128692,), name='mwendesha baisikeli', slug='mwendesha_baisikeli', annotations=frozenset({'baisikeli'})), EmojiAnnotations(emoji='🚵', codepoints=(128693,), name='mtu anayeendesha baisikeli mlimani', slug='mtu_anayeendesha_baisikeli_mlimani', annotations=frozenset({'baisikeli', 'mwendesha baisikeli', 'mlima'})), EmojiAnnotations(emoji='\U0001f3ce', codepoints=(127950,), name='gari la mashindano', slug='gari_la_mashindano', annotations=frozenset({'gari', 'mashindano'})), EmojiAnnotations(emoji='\U0001f3cd', codepoints=(127949,), name='pikipiki', slug='pikipiki', annotations=frozenset({'mashindano'})), EmojiAnnotations(emoji='\U0001f3c5', codepoints=(127941,), name='medali ya michezo', slug='medali_ya_michezo', annotations=frozenset({'medali'})), EmojiAnnotations(emoji='🏆', codepoints=(127942,), name='kikombe', slug='kikombe', annotations=frozenset({'zawadi'})), EmojiAnnotations(emoji='\U0001f3cf', codepoints=(127951,), name='kriketi', slug='kriketi', annotations=frozenset({'mchezo', 'mpira', 'gongo'})), EmojiAnnotations(emoji='\U0001f3d0', codepoints=(127952,), name='mpira wa wavu', slug='mpira_wa_wavu', annotations=frozenset({'mchezo', 'mpira'})), EmojiAnnotations(emoji='\U0001f3d1', codepoints=(127953,), name='mpira wa magongo', slug='mpira_wa_magongo', annotations=frozenset({'mchezo', 'kiwanja', 'kijiti', 'mpira'})), EmojiAnnotations(emoji='\U0001f3d2', codepoints=(127954,), name='kigoe cha hoki ya barafuni', slug='kigoe_cha_hoki_ya_barafuni', annotations=frozenset({'mchezo', 'mpira wa magongo', 'barafu', 'kitufe cha kucheza', 'kijiti'})), EmojiAnnotations(emoji='\U0001f3d3', codepoints=(127955,), name='ping pong', slug='ping_pong', annotations=frozenset({'mchezo', 'ubao', 'tenisi ya mezani', 'mpira', 'gongo'})), EmojiAnnotations(emoji='\U0001f3f8', codepoints=(127992,), name='mpira wa vinyoya', slug='mpira_wa_vinyoya', annotations=frozenset({'mpigo mmoja', 'mchezo', 'raketi'})), EmojiAnnotations(emoji='🎯', codepoints=(127919,), name='kulenga shabaha', slug='kulenga_shabaha', annotations=frozenset({'mchezo', 'kigumba', 'lengo kuu', 'lengo', 'gonga'})), EmojiAnnotations(emoji='🎮', codepoints=(127918,), name='mchezo wa video', slug='mchezo_wa_video', annotations=frozenset({'mchezo', 'kidhibiti'})), EmojiAnnotations(emoji='\U0001f579', codepoints=(128377,), name='usukani', slug='usukani', annotations=frozenset({'mchezo', 'mchezo wa video'})), EmojiAnnotations(emoji='🎲', codepoints=(127922,), name='dadu', slug='dadu', annotations=frozenset({'mchezo'})), EmojiAnnotations(emoji='♠', codepoints=(9824,), name='shupaza', slug='shupaza', annotations=frozenset({'mchezo', 'kadi', 'karata'})), EmojiAnnotations(emoji='♥', codepoints=(9829,), name='kopa', slug='kopa', annotations=frozenset({'mchezo', 'kadi', 'karata'})), EmojiAnnotations(emoji='♦', codepoints=(9830,), name='kisu', slug='kisu', annotations=frozenset({'mchezo', 'kadi', 'visu', 'karata'})), EmojiAnnotations(emoji='♣', codepoints=(9827,), name='maua', slug='maua', annotations=frozenset({'mchezo', 'kadi', 'karata'})), EmojiAnnotations(emoji='🃏', codepoints=(127183,), name='jokari', slug='jokari', annotations=frozenset({'mchezo', 'kadi', 'kucheza'})), EmojiAnnotations(emoji='🀄', codepoints=(126980,), name='dragoni jekundu la mahjong', slug='dragoni_jekundu_la_mahjong', annotations=frozenset({'mchezo', 'mahjong', 'nyekundu'})), EmojiAnnotations(emoji='🎴', codepoints=(127924,), name='kadi za karata za maua', slug='kadi_za_karata_za_maua', annotations=frozenset({'mchezo', 'kadi', 'kucheza', 'kijapani', 'maua'})), EmojiAnnotations(emoji='🔇', codepoints=(128263,), name='spika imezimwa', slug='spika_imezimwa', annotations=frozenset({'zima', 'spika', 'kimya', 'sauti'})), EmojiAnnotations(emoji='🔈', codepoints=(128264,), name='spika', slug='spika', annotations=frozenset({'sauti'})), EmojiAnnotations(emoji='🔉', codepoints=(128265,), name='spika imewashwa', slug='spika_imewashwa', annotations=frozenset({'wingu', 'spika', 'chini', 'sauti'})), EmojiAnnotations(emoji='🔊', codepoints=(128266,), name='spika yenye sauti ya juu', slug='spika_yenye_sauti_ya_juu', annotations=frozenset({'juu', 'tatu', 'spika', 'sauti', '3'})), EmojiAnnotations(emoji='📢', codepoints=(128226,), name='kipaza sauti', slug='kipaza_sauti', annotations=frozenset({'sauti'})), EmojiAnnotations(emoji='📣', codepoints=(128227,), name='megafoni', slug='megafoni', annotations=frozenset({'kushangilia'})), EmojiAnnotations(emoji='📯', codepoints=(128239,), name='honi ya posta', slug='honi_ya_posta', annotations=frozenset({'honi', 'posta'})), EmojiAnnotations(emoji='🔕', codepoints=(128277,), name='kengele yenye alama ya mkato', slug='kengele_yenye_alama_ya_mkato', annotations=frozenset({'siyo', 'katazwa', 'marufuku', 'kimwa', 'zima', 'hapana', 'kimya', 'kengele'})), EmojiAnnotations(emoji='🎼', codepoints=(127932,), name='karatasi ya muziki', slug='karatasi_ya_muziki', annotations=frozenset({'muziki', 'karatasi ya muziki'})), EmojiAnnotations(emoji='🎵', codepoints=(127925,), name='noti ya muziki', slug='noti_ya_muziki', annotations=frozenset({'noti', 'muziki'})), EmojiAnnotations(emoji='🎶', codepoints=(127926,), name='manoti ya muziki', slug='manoti_ya_muziki', annotations=frozenset({'noti', 'muziki', 'manoti'})), EmojiAnnotations(emoji='\U0001f399', codepoints=(127897,), name='maikrofoni ya studio', slug='maikrofoni_ya_studio', annotations=frozenset({'maikrofoni', 'muziki', 'studio'})), EmojiAnnotations(emoji='\U0001f39a', codepoints=(127898,), name='kitelezi cha kurekebisha sauti', slug='kitelezi_cha_kurekebisha_sauti', annotations=frozenset({'kiwango', 'muziki', 'kitelezi'})), EmojiAnnotations(emoji='\U0001f39b', codepoints=(127899,), name='vitufe vya kudhibiti', slug='vitufe_vya_kudhibiti', annotations=frozenset({'vitufe', 'muziki', 'vidhibiti'})), EmojiAnnotations(emoji='🎤', codepoints=(127908,), name='maikrofoni', slug='maikrofoni', annotations=frozenset({'karaoke'})), EmojiAnnotations(emoji='🎧', codepoints=(127911,), name='vifaa vya sauti vya masikioni', slug='vifaa_vya_sauti_vya_masikioni', annotations=frozenset({'kifaa cha sauti cha masikioni'})), EmojiAnnotations(emoji='🎷', codepoints=(127927,), name='saksafoni', slug='saksafoni', annotations=frozenset({'ala', 'muziki'})), EmojiAnnotations(emoji='🎸', codepoints=(127928,), name='gita', slug='gita', annotations=frozenset({'ala', 'muziki'})), EmojiAnnotations(emoji='🎹', codepoints=(127929,), name='kinanda', slug='kinanda', annotations=frozenset({'piano', 'ala', 'muziki'})), EmojiAnnotations(emoji='🎺', codepoints=(127930,), name='tarumbeta', slug='tarumbeta', annotations=frozenset({'ala', 'muziki'})), EmojiAnnotations(emoji='🎻', codepoints=(127931,), name='fidla', slug='fidla', annotations=frozenset({'ala', 'muziki'})), EmojiAnnotations(emoji='📻', codepoints=(128251,), name='redio', slug='redio', annotations=frozenset({'video'})), EmojiAnnotations(emoji='📱', codepoints=(128241,), name='simu ya mkononi', slug='simu_ya_mkononi', annotations=frozenset({'simu', 'simu ya mkononi', 'ya mkononi'})), EmojiAnnotations(emoji='📲', codepoints=(128242,), name='simu ya mkononi yenye kishale', slug='simu_ya_mkononi_yenye_kishale', annotations=frozenset({'mshale', 'simu ya mkononi', 'piga simu', 'ya mkononi', 'pokea', 'simu'})), EmojiAnnotations(emoji='📞', codepoints=(128222,), name='mkono wa simu', slug='mkono_wa_simu', annotations=frozenset({'simu'})), EmojiAnnotations(emoji='📠', codepoints=(128224,), name='mashine ya faksi', slug='mashine_ya_faksi', annotations=frozenset({'faksi'})), EmojiAnnotations(emoji='🔌', codepoints=(128268,), name='plagi ya umeme', slug='plagi_ya_umeme', annotations=frozenset({'nguvu za umeme', 'umeme', 'plagi'})), EmojiAnnotations(emoji='💻', codepoints=(128187,), name='kompyuta ndogo', slug='kompyuta_ndogo', annotations=frozenset({'pc', 'binafsi', 'kompyuta'})), EmojiAnnotations(emoji='\U0001f5a5', codepoints=(128421,), name='kompyuta ya mezani', slug='kompyuta_ya_mezani', annotations=frozenset({'kompyuta'})), EmojiAnnotations(emoji='\U0001f5a8', codepoints=(128424,), name='printa', slug='printa', annotations=frozenset({'kompyuta'})), EmojiAnnotations(emoji='⌨', codepoints=(9000,), name='kibodi', slug='kibodi', annotations=frozenset({'kompyuta'})), EmojiAnnotations(emoji='\U0001f5b1', codepoints=(128433,), name='kipanya cha kompyuta', slug='kipanya_cha_kompyuta', annotations=frozenset({'kipanya', 'tatu', 'kitufe', 'kompyuta', '3'})), EmojiAnnotations(emoji='\U0001f5b2', codepoints=(128434,), name='kitufe cha kompyuta kinachoendesha kishale', slug='kitufe_cha_kompyuta_kinachoendesha_kishale', annotations=frozenset({'kompyuta'})), EmojiAnnotations(emoji='💽', codepoints=(128189,), name='diski ndogo', slug='diski_ndogo', annotations=frozenset({'ya macho', 'diski', 'kompyuta'})), EmojiAnnotations(emoji='💾', codepoints=(128190,), name='diski laini', slug='diski_laini', annotations=frozenset({'diski', 'kompyuta'})), EmojiAnnotations(emoji='💿', codepoints=(128191,), name='diski', slug='diski', annotations=frozenset({'ya macho', 'dvd', 'cd', 'blu-ray', 'kompyuta'})), EmojiAnnotations(emoji='📀', codepoints=(128192,), name='diski dijitali', slug='diski_dijitali', annotations=frozenset({'ya macho', 'cd', 'diski', 'blu-ray', 'kompyuta'})), EmojiAnnotations(emoji='🎥', codepoints=(127909,), name='kamera ya kurekodi filamu', slug='kamera_ya_kurekodi_filamu', annotations=frozenset({'kamera', 'filamu', 'sinema'})), EmojiAnnotations(emoji='🎬', codepoints=(127916,), name='ubao wa kuanzisha matukio wakati wa kutengeneza filamu', slug='ubao_wa_kuanzisha_matukio_wakati_wa_kutengeneza_filamu', annotations=frozenset({'filamu'})), EmojiAnnotations(emoji='\U0001f4fd', codepoints=(128253,), name='projekta ya filamu', slug='projekta_ya_filamu', annotations=frozenset({'filamu', 'projekta', 'video', 'sinema'})), EmojiAnnotations(emoji='📺', codepoints=(128250,), name='runinga', slug='runinga', annotations=frozenset({'video'})), EmojiAnnotations(emoji='📷', codepoints=(128247,), name='kamera', slug='kamera', annotations=frozenset({'video'})), EmojiAnnotations(emoji='\U0001f4f8', codepoints=(128248,), name='kamera na mmweko', slug='kamera_na_mmweko', annotations=frozenset({'kamera', 'mmweko', 'video'})), EmojiAnnotations(emoji='📹', codepoints=(128249,), name='kamera ya kurekodi video', slug='kamera_ya_kurekodi_video', annotations=frozenset({'kamera', 'video'})), EmojiAnnotations(emoji='📼', codepoints=(128252,), name='kaseti ya video', slug='kaseti_ya_video', annotations=frozenset({'kanda', 'vhs', 'video'})), EmojiAnnotations(emoji='🔍', codepoints=(128269,), name='kioo cha ukuzaji kinachoelekeza kushoto', slug='kioo_cha_ukuzaji_kinachoelekeza_kushoto', annotations=frozenset({'zana', 'tafuta', 'glasi', 'kukuza'})), EmojiAnnotations(emoji='🔎', codepoints=(128270,), name='kioo cha ukuzaji kinachoelekeza kulia', slug='kioo_cha_ukuzaji_kinachoelekeza_kulia', annotations=frozenset({'zana', 'tafuta', 'glasi', 'kukuza'})), EmojiAnnotations(emoji='🔬', codepoints=(128300,), name='hadubini', slug='hadubini', annotations=frozenset({'zana'})), EmojiAnnotations(emoji='🔭', codepoints=(128301,), name='darubini', slug='darubini', annotations=frozenset({'zana'})), EmojiAnnotations(emoji='📡', codepoints=(128225,), name='antena ya setilaiti', slug='antena_ya_setilaiti', annotations=frozenset({'ungo', 'setilaiti', 'antena'})), EmojiAnnotations(emoji='\U0001f56f', codepoints=(128367,), name='mshumaa', slug='mshumaa', annotations=frozenset({'mwanga'})), EmojiAnnotations(emoji='💡', codepoints=(128161,), name='taa', slug='taa', annotations=frozenset({'wazo', 'kibonzo', 'umeme', 'mwanga'})), EmojiAnnotations(emoji='🔦', codepoints=(128294,), name='kurunzi', slug='kurunzi', annotations=frozenset({'zana', 'umeme', 'mwanga'})), EmojiAnnotations(emoji='🏮', codepoints=(127982,), name='taa nyekundu ya karatasi', slug='taa_nyekundu_ya_karatasi', annotations=frozenset({'baa', 'mwanga', 'nyekundu', 'kijapani', 'taa'})), EmojiAnnotations(emoji='📔', codepoints=(128212,), name='daftari lenye jalada lililopambwa', slug='daftari_lenye_jalada_lililopambwa', annotations=frozenset({'lililopanbwa', 'jalada', 'kitabu', 'daftari'})), EmojiAnnotations(emoji='📕', codepoints=(128213,), name='kitabu kilichofungwa', slug='kitabu_kilichofungwa', annotations=frozenset({'kufungwa', 'kitabu'})), EmojiAnnotations(emoji='📖', codepoints=(128214,), name='kitabu kilichofunguliwa', slug='kitabu_kilichofunguliwa', annotations=frozenset({'kufunguliwa', 'kitabu'})), EmojiAnnotations(emoji='📗', codepoints=(128215,), name='kitabu cha kijani', slug='kitabu_cha_kijani', annotations=frozenset({'kitabu', 'kijani'})), EmojiAnnotations(emoji='📘', codepoints=(128216,), name='kitabu cha samawati', slug='kitabu_cha_samawati', annotations=frozenset({'samawati', 'kitabu'})), EmojiAnnotations(emoji='📙', codepoints=(128217,), name='kitabu cha njano', slug='kitabu_cha_njano', annotations=frozenset({'kitabu', 'manjano'})), EmojiAnnotations(emoji='📚', codepoints=(128218,), name='vitabu', slug='vitabu', annotations=frozenset({'kitabu'})), EmojiAnnotations(emoji='📒', codepoints=(128210,), name='leja', slug='leja', annotations=frozenset({'daftari'})), EmojiAnnotations(emoji='📃', codepoints=(128195,), name='ukurasa uliokunjwa', slug='ukurasa_uliokunjwa', annotations=frozenset({'ukurasa', 'kukunja', 'hati'})), EmojiAnnotations(emoji='📜', codepoints=(128220,), name='hati ya kukunja kwa kuviringisha', slug='hati_ya_kukunja_kwa_kuviringisha', annotations=frozenset({'karatasi'})), EmojiAnnotations(emoji='📄', codepoints=(128196,), name='ukurasa unaotazama juu', slug='ukurasa_unaotazama_juu', annotations=frozenset({'ukurasa', 'hati'})), EmojiAnnotations(emoji='📰', codepoints=(128240,), name='gazeti', slug='gazeti', annotations=frozenset({'karatasi', 'habari'})), EmojiAnnotations(emoji='\U0001f5de', codepoints=(128478,), name='gazeti lililokunjwa', slug='gazeti_lililokunjwa', annotations=frozenset({'gazeti', 'karatasi', 'habari', 'kukunjwa'})), EmojiAnnotations(emoji='📑', codepoints=(128209,), name='vichupo vya alamisho', slug='vichupo_vya_alamisho', annotations=frozenset({'vichupo', 'alamisho', 'alama', 'weka alama'})), EmojiAnnotations(emoji='🔖', codepoints=(128278,), name='alamisho', slug='alamisho', annotations=frozenset({'weka alama'})), EmojiAnnotations(emoji='💰', codepoints=(128176,), name='mfuko wa pesa', slug='mfuko_wa_pesa', annotations=frozenset({'pesa', 'mfuko', 'dola'})), EmojiAnnotations(emoji='💴', codepoints=(128180,), name='noti ya yeni', slug='noti_ya_yeni', annotations=frozenset({'sarafu', 'pesa', 'noti', 'yeni', 'benki'})), EmojiAnnotations(emoji='💵', codepoints=(128181,), name='noti ya dola', slug='noti_ya_dola', annotations=frozenset({'sarafu', 'dola', 'noti', 'pesa', 'benki'})), EmojiAnnotations(emoji='💶', codepoints=(128182,), name='noti ya yuro', slug='noti_ya_yuro', annotations=frozenset({'sarafu', 'pesa', 'noti', 'yuro', 'benki'})), EmojiAnnotations(emoji='💷', codepoints=(128183,), name='noti ya pauni', slug='noti_ya_pauni', annotations=frozenset({'sarafu', 'pesa', 'noti', 'pauni', 'benki'})), EmojiAnnotations(emoji='💸', codepoints=(128184,), name='pesa za noti zenye mabawa', slug='pesa_za_noti_zenye_mabawa', annotations=frozenset({'pepea', 'pesa', 'benki', 'dola', 'mabawa', 'noti'})), EmojiAnnotations(emoji='💳', codepoints=(128179,), name='kadi ya mkopo', slug='kadi_ya_mkopo', annotations=frozenset({'pesa', 'kadi', 'mkopo', 'benki'})), EmojiAnnotations(emoji='💹', codepoints=(128185,), name='chayi inayopanda yenye yeni', slug='chayi_inayopanda_yenye_yeni', annotations=frozenset({'sarafu', 'soko', 'kupanda', 'ongezeka', 'grafu', 'benki', 'pesa', 'uelekeo', 'chati', 'yeni', 'juu'})), EmojiAnnotations(emoji='✉', codepoints=(9993,), name='bahasha', slug='bahasha', annotations=frozenset({'barua pepe'})), EmojiAnnotations(emoji='📧', codepoints=(128231,), name='barua pepe', slug='barua_pepe', annotations=frozenset({'barua'})), EmojiAnnotations(emoji='📨', codepoints=(128232,), name='bahasha inayoingia', slug='bahasha_inayoingia', annotations=frozenset({'inayoingia', 'barua pepe', 'pokea', 'barua', 'bahasha'})), EmojiAnnotations(emoji='📩', codepoints=(128233,), name='bahasha na kishale', slug='bahasha_na_kishale', annotations=frozenset({'mshale', 'imetumwa', 'barua', 'barua pepe', 'chini', 'inayotoka', 'bahasha'})), EmojiAnnotations(emoji='📤', codepoints=(128228,), name='trei ya majalada ya kutoka', slug='trei_ya_majalada_ya_kutoka', annotations=frozenset({'imetumwa', 'sanduku la kutuma', 'sanduku', 'trei', 'barua'})), EmojiAnnotations(emoji='📥', codepoints=(128229,), name='trei ya majalada ya kuingia', slug='trei_ya_majalada_ya_kuingia', annotations=frozenset({'pokea', 'sanduku', 'sanduku la kupokea', 'barua', 'trei'})), EmojiAnnotations(emoji='📦', codepoints=(128230,), name='kifurushi', slug='kifurushi', annotations=frozenset({'sanduku'})), EmojiAnnotations(emoji='📫', codepoints=(128235,), name='sanduku la barua lililofungwa lenye bendera iliyoinuliwa', slug='sanduku_la_barua_lililofungwa_lenye_bendera_iliyoinuliwa', annotations=frozenset({'fungwa', 'sanduku la barua', 'barua', 'sanduku la posta'})), EmojiAnnotations(emoji='📪', codepoints=(128234,), name='sanduku la barua lililofungwa lenye bendera iliyoshushwa', slug='sanduku_la_barua_lililofungwa_lenye_bendera_iliyoshushwa', annotations=frozenset({'kushushwa', 'fungwa', 'sanduku', 'sanduku la barua', 'sanduku la posta'})), EmojiAnnotations(emoji='📬', codepoints=(128236,), name='sanduku la barua lililofunguliwa lenye bendera iliyoinuliwa', slug='sanduku_la_barua_lililofunguliwa_lenye_bendera_iliyoinuliwa', annotations=frozenset({'sanduku la posta', 'sanduku la barua', 'barua', 'funguliwa'})), EmojiAnnotations(emoji='📭', codepoints=(128237,), name='sanduku la barua lililofunguliwa lenye bendera iliyoshushwa', slug='sanduku_la_barua_lililofunguliwa_lenye_bendera_iliyoshushwa', annotations=frozenset({'kushushwa', 'sanduku la posta', 'sanduku la barua', 'barua', 'funguliwa'})), EmojiAnnotations(emoji='📮', codepoints=(128238,), name='sanduku la barua', slug='sanduku_la_barua', annotations=frozenset({'barua'})), EmojiAnnotations(emoji='\U0001f5f3', codepoints=(128499,), name='sanduku la kupiga kura na kura', slug='sanduku_la_kupiga_kura_na_kura', annotations=frozenset({'kura', 'sanduku'})), EmojiAnnotations(emoji='✒', codepoints=(10002,), name='nibu nyeusi', slug='nibu_nyeusi', annotations=frozenset({'nibu', 'kalamu'})), EmojiAnnotations(emoji='\U0001f58b', codepoints=(128395,), name='kalamu ya wino', slug='kalamu_ya_wino', annotations=frozenset({'kalamu'})), EmojiAnnotations(emoji='\U0001f58c', codepoints=(128396,), name='brashi ya kupaka rangi', slug='brashi_ya_kupaka_rangi', annotations=frozenset({'kuchora'})), EmojiAnnotations(emoji='📝', codepoints=(128221,), name='hati', slug='hati', annotations=frozenset({'penseli'})), EmojiAnnotations(emoji='📁', codepoints=(128193,), name='folda ya faili', slug='folda_ya_faili', annotations=frozenset({'faili', 'folda'})), EmojiAnnotations(emoji='📂', codepoints=(128194,), name='folda ya faili iliyofunguliwa', slug='folda_ya_faili_iliyofunguliwa', annotations=frozenset({'faili', 'folda', 'funguliwa'})), EmojiAnnotations(emoji='\U0001f5c2', codepoints=(128450,), name='vigawanishi vya kadi', slug='vigawanishi_vya_kadi', annotations=frozenset({'farahasa', 'kadi', 'vigawanishi'})), EmojiAnnotations(emoji='📅', codepoints=(128197,), name='kalenda', slug='kalenda', annotations=frozenset({'tarehe'})), EmojiAnnotations(emoji='📆', codepoints=(128198,), name='kalenda unayoweza kuchana kurasa', slug='kalenda_unayoweza_kuchana_kurasa', annotations=frozenset({'kalenda'})), EmojiAnnotations(emoji='\U0001f5d2', codepoints=(128466,), name='daftari lililobanwa kwa waya wa mzunguko', slug='daftari_lililobanwa_kwa_waya_wa_mzunguko', annotations=frozenset({'mzunguko', 'dokezo', 'daftari'})), EmojiAnnotations(emoji='\U0001f5d3', codepoints=(128467,), name='kalenda iliyofungwa kwa waya wa mzunguko', slug='kalenda_iliyofungwa_kwa_waya_wa_mzunguko', annotations=frozenset({'mzunguko', 'daftari', 'kalenda'})), EmojiAnnotations(emoji='📇', codepoints=(128199,), name='kadi', slug='kadi', annotations=frozenset({'farahasa', 'mwongozo'})), EmojiAnnotations(emoji='📈', codepoints=(128200,), name='chati inayopanda', slug='chati_inayopanda', annotations=frozenset({'chati', 'juu', 'kukua', 'grafu', 'uelekeo'})), EmojiAnnotations(emoji='📉', codepoints=(128201,), name='chati inayoshuka', slug='chati_inayoshuka', annotations=frozenset({'chati', 'grafu', 'chini', 'uelekeo'})), EmojiAnnotations(emoji='📊', codepoints=(128202,), name='chati ya miraba', slug='chati_ya_miraba', annotations=frozenset({'mraba', 'chati', 'grafu'})), EmojiAnnotations(emoji='📍', codepoints=(128205,), name='pini yenye kichwa cha mduara', slug='pini_yenye_kichwa_cha_mduara', annotations=frozenset({'pini'})), EmojiAnnotations(emoji='\U0001f587', codepoints=(128391,), name='klipu za karatasi zilizounganishwa', slug='klipu_za_karatasi_zilizounganishwa', annotations=frozenset({'unganisha', 'klipu ya karatasi'})), EmojiAnnotations(emoji='📏', codepoints=(128207,), name='rula', slug='rula', annotations=frozenset({'ukingo ulionyooka'})), EmojiAnnotations(emoji='📐', codepoints=(128208,), name='rula ya pembe', slug='rula_ya_pembe', annotations=frozenset({'pembe', 'rula', 'seti'})), EmojiAnnotations(emoji='✂', codepoints=(9986,), name='makasi', slug='makasi', annotations=frozenset({'zana'})), EmojiAnnotations(emoji='\U0001f5c3', codepoints=(128451,), name='sanduku la faili', slug='sanduku_la_faili', annotations=frozenset({'kadi', 'faili', 'sanduku'})), EmojiAnnotations(emoji='\U0001f5c4', codepoints=(128452,), name='kabati la hati', slug='kabati_la_hati', annotations=frozenset({'kabati', 'faili'})), EmojiAnnotations(emoji='🔒', codepoints=(128274,), name='kufuli', slug='kufuli', annotations=frozenset({'fungwa'})), EmojiAnnotations(emoji='🔓', codepoints=(128275,), name='kufuli iliyofunguliwa', slug='kufuli_iliyofunguliwa', annotations=frozenset({'funga', 'fungua', 'funguliwa'})), EmojiAnnotations(emoji='🔏', codepoints=(128271,), name='kufuli na kalamu', slug='kufuli_na_kalamu', annotations=frozenset({'nibu', 'wino', 'kufuli', 'kalamu', 'faragha'})), EmojiAnnotations(emoji='🔐', codepoints=(128272,), name='kufuli iliyofungwa na ufunguo', slug='kufuli_iliyofungwa_na_ufunguo', annotations=frozenset({'salama', 'fungwa', 'ufunguo', 'kufuli'})), EmojiAnnotations(emoji='🔑', codepoints=(128273,), name='ufunguo', slug='ufunguo', annotations=frozenset({'kufuli', 'nenosiri'})), EmojiAnnotations(emoji='\U0001f5dd', codepoints=(128477,), name='ufunguo wa zamani', slug='ufunguo_wa_zamani', annotations=frozenset({'ufunguo', 'dalili', 'kufuli', 'nzee'})), EmojiAnnotations(emoji='🔨', codepoints=(128296,), name='nyundo', slug='nyundo', annotations=frozenset({'zana'})), EmojiAnnotations(emoji='⛏', codepoints=(9935,), name='sululu', slug='sululu', annotations=frozenset({'kuchimba mgodi', 'zana'})), EmojiAnnotations(emoji='⚒', codepoints=(9874,), name='nyundo na sululu', slug='nyundo_na_sululu', annotations=frozenset({'sululu', 'nyundo', 'zana'})), EmojiAnnotations(emoji='\U0001f6e0', codepoints=(128736,), name='nyundo na spana malaya', slug='nyundo_na_spana_malaya', annotations=frozenset({'nyungo', 'spana malaya', 'zana'})), EmojiAnnotations(emoji='🔧', codepoints=(128295,), name='spana malaya', slug='spana_malaya', annotations=frozenset({'zana'})), EmojiAnnotations(emoji='🔩', codepoints=(128297,), name='nati na bolti', slug='nati_na_bolti', annotations=frozenset({'bolti', 'nati', 'zana'})), EmojiAnnotations(emoji='⚙', codepoints=(9881,), name='gia', slug='gia', annotations=frozenset({'zana'})), EmojiAnnotations(emoji='\U0001f5dc', codepoints=(128476,), name='kubana', slug='kubana', annotations=frozenset({'jiliwa ya seremala', 'zana'})), EmojiAnnotations(emoji='⚗', codepoints=(9879,), name='alembiki', slug='alembiki', annotations=frozenset({'kemia', 'zana'})), EmojiAnnotations(emoji='⚖', codepoints=(9878,), name='mzani', slug='mzani', annotations=frozenset({'mizani', 'pima', 'zodiaki', 'uzito', 'haki', 'zana'})), EmojiAnnotations(emoji='🔗', codepoints=(128279,), name='pete ya mnyororo', slug='pete_ya_mnyororo', annotations=frozenset({'pete'})), EmojiAnnotations(emoji='⛓', codepoints=(9939,), name='minyororo', slug='minyororo', annotations=frozenset({'mnyororo'})), EmojiAnnotations(emoji='💉', codepoints=(128137,), name='bomba la sindano', slug='bomba_la_sindano', annotations=frozenset({'dawa', 'kuchoma sindano', 'mgonjwa', 'sindano', 'daktari', 'zana'})), EmojiAnnotations(emoji='💊', codepoints=(128138,), name='kidonge', slug='kidonge', annotations=frozenset({'dawa', 'mgonjwa', 'daktari'})), EmojiAnnotations(emoji='\U0001f5e1', codepoints=(128481,), name='sime', slug='sime', annotations=frozenset({'silaha', 'kisu'})), EmojiAnnotations(emoji='🔪', codepoints=(128298,), name='kisu kinachotumika jikoni', slug='kisu_kinachotumika_jikoni', annotations=frozenset({'silaha', 'kupika', 'hocho', 'kisu', 'zana'})), EmojiAnnotations(emoji='⚔', codepoints=(9876,), name='panga zilizopishanishwa', slug='panga_zilizopishanishwa', annotations=frozenset({'sime', 'kupishanishwa', 'silaha'})), EmojiAnnotations(emoji='🔫', codepoints=(128299,), name='bastola', slug='bastola', annotations=frozenset({'silaha', 'bunduki', 'zana'})), EmojiAnnotations(emoji='\U0001f6e1', codepoints=(128737,), name='ngao', slug='ngao', annotations=frozenset({'silaha'})), EmojiAnnotations(emoji='\U0001f3f9', codepoints=(127993,), name='upinde na mshale', slug='upinde_na_mshale', annotations=frozenset({'mshale', 'upinde', 'silaha', 'mpiga mishale', 'zodiaki', 'zana'})), EmojiAnnotations(emoji='🏁', codepoints=(127937,), name='bendera yenye mirabaraba', slug='bendera_yenye_mirabaraba', annotations=frozenset({'mirabamiraba', 'mashindano ya mbio'})), EmojiAnnotations(emoji='\U0001f3f3', codepoints=(127987,), name='kupeperusha bendera nyeupe', slug='kupeperusha_bendera_nyeupe', annotations=frozenset({'kupeperusha'})), EmojiAnnotations(emoji='\U0001f3f4', codepoints=(127988,), name='kupeperusha bendera nyeusi', slug='kupeperusha_bendera_nyeusi', annotations=frozenset({'kupeperusha'})), EmojiAnnotations(emoji='🚩', codepoints=(128681,), name='bendera yenye pembe', slug='bendera_yenye_pembe', annotations=frozenset({'mlingoti'})), EmojiAnnotations(emoji='🚬', codepoints=(128684,), name='sigara iliyowashwa', slug='sigara_iliyowashwa', annotations=frozenset({'kuvuta sigara'})), EmojiAnnotations(emoji='⚰', codepoints=(9904,), name='jeneza', slug='jeneza', annotations=frozenset({'kifo'})), EmojiAnnotations(emoji='⚱', codepoints=(9905,), name='chombo kirefu cha udongo au madini hasa cha kutilia majivu ya maiti aliyechomwa', slug='chombo_kirefu_cha_udongo_au_madini_hasa_cha_kutilia_majivu_ya_maiti_aliyechomwa', annotations=frozenset({'kifo', 'msiba'})), EmojiAnnotations(emoji='🗿', codepoints=(128511,), name='kinyago', slug='kinyago', annotations=frozenset({'uso', 'moyai'})), EmojiAnnotations(emoji='\U0001f6e2', codepoints=(128738,), name='pipa la mafuta', slug='pipa_la_mafuta', annotations=frozenset({'mafuta', 'ngoma'})), EmojiAnnotations(emoji='🔮', codepoints=(128302,), name='tufe la kioo', slug='tufe_la_kioo', annotations=frozenset({'bahati', 'kichimbakazi', 'kioo', 'mpira', 'njozi', 'zana'})), EmojiAnnotations(emoji='🏧', codepoints=(127975,), name='alama ya ATM', slug='alama_ya_atm', annotations=frozenset({'atm', 'otomatiki', 'mwenye kuhesabu', 'benki'})), EmojiAnnotations(emoji='🚮', codepoints=(128686,), name='weka taka kwenye pipa', slug='weka_taka_kwenye_pipa', annotations=frozenset({'taka', 'tupio ya taka'})), EmojiAnnotations(emoji='🚰', codepoints=(128688,), name='maji safi ya kunywa', slug='maji_safi_ya_kunywa', annotations=frozenset({'safi kwa kunywa', 'kunywa', 'maji'})), EmojiAnnotations(emoji='♿', codepoints=(9855,), name='kiti cha magurudumu', slug='kiti_cha_magurudumu', annotations=frozenset({'ufikiaji'})), EmojiAnnotations(emoji='🚹', codepoints=(128697,), name='maliwato ya wanaume', slug='maliwato_ya_wanaume', annotations=frozenset({'mwanamume', 'maliwato'})), EmojiAnnotations(emoji='🚺', codepoints=(128698,), name='maliwato ya wanawake', slug='maliwato_ya_wanawake', annotations=frozenset({'mwanamke', 'maliwato'})), EmojiAnnotations(emoji='🚻', codepoints=(128699,), name='maliwato', slug='maliwato', annotations=frozenset({'choo'})), EmojiAnnotations(emoji='🚼', codepoints=(128700,), name='alama ya mtoto', slug='alama_ya_mtoto', annotations=frozenset({'mtoto', 'kubadilisha nguo'})), EmojiAnnotations(emoji='🚾', codepoints=(128702,), name='msala', slug='msala', annotations=frozenset({'maji', 'choo', 'maliwato'})), EmojiAnnotations(emoji='🛂', codepoints=(128706,), name='udhibiti wa pasipoti', slug='udhibiti_wa_pasipoti', annotations=frozenset({'udhibiti', 'pasipoti'})), EmojiAnnotations(emoji='🛄', codepoints=(128708,), name='madai ya mzigo', slug='madai_ya_mzigo', annotations=frozenset({'mzigo', 'dai'})), EmojiAnnotations(emoji='🛅', codepoints=(128709,), name='mahali pa kuhifadhi mizigo', slug='mahali_pa_kuhifadhi_mizigo', annotations=frozenset({'mzigo', 'hifadhi'})), EmojiAnnotations(emoji='🚸', codepoints=(128696,), name='watoto wanavuka barabara', slug='watoto_wanavuka_barabara', annotations=frozenset({'mtembea kwa miguu', 'kuvuka', 'trafiki', 'mtoto'})), EmojiAnnotations(emoji='⛔', codepoints=(9940,), name='hakuna kuingia', slug='hakuna_kuingia', annotations=frozenset({'siyo', 'katazwa', 'kuingia', 'marufuku', 'trafiki', 'hapana'})), EmojiAnnotations(emoji='🚫', codepoints=(128683,), name='imepigwa marufuku', slug='imepigwa_marufuku', annotations=frozenset({'siyo', 'kuingia', 'hapana', 'katazwa'})), EmojiAnnotations(emoji='🚳', codepoints=(128691,), name='baisikeli haziruhusiwi', slug='baisikeli_haziruhusiwi', annotations=frozenset({'siyo', 'baisikeli', 'katazwa', 'marufuku', 'gari', 'hapana'})), EmojiAnnotations(emoji='🚭', codepoints=(128685,), name='hakuna kuvuta sigara', slug='hakuna_kuvuta_sigara', annotations=frozenset({'siyo', 'kuvuta sigara', 'hapana', 'katazwa', 'marufuku'})), EmojiAnnotations(emoji='🚯', codepoints=(128687,), name='hakuna kutupa taka', slug='hakuna_kutupa_taka', annotations=frozenset({'kutupa taka', 'siyo', 'hapana', 'katazwa', 'marufuku'})), EmojiAnnotations(emoji='🚱', codepoints=(128689,), name='maji hayafai kwa matumizi ya kunywa', slug='maji_hayafai_kwa_matumizi_ya_kunywa', annotations=frozenset({'siyo', 'kunywa', 'katazwa', 'maji', 'safi kwa kunywa', 'marufuku', 'hapana'})), EmojiAnnotations(emoji='🚷', codepoints=(128695,), name='watembea kwa miguu hawaruhusiwi', slug='watembea_kwa_miguu_hawaruhusiwi', annotations=frozenset({'siyo', 'mtembea kwa miguu', 'hapana', 'katazwa', 'marufuku'})), EmojiAnnotations(emoji='⬆', codepoints=(11014,), name='mshale unaoelekeza juu', slug='mshale_unaoelekeza_juu', annotations=frozenset({'mshale', 'uelekeo', 'kaskazini', 'sehemu kuu ya dira'})), EmojiAnnotations(emoji='↗', codepoints=(8599,), name='mshale unaoelekeza juu kulia', slug='mshale_unaoelekeza_juu_kulia', annotations=frozenset({'mshale', 'kaskazini mashariki', 'kati ya sehemu kuu ya dira', 'uelekeo'})), EmojiAnnotations(emoji='➡', codepoints=(10145,), name='mshale unaoelekeza kulia', slug='mshale_unaoelekeza_kulia', annotations=frozenset({'mshale', 'uelekeo', 'mashariki', 'sehemu kuu ya dira'})), EmojiAnnotations(emoji='↘', codepoints=(8600,), name='mshale unaoelekeza chini kulia', slug='mshale_unaoelekeza_chini_kulia', annotations=frozenset({'mshale', 'kati ya sehemu kuu ya dira', 'kaskazini kusini mashariki', 'uelekeo'})), EmojiAnnotations(emoji='⬇', codepoints=(11015,), name='mshale unaoelekea chini', slug='mshale_unaoelekea_chini', annotations=frozenset({'mshale', 'uelekeo', 'chini', 'kusini', 'sehemu kuu ya dira'})), EmojiAnnotations(emoji='↙', codepoints=(8601,), name='mshale unaoelekeza chini kushoto', slug='mshale_unaoelekeza_chini_kushoto', annotations=frozenset({'mshale', 'kati ya sehemu kuu ya dira', 'kusini magharibi', 'uelekeo'})), EmojiAnnotations(emoji='⬅', codepoints=(11013,), name='mshale unaoelekeza kushoto', slug='mshale_unaoelekeza_kushoto', annotations=frozenset({'mshale', 'uelekeo', 'magharibi', 'sehemu kuu ya dira'})), EmojiAnnotations(emoji='↖', codepoints=(8598,), name='mshale unaoelekeza juu kushoto', slug='mshale_unaoelekeza_juu_kushoto', annotations=frozenset({'mshale', 'kaskazini magharibi', 'kati ya sehemu kuu ya dira', 'uelekeo'})), EmojiAnnotations(emoji='↕', codepoints=(8597,), name='mshale unaoelekeza chini na juu', slug='mshale_unaoelekeza_chini_na_juu', annotations=frozenset({'mshale'})), EmojiAnnotations(emoji='↔', codepoints=(8596,), name='mshale unaoeleza kushoto na kulia', slug='mshale_unaoeleza_kushoto_na_kulia', annotations=frozenset({'mshale'})), EmojiAnnotations(emoji='↩', codepoints=(8617,), name='mshale wa kulia unaopinda kushoto', slug='mshale_wa_kulia_unaopinda_kushoto', annotations=frozenset({'mshale'})), EmojiAnnotations(emoji='↪', codepoints=(8618,), name='mshale wa kushoto unaopinda kulia', slug='mshale_wa_kushoto_unaopinda_kulia', annotations=frozenset({'mshale'})), EmojiAnnotations(emoji='⤴', codepoints=(10548,), name='mshale wa kulia unaopinda juu', slug='mshale_wa_kulia_unaopinda_juu', annotations=frozenset({'mshale'})), EmojiAnnotations(emoji='⤵', codepoints=(10549,), name='mshale wa kulia unaopinda chini', slug='mshale_wa_kulia_unaopinda_chini', annotations=frozenset({'mshale', 'chini'})), EmojiAnnotations(emoji='🔃', codepoints=(128259,), name='mishale wima inayoelekeza kwa mzunguko wa akrabu', slug='mishale_wima_inayoelekeza_kwa_mzunguko_wa_akrabu', annotations=frozenset({'mshale', 'mzunguko wa akrabu', 'pakia upya'})), EmojiAnnotations(emoji='🔄', codepoints=(128260,), name='kitufe cha mishale ya kinyume saa', slug='kitufe_cha_mishale_ya_kinyume_saa', annotations=frozenset({'mshale', 'kinyume saa', 'chakaa'})), EmojiAnnotations(emoji='🔙', codepoints=(128281,), name='mshale wa nyuma', slug='mshale_wa_nyuma', annotations=frozenset({'mshale', 'nyuma'})), EmojiAnnotations(emoji='🔚', codepoints=(128282,), name='mshale wa mwisho', slug='mshale_wa_mwisho', annotations=frozenset({'mshale', 'mwisho'})), EmojiAnnotations(emoji='🔛', codepoints=(128283,), name='mshale wa hewani!', slug='mshale_wa_hewani', annotations=frozenset({'mshale', 'alama', 'hewani'})), EmojiAnnotations(emoji='🔜', codepoints=(128284,), name='mshale unaoashiria hivi karibuni', slug='mshale_unaoashiria_hivi_karibuni', annotations=frozenset({'mshale', 'hivi karibuni'})), EmojiAnnotations(emoji='🔝', codepoints=(128285,), name='mshale unaoelekea juu', slug='mshale_unaoelekea_juu', annotations=frozenset({'mshale', 'juu'})), EmojiAnnotations(emoji='\U0001f6d0', codepoints=(128720,), name='mahali pa kuabudu', slug='mahali_pa_kuabudu', annotations=frozenset({'dini', 'abudu'})), EmojiAnnotations(emoji='⚛', codepoints=(9883,), name='alama ya atomu', slug='alama_ya_atomu', annotations=frozenset({'asiyemwamini Mungu', 'atomu'})), EmojiAnnotations(emoji='\U0001f549', codepoints=(128329,), name='omu', slug='omu', annotations=frozenset({'dini', 'kihindi'})), EmojiAnnotations(emoji='✡', codepoints=(10017,), name='nyota ya daudi', slug='nyota_ya_daudi', annotations=frozenset({'dini', 'daudi', 'nyota', 'uyahudi', 'myahudi'})), EmojiAnnotations(emoji='☸', codepoints=(9784,), name='gurudumu la dharma', slug='gurudumu_la_dharma', annotations=frozenset({'dini', 'dharma', 'mfuasi wa budha', 'gurudumu'})), EmojiAnnotations(emoji='☯', codepoints=(9775,), name='yin yang', slug='yin_yang', annotations=frozenset({'yang', 'dini', 'yin', 'tao', 'mfuasi wa tao'})), EmojiAnnotations(emoji='✝', codepoints=(10013,), name='msalaba wa kilatini', slug='msalaba_wa_kilatini', annotations=frozenset({'mkristo', 'dini', 'msalaba'})), EmojiAnnotations(emoji='☦', codepoints=(9766,), name='msalaba', slug='msalaba', annotations=frozenset({'mkristo', 'dini'})), EmojiAnnotations(emoji='☪', codepoints=(9770,), name='nyota na mwezi mwandamo', slug='nyota_na_mwezi_mwandamo', annotations=frozenset({'dini', 'uislamu', 'muislamu'})), EmojiAnnotations(emoji='☮', codepoints=(9774,), name='alama ya amani', slug='alama_ya_amani', annotations=frozenset({'amani'})), EmojiAnnotations(emoji='\U0001f54e', codepoints=(128334,), name='menorah', slug='menorah', annotations=frozenset({'kinara cha mishumaa', 'dini', 'kinara cha mishumaa mingi'})), EmojiAnnotations(emoji='🔯', codepoints=(128303,), name='nyota yenye pembe sita na kitone katikati', slug='nyota_yenye_pembe_sita_na_kitone_katikati', annotations=frozenset({'bahati', 'nyota'})), EmojiAnnotations(emoji='♻', codepoints=(9851,), name='alama ya kutumia tena', slug='alama_ya_kutumia_tena', annotations=frozenset({'tumia tena'})), EmojiAnnotations(emoji='📛', codepoints=(128219,), name='beji ya jina', slug='beji_ya_jina', annotations=frozenset({'jina', 'beji'})), EmojiAnnotations(emoji='🔰', codepoints=(128304,), name='alama ya kijapani ya anayeanza', slug='alama_ya_kijapani_ya_anayeanza', annotations=frozenset({'anayeanza', 'tawi', 'tepe ya V', 'kijani', 'kijapani', 'njano', 'zana'})), EmojiAnnotations(emoji='🔱', codepoints=(128305,), name='nembo ya chusa chenye ncha tatu; mkuki wa vyembe vitatu', slug='nembo_ya_chusa_chenye_ncha_tatu;_mkuki_wa_vyembe_vitatu', annotations=frozenset({'nembo', 'mkuki wa vyembe vitatu', 'meli', 'nembo ya chusa chenye ncha tatu', 'nanga', 'zana'})), EmojiAnnotations(emoji='⭕', codepoints=(11093,), name='mduara mkubwa', slug='mduara_mkubwa', annotations=frozenset({'mduara', 'o'})), EmojiAnnotations(emoji='✅', codepoints=(9989,), name='alama nyeupe ya tiki iliyokolea', slug='alama_nyeupe_ya_tiki_iliyokolea', annotations=frozenset({'tiki', 'alama'})), EmojiAnnotations(emoji='☑', codepoints=(9745,), name='sanduku la kura lenye alama ya tiki', slug='sanduku_la_kura_lenye_alama_ya_tiki', annotations=frozenset({'kura', 'tiki', 'sanduku'})), EmojiAnnotations(emoji='✔', codepoints=(10004,), name='alama ya tiki iliyokolea', slug='alama_ya_tiki_iliyokolea', annotations=frozenset({'tiki', 'alama'})), EmojiAnnotations(emoji='✖', codepoints=(10006,), name='alama ya x iliyokolea', slug='alama_ya_x_iliyokolea', annotations=frozenset({'ghairi', 'x', 'kuzidisha', 'zidisha'})), EmojiAnnotations(emoji='❌', codepoints=(10060,), name='alama ya kuzidisha', slug='alama_ya_kuzidisha', annotations=frozenset({'ghairi', 'x', 'kuzidisha', 'alama', 'zidisha'})), EmojiAnnotations(emoji='❎', codepoints=(10062,), name='kitufe cha alama ya kuzidisha', slug='kitufe_cha_alama_ya_kuzidisha', annotations=frozenset({'mraba', 'alama'})), EmojiAnnotations(emoji='➕', codepoints=(10133,), name='alama ya kuongeza iliyokolea', slug='alama_ya_kuongeza_iliyokolea', annotations=frozenset({'hisabati', 'kuongeza'})), EmojiAnnotations(emoji='➖', codepoints=(10134,), name='alama ya kutoa iliyokolea', slug='alama_ya_kutoa_iliyokolea', annotations=frozenset({'hisabati', 'kutoa'})), EmojiAnnotations(emoji='➗', codepoints=(10135,), name='alama ya kugawanya iliyokolea', slug='alama_ya_kugawanya_iliyokolea', annotations=frozenset({'hisabati', 'kugawanya'})), EmojiAnnotations(emoji='➰', codepoints=(10160,), name='kitanzi kilichopinda', slug='kitanzi_kilichopinda', annotations=frozenset({'pinda', 'kitanzi'})), EmojiAnnotations(emoji='➿', codepoints=(10175,), name='kitanzi kilichopinda mara mbili', slug='kitanzi_kilichopinda_mara_mbili', annotations=frozenset({'pinda', 'mara mbili', 'kitanzi'})), EmojiAnnotations(emoji='〽', codepoints=(12349,), name='alama ya mbadala ya sehemu', slug='alama_ya_mbadala_ya_sehemu', annotations=frozenset({'alama', 'sehemu'})), EmojiAnnotations(emoji='✳', codepoints=(10035,), name='kinyota chenye ncha nane', slug='kinyota_chenye_ncha_nane', annotations=frozenset({'kinyota'})), EmojiAnnotations(emoji='✴', codepoints=(10036,), name='nyota yenye ncha nane', slug='nyota_yenye_ncha_nane', annotations=frozenset({'nyota'})), EmojiAnnotations(emoji='💱', codepoints=(128177,), name='sarafu mbalimbali', slug='sarafu_mbalimbali', annotations=frozenset({'sarafu', 'pesa', 'ubadilishaji wa pesa', 'benki'})), EmojiAnnotations(emoji='💲', codepoints=(128178,), name='alama ya dola', slug='alama_ya_dola', annotations=frozenset({'sarafu', 'pesa', 'dola'})), EmojiAnnotations(emoji='‼', codepoints=(8252,), name='alama mbili za mshangao', slug='alama_mbili_za_mshangao', annotations=frozenset({'mlio mkubwa', 'alama', 'mshangao', 'uakifishaji'})), EmojiAnnotations(emoji='⁉', codepoints=(8265,), name='alama ya mshangao na kuuliza', slug='alama_ya_mshangao_na_kuuliza', annotations=frozenset({'swali', 'alama', 'mshangao', 'mlio wa kushtua', 'uakifishaji'})), EmojiAnnotations(emoji='❓', codepoints=(10067,), name='alama ya kuuliza', slug='alama_ya_kuuliza', annotations=frozenset({'swali', 'alama', 'uakifishaji'})), EmojiAnnotations(emoji='❔', codepoints=(10068,), name='alama nyeupe ya kuuliza', slug='alama_nyeupe_ya_kuuliza', annotations=frozenset({'uakifishaji', 'swali', 'alama', 'iliyobainishwa'})), EmojiAnnotations(emoji='❕', codepoints=(10069,), name='alama nyeupe ya mshangao', slug='alama_nyeupe_ya_mshangao', annotations=frozenset({'uakifishaji', 'alama', 'mshangao', 'iliyobainishwa'})), EmojiAnnotations(emoji='❗', codepoints=(10071,), name='alama ya mshangao', slug='alama_ya_mshangao', annotations=frozenset({'alama', 'mshangao', 'uakifishaji'})), EmojiAnnotations(emoji='〰', codepoints=(12336,), name='dashi iliyopinda', slug='dashi_iliyopinda', annotations=frozenset({'dashi', 'kupinda', 'uakifishaji'})), EmojiAnnotations(emoji='®', codepoints=(174,), name='iliyosajiliwa', slug='iliyosajiliwa', annotations=frozenset({'kusajiliwa'})), EmojiAnnotations(emoji='™', codepoints=(8482,), name='chapa ya biashara', slug='chapa_ya_biashara', annotations=frozenset({'alama', 'alama ya biashara'})), EmojiAnnotations(emoji='♈', codepoints=(9800,), name='kondoo', slug='kondoo', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='♉', codepoints=(9801,), name='fahali', slug='fahali', annotations=frozenset({'zodiaki', 'dume'})), EmojiAnnotations(emoji='♊', codepoints=(9802,), name='mapacha', slug='mapacha', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='♋', codepoints=(9803,), name='kaa', slug='kaa', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='♌', codepoints=(9804,), name='simba', slug='simba', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='♍', codepoints=(9805,), name='mashuke', slug='mashuke', annotations=frozenset({'zodiaki', 'mwali', 'bikira'})), EmojiAnnotations(emoji='♎', codepoints=(9806,), name='mizani', slug='mizani', annotations=frozenset({'zodiaki', 'pima', 'haki'})), EmojiAnnotations(emoji='♏', codepoints=(9807,), name="ng'e", slug="ng'e", annotations=frozenset({'zodiaki', 'nge'})), EmojiAnnotations(emoji='♐', codepoints=(9808,), name='mshale', slug='mshale', annotations=frozenset({'zodiaki', 'mpiga mishale'})), EmojiAnnotations(emoji='♑', codepoints=(9809,), name='mbuzi', slug='mbuzi', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='♒', codepoints=(9810,), name='ndoo', slug='ndoo', annotations=frozenset({'maji', 'zodiaki', 'hamali'})), EmojiAnnotations(emoji='♓', codepoints=(9811,), name='samaki', slug='samaki', annotations=frozenset({'zodiaki'})), EmojiAnnotations(emoji='⛎', codepoints=(9934,), name='opichasi', slug='opichasi', annotations=frozenset({'zodiaki', 'joka', 'nyoka', 'hamali'})), EmojiAnnotations(emoji='🔀', codepoints=(128256,), name='kitufe cha kuchanganya njia za reli', slug='kitufe_cha_kuchanganya_njia_za_reli', annotations=frozenset({'mshale', 'kupishanishwa'})), EmojiAnnotations(emoji='🔁', codepoints=(128257,), name='kitufe cha kurudia', slug='kitufe_cha_kurudia', annotations=frozenset({'mshale', 'rudia', 'mzunguko wa akrabu'})), EmojiAnnotations(emoji='🔂', codepoints=(128258,), name='kitufe cha kurudia wimbo mmoja', slug='kitufe_cha_kurudia_wimbo_mmoja', annotations=frozenset({'mshale', 'mzunguko wa akrabu', 'mara moja'})), EmojiAnnotations(emoji='▶', codepoints=(9654,), name='kitufe cha kucheza', slug='kitufe_cha_kucheza', annotations=frozenset({'mshale', 'cheza', 'pembetatu', 'kulia'})), EmojiAnnotations(emoji='⏩', codepoints=(9193,), name='kitufe cha kupeleka mbele kwa kasi', slug='kitufe_cha_kupeleka_mbele_kwa_kasi', annotations=frozenset({'mshale', 'mbele', 'kasi', 'mbili'})), EmojiAnnotations(emoji='⏭', codepoints=(9197,), name='kitufe cha kwenda kwenye wimbo unaofuata', slug='kitufe_cha_kwenda_kwenye_wimbo_unaofuata', annotations=frozenset({'mshale', 'wimbo unaofuata', 'pembetatu', 'tukio linalofuata'})), EmojiAnnotations(emoji='⏯', codepoints=(9199,), name='kitufe cha kucheza au kusitisha', slug='kitufe_cha_kucheza_au_kusitisha', annotations=frozenset({'mshale', 'sitisha', 'cheza', 'pembetatu', 'kulia'})), EmojiAnnotations(emoji='◀', codepoints=(9664,), name='kitufe cha kurudisha nyuma', slug='kitufe_cha_kurudisha_nyuma', annotations=frozenset({'mshale', 'pembetatu', 'kurudi nyuma', 'kushoto'})), EmojiAnnotations(emoji='⏪', codepoints=(9194,), name='kitufe cha kurudisha nyuma kwa kasi', slug='kitufe_cha_kurudisha_nyuma_kwa_kasi', annotations=frozenset({'mshale', 'kurudisha nyuma', 'mbili'})), EmojiAnnotations(emoji='⏮', codepoints=(9198,), name='kitufe cha kurudia wimbo uliopita', slug='kitufe_cha_kurudia_wimbo_uliopita', annotations=frozenset({'mshale', 'pembetatu', 'wimbo uliotangulia', 'tukio lililotangulia'})), EmojiAnnotations(emoji='🔼', codepoints=(128316,), name='kitufe cha juu', slug='kitufe_cha_juu', annotations=frozenset({'mshale', 'nyekundu', 'kitufe'})), EmojiAnnotations(emoji='⏫', codepoints=(9195,), name='kitufe cha juu kwa kasi', slug='kitufe_cha_juu_kwa_kasi', annotations=frozenset({'mshale', 'mbili'})), EmojiAnnotations(emoji='🔽', codepoints=(128317,), name='kitufe cha chini', slug='kitufe_cha_chini', annotations=frozenset({'mshale', 'nyekundu', 'kitufe', 'chini'})), EmojiAnnotations(emoji='⏬', codepoints=(9196,), name='kitufe cha chini kwa kasi', slug='kitufe_cha_chini_kwa_kasi', annotations=frozenset({'mshale', 'mbili', 'chini'})), EmojiAnnotations(emoji='\u23f8', codepoints=(9208,), name='kitufe cha kusitisha', slug='kitufe_cha_kusitisha', annotations=frozenset({'sitisha', 'wima', 'upau', 'mbili'})), EmojiAnnotations(emoji='\u23f9', codepoints=(9209,), name='kitufe cha kusimamisha', slug='kitufe_cha_kusimamisha', annotations=frozenset({'mraba', 'sitisha'})), EmojiAnnotations(emoji='\u23fa', codepoints=(9210,), name='kitufe cha kurekodi', slug='kitufe_cha_kurekodi', annotations=frozenset({'mduara', 'rekodi'})), EmojiAnnotations(emoji='⏏', codepoints=(9167,), name='kitufe cha kutoa', slug='kitufe_cha_kutoa', annotations=frozenset({'ondoa'})), EmojiAnnotations(emoji='🎦', codepoints=(127910,), name='filamu', slug='filamu', annotations=frozenset({'kamera', 'flamu', 'sinema'})), EmojiAnnotations(emoji='🔅', codepoints=(128261,), name='kitufe cha kufifiza mwanga', slug='kitufe_cha_kufifiza_mwanga', annotations=frozenset({'fifia', 'chini', "kung'aa"})), EmojiAnnotations(emoji='🔆', codepoints=(128262,), name='kitufe cha kuongeza mwanga', slug='kitufe_cha_kuongeza_mwanga', annotations=frozenset({"mng'ao", "kung'aa"})), EmojiAnnotations(emoji='📶', codepoints=(128246,), name='pau za antena', slug='pau_za_antena', annotations=frozenset({'simu ya mkononi', 'ishara', 'pau', 'ya mkononi', 'antena', 'simu'})), EmojiAnnotations(emoji='📵', codepoints=(128245,), name='simu za mkononi haziruhusiwi', slug='simu_za_mkononi_haziruhusiwi', annotations=frozenset({'siyo', 'katazwa', 'somu ya mkononi', 'marufuku', 'hapana', 'ya mkononi', 'simu'})), EmojiAnnotations(emoji='📳', codepoints=(128243,), name='hali ya mtetemo', slug='hali_ya_mtetemo', annotations=frozenset({'simu', 'mtetemo', 'hali', 'simu ya mkononi', 'ya mkononi'})), EmojiAnnotations(emoji='📴', codepoints=(128244,), name='zima simu za mkononi', slug='zima_simu_za_mkononi', annotations=frozenset({'imezimwa', 'simu', 'simu ya mkononi', 'ya mkononi'})), EmojiAnnotations(emoji='{#⃣}', codepoints=(123, 35, 8419, 125), name='kitufe cha nambari', slug='kitufe_cha_nambari', annotations=frozenset({'hashi', 'kitufe', 'alama ya reli'})), EmojiAnnotations(emoji='{*⃣}', codepoints=(123, 42, 8419, 125), name='kitufe cha nyota', slug='kitufe_cha_nyota', annotations=frozenset({'nyota', 'kitufe', 'kinyota'})), EmojiAnnotations(emoji='{0⃣}', codepoints=(123, 48, 8419, 125), name='kitufe cha nambari sufuri', slug='kitufe_cha_nambari_sufuri', annotations=frozenset({'0', 'sufuri', 'kitufe'})), EmojiAnnotations(emoji='{1⃣}', codepoints=(123, 49, 8419, 125), name='kitufe cha nambari moja', slug='kitufe_cha_nambari_moja', annotations=frozenset({'kitufe', 'moja', '1'})), EmojiAnnotations(emoji='{2⃣}', codepoints=(123, 50, 8419, 125), name='kitufe cha nambari mbili', slug='kitufe_cha_nambari_mbili', annotations=frozenset({'kitufe', '2', 'mbili'})), EmojiAnnotations(emoji='{3⃣}', codepoints=(123, 51, 8419, 125), name='kitufe cha nambari tatu', slug='kitufe_cha_nambari_tatu', annotations=frozenset({'tatu', 'kitufe', '3'})), EmojiAnnotations(emoji='{4⃣}', codepoints=(123, 52, 8419, 125), name='kitufe cha nambari nne', slug='kitufe_cha_nambari_nne', annotations=frozenset({'4', 'nne', 'kitufe'})), EmojiAnnotations(emoji='{5⃣}', codepoints=(123, 53, 8419, 125), name='kitufe cha nambari tano', slug='kitufe_cha_nambari_tano', annotations=frozenset({'tano', '5', 'kitufe'})), EmojiAnnotations(emoji='{6⃣}', codepoints=(123, 54, 8419, 125), name='kitufe cha nambari sita', slug='kitufe_cha_nambari_sita', annotations=frozenset({'5', 'kitufe', 'sita'})), EmojiAnnotations(emoji='{7⃣}', codepoints=(123, 55, 8419, 125), name='kitufe cha nambari saba', slug='kitufe_cha_nambari_saba', annotations=frozenset({'7', 'kitufe', 'saba'})), EmojiAnnotations(emoji='{8⃣}', codepoints=(123, 56, 8419, 125), name='kitufe cha nambari nane', slug='kitufe_cha_nambari_nane', annotations=frozenset({'8', 'nane', 'kitufe'})), EmojiAnnotations(emoji='{9⃣}', codepoints=(123, 57, 8419, 125), name='kitufe cha nambari tisa', slug='kitufe_cha_nambari_tisa', annotations=frozenset({'kitufe', 'tisa', '9'})), EmojiAnnotations(emoji='🔟', codepoints=(128287,), name='kitufe cha nambari kumi', slug='kitufe_cha_nambari_kumi', annotations=frozenset({'10', 'kitufe', 'kumi'})), EmojiAnnotations(emoji='💯', codepoints=(128175,), name='pointi mia moja', slug='pointi_mia_moja', annotations=frozenset({'kamili', 'alama', 'mia moja', '100'})), EmojiAnnotations(emoji='🔞', codepoints=(128286,), name='chini ya miaka kumi na nani hawaruhusiwi', slug='chini_ya_miaka_kumi_na_nani_hawaruhusiwi', annotations=frozenset({'siyo', '18', 'katazwa', 'chini ya umri unaokubaliwa', 'kikwazo cha umri', 'hapana', 'kumi na nane', 'mafuruku'})), EmojiAnnotations(emoji='🔠', codepoints=(128288,), name='weka herufi kubwa za kilatini', slug='weka_herufi_kubwa_za_kilatini', annotations=frozenset({'herufi kubwa', 'latini', 'weka', 'herufi'})), EmojiAnnotations(emoji='🔡', codepoints=(128289,), name='weka hefuri ndogo za kilatini', slug='weka_hefuri_ndogo_za_kilatini', annotations=frozenset({'herufi ndogo', 'latini', 'abcd', 'weka', 'herufi'})), EmojiAnnotations(emoji='🔢', codepoints=(128290,), name='weka nambari', slug='weka_nambari', annotations=frozenset({'nambari', '1234', 'weka'})), EmojiAnnotations(emoji='🔣', codepoints=(128291,), name='weka alama', slug='weka_alama', annotations=frozenset({'weka'})), EmojiAnnotations(emoji='🔤', codepoints=(128292,), name='weka herufi za kilatini', slug='weka_herufi_za_kilatini', annotations=frozenset({'abc', 'alfabeti', 'latini', 'weka', 'herufi'})), EmojiAnnotations(emoji='🅰', codepoints=(127344,), name='kitufe chenye herufi A', slug='kitufe_chenye_herufi_a', annotations=frozenset({'a', 'damu'})), EmojiAnnotations(emoji='🆎', codepoints=(127374,), name='kitufe chenye herufi AB', slug='kitufe_chenye_herufi_ab', annotations=frozenset({'damu', 'ab'})), EmojiAnnotations(emoji='🅱', codepoints=(127345,), name='kitufe chenye herufi B', slug='kitufe_chenye_herufi_b', annotations=frozenset({'b', 'damu'})), EmojiAnnotations(emoji='🆑', codepoints=(127377,), name='kitufe chenye herufi CL', slug='kitufe_chenye_herufi_cl', annotations=frozenset({'cl'})), EmojiAnnotations(emoji='🆒', codepoints=(127378,), name='neno cool kwenye mraba', slug='neno_cool_kwenye_mraba', annotations=frozenset({'baridi'})), EmojiAnnotations(emoji='🆓', codepoints=(127379,), name='neno free kwenye mraba', slug='neno_free_kwenye_mraba', annotations=frozenset({'huru'})), EmojiAnnotations(emoji='ℹ', codepoints=(8505,), name='kitufe cha maelezo', slug='kitufe_cha_maelezo', annotations=frozenset({'i', 'maelezo'})), EmojiAnnotations(emoji='🆔', codepoints=(127380,), name='herufi ID kwenye mraba', slug='herufi_id_kwenye_mraba', annotations=frozenset({'utambulisho', 'id'})), EmojiAnnotations(emoji='Ⓜ', codepoints=(9410,), name='herufi M kwenye mduara', slug='herufi_m_kwenye_mduara', annotations=frozenset({'mduara', 'm'})), EmojiAnnotations(emoji='🆕', codepoints=(127381,), name='neno new kwenye mraba', slug='neno_new_kwenye_mraba', annotations=frozenset({'mpya'})), EmojiAnnotations(emoji='🆖', codepoints=(127382,), name='herufi ng kwenye mraba', slug='herufi_ng_kwenye_mraba', annotations=frozenset({'ng'})), EmojiAnnotations(emoji='🅾', codepoints=(127358,), name='kitufe cha o', slug='kitufe_cha_o', annotations=frozenset({'o', 'damu'})), EmojiAnnotations(emoji='🆗', codepoints=(127383,), name='neno ok kwenye mraba', slug='neno_ok_kwenye_mraba', annotations=frozenset({'sawa'})), EmojiAnnotations(emoji='🅿', codepoints=(127359,), name='kitufe cha p', slug='kitufe_cha_p', annotations=frozenset({'maegesho'})), EmojiAnnotations(emoji='🆘', codepoints=(127384,), name='neno sos kwenye mraba', slug='neno_sos_kwenye_mraba', annotations=frozenset({'sos', 'usaidizi'})), EmojiAnnotations(emoji='🆙', codepoints=(127385,), name='neno up! kwenye mraba', slug='neno_up_kwenye_mraba', annotations=frozenset({'alama', 'juu'})), EmojiAnnotations(emoji='🆚', codepoints=(127386,), name='neno vs kwenye mraba', slug='neno_vs_kwenye_mraba', annotations=frozenset({'dhidi ya', 'vs'})), EmojiAnnotations(emoji='🈁', codepoints=(127489,), name='katakana koko kwenye mraba', slug='katakana_koko_kwenye_mraba', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🈂', codepoints=(127490,), name='katakana sa kwenye mraba', slug='katakana_sa_kwenye_mraba', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🈷', codepoints=(127543,), name='idiografu ya mwezi kwenye mraba', slug='idiografu_ya_mwezi_kwenye_mraba', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🈶', codepoints=(127542,), name='idiografu ya kuwepo kwenye mraba', slug='idiografu_ya_kuwepo_kwenye_mraba', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🈯', codepoints=(127535,), name='idiografu ya kidole kwenye mraba', slug='idiografu_ya_kidole_kwenye_mraba', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🉐', codepoints=(127568,), name='idiografu ya manufaa kwenye mduara', slug='idiografu_ya_manufaa_kwenye_mduara', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🈹', codepoints=(127545,), name='idiografu ya kugawanya kwenye mraba', slug='idiografu_ya_kugawanya_kwenye_mraba', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🈚', codepoints=(127514,), name='idiografu ya kutoa kwenye mraba', slug='idiografu_ya_kutoa_kwenye_mraba', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🈲', codepoints=(127538,), name='idiografu ya marufuku kwenye mraba', slug='idiografu_ya_marufuku_kwenye_mraba', annotations=frozenset({'kijapani'})), EmojiAnnotations(emoji='🉑', codepoints=(127569,), name='idiografu ya kukubali kwenye mduara', slug='idiografu_ya_kukubali_kwenye_mduara', annotations=frozenset({'kichina'})), EmojiAnnotations(emoji='🈸', codepoints=(127544,), name='idiografu ya kutumia kwenye mraba', slug='idiografu_ya_kutumia_kwenye_mraba', annotations=frozenset({'kichina'})), EmojiAnnotations(emoji='🈴', codepoints=(127540,), name='idiografu ya pamoja kwenye mraba', slug='idiografu_ya_pamoja_kwenye_mraba', annotations=frozenset({'kichina'})), EmojiAnnotations(emoji='🈳', codepoints=(127539,), name='idiografu tupu kwenye mraba', slug='idiografu_tupu_kwenye_mraba', annotations=frozenset({'kichina'})), EmojiAnnotations(emoji='㊗', codepoints=(12951,), name='idiografu ya pongezi kwenye mduara', slug='idiografu_ya_pongezi_kwenye_mduara', annotations=frozenset({'idiografu', 'hongera', 'kichina', 'pongezi'})), EmojiAnnotations(emoji='㊙', codepoints=(12953,), name='idiografu ya siri kwenye mduara', slug='idiografu_ya_siri_kwenye_mduara', annotations=frozenset({'siri', 'kichina', 'idiografu'})), EmojiAnnotations(emoji='🈺', codepoints=(127546,), name='idiografu ya kuendesha kwenye mraba', slug='idiografu_ya_kuendesha_kwenye_mraba', annotations=frozenset({'kichina'})), EmojiAnnotations(emoji='🈵', codepoints=(127541,), name='idiografu ya kujaa kwenye mraba', slug='idiografu_ya_kujaa_kwenye_mraba', annotations=frozenset({'kichina'})), EmojiAnnotations(emoji='▪', codepoints=(9642,), name='mraba mdogo mweusi', slug='mraba_mdogo_mweusi', annotations=frozenset({'jiometri', 'mraba'})), EmojiAnnotations(emoji='▫', codepoints=(9643,), name='mraba mdogo mweupe', slug='mraba_mdogo_mweupe', annotations=frozenset({'jiometri', 'mraba'})), EmojiAnnotations(emoji='◻', codepoints=(9723,), name='mraba wa wastani mweupe', slug='mraba_wa_wastani_mweupe', annotations=frozenset({'jiometri', 'mraba'})), EmojiAnnotations(emoji='◼', codepoints=(9724,), name='mraba wa wastani mweusi', slug='mraba_wa_wastani_mweusi', annotations=frozenset({'jiometri', 'mraba'})), EmojiAnnotations(emoji='◽', codepoints=(9725,), name='mraba wastani mdogo mweupe', slug='mraba_wastani_mdogo_mweupe', annotations=frozenset({'jiometri', 'mraba'})), EmojiAnnotations(emoji='◾', codepoints=(9726,), name='mraba wastani mdogo mweusi', slug='mraba_wastani_mdogo_mweusi', annotations=frozenset({'jiometri', 'mraba'})), EmojiAnnotations(emoji='⬛', codepoints=(11035,), name='mraba mkubwa mweusi', slug='mraba_mkubwa_mweusi', annotations=frozenset({'jiometri', 'mraba'})), EmojiAnnotations(emoji='⬜', codepoints=(11036,), name='mraba mkubwa mweupe', slug='mraba_mkubwa_mweupe', annotations=frozenset({'jiometri', 'mraba'})), EmojiAnnotations(emoji='🔶', codepoints=(128310,), name='almasi kubwa ya njano', slug='almasi_kubwa_ya_njano', annotations=frozenset({'jiometri', 'almasi', 'manjano'})), EmojiAnnotations(emoji='🔷', codepoints=(128311,), name='almasi kubwa ya samawati', slug='almasi_kubwa_ya_samawati', annotations=frozenset({'jiometri', 'almasi', 'samawati'})), EmojiAnnotations(emoji='🔸', codepoints=(128312,), name='almasi ndogo ya njano', slug='almasi_ndogo_ya_njano', annotations=frozenset({'jiometri', 'almasi', 'manjano'})), EmojiAnnotations(emoji='🔹', codepoints=(128313,), name='almasi ndogo ya samawati', slug='almasi_ndogo_ya_samawati', annotations=frozenset({'jiometri', 'almasi', 'samawati'})), EmojiAnnotations(emoji='🔺', codepoints=(128314,), name='pembetatu inayoelekeza juu', slug='pembetatu_inayoelekeza_juu', annotations=frozenset({'jiometri', 'nyekundu'})), EmojiAnnotations(emoji='🔻', codepoints=(128315,), name='pembetatu inayoelekeza chini', slug='pembetatu_inayoelekeza_chini', annotations=frozenset({'jiometri', 'nyekundu', 'chini'})), EmojiAnnotations(emoji='💠', codepoints=(128160,), name='almasi yenye kitone', slug='almasi_yenye_kitone', annotations=frozenset({'jiometri', 'almasi', 'ndani', 'kibonzo'})), EmojiAnnotations(emoji='🔘', codepoints=(128280,), name='kitufe', slug='kitufe', annotations=frozenset({'jiometri'})), EmojiAnnotations(emoji='🔲', codepoints=(128306,), name='kitufe cheusi cha mraba', slug='kitufe_cheusi_cha_mraba', annotations=frozenset({'jiometri', 'mraba', 'kitufe'})), EmojiAnnotations(emoji='🔳', codepoints=(128307,), name='kitufe cheupe cha mraba', slug='kitufe_cheupe_cha_mraba', annotations=frozenset({'jiometri', 'mraba', 'kitufe', 'iliyobainishwa'})), EmojiAnnotations(emoji='⚪', codepoints=(9898,), name='mduara mweupe', slug='mduara_mweupe', annotations=frozenset({'mduara', 'jiometri'})), EmojiAnnotations(emoji='⚫', codepoints=(9899,), name='mduara mweusi', slug='mduara_mweusi', annotations=frozenset({'mduara', 'jiometri'})), EmojiAnnotations(emoji='🔴', codepoints=(128308,), name='mduara mwekundu', slug='mduara_mwekundu', annotations=frozenset({'mduara', 'jiometri', 'nyekundu'})), EmojiAnnotations(emoji='🔵', codepoints=(128309,), name='mduara wa samawati', slug='mduara_wa_samawati', annotations=frozenset({'mduara', 'jiometri', 'samawati'})),]
[ 6738, 795, 13210, 20597, 13, 368, 13210, 414, 12272, 1330, 2295, 31370, 2025, 30078, 198, 368, 31370, 796, 685, 198, 220, 2295, 31370, 2025, 30078, 7, 368, 31370, 11639, 47249, 222, 3256, 14873, 538, 1563, 82, 16193, 1065, 5332, 1065, 1...
2.314958
68,641
from io import BytesIO from abc import ABCMeta, abstractmethod import metric_constant as c import os import gzip import zlib import base64 import sqs import enum_type SENSITIVITY_TYPE = enum_type.create(NONE="Insensitive", ENCRYPT="Sensitive") """ Encrypt S3 files (0) or leave unencrypted (1) """
[ 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 11748, 18663, 62, 9979, 415, 355, 269, 198, 11748, 28686, 198, 11748, 308, 13344, 198, 11748, 1976, 8019, 198, 11748, 2779, 2414, 198, 11...
2.851852
108
# coding: utf-8 # 安装Mysql驱动 # pip install mysql-connector-python --allow-external mysql-connector-python # pip install mysql-connector # 导入Mysql驱动 import mysql.connector # 创建数据库连接 conn = mysql.connector.connect(host='192.168.1.64', user='root', password='root', database='test') # 创建游标 cursor = conn.cursor() # 创建user表 cursor.execute('create table user(id varchar(20) primary key, name varchar(20))') # 插入一行数据,注意Mysql的占位符是%s cursor.execute('insert into user(id, name) values (%s, %s)', ['1', 'Michael']) print(cursor.rowcount) # 关闭游标 cursor.close() # 提交事务 conn.commit() # 再次创建游标 cursor = conn.cursor() # 运行查询 cursor.execute('select * from user where id=%s', ('1',)) values = cursor.fetchall() print(values) # 关闭游标 cursor.close() # 关闭数据库连接 conn.close()
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 10263, 106, 231, 35318, 44, 893, 13976, 165, 102, 109, 27950, 101, 198, 2, 7347, 2721, 48761, 12, 8443, 273, 12, 29412, 1377, 12154, 12, 22615, 48761, 12, 8443, 273, 12, 29412, 198, 2, ...
1.839416
411
import select import socket import threading import queue import time """ This class is used by both player, trainer, coach and fake monitor for connecting to the server. """
[ 11748, 2922, 198, 11748, 17802, 198, 11748, 4704, 278, 198, 11748, 16834, 198, 11748, 640, 198, 198, 37811, 198, 1212, 1398, 318, 973, 416, 1111, 2137, 11, 21997, 11, 3985, 290, 8390, 5671, 329, 14320, 284, 262, 4382, 13, 198, 37811 ]
4.268293
41
import hydroDL import os from hydroDL.data import dbCsv from hydroDL.model import rnn, crit, train from hydroDL import post from hydroDL import utils import numpy as np rootDB = hydroDL.pathSMAP['DB_L3_NA'] nEpoch = 100 outFolder = os.path.join(hydroDL.pathSMAP['outTest'], 'cnnCond') ty1 = [20150402, 20160401] ty2 = [20160401, 20170401] ty12 = [20150401, 20170401] ty3 = [20170401, 20180401] # load data dfc = hydroDL.data.dbCsv.DataframeCsv( rootDB=rootDB, subset='CONUSv4f1', tRange=ty1) xc = dfc.getData( varT=dbCsv.varForcing, varC=dbCsv.varConst, doNorm=True, rmNan=True) yc = dfc.getData(varT='SMAP_AM', doNorm=True, rmNan=False) yc[:, :, 0] = utils.interpNan(yc[:, :, 0]) c = np.concatenate((yc, xc), axis=2) df = hydroDL.data.dbCsv.DataframeCsv( rootDB=rootDB, subset='CONUSv4f1', tRange=ty2) x = df.getData( varT=dbCsv.varForcing, varC=dbCsv.varConst, doNorm=True, rmNan=True) y = df.getData(varT='SMAP_AM', doNorm=True, rmNan=False) nx = x.shape[-1] ny = 1 model = rnn.CnnCondLstm(nx=nx, ny=ny, ct=365, hiddenSize=64, cnnSize=32, opt=3) lossFun = crit.RmseLoss() model = train.trainModel( model, x, y, lossFun, xc=c, nEpoch=nEpoch, miniBatch=[100, 30]) yOut = train.testModelCnnCond(model, x, y) # yOut = train.testModel(model, x) yP = dbCsv.transNorm( yOut[:, :, 0], rootDB=rootDB, fieldName='SMAP_AM', fromRaw=False) yT = dbCsv.transNorm( y[:, model.ct:, 0], rootDB=rootDB, fieldName='SMAP_AM', fromRaw=False) statDict = post.statError(yP, yT) statDict['RMSE'].mean()
[ 11748, 17173, 19260, 198, 11748, 28686, 198, 6738, 17173, 19260, 13, 7890, 1330, 20613, 34, 21370, 198, 6738, 17173, 19260, 13, 19849, 1330, 374, 20471, 11, 1955, 11, 4512, 198, 6738, 17173, 19260, 1330, 1281, 198, 6738, 17173, 19260, 133...
2.184704
693
from django.contrib import admin from .models import Note # Меняем формат вывода даты и времени только для РУССКОЙ локализации # Для всего сайта надо поместить этот код в `settings.py` from django.conf.locale.ru import formats as ru_formats ru_formats.DATETIME_FORMAT = "d.m.Y H:i:s" @admin.register(Note)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 5740, 198, 198, 2, 12466, 250, 16843, 22177, 40623, 16843, 43108, 220, 141, 226, 15166, 21169, 43108, 16142, 20375, 12466, 110, 45035, 38857, 25443, 112, 16...
1.552764
199
import pytest import quake.client as quake @quake.mpi_task(n_processes=1) @quake.mpi_task(n_processes=1) @quake.mpi_task(n_processes=1) @quake.mpi_task(n_processes=4) @quake.mpi_task(n_processes=4) @quake.arg("a", layout="scatter") @quake.mpi_task(n_processes=8) @quake.mpi_task(n_processes=2)
[ 11748, 12972, 9288, 198, 198, 11748, 36606, 13, 16366, 355, 36606, 628, 198, 31, 421, 539, 13, 3149, 72, 62, 35943, 7, 77, 62, 14681, 274, 28, 16, 8, 628, 198, 31, 421, 539, 13, 3149, 72, 62, 35943, 7, 77, 62, 14681, 274, 28, ...
2.038961
154
import logging import sys import os from mlpiper.components.connectable_component import ConnectableComponent from datarobot_drum.drum.common import LOGGER_NAME_PREFIX from datarobot_drum.drum.model_adapter import PythonModelAdapter from datarobot_drum.drum.utils import shared_fit_preprocessing, make_sure_artifact_is_small logger = logging.getLogger(LOGGER_NAME_PREFIX + "." + __name__)
[ 11748, 18931, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 6738, 25962, 79, 9346, 13, 5589, 3906, 13, 8443, 540, 62, 42895, 1330, 8113, 540, 21950, 198, 198, 6738, 4818, 283, 672, 313, 62, 67, 6582, 13, 67, 6582, 13, 11321, 1330, ...
3
131
import torch import torch.nn import linklink as link from unn.utils.bn_helper import GroupSyncBatchNorm, FrozenBatchNorm2d from unn.utils.dist_helper import get_world_size def op32_wrapper(func): """Wrapper forward whose input are all tensors and can only handle float""" return forward def setup_fp16(): """Use fp32 for BatchNormal""" torch.nn.BatchNorm2d.forward = op32_wrapper(torch.nn.BatchNorm2d.forward) GroupSyncBatchNorm.forward = op32_wrapper(GroupSyncBatchNorm.forward) FrozenBatchNorm2d.forward = op32_wrapper(FrozenBatchNorm2d.forward)
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 198, 11748, 2792, 8726, 355, 2792, 198, 198, 6738, 41231, 13, 26791, 13, 9374, 62, 2978, 525, 1330, 4912, 28985, 33, 963, 35393, 11, 23673, 33, 963, 35393, 17, 67, 198, 6738, 41231, 13, 2679...
2.885
200
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def gaba(path): """Effect of pentazocine on post-operative pain (average VAS scores) The table shows, separately for males and females, the effect of pentazocine on post-operative pain profiles (average VAS scores), with (mbac and fbac) and without (mpl and fpl) preoperatively administered baclofen. Pain scores are recorded every 20 minutes, from 10 minutes to 170 minutes. A data frame with 9 observations on the following 7 variables. `min` a numeric vector `mbac` a numeric vector `mpl` a numeric vector `fbac` a numeric vector `fpl` a numeric vector `avbac` a numeric vector `avplac` a numeric vector Gordon, N. C. et al.(1995): 'Enhancement of Morphine Analgesia by the GABA\ *\_B* against Baclofen'. *Neuroscience* 69: 345-349. Args: path: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filename is `gaba.csv`. Returns: Tuple of np.ndarray `x_train` with 9 rows and 7 columns and dictionary `metadata` of column headers (feature names). """ import pandas as pd path = os.path.expanduser(path) filename = 'gaba.csv' if not os.path.exists(os.path.join(path, filename)): url = 'http://dustintran.com/data/r/DAAG/gaba.csv' maybe_download_and_extract(path, url, save_file_name='gaba.csv', resume=False) data = pd.read_csv(os.path.join(path, filename), index_col=0, parse_dates=True) x_train = data.values metadata = {'columns': data.columns} return x_train, metadata
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 269, 21370, ...
2.665734
715
# Copyright 1999-2018 Alibaba Group Holding Ltd. # # 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. import unittest import numpy as np from mars.tensor import tensor from mars.executor import Executor try: import scipy import scipy.sparse as sps from scipy.special import gammaln as scipy_gammaln, erf as scipy_erf from mars.tensor.special import gammaln, erf except ImportError: scipy = None @unittest.skipIf(scipy is None, 'scipy not installed')
[ 2, 15069, 7358, 12, 7908, 41992, 4912, 31703, 12052, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.218543
302
# Time: O(nlogn) # Space: O(n) import collections
[ 2, 3862, 25, 220, 440, 7, 21283, 2360, 8, 198, 2, 4687, 25, 440, 7, 77, 8, 198, 198, 11748, 17268, 628 ]
2.409091
22
"""Holds client subclass of discord.ext.Bot, and registeres commands.""" from discord.ext import commands as ext from offthedialbot.commands import register_commands client = Client(command_prefix='$') register_commands(client)
[ 37811, 39, 10119, 5456, 47611, 286, 36446, 13, 2302, 13, 20630, 11, 290, 4214, 68, 411, 9729, 526, 15931, 201, 198, 201, 198, 6738, 36446, 13, 2302, 1330, 9729, 355, 1070, 201, 198, 201, 198, 6738, 572, 83, 704, 498, 13645, 13, 9503...
3.115385
78
import argparse import json import logging import os import time from collections import Counter from copy import deepcopy from sklearn.model_selection import KFold import metrics import numpy as np import torch import torch.nn as nn import torch.optim as optim from pyjarowinkler import distance as jwdistance from utils import get_clusters, split_into_sets, fixed_split from common import ControllerBase from data import read_corpus parser = argparse.ArgumentParser() parser.add_argument("--model_name", type=str, default="baseline_senticoref_coref149") parser.add_argument("--learning_rate", type=float, default=0.005) parser.add_argument("--num_epochs", type=int, default=50) parser.add_argument("--dataset", type=str, default="senticoref") # {'senticoref', 'coref149'} parser.add_argument("--random_seed", type=int, default=13) parser.add_argument("--fixed_split", action="store_true") logging.basicConfig(level=logging.INFO) RANDOM_SEED = None if RANDOM_SEED: np.random.seed(RANDOM_SEED) torch.random.manual_seed(RANDOM_SEED) # Cache features for single mentions and mention pairs (useful for doing multiple epochs over data) # Format for single: {doc1_id: {mention_id: <features>, ...}, ...} _cached_MentionFeatures = {} # Format for pair: {doc1_id: {(mention1_id, mention2_id): <features>, ...}, ...} _cached_MentionPairFeatures = {} if __name__ == "__main__": args = parser.parse_args() if args.random_seed: torch.random.manual_seed(args.random_seed) np.random.seed(args.random_seed) documents = read_corpus(args.dataset) # Train model if args.dataset == "coref149": INNER_K, OUTER_K = 3, 10 logging.info(f"Performing {OUTER_K}-fold (outer) and {INNER_K}-fold (inner) CV...") test_metrics = {"muc_p": [], "muc_r": [], "muc_f1": [], "b3_p": [], "b3_r": [], "b3_f1": [], "ceafe_p": [], "ceafe_r": [], "ceafe_f1": [], "avg_p": [], "avg_r": [], "avg_f1": []} aio_metrics = deepcopy(test_metrics) eio_metrics = deepcopy(test_metrics) for idx_outer_fold, (train_dev_index, test_index) in enumerate(KFold(n_splits=OUTER_K, shuffle=True).split(documents)): curr_train_dev_docs = [documents[_i] for _i in train_dev_index] curr_test_docs = [documents[_i] for _i in test_index] best_metric, best_name = float("inf"), None for idx_inner_fold, (train_index, dev_index) in enumerate(KFold(n_splits=INNER_K).split(curr_train_dev_docs)): curr_train_docs = [curr_train_dev_docs[_i] for _i in train_index] curr_dev_docs = [curr_train_dev_docs[_i] for _i in dev_index] curr_model = create_model_instance(f"fold{idx_outer_fold}_{idx_inner_fold}") dev_loss = curr_model.train(epochs=args.num_epochs, train_docs=curr_train_docs, dev_docs=curr_dev_docs) logging.info(f"Fold {idx_outer_fold}-{idx_inner_fold}: {dev_loss: .5f}") if dev_loss < best_metric: best_metric = dev_loss best_name = curr_model.path_model_dir logging.info(f"Best model: {best_name}, best loss: {best_metric: .5f}") curr_model = BaselineController.from_pretrained(best_name) curr_test_metrics = curr_model.evaluate(curr_test_docs) curr_model.visualize() for metric, metric_value in curr_test_metrics.items(): test_metrics[f"{metric}_p"].append(float(metric_value.precision())) test_metrics[f"{metric}_r"].append(float(metric_value.recall())) test_metrics[f"{metric}_f1"].append(float(metric_value.f1())) aio_model = AllInOneModel(curr_model) curr_aio_metrics = aio_model.evaluate(curr_test_docs) for metric, metric_value in curr_aio_metrics.items(): aio_metrics[f"{metric}_p"].append(float(metric_value.precision())) aio_metrics[f"{metric}_r"].append(float(metric_value.recall())) aio_metrics[f"{metric}_f1"].append(float(metric_value.f1())) eio_model = EachInOwnModel(curr_model) curr_eio_metrics = eio_model.evaluate(curr_test_docs) for metric, metric_value in curr_eio_metrics.items(): eio_metrics[f"{metric}_p"].append(float(metric_value.precision())) eio_metrics[f"{metric}_r"].append(float(metric_value.recall())) eio_metrics[f"{metric}_f1"].append(float(metric_value.f1())) logging.info(f"Final baseline scores (over {OUTER_K} folds)") for metric, metric_values in test_metrics.items(): logging.info(f"- {metric}: mean={np.mean(metric_values): .4f} +- sd={np.std(metric_values): .4f}\n" f"\t all fold scores: {metric_values}") logging.info(f"Final all-in-one scores (over {OUTER_K} folds)") for metric, metric_values in aio_metrics.items(): logging.info(f"- {metric}: mean={np.mean(metric_values): .4f} +- sd={np.std(metric_values): .4f}\n" f"\t all fold scores: {metric_values}") logging.info(f"Final each-in-own scores (over {OUTER_K} folds)") for metric, metric_values in eio_metrics.items(): logging.info(f"- {metric}: mean={np.mean(metric_values): .4f} +- sd={np.std(metric_values): .4f}\n" f"\t all fold scores: {metric_values}") else: logging.info(f"Using single train/dev/test split...") if args.fixed_split: logging.info("Using fixed dataset split") train_docs, dev_docs, test_docs = fixed_split(documents, args.dataset) else: train_docs, dev_docs, test_docs = split_into_sets(documents, train_prop=0.7, dev_prop=0.15, test_prop=0.15) model = create_model_instance(args.model_name) model.train(epochs=args.num_epochs, train_docs=train_docs, dev_docs=dev_docs) # Reload best checkpoint model = BaselineController.from_pretrained(model.path_model_dir) model.evaluate(test_docs) model.visualize() aio_model = AllInOneModel(model) aio_model.evaluate(test_docs) eio_model = EachInOwnModel(model) eio_model.evaluate(test_docs)
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 17268, 1330, 15034, 198, 6738, 4866, 1330, 2769, 30073, 198, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 509, 37, 727, 198, ...
2.112574
3,038
#!/usr/bin/env python # -*- python -*- #BEGIN_LEGAL # #Copyright (c) 2019 Intel Corporation # # 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. # #END_LEGAL from __future__ import print_function import sys import os import re import enum_txt_writer import codegen import genutil all_of_pattern = re.compile(r'ALL_OF[(](?P<chip>[A-Z0-9a-z_]+)[)]') not_pattern = re.compile(r'NOT[(](?P<ext>[A-Z0-9a-z_]+)[)]') common_subset_pattern = re.compile(r'COMMON_SUBSET[(](?P<chip1>[A-Z0-9a-z_]+),(?P<chip2>[A-Z0-9a-z_]+)[)]') def parse_lines(input_file_name, lines): # returns a dictionary """Return a list of chips and a dictionary indexed by chip containing lists of isa-sets """ d = {} chips = [] for line in lines: if line.find(':') == -1: _die("reading file {}: missing colon in line: {}".format( input_file_name, line)) try: (chip, extensions) = line.split(':') except: _die("Bad line: {}".format(line)) chip = chip.strip() chips.append(chip) extensions = extensions.split() if chip in d: _die("Duplicate definition of %s in %s" % (chip, input_file_name)) if chip == 'ALL': _die("Cannot define a chip named 'ALL'." + " That name is reserved.") d[chip] = extensions return (chips,d) def recursive_expand(d): '''d is a dict of lists. The lists contain extension names, and 3 operators: ALL_OF(chip), NOT(extension), and COMMON_SUBSET(chip1,chip2). Before inserting the extensions from an ALL_OF(x) reference we must remove the all of the NOT(y) in the extensions of x. This is because chip z might re-add y and we don't want the NOT(y) from x to mess that up. ''' for chip in d.keys(): expand_chip(chip,d) if __name__ == '__main__': arg = args_t() arg.input_file_name = 'datafiles/xed-chips.txt' arg.xeddir = '.' arg.gendir = 'obj' files_created,chips,isa_set = work(arg) print("Created files: %s" % (" ".join(files_created))) sys.exit(0)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 220, 21015, 198, 2, 532, 9, 12, 21015, 532, 9, 12, 198, 2, 33, 43312, 62, 2538, 38, 1847, 198, 2, 198, 2, 15269, 357, 66, 8, 13130, 8180, 10501, 198, 2, 198, 2, 220, 49962, 739, 262, 24843...
2.35248
1,149
import json import os import urllib.parse import PySimpleGUI as sg import requests from bs4 import BeautifulSoup, SoupStrainer
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 2956, 297, 571, 13, 29572, 198, 198, 11748, 9485, 26437, 40156, 355, 264, 70, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 11, 34011, 1273, 3201, 263, 198 ]
3.282051
39
import urllib.request import shutil import os import tarfile import random import glob from TexSoup import TexSoup def import_resolve(tex, path): """Resolve all imports and update the parse tree. Reads from a tex file and once finished, writes to a tex file. """ soup = TexSoup(tex) dir_path = os.path.dirname(path) + "/" for _input in soup.find_all('input'): #print("input statement detected") path = os.path.join(dir_path, _input.args[0]) if not os.path.exists(path): path = path + ".tex" #print("Resolved Path:", path) _input.replace(*import_resolve(open(path), dir_path).contents) # CHECK FOLLOWING ONES # resolve subimports for subimport in soup.find_all('subimport'): #print("subimport statement detected") path = os.path.join(dir_path, subimport.args[0] + subimport.args[1]) if not os.path.exists(path): path = path + ".tex" #print("Resolved Path:", path) subimport.replace(*import_resolve(open(path), dir_path).contents) # resolve imports for _import in soup.find_all('import'): #print("import statement detected") path = os.path.join(dir_path, _import.args[0]) if not os.path.exists(path): path = path + ".tex" #print("Resolved Path:", path) _import.replace(*import_resolve(open(path), dir_path).contents) # resolve includes for include in soup.find_all('include'): #print("include statement detected") path = os.path.join(dir_path, include.args[0]) if not os.path.exists(path): path = path + ".tex" #print("Resolved Path:", path) include.replace(*import_resolve(open(path), dir_path).contents) return soup DOWNLOAD_FOLDER = "./compressed_paper_folders/" EXTRACT_FOLDER = "./paper_folders/" FINAL_FOLDER = "./papers/" if not os.path.exists(DOWNLOAD_FOLDER): os.mkdir(DOWNLOAD_FOLDER) if not os.path.exists(EXTRACT_FOLDER): os.mkdir(EXTRACT_FOLDER) if not os.path.exists(FINAL_FOLDER): os.mkdir(FINAL_FOLDER) papers = open("selected_papers.txt", "rt") selected_papers = papers.read().split("\n") papers.close() nb_papers = int(len(selected_papers) / 2) print("number papers:", nb_papers) papers = open("paperlinks.txt", "rt") all_papers = papers.read().split("\n") papers.close() nb_total_papers = int(len(all_papers) / 2) print("number total papers:", nb_total_papers) error_papers_file = open("error_papers.txt", "at") error_indices = [] for i in range(0, nb_papers, 1): if not (os.path.exists(FINAL_FOLDER + str(i) + ".tex") or os.path.exists(FINAL_FOLDER + str(i) + "-0.tex")): print("missing paper %g" % (i)) error_indices.append(i) paper_link = selected_papers[2*i+1] error_papers_file.write(paper_link + "\n") error_papers_file.close() error_papers_file = open("error_papers.txt", "rt") error_papers = error_papers_file.read().split("\n") error_papers_file.close() for i in error_indices: new_selection = random.randint(0,nb_total_papers-1) paper_link = all_papers[2*new_selection+1] while paper_link in error_papers or paper_link in selected_papers: new_selection = random.randint(0,nb_total_papers-1) paper_link = all_papers[2*new_selection+1] paper_title = all_papers[2*new_selection] selected_papers[2*i] = paper_title selected_papers[2*i+1] = paper_link paper_code = paper_link.split("/")[-1] paper_source_link = "https://arxiv.org/e-print/" + paper_code try: # Download the file from `paper_source_link` and save it locally under `DOWNLOAD_FOLDER+str(i)+".tar.gz"`: compressed_file_path = DOWNLOAD_FOLDER+str(i)+".tar.gz" with urllib.request.urlopen(paper_source_link) as response, open(compressed_file_path, 'wb') as out_file: shutil.copyfileobj(response, out_file) # Extract from tar the tar file tar = tarfile.open(compressed_file_path) paper_folder_dir = EXTRACT_FOLDER + str(i) + "/" tar.extractall(path=paper_folder_dir) tar.close() # Solve Latex Input Statements paper_folder_dir = EXTRACT_FOLDER + str(i) + "/**/" extension = "*.tex" tex_files = glob.glob(paper_folder_dir + extension, recursive=True) root_files = [] for f_path in tex_files: with open(f_path) as f: tex = f.read() soup = TexSoup(tex) if soup.documentclass is not None: latex_object = import_resolve(tex, f_path) root_files.append(latex_object) if len(root_files) < 1: print("no root file?") elif len(root_files) > 1: print("writing multiple root files for paper", i) for j in range(len(root_files)): with open(FINAL_FOLDER + str(i) + "-" + str(j) + ".tex", "wt") as f: f.write(str(root_files[j])) else: print("writing single root file for paper", i) with open(FINAL_FOLDER + str(i) + ".tex", "wt") as f: f.write(str(root_files[0])) except Exception as e: print("error at paper %g" % (i)) print(e) print("progress: %g / %g" % (i,nb_papers), end="\r") # Rewrite selected_papers_file selected_papers_file = open("selected_papers.txt", "wt") for i in range(len(selected_papers)-1): selected_papers_file.write(selected_papers[i] + "\n") selected_papers_file.close()
[ 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 4423, 346, 198, 11748, 28686, 220, 198, 11748, 13422, 7753, 198, 11748, 4738, 198, 11748, 15095, 198, 6738, 3567, 50, 10486, 1330, 3567, 50, 10486, 198, 198, 4299, 1330, 62, 411, 6442, ...
2.253532
2,477
from setuptools import setup, find_packages VERSION = '0.1.11' DESCRIPTION = 'A mobility analysis package developed at the Swiss Data Science Center' with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() # Setting up setup( # the name must match the folder name 'sdscmob' name="mobilipy", version=VERSION, author="Michal Pleskowicz", author_email="<michal.pleskowicz@gmail.com>", description=DESCRIPTION, long_description=long_description, long_description_content_type='text/markdown', packages=find_packages(), install_requires=[], # add any additional packages that # needs to be installed along with your package. Eg: 'caer' keywords=['python', 'mobility', 'gps', 'trips', 'first package'], classifiers= [ "Development Status :: 3 - Alpha", "Intended Audience :: Education", "Programming Language :: Python :: 3", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", ] )
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 43717, 796, 705, 15, 13, 16, 13, 1157, 6, 220, 198, 30910, 40165, 796, 705, 32, 15873, 3781, 5301, 4166, 379, 262, 14780, 6060, 5800, 3337, 6, 198, 198, 4480, 1280,...
2.501114
449
# # Copyright (c) SAS Institute Inc. # # 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. # import os from conary.build import nextversion from conary.deps import deps from conary.repository import changeset from conary.repository import trovesource from conary import trove from conary import versions def makePathId(): """returns 16 random bytes, for use as a pathId""" return os.urandom(16)
[ 2, 198, 2, 15069, 357, 66, 8, 35516, 5136, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.56746
252
radius = int(input("Please Enter Radius of the Circle: ")) Rate = int(input("Please Enter Rate of Fencing: ")) #now calculating the area of circle area = 3.146 * 3.146 * radius print("The Area of the Circle is ", area) #now calculating the circumference circumference = 3.146 * 2 * radius print("The Circumference of the Circle is ", circumference) #now calculating Total Cost of Fencing Cost = Rate * circumference print("The total cost of Fencing is ", Cost)
[ 42172, 796, 493, 7, 15414, 7203, 5492, 6062, 48838, 286, 262, 16291, 25, 366, 4008, 201, 198, 32184, 796, 493, 7, 15414, 7203, 5492, 6062, 14806, 286, 376, 9532, 25, 366, 4008, 201, 198, 2, 2197, 26019, 262, 1989, 286, 9197, 201, 19...
3.496296
135
import json from util import build from output import Output from method import Method from executor import Executor from function import Function from instance import Instance from algorithm import Algorithm if __name__ == '__main__': args = json.dumps({ 'algorithm': { 'mu': 1, 'lmbda': 1, 'size': 8, 'elites': 2, 'slug': 'iterable:elitism', 'limit': { 'value': '1:00:00', 'slug': 'limit:walltime', }, 'selection': { 'slug': 'selection:roulette', }, 'mutation': { 'slug': 'mutation:doer' }, 'crossover': { 'slug': 'crossover:two-point' } }, 'output': { 'slug': 'output:json', 'path': 'test/s-n-b_6_28.cnf', }, 'instance': { 'slug': 'instance', 'cnf': { 'slug': 'cnf', 'path': 'snb/s-n-b_6_28.cnf' }, 'input_set': { 'slug': 'variables:list', '_list': [169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 2399, 2400, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, 2421, 2422, 2423, 2424, 2425, 2426, 2427, 2428, 2429, 2430, 2431, 2432, 2433, 2434, 2435, 2436] } }, 'method': { 'slug': 'method', 'sampling': { 'slug': 'sampling:up_steps', 'min': 4000, 'steps': 3 }, 'observer': { 'slug': 'observer:timeout', } }, 'function': { 'slug': 'function:upgad', 'solver': { 'slug': 'solver:pysat:g3' }, 'measure': { 'slug': 'measure:propagations' }, 'max_n': 20 }, 'executor': { 'workers': 2, 'slug': 'executor:process', 'shaping': { 'slug': 'shaping:chunks', 'chunk_rate': 2 }, }, 'backdoors': [ { 'slug': 'backdoor:base', "_list": [] } ], }) configuration = json.loads(args) _, algorithm = build( {Algorithm: [ Output, Instance, {Method: [ Function, Executor ]}, ]}, **configuration ) backdoors = [ algorithm.instance.get_backdoor(**backdoor) for backdoor in configuration['backdoors'] ] solution = algorithm.start(*backdoors)
[ 11748, 33918, 198, 198, 6738, 7736, 1330, 1382, 198, 6738, 5072, 1330, 25235, 198, 6738, 2446, 1330, 11789, 198, 6738, 3121, 273, 1330, 8393, 38409, 198, 6738, 2163, 1330, 15553, 198, 6738, 4554, 1330, 2262, 590, 198, 6738, 11862, 1330, ...
1.705357
2,240
from django.contrib import admin # <HINT> Import any new Models here from .models import Course, Enrollment, Lesson, Instructor, Learner from .models import Question, Choice,Submission, Answer # <HINT> Register QuestionInline and ChoiceInline classes here # Register your models here. # <HINT> Register Question and Choice models here """ class AnswerAdmin(admin.ModelAdmin): list_display = ('submission_id', 'choice_id') """ """ class EnrollmentAdmin(admin.ModelAdmin): list_display = ('user') """ admin.site.register(Course, CourseAdmin) admin.site.register(Question, QuestionAdmin) admin.site.register(Choice, ChoiceAdmin) admin.site.register(Lesson, LessonAdmin) admin.site.register(Instructor) admin.site.register(Learner) admin.site.register(Enrollment, EnrollmentAdmin) admin.site.register(Submission, SubmissionAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 2, 1279, 39, 12394, 29, 17267, 597, 649, 32329, 994, 198, 6738, 764, 27530, 1330, 20537, 11, 2039, 48108, 11, 12892, 261, 11, 47839, 11, 8010, 1008, 198, 6738, 764, 27530, 1330, 182...
3.363636
253
import io from bookmark_helper import * first_file_name = input('Enter first file name, including extension: ') second_file_name = input('Enter second file name, including extension: ') first_file = open(first_file_name, 'r') second_file = open(second_file_name, 'r') first_file_header = first_file.readline() second_file_header = second_file.readline() if not test_header(first_file_header) or not test_header(second_file_header): print('Files are not bookmark files') exit() f_list = list(first_file) s_list = list(second_file) first_file.close() second_file.close() first_bookmarks, first_folders = create_list(f_list) second_bookmarks, second_folders = create_list(s_list) first_bookmarks.extend(second_bookmarks) first_folders.extend(second_folders) bookmark_set = set(first_bookmarks) folder_set = set(first_folders) ordered_bookmark_list = sorted(bookmark_set, key=get_date) # # break bookmark_set into its separate folders # # then rejoin them using .extend(), with the folder name inbetween, # # then join all elements with ''.join(list) and create a new html file separated_by_folders = [] ##### maybe move unsorted to last in folder_set for folder in folder_set: separated_by_folders.append(' <DT><H3>' + folder + '</H3>\n') separated_by_folders.extend([x[0] for x in ordered_bookmark_list if x[1] == folder]) new_file = open('merged_bookmarks.html', 'w') new_file.write(header) for line in separated_by_folders: new_file.write(line) new_file.close() exit()
[ 198, 11748, 33245, 198, 6738, 44007, 62, 2978, 525, 1330, 1635, 198, 198, 11085, 62, 7753, 62, 3672, 796, 5128, 10786, 17469, 717, 2393, 1438, 11, 1390, 7552, 25, 705, 8, 198, 12227, 62, 7753, 62, 3672, 796, 5128, 10786, 17469, 1218, ...
2.844991
529
# # Copyright 2015-2019, Institute for Systems Biology # # 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. # from sys import argv as cmdline_argv import httplib2 from json import dump as json_dump from apiclient.discovery import build from oauth2client.client import GoogleCredentials from projects import Public_Metadata_Tables from django.conf import settings if __name__ == '__main__': main()
[ 2, 198, 2, 15069, 1853, 12, 23344, 11, 5136, 329, 11998, 24698, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262...
3.631579
247
"""""" import asyncio import hashlib from typing import Optional from uuid import uuid4 from .redis import RedisConnection class LockException(BaseLockException): """""" pass class ReleaseLockException(BaseLockException): """""" pass class Lock(object): """""" def __init__(self, lock_key: str = None, lock_duration: int = 10, priority_mode: bool = False, identifier: str = None) -> None: """""" self._lock_duration = lock_duration self._lock_key = lock_key if lock_key else str(uuid4()) self._priority_mode = priority_mode self._identifier = identifier if identifier else str(uuid4()) @property @duration.setter @property @redis_key.setter @property @identifier.setter @property @priority_mode.setter class Locker(object): """""" def __init__(self, redis_connection: RedisConnection) -> None: """ :param redis_connection: async connector to redis """ self._connection = redis_connection @staticmethod @staticmethod async def lock(self, key: str = None, duration: int = 10, force: bool = False) -> Optional[Lock]: """""" lock = Lock( lock_key=key, lock_duration=duration, priority_mode=force ) async with self._connection as conn: lock_result = await conn.set( name=lock.redis_key, value="|".join([lock.identifier, str(int(lock.priority_mode))]), ex=lock.duration, nx=not force ) # print(f"LOCK RESULT {key}: {lock_result}") if not lock_result: raise LockException("Cannot to set lock") expire_result = await conn.expire(name=lock.redis_key, time=duration) # print(f"EXPIRE RESULT {key}: {expire_result}") return lock async def get_current_lock(self, lock_key: str = None) -> Optional[Lock]: """""" async with self._connection as conn: lock_data, ttl = await asyncio.gather( *[ conn.get(lock_key), conn.ttl(lock_key) ] ) if not lock_data: # ttl == -2 | True return None value, priority = lock_data.split("|") return Lock( lock_key=lock_key, lock_duration=ttl, priority_mode=bool(int(priority)), identifier=value, ) async def extend_lock(self, lock: Lock, duration: int = None) -> Optional[Lock]: """""" if duration: lock.duration = duration async with self._connection as conn: redis_lock_value = await conn.get(lock.redis_key) if not redis_lock_value: raise LockException("Redis key is not exists") redis_lock_value, priority = redis_lock_value.split("|") if not redis_lock_value == lock.identifier: raise LockException("Resource is locked with another identifier") lock_result = await conn.expire(name=lock.redis_key, time=lock.duration) if not lock_result: raise LockException("Redis key is not exists") return lock async def release_lock(self, lock: Lock, force: bool = False) -> Optional[Lock]: """""" async with self._connection as conn: redis_lock_value = await conn.get(lock.redis_key) if not redis_lock_value: raise LockException("Redis key is not exists") redis_lock_value, priority = redis_lock_value.split("|") if not redis_lock_value: return lock if not redis_lock_value == lock.identifier and not force: raise ReleaseLockException("Resource is locked with another identifier") release_result = await conn.delete(lock.redis_key) if not release_result: raise ReleaseLockException("Redis key is not exists") return lock return lock async def master_capture_lock( self, lock_key: str, max_expire_lock_time: int = 5, duration: int = None, ) -> Optional[Lock]: """""" # print(f"Start master lock: {lock_key} | {max_expire_lock_time} | {duration}") async with self._connection as conn: lock_data, ttl = await asyncio.gather( *[ conn.get(lock_key), conn.ttl(lock_key) ] ) # print(f"IN REDIS {lock_key}: {lock_data} | {ttl}") if not lock_data: # ttl == -2 | True # print(f"NO LOCK DATA IN REDIS FOR KEY: {lock_key}") result = await self.lock( key=lock_key, duration=duration, force=True ) # print(f"Result: {result}") return result value, priority = lock_data.split("|") print(f"Current lock info:\tkey: `{lock_key}`\t|value: `{value}`\t|ttl: `{ttl}`\t|pr: `{priority}`") if ttl == -1: # print(f"NO EXPIRE for {lock_key}") raise LockException( f"Expire for key `{lock_key}` is not set." ) elif ttl <= max_expire_lock_time: result = await self.lock( key=lock_key, duration=duration, force=True ) # print(f"RESULT: {result}") return result else: raise LockException( f"Can't get mutex. ttl: `{ttl}`\tmax_expire: `{max_expire_lock_time}`." )
[ 15931, 15931, 15931, 198, 11748, 30351, 952, 198, 11748, 12234, 8019, 198, 6738, 19720, 1330, 32233, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 198, 6738, 764, 445, 271, 1330, 2297, 271, 32048, 628, 198, 198, 4871, 13656, 16922, ...
1.973492
3,018
from nameless import longest from nameless.cli import main
[ 198, 6738, 299, 39942, 1330, 14069, 198, 6738, 299, 39942, 13, 44506, 1330, 1388, 628, 198 ]
3.875
16
import argparse import glob import json import os import numpy as np import requests import sys # python get_pythia_caption_and_vsepp_score.py -o youcookII_pythia_json_files -i youcookII_json_files from pythia.utils.text_utils import tokenize # annotations_file = "/home/ascott/data/youcookII/YouCookII/annotations/youcookii_annotations_trainval.json" # fcnn_features_dir = "/home/ascott/data/pythia/youcookII_features/training_features_vmb" # resnet_features_dir = "/home/ascott/data/pythia/youcookII_features/training_features_resnet" # input_file = "youcookII_json_files/youcookII_test_annotations.json" pythia_url = "http://localhost:8080/api" vsepp_url = "http://localhost:8081/api" token = "" class CaptionScoreBuilder: ''' { "info": { "description": "GLAC captions with vsepp scores and scaled ratings" }, "images": [ { "id": 410328, "file_name": "COCO_val2014_000000410328.jpg", "coco_url": "http://images.cocodataset.org/val2014/COCO_val2014_000000410328.jpg" }, "annotations": [ { "image_id": 410328, "caption": "a baseball player is playing with a ball in the air .", "vsepp_score": "0.3354490622939134", "rating": "3" }, ''' if __name__ == "__main__": imdb_builder = CaptionScoreBuilder() imdb_builder.build()
[ 11748, 1822, 29572, 198, 11748, 15095, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 7007, 198, 11748, 25064, 198, 198, 2, 21015, 651, 62, 79, 5272, 544, 62, 6888, 1159, 62, 392, 62, 85, 325, 38...
2.299174
605
import requests import pause import json import time import datetime import re import grequests import sys import os page = "hej" baseurl = "https://api.github.com/" # Get token f = open("token","r") username = f.readline() token = f.readline().rstrip('\n') f.close() #read data with open('reposfinal') as data_file: data = json.load(data_file) donerepos = [] with open('saved', 'a+') as saveddata: saveddata.write("") save = json.load(saveddata) for saverepo in save: donerepos.append(saverepo['full_name']) print "Aleady exists " + saverepo['full_name'] f = open("saved","a+") f.seek(-2, os.SEEK_END) f.truncate() f.write(",") f.close() try: z = 1 for repo in data: printProgressBar(z,len(data)) z += 1 if repo['full_name'] in donerepos: continue if (len(repo['commit']) == 30): n = 1 lista = [] print checkRateLimit() while getPage(repo['url'] + "/commits", n) != "[]": jason = json.loads(page) for commit in jason: cleancommit = { 'sha': commit['sha'], 'date': commit['commit']['committer']['date']} lista.append(cleancommit) n += 1 repo['commit'] = lista print "\tDone with" + repo['full_name'] writeJson(repo, "saved") f = open("saved","a") f.write(",\n") f.close() else: writeJson(repo, "saved") f = open("saved","a") f.write(",\n") f.close() except: f = open("saved","a+") f.seek(-2, os.SEEK_END) f.truncate() f.write("]") f.close() pass
[ 11748, 7007, 198, 11748, 14985, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 302, 198, 11748, 308, 8897, 3558, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 7700, 796, 366, 258, 73, 1, 198, 8692, 6371, 796, ...
2.241538
650
import logging log = logging.getLogger('fabric.fabalicious.git') from base import BaseMethod from fabric.api import * from lib.utils import validate_dict from lib.configuration import data_merge from lib import configuration
[ 11748, 18931, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 10786, 36434, 1173, 13, 36434, 282, 6243, 13, 18300, 11537, 198, 198, 6738, 2779, 1330, 7308, 17410, 198, 6738, 9664, 13, 15042, 1330, 1635, 198, 6738, 9195, 13, 26791, 1330, 2...
3.766667
60
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: client/transaction/transaction.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from python_pachyderm.proto.pfs import pfs_pb2 as client_dot_pfs_dot_pfs__pb2 from python_pachyderm.proto.pps import pps_pb2 as client_dot_pps_dot_pps__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='client/transaction/transaction.proto', package='transaction', syntax='proto3', serialized_options=b'Z5github.com/pachyderm/pachyderm/src/client/transaction', serialized_pb=b'\n$client/transaction/transaction.proto\x12\x0btransaction\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14\x63lient/pfs/pfs.proto\x1a\x14\x63lient/pps/pps.proto\"\x12\n\x10\x44\x65leteAllRequest\"\xca\x03\n\x12TransactionRequest\x12+\n\x0b\x63reate_repo\x18\x01 \x01(\x0b\x32\x16.pfs.CreateRepoRequest\x12+\n\x0b\x64\x65lete_repo\x18\x02 \x01(\x0b\x32\x16.pfs.DeleteRepoRequest\x12-\n\x0cstart_commit\x18\x03 \x01(\x0b\x32\x17.pfs.StartCommitRequest\x12/\n\rfinish_commit\x18\x04 \x01(\x0b\x32\x18.pfs.FinishCommitRequest\x12/\n\rdelete_commit\x18\x05 \x01(\x0b\x32\x18.pfs.DeleteCommitRequest\x12/\n\rcreate_branch\x18\x06 \x01(\x0b\x32\x18.pfs.CreateBranchRequest\x12/\n\rdelete_branch\x18\x07 \x01(\x0b\x32\x18.pfs.DeleteBranchRequest\x12\x34\n\x10update_job_state\x18\x0b \x01(\x0b\x32\x1a.pps.UpdateJobStateRequest\x12\x31\n\ndelete_all\x18\n \x01(\x0b\x32\x1d.transaction.DeleteAllRequest\"2\n\x13TransactionResponse\x12\x1b\n\x06\x63ommit\x18\x02 \x01(\x0b\x32\x0b.pfs.Commit\"\x19\n\x0bTransaction\x12\n\n\x02id\x18\x01 \x01(\t\"\xd5\x01\n\x0fTransactionInfo\x12-\n\x0btransaction\x18\x01 \x01(\x0b\x32\x18.transaction.Transaction\x12\x31\n\x08requests\x18\x02 \x03(\x0b\x32\x1f.transaction.TransactionRequest\x12\x33\n\tresponses\x18\x03 \x03(\x0b\x32 .transaction.TransactionResponse\x12+\n\x07started\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"J\n\x10TransactionInfos\x12\x36\n\x10transaction_info\x18\x01 \x03(\x0b\x32\x1c.transaction.TransactionInfo\"L\n\x17\x42\x61tchTransactionRequest\x12\x31\n\x08requests\x18\x01 \x03(\x0b\x32\x1f.transaction.TransactionRequest\"\x19\n\x17StartTransactionRequest\"J\n\x19InspectTransactionRequest\x12-\n\x0btransaction\x18\x01 \x01(\x0b\x32\x18.transaction.Transaction\"I\n\x18\x44\x65leteTransactionRequest\x12-\n\x0btransaction\x18\x01 \x01(\x0b\x32\x18.transaction.Transaction\"\x18\n\x16ListTransactionRequest\"I\n\x18\x46inishTransactionRequest\x12-\n\x0btransaction\x18\x01 \x01(\x0b\x32\x18.transaction.Transaction2\xe4\x04\n\x03\x41PI\x12X\n\x10\x42\x61tchTransaction\x12$.transaction.BatchTransactionRequest\x1a\x1c.transaction.TransactionInfo\"\x00\x12T\n\x10StartTransaction\x12$.transaction.StartTransactionRequest\x1a\x18.transaction.Transaction\"\x00\x12\\\n\x12InspectTransaction\x12&.transaction.InspectTransactionRequest\x1a\x1c.transaction.TransactionInfo\"\x00\x12T\n\x11\x44\x65leteTransaction\x12%.transaction.DeleteTransactionRequest\x1a\x16.google.protobuf.Empty\"\x00\x12W\n\x0fListTransaction\x12#.transaction.ListTransactionRequest\x1a\x1d.transaction.TransactionInfos\"\x00\x12Z\n\x11\x46inishTransaction\x12%.transaction.FinishTransactionRequest\x1a\x1c.transaction.TransactionInfo\"\x00\x12\x44\n\tDeleteAll\x12\x1d.transaction.DeleteAllRequest\x1a\x16.google.protobuf.Empty\"\x00\x42\x37Z5github.com/pachyderm/pachyderm/src/client/transactionb\x06proto3' , dependencies=[google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,client_dot_pfs_dot_pfs__pb2.DESCRIPTOR,client_dot_pps_dot_pps__pb2.DESCRIPTOR,]) _DELETEALLREQUEST = _descriptor.Descriptor( name='DeleteAllRequest', full_name='transaction.DeleteAllRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=159, serialized_end=177, ) _TRANSACTIONREQUEST = _descriptor.Descriptor( name='TransactionRequest', full_name='transaction.TransactionRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='create_repo', full_name='transaction.TransactionRequest.create_repo', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delete_repo', full_name='transaction.TransactionRequest.delete_repo', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='start_commit', full_name='transaction.TransactionRequest.start_commit', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='finish_commit', full_name='transaction.TransactionRequest.finish_commit', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delete_commit', full_name='transaction.TransactionRequest.delete_commit', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='create_branch', full_name='transaction.TransactionRequest.create_branch', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delete_branch', full_name='transaction.TransactionRequest.delete_branch', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='update_job_state', full_name='transaction.TransactionRequest.update_job_state', index=7, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='delete_all', full_name='transaction.TransactionRequest.delete_all', index=8, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=180, serialized_end=638, ) _TRANSACTIONRESPONSE = _descriptor.Descriptor( name='TransactionResponse', full_name='transaction.TransactionResponse', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='commit', full_name='transaction.TransactionResponse.commit', index=0, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=640, serialized_end=690, ) _TRANSACTION = _descriptor.Descriptor( name='Transaction', full_name='transaction.Transaction', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='id', full_name='transaction.Transaction.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=692, serialized_end=717, ) _TRANSACTIONINFO = _descriptor.Descriptor( name='TransactionInfo', full_name='transaction.TransactionInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='transaction', full_name='transaction.TransactionInfo.transaction', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='requests', full_name='transaction.TransactionInfo.requests', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='responses', full_name='transaction.TransactionInfo.responses', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='started', full_name='transaction.TransactionInfo.started', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=720, serialized_end=933, ) _TRANSACTIONINFOS = _descriptor.Descriptor( name='TransactionInfos', full_name='transaction.TransactionInfos', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='transaction_info', full_name='transaction.TransactionInfos.transaction_info', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=935, serialized_end=1009, ) _BATCHTRANSACTIONREQUEST = _descriptor.Descriptor( name='BatchTransactionRequest', full_name='transaction.BatchTransactionRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='requests', full_name='transaction.BatchTransactionRequest.requests', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1011, serialized_end=1087, ) _STARTTRANSACTIONREQUEST = _descriptor.Descriptor( name='StartTransactionRequest', full_name='transaction.StartTransactionRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1089, serialized_end=1114, ) _INSPECTTRANSACTIONREQUEST = _descriptor.Descriptor( name='InspectTransactionRequest', full_name='transaction.InspectTransactionRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='transaction', full_name='transaction.InspectTransactionRequest.transaction', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1116, serialized_end=1190, ) _DELETETRANSACTIONREQUEST = _descriptor.Descriptor( name='DeleteTransactionRequest', full_name='transaction.DeleteTransactionRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='transaction', full_name='transaction.DeleteTransactionRequest.transaction', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1192, serialized_end=1265, ) _LISTTRANSACTIONREQUEST = _descriptor.Descriptor( name='ListTransactionRequest', full_name='transaction.ListTransactionRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1267, serialized_end=1291, ) _FINISHTRANSACTIONREQUEST = _descriptor.Descriptor( name='FinishTransactionRequest', full_name='transaction.FinishTransactionRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='transaction', full_name='transaction.FinishTransactionRequest.transaction', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1293, serialized_end=1366, ) _TRANSACTIONREQUEST.fields_by_name['create_repo'].message_type = client_dot_pfs_dot_pfs__pb2._CREATEREPOREQUEST _TRANSACTIONREQUEST.fields_by_name['delete_repo'].message_type = client_dot_pfs_dot_pfs__pb2._DELETEREPOREQUEST _TRANSACTIONREQUEST.fields_by_name['start_commit'].message_type = client_dot_pfs_dot_pfs__pb2._STARTCOMMITREQUEST _TRANSACTIONREQUEST.fields_by_name['finish_commit'].message_type = client_dot_pfs_dot_pfs__pb2._FINISHCOMMITREQUEST _TRANSACTIONREQUEST.fields_by_name['delete_commit'].message_type = client_dot_pfs_dot_pfs__pb2._DELETECOMMITREQUEST _TRANSACTIONREQUEST.fields_by_name['create_branch'].message_type = client_dot_pfs_dot_pfs__pb2._CREATEBRANCHREQUEST _TRANSACTIONREQUEST.fields_by_name['delete_branch'].message_type = client_dot_pfs_dot_pfs__pb2._DELETEBRANCHREQUEST _TRANSACTIONREQUEST.fields_by_name['update_job_state'].message_type = client_dot_pps_dot_pps__pb2._UPDATEJOBSTATEREQUEST _TRANSACTIONREQUEST.fields_by_name['delete_all'].message_type = _DELETEALLREQUEST _TRANSACTIONRESPONSE.fields_by_name['commit'].message_type = client_dot_pfs_dot_pfs__pb2._COMMIT _TRANSACTIONINFO.fields_by_name['transaction'].message_type = _TRANSACTION _TRANSACTIONINFO.fields_by_name['requests'].message_type = _TRANSACTIONREQUEST _TRANSACTIONINFO.fields_by_name['responses'].message_type = _TRANSACTIONRESPONSE _TRANSACTIONINFO.fields_by_name['started'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _TRANSACTIONINFOS.fields_by_name['transaction_info'].message_type = _TRANSACTIONINFO _BATCHTRANSACTIONREQUEST.fields_by_name['requests'].message_type = _TRANSACTIONREQUEST _INSPECTTRANSACTIONREQUEST.fields_by_name['transaction'].message_type = _TRANSACTION _DELETETRANSACTIONREQUEST.fields_by_name['transaction'].message_type = _TRANSACTION _FINISHTRANSACTIONREQUEST.fields_by_name['transaction'].message_type = _TRANSACTION DESCRIPTOR.message_types_by_name['DeleteAllRequest'] = _DELETEALLREQUEST DESCRIPTOR.message_types_by_name['TransactionRequest'] = _TRANSACTIONREQUEST DESCRIPTOR.message_types_by_name['TransactionResponse'] = _TRANSACTIONRESPONSE DESCRIPTOR.message_types_by_name['Transaction'] = _TRANSACTION DESCRIPTOR.message_types_by_name['TransactionInfo'] = _TRANSACTIONINFO DESCRIPTOR.message_types_by_name['TransactionInfos'] = _TRANSACTIONINFOS DESCRIPTOR.message_types_by_name['BatchTransactionRequest'] = _BATCHTRANSACTIONREQUEST DESCRIPTOR.message_types_by_name['StartTransactionRequest'] = _STARTTRANSACTIONREQUEST DESCRIPTOR.message_types_by_name['InspectTransactionRequest'] = _INSPECTTRANSACTIONREQUEST DESCRIPTOR.message_types_by_name['DeleteTransactionRequest'] = _DELETETRANSACTIONREQUEST DESCRIPTOR.message_types_by_name['ListTransactionRequest'] = _LISTTRANSACTIONREQUEST DESCRIPTOR.message_types_by_name['FinishTransactionRequest'] = _FINISHTRANSACTIONREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) DeleteAllRequest = _reflection.GeneratedProtocolMessageType('DeleteAllRequest', (_message.Message,), { 'DESCRIPTOR' : _DELETEALLREQUEST, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.DeleteAllRequest) }) _sym_db.RegisterMessage(DeleteAllRequest) TransactionRequest = _reflection.GeneratedProtocolMessageType('TransactionRequest', (_message.Message,), { 'DESCRIPTOR' : _TRANSACTIONREQUEST, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.TransactionRequest) }) _sym_db.RegisterMessage(TransactionRequest) TransactionResponse = _reflection.GeneratedProtocolMessageType('TransactionResponse', (_message.Message,), { 'DESCRIPTOR' : _TRANSACTIONRESPONSE, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.TransactionResponse) }) _sym_db.RegisterMessage(TransactionResponse) Transaction = _reflection.GeneratedProtocolMessageType('Transaction', (_message.Message,), { 'DESCRIPTOR' : _TRANSACTION, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.Transaction) }) _sym_db.RegisterMessage(Transaction) TransactionInfo = _reflection.GeneratedProtocolMessageType('TransactionInfo', (_message.Message,), { 'DESCRIPTOR' : _TRANSACTIONINFO, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.TransactionInfo) }) _sym_db.RegisterMessage(TransactionInfo) TransactionInfos = _reflection.GeneratedProtocolMessageType('TransactionInfos', (_message.Message,), { 'DESCRIPTOR' : _TRANSACTIONINFOS, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.TransactionInfos) }) _sym_db.RegisterMessage(TransactionInfos) BatchTransactionRequest = _reflection.GeneratedProtocolMessageType('BatchTransactionRequest', (_message.Message,), { 'DESCRIPTOR' : _BATCHTRANSACTIONREQUEST, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.BatchTransactionRequest) }) _sym_db.RegisterMessage(BatchTransactionRequest) StartTransactionRequest = _reflection.GeneratedProtocolMessageType('StartTransactionRequest', (_message.Message,), { 'DESCRIPTOR' : _STARTTRANSACTIONREQUEST, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.StartTransactionRequest) }) _sym_db.RegisterMessage(StartTransactionRequest) InspectTransactionRequest = _reflection.GeneratedProtocolMessageType('InspectTransactionRequest', (_message.Message,), { 'DESCRIPTOR' : _INSPECTTRANSACTIONREQUEST, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.InspectTransactionRequest) }) _sym_db.RegisterMessage(InspectTransactionRequest) DeleteTransactionRequest = _reflection.GeneratedProtocolMessageType('DeleteTransactionRequest', (_message.Message,), { 'DESCRIPTOR' : _DELETETRANSACTIONREQUEST, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.DeleteTransactionRequest) }) _sym_db.RegisterMessage(DeleteTransactionRequest) ListTransactionRequest = _reflection.GeneratedProtocolMessageType('ListTransactionRequest', (_message.Message,), { 'DESCRIPTOR' : _LISTTRANSACTIONREQUEST, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.ListTransactionRequest) }) _sym_db.RegisterMessage(ListTransactionRequest) FinishTransactionRequest = _reflection.GeneratedProtocolMessageType('FinishTransactionRequest', (_message.Message,), { 'DESCRIPTOR' : _FINISHTRANSACTIONREQUEST, '__module__' : 'client.transaction.transaction_pb2' # @@protoc_insertion_point(class_scope:transaction.FinishTransactionRequest) }) _sym_db.RegisterMessage(FinishTransactionRequest) DESCRIPTOR._options = None _API = _descriptor.ServiceDescriptor( name='API', full_name='transaction.API', file=DESCRIPTOR, index=0, serialized_options=None, serialized_start=1369, serialized_end=1981, methods=[ _descriptor.MethodDescriptor( name='BatchTransaction', full_name='transaction.API.BatchTransaction', index=0, containing_service=None, input_type=_BATCHTRANSACTIONREQUEST, output_type=_TRANSACTIONINFO, serialized_options=None, ), _descriptor.MethodDescriptor( name='StartTransaction', full_name='transaction.API.StartTransaction', index=1, containing_service=None, input_type=_STARTTRANSACTIONREQUEST, output_type=_TRANSACTION, serialized_options=None, ), _descriptor.MethodDescriptor( name='InspectTransaction', full_name='transaction.API.InspectTransaction', index=2, containing_service=None, input_type=_INSPECTTRANSACTIONREQUEST, output_type=_TRANSACTIONINFO, serialized_options=None, ), _descriptor.MethodDescriptor( name='DeleteTransaction', full_name='transaction.API.DeleteTransaction', index=3, containing_service=None, input_type=_DELETETRANSACTIONREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, ), _descriptor.MethodDescriptor( name='ListTransaction', full_name='transaction.API.ListTransaction', index=4, containing_service=None, input_type=_LISTTRANSACTIONREQUEST, output_type=_TRANSACTIONINFOS, serialized_options=None, ), _descriptor.MethodDescriptor( name='FinishTransaction', full_name='transaction.API.FinishTransaction', index=5, containing_service=None, input_type=_FINISHTRANSACTIONREQUEST, output_type=_TRANSACTIONINFO, serialized_options=None, ), _descriptor.MethodDescriptor( name='DeleteAll', full_name='transaction.API.DeleteAll', index=6, containing_service=None, input_type=_DELETEALLREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, ), ]) _sym_db.RegisterServiceDescriptor(_API) DESCRIPTOR.services_by_name['API'] = _API # @@protoc_insertion_point(module_scope)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 5456, 14, 7645, 2673, 14, 7645, 2673, 13, 1676, 1462, 198, 198, 6738, 23...
2.628732
9,815
# coding=utf-8 import os import xml.etree.ElementTree as ET import matplotlib.pyplot as plt path = os.path.join(os.getcwd(), 'images', 'annotations') if not os.path.exists(path): raise ValueError('The images\\annotations firectory does not exist') else: files = os.listdir(path) results = {} files = [file for file in files if file.endswith('.XML') or file.endswith('.xml')] for file in files: objectsDetected = 0 filePath = os.path.join(path, file) tree = ET.parse(filePath) root = tree.getroot() for member in root.findall('object'): label = member[0].text if label != 'hoja' and label != 'dano': objectsDetected = objectsDetected + 1 if objectsDetected in results: results[objectsDetected] = results[objectsDetected] + 1 else: results[objectsDetected] = 1 print("Cantidad de objetos, Cantidad de imagenes") for key, value in results.items(): print("{0},{1}".format(key, value)) plt.bar(list(results.keys()), results.values(), color='g', width=0.9) plt.ylabel('Cantidad de imágenes') plt.xlabel('Cantidad de objetos anotados (Excluyendo hojas y daños)') plt.show()
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 11748, 28686, 198, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6978, 796, 28686, 13, 6978, 13, 22...
2.346516
531
import logging import os import cv2 import numpy as np import pickle import constants import random from natsort import natsorted from tqdm import tqdm from Isolator.isolator import Isolator from tensorflow.python.keras.preprocessing.image import ImageDataGenerator from tensorflow.python.keras.preprocessing.image import array_to_img, img_to_array, load_img
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2298, 293, 198, 11748, 38491, 198, 11748, 4738, 198, 6738, 299, 1381, 419, 1330, 299, 1381, 9741, 198, 6738, 256, 80, 36020, 1330,...
3.333333
108
import os import io from datetime import datetime, timedelta import uuid from flask import flash, render_template, request, redirect, url_for, jsonify, send_from_directory, abort from flask_admin.contrib.sqla import ModelView from flask_admin.form.upload import FileUploadField from flask_admin import AdminIndexView import flask_security as security from flask_security.utils import encrypt_password import flask_login as login from flask_login import login_required from wtforms.fields import PasswordField from sqlalchemy import Date, cast import itertools import numpy as np from sklearn.metrics import roc_auc_score, accuracy_score, confusion_matrix import matplotlib.pyplot as plt import base64 from app import app, security, db from models import User, Competition, Submission @app.route('/') @app.route('/submission', methods=['GET', 'POST']) @login_required # @login_required def get_scores(filename, competition_id): "Returns (preview_score, score)" regex = r'(\d+),(.+)' # parse files # filename = "C:\\Users\\jerem\\Documents\\ESTIAM\\UE Datascience\\test_only_labels.csv" predictions = np.fromregex(filename, regex, [('id', np.int64), ('v0', 'S128')]) groundtruth_filename = os.path.join( app.config['GROUNDTRUTH_FOLDER'], Competition.query.get(competition_id).groundtruth) groundtruth = np.fromregex( groundtruth_filename, regex, [('id', np.int64), ('v0', 'S128')]) # sort data predictions.sort(order='id') groundtruth.sort(order='id') if predictions['id'].size == 0 or not np.array_equal(predictions['id'], groundtruth['id']): raise ParsingError("Error parsing the submission file. Make sure it" + "has the right format and contains the right ids.") # partition the data indices into two sets and evaluate separately splitpoint = int(np.round(len(groundtruth) * 0.15)) score_p = accuracy_score(groundtruth['v0'][:splitpoint], predictions['v0'][:splitpoint]) score_f = accuracy_score(groundtruth['v0'][splitpoint:], predictions['v0'][splitpoint:]) return (score_p, score_f) @app.route('/scores', methods=['GET', 'POST']) @login_required # @app.route("/plots") @app.route('/plots', methods=['GET', 'POST']) @login_required @app.route('/_get_datas', methods=['POST']) @login_required @app.route('/_get_submissions', methods=['POST']) @login_required ############### # Admin views # ############### # def inaccessible_callback(self, name, **kwargs): # # redirect to login page if user doesn't have access # return redirect(url_for('security.login', next=request.url)) @login_required @app.route('/groundtruth/<filename>') @login_required @app.route('/submissions/<filename>')
[ 11748, 28686, 198, 11748, 33245, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 11748, 334, 27112, 198, 198, 6738, 42903, 1330, 7644, 11, 8543, 62, 28243, 11, 2581, 11, 18941, 11, 19016, 62, 1640, 11, 33918, 1958, 11, ...
2.577391
1,150
# Copyright (c) 2009-2020 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # 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. import pytest from common.device import log from common.gap_utils import gap_connect, discover_descriptors, discover_user_services, assert_uuid_equals, make_uuid CHARACTERISTIC_16BIT_UUID = 0xDEAD DESCRIPTOR_16BIT_UUID = 0xFAAD PARAM_PROPERTIES = [ ("notify", ["notify"]), ("indicate", ["indicate"]), ("notify and indicate", ["notify", "indicate"]), ] PARAM_CHARACTERISTICS = [ ("16bit uuid characteristic", CHARACTERISTIC_16BIT_UUID), ("128bit uuid characteristic", make_uuid()) ] PARAM_DESCRIPTORS = [ ("no descriptor", []), ("single 16bit uuid descriptor", [DESCRIPTOR_16BIT_UUID]), ("multiple 16bit uuid descriptors", [DESCRIPTOR_16BIT_UUID + i for i in range(2)]), ("single 128bit uuid descriptor", [make_uuid()]), ("multiple 128bit uuid descriptors", [make_uuid() for i in range(2)]) ] @pytest.mark.ble41 @pytest.mark.parametrize('char_property', PARAM_PROPERTIES) @pytest.mark.parametrize('descriptor', PARAM_DESCRIPTORS) @pytest.mark.ble41 @pytest.mark.parametrize('characteristic', PARAM_CHARACTERISTICS) @pytest.mark.parametrize('descriptor', PARAM_DESCRIPTORS)
[ 2, 15069, 357, 66, 8, 3717, 12, 42334, 7057, 15302, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 1...
2.912898
597
import sys filename = sys.argv[1] outfile = sys.argv[2] lines = open(filename, "r").readlines() lines = sorted(lines, key = sortByFirstNumber) ofile = open(outfile, "w") for num in lines: ofile.write(str(num))
[ 11748, 25064, 198, 34345, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 448, 7753, 796, 25064, 13, 853, 85, 58, 17, 60, 198, 6615, 796, 1280, 7, 34345, 11, 366, 81, 11074, 961, 6615, 3419, 198, 6615, 796, 23243, 7, 6615, 11, 1994, 7...
2.534884
86
import os import shutil import numpy as np from zntrack import Node, ZnTrackProject, zn class ComputeA(Node): """Node stage A""" inp = zn.params() out = zn.outs() def test_stage_addition(tmp_path): """Check that the dvc repro works""" shutil.copy(__file__, tmp_path) os.chdir(tmp_path) project = ZnTrackProject() project.name = "test01" project.create_dvc_repository() ComputeA(inp=np.arange(5)).write_graph() project.run() project.repro() finished_stage = ComputeA.load() np.testing.assert_array_equal(finished_stage.out, np.array([1, 2, 4, 8, 16])) np.testing.assert_array_equal(finished_stage.inp, np.arange(5)) def test_stage_addition_run(tmp_path): """Check that the PyTracks run method works""" shutil.copy(__file__, tmp_path) os.chdir(tmp_path) project = ZnTrackProject() project.name = "test01" project.create_dvc_repository() a = ComputeA(inp=np.arange(5)) a.save() # need to save to access the parameters zn.params a.run_and_save() finished_stage = ComputeA.load(lazy=False) np.testing.assert_array_equal(finished_stage.out, np.array([1, 2, 4, 8, 16])) np.testing.assert_array_equal(finished_stage.inp, np.arange(5))
[ 11748, 28686, 198, 11748, 4423, 346, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1976, 429, 39638, 1330, 19081, 11, 1168, 77, 24802, 16775, 11, 1976, 77, 628, 198, 4871, 3082, 1133, 32, 7, 19667, 2599, 198, 220, 220, 220,...
2.422481
516
from django.db.models.query import QuerySet from graphene import Field, Int from graphene.relay import Connection, Node from graphene_django import DjangoConnectionField, DjangoObjectType from graphene_django.filter import DjangoFilterConnectionField from graphql.execution.base import ResolveInfo from promise.promise import Promise from .filters import ArticleFilter, PublicationFilter, ReporterFilter from .models import Article, Publication, Reporter
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 22766, 1330, 43301, 7248, 198, 6738, 42463, 1330, 7663, 11, 2558, 198, 6738, 42463, 13, 2411, 323, 1330, 26923, 11, 19081, 198, 6738, 42463, 62, 28241, 14208, 1330, 37770, 32048, 15878, 11, 3...
4.380952
105
import numpy as np import pandas as pd from pandas.tseries.offsets import BDay from functools import partial from pandas.tseries.frequencies import to_offset from backtester.plotter import generateGraph from backtester.state_writer import StateWriter from tensorboardX import SummaryWriter from datetime import datetime from backtester.metrics.metrics import Metrics import os
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 19798, 292, 13, 912, 10640, 13, 8210, 1039, 1330, 347, 12393, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 19798, 292, 13, 912, 10640, 13, 69, 889...
3.584906
106
import click from planning_system.cli import add_subcommands @click.group() @click.pass_obj def survey(config): """ Survey - related commands. """ pass add_subcommands(survey, __file__, __package__)
[ 11748, 3904, 198, 6738, 5410, 62, 10057, 13, 44506, 1330, 751, 62, 7266, 9503, 1746, 628, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 31, 12976, 13, 8094, 3419, 198, 31, 12976, 13, 6603, 62...
2.494737
95
#!/usr/bin/env python3 """Get the data at path from the provided file. Copyright Notice ---------------- Copyright (C) HealthTensor, Inc - All Rights Reserved Unauthorized copying of this file, via any medium is strictly prohibited Proprietary and confidential """ import sys import yaml if __name__ == '__main__': import argparse parser = argparse.ArgumentParser('lookup key in yaml file') parser.add_argument('input', help='path to input data file') parser.add_argument('path', help='data path to select') parser.add_argument('--default', help='the default value to return') args = parser.parse_args() with open(args.input, 'r') as file_: data = yaml.load(file_) path_elts = args.path.split('.') try: value = get_data_at_path(data, path_elts) except (KeyError, TypeError): if args.default: value = args.default else: print('no value found at path', file=sys.stderr) exit(1) print(value)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 3855, 262, 1366, 379, 3108, 422, 262, 2810, 2393, 13, 198, 198, 15269, 17641, 198, 1783, 198, 15269, 357, 34, 8, 3893, 51, 22854, 11, 3457, 532, 1439, 6923, 33876, 198, 22...
2.696
375