blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
8a89fb2e3694166ab92f13d3e3ee724d7fffd554
0683cd7ccad814b04ec9357c1f0759c205ebdb07
/accounts/views.py
9671a280f9ef9657272037027114d8e9de6084b9
[]
no_license
luck-dyl/WebDriverTest
5d3ac413ad56d560d7ae2ac669a87cd35c03f83e
8d2e36a5f140fc4b249adaa9d94f16536ce7eb04
refs/heads/master
2021-06-27T13:14:05.370512
2020-05-26T10:11:22
2020-05-26T10:11:22
223,569,252
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
from django.shortcuts import render # Create your views here. from django.core.mail import send_mail from django.shortcuts import redirect from accounts.models import Token from django.contrib import auth, messages def send_login_email(request): email = request.POST['email'] token = Token.objects.create(email=email) url = request.build_absolute_uri('login') + f'?token={str(token.uid)}' message_body = f'Use this link to log in:\n\n{url}' send_mail( 'Your login link for Superlists', message_body, 'testsuperlists@outlook.com', [email] ) messages.success(request, "Check your email, we've sent you a link you can use to log in.") return redirect('/') def login(request): user = auth.authenticate(uid=request.GET.get('token')) if user: auth.login(request, user) return redirect('/')
[ "526598423@qq.com" ]
526598423@qq.com
dff3cf8a7dc530db742810d54a420691324bacbf
d5b339d5b71c2d103b186ed98167b0c9488cff09
/marvin/cloudstackAPI/changeServiceForSystemVm.py
558295637a60c892c3775f3d55b49ad3ea8b2c1c
[ "Apache-2.0" ]
permissive
maduhu/marvin
3e5f9b6f797004bcb8ad1d16c7d9c9e26a5e63cc
211205ae1da4e3f18f9a1763f0f8f4a16093ddb0
refs/heads/master
2020-12-02T17:45:35.685447
2017-04-03T11:32:11
2017-04-03T11:32:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,734
py
"""Changes the service offering for a system vm (console proxy or secondary storage). The system vm must be in a "Stopped" state for this command to take effect.""" from baseCmd import * from baseResponse import * class changeServiceForSystemVmCmd (baseCmd): typeInfo = {} def __init__(self): self.isAsync = "false" """The ID of the system vm""" """Required""" self.id = None self.typeInfo['id'] = 'uuid' """the service offering ID to apply to the system vm""" """Required""" self.serviceofferingid = None self.typeInfo['serviceofferingid'] = 'uuid' """name value pairs of custom parameters for cpu, memory and cpunumber. example details[i].name=value""" self.details = [] self.typeInfo['details'] = 'map' self.required = ["id", "serviceofferingid", ] class changeServiceForSystemVmResponse (baseResponse): typeInfo = {} def __init__(self): """the ID of the system VM""" self.id = None self.typeInfo['id'] = 'string' """the number of active console sessions for the console proxy system vm""" self.activeviewersessions = None self.typeInfo['activeviewersessions'] = 'integer' """the date and time the system VM was created""" self.created = None self.typeInfo['created'] = 'date' """the first DNS for the system VM""" self.dns1 = None self.typeInfo['dns1'] = 'string' """the second DNS for the system VM""" self.dns2 = None self.typeInfo['dns2'] = 'string' """the gateway for the system VM""" self.gateway = None self.typeInfo['gateway'] = 'string' """the host ID for the system VM""" self.hostid = None self.typeInfo['hostid'] = 'string' """the hostname for the system VM""" self.hostname = None self.typeInfo['hostname'] = 'string' """the hypervisor on which the template runs""" self.hypervisor = None self.typeInfo['hypervisor'] = 'string' """the job ID associated with the system VM. This is only displayed if the router listed is part of a currently running asynchronous job.""" self.jobid = None self.typeInfo['jobid'] = 'string' """the job status associated with the system VM. This is only displayed if the router listed is part of a currently running asynchronous job.""" self.jobstatus = None self.typeInfo['jobstatus'] = 'integer' """the link local IP address for the system vm""" self.linklocalip = None self.typeInfo['linklocalip'] = 'string' """the link local MAC address for the system vm""" self.linklocalmacaddress = None self.typeInfo['linklocalmacaddress'] = 'string' """the link local netmask for the system vm""" self.linklocalnetmask = None self.typeInfo['linklocalnetmask'] = 'string' """the name of the system VM""" self.name = None self.typeInfo['name'] = 'string' """the network domain for the system VM""" self.networkdomain = None self.typeInfo['networkdomain'] = 'string' """the Pod ID for the system VM""" self.podid = None self.typeInfo['podid'] = 'string' """the private IP address for the system VM""" self.privateip = None self.typeInfo['privateip'] = 'string' """the private MAC address for the system VM""" self.privatemacaddress = None self.typeInfo['privatemacaddress'] = 'string' """the private netmask for the system VM""" self.privatenetmask = None self.typeInfo['privatenetmask'] = 'string' """the public IP address for the system VM""" self.publicip = None self.typeInfo['publicip'] = 'string' """the public MAC address for the system VM""" self.publicmacaddress = None self.typeInfo['publicmacaddress'] = 'string' """the public netmask for the system VM""" self.publicnetmask = None self.typeInfo['publicnetmask'] = 'string' """the state of the system VM""" self.state = None self.typeInfo['state'] = 'string' """the system VM type""" self.systemvmtype = None self.typeInfo['systemvmtype'] = 'string' """the template ID for the system VM""" self.templateid = None self.typeInfo['templateid'] = 'string' """the Zone ID for the system VM""" self.zoneid = None self.typeInfo['zoneid'] = 'string' """the Zone name for the system VM""" self.zonename = None self.typeInfo['zonename'] = 'string'
[ "int-mccd_jenkins@schubergphilis.com" ]
int-mccd_jenkins@schubergphilis.com
142a233e4941c83b943c602d4e8d6b690ccefeab
852a91492a737e9a2c210df883029b684ca6a448
/jade2/pyrosetta_toolkit/window_main/IO/GUIInput.py
a67521cf642eab16dc495ca068b490289641dcc1
[ "BSD-3-Clause" ]
permissive
jadolfbr/jade2
cb33f4a8cbf560f5ebaef4de2789ff50f372ff5a
91f18d6004f123d11ea8618171154aa25a7444e9
refs/heads/main
2022-09-12T06:23:23.356864
2022-03-24T20:15:13
2022-03-24T20:15:13
427,541,475
0
0
NOASSERTION
2021-11-13T01:34:34
2021-11-13T01:34:34
null
UTF-8
Python
false
false
11,858
py
#!/usr/bin/env python # # (c) Copyright Rosetta Commons Member Institutions. # (c) This file is part of the Rosetta software suite and is made available under license. # (c) The Rosetta software is developed by the contributing members of the Rosetta Commons. # (c) For more information, see http://www.rosettacommons.org. Questions about this can be # (c) addressed to University of Washington CoMotion, email: license@uw.edu. ## @file /GUIs/pyrosetta_toolkit/window_main/IO/GUIInput.py ## @brief Class responsible for managing input variables of the GUI. ## @author Jared Adolf-Bryfogle (jadolfbr@gmail.com) ## @author Steven Combs (steven.combs1@gmail.com) #Rosetta Imports from rosetta import * from rosetta.protocols.loops import * from rosetta.core.import_pose import * from rosetta.core.pose import * #Python Imports import urllib.request, urllib.error, urllib.parse import os.path import re #Tkinter Imports from tkinter import * from tkinter import StringVar import tkinter.filedialog import tkinter.simpledialog #Toolkit Imports from jade2.pyrosetta_toolkit.window_main import global_variables from jade2.pyrosetta_toolkit.modules.RegionalScoring import RegionalScoring from jade2.pyrosetta_toolkit.modules.Region import Region from jade2.pyrosetta_toolkit.modules.Region import Regions from jade2.pyrosetta_toolkit.modules.tools import input as input_tools from jade2.pyrosetta_toolkit.window_modules.clean_pdb.FixPDBWindow import FixPDBWindow from jade2.pyrosetta_toolkit.window_modules.options_system.OptionSystemManager import OptionSystemManager #from jade2.pyrosetta_toolkit import main_window class GUIInput: def __init__(self, toolkit): self.toolkit = toolkit; #Basically an AP of the toolkit self.pose = self.toolkit.pose self.pdb_path = StringVar(); self.pdb_path.set(""); self.PDBLIST = StringVar(); self.PDBLIST.set("") self.region_start=StringVar(); #Start of Region self.region_end=StringVar(); #End of Region self.region_chain=StringVar(); #Chain of Region self.region_sequence=StringVar(); #Sequence in Entry self.loops_as_strings = []; #Array of Regions: start:end:chain self.regions = Regions(); #This will replace loops_as_strings self.loops = Loops() #These are set if a user selects a residue from the sequence self.residue_string = StringVar(); #String that is displayed when individual reside is selected self.residue_resnum = StringVar(); self.residue_rosetta_resnum = StringVar(); self.residue_chain = StringVar() self.constraint_file_paths = []; #Path to constraint file if loaded through GUI (Not options system). self.param_pathlist_file = ""; #Path to a file which lists paths to all params to use. One on each line self.param_paths = []; #Array of parameter paths. self.loaded_paths = []; #Since ResidueTypeSet is a singleton, with horrible exception handling, WE need to keep track of it. self.nonstandard_ResidueTypeSet = ""; #This is set through the ncaa window or loading a param path file. self.options_manager= OptionSystemManager(); #This is due to Protocols needing Rosetta to be reinitialized without loosing already set options - to set the seed up before multiprocessing runs! self.options_manager= OptionSystemManager(); #This is due to Protocols needing Rosetta to be reinitialized without loosing already set options - to set the seed up before multiprocessing runs! self.pdb_url = "http://www.rcsb.org/pdb/files" #if 0: self.toolkit = main_window() ######### Functions that cannot be put in input_tools or do not belong in the main frame, as they set a variable within this class. ################ def choose_load_pose(self, message="Load Pose"): """ Loads a Pose through the tk File Dialog """ infilename = tkinter.filedialog.askopenfilename(initialdir=global_variables.current_directory, title=message) if not infilename:return global_variables.current_directory= os.path.dirname(infilename) print(global_variables.current_directory) self.load_pose(infilename) def fetch_pdb(self): """ Fetches the PDB, opens FixPDBWindow to allow the user to clean the PDB before trying to load it. """ #Create default directory outpath = self.toolkit.toolkit_home+"/PDBs" if not os.path.exists(outpath):os.mkdir(outpath) global_variables.current_directory = outpath #Ask for PDB id. pdbID = tkinter.simpledialog.askstring(title="Fetch pdb", prompt="Please enter PDB ID.") if not pdbID: return #Open and Write the PDB FILE = urllib.request.urlopen(self.pdb_url+'/'+pdbID.lower()+'.pdb') OUTFILE = open(outpath+'/'+pdbID.upper()+'.pdb', 'w') for line in FILE: OUTFILE.write(line) OUTFILE.close() fetched_pdb = outpath+'/'+pdbID.upper()+'.pdb' print("PDB saved to pyrosetta_toolkit/PDBs") cleaner = FixPDBWindow(self, self.toolkit.score_class, self.toolkit.pose, fetched_pdb) cleaner.runfixPDBWindow(self.toolkit._tk_, 0, 0) def select_pose_then_launch_fixpdb(self): """ This way of loading a pose asks the user to open a PDB, then launches the fixPDBWindow as per Labonte's suggestion. """ infilename = tkinter.filedialog.askopenfilename(initialdir=global_variables.current_directory, title="Select PDB file") if not infilename:return global_variables.current_directory= os.path.dirname(infilename) print(global_variables.current_directory) cleaner = FixPDBWindow(self, self.toolkit.score_class, self.toolkit.pose, infilename) cleaner.cleaned_pdb_path.set(infilename) cleaner.runfixPDBWindow(self.toolkit._tk_, 0, 0) cleaner.enable_load() def load_pose(self, path): """ Load a pose into the toolkit.pose variable. Setup nessessary variables/etc for objects and window objects of the toolkit. Can have NCAA that have been enabled. Please use this when loading the main pose into the toolkit. """ if not os.path.exists(path): print("PDB path does not exist. Cannot load pose.") return self.pdb_path.set(path) print(self.pdb_path.get()) #Turn off PyMOL Observer if on - It will try to update on new pose. observer_on = self.toolkit.pymol_class.auto_send.get() if observer_on: self.toolkit.pymol_class.auto_send.set(False) #Load Pose if self.nonstandard_ResidueTypeSet: self.toolkit.pose.assign(core.import_pose.pose_from_file(self.nonstandard_ResidueTypeSet, path)) else: core.import_pose.pose_from_file(self.toolkit.pose, self.pdb_path.get()) self.toolkit.native_pose.assign(self.toolkit.pose); #Set native pose for RMSD. print(self.toolkit.pose) #Reinitialize PyMOL self.toolkit.pymol_class.SendNewPose() if observer_on: self.toolkit.pymol_class.auto_send.set(True) self.regional_score_class = RegionalScoring(self.toolkit.pose, self.toolkit.score_class.score); #Reinitialize Output pdbname = os.path.basename(self.pdb_path.get()) pdbname = pdbname.split(".")[0] self.toolkit.output_class.outname.set(pdbname) self.toolkit.output_class.outdir.set(os.path.dirname(self.pdb_path.get())) #Reinitialize Sequence + Regions self.reinit_regions_on_new_pose() self.region_sequence.set(self.toolkit.pose.sequence()) self.residue_rosetta_resnum.set("") #Reinitialize Design self.toolkit.DesignDic = dict() def return_loaded_pose(self, path): """ Load and return a pose. Can have NCAA that have been enabled. """ p = Pose() if self.nonstandard_ResidueTypeSet: p.assign(core.import_pose.pose_from_file(self.nonstandard_ResidueTypeSet, path)) else: core.import_pose.pose_from_file(p, self.pdb_path.get()) return p def set_PDBLIST(self): infilename = tkinter.filedialog.askopenfilename(initialdir=global_variables.current_directory,title='Open PDBLIST') if not infilename:return global_variables.current_directory =os.path.dirname(infilename) print("PDBLIST set") self.PDBLIST.set(infilename) def load_param_list(self, infilename=False): """ Loads paths from param path files into an array. Creates a residue type set from the params. """ if not infilename: infilename = tkinter.filedialog.askopenfilename(initialdir=global_variables.current_directory,title='Open param pathList file') if not infilename: return self.param_pathlist_file = infilename global_variables.current_directory =os.path.dirname(infilename) FILE = open(infilename, 'r') for line in FILE: if re.search("#", line): continue line = line.strip() self.param_paths.append(line) self.nonstandard_ResidueTypeSet, self.loaded_paths = input_tools.get_residuetypeset_from_path_array(self.param_paths, self.loaded_paths) FILE.close() def load_loop(self, infilename=False): """ Returns a loops_as_strings array to be used by the InputFrame """ if not self.toolkit.pose.total_residue(): print("\nNumbering conversion requires a pose to be loaded...please load a pose..") return if not infilename: infilename = tkinter.filedialog.askopenfilename(initialdir=global_variables.current_directory,title='Open Loop file') if not infilename: return global_variables.current_directory =os.path.dirname(infilename) FILE = open(infilename, 'r') loops_as_strings = [] for line in FILE: print(line) line = line.strip() lineSP = line.split() start = lineSP[1] end = lineSP[2] chain_start = self.toolkit.pose.pdb_info().chain(int(start)) chain_end = self.toolkit.pose.pdb_info().chain(int(end)) if chain_start != chain_end: print("Invalid loop for GUI. Start and end residues are on different chains.\n") return loop_string = repr(self.toolkit.pose.pdb_info().number(int(start)))+":"+repr(self.toolkit.pose.pdb_info().number(int(end)))+":"+chain_start loops_as_strings.append(loop_string) FILE.close() return loops_as_strings def reinit_regions_on_new_pose(self): if not self.regions:return #If regions not yet set for region in self.regions: if not region.region_exists(self.pose): loop_string = region.get_region_string() self.loops_as_strings.remove(loop_string) self.regions.remove_region(loop_string) else: loop_string = region.get_region_string() print(loop_string +" found in new Pose") #Here is where we have to actually interact with the frame. self.toolkit.input_frame.loops_listbox.delete(0, END) for loop_string in self.loops_as_strings: self.toolkit.input_frame.loops_listbox.insert(END, loop_string) ###Region Setting + Residue Setting #### def set_residue_of_interest(self, resnum, chain, rosetta_resnum): """ Sets current individual residue information. All Strings. """ self.residue_resnum.set(resnum) self.residue_chain.set(chain) self.residue_rosetta_resnum.set(rosetta_resnum)
[ "jadolfbr@gmail.com" ]
jadolfbr@gmail.com
42fcd54c6f28e2a2613922332d075016ca979640
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01/operations/_operations.py
6ba396209174bea4ed3283dea9c97e89d8ad2dcb
[ "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "PSF-2.0", "LGPL-2.0-or-later", "GPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "Python-2.0", "MPL-2.0", "LicenseRef-scancode-other-copyleft", "HPND", "ODbL-1.0", "GPL-3.0-only", "ZPL-2.1", "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
6,021
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from typing import TYPE_CHECKING from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models as _models from .._vendor import _convert_request if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any, Callable, Dict, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False # fmt: off def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest api_version = kwargs.pop('api_version', "2022-10-01") # type: str accept = "application/json" # Construct URL _url = kwargs.pop("template_url", "/providers/Microsoft.MachineLearningServices/operations") # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) # fmt: on class Operations(object): """Operations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.machinelearningservices.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ models = _models def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace def list( self, **kwargs # type: Any ): # type: (...) -> Iterable["_models.AmlOperationListResult"] """Lists all of the available Azure Machine Learning Workspaces REST API operations. :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either AmlOperationListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.machinelearningservices.models.AmlOperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2022-10-01") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.AmlOperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_list_request( api_version=api_version, template_url=self.list.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) else: request = build_list_request( api_version=api_version, template_url=next_link, ) request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request def extract_data(pipeline_response): deserialized = self._deserialize("AmlOperationListResult", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged( get_next, extract_data ) list.metadata = {'url': "/providers/Microsoft.MachineLearningServices/operations"} # type: ignore
[ "noreply@github.com" ]
Azure.noreply@github.com
32f68b1d95119b10b38fa1bd99cb8b0b764916cb
ee5cc595d2561b0a5c3643d3b5411d6a317e460d
/Tech_Parts/forms.py
937078649c31a63216d9ed13d62cd5e9cea93f86
[]
no_license
abdallah-nasir/Saif
55d752489666d54f3112a4323be7ed42a4705376
83a5fa671a0cf23e7d17340306a3d845802d764b
refs/heads/main
2023-06-16T14:24:57.337133
2021-07-13T23:56:23
2021-07-13T23:56:23
374,425,846
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
from django import forms from .models import * class AddForm(forms.ModelForm): class Meta: model=Order fields=["products"] class TypeFilter(forms.ModelForm): class Meta: model=Filters fields=["type"] class CategoryFilter(forms.ModelForm): class Meta: model=Filters fields=["category"] class ProcessorFilter(forms.ModelForm): class Meta: model=Filters fields=["processor"] class OrderForm(forms.ModelForm): class Meta: model=Order fields=["products"] class DashboardForm(forms.ModelForm): class Meta: model=Product exclude=["code","slug"] class SupplierForm(forms.ModelForm): class Meta: model=Supplier fields= "__all__" class GammesForm(forms.ModelForm): class Meta: model=Games fields= "__all__" exclude=["li"] class FpsForm(forms.ModelForm): class Meta: model=Fps_Numbers fields= "__all__"
[ "abdallah.nasir@ymail.com" ]
abdallah.nasir@ymail.com
682dd1db09015be11c2ad171f27baf00f6062a07
810ce1c1ac47743e253171ec7541c0e431d952c2
/fluent_py/coroutines/coroaverage1.py
c4879d937d2cea58b61137ee6a91e8b89e880809
[]
no_license
hjlarry/practise-py
91052c25dc7ab706c6234f6d657db76667a27124
871e06b9652d356f55e3888f1f7ea180ac2b1954
refs/heads/master
2022-09-11T17:47:48.557194
2022-08-10T02:07:24
2022-08-10T02:07:24
136,263,989
1
0
null
null
null
null
UTF-8
Python
false
false
342
py
from coroutil import coroutine @coroutine def average(): total = 0 count = 0 average = None while True: recv = yield average total += recv count += 1 average = total / count avg_cor = average() print(avg_cor.send(100)) print(avg_cor.send(50)) print(avg_cor.send(10)) print(avg_cor.send(0))
[ "hjlarry@163.com" ]
hjlarry@163.com
aa9d5bc83c45829c28be08a36660603118c1c15c
be85a5caccc61913ff3c464cf533f350592aa450
/photo/models.py
db760ba1efa00ced967f7f199fb0292bbcfd6bbb
[]
no_license
darkseven1/dstagram
2f8811790278cf114a438fdfeed5bc19644ffbf0
23aee41aeecd1b974b7ad0013d008380a62e5b5d
refs/heads/master
2023-05-12T11:31:14.302282
2021-06-10T13:27:00
2021-06-10T13:27:00
375,708,228
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
from django.db import models from django.contrib.auth.models import User from django.urls import reverse class Photo(models.Model): author = models.ForeignKey(User, on_delete=models.CASCADE, related_name='user_photos') photo = models.ImageField(upload_to='photos/%Y/%m/%d', default='photos/no_image.png') text = models.TextField() created = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) class Meta: ordering = ['-updated'] def __str__(self): return self.author.username + " " + self.created.strftime("%Y-%m-%d %H:%M:%S") def get_absolute_url(self): return reverse('photo:photo_detail', args=[str(self.id)])
[ "darkseven1@naver.com" ]
darkseven1@naver.com
47959ecb2aa942df4422f6258da6baaba9f558d3
27ce5035140a5023de0892f4c3837bb03d47a700
/paper_plots/fig_4c.py
37ed90b56300da9012d8ece638e290a9393f5807
[ "MIT" ]
permissive
matteorr/rel_3d_pose
42cb155bdce394a578095a32a9b5793e3564cd68
dcb9838bfc575d267a99998982ba756f073bc5d8
refs/heads/master
2022-05-12T13:08:32.951614
2022-05-02T04:53:16
2022-05-02T04:53:16
143,567,259
76
8
MIT
2018-09-21T21:45:44
2018-08-04T22:32:07
Python
UTF-8
Python
false
false
3,205
py
import numpy as np import matplotlib.pyplot as plt import json def plot_figure(rel_acc_te, sup_acc_te, rel_acc_tr_te, sup_acc_tr_te, labels, inds_of_interest): fig, ax1 = plt.subplots() markers = ['+', 'd', 'p', 's', '^', 'o'] plt.plot([0,20], [0,20], ':', color='gray') sup_color = plt.rcParams['axes.prop_cycle'].by_key()['color'][0] rel_color = plt.rcParams['axes.prop_cycle'].by_key()['color'][1] for ii in inds_of_interest: ax1.scatter(sup_acc_te[ii], sup_acc_tr_te[ii], color=sup_color, label=labels[ii], marker=markers[ii], s=150) for ii in inds_of_interest: ax1.scatter(rel_acc_te[ii], rel_acc_tr_te[ii], color=rel_color, label=labels[ii], marker=markers[ii], s=150) # create title in legend h, _ = ax1.get_legend_handles_labels() ph = [ax1.plot([],marker="", ls="")[0]]*2 handles = [ph[0]] + h[:len(inds_of_interest)] + [ph[1]] + h[len(inds_of_interest):] labs = [r"$\bf{3D}$" + " " +r"$\bf{Supervised}$"] + [labels[ii] for ii in inds_of_interest] + [r"$\bf{Ours}$" + " " +r"$\bf{Relative}$"] + [labels[ii] for ii in inds_of_interest] axis_font = {'size':'14'} ax1.set_xlabel("3D Pose Error (cm) - Test Noise (GT/SH)", **axis_font) axis_font = {'size':'13'} ax1.set_ylabel("3D Pose Error (cm) - Train Test Noise (SH/SH)", **axis_font) ax1.yaxis.set_label_coords(-0.05,0.45) ax1.grid() ax1.set_axisbelow(True) ax1.legend(handles, labs, ncol=2) plt.xlim(3, 8) plt.ylim(3, 8) plt.show() # plt.savefig('plots/noise_2d_vs_accuracy_both.pdf', bbox_inches='tight') # plt.savefig('plots/noise_2d_vs_accuracy_both.png', bbox_inches='tight') plt.close() if __name__ == '__main__': res_file_test = '../checkpoint/fig_4c_test_noise/fig_4c_test_noise_results.json' with open(res_file_test) as da: data_test = json.load(da) res_file_train_test = '../checkpoint/fig_4c_train_test_noise/fig_4c_train_test_noise_results.json' with open(res_file_train_test) as da: data_train_test = json.load(da) rel_acc_te = np.array(data_test['rel_supervised'])/10.0 sup_acc_te = np.array(data_test['fully_supervised'])/10.0 amount_noise_te = data_test['test_amount_noise'] amount_noise_te = ['DTS' if str(tt) == 'detections' else tt for tt in amount_noise_te] rel_acc_tr_te = np.array(data_train_test['rel_supervised'])/10.0 sup_acc_tr_te = np.array(data_train_test['fully_supervised'])/10.0 amount_noise_tr_te = data_train_test['test_amount_noise'] amount_noise_tr_te = ['DTS' if str(tt) == 'detections' else tt for tt in amount_noise_tr_te] assert amount_noise_te == amount_noise_tr_te labels = [] for aa in amount_noise_te: if aa == 'DTS': labels.append('DTS') else: #labels.append(str(aa) + '%') labels.append(r"$\sigma^2 = $" + str(aa)) #inds_of_interest = [0, 1, 2, 3, 4, 5] # use this only plot a subset inds_of_interest = [0, 2, 4, 5] # use this only plot a subset plot_figure(rel_acc_te, sup_acc_te, rel_acc_tr_te, sup_acc_tr_te, labels, inds_of_interest)
[ "mronchi@caltech.edu" ]
mronchi@caltech.edu
d6c8e5f87533dbe8ea0294da54b75dcca8a57336
bce387c44f4a1957222fb966b937d7e29353220c
/noxAuto.py
320c2b53228bc45cd12ac09adad11091eb714f4d
[]
no_license
Kwon-YJ/nox_auto
6bf38ed9a88f97e7d163feaa3ebdb00afbb55e73
9036e58776db258ba36522eadeb10513f3ab6370
refs/heads/master
2022-11-23T01:26:06.964304
2020-07-13T03:41:00
2020-07-13T03:41:00
278,500,784
0
0
null
null
null
null
UTF-8
Python
false
false
5,200
py
# -*- coding: utf-8 -*- import pyautogui import time ''' # all process kill pyautogui.click(x = 2220, y = 500, clicks=1) # home button pyautogui.click(x = 2220, y = 1350, clicks=1) ''' # ckick_ = pyautogui.click(x = 2248, y = 448,clicks=1,interval=1) # 네이처 스크롤 = 12 # 칠성 첫번째 스크롤 = 8 # 칠성 두번째 스크롤 = 11 # 아이템 매니아 스크롤 = 12 def scroll_down(number): time.sleep(2.5) for i in range(number): time.sleep(0.6) pyautogui.scroll(-100) def click_folder(num): if num == 1: pyautogui.click(x = 1250, y = 418, clicks=1) if num == 2: pyautogui.click(x = 1550, y = 418, clicks=1) if num == 3: pyautogui.click(x = 1850, y = 418, clicks=1) if num == 4: pyautogui.click(x = 350, y = 650, clicks=1) else: print('err!') def click_file(num): if num == 1: pyautogui.click(x = 850, y = 600, clicks=1) if num == 2: pyautogui.click(x = 1100, y = 600, clicks=1) if num == 3: pyautogui.click(x = 1350, y = 600, clicks=1) if num == 4: pyautogui.click(x = 850, y = 770, clicks=1) if num == 5: pyautogui.click(x = 1100, y = 770, clicks=1) if num == 6: pyautogui.click(x = 1350, y = 770, clicks=1) else: print('err!') def exit_app(): pyautogui.click(x = 2220, y = 500, clicks=1) # 1. 네이처 컬렉션 click_folder(1) click_file(1) pyautogui.click(x = 1438, y = 1280, clicks=1) pyautogui.click(x = 743, y = 113, clicks=1) pyautogui.click(x = 811, y = 1117, clicks=1) scroll_down(12) pyautogui.click(x = 1066, y = 883, clicks=1) pyautogui.click(x = 1265, y = 798, clicks=1) pyautogui.click(x = 1331, y = 798, clicks=1) exit_app() # 2. MyBN click_folder(1) click_file(2) exit_app() # 3. 립합 click_folder(1) click_file(3) exit_app() # 4. 교보문고 click_folder(1) click_file(4) pyautogui.click(x = 1225, y = 972, clicks=1) pyautogui.click(x = 945, y = 844, clicks=1) exit_app() '''미완''' # 5. 예스24NEB click_folder(1) click_file(5) pyautogui.click(x = 736, y = 111, clicks=1) pyautogui.click(x = 811, y = 555, clicks=1) pyautogui.click(x = 1085, y = 1252, clicks=1) exit_app() '''미완''' # 1. 하이마트 click_folder(2) click_file(1) pyautogui.click(x = 1263, y = 1093, clicks=1) pyautogui.click(x = 790, y = 793, clicks=1) pyautogui.click(x = 1280, y = 223, clicks=1) pyautogui.click(x = 1093, y = 823, clicks=1) pyautogui.click(x = 1112, y = 1054, clicks=1) exit_app() # 2. 칠성몰 click_folder(2) click_file(2) pyautogui.click(x = 1440, y = 204, clicks=1) pyautogui.click(x = 1151, y = 1002, clicks=1) pyautogui.click(x = 1097, y = 1121, clicks=1) pyautogui.click(x = 1198, y = 873, clicks=1) pyautogui.click(x = 1085, y = 1252, clicks=1) exit_app() '''스크롤''' # 3. HPoint click_folder(2) click_file(3) pyautogui.click(x = 1110, y = 1400, clicks=1) pyautogui.click(x = 1087, y = 731, clicks=1) '''미완''' exit_app() # 4. 아이템매니아 click_folder(2) click_file(4) pyautogui.click(x = 1280, y = 849, clicks=1) pyautogui.click(x = 1077, y = 1272, clicks=1) '''미완''' exit_app() # 5. 티몬 click_folder(2) click_file(5) pyautogui.click(x = 1289, y = 1401, clicks=1) pyautogui.click(x = 950, y = 851, clicks=1) pyautogui.click(x = 1381, y = 787, clicks=1) pyautogui.click(x = 802, y = 613, clicks=1) pyautogui.click(x = 1107, y = 674, clicks=1) pyautogui.click(x = 984, y = 857, clicks=1) exit_app() # 6. 해피머니 click_folder(2) click_file(6) pyautogui.click(x = 1285, y = 1194, clicks=1) pyautogui.click(x = 1441, y = 128, clicks=1) pyautogui.click(x = 1310, y = 223, clicks=1) pyautogui.click(x = 1409, y = 505, clicks=1) pyautogui.click(x = 860, y = 581, clicks=1) pyautogui.click(x = 1377, y = 353, clicks=1) exit_app() # 1. 지마켓 click_folder(3) click_file(1) pyautogui.click(x = 790, y = 666, clicks=1) pyautogui.click(x = 1009, y = 189, clicks=1) pyautogui.click(x = 1102, y = 656, clicks=1) pyautogui.click(x = 1100, y = 959, clicks=1) exit_app() # 2. 인터파크 click_folder(3) click_file(2) pyautogui.click(x = 1384, y = 1050, clicks=1) pyautogui.click(x = 951, y = 783, clicks=1) pyautogui.click(x = 1040, y = 1315, clicks=1) '''미완''' exit_app() # 3. 인터파크 투어 click_folder(3) click_file(3) pyautogui.click(x = 1214, y = 1063, clicks=1) pyautogui.click(x = 1411, y = 1057, clicks=1) pyautogui.click(x = 1095, y = 473, clicks=1) exit_app() # 4. 인터파크 도서 click_folder(3) click_file(4) pyautogui.click(x = 925, y = 757, clicks=1) pyautogui.click(x = 1249, y = 585, clicks=1) exit_app() # 5. 지9 click_folder(3) click_file(5) pyautogui.click(x = 1457, y = 1405, clicks=1) pyautogui.click(x = 1248, y = 341, clicks=1) pyautogui.click(x = 1106, y = 731, clicks=1) exit_app() # 6. 해피포인트 click_folder(3) click_file(6) pyautogui.click(x = 753, y = 136, clicks=1) pyautogui.click(x = 1277, y = 227, clicks=1) pyautogui.click(x = 1436, y = 944, clicks=1) pyautogui.click(x = 865, y = 1034, clicks=1) pyautogui.click(x = 1103, y = 1086, clicks=1) exit_app() # 1. CJ 더마켓 click_folder(4) click_file(1) pyautogui.click(x = 940, y = 1289, clicks=1) '''미완''' exit_app()
[ "49362903+Kwon-YJ@users.noreply.github.com" ]
49362903+Kwon-YJ@users.noreply.github.com
eb67be98965501ea8b709228dcc5cf71c56eebee
3c2eafdeb368d146fb42f7b2684847818a2f7e34
/tsm/pyKinectAzure/kinectBodyTracker.py
bba9aca1c1448342c4cb132416de111b641eec73
[]
no_license
Alice1820/skeleton-ar
1cc416c23bccc7014229078e9d6f626398842405
9abce1b25d8b4a2b700e4b8badb61ec6be7abeb2
refs/heads/main
2023-08-18T19:33:58.641226
2021-09-27T11:46:05
2021-09-27T11:46:05
408,324,593
0
0
null
null
null
null
UTF-8
Python
false
false
14,446
py
import _k4a import _k4abt import numpy as np import cv2 import sys import ctypes from ctypes import cdll from .config import config from . import postProcessing import platform k4a2v2 = { 0: _k4abt.K4ABT_JOINT_PELVIS, 1: _k4abt.K4ABT_JOINT_SPINE_NAVEL, 2: _k4abt.K4ABT_JOINT_NECK, 3: _k4abt.K4ABT_JOINT_HEAD, 4: _k4abt.K4ABT_JOINT_SHOULDER_LEFT, 5: _k4abt.K4ABT_JOINT_ELBOW_LEFT, 6: _k4abt.K4ABT_JOINT_WRIST_LEFT, 7: _k4abt.K4ABT_JOINT_HAND_LEFT, 8: _k4abt.K4ABT_JOINT_SHOULDER_RIGHT, 9: _k4abt.K4ABT_JOINT_ELBOW_RIGHT, 10: _k4abt.K4ABT_JOINT_WRIST_RIGHT, 11: _k4abt.K4ABT_JOINT_HAND_RIGHT, 12: _k4abt.K4ABT_JOINT_HIP_LEFT, 13: _k4abt.K4ABT_JOINT_KNEE_LEFT, 14: _k4abt.K4ABT_JOINT_ANKLE_LEFT, 15: _k4abt.K4ABT_JOINT_FOOT_LEFT, 16: _k4abt.K4ABT_JOINT_HIP_RIGHT, 17: _k4abt.K4ABT_JOINT_KNEE_RIGHT, 18: _k4abt.K4ABT_JOINT_ANKLE_RIGHT, 19: _k4abt.K4ABT_JOINT_FOOT_RIGHT, 20: _k4abt.K4ABT_JOINT_SPINE_CHEST, 21: _k4abt.K4ABT_JOINT_HANDTIP_LEFT, 22: _k4abt.K4ABT_JOINT_THUMB_LEFT, 23: _k4abt.K4ABT_JOINT_HANDTIP_RIGHT, 24: _k4abt.K4ABT_JOINT_THUMB_RIGHT, } v22k4a = { } class kinectBodyTracker: def __init__(self, modulePath, sensor_calibration, modelType): _k4abt.k4abt.setup_library(modulePath) self.k4abt = _k4abt.k4abt() try: cdll.LoadLibrary("C:/Program Files/Azure Kinect Body Tracking SDK/tools/directml.dll") except Exception as e: _k4abt.K4ABT_TRACKER_CONFIG_DEFAULT.processing_mode = _k4abt.K4ABT_TRACKER_PROCESSING_MODE_GPU_CUDA self.tracker_handle = _k4abt.k4abt_tracker_t() if modelType == 1: try: _k4abt.K4ABT_TRACKER_CONFIG_DEFAULT.model_path = "C:/Program Files/Azure Kinect Body Tracking SDK/sdk/windows-desktop/amd64/release/bin/dnn_model_2_0_lite_op11.onnx".encode('utf-8') except Exception as e: print("Failed to find lite model. Check that you are using Body Tracker version 1.1.0\n") print("Switching to the original body tracking model\n\n\n") self.tracker_config = _k4abt.K4ABT_TRACKER_CONFIG_DEFAULT self.body_frame_handle = _k4abt.k4abt_frame_t() self.segmented_body_img = _k4a.k4a_image_t() self.capture_handle = _k4a.k4a_capture_t() self.sensor_calibration = sensor_calibration self.tracker_running = False self.bodiesNow = [] self.initializeTracker() def detectBodies(self): self.bodiesNow = [] # Get the next available body frame. self.pop_result() # Get the semantic body image self.get_body_index_map() # Get the number of people in the frame num_bodies = self.get_num_bodies() # Extract the skeleton of each person if num_bodies: for bodyIdx in range(num_bodies): body = _k4abt.k4abt_body_t() body.skeleton = self.get_body_skeleton(bodyIdx) body.id = self.get_body_id(bodyIdx) self.bodiesNow.append(body) def printBodyPosition(self, body): print(f"BodyId: {body.id}", \ f"X: {body.skeleton.joints[_k4abt.K4ABT_JOINT_SPINE_NAVEL].position.v[0]:.2f} mm", \ f"Y: {body.skeleton.joints[_k4abt.K4ABT_JOINT_SPINE_NAVEL].position.v[1]:.2f} mm", \ f"Z: {body.skeleton.joints[_k4abt.K4ABT_JOINT_SPINE_NAVEL].position.v[2]:.2f} mm") def get3DSkeleton(self, body): skeleton = np.zeros((25, 3)) for i in range(25): # x, y, x coordinates in meters skeleton[i, 0] = body.skeleton.joints[k4a2v2[i]].position.v[0] * 1e-3 skeleton[i, 1] = body.skeleton.joints[k4a2v2[i]].position.v[1] * 1e-3 skeleton[i, 2] = body.skeleton.joints[k4a2v2[i]].position.v[2] * 1e-3 return skeleton def draw2DSkeleton(self, skeleton2D, bodyId, image): color = _k4abt.body_colors for joint in skeleton2D.joints2D: image = cv2.circle(image, (int(joint.position.v[0]), int(joint.position.v[1])), 3, (255,0,0), 3) for segmentId in range(len(_k4abt.K4ABT_SEGMENT_PAIRS)): point1 = skeleton2D.joints2D[_k4abt.K4ABT_SEGMENT_PAIRS[segmentId][0]].position.v point2 = skeleton2D.joints2D[_k4abt.K4ABT_SEGMENT_PAIRS[segmentId][1]].position.v image = cv2.line( image, (int(point1[0]), int(point1[1])), (int(point2[0]), int(point2[1])), (255,0,0), 2 ) # print (image.shape) # print ((int(point1[0]), int(point1[1])), (int(point2[0]), int(point2[1]))) return image def draw2DSkeletonBlank(self, skeleton2D, bodyId): color = _k4abt.body_colors for joint in skeleton2D.joints2D: image = cv2.circle(image, (int(joint.position.v[0]), int(joint.position.v[1])), 3, (255,0,0), 3) for segmentId in range(len(_k4abt.K4ABT_SEGMENT_PAIRS)): point1 = skeleton2D.joints2D[_k4abt.K4ABT_SEGMENT_PAIRS[segmentId][0]].position.v point2 = skeleton2D.joints2D[_k4abt.K4ABT_SEGMENT_PAIRS[segmentId][1]].position.v image = cv2.line( image, (int(point1[0]), int(point1[1])), (int(point2[0]), int(point2[1])), (255,0,0), 2 ) return image def initializeTracker(self): """Initialize the body tracker Parameters: k4a_calibration_t calibration: Camera calibration for capture processing k4abt_tracker_configuration_t config: Cofiguration for the body tracker k4abt_tracker_t* tracker_handle: handle of the body tracker Returns: None Remarks: If successful, k4abt_tracker_create() will return a body tracker handle in the tracker parameter. This handle grants * access to the body tracker and may be used in the other k4abt API calls. When done with body tracking, close the handle with k4abt_tracker_destroy(). """ _k4abt.VERIFY(self.k4abt.k4abt_tracker_create(self.sensor_calibration, self.tracker_config, self.tracker_handle), "Body tracker initialization failed!") self.tracker_running = True def destroyTracker(self): """ Releases a body tracker handle. Parameters: k4abt_tracker_t tracker_handle: tracker handle to be released Returns: None Remarks: Once released, the tracker_handle is no longer valid. """ self.k4abt.k4abt_tracker_destroy(self.tracker_handle) self.tracker_running = False def shutdown(self): """ Shutdown the tracker so that no further capture can be added to the input queue. Parameters: k4abt_tracker_t tracker_handle: tracker handle to be released Returns: None Remarks: Once the tracker is shutdown, k4abt_tracker_enqueue_capture() API will always immediately return failure. If there are remaining catpures in the tracker queue after the tracker is shutdown, k4abt_tracker_pop_result() can still return successfully. Once the tracker queue is empty, the k4abt_tracker_pop_result() call will always immediately return failure. """ self.k4abt.k4abt_tracker_shutdown(self.tracker_handle) self.tracker_running = False def set_temporal_smoothing(self, smoothing_factor): """ Control the temporal smoothing across frames. Parameters: k4abt_tracker_t tracker_handle: Handle obtained by k4abt_tracker_create(). float smoothing_factor: Set between 0 for no smoothing and 1 for full smoothing. Less smoothing will increase the responsiveness of the detected skeletons but will cause more positional and orientational jitters. Returns: None Remarks: The default smoothness value is defined as K4ABT_DEFAULT_TRACKER_SMOOTHING_FACTOR. """ self.k4abt.k4abt_tracker_set_temporal_smoothing(self.tracker_handle, smoothing_factor) def enqueue_capture(self, capture_handle, timeout_in_ms=_k4a.K4A_WAIT_INFINITE): """Add a k4a sensor capture to the tracker input queue to generate its body tracking result asynchronously. Parameters:h k4a_capture_t sensor_capture_handle: Handle to a sensor capture returned by k4a_device_get_capture() from k4a SDK. timeout_in_ms (int):Specifies the time in milliseconds the function should block waiting for the capture. If set to 0, the function will return without blocking. Passing a value of #K4A_WAIT_INFINITE will block indefinitely until data is available, the device is disconnected, or another error occurs. Returns: None Remarks: Add a k4a capture to the tracker input queue so that it can be processed asynchronously to generate the body tracking result. The processed results will be added to an output queue maintained by k4abt_tracker_t instance. Call k4abt_tracker_pop_result to get the result and pop it from the output queue. If the input queue or output queue is full, this function will block up until the timeout is reached. Once body_frame data is read, the user must call k4abt_frame_release() to return the allocated memory to the SDK Upon successfully insert a sensor capture to the input queue this function will return success. """ _k4abt.VERIFY(self.k4abt.k4abt_tracker_enqueue_capture(self.tracker_handle, capture_handle, timeout_in_ms), "Body tracker capture enqueue failed!") def pop_result(self, timeout_in_ms=_k4a.K4A_WAIT_INFINITE): """Gets the next available body frame. Parameters: k4abt_frame_t* body_frame_handle: If successful this contains a handle to a body frame object. timeout_in_ms (int):Specifies the time in milliseconds the function should block waiting for the capture. If set to 0, the function will return without blocking. Passing a value of #K4A_WAIT_INFINITE will block indefinitely until data is available, the device is disconnected, or another error occurs. Returns: None Remarks: Retrieves the next available body frame result and pop it from the output queue in the k4abt_tracker_t. If a new body frame is not currently available, this function will block up until the timeout is reached. The SDK will buffer at least three body frames worth of data before stopping new capture being queued by k4abt_tracker_enqueue_capture. Once body_frame data is read, the user must call k4abt_frame_release() to return the allocated memory to the SDK. Upon successfully reads a body frame this function will return success. """ if self.tracker_running: _k4abt.VERIFY(self.k4abt.k4abt_tracker_pop_result(self.tracker_handle, self.body_frame_handle, timeout_in_ms), "Body tracker get body frame failed!") def release_frame(self): """Release a body frame back to the SDK Parameters: k4abt_frame_t* body_frame_handle: Handle to a body frame object to return to SDK. Returns: None Remarks: Called when the user is finished using the body frame. """ self.k4abt.k4abt_frame_release(self.body_frame_handle) def add_reference_to_frame(self): """Add a reference to a body frame. Parameters: k4abt_frame_t* body_frame_handle: Body frame to add a reference to. Returns: None Remarks: Call this function to add an additional reference to a body frame. This reference must be removed with k4abt_frame_release(). """ self.k4abt.k4abt_frame_reference(self.body_frame_handle) def get_num_bodies(self): """Get the number of people from the k4abt_frame_t Parameters: k4abt_frame_t* body_frame_handle: Handle to a body frame object returned by k4abt_tracker_pop_result function. Returns: uint32_t number_of_bodies: Returns the number of detected bodies. 0 if the function fails. Remarks: Called when the user has received a body frame handle and wants to access the data contained in it. """ return self.k4abt.k4abt_frame_get_num_bodies(self.body_frame_handle) def get_body_skeleton(self, index=0): """Get the joint information for a particular person index from the k4abt_frame_t Parameters: k4abt_frame_t* body_frame_handle: Handle to a body frame object returned by k4abt_tracker_pop_result function. uint32_t index: The index of the body of which the joint information is queried. Returns: k4abt_skeleton_t* skeleton: If successful this contains the body skeleton information. Remarks: Called when the user has received a body frame handle and wants to access the data contained in it. """ skeleton = _k4abt.k4abt_skeleton_t() _k4abt.VERIFY(self.k4abt.k4abt_frame_get_body_skeleton(self.body_frame_handle, index, skeleton), "Body tracker get body skeleton failed!") return skeleton def get_body_id(self, index=0): """Get the joint information for a particular person index from the k4abt_frame_t Parameters: k4abt_frame_t* body_frame_handle: Handle to a body frame object returned by k4abt_tracker_pop_result function. uint32_t index: The index of the body of which the body id information is queried. Returns: uint32_t body_id: Returns the body id. All failures will return K4ABT_INVALID_BODY_ID. Remarks: Called when the user has received a body frame handle and wants to access the id of the body given a particular index. """ return self.k4abt.k4abt_frame_get_body_id(self.body_frame_handle, index) def get_device_timestamp_usec(self): """ Get the body frame's device timestamp in microseconds Parameters: k4abt_frame_t* body_frame_handle: Handle to a body frame object returned by k4abt_tracker_pop_result function. Returns: uint64_t timestamp: Returns the timestamp of the body frame. If the body_frame_handle is invalid this function will return 0. Remarks: Called when the user has received a body frame handle and wants to access the data contained in it. """ return self.k4abt.k4abt_frame_get_device_timestamp_usec(self.body_frame_handle) def get_body_index_map(self): """ Get the body index map from k4abt_frame_t Parameters: k4abt_frame_t* body_frame_handle: Handle to a body frame object returned by k4abt_tracker_pop_result function. Returns: k4a_image_t segmented_body_img: Call this function to access the body index map image. Remarks: Body Index map is the body instance segmentation map. Each pixel maps to the corresponding pixel in the depth image or the ir image. The value for each pixel represents which body the pixel belongs to. It can be either background (value K4ABT_BODY_INDEX_MAP_BACKGROUND) or the index of a detected k4abt_body_t. """ self.segmented_body_img = self.k4abt.k4abt_frame_get_body_index_map(self.body_frame_handle) def get_frame_capture(self): """ Get the original capture that is used to calculate the k4abt_frame_t Parameters: k4abt_frame_t* body_frame_handle: Handle to a body frame object returned by k4abt_tracker_pop_result function. Returns: k4a_capture_t capture_handle: Call this function to access the original k4a_capture_t Remarks: Called when the user has received a body frame handle and wants to access the data contained in it. """ self.capture_handle = self.k4abt.k4abt_frame_get_capture(self.body_frame_handle)
[ "zhang_xifan@hotmail.com" ]
zhang_xifan@hotmail.com
21c57b8d9e08688743c5c1041150fe8db8ecf92e
38e0a6aa9df9c968135b348845abfa489cda4031
/dahe/dahe/middlewares.py
d4803604e76450e606ef24d894c512a6380eb77a
[]
no_license
AReallyMan/everySpiders
bb923de508bd986bcf158728d17638c4ce608db8
19419ae5097a522ed0c88e9ab63aa62419c25b44
refs/heads/master
2022-09-20T02:18:06.205480
2020-06-03T06:33:47
2020-06-03T06:33:47
263,788,915
0
0
null
null
null
null
UTF-8
Python
false
false
3,593
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class DaheSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy acts as if the spider middleware does not modify the # passed objects. @classmethod def from_crawler(cls, crawler): # This method is used by Scrapy to create your spiders. s = cls() crawler.signals.connect(s.spider_opened, signal=signals.spider_opened) return s def process_spider_input(self, response, spider): # Called for each response that goes through the spider # middleware and into the spider. # Should return None or raise an exception. return None def process_spider_output(self, response, result, spider): # Called with the results returned from the Spider, after # it has processed the response. # Must return an iterable of Request, dict or Item objects. for i in result: yield i def process_spider_exception(self, response, exception, spider): # Called when a spider or process_spider_input() method # (from other spider middleware) raises an exception. # Should return either None or an iterable of Request, dict # or Item objects. pass def process_start_requests(self, start_requests, spider): # Called with the start requests of the spider, and works # similarly to the process_spider_output() method, except # that it doesn’t have a response associated. # Must return only requests (not items). for r in start_requests: yield r def spider_opened(self, spider): spider.logger.info('Spider opened: %s' % spider.name) class DaheDownloaderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy acts as if the downloader middleware does not modify the # passed objects. @classmethod def from_crawler(cls, crawler): # This method is used by Scrapy to create your spiders. s = cls() crawler.signals.connect(s.spider_opened, signal=signals.spider_opened) return s def process_request(self, request, spider): # Called for each request that goes through the downloader # middleware. # Must either: # - return None: continue processing this request # - or return a Response object # - or return a Request object # - or raise IgnoreRequest: process_exception() methods of # installed downloader middleware will be called return None def process_response(self, request, response, spider): # Called with the response returned from the downloader. # Must either; # - return a Response object # - return a Request object # - or raise IgnoreRequest return response def process_exception(self, request, exception, spider): # Called when a download handler or a process_request() # (from other downloader middleware) raises an exception. # Must either: # - return None: continue processing this exception # - return a Response object: stops process_exception() chain # - return a Request object: stops process_exception() chain pass def spider_opened(self, spider): spider.logger.info('Spider opened: %s' % spider.name)
[ "969114624@qq.com" ]
969114624@qq.com
0d880c8d6c03715caebbcd2ea79b18124a9357d5
fcccee7f76ab557e562e748a5fc43cd7c31d2bf1
/kidhaa.py
d22a8a1e658fc3ddce676f57a9069d6f07e67f1b
[]
no_license
shillbie/s
ada9c084316160c1fd1734deaf104cfed7b91506
20fdc8be5eb13d2571b6d1cb101ac62058051bb3
refs/heads/master
2021-09-04T05:07:43.194204
2018-01-16T06:17:43
2018-01-16T06:17:43
114,781,765
0
0
null
null
null
null
UTF-8
Python
false
false
180,638
py
# -*- coding: utf-8 -*- import LINETCR from LINETCR.lib.curve.ttypes import * from datetime import datetime import time, random, sys, ast, re, os, io, json, subprocess, threading, string, codecs, requests, ctypes, urllib, urllib2, urllib3, wikipedia, tempfile from bs4 import BeautifulSoup from urllib import urlopen import requests from io import StringIO from threading import Thread from gtts import gTTS from googletrans import Translator #JANGAN LUPA => sudo pip install bs4 => sudo pip install BeautifulSoup => sudo pip install urllib kr = LINETCR.LINE() #kr.login(qr=True) kr.login(token='Eo9HzOpxM1EeMhicxpl0.F4TGaftJCWVH+qiLum3X4a.zElChnAWpSVKNvUT4dbLALO4QdX4PXO0YtbDuH4S+7k=')#chery kr.loginResult() print "╔═════════════════════════\n║╔════════════════════════\n║╠[•] saya sendiri BERHASIL LOGIN\n║╚════════════════════════\n╚═════════════════════════" reload(sys) sys.setdefaultencoding('utf-8') helpmsg =""" ╔═════════════ ║ S̺͆T̺͆A̺͆R ╠═════════════ ║ Owner : saya sendiri ║ by RH ⭐👈 »»» http://line.me/ti/pVxtJPseezk ╠═════════════ ║╔════════════ ║╠[•]google (text) ║╠[•]playstore (text) ║╠[•]instagram (username) ║╠[•]wikipedia (text) ║╠[•]idline (text) ║╠[•]time ║╠[•]image (text) ║╠[•]runtime ║╠[•]Restart ║╠[•]lirik (text) ║╠[•]nah (mention) ║╠[•]cctv on/off (Lurk) ║╠[•]toong (Lurker) ║╠[•]protect on/off ║╠[•]qr on/off ║╠[•]invite on/off ║╠[•]Cancel on/off ║╠[•]Simisimi:on/off ║╠[•]Read on/off ║╠[•]Getinfo @ ║╠[•]Getcontact @ ║╠[•]Cium @ ║╠[•]speed ║╠[•]Friendlist ║╠[•]id@en ║╠[•]en@id ║╠[•]id@jp ║╠[•]keybot ║╚════════════ ╚═════════════""" keymsg =""" ╔═════════════ ║ S̺͆T̺͆A̺͆RA̺͆R͆✰ ╠═════════════ ║ Owner : saya sendiri ║ by RH ⭐👈 »»» http://line.me/ti/pVxtJPseezk ╠═════════════ ║╔════════════ ║╠[•]keypro ║╠[•]keyself ║╠[•]keygrup ║╠[•]keyset ║╠[•]keytran ║╠[•]mode on/off ║╚════════════ ╚═════════════""" helppro =""" ╔═════════════ ║ S̺͆T̺͆A̺͆RA̺͆R͆✰ ╠═════════════ ║ Owner : saya sendiri ║ by RH ⭐👈 »»» http://line.me/ti/pVxtJPseezk ╠═════════════ ║╔════════════ ║╠[•]mode on/off ║╠[•]protect on/off ║╠[•]qr on/off ║╠[•]invite on/off ║╠[•]cancel on/off ║╚════════════ ╚═════════════""" helpself =""" ╔═════════════ ║ S̺͆T̺͆A̺͆RA̺͆R͆✰ ╠═════════════ ║ Owner : saya sendiri ║ by RH ⭐👈 »»» http://line.me/ti/pVxtJPseezk ╠═════════════ ║╔════════════ ║╠[•]Me ║╠[•]Myname: ║╠[•]Mybio: ║╠[•]Mypict ║╠[•]Mycover ║╠[•]My copy @ ║╠[•]My backup ║╠[•]Getgroup image ║╠[•]Getmid @ ║╠[•]Getprofile @ ║╠[•]Getinfo @ ║╠[•]Getname @ ║╠[•]Getbio @ ║╠[•]Getpict @ ║╠[•]Getcover @ ║╠[•]nah (Mention) ║╠[•]cctv on/off (Lurking) ║╠[•]intip/toong (Lurkers) ║╠[•]Micadd @ ║╠[•]Micdel @ ║╠[•]Mimic on/off ║╠[•]Miclist ║╚════════════ ╚═════════════""" helpset =""" ╔═════════════ ║ S̺͆T̺͆A̺͆RA̺͆R͆✰ ╠═════════════ ║ Owner : saya sendiri ║ by RH ⭐👈 »»» http://line.me/ti/pVxtJPseezk ╠═════════════ ║╔════════════ ║╠[•]contact on/off ║╠[•]autojoin on/off ║╠[•]auto leave on/off ║╠[•]autoadd on/off ║╠[•]like friend ║╠[•]link on ║╠[•]respon on/off ║╠[•]read on/off ║╠[•]simisimi on/off ║╠[•]Sambut on/off ║╠[•]Pergi on/off ║╠[•]Respontag on/off ║╠[•]Kicktag on/off ║╚════════════ ╚═════════════""" helpgrup =""" ╔═════════════ ║ S̺͆T̺͆A̺͆RA̺͆R͆✰ ╠═════════════ ║ Owner : saya sendiri ║ by RH ⭐👈 »»» http://line.me/ti/pVxtJPseezk ╠═════════════ ║╔════════════ ║╠[•]Link on ║╠[•]Url ║╠[•]Cancel ║╠[•]Gcreator ║╠[•]Kick @ ║╠[•]Cium @ ║╠[•]Gname: ║╠[•]Gbroadcast: ║╠[•]Cbroadcast: ║╠[•]Infogrup ║╠[•]Gruplist ║╠[•]Friendlist ║╠[•]Blacklist ║╠[•]Ban @ ║╠[•]Unban @ ║╠[•]Clearban ║╠[•]Banlist ║╠[•]Contact ban ║╠[•]Midban ║╚════════════ ╚═════════════""" helptranslate =""" ╔═════════════ ║ S̺͆T̺͆A̺͆RA̺͆R͆✰ ╠═════════════ ║ Owner : saya sendiri ║ by RH ⭐👈 »»» http://line.me/ti/pVxtJPseezk ╠═════════════ ║╔════════════ ║╠[•]Id@en ║╠[•]En@id ║╠[•]Id@jp ║╠[•]Jp@id ║╠[•]Id@th ║╠[•]Th@id ║╠[•]Id@ar ║╠[•]Ar@id ║╠[•]Id@ko ║╠[•]Ko@id ║╠[•]Say-id ║╠[•]Say-en ║╠[•]Say-jp ║╚════════════ ╚═════════════""" KAC=[kr] mid = kr.getProfile().mid Bots=[mid] owner=["u7f8b600054e3730be1fd022550cdf1e0",mid] admin=["u7f8b600054e3730be1fd022550cdf1e0",mid] baby=["u7f8b600054e3730be1fd022550cdf1e0"]#chery/barby/ranita wait = { 'likeOn':False, 'alwayRead':False, 'detectMention':True, 'kickMention':False, 'steal':True, 'pap':{}, 'invite':{}, 'spam':{}, 'contact':False, 'autoJoin':True, 'autoCancel':{"on":False,"members":5}, 'leaveRoom':True, 'timeline':False, 'autoAdd':True, 'message':"""Thx for add""", "lang":"JP", "comment":"👉ąµţ๏ℓɨЌ€ By C-A_Bot😊\n\n☆º°˚˚S̺͆T̺͆A̺͆RA̺͆R͆✰º°˚˚☆(^ω^)\nąµţ๏ℓɨЌ€ by saya sendiri ⭐👈 »»» http://line.me/ti/pVxtJPseezk/p/~saya sendiristhea «««", "commentOn":False, "commentBlack":{}, "wblack":False, "dblack":False, "clock":False, "cNames":"", "cNames":"", "Wc":False, "Lv":False, "MENTION":True, "blacklist":{}, "wblacklist":False, "dblacklist":False, "protect":False, "cancelprotect":False, "inviteprotect":False, "linkprotect":False, } wait2 = { 'readPoint':{}, 'readMember':{}, 'setTime':{}, 'ROM':{} } mimic = { "copy":False, "copy2":False, "status":False, "target":{} } settings = { "simiSimi":{} } setTime = {} setTime = wait2['setTime'] mulai = time.time() contact = kr.getProfile() mybackup = kr.getProfile() mybackup.displayName = contact.displayName mybackup.statusMessage = contact.statusMessage mybackup.pictureStatus = contact.pictureStatus contact = kr.getProfile() backup = kr.getProfile() backup.displayName = contact.displayName backup.statusMessage = contact.statusMessage backup.pictureStatus = contact.pictureStatus contact = kr.getProfile() profile = kr.getProfile() profile.displayName = contact.displayName profile.statusMessage = contact.statusMessage profile.pictureStatus = contact.pictureStatus mulai = time.time() agent = {'User-Agent' : "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"} def translate(to_translate, to_language="auto", language="auto"): bahasa_awal = "auto" bahasa_tujuan = to_language kata = to_translate url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] return result def download_page(url): version = (3,0) cur_version = sys.version_info if cur_version >= version: #If the Current Version of Python is 3.0 or above import urllib,request #urllib library for Extracting web pages try: headers = {} headers['User-Agent'] = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" req = urllib,request.Request(url, headers = headers) resp = urllib,request.urlopen(req) respData = str(resp.read()) return respData except Exception as e: print(str(e)) else: #If the Current Version of Python is 2.x import urllib2 try: headers = {} headers['User-Agent'] = "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17" req = urllib2.Request(url, headers = headers) response = urllib2.urlopen(req) page = response.read() return page except: return"Page Not found" #Finding 'Next Image' from the given raw page def _images_get_next_item(s): start_line = s.find('rg_di') if start_line == -1: #If no links are found then give an error! end_quote = 0 link = "no_links" return link, end_quote else: start_line = s.find('"class="rg_meta"') start_content = s.find('"ou"',start_line+90) end_content = s.find(',"ow"',start_content-90) content_raw = str(s[start_content+6:end_content-1]) return content_raw, end_content #Getting all links with the help of '_images_get_next_image' def _images_get_all_items(page): items = [] while True: item, end_content = _images_get_next_item(page) if item == "no_links": break else: items.append(item) #Append all the links in the list named 'Links' time.sleep(0.1) #Timer could be used to slow down the request for image downloads page = page[end_content:] return items #def autolike(): # for zx in range(0,100): # hasil = kr.activity(limit=100) # if hasil['result']['posts'][zx]['postInfo']['liked'] == False: # try: # kr.like(hasil['result']['posts'][zx]['userInfo']['mid'],hasil['result']['posts'][zx]['postInfo']['postId'],likeType=1002) # kr.comment(hasil['result']['posts'][zx]['userInfo']['mid'],hasil['result']['posts'][zx]['postInfo']['postId'],"Auto Like By TobyBots!!\nID LINE : line://ti/p/~tobyg74\nIG : instagram.com/tobygaming74") # print "DiLike" # except: # pass # else: # print "Sudah DiLike" # time.sleep(500) #thread2 = threading.Thread(target=autolike) #thread2.daemon = True #thread2.start() #def autolike(): # for zx in range(0,100): # hasil = kr.activity(limit=100) # if hasil['result']['posts'][zx]['postInfo']['liked'] == False: # try: # kr.like(hasil['result']['posts'][zx]['userInfo']['mid'],hasil['result']['posts'][zx]['postInfo']['postId'],likeType=1002) # kr.comment(hasil['result']['posts'][zx]['userInfo']['mid'],hasil['result']['posts'][zx]['postInfo']['postId'],"👉ąµţ๏ℓɨЌ€ ByS̺͆T̺͆A̺͆RA̺͆R͆✰😊\n\n☆º°˚˚☆ ̺͆T̺͆A̺͆R͆✰°˚˚☆(^ω^)\nąµţ๏ℓɨЌ€ by saya sendiri ⭐👈 »»» http://line.me/ti/pVxtJPseezk/p/GkwfNjoPDH «««") # print "Like" # except: # pass # else: # print "Already Liked" #time.sleep(500) #thread2 = threading.Thread(target=autolike) #thread2.daemon = True #thread2.start() def yt(query): with requests.session() as s: isi = [] if query == "": query = "S1B tanysyz" s.headers['user-agent'] = 'Mozilla/5.0' url = 'http://www.youtube.com/results' params = {'search_query': query} r = s.get(url, params=params) soup = BeautifulSoup(r.content, 'html5lib') for a in soup.select('.yt-lockup-title > a[title]'): if '&list=' not in a['href']: if 'watch?v' in a['href']: b = a['href'].replace('watch?v=', '') isi += ['youtu.be' + b] return isi def waktu(secs): mins, secs = divmod(secs,60) hours, mins = divmod(mins,60) return '%02d Jam %02d Menit %02d Detik' % (hours, mins, secs) def upload_tempimage(client): ''' Upload a picture of a kitten. We don't ship one, so get creative! ''' config = { 'album': album, 'name': 'bot auto upload', 'title': 'bot auto upload', 'description': 'bot auto upload' } print("Uploading image... ") image = client.upload_from_path(image_path, config=config, anon=False) print("Done") print() return image def sendMessage(to, text, contentMetadata={}, contentType=0): mes = Message() mes.to, mes.from_ = to, profile.mid mes.text = text mes.contentType, mes.contentMetadata = contentType, contentMetadata if to not in messageReq: messageReq[to] = -1 messageReq[to] += 1 def sendMessage(to, text, contentMetadata={}, contentType=0): mes = Message() mes.to, mes.from_ = to, profile.mid mes.text = text mes.contentType, mes.contentMetadata = contentType, contentMetadata if to not in messageReq: messageReq[to] = -1 messageReq[to] += 1 def sendImage(self, to_, path): M = Message(to=to_,contentType = 1) M.contentMetadata = None M.contentPreview = None M_id = self.Talk.client.sendMessage(0,M).id files = { 'file': open(path, 'rb'), } params = { 'name': 'media', 'oid': M_id, 'size': len(open(path, 'rb').read()), 'type': 'image', 'ver': '1.0', } data = { 'params': json.dumps(params) } r = self.post_content('https://os.line.naver.jp/talk/m/upload.nhn', data=data, files=files) if r.status_code != 201: raise Exception('Upload image failure.') return True def sendImageWithURL(self, to_, url): path = '%s/pythonLine-%i.data' % (tempfile.gettempdir(), randint(0, 9)) r = requests.get(url, stream=True) if r.status_code == 200: with open(path, 'w') as f: shutil.copyfileobj(r.raw, f) else: raise Exception('Download image failure.') try: self.sendImage(to_, path) except Exception as e: raise e def restart_program(): python = sys.executable os.execl(python, python, * sys.argv) def post_content(self, urls, data=None, files=None): return self._session.post(urls, headers=self._headers, data=data, files=files) def sendMessage(to, text, contentMetadata={}, contentType=0): mes = Message() mes.to, mes.from_ = to, profile.mid mes.text = text mes.contentType, mes.contentMetadata = contentType, contentMetadata if to not in messageReq: messageReq[to] = -1 messageReq[to] += 1 def NOTIFIED_READ_MESSAGE(op): try: if op.param1 in wait2['readPoint']: Name = kr.getContact(op.param2).displayName if Name in wait2['readMember'][op.param1]: pass else: wait2['readMember'][op.param1] += "\n9§9" + Name wait2['ROM'][op.param1][op.param2] = "9§9" + Name else: pass except: pass def sendAudio(self, to_, path): M = Message(to=to_, text=None, contentType = 3) M_id = self.Talk.client.sendMessage(0,M).id files = { 'file': open(path, 'rb'), } params = { 'name': 'media', 'oid': M_id, 'size': len(open(path, 'rb').read()), 'type': 'audio', 'ver': '1.0', } data = { 'params': json.dumps(params) } r = self.post_content('https://os.line.naver.jp/talk/m/upload.nhn', data=data, files=files) print r if r.status_code != 201: raise Exception('Upload audio failure.') def sendAudioWithURL(self, to_, url): path = '%s/pythonLine-%i.data' % (tempfile.gettempdir(), randint(0, 9)) r = requests.get(url, stream=True) if r.status_code == 200: with open(path, 'w') as f: shutil.copyfileobj(r.raw, f) else: raise Exception('Download audio failure.') try: self.sendAudio(to_, path) except Exception as e: raise e def sendVoice(self, to_, path): M = Message(to=to_, text=None, contentType = 3) M.contentPreview = None M_id = self._client.sendMessage(0,M).id files = { 'file': open(path, 'rb'), } params = { 'name': 'voice_message', 'oid': M_id, 'size': len(open(path, 'rb').read()), 'type': 'audio', 'ver': '1.0', } data = { 'params': json.dumps(params) } r = self.post_content('https://os.line.naver.jp/talk/m/upload.nhn', data=data, files=files) if r.status_code != 201: raise Exception('Upload voice failure.') return True def mention(to,nama): aa = "" bb = "" strt = int(12) akh = int(12) nm = nama #print nm for mm in nm: akh = akh + 2 aa += """{"S":"""+json.dumps(str(strt))+""","E":"""+json.dumps(str(akh))+""","M":"""+json.dumps(mm)+"},""" strt = strt + 6 akh = akh + 4 bb += "► @c \n" aa = (aa[:int(len(aa)-1)]) msg = Message() msg.to = to msg.text = "「Mention」\n"+bb msg.contentMetadata = {'MENTION':'{"MENTIONEES":['+aa+']}','EMTVER':'4'} #print msg try: kr.sendMessage(msg) except Exception as error: print error def removeAllMessages(self, lastMessageId): return self._client.removeAllMessages(0, lastMessageId) def summon(to, nama): aa = "" bb = "" strt = int(14) akh = int(14) nm = nama for mm in nm: akh = akh + 2 aa += """{"S":"""+json.dumps(str(strt))+""","E":"""+json.dumps(str(akh))+""","M":"""+json.dumps(mm)+"},""" strt = strt + 6 akh = akh + 4 bb += "\xe2\x95\xa0 @x \n" aa = (aa[:int(len(aa)-1)]) msg = Message() msg.to = to msg.text = "\xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\n"+bb+"\xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90" msg.contentMetadata ={"MENTION":'{"MENTIONEES":['+aa+']}','EMTVER':'4'} print "[Command] Tag All" try: kr.sendMessage(msg) except Exception as error: print error def cms(string, commands): #/XXX, >XXX, ;XXX, ^XXX, %XXX, $XXX... tex = ["+","@","/",">",";","^","%","$","^","サテラ:","サテラ:","サテラ:","サテラ:"] for texX in tex: for command in commands: if string ==command: return True return False def sendMessage(to, text, contentMetadata={}, contentType=0): mes = Message() mes.to, mes.from_ = to, profile.mid mes.text = text mes.contentType, mes.contentMetadata = contentType, contentMetadata if to not in messageReq: messageReq[to] = -1 messageReq[to] += 1 def bot(op): try: if op.type == 0: return if op.type == 5: if wait['autoAdd'] == True: kr.findAndAddContactsByMid(op.param1) if (wait['message'] in [""," ","\n",None]): pass else: kr.sendText(op.param1,str(wait['message'])) if op.type == 26: msg = op.message if msg.from_ in mimic["target"] and mimic["status"] == True and mimic["target"][msg.from_] == True: text = msg.text if text is not None: kr.sendText(msg.to,text) if op.type == 13: print op.param3 if op.param3 in mid: if op.param2 in admin: kr.acceptGroupInvitation(op.param1) if op.type == 13: if mid in op.param3: if wait['autoJoin'] == True: if op.param2 in Bots or admin: kr.acceptGroupInvitation(op.param1) else: kr.rejectGroupInvitation(op.param1) else: print "autoJoin is Off" if op.type == 19: if op.param3 in admin: kr.kickoutFromGroup(op.param1,[op.param2]) kr.inviteIntoGroup(op.param1,admin) kr.inviteIntoGroup(op.param1,[op.param3]) else: pass if op.type == 19: if op.param3 in baby: kr.kickoutFromGroup(op.param1,[op.param2]) kr.inviteIntoGroup(op.param1,baby) kr.inviteIntoGroup(op.param1,[op.param3]) else: pass if op.type == 19: if op.param3 in baby: if op.param2 in baby: kr.inviteIntoGroup(op.param1,baby) kr.inviteIntoGroup(op.param1,[op.param3]) if op.type == 19: if mid in op.param3: wait["blacklist"][op.param2] = True if op.type == 22: if wait['leaveRoom'] == True: kr.leaveRoom(op.param1) if op.type == 24: if wait['leaveRoom'] == True: kr.leaveRoom(op.param1) if op.type == 26: msg = op.message if msg.toType == 0: msg.to = msg.from_ if msg.from_ == mid: if "join:" in msg.text: list_ = msg.text.split(":") try: kr.acceptGroupInvitationByTicket(list_[1],list_[2]) G = kr.getGroup(list_[1]) G.preventJoinByTicket = True kr.updateGroup(G) except: kr.sendText(msg.to,"error") if msg.toType == 1: if wait['leaveRoom'] == True: kr.leaveRoom(msg.to) if msg.contentType == 16: url = msg.contentMetadata["postEndUrl"] kr.like(url[25:58], url[66:], likeType=1001) if op.type == 26: msg = op.message if msg.from_ in mimic["target"] and mimic["status"] == True and mimic["target"][msg.from_] == True: text = msg.text if text is not None: kr.sendText(msg.to,text) if op.type == 26: msg = op.message if msg.to in settings["simiSimi"]: if settings["simiSimi"][msg.to] == True: if msg.text is not None: text = msg.text r = requests.get("http://api.ntcorp.us/chatbot/v1/?text=" + text.replace(" ","+") + "&key=beta1.nt") data = r.text data = json.loads(data) if data["status"] == 200: if data['result']['result'] == 100: kr.sendText(msg.to, "[From Simi]\n" + data['result']['response'].encode('utf-8')) if "MENTION" in msg.contentMetadata.keys() != None: if wait['detectMention'] == True: contact = kr.getContact(msg.from_) cName = contact.displayName balas = ["Don't Tag Me! iam Bussy!, ",cName + "Ada perlu apa, ?",cName + " pc aja klo urgent! sedang sibuk,", "kenapa, ", cName + " kangen?","kangen bilang gak usah tag tag, " + cName, "knp?, " + cName, "apasi?, " + cName + "?", "pulang gih, " + cName + "?","aya naon, ?" + cName + "Tersangkut -_-"] ret_ = "." + random.choice(balas) name = re.findall(r'@(\w+)', msg.text) mention = ast.literal_eval(msg.contentMetadata["MENTION"]) mentionees = mention['MENTIONEES'] for mention in mentionees: if mention['M'] in Bots: kr.sendText(msg.to,ret_) break if "MENTION" in msg.contentMetadata.keys() != None: if wait['kickMention'] == True: contact = kr.getContact(msg.from_) cName = contact.displayName balas = ["Dont Tag Me!! Im Busy, ",cName + " Ngapain Ngetag?, ",cName + " Nggak Usah Tag-Tag! Kalo Penting Langsung Pc Aja, ", "-_-, ","saya sendiri lagi off, ", cName + " Kenapa Tag saya?, ","SPAM PC aja, " + cName, "Jangan Suka Tag gua, " + cName, "Kamu siapa, " + cName + "?", "Ada Perlu apa, " + cName + "?","Tag doang tidak perlu., "] ret_ = "[Auto Respond] " + random.choice(balas) name = re.findall(r'@(\w+)', msg.text) mention = ast.literal_eval(msg.contentMetadata["MENTION"]) mentionees = mention['MENTIONEES'] for mention in mentionees: if mention['M'] in Bots: kr.sendText(msg.to,ret_) kr.kickoutFromGroup(msg.to,[msg.from_]) break if msg.contentType == 13: if wait['invite'] == True: _name = msg.contentMetadata["displayName"] invite = msg.contentMetadata["mid"] groups = kr.getGroup(msg.to) pending = groups.invitee targets = [] for s in groups.members: if _name in s.displayName: kr.sendText(msg.to, _name + " Berada DiGrup Ini") else: targets.append(invite) if targets == []: pass else: for target in targets: try: kr.findAndAddContactsByMid(target) kr.inviteIntoGroup(msg.to,[target]) kr.sendText(msg.to,"Invite " + _name) wait['invite'] = False break except: kr.sendText(msg.to,"Error") wait['invite'] = False break #if msg.contentType == 13: # if wait['steal'] == True: # _name = msg.contentMetadata["displayName"] # copy = msg.contentMetadata["mid"] # groups = kr.getGroup(msg.to) # pending = groups.invitee # targets = [] # for s in groups.members: # if _name in s.displayName: # print "[Target] Stealed" # break # else: # targets.append(copy) # if targets == []: # pass # else: # for target in targets: # try: # kr.findAndAddContactsByMid(target) # contact = kr.getContact(target) # cu = kr.channel.getCover(target) # path = str(cu) # image = "http://dl.profile.line-cdn.net/" + contact.pictureStatus # kr.sendText(msg.to,"Nama :\n" + contact.displayName + "\n\nMid :\n" + msg.contentMetadata["mid"] + "\n\nBio :\n" + contact.statusMessage) # kr.sendText(msg.to,"Profile Picture " + contact.displayName) # kr.sendImageWithURL(msg.to,image) # kr.sendText(msg.to,"Cover " + contact.displayName) # kr.sendImageWithURL(msg.to,path) # wait['steal'] = False # break # except: # pass if wait['alwayRead'] == True: if msg.toType == 0: kr.sendChatChecked(msg.from_,msg.id) else: kr.sendChatChecked(msg.to,msg.id) if op.type == 25: msg = op.message if msg.contentType == 13: if wait["wblack"] == True: if msg.contentMetadata["mid"] in wait["commentBlack"]: kr.sendText(msg.to,"In Blacklist") wait["wblack"] = False else: wait["commentBlack"][msg.contentMetadata["mid"]] = True wait["wblack"] = False kr.sendText(msg.to,"Nothing") elif wait["dblack"] == True: if msg.contentMetadata["mid"] in wait["commentBlack"]: del wait["commentBlack"][msg.contentMetadata["mid"]] kr.sendText(msg.to,"Done") wait["dblack"] = False else: wait["dblack"] = False kr.sendText(msg.to,"Not in Blacklist") elif wait["wblacklist"] == True: if msg.contentMetadata["mid"] in wait["blacklist"]: kr.sendText(msg.to,"In Blacklist") wait["wblacklist"] = False else: wait["blacklist"][msg.contentMetadata["mid"]] = True wait["wblacklist"] = False kr.sendText(msg.to,"Done") elif wait["dblacklist"] == True: if msg.contentMetadata["mid"] in wait["blacklist"]: del wait["blacklist"][msg.contentMetadata["mid"]] kr.sendText(msg.to,"Done") wait["dblacklist"] = False else: wait["dblacklist"] = False kr.sendText(msg.to,"Done") elif wait['contact'] == True: msg.contentType = 0 kr.sendText(msg.to,msg.contentMetadata["mid"]) if 'displayName' in msg.contentMetadata: contact = kr.getContact(msg.contentMetadata["mid"]) try: cu = kr.channel.getCover(msg.contentMetadata["mid"]) except: cu = "" kr.sendText(msg.to,"[displayName]:\n" + msg.contentMetadata["displayName"] + "\n[mid]:\n" + msg.contentMetadata["mid"] + "\n[statusMessage]:\n" + contact.statusMessage + "\n[pictureStatus]:\nhttp://dl.profile.line-cdn.net/" + contact.pictureStatus + "\n[coverURL]:\n" + str(cu)) else: contact = kr.getContact(msg.contentMetadata["mid"]) try: cu = kr.channel.getCover(msg.contentMetadata["mid"]) except: cu = "" kr.sendText(msg.to,"[displayName]:\n" + contact.displayName + "\n[mid]:\n" + msg.contentMetadata["mid"] + "\n[statusMessage]:\n" + contact.statusMessage + "\n[pictureStatus]:\nhttp://dl.profile.line-cdn.net/" + contact.pictureStatus + "\n[coverURL]:\n" + str(cu)) elif msg.contentType == 16: if wait['timeline'] == True: msg.contentType = 0 if wait["lang"] == "JP": msg.text = "menempatkan URL\n" + msg.contentMetadata["postEndUrl"] else: msg.text = msg.contentMetadata["postEndUrl"] kr.sendText(msg.to,msg.text) elif msg.text is None: return elif msg.text.lower() == 'help': if wait["lang"] == "JP": kr.sendText(msg.to,helpmsg) else: kr.sendText(msg.to,helpmsg) elif msg.text.lower() == 'keybot': if wait["lang"] == "JP": kr.sendText(msg.to,keymsg) else: kr.sendText(msg.to,keymsg) elif msg.text.lower() == 'keypro': if wait["lang"] == "JP": kr.sendText(msg.to,helppro) else: kr.sendText(msg.to,helppro) elif msg.text.lower() == 'keyself': if wait["lang"] == "JP": kr.sendText(msg.to,helpself) else: kr.sendText(msg.to,helpself) elif msg.text.lower() == 'keygrup': if wait["lang"] == "JP": kr.sendText(msg.to,helpgrup) else: kr.sendText(msg.to,helpgrup) elif msg.text.lower() == 'keyset': if wait["lang"] == "JP": kr.sendText(msg.to,helpset) else: kr.sendText(msg.to,helpset) elif msg.text.lower() == 'keytran': if wait["lang"] == "JP": kr.sendText(msg.to,helptranslate) else: kr.sendText(msg.to,helptranslate) elif msg.text in ["Sp","Speed","speed"]: start = time.time() kr.sendText(msg.to, "[•]Proses.....") elapsed_time = time.time() - start kr.sendText(msg.to, "%sseconds" % (elapsed_time)) elif msg.text.lower() == 'crash': msg.contentType = 13 msg.contentMetadata = {'mid': "u1f41296217e740650e0448b96851a3e2',"} kr.sendMessage(msg) kr.sendMessage(msg) elif msg.text.lower() == 'me': msg.contentType = 13 msg.contentMetadata = {'mid': mid} kr.sendMessage(msg) elif ".fb" in msg.text: a = msg.text.replace(".fb","") b = urllib.quote(a) kr.sendText(msg.to,"「 Mencari 」\n" "Type:Mencari Info\nStatus: Proses") kr.sendText(msg.to, "https://www.facebook.com" + b) kr.sendText(msg.to,"「 Mencari 」\n" "Type:Mencari Info\nStatus: Sukses") #======================== FOR COMMAND MODE ON STARTING ==========================# elif msg.text.lower() == 'mode on': if wait["protect"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Protecion Already On") else: kr.sendText(msg.to,"Protecion Already On") else: wait["protect"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Protecion Already On") else: kr.sendText(msg.to,"Protecion Already On") if wait["linkprotect"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Qr already On") else: kr.sendText(msg.to,"Protection Qr already On") else: wait["linkprotect"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Qr already On") else: kr.sendText(msg.to,"Protection Qr already On") if wait["inviteprotect"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Invite already On") else: kr.sendText(msg.to,"Protection Invite already On") else: wait["inviteprotect"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"ρяσтє¢тισи ιиνιтє ѕєт тσ σи") else: kr.sendText(msg.to,"ρяσтє¢тισи ιиνιтє αℓяєα∂у σи") if wait["cancelprotect"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"¢αи¢єℓ ρяσтє¢тισи ѕєт тσ σи") else: kr.sendText(msg.to,"¢αи¢єℓ ρяσтє¢тισи αℓяєα∂у σи") else: wait["cancelprotect"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"¢αи¢єℓ ρяσтє¢тισи ѕєт тσ σи") else: kr.sendText(msg.to,"¢αи¢єℓ ρяσтє¢тισи αℓяєα∂у σи") #======================== FOR COMMAND MODE OFF STARTING ==========================# elif msg.text.lower() == 'mode off': if wait["protect"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection already Off") else: kr.sendText(msg.to,"Protection already Off") else: wait["protect"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"ρяσтє¢тισи ѕєт тσ σff") else: kr.sendText(msg.to,"ρяσтє¢тισи αℓяєα∂у σff") if wait["linkprotect"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Qr already off") else: kr.sendText(msg.to,"Protection Qr already off") else: wait["linkprotect"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Qr already Off") else: kr.sendText(msg.to,"Protection Qr already Off") if wait["inviteprotect"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Invite already Off") else: kr.sendText(msg.to,"Protection Invite already Off") else: wait["inviteprotect"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Invite already Off") else: kr.sendText(msg.to,"Protection Invite already Off") if wait["cancelprotect"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Cancel already Off") else: kr.sendText(msg.to,"Protection Cancel already Off") else: wait["cancelprotect"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Cancel already Off") else: kr.sendText(msg.to,"Protection Cancel already Off") #========================== FOR COMMAND BOT STARTING =============================# elif msg.text.lower() == 'contact on': if wait['contact'] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"ɕσηϯαɕϯ ςεϯ ϯσ ση") else: kr.sendText(msg.to,"ɕσηϯαɕϯ ςεϯ ϯσ ση") else: wait['contact'] = True if wait["lang"] == "JP": kr.sendText(msg.to,"ɕσηϯαɕϯ ςεϯ ϯσ ση") else: kr.sendText(msg.to,"ɕσηϯαɕϯ ςεϯ ϯσ ση") elif msg.text.lower() == 'contact off': if wait['contact'] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"ɕσηϯαɕϯ ςεϯ ϯσ σƒƒ") else: kr.sendText(msg.to,"ɕσηϯαɕϯ αʆɾεαδψ σƒƒ") else: wait['contact'] = False if wait["lang"] == "JP": kr.sendText(msg.to,"ɕσηϯαɕϯ ςεϯ ϯσ σƒƒ") else: kr.sendText(msg.to,"ɕσηϯαɕϯ αʆɾεαδψ σƒƒ") elif msg.text.lower() == 'protect on': if wait["protect"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Protecion Already On") else: kr.sendText(msg.to,"Protecion Already On") else: wait["protect"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Protecion Already On") else: kr.sendText(msg.to,"Protecion Already On") elif msg.text.lower() == 'qr on': if wait["linkprotect"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Qr already On") else: kr.sendText(msg.to,"Protection Qr already On") else: wait["linkprotect"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Qr already On") else: kr.sendText(msg.to,"Protection Qr already On") elif msg.text.lower() == 'invite on': if wait["inviteprotect"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Invite already On") else: kr.sendText(msg.to,"Protection Invite already On") else: wait["inviteprotect"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"ρяσтє¢тισи ιиνιтє ѕєт тσ σи") else: kr.sendText(msg.to,"ρяσтє¢тισи ιиνιтє αℓяєα∂у σи") elif msg.text.lower() == 'cancel on': if wait["cancelprotect"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"¢αи¢єℓ ρяσтє¢тισи ѕєт тσ σи") else: kr.sendText(msg.to,"¢αи¢єℓ ρяσтє¢тισи αℓяєα∂у σи") else: wait["cancelprotect"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"¢αи¢єℓ ρяσтє¢тισи ѕєт тσ σи") else: kr.sendText(msg.to,"¢αи¢єℓ ρяσтє¢тισи αℓяєα∂у σи") elif msg.text.lower() == 'autojoin on': if wait['autoJoin'] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"αυтσʝσιи ѕєт тσ σи") else: kr.sendText(msg.to,"αυтσʝσιи αℓяєα∂у σи") else: wait['autoJoin'] = True if wait["lang"] == "JP": kr.sendText(msg.to,"αυтσʝσιи ѕєт тσ σи") else: kr.sendText(msg.to,"αυтσʝσιи αℓяєα∂у σи") elif msg.text.lower() == 'autojoin off': if wait['autoJoin'] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"αυтσʝσιи ѕєт тσ σff") else: kr.sendText(msg.to,"αυтσʝσιи αℓяєα∂у σff") else: wait['autoJoin'] = False if wait["lang"] == "JP": kr.sendText(msg.to,"αυтσʝσιи ѕєт тσ σff") else: kr.sendText(msg.to,"αυтσʝσιи αℓяєα∂у σff") elif msg.text.lower() == 'protect off': if wait["protect"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection already Off") else: kr.sendText(msg.to,"Protection already Off") else: wait["protect"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"ρяσтє¢тισи ѕєт тσ σff") else: kr.sendText(msg.to,"ρяσтє¢тισи αℓяєα∂у σff") elif msg.text.lower() == 'qr off': if wait["linkprotect"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Qr already off") else: kr.sendText(msg.to,"Protection Qr already off") else: wait["linkprotect"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Qr already Off") else: kr.sendText(msg.to,"Protection Qr already Off") elif msg.text.lower() == 'invit off': if wait["inviteprotect"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Invite already Off") else: kr.sendText(msg.to,"Protection Invite already Off") else: wait["inviteprotect"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Invite already Off") else: kr.sendText(msg.to,"Protection Invite already Off") elif msg.text.lower() == 'cancel off': if wait["cancelprotect"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Cancel already Off") else: kr.sendText(msg.to,"Protection Cancel already Off") else: wait["cancelprotect"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Protection Cancel already Off") else: kr.sendText(msg.to,"Protection Cancel already Off") elif "Grup cancel:" in msg.text: try: strnum = msg.text.replace("Grup cancel:","") if strnum == "off": wait['autoCancel']["on"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Itu off undangan ditolak??\nSilakan kirim dengan menentukan jumlah orang ketika Anda menghidupkan") else: kr.sendText(msg.to,"Off undangan ditolak??Sebutkan jumlah terbuka ketika Anda ingin mengirim") else: num = int(strnum) wait['autoCancel']["on"] = True if wait["lang"] == "JP": kr.sendText(msg.to,strnum + "Kelompok berikut yang diundang akan ditolak secara otomatis") else: kr.sendText(msg.to,strnum + "The team declined to create the following automatic invitation") except: if wait["lang"] == "JP": kr.sendText(msg.to,"Nilai tidak benar") else: kr.sendText(msg.to,"Weird value") elif msg.text.lower() == 'autoleave on': if wait['leaveRoom'] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Auto Leave room set to on") else: kr.sendText(msg.to,"Auto Leave room already on") else: wait['leaveRoom'] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Auto Leave room set to on") else: kr.sendText(msg.to,"Auto Leave room already on") elif msg.text.lower() == 'autoleave off': if wait['leaveRoom'] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Auto Leave room set to off") else: kr.sendText(msg.to,"Auto Leave room already off") else: wait['leaveRoom'] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Auto Leave room set to off") else: kr.sendText(msg.to,"Auto Leave room already off") elif msg.text.lower() == 'share on': if wait['timeline'] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Share set to on") else: kr.sendText(msg.to,"Share already on") else: wait['timeline'] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Share set to on") else: kr.sendText(msg.to,"Share already on") elif msg.text.lower() == 'share off': if wait['timeline'] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Share set to off") else: kr.sendText(msg.to,"Share already off") else: wait['timeline'] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Share set to off") else: kr.sendText(msg.to,"Share already off") elif msg.text.lower() == "status": md = """╔═════════════\n""" if wait['contact'] == True: md+="╠[•]Contact:on [✅]\n" else: md+="╠[•]Contact:off [❌]\n" if wait['autoJoin'] == True: md+="╠[•]Auto Join:on [✅]\n" else: md +="╠[•]Auto Join:off [❌]\n" if wait['autoCancel']["on"] == True:md+="╠[•]Auto cancel:" + str(wait['autoCancel']["members"]) + "[✅]\n" else: md+= "╠[•]Group cancel:off [❌]\n" if wait['leaveRoom'] == True: md+="╠[•]Auto leave:on [✅]\n" else: md+="╠[•]Auto leave:off [❌]\n" if wait['timeline'] == True: md+="╠[•]Share:on [✅]\n" else:md+="╠[•]Share:off [❌]\n" if wait['autoAdd'] == True: md+="╠[•]Auto add:on [✅]\n" else:md+="╠[•]Auto add:off [❌]\n" if wait["protect"] == True: md+="╠[•]Protect:on [✅]\n" else:md+="╠[•]Protect:off [❌]\n" if wait["linkprotect"] == True: md+="╠[•]Link Protect:on [✅]\n" else:md+="╠[•]Link Protect:off [❌]\n" if wait["inviteprotect"] == True: md+="╠[•]Invitation Protect:on [✅]\n" else:md+="╠[•]Invitation Protect:off [❌]\n" if wait["cancelprotect"] == True: md+="╠[•]Cancel Protect:on [✅]\n" else:md+="╠[•]Cancel Protect:off [❌]\n╚═════════════" kr.sendText(msg.to,md) msg.contentType = 13 msg.contentMetadata = {'mid': "u5baffcc81a0a0689982216a005cfc70b"} kr.sendMessage(msg) elif cms(msg.text,["creator","Creator"]): msg.contentType = 13 msg.contentMetadata = {'mid': "u5baffcc81a0a0689982216a005cfc70b"} kr.sendMessage(msg) kr.sendText(msg.to,'[•] Creator yang manis kalem 􀜁􀄯􏿿') elif msg.text.lower() == 'autoadd on': if wait['autoAdd'] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Auto add set to on") else: kr.sendText(msg.to,"Auto add already on") else: wait['autoAdd'] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Auto add set to on") else: kr.sendText(msg.to,"Auto add already on") elif msg.text.lower() == 'autoadd off': if wait['autoAdd'] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Auto add set to off") else: kr.sendText(msg.to,"Auto add already off") else: wait['autoAdd'] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Auto add set to off") else: kr.sendText(msg.to,"Auto add already off") elif "Pesan set:" in msg.text: wait['message'] = msg.text.replace("Pesan set:","") kr.sendText(msg.to,"We changed the message") elif msg.text.lower() == 'pesan cek': if wait["lang"] == "JP": kr.sendText(msg.to,"Pesan tambahan otomatis telah ditetapkan sebagai berikut \n\n" + wait['message']) else: kr.sendText(msg.to,"Pesan tambahan otomatis telah ditetapkan sebagai berikut \n\n" + wait['message']) elif "Come Set:" in msg.text: c = msg.text.replace("Come Set:","") if c in [""," ","\n",None]: kr.sendText(msg.to,"Merupakan string yang tidak bisa diubah") else: wait["comment"] = c kr.sendText(msg.to,"Ini telah diubah\n\n" + c) elif msg.text in ["Com on","Com:on","Comment on"]: if wait["commentOn"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Aku berada di") else: kr.sendText(msg.to,"To open") else: wait["commentOn"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Comment Actived") else: kr.sendText(msg.to,"Comment Has Been Active") elif msg.text in ["Come off"]: if wait["commentOn"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Hal ini sudah off") else: kr.sendText(msg.to,"It is already turned off") else: wait["commentOn"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Off") else: kr.sendText(msg.to,"To turn off") elif msg.text in ["Com","Comment"]: kr.sendText(msg.to,"Auto komentar saat ini telah ditetapkan sebagai berikut:??\n\n" + str(wait["comment"])) elif msg.text in ["Com Bl"]: wait["wblack"] = True kr.sendText(msg.to,"Please send contacts from the person you want to add to the blacklist") elif msg.text in ["Com hapus Bl"]: wait["dblack"] = True kr.sendText(msg.to,"Please send contacts from the person you want to add from the blacklist") elif msg.text in ["Com Bl cek"]: if wait["commentBlack"] == {}: kr.sendText(msg.to,"Nothing in the blacklist") else: kr.sendText(msg.to,"The following is a blacklist") mc = "" for mi_d in wait["commentBlack"]: mc += "・" +kr.getContact(mi_d).displayName + "\n" kr.sendText(msg.to,mc) elif msg.text.lower() == 'jam on': if wait["clock"] == True: kr.sendText(msg.to,"Jam already on") else: wait["clock"] = True now2 = datetime.now() nowT = datetime.strftime(now2,"?%H:%M?") profile = kr.getProfile() profile.displayName = wait["cName"] + nowT kr.updateProfile(profile) kr.sendText(msg.to,"Jam set on") elif msg.text.lower() == 'jam off': if wait["clock"] == False: kr.sendText(msg.to,"Jam already off") else: wait["clock"] = False kr.sendText(msg.to,"Jam set off") elif "Jam say:" in msg.text: n = msg.text.replace("Jam say:","") if len(n.decode("utf-8")) > 30: kr.sendText(msg.to,"terlalu lama") else: wait["cName"] = n kr.sendText(msg.to,"Nama Jam Berubah menjadi:" + n) elif msg.text.lower() == 'update': if wait["clock"] == True: now2 = datetime.now() nowT = datetime.strftime(now2,"?%H:%M?") profile = kr.getProfile() profile.displayName = wait["cName"] + nowT kr.updateProfile(profile) kr.sendText(msg.to,"Diperbarui") else: kr.sendText(msg.to,"Silahkan Aktifkan Jam") elif "Image " in msg.text: search = msg.text.replace("Image ","") url = 'https://www.google.com/search?espv=2&biw=1366&bih=667&tbm=isch&oq=kuc&aqs=mobile-gws-lite.0.0l5&q=' + search raw_html = (download_page(url)) items = [] items = items + (_images_get_all_items(raw_html)) path = random.choice(items) print path try: kr.sendImageWithURL(msg.to,path) except: pass #========================== FOR COMMAND BOT FINISHED =============================# elif "Spam change:" in msg.text: if msg.toType == 2: wait['spam'] = msg.text.replace("Spam change:","") kr.sendText(msg.to,"spam changed") elif "Spam add:" in msg.text: if msg.toType == 2: wait['spam'] = msg.text.replace("Spam add:","") if wait["lang"] == "JP": kr.sendText(msg.to,"spam changed") else: kr.sendText(msg.to,"Done") elif "Spam:" in msg.text: if msg.toType == 2: strnum = msg.text.replace("Spam:","") num = int(strnum) for var in range(0,num): kr.sendText(msg.to, wait['spam']) #===================================== elif "Spam " in msg.text: if msg.toType == 2: bctxt = msg.text.replace("Spam ", "") t = kr.getAllContactIds() t = 500 while(t): kr.sendText(msg.to, (bctxt)) t-=1 #============================================== elif "Spamcontact @" in msg.text: _name = msg.text.replace("Spamcontact @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) for g in gs.members: if _nametarget == g.displayName: kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(g.mid,'spam') kr.sendText(msg.to, "Done") print " Spammed !" #==============================================================================# elif msg.text in ["Invite"]: wait["invite"] = True kr.sendText(msg.to,"Send Contact") elif msg.text in ["Steal contact"]: wait['contact'] = True kr.sendText(msg.to,"Send Contact") elif msg.text in ["Like:me","Like me"]: #Semua Bot Ngelike Status Akun Utama print "[Command]Like executed" kr.sendText(msg.to,"Like Status Owner") try: likeme() except: pass elif msg.text in ["Like:friend","Like friend"]: #Semua Bot Ngelike Status Teman print "[Command]Like executed" kr.sendText(msg.to,"Like Status Teman") try: likefriend() except: pass elif msg.text in ["Like:on","Like on"]: if wait['likeOn'] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"Done") else: wait['likeOn'] = True if wait["lang"] == "JP": kr.sendText(msg.to,"Already") elif msg.text in ["Like off","Like:off"]: if wait['likeOn'] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"Done") else: wait['likeOn'] = False if wait["lang"] == "JP": kr.sendText(msg.to,"Already") elif msg.text in ["Simisimi on","Simisimi:on"]: settings["simiSimi"][msg.to] = True kr.sendText(msg.to,"Simi mode On") elif msg.text in ["Simisimi off","Simisimi:off"]: settings["simiSimi"][msg.to] = False kr.sendText(msg.to,"Simi mode Off") elif msg.text in ["Autoread on","Read:on"]: wait['alwayRead'] = True kr.sendText(msg.to,"Auto read On") elif msg.text in ["Autoread off","Read:off"]: wait['alwayRead'] = False kr.sendText(msg.to,"Auto read Off") elif msg.text in ["Respontag on","Autorespon:on","Respon on","Respon:on"]: wait['detectMention'] = True kr.sendText(msg.to,"Auto respon tag On") elif msg.text in ["Respontag off","Autorespon:off","Respon off","Respon:off"]: wait['detectMention'] = False kr.sendText(msg.to,"Auto respon tag Off") elif msg.text in ["Kicktag on","Autokick:on","Responkick on","Responkick:on"]: wait['kickMention'] = True kr.sendText(msg.to,"Auto Kick tag ON") elif msg.text in ["Kicktag off","Autokick:off","Responkick off","Responkick:off"]: wait['kickMention'] = False kr.sendText(msg.to,"Auto Kick tag OFF") elif "Time" in msg.text: if msg.toType == 2: kr.sendText(msg.to,datetime.today().strftime('%H:%M:%S')) #==============================================================================# elif msg.text in ["Sambut on","sambut on"]: if wait["Wc"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"noтιғ yg joιn on") else: wait["Wc"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"already on") elif msg.text in ["Sambut off","sambut off"]: if wait["Wc"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"noтιғ yg joιn oғғ") else: wait["Wc"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"already oғғ") #==============================================================================# elif msg.text in ["Pergi on","pergi on"]: if wait["Lv"] == True: if wait["lang"] == "JP": kr.sendText(msg.to,"noтιғ yg leave on") else: wait["Lv"] = True if wait["lang"] == "JP": kr.sendText(msg.to,"already on") elif msg.text in ["Pergi off","pergi off"]: if wait["Lv"] == False: if wait["lang"] == "JP": kr.sendText(msg.to,"noтιғ yg leave oғғ") else: wait["Lv"] = False if wait["lang"] == "JP": kr.sendText(msg.to,"already oғғ") #==============================================================================# elif "Cleanse" in msg.text: if msg.toType == 2: if msg.toType == 2: print "ok" _name = msg.text.replace("Cleanse","") gs = kr.getGroup(msg.to) gs = kr.getGroup(msg.to) gs = kr.getGroup(msg.to) kr.sendText(msg.to,"Just some casual cleansing ô") kr.sendText(msg.to,"Group cleansed.") targets = [] for g in gs.members: if _name in g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,"Not found.") kr.sendText(msg.to,"Not found.") else: for target in targets: try: klist=[kr,kr,kr] kicker=random.choice(klist) kicker.kickoutFromGroup(msg.to,[target]) print (msg.to,[g.mid]) except: kr.sendText(msg.to,"Group cleanse") kr.sendText(msg.to,"Group cleanse") elif msg.text in ["Salam1"]: kr.sendText(msg.to,"السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ") kr.sendText(msg.to,"Assalamu'alaikum") elif msg.text in ["Salam2"]: kr.sendText(msg.to,"وَعَلَيْكُمْ السَّلاَمُرَحْمَةُ اللهِ وَبَرَكَاتُهُ") kr.sendText(msg.to,"Wa'alaikumsallam.Wr,Wb") elif "Salam3" in msg.text: if msg.from_ in owner: kr.sendText(msg.to,"السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ") kr.sendText(msg.to,"Assalamu'alaikum") kr.sendText(msg.to,"وَعَلَيْكُمْ السَّلاَمُ وَرَحْمَةُ اللهِوَبَرَكَاتُهُ") kr.sendText(msg.to,"Wa'alaikumsallam.Wr,Wb") if msg.toType == 2: print "ok" _name = msg.text.replace("Salam3","") gs = kr.getGroup(msg.to) kr.sendText(msg.to,"maaf kalo gak sopan") kr.sendText(msg.to,"Qo salamnya gak ada yang jawab ya..!!") kr.sendText(msg.to,"hehehhehe") targets = [] for g in gs.members: if _name in g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,"Not found") else: for target in targets: if target not in admin: try: klist=[kr] kicker=random.choice(klist) kicker.kickoutFromGroup(msg.to,[target]) print (msg.to,[g.mid]) except: kr.sendText(msg.to,"السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ") kr.sendText(msg.to,"وَعَلَيْكُمْ السَّلاَمُ وَرَحْمَةُ اللهِوَبَرَكَاتُهُ") kr.sendText(msg.to,"Nah salamnya jawab sendiri dah") elif ("Kick " in msg.text): targets = [] key = eval(msg.contentMetadata["MENTION"]) key["MENTIONEES"] [0] ["M"] for x in key["MENTIONEES"]: targets.append(x["M"]) for target in targets: try: kr.kickoutFromGroup(msg.to,[target]) except: kr.sendText(msg.to,"Error") elif ("Cium " in msg.text): targets = [] key = eval(msg.contentMetadata["MENTION"]) key["MENTIONEES"] [0] ["M"] for x in key["MENTIONEES"]: targets.append(x["M"]) for target in targets: try: kr.kickoutFromGroup(msg.to,[target]) kr.inviteIntoGroup(msg.to,[target]) kr.cancelGroupInvitation(msg.to,[target]) except: kr.sendText(msg.to,"Error") elif "Kick: " in msg.text: midd = msg.text.replace("Kick: ","") kr.kickoutFromGroup(msg.to,[midd]) elif 'invite ' in msg.text.lower(): key = msg.text[-33:] kr.findAndAddContactsByMid(key) kr.inviteIntoGroup(msg.to, [key]) contact = kr.getContact(key) elif msg.text.lower() == 'cancel': if msg.toType == 2: group = kr.getGroup(msg.to) if group.invitee is not None: gInviMids = [contact.mid for contact in group.invitee] kr.cancelGroupInvitation(msg.to, gInviMids) else: if wait["lang"] == "JP": kr.sendText(msg.to,"Tidak ada undangan") else: kr.sendText(msg.to,"Invitan tidak ada") else: if wait["lang"] == "JP": kr.sendText(msg.to,"Tidak ada undangan") else: kr.sendText(msg.to,"Invitan tidak ada") elif msg.text.lower() == 'link on': if msg.toType == 2: group = kr.getGroup(msg.to) group.preventJoinByTicket = False kr.updateGroup(group) if wait["lang"] == "JP": kr.sendText(msg.to,"URL open") else: kr.sendText(msg.to,"URL open") else: if wait["lang"] == "JP": kr.sendText(msg.to,"It can not be used outside the group") else: kr.sendText(msg.to,"Can not be used for groups other than") elif msg.text.lower() == 'link off': if msg.toType == 2: group = kr.getGroup(msg.to) group.preventJoinByTicket = True kr.updateGroup(group) if wait["lang"] == "JP": kr.sendText(msg.to,"URL close") else: kr.sendText(msg.to,"URL close") else: if wait["lang"] == "JP": kr.sendText(msg.to,"It can not be used outside the group") else: kr.sendText(msg.to,"Can not be used for groups other than") elif msg.text in ["Url","Gurl"]: if msg.toType == 2: g = kr.getGroup(msg.to) if g.preventJoinByTicket == True: g.preventJoinByTicket = False kr.updateGroup(g) gurl = kr.reissueGroupTicket(msg.to) kr.sendText(msg.to,"line://ti/g/" + gurl) elif "Gcreator" == msg.text: try: group = kr.getGroup(msg.to) GS = group.creator.mid M = Message() M.to = msg.to M.contentType = 13 M.contentMetadata = {'mid': GS} kr.sendMessage(M) except: W = group.members[0].mid M = Message() M.to = msg.to M.contentType = 13 M.contentMetadata = {'mid': W} kr.sendMessage(M) kr.sendText(msg.to,"Creator Grup") elif msg.text.lower() == 'invite:gcreator': if msg.toType == 2: ginfo = kr.getGroup(msg.to) try: gcmid = ginfo.creator.mid except: gcmid = "Error" if wait["lang"] == "JP": kr.inviteIntoGroup(msg.to,[gcmid]) else: kr.inviteIntoGroup(msg.to,[gcmid]) elif ("Gname: " in msg.text): if msg.toType == 2: X = kr.getGroup(msg.to) X.name = msg.text.replace("Gname: ","") kr.updateGroup(X) elif msg.text.lower() == 'infogrup': group = kr.getGroup(msg.to) try: gCreator = group.creator.displayName except: gCreator = "Error" md = "[Nama Grup : ]\n" + group.name + "\n\n[Id Grup : ]\n" + group.id + "\n\n[Pembuat Grup :]\n" + gCreator + "\n\n[Gambar Grup : ]\nhttp://dl.profile.line-cdn.net/" + group.pictureStatus if group.preventJoinByTicket is False: md += "\n\nKode Url : Diizinkan" else: md += "\n\nKode Url : Diblokir" if group.invitee is None: md += "\nJumlah Member : " + str(len(group.members)) + " Orang" + "\nUndangan Yang Belum Diterima : 0 Orang" else: md += "\nJumlah Member : " + str(len(group.members)) + " Orang" + "\nUndangan Yang Belum Diterima : " + str(len(group.invitee)) + " Orang" kr.sendText(msg.to,md) elif msg.text.lower() == 'grup id': gid = kr.getGroupIdsJoined() h = "" for i in gid: h += "[%s]:%s\n" % (kr.getGroup(i).name,i) kr.sendText(msg.to,h) #==============================================================================# elif msg.text in ["Glist"]: gid = kr.getGroupIdsJoined() h = "" for i in gid: h += "%s\n" % (kr.getGroup(i).name +" ? ["+str(len(kr.getGroup(i).members))+"]") kr.sendText(msg.to,"-- List Groups --\n\n"+ h +"\nTotal groups =" +" ["+str(len(gid))+"]") elif msg.text.lower() == 'gcancel': gid = kr.getGroupIdsInvited() for i in gid: kr.rejectGroupInvitation(i) if wait["lang"] == "JP": kr.sendText(msg.to,"Aku menolak semua undangan") else: kr.sendText(msg.to,"He declined all invitations") elif "Auto add" in msg.text: thisgroup = kr.getGroups([msg.to]) Mids = [contact.mid for contact in thisgroup[0].members] mi_d = Mids[:33] kr.findAndAddContactsByMids(mi_d) kr.sendText(msg.to,"Success Add all") #==============================================================================# elif "Anu" == msg.text.lower(): group = kr.getGroup(msg.to) nama = [contact.mid for contact in group.members] nm1, nm2, nm3, nm4, nm5, jml = [], [], [], [], [], len(nama) if jml <= 100: summon(msg.to, nama) if jml > 100 and jml < 200: for i in range(0, 99): nm1 += [nama[i]] summon(msg.to, nm1) for j in range(100, len(nama)-1): nm2 += [nama[j]] summon(msg.to, nm2) if jml > 200 and jml < 500: for i in range(0, 99): nm1 += [nama[i]] summon(msg.to, nm1) for j in range(100, 199): nm2 += [nama[j]] summon(msg.to, nm2) for k in range(200, 299): nm3 += [nama[k]] summon(msg.to, nm3) for l in range(300, 399): nm4 += [nama[l]] summon(msg.to, nm4) for m in range(400, len(nama)-1): nm5 += [nama[m]] summon(msg.to, nm5) if jml > 500: print "Terlalu Banyak Men 500+" cnt = Message() cnt.text = "Jumlah:\n" + str(jml) + " Members" cnt.to = msg.to kr.sendMessage(cnt) elif "cctv on" == msg.text.lower(): if msg.to in wait2['readPoint']: try: del wait2['readPoint'][msg.to] del wait2['readMember'][msg.to] del wait2['setTime'][msg.to] except: pass wait2['readPoint'][msg.to] = msg.id wait2['readMember'][msg.to] = "" wait2['setTime'][msg.to] = datetime.now().strftime('%H:%M:%S') wait2['ROM'][msg.to] = {} with open('sider.json', 'w') as fp: json.dump(wait2, fp, sort_keys=True, indent=4) kr.sendText(msg.to,"Setpoint already on") else: try: del wait2['readPoint'][msg.to] del wait2['readMember'][msg.to] del wait2['setTime'][msg.to] except: pass wait2['readPoint'][msg.to] = msg.id wait2['readMember'][msg.to] = "" wait2['setTime'][msg.to] = datetime.now().strftime('%H:%M:%S') wait2['ROM'][msg.to] = {} with open('sider.json', 'w') as fp: json.dump(wait2, fp, sort_keys=True, indent=4) kr.sendText(msg.to, "Set reading point:\n" + datetime.now().strftime('%H:%M:%S')) print wait2 elif "cctv off" == msg.text.lower(): if msg.to not in wait2['readPoint']: kr.sendText(msg.to,"Setpoint already off") else: try: del wait2['readPoint'][msg.to] del wait2['readMember'][msg.to] del wait2['setTime'][msg.to] except: pass kr.sendText(msg.to, "Delete reading point:\n" + datetime.now().strftime('%H:%M:%S')) elif msg.text in ["toong","Toong"]: if msg.toType == 2: print "\nRead aktif..." if msg.to in wait2['readPoint']: if wait2['ROM'][msg.to].items() == []: chiya = "" else: chiya = "" for rom in wait2['ROM'][msg.to].items(): print rom chiya += rom[1] + "\n" kr.sendText(msg.to, "╔═════════════ \n╠[•]Sider :\n╠═════════════ %s\n╠\n╠═════════════\n╠[•]Reader :\n╠═════════════ %s\n╠\n╠═════════════\n╠In the last seen point:\n╠[%s]\n╚═════════════" % (wait2['readMember'][msg.to],chiya,setTime[msg.to])) print "\nReading Point Set..." try: del wait2['readPoint'][msg.to] del wait2['readMember'][msg.to] except: pass wait2['readPoint'][msg.to] = msg.id wait2['readMember'][msg.to] = "" wait2['setTime'][msg.to] = datetime.today().strftime('%Y-%m-%d %H:%M:%S') wait2['ROM'][msg.to] = {} print "toong ready" kr.sendText(msg.to, "Auto Read Point!!" + (wait2['setTime'][msg.to])) else: kr.sendText(msg.to, "Ketik [Cctv on] dulu, baru ketik [Toong]") elif "intip" == msg.text.lower(): if msg.to in wait2['readPoint']: if wait2['ROM'][msg.to].items() == []: kr.sendText(msg.to, "Reader:\nNone") else: chiya = [] for rom in wait2['ROM'][msg.to].items(): chiya.append(rom[1]) cmem = kr.getContacts(chiya) zx = "" zxc = "" zx2 = [] xpesan = '' for x in range(len(cmem)): xname = str(cmem[x].displayName) pesan = '' pesan2 = pesan+"@a\n" xlen = str(len(zxc)+len(xpesan)) xlen2 = str(len(zxc)+len(pesan2)+len(xpesan)-1) zx = {'S':xlen, 'E':xlen2, 'M':cmem[x].mid} zx2.append(zx) zxc += pesan2 msg.contentType = 0 print zxc msg.text = xpesan+ zxc + "\nBefore: %s\nAfter: %s"%(wait2['setTime'][msg.to],datetime.now().strftime('%H:%M:%S')) lol ={"MENTION":str('{"MENTIONEES":'+json.dumps(zx2).replace(' ','')+'}')} print lol msg.contentMetadata = lol try: kr.sendMessage(msg) except Exception as error: print error pass else: kr.sendText(msg.to, "Lurking has not been set.") elif "Gbroadcast: " in msg.text: bc = msg.text.replace("Gbroadcast: ","") gid = kr.getGroupIdsJoined() for i in gid: kr.sendText(i, bc) elif "Cbroadcast: " in msg.text: bc = msg.text.replace("Cbroadcast: ","") gid = kr.getAllContactIds() for i in gid: kr.sendText(i, bc) elif "Spam change: " in msg.text: wait['spam'] = msg.text.replace("Spam change: ","") kr.sendText(msg.to,"spam changed") elif "Spam add: " in msg.text: wait['spam'] = msg.text.replace("Spam add: ","") if wait["lang"] == "JP": kr.sendText(msg.to,"spam changed") else: kr.sendText(msg.to,"Done") elif "Spam: " in msg.text: strnum = msg.text.replace("Spam: ","") num = int(strnum) for var in range(0,num): kr.sendText(msg.to, wait['spam']) elif "Spamtag @" in msg.text: _name = msg.text.replace("Spamtag @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) for g in gs.members: if _nametarget == g.displayName: xname = g.displayName xlen = str(len(xname)+1) msg.contentType = 0 msg.text = "@"+xname+" " msg.contentMetadata ={"MENTION":'{"MENTIONEES":[{"S":"0","E":'+json.dumps(xlen)+',"M":'+json.dumps(g.mid)+'}]}','EMTVER':'4'} kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) else: pass elif "spam" in msg.text: txt = msg.text.split(" ") jmlh = int(txt[2]) teks = msg.text.replace("Spam "+str(txt[1])+" "+str(jmlh)+" ","") tulisan = jmlh * (teks+"\n") if txt[1] == "on": if jmlh <= 100000: for x in range(jmlh): kr.sendText(msg.to, teks) else: kr.sendText(msg.to, "Out of Range!") elif txt[1] == "off": if jmlh <= 100000: kr.sendText(msg.to, tulisan) else: kr.sendText(msg.to, "Out Of Range!") elif ("Micadd " in msg.text): targets = [] key = eval(msg.contentMetadata["MENTION"]) key["MENTIONEES"][0]["M"] for x in key["MENTIONEES"]: targets.append(x["M"]) for target in targets: try: mimic["target"][target] = True kr.sendText(msg.to,"Target ditambahkan!") break except: kr.sendText(msg.to,"Fail !") break elif ("Micdel " in msg.text): targets = [] key = eval(msg.contentMetadata["MENTION"]) key["MENTIONEES"][0]["M"] for x in key["MENTIONEES"]: targets.append(x["M"]) for target in targets: try: del mimic["target"][target] kr.sendText(msg.to,"Target dihapuskan!") break except: kr.sendText(msg.to,"Fail !") break elif msg.text in ["Miclist"]: if mimic["target"] == {}: kr.sendText(msg.to,"nothing") else: mc = "Target mimic user\n" for mi_d in mimic["target"]: mc += "?? "+kr.getContact(mi_d).displayName + "\n" kr.sendText(msg.to,mc) elif "Mimic target " in msg.text: if mimic["copy"] == True: siapa = msg.text.replace("Mimic target ","") if siapa.rstrip(' ') == "me": mimic["copy2"] = "me" kr.sendText(msg.to,"Mimic change to me") elif siapa.rstrip(' ') == "target": mimic["copy2"] = "target" kr.sendText(msg.to,"Mimic change to target") else: kr.sendText(msg.to,"I dont know") elif "Mimic " in msg.text: cmd = msg.text.replace("Mimic ","") if cmd == "on": if mimic["status"] == False: mimic["status"] = True kr.sendText(msg.to,"Reply Message on") else: kr.sendText(msg.to,"Sudah on") elif cmd == "off": if mimic["status"] == True: mimic["status"] = False kr.sendText(msg.to,"Reply Message off") else: kr.sendText(msg.to,"Sudah off") elif "Setimage: " in msg.text: wait['pap'] = msg.text.replace("Setimage: ","") kr.sendText(msg.to, "Pap telah di Set") elif msg.text in ["Papimage","Papim",'pap']: kr.sendImageWithURL(msg.to,wait['pap']) elif "Setvideo: " in msg.text: wait['pap'] = msg.text.replace("Setvideo: ","") kr.sendText(msg.to,"Video Has Ben Set To") elif msg.text in ["Papvideo","Papvid"]: kr.sendVideoWithURL(msg.to,wait['pap']) elif "TL:" in msg.text: if msg.toType == 2: tl_text = msg.text.replace("TL:","") kr.sendText(msg.to,"line://home/post?userMid="+mid+"&postId="+kr.new_post(tl_text)["result"]["post"]["postInfo"]["postId"]) #==============================================================================# elif msg.text.lower() == 'mymid': kr.sendText(msg.to,mid) elif "Timeline: " in msg.text: tl_text = msg.text.replace("Timeline: ","") kr.sendText(msg.to,"line://home/post?userMid="+mid+"&postId="+kr.new_post(tl_text)["result"]["post"]["postInfo"]["postId"]) elif "Myname: " in msg.text: string = msg.text.replace("Myname: ","") if len(string.decode('utf-8')) <= 10000000000: profile = kr.getProfile() profile.displayName = string kr.updateProfile(profile) kr.sendText(msg.to,"Changed " + string + "") elif "Mybio: " in msg.text: string = msg.text.replace("Mybio: ","") if len(string.decode('utf-8')) <= 10000000000: profile = kr.getProfile() profile.statusMessage = string kr.updateProfile(profile) kr.sendText(msg.to,"Changed " + string) elif msg.text in ["Myname"]: h = kr.getContact(mid) kr.sendText(msg.to,"===[DisplayName]===\n" + h.displayName) elif msg.text in ["Mybio"]: h = kr.getContact(mid) kr.sendText(msg.to,"===[StatusMessage]===\n" + h.statusMessage) elif msg.text in ["Mypict"]: h = kr.getContact(mid) kr.sendImageWithURL(msg.to,"http://dl.profile.line-cdn.net/" + h.pictureStatus) elif msg.text in ["Myvid"]: h = kr.getContact(mid) kr.sendVideoWithURL(msg.to,"http://dl.profile.line-cdn.net/" + h.pictureStatus) elif msg.text in ["Urlpict"]: h = kr.getContact(mid) kr.sendText(msg.to,"http://dl.profile.line-cdn.net/" + h.pictureStatus) elif msg.text in ["Mycover"]: h = kr.getContact(mid) cu = kr.channel.getCover(mid) path = str(cu) kr.sendImageWithURL(msg.to, path) elif msg.text in ["Urlcover"]: h = kr.getContact(mid) cu = kr.channel.getCover(mid) path = str(cu) kr.sendText(msg.to, path) elif "Getmid @" in msg.text: _name = msg.text.replace("Getmid @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) for g in gs.members: if _nametarget == g.displayName: kr.sendText(msg.to, g.mid) else: pass elif "Getinfo" in msg.text: key = eval(msg.contentMetadata["MENTION"]) key1 = key["MENTIONEES"][0]["M"] contact = kr.getContact(key1) cu = kr.channel.getCover(key1) try: kr.sendText(msg.to,"Nama :\n" + contact.displayName + "\n\nMid :\n" + contact.mid + "\n\nBio :\n" + contact.statusMessage + "\n\nProfile Picture :\nhttp://dl.profile.line-cdn.net/" + contact.pictureStatus + "\n\nHeader :\n" + str(cu)) except: kr.sendText(msg.to,"Nama :\n" + contact.displayName + "\n\nMid :\n" + contact.mid + "\n\nBio :\n" + contact.statusMessage + "\n\nProfile Picture :\n" + str(cu)) elif "Getbio" in msg.text: key = eval(msg.contentMetadata["MENTION"]) key1 = key["MENTIONEES"][0]["M"] contact = kr.getContact(key1) cu = kr.channel.getCover(key1) try: kr.sendText(msg.to, "===[StatusMessage]===\n" + contact.statusMessage) except: kr.sendText(msg.to, "===[StatusMessage]===\n" + contact.statusMessage) elif "Getname" in msg.text: key = eval(msg.contentMetadata["MENTION"]) key1 = key["MENTIONEES"][0]["M"] contact = kr.getContact(key1) cu = kr.channel.getCover(key1) try: kr.sendText(msg.to, "===[DisplayName]===\n" + contact.displayName) except: kr.sendText(msg.to, "===[DisplayName]===\n" + contact.displayName) elif "Getprofile" in msg.text: key = eval(msg.contentMetadata["MENTION"]) key1 = key["MENTIONEES"][0]["M"] contact = kr.getContact(key1) cu = kr.channel.getCover(key1) path = str(cu) image = "http://dl.profile.line-cdn.net/" + contact.pictureStatus try: kr.sendText(msg.to,"Nama :\n" + contact.displayName + "\n\nBio :\n" + contact.statusMessage) kr.sendText(msg.to,"Profile Picture " + contact.displayName) kr.sendImageWithURL(msg.to,image) kr.sendText(msg.to,"Cover " + contact.displayName) kr.sendImageWithURL(msg.to,path) except: pass elif "Getcontact" in msg.text: key = eval(msg.contentMetadata["MENTION"]) key1 = key["MENTIONEES"][0]["M"] mmid = kr.getContact(key1) msg.contentType = 13 msg.contentMetadata = {"mid": key1} kr.sendMessage(msg) elif "Getpict @" in msg.text: print "[Command]dp executing" _name = msg.text.replace("Getpict @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,"Contact not found") else: for target in targets: try: contact = kr.getContact(target) path = "http://dl.profile.line-cdn.net/" + contact.pictureStatus kr.sendImageWithURL(msg.to, path) except Exception as e: raise e print "[Command]dp executed" elif "Getvid @" in msg.text: print "[Command]dp executing" _name = msg.text.replace("Getvid @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,"Contact not found") else: for target in targets: try: contact = kr.getContact(target) path = "http://dl.profile.line-cdn.net/" + contact.pictureStatus kr.sendVideoWithURL(msg.to, path) except Exception as e: raise e print "[Command]dp executed" elif "Picturl @" in msg.text: print "[Command]dp executing" _name = msg.text.replace("Picturl @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,"Contact not found") else: for target in targets: try: contact = kr.getContact(target) path = "http://dl.profile.line-cdn.net/" + contact.pictureStatus kr.sendText(msg.to, path) except Exception as e: raise e print "[Command]dp executed" elif "Getcover @" in msg.text: print "[Command]cover executing" _name = msg.text.replace("Getcover @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,"Contact not found") else: for target in targets: try: contact = kr.getContact(target) cu = kr.channel.getCover(target) path = str(cu) kr.sendImageWithURL(msg.to, path) except Exception as e: raise e print "[Command]cover executed" elif "Coverurl @" in msg.text: print "[Command]cover executing" _name = msg.text.replace("Coverurl @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,"Contact not found") else: for target in targets: try: contact = kr.getContact(target) cu = kr.channel.getCover(target) path = str(cu) kr.sendText(msg.to, path) except Exception as e: raise e print "[Command]cover executed" elif "Getgrup image" in msg.text: group = kr.getGroup(msg.to) path = "http://dl.profile.line-cdn.net/" + group.pictureStatus kr.sendImageWithURL(msg.to,path) elif "Urlgrup image" in msg.text: group = kr.getGroup(msg.to) path = "http://dl.profile.line-cdn.net/" + group.pictureStatus kr.sendText(msg.to,path) elif "Mycopy @" in msg.text: print "[COPY] Ok" _name = msg.text.replace("Mycopy @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to, "Not Found...") else: for target in targets: try: kr.CloneContactProfile(target) kr.sendText(msg.to, "Copied.") except Exception as e: print e elif msg.text in ["Semula","mybackup"]: try: kr.updateDisplayPicture(backup.pictureStatus) kr.updateProfile(backup) kr.sendText(msg.to, "Refreshed.") except Exception as e: kr.sendText(msg.to, str(e)) #==============================================================================# elif "Fancytext: " in msg.text: txt = msg.text.replace("Fancytext: ", "") kr.kedapkedip(msg.to,txt) print "[Command] Kedapkedip" elif "Translate-id " in msg.text: isi = msg.text.replace("Tr-id ","") translator = Translator() hasil = translator.translate(isi, dest='id') A = hasil.text A = A.encode('utf-8') kr.sendText(msg.to, A) elif "Translate-en " in msg.text: isi = msg.text.replace("Tr-en ","") translator = Translator() hasil = translator.translate(isi, dest='en') A = hasil.text A = A.encode('utf-8') kr.sendText(msg.to, A) elif "Translate-ar" in msg.text: isi = msg.text.replace("Tr-ar ","") translator = Translator() hasil = translator.translate(isi, dest='ar') A = hasil.text A = A.encode('utf-8') kr.sendText(msg.to, A) elif "Translate-jp" in msg.text: isi = msg.text.replace("Tr-jp ","") translator = Translator() hasil = translator.translate(isi, dest='ja') A = hasil.text A = A.encode('utf-8') kr.sendText(msg.to, A) elif "Translate-ko" in msg.text: isi = msg.text.replace("Tr-ko ","") translator = Translator() hasil = translator.translate(isi, dest='ko') A = hasil.text A = A.encode('utf-8') kr.sendText(msg.to, A) elif "Id@en" in msg.text: bahasa_awal = 'id' bahasa_tujuan = 'en' kata = msg.text.replace("Id@en ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"**FROM ID**\n" + "" + kata + "\n**TO ENGLISH**\n" + "" + result + "\n**SUKSES**") elif "En@id" in msg.text: bahasa_awal = 'en' bahasa_tujuan = 'id' kata = msg.text.replace("En@id ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"**FROM EN**\n" + "" + kata + "\n**TO ID**\n" + "" + result + "\n**SUKSES**") elif "Id@jp" in msg.text: bahasa_awal = 'id' bahasa_tujuan = 'ja' kata = msg.text.replace("Id@jp ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"**FROM ID**\n" + "" + kata + "\n**TO JP**\n" + "" + result + "\n**SUKSES**") elif "Jp@id" in msg.text: bahasa_awal = 'ja' bahasa_tujuan = 'id' kata = msg.text.replace("Jp@id ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"----FROM JP----\n" + "" + kata + "\n----TO ID----\n" + "" + result + "\n------SUKSES-----") elif "Id@th" in msg.text: bahasa_awal = 'id' bahasa_tujuan = 'th' kata = msg.text.replace("Id@th ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"----FROM ID----\n" + "" + kata + "\n----TO TH----\n" + "" + result + "\n------SUKSES-----") elif "Th@id" in msg.text: bahasa_awal = 'th' bahasa_tujuan = 'id' kata = msg.text.replace("Th@id ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"----FROM TH----\n" + "" + kata + "\n----TO ID----\n" + "" + result + "\n------SUKSES-----") elif "Id@jp" in msg.text: bahasa_awal = 'id' bahasa_tujuan = 'ja' kata = msg.text.replace("Id@jp ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"----FROM ID----\n" + "" + kata + "\n----TO JP----\n" + "" + result + "\n------SUKSES-----") elif "Id@ar" in msg.text: bahasa_awal = 'id' bahasa_tujuan = 'ar' kata = msg.text.replace("Id@ar ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"----FROM ID----\n" + "" + kata + "\n----TO AR----\n" + "" + result + "\n------SUKSES-----") elif "Ar@id" in msg.text: bahasa_awal = 'ar' bahasa_tujuan = 'id' kata = msg.text.replace("Ar@id ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"----FROM AR----\n" + "" + kata + "\n----TO ID----\n" + "" + result + "\n------SUKSES-----") elif "Id@ko" in msg.text: bahasa_awal = 'id' bahasa_tujuan = 'ko' kata = msg.text.replace("Id@ko ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"----FROM ID----\n" + "" + kata + "\n----TO KO----\n" + "" + result + "\n------SUKSES-----") elif "Ko@id" in msg.text: bahasa_awal = 'ko' bahasa_tujuan = 'id' kata = msg.text.replace("Ko@id ","") url = 'https://translate.google.com/m?sl=%s&tl=%s&ie=UTF-8&prev=_m&q=%s' % (bahasa_awal, bahasa_tujuan, kata.replace(" ", "+")) agent = {'User-Agent':'Mozilla/5.0'} cari_hasil = 'class="t0">' request = urllib2.Request(url, headers=agent) page = urllib2.urlopen(request).read() result = page[page.find(cari_hasil)+len(cari_hasil):] result = result.split("<")[0] kr.sendText(msg.to,"----FROM KO----\n" + "" + kata + "\n----TO ID----\n" + "" + result + "\n------SUKSES-----") elif msg.text.lower() == 'welcome': ginfo = kr.getGroup(msg.to) kr.sendText(msg.to,"Selamat Datang Di Grup " + str(ginfo.name)) jawaban1 = ("Selamat Datang Di Grup " + str(ginfo.name)) kr.sendText(msg.to,"Owner Grup " + str(ginfo.name) + " :\n" + ginfo.creator.displayName ) tts = gTTS(text=jawaban1, lang='id') tts.save('tts.mp3') kr.sendAudio(msg.to,'tts.mp3') elif "Say-id " in msg.text: say = msg.text.replace("Say-id ","") lang = 'id' tts = gTTS(text=say, lang=lang) tts.save("hasil.mp3") kr.sendAudio(msg.to,"hasil.mp3") elif "Say-en " in msg.text: say = msg.text.replace("Say-en ","") lang = 'en' tts = gTTS(text=say, lang=lang) tts.save("hasil.mp3") kr.sendAudio(msg.to,"hasil.mp3") elif "Say-jp " in msg.text: say = msg.text.replace("Say-jp ","") lang = 'ja' tts = gTTS(text=say, lang=lang) tts.save("hasil.mp3") kr.sendAudio(msg.to,"hasil.mp3") elif "Say-ar " in msg.text: say = msg.text.replace("Say-ar ","") lang = 'ar' tts = gTTS(text=say, lang=lang) tts.save("hasil.mp3") kr.sendAudio(msg.to,"hasil.mp3") elif "Say-ko " in msg.text: say = msg.text.replace("Say-ko ","") lang = 'ko' tts = gTTS(text=say, lang=lang) tts.save("hasil.mp3") kr.sendAudio(msg.to,"hasil.mp3") elif "Kapan " in msg.text: tanya = msg.text.replace("Kapan ","") jawab = ("kapan kapan","besok","satu abad lagi","Hari ini","Tahun depan","Minggu depan","Bulan depan","Sebentar lagi") jawaban = random.choice(jawab) tts = gTTS(text=jawaban, lang='id') tts.save('tts.mp3') kr.sendAudio(msg.to,'tts.mp3') elif "Apakah " in msg.text: tanya = msg.text.replace("Apakah ","") jawab = ("Ya","Tidak","Mungkin","Bisa jadi") jawaban = random.choice(jawab) tts = gTTS(text=jawaban, lang='id') tts.save('tts.mp3') kr.sendAudio(msg.to,'tts.mp3') elif 'Youtubemp4 ' in msg.text: try: textToSearch = (msg.text).replace('Youtubemp4 ', "").strip() query = urllib.quote(textToSearch) url = "https://www.youtube.com/results?search_query=" + query response = urllib2.urlopen(url) html = response.read() soup = BeautifulSoup(html, "html.parser") results = soup.find(attrs={'class': 'yt-uix-tile-link'}) ght = ('https://www.youtube.com' + results['href']) kr.sendVideoWithURL(msg.to, ght) except: kr.sendText(msg.to, "Could not find it") elif "Youtubesearch " in msg.text: query = msg.text.replace("Youtube ","") with requests.session() as s: s.headers['user-agent'] = 'Mozilla/5.0' url = 'http://www.youtube.com/results' params = {'search_query': query} r = s.get(url, params=params) soup = BeautifulSoup(r.content, 'html5lib') hasil = "" for a in soup.select('.yt-lockup-title > a[title]'): if '&list=' not in a['href']: hasil += ''.join((a['title'],'\nUrl : http://www.youtube.com' + a['href'],'\n\n')) kr.sendText(msg.to,hasil) print '[Command] Youtube Search' elif "Lirik " in msg.text: try: songname = msg.text.lower().replace("Lirik ","") params = {'songname': songname} r = requests.get('http://ide.fdlrcn.com/workspace/yumi-apis/joox?' + urllib.urlencode(params)) data = r.text data = json.loads(data) for song in data: hasil = 'Lyric Lagu (' hasil += song[0] hasil += ')\n\n' hasil += song[5] kr.sendText(msg.to, hasil) except Exception as wak: kr.sendText(msg.to, str(wak)) elif "Wikipedia " in msg.text: try: wiki = msg.text.lower().replace("Wikipedia ","") wikipedia.set_lang("id") pesan="Title (" pesan+=wikipedia.page(wiki).title pesan+=")\n\n" pesan+=wikipedia.summary(wiki, sentences=1) pesan+="\n" pesan+=wikipedia.page(wiki).url kr.sendText(msg.to, pesan) except: try: pesan="Over Text Limit! Please Click link\n" pesan+=wikipedia.page(wiki).url kr.sendText(msg.to, pesan) except Exception as e: kr.sendText(msg.to, str(e)) elif "Music " in msg.text: try: songname = msg.text.lower().replace("Music ","") params = {'songname': songname} r = requests.get('http://ide.fdlrcn.com/workspace/yumi-apis/joox?' + urllib.urlencode(params)) data = r.text data = json.loads(data) for song in data: hasil = 'This is Your Music\n' hasil += 'Judul : ' + song[0] hasil += '\nDurasi : ' + song[1] hasil += '\nLink Download : ' + song[4] kr.sendText(msg.to, hasil) kr.sendText(msg.to, "Please Wait for audio...") kr.sendAudioWithURL(msg.to, song[4]) except Exception as njer: kr.sendText(msg.to, str(njer)) elif "Image " in msg.text: search = msg.text.replace("Image ","") url = 'https://www.google.com/search?espv=2&biw=1366&bih=667&tbm=isch&oq=kuc&aqs=mobile-gws-lite.0.0l5&q=' + search raw_html = (download_page(url)) items = [] items = items + (_images_get_all_items(raw_html)) path = random.choice(items) print path try: kr.sendImageWithURL(msg.to,path) except: pass elif "Profileig " in msg.text: try: instagram = msg.text.replace("Profileig ","") response = requests.get("https://www.instagram.com/"+instagram+"?__a=1") data = response.json() namaIG = str(data['user']['full_name']) bioIG = str(data['user']['biography']) mediaIG = str(data['user']['media']['count']) verifIG = str(data['user']['is_verified']) usernameIG = str(data['user']['username']) followerIG = str(data['user']['followed_by']['count']) profileIG = data['user']['profile_pic_url_hd'] privateIG = str(data['user']['is_private']) followIG = str(data['user']['follows']['count']) link = "Link: " + "https://www.instagram.com/" + instagram text = "Name : "+namaIG+"\nUsername : "+usernameIG+"\nBiography : "+bioIG+"\nFollower : "+followerIG+"\nFollowing : "+followIG+"\nPost : "+mediaIG+"\nVerified : "+verifIG+"\nPrivate : "+privateIG+"" "\n" + link kr.sendImageWithURL(msg.to, profileIG) kr.sendText(msg.to, str(text)) except Exception as e: kr.sendText(msg.to, str(e)) elif "Checkdate " in msg.text: tanggal = msg.text.replace("Checkdate ","") r=requests.get('https://script.google.com/macros/exec?service=AKfycbw7gKzP-WYV2F5mc9RaR7yE3Ve1yN91Tjs91hp_jHSE02dSv9w&nama=ervan&tanggal='+tanggal) data=r.text data=json.loads(data) lahir = data["data"]["lahir"] usia = data["data"]["usia"] ultah = data["data"]["ultah"] zodiak = data["data"]["zodiak"] kr.sendText(msg.to,"============ I N F O R M A S I ============\n"+"Date Of Birth : "+lahir+"\nAge : "+usia+"\nUltah : "+ultah+"\nZodiak : "+zodiak+"\n============ I N F O R M A S I ============") elif msg.text in ["Kalender","Time","Waktu"]: timeNow = datetime.now() timeHours = datetime.strftime(timeNow,"(%H:%M)") day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] inihari = datetime.today() hr = inihari.strftime('%A') bln = inihari.strftime('%m') for i in range(len(day)): if hr == day[i]: hasil = hari[i] for k in range(0, len(bulan)): if bln == str(k): bln = bulan[k-1] rst = hasil + ", " + inihari.strftime('%d') + " - " + bln + " - " + inihari.strftime('%Y') + "\nJam : [ " + inihari.strftime('%H:%M:%S') + " ]" kr.sendText(msg.to, rst) #==============================================================================# elif msg.text.lower() == 'ifconfig': botKernel = subprocess.Popen(["ifconfig"], stdout=subprocess.PIPE).communicate()[0] kr.sendText(msg.to, botKernel + "\n\n===SERVER INFO NetStat===") elif msg.text.lower() == 'system': botKernel = subprocess.Popen(["df","-h"], stdout=subprocess.PIPE).communicate()[0] kr.sendText(msg.to, botKernel + "\n\n===SERVER INFO SYSTEM===") elif msg.text.lower() == 'kernel': botKernel = subprocess.Popen(["uname","-srvmpio"], stdout=subprocess.PIPE).communicate()[0] kr.sendText(msg.to, botKernel + "\n\n===SERVER INFO KERNEL===") elif msg.text.lower() == 'cpu': botKernel = subprocess.Popen(["cat","/proc/cpuinfo"], stdout=subprocess.PIPE).communicate()[0] kr.sendText(msg.to, botKernel + "\n\n===SERVER INFO CPU===") elif "Restart" in msg.text: print "[Command]Restart" try: kr.sendText(msg.to,"Restarting...") kr.sendText(msg.to,"Restart Success") restart_program() except: kr.sendText(msg.to,"Please wait") restart_program() pass elif "Turn off" in msg.text: try: import sys sys.exit() except: pass elif msg.text.lower() == 'runtime': eltime = time.time() - mulai van = "Bot has been active "+waktu(eltime) kr.sendText(msg.to,van) #================================ saya sendiri SCRIPT STARTED ==============================================# elif "google " in msg.text: a = msg.text.replace("google ","") b = urllib.quote(a) kr.sendText(msg.to,"Sedang Mencari om...") kr.sendText(msg.to, "https://www.google.com/" + b) kr.sendText(msg.to,"Ketemu om ^") elif cms(msg.text,["/creator","Creator"]): msg.contentType = 13 msg.contentMetadata = {'mid': "ub14f769cdf42d8c8a618ebe91ac2c8c7"} kr.sendMessage(msg) elif "friendpp: " in msg.text: if msg.from_ in admin: suf = msg.text.replace('friendpp: ','') gid = kr.getAllContactIds() for i in gid: h = kr.getContact(i).displayName gna = kr.getContact(i) if h == suf: kr.sendImageWithURL(msg.to,"http://dl.profile.line.naver.jp/"+ gna.pictureStatus) elif "Checkmid: " in msg.text: saya = msg.text.replace("Checkmid: ","") msg.contentType = 13 msg.contentMetadata = {"mid":saya} kr.sendMessage(msg) contact = kr.getContact(saya) cu = kr.channel.getCover(saya) path = str(cu) image = "http://dl.profile.line-cdn.net/" + contact.pictureStatus try: kr.sendText(msg.to,"Nama :\n" + contact.displayName + "\n\nBio :\n" + contact.statusMessage) kr.sendText(msg.to,"Profile Picture " + contact.displayName) kr.sendImageWithURL(msg.to,image) kr.sendText(msg.to,"Cover " + contact.displayName) kr.sendImageWithURL(msg.to,path) except: pass elif "Checkid: " in msg.text: saya = msg.text.replace("Checkid: ","") gid = kr.getGroupIdsJoined() for i in gid: h = kr.getGroup(i).id group = kr.getGroup(i) if h == saya: try: creator = group.creator.mid msg.contentType = 13 msg.contentMetadata = {'mid': creator} md = "Nama Grup :\n" + group.name + "\n\nID Grup :\n" + group.id if group.preventJoinByTicket is False: md += "\n\nKode Url : Diizinkan" else: md += "\n\nKode Url : Diblokir" if group.invitee is None: md += "\nJumlah Member : " + str(len(group.members)) + " Orang" + "\nUndangan Yang Belum Diterima : 0 Orang" else: md += "\nJumlah Member : " + str(len(group.members)) + " Orang" + "\nUndangan Yang Belum Diterima : " + str(len(group.invitee)) + " Orang" kr.sendText(msg.to,md) kr.sendMessage(msg) kr.sendImageWithURL(msg.to,"http://dl.profile.line.naver.jp/"+ group.pictureStatus) except: creator = "Error" elif msg.text in ["Friendlist"]: contactlist = kr.getAllContactIds() kontak = kr.getContacts(contactlist) num=1 msgs="═════════List Friend═════════" for ids in kontak: msgs+="\n[%i] %s" % (num, ids.displayName) num=(num+1) msgs+="\n═════════List Friend═════════\n\nTotal Friend : %i" % len(kontak) kr.sendText(msg.to, msgs) elif msg.text in ["Memlist"]: kontak = kr.getGroup(msg.to) group = kontak.members num=1 msgs="═════════List Member═════════-" for ids in group: msgs+="\n[%i] %s" % (num, ids.displayName) num=(num+1) msgs+="\n═════════List Member═════════\n\nTotal Members : %i" % len(group) kr.sendText(msg.to, msgs) elif "Friendinfo: " in msg.text: saya = msg.text.replace('Friendinfo: ','') gid = kr.getAllContactIds() for i in gid: h = kr.getContact(i).displayName contact = kr.getContact(i) cu = kr.channel.getCover(i) path = str(cu) image = "http://dl.profile.line-cdn.net/" + contact.pictureStatus if h == saya: kr.sendText(msg.to,"Nama :\n" + contact.displayName + "\n\nBio :\n" + contact.statusMessage) kr.sendText(msg.to,"Profile Picture " + contact.displayName) kr.sendImageWithURL(msg.to,image) kr.sendText(msg.to,"Cover " + contact.displayName) kr.sendImageWithURL(msg.to,path) elif "Friendpict: " in msg.text: saya = msg.text.replace('Friendpict: ','') gid = kr.getAllContactIds() for i in gid: h = kr.getContact(i).displayName gna = kr.getContact(i) if h == saya: kr.sendImageWithURL(msg.to,"http://dl.profile.line.naver.jp/"+ gna.pictureStatus) elif msg.text in ["Friendlistmid"]: gruplist = kr.getAllContactIds() kontak = kr.getContacts(gruplist) num=1 msgs="═════════ʆίςϯ ƒɾίεηδʍίδ═════════" for ids in kontak: msgs+="\n[%i] %s" % (num, ids.mid) num=(num+1) msgs+="\n═════════ʆίςϯ ƒɾίεηδʍίδ═════════\n\nTotal Friend : %i" % len(kontak) kr.sendText(msg.to, msgs) elif msg.text in ["Blocklist"]: blockedlist = kr.getBlockedContactIds() kontak = kr.getContacts(blockedlist) num=1 msgs="═════════List Blocked═════════" for ids in kontak: msgs+="\n[%i] %s" % (num, ids.displayName) num=(num+1) msgs+="\n═════════List Blocked═════════\n\nTotal Blocked : %i" % len(kontak) kr.sendText(msg.to, msgs) elif msg.text in ["Gruplist"]: gruplist = kr.getGroupIdsJoined() kontak = kr.getGroups(gruplist) num=1 msgs="═════════List Grup═════════" for ids in kontak: msgs+="\n[%i] %s" % (num, ids.name) num=(num+1) msgs+="\n═════════List Grup═════════\n\nTotal Grup : %i" % len(kontak) kr.sendText(msg.to, msgs) elif msg.text in ["Gruplistmid"]: gruplist = kr.getGroupIdsJoined() kontak = kr.getGroups(gruplist) num=1 msgs="═════════List GrupMid═════════" for ids in kontak: msgs+="\n[%i] %s" % (num, ids.id) num=(num+1) msgs+="\n═════════List GrupMid═════════\n\nTotal Grup : %i" % len(kontak) kr.sendText(msg.to, msgs) elif "Grupimage: " in msg.text: saya = msg.text.replace('Grupimage: ','') gid = kr.getGroupIdsJoined() for i in gid: h = kr.getGroup(i).name gna = kr.getGroup(i) if h == saya: kr.sendImageWithURL(msg.to,"http://dl.profile.line.naver.jp/"+ gna.pictureStatus) elif "Grupname" in msg.text: saya = msg.text.replace('Grupname','') gid = kr.getGroup(msg.to) kr.sendText(msg.to, "[Nama Grup : ]\n" + gid.name) elif "Grupid" in msg.text: saya = msg.text.replace('Grupid','') gid = kr.getGroup(msg.to) kr.sendText(msg.to, "[ID Grup : ]\n" + gid.id) elif "Grupinfo: " in msg.text: saya = msg.text.replace('Grupinfo: ','') gid = kr.getGroupIdsJoined() for i in gid: h = kr.getGroup(i).name group = kr.getGroup(i) if h == saya: try: creator = group.creator.mid msg.contentType = 13 msg.contentMetadata = {'mid': creator} md = "Nama Grup :\n" + group.name + "\n\nID Grup :\n" + group.id if group.preventJoinByTicket is False: md += "\n\nKode Url : Diizinkan" else: md += "\n\nKode Url : Diblokir" if group.invitee is None: md += "\nJumlah Member : " + str(len(group.members)) + " Orang" + "\nUndangan Yang Belum Diterima : 0 Orang" else: md += "\nJumlah Member : " + str(len(group.members)) + " Orang" + "\nUndangan Yang Belum Diterima : " + str(len(group.invitee)) + " Orang" kr.sendText(msg.to,md) kr.sendMessage(msg) kr.sendImageWithURL(msg.to,"http://dl.profile.line.naver.jp/"+ group.pictureStatus) except: creator = "Error" elif "Spamtag @" in msg.text: _name = msg.text.replace("Spamtag @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) for g in gs.members: if _nametarget == g.displayName: xname = g.displayName xlen = str(len(xname)+1) msg.contentType = 0 msg.text = "@"+xname+" " msg.contentMetadata ={"MENTION":'{"MENTIONEES":[{"S":"0","E":'+json.dumps(xlen)+',"M":'+json.dumps(g.mid)+'}]}','EMTVER':'4'} kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) print "Spamtag Berhasil." elif "crashkontak @" in msg.text: _name = msg.text.replace("crashkontak @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) for g in gs.members: if _nametarget == g.displayName: msg.contentType = 13 msg.contentMetadata = {'mid': "ua7fb5762d5066629323d113e1266e8ca',"} kr.sendMessage(g.mid,msg.to + str(msg)) kr.sendText(g.mid, "hai") kr.sendText(g.mid, "salken") kr.sendText(msg.to, "Done") print " Spammed crash !" elif "playstore " in msg.text.lower(): tob = msg.text.lower().replace("playstore ","") kr.sendText(msg.to,"Sedang Mencari boss...") kr.sendText(msg.to,"Title : "+tob+"\nSource : Google Play\nLinknya : https://play.google.com/store/search?q=" + tob) kr.sendText(msg.to,"Ketemu boss ^") elif 'wikipedia ' in msg.text.lower(): try: wiki = msg.text.lower().replace("wikipedia ","") wikipedia.set_lang("id") pesan="Title (" pesan+=wikipedia.page(wiki).title pesan+=")\n\n" pesan+=wikipedia.summary(wiki, sentences=3) pesan+="\n" pesan+=wikipedia.page(wiki).url kr.sendText(msg.to, pesan) except: try: pesan="Teks nya kepanjangan! ketik link dibawah aja\n" pesan+=wikipedia.page(wiki).url kr.sendText(msg.to, pesan) except Exception as e: kr.sendText(msg.to, str(e)) elif "say " in msg.text.lower(): say = msg.text.lower().replace("say ","") lang = 'id' tts = gTTS(text=say, lang=lang) tts.save("hasil.mp3") kr.sendAudio(msg.to,"hasil.mp3") elif msg.text in ["spam gift 25"]: msg.contentType = 9 msg.contentMetadata={'PRDID': 'ae3d9165-fab2-4e70-859b-c14a9d4137c4', 'PRDTYPE': 'THEME', 'MSGTPL': '8'} msg.text = None kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) elif msg.text in ["Gcreator:inv"]: if msg.from_ in admin: ginfo = kr.getGroup(msg.to) gCreator = ginfo.creator.mid try: kr.findAndAddContactsByMid(gCreator) kr.inviteIntoGroup(msg.to,[gCreator]) print "success inv gCreator" except: pass elif msg.text in ["Gcreator:kick"]: if msg.from_ in admin: ginfo = kr.getGroup(msg.to) gCreator = ginfo.creator.mid try: kr.findAndAddContactsByMid(gCreator) kr.kickoutFromGroup(msg.to,[gCreator]) print "success inv gCreator" except: pass elif 'lirik ' in msg.text.lower(): try: songname = msg.text.lower().replace('lirik ','') params = {'songname': songname} r = requests.get('http://ide.fdlrcn.com/workspace/yumi-apis/joox?' + urllib.urlencode(params)) data = r.text data = json.loads(data) for song in data: hasil = 'Lyric Lagu (' hasil += song[0] hasil += ')\n\n' hasil += song[5] kr.sendText(msg.to, hasil) except Exception as wak: kr.sendText(msg.to, str(wak)) elif "Getcover @" in msg.text: print "[Command]dp executing" _name = msg.text.replace("Getcover @","") _nametarget = _name.rstrip(' ') gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: ki.sendText(msg.to,"Contact not found") else: for target in targets: try: contact = kr.getContact(target) cu = kr.channel.getCover(target) path = str(cu) kr.sendImageWithURL(msg.to, path) except: pass print "[Command]dp executed" elif "idline: " in msg.text: msgg = msg.text.replace('idline: ','') conn = kr.findContactsByUserid(msgg) if True: msg.contentType = 13 msg.contentMetadata = {'mid': conn.mid} kr.sendText(msg.to,"http://line.me/ti/p/~" + msgg) kr.sendMessage(msg) elif "reinvite" in msg.text.split(): if msg.toType == 2: group = kr.getGroup(msg.to) if group.invitee is not None: try: grCans = [contact.mid for contact in group.invitee] kr.findAndAddContactByMid(msg.to, grCans) kr.cancelGroupInvitation(msg.to, grCans) kr.inviteIntoGroup(msg.to, grCans) except Exception as error: print error else: if wait["lang"] == "JP": kr.sendText(msg.to,"No Invited") else: kr.sendText(msg.to,"Error") else: pass elif msg.text.lower() == 'runtime': eltime = time.time() - mulai van = "Bot sudah berjalan selama "+waktu(eltime) kr.sendText(msg.to,van) elif msg.text in ["Restart"]: kr.sendText(msg.to, "Bot has been restarted") restart_program() print "@Restart" elif msg.text in ["time"]: timeNow = datetime.now() timeHours = datetime.strftime(timeNow,"(%H:%M)") day = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday","Friday", "Saturday"] hari = ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"] bulan = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"] inihari = datetime.today() hr = inihari.strftime('%A') bln = inihari.strftime('%m') for i in range(len(day)): if hr == day[i]: hasil = hari[i] for k in range(0, len(bulan)): if bln == str(k): bln = bulan[k-1] rst = hasil + ", " + inihari.strftime('%d') + " - " + bln + " - " + inihari.strftime('%Y') + "\nJam : [ " + inihari.strftime('%H:%M:%S') + " ]" client.sendText(msg.to, rst) elif "image " in msg.text: search = msg.text.replace("image ","") url = 'https://www.google.com/search?espv=2&biw=1366&bih=667&tbm=isch&oq=kuc&aqs=mobile-gws-lite.0.0l5&q=' + search raw_html = (download_page(url)) items = [] items = items + (_images_get_all_items(raw_html)) path = random.choice(items) print path try: kr.sendImageWithURL(msg.to,path) except: pass elif 'instagram ' in msg.text.lower(): try: instagram = msg.text.lower().replace("instagram ","") html = requests.get('https://www.instagram.com/' + instagram + '/?') soup = BeautifulSoup(html.text, 'html5lib') data = soup.find_all('meta', attrs={'property':'og:description'}) text = data[0].get('content').split() data1 = soup.find_all('meta', attrs={'property':'og:image'}) text1 = data1[0].get('content').split() user = "Name: " + text[-2] + "\n" user1 = "Username: " + text[-1] + "\n" followers = "Followers: " + text[0] + "\n" following = "Following: " + text[2] + "\n" post = "Post: " + text[4] + "\n" link = "Link: " + "https://www.instagram.com/" + instagram detail = "**INSTAGRAM INFO USER**\n" details = "\n**INSTAGRAM INFO USER**" kr.sendText(msg.to, detail + user + user1 + followers + following + post + link + details) kr.sendImageWithURL(msg.to, text1[0]) except Exception as njer: kr.sendText(msg.to, str(njer)) elif msg.text in ["Attack"]: msg.contentType = 13 msg.contentMetadata = {'mid': "ua7fb5762d5066629323d113e1266e8ca',"} kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) kr.sendMessage(msg) elif msg.text.lower() == '...': msg.contentType = 13 msg.contentMetadata = {'mid': "ua7fb5762d5066629323d113e1266e8ca',"} kr.sendMessage(msg) #=================================saya sendiri SCRIPT FINISHED =============================================# elif "Ban @" in msg.text: if msg.toType == 2: _name = msg.text.replace("Ban @","") _nametarget = _name.rstrip() gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,_nametarget + " Not Found") else: for target in targets: try: wait["blacklist"][target] = True kr.sendText(msg.to,_nametarget + " Succes Add to Blacklist") except: kr.sendText(msg.to,"Error") elif "Unban @" in msg.text: if msg.toType == 2: _name = msg.text.replace("Unban @","") _nametarget = _name.rstrip() gs = kr.getGroup(msg.to) targets = [] for g in gs.members: if _nametarget == g.displayName: targets.append(g.mid) if targets == []: kr.sendText(msg.to,_nametarget + " Not Found") else: for target in targets: try: del wait["blacklist"][target] kr.sendText(msg.to,_nametarget + " Delete From Blacklist") except: kr.sendText(msg.to,_nametarget + " Not In Blacklist") elif "Ban:" in msg.text: nk0 = msg.text.replace("Ban:","") nk1 = nk0.lstrip() nk2 = nk1.replace("","") nk3 = nk2.rstrip() _name = nk3 gs = kr.getGroup(msg.to) targets = [] for s in gs.members: if _name in s.displayName: targets.append(s.mid) if targets == []: sendMessage(msg.to,"user does not exist") pass else: for target in targets: try: wait["blacklist"][target] = True f=codecs.open('st2__b.json','w','utf-8') json.dump(wait["blacklist"], f, sort_keys=True, indent=4,ensure_ascii=False) kr.sendText(msg.to,_name + " Succes Add to Blacklist") except: kr.sendText(msg.to,"Error") elif "Unban:" in msg.text: nk0 = msg.text.replace("Unban:","") nk1 = nk0.lstrip() nk2 = nk1.replace("","") nk3 = nk2.rstrip() _name = nk3 gs = kr.getGroup(msg.to) targets = [] for s in gs.members: if _name in s.displayName: targets.append(s.mid) if targets == []: sendMessage(msg.to,"user does not exist") pass else: for target in targets: try: del wait["blacklist"][target] f=codecs.open('st2__b.json','w','utf-8') json.dump(wait["blacklist"], f, sort_keys=True, indent=4,ensure_ascii=False) kr.sendText(msg.to,_name + " Delete From Blacklist") except: kr.sendText(msg.to,_name + " Not In Blacklist") elif msg.text in ["Clear"]: wait["blacklist"] = {} kr.sendText(msg.to,"Blacklist Telah Dibersihkan") elif msg.text in ["Ban:on"]: wait["wblacklist"] = True kr.sendText(msg.to,"Send Contact") elif msg.text in ["Unban:on"]: wait["dblacklist"] = True kr.sendText(msg.to,"Send Contact") elif msg.text in ["Banlist"]: if wait["blacklist"] == {}: kr.sendText(msg.to,"Tidak Ada Blacklist") else: kr.sendText(msg.to,"Daftar Banlist") num=1 msgs="*Blacklist*" for mi_d in wait["blacklist"]: msgs+="\n[%i] %s" % (num, kr.getContact(mi_d).displayName) num=(num+1) msgs+="\n*Blacklist*\n\nTotal Blacklist : %i" % len(wait["blacklist"]) kr.sendText(msg.to, msgs) elif msg.text in ["Conban","Contactban","Contact ban"]: if wait["blacklist"] == {}: kr.sendText(msg.to,"Tidak Ada Blacklist") else: kr.sendText(msg.to,"Daftar Blacklist") h = "" for i in wait["blacklist"]: h = kr.getContact(i) M = Message() M.to = msg.to M.contentType = 13 M.contentMetadata = {'mid': i} kr.sendMessage(M) elif msg.text in ["Midban","Mid ban"]: if msg.toType == 2: group = kr.getGroup(msg.to) gMembMids = [contact.mid for contact in group.members] matched_list = [] for tag in wait["blacklist"]: matched_list+=filter(lambda str: str == tag, gMembMids) num=1 cocoa = "══════════List Blacklist═════════" for mm in matched_list: cocoa+="\n[%i] %s" % (num, mm) num=(num+1) cocoa+="\n═════════List Blacklist═════════\n\nTotal Blacklist : %i" % len(matched_list) kr.sendText(msg.to,cocoa) elif msg.text.lower() == 'scan blacklist': if msg.toType == 2: group = kr.getGroup(msg.to) gMembMids = [contact.mid for contact in group.members] matched_list = [] for tag in wait["blacklist"]: matched_list+=filter(lambda str: str == tag, gMembMids) if matched_list == []: kr.sendText(msg.to,"Tidak ada Daftar Blacklist") return for jj in matched_list: try: kr.kickoutFromGroup(msg.to,[jj]) print (msg.to,[jj]) except: pass #==============================================# if op.type == 26: msg = op.message if msg.contentType == 13: if wait["wblack"] == True: if msg.contentMetadata["mid"] in wait["commentBlack"]: kr.sendText(msg.to,"already") wait["wblack"] = False else: wait["commentBlack"][msg.contentMetadata["mid"]] = True wait["wblack"] = False kr.sendText(msg.to,"decided not to comment") #-------------------------------------------------------- elif msg.text is None: return #-------------------------------------------------------- elif msg.text in ["chery glist"]: #Melihat List Group if msg.from_ in owner: gids = kr.getGroupIdsJoined() h = "" for i in gids: #####gn = kr.getGroup(i).name h += "[•]%s Member\n" % (kr.getGroup(i).name +"👉"+str(len(kr.getGroup(i).members))) kr.sendText(msg.to,"=======[List Group]======\n"+ h +"Total Group :"+str(len(gids))) elif msg.text in ["chery glist2"]: if msg.from_ in owner: gid = kr.getGroupIdsJoined() h = "" for i in gid: h += "[%s]:%s\n" % (kr.getGroup(i).name,i) kr.sendText(msg.to,h) elif "chery asupka " in msg.text: if msg.from_ in owner: gid = msg.text.replace("chery asupka ","") if gid == "": kr.sendText(msg.to,"Invalid group id") else: try: kr.findAndAddContactsByMid(msg.from_) kr.inviteIntoGroup(gid,[msg.from_]) kr.sendText(msg.to,"succes di invite boss, silahkan masuk...!!") except: kr.sendText(msg.to,"Mungkin saya tidak di dalaam grup itu") elif "chery bye" in msg.text: if msg.from_ in owner: if msg.toType == 2: ginfo = kr.getGroup(msg.to) try: kr.leaveGroup(msg.to) except: pass elif "chery megs " in msg.text: if msg.from_ in owner: gName = msg.text.replace("chery megs ","") ap = kr.getGroups([msg.to]) semua = [contact.mid for contact in ap[0].members] nya = ap[0].members for a in nya: Mi_d = str(a.mid) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) elif "#cmegs " in msg.text: if msg.from_ in owner: gName = msg.text.replace("#cmegs ","") ap = kr.getGroups([msg.to]) semua = findAndAddContactsByMid(Mi_d) nya = ap[0].members for a in nya: Mi_d = str(a.mid) klis=[kr] team=random.choice(klis) kr.findAndAddContactsByMid(Mi_d) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) kr.createGroup(gName, semua) team.findAndAddContactsByMid(Mi_d) team.createGroup(gName, semua) team.createGroup(gName, semua) team.createGroup(gName, semua) team.createGroup(gName, semua) team.createGroup(gName, semua) team.createGroup(gName, semua) elif "Crecover" in msg.text: if msg.from_ in owner: thisgroup = kr.getGroups([msg.to]) Mids = [contact.mid for contact in thisgroup[0].members] mi_d = Mids[:33] kr.createGroup("Crecover", mi_d) kr.sendText(msg.to,"Success recover") elif "chery spin" in msg.text: if msg.from_ in owner: thisgroup = kr.getGroups([msg.to]) Mids = [contact.mid for contact in thisgroup[0].members] mi_d = Mids[:33] kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.createGroup("Nah kan", mi_d) kr.sendText(msg.to,"Success...!!!!") elif msg.text in ["Remove all chat"]: if msg.from_ in owner: kr.removeAllMessages(op.param2) kr.removeAllMessages(op.param2) kr.sendText(msg.to,"Removed all chat Finish") elif msg.text in ["chery muach"]: if msg.from_ in owner: msg.contentType = 13 msg.contentMetadata = {'mid': "ua7fb5762d5066629323d113e1266e8ca',"} kr.sendMessage(msg) elif msg.text in ["cherry","chery","Cherry","Chery"]: if msg.from_ in owner: kr.sendText(msg.to,"Cherry masih aktif Bebz...!!!") #============================================= if op.type == 17: if op.param2 not in Bots: if op.param2 in Bots: pass if wait["protect"] == True: if wait["blacklist"][op.param2] == True: try: kr.kickoutFromGroup(op.param1,[op.param2]) G = kr.getGroup(op.param1) G.preventJoinByTicket = True kr.updateGroup(G) except: try: kr.kickoutFromGroup(op.param1,[op.param2]) G = kr.getGroup(op.param1) G.preventJoinByTicket = True kr.updateGroup(G) except: pass if op.type == 19: if op.param2 not in Bots: if op.param2 in Bots: pass elif wait["protect"] == True: wait ["blacklist"][op.param2] = True kr.kickoutFromGroup(op.param1,[op.param2]) kr.inviteIntoGroup(op.param1,[op.param2]) if op.type == 13: if op.param2 not in Bots: if op.param2 in Bots: pass elif wait["inviteprotect"] == True: wait ["blacklist"][op.param2] = True kr.kickoutFromGroup(op.param1,[op.param2]) if op.param2 not in Bots: if op.param2 in Bots: pass elif wait["inviteprotect"] == True: wait ["blacklist"][op.param2] = True kr.cancelGroupInvitation(op.param1,[op.param3]) if op.param2 not in Bots: if op.param2 in Bots: pass elif wait["cancelprotect"] == True: wait ["blacklist"][op.param2] = True kr.cancelGroupInvitation(op.param1,[op.param3]) if op.type == 11: if op.param2 not in Bots: if op.param2 in Bots: pass elif wait["linkprotect"] == True: wait ["blacklist"][op.param2] = True G = kr.getGroup(op.param1) G.preventJoinByTicket = True kr.updateGroup(G) kr.kickoutFromGroup(op.param1,[op.param2]) if op.type == 5: if wait['autoAdd'] == True: if (wait['message'] in [""," ","\n",None]): pass else: kr.sendText(op.param1,str(wait['message'])) if op.type == 11: if wait["linkprotect"] == True: if op.param2 not in Bots: G = kr.getGroup(op.param1) G.preventJoinByTicket = True kr.kickoutFromGroup(op.param1,[op.param3]) kr.updateGroup(G) if op.type == 17: if wait["Wc"] == True: if op.param2 in Bots: return ginfo = kr.getGroup(op.param1) kr.sendText(op.param1, "╔═════════════\n║Selamat Datang Di " + str(ginfo.name) + "\n╠═════════════\n" + "║Founder =>>> " + str(ginfo.name) + " :\n║" + ginfo.creator.displayName + "\n╠═════════════\n" + "║😊Semoga Betah Kak 😘 \n╚═════════════") print "MEMBER HAS JOIN THE GROUP" if op.type == 15: if wait["Lv"] == True: if op.param2 in Bots: return kr.sendText(op.param1, "╔═════════════\n║Baper Tuh Orang :v \n║Semoga Bahagia ya 😊 \n╚═════════════") print "MEMBER HAS LEFT THE GROUP" #------------------------------------------------------------------------------# if op.type == 55: try: if op.param1 in wait2['readPoint']: if op.param2 in wait2['readMember'][op.param1]: pass else: wait2['readMember'][op.param1] += op.param2 wait2['ROM'][op.param1][op.param2] = op.param2 with open('sider.json', 'w') as fp: json.dump(wait2, fp, sort_keys=True, indent=4) else: pass except: pass if op.type == 59: print op except Exception as error: print error def autolike(): count = 1 while True: try: for posts in kr.activity(1)["result"]["posts"]: if posts["postInfo"]["liked"] is False: if wait['likeOn'] == True: kr.like(posts["userInfo"]["writerMid"], posts["postInfo"]["postId"], 1001) print "Like" if wait["commentOn"] == True: if posts["userInfo"]["writerMid"] in wait["commentBlack"]: pass else: kr.comment(posts["userInfo"]["writerMid"],posts["postInfo"]["postId"],wait["comment"]) except: count += 1 if(count == 50): sys.exit(0) else: pass thread2 = threading.Thread(target=autolike) thread2.daemon = True thread2.start() def likefriend(): for zx in range(0,20): hasil = kr.activity(limit=20) if hasil['result']['posts'][zx]['postInfo']['liked'] == False: try: kr.like(hasil['result']['posts'][zx]['userInfo']['mid'],hasil['result']['posts'][zx]['postInfo']['postId'],likeType=1001) kr.comment(hasil['result']['posts'][zx]['userInfo']['mid'],hasil['result']['posts'][zx]['postInfo']['postId'],"👉ąµţ๏ℓɨЌ€ By C-A_Bot😊\n\n☆º°˚˚S̺͆T̺͆A̺͆RA̺͆R͆✰º°˚˚☆(^ω^)\nąµţ๏ℓɨЌ€ by saya sendiri ⭐👈 »»» http://line.me/ti/pVxtJPseezk/p/~saya sendiristhea «««") print "Like" except: pass else: print "Already Liked Om" time.sleep(0.60) def likeme(): for zx in range(0,20): hasil = kr.activity(limit=20) if hasil['result']['posts'][zx]['postInfo']['liked'] == False: if hasil['result']['posts'][zx]['userInfo']['mid'] in mid: try: kr.like(hasil['result']['posts'][zx]['userInfo']['mid'],hasil['result']['posts'][zx]['postInfo']['postId'],likeType=1002) kr.comment(hasil['result']['posts'][zx]['userInfo']['mid'],hasil['result']['posts'][zx]['postInfo']['postId'],"👉ąµţ๏ℓɨЌ€ By C-A_Bot😊\n\n☆º°˚˚S̺͆T̺͆A̺͆RA̺͆R͆✰º°˚˚☆(^ω^)\nąµţ๏ℓɨЌ€ by saya sendiri ⭐👈 »»» http://line.me/ti/pVxtJPseezk/p/~saya sendiristhea «««") print "Like" except: pass else: print "Status Sudah di Like Om" while True: try: Ops = kr.fetchOps(kr.Poll.rev, 5) except EOFError: raise Exception("It might be wrong revision\n" + str(kr.Poll.rev)) for Op in Ops: if (Op.type != OpType.END_OF_OPERATION): kr.Poll.rev = max(kr.Poll.rev, Op.revision) bot(Op)
[ "noreply@github.com" ]
shillbie.noreply@github.com
b63d14cc824a8738ce9d3f5801a84971d2c0fe47
0d5065cf81d4f2bab0f27882e216caa35ca877e9
/firmware/font/ascii_font_converter.py
9aac41a19cc826b2afaf45f135a00774f690e6a4
[]
no_license
aukdata/ir_gun
0ffa7b21677c44937b02937608db6a32ed6222d8
771db3e3629cc917fe2c6dc6eaf1d18b1090869f
refs/heads/master
2020-09-11T21:32:28.385020
2020-01-30T10:26:44
2020-01-30T10:26:44
222,196,911
0
0
null
2020-01-28T13:40:33
2019-11-17T04:28:43
Python
UTF-8
Python
false
false
2,428
py
from PIL import Image import numpy as np from matplotlib import pyplot as plt # separate font data by 4 bits # load a font image img = Image.open('misaki_png_2019-10-19/misaki_gothic_2nd_4x8.png') width, height = img.size # convert the image to ndarray of pixels img_pixels = np.array([[0 if img.getpixel((i, j)) != 0 else 1 for i in range(width)] for j in range(height)]) # split pixels into 8x8 fonts = [img_pixels[(x * 8):((x + 1) * 8), (y * 4):((y + 1) * 4)] for x in range(0, height // 8) for y in range(0, width // 4) ] # write file the converted font with open("misaki_font.hpp", mode="w", encoding="utf8") as f: f.write( "#ifndef MISAKI_FONT_HPP\n" "#define MISAKI_FONT_HPP\n" "\n" "#include <stdint.h>\n" "\n" "namespace gb7::font\n" "{\n" " static constexpr uint8_t misaki_font[][4] =\n" " {\n" ) for i, font in enumerate(fonts): f.write(" { ") has_shape = False font_btis = [0, 0, 0, 0, 0, 0, 0, 0] for row in range(8): for column in range(4): font_btis[row] = font_btis[row] | (font[row][column] << (3 - column)) for row in range(4): h = (font_btis[2 * row] << 4) | font_btis[2 * row + 1] if h != 0: has_shape = True f.write(f"0x{h:02x}, ") if has_shape: f.write("}, // " + f"{(i+1):03}" + ": " + chr(i) + "\n") else: f.write("}, // " + f"{(i+1):03}" + ": invalid\n") # for i, font in enumerate(fonts): # f.write(" { ") # has_shape = False # for c in font: # print(str(font)) # h = 0x00; # for j in range(0, 4): # h = h | c[3 - j] << (3 - j) # f.write(f"0x{h:02x}, ") # if h != 0: # has_shape = True # # if has_shape: # f.write("}, // " + f"{(i+1):03}" + ": " + chr(i) + "\n") # else: # f.write("}, // " + f"{(i+1):03}" + ": invalid\n") f.write( " };\n" "}\n" "\n" "#endif // MISAKI_FONT_HPP\n" ) while True: c = input(":") v = 0 try: v = int(c) except: v = ord(c) print(v) for font in fonts[v]: for c in font: print("#" if c == 1 else " ", end="") print("")
[ "takuma.y0524@gmail.com" ]
takuma.y0524@gmail.com
ceb24b393c835b9c014165e79f836ab8389e9e19
6d6cb143efb04a0edfe9b936fdeb0b5266059765
/List Assignment/List_24.py
b6be829818af62237fab69e3033d1e822203d59a
[]
no_license
Yashverma7089/PythonAssignment
24c26aaec5f52e3c283daf675ae5c03a000760b8
5262f0febb64c0a769729f0a494d65498abdb6b9
refs/heads/master
2023-08-28T13:18:46.792400
2021-10-14T07:37:09
2021-10-14T07:37:09
413,547,918
0
0
null
2021-10-14T07:37:10
2021-10-04T18:56:19
Python
UTF-8
Python
false
false
454
py
# Write a Python program to append a list to the second list. L1 = [] L2 = [] n = int(input("Enter the size of list : ")) for i in range(n): v = int(input("Enter element at %d position : "%(i+1))) L1.append(v) print("First List :",L1) n = int(input("Enter the size of list : ")) for i in range(n): v = int(input("Enter element at %d position : "%(i+1))) L2.append(v) print("Second List :",L2) print("List after appending :",L1+L2)
[ "official.yash8080@gmail.com" ]
official.yash8080@gmail.com
120a29e244a8b4826236879c82f02de9239cc9df
2b5dfacdb7389aefff64c67fac863e3f82d3723e
/source/tygame-sdk/src/tysdk/entity/report4/report_model.py
c890bde6a5b23e32b2b5e55b36e0a073c0545dfe
[]
no_license
hi-noikiy/hall0
54ef76c715f7ac7fec4c9ca175817e12f60fbd6a
21ea94c5b048bc611fb1557ac0b6e3ef4fdbbc09
refs/heads/master
2020-04-08T21:58:55.239106
2018-01-15T14:58:32
2018-01-15T14:58:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,540
py
#! encoding=utf-8 from tyframework.context import TyContext __author__ = 'yuejianqiang' """ DB: TyContext.RedisPayData TYPE: hash KEY: online:appId:userId PROPERTIES: {'timestamp':timePoint, 'daily':duration, 'weekly':duration, 'monthly':duration, 'total':duration} if day(timestamp) != day(now): today = 0 if week(timestamp) != week(now): weekly = 0 if month(timestamp) != month(now): monthly = 0 """ import time from datetime import date class ReportModel(object): def getLastTimestamp(self, appId, userId): assert appId > 0 assert userId > 0 key = 'online:%s:%s' % (appId, userId) timestamp = TyContext.RedisPayData.execute('HGET', key, 'timestamp') if not timestamp: timestamp = int(time.time()) TyContext.RedisPayData.execute('HMSET', key, 'timestamp', timestamp, 'daily', 0, 'weekly', 0, 'monthly', 0, 'total', 0) return int(timestamp) def checkOnline(self, appId, userId): timestamp = int(time.time()) lastTimestamp = self.getLastTimestamp(appId, userId) key = 'online:%s:%s' % (appId, userId) now = date.fromtimestamp(timestamp) last = date.fromtimestamp(lastTimestamp) delta = timestamp - lastTimestamp # 5 minutes offline if delta > 5 * 60: delta = 0 # day change if now.toordinal() != last.toordinal(): daily = int(TyContext.RedisPayData.execute('HGET', key, 'daily')) TyContext.RedisPayData.execute('HSET', key, 'daily', 0) # week change if now.weekday() <= last.weekday() or now.toordinal() - last.toordinal() >= 7: TyContext.RedisPayData.execute('HSET', key, 'weekly', 0) else: weekly = TyContext.RedisPayData.execute('HGET', key, 'weekly') TyContext.RedisPayData.execute('HSET', key, 'weekly', weekly + daily) # month change if now.year != last.year or now.month != last.month: TyContext.RedisPayData.execute('HSET', key, 'monthly', 0) else: monthly = TyContext.RedisPayData.execute('HGET', key, 'monthly') TyContext.RedisPayData.execute('HSET', key, 'monthly', monthly + daily) # 累计在线时间 elif delta > 0: daily = int(TyContext.RedisPayData.execute('HGET', key, 'daily')) TyContext.RedisPayData.execute('HSET', key, 'daily', daily + delta) # set timestamp TyContext.RedisPayData.execute('HSET', key, 'timestamp', timestamp) def queryOnline(self, appId, userId): key = 'online:%s:%s' % (appId, userId) timestamp, daily, weekly, monthly, total = TyContext.RedisPayData.execute('HMGET', key, 'timestamp', 'daily', 'weekly', 'monthly', 'total') now = date.fromtimestamp(int(time.time())) last = date.fromtimestamp(timestamp) if now.toordinal() != last.toordinal(): self.checkOnline(appId, userId) if not timestamp: daily, weekly, monthly, total = 0, 0, 0, 0 return {"daily": daily, "weekly": weekly + daily, "monthly": monthly + daily, "total": total + daily}
[ "cg@ibenxi.com" ]
cg@ibenxi.com
2c462521591bbf401fc82228031e7a38a6e18e1a
a6c94d66a24e70bcad53e1e68caf0a6c7c18688e
/tests/filters/test_multiallelic.py
64b41f058bfdae4363bdf917b01ed789ae1989cf
[ "Apache-2.0" ]
permissive
MarcSaric/aliquot-maf-tools
cb8cccea51b0e364a1adb72fb595afff4fbf392f
6311a293772c3abe5378b47dfcbcc99507eb1746
refs/heads/master
2022-11-21T04:33:59.877628
2020-07-23T16:18:12
2020-07-23T16:18:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,410
py
""" Tests for the ``aliquotmaf.filters.Multiallelic`` class. """ import pytest from collections import OrderedDict from maflib.column_types import StringColumn from aliquotmaf.filters import Multiallelic from aliquotmaf.converters.builder import get_builder @pytest.fixture def setup_filter(): created = [] def _make_filter(): curr = Multiallelic.setup() created.append(curr) return curr yield _make_filter for record in created: record.shutdown() @pytest.fixture def test_scheme(get_test_scheme): vals = [ ('vcf_region', StringColumn) ] coldict = OrderedDict(vals) return get_test_scheme(coldict) def test_setup_multiallelic(setup_filter): filterer = setup_filter() assert isinstance(filterer, Multiallelic) @pytest.mark.parametrize("vcf_region, expected", [ ('chr1:11:.:G:C', False), ('chr1:10:.:C:T,G', True), ('chr1:10:.:C:T,G,A', True), ('chr2:8:.:CTACTT:C', False), ('chr1:10:.:C:T,T,C', False) ]) def test_multiallelic_filter(test_scheme, setup_filter, get_empty_maf_record, vcf_region, expected): """ Test multiallelic filter """ filterer = setup_filter() maf_record = get_empty_maf_record maf_record['vcf_region'] = get_builder('vcf_region', test_scheme, value=vcf_region) result = filterer.filter(maf_record) assert result is expected
[ "kmhernan84@gmail.com" ]
kmhernan84@gmail.com
93a8e2106cdc6e4adfd996441f07c47940bc3202
f30c12f7d888551db849f28c754f50eefc17f2ad
/tests/test_resource_base.py
bca57e2c5ce35d191eb808c551bf4e58ecdb8088
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
fourdigits/mollie-api-python
463eaf13e1e2500f80ec84ce2b7877191c6bb354
e5c075184df005456be7ad892cd40a8b7bab18e3
refs/heads/master
2023-01-28T02:27:05.119688
2023-01-05T15:48:32
2023-01-05T15:48:32
141,251,881
0
0
BSD-2-Clause
2021-06-14T09:54:55
2018-07-17T07:49:35
Python
UTF-8
Python
false
false
1,137
py
import pytest from mollie.api.error import IdentifierError from mollie.api.resources.base import ResourceBase class MyTestResource(ResourceBase): """Minimal resource for testing.""" RESOURCE_ID_PREFIX = "test_" def test_validate_resource_id(client): resource = MyTestResource(client) with pytest.raises(IdentifierError) as excinfo: resource.validate_resource_id("invalid") assert str(excinfo.value) == "Invalid Identifier 'invalid', it should start with 'test_'." def test_validate_resource_id_custom_identifier_name(client): resource = MyTestResource(client) with pytest.raises(IdentifierError) as excinfo: resource.validate_resource_id("invalid", name="MockerMockMock") assert str(excinfo.value) == "Invalid MockerMockMock 'invalid', it should start with 'test_'." def test_validate_resource_id_custom_message(client): resource = MyTestResource(client) with pytest.raises(IdentifierError) as excinfo: resource.validate_resource_id("invalid", message="No no no, only tests allowed here!") assert str(excinfo.value) == "No no no, only tests allowed here!"
[ "tom@fourdigits.nl" ]
tom@fourdigits.nl
ae516c51b3977e3856c0072bde68208f4bc7ef3d
a3a1008cf90d54a05947b0ab4b4da9d1f20a4b38
/real_time_prediction/real_time_prediction.py
3b7f75ffd4f1a7aa6b1b91facf14a443f801a404
[]
no_license
DelphinAlexandra/umatch
5f5859bfb86f2656e643ed4061d89b0a21ce48ca
62b8cac71487770d936b7f393f219a61eab59596
refs/heads/master
2020-05-03T11:02:51.727926
2019-03-30T16:52:40
2019-03-30T16:53:18
178,592,452
0
0
null
2019-03-30T17:49:52
2019-03-30T17:49:52
null
UTF-8
Python
false
false
5,581
py
from imutils.video import VideoStream from imutils import face_utils import imutils import time import dlib import cv2 import pickle # EYES def dist_between_eyebrow(shape): den = abs(float(shape[16][0] - shape[0][0])) if den == 0: den = 0.1 dist = abs(float(shape[22][0] - shape[21][0])) / den return dist def dist_corner_eye_right(shape): den = abs(float(shape[15][1] - shape[22][1])) if den == 0: den = 0.1 dist = abs(float(shape[42][1] - shape[22][1])) / den return dist def dist_corner_eye_left(shape): den = abs(float(shape[1][1] - shape[21][1])) if den == 0: den = 0.1 dist = abs(float(shape[39][1] - shape[21][1])) / den return dist def dist_eyebrow_eye_right(shape): den = abs(float(shape[41][1] - shape[19][1])) if den == 0: den = 0.1 dist = abs(float(shape[37][1] - shape[19][1])) / den return dist def dist_eyebrow_eye_left(shape): den = abs(float(shape[46][1] - shape[24][1])) if den == 0: den = 0.1 dist = abs(float(shape[44][1] - shape[24][1])) / den return dist def dist_open_eye_right(shape): den = abs(float(shape[45][0] - shape[42][0])) if den == 0: den = 0.1 dist = abs(float(shape[47][1] - shape[43][1])) / den return dist def dist_open_eye_left(shape): den = abs(float(shape[39][0] - shape[36][0])) if den == 0: den = 0.1 dist = abs(float(shape[40][1] - shape[38][1])) / den return dist # NOSE def dist_nose_width(shape): den = abs(float(shape[14][0] - shape[2][0])) if den == 0: den = 0.1 dist = abs(float(shape[35][0] - shape[31][0])) / den return dist def dist_nose_height(shape): den = abs(float(shape[6][1] - shape[27][1])) if den == 0: den = 0.1 dist = abs(float(shape[31][1] - shape[27][1])) / den return dist # MOUTH def dist_mouth(shape): width = abs(shape[54][0] - shape[48][0]) height = abs(shape[57][1] - shape[51][1]) if height == 0: height = 0.1 dist = float(width) / float(height) return dist def dist_min_mouth(shape): width = abs(shape[54][0] - shape[48][0]) height = abs(shape[66][1] - shape[62][1]) if height == 0: height = 0.1 dist = float(width) / float(height) return dist def dist_mouth_width(shape): den = abs(float(shape[13][0] - shape[3][0])) if den == 0: den = 0.1 dist = abs(float(shape[54][0] - shape[48][0])) / den return dist def dist_mouth_cheeks_right(shape): den = abs(float(shape[13][0] - shape[3][0])) if den == 0: den = 0.1 dist = abs(float(shape[13][0] - shape[54][0])) / den return dist def dist_mouth_cheeks_left(shape): den = abs(float(shape[13][0] - shape[3][0])) if den == 0: den = 0.1 dist = abs(float(shape[48][0] - shape[3][0])) / den return dist def dist_mouth_corner(shape): den = abs(float(shape[8][1] - shape[51][1])) if den == 0: den = 0.1 dist = abs(float(shape[54][1] - shape[51][1])) / den return dist # initialize dlib's face detector (HOG-based) and then create # the facial landmark predictor print("[INFO] loading facial landmark predictor...") detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat") loadmod = pickle.load(open("learning_save.sav", 'rb')) # initialize the video stream and allow the cammera sensor to warmup print("[INFO] camera sensor warming up...") vs = VideoStream(0).start() time.sleep(2.0) start = time.time() # loop over the frames from the video stream while True: # grab the frame from the threaded video stream, resize it to # have a maximum width of 400 pixels, and convert it to # grayscale frame = vs.read() frame = imutils.resize(frame, width=800) gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) # detect faces in the grayscale frame rects = detector(gray, 0) end = time.time() if(end - start > 2) : start = time.time() # loop over the face detections for rect in rects: # determine the facial landmarks for the face region, then # convert the facial landmark (x, y)-coordinates to a NumPy # array shape = predictor(gray, rect) shape = face_utils.shape_to_np(shape) features = [] features.append(dist_between_eyebrow(shape)) features.append(dist_corner_eye_right(shape)) features.append(dist_corner_eye_left(shape)) features.append(dist_eyebrow_eye_right(shape)) features.append(dist_eyebrow_eye_left(shape)) features.append(dist_open_eye_right(shape)) features.append(dist_open_eye_left(shape)) features.append(dist_nose_width(shape)) features.append(dist_nose_height(shape)) features.append(dist_mouth(shape)) features.append(dist_min_mouth(shape)) features.append(dist_mouth_width(shape)) features.append(dist_mouth_cheeks_right(shape)) features.append(dist_mouth_cheeks_left(shape)) features.append(dist_mouth_corner(shape)) # Prediction emotion = loadmod.predict([features]) print(emotion) # show the frame end = time.time() cv2.imshow("Frame", frame) key = cv2.waitKey(1) & 0xFF # if the `q` key was pressed, break from the loop if key == ord("q"): break # do a bit of cleanup cv2.destroyAllWindows() vs.stop()
[ "niroan.jeyathasan@edu.esiee.fr" ]
niroan.jeyathasan@edu.esiee.fr
2718fe114ffec09c90df5e3bca519e92e3ea3d75
ab1493c55cf9ee2f5a0b114b551b18c75a079131
/lab1.py
6832968966adf67e32d430a7e16cd75649305e52
[]
no_license
KotovNikita16/PLs
5b2729e8c52eddeee80c186256ec5584670bb451
b93a0fe8b81917cffc73573a959b731f263d18fe
refs/heads/master
2020-09-12T00:30:00.133874
2019-11-17T13:07:15
2019-11-17T13:07:15
222,241,189
0
0
null
null
null
null
UTF-8
Python
false
false
4,110
py
#Скрипт работает с файлами и папками, находясь в той же директории, что и папка с файлами (по умолчанию папка space). Клиент - localhost #Скачать файл или перейти в папку - кликнуть по привязанной к имени ссылке. Сверху указана текущая директория. #Удалить пустую папку или файл - кликнуть по ссылке [DELETE] рядом с именем файла или папки, которую нужно удалить. После перехода на страницу с сообщением об успешном удалении вернуться на предыдущую странуицу и обновить. from http.server import BaseHTTPRequestHandler,HTTPServer import os import shutil import urllib.parse hostName = "localhost" hostPort = 80 Space_name = '/space' access = os.path.abspath(os.path.dirname(__file__)) + Space_name class HttpProcessor(BaseHTTPRequestHandler): def _set_response(self): self.send_response(200) self.send_header('content-type','text/html') self.end_headers() def do_GET(self): directory = urllib.parse.unquote(self.path) if directory != '/favicon.ico': if directory[1:3] == "r/": self._set_response() directory = (access + directory[2:]) try: os.remove(directory) self.wfile.write('<!DOCTYPE html><html><head><meta charset="UTF-8"/><title>DRIVE</title></head><body>File "{}" deleted</body></html>'.format(os.path.basename(directory)).encode()) except OSError: os.rmdir(directory) self.wfile.write('<!DOCTYPE html><html><head><meta charset="UTF-8"/><title>DRIVE</title></head><body>Folder "{}" deleted</body></html>'.format(os.path.basename(directory)).encode()) else: directory = access + directory if os.path.isdir(directory): self._set_response() files = os.listdir(directory) stroka = '<body>' + Space_name[1:] + urllib.parse.unquote(self.path if self.path != '/' else '') + '</br>' for ele in files: stroka += '<li><a href="http://' + hostName + (self.path if self.path != '/' else '') + '/' + ele + '">' + ele + '</a>' if os.path.isfile(directory + '/' + ele): stroka += '<a href="http://' + hostName + '/r' + (self.path if self.path != '/' else '') + '/' + ele + '">[DELETE]</a>' elif os.listdir(directory + '/' + ele) == []: stroka += '<a href="http://' + hostName + '/r' + (self.path if self.path != '/' else '') + '/' + ele + '">[DELETE]</a>' stroka += '</li>' self.wfile.write(('<!DOCTYPE html><html><head><meta charset="UTF-8"/><title>DRIVE</title></head>' + stroka + '</body></html>').encode()) else: with open(directory, 'rb') as f: self.send_response(200) self.send_header("Content-Type", 'application/octet-stream') self.send_header("Content-Disposition", 'attachment; filename="' + urllib.parse.quote(os.path.basename(directory)) + '"') fs = os.fstat(f.fileno()) self.send_header("Content-Length", str(fs.st_size)) self.end_headers() shutil.copyfileobj(f, self.wfile) serv = HTTPServer((hostName,hostPort),HttpProcessor) serv.serve_forever()
[ "noreply@github.com" ]
KotovNikita16.noreply@github.com
37e484c9ec7644fcc199e0f648434dce3c0335e5
ebc2d985be14f4ba47cc95ac1c2da1f902b06fc0
/main_app/urls.py
11ed6e308119202da0421e454ff4d8edf7fdc38d
[]
no_license
NerokuGR/memory_place
9bf6278237cd3bedf321cebf3e89606511341528
591e8a09b17abb97a2b9daef9963470e63d72fdc
refs/heads/master
2023-02-07T19:22:21.893458
2020-12-20T12:53:22
2020-12-20T12:53:22
321,064,786
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
from django.urls import path, include from django.contrib.auth import views as auth_views from main_app import views urlpatterns = [ path('about', views.about, name='about'), path('login/', views.login, name='login'), path('logout/', auth_views.LogoutView.as_view(), name='logout'), path('social-auth/', include('social_django.urls', namespace="social")), path('', views.home, name='home'), ]
[ "ragnerikon@gmail.com" ]
ragnerikon@gmail.com
1118e1c5495c1500d401aec88b03b156114973d1
b42dbbb17d3f287cdd447ecbd0155062dcc51263
/triWeb_backend/MultiRunCounter.py
24339545b2734cdf57f25a25e497f800b85a6129
[]
no_license
AnitaTang/web_TriAquae
52dc790630081b0b8cc427c8b3af1c16f41451aa
053ffbd982d9ba357304382b7e649804c006e2a8
refs/heads/master
2021-01-23T20:06:28.389936
2013-07-21T12:15:58
2013-07-21T12:15:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
#!/usr/bin/env python import db_connector from web01.models import OpsLog def AddNumber(): current_num = OpsLog.objects.latest('track_mark').track_mark #MultiRunCounter.objects.all()[0] new_num = current_num + 1 return new_num if __name__ == '__main__': print 'This module can not be run by it self,must be called by other programs.' print AddNumber()
[ "lijie3721@126.com" ]
lijie3721@126.com
8b4108e35c277d3750a8538ae024b261569e44ed
3276607f5ed4e33fadd4a9a347396c714e43dec4
/tests/conftest.py
33e66b48e6e6cf55e6960889831d4d564c7cee90
[ "MIT" ]
permissive
jlumpe/python-emacs
f22ef3c995be7a7da2a2391d5e9d84f9e8844ab6
b92cb574ea5b8a339e2d70d7862e1d7740114683
refs/heads/master
2022-02-03T11:42:41.717946
2022-01-22T19:55:26
2022-01-22T19:55:26
201,527,580
14
2
null
null
null
null
UTF-8
Python
false
false
1,505
py
import time import subprocess as sp from contextlib import contextmanager import pytest from emacs import EmacsBatch, EmacsClient SERVER_NAME = 'pytest' DAEMON_ARGS = ['-Q', f'--fg-daemon={SERVER_NAME}'] def make_batch(): return EmacsBatch(args=['-Q']) def make_client(): return EmacsClient(server=SERVER_NAME) @contextmanager def daemon_context(startup=.25): proc = sp.Popen(['emacs', *DAEMON_ARGS], stdout=sp.PIPE, stderr=sp.PIPE) try: # Allow some time to start up time.sleep(startup) assert proc.poll() is None, 'Daemon failed to start' yield proc # Should still be running assert proc.poll() is None, 'Daemon exited prematurely' finally: # Quit proc.terminate() proc.wait() # Log daemon output - by default only shown on test failure stdout = proc.stdout.read().decode() print('Emacs daemon stdout:') print(stdout.strip()) stderr = proc.stderr.read().decode() print('Emacs daemon stderr:') print(stderr.strip()) @pytest.fixture() def daemon(): """An emacs daemon process that is kept alive for the duration of the test(s).""" with daemon_context() as daemon: yield daemon @pytest.fixture() def batch(): return make_batch() @pytest.fixture() def client(daemon): return make_client() @pytest.fixture(params=['client', 'batch']) def emacs(request, daemon): """Parameterized both EmacsBatch and EmacsClient.""" if request.param == 'client': return make_client() elif request.param == 'batch': return make_batch() else: assert 0
[ "mjlumpe@gmail.com" ]
mjlumpe@gmail.com
aaf563002d6a3dcf55f512a6b3f52e1f223b92df
a5620c5989e4df703e6d4562682ab24498ece44a
/word2vec.py
5ca103bfd81dad94edaeb5e4c3506e67436f75e8
[]
no_license
karthiktsaliki/Game_of_Thrones_Analogy
86b1680234b8ebf77b73782223db45ab3e75b712
2a911e26bc28c88c49ca7cd1f547e529ac786690
refs/heads/master
2021-01-20T13:03:55.559900
2017-08-29T07:23:00
2017-08-29T07:23:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,054
py
from __future__ import absolute_import,division,print_function import codecs import glob import multiprocessing import os import re import nltk import gensim from sklearn.manifold import TSNE import numpy as np bookfilenames=sorted(glob.glob("*.txt")) print(bookfilenames) corpus_raw=u"" for book_filename in bookfilenames: with codecs.open(book_filename,"r","utf-8") as book_file: corpus_raw+=book_file.read() tokenizer=nltk.data.load('tokenizers/punkt/english.pickle') print(corpus_raw) raw_sentences=tokenizer.tokenize(corpus_raw) print(raw_sentences[5]) def sentence_to_wordlist(raw): clean=re.sub('[^a-zA-Z]'," ",raw) words=clean.split() return words sentences=[] for raw_sentence in raw_sentences: if len(raw_sentence)>0: sentences.append(sentence_to_wordlist(raw_sentence)) print(sentence_to_wordlist(raw_sentences[5])) token_count=sum(len(sentence) for sentence in sentences) print(token_count) num_features=300 min_word_count=1 num_workers=multiprocessing.cpu_count() context_size=7 downsampling=1e-3 seed=1 thrones2vec=gensim.models.Word2Vec(sentences,sg=1, seed=seed, workers=num_workers, size=num_features, min_count=min_word_count, window=context_size, sample=downsampling ) if not os.path.exists('trained'): os.makedirs('trained') thrones2vec.save(os.path.join("trained","thrones2vec.w2v")) thrones2vec=gensim.models.Word2Vec.load(os.path.join("trained","thrones2vec.w'2v")) #Dimensionality Reduction model=TSNE(n_components=2,random_state=0) np.set_printoptions(suppress=True) all_words_vectors_matrix_2d=model.fit_transform(thrones2vec.wv.syn0) # tsne=sklearn.manifold.TSNE(n_components=2,random_state=0) # all_words_vectors_matrix_2d=tsne.fit_transform(thrones2vec.wv.syn0) #print(all_words_vectors_matrix_2d) print(thrones2vec.most_similar("Stark")) def nearest(start1,end1,end2): similarites=thrones2vec.most_similar_cosmul(positive=[end2,start1],negative=[end1]) start2=similarites[0][0] print(start2) nearest("Stark","Winterfell","Riverrun")
[ "noreply@github.com" ]
karthiktsaliki.noreply@github.com
5fbbcbe879a19e6e60a6914ff2ed082bc219a5a4
c44e465c0de7cf286ec47ad307b00f69b2308eb0
/order/urls.py
1ae9d59b2b859c999bc41fa0d5df659a5c22d04a
[]
no_license
pororo3224/shop
1407826ef1dfba7850e704ba17441f655605dd70
26cba868ec4b0fb765faaada60775623df66479a
refs/heads/master
2022-11-05T10:50:50.344488
2020-06-24T11:13:59
2020-06-24T11:13:59
274,647,197
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
from django.urls import path from .views import * app_name = 'orders' urlpatterns = [ path('create/', order_create, name='order_create'), path('create_ajax/', OrderCreateAjaxView.as_view(), name='order_create_ajax'), path('checkout/', OrderCheckoutAjaxView.as_view(), name='order_checkout'), path('validation/', OrderImpAjaxView.as_view(), name='order_validation'), path('complete/', order_complete, name='order_complete'), path('admin/order/<int:order_id>/', admin_order_detail, name='admin_order_detail'), # !!! # path('admin/order/<int:order_id>/pdf/', admin_order_pdf, name='admin_order_pdf'), # !!! ]
[ "pororo3224@gmail.com" ]
pororo3224@gmail.com
0a6ee9257a8cbca2b86d55f02bb526b30e8f1a60
9e9579daf35449571f64f20ff2d9bda23b9bbe91
/formatting.py
5f5388ffc7c3b55cac1dd20af7682f0e3adb6f2d
[]
no_license
thijshosman/python-playground
20b4c5aae84be91896a6a0a27f7d0f46f14ee8fa
412f96f60f28f021cc1f8dc3f6ae4e1a8d0b756b
refs/heads/master
2021-01-21T04:35:53.543150
2016-04-27T05:08:32
2016-04-27T05:08:32
40,724,334
0
0
null
null
null
null
UTF-8
Python
false
false
25
py
print 'test %.1f' % 4.4
[ "thijs.hosman@gmail.com" ]
thijs.hosman@gmail.com
b9b9c1156261f03e355d0f4530b1fad288d4b69c
adade268faef8d76cf17df10ec41203efeb5ebd4
/google-cloud-sdk/google-cloud-sdk/platform/gsutil/gslib/tests/test_rsync.py
1041356c54e7ab5c63efd105ce0000e9b452ef00
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dovikn/glass-findmycar
f6d28228deec5c379a802bd49527176b108f6237
3755409e30f7c2247c6c8ff12dac1c6b99490204
refs/heads/master
2021-01-12T02:08:34.995245
2017-01-10T04:00:23
2017-01-10T04:00:23
78,477,488
0
1
null
2020-07-25T00:53:54
2017-01-09T23:05:29
Python
UTF-8
Python
false
false
39,720
py
# -*- coding: utf-8 -*- # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Integration tests for rsync command.""" import os import crcmod import gslib.tests.testcase as testcase from gslib.tests.testcase.integration_testcase import SkipForS3 from gslib.tests.util import ObjectToURI as suri from gslib.tests.util import PerformsFileToObjectUpload from gslib.tests.util import SetBotoConfigForTest from gslib.tests.util import unittest from gslib.util import IS_WINDOWS from gslib.util import Retry from gslib.util import UsingCrcmodExtension NO_CHANGES = 'Building synchronization state...\nStarting synchronization\n' def _TailSet(start_point, listing): """Returns set of object name tails. Tails can be compared between source and dest, past the point at which rsync was done. For example if test ran rsync gs://bucket1/dir gs://bucket2/dir2, the tails for listings from bucket1 would start after "dir", while the tails for listings from bucket2 would start after "dir2". Args: start_point: The target of the rsync command, e.g., for the above command it would be gs://bucket1/dir for the bucket1 listing results and gs://bucket2/dir2 for the bucket2 listing results. listing: The listing over which to compute tail. Returns: Object name tails. """ return set(l[len(start_point):] for l in listing.strip().split('\n')) class TestRsync(testcase.GsUtilIntegrationTestCase): """Integration tests for rsync command.""" @staticmethod def _FlatListDir(directory): """Perform a flat listing over directory. Args: directory: The directory to list Returns: Listings with path separators canonicalized to '/', to make assertions easier for Linux vs Windows. """ result = [] for dirpath, _, filenames in os.walk(directory): for f in filenames: result.append(os.path.join(dirpath, f)) return '\n'.join(result).replace('\\', '/') def _FlatListBucket(self, bucket_uri): """Perform a flat listing over bucket_uri.""" return self.RunGsUtil(['ls', suri(bucket_uri, '**')], return_stdout=True) def test_invalid_args(self): """Tests various invalid argument cases.""" bucket_uri = self.CreateBucket() obj1 = self.CreateObject(bucket_uri=bucket_uri, object_name='obj1', contents='obj1') tmpdir = self.CreateTempDir() # rsync object to bucket. self.RunGsUtil(['rsync', suri(obj1), suri(bucket_uri)], expected_status=1) # rsync bucket to object. self.RunGsUtil(['rsync', suri(bucket_uri), suri(obj1)], expected_status=1) # rsync bucket to non-existent bucket. self.RunGsUtil(['rsync', suri(bucket_uri), self.nonexistent_bucket_name], expected_status=1) # rsync object to dir. self.RunGsUtil(['rsync', suri(obj1), tmpdir], expected_status=1) # rsync dir to object. self.RunGsUtil(['rsync', tmpdir, suri(obj1)], expected_status=1) # rsync dir to non-existent bucket. self.RunGsUtil(['rsync', tmpdir, suri(obj1), self.nonexistent_bucket_name], expected_status=1) # Note: The tests below exercise the cases # {src_dir, src_bucket} X {dst_dir, dst_bucket}. We use gsutil rsync -d for # all the cases but then have just one test without -d (test_bucket_to_bucket) # as representative of handling without the -d option. This provides # reasonable test coverage because the -d handling it src/dest URI-type # independent, and keeps the test case combinations more manageable. def test_bucket_to_bucket(self): """Tests that flat and recursive rsync between 2 buckets works correctly.""" # Create 2 buckets with 1 overlapping object, 1 extra object at root level # in each, and 1 extra object 1 level down in each. Make the overlapping # objects named the same but with different content, to test that we detect # and properly copy in that case. bucket1_uri = self.CreateBucket() bucket2_uri = self.CreateBucket() self.CreateObject(bucket_uri=bucket1_uri, object_name='obj1', contents='obj1') self.CreateObject(bucket_uri=bucket1_uri, object_name='obj2', contents='obj2') self.CreateObject(bucket_uri=bucket1_uri, object_name='subdir/obj3', contents='subdir/obj3') self.CreateObject(bucket_uri=bucket2_uri, object_name='obj2', contents='OBJ2') self.CreateObject(bucket_uri=bucket2_uri, object_name='obj4', contents='obj4') self.CreateObject(bucket_uri=bucket2_uri, object_name='subdir/obj5', contents='subdir/obj5') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check1(): """Tests rsync works as expected.""" self.RunGsUtil(['rsync', suri(bucket1_uri), suri(bucket2_uri)]) listing1 = _TailSet(suri(bucket1_uri), self._FlatListBucket(bucket1_uri)) listing2 = _TailSet(suri(bucket2_uri), self._FlatListBucket(bucket2_uri)) # First bucket should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/subdir/obj3'])) # Second bucket should have new objects added from source bucket (without # removing extraneeous object found in dest bucket), and without the # subdir objects synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/obj4', '/subdir/obj5'])) # Assert that the src/dest objects that had same length but different # content were correctly synchronized (bucket to bucket sync uses # checksums). self.assertEquals('obj2', self.RunGsUtil( ['cat', suri(bucket1_uri, 'obj2')], return_stdout=True)) self.assertEquals('obj2', self.RunGsUtil( ['cat', suri(bucket2_uri, 'obj2')], return_stdout=True)) _Check1() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', suri(bucket1_uri), suri(bucket2_uri)], return_stderr=True)) # Now add and remove some objects in each bucket and test rsync -r. self.CreateObject(bucket_uri=bucket1_uri, object_name='obj6', contents='obj6') self.CreateObject(bucket_uri=bucket2_uri, object_name='obj7', contents='obj7') self.RunGsUtil(['rm', suri(bucket1_uri, 'obj1')]) self.RunGsUtil(['rm', suri(bucket2_uri, 'obj2')]) # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check2(): self.RunGsUtil(['rsync', '-r', suri(bucket1_uri), suri(bucket2_uri)]) listing1 = _TailSet(suri(bucket1_uri), self._FlatListBucket(bucket1_uri)) listing2 = _TailSet(suri(bucket2_uri), self._FlatListBucket(bucket2_uri)) # First bucket should have un-altered content. self.assertEquals(listing1, set(['/obj2', '/obj6', '/subdir/obj3'])) # Second bucket should have objects tha were newly added to first bucket # (wihout removing extraneous dest bucket objects), and without the # subdir objects synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/obj4', '/obj6', '/obj7', '/subdir/obj3', '/subdir/obj5'])) _Check2() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-r', suri(bucket1_uri), suri(bucket2_uri)], return_stderr=True)) def test_bucket_to_bucket_minus_d(self): """Tests that flat and recursive rsync between 2 buckets works correctly.""" # Create 2 buckets with 1 overlapping object, 1 extra object at root level # in each, and 1 extra object 1 level down in each. Make the overlapping # objects named the same but with different content, to test that we detect # and properly copy in that case. bucket1_uri = self.CreateBucket() bucket2_uri = self.CreateBucket() self.CreateObject(bucket_uri=bucket1_uri, object_name='obj1', contents='obj1') self.CreateObject(bucket_uri=bucket1_uri, object_name='obj2', contents='obj2') self.CreateObject(bucket_uri=bucket1_uri, object_name='subdir/obj3', contents='subdir/obj3') self.CreateObject(bucket_uri=bucket2_uri, object_name='obj2', contents='OBJ2') self.CreateObject(bucket_uri=bucket2_uri, object_name='obj4', contents='obj4') self.CreateObject(bucket_uri=bucket2_uri, object_name='subdir/obj5', contents='subdir/obj5') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check1(): """Tests rsync works as expected.""" self.RunGsUtil(['rsync', '-d', suri(bucket1_uri), suri(bucket2_uri)]) listing1 = _TailSet(suri(bucket1_uri), self._FlatListBucket(bucket1_uri)) listing2 = _TailSet(suri(bucket2_uri), self._FlatListBucket(bucket2_uri)) # First bucket should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/subdir/obj3'])) # Second bucket should have content like first bucket but without the # subdir objects synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/subdir/obj5'])) # Assert that the src/dest objects that had same length but different # content were correctly synchronized (bucket to bucket sync uses # checksums). self.assertEquals('obj2', self.RunGsUtil( ['cat', suri(bucket1_uri, 'obj2')], return_stdout=True)) self.assertEquals('obj2', self.RunGsUtil( ['cat', suri(bucket2_uri, 'obj2')], return_stdout=True)) _Check1() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', suri(bucket1_uri), suri(bucket2_uri)], return_stderr=True)) # Now add and remove some objects in each bucket and test rsync -r. self.CreateObject(bucket_uri=bucket1_uri, object_name='obj6', contents='obj6') self.CreateObject(bucket_uri=bucket2_uri, object_name='obj7', contents='obj7') self.RunGsUtil(['rm', suri(bucket1_uri, 'obj1')]) self.RunGsUtil(['rm', suri(bucket2_uri, 'obj2')]) # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check2(): self.RunGsUtil(['rsync', '-d', '-r', suri(bucket1_uri), suri(bucket2_uri)]) listing1 = _TailSet(suri(bucket1_uri), self._FlatListBucket(bucket1_uri)) listing2 = _TailSet(suri(bucket2_uri), self._FlatListBucket(bucket2_uri)) # First bucket should have un-altered content. self.assertEquals(listing1, set(['/obj2', '/obj6', '/subdir/obj3'])) # Second bucket should have content like first bucket but without the # subdir objects synchronized. self.assertEquals(listing2, set(['/obj2', '/obj6', '/subdir/obj3'])) _Check2() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', '-r', suri(bucket1_uri), suri(bucket2_uri)], return_stderr=True)) # Test sequential upload as well as parallel composite upload case. @PerformsFileToObjectUpload @unittest.skipUnless(UsingCrcmodExtension(crcmod), 'Test requires fast crcmod.') def test_dir_to_bucket_minus_d(self): """Tests that flat and recursive rsync dir to bucket works correctly.""" # Create dir and bucket with 1 overlapping object, 1 extra object at root # level in each, and 1 extra object 1 level down in each. Make the # overlapping objects named the same but with different content, to test # that we detect and properly copy in that case. tmpdir = self.CreateTempDir() subdir = os.path.join(tmpdir, 'subdir') os.mkdir(subdir) bucket_uri = self.CreateBucket() self.CreateTempFile(tmpdir=tmpdir, file_name='obj1', contents='obj1') self.CreateTempFile(tmpdir=tmpdir, file_name='obj2', contents='obj2') self.CreateTempFile(tmpdir=subdir, file_name='obj3', contents='subdir/obj3') self.CreateObject(bucket_uri=bucket_uri, object_name='obj2', contents='OBJ2') self.CreateObject(bucket_uri=bucket_uri, object_name='obj4', contents='obj4') self.CreateObject(bucket_uri=bucket_uri, object_name='subdir/obj5', contents='subdir/obj5') # Need to make sure the bucket listing is caught-up, otherwise the # first rsync may not see obj2 and overwrite it. self.AssertNObjectsInBucket(bucket_uri, 3) # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check1(): """Tests rsync works as expected.""" self.RunGsUtil(['rsync', '-d', tmpdir, suri(bucket_uri)]) listing1 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) listing2 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) # Dir should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/subdir/obj3'])) # Bucket should have content like dir but without the subdir objects # synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/subdir/obj5'])) # Assert that the src/dest objects that had same length but different # content were not synchronized (dir to bucket sync doesn't use checksums # unless you specify -c). with open(os.path.join(tmpdir, 'obj2')) as f: self.assertEquals('obj2', '\n'.join(f.readlines())) self.assertEquals('OBJ2', self.RunGsUtil( ['cat', suri(bucket_uri, 'obj2')], return_stdout=True)) _Check1() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', tmpdir, suri(bucket_uri)], return_stderr=True)) # Now rerun the sync with the -c option. # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check2(): """Tests rsync -c works as expected.""" self.RunGsUtil(['rsync', '-d', '-c', tmpdir, suri(bucket_uri)]) listing1 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) listing2 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) # Dir should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/subdir/obj3'])) # Bucket should have content like dir but without the subdir objects # synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/subdir/obj5'])) # Assert that the src/dest objects that had same length but different # content were synchronized (dir to bucket sync with -c uses checksums). with open(os.path.join(tmpdir, 'obj2')) as f: self.assertEquals('obj2', '\n'.join(f.readlines())) self.assertEquals('obj2', self.RunGsUtil( ['cat', suri(bucket_uri, 'obj2')], return_stdout=True)) _Check2() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', '-c', tmpdir, suri(bucket_uri)], return_stderr=True)) # Now add and remove some objects in dir and bucket and test rsync -r. self.CreateTempFile(tmpdir=tmpdir, file_name='obj6', contents='obj6') self.CreateObject(bucket_uri=bucket_uri, object_name='obj7', contents='obj7') os.unlink(os.path.join(tmpdir, 'obj1')) self.RunGsUtil(['rm', suri(bucket_uri, 'obj2')]) # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check3(): self.RunGsUtil(['rsync', '-d', '-r', tmpdir, suri(bucket_uri)]) listing1 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) listing2 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) # Dir should have un-altered content. self.assertEquals(listing1, set(['/obj2', '/obj6', '/subdir/obj3'])) # Bucket should have content like dir but without the subdir objects # synchronized. self.assertEquals(listing2, set(['/obj2', '/obj6', '/subdir/obj3'])) _Check3() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', '-r', tmpdir, suri(bucket_uri)], return_stderr=True)) @unittest.skipUnless(UsingCrcmodExtension(crcmod), 'Test requires fast crcmod.') def test_dir_to_dir_minus_d(self): """Tests that flat and recursive rsync dir to dir works correctly.""" # Create 2 dirs with 1 overlapping file, 1 extra file at root # level in each, and 1 extra file 1 level down in each. Make the # overlapping files named the same but with different content, to test # that we detect and properly copy in that case. tmpdir1 = self.CreateTempDir() tmpdir2 = self.CreateTempDir() subdir1 = os.path.join(tmpdir1, 'subdir1') subdir2 = os.path.join(tmpdir2, 'subdir2') os.mkdir(subdir1) os.mkdir(subdir2) self.CreateTempFile(tmpdir=tmpdir1, file_name='obj1', contents='obj1') self.CreateTempFile(tmpdir=tmpdir1, file_name='obj2', contents='obj2') self.CreateTempFile( tmpdir=subdir1, file_name='obj3', contents='subdir1/obj3') self.CreateTempFile(tmpdir=tmpdir2, file_name='obj2', contents='OBJ2') self.CreateTempFile(tmpdir=tmpdir2, file_name='obj4', contents='obj4') self.CreateTempFile( tmpdir=subdir2, file_name='obj5', contents='subdir2/obj5') self.RunGsUtil(['rsync', '-d', tmpdir1, tmpdir2]) listing1 = _TailSet(tmpdir1, self._FlatListDir(tmpdir1)) listing2 = _TailSet(tmpdir2, self._FlatListDir(tmpdir2)) # dir1 should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/subdir1/obj3'])) # dir2 should have content like dir1 but without the subdir1 objects # synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/subdir2/obj5'])) # Assert that the src/dest objects that had same length but different # checksums were not synchronized (dir to dir sync doesn't use checksums # unless you specify -c). with open(os.path.join(tmpdir1, 'obj2')) as f: self.assertEquals('obj2', '\n'.join(f.readlines())) with open(os.path.join(tmpdir2, 'obj2')) as f: self.assertEquals('OBJ2', '\n'.join(f.readlines())) # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', tmpdir1, tmpdir2], return_stderr=True)) # Now rerun the sync with the -c option. self.RunGsUtil(['rsync', '-d', '-c', tmpdir1, tmpdir2]) listing1 = _TailSet(tmpdir1, self._FlatListDir(tmpdir1)) listing2 = _TailSet(tmpdir2, self._FlatListDir(tmpdir2)) # dir1 should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/subdir1/obj3'])) # dir2 should have content like dir but without the subdir objects # synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/subdir2/obj5'])) # Assert that the src/dest objects that had same length but different # content were synchronized (dir to dir sync with -c uses checksums). with open(os.path.join(tmpdir1, 'obj2')) as f: self.assertEquals('obj2', '\n'.join(f.readlines())) with open(os.path.join(tmpdir1, 'obj2')) as f: self.assertEquals('obj2', '\n'.join(f.readlines())) # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', '-c', tmpdir1, tmpdir2], return_stderr=True)) # Now add and remove some objects in both dirs and test rsync -r. self.CreateTempFile(tmpdir=tmpdir1, file_name='obj6', contents='obj6') self.CreateTempFile(tmpdir=tmpdir2, file_name='obj7', contents='obj7') os.unlink(os.path.join(tmpdir1, 'obj1')) os.unlink(os.path.join(tmpdir2, 'obj2')) self.RunGsUtil(['rsync', '-d', '-r', tmpdir1, tmpdir2]) listing1 = _TailSet(tmpdir1, self._FlatListDir(tmpdir1)) listing2 = _TailSet(tmpdir2, self._FlatListDir(tmpdir2)) # dir1 should have un-altered content. self.assertEquals(listing1, set(['/obj2', '/obj6', '/subdir1/obj3'])) # dir2 should have content like dir but without the subdir objects # synchronized. self.assertEquals(listing2, set(['/obj2', '/obj6', '/subdir1/obj3'])) # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', '-r', tmpdir1, tmpdir2], return_stderr=True)) def test_dir_to_dir_minus_d_more_files_than_bufsize(self): """Tests concurrently building listing from multiple tmp file ranges.""" # Create 2 dirs, where each dir has 1000 objects and differing names. tmpdir1 = self.CreateTempDir() tmpdir2 = self.CreateTempDir() for i in range(0, 1000): self.CreateTempFile(tmpdir=tmpdir1, file_name='d1-%s' %i, contents='x') self.CreateTempFile(tmpdir=tmpdir2, file_name='d2-%s' %i, contents='y') # We open a new temp file each time we reach rsync_buffer_lines of # listing output. On Windows, this will result in a 'too many open file # handles' error, so choose a larger value so as not to open so many files. rsync_buffer_config = [('GSUtil', 'rsync_buffer_lines', '50' if IS_WINDOWS else '2')] # Run gsutil with config option to make buffer size << # files. with SetBotoConfigForTest(rsync_buffer_config): self.RunGsUtil(['rsync', '-d', tmpdir1, tmpdir2]) listing1 = _TailSet(tmpdir1, self._FlatListDir(tmpdir1)) listing2 = _TailSet(tmpdir2, self._FlatListDir(tmpdir2)) self.assertEquals(listing1, listing2) # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', tmpdir1, tmpdir2], return_stderr=True)) @unittest.skipUnless(UsingCrcmodExtension(crcmod), 'Test requires fast crcmod.') def test_bucket_to_dir_minus_d(self): """Tests that flat and recursive rsync bucket to dir works correctly.""" # Create bucket and dir with 1 overlapping object, 1 extra object at root # level in each, and 1 extra object 1 level down in each. Make the # overlapping objects named the same but with different content, to test # that we detect and properly copy in that case. bucket_uri = self.CreateBucket() tmpdir = self.CreateTempDir() subdir = os.path.join(tmpdir, 'subdir') os.mkdir(subdir) self.CreateObject(bucket_uri=bucket_uri, object_name='obj1', contents='obj1') self.CreateObject(bucket_uri=bucket_uri, object_name='obj2', contents='obj2') self.CreateObject(bucket_uri=bucket_uri, object_name='subdir/obj3', contents='subdir/obj3') self.CreateTempFile(tmpdir=tmpdir, file_name='obj2', contents='OBJ2') self.CreateTempFile(tmpdir=tmpdir, file_name='obj4', contents='obj4') self.CreateTempFile(tmpdir=subdir, file_name='obj5', contents='subdir/obj5') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check1(): """Tests rsync works as expected.""" self.RunGsUtil(['rsync', '-d', suri(bucket_uri), tmpdir]) listing1 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) listing2 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) # Bucket should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/subdir/obj3'])) # Dir should have content like bucket but without the subdir objects # synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/subdir/obj5'])) # Assert that the src/dest objects that had same length but different # content were not synchronized (bucket to dir sync doesn't use checksums # unless you specify -c). self.assertEquals('obj2', self.RunGsUtil( ['cat', suri(bucket_uri, 'obj2')], return_stdout=True)) with open(os.path.join(tmpdir, 'obj2')) as f: self.assertEquals('OBJ2', '\n'.join(f.readlines())) _Check1() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', suri(bucket_uri), tmpdir], return_stderr=True)) # Now rerun the sync with the -c option. # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check2(): """Tests rsync -c works as expected.""" self.RunGsUtil(['rsync', '-d', '-c', suri(bucket_uri), tmpdir]) listing1 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) listing2 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) # Bucket should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/subdir/obj3'])) # Dir should have content like bucket but without the subdir objects # synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/subdir/obj5'])) # Assert that the src/dest objects that had same length but different # content were synchronized (bucket to dir sync with -c uses checksums). self.assertEquals('obj2', self.RunGsUtil( ['cat', suri(bucket_uri, 'obj2')], return_stdout=True)) with open(os.path.join(tmpdir, 'obj2')) as f: self.assertEquals('obj2', '\n'.join(f.readlines())) _Check2() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', '-c', suri(bucket_uri), tmpdir], return_stderr=True)) # Now add and remove some objects in dir and bucket and test rsync -r. self.CreateObject(bucket_uri=bucket_uri, object_name='obj6', contents='obj6') self.CreateTempFile(tmpdir=tmpdir, file_name='obj7', contents='obj7') self.RunGsUtil(['rm', suri(bucket_uri, 'obj1')]) os.unlink(os.path.join(tmpdir, 'obj2')) # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check3(): self.RunGsUtil(['rsync', '-d', '-r', suri(bucket_uri), tmpdir]) listing1 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) listing2 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) # Bucket should have un-altered content. self.assertEquals(listing1, set(['/obj2', '/obj6', '/subdir/obj3'])) # Dir should have content like bucket but without the subdir objects # synchronized. self.assertEquals(listing2, set(['/obj2', '/obj6', '/subdir/obj3'])) _Check3() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', '-r', suri(bucket_uri), tmpdir], return_stderr=True)) def test_bucket_to_dir_minus_d_with_fname_case_change(self): """Tests that name case changes work correctly. Example: Windows filenames are case-preserving in what you wrote, but case- insensitive when compared. If you synchronize from FS to cloud and then change case-naming in local files, you could end up with this situation: Cloud copy is called .../TiVo/... FS copy is called .../Tivo/... Then, if you sync from cloud to FS, if rsync doesn't recognize that on Windows these names are identical, each rsync run will cause both a copy and a delete to be executed. """ # Create bucket and dir with same objects, but dir copy has different name # case. bucket_uri = self.CreateBucket() tmpdir = self.CreateTempDir() self.CreateObject(bucket_uri=bucket_uri, object_name='obj1', contents='obj1') self.CreateTempFile(tmpdir=tmpdir, file_name='Obj1', contents='obj1') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check1(): """Tests rsync works as expected.""" output = self.RunGsUtil( ['rsync', '-d', '-r', suri(bucket_uri), tmpdir], return_stderr=True) # Nothing should be copied or removed under Windows. if IS_WINDOWS: self.assertEquals(NO_CHANGES, output) else: self.assertNotEquals(NO_CHANGES, output) _Check1() def test_bucket_to_dir_minus_d_with_leftover_dir_placeholder(self): """Tests that we correctly handle leftover dir placeholders. See comments in gslib.commands.rsync._FieldedListingIterator for details. """ bucket_uri = self.CreateBucket() tmpdir = self.CreateTempDir() self.CreateObject(bucket_uri=bucket_uri, object_name='obj1', contents='obj1') # Create a placeholder like what can be left over by web GUI tools. key_uri = bucket_uri.clone_replace_name('/') key_uri.set_contents_from_string('') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check1(): """Tests rsync works as expected.""" output = self.RunGsUtil( ['rsync', '-d', '-r', suri(bucket_uri), tmpdir], return_stderr=True) listing1 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) listing2 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) # Bucket should have un-altered content. self.assertEquals(listing1, set(['/obj1', '//'])) # Bucket should not have the placeholder object. self.assertEquals(listing2, set(['/obj1'])) # Stdout should report what happened. self.assertRegexpMatches(output, r'.*Skipping cloud sub-directory.*') _Check1() @unittest.skipIf(IS_WINDOWS, 'os.symlink() is not available on Windows.') def test_rsync_minus_d_minus_e(self): """Tests that rsync -e ignores symlinks.""" tmpdir = self.CreateTempDir() subdir = os.path.join(tmpdir, 'subdir') os.mkdir(subdir) bucket_uri = self.CreateBucket() fpath1 = self.CreateTempFile( tmpdir=tmpdir, file_name='obj1', contents='obj1') self.CreateTempFile(tmpdir=tmpdir, file_name='obj2', contents='obj2') self.CreateTempFile(tmpdir=subdir, file_name='obj3', contents='subdir/obj3') good_symlink_path = os.path.join(tmpdir, 'symlink1') os.symlink(fpath1, good_symlink_path) # Make a symlink that points to a non-existent path to test that -e also # handles that case. bad_symlink_path = os.path.join(tmpdir, 'symlink2') os.symlink(os.path.join('/', 'non-existent'), bad_symlink_path) self.CreateObject(bucket_uri=bucket_uri, object_name='obj2', contents='OBJ2') self.CreateObject(bucket_uri=bucket_uri, object_name='obj4', contents='obj4') self.CreateObject(bucket_uri=bucket_uri, object_name='subdir/obj5', contents='subdir/obj5') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check1(): """Ensure listings match the commented expectations.""" self.RunGsUtil(['rsync', '-d', '-e', tmpdir, suri(bucket_uri)]) listing1 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) listing2 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) # Dir should have un-altered content. self.assertEquals( listing1, set(['/obj1', '/obj2', '/subdir/obj3', '/symlink1', '/symlink2'])) # Bucket should have content like dir but without the symlink, and # without subdir objects synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/subdir/obj5'])) _Check1() # Now remove invalid symlink and run without -e, and see that symlink gets # copied (as file to which it points). Use @Retry as hedge against bucket # listing eventual consistency. os.unlink(bad_symlink_path) @Retry(AssertionError, tries=3, timeout_secs=1) def _Check2(): """Tests rsync works as expected.""" self.RunGsUtil(['rsync', '-d', tmpdir, suri(bucket_uri)]) listing1 = _TailSet(tmpdir, self._FlatListDir(tmpdir)) listing2 = _TailSet(suri(bucket_uri), self._FlatListBucket(bucket_uri)) # Dir should have un-altered content. self.assertEquals( listing1, set(['/obj1', '/obj2', '/subdir/obj3', '/symlink1'])) # Bucket should have content like dir but without the symlink, and # without subdir objects synchronized. self.assertEquals( listing2, set(['/obj1', '/obj2', '/subdir/obj5', '/symlink1'])) self.assertEquals('obj1', self.RunGsUtil( ['cat', suri(bucket_uri, 'symlink1')], return_stdout=True)) _Check2() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', tmpdir, suri(bucket_uri)], return_stderr=True)) @SkipForS3('S3 does not support composite objects') def test_bucket_to_bucket_minus_d_with_composites(self): """Tests that rsync works with composite objects (which don't have MD5s).""" bucket1_uri = self.CreateBucket() bucket2_uri = self.CreateBucket() self.CreateObject(bucket_uri=bucket1_uri, object_name='obj1', contents='obj1') self.CreateObject(bucket_uri=bucket1_uri, object_name='obj2', contents='obj2') self.RunGsUtil( ['compose', suri(bucket1_uri, 'obj1'), suri(bucket1_uri, 'obj2'), suri(bucket1_uri, 'obj3')]) self.CreateObject(bucket_uri=bucket2_uri, object_name='obj2', contents='OBJ2') self.CreateObject(bucket_uri=bucket2_uri, object_name='obj4', contents='obj4') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check(): self.RunGsUtil(['rsync', '-d', suri(bucket1_uri), suri(bucket2_uri)]) listing1 = _TailSet(suri(bucket1_uri), self._FlatListBucket(bucket1_uri)) listing2 = _TailSet(suri(bucket2_uri), self._FlatListBucket(bucket2_uri)) # First bucket should have un-altered content. self.assertEquals(listing1, set(['/obj1', '/obj2', '/obj3'])) # Second bucket should have content like first bucket but without the # subdir objects synchronized. self.assertEquals(listing2, set(['/obj1', '/obj2', '/obj3'])) _Check() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', suri(bucket1_uri), suri(bucket2_uri)], return_stderr=True)) def test_bucket_to_bucket_minus_d_empty_dest(self): """Tests working with empty dest bucket (iter runs out before src iter).""" bucket1_uri = self.CreateBucket() bucket2_uri = self.CreateBucket() self.CreateObject(bucket_uri=bucket1_uri, object_name='obj1', contents='obj1') self.CreateObject(bucket_uri=bucket1_uri, object_name='obj2', contents='obj2') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check(): self.RunGsUtil(['rsync', '-d', suri(bucket1_uri), suri(bucket2_uri)]) listing1 = _TailSet(suri(bucket1_uri), self._FlatListBucket(bucket1_uri)) listing2 = _TailSet(suri(bucket2_uri), self._FlatListBucket(bucket2_uri)) self.assertEquals(listing1, set(['/obj1', '/obj2'])) self.assertEquals(listing2, set(['/obj1', '/obj2'])) _Check() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', suri(bucket1_uri), suri(bucket2_uri)], return_stderr=True)) def test_bucket_to_bucket_minus_d_empty_src(self): """Tests working with empty src bucket (iter runs out before dst iter).""" bucket1_uri = self.CreateBucket() bucket2_uri = self.CreateBucket() self.CreateObject(bucket_uri=bucket2_uri, object_name='obj1', contents='obj1') self.CreateObject(bucket_uri=bucket2_uri, object_name='obj2', contents='obj2') # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check(): self.RunGsUtil(['rsync', '-d', suri(bucket1_uri), suri(bucket2_uri)]) stderr = self.RunGsUtil(['ls', suri(bucket1_uri, '**')], expected_status=1, return_stderr=True) self.assertIn('One or more URLs matched no objects', stderr) stderr = self.RunGsUtil(['ls', suri(bucket2_uri, '**')], expected_status=1, return_stderr=True) self.assertIn('One or more URLs matched no objects', stderr) _Check() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', suri(bucket1_uri), suri(bucket2_uri)], return_stderr=True)) def test_rsync_minus_d_minus_p(self): """Tests that rsync -p preserves ACLs.""" bucket1_uri = self.CreateBucket() bucket2_uri = self.CreateBucket() self.CreateObject(bucket_uri=bucket1_uri, object_name='obj1', contents='obj1') # Set public-read (non-default) ACL so we can verify that rsync -p works. self.RunGsUtil(['acl', 'set', 'public-read', suri(bucket1_uri, 'obj1')]) # Use @Retry as hedge against bucket listing eventual consistency. @Retry(AssertionError, tries=3, timeout_secs=1) def _Check(): """Tests rsync -p works as expected.""" self.RunGsUtil(['rsync', '-d', '-p', suri(bucket1_uri), suri(bucket2_uri)]) listing1 = _TailSet(suri(bucket1_uri), self._FlatListBucket(bucket1_uri)) listing2 = _TailSet(suri(bucket2_uri), self._FlatListBucket(bucket2_uri)) self.assertEquals(listing1, set(['/obj1'])) self.assertEquals(listing2, set(['/obj1'])) acl1_json = self.RunGsUtil(['acl', 'get', suri(bucket1_uri, 'obj1')], return_stdout=True) acl2_json = self.RunGsUtil(['acl', 'get', suri(bucket2_uri, 'obj1')], return_stdout=True) self.assertEquals(acl1_json, acl2_json) _Check() # Check that re-running the same rsync command causes no more changes. self.assertEquals(NO_CHANGES, self.RunGsUtil( ['rsync', '-d', '-p', suri(bucket1_uri), suri(bucket2_uri)], return_stderr=True))
[ "dovik@dovik-macbookpro.roam.corp.google.com" ]
dovik@dovik-macbookpro.roam.corp.google.com
2708952d2d7c1d0d55f3aca64dbd4fdc302dc84e
7389b5f624a608d30840957a8b3118b0338e2a5a
/backend/paciente_24534/wsgi.py
613ef21e1878e61d4f1208791350fa7b6fb9539c
[]
no_license
crowdbotics-apps/paciente-24534
f9794b3ee326a21d1e5d2ced702438cb9a107ca8
3e336cdd4b21af939203afe7697a71f05f3a5bec
refs/heads/master
2023-03-06T02:01:19.186111
2021-02-15T06:36:45
2021-02-15T06:36:45
338,987,982
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" WSGI config for paciente_24534 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'paciente_24534.settings') application = get_wsgi_application()
[ "team@crowdbotics.com" ]
team@crowdbotics.com
67f45a6359ae1657bcdb48a95831c690e76bb154
8e0aa7c4a91280a0688c169ea94dd82b5b07fbf2
/api/urls/__init__.py
b4fd06f9b808ca8617681e3544eb8b9131560274
[]
no_license
sahilgarg2715/mobile_sale
0c0f132032221c2790405045495a68abc799fe02
3f58adf8607254b4757581f7e818d01e69157654
refs/heads/master
2023-03-17T21:30:09.328000
2021-03-02T07:33:17
2021-03-02T07:33:17
325,554,468
0
0
null
null
null
null
UTF-8
Python
false
false
73
py
from .msuser import msuser_urlpatterns urlpatterns = msuser_urlpatterns
[ "sahil.holacash.mx" ]
sahil.holacash.mx
456c24de06e36b5df87fc588c36c30769303938c
2747fa04b8303dfbe6c24bebfd1fb692574efb5d
/monorun/datasets/kitti3d_dataset.py
2076f45b0728aa3106b0f07e3665a8d4501de095
[ "MIT" ]
permissive
yuhuang-ca/MonoRUn
96873c6e2adafcc51ad00bf717c1fe6ad45826ed
5bcc5278ea7a6b9cac6b7933c66921fa3011ce9a
refs/heads/main
2023-05-13T05:02:30.915215
2021-06-08T02:37:32
2021-06-08T02:37:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,622
py
import os import os.path as osp import shutil import numpy as np from scipy.linalg import solve_triangular import mmcv from ..core.evaluation import kitti_eval from mmdet.datasets import CustomDataset, DATASETS @DATASETS.register_module() class KITTI3DDataset(CustomDataset): CLASSES = ('Car', 'Pedestrian', 'Cyclist') def __init__(self, ann_file, pipeline, label_prefix=None, meta_prefix=None, coord_3d_prefix=None, calib_prefix=None, depth_prefix=None, calib_cam=2, **kwargs): self.label_prefix = label_prefix self.labels = [] self.meta_prefix = meta_prefix self.coord_3d_prefix = coord_3d_prefix self.calib_prefix = calib_prefix self.depth_prefix = depth_prefix self.calibs = [] self.calib_cam = calib_cam super(KITTI3DDataset, self).__init__( ann_file, pipeline, **kwargs) @staticmethod def open_calib_file(calib_file, cam): assert 0 <= cam <= 3 f_calib = open(calib_file).readlines()[cam] proj_mat = np.array( [float(v) for v in f_calib.strip().split(' ')[1:]], dtype=np.float32 ).reshape((3, 4)) return proj_mat @staticmethod def open_label_file(path): f_label = open(path) label = [[float(v) if i != 0 and i != 2 else int(v) if i == 2 else v for i, v in enumerate(line_label.strip().split(' '))] for line_label in f_label] return label def prepare_test_img(self, idx): img_info = self.data_infos[idx] cali_mat = self.calibs[idx] cam_intrinsic = cali_mat[:, :3] ann_info = dict(cam_intrinsic=cam_intrinsic) results = dict(img_info=img_info, ann_info=ann_info) if self.proposals is not None: results['proposals'] = self.proposals[idx] self.pre_pipeline(results) return self.pipeline(results) def load_annotations(self, ann_file): filenames = open(ann_file).readlines() data_infos = [] for filename in filenames: filename_raw = filename.strip() if self.meta_prefix is not None: meta_path = osp.join(self.meta_prefix, filename_raw + '.txt') height, width = np.loadtxt(meta_path, delimiter=',') else: img_path = osp.join(self.img_prefix, filename_raw + '.png') img = mmcv.imread(img_path) height, width = img.shape[:2] info = dict(filename=filename_raw + '.png', width=int(width), height=int(height)) data_infos.append(info) if self.label_prefix is not None: label = self.open_label_file( osp.join(self.label_prefix, filename_raw + '.txt')) self.labels.append(label) calib = self.open_calib_file( self.calib_prefix + filename_raw + '.txt', self.calib_cam) self.calibs.append(calib) return data_infos def get_ann_info(self, idx): return self._parse_ann_info(idx) def pre_pipeline(self, results): super(KITTI3DDataset, self).pre_pipeline(results) results['coord_3d_prefix'] = self.coord_3d_prefix results['depth_prefix'] = self.depth_prefix results['bbox_3d_fields'] = [] results['dense_fields'] = [] def _filter_imgs(self, min_size=32): """Filter images too small or without ground truths.""" valid_inds = [] for i, img_info in enumerate(self.data_infos): if self.filter_empty_gt and len(self.get_ann_info(i)['bboxes']) == 0: continue if min(img_info['width'], img_info['height']) >= min_size: valid_inds.append(i) return valid_inds def get_cat_ids(self, idx): return self._parse_ann_info(idx)['labels'].astype(np.int).tolist() def _parse_ann_info(self, idx): cali_mat = self.calibs[idx] cali_t_vec = cali_mat[:, 3:] cam_intrinsic = cali_mat[:, :3] cam_t_vec = solve_triangular( cam_intrinsic, cali_t_vec, lower=False).squeeze(-1) ann = dict( cam_intrinsic=cam_intrinsic, cam_t_vec=cam_t_vec) if self.label_prefix is None: # test mode return ann object_ids = [] gt_bboxes = [] gt_labels = [] gt_bboxes_ignore = [] gt_truncation = [] gt_occlusion = [] gt_alpha = [] gt_bboxes_3d = [] label = self.labels[idx] for object_id, instance in enumerate(label): instance_class = instance[0] truncation = instance[1] occlusion = instance[2] alpha = instance[3] bbox = instance[4:8] # x1, y1, x2, y2 bbox_3d = instance[8:] # h, w, l, x, y, z, yaw if instance_class in self.CLASSES: object_ids.append(object_id) gt_labels.append(self.CLASSES.index(instance_class)) # zero-based gt_truncation.append(truncation) gt_occlusion.append(occlusion) gt_alpha.append(alpha) gt_bboxes.append(bbox) gt_bboxes_3d.append(bbox_3d) elif instance_class.lower() == 'dontcare': gt_bboxes_ignore.append(bbox) if gt_bboxes: gt_bboxes = np.array(gt_bboxes, dtype=np.float32) gt_labels = np.array(gt_labels, dtype=np.int64) gt_bboxes_3d = np.array(gt_bboxes_3d, dtype=np.float32) gt_bboxes_3d[:, [0, 1, 2]] = gt_bboxes_3d[:, [2, 0, 1]] # to lhw object_ids = np.array(object_ids, dtype=np.int) else: gt_bboxes = np.empty((0, 4), dtype=np.float32) gt_labels = np.empty(0, dtype=np.int64) gt_bboxes_3d = np.empty((0, 7), dtype=np.float32) object_ids = np.empty(0, dtype=np.int) gt_bboxes_3d_eval = gt_bboxes_3d.copy() # bboxes in reference space (for eval) gt_bboxes_3d[:, 3:6] += cam_t_vec # move to camera space if gt_bboxes_ignore: gt_bboxes_ignore = np.array(gt_bboxes_ignore, dtype=np.float32) else: gt_bboxes_ignore = np.empty((0, 4), dtype=np.float32) coord_3d = self.data_infos[idx]['filename'].replace('png', 'pkl') depth = self.data_infos[idx]['filename'] ann.update( object_ids=object_ids, bboxes=gt_bboxes, labels=gt_labels, bboxes_ignore=gt_bboxes_ignore, coord_3d=coord_3d, depth=depth, truncation=gt_truncation, occlusion=gt_occlusion, alpha=gt_alpha, bboxes_3d=gt_bboxes_3d, bboxes_3d_eval=gt_bboxes_3d_eval) return ann def evaluate(self, results, metric=['bbox', 'bev', '3d'], logger=None, summary_file=None, print_summary=True, result_dir=None, use_r40=True): gt_ann_infos = [self.get_ann_info(i) for i in range(len(self))] results = self.format_results(results, gt_ann_infos) if result_dir is not None: if not osp.exists(result_dir): os.mkdir(result_dir) self.write_result_files(results, osp.join(result_dir, 'data')) if self.label_prefix is None: # test mode return dict() gt_annos = [self.format_gt_anno(gt_ann_info) for gt_ann_info in gt_ann_infos] criteria = 'R40' if use_r40 else 'R11' ap_result_str, ap_dict = kitti_eval( gt_annos, results, self.CLASSES, eval_types=metric, criteria=criteria) if print_summary: print('\n' + ap_result_str) if summary_file is not None: f = open(summary_file, 'w') f.write(ap_result_str) f.close() return ap_dict def format_results(self, results, gt_ann_infos): det_annos = [] for result, gt_ann_info in zip(results, gt_ann_infos): bbox_results = result['bbox_results'] bbox_3d_results = result['bbox_3d_results'] name = np.array([self.CLASSES[i] for i, det_per_class in enumerate(bbox_results) for _ in det_per_class]) num_dets = name.shape[0] bbox_results_all = np.concatenate(bbox_results, axis=0) bbox_3d_results_all = np.concatenate(bbox_3d_results, axis=0) bbox_3d_results_all[:, 3:6] -= gt_ann_info['cam_t_vec'] sort_idx = bbox_3d_results_all[:, 7].argsort()[::-1] bbox_results_all_sorted = bbox_results_all[sort_idx] bbox_3d_results_all_sorted = bbox_3d_results_all[sort_idx] name = name[sort_idx] bbox = bbox_results_all_sorted[:, :4] dimensions = bbox_3d_results_all_sorted[:, :3] # lhw location = bbox_3d_results_all_sorted[:, 3:6] rotation_y = bbox_3d_results_all_sorted[:, 6] score = bbox_3d_results_all_sorted[:, 7] # alpha is defined in LiDAR frame, hence +0.27 alpha = rotation_y - np.arctan2(location[:, 0], location[:, 2] + 0.27) anno = dict( name=name, truncated=np.full(num_dets, -1, dtype=np.int8), occluded=np.full(num_dets, -1, dtype=np.int8), alpha=alpha, bbox=bbox, dimensions=dimensions, location=location, rotation_y=rotation_y, score=score) det_annos.append(anno) return det_annos def format_gt_anno(self, ann_info): num_objects = len(ann_info['bboxes']) num_dontcares = len(ann_info['bboxes_ignore']) num_gt = num_objects + num_dontcares anno = dict( name=[self.CLASSES[label] for label in ann_info['labels'] ] + ['DontCare'] * num_dontcares, truncated=np.array(ann_info['truncation'] + [-1] * num_dontcares, dtype=np.float32), occluded=np.array(ann_info['occlusion'] + [-1] * num_dontcares, dtype=np.float32), alpha=np.array(ann_info['alpha'] + [-10] * num_dontcares, dtype=np.float32), bbox=np.concatenate( (ann_info['bboxes'], ann_info['bboxes_ignore']), axis=0), dimensions=np.concatenate( (ann_info['bboxes_3d_eval'][:, :3], np.full((num_dontcares, 3), -1, dtype=np.float32)), axis=0), location=np.concatenate( (ann_info['bboxes_3d_eval'][:, 3:6], np.full((num_dontcares, 3), -1000, dtype=np.float32)), axis=0), rotation_y=np.concatenate( (ann_info['bboxes_3d_eval'][:, 6], np.full(num_dontcares, -10, dtype=np.float32)), axis=0), score=np.zeros(num_gt, dtype=np.float32), index=np.concatenate( (np.arange(num_objects, dtype=np.int32), np.full(num_dontcares, -1, dtype=np.int32)), axis=0), group_ids=np.arange(num_gt, dtype=np.int32)) return anno def write_result_files(self, results, result_dir): if osp.exists(result_dir): shutil.rmtree(result_dir) os.mkdir(result_dir) for result, data_info in zip(results, self.data_infos): filename, _ = osp.splitext(data_info['filename']) all_result = np.concatenate( (result['name'].reshape(-1, 1), result['truncated'].reshape(-1, 1), result['occluded'].reshape(-1, 1), result['alpha'].reshape(-1, 1), result['bbox'], result['dimensions'][:, [1, 2, 0]], # to hwl result['location'], result['rotation_y'].reshape(-1, 1), result['score'].reshape(-1, 1)), axis=1) filepath = osp.join(result_dir, filename + '.txt') np.savetxt(filepath, all_result, delimiter=' ', fmt='%s')
[ "chenhansheng97@126.com" ]
chenhansheng97@126.com
3d499313b71e9628cd0db4ed49aec8f9a04edc61
2b547944393910e4b6959e1d1a48fa72356e6f5c
/property_decorator.py
10c82e63d081bb06ff610c98b2253982ef7257bf
[]
no_license
andreabassi78/General_Phyton
a45e7a12af2832c3879bb94ffbbe872f5b401cf8
0ca571bbad24c7d52074f4238655e06bc174a819
refs/heads/master
2023-07-09T04:34:47.881974
2023-06-25T08:49:08
2023-06-25T08:49:08
286,311,921
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
# -*- coding: utf-8 -*- """ Created on Sun Aug 9 12:32:36 2020 @author: Andrea Bassi """ import numpy as np class SaturationError(Exception): pass class Image_data: def __init__(self, name, size): self.name = name @property def data(self): print ('Getting data ...') return self._data @data.setter def data(self, data_in): print ('Setting data ...') saturated = np.count_nonzero(data_in == 255) print (f'There are {saturated} saturated pixels') if saturated > 0.01 * data_in.size: raise(SaturationError('There are too many saturated pixels')) else: self._data = data_in size = [128,128] im = Image_data('roi', size) for index in range(0,3): im.data = np.random.randint(256, size = size) # create a random 8bit image max_value = np.amax(im.data)
[ "andreabassi@polimi.it" ]
andreabassi@polimi.it
5801fdebb4444c78df6c430ec5fef7b8e71cf422
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow_nightly/source2.7/tensorflow/contrib/distributions/python/ops/onehot_categorical.py
e3e40b2e9ca232b9970768f21fb95887fdf0df2d
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
9,666
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """The OneHotCategorical distribution class.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import check_ops from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops import math_ops from tensorflow.python.ops import nn_ops from tensorflow.python.ops import random_ops from tensorflow.python.ops.distributions import distribution from tensorflow.python.ops.distributions import kullback_leibler from tensorflow.python.ops.distributions import util as distribution_util class OneHotCategorical(distribution.Distribution): """OneHotCategorical distribution. The categorical distribution is parameterized by the log-probabilities of a set of classes. The difference between OneHotCategorical and Categorical distributions is that OneHotCategorical is a discrete distribution over one-hot bit vectors whereas Categorical is a discrete distribution over positive integers. OneHotCategorical is equivalent to Categorical except Categorical has event_dim=() while OneHotCategorical has event_dim=K, where K is the number of classes. This class provides methods to create indexed batches of OneHotCategorical distributions. If the provided `logits` or `probs` is rank 2 or higher, for every fixed set of leading dimensions, the last dimension represents one single OneHotCategorical distribution. When calling distribution functions (e.g. `dist.prob(x)`), `logits` and `x` are broadcast to the same shape (if possible). In all cases, the last dimension of `logits,x` represents single OneHotCategorical distributions. #### Examples Creates a 3-class distribution, with the 2nd class, the most likely to be drawn from. ```python p = [0.1, 0.5, 0.4] dist = OneHotCategorical(probs=p) ``` Creates a 3-class distribution, with the 2nd class the most likely to be drawn from, using logits. ```python logits = [-2, 2, 0] dist = OneHotCategorical(logits=logits) ``` Creates a 3-class distribution, with the 3rd class is most likely to be drawn. ```python # counts is a scalar. p = [0.1, 0.4, 0.5] dist = OneHotCategorical(probs=p) dist.prob([0,1,0]) # Shape [] # p will be broadcast to [[0.1, 0.4, 0.5], [0.1, 0.4, 0.5]] to match. samples = [[0,1,0], [1,0,0]] dist.prob(samples) # Shape [2] ``` """ def __init__( self, logits=None, probs=None, dtype=dtypes.int32, validate_args=False, allow_nan_stats=True, name="OneHotCategorical"): """Initialize OneHotCategorical distributions using class log-probabilities. Args: logits: An N-D `Tensor`, `N >= 1`, representing the log probabilities of a set of Categorical distributions. The first `N - 1` dimensions index into a batch of independent distributions and the last dimension represents a vector of logits for each class. Only one of `logits` or `probs` should be passed in. probs: An N-D `Tensor`, `N >= 1`, representing the probabilities of a set of Categorical distributions. The first `N - 1` dimensions index into a batch of independent distributions and the last dimension represents a vector of probabilities for each class. Only one of `logits` or `probs` should be passed in. dtype: The type of the event samples (default: int32). validate_args: Python `bool`, default `False`. When `True` distribution parameters are checked for validity despite possibly degrading runtime performance. When `False` invalid inputs may silently render incorrect outputs. allow_nan_stats: Python `bool`, default `True`. When `True`, statistics (e.g., mean, mode, variance) use the value "`NaN`" to indicate the result is undefined. When `False`, an exception is raised if one or more of the statistic's batch members are undefined. name: Python `str` name prefixed to Ops created by this class. """ parameters = locals() with ops.name_scope(name, values=[logits, probs]): self._logits, self._probs = distribution_util.get_logits_and_probs( name=name, logits=logits, probs=probs, validate_args=validate_args, multidimensional=True) logits_shape_static = self._logits.get_shape().with_rank_at_least(1) if logits_shape_static.ndims is not None: self._batch_rank = ops.convert_to_tensor( logits_shape_static.ndims - 1, dtype=dtypes.int32, name="batch_rank") else: with ops.name_scope(name="batch_rank"): self._batch_rank = array_ops.rank(self._logits) - 1 with ops.name_scope(name="event_size"): self._event_size = array_ops.shape(self._logits)[-1] super(OneHotCategorical, self).__init__( dtype=dtype, reparameterization_type=distribution.NOT_REPARAMETERIZED, validate_args=validate_args, allow_nan_stats=allow_nan_stats, parameters=parameters, graph_parents=[self._logits, self._probs], name=name) @property def event_size(self): """Scalar `int32` tensor: the number of classes.""" return self._event_size @property def logits(self): """Vector of coordinatewise logits.""" return self._logits @property def probs(self): """Vector of coordinatewise probabilities.""" return self._probs def _batch_shape_tensor(self): return array_ops.shape(self.logits)[:-1] def _batch_shape(self): return self.logits.get_shape()[:-1] def _event_shape_tensor(self): return array_ops.shape(self.logits)[-1:] def _event_shape(self): return self.logits.get_shape().with_rank_at_least(1)[-1:] def _sample_n(self, n, seed=None): sample_shape = array_ops.concat([[n], array_ops.shape(self.logits)], 0) logits = self.logits if logits.get_shape().ndims == 2: logits_2d = logits else: logits_2d = array_ops.reshape(logits, [-1, self.event_size]) samples = random_ops.multinomial(logits_2d, n, seed=seed) samples = array_ops.transpose(samples) samples = array_ops.one_hot(samples, self.event_size, dtype=self.dtype) ret = array_ops.reshape(samples, sample_shape) return ret def _log_prob(self, x): x = self._assert_valid_sample(x) # broadcast logits or x if need be. logits = self.logits if (not x.get_shape().is_fully_defined() or not logits.get_shape().is_fully_defined() or x.get_shape() != logits.get_shape()): logits = array_ops.ones_like(x, dtype=logits.dtype) * logits x = array_ops.ones_like(logits, dtype=x.dtype) * x logits_shape = array_ops.shape(math_ops.reduce_sum(logits, -1)) logits_2d = array_ops.reshape(logits, [-1, self.event_size]) x_2d = array_ops.reshape(x, [-1, self.event_size]) ret = -nn_ops.softmax_cross_entropy_with_logits(labels=x_2d, logits=logits_2d) # Reshape back to user-supplied batch and sample dims prior to 2D reshape. ret = array_ops.reshape(ret, logits_shape) return ret def _entropy(self): return -math_ops.reduce_sum( nn_ops.log_softmax(self.logits) * self.probs, axis=-1) def _mode(self): ret = math_ops.argmax(self.logits, axis=self._batch_rank) ret = array_ops.one_hot(ret, self.event_size, dtype=self.dtype) ret.set_shape(self.logits.get_shape()) return ret def _covariance(self): p = self.probs ret = -math_ops.matmul(p[..., None], p[..., None, :]) return array_ops.matrix_set_diag(ret, self._variance()) def _variance(self): return self.probs * (1. - self.probs) def _assert_valid_sample(self, x): if not self.validate_args: return x return control_flow_ops.with_dependencies([ check_ops.assert_non_positive(x), distribution_util.assert_close( array_ops.zeros([], dtype=self.dtype), math_ops.reduce_logsumexp(x, axis=[-1])), ], x) @kullback_leibler.RegisterKL(OneHotCategorical, OneHotCategorical) def _kl_categorical_categorical(a, b, name=None): """Calculate the batched KL divergence KL(a || b) with a, b OneHotCategorical. Args: a: instance of a OneHotCategorical distribution object. b: instance of a OneHotCategorical distribution object. name: (optional) Name to use for created operations. default is "kl_categorical_categorical". Returns: Batchwise KL(a || b) """ with ops.name_scope(name, "kl_categorical_categorical", values=[ a.logits, b.logits]): # sum(p ln(p / q)) return math_ops.reduce_sum( nn_ops.softmax(a.logits) * (nn_ops.log_softmax(a.logits) - nn_ops.log_softmax(b.logits)), axis=-1)
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
3bbffaa62e0ae3f3bb84a80392ae0f399ab809d9
10dcfd809f342fd822b6df198f4045f92b157124
/lib/python/translate/convert/test_po2ical.py
06ee1334bb23c487f2edfade0321c3af48f716f6
[]
no_license
mozilla/affiliates-lib
c731c910c8d9fe04e211541e54f304a127a0b829
1000f98d9df217ed66a0ecd07e1e0a1d822a712a
refs/heads/master
2023-07-03T17:18:49.841809
2016-02-01T10:49:47
2016-02-01T10:49:47
2,291,186
2
2
null
null
null
null
UTF-8
Python
false
false
2,439
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from translate.convert import po2ical from translate.convert import test_convert from translate.misc import wStringIO from translate.storage import po icalboiler = '''BEGIN:VCALENDAR VERSION:2.0 PRODID:-//hacksw/handcal//NONSGML v1.0//EN BEGIN:VEVENT UID:uid1@example.com DTSTART:19970714T170000Z DTEND:19970715T035959Z DTSTAMP:19970714T170000Z ORGANIZER;CN=John Doe:MAILTO:john.doe@example.com SUMMARY:%s END:VEVENT END:VCALENDAR '''.replace("\n", "\r\n") class TestPO2Ical: def po2ical(self, posource): """helper that converts po source to .ics source without requiring files""" inputfile = wStringIO.StringIO(posource) inputpo = po.pofile(inputfile) convertor = po2ical.reical() outputical = convertor.convertstore(inputpo) return outputical def merge2ical(self, propsource, posource): """helper that merges po translations to .ics source without requiring files""" inputfile = wStringIO.StringIO(posource) inputpo = po.pofile(inputfile) templatefile = wStringIO.StringIO(propsource) #templateprop = properties.propfile(templatefile) convertor = po2ical.reical(templatefile, inputpo) outputical = convertor.convertstore() print outputical return outputical def test_simple_summary(self): """test that we output correctly for Inno files.""" posource = ur'''#: [uid1@example.com]SUMMARY msgid "Value" msgstr "Waarde" ''' icaltemplate = icalboiler % "Value" icalexpected = icalboiler % "Waarde" icalfile = self.merge2ical(icaltemplate, posource) print icalexpected assert icalfile == icalexpected # FIXME we should also test for DESCRIPTION, LOCATION and COMMENT # The library handle any special encoding issues, we might want to test # those class TestPO2IcalCommand(test_convert.TestConvertCommand, TestPO2Ical): """Tests running actual po2ical commands on files""" convertmodule = po2ical defaultoptions = {"progress": "none"} def test_help(self): """tests getting help""" options = test_convert.TestConvertCommand.test_help(self) options = self.help_check(options, "-t TEMPLATE, --template=TEMPLATE") options = self.help_check(options, "--fuzzy") options = self.help_check(options, "--nofuzzy", last=True)
[ "fwenzel@mozilla.com" ]
fwenzel@mozilla.com
a96a67c2bf3472319a16f403c5fb1d20f1fd033b
931d10ad6e9fb815f32f42c11af98d4ea9668f18
/administration/form_extimage.py
a56751dee885dfc9b951ed46d5ade6b619e08db9
[]
no_license
suijius/turbodiesel
13b8edc4343713dc97c27e9ddb85d2a5f97333c1
d4a2810125399a7dd2b428694924ed28c62d2aa5
refs/heads/master
2021-01-15T11:02:47.855199
2014-04-01T16:30:34
2014-04-01T16:30:34
18,336,490
0
0
null
null
null
null
UTF-8
Python
false
false
1,513
py
#coding=cp1251 from metamodel.models import Application, ExtImage from django.forms import ModelForm from django.views.generic import CreateView, UpdateView import data import settings import json from metamodel_view import TurboDieselUpdateView, TurboDieselCreateView from django.http import HttpResponseRedirect, HttpResponse class ExtImageForm(ModelForm): class Meta: model = ExtImage exclude = ('application', 'date_change') class ExtImageCreate(TurboDieselCreateView): template_name = 'administration/create.html' def get(self, request, application_alias): application = self.preget(request, application_alias) form = ExtImageForm() return self.render_to_response(context = self.get_context_data(form = form, request = request, application = application)) def post(self, request, application_alias): application = self.prepost(request, application_alias) if len(request.FILES) > 0: request.FILES['image'].name = request.POST.get('alias', request.FILES['image'].name.split('.')[0]) + '.' + request.FILES['image'].name.split('.')[-1] form = ExtImageForm(request.POST, request.FILES) form.instance.application = application if form.is_valid(): form.save() return HttpResponseRedirect('..') else: return self.render_to_response(self.get_context_data(form = form, request = request, application = application))
[ "suijius@gmail.com" ]
suijius@gmail.com
ada8b0e4f94095e3ce21f25d869d4659b0b88406
8813a4e4286f32f826e94d31da7155d12b5cd576
/blog/admin.py
e6fddb5778e10437b6591097717889023685075f
[]
no_license
AliHassanUOS/BlogSite
697a04a76851517cef7fa93f925b4c1ca114ef97
02553cdc207b8b23b598f708535813404d7d4847
refs/heads/master
2023-07-15T21:01:50.777867
2021-09-01T09:07:40
2021-09-01T09:07:40
401,997,899
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
from django.contrib import admin from .models import Blog_model # Register your models here. class Blog_Model_Admin(admin.ModelAdmin): list_display = ["id",'author',"title"] list_display_links= ["author","title"] search_fields = ["id","author"] list_filter = ["id",'author',"title"] admin.site.register(Blog_model,Blog_Model_Admin)
[ "alihasanuos@gmail.com" ]
alihasanuos@gmail.com
ff9fc1098df65e53b8897688c78a5ab1951af81f
29442d22b0413f8a7e50a37654e89e429684e297
/idaes/property_models/ideal/test_ideal.py
fe252a5b13951efee998947906d7f14fe3ff1a80
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
tony121psu/idaes-pse
75f5056b9a96201a8499901ef8885bef32eef8e2
bdfddf1d1761bdba408567a83e198d549e8c741d
refs/heads/master
2020-05-27T06:04:41.551792
2019-05-14T00:14:05
2019-05-14T00:14:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,923
py
############################################################################## # Institute for the Design of Advanced Energy Systems Process Systems # Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the # software owners: The Regents of the University of California, through # Lawrence Berkeley National Laboratory, National Technology & Engineering # Solutions of Sandia, LLC, Carnegie Mellon University, West Virginia # University Research Corporation, et al. All rights reserved. # # Please see the files COPYRIGHT.txt and LICENSE.txt for full copyright and # license information, respectively. Both files are also available online # at the URL "https://github.com/IDAES/idaes-pse". ############################################################################## """ Tests for ideal state block; tests for construction and solves Author: Jaffer Ghouse """ import pytest from pyomo.environ import ConcreteModel, SolverFactory, TerminationCondition, \ SolverStatus, value from idaes.core import FlowsheetBlock from idaes.property_models.ideal.BTX_ideal_VLE import BTXParameterBlock from idaes.ui.report import degrees_of_freedom # See if ipopt is available and set up solver if SolverFactory('ipopt').available(): solver = SolverFactory('ipopt') solver.options = {'tol': 1e-6, 'mu_init': 1e-8, 'bound_push': 1e-8} else: solver = None # ----------------------------------------------------------------------------- m = ConcreteModel() # Create a flowsheet object to test inlet state blocks m.fs = FlowsheetBlock(default={"dynamic": False}) # vapor-liquid m.fs.properties_vl = BTXParameterBlock(default={"valid_phase": ('Liq', 'Vap')}) m.fs.state_block_vl = m.fs.properties_vl.state_block_class( default={"parameters": m.fs.properties_vl, "defined_state": True}) # liquid only m.fs.properties_l = BTXParameterBlock(default={"valid_phase": 'Liq'}) m.fs.state_block_l = m.fs.properties_l.state_block_class( default={"parameters": m.fs.properties_l, "has_phase_equilibrium": False, "defined_state": True}) # vapor only m.fs.properties_v = BTXParameterBlock(default={"valid_phase": 'Vap'}) m.fs.state_block_v = m.fs.properties_v.state_block_class( default={"parameters": m.fs.properties_v, "has_phase_equilibrium": False, "defined_state": True}) def test_build_inlet_state_blocks(): assert len(m.fs.properties_vl.config) == 2 # vapor-liquid assert m.fs.properties_vl.config.valid_phase == ('Vap', 'Liq') or \ m.fs.properties_vl.config.valid_phase == ('Liq', 'Vap') assert len(m.fs.properties_vl.phase_list) == 2 assert m.fs.properties_vl.phase_list == ["Liq", "Vap"] assert hasattr(m.fs.state_block_vl, "equilibrium_constraint") assert not hasattr(m.fs.state_block_vl, "eq_mol_frac_out") # liquid only assert m.fs.properties_l.config.valid_phase == "Liq" assert len(m.fs.properties_l.phase_list) == 1 assert m.fs.properties_l.phase_list == ["Liq"] assert not hasattr(m.fs.state_block_l, "equilibrium_constraint") assert not hasattr(m.fs.state_block_vl, "eq_h_vap") assert not hasattr(m.fs.state_block_l, "eq_mol_frac_out") # vapor only assert m.fs.properties_v.config.valid_phase == "Vap" assert len(m.fs.properties_v.phase_list) == 1 assert m.fs.properties_v.phase_list == ["Vap"] assert not hasattr(m.fs.state_block_v, "equilibrium_constraint") assert not hasattr(m.fs.state_block_vl, "eq_h_liq") assert not hasattr(m.fs.state_block_v, "eq_mol_frac_out") def test_setInputs_inlet_state_blocks(): # vapor-liquid m.fs.state_block_vl.flow_mol.fix(1) m.fs.state_block_vl.temperature.fix(368) m.fs.state_block_vl.pressure.fix(101325) m.fs.state_block_vl.mole_frac["benzene"].fix(0.5) m.fs.state_block_vl.mole_frac["toluene"].fix(0.5) assert degrees_of_freedom(m.fs.state_block_vl) == 0 # liquid only m.fs.state_block_l.flow_mol.fix(1) m.fs.state_block_l.temperature.fix(362) m.fs.state_block_l.pressure.fix(101325) m.fs.state_block_l.mole_frac["benzene"].fix(0.5) m.fs.state_block_l.mole_frac["toluene"].fix(0.5) assert degrees_of_freedom(m.fs.state_block_l) == 0 # vapor only m.fs.state_block_v.flow_mol.fix(1) m.fs.state_block_v.temperature.fix(375) m.fs.state_block_v.pressure.fix(101325) m.fs.state_block_v.mole_frac["benzene"].fix(0.5) m.fs.state_block_v.mole_frac["toluene"].fix(0.5) assert degrees_of_freedom(m.fs.state_block_v) == 0 @pytest.mark.skipif(solver is None, reason="Solver not available") def test_solve(): # vapor-liquid m.fs.state_block_vl.initialize() results = solver.solve(m.fs.state_block_vl, tee=False) # Check for optimal solution assert results.solver.termination_condition == TerminationCondition.optimal assert results.solver.status == SolverStatus.ok # Check for VLE results assert value(m.fs.state_block_vl.mole_frac_phase['Liq', 'benzene']) == \ pytest.approx(0.4121, abs=1e-3) assert value(m.fs.state_block_vl.mole_frac_phase['Vap', 'benzene']) == \ pytest.approx(0.6339, abs=1e-3) # liquid only m.fs.state_block_l.initialize() results = solver.solve(m.fs.state_block_l, tee=False) # Check for optimal solution assert results.solver.termination_condition == TerminationCondition.optimal assert results.solver.status == SolverStatus.ok # Check for results assert value(m.fs.state_block_l.mole_frac_phase['Liq', 'benzene']) == \ pytest.approx(0.5, abs=1e-3) assert value(m.fs.state_block_l.mole_frac_phase['Liq', 'toluene']) == \ pytest.approx(0.5, abs=1e-3) # vapor only m.fs.state_block_v.initialize() results = solver.solve(m.fs.state_block_v, tee=False) # Check for optimal solution assert results.solver.termination_condition == TerminationCondition.optimal assert results.solver.status == SolverStatus.ok # Check for results assert value(m.fs.state_block_v.mole_frac_phase['Vap', 'benzene']) == \ pytest.approx(0.5, abs=1e-3) assert value(m.fs.state_block_v.mole_frac_phase['Vap', 'toluene']) == \ pytest.approx(0.5, abs=1e-3) def test_bubbleT_inlet_state_blocks(): assert m.fs.state_block_vl.calculate_bubble_point_temperature() == \ pytest.approx(365.347, abs=1e-2) def test_dewT_inlet_state_blocks(): assert m.fs.state_block_vl.calculate_dew_point_temperature() == \ pytest.approx(372.02, abs=1e-2) def test_bubbleP_inlet_state_blocks(): assert m.fs.state_block_vl.calculate_bubble_point_pressure() == \ pytest.approx(109479.22, abs=1e-2) def test_dewP_inlet_state_blocks(): assert m.fs.state_block_vl.calculate_dew_point_pressure() == \ pytest.approx(89819.72, abs=1e-2) # Create a flowsheet object to test outlet state blocks m.fs1 = FlowsheetBlock(default={"dynamic": False}) # vapor-liquid m.fs1.properties_vl = BTXParameterBlock(default={"valid_phase": ('Liq', 'Vap')}) m.fs1.state_block_vl = m.fs1.properties_vl.state_block_class( default={"parameters": m.fs1.properties_vl, "defined_state": False}) # liquid only m.fs1.properties_l = BTXParameterBlock(default={"valid_phase": 'Liq'}) m.fs1.state_block_l = m.fs1.properties_l.state_block_class( default={"parameters": m.fs1.properties_l, "has_phase_equilibrium": False, "defined_state": False}) # vapor only m.fs1.properties_v = BTXParameterBlock(default={"valid_phase": 'Vap'}) m.fs1.state_block_v = m.fs1.properties_v.state_block_class( default={"parameters": m.fs1.properties_v, "has_phase_equilibrium": False, "defined_state": False}) def test_build_outlet_state_blocks(): assert len(m.fs1.properties_vl.config) == 2 # vapor-liquid assert m.fs1.properties_vl.config.valid_phase == ('Vap', 'Liq') or \ m.fs1.properties_vl.config.valid_phase == ('Liq', 'Vap') assert len(m.fs1.properties_vl.phase_list) == 2 assert m.fs1.properties_vl.phase_list == ["Liq", "Vap"] assert hasattr(m.fs1.state_block_vl, "equilibrium_constraint") assert hasattr(m.fs1.state_block_vl, "sum_mole_frac_out") # liquid only assert m.fs1.properties_l.config.valid_phase == "Liq" assert len(m.fs1.properties_l.phase_list) == 1 assert m.fs1.properties_l.phase_list == ["Liq"] assert not hasattr(m.fs1.state_block_l, "equilibrium_constraint") assert not hasattr(m.fs1.state_block_vl, "eq_h_vap") assert hasattr(m.fs1.state_block_l, "sum_mole_frac_out") # vapor only assert m.fs1.properties_v.config.valid_phase == "Vap" assert len(m.fs1.properties_v.phase_list) == 1 assert m.fs1.properties_v.phase_list == ["Vap"] assert not hasattr(m.fs1.state_block_v, "equilibrium_constraint") assert not hasattr(m.fs1.state_block_vl, "eq_h_liq") assert hasattr(m.fs1.state_block_v, "sum_mole_frac_out") def test_setInputs_outlet_state_blocks(): # vapor-liquid m.fs1.state_block_vl.flow_mol.fix(1) m.fs1.state_block_vl.temperature.fix(368) m.fs1.state_block_vl.pressure.fix(101325) m.fs1.state_block_vl.mole_frac["benzene"].fix(0.5) assert degrees_of_freedom(m.fs.state_block_vl) == 0 # liquid only m.fs1.state_block_l.flow_mol.fix(1) m.fs1.state_block_l.temperature.fix(362) m.fs1.state_block_l.pressure.fix(101325) m.fs1.state_block_l.mole_frac["benzene"].fix(0.5) assert degrees_of_freedom(m.fs.state_block_l) == 0 # vapor only m.fs1.state_block_v.flow_mol.fix(1) m.fs1.state_block_v.temperature.fix(375) m.fs1.state_block_v.pressure.fix(101325) m.fs1.state_block_v.mole_frac["benzene"].fix(0.5) assert degrees_of_freedom(m.fs.state_block_v) == 0
[ "KSBeattie@lbl.gov" ]
KSBeattie@lbl.gov
9b459dc921f16358b1968c9bc0323f44349de7d1
862b1199b77702adb26d17f15c38d7814d08df62
/strava/tokens.py
aecaec61049c6f8635ebd95586f4bf36d732bee4
[]
no_license
jjjhung/ty-strava-bot
211e17b26df8a532f2ebc79f84d34b835d6a86c3
877011706c76363b32251202495a87dbfec2e149
refs/heads/main
2023-07-26T19:19:01.910673
2021-09-14T15:24:39
2021-09-14T15:24:39
406,416,274
0
0
null
null
null
null
UTF-8
Python
false
false
2,405
py
import requests import json import os import time from dotenv import load_dotenv load_dotenv() def get_access_token(name:str) -> str: ''' Get access token for athlete. Must have provided auth code, which is stored in env variable. Only need to perform this once per athlete. If this is run again, a new code must be generated with the strava oauth request:: https://www.strava.com/oauth/authorize?client_id=69663&response_type=code& redirect_uri=http://localhost/exchange_token&approval_prompt=force& scope=read,read_all,profile:read_all,activity:read,activity:read_all ''' response = requests.post( url = 'https://www.strava.com/oauth/token', data = { 'client_id': int(os.getenv('STRAVA_CLIENT_ID')), 'client_secret': os.getenv('STRAVA_CLIENT_SECRET'), 'code': os.getenv('STRAVA_CODE_%s'%(name)), 'grant_type': 'authorization_code' } ) strava_tokens = response.json() print(strava_tokens) with open('strava_tokens_%s.json'%(name), 'w') as outfile: json.dump(strava_tokens, outfile) with open('strava_tokens_%s.json'%(name)) as fs: strava_tokens = json.load(fs) return strava_tokens['access_token'] def read_access_token(name:str) -> str: ''' Read access token for athlete, stored in json file. If access token is expired, a refresh request is submitted. ''' with open('strava_tokens_%s.json'%(name)) as fs: strava_tokens = json.load(fs) # Check refresh if strava_tokens['expires_at'] < time.time(): response = requests.post( url = 'https://www.strava.com/oauth/token', data = { 'client_id': int(os.getenv('STRAVA_CLIENT_ID')), 'client_secret': os.getenv('STRAVA_CLIENT_SECRET'), 'grant_type': 'refresh_token', 'refresh_token': strava_tokens['refresh_token'] } ) new_strava_tokens = response.json() with open('strava_tokens_%s.json'%(name), 'w') as fs: json.dump(new_strava_tokens, fs) strava_tokens = new_strava_tokens return strava_tokens['access_token']
[ "joseph.hung@mail.utoronto.ca" ]
joseph.hung@mail.utoronto.ca
f2495c4c83b997af0c10dbcac95d85cb0bac9c4a
c92f8b2870add6860ef6b98a9e702788af5fd967
/Chapter06/filerandomread.py
47e45c051fb07156e61def4337fb196416d7c3e7
[]
no_license
Rabidza/INF1511
c6e1244679b2eff3f782957c056a72d49a552176
4bc10130a3693f3223bd12f4e9212a037bd1fc2a
refs/heads/master
2021-09-08T05:42:58.897999
2018-03-07T20:08:31
2018-03-07T20:08:31
116,714,383
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
f = open("aboutbook.txt", "r") line = f.readline() print("A line for file is:", line) f.seek(5) line = f.readline() print("The line from character 6 till end of line is:", line) print("The pointer is at location", f.tell()) f.seek(10) line = f.read(15) print("The fifteen characters starting at location 11 are as:", line) f.close() # NH: Textbook omitted this line -- shouldn't a file always be closed
[ "neillhenning@gmail.com" ]
neillhenning@gmail.com
159bc1f5bfc255f2e073cf2b4a873beac57aeb2c
2179d3ed311a074aaefc258e8a7f534a7d5a2e7c
/CM1101--Group-4- most up to date/items.py
88208915a04492d336d382df7ee6cbd38910ce9e
[]
no_license
charles-read/CM1101--Group-4-text-based-game
233e723473dd7678d2e1ccd5d15241e9d04e49e1
58593e170ff1c47d1b8ec097574d168858e85b05
refs/heads/master
2021-06-07T13:02:39.108673
2016-10-18T15:43:34
2016-10-18T15:43:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,257
py
item_disguise = { "id": "disguise", "name": "a janitor's disguise", "damage": 0, "trick": 10, "description": """An old Janitor's overalls stained with all kinds of products. It's a bit worn and old but should help hide you from guards.""" } item_shank = { "id": "shank", "name": "a shank", "damage": 10, "trick": 0, "description": """It appears to be a sharpened toothbrush. This has been specifically made to harm people.""" } item_bknife = { "id": "knife", "name": "a butter knife", "damage": 5, "trick": 0, "description": """An old looking kitchen knife that has seen better days. It's so blunt you would be lucky if it cut through butter.""" } item_soap = { "id" : "soap", "name": "a bar of soap", "damage": 0, "trick": 0, "description": """An aged bar of soap that is caked in dirt. You think it must've been there for years. ‘I probably shouldn't drop this' you mutter to yourself""" } item_key = { "id" : "key", "name": "Warden Kirill's key", "damage": 0, "trick": 0, "description" : """An old looking key. It looks as if it could open something important.""" }
[ "noreply@github.com" ]
charles-read.noreply@github.com
7ecbae502ac1ba46d53f9e23a5fd3ab47832ddc5
8c2ccf1ce12c1f4e96577fbf4e07617f8a1c2ba1
/devplus_account/models/account_voucher.py
0c58eff1ed75a3b1081162e83960919373efd1c9
[]
no_license
wch275/test01
bc518880cc1bf97c4b2c006e9357291e0ef179c0
fb1b30d786f48b0a4da27a9946c7f33713127a86
refs/heads/master
2021-01-24T18:39:18.610400
2017-03-13T13:58:34
2017-03-13T13:58:34
84,466,206
0
0
null
null
null
null
UTF-8
Python
false
false
6,553
py
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # # Coded by: Borni DHIFI (dhifi.borni@gmail.com) # #------------------------------------------------------------------------------- from openerp.osv import osv, fields import openerp.addons.decimal_precision as dp #-------------------------------------------------------------------------------- # account_voucher #-------------------------------------------------------------------------------- class account_voucher(osv.Model): _inherit= "account.voucher" #def _get_writeoff_amount(self, cr, uid, ids, name, args, context=None): # return super(account_voucher,self)._get_writeoff_amount(cr, uid, ids, name, args, context) def onchange_partner_id(self, cr, uid, ids, partner_id, journal_id, amount, currency_id, ttype, date, context=None): res=super(account_voucher,self).onchange_partner_id(cr, uid, ids, partner_id, journal_id, amount, currency_id, ttype, date) # nom=self.pool.get('res.partner').browse(cr,uid,partner_id).name # res['value'].update({'proprietaire':nom}) return res def onchange_journal(self, cr, uid, ids, journal_id, line_ids, tax_id, partner_id, date, amount, ttype, company_id, context=None): res=super(account_voucher,self).onchange_journal(cr, uid, ids, journal_id, line_ids, tax_id, partner_id, date, amount, ttype, company_id) voucher=self.browse(cr,uid,ids) banks = self.pool.get('res.partner.bank').search(cr,uid,[('journal_id','!=',False)]) for bank in self.pool.get('res.partner.bank').browse(cr,uid,banks): if bank.journal_id.id == journal_id: res['value'].update({'bank_journal_id':bank.id}) return res def _paid_amount_in_company_currency(self, cr, uid, ids, name, args, context=None): return super(account_voucher,self)._paid_amount_in_company_currency(cr, uid, ids, name, args, context) _columns = { 'partner_id':fields.many2one('res.partner', 'Partner', change_default=1, readonly=True, states={'draft':[('readonly',False)]}), 'date_echeance': fields.date(u'Date échéance',readonly=True, states={'draft':[('readonly',False)]},), 'bank_name':fields.many2one('res.bank', u'Banque',readonly=True, states={'draft':[('readonly',False)]}, ), 'bank_journal_id':fields.many2one('res.partner.bank', u'Banque Journal' ), 'proprietaire':fields.char(u'Propriétaire',readonly=True, states={'draft':[('readonly',False)]},), 'payment_mode_id':fields.many2one('account.payment.mode', 'Mode de paiement',required=True,readonly=True, states={'draft':[('readonly',False)]},), 'encaisse':fields.boolean(u'Remis',copy=False), 'payment_type':fields.char(u'Type Payement'), #ADD digits_compute #'writeoff_amount': fields.function(_get_writeoff_amount,digits_compute=dp.get_precision('Account'), string='Difference Amount', type='float', readonly=True, help="Computed as the difference between the amount stated in the voucher and the sum of allocation on the voucher lines."), 'paid_amount_in_company_currency': fields.function(_paid_amount_in_company_currency,digits_compute=dp.get_precision('Account') ,string='Paid Amount in Company Currency', type='float', readonly=True), 'state_bordereau':fields.selection( [('remis','Remis'), ('non_remis','Non Remis'), ], 'Statut ', readonly=True, copy=False,), 'state_ordre':fields.selection( [('remis','Remis'), ('non_remis','Non Remis'), ], 'Statut ', readonly=True, copy=False,), } _defaults = { 'state_bordereau': 'non_remis', 'state_ordre': 'non_remis' } def action_remis(self, cr, uid, ids, context=None): self.write(cr,uid,ids[0],{'state': 'remis'},context) return True #TODO: IT #=========================================================================== # def button_proforma_voucher(self, cr, uid, ids, context=None): # context = context or {} # wf_service = netsvc.LocalService("workflow") # for vid in ids: # wf_service.trg_validate(uid, 'account.voucher', vid, 'proforma_voucher', cr) # #update date_echeance_paiement # if context.get('invoice_id', False) : # voucher=self.pool.get('account.voucher').browse(cr,uid,vid,context=context) # invoice=self.pool.get('account.invoice').browse(cr,uid,context['invoice_id'],context=context) # if voucher.date_rembourssement > invoice.date_echeance_paiement : # self.pool.get('account.invoice').write(cr,uid,invoice.id,{ 'date_echeance_paiement':voucher.date_rembourssement},context=context) # return {'type': 'ir.actions.act_window_close'} #=========================================================================== def onchange_payment_mode_id(self,cr,uid,ids,payment_mode_id,context=None): res={} if payment_mode_id: mode=self.pool.get('account.payment.mode').browse(cr,uid,payment_mode_id,context) if mode.journal_id: val={'journal_id': mode.journal_id.id ,'payment_type':mode.type } res.update({'value':val}) return res account_voucher() #------------------------------------------------------------------------------- # account_payment_mode #------------------------------------------------------------------------------- class account_payment_mode(osv.Model): _name = 'account.payment.mode' _description = 'Type de paiement' _columns = { 'code':fields.char('Code',size=5), 'name':fields.char('Nom',required=True), 'journal_id':fields.many2one('account.journal',u'Journal par défaut'), 'type':fields.selection([ ('cash',u'Espéce'), ('bank','Banque'), ], 'Type', select=True, required=True), } account_payment_mode()
[ "wch@proosoft.com" ]
wch@proosoft.com
bab6d56a718ec9d67328ae538b93f0a8922534dc
5430cd3b483c858567f1687b0bed43eccd4d0fe0
/gpregression_gpy/gp_regression.py
67432db531b554ba742ef945817133a41f19f7b4
[]
no_license
roholazandie/gaussian_process_tutorial
a1b46c712d31545ee428db04a511150933902de8
f7efbaa534f6834447cb77a97e5162efd92f9a1a
refs/heads/master
2021-02-14T15:40:12.649801
2020-05-21T16:17:37
2020-05-21T16:17:37
244,816,147
0
0
null
null
null
null
UTF-8
Python
false
false
1,493
py
from GPy.kern import RBF, Brownian, PeriodicExponential, Cosine, Exponential, Integral, Matern32 from GPy.models import GPRegression import numpy as np from from_scratch.kernels import kernel, rbf import matplotlib.pyplot as plt X_test = np.arange(-5, 5, 0.2).reshape(-1, 1) # Mean and covariance of the prior mu = np.zeros(X_test.shape) # we set the mean to zero without loss of generality cov = kernel(X_test, X_test, kernel_func=rbf) # Draw three samples from the prior Y_test = np.random.multivariate_normal(mu.ravel(), cov, 3) noise = 0.1 #################### # Noise free training data X_train = np.array([-4, -3, -2, -1, 3]).reshape(-1, 1) Y_train = np.sin(X_train) rbf = RBF(input_dim=1, variance=1.0, lengthscale=1.0) brownian = Brownian(input_dim=1, variance=1.0) periodic = PeriodicExponential(input_dim=1, variance=2.0, n_freq=100) cosine = Cosine(input_dim=1, variance=2) exponential = Exponential(input_dim=1, variance=2.0) integral = Integral(input_dim=1, variances=2.0) matern = Matern32(input_dim=1, variance=2.0) gpr = GPRegression(X_train, Y_train, matern) # Fix the noise variance to known value gpr.Gaussian_noise.variance = noise**2 gpr.Gaussian_noise.variance.fix() # Run optimization ret = gpr.optimize() print(ret) # Display optimized parameter values print(gpr) # Obtain optimized kernel parameters #l = gpr.rbf.lengthscale.values[0] #sigma_f = np.sqrt(gpr.rbf.variance.values[0]) # Plot the results with the built-in plot function gpr.plot() plt.show()
[ "hilbert.cantor@gmail.com" ]
hilbert.cantor@gmail.com
623974d376e4ee42251374b3134571db9b2596f5
a1f77510aa89d1ff021243a011516f194969f685
/ouruser/migrations/0004_auto_20200716_1619.py
2be8f6ecc6a8b51d34473ea8b44e77f93aafa7a2
[]
no_license
happyssun96/Django_Basic
acd4105baecdd8337e01d33f544f0fe2c62fba66
2ad531531ade6b71a5868f580561ffe78fae4294
refs/heads/master
2023-02-05T23:09:37.979286
2020-12-28T09:30:31
2020-12-28T09:30:31
290,909,462
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
# Generated by Django 3.0.2 on 2020-07-16 07:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ouruser', '0003_ouruser_usermail'), ] operations = [ migrations.RenameField( model_name='ouruser', old_name='usermail', new_name='useremail', ), ]
[ "lsw96@naver.com" ]
lsw96@naver.com
b3cb7592a704a831cee1ff073fd9de421a6d2fdb
79ee9de70b508cbdf418a6b97a04ceaf94a913c7
/manage.py
41d95fdcc992eb3c748ed0cde2de9ee338885c8f
[]
no_license
mbasilak/NEw-Repo
b2a74146239df5c71e7d871dae7f00ed8a57322e
a0d0cfc53f1647fb510be9c187006c2fadf270ec
refs/heads/master
2020-03-20T09:29:52.613545
2018-06-14T09:59:07
2018-06-14T09:59:07
137,339,239
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dsstest.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv)
[ "mohammedbasil_b150451cs@nitc.ac.in" ]
mohammedbasil_b150451cs@nitc.ac.in
e1007f970ab3802cbfdbec41cb6803a6eba0af11
f58b25ec7bc1a880a880a88fad6f546999130262
/extra_app/xadmin/sites.py
cc29f3edaf1423f0c046aa721096ea1a15c9430e
[]
no_license
yyx2831/mkw
b3c387e34c6a7c35b8fb89b9f437bd379ec2d110
3768de3b587ecfb806b0f5543e9ec464ad652300
refs/heads/master
2021-01-25T09:31:27.686650
2017-07-22T01:45:49
2017-07-22T01:45:49
93,841,998
0
0
null
null
null
null
UTF-8
Python
false
false
14,797
py
import sys from functools import update_wrapper from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.models.base import ModelBase from django.views.decorators.cache import never_cache from django.template.engine import Engine import inspect reload(sys) sys.setdefaultencoding("utf-8") class AlreadyRegistered(Exception): pass class NotRegistered(Exception): pass class MergeAdminMetaclass(type): def __new__(cls, name, bases, attrs): return type.__new__(cls, str(name), bases, attrs) class AdminSite(object): def __init__(self, name='xadmin'): self.name = name self.app_name = 'xadmin' self._registry = {} # model_class class -> admin_class class self._registry_avs = {} # admin_view_class class -> admin_class class self._registry_settings = {} # settings name -> admin_class class self._registry_views = [] # url instance contains (path, admin_view class, name) self._registry_modelviews = [] # url instance contains (path, admin_view class, name) self._registry_plugins = {} # view_class class -> plugin_class class self._admin_view_cache = {} #self.check_dependencies() self.model_admins_order = 0 def copy_registry(self): import copy return { 'models': copy.copy(self._registry), 'avs': copy.copy(self._registry_avs), 'views': copy.copy(self._registry_views), 'settings': copy.copy(self._registry_settings), 'modelviews': copy.copy(self._registry_modelviews), 'plugins': copy.copy(self._registry_plugins), } def restore_registry(self, data): self._registry = data['models'] self._registry_avs = data['avs'] self._registry_views = data['views'] self._registry_settings = data['settings'] self._registry_modelviews = data['modelviews'] self._registry_plugins = data['plugins'] def register_modelview(self, path, admin_view_class, name): from xadmin.views.base import BaseAdminView if issubclass(admin_view_class, BaseAdminView): self._registry_modelviews.append((path, admin_view_class, name)) else: raise ImproperlyConfigured(u'The registered view class %s isn\'t subclass of %s' % (admin_view_class.__name__, BaseAdminView.__name__)) def register_view(self, path, admin_view_class, name): self._registry_views.append((path, admin_view_class, name)) def register_plugin(self, plugin_class, admin_view_class): from xadmin.views.base import BaseAdminPlugin if issubclass(plugin_class, BaseAdminPlugin): self._registry_plugins.setdefault( admin_view_class, []).append(plugin_class) else: raise ImproperlyConfigured(u'The registered plugin class %s isn\'t subclass of %s' % (plugin_class.__name__, BaseAdminPlugin.__name__)) def register_settings(self, name, admin_class): self._registry_settings[name.lower()] = admin_class def register(self, model_or_iterable, admin_class=object, **options): # type: (object, object, object) -> object from xadmin.views.base import BaseAdminView if isinstance(model_or_iterable, ModelBase) or issubclass(model_or_iterable, BaseAdminView): model_or_iterable = [model_or_iterable] for model in model_or_iterable: if isinstance(model, ModelBase): if model._meta.abstract: raise ImproperlyConfigured('The model %s is abstract, so it ' 'cannot be registered with admin.' % model.__name__) if model in self._registry: raise AlreadyRegistered( 'The model %s is already registered' % model.__name__) # If we got **options then dynamically construct a subclass of # admin_class with those **options. if options: # For reasons I don't quite understand, without a __module__ # the created class appears to "live" in the wrong place, # which causes issues later on. options['__module__'] = __name__ admin_class = type(str("%s%sAdmin" % (model._meta.app_label, model._meta.model_name)), (admin_class,), options or {}) admin_class.model = model admin_class.order = self.model_admins_order self.model_admins_order += 1 self._registry[model] = admin_class else: if model in self._registry_avs: raise AlreadyRegistered('The admin_view_class %s is already registered' % model.__name__) if options: options['__module__'] = __name__ admin_class = type(str( "%sAdmin" % model.__name__), (admin_class,), options) # Instantiate the admin class to save in the registry self._registry_avs[model] = admin_class def unregister(self, model_or_iterable): """ Unregisters the given model(s). If a model isn't already registered, this will raise NotRegistered. """ from xadmin.views.base import BaseAdminView if isinstance(model_or_iterable, (ModelBase, BaseAdminView)): model_or_iterable = [model_or_iterable] for model in model_or_iterable: if isinstance(model, ModelBase): if model not in self._registry: raise NotRegistered( 'The model %s is not registered' % model.__name__) del self._registry[model] else: if model not in self._registry_avs: raise NotRegistered('The admin_view_class %s is not registered' % model.__name__) del self._registry_avs[model] def set_loginview(self, login_view): self.login_view = login_view def has_permission(self, request): """ Returns True if the given HttpRequest has permission to view *at least one* page in the admin site. """ return request.user.is_active and request.user.is_staff def check_dependencies(self): """ Check that all things needed to run the admin have been correctly installed. The default implementation checks that LogEntry, ContentType and the auth context processor are installed. """ from django.contrib.contenttypes.models import ContentType if not ContentType._meta.installed: raise ImproperlyConfigured("Put 'django.contrib.contenttypes' in " "your INSTALLED_APPS setting in order to use the admin application.") default_template_engine = Engine.get_default() if not ('django.contrib.auth.context_processors.auth' in default_template_engine.context_processors or 'django.core.context_processors.auth' in default_template_engine.context_processors): raise ImproperlyConfigured("Put 'django.contrib.auth.context_processors.auth' " "in your TEMPLATE_CONTEXT_PROCESSORS setting in order to use the admin application.") def admin_view(self, view, cacheable=False): """ Decorator to create an admin view attached to this ``AdminSite``. This wraps the view and provides permission checking by calling ``self.has_permission``. You'll want to use this from within ``AdminSite.get_urls()``: class MyAdminSite(AdminSite): def get_urls(self): from django.conf.urls import url urls = super(MyAdminSite, self).get_urls() urls += [ url(r'^my_view/$', self.admin_view(some_view)) ] return urls By default, admin_views are marked non-cacheable using the ``never_cache`` decorator. If the view can be safely cached, set cacheable=True. """ def inner(request, *args, **kwargs): if not self.has_permission(request) and getattr(view, 'need_site_permission', True): return self.create_admin_view(self.login_view)(request, *args, **kwargs) return view(request, *args, **kwargs) if not cacheable: inner = never_cache(inner) return update_wrapper(inner, view) def _get_merge_attrs(self, option_class, plugin_class): return dict([(name, getattr(option_class, name)) for name in dir(option_class) if name[0] != '_' and not callable(getattr(option_class, name)) and hasattr(plugin_class, name)]) def _get_settings_class(self, admin_view_class): name = admin_view_class.__name__.lower() if name in self._registry_settings: return self._registry_settings[name] elif name.endswith('admin') and name[0:-5] in self._registry_settings: return self._registry_settings[name[0:-5]] elif name.endswith('adminview') and name[0:-9] in self._registry_settings: return self._registry_settings[name[0:-9]] return None def _create_plugin(self, option_classes): def merge_class(plugin_class): if option_classes: attrs = {} bases = [plugin_class] for oc in option_classes: attrs.update(self._get_merge_attrs(oc, plugin_class)) meta_class = getattr(oc, plugin_class.__name__, getattr(oc, plugin_class.__name__.replace('Plugin', ''), None)) if meta_class: bases.insert(0, meta_class) if attrs: plugin_class = MergeAdminMetaclass( '%s%s' % (''.join([oc.__name__ for oc in option_classes]), plugin_class.__name__), tuple(bases), attrs) return plugin_class return merge_class def get_plugins(self, admin_view_class, *option_classes): from xadmin.views import BaseAdminView plugins = [] opts = [oc for oc in option_classes if oc] for klass in admin_view_class.mro(): if klass == BaseAdminView or issubclass(klass, BaseAdminView): merge_opts = [] reg_class = self._registry_avs.get(klass) if reg_class: merge_opts.append(reg_class) settings_class = self._get_settings_class(klass) if settings_class: merge_opts.append(settings_class) merge_opts.extend(opts) ps = self._registry_plugins.get(klass, []) plugins.extend(map(self._create_plugin( merge_opts), ps) if merge_opts else ps) return plugins def get_view_class(self, view_class, option_class=None, **opts): merges = [option_class] if option_class else [] for klass in view_class.mro(): reg_class = self._registry_avs.get(klass) if reg_class: merges.append(reg_class) settings_class = self._get_settings_class(klass) if settings_class: merges.append(settings_class) merges.append(klass) new_class_name = ''.join([c.__name__ for c in merges]) if new_class_name not in self._admin_view_cache: plugins = self.get_plugins(view_class, option_class) self._admin_view_cache[new_class_name] = MergeAdminMetaclass( new_class_name, tuple(merges), dict({'plugin_classes': plugins, 'admin_site': self}, **opts)) return self._admin_view_cache[new_class_name] def create_admin_view(self, admin_view_class): return self.get_view_class(admin_view_class).as_view() def create_model_admin_view(self, admin_view_class, model, option_class): return self.get_view_class(admin_view_class, option_class).as_view() def get_urls(self): from django.conf.urls import url, include from xadmin.views.base import BaseAdminView if settings.DEBUG: self.check_dependencies() def wrap(view, cacheable=False): def wrapper(*args, **kwargs): return self.admin_view(view, cacheable)(*args, **kwargs) return update_wrapper(wrapper, view) # Admin-site-wide views. urlpatterns = [ url(r'^jsi18n/$', wrap(self.i18n_javascript, cacheable=True), name='jsi18n') ] # Registed admin views # inspect[isclass]: Only checks if the object is a class. With it lets you create an custom view that # inherits from multiple views and have more of a metaclass. urlpatterns += [ url(path, wrap(self.create_admin_view(clz_or_func)) if inspect.isclass(clz_or_func) and issubclass(clz_or_func, BaseAdminView) else include(clz_or_func(self)), name=name) for path, clz_or_func, name in self._registry_views ] # Add in each model's views. for model, admin_class in self._registry.iteritems(): view_urls = [url( path, wrap( self.create_model_admin_view(clz, model, admin_class)), name=name % (model._meta.app_label, model._meta.model_name)) for path, clz, name in self._registry_modelviews] urlpatterns += [ url(r'^%s/%s/' % ( model._meta.app_label, model._meta.model_name), include(view_urls)) ] return urlpatterns @property def urls(self): return self.get_urls(), self.name, self.app_name def i18n_javascript(self, request): """ Displays the i18n JavaScript that the Django admin requires. This takes into account the USE_I18N setting. If it's set to False, the generated JavaScript will be leaner and faster. """ if settings.USE_I18N: from django.views.i18n import javascript_catalog else: from django.views.i18n import null_javascript_catalog as javascript_catalog return javascript_catalog(request, packages=['django.conf', 'xadmin']) # This global object represents the default admin site, for the common case. # You can instantiate AdminSite in your own code to create a custom admin site. site = AdminSite()
[ "yyx3112164@qq.com" ]
yyx3112164@qq.com
ca3ef938f4a560985d581a5cba50e500a4e82949
ad6e065b218bc8ed4c9b09237097b36bc50fba78
/src/digital_root.py
95b2627854883c08bcbbc0ab12d79ab5732f4083
[]
no_license
MarcosPTProenca/Coursera-exercises
f7e609a4ebaf6d215c563f44b642b865b70d5927
d0d30b1dac448dc108a27c2544901e04c37f95fc
refs/heads/main
2023-06-30T14:13:42.405688
2021-08-05T17:32:23
2021-08-05T17:32:23
392,809,202
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
def digital_root(n): temp = str(n) tamanho = len(temp) i=1 j=1 soma = 0 soma1 = 0 if tamanho <= 2: while tamanho > 0: x = (n//i) %10 soma += x i*=10 tamanho = tamanho - 1 return soma else: while tamanho > 0: x = (n//i) %10 soma += x i*=10 tamanho = tamanho - 1 temp = str(soma) tamanho2 = len(temp) while tamanho2 >0: x = (soma//j) %10 soma1 += x j*=10 tamanho2 = tamanho2 - 1 soma1 = digital_root(soma1) return soma1 print(digital_root(16))
[ "marcos.tavares159@gmail.com" ]
marcos.tavares159@gmail.com
8bc4524f3e796aba303093dc2cbb47cf3c36b28c
2eb96bb16a8807db11afa8db1c5aef9c8faeb68d
/pavement.py
880f61a78ccbb04ef6ef17a2cfa373c4df289e2b
[]
no_license
MagicSword/pygtktutnote
260afc291b893c8bebcc7b8ec97294b649d93308
4b897a4b42494d63ee506400164b23098fe70639
refs/heads/master
2021-01-20T09:01:37.575591
2009-03-26T18:54:15
2009-03-26T18:54:15
160,234
2
0
null
null
null
null
UTF-8
Python
false
false
11,828
py
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ TODO - make sure all of the files from the manifests are included """ __version__ = "$Id: pavement.py 1995 2009-03-01 21:09:26Z dhellmann $" # Standard library import os # Third-party import cog import paver import paver.doctools import sphinx # TODO # - move these variables to options? # - see about adding more args to sphinx runner to avoid having to write my own # # What project are we building? PROJECT = 'PyMOTW' # What version is this? (take from path in svn tree) VERSION = path(os.getcwd()).name os.environ['VERSION'] = VERSION # What is the current module being documented? MODULE = path('module').text().rstrip() os.environ['MODULE'] = MODULE # Read the long description to give to setup README = path('README.txt').text() # Scan the input for package information # to grab any data files (text, images, etc.) # associated with sub-packages. PACKAGE_DATA = setuputils.find_package_data(PROJECT, package=PROJECT, only_in_packages=True, ) options( setup=Bunch( name = PROJECT, version = VERSION, description = 'Python Module of the Week Examples: ' + MODULE, long_description = README, author = 'Doug Hellmann', author_email = 'doug.hellmann@gmail.com', url = 'http://www.doughellmann.com/PyMOTW/', download_url = 'http://www.doughellmann.com/downloads/%s-%s.tar.gz' % \ (PROJECT, VERSION), classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'License :: OSI Approved :: BSD License', 'Operating System :: POSIX', 'Programming Language :: Python', 'Topic :: Software Development', ], platforms = ('Any',), keywords = ('python', 'PyMOTW', 'documentation'), # It seems wrong to have to list recursive packages explicitly. packages = sorted(PACKAGE_DATA.keys()), package_data=PACKAGE_DATA, zip_safe=False, ), sdist = Bunch( outdir='~/Desktop', ), sphinx = Bunch( sourcedir=PROJECT, docroot = '.', builder = 'html', doctrees='sphinx/doctrees', confdir = 'sphinx', ), html = Bunch( builddir='docs', outdir='docs', templates='pkg', ), website=Bunch( templates = 'web', #outdir = 'web', builddir = 'web', # What server hosts the website? server = 'www.doughellmann.com', server_path = '/var/www/doughellmann/DocumentRoot/PyMOTW/', # What template should be used for the web site HTML? template_source = '~/Devel/personal/doughellmann/templates/base.html', template_dest = 'sphinx/templates/web/base.html', ), pdf=Bunch( templates='pkg', #outdir='pdf_output', builddir='web', builder='latex', ), blog=Bunch( sourcedir=path(PROJECT)/MODULE, builddir='blog_posts', outdir='blog_posts', confdir='sphinx/blog', doctrees='blog_posts/doctrees', ), # Some of the files include [[[ as part of a nested list data structure, # so change the tags cog looks for to something less likely to appear. cog=Bunch( beginspec='{{{cog', endspec='}}}', endoutput='{{{end}}}', ), ) def run_script(input_file, script_name, interpreter='python', include_prefix=True): """Run a script in the context of the input_file's directory, return the text output formatted to be included as an rst literal text block. """ from paver.runtime import sh from paver.path import path rundir = path(input_file).dirname() output_text = sh('cd %(rundir)s; %(interpreter)s %(script_name)s 2>&1' % vars(), capture=True) if include_prefix: response = '\n::\n\n' else: response = '' response += '\t$ %(interpreter)s %(script_name)s\n\t' % vars() response += '\n\t'.join(output_text.splitlines()) while not response.endswith('\n\n'): response += '\n' return response # Stuff run_script() into the builtins so we don't have to # import it in all of the cog blocks where we want to use it. __builtins__['run_script'] = run_script def remake_directories(*dirnames): """Remove the directories and recreate them. """ for d in dirnames: d = path(d) if d.exists(): d.rmtree() d.mkdir() return @task @needs(['generate_setup', 'minilib', 'html_clean', 'setuptools.command.sdist' ]) def sdist(): """Create a source distribution. """ # Copy the output file to the desktop dist_files = path('dist').glob('*.tar.gz') dest_dir = path(options.sdist.outdir).expanduser() for f in dist_files: f.move(dest_dir) return @task def html_clean(): """Remove sphinx output directories before building the HTML. """ remake_directories(options.sphinx.doctrees, options.html.outdir) call_task('html') return ########################### # Adapted from paver source def _get_paths(): """look up the options that determine where all of the files are.""" opts = options docroot = path(opts.get('docroot', 'docs')) if not docroot.exists(): raise BuildFailure("Sphinx documentation root (%s) does not exist." % docroot) builddir = docroot / opts.get("builddir", ".build") builddir.mkdir() srcdir = docroot / opts.get("sourcedir", "") if not srcdir.exists(): raise BuildFailure("Sphinx source file dir (%s) does not exist" % srcdir) # Where is the sphinx conf.py file? confdir = path(opts.get('confdir', srcdir)) # Where should output files be generated? outdir = opts.get('outdir', '') if outdir: outdir = path(outdir) else: outdir = builddir / opts.get('builder', 'html') outdir.mkdir() # Where are doctrees cached? doctrees = opts.get('doctrees', '') if not doctrees: doctrees = builddir / "doctrees" else: doctrees = path(doctrees) doctrees.mkdir() return Bunch(locals()) def run_sphinx(*option_sets): """Helper function to run sphinx with common options. Pass the names of namespaces to be used in the search path for options. """ if 'sphinx' not in option_sets: option_sets += ('sphinx',) kwds = dict(add_rest=False) options.order(*option_sets, **kwds) paths = _get_paths() sphinxopts = ['', '-b', options.get('builder', 'html'), '-d', paths.doctrees, '-c', paths.confdir, paths.srcdir, paths.outdir] dry("sphinx-build %s" % (" ".join(sphinxopts),), sphinx.main, sphinxopts) return @task @needs(['cog']) def html(): """Build HTML documentation using Sphinx. This uses the following options in a "sphinx" section of the options. docroot the root under which Sphinx will be working. default: docs builddir directory under the docroot where the resulting files are put. default: build sourcedir directory under the docroot for the source files default: (empty string) doctrees the location of the cached doctrees default: $builddir/doctrees confdir the location of the sphinx conf.py default: $sourcedir outdir the location of the generated output files default: $builddir/$builder builder the name of the sphinx builder to use default: html """ set_templates(options.html.templates) run_sphinx('html') return ########################### def set_templates(template_name): """Set the TEMPLATES environment variable, used by sphinx/conf.py. """ os.environ['TEMPLATES'] = template_name print 'Set TEMPLATES = "%s"' % template_name return @task @needs(['cog']) def pdf(): """Generate the PDF book. """ set_templates(options.pdf.templates) run_sphinx('pdf') latex_dir = path(options.pdf.builddir) / 'latex' sh('cd %s; make' % latex_dir) return @task @needs([ 'webhtml', 'pdf']) def website(): """Create local copy of website files. """ # Copy the PDF to the files to be copied to the directory to install pdf_file = path(options.pdf.builddir) / 'latex' / (PROJECT + '-' + VERSION + '.pdf') pdf_file.copy(path(options.website.builddir) / 'html') return @task def installwebsite(): """Rebuild and copy website files to the remote server. """ # Clean up remake_directories(options.pdf.builddir, options.website.builddir) # Rebuild call_task('website') # Copy to the server os.environ['RSYNC_RSH'] = '/usr/bin/ssh' src_path = path(options.website.builddir) / 'html' sh('cd %s; rsync --archive --delete --verbose . %s:%s' % (src_path, options.website.server, options.website.server_path)) return @task def webtemplatebase(): """Import the latest version of the web page template from the source. """ dest = path(options.website.template_dest).expanduser() src = path(options.website.template_source).expanduser() if not dest.exists() or (src.mtime > dest.mtime): src.copy(dest) return @task @needs(['webtemplatebase', 'cog']) def webhtml(): """Generate HTML files for website. """ set_templates(options.website.templates) run_sphinx('website') return def clean_blog_html(body): # Clean up the HTML import re import sys from BeautifulSoup import BeautifulSoup from cStringIO import StringIO # The post body is passed to stdin. soup = BeautifulSoup(body) # Remove the permalinks to each header since the blog does not have # the styles to hide them. links = soup.findAll('a', attrs={'class':"headerlink"}) [l.extract() for l in links] # Get BeautifulSoup's version of the string s = soup.__str__(prettyPrint=False) # Remove extra newlines. This depends on the fact that # code blocks are passed through pygments, which wraps each part of the line # in a span tag. pattern = re.compile(r'([^s][^p][^a][^n]>)\n$', re.DOTALL|re.IGNORECASE) s = ''.join(pattern.sub(r'\1', l) for l in StringIO(s)) return s def gen_blog_post(index_file, blog_file): """Generate the blog post body. """ # Add link to project home page at the end body = index_file.text().strip() output_body = clean_blog_html(body) + '''<p><a class="reference external" href="http://www.doughellmann.com/PyMOTW/">PyMOTW Home</a></p>''' blog_file.write_text(output_body) return @task @needs(['cog']) def blog(): """Generate the blog post version of the HTML for the current module. """ # Clean and recreate output directory remake_directories(options.blog.outdir) outdir = path(options.blog.outdir) # Generate html from sphinx run_sphinx('blog') index_file = outdir / 'index.html' blog_file = outdir / 'blog.html' dry("Write blog post body to %s" % blog_file, gen_blog_post, index_file=index_file, blog_file=blog_file) if 'EDITOR' in os.environ: sh('$EDITOR %s' % blog_file) return
[ "ming927@spp.url.com.tw" ]
ming927@spp.url.com.tw
28655d12f7ebe5ed86e20c02547e49ec2d631f55
09ce9635b0e74ba178e98efd0d5229a25995713e
/submissions/caddi2018/a.py
ea2d4a088775fdc6419701fecb2d83602a468c31
[ "Unlicense" ]
permissive
m-star18/atcoder
7575f1e1f3ee1dfa4a765493eb17b4ef0ad5f1f0
08e475810516602fa088f87daf1eba590b4e07cc
refs/heads/main
2023-07-14T09:16:42.807150
2021-08-22T15:59:48
2021-08-22T15:59:48
364,458,316
1
0
Unlicense
2021-08-22T15:59:49
2021-05-05T04:13:03
Python
UTF-8
Python
false
false
537
py
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) from collections import Counter def prime_decomposition(n): i = 2 table = [] while i * i <= n: while n % i == 0: n //= i table.append(i) i += 1 if n > 1: table.append(n) return table n, p = map(int, read().split()) ans = 1 for k, v in Counter(prime_decomposition(p)).items(): v //= n ans *= k ** v print(ans)
[ "31807@toyota.kosen-ac.jp" ]
31807@toyota.kosen-ac.jp
ad3d032383f09df8e69bb63d9f422b52183bde91
fc2f3c912ab824612bc57c92f37df0d197f58f34
/InstaClone/settings.py
4839e214f00fff09d2104476c1862f2dcd8a32b0
[]
no_license
rohandosi/insta_clone_django
9d6850d0786cc30a320fc6056e04e89abc09b934
fa7dc25e49c67ac9b21c08e574e7a33a326963ff
refs/heads/master
2021-01-21T12:20:38.855686
2017-05-19T10:04:17
2017-05-19T10:04:17
91,788,457
0
0
null
null
null
null
UTF-8
Python
false
false
3,188
py
""" Django settings for InstaClone project. Generated by 'django-admin startproject' using Django 1.11.1. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '$5dlfubj2va2%whbj%^fe=^tj5tskj)8%tn&+nmf^+0=e(u8p&' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'insta', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'InstaClone.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'InstaClone.wsgi.application' # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Password validation # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/1.11/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.11/howto/static-files/ STATIC_URL = '/static/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/'
[ "rohandosi7@gmail.com" ]
rohandosi7@gmail.com
ca91e953d072a747158278660ec24f31037659cb
e3173b5efe3e4a0af0e55479362d7534dadacd94
/emojireact/unicode_codes.py
e2ef9bc6647a830706b4da41ae1f4a64ccd8fed9
[ "MIT" ]
permissive
hopolapopola/Trusty-cogs
0fec3b82ec3070275893fa9f20996f0a865cb4b4
47d748c75d321196741c38e9d93a852c1dc96203
refs/heads/master
2023-04-16T02:14:04.419471
2021-10-15T03:07:47
2021-10-15T03:07:47
334,314,560
0
1
MIT
2021-02-01T03:43:20
2021-01-30T02:55:02
Python
UTF-8
Python
false
false
206,321
py
# -*- coding: UTF-8 -*- """ From https://github.com/carpedm20/emoji/blob/master/emoji/unicode_codes.py Data literal storing emoji names and unicode codes """ __all__ = ["EMOJI_UNICODE", "UNICODE_EMOJI", "EMOJI_ALIAS_UNICODE", "UNICODE_EMOJI_ALIAS"] EMOJI_UNICODE = { ":1st_place_medal:": "\U0001F947", ":2nd_place_medal:": "\U0001F948", ":3rd_place_medal:": "\U0001F949", ":AB_button_(blood_type):": "\U0001F18E", ":ATM_sign:": "\U0001F3E7", ":A_button_(blood_type):": "\U0001F170", ":Afghanistan:": "\U0001F1E6\U0001F1EB", ":Albania:": "\U0001F1E6\U0001F1F1", ":Algeria:": "\U0001F1E9\U0001F1FF", ":American_Samoa:": "\U0001F1E6\U0001F1F8", ":Andorra:": "\U0001F1E6\U0001F1E9", ":Angola:": "\U0001F1E6\U0001F1F4", ":Anguilla:": "\U0001F1E6\U0001F1EE", ":Antarctica:": "\U0001F1E6\U0001F1F6", ":Antigua_&_Barbuda:": "\U0001F1E6\U0001F1EC", ":Aquarius:": "\U00002652", ":Argentina:": "\U0001F1E6\U0001F1F7", ":Aries:": "\U00002648", ":Armenia:": "\U0001F1E6\U0001F1F2", ":Aruba:": "\U0001F1E6\U0001F1FC", ":Ascension_Island:": "\U0001F1E6\U0001F1E8", ":Australia:": "\U0001F1E6\U0001F1FA", ":Austria:": "\U0001F1E6\U0001F1F9", ":Azerbaijan:": "\U0001F1E6\U0001F1FF", ":BACK_arrow:": "\U0001F519", ":B_button_(blood_type):": "\U0001F171", ":Bahamas:": "\U0001F1E7\U0001F1F8", ":Bahrain:": "\U0001F1E7\U0001F1ED", ":Bangladesh:": "\U0001F1E7\U0001F1E9", ":Barbados:": "\U0001F1E7\U0001F1E7", ":Belarus:": "\U0001F1E7\U0001F1FE", ":Belgium:": "\U0001F1E7\U0001F1EA", ":Belize:": "\U0001F1E7\U0001F1FF", ":Benin:": "\U0001F1E7\U0001F1EF", ":Bermuda:": "\U0001F1E7\U0001F1F2", ":Bhutan:": "\U0001F1E7\U0001F1F9", ":Bolivia:": "\U0001F1E7\U0001F1F4", ":Bosnia_&_Herzegovina:": "\U0001F1E7\U0001F1E6", ":Botswana:": "\U0001F1E7\U0001F1FC", ":Bouvet_Island:": "\U0001F1E7\U0001F1FB", ":Brazil:": "\U0001F1E7\U0001F1F7", ":British_Indian_Ocean_Territory:": "\U0001F1EE\U0001F1F4", ":British_Virgin_Islands:": "\U0001F1FB\U0001F1EC", ":Brunei:": "\U0001F1E7\U0001F1F3", ":Bulgaria:": "\U0001F1E7\U0001F1EC", ":Burkina_Faso:": "\U0001F1E7\U0001F1EB", ":Burundi:": "\U0001F1E7\U0001F1EE", ":CL_button:": "\U0001F191", ":COOL_button:": "\U0001F192", ":Cambodia:": "\U0001F1F0\U0001F1ED", ":Cameroon:": "\U0001F1E8\U0001F1F2", ":Canada:": "\U0001F1E8\U0001F1E6", ":Canary_Islands:": "\U0001F1EE\U0001F1E8", ":Cancer:": "\U0000264B", ":Cape_Verde:": "\U0001F1E8\U0001F1FB", ":Capricorn:": "\U00002651", ":Caribbean_Netherlands:": "\U0001F1E7\U0001F1F6", ":Cayman_Islands:": "\U0001F1F0\U0001F1FE", ":Central_African_Republic:": "\U0001F1E8\U0001F1EB", ":Ceuta_&_Melilla:": "\U0001F1EA\U0001F1E6", ":Chad:": "\U0001F1F9\U0001F1E9", ":Chile:": "\U0001F1E8\U0001F1F1", ":China:": "\U0001F1E8\U0001F1F3", ":Christmas_Island:": "\U0001F1E8\U0001F1FD", ":Christmas_tree:": "\U0001F384", ":Clipperton_Island:": "\U0001F1E8\U0001F1F5", ":Cocos_(Keeling)_Islands:": "\U0001F1E8\U0001F1E8", ":Colombia:": "\U0001F1E8\U0001F1F4", ":Comoros:": "\U0001F1F0\U0001F1F2", ":Congo_-_Brazzaville:": "\U0001F1E8\U0001F1EC", ":Congo_-_Kinshasa:": "\U0001F1E8\U0001F1E9", ":Cook_Islands:": "\U0001F1E8\U0001F1F0", ":Costa_Rica:": "\U0001F1E8\U0001F1F7", ":Croatia:": "\U0001F1ED\U0001F1F7", ":Cuba:": "\U0001F1E8\U0001F1FA", ":Curaçao:": "\U0001F1E8\U0001F1FC", ":Cyprus:": "\U0001F1E8\U0001F1FE", ":Czechia:": "\U0001F1E8\U0001F1FF", ":Côte_d’Ivoire:": "\U0001F1E8\U0001F1EE", ":Denmark:": "\U0001F1E9\U0001F1F0", ":Diego_Garcia:": "\U0001F1E9\U0001F1EC", ":Djibouti:": "\U0001F1E9\U0001F1EF", ":Dominica:": "\U0001F1E9\U0001F1F2", ":Dominican_Republic:": "\U0001F1E9\U0001F1F4", ":END_arrow:": "\U0001F51A", ":Ecuador:": "\U0001F1EA\U0001F1E8", ":Egypt:": "\U0001F1EA\U0001F1EC", ":El_Salvador:": "\U0001F1F8\U0001F1FB", ":England:": "\U0001F3F4\U000E0067\U000E0062\U000E0065\U000E006E\U000E0067\U000E007F", ":Equatorial_Guinea:": "\U0001F1EC\U0001F1F6", ":Eritrea:": "\U0001F1EA\U0001F1F7", ":Estonia:": "\U0001F1EA\U0001F1EA", ":Ethiopia:": "\U0001F1EA\U0001F1F9", ":European_Union:": "\U0001F1EA\U0001F1FA", ":FREE_button:": "\U0001F193", ":Falkland_Islands:": "\U0001F1EB\U0001F1F0", ":Faroe_Islands:": "\U0001F1EB\U0001F1F4", ":Fiji:": "\U0001F1EB\U0001F1EF", ":Finland:": "\U0001F1EB\U0001F1EE", ":France:": "\U0001F1EB\U0001F1F7", ":French_Guiana:": "\U0001F1EC\U0001F1EB", ":French_Polynesia:": "\U0001F1F5\U0001F1EB", ":French_Southern_Territories:": "\U0001F1F9\U0001F1EB", ":Gabon:": "\U0001F1EC\U0001F1E6", ":Gambia:": "\U0001F1EC\U0001F1F2", ":Gemini:": "\U0000264A", ":Georgia:": "\U0001F1EC\U0001F1EA", ":Germany:": "\U0001F1E9\U0001F1EA", ":Ghana:": "\U0001F1EC\U0001F1ED", ":Gibraltar:": "\U0001F1EC\U0001F1EE", ":Greece:": "\U0001F1EC\U0001F1F7", ":Greenland:": "\U0001F1EC\U0001F1F1", ":Grenada:": "\U0001F1EC\U0001F1E9", ":Guadeloupe:": "\U0001F1EC\U0001F1F5", ":Guam:": "\U0001F1EC\U0001F1FA", ":Guatemala:": "\U0001F1EC\U0001F1F9", ":Guernsey:": "\U0001F1EC\U0001F1EC", ":Guinea:": "\U0001F1EC\U0001F1F3", ":Guinea-Bissau:": "\U0001F1EC\U0001F1FC", ":Guyana:": "\U0001F1EC\U0001F1FE", ":Haiti:": "\U0001F1ED\U0001F1F9", ":Heard_&_McDonald_Islands:": "\U0001F1ED\U0001F1F2", ":Honduras:": "\U0001F1ED\U0001F1F3", ":Hong_Kong_SAR_China:": "\U0001F1ED\U0001F1F0", ":Hungary:": "\U0001F1ED\U0001F1FA", ":ID_button:": "\U0001F194", ":Iceland:": "\U0001F1EE\U0001F1F8", ":India:": "\U0001F1EE\U0001F1F3", ":Indonesia:": "\U0001F1EE\U0001F1E9", ":Iran:": "\U0001F1EE\U0001F1F7", ":Iraq:": "\U0001F1EE\U0001F1F6", ":Ireland:": "\U0001F1EE\U0001F1EA", ":Isle_of_Man:": "\U0001F1EE\U0001F1F2", ":Israel:": "\U0001F1EE\U0001F1F1", ":Italy:": "\U0001F1EE\U0001F1F9", ":Jamaica:": "\U0001F1EF\U0001F1F2", ":Japan:": "\U0001F1EF\U0001F1F5", ":Japanese_acceptable_button:": "\U0001F251", ":Japanese_application_button:": "\U0001F238", ":Japanese_bargain_button:": "\U0001F250", ":Japanese_castle:": "\U0001F3EF", ":Japanese_congratulations_button:": "\U00003297", ":Japanese_discount_button:": "\U0001F239", ":Japanese_dolls:": "\U0001F38E", ":Japanese_free_of_charge_button:": "\U0001F21A", ":Japanese_here_button:": "\U0001F201", ":Japanese_monthly_amount_button:": "\U0001F237", ":Japanese_no_vacancy_button:": "\U0001F235", ":Japanese_not_free_of_charge_button:": "\U0001F236", ":Japanese_open_for_business_button:": "\U0001F23A", ":Japanese_passing_grade_button:": "\U0001F234", ":Japanese_post_office:": "\U0001F3E3", ":Japanese_prohibited_button:": "\U0001F232", ":Japanese_reserved_button:": "\U0001F22F", ":Japanese_secret_button:": "\U00003299", ":Japanese_service_charge_button:": "\U0001F202", ":Japanese_symbol_for_beginner:": "\U0001F530", ":Japanese_vacancy_button:": "\U0001F233", ":Jersey:": "\U0001F1EF\U0001F1EA", ":Jordan:": "\U0001F1EF\U0001F1F4", ":Kazakhstan:": "\U0001F1F0\U0001F1FF", ":Kenya:": "\U0001F1F0\U0001F1EA", ":Kiribati:": "\U0001F1F0\U0001F1EE", ":Kosovo:": "\U0001F1FD\U0001F1F0", ":Kuwait:": "\U0001F1F0\U0001F1FC", ":Kyrgyzstan:": "\U0001F1F0\U0001F1EC", ":Laos:": "\U0001F1F1\U0001F1E6", ":Latvia:": "\U0001F1F1\U0001F1FB", ":Lebanon:": "\U0001F1F1\U0001F1E7", ":Leo:": "\U0000264C", ":Lesotho:": "\U0001F1F1\U0001F1F8", ":Liberia:": "\U0001F1F1\U0001F1F7", ":Libra:": "\U0000264E", ":Libya:": "\U0001F1F1\U0001F1FE", ":Liechtenstein:": "\U0001F1F1\U0001F1EE", ":Lithuania:": "\U0001F1F1\U0001F1F9", ":Luxembourg:": "\U0001F1F1\U0001F1FA", ":Macau_SAR_China:": "\U0001F1F2\U0001F1F4", ":Macedonia:": "\U0001F1F2\U0001F1F0", ":Madagascar:": "\U0001F1F2\U0001F1EC", ":Malawi:": "\U0001F1F2\U0001F1FC", ":Malaysia:": "\U0001F1F2\U0001F1FE", ":Maldives:": "\U0001F1F2\U0001F1FB", ":Mali:": "\U0001F1F2\U0001F1F1", ":Malta:": "\U0001F1F2\U0001F1F9", ":Marshall_Islands:": "\U0001F1F2\U0001F1ED", ":Martinique:": "\U0001F1F2\U0001F1F6", ":Mauritania:": "\U0001F1F2\U0001F1F7", ":Mauritius:": "\U0001F1F2\U0001F1FA", ":Mayotte:": "\U0001F1FE\U0001F1F9", ":Mexico:": "\U0001F1F2\U0001F1FD", ":Micronesia:": "\U0001F1EB\U0001F1F2", ":Moldova:": "\U0001F1F2\U0001F1E9", ":Monaco:": "\U0001F1F2\U0001F1E8", ":Mongolia:": "\U0001F1F2\U0001F1F3", ":Montenegro:": "\U0001F1F2\U0001F1EA", ":Montserrat:": "\U0001F1F2\U0001F1F8", ":Morocco:": "\U0001F1F2\U0001F1E6", ":Mozambique:": "\U0001F1F2\U0001F1FF", ":Mrs._Claus:": "\U0001F936", ":Mrs._Claus_dark_skin_tone:": "\U0001F936\U0001F3FF", ":Mrs._Claus_light_skin_tone:": "\U0001F936\U0001F3FB", ":Mrs._Claus_medium-dark_skin_tone:": "\U0001F936\U0001F3FE", ":Mrs._Claus_medium-light_skin_tone:": "\U0001F936\U0001F3FC", ":Mrs._Claus_medium_skin_tone:": "\U0001F936\U0001F3FD", ":Myanmar_(Burma):": "\U0001F1F2\U0001F1F2", ":NEW_button:": "\U0001F195", ":NG_button:": "\U0001F196", ":Namibia:": "\U0001F1F3\U0001F1E6", ":Nauru:": "\U0001F1F3\U0001F1F7", ":Nepal:": "\U0001F1F3\U0001F1F5", ":Netherlands:": "\U0001F1F3\U0001F1F1", ":New_Caledonia:": "\U0001F1F3\U0001F1E8", ":New_Zealand:": "\U0001F1F3\U0001F1FF", ":Nicaragua:": "\U0001F1F3\U0001F1EE", ":Niger:": "\U0001F1F3\U0001F1EA", ":Nigeria:": "\U0001F1F3\U0001F1EC", ":Niue:": "\U0001F1F3\U0001F1FA", ":Norfolk_Island:": "\U0001F1F3\U0001F1EB", ":North_Korea:": "\U0001F1F0\U0001F1F5", ":Northern_Mariana_Islands:": "\U0001F1F2\U0001F1F5", ":Norway:": "\U0001F1F3\U0001F1F4", ":OK_button:": "\U0001F197", ":OK_hand:": "\U0001F44C", ":OK_hand_dark_skin_tone:": "\U0001F44C\U0001F3FF", ":OK_hand_light_skin_tone:": "\U0001F44C\U0001F3FB", ":OK_hand_medium-dark_skin_tone:": "\U0001F44C\U0001F3FE", ":OK_hand_medium-light_skin_tone:": "\U0001F44C\U0001F3FC", ":OK_hand_medium_skin_tone:": "\U0001F44C\U0001F3FD", ":ON!_arrow:": "\U0001F51B", ":O_button_(blood_type):": "\U0001F17E", ":Oman:": "\U0001F1F4\U0001F1F2", ":Ophiuchus:": "\U000026CE", ":P_button:": "\U0001F17F", ":Pakistan:": "\U0001F1F5\U0001F1F0", ":Palau:": "\U0001F1F5\U0001F1FC", ":Palestinian_Territories:": "\U0001F1F5\U0001F1F8", ":Panama:": "\U0001F1F5\U0001F1E6", ":Papua_New_Guinea:": "\U0001F1F5\U0001F1EC", ":Paraguay:": "\U0001F1F5\U0001F1FE", ":Peru:": "\U0001F1F5\U0001F1EA", ":Philippines:": "\U0001F1F5\U0001F1ED", ":Pisces:": "\U00002653", ":Pitcairn_Islands:": "\U0001F1F5\U0001F1F3", ":Poland:": "\U0001F1F5\U0001F1F1", ":Portugal:": "\U0001F1F5\U0001F1F9", ":Puerto_Rico:": "\U0001F1F5\U0001F1F7", ":Qatar:": "\U0001F1F6\U0001F1E6", ":Romania:": "\U0001F1F7\U0001F1F4", ":Russia:": "\U0001F1F7\U0001F1FA", ":Rwanda:": "\U0001F1F7\U0001F1FC", ":Réunion:": "\U0001F1F7\U0001F1EA", ":SOON_arrow:": "\U0001F51C", ":SOS_button:": "\U0001F198", ":Sagittarius:": "\U00002650", ":Samoa:": "\U0001F1FC\U0001F1F8", ":San_Marino:": "\U0001F1F8\U0001F1F2", ":Santa_Claus:": "\U0001F385", ":Santa_Claus_dark_skin_tone:": "\U0001F385\U0001F3FF", ":Santa_Claus_light_skin_tone:": "\U0001F385\U0001F3FB", ":Santa_Claus_medium-dark_skin_tone:": "\U0001F385\U0001F3FE", ":Santa_Claus_medium-light_skin_tone:": "\U0001F385\U0001F3FC", ":Santa_Claus_medium_skin_tone:": "\U0001F385\U0001F3FD", ":Saudi_Arabia:": "\U0001F1F8\U0001F1E6", ":Scorpio:": "\U0000264F", ":Scotland:": "\U0001F3F4\U000E0067\U000E0062\U000E0073\U000E0063\U000E0074\U000E007F", ":Senegal:": "\U0001F1F8\U0001F1F3", ":Serbia:": "\U0001F1F7\U0001F1F8", ":Seychelles:": "\U0001F1F8\U0001F1E8", ":Sierra_Leone:": "\U0001F1F8\U0001F1F1", ":Singapore:": "\U0001F1F8\U0001F1EC", ":Sint_Maarten:": "\U0001F1F8\U0001F1FD", ":Slovakia:": "\U0001F1F8\U0001F1F0", ":Slovenia:": "\U0001F1F8\U0001F1EE", ":Solomon_Islands:": "\U0001F1F8\U0001F1E7", ":Somalia:": "\U0001F1F8\U0001F1F4", ":South_Africa:": "\U0001F1FF\U0001F1E6", ":South_Georgia_&_South_Sandwich_Islands:": "\U0001F1EC\U0001F1F8", ":South_Korea:": "\U0001F1F0\U0001F1F7", ":South_Sudan:": "\U0001F1F8\U0001F1F8", ":Spain:": "\U0001F1EA\U0001F1F8", ":Sri_Lanka:": "\U0001F1F1\U0001F1F0", ":St._Barthélemy:": "\U0001F1E7\U0001F1F1", ":St._Helena:": "\U0001F1F8\U0001F1ED", ":St._Kitts_&_Nevis:": "\U0001F1F0\U0001F1F3", ":St._Lucia:": "\U0001F1F1\U0001F1E8", ":St._Martin:": "\U0001F1F2\U0001F1EB", ":St._Pierre_&_Miquelon:": "\U0001F1F5\U0001F1F2", ":St._Vincent_&_Grenadines:": "\U0001F1FB\U0001F1E8", ":Statue_of_Liberty:": "\U0001F5FD", ":Sudan:": "\U0001F1F8\U0001F1E9", ":Suriname:": "\U0001F1F8\U0001F1F7", ":Svalbard_&_Jan_Mayen:": "\U0001F1F8\U0001F1EF", ":Swaziland:": "\U0001F1F8\U0001F1FF", ":Sweden:": "\U0001F1F8\U0001F1EA", ":Switzerland:": "\U0001F1E8\U0001F1ED", ":Syria:": "\U0001F1F8\U0001F1FE", ":São_Tomé_&_Príncipe:": "\U0001F1F8\U0001F1F9", ":T-Rex:": "\U0001F996", ":TOP_arrow:": "\U0001F51D", ":Taiwan:": "\U0001F1F9\U0001F1FC", ":Tajikistan:": "\U0001F1F9\U0001F1EF", ":Tanzania:": "\U0001F1F9\U0001F1FF", ":Taurus:": "\U00002649", ":Thailand:": "\U0001F1F9\U0001F1ED", ":Timor-Leste:": "\U0001F1F9\U0001F1F1", ":Togo:": "\U0001F1F9\U0001F1EC", ":Tokelau:": "\U0001F1F9\U0001F1F0", ":Tokyo_tower:": "\U0001F5FC", ":Tonga:": "\U0001F1F9\U0001F1F4", ":Trinidad_&_Tobago:": "\U0001F1F9\U0001F1F9", ":Tristan_da_Cunha:": "\U0001F1F9\U0001F1E6", ":Tunisia:": "\U0001F1F9\U0001F1F3", ":Turkey:": "\U0001F1F9\U0001F1F7", ":Turkmenistan:": "\U0001F1F9\U0001F1F2", ":Turks_&_Caicos_Islands:": "\U0001F1F9\U0001F1E8", ":Tuvalu:": "\U0001F1F9\U0001F1FB", ":U.S._Outlying_Islands:": "\U0001F1FA\U0001F1F2", ":U.S._Virgin_Islands:": "\U0001F1FB\U0001F1EE", ":UP!_button:": "\U0001F199", ":Uganda:": "\U0001F1FA\U0001F1EC", ":Ukraine:": "\U0001F1FA\U0001F1E6", ":United_Arab_Emirates:": "\U0001F1E6\U0001F1EA", ":United_Kingdom:": "\U0001F1EC\U0001F1E7", ":United_Nations:": "\U0001F1FA\U0001F1F3", ":United_States:": "\U0001F1FA\U0001F1F8", ":Uruguay:": "\U0001F1FA\U0001F1FE", ":Uzbekistan:": "\U0001F1FA\U0001F1FF", ":VS_button:": "\U0001F19A", ":Vanuatu:": "\U0001F1FB\U0001F1FA", ":Vatican_City:": "\U0001F1FB\U0001F1E6", ":Venezuela:": "\U0001F1FB\U0001F1EA", ":Vietnam:": "\U0001F1FB\U0001F1F3", ":Virgo:": "\U0000264D", ":Wales:": "\U0001F3F4\U000E0067\U000E0062\U000E0077\U000E006C\U000E0073\U000E007F", ":Wallis_&_Futuna:": "\U0001F1FC\U0001F1EB", ":Western_Sahara:": "\U0001F1EA\U0001F1ED", ":Yemen:": "\U0001F1FE\U0001F1EA", ":Zambia:": "\U0001F1FF\U0001F1F2", ":Zimbabwe:": "\U0001F1FF\U0001F1FC", ":admission_tickets:": "\U0001F39F", ":adult:": "\U0001F9D1", ":adult_dark_skin_tone:": "\U0001F9D1\U0001F3FF", ":adult_light_skin_tone:": "\U0001F9D1\U0001F3FB", ":adult_medium-dark_skin_tone:": "\U0001F9D1\U0001F3FE", ":adult_medium-light_skin_tone:": "\U0001F9D1\U0001F3FC", ":adult_medium_skin_tone:": "\U0001F9D1\U0001F3FD", ":aerial_tramway:": "\U0001F6A1", ":airplane:": "\U00002708", ":airplane_arrival:": "\U0001F6EC", ":airplane_departure:": "\U0001F6EB", ":alarm_clock:": "\U000023F0", ":alembic:": "\U00002697", ":alien:": "\U0001F47D", ":alien_monster:": "\U0001F47E", ":ambulance:": "\U0001F691", ":american_football:": "\U0001F3C8", ":amphora:": "\U0001F3FA", ":anchor:": "\U00002693", ":anger_symbol:": "\U0001F4A2", ":angry_face:": "\U0001F620", ":angry_face_with_horns:": "\U0001F47F", ":anguished_face:": "\U0001F627", ":ant:": "\U0001F41C", ":antenna_bars:": "\U0001F4F6", ":anxious_face_with_sweat:": "\U0001F630", ":articulated_lorry:": "\U0001F69B", ":artist_palette:": "\U0001F3A8", ":astonished_face:": "\U0001F632", ":atom_symbol:": "\U0000269B", ":automobile:": "\U0001F697", ":avocado:": "\U0001F951", ":baby:": "\U0001F476", ":baby_angel:": "\U0001F47C", ":baby_angel_dark_skin_tone:": "\U0001F47C\U0001F3FF", ":baby_angel_light_skin_tone:": "\U0001F47C\U0001F3FB", ":baby_angel_medium-dark_skin_tone:": "\U0001F47C\U0001F3FE", ":baby_angel_medium-light_skin_tone:": "\U0001F47C\U0001F3FC", ":baby_angel_medium_skin_tone:": "\U0001F47C\U0001F3FD", ":baby_bottle:": "\U0001F37C", ":baby_chick:": "\U0001F424", ":baby_dark_skin_tone:": "\U0001F476\U0001F3FF", ":baby_light_skin_tone:": "\U0001F476\U0001F3FB", ":baby_medium-dark_skin_tone:": "\U0001F476\U0001F3FE", ":baby_medium-light_skin_tone:": "\U0001F476\U0001F3FC", ":baby_medium_skin_tone:": "\U0001F476\U0001F3FD", ":baby_symbol:": "\U0001F6BC", ":backhand_index_pointing_down:": "\U0001F447", ":backhand_index_pointing_down_dark_skin_tone:": "\U0001F447\U0001F3FF", ":backhand_index_pointing_down_light_skin_tone:": "\U0001F447\U0001F3FB", ":backhand_index_pointing_down_medium-dark_skin_tone:": "\U0001F447\U0001F3FE", ":backhand_index_pointing_down_medium-light_skin_tone:": "\U0001F447\U0001F3FC", ":backhand_index_pointing_down_medium_skin_tone:": "\U0001F447\U0001F3FD", ":backhand_index_pointing_left:": "\U0001F448", ":backhand_index_pointing_left_dark_skin_tone:": "\U0001F448\U0001F3FF", ":backhand_index_pointing_left_light_skin_tone:": "\U0001F448\U0001F3FB", ":backhand_index_pointing_left_medium-dark_skin_tone:": "\U0001F448\U0001F3FE", ":backhand_index_pointing_left_medium-light_skin_tone:": "\U0001F448\U0001F3FC", ":backhand_index_pointing_left_medium_skin_tone:": "\U0001F448\U0001F3FD", ":backhand_index_pointing_right:": "\U0001F449", ":backhand_index_pointing_right_dark_skin_tone:": "\U0001F449\U0001F3FF", ":backhand_index_pointing_right_light_skin_tone:": "\U0001F449\U0001F3FB", ":backhand_index_pointing_right_medium-dark_skin_tone:": "\U0001F449\U0001F3FE", ":backhand_index_pointing_right_medium-light_skin_tone:": "\U0001F449\U0001F3FC", ":backhand_index_pointing_right_medium_skin_tone:": "\U0001F449\U0001F3FD", ":backhand_index_pointing_up:": "\U0001F446", ":backhand_index_pointing_up_dark_skin_tone:": "\U0001F446\U0001F3FF", ":backhand_index_pointing_up_light_skin_tone:": "\U0001F446\U0001F3FB", ":backhand_index_pointing_up_medium-dark_skin_tone:": "\U0001F446\U0001F3FE", ":backhand_index_pointing_up_medium-light_skin_tone:": "\U0001F446\U0001F3FC", ":backhand_index_pointing_up_medium_skin_tone:": "\U0001F446\U0001F3FD", ":bacon:": "\U0001F953", ":badminton:": "\U0001F3F8", ":baggage_claim:": "\U0001F6C4", ":baguette_bread:": "\U0001F956", ":balance_scale:": "\U00002696", ":balloon:": "\U0001F388", ":ballot_box_with_ballot:": "\U0001F5F3", ":ballot_box_with_check:": "\U00002611", ":banana:": "\U0001F34C", ":bank:": "\U0001F3E6", ":bar_chart:": "\U0001F4CA", ":barber_pole:": "\U0001F488", ":baseball:": "\U000026BE", ":basketball:": "\U0001F3C0", ":bat:": "\U0001F987", ":bathtub:": "\U0001F6C1", ":battery:": "\U0001F50B", ":beach_with_umbrella:": "\U0001F3D6", ":beaming_face_with_smiling_eyes:": "\U0001F601", ":bear_face:": "\U0001F43B", ":bearded_person:": "\U0001F9D4", ":bearded_person_dark_skin_tone:": "\U0001F9D4\U0001F3FF", ":bearded_person_light_skin_tone:": "\U0001F9D4\U0001F3FB", ":bearded_person_medium-dark_skin_tone:": "\U0001F9D4\U0001F3FE", ":bearded_person_medium-light_skin_tone:": "\U0001F9D4\U0001F3FC", ":bearded_person_medium_skin_tone:": "\U0001F9D4\U0001F3FD", ":beating_heart:": "\U0001F493", ":bed:": "\U0001F6CF", ":beer_mug:": "\U0001F37A", ":bell:": "\U0001F514", ":bell_with_slash:": "\U0001F515", ":bellhop_bell:": "\U0001F6CE", ":bento_box:": "\U0001F371", ":bicycle:": "\U0001F6B2", ":bikini:": "\U0001F459", ":billed_cap:": "\U0001F9E2", ":biohazard:": "\U00002623", ":bird:": "\U0001F426", ":birthday_cake:": "\U0001F382", ":black_circle:": "\U000026AB", ":black_flag:": "\U0001F3F4", ":black_heart:": "\U0001F5A4", ":black_large_square:": "\U00002B1B", ":black_medium-small_square:": "\U000025FE", ":black_medium_square:": "\U000025FC", ":black_nib:": "\U00002712", ":black_small_square:": "\U000025AA", ":black_square_button:": "\U0001F532", ":blond-haired_man:": "\U0001F471\U0000200D\U00002642\U0000FE0F", ":blond-haired_man_dark_skin_tone:": "\U0001F471\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":blond-haired_man_light_skin_tone:": "\U0001F471\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":blond-haired_man_medium-dark_skin_tone:": "\U0001F471\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":blond-haired_man_medium-light_skin_tone:": "\U0001F471\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":blond-haired_man_medium_skin_tone:": "\U0001F471\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":blond-haired_person:": "\U0001F471", ":blond-haired_person_dark_skin_tone:": "\U0001F471\U0001F3FF", ":blond-haired_person_light_skin_tone:": "\U0001F471\U0001F3FB", ":blond-haired_person_medium-dark_skin_tone:": "\U0001F471\U0001F3FE", ":blond-haired_person_medium-light_skin_tone:": "\U0001F471\U0001F3FC", ":blond-haired_person_medium_skin_tone:": "\U0001F471\U0001F3FD", ":blond-haired_woman:": "\U0001F471\U0000200D\U00002640\U0000FE0F", ":blond-haired_woman_dark_skin_tone:": "\U0001F471\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":blond-haired_woman_light_skin_tone:": "\U0001F471\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":blond-haired_woman_medium-dark_skin_tone:": "\U0001F471\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":blond-haired_woman_medium-light_skin_tone:": "\U0001F471\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":blond-haired_woman_medium_skin_tone:": "\U0001F471\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":blossom:": "\U0001F33C", ":blowfish:": "\U0001F421", ":blue_book:": "\U0001F4D8", ":blue_circle:": "\U0001F535", ":blue_heart:": "\U0001F499", ":boar:": "\U0001F417", ":bomb:": "\U0001F4A3", ":bookmark:": "\U0001F516", ":bookmark_tabs:": "\U0001F4D1", ":books:": "\U0001F4DA", ":bottle_with_popping_cork:": "\U0001F37E", ":bouquet:": "\U0001F490", ":bow_and_arrow:": "\U0001F3F9", ":bowl_with_spoon:": "\U0001F963", ":bowling:": "\U0001F3B3", ":boxing_glove:": "\U0001F94A", ":boy:": "\U0001F466", ":boy_dark_skin_tone:": "\U0001F466\U0001F3FF", ":boy_light_skin_tone:": "\U0001F466\U0001F3FB", ":boy_medium-dark_skin_tone:": "\U0001F466\U0001F3FE", ":boy_medium-light_skin_tone:": "\U0001F466\U0001F3FC", ":boy_medium_skin_tone:": "\U0001F466\U0001F3FD", ":brain:": "\U0001F9E0", ":bread:": "\U0001F35E", ":breast-feeding:": "\U0001F931", ":breast-feeding_dark_skin_tone:": "\U0001F931\U0001F3FF", ":breast-feeding_light_skin_tone:": "\U0001F931\U0001F3FB", ":breast-feeding_medium-dark_skin_tone:": "\U0001F931\U0001F3FE", ":breast-feeding_medium-light_skin_tone:": "\U0001F931\U0001F3FC", ":breast-feeding_medium_skin_tone:": "\U0001F931\U0001F3FD", ":bride_with_veil:": "\U0001F470", ":bride_with_veil_dark_skin_tone:": "\U0001F470\U0001F3FF", ":bride_with_veil_light_skin_tone:": "\U0001F470\U0001F3FB", ":bride_with_veil_medium-dark_skin_tone:": "\U0001F470\U0001F3FE", ":bride_with_veil_medium-light_skin_tone:": "\U0001F470\U0001F3FC", ":bride_with_veil_medium_skin_tone:": "\U0001F470\U0001F3FD", ":bridge_at_night:": "\U0001F309", ":briefcase:": "\U0001F4BC", ":bright_button:": "\U0001F506", ":broccoli:": "\U0001F966", ":broken_heart:": "\U0001F494", ":bug:": "\U0001F41B", ":building_construction:": "\U0001F3D7", ":bullet_train:": "\U0001F685", ":burrito:": "\U0001F32F", ":bus:": "\U0001F68C", ":bus_stop:": "\U0001F68F", ":bust_in_silhouette:": "\U0001F464", ":busts_in_silhouette:": "\U0001F465", ":butterfly:": "\U0001F98B", ":cactus:": "\U0001F335", ":calendar:": "\U0001F4C5", ":call_me_hand:": "\U0001F919", ":call_me_hand_dark_skin_tone:": "\U0001F919\U0001F3FF", ":call_me_hand_light_skin_tone:": "\U0001F919\U0001F3FB", ":call_me_hand_medium-dark_skin_tone:": "\U0001F919\U0001F3FE", ":call_me_hand_medium-light_skin_tone:": "\U0001F919\U0001F3FC", ":call_me_hand_medium_skin_tone:": "\U0001F919\U0001F3FD", ":camel:": "\U0001F42A", ":camera:": "\U0001F4F7", ":camera_with_flash:": "\U0001F4F8", ":camping:": "\U0001F3D5", ":candle:": "\U0001F56F", ":candy:": "\U0001F36C", ":canned_food:": "\U0001F96B", ":canoe:": "\U0001F6F6", ":card_file_box:": "\U0001F5C3", ":card_index:": "\U0001F4C7", ":card_index_dividers:": "\U0001F5C2", ":carousel_horse:": "\U0001F3A0", ":carp_streamer:": "\U0001F38F", ":carrot:": "\U0001F955", ":castle:": "\U0001F3F0", ":cat:": "\U0001F408", ":cat_face:": "\U0001F431", ":cat_face_with_tears_of_joy:": "\U0001F639", ":cat_face_with_wry_smile:": "\U0001F63C", ":chains:": "\U000026D3", ":chart_decreasing:": "\U0001F4C9", ":chart_increasing:": "\U0001F4C8", ":chart_increasing_with_yen:": "\U0001F4B9", ":cheese_wedge:": "\U0001F9C0", ":chequered_flag:": "\U0001F3C1", ":cherries:": "\U0001F352", ":cherry_blossom:": "\U0001F338", ":chestnut:": "\U0001F330", ":chicken:": "\U0001F414", ":child:": "\U0001F9D2", ":child_dark_skin_tone:": "\U0001F9D2\U0001F3FF", ":child_light_skin_tone:": "\U0001F9D2\U0001F3FB", ":child_medium-dark_skin_tone:": "\U0001F9D2\U0001F3FE", ":child_medium-light_skin_tone:": "\U0001F9D2\U0001F3FC", ":child_medium_skin_tone:": "\U0001F9D2\U0001F3FD", ":children_crossing:": "\U0001F6B8", ":chipmunk:": "\U0001F43F", ":chocolate_bar:": "\U0001F36B", ":chopsticks:": "\U0001F962", ":church:": "\U000026EA", ":cigarette:": "\U0001F6AC", ":cinema:": "\U0001F3A6", ":circled_M:": "\U000024C2", ":circus_tent:": "\U0001F3AA", ":cityscape:": "\U0001F3D9", ":cityscape_at_dusk:": "\U0001F306", ":clamp:": "\U0001F5DC", ":clapper_board:": "\U0001F3AC", ":clapping_hands:": "\U0001F44F", ":clapping_hands_dark_skin_tone:": "\U0001F44F\U0001F3FF", ":clapping_hands_light_skin_tone:": "\U0001F44F\U0001F3FB", ":clapping_hands_medium-dark_skin_tone:": "\U0001F44F\U0001F3FE", ":clapping_hands_medium-light_skin_tone:": "\U0001F44F\U0001F3FC", ":clapping_hands_medium_skin_tone:": "\U0001F44F\U0001F3FD", ":classical_building:": "\U0001F3DB", ":clinking_beer_mugs:": "\U0001F37B", ":clinking_glasses:": "\U0001F942", ":clipboard:": "\U0001F4CB", ":clockwise_vertical_arrows:": "\U0001F503", ":closed_book:": "\U0001F4D5", ":closed_mailbox_with_lowered_flag:": "\U0001F4EA", ":closed_mailbox_with_raised_flag:": "\U0001F4EB", ":closed_umbrella:": "\U0001F302", ":cloud:": "\U00002601", ":cloud_with_lightning:": "\U0001F329", ":cloud_with_lightning_and_rain:": "\U000026C8", ":cloud_with_rain:": "\U0001F327", ":cloud_with_snow:": "\U0001F328", ":clown_face:": "\U0001F921", ":club_suit:": "\U00002663", ":clutch_bag:": "\U0001F45D", ":coat:": "\U0001F9E5", ":cocktail_glass:": "\U0001F378", ":coconut:": "\U0001F965", ":coffin:": "\U000026B0", ":collision:": "\U0001F4A5", ":comet:": "\U00002604", ":computer_disk:": "\U0001F4BD", ":computer_mouse:": "\U0001F5B1", ":confetti_ball:": "\U0001F38A", ":confounded_face:": "\U0001F616", ":confused_face:": "\U0001F615", ":construction:": "\U0001F6A7", ":construction_worker:": "\U0001F477", ":construction_worker_dark_skin_tone:": "\U0001F477\U0001F3FF", ":construction_worker_light_skin_tone:": "\U0001F477\U0001F3FB", ":construction_worker_medium-dark_skin_tone:": "\U0001F477\U0001F3FE", ":construction_worker_medium-light_skin_tone:": "\U0001F477\U0001F3FC", ":construction_worker_medium_skin_tone:": "\U0001F477\U0001F3FD", ":control_knobs:": "\U0001F39B", ":convenience_store:": "\U0001F3EA", ":cooked_rice:": "\U0001F35A", ":cookie:": "\U0001F36A", ":cooking:": "\U0001F373", ":copyright:": "\U000000A9", ":couch_and_lamp:": "\U0001F6CB", ":counterclockwise_arrows_button:": "\U0001F504", ":couple_with_heart:": "\U0001F491", ":couple_with_heart_man_man:": "\U0001F468\U0000200D\U00002764\U0000FE0F\U0000200D\U0001F468", ":couple_with_heart_woman_man:": "\U0001F469\U0000200D\U00002764\U0000FE0F\U0000200D\U0001F468", ":couple_with_heart_woman_woman:": "\U0001F469\U0000200D\U00002764\U0000FE0F\U0000200D\U0001F469", ":cow:": "\U0001F404", ":cow_face:": "\U0001F42E", ":cowboy_hat_face:": "\U0001F920", ":crab:": "\U0001F980", ":crayon:": "\U0001F58D", ":credit_card:": "\U0001F4B3", ":crescent_moon:": "\U0001F319", ":cricket:": "\U0001F997", ":cricket_game:": "\U0001F3CF", ":crocodile:": "\U0001F40A", ":croissant:": "\U0001F950", ":cross_mark:": "\U0000274C", ":cross_mark_button:": "\U0000274E", ":crossed_fingers:": "\U0001F91E", ":crossed_fingers_dark_skin_tone:": "\U0001F91E\U0001F3FF", ":crossed_fingers_light_skin_tone:": "\U0001F91E\U0001F3FB", ":crossed_fingers_medium-dark_skin_tone:": "\U0001F91E\U0001F3FE", ":crossed_fingers_medium-light_skin_tone:": "\U0001F91E\U0001F3FC", ":crossed_fingers_medium_skin_tone:": "\U0001F91E\U0001F3FD", ":crossed_flags:": "\U0001F38C", ":crossed_swords:": "\U00002694", ":crown:": "\U0001F451", ":crying_cat_face:": "\U0001F63F", ":crying_face:": "\U0001F622", ":crystal_ball:": "\U0001F52E", ":cucumber:": "\U0001F952", ":cup_with_straw:": "\U0001F964", ":curling_stone:": "\U0001F94C", ":curly_loop:": "\U000027B0", ":currency_exchange:": "\U0001F4B1", ":curry_rice:": "\U0001F35B", ":custard:": "\U0001F36E", ":customs:": "\U0001F6C3", ":cut_of_meat:": "\U0001F969", ":cyclone:": "\U0001F300", ":dagger:": "\U0001F5E1", ":dango:": "\U0001F361", ":dashing_away:": "\U0001F4A8", ":deciduous_tree:": "\U0001F333", ":deer:": "\U0001F98C", ":delivery_truck:": "\U0001F69A", ":department_store:": "\U0001F3EC", ":derelict_house:": "\U0001F3DA", ":desert:": "\U0001F3DC", ":desert_island:": "\U0001F3DD", ":desktop_computer:": "\U0001F5A5", ":detective:": "\U0001F575", ":detective_dark_skin_tone:": "\U0001F575\U0001F3FF", ":detective_light_skin_tone:": "\U0001F575\U0001F3FB", ":detective_medium-dark_skin_tone:": "\U0001F575\U0001F3FE", ":detective_medium-light_skin_tone:": "\U0001F575\U0001F3FC", ":detective_medium_skin_tone:": "\U0001F575\U0001F3FD", ":diamond_suit:": "\U00002666", ":diamond_with_a_dot:": "\U0001F4A0", ":dim_button:": "\U0001F505", ":direct_hit:": "\U0001F3AF", ":disappointed_face:": "\U0001F61E", ":dizzy:": "\U0001F4AB", ":dizzy_face:": "\U0001F635", ":dog:": "\U0001F415", ":dog_face:": "\U0001F436", ":dollar_banknote:": "\U0001F4B5", ":dolphin:": "\U0001F42C", ":door:": "\U0001F6AA", ":dotted_six-pointed_star:": "\U0001F52F", ":double_curly_loop:": "\U000027BF", ":double_exclamation_mark:": "\U0000203C", ":doughnut:": "\U0001F369", ":dove:": "\U0001F54A", ":down-left_arrow:": "\U00002199", ":down-right_arrow:": "\U00002198", ":down_arrow:": "\U00002B07", ":downcast_face_with_sweat:": "\U0001F613", ":downwards_button:": "\U0001F53D", ":dragon:": "\U0001F409", ":dragon_face:": "\U0001F432", ":dress:": "\U0001F457", ":drooling_face:": "\U0001F924", ":droplet:": "\U0001F4A7", ":drum:": "\U0001F941", ":duck:": "\U0001F986", ":dumpling:": "\U0001F95F", ":dvd:": "\U0001F4C0", ":e-mail:": "\U0001F4E7", ":eagle:": "\U0001F985", ":ear:": "\U0001F442", ":ear_dark_skin_tone:": "\U0001F442\U0001F3FF", ":ear_light_skin_tone:": "\U0001F442\U0001F3FB", ":ear_medium-dark_skin_tone:": "\U0001F442\U0001F3FE", ":ear_medium-light_skin_tone:": "\U0001F442\U0001F3FC", ":ear_medium_skin_tone:": "\U0001F442\U0001F3FD", ":ear_of_corn:": "\U0001F33D", ":egg:": "\U0001F95A", ":eggplant:": "\U0001F346", ":eight-pointed_star:": "\U00002734", ":eight-spoked_asterisk:": "\U00002733", ":eight-thirty:": "\U0001F563", ":eight_o’clock:": "\U0001F557", ":eject_button:": "\U000023CF", ":electric_plug:": "\U0001F50C", ":elephant:": "\U0001F418", ":eleven-thirty:": "\U0001F566", ":eleven_o’clock:": "\U0001F55A", ":elf:": "\U0001F9DD", ":elf_dark_skin_tone:": "\U0001F9DD\U0001F3FF", ":elf_light_skin_tone:": "\U0001F9DD\U0001F3FB", ":elf_medium-dark_skin_tone:": "\U0001F9DD\U0001F3FE", ":elf_medium-light_skin_tone:": "\U0001F9DD\U0001F3FC", ":elf_medium_skin_tone:": "\U0001F9DD\U0001F3FD", ":envelope:": "\U00002709", ":envelope_with_arrow:": "\U0001F4E9", ":euro_banknote:": "\U0001F4B6", ":evergreen_tree:": "\U0001F332", ":ewe:": "\U0001F411", ":exclamation_mark:": "\U00002757", ":exclamation_question_mark:": "\U00002049", ":exploding_head:": "\U0001F92F", ":expressionless_face:": "\U0001F611", ":eye:": "\U0001F441", ":eye_in_speech_bubble:": "\U0001F441\U0000FE0F\U0000200D\U0001F5E8\U0000FE0F", ":eyes:": "\U0001F440", ":face_blowing_a_kiss:": "\U0001F618", ":face_savoring_food:": "\U0001F60B", ":face_screaming_in_fear:": "\U0001F631", ":face_vomiting:": "\U0001F92E", ":face_with_hand_over_mouth:": "\U0001F92D", ":face_with_head-bandage:": "\U0001F915", ":face_with_medical_mask:": "\U0001F637", ":face_with_monocle:": "\U0001F9D0", ":face_with_open_mouth:": "\U0001F62E", ":face_with_raised_eyebrow:": "\U0001F928", ":face_with_rolling_eyes:": "\U0001F644", ":face_with_steam_from_nose:": "\U0001F624", ":face_with_symbols_on_mouth:": "\U0001F92C", ":face_with_tears_of_joy:": "\U0001F602", ":face_with_thermometer:": "\U0001F912", ":face_with_tongue:": "\U0001F61B", ":face_without_mouth:": "\U0001F636", ":factory:": "\U0001F3ED", ":fairy:": "\U0001F9DA", ":fairy_dark_skin_tone:": "\U0001F9DA\U0001F3FF", ":fairy_light_skin_tone:": "\U0001F9DA\U0001F3FB", ":fairy_medium-dark_skin_tone:": "\U0001F9DA\U0001F3FE", ":fairy_medium-light_skin_tone:": "\U0001F9DA\U0001F3FC", ":fairy_medium_skin_tone:": "\U0001F9DA\U0001F3FD", ":fallen_leaf:": "\U0001F342", ":family:": "\U0001F46A", ":family_man_boy:": "\U0001F468\U0000200D\U0001F466", ":family_man_boy_boy:": "\U0001F468\U0000200D\U0001F466\U0000200D\U0001F466", ":family_man_girl:": "\U0001F468\U0000200D\U0001F467", ":family_man_girl_boy:": "\U0001F468\U0000200D\U0001F467\U0000200D\U0001F466", ":family_man_girl_girl:": "\U0001F468\U0000200D\U0001F467\U0000200D\U0001F467", ":family_man_man_boy:": "\U0001F468\U0000200D\U0001F468\U0000200D\U0001F466", ":family_man_man_boy_boy:": "\U0001F468\U0000200D\U0001F468\U0000200D\U0001F466\U0000200D\U0001F466", ":family_man_man_girl:": "\U0001F468\U0000200D\U0001F468\U0000200D\U0001F467", ":family_man_man_girl_boy:": "\U0001F468\U0000200D\U0001F468\U0000200D\U0001F467\U0000200D\U0001F466", ":family_man_man_girl_girl:": "\U0001F468\U0000200D\U0001F468\U0000200D\U0001F467\U0000200D\U0001F467", ":family_man_woman_boy:": "\U0001F468\U0000200D\U0001F469\U0000200D\U0001F466", ":family_man_woman_boy_boy:": "\U0001F468\U0000200D\U0001F469\U0000200D\U0001F466\U0000200D\U0001F466", ":family_man_woman_girl:": "\U0001F468\U0000200D\U0001F469\U0000200D\U0001F467", ":family_man_woman_girl_boy:": "\U0001F468\U0000200D\U0001F469\U0000200D\U0001F467\U0000200D\U0001F466", ":family_man_woman_girl_girl:": "\U0001F468\U0000200D\U0001F469\U0000200D\U0001F467\U0000200D\U0001F467", ":family_woman_boy:": "\U0001F469\U0000200D\U0001F466", ":family_woman_boy_boy:": "\U0001F469\U0000200D\U0001F466\U0000200D\U0001F466", ":family_woman_girl:": "\U0001F469\U0000200D\U0001F467", ":family_woman_girl_boy:": "\U0001F469\U0000200D\U0001F467\U0000200D\U0001F466", ":family_woman_girl_girl:": "\U0001F469\U0000200D\U0001F467\U0000200D\U0001F467", ":family_woman_woman_boy:": "\U0001F469\U0000200D\U0001F469\U0000200D\U0001F466", ":family_woman_woman_boy_boy:": "\U0001F469\U0000200D\U0001F469\U0000200D\U0001F466\U0000200D\U0001F466", ":family_woman_woman_girl:": "\U0001F469\U0000200D\U0001F469\U0000200D\U0001F467", ":family_woman_woman_girl_boy:": "\U0001F469\U0000200D\U0001F469\U0000200D\U0001F467\U0000200D\U0001F466", ":family_woman_woman_girl_girl:": "\U0001F469\U0000200D\U0001F469\U0000200D\U0001F467\U0000200D\U0001F467", ":fast-forward_button:": "\U000023E9", ":fast_down_button:": "\U000023EC", ":fast_reverse_button:": "\U000023EA", ":fast_up_button:": "\U000023EB", ":fax_machine:": "\U0001F4E0", ":fearful_face:": "\U0001F628", ":female_sign:": "\U00002640", ":ferris_wheel:": "\U0001F3A1", ":ferry:": "\U000026F4", ":field_hockey:": "\U0001F3D1", ":file_cabinet:": "\U0001F5C4", ":file_folder:": "\U0001F4C1", ":film_frames:": "\U0001F39E", ":film_projector:": "\U0001F4FD", ":fire:": "\U0001F525", ":fire_engine:": "\U0001F692", ":fireworks:": "\U0001F386", ":first_quarter_moon:": "\U0001F313", ":first_quarter_moon_face:": "\U0001F31B", ":fish:": "\U0001F41F", ":fish_cake_with_swirl:": "\U0001F365", ":fishing_pole:": "\U0001F3A3", ":five-thirty:": "\U0001F560", ":five_o’clock:": "\U0001F554", ":flag_in_hole:": "\U000026F3", ":flashlight:": "\U0001F526", ":fleur-de-lis:": "\U0000269C", ":flexed_biceps:": "\U0001F4AA", ":flexed_biceps_dark_skin_tone:": "\U0001F4AA\U0001F3FF", ":flexed_biceps_light_skin_tone:": "\U0001F4AA\U0001F3FB", ":flexed_biceps_medium-dark_skin_tone:": "\U0001F4AA\U0001F3FE", ":flexed_biceps_medium-light_skin_tone:": "\U0001F4AA\U0001F3FC", ":flexed_biceps_medium_skin_tone:": "\U0001F4AA\U0001F3FD", ":floppy_disk:": "\U0001F4BE", ":flower_playing_cards:": "\U0001F3B4", ":flushed_face:": "\U0001F633", ":flying_saucer:": "\U0001F6F8", ":fog:": "\U0001F32B", ":foggy:": "\U0001F301", ":folded_hands:": "\U0001F64F", ":folded_hands_dark_skin_tone:": "\U0001F64F\U0001F3FF", ":folded_hands_light_skin_tone:": "\U0001F64F\U0001F3FB", ":folded_hands_medium-dark_skin_tone:": "\U0001F64F\U0001F3FE", ":folded_hands_medium-light_skin_tone:": "\U0001F64F\U0001F3FC", ":folded_hands_medium_skin_tone:": "\U0001F64F\U0001F3FD", ":footprints:": "\U0001F463", ":fork_and_knife:": "\U0001F374", ":fork_and_knife_with_plate:": "\U0001F37D", ":fortune_cookie:": "\U0001F960", ":fountain:": "\U000026F2", ":fountain_pen:": "\U0001F58B", ":four-thirty:": "\U0001F55F", ":four_leaf_clover:": "\U0001F340", ":four_o’clock:": "\U0001F553", ":fox_face:": "\U0001F98A", ":framed_picture:": "\U0001F5BC", ":french_fries:": "\U0001F35F", ":fried_shrimp:": "\U0001F364", ":frog_face:": "\U0001F438", ":front-facing_baby_chick:": "\U0001F425", ":frowning_face:": "\U00002639", ":frowning_face_with_open_mouth:": "\U0001F626", ":fuel_pump:": "\U000026FD", ":full_moon:": "\U0001F315", ":full_moon_face:": "\U0001F31D", ":funeral_urn:": "\U000026B1", ":game_die:": "\U0001F3B2", ":gear:": "\U00002699", ":gem_stone:": "\U0001F48E", ":genie:": "\U0001F9DE", ":ghost:": "\U0001F47B", ":giraffe:": "\U0001F992", ":girl:": "\U0001F467", ":girl_dark_skin_tone:": "\U0001F467\U0001F3FF", ":girl_light_skin_tone:": "\U0001F467\U0001F3FB", ":girl_medium-dark_skin_tone:": "\U0001F467\U0001F3FE", ":girl_medium-light_skin_tone:": "\U0001F467\U0001F3FC", ":girl_medium_skin_tone:": "\U0001F467\U0001F3FD", ":glass_of_milk:": "\U0001F95B", ":glasses:": "\U0001F453", ":globe_showing_Americas:": "\U0001F30E", ":globe_showing_Asia-Australia:": "\U0001F30F", ":globe_showing_Europe-Africa:": "\U0001F30D", ":globe_with_meridians:": "\U0001F310", ":gloves:": "\U0001F9E4", ":glowing_star:": "\U0001F31F", ":goal_net:": "\U0001F945", ":goat:": "\U0001F410", ":goblin:": "\U0001F47A", ":gorilla:": "\U0001F98D", ":graduation_cap:": "\U0001F393", ":grapes:": "\U0001F347", ":green_apple:": "\U0001F34F", ":green_book:": "\U0001F4D7", ":green_heart:": "\U0001F49A", ":green_salad:": "\U0001F957", ":grimacing_face:": "\U0001F62C", ":grinning_cat_face:": "\U0001F63A", ":grinning_cat_face_with_smiling_eyes:": "\U0001F638", ":grinning_face:": "\U0001F600", ":grinning_face_with_big_eyes:": "\U0001F603", ":grinning_face_with_smiling_eyes:": "\U0001F604", ":grinning_face_with_sweat:": "\U0001F605", ":grinning_squinting_face:": "\U0001F606", ":growing_heart:": "\U0001F497", ":guard:": "\U0001F482", ":guard_dark_skin_tone:": "\U0001F482\U0001F3FF", ":guard_light_skin_tone:": "\U0001F482\U0001F3FB", ":guard_medium-dark_skin_tone:": "\U0001F482\U0001F3FE", ":guard_medium-light_skin_tone:": "\U0001F482\U0001F3FC", ":guard_medium_skin_tone:": "\U0001F482\U0001F3FD", ":guitar:": "\U0001F3B8", ":hamburger:": "\U0001F354", ":hammer:": "\U0001F528", ":hammer_and_pick:": "\U00002692", ":hammer_and_wrench:": "\U0001F6E0", ":hamster_face:": "\U0001F439", ":hand_with_fingers_splayed:": "\U0001F590", ":hand_with_fingers_splayed_dark_skin_tone:": "\U0001F590\U0001F3FF", ":hand_with_fingers_splayed_light_skin_tone:": "\U0001F590\U0001F3FB", ":hand_with_fingers_splayed_medium-dark_skin_tone:": "\U0001F590\U0001F3FE", ":hand_with_fingers_splayed_medium-light_skin_tone:": "\U0001F590\U0001F3FC", ":hand_with_fingers_splayed_medium_skin_tone:": "\U0001F590\U0001F3FD", ":handbag:": "\U0001F45C", ":handshake:": "\U0001F91D", ":hatching_chick:": "\U0001F423", ":headphone:": "\U0001F3A7", ":hear-no-evil_monkey:": "\U0001F649", ":heart_decoration:": "\U0001F49F", ":heart_suit:": "\U00002665", ":heart_with_arrow:": "\U0001F498", ":heart_with_ribbon:": "\U0001F49D", ":heavy_check_mark:": "\U00002714", ":heavy_division_sign:": "\U00002797", ":heavy_dollar_sign:": "\U0001F4B2", ":heavy_heart_exclamation:": "\U00002763", ":heavy_large_circle:": "\U00002B55", ":heavy_minus_sign:": "\U00002796", ":heavy_multiplication_x:": "\U00002716", ":heavy_plus_sign:": "\U00002795", ":hedgehog:": "\U0001F994", ":helicopter:": "\U0001F681", ":herb:": "\U0001F33F", ":hibiscus:": "\U0001F33A", ":high-heeled_shoe:": "\U0001F460", ":high-speed_train:": "\U0001F684", ":high_voltage:": "\U000026A1", ":hole:": "\U0001F573", ":honey_pot:": "\U0001F36F", ":honeybee:": "\U0001F41D", ":horizontal_traffic_light:": "\U0001F6A5", ":horse:": "\U0001F40E", ":horse_face:": "\U0001F434", ":horse_racing:": "\U0001F3C7", ":horse_racing_dark_skin_tone:": "\U0001F3C7\U0001F3FF", ":horse_racing_light_skin_tone:": "\U0001F3C7\U0001F3FB", ":horse_racing_medium-dark_skin_tone:": "\U0001F3C7\U0001F3FE", ":horse_racing_medium-light_skin_tone:": "\U0001F3C7\U0001F3FC", ":horse_racing_medium_skin_tone:": "\U0001F3C7\U0001F3FD", ":hospital:": "\U0001F3E5", ":hot_beverage:": "\U00002615", ":hot_dog:": "\U0001F32D", ":hot_pepper:": "\U0001F336", ":hot_springs:": "\U00002668", ":hotel:": "\U0001F3E8", ":hourglass_done:": "\U0000231B", ":hourglass_not_done:": "\U000023F3", ":house:": "\U0001F3E0", ":house_with_garden:": "\U0001F3E1", ":houses:": "\U0001F3D8", ":hugging_face:": "\U0001F917", ":hundred_points:": "\U0001F4AF", ":hushed_face:": "\U0001F62F", ":ice_cream:": "\U0001F368", ":ice_hockey:": "\U0001F3D2", ":ice_skate:": "\U000026F8", ":inbox_tray:": "\U0001F4E5", ":incoming_envelope:": "\U0001F4E8", ":index_pointing_up:": "\U0000261D", ":index_pointing_up_dark_skin_tone:": "\U0000261D\U0001F3FF", ":index_pointing_up_light_skin_tone:": "\U0000261D\U0001F3FB", ":index_pointing_up_medium-dark_skin_tone:": "\U0000261D\U0001F3FE", ":index_pointing_up_medium-light_skin_tone:": "\U0000261D\U0001F3FC", ":index_pointing_up_medium_skin_tone:": "\U0000261D\U0001F3FD", ":information:": "\U00002139", ":input_latin_letters:": "\U0001F524", ":input_latin_lowercase:": "\U0001F521", ":input_latin_uppercase:": "\U0001F520", ":input_numbers:": "\U0001F522", ":input_symbols:": "\U0001F523", ":jack-o-lantern:": "\U0001F383", ":jeans:": "\U0001F456", ":joker:": "\U0001F0CF", ":joystick:": "\U0001F579", ":kaaba:": "\U0001F54B", ":key:": "\U0001F511", ":keyboard:": "\U00002328", ":keycap_#:": "\U00000023\U0000FE0F\U000020E3", ":keycap_*:": "\U0000002A\U0000FE0F\U000020E3", ":keycap_0:": "\U00000030\U0000FE0F\U000020E3", ":keycap_1:": "\U00000031\U0000FE0F\U000020E3", ":keycap_10:": "\U0001F51F", ":keycap_2:": "\U00000032\U0000FE0F\U000020E3", ":keycap_3:": "\U00000033\U0000FE0F\U000020E3", ":keycap_4:": "\U00000034\U0000FE0F\U000020E3", ":keycap_5:": "\U00000035\U0000FE0F\U000020E3", ":keycap_6:": "\U00000036\U0000FE0F\U000020E3", ":keycap_7:": "\U00000037\U0000FE0F\U000020E3", ":keycap_8:": "\U00000038\U0000FE0F\U000020E3", ":keycap_9:": "\U00000039\U0000FE0F\U000020E3", ":kick_scooter:": "\U0001F6F4", ":kimono:": "\U0001F458", ":kiss:": "\U0001F48F", ":kiss_man_man:": "\U0001F468\U0000200D\U00002764\U0000FE0F\U0000200D\U0001F48B\U0000200D\U0001F468", ":kiss_mark:": "\U0001F48B", ":kiss_woman_man:": "\U0001F469\U0000200D\U00002764\U0000FE0F\U0000200D\U0001F48B\U0000200D\U0001F468", ":kiss_woman_woman:": "\U0001F469\U0000200D\U00002764\U0000FE0F\U0000200D\U0001F48B\U0000200D\U0001F469", ":kissing_cat_face:": "\U0001F63D", ":kissing_face:": "\U0001F617", ":kissing_face_with_closed_eyes:": "\U0001F61A", ":kissing_face_with_smiling_eyes:": "\U0001F619", ":kitchen_knife:": "\U0001F52A", ":kiwi_fruit:": "\U0001F95D", ":koala:": "\U0001F428", ":label:": "\U0001F3F7", ":lady_beetle:": "\U0001F41E", ":laptop_computer:": "\U0001F4BB", ":large_blue_diamond:": "\U0001F537", ":large_orange_diamond:": "\U0001F536", ":last_quarter_moon:": "\U0001F317", ":last_quarter_moon_face:": "\U0001F31C", ":last_track_button:": "\U000023EE", ":latin_cross:": "\U0000271D", ":leaf_fluttering_in_wind:": "\U0001F343", ":ledger:": "\U0001F4D2", ":left-facing_fist:": "\U0001F91B", ":left-facing_fist_dark_skin_tone:": "\U0001F91B\U0001F3FF", ":left-facing_fist_light_skin_tone:": "\U0001F91B\U0001F3FB", ":left-facing_fist_medium-dark_skin_tone:": "\U0001F91B\U0001F3FE", ":left-facing_fist_medium-light_skin_tone:": "\U0001F91B\U0001F3FC", ":left-facing_fist_medium_skin_tone:": "\U0001F91B\U0001F3FD", ":left-right_arrow:": "\U00002194", ":left_arrow:": "\U00002B05", ":left_arrow_curving_right:": "\U000021AA", ":left_luggage:": "\U0001F6C5", ":left_speech_bubble:": "\U0001F5E8", ":lemon:": "\U0001F34B", ":leopard:": "\U0001F406", ":level_slider:": "\U0001F39A", ":light_bulb:": "\U0001F4A1", ":light_rail:": "\U0001F688", ":link:": "\U0001F517", ":linked_paperclips:": "\U0001F587", ":lion_face:": "\U0001F981", ":lipstick:": "\U0001F484", ":litter_in_bin_sign:": "\U0001F6AE", ":lizard:": "\U0001F98E", ":locked:": "\U0001F512", ":locked_with_key:": "\U0001F510", ":locked_with_pen:": "\U0001F50F", ":locomotive:": "\U0001F682", ":lollipop:": "\U0001F36D", ":loudly_crying_face:": "\U0001F62D", ":loudspeaker:": "\U0001F4E2", ":love-you_gesture:": "\U0001F91F", ":love-you_gesture_dark_skin_tone:": "\U0001F91F\U0001F3FF", ":love-you_gesture_light_skin_tone:": "\U0001F91F\U0001F3FB", ":love-you_gesture_medium-dark_skin_tone:": "\U0001F91F\U0001F3FE", ":love-you_gesture_medium-light_skin_tone:": "\U0001F91F\U0001F3FC", ":love-you_gesture_medium_skin_tone:": "\U0001F91F\U0001F3FD", ":love_hotel:": "\U0001F3E9", ":love_letter:": "\U0001F48C", ":lying_face:": "\U0001F925", ":mage:": "\U0001F9D9", ":mage_dark_skin_tone:": "\U0001F9D9\U0001F3FF", ":mage_light_skin_tone:": "\U0001F9D9\U0001F3FB", ":mage_medium-dark_skin_tone:": "\U0001F9D9\U0001F3FE", ":mage_medium-light_skin_tone:": "\U0001F9D9\U0001F3FC", ":mage_medium_skin_tone:": "\U0001F9D9\U0001F3FD", ":magnifying_glass_tilted_left:": "\U0001F50D", ":magnifying_glass_tilted_right:": "\U0001F50E", ":mahjong_red_dragon:": "\U0001F004", ":male_sign:": "\U00002642", ":man:": "\U0001F468", ":man_and_woman_holding_hands:": "\U0001F46B", ":man_artist:": "\U0001F468\U0000200D\U0001F3A8", ":man_artist_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F3A8", ":man_artist_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F3A8", ":man_artist_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F3A8", ":man_artist_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F3A8", ":man_artist_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F3A8", ":man_astronaut:": "\U0001F468\U0000200D\U0001F680", ":man_astronaut_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F680", ":man_astronaut_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F680", ":man_astronaut_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F680", ":man_astronaut_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F680", ":man_astronaut_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F680", ":man_biking:": "\U0001F6B4\U0000200D\U00002642\U0000FE0F", ":man_biking_dark_skin_tone:": "\U0001F6B4\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_biking_light_skin_tone:": "\U0001F6B4\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_biking_medium-dark_skin_tone:": "\U0001F6B4\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_biking_medium-light_skin_tone:": "\U0001F6B4\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_biking_medium_skin_tone:": "\U0001F6B4\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_bouncing_ball:": "\U000026F9\U0000FE0F\U0000200D\U00002642\U0000FE0F", ":man_bouncing_ball_dark_skin_tone:": "\U000026F9\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_bouncing_ball_light_skin_tone:": "\U000026F9\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_bouncing_ball_medium-dark_skin_tone:": "\U000026F9\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_bouncing_ball_medium-light_skin_tone:": "\U000026F9\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_bouncing_ball_medium_skin_tone:": "\U000026F9\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_bowing:": "\U0001F647\U0000200D\U00002642\U0000FE0F", ":man_bowing_dark_skin_tone:": "\U0001F647\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_bowing_light_skin_tone:": "\U0001F647\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_bowing_medium-dark_skin_tone:": "\U0001F647\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_bowing_medium-light_skin_tone:": "\U0001F647\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_bowing_medium_skin_tone:": "\U0001F647\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_cartwheeling:": "\U0001F938\U0000200D\U00002642\U0000FE0F", ":man_cartwheeling_dark_skin_tone:": "\U0001F938\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_cartwheeling_light_skin_tone:": "\U0001F938\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_cartwheeling_medium-dark_skin_tone:": "\U0001F938\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_cartwheeling_medium-light_skin_tone:": "\U0001F938\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_cartwheeling_medium_skin_tone:": "\U0001F938\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_climbing:": "\U0001F9D7\U0000200D\U00002642\U0000FE0F", ":man_climbing_dark_skin_tone:": "\U0001F9D7\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_climbing_light_skin_tone:": "\U0001F9D7\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_climbing_medium-dark_skin_tone:": "\U0001F9D7\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_climbing_medium-light_skin_tone:": "\U0001F9D7\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_climbing_medium_skin_tone:": "\U0001F9D7\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_construction_worker:": "\U0001F477\U0000200D\U00002642\U0000FE0F", ":man_construction_worker_dark_skin_tone:": "\U0001F477\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_construction_worker_light_skin_tone:": "\U0001F477\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_construction_worker_medium-dark_skin_tone:": "\U0001F477\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_construction_worker_medium-light_skin_tone:": "\U0001F477\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_construction_worker_medium_skin_tone:": "\U0001F477\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_cook:": "\U0001F468\U0000200D\U0001F373", ":man_cook_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F373", ":man_cook_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F373", ":man_cook_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F373", ":man_cook_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F373", ":man_cook_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F373", ":man_dancing:": "\U0001F57A", ":man_dancing_dark_skin_tone:": "\U0001F57A\U0001F3FF", ":man_dancing_light_skin_tone:": "\U0001F57A\U0001F3FB", ":man_dancing_medium-dark_skin_tone:": "\U0001F57A\U0001F3FE", ":man_dancing_medium-light_skin_tone:": "\U0001F57A\U0001F3FC", ":man_dancing_medium_skin_tone:": "\U0001F57A\U0001F3FD", ":man_dark_skin_tone:": "\U0001F468\U0001F3FF", ":man_detective:": "\U0001F575\U0000FE0F\U0000200D\U00002642\U0000FE0F", ":man_detective_dark_skin_tone:": "\U0001F575\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_detective_light_skin_tone:": "\U0001F575\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_detective_medium-dark_skin_tone:": "\U0001F575\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_detective_medium-light_skin_tone:": "\U0001F575\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_detective_medium_skin_tone:": "\U0001F575\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_elf:": "\U0001F9DD\U0000200D\U00002642\U0000FE0F", ":man_elf_dark_skin_tone:": "\U0001F9DD\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_elf_light_skin_tone:": "\U0001F9DD\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_elf_medium-dark_skin_tone:": "\U0001F9DD\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_elf_medium-light_skin_tone:": "\U0001F9DD\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_elf_medium_skin_tone:": "\U0001F9DD\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_facepalming:": "\U0001F926\U0000200D\U00002642\U0000FE0F", ":man_facepalming_dark_skin_tone:": "\U0001F926\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_facepalming_light_skin_tone:": "\U0001F926\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_facepalming_medium-dark_skin_tone:": "\U0001F926\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_facepalming_medium-light_skin_tone:": "\U0001F926\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_facepalming_medium_skin_tone:": "\U0001F926\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_factory_worker:": "\U0001F468\U0000200D\U0001F3ED", ":man_factory_worker_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F3ED", ":man_factory_worker_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F3ED", ":man_factory_worker_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F3ED", ":man_factory_worker_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F3ED", ":man_factory_worker_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F3ED", ":man_fairy:": "\U0001F9DA\U0000200D\U00002642\U0000FE0F", ":man_fairy_dark_skin_tone:": "\U0001F9DA\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_fairy_light_skin_tone:": "\U0001F9DA\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_fairy_medium-dark_skin_tone:": "\U0001F9DA\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_fairy_medium-light_skin_tone:": "\U0001F9DA\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_fairy_medium_skin_tone:": "\U0001F9DA\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_farmer:": "\U0001F468\U0000200D\U0001F33E", ":man_farmer_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F33E", ":man_farmer_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F33E", ":man_farmer_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F33E", ":man_farmer_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F33E", ":man_farmer_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F33E", ":man_firefighter:": "\U0001F468\U0000200D\U0001F692", ":man_firefighter_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F692", ":man_firefighter_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F692", ":man_firefighter_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F692", ":man_firefighter_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F692", ":man_firefighter_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F692", ":man_frowning:": "\U0001F64D\U0000200D\U00002642\U0000FE0F", ":man_frowning_dark_skin_tone:": "\U0001F64D\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_frowning_light_skin_tone:": "\U0001F64D\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_frowning_medium-dark_skin_tone:": "\U0001F64D\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_frowning_medium-light_skin_tone:": "\U0001F64D\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_frowning_medium_skin_tone:": "\U0001F64D\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_genie:": "\U0001F9DE\U0000200D\U00002642\U0000FE0F", ":man_gesturing_NO:": "\U0001F645\U0000200D\U00002642\U0000FE0F", ":man_gesturing_NO_dark_skin_tone:": "\U0001F645\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_gesturing_NO_light_skin_tone:": "\U0001F645\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_gesturing_NO_medium-dark_skin_tone:": "\U0001F645\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_gesturing_NO_medium-light_skin_tone:": "\U0001F645\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_gesturing_NO_medium_skin_tone:": "\U0001F645\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_gesturing_OK:": "\U0001F646\U0000200D\U00002642\U0000FE0F", ":man_gesturing_OK_dark_skin_tone:": "\U0001F646\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_gesturing_OK_light_skin_tone:": "\U0001F646\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_gesturing_OK_medium-dark_skin_tone:": "\U0001F646\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_gesturing_OK_medium-light_skin_tone:": "\U0001F646\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_gesturing_OK_medium_skin_tone:": "\U0001F646\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_getting_haircut:": "\U0001F487\U0000200D\U00002642\U0000FE0F", ":man_getting_haircut_dark_skin_tone:": "\U0001F487\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_getting_haircut_light_skin_tone:": "\U0001F487\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_getting_haircut_medium-dark_skin_tone:": "\U0001F487\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_getting_haircut_medium-light_skin_tone:": "\U0001F487\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_getting_haircut_medium_skin_tone:": "\U0001F487\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_getting_massage:": "\U0001F486\U0000200D\U00002642\U0000FE0F", ":man_getting_massage_dark_skin_tone:": "\U0001F486\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_getting_massage_light_skin_tone:": "\U0001F486\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_getting_massage_medium-dark_skin_tone:": "\U0001F486\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_getting_massage_medium-light_skin_tone:": "\U0001F486\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_getting_massage_medium_skin_tone:": "\U0001F486\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_golfing:": "\U0001F3CC\U0000FE0F\U0000200D\U00002642\U0000FE0F", ":man_golfing_dark_skin_tone:": "\U0001F3CC\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_golfing_light_skin_tone:": "\U0001F3CC\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_golfing_medium-dark_skin_tone:": "\U0001F3CC\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_golfing_medium-light_skin_tone:": "\U0001F3CC\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_golfing_medium_skin_tone:": "\U0001F3CC\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_guard:": "\U0001F482\U0000200D\U00002642\U0000FE0F", ":man_guard_dark_skin_tone:": "\U0001F482\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_guard_light_skin_tone:": "\U0001F482\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_guard_medium-dark_skin_tone:": "\U0001F482\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_guard_medium-light_skin_tone:": "\U0001F482\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_guard_medium_skin_tone:": "\U0001F482\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_health_worker:": "\U0001F468\U0000200D\U00002695\U0000FE0F", ":man_health_worker_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U00002695\U0000FE0F", ":man_health_worker_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U00002695\U0000FE0F", ":man_health_worker_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U00002695\U0000FE0F", ":man_health_worker_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U00002695\U0000FE0F", ":man_health_worker_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U00002695\U0000FE0F", ":man_in_lotus_position:": "\U0001F9D8\U0000200D\U00002642\U0000FE0F", ":man_in_lotus_position_dark_skin_tone:": "\U0001F9D8\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_in_lotus_position_light_skin_tone:": "\U0001F9D8\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_in_lotus_position_medium-dark_skin_tone:": "\U0001F9D8\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_in_lotus_position_medium-light_skin_tone:": "\U0001F9D8\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_in_lotus_position_medium_skin_tone:": "\U0001F9D8\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_in_steamy_room:": "\U0001F9D6\U0000200D\U00002642\U0000FE0F", ":man_in_steamy_room_dark_skin_tone:": "\U0001F9D6\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_in_steamy_room_light_skin_tone:": "\U0001F9D6\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_in_steamy_room_medium-dark_skin_tone:": "\U0001F9D6\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_in_steamy_room_medium-light_skin_tone:": "\U0001F9D6\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_in_steamy_room_medium_skin_tone:": "\U0001F9D6\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_in_suit_levitating:": "\U0001F574", ":man_in_suit_levitating_dark_skin_tone:": "\U0001F574\U0001F3FF", ":man_in_suit_levitating_light_skin_tone:": "\U0001F574\U0001F3FB", ":man_in_suit_levitating_medium-dark_skin_tone:": "\U0001F574\U0001F3FE", ":man_in_suit_levitating_medium-light_skin_tone:": "\U0001F574\U0001F3FC", ":man_in_suit_levitating_medium_skin_tone:": "\U0001F574\U0001F3FD", ":man_in_tuxedo:": "\U0001F935", ":man_in_tuxedo_dark_skin_tone:": "\U0001F935\U0001F3FF", ":man_in_tuxedo_light_skin_tone:": "\U0001F935\U0001F3FB", ":man_in_tuxedo_medium-dark_skin_tone:": "\U0001F935\U0001F3FE", ":man_in_tuxedo_medium-light_skin_tone:": "\U0001F935\U0001F3FC", ":man_in_tuxedo_medium_skin_tone:": "\U0001F935\U0001F3FD", ":man_judge:": "\U0001F468\U0000200D\U00002696\U0000FE0F", ":man_judge_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U00002696\U0000FE0F", ":man_judge_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U00002696\U0000FE0F", ":man_judge_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U00002696\U0000FE0F", ":man_judge_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U00002696\U0000FE0F", ":man_judge_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U00002696\U0000FE0F", ":man_juggling:": "\U0001F939\U0000200D\U00002642\U0000FE0F", ":man_juggling_dark_skin_tone:": "\U0001F939\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_juggling_light_skin_tone:": "\U0001F939\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_juggling_medium-dark_skin_tone:": "\U0001F939\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_juggling_medium-light_skin_tone:": "\U0001F939\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_juggling_medium_skin_tone:": "\U0001F939\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_lifting_weights:": "\U0001F3CB\U0000FE0F\U0000200D\U00002642\U0000FE0F", ":man_lifting_weights_dark_skin_tone:": "\U0001F3CB\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_lifting_weights_light_skin_tone:": "\U0001F3CB\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_lifting_weights_medium-dark_skin_tone:": "\U0001F3CB\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_lifting_weights_medium-light_skin_tone:": "\U0001F3CB\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_lifting_weights_medium_skin_tone:": "\U0001F3CB\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_light_skin_tone:": "\U0001F468\U0001F3FB", ":man_mage:": "\U0001F9D9\U0000200D\U00002642\U0000FE0F", ":man_mage_dark_skin_tone:": "\U0001F9D9\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_mage_light_skin_tone:": "\U0001F9D9\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_mage_medium-dark_skin_tone:": "\U0001F9D9\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_mage_medium-light_skin_tone:": "\U0001F9D9\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_mage_medium_skin_tone:": "\U0001F9D9\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_mechanic:": "\U0001F468\U0000200D\U0001F527", ":man_mechanic_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F527", ":man_mechanic_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F527", ":man_mechanic_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F527", ":man_mechanic_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F527", ":man_mechanic_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F527", ":man_medium-dark_skin_tone:": "\U0001F468\U0001F3FE", ":man_medium-light_skin_tone:": "\U0001F468\U0001F3FC", ":man_medium_skin_tone:": "\U0001F468\U0001F3FD", ":man_mountain_biking:": "\U0001F6B5\U0000200D\U00002642\U0000FE0F", ":man_mountain_biking_dark_skin_tone:": "\U0001F6B5\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_mountain_biking_light_skin_tone:": "\U0001F6B5\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_mountain_biking_medium-dark_skin_tone:": "\U0001F6B5\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_mountain_biking_medium-light_skin_tone:": "\U0001F6B5\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_mountain_biking_medium_skin_tone:": "\U0001F6B5\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_office_worker:": "\U0001F468\U0000200D\U0001F4BC", ":man_office_worker_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F4BC", ":man_office_worker_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F4BC", ":man_office_worker_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F4BC", ":man_office_worker_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F4BC", ":man_office_worker_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F4BC", ":man_pilot:": "\U0001F468\U0000200D\U00002708\U0000FE0F", ":man_pilot_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U00002708\U0000FE0F", ":man_pilot_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U00002708\U0000FE0F", ":man_pilot_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U00002708\U0000FE0F", ":man_pilot_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U00002708\U0000FE0F", ":man_pilot_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U00002708\U0000FE0F", ":man_playing_handball:": "\U0001F93E\U0000200D\U00002642\U0000FE0F", ":man_playing_handball_dark_skin_tone:": "\U0001F93E\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_playing_handball_light_skin_tone:": "\U0001F93E\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_playing_handball_medium-dark_skin_tone:": "\U0001F93E\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_playing_handball_medium-light_skin_tone:": "\U0001F93E\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_playing_handball_medium_skin_tone:": "\U0001F93E\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_playing_water_polo:": "\U0001F93D\U0000200D\U00002642\U0000FE0F", ":man_playing_water_polo_dark_skin_tone:": "\U0001F93D\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_playing_water_polo_light_skin_tone:": "\U0001F93D\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_playing_water_polo_medium-dark_skin_tone:": "\U0001F93D\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_playing_water_polo_medium-light_skin_tone:": "\U0001F93D\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_playing_water_polo_medium_skin_tone:": "\U0001F93D\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_police_officer:": "\U0001F46E\U0000200D\U00002642\U0000FE0F", ":man_police_officer_dark_skin_tone:": "\U0001F46E\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_police_officer_light_skin_tone:": "\U0001F46E\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_police_officer_medium-dark_skin_tone:": "\U0001F46E\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_police_officer_medium-light_skin_tone:": "\U0001F46E\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_police_officer_medium_skin_tone:": "\U0001F46E\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_pouting:": "\U0001F64E\U0000200D\U00002642\U0000FE0F", ":man_pouting_dark_skin_tone:": "\U0001F64E\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_pouting_light_skin_tone:": "\U0001F64E\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_pouting_medium-dark_skin_tone:": "\U0001F64E\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_pouting_medium-light_skin_tone:": "\U0001F64E\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_pouting_medium_skin_tone:": "\U0001F64E\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_raising_hand:": "\U0001F64B\U0000200D\U00002642\U0000FE0F", ":man_raising_hand_dark_skin_tone:": "\U0001F64B\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_raising_hand_light_skin_tone:": "\U0001F64B\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_raising_hand_medium-dark_skin_tone:": "\U0001F64B\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_raising_hand_medium-light_skin_tone:": "\U0001F64B\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_raising_hand_medium_skin_tone:": "\U0001F64B\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_rowing_boat:": "\U0001F6A3\U0000200D\U00002642\U0000FE0F", ":man_rowing_boat_dark_skin_tone:": "\U0001F6A3\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_rowing_boat_light_skin_tone:": "\U0001F6A3\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_rowing_boat_medium-dark_skin_tone:": "\U0001F6A3\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_rowing_boat_medium-light_skin_tone:": "\U0001F6A3\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_rowing_boat_medium_skin_tone:": "\U0001F6A3\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_running:": "\U0001F3C3\U0000200D\U00002642\U0000FE0F", ":man_running_dark_skin_tone:": "\U0001F3C3\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_running_light_skin_tone:": "\U0001F3C3\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_running_medium-dark_skin_tone:": "\U0001F3C3\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_running_medium-light_skin_tone:": "\U0001F3C3\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_running_medium_skin_tone:": "\U0001F3C3\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_scientist:": "\U0001F468\U0000200D\U0001F52C", ":man_scientist_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F52C", ":man_scientist_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F52C", ":man_scientist_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F52C", ":man_scientist_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F52C", ":man_scientist_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F52C", ":man_shrugging:": "\U0001F937\U0000200D\U00002642\U0000FE0F", ":man_shrugging_dark_skin_tone:": "\U0001F937\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_shrugging_light_skin_tone:": "\U0001F937\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_shrugging_medium-dark_skin_tone:": "\U0001F937\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_shrugging_medium-light_skin_tone:": "\U0001F937\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_shrugging_medium_skin_tone:": "\U0001F937\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_singer:": "\U0001F468\U0000200D\U0001F3A4", ":man_singer_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F3A4", ":man_singer_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F3A4", ":man_singer_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F3A4", ":man_singer_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F3A4", ":man_singer_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F3A4", ":man_student:": "\U0001F468\U0000200D\U0001F393", ":man_student_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F393", ":man_student_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F393", ":man_student_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F393", ":man_student_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F393", ":man_student_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F393", ":man_surfing:": "\U0001F3C4\U0000200D\U00002642\U0000FE0F", ":man_surfing_dark_skin_tone:": "\U0001F3C4\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_surfing_light_skin_tone:": "\U0001F3C4\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_surfing_medium-dark_skin_tone:": "\U0001F3C4\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_surfing_medium-light_skin_tone:": "\U0001F3C4\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_surfing_medium_skin_tone:": "\U0001F3C4\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_swimming:": "\U0001F3CA\U0000200D\U00002642\U0000FE0F", ":man_swimming_dark_skin_tone:": "\U0001F3CA\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_swimming_light_skin_tone:": "\U0001F3CA\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_swimming_medium-dark_skin_tone:": "\U0001F3CA\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_swimming_medium-light_skin_tone:": "\U0001F3CA\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_swimming_medium_skin_tone:": "\U0001F3CA\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_teacher:": "\U0001F468\U0000200D\U0001F3EB", ":man_teacher_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F3EB", ":man_teacher_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F3EB", ":man_teacher_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F3EB", ":man_teacher_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F3EB", ":man_teacher_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F3EB", ":man_technologist:": "\U0001F468\U0000200D\U0001F4BB", ":man_technologist_dark_skin_tone:": "\U0001F468\U0001F3FF\U0000200D\U0001F4BB", ":man_technologist_light_skin_tone:": "\U0001F468\U0001F3FB\U0000200D\U0001F4BB", ":man_technologist_medium-dark_skin_tone:": "\U0001F468\U0001F3FE\U0000200D\U0001F4BB", ":man_technologist_medium-light_skin_tone:": "\U0001F468\U0001F3FC\U0000200D\U0001F4BB", ":man_technologist_medium_skin_tone:": "\U0001F468\U0001F3FD\U0000200D\U0001F4BB", ":man_tipping_hand:": "\U0001F481\U0000200D\U00002642\U0000FE0F", ":man_tipping_hand_dark_skin_tone:": "\U0001F481\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_tipping_hand_light_skin_tone:": "\U0001F481\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_tipping_hand_medium-dark_skin_tone:": "\U0001F481\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_tipping_hand_medium-light_skin_tone:": "\U0001F481\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_tipping_hand_medium_skin_tone:": "\U0001F481\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_vampire:": "\U0001F9DB\U0000200D\U00002642\U0000FE0F", ":man_vampire_dark_skin_tone:": "\U0001F9DB\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_vampire_light_skin_tone:": "\U0001F9DB\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_vampire_medium-dark_skin_tone:": "\U0001F9DB\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_vampire_medium-light_skin_tone:": "\U0001F9DB\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_vampire_medium_skin_tone:": "\U0001F9DB\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_walking:": "\U0001F6B6\U0000200D\U00002642\U0000FE0F", ":man_walking_dark_skin_tone:": "\U0001F6B6\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_walking_light_skin_tone:": "\U0001F6B6\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_walking_medium-dark_skin_tone:": "\U0001F6B6\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_walking_medium-light_skin_tone:": "\U0001F6B6\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_walking_medium_skin_tone:": "\U0001F6B6\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_wearing_turban:": "\U0001F473\U0000200D\U00002642\U0000FE0F", ":man_wearing_turban_dark_skin_tone:": "\U0001F473\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":man_wearing_turban_light_skin_tone:": "\U0001F473\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":man_wearing_turban_medium-dark_skin_tone:": "\U0001F473\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":man_wearing_turban_medium-light_skin_tone:": "\U0001F473\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":man_wearing_turban_medium_skin_tone:": "\U0001F473\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":man_with_Chinese_cap:": "\U0001F472", ":man_with_Chinese_cap_dark_skin_tone:": "\U0001F472\U0001F3FF", ":man_with_Chinese_cap_light_skin_tone:": "\U0001F472\U0001F3FB", ":man_with_Chinese_cap_medium-dark_skin_tone:": "\U0001F472\U0001F3FE", ":man_with_Chinese_cap_medium-light_skin_tone:": "\U0001F472\U0001F3FC", ":man_with_Chinese_cap_medium_skin_tone:": "\U0001F472\U0001F3FD", ":man_zombie:": "\U0001F9DF\U0000200D\U00002642\U0000FE0F", ":mantelpiece_clock:": "\U0001F570", ":man’s_shoe:": "\U0001F45E", ":map_of_Japan:": "\U0001F5FE", ":maple_leaf:": "\U0001F341", ":martial_arts_uniform:": "\U0001F94B", ":meat_on_bone:": "\U0001F356", ":medical_symbol:": "\U00002695", ":megaphone:": "\U0001F4E3", ":melon:": "\U0001F348", ":memo:": "\U0001F4DD", ":men_with_bunny_ears:": "\U0001F46F\U0000200D\U00002642\U0000FE0F", ":men_wrestling:": "\U0001F93C\U0000200D\U00002642\U0000FE0F", ":menorah:": "\U0001F54E", ":men’s_room:": "\U0001F6B9", ":mermaid:": "\U0001F9DC\U0000200D\U00002640\U0000FE0F", ":mermaid_dark_skin_tone:": "\U0001F9DC\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":mermaid_light_skin_tone:": "\U0001F9DC\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":mermaid_medium-dark_skin_tone:": "\U0001F9DC\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":mermaid_medium-light_skin_tone:": "\U0001F9DC\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":mermaid_medium_skin_tone:": "\U0001F9DC\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":merman:": "\U0001F9DC\U0000200D\U00002642\U0000FE0F", ":merman_dark_skin_tone:": "\U0001F9DC\U0001F3FF\U0000200D\U00002642\U0000FE0F", ":merman_light_skin_tone:": "\U0001F9DC\U0001F3FB\U0000200D\U00002642\U0000FE0F", ":merman_medium-dark_skin_tone:": "\U0001F9DC\U0001F3FE\U0000200D\U00002642\U0000FE0F", ":merman_medium-light_skin_tone:": "\U0001F9DC\U0001F3FC\U0000200D\U00002642\U0000FE0F", ":merman_medium_skin_tone:": "\U0001F9DC\U0001F3FD\U0000200D\U00002642\U0000FE0F", ":merperson:": "\U0001F9DC", ":merperson_dark_skin_tone:": "\U0001F9DC\U0001F3FF", ":merperson_light_skin_tone:": "\U0001F9DC\U0001F3FB", ":merperson_medium-dark_skin_tone:": "\U0001F9DC\U0001F3FE", ":merperson_medium-light_skin_tone:": "\U0001F9DC\U0001F3FC", ":merperson_medium_skin_tone:": "\U0001F9DC\U0001F3FD", ":metro:": "\U0001F687", ":microphone:": "\U0001F3A4", ":microscope:": "\U0001F52C", ":middle_finger:": "\U0001F595", ":middle_finger_dark_skin_tone:": "\U0001F595\U0001F3FF", ":middle_finger_light_skin_tone:": "\U0001F595\U0001F3FB", ":middle_finger_medium-dark_skin_tone:": "\U0001F595\U0001F3FE", ":middle_finger_medium-light_skin_tone:": "\U0001F595\U0001F3FC", ":middle_finger_medium_skin_tone:": "\U0001F595\U0001F3FD", ":military_medal:": "\U0001F396", ":milky_way:": "\U0001F30C", ":minibus:": "\U0001F690", ":moai:": "\U0001F5FF", ":mobile_phone:": "\U0001F4F1", ":mobile_phone_off:": "\U0001F4F4", ":mobile_phone_with_arrow:": "\U0001F4F2", ":money-mouth_face:": "\U0001F911", ":money_bag:": "\U0001F4B0", ":money_with_wings:": "\U0001F4B8", ":monkey:": "\U0001F412", ":monkey_face:": "\U0001F435", ":monorail:": "\U0001F69D", ":moon_viewing_ceremony:": "\U0001F391", ":mosque:": "\U0001F54C", ":motor_boat:": "\U0001F6E5", ":motor_scooter:": "\U0001F6F5", ":motorcycle:": "\U0001F3CD", ":motorway:": "\U0001F6E3", ":mount_fuji:": "\U0001F5FB", ":mountain:": "\U000026F0", ":mountain_cableway:": "\U0001F6A0", ":mountain_railway:": "\U0001F69E", ":mouse:": "\U0001F401", ":mouse_face:": "\U0001F42D", ":mouth:": "\U0001F444", ":movie_camera:": "\U0001F3A5", ":mushroom:": "\U0001F344", ":musical_keyboard:": "\U0001F3B9", ":musical_note:": "\U0001F3B5", ":musical_notes:": "\U0001F3B6", ":musical_score:": "\U0001F3BC", ":muted_speaker:": "\U0001F507", ":nail_polish:": "\U0001F485", ":nail_polish_dark_skin_tone:": "\U0001F485\U0001F3FF", ":nail_polish_light_skin_tone:": "\U0001F485\U0001F3FB", ":nail_polish_medium-dark_skin_tone:": "\U0001F485\U0001F3FE", ":nail_polish_medium-light_skin_tone:": "\U0001F485\U0001F3FC", ":nail_polish_medium_skin_tone:": "\U0001F485\U0001F3FD", ":name_badge:": "\U0001F4DB", ":national_park:": "\U0001F3DE", ":nauseated_face:": "\U0001F922", ":necktie:": "\U0001F454", ":nerd_face:": "\U0001F913", ":neutral_face:": "\U0001F610", ":new_moon:": "\U0001F311", ":new_moon_face:": "\U0001F31A", ":newspaper:": "\U0001F4F0", ":next_track_button:": "\U000023ED", ":night_with_stars:": "\U0001F303", ":nine-thirty:": "\U0001F564", ":nine_o’clock:": "\U0001F558", ":no_bicycles:": "\U0001F6B3", ":no_entry:": "\U000026D4", ":no_littering:": "\U0001F6AF", ":no_mobile_phones:": "\U0001F4F5", ":no_one_under_eighteen:": "\U0001F51E", ":no_pedestrians:": "\U0001F6B7", ":no_smoking:": "\U0001F6AD", ":non-potable_water:": "\U0001F6B1", ":nose:": "\U0001F443", ":nose_dark_skin_tone:": "\U0001F443\U0001F3FF", ":nose_light_skin_tone:": "\U0001F443\U0001F3FB", ":nose_medium-dark_skin_tone:": "\U0001F443\U0001F3FE", ":nose_medium-light_skin_tone:": "\U0001F443\U0001F3FC", ":nose_medium_skin_tone:": "\U0001F443\U0001F3FD", ":notebook:": "\U0001F4D3", ":notebook_with_decorative_cover:": "\U0001F4D4", ":nut_and_bolt:": "\U0001F529", ":octopus:": "\U0001F419", ":oden:": "\U0001F362", ":office_building:": "\U0001F3E2", ":ogre:": "\U0001F479", ":oil_drum:": "\U0001F6E2", ":old_key:": "\U0001F5DD", ":old_man:": "\U0001F474", ":old_man_dark_skin_tone:": "\U0001F474\U0001F3FF", ":old_man_light_skin_tone:": "\U0001F474\U0001F3FB", ":old_man_medium-dark_skin_tone:": "\U0001F474\U0001F3FE", ":old_man_medium-light_skin_tone:": "\U0001F474\U0001F3FC", ":old_man_medium_skin_tone:": "\U0001F474\U0001F3FD", ":old_woman:": "\U0001F475", ":old_woman_dark_skin_tone:": "\U0001F475\U0001F3FF", ":old_woman_light_skin_tone:": "\U0001F475\U0001F3FB", ":old_woman_medium-dark_skin_tone:": "\U0001F475\U0001F3FE", ":old_woman_medium-light_skin_tone:": "\U0001F475\U0001F3FC", ":old_woman_medium_skin_tone:": "\U0001F475\U0001F3FD", ":older_adult:": "\U0001F9D3", ":older_adult_dark_skin_tone:": "\U0001F9D3\U0001F3FF", ":older_adult_light_skin_tone:": "\U0001F9D3\U0001F3FB", ":older_adult_medium-dark_skin_tone:": "\U0001F9D3\U0001F3FE", ":older_adult_medium-light_skin_tone:": "\U0001F9D3\U0001F3FC", ":older_adult_medium_skin_tone:": "\U0001F9D3\U0001F3FD", ":om:": "\U0001F549", ":oncoming_automobile:": "\U0001F698", ":oncoming_bus:": "\U0001F68D", ":oncoming_fist:": "\U0001F44A", ":oncoming_fist_dark_skin_tone:": "\U0001F44A\U0001F3FF", ":oncoming_fist_light_skin_tone:": "\U0001F44A\U0001F3FB", ":oncoming_fist_medium-dark_skin_tone:": "\U0001F44A\U0001F3FE", ":oncoming_fist_medium-light_skin_tone:": "\U0001F44A\U0001F3FC", ":oncoming_fist_medium_skin_tone:": "\U0001F44A\U0001F3FD", ":oncoming_police_car:": "\U0001F694", ":oncoming_taxi:": "\U0001F696", ":one-thirty:": "\U0001F55C", ":one_o’clock:": "\U0001F550", ":open_book:": "\U0001F4D6", ":open_file_folder:": "\U0001F4C2", ":open_hands:": "\U0001F450", ":open_hands_dark_skin_tone:": "\U0001F450\U0001F3FF", ":open_hands_light_skin_tone:": "\U0001F450\U0001F3FB", ":open_hands_medium-dark_skin_tone:": "\U0001F450\U0001F3FE", ":open_hands_medium-light_skin_tone:": "\U0001F450\U0001F3FC", ":open_hands_medium_skin_tone:": "\U0001F450\U0001F3FD", ":open_mailbox_with_lowered_flag:": "\U0001F4ED", ":open_mailbox_with_raised_flag:": "\U0001F4EC", ":optical_disk:": "\U0001F4BF", ":orange_book:": "\U0001F4D9", ":orange_heart:": "\U0001F9E1", ":orthodox_cross:": "\U00002626", ":outbox_tray:": "\U0001F4E4", ":owl:": "\U0001F989", ":ox:": "\U0001F402", ":package:": "\U0001F4E6", ":page_facing_up:": "\U0001F4C4", ":page_with_curl:": "\U0001F4C3", ":pager:": "\U0001F4DF", ":paintbrush:": "\U0001F58C", ":palm_tree:": "\U0001F334", ":palms_up_together:": "\U0001F932", ":palms_up_together_dark_skin_tone:": "\U0001F932\U0001F3FF", ":palms_up_together_light_skin_tone:": "\U0001F932\U0001F3FB", ":palms_up_together_medium-dark_skin_tone:": "\U0001F932\U0001F3FE", ":palms_up_together_medium-light_skin_tone:": "\U0001F932\U0001F3FC", ":palms_up_together_medium_skin_tone:": "\U0001F932\U0001F3FD", ":pancakes:": "\U0001F95E", ":panda_face:": "\U0001F43C", ":paperclip:": "\U0001F4CE", ":part_alternation_mark:": "\U0000303D", ":party_popper:": "\U0001F389", ":passenger_ship:": "\U0001F6F3", ":passport_control:": "\U0001F6C2", ":pause_button:": "\U000023F8", ":paw_prints:": "\U0001F43E", ":peace_symbol:": "\U0000262E", ":peach:": "\U0001F351", ":peanuts:": "\U0001F95C", ":pear:": "\U0001F350", ":pen:": "\U0001F58A", ":pencil:": "\U0000270F", ":penguin:": "\U0001F427", ":pensive_face:": "\U0001F614", ":people_with_bunny_ears:": "\U0001F46F", ":people_wrestling:": "\U0001F93C", ":performing_arts:": "\U0001F3AD", ":persevering_face:": "\U0001F623", ":person_biking:": "\U0001F6B4", ":person_biking_dark_skin_tone:": "\U0001F6B4\U0001F3FF", ":person_biking_light_skin_tone:": "\U0001F6B4\U0001F3FB", ":person_biking_medium-dark_skin_tone:": "\U0001F6B4\U0001F3FE", ":person_biking_medium-light_skin_tone:": "\U0001F6B4\U0001F3FC", ":person_biking_medium_skin_tone:": "\U0001F6B4\U0001F3FD", ":person_bouncing_ball:": "\U000026F9", ":person_bouncing_ball_dark_skin_tone:": "\U000026F9\U0001F3FF", ":person_bouncing_ball_light_skin_tone:": "\U000026F9\U0001F3FB", ":person_bouncing_ball_medium-dark_skin_tone:": "\U000026F9\U0001F3FE", ":person_bouncing_ball_medium-light_skin_tone:": "\U000026F9\U0001F3FC", ":person_bouncing_ball_medium_skin_tone:": "\U000026F9\U0001F3FD", ":person_bowing:": "\U0001F647", ":person_bowing_dark_skin_tone:": "\U0001F647\U0001F3FF", ":person_bowing_light_skin_tone:": "\U0001F647\U0001F3FB", ":person_bowing_medium-dark_skin_tone:": "\U0001F647\U0001F3FE", ":person_bowing_medium-light_skin_tone:": "\U0001F647\U0001F3FC", ":person_bowing_medium_skin_tone:": "\U0001F647\U0001F3FD", ":person_cartwheeling:": "\U0001F938", ":person_cartwheeling_dark_skin_tone:": "\U0001F938\U0001F3FF", ":person_cartwheeling_light_skin_tone:": "\U0001F938\U0001F3FB", ":person_cartwheeling_medium-dark_skin_tone:": "\U0001F938\U0001F3FE", ":person_cartwheeling_medium-light_skin_tone:": "\U0001F938\U0001F3FC", ":person_cartwheeling_medium_skin_tone:": "\U0001F938\U0001F3FD", ":person_climbing:": "\U0001F9D7", ":person_climbing_dark_skin_tone:": "\U0001F9D7\U0001F3FF", ":person_climbing_light_skin_tone:": "\U0001F9D7\U0001F3FB", ":person_climbing_medium-dark_skin_tone:": "\U0001F9D7\U0001F3FE", ":person_climbing_medium-light_skin_tone:": "\U0001F9D7\U0001F3FC", ":person_climbing_medium_skin_tone:": "\U0001F9D7\U0001F3FD", ":person_facepalming:": "\U0001F926", ":person_facepalming_dark_skin_tone:": "\U0001F926\U0001F3FF", ":person_facepalming_light_skin_tone:": "\U0001F926\U0001F3FB", ":person_facepalming_medium-dark_skin_tone:": "\U0001F926\U0001F3FE", ":person_facepalming_medium-light_skin_tone:": "\U0001F926\U0001F3FC", ":person_facepalming_medium_skin_tone:": "\U0001F926\U0001F3FD", ":person_fencing:": "\U0001F93A", ":person_frowning:": "\U0001F64D", ":person_frowning_dark_skin_tone:": "\U0001F64D\U0001F3FF", ":person_frowning_light_skin_tone:": "\U0001F64D\U0001F3FB", ":person_frowning_medium-dark_skin_tone:": "\U0001F64D\U0001F3FE", ":person_frowning_medium-light_skin_tone:": "\U0001F64D\U0001F3FC", ":person_frowning_medium_skin_tone:": "\U0001F64D\U0001F3FD", ":person_gesturing_NO:": "\U0001F645", ":person_gesturing_NO_dark_skin_tone:": "\U0001F645\U0001F3FF", ":person_gesturing_NO_light_skin_tone:": "\U0001F645\U0001F3FB", ":person_gesturing_NO_medium-dark_skin_tone:": "\U0001F645\U0001F3FE", ":person_gesturing_NO_medium-light_skin_tone:": "\U0001F645\U0001F3FC", ":person_gesturing_NO_medium_skin_tone:": "\U0001F645\U0001F3FD", ":person_gesturing_OK:": "\U0001F646", ":person_gesturing_OK_dark_skin_tone:": "\U0001F646\U0001F3FF", ":person_gesturing_OK_light_skin_tone:": "\U0001F646\U0001F3FB", ":person_gesturing_OK_medium-dark_skin_tone:": "\U0001F646\U0001F3FE", ":person_gesturing_OK_medium-light_skin_tone:": "\U0001F646\U0001F3FC", ":person_gesturing_OK_medium_skin_tone:": "\U0001F646\U0001F3FD", ":person_getting_haircut:": "\U0001F487", ":person_getting_haircut_dark_skin_tone:": "\U0001F487\U0001F3FF", ":person_getting_haircut_light_skin_tone:": "\U0001F487\U0001F3FB", ":person_getting_haircut_medium-dark_skin_tone:": "\U0001F487\U0001F3FE", ":person_getting_haircut_medium-light_skin_tone:": "\U0001F487\U0001F3FC", ":person_getting_haircut_medium_skin_tone:": "\U0001F487\U0001F3FD", ":person_getting_massage:": "\U0001F486", ":person_getting_massage_dark_skin_tone:": "\U0001F486\U0001F3FF", ":person_getting_massage_light_skin_tone:": "\U0001F486\U0001F3FB", ":person_getting_massage_medium-dark_skin_tone:": "\U0001F486\U0001F3FE", ":person_getting_massage_medium-light_skin_tone:": "\U0001F486\U0001F3FC", ":person_getting_massage_medium_skin_tone:": "\U0001F486\U0001F3FD", ":person_golfing:": "\U0001F3CC", ":person_golfing_dark_skin_tone:": "\U0001F3CC\U0001F3FF", ":person_golfing_light_skin_tone:": "\U0001F3CC\U0001F3FB", ":person_golfing_medium-dark_skin_tone:": "\U0001F3CC\U0001F3FE", ":person_golfing_medium-light_skin_tone:": "\U0001F3CC\U0001F3FC", ":person_golfing_medium_skin_tone:": "\U0001F3CC\U0001F3FD", ":person_in_bed:": "\U0001F6CC", ":person_in_bed_dark_skin_tone:": "\U0001F6CC\U0001F3FF", ":person_in_bed_light_skin_tone:": "\U0001F6CC\U0001F3FB", ":person_in_bed_medium-dark_skin_tone:": "\U0001F6CC\U0001F3FE", ":person_in_bed_medium-light_skin_tone:": "\U0001F6CC\U0001F3FC", ":person_in_bed_medium_skin_tone:": "\U0001F6CC\U0001F3FD", ":person_in_lotus_position:": "\U0001F9D8", ":person_in_lotus_position_dark_skin_tone:": "\U0001F9D8\U0001F3FF", ":person_in_lotus_position_light_skin_tone:": "\U0001F9D8\U0001F3FB", ":person_in_lotus_position_medium-dark_skin_tone:": "\U0001F9D8\U0001F3FE", ":person_in_lotus_position_medium-light_skin_tone:": "\U0001F9D8\U0001F3FC", ":person_in_lotus_position_medium_skin_tone:": "\U0001F9D8\U0001F3FD", ":person_in_steamy_room:": "\U0001F9D6", ":person_in_steamy_room_dark_skin_tone:": "\U0001F9D6\U0001F3FF", ":person_in_steamy_room_light_skin_tone:": "\U0001F9D6\U0001F3FB", ":person_in_steamy_room_medium-dark_skin_tone:": "\U0001F9D6\U0001F3FE", ":person_in_steamy_room_medium-light_skin_tone:": "\U0001F9D6\U0001F3FC", ":person_in_steamy_room_medium_skin_tone:": "\U0001F9D6\U0001F3FD", ":person_juggling:": "\U0001F939", ":person_juggling_dark_skin_tone:": "\U0001F939\U0001F3FF", ":person_juggling_light_skin_tone:": "\U0001F939\U0001F3FB", ":person_juggling_medium-dark_skin_tone:": "\U0001F939\U0001F3FE", ":person_juggling_medium-light_skin_tone:": "\U0001F939\U0001F3FC", ":person_juggling_medium_skin_tone:": "\U0001F939\U0001F3FD", ":person_lifting_weights:": "\U0001F3CB", ":person_lifting_weights_dark_skin_tone:": "\U0001F3CB\U0001F3FF", ":person_lifting_weights_light_skin_tone:": "\U0001F3CB\U0001F3FB", ":person_lifting_weights_medium-dark_skin_tone:": "\U0001F3CB\U0001F3FE", ":person_lifting_weights_medium-light_skin_tone:": "\U0001F3CB\U0001F3FC", ":person_lifting_weights_medium_skin_tone:": "\U0001F3CB\U0001F3FD", ":person_mountain_biking:": "\U0001F6B5", ":person_mountain_biking_dark_skin_tone:": "\U0001F6B5\U0001F3FF", ":person_mountain_biking_light_skin_tone:": "\U0001F6B5\U0001F3FB", ":person_mountain_biking_medium-dark_skin_tone:": "\U0001F6B5\U0001F3FE", ":person_mountain_biking_medium-light_skin_tone:": "\U0001F6B5\U0001F3FC", ":person_mountain_biking_medium_skin_tone:": "\U0001F6B5\U0001F3FD", ":person_playing_handball:": "\U0001F93E", ":person_playing_handball_dark_skin_tone:": "\U0001F93E\U0001F3FF", ":person_playing_handball_light_skin_tone:": "\U0001F93E\U0001F3FB", ":person_playing_handball_medium-dark_skin_tone:": "\U0001F93E\U0001F3FE", ":person_playing_handball_medium-light_skin_tone:": "\U0001F93E\U0001F3FC", ":person_playing_handball_medium_skin_tone:": "\U0001F93E\U0001F3FD", ":person_playing_water_polo:": "\U0001F93D", ":person_playing_water_polo_dark_skin_tone:": "\U0001F93D\U0001F3FF", ":person_playing_water_polo_light_skin_tone:": "\U0001F93D\U0001F3FB", ":person_playing_water_polo_medium-dark_skin_tone:": "\U0001F93D\U0001F3FE", ":person_playing_water_polo_medium-light_skin_tone:": "\U0001F93D\U0001F3FC", ":person_playing_water_polo_medium_skin_tone:": "\U0001F93D\U0001F3FD", ":person_pouting:": "\U0001F64E", ":person_pouting_dark_skin_tone:": "\U0001F64E\U0001F3FF", ":person_pouting_light_skin_tone:": "\U0001F64E\U0001F3FB", ":person_pouting_medium-dark_skin_tone:": "\U0001F64E\U0001F3FE", ":person_pouting_medium-light_skin_tone:": "\U0001F64E\U0001F3FC", ":person_pouting_medium_skin_tone:": "\U0001F64E\U0001F3FD", ":person_raising_hand:": "\U0001F64B", ":person_raising_hand_dark_skin_tone:": "\U0001F64B\U0001F3FF", ":person_raising_hand_light_skin_tone:": "\U0001F64B\U0001F3FB", ":person_raising_hand_medium-dark_skin_tone:": "\U0001F64B\U0001F3FE", ":person_raising_hand_medium-light_skin_tone:": "\U0001F64B\U0001F3FC", ":person_raising_hand_medium_skin_tone:": "\U0001F64B\U0001F3FD", ":person_rowing_boat:": "\U0001F6A3", ":person_rowing_boat_dark_skin_tone:": "\U0001F6A3\U0001F3FF", ":person_rowing_boat_light_skin_tone:": "\U0001F6A3\U0001F3FB", ":person_rowing_boat_medium-dark_skin_tone:": "\U0001F6A3\U0001F3FE", ":person_rowing_boat_medium-light_skin_tone:": "\U0001F6A3\U0001F3FC", ":person_rowing_boat_medium_skin_tone:": "\U0001F6A3\U0001F3FD", ":person_running:": "\U0001F3C3", ":person_running_dark_skin_tone:": "\U0001F3C3\U0001F3FF", ":person_running_light_skin_tone:": "\U0001F3C3\U0001F3FB", ":person_running_medium-dark_skin_tone:": "\U0001F3C3\U0001F3FE", ":person_running_medium-light_skin_tone:": "\U0001F3C3\U0001F3FC", ":person_running_medium_skin_tone:": "\U0001F3C3\U0001F3FD", ":person_shrugging:": "\U0001F937", ":person_shrugging_dark_skin_tone:": "\U0001F937\U0001F3FF", ":person_shrugging_light_skin_tone:": "\U0001F937\U0001F3FB", ":person_shrugging_medium-dark_skin_tone:": "\U0001F937\U0001F3FE", ":person_shrugging_medium-light_skin_tone:": "\U0001F937\U0001F3FC", ":person_shrugging_medium_skin_tone:": "\U0001F937\U0001F3FD", ":person_surfing:": "\U0001F3C4", ":person_surfing_dark_skin_tone:": "\U0001F3C4\U0001F3FF", ":person_surfing_light_skin_tone:": "\U0001F3C4\U0001F3FB", ":person_surfing_medium-dark_skin_tone:": "\U0001F3C4\U0001F3FE", ":person_surfing_medium-light_skin_tone:": "\U0001F3C4\U0001F3FC", ":person_surfing_medium_skin_tone:": "\U0001F3C4\U0001F3FD", ":person_swimming:": "\U0001F3CA", ":person_swimming_dark_skin_tone:": "\U0001F3CA\U0001F3FF", ":person_swimming_light_skin_tone:": "\U0001F3CA\U0001F3FB", ":person_swimming_medium-dark_skin_tone:": "\U0001F3CA\U0001F3FE", ":person_swimming_medium-light_skin_tone:": "\U0001F3CA\U0001F3FC", ":person_swimming_medium_skin_tone:": "\U0001F3CA\U0001F3FD", ":person_taking_bath:": "\U0001F6C0", ":person_taking_bath_dark_skin_tone:": "\U0001F6C0\U0001F3FF", ":person_taking_bath_light_skin_tone:": "\U0001F6C0\U0001F3FB", ":person_taking_bath_medium-dark_skin_tone:": "\U0001F6C0\U0001F3FE", ":person_taking_bath_medium-light_skin_tone:": "\U0001F6C0\U0001F3FC", ":person_taking_bath_medium_skin_tone:": "\U0001F6C0\U0001F3FD", ":person_tipping_hand:": "\U0001F481", ":person_tipping_hand_dark_skin_tone:": "\U0001F481\U0001F3FF", ":person_tipping_hand_light_skin_tone:": "\U0001F481\U0001F3FB", ":person_tipping_hand_medium-dark_skin_tone:": "\U0001F481\U0001F3FE", ":person_tipping_hand_medium-light_skin_tone:": "\U0001F481\U0001F3FC", ":person_tipping_hand_medium_skin_tone:": "\U0001F481\U0001F3FD", ":person_walking:": "\U0001F6B6", ":person_walking_dark_skin_tone:": "\U0001F6B6\U0001F3FF", ":person_walking_light_skin_tone:": "\U0001F6B6\U0001F3FB", ":person_walking_medium-dark_skin_tone:": "\U0001F6B6\U0001F3FE", ":person_walking_medium-light_skin_tone:": "\U0001F6B6\U0001F3FC", ":person_walking_medium_skin_tone:": "\U0001F6B6\U0001F3FD", ":person_wearing_turban:": "\U0001F473", ":person_wearing_turban_dark_skin_tone:": "\U0001F473\U0001F3FF", ":person_wearing_turban_light_skin_tone:": "\U0001F473\U0001F3FB", ":person_wearing_turban_medium-dark_skin_tone:": "\U0001F473\U0001F3FE", ":person_wearing_turban_medium-light_skin_tone:": "\U0001F473\U0001F3FC", ":person_wearing_turban_medium_skin_tone:": "\U0001F473\U0001F3FD", ":pick:": "\U000026CF", ":pie:": "\U0001F967", ":pig:": "\U0001F416", ":pig_face:": "\U0001F437", ":pig_nose:": "\U0001F43D", ":pile_of_poo:": "\U0001F4A9", ":pill:": "\U0001F48A", ":pine_decoration:": "\U0001F38D", ":pineapple:": "\U0001F34D", ":ping_pong:": "\U0001F3D3", ":pistol:": "\U0001F52B", ":pizza:": "\U0001F355", ":place_of_worship:": "\U0001F6D0", ":play_button:": "\U000025B6", ":play_or_pause_button:": "\U000023EF", ":police_car:": "\U0001F693", ":police_car_light:": "\U0001F6A8", ":police_officer:": "\U0001F46E", ":police_officer_dark_skin_tone:": "\U0001F46E\U0001F3FF", ":police_officer_light_skin_tone:": "\U0001F46E\U0001F3FB", ":police_officer_medium-dark_skin_tone:": "\U0001F46E\U0001F3FE", ":police_officer_medium-light_skin_tone:": "\U0001F46E\U0001F3FC", ":police_officer_medium_skin_tone:": "\U0001F46E\U0001F3FD", ":poodle:": "\U0001F429", ":pool_8_ball:": "\U0001F3B1", ":popcorn:": "\U0001F37F", ":post_office:": "\U0001F3E4", ":postal_horn:": "\U0001F4EF", ":postbox:": "\U0001F4EE", ":pot_of_food:": "\U0001F372", ":potable_water:": "\U0001F6B0", ":potato:": "\U0001F954", ":poultry_leg:": "\U0001F357", ":pound_banknote:": "\U0001F4B7", ":pouting_cat_face:": "\U0001F63E", ":pouting_face:": "\U0001F621", ":prayer_beads:": "\U0001F4FF", ":pregnant_woman:": "\U0001F930", ":pregnant_woman_dark_skin_tone:": "\U0001F930\U0001F3FF", ":pregnant_woman_light_skin_tone:": "\U0001F930\U0001F3FB", ":pregnant_woman_medium-dark_skin_tone:": "\U0001F930\U0001F3FE", ":pregnant_woman_medium-light_skin_tone:": "\U0001F930\U0001F3FC", ":pregnant_woman_medium_skin_tone:": "\U0001F930\U0001F3FD", ":pretzel:": "\U0001F968", ":prince:": "\U0001F934", ":prince_dark_skin_tone:": "\U0001F934\U0001F3FF", ":prince_light_skin_tone:": "\U0001F934\U0001F3FB", ":prince_medium-dark_skin_tone:": "\U0001F934\U0001F3FE", ":prince_medium-light_skin_tone:": "\U0001F934\U0001F3FC", ":prince_medium_skin_tone:": "\U0001F934\U0001F3FD", ":princess:": "\U0001F478", ":princess_dark_skin_tone:": "\U0001F478\U0001F3FF", ":princess_light_skin_tone:": "\U0001F478\U0001F3FB", ":princess_medium-dark_skin_tone:": "\U0001F478\U0001F3FE", ":princess_medium-light_skin_tone:": "\U0001F478\U0001F3FC", ":princess_medium_skin_tone:": "\U0001F478\U0001F3FD", ":printer:": "\U0001F5A8", ":prohibited:": "\U0001F6AB", ":purple_heart:": "\U0001F49C", ":purse:": "\U0001F45B", ":pushpin:": "\U0001F4CC", ":question_mark:": "\U00002753", ":rabbit:": "\U0001F407", ":rabbit_face:": "\U0001F430", ":racing_car:": "\U0001F3CE", ":radio:": "\U0001F4FB", ":radio_button:": "\U0001F518", ":radioactive:": "\U00002622", ":railway_car:": "\U0001F683", ":railway_track:": "\U0001F6E4", ":rainbow:": "\U0001F308", ":rainbow_flag:": "\U0001F3F3\U0000FE0F\U0000200D\U0001F308", ":raised_back_of_hand:": "\U0001F91A", ":raised_back_of_hand_dark_skin_tone:": "\U0001F91A\U0001F3FF", ":raised_back_of_hand_light_skin_tone:": "\U0001F91A\U0001F3FB", ":raised_back_of_hand_medium-dark_skin_tone:": "\U0001F91A\U0001F3FE", ":raised_back_of_hand_medium-light_skin_tone:": "\U0001F91A\U0001F3FC", ":raised_back_of_hand_medium_skin_tone:": "\U0001F91A\U0001F3FD", ":raised_fist:": "\U0000270A", ":raised_fist_dark_skin_tone:": "\U0000270A\U0001F3FF", ":raised_fist_light_skin_tone:": "\U0000270A\U0001F3FB", ":raised_fist_medium-dark_skin_tone:": "\U0000270A\U0001F3FE", ":raised_fist_medium-light_skin_tone:": "\U0000270A\U0001F3FC", ":raised_fist_medium_skin_tone:": "\U0000270A\U0001F3FD", ":raised_hand:": "\U0000270B", ":raised_hand_dark_skin_tone:": "\U0000270B\U0001F3FF", ":raised_hand_light_skin_tone:": "\U0000270B\U0001F3FB", ":raised_hand_medium-dark_skin_tone:": "\U0000270B\U0001F3FE", ":raised_hand_medium-light_skin_tone:": "\U0000270B\U0001F3FC", ":raised_hand_medium_skin_tone:": "\U0000270B\U0001F3FD", ":raising_hands:": "\U0001F64C", ":raising_hands_dark_skin_tone:": "\U0001F64C\U0001F3FF", ":raising_hands_light_skin_tone:": "\U0001F64C\U0001F3FB", ":raising_hands_medium-dark_skin_tone:": "\U0001F64C\U0001F3FE", ":raising_hands_medium-light_skin_tone:": "\U0001F64C\U0001F3FC", ":raising_hands_medium_skin_tone:": "\U0001F64C\U0001F3FD", ":ram:": "\U0001F40F", ":rat:": "\U0001F400", ":record_button:": "\U000023FA", ":recycling_symbol:": "\U0000267B", ":red_apple:": "\U0001F34E", ":red_circle:": "\U0001F534", ":red_heart:": "\U00002764", ":red_paper_lantern:": "\U0001F3EE", ":red_triangle_pointed_down:": "\U0001F53B", ":red_triangle_pointed_up:": "\U0001F53A", ":registered:": "\U000000AE", ":relieved_face:": "\U0001F60C", ":reminder_ribbon:": "\U0001F397", ":repeat_button:": "\U0001F501", ":repeat_single_button:": "\U0001F502", ":rescue_worker’s_helmet:": "\U000026D1", ":restroom:": "\U0001F6BB", ":reverse_button:": "\U000025C0", ":revolving_hearts:": "\U0001F49E", ":rhinoceros:": "\U0001F98F", ":ribbon:": "\U0001F380", ":rice_ball:": "\U0001F359", ":rice_cracker:": "\U0001F358", ":right-facing_fist:": "\U0001F91C", ":right-facing_fist_dark_skin_tone:": "\U0001F91C\U0001F3FF", ":right-facing_fist_light_skin_tone:": "\U0001F91C\U0001F3FB", ":right-facing_fist_medium-dark_skin_tone:": "\U0001F91C\U0001F3FE", ":right-facing_fist_medium-light_skin_tone:": "\U0001F91C\U0001F3FC", ":right-facing_fist_medium_skin_tone:": "\U0001F91C\U0001F3FD", ":right_anger_bubble:": "\U0001F5EF", ":right_arrow:": "\U000027A1", ":right_arrow_curving_down:": "\U00002935", ":right_arrow_curving_left:": "\U000021A9", ":right_arrow_curving_up:": "\U00002934", ":ring:": "\U0001F48D", ":roasted_sweet_potato:": "\U0001F360", ":robot_face:": "\U0001F916", ":rocket:": "\U0001F680", ":rolled-up_newspaper:": "\U0001F5DE", ":roller_coaster:": "\U0001F3A2", ":rolling_on_the_floor_laughing:": "\U0001F923", ":rooster:": "\U0001F413", ":rose:": "\U0001F339", ":rosette:": "\U0001F3F5", ":round_pushpin:": "\U0001F4CD", ":rugby_football:": "\U0001F3C9", ":running_shirt:": "\U0001F3BD", ":running_shoe:": "\U0001F45F", ":sad_but_relieved_face:": "\U0001F625", ":sailboat:": "\U000026F5", ":sake:": "\U0001F376", ":sandwich:": "\U0001F96A", ":satellite:": "\U0001F6F0", ":satellite_antenna:": "\U0001F4E1", ":sauropod:": "\U0001F995", ":saxophone:": "\U0001F3B7", ":scarf:": "\U0001F9E3", ":school:": "\U0001F3EB", ":school_backpack:": "\U0001F392", ":scissors:": "\U00002702", ":scorpion:": "\U0001F982", ":scroll:": "\U0001F4DC", ":seat:": "\U0001F4BA", ":see-no-evil_monkey:": "\U0001F648", ":seedling:": "\U0001F331", ":selfie:": "\U0001F933", ":selfie_dark_skin_tone:": "\U0001F933\U0001F3FF", ":selfie_light_skin_tone:": "\U0001F933\U0001F3FB", ":selfie_medium-dark_skin_tone:": "\U0001F933\U0001F3FE", ":selfie_medium-light_skin_tone:": "\U0001F933\U0001F3FC", ":selfie_medium_skin_tone:": "\U0001F933\U0001F3FD", ":seven-thirty:": "\U0001F562", ":seven_o’clock:": "\U0001F556", ":shallow_pan_of_food:": "\U0001F958", ":shamrock:": "\U00002618", ":shark:": "\U0001F988", ":shaved_ice:": "\U0001F367", ":sheaf_of_rice:": "\U0001F33E", ":shield:": "\U0001F6E1", ":shinto_shrine:": "\U000026E9", ":ship:": "\U0001F6A2", ":shooting_star:": "\U0001F320", ":shopping_bags:": "\U0001F6CD", ":shopping_cart:": "\U0001F6D2", ":shortcake:": "\U0001F370", ":shower:": "\U0001F6BF", ":shrimp:": "\U0001F990", ":shuffle_tracks_button:": "\U0001F500", ":shushing_face:": "\U0001F92B", ":sign_of_the_horns:": "\U0001F918", ":sign_of_the_horns_dark_skin_tone:": "\U0001F918\U0001F3FF", ":sign_of_the_horns_light_skin_tone:": "\U0001F918\U0001F3FB", ":sign_of_the_horns_medium-dark_skin_tone:": "\U0001F918\U0001F3FE", ":sign_of_the_horns_medium-light_skin_tone:": "\U0001F918\U0001F3FC", ":sign_of_the_horns_medium_skin_tone:": "\U0001F918\U0001F3FD", ":six-thirty:": "\U0001F561", ":six_o’clock:": "\U0001F555", ":skier:": "\U000026F7", ":skis:": "\U0001F3BF", ":skull:": "\U0001F480", ":skull_and_crossbones:": "\U00002620", ":sled:": "\U0001F6F7", ":sleeping_face:": "\U0001F634", ":sleepy_face:": "\U0001F62A", ":slightly_frowning_face:": "\U0001F641", ":slightly_smiling_face:": "\U0001F642", ":slot_machine:": "\U0001F3B0", ":small_airplane:": "\U0001F6E9", ":small_blue_diamond:": "\U0001F539", ":small_orange_diamond:": "\U0001F538", ":smiling_cat_face_with_heart-eyes:": "\U0001F63B", ":smiling_face:": "\U0000263A", ":smiling_face_with_halo:": "\U0001F607", ":smiling_face_with_heart-eyes:": "\U0001F60D", ":smiling_face_with_horns:": "\U0001F608", ":smiling_face_with_smiling_eyes:": "\U0001F60A", ":smiling_face_with_sunglasses:": "\U0001F60E", ":smirking_face:": "\U0001F60F", ":snail:": "\U0001F40C", ":snake:": "\U0001F40D", ":sneezing_face:": "\U0001F927", ":snow-capped_mountain:": "\U0001F3D4", ":snowboarder:": "\U0001F3C2", ":snowboarder_dark_skin_tone:": "\U0001F3C2\U0001F3FF", ":snowboarder_light_skin_tone:": "\U0001F3C2\U0001F3FB", ":snowboarder_medium-dark_skin_tone:": "\U0001F3C2\U0001F3FE", ":snowboarder_medium-light_skin_tone:": "\U0001F3C2\U0001F3FC", ":snowboarder_medium_skin_tone:": "\U0001F3C2\U0001F3FD", ":snowflake:": "\U00002744", ":snowman:": "\U00002603", ":snowman_without_snow:": "\U000026C4", ":soccer_ball:": "\U000026BD", ":socks:": "\U0001F9E6", ":soft_ice_cream:": "\U0001F366", ":spade_suit:": "\U00002660", ":spaghetti:": "\U0001F35D", ":sparkle:": "\U00002747", ":sparkler:": "\U0001F387", ":sparkles:": "\U00002728", ":sparkling_heart:": "\U0001F496", ":speak-no-evil_monkey:": "\U0001F64A", ":speaker_high_volume:": "\U0001F50A", ":speaker_low_volume:": "\U0001F508", ":speaker_medium_volume:": "\U0001F509", ":speaking_head:": "\U0001F5E3", ":speech_balloon:": "\U0001F4AC", ":speedboat:": "\U0001F6A4", ":spider:": "\U0001F577", ":spider_web:": "\U0001F578", ":spiral_calendar:": "\U0001F5D3", ":spiral_notepad:": "\U0001F5D2", ":spiral_shell:": "\U0001F41A", ":spoon:": "\U0001F944", ":sport_utility_vehicle:": "\U0001F699", ":sports_medal:": "\U0001F3C5", ":spouting_whale:": "\U0001F433", ":squid:": "\U0001F991", ":squinting_face_with_tongue:": "\U0001F61D", ":stadium:": "\U0001F3DF", ":star-struck:": "\U0001F929", ":star_and_crescent:": "\U0000262A", ":star_of_David:": "\U00002721", ":station:": "\U0001F689", ":steaming_bowl:": "\U0001F35C", ":stop_button:": "\U000023F9", ":stop_sign:": "\U0001F6D1", ":stopwatch:": "\U000023F1", ":straight_ruler:": "\U0001F4CF", ":strawberry:": "\U0001F353", ":studio_microphone:": "\U0001F399", ":stuffed_flatbread:": "\U0001F959", ":sun:": "\U00002600", ":sun_behind_cloud:": "\U000026C5", ":sun_behind_large_cloud:": "\U0001F325", ":sun_behind_rain_cloud:": "\U0001F326", ":sun_behind_small_cloud:": "\U0001F324", ":sun_with_face:": "\U0001F31E", ":sunflower:": "\U0001F33B", ":sunglasses:": "\U0001F576", ":sunrise:": "\U0001F305", ":sunrise_over_mountains:": "\U0001F304", ":sunset:": "\U0001F307", ":sushi:": "\U0001F363", ":suspension_railway:": "\U0001F69F", ":sweat_droplets:": "\U0001F4A6", ":synagogue:": "\U0001F54D", ":syringe:": "\U0001F489", ":t-shirt:": "\U0001F455", ":taco:": "\U0001F32E", ":takeout_box:": "\U0001F961", ":tanabata_tree:": "\U0001F38B", ":tangerine:": "\U0001F34A", ":taxi:": "\U0001F695", ":teacup_without_handle:": "\U0001F375", ":tear-off_calendar:": "\U0001F4C6", ":telephone:": "\U0000260E", ":telephone_receiver:": "\U0001F4DE", ":telescope:": "\U0001F52D", ":television:": "\U0001F4FA", ":ten-thirty:": "\U0001F565", ":ten_o’clock:": "\U0001F559", ":tennis:": "\U0001F3BE", ":tent:": "\U000026FA", ":thermometer:": "\U0001F321", ":thinking_face:": "\U0001F914", ":thought_balloon:": "\U0001F4AD", ":three-thirty:": "\U0001F55E", ":three_o’clock:": "\U0001F552", ":thumbs_down:": "\U0001F44E", ":thumbs_down_dark_skin_tone:": "\U0001F44E\U0001F3FF", ":thumbs_down_light_skin_tone:": "\U0001F44E\U0001F3FB", ":thumbs_down_medium-dark_skin_tone:": "\U0001F44E\U0001F3FE", ":thumbs_down_medium-light_skin_tone:": "\U0001F44E\U0001F3FC", ":thumbs_down_medium_skin_tone:": "\U0001F44E\U0001F3FD", ":thumbs_up:": "\U0001F44D", ":thumbs_up_dark_skin_tone:": "\U0001F44D\U0001F3FF", ":thumbs_up_light_skin_tone:": "\U0001F44D\U0001F3FB", ":thumbs_up_medium-dark_skin_tone:": "\U0001F44D\U0001F3FE", ":thumbs_up_medium-light_skin_tone:": "\U0001F44D\U0001F3FC", ":thumbs_up_medium_skin_tone:": "\U0001F44D\U0001F3FD", ":ticket:": "\U0001F3AB", ":tiger:": "\U0001F405", ":tiger_face:": "\U0001F42F", ":timer_clock:": "\U000023F2", ":tired_face:": "\U0001F62B", ":toilet:": "\U0001F6BD", ":tomato:": "\U0001F345", ":tongue:": "\U0001F445", ":top_hat:": "\U0001F3A9", ":tornado:": "\U0001F32A", ":trackball:": "\U0001F5B2", ":tractor:": "\U0001F69C", ":trade_mark:": "\U00002122", ":train:": "\U0001F686", ":tram:": "\U0001F68A", ":tram_car:": "\U0001F68B", ":triangular_flag:": "\U0001F6A9", ":triangular_ruler:": "\U0001F4D0", ":trident_emblem:": "\U0001F531", ":trolleybus:": "\U0001F68E", ":trophy:": "\U0001F3C6", ":tropical_drink:": "\U0001F379", ":tropical_fish:": "\U0001F420", ":trumpet:": "\U0001F3BA", ":tulip:": "\U0001F337", ":tumbler_glass:": "\U0001F943", ":turkey:": "\U0001F983", ":turtle:": "\U0001F422", ":twelve-thirty:": "\U0001F567", ":twelve_o’clock:": "\U0001F55B", ":two-hump_camel:": "\U0001F42B", ":two-thirty:": "\U0001F55D", ":two_hearts:": "\U0001F495", ":two_men_holding_hands:": "\U0001F46C", ":two_o’clock:": "\U0001F551", ":two_women_holding_hands:": "\U0001F46D", ":umbrella:": "\U00002602", ":umbrella_on_ground:": "\U000026F1", ":umbrella_with_rain_drops:": "\U00002614", ":unamused_face:": "\U0001F612", ":unicorn_face:": "\U0001F984", ":unlocked:": "\U0001F513", ":up-down_arrow:": "\U00002195", ":up-left_arrow:": "\U00002196", ":up-right_arrow:": "\U00002197", ":up_arrow:": "\U00002B06", ":upside-down_face:": "\U0001F643", ":upwards_button:": "\U0001F53C", ":vampire:": "\U0001F9DB", ":vampire_dark_skin_tone:": "\U0001F9DB\U0001F3FF", ":vampire_light_skin_tone:": "\U0001F9DB\U0001F3FB", ":vampire_medium-dark_skin_tone:": "\U0001F9DB\U0001F3FE", ":vampire_medium-light_skin_tone:": "\U0001F9DB\U0001F3FC", ":vampire_medium_skin_tone:": "\U0001F9DB\U0001F3FD", ":vertical_traffic_light:": "\U0001F6A6", ":vibration_mode:": "\U0001F4F3", ":victory_hand:": "\U0000270C", ":victory_hand_dark_skin_tone:": "\U0000270C\U0001F3FF", ":victory_hand_light_skin_tone:": "\U0000270C\U0001F3FB", ":victory_hand_medium-dark_skin_tone:": "\U0000270C\U0001F3FE", ":victory_hand_medium-light_skin_tone:": "\U0000270C\U0001F3FC", ":victory_hand_medium_skin_tone:": "\U0000270C\U0001F3FD", ":video_camera:": "\U0001F4F9", ":video_game:": "\U0001F3AE", ":videocassette:": "\U0001F4FC", ":violin:": "\U0001F3BB", ":volcano:": "\U0001F30B", ":volleyball:": "\U0001F3D0", ":vulcan_salute:": "\U0001F596", ":vulcan_salute_dark_skin_tone:": "\U0001F596\U0001F3FF", ":vulcan_salute_light_skin_tone:": "\U0001F596\U0001F3FB", ":vulcan_salute_medium-dark_skin_tone:": "\U0001F596\U0001F3FE", ":vulcan_salute_medium-light_skin_tone:": "\U0001F596\U0001F3FC", ":vulcan_salute_medium_skin_tone:": "\U0001F596\U0001F3FD", ":waning_crescent_moon:": "\U0001F318", ":waning_gibbous_moon:": "\U0001F316", ":warning:": "\U000026A0", ":wastebasket:": "\U0001F5D1", ":watch:": "\U0000231A", ":water_buffalo:": "\U0001F403", ":water_closet:": "\U0001F6BE", ":water_wave:": "\U0001F30A", ":watermelon:": "\U0001F349", ":waving_hand:": "\U0001F44B", ":waving_hand_dark_skin_tone:": "\U0001F44B\U0001F3FF", ":waving_hand_light_skin_tone:": "\U0001F44B\U0001F3FB", ":waving_hand_medium-dark_skin_tone:": "\U0001F44B\U0001F3FE", ":waving_hand_medium-light_skin_tone:": "\U0001F44B\U0001F3FC", ":waving_hand_medium_skin_tone:": "\U0001F44B\U0001F3FD", ":wavy_dash:": "\U00003030", ":waxing_crescent_moon:": "\U0001F312", ":waxing_gibbous_moon:": "\U0001F314", ":weary_cat_face:": "\U0001F640", ":weary_face:": "\U0001F629", ":wedding:": "\U0001F492", ":whale:": "\U0001F40B", ":wheel_of_dharma:": "\U00002638", ":wheelchair_symbol:": "\U0000267F", ":white_circle:": "\U000026AA", ":white_exclamation_mark:": "\U00002755", ":white_flag:": "\U0001F3F3", ":white_flower:": "\U0001F4AE", ":white_heavy_check_mark:": "\U00002705", ":white_large_square:": "\U00002B1C", ":white_medium-small_square:": "\U000025FD", ":white_medium_square:": "\U000025FB", ":white_medium_star:": "\U00002B50", ":white_question_mark:": "\U00002754", ":white_small_square:": "\U000025AB", ":white_square_button:": "\U0001F533", ":wilted_flower:": "\U0001F940", ":wind_chime:": "\U0001F390", ":wind_face:": "\U0001F32C", ":wine_glass:": "\U0001F377", ":winking_face:": "\U0001F609", ":winking_face_with_tongue:": "\U0001F61C", ":wolf_face:": "\U0001F43A", ":woman:": "\U0001F469", ":woman_artist:": "\U0001F469\U0000200D\U0001F3A8", ":woman_artist_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F3A8", ":woman_artist_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F3A8", ":woman_artist_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F3A8", ":woman_artist_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F3A8", ":woman_artist_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F3A8", ":woman_astronaut:": "\U0001F469\U0000200D\U0001F680", ":woman_astronaut_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F680", ":woman_astronaut_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F680", ":woman_astronaut_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F680", ":woman_astronaut_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F680", ":woman_astronaut_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F680", ":woman_biking:": "\U0001F6B4\U0000200D\U00002640\U0000FE0F", ":woman_biking_dark_skin_tone:": "\U0001F6B4\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_biking_light_skin_tone:": "\U0001F6B4\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_biking_medium-dark_skin_tone:": "\U0001F6B4\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_biking_medium-light_skin_tone:": "\U0001F6B4\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_biking_medium_skin_tone:": "\U0001F6B4\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_bouncing_ball:": "\U000026F9\U0000FE0F\U0000200D\U00002640\U0000FE0F", ":woman_bouncing_ball_dark_skin_tone:": "\U000026F9\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_bouncing_ball_light_skin_tone:": "\U000026F9\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_bouncing_ball_medium-dark_skin_tone:": "\U000026F9\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_bouncing_ball_medium-light_skin_tone:": "\U000026F9\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_bouncing_ball_medium_skin_tone:": "\U000026F9\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_bowing:": "\U0001F647\U0000200D\U00002640\U0000FE0F", ":woman_bowing_dark_skin_tone:": "\U0001F647\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_bowing_light_skin_tone:": "\U0001F647\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_bowing_medium-dark_skin_tone:": "\U0001F647\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_bowing_medium-light_skin_tone:": "\U0001F647\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_bowing_medium_skin_tone:": "\U0001F647\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_cartwheeling:": "\U0001F938\U0000200D\U00002640\U0000FE0F", ":woman_cartwheeling_dark_skin_tone:": "\U0001F938\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_cartwheeling_light_skin_tone:": "\U0001F938\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_cartwheeling_medium-dark_skin_tone:": "\U0001F938\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_cartwheeling_medium-light_skin_tone:": "\U0001F938\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_cartwheeling_medium_skin_tone:": "\U0001F938\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_climbing:": "\U0001F9D7\U0000200D\U00002640\U0000FE0F", ":woman_climbing_dark_skin_tone:": "\U0001F9D7\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_climbing_light_skin_tone:": "\U0001F9D7\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_climbing_medium-dark_skin_tone:": "\U0001F9D7\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_climbing_medium-light_skin_tone:": "\U0001F9D7\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_climbing_medium_skin_tone:": "\U0001F9D7\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_construction_worker:": "\U0001F477\U0000200D\U00002640\U0000FE0F", ":woman_construction_worker_dark_skin_tone:": "\U0001F477\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_construction_worker_light_skin_tone:": "\U0001F477\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_construction_worker_medium-dark_skin_tone:": "\U0001F477\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_construction_worker_medium-light_skin_tone:": "\U0001F477\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_construction_worker_medium_skin_tone:": "\U0001F477\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_cook:": "\U0001F469\U0000200D\U0001F373", ":woman_cook_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F373", ":woman_cook_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F373", ":woman_cook_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F373", ":woman_cook_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F373", ":woman_cook_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F373", ":woman_dancing:": "\U0001F483", ":woman_dancing_dark_skin_tone:": "\U0001F483\U0001F3FF", ":woman_dancing_light_skin_tone:": "\U0001F483\U0001F3FB", ":woman_dancing_medium-dark_skin_tone:": "\U0001F483\U0001F3FE", ":woman_dancing_medium-light_skin_tone:": "\U0001F483\U0001F3FC", ":woman_dancing_medium_skin_tone:": "\U0001F483\U0001F3FD", ":woman_dark_skin_tone:": "\U0001F469\U0001F3FF", ":woman_detective:": "\U0001F575\U0000FE0F\U0000200D\U00002640\U0000FE0F", ":woman_detective_dark_skin_tone:": "\U0001F575\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_detective_light_skin_tone:": "\U0001F575\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_detective_medium-dark_skin_tone:": "\U0001F575\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_detective_medium-light_skin_tone:": "\U0001F575\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_detective_medium_skin_tone:": "\U0001F575\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_elf:": "\U0001F9DD\U0000200D\U00002640\U0000FE0F", ":woman_elf_dark_skin_tone:": "\U0001F9DD\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_elf_light_skin_tone:": "\U0001F9DD\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_elf_medium-dark_skin_tone:": "\U0001F9DD\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_elf_medium-light_skin_tone:": "\U0001F9DD\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_elf_medium_skin_tone:": "\U0001F9DD\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_facepalming:": "\U0001F926\U0000200D\U00002640\U0000FE0F", ":woman_facepalming_dark_skin_tone:": "\U0001F926\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_facepalming_light_skin_tone:": "\U0001F926\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_facepalming_medium-dark_skin_tone:": "\U0001F926\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_facepalming_medium-light_skin_tone:": "\U0001F926\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_facepalming_medium_skin_tone:": "\U0001F926\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_factory_worker:": "\U0001F469\U0000200D\U0001F3ED", ":woman_factory_worker_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F3ED", ":woman_factory_worker_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F3ED", ":woman_factory_worker_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F3ED", ":woman_factory_worker_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F3ED", ":woman_factory_worker_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F3ED", ":woman_fairy:": "\U0001F9DA\U0000200D\U00002640\U0000FE0F", ":woman_fairy_dark_skin_tone:": "\U0001F9DA\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_fairy_light_skin_tone:": "\U0001F9DA\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_fairy_medium-dark_skin_tone:": "\U0001F9DA\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_fairy_medium-light_skin_tone:": "\U0001F9DA\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_fairy_medium_skin_tone:": "\U0001F9DA\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_farmer:": "\U0001F469\U0000200D\U0001F33E", ":woman_farmer_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F33E", ":woman_farmer_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F33E", ":woman_farmer_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F33E", ":woman_farmer_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F33E", ":woman_farmer_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F33E", ":woman_firefighter:": "\U0001F469\U0000200D\U0001F692", ":woman_firefighter_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F692", ":woman_firefighter_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F692", ":woman_firefighter_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F692", ":woman_firefighter_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F692", ":woman_firefighter_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F692", ":woman_frowning:": "\U0001F64D\U0000200D\U00002640\U0000FE0F", ":woman_frowning_dark_skin_tone:": "\U0001F64D\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_frowning_light_skin_tone:": "\U0001F64D\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_frowning_medium-dark_skin_tone:": "\U0001F64D\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_frowning_medium-light_skin_tone:": "\U0001F64D\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_frowning_medium_skin_tone:": "\U0001F64D\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_genie:": "\U0001F9DE\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_NO:": "\U0001F645\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_NO_dark_skin_tone:": "\U0001F645\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_NO_light_skin_tone:": "\U0001F645\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_NO_medium-dark_skin_tone:": "\U0001F645\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_NO_medium-light_skin_tone:": "\U0001F645\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_NO_medium_skin_tone:": "\U0001F645\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_OK:": "\U0001F646\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_OK_dark_skin_tone:": "\U0001F646\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_OK_light_skin_tone:": "\U0001F646\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_OK_medium-dark_skin_tone:": "\U0001F646\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_OK_medium-light_skin_tone:": "\U0001F646\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_gesturing_OK_medium_skin_tone:": "\U0001F646\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_getting_haircut:": "\U0001F487\U0000200D\U00002640\U0000FE0F", ":woman_getting_haircut_dark_skin_tone:": "\U0001F487\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_getting_haircut_light_skin_tone:": "\U0001F487\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_getting_haircut_medium-dark_skin_tone:": "\U0001F487\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_getting_haircut_medium-light_skin_tone:": "\U0001F487\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_getting_haircut_medium_skin_tone:": "\U0001F487\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_getting_massage:": "\U0001F486\U0000200D\U00002640\U0000FE0F", ":woman_getting_massage_dark_skin_tone:": "\U0001F486\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_getting_massage_light_skin_tone:": "\U0001F486\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_getting_massage_medium-dark_skin_tone:": "\U0001F486\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_getting_massage_medium-light_skin_tone:": "\U0001F486\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_getting_massage_medium_skin_tone:": "\U0001F486\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_golfing:": "\U0001F3CC\U0000FE0F\U0000200D\U00002640\U0000FE0F", ":woman_golfing_dark_skin_tone:": "\U0001F3CC\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_golfing_light_skin_tone:": "\U0001F3CC\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_golfing_medium-dark_skin_tone:": "\U0001F3CC\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_golfing_medium-light_skin_tone:": "\U0001F3CC\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_golfing_medium_skin_tone:": "\U0001F3CC\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_guard:": "\U0001F482\U0000200D\U00002640\U0000FE0F", ":woman_guard_dark_skin_tone:": "\U0001F482\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_guard_light_skin_tone:": "\U0001F482\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_guard_medium-dark_skin_tone:": "\U0001F482\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_guard_medium-light_skin_tone:": "\U0001F482\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_guard_medium_skin_tone:": "\U0001F482\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_health_worker:": "\U0001F469\U0000200D\U00002695\U0000FE0F", ":woman_health_worker_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U00002695\U0000FE0F", ":woman_health_worker_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U00002695\U0000FE0F", ":woman_health_worker_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U00002695\U0000FE0F", ":woman_health_worker_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U00002695\U0000FE0F", ":woman_health_worker_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U00002695\U0000FE0F", ":woman_in_lotus_position:": "\U0001F9D8\U0000200D\U00002640\U0000FE0F", ":woman_in_lotus_position_dark_skin_tone:": "\U0001F9D8\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_in_lotus_position_light_skin_tone:": "\U0001F9D8\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_in_lotus_position_medium-dark_skin_tone:": "\U0001F9D8\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_in_lotus_position_medium-light_skin_tone:": "\U0001F9D8\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_in_lotus_position_medium_skin_tone:": "\U0001F9D8\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_in_steamy_room:": "\U0001F9D6\U0000200D\U00002640\U0000FE0F", ":woman_in_steamy_room_dark_skin_tone:": "\U0001F9D6\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_in_steamy_room_light_skin_tone:": "\U0001F9D6\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_in_steamy_room_medium-dark_skin_tone:": "\U0001F9D6\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_in_steamy_room_medium-light_skin_tone:": "\U0001F9D6\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_in_steamy_room_medium_skin_tone:": "\U0001F9D6\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_judge:": "\U0001F469\U0000200D\U00002696\U0000FE0F", ":woman_judge_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U00002696\U0000FE0F", ":woman_judge_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U00002696\U0000FE0F", ":woman_judge_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U00002696\U0000FE0F", ":woman_judge_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U00002696\U0000FE0F", ":woman_judge_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U00002696\U0000FE0F", ":woman_juggling:": "\U0001F939\U0000200D\U00002640\U0000FE0F", ":woman_juggling_dark_skin_tone:": "\U0001F939\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_juggling_light_skin_tone:": "\U0001F939\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_juggling_medium-dark_skin_tone:": "\U0001F939\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_juggling_medium-light_skin_tone:": "\U0001F939\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_juggling_medium_skin_tone:": "\U0001F939\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_lifting_weights:": "\U0001F3CB\U0000FE0F\U0000200D\U00002640\U0000FE0F", ":woman_lifting_weights_dark_skin_tone:": "\U0001F3CB\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_lifting_weights_light_skin_tone:": "\U0001F3CB\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_lifting_weights_medium-dark_skin_tone:": "\U0001F3CB\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_lifting_weights_medium-light_skin_tone:": "\U0001F3CB\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_lifting_weights_medium_skin_tone:": "\U0001F3CB\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_light_skin_tone:": "\U0001F469\U0001F3FB", ":woman_mage:": "\U0001F9D9\U0000200D\U00002640\U0000FE0F", ":woman_mage_dark_skin_tone:": "\U0001F9D9\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_mage_light_skin_tone:": "\U0001F9D9\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_mage_medium-dark_skin_tone:": "\U0001F9D9\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_mage_medium-light_skin_tone:": "\U0001F9D9\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_mage_medium_skin_tone:": "\U0001F9D9\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_mechanic:": "\U0001F469\U0000200D\U0001F527", ":woman_mechanic_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F527", ":woman_mechanic_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F527", ":woman_mechanic_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F527", ":woman_mechanic_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F527", ":woman_mechanic_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F527", ":woman_medium-dark_skin_tone:": "\U0001F469\U0001F3FE", ":woman_medium-light_skin_tone:": "\U0001F469\U0001F3FC", ":woman_medium_skin_tone:": "\U0001F469\U0001F3FD", ":woman_mountain_biking:": "\U0001F6B5\U0000200D\U00002640\U0000FE0F", ":woman_mountain_biking_dark_skin_tone:": "\U0001F6B5\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_mountain_biking_light_skin_tone:": "\U0001F6B5\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_mountain_biking_medium-dark_skin_tone:": "\U0001F6B5\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_mountain_biking_medium-light_skin_tone:": "\U0001F6B5\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_mountain_biking_medium_skin_tone:": "\U0001F6B5\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_office_worker:": "\U0001F469\U0000200D\U0001F4BC", ":woman_office_worker_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F4BC", ":woman_office_worker_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F4BC", ":woman_office_worker_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F4BC", ":woman_office_worker_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F4BC", ":woman_office_worker_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F4BC", ":woman_pilot:": "\U0001F469\U0000200D\U00002708\U0000FE0F", ":woman_pilot_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U00002708\U0000FE0F", ":woman_pilot_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U00002708\U0000FE0F", ":woman_pilot_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U00002708\U0000FE0F", ":woman_pilot_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U00002708\U0000FE0F", ":woman_pilot_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U00002708\U0000FE0F", ":woman_playing_handball:": "\U0001F93E\U0000200D\U00002640\U0000FE0F", ":woman_playing_handball_dark_skin_tone:": "\U0001F93E\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_playing_handball_light_skin_tone:": "\U0001F93E\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_playing_handball_medium-dark_skin_tone:": "\U0001F93E\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_playing_handball_medium-light_skin_tone:": "\U0001F93E\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_playing_handball_medium_skin_tone:": "\U0001F93E\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_playing_water_polo:": "\U0001F93D\U0000200D\U00002640\U0000FE0F", ":woman_playing_water_polo_dark_skin_tone:": "\U0001F93D\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_playing_water_polo_light_skin_tone:": "\U0001F93D\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_playing_water_polo_medium-dark_skin_tone:": "\U0001F93D\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_playing_water_polo_medium-light_skin_tone:": "\U0001F93D\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_playing_water_polo_medium_skin_tone:": "\U0001F93D\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_police_officer:": "\U0001F46E\U0000200D\U00002640\U0000FE0F", ":woman_police_officer_dark_skin_tone:": "\U0001F46E\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_police_officer_light_skin_tone:": "\U0001F46E\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_police_officer_medium-dark_skin_tone:": "\U0001F46E\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_police_officer_medium-light_skin_tone:": "\U0001F46E\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_police_officer_medium_skin_tone:": "\U0001F46E\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_pouting:": "\U0001F64E\U0000200D\U00002640\U0000FE0F", ":woman_pouting_dark_skin_tone:": "\U0001F64E\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_pouting_light_skin_tone:": "\U0001F64E\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_pouting_medium-dark_skin_tone:": "\U0001F64E\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_pouting_medium-light_skin_tone:": "\U0001F64E\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_pouting_medium_skin_tone:": "\U0001F64E\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_raising_hand:": "\U0001F64B\U0000200D\U00002640\U0000FE0F", ":woman_raising_hand_dark_skin_tone:": "\U0001F64B\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_raising_hand_light_skin_tone:": "\U0001F64B\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_raising_hand_medium-dark_skin_tone:": "\U0001F64B\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_raising_hand_medium-light_skin_tone:": "\U0001F64B\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_raising_hand_medium_skin_tone:": "\U0001F64B\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_rowing_boat:": "\U0001F6A3\U0000200D\U00002640\U0000FE0F", ":woman_rowing_boat_dark_skin_tone:": "\U0001F6A3\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_rowing_boat_light_skin_tone:": "\U0001F6A3\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_rowing_boat_medium-dark_skin_tone:": "\U0001F6A3\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_rowing_boat_medium-light_skin_tone:": "\U0001F6A3\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_rowing_boat_medium_skin_tone:": "\U0001F6A3\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_running:": "\U0001F3C3\U0000200D\U00002640\U0000FE0F", ":woman_running_dark_skin_tone:": "\U0001F3C3\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_running_light_skin_tone:": "\U0001F3C3\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_running_medium-dark_skin_tone:": "\U0001F3C3\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_running_medium-light_skin_tone:": "\U0001F3C3\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_running_medium_skin_tone:": "\U0001F3C3\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_scientist:": "\U0001F469\U0000200D\U0001F52C", ":woman_scientist_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F52C", ":woman_scientist_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F52C", ":woman_scientist_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F52C", ":woman_scientist_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F52C", ":woman_scientist_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F52C", ":woman_shrugging:": "\U0001F937\U0000200D\U00002640\U0000FE0F", ":woman_shrugging_dark_skin_tone:": "\U0001F937\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_shrugging_light_skin_tone:": "\U0001F937\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_shrugging_medium-dark_skin_tone:": "\U0001F937\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_shrugging_medium-light_skin_tone:": "\U0001F937\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_shrugging_medium_skin_tone:": "\U0001F937\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_singer:": "\U0001F469\U0000200D\U0001F3A4", ":woman_singer_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F3A4", ":woman_singer_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F3A4", ":woman_singer_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F3A4", ":woman_singer_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F3A4", ":woman_singer_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F3A4", ":woman_student:": "\U0001F469\U0000200D\U0001F393", ":woman_student_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F393", ":woman_student_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F393", ":woman_student_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F393", ":woman_student_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F393", ":woman_student_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F393", ":woman_surfing:": "\U0001F3C4\U0000200D\U00002640\U0000FE0F", ":woman_surfing_dark_skin_tone:": "\U0001F3C4\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_surfing_light_skin_tone:": "\U0001F3C4\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_surfing_medium-dark_skin_tone:": "\U0001F3C4\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_surfing_medium-light_skin_tone:": "\U0001F3C4\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_surfing_medium_skin_tone:": "\U0001F3C4\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_swimming:": "\U0001F3CA\U0000200D\U00002640\U0000FE0F", ":woman_swimming_dark_skin_tone:": "\U0001F3CA\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_swimming_light_skin_tone:": "\U0001F3CA\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_swimming_medium-dark_skin_tone:": "\U0001F3CA\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_swimming_medium-light_skin_tone:": "\U0001F3CA\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_swimming_medium_skin_tone:": "\U0001F3CA\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_teacher:": "\U0001F469\U0000200D\U0001F3EB", ":woman_teacher_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F3EB", ":woman_teacher_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F3EB", ":woman_teacher_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F3EB", ":woman_teacher_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F3EB", ":woman_teacher_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F3EB", ":woman_technologist:": "\U0001F469\U0000200D\U0001F4BB", ":woman_technologist_dark_skin_tone:": "\U0001F469\U0001F3FF\U0000200D\U0001F4BB", ":woman_technologist_light_skin_tone:": "\U0001F469\U0001F3FB\U0000200D\U0001F4BB", ":woman_technologist_medium-dark_skin_tone:": "\U0001F469\U0001F3FE\U0000200D\U0001F4BB", ":woman_technologist_medium-light_skin_tone:": "\U0001F469\U0001F3FC\U0000200D\U0001F4BB", ":woman_technologist_medium_skin_tone:": "\U0001F469\U0001F3FD\U0000200D\U0001F4BB", ":woman_tipping_hand:": "\U0001F481\U0000200D\U00002640\U0000FE0F", ":woman_tipping_hand_dark_skin_tone:": "\U0001F481\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_tipping_hand_light_skin_tone:": "\U0001F481\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_tipping_hand_medium-dark_skin_tone:": "\U0001F481\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_tipping_hand_medium-light_skin_tone:": "\U0001F481\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_tipping_hand_medium_skin_tone:": "\U0001F481\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_vampire:": "\U0001F9DB\U0000200D\U00002640\U0000FE0F", ":woman_vampire_dark_skin_tone:": "\U0001F9DB\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_vampire_light_skin_tone:": "\U0001F9DB\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_vampire_medium-dark_skin_tone:": "\U0001F9DB\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_vampire_medium-light_skin_tone:": "\U0001F9DB\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_vampire_medium_skin_tone:": "\U0001F9DB\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_walking:": "\U0001F6B6\U0000200D\U00002640\U0000FE0F", ":woman_walking_dark_skin_tone:": "\U0001F6B6\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_walking_light_skin_tone:": "\U0001F6B6\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_walking_medium-dark_skin_tone:": "\U0001F6B6\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_walking_medium-light_skin_tone:": "\U0001F6B6\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_walking_medium_skin_tone:": "\U0001F6B6\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_wearing_turban:": "\U0001F473\U0000200D\U00002640\U0000FE0F", ":woman_wearing_turban_dark_skin_tone:": "\U0001F473\U0001F3FF\U0000200D\U00002640\U0000FE0F", ":woman_wearing_turban_light_skin_tone:": "\U0001F473\U0001F3FB\U0000200D\U00002640\U0000FE0F", ":woman_wearing_turban_medium-dark_skin_tone:": "\U0001F473\U0001F3FE\U0000200D\U00002640\U0000FE0F", ":woman_wearing_turban_medium-light_skin_tone:": "\U0001F473\U0001F3FC\U0000200D\U00002640\U0000FE0F", ":woman_wearing_turban_medium_skin_tone:": "\U0001F473\U0001F3FD\U0000200D\U00002640\U0000FE0F", ":woman_with_headscarf:": "\U0001F9D5", ":woman_with_headscarf_dark_skin_tone:": "\U0001F9D5\U0001F3FF", ":woman_with_headscarf_light_skin_tone:": "\U0001F9D5\U0001F3FB", ":woman_with_headscarf_medium-dark_skin_tone:": "\U0001F9D5\U0001F3FE", ":woman_with_headscarf_medium-light_skin_tone:": "\U0001F9D5\U0001F3FC", ":woman_with_headscarf_medium_skin_tone:": "\U0001F9D5\U0001F3FD", ":woman_zombie:": "\U0001F9DF\U0000200D\U00002640\U0000FE0F", ":woman’s_boot:": "\U0001F462", ":woman’s_clothes:": "\U0001F45A", ":woman’s_hat:": "\U0001F452", ":woman’s_sandal:": "\U0001F461", ":women_with_bunny_ears:": "\U0001F46F\U0000200D\U00002640\U0000FE0F", ":women_wrestling:": "\U0001F93C\U0000200D\U00002640\U0000FE0F", ":women’s_room:": "\U0001F6BA", ":world_map:": "\U0001F5FA", ":worried_face:": "\U0001F61F", ":wrapped_gift:": "\U0001F381", ":wrench:": "\U0001F527", ":writing_hand:": "\U0000270D", ":writing_hand_dark_skin_tone:": "\U0000270D\U0001F3FF", ":writing_hand_light_skin_tone:": "\U0000270D\U0001F3FB", ":writing_hand_medium-dark_skin_tone:": "\U0000270D\U0001F3FE", ":writing_hand_medium-light_skin_tone:": "\U0000270D\U0001F3FC", ":writing_hand_medium_skin_tone:": "\U0000270D\U0001F3FD", ":yellow_heart:": "\U0001F49B", ":yen_banknote:": "\U0001F4B4", ":yin_yang:": "\U0000262F", ":zany_face:": "\U0001F92A", ":zebra:": "\U0001F993", ":zipper-mouth_face:": "\U0001F910", ":zombie:": "\U0001F9DF", ":zzz:": "\U0001F4A4", ":Åland_Islands:": "\U0001F1E6\U0001F1FD", } EMOJI_ALIAS_UNICODE = dict( EMOJI_UNICODE.items(), **{ ":admission_tickets:": "\U0001F39F", ":aerial_tramway:": "\U0001F6A1", ":airplane:": "\U00002708", ":airplane_arriving:": "\U0001F6EC", ":airplane_departure:": "\U0001F6EB", ":alarm_clock:": "\U000023F0", ":alembic:": "\U00002697", ":space_invader:": "\U0001F47E", ":ambulance:": "\U0001F691", ":football:": "\U0001F3C8", ":amphora:": "\U0001F3FA", ":anchor:": "\U00002693", ":anger:": "\U0001F4A2", ":angry:": "\U0001F620", ":anguished:": "\U0001F627", ":ant:": "\U0001F41C", ":signal_strength:": "\U0001F4F6", ":arrows_counterclockwise:": "\U0001F504", ":aquarius:": "\U00002652", ":aries:": "\U00002648", ":arrow_heading_down:": "\U00002935", ":arrow_heading_up:": "\U00002934", ":articulated_lorry:": "\U0001F69B", ":art:": "\U0001F3A8", ":astonished:": "\U0001F632", ":athletic_shoe:": "\U0001F45F", ":atom_symbol:": "\U0000269B", ":eggplant:": "\U0001F346", ":atm:": "\U0001F3E7", ":car:": "\U0001F697", ":red_car:": "\U0001F697", ":baby:": "\U0001F476", ":angel:": "\U0001F47C", ":baby_bottle:": "\U0001F37C", ":baby_chick:": "\U0001F424", ":baby_symbol:": "\U0001F6BC", ":back:": "\U0001F519", ":camel:": "\U0001F42B", ":badminton_racquet_and_shuttlecock:": "\U0001F3F8", ":baggage_claim:": "\U0001F6C4", ":balloon:": "\U0001F388", ":ballot_box_with_ballot:": "\U0001F5F3", ":ballot_box_with_check:": "\U00002611", ":banana:": "\U0001F34C", ":bank:": "\U0001F3E6", ":dollar:": "\U0001F4B5", ":euro:": "\U0001F4B6", ":pound:": "\U0001F4B7", ":yen:": "\U0001F4B4", ":bar_chart:": "\U0001F4CA", ":barber:": "\U0001F488", ":baseball:": "\U000026BE", ":basketball:": "\U0001F3C0", ":bath:": "\U0001F6C0", ":bathtub:": "\U0001F6C1", ":battery:": "\U0001F50B", ":beach_with_umbrella:": "\U0001F3D6", ":bear:": "\U0001F43B", ":heartbeat:": "\U0001F493", ":bed:": "\U0001F6CF", ":beer:": "\U0001F37A", ":bell:": "\U0001F514", ":no_bell:": "\U0001F515", ":bellhop_bell:": "\U0001F6CE", ":bento:": "\U0001F371", ":bike:": "\U0001F6B2", ":bicyclist:": "\U0001F6B4", ":bikini:": "\U0001F459", ":8ball:": "\U0001F3B1", ":biohazard_sign:": "\U00002623", ":bird:": "\U0001F426", ":birthday:": "\U0001F382", ":black_circle_for_record:": "\U000023FA", ":clubs:": "\U00002663", ":diamonds:": "\U00002666", ":arrow_double_down:": "\U000023EC", ":hearts:": "\U00002665", ":black_large_square:": "\U00002B1B", ":rewind:": "\U000023EA", ":black_left__pointing_double_triangle_with_vertical_bar:": "\U000023EE", ":arrow_backward:": "\U000025C0", ":black_medium_small_square:": "\U000025FE", ":black_medium_square:": "\U000025FC", ":black_nib:": "\U00002712", ":question:": "\U00002753", ":fast_forward:": "\U000023E9", ":black_right__pointing_double_triangle_with_vertical_bar:": "\U000023ED", ":arrow_forward:": "\U000025B6", ":black_right__pointing_triangle_with_double_vertical_bar:": "\U000023EF", ":arrow_right:": "\U000027A1", ":scissors:": "\U00002702", ":black_small_square:": "\U000025AA", ":spades:": "\U00002660", ":black_square_button:": "\U0001F532", ":black_square_for_stop:": "\U000023F9", ":sunny:": "\U00002600", ":phone:": "\U0000260E", ":telephone:": "\U0000260E", ":recycle:": "\U0000267B", ":arrow_double_up:": "\U000023EB", ":blossom:": "\U0001F33C", ":blowfish:": "\U0001F421", ":blue_book:": "\U0001F4D8", ":blue_heart:": "\U0001F499", ":boar:": "\U0001F417", ":bomb:": "\U0001F4A3", ":bookmark:": "\U0001F516", ":bookmark_tabs:": "\U0001F4D1", ":books:": "\U0001F4DA", ":bottle_with_popping_cork:": "\U0001F37E", ":bouquet:": "\U0001F490", ":bow_and_arrow:": "\U0001F3F9", ":bowling:": "\U0001F3B3", ":boy:": "\U0001F466", ":bread:": "\U0001F35E", ":bride_with_veil:": "\U0001F470", ":bridge_at_night:": "\U0001F309", ":briefcase:": "\U0001F4BC", ":broken_heart:": "\U0001F494", ":bug:": "\U0001F41B", ":building_construction:": "\U0001F3D7", ":burrito:": "\U0001F32F", ":bus:": "\U0001F68C", ":busstop:": "\U0001F68F", ":bust_in_silhouette:": "\U0001F464", ":busts_in_silhouette:": "\U0001F465", ":cactus:": "\U0001F335", ":date:": "\U0001F4C5", ":camera:": "\U0001F4F7", ":camera_with_flash:": "\U0001F4F8", ":camping:": "\U0001F3D5", ":cancer:": "\U0000264B", ":candle:": "\U0001F56F", ":candy:": "\U0001F36C", ":capricorn:": "\U00002651", ":card_file_box:": "\U0001F5C3", ":card_index:": "\U0001F4C7", ":card_index_dividers:": "\U0001F5C2", ":carousel_horse:": "\U0001F3A0", ":flags:": "\U0001F38F", ":cat2:": "\U0001F408", ":cat:": "\U0001F431", ":joy_cat:": "\U0001F639", ":smirk_cat:": "\U0001F63C", ":chains:": "\U000026D3", ":chart_with_downwards_trend:": "\U0001F4C9", ":chart_with_upwards_trend:": "\U0001F4C8", ":chart:": "\U0001F4B9", ":mega:": "\U0001F4E3", ":cheese_wedge:": "\U0001F9C0", ":checkered_flag:": "\U0001F3C1", ":cherries:": "\U0001F352", ":cherry_blossom:": "\U0001F338", ":chestnut:": "\U0001F330", ":chicken:": "\U0001F414", ":children_crossing:": "\U0001F6B8", ":chipmunk:": "\U0001F43F", ":chocolate_bar:": "\U0001F36B", ":christmas_tree:": "\U0001F384", ":church:": "\U000026EA", ":cinema:": "\U0001F3A6", ":accept:": "\U0001F251", ":ideograph_advantage:": "\U0001F250", ":congratulations:": "\U00003297", ":secret:": "\U00003299", ":m:": "\U000024C2", ":circus_tent:": "\U0001F3AA", ":cityscape:": "\U0001F3D9", ":city_sunset:": "\U0001F306", ":clapper:": "\U0001F3AC", ":clap:": "\U0001F44F", ":classical_building:": "\U0001F3DB", ":beers:": "\U0001F37B", ":clipboard:": "\U0001F4CB", ":clock830:": "\U0001F563", ":clock8:": "\U0001F557", ":clock1130:": "\U0001F566", ":clock11:": "\U0001F55A", ":clock530:": "\U0001F560", ":clock5:": "\U0001F554", ":clock430:": "\U0001F55F", ":clock4:": "\U0001F553", ":clock930:": "\U0001F564", ":clock9:": "\U0001F558", ":clock130:": "\U0001F55C", ":clock1:": "\U0001F550", ":clock730:": "\U0001F562", ":clock7:": "\U0001F556", ":clock630:": "\U0001F561", ":clock6:": "\U0001F555", ":clock1030:": "\U0001F565", ":clock10:": "\U0001F559", ":clock330:": "\U0001F55E", ":clock3:": "\U0001F552", ":clock1230:": "\U0001F567", ":clock12:": "\U0001F55B", ":clock230:": "\U0001F55D", ":clock2:": "\U0001F551", ":arrows_clockwise:": "\U0001F503", ":repeat:": "\U0001F501", ":repeat_one:": "\U0001F502", ":closed_book:": "\U0001F4D5", ":closed_lock_with_key:": "\U0001F510", ":mailbox_closed:": "\U0001F4EA", ":mailbox:": "\U0001F4EB", ":closed_umbrella:": "\U0001F302", ":cloud:": "\U00002601", ":cloud_with_lightning:": "\U0001F329", ":cloud_with_rain:": "\U0001F327", ":cloud_with_snow:": "\U0001F328", ":cloud_with_tornado:": "\U0001F32A", ":cocktail:": "\U0001F378", ":coffin:": "\U000026B0", ":boom:": "\U0001F4A5", ":collision:": "\U0001F4A5", ":comet:": "\U00002604", ":compression:": "\U0001F5DC", ":confetti_ball:": "\U0001F38A", ":confounded:": "\U0001F616", ":confused:": "\U0001F615", ":construction:": "\U0001F6A7", ":construction_worker:": "\U0001F477", ":control_knobs:": "\U0001F39B", ":convenience_store:": "\U0001F3EA", ":rice:": "\U0001F35A", ":cookie:": "\U0001F36A", ":egg:": "\U0001F373", ":copyright:": "\U000000A9", ":couch_and_lamp:": "\U0001F6CB", ":couple_with_heart:": "\U0001F491", ":cow2:": "\U0001F404", ":cow:": "\U0001F42E", ":crab:": "\U0001F980", ":credit_card:": "\U0001F4B3", ":crescent_moon:": "\U0001F319", ":cricket_bat_and_ball:": "\U0001F3CF", ":crocodile:": "\U0001F40A", ":x:": "\U0000274C", ":crossed_flags:": "\U0001F38C", ":crossed_swords:": "\U00002694", ":crown:": "\U0001F451", ":crying_cat_face:": "\U0001F63F", ":cry:": "\U0001F622", ":crystal_ball:": "\U0001F52E", ":curly_loop:": "\U000027B0", ":currency_exchange:": "\U0001F4B1", ":curry:": "\U0001F35B", ":custard:": "\U0001F36E", ":customs:": "\U0001F6C3", ":cyclone:": "\U0001F300", ":dagger_knife:": "\U0001F5E1", ":dancer:": "\U0001F483", ":dango:": "\U0001F361", ":dark_sunglasses:": "\U0001F576", ":dash:": "\U0001F4A8", ":deciduous_tree:": "\U0001F333", ":truck:": "\U0001F69A", ":department_store:": "\U0001F3EC", ":derelict_house_building:": "\U0001F3DA", ":desert:": "\U0001F3DC", ":desert_island:": "\U0001F3DD", ":desktop_computer:": "\U0001F5A5", ":diamond_shape_with_a_dot_inside:": "\U0001F4A0", ":dart:": "\U0001F3AF", ":disappointed_relieved:": "\U0001F625", ":disappointed:": "\U0001F61E", ":dizzy_face:": "\U0001F635", ":dizzy:": "\U0001F4AB", ":do_not_litter:": "\U0001F6AF", ":dog2:": "\U0001F415", ":dog:": "\U0001F436", ":dolphin:": "\U0001F42C", ":flipper:": "\U0001F42C", ":door:": "\U0001F6AA", ":loop:": "\U000027BF", ":bangbang:": "\U0000203C", ":double_vertical_bar:": "\U000023F8", ":doughnut:": "\U0001F369", ":dove_of_peace:": "\U0001F54A", ":small_red_triangle_down:": "\U0001F53B", ":arrow_down_small:": "\U0001F53D", ":arrow_down:": "\U00002B07", ":dragon:": "\U0001F409", ":dragon_face:": "\U0001F432", ":dress:": "\U0001F457", ":dromedary_camel:": "\U0001F42A", ":droplet:": "\U0001F4A7", ":dvd:": "\U0001F4C0", ":e__mail:": "\U0001F4E7", ":ear:": "\U0001F442", ":corn:": "\U0001F33D", ":ear_of_rice:": "\U0001F33E", ":earth_americas:": "\U0001F30E", ":earth_asia:": "\U0001F30F", ":earth_africa:": "\U0001F30D", ":eight_pointed_black_star:": "\U00002734", ":eight_spoked_asterisk:": "\U00002733", ":eject_symbol:": "\U000023CF", ":bulb:": "\U0001F4A1", ":electric_plug:": "\U0001F50C", ":flashlight:": "\U0001F526", ":elephant:": "\U0001F418", ":emoji_modifier_fitzpatrick_type__1__2:": "\U0001F3FB", ":emoji_modifier_fitzpatrick_type__3:": "\U0001F3FC", ":emoji_modifier_fitzpatrick_type__4:": "\U0001F3FD", ":emoji_modifier_fitzpatrick_type__5:": "\U0001F3FE", ":emoji_modifier_fitzpatrick_type__6:": "\U0001F3FF", ":end:": "\U0001F51A", ":email:": "\U00002709", ":envelope:": "\U00002709", ":envelope_with_arrow:": "\U0001F4E9", ":european_castle:": "\U0001F3F0", ":european_post_office:": "\U0001F3E4", ":evergreen_tree:": "\U0001F332", ":interrobang:": "\U00002049", ":expressionless:": "\U0001F611", ":alien:": "\U0001F47D", ":eye:": "\U0001F441", ":eyeglasses:": "\U0001F453", ":eyes:": "\U0001F440", ":massage:": "\U0001F486", ":yum:": "\U0001F60B", ":scream:": "\U0001F631", ":kissing_heart:": "\U0001F618", ":sweat:": "\U0001F613", ":face_with_head__bandage:": "\U0001F915", ":triumph:": "\U0001F624", ":mask:": "\U0001F637", ":no_good:": "\U0001F645", ":ok_woman:": "\U0001F646", ":open_mouth:": "\U0001F62E", ":cold_sweat:": "\U0001F630", ":face_with_rolling_eyes:": "\U0001F644", ":stuck_out_tongue:": "\U0001F61B", ":stuck_out_tongue_closed_eyes:": "\U0001F61D", ":stuck_out_tongue_winking_eye:": "\U0001F61C", ":joy:": "\U0001F602", ":face_with_thermometer:": "\U0001F912", ":no_mouth:": "\U0001F636", ":factory:": "\U0001F3ED", ":fallen_leaf:": "\U0001F342", ":family:": "\U0001F46A", ":santa:": "\U0001F385", ":fax:": "\U0001F4E0", ":fearful:": "\U0001F628", ":ferris_wheel:": "\U0001F3A1", ":ferry:": "\U000026F4", ":field_hockey_stick_and_ball:": "\U0001F3D1", ":file_cabinet:": "\U0001F5C4", ":file_folder:": "\U0001F4C1", ":film_frames:": "\U0001F39E", ":film_projector:": "\U0001F4FD", ":fire:": "\U0001F525", ":fire_engine:": "\U0001F692", ":sparkler:": "\U0001F387", ":fireworks:": "\U0001F386", ":first_quarter_moon:": "\U0001F313", ":first_quarter_moon_with_face:": "\U0001F31B", ":fish:": "\U0001F41F", ":fish_cake:": "\U0001F365", ":fishing_pole_and_fish:": "\U0001F3A3", ":facepunch:": "\U0001F44A", ":punch:": "\U0001F44A", ":flag_for_Afghanistan:": "\U0001F1E6\U0001F1EB", ":flag_for_Albania:": "\U0001F1E6\U0001F1F1", ":flag_for_Algeria:": "\U0001F1E9\U0001F1FF", ":flag_for_American_Samoa:": "\U0001F1E6\U0001F1F8", ":flag_for_Andorra:": "\U0001F1E6\U0001F1E9", ":flag_for_Angola:": "\U0001F1E6\U0001F1F4", ":flag_for_Anguilla:": "\U0001F1E6\U0001F1EE", ":flag_for_Antarctica:": "\U0001F1E6\U0001F1F6", ":flag_for_Antigua_&_Barbuda:": "\U0001F1E6\U0001F1EC", ":flag_for_Argentina:": "\U0001F1E6\U0001F1F7", ":flag_for_Armenia:": "\U0001F1E6\U0001F1F2", ":flag_for_Aruba:": "\U0001F1E6\U0001F1FC", ":flag_for_Ascension_Island:": "\U0001F1E6\U0001F1E8", ":flag_for_Australia:": "\U0001F1E6\U0001F1FA", ":flag_for_Austria:": "\U0001F1E6\U0001F1F9", ":flag_for_Azerbaijan:": "\U0001F1E6\U0001F1FF", ":flag_for_Bahamas:": "\U0001F1E7\U0001F1F8", ":flag_for_Bahrain:": "\U0001F1E7\U0001F1ED", ":flag_for_Bangladesh:": "\U0001F1E7\U0001F1E9", ":flag_for_Barbados:": "\U0001F1E7\U0001F1E7", ":flag_for_Belarus:": "\U0001F1E7\U0001F1FE", ":flag_for_Belgium:": "\U0001F1E7\U0001F1EA", ":flag_for_Belize:": "\U0001F1E7\U0001F1FF", ":flag_for_Benin:": "\U0001F1E7\U0001F1EF", ":flag_for_Bermuda:": "\U0001F1E7\U0001F1F2", ":flag_for_Bhutan:": "\U0001F1E7\U0001F1F9", ":flag_for_Bolivia:": "\U0001F1E7\U0001F1F4", ":flag_for_Bosnia_&_Herzegovina:": "\U0001F1E7\U0001F1E6", ":flag_for_Botswana:": "\U0001F1E7\U0001F1FC", ":flag_for_Bouvet_Island:": "\U0001F1E7\U0001F1FB", ":flag_for_Brazil:": "\U0001F1E7\U0001F1F7", ":flag_for_British_Indian_Ocean_Territory:": "\U0001F1EE\U0001F1F4", ":flag_for_British_Virgin_Islands:": "\U0001F1FB\U0001F1EC", ":flag_for_Brunei:": "\U0001F1E7\U0001F1F3", ":flag_for_Bulgaria:": "\U0001F1E7\U0001F1EC", ":flag_for_Burkina_Faso:": "\U0001F1E7\U0001F1EB", ":flag_for_Burundi:": "\U0001F1E7\U0001F1EE", ":flag_for_Cambodia:": "\U0001F1F0\U0001F1ED", ":flag_for_Cameroon:": "\U0001F1E8\U0001F1F2", ":flag_for_Canada:": "\U0001F1E8\U0001F1E6", ":flag_for_Canary_Islands:": "\U0001F1EE\U0001F1E8", ":flag_for_Cape_Verde:": "\U0001F1E8\U0001F1FB", ":flag_for_Caribbean_Netherlands:": "\U0001F1E7\U0001F1F6", ":flag_for_Cayman_Islands:": "\U0001F1F0\U0001F1FE", ":flag_for_Central_African_Republic:": "\U0001F1E8\U0001F1EB", ":flag_for_Ceuta_&_Melilla:": "\U0001F1EA\U0001F1E6", ":flag_for_Chad:": "\U0001F1F9\U0001F1E9", ":flag_for_Chile:": "\U0001F1E8\U0001F1F1", ":flag_for_China:": "\U0001F1E8\U0001F1F3", ":flag_for_Christmas_Island:": "\U0001F1E8\U0001F1FD", ":flag_for_Clipperton_Island:": "\U0001F1E8\U0001F1F5", ":flag_for_Cocos__Islands:": "\U0001F1E8\U0001F1E8", ":flag_for_Colombia:": "\U0001F1E8\U0001F1F4", ":flag_for_Comoros:": "\U0001F1F0\U0001F1F2", ":flag_for_Congo____Brazzaville:": "\U0001F1E8\U0001F1EC", ":flag_for_Congo____Kinshasa:": "\U0001F1E8\U0001F1E9", ":flag_for_Cook_Islands:": "\U0001F1E8\U0001F1F0", ":flag_for_Costa_Rica:": "\U0001F1E8\U0001F1F7", ":flag_for_Croatia:": "\U0001F1ED\U0001F1F7", ":flag_for_Cuba:": "\U0001F1E8\U0001F1FA", ":flag_for_Curaçao:": "\U0001F1E8\U0001F1FC", ":flag_for_Cyprus:": "\U0001F1E8\U0001F1FE", ":flag_for_Czech_Republic:": "\U0001F1E8\U0001F1FF", ":flag_for_Côte_d’Ivoire:": "\U0001F1E8\U0001F1EE", ":flag_for_Denmark:": "\U0001F1E9\U0001F1F0", ":flag_for_Diego_Garcia:": "\U0001F1E9\U0001F1EC", ":flag_for_Djibouti:": "\U0001F1E9\U0001F1EF", ":flag_for_Dominica:": "\U0001F1E9\U0001F1F2", ":flag_for_Dominican_Republic:": "\U0001F1E9\U0001F1F4", ":flag_for_Ecuador:": "\U0001F1EA\U0001F1E8", ":flag_for_Egypt:": "\U0001F1EA\U0001F1EC", ":flag_for_El_Salvador:": "\U0001F1F8\U0001F1FB", ":flag_for_Equatorial_Guinea:": "\U0001F1EC\U0001F1F6", ":flag_for_Eritrea:": "\U0001F1EA\U0001F1F7", ":flag_for_Estonia:": "\U0001F1EA\U0001F1EA", ":flag_for_Ethiopia:": "\U0001F1EA\U0001F1F9", ":flag_for_European_Union:": "\U0001F1EA\U0001F1FA", ":flag_for_Falkland_Islands:": "\U0001F1EB\U0001F1F0", ":flag_for_Faroe_Islands:": "\U0001F1EB\U0001F1F4", ":flag_for_Fiji:": "\U0001F1EB\U0001F1EF", ":flag_for_Finland:": "\U0001F1EB\U0001F1EE", ":flag_for_France:": "\U0001F1EB\U0001F1F7", ":flag_for_French_Guiana:": "\U0001F1EC\U0001F1EB", ":flag_for_French_Polynesia:": "\U0001F1F5\U0001F1EB", ":flag_for_French_Southern_Territories:": "\U0001F1F9\U0001F1EB", ":flag_for_Gabon:": "\U0001F1EC\U0001F1E6", ":flag_for_Gambia:": "\U0001F1EC\U0001F1F2", ":flag_for_Georgia:": "\U0001F1EC\U0001F1EA", ":flag_for_Germany:": "\U0001F1E9\U0001F1EA", ":flag_for_Ghana:": "\U0001F1EC\U0001F1ED", ":flag_for_Gibraltar:": "\U0001F1EC\U0001F1EE", ":flag_for_Greece:": "\U0001F1EC\U0001F1F7", ":flag_for_Greenland:": "\U0001F1EC\U0001F1F1", ":flag_for_Grenada:": "\U0001F1EC\U0001F1E9", ":flag_for_Guadeloupe:": "\U0001F1EC\U0001F1F5", ":flag_for_Guam:": "\U0001F1EC\U0001F1FA", ":flag_for_Guatemala:": "\U0001F1EC\U0001F1F9", ":flag_for_Guernsey:": "\U0001F1EC\U0001F1EC", ":flag_for_Guinea:": "\U0001F1EC\U0001F1F3", ":flag_for_Guinea__Bissau:": "\U0001F1EC\U0001F1FC", ":flag_for_Guyana:": "\U0001F1EC\U0001F1FE", ":flag_for_Haiti:": "\U0001F1ED\U0001F1F9", ":flag_for_Heard_&_McDonald_Islands:": "\U0001F1ED\U0001F1F2", ":flag_for_Honduras:": "\U0001F1ED\U0001F1F3", ":flag_for_Hong_Kong:": "\U0001F1ED\U0001F1F0", ":flag_for_Hungary:": "\U0001F1ED\U0001F1FA", ":flag_for_Iceland:": "\U0001F1EE\U0001F1F8", ":flag_for_India:": "\U0001F1EE\U0001F1F3", ":flag_for_Indonesia:": "\U0001F1EE\U0001F1E9", ":flag_for_Iran:": "\U0001F1EE\U0001F1F7", ":flag_for_Iraq:": "\U0001F1EE\U0001F1F6", ":flag_for_Ireland:": "\U0001F1EE\U0001F1EA", ":flag_for_Isle_of_Man:": "\U0001F1EE\U0001F1F2", ":flag_for_Israel:": "\U0001F1EE\U0001F1F1", ":flag_for_Italy:": "\U0001F1EE\U0001F1F9", ":flag_for_Jamaica:": "\U0001F1EF\U0001F1F2", ":flag_for_Japan:": "\U0001F1EF\U0001F1F5", ":flag_for_Jersey:": "\U0001F1EF\U0001F1EA", ":flag_for_Jordan:": "\U0001F1EF\U0001F1F4", ":flag_for_Kazakhstan:": "\U0001F1F0\U0001F1FF", ":flag_for_Kenya:": "\U0001F1F0\U0001F1EA", ":flag_for_Kiribati:": "\U0001F1F0\U0001F1EE", ":flag_for_Kosovo:": "\U0001F1FD\U0001F1F0", ":flag_for_Kuwait:": "\U0001F1F0\U0001F1FC", ":flag_for_Kyrgyzstan:": "\U0001F1F0\U0001F1EC", ":flag_for_Laos:": "\U0001F1F1\U0001F1E6", ":flag_for_Latvia:": "\U0001F1F1\U0001F1FB", ":flag_for_Lebanon:": "\U0001F1F1\U0001F1E7", ":flag_for_Lesotho:": "\U0001F1F1\U0001F1F8", ":flag_for_Liberia:": "\U0001F1F1\U0001F1F7", ":flag_for_Libya:": "\U0001F1F1\U0001F1FE", ":flag_for_Liechtenstein:": "\U0001F1F1\U0001F1EE", ":flag_for_Lithuania:": "\U0001F1F1\U0001F1F9", ":flag_for_Luxembourg:": "\U0001F1F1\U0001F1FA", ":flag_for_Macau:": "\U0001F1F2\U0001F1F4", ":flag_for_Macedonia:": "\U0001F1F2\U0001F1F0", ":flag_for_Madagascar:": "\U0001F1F2\U0001F1EC", ":flag_for_Malawi:": "\U0001F1F2\U0001F1FC", ":flag_for_Malaysia:": "\U0001F1F2\U0001F1FE", ":flag_for_Maldives:": "\U0001F1F2\U0001F1FB", ":flag_for_Mali:": "\U0001F1F2\U0001F1F1", ":flag_for_Malta:": "\U0001F1F2\U0001F1F9", ":flag_for_Marshall_Islands:": "\U0001F1F2\U0001F1ED", ":flag_for_Martinique:": "\U0001F1F2\U0001F1F6", ":flag_for_Mauritania:": "\U0001F1F2\U0001F1F7", ":flag_for_Mauritius:": "\U0001F1F2\U0001F1FA", ":flag_for_Mayotte:": "\U0001F1FE\U0001F1F9", ":flag_for_Mexico:": "\U0001F1F2\U0001F1FD", ":flag_for_Micronesia:": "\U0001F1EB\U0001F1F2", ":flag_for_Moldova:": "\U0001F1F2\U0001F1E9", ":flag_for_Monaco:": "\U0001F1F2\U0001F1E8", ":flag_for_Mongolia:": "\U0001F1F2\U0001F1F3", ":flag_for_Montenegro:": "\U0001F1F2\U0001F1EA", ":flag_for_Montserrat:": "\U0001F1F2\U0001F1F8", ":flag_for_Morocco:": "\U0001F1F2\U0001F1E6", ":flag_for_Mozambique:": "\U0001F1F2\U0001F1FF", ":flag_for_Myanmar:": "\U0001F1F2\U0001F1F2", ":flag_for_Namibia:": "\U0001F1F3\U0001F1E6", ":flag_for_Nauru:": "\U0001F1F3\U0001F1F7", ":flag_for_Nepal:": "\U0001F1F3\U0001F1F5", ":flag_for_Netherlands:": "\U0001F1F3\U0001F1F1", ":flag_for_New_Caledonia:": "\U0001F1F3\U0001F1E8", ":flag_for_New_Zealand:": "\U0001F1F3\U0001F1FF", ":flag_for_Nicaragua:": "\U0001F1F3\U0001F1EE", ":flag_for_Niger:": "\U0001F1F3\U0001F1EA", ":flag_for_Nigeria:": "\U0001F1F3\U0001F1EC", ":flag_for_Niue:": "\U0001F1F3\U0001F1FA", ":flag_for_Norfolk_Island:": "\U0001F1F3\U0001F1EB", ":flag_for_North_Korea:": "\U0001F1F0\U0001F1F5", ":flag_for_Northern_Mariana_Islands:": "\U0001F1F2\U0001F1F5", ":flag_for_Norway:": "\U0001F1F3\U0001F1F4", ":flag_for_Oman:": "\U0001F1F4\U0001F1F2", ":flag_for_Pakistan:": "\U0001F1F5\U0001F1F0", ":flag_for_Palau:": "\U0001F1F5\U0001F1FC", ":flag_for_Palestinian_Territories:": "\U0001F1F5\U0001F1F8", ":flag_for_Panama:": "\U0001F1F5\U0001F1E6", ":flag_for_Papua_New_Guinea:": "\U0001F1F5\U0001F1EC", ":flag_for_Paraguay:": "\U0001F1F5\U0001F1FE", ":flag_for_Peru:": "\U0001F1F5\U0001F1EA", ":flag_for_Philippines:": "\U0001F1F5\U0001F1ED", ":flag_for_Pitcairn_Islands:": "\U0001F1F5\U0001F1F3", ":flag_for_Poland:": "\U0001F1F5\U0001F1F1", ":flag_for_Portugal:": "\U0001F1F5\U0001F1F9", ":flag_for_Puerto_Rico:": "\U0001F1F5\U0001F1F7", ":flag_for_Qatar:": "\U0001F1F6\U0001F1E6", ":flag_for_Romania:": "\U0001F1F7\U0001F1F4", ":flag_for_Russia:": "\U0001F1F7\U0001F1FA", ":flag_for_Rwanda:": "\U0001F1F7\U0001F1FC", ":flag_for_Réunion:": "\U0001F1F7\U0001F1EA", ":flag_for_Samoa:": "\U0001F1FC\U0001F1F8", ":flag_for_San_Marino:": "\U0001F1F8\U0001F1F2", ":flag_for_Saudi_Arabia:": "\U0001F1F8\U0001F1E6", ":flag_for_Senegal:": "\U0001F1F8\U0001F1F3", ":flag_for_Serbia:": "\U0001F1F7\U0001F1F8", ":flag_for_Seychelles:": "\U0001F1F8\U0001F1E8", ":flag_for_Sierra_Leone:": "\U0001F1F8\U0001F1F1", ":flag_for_Singapore:": "\U0001F1F8\U0001F1EC", ":flag_for_Sint_Maarten:": "\U0001F1F8\U0001F1FD", ":flag_for_Slovakia:": "\U0001F1F8\U0001F1F0", ":flag_for_Slovenia:": "\U0001F1F8\U0001F1EE", ":flag_for_Solomon_Islands:": "\U0001F1F8\U0001F1E7", ":flag_for_Somalia:": "\U0001F1F8\U0001F1F4", ":flag_for_South_Africa:": "\U0001F1FF\U0001F1E6", ":flag_for_South_Georgia_&_South_Sandwich_Islands:": "\U0001F1EC\U0001F1F8", ":flag_for_South_Korea:": "\U0001F1F0\U0001F1F7", ":flag_for_South_Sudan:": "\U0001F1F8\U0001F1F8", ":flag_for_Spain:": "\U0001F1EA\U0001F1F8", ":flag_for_Sri_Lanka:": "\U0001F1F1\U0001F1F0", ":flag_for_St._Barthélemy:": "\U0001F1E7\U0001F1F1", ":flag_for_St._Helena:": "\U0001F1F8\U0001F1ED", ":flag_for_St._Kitts_&_Nevis:": "\U0001F1F0\U0001F1F3", ":flag_for_St._Lucia:": "\U0001F1F1\U0001F1E8", ":flag_for_St._Martin:": "\U0001F1F2\U0001F1EB", ":flag_for_St._Pierre_&_Miquelon:": "\U0001F1F5\U0001F1F2", ":flag_for_St._Vincent_&_Grenadines:": "\U0001F1FB\U0001F1E8", ":flag_for_Sudan:": "\U0001F1F8\U0001F1E9", ":flag_for_Suriname:": "\U0001F1F8\U0001F1F7", ":flag_for_Svalbard_&_Jan_Mayen:": "\U0001F1F8\U0001F1EF", ":flag_for_Swaziland:": "\U0001F1F8\U0001F1FF", ":flag_for_Sweden:": "\U0001F1F8\U0001F1EA", ":flag_for_Switzerland:": "\U0001F1E8\U0001F1ED", ":flag_for_Syria:": "\U0001F1F8\U0001F1FE", ":flag_for_São_Tomé_&_Príncipe:": "\U0001F1F8\U0001F1F9", ":flag_for_Taiwan:": "\U0001F1F9\U0001F1FC", ":flag_for_Tajikistan:": "\U0001F1F9\U0001F1EF", ":flag_for_Tanzania:": "\U0001F1F9\U0001F1FF", ":flag_for_Thailand:": "\U0001F1F9\U0001F1ED", ":flag_for_Timor__Leste:": "\U0001F1F9\U0001F1F1", ":flag_for_Togo:": "\U0001F1F9\U0001F1EC", ":flag_for_Tokelau:": "\U0001F1F9\U0001F1F0", ":flag_for_Tonga:": "\U0001F1F9\U0001F1F4", ":flag_for_Trinidad_&_Tobago:": "\U0001F1F9\U0001F1F9", ":flag_for_Tristan_da_Cunha:": "\U0001F1F9\U0001F1E6", ":flag_for_Tunisia:": "\U0001F1F9\U0001F1F3", ":flag_for_Turkey:": "\U0001F1F9\U0001F1F7", ":flag_for_Turkmenistan:": "\U0001F1F9\U0001F1F2", ":flag_for_Turks_&_Caicos_Islands:": "\U0001F1F9\U0001F1E8", ":flag_for_Tuvalu:": "\U0001F1F9\U0001F1FB", ":flag_for_U.S._Outlying_Islands:": "\U0001F1FA\U0001F1F2", ":flag_for_U.S._Virgin_Islands:": "\U0001F1FB\U0001F1EE", ":flag_for_Uganda:": "\U0001F1FA\U0001F1EC", ":flag_for_Ukraine:": "\U0001F1FA\U0001F1E6", ":flag_for_United_Arab_Emirates:": "\U0001F1E6\U0001F1EA", ":flag_for_United_Kingdom:": "\U0001F1EC\U0001F1E7", ":flag_for_United_States:": "\U0001F1FA\U0001F1F8", ":flag_for_Uruguay:": "\U0001F1FA\U0001F1FE", ":flag_for_Uzbekistan:": "\U0001F1FA\U0001F1FF", ":flag_for_Vanuatu:": "\U0001F1FB\U0001F1FA", ":flag_for_Vatican_City:": "\U0001F1FB\U0001F1E6", ":flag_for_Venezuela:": "\U0001F1FB\U0001F1EA", ":flag_for_Vietnam:": "\U0001F1FB\U0001F1F3", ":flag_for_Wallis_&_Futuna:": "\U0001F1FC\U0001F1EB", ":flag_for_Western_Sahara:": "\U0001F1EA\U0001F1ED", ":flag_for_Yemen:": "\U0001F1FE\U0001F1EA", ":flag_for_Zambia:": "\U0001F1FF\U0001F1F2", ":flag_for_Zimbabwe:": "\U0001F1FF\U0001F1FC", ":flag_for_Åland_Islands:": "\U0001F1E6\U0001F1FD", ":golf:": "\U000026F3", ":fleur__de__lis:": "\U0000269C", ":muscle:": "\U0001F4AA", ":floppy_disk:": "\U0001F4BE", ":flower_playing_cards:": "\U0001F3B4", ":flushed:": "\U0001F633", ":fog:": "\U0001F32B", ":foggy:": "\U0001F301", ":footprints:": "\U0001F463", ":fork_and_knife:": "\U0001F374", ":fork_and_knife_with_plate:": "\U0001F37D", ":fountain:": "\U000026F2", ":four_leaf_clover:": "\U0001F340", ":frame_with_picture:": "\U0001F5BC", ":fries:": "\U0001F35F", ":fried_shrimp:": "\U0001F364", ":frog:": "\U0001F438", ":hatched_chick:": "\U0001F425", ":frowning:": "\U0001F626", ":fuelpump:": "\U000026FD", ":full_moon:": "\U0001F315", ":full_moon_with_face:": "\U0001F31D", ":funeral_urn:": "\U000026B1", ":game_die:": "\U0001F3B2", ":gear:": "\U00002699", ":gem:": "\U0001F48E", ":gemini:": "\U0000264A", ":ghost:": "\U0001F47B", ":girl:": "\U0001F467", ":globe_with_meridians:": "\U0001F310", ":star2:": "\U0001F31F", ":goat:": "\U0001F410", ":golfer:": "\U0001F3CC", ":mortar_board:": "\U0001F393", ":grapes:": "\U0001F347", ":green_apple:": "\U0001F34F", ":green_book:": "\U0001F4D7", ":green_heart:": "\U0001F49A", ":grimacing:": "\U0001F62C", ":smile_cat:": "\U0001F638", ":grinning:": "\U0001F600", ":grin:": "\U0001F601", ":heartpulse:": "\U0001F497", ":guardsman:": "\U0001F482", ":guitar:": "\U0001F3B8", ":haircut:": "\U0001F487", ":hamburger:": "\U0001F354", ":hammer:": "\U0001F528", ":hammer_and_pick:": "\U00002692", ":hammer_and_wrench:": "\U0001F6E0", ":hamster:": "\U0001F439", ":handbag:": "\U0001F45C", ":raising_hand:": "\U0001F64B", ":hatching_chick:": "\U0001F423", ":headphones:": "\U0001F3A7", ":hear_no_evil:": "\U0001F649", ":heart_decoration:": "\U0001F49F", ":cupid:": "\U0001F498", ":gift_heart:": "\U0001F49D", ":heart:": "\U00002764", ":heavy_check_mark:": "\U00002714", ":heavy_division_sign:": "\U00002797", ":heavy_dollar_sign:": "\U0001F4B2", ":exclamation:": "\U00002757", ":heavy_exclamation_mark:": "\U00002757", ":heavy_heart_exclamation_mark_ornament:": "\U00002763", ":o:": "\U00002B55", ":heavy_minus_sign:": "\U00002796", ":heavy_multiplication_x:": "\U00002716", ":heavy_plus_sign:": "\U00002795", ":helicopter:": "\U0001F681", ":helm_symbol:": "\U00002388", ":helmet_with_white_cross:": "\U000026D1", ":herb:": "\U0001F33F", ":hibiscus:": "\U0001F33A", ":high_heel:": "\U0001F460", ":bullettrain_side:": "\U0001F684", ":bullettrain_front:": "\U0001F685", ":high_brightness:": "\U0001F506", ":zap:": "\U000026A1", ":hocho:": "\U0001F52A", ":knife:": "\U0001F52A", ":hole:": "\U0001F573", ":honey_pot:": "\U0001F36F", ":bee:": "\U0001F41D", ":traffic_light:": "\U0001F6A5", ":racehorse:": "\U0001F40E", ":horse:": "\U0001F434", ":horse_racing:": "\U0001F3C7", ":hospital:": "\U0001F3E5", ":coffee:": "\U00002615", ":hot_dog:": "\U0001F32D", ":hot_pepper:": "\U0001F336", ":hotsprings:": "\U00002668", ":hotel:": "\U0001F3E8", ":hourglass:": "\U0000231B", ":hourglass_flowing_sand:": "\U000023F3", ":house:": "\U0001F3E0", ":house_buildings:": "\U0001F3D8", ":house_with_garden:": "\U0001F3E1", ":hugging_face:": "\U0001F917", ":100:": "\U0001F4AF", ":hushed:": "\U0001F62F", ":ice_cream:": "\U0001F368", ":ice_hockey_stick_and_puck:": "\U0001F3D2", ":ice_skate:": "\U000026F8", ":imp:": "\U0001F47F", ":inbox_tray:": "\U0001F4E5", ":incoming_envelope:": "\U0001F4E8", ":information_desk_person:": "\U0001F481", ":information_source:": "\U00002139", ":capital_abcd:": "\U0001F520", ":abc:": "\U0001F524", ":abcd:": "\U0001F521", ":1234:": "\U0001F522", ":symbols:": "\U0001F523", ":izakaya_lantern:": "\U0001F3EE", ":lantern:": "\U0001F3EE", ":jack_o_lantern:": "\U0001F383", ":japanese_castle:": "\U0001F3EF", ":dolls:": "\U0001F38E", ":japanese_goblin:": "\U0001F47A", ":japanese_ogre:": "\U0001F479", ":post_office:": "\U0001F3E3", ":beginner:": "\U0001F530", ":jeans:": "\U0001F456", ":joystick:": "\U0001F579", ":kaaba:": "\U0001F54B", ":key:": "\U0001F511", ":keyboard:": "\U00002328", ":keycap_asterisk:": "\U0000002A\U000020E3", ":keycap_digit_eight:": "\U00000038\U000020E3", ":keycap_digit_five:": "\U00000035\U000020E3", ":keycap_digit_four:": "\U00000034\U000020E3", ":keycap_digit_nine:": "\U00000039\U000020E3", ":keycap_digit_one:": "\U00000031\U000020E3", ":keycap_digit_seven:": "\U00000037\U000020E3", ":keycap_digit_six:": "\U00000036\U000020E3", ":keycap_digit_three:": "\U00000033\U000020E3", ":keycap_digit_two:": "\U00000032\U000020E3", ":keycap_digit_zero:": "\U00000030\U000020E3", ":keycap_number_sign:": "\U00000023\U000020E3", ":keycap_ten:": "\U0001F51F", ":kimono:": "\U0001F458", ":couplekiss:": "\U0001F48F", ":kiss:": "\U0001F48B", ":kissing_cat:": "\U0001F63D", ":kissing:": "\U0001F617", ":kissing_closed_eyes:": "\U0001F61A", ":kissing_smiling_eyes:": "\U0001F619", ":koala:": "\U0001F428", ":label:": "\U0001F3F7", ":beetle:": "\U0001F41E", ":large_blue_circle:": "\U0001F535", ":large_blue_diamond:": "\U0001F537", ":large_orange_diamond:": "\U0001F536", ":red_circle:": "\U0001F534", ":last_quarter_moon:": "\U0001F317", ":last_quarter_moon_with_face:": "\U0001F31C", ":latin_cross:": "\U0000271D", ":leaves:": "\U0001F343", ":ledger:": "\U0001F4D2", ":mag:": "\U0001F50D", ":left_luggage:": "\U0001F6C5", ":left_right_arrow:": "\U00002194", ":leftwards_arrow_with_hook:": "\U000021A9", ":arrow_left:": "\U00002B05", ":lemon:": "\U0001F34B", ":leo:": "\U0000264C", ":leopard:": "\U0001F406", ":level_slider:": "\U0001F39A", ":libra:": "\U0000264E", ":light_rail:": "\U0001F688", ":link:": "\U0001F517", ":linked_paperclips:": "\U0001F587", ":lion_face:": "\U0001F981", ":lipstick:": "\U0001F484", ":lock:": "\U0001F512", ":lock_with_ink_pen:": "\U0001F50F", ":lollipop:": "\U0001F36D", ":sob:": "\U0001F62D", ":love_hotel:": "\U0001F3E9", ":love_letter:": "\U0001F48C", ":low_brightness:": "\U0001F505", ":lower_left_ballpoint_pen:": "\U0001F58A", ":lower_left_crayon:": "\U0001F58D", ":lower_left_fountain_pen:": "\U0001F58B", ":lower_left_paintbrush:": "\U0001F58C", ":mahjong:": "\U0001F004", ":man:": "\U0001F468", ":couple:": "\U0001F46B", ":man_in_business_suit_levitating:": "\U0001F574", ":man_with_gua_pi_mao:": "\U0001F472", ":man_with_turban:": "\U0001F473", ":mans_shoe:": "\U0001F45E", ":shoe:": "\U0001F45E", ":mantelpiece_clock:": "\U0001F570", ":maple_leaf:": "\U0001F341", ":meat_on_bone:": "\U0001F356", ":black_circle:": "\U000026AB", ":white_circle:": "\U000026AA", ":melon:": "\U0001F348", ":memo:": "\U0001F4DD", ":pencil:": "\U0001F4DD", ":menorah_with_nine_branches:": "\U0001F54E", ":mens:": "\U0001F6B9", ":metro:": "\U0001F687", ":microphone:": "\U0001F3A4", ":microscope:": "\U0001F52C", ":military_medal:": "\U0001F396", ":milky_way:": "\U0001F30C", ":minibus:": "\U0001F690", ":minidisc:": "\U0001F4BD", ":iphone:": "\U0001F4F1", ":mobile_phone_off:": "\U0001F4F4", ":calling:": "\U0001F4F2", ":money__mouth_face:": "\U0001F911", ":moneybag:": "\U0001F4B0", ":money_with_wings:": "\U0001F4B8", ":monkey:": "\U0001F412", ":monkey_face:": "\U0001F435", ":monorail:": "\U0001F69D", ":rice_scene:": "\U0001F391", ":mosque:": "\U0001F54C", ":motor_boat:": "\U0001F6E5", ":motorway:": "\U0001F6E3", ":mount_fuji:": "\U0001F5FB", ":mountain:": "\U000026F0", ":mountain_bicyclist:": "\U0001F6B5", ":mountain_cableway:": "\U0001F6A0", ":mountain_railway:": "\U0001F69E", ":mouse2:": "\U0001F401", ":mouse:": "\U0001F42D", ":lips:": "\U0001F444", ":movie_camera:": "\U0001F3A5", ":moyai:": "\U0001F5FF", ":notes:": "\U0001F3B6", ":mushroom:": "\U0001F344", ":musical_keyboard:": "\U0001F3B9", ":musical_note:": "\U0001F3B5", ":musical_score:": "\U0001F3BC", ":nail_care:": "\U0001F485", ":name_badge:": "\U0001F4DB", ":national_park:": "\U0001F3DE", ":necktie:": "\U0001F454", ":ab:": "\U0001F18E", ":negative_squared_cross_mark:": "\U0000274E", ":a:": "\U0001F170", ":b:": "\U0001F171", ":o2:": "\U0001F17E", ":parking:": "\U0001F17F", ":nerd_face:": "\U0001F913", ":neutral_face:": "\U0001F610", ":new_moon:": "\U0001F311", ":honeybee:": "\U0001F41D", ":new_moon_with_face:": "\U0001F31A", ":newspaper:": "\U0001F4F0", ":night_with_stars:": "\U0001F303", ":no_bicycles:": "\U0001F6B3", ":no_entry:": "\U000026D4", ":no_entry_sign:": "\U0001F6AB", ":no_mobile_phones:": "\U0001F4F5", ":underage:": "\U0001F51E", ":no_pedestrians:": "\U0001F6B7", ":no_smoking:": "\U0001F6AD", ":non__potable_water:": "\U0001F6B1", ":arrow_upper_right:": "\U00002197", ":arrow_upper_left:": "\U00002196", ":nose:": "\U0001F443", ":notebook:": "\U0001F4D3", ":notebook_with_decorative_cover:": "\U0001F4D4", ":nut_and_bolt:": "\U0001F529", ":octopus:": "\U0001F419", ":oden:": "\U0001F362", ":office:": "\U0001F3E2", ":oil_drum:": "\U0001F6E2", ":ok_hand:": "\U0001F44C", ":old_key:": "\U0001F5DD", ":older_man:": "\U0001F474", ":older_woman:": "\U0001F475", ":om_symbol:": "\U0001F549", ":on:": "\U0001F51B", ":oncoming_automobile:": "\U0001F698", ":oncoming_bus:": "\U0001F68D", ":oncoming_police_car:": "\U0001F694", ":oncoming_taxi:": "\U0001F696", ":book:": "\U0001F4D6", ":open_book:": "\U0001F4D6", ":open_file_folder:": "\U0001F4C2", ":open_hands:": "\U0001F450", ":unlock:": "\U0001F513", ":mailbox_with_no_mail:": "\U0001F4ED", ":mailbox_with_mail:": "\U0001F4EC", ":ophiuchus:": "\U000026CE", ":cd:": "\U0001F4BF", ":orange_book:": "\U0001F4D9", ":orthodox_cross:": "\U00002626", ":outbox_tray:": "\U0001F4E4", ":ox:": "\U0001F402", ":package:": "\U0001F4E6", ":page_facing_up:": "\U0001F4C4", ":page_with_curl:": "\U0001F4C3", ":pager:": "\U0001F4DF", ":palm_tree:": "\U0001F334", ":panda_face:": "\U0001F43C", ":paperclip:": "\U0001F4CE", ":part_alternation_mark:": "\U0000303D", ":tada:": "\U0001F389", ":passenger_ship:": "\U0001F6F3", ":passport_control:": "\U0001F6C2", ":feet:": "\U0001F43E", ":paw_prints:": "\U0001F43E", ":peace_symbol:": "\U0000262E", ":peach:": "\U0001F351", ":pear:": "\U0001F350", ":walking:": "\U0001F6B6", ":pencil2:": "\U0000270F", ":penguin:": "\U0001F427", ":pensive:": "\U0001F614", ":performing_arts:": "\U0001F3AD", ":persevere:": "\U0001F623", ":bow:": "\U0001F647", ":person_frowning:": "\U0001F64D", ":raised_hands:": "\U0001F64C", ":person_with_ball:": "\U000026F9", ":person_with_blond_hair:": "\U0001F471", ":pray:": "\U0001F64F", ":person_with_pouting_face:": "\U0001F64E", ":computer:": "\U0001F4BB", ":pick:": "\U000026CF", ":pig2:": "\U0001F416", ":pig:": "\U0001F437", ":pig_nose:": "\U0001F43D", ":hankey:": "\U0001F4A9", ":poop:": "\U0001F4A9", ":shit:": "\U0001F4A9", ":pill:": "\U0001F48A", ":bamboo:": "\U0001F38D", ":pineapple:": "\U0001F34D", ":pisces:": "\U00002653", ":gun:": "\U0001F52B", ":place_of_worship:": "\U0001F6D0", ":black_joker:": "\U0001F0CF", ":police_car:": "\U0001F693", ":rotating_light:": "\U0001F6A8", ":cop:": "\U0001F46E", ":poodle:": "\U0001F429", ":popcorn:": "\U0001F37F", ":postal_horn:": "\U0001F4EF", ":postbox:": "\U0001F4EE", ":stew:": "\U0001F372", ":potable_water:": "\U0001F6B0", ":pouch:": "\U0001F45D", ":poultry_leg:": "\U0001F357", ":pouting_cat:": "\U0001F63E", ":rage:": "\U0001F621", ":prayer_beads:": "\U0001F4FF", ":princess:": "\U0001F478", ":printer:": "\U0001F5A8", ":loudspeaker:": "\U0001F4E2", ":purple_heart:": "\U0001F49C", ":purse:": "\U0001F45B", ":pushpin:": "\U0001F4CC", ":put_litter_in_its_place:": "\U0001F6AE", ":rabbit2:": "\U0001F407", ":rabbit:": "\U0001F430", ":racing_car:": "\U0001F3CE", ":racing_motorcycle:": "\U0001F3CD", ":radio:": "\U0001F4FB", ":radio_button:": "\U0001F518", ":radioactive_sign:": "\U00002622", ":railway_car:": "\U0001F683", ":railway_track:": "\U0001F6E4", ":rainbow:": "\U0001F308", ":fist:": "\U0000270A", ":hand:": "\U0000270B", ":raised_hand:": "\U0000270B", ":raised_hand_with_fingers_splayed:": "\U0001F590", ":raised_hand_with_part_between_middle_and_ring_fingers:": "\U0001F596", ":ram:": "\U0001F40F", ":rat:": "\U0001F400", ":blue_car:": "\U0001F699", ":apple:": "\U0001F34E", ":registered:": "\U000000AE", ":relieved:": "\U0001F60C", ":reminder_ribbon:": "\U0001F397", ":restroom:": "\U0001F6BB", ":reversed_hand_with_middle_finger_extended:": "\U0001F595", ":revolving_hearts:": "\U0001F49E", ":ribbon:": "\U0001F380", ":rice_ball:": "\U0001F359", ":rice_cracker:": "\U0001F358", ":mag_right:": "\U0001F50E", ":right_anger_bubble:": "\U0001F5EF", ":arrow_right_hook:": "\U000021AA", ":ring:": "\U0001F48D", ":sweet_potato:": "\U0001F360", ":robot_face:": "\U0001F916", ":rocket:": "\U0001F680", ":rolled__up_newspaper:": "\U0001F5DE", ":roller_coaster:": "\U0001F3A2", ":rooster:": "\U0001F413", ":rose:": "\U0001F339", ":rosette:": "\U0001F3F5", ":round_pushpin:": "\U0001F4CD", ":rowboat:": "\U0001F6A3", ":rugby_football:": "\U0001F3C9", ":runner:": "\U0001F3C3", ":running:": "\U0001F3C3", ":running_shirt_with_sash:": "\U0001F3BD", ":sagittarius:": "\U00002650", ":boat:": "\U000026F5", ":sailboat:": "\U000026F5", ":sake:": "\U0001F376", ":satellite:": "\U0001F4E1", ":saxophone:": "\U0001F3B7", ":scales:": "\U00002696", ":school:": "\U0001F3EB", ":school_satchel:": "\U0001F392", ":scorpion:": "\U0001F982", ":scorpius:": "\U0000264F", ":scroll:": "\U0001F4DC", ":seat:": "\U0001F4BA", ":see_no_evil:": "\U0001F648", ":seedling:": "\U0001F331", ":shamrock:": "\U00002618", ":shaved_ice:": "\U0001F367", ":sheep:": "\U0001F411", ":shield:": "\U0001F6E1", ":shinto_shrine:": "\U000026E9", ":ship:": "\U0001F6A2", ":stars:": "\U0001F320", ":shopping_bags:": "\U0001F6CD", ":cake:": "\U0001F370", ":shower:": "\U0001F6BF", ":sign_of_the_horns:": "\U0001F918", ":japan:": "\U0001F5FE", ":six_pointed_star:": "\U0001F52F", ":ski:": "\U0001F3BF", ":skier:": "\U000026F7", ":skull:": "\U0001F480", ":skull_and_crossbones:": "\U00002620", ":sleeping_accommodation:": "\U0001F6CC", ":sleeping:": "\U0001F634", ":zzz:": "\U0001F4A4", ":sleepy:": "\U0001F62A", ":sleuth_or_spy:": "\U0001F575", ":pizza:": "\U0001F355", ":slightly_frowning_face:": "\U0001F641", ":slightly_smiling_face:": "\U0001F642", ":slot_machine:": "\U0001F3B0", ":small_airplane:": "\U0001F6E9", ":small_blue_diamond:": "\U0001F539", ":small_orange_diamond:": "\U0001F538", ":heart_eyes_cat:": "\U0001F63B", ":smiley_cat:": "\U0001F63A", ":innocent:": "\U0001F607", ":heart_eyes:": "\U0001F60D", ":smiling_imp:": "\U0001F608", ":smiley:": "\U0001F603", ":sweat_smile:": "\U0001F605", ":smile:": "\U0001F604", ":laughing:": "\U0001F606", ":satisfied:": "\U0001F606", ":blush:": "\U0001F60A", ":sunglasses:": "\U0001F60E", ":smirk:": "\U0001F60F", ":smoking:": "\U0001F6AC", ":snail:": "\U0001F40C", ":snake:": "\U0001F40D", ":snow_capped_mountain:": "\U0001F3D4", ":snowboarder:": "\U0001F3C2", ":snowflake:": "\U00002744", ":snowman:": "\U00002603", ":soccer:": "\U000026BD", ":icecream:": "\U0001F366", ":soon:": "\U0001F51C", ":arrow_lower_right:": "\U00002198", ":arrow_lower_left:": "\U00002199", ":spaghetti:": "\U0001F35D", ":sparkle:": "\U00002747", ":sparkles:": "\U00002728", ":sparkling_heart:": "\U0001F496", ":speak_no_evil:": "\U0001F64A", ":speaker:": "\U0001F508", ":mute:": "\U0001F507", ":sound:": "\U0001F509", ":loud_sound:": "\U0001F50A", ":speaking_head_in_silhouette:": "\U0001F5E3", ":speech_balloon:": "\U0001F4AC", ":speedboat:": "\U0001F6A4", ":spider:": "\U0001F577", ":spider_web:": "\U0001F578", ":spiral_calendar_pad:": "\U0001F5D3", ":spiral_note_pad:": "\U0001F5D2", ":shell:": "\U0001F41A", ":sweat_drops:": "\U0001F4A6", ":sports_medal:": "\U0001F3C5", ":whale:": "\U0001F433", ":u5272:": "\U0001F239", ":u5408:": "\U0001F234", ":u55b6:": "\U0001F23A", ":u6307:": "\U0001F22F", ":u6708:": "\U0001F237", ":u6709:": "\U0001F236", ":u6e80:": "\U0001F235", ":u7121:": "\U0001F21A", ":u7533:": "\U0001F238", ":u7981:": "\U0001F232", ":u7a7a:": "\U0001F233", ":cl:": "\U0001F191", ":cool:": "\U0001F192", ":free:": "\U0001F193", ":id:": "\U0001F194", ":koko:": "\U0001F201", ":sa:": "\U0001F202", ":new:": "\U0001F195", ":ng:": "\U0001F196", ":ok:": "\U0001F197", ":sos:": "\U0001F198", ":up:": "\U0001F199", ":vs:": "\U0001F19A", ":stadium:": "\U0001F3DF", ":star_and_crescent:": "\U0000262A", ":star_of_david:": "\U00002721", ":station:": "\U0001F689", ":statue_of_liberty:": "\U0001F5FD", ":steam_locomotive:": "\U0001F682", ":ramen:": "\U0001F35C", ":stopwatch:": "\U000023F1", ":straight_ruler:": "\U0001F4CF", ":strawberry:": "\U0001F353", ":studio_microphone:": "\U0001F399", ":partly_sunny:": "\U000026C5", ":sun_with_face:": "\U0001F31E", ":sunflower:": "\U0001F33B", ":sunrise:": "\U0001F305", ":sunrise_over_mountains:": "\U0001F304", ":city_sunrise:": "\U0001F307", ":surfer:": "\U0001F3C4", ":sushi:": "\U0001F363", ":suspension_railway:": "\U0001F69F", ":swimmer:": "\U0001F3CA", ":synagogue:": "\U0001F54D", ":syringe:": "\U0001F489", ":shirt:": "\U0001F455", ":tshirt:": "\U0001F455", ":table_tennis_paddle_and_ball:": "\U0001F3D3", ":taco:": "\U0001F32E", ":tanabata_tree:": "\U0001F38B", ":tangerine:": "\U0001F34A", ":taurus:": "\U00002649", ":taxi:": "\U0001F695", ":tea:": "\U0001F375", ":calendar:": "\U0001F4C6", ":telephone_receiver:": "\U0001F4DE", ":telescope:": "\U0001F52D", ":tv:": "\U0001F4FA", ":tennis:": "\U0001F3BE", ":tent:": "\U000026FA", ":thermometer:": "\U0001F321", ":thinking_face:": "\U0001F914", ":thought_balloon:": "\U0001F4AD", ":three_button_mouse:": "\U0001F5B1", ":+1:": "\U0001F44D", ":thumbsup:": "\U0001F44D", ":__1:": "\U0001F44E", ":-1:": "\U0001F44E", ":thumbsdown:": "\U0001F44E", ":thunder_cloud_and_rain:": "\U000026C8", ":ticket:": "\U0001F3AB", ":tiger2:": "\U0001F405", ":tiger:": "\U0001F42F", ":timer_clock:": "\U000023F2", ":tired_face:": "\U0001F62B", ":toilet:": "\U0001F6BD", ":tokyo_tower:": "\U0001F5FC", ":tomato:": "\U0001F345", ":tongue:": "\U0001F445", ":tophat:": "\U0001F3A9", ":top:": "\U0001F51D", ":trackball:": "\U0001F5B2", ":tractor:": "\U0001F69C", ":tm:": "\U00002122", ":train2:": "\U0001F686", ":tram:": "\U0001F68A", ":train:": "\U0001F68B", ":triangular_flag_on_post:": "\U0001F6A9", ":triangular_ruler:": "\U0001F4D0", ":trident:": "\U0001F531", ":trolleybus:": "\U0001F68E", ":trophy:": "\U0001F3C6", ":tropical_drink:": "\U0001F379", ":tropical_fish:": "\U0001F420", ":trumpet:": "\U0001F3BA", ":tulip:": "\U0001F337", ":turkey:": "\U0001F983", ":turtle:": "\U0001F422", ":twisted_rightwards_arrows:": "\U0001F500", ":two_hearts:": "\U0001F495", ":two_men_holding_hands:": "\U0001F46C", ":two_women_holding_hands:": "\U0001F46D", ":umbrella:": "\U00002602", ":umbrella_on_ground:": "\U000026F1", ":unamused:": "\U0001F612", ":unicorn_face:": "\U0001F984", ":small_red_triangle:": "\U0001F53A", ":arrow_up_small:": "\U0001F53C", ":arrow_up_down:": "\U00002195", ":upside__down_face:": "\U0001F643", ":arrow_up:": "\U00002B06", ":vertical_traffic_light:": "\U0001F6A6", ":vibration_mode:": "\U0001F4F3", ":v:": "\U0000270C", ":video_camera:": "\U0001F4F9", ":video_game:": "\U0001F3AE", ":vhs:": "\U0001F4FC", ":violin:": "\U0001F3BB", ":virgo:": "\U0000264D", ":volcano:": "\U0001F30B", ":volleyball:": "\U0001F3D0", ":waning_crescent_moon:": "\U0001F318", ":waning_gibbous_moon:": "\U0001F316", ":warning:": "\U000026A0", ":wastebasket:": "\U0001F5D1", ":watch:": "\U0000231A", ":water_buffalo:": "\U0001F403", ":wc:": "\U0001F6BE", ":ocean:": "\U0001F30A", ":watermelon:": "\U0001F349", ":waving_black_flag:": "\U0001F3F4", ":wave:": "\U0001F44B", ":waving_white_flag:": "\U0001F3F3", ":wavy_dash:": "\U00003030", ":waxing_crescent_moon:": "\U0001F312", ":moon:": "\U0001F314", ":waxing_gibbous_moon:": "\U0001F314", ":scream_cat:": "\U0001F640", ":weary:": "\U0001F629", ":wedding:": "\U0001F492", ":weight_lifter:": "\U0001F3CB", ":whale2:": "\U0001F40B", ":wheel_of_dharma:": "\U00002638", ":wheelchair:": "\U0000267F", ":point_down:": "\U0001F447", ":grey_exclamation:": "\U00002755", ":white_flower:": "\U0001F4AE", ":white_frowning_face:": "\U00002639", ":white_check_mark:": "\U00002705", ":white_large_square:": "\U00002B1C", ":point_left:": "\U0001F448", ":white_medium_small_square:": "\U000025FD", ":white_medium_square:": "\U000025FB", ":star:": "\U00002B50", ":grey_question:": "\U00002754", ":point_right:": "\U0001F449", ":white_small_square:": "\U000025AB", ":relaxed:": "\U0000263A", ":white_square_button:": "\U0001F533", ":white_sun_behind_cloud:": "\U0001F325", ":white_sun_behind_cloud_with_rain:": "\U0001F326", ":white_sun_with_small_cloud:": "\U0001F324", ":point_up_2:": "\U0001F446", ":point_up:": "\U0000261D", ":wind_blowing_face:": "\U0001F32C", ":wind_chime:": "\U0001F390", ":wine_glass:": "\U0001F377", ":wink:": "\U0001F609", ":wolf:": "\U0001F43A", ":woman:": "\U0001F469", ":dancers:": "\U0001F46F", ":boot:": "\U0001F462", ":womans_clothes:": "\U0001F45A", ":womans_hat:": "\U0001F452", ":sandal:": "\U0001F461", ":womens:": "\U0001F6BA", ":world_map:": "\U0001F5FA", ":worried:": "\U0001F61F", ":gift:": "\U0001F381", ":wrench:": "\U0001F527", ":writing_hand:": "\U0000270D", ":yellow_heart:": "\U0001F49B", ":yin_yang:": "\U0000262F", ":zipper__mouth_face:": "\U0001F910", }, ) UNICODE_EMOJI = {v: k for k, v in EMOJI_UNICODE.items()} UNICODE_EMOJI_ALIAS = {v: k for k, v in EMOJI_ALIAS_UNICODE.items()}
[ "TrustyJAID@gmail.com" ]
TrustyJAID@gmail.com
015fc182f46ff412c276544c402a85ae28b16898
a4f8a2fc8cd4652f632bcbc6c1bf911d29ab31c5
/iterate_dictionary_with_lists.py
d606a8bf27d6e4679add95d23f5d19602b1bef21
[]
no_license
Christopher-Teague/functionsIntermediate1
ed74fde1256d44dfb891b1368e3dde368afb61a5
06973850cad3f832f894cf0e8679f4981cf1ed73
refs/heads/master
2023-08-22T17:21:49.511491
2021-10-26T19:39:54
2021-10-26T19:39:54
421,257,994
1
0
null
null
null
null
UTF-8
Python
false
false
654
py
dojo = { 'locations': ['San Jose', 'Seattle', 'Dallas', 'Chicago', 'Tulsa', 'DC', 'Burbank'], 'instructors': ['Michael', 'Amy', 'Eduardo', 'Josh', 'Graham', 'Patrick', 'Minh', 'Devon'] } def printInfo(some_dict): for key in some_dict: # print(key) # print(some_dict) num_loc = len(some_dict[key]) print(f"{num_loc} {key}") for item in some_dict[key]: print(item) print() printInfo(dojo) # output: # 7 LOCATIONS # San Jose # Seattle # Dallas # Chicago # Tulsa # DC # Burbank # 8 INSTRUCTORS # Michael # Amy # Eduardo # Josh # Graham # Patrick # Minh # Devon #Thanks Christian!
[ "cmteague77@gmail.com" ]
cmteague77@gmail.com
5f980a17d083e1b814864f380dbbf7cc02bd67ab
8f5ec814d0e762eca4c89510d013cf29419fd79a
/Array/MatrixFunc.py
01f8a2edb6c41f367b3ba02c86ca0f4f9f01edfd
[]
no_license
anobhama/Intern-Pie-Infocomm-Pvt-Lmt
c7d468e22db5ed7ecbc3c1f96bca4c70026a0037
f9bcd56aa6a2357ea114409bce5539d5b2167ec2
refs/heads/master
2022-12-14T05:35:55.340536
2020-09-12T12:05:35
2020-09-12T12:05:35
288,008,652
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
# -*- coding: utf-8 -*- """ Created on Tue Aug 11 10:51:09 2020 @author: Anobhama """ #finding everything using matrix function from numpy import * arr1=matrix('1 2 3;4 5 6;7 8 9') print("array",arr1) print("diagnol elements",diagonal(arr1)) print("min ele",arr1.min()) print("max ele",arr1.max())
[ "anobhama99@gmail.com" ]
anobhama99@gmail.com
5667f5fb93ebf01899a2310fcb15b866d6bb6914
edffecbf25549cab777f8942019b554d158069a2
/fake_baw/application.py
38f95d68b863546eaae50ff057bb63c4f3fcb89e
[ "MIT" ]
permissive
ONSdigital/spp-cognito-poc
60ddf152f251fba93b121ee17effcecc75a2f4be
374c493122660457025406699d5f49b205d16798
refs/heads/main
2023-03-21T10:13:18.689398
2021-03-05T10:21:05
2021-03-05T10:21:05
316,459,015
0
1
null
null
null
null
UTF-8
Python
false
false
362
py
import os from flask_script import Manager, Server from app.setup import create_app application = create_app() if __name__ == "__main__": manager = Manager(application) port = int(os.getenv("PORT", 5000)) host = str(os.getenv("HOST", "0.0.0.0")) manager.add_command("runserver", Server(threaded=True, host=host, port=port)) manager.run()
[ "sam.bryant@armakuni.com" ]
sam.bryant@armakuni.com
a25f01e7631858fc478e261b7520b650d6c31d97
bb983b38f9be7b6fd4ab1a651484db37c1aeff39
/0731/test0_rgr.py
95584531d440dd5ebd5f206855b1ab3ac48dc128
[]
no_license
nakanishi-akitaka/python2018_backup
c214df78372cca993d69f8001010ec2f6dcaf1be
45766d3c3777de2a91b3e2cf50c6bfedca8627da
refs/heads/master
2023-02-18T08:04:28.625532
2022-06-07T01:02:53
2022-06-07T01:02:53
201,399,236
5
30
null
2023-02-10T21:06:51
2019-08-09T05:48:22
Jupyter Notebook
UTF-8
Python
false
false
2,126
py
# -*- coding: utf-8 -*- """ Example of Machine Learning - Regression Created on Tue Jul 31 11:43:52 2018 @author: Akitaka """ import numpy as np #import pandas as pd #import matplotlib.pyplot as plt from time import time from sklearn.datasets import make_regression from sklearn.model_selection import train_test_split from sklearn.svm import SVR from sklearn.model_selection import GridSearchCV from sklearn.model_selection import ShuffleSplit, KFold from my_library import print_gscv_score, print_gscv_score2 from my_library import print_score from my_library import yyplot print(__doc__) start = time() X, y = make_regression(n_samples=100, n_features=2, n_informative=2) X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2) mod = SVR() # search range # range_c = 2**np.arange( -5 11, dtype=float) # range_e = 2**np.arange( -10, 1, dtype=float) # range_g = 2**np.arange( -20, 11, dtype=float) # 196.29 seconds range_c = 2**np.arange( -5+10, 11, dtype=float) range_e = 2**np.arange( -10+5, 1, dtype=float) range_g = 2**np.arange( -20+20, 11, dtype=float) print() print('Search range') print('c = ', range_c[0], ' ... ',range_c[len(range_c)-1]) print('e = ', range_e[0], ' ... ',range_e[len(range_e)-1]) print('g = ', range_g[0], ' ... ',range_g[len(range_g)-1]) print() param_grid = [ {'kernel': ['rbf'], 'gamma': range_g,'C': range_c,'epsilon': range_e}, ] cv = ShuffleSplit(n_splits=5, test_size=0.2) cv = KFold(n_splits=5, shuffle=True) gscv = GridSearchCV(mod, param_grid, cv=cv, scoring='neg_mean_absolute_error') gscv.fit(X_train, y_train) #%% print_gscv_score(gscv) print_gscv_score2(gscv, X_train, X_test, y_train, y_test, cv) #%% y_pred = gscv.predict(X_train) print('train data: ',end="") print_score(y_train, y_pred) fig = yyplot(y_train, y_pred) y_pred = gscv.predict(X_test) print('test data: ',end="") print_score(y_test, y_pred) fig = yyplot(y_test, y_pred) print('{:.2f} seconds '.format(time() - start))
[ "noreply@github.com" ]
nakanishi-akitaka.noreply@github.com
929129de37cebc9b012d52c2a50d4e4940a5393f
fb51525f9b79e2f65662999bcdf7849de77755e0
/bulletsshop/migrations/0007_auto_20180925_2243.py
aff5d9c7ec054247920b8078d7711185c6ed7995
[]
no_license
lampyjon/bullets-with-shop
20f2f39c2134c91d410fca44df70821160ebe071
faf8df9fcef31e95d868b00dbb26a6cc7b0edb53
refs/heads/master
2022-12-15T08:11:08.477874
2021-10-24T13:21:46
2021-10-24T13:21:46
149,658,602
0
0
null
2021-09-22T17:52:47
2018-09-20T19:17:48
HTML
UTF-8
Python
false
false
466
py
# Generated by Django 2.1.1 on 2018-09-25 21:43 import autoslug.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bulletsshop', '0006_orderitem_item_postage_required'), ] operations = [ migrations.AlterField( model_name='product', name='slug', field=autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True), ), ]
[ "24703763+lampyjon@users.noreply.github.com" ]
24703763+lampyjon@users.noreply.github.com
8de6ad274aef2eb567e1e97ba4557023952125e3
351c5c9f2447a401f27b33a0a3e848f176a3bd5c
/InteractiveDiagramInPython_Excel/Gant_Python.py
172178599c14b33bc39577c02a5d26f4f4dfd848
[]
no_license
Kupavtsev/Excel_Python
c5e79b8385ce0b8e100d49ff615b60e42fd36333
be4e9c883fff1b81765f3155140baf250f6b45d9
refs/heads/main
2023-02-06T01:12:01.606804
2020-12-22T19:45:35
2020-12-22T19:45:35
323,718,303
0
0
null
null
null
null
UTF-8
Python
false
false
1,002
py
import plotly.express as px import plotly import pandas as pd import xlrd from openpyxl import Workbook import plotly.figure_factory as ff # Read Dataframe from Excel file # df = Workbook('task.xlsx') df = pd.read_excel('task.xlsx') # df = xlrd.open_workbook('task.xlsx') # Assign Columns to variables tasks = df['Task'] start = df['Start'] finish = df['Finish'] complete = df['Complete in %'] print(complete) # Create Gantt Chart fig = px.timeline(df, x_start=start, x_end=finish, y=tasks, color=complete) """ fig = px.timeline(df, x_start=start, x_end=finish, y=tasks, color=complete, title='Task Overview', color_continuous_scale = [(0, "red"), (0.5, "yellow"), (1, "green")]) """ # Update Change Layout - Optional fig.update_yaxes(autorange='reversed') fig.update_layout( title_font_size=42, font_size=18, title_font_family='Arial' ) # Interactive Gyntt fig = ff.create_gantt(df) # Save Graph and export to HTML plotly.offline.plot(fig, filename='Task_Overview_Gantt.html')
[ "olegkupavtsev@gmail.com" ]
olegkupavtsev@gmail.com
6bcfe63b8425b4c57378a584822a4ec90bc1f1a1
45a6fa1b9f0d45876929a473e4e9fb5cebfc5dba
/P0/Task0.py
f29157c750eca6341b247960c4c9903802006c5c
[]
no_license
GaurangX/ads
08af74decacc94c8f6a82bde10c62c77c4ec9a4d
31b72cc06a54d685ff64337d617d1706c1182ff9
refs/heads/master
2020-05-19T16:24:24.840542
2019-05-11T04:22:31
2019-05-11T04:22:31
185,101,533
0
0
null
null
null
null
UTF-8
Python
false
false
803
py
""" Read file into texts and calls. It's ok if you don't understand how to read files. """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 0: What is the first record of texts and what is the last record of calls? Print messages: "First record of texts, <incoming number> texts <answering number> at time <time>" "Last record of calls, <incoming number> calls <answering number> at time <time>, lasting <during> seconds" """ """ The run time complexity of accessing python list is O(1) """ print ("First record of texts, {0} texts {1} at time {2}".format(*texts[0])) print ("Last record of calls, {0} calls {1} at time {2} lasting {3}".format(*calls[-1]))
[ "gaurangupasani@gmail.com" ]
gaurangupasani@gmail.com
2005f7c19c5be2e27dfd388d74e157514403563a
374a5a7ff7db78d3f5742101e258456f8502bf90
/problem3.py
7dcb19ee37c9c86a8e9a04e6042bf1d45f27d3ef
[]
no_license
sujalgera01/Python
0e2ea06a006c503bb366a53b83bd4cfe934fecab
0fcef6b4c9f981ad969dbff22be9bc330e269a24
refs/heads/master
2022-11-29T06:49:26.628651
2020-08-02T16:37:43
2020-08-02T16:37:43
278,897,572
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
# The provided code stub reads two integers, a and b, from STDIN. # Add logic to print two lines. The first line should contain the result of integer division, a // b. The second line should contain the result of float division, a / b. # No rounding or formatting is necessary. a = int(input("Enter first number: ")) b = int(input("Enter second number: ")) c = a//b d = a/b print(c) print(d)
[ "sujalgera01@gmail.com" ]
sujalgera01@gmail.com
bf2e3895d6e0da26bcd46f055e823ff14abfe951
b05325add5b74dfc765c5bfdbac250eec0c611b7
/apps/retake/migrations/0002_quote.py
d28badd3eb786c1ca5cee66b095ae0d32c81b03c
[]
no_license
FlyEaglesFly37/PythonBeltExam
fc9e0de14ff7bebc62043e894e2c9eeae92ace86
e13f3d405e5130d151ae565d9e9cf65e323494ea
refs/heads/master
2020-03-21T14:54:10.203820
2018-06-26T04:18:01
2018-06-26T04:18:01
138,682,054
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2018-06-24 21:44 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('retake', '0001_initial'), ] operations = [ migrations.CreateModel( name='Quote', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('author', models.CharField(max_length=255)), ('quote', models.CharField(max_length=255)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('uploader', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='uploaded_quotes', to='retake.User')), ], ), ]
[ "austinfowler@att.net" ]
austinfowler@att.net
c3e9402076d56db160deeaac397b4d9ffbf10499
bd0db287dd56a35a4c6d1fd85f349e4c2babfe86
/cms/migrations/0057_mark_topics_not_required.py
d3bd941aee344f0bd62110ee328a54f503e8479b
[ "BSD-3-Clause" ]
permissive
mitodl/mitxpro
17a9e0d1271a4d0e48734a8ed2334a15ff515f23
c5d9cda4e1ed87463da74d7956f1e1f9258f365c
refs/heads/master
2023-09-01T02:58:32.997584
2023-08-31T13:27:35
2023-08-31T13:27:35
171,727,968
12
5
BSD-3-Clause
2023-09-13T15:48:48
2019-02-20T18:33:28
Python
UTF-8
Python
false
false
1,006
py
# Generated by Django 3.2.18 on 2023-04-17 11:22 from django.db import migrations import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ("courses", "0031_create_topics_sublevel"), ("cms", "0056_prepopulate_coursepage_topics"), ] operations = [ migrations.AlterField( model_name="coursepage", name="topics", field=modelcluster.fields.ParentalManyToManyField( blank=True, help_text="The topics for this course page.", null=True, to="courses.CourseTopic", ), ), migrations.AlterField( model_name="externalcoursepage", name="topics", field=modelcluster.fields.ParentalManyToManyField( blank=True, help_text="The topics for this course page.", null=True, to="courses.CourseTopic", ), ), ]
[ "noreply@github.com" ]
mitodl.noreply@github.com
cff551c14dca2562caf85b6873a60f73e01d0a0a
7635c890ea7c044b3312740c2633d683bc755625
/init.py
796700f57a3a7e87f2d04c5a7ab189e51d351ebd
[]
no_license
DanielSc4/python-covid
ba1455d68b3d049b5f0559f63bf8fc06fd78b3f2
9d183b23d8cb40a143d5638cf2f0665cfec96675
refs/heads/master
2022-11-27T22:25:12.312887
2020-08-05T10:13:46
2020-08-05T10:13:46
284,332,184
1
0
null
null
null
null
UTF-8
Python
false
false
618
py
import pandas as pd from os import listdir def clean(dataframes): # drop delle righe con valori nulli (controlla dove la sigla della provincia è nulla) for i, df in enumerate(dataframes): dataframes[i] = df.dropna(subset = ["sigla_provincia"]) return dataframes def importa(path = "./data/"): # list of dataframes day by day dataframes = [] files = listdir(path) # ordino i file secondo la data riportata nel nome files.sort() for file in files: if (file.endswith(".csv")): dataframes.append(pd.read_csv(path + file)) # pulisco i dataframes dataframes = clean(dataframes) return dataframes
[ "scalena99@gmail.com" ]
scalena99@gmail.com
4eb39b31b4b1e41238271ace538e5dfa63877b19
5faade7c8d091edb5e96d721ec33a9b240ee6e55
/mmdetection/configs/z_config_1/default_runtime.py
154c354849c6e162a6667a11ec3ecb75f00acbe1
[ "CC-BY-2.0", "Apache-2.0" ]
permissive
seogi98/object-detection-level2-cv-18
34bba5c6a9d49d506277d2ba10d01f3b59af3117
e87c741c4918314e28c461b937c7094d264fce56
refs/heads/main
2023-08-21T03:13:14.702929
2021-10-16T10:13:20
2021-10-16T10:13:20
425,447,040
3
0
null
2021-11-07T08:09:36
2021-11-07T09:09:36
null
UTF-8
Python
false
false
1,191
py
# Train에 영향을 미치지 않기에 default를 가져온다. checkpoint_config = dict(interval=1) # yapf:disable log_config = dict( interval=50, hooks=[ dict(type='TextLoggerHook'), dict( type='WandbLoggerHook', init_kwargs=dict( project='Han_T2260', name='Cascade_rcnn_r50_fpn')), ]) # yapf:enable custom_hooks = [dict(type='NumClassCheckHook')] # evaluation = [dict(interval=1, metric='bbox_mAP_50')] dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)] # checkpoint_config = dict(interval=1) # # yapf:disable # log_config = dict( # interval=200, # hooks=[ # dict(type='TextLoggerHook'), # dict(type='WandbLoggerHook', interval=1000, # init_kwarges=dict( # project = 'Han_T2260', # entity = 'ai_tech_level2-cv-18', # name = 'c' # )) # ]) # # yapf:enable # custom_hooks = [dict(type='NumClassCheckHook')] # dist_params = dict(backend='nccl') # log_level = 'INFO' # load_from = None # resume_from = None # workflow = [('train', 1)]
[ "tmdgns1139@naver.com" ]
tmdgns1139@naver.com
d4e116f6e045b731275053323c5315ae6de49a9e
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/W_w_Mgt_to_Cx_Cy_focus_Z_ok/Sob_k05_s001_EroM_Mae_s001/pyr_Tcrop256_pad60_jit15/pyr_3s/L5/step10_a.py
ee3e41c353bdc4bab627800e5fb8b9fcb21b2f50
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
33,276
py
############################################################################################################################################################################################################# ############################################################################################################################################################################################################# ### 把 kong_model2 加入 sys.path import os code_exe_path = os.path.realpath(__file__) ### 目前執行 step10_b.py 的 path code_exe_path_element = code_exe_path.split("\\") ### 把 path 切分 等等 要找出 kong_model 在第幾層 code_dir = "\\".join(code_exe_path_element[:-1]) kong_layer = code_exe_path_element.index("kong_model2") ### 找出 kong_model2 在第幾層 kong_model2_dir = "\\".join(code_exe_path_element[:kong_layer + 1]) ### 定位出 kong_model2 的 dir import sys ### 把 kong_model2 加入 sys.path sys.path.append(kong_model2_dir) sys.path.append(code_dir) # print(__file__.split("\\")[-1]) # print(" code_exe_path:", code_exe_path) # print(" code_exe_path_element:", code_exe_path_element) # print(" code_dir:", code_dir) # print(" kong_layer:", kong_layer) # print(" kong_model2_dir:", kong_model2_dir) ############################################################################################################################################################################################################# kong_to_py_layer = len(code_exe_path_element) - 1 - kong_layer ### 中間 -1 是為了長度轉index # print(" kong_to_py_layer:", kong_to_py_layer) if (kong_to_py_layer == 0): template_dir = "" elif(kong_to_py_layer == 2): template_dir = code_exe_path_element[kong_layer + 1][0:] ### [7:] 是為了去掉 step1x_, 後來覺得好像改有意義的名字不去掉也行所以 改 0 elif(kong_to_py_layer == 3): template_dir = code_exe_path_element[kong_layer + 1][0:] + "/" + code_exe_path_element[kong_layer + 2][0:] ### [5:] 是為了去掉 mask_ ,前面的 mask_ 是為了python 的 module 不能 數字開頭, 隨便加的這樣子, 後來覺得 自動排的順序也可以接受, 所以 改0 elif(kong_to_py_layer > 3): template_dir = code_exe_path_element[kong_layer + 1][0:] + "/" + code_exe_path_element[kong_layer + 2][0:] + "/" + "/".join(code_exe_path_element[kong_layer + 3: -1]) # print(" template_dir:", template_dir) ### 舉例: template_dir: 7_mask_unet/5_os_book_and_paper_have_dtd_hdr_mix_bg_tv_s04_mae ############################################################################################################################################################################################################# exp_dir = template_dir ############################################################################################################################################################################################################# from step06_a_datas_obj import * from step09_3side_L5 import * from step10_a2_loss_info_obj import * from step10_b2_exp_builder import Exp_builder rm_paths = [path for path in sys.path if code_dir in path] for rm_path in rm_paths: sys.path.remove(rm_path) rm_moduless = [module for module in sys.modules if "step09" in module] for rm_module in rm_moduless: del sys.modules[rm_module] ############################################################################################################################################################################################################# ''' exp_dir 是 決定 result_dir 的 "上一層"資料夾 名字喔! exp_dir要巢狀也沒問題~ 比如:exp_dir = "6_mask_unet/自己命的名字",那 result_dir 就都在: 6_mask_unet/自己命的名字/result_a 6_mask_unet/自己命的名字/result_b 6_mask_unet/自己命的名字/... ''' use_db_obj = type8_blender_kong_doc3d_in_W_and_I_gt_F use_loss_obj = [mae_s001_sobel_k05_s001_EroseM_loss_info_builder.set_loss_target("UNet_Cx").copy(), mae_s001_sobel_k05_s001_EroseM_loss_info_builder.set_loss_target("UNet_Cy").copy()] ### z, y, x 順序是看 step07_b_0b_Multi_UNet 來對應的喔 ############################################################# ### 為了resul_analyze畫空白的圖,建一個empty的 Exp_builder empty = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_1__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_1__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="為了resul_analyze畫空白的圖,建一個empty的 Exp_builder") ############################################################# ch032_1side_1__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_1__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_1__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_2__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_2__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_2__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_2__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_2__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_2__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_2__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_2__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_2__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_4__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_4__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_4__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_4__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_4__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_4__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_4__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_4__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_4__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_4__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_4__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_4__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_4__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_4__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_4__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_4__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_4__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_4__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_4__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_4__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_4__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_4__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_4__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_4__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_4__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_4__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_4__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_4__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_4__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_4__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_4__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_4__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_4__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_4__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_4__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_4__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_6 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_6, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_6.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900) .set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ############################################################# if(__name__ == "__main__"): print("build exps cost time:", time.time() - start_time) if len(sys.argv) < 2: ############################################################################################################ ### 直接按 F5 或打 python step10_b1_exp_obj_load_and_train_and_test.py,後面沒有接東西喔!才不會跑到下面給 step10_b_subprocss.py 用的程式碼~~~ ch032_1side_4__2side_3__3side_2.build().run() # print('no argument') sys.exit() ### 以下是給 step10_b_subprocess.py 用的,相當於cmd打 python step10_b1_exp_obj_load_and_train_and_test.py 某個exp.build().run() eval(sys.argv[1])
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
bba82a1c56963b2fcc381c9a3406bc4ffbf8b6f0
288899418083c0d475b8b0a718da6e1d85e74c79
/database_jdbc.py
a35bb9ce80ae01e2a104cfcf56c6ef9fd8a4b632
[]
no_license
yubozhou93/MARS
2eb08cf29739c5b76f6cadacd750d6be50d74e39
726c75eb0caa01a68cc26041f98cf58be151f3ea
refs/heads/master
2023-07-05T07:06:08.580050
2021-08-31T21:22:45
2021-08-31T21:22:45
400,593,106
0
0
null
null
null
null
UTF-8
Python
false
false
1,673
py
import urllib.request import re import requests from bs4 import BeautifulSoup from distutils.filelist import findall #module pour détecter base de donnés en utilisant le mot-clé 'jdbc' def getPage(url): url+='/search?p={page}&q=jdbc' htmls=[] databases=[] page = urllib.request.urlopen(url) contents = page.read() soup = BeautifulSoup(contents,"html.parser") page=soup.find('em') if page != None : totalPage =int(soup.em['data-total-pages']) for idx in range (totalPage): r = requests.get(url.format(page=idx+1)) html= r.text htmls.append(html) if len(parseSingleHtml(html)) : for val in parseSingleHtml(html): databases.append(val) databases = list(set(databases)) #time.sleep(3) else: r = requests.get(url) html= r.text htmls.append(html) if len(parseSingleHtml(html)) : for val in parseSingleHtml(html): databases.append(val) databases = list(set(databases)) print(databases) return databases def parseSingleHtml(html): datas = [] soup = BeautifulSoup(html,'html.parser') innerHtml = str(soup.find_all('td',class_= 'blob-code blob-code-inner')) dd = re.sub(r'</?\w+[^>]*>','',innerHtml) database = re.findall('[\'"]?([^\'" >]+)', dd) for val in database: if "jdbc:" in val : if '/' in val: datas.append(val.split('/')[-1]) return datas url="https://github.com/microservices-patterns/ftgo-application" #url='https://github.com/Microservice-API-Patterns/LakesideMutual' #url = "https://github.com/FudanSELab/train-ticket" #url ='https://github.com/JoeCao/qbike' databases=getPage(url)
[ "yubo.zhou93@gmail.com" ]
yubo.zhou93@gmail.com
7a201cd7346f35a52075ef423ad361c27af50aac
4c1ea0fa4d98bedbcf0000dd4ee64dc00e337999
/posts/urls.py
b37966563578e79d6fbbde8c394dbaeb41f0bd66
[]
no_license
masayuki1984/django_blog
2d00104588283848a6d0df77c490874fd59a51be
e58330f24a4cc7f4ed15652af399356601d4ec7f
refs/heads/master
2021-01-09T20:11:25.051340
2016-06-18T16:17:52
2016-06-18T16:17:52
60,910,945
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
from django.conf.urls import patterns, include, url urlpatterns = patterns('posts.views', url(r'^detail/(?P<id>.*)/', 'detail', name='detail'), url(r'^entry/$', 'add_entry', name='add_entry'), url(r'^edit/(?P<id>.*)/$', 'edit_entry', name='edit_entry'), url(r'^delete/(?P<id>.*)/$', 'delete_entry', name='delete_entry'), # url(r'^blog/', include('blog.foo.urls')), )
[ "xianx.heartbraker@me.com" ]
xianx.heartbraker@me.com
f79ed03832887639a5f62fdbda4f9f2eb7b8232e
feaa669df082c1dcde9374d149ff33e1799e3701
/Week_2/dictionaries_with_csv.py
da9002572caea44c0eec0c1bafbbb0c8a27cf0ee
[]
no_license
Chaitanyasuma/coursework_1
1a3c295ed517e3f0b49cc538ff9e46f33fe6df09
3c30c5ad12d52e9a08c785031b5dbc2a1de12f48
refs/heads/master
2022-12-21T07:37:38.941617
2020-09-24T18:43:02
2020-09-24T18:43:02
294,127,212
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
with open('filename') as sw: reader = csv.DictReader(sw) for row in reader: print(("{} has {} users").format(row["name"], row["users"])) # access columns like you access key values in a dictionary # to write with open('filename', 'w') as dept: writer = csv.DictWriter(filename, fieldnames = keys) writer.writeheader() # will create the first line of the CSV based on keys that we passed writer.writerows(dict_name) # will turn the list of dictionaries into lines in that file
[ "chaitanyasuma@gmail.com" ]
chaitanyasuma@gmail.com
f1c567a79f5a8f11cb1b89f6df66c4ec7d07b356
c672543409250e1173237874354d79e62fec33b0
/_book/code/pycharm/mqtt.py
dc1e685c28a940e532b5779e52ab8c9531efc463
[]
no_license
lemonzlm/esp32lab
e39798b6701fde72ecd4e6ced7a8b380ca67c49b
d3f332b764f01f42dc028d9a31c161d528cd6711
refs/heads/master
2022-05-31T06:50:37.633438
2022-05-19T14:22:41
2022-05-19T14:22:41
184,508,700
2
1
null
2021-06-01T08:58:21
2019-05-02T02:13:21
HTML
UTF-8
Python
false
false
1,221
py
from umqtt.simple import MQTTClient from machine import Pin import machine import micropython #选择GPIO2引脚 pin2 = Pin(2, Pin.OUT, value=0) # MQTT服务器地址域名为:183.230.40.39,也可以填写Onenet永久域名,mqtt.heclouds.com SERVER = "183.230.40.39" #设备ID CLIENT_ID = "527521926" #随便起个名字 TOPIC = b'esp32_mqtt_basic_control' #产品ID username='244754' #设备鉴权信息,或者设备的关联APIKey,此处采用设备鉴权信息,有兴趣的同学可以先创建APIKEY,再将之与该设备关联。 password='3C71BFC80054' state = 0 def sub_cb(topic, msg): global state print((topic, msg)) if msg == b"on": pin2.value(1) state = 1 print("1") elif msg == b"off": pin2.value(0) state = 0 print("0") elif msg == b"toggle": state = 1 - state pin2.value(state) def main(server=SERVER): #端口号为:6002 c = MQTTClient(CLIENT_ID, server,6002,username,password) c.set_callback(sub_cb) c.connect() c.subscribe(TOPIC) print("Connected to %s, subscribed to %s topic" % (server, TOPIC)) try: while 1: c.wait_msg() finally: c.disconnect()
[ "zlm.gd.cn@gmail.com" ]
zlm.gd.cn@gmail.com
9dd79f294de473620139c7085c1b7b5b5b76014d
9182c8b6a9ae5375258c848a66a8ffcf199ed0ba
/ex77.py
3f07b52b38dd62f2c319de05a778e123932f03fe
[]
no_license
LuisTavaresJr/cursoemvideo
d591b65ce3120e28ec61e0bcb5aab376eac80e63
ad247d50aaade8365aea32e98fb9fa8f77b1ab09
refs/heads/master
2021-05-20T09:35:06.616722
2020-04-01T16:26:54
2020-04-01T16:26:54
252,227,793
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
palavras = 'Aprender', 'Estudar', 'Programar', 'Python', 'Computador', 'Curso', 'Futuro' for i in palavras: print(f'\nNa palavra {i.upper()} temos as vogais: ', end='') for letra in i: if letra.lower() in 'aeiou': print(f'{letra}', end=' ')
[ "ltsj13@gmail.com" ]
ltsj13@gmail.com
48ec061023873dbfe2f39336a0a93f64c4dab278
5f5f03b1e62819f56951db2b4a1e38e08272e189
/rango/forms.py
9590ab79ab33567057515f775727b36b7a5b8eac
[]
no_license
justlewis334/tango_with_django_project
24202f43091089cd9645eeabc8a85b750be8adbf
0d9af5aea45e100ff5edf669cc84b4a90f6f7e60
refs/heads/main
2023-02-27T03:51:01.055928
2021-02-06T17:14:55
2021-02-06T17:14:55
329,876,229
0
0
null
null
null
null
UTF-8
Python
false
false
1,641
py
from django import forms from rango.models import Page, Category from django.contrib.auth.models import User from rango.models import UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=Category.NAME_MAX_LENGTH, help_text="Please enter category name.") views = forms.IntegerField(widget=forms.HiddenInput(), initial=0) likes = forms.IntegerField(widget=forms.HiddenInput(), initial=0) slug = forms.CharField(widget=forms.HiddenInput(), required=False) # An inline class to provide additional information on the form. class Meta: # Provide an association between the ModelForm and a model model = Category fields = ('name',) class PageForm(forms.ModelForm): title = forms.CharField(max_length=Page.TITLE_MAX_LENGTH, help_text="Please enter the title of the page.") url = forms.URLField(max_length=200, help_text="Please enter the URL of the page.") views = forms.IntegerField(widget=forms.HiddenInput(), initial=0) class Meta: model = Page exclude = 'category', def clean(self): cleaned_data = self.cleaned_data url = cleaned_data.get('url') if url and not url.startswith('http://'): url = f'http://{url}' cleaned_data['url'] = url return cleaned_data class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()) class Meta: model = User fields = ('username', 'email', 'password',) class UserProfileForm(forms.ModelForm): class Meta: model = UserProfile fields = ('website', 'picture',)
[ "2472305H@student.gla.ac.uk" ]
2472305H@student.gla.ac.uk
1e73d2a55a763a8d5cd0905d995818ba812c9c89
61a3fd9a45a15e80106096be041b6551f047b9bb
/t2u.py
d42299712ce54e3c876234e1ecefb2efdb43f9bc
[]
no_license
jacksonpan/t2u.me_alfred_workflows
6c381fb9340f8145680d5d871737b9fc5eee33c0
5ef1fdd16a778df341f5f8bfdd3f9155cc93323b
refs/heads/master
2016-09-15T16:30:08.099303
2014-02-26T14:17:46
2014-02-26T14:17:46
17,211,140
2
0
null
null
null
null
UTF-8
Python
false
false
2,039
py
# -*- coding: utf-8 -*- #!/usr/bin/env python ############################ # # 推你 For Alfredworkflow # # __author__ = 'jack' ############################ __author__ = 'jack' import os import urllib,urllib2 from Feedback import Feedback import time import json import base64 import sys #中文乱码 reload(sys) sys.setdefaultencoding( "utf-8" ) url = "http://t2u.me/t3/api/open/openTransfer" appID = "c816f347bd024aa9292781449d1e5fe6" accessToken = "ac4b1deaf05b2f2a3a51ab14cee218b6" def log_out(content): fname = './debug.txt' try: fobj = open(fname, 'a') except IOError, e: print "file open error", e else: txts = [] txts.append(content) fobj.writelines(['%s%s' % (x, os.linesep) for x in txts]) fobj.close() def post(data): if data is None: return data = urllib.urlencode(data) request = urllib2.Request(url, data) response = urllib2.urlopen(request) return response.read() def getCurrentTime(): return time.strftime('%Y%m%d%H%M%S',time.localtime(time.time())) def process(alfred_data): #log_out(json.dumps(alfred_data)) tNumberOrName = alfred_data['id'] transferPasswd = alfred_data['passwd'] tContent = alfred_data['content'] time = getCurrentTime() lang = "en" source = "2001" params = {"appID":appID, "accessToken":accessToken, "tNumberOrName":tNumberOrName, "transferPasswd":transferPasswd, "tContent":tContent} jparams = json.dumps(params) ret = base64.encodestring(jparams) sign = None data = {"time":time, "lang":lang, "source":source, "param":ret, "sign":sign} resp = post(data) result = json.loads(resp) code = result['code'] if code == '101': value = result['value'] msg = value['msg'] failedTransferList = value['failedTransferList'] rt = msg if len(failedTransferList) > 0: rt += u": " rt += ";".join(failedTransferList) return rt else: return result['message']
[ "ac861219@gmail.com" ]
ac861219@gmail.com
75ead60db9b7143f0a933fd20babeeca554cf1f4
2afcc518f89fde95c66650f02a3b3daa43771b3c
/six2.py
040a4f622c85a1819287894e6d6320e24cfa67d8
[]
no_license
em55/Python-exercises
2ff6519e18d35f5a20c5cc2b1d3c5ef65afaa8fb
e8461d39a86008ec9724fe6dd6c585acc654398c
refs/heads/master
2021-01-01T05:24:59.042011
2016-06-02T06:52:57
2016-06-02T06:52:57
59,732,758
1
0
null
2016-05-30T07:16:17
2016-05-26T08:18:19
Python
UTF-8
Python
false
false
290
py
import math def hypo(a,b): c = math.sqrt(a**2+b**2) return c side_a = int(raw_input("Enter the length of side a of the triangle: ")) side_b = int(raw_input("Enter the length of side b of the triangle: ")) print "The hypotenuse of the right triangle is of length:", hypo(side_a, side_b)
[ "blue.emailid@gmail.com" ]
blue.emailid@gmail.com
8f83aa760ca03d29443afe0b103fa74368d9ca10
07a4289acd2d2b309ca203d6ab32a3c835ec7085
/yabgp/message/attribute/linkstate/__init__.py
7e59a06abbbdb1d6893de584b59bddd9e9557238
[ "Apache-2.0" ]
permissive
claranet/yabgp
501453591d624c053759e9175d66930f58958ea4
c8f0c381579e8cdffc21efd090bc45d8df64d78b
refs/heads/master
2021-09-06T02:03:06.824401
2018-02-01T14:18:04
2018-02-01T14:18:04
115,940,969
0
1
Apache-2.0
2018-01-02T14:42:18
2018-01-01T19:14:39
Python
UTF-8
Python
false
false
1,375
py
# Copyright 2015-2017 Cisco Systems, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from .linkstate import LinkState # noqa from .node.local_router_id import LocalRouterID # noqa from .node.name import NodeName # noqa from .node.isisarea import ISISArea # noqa from .link.admingroup import AdminGroup # noqa from .link.remote_router_id import RemoteRouterID # noqa from .link.max_bw import MaxBandwidth # noqa from .link.max_rsv_bw import MaxResvBandwidth # noqa from .link.unsrv_bw import UnrsvBandwidth # noqa from .link.te_metric import TeMetric # noqa from .link.link_name import LinkName # noqa from .link.igp_metric import IGPMetric # noqa from .link.adj_seg_id import AdjSegID # noqa from .prefix.prefix_metric import PrefixMetric # noqa from .prefix.prefix_sid import PrefixSID # noqa
[ "xiaoquwl@gmail.com" ]
xiaoquwl@gmail.com
40398a4b4bf8a8942d561acfff934c9340c57565
eb076a312194cb3ec711e74e2c71f9a6328fcf1f
/Python/SHT30.py
fe360c9c1704c1b8f7b42dc8da0fb1a2fca2ff6b
[]
no_license
ControlEverythingCommunity/SHT30
425c6978c0d38f0a485e35dd73dd3417617c5e4b
63d3878cf2d27585b009eceb21d2a73dd33f9f0f
refs/heads/master
2020-12-24T07:26:09.365694
2016-10-27T10:52:47
2016-10-27T10:52:47
56,596,919
41
13
null
null
null
null
UTF-8
Python
false
false
1,132
py
# Distributed with a free-will license. # Use it any way you want, profit or free, provided it fits in the licenses of its associated works. # SHT30 # This code is designed to work with the SHT30_I2CS I2C Mini Module available from ControlEverything.com. # https://www.controleverything.com/content/Humidity?sku=SHT30_I2CS#tabs-0-product_tabset-2 import smbus import time # Get I2C bus bus = smbus.SMBus(1) # SHT30 address, 0x44(68) # Send measurement command, 0x2C(44) # 0x06(06) High repeatability measurement bus.write_i2c_block_data(0x44, 0x2C, [0x06]) time.sleep(0.5) # SHT30 address, 0x44(68) # Read data back from 0x00(00), 6 bytes # cTemp MSB, cTemp LSB, cTemp CRC, Humididty MSB, Humidity LSB, Humidity CRC data = bus.read_i2c_block_data(0x44, 0x00, 6) # Convert the data cTemp = ((((data[0] * 256.0) + data[1]) * 175) / 65535.0) - 45 fTemp = cTemp * 1.8 + 32 humidity = 100 * (data[3] * 256 + data[4]) / 65535.0 # Output data to screen print "Relative Humidity : %.2f %%RH" %humidity print "Temperature in Celsius : %.2f C" %cTemp print "Temperature in Fahrenheit : %.2f F" %fTemp
[ "ryker1990@gmail.com" ]
ryker1990@gmail.com
5aa91a02bc679617eb41a1889a24aebef0ebf75d
d583d57ebb0bfcd22e3660ca7265076d8eaa587c
/ConsturctorOverloading.py
a20f46de6901b2d7d5ee441251c89451014d10b9
[]
no_license
pravin-asp/Python-Learnings
59bc2ad021d170eac03187023aed3899f0b51525
e26c67b8c5396e88df801f7c826a7830e39f5cd2
refs/heads/master
2023-04-09T23:20:04.922036
2021-04-13T10:08:16
2021-04-13T10:08:16
347,560,715
1
0
null
null
null
null
UTF-8
Python
false
false
162
py
# Constructor Overloading class SuperMarket: def __init__(self, *content): print("Constructor Check") obj1 = SuperMarket(10, 20, 30) obj2 = SuperMarket(30)
[ "pravin.cs17@bitsathy.ac.in" ]
pravin.cs17@bitsathy.ac.in
d9e60274da1f050a325f045edd122466a46e59d3
94cb47388252a2f0d842175be281787b4b71ec8a
/day_4_tasks/module.py
2607fa03fd3c7fb4c5afd4fcb9584fcb28d5af7c
[]
no_license
sy07/PyDjango
2fc0f5ba25c56a39b6670d5a2192f1fd3335ba6d
e8431c74e80e785a2c07661e420966ab42d2bc70
refs/heads/main
2023-05-31T03:43:11.863622
2021-06-22T10:29:11
2021-06-22T10:29:11
371,368,140
0
1
null
2021-06-22T10:29:12
2021-05-27T12:37:48
Python
UTF-8
Python
false
false
52
py
import function_sum as sf s = sf.sum(3,4) print(s)
[ "soniyash0007@gmail.com" ]
soniyash0007@gmail.com
d019585be951583475c30b8b6576a5725093d7d6
4852a886951a6870a444c47931f7c75b8d224511
/5_exept.py
45b253cb83ab0c8ac215dbbadc936d659a823f0e
[]
no_license
Nesh911/LearnPython2
da22f6837bdf26d84472de290b69f1a03b803182
b40cbe8b45f9fb398bb441ad4549b5ca75fb294c
refs/heads/master
2021-04-27T00:40:43.547506
2018-02-23T18:32:52
2018-02-23T18:32:52
122,657,922
0
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
# Пример с перехватом ошибки def get_answer(): answer = {"привет": "И тебе привет!", "как дела": "Лучше всех", "пока": "Увидимся"} question = (input("Скажы что нибуть: ")).lower() try: assert question in answer print(answer[question]) except AssertionError: print("Чтото пошло не так...") # Попробовал добавить перехвать ctrl-C но не получилось пока... def get_answer2(): while True: answer = {"привет": "И тебе привет!", "как дела": "Лучше всех", "пока": "Увидимся"} question = (input("Скажы что нибуть: ")).lower() try: assert question in answer print(answer[question]) except: pass # except AssertionError: # print("Чтото пошло не так...") get_answer()
[ "v.zagvoskin@rambler.ru" ]
v.zagvoskin@rambler.ru
7a47967f798e8cadb7928f7a2225bf1a82ecb8cc
920bdb18aabc0861335c22bb0254a1681d071a5b
/script_collect_post_links.py
eef8a6a9c7efff8ceffa49f24d5202594cfbee8b
[ "MIT" ]
permissive
nikhilsrajan/instagram-scraper
edc3fab0b918b5aaa6053682065080d5e730453a
b9d86dbfd8aa70bd2dc040d6d7059bb6541a65cc
refs/heads/master
2022-12-26T17:20:00.873131
2020-09-30T07:44:46
2020-09-30T07:44:46
295,559,195
0
0
null
null
null
null
UTF-8
Python
false
false
3,909
py
import config from script_base import ScriptBase import time class ScriptCollectPostlinks(ScriptBase): def __init__(self, target_username, post_links_file, account_info_file, username, password, SCROLL_DOWN_PIXELS=500, MAX_POSTLINK_FAILS=25, PAUSE_AFTER_POSTS_COUNT=1000, PAUSE_FOR_SECS=60*5, USELESS_SCROLLS_LIMIT=100): ScriptBase.__init__(self) self.collected_post_links = [] self.target_username = target_username self.post_links_file = post_links_file self.account_info_file = account_info_file self.username = username self.password = password self.SCROLL_DOWN_PIXELS = SCROLL_DOWN_PIXELS self.MAX_POSTLINK_FAILS = MAX_POSTLINK_FAILS self.PAUSE_AFTER_POSTS_COUNT = PAUSE_AFTER_POSTS_COUNT self.PAUSE_FOR_SECS = PAUSE_FOR_SECS self.USELESS_SCROLLS_LIMIT = USELESS_SCROLLS_LIMIT def run(self): """ logging in is required as scrolling gets halted """ self.perform_login(self.username, self.password) """ go to the account collect and dump header info to config.account_info_file """ self.ii.go_to_account(self.target_username) header_info = self.ii.get_header_info(self.account_info_file) posts_count = header_info['posts'] """ collects all the post links that are available scrolls down new post links appear (lazy-load) repeat -- if step one fails MAX_POSTLINK_FAILS, resize window """ fail_counts = 0 count_to_pause = 0 useless_scrolls_count = 0 while len(self.collected_post_links) < posts_count: """ This while loop was added because there was a situation when ii.get_available_posts_links() threw exception. this happened because requested elements were unavailable. """ print('new-loop-starting') status = False while not status: try: print('try') available_links = self.ii.get_available_posts_links() status = True print('success') except: print('fail') status = False fail_counts += 1 if fail_counts >= self.MAX_POSTLINK_FAILS: print('resizing window') self.ii.resize_window_by_preset() fail_counts = 0 has_collected_new_links = False for link in available_links: if link not in self.collected_post_links: print('dump-link') useless_scrolls_count = 0 has_collected_new_links = True count_to_pause += 1 self.collected_post_links.append(link) with open(config.post_links_file, 'a') as fout: fout.write(f'{link}\n') if not has_collected_new_links: print('useless scroll') useless_scrolls_count += 1 if useless_scrolls_count >= self.USELESS_SCROLLS_LIMIT: print('too many useless scrolls') print('abrupt termination.') break if count_to_pause >= self.PAUSE_AFTER_POSTS_COUNT: print(f'cooling down, {self.PAUSE_FOR_SECS} secs...') time.sleep(self.PAUSE_FOR_SECS) count_to_pause = 0 self.ii.scroll_down(self.SCROLL_DOWN_PIXELS) self.ii.quit()
[ "nikhilsasirajan@gmail.com" ]
nikhilsasirajan@gmail.com
4e367dee3c154af727b9f80aa246c55c8a42fdf5
f21fe1aaf3e7b163cfe207771e8615ad29c5bc9c
/routing.py
b92cd491baace5e43bc43ff2cf571f89c9f76a67
[]
no_license
startryst/network-tools
0b6f03a65d7b8f118c579a02dd1fce2f297326d6
af33b9bc94b7c2e6c4e4599bcd3e83a95914ca5b
refs/heads/master
2021-01-12T02:49:23.424705
2017-01-08T13:32:11
2017-01-08T13:32:11
78,076,025
0
0
null
null
null
null
UTF-8
Python
false
false
2,827
py
#!/usr/bin/env python3 import urllib.request import subprocess def get_ip_list(url): raw_file = urllib.request.urlopen(url).read().decode() raw_list = raw_file.split('\n') ipv4_list = list(filter(lambda x: x[9:13] == 'ipv4', raw_list[:-1])) ipv4_cn_list = list(filter(lambda x: x[6:8] == 'CN', ipv4_list)) ipv4_cn_ip_list = [] for i in ipv4_cn_list: ipv4_cn_ip_list.append(i.split('|')[3] + ',' + i.split('|')[4]) return ipv4_cn_ip_list def add_mask(ip_raw_list): mask_dic = {'256': '/24', '512': '/23', '1024': '/22', '2048': '/21', '4096': '/20', '8192': '/19', '16384': '/18', '32768': '/17', '65536': '/16', '131072': '/15', '262144': '/14', '524288': '/13', '1048576': '/12', '2097152': '/11', '4194304': '/10'} for i,k in enumerate(ip_raw_list): ip_and_mask = k.split(',') ip_raw_list[i] = ip_and_mask[0] + mask_dic[ip_and_mask[1]] return ip_raw_list def add_routing(route_list, gateway): try: count = 0 skipped = 0 for i in route_list: output = subprocess.check_output(['route', 'add', i, gateway], stderr=subprocess.STDOUT) if 'File exists' in output.decode(): skipped += 1 print("SKIPPED: {}".format(i)) pass else: print('add net', i, 'gateway', gateway) count += 1 print('\n' * 2) print("{} routes skipped due to EXIST in your routing table".format(skipped)) print("{} routes have been successful injected".format(count)) except: print("Error") def del_routing(route_list): try: count = 0 skipped = 0 for i in route_list: output = subprocess.check_output(['route', 'delete', i], stderr=subprocess.STDOUT) if 'not in table' in output.decode(): skipped += 1 print("SKIPPED: {}".format(i)) pass else: print('del net', i) count += 1 print('\n' * 2) print("{} routes skipped due to NOT in your routing table".format(skipped)) print("{} routes have been successful deleted".format(count)) except: print("Error") def main(): url = 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' latest_list = add_mask(get_ip_list(url)) print("\n{} routes have been loaded from below url:".format(len(latest_list))) print(url,'\n') gateway = input("Please enter the gateway IP address to be routed to China: ") choice = input("Do you want to add[A] routes or delete[D] them?: ") if choice.lower() == 'a': add_routing(latest_list, gateway) else: del_routing(latest_list) if __name__ == '__main__': main()
[ "9034785@qq.com" ]
9034785@qq.com
6f67dbde856ea13c9a7851efad6f68f13bb29098
89bce6bfe1c90a518ea01caaf63295af4031aea1
/classes/Logger.py
3bd1ff2929a2f26a4fe74c3f6cf863d2af271767
[]
no_license
Dtphelan1/genetic-sim-backend
3314bed26b7c89644a6a75abf085b0afe45f5adf
a624c1aa85d6915852c252007919fed88a808efc
refs/heads/master
2022-07-30T08:39:22.713572
2020-03-05T14:12:31
2020-03-05T14:12:31
243,607,191
1
0
null
2022-06-22T01:18:08
2020-02-27T20:11:08
Python
UTF-8
Python
false
false
461
py
import logging import logging.config # Set up logging # Create logger logger = logging.getLogger() logger.setLevel(logging.DEBUG) # Create handlers stream_handler = logging.StreamHandler() stream_handler.setLevel(logging.ERROR) # Create formatters basic_formatter = logging.Formatter("%(name)s - %(levelname)s - %(message)s") # Add formatters to handlers stream_handler.setFormatter(basic_formatter) # Add formatters to logger logger.addHandler(stream_handler)
[ "dtphelan1@gmail.com" ]
dtphelan1@gmail.com
d7505af7b5b55e6ac8537ce441c881670d85044c
eec0f22e1e69556ca59b43e82cbee20313b4afea
/function/returnmul.py
b131af997a82cf4039f04d08864d5eb6617c8bee
[]
no_license
Abhisek-coder/python-project
b5c5176776afa38983817706a42b007818458b97
daa3a4dadf269e191b3cfb2aecb7248966fd9f3c
refs/heads/master
2023-02-18T08:23:59.633376
2021-01-07T12:56:42
2021-01-07T12:56:42
327,519,689
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
def multiple(a,b): a=a+b b=a*b c=a/b return a,b,c x=multiple(10,20)#if you have multiple return value and you have onlu put one value in actual argument then you have only tuple type data type print(x) x,y,z=multiple(10,20) print(x) print(y) print(z)
[ "chuinaabhisek121@gmail.com" ]
chuinaabhisek121@gmail.com
8410628be7866c04409909eae516535de93461f3
5f9c279b5b9531a7475bdafededcf4e707d8d1a6
/instance/config.py
d3ce1c0456a8c9eb890ff9a8300e870829ca7d09
[]
no_license
itsfunkie/hostel
76c499dd756b6c06351ca8076a854ddcb44d348b
15e11ea0855ff6db9bb876d7a2711e4215089d80
refs/heads/master
2023-08-04T01:39:54.575093
2021-09-16T13:01:22
2021-09-16T13:01:22
407,155,936
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
PASSWORD='1236' SQLALCHEMY_DATABASE_URI='mysql+mysqlconnector://root@localhost/hostelapp' SQLALCHEMY_TRACK_MODIFICATIONS = True SECRET_KEY='Hz_Vq0XyJUJ6rbo'
[ "itsfunkie@outlook.com" ]
itsfunkie@outlook.com
2c7f271ad8efd65d17eae6828ae8476149c79605
33a0d5ec6ca440986f22b010ffb310bf34c4fcac
/testing/planging.py
c151740e65400e657177ec307797d94c211d40cc
[]
no_license
zhaozongzhao/learngit
c3de619f07840839819ffee4bbacb590caba8dbe
a6471e6d63b298882ceed020cc3b56e457ed2ca0
refs/heads/master
2023-07-21T23:04:51.249300
2021-09-17T10:29:54
2021-09-17T10:29:54
100,707,131
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
def find(driver): driver.find_element_by_id('com.dentist.android:id/findBt').click()#进入发现界面 driver.find_element_by_name('舒适种植').click() plan(driver) def plan(driver): driver.find_element_by_name('方案管理').click() driver.find_element_by_id('com.dentist.android:id/titleRightTv').click() def user(driver): driver.get_name(driver,'选择患者').click() driver.get_name(driver,'总校').click() def system(driver): def get_name(driver, name): element = driver.find_element_by_name(name) return element
[ "2206321864@qq.com" ]
2206321864@qq.com
cbf7bb79936fc702b5bff912493232016e12c86a
4d547798e619238c13dc5cf7c82e7f7ff2451c1c
/DjangoSunucu/Proje/SunucuArayuz/asgi.py
30d4ac522ba0388fb2af7d945706d2e63e26aca0
[]
no_license
emogooo/Buyukbas-Android-IOS-Uygulamasinin-Sunucusu
c845224275dcdba712411a009725a90331360e3a
5daf911c597c5fe437cc7fb02720e4d3253f54f3
refs/heads/master
2022-12-08T03:08:43.938063
2020-09-04T12:24:24
2020-09-04T12:24:24
292,840,524
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
""" ASGI config for DatabaseProject project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DatabaseProject.settings') application = get_asgi_application()
[ "58745898+emogooo@users.noreply.github.com" ]
58745898+emogooo@users.noreply.github.com
401de8d4f8cf0c276f83256c0e17f33aa13567d4
f5ca31c134aa1faf1156206352eaa8fe229d903b
/Hello1.py
582aaa69f6083651722507e07108fce74108a9bd
[]
no_license
SonamKul9527/PractiseQues
7b075b18366f7d3d027f3338c5ee1301a179161d
5ef55bfaf72a6262d72ecf55ce07e23826661fe4
refs/heads/master
2021-01-02T22:54:20.923725
2017-08-16T18:45:55
2017-08-16T18:45:55
99,417,345
1
0
null
null
null
null
UTF-8
Python
false
false
36
py
print "Hello World!!!" print "12458"
[ "kulsonam28@gmail.com" ]
kulsonam28@gmail.com
78a3e1c84be5b5274842e2db19d8f33737415fb1
efc1a4b1ef0aa6dacdcdf5b2291df27a7e105c24
/model_train.py
27bcdf959c296385b12eaa86cd69ce0f1754d2d1
[]
no_license
00arpit00/tf-idf-vectorizer
988dfc41a31a7575b1d9d1ec205ebef873098e41
1bcf380c2adb29e7be9eb5d43ff57630b23ec551
refs/heads/master
2021-07-02T18:13:47.538603
2017-09-25T18:36:21
2017-09-25T18:36:21
104,785,462
0
0
null
null
null
null
UTF-8
Python
false
false
2,335
py
#!usr/bin/env python # import sys, json from sklearn.feature_extraction.text import TfidfVectorizer import numpy as np import urllib2 import base64 import WordsAPI from pprint import pprint from random import randrange import random import requests import csv # word_site = "http://svnweb.freebsd.org/csrg/share/dict/words?view=co&content-type=text/plain" count =1 # response = requests.get(word_site) # WORDS = response.content.splitlines() f= open('words.txt','r') WORDS = f.read().split('\n') print(WORDS) # # Load the data that PHP sent us # data = sys.argv[1:] doc1 =" " # Send it to stdout (to PHP) # for k in range(len(t)-1): # if doc1[k]=='.' and doc1[k+1]!=' ': # t[k]='' # doc1 = ''.join(t) def question(k,i): y =[] t = doc1.split('.') for ii in t: if len(ii)<10: pass else: if i.lower() in ii.lower(): ans = i ii = ii.lstrip(' ') ques = ii.lower().split(i) ques = '____'.join(ques) ques = ques.capitalize() return str(k+1),ques,i def OnClick(): global doc1,WORDS,count doc1= entry.get() lectures = doc1.split('\n') # print(lectures) vectorizer = TfidfVectorizer() X = vectorizer.fit_transform(lectures) indices = np.argsort(vectorizer.idf_)[::-1] features = vectorizer.get_feature_names() top_n = 3 top_features = [features[i] for i in indices[:top_n]] # print(top_features) final = [] for k,i in enumerate(top_features): t= [] for data in question(k,i): t.append(str(data)) # print(no,ques,str(answer)) options = [] for i in range(3): random_index = randrange(0,len(WORDS)) options.append(WORDS[random_index]) options.append(t[-1]) random.shuffle(options) t.extend(options) # print(t) final.append(t) t=[] with open("output.csv"+str(count), "wb") as f: writer = csv.writer(f) writer.writerows(final) count+=1 from tkinter import * root = Tk() root.geometry('500x130+100+100') root.attributes('-topmost', True) label = Label(root,text='Enter text here') label.pack(fill=BOTH,pady=5) entry = Entry(root,width=50) entry.pack(pady=10) button = Button(root, text="Submit", command=OnClick) button.pack(pady=10) root.mainloop() # url = https://en.wikipedia.org/wiki/ # data = resource.read() # resource.close() # soup = BeautifulSoup(data) # print soup.find('div',id="bodyContent").p
[ "noreply@github.com" ]
00arpit00.noreply@github.com
e36fb8ef2752321199360ace1b31f9703da159f4
fb2ba31068de059c1c67299ea9104435fc08061d
/reviews/migrations/0001_initial.py
9df7fe5aecb96fc3046bf337e47727953875c0fc
[]
no_license
bustabg/phones-shop
5a66d75ab0ec1a71ea63a799a5d817d5e5d51ed5
d2b5b3f7ff35468818a0f26ac54ca0bc73900d69
refs/heads/master
2020-05-18T17:06:32.299822
2019-05-24T19:22:42
2019-05-24T19:22:42
184,545,052
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
# Generated by Django 2.2.1 on 2019-05-05 13:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('phones', '0001_initial'), ('accounts', '0002_auto_20190505_1655'), ] operations = [ migrations.CreateModel( name='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField()), ('score', models.PositiveIntegerField()), ('posted_data', models.DateTimeField(auto_now_add=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.ProfileUser')), ('phone', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='phones.Phone')), ], ), ]
[ "jovanotybg@gmail.com" ]
jovanotybg@gmail.com
5c9b46744b62891bd5a9b3e6d2df947126a9390e
b4d9f18d7488d7672a1001b7b4f64ae8120e11f0
/src/tm/migrations/0018_auto_20180415_0353.py
56eea29055552d34be57291af13d552ef53e1206
[]
no_license
AHAPX/loan-approver
24299ad63b79b741d4dfd4956c0fb38d348dd288
c9fec45450366cc0c62802e805850cf48e4122b8
refs/heads/master
2020-04-25T14:33:14.517333
2019-02-27T04:57:24
2019-02-27T04:57:24
172,845,778
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
# Generated by Django 2.0 on 2018-04-15 03:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tm', '0017_auto_20180415_0337'), ] operations = [ migrations.RenameField( model_name='setting', old_name='dti_ratio', new_name='dti_margin', ), migrations.AlterField( model_name='introducer', name='auth_code', field=models.CharField(default='n6L4nmISPcSlvdzvf8Tep5QZ2ETwe2vUWUfZMlu1fuao2dZpOJjiuCO58VECrvut', max_length=64), ), ]
[ "durneviv@gmail.com" ]
durneviv@gmail.com
97409e17d857d0b60dc33339ad9a2fb28f207d74
8a82a83655f118208692e55d7804d9fa480ad4b6
/src/chinahadoop/python/ch03/main.py
9b01834305b81a07e2a774b633acab1162ba72bf
[]
no_license
xenron/sandbox-da-python
0814159da9a91923e4b66c5e40057e381f765e96
ab8f1c0d57fdc6006355f613012b84165068c315
refs/heads/master
2020-04-12T05:41:33.182110
2016-12-14T22:57:33
2016-12-14T22:57:33
60,324,979
5
2
null
null
null
null
UTF-8
Python
false
false
6,224
py
# -*- coding: utf-8 -*- ''' Created on Dec 2, 2016 @author: Bin Liang ''' import zipfile import os import pandas as pd import mpl_toolkits.basemap as bm import matplotlib.pyplot as plt import numpy as np from sqlite_tool import connect_sqlite, close_sqlite from proc_tool import get_age_for_football_players, get_overall_rating,\ get_current_team_and_country def unzip(zip_filepath, dest_path): """ 解压zip文件 """ with zipfile.ZipFile(zip_filepath) as zf: zf.extractall(path = dest_path) def get_dataset_filename(zip_filepath): """ 获取数据库文件名 """ with zipfile.ZipFile(zip_filepath) as zf: return zf.namelist()[0] def run_task1(cur): """ 多表查询获取球员基本数据,保存CSV,并返回该数据 """ # 分析球员的个数,根据分析时间可自行调整 max_players_to_analyze = 50 sql = "SELECT * FROM Player LIMIT %i" %max_players_to_analyze players = cur.execute(sql).fetchall() # 球员姓名列表 player_name_lst = [player['player_name'] for player in players] # 获取生日列表 player_birthday_lst = [player['birthday'] for player in players] # 体重列表 player_weight_lst = [player['weight'] for player in players] # 身高列表 player_height_lst = [player['height'] for player in players] # 获取年龄列表 player_age_lst = map(get_age_for_football_players, player_birthday_lst) # 获取平均评分列表 player_rating_lst = [get_overall_rating(cur, player['player_api_id']) for player in players] # 获取所处球队、国家及曾经所在球队的个数 player_country_info_tup_lst = [get_current_team_and_country(cur, player['player_api_id']) for player in players] team_lst, country_lst, n_teams = zip(*player_country_info_tup_lst) # 构造dataframe保存CSV player_name_se = pd.Series(player_name_lst, name='name') # 球员姓名 player_age_se = pd.Series(player_age_lst, name='age') # 球员年龄 player_weight_se = pd.Series(player_weight_lst, name='weight') # 体重 player_height_se = pd.Series(player_height_lst, name='height') # 身高 player_ave_rating_se = pd.Series(player_rating_lst, name='rating') # 平均评分 player_team_se = pd.Series(team_lst, name='team') # 球队 player_country_se = pd.Series(country_lst, name='country') # 国家 n_teams_se = pd.Series(n_teams, name='#teams') # 所在球队个数 player_df = pd.concat([player_name_se, player_age_se, player_weight_se, player_height_se, player_ave_rating_se, player_team_se, player_country_se, n_teams_se], axis = 1) player_csv_filepath = './player_data.csv' player_df.to_csv(player_csv_filepath, indx = None, encoding='utf-8') return player_df def run_task2(player_df): """ 可视化国家评分 """ countries_rating = player_df.groupby("country")["rating"].mean() countries_rating = countries_rating.reset_index() # 重设索引号 min_rating = countries_rating["rating"].min() # 按国家计算整体评分 countries_coef = map(lambda x: x - min_rating + 5, countries_rating["rating"]) countries_rating["rating"] = countries_coef # 构建字典列表 final_ratings = {item[0]:item[1] for item in countries_rating.values} # 初始化地图信息 countries = {} # [横坐标, 纵坐标, 点大小] countries["England"] = [-0.12, 51.5, 20.0] countries["Belgium"] = [4.34, 50.85, 20.0] countries["France"] = [2.34, 48.86, 20.0] countries["Germany"] = [13.4, 52.52, 20.0] countries["Italy"] = [12.49, 41.89, 20.0] countries["Netherlands"] =[4.89, 52.37, 20.0] countries["Poland"] = [21.01, 52.23, 20.0] countries["Portugal"] = [-9.14, 38.73, 20.0] countries["Scotland"] = [-4.25, 55.86, 20.0] countries["Spain"] = [-3.70, 40.41, 20.0] countries["Switzerland"] = [6.14, 46.2, 20.0] # 根据评分更新点的大小 for i in final_ratings.keys(): countries[i][2] = 3*final_ratings[i] plt.figure(figsize=(12,12)) m = bm.Basemap(projection='cyl', # 地图投影方式 llcrnrlat=35, urcrnrlat=58, llcrnrlon=-10, urcrnrlon=22, # 经纬度范围 resolution='f') m.drawcountries(linewidth=0.2) m.fillcontinents(color='lavender', lake_color='#907099') m.drawmapboundary(linewidth=0.2, fill_color='#000040') m.drawparallels(np.arange(-90,90,30),labels=[0,0,0,0], color='white', linewidth=0.5) m.drawmeridians(np.arange(0,360,30),labels=[0,0,0,0], color='white', linewidth=0.5) # 绘制国家 for i in countries.keys(): m.plot(countries[i][0], countries[i][1], 'bo', markersize = countries[i][2], color='r') # 添加国家名称 for label, xpt, ypt in zip(list(countries.keys()), np.array(list(countries.values()))[:,0],\ np.array(list(countries.values()))[:,1]): plt.text(xpt - 0.85, ypt, label, fontsize = 20, color="black") plt.show() # 保存数据的可视化 plt.savefig('./country_rank.png') def run_main(): """ 主函数 """ # 声明变量 database_path = './database' # 数据库路径 zip_filename = 'soccer.zip' # zip文件名 zip_filepath = os.path.join(database_path, zip_filename) # zip文件路径 database_filename = get_dataset_filename(zip_filepath) # 数据库文件名(在zip中) database_filepath = os.path.join(database_path, database_filename) # 数据库文件路径 print "解压zip...", unzip(zip_filepath, database_path) print "完成." # 连接数据库 conn, cur = connect_sqlite(database_filepath) # 运行task1 player_df = run_task1(cur) # 运行task2 run_task2(player_df) # 分析结束,关闭数据库 close_sqlite(conn) # 删除解压数据,清理空间 if os.path.exists(database_filepath): os.remove(database_filepath) if __name__ == '__main__': run_main()
[ "xenron@hotmail.com" ]
xenron@hotmail.com
e7164957d991685d6a5b3029aa6f62c29002e486
136a1bd501934b74576173d57cd498843560758e
/DjangoVue/lib/python3.7/warnings.py
7eabdbcf5a7e1f7a9669ddb743cd24dcc80d85a0
[]
no_license
Garavirod/Django_Vuejs_Project
cf08eb7c4df12c66db53fe0fd2757dce445b9029
17cf385ea8515a750f2e091760695467a7d434fd
refs/heads/master
2021-05-19T15:11:57.543409
2020-04-23T23:38:58
2020-04-23T23:38:58
251,836,248
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
/home/rodrigo/miniconda3/lib/python3.7/warnings.py
[ "rodrigogarciaavila26@gmail.com" ]
rodrigogarciaavila26@gmail.com
ae3fb68e88dee9e743d4cbee1bccddb0335ec4ca
8b7d34ef61ee9c9ac77825075900769f88cc34d0
/env/lib/python3.7/abc.py
f56353619a9c78d7ab3eacad112964bd6888a14d
[]
no_license
ExperienceNote/major
f580045d05bcc20cd47997e2180e7bc24376a748
13bbf8ec6b7a269e73ec980f8dc677fad62a3677
refs/heads/master
2022-12-02T04:14:06.912399
2019-04-15T17:54:37
2019-04-15T17:54:37
180,234,650
1
1
null
null
null
null
UTF-8
Python
false
false
56
py
/Users/uditmehra/ANACONDA/anaconda3/lib/python3.7/abc.py
[ "udit.mehra@knowlarity.com" ]
udit.mehra@knowlarity.com
db40596b153a188ad89118675c0283dd08452762
b0762ab1675e6d4be0800acc77e0c895fb4edda5
/Lesson3/EasyChat/each_server.py
9e58643e8f1879034d949ca2dd89a7b33a7afddb
[]
no_license
Solda-git/client-server
b9b2ae26194f0303807f2e918ccc2780b8801c43
351c14ac7aaf5785b42a2c3d926c06be4d9bd247
refs/heads/master
2023-01-11T07:38:05.094938
2020-11-04T14:33:07
2020-11-04T14:33:07
305,982,939
0
0
null
2020-11-07T11:56:49
2020-10-21T10:06:06
Python
UTF-8
Python
false
false
2,422
py
import json import sys from distutils import command from socket import SOCK_STREAM, AF_INET, socket from lib.routines import get_message, send_message from lib.settings import MAX_CONNECTIONS, COMMAND, TIMESTAMP, USER, ACCOUNT_NAME, ONLINE, DEFAULT_PORT, \ DEFAULT_IP_ADDRESS, RESPONSE, ERROR def parse_message(message): """ function parses incoming message and processes it. :param message: :return: dict with response code """ if COMMAND in message and message[COMMAND] == ONLINE and TIMESTAMP in message \ and USER in message and ACCOUNT_NAME in message[USER] \ and message[USER][ACCOUNT_NAME] == 'guest': return { RESPONSE: 200 } return { RESPONSE: 400, ERROR: 'Bad request' } def main(): """ main function. Loading params from the command line: -p - port -a - address :return: """ try: if '-p' in sys.argv: server_port = int(sys.argv[sys.argv.index('-p') + 1]) print(server_port); else: server_port = DEFAULT_PORT if server_port <= 1024 and server_port > 65535: raise ValueError except IndexError: print("After '-p' option input port value.") sys.exit(1) except ValueError: print("Port value must be between 1024 and 65536.") sys.exit(1) try: if '-a' in sys.argv: server_address = sys.argv[sys.argv.index('-a') + 1] print(server_address) else: server_address = '' # DEFAULT_IP_ADDRESS # ='' except IndexError: print("After '-a' option input address value to be listened by the server") sys.exit(1) each_socket = socket(AF_INET, SOCK_STREAM) each_socket.bind((server_address, server_port)) each_socket.listen(MAX_CONNECTIONS) while True: each_client_socket, each_client_address = each_socket.accept() try: client_message = get_message(each_client_socket) print(client_message) server_response = parse_message(client_message) send_message(each_client_socket, server_response) each_client_socket.close() except (ValueError, json.JSONDecodeError): print('Incorrect client message received.') each_client_socket.close() if __name__ == '__main__': main()
[ "soldatovsl@mail.ru" ]
soldatovsl@mail.ru
0dcff45355773c11b002973c91cc2b5840108267
646e2bb10417f3e59349cd44dd98009398194904
/3sums.py
0f838eb97ecf7cbde6c7da39252ef1a340049025
[]
no_license
cpumichael/study
a86d79eba463f71e1c0be33d659a83849110cabc
e5bc14ef3815c94a39309594778f25a70fc96895
refs/heads/master
2022-12-05T17:56:33.018594
2020-08-18T12:46:04
2020-08-18T12:46:04
282,488,323
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
''' Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: The solution set must not contain duplicate triplets. Example: Given array nums = [-1, 0, 1, 2, -1, -4], A solution set is: [ [-1, 0, 1], [-1, -1, 2] ] ''' import itertools def sum3(a): ret = set() for i in itertools.combinations(a, 3): if sum(i) == 0: x = sorted(i) ret.add(str(x)) ret = [eval(i) for i in ret] return ret if __name__ == '__main__': print(sum3([-1, 0, 1, 2, -1, -4])) # vim: ai sw=4 ts=4 et showmatch
[ "CPU.Michael@gmail.com" ]
CPU.Michael@gmail.com
2c72f88faaa042948114da464f1a9ca0149c72c4
0eb2db6cb2ad1f3df636d5b449b162d514ad7bb4
/projects_project/urls.py
e18c6293f00ef9da74419fb61167ba5f9114d612
[ "MIT" ]
permissive
hieupc2020/profiles-rest-api
30e088747e94df74be75ae93a11a1a53cd38c4eb
4861eee1bc9a242379786e7d398acd5bb2ac7acd
refs/heads/master
2022-06-15T06:38:34.048067
2020-05-07T16:14:29
2020-05-07T16:14:29
261,703,625
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
"""projects_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('api/', include('profiles_api.urls')) ]
[ "phamchihieu.hcmc@gmail.com" ]
phamchihieu.hcmc@gmail.com
3503a07faf60df0f1b713863c0fc38c26700a556
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/setuptools/setuptools/glob.pyi
3da334debc0364d402111c3b4545876a94142fd8
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
121
pyi
def glob(pathname, recursive: bool = ...): ... def iglob(pathname, recursive: bool = ...): ... def escape(pathname): ...
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
412facc899faa1ffe98c9bdbccc16a909f27bdd8
4ad61c1a7274a476101edff76a993f0fae64926c
/planeLineIntersection.py
32d097027376e803418ff346a95de890d05fa3a8
[]
no_license
ansko/Polygons
973d16e86233579171a0ece7bf8eb570cdeee8b5
3fbebede06586953d3cf104f094a901d2c66b8cf
refs/heads/master
2021-01-15T22:34:36.915924
2017-08-22T14:39:01
2017-08-22T14:39:01
99,901,868
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
def planeLineIntersection(pointOnPlane, normalOrigin, linePoint1, linePoint2): # from english wikipedia # (p - p0) * n = 0 - plane # p = d * l + l0 - line # d = (p0 - l0) * n / (l * n) # l * n = 0 -> (p0 - l0) * n = 0 - they are parallel # -> else line lays in the plane # else there is one intersection point d * l + l0 # # l = linePoint2 - linePoint1 # l0 = linePoint1 # n = facet - diskCenter # p0 = facet p0 = pointOnPlane l0 = linePoint1 l = linePoint2 - linePoint1 n = pointOnPlane - normalOrigin denominator = l.x() * n.x() + l.y() * n.y() + l.z() * n.z() numerator = (p0 - l0).x() * n.x() + (p0 - l0).y() * n.y() + (p0 - l0).z() * n.z() if abs(denominator) < EPSILON and abs(numerator) < EPSILON: return [True, None] elif abs(denominator) < EPSILON and abs(numerator) > EPSILON: return [False, None] elif abs(denominator) > EPSILON: intersectionPoint = l0 + l * numerator / denominator return [True, intersectionPoint] return True
[ "skomorokhov@phystech.edu" ]
skomorokhov@phystech.edu
1a1ca035f7d97cfb06c09b7a64ce3a00f9c4c102
3c88e65e76d8a41fca5bc469eb99117b996711f2
/pgadmin_old/pgadmin4-1.2/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/tests/test_trigger_func_get.py
e99b5e4de727b2d501a8294f36a162e70d1d281a
[ "PostgreSQL" ]
permissive
luvres/alpine
85591b77f0dbc328d89e028c22ef1479be33ffbe
05dc3e77cc8c454143525fed79e38bc38fc390f7
refs/heads/master
2021-01-11T15:48:48.478244
2017-10-31T15:30:32
2017-10-31T15:30:32
79,933,463
1
0
null
null
null
null
UTF-8
Python
false
false
2,767
py
# ################################################################# # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # # ################################################################## import uuid from regression import test_utils as utils from regression import parent_node_dict from pgadmin.utils.route import BaseTestGenerator from pgadmin.browser.server_groups.servers.databases.tests import utils as \ database_utils from pgadmin.browser.server_groups.servers.databases.schemas.tests import \ utils as schema_utils from . import utils as trigger_funcs_utils class TriggerFuncGetTestCase(BaseTestGenerator): """This class will fetch added trigger function under schema node.""" scenarios = [ # Fetching default URL for trigger function node. ('Fetch Trigger Function Node URL', dict(url='/browser/trigger_function/obj/')) ] def setUp(self): self.db_name = parent_node_dict["database"][-1]["db_name"] self.schema_name = parent_node_dict["schema"][-1]["schema_name"] self.schema_id = parent_node_dict["schema"][-1]["schema_id"] func_name = "test_event_get_%s" % str(uuid.uuid4())[1:6] db_user = self.server["username"] self.function_info = trigger_funcs_utils.create_trigger_function( self.server, self.db_name, self.schema_name, func_name) def runTest(self): """ This function will delete trigger function under database node. """ schema_info = parent_node_dict["schema"][-1] server_id = schema_info["server_id"] db_id = schema_info["db_id"] db_con = database_utils.connect_database(self, utils.SERVER_GROUP, server_id, db_id) if not db_con['data']["connected"]: raise Exception("Could not connect to database to add collation.") schema_response = schema_utils.verify_schemas(self.server, self.db_name, self.schema_name) if not schema_response: raise Exception("Could not find the schema to add the collation.") trigger_func_id = self.function_info[0] response = self.tester.get( self.url + str(utils.SERVER_GROUP) + '/' + str(server_id) + '/' + str(db_id) + '/' + str(self.schema_id) + '/' + str(trigger_func_id), content_type='html/json') self.assertEquals(response.status_code, 200) # Disconnect the database database_utils.disconnect_database(self, server_id, db_id) def tearDown(self): pass
[ "luvres@hotmail.com" ]
luvres@hotmail.com
6da9c349117708b256a6d668377fa4df0f2df0f9
09e0a997ecf517ee2053a1c1d6507c996ae13140
/baselines/common/console_util.py
2e73917374e4837b71ce35d72f418ec695f5c27e
[]
no_license
Lydia-Yahuhe/cdr_dqn_tensorflow
6825b51b6ac100dfb67197b3bd36fc383d71b1cc
35d31297fa385564a026fe6a41c1ae32915668e2
refs/heads/main
2023-08-27T15:15:47.343295
2021-11-08T01:46:18
2021-11-08T01:46:18
420,288,648
0
0
null
null
null
null
UTF-8
Python
false
false
2,217
py
from __future__ import print_function from contextlib import contextmanager import numpy as np import time import shlex import subprocess # ================================================================ # Misc # ================================================================ def fmt_row(width, row, header=False): out = " | ".join(fmt_item(x, width) for x in row) if header: out = out + "\n" + "-" * len(out) return out def fmt_item(x, l): if isinstance(x, np.ndarray): assert x.ndim == 0 x = x.item() if isinstance(x, (float, np.float32, np.float64)): v = abs(x) if (v < 1e-4 or v > 1e+4) and v > 0: rep = "%7.2e" % x else: rep = "%7.5f" % x else: rep = str(x) return " " * (l - len(rep)) + rep color2num = dict( gray=30, red=31, green=32, yellow=33, blue=34, magenta=35, cyan=36, white=37, crimson=38 ) def colorize(string, color='green', bold=False, highlight=False): attr = [] num = color2num[color] if highlight: num += 10 attr.append(str(num)) if bold: attr.append('1') return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), string) def print_cmd(cmd, dry=False): if isinstance(cmd, str): # for shell=True pass else: cmd = ' '.join(shlex.quote(arg) for arg in cmd) print(colorize(('CMD: ' if not dry else 'DRY: ') + cmd)) def get_git_commit(cwd=None): return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], cwd=cwd).decode('utf8') def get_git_commit_message(cwd=None): return subprocess.check_output(['git', 'show', '-s', '--format=%B', 'HEAD'], cwd=cwd).decode('utf8') def ccap(cmd, dry=False, env=None, **kwargs): print_cmd(cmd, dry) if not dry: subprocess.check_call(cmd, env=env, **kwargs) MESSAGE_DEPTH = 0 @contextmanager def timed(msg): global MESSAGE_DEPTH # pylint: disable=W0603 print(colorize('\t' * MESSAGE_DEPTH + '=: ' + msg, color='magenta')) tstart = time.time() MESSAGE_DEPTH += 1 yield MESSAGE_DEPTH -= 1 print(colorize('\t' * MESSAGE_DEPTH + "done in %.3f seconds" % (time.time() - tstart), color='magenta'))
[ "zhangkainone@hotmail.com" ]
zhangkainone@hotmail.com
1a45ad7f357e981569ec2e2455305e8d9623e61d
4b1d3c2920abe1c04fff563f031b49ea5a13f03c
/intersection_two_arrays.py
2ab6986bf1fd226b7ac81e4a7167706ee089a12f
[]
no_license
xiang525/my_leetcode
78b6cd1f0ad3657cfad064a545fcaa92d82f6772
c95e789d24ae9044e73acdba01a57c30b19ef9c1
refs/heads/master
2020-12-20T13:35:52.641313
2016-08-03T21:02:21
2016-08-03T21:02:21
55,735,484
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
class Solution(object): def intersection(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ nums1=set(nums1) nums2=set(nums2) return list(nums1&nums2) """ 此题解法很多 """ class Solution(object): def intersection(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ return list(set(nums1) & set(nums2)) """ two pointers """ class Solution(object): def intersection(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ res = [] nums1.sort() nums2.sort() i = j = 0 while (i < len(nums1) and j < len(nums2)): if nums1[i] > nums2[j]: j += 1 elif nums1[i] < nums2[j]: i += 1 else: #这里有多重解法来去重 #if not (len(res) and nums1[i] == res[len(res)-1]): #if not res or (res and nums1[i] not in res): if nums1[i] not in res: res.append(nums1[i]) i += 1 j += 1 return res
[ "xiangzuo2012@gmail.com" ]
xiangzuo2012@gmail.com
560d21d10a43378132a7186df70e1b31b3f76971
a49e79d49819ea290ecce3f0329a7ff24f40e348
/LM_2015_02_3hr.py
f48ee192d3a26871c306cbfc24fccc2a4d24dff7
[]
no_license
sarawebb/prep_lightcurves
aa6fcffbae5b2a913771c13f1244270bbc388b3e
f9693d7c0567540ee730abaeaa502fc9fa63549d
refs/heads/master
2020-05-19T11:08:24.371905
2019-05-05T06:26:48
2019-05-05T06:26:48
184,984,548
0
0
null
null
null
null
UTF-8
Python
false
false
7,012
py
import numpy as np import matplotlib as mpl from astropy.table import Table, Column, join #mpl.use('Agg') import matplotlib.pyplot as plt from astropy import wcs from astropy.wcs import WCS from astropy.io import fits import sys import math import os import glob import sys from sortedcontainers import SortedDict import datetime as dt import imageio import os from PIL import Image from matplotlib.colors import LogNorm from astropy.nddata.utils import Cutout2D from astropy import units as u import datetime as dt import astropy.units as u from astroML.crossmatch import crossmatch_angular from astropy.io import ascii from astropy.coordinates import SkyCoord from astropy.wcs import WCS from astropy.stats import sigma_clipped_stats, sigma_clip from astroquery.vizier import Vizier from astropy.coordinates import Angle import glob import csv import scipy as sp from scipy import stats from scipy.optimize import curve_fit from math import isclose field = '3hr' year = '2015' month = '12' sorted_image_path = '/mnt/dwf/archive_NOAO_data/scripts/create_lc/image_mjd_lists/'+year+'_'+month+'_'+field+'_sorted.ascii' source_lists = '/mnt/dwf/archive_NOAO_data/scripts/create_lc/source_lists/'+ field +'/'+year+'/'+ month+'/' start_path = '/mnt/dwf/archive_NOAO_data/data_outputs/'+ year+'/'+month+'/'+ field+'/g_band/single/' image_names = np.loadtxt(sorted_image_path, unpack = True, skiprows = 1, usecols =[0], dtype = str ) image_mjds = np.loadtxt(sorted_image_path, unpack =True, skiprows= 1, usecols = [1]) sorted_table = Table() sorted_table['filenames'] = image_names sorted_table['mjds'] = image_mjds print(sorted_table) im_path = '/mnt/dwf/archive_NOAO_data/data_outputs/'+ year +'/' + month +'/'+ field +'/g_band/single/*' im_paths = glob.glob(im_path) def func(x, a, b, c): return np.float64(a) * np.exp(np.float64(b) * np.float64(x)) + np.float64(c) def powerlaw(x, a, b, c): return c + x**a * b filenames = [] limiting_mags = [] for row in sorted_table: image_path = str(start_path + row['filenames']) for i in im_paths: #print(i) if i == image_path[:len(image_path)-5]: fuckingwork = os.path.join(i ,'final_source_cats') os.chdir(fuckingwork) for filename in os.listdir('.'): if filename.endswith('cat_CORRECTED.ascii'): print(filename) mags = [] errors = [] filenames.append(filename) cwd = os.getcwd() cat_to_open = os.path.join(cwd, filename) RA, DEC, g_mag_auto, g_mag_auto_err, g_mag_aper, g_mag_aper_error = np.loadtxt( cat_to_open, unpack =True, skiprows = 1) #print(len(RA)) for k, j in zip(g_mag_auto, g_mag_auto_err): if k <= 25: mags.append(k) errors.append(j) #plt.plot(mags, errors, 'r.') xx = mags yy = errors new_binned_x = [] new_binned_y = [] new_min_x = [] new_min_y = [] for i in np.arange(12, 22, 0.1 ): tempx = [] tempy = [] for x, y in zip(xx, yy): if i - 0.1 <= x <= i+0.1: tempx.append(x) tempy.append(y) median_x, blah = sp.stats.mode(tempx) median_y, blah = sp.stats.mode(tempy) if 12 <= median_x <= 22: new_binned_x.append(median_x[0]) new_binned_y.append(median_y[0]) else: pass #plt.plot(xx, yy, 'b.') plt.plot(xx, yy, 'g.') plt.plot(new_binned_x, new_binned_y, 'r*') #print(new_binned_x) #print(new_binned_y) plt.xlabel('g mag') plt.ylabel('g mag error') plt.title(filename) lim_save_path = '/mnt/dwf/archive_NOAO_data/data_outputs/'+year+'/'+month+'/'+field +'/g_band/single/' + filename[:26] + '/limiting_mags/' plot_save_path = '/mnt/dwf/archive_NOAO_data/data_outputs/'+year+'/'+month+'/'+field +'/g_band/single/' + filename[:26] + '/limiting_mags/check_plots/' print(lim_save_path) if not os.path.exists(lim_save_path): os.makedirs(lim_save_path, 0o755) else: pass if not os.path.exists(plot_save_path): os.makedirs(plot_save_path) else: pass #yn = new_binned_y + 0.2*np.random.normal(size=len(new_binned_x)) #popt, pcov = curve_fit(func, new_binned_x, new_binned_y, maxfev=100000) yn = new_binned_y + 0.2*np.random.normal(size=len(new_binned_x)) popt, pcov = curve_fit(powerlaw, new_binned_x, new_binned_y, maxfev=100000) testing = powerlaw(xx, *popt) # exponational #p = np.polyfit(xx, yy, 1) #polynomal #ext_line = func(xx, *popt) #print(len(ext_line)) #print(len(xx)) x = np.array(xx) #sp.stats.expon.fit(new_binned_x, new_binned_y) test = np.sort(testing) test2 = np.sort(xx) plt.plot(test2, powerlaw(test2, *popt), 'b-') plt.ylim(-0.1, 0.4) plt.savefig(plot_save_path + filename + '_magerr_vs_mag_plot.png', overwrite = True) #plt.show() a, b, c = popt #print(a, b, c) limiting = ((0.198 - c)/(b))**(1/(a)) print(limiting) #print(limiting) limiting_mags.append(limiting) ''' counts, bins, bars = plt.hist(mags, bins = 30) x = bins[3:len(bins)-5] y = counts[3:len(counts)-4] xx = bins[:len(bins)-1] yy = counts yn = y + 0.2*np.random.normal(size=len(x)) x = np.array(x) popt, pcov = curve_fit(func, x, yn, maxfev=100000) #plt.plot(x, yn, 'ko', label ='work god darn it') #plt.plot(x, func(x, *popt), 'r-', label = 'WORK MOTHERFUCKER') #plt.legend #plt.yscale('log', nonposy='clip') ext_line = func(bins, *popt) xp = np.linspace(min(bins), max(bins), 100) p = np.poly1d(np.polyfit(xx, yy, 30)) plt.plot( xp, p(xp), '-') plt.ylim(0, max(counts)) plt.show() #plt.plot(bins,ext_line, 'b-') #plt.close() #plt.plot(bins[:len(bins)-1],counts, 'r.') #plt.yscale('log', nonposy='clip') print(max(counts)) for i, j, k in zip(counts[len(counts)-5:], ext_line[len(ext_line)-5:], bins[len(bins)-5:]): diff = [] a = 0.5*j if isclose(a, i, abs_tol=30) == True: print(i, a, k) b = a -i diff.append(b) limiting_mags.append(k) else: pass #else: #print('NOTHING FOUND') #a = 99 #limiting_mags.append(a) print('HERE') #print(limiting_mags) #print(len(limiting_mags)) #print(len(filenames)) ''' #print(filenames) #print(limiting_mags) info_table = Table() info_table['filenames'] = filenames info_table['mags'] = limiting_mags #print(info_table['filenames']) output = '/mnt/dwf/archive_NOAO_data/scripts/create_lc/field_limiting_mags/' + field + '_' + year + '_' + month + '_limitingmags.ascii' info_table.write(output, format = 'ascii', overwrite = True)
[ "swebb@swin.edu.au" ]
swebb@swin.edu.au
9dc7211d46c7d14bbcea31b1eec107d573c38b33
09ef36e5091fe6b28740bbdf7231daccbe8e6f6d
/testSSH/testssh.py
ed6d177fded99729c7ac075a69b73c693356918b
[]
no_license
baiyang0223/python
59fee6762a57630e48e077dca47a6607778d7628
95ff2bdffefe9bba36f17dd492b94ed9889d816c
refs/heads/master
2020-04-02T17:06:16.780375
2020-03-05T06:51:44
2020-03-05T06:51:44
154,643,881
0
0
null
null
null
null
UTF-8
Python
false
false
3,351
py
#!/usr/bin/python3 # -*- encoding: utf-8 -*- ''' @File : testssh.py @Time : 2018/11/24 09:41:16 @Author : BaiYang @Version : 1.0 @Contact : yang01.bai@horizon.ai @License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA @Desc : Test ssh and scp using python ''' import paramiko import os,time,sys,random class x2Ssh(object): def __init__(self,server_address="127.0.0.1",server_port=22,username="baiy",passwd="123456"): self.service_address = server_address self.service_port = server_port self.username = username self.passwd = passwd self.res = None def x2_check_net(self,address): """ test netstat """ ret = os.system("ping -c 1 " + address) return ret def x2_init_ssh(self): """ init ssh """ ret = self.x2_check_net(self.service_address) if ret != 0: print("Network %s unreachable" % (self.service_address)) return -1 try: """创建ssh链接函数""" self.res = paramiko.SSHClient() self.res.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self.res.connect(hostname=self.service_address, username = self.username, password = self.passwd,allow_agent=False,look_for_keys=False, port=self.service_port) except Exception as e: print("ssh %s@%s 链接失败:%s" % (self.username, self.service_address,e)) return -1 else: print("Ssh link is normal ") print(">>>"*8,"test pwd ") stdin,stdout,stderr = self.res.exec_command("pwd") print("test stdout: ", stdout.read().decode("utf-8")) print("test stderr: ", stderr.read().decode("utf-8")) # 测试如何远程执行超级用户命令-可行 print(">>>"*8,"test sudo hwclock -r ") stdin,stdout,stderr = self.res.exec_command("sudo -s hwclock -r",get_pty=True) stdin.write("123456" + '\n') print("test stdout: ", stdout.read().decode("utf-8")) print("test stderr: ", stderr.read().decode("utf-8")) # 测试stderr和stdout是否都可以抓取到 print(">>>"*8,"test ls >> /dev/stderr ") stdin,stdout,stderr = self.res.exec_command("ls >> /dev/stderr",get_pty=True) #stdin.write("123456" + '\n') print("测试标准输出[ls > /dev/stdout]: ", stdout.read().decode("utf-8")) print("测试错误输出[ls > /dev/stderr]: ", stderr.read().decode("utf-8")) #""" # 测试与远程交互 print(">>>"*8,"test read -p ") stdin,stdout,stderr = self.res.exec_command("read -p \"nihao:\" val; echo $val",get_pty=True) stdin.write("buhao"+'\n') print("测试标准输出: ", stdout.read().decode("utf-8")) print("测试错误输出: ", stderr.read().decode("utf-8")) return 0 def x2_exchange(self,cmd): """ exchange cmd and return result """ _,stdout,stderr = self.res.exec_command(cmd) return stdout.read().decode("utf-8") def x2_deinit_ssh(self): self.res.close() def main(): s = x2Ssh() s.x2_init_ssh() s.x2_deinit_ssh() if __name__ == "__main__": main()
[ "yang01.bai@hobot.cc" ]
yang01.bai@hobot.cc
1553c757872d58f9fd374340e5105e405c2a69f7
dbf311d3ff02178ab1d6e6f507210881ca400357
/kirkifier/forms.py
b2881df11c60410b3c97816d6b3f059372d1d7c9
[]
no_license
mihirk/kirkifier
e94f0f6cad61cb33b04e45c663773ed97dcaae0f
0a2e7c0146afb97121cbdfc45a757d05e6dd5983
refs/heads/master
2021-01-19T10:20:15.381532
2013-12-27T18:14:50
2013-12-27T18:14:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
from django import forms class UploadImage(forms.Form): file = forms.ImageField()
[ "mihir.khatwani@gmail.com" ]
mihir.khatwani@gmail.com
31768c05e1f2583abfbaff1e5f33e9731c7b8005
ade9295f2f30c0eb010f7b741f07c90ba8ef1206
/Titanic_survival_analysis/决策树_titanic存活预测数据集.py
ebce8170545b43cb28fc2507d2dee9ab23eb0ff8
[]
no_license
zx000ppze000/Machine-Learning
6b0b9980c23fbdb2868e3bf97059f2e72e27f695
2536c2d47322e111e9d8ff497bcb9fddb65fa55b
refs/heads/master
2020-08-04T01:51:24.407956
2019-09-30T21:26:54
2019-09-30T21:26:54
211,960,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,897
py
# -*- coding: utf-8 -*- """ Created on Sun Sep 22 15:54:16 2019 @author: zhangx """ import pandas as pd from sklearn.model_selection import train_test_split from sklearn.feature_extraction import DictVectorizer from sklearn.tree import DecisionTreeClassifier, export_graphviz def decisiontree(): ''' 决策树对坦坦尼克号生存预测 ''' #获取数据 titan = pd.read_csv("http://biostat.mc.vanderbilt.edu/wiki/pub/Main/DataSets/titanic.txt") #处理数据,找出特征值和目标值 x = titan[['pclass','age','sex']] y = titan['survived'] #缺失值处理 x['age'].fillna(x['age'].mean(), inplace=True) # 数据集分为测试集和测试集 x_train, x_test, y_train, y_test = train_test_split(x,y,test_size = 0.25) #进行处理(特征工程) 特征->类别->one hot 编码 dic_t = DictVectorizer(sparse = False) x_train = dic_t.fit_transform(x_train.to_dict(orient = "records")) #print(dic_t.get_feature_names()) x_test = dic_t.transform(x_test.to_dict(orient = "records")) #print(x_train) #决策树进行预测 dec = DecisionTreeClassifier(max_depth = 8) dec.fit(x_train,y_train) #预测准确率 print("预测准确率:",dec.score(x_test,y_test)) #决策树显示导出 export_graphviz(dec,out_file="./tree.dot",feature_names=['age', 'pclass=1st', 'pclass=2nd', 'pclass=3rd', 'sex=female', 'sex=male']) ''' 显示decision tree需要下载graphviz吧tree.dot转换为png ($dot -Tpng tree.dot -o tree.png) ''' ''' 改进:随机森林或剪枝 ''' return None if __name__ == "__main__": decisiontree() ''' 优点:树可视;企业重要决策,好的分析能力,在决策过程应用较多;需要很少的数据准备,不需要归一化 缺点:不能很好的推广数据的过于复杂的树(overfitting) '''
[ "xzha447@uwo.ca" ]
xzha447@uwo.ca