hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
18ae1db911342493d1fec3b9a1ce6712da889a69
28
py
Python
mitsuba_client/utils/__init__.py
hugoperrin/mitsuba_client
17fb7fa30430f73161f3ec10b1d7f1de3075df90
[ "MIT" ]
null
null
null
mitsuba_client/utils/__init__.py
hugoperrin/mitsuba_client
17fb7fa30430f73161f3ec10b1d7f1de3075df90
[ "MIT" ]
1
2021-04-28T19:19:43.000Z
2021-04-28T19:19:43.000Z
mitsuba_client/utils/__init__.py
hugoperrin/mitsuba_client
17fb7fa30430f73161f3ec10b1d7f1de3075df90
[ "MIT" ]
null
null
null
"""Module for the models"""
14
27
0.642857
4
28
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
28
1
28
28
0.75
0.75
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
18b7b030f65bd26c9bf12d25a787505d98059d20
393
py
Python
modules/colour.py
amanraj-bose/Phunisher_beta
5839c44551d21e0f3756a24b4fb3192c8a7c73a3
[ "Apache-2.0" ]
null
null
null
modules/colour.py
amanraj-bose/Phunisher_beta
5839c44551d21e0f3756a24b4fb3192c8a7c73a3
[ "Apache-2.0" ]
null
null
null
modules/colour.py
amanraj-bose/Phunisher_beta
5839c44551d21e0f3756a24b4fb3192c8a7c73a3
[ "Apache-2.0" ]
null
null
null
class color: black = "\033[30m" red = "\033[31m" green = "\033[32m" yellow = "\033[33m" blue = "\033[34m" magenta = "\033[35m" cyan = "\033[36m" white = "\033[37m" class bright: black_1 = "\033[1;30m" red_1 = "\033[1;31m" green_1 = "\033[1;32m" yellow_1 = "\033[1;33m" blue_1 = "\033[1;34m" magenta_1 = "\033[1;35m" cyan_1 = "\033[1;36m" white_1 = "\033[1;37m"
21.833333
26
0.557252
68
393
3.102941
0.308824
0.151659
0.189573
0
0
0
0
0
0
0
0
0.31068
0.21374
393
18
27
21.833333
0.372168
0
0
0
0
0
0.381963
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
18d969d2a21d9396d63b3f55ccf39967ae781af0
1,255
py
Python
system_info/system_information.py
RyanLuong1/group_8_project
c51904a94f0b1ffb84c36ef35348c7ea7accc62d
[ "MIT" ]
1
2022-03-01T02:44:33.000Z
2022-03-01T02:44:33.000Z
system_info/system_information.py
RyanLuong1/group_8_project
c51904a94f0b1ffb84c36ef35348c7ea7accc62d
[ "MIT" ]
12
2022-03-01T03:18:43.000Z
2022-03-20T17:57:10.000Z
system_info/system_information.py
RyanLuong1/group_8_project
c51904a94f0b1ffb84c36ef35348c7ea7accc62d
[ "MIT" ]
null
null
null
import platform import psutil from psutil._common import bytes2human ## System information # Total Memory installed on the system (in GB) def total_ram(): return round(psutil.virtual_memory().total/1000000000) # Avaliable Memory (in GB with 2 decimal places) def avaliable_ram(): return round(psutil.virtual_memory().available/1000000000, 2) # Memory Untilization (in percentage) def memory_usage(): return psutil.virtual_memory().percent # Memory Temperature #def memory_temperature(): # return psutil.virtual_memory # Storage information # Displays all partitions in system # Fan speed def fan_speed(): if psutil.sensors_fans() > 0: return psutil.sensors_fans() else: return "Not available" ## Networking information # Returns IPv4 (32bit IP Address) def network_IPv4(): return psutil.net_connections(kind='inet4') # Returns IPv6 (64bit IP Address) def network_IPv6(): return psutil.net_connections(kind='inet6') # Returns IPv4 over TCP def network_IPv4_TCP(): return psutil.net_connections(kind='tcp4') # Returns IPv6 over TCP def network_IPv6_TCP(): return psutil.net_connections(kind='tcp6') ## Network Traffic # Number of ingoing packets # Number of outgoing packets
19.920635
65
0.737849
162
1,255
5.580247
0.419753
0.09292
0.084071
0.115044
0.212389
0.146018
0
0
0
0
0
0.038462
0.171315
1,255
62
66
20.241935
0.830769
0.391235
0
0
0
0
0.041779
0
0
0
0
0
0
1
0.363636
true
0
0.136364
0.318182
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
4
18dd033803f08a840e6dce933e266193e53bcf74
466
py
Python
tests/conftest.py
santoshamohan/fc
1b60e4b26f6ca5c17c87e3cc8d66bbdb231a13fe
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
santoshamohan/fc
1b60e4b26f6ca5c17c87e3cc8d66bbdb231a13fe
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
santoshamohan/fc
1b60e4b26f6ca5c17c87e3cc8d66bbdb231a13fe
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, absolute_import import pytest from pathlib import Path ''' py.test configuration plugin This module defines any fixtures or other extensions to py.test to be used throughout the tests in this and sub packages. ''' @pytest.fixture def sr_filepath(request): return str(Path(__file__).parents[0] / 'data' / 'sr.nc') @pytest.fixture def fc_filepath(request): return str(Path(__file__).parents[0] / 'data' / 'fc.nc')
21.181818
89
0.746781
69
466
4.811594
0.637681
0.036145
0.096386
0.144578
0.26506
0.26506
0.26506
0.26506
0.26506
0
0
0.005051
0.150215
466
21
90
22.190476
0.833333
0
0
0.222222
0
0
0.058632
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0.222222
0.777778
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
18dff0f6d8f2344e1d075a5d7bc81f90fcb21c2f
72
py
Python
Modules/mymodule_demo.py
mrgiser/helloworld-python
7af347e125e7189f4ed26c24d25e4c7664072892
[ "Apache-2.0" ]
null
null
null
Modules/mymodule_demo.py
mrgiser/helloworld-python
7af347e125e7189f4ed26c24d25e4c7664072892
[ "Apache-2.0" ]
null
null
null
Modules/mymodule_demo.py
mrgiser/helloworld-python
7af347e125e7189f4ed26c24d25e4c7664072892
[ "Apache-2.0" ]
null
null
null
import mymodule mymodule.say_hi() print('Version', mymodule.__version__)
24
38
0.819444
9
72
6
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.055556
72
3
38
24
0.794118
0
0
0
0
0
0.09589
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
18e8b8d2436b2c81398c118b2ebf228759f36f33
27,376
py
Python
here_location_services/ls.py
haranlopes/here-location-services-python
6d3103712cfd8e3290c204a728212dd2e71b4de6
[ "Apache-2.0" ]
null
null
null
here_location_services/ls.py
haranlopes/here-location-services-python
6d3103712cfd8e3290c204a728212dd2e71b4de6
[ "Apache-2.0" ]
null
null
null
here_location_services/ls.py
haranlopes/here-location-services-python
6d3103712cfd8e3290c204a728212dd2e71b4de6
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019-2021 HERE Europe B.V. # SPDX-License-Identifier: Apache-2.0 """This module contains class to interact with Location services REST APIs.""" import os import urllib import urllib.request from datetime import datetime from typing import List, Optional, Tuple from here_location_services.config.routing_config import PlaceOptions, Scooter, WayPointOptions from .geocoding_search_api import GeocodingSearchApi from .isoline_routing_api import IsolineRoutingApi from .responses import ( BrowseResponse, DiscoverResponse, GeocoderResponse, IsolineResponse, LookupResponse, ReverseGeocoderResponse, RoutingResponse, ) from .routing_api import RoutingApi class LS: """ A single interface for the user to interact with rest of the Location services APIs. """ def __init__( self, api_key: Optional[str] = None, proxies: Optional[dict] = None, country: str = "row", ): api_key = api_key or os.environ.get("LS_API_KEY") self.credentials = dict(api_key=api_key) self.proxies = proxies or urllib.request.getproxies() self.geo_search_api = GeocodingSearchApi( api_key=api_key, proxies=proxies, country=country, ) self.isoline_routing_api = IsolineRoutingApi( api_key=api_key, proxies=proxies, country=country, ) self.routing_api = RoutingApi( api_key=api_key, proxies=proxies, country=country, ) def geocode(self, query: str, limit: int = 20, lang: str = "en-US") -> GeocoderResponse: """Calculate coordinates as result of geocoding for the given ``query``. :param query: A string containing the input query. :param limit: An int representing maximum number of results to be returned. Default value is 20. :param lang: A string to represent language to be used for result rendering from a list of BCP47 compliant Language Codes. :raises ValueError: If ``query`` is empty or having all whitespace characters. :return: :class:`GeocoderResponse` object. """ if not query or query.isspace(): raise ValueError(f"Invalid input query: {query}") resp = self.geo_search_api.get_geocoding(query, limit=limit, lang=lang) return GeocoderResponse.new(resp.json()) def reverse_geocode( self, lat: float, lng: float, limit: int = 1, lang: str = "en-US" ) -> ReverseGeocoderResponse: """ Return the address label string as the result of reverse-geocoding the given ``latitude`` and ``longitude``. :param lat: A float representing latitude of point. :param lng: A float representing longitude of point. :param limit: An int representing maximum number of results to be returned. Default value is 1. :param lang: A string to represent language to be used for result rendering from a list of BCP47 compliant Language Codes. :raises ValueError: If Latitude is not in range between -90 and 90 or Longitude is not in range between -180 and 180. :return: :class:`ReverseGeocoderResponse` object. """ if not -90 <= lat <= 90: raise ValueError("Latitude must be in range -90 to 90.") if not -180 <= lng <= 180: raise ValueError("Longitude must be in range -180 to 180.") resp = self.geo_search_api.get_reverse_geocoding(lat=lat, lng=lng, limit=limit, lang=lang) return ReverseGeocoderResponse.new(resp.json()) def calculate_isoline( self, mode: str, range: str, range_type: str, start: Optional[List[float]] = None, destination: Optional[List[float]] = None, arrival: Optional[str] = None, departure: Optional[str] = None, ) -> IsolineResponse: """Calculate isoline routing. Request a polyline that connects the endpoints of all routes leaving from one defined center with either a specified length or specified travel time. :param mode: A string representing how the route is calculated. Example: ``Type;TransportModes;TrafficMode;Feature``. ``fastest;car;traffic:disabled;motorway:-3`` :param range: A string representing a range of isoline, unit is defined by parameter range type. Example: range='1000' or range='1000,2000,3000' :param range_type: A string representing a type of `range`. Possible values are ``distance``, ``time`` and ``consumption``. For distance the unit meters. For a time the unit is seconds.For consumption, it is defined by the consumption model. :param start: A list of latitude and longitude representing the center of isoline request. Isoline will cover all the roads which can be reached from this point within a given range. It can not be used in combination with the ``destination`` parameter. :param destination: A list of latitude and longitude representing the center of isoline request. Isoline will cover all roads from which this point can be reached within a given range. It can not be used in combination with the ``start`` parameter. :param arrival: A string representing the time when travel is expected to end. It can be used only if the parameter ``destination`` is also used. Example: arrival= '2013-07-04T17:00:00+02'. :param departure: A string representing the time when travel is expected to start. It can be used only if the parameter ``start`` is also used. Example: departure= '2013-07-04T17:00:00+02' :raises ValueError: If ``start`` and ``destination`` are provided togrther. :return: :class:`IsolineResponse` object. """ if start and destination: raise ValueError("`start` and `destination` can not be provided together.") if start is None and destination is None: raise ValueError("please provide either `start` or `destination`.") if departure and start is None: raise ValueError("`departure` must be provided with `start`") if arrival and destination is None: raise ValueError("`arrival` must be provided with `destination`") resp = self.isoline_routing_api.get_isoline_routing( mode=mode, range=range, range_type=range_type, start=start, destination=destination, arrival=arrival, departure=departure, ) response = resp.json()["response"] return IsolineResponse.new(response) def discover( self, query: str, center: Optional[List[float]] = None, radius: Optional[int] = None, country_codes: Optional[List] = None, bounding_box: Optional[List[float]] = None, limit: Optional[int] = None, lang: Optional[str] = None, ) -> DiscoverResponse: """Search places using Location Services discover endpoint. This method uses location services ``discover`` endpoint to search places based on query which is free-form text. There are three different combination of inputs as shown below to search places using discover: - ``center`` and ``country_code`` - ``center`` and ``radius`` - ``bounding_box`` :param query: A string representing free-text query to search places. :param center: A list of latitude and longitude representing the center for search query. :param radius: A radius in meters along with center for searching places. :param country_codes: A list of ISO 3166-1 alpha-3 country codes. :param bounding_box: A bounding box, provided as west longitude, south latitude, east longitude, north latitude. :param limit: An int representing maximum number of results to be returned. :param lang: A string to represent language to be used for result rendering from a list of BCP47 compliant Language Codes. :raises ValueError: If ``center`` and ``bounding_box`` are provided together. :return: :class:`DiscoverResponse` object. """ if center and bounding_box: raise ValueError( f"Params: center:{center} and bounding_box:{bounding_box} " f"can not be provided together." ) resp = self.geo_search_api.get_search_discover( query=query, center=center, radius=radius, country_codes=country_codes, bounding_box=bounding_box, limit=limit, lang=lang, ) return DiscoverResponse.new(resp.json()) def browse( self, center: List, radius: Optional[int] = None, country_codes: Optional[List] = None, bounding_box: Optional[List[float]] = None, categories: Optional[List] = None, limit: Optional[int] = None, name: Optional[str] = None, lang: Optional[str] = None, ) -> BrowseResponse: """Get search results for places based on different filters such as categories or name. :param center: A list of latitude and longitude representing the center for search query. :param radius: A radius in meters along with center for searching places. :param country_codes: A list of ISO 3166-1 alpha-3 country codes. :param bounding_box: A bounding box, provided as west longitude, south latitude, east longitude, north latitude. :param categories: A list strings of category-ids. :param limit: An int representing maximum number of results to be returned. :param name: A string representing Full-text filter on POI names/titles. :param lang: A string to represent language to be used for result rendering from a list of BCP47 compliant Language Codes. :return: :class:`BrowseResponse` object. """ resp = self.geo_search_api.get_search_browse( center=center, radius=radius, country_codes=country_codes, bounding_box=bounding_box, categories=categories, limit=limit, name=name, lang=lang, ) return BrowseResponse.new(resp.json()) def lookup(self, location_id: str, lang: Optional[str] = None) -> LookupResponse: """ Get search results by providing ``location_id``. :param location_id: A string representing id. :param lang: A string to represent language to be used for result rendering from a list of BCP47 compliant Language Codes. :return: :class:`LookupResponse` object. """ resp = self.geo_search_api.get_search_lookup(location_id=location_id, lang=lang) return LookupResponse.new(resp.json()) def car_route( self, origin: List, destination: List, via: Optional[List[Tuple]] = None, origin_place_options: Optional[PlaceOptions] = None, destination_place_options: Optional[PlaceOptions] = None, via_place_options: Optional[PlaceOptions] = None, destination_waypoint_options: Optional[WayPointOptions] = None, via_waypoint_options: Optional[WayPointOptions] = None, departure_time: Optional[datetime] = None, routing_mode: str = "fast", alternatives: int = 0, units: str = "metric", lang: str = "en-US", return_results: Optional[List] = None, spans: Optional[List] = None, ) -> RoutingResponse: """Calculate ``car`` route between two endpoints. :param origin: A list of ``latitude`` and ``longitude`` of origin point of route. :param destination: A list of ``latitude`` and ``longitude`` of destination point of route. :param via: A list of tuples of ``latitude`` and ``longitude`` of via points. :param origin_place_options: :class:`PlaceOptions` optinal place options for ``origin``. :param destination_place_options: :class:`PlaceOptions` optinal place options for ``destination``. :param via_place_options: :class:`PlaceOptions` optinal place options for ``via``. :param destination_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``destination``. :param via_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``via``. :param departure_time: :class:`datetime.datetime` object. :param routing_mode: A string to represent routing mode. use config defined in :attr:`ROUTING_MODE <here_location_services.config.routing_config.ROUTING_MODE>` # noqa: E501 :param alternatives: Number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``. :param units: A string representing units of measurement used in guidance instructions. The default is metric. :param lang: A string representing preferred language of the response. The value should comply with the IETF BCP 47. :param return_results: A list of strings. :param spans: A list of strings to define which attributes are included in the response spans. use config defined in :attr:`ROUTING_SPANS <here_location_services.config.routing_config.ROUTING_SPANS>` # noqa: E501 :return: :class:`RoutingResponse` object. """ resp = self.routing_api.route( transport_mode="car", origin=origin, destination=destination, via=via, origin_place_options=origin_place_options, destination_place_options=destination_place_options, via_place_options=via_place_options, destination_waypoint_options=destination_waypoint_options, via_waypoint_options=via_waypoint_options, departure_time=departure_time, routing_mode=routing_mode, alternatives=alternatives, units=units, lang=lang, return_results=return_results, spans=spans, ) return RoutingResponse.new(resp.json()) def bicycle_route( self, origin: List, destination: List, via: Optional[List[Tuple]] = None, origin_place_options: Optional[PlaceOptions] = None, destination_place_options: Optional[PlaceOptions] = None, via_place_options: Optional[PlaceOptions] = None, destination_waypoint_options: Optional[WayPointOptions] = None, via_waypoint_options: Optional[WayPointOptions] = None, departure_time: Optional[datetime] = None, routing_mode: str = "fast", alternatives: int = 0, units: str = "metric", lang: str = "en-US", return_results: Optional[List] = None, spans: Optional[List] = None, ) -> RoutingResponse: """Calculate ``bicycle`` route between two endpoints. :param origin: A list of ``latitude`` and ``longitude`` of origin point of route. :param destination: A list of ``latitude`` and ``longitude`` of destination point of route. :param via: A list of tuples of ``latitude`` and ``longitude`` of via points. :param origin_place_options: :class:`PlaceOptions` optinal place options for ``origin``. :param destination_place_options: :class:`PlaceOptions` optinal place options for ``destination``. :param via_place_options: :class:`PlaceOptions` optinal place options for ``via``. :param destination_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``destination``. :param via_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``via``. :param departure_time: :class:`datetime.datetime` object. :param routing_mode: A string to represent routing mode. :param alternatives: Number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``. :param units: A string representing units of measurement used in guidance instructions. The default is metric. :param lang: A string representing preferred language of the response. The value should comply with the IETF BCP 47. :param return_results: A list of strings. :param spans: A list of strings to define which attributes are included in the response spans. :return: :class:`RoutingResponse` object. """ resp = self.routing_api.route( transport_mode="bicycle", origin=origin, destination=destination, via=via, origin_place_options=origin_place_options, destination_place_options=destination_place_options, via_place_options=via_place_options, destination_waypoint_options=destination_waypoint_options, via_waypoint_options=via_waypoint_options, departure_time=departure_time, routing_mode=routing_mode, alternatives=alternatives, units=units, lang=lang, return_results=return_results, spans=spans, ) return RoutingResponse.new(resp.json()) def truck_route( self, origin: List, destination: List, via: Optional[List[Tuple]] = None, origin_place_options: Optional[PlaceOptions] = None, destination_place_options: Optional[PlaceOptions] = None, via_place_options: Optional[PlaceOptions] = None, destination_waypoint_options: Optional[WayPointOptions] = None, via_waypoint_options: Optional[WayPointOptions] = None, departure_time: Optional[datetime] = None, routing_mode: str = "fast", alternatives: int = 0, units: str = "metric", lang: str = "en-US", return_results: Optional[List] = None, spans: Optional[List] = None, ) -> RoutingResponse: """Calculate ``truck`` route between two endpoints. :param origin: A list of ``latitude`` and ``longitude`` of origin point of route. :param destination: A list of ``latitude`` and ``longitude`` of destination point of route. :param via: A list of tuples of ``latitude`` and ``longitude`` of via points. :param origin_place_options: :class:`PlaceOptions` optinal place options for ``origin``. :param destination_place_options: :class:`PlaceOptions` optinal place options for ``destination``. :param via_place_options: :class:`PlaceOptions` optinal place options for ``via``. :param destination_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``destination``. :param via_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``via``. :param departure_time: :class:`datetime.datetime` object. :param routing_mode: A string to represent routing mode. :param alternatives: Number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``. :param units: A string representing units of measurement used in guidance instructions. The default is metric. :param lang: A string representing preferred language of the response. The value should comply with the IETF BCP 47. :param return_results: A list of strings. :param spans: A list of strings to define which attributes are included in the response spans. :return: :class:`RoutingResponse` object. """ resp = self.routing_api.route( transport_mode="truck", origin=origin, destination=destination, via=via, origin_place_options=origin_place_options, destination_place_options=destination_place_options, via_place_options=via_place_options, destination_waypoint_options=destination_waypoint_options, via_waypoint_options=via_waypoint_options, departure_time=departure_time, routing_mode=routing_mode, alternatives=alternatives, units=units, lang=lang, return_results=return_results, spans=spans, ) return RoutingResponse.new(resp.json()) def scooter_route( self, origin: List, destination: List, via: Optional[List[Tuple]] = None, origin_place_options: Optional[PlaceOptions] = None, destination_place_options: Optional[PlaceOptions] = None, via_place_options: Optional[PlaceOptions] = None, destination_waypoint_options: Optional[WayPointOptions] = None, via_waypoint_options: Optional[WayPointOptions] = None, scooter: Optional[Scooter] = None, departure_time: Optional[datetime] = None, routing_mode: str = "fast", alternatives: int = 0, units: str = "metric", lang: str = "en-US", return_results: Optional[List] = None, spans: Optional[List] = None, ) -> RoutingResponse: """Calculate ``scooter`` route between two endpoints. :param origin: A list of ``latitude`` and ``longitude`` of origin point of route. :param destination: A list of ``latitude`` and ``longitude`` of destination point of route. :param via: A list of tuples of ``latitude`` and ``longitude`` of via points. :param origin_place_options: :class:`PlaceOptions` optinal place options for ``origin``. :param destination_place_options: :class:`PlaceOptions` optinal place options for ``destination``. :param via_place_options: :class:`PlaceOptions` optinal place options for ``via``. :param destination_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``destination``. :param via_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``via``. :param scooter: Additional attributes for scooter route. :param departure_time: :class:`datetime.datetime` object. :param routing_mode: A string to represent routing mode. :param alternatives: Number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``. :param units: A string representing units of measurement used in guidance instructions. The default is metric. :param lang: A string representing preferred language of the response. The value should comply with the IETF BCP 47. :param return_results: A list of strings. :param spans: A list of strings to define which attributes are included in the response spans. :return: :class:`RoutingResponse` object. """ resp = self.routing_api.route( transport_mode="scooter", origin=origin, destination=destination, via=via, origin_place_options=origin_place_options, destination_place_options=destination_place_options, via_place_options=via_place_options, destination_waypoint_options=destination_waypoint_options, via_waypoint_options=via_waypoint_options, scooter=scooter, departure_time=departure_time, routing_mode=routing_mode, alternatives=alternatives, units=units, lang=lang, return_results=return_results, spans=spans, ) return RoutingResponse.new(resp.json()) def pedestrian_route( self, origin: List, destination: List, via: Optional[List[Tuple]] = None, origin_place_options: Optional[PlaceOptions] = None, destination_place_options: Optional[PlaceOptions] = None, via_place_options: Optional[PlaceOptions] = None, destination_waypoint_options: Optional[WayPointOptions] = None, via_waypoint_options: Optional[WayPointOptions] = None, departure_time: Optional[datetime] = None, routing_mode: str = "fast", alternatives: int = 0, units: str = "metric", lang: str = "en-US", return_results: Optional[List] = None, spans: Optional[List] = None, ) -> RoutingResponse: """Calculate ``pedestrian`` route between two endpoints. :param origin: A list of ``latitude`` and ``longitude`` of origin point of route. :param destination: A list of ``latitude`` and ``longitude`` of destination point of route. :param via: A list of tuples of ``latitude`` and ``longitude`` of via points. :param origin_place_options: :class:`PlaceOptions` optinal place options for ``origin``. :param destination_place_options: :class:`PlaceOptions` optinal place options for ``destination``. :param via_place_options: :class:`PlaceOptions` optinal place options for ``via``. :param destination_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``destination``. :param via_waypoint_options: :class:`WayPointOptions` optional waypoint options for ``via``. :param departure_time: :class:`datetime.datetime` object. :param routing_mode: A string to represent routing mode. :param alternatives: Number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``. :param units: A string representing units of measurement used in guidance instructions. The default is metric. :param lang: A string representing preferred language of the response. The value should comply with the IETF BCP 47. :param return_results: A list of strings. :param spans: A list of strings to define which attributes are included in the response spans. :return: :class:`RoutingResponse` object. """ resp = self.routing_api.route( transport_mode="pedestrian", origin=origin, destination=destination, via=via, origin_place_options=origin_place_options, destination_place_options=destination_place_options, via_place_options=via_place_options, destination_waypoint_options=destination_waypoint_options, via_waypoint_options=via_waypoint_options, departure_time=departure_time, routing_mode=routing_mode, alternatives=alternatives, units=units, lang=lang, return_results=return_results, spans=spans, ) return RoutingResponse.new(resp.json())
46.557823
181
0.646296
3,103
27,376
5.58234
0.098614
0.051957
0.014548
0.024131
0.743274
0.726764
0.712504
0.705519
0.694897
0.689816
0
0.007433
0.272648
27,376
587
182
46.637138
0.862495
0.470522
0
0.637771
0
0
0.04038
0.002121
0
0
0
0
0
1
0.037152
false
0
0.03096
0
0.105263
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
18ea9cd9fb7d5532cac0d6be572188856480bc20
103
py
Python
gen/nn/layers/neuro.py
juliocmalvares/2048
8715fbb560abc6c2055cffd8972d8413663d7b1e
[ "MIT" ]
null
null
null
gen/nn/layers/neuro.py
juliocmalvares/2048
8715fbb560abc6c2055cffd8972d8413663d7b1e
[ "MIT" ]
1
2020-10-06T06:14:14.000Z
2020-10-06T06:14:14.000Z
gen/nn/layers/neuro.py
juliocmalvares/2048
8715fbb560abc6c2055cffd8972d8413663d7b1e
[ "MIT" ]
null
null
null
class Neuron(object): def __init__(self, *args, **kwargs): super(Neuron, self).__init__()
20.6
40
0.631068
12
103
4.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.203884
103
5
41
20.6
0.695122
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
e15a62daad16e4a9b777e5357fb42b534ee37b68
91
py
Python
Online-Judges/CodingBat/Python/String-01/05-extra_end.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/String-01/05-extra_end.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/String-01/05-extra_end.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def extra_end(str): if len(str) <= 2: return (str * 3) return (str[-2:]*3)
18.2
24
0.494505
15
91
2.933333
0.6
0.181818
0
0
0
0
0
0
0
0
0
0.063492
0.307692
91
4
25
22.75
0.634921
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
e185e7d68eda099e49bdf331db1744bd796a4584
40
py
Python
aula13/programa02.py
NicoCassio/cursoemvideo-python
2686ff74f4d45bdb0dc194f49f4dd19aae629d52
[ "MIT" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
aula13/programa02.py
NicoCassio/cursoemvideo-python
2686ff74f4d45bdb0dc194f49f4dd19aae629d52
[ "MIT" ]
null
null
null
aula13/programa02.py
NicoCassio/cursoemvideo-python
2686ff74f4d45bdb0dc194f49f4dd19aae629d52
[ "MIT" ]
null
null
null
for i in range(10, 0, -1): print(i)
13.333333
26
0.525
9
40
2.333333
0.888889
0
0
0
0
0
0
0
0
0
0
0.137931
0.275
40
2
27
20
0.586207
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
e192331e12917719034ea0a6e095083d6d60c381
819
py
Python
game/gamesrc/conf/examples/at_initial_setup.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
5
2015-01-30T08:47:59.000Z
2022-01-22T19:27:03.000Z
game/gamesrc/conf/examples/at_initial_setup.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
2
2017-12-28T21:36:48.000Z
2017-12-28T21:36:57.000Z
game/gamesrc/conf/examples/at_initial_setup.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
1
2019-01-05T15:51:37.000Z
2019-01-05T15:51:37.000Z
""" At_initial_setup module template Copy this module up one level to /gamesrc/conf, name it what you like and then use it as a template to modify. Then edit settings.AT_INITIAL_SETUP_HOOK_MODULE to point to your new module. Custom at_initial_setup method. This allows you to hook special modifications to the initial server startup process. Note that this will only be run once - when the server starts up for the very first time! It is called last in the startup process and can thus be used to overload things that happened before it. The module must contain a global function at_initial_setup(). This will be called without arguments. Note that tracebacks in this module will be QUIETLY ignored, so make sure to check it well to make sure it does what you expect it to. """ def at_initial_setup(): pass
31.5
70
0.788767
146
819
4.342466
0.554795
0.070978
0.11041
0
0
0
0
0
0
0
0
0
0.179487
819
25
71
32.76
0.943452
0.945055
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
e1954d99b1b2562c2d137497bb82be99bbec91d5
247
py
Python
quasimodo/data_structures/modality_interface.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
16
2019-11-28T13:26:37.000Z
2022-02-09T09:53:10.000Z
quasimodo/data_structures/modality_interface.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
1
2021-03-26T20:31:48.000Z
2021-07-15T08:52:47.000Z
quasimodo/data_structures/modality_interface.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
3
2020-08-14T23:23:25.000Z
2021-12-24T14:02:35.000Z
from .spom_interface import SPOMInterface class ModalityInterface(SPOMInterface): """ModalityInterface Represents a modality """ def __init__(self): self._modality = "" def get(self): return self._modality
16.466667
41
0.668016
23
247
6.869565
0.652174
0.139241
0
0
0
0
0
0
0
0
0
0
0.246964
247
14
42
17.642857
0.849462
0.157895
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
e1a83156e031e42999792e67f46c0846e84ce531
81
py
Python
monalyza.py
seinmon/monalyza
7d9a0f976c0e4652c64977cba3da9d7334d7bba9
[ "MIT" ]
null
null
null
monalyza.py
seinmon/monalyza
7d9a0f976c0e4652c64977cba3da9d7334d7bba9
[ "MIT" ]
null
null
null
monalyza.py
seinmon/monalyza
7d9a0f976c0e4652c64977cba3da9d7334d7bba9
[ "MIT" ]
null
null
null
#! /usr/bin/python3 -O from monalyza import main raise SystemExit(main.main())
13.5
29
0.728395
12
81
4.916667
0.833333
0
0
0
0
0
0
0
0
0
0
0.014286
0.135802
81
5
30
16.2
0.828571
0.259259
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
becec73bc0e479ffde6e7a2aa292df91b770c78a
87
py
Python
main/acervo/apps.py
Arellano1995/projekt
717917ba2910b20375b5831d1aacd1d7a0a6c201
[ "MIT" ]
null
null
null
main/acervo/apps.py
Arellano1995/projekt
717917ba2910b20375b5831d1aacd1d7a0a6c201
[ "MIT" ]
7
2020-02-12T02:58:17.000Z
2022-02-10T11:03:09.000Z
main/acervo/apps.py
Arellano1995/projekt
717917ba2910b20375b5831d1aacd1d7a0a6c201
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AcervoConfig(AppConfig): name = 'acervo'
14.5
33
0.747126
10
87
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.172414
87
5
34
17.4
0.902778
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bed9ce109037587a260f486e2bf6fa043533f8ca
850
py
Python
Blueberry.Server.Python/DigitalController.py
ppedro74/BlueberryServer
bc1e3f1e5cabd8dbb51ec54c2631f49325b9ff2b
[ "MIT" ]
null
null
null
Blueberry.Server.Python/DigitalController.py
ppedro74/BlueberryServer
bc1e3f1e5cabd8dbb51ec54c2631f49325b9ff2b
[ "MIT" ]
1
2021-06-10T10:36:15.000Z
2021-06-10T10:36:15.000Z
Blueberry.Server.Python/DigitalController.py
ppedro74/BlueberryServer
bc1e3f1e5cabd8dbb51ec54c2631f49325b9ff2b
[ "MIT" ]
null
null
null
import logging import Controller class DigitalPort: def __init__(self, digital_port_controller, port): self.digital_port_controller = digital_port_controller self.port = port self.logger = logging.getLogger("{}-{}".format(digital_port_controller.name, port)) self.logger.setLevel(digital_port_controller.log_level) def set(self, state): self.digital_port_controller.set(self.port, state) def get(self): return self.digital_port_controller.get(self.port) class DigitalController(Controller.Controller): def __init__(self, name, log_level): self.name = name self.log_level = log_level self.logger = logging.getLogger(self.name) self.logger.setLevel(log_level) def set(self, port, state): pass def get(self, port): return 0
26.5625
91
0.685882
105
850
5.295238
0.228571
0.138489
0.264388
0.179856
0.064748
0
0
0
0
0
0
0.001504
0.217647
850
31
92
27.419355
0.834586
0
0
0
0
0
0.005903
0
0
0
0
0
0
1
0.272727
false
0.045455
0.090909
0.090909
0.545455
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
bee85f3a50434718a53299cb57e27a767999f770
145
py
Python
onenineai/db/forms.py
RakshithRAcharya/Django-DB-Connect
a335bfc82516ea9b535ea220e431d5f2cd5c7c51
[ "MIT" ]
null
null
null
onenineai/db/forms.py
RakshithRAcharya/Django-DB-Connect
a335bfc82516ea9b535ea220e431d5f2cd5c7c51
[ "MIT" ]
null
null
null
onenineai/db/forms.py
RakshithRAcharya/Django-DB-Connect
a335bfc82516ea9b535ea220e431d5f2cd5c7c51
[ "MIT" ]
null
null
null
from django.forms import ModelForm from .models import DB class DBForm(ModelForm): class Meta: model = DB fields = '__all__'
20.714286
34
0.668966
18
145
5.166667
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.262069
145
7
35
20.714286
0.869159
0
0
0
0
0
0.047945
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bef3bd8b73158c27579de5c5a13adf6e558238f7
720
py
Python
model/pack/question.py
espirin/svoya
35168387c737dad5d2acc87b775d4e0a38923f2f
[ "MIT" ]
null
null
null
model/pack/question.py
espirin/svoya
35168387c737dad5d2acc87b775d4e0a38923f2f
[ "MIT" ]
null
null
null
model/pack/question.py
espirin/svoya
35168387c737dad5d2acc87b775d4e0a38923f2f
[ "MIT" ]
null
null
null
from app import db class Question(db.Model): __tablename__ = 'questions' id = db.Column(db.Integer, primary_key=True) text = db.Column(db.Text) answer = db.Column(db.Text,) price = db.Column(db.Integer) image_url = db.Column(db.String(128)) image_thumbnail_url = db.Column(db.String(128)) video_id = db.Column(db.String(11)) video_start = db.Column(db.Integer) video_end = db.Column(db.Integer) topic_id = db.Column(db.Integer, db.ForeignKey('topics.id'), nullable=False) board_progress_id = db.Column(db.Integer, db.ForeignKey('board_progress.id')) def __str__(self): return f"Question: {self.id}" def __repr__(self): return self.__str__()
27.692308
81
0.672222
105
720
4.352381
0.380952
0.19256
0.2407
0.223195
0.273523
0.231947
0.135667
0
0
0
0
0.013652
0.186111
720
25
82
28.8
0.766212
0
0
0
0
0
0.075
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0.111111
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
830daddf89a7b608a72d4f69527ad1742137f2c4
312
py
Python
snmpagent_unity/unity_impl/FrontendPortTotalThroughput.py
factioninc/snmp-unity-agent
3525dc0fac60d1c784dcdd7c41693544bcbef843
[ "Apache-2.0" ]
2
2019-03-01T11:14:59.000Z
2019-10-02T17:47:59.000Z
snmpagent_unity/unity_impl/FrontendPortTotalThroughput.py
factioninc/snmp-unity-agent
3525dc0fac60d1c784dcdd7c41693544bcbef843
[ "Apache-2.0" ]
2
2019-03-01T11:26:29.000Z
2019-10-11T18:56:54.000Z
snmpagent_unity/unity_impl/FrontendPortTotalThroughput.py
factioninc/snmp-unity-agent
3525dc0fac60d1c784dcdd7c41693544bcbef843
[ "Apache-2.0" ]
1
2019-10-03T21:09:17.000Z
2019-10-03T21:09:17.000Z
class FrontendPortTotalThroughput(object): def read_get(self, name, idx_name, unity_client): return unity_client.get_frontend_port_total_iops(idx_name) class FrontendPortTotalThroughputColumn(object): def get_idx(self, name, idx, unity_client): return unity_client.get_frontend_ports()
34.666667
66
0.782051
39
312
5.897436
0.461538
0.191304
0.095652
0.191304
0.33913
0.33913
0.33913
0
0
0
0
0
0.141026
312
8
67
39
0.858209
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
8331895e4d70e90dfcf3a385d9f402f280ab6c74
194
py
Python
test/lang_test.py
cvdnn/xlang
0ddc637907eb602567d3df20774188fc607ae71b
[ "Apache-2.0" ]
null
null
null
test/lang_test.py
cvdnn/xlang
0ddc637907eb602567d3df20774188fc607ae71b
[ "Apache-2.0" ]
null
null
null
test/lang_test.py
cvdnn/xlang
0ddc637907eb602567d3df20774188fc607ae71b
[ "Apache-2.0" ]
null
null
null
from xlang import iox from xlang.iox import SizeType print(iox.split_path('*.jpg')) print(iox.get_file_size('/Users/xiot/xiot/54807405-187c3f00-4cb8-11e9-8a8e-8092c5472dc1.gif', SizeType.KB))
27.714286
107
0.783505
31
194
4.806452
0.709677
0.120805
0
0
0
0
0
0
0
0
0
0.165746
0.06701
194
6
108
32.333333
0.657459
0
0
0
0
0
0.365979
0.340206
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
4
55c8f076c4935b8117e2d1471f2d1b4bb62abece
3,860
py
Python
tests/test_writers_ftp.py
scrapinghub/exporters
b14f70530826bbbd6163d9e56e74345e762a9189
[ "BSD-3-Clause" ]
41
2016-06-16T15:29:39.000Z
2021-08-06T03:29:13.000Z
tests/test_writers_ftp.py
bbotella/fluxo
c9fb01db1771ada4672bbffd67cb46e1f7802ab9
[ "BSD-3-Clause" ]
52
2016-06-20T12:46:57.000Z
2018-02-08T12:22:03.000Z
tests/test_writers_ftp.py
bbotella/fluxo
c9fb01db1771ada4672bbffd67cb46e1f7802ab9
[ "BSD-3-Clause" ]
10
2016-06-23T08:49:36.000Z
2018-01-13T10:12:10.000Z
import mock import tempfile import unittest from contextlib import closing from exporters.records.base_record import BaseRecord from exporters.writers import FTPWriter from exporters.writers.base_writer import InconsistentWriteState from .utils import meta class FTPWriterTest(unittest.TestCase): def get_batch(self): data = [ {'name': 'Roberto', 'birthday': '12/05/1987'}, {'name': 'Claudia', 'birthday': '21/12/1985'}, ] return [BaseRecord(d) for d in data] def test_default_port_is_21(self): options = dict(options=dict( ftp_user='user', ftp_password='password', host='ftp.example.com', filebase='test/')) with closing(FTPWriter(options, meta())) as writer: self.assertEquals(21, writer.read_option('port')) @mock.patch('exporters.writers.FTPWriter.build_ftp_instance') def test_create_parent_dirs_in_right_order(self, mock_ftp): filebase = 'some/long/dir/tree/' options = dict(options=dict( ftp_user='user', ftp_password='password', host='ftp.example.com', filebase=filebase)) with tempfile.NamedTemporaryFile() as tmp: with closing(FTPWriter(options, meta())) as writer: writer.write(tmp.name) mock_mkd = mock_ftp.return_value.mkd self.assertEquals([ mock.call('some'), mock.call('some/long'), mock.call('some/long/dir'), mock.call('some/long/dir/tree'), ], mock_mkd.mock_calls) @mock.patch('exporters.writers.FTPWriter.build_ftp_instance') def test_create_parent_dirs_with_filebase_prefix(self, mock_ftp): filebase = 'some/long/dir/with/prefix' options = dict(options=dict( ftp_user='user', ftp_password='password', host='ftp.example.com', filebase=filebase)) with tempfile.NamedTemporaryFile() as tmp: with closing(FTPWriter(options, meta())) as writer: writer.write(tmp.name) mock_mkd = mock_ftp.return_value.mkd self.assertEquals([ mock.call('some'), mock.call('some/long'), mock.call('some/long/dir'), mock.call('some/long/dir/with'), ], mock_mkd.mock_calls) @mock.patch('exporters.writers.FTPWriter.build_ftp_instance') def test_check_writer_consistency_unexpected_size(self, mock_ftp): # given options = dict(options=dict( check_consistency=True, ftp_user='user', ftp_password='password', host='ftp.example.com', filebase='test/',)) mock_ftp.return_value.size.return_value = 999 # when: with closing(FTPWriter(options, meta())) as writer: writer.write_batch(self.get_batch()) writer.flush() # then with self.assertRaisesRegexp(InconsistentWriteState, 'Unexpected size for file'): writer.finish_writing() @mock.patch('exporters.writers.FTPWriter.build_ftp_instance') def test_check_writer_consistency_not_present(self, mock_ftp): # given options = dict(options=dict( check_consistency=True, ftp_user='user', ftp_password='password', host='ftp.example.com', filebase='test/',)) mock_ftp.return_value.size.return_value = -1 # when: with closing(FTPWriter(options, meta())) as writer: writer.write_batch(self.get_batch()) writer.flush() # then with self.assertRaisesRegexp(InconsistentWriteState, 'file is not present at destination'): writer.finish_writing()
35.090909
93
0.601813
423
3,860
5.312057
0.22695
0.048954
0.042724
0.042724
0.737873
0.737873
0.737873
0.693814
0.693814
0.693814
0
0.008683
0.283938
3,860
109
94
35.412844
0.804269
0.008549
0
0.647727
0
0
0.153403
0.054712
0
0
0
0
0.056818
1
0.068182
false
0.056818
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
55daf994d95e38a8a26e68127602ceb2383ff69f
5,832
py
Python
jenkinsapi_tests/systests/job_configs.py
tuenti/jenkinsapi
52548695da01bd431a6f9fc3c46f7ff42922af39
[ "MIT" ]
null
null
null
jenkinsapi_tests/systests/job_configs.py
tuenti/jenkinsapi
52548695da01bd431a6f9fc3c46f7ff42922af39
[ "MIT" ]
null
null
null
jenkinsapi_tests/systests/job_configs.py
tuenti/jenkinsapi
52548695da01bd431a6f9fc3c46f7ff42922af39
[ "MIT" ]
1
2019-12-08T16:20:22.000Z
2019-12-08T16:20:22.000Z
""" A selection of job objects used in testing. """ EMPTY_JOB = '''\ <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers class="vector"/> <concurrentBuild>false</concurrentBuild> <builders/> <publishers/> <buildWrappers/> </project> '''.strip() LONG_RUNNING_JOB = """ <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers class="vector"/> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.Shell> <command>ping -c 200 localhost</command> </hudson.tasks.Shell> </builders> <publishers/> <buildWrappers/> </project>""".strip() SHORTISH_JOB = """ <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers class="vector"/> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.Shell> <command>ping -c 10 localhost</command> </hudson.tasks.Shell> </builders> <publishers/> <buildWrappers/> </project>""".strip() SCM_GIT_JOB = """ <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.plugins.git.GitSCM"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> <name></name> <refspec></refspec> <url>https://github.com/salimfadhley/jenkinsapi.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> <name>**</name> </hudson.plugins.git.BranchSpec> </branches> <disableSubmodules>false</disableSubmodules> <recursiveSubmodules>false</recursiveSubmodules> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> <authorOrCommitter>false</authorOrCommitter> <clean>false</clean> <wipeOutWorkspace>false</wipeOutWorkspace> <pruneBranches>false</pruneBranches> <remotePoll>false</remotePoll> <ignoreNotifyCommit>false</ignoreNotifyCommit> <useShallowClone>false</useShallowClone> <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/> <gitTool>Default</gitTool> <submoduleCfg class="list"/> <relativeTargetDir></relativeTargetDir> <reference></reference> <excludedRegions></excludedRegions> <excludedUsers></excludedUsers> <gitConfigName></gitConfigName> <gitConfigEmail></gitConfigEmail> <skipTag>true</skipTag> <includedRegions></includedRegions> <scmName></scmName> </scm> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers class="vector"/> <concurrentBuild>false</concurrentBuild> <builders/> <publishers/> <buildWrappers/> </project>""".strip() JOB_WITH_ARTIFACTS = """ <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description>Ping a load of stuff for about 10s</description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers class="vector"/> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.Shell> <command>ping -c 5 localhost | tee out.txt gzip &lt; out.txt &gt; out.gz</command> </hudson.tasks.Shell> </builders> <publishers> <hudson.tasks.ArtifactArchiver> <artifacts>*.txt,*.gz</artifacts> <latestOnly>false</latestOnly> </hudson.tasks.ArtifactArchiver> <hudson.tasks.Fingerprinter> <targets></targets> <recordBuildArtifacts>true</recordBuildArtifacts> </hudson.tasks.Fingerprinter> </publishers> <buildWrappers/> </project>""".strip() MATRIX_JOB = """ <?xml version='1.0' encoding='UTF-8'?> <matrix-project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers class="vector"/> <concurrentBuild>false</concurrentBuild> <axes> <hudson.matrix.TextAxis> <name>foo</name> <values> <string>one</string> <string>two</string> <string>three</string> </values> </hudson.matrix.TextAxis> </axes> <builders> <hudson.tasks.Shell> <command>ping -c 10 localhost</command> </hudson.tasks.Shell> </builders> <publishers/> <buildWrappers/> </matrix-project>""".strip()
30.375
80
0.715878
501
5,832
8.315369
0.241517
0.031685
0.030725
0.017283
0.633941
0.633941
0.6241
0.6241
0.617619
0.617619
0
0.005713
0.12963
5,832
191
81
30.534031
0.815012
0.007373
1
0.607735
0
0
0.966788
0.562359
0
0
0
0
0
1
0
false
0
0
0
0
0.01105
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
55df537291aa415fc7c97228920da677ec93aace
2,893
py
Python
example/test/T18_fengzhuang.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
2
2021-12-18T06:34:26.000Z
2022-01-05T05:08:47.000Z
example/test/T18_fengzhuang.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
example/test/T18_fengzhuang.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
import turtle turtle.mode("logo") turtle.tracer(False) turtle.shape("turtle") turtle.colormode(255) # 画云 turtle.goto(-480,-60) turtle.seth(90) turtle.fillcolor(0,255,255) turtle.begin_fill() turtle.pd() turtle.forward(960) turtle.left(90) turtle.forward(470) turtle.left(90) turtle.forward(960) turtle.left(90) turtle.forward(470) turtle.end_fill() turtle.pu() turtle.seth(0) turtle.pencolor("white") turtle.goto(x,y) turtle.fillcolor(255,255,255) turtle.begin_fill() turtle.pd() turtle.circle(30, 90) turtle.right(90) turtle.circle(30, 180) turtle.right(90) turtle.circle(30, 90) turtle.left(90) turtle.goto(x,y) turtle.end_fill() turtle.pensize(1) # 栅栏1 turtle.pu() turtle.seth(0) turtle.pd() turtle.setpensize(1) turtle.setxy(-216,-10) turtle.setfillcolorrgb(255,255,255) turtle.beginfill() turtle.forward(15) turtle.right(90) turtle.forward(130) turtle.right(90) turtle.forward(15) turtle.right(90) turtle.forward(130) turtle.endfill() # 栅栏2 turtle.pu() turtle.seth(0) turtle.pd() turtle.setpensize(1) turtle.setxy(-216,-40) turtle.setfillcolorrgb(255,255,255) turtle.beginfill() turtle.forward(15) turtle.right(90) turtle.forward(130) turtle.right(90) turtle.forward(15) turtle.right(90) turtle.forward(130) turtle.endfill() # 栅栏3 turtle.pu() turtle.seth(0) turtle.pd() turtle.setpensize(1) turtle.setxy(-190,-60) turtle.setfillcolorrgb(255,255,255) turtle.beginfill() turtle.forward(80) turtle.right(90) turtle.forward(15) turtle.right(90) turtle.forward(80) turtle.right(90) turtle.forward(15) turtle.endfill() # 栅栏4 turtle.pu() turtle.seth(0) turtle.pd() turtle.setpensize(1) turtle.setxy(-160,-60) turtle.setfillcolorrgb(255,255,255) turtle.beginfill() turtle.forward(80) turtle.right(90) turtle.forward(15) turtle.right(90) turtle.forward(80) turtle.right(90) turtle.forward(15) turtle.endfill() # 栅栏5 turtle.pu() turtle.seth(0) turtle.pd() turtle.setpensize(1) turtle.setxy(-130,-60) turtle.setfillcolorrgb(255,255,255) turtle.beginfill() turtle.forward(80) turtle.right(90) turtle.forward(15) turtle.right(90) turtle.forward(80) turtle.right(90) turtle.forward(15) turtle.endfill() # 画地面 turtle.pu() turtle.seth(0) turtle.pensize(0) turtle.goto(-480,-60) turtle.fillcolor(255,144,48) turtle.begin_fill() turtle.pd() turtle.right(90) turtle.forward(960) turtle.right(90) turtle.forward(340) turtle.right(90) turtle.forward(960) turtle.right(90) turtle.forward(340) turtle.end_fill() turtle.pu() turtle.pencolor("black") for i in range(10): turtle.goto(30+i*i, -59.5) turtle.pd() turtle.dot(5) # 画身体 turtle.pu() turtle.seth(90) turtle.goto(100,-45) turtle.pensize(1) turtle.fillcolor(255,255,96) turtle.pd() turtle.begin_fill() turtle.circle(30,360) turtle.end_fill() # 画左脚 turtle.pu() turtle.goto(90, -43) turtle.seth(195) turtle.pd() turtle.forward(15) #画右脚 turtle.pu() turtle.goto(105, -45) turtle.pd() turtle.seth(165) turtle.forward(15)
16.4375
35
0.743865
466
2,893
4.600858
0.165236
0.181903
0.153918
0.186101
0.755131
0.707556
0.635261
0.635261
0.60541
0.60541
0
0.114852
0.076046
2,893
175
36
16.531429
0.687243
0.012789
0
0.82
0
0
0.00703
0
0
0
0
0
0
1
0
false
0
0.006667
0
0.006667
0
0
0
0
null
0
0
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
55e3976c5b2b5fd0bf4fb77b581718821456e249
101
py
Python
coronaindiatracker/coronatracker/apps.py
ankit-digiqt/CoronaIndiaTracker
1aa405e3a2223d9f9fb667bcfa13cf10e4f0ebc7
[ "Unlicense" ]
2
2020-07-26T05:57:27.000Z
2020-07-26T07:12:15.000Z
coronaindiatracker/coronatracker/apps.py
ankee23/CoronaIndiaTracker
b2e116a595b3c69ccefa93b60833c09aa07b5eed
[ "Unlicense" ]
null
null
null
coronaindiatracker/coronatracker/apps.py
ankee23/CoronaIndiaTracker
b2e116a595b3c69ccefa93b60833c09aa07b5eed
[ "Unlicense" ]
1
2020-11-26T08:52:11.000Z
2020-11-26T08:52:11.000Z
from django.apps import AppConfig class CoronatrackerConfig(AppConfig): name = 'coronatracker'
16.833333
37
0.782178
10
101
7.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.148515
101
5
38
20.2
0.918605
0
0
0
0
0
0.128713
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
36216a1772935388abc828af0b613fcc72af33c1
118
py
Python
hosts/templatetags/__init__.py
luo1fly/AntiMagic
84e986aaef68e8a0b1ab3ec4ce04c2121053d928
[ "Apache-2.0" ]
8
2017-06-01T09:41:49.000Z
2021-08-04T01:51:06.000Z
hosts/templatetags/__init__.py
luo1fly/AntiMagic
84e986aaef68e8a0b1ab3ec4ce04c2121053d928
[ "Apache-2.0" ]
1
2017-08-07T01:32:15.000Z
2017-08-07T01:32:15.000Z
hosts/templatetags/__init__.py
luo1fly/AntiMagic
84e986aaef68e8a0b1ab3ec4ce04c2121053d928
[ "Apache-2.0" ]
7
2016-11-13T14:40:13.000Z
2019-01-21T06:32:32.000Z
#!/usr/bin/env python # Name: __init__.py.py # Time:9/22/16 10:11 AM # Author:luo1fly # import custom modules above
14.75
29
0.70339
21
118
3.761905
0.952381
0
0
0
0
0
0
0
0
0
0
0.1
0.152542
118
7
30
16.857143
0.69
0.898305
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
36417b6440c1fee337556478b0f3e06831386794
467
py
Python
tests/test_future/test_future_result/test_future_result_equality.py
nsidnev/returns
cf5770e991d8e3d4634136ca65fb5382a7563d57
[ "BSD-2-Clause" ]
null
null
null
tests/test_future/test_future_result/test_future_result_equality.py
nsidnev/returns
cf5770e991d8e3d4634136ca65fb5382a7563d57
[ "BSD-2-Clause" ]
null
null
null
tests/test_future/test_future_result/test_future_result_equality.py
nsidnev/returns
cf5770e991d8e3d4634136ca65fb5382a7563d57
[ "BSD-2-Clause" ]
null
null
null
import pytest from returns.future import FutureResult def test_nonequality(): """Ensures that containers can be compared.""" assert FutureResult.from_success(1) != FutureResult.from_success(1) assert hash(FutureResult.from_success(1)) @pytest.mark.anyio async def test_equality(): """Ensures that containers are not compared to regular values.""" assert await FutureResult.from_success( 2, ) == await FutureResult.from_success(2)
25.944444
71
0.734475
58
467
5.793103
0.517241
0.238095
0.342262
0.214286
0.172619
0
0
0
0
0
0
0.012853
0.167024
467
17
72
27.470588
0.8509
0.085653
0
0
0
0
0
0
0
0
0
0
0.3
1
0.1
true
0
0.2
0
0.3
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3646c1ccff7735c4a76816aa362efe8438773665
911
py
Python
main.py
webbo89/halloween
cec43974e2ec096afd7368099cd6c18548d372f4
[ "MIT" ]
null
null
null
main.py
webbo89/halloween
cec43974e2ec096afd7368099cd6c18548d372f4
[ "MIT" ]
2
2018-10-31T20:02:12.000Z
2018-11-04T02:58:34.000Z
main.py
webbo89/halloween
cec43974e2ec096afd7368099cd6c18548d372f4
[ "MIT" ]
null
null
null
from spook import spook from buygroceries import buy_groceries from Age import tell_my_age spook('Pete') # TODO: Take the name and print a message! from tell_my_name import tell_my_name tell_my_name('Ghosty') # TODO: Take the age and print a message! tell_my_age(1319231212) # TODO: Take the dog's name and print a message! from wal_the_dog_function import walk_the_dog walk_the_dog('geoff') # TODO: Take the list of groceries and print messages! # buy_groceries(['milk', 'eggs', 'hairspray']) # TODO: Print a message! from georgia import fart fart() from eat_ice_cream import eat_ice_cream # TODO: Take the flavour and print a message! eat_ice_cream('Chocolate') from fry import fry fry() # TODO: Fly to the moon and print a message! # fly('moon') from feed_the_dog import feed_the_dog feed_the_dog('dogfood') # TODO: Take your medicine! from medicine import take_medicine take_medicine('flu')
19.804348
54
0.768386
155
911
4.303226
0.309677
0.062969
0.116942
0.11994
0.071964
0.071964
0
0
0
0
0
0.012937
0.151482
911
45
55
20.244444
0.849935
0.40944
0
0
0
0
0.064516
0
0
0
0
0.022222
0
1
0
true
0
0.526316
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
1
0
1
0
0
4
366264b5c06f44cab292eda6f4febf011de1928f
321
py
Python
kaoko/py/getInstagramMedia.py
tabby-jun/kaoko
ff81fabc9fa9327d5023623fa431c43efa0ec6fa
[ "MIT" ]
null
null
null
kaoko/py/getInstagramMedia.py
tabby-jun/kaoko
ff81fabc9fa9327d5023623fa431c43efa0ec6fa
[ "MIT" ]
1
2020-03-19T12:44:08.000Z
2020-03-19T12:44:08.000Z
kaoko/py/getInstagramMedia.py
tabby-jun/kaoko
ff81fabc9fa9327d5023623fa431c43efa0ec6fa
[ "MIT" ]
null
null
null
from igramscraper.instagram import Instagram import sys import json instagram = Instagram() media = instagram.get_media_by_url(sys.argv[1]) if media.video_standard_resolution_url: print(media.video_standard_resolution_url) elif media.image_standard_resolution_url: print(media.image_standard_resolution_url)
24.692308
47
0.831776
44
321
5.727273
0.431818
0.285714
0.333333
0.222222
0.531746
0
0
0
0
0
0
0.003472
0.102804
321
12
48
26.75
0.871528
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.222222
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
36897de10404b78d06daf9be2a4946ef5938db06
135
py
Python
patron_app/apps.py
hsluoyz/patron_rest
4b4525f8b785e43ae2a723d57b3e42383f187300
[ "MIT" ]
34
2018-10-31T15:32:47.000Z
2020-07-20T13:02:43.000Z
patron_app/apps.py
osvt/patron_rest
4b4525f8b785e43ae2a723d57b3e42383f187300
[ "MIT" ]
6
2018-12-01T12:32:16.000Z
2020-01-28T11:01:08.000Z
patron_app/apps.py
osvt/patron_rest
4b4525f8b785e43ae2a723d57b3e42383f187300
[ "MIT" ]
9
2018-08-05T19:25:41.000Z
2020-10-26T02:25:43.000Z
from __future__ import unicode_literals from django.apps import AppConfig class PatronAppConfig(AppConfig): name = 'patron_app'
16.875
39
0.8
16
135
6.375
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.148148
135
7
40
19.285714
0.886957
0
0
0
0
0
0.074074
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
36af70d904900a55656015f4cd697449ff84b14c
124
py
Python
Types/arg_not_found.py
HashzSoftware/YamlMake
cdd55aa0c17dbb6f396cddb2bc9ed58043b582be
[ "MIT" ]
1
2021-05-27T09:34:55.000Z
2021-05-27T09:34:55.000Z
Types/arg_not_found.py
HashzSoftware/YamlMake
cdd55aa0c17dbb6f396cddb2bc9ed58043b582be
[ "MIT" ]
null
null
null
Types/arg_not_found.py
HashzSoftware/YamlMake
cdd55aa0c17dbb6f396cddb2bc9ed58043b582be
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Hashz Software. class ArgNotFound: def __init__(self, arg): print("ArgNotFound: %s" % arg)
24.8
38
0.653226
15
124
5.133333
0.866667
0
0
0
0
0
0
0
0
0
0
0.041237
0.217742
124
5
38
24.8
0.752577
0.274194
0
0
0
0
0.168539
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
36b5da601e7e384859c04c6e8c029347cb1e43ca
364
py
Python
kafka_spark_mongodb/twitter_config.py
krishnachaitanya9/WatchDogs_BigData-Project
01ff53e3b67b3fa7c8ea8fd69b93a0a8428672e6
[ "Apache-2.0" ]
4
2020-02-05T11:26:47.000Z
2021-05-26T07:48:46.000Z
kafka_spark_mongodb/twitter_config.py
krishnachaitanya9/WatchDogs_BigData-Project
01ff53e3b67b3fa7c8ea8fd69b93a0a8428672e6
[ "Apache-2.0" ]
1
2019-05-04T19:20:36.000Z
2019-05-04T19:21:06.000Z
kafka_spark_mongodb/twitter_config.py
krishnachaitanya9/WatchDogs_BigData-Project
01ff53e3b67b3fa7c8ea8fd69b93a0a8428672e6
[ "Apache-2.0" ]
null
null
null
#These information comes from Twitter API #Create a Twitter Account and Get These Information from apps.twitter.com consumer_key = 'R1feyoEHAw2Lg32k4OKyyn01v' consumer_secret = 'KdxSi79P7PAjhmY4OYU2VfeKUcaUt4WmyJMb7Oew0nE1M7Ji5h' access_token = '145566333-KIndElco5MlHXPIGWeGkvjVXlMchLyQI2bMD8BJT' access_secret = 'iqfFlcM4clh6wCwDSLZaQqJttgstiIybUDOoB3uyzaZx8'
45.5
73
0.870879
31
364
10.096774
0.741935
0.102236
0
0
0
0
0
0
0
0
0
0.101796
0.082418
364
7
74
52
0.835329
0.307692
0
0
0
0
0.68
0.68
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7fd62092082f96439d964aa0004071b81d7614cb
20,823
py
Python
tests/nlu_core_tests/component_tests/seq2seq/t5_tests.py
UPbook-innovations/nlu
2ae02ce7b6ca163f47271e98b71de109d38adefe
[ "Apache-2.0" ]
1
2021-05-01T01:23:18.000Z
2021-05-01T01:23:18.000Z
tests/nlu_core_tests/component_tests/seq2seq/t5_tests.py
sheerinZ/nlu
a223eee4b077a6b832f47e5e6125167fe0922687
[ "Apache-2.0" ]
2
2021-09-28T05:55:05.000Z
2022-02-26T11:16:21.000Z
tests/nlu_core_tests/component_tests/seq2seq/t5_tests.py
atdavidpark/nlu
619d07299e993323d83086c86506db71e2a139a9
[ "Apache-2.0" ]
1
2021-09-13T10:06:20.000Z
2021-09-13T10:06:20.000Z
import unittest from nlu import * class TestT5(unittest.TestCase): def test_t5(self): pipe = nlu.load('en.t5.small',verbose=True) data = [ 'The first matrix I designed was quite naturally perfect. It was a work of art. Flawless. Sublime. A triumph only equaled by its monumental failure.', 'I love peanut butter and jelly', 'Who is president of America', 'Who is president of Germany', 'What is your favorite food' ] pipe['t5'].setTask('translate English to French') df = pipe.predict(data, output_level='document') print ("French:") print(df['T5']) print(df.columns) pipe['t5'].setTask('translate English to German') df = pipe.predict(data, output_level='document') print ("German:") print(df['T5']) print(df.columns) pipe['t5'].setTask('Question') df = pipe.predict(data, output_level='document') print ("Question:") print(df['T5']) print(df.columns) pipe['t5'].setTask('Make it sad') df = pipe.predict(data, output_level='document') print ("SAD:") print(df['T5']) print(df.columns) pipe['t5'].setTask('Make it stupid') df = pipe.predict(data, output_level='document') print ("STUPID:") print(df['T5']) print(df.columns) pipe['t5'].setTask('Make it angry') df = pipe.predict(data, output_level='document') print ("ANGRY:") print(df['T5']) print(df.columns) pipe['t5'].setTask('Translate English to German') df = pipe.predict(data, output_level='document') print ("GERMAN:") print(df['T5']) print(df.columns) pipe['t5'].setTask('cola sentence:') df = pipe.predict(data, output_level='document') print ("COLA:") print(df['T5']) print(df.columns) pipe['t5'].setTask('translate English to Spanish') df = pipe.predict(data, output_level='document') print ("Spanish:") print(df['T5']) print(df.columns) def test_task1_cola(self): pipe = nlu.load('en.t5.base',verbose=True) data = [ 'John made Bill master of himself', 'Anna and Mike is going skiing and they is liked is', 'Anna and Mike like to dance' ] pipe['t5'].setTask('cola sentence:') res = pipe.predict(data) print('TEST Task 1 : Sentence acceptability judgment,CoLA') print(res['T5']) def test_task2_RTE(self): pipe = nlu.load('en.t5.base',verbose=True) data = [ 'Recent report say Johnny makes he alot of money, he earned 10 million USD each year for the last 5 years. sentence2: Johnny is a millionare.', 'Recent report say Johnny makes he alot of money, he earned 10 million USD each year for the last 5 years. sentence2: Johnny is a poor man.', 'It was raining in England for the last 4 weeks. sentence2: Yesterday, England was very wet. ', 'I live in italy. sentence2: I live in Europe', 'Peter loves New York, it is his favorite city. sentence2: Peter loves new York.' ] pipe['t5'].setTask('rte sentence1:') res = pipe.predict(data, output_level='document') print('TEST Task 2 : Natural language inference,RTE') print(res.columns) print(res[['T5','document']]) def test_task3_MNLI(self): pipe = nlu.load('en.t5.base',verbose=True) data = [ 'At 8:34, the Boston Center controller received a third, transmission from American 11. premise: The Boston Center controller got a third transmission from American 11.' ] pipe['t5'].setTask('mnli hypothesis:') res = pipe.predict(data, output_level='document') print('TEST Task 3 : Natural language inference, MNLI') print(res.columns) print(res[['T5','document']]) def test_task4_MRPC(self): pipe = nlu.load('en.t5.base',verbose=True) data = [ 'We acted because we saw the existing evidence in a new light , through the prism of our experience on 11 September , " Rumsfeld said . sentence2: Rather , the US acted because the administration saw " existing evidence in a new light , through the prism of our experience on September 11"', 'We acted because we saw the existing evidence in a new light , through the prism of our experience on 11 September , " Rumsfeld said . Rather , the US acted because the administration saw " existing evidence in a new light , through the prism of our experience on September 11"' ' It is raining hot dogs! I like ice cream', ' It was 40 degrees all day. It was pretty hot today', ' It is raining hot dogs! sentence2: I like ice cream', ' It was 40 degrees all day', ' sentence2: It was pretty hot today', ] pipe['t5'].setTask('mrpc sentence1:') res = pipe.predict(data, output_level='document') print('TEST Task 4 : Natural language inference, MNLI') print(res.columns) print(res[['T5','document']]) def test_task5_QNLI(self): pipe = nlu.load('en.t5.base',verbose=True) data = [ 'Where did Jebe die? sentence: Ghenkis Khan recalled Subtai back to Mongolia soon afterwards, and Jebe died on the road back to Samarkand ', 'What does Steve like to eat? sentence: Steve watches TV all day' ] pipe['t5'].setTask('qnli question:') res = pipe.predict(data, output_level='document') print('TEST Task 5 : Natural language inference, QNLI') print(res.columns) print(res[['T5','document']]) def test_task6_QQP(self): data = [ 'What attributes would have made you highly desirable in ancient Rome? question2: How I GET OPPERTINUTY TO JOIN IT COMPANY AS A FRESHER?', 'What was it like in Ancient rome? question2: What was Ancient rome like?' ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('qqp question1:') res = pipe.predict(data, output_level='document') print('TEST Task 6 : Natural language inference, QQP') print(res.columns) print(res[['T5','document']]) def test_task7_SST2(self): data = [ 'it confirms fincher ’s status as a film maker who artfully bends technical know-how to the service of psychological insight', 'I hated that movie' ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('sst2 sentence: ') res = pipe.predict(data, output_level='document') print('TEST Task 7 : BINARY SENTIMENT, SST2') print(res.columns) print(res[['T5','document']]) def test_task8_STSB(self): data = [ 'What attributes would have made you highly desirable in ancient Rome? sentence2: How I GET OPPERTINUTY TO JOIN IT COMPANY AS A FRESHER?', 'What was it like in Ancient rome? sentence2: What was live like as a King in Ancient Rome?', ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('stsb sentence1: ') res = pipe.predict(data, output_level='document') print('TEST Task 8 : Regressive Sentence Similarity , STSB') print(res.columns) print(res[['T5','document']]) def test_task9_CB(self): data = [ 'Valence was helping premise: Valence the void-brain, Valence the virtuous valet. Why couldn’t the figger choose his own portion of titanic anatomy to shaft? Did he think he was helping', 'What attributes would have made you highly desirable in ancient Rome? premise: How I GET OPPERTINUTY TO JOIN IT COMPANY AS A FRESHER?', 'What was it like in Ancient rome? premise: What was live like as a King in Ancient Rome?', 'Peter lov' ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('cb hypothesis: ') res = pipe.predict(data, output_level='document') print('TEST Task 9 : CB ') print(res.columns) print(res[['T5','document']]) def test_task10_COPA(self): data = [ 'Many citizens relocated to the capitol. choice2: Many citizens took refuge in other territories. premise: Political violence broke out in the nation. question: effect', ' He fell off the ladder. choice2: He climbed up the lader premise: The man lost his balance on the ladder. question: what happend was result?', ' He fell off the ladder. choice2: He climbed up the lader premise: The man lost his balance on the ladder. question: effect', ' He fell off the ladder. choice2: He climbed up the lader premise: The man lost his balance on the ladder. question: correct', ' many citizens relocated to the capitol. choice2: Many citizens took refuge in other territories premise : Politcal Violence broke out in the nation. question: effect', ' many citizens relocated to the capitol. choice2: Many citizens took refuge in other territories premise : Politcal Violence broke out in the nation. question: correct', ' many citizens relocated to the capitol. choice2: Many citizens took refuge in other territories premise : Politcal Violence broke out in the nation. question: bananas?', ' The assailant struck the man in the head. choice2: The assailant took the man’s wallet. premise: The man fell unconscious. question: What was the cause if this?', ' The assailant struck the man in the head. choice2: The assailant took the man’s wallet. premise: The man fell unconscious. question: effect', ' The assailant struck the man in the head. choice2: The assailant took the man’s wallet. premise: The man fell unconscious. question: correct', ' The assailant struck the man in the head. choice2: The assailant took the man’s wallet. premise: The man fell unconscious.', ' He was in the kitchen cooking choice2: He was at work choice3: He went to the mooon choice4: He went to the gym and worked out premise : The man ate a peanut butter sandwich' , ' He went tasdasdasdo the gym and worked dasdaout choice2: He was at work choice3: He went to the mooon choice4: He was in the kitchen cooking premise : The man ate a peanut butter sandwich', ' He went to theasdasdas gdasym dasand dwasdsorked out choice2: He was at work choice3: He went to the mooon choice4: He was in the kitchen cooking premise : The man ate a peanut butter sandwich question: correct' ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('copa choice1: ') res = pipe.predict(data, output_level='document') print('TEST Task 10 : COPA ') print(res.columns) print(res[['T5','document']]) def test_task11_MultiRc(self): data = [ # paragraph: ''' Why was Joey surprised the morning he woke up for breakfast? answer: There was a T-REX in his garden. paragraph: Sent 1: Once upon a time, there was a squirrel named Joey. Sent 2: Joey loved to go outside and play with his cousin Jimmy. Sent 3: Joey and Jimmy played silly games together, and were always laughing. Sent 4: One day, Joey and Jimmy went swimming together 50 at their Aunt Julie’s pond. Sent 5: Joey woke up early in the morning to eat some food before they left. Sent 6: He couldn’t find anything to eat except for pie! Sent 7: Usually, Joey would eat cereal, fruit (a pear), or oatmeal for breakfast. Sent 8: After he ate, he and Jimmy went to the pond. Sent 9: On their way there they saw their friend Jack Rabbit. Sent 10: They dove into the water and swam for several hours. Sent 11: The sun was out, but the breeze was cold. Sent 12: Joey and Jimmy got out of the water and started walking home. Sent 13: Their fur was wet, and the breeze chilled them. Sent 14: When they got home, they dried off, and Jimmy put on his favorite purple shirt. Sent 15: Joey put on a blue shirt with red and green dots. Sent 16: The two squirrels ate some food that Joey’s mom, Jasmine, made and went off to bed. ''', ''' Why was Joey surprised the morning he woke up for breakfast? answer: There was only pie to eat. paragraph: Sent 1: Once upon a time, there was a squirrel named Joey. Sent 2: Joey loved to go outside and play with his cousin Jimmy. Sent 3: Joey and Jimmy played silly games together, and were always laughing. Sent 4: One day, Joey and Jimmy went swimming together 50 at their Aunt Julie’s pond. Sent 5: Joey woke up early in the morning to eat some food before they left. Sent 6: He couldn’t find anything to eat except for pie! Sent 7: Usually, Joey would eat cereal, fruit (a pear), or oatmeal for breakfast. Sent 8: After he ate, he and Jimmy went to the pond. Sent 9: On their way there they saw their friend Jack Rabbit. Sent 10: They dove into the water and swam for several hours. Sent 11: The sun was out, but the breeze was cold. Sent 12: Joey and Jimmy got out of the water and started walking home. Sent 13: Their fur was wet, and the breeze chilled them. Sent 14: When they got home, they dried off, and Jimmy put on his favorite purple shirt. Sent 15: Joey put on a blue shirt with red and green dots. Sent 16: The two squirrels ate some food that Joey’s mom, Jasmine, made and went off to bed.''', ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('multirc question: ') res = pipe.predict(data, output_level='document') print('TEST Task 11 : MultiRC - Question Answering ') print(res.columns) print(res[['T5','document']]) def test_task12_WiC(self): data = [ ''' sentence1: The airplane crash killed his family. sentence2: He totally killed that rock show!. word : kill ''', ''' sentence1: The expanded window will give us time to catch the thieves. sentence2: You have a two-hour window of turning in your homework. word : window ''', ''' sentence1: He jumped out the window. sentence2: You have a two-hour window of turning in your homework. word : window ''' , ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('wic pos: ')#wic pos: res = pipe.predict(data, output_level='document') print('TEST Task 12 : WiC - Word sense disambiguation ') print(res.columns) print(res[['T5','document']]) def test_task13_WSC_DPR(self): # todo data = [ 'wsc: The stable was very roomy, with four good stalls; a large swinging window opened into the yard , which made *it* pleasant and airy.', 'wsc : The party was really crazy and a lot of people had fun until *it* ended.', 'wsc : The party was really crazy but the the car killed everybody, *it* was going so fast!.', ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('')#wsc: res = pipe.predict(data, output_level='document') print('TEST Task 13 : WSC - Coreference resolution ') print(res.columns) print(res[['T5','document']]) def test_task14_text_summarization(self): data = [ 'the belgian duo took to the dance floor on monday night with some friends . manchester united face newcastle in the premier league on wednesday . red devils will be looking for just their second league away win in seven . louis van gaal’s side currently sit two points clear of liverpool in fourth .' ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('summarize: ')#wsc: res = pipe.predict(data, output_level='document') print('TEST Task 14 : Summarization ') print(res.columns) print(res[['T5','document']]) def test_task15_SQuAD_question_answering(self): data = [ 'What does increased oxygen concentrations in the patient’s lungs displace? context: Hyperbaric (high-pressure) medicine uses special oxygen chambers to increase the partial pressure of O 2 around the patient and, when needed, the medical staff. Carbon monoxide poisoning, gas gangrene, and decompression sickness (the ’bends’) are sometimes treated using these devices. Increased O 2 concentration in the lungs helps to displace carbon monoxide from the heme group of hemoglobin. Oxygen gas is poisonous to the anaerobic bacteria that cause gas gangrene, so increasing its partial pressure helps kill them. Decompression sickness occurs in divers who decompress too quickly after a dive, resulting in bubbles of inert gas, mostly nitrogen and helium, forming in their blood. Increasing the pressure of O 2 as soon as possible is part of the treatment.', 'What did Joey eat for breakfast ? context : Once upon a time, there was a squirrel named Joey. Joey loved to go outside and play with his cousin Jimmy. Joey and Jimmy played silly games together, and were always laughing. One day, Joey and Jimmy went swimming together 50 at their Aunt Julie’s pond. Joey woke up early in the morning to eat some food before they left. for breakfast. After he ate, he and Jimmy went to the pond. On their way there they saw their friend Jack Rabbit. They dove into the water and swam for several hours. The sun was out, but the breeze was cold. Joey and Jimmy got out of the water and started walking home. Their fur was wet, and the breeze chilled them. When they got home, they dried off, and Jimmy put on his favorite purple shirt. Joey put on a blue shirt with red and green dots. The two squirrels ate some food that Joey’s mom, Jasmine, made and went off to bed,' ] pipe = nlu.load('en.t5.base',verbose=True) pipe['t5'].setTask('question: ')#wsc: res = pipe.predict(data, output_level='document') print('TEST Task 15 : SQuAD question answering ') print(res.columns) print(res[['T5','document']]) def test_pre_config_t5_summarize(self): data = [ 'the belgian duo took to the dance floor on monday night with some friends . manchester united face newcastle in the premier league on wednesday . red devils will be looking for just their second league away win in seven . louis van gaal’s side currently sit two points clear of liverpool in fourth .' ] pipe = nlu.load('en.t5.summarize',verbose=True) res = pipe.predict(data) print(res.columns) print(res[['T5','document']]) def test_pre_config_t5_summarize_alias(self): data = [ 'the belgian duo took to the dance floor on monday night with some friends . manchester united face newcastle in the premier league on wednesday . red devils will be looking for just their second league away win in seven . louis van gaal’s side currently sit two points clear of liverpool in fourth .' ] pipe = nlu.load('summarize',verbose=True) res = pipe.predict(data) print(res.columns) print(res[['T5','document']]) pipe.print_info() if __name__ == '__main__': unittest.main()
47.541096
918
0.61288
2,829
20,823
4.48427
0.206787
0.02081
0.030743
0.038073
0.742236
0.731042
0.71441
0.71441
0.689185
0.652294
0
0.016548
0.303511
20,823
437
919
47.649886
0.858167
0.001681
0
0.435115
0
0.133588
0.599017
0
0
0
0
0.002288
0
1
0.068702
false
0
0.007634
0
0.080153
0.290076
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7ff7a736daff3fdab156c3b14186b7c7c2609b26
191
py
Python
futdoom.py
gabriel-fallen/futracer
5576a2a981dee4343b4aeaaa347da875d34f9da2
[ "MIT" ]
1
2020-07-28T11:56:42.000Z
2020-07-28T11:56:42.000Z
futdoom.py
gabriel-fallen/futracer
5576a2a981dee4343b4aeaaa347da875d34f9da2
[ "MIT" ]
null
null
null
futdoom.py
gabriel-fallen/futracer
5576a2a981dee4343b4aeaaa347da875d34f9da2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import futracer import futdoomlib def main(args): return futdoomlib.main(futracer, args) if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
14.692308
42
0.706806
27
191
4.703704
0.62963
0.110236
0
0
0
0
0
0
0
0
0
0.012422
0.157068
191
12
43
15.916667
0.776398
0.109948
0
0
0
0
0.047337
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0.142857
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
4
3d0ed4b4402c53ffa6084a336aa4f6fae1c016de
210
py
Python
neodroidvision/segmentation/evaluation/__init__.py
sintefneodroid/vision
a4e66251ead99f15f4697bfe2abd00e2f388e743
[ "Apache-2.0" ]
1
2019-07-03T04:33:51.000Z
2019-07-03T04:33:51.000Z
neodroidvision/segmentation/evaluation/__init__.py
sintefneodroid/vision
a4e66251ead99f15f4697bfe2abd00e2f388e743
[ "Apache-2.0" ]
5
2019-07-03T04:38:07.000Z
2021-09-10T15:40:44.000Z
neodroidvision/segmentation/evaluation/__init__.py
sintefneodroid/vision
a4e66251ead99f15f4697bfe2abd00e2f388e743
[ "Apache-2.0" ]
3
2019-10-03T06:14:40.000Z
2021-01-31T14:31:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" from .dice_loss import * from .f_score import * from .focal_loss import * from .iou import * from .jaccard_loss import *
19.090909
39
0.709524
30
210
4.7
0.666667
0.283688
0.198582
0
0
0
0
0
0
0
0
0.011364
0.161905
210
10
40
21
0.789773
0.204762
0
0
0
0
0.145455
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
3d3ea29fa9838117d54d31676c31c051345a68a5
1,379
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_IR.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_IR.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_IR.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. IR metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_IR = PhoneMetadata(id='IR', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[0-29]\\d{2,5}', possible_length=(3, 4, 5, 6)), toll_free=PhoneNumberDesc(national_number_pattern='1[129]\\d', example_number='123', possible_length=(3,)), emergency=PhoneNumberDesc(national_number_pattern='1(?:1[025]|25)|911', example_number='112', possible_length=(3,)), short_code=PhoneNumberDesc(national_number_pattern='096(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])|1(?:1[0-68]|2[0-59]|3[346-8]|4(?:[0147]|[289]0)|5(?:0[14]|1[02479]|2[0-3]|39|[49]0|65)|6(?:[16]6|[27]|90)|8(?:03|1[18]|22|3[37]|4[28]|88|99)|9[0-579])|20(?:00|1(?:[038]|1[079]|26|9[69])|2[01]|90)|9(?:11|9(?:90|0009))', example_number='112', possible_length=(3, 4, 5, 6)), standard_rate=PhoneNumberDesc(national_number_pattern='(?:096|1[58])\\d{2}', example_number='1512', possible_length=(4, 5)), carrier_specific=PhoneNumberDesc(national_number_pattern='1[58]\\d{2}|99(?:90|0009)', example_number='9990', possible_length=(4, 6)), sms_services=PhoneNumberDesc(national_number_pattern='990009', example_number='990009', possible_length=(6,)), short_data=True)
106.076923
402
0.693256
229
1,379
4.008734
0.445415
0.175381
0.221133
0.27451
0.296296
0.090414
0
0
0
0
0
0.173541
0.068165
1,379
12
403
114.916667
0.540856
0.038434
0
0
1
0.1
0.310398
0.240826
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3d5d99a95def27c3d8be2d02303247607543b325
925
py
Python
src/sage/combinat/crystals/catalog_kirillov_reshetikhin.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
2
2018-06-30T01:37:35.000Z
2018-06-30T01:37:39.000Z
src/sage/combinat/crystals/catalog_kirillov_reshetikhin.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/crystals/catalog_kirillov_reshetikhin.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
""" Catalog Of Crystal Models For Kirillov-Reshetikhin Crystals We currently have the following models: * :func:`KashiwaraNakashimaTableaux <sage.combinat.crystals.kirillov_reshetikhin.KashiwaraNakashimaTableaux>` * :class:`~sage.combinat.rigged_configurations.kr_tableaux.KirillovReshetikhinTableaux` * :func:`LSPaths <sage.combinat.crystals.kirillov_reshetikhin.KirillovReshetikhinCrystalFromLSPaths>` * :func:`RiggedConfigurations <sage.combinat.rigged_configurations.rigged_configurations.KirillovReshetikhinCrystal>` """ from __future__ import absolute_import from .kirillov_reshetikhin import KashiwaraNakashimaTableaux from .kirillov_reshetikhin import KirillovReshetikhinCrystalFromLSPaths as LSPaths from sage.combinat.rigged_configurations.kr_tableaux import KirillovReshetikhinTableaux from sage.combinat.rigged_configurations.rigged_configurations import KirillovReshetikhinCrystal as RiggedConfigurations
48.684211
120
0.874595
84
925
9.428571
0.380952
0.090909
0.090909
0.161616
0.34596
0.237374
0
0
0
0
0
0
0.061622
925
18
121
51.388889
0.912442
0.565405
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
e9e3f4c4af4888eef08429d538469cd592ef1225
2,524
py
Python
aiotieba/tieba_protobuf/Post_pb2.py
Starry-OvO/Tieba-Manager
da50893edd1c4437f45f2ed50ca9f7a94aef9e11
[ "Unlicense" ]
15
2022-02-04T14:36:39.000Z
2022-03-29T08:54:08.000Z
aiotieba/tieba_protobuf/Post_pb2.py
Starry-OvO/Tieba-Manager
da50893edd1c4437f45f2ed50ca9f7a94aef9e11
[ "Unlicense" ]
null
null
null
aiotieba/tieba_protobuf/Post_pb2.py
Starry-OvO/Tieba-Manager
da50893edd1c4437f45f2ed50ca9f7a94aef9e11
[ "Unlicense" ]
6
2022-03-16T05:01:45.000Z
2022-03-29T08:54:09.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Post.proto """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from . import PbContent_pb2 as PbContent__pb2 from . import SubPostList_pb2 as SubPostList__pb2 from . import User_pb2 as User__pb2 from . import Agree_pb2 as Agree__pb2 from . import SimpleForum_pb2 as SimpleForum__pb2 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nPost.proto\x1a\x0fPbContent.proto\x1a\x11SubPostList.proto\x1a\nUser.proto\x1a\x0b\x41gree.proto\x1a\x11SimpleForum.proto\"\xa6\x04\n\x04Post\x12\n\n\x02id\x18\x01 \x01(\x03\x12\r\n\x05title\x18\x02 \x01(\t\x12\r\n\x05\x66loor\x18\x03 \x01(\r\x12\x0c\n\x04time\x18\x04 \x01(\r\x12\x1b\n\x07\x63ontent\x18\x05 \x03(\x0b\x32\n.PbContent\x12\x17\n\x0fsub_post_number\x18\r \x01(\r\x12\x11\n\tauthor_id\x18\x13 \x01(\x03\x12$\n\rsub_post_list\x18\x0f \x01(\x0b\x32\r.Post.SubPost\x12&\n\tsignature\x18\x15 \x01(\x0b\x32\x13.Post.SignatureData\x12\x15\n\x06\x61uthor\x18\x17 \x01(\x0b\x32\x05.User\x12\x15\n\x05\x61gree\x18% \x01(\x0b\x32\x06.Agree\x12 \n\nfrom_forum\x18& \x01(\x0b\x32\x0c.SimpleForum\x12\x0b\n\x03tid\x18. \x01(\x03\x1a;\n\x07SubPost\x12\x0b\n\x03pid\x18\x01 \x01(\x04\x12#\n\rsub_post_list\x18\x02 \x03(\x0b\x32\x0c.SubPostList\x1a\xb4\x01\n\rSignatureData\x12\x14\n\x0csignature_id\x18\x01 \x01(\x05\x12\x13\n\x0b\x66ontKeyName\x18\x02 \x01(\t\x12\x11\n\tfontColor\x18\x03 \x01(\t\x12\x35\n\x07\x63ontent\x18\x04 \x03(\x0b\x32$.Post.SignatureData.SignatureContent\x1a.\n\x10SignatureContent\x12\x0c\n\x04type\x18\x01 \x01(\x05\x12\x0c\n\x04text\x18\x02 \x01(\tb\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Post_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _POST._serialized_start=95 _POST._serialized_end=645 _POST_SUBPOST._serialized_start=403 _POST_SUBPOST._serialized_end=462 _POST_SIGNATUREDATA._serialized_start=465 _POST_SIGNATUREDATA._serialized_end=645 _POST_SIGNATUREDATA_SIGNATURECONTENT._serialized_start=599 _POST_SIGNATUREDATA_SIGNATURECONTENT._serialized_end=645 # @@protoc_insertion_point(module_scope)
68.216216
1,253
0.799128
404
2,524
4.787129
0.314356
0.024819
0.023268
0.037229
0.083764
0.019648
0
0
0
0
0
0.139241
0.061014
2,524
36
1,254
70.111111
0.676793
0.080428
0
0
1
0.043478
0.518823
0.489831
0
0
0
0
0
1
0
false
0
0.391304
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
e9ecb440e001ba43af746a5a56eadb58aed3002b
124
py
Python
app/utils.py
guidocecilio/shows-on-demand-admin
ca6e4718ee14841645d1f20a3d1f4807acc3e29a
[ "MIT" ]
null
null
null
app/utils.py
guidocecilio/shows-on-demand-admin
ca6e4718ee14841645d1f20a3d1f4807acc3e29a
[ "MIT" ]
null
null
null
app/utils.py
guidocecilio/shows-on-demand-admin
ca6e4718ee14841645d1f20a3d1f4807acc3e29a
[ "MIT" ]
null
null
null
from app import logging from app import settings LOGGER = logging.setup_logger( 'admin', level=settings.LOG_LEVEL )
17.714286
30
0.75
17
124
5.352941
0.588235
0.153846
0.285714
0
0
0
0
0
0
0
0
0
0.177419
124
7
31
17.714286
0.892157
0
0
0
0
0
0.04
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
e9f4f587a8526a13bff5f18076ed382c6b94dedc
866
py
Python
Writer/cursor.py
celina-lopez/e-inky-pi
df5d1718515b31f7edad9a031996948a20f5e1a5
[ "MIT" ]
null
null
null
Writer/cursor.py
celina-lopez/e-inky-pi
df5d1718515b31f7edad9a031996948a20f5e1a5
[ "MIT" ]
null
null
null
Writer/cursor.py
celina-lopez/e-inky-pi
df5d1718515b31f7edad9a031996948a20f5e1a5
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- class Cursor: def __init__(self, x=0, y=0): self.x = x self.y = y self.x_max = 5 self.y_max = 32 def up(self, buff): return Cursor(self.x - 1, self.y).clamp(buff) def down(self, buff): return Cursor(self.x + 1, self.y).clamp(buff) def right(self, buff): return Cursor(self.x, self.y + 1).clamp(buff) def left(self, buff): return Cursor(self.x, self.y - 1).clamp(buff) def clamp(self, buff): x = max(min(self.x, self.line_height(buff)), 0) y = max(min(self.y, self.line_length(buff)), 0) return Cursor(x, y) def move_to_y(self, y): return Cursor(self.x, y) def line_length(self, buff): return len(buff.lines[self.x]) def line_height(self, buff): return len(buff.lines)
24.055556
55
0.561201
140
866
3.385714
0.235714
0.105485
0.177215
0.179325
0.472574
0.472574
0.362869
0.362869
0.362869
0.362869
0
0.019293
0.281755
866
35
56
24.742857
0.742765
0.042725
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0
0.291667
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
180ebf26e1a0c3dfa2a8744081a96d22e7bb5dec
221
py
Python
third_party/rloss/pytorch_deeplab_v3_plus/utils/__init__.py
zwxu064/TransInit
134ac0463684e695448c18486f200053d372cf66
[ "MIT" ]
6
2021-06-28T10:43:58.000Z
2022-03-09T05:58:34.000Z
third_party/rloss/pytorch_deeplab_v3_plus/utils/__init__.py
zwxu064/TransInit
134ac0463684e695448c18486f200053d372cf66
[ "MIT" ]
null
null
null
third_party/rloss/pytorch_deeplab_v3_plus/utils/__init__.py
zwxu064/TransInit
134ac0463684e695448c18486f200053d372cf66
[ "MIT" ]
null
null
null
from .model_init import init_params from .visualize import * from .options import set_config, set_seed from .edge_weights import getEdgeShift, get_steps, multi_edge_weights from .label_context import create_label_context
36.833333
69
0.855204
33
221
5.393939
0.575758
0.123596
0
0
0
0
0
0
0
0
0
0
0.104072
221
5
70
44.2
0.89899
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
180f552f9dfb3a6a9f8f79a0cf753506c0eb89ab
5,617
py
Python
source_localization/models.py
gortizji/tv-graph-cnn
e9ac9cf612f53bf49b5c6d6265f1a3f7c8711f6d
[ "MIT" ]
null
null
null
source_localization/models.py
gortizji/tv-graph-cnn
e9ac9cf612f53bf49b5c6d6265f1a3f7c8711f6d
[ "MIT" ]
null
null
null
source_localization/models.py
gortizji/tv-graph-cnn
e9ac9cf612f53bf49b5c6d6265f1a3f7c8711f6d
[ "MIT" ]
null
null
null
import tensorflow as tf from tv_graph_cnn.layers import fir_tv_filtering_einsum, chebyshev_convolution, jtv_chebyshev_convolution def weight_variable(shape): """weight_variable generates a weight variable of a given shape.""" initial = tf.truncated_normal(shape, stddev=0.5, dtype=tf.float32) return tf.Variable(initial) def bias_variable(shape): """bias_variable generates a bias variable of a given shape.""" initial = tf.zeros(shape=shape, dtype=tf.float32) return tf.Variable(initial) def variable_summaries(var): """Attach a lot of summaries to a Tensor (for TensorBoard visualization).""" with tf.name_scope('summaries'): mean = tf.reduce_mean(var) tf.summary.scalar('mean', mean) with tf.name_scope('stddev'): stddev = tf.sqrt(tf.reduce_mean(tf.square(var - mean))) tf.summary.scalar('stddev', stddev) tf.summary.scalar('max', tf.reduce_max(var)) tf.summary.scalar('min', tf.reduce_min(var)) tf.summary.histogram('histogram', var) def fc_fn(x, output_units): """ Neural network consisting on 1 convolutional chebyshev layer and one dense layer :param x: input signal :param L: graph laplacian :param output_units: number of output units :param filter_order: order of convolution :param num_filters: number of parallel filters :return: computational graph """ keep_prob = tf.placeholder(tf.float32) with tf.name_scope("fc"): fc_input = tf.layers.flatten(x) fc = tf.layers.dense( inputs=fc_input, units=output_units, activation=tf.nn.relu, use_bias=True ) return fc, keep_prob def fir_tv_fc_fn(x, L, output_units, time_filter_order, vertex_filter_order, num_filters): """ Neural network consisting on 1 FIR-TV layer and one dense layer :param x: input signal :param L: graph laplacian :param output_units: number of output units :param time_filter_order: order of time convolution :param vertex_filter_order: order of vertex convolution :param num_filters: number of parallel filters :return: computational graph """ with tf.name_scope("FIR-TV"): with tf.name_scope("weights"): hfir = weight_variable([vertex_filter_order, time_filter_order, num_filters]) variable_summaries(hfir) with tf.name_scope("biases"): bfir = bias_variable([num_filters]) variable_summaries(bfir) graph_conv = fir_tv_filtering_einsum(x, L, hfir, bfir, "chebyshev") graph_conv = tf.nn.relu(graph_conv) with tf.name_scope("dropout"): keep_prob = tf.placeholder(tf.float32) dropout = tf.nn.dropout(graph_conv, keep_prob=keep_prob) with tf.name_scope("fc"): fc_input = tf.layers.flatten(dropout) fc = tf.layers.dense( inputs=fc_input, units=output_units, activation=tf.nn.relu, use_bias=True, ) return fc, keep_prob def cheb_fc_fn(x, L, output_units, filter_order, num_filters): """ Neural network consisting on 1 convolutional chebyshev layer and one dense layer :param x: input signal :param L: graph laplacian :param output_units: number of output units :param filter_order: order of convolution :param num_filters: number of parallel filters :return: computational graph """ B, N, C = x.get_shape() C = int(C) with tf.name_scope("chebyshev_conv"): with tf.name_scope("weights"): Wcheb = weight_variable([filter_order, C, num_filters]) variable_summaries(Wcheb) with tf.name_scope("biases"): bcheb = bias_variable([num_filters]) variable_summaries(bcheb) graph_conv = chebyshev_convolution(x, L, Wcheb, bcheb) graph_conv = tf.nn.relu(graph_conv) with tf.name_scope("dropout"): keep_prob = tf.placeholder(tf.float32) dropout = tf.nn.dropout(graph_conv, keep_prob=keep_prob) with tf.name_scope("fc"): fc_input = tf.layers.flatten(dropout) fc = tf.layers.dense( inputs=fc_input, units=output_units, activation=tf.nn.relu, use_bias=True ) return fc, keep_prob def jtv_cheb_fc_fn(x, L, output_units, filter_order, num_filters): """ Neural network consisting on 1 joint time-vertex convolutional chebyshev layer and one dense layer :param x: input signal :param L: graph laplacian :param output_units: number of output units :param filter_order: order of convolution :param num_filters: number of parallel filters :return: computational graph """ with tf.name_scope("jtv_chebyshev_conv"): with tf.name_scope("weights"): Wcheb = weight_variable([filter_order, num_filters]) variable_summaries(Wcheb) with tf.name_scope("biases"): bcheb = bias_variable([num_filters]) variable_summaries(bcheb) graph_conv = jtv_chebyshev_convolution(x, L, Wcheb, bcheb) graph_conv = tf.nn.relu(graph_conv) with tf.name_scope("dropout"): keep_prob = tf.placeholder(tf.float32) dropout = tf.nn.dropout(graph_conv, keep_prob=keep_prob) with tf.name_scope("fc"): fc_input = tf.layers.flatten(dropout) fc = tf.layers.dense( inputs=fc_input, units=output_units, activation=tf.nn.relu, use_bias=True ) return fc, keep_prob
35.77707
105
0.654264
741
5,617
4.758435
0.147099
0.03063
0.051049
0.076574
0.757516
0.74532
0.710153
0.693137
0.670448
0.657119
0
0.00427
0.249599
5,617
157
106
35.77707
0.832266
0.253694
0
0.587629
1
0
0.038586
0
0
0
0
0
0
1
0.072165
false
0
0.020619
0
0.154639
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
181a4db223c644da06a8782e5988f88f18c5d591
2,865
py
Python
src/yapcad/geom3d.py
rdevaul/yapCAD
2250a3b1332283384f51f4fb9398feb5dd4dd544
[ "MIT" ]
18
2020-12-14T17:17:59.000Z
2021-09-26T22:01:13.000Z
src/yapcad/geom3d.py
rdevaul/yapCAD
2250a3b1332283384f51f4fb9398feb5dd4dd544
[ "MIT" ]
null
null
null
src/yapcad/geom3d.py
rdevaul/yapCAD
2250a3b1332283384f51f4fb9398feb5dd4dd544
[ "MIT" ]
1
2020-12-14T21:47:11.000Z
2020-12-14T21:47:11.000Z
## geom3d, enhanced two- and three-dimensional geometry support for yapCAD ## started on Thu Oct 1 13:52:45 PDT 2020 ## Richard W. DeVaul from yapcad.geom import * ## the geometric representations of point, line, arc, poly, and ## geomlist provided by yapcad.geom are suitable for representing ## zero- or one-dimensional figures embedded in a three-dimensional ## space. And while there is no requirement that the representations ## provided by yapcad.geom (such as an arc, line, or polyline) lie in ## the XY plane, many of the functions in yapcad.geom are explicitly ## intended to perform computational geometry operations on XY-planar ## entities. ## Further, while a closed figure described by yapcad.geom may ## implicitly bound a two-dimensional face, there is little support ## for working with two-dimensional surfaces provided by that module. ## There is no direct support of any kind for working with ## three-dimemnsional volumes in yapcad.geom. ## in this module, we define the concept of a parametric ## two-dimensional surface and three-dimensional volume, and provide ## implicit and explicit geometry operations for working with them. ## The goal of the geom3d.yapcad module is to allow for the ## construction of two-dimensinal surfaces and three-dimensional ## geometry for the purposes of modeling, computational geometry, and ## rendering. Specifically, we wish to support the following: ## (1) Support the implicit representation of three-dimensional ## geometry, and the performance of constructive solid geometry ## operations on this implicit geometry (union, intersection, ## difference) to produce more complex implicit three dimensional ## forms. ## (2) Support the implicit representation of two dimensional ## surfaces, such as a planar surface specified by three points, or ## the surface of a three-dimensional object like a sphere, and allow ## for computational geometry operations on these surfaces, such as ## intersection operations, to produce explicit one-dimensional ## objects, such as lines, arcs, etc. ## (3) support the conversion of an implicit two-dimensional surface ## to an explicit, teselated triangluar geometry that may be easily ## rendered using a conventional 3D graphics rendering pipline, such ## as OpenGL ## (4) Support for the conversion of implicit three-dimenaional ## constructive solid geometry into an explicit, contiguous closed ## surface representation using the marching cubes algortihm, or any ## other user-specified conversion algoritm, for the purposes of ## interactive 3D rendering and conversion to 3D CAM formats, such as ## STL. ## Structure for 2D/3D geometry: ## geom3d in tuple( <type>, <transform>, <primary representation>, ## <sampled representation>, <rendering hints> ) ## where: ## type in tuple ('surface' | 'solid' | 'transform', <subtype>)
45.47619
74
0.765096
399
2,865
5.493734
0.423559
0.051095
0.026004
0.024635
0.031022
0
0
0
0
0
0
0.009559
0.160209
2,865
62
75
46.209677
0.901496
0.935079
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
1822b85740649440dbf89af4b544ef2649d0d7c2
5,369
py
Python
src/integration_test.py
deepakkarki/pub-sub
47594b9c26a4f9194cccf783200f497b6eb6c0bb
[ "MIT" ]
null
null
null
src/integration_test.py
deepakkarki/pub-sub
47594b9c26a4f9194cccf783200f497b6eb6c0bb
[ "MIT" ]
1
2021-06-09T06:27:49.000Z
2021-06-09T06:27:49.000Z
src/integration_test.py
deepakkarki/pub-sub
47594b9c26a4f9194cccf783200f497b6eb6c0bb
[ "MIT" ]
1
2021-05-29T04:07:34.000Z
2021-05-29T04:07:34.000Z
import sys import os import time import unittest from zk_helpers import get_zookeeper_hosts from pubsubBroker import start_broker from pubsubClient import PubSubClient from multiprocessing import Process from chord_node import * # ======= TEST CASES ======= ZK_CONFIG_PATH = '../apache-zookeeper-3.5.9-bin/conf/zoo.cfg' # class PrimaryTests(unittest.TestCase): # def test_primary_catches_up_from_join(self): # broker_addrs = ['localhost:3001', 'localhost:3002', 'localhost:3003', 'localhost:3004'] # broker_nodes = create_chord_ring(broker_addrs) # broker_procs = list(range(len(broker_addrs))) # topic = "test_topic" # # 1) establish which broker will start and which will take over # true_broker, true_index = find_chord_successor(topic, broker_nodes) # first_broker, first_index = find_chord_successor(true_broker.key, broker_nodes) # # 2) Start first broker and fill it with data # broker_procs[first_index] = Process(target=start_broker, args=(ZK_CONFIG_PATH, first_broker.key)) # broker_procs[first_index].start() # time.sleep(0.5) # # 3) Start Client and fill it with data # psclient = PubSubClient(get_zookeeper_hosts(ZK_CONFIG_PATH)) # data = ["zero", "one", "two", "three", "four", "five"] # for message in data: # psclient.publish(topic, message) # # 4) Start True broker (who will take over as Primary) # # and see if the data transferred over properly # broker_procs[true_index] = Process(target=start_broker, args=(ZK_CONFIG_PATH, true_broker.key)) # broker_procs[true_index].start() # time.sleep(0.5) # results = psclient.consume(topic, 0) # self.assertEqual(data, results) # broker_procs[first_index].terminate() # broker_procs[true_index].terminate() # time.sleep(10) # def test_primary_switch_back(self): # broker_addrs = ['localhost:3005', 'localhost:3006', 'localhost:3007', 'localhost:3008'] # broker_nodes = create_chord_ring(broker_addrs) # broker_procs = list(range(len(broker_addrs))) # topic = "test_topic" # # 1) establish which broker will start and which will take over # true_broker, true_index = find_chord_successor(topic, broker_nodes) # first_broker, first_index = find_chord_successor(true_broker.key, broker_nodes) # # 2) Start first broker and fill it with data # broker_procs[first_index] = Process(target=start_broker, args=(ZK_CONFIG_PATH, first_broker.key)) # broker_procs[first_index].start() # time.sleep(0.5) # # 3) Start Client and fill topic with data # psclient = PubSubClient(get_zookeeper_hosts(ZK_CONFIG_PATH)) # data = ["zero", "one", "two", "three", "four", "five"] # for message in data: # psclient.publish(topic, message) # # 4) Start True broker (who will take over as Primary) # # and see if the data transferred over properly # broker_procs[true_index] = Process(target=start_broker, args=(ZK_CONFIG_PATH, true_broker.key)) # broker_procs[true_index].start() # time.sleep(1) # # 5) Kill True Primary to see if First broker will retake reins correctly # broker_procs[true_index].terminate() # time.sleep(10) # results = psclient.consume(topic, 0) # self.assertEqual(data, results) # # 6) Clean up # broker_procs[first_index].terminate() class ReplicationTests(unittest.TestCase): def test_replica_catches_up_from_join(self): broker_addrs = ['localhost:4001', 'localhost:4002', 'localhost:4003', 'localhost:4004'] broker_nodes = create_chord_ring(broker_addrs) broker_procs = list(range(len(broker_addrs))) topic = "test_topic" # 1) establish which broker will start and which will become the replica true_broker, true_index = find_chord_successor(topic, broker_nodes) repl_broker, repl_index = find_chord_successor(true_broker.key, broker_nodes) # 2) Start true broker and fill it with data broker_procs[true_index] = Process(target=start_broker, args=(ZK_CONFIG_PATH, true_broker.key)) broker_procs[true_index].start() time.sleep(0.5) # 3) Start Client and fill it with data psclient = PubSubClient(get_zookeeper_hosts(ZK_CONFIG_PATH)) data = ["zero", "one", "two", "three", "four", "five"] for message in data: psclient.publish(topic, message) # 4) Start Replica broker and see if the data transferred over properly broker_procs[repl_index] = Process(target=start_broker, args=(ZK_CONFIG_PATH, repl_broker.key)) broker_procs[repl_index].start() time.sleep(0.5) # 5) Kill True Primary broker_procs[true_index].terminate() time.sleep(10) results = psclient.consume(topic, 0) print(results) self.assertEqual(data, results) broker_procs[repl_index].terminate() time.sleep(8) if __name__ == "__main__": # if len(sys.argv) != 2: # print("Usage: python src/pubsub_integ_test.py <zk_config>") # exit(1) # ZK_CONFIG_PATH = sys.argv[1] unittest.main()
40.674242
107
0.656361
687
5,369
4.893741
0.195051
0.068709
0.039262
0.05354
0.752231
0.737656
0.717133
0.717133
0.674004
0.636823
0
0.021903
0.234681
5,369
132
108
40.674242
0.796301
0.62954
0
0.054054
0
0
0.072775
0.02199
0
0
0
0
0.027027
1
0.027027
false
0
0.243243
0
0.297297
0.027027
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
1847f2527a942e51c6e01876b1dd7a9bb803c00a
373
py
Python
tea/tmux.py
13k/tea
fe65db68101ccce1383e821cc5d6f28b9c62c76d
[ "MIT" ]
null
null
null
tea/tmux.py
13k/tea
fe65db68101ccce1383e821cc5d6f28b9c62c76d
[ "MIT" ]
null
null
null
tea/tmux.py
13k/tea
fe65db68101ccce1383e821cc5d6f28b9c62c76d
[ "MIT" ]
null
null
null
""" tmux integration """ from __future__ import annotations import os from pathlib import Path from typing import Final, NoReturn from .path import PathLike TMUX_DEFAULT_BIN: Final[Path] = Path("tmux") def run(*args: PathLike, cmd: PathLike = TMUX_DEFAULT_BIN) -> NoReturn: """Runs tmux command, replacing the current process""" os.execlp(cmd, "tmux", *args)
19.631579
71
0.729223
50
373
5.28
0.52
0.090909
0.143939
0.166667
0
0
0
0
0
0
0
0
0.160858
373
18
72
20.722222
0.84345
0.174263
0
0
0
0
0.027119
0
0
0
0
0
0
1
0.125
true
0
0.625
0
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
1856fc18172c13ec02329060ed9071627b2868dd
340
py
Python
tests/test_traffic.py
MengqiYe/SimSDIO
99e3a327c4e7451c3145ed647a358a9bdd2ab6c8
[ "MIT" ]
null
null
null
tests/test_traffic.py
MengqiYe/SimSDIO
99e3a327c4e7451c3145ed647a358a9bdd2ab6c8
[ "MIT" ]
null
null
null
tests/test_traffic.py
MengqiYe/SimSDIO
99e3a327c4e7451c3145ed647a358a9bdd2ab6c8
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created by Mengqi Ye on 2021/12/22 """ from stm import TrafficLightMachine class TestTrafficLightMachine: def setup(self): self.machine = TrafficLightMachine() def test_cycle(self): self.machine.cycle() self.machine.cycle() self.machine.cycle()
20
44
0.647059
40
340
5.475
0.675
0.200913
0.219178
0.182648
0.219178
0.219178
0
0
0
0
0
0.037736
0.220588
340
16
45
21.25
0.788679
0.232353
0
0.375
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
185c15fafc6fd2af0717e3be3b7b93d5cf726de7
1,366
py
Python
speedex/generalzone/models.py
vishalsrivastava99/speedexcourier.github.io
b043b70fcb88a55dbde059bfc86baea2fd4c27e8
[ "bzip2-1.0.6" ]
1
2021-05-17T06:29:58.000Z
2021-05-17T06:29:58.000Z
speedex/generalzone/models.py
vishalsrivastava99/speedexcourier.github.io
b043b70fcb88a55dbde059bfc86baea2fd4c27e8
[ "bzip2-1.0.6" ]
null
null
null
speedex/generalzone/models.py
vishalsrivastava99/speedexcourier.github.io
b043b70fcb88a55dbde059bfc86baea2fd4c27e8
[ "bzip2-1.0.6" ]
null
null
null
from django.db import models # Create your models here. class Enquiry(models.Model): name=models.CharField(max_length=50) gender=models.CharField(max_length=6) address=models.TextField() contactno=models.CharField(max_length=15) emailaddress=models.EmailField() enquirytext=models.TextField() enquirydate=models.CharField(max_length=20) class Complaint(models.Model): name=models.CharField(max_length=50) gender=models.CharField(max_length=6) address=models.TextField() contactno=models.CharField(max_length=15) emailaddress=models.EmailField() subject=models.CharField(max_length=200) complainttext=models.TextField() complaintdate=models.CharField(max_length=20) class Career(models.Model): name=models.CharField(max_length=50) gender=models.CharField(max_length=6) address=models.TextField() contactno=models.CharField(max_length=15) emailaddress=models.CharField(max_length=50,primary_key=True) qualification=models.CharField(max_length=50) experience=models.CharField(max_length=10) keyskills=models.TextField() cv=models.CharField(max_length=100) connectdate=models.CharField(max_length=20) class loginInfo(models.Model): userid=models.CharField(max_length=50) password=models.CharField(max_length=20) usertype=models.CharField(max_length=20)
34.15
65
0.7694
172
1,366
5.988372
0.273256
0.291262
0.349515
0.466019
0.658252
0.537864
0.447573
0.447573
0.447573
0.447573
0
0.032392
0.118594
1,366
39
66
35.025641
0.82309
0.01757
0
0.424242
0
0
0
0
0
0
0
0
0
1
0
false
0.030303
0.030303
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
18605d17deb15090bf1ee1514d6210529b7d98da
2,509
py
Python
lemon/protocol/Contact/UserContact.py
lemon-chat/lemon-server-python
5947b52b3c4535ae54fe2705a830db07fdaf741d
[ "MIT" ]
null
null
null
lemon/protocol/Contact/UserContact.py
lemon-chat/lemon-server-python
5947b52b3c4535ae54fe2705a830db07fdaf741d
[ "MIT" ]
null
null
null
lemon/protocol/Contact/UserContact.py
lemon-chat/lemon-server-python
5947b52b3c4535ae54fe2705a830db07fdaf741d
[ "MIT" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: Contact import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class UserContact(object): __slots__ = ['_tab'] @classmethod def GetRootAsUserContact(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = UserContact() x.Init(buf, n + offset) return x # UserContact def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) # UserContact def Username(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) if o != 0: return self._tab.String(o + self._tab.Pos) return None # UserContact def Nickname(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) if o != 0: return self._tab.String(o + self._tab.Pos) return None # UserContact def Gender(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) if o != 0: return self._tab.Get(flatbuffers.number_types.Uint8Flags, o + self._tab.Pos) return 0 # UserContact def AvatarType(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) if o != 0: return self._tab.Get(flatbuffers.number_types.Uint8Flags, o + self._tab.Pos) return 0 # UserContact def Avatar(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) if o != 0: from flatbuffers.table import Table obj = Table(bytearray(), 0) self._tab.Union(obj, o) return obj return None def UserContactStart(builder): builder.StartObject(5) def UserContactAddUsername(builder, username): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(username), 0) def UserContactAddNickname(builder, nickname): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(nickname), 0) def UserContactAddGender(builder, gender): builder.PrependUint8Slot(2, gender, 0) def UserContactAddAvatarType(builder, avatarType): builder.PrependUint8Slot(3, avatarType, 0) def UserContactAddAvatar(builder, avatar): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(avatar), 0) def UserContactEnd(builder): return builder.EndObject()
36.897059
146
0.693105
295
2,509
5.759322
0.264407
0.061801
0.129488
0.164803
0.413184
0.413184
0.340789
0.340789
0.340789
0.340789
0
0.015045
0.205261
2,509
67
147
37.447761
0.837011
0.062575
0
0.291667
1
0
0.001707
0
0
0
0
0
0
1
0.291667
false
0
0.083333
0.020833
0.645833
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
18731b860f827136af8e7308a6b08695a3289573
47
py
Python
stores/__init__.py
Hamifthi/yara_test
2efc72fed7e568ef568a656377333416aa16422b
[ "MIT" ]
null
null
null
stores/__init__.py
Hamifthi/yara_test
2efc72fed7e568ef568a656377333416aa16422b
[ "MIT" ]
null
null
null
stores/__init__.py
Hamifthi/yara_test
2efc72fed7e568ef568a656377333416aa16422b
[ "MIT" ]
null
null
null
default_app_config = 'stores.apps.StoresConfig'
47
47
0.851064
6
47
6.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.042553
47
1
47
47
0.844444
0
0
0
0
0
0.5
0.5
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
187eea5dbf1c339c99fba8b7f76b07d0236deeeb
2,807
gyp
Python
gyp/tests.gyp
chromium-googlesource-mirror/skia
983d158373c3ac8c18514481e80ce939e1e01199
[ "BSD-3-Clause" ]
null
null
null
gyp/tests.gyp
chromium-googlesource-mirror/skia
983d158373c3ac8c18514481e80ce939e1e01199
[ "BSD-3-Clause" ]
null
null
null
gyp/tests.gyp
chromium-googlesource-mirror/skia
983d158373c3ac8c18514481e80ce939e1e01199
[ "BSD-3-Clause" ]
null
null
null
# GYP file to build unit tests. { 'includes': [ 'apptype_console.gypi', 'common.gypi', ], 'targets': [ { 'target_name': 'tests', 'type': 'executable', 'include_dirs' : [ '../src/core', '../src/gpu', ], 'sources': [ '../tests/AAClipTest.cpp', '../tests/BitmapCopyTest.cpp', '../tests/BitmapGetColorTest.cpp', '../tests/BitSetTest.cpp', '../tests/BlitRowTest.cpp', '../tests/BlurTest.cpp', '../tests/CanvasTest.cpp', '../tests/ClampRangeTest.cpp', '../tests/ClipCubicTest.cpp', '../tests/ClipStackTest.cpp', '../tests/ClipperTest.cpp', '../tests/ColorFilterTest.cpp', '../tests/ColorTest.cpp', '../tests/DataRefTest.cpp', '../tests/DequeTest.cpp', '../tests/DrawBitmapRectTest.cpp', '../tests/EmptyPathTest.cpp', '../tests/FillPathTest.cpp', '../tests/FlateTest.cpp', '../tests/GeometryTest.cpp', '../tests/GLInterfaceValidation.cpp', '../tests/GLProgramsTest.cpp', '../tests/InfRectTest.cpp', '../tests/MathTest.cpp', '../tests/MatrixTest.cpp', '../tests/Matrix44Test.cpp', '../tests/MetaDataTest.cpp', '../tests/PackBitsTest.cpp', '../tests/PaintTest.cpp', '../tests/ParsePathTest.cpp', '../tests/PathCoverageTest.cpp', '../tests/PathMeasureTest.cpp', '../tests/PathTest.cpp', '../tests/PDFPrimitivesTest.cpp', '../tests/PointTest.cpp', '../tests/QuickRejectTest.cpp', '../tests/Reader32Test.cpp', '../tests/ReadPixelsTest.cpp', '../tests/RefDictTest.cpp', '../tests/RegionTest.cpp', '../tests/ScalarTest.cpp', '../tests/ShaderOpacityTest.cpp', '../tests/Sk64Test.cpp', '../tests/skia_test.cpp', '../tests/SortTest.cpp', '../tests/SrcOverTest.cpp', '../tests/StreamTest.cpp', '../tests/StringTest.cpp', '../tests/Test.cpp', '../tests/Test.h', '../tests/TestSize.cpp', '../tests/ToUnicode.cpp', '../tests/UnicodeTest.cpp', '../tests/UtilsTest.cpp', '../tests/WArrayTest.cpp', '../tests/WritePixelsTest.cpp', '../tests/Writer32Test.cpp', '../tests/XfermodeTest.cpp', ], 'dependencies': [ 'core.gyp:core', 'effects.gyp:effects', 'experimental.gyp:experimental', 'gpu.gyp:gr', 'gpu.gyp:skgr', 'images.gyp:images', 'ports.gyp:ports', 'pdf.gyp:pdf', 'utils.gyp:utils', ], }, ], } # Local Variables: # tab-width:2 # indent-tabs-mode:nil # End: # vim: set expandtab tabstop=2 shiftwidth=2:
29.547368
45
0.523335
245
2,807
5.979592
0.428571
0.305802
0.016382
0
0
0
0
0
0
0
0
0.005327
0.264339
2,807
94
46
29.861702
0.704116
0.045244
0
0.057471
0
0
0.631126
0.529368
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a13ad9824ff00746699483c552d40d3b83c83913
213
py
Python
paa191t1/tests/dijkstra/datastructs/test_dijkstra_structs_bucket.py
dmmoura/PAA-2021
435005f6494ece76f03807fb524e0d4a3e1d7222
[ "Apache-2.0" ]
null
null
null
paa191t1/tests/dijkstra/datastructs/test_dijkstra_structs_bucket.py
dmmoura/PAA-2021
435005f6494ece76f03807fb524e0d4a3e1d7222
[ "Apache-2.0" ]
null
null
null
paa191t1/tests/dijkstra/datastructs/test_dijkstra_structs_bucket.py
dmmoura/PAA-2021
435005f6494ece76f03807fb524e0d4a3e1d7222
[ "Apache-2.0" ]
null
null
null
from paa191t1.dijkstra.datastructs.buckets import Buckets from paa191t1.tests.dijkstra.datastructs.test_dijkstra_structs import TestStructsBase class TestStructsBuckets(TestStructsBase): struct = Buckets()
26.625
85
0.84507
22
213
8.090909
0.590909
0.134831
0
0
0
0
0
0
0
0
0
0.041451
0.093897
213
7
86
30.428571
0.880829
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
a148cd6c3112f125b3edb5968e224f88683d5d60
84
py
Python
examples/python/example_2.py
dom-lis/tulip
b9b5645b4233befc79729eeb3ba6f9b3ecb14553
[ "MIT" ]
2
2021-07-27T19:33:39.000Z
2021-12-23T19:45:30.000Z
examples/python/example_2.py
dom-lis/tulip
b9b5645b4233befc79729eeb3ba6f9b3ecb14553
[ "MIT" ]
null
null
null
examples/python/example_2.py
dom-lis/tulip
b9b5645b4233befc79729eeb3ba6f9b3ecb14553
[ "MIT" ]
null
null
null
from _cmn import flush_line for i in range(0, 2 ** 24): flush_line(f'{i:24b}')
16.8
27
0.642857
17
84
3
0.823529
0.352941
0
0
0
0
0
0
0
0
0
0.089552
0.202381
84
4
28
21
0.671642
0
0
0
0
0
0.083333
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a1570ac55adc6b4e9d852fecde987e3ff50053be
19
py
Python
zexture/__init__.py
auddy99/Gesture-Detection
1c221f89ab35ce8d1799fea3760d9c7bbe55fe8e
[ "MIT" ]
8
2022-02-14T17:59:05.000Z
2022-03-30T03:47:07.000Z
zexture/__init__.py
auddy99/Gesture-Detection
1c221f89ab35ce8d1799fea3760d9c7bbe55fe8e
[ "MIT" ]
3
2022-02-15T15:52:17.000Z
2022-02-15T17:18:19.000Z
zexture/__init__.py
auddy99/Gesture-Detection
1c221f89ab35ce8d1799fea3760d9c7bbe55fe8e
[ "MIT" ]
3
2022-02-15T16:24:49.000Z
2022-03-28T14:59:54.000Z
__version__="1.0.0"
19
19
0.736842
4
19
2.5
0.75
0
0
0
0
0
0
0
0
0
0
0.157895
0
19
1
19
19
0.368421
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a178bd885e06d9a6704a615de5bcc0d4a674a2e7
13,160
py
Python
ginn/models.py
BaoxueLi/GINN
5a383ea27e2c1c7898fb40c1b74c3734de3f4404
[ "Apache-2.0" ]
54
2019-05-07T13:10:17.000Z
2022-03-22T13:15:26.000Z
ginn/models.py
BaoxueLi/GINN
5a383ea27e2c1c7898fb40c1b74c3734de3f4404
[ "Apache-2.0" ]
7
2020-07-27T11:58:28.000Z
2022-03-22T13:30:02.000Z
ginn/models.py
BaoxueLi/GINN
5a383ea27e2c1c7898fb40c1b74c3734de3f4404
[ "Apache-2.0" ]
27
2019-09-14T16:48:02.000Z
2022-03-13T05:37:13.000Z
# Copyright 2019 Indro Spinelli. 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. # ============================================================================== import math import torch import numpy as np import torch.nn as nn from dgl import DGLGraph import dgl.function as fn import torch.nn.functional as F import torch.autograd as autograd from ginn.utils import proper_onehot, batch_mask from dgl.data import register_data_args, load_data class GCL(nn.Module): def __init__(self, g, in_feats, out_feats, activation, dropout, bias=True): super(GCL, self).__init__() self.g = g self.weight = nn.Parameter(torch.Tensor(in_feats, out_feats)) if bias: self.bias = nn.Parameter(torch.Tensor(out_feats)) else: self.bias = None self.activation = activation if dropout: self.dropout = nn.Dropout(p=dropout) else: self.dropout = 0.0 self.reset_parameters() def reset_parameters(self): stdv = 1.0 / math.sqrt(self.weight.size(1)) self.weight.data.uniform_(-stdv, stdv) if self.bias is not None: self.bias.data.uniform_(-stdv, stdv) def forward(self, h): if self.dropout: h = self.dropout(h) h = torch.matmul(h, self.weight) # normalization by square root of src degree h = h * self.g.ndata["norm"] self.g.ndata["h"] = h self.g.update_all(fn.copy_src(src="h", out="m"), fn.sum(msg="m", out="h")) h = self.g.ndata.pop("h") # normalization by square root of dst degree h = h * self.g.ndata["norm"] # bias if self.bias is not None: h = h + self.bias if self.activation: h = self.activation(h) return h class GCL_skip(nn.Module): def __init__(self, g, f, in_feats, out_feats, activation, dropout, bias=True): super(GCL_skip, self).__init__() self.g = g self.f = f self.wh = nn.Parameter(torch.Tensor(in_feats, out_feats)) self.ws = nn.Parameter(torch.Tensor(out_feats, out_feats)) if bias: self.bh = nn.Parameter(torch.Tensor(out_feats)) self.bs = nn.Parameter(torch.Tensor(out_feats)) else: self.bh = None self.bs = None self.activation = activation if dropout: self.dropout = nn.Dropout(p=dropout) else: self.dropout = 0.0 self.reset_parameters() def reset_parameters(self): stdv1 = 1.0 / math.sqrt(self.wh.size(1)) self.wh.data.uniform_(-stdv1, stdv1) if self.bh is not None: self.bh.data.uniform_(-stdv1, stdv1) stdv2 = 1.0 / math.sqrt(self.ws.size(1)) self.ws.data.uniform_(-stdv2, stdv2) if self.bs is not None: self.bs.data.uniform_(-stdv2, stdv2) def forward(self, h, s): if self.dropout: h = self.dropout(h) s = self.dropout(s) h = torch.matmul(h, self.wh) s = torch.matmul(s, self.ws) h = h * self.g.ndata["norm"] s = s * self.f.ndata["norm"] self.g.ndata["h"] = h self.f.ndata["s"] = s self.g.update_all(fn.copy_src(src="h", out="m"), fn.sum(msg="m", out="h")) self.f.update_all(fn.copy_src(src="s", out="m"), fn.sum(msg="m", out="s")) h = self.g.ndata.pop("h") s = self.f.ndata.pop("s") # normalization by square root of dst degree h = h * self.g.ndata["norm"] s = s * self.f.ndata["norm"] # bias if self.bh is not None: h = h + self.bh s = s + self.bs h = h + s if self.activation: h = self.activation(h) return h class GCL_skip_global(nn.Module): def __init__(self, g, f, in_feats, out_feats, activation, dropout, bias=True): super(GCL_skip_global, self).__init__() self.g = g self.f = f self.wh = nn.Parameter(torch.Tensor(in_feats, out_feats)) self.ws = nn.Parameter(torch.Tensor(out_feats, out_feats)) self.wm = nn.Parameter(torch.Tensor(out_feats, out_feats)) if bias: self.bh = nn.Parameter(torch.Tensor(out_feats)) self.bs = nn.Parameter(torch.Tensor(out_feats)) self.bm = nn.Parameter(torch.Tensor(out_feats)) else: self.bh = None self.bs = None self.bm = None self.activation = activation if dropout: self.dropout = nn.Dropout(p=dropout) else: self.dropout = 0.0 self.reset_parameters() def reset_parameters(self): stdv1 = 1.0 / math.sqrt(self.wh.size(1)) self.wh.data.uniform_(-stdv1, stdv1) if self.bh is not None: self.bh.data.uniform_(-stdv1, stdv1) stdv2 = 1.0 / math.sqrt(self.ws.size(1)) self.ws.data.uniform_(-stdv2, stdv2) if self.bs is not None: self.bs.data.uniform_(-stdv2, stdv2) stdv3 = 1.0 / math.sqrt(self.wm.size(1)) self.wm.data.uniform_(-stdv3, stdv3) if self.bm is not None: self.bm.data.uniform_(-stdv3, stdv3) def forward(self, h, s, m): if self.dropout: h = self.dropout(h) h = torch.matmul(h, self.wh) s = torch.matmul(s, self.ws) m = torch.matmul(m, self.wm) # normalization by square root of src degree h = h * self.g.ndata["norm"] s = s * self.f.ndata["norm"] self.g.ndata["h"] = h self.f.ndata["s"] = s self.g.update_all(fn.copy_src(src="h", out="m"), fn.sum(msg="m", out="h")) self.f.update_all(fn.copy_src(src="s", out="m"), fn.sum(msg="m", out="s")) h = self.g.ndata.pop("h") s = self.f.ndata.pop("s") # normalization by square root of dst degree h = h * self.g.ndata["norm"] s = s * self.f.ndata["norm"] # bias if self.bh is not None: h = h + self.bh s = s + self.bs m = m + self.bm # sum h = h + s + m if self.activation: h = self.activation(h) return h class GCL_global(nn.Module): def __init__(self, g, in_feats, out_feats, activation, dropout, bias=True): super(GCL_global, self).__init__() self.g = g self.wh = nn.Parameter(torch.Tensor(in_feats, out_feats)) self.wm = nn.Parameter(torch.Tensor(in_feats, out_feats)) if bias: self.bh = nn.Parameter(torch.Tensor(out_feats)) self.bm = nn.Parameter(torch.Tensor(out_feats)) else: self.bh = None self.bm = None self.activation = activation if dropout: self.dropout = nn.Dropout(p=dropout) else: self.dropout = 0.0 self.reset_parameters() def reset_parameters(self): stdvh = 1.0 / math.sqrt(self.wh.size(1)) self.wh.data.uniform_(-stdvh, stdvh) if self.bh is not None: self.bh.data.uniform_(-stdvh, stdvh) stdvm = 1.0 / math.sqrt(self.wm.size(1)) self.wm.data.uniform_(-stdvm, stdvm) if self.bm is not None: self.bm.data.uniform_(-stdvm, stdvm) def forward(self, h, m): if self.dropout: h = self.dropout(h) h = torch.matmul(h, self.wh) m = torch.matmul(m, self.wm) print(m.shape) # normalization by square root of src degree h = h * self.g.ndata["norm"] self.g.ndata["h"] = h self.g.update_all(fn.copy_src(src="h", out="m"), fn.sum(msg="m", out="h")) h = self.g.ndata.pop("h") # normalization by square root of dst degree h = h * self.g.ndata["norm"] # bias if self.bh is not None: h = h + self.bh m = m + self.bm h = h + m if self.activation: h = self.activation(h) return h class ginn_autoencoder(nn.Module): def __init__(self, g, mask, in_feats, h_feats, activation, dropout): super(ginn_autoencoder, self).__init__() self.mask = mask self.masked_gcn = GCL(g, in_feats, h_feats, activation, dropout) self.output_gcn = GCL(g, h_feats, in_feats, torch.sigmoid, dropout) def forward(self, features): features = torch.mul(features, self.mask) h = self.masked_gcn(features) h = self.output_gcn(h) return h class ginn_autoencoder_skip(nn.Module): def __init__(self, g, f, mask, in_feats, h_feats, activation, dropout): super(ginn_autoencoder_skip, self).__init__() self.mask = mask self.masked_gcn = GCL(g, in_feats, h_feats, activation, dropout) self.output_gcn = GCL_skip(g, f, h_feats, in_feats, torch.sigmoid, dropout) def forward(self, features): features = torch.mul(features, self.mask) h = self.masked_gcn(features) h = self.output_gcn(h, features) return h class ginn_autoencoder_global(nn.Module): def __init__(self, g, f, m, mask, in_feats, h_feats, activation, dropout): super(ginn_autoencoder_global, self).__init__() self.mask = mask self.m = m self.masked_gcn = GCL(g, in_feats, h_feats, activation, dropout) self.output_gcn = GCL_skip_global( g, f, h_feats, in_feats, torch.sigmoid, dropout ) def forward(self, features): features = torch.mul(features, self.mask) h = self.masked_gcn(features) h = self.output_gcn(h, features, self.m) return h class ginn_critic(nn.Module): def __init__(self, in_feats, h_feats, dropout): super(ginn_critic, self).__init__() self.linear1 = nn.Linear(in_feats, h_feats) self.linear2 = nn.Linear(h_feats, in_feats) self.linear3 = nn.Linear(in_feats, 1) self.relu = nn.ReLU() # self.relu = nn.LeakyReLU() if dropout: self.dropout = nn.Dropout(p=dropout) else: self.dropout = 0.0 def forward(self, features): h = self.relu(self.linear1(features)) if self.dropout: h = self.dropout(h) h = self.relu(self.linear2(h)) if self.dropout: h = self.dropout(h) h = self.linear3(h) return h def gradient_penalty(net, real_data, fake_data, device): alpha = torch.rand(real_data.shape[0], 1) alpha = alpha.expand(real_data.size()) alpha = alpha.to(device) interpolates = alpha * real_data + ((1 - alpha) * fake_data) interpolates = interpolates.to(device) interpolates = autograd.Variable(interpolates, requires_grad=True) c_interpolates = net(interpolates) gradients = autograd.grad( outputs=c_interpolates, inputs=interpolates, grad_outputs=torch.ones(c_interpolates.size()).to(device), create_graph=True, retain_graph=True, only_inputs=True, )[0] gradients = gradients.view(gradients.size(0), -1) gp = ((gradients.norm(2, dim=1) - 1) ** 2).mean() return gp def hard_gradient_penalty(net, real_data, fake_data, device): mask = torch.FloatTensor(real_data.shape).to(device).uniform_() > 0.5 inv_mask = ~mask mask, inv_mask = mask.float(), inv_mask.float() interpolates = mask * real_data + inv_mask * fake_data interpolates = interpolates.to(device) interpolates = autograd.Variable(interpolates, requires_grad=True) c_interpolates = net(interpolates) gradients = autograd.grad( outputs=c_interpolates, inputs=interpolates, grad_outputs=torch.ones(c_interpolates.size()).to(device), create_graph=True, retain_graph=True, only_inputs=True, )[0] gradients = gradients.view(gradients.size(0), -1) gp = (gradients.norm(2, dim=1) - 1).pow(2).mean() return gp def imputation(model, features, onehot_cat_cols): model.eval() with torch.no_grad(): imp = model(features) imp = imp.cpu() imp = proper_onehot(imp.numpy(), onehot_cat_cols) return imp def multiple_imputation(model, features, onehot_cat_cols, imputation_num): model.train() model.masked_gcn.dropout.p = 0.0 model.output_gcn.dropout.p = 0.1 tmp = [] with torch.no_grad(): for _ in range(imputation_num): imp = model(features) imp = imp.cpu() imp = proper_onehot(imp.numpy(), onehot_cat_cols) tmp.append(imp) m_imp = np.asarray(tmp).mean(axis=0) return m_imp
33.401015
83
0.586322
1,851
13,160
4.032415
0.115073
0.030145
0.016077
0.04716
0.774518
0.757637
0.723875
0.716104
0.692524
0.682878
0
0.010385
0.282903
13,160
393
84
33.486005
0.780545
0.076292
0
0.686901
0
0
0.006926
0
0
0
0
0
0
1
0.076677
false
0
0.031949
0
0.172524
0.003195
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a18a43cae2e5766cea73afc3192a5fce25296b79
320
py
Python
rsabreaker/key.py
Ender-90/rsabreaker
703b83f54dbbf663ae4cfbcd2c80467e7f0b80d3
[ "MIT" ]
null
null
null
rsabreaker/key.py
Ender-90/rsabreaker
703b83f54dbbf663ae4cfbcd2c80467e7f0b80d3
[ "MIT" ]
null
null
null
rsabreaker/key.py
Ender-90/rsabreaker
703b83f54dbbf663ae4cfbcd2c80467e7f0b80d3
[ "MIT" ]
null
null
null
class Key: def __init__(self, m, e): self.modulus = m self.exponent = e def set_modulus(self, m): self.modulus = m def set_exponent(self, e): self.exponent = e def get_modulus(self): return self.modulus def get_exponent(self): return self.exponent
18.823529
30
0.58125
43
320
4.139535
0.27907
0.185393
0.134831
0.179775
0
0
0
0
0
0
0
0
0.325
320
16
31
20
0.824074
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.416667
false
0
0
0.166667
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
a197936f1933dc98a18cbd6563444e9ac3a536fd
17
py
Python
fairseq_cli/interactive.py
theorm/fairseq
7a653108cded5aaa69910e9acc0bf9a628f2257b
[ "MIT" ]
5,129
2019-09-30T11:21:03.000Z
2022-03-31T22:35:12.000Z
fairseq_cli/interactive.py
rycolab/cpsbs
413c207957e57ac4f44086c9a0c25bef9f60a936
[ "BSD-3-Clause" ]
604
2019-10-05T00:39:46.000Z
2022-03-31T11:12:07.000Z
fairseq_cli/interactive.py
rycolab/cpsbs
413c207957e57ac4f44086c9a0c25bef9f60a936
[ "BSD-3-Clause" ]
1,034
2019-09-30T15:01:32.000Z
2022-03-31T06:14:50.000Z
../interactive.py
17
17
0.764706
2
17
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0
17
1
17
17
0.764706
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
a1c95a863c682f5200107f09d2f5b6760ad585c9
1,176
py
Python
spio/api/__init__.py
bsneade/statuspageio-python
30526a2984251885381e781b12b5070d46063537
[ "Apache-2.0" ]
2
2020-03-02T20:32:32.000Z
2020-05-20T16:54:58.000Z
spio/api/__init__.py
bsneade/statuspageio-python
30526a2984251885381e781b12b5070d46063537
[ "Apache-2.0" ]
null
null
null
spio/api/__init__.py
bsneade/statuspageio-python
30526a2984251885381e781b12b5070d46063537
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis into api package from spio.api.component_groups_api import ComponentGroupsApi from spio.api.components_api import ComponentsApi from spio.api.incident_postmortem_api import IncidentPostmortemApi from spio.api.incident_subscribers_api import IncidentSubscribersApi from spio.api.incident_templates_api import IncidentTemplatesApi from spio.api.incident_updates_api import IncidentUpdatesApi from spio.api.incidents_api import IncidentsApi from spio.api.metric_providers_api import MetricProvidersApi from spio.api.metrics_api import MetricsApi from spio.api.page_access_group_components_api import PageAccessGroupComponentsApi from spio.api.page_access_groups_api import PageAccessGroupsApi from spio.api.page_access_user_components_api import PageAccessUserComponentsApi from spio.api.page_access_user_metrics_api import PageAccessUserMetricsApi from spio.api.page_access_users_api import PageAccessUsersApi from spio.api.pages_api import PagesApi from spio.api.status_embed_config_api import StatusEmbedConfigApi from spio.api.subscribers_api import SubscribersApi from spio.api.users_api import UsersApi
49
82
0.892857
159
1,176
6.327044
0.314465
0.143141
0.196819
0.074553
0.112326
0.049702
0
0
0
0
0
0.000918
0.07398
1,176
23
83
51.130435
0.922865
0.034864
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
a1c9e46e388bc5cc082019fab41c13008ca0bdfd
212
py
Python
cuppa/modules/__init__.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
25
2015-09-24T07:04:45.000Z
2022-02-19T03:31:03.000Z
cuppa/modules/__init__.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
46
2015-05-20T12:48:12.000Z
2022-01-10T10:38:55.000Z
cuppa/modules/__init__.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
13
2015-07-12T09:55:03.000Z
2021-07-02T15:32:12.000Z
# Copyright Jamie Allsop 2011-2015 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt)
26.5
60
0.688679
32
212
4.4375
0.75
0.042254
0.126761
0.169014
0
0
0
0
0
0
0
0.085366
0.226415
212
7
61
30.285714
0.780488
0.900943
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a1d770583efebb8051741954edcf661bae9e4976
1,404
py
Python
spid_cie_oidc/onboarding/tests/revocation_request_settings.py
francescatronconi/spid-cie-oidc-django
7244811a832e9ea486f6ce83cf0dbd6156478516
[ "Apache-2.0" ]
null
null
null
spid_cie_oidc/onboarding/tests/revocation_request_settings.py
francescatronconi/spid-cie-oidc-django
7244811a832e9ea486f6ce83cf0dbd6156478516
[ "Apache-2.0" ]
null
null
null
spid_cie_oidc/onboarding/tests/revocation_request_settings.py
francescatronconi/spid-cie-oidc-django
7244811a832e9ea486f6ce83cf0dbd6156478516
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy REVOCATION_REQUEST = { "client_assertion": "eyJhbGciOiJIUzpXVCJ9.eyJzdWIdHJ1ZX0.LVyRDPVJm0S9q", "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", "client_id": "https://rp.spid.agid.gov.it", "token" : "eyJhbGciOiJSUzI1NiJ9.eyR9.FXDtEzDLbTHzFNroW7w27RLk" } REVOCATION_REQUEST_NO_CLIENT_ASSERTION = deepcopy(REVOCATION_REQUEST) REVOCATION_REQUEST_NO_CLIENT_ASSERTION.pop("client_assertion") REVOCATION_REQUEST_NO_CORRECT_CLIENT_ASSERTION = deepcopy(REVOCATION_REQUEST) REVOCATION_REQUEST_NO_CORRECT_CLIENT_ASSERTION["client_assertion"] = ".payload." REVOCATION_REQUEST_NO_CLIENT_ASSERTION_TYPE = deepcopy(REVOCATION_REQUEST) REVOCATION_REQUEST_NO_CLIENT_ASSERTION_TYPE.pop("client_assertion_type") REVOCATION_REQUEST_NO_CORRECT_CLIENT_ASSERTION_TYPE = deepcopy(REVOCATION_REQUEST) REVOCATION_REQUEST_NO_CORRECT_CLIENT_ASSERTION_TYPE["client_assertion_type"] = "" REVOCATION_REQUEST_NO_CLIENT_ID = deepcopy(REVOCATION_REQUEST) REVOCATION_REQUEST_NO_CLIENT_ID.pop("client_id") REVOCATION_REQUEST_NO_CORRECT_CLIENT_ID = deepcopy(REVOCATION_REQUEST) REVOCATION_REQUEST_NO_CORRECT_CLIENT_ID["client_id"] = "" REVOCATION_REQUEST_NO_TOKEN = deepcopy(REVOCATION_REQUEST) REVOCATION_REQUEST_NO_TOKEN.pop("token") REVOCATION_REQUEST_NO_CORRECT_TOKEN = deepcopy(REVOCATION_REQUEST) REVOCATION_REQUEST_NO_CORRECT_TOKEN["token"] = ".."
42.545455
86
0.855413
168
1,404
6.595238
0.196429
0.383574
0.274368
0.252708
0.719314
0.640794
0.519856
0.392599
0.193141
0
0
0.008321
0.058405
1,404
32
87
43.875
0.829803
0
0
0
0
0
0.245014
0.153846
0
0
0
0
0.434783
1
0
false
0
0.043478
0
0.043478
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
a1ec916eeabc104a2b06f543de32dcf78b626f4b
211
py
Python
redbrick/repo/__init__.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2020-11-26T04:25:15.000Z
2020-11-26T04:25:15.000Z
redbrick/repo/__init__.py
redbrick-ai/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
33
2021-02-04T17:51:53.000Z
2022-03-17T07:28:36.000Z
redbrick/repo/__init__.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2021-06-09T10:06:35.000Z
2021-06-09T10:06:35.000Z
"""Initialize repo module.""" from .export import ExportRepo from .labeling import LabelingRepo from .learning import LearningRepo, Learning2Repo from .upload import UploadRepo from .project import ProjectRepo
26.375
49
0.819905
24
211
7.208333
0.666667
0
0
0
0
0
0
0
0
0
0
0.005376
0.118483
211
7
50
30.142857
0.924731
0.109005
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
a1f5bdf5d012485c0d59735322ab392c46a28549
286
py
Python
User Input/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
User Input/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
User Input/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
fName = input("\nwhat is your first name? ").strip().capitalize() mName = input("\nwhat is your middle name? ").strip().capitalize() lName = input("\nwhat is your last name? ").strip().capitalize() print(f"\nHello World, My name is {fName:s} {mName:.1s} {lName:s}, Happy to see you.")
47.666667
86
0.671329
44
286
4.363636
0.545455
0.15625
0.1875
0.25
0
0
0
0
0
0
0
0.004016
0.129371
286
5
87
57.2
0.767068
0
0
0
0
0.25
0.548951
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a1f8fe0d2441887bcd3b4ecc0391323fba02e963
1,526
py
Python
web/transiq/team/migrations/0100_auto_20180618_1302.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/team/migrations/0100_auto_20180618_1302.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/team/migrations/0100_auto_20180618_1302.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.5 on 2018-06-18 13:02 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('team', '0099_auto_20180618_1151'), ] operations = [ migrations.RenameField( model_name='creditnotecustomerdirectadvance', old_name='supplier', new_name='broker', ), migrations.RenameField( model_name='creditnotesupplier', old_name='supplier', new_name='broker', ), migrations.RenameField( model_name='debitnotesupplier', old_name='supplier', new_name='broker', ), migrations.RenameField( model_name='debitnotesupplierdirectadvance', old_name='supplier', new_name='broker', ), migrations.RenameField( model_name='historicalcreditnotecustomerdirectadvance', old_name='supplier', new_name='broker', ), migrations.RenameField( model_name='historicalcreditnotesupplier', old_name='supplier', new_name='broker', ), migrations.RenameField( model_name='historicaldebitnotesupplier', old_name='supplier', new_name='broker', ), migrations.RenameField( model_name='historicaldebitnotesupplierdirectadvance', old_name='supplier', new_name='broker', ), ]
28.259259
67
0.566186
116
1,526
7.215517
0.344828
0.200717
0.248507
0.286738
0.518519
0.518519
0.485066
0.485066
0.485066
0.485066
0
0.030482
0.333552
1,526
53
68
28.792453
0.792527
0.029489
0
0.680851
1
0
0.250845
0.148749
0
0
0
0
0
1
0
false
0
0.021277
0
0.085106
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b81b7cda5c99a4cfa132e2fbdf796bc354630ea7
109
py
Python
course-2:combining-building-blocks/subject-3:objects/lesson-7.0:Fibonacci puzzle.py
regnart-tech-club/python
069df070059de662d4104de8192e45407a7e94ce
[ "Apache-2.0" ]
null
null
null
course-2:combining-building-blocks/subject-3:objects/lesson-7.0:Fibonacci puzzle.py
regnart-tech-club/python
069df070059de662d4104de8192e45407a7e94ce
[ "Apache-2.0" ]
null
null
null
course-2:combining-building-blocks/subject-3:objects/lesson-7.0:Fibonacci puzzle.py
regnart-tech-club/python
069df070059de662d4104de8192e45407a7e94ce
[ "Apache-2.0" ]
1
2016-04-03T00:53:37.000Z
2016-04-03T00:53:37.000Z
# Implement the Fibonacci function as a functor. # Be sure to write automated tests for your implementation.
36.333333
59
0.798165
16
109
5.4375
1
0
0
0
0
0
0
0
0
0
0
0
0.165138
109
2
60
54.5
0.956044
0.954128
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
62b3c39e2a8dbef06beaa3875962200f3d136119
86
py
Python
src/setup/run.py
Gabscurioshop/trentaudio
7ad62908c9e280f6142832e08ab62ade65a475e7
[ "MIT" ]
null
null
null
src/setup/run.py
Gabscurioshop/trentaudio
7ad62908c9e280f6142832e08ab62ade65a475e7
[ "MIT" ]
9
2021-05-08T03:24:16.000Z
2021-05-08T03:30:35.000Z
src/setup/run.py
Gabscurioshop/trentaudio
7ad62908c9e280f6142832e08ab62ade65a475e7
[ "MIT" ]
null
null
null
#Sets up and populates db import createdb import createtables createdb createtables
10.75
25
0.837209
11
86
6.545455
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.151163
86
7
26
12.285714
0.986301
0.27907
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
62beaf9daa66d9722d7747b8a9569005b93451e6
104
py
Python
twobuntu/news/admin.py
muhiza/originarities
ca0a67363579e6237127386f13baa2ab7a7c2717
[ "Apache-2.0" ]
16
2015-01-12T12:25:28.000Z
2021-06-22T03:23:44.000Z
twobuntu/news/admin.py
muhiza/originarities
ca0a67363579e6237127386f13baa2ab7a7c2717
[ "Apache-2.0" ]
5
2015-01-02T01:23:40.000Z
2015-10-22T06:11:40.000Z
twobuntu/news/admin.py
muhiza/originarities
ca0a67363579e6237127386f13baa2ab7a7c2717
[ "Apache-2.0" ]
11
2015-01-27T06:23:45.000Z
2020-05-20T11:46:12.000Z
from django.contrib import admin from twobuntu.news.models import Item admin.site.register(Item)
17.333333
38
0.778846
15
104
5.4
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.153846
104
5
39
20.8
0.920455
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
62c3504735357b1bcaff4747774155c82a4e21d5
103
py
Python
direct_messages/admin.py
Buttonupd/Mistergram
5b25f38bf87681e27f522feecf6b7cbd9831ea3d
[ "MIT" ]
null
null
null
direct_messages/admin.py
Buttonupd/Mistergram
5b25f38bf87681e27f522feecf6b7cbd9831ea3d
[ "MIT" ]
4
2020-06-06T01:51:36.000Z
2022-03-12T00:32:25.000Z
direct_messages/admin.py
Buttonupd/Mistergram
5b25f38bf87681e27f522feecf6b7cbd9831ea3d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import DirectMessage admin.site.register(DirectMessage)
20.6
34
0.84466
13
103
6.692308
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.097087
103
5
34
20.6
0.935484
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
62c400982df5af2645aff6934d826c8c318d907b
175
py
Python
tests_extra/__init__.py
victor-torres/web-poet
f2dce80c7c7fc0f3652270843bf01c9b957c4709
[ "BSD-3-Clause" ]
null
null
null
tests_extra/__init__.py
victor-torres/web-poet
f2dce80c7c7fc0f3652270843bf01c9b957c4709
[ "BSD-3-Clause" ]
null
null
null
tests_extra/__init__.py
victor-torres/web-poet
f2dce80c7c7fc0f3652270843bf01c9b957c4709
[ "BSD-3-Clause" ]
null
null
null
""" This test package was created separately to see the behavior of retrieving the Override rules declared on a registry where @handle_urls is defined on another package. """
29.166667
78
0.794286
27
175
5.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.16
175
5
79
35
0.938776
0.948571
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
62c7dd21f4ccb213ab2cca2c794b9281be2eec1d
169
py
Python
{{cookiecutter.project_name}}/tests/test_dummy.py
deogracia/cookiecutter-python
e170c01c9cd4ea43b7157c90f5f1596d9792c465
[ "BSD-3-Clause-Clear" ]
null
null
null
{{cookiecutter.project_name}}/tests/test_dummy.py
deogracia/cookiecutter-python
e170c01c9cd4ea43b7157c90f5f1596d9792c465
[ "BSD-3-Clause-Clear" ]
null
null
null
{{cookiecutter.project_name}}/tests/test_dummy.py
deogracia/cookiecutter-python
e170c01c9cd4ea43b7157c90f5f1596d9792c465
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Test dummy.""" class TestDummy: """Test à supprimer/modifier.""" def test_version(self) -> None: """Function de test.""" assert 1 + 1 == 2
16.9
36
0.538462
20
169
4.5
0.8
0
0
0
0
0
0
0
0
0
0
0.02459
0.278107
169
9
37
18.777778
0.713115
0.331361
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
62d0fb8fd4b61e19818db5a923132378f64ee22f
66
py
Python
solutions/hello.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
solutions/hello.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
solutions/hello.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
# https://open.kattis.com/problems/hello print "Hello World!"
16.5
41
0.69697
9
66
5.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.136364
66
3
42
22
0.807018
0.575758
0
0
0
0
0.521739
0
0
0
0
0
0
0
null
null
0
0
null
null
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
62dd0caf71ae39a9a21f5bbced0c22c8a7504ad5
343
py
Python
asper/admin.py
anshumanprajapatiap/thasperteam
4593584dd8560dbf1e8ac39c8b4135234a87d9f6
[ "MIT" ]
1
2020-08-03T15:18:37.000Z
2020-08-03T15:18:37.000Z
asper/admin.py
anshumanprajapatiap/thasperteam
4593584dd8560dbf1e8ac39c8b4135234a87d9f6
[ "MIT" ]
null
null
null
asper/admin.py
anshumanprajapatiap/thasperteam
4593584dd8560dbf1e8ac39c8b4135234a87d9f6
[ "MIT" ]
2
2020-05-13T21:39:50.000Z
2020-05-14T07:51:13.000Z
from django.contrib import admin from .models import * from import_export.admin import ImportExportModelAdmin # Register your models here. @admin.register(UserDetail, FirstTask,Project, DesignAssignment, DesignSubmit, WebAssignment, WebSubmit,AppAssignment, AppSubmit, UserSkills, UserPort) class ViewAdmin(ImportExportModelAdmin): pass
34.3
151
0.830904
35
343
8.114286
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.102041
343
10
152
34.3
0.922078
0.075802
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.666667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
62e75aaffadc6186839a24a199106f4b3dc32bc2
19
py
Python
blesuite/__init__.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
198
2016-08-04T05:45:38.000Z
2022-02-17T08:30:58.000Z
blesuite/__init__.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
13
2018-02-04T14:16:16.000Z
2020-10-09T02:16:24.000Z
blesuite/__init__.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
57
2016-08-08T04:24:04.000Z
2022-01-24T08:43:02.000Z
__version__ = "2.0"
19
19
0.684211
3
19
3
1
0
0
0
0
0
0
0
0
0
0
0.117647
0.105263
19
1
19
19
0.411765
0
0
0
0
0
0.15
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
62eff6d778e2497cad5ee9f51148c047fdd3d7ae
192
py
Python
pyntcloud/geometry/models/base.py
BrianPugh/pyntcloud
0169c0349cdb785391160b16aadf6cac4dc957f3
[ "MIT" ]
5
2019-11-22T15:23:33.000Z
2021-03-15T10:33:54.000Z
pyntcloud/geometry/models/base.py
BrianPugh/pyntcloud
0169c0349cdb785391160b16aadf6cac4dc957f3
[ "MIT" ]
null
null
null
pyntcloud/geometry/models/base.py
BrianPugh/pyntcloud
0169c0349cdb785391160b16aadf6cac4dc957f3
[ "MIT" ]
1
2019-05-02T17:46:46.000Z
2019-05-02T17:46:46.000Z
from abc import ABC, abstractmethod class GeometryModel(ABC): @abstractmethod def from_k_points(self): pass @abstractmethod def get_projections(self): pass
14.769231
35
0.671875
21
192
6
0.619048
0.269841
0
0
0
0
0
0
0
0
0
0
0.265625
192
12
36
16
0.893617
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.125
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
a7de9211598fe7a68e62de448d9e262a5d644e4e
322
py
Python
djangomaster/factories.py
kpekepoh/django-aww
f18dc11474b856bd70bb8dbc3acf39be6ea881d0
[ "MIT" ]
null
null
null
djangomaster/factories.py
kpekepoh/django-aww
f18dc11474b856bd70bb8dbc3acf39be6ea881d0
[ "MIT" ]
7
2015-01-19T07:25:33.000Z
2015-01-20T02:04:34.000Z
djangomaster/factories.py
kpekepoh/django-aww
f18dc11474b856bd70bb8dbc3acf39be6ea881d0
[ "MIT" ]
null
null
null
import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'Test_User_%s' % n) password = factory.PostGenerationMethodCall('set_password', 'adm1n') email = factory.Sequence(lambda n: 'Test_User_%s@example.com' % n) class Meta: model = 'auth.User'
29.272727
72
0.71118
38
322
5.894737
0.605263
0.133929
0.1875
0.196429
0.276786
0.276786
0.276786
0
0
0
0
0.003731
0.167702
322
10
73
32.2
0.83209
0
0
0
0
0
0.192547
0.074534
0
0
0
0
0
1
0
false
0.142857
0.142857
0
0.857143
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
c5195432fa13d91f64b5cbafe32ae5da10bac6ff
296
py
Python
docs/source/i16sim/diffcalc/log.py
DanPorter/i16sim
45da212e43aaa583901f69eb4b19bfb27018d179
[ "Apache-2.0" ]
2
2021-09-10T09:12:14.000Z
2021-09-12T16:16:42.000Z
docs/source/i16sim/diffcalc/log.py
DanPorter/i16sim
45da212e43aaa583901f69eb4b19bfb27018d179
[ "Apache-2.0" ]
null
null
null
docs/source/i16sim/diffcalc/log.py
DanPorter/i16sim
45da212e43aaa583901f69eb4b19bfb27018d179
[ "Apache-2.0" ]
1
2021-09-12T16:18:39.000Z
2021-09-12T16:18:39.000Z
"""Logging configuration.""" import getpass import logging logging.basicConfig( format="%(asctime)s %(levelname)s:%(name)s:%(message)s", datefmt="%m/%d/%Y %I:%M:%S", #filename="/tmp/diffcalc_%s.log" % getpass.getuser(), filename="/tmp/diffcalc_s.log", level=logging.DEBUG, )
24.666667
60
0.652027
39
296
4.897436
0.589744
0.115183
0.198953
0.209424
0.240838
0
0
0
0
0
0
0
0.128378
296
11
61
26.909091
0.74031
0.253378
0
0
0
0
0.381395
0.15814
0
0
0
0
0
1
0
true
0.125
0.25
0
0.25
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
c51f735ce68e65a698ad38b7450ce334e899ce19
85
py
Python
scrapy_headless/__init__.py
ly95/scrapy-headless
cbc2c0731445b27ca2b7659aec5b3370bf964526
[ "BSD-3-Clause" ]
23
2020-03-02T11:52:39.000Z
2022-03-28T13:51:58.000Z
scrapy_headless/__init__.py
ly95/scrapy-headless
cbc2c0731445b27ca2b7659aec5b3370bf964526
[ "BSD-3-Clause" ]
4
2020-02-11T13:38:26.000Z
2021-04-28T07:46:17.000Z
scrapy_headless/__init__.py
ly95/scrapy-headless
cbc2c0731445b27ca2b7659aec5b3370bf964526
[ "BSD-3-Clause" ]
7
2020-02-22T20:47:30.000Z
2021-11-09T15:08:14.000Z
from .request import HeadlessRequest from .downloader import HeadlessDownloadHandler
28.333333
47
0.882353
8
85
9.375
0.75
0
0
0
0
0
0
0
0
0
0
0
0.094118
85
2
48
42.5
0.974026
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c55589527ba3d47a02418765a6d6ba23f5c1488c
501
py
Python
markup/IParser.py
MarkGotham/Taking-Form
6130a56d180aae36a7903e423078e287cfa92b55
[ "MIT" ]
7
2019-09-11T04:07:58.000Z
2022-02-24T07:43:11.000Z
markup/IParser.py
MarkGotham/Taking-Form
6130a56d180aae36a7903e423078e287cfa92b55
[ "MIT" ]
5
2019-08-15T17:50:53.000Z
2020-04-27T08:35:58.000Z
markup/IParser.py
MarkGotham/Taking-Form
6130a56d180aae36a7903e423078e287cfa92b55
[ "MIT" ]
3
2019-12-19T08:08:04.000Z
2022-01-07T21:51:56.000Z
from abc import ABCMeta, abstractmethod from Annotation import Annotation class IParser: __metaclass__ = ABCMeta @abstractmethod def load(self, inputFile : str) -> None: raise NotImplementedError() @abstractmethod def parse(self): raise NotImplementedError() @abstractmethod def getAnnotations(self) -> [Annotation]: raise NotImplementedError() @abstractmethod def getScoreEnd(self) -> (int, int): raise NotImplementedError()
20.875
45
0.682635
43
501
7.860465
0.488372
0.201183
0.337278
0.363905
0
0
0
0
0
0
0
0
0.237525
501
23
46
21.782609
0.884817
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
c55bed7f3537e233c60acaef92d740bd3722cc1f
135
py
Python
old_tests/test_scorer.py
croots/codon_tools
b9adf6143e731d10969f8d5491fbcbc2f8892525
[ "MIT" ]
4
2017-04-28T02:05:11.000Z
2021-06-24T10:59:41.000Z
old_tests/test_scorer.py
croots/codon_tools
b9adf6143e731d10969f8d5491fbcbc2f8892525
[ "MIT" ]
null
null
null
old_tests/test_scorer.py
croots/codon_tools
b9adf6143e731d10969f8d5491fbcbc2f8892525
[ "MIT" ]
3
2018-02-01T12:11:02.000Z
2021-12-09T18:36:39.000Z
def test(seq, target_seq): scorer = CodonFreqScorer() scorer.set_codon_freqs_from_seq(target_seq) print(scorer.score(seq))
27
47
0.740741
19
135
4.947368
0.631579
0.191489
0.255319
0
0
0
0
0
0
0
0
0
0.148148
135
4
48
33.75
0.817391
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0.25
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
c56a02c080158fdd76aa360256e358600f71e4c1
1,267
py
Python
apps/weapons/migrations/0001_initial.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
null
null
null
apps/weapons/migrations/0001_initial.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
11
2020-06-06T01:51:51.000Z
2022-02-10T14:31:21.000Z
apps/weapons/migrations/0001_initial.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.7 on 2019-12-15 12:15 from django.db import migrations, models import django_mysql.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Weapon', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=100, unique=True)), ('family', models.CharField(max_length=100)), ('slot', models.CharField(max_length=20)), ('type', models.CharField(max_length=20)), ('noise_level', models.CharField(max_length=20)), ('fire_rate', models.CharField(max_length=10)), ('accuracy', models.CharField(max_length=10)), ('magazine_size', models.CharField(max_length=10)), ('max_ammo', models.CharField(max_length=10)), ('reload_time', models.CharField(max_length=10)), ('disposition', models.CharField(max_length=100)), ('trigger_type', models.CharField(max_length=100)), ('pattern', django_mysql.models.JSONField(default=dict)), ], ), ]
36.2
76
0.572218
130
1,267
5.415385
0.438462
0.255682
0.306818
0.409091
0.460227
0
0
0
0
0
0
0.047672
0.288082
1,267
34
77
37.264706
0.732816
0.035517
0
0
1
0
0.095082
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.222222
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3d7248295fe08824328489da397682988f4aef56
1,813
py
Python
notebook/pandas_str_replace_strip_etc.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/pandas_str_replace_strip_etc.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/pandas_str_replace_strip_etc.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import pandas as pd s = pd.Series([' a-a-x ', ' b-x-b ', ' x-c-c ']) print(s) # 0 a-a-x # 1 b-x-b # 2 x-c-c # dtype: object s_new = s.str.replace('x', 'z') print(s_new) # 0 a-a-z # 1 b-z-b # 2 z-c-c # dtype: object df = pd.DataFrame([[' a-a-x-1 ', ' a-a-x-2 '], [' b-x-b-1 ', ' b-x-b-2 '], [' x-c-c-1 ', ' x-c-c-2 ']], columns=['col1', 'col2']) print(df) # col1 col2 # 0 a-a-x-1 a-a-x-2 # 1 b-x-b-1 b-x-b-2 # 2 x-c-c-1 x-c-c-2 df['col1'] = df['col1'].str.replace('x', 'z') print(df) # col1 col2 # 0 a-a-z-1 a-a-x-2 # 1 b-z-b-1 b-x-b-2 # 2 z-c-c-1 x-c-c-2 s_new = s.str.strip() print(s_new) # 0 a-a-x # 1 b-x-b # 2 x-c-c # dtype: object s_new = s.str.strip(' x') print(s_new) # 0 a-a- # 1 b-x-b # 2 -c-c # dtype: object df['col1'] = df['col1'].str.strip() print(df) # col1 col2 # 0 a-a-z-1 a-a-x-2 # 1 b-z-b-1 b-x-b-2 # 2 z-c-c-1 x-c-c-2 s_new = s.str.lstrip() print(s_new) # 0 a-a-x # 1 b-x-b # 2 x-c-c # dtype: object s_new = s.str.rstrip() print(s_new) # 0 a-a-x # 1 b-x-b # 2 x-c-c # dtype: object s = pd.Series(['Hello World', 'hello world', 'HELLO WORLD']) print(s) # 0 Hello World # 1 hello world # 2 HELLO WORLD # dtype: object s_new = s.str.lower() print(s_new) # 0 hello world # 1 hello world # 2 hello world # dtype: object s_new = s.str.upper() print(s_new) # 0 HELLO WORLD # 1 HELLO WORLD # 2 HELLO WORLD # dtype: object s_new = s.str.capitalize() print(s_new) # 0 Hello world # 1 Hello world # 2 Hello world # dtype: object s_new = s.str.title() print(s_new) # 0 Hello World # 1 Hello World # 2 Hello World # dtype: object
17.601942
60
0.491451
378
1,813
2.309524
0.089947
0.082474
0.041237
0.045819
0.819015
0.712486
0.684994
0.665521
0.630011
0.609393
0
0.06245
0.311087
1,813
102
61
17.77451
0.636509
0.498621
0
0.4375
0
0
0.161972
0
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
0.4375
0
0
0
null
0
0
0
1
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
3d7b71a27aad9b3b38a162f20f40766bd759d62a
107
py
Python
ogc_search/service_inventory/apps.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
null
null
null
ogc_search/service_inventory/apps.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
30
2019-11-19T22:29:48.000Z
2022-03-31T15:37:24.000Z
ogc_search/service_inventory/apps.py
open-data/ogc_search
cd089ce6fa1113710989299fc0cc663c5ef40e3c
[ "MIT" ]
1
2020-07-15T16:13:06.000Z
2020-07-15T16:13:06.000Z
from django.apps import AppConfig class SearchInventoryConfig(AppConfig): name = 'service_inventory'
17.833333
39
0.794393
11
107
7.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.140187
107
5
40
21.4
0.913043
0
0
0
0
0
0.158879
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
3d7be53c5174cd4350ff105a6ba71d2435052ef1
2,439
py
Python
staircase/core/arrays/__init__.py
staircase-dev/staircase
4fe88151295a6db00b1498d0dc4327a0c3abb3cf
[ "MIT" ]
11
2021-08-14T06:30:48.000Z
2022-01-04T09:09:43.000Z
staircase/core/arrays/__init__.py
staircase-dev/staircase
4fe88151295a6db00b1498d0dc4327a0c3abb3cf
[ "MIT" ]
55
2021-08-22T01:53:21.000Z
2021-12-21T03:28:11.000Z
staircase/core/arrays/__init__.py
staircase-dev/staircase
4fe88151295a6db00b1498d0dc4327a0c3abb3cf
[ "MIT" ]
10
2021-08-25T02:01:09.000Z
2021-11-23T10:31:12.000Z
import pandas as pd # registers the accessor with pandas import staircase.core.arrays.accessor # noqa from staircase.constants import inf from staircase.core.arrays import docstrings from staircase.core.arrays.extension import StairsArray from staircase.util._decorators import Appender @Appender(docstrings.make_docstring("toplevel", "agg"), join="\n", indents=1) def agg(collection, func): return StairsArray(collection).agg(func) @Appender(docstrings.make_docstring("toplevel", "max"), join="\n", indents=1) def max(collection): # noqa return StairsArray(collection).max() @Appender(docstrings.make_docstring("toplevel", "min"), join="\n", indents=1) def min(collection): # noqa return StairsArray(collection).min() @Appender(docstrings.make_docstring("toplevel", "mean"), join="\n", indents=1) def mean(collection): return StairsArray(collection).mean() @Appender(docstrings.make_docstring("toplevel", "median"), join="\n", indents=1) def median(collection): return StairsArray(collection).median() @Appender(docstrings.make_docstring("toplevel", "sum"), join="\n", indents=1) def sum(collection): # noqa return StairsArray(collection).sum() @Appender(docstrings.make_docstring("toplevel", "logical_or"), join="\n", indents=1) def logical_or(collection): return StairsArray(collection).logical_or() @Appender(docstrings.make_docstring("toplevel", "logical_and"), join="\n", indents=1) def logical_and(collection): return StairsArray(collection).logical_and() @Appender(docstrings.make_docstring("toplevel", "corr"), join="\n", indents=1) def corr(collection, where=(-inf, inf)): return pd.Series(collection, dtype="Stairs").sc.corr(where) @Appender(docstrings.make_docstring("toplevel", "cov"), join="\n", indents=1) def cov(collection, where=(-inf, inf)): return pd.Series(collection, dtype="Stairs").sc.cov(where) @Appender(docstrings.make_docstring("toplevel", "limit"), join="\n", indents=1) def limit(collection, x, side="right"): return pd.Series(collection, dtype="Stairs").sc.limit(x, side) @Appender(docstrings.make_docstring("toplevel", "sample"), join="\n", indents=1) def sample(collection, x): return pd.Series(collection, dtype="Stairs").sc.sample(x) @Appender(docstrings.make_docstring("toplevel", "plot"), join="\n", indents=1) def plot(collection, ax=None, **kwargs): return pd.Series(collection, dtype="Stairs").sc.plot(ax, **kwargs)
32.959459
85
0.732677
311
2,439
5.681672
0.18328
0.132428
0.161856
0.22807
0.674024
0.256367
0.128466
0.065648
0.065648
0.065648
0
0.005912
0.098401
2,439
73
86
33.410959
0.797635
0.02214
0
0
0
0
0.096679
0
0
0
0
0
0
1
0.288889
false
0
0.133333
0.288889
0.711111
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
3d81206364fc60c50f740cdacb9675daa8c45c85
130
py
Python
001/summing.py
linuxbytes/bitesofpy
e376783c0d1c33d96326bf3bb589bb43bac3592e
[ "Unlicense" ]
1
2019-10-10T15:00:47.000Z
2019-10-10T15:00:47.000Z
001/summing.py
linuxbytes/bitesofpy
e376783c0d1c33d96326bf3bb589bb43bac3592e
[ "Unlicense" ]
null
null
null
001/summing.py
linuxbytes/bitesofpy
e376783c0d1c33d96326bf3bb589bb43bac3592e
[ "Unlicense" ]
null
null
null
def sum_numbers(numbers=None): if numbers == None: return sum(range(101)) else: return sum(numbers)
18.571429
31
0.576923
16
130
4.625
0.5625
0.27027
0
0
0
0
0
0
0
0
0
0.033708
0.315385
130
6
32
21.666667
0.797753
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
3d94a892a468d7eb964db084981d49b1c63da84b
220
py
Python
src/01_ventanagrafica.py
ZeroGuess/Platzi-Curso-de-Python-2019
2e7c3914c4129e132df0b35f611ecc09fa013627
[ "BSD-3-Clause" ]
3
2021-05-29T23:30:31.000Z
2021-06-05T15:18:46.000Z
src/01_ventanagrafica.py
ZeroGuess/Platzi-Curso-de-Python-2019
2e7c3914c4129e132df0b35f611ecc09fa013627
[ "BSD-3-Clause" ]
null
null
null
src/01_ventanagrafica.py
ZeroGuess/Platzi-Curso-de-Python-2019
2e7c3914c4129e132df0b35f611ecc09fa013627
[ "BSD-3-Clause" ]
2
2021-06-04T20:23:05.000Z
2021-06-05T15:18:48.000Z
import turtle window = turtle.Screen() dave = turtle.Turtle() dave.forward(50) dave.left(90) dave.forward(50) dave.left(90) dave.forward(50) dave.left(90) dave.forward(50) dave.left(90) turtle.mainloop()
14.666667
25
0.690909
34
220
4.470588
0.294118
0.289474
0.342105
0.447368
0.605263
0.605263
0.605263
0.605263
0.605263
0.605263
0
0.085562
0.15
220
14
26
15.714286
0.727273
0
0
0.666667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3da460fa027b4b0db1e9d79027dd729c3661497a
113
py
Python
Host_software/Compression/compression_statistics/compression_test_run_wireless/clean_inter_format.py
amjadmajid/stork
73f8a6710fb8ed44c2812c0670ff5d4bf7ce383a
[ "BSD-3-Clause" ]
3
2017-12-08T11:52:45.000Z
2021-11-21T08:23:03.000Z
Host_software/Compression/compression_statistics/compression_test_run_wireless/clean_inter_format.py
amjadmajid/stork
73f8a6710fb8ed44c2812c0670ff5d4bf7ce383a
[ "BSD-3-Clause" ]
2
2018-09-13T09:46:36.000Z
2018-09-13T09:49:39.000Z
Host_software/Compression/compression_statistics/compression_test_run_wireless/clean_inter_format.py
amjadmajid/stork
73f8a6710fb8ed44c2812c0670ff5d4bf7ce383a
[ "BSD-3-Clause" ]
2
2017-01-26T18:13:20.000Z
2018-09-11T12:14:35.000Z
from __future__ import print_function for line in open("run-wireless.hex"): print (line[9:len(line)-2], end="")
28.25
37
0.725664
19
113
4.052632
0.842105
0
0
0
0
0
0
0
0
0
0
0.019802
0.106195
113
3
38
37.666667
0.742574
0
0
0
0
0
0.141593
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
4
3daf81b7cf93201b4ce8463a5caef51644cbd657
25
py
Python
plugin/core/version.py
litezzzout/LSP
27be3cbb9c0c16fd37c422441bff987da2e5b8d0
[ "MIT" ]
1
2021-06-14T21:11:06.000Z
2021-06-14T21:11:06.000Z
plugin/core/version.py
litezzzout/LSP
27be3cbb9c0c16fd37c422441bff987da2e5b8d0
[ "MIT" ]
1
2021-06-16T03:54:11.000Z
2021-06-16T04:45:09.000Z
plugin/core/version.py
litezzzout/LSP
27be3cbb9c0c16fd37c422441bff987da2e5b8d0
[ "MIT" ]
null
null
null
__version__ = (1, 14, 0)
12.5
24
0.6
4
25
2.75
1
0
0
0
0
0
0
0
0
0
0
0.2
0.2
25
1
25
25
0.35
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3dff3a864ed41b0b357b3339456db667d11d5051
707
py
Python
Exercicios - py/ex009.py
RonyFonseca/python
36080c5407d9439f212d95a15ba6e603056470b3
[ "MIT" ]
null
null
null
Exercicios - py/ex009.py
RonyFonseca/python
36080c5407d9439f212d95a15ba6e603056470b3
[ "MIT" ]
null
null
null
Exercicios - py/ex009.py
RonyFonseca/python
36080c5407d9439f212d95a15ba6e603056470b3
[ "MIT" ]
null
null
null
numero_tabu = int(input("Qual o número que você quer ver a tabuada?:")) print("="*20) print("{} X 0 = {}".format(numero_tabu,numero_tabu*0)) print("{} X 1 = {}".format(numero_tabu,numero_tabu*1)) print("{} X 2 = {}".format(numero_tabu,numero_tabu*2)) print("{} X 3 = {}".format(numero_tabu,numero_tabu*3)) print("{} X 4 = {}".format(numero_tabu,numero_tabu*4)) print("{} X 5 = {}".format(numero_tabu,numero_tabu*5)) print("{} X 6 = {}".format(numero_tabu,numero_tabu*6)) print("{} X 7 = {}".format(numero_tabu,numero_tabu*7)) print("{} X 8 = {}".format(numero_tabu,numero_tabu*8)) print("{} X 9 = {}".format(numero_tabu,numero_tabu*9)) print("{} X 10 = {}".format(numero_tabu,numero_tabu*10)) print("="*20)
47.133333
71
0.656294
116
707
3.801724
0.241379
0.521542
0.399093
0.548753
0.648526
0
0
0
0
0
0
0.043818
0.096181
707
14
72
50.5
0.646322
0
0
0.142857
0
0
0.236209
0
0
0
0
0
0
1
0
false
0
0
0
0
0.928571
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
9aa991db8e05dd237fdf12882c641cd1deb06ba3
334
py
Python
binary_search.py
coldmanck/dsa-py
0f406f5b967fa09a6257f3953d3072e5facbc204
[ "MIT" ]
null
null
null
binary_search.py
coldmanck/dsa-py
0f406f5b967fa09a6257f3953d3072e5facbc204
[ "MIT" ]
null
null
null
binary_search.py
coldmanck/dsa-py
0f406f5b967fa09a6257f3953d3072e5facbc204
[ "MIT" ]
null
null
null
def binary_search(arr, n): return _binary_search(sorted(arr), n, 0, len(arr) - 1) def _binary_search(arr, n, start, end): if start > end: return 0 mid = int((start + end) / 2) if n == arr[mid]: return 1 elif n < arr[mid]: return _binary_search(arr, n, start, mid - 1) else: return _binary_search(arr, n, mid + 1, end)
22.266667
55
0.640719
59
334
3.474576
0.305085
0.292683
0.292683
0.312195
0.44878
0
0
0
0
0
0
0.026415
0.206587
334
14
56
23.857143
0.74717
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0.083333
0.583333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
9aa9da7629bc0e140fe1cd02eb162806e3e0b526
170
py
Python
volaupload/__init__.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
8
2017-02-19T00:24:24.000Z
2021-02-08T23:52:42.000Z
volaupload/__init__.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
4
2015-01-19T08:09:07.000Z
2018-09-11T21:57:06.000Z
volaupload/__init__.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
2
2015-12-19T11:04:48.000Z
2017-04-20T12:55:33.000Z
""" RealDolos' funky volafile upload tool""" # pylint: disable=broad-except from ._version import __version__ from .main import main __all__ = ['__version__', 'main']
18.888889
44
0.735294
20
170
5.6
0.7
0
0
0
0
0
0
0
0
0
0
0
0.141176
170
8
45
21.25
0.767123
0.394118
0
0
0
0
0.15625
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
9ab8bceaac12d073676e24c20e0c61272532a67b
236
py
Python
Numpy practice/Numpy10.py
Macorov/Numpy-Python-Practice
0aa296ed690dd0da8f19e7a456a8a665cec94aeb
[ "MIT" ]
null
null
null
Numpy practice/Numpy10.py
Macorov/Numpy-Python-Practice
0aa296ed690dd0da8f19e7a456a8a665cec94aeb
[ "MIT" ]
null
null
null
Numpy practice/Numpy10.py
Macorov/Numpy-Python-Practice
0aa296ed690dd0da8f19e7a456a8a665cec94aeb
[ "MIT" ]
null
null
null
import numpy as np s = np.array([[12,41,3,13,312,77],[1,42,913,865,5,21]]) print(s.sum()) print(s.sum(axis=0)) print(s.sum(axis=1)) print(s.mean()) print(s.mean(axis=0)) print(s.mean(axis=1)) print(s.min(axis=0)) print(s.min())
23.6
56
0.622881
53
236
2.773585
0.45283
0.326531
0.183673
0.22449
0
0
0
0
0
0
0
0.13615
0.097458
236
10
57
23.6
0.553991
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.8
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
9af1a8e3c8285c3e3da8440e483bc1b72ac26a08
240
py
Python
VQ2D/detectron2_extensions/__init__.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
27
2021-10-16T02:39:17.000Z
2022-03-31T11:16:11.000Z
VQ2D/detectron2_extensions/__init__.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
5
2022-03-23T04:53:36.000Z
2022-03-29T23:39:07.000Z
VQ2D/detectron2_extensions/__init__.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
13
2021-11-25T19:17:29.000Z
2022-03-25T14:01:47.000Z
from .config import get_cfg from .layers import ( kl_div, triplet_margin, binary_cross_entropy, binary_cross_entropy_with_logits, ) from .modeling.meta_arch import SiameseRCNN from .modeling.roi_heads import SiameseROIHeads
24
47
0.795833
32
240
5.625
0.6875
0.122222
0.2
0
0
0
0
0
0
0
0
0
0.154167
240
9
48
26.666667
0.8867
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.444444
0
0.444444
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9af950702a2ebb5f6336a283e2251b1ee7d247bf
340
py
Python
Webpage/arbeitsstunden/management/commands/importData.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/management/commands/importData.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/management/commands/importData.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand from arbeitsstunden.management.commands.utils.csv import importCSV class Command(BaseCommand): help = "Import the given csv Files (ONLY FOR GIVEN STRUCT)" def add_arguments(self, parser): pass def handle(self, *args, **options): importCSV()
21.25
66
0.688235
40
340
5.825
0.75
0
0
0
0
0
0
0
0
0
0
0
0.226471
340
15
67
22.666667
0.885932
0
0
0
0
0
0.147493
0
0
0
0
0
0
1
0.25
false
0.125
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
1
0
1
0
0
4
b13c2519e4ff5a929885fb4965b5e5f85d36756c
184
py
Python
seleniumpm/webelements/label.py
dougPhilips/python-seleniumpm
4ddff760cd4486bfd48efdb77e33fb4574dc0e5d
[ "Apache-2.0" ]
2
2020-01-13T14:41:08.000Z
2020-01-29T10:21:04.000Z
seleniumpm/webelements/label.py
dougPhilips/python-seleniumpm
4ddff760cd4486bfd48efdb77e33fb4574dc0e5d
[ "Apache-2.0" ]
1
2018-05-29T14:47:55.000Z
2018-05-29T14:47:55.000Z
seleniumpm/webelements/label.py
dougPhilips/python-seleniumpm
4ddff760cd4486bfd48efdb77e33fb4574dc0e5d
[ "Apache-2.0" ]
null
null
null
from seleniumpm.webelements.element import Element class Label(Element): def __init__(self, driver, locator): super(Label, self).__init__(driver=driver, locator=locator)
26.285714
67
0.75
22
184
5.909091
0.590909
0.2
0
0
0
0
0
0
0
0
0
0
0.146739
184
6
68
30.666667
0.828025
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
b190101fe8214f3725cd2b8f5e26810b9554029c
28,530
py
Python
test/test_punt.py
lfntac/vpp
75ae1027c8418225c08c247354b384ac2412f137
[ "Apache-2.0" ]
null
null
null
test/test_punt.py
lfntac/vpp
75ae1027c8418225c08c247354b384ac2412f137
[ "Apache-2.0" ]
null
null
null
test/test_punt.py
lfntac/vpp
75ae1027c8418225c08c247354b384ac2412f137
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import binascii import random import socket import os import threading import struct from struct import unpack, unpack_from try: import unittest2 as unittest except ImportError: import unittest from util import ppp, ppc from re import compile import scapy.compat from scapy.packet import Raw from scapy.layers.l2 import Ether from scapy.layers.inet import IP, UDP, ICMP import scapy.layers.inet6 as inet6 from scapy.layers.inet6 import IPv6, ICMPv6DestUnreach import six from framework import VppTestCase, VppTestRunner from vpp_ip import DpoProto from vpp_ip_route import VppIpRoute, VppRoutePath # Format MAC Address def get_mac_addr(bytes_addr): return ':'.join('%02x' % scapy.compat.orb(b) for b in bytes_addr) # Format IP Address def ipv4(bytes_addr): return '.'.join('%d' % scapy.compat.orb(b) for b in bytes_addr) # Unpack Ethernet Frame def ethernet_frame(data): dest_mac, src_mac, proto = struct.unpack('! 6s 6s H', data[:14]) return dest_mac, src_mac, socket.htons(proto), data[14:] # Unpack IPv4 Packets def ipv4_packet(data): proto, src, target = struct.unpack('! 8x 1x B 2x 4s 4s', data[:20]) return proto, src, target, data[20:] # Unpack IPv6 Packets def ipv6_packet(data): nh, src, target = struct.unpack('! 6x B 1x 16s 16s', data[:40]) return nh, src, target, data[40:] # Unpacks any UDP Packet def udp_seg(data): src_port, dest_port, size = struct.unpack('! H H 2x H', data[:8]) return src_port, dest_port, size, data[8:] # Unpacks any TCP Packet def tcp_seg(data): src_port, dest_port, seq, flag = struct.unpack('! H H L 4x H', data[:14]) return src_port, dest_port, seq, data[((flag >> 12) * 4):] def receivePackets(sock, counters): # Wait for some packets on socket while True: data = sock.recv(65536) # punt socket metadata # packet_desc = data[0:8] # Ethernet _, _, eth_proto, data = ethernet_frame(data[8:]) # Ipv4 if eth_proto == 8: proto, _, _, data = ipv4_packet(data) # TCP if proto == 6: _, dst_port, _, data = udp_seg(data) # UDP elif proto == 17: _, dst_port, _, data = udp_seg(data) counters[dst_port] = 0 # Ipv6 elif eth_proto == 0xdd86: nh, _, _, data = ipv6_packet(data) # TCP if nh == 6: _, dst_port, _, data = udp_seg(data) # UDP elif nh == 17: _, dst_port, _, data = udp_seg(data) counters[dst_port] = 0 class serverSocketThread(threading.Thread): """ Socket server thread""" def __init__(self, threadID, sockName, counters): threading.Thread.__init__(self) self.threadID = threadID self.sockName = sockName self.sock = None self.counters = counters def run(self): self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) try: os.unlink(self.sockName) except: pass self.sock.bind(self.sockName) receivePackets(self.sock, self.counters) class TestPuntSocket(VppTestCase): """ Punt Socket """ ports = [1111, 2222, 3333, 4444] sock_servers = list() portsCheck = dict() nr_packets = 256 @classmethod def setUpClass(cls): super(TestPuntSocket, cls).setUpClass() @classmethod def tearDownClass(cls): super(TestPuntSocket, cls).tearDownClass() @classmethod def setUpConstants(cls): cls.extra_vpp_punt_config = [ "punt", "{", "socket", cls.tempdir+"/socket_punt", "}"] super(TestPuntSocket, cls).setUpConstants() def setUp(self): super(TestPuntSocket, self).setUp() random.seed() self.create_pg_interfaces(range(2)) for i in self.pg_interfaces: i.admin_up() def tearDown(self): del self.sock_servers[:] super(TestPuntSocket, self).tearDown() def socket_client_create(self, sock_name, id=None): thread = serverSocketThread(id, sock_name, self.portsCheck) self.sock_servers.append(thread) thread.start() def socket_client_close(self): for thread in self.sock_servers: thread.sock.close() class TestIP4PuntSocket(TestPuntSocket): """ Punt Socket for IPv4 """ @classmethod def setUpClass(cls): super(TestIP4PuntSocket, cls).setUpClass() @classmethod def tearDownClass(cls): super(TestIP4PuntSocket, cls).tearDownClass() def setUp(self): super(TestIP4PuntSocket, self).setUp() for i in self.pg_interfaces: i.config_ip4() i.resolve_arp() def tearDown(self): super(TestIP4PuntSocket, self).tearDown() for i in self.pg_interfaces: i.unconfig_ip4() i.admin_down() def test_punt_socket_dump(self): """ Punt socket registration/deregistration""" punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 0) # # configure a punt socket # self.vapi.punt_socket_register(1111, b"%s/socket_punt_1111" % six.ensure_binary(self.tempdir)) self.vapi.punt_socket_register(2222, b"%s/socket_punt_2222" % six.ensure_binary(self.tempdir)) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 2) self.assertEqual(punts[0].punt.l4_port, 1111) self.assertEqual(punts[1].punt.l4_port, 2222) # # deregister a punt socket # self.vapi.punt_socket_deregister(1111) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 1) # # configure a punt socket again # self.vapi.punt_socket_register(1111, b"%s/socket_punt_1111" % six.ensure_binary(self.tempdir)) self.vapi.punt_socket_register(3333, b"%s/socket_punt_3333" % six.ensure_binary(self.tempdir)) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 3) # # deregister all punt socket # self.vapi.punt_socket_deregister(1111) self.vapi.punt_socket_deregister(2222) self.vapi.punt_socket_deregister(3333) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 0) def test_punt_socket_traffic_single_port_single_socket(self): """ Punt socket traffic single port single socket""" port = self.ports[0] p = (Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) / IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) / UDP(sport=9876, dport=port) / Raw('\xa5' * 100)) pkts = p * self.nr_packets self.portsCheck[port] = self.nr_packets punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 0) # # expect ICMP - port unreachable for all packets # self.vapi.cli("clear trace") self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() # FIXME - when punt socket deregister is implemented # rx = self.pg0.get_capture(self.nr_packets) # for p in rx: # self.assertEqual(int(p[IP].proto), 1) # ICMP # self.assertEqual(int(p[ICMP].code), 3) # unreachable # # configure a punt socket # self.socket_client_create(b"%s/socket_%d" % ( six.ensure_binary(self.tempdir), port)) self.vapi.punt_socket_register(port, b"%s/socket_%d" % ( six.ensure_binary(self.tempdir), port)) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 1) self.logger.debug("Sending %s packets to port %d", str(self.portsCheck[port]), port) # # expect punt socket and no packets on pg0 # self.vapi.cli("clear errors") self.vapi.cli("clear trace") self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() self.pg0.get_capture(0) self.logger.info(self.vapi.cli("show trace")) self.socket_client_close() self.assertEqual(self.portsCheck[port], 0) # # remove punt socket. expect ICMP - port unreachable for all packets # self.vapi.punt_socket_deregister(port) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 0) self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() # FIXME - when punt socket deregister is implemented # self.pg0.get_capture(nr_packets) def test_punt_socket_traffic_multi_port_multi_sockets(self): """ Punt socket traffic multi ports and multi sockets""" for p in self.ports: self.portsCheck[p] = 0 # # create stream with random packets count per given ports # pkts = list() for _ in range(0, self.nr_packets): # choose port from port list p = random.choice(self.ports) pkts.append(( Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) / IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) / UDP(sport=9876, dport=p) / Raw('\xa5' * 100))) self.portsCheck[p] += 1 # # no punt socket # punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 0) # # configure a punt socket # for p in self.ports: self.socket_client_create(b"%s/socket_%d" % ( six.ensure_binary(self.tempdir), p)) self.vapi.punt_socket_register(p, b"%s/socket_%d" % ( six.ensure_binary(self.tempdir), p)) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), len(self.ports)) for p in self.ports: self.logger.debug("Sending %s packets to port %d", str(self.portsCheck[p]), p) # # expect punt socket and no packets on pg0 # self.vapi.cli("clear errors") self.vapi.cli("clear trace") self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() self.pg0.get_capture(0) self.logger.info(self.vapi.cli("show trace")) self.socket_client_close() for p in self.ports: self.assertEqual(self.portsCheck[p], 0) self.vapi.punt_socket_deregister(p) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 0) def test_punt_socket_traffic_multi_ports_single_socket(self): """ Punt socket traffic multi ports and single socket""" for p in self.ports: self.portsCheck[p] = 0 # # create stream with random packets count per given ports # pkts = list() for _ in range(0, self.nr_packets): # choose port from port list p = random.choice(self.ports) pkts.append(( Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) / IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) / UDP(sport=9876, dport=p) / Raw('\xa5' * 100))) self.portsCheck[p] += 1 # # no punt socket # punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 0) # configure a punt socket # self.socket_client_create(b"%s/socket_multi" % six.ensure_binary(self.tempdir)) for p in self.ports: self.vapi.punt_socket_register(p, b"%s/socket_multi" % six.ensure_binary(self.tempdir)) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), len(self.ports)) for p in self.ports: self.logger.debug("Sending %s packets to port %d", str(self.portsCheck[p]), p) # # expect punt socket and no packets on pg0 # self.vapi.cli("clear errors") self.vapi.cli("clear trace") self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() self.pg0.get_capture(0) self.logger.info(self.vapi.cli("show trace")) self.socket_client_close() for p in self.ports: self.assertEqual(self.portsCheck[p], 0) self.vapi.punt_socket_deregister(p) punts = self.vapi.punt_socket_dump(is_ip6=0) self.assertEqual(len(punts), 0) class TestIP6PuntSocket(TestPuntSocket): """ Punt Socket for IPv6""" @classmethod def setUpClass(cls): super(TestIP6PuntSocket, cls).setUpClass() @classmethod def tearDownClass(cls): super(TestIP6PuntSocket, cls).tearDownClass() def setUp(self): super(TestIP6PuntSocket, self).setUp() for i in self.pg_interfaces: i.config_ip6() i.resolve_ndp() def tearDown(self): super(TestIP6PuntSocket, self).tearDown() for i in self.pg_interfaces: i.unconfig_ip6() i.admin_down() def test_punt_socket_dump(self): """ Punt socket registration """ punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 0) # # configure a punt socket # self.vapi.punt_socket_register(1111, b"%s/socket_1111" % six.ensure_binary(self.tempdir), is_ip4=0) self.vapi.punt_socket_register(2222, b"%s/socket_2222" % six.ensure_binary(self.tempdir), is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 2) self.assertEqual(punts[0].punt.l4_port, 1111) self.assertEqual(punts[1].punt.l4_port, 2222) # # deregister a punt socket # self.vapi.punt_socket_deregister(1111, is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 1) # # configure a punt socket again # self.vapi.punt_socket_register(1111, b"%s/socket_1111" % six.ensure_binary(self.tempdir), is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 2) # # deregister all punt socket # self.vapi.punt_socket_deregister(1111, is_ip4=0) self.vapi.punt_socket_deregister(2222, is_ip4=0) self.vapi.punt_socket_deregister(3333, is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 0) def test_punt_socket_traffic_single_port_single_socket(self): """ Punt socket traffic single port single socket""" port = self.ports[0] p = (Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) / IPv6(src=self.pg0.remote_ip6, dst=self.pg0.local_ip6) / inet6.UDP(sport=9876, dport=port) / Raw('\xa5' * 100)) pkts = p * self.nr_packets self.portsCheck[port] = self.nr_packets punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 0) # # expect ICMPv6 - destination unreachable for all packets # self.vapi.cli("clear trace") self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() # FIXME - when punt socket deregister is implemented # rx = self.pg0.get_capture(self.nr_packets) # for p in rx: # self.assertEqual(int(p[IPv6].nh), 58) # ICMPv6 # self.assertEqual(int(p[ICMPv6DestUnreach].code),4) # unreachable # # configure a punt socket # self.socket_client_create(b"%s/socket_%d" % ( six.ensure_binary(self.tempdir), port)) self.vapi.punt_socket_register(port, b"%s/socket_%d" % ( six.ensure_binary(self.tempdir), port), is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 1) self.logger.debug("Sending %s packets to port %d", str(self.portsCheck[port]), port) # # expect punt socket and no packets on pg0 # self.vapi.cli("clear errors") self.vapi.cli("clear trace") self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() self.pg0.get_capture(0) self.logger.info(self.vapi.cli("show trace")) self.socket_client_close() self.assertEqual(self.portsCheck[port], 0) # # remove punt socket. expect ICMP - dest. unreachable for all packets # self.vapi.punt_socket_deregister(port, is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 0) self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() # FIXME - when punt socket deregister is implemented # self.pg0.get_capture(nr_packets) def test_punt_socket_traffic_multi_port_multi_sockets(self): """ Punt socket traffic multi ports and multi sockets""" for p in self.ports: self.portsCheck[p] = 0 # # create stream with random packets count per given ports # pkts = list() for _ in range(0, self.nr_packets): # choose port from port list p = random.choice(self.ports) pkts.append(( Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) / IPv6(src=self.pg0.remote_ip6, dst=self.pg0.local_ip6) / inet6.UDP(sport=9876, dport=p) / Raw('\xa5' * 100))) self.portsCheck[p] += 1 # # no punt socket # punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 0) # # configure a punt socket # for p in self.ports: self.socket_client_create(b"%s/socket_%d" % ( six.ensure_binary(self.tempdir), p)) self.vapi.punt_socket_register(p, b"%s/socket_%d" % ( six.ensure_binary(self.tempdir), p), is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), len(self.ports)) for p in self.ports: self.logger.debug("Sending %s packets to port %d", str(self.portsCheck[p]), p) # # expect punt socket and no packets on pg0 # self.vapi.cli("clear errors") self.vapi.cli("clear trace") self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() self.pg0.get_capture(0) self.logger.info(self.vapi.cli("show trace")) self.socket_client_close() for p in self.ports: self.assertEqual(self.portsCheck[p], 0) self.vapi.punt_socket_deregister(p, is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 0) def test_punt_socket_traffic_multi_ports_single_socket(self): """ Punt socket traffic multi ports and single socket""" for p in self.ports: self.portsCheck[p] = 0 # # create stream with random packets count per given ports # pkts = list() for _ in range(0, self.nr_packets): # choose port from port list p = random.choice(self.ports) pkts.append(( Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) / IPv6(src=self.pg0.remote_ip6, dst=self.pg0.local_ip6) / inet6.UDP(sport=9876, dport=p) / Raw('\xa5' * 100))) self.portsCheck[p] += 1 # # no punt socket # punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 0) # # configure a punt socket # self.socket_client_create(b"%s/socket_multi" % six.ensure_binary(self.tempdir)) for p in self.ports: self.vapi.punt_socket_register(p, b"%s/socket_multi" % six.ensure_binary(self.tempdir), is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), len(self.ports)) for p in self.ports: self.logger.debug("Send %s packets to port %d", str(self.portsCheck[p]), p) # # expect punt socket and no packets on pg0 # self.vapi.cli("clear errors") self.vapi.cli("clear trace") self.pg0.add_stream(pkts) self.pg_enable_capture(self.pg_interfaces) self.pg_start() self.pg0.get_capture(0) self.logger.info(self.vapi.cli("show trace")) self.socket_client_close() for p in self.ports: self.assertEqual(self.portsCheck[p], 0) self.vapi.punt_socket_deregister(p, is_ip4=0) punts = self.vapi.punt_socket_dump(is_ip6=1) self.assertEqual(len(punts), 0) class TestPunt(VppTestCase): """ Punt Test Case """ @classmethod def setUpClass(cls): super(TestPunt, cls).setUpClass() @classmethod def tearDownClass(cls): super(TestPunt, cls).tearDownClass() def setUp(self): super(TestPunt, self).setUp() self.create_pg_interfaces(range(4)) for i in self.pg_interfaces: i.admin_up() i.config_ip4() i.resolve_arp() i.config_ip6() i.resolve_ndp() def tearDown(self): for i in self.pg_interfaces: i.unconfig_ip4() i.unconfig_ip6() i.ip6_disable() i.admin_down() super(TestPunt, self).tearDown() def test_punt(self): """ Excpetion Path testing """ # # Using the test CLI we will hook in a exception path to # send ACL deny packets out of pg0 and pg1. # the ACL is src,dst = 1.1.1.1,1.1.1.2 # ip_1_1_1_2 = VppIpRoute(self, "1.1.1.2", 32, [VppRoutePath(self.pg3.remote_ip4, self.pg3.sw_if_index)]) ip_1_1_1_2.add_vpp_config() ip_1_2 = VppIpRoute(self, "1::2", 128, [VppRoutePath(self.pg3.remote_ip6, self.pg3.sw_if_index, proto=DpoProto.DPO_PROTO_IP6)], is_ip6=1) ip_1_2.add_vpp_config() p4 = (Ether(src=self.pg2.remote_mac, dst=self.pg2.local_mac) / IP(src="1.1.1.1", dst="1.1.1.2") / UDP(sport=1234, dport=1234) / Raw('\xa5' * 100)) p6 = (Ether(src=self.pg2.remote_mac, dst=self.pg2.local_mac) / IPv6(src="1::1", dst="1::2") / UDP(sport=1234, dport=1234) / Raw('\xa5' * 100)) self.send_and_expect(self.pg2, p4*1, self.pg3) self.send_and_expect(self.pg2, p6*1, self.pg3) # # apply the punting features # self.vapi.cli("test punt pg2") # # pkts now dropped # self.send_and_assert_no_replies(self.pg2, p4*65) self.send_and_assert_no_replies(self.pg2, p6*65) # # Check state: # 1 - node error counters # 2 - per-reason counters # 2, 3 are the index of the assigned punt reason # stats = self.statistics.get_counter( "/err/punt-dispatch/No registrations") self.assertEqual(stats, 130) stats = self.statistics.get_counter("/net/punt") self.assertEqual(stats[0][2]['packets'], 65) self.assertEqual(stats[0][3]['packets'], 65) # # use the test CLI to test a client that punts exception # packets out of pg0 # self.vapi.cli("test punt pg0 %s" % self.pg0.remote_ip4) self.vapi.cli("test punt pg0 %s" % self.pg0.remote_ip6) rx4s = self.send_and_expect(self.pg2, p4*65, self.pg0) rx6s = self.send_and_expect(self.pg2, p6*65, self.pg0) # # check the packets come out IP unmodified but destined to pg0 host # for rx in rx4s: self.assertEqual(rx[Ether].dst, self.pg0.remote_mac) self.assertEqual(rx[Ether].src, self.pg0.local_mac) self.assertEqual(p4[IP].dst, rx[IP].dst) self.assertEqual(p4[IP].ttl, rx[IP].ttl) for rx in rx6s: self.assertEqual(rx[Ether].dst, self.pg0.remote_mac) self.assertEqual(rx[Ether].src, self.pg0.local_mac) self.assertEqual(p6[IPv6].dst, rx[IPv6].dst) self.assertEqual(p6[IPv6].hlim, rx[IPv6].hlim) stats = self.statistics.get_counter("/net/punt") self.assertEqual(stats[0][2]['packets'], 2*65) self.assertEqual(stats[0][3]['packets'], 2*65) # # add another registration for the same reason to send packets # out of pg1 # self.vapi.cli("test punt pg1 %s" % self.pg1.remote_ip4) self.vapi.cli("test punt pg1 %s" % self.pg1.remote_ip6) self.vapi.cli("clear trace") self.pg2.add_stream(p4 * 65) self.pg_enable_capture(self.pg_interfaces) self.pg_start() rxd = self.pg0.get_capture(65) for rx in rxd: self.assertEqual(rx[Ether].dst, self.pg0.remote_mac) self.assertEqual(rx[Ether].src, self.pg0.local_mac) self.assertEqual(p4[IP].dst, rx[IP].dst) self.assertEqual(p4[IP].ttl, rx[IP].ttl) rxd = self.pg1.get_capture(65) for rx in rxd: self.assertEqual(rx[Ether].dst, self.pg1.remote_mac) self.assertEqual(rx[Ether].src, self.pg1.local_mac) self.assertEqual(p4[IP].dst, rx[IP].dst) self.assertEqual(p4[IP].ttl, rx[IP].ttl) self.vapi.cli("clear trace") self.pg2.add_stream(p6 * 65) self.pg_enable_capture(self.pg_interfaces) self.pg_start() rxd = self.pg0.get_capture(65) for rx in rxd: self.assertEqual(rx[Ether].dst, self.pg0.remote_mac) self.assertEqual(rx[Ether].src, self.pg0.local_mac) self.assertEqual(p6[IPv6].dst, rx[IPv6].dst) self.assertEqual(p6[IPv6].hlim, rx[IPv6].hlim) rxd = self.pg1.get_capture(65) for rx in rxd: self.assertEqual(rx[Ether].dst, self.pg1.remote_mac) self.assertEqual(rx[Ether].src, self.pg1.local_mac) self.assertEqual(p6[IPv6].dst, rx[IPv6].dst) self.assertEqual(p6[IPv6].hlim, rx[IPv6].hlim) stats = self.statistics.get_counter("/net/punt") self.assertEqual(stats[0][2]['packets'], 3*65) self.assertEqual(stats[0][3]['packets'], 3*65) self.logger.info(self.vapi.cli("show vlib graph punt-dispatch")) self.logger.info(self.vapi.cli("show punt client")) self.logger.info(self.vapi.cli("show punt reason")) self.logger.info(self.vapi.cli("show punt stats")) self.logger.info(self.vapi.cli("show punt db")) self.vapi.cli("test punt clear") if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)
33.485915
79
0.574168
3,640
28,530
4.343956
0.088462
0.067038
0.04174
0.062611
0.777195
0.750822
0.733051
0.706236
0.689793
0.665444
0
0.035953
0.312688
28,530
851
80
33.525264
0.770412
0.109008
0
0.687037
0
0
0.045366
0.000834
0
0
0.000238
0.001175
0.131481
1
0.07037
false
0.001852
0.040741
0.003704
0.140741
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b19083d37012fd81dbad51a2cc82b8205923d7a9
2,118
py
Python
app/api/cms/schema/user.py
zyjImmortal/lin-cms-flask
9df43a168d763c7cf5b5cd992228f7ea98dc394a
[ "MIT" ]
null
null
null
app/api/cms/schema/user.py
zyjImmortal/lin-cms-flask
9df43a168d763c7cf5b5cd992228f7ea98dc394a
[ "MIT" ]
null
null
null
app/api/cms/schema/user.py
zyjImmortal/lin-cms-flask
9df43a168d763c7cf5b5cd992228f7ea98dc394a
[ "MIT" ]
null
null
null
import re from typing import List, Optional from lin import BaseModel, ParameterError from pydantic import Field, validator from . import EmailSchema, GroupIdListSchema, ResetPasswordSchema class LoginSchema(BaseModel): username: str = Field(description="用户名") password: str = Field(description="密码") captcha: Optional[str] = Field(description="验证码") class LoginTokenSchema(BaseModel): access_token: str = Field(description="access_token") refresh_token: str = Field(description="refresh_token") class CaptchaSchema(BaseModel): image: str = Field("", description="验证码图片base64编码") tag: str = Field("", description="验证码标记码") class PermissionNameSchema(BaseModel): name: str = Field(description="权限名称") class PermissionModuleSchema(BaseModel): module: List[PermissionNameSchema] = Field(description="权限模块") class UserBaseInfoSchema(EmailSchema): nickname: Optional[str] = Field(description="用户昵称", min_length=2, max_length=10) avatar: Optional[str] = Field(description="头像url") class UserSchema(UserBaseInfoSchema): id: int = Field(description="用户id") username: str = Field(description="用户名") class UserPermissionSchema(UserSchema): admin: bool = Field(description="是否是管理员") permissions: List[PermissionModuleSchema] = Field(description="用户权限") class ChangePasswordSchema(ResetPasswordSchema): old_password: str = Field(description="旧密码") class UserRegisterSchema(GroupIdListSchema, EmailSchema): username: str = Field(description="用户名", min_length=2, max_length=10) password: str = Field(description="密码", min_length=6, max_length=22) confirm_password: str = Field(description="确认密码", min_length=6, max_length=22) @validator("confirm_password") def passwords_match(cls, v, values, **kwargs): if v != values["password"]: raise ParameterError("两次输入的密码不一致,请输入相同的密码") return v @validator("username") def check_username(cls, v, values, **kwargs): if not re.match(r"^[a-zA-Z0-9_]{2,10}$", v): raise ParameterError("用户名只能由字母、数字、下划线组成,且长度为2-10位") return v
30.695652
84
0.719075
233
2,118
6.459227
0.39485
0.201993
0.189369
0.071761
0.178073
0.055814
0
0
0
0
0
0.012304
0.155807
2,118
68
85
31.147059
0.829418
0
0
0.090909
0
0
0.09254
0.012748
0
0
0
0
0
1
0.045455
false
0.204545
0.113636
0
0.863636
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
49234db02fc71ace8dc7b797657fe08f7f5bd1a4
187
py
Python
relevanceai/utils/helpers/helpers.py
RelevanceAI/RelevanceAI
a0542f35153d9c842f3d2cd0955d6b07f6dfc07b
[ "Apache-2.0" ]
21
2021-11-23T13:01:36.000Z
2022-03-23T03:45:30.000Z
relevanceai/utils/helpers/helpers.py
RelevanceAI/RelevanceAI
a0542f35153d9c842f3d2cd0955d6b07f6dfc07b
[ "Apache-2.0" ]
217
2021-11-23T00:11:01.000Z
2022-03-30T08:11:49.000Z
relevanceai/utils/helpers/helpers.py
RelevanceAI/RelevanceAI
a0542f35153d9c842f3d2cd0955d6b07f6dfc07b
[ "Apache-2.0" ]
4
2022-01-04T01:48:30.000Z
2022-02-11T03:19:32.000Z
import uuid def make_id(document): _id = str(uuid.uuid3(uuid.NAMESPACE_DNS, str(document))) return _id def str2bool(v: str): return v.lower() in ("yes", "true", "t", "1")
17
60
0.631016
29
187
3.931034
0.655172
0
0
0
0
0
0
0
0
0
0
0.019868
0.192513
187
10
61
18.7
0.735099
0
0
0
0
0
0.048128
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
4943f5268d674e34601d7b408f83769cdc6f6dd9
21
py
Python
pepper2/cli/__init__.py
trickeydan/pepper2
3aba1c74568cd0a04c9178caba26e9238c90e9ba
[ "MIT" ]
null
null
null
pepper2/cli/__init__.py
trickeydan/pepper2
3aba1c74568cd0a04c9178caba26e9238c90e9ba
[ "MIT" ]
22
2019-12-22T20:11:24.000Z
2020-01-18T19:09:11.000Z
pepper2/cli/__init__.py
j5api/pepper2
3aba1c74568cd0a04c9178caba26e9238c90e9ba
[ "MIT" ]
null
null
null
"""Pepperctl CLI."""
10.5
20
0.571429
2
21
6
1
0
0
0
0
0
0
0
0
0
0
0
0.095238
21
1
21
21
0.631579
0.666667
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
b8d8a502e5ea83dab39ba2bd4a92fa2bc00a7b1a
29,718
py
Python
PythonAPI/test/smoke/test_vehicle_physics.py
Sid1057/carla_sport
76323ce68f7093278b2f47aa3d37ec90fa19038a
[ "MIT" ]
null
null
null
PythonAPI/test/smoke/test_vehicle_physics.py
Sid1057/carla_sport
76323ce68f7093278b2f47aa3d37ec90fa19038a
[ "MIT" ]
null
null
null
PythonAPI/test/smoke/test_vehicle_physics.py
Sid1057/carla_sport
76323ce68f7093278b2f47aa3d37ec90fa19038a
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. from . import SyncSmokeTest from . import SmokeTest import carla import time import math import numpy as np from enum import Enum def list_equal_tol(objs, tol = 1e-5): if (len(objs) < 2): return True for i in range(1, len(objs)): equal = equal_tol(objs[0], objs[i], tol) if not equal: return False return True def equal_tol(obj_a, obj_b, tol = 1e-5): if isinstance(obj_a, list): return obj_a == obj_b if isinstance(obj_a, carla.libcarla.Vector3D): diff = abs(obj_a - obj_b) return diff.x < tol and diff.y < tol and diff.z < tol return abs(obj_a - obj_b) < tol def equal_physics_control(pc_a, pc_b): error_msg = "" for key in dir(pc_a): if key.startswith('__') or key == "wheels": continue if not equal_tol(getattr(pc_a, key), getattr(pc_b, key), 1e-3): error_msg = "Car property: '%s' in VehiclePhysicsControl does not match: %.4f %.4f" \ % (key, getattr(pc_a, key), getattr(pc_b, key)) return False, error_msg if len(pc_a.wheels) != len(pc_b.wheels): error_msg = "The number of wheels does not match %d, %d" \ % (len(pc_a.wheels) != len(pc_b.wheels)) return False, error_msg for w in range(0, len(pc_a.wheels)): for key in dir(pc_a.wheels[w]): if key.startswith('__') or key == "position": continue if not equal_tol(getattr(pc_a.wheels[w], key), getattr(pc_b.wheels[w], key), 1e-3): error_msg = "Wheel property: '%s' in VehiclePhysicsControl does not match: %.4f %.4f" \ % (key, getattr(pc_a.wheels[w], key), getattr(pc_b.wheels[w], key)) return False, error_msg return True, error_msg def change_physics_control(vehicle, tire_friction = None, drag = None, wheel_sweep = None, long_stiff = None): # Change Vehicle Physics Control parameters of the vehicle physics_control = vehicle.get_physics_control() if drag is not None: physics_control.drag_coefficient = drag if wheel_sweep is not None: physics_control.use_sweep_wheel_collision = wheel_sweep front_left_wheel = physics_control.wheels[0] front_right_wheel = physics_control.wheels[1] rear_left_wheel = physics_control.wheels[2] rear_right_wheel = physics_control.wheels[3] if tire_friction is not None: front_left_wheel.tire_friction = tire_friction front_right_wheel.tire_friction = tire_friction rear_left_wheel.tire_friction = tire_friction rear_right_wheel.tire_friction = tire_friction if long_stiff is not None: front_left_wheel.long_stiff_value = long_stiff front_right_wheel.long_stiff_value = long_stiff rear_left_wheel.long_stiff_value = long_stiff rear_right_wheel.long_stiff_value = long_stiff wheels = [front_left_wheel, front_right_wheel, rear_left_wheel, rear_right_wheel] physics_control.wheels = wheels return physics_control SpawnActor = carla.command.SpawnActor FutureActor = carla.command.FutureActor ApplyTargetVelocity = carla.command.ApplyTargetVelocity SetEnableGravity = carla.command.SetEnableGravity ApplyVehicleControl = carla.command.ApplyVehicleControl ApplyVehiclePhysicsControl = carla.command.ApplyVehiclePhysicsControl class TestApplyVehiclePhysics(SyncSmokeTest): def wait(self, frames=100): for _i in range(0, frames): self.world.tick() def check_single_physics_control(self, bp_vehicle): veh_tranf = self.world.get_map().get_spawn_points()[0] vehicle = self.world.spawn_actor(bp_vehicle, veh_tranf) # Checking the setting of car variables (drag coefficient) pc_a = change_physics_control(vehicle, drag=5) vehicle.apply_physics_control(pc_a) self.wait(2) pc_b = vehicle.get_physics_control() equal, msg = equal_physics_control(pc_a, pc_b) if not equal: self.fail("%s: %s" % (bp_vehicle.id, msg)) self.wait(2) # Checking the setting of wheel variables (tire friction) pc_a = change_physics_control(vehicle, tire_friction=5, long_stiff=987) vehicle.apply_physics_control(pc_a) self.wait(2) pc_b = vehicle.get_physics_control() equal, msg = equal_physics_control(pc_a, pc_b) if not equal: self.fail("%s: %s" % (bp_vehicle.id, msg)) vehicle.destroy() def check_multiple_physics_control(self, bp_vehicles, index_bp = None): num_veh = 10 vehicles = [] pc_a = [] pc_b = [] for i in range(0, num_veh): veh_tranf = self.world.get_map().get_spawn_points()[i] bp_vehicle = bp_vehicles[index_bp] if index_bp is not None else bp_vehicles[i] vehicles.append(self.world.spawn_actor(bp_vehicle, veh_tranf)) drag_coeff = 3.0 + 0.1*i pc_a.append(change_physics_control(vehicles[i], drag=drag_coeff)) vehicles[i].apply_physics_control(pc_a[i]) self.wait(2) for i in range(0, num_veh): pc_b.append(vehicles[i].get_physics_control()) for i in range(0, num_veh): equal, msg = equal_physics_control(pc_a[i], pc_b[i]) if not equal: self.fail("%s: %s" % (bp_vehicle.id, msg)) pc_a = [] pc_b = [] for i in range(0, num_veh): friction = 1.0 + 0.1*i lstiff = 500 + 100*i pc_a.append(change_physics_control(vehicles[i], tire_friction=friction, long_stiff=lstiff)) vehicles[i].apply_physics_control(pc_a[i]) self.wait(2) for i in range(0, num_veh): pc_b.append(vehicles[i].get_physics_control()) for i in range(0, num_veh): equal, msg = equal_physics_control(pc_a[i], pc_b[i]) if not equal: self.fail("%s: %s" % (bp_vehicle.id, msg)) for i in range(0, num_veh): vehicles[i].destroy() def test_single_physics_control(self): print("TestApplyVehiclePhysics.test_single_physics_control") bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") for bp_veh in bp_vehicles: self.check_single_physics_control(bp_veh) def test_multiple_physics_control(self): print("TestApplyVehiclePhysics.test_multiple_physics_control") bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") for idx in range(0, len(bp_vehicles)): self.check_multiple_physics_control(bp_vehicles, idx) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") self.check_multiple_physics_control(bp_vehicles) class TestVehicleFriction(SyncSmokeTest): def wait(self, frames=100): for _i in range(0, frames): self.world.tick() def test_vehicle_zero_friction(self): print("TestVehicleFriction.test_vehicle_zero_friction") self.client.load_world("Town05_Opt", False) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") for bp_veh in bp_vehicles: veh_transf_00 = carla.Transform(carla.Location(33, -200, 0.2), carla.Rotation(yaw=90)) veh_transf_01 = carla.Transform(carla.Location(29, -200, 0.7), carla.Rotation(yaw=90)) batch = [ SpawnActor(bp_veh, veh_transf_00) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))) .then(SetEnableGravity(FutureActor, True)), SpawnActor(bp_veh, veh_transf_01) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))) .then(SetEnableGravity(FutureActor, False)) ] responses = self.client.apply_batch_sync(batch) veh_ids = [x.actor_id for x in responses] veh_refs = [self.world.get_actor(x) for x in veh_ids] if (0 in veh_ids) or (None in veh_refs): self.fail("%s: The test cars could not be correctly spawned" % (bp_veh.id)) self.wait(10) self.client.apply_batch_sync([ ApplyVehiclePhysicsControl(veh_refs[0], change_physics_control(veh_refs[0], tire_friction=0.0, drag=0.0)), ApplyVehiclePhysicsControl(veh_refs[1], change_physics_control(veh_refs[1], drag=0.0))]) self.wait(1) vel_ref = 100.0 / 3.6 self.client.apply_batch_sync([ ApplyTargetVelocity(veh_refs[0], carla.Vector3D(0, vel_ref, 0)), ApplyTargetVelocity(veh_refs[1], carla.Vector3D(0, vel_ref, 0)), ]) self.wait(1) vel_veh_00 = veh_refs[0].get_velocity().y vel_veh_01 = veh_refs[1].get_velocity().y if not list_equal_tol([vel_ref, vel_veh_00, vel_veh_01], 1e-3): self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) self.fail("%s: Velocities are not equal after initialization. Ref: %.3f -> [%.3f, %.3f]" % (bp_veh.id, vel_ref, vel_veh_00, vel_veh_01)) self.wait(100) vel_veh_00 = veh_refs[0].get_velocity().y vel_veh_01 = veh_refs[1].get_velocity().y if not list_equal_tol([vel_ref, vel_veh_00, vel_veh_01], 1e-1): self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) self.fail("%s: Velocities are not equal after simulation. Ref: %.3f -> [%.3f, %.3f]" % (bp_veh.id, vel_ref, vel_veh_00, vel_veh_01)) self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) def test_vehicle_friction_volume(self): print("TestVehicleFriction.test_vehicle_friction_volume") self.client.load_world("Town05_Opt", False) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") bp_vehicles = [x for x in bp_vehicles if int(x.get_attribute('number_of_wheels')) == 4] value_vol_friction = 5.0 friction_bp = self.world.get_blueprint_library().find('static.trigger.friction') friction_bp.set_attribute('friction', str(value_vol_friction)) extent = carla.Location(300.0, 4500.0, 700.0) friction_bp.set_attribute('extent_x', str(extent.x)) friction_bp.set_attribute('extent_y', str(extent.y)) friction_bp.set_attribute('extent_z', str(extent.z)) vol_transf = carla.Transform(carla.Location(27, -100, 1)) self.world.debug.draw_box(box=carla.BoundingBox(vol_transf.location, extent * 1e-2), rotation=vol_transf.rotation, life_time=1000, thickness=0.5, color=carla.Color(r=0,g=255,b=0)) friction_trigger = self.world.spawn_actor(friction_bp, vol_transf) for bp_veh in bp_vehicles: veh_transf_00 = carla.Transform(carla.Location(36, -200, 0.2), carla.Rotation(yaw=90)) veh_transf_01 = carla.Transform(carla.Location(28, -200, 0.7), carla.Rotation(yaw=90)) batch = [ SpawnActor(bp_veh, veh_transf_00) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))), SpawnActor(bp_veh, veh_transf_01) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))) ] responses = self.client.apply_batch_sync(batch) veh_ids = [x.actor_id for x in responses] veh_refs = [self.world.get_actor(x) for x in veh_ids] if (0 in veh_ids) or (None in veh_refs): self.fail("%s: The test cars could not be correctly spawned" % (bp_veh.id)) self.wait(10) vel_ref = 50.0 / 3.6 friction_ref = 0.0 self.client.apply_batch_sync([ ApplyVehiclePhysicsControl(veh_refs[0], change_physics_control(veh_refs[0], tire_friction=friction_ref, drag=0.0)), ApplyVehiclePhysicsControl(veh_refs[1], change_physics_control(veh_refs[1], tire_friction=friction_ref, drag=0.0))]) self.wait(1) self.client.apply_batch_sync([ ApplyTargetVelocity(veh_refs[0], carla.Vector3D(0, vel_ref, 0)), ApplyTargetVelocity(veh_refs[1], carla.Vector3D(0, vel_ref, 0)), ]) self.wait(4) # Before trigger bef_vel_veh_00 = veh_refs[0].get_velocity().y bef_vel_veh_01 = veh_refs[1].get_velocity().y bef_tire_fr_00 = veh_refs[0].get_physics_control().wheels[0].tire_friction bef_tire_fr_01 = veh_refs[1].get_physics_control().wheels[0].tire_friction extent = carla.Location(100.0, 100.0, 200.0) self.world.debug.draw_box(box=carla.BoundingBox(veh_refs[1].get_location(), extent * 1e-2), rotation=vol_transf.rotation, life_time=8, thickness=0.5, color=carla.Color(r=255,g=0,b=0)) if not equal_tol(bef_vel_veh_00, vel_ref, 1e-3) or not equal_tol(bef_tire_fr_00, friction_ref, 1e-3): self.fail("%s: Reference vehicle has changed before trigger. Vel: %.3f [%.3f]. Fric: %.3f [%.3f]" % (bp_veh.id, bef_vel_veh_00, vel_ref, bef_tire_fr_00, friction_ref)) if not equal_tol(bef_vel_veh_01, vel_ref, 1e-3) or not equal_tol(bef_tire_fr_01, friction_ref, 1e-3): self.fail("%s: Test vehicle has changed before trigger. Vel: %.3f [%.3f]. Fric: %.3f [%.3f]" % (bp_veh.id, bef_vel_veh_01, vel_ref, bef_tire_fr_01, friction_ref)) self.wait(100) # Inside trigger ins_vel_veh_00 = veh_refs[0].get_velocity().y ins_vel_veh_01 = veh_refs[1].get_velocity().y ins_tire_fr_00 = veh_refs[0].get_physics_control().wheels[0].tire_friction ins_tire_fr_01 = veh_refs[1].get_physics_control().wheels[0].tire_friction extent = carla.Location(100.0, 100.0, 200.0) self.world.debug.draw_box(box=carla.BoundingBox(veh_refs[1].get_location(), extent * 1e-2), rotation=vol_transf.rotation, life_time=8, thickness=0.5, color=carla.Color(r=255,g=0,b=0)) if not equal_tol(ins_vel_veh_00, vel_ref, 1e-3) or not equal_tol(ins_tire_fr_00, friction_ref, 1e-3): self.fail("%s: Reference vehicle has changed inside trigger. Vel: %.3f [%.3f]. Fric: %.3f [%.3f]" % (bp_veh.id, ins_vel_veh_00, vel_ref, ins_tire_fr_00, friction_ref)) if ins_vel_veh_01 > vel_ref or not equal_tol(ins_tire_fr_01, value_vol_friction, 1e-3): self.fail("%s: Test vehicle is not correct inside trigger. Vel: %.3f [%.3f]. Fric: %.3f [%.3f]" % (bp_veh.id, ins_vel_veh_01, vel_ref, ins_tire_fr_01, value_vol_friction)) self.wait(200) # Outside trigger out_vel_veh_00 = veh_refs[0].get_velocity().y out_vel_veh_01 = veh_refs[1].get_velocity().y out_tire_fr_00 = veh_refs[0].get_physics_control().wheels[0].tire_friction out_tire_fr_01 = veh_refs[1].get_physics_control().wheels[0].tire_friction extent = carla.Location(100.0, 100.0, 200.0) self.world.debug.draw_box(box=carla.BoundingBox(veh_refs[1].get_location(), extent * 1e-2), rotation=vol_transf.rotation, life_time=8, thickness=0.5, color=carla.Color(r=255,g=0,b=0)) if not equal_tol(out_vel_veh_00, vel_ref, 1e-3) or not equal_tol(out_tire_fr_00, friction_ref, 1e-3): self.fail("%s: Reference vehicle has changed after trigger. Vel: %.3f [%.3f]. Fric: %.3f [%.3f]" % (bp_veh.id, ins_vel_veh_00, vel_ref, out_tire_fr_00, friction_ref)) if out_vel_veh_01 > vel_ref or not equal_tol(out_tire_fr_01, friction_ref, 1e-3): self.fail("%s: Test vehicle is not correct after trigger. Vel: %.3f [%.3f]. Fric: %.3f [%.3f]" % (bp_veh.id, out_vel_veh_01, vel_ref, out_tire_fr_01, friction_ref)) self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) friction_trigger.destroy() def test_vehicle_friction_values(self): print("TestVehicleFriction.test_vehicle_friction_values") self.client.load_world("Town05_Opt", False) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") for bp_veh in bp_vehicles: veh_transf = carla.Transform(carla.Location(36, -200, 0.3), carla.Rotation(yaw=90)) veh_transf_00 = carla.Transform(carla.Location(36, -200, 0.2), carla.Rotation(yaw=90)) veh_transf_01 = carla.Transform(carla.Location(32, -200, 0.7), carla.Rotation(yaw=90)) veh_transf_02 = carla.Transform(carla.Location(28, -200, 0.7), carla.Rotation(yaw=90)) batch = [ SpawnActor(bp_veh, veh_transf_00) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))), SpawnActor(bp_veh, veh_transf_01) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))), SpawnActor(bp_veh, veh_transf_02) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))) ] responses = self.client.apply_batch_sync(batch) veh_ids = [x.actor_id for x in responses] veh_refs = [self.world.get_actor(x) for x in veh_ids] if (0 in veh_ids) or (None in veh_refs): self.fail("%s: The test cars could not be correctly spawned" % (bp_veh.id)) self.wait(10) self.client.apply_batch_sync([ ApplyVehiclePhysicsControl(veh_refs[0], change_physics_control(veh_refs[0], tire_friction=0.0, drag=0.0)), ApplyVehiclePhysicsControl(veh_refs[1], change_physics_control(veh_refs[1], tire_friction=0.5, drag=0.0)), ApplyVehiclePhysicsControl(veh_refs[2], change_physics_control(veh_refs[1], tire_friction=3.0, drag=0.0))]) self.wait(1) vel_ref = 100.0 / 3.6 self.wait(1) self.client.apply_batch_sync([ ApplyTargetVelocity(veh_refs[0], carla.Vector3D(0, vel_ref, 0)), ApplyTargetVelocity(veh_refs[1], carla.Vector3D(0, vel_ref, 0)), ApplyTargetVelocity(veh_refs[2], carla.Vector3D(0, vel_ref, 0)) ]) self.wait(50) vel_veh_00 = veh_refs[0].get_velocity().y loc_veh_00 = veh_refs[0].get_location().y loc_veh_01 = veh_refs[1].get_location().y loc_veh_02 = veh_refs[2].get_location().y for _i in range(0, 150): self.world.tick() self.client.apply_batch_sync([ ApplyVehicleControl(veh_refs[0], carla.VehicleControl(brake=1.0)), ApplyVehicleControl(veh_refs[1], carla.VehicleControl(brake=1.0)), ApplyVehicleControl(veh_refs[2], carla.VehicleControl(brake=1.0)) ]) dist_veh_00 = veh_refs[0].get_location().y - loc_veh_00 dist_veh_01 = veh_refs[1].get_location().y - loc_veh_01 dist_veh_02 = veh_refs[2].get_location().y - loc_veh_02 err_veh_01 = dist_veh_01 > 0.75 * dist_veh_00 err_veh_02 = dist_veh_02 > 0.75 * dist_veh_01 if err_veh_01 or err_veh_02: self.fail("%s: Friction test failed: ErrVeh01: %r ErrVeh02: %r." % (bp_veh.id, err_veh_01, err_veh_02)) self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) class TestVehicleTireConfig(SyncSmokeTest): def wait(self, frames=100): for _i in range(0, frames): self.world.tick() def test_vehicle_wheel_collision(self): print("TestVehicleTireConfig.test_vehicle_wheel_collision") self.client.load_world("Town05_Opt", False) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") bp_vehicles = [x for x in bp_vehicles if int(x.get_attribute('number_of_wheels')) == 4] for bp_veh in bp_vehicles: veh_transf_00 = carla.Transform(carla.Location(36, -200, 0.2), carla.Rotation(yaw=91)) veh_transf_01 = carla.Transform(carla.Location(31, -200, 0.7), carla.Rotation(yaw=91)) batch = [ SpawnActor(bp_veh, veh_transf_00) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))), SpawnActor(bp_veh, veh_transf_01) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))) ] responses = self.client.apply_batch_sync(batch) veh_ids = [x.actor_id for x in responses] veh_refs = [self.world.get_actor(x) for x in veh_ids] if (0 in veh_ids) or (None in veh_refs): self.fail("%s: The test cars could not be correctly spawned" % (bp_veh.id)) self.wait(10) vel_ref = 100.0 / 3.6 self.client.apply_batch_sync([ ApplyVehiclePhysicsControl(veh_refs[0], change_physics_control(veh_refs[0], wheel_sweep = False)), ApplyVehiclePhysicsControl(veh_refs[1], change_physics_control(veh_refs[1], wheel_sweep = True))]) self.wait(1) self.client.apply_batch_sync([ ApplyTargetVelocity(veh_refs[0], carla.Vector3D(0, vel_ref, 0)), ApplyTargetVelocity(veh_refs[1], carla.Vector3D(0, vel_ref, 0)) ]) self.wait(150) loc_veh_00 = veh_refs[0].get_location().y loc_veh_01 = veh_refs[1].get_location().y vel_veh_00 = veh_refs[0].get_velocity().y vel_veh_01 = veh_refs[1].get_velocity().y if not list_equal_tol([vel_veh_00, vel_veh_01], 0.5): self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) self.fail("%s: Velocities are not equal after simulation. [%.3f, %.3f]" % (bp_veh.id, vel_veh_00, vel_veh_01)) if not list_equal_tol([loc_veh_00, loc_veh_01], 0.5): self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) self.fail("%s: Locations are not equal after simulation. [%.3f, %.3f]" % (bp_veh.id, loc_veh_00, loc_veh_01)) self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) def test_vehicle_tire_long_stiff(self): print("TestVehicleTireConfig.test_vehicle_tire_long_stiff") self.client.load_world("Town05_Opt", False) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") bp_vehicles = [x for x in bp_vehicles if int(x.get_attribute('number_of_wheels')) == 4] for bp_veh in bp_vehicles: ref_pos = -200 veh_transf_00 = carla.Transform(carla.Location(36 - 0, ref_pos, 0.2), carla.Rotation(yaw=90)) veh_transf_01 = carla.Transform(carla.Location(36 - 5, ref_pos, 0.2), carla.Rotation(yaw=90)) batch = [ SpawnActor(bp_veh, veh_transf_00) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))), SpawnActor(bp_veh, veh_transf_01) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0))) ] responses = self.client.apply_batch_sync(batch) veh_ids = [x.actor_id for x in responses] veh_refs = [self.world.get_actor(x) for x in veh_ids] if (0 in veh_ids) or (None in veh_refs): self.fail("%s: The test cars could not be correctly spawned" % (bp_veh.id)) self.wait(10) self.client.apply_batch_sync([ ApplyVehiclePhysicsControl(veh_refs[0], change_physics_control(veh_refs[0], drag=0.0, long_stiff = 100)), ApplyVehiclePhysicsControl(veh_refs[1], change_physics_control(veh_refs[1], drag=0.0, long_stiff = 2000))]) self.wait(1) self.client.apply_batch_sync([ ApplyVehicleControl(veh_refs[0], carla.VehicleControl(throttle=1.0)), ApplyVehicleControl(veh_refs[1], carla.VehicleControl(throttle=1.0))]) self.wait(100) loc_veh_00 = veh_refs[0].get_location().y loc_veh_01 = veh_refs[1].get_location().y dist_veh_00 = loc_veh_00 - ref_pos dist_veh_01 = loc_veh_01 - ref_pos if dist_veh_01 < dist_veh_00: self.fail("%s: Longitudinal stiffness test failed, check that please. Veh00: [%f] Veh01: [%f]" % (bp_veh.id, dist_veh_00, dist_veh_01)) self.client.apply_batch_sync([carla.command.DestroyActor(x) for x in veh_ids]) class TestStickyControl(SyncSmokeTest): def wait(self, frames=100): for _i in range(0, frames): self.world.tick() def run_scenario(self, bp_veh, veh_control, continous = False, reset_after_first = False, sticky = None): ref_pos = -1 veh_transf = carla.Transform(carla.Location(235, ref_pos, 0.2), carla.Rotation(yaw=90)) veh_forward = veh_transf.rotation.get_forward_vector() if sticky is not None: bp_veh.set_attribute("sticky_control", sticky) batch = [SpawnActor(bp_veh, veh_transf) .then(ApplyTargetVelocity(FutureActor, carla.Vector3D(0, 0, 0)))] responses = self.client.apply_batch_sync(batch) if len(responses) != 1 or responses[0].error: self.fail("%s: The test car could not be correctly spawned" % (bp_veh.id)) vehicle_id = responses[0].actor_id vehicle_00 = self.world.get_actor(vehicle_id) for _i in range(0, 10): self.world.tick() self.client.apply_batch_sync([ApplyVehicleControl(vehicle_00, veh_control)]) self.world.tick() for _i in range(0, 150): if continous: self.client.apply_batch_sync([ApplyVehicleControl(vehicle_00, veh_control)]) if reset_after_first: self.client.apply_batch_sync([ApplyVehicleControl(vehicle_00, carla.VehicleControl())]) self.world.tick() loc_veh_00 = vehicle_00.get_location().y vel_veh_00 = vehicle_00.get_velocity().y dist_veh_00 = loc_veh_00 - ref_pos self.client.apply_batch([carla.command.DestroyActor(vehicle_id)]) self.world.tick() return dist_veh_00, vel_veh_00 def test_default(self): print("TestStickyControl.test_default") inp_control = carla.VehicleControl(throttle=1.0) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") bp_veh = bp_vehicles[0] d0, v0 = self.run_scenario(bp_veh, inp_control) d1, v1 = self.run_scenario(bp_veh, inp_control, continous=True) d2, v2 = self.run_scenario(bp_veh, inp_control, continous=True, sticky="False") if not equal_tol(d0, d1, 1e-3) or not equal_tol(v0, v1, 1e-3): self.fail("%s: The default input is not sticky: Default: [%f, %f] ContinousThrottle: [%f, %f]" % (bp_veh.id, d0, v0, d1, v1)) if not equal_tol(d0, d2, 1e-3) or not equal_tol(v0, v2, 1e-3): self.fail("%s: The default input is not sticky: Default: [%f, %f] ContinousThrottle: [%f, %f]" % (bp_veh.id, d0, v0, d2, v2)) def test_true(self): print("TestStickyControl.test_true") inp_control = carla.VehicleControl(throttle=1.0) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") bp_veh = bp_vehicles[0] d0, v0 = self.run_scenario(bp_veh, inp_control, sticky="True") d1, v1 = self.run_scenario(bp_veh, inp_control, continous=True) d2, v2 = self.run_scenario(bp_veh, inp_control, continous=True, sticky="False") if not equal_tol(d0, d1, 1e-3) or not equal_tol(v0, v1, 1e-3): self.fail("%s: The input is not sticky: StickyTrue: [%f, %f] ContinousThrottle: [%f, %f]" % (bp_veh.id, d0, v0, d1, v1)) if not equal_tol(d0, d2, 1e-3) or not equal_tol(v0, v2, 1e-3): self.fail("%s: The input is not sticky: StickyTrue: [%f, %f] ContinousThrottle: [%f, %f]" % (bp_veh.id, d0, v0, d2, v2)) def test_false(self): print("TestStickyControl.test_false") inp_control = carla.VehicleControl(throttle=1.0) bp_vehicles = self.world.get_blueprint_library().filter("vehicle.*") bp_veh = bp_vehicles[0] d0, v0 = self.run_scenario(bp_veh, inp_control, sticky="False") d1, v1 = self.run_scenario(bp_veh, inp_control, reset_after_first=True, sticky="True") d2, v2 = self.run_scenario(bp_veh, inp_control, reset_after_first=True, sticky="False") if not equal_tol(d0, d1, 1e-5) or not equal_tol(v0, v1, 1e-5): self.fail("%s: The input is sticky: StickyFalse: [%f, %f] Reset: [%f, %f]" % (bp_veh.id, d0, v0, d1, v1)) if not equal_tol(d0, d2, 1e-5) or not equal_tol(v0, v2, 1e-5): self.fail("%s: The input is sticky: StickyFalse: [%f, %f] Reset: [%f, %f]" % (bp_veh.id, d0, v0, d2, v2))
43.510981
195
0.624807
4,202
29,718
4.153974
0.070205
0.03128
0.015125
0.034374
0.813807
0.768605
0.708966
0.678258
0.641822
0.607734
0
0.045236
0.257622
29,718
682
196
43.57478
0.745943
0.014267
0
0.502049
0
0.030738
0.087972
0.016939
0
0
0
0
0
1
0.043033
false
0
0.014344
0
0.090164
0.045082
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b8dcd14bbcaa0c908303847a4ecb291fd59fdc95
500
py
Python
custom_components/ge_home/entities/common/bool_converter.py
olds/ha_gehome
5cb24deab64bcade45861da0497a84631845922c
[ "MIT" ]
41
2021-08-02T02:15:54.000Z
2022-03-30T11:11:42.000Z
custom_components/ge_home/entities/common/bool_converter.py
olds/ha_gehome
5cb24deab64bcade45861da0497a84631845922c
[ "MIT" ]
46
2021-08-03T02:20:59.000Z
2022-03-30T11:17:15.000Z
custom_components/ge_home/entities/common/bool_converter.py
olds/ha_gehome
5cb24deab64bcade45861da0497a84631845922c
[ "MIT" ]
15
2021-08-31T00:21:33.000Z
2022-03-30T12:53:21.000Z
from typing import Any from gehomesdk import ErdOnOff class BoolConverter: def boolify(self, value: Any) -> bool: return bool(value) def true_value(self) -> Any: return True def false_value(self) -> Any: return False class ErdOnOffBoolConverter(BoolConverter): def boolify(self, value: ErdOnOff) -> bool: return value.boolify() def true_value(self) -> Any: return ErdOnOff.ON def false_value(self) -> Any: return ErdOnOff.OFF
26.315789
47
0.658
61
500
5.327869
0.311475
0.110769
0.147692
0.221538
0.56
0.313846
0
0
0
0
0
0
0.252
500
19
48
26.315789
0.868984
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.125
0.375
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
b8ef49a87fe9a77526e7f1e17086b5ba15defcf7
135
py
Python
pre-hosting.py
olierxleben/squirrel-news-app
f80a1cc9833f8b095c648a574c5541bab1ce7f4f
[ "MIT" ]
1
2022-02-16T21:21:42.000Z
2022-02-16T21:21:42.000Z
pre-hosting.py
olierxleben/squirrel-news-app
f80a1cc9833f8b095c648a574c5541bab1ce7f4f
[ "MIT" ]
3
2020-11-20T22:52:40.000Z
2020-11-24T21:23:34.000Z
pre-hosting.py
olierxleben/squirrel-news-app
f80a1cc9833f8b095c648a574c5541bab1ce7f4f
[ "MIT" ]
2
2020-11-13T01:30:17.000Z
2020-11-23T17:50:55.000Z
import shutil print("start work after build") shutil.move('build/', '../squirrel-news-firebase/public/') print("fin postbuilding")
15
58
0.718519
17
135
5.705882
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.103704
135
8
59
16.875
0.801653
0
0
0
0
0
0.574627
0.246269
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
772d268445e60e97bd286b2573c930d223800e0d
178
py
Python
locale/pot/api/core/_autosummary/pyvista-ExplicitStructuredGrid-compute_connectivity-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/core/_autosummary/pyvista-ExplicitStructuredGrid-compute_connectivity-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/core/_autosummary/pyvista-ExplicitStructuredGrid-compute_connectivity-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
from pyvista import examples grid = examples.load_explicit_structured() # doctest:+SKIP grid.compute_connectivity() # doctest:+SKIP grid.plot(show_edges=True) # doctest:+SKIP
35.6
59
0.786517
23
178
5.913043
0.695652
0.242647
0.220588
0
0
0
0
0
0
0
0
0
0.101124
178
4
60
44.5
0.85
0.230337
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
773374050daf20ff2bb3d126bbea3b563682c36b
9,080
py
Python
budgetportal/search_indexes.py
TomaszKolek/datamanager
d46dbab00e30a14fc26eb9368c32dcdbbda7309d
[ "MIT" ]
null
null
null
budgetportal/search_indexes.py
TomaszKolek/datamanager
d46dbab00e30a14fc26eb9368c32dcdbbda7309d
[ "MIT" ]
null
null
null
budgetportal/search_indexes.py
TomaszKolek/datamanager
d46dbab00e30a14fc26eb9368c32dcdbbda7309d
[ "MIT" ]
null
null
null
from budgetportal.models import InfraProject from django.db.models import Count from haystack import indexes from budgetportal.infra_projects import status_order class InfraProjectIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) name = indexes.CharField() province = indexes.CharField(faceted=True) government_label = indexes.CharField(faceted=True) sphere = indexes.CharField(faceted=True) department = indexes.CharField(faceted=True) sector = indexes.CharField(faceted=True) status = indexes.CharField(faceted=True) status_order = indexes.IntegerField() primary_funding_source = indexes.CharField(faceted=True) estimated_completion_date = indexes.DateField() estimated_total_project_cost = indexes.FloatField() latitude = indexes.CharField() longitude = indexes.CharField() url_path = indexes.CharField() irm_snapshot = indexes.CharField(indexed=False) project_number = indexes.CharField(indexed=False) local_municipality = indexes.CharField(indexed=False) district_municipality = indexes.CharField(indexed=False) budget_programme = indexes.CharField(indexed=False) nature_of_investment = indexes.CharField(indexed=False) funding_status = indexes.CharField(indexed=False) program_implementing_agent = indexes.CharField(indexed=False) principle_agent = indexes.CharField(indexed=False) main_contractor = indexes.CharField(indexed=False) other_parties = indexes.CharField(indexed=False) start_date = indexes.DateField(indexed=False) estimated_construction_start_date = indexes.DateField(indexed=False) contracted_construction_end_date = indexes.DateField(indexed=False) estimated_construction_end_date = indexes.DateField(indexed=False) total_professional_fees = indexes.FloatField(indexed=False) total_construction_costs = indexes.FloatField(indexed=False) variation_orders = indexes.FloatField(indexed=False) expenditure_from_previous_years_professional_fees = indexes.FloatField( indexed=False ) expenditure_from_previous_years_construction_costs = indexes.FloatField( indexed=False ) expenditure_from_previous_years_total = indexes.FloatField(indexed=False) main_appropriation_professional_fees = indexes.FloatField(indexed=False) adjusted_appropriation_professional_fees = indexes.FloatField(indexed=False) main_appropriation_construction_costs = indexes.FloatField(indexed=False) adjusted_appropriation_construction_costs = indexes.FloatField(indexed=False) main_appropriation_total = indexes.FloatField(indexed=False) adjusted_appropriation_total = indexes.FloatField(indexed=False) actual_expenditure_q1 = indexes.FloatField(indexed=False) actual_expenditure_q2 = indexes.FloatField(indexed=False) actual_expenditure_q3 = indexes.FloatField(indexed=False) actual_expenditure_q4 = indexes.FloatField(indexed=False) def get_model(self): return InfraProject def prepare_name(sef, object): return object.project_snapshots.latest().name def prepare_status(sef, object): return object.project_snapshots.latest().status def prepare_status_order(self, object): return status_order.get(object.project_snapshots.latest().status, 100) def prepare_government_label(sef, object): return object.project_snapshots.latest().government_label def prepare_province(sef, object): return object.project_snapshots.latest().province def prepare_sphere(sef, object): return object.project_snapshots.latest().irm_snapshot.sphere.slug def prepare_department(sef, object): return object.project_snapshots.latest().department def prepare_sector(sef, object): return object.project_snapshots.latest().sector def prepare_primary_funding_source(sef, object): return object.project_snapshots.latest().primary_funding_source def prepare_estimated_total_project_cost(sef, object): return object.project_snapshots.latest().estimated_total_project_cost def prepare_estimated_completion_date(sef, object): date = object.project_snapshots.latest().estimated_completion_date if date: return date.isoformat() def prepare_latitude(sef, object): return object.project_snapshots.latest().latitude def prepare_longitude(sef, object): return object.project_snapshots.latest().longitude def prepare_url_path(sef, object): return object.get_absolute_url() def prepare_irm_snapshot(self, object): return str(object.project_snapshots.latest().irm_snapshot) def prepare_project_number(sef, object): return object.project_snapshots.latest().project_number def prepare_local_municipality(sef, object): return object.project_snapshots.latest().local_municipality def prepare_district_municipality(sef, object): return object.project_snapshots.latest().district_municipality def prepare_budget_programme(sef, object): return object.project_snapshots.latest().budget_programme def prepare_nature_of_investment(sef, object): return object.project_snapshots.latest().nature_of_investment def prepare_funding_status(sef, object): return object.project_snapshots.latest().funding_status def prepare_program_implementing_agent(sef, object): return object.project_snapshots.latest().program_implementing_agent def prepare_principle_agent(sef, object): return object.project_snapshots.latest().principle_agent def prepare_main_contractor(sef, object): return object.project_snapshots.latest().main_contractor def prepare_other_parties(sef, object): return object.project_snapshots.latest().other_parties def prepare_start_date(sef, object): return object.project_snapshots.latest().start_date def prepare_estimated_construction_start_date(sef, object): return object.project_snapshots.latest().estimated_construction_start_date def prepare_contracted_construction_end_date(sef, object): return object.project_snapshots.latest().contracted_construction_end_date def prepare_estimated_construction_end_date(sef, object): return object.project_snapshots.latest().estimated_construction_end_date def prepare_total_professional_fees(sef, object): return object.project_snapshots.latest().total_professional_fees def prepare_total_construction_costs(sef, object): return object.project_snapshots.latest().total_construction_costs def prepare_variation_orders(sef, object): return object.project_snapshots.latest().variation_orders def prepare_expenditure_from_previous_years_professional_fees(sef, object): return ( object.project_snapshots.latest().expenditure_from_previous_years_professional_fees ) def prepare_expenditure_from_previous_years_construction_costs(sef, object): return ( object.project_snapshots.latest().expenditure_from_previous_years_construction_costs ) def prepare_expenditure_from_previous_years_total(sef, object): return object.project_snapshots.latest().expenditure_from_previous_years_total def prepare_project_expenditure_total(sef, object): return object.project_snapshots.latest().project_expenditure_total def prepare_main_appropriation_professional_fees(sef, object): return object.project_snapshots.latest().main_appropriation_professional_fees def prepare_adjusted_appropriation_professional_fees(sef, object): return ( object.project_snapshots.latest().adjusted_appropriation_professional_fees ) def prepare_adjusted_appropriation_construction_costs(sef, object): return ( object.project_snapshots.latest().adjusted_appropriation_construction_costs ) def prepare_main_appropriation_total(sef, object): return object.project_snapshots.latest().main_appropriation_total def prepare_adjusted_appropriation_total(sef, object): return object.project_snapshots.latest().adjusted_appropriation_total def prepare_actual_expenditure_q1(sef, object): return object.project_snapshots.latest().actual_expenditure_q1 def prepare_actual_expenditure_q2(sef, object): return object.project_snapshots.latest().actual_expenditure_q2 def prepare_actual_expenditure_q3(sef, object): return object.project_snapshots.latest().actual_expenditure_q3 def prepare_actual_expenditure_q4(sef, object): return object.project_snapshots.latest().actual_expenditure_q4 def should_update(self, instance, **kwargs): return instance.project_snapshots.count() def index_queryset(self, using=None): return InfraProject.objects.annotate( project_snapshots_count=Count("project_snapshots") ).filter(project_snapshots_count__gte=1)
42.037037
96
0.772577
1,017
9,080
6.572271
0.115044
0.114901
0.144823
0.184321
0.61161
0.553411
0.452124
0.298025
0.194195
0.085278
0
0.002076
0.151322
9,080
215
97
42.232558
0.8653
0
0
0.03681
0
0
0.001872
0
0
0
0
0
0
1
0.294479
false
0
0.02454
0.288344
0.90184
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
774881937d9fee09d4954f2c97f12a19657e827f
61,779
py
Python
Parameters.py
sushantdesaur/Sensor-Data-Analysis
1e9f50edf8e5dc441ea6b12dd38669a6b138a1fc
[ "MIT" ]
null
null
null
Parameters.py
sushantdesaur/Sensor-Data-Analysis
1e9f50edf8e5dc441ea6b12dd38669a6b138a1fc
[ "MIT" ]
null
null
null
Parameters.py
sushantdesaur/Sensor-Data-Analysis
1e9f50edf8e5dc441ea6b12dd38669a6b138a1fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Parameters.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): return QtGui.QApplication.translate(context, text, disambig, _encoding) except AttributeError: def _translate(context, text, disambig): return QtGui.QApplication.translate(context, text, disambig) class Ui_Dialog_Parametrs(object): def setupUi(self, Dialog_Parametrs): Dialog_Parametrs.setObjectName(_fromUtf8("Dialog_Parametrs")) Dialog_Parametrs.resize(501, 610) self.gridLayout = QtGui.QGridLayout(Dialog_Parametrs) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.scrollArea = QtGui.QScrollArea(Dialog_Parametrs) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 464, 1360)) self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) self.formLayout_9 = QtGui.QFormLayout(self.scrollAreaWidgetContents) self.formLayout_9.setObjectName(_fromUtf8("formLayout_9")) self.frameParameter_1 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frameParameter_1.setFrameShape(QtGui.QFrame.StyledPanel) self.frameParameter_1.setFrameShadow(QtGui.QFrame.Raised) self.frameParameter_1.setObjectName(_fromUtf8("frameParameter_1")) self.formLayout = QtGui.QFormLayout(self.frameParameter_1) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.label = QtGui.QLabel(self.frameParameter_1) self.label.setObjectName(_fromUtf8("label")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label) self.lineEdit = QtGui.QLineEdit(self.frameParameter_1) self.lineEdit.setObjectName(_fromUtf8("lineEdit")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit) self.label_2 = QtGui.QLabel(self.frameParameter_1) self.label_2.setObjectName(_fromUtf8("label_2")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_2) self.lineEdit_2 = QtGui.QLineEdit(self.frameParameter_1) self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_2) self.label_3 = QtGui.QLabel(self.frameParameter_1) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_3) self.lineEdit_3 = QtGui.QLineEdit(self.frameParameter_1) self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3")) self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_3) self.label_4 = QtGui.QLabel(self.frameParameter_1) self.label_4.setObjectName(_fromUtf8("label_4")) self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_4) self.lineEdit_4 = QtGui.QLineEdit(self.frameParameter_1) self.lineEdit_4.setObjectName(_fromUtf8("lineEdit_4")) self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_4) self.label_6 = QtGui.QLabel(self.frameParameter_1) self.label_6.setObjectName(_fromUtf8("label_6")) self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_6) self.comboBox = QtGui.QComboBox(self.frameParameter_1) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.comboBox) self.label_48 = QtGui.QLabel(self.frameParameter_1) self.label_48.setObjectName(_fromUtf8("label_48")) self.formLayout.setWidget(0, QtGui.QFormLayout.SpanningRole, self.label_48) self.formLayout_9.setWidget(0, QtGui.QFormLayout.SpanningRole, self.frameParameter_1) self.frameParameter_2 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frameParameter_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frameParameter_2.setFrameShadow(QtGui.QFrame.Raised) self.frameParameter_2.setObjectName(_fromUtf8("frameParameter_2")) self.formLayout_2 = QtGui.QFormLayout(self.frameParameter_2) self.formLayout_2.setObjectName(_fromUtf8("formLayout_2")) self.label_41 = QtGui.QLabel(self.frameParameter_2) self.label_41.setObjectName(_fromUtf8("label_41")) self.formLayout_2.setWidget(0, QtGui.QFormLayout.SpanningRole, self.label_41) self.label_5 = QtGui.QLabel(self.frameParameter_2) self.label_5.setObjectName(_fromUtf8("label_5")) self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_5) self.lineEdit_5 = QtGui.QLineEdit(self.frameParameter_2) self.lineEdit_5.setObjectName(_fromUtf8("lineEdit_5")) self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_5) self.label_7 = QtGui.QLabel(self.frameParameter_2) self.label_7.setObjectName(_fromUtf8("label_7")) self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_7) self.lineEdit_6 = QtGui.QLineEdit(self.frameParameter_2) self.lineEdit_6.setObjectName(_fromUtf8("lineEdit_6")) self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_6) self.label_8 = QtGui.QLabel(self.frameParameter_2) self.label_8.setObjectName(_fromUtf8("label_8")) self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_8) self.lineEdit_7 = QtGui.QLineEdit(self.frameParameter_2) self.lineEdit_7.setObjectName(_fromUtf8("lineEdit_7")) self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_7) self.label_9 = QtGui.QLabel(self.frameParameter_2) self.label_9.setObjectName(_fromUtf8("label_9")) self.formLayout_2.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_9) self.lineEdit_8 = QtGui.QLineEdit(self.frameParameter_2) self.lineEdit_8.setObjectName(_fromUtf8("lineEdit_8")) self.formLayout_2.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_8) self.label_10 = QtGui.QLabel(self.frameParameter_2) self.label_10.setObjectName(_fromUtf8("label_10")) self.formLayout_2.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_10) self.comboBox_2 = QtGui.QComboBox(self.frameParameter_2) self.comboBox_2.setObjectName(_fromUtf8("comboBox_2")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.comboBox_2.addItem(_fromUtf8("")) self.formLayout_2.setWidget(5, QtGui.QFormLayout.FieldRole, self.comboBox_2) self.formLayout_9.setWidget(1, QtGui.QFormLayout.SpanningRole, self.frameParameter_2) self.frameParameter_3 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frameParameter_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frameParameter_3.setFrameShadow(QtGui.QFrame.Raised) self.frameParameter_3.setObjectName(_fromUtf8("frameParameter_3")) self.formLayout_5 = QtGui.QFormLayout(self.frameParameter_3) self.formLayout_5.setObjectName(_fromUtf8("formLayout_5")) self.label_21 = QtGui.QLabel(self.frameParameter_3) self.label_21.setObjectName(_fromUtf8("label_21")) self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_21) self.lineEdit_17 = QtGui.QLineEdit(self.frameParameter_3) self.lineEdit_17.setObjectName(_fromUtf8("lineEdit_17")) self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_17) self.label_22 = QtGui.QLabel(self.frameParameter_3) self.label_22.setObjectName(_fromUtf8("label_22")) self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_22) self.lineEdit_18 = QtGui.QLineEdit(self.frameParameter_3) self.lineEdit_18.setObjectName(_fromUtf8("lineEdit_18")) self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_18) self.label_23 = QtGui.QLabel(self.frameParameter_3) self.label_23.setObjectName(_fromUtf8("label_23")) self.formLayout_5.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_23) self.lineEdit_19 = QtGui.QLineEdit(self.frameParameter_3) self.lineEdit_19.setObjectName(_fromUtf8("lineEdit_19")) self.formLayout_5.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_19) self.label_24 = QtGui.QLabel(self.frameParameter_3) self.label_24.setObjectName(_fromUtf8("label_24")) self.formLayout_5.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_24) self.lineEdit_20 = QtGui.QLineEdit(self.frameParameter_3) self.lineEdit_20.setObjectName(_fromUtf8("lineEdit_20")) self.formLayout_5.setWidget(5, QtGui.QFormLayout.FieldRole, self.lineEdit_20) self.label_25 = QtGui.QLabel(self.frameParameter_3) self.label_25.setObjectName(_fromUtf8("label_25")) self.formLayout_5.setWidget(6, QtGui.QFormLayout.LabelRole, self.label_25) self.comboBox_5 = QtGui.QComboBox(self.frameParameter_3) self.comboBox_5.setObjectName(_fromUtf8("comboBox_5")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.comboBox_5.addItem(_fromUtf8("")) self.formLayout_5.setWidget(6, QtGui.QFormLayout.FieldRole, self.comboBox_5) self.label_42 = QtGui.QLabel(self.frameParameter_3) self.label_42.setObjectName(_fromUtf8("label_42")) self.formLayout_5.setWidget(0, QtGui.QFormLayout.SpanningRole, self.label_42) self.formLayout_9.setWidget(2, QtGui.QFormLayout.SpanningRole, self.frameParameter_3) self.frameParameter_4 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frameParameter_4.setFrameShape(QtGui.QFrame.StyledPanel) self.frameParameter_4.setFrameShadow(QtGui.QFrame.Raised) self.frameParameter_4.setObjectName(_fromUtf8("frameParameter_4")) self.formLayout_6 = QtGui.QFormLayout(self.frameParameter_4) self.formLayout_6.setObjectName(_fromUtf8("formLayout_6")) self.label_26 = QtGui.QLabel(self.frameParameter_4) self.label_26.setObjectName(_fromUtf8("label_26")) self.formLayout_6.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_26) self.lineEdit_21 = QtGui.QLineEdit(self.frameParameter_4) self.lineEdit_21.setObjectName(_fromUtf8("lineEdit_21")) self.formLayout_6.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_21) self.label_27 = QtGui.QLabel(self.frameParameter_4) self.label_27.setObjectName(_fromUtf8("label_27")) self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_27) self.lineEdit_22 = QtGui.QLineEdit(self.frameParameter_4) self.lineEdit_22.setObjectName(_fromUtf8("lineEdit_22")) self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_22) self.label_28 = QtGui.QLabel(self.frameParameter_4) self.label_28.setObjectName(_fromUtf8("label_28")) self.formLayout_6.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_28) self.lineEdit_23 = QtGui.QLineEdit(self.frameParameter_4) self.lineEdit_23.setObjectName(_fromUtf8("lineEdit_23")) self.formLayout_6.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_23) self.label_29 = QtGui.QLabel(self.frameParameter_4) self.label_29.setObjectName(_fromUtf8("label_29")) self.formLayout_6.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_29) self.lineEdit_24 = QtGui.QLineEdit(self.frameParameter_4) self.lineEdit_24.setObjectName(_fromUtf8("lineEdit_24")) self.formLayout_6.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_24) self.label_30 = QtGui.QLabel(self.frameParameter_4) self.label_30.setObjectName(_fromUtf8("label_30")) self.formLayout_6.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_30) self.comboBox_6 = QtGui.QComboBox(self.frameParameter_4) self.comboBox_6.setObjectName(_fromUtf8("comboBox_6")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.comboBox_6.addItem(_fromUtf8("")) self.formLayout_6.setWidget(5, QtGui.QFormLayout.FieldRole, self.comboBox_6) self.label_43 = QtGui.QLabel(self.frameParameter_4) self.label_43.setObjectName(_fromUtf8("label_43")) self.formLayout_6.setWidget(0, QtGui.QFormLayout.SpanningRole, self.label_43) self.formLayout_9.setWidget(3, QtGui.QFormLayout.SpanningRole, self.frameParameter_4) self.frameParameter_5 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frameParameter_5.setFrameShape(QtGui.QFrame.StyledPanel) self.frameParameter_5.setFrameShadow(QtGui.QFrame.Raised) self.frameParameter_5.setObjectName(_fromUtf8("frameParameter_5")) self.formLayout_7 = QtGui.QFormLayout(self.frameParameter_5) self.formLayout_7.setObjectName(_fromUtf8("formLayout_7")) self.label_31 = QtGui.QLabel(self.frameParameter_5) self.label_31.setObjectName(_fromUtf8("label_31")) self.formLayout_7.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_31) self.lineEdit_25 = QtGui.QLineEdit(self.frameParameter_5) self.lineEdit_25.setObjectName(_fromUtf8("lineEdit_25")) self.formLayout_7.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_25) self.label_32 = QtGui.QLabel(self.frameParameter_5) self.label_32.setObjectName(_fromUtf8("label_32")) self.formLayout_7.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_32) self.lineEdit_26 = QtGui.QLineEdit(self.frameParameter_5) self.lineEdit_26.setObjectName(_fromUtf8("lineEdit_26")) self.formLayout_7.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_26) self.label_33 = QtGui.QLabel(self.frameParameter_5) self.label_33.setObjectName(_fromUtf8("label_33")) self.formLayout_7.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_33) self.lineEdit_27 = QtGui.QLineEdit(self.frameParameter_5) self.lineEdit_27.setObjectName(_fromUtf8("lineEdit_27")) self.formLayout_7.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_27) self.label_34 = QtGui.QLabel(self.frameParameter_5) self.label_34.setObjectName(_fromUtf8("label_34")) self.formLayout_7.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_34) self.lineEdit_28 = QtGui.QLineEdit(self.frameParameter_5) self.lineEdit_28.setObjectName(_fromUtf8("lineEdit_28")) self.formLayout_7.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_28) self.label_35 = QtGui.QLabel(self.frameParameter_5) self.label_35.setObjectName(_fromUtf8("label_35")) self.formLayout_7.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_35) self.comboBox_7 = QtGui.QComboBox(self.frameParameter_5) self.comboBox_7.setObjectName(_fromUtf8("comboBox_7")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.comboBox_7.addItem(_fromUtf8("")) self.formLayout_7.setWidget(5, QtGui.QFormLayout.FieldRole, self.comboBox_7) self.label_44 = QtGui.QLabel(self.frameParameter_5) self.label_44.setObjectName(_fromUtf8("label_44")) self.formLayout_7.setWidget(0, QtGui.QFormLayout.SpanningRole, self.label_44) self.formLayout_9.setWidget(4, QtGui.QFormLayout.SpanningRole, self.frameParameter_5) self.framePraameter_6 = QtGui.QFrame(self.scrollAreaWidgetContents) self.framePraameter_6.setFrameShape(QtGui.QFrame.StyledPanel) self.framePraameter_6.setFrameShadow(QtGui.QFrame.Raised) self.framePraameter_6.setObjectName(_fromUtf8("framePraameter_6")) self.formLayout_3 = QtGui.QFormLayout(self.framePraameter_6) self.formLayout_3.setObjectName(_fromUtf8("formLayout_3")) self.label_11 = QtGui.QLabel(self.framePraameter_6) self.label_11.setObjectName(_fromUtf8("label_11")) self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_11) self.lineEdit_9 = QtGui.QLineEdit(self.framePraameter_6) self.lineEdit_9.setObjectName(_fromUtf8("lineEdit_9")) self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_9) self.label_12 = QtGui.QLabel(self.framePraameter_6) self.label_12.setObjectName(_fromUtf8("label_12")) self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_12) self.lineEdit_10 = QtGui.QLineEdit(self.framePraameter_6) self.lineEdit_10.setObjectName(_fromUtf8("lineEdit_10")) self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_10) self.label_13 = QtGui.QLabel(self.framePraameter_6) self.label_13.setObjectName(_fromUtf8("label_13")) self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_13) self.lineEdit_11 = QtGui.QLineEdit(self.framePraameter_6) self.lineEdit_11.setObjectName(_fromUtf8("lineEdit_11")) self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_11) self.label_14 = QtGui.QLabel(self.framePraameter_6) self.label_14.setObjectName(_fromUtf8("label_14")) self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_14) self.lineEdit_12 = QtGui.QLineEdit(self.framePraameter_6) self.lineEdit_12.setObjectName(_fromUtf8("lineEdit_12")) self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_12) self.label_15 = QtGui.QLabel(self.framePraameter_6) self.label_15.setObjectName(_fromUtf8("label_15")) self.formLayout_3.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_15) self.comboBox_3 = QtGui.QComboBox(self.framePraameter_6) self.comboBox_3.setObjectName(_fromUtf8("comboBox_3")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.comboBox_3.addItem(_fromUtf8("")) self.formLayout_3.setWidget(5, QtGui.QFormLayout.FieldRole, self.comboBox_3) self.label_45 = QtGui.QLabel(self.framePraameter_6) self.label_45.setObjectName(_fromUtf8("label_45")) self.formLayout_3.setWidget(0, QtGui.QFormLayout.SpanningRole, self.label_45) self.formLayout_9.setWidget(5, QtGui.QFormLayout.SpanningRole, self.framePraameter_6) self.frameParameter_7 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frameParameter_7.setFrameShape(QtGui.QFrame.StyledPanel) self.frameParameter_7.setFrameShadow(QtGui.QFrame.Raised) self.frameParameter_7.setObjectName(_fromUtf8("frameParameter_7")) self.formLayout_4 = QtGui.QFormLayout(self.frameParameter_7) self.formLayout_4.setObjectName(_fromUtf8("formLayout_4")) self.label_16 = QtGui.QLabel(self.frameParameter_7) self.label_16.setObjectName(_fromUtf8("label_16")) self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_16) self.lineEdit_13 = QtGui.QLineEdit(self.frameParameter_7) self.lineEdit_13.setObjectName(_fromUtf8("lineEdit_13")) self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_13) self.label_17 = QtGui.QLabel(self.frameParameter_7) self.label_17.setObjectName(_fromUtf8("label_17")) self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_17) self.lineEdit_14 = QtGui.QLineEdit(self.frameParameter_7) self.lineEdit_14.setObjectName(_fromUtf8("lineEdit_14")) self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_14) self.label_18 = QtGui.QLabel(self.frameParameter_7) self.label_18.setObjectName(_fromUtf8("label_18")) self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_18) self.lineEdit_15 = QtGui.QLineEdit(self.frameParameter_7) self.lineEdit_15.setObjectName(_fromUtf8("lineEdit_15")) self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_15) self.label_19 = QtGui.QLabel(self.frameParameter_7) self.label_19.setObjectName(_fromUtf8("label_19")) self.formLayout_4.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_19) self.lineEdit_16 = QtGui.QLineEdit(self.frameParameter_7) self.lineEdit_16.setObjectName(_fromUtf8("lineEdit_16")) self.formLayout_4.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_16) self.label_20 = QtGui.QLabel(self.frameParameter_7) self.label_20.setObjectName(_fromUtf8("label_20")) self.formLayout_4.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_20) self.comboBox_4 = QtGui.QComboBox(self.frameParameter_7) self.comboBox_4.setObjectName(_fromUtf8("comboBox_4")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.comboBox_4.addItem(_fromUtf8("")) self.formLayout_4.setWidget(5, QtGui.QFormLayout.FieldRole, self.comboBox_4) self.label_46 = QtGui.QLabel(self.frameParameter_7) self.label_46.setObjectName(_fromUtf8("label_46")) self.formLayout_4.setWidget(0, QtGui.QFormLayout.SpanningRole, self.label_46) self.formLayout_9.setWidget(6, QtGui.QFormLayout.SpanningRole, self.frameParameter_7) self.frameParameter_8 = QtGui.QFrame(self.scrollAreaWidgetContents) self.frameParameter_8.setFrameShape(QtGui.QFrame.StyledPanel) self.frameParameter_8.setFrameShadow(QtGui.QFrame.Raised) self.frameParameter_8.setObjectName(_fromUtf8("frameParameter_8")) self.formLayout_8 = QtGui.QFormLayout(self.frameParameter_8) self.formLayout_8.setObjectName(_fromUtf8("formLayout_8")) self.label_47 = QtGui.QLabel(self.frameParameter_8) self.label_47.setObjectName(_fromUtf8("label_47")) self.formLayout_8.setWidget(1, QtGui.QFormLayout.SpanningRole, self.label_47) self.label_36 = QtGui.QLabel(self.frameParameter_8) self.label_36.setObjectName(_fromUtf8("label_36")) self.formLayout_8.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_36) self.lineEdit_29 = QtGui.QLineEdit(self.frameParameter_8) self.lineEdit_29.setObjectName(_fromUtf8("lineEdit_29")) self.formLayout_8.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_29) self.label_37 = QtGui.QLabel(self.frameParameter_8) self.label_37.setObjectName(_fromUtf8("label_37")) self.formLayout_8.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_37) self.lineEdit_30 = QtGui.QLineEdit(self.frameParameter_8) self.lineEdit_30.setObjectName(_fromUtf8("lineEdit_30")) self.formLayout_8.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_30) self.label_38 = QtGui.QLabel(self.frameParameter_8) self.label_38.setObjectName(_fromUtf8("label_38")) self.formLayout_8.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_38) self.lineEdit_31 = QtGui.QLineEdit(self.frameParameter_8) self.lineEdit_31.setObjectName(_fromUtf8("lineEdit_31")) self.formLayout_8.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_31) self.label_39 = QtGui.QLabel(self.frameParameter_8) self.label_39.setObjectName(_fromUtf8("label_39")) self.formLayout_8.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_39) self.lineEdit_32 = QtGui.QLineEdit(self.frameParameter_8) self.lineEdit_32.setObjectName(_fromUtf8("lineEdit_32")) self.formLayout_8.setWidget(5, QtGui.QFormLayout.FieldRole, self.lineEdit_32) self.label_40 = QtGui.QLabel(self.frameParameter_8) self.label_40.setObjectName(_fromUtf8("label_40")) self.formLayout_8.setWidget(6, QtGui.QFormLayout.LabelRole, self.label_40) self.comboBox_8 = QtGui.QComboBox(self.frameParameter_8) self.comboBox_8.setObjectName(_fromUtf8("comboBox_8")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.comboBox_8.addItem(_fromUtf8("")) self.formLayout_8.setWidget(6, QtGui.QFormLayout.FieldRole, self.comboBox_8) self.formLayout_9.setWidget(7, QtGui.QFormLayout.FieldRole, self.frameParameter_8) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.gridLayout.addWidget(self.scrollArea, 0, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(Dialog_Parametrs) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1) self.retranslateUi(Dialog_Parametrs) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog_Parametrs.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog_Parametrs.reject) QtCore.QMetaObject.connectSlotsByName(Dialog_Parametrs) def retranslateUi(self, Dialog_Parametrs): Dialog_Parametrs.setWindowTitle(_translate("Dialog_Parametrs", "Dialog", None)) self.label.setText(_translate("Dialog_Parametrs", "Element Name", None)) self.label_2.setText(_translate("Dialog_Parametrs", "Units", None)) self.label_3.setText(_translate("Dialog_Parametrs", "Min. Value", None)) self.label_4.setText(_translate("Dialog_Parametrs", "Max Value", None)) self.label_6.setText(_translate("Dialog_Parametrs", "No. of Characters", None)) self.comboBox.setItemText(0, _translate("Dialog_Parametrs", "1", None)) self.comboBox.setItemText(1, _translate("Dialog_Parametrs", "2", None)) self.comboBox.setItemText(2, _translate("Dialog_Parametrs", "3", None)) self.comboBox.setItemText(3, _translate("Dialog_Parametrs", "4", None)) self.comboBox.setItemText(4, _translate("Dialog_Parametrs", "5", None)) self.comboBox.setItemText(5, _translate("Dialog_Parametrs", "6", None)) self.comboBox.setItemText(6, _translate("Dialog_Parametrs", "7", None)) self.comboBox.setItemText(7, _translate("Dialog_Parametrs", "8", None)) self.comboBox.setItemText(8, _translate("Dialog_Parametrs", "9", None)) self.comboBox.setItemText(9, _translate("Dialog_Parametrs", "10", None)) self.comboBox.setItemText(10, _translate("Dialog_Parametrs", "11", None)) self.comboBox.setItemText(11, _translate("Dialog_Parametrs", "12", None)) self.comboBox.setItemText(12, _translate("Dialog_Parametrs", "13", None)) self.comboBox.setItemText(13, _translate("Dialog_Parametrs", "14", None)) self.comboBox.setItemText(14, _translate("Dialog_Parametrs", "15", None)) self.comboBox.setItemText(15, _translate("Dialog_Parametrs", "16", None)) self.comboBox.setItemText(16, _translate("Dialog_Parametrs", "17", None)) self.comboBox.setItemText(17, _translate("Dialog_Parametrs", "18", None)) self.comboBox.setItemText(18, _translate("Dialog_Parametrs", "19", None)) self.comboBox.setItemText(19, _translate("Dialog_Parametrs", "20", None)) self.comboBox.setItemText(20, _translate("Dialog_Parametrs", "21", None)) self.comboBox.setItemText(21, _translate("Dialog_Parametrs", "22", None)) self.comboBox.setItemText(22, _translate("Dialog_Parametrs", "23", None)) self.comboBox.setItemText(23, _translate("Dialog_Parametrs", "24", None)) self.comboBox.setItemText(24, _translate("Dialog_Parametrs", "25", None)) self.comboBox.setItemText(25, _translate("Dialog_Parametrs", "26", None)) self.comboBox.setItemText(26, _translate("Dialog_Parametrs", "27", None)) self.comboBox.setItemText(27, _translate("Dialog_Parametrs", "28", None)) self.comboBox.setItemText(28, _translate("Dialog_Parametrs", "29", None)) self.comboBox.setItemText(29, _translate("Dialog_Parametrs", "30", None)) self.label_48.setText(_translate("Dialog_Parametrs", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Parameter 1</span></p></body></html>", None)) self.label_41.setText(_translate("Dialog_Parametrs", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Parameter 2</span></p></body></html>", None)) self.label_5.setText(_translate("Dialog_Parametrs", "Element Name", None)) self.label_7.setText(_translate("Dialog_Parametrs", "Units", None)) self.label_8.setText(_translate("Dialog_Parametrs", "Min. Value", None)) self.label_9.setText(_translate("Dialog_Parametrs", "Max Value", None)) self.label_10.setText(_translate("Dialog_Parametrs", "No. of Characters", None)) self.comboBox_2.setItemText(0, _translate("Dialog_Parametrs", "1", None)) self.comboBox_2.setItemText(1, _translate("Dialog_Parametrs", "2", None)) self.comboBox_2.setItemText(2, _translate("Dialog_Parametrs", "3", None)) self.comboBox_2.setItemText(3, _translate("Dialog_Parametrs", "4", None)) self.comboBox_2.setItemText(4, _translate("Dialog_Parametrs", "5", None)) self.comboBox_2.setItemText(5, _translate("Dialog_Parametrs", "6", None)) self.comboBox_2.setItemText(6, _translate("Dialog_Parametrs", "7", None)) self.comboBox_2.setItemText(7, _translate("Dialog_Parametrs", "8", None)) self.comboBox_2.setItemText(8, _translate("Dialog_Parametrs", "9", None)) self.comboBox_2.setItemText(9, _translate("Dialog_Parametrs", "10", None)) self.comboBox_2.setItemText(10, _translate("Dialog_Parametrs", "11", None)) self.comboBox_2.setItemText(11, _translate("Dialog_Parametrs", "12", None)) self.comboBox_2.setItemText(12, _translate("Dialog_Parametrs", "13", None)) self.comboBox_2.setItemText(13, _translate("Dialog_Parametrs", "14", None)) self.comboBox_2.setItemText(14, _translate("Dialog_Parametrs", "15", None)) self.comboBox_2.setItemText(15, _translate("Dialog_Parametrs", "16", None)) self.comboBox_2.setItemText(16, _translate("Dialog_Parametrs", "17", None)) self.comboBox_2.setItemText(17, _translate("Dialog_Parametrs", "18", None)) self.comboBox_2.setItemText(18, _translate("Dialog_Parametrs", "19", None)) self.comboBox_2.setItemText(19, _translate("Dialog_Parametrs", "20", None)) self.comboBox_2.setItemText(20, _translate("Dialog_Parametrs", "21", None)) self.comboBox_2.setItemText(21, _translate("Dialog_Parametrs", "22", None)) self.comboBox_2.setItemText(22, _translate("Dialog_Parametrs", "23", None)) self.comboBox_2.setItemText(23, _translate("Dialog_Parametrs", "24", None)) self.comboBox_2.setItemText(24, _translate("Dialog_Parametrs", "25", None)) self.comboBox_2.setItemText(25, _translate("Dialog_Parametrs", "26", None)) self.comboBox_2.setItemText(26, _translate("Dialog_Parametrs", "27", None)) self.comboBox_2.setItemText(27, _translate("Dialog_Parametrs", "28", None)) self.comboBox_2.setItemText(28, _translate("Dialog_Parametrs", "29", None)) self.comboBox_2.setItemText(29, _translate("Dialog_Parametrs", "30", None)) self.label_21.setText(_translate("Dialog_Parametrs", "Element Name", None)) self.label_22.setText(_translate("Dialog_Parametrs", "Units", None)) self.label_23.setText(_translate("Dialog_Parametrs", "Min. Value", None)) self.label_24.setText(_translate("Dialog_Parametrs", "Max Value", None)) self.label_25.setText(_translate("Dialog_Parametrs", "No. of Characters", None)) self.comboBox_5.setItemText(0, _translate("Dialog_Parametrs", "1", None)) self.comboBox_5.setItemText(1, _translate("Dialog_Parametrs", "2", None)) self.comboBox_5.setItemText(2, _translate("Dialog_Parametrs", "3", None)) self.comboBox_5.setItemText(3, _translate("Dialog_Parametrs", "4", None)) self.comboBox_5.setItemText(4, _translate("Dialog_Parametrs", "5", None)) self.comboBox_5.setItemText(5, _translate("Dialog_Parametrs", "6", None)) self.comboBox_5.setItemText(6, _translate("Dialog_Parametrs", "7", None)) self.comboBox_5.setItemText(7, _translate("Dialog_Parametrs", "8", None)) self.comboBox_5.setItemText(8, _translate("Dialog_Parametrs", "9", None)) self.comboBox_5.setItemText(9, _translate("Dialog_Parametrs", "10", None)) self.comboBox_5.setItemText(10, _translate("Dialog_Parametrs", "11", None)) self.comboBox_5.setItemText(11, _translate("Dialog_Parametrs", "12", None)) self.comboBox_5.setItemText(12, _translate("Dialog_Parametrs", "13", None)) self.comboBox_5.setItemText(13, _translate("Dialog_Parametrs", "14", None)) self.comboBox_5.setItemText(14, _translate("Dialog_Parametrs", "15", None)) self.comboBox_5.setItemText(15, _translate("Dialog_Parametrs", "16", None)) self.comboBox_5.setItemText(16, _translate("Dialog_Parametrs", "17", None)) self.comboBox_5.setItemText(17, _translate("Dialog_Parametrs", "18", None)) self.comboBox_5.setItemText(18, _translate("Dialog_Parametrs", "19", None)) self.comboBox_5.setItemText(19, _translate("Dialog_Parametrs", "20", None)) self.comboBox_5.setItemText(20, _translate("Dialog_Parametrs", "21", None)) self.comboBox_5.setItemText(21, _translate("Dialog_Parametrs", "22", None)) self.comboBox_5.setItemText(22, _translate("Dialog_Parametrs", "23", None)) self.comboBox_5.setItemText(23, _translate("Dialog_Parametrs", "24", None)) self.comboBox_5.setItemText(24, _translate("Dialog_Parametrs", "25", None)) self.comboBox_5.setItemText(25, _translate("Dialog_Parametrs", "26", None)) self.comboBox_5.setItemText(26, _translate("Dialog_Parametrs", "27", None)) self.comboBox_5.setItemText(27, _translate("Dialog_Parametrs", "28", None)) self.comboBox_5.setItemText(28, _translate("Dialog_Parametrs", "29", None)) self.comboBox_5.setItemText(29, _translate("Dialog_Parametrs", "30", None)) self.label_42.setText(_translate("Dialog_Parametrs", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Parameter 3</span></p></body></html>", None)) self.label_26.setText(_translate("Dialog_Parametrs", "Element Name", None)) self.label_27.setText(_translate("Dialog_Parametrs", "Units", None)) self.label_28.setText(_translate("Dialog_Parametrs", "Min. Value", None)) self.label_29.setText(_translate("Dialog_Parametrs", "Max Value", None)) self.label_30.setText(_translate("Dialog_Parametrs", "No. of Characters", None)) self.comboBox_6.setItemText(0, _translate("Dialog_Parametrs", "1", None)) self.comboBox_6.setItemText(1, _translate("Dialog_Parametrs", "2", None)) self.comboBox_6.setItemText(2, _translate("Dialog_Parametrs", "3", None)) self.comboBox_6.setItemText(3, _translate("Dialog_Parametrs", "4", None)) self.comboBox_6.setItemText(4, _translate("Dialog_Parametrs", "5", None)) self.comboBox_6.setItemText(5, _translate("Dialog_Parametrs", "6", None)) self.comboBox_6.setItemText(6, _translate("Dialog_Parametrs", "7", None)) self.comboBox_6.setItemText(7, _translate("Dialog_Parametrs", "8", None)) self.comboBox_6.setItemText(8, _translate("Dialog_Parametrs", "9", None)) self.comboBox_6.setItemText(9, _translate("Dialog_Parametrs", "10", None)) self.comboBox_6.setItemText(10, _translate("Dialog_Parametrs", "11", None)) self.comboBox_6.setItemText(11, _translate("Dialog_Parametrs", "12", None)) self.comboBox_6.setItemText(12, _translate("Dialog_Parametrs", "13", None)) self.comboBox_6.setItemText(13, _translate("Dialog_Parametrs", "14", None)) self.comboBox_6.setItemText(14, _translate("Dialog_Parametrs", "15", None)) self.comboBox_6.setItemText(15, _translate("Dialog_Parametrs", "16", None)) self.comboBox_6.setItemText(16, _translate("Dialog_Parametrs", "17", None)) self.comboBox_6.setItemText(17, _translate("Dialog_Parametrs", "18", None)) self.comboBox_6.setItemText(18, _translate("Dialog_Parametrs", "19", None)) self.comboBox_6.setItemText(19, _translate("Dialog_Parametrs", "20", None)) self.comboBox_6.setItemText(20, _translate("Dialog_Parametrs", "21", None)) self.comboBox_6.setItemText(21, _translate("Dialog_Parametrs", "22", None)) self.comboBox_6.setItemText(22, _translate("Dialog_Parametrs", "23", None)) self.comboBox_6.setItemText(23, _translate("Dialog_Parametrs", "24", None)) self.comboBox_6.setItemText(24, _translate("Dialog_Parametrs", "25", None)) self.comboBox_6.setItemText(25, _translate("Dialog_Parametrs", "26", None)) self.comboBox_6.setItemText(26, _translate("Dialog_Parametrs", "27", None)) self.comboBox_6.setItemText(27, _translate("Dialog_Parametrs", "28", None)) self.comboBox_6.setItemText(28, _translate("Dialog_Parametrs", "29", None)) self.comboBox_6.setItemText(29, _translate("Dialog_Parametrs", "30", None)) self.label_43.setText(_translate("Dialog_Parametrs", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Parameter 4</span></p></body></html>", None)) self.label_31.setText(_translate("Dialog_Parametrs", "Element Name", None)) self.label_32.setText(_translate("Dialog_Parametrs", "Units", None)) self.label_33.setText(_translate("Dialog_Parametrs", "Min. Value", None)) self.label_34.setText(_translate("Dialog_Parametrs", "Max Value", None)) self.label_35.setText(_translate("Dialog_Parametrs", "No. of Characters", None)) self.comboBox_7.setItemText(0, _translate("Dialog_Parametrs", "1", None)) self.comboBox_7.setItemText(1, _translate("Dialog_Parametrs", "2", None)) self.comboBox_7.setItemText(2, _translate("Dialog_Parametrs", "3", None)) self.comboBox_7.setItemText(3, _translate("Dialog_Parametrs", "4", None)) self.comboBox_7.setItemText(4, _translate("Dialog_Parametrs", "5", None)) self.comboBox_7.setItemText(5, _translate("Dialog_Parametrs", "6", None)) self.comboBox_7.setItemText(6, _translate("Dialog_Parametrs", "7", None)) self.comboBox_7.setItemText(7, _translate("Dialog_Parametrs", "8", None)) self.comboBox_7.setItemText(8, _translate("Dialog_Parametrs", "9", None)) self.comboBox_7.setItemText(9, _translate("Dialog_Parametrs", "10", None)) self.comboBox_7.setItemText(10, _translate("Dialog_Parametrs", "11", None)) self.comboBox_7.setItemText(11, _translate("Dialog_Parametrs", "12", None)) self.comboBox_7.setItemText(12, _translate("Dialog_Parametrs", "13", None)) self.comboBox_7.setItemText(13, _translate("Dialog_Parametrs", "14", None)) self.comboBox_7.setItemText(14, _translate("Dialog_Parametrs", "15", None)) self.comboBox_7.setItemText(15, _translate("Dialog_Parametrs", "16", None)) self.comboBox_7.setItemText(16, _translate("Dialog_Parametrs", "17", None)) self.comboBox_7.setItemText(17, _translate("Dialog_Parametrs", "18", None)) self.comboBox_7.setItemText(18, _translate("Dialog_Parametrs", "19", None)) self.comboBox_7.setItemText(19, _translate("Dialog_Parametrs", "20", None)) self.comboBox_7.setItemText(20, _translate("Dialog_Parametrs", "21", None)) self.comboBox_7.setItemText(21, _translate("Dialog_Parametrs", "22", None)) self.comboBox_7.setItemText(22, _translate("Dialog_Parametrs", "23", None)) self.comboBox_7.setItemText(23, _translate("Dialog_Parametrs", "24", None)) self.comboBox_7.setItemText(24, _translate("Dialog_Parametrs", "25", None)) self.comboBox_7.setItemText(25, _translate("Dialog_Parametrs", "26", None)) self.comboBox_7.setItemText(26, _translate("Dialog_Parametrs", "27", None)) self.comboBox_7.setItemText(27, _translate("Dialog_Parametrs", "28", None)) self.comboBox_7.setItemText(28, _translate("Dialog_Parametrs", "29", None)) self.comboBox_7.setItemText(29, _translate("Dialog_Parametrs", "30", None)) self.label_44.setText(_translate("Dialog_Parametrs", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Parameter 5</span></p></body></html>", None)) self.label_11.setText(_translate("Dialog_Parametrs", "Element Name", None)) self.label_12.setText(_translate("Dialog_Parametrs", "Units", None)) self.label_13.setText(_translate("Dialog_Parametrs", "Min. Value", None)) self.label_14.setText(_translate("Dialog_Parametrs", "Max Value", None)) self.label_15.setText(_translate("Dialog_Parametrs", "No. of Characters", None)) self.comboBox_3.setItemText(0, _translate("Dialog_Parametrs", "1", None)) self.comboBox_3.setItemText(1, _translate("Dialog_Parametrs", "2", None)) self.comboBox_3.setItemText(2, _translate("Dialog_Parametrs", "3", None)) self.comboBox_3.setItemText(3, _translate("Dialog_Parametrs", "4", None)) self.comboBox_3.setItemText(4, _translate("Dialog_Parametrs", "5", None)) self.comboBox_3.setItemText(5, _translate("Dialog_Parametrs", "6", None)) self.comboBox_3.setItemText(6, _translate("Dialog_Parametrs", "7", None)) self.comboBox_3.setItemText(7, _translate("Dialog_Parametrs", "8", None)) self.comboBox_3.setItemText(8, _translate("Dialog_Parametrs", "9", None)) self.comboBox_3.setItemText(9, _translate("Dialog_Parametrs", "10", None)) self.comboBox_3.setItemText(10, _translate("Dialog_Parametrs", "11", None)) self.comboBox_3.setItemText(11, _translate("Dialog_Parametrs", "12", None)) self.comboBox_3.setItemText(12, _translate("Dialog_Parametrs", "13", None)) self.comboBox_3.setItemText(13, _translate("Dialog_Parametrs", "14", None)) self.comboBox_3.setItemText(14, _translate("Dialog_Parametrs", "15", None)) self.comboBox_3.setItemText(15, _translate("Dialog_Parametrs", "16", None)) self.comboBox_3.setItemText(16, _translate("Dialog_Parametrs", "17", None)) self.comboBox_3.setItemText(17, _translate("Dialog_Parametrs", "18", None)) self.comboBox_3.setItemText(18, _translate("Dialog_Parametrs", "19", None)) self.comboBox_3.setItemText(19, _translate("Dialog_Parametrs", "20", None)) self.comboBox_3.setItemText(20, _translate("Dialog_Parametrs", "21", None)) self.comboBox_3.setItemText(21, _translate("Dialog_Parametrs", "22", None)) self.comboBox_3.setItemText(22, _translate("Dialog_Parametrs", "23", None)) self.comboBox_3.setItemText(23, _translate("Dialog_Parametrs", "24", None)) self.comboBox_3.setItemText(24, _translate("Dialog_Parametrs", "25", None)) self.comboBox_3.setItemText(25, _translate("Dialog_Parametrs", "26", None)) self.comboBox_3.setItemText(26, _translate("Dialog_Parametrs", "27", None)) self.comboBox_3.setItemText(27, _translate("Dialog_Parametrs", "28", None)) self.comboBox_3.setItemText(28, _translate("Dialog_Parametrs", "29", None)) self.comboBox_3.setItemText(29, _translate("Dialog_Parametrs", "30", None)) self.label_45.setText(_translate("Dialog_Parametrs", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Parameter 6</span></p></body></html>", None)) self.label_16.setText(_translate("Dialog_Parametrs", "Element Name", None)) self.label_17.setText(_translate("Dialog_Parametrs", "Units", None)) self.label_18.setText(_translate("Dialog_Parametrs", "Min. Value", None)) self.label_19.setText(_translate("Dialog_Parametrs", "Max Value", None)) self.label_20.setText(_translate("Dialog_Parametrs", "No. of Characters", None)) self.comboBox_4.setItemText(0, _translate("Dialog_Parametrs", "1", None)) self.comboBox_4.setItemText(1, _translate("Dialog_Parametrs", "2", None)) self.comboBox_4.setItemText(2, _translate("Dialog_Parametrs", "3", None)) self.comboBox_4.setItemText(3, _translate("Dialog_Parametrs", "4", None)) self.comboBox_4.setItemText(4, _translate("Dialog_Parametrs", "5", None)) self.comboBox_4.setItemText(5, _translate("Dialog_Parametrs", "6", None)) self.comboBox_4.setItemText(6, _translate("Dialog_Parametrs", "7", None)) self.comboBox_4.setItemText(7, _translate("Dialog_Parametrs", "8", None)) self.comboBox_4.setItemText(8, _translate("Dialog_Parametrs", "9", None)) self.comboBox_4.setItemText(9, _translate("Dialog_Parametrs", "10", None)) self.comboBox_4.setItemText(10, _translate("Dialog_Parametrs", "11", None)) self.comboBox_4.setItemText(11, _translate("Dialog_Parametrs", "12", None)) self.comboBox_4.setItemText(12, _translate("Dialog_Parametrs", "13", None)) self.comboBox_4.setItemText(13, _translate("Dialog_Parametrs", "14", None)) self.comboBox_4.setItemText(14, _translate("Dialog_Parametrs", "15", None)) self.comboBox_4.setItemText(15, _translate("Dialog_Parametrs", "16", None)) self.comboBox_4.setItemText(16, _translate("Dialog_Parametrs", "17", None)) self.comboBox_4.setItemText(17, _translate("Dialog_Parametrs", "18", None)) self.comboBox_4.setItemText(18, _translate("Dialog_Parametrs", "19", None)) self.comboBox_4.setItemText(19, _translate("Dialog_Parametrs", "20", None)) self.comboBox_4.setItemText(20, _translate("Dialog_Parametrs", "21", None)) self.comboBox_4.setItemText(21, _translate("Dialog_Parametrs", "22", None)) self.comboBox_4.setItemText(22, _translate("Dialog_Parametrs", "23", None)) self.comboBox_4.setItemText(23, _translate("Dialog_Parametrs", "24", None)) self.comboBox_4.setItemText(24, _translate("Dialog_Parametrs", "25", None)) self.comboBox_4.setItemText(25, _translate("Dialog_Parametrs", "26", None)) self.comboBox_4.setItemText(26, _translate("Dialog_Parametrs", "27", None)) self.comboBox_4.setItemText(27, _translate("Dialog_Parametrs", "28", None)) self.comboBox_4.setItemText(28, _translate("Dialog_Parametrs", "29", None)) self.comboBox_4.setItemText(29, _translate("Dialog_Parametrs", "30", None)) self.label_46.setText(_translate("Dialog_Parametrs", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Parameter 7</span></p></body></html>", None)) self.label_47.setText(_translate("Dialog_Parametrs", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Parameter 8</span></p></body></html>", None)) self.label_36.setText(_translate("Dialog_Parametrs", "Element Name", None)) self.label_37.setText(_translate("Dialog_Parametrs", "Units", None)) self.label_38.setText(_translate("Dialog_Parametrs", "Min. Value", None)) self.label_39.setText(_translate("Dialog_Parametrs", "Max Value", None)) self.label_40.setText(_translate("Dialog_Parametrs", "No. of Characters", None)) self.comboBox_8.setItemText(0, _translate("Dialog_Parametrs", "1", None)) self.comboBox_8.setItemText(1, _translate("Dialog_Parametrs", "2", None)) self.comboBox_8.setItemText(2, _translate("Dialog_Parametrs", "3", None)) self.comboBox_8.setItemText(3, _translate("Dialog_Parametrs", "4", None)) self.comboBox_8.setItemText(4, _translate("Dialog_Parametrs", "5", None)) self.comboBox_8.setItemText(5, _translate("Dialog_Parametrs", "6", None)) self.comboBox_8.setItemText(6, _translate("Dialog_Parametrs", "7", None)) self.comboBox_8.setItemText(7, _translate("Dialog_Parametrs", "8", None)) self.comboBox_8.setItemText(8, _translate("Dialog_Parametrs", "9", None)) self.comboBox_8.setItemText(9, _translate("Dialog_Parametrs", "10", None)) self.comboBox_8.setItemText(10, _translate("Dialog_Parametrs", "11", None)) self.comboBox_8.setItemText(11, _translate("Dialog_Parametrs", "12", None)) self.comboBox_8.setItemText(12, _translate("Dialog_Parametrs", "13", None)) self.comboBox_8.setItemText(13, _translate("Dialog_Parametrs", "14", None)) self.comboBox_8.setItemText(14, _translate("Dialog_Parametrs", "15", None)) self.comboBox_8.setItemText(15, _translate("Dialog_Parametrs", "16", None)) self.comboBox_8.setItemText(16, _translate("Dialog_Parametrs", "17", None)) self.comboBox_8.setItemText(17, _translate("Dialog_Parametrs", "18", None)) self.comboBox_8.setItemText(18, _translate("Dialog_Parametrs", "19", None)) self.comboBox_8.setItemText(19, _translate("Dialog_Parametrs", "20", None)) self.comboBox_8.setItemText(20, _translate("Dialog_Parametrs", "21", None)) self.comboBox_8.setItemText(21, _translate("Dialog_Parametrs", "22", None)) self.comboBox_8.setItemText(22, _translate("Dialog_Parametrs", "23", None)) self.comboBox_8.setItemText(23, _translate("Dialog_Parametrs", "24", None)) self.comboBox_8.setItemText(24, _translate("Dialog_Parametrs", "25", None)) self.comboBox_8.setItemText(25, _translate("Dialog_Parametrs", "26", None)) self.comboBox_8.setItemText(26, _translate("Dialog_Parametrs", "27", None)) self.comboBox_8.setItemText(27, _translate("Dialog_Parametrs", "28", None)) self.comboBox_8.setItemText(28, _translate("Dialog_Parametrs", "29", None)) self.comboBox_8.setItemText(29, _translate("Dialog_Parametrs", "30", None))
68.415282
197
0.695269
7,111
61,779
5.757559
0.025172
0.147721
0.16941
0.152997
0.827634
0.802037
0.770505
0.56138
0.547164
0.199257
0
0.052071
0.165347
61,779
902
198
68.491131
0.741932
0.002978
0
0.277027
1
0
0.118926
0.006591
0
0
0
0
0
1
0.005631
false
0
0.001126
0.003378
0.011261
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7760d6ee03296705c8bf4a0f9912c3882b320650
118
py
Python
hfcommon/__init__.py
huntflow/hfcommon
f26c300b89cfa2fc1c20be77f8ad09f13661b348
[ "MIT" ]
null
null
null
hfcommon/__init__.py
huntflow/hfcommon
f26c300b89cfa2fc1c20be77f8ad09f13661b348
[ "MIT" ]
null
null
null
hfcommon/__init__.py
huntflow/hfcommon
f26c300b89cfa2fc1c20be77f8ad09f13661b348
[ "MIT" ]
null
null
null
import os from hfcommon.version import version __version__ = version HFCOMMON_BASE_PATH = os.path.dirname(__file__)
16.857143
46
0.822034
16
118
5.4375
0.5625
0.321839
0
0
0
0
0
0
0
0
0
0
0.118644
118
6
47
19.666667
0.836538
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4