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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40fa71f183ff00e5708290bfd13ec85f4ce01150
| 231
|
py
|
Python
|
agent/indy_catalyst_agent/transport/__init__.py
|
TelegramSam/indy-catalyst
|
476f5a773d90d8b50960b49e63b823bd13325d4a
|
[
"Apache-2.0"
] | null | null | null |
agent/indy_catalyst_agent/transport/__init__.py
|
TelegramSam/indy-catalyst
|
476f5a773d90d8b50960b49e63b823bd13325d4a
|
[
"Apache-2.0"
] | null | null | null |
agent/indy_catalyst_agent/transport/__init__.py
|
TelegramSam/indy-catalyst
|
476f5a773d90d8b50960b49e63b823bd13325d4a
|
[
"Apache-2.0"
] | null | null | null |
from abc import ABC, abstractmethod
from typing import Callable
class InvalidTransportError(Exception):
pass
class BaseTransport(ABC):
@abstractmethod
def start(self, message_router: Callable) -> None:
pass
| 17.769231
| 54
| 0.735931
| 25
| 231
| 6.76
| 0.68
| 0.201183
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.199134
| 231
| 12
| 55
| 19.25
| 0.913514
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0.25
| 0.25
| 0
| 0.625
| 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
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
dc09503577099505877062b04fbc0edbd20fd8fe
| 55,267
|
py
|
Python
|
lifeloopweb/db/migrations/alembic/versions/01e2a6b69547_editor_revisions.py
|
jaimecruz21/lifeloopweb
|
ba0ffe1ea94ba3323a4e9c66c9506a338cae3212
|
[
"MIT"
] | null | null | null |
lifeloopweb/db/migrations/alembic/versions/01e2a6b69547_editor_revisions.py
|
jaimecruz21/lifeloopweb
|
ba0ffe1ea94ba3323a4e9c66c9506a338cae3212
|
[
"MIT"
] | null | null | null |
lifeloopweb/db/migrations/alembic/versions/01e2a6b69547_editor_revisions.py
|
jaimecruz21/lifeloopweb
|
ba0ffe1ea94ba3323a4e9c66c9506a338cae3212
|
[
"MIT"
] | null | null | null |
"""editor revisions
Revision ID: 01e2a6b69547
Revises: 431fad7763be
Create Date: 2018-04-23 12:34:38.435605
"""
from alembic import op
import sqlalchemy as sa
import lifeloopweb.db.models
from sqlalchemy.dialects import mysql
from sqlalchemy.sql import table, column
from sqlalchemy import String, Binary, Integer, Text
# revision identifiers, used by Alembic.
revision = '01e2a6b69547'
down_revision = '431fad7763be'
branch_labels = None
depends_on = None
pages = table(
'pages',
column('id', Binary),
column('title', String),
column('content', String),
column('pagetype', Text),
column('updated_by', String))
def upgrade():
op.drop_table('pages')
op.create_table('pages',
sa.Column('created_at', sa.DateTime(), server_default=sa.text('now()'), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', lifeloopweb.db.models.GUID(length=16), nullable=False),
sa.Column('title', sa.String(length=1000), nullable=False),
sa.Column('content', sa.Text(length=40000), nullable=False),
sa.Column('pagetype', sa.String(length=16), nullable=False),
sa.Column('updated_by', sa.String(length=60), nullable=False),
sa.PrimaryKeyConstraint('id'),
mysql_charset='utf8',
mysql_collate='utf8_general_ci',
mysql_engine='InnoDB'
)
op.bulk_insert(pages,
[{'id': lifeloopweb.db.utils.generate_guid().bytes,
'title': "<h2 class='mt-5' style='box-sizing: border-box; margin-bottom: 0.5rem; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important;'>TONEO, INC. PRIVACY STATEMENT</h2>",
'content': """
<p class='mt-3' style='box-sizing: border-box; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif; margin-top: 1rem !important;'>Toneo, Inc., believes that protecting your privacy is a serious issue that we as an organization take very seriously. Please read the Privacy Policy (the 'Policy') to learn more about what measures Toneo, Inc., takes to insure your information is secured. This Policy describes what information Toneo, Inc., and our product website (Lifeloop.live) collects from you and what happens to that information once gathered by us. This Policy applies to to all sites under Lifeloop.live domain as well our platform, tools and services ('Platform Services').</p>
<h4 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 1.5rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>1. INFORMATION COLLECTED</h4>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.1.</span> We collect the following information about you and your use of our Platform Services in order to create a better experience for you:</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.1.1.</span> Basic user profile information.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.1.2.</span> For each Lifeloop.live group, a name of the group will be assigned by the group leader and statement or short description which will be viewed by everyone accessing the specific Lifeloop.live group.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.1.3.</span> For purposes of this Policy,Personally Identifiable Information (PII) describes information that could be used to identity you personally (such as email address, user name, IP address, DOB, sex, marital status, type of employment, # of children, city, zip code, religious affiliation) which has not been previously disclosed by you and the public areas of the website or the messages you send to groups in the Lifeloop.live Platform.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.2.</span> We automatically track basic information about our members (Internet protocol (IP) addresses, browser type, internet service provider (ISP), referring/exit pages, click patterns, etc.) Lifeloop.live will use this information to provide us with internal research on our member's usage patterns, demographics, interests and general behavior to provide you a better experience with building your community with Lifeloop.live Platform Services.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.3.</span> We do collect information,(postings, conversations, materials) that is provided during individual group sessions within the Platform. The Platform also uses an instant messenger system that will allow you to communicate with other members in the group. Lifeloop.live will archive the messaging history as a way to ensure that there is a record of the communication as well as to comply with any current judicial proceeding, court order or legal process that is served upon our Platform.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.4.</span> We currently contract and utilize online partners to provide the business and communication services for building your community. To do this we and our partners use third-party tracking technologies such as web beacons, pixels, and cookies on the Lifeloop.live Platform. A cookie is a piece of data stored on your computer that is tied to information about you. This type of information collected included the URL you came from and go to, your browser information, and IP address. These cookies further help us to learn and to improve our service to you. Lifeloop.live uses these technologies for user authentication, tracking the user, records the number of group sessions, preferences, and movements in the Platform. Lifeloop.live also utilizes this information for anonymous and aggregate marketing analytics, performance analytics, ad retargeting, and tracking aggregate trends on the Platform. If you wish to opt out of these websites analysis tools, you may do so by contacting us at <a style='box-sizing: border-box; color: #ff295f; text-decoration-line: none; background-color: transparent; touch-action: manipulation;' href='mailto:support@lifeloop.live'>support@lifeloop.live</a></p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.5.</span> For our members' enjoyment and convenience, we also use 'cookies' to allow you to enter your password less frequently during a session and to provide for easier registration. If you configure your browser or choose to reject the cookies, you may still use our site. To best experience our website and our Platform you must have cookies enabled.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>1.6.</span> We do not collect information from any person under 13 years of age.</p>
<h4 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 1.5rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>2. USE OF INFORMATION</h4>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>2.1.</span> We use the information that we collect about you (to include your personally identifiable information) to create a more personalized experience for you, the user. This enhanced user experience is based upon your individual usage habits your personal information. We do not use any data postings, conversations, materials that is provided during individual group sessions within the Platform.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>2.2.</span> We may compile the data that we collect about you and utilize that information, in an aggregate form only for use with various organizations and that are partners associates or collaborators for advertising and/or marketing purposes.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>2.3.</span> We reserve the right to retain and use any photograph or video submitted for publication on the Platform whether via email postings on our website or feedback from group members. Our use of the such material is consistent with the restrictions on disclosure of Personally Identifiable Information. We further reserve to right to monitor, edit and/or restrict any photographs or video that are posted on the platform by an organization, administrator, group leader or user.</p>
<h4 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 1.5rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>3. DISCLOSURE OF INFORMATION</h4>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>3.1.</span> Opt out requirement: Without your affirmative consent, we do not sell rent or otherwise share your personally identifiable information with other third parties unless otherwise required as described below under “Required Disclosures”. Lifeloop.live will only share your data with our partners or advertisers in an aggregate manner, that is not linked to your Personally Identifiable Information. Lifeloop.live will also share data with our partners and advertisers that is non-personally identifiable information.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>3.2.</span> Users should be cognizant that information provided through the registration process or any posts to the public area of our website, or use of the Platform (name/geographical information) may be accessible and made public by search engines, metasearch tools, crawlers, metacrawlers and other similar programs.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>3.3.</span> Lifeloop.live takes your privacy seriously and makes every effort to preserve member privacy. There are some instances where we may need to disclose your Personally Identifiable Information when required by law (Required Disclosure) or if we have a good-faith belief that such disclosure is necessary to comply with a current judicial proceeding, court order or legal process that is served upon our Platform. We will comply with any lawful order that is issued by a law enforcement agency.</p>
<h4 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 1.5rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>4. COMMUNICATIONS FROM LIFELOOP.LIVE AND MEMBERS OF THE LIFELOOP.LIVE GROUPS</h4>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>4.1.</span> Lifeloop.live is built around the communities that represent various faith-based churches organizations and entities. An organization that joins Lifeloop.live will appoint an administrator who will then designate 'group leaders'. These group leaders will then create the individual groups and send/receive invites from individuals who are interested in joining the community. Organizations, administrators and group leaders control whether a group is created or closed.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>4.2.</span> Only members of the group will be able to participate and view on-line video group chat/texts, shared documents with in that specific community. A visitor to Lifeloop.live will only be able to see the name of the group, name of the group members, and the faith-based organization that sponsors the group.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>4.3.</span> Members of a group will not necessarily be notified that a new user is added to or delete from the group. Only the organization, administrator,or group leader has the authority to add or delete a user from a group.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>4.4.</span> A user may request to join a group even if that user does not belong or affiliate with the organization that is sponsoring the group.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>4.5.</span> If a user participates in a group on Lifeloop.live, that the user is implicitly granting some control of postings and the privacy of their profile to the organizations, administrators and group leaders.</p>
<h4 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 1.5rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>5. EDIT / REVIEW / DEACTIVATION OF PERSONAL INFORMATION</h4>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>5.1.</span> Lifeloop.live allows an organization or user to update their Personally Identifiable Information after their initial registration to the Platform. Upon the request of an organization or user, we will deactivate the account and remove it from our active database. To make this request, email <a style='box-sizing: border-box; color: #ff295f; text-decoration-line: none; background-color: transparent; touch-action: manipulation;' href='mailto:support@lifeloop.live'>support@lifeloop.live</a> Upon receipt of the request we will deactivate the user account as soon as reasonably possible in accordance with our deactivation policy and any applicable law.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>5.2.</span> We will maintain a record of information in our database (back up storage) that you may have requested that we remove that, in our discretion, is necessary for us to resolve any disputes, correct problems or enforce the Terms of Service Agreement. The information is never fully removed due to technical and legal constraints. This information will be encrypted while maintained by Lifeloop.live.</p>
<h4 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 1.5rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>6. NOTIFICATION OF CHANGE</h4>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>6.1.</span> If there is a change to this policy we will make notifications on <a style='box-sizing: border-box; color: #ff295f; text-decoration-line: none; background-color: transparent; touch-action: manipulation;' href='http://lifeloop.live/privacy'>http://lifeloop.live/privacy</a> or post notice of the changes to the Policy on the homepage (<a style='box-sizing: border-box; color: #ff295f; text-decoration-line: none; background-color: transparent; touch-action: manipulation;' href='http://lifeloop.live/'>http://lifeloop.live/</a>) and in any other fashion that we deem appropriate. This notification of change is to allow the organizations and users of the Platform to always know how we collect, store, use and disclose information. We will use information in accordance with the Privacy Policy statement under which this information was collected.</p>
<h4 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 1.5rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>7. DISPUTE RESOLUTION</h4>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'><span style='box-sizing: border-box; font-weight: bolder;'>7.1.</span> Any dispute, claim or controversy that arises from the use of the Platform or this Policy or previous Privacy Policy statements shall be resolved through negotiation, mediation and arbitration as provided under our Terms of Service Agreement.</p>
<h4 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 1.5rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>8. CONTACT INFORMATION</h4>
<p class='mb-5' style='box-sizing: border-box; margin-top: 0px; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif; margin-bottom: 3rem !important;'>Toneo, Inc.<br style='box-sizing: border-box;' />22211 IH 10 West, Suite 1206<br style='box-sizing: border-box;' />San Antonio, TX 78257</p>
""",
'pagetype': 'privacy',
'updated_by': 'test@email.com'},
{'id': lifeloopweb.db.utils.generate_guid().bytes,
'title': "<h2 class='mt-5' style='box-sizing: border-box; margin-top: 3rem !important; margin-bottom: 0.5rem; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;'>TERMS & CONDITIONS</h2>",
'content': """
<p class='mt-3' style='box-sizing: border-box; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif; margin-top: 1rem !important;'>Please read these Terms and Conditions ('Terms', 'Terms and Conditions') carefully before using the www.lifeloop.live website (the 'Service') operated by Toneo, LLC doing business as LiveLoop.Live ('us', 'we', or 'our').</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Your access to and use of the Service is conditioned upon your acceptance of and compliance with these Terms. These Terms apply to all visitors, users and others who wish to access or use the Service.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>By accessing or using the Service you agree to be bound by these Terms. If you disagree with any part of the terms then you do not have permission to access the Service.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>COMMUNICATIONS</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>By creating an Account on our service, you agree to subscribe to newsletters, marketing or promotional materials and other information we may send. However, you may opt out of receiving any, or all, of these communications from us by following the unsubscribe link or instructions provided in any email we send.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Create an account, designate an administrator, grant leader privileges, create sessions, and your team is up and connecting in no time.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>PURCHASES</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>If you wish to purchase any product or service made available through the Service ('Purchase'), you may be asked to supply certain information relevant to your Purchase including, without limitation, your credit card number, the expiration date of your credit card, your billing address, and your shipping information.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You represent and warrant that: (i) you have the legal right to use any credit card(s) or other payment method(s) in connection with any Purchase; and that (ii) the information you supply to us is true, correct and complete.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>The service may employ the use of third party services for the purpose of facilitating payment and the completion of Purchases. By submitting your information, you grant us the right to provide the information to these third parties subject to our Privacy Policy.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We reserve the right to refuse or cancel your order at any time for reasons including but not limited to: product or service availability, errors in the description or price of the product or service, error in your order or other reasons.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We reserve the right to refuse or cancel your order if fraud or an unauthorized or illegal transaction is suspected.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>AVAILABILITY, ERRORS AND INACCURACIES</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We are constantly updating product and service offerings on the Service. We may experience delays in updating information on the Service and in our advertising on other web sites. The information found on the Service may contain errors or inaccuracies and may not be complete or current. Products or services may be mispriced, described inaccurately, or unavailable on the Service and we cannot guarantee the accuracy or completeness of any information found on the Service.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We therefore reserve the right to change or update information and to correct errors, inaccuracies, or omissions at any time without prior notice.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>CONTESTS, SWEEPSTAKES AND PROMOTIONS</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Any contests, sweepstakes or other promotions (collectively, 'Promotions') made available through the Service may be governed by rules that are separate from these Terms & Conditions. If you participate in any Promotions, please review the applicable rules as well as our Privacy Policy. If the rules for a Promotion conflict with these Terms and Conditions, the Promotion rules will apply.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>SUBSCRIPTIONS</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Some parts of the Service are billed on a subscription basis ('Subscription(s)'). You will be billed in advance on a recurring and periodic basis ('Billing Cycle'). Billing cycles are set either on a monthly or annual basis, depending on the type of subscription plan you select when purchasing a Subscription.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>At the end of each Billing Cycle, your Subscription will automatically renew under the exact same conditions unless you cancel it or Toneo, LLC doing business as LiveLoop.Live cancels it. You may cancel your Subscription renewal either through your online account management page or by contacting Toneo, LLC doing business as LiveLoop.Live customer support team.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>A valid payment method, including credit card, is required to process the payment for your Subscription. You shall provide Toneo, LLC doing business as LiveLoop.Live with accurate and complete billing information including full name, address, state, zip code, telephone number, and a valid payment method information. By submitting such payment information, you automatically authorize Toneo, LLC doing business as LiveLoop.Live to charge all Subscription fees incurred through your account to any such payment instruments.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Should automatic billing fail to occur for any reason, Toneo, LLC doing business as LiveLoop.Live will issue an electronic invoice indicating that you must proceed manually, within a certain deadline date, with the full payment corresponding to the billing period as indicated on the invoice.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>FREE TRIAL</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Toneo, LLC doing business as LiveLoop.Live may, at its sole discretion, offer a Subscription with a free trial for a limited period of time ('Free Trial').</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You may be required to enter your billing information in order to sign up for the Free Trial.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>If you do enter your billing information when signing up for the Free Trial, you will not be charged by Toneo, LLC doing business as LiveLoop.Live until the Free Trial has expired. On the last day of the Free Trial period, unless you cancelled your Subscription, you will be automatically charged the applicable Subscription fees for the type of Subscription you have selected.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>At any time and without notice, Toneo, LLC doing business as LiveLoop.Live reserves the right to (i) modify the terms and conditions of the Free Trial offer, or (ii) cancel such Free Trial offer.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>FEE CHANGES</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Toneo, LLC doing business as LiveLoop.Live, in its sole discretion and at any time, may modify the Subscription fees for the Subscriptions. Any Subscription fee change will become effective at the end of the then-current Billing Cycle.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Toneo, LLC doing business as LiveLoop.Live will provide you with a reasonable prior notice of any change in Subscription fees to give you an opportunity to terminate your Subscription before such change becomes effective.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Your continued use of the Service after the Subscription fee change comes into effect constitutes your agreement to pay the modified Subscription fee amount.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>REFUNDS</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Certain refund requests for Subscriptions may be considered by Toneo, LLC doing business as LiveLoop.Live on a case-by-case basis and granted in sole discretion of Toneo, LLC doing business as LiveLoop.Live.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>CONTENT</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Our Service allows you to post, link, store, share and otherwise make available certain information, text, graphics, videos, or other material ('Content'). You are responsible for the Content that you post on or through the Service, including its legality, reliability, and appropriateness.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>By posting Content on or through the Service, You represent and warrant that: (i) the Content is yours (you own it) and/or you have the right to use it and the right to grant us the rights and license as provided in these Terms, and (ii) that the posting of your Content on or through the Service does not violate the privacy rights, publicity rights, copyrights, contract rights or any other rights of any person or entity. We reserve the right to terminate the account of anyone found to be infringing on a copyright.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You retain any and all of your rights to any Content you submit, post or display on or through the Service and you are responsible for protecting those rights. We take no responsibility and assume no liability for Content you or any third party posts on or through the Service. However, by posting Content using the Service you grant us the right and license to use, modify, publicly perform, publicly display, reproduce, and distribute such Content on and through the Service. You agree that this license includes the right for us to make your Content available to other users of the Service, who may also use your Content subject to these Terms.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Toneo, LLC doing business as LiveLoop.Live has the right but not the obligation to monitor and edit all Content provided by users.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>In addition, Content found on or through this Service are the property of Toneo, LLC doing business as LiveLoop.Live or used with permission. You may not distribute, modify, transmit, reuse, download, repost, copy, or use said Content, whether in whole or in part, for commercial purposes or for personal gain, without express advance written permission from us.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>ACCOUNTS</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>When you create an account with us, you guarantee that you are above the age of 18, and that the information you provide us is accurate, complete, and current at all times. Inaccurate, incomplete, or obsolete information may result in the immediate termination of your account on the Service.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You are responsible for maintaining the confidentiality of your account and password, including but not limited to the restriction of access to your computer and/or account. You agree to accept responsibility for any and all activities or actions that occur under your account and/or password, whether your password is with our Service or a third-party service. You must notify us immediately upon becoming aware of any breach of security or unauthorized use of your account.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You may not use as a username the name of another person or entity or that is not lawfully available for use, a name or trademark that is subject to any rights of another person or entity other than you, without appropriate authorization. You may not use as a username any name that is offensive, vulgar or obscene.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We reserve the right to refuse service, terminate accounts, remove or edit content, or cancel orders in our sole discretion.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>COPYRIGHT POLICY</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We respect the intellectual property rights of others. It is our policy to respond to any claim that Content posted on the Service infringes on the copyright or other intellectual property rights ('Infringement') of any person or entity.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>If you are a copyright owner, or authorized on behalf of one, and you believe that the copyrighted work has been copied in a way that constitutes copyright infringement, please submit your claim via email to <a style='box-sizing: border-box; color: #ff295f; text-decoration-line: none; background-color: transparent; touch-action: manipulation;' href='mailto:support@lifeloop.live'>support@lifeloop.live</a> with the subject line: 'Copyright Infringement' and include in your claim a detailed description of the alleged Infringement as detailed below, under 'DMCA Notice and Procedure for Copyright Infringement Claims'</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You may be held accountable for damages (including costs and attorneys' fees) for misrepresentation or bad-faith claims on the infringement of any Content found on and/or through the Service on your copyright.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>DMCA NOTICE AND PROCEDURE FOR COPYRIGHT INFRINGEMENT CLAIMS</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You may submit a notification pursuant to the Digital Millennium Copyright Act (DMCA) by providing our Copyright Agent with the following information in writing (see 17 U.S.C 512(c)(3) for further detail):</p>
<ul style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>
<li style='box-sizing: border-box;'>An electronic or physical signature of the person authorized to act on behalf of the owner of the copyright's interest</li>
<li style='box-sizing: border-box;'>A description of the copyrighted work that you claim has been infringed, including the URL (i.e., web page address) of the location where the copyrighted work exists or a copy of the copyrighted work</li>
<li style='box-sizing: border-box;'>Identification of the URL or other specific location on the Service where the material that you claim is infringing is located</li>
<li style='box-sizing: border-box;'>Your address, telephone number, and email address</li>
<li style='box-sizing: border-box;'>A statement by you that you have a good faith belief that the disputed use is not authorized by the copyright owner, its agent, or the law</li>
<li style='box-sizing: border-box;'>A statement by you, made under penalty of perjury, that the above information in your notice is accurate and that you are the copyright owner or authorized to act on the copyright owner's behalf</li>
</ul>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You can contact our Copyright Agent via email at <a style='box-sizing: border-box; color: #ff295f; text-decoration-line: none; background-color: transparent; touch-action: manipulation;' href='mailto:support@lifeloop.live'>support@lifeloop.live</a></p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>INTELLECTUAL PROPERTY</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>The Service and its original content (excluding Content provided by users), features and functionality are and will remain the exclusive property of Toneo, LLC doing business as LiveLoop.Live and its licensors. The Service is protected by copyright, trademark, and other laws of both the United States and foreign countries. Our trademarks and trade dress may not be used in connection with any product or service without the prior written consent of Toneo, LLC doing business as LiveLoop.Live.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>LINKS TO OTHER WEB SITES</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Our Service may contain links to third party web sites or services that are not owned or controlled by Toneo, LLC doing business as LiveLoop.Live.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Toneo, LLC doing business as LiveLoop.Live has no control over, and assumes no responsibility for the content, privacy policies, or practices of any third party web sites or services. We do not warrant the offerings of any of these entities/individuals or their websites.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You acknowledge and agree that Toneo, LLC doing business as LiveLoop.Live shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such third party web sites or services.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We strongly advise you to read the terms and conditions and privacy policies of any third party web sites or services that you visit.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>TERMINATION</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We may terminate or suspend your account and bar access to the Service immediately, without prior notice or liability, under our sole discretion, for any reason whatsoever and without limitation, including but not limited to a breach of the Terms.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>If you wish to terminate your account, you may simply discontinue using the Service.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>All provisions of the Terms which by their nature should survive termination shall survive termination, including, without limitation, ownership provisions, warranty disclaimers, indemnity and limitations of liability.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>INDEMNIFICATION</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>You agree to defend, indemnify and hold harmless Toneo, LLC doing business as LiveLoop.Live and its licensee and licensors, and their employees, contractors, agents, officers and directors, from and against any and all claims, damages, obligations, losses, liabilities, costs or debt, and expenses (including but not limited to attorney's fees), resulting from or arising out of a) your use and access of the Service, by you or any person using your account and password; b) a breach of these Terms, or c) Content posted on the Service.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>LIMITATION OF LIABILITY</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>In no event shall Toneo, LLC doing business as LiveLoop.Live, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from (i) your access to or use of or inability to access or use the Service; (ii) any conduct or content of any third party on the Service; (iii) any content obtained from the Service; and (iv) unauthorized access, use or alteration of your transmissions or content, whether based on warranty, contract, tort (including negligence) or any other legal theory, whether or not we have been informed of the possibility of such damage, and even if a remedy set forth herein is found to have failed of its essential purpose.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>DISCLAIMER</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Your use of the Service is at your sole risk. The Service is provided on an 'AS IS' and 'AS AVAILABLE' basis. The Service is provided without warranties of any kind, whether express or implied, including, but not limited to, implied warranties of merchantability, fitness for a particular purpose, non-infringement or course of performance.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Toneo, LLC doing business as LiveLoop.Live its subsidiaries, affiliates, and its licensors do not warrant that a) the Service will function uninterrupted, secure or available at any particular time or location; b) any errors or defects will be corrected; c) the Service is free of viruses or other harmful components; or d) the results of using the Service will meet your requirements.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>GOVERNING LAW</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>These Terms shall be governed and construed in accordance with the laws of Texas, United States, without regard to its conflict of law provisions.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>Our failure to enforce any right or provision of these Terms will not be considered a waiver of those rights. If any provision of these Terms is held to be invalid or unenforceable by a court, the remaining provisions of these Terms will remain in effect. These Terms constitute the entire agreement between us regarding our Service, and supersede and replace any prior agreements we might have had between us regarding the Service.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>CHANGES</h2>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material we will provide at least 30 days notice prior to any new terms taking effect. What constitutes a material change will be determined at our sole discretion.</p>
<p style='box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif;'>By continuing to access or use our Service after any revisions become effective, you agree to be bound by the revised terms. If you do not agree to the new terms, you are no longer authorized to use the Service.</p>
<h2 class='mt-5 mb-3' style='box-sizing: border-box; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; color: #212529; font-size: 2rem; text-transform: uppercase; margin-top: 3rem !important; margin-bottom: 1rem !important;'>CONTACT US</h2>
<p class='mb-5' style='box-sizing: border-box; margin-top: 0px; color: #212529; font-family: Montserrat, Helvetica, Arial, sans-serif; margin-bottom: 3rem !important;'>If you have any questions about these Terms, please <a style='box-sizing: border-box; color: #ff295f; text-decoration-line: none; background-color: transparent; touch-action: manipulation;' href='https://lifeloop.live/contact'>contact us</a>.</p>
""",
'pagetype': 'terms',
'updated_by': 'test@email.com'}])
def downgrade():
print("Downgrades not supported")
| 302.005464
| 1,438
| 0.734326
| 8,256
| 55,267
| 4.913275
| 0.133358
| 0.030175
| 0.052805
| 0.075436
| 0.506508
| 0.487131
| 0.477394
| 0.468149
| 0.458485
| 0.455108
| 0
| 0.030599
| 0.162683
| 55,267
| 182
| 1,439
| 303.664835
| 0.845968
| 0.002624
| 0
| 0.024096
| 0
| 0.722892
| 0.975814
| 0.031027
| 0
| 0
| 0
| 0
| 0
| 1
| 0.012048
| false
| 0.018072
| 0.246988
| 0
| 0.259036
| 0.006024
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
905379387df0e40a2dac102475150e06f5fc541c
| 231
|
py
|
Python
|
src/python/counter.py
|
dhermes/local-dd-agent
|
b5b577154c7bf2c80020a0d87aa3c111e7cead8c
|
[
"Apache-2.0"
] | 1
|
2021-05-20T20:59:49.000Z
|
2021-05-20T20:59:49.000Z
|
src/python/counter.py
|
dhermes/local-dd-agent
|
b5b577154c7bf2c80020a0d87aa3c111e7cead8c
|
[
"Apache-2.0"
] | null | null | null |
src/python/counter.py
|
dhermes/local-dd-agent
|
b5b577154c7bf2c80020a0d87aa3c111e7cead8c
|
[
"Apache-2.0"
] | null | null | null |
import threading
class Counter:
def __init__(self):
self._count = 0
self._lock = threading.Lock()
def increment(self):
with self._lock:
self._count += 1
return self._count
| 17.769231
| 37
| 0.5671
| 26
| 231
| 4.692308
| 0.538462
| 0.221311
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013245
| 0.34632
| 231
| 12
| 38
| 19.25
| 0.794702
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.111111
| 0
| 0.555556
| 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
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
906bf65a463e189b18247f4edbfacb73a79a0fe1
| 23
|
py
|
Python
|
examples/py24-0027-generator-expr2.py
|
jwilk-forks/python-grammar-changes
|
5cbc14e520fadfef8539760a4ffdbe14b9d02f39
|
[
"MIT"
] | 8
|
2020-11-21T22:39:41.000Z
|
2022-03-13T18:45:53.000Z
|
examples/py24-0027-generator-expr2.py
|
jwilk-forks/python-grammar-changes
|
5cbc14e520fadfef8539760a4ffdbe14b9d02f39
|
[
"MIT"
] | 1
|
2021-12-10T10:45:38.000Z
|
2021-12-10T10:45:38.000Z
|
examples/py24-0027-generator-expr2.py
|
jwilk-forks/python-grammar-changes
|
5cbc14e520fadfef8539760a4ffdbe14b9d02f39
|
[
"MIT"
] | 1
|
2022-02-07T11:16:38.000Z
|
2022-02-07T11:16:38.000Z
|
(1 for i in range(10))
| 11.5
| 22
| 0.608696
| 6
| 23
| 2.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 0.217391
| 23
| 1
| 23
| 23
| 0.611111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
907a786fd43cb6e3a602d06cc9e4a7b8206249db
| 144
|
py
|
Python
|
src/dasher/__init__.py
|
mfaafm/dasher
|
723e06b6da9b735eccf240e8f5405dffb84a478f
|
[
"MIT"
] | 12
|
2019-04-04T07:20:09.000Z
|
2020-12-13T15:43:36.000Z
|
src/dasher/__init__.py
|
mfaafm/dasher
|
723e06b6da9b735eccf240e8f5405dffb84a478f
|
[
"MIT"
] | 1
|
2019-07-15T11:53:11.000Z
|
2019-07-16T20:58:34.000Z
|
src/dasher/__init__.py
|
mfaafm/dasher
|
723e06b6da9b735eccf240e8f5405dffb84a478f
|
[
"MIT"
] | 1
|
2020-11-12T18:44:11.000Z
|
2020-11-12T18:44:11.000Z
|
from .api import Api
from .app import Dasher
from .base import CustomWidget
__version__ = "0.3.1"
__all__ = ["Dasher", "Api", "CustomWidget"]
| 18
| 43
| 0.715278
| 20
| 144
| 4.75
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02459
| 0.152778
| 144
| 7
| 44
| 20.571429
| 0.754098
| 0
| 0
| 0
| 0
| 0
| 0.180556
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 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
|
909cf8e17891b52339cde6815b38938b615dbb2e
| 128
|
py
|
Python
|
chapter5/py_hyllo.py
|
haru-256/ExpertPython3_Source
|
5ef412ef217c6078248ff9546e23ed9b69aadcff
|
[
"MIT"
] | 112
|
2019-05-19T02:55:24.000Z
|
2022-03-05T03:54:21.000Z
|
chapter5/py_hyllo.py
|
haru-256/ExpertPython3_Source
|
5ef412ef217c6078248ff9546e23ed9b69aadcff
|
[
"MIT"
] | 1
|
2021-06-10T21:21:03.000Z
|
2021-06-10T21:21:03.000Z
|
chapter5/py_hyllo.py
|
haru-256/ExpertPython3_Source
|
5ef412ef217c6078248ff9546e23ed9b69aadcff
|
[
"MIT"
] | 72
|
2019-05-13T17:01:49.000Z
|
2022-01-18T01:01:05.000Z
|
import hy # this import statement enables Hy language import hooks
import hyllo
if __name__ == "__main__":
hyllo.hello()
| 18.285714
| 67
| 0.734375
| 17
| 128
| 5.058824
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195313
| 128
| 7
| 68
| 18.285714
| 0.834951
| 0.421875
| 0
| 0
| 0
| 0
| 0.109589
| 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
|
90e5b7e1b567ec01289706f1ba3bc792edbdb3af
| 18,726
|
py
|
Python
|
useroperations/migrations/0001_initial.py
|
SvenTUM/geoportal-sl
|
d6388256f28970d6f044d7a6701d427f74627be9
|
[
"MIT"
] | 5
|
2021-05-31T06:21:03.000Z
|
2022-02-27T05:39:15.000Z
|
useroperations/migrations/0001_initial.py
|
SvenTUM/geoportal-sl
|
d6388256f28970d6f044d7a6701d427f74627be9
|
[
"MIT"
] | 16
|
2021-12-02T10:33:21.000Z
|
2022-03-31T14:24:02.000Z
|
useroperations/migrations/0001_initial.py
|
SvenTUM/geoportal-sl
|
d6388256f28970d6f044d7a6701d427f74627be9
|
[
"MIT"
] | 1
|
2021-06-01T07:15:54.000Z
|
2021-06-01T07:15:54.000Z
|
# Generated by Django 2.1.3 on 2019-02-26 10:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Gui',
fields=[
('gui_id', models.CharField(max_length=50, primary_key=True, serialize=False)),
('gui_name', models.CharField(max_length=50)),
('gui_description', models.CharField(max_length=255)),
('gui_public', models.IntegerField()),
],
options={
'db_table': 'gui',
'managed': False,
},
),
migrations.CreateModel(
name='MbGroup',
fields=[
('mb_group_id', models.AutoField(primary_key=True, serialize=False)),
('mb_group_name', models.CharField(max_length=50)),
('mb_group_owner', models.IntegerField(blank=True, null=True)),
('mb_group_description', models.CharField(max_length=255)),
('mb_group_title', models.CharField(max_length=255)),
('mb_group_ext_id', models.BigIntegerField(blank=True, null=True)),
('mb_group_address', models.CharField(max_length=255)),
('mb_group_postcode', models.CharField(max_length=255)),
('mb_group_city', models.CharField(max_length=255)),
('mb_group_stateorprovince', models.CharField(max_length=255)),
('mb_group_country', models.CharField(max_length=255)),
('mb_group_voicetelephone', models.CharField(max_length=255)),
('mb_group_facsimiletelephone', models.CharField(max_length=255)),
('mb_group_email', models.CharField(max_length=255)),
('mb_group_logo_path', models.TextField(blank=True, null=True)),
('mb_group_homepage', models.CharField(blank=True, max_length=255, null=True)),
('mb_group_admin_code', models.CharField(blank=True, max_length=255, null=True)),
('timestamp_create', models.DateTimeField(auto_now_add=True)),
('timestamp', models.DateTimeField(auto_now_add=True)),
('mb_group_address_location', models.TextField(blank=True, null=True)),
('uuid', models.UUIDField(blank=True, null=True)),
('mb_group_ckan_uuid', models.UUIDField(blank=True, null=True)),
('mb_group_ckan_api_key', models.UUIDField(blank=True, null=True)),
('mb_group_csw_catalogues', models.TextField(blank=True, null=True)),
('mb_group_ckan_catalogues', models.TextField(blank=True, null=True)),
('mb_group_registry_url', models.CharField(blank=True, max_length=1024, null=True)),
('export2ckan', models.BooleanField(blank=True, null=True)),
],
options={
'db_table': 'mb_group',
'managed': False,
},
),
migrations.CreateModel(
name='MbProxyLog',
fields=[
('proxy_log_timestamp', models.DateTimeField(blank=True, null=True)),
('fkey_wms_id', models.IntegerField()),
('fkey_mb_user_id', models.IntegerField()),
('request', models.CharField(blank=True, max_length=4096, null=True)),
('pixel', models.BigIntegerField(blank=True, null=True)),
('price', models.FloatField(blank=True, null=True)),
('got_result', models.IntegerField(blank=True, null=True)),
('error_message', models.TextField(blank=True, null=True)),
('error_mime_type', models.CharField(blank=True, max_length=50, null=True)),
('layer_featuretype_list', models.TextField(blank=True, null=True)),
('request_type', models.CharField(blank=True, max_length=15, null=True)),
('log_id', models.BigAutoField(primary_key=True, serialize=False)),
('fkey_wfs_id', models.IntegerField(blank=True, null=True)),
('features', models.IntegerField(blank=True, null=True)),
],
options={
'db_table': 'mb_proxy_log',
'managed': False,
},
),
migrations.CreateModel(
name='MbRole',
fields=[
('role_id', models.AutoField(primary_key=True, serialize=False)),
('role_name', models.CharField(blank=True, max_length=50, null=True)),
('role_description', models.CharField(blank=True, max_length=255, null=True)),
('role_exclude_auth', models.IntegerField(blank=True, null=True)),
],
options={
'db_table': 'mb_role',
'managed': False,
},
),
migrations.CreateModel(
name='MbUser',
fields=[
('mb_user_id', models.AutoField(primary_key=True, serialize=False)),
('mb_user_name', models.CharField(max_length=50, unique=True)),
('mb_user_password', models.CharField(max_length=50)),
('mb_user_owner', models.IntegerField()),
('mb_user_description', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_login_count', models.IntegerField(blank=True, null=True)),
('mb_user_email', models.EmailField(blank=True, max_length=255, null=True)),
('mb_user_phone', models.CharField(blank=True, max_length=50, null=True)),
('mb_user_department', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_resolution', models.IntegerField(blank=True, null=True)),
('mb_user_organisation_name', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_position_name', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_phone1', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_facsimile', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_delivery_point', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_city', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_postal_code', models.IntegerField(blank=True, null=True)),
('mb_user_country', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_online_resource', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_realname', models.CharField(blank=True, max_length=100, null=True)),
('mb_user_street', models.CharField(blank=True, max_length=100, null=True)),
('mb_user_housenumber', models.CharField(blank=True, max_length=50, null=True)),
('mb_user_reference', models.CharField(blank=True, max_length=100, null=True)),
('mb_user_for_attention_of', models.CharField(blank=True, max_length=100, null=True)),
('mb_user_valid_from', models.DateField(blank=True, null=True)),
('mb_user_valid_to', models.DateField(blank=True, null=True)),
('mb_user_password_ticket', models.CharField(blank=True, max_length=100, null=True)),
('mb_user_digest', models.TextField(blank=True, null=True)),
('mb_user_firstname', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_lastname', models.CharField(blank=True, max_length=255, null=True)),
('mb_user_academictitle', models.CharField(blank=True, max_length=255, null=True)),
('timestamp_create', models.DateTimeField(auto_now_add=True)),
('timestamp', models.DateTimeField(auto_now_add=True)),
('mb_user_newsletter', models.BooleanField(blank=True, null=True)),
('mb_user_allow_survey', models.BooleanField(blank=True, null=True)),
('mb_user_aldigest', models.TextField(blank=True, null=True)),
('mb_user_glossar', models.CharField(blank=True, max_length=5, null=True)),
('mb_user_textsize', models.CharField(blank=True, max_length=14, null=True)),
('mb_user_last_login_date', models.DateField(blank=True, null=True)),
('mb_user_spatial_suggest', models.CharField(blank=True, max_length=5, null=True)),
('password', models.CharField(blank=True, max_length=255, null=True)),
('salt', models.CharField(blank=True, max_length=50, null=True)),
('is_active', models.BooleanField(blank=True, null=True)),
],
options={
'db_table': 'mb_user',
'managed': False,
},
),
migrations.CreateModel(
name='Wfs',
fields=[
('wfs_id', models.AutoField(primary_key=True, serialize=False)),
('wfs_version', models.CharField(max_length=50)),
('wfs_name', models.CharField(blank=True, max_length=255, null=True)),
('wfs_title', models.CharField(max_length=255)),
('wfs_abstract', models.TextField(blank=True, null=True)),
('wfs_getcapabilities', models.CharField(max_length=4096)),
('wfs_describefeaturetype', models.CharField(blank=True, max_length=4096, null=True)),
('wfs_getfeature', models.CharField(blank=True, max_length=4096, null=True)),
('wfs_transaction', models.CharField(blank=True, max_length=4096, null=True)),
('wfs_owsproxy', models.CharField(blank=True, max_length=50, null=True)),
('wfs_getcapabilities_doc', models.TextField(blank=True, null=True)),
('wfs_upload_url', models.CharField(blank=True, max_length=4096, null=True)),
('fees', models.TextField(blank=True, null=True)),
('accessconstraints', models.TextField(blank=True, null=True)),
('individualname', models.CharField(blank=True, max_length=255, null=True)),
('positionname', models.CharField(blank=True, max_length=255, null=True)),
('providername', models.CharField(blank=True, max_length=255, null=True)),
('city', models.CharField(blank=True, max_length=255, null=True)),
('deliverypoint', models.CharField(blank=True, max_length=255, null=True)),
('administrativearea', models.CharField(blank=True, max_length=255, null=True)),
('postalcode', models.CharField(blank=True, max_length=255, null=True)),
('voice', models.CharField(blank=True, max_length=255, null=True)),
('facsimile', models.CharField(blank=True, max_length=255, null=True)),
('electronicmailaddress', models.CharField(blank=True, max_length=255, null=True)),
('wfs_mb_getcapabilities_doc', models.TextField(blank=True, null=True)),
('wfs_owner', models.IntegerField(blank=True, null=True)),
('wfs_timestamp', models.IntegerField(blank=True, null=True)),
('country', models.CharField(blank=True, max_length=255, null=True)),
('wfs_timestamp_create', models.IntegerField(blank=True, null=True)),
('wfs_network_access', models.IntegerField(blank=True, null=True)),
('fkey_mb_group_id', models.IntegerField(blank=True, null=True)),
('uuid', models.UUIDField(blank=True, null=True)),
('wfs_max_features', models.IntegerField(blank=True, null=True)),
('inspire_annual_requests', models.BigIntegerField(blank=True, null=True)),
('wfs_username', models.CharField(blank=True, max_length=255, null=True)),
('wfs_password', models.CharField(blank=True, max_length=255, null=True)),
('wfs_auth_type', models.CharField(blank=True, max_length=255, null=True)),
('wfs_license_source_note', models.TextField(blank=True, null=True)),
('wfs_proxylog', models.IntegerField(blank=True, null=True)),
('wfs_pricevolume', models.IntegerField(blank=True, null=True)),
],
options={
'db_table': 'wfs',
'managed': False,
},
),
migrations.CreateModel(
name='Wms',
fields=[
('wms_id', models.AutoField(primary_key=True, serialize=False)),
('wms_version', models.CharField(max_length=50)),
('wms_title', models.CharField(max_length=255)),
('wms_abstract', models.TextField(blank=True, null=True)),
('wms_getcapabilities', models.CharField(max_length=4096)),
('wms_getmap', models.CharField(max_length=4096)),
('wms_getfeatureinfo', models.CharField(max_length=4096)),
('wms_getlegendurl', models.CharField(blank=True, max_length=4096, null=True)),
('wms_filter', models.CharField(blank=True, max_length=255, null=True)),
('wms_getcapabilities_doc', models.TextField(blank=True, null=True)),
('wms_owsproxy', models.CharField(blank=True, max_length=50, null=True)),
('wms_upload_url', models.CharField(blank=True, max_length=4096, null=True)),
('fees', models.TextField(blank=True, null=True)),
('accessconstraints', models.TextField(blank=True, null=True)),
('contactperson', models.CharField(blank=True, max_length=255, null=True)),
('contactposition', models.CharField(blank=True, max_length=255, null=True)),
('contactorganization', models.CharField(blank=True, max_length=255, null=True)),
('address', models.CharField(blank=True, max_length=255, null=True)),
('city', models.CharField(blank=True, max_length=255, null=True)),
('stateorprovince', models.CharField(blank=True, max_length=255, null=True)),
('postcode', models.CharField(blank=True, max_length=255, null=True)),
('country', models.CharField(blank=True, max_length=255, null=True)),
('contactvoicetelephone', models.CharField(blank=True, max_length=255, null=True)),
('contactfacsimiletelephone', models.CharField(blank=True, max_length=255, null=True)),
('contactelectronicmailaddress', models.CharField(blank=True, max_length=255, null=True)),
('wms_mb_getcapabilities_doc', models.TextField(blank=True, null=True)),
('wms_owner', models.IntegerField(blank=True, null=True)),
('wms_timestamp', models.IntegerField(blank=True, null=True)),
('wms_supportsld', models.BooleanField(blank=True, null=True)),
('wms_userlayer', models.BooleanField(blank=True, null=True)),
('wms_userstyle', models.BooleanField(blank=True, null=True)),
('wms_remotewfs', models.BooleanField(blank=True, null=True)),
('wms_proxylog', models.IntegerField(blank=True, null=True)),
('wms_pricevolume', models.IntegerField(blank=True, null=True)),
('wms_username', models.CharField(max_length=255)),
('wms_password', models.CharField(max_length=255)),
('wms_auth_type', models.CharField(max_length=255)),
('wms_timestamp_create', models.IntegerField(blank=True, null=True)),
('wms_network_access', models.IntegerField(blank=True, null=True)),
('fkey_mb_group_id', models.IntegerField(blank=True, null=True)),
('uuid', models.UUIDField(blank=True, null=True)),
('wms_max_imagesize', models.IntegerField(blank=True, null=True)),
('wms_max_imagesize_x', models.IntegerField(blank=True, null=True)),
('wms_max_imagesize_y', models.IntegerField(blank=True, null=True)),
('inspire_annual_requests', models.BigIntegerField(blank=True, null=True)),
('wms_proxy_log_fi', models.IntegerField(blank=True, null=True)),
('wms_price_fi', models.IntegerField(blank=True, null=True)),
('wms_license_source_note', models.TextField(blank=True, null=True)),
('wms_bequeath_licence_info', models.IntegerField(blank=True, null=True)),
('wms_bequeath_contact_info', models.IntegerField(blank=True, null=True)),
('wms_proxy_exchange_external_urls', models.IntegerField(blank=True, null=True)),
],
options={
'db_table': 'wms',
'managed': False,
},
),
migrations.CreateModel(
name='Navigation',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100, unique=True)),
('url', models.CharField(blank=True, max_length=200)),
('page_identifier', models.CharField(max_length=100, unique=True)),
('icon_name', models.CharField(blank=True, max_length=200)),
('position', models.IntegerField(unique=True)),
('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='useroperations.Navigation')),
],
),
migrations.CreateModel(
name='GuiMbUser',
fields=[
('fkey_gui', models.OneToOneField(on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, serialize=False, to='useroperations.Gui')),
('mb_user_type', models.CharField(blank=True, max_length=50, null=True)),
],
options={
'db_table': 'gui_mb_user',
'managed': False,
},
),
migrations.CreateModel(
name='MbUserMbGroup',
fields=[
('fkey_mb_user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='useroperations.MbUser')),
],
options={
'db_table': 'mb_user_mb_group',
'managed': False,
},
),
]
| 63.477966
| 163
| 0.594841
| 2,004
| 18,726
| 5.343812
| 0.116766
| 0.122701
| 0.089831
| 0.117471
| 0.816976
| 0.776543
| 0.700719
| 0.562984
| 0.472406
| 0.326454
| 0
| 0.022484
| 0.261348
| 18,726
| 294
| 164
| 63.693878
| 0.751735
| 0.002403
| 0
| 0.268293
| 1
| 0
| 0.169281
| 0.045559
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.017422
| 0.006969
| 0
| 0.020906
| 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
|
2906836cf1099ff2a82670d5d57336567b0cb381
| 19
|
py
|
Python
|
test/integration/StaticFunction/protected no parameters.py
|
HighSchoolHacking/GLS-Draft
|
9e418b6290e7c8e3f2da87668784bdba1cde5a76
|
[
"MIT"
] | 30
|
2019-10-29T12:47:50.000Z
|
2022-02-12T06:41:39.000Z
|
test/integration/StaticFunction/protected no parameters.py
|
HighSchoolHacking/GLS-Draft
|
9e418b6290e7c8e3f2da87668784bdba1cde5a76
|
[
"MIT"
] | 247
|
2017-09-21T17:11:18.000Z
|
2019-10-08T12:59:07.000Z
|
test/integration/StaticFunction/protected no parameters.py
|
HighSchoolHacking/GLS-Draft
|
9e418b6290e7c8e3f2da87668784bdba1cde5a76
|
[
"MIT"
] | 17
|
2017-10-01T16:53:20.000Z
|
2018-11-28T07:20:35.000Z
|
#
Abc._def_ghi()
#
| 4.75
| 14
| 0.578947
| 3
| 19
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 19
| 3
| 15
| 6.333333
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
292610261279998b65fb1f389e5d1ca2e4657b4d
| 2,576
|
py
|
Python
|
lale/lib/lale/__init__.py
|
ariffyasri/lale
|
326012c3c3dd884fae0093fe0c45596e4f9c0d72
|
[
"Apache-2.0"
] | 1
|
2020-04-28T11:27:48.000Z
|
2020-04-28T11:27:48.000Z
|
lale/lib/lale/__init__.py
|
ariffyasri/lale
|
326012c3c3dd884fae0093fe0c45596e4f9c0d72
|
[
"Apache-2.0"
] | null | null | null |
lale/lib/lale/__init__.py
|
ariffyasri/lale
|
326012c3c3dd884fae0093fe0c45596e4f9c0d72
|
[
"Apache-2.0"
] | 1
|
2020-07-30T10:06:23.000Z
|
2020-07-30T10:06:23.000Z
|
# Copyright 2019 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Lale operators with schemas.
Operators
=========
Estimators:
* lale.lib.lale. `BaselineClassifier`_
* lale.lib.lale. `BaselineRegressor`_
* lale.lib.lale. `GridSearchCV`_
* lale.lib.lale. `Hyperopt`_
* lale.lib.lale. `TopKVotingClassifier`_
* lale.lib.lale. `SMAC`_
Transformers:
* lale.lib.lale. `Batching`_
* lale.lib.lale. `ConcatFeatures`_
* lale.lib.lale. `NoOp`_
* lale.lib.lale. `Project`_
* lale.lib.lale. `SampleBasedVoting`_
Estimators and transformers:
* lale.lib.lale. `Both`_
* lale.lib.lale. `IdentityWrapper`_
* lale.lib.lale. `Observing`_
.. _`BaselineClassifier`: lale.lib.lale.baseline_classifier.html
.. _`BaselineRegressor`: lale.lib.lale.baseline_regressor.html
.. _`GridSearchCV`: lale.lib.lale.grid_search_cv.html
.. _`Hyperopt`: lale.lib.lale.hyperopt.html
.. _`TopKVotingClassifier`: lale.lib.lale.topk_voting_classifier.html
.. _`SMAC`: lale.lib.lale.smac.html
.. _`Batching`: lale.lib.lale.batching.html
.. _`ConcatFeatures`: lale.lib.lale.concat_features.html
.. _`NoOp`: lale.lib.lale.no_op.html
.. _`Project`: lale.lib.lale.project.html
.. _`SampleBasedVoting`: lale.lib.lale.sample_based_voting.html
.. _`Both`: lale.lib.lale.both.html
.. _`IdentityWrapper`: lale.lib.lale.identity_wrapper.html
.. _`Observing`: lale.lib.lale.observing.html
"""
#estimators
from .baseline_classifier import BaselineClassifier
from .baseline_regressor import BaselineRegressor
from .grid_search_cv import GridSearchCV
from .hyperopt import Hyperopt
from .topk_voting_classifier import TopKVotingClassifier
import warnings
with warnings.catch_warnings(record=True) as w:
try:
from .smac import SMAC
except ImportError:
pass
#transformers
from .batching import Batching
from .concat_features import ConcatFeatures
from .no_op import NoOp
from .project import Project
from .sample_based_voting import SampleBasedVoting
#estimators and transformers
from .both import Both
from .identity_wrapper import IdentityWrapper
from .observing import Observing
| 30.305882
| 74
| 0.770963
| 337
| 2,576
| 5.74184
| 0.32641
| 0.101292
| 0.159173
| 0.016537
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003515
| 0.11646
| 2,576
| 84
| 75
| 30.666667
| 0.846661
| 0.729037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.052632
| 0.842105
| 0
| 0.842105
| 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
|
292d1f1802fba706f4ded8a67efe2b8fe3727fb6
| 1,124
|
py
|
Python
|
lnbits/extensions/subdomains/migrations.py
|
taxmeifyoucan/lnbits
|
19ae1ddf0d50b507135c418af9d5becc336d5ce3
|
[
"MIT"
] | 258
|
2020-04-27T21:36:21.000Z
|
2021-10-30T23:24:48.000Z
|
lnbits/extensions/subdomains/migrations.py
|
taxmeifyoucan/lnbits
|
19ae1ddf0d50b507135c418af9d5becc336d5ce3
|
[
"MIT"
] | 283
|
2020-04-27T17:23:12.000Z
|
2021-11-01T10:07:20.000Z
|
lnbits/extensions/subdomains/migrations.py
|
taxmeifyoucan/lnbits
|
19ae1ddf0d50b507135c418af9d5becc336d5ce3
|
[
"MIT"
] | 109
|
2020-04-28T06:00:17.000Z
|
2021-10-13T02:48:28.000Z
|
async def m001_initial(db):
await db.execute(
"""
CREATE TABLE subdomains.domain (
id TEXT PRIMARY KEY,
wallet TEXT NOT NULL,
domain TEXT NOT NULL,
webhook TEXT,
cf_token TEXT NOT NULL,
cf_zone_id TEXT NOT NULL,
description TEXT NOT NULL,
cost INTEGER NOT NULL,
amountmade INTEGER NOT NULL,
allowed_record_types TEXT NOT NULL,
time TIMESTAMP NOT NULL DEFAULT """
+ db.timestamp_now
+ """
);
"""
)
await db.execute(
"""
CREATE TABLE subdomains.subdomain (
id TEXT PRIMARY KEY,
domain TEXT NOT NULL,
email TEXT NOT NULL,
subdomain TEXT NOT NULL,
ip TEXT NOT NULL,
wallet TEXT NOT NULL,
sats INTEGER NOT NULL,
duration INTEGER NOT NULL,
paid BOOLEAN NOT NULL,
record_type TEXT NOT NULL,
time TIMESTAMP NOT NULL DEFAULT """
+ db.timestamp_now
+ """
);
"""
)
| 26.761905
| 47
| 0.503559
| 119
| 1,124
| 4.680672
| 0.344538
| 0.238779
| 0.236984
| 0.071813
| 0.312388
| 0.312388
| 0.186715
| 0.186715
| 0.186715
| 0.186715
| 0
| 0.004739
| 0.436833
| 1,124
| 41
| 48
| 27.414634
| 0.875197
| 0
| 0
| 0.769231
| 0
| 0
| 0.142857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
293e584d633770e7fd3b32d9ace7fb62a4228da1
| 155
|
py
|
Python
|
epsilon/compat.py
|
twisted/epsilon
|
783910e1829688e95719a7d3151ec3e2cbb101fd
|
[
"MIT"
] | 4
|
2017-09-01T18:49:11.000Z
|
2020-04-21T10:11:33.000Z
|
epsilon/compat.py
|
twisted/epsilon
|
783910e1829688e95719a7d3151ec3e2cbb101fd
|
[
"MIT"
] | 35
|
2015-01-16T22:12:44.000Z
|
2021-07-11T11:28:58.000Z
|
epsilon/compat.py
|
twisted/epsilon
|
783910e1829688e95719a7d3151ec3e2cbb101fd
|
[
"MIT"
] | 8
|
2015-01-24T17:43:58.000Z
|
2019-09-01T12:38:41.000Z
|
from six.moves import builtins
def _cmp(x, y):
return (x > y) - (x < y)
cmp = getattr(builtins, 'cmp', _cmp)
long = getattr(builtins, 'long', int)
| 15.5
| 37
| 0.619355
| 24
| 155
| 3.916667
| 0.541667
| 0.06383
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212903
| 155
| 9
| 38
| 17.222222
| 0.770492
| 0
| 0
| 0
| 0
| 0
| 0.045161
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 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
| 0
| 1
| 1
| 0
|
0
| 4
|
296a7d3bba5f0a90a26c51d13d3ca05e8dc91a11
| 572
|
py
|
Python
|
src/pymane/talents.py
|
Ostoic/pymane
|
99d9efd17945058a8a46319605e231a0e185c98f
|
[
"MIT"
] | null | null | null |
src/pymane/talents.py
|
Ostoic/pymane
|
99d9efd17945058a8a46319605e231a0e185c98f
|
[
"MIT"
] | null | null | null |
src/pymane/talents.py
|
Ostoic/pymane
|
99d9efd17945058a8a46319605e231a0e185c98f
|
[
"MIT"
] | null | null | null |
from typing import List
from pymane.log import get_logger
log = get_logger(__name__)
class TalentSpec:
def __init__(self, name: str, tree1_points: int = 0, tree2_points: int = 0, tree3_points: int = 0):
self.__name = name
self.__tree_points = [tree1_points, tree2_points, tree3_points]
def __str__(self):
return f'{self.name()} {self.tree_points()[0]}/{self.tree_points()[1]}/{self.tree_points()[2]}'
def __repr__(self):
return self.__str__()
def name(self) -> str:
return self.__name
def tree_points(self) -> List[int]:
return self.__tree_points
| 23.833333
| 100
| 0.715035
| 87
| 572
| 4.218391
| 0.310345
| 0.163488
| 0.190736
| 0.098093
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02454
| 0.145105
| 572
| 23
| 101
| 24.869565
| 0.725971
| 0
| 0
| 0
| 0
| 0.066667
| 0.149123
| 0.124561
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.133333
| 0.266667
| 0.8
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
297ac05f014abb6a370872e66937336c50e4f32d
| 90
|
py
|
Python
|
djtest/management/apps.py
|
tmust/mini_python_blockchain
|
3d0e6766de01a15843de4a56bb57e87ca716d2b8
|
[
"Apache-2.0"
] | null | null | null |
djtest/management/apps.py
|
tmust/mini_python_blockchain
|
3d0e6766de01a15843de4a56bb57e87ca716d2b8
|
[
"Apache-2.0"
] | null | null | null |
djtest/management/apps.py
|
tmust/mini_python_blockchain
|
3d0e6766de01a15843de4a56bb57e87ca716d2b8
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class LearnConfig(AppConfig):
name = 'management'
| 15
| 33
| 0.755556
| 10
| 90
| 6.8
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 90
| 5
| 34
| 18
| 0.906667
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 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
|
462d16d03fb796835187913403a2bdcb02117a32
| 138
|
py
|
Python
|
app/myblog/templatetags/extras.py
|
sridharjena97/blog
|
b0ba5ecb49598246177cfdfff07f76f7471e3a10
|
[
"MIT"
] | null | null | null |
app/myblog/templatetags/extras.py
|
sridharjena97/blog
|
b0ba5ecb49598246177cfdfff07f76f7471e3a10
|
[
"MIT"
] | null | null | null |
app/myblog/templatetags/extras.py
|
sridharjena97/blog
|
b0ba5ecb49598246177cfdfff07f76f7471e3a10
|
[
"MIT"
] | null | null | null |
from django import template
register= template.Library()
@register.filter(name='get_val')
def get_val(dict,key):
return dict.get(key)
| 23
| 32
| 0.76087
| 21
| 138
| 4.904762
| 0.666667
| 0.116505
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108696
| 138
| 6
| 33
| 23
| 0.837398
| 0
| 0
| 0
| 0
| 0
| 0.05036
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 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
| 0
| 1
| 1
| 0
|
0
| 4
|
463516e1a99a9a5fbfe7c4eeb0de33545385525e
| 21
|
py
|
Python
|
vollseg/version.py
|
Kapoorlabs-paris/VollSeg
|
636ab5c19a28f5bd25af81baeed397eaa0cc0332
|
[
"BSD-3-Clause"
] | 2
|
2022-01-16T10:11:48.000Z
|
2022-01-25T11:36:49.000Z
|
vollseg/version.py
|
Kapoorlabs-paris/VollSeg
|
636ab5c19a28f5bd25af81baeed397eaa0cc0332
|
[
"BSD-3-Clause"
] | 1
|
2022-01-13T23:35:44.000Z
|
2022-01-15T05:04:10.000Z
|
vollseg/version.py
|
Kapoorlabs-paris/VollSeg
|
636ab5c19a28f5bd25af81baeed397eaa0cc0332
|
[
"BSD-3-Clause"
] | null | null | null |
__version__ = '4.3.9'
| 21
| 21
| 0.666667
| 4
| 21
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.095238
| 21
| 1
| 21
| 21
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0.227273
| 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
|
4686545e4d025eacd55bf6ec9b7250e4a19314a0
| 910
|
py
|
Python
|
exceptions.py
|
Darkened12/Trinity-Bot
|
5107928605b9f3ba1a3f913a62c5855d838c321c
|
[
"MIT"
] | 2
|
2021-04-01T01:37:49.000Z
|
2021-10-17T02:14:55.000Z
|
exceptions.py
|
Darkened12/Trinity-Bot
|
5107928605b9f3ba1a3f913a62c5855d838c321c
|
[
"MIT"
] | null | null | null |
exceptions.py
|
Darkened12/Trinity-Bot
|
5107928605b9f3ba1a3f913a62c5855d838c321c
|
[
"MIT"
] | 1
|
2022-03-19T09:41:08.000Z
|
2022-03-19T09:41:08.000Z
|
class MoveNotFound(Exception):
pass
class CharacterNotFound(Exception):
pass
class OptionError(Exception):
pass
class LimitError(Exception):
pass
class CharacterMainError(Exception):
pass
class CharacterSubError(Exception):
pass
class CommandNotFound(Exception):
pass
class CommandAlreadyExisting(Exception):
pass
class ChannelAlreadyAdded(Exception):
pass
class ChannelNonExistent(Exception):
pass
class GuildNotSetError(Exception):
pass
class PrefixError(Exception):
pass
class LinkNotFound(Exception):
pass
class DatabaseInitError(Exception):
pass
class TableNameError(Exception):
pass
class ColumnNameError(Exception):
pass
class MoveNameError(Exception):
pass
class CharacterNameError(Exception):
pass
class NotInitializedError(Exception):
pass
class ChannelNotSetError(Exception):
pass
| 11.518987
| 40
| 0.738462
| 80
| 910
| 8.4
| 0.2875
| 0.386905
| 0.508929
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195604
| 910
| 78
| 41
| 11.666667
| 0.918033
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
468f897b2d461f9eaee03b8c24ecd3d2f11c1f7d
| 187
|
py
|
Python
|
spacetimeformer/lr_scheduler/__init__.py
|
Azerrroth/spacetimeformer
|
e822444a6d696a1edb9e446d6f3482a70681be3c
|
[
"MIT"
] | null | null | null |
spacetimeformer/lr_scheduler/__init__.py
|
Azerrroth/spacetimeformer
|
e822444a6d696a1edb9e446d6f3482a70681be3c
|
[
"MIT"
] | null | null | null |
spacetimeformer/lr_scheduler/__init__.py
|
Azerrroth/spacetimeformer
|
e822444a6d696a1edb9e446d6f3482a70681be3c
|
[
"MIT"
] | null | null | null |
from .warmup_reduce_lr_on_plateau_scheduler import (
WarmupReduceLROnPlateauScheduler as WarmupReduceLROnPlateau,
)
from .transformer_lr_scheduler import TransformerLRScheduler
| 31.166667
| 65
| 0.855615
| 17
| 187
| 9
| 0.764706
| 0.196078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 187
| 5
| 66
| 37.4
| 0.927273
| 0
| 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
|
46933170d98fd43ad97708c5ab0d4052c2269efe
| 96
|
py
|
Python
|
pyxb/bundles/opengis/examples/demo.py
|
thorstenb/pyxb
|
634e86f61dfb73a2900f32fc3d819e9c25365a49
|
[
"Apache-2.0"
] | null | null | null |
pyxb/bundles/opengis/examples/demo.py
|
thorstenb/pyxb
|
634e86f61dfb73a2900f32fc3d819e9c25365a49
|
[
"Apache-2.0"
] | null | null | null |
pyxb/bundles/opengis/examples/demo.py
|
thorstenb/pyxb
|
634e86f61dfb73a2900f32fc3d819e9c25365a49
|
[
"Apache-2.0"
] | null | null | null |
import pyxb.bundles.opengis.gml as gml
dv = gml.DegreesType(32, direction='N')
print dv.toxml()
| 24
| 39
| 0.75
| 16
| 96
| 4.5
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023256
| 0.104167
| 96
| 3
| 40
| 32
| 0.813953
| 0
| 0
| 0
| 0
| 0
| 0.010417
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
46a534217d5d055c76d7393cfc2a65172153de7f
| 29,188
|
py
|
Python
|
sdk/python/v0.1-rc.4/setup.py
|
nmfta-repo/nmfta-opentelematics-prototype
|
729e9391879e273545a4818558677b2e47261f08
|
[
"Apache-2.0"
] | 2
|
2021-12-15T08:37:03.000Z
|
2022-02-11T20:40:42.000Z
|
sdk/python/v0.1-rc.4/setup.py
|
nmfta-repo/nmfta-opentelematics-prototype
|
729e9391879e273545a4818558677b2e47261f08
|
[
"Apache-2.0"
] | 8
|
2019-12-04T22:56:46.000Z
|
2022-02-10T08:23:29.000Z
|
sdk/python/v0.1-rc.4/setup.py
|
nmfta-repo/nmfta-opentelematics-prototype
|
729e9391879e273545a4818558677b2e47261f08
|
[
"Apache-2.0"
] | null | null | null |
from setuptools import setup, find_packages
# Try to convert markdown README to rst format for PyPI.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='opentelematicsapi',
version='0.1.0rc3',
description='A project to enable business resiliency for motor freight carriers with tight integrations into Telematics Service Providers (TSPs).  This document is written using [api-blueprint](https://apiblueprint.org/) and available online at both [opentelematicsapi.docs.apiary.io](https://opentelematicsapi.docs.apiary.io/#) (for browsable document) and https://github.com/nmfta-repo/nmfta-opentelematics-api for the API blueprint source. Please use https://github.com /nmfta-repo/nmfta-opentelematics-api to raise issues and suggest changes to the API. If a telematics system provider (TSP) suddenly goes out of business (have had two examples of this in 2018) any commercial fleet relying on their service will need to find a new provider. Due to the lack of a standardized telematics data format, a commercial fleet manager will have to reintegrate an alternate telematics provider\'s data format into their existing system reporting. The Open Telematics API (OTAPI) is intended to make the TSP-Carrier interface the same across multiple TSPs. It is not intended to specify any aspects of the TSP\'s connections to their telematics devices. Neither does it imply any changes to the location where data is stored or access controls on the data -- the data will still live at the Motor Freight Carrier as-sourced from their accounts at the TSP.  This is a standardized API for retrieving telematics logs & data. Each participating TSP would be individually responsible for the necessary translations from their existing formats to this Open Telematics API. Each TSP would continue to be responsible for managing their own cloud infrastructure housing customer data. The Open Telematics API, as an additional interface, will be made available by TSPs to allow their customers ready access to pull data in the standardized format, especially in examples of mixed TSP fleets. # Contributors This Open Telematics API was made possible through the generous contributions of thought leadership and technical expertise of many collaborators across the heavy vehicle cyber security community, working to push the industry forward and make it more resilient. Though some of our contributors wish to remain anonymous, we are deeply grateful to everyone who has given their time and energy to make this a reality. | **Fleet Managers** | **Telematics Providers** | **Independents** | |:------------------:|:------------------------:|:----------------:| |Bill Brown, SEFL | Geotab | Altaz Valani, Security Compass | | | Samsara Networks, Inc.| Stephen Raio, U.S. Army Combat Capabilities Development Command | | | | Andrew Smith, ISE Inc. | | | | Dr. Jeremy Daily, UTulsa |      # Authentication **All requests** to Open Telematics API endpoints **require authentication**. For this version of the API, `v1`, all authentication must be performed using HTTP Basic. e.g. ```http Authorization: Basic YWRtaW46YWRtaW4= ``` This authentication method relies entirely on the security protections provided by the TLS layer; therefore HTTPS is mandatory on all connections and implementors must follow adhere to the security requirements detailed in the *Security Requirements for Implementors* section below. TSPs implementing the Open Telematics API must provide a means to create username-password pair credentials and these must be associated with roles (see section *Authorization* below). # Authorization TSPs implementing the Open Telematics API must include access controls for requests against the following roles. * *Vehicle Query* * *Vehicle Follow* * *Driver Query* * *Driver Follow* * *Driver Dispatch* * *Driver Duty* * *HR* * *Admin* It must be possible for clients to usernames for Authentication (see above) which are assigned to **one role and no more than one role**. TSPs implementing the Open Telematics API must restrict authorization of requests to only those roles that are assigned in the **Access Controls** tables throughout this API specification. The tables will look like the following example: |Role: |Vehicle Query|Vehicle Follow|Driver Query|Driver Follow|Driver Dispatch|Driver Duty |HR |Admin | |-------|-------------|--------------|------------|-------------|---------------|------------|------------|------------| |Access:|`DENY/ALLOW` |`DENY/ALLOW` |`DENY/ALLOW`|`DENY/ALLOW` |`DENY/ALLOW` |`DENY/ALLOW`|`DENY/ALLOW`|`DENY/ALLOW`| The intent of these access controls is so that carriers can limit which clients they deploy have access to: * streaming *feeds* of objects as they are added to the TSP * any Personally Identifiable Information (PII) As can be seen in the **Access Controls** tables in the requests subsections of *References* that follow, the roles are assigned `DENY/ALLOW` such that: * the *X Query* roles have access only to collections queries * the *X Follow* roles have access to streaming feeds and queries * the *Vehicle X* roles cannot access any PII * the *Driver X* roles can access both vehicle info and PII * the *Driver Dispatch* role is allowed to update route info and send messages to drivers * the *Driver Duty* role is allowed to externaly trigger driver duty status (e.g. *Send Duty Status Changes to the TSP*) * the *HR* role is allowed to update Driver information and TSP portal user accounts # Security Requirements for Implementors All TSPs that implement an Open Telematics API instance are expected to provide a secure service by default. In what follows we outline some security requirements that are expected in addition to the authentication and access control that is detailed in the sections above. ## General Security Requirements Vendors must maintain a vulnerability response and disclosure program in accordance with established standards such as International Organization of Standards (ISO)/International Electrotechnical Commission (IEC) 29147:2014 (Information technology \\-- Security techniques \\-- Vulnerability Disclosure) and ISO/IEC 30111:2013 (Information technology \\-- Security techniques \\-- Vulnerability Handling Processes). Vendors should ensure their vulnerability response and disclosure program conforms with the [\'Legal bug bounty\' safe-harbor requirements](https://github.com/EdOverflow/legal-bug-bounty) to protect researchers and encourage the highest-quality participation. ## Open Telematics API Server Security Requirements **TLS Configuration** The TLS security for Open Telematics API servers is of paramount importance. All of the confidentiality and integrity protections are relying on this layer. For this reason, Open Telematics API servers must ensure that their HTTPS / TLS configurations are of the highest quality. Following the [Qualys SSL Labs Guide](https://github.com/ssllabs/research/wiki/SSL-and-TLS-Deployment-Best-Practices) is reccomended. The automated tool, also by Qualys SSL Labs, at [https://www.ssllabs.com/ssltest/](https://www.ssllabs.com/ssltest/) will report a \'letter grade\'; it is expected that TSPs will have letter grades of \'A\' or higher according to that tool. **Whitelist HTTP Methods** This API specification (in *APIBlueprint*) has a complete list of all allowable *HTTP methods* for each resource/\'end point\' of the Open Telematics API. Open Telematics server implementations should use the list of methods as a whitelist to filter incoming requests before any additional processing. **Rate-limit API Requests** Since every request to the Open Telematics API must be authenticated it is possible to rate-limit Open Telematics API requests per authenticated user. Vendors should implement rate limits on overall API requests per authenticated user, e.g. to avoid one user exhausting server resources of others; however, vendor must not rate-limit any Open Telematics API implementations to rates below what is offered through their other API services for telematics data. Rate-limiting response must be implemented using response 429 and headers as detailed in this document. **Prevent Brute-Forcing** Authentication (for this version of the API) is tied exclusively to HTTP Basic in each request. This means that each and every API endpoint is an opportunity to brute force any of the user credentials. Open Telematics server implementors must enforce a global rate-limit on authentication attempts for each user. Implementors may also want to consider other mitigations against brute-force attacks on credentials; c.f. [the OWA page on Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks). **Prevent Server-Error Stacktraces** Open Telematics server implementors must ensure that their software is deployed such that it does not include stack traces in any response; e.g. no stacktraces in a 500 server error response. **Prevent Resource Exhaustion by Slow-posting** Open Telematics server implementors must ensure that, when receiving data from clients, the server implements short- enough timeouts such that exhaustion of the server resources through malicious client \'slow-posting\' is not possible. For more details, consult this [Qualys blog post](https://blog.qualys.com/securitylabs/2011/11/02/how-to-protect- against-slow-http-attacks). **Input Sanitization** Open Telematics server implementors must employ input sanitization when ingesting any data, i.e. for the `POST`, `PUT`, `PATCH` methods. This API uses exclusively JSON for data serialization; therefore, at a minimum all input data should be verified as valid JSON before being further processed. Furthermore, this specification includes generated JSON schema for the expected inputs and so additional verification that the input JSON conforms to the expected schema can also be performed before further processing is performed. ## Open Telematics API Client Security Requirements **Certificate Pinning** Because the confidentiality of credentials is only protected by TLS in this version, it is very important that all Open Telematics API clients must be configured such that substitution of any TLS certificates results in a failure to establish any connections to the Open Telematics API server. All clients must implement certificate pinning. i.e. All client implementations will pass the tests, 5.4-5.6, for certificate pinning in the [OWASP MASVS](https://www.owasp.org/index.php/OWASP_Mobile_Security_Testing_Guide). # Working With Dates When exchanging dates as parameters to API methods or in responses from the API, you must ensure that they are formatted properly as an ISO 8601 string (format `yyyy-MM-ddTHH:mm:ss.fffZ`). In addition, all dates will have to first be converted to UTC in order to ensure time zone information and daylight savings times are accounted for correctly. # Working with Time-Based Queries There are many API endpoints which support searches of data based on a time range. In all cases, the time range specified by a pair of `start` and `stop` parameters represents an inclusive-exclusive time range. i.e. a time period which includes the moment in time given by `start` and all times up-to but not including the moment in time given by `stop.` The matching performed in all of these searches will be a time-intersection. i.e. the objects will be returned in search results if their associated time periods (however defined) have any intersection with the inclusive-exclusive time range given by the pair of `start` and `stop` parameters. Objects may have multiple time periods associated with them; e.g. events recorded and transmitted by TSPs may have the times at which the event was created, when it was recorded and/or when it was made available by the TSP to the motor freight carrier. Unless otherwise specified, the time period of objects against which matching is performed will be the *creation times*. Furthermore, implementors are required to ensure that the creation times of any objects are preserved through all data transfers, i.e. that the creation times are not modified after initial recording at the telematics devices in the field. In the special case of matching against an object with a single time field, *instantaneous events* the object will be returned if its instantaneous time value is within the inclusive-exclusive time range given by the pair of `start` and `stop` parameters. # Working With Locations When exchanging locations as parameters to API methods or in responses from the API, you must ensure that they are formatted as a latitude+longitude pair (format `[-]aaa.aaaaaaa [-]ooo.ooooooo`). Positive in the first component, Latitude, indicates North (N) and East (E) in the second component, Longitude. Note that all locations assigned to objects by the TSP in the OTAPI are done so on a best-effort basis. Different TSPs have different rates of location update, different accuracies and different means of mapping a previously known location into events after the known location (e.g. prediction vs. interpolation). This Open Telematics API draft does not make any specifications about how often, how accurate or any other statements about how geographic locations must be assigned to objects by the TSP. # Working with *Feed Follow* Queries There are endpoints of the API which are intended to be polled by clients so that new data (data newer than the previous query) is returned. Theses *Feed Follow* endpoints are intended to assist in real-time client applications. In some cases, the clients require that no data is ever missed by following (polling the endpoint); however, due to the nature of telematics systems there can be a high latency between time of creation and time of delivery to the TSP. Hence there is a non-trivial cost associated with providing endpoints that can ensure that no data is missed in following. e.g. the *Follow a Feed of Log Events* endpoint below. Unless stated otherwise, all *Feed Follow* endpoints will be such that no data is missed by following; including cases of very high latency between data creation and delivery. Special exceptions will be noted on the endpoints for the cases where the clients require that they have the newest information and are not concerned with ensuring that no data is missed. # Error States The common [HTTP Response Status Codes](https://github.com/for-GET/know-your-http-well/blob/master/status-codes.md) are used. # Pagination Where requests may return large collections and where the collections to be returned are presumed to be static the API will include support for pagination of requests. The scheme for pagination closely follows [the pagination scheme of github](https://developer.github.com/v3/#pagination). Requests that are paginated will return 50 items by default. The `page` parameter can be used to access later pages; it defaults to the first page, page *1*. A custom number of items can be requested with the `count` parameter. The total number of elements available is returned in the `X-Total-Count` response header. # Server Performance This API is intended to be integrated into motor freight carriers back end operations systems; therefore, there are performance requirements to be considered as well. The API has been modeled in terms of use cases by the motor freight carriers (see below). Each of these use cases can be considered to be executing concurrently in the motor freight carrier. This has important design implications. For example, if a motor freight carrier has 10,000 trucks and makes requests regarding their location once a minute this would imply 10,000 method invocations per minute with a relatively small return data point. Other methods such as vehicle histories will have larger return data sets and require more server side processing but would not be expected to be called with a high frequency. Given that it is not possible to understand how these methods might be used by motor freight carriers in a final implementation it is difficult to provide concrete performance metric requirements at this stage. Instead, implementors should consider this per-truck scaling and design accordingly. i.e. consider that fleets can have more than 100,000 trucks and that some API endpoints in this specification will be called rapidly (1 request per minute) whereas others will be called infrequently (1 request per day). This specification does not go into implementation specific design decisions which are up to the individual TSPs since such decisions are heavily dependent on their architecture. It is, however, strongly recommended that the TSPs consider building-in performance features such as request queueing and request rate limiters to provide a stable and robust solution. It is also recommended that the TSPs provide information on the frequency of updates for data feed subscriptions such as the vehicle feed so the consumers can make appropriate design decisions. # Response Size Limits Considering the volume of data which will be generated by large fleets, there will be cases where pagination is not sufficient to limit the load on the TSP\'s OTAPI servers. The TSPs implementing OTAPI may elect to return an error `413 Request Entity Too Large` when clients make queries which would yield a response which is deemed \'too large.\' The definition of \'too large\' is intentionally left open so that TSPs can configure different limits for the various endpoints and on a per-customer basis (based on e.g. tiers of service). Client software must be prepare to receive error `413` and to react by reducing the size of the query or ceasing the query; client may not retry a request when receiving a `413` error. This draft lists the endpoints where clients must be prepared for `413` responses. # Unknown Drivers For the elements of Open Telematics API which are concerned with Driver log events, or other driver-associated data, there needs to be a concept of an \'unknown driver\'. Indeed this concept is part of the ELD mandate. In Open Telematics API objects: `driverID` references to the unknown driver is represented by `null`. # Provider Identifiers An important use case of the Open Telematics API by motor freight carriers is to run \'mixed fleets\' where there are more than one TSP\'s service integrated concurrently. In such a seployment we can imagine possible issues with duplicated data or conflicts. To prepare a solution to these problems, this specification includes provisions to identify the source of all data by a \'Provider ID\'. Implementors are required to choose a unique identifier and assign it to all \'Provider ID\' fields in all data structures where it is included in this specification. We reccommend that TSPs use their domain (e.g. `api.provider.com`) which should be sufficiently unique; however, TSPs can elect to use whatever identifier they like but it should be 1) recognizable as associated with that TSP and 2) remain constant throughout the lifetime of the TSP\'s service. # Extending This API The Open Telematics API is intended to enable motor freight carriers to be able to substitute TSPs (either concurently or as fail-overs). This, of course, means that OTAPI must include only the most common elements of all the TSPs (so- called Lowest Common Denominator). However, each TSP has their own special value-add and, in some cases, the motor freight carriers would rather have access to this special value-add via OTAPI rather than include parallel integrations with SDKs in their operations. Unique vehicle performance data is a good example of this, where it is more useful embedded with the other events in the TSP stream. Thus, extensions to the API will be necessary and in preparation for this the data models specified in the current API have been left \'open\'. i.e. the addition of data fields to the definitions of the objects which are returned by OTAPI according to this specification will not cause validation errors by clients which are following the JSON schema in this specification. Addition of fields to the objects must be done such that it is not possible for the new extension fields to collide with other extensions or with future versions of the API; therefore, all fields added as extensions must be prefixed with `x_providerid_` where `providerid` is the provider ID (see *Provider Identifiers* above for more details). * Adding addional field/members to the data objects, when the data is needed by a motor freight carrier IS a valid extension to the OTAPI * Adding additional possible values to enumerations IS NOT a valid extension to the OTAPI * Adding additional endpoints/methods IS NOT a valid extension to the OTAPI In cases where enumerations need to be changed and additional endpoints need to be added, this should be approached by changing the OTAPI upstream. Also, ideally, adding fields should also be done by suggesting changes upstream; in this case, an example roadmap of the process might look like: starting with a prefixed field in the TSP extensions then suggesting the useful fields for inclusion and review leading to a new field without a prefix. # Localization The Open Telematics API is ready to be used in locales other than the United States (English-speakers). To enable display and interpretation of data in languages other English (US, `en_US`) implementors may provide translations of the descriptions of the enumerated constants in the API. The localization does not apply to units of measure. With the exception of velocities where units of `km/h` are used, the Open Telematics API will use SI units. Nor does the localization apply to arbitrary strings in data objects of the API such as messages for display in vehicles or comment fields. Requests to the Translation `/i18n` endpoint (see below for more details) shall include the request header `Accept- Language: `. If no request header is present then `Accept-Language: en` will be assumed. Open Telematics API implementors choose which languages they will support. If the `Accept-Language: ` request header specifies a language which is unsupported by the Open Telematics API instance, then a `406` (Not Acceptable) response will returned. Implementors must support `Accept-Language: en` and return a complete mapping -- a sample of which is provided below for convenience in the sample response to `GET /v1.0/i18n`. # Telematics API Use Cases by Motor Freight Carriers The Open Telematics API is envisioned to be complete enough that motor freight carriers can use these APIs instead of the proprietary TSP APIs -- while still connecting-to TSP-hosted servers and hence still using the same provider. In the interest of ensuring that the APIs are _useful_ to their intended users (motor freight carriers) we will capture -- and organize -- the API by these use cases. See the sections below for the API endpoints in those categories. For ease of reference, we summarize the use cases here: ***Check Provider\'s State of Health*** Users of telematics that is highly integrated into their operations need assurances of the state of health of the Provider\'s services. ***Data Export*** Motor freight carriers want to export all data from a TSP for a given time period. Where \'all data\' for the purposes of this specification is all the data specified here and does not include any other proprietary data structures designed and employed by the TSP. These data exports could be used by carriers to complete mandatory processes during times of TSP outage or for research purposes offline or to restore data -- although this last potential use is _not_ a use case we aim to support here please see below on \'data import.\' ***Generate Records of Duty Status for Compliance*** Motor freight carriers use telematics systems to maintain Record of Duty Status (RODS) compliance. The TSP to the carrier will supply compliant records directly, without the need for the carrier to use the OTAPI. The carrier may use OTAPI for RODS in the event that compliant records need to be produced when a TSP is no longer available. i.e. as a backup process only; however, to do so will require processing and it is not expected that OTAPI data be ready for compliance as-is. A couple examples; the `line data check` and `file data check` values will need to be calculated after the creation of line and files in the process of creating RODS files for compliance; OTAPI will not include these values. Also note that preparing compliance reports is a value added by TSPs; e.g. in at least one case, the ordering used by regulators used truncated timestamps and the higher-resolution available in the TSP RODS information led to events being out-of-order in the view of the regulators without special handling by the TSP. This is an example of the kinds of nuances that are handled by TPSs in their service offering and OTAPI is not meant to replace that service. ***Driver Availability*** Motor freight carriers need to understand the availability of their drivers -- within the current regulatory context of those drivers -- so that the carrier can ensure regulatory compliance and, more importantly, driver safety. ***Driver Route & Directions Communication*** Motor freight carriers update their Driver\'s destination and route during their trip. This allows them to react to changing conditions in weather, the needs of regulatory restrictions on hours, optimizing follow-on activities after a trip, etc. This feature is heavily used but also is commonly offered as an add-on to the TSP service from another party. ***Driver Route & Directions Start*** Motor freight carriers plan destinations and routes for their drivers and inform the drivers of the plan via the in-cab components of a telematics system. This feature is heavily used but also is commonly offered as an add-on to the TSP service from another party. ***Driver Route and Directions Done*** Motor freight carriers receive notifications when Drivers have completed their trip. This feature is heavily used but also is commonly offered as an add-on to the TSP service from another party. ***Driver Messaging by Geo-Location*** Motor freight carriers use telematics systems to message their drivers for various reasons, not the least of which is to notify the drivers of dangerous weather conditions in their area. ***Driver Messaging by Vehicle*** Motor freight carriers also message their drivers by sending messages directly to a vehicle. ***Vehicle Location Time History Tracking*** Motor freight carriers use telematics fleet Location Time History for multiple \'fleet dynamics modeling\' use cases such as: Fuel Purchase Prediction, Fuel Consumption Performance Tracking, and Fleet Maintenance Planning. ***Human Resources Process: Payroll*** Motor freight carriers use telematics systems to assist in payroll processing. This enables efficiencies at scale that are important to modern motor freight carrier operations. ***Human Resources Process: Accident Report*** Motor freight carriers use telematics systems to monitor their fleets for accidents. ***Carrier Custom Business Intelligence*** Motor freight carriers use telematics systems for multiple, custom, business intelligence purposes where the overall health of their fleet is considered and fed into their own proprietary models. ***Compliance and Safety Monitoring*** Motor freight carriers use telematics systems to monitor compliance and safety for their operations. ***In-Field Maintenance & Repair*** Motor freight carriers use telematics systems to plan (and react to) maintenance needs of their fleets.',
long_description=long_description,
author='Urban Jonson',
author_email='urban.jonson@nmfta.org',
url='https://github.com/nmfta-repo/nmfta-opentelematics-api',
packages=find_packages(),
install_requires=[
'requests>=2.9.1, <3.0',
'jsonpickle>=0.7.1, <1.2',
'cachecontrol>=0.11.7, <1.0',
'python-dateutil>=2.5.3, <3.0'
],
tests_require=[
'nose>=1.3.7'
],
test_suite = 'nose.collector'
)
| 1,006.482759
| 28,396
| 0.791284
| 4,502
| 29,188
| 5.122612
| 0.244558
| 0.02064
| 0.021377
| 0.012141
| 0.136198
| 0.101639
| 0.092533
| 0.072934
| 0.057757
| 0.057757
| 0
| 0.005096
| 0.152837
| 29,188
| 29
| 28,397
| 1,006.482759
| 0.927569
| 0.00185
| 0
| 0.076923
| 0
| 0.423077
| 0.724024
| 0.014829
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.038462
| 0.153846
| 0
| 0.153846
| 0.038462
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d3e77abf7d3f137599d6ba8326c0990c9e4b0b90
| 174
|
py
|
Python
|
analysis_notebooks/cache_dir/joblib/__main__-C%3A-Users-canto-Repositories-nrFano_Constraint/git-paper_notebooks-__ipython-input__/vsigmomEdw_NR/func_code.py
|
villano-lab/nrFano_paper2019
|
f44565bfb3e45b2dfbe2a73cba9f620a7120abd7
|
[
"MIT"
] | 2
|
2020-04-06T17:27:33.000Z
|
2022-03-30T20:38:54.000Z
|
analysis_notebooks/cache_dir/joblib/__main__-C%3A-Users-canto-Repositories-nrFano_Constraint/git-paper_notebooks-__ipython-input__/vsigmomEdw_NR/func_code.py
|
villano-lab/nrFano_paper2019
|
f44565bfb3e45b2dfbe2a73cba9f620a7120abd7
|
[
"MIT"
] | null | null | null |
analysis_notebooks/cache_dir/joblib/__main__-C%3A-Users-canto-Repositories-nrFano_Constraint/git-paper_notebooks-__ipython-input__/vsigmomEdw_NR/func_code.py
|
villano-lab/nrFano_paper2019
|
f44565bfb3e45b2dfbe2a73cba9f620a7120abd7
|
[
"MIT"
] | null | null | null |
# first line: 1
@memory.cache
def vsigmomEdw_NR(Erecoil_keV, aH):
return [sigmomEdw(x,band='NR',label='GGA3',F=0.000001,V=4.0,aH=aH,alpha=(1/18.0)) for x in Erecoil_keV]
| 34.8
| 107
| 0.701149
| 35
| 174
| 3.4
| 0.742857
| 0.168067
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096154
| 0.103448
| 174
| 4
| 108
| 43.5
| 0.666667
| 0.074713
| 0
| 0
| 0
| 0
| 0.037736
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 0.666667
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
3100e2de81865d750441cd6c6b20cb068448e59b
| 1,735
|
py
|
Python
|
rdmo/questions/migrations/0057_question_default_text.py
|
m6121/rdmo
|
db3990c7525138c6ce9634fc3e5b6b8ee9b915c8
|
[
"Apache-2.0"
] | 77
|
2016-08-09T11:40:20.000Z
|
2022-03-06T11:03:26.000Z
|
rdmo/questions/migrations/0057_question_default_text.py
|
m6121/rdmo
|
db3990c7525138c6ce9634fc3e5b6b8ee9b915c8
|
[
"Apache-2.0"
] | 377
|
2016-07-01T13:59:36.000Z
|
2022-03-30T13:53:19.000Z
|
rdmo/questions/migrations/0057_question_default_text.py
|
m6121/rdmo
|
db3990c7525138c6ce9634fc3e5b6b8ee9b915c8
|
[
"Apache-2.0"
] | 47
|
2016-06-23T11:32:19.000Z
|
2022-03-01T11:34:37.000Z
|
# Generated by Django 2.2.18 on 2021-03-29 13:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('questions', '0056_question_is_optional'),
]
operations = [
migrations.AddField(
model_name='question',
name='default_text_lang1',
field=models.TextField(blank=True, help_text='The default text value for this question in the primary language.', null=True, verbose_name='Default text value (primary)'),
),
migrations.AddField(
model_name='question',
name='default_text_lang2',
field=models.TextField(blank=True, help_text='The default text value for this question in the secondary language.', null=True, verbose_name='Default text value (secondary)'),
),
migrations.AddField(
model_name='question',
name='default_text_lang3',
field=models.TextField(blank=True, help_text='The default text value for this question in the tertiary language.', null=True, verbose_name='Default text value (tertiary)'),
),
migrations.AddField(
model_name='question',
name='default_text_lang4',
field=models.TextField(blank=True, help_text='The default text value for this question in the quaternary language.', null=True, verbose_name='Default text value (quaternary)'),
),
migrations.AddField(
model_name='question',
name='default_text_lang5',
field=models.TextField(blank=True, help_text='The default text value for this question in the quinary language.', null=True, verbose_name='Default text value (quinary)'),
),
]
| 44.487179
| 188
| 0.654179
| 204
| 1,735
| 5.426471
| 0.259804
| 0.149051
| 0.135501
| 0.121951
| 0.763324
| 0.763324
| 0.763324
| 0.763324
| 0.34327
| 0.34327
| 0
| 0.018997
| 0.241499
| 1,735
| 38
| 189
| 45.657895
| 0.822188
| 0.026513
| 0
| 0.46875
| 1
| 0
| 0.379964
| 0.014819
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.03125
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 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
|
3166093f11bd4ca0e8ac296c55648d6c2b02faec
| 51
|
py
|
Python
|
crmsystem/routing/__init__.py
|
iomegak12/pythondockertry
|
dd91dc57a09141f94cb0a73e18a8ad9da4d5aa85
|
[
"MIT"
] | null | null | null |
crmsystem/routing/__init__.py
|
iomegak12/pythondockertry
|
dd91dc57a09141f94cb0a73e18a8ad9da4d5aa85
|
[
"MIT"
] | null | null | null |
crmsystem/routing/__init__.py
|
iomegak12/pythondockertry
|
dd91dc57a09141f94cb0a73e18a8ad9da4d5aa85
|
[
"MIT"
] | null | null | null |
from .customer_routing import CustomerRouteHandler
| 25.5
| 50
| 0.901961
| 5
| 51
| 9
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 51
| 1
| 51
| 51
| 0.957447
| 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
|
316c42b0f5928121c7d874c9777f097c3bf0d2e5
| 193
|
py
|
Python
|
lesson 1/p5-concat.py
|
hamburgcodingschool/L2CX-January_new
|
dbabdbd09dc7b3eb918167e674f91ec6bffc45c8
|
[
"MIT"
] | 1
|
2019-01-30T20:20:41.000Z
|
2019-01-30T20:20:41.000Z
|
lesson 1/p5-concat.py
|
hamburgcodingschool/L2CX-January_new
|
dbabdbd09dc7b3eb918167e674f91ec6bffc45c8
|
[
"MIT"
] | null | null | null |
lesson 1/p5-concat.py
|
hamburgcodingschool/L2CX-January_new
|
dbabdbd09dc7b3eb918167e674f91ec6bffc45c8
|
[
"MIT"
] | null | null | null |
print("What is your first name?")
firstName = input()
print("What is your last name?")
lastName = input()
fullName = firstName + " " + lastName
greeting = "Hello " + fullName
print(greeting)
| 19.3
| 37
| 0.689119
| 24
| 193
| 5.541667
| 0.541667
| 0.135338
| 0.165414
| 0.225564
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170984
| 193
| 9
| 38
| 21.444444
| 0.83125
| 0
| 0
| 0
| 0
| 0
| 0.279793
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.428571
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
316e2d146b1ad4223c394c2bf566c43f372a9244
| 1,946
|
py
|
Python
|
Programa NeXT/Q05.py
|
pedronb/Exercicios-Python
|
54db2ce48bbbba94a4ac25b32b3c1fd985347857
|
[
"MIT"
] | null | null | null |
Programa NeXT/Q05.py
|
pedronb/Exercicios-Python
|
54db2ce48bbbba94a4ac25b32b3c1fd985347857
|
[
"MIT"
] | null | null | null |
Programa NeXT/Q05.py
|
pedronb/Exercicios-Python
|
54db2ce48bbbba94a4ac25b32b3c1fd985347857
|
[
"MIT"
] | null | null | null |
# Faça um Programa que leia 2 números e em seguida pergunte ao usuário qual operação ele deseja realizar. O resultado da operação deve ser acompanhado de uma frase que diga se o número é:
#a. par ou ímpar;
#b. positivo ou negativo;
#c. inteiro ou decimal.
n1 = float(input('Digite um número: '))
n2 = float(input('Digite outro número: '))
opera = input('Qual operação deseja realizar? ').lower()
if opera == 'soma' or opera == 'somar':
resul = n1 + n2
print(f'\nResultado: {resul}')
if resul % 2 == 0:
print('O número é PAR.')
else:
print('O número é ÍMPAR.')
if resul > 0:
print('O número é POSITIVO.')
else:
print('O número é NEGATIVO.')
if resul // 1 == resul:
print('O número é INTEIRO.')
else:
print('O número é DECIMAL.')
elif opera == 'subtração' or opera == 'subtrair':
resul = n1 - n2
print(f'\nResultado: {resul}')
if resul % 2 == 0:
print('O número é PAR.')
else:
print('O número é ÍMPAR.')
if resul > 0:
print('O número é POSITIVO.')
else:
print('O número é NEGATIVO.')
if resul // 1 == resul:
print('O número é INTEIRO.')
else:
print('O número é DECIMAL.')
elif opera == 'multiplicação' or opera == 'multiplicar':
resul = n1 * n2
print(f'\nResultado: {resul}')
if resul % 2 == 0:
print('O número é PAR.')
else:
print('O número é ÍMPAR.')
if resul > 0:
print('O número é POSITIVO.')
else:
print('O número é NEGATIVO.')
if resul // 1 == resul:
print('O número é INTEIRO.')
else:
print('O número é DECIMAL.')
elif opera == 'divisão' or opera == 'dividir':
resul = n1 / n2
print(f'\nResultado: {resul}')
if resul % 2 == 0:
print('O número é PAR.')
else:
print('O número é ÍMPAR.')
if resul > 0:
print('O número é POSITIVO.')
else:
print('O número é NEGATIVO.')
if resul // 1 == resul:
print('O número é INTEIRO.')
else:
print('O número é DECIMAL.')
| 24.325
| 187
| 0.601747
| 293
| 1,946
| 3.996587
| 0.228669
| 0.149445
| 0.170794
| 0.266439
| 0.665243
| 0.665243
| 0.665243
| 0.665243
| 0.665243
| 0.665243
| 0
| 0.018493
| 0.249743
| 1,946
| 80
| 188
| 24.325
| 0.783562
| 0.126927
| 0
| 0.825397
| 0
| 0
| 0.385841
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.444444
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 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
| 1
|
0
| 4
|
318fd9b5efbfab74cf487f3276478793d9251b1b
| 144
|
py
|
Python
|
mods/BlocksTower/main.py
|
gjacobrobertson/opennero-394n
|
cc549ca95e4b00e5dc375e702a3979a0f0930267
|
[
"BSD-3-Clause"
] | null | null | null |
mods/BlocksTower/main.py
|
gjacobrobertson/opennero-394n
|
cc549ca95e4b00e5dc375e702a3979a0f0930267
|
[
"BSD-3-Clause"
] | null | null | null |
mods/BlocksTower/main.py
|
gjacobrobertson/opennero-394n
|
cc549ca95e4b00e5dc375e702a3979a0f0930267
|
[
"BSD-3-Clause"
] | null | null | null |
# OpenNero will execute ModMain when this mod is loaded
from BlocksTower.client import ClientMain
def ModMain(mode = ""):
ClientMain(mode)
| 24
| 55
| 0.763889
| 19
| 144
| 5.789474
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 144
| 5
| 56
| 28.8
| 0.916667
| 0.368056
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
319199da50e955f642e667db7b0ae6924e2a02b1
| 32
|
py
|
Python
|
src/desktopautomator/data/__init__.py
|
vadimtitov/desktop-automator
|
c1538e53f8a8caee263e4e77b1847442a4c50465
|
[
"Apache-2.0"
] | 1
|
2021-12-19T14:59:31.000Z
|
2021-12-19T14:59:31.000Z
|
src/desktopautomator/data/__init__.py
|
vadimtitov/desktop-automator
|
c1538e53f8a8caee263e4e77b1847442a4c50465
|
[
"Apache-2.0"
] | 3
|
2021-09-16T20:47:58.000Z
|
2021-12-19T02:45:59.000Z
|
src/desktopautomator/data/__init__.py
|
vadimtitov/desktop-automator
|
c1538e53f8a8caee263e4e77b1847442a4c50465
|
[
"Apache-2.0"
] | null | null | null |
"""Store project data files."""
| 16
| 31
| 0.65625
| 4
| 32
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 32
| 1
| 32
| 32
| 0.75
| 0.78125
| 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
|
31a1c5af3e96e907f4d4c6bf980a7c51fa0685b9
| 303
|
py
|
Python
|
amusement/parks/universal/UniversalStudiosFlorida.py
|
Fitblip/amusement
|
ff51cb94ec734d1186448c9e2cbfc01946763dbe
|
[
"MIT"
] | 22
|
2015-12-27T05:17:21.000Z
|
2016-06-10T17:36:43.000Z
|
amusement/parks/universal/UniversalStudiosFlorida.py
|
Fitblip/amusement
|
ff51cb94ec734d1186448c9e2cbfc01946763dbe
|
[
"MIT"
] | 8
|
2017-02-22T01:41:39.000Z
|
2018-07-03T17:53:15.000Z
|
amusement/parks/universal/UniversalStudiosFlorida.py
|
Fitblip/amusement
|
ff51cb94ec734d1186448c9e2cbfc01946763dbe
|
[
"MIT"
] | 5
|
2016-01-23T14:47:39.000Z
|
2016-12-30T17:17:18.000Z
|
from amusement.parks.universal.UniversalPark import UniversalPark
class UniversalStudiosFlorida(UniversalPark):
def __init__(self):
super(UniversalStudiosFlorida, self).__init__()
def getId(self):
return 10010
def getName(self):
return 'Universal Studios Florida'
| 25.25
| 65
| 0.729373
| 29
| 303
| 7.344828
| 0.62069
| 0.093897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020492
| 0.194719
| 303
| 11
| 66
| 27.545455
| 0.852459
| 0
| 0
| 0
| 0
| 0
| 0.082508
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0.125
| 0.25
| 0.875
| 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
|
31a1ccbb4f96474d5c947a1fc395ab9622c81fec
| 692
|
py
|
Python
|
minitorch/dtype.py
|
jstzwj/PyNeural
|
5d05e983badb6a30f2cdf933aa680f87d3f54d0b
|
[
"MIT"
] | null | null | null |
minitorch/dtype.py
|
jstzwj/PyNeural
|
5d05e983badb6a30f2cdf933aa680f87d3f54d0b
|
[
"MIT"
] | null | null | null |
minitorch/dtype.py
|
jstzwj/PyNeural
|
5d05e983badb6a30f2cdf933aa680f87d3f54d0b
|
[
"MIT"
] | null | null | null |
class dtype(object):
def __init__(self):
super().__init__()
def is_floating_point(self) -> bool:
raise NotImplementedError('is_floating_point NotImplementedError')
def is_complex(self) -> bool:
raise NotImplementedError('is_complex NotImplementedError')
def is_signed(self) -> bool:
raise NotImplementedError('is_signed NotImplementedError')
class dtype_float32(dtype):
def __init__(self):
super().__init__()
def is_floating_point(self) -> bool:
return True
def is_complex(self) -> bool:
return False
def is_signed(self) -> bool:
return True
float32 = dtype_float32()
float = float32
| 20.969697
| 74
| 0.666185
| 76
| 692
| 5.671053
| 0.263158
| 0.069606
| 0.104408
| 0.222738
| 0.575406
| 0.213457
| 0.213457
| 0.213457
| 0.213457
| 0.213457
| 0
| 0.015123
| 0.235549
| 692
| 32
| 75
| 21.625
| 0.799622
| 0
| 0
| 0.6
| 0
| 0
| 0.139535
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0.15
| 0.65
| 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
|
9ee118aa00ded389c8a78aabfe470e1d8e186ebd
| 20
|
py
|
Python
|
example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Elliptic integrals/Legendre incomplete elliptic integral of the third kind.py
|
kuanpern/jupyterlab-snippets-multimenus
|
477f51cfdbad7409eab45abe53cf774cd70f380c
|
[
"BSD-3-Clause"
] | null | null | null |
example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Elliptic integrals/Legendre incomplete elliptic integral of the third kind.py
|
kuanpern/jupyterlab-snippets-multimenus
|
477f51cfdbad7409eab45abe53cf774cd70f380c
|
[
"BSD-3-Clause"
] | null | null | null |
example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Elliptic integrals/Legendre incomplete elliptic integral of the third kind.py
|
kuanpern/jupyterlab-snippets-multimenus
|
477f51cfdbad7409eab45abe53cf774cd70f380c
|
[
"BSD-3-Clause"
] | 1
|
2021-02-04T04:51:48.000Z
|
2021-02-04T04:51:48.000Z
|
elliptic_pi(n, z, m)
| 20
| 20
| 0.7
| 5
| 20
| 2.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 20
| 1
| 20
| 20
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9ef2fe1b4a22b901ca6d5887b536de05d7dfe92c
| 3,031
|
py
|
Python
|
mathgenerator/funcs/__init__.py
|
adit098/mathgenerator
|
22edff6736a2098346a02501b1add4f5418b94cb
|
[
"MIT"
] | null | null | null |
mathgenerator/funcs/__init__.py
|
adit098/mathgenerator
|
22edff6736a2098346a02501b1add4f5418b94cb
|
[
"MIT"
] | null | null | null |
mathgenerator/funcs/__init__.py
|
adit098/mathgenerator
|
22edff6736a2098346a02501b1add4f5418b94cb
|
[
"MIT"
] | null | null | null |
import random
import math
import fractions
from ..__init__ import *
from .addition import *
from .subtraction import *
from .multiplication import *
from .division import *
from .binary_complement_1s import *
from .modulo_division import *
from .square_root import *
from .power_rule_differentiation import *
from .square import *
from .lcm import *
from .gcd import *
from .basic_algebra import *
from .log import *
from .int_division import *
from .decimal_to_binary import *
from .binary_to_decimal import *
from .divide_fractions import *
from .multiply_int_to_22_matrix import *
from .area_of_triangle import *
from .valid_triangle import *
from .midpoint_of_two_points import *
from .factoring import *
from .third_angle_of_triangle import *
from .system_of_equations import *
from .distance_two_points import *
from .pythagorean_theorem import *
from .linear_equations import *
from .prime_factors import *
from .fraction_multiplication import *
from .angle_regular_polygon import *
from .combinations import *
from .factorial import *
from .surface_area_cube import *
from .surface_area_cuboid import *
from .surface_area_cylinder import *
from .volume_cube import *
from .volume_cuboid import *
from .volume_cylinder import *
from .surface_area_cone import *
from .volume_cone import *
from .common_factors import *
from .intersection_of_two_lines import *
from .permutation import *
from .vector_cross import *
from .compare_fractions import *
from .simple_interest import *
from .matrix_multiplication import *
from .cube_root import *
from .power_rule_integration import *
from .fourth_angle_of_quadrilateral import *
from .quadratic_equation import *
from .hcf import *
from .dice_sum_probability import *
from .exponentiation import *
from .confidence_interval import *
from .surds_comparison import *
from .fibonacci_series import *
from .basic_trigonometry import *
from .sum_of_polygon_angles import *
from .data_summary import *
from .surface_area_sphere import *
from .volume_sphere import *
from .nth_fibonacci_number import *
from .profit_loss_percent import *
from .binary_to_hex import *
from .multiply_complex_numbers import *
from .geometric_progression import *
from .geometric_mean import *
from .harmonic_mean import *
from .euclidian_norm import *
from .angle_btw_vectors import *
from .absolute_difference import *
from .vector_dot import *
from .binary_2s_complement import *
from .invert_matrix import *
from .sector_area import *
from .mean_median import *
from .int_matrix_22_determinant import *
from .compound_interest import *
from .decimal_to_hexadeci import *
from .percentage import *
from .celsius_to_fahrenheit import *
from .arithmetic_progression_term import *
from .arithmetic_progression_sum import *
from .decimal_to_octal import *
from .decimal_to_roman_numerals import *
from .degree_to_rad import *
from .radian_to_deg import *
from .differentiation import *
from .definite_integral import *
from .is_prime import *
from .bcd_to_decimal import *
from .complex_to_polar import *
| 30.009901
| 44
| 0.810624
| 412
| 3,031
| 5.652913
| 0.322816
| 0.399313
| 0.036496
| 0.045084
| 0.019751
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002268
| 0.127021
| 3,031
| 100
| 45
| 30.31
| 0.877929
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
9efe91d0c46d52b15d0cd7d379354d12d44ac0f9
| 285
|
py
|
Python
|
Section09_Decorator/RegularDecorator/Circle.py
|
enriqueescobar-askida/Kinito.Python
|
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
|
[
"MIT"
] | 1
|
2020-10-20T07:41:51.000Z
|
2020-10-20T07:41:51.000Z
|
Section09_Decorator/RegularDecorator/Circle.py
|
enriqueescobar-askida/Kinito.Python
|
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
|
[
"MIT"
] | null | null | null |
Section09_Decorator/RegularDecorator/Circle.py
|
enriqueescobar-askida/Kinito.Python
|
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
|
[
"MIT"
] | null | null | null |
from Section09_Decorator.RegularDecorator.Shape import Shape
class Circle(Shape):
def __init__(self, radius=0.0):
self.radius = radius
def resize(self, factor):
self.radius *= factor
def __str__(self):
return f'A circle of radius {self.radius}'
| 21.923077
| 60
| 0.670175
| 37
| 285
| 4.918919
| 0.540541
| 0.21978
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018265
| 0.231579
| 285
| 12
| 61
| 23.75
| 0.812785
| 0
| 0
| 0
| 0
| 0
| 0.112281
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0.125
| 0.125
| 0.75
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
730612051b6c63c03d2b61ad717db1ad7ef7917c
| 214
|
py
|
Python
|
enigma/base.py
|
satoshi03/enigma
|
139c57e7c85b36e1378a61c987e46ad1aa87e92f
|
[
"MIT"
] | null | null | null |
enigma/base.py
|
satoshi03/enigma
|
139c57e7c85b36e1378a61c987e46ad1aa87e92f
|
[
"MIT"
] | null | null | null |
enigma/base.py
|
satoshi03/enigma
|
139c57e7c85b36e1378a61c987e46ad1aa87e92f
|
[
"MIT"
] | null | null | null |
class Encoder():
def encode_char(self, char, order):
return char
def _to_index(self, char):
return ord(char) - ord('A')
def _to_char(self, index):
return chr(index + ord('A'))
| 21.4
| 39
| 0.579439
| 30
| 214
| 3.966667
| 0.433333
| 0.134454
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.280374
| 214
| 9
| 40
| 23.777778
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0.009346
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0
| 0.428571
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
7306de8f7472e4c929a241e107b13e73b2377acb
| 1,147
|
py
|
Python
|
conan_ue4cli/data/boilerplate_templates/common/conanfile.py
|
JJC1138/conan-ue4cli
|
76163a21cb63976cacfea46b024d80c12cf39313
|
[
"MIT"
] | null | null | null |
conan_ue4cli/data/boilerplate_templates/common/conanfile.py
|
JJC1138/conan-ue4cli
|
76163a21cb63976cacfea46b024d80c12cf39313
|
[
"MIT"
] | null | null | null |
conan_ue4cli/data/boilerplate_templates/common/conanfile.py
|
JJC1138/conan-ue4cli
|
76163a21cb63976cacfea46b024d80c12cf39313
|
[
"MIT"
] | null | null | null |
# EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
# THIS FILE WAS ORIGINALLY GENERATED BY CONAN-UE4CLI VERSION ${VERSION}.
from conans import ConanFile
import os
class ${MODULE}Conan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "json"
def _requireUnreal(self, dependency):
'''
Adds a package as a dependency, filling in the Unreal Engine version string.
Call this with a package reference that uses a placeholder for the channel, e.g.:
self._requireUnreal("my-package/1.0.0@adamrehn/{}")
'''
self.requires(dependency.format(os.environ["UNREAL_ENGINE_VERSION"]))
def requirements(self):
# TODO:
# LIST YOUR DEPENDENCIES HERE, USING THE `self._requireUnreal()` METHOD.
# MAKE SURE YOU USE A PLACEHOLDER `{}` FOR THE PACKAGE CHANNEL, e.g.:
# self._requireUnreal("my-package/1.0.0@adamrehn/{}")
# TODO:
# REMOVE THIS `pass` STATEMENT ONCE YOU'VE ADDED AT LEAST ONE DEPENDENCY,
# SINCE IT'S ONLY HERE BECAUSE PYTHON FORBIDS EMPTY FUNCTION BODIES.
pass
| 38.233333
| 89
| 0.644289
| 145
| 1,147
| 5.048276
| 0.62069
| 0.069672
| 0.051913
| 0.04918
| 0.125683
| 0.125683
| 0.125683
| 0.125683
| 0.125683
| 0.125683
| 0
| 0.008187
| 0.254577
| 1,147
| 29
| 90
| 39.551724
| 0.847953
| 0.404534
| 0
| 0
| 1
| 0
| 0.118357
| 0.050725
| 0
| 0
| 0
| 0.034483
| 0
| 0
| null | null | 0.111111
| 0.222222
| null | null | 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
7340f3f90f710a155a0c69b60ddbf2f28846aff6
| 78
|
py
|
Python
|
src/lib/dummy_threading.py
|
timmartin/skulpt
|
2e3a3fbbaccc12baa29094a717ceec491a8a6750
|
[
"MIT"
] | 10
|
2015-11-13T17:02:40.000Z
|
2021-02-09T23:21:05.000Z
|
src/lib/dummy_threading.py
|
timmartin/skulpt
|
2e3a3fbbaccc12baa29094a717ceec491a8a6750
|
[
"MIT"
] | 43
|
2015-06-03T17:59:23.000Z
|
2021-09-17T10:45:21.000Z
|
src/lib/dummy_threading.py
|
timmartin/skulpt
|
2e3a3fbbaccc12baa29094a717ceec491a8a6750
|
[
"MIT"
] | 13
|
2017-07-02T03:16:46.000Z
|
2021-07-05T14:53:56.000Z
|
raise NotImplementedError("dummy_threading is not yet implemented in Skulpt")
| 39
| 77
| 0.846154
| 10
| 78
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102564
| 78
| 1
| 78
| 78
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
73425a3d232fb68ac62bb20a064456a1db103365
| 224
|
py
|
Python
|
hdfs3/__init__.py
|
HirniMeshram1/hdfs3
|
8ce1ae6d1045b7a4c90a5d4496e48a77a3e68567
|
[
"BSD-3-Clause"
] | 143
|
2016-02-10T16:03:11.000Z
|
2022-01-11T15:18:17.000Z
|
hdfs3/__init__.py
|
HirniMeshram1/hdfs3
|
8ce1ae6d1045b7a4c90a5d4496e48a77a3e68567
|
[
"BSD-3-Clause"
] | 105
|
2016-02-10T15:35:52.000Z
|
2021-02-10T02:00:42.000Z
|
hdfs3/__init__.py
|
HirniMeshram1/hdfs3
|
8ce1ae6d1045b7a4c90a5d4496e48a77a3e68567
|
[
"BSD-3-Clause"
] | 38
|
2016-02-22T15:14:49.000Z
|
2022-03-01T17:21:05.000Z
|
from __future__ import absolute_import
from .conf import conf
from .core import HDFileSystem, HDFile
from .mapping import HDFSMap
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| 22.4
| 39
| 0.821429
| 30
| 224
| 5.7
| 0.466667
| 0.192982
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 224
| 9
| 40
| 24.888889
| 0.872449
| 0
| 0
| 0
| 0
| 0
| 0.03125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.714286
| 0
| 0.714286
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7351db99ecd20ae4be9114fc15247ee059494f79
| 161
|
py
|
Python
|
src/genui/projects/apps.py
|
Tontolda/genui
|
c5b7da7c5a99fc16d34878e2170145ac7c8e31c4
|
[
"0BSD"
] | 15
|
2021-05-31T13:39:17.000Z
|
2022-03-30T12:04:14.000Z
|
src/genui/projects/apps.py
|
martin-sicho/genui
|
ea7f1272030a13e8e253a7a9b6479ac6a78552d3
|
[
"MIT"
] | 3
|
2021-04-08T22:02:22.000Z
|
2022-03-16T09:10:20.000Z
|
src/genui/projects/apps.py
|
Tontolda/genui
|
c5b7da7c5a99fc16d34878e2170145ac7c8e31c4
|
[
"0BSD"
] | 5
|
2021-03-04T11:00:54.000Z
|
2021-12-18T22:59:22.000Z
|
from django.apps import AppConfig
class ProjectsConfig(AppConfig):
name = 'genui.projects'
def ready(self, force=False):
from . import signals
| 20.125
| 33
| 0.701863
| 19
| 161
| 5.947368
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.21118
| 161
| 7
| 34
| 23
| 0.889764
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 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
|
b41b183c680b3bf34fd0d96a36dd66a6772f7cd9
| 100
|
py
|
Python
|
phoenix_api/apps.py
|
leonolan2020/phoenix
|
b5956a7003e548f01255cbd5d0d76cfd0ac77a81
|
[
"MIT"
] | 1
|
2020-09-19T21:56:40.000Z
|
2020-09-19T21:56:40.000Z
|
phoenix_api/apps.py
|
leonolan2020/phoenix
|
b5956a7003e548f01255cbd5d0d76cfd0ac77a81
|
[
"MIT"
] | null | null | null |
phoenix_api/apps.py
|
leonolan2020/phoenix
|
b5956a7003e548f01255cbd5d0d76cfd0ac77a81
|
[
"MIT"
] | 5
|
2020-09-18T18:53:03.000Z
|
2020-10-21T14:42:00.000Z
|
from django.apps import AppConfig
class PhoenixAndroidConfig(AppConfig):
name = 'phoenix_api'
| 16.666667
| 38
| 0.78
| 11
| 100
| 7
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 100
| 5
| 39
| 20
| 0.905882
| 0
| 0
| 0
| 0
| 0
| 0.11
| 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
|
b41df7240bf9dd7a14d91d520b234cde3945ffae
| 78
|
py
|
Python
|
client.py
|
junpengxu/thunder
|
a7cf4ed4bac0ade4aac9f14dc66f74949f78a52f
|
[
"MIT"
] | null | null | null |
client.py
|
junpengxu/thunder
|
a7cf4ed4bac0ade4aac9f14dc66f74949f78a52f
|
[
"MIT"
] | null | null | null |
client.py
|
junpengxu/thunder
|
a7cf4ed4bac0ade4aac9f14dc66f74949f78a52f
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# @Time : 2021/7/6 8:19 下午
# @Author : xu.junpeng
| 19.5
| 29
| 0.512821
| 13
| 78
| 3.076923
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169492
| 0.24359
| 78
| 3
| 30
| 26
| 0.508475
| 0.910256
| 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
|
b45cd0cbddc8d708f12e4d74c07b457852f60b9e
| 288
|
py
|
Python
|
airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/__init__.py
|
rajatariya21/airbyte
|
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
|
[
"MIT"
] | null | null | null |
airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/__init__.py
|
rajatariya21/airbyte
|
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
|
[
"MIT"
] | null | null | null |
airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/__init__.py
|
rajatariya21/airbyte
|
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
|
[
"MIT"
] | null | null | null |
from .test_core import TestBasicRead, TestConnection, TestDiscovery, TestSpec
from .test_full_refresh import TestFullRefresh
from .test_incremental import TestIncremental
__all__ = ["TestSpec", "TestBasicRead", "TestConnection", "TestDiscovery", "TestFullRefresh", "TestIncremental"]
| 32
| 112
| 0.815972
| 26
| 288
| 8.730769
| 0.538462
| 0.105727
| 0.352423
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09375
| 288
| 8
| 113
| 36
| 0.869732
| 0
| 0
| 0
| 0
| 0
| 0.273684
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
|
b45d52863c7a1d2db23e5ed4a31a92ec458bf9d2
| 130
|
py
|
Python
|
CybORG/CybORG/Shared/__init__.py
|
rafvasq/cage-challenge-1
|
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
|
[
"MIT"
] | 18
|
2021-08-20T15:07:55.000Z
|
2022-03-11T12:05:15.000Z
|
CybORG/CybORG/Shared/__init__.py
|
rafvasq/cage-challenge-1
|
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
|
[
"MIT"
] | 7
|
2021-11-09T06:46:58.000Z
|
2022-03-31T12:35:06.000Z
|
CybORG/CybORG/Shared/__init__.py
|
rafvasq/cage-challenge-1
|
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
|
[
"MIT"
] | 13
|
2021-08-17T00:26:31.000Z
|
2022-03-29T20:06:45.000Z
|
from .Logger import CybORGLogger
from .Observation import Observation
from .Scenario import Scenario
from .Results import Results
| 26
| 36
| 0.846154
| 16
| 130
| 6.875
| 0.4375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123077
| 130
| 4
| 37
| 32.5
| 0.964912
| 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
|
b47e88e9dccc32fcc1574dfa2fa9c58c85e026da
| 4,892
|
py
|
Python
|
tests/expect_exception_test.py
|
danielrozenberg/expect-exception
|
f9193d88a7bdc1f74e6faa95b935387638e42cdd
|
[
"0BSD"
] | 1
|
2020-08-13T10:07:46.000Z
|
2020-08-13T10:07:46.000Z
|
tests/expect_exception_test.py
|
danielrozenberg/expect-exception
|
f9193d88a7bdc1f74e6faa95b935387638e42cdd
|
[
"0BSD"
] | null | null | null |
tests/expect_exception_test.py
|
danielrozenberg/expect-exception
|
f9193d88a7bdc1f74e6faa95b935387638e42cdd
|
[
"0BSD"
] | null | null | null |
#!/usr/bin/env python3
"""Unit tests for expect_exception."""
import unittest
from expect_exception import *
class ExpectExceptionTest(unittest.TestCase):
"""Unit tests for expect_exception."""
def test_expected_exception(self):
with expect_exception(ZeroDivisionError) as ee:
self.assertEqual(Status.PENDING, ee.status)
return 1 / 0
self.assertEqual(Status.EXPECTED_EXCEPTION_RAISED, ee.status)
self.assertIsInstance(ee.exception, ZeroDivisionError)
def test_expected_multiple_exception(self):
with expect_exception(IndexError, ZeroDivisionError) as ee:
return 1 / 0
self.assertEqual(Status.EXPECTED_EXCEPTION_RAISED, ee.status)
self.assertIsInstance(ee.exception, ZeroDivisionError)
def test_expected_parent_exception(self):
with expect_exception(ArithmeticError) as ee:
return 1 / 0
self.assertEqual(Status.EXPECTED_EXCEPTION_RAISED, ee.status)
self.assertIsInstance(ee.exception, ZeroDivisionError)
def test_fail_on_no_exception_types(self):
with self.assertRaisesRegex(ValueError, 'At least one'):
with expect_exception():
pass
def test_fail_on_non_exception_type(self):
with self.assertRaisesRegex(TypeError, 'must be sub-type of BaseException'):
with expect_exception(tuple): # type: ignore
pass
def test_fail_on_none_exception_type(self):
with self.assertRaisesRegex(TypeError, 'must be sub-type of BaseException'):
with expect_exception(None): # type: ignore
pass
def test_fail_on_exception_instance(self):
with self.assertRaisesRegex(TypeError, 'must be sub-type of BaseException'):
with expect_exception(ZeroDivisionError()): # type: ignore
pass
def test_unexpected_exception(self):
with self.assertRaises(ExceptionNotRaisedError) as enre:
with expect_exception(ZeroDivisionError) as ee:
numbers = [0, 7, 42]
numbers[3] += 1
self.assertEqual(Status.UNEXPECTED_EXCEPTION_RAISED, enre.exception.status)
self.assertEqual(Status.UNEXPECTED_EXCEPTION_RAISED, ee.status)
self.assertIs(enre.exception.exception, ee.exception)
self.assertIsInstance(ee.exception, IndexError)
def test_unexpected_execution_completed(self):
with self.assertRaises(ExceptionNotRaisedError) as enre:
with expect_exception(ZeroDivisionError) as ee:
pass
self.assertEqual(Status.UNEXPECTED_EXECUTION_COMPLETED,
enre.exception.status)
self.assertEqual(Status.UNEXPECTED_EXECUTION_COMPLETED, ee.status)
self.assertIsNone(ee.exception)
def test_unwrapped_expected_exception(self):
with expect_exception(ZeroDivisionError,
wrap_unexpected_exception=False) as ee:
return 1 / 0
self.assertEqual(Status.EXPECTED_EXCEPTION_RAISED, ee.status)
self.assertIsInstance(ee.exception, ZeroDivisionError)
def test_unwrapped_unexpected_exception(self):
with self.assertRaises(IndexError) as ie:
with expect_exception(ZeroDivisionError,
wrap_unexpected_exception=False) as ee:
numbers = [0, 7, 42]
numbers[3] += 1
self.assertEqual(Status.UNEXPECTED_EXCEPTION_RAISED, ee.status)
self.assertIs(ie.exception, ee.exception)
self.assertIsInstance(ee.exception, IndexError)
def test_unwrapped_unexpected_execution_completed(self):
with self.assertRaises(ExceptionNotRaisedError):
with expect_exception(ZeroDivisionError,
wrap_unexpected_exception=False) as ee:
pass
self.assertEqual(Status.UNEXPECTED_EXECUTION_COMPLETED, ee.status)
self.assertIsNone(ee.exception)
def test_decorator_expected_exception(self): # pylint: disable=no-self-use
@expect_exception(ZeroDivisionError)
def divide_by_zero():
return 1 / 0
divide_by_zero()
def test_decorator_unexpected_exception(self):
@expect_exception(IndexError)
def divide_by_zero():
return 1 / 0
with self.assertRaises(ExceptionNotRaisedError) as enre:
divide_by_zero()
self.assertEqual(Status.UNEXPECTED_EXCEPTION_RAISED, enre.exception.status)
self.assertIsInstance(enre.exception.exception, ZeroDivisionError)
def test_decorator_unwrapped_unexpected_exception(self):
@expect_exception(IndexError, wrap_unexpected_exception=False)
def divide_by_zero():
return 1 / 0
with self.assertRaises(ZeroDivisionError):
divide_by_zero()
def test_decorator_unexpected_execution_completed(self):
@expect_exception(ZeroDivisionError)
def divide_by_one():
return 1 / 1
with self.assertRaises(ExceptionNotRaisedError) as enre:
divide_by_one()
self.assertEqual(Status.UNEXPECTED_EXECUTION_COMPLETED,
enre.exception.status)
self.assertIsNone(enre.exception.exception)
if __name__ == '__main__':
unittest.main()
| 33.054054
| 80
| 0.739575
| 551
| 4,892
| 6.328494
| 0.150635
| 0.081732
| 0.078291
| 0.071121
| 0.809865
| 0.765128
| 0.700029
| 0.633783
| 0.577287
| 0.574993
| 0
| 0.007219
| 0.178863
| 4,892
| 147
| 81
| 33.278912
| 0.860841
| 0.03148
| 0
| 0.605769
| 0
| 0
| 0.025196
| 0
| 0
| 0
| 0
| 0
| 0.346154
| 1
| 0.192308
| false
| 0.057692
| 0.019231
| 0.038462
| 0.298077
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
81f0afbaa04c68f1a190a957730b3142308283f5
| 236
|
py
|
Python
|
my_wallet/api/permissions.py
|
Bounty1993/my-wallet
|
c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa
|
[
"MIT"
] | null | null | null |
my_wallet/api/permissions.py
|
Bounty1993/my-wallet
|
c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa
|
[
"MIT"
] | 8
|
2020-06-05T19:52:06.000Z
|
2022-03-11T23:40:19.000Z
|
my_wallet/api/permissions.py
|
Bounty1993/my-wallet
|
c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa
|
[
"MIT"
] | null | null | null |
from rest_framework.permissions import BasePermission
class IsOwnerOrReadOnly(BasePermission):
message = 'You must be the owner'
def has_object_permission(self, request, view, obj):
return obj.profile == request.user
| 26.222222
| 56
| 0.754237
| 28
| 236
| 6.25
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173729
| 236
| 8
| 57
| 29.5
| 0.897436
| 0
| 0
| 0
| 0
| 0
| 0.088983
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 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
| 0
| 1
| 1
| 0
|
0
| 4
|
c30e0b67c5bded5f1b7e91c071d84fff8344bcdd
| 94
|
py
|
Python
|
manage_app/apps.py
|
radekska/django-network-controller
|
6bcb847cbe1efa7dee118974de5e49b4f411e5da
|
[
"MIT"
] | null | null | null |
manage_app/apps.py
|
radekska/django-network-controller
|
6bcb847cbe1efa7dee118974de5e49b4f411e5da
|
[
"MIT"
] | null | null | null |
manage_app/apps.py
|
radekska/django-network-controller
|
6bcb847cbe1efa7dee118974de5e49b4f411e5da
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class ManageAppConfig(AppConfig):
name = 'manage_app'
| 15.666667
| 33
| 0.765957
| 11
| 94
| 6.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159574
| 94
| 5
| 34
| 18.8
| 0.898734
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 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
|
c31699bf8ab37fc452d8b3c2747bbc649901e5ca
| 91
|
py
|
Python
|
run.py
|
c4fcm/our-cup
|
c2f8cb53acd1855e994e8d762c576b6647be06f5
|
[
"MIT"
] | 1
|
2019-03-07T10:40:02.000Z
|
2019-03-07T10:40:02.000Z
|
run.py
|
mitmedialab/our-cup
|
c2f8cb53acd1855e994e8d762c576b6647be06f5
|
[
"MIT"
] | 4
|
2018-06-15T13:20:35.000Z
|
2019-06-11T01:00:42.000Z
|
run.py
|
mitmedialab/our-cup
|
c2f8cb53acd1855e994e8d762c576b6647be06f5
|
[
"MIT"
] | null | null | null |
import ourcup
if __name__ == "__main__":
ourcup.app.debug = True
ourcup.app.run()
| 15.166667
| 27
| 0.659341
| 12
| 91
| 4.333333
| 0.75
| 0.346154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.208791
| 91
| 5
| 28
| 18.2
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c317b5d3a5782741595187c081a6b8fdaa0073f7
| 141
|
py
|
Python
|
sutra-copyist/my-programing-training/url/dom_parser.py
|
pyohei/test
|
3f12ad8519f5c5a13b1aab4509a0b44718ca8509
|
[
"MIT"
] | null | null | null |
sutra-copyist/my-programing-training/url/dom_parser.py
|
pyohei/test
|
3f12ad8519f5c5a13b1aab4509a0b44718ca8509
|
[
"MIT"
] | 4
|
2020-03-06T03:04:40.000Z
|
2021-05-16T12:57:16.000Z
|
sutra-copyist/my-programing-training/url/dom_parser.py
|
pyohei/my-sandbox
|
683af11781dae672a10eee5b5dd838d0f055fb04
|
[
"MIT"
] | null | null | null |
#!/usr/local/bin/python
#-*- coding: utf-8 -*-
from xml.dom.minidom import parse, parseString
domTest = parse("./test.xml")
print domTest
| 15.666667
| 46
| 0.687943
| 20
| 141
| 4.85
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00813
| 0.12766
| 141
| 8
| 47
| 17.625
| 0.780488
| 0.304965
| 0
| 0
| 0
| 0
| 0.104167
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c325cc1dcdb3a0361228ebb4db08ffba4e3c8476
| 68
|
py
|
Python
|
tests/example/nspkg/__init__.py
|
scbedd/sphinx-docfx-yaml
|
1330a6621ccda57c016545e36968f07aef07e4db
|
[
"Apache-2.0"
] | 8
|
2018-07-28T14:18:04.000Z
|
2021-10-15T08:21:25.000Z
|
tests/example/nspkg/__init__.py
|
scbedd/sphinx-docfx-yaml
|
1330a6621ccda57c016545e36968f07aef07e4db
|
[
"Apache-2.0"
] | 12
|
2018-07-24T09:03:13.000Z
|
2021-05-04T18:18:05.000Z
|
tests/example/nspkg/__init__.py
|
scbedd/sphinx-docfx-yaml
|
1330a6621ccda57c016545e36968f07aef07e4db
|
[
"Apache-2.0"
] | 11
|
2017-10-30T09:31:32.000Z
|
2021-03-11T23:20:12.000Z
|
# coding: utf-8
""" Package used for namespace package test.
"""
| 17
| 45
| 0.647059
| 9
| 68
| 4.888889
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018519
| 0.205882
| 68
| 4
| 46
| 17
| 0.796296
| 0.808824
| 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
|
c3298cb9dc36d55928cd1c7661274020a9ea6426
| 291
|
py
|
Python
|
8kyu/switch_case_bug_fixing_6.py
|
nhsz/codewars
|
82703959e910254d6feff4162f78c6dbd7a1c3ed
|
[
"MIT"
] | 1
|
2018-12-02T23:04:38.000Z
|
2018-12-02T23:04:38.000Z
|
8kyu/switch_case_bug_fixing_6.py
|
nhsz/codewars
|
82703959e910254d6feff4162f78c6dbd7a1c3ed
|
[
"MIT"
] | null | null | null |
8kyu/switch_case_bug_fixing_6.py
|
nhsz/codewars
|
82703959e910254d6feff4162f78c6dbd7a1c3ed
|
[
"MIT"
] | null | null | null |
# http://www.codewars.com/kata/55c933c115a8c426ac000082/
def eval_object(v):
return {"+": v['a'] + v['b'],
"-": v['a'] - v['b'],
"/": v['a'] / v['b'],
"*": v['a'] * v['b'],
"%": v['a'] % v['b'],
"**": v['a'] ** v['b']}.get(v.get('operation', 1))
| 29.1
| 58
| 0.371134
| 40
| 291
| 2.675
| 0.4
| 0.11215
| 0.168224
| 0.224299
| 0.224299
| 0.224299
| 0.224299
| 0.224299
| 0.224299
| 0.224299
| 0
| 0.087963
| 0.257732
| 291
| 9
| 59
| 32.333333
| 0.407407
| 0.185567
| 0
| 0
| 0
| 0
| 0.119149
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0.142857
| 0.285714
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 1
| 0
| 0
|
0
| 4
|
c334fa562bae81a1236e20018e8e471791e39bb0
| 320
|
py
|
Python
|
CircularLinkedList.py
|
VikramadityaJakkula/one-week-python
|
201b30e97f9d653bbd75256f6ec34bcf07b77a5c
|
[
"MIT"
] | null | null | null |
CircularLinkedList.py
|
VikramadityaJakkula/one-week-python
|
201b30e97f9d653bbd75256f6ec34bcf07b77a5c
|
[
"MIT"
] | null | null | null |
CircularLinkedList.py
|
VikramadityaJakkula/one-week-python
|
201b30e97f9d653bbd75256f6ec34bcf07b77a5c
|
[
"MIT"
] | null | null | null |
# Circular linked list is a linked list where all nodes
# are connected to form a circle.
# There is no NULL at the end.
# A circular linked list can be a
# singly circular linked list or doubly circular linked list.
from exceptions import Empty
class CircularLinkedList:
class Node:
| 21.333333
| 62
| 0.69375
| 47
| 320
| 4.723404
| 0.659574
| 0.225225
| 0.324324
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.275
| 320
| 14
| 63
| 22.857143
| 0.956897
| 0.65625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c33bdc0b03475e7a7077e187024522db3fb66fd3
| 1,016
|
py
|
Python
|
src/haydi/__init__.py
|
Kobzol/haydi
|
4b49230d33ce02edff207b49a5db4ef6e605200c
|
[
"MIT"
] | 5
|
2017-08-09T17:12:31.000Z
|
2020-06-14T13:13:05.000Z
|
src/haydi/__init__.py
|
Kobzol/haydi
|
4b49230d33ce02edff207b49a5db4ef6e605200c
|
[
"MIT"
] | 13
|
2017-01-31T15:42:13.000Z
|
2017-12-04T11:24:26.000Z
|
src/haydi/__init__.py
|
Kobzol/haydi
|
4b49230d33ce02edff207b49a5db4ef6e605200c
|
[
"MIT"
] | 2
|
2017-08-21T09:49:10.000Z
|
2021-02-28T13:51:05.000Z
|
# Basic types
from .base.basictypes import Map, Set, Atom # noqa
# Domains
from .base.domain import Domain, StepSkip # noqa
from .base.product import Product, NamedProduct # noqa
from .base.sequence import Sequences # noqa
from .base.join import Join # noqa
from .base.mapping import Mappings # noqa
from .base.subsets import Subsets # noqa
from .base.permutations import Permutations # noqa
# Elementary domains
from .base.boolean import Boolean # noqa
from .base.nonedomain import NoneDomain # noqa
from .base.uset import USet # noqa
from .base.range import Range # noqa
from .base.values import Values, CnfValues # noqa
# Others
from .base.system import System # noqa
from .base.lts import DLTS, DLTSProduct, dlts_from_dict # noqa
# Pipeline
from .base.pipeline import Pipeline # noqa
from .base.runtime.distributedcontext import DistributedContext # noqa
# Canonical forms
from .base.cnf import canonize, expand, is_isomorphic, compare, sort # noqa
# Algorithms
import algorithms # noqa
| 30.787879
| 76
| 0.764764
| 136
| 1,016
| 5.691176
| 0.352941
| 0.186047
| 0.186047
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162402
| 1,016
| 32
| 77
| 31.75
| 0.909518
| 0.173228
| 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
|
c340ddcddfe08263865700a2eb22cf348b0cd405
| 298
|
py
|
Python
|
web/src/project/controllers/front_end.py
|
kmacdough/hack-harvard
|
c78a66c0ad7e35aa2bee6f730103c61480b8c447
|
[
"MIT"
] | null | null | null |
web/src/project/controllers/front_end.py
|
kmacdough/hack-harvard
|
c78a66c0ad7e35aa2bee6f730103c61480b8c447
|
[
"MIT"
] | null | null | null |
web/src/project/controllers/front_end.py
|
kmacdough/hack-harvard
|
c78a66c0ad7e35aa2bee6f730103c61480b8c447
|
[
"MIT"
] | null | null | null |
from flask import render_template, jsonify
from .. import app
@app.route('/startgame', methods=['GET'])
def hello():
# jinja2 templates
return render_template('hello.html', name="noname")
@app.route('/console', methods=['GET'])
def console():
return render_template('console.html')
| 21.285714
| 55
| 0.694631
| 37
| 298
| 5.513514
| 0.540541
| 0.205882
| 0.127451
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003891
| 0.137584
| 298
| 14
| 56
| 21.285714
| 0.789883
| 0.053691
| 0
| 0
| 0
| 0
| 0.185053
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.25
| 0.25
| 0.75
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
c358f2a775eceea5cc3571bae9c53f6e7159ce4d
| 328
|
py
|
Python
|
cli/setup.py
|
gve-vse-tim/brahma-project-asic
|
c13b0638b966f9dd66bbdca5ba6cfa2b8a5f1dcf
|
[
"BSD-Source-Code"
] | 2
|
2020-07-23T20:29:25.000Z
|
2020-09-02T13:13:44.000Z
|
cli/setup.py
|
gve-vse-tim/brahma-project-asic
|
c13b0638b966f9dd66bbdca5ba6cfa2b8a5f1dcf
|
[
"BSD-Source-Code"
] | 6
|
2021-03-10T04:18:15.000Z
|
2022-02-26T22:19:00.000Z
|
cli/setup.py
|
gve-vse-tim/brahma-project-asic
|
c13b0638b966f9dd66bbdca5ba6cfa2b8a5f1dcf
|
[
"BSD-Source-Code"
] | 1
|
2020-08-18T15:59:37.000Z
|
2020-08-18T15:59:37.000Z
|
from setuptools import setup, find_packages
setup(
name='brahma_cli',
version='0.1.0',
packages=find_packages(include=['brahma_cli', 'brahma_cli.*']),
install_requires=[
'requests',
'argparse',
'shortuuid',
'six',
],
entry_points={
'console_scripts': ['brahma-cli=brahma_cli.brahma:main']
}
)
| 19.294118
| 65
| 0.655488
| 38
| 328
| 5.421053
| 0.631579
| 0.218447
| 0.218447
| 0.174757
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011029
| 0.170732
| 328
| 16
| 66
| 20.5
| 0.746324
| 0
| 0
| 0
| 0
| 0
| 0.344512
| 0.10061
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.066667
| 0
| 0.066667
| 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
|
c359854d1e41a37fb398f8017544d9e788d786ef
| 2,537
|
py
|
Python
|
tests/test_phones.py
|
ELagunova/PyTraining_Task1
|
bba9d1166a603b42ecb55e8a3fbadf955f70e87b
|
[
"Apache-2.0"
] | null | null | null |
tests/test_phones.py
|
ELagunova/PyTraining_Task1
|
bba9d1166a603b42ecb55e8a3fbadf955f70e87b
|
[
"Apache-2.0"
] | null | null | null |
tests/test_phones.py
|
ELagunova/PyTraining_Task1
|
bba9d1166a603b42ecb55e8a3fbadf955f70e87b
|
[
"Apache-2.0"
] | null | null | null |
import allure
from model.contact import Contact
import re
def test_phones_on_home_page(app):
with allure.step('Check precondition'):
if app.contact.count() == 0:
app.contact.create(Contact(first_name="Adam", last_name="Collins",
address="781 Green Ave, Houston, TX 94007", homephone="213243", workphone="5674321",
mobile="+7165438555", secondaryphone="78212342", email="adamcol@gmail.com",
bday="19", bmonth="May", byear="1998"))
with allure.step('Given information about contacts phone from home page'):
contact_from_home_page = app.contact.get_contact_list()[0]
with allure.step('Given information about contacts phone from edit page'):
contact_from_edit_page = app.contact.get_contact_from_edit_page(0)
with allure.step('Check that information from home page is equal to information from edit page'):
assert contact_from_home_page.all_phones_from_home_page == merge_phones_like_on_home_page(contact_from_edit_page)
def test_phones_on_contact_view_page(app):
with allure.step('Check precondition'):
if app.contact.count() == 0:
app.contact.create(Contact(first_name="Adam", last_name="Collins",
address="781 Green Ave, Houston, TX 94007", homephone="213243", workphone="5674321",
mobile="+7165438555", secondaryphone="78212342", email="adamcol@gmail.com",
bday="19", bmonth="May", byear="1998"))
with allure.step('Given information about contacts phone from contact view page'):
contact_from_view_page = app.contact.get_contact_from_view_page(0)
with allure.step('Given information about contacts phone from edit page'):
contact_from_edit_page = app.contact.get_contact_from_edit_page(0)
with allure.step('Check that information from contact view page is equal to information from edit page'):
assert merge_phones_like_on_home_page(contact_from_view_page) == merge_phones_like_on_home_page(contact_from_edit_page)
def clear(s):
return re.sub("[() -]", "", s)
def merge_phones_like_on_home_page(contact):
return "\n".join(filter(lambda x: x != '',
map(lambda x: clear(x),
filter(lambda x: x is not None,
[contact.homephone, contact.mobile, contact.workphone, contact.secondaryphone]))))
| 55.152174
| 127
| 0.651557
| 321
| 2,537
| 4.915888
| 0.249221
| 0.076679
| 0.076046
| 0.072243
| 0.787706
| 0.755387
| 0.737643
| 0.717364
| 0.69455
| 0.641318
| 0
| 0.050104
| 0.244777
| 2,537
| 45
| 128
| 56.377778
| 0.773486
| 0
| 0
| 0.444444
| 0
| 0
| 0.246748
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 1
| 0.111111
| false
| 0
| 0.083333
| 0.055556
| 0.25
| 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
|
c375e752884d450c8606a47ddee9fd629bf4f3c3
| 342
|
py
|
Python
|
lumen/showcase/serializers.py
|
kowabunga314/lumen
|
df2f87ca3c7fda19eafe99e8e59b3376c25cfd80
|
[
"MIT"
] | null | null | null |
lumen/showcase/serializers.py
|
kowabunga314/lumen
|
df2f87ca3c7fda19eafe99e8e59b3376c25cfd80
|
[
"MIT"
] | null | null | null |
lumen/showcase/serializers.py
|
kowabunga314/lumen
|
df2f87ca3c7fda19eafe99e8e59b3376c25cfd80
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from showcase.models import Photo, Series
class SeriesSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Series
fields = '__all__'
class PhotoSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Photo
fields = '__all__'
| 24.428571
| 63
| 0.730994
| 31
| 342
| 7.774194
| 0.548387
| 0.307054
| 0.348548
| 0.381743
| 0.423237
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 342
| 14
| 64
| 24.428571
| 0.892593
| 0
| 0
| 0.4
| 0
| 0
| 0.040816
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.6
| 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
|
c37a2cf9cc28363fe7db87e685e7992d367cf9bb
| 508
|
py
|
Python
|
powerline/renderers/bash_prompt.py
|
kruton/powerline
|
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
|
[
"MIT"
] | 19
|
2015-09-01T20:49:16.000Z
|
2022-01-08T22:13:23.000Z
|
powerline/renderers/bash_prompt.py
|
kruton/powerline
|
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
|
[
"MIT"
] | null | null | null |
powerline/renderers/bash_prompt.py
|
kruton/powerline
|
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
|
[
"MIT"
] | 6
|
2019-04-25T03:42:35.000Z
|
2020-06-05T15:25:23.000Z
|
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import, unicode_literals
from powerline.renderers.shell import ShellRenderer
class BashPromptRenderer(ShellRenderer):
'''Powerline bash prompt segment renderer.'''
escape_hl_start = '\['
escape_hl_end = '\]'
character_translations = ShellRenderer.character_translations.copy()
character_translations[ord('$')] = '\\$'
character_translations[ord('`')] = '\\`'
character_translations[ord('\\')] = '\\\\'
renderer = BashPromptRenderer
| 25.4
| 69
| 0.748031
| 49
| 508
| 7.44898
| 0.591837
| 0.287671
| 0.19726
| 0.180822
| 0.19726
| 0.19726
| 0
| 0
| 0
| 0
| 0
| 0.002198
| 0.104331
| 508
| 19
| 70
| 26.736842
| 0.8
| 0.133858
| 0
| 0
| 0
| 0
| 0.041475
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.6
| 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
|
c37d598e59e9dd9f85a24a6c02aa29dd9bd62ef5
| 1,222
|
py
|
Python
|
QualityBreeze/Test.py
|
DweebsUnited/CodeMonkey
|
3b27e9c189c897b06002498aea639bb44671848a
|
[
"BSD-3-Clause"
] | null | null | null |
QualityBreeze/Test.py
|
DweebsUnited/CodeMonkey
|
3b27e9c189c897b06002498aea639bb44671848a
|
[
"BSD-3-Clause"
] | 7
|
2016-06-03T05:41:27.000Z
|
2018-08-07T07:09:40.000Z
|
QualityBreeze/Test.py
|
DweebsUnited/CodeMonkey
|
3b27e9c189c897b06002498aea639bb44671848a
|
[
"BSD-3-Clause"
] | null | null | null |
import Grid
g = Grid.Grid( )
# | 9 2 | 1
# 2 4 | 1 6 | 7 8
# | | 6 2 3
# ---------------------
# | 3 2 1 | 4
# | |
# 7 | 6 5 8 |
# ---------------------
# 4 3 6 | |
# 8 7 | 5 9 | 1 4
# 1 | 4 3 |
g.set( 0, 3, 9 )
g.set( 0, 5, 2 )
g.set( 0, 8, 1 )
g.set( 1, 0, 2 )
g.set( 1, 1, 4 )
g.set( 1, 3, 1 )
g.set( 1, 5, 6 )
g.set( 1, 6, 7 )
g.set( 1, 8, 8 )
g.set( 2, 6, 6 )
g.set( 2, 7, 2 )
g.set( 2, 8, 3 )
g.set( 3, 3, 3 )
g.set( 3, 4, 2 )
g.set( 3, 5, 1 )
g.set( 3, 7, 4 )
g.set( 5, 1, 7 )
g.set( 5, 3, 6 )
g.set( 5, 4, 5 )
g.set( 5, 5, 8 )
g.set( 6, 0, 4 )
g.set( 6, 1, 3 )
g.set( 6, 2, 6 )
g.set( 7, 0, 8 )
g.set( 7, 2, 7 )
g.set( 7, 3, 5 )
g.set( 7, 5, 9 )
g.set( 7, 7, 1 )
g.set( 7, 8, 4 )
g.set( 8, 0, 1 )
g.set( 8, 3, 4 )
g.set( 8, 5, 3 )
# Timeout 100 steps
s = 0
while not g.isSolved( ) and s < 100:
# for idx, r in enumerate( g.buildHints( ) ):
# print str( idx ) + " --> "
# for jdx, c in enumerate( r ):
# print str( jdx ) + ": ", repr( c )
# print
g.step( )
s += 1
print "Solved in", s, "steps!"
for i in range( 9 ):
for j in range( 9 ):
print g.get( i, j ),
print
| 16.078947
| 49
| 0.378069
| 256
| 1,222
| 1.804688
| 0.152344
| 0.277056
| 0.064935
| 0.025974
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181579
| 0.378069
| 1,222
| 75
| 50
| 16.293333
| 0.426316
| 0.318331
| 0
| 0
| 0
| 0
| 0.018541
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.023256
| null | null | 0.069767
| 0
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5ee7bf373dccd11c8e37aaea07573624a7c563f3
| 301
|
py
|
Python
|
flow/core/kernel/lane_area_detectors/__init__.py
|
vallout/flow
|
59871cab252e225fab2258dbfa53714a48d9e9ab
|
[
"MIT"
] | null | null | null |
flow/core/kernel/lane_area_detectors/__init__.py
|
vallout/flow
|
59871cab252e225fab2258dbfa53714a48d9e9ab
|
[
"MIT"
] | null | null | null |
flow/core/kernel/lane_area_detectors/__init__.py
|
vallout/flow
|
59871cab252e225fab2258dbfa53714a48d9e9ab
|
[
"MIT"
] | null | null | null |
"""Empty init file to ensure documentation for lane area detectors is created."""
from flow.core.kernel.lane_area_detectors.base import KernelLaneAreaDetector
from flow.core.kernel.lane_area_detectors.traci import TraCILaneAreaDetector
__all__ = ["KernelLaneAreaDetector", "TraCILaneAreaDetector"]
| 37.625
| 81
| 0.833887
| 35
| 301
| 6.942857
| 0.628571
| 0.098765
| 0.209877
| 0.148148
| 0.288066
| 0.288066
| 0.288066
| 0
| 0
| 0
| 0
| 0
| 0.089701
| 301
| 7
| 82
| 43
| 0.886861
| 0.249169
| 0
| 0
| 0
| 0
| 0.195455
| 0.195455
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5efe304cdcdfc73a36f804a42d533f082290fe9b
| 89
|
py
|
Python
|
glasses/apps.py
|
AlexixRugis/GLASS_SHOP
|
9a2f8cc6b844875135733d5a5758bd61192f46ab
|
[
"MIT"
] | null | null | null |
glasses/apps.py
|
AlexixRugis/GLASS_SHOP
|
9a2f8cc6b844875135733d5a5758bd61192f46ab
|
[
"MIT"
] | null | null | null |
glasses/apps.py
|
AlexixRugis/GLASS_SHOP
|
9a2f8cc6b844875135733d5a5758bd61192f46ab
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class GlassesConfig(AppConfig):
name = 'glasses'
| 14.833333
| 33
| 0.752809
| 10
| 89
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 5
| 34
| 17.8
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 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
|
5eff865536fc35bf4668f6e2c6dd319fac5b961a
| 66
|
py
|
Python
|
abides-markets/abides_markets/agents/market_makers/__init__.py
|
jpmorganchase/ABIDES-jpmc-gym
|
198736a1b1316190072356c980412569579f15a6
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1
|
2021-09-23T13:17:26.000Z
|
2021-09-23T13:17:26.000Z
|
abides-markets/abides_markets/agents/market_makers/__init__.py
|
jpmorganchase/ABIDES-gym
|
198736a1b1316190072356c980412569579f15a6
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null |
abides-markets/abides_markets/agents/market_makers/__init__.py
|
jpmorganchase/ABIDES-gym
|
198736a1b1316190072356c980412569579f15a6
|
[
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null |
from .adaptive_market_maker_agent import AdaptiveMarketMakerAgent
| 33
| 65
| 0.924242
| 7
| 66
| 8.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.060606
| 66
| 1
| 66
| 66
| 0.935484
| 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
|
6f2b72155fe12e654d46cb31e8be8bb2bf784522
| 65
|
py
|
Python
|
gdc_client/exceptions.py
|
hepoo6/gdc-client
|
4453c6412aca55bcc458d710de148a4cabf95cd6
|
[
"Apache-2.0"
] | null | null | null |
gdc_client/exceptions.py
|
hepoo6/gdc-client
|
4453c6412aca55bcc458d710de148a4cabf95cd6
|
[
"Apache-2.0"
] | null | null | null |
gdc_client/exceptions.py
|
hepoo6/gdc-client
|
4453c6412aca55bcc458d710de148a4cabf95cd6
|
[
"Apache-2.0"
] | null | null | null |
class ClientError(Exception):
""" Base client error.
"""
| 16.25
| 29
| 0.615385
| 6
| 65
| 6.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 65
| 3
| 30
| 21.666667
| 0.8
| 0.276923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 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
| 0
| 0
| 1
| 0
|
0
| 4
|
6f392dff219e6fd5af428a608cc3b238f985cc20
| 242
|
py
|
Python
|
ingestion/src/airflow_provider_openmetadata/__init__.py
|
rongfengliang/OpenMetadata
|
f91bcc03f63cd193d40a21ce25a398cddb389fa4
|
[
"Apache-2.0"
] | null | null | null |
ingestion/src/airflow_provider_openmetadata/__init__.py
|
rongfengliang/OpenMetadata
|
f91bcc03f63cd193d40a21ce25a398cddb389fa4
|
[
"Apache-2.0"
] | null | null | null |
ingestion/src/airflow_provider_openmetadata/__init__.py
|
rongfengliang/OpenMetadata
|
f91bcc03f63cd193d40a21ce25a398cddb389fa4
|
[
"Apache-2.0"
] | null | null | null |
import metadata
def get_provider_config():
return {
"name": "OpenMetadata",
"description": "OpenMetadata <https://open-metadata.org/>",
"package-name": "openmetadata-ingestion",
"version": "0.0.1",
}
| 22
| 67
| 0.590909
| 23
| 242
| 6.130435
| 0.782609
| 0.22695
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016304
| 0.239669
| 242
| 10
| 68
| 24.2
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.471074
| 0.090909
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| true
| 0
| 0.125
| 0.125
| 0.375
| 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
| 0
| 1
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
6f4ae35f421c1ce49f5ec991e9127406fb8821ad
| 447
|
py
|
Python
|
0_Companies/IBM.py
|
allenalvin333/Hackerrank_Interview
|
b40981ef55d04fb14d81a6e1c9ade1878f59394d
|
[
"MIT"
] | 2
|
2021-11-21T07:59:17.000Z
|
2021-11-25T13:41:50.000Z
|
0_Companies/IBM.py
|
allenalvin333/Hackerrank_Interview
|
b40981ef55d04fb14d81a6e1c9ade1878f59394d
|
[
"MIT"
] | null | null | null |
0_Companies/IBM.py
|
allenalvin333/Hackerrank_Interview
|
b40981ef55d04fb14d81a6e1c9ade1878f59394d
|
[
"MIT"
] | 1
|
2021-09-20T16:20:07.000Z
|
2021-09-20T16:20:07.000Z
|
# IBM Preliminary Test
direction,floor,floor_requests,z = input(),int(input()),sorted(list(map(int,input().split())),reverse=True),0
if(floor_requests[-1]>=0 and floor_requests[0]<=15 and (direction=="UP" or direction=="DN")):
while(floor_requests[z]>floor): z+=1
print(*(floor_requests[:z][::-1]+floor_requests[z:]),sep="\n") if(direction=="UP") else print(*(floor_requests[z:]+floor_requests[:z][::-1]),sep="\n")
else: print("Invalid")
| 63.857143
| 154
| 0.677852
| 70
| 447
| 4.214286
| 0.414286
| 0.352542
| 0.284746
| 0.128814
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021635
| 0.069351
| 447
| 7
| 155
| 63.857143
| 0.6875
| 0.044743
| 0
| 0
| 0
| 0
| 0.039906
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.4
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4891b62b57ab8471470edc6735a5ce560f5c3afe
| 2,674
|
py
|
Python
|
src/sdk/db/database_interface.py
|
jzlotek/drexel-tms-parser
|
9d5582a441d490a8099252994f9e41dca36acf81
|
[
"Apache-2.0"
] | null | null | null |
src/sdk/db/database_interface.py
|
jzlotek/drexel-tms-parser
|
9d5582a441d490a8099252994f9e41dca36acf81
|
[
"Apache-2.0"
] | 6
|
2021-03-09T00:34:54.000Z
|
2022-02-17T19:35:47.000Z
|
src/sdk/db/database_interface.py
|
jzlotek/drexel-tms-parser
|
9d5582a441d490a8099252994f9e41dca36acf81
|
[
"Apache-2.0"
] | null | null | null |
import abc
class Database(abc.ABC):
@abc.abstractmethod
def __init__(self):
pass
# DB query building methods
@abc.abstractmethod
def year(self, year, query):
pass
@abc.abstractmethod
def section(self, section, query):
pass
@abc.abstractmethod
def crn(self, crn, query):
pass
@abc.abstractmethod
def meeting(self, meeting, type_, query):
pass
@abc.abstractmethod
def instructor(self, instructor, query):
pass
@abc.abstractmethod
def college(self, college, query):
pass
@abc.abstractmethod
def course_number(self, cn, query):
pass
@abc.abstractmethod
def subject_code(self, sc, query):
pass
@abc.abstractmethod
def instruction_type(self, it, query):
pass
@abc.abstractmethod
def instruction_method(self, im, query):
pass
@abc.abstractmethod
def credits(self, cr, query):
pass
@abc.abstractmethod
def semester(self, semester, query):
pass
@abc.abstractmethod
def before(self, time, query):
pass
@abc.abstractmethod
def after(self, time, query):
pass
@abc.abstractmethod
def isQuarter(self, isQuarter, query):
pass
# excecute stored query
@abc.abstractmethod
def execute(self, query):
pass
@abc.abstractmethod
def get_list(self, l, query):
pass
def query_builder(self, q, query):
if q.get('sc'):
self.subject_code(q.get('sc'), query)
if q.get('semester'):
self.semester(q.get('semester'), query)
if q.get('sec'):
self.section(q.get('sec'), query)
if q.get('crn'):
self.crn(q.get('crn'), query)
if q.get('college'):
self.college(q.get('college'), query)
if q.get('in'):
self.instructor(q.get('in'), query)
if q.get('cn'):
self.course_number(q.get('cn'), query)
if q.get('im'):
self.instruction_method(q.get('im'), query)
if q.get('cr'):
self.credits(q.get('cr'), query)
if q.get('year'):
self.year(q.get('year'), query)
if q.get('days'):
self.meeting(q.get('days'), 'days', query)
if q.get('before'):
self.before(q.get('before'), query)
if q.get('after'):
self.after(q.get('after'), query)
if q.get('isQuarter'):
self.isQuarter(q.get('isQuarter'), query)
def clear_query(self):
self.query = dict()
@abc.abstractmethod
def get_query(self):
pass
| 23.051724
| 55
| 0.557218
| 324
| 2,674
| 4.549383
| 0.157407
| 0.075984
| 0.257802
| 0.264586
| 0.320896
| 0.104478
| 0.050204
| 0
| 0
| 0
| 0
| 0
| 0.308153
| 2,674
| 115
| 56
| 23.252174
| 0.796757
| 0.017577
| 0
| 0.422222
| 0
| 0
| 0.046494
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.233333
| false
| 0.211111
| 0.011111
| 0
| 0.255556
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
48af3ec38a831e0a067a6b688e19c4c5bc77e7be
| 844
|
py
|
Python
|
actions/assets/json/clean.py
|
ejson03/Medical-Chatbot
|
4810b2e98042884a7837a6a401e43be1a1f909b4
|
[
"MIT"
] | 1
|
2021-01-10T07:31:30.000Z
|
2021-01-10T07:31:30.000Z
|
actions/assets/json/clean.py
|
ejson03/Medical-Chatbot
|
4810b2e98042884a7837a6a401e43be1a1f909b4
|
[
"MIT"
] | null | null | null |
actions/assets/json/clean.py
|
ejson03/Medical-Chatbot
|
4810b2e98042884a7837a6a401e43be1a1f909b4
|
[
"MIT"
] | 2
|
2021-01-10T07:31:39.000Z
|
2021-01-10T08:12:26.000Z
|
import json
import random
with open('jokes.txt') as data_file:
data = json.load(data_file)
print(random.choice(data))
# new_jokes = []
# count = 0
# for joke in data:
# if joke.find("FUCK") != -1 or \
# joke.find("ass") != -1 or \
# joke.find("vagina") != -1 or \
# joke.find("pussy") != -1 or \
# joke.find("abort") != -1 or \
# joke.find("sex") != -1 or \
# joke.find("rape") != -1 or \
# joke.find("fetus") != -1 or \
# joke.find("MILF") != -1 or \
# joke.find("spit ") != -1 or \
# joke.find("feminist") != -1:
# count +=1
# else:
# new_jokes.append(joke)
# print(count, len(new_jokes))
# with open("jokes.txt", "w") as data_file:
# json.dump(new_jokes, data_file)
| 31.259259
| 44
| 0.469194
| 109
| 844
| 3.559633
| 0.357798
| 0.226804
| 0.180412
| 0.283505
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023256
| 0.337678
| 844
| 26
| 45
| 32.461538
| 0.670841
| 0.765403
| 0
| 0
| 0
| 0
| 0.061224
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0.2
| 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
|
48b9508dac9db885fcb777649b2cd9e99049ac74
| 2,331
|
py
|
Python
|
datariumdb_driver/pool.py
|
datariumdb/DatariumDB_Driver
|
e94d61787732a52006b8e9314fe7d9209f066dd8
|
[
"Apache-2.0"
] | null | null | null |
datariumdb_driver/pool.py
|
datariumdb/DatariumDB_Driver
|
e94d61787732a52006b8e9314fe7d9209f066dd8
|
[
"Apache-2.0"
] | null | null | null |
datariumdb_driver/pool.py
|
datariumdb/DatariumDB_Driver
|
e94d61787732a52006b8e9314fe7d9209f066dd8
|
[
"Apache-2.0"
] | null | null | null |
from abc import ABCMeta, abstractmethod
class AbstractPicker(metaclass=ABCMeta):
"""Abstract class for picker classes that pick connections from a pool."""
@abstractmethod
def pick(self, connections):
"""Picks a :class:`~datariumdb_driver.connection.Connection`
instance from the given list of
:class:`~datariumdb_driver.connection.Connection` instances.
Args:
connections (List): List of
:class:`~datariumdb_driver.connection.Connection` instances.
"""
pass # pragma: no cover
class RoundRobinPicker(AbstractPicker):
"""Object to pick a :class:`~datariumdb_driver.connection.Connection`
instance from a list of connections.
Attributes:
picked (str): List index of
:class:`~datariumdb_driver.connection.Connection`
instance that has been picked.
"""
def __init__(self):
"""Initializes a :class:`~datariumdb_driver.pool.RoundRobinPicker`
instance. Sets :attr:`picked` to ``-1``.
"""
self.picked = -1
def pick(self, connections):
"""Picks a :class:`~datariumdb_driver.connection.Connection`
instance from the given list of
:class:`~datariumdb_driver.connection.Connection` instances.
Args:
connections (List): List of
:class:`~datariumdb_driver.connection.Connection` instances.
"""
self.picked += 1
self.picked = self.picked % len(connections)
return connections[self.picked]
class Pool:
"""Pool of connections."""
def __init__(self, connections, picker_class=RoundRobinPicker):
"""Initializes a :class:`~datariumdb_driver.pool.Pool` instance.
Args:
connections (list): List of
:class:`~datariumdb_driver.connection.Connection` instances.
"""
self.connections = connections
self.picker = picker_class()
def get_connection(self):
"""Gets a :class:`~datariumdb_driver.connection.Connection`
instance from the pool.
Returns:
A :class:`~datariumdb_driver.connection.Connection` instance.
"""
if len(self.connections) > 1:
return self.picker.pick(self.connections)
return self.connections[0]
| 29.506329
| 78
| 0.632347
| 235
| 2,331
| 6.170213
| 0.234043
| 0.134483
| 0.188276
| 0.235172
| 0.557931
| 0.557931
| 0.471724
| 0.437241
| 0.4
| 0.36069
| 0
| 0.002909
| 0.262548
| 2,331
| 78
| 79
| 29.884615
| 0.840605
| 0.558988
| 0
| 0.1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.05
| 0.05
| 0
| 0.6
| 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
|
48c68cda4ac7c1a7d6573aba67448667465f7303
| 15,095
|
py
|
Python
|
python/reachy_sdk_api/camera_reachy_pb2_grpc.py
|
pollen-robotics/reachy-sdk-api
|
3616b6014599eb79880c952ec803289d06a44268
|
[
"Apache-2.0"
] | 1
|
2021-08-14T22:17:37.000Z
|
2021-08-14T22:17:37.000Z
|
python/reachy_sdk_api/camera_reachy_pb2_grpc.py
|
pollen-robotics/reachy-sdk-api
|
3616b6014599eb79880c952ec803289d06a44268
|
[
"Apache-2.0"
] | 2
|
2021-03-24T13:57:45.000Z
|
2021-06-22T13:27:46.000Z
|
python/reachy_sdk_api/camera_reachy_pb2_grpc.py
|
pollen-robotics/reachy-sdk-api
|
3616b6014599eb79880c952ec803289d06a44268
|
[
"Apache-2.0"
] | 2
|
2021-05-12T08:13:55.000Z
|
2021-09-14T09:14:25.000Z
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import camera_reachy_pb2 as camera__reachy__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
class CameraServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetImage = channel.unary_unary(
'/reachy.sdk.camera.CameraService/GetImage',
request_serializer=camera__reachy__pb2.ImageRequest.SerializeToString,
response_deserializer=camera__reachy__pb2.Image.FromString,
)
self.StreamImage = channel.unary_stream(
'/reachy.sdk.camera.CameraService/StreamImage',
request_serializer=camera__reachy__pb2.StreamImageRequest.SerializeToString,
response_deserializer=camera__reachy__pb2.Image.FromString,
)
self.GetZoomLevel = channel.unary_unary(
'/reachy.sdk.camera.CameraService/GetZoomLevel',
request_serializer=camera__reachy__pb2.Camera.SerializeToString,
response_deserializer=camera__reachy__pb2.ZoomLevel.FromString,
)
self.GetZoomSpeed = channel.unary_unary(
'/reachy.sdk.camera.CameraService/GetZoomSpeed',
request_serializer=camera__reachy__pb2.Camera.SerializeToString,
response_deserializer=camera__reachy__pb2.ZoomSpeed.FromString,
)
self.SendZoomCommand = channel.unary_unary(
'/reachy.sdk.camera.CameraService/SendZoomCommand',
request_serializer=camera__reachy__pb2.ZoomCommand.SerializeToString,
response_deserializer=camera__reachy__pb2.ZoomCommandAck.FromString,
)
self.GetZoomFocus = channel.unary_unary(
'/reachy.sdk.camera.CameraService/GetZoomFocus',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=camera__reachy__pb2.ZoomFocusMessage.FromString,
)
self.SetZoomFocus = channel.unary_unary(
'/reachy.sdk.camera.CameraService/SetZoomFocus',
request_serializer=camera__reachy__pb2.ZoomFocusMessage.SerializeToString,
response_deserializer=camera__reachy__pb2.ZoomCommandAck.FromString,
)
self.StartAutofocus = channel.unary_unary(
'/reachy.sdk.camera.CameraService/StartAutofocus',
request_serializer=camera__reachy__pb2.Camera.SerializeToString,
response_deserializer=camera__reachy__pb2.ZoomCommandAck.FromString,
)
self.StopAutofocus = channel.unary_unary(
'/reachy.sdk.camera.CameraService/StopAutofocus',
request_serializer=camera__reachy__pb2.Camera.SerializeToString,
response_deserializer=camera__reachy__pb2.ZoomCommandAck.FromString,
)
class CameraServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
def GetImage(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def StreamImage(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetZoomLevel(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetZoomSpeed(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SendZoomCommand(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetZoomFocus(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SetZoomFocus(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def StartAutofocus(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def StopAutofocus(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_CameraServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetImage': grpc.unary_unary_rpc_method_handler(
servicer.GetImage,
request_deserializer=camera__reachy__pb2.ImageRequest.FromString,
response_serializer=camera__reachy__pb2.Image.SerializeToString,
),
'StreamImage': grpc.unary_stream_rpc_method_handler(
servicer.StreamImage,
request_deserializer=camera__reachy__pb2.StreamImageRequest.FromString,
response_serializer=camera__reachy__pb2.Image.SerializeToString,
),
'GetZoomLevel': grpc.unary_unary_rpc_method_handler(
servicer.GetZoomLevel,
request_deserializer=camera__reachy__pb2.Camera.FromString,
response_serializer=camera__reachy__pb2.ZoomLevel.SerializeToString,
),
'GetZoomSpeed': grpc.unary_unary_rpc_method_handler(
servicer.GetZoomSpeed,
request_deserializer=camera__reachy__pb2.Camera.FromString,
response_serializer=camera__reachy__pb2.ZoomSpeed.SerializeToString,
),
'SendZoomCommand': grpc.unary_unary_rpc_method_handler(
servicer.SendZoomCommand,
request_deserializer=camera__reachy__pb2.ZoomCommand.FromString,
response_serializer=camera__reachy__pb2.ZoomCommandAck.SerializeToString,
),
'GetZoomFocus': grpc.unary_unary_rpc_method_handler(
servicer.GetZoomFocus,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=camera__reachy__pb2.ZoomFocusMessage.SerializeToString,
),
'SetZoomFocus': grpc.unary_unary_rpc_method_handler(
servicer.SetZoomFocus,
request_deserializer=camera__reachy__pb2.ZoomFocusMessage.FromString,
response_serializer=camera__reachy__pb2.ZoomCommandAck.SerializeToString,
),
'StartAutofocus': grpc.unary_unary_rpc_method_handler(
servicer.StartAutofocus,
request_deserializer=camera__reachy__pb2.Camera.FromString,
response_serializer=camera__reachy__pb2.ZoomCommandAck.SerializeToString,
),
'StopAutofocus': grpc.unary_unary_rpc_method_handler(
servicer.StopAutofocus,
request_deserializer=camera__reachy__pb2.Camera.FromString,
response_serializer=camera__reachy__pb2.ZoomCommandAck.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'reachy.sdk.camera.CameraService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class CameraService(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def GetImage(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/reachy.sdk.camera.CameraService/GetImage',
camera__reachy__pb2.ImageRequest.SerializeToString,
camera__reachy__pb2.Image.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def StreamImage(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/reachy.sdk.camera.CameraService/StreamImage',
camera__reachy__pb2.StreamImageRequest.SerializeToString,
camera__reachy__pb2.Image.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetZoomLevel(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/reachy.sdk.camera.CameraService/GetZoomLevel',
camera__reachy__pb2.Camera.SerializeToString,
camera__reachy__pb2.ZoomLevel.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetZoomSpeed(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/reachy.sdk.camera.CameraService/GetZoomSpeed',
camera__reachy__pb2.Camera.SerializeToString,
camera__reachy__pb2.ZoomSpeed.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SendZoomCommand(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/reachy.sdk.camera.CameraService/SendZoomCommand',
camera__reachy__pb2.ZoomCommand.SerializeToString,
camera__reachy__pb2.ZoomCommandAck.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetZoomFocus(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/reachy.sdk.camera.CameraService/GetZoomFocus',
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
camera__reachy__pb2.ZoomFocusMessage.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SetZoomFocus(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/reachy.sdk.camera.CameraService/SetZoomFocus',
camera__reachy__pb2.ZoomFocusMessage.SerializeToString,
camera__reachy__pb2.ZoomCommandAck.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def StartAutofocus(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/reachy.sdk.camera.CameraService/StartAutofocus',
camera__reachy__pb2.Camera.SerializeToString,
camera__reachy__pb2.ZoomCommandAck.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def StopAutofocus(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/reachy.sdk.camera.CameraService/StopAutofocus',
camera__reachy__pb2.Camera.SerializeToString,
camera__reachy__pb2.ZoomCommandAck.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 45.466867
| 113
| 0.659755
| 1,337
| 15,095
| 7.124159
| 0.08377
| 0.066772
| 0.083465
| 0.055853
| 0.862572
| 0.788766
| 0.75832
| 0.685144
| 0.628661
| 0.584567
| 0
| 0.005227
| 0.264856
| 15,095
| 331
| 114
| 45.60423
| 0.853113
| 0.06055
| 0
| 0.614841
| 1
| 0
| 0.096989
| 0.059855
| 0
| 0
| 0
| 0
| 0
| 1
| 0.070671
| false
| 0
| 0.010601
| 0.031802
| 0.123675
| 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
|
48d602f0bf36200aa5b76883c3cae9fd93aaf9cc
| 140
|
py
|
Python
|
wagtail_events/views.py
|
thclark/wagtail_events
|
1396239def8991dd25bfa48636f75ea586efb072
|
[
"MIT"
] | 6
|
2019-06-11T16:27:48.000Z
|
2021-07-27T09:45:02.000Z
|
wagtail_events/views.py
|
thclark/wagtail_events
|
1396239def8991dd25bfa48636f75ea586efb072
|
[
"MIT"
] | 11
|
2019-04-17T12:56:50.000Z
|
2020-08-13T13:15:13.000Z
|
wagtail_events/views.py
|
thclark/wagtail_events
|
1396239def8991dd25bfa48636f75ea586efb072
|
[
"MIT"
] | 4
|
2019-09-10T16:15:23.000Z
|
2022-03-09T09:43:50.000Z
|
from django.views.generic import DetailView
from wagtail_events.models import Event
class EventDetailView(DetailView):
model = Event
| 17.5
| 43
| 0.807143
| 17
| 140
| 6.588235
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 140
| 7
| 44
| 20
| 0.933333
| 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
|
48e297089f76fc9debcb66e37c1bdde12b8d7505
| 69
|
py
|
Python
|
tributary/streaming/calculations/utils.py
|
ceball/tributary
|
5e30f90d1a5cc176c0f231f525d9dc5a81353925
|
[
"Apache-2.0"
] | 357
|
2018-09-13T19:58:46.000Z
|
2022-03-31T17:22:20.000Z
|
tributary/streaming/calculations/utils.py
|
ceball/tributary
|
5e30f90d1a5cc176c0f231f525d9dc5a81353925
|
[
"Apache-2.0"
] | 109
|
2018-09-13T18:37:00.000Z
|
2022-03-27T00:59:49.000Z
|
tributary/streaming/calculations/utils.py
|
ceball/tributary
|
5e30f90d1a5cc176c0f231f525d9dc5a81353925
|
[
"Apache-2.0"
] | 36
|
2018-09-17T21:01:05.000Z
|
2022-03-26T02:41:37.000Z
|
_CALCULATIONS_GRAPHVIZSHAPE = "ellipse"
def _raise(e):
raise e
| 11.5
| 39
| 0.724638
| 8
| 69
| 5.875
| 0.75
| 0.255319
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188406
| 69
| 5
| 40
| 13.8
| 0.839286
| 0
| 0
| 0
| 0
| 0
| 0.101449
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
48f0a1eb3dba7a05324a936c9d3e563d944e0492
| 105
|
py
|
Python
|
magic_dot/exceptions.py
|
bonafideduck/magic_dot
|
b86ac2e8650b2e03e329aad3c501a2083283df21
|
[
"BSD-3-Clause"
] | 2
|
2020-03-19T18:21:17.000Z
|
2020-03-19T18:47:28.000Z
|
magic_dot/exceptions.py
|
bonafideduck/magic_dot
|
b86ac2e8650b2e03e329aad3c501a2083283df21
|
[
"BSD-3-Clause"
] | 1
|
2020-03-27T23:27:42.000Z
|
2020-05-01T01:37:06.000Z
|
magic_dot/exceptions.py
|
bonafideduck/magic_dot
|
b86ac2e8650b2e03e329aad3c501a2083283df21
|
[
"BSD-3-Clause"
] | null | null | null |
class NotFound(Exception):
"""The requested data was not found during a call to .get()."""
pass
| 21
| 67
| 0.657143
| 15
| 105
| 4.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.219048
| 105
| 4
| 68
| 26.25
| 0.841463
| 0.542857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
5b22c92c419b1498149b234a0c201f4a68f80920
| 823
|
py
|
Python
|
desolvex/stopcriteria/iterationstopcriterion.py
|
cstatz/desolvex
|
9dc9630360a17be667c4a881564f2c2090808c72
|
[
"BSD-3-Clause"
] | null | null | null |
desolvex/stopcriteria/iterationstopcriterion.py
|
cstatz/desolvex
|
9dc9630360a17be667c4a881564f2c2090808c72
|
[
"BSD-3-Clause"
] | null | null | null |
desolvex/stopcriteria/iterationstopcriterion.py
|
cstatz/desolvex
|
9dc9630360a17be667c4a881564f2c2090808c72
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
__author__ = 'christoph.statz <at> tu-dresden.de'
class IterationStopCriterion(object):
def __init__(self, variables_dict, maximum_iterations):
self.__maximum_iterations = maximum_iterations
self.__variables_dict = variables_dict
self.__variables_dict['iteration'] = 0
@property
def int_maximum(self):
return self.__maximum_iterations
@property
def int_value(self):
return self.__variables_dict['iteration']
def met(self):
if self.__variables_dict['iteration'] < self.__maximum_iterations:
return False
return True
def update(self):
self.__variables_dict['iteration'] += 1
| 22.861111
| 74
| 0.697448
| 91
| 823
| 5.736264
| 0.428571
| 0.17433
| 0.195402
| 0.199234
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004658
| 0.217497
| 823
| 35
| 75
| 23.514286
| 0.805901
| 0.025516
| 0
| 0.095238
| 0
| 0
| 0.08761
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.238095
| false
| 0
| 0.142857
| 0.095238
| 0.619048
| 0.047619
| 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
|
d2bf0d76f819bea7a7a26bb334c5eaf16688b53d
| 199
|
py
|
Python
|
src/the_tale/the_tale/common/locks/exceptions.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 85
|
2017-11-21T12:22:02.000Z
|
2022-03-27T23:07:17.000Z
|
src/the_tale/the_tale/common/locks/exceptions.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 545
|
2017-11-04T14:15:04.000Z
|
2022-03-27T14:19:27.000Z
|
src/the_tale/the_tale/common/locks/exceptions.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 45
|
2017-11-11T12:36:30.000Z
|
2022-02-25T06:10:44.000Z
|
import smart_imports
smart_imports.all()
class LocksError(utils_exceptions.TheTaleError):
pass
class LockLostBeforeLockingError(LocksError):
MSG = 'lock "%(lock)s" lost before locking'
| 15.307692
| 48
| 0.763819
| 22
| 199
| 6.772727
| 0.772727
| 0.161074
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145729
| 199
| 12
| 49
| 16.583333
| 0.876471
| 0
| 0
| 0
| 0
| 0
| 0.176768
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.166667
| 0.333333
| 0
| 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
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
d2d5750ea3ae948fa23a130cbec2ab8433438d61
| 9,942
|
py
|
Python
|
tests/node/test_search.py
|
Vernacular-ai/lute
|
b943c441d7fce6f7431eb413e13577260276b469
|
[
"MIT"
] | 1
|
2021-06-27T01:54:36.000Z
|
2021-06-27T01:54:36.000Z
|
tests/node/test_search.py
|
Vernacular-ai/lute
|
b943c441d7fce6f7431eb413e13577260276b469
|
[
"MIT"
] | null | null | null |
tests/node/test_search.py
|
Vernacular-ai/lute
|
b943c441d7fce6f7431eb413e13577260276b469
|
[
"MIT"
] | 1
|
2021-06-27T02:12:34.000Z
|
2021-06-27T02:12:34.000Z
|
import pytest
from lute.graph import Graph
from lute.node import Variable
from lute.node.fn import node_fn
from lute.node.search.constraint import ConstraintSearch
from lute.node.search.generic import Canonicalize, ExpansionSearch, ListSearch
def test_expansion():
exp = {
"hello": ["hola", "hello", "hey"],
"world": ["planet earth", "world", "universe"]
}
x = Variable()
e = ExpansionSearch(["hello", "world"], exp)(x)
g = Graph(x, e)
assert g.run("Hello world") == [{
"type": "expansion",
"value": "hello",
"range": (0, 5)
}, {
"type": "expansion",
"value": "world",
"range": (6, 11)
}]
assert g.run("hola planet earth") == [{
"type": "expansion",
"value": "hello",
"range": (0, 4)
}, {
"type": "expansion",
"value": "world",
"range": (5, 17)
}]
assert g.run("hola planet mars") == [{
"type": "expansion",
"value": "hello",
"range": (0, 4)
}]
assert g.run("lol planet mars") == []
def test_expansion_hi():
exp = {
"account": ["सैलरी अकाउंट", "सेविंग्स अकाउंट"],
"card": ["कार्ड", "कॉर्ड"],
"lost": ["खो", "गुम", "गायब", "लुप्त"]
}
x = Variable()
g = Graph(x, x >> ExpansionSearch(["account", "card", "lost"], exp, lang="hi"))
assert g.run("कार्ड खो गया है") == [{
"type": "expansion",
"value": "card",
"range": (0, 5)
}, {
"type": "expansion",
"value": "lost",
"range": (6, 8)
}]
assert g.run("सैलरी अकाउंट चाहिए") == [{
"type": "expansion",
"value": "account",
"range": (0, 12)
}]
def test_expansion_regex():
exp = {
"hello": ["hola", "hell?o", "hey!?( there)?"],
"world": ["planet( earth| venus| kek)+", "world", "universe"]
}
x = Variable()
e = ExpansionSearch(["hello", "world"], exp)(x)
g = Graph(x, e)
assert g.run("Helo world") == [{
"type": "expansion",
"value": "hello",
"range": (0, 4)
}, {
"type": "expansion",
"value": "world",
"range": (5, 10)
}]
assert g.run("hey there, thank you!") == [{
"type": "expansion",
"value": "hello",
"range": (0, 9)
}]
assert g.run("hola planet") == [{
"type": "expansion",
"value": "hello",
"range": (0, 4)
}]
assert g.run("hola planet mars") == [{
"type": "expansion",
"value": "hello",
"range": (0, 4)
}]
assert g.run("lol planet kek") == [{
"type": "expansion",
"value": "world",
"range": (4, 14)
}]
def test_expansion_regex_hi():
exp = {
"account": ["(सैलरी |सेविंग्स )?अकाउंट"],
"card": ["कार्ड", "कॉर्ड"],
"lost": ["खो(या|ये|ए)?", "गु(म|मा)", "गायब", "लुप्त"]
}
x = Variable()
g = Graph(x, x >> ExpansionSearch(["account", "card", "lost"], exp, lang="hi"))
assert g.run("कार्ड खोया था") == [{
"type": "expansion",
"value": "card",
"range": (0, 5)
}, {
"type": "expansion",
"value": "lost",
"range": (6, 10)
}]
assert g.run("सैलरी अकाउंट चाहिए") == [{
"type": "expansion",
"value": "account",
"range": (0, 12)
}]
assert g.run("अकाउंट चाहिए") == [{
"type": "expansion",
"value": "account",
"range": (0, 6)
}]
def test_canonicalization():
exp = {
"hello": ["hola", "hello", "hey"],
"world": ["earth", "planet earth", "world", "universe"]
}
terms = ["hello", "world"]
x = Variable()
c = Canonicalize()(x, x >> ExpansionSearch(terms, exp))
g = Graph(x, c)
assert g.run("hola universe") == "hello world"
assert g.run("hey planet earth") == "hello world"
def test_canonicalization_dup():
exp = {
"hello": ["hola", "hello", "hey"],
"world": ["earth", "planet earth", "world", "universe"]
}
terms = ["hello", "world"]
x = Variable()
es = ExpansionSearch(terms, exp)(x)
c_dup = Canonicalize(remove_duplicates=False)(x, es)
g_dup = Graph(x, c_dup)
c = Canonicalize(remove_duplicates=True)(x, es)
g = Graph(x, c)
assert g_dup.run("hey planet earth universe world") == "hello world world world"
assert g.run("hey planet earth universe world") == "hello world"
def test_list():
terms = [
"Blue moon",
"venus",
"divider"
]
x = Variable()
e = ListSearch(terms)(x)
g = Graph(x, e)
assert g.run("Hello world") == []
assert g.run("hola planet venus") == [{"type": "list", "value": "venus", "range": (12, 17)}]
assert g.run("What is a blue moon?") == [{"type": "list", "value": "Blue moon", "range": (10, 19)}]
def test_list_regex():
terms = [
"Hello - world",
"f*ck"
]
fn = node_fn(ListSearch(terms))
assert fn("Hello world, how art thou?") == []
assert fn("Hello - world, how art thou?") == [{"type": "list", "value": terms[0], "range": (0, 13)}]
assert fn("what the f*ck!") == [{"type": "list", "value": terms[1], "range": (9, 13)}]
def test_constraints_partial():
constraints = [
{"name": "1", "items": {"first": "moon", "second": "moon"}},
{"name": "2", "items": {"second": "kek"}},
{"name": "3", "items": {"first": "lol", "second": "kek"}}
]
x1 = Variable()
x2 = Variable()
c = ConstraintSearch(constraints, partial=True)({"first": x1, "second": x2})
g = Graph([x1, x2], c)
assert g.run(values_dict={x1: [], x2: []}) == []
assert g.run(values_dict={x1: [], x2: [{"type": "search_type", "value": "kek"}]}) == [
{"type": "constraint", "name": "2", "constraint": {"second": "kek"}, "missing": [], "score": 1.0},
{"type": "constraint", "name": "3", "constraint": {"first": "lol", "second": "kek"}, "missing": ["first"], "score": 0.5}
]
assert g.run(values_dict={x1: [{"type": "search_type", "value": "moon"}],
x2: [{"type": "search_type", "value": "moon"},
{"type": "search_type", "value": "kek"}]}) == [
{"type": "constraint", "name": "1", "constraint": {"first": "moon", "second": "moon"}, "missing": [], "score": 1.0},
{"type": "constraint", "name": "2", "constraint": {"second": "kek"}, "missing": [], "score": 1.0},
{"type": "constraint", "name": "3", "constraint": {"first": "lol", "second": "kek"}, "missing": ["first"], "score": 0.5}
]
assert g.run(values_dict={x1: [{"type": "search_type", "value": "moon"}],
x2: [{"type": "search_type", "value": "kek"}]}) == [
{"type": "constraint", "name": "2", "constraint": {"second": "kek"}, "missing": [], "score": 1.0},
{"type": "constraint", "name": "1", "constraint": {"first": "moon", "second": "moon"}, "missing": ["second"], "score": 0.5},
{"type": "constraint", "name": "3", "constraint": {"first": "lol", "second": "kek"}, "missing": ["first"], "score": 0.5}
]
assert g.run(values_dict={x1: [{"type": "search_type", "value": "lol"}],
x2: [{"type": "search_type", "value": "kek"}]}) == [
{"type": "constraint", "name": "2", "constraint": {"second": "kek"}, "missing": [], "score": 1.0},
{"type": "constraint", "name": "3", "constraint": {"first": "lol", "second": "kek"}, "missing": [], "score": 1.0}
]
assert g.run(values_dict={x1: [{"type": "search_type", "value": "lol"}],
x2: [{"type": "search_type", "value": "lel"}]}) == [
{"type": "constraint", "name": "3", "constraint": {"first": "lol", "second": "kek"}, "missing": ["second"], "score": 0.5}
]
def test_constraints_complete():
constraints = [
{"name": "1", "items": {"first": "moon", "second": "moon"}},
{"name": "2", "items": {"second": "kek"}},
{"name": "3", "items": {"first": "lol", "second": "kek"}}
]
x1 = Variable()
x2 = Variable()
c = ConstraintSearch(constraints, partial=False)({"first": x1, "second": x2})
g = Graph([x1, x2], c)
assert g.run(values_dict={x1: [], x2: []}) == []
assert g.run(values_dict={x1: [], x2: [{"type": "search_type", "value": "kek"}]}) == [
{"type": "constraint", "name": "2", "constraint": {"second": "kek"}, "missing": [], "score": 1.0},
]
assert g.run(values_dict={x1: [{"type": "search_type", "value": "moon"}],
x2: [{"type": "search_type", "value": "moon"},
{"type": "search_type", "value": "kek"}]}) == [
{"type": "constraint", "name": "1", "constraint": {"first": "moon", "second": "moon"}, "missing": [], "score": 1.0},
{"type": "constraint", "name": "2", "constraint": {"second": "kek"}, "missing": [], "score": 1.0}
]
assert g.run(values_dict={x1: [{"type": "search_type", "value": "moon"}],
x2: [{"type": "search_type", "value": "kek"}]}) == [
{"type": "constraint", "name": "2", "constraint": {"second": "kek"}, "missing": [], "score": 1.0}
]
assert g.run(values_dict={x1: [{"type": "search_type", "value": "lol"}],
x2: [{"type": "search_type", "value": "kek"}]}) == [
{"type": "constraint", "name": "2", "constraint": {"second": "kek"}, "missing": [], "score": 1.0},
{"type": "constraint", "name": "3", "constraint": {"first": "lol", "second": "kek"}, "missing": [], "score": 1.0}
]
assert g.run(values_dict={x1: [{"type": "search_type", "value": "lol"}],
x2: [{"type": "search_type", "value": "lel"}]}) == []
| 34.884211
| 139
| 0.467109
| 1,174
| 9,942
| 3.96167
| 0.114991
| 0.049667
| 0.068802
| 0.081703
| 0.784562
| 0.756826
| 0.734681
| 0.70028
| 0.683079
| 0.680714
| 0
| 0.021182
| 0.278214
| 9,942
| 284
| 140
| 35.007042
| 0.617893
| 0
| 0
| 0.630252
| 0
| 0
| 0.31553
| 0
| 0
| 0
| 0
| 0
| 0.151261
| 1
| 0.042017
| false
| 0
| 0.02521
| 0
| 0.067227
| 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
|
d2f26c2421c6938bb442f72836bd8854dcdd8836
| 411
|
py
|
Python
|
wtf.py
|
winfried/WTF
|
862741787e932f503d48ccbfebede88ed4547944
|
[
"MIT"
] | null | null | null |
wtf.py
|
winfried/WTF
|
862741787e932f503d48ccbfebede88ed4547944
|
[
"MIT"
] | null | null | null |
wtf.py
|
winfried/WTF
|
862741787e932f503d48ccbfebede88ed4547944
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import time
import settings
import sites
import tests
if settings.tests_to_run == "ALL":
settings.tests_to_run = settings.tests.keys()
if __name__ == "__main__":
for tr in settings.tests_to_run:
print tr
tConfig = settings.tests[tr]
runner = tests.tests[tConfig['runner']]
try:
runner.test(tConfig)
except:
raise
| 19.571429
| 49
| 0.625304
| 52
| 411
| 4.673077
| 0.5
| 0.26749
| 0.185185
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.274939
| 411
| 20
| 50
| 20.55
| 0.815436
| 0.048662
| 0
| 0
| 0
| 0
| 0.04359
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.266667
| null | null | 0.066667
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
827c13fae1af6dfe8624ff8e52337063690814a0
| 79
|
py
|
Python
|
WPTParser/Constants/__init__.py
|
Bharat23/wpt-parser
|
e5679c50c8658dfb139663ca3392a42d2c2ea327
|
[
"MIT"
] | 1
|
2020-08-09T16:54:16.000Z
|
2020-08-09T16:54:16.000Z
|
WPTParser/Constants/__init__.py
|
Bharat23/wpt-parser
|
e5679c50c8658dfb139663ca3392a42d2c2ea327
|
[
"MIT"
] | null | null | null |
WPTParser/Constants/__init__.py
|
Bharat23/wpt-parser
|
e5679c50c8658dfb139663ca3392a42d2c2ea327
|
[
"MIT"
] | null | null | null |
from WPTParser.Constants.RegexConstants import RegexConstants as RegexConstants
| 79
| 79
| 0.911392
| 8
| 79
| 9
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063291
| 79
| 1
| 79
| 79
| 0.972973
| 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
|
82ba4417f4b34720321da30a0992a023f95b726a
| 70
|
py
|
Python
|
tests/perf/test_ozone_ar_speed_order_250.py
|
shaido987/pyaf
|
b9afd089557bed6b90b246d3712c481ae26a1957
|
[
"BSD-3-Clause"
] | 377
|
2016-10-13T20:52:44.000Z
|
2022-03-29T18:04:14.000Z
|
tests/perf/test_ozone_ar_speed_order_250.py
|
ysdede/pyaf
|
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
|
[
"BSD-3-Clause"
] | 160
|
2016-10-13T16:11:53.000Z
|
2022-03-28T04:21:34.000Z
|
tests/perf/test_ozone_ar_speed_order_250.py
|
ysdede/pyaf
|
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
|
[
"BSD-3-Clause"
] | 63
|
2017-03-09T14:51:18.000Z
|
2022-03-27T20:52:57.000Z
|
import tests.perf.test_ozone_ar_speed_many as gen
gen.run_test(250)
| 14
| 49
| 0.828571
| 14
| 70
| 3.785714
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0.1
| 70
| 4
| 50
| 17.5
| 0.793651
| 0
| 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
|
82d172824a8c5b57735f225cab0f7a72d13b7cb5
| 208
|
py
|
Python
|
src/holocron/_core/__init__.py
|
ikalnytskyi/holocron
|
f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3
|
[
"BSD-3-Clause"
] | 6
|
2016-11-27T11:53:18.000Z
|
2021-02-08T00:37:59.000Z
|
src/holocron/_core/__init__.py
|
ikalnytskyi/holocron
|
f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3
|
[
"BSD-3-Clause"
] | 25
|
2017-04-12T15:27:55.000Z
|
2022-01-21T23:37:37.000Z
|
src/holocron/_core/__init__.py
|
ikalnytskyi/holocron
|
f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3
|
[
"BSD-3-Clause"
] | 1
|
2020-11-15T17:49:36.000Z
|
2020-11-15T17:49:36.000Z
|
"""Holocron core resides there."""
from .application import Application
from .factories import create_app
from .items import Item, WebSiteItem
__all__ = ["Application", "create_app", "Item", "WebSiteItem"]
| 26
| 62
| 0.759615
| 24
| 208
| 6.333333
| 0.583333
| 0.118421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120192
| 208
| 7
| 63
| 29.714286
| 0.830601
| 0.134615
| 0
| 0
| 0
| 0
| 0.206897
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 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
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
82d242c3b9878ffe36c3b135292b0109ee5418ba
| 47
|
py
|
Python
|
smartmeter/__init__.py
|
mhvis/smartmeter
|
6e965f65037acabf533a7b312a1be814c8fe0f4e
|
[
"MIT"
] | null | null | null |
smartmeter/__init__.py
|
mhvis/smartmeter
|
6e965f65037acabf533a7b312a1be814c8fe0f4e
|
[
"MIT"
] | null | null | null |
smartmeter/__init__.py
|
mhvis/smartmeter
|
6e965f65037acabf533a7b312a1be814c8fe0f4e
|
[
"MIT"
] | null | null | null |
name = "smartmeter"
from .smartmeter import *
| 11.75
| 25
| 0.723404
| 5
| 47
| 6.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170213
| 47
| 3
| 26
| 15.666667
| 0.871795
| 0
| 0
| 0
| 0
| 0
| 0.212766
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
82d5c19d09ce5741923f031b1c2822aec2f3668a
| 30
|
py
|
Python
|
AD-HOC/2413.py
|
jeconiassantos/uriissues
|
f6c32f8632b9940a4886240ea5d22300922dc79a
|
[
"MIT"
] | null | null | null |
AD-HOC/2413.py
|
jeconiassantos/uriissues
|
f6c32f8632b9940a4886240ea5d22300922dc79a
|
[
"MIT"
] | null | null | null |
AD-HOC/2413.py
|
jeconiassantos/uriissues
|
f6c32f8632b9940a4886240ea5d22300922dc79a
|
[
"MIT"
] | null | null | null |
T = int(input())
print(T * 4)
| 10
| 16
| 0.533333
| 6
| 30
| 2.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 0.2
| 30
| 2
| 17
| 15
| 0.625
| 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
|
7d668f6f10595ffa87b1b7aad168883d12127150
| 258
|
py
|
Python
|
test/XLSTest.py
|
godchaser/PlaySong
|
1fbdcc1f3bf041730266ba3a632435d04ee0581d
|
[
"Apache-1.1"
] | 6
|
2016-04-29T13:24:22.000Z
|
2021-08-01T18:35:32.000Z
|
test/XLSTest.py
|
godchaser/PlaySong
|
1fbdcc1f3bf041730266ba3a632435d04ee0581d
|
[
"Apache-1.1"
] | 24
|
2015-02-17T20:31:50.000Z
|
2016-05-05T19:55:40.000Z
|
test/XLSTest.py
|
godchaser/PlaySong
|
1fbdcc1f3bf041730266ba3a632435d04ee0581d
|
[
"Apache-1.1"
] | null | null | null |
import requests
url = 'http://localhost:9000/empty'
response = requests.get(url)
print response
url = 'http://localhost:9000/init'
response = requests.get(url)
print response
url = 'http://localhost:9000/update'
response = requests.get(url)
print response
| 19.846154
| 36
| 0.751938
| 35
| 258
| 5.542857
| 0.342857
| 0.108247
| 0.247423
| 0.309278
| 0.747423
| 0.747423
| 0.56701
| 0.56701
| 0.56701
| 0.56701
| 0
| 0.052174
| 0.108527
| 258
| 13
| 37
| 19.846154
| 0.791304
| 0
| 0
| 0.6
| 0
| 0
| 0.312741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.1
| null | null | 0.3
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
7d73a82cb3e2d24adda024746e160a9e908ef465
| 113
|
py
|
Python
|
data/models/__init__.py
|
njncalub/logistiko
|
74b1d17bc76538de6f5f70c7eca927780d6b4113
|
[
"MIT"
] | null | null | null |
data/models/__init__.py
|
njncalub/logistiko
|
74b1d17bc76538de6f5f70c7eca927780d6b4113
|
[
"MIT"
] | null | null | null |
data/models/__init__.py
|
njncalub/logistiko
|
74b1d17bc76538de6f5f70c7eca927780d6b4113
|
[
"MIT"
] | null | null | null |
from .packages import Package
from .regions import Region
from .items import Item, ItemStatus, ItemStatusHistory
| 28.25
| 54
| 0.831858
| 14
| 113
| 6.714286
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123894
| 113
| 3
| 55
| 37.666667
| 0.949495
| 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
|
7d7658fef61f01132bcf17576837cf6b41c14230
| 148
|
py
|
Python
|
obat/forms.py
|
immanuelnadeak/temenin-isoman
|
8a497f7defe402820045ab9b748a447fc2e8a5f9
|
[
"MIT"
] | 1
|
2021-11-04T08:11:18.000Z
|
2021-11-04T08:11:18.000Z
|
obat/forms.py
|
immanuelnadeak/temenin-isoman
|
8a497f7defe402820045ab9b748a447fc2e8a5f9
|
[
"MIT"
] | 1
|
2021-11-05T03:52:27.000Z
|
2021-11-05T03:52:27.000Z
|
obat/forms.py
|
immanuelnadeak/temenin-isoman
|
8a497f7defe402820045ab9b748a447fc2e8a5f9
|
[
"MIT"
] | 4
|
2021-10-10T12:55:28.000Z
|
2021-10-29T18:27:42.000Z
|
from django import forms
from .models import Obat
class ObatForm (forms.ModelForm):
class Meta:
model = Obat
fields = "__all__"
| 21.142857
| 33
| 0.668919
| 18
| 148
| 5.277778
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.263514
| 148
| 7
| 34
| 21.142857
| 0.87156
| 0
| 0
| 0
| 0
| 0
| 0.04698
| 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
|
7d977c0ade47bccf286ef68982818a4a8a052d48
| 762
|
py
|
Python
|
paginas/migrations/0010_remove_publicacao_descricao_remove_publicacao_hora_and_more.py
|
DSheridanmt/Safety-Life
|
522578858f8e063e14d0274de008c345ef2c0a75
|
[
"MIT"
] | null | null | null |
paginas/migrations/0010_remove_publicacao_descricao_remove_publicacao_hora_and_more.py
|
DSheridanmt/Safety-Life
|
522578858f8e063e14d0274de008c345ef2c0a75
|
[
"MIT"
] | null | null | null |
paginas/migrations/0010_remove_publicacao_descricao_remove_publicacao_hora_and_more.py
|
DSheridanmt/Safety-Life
|
522578858f8e063e14d0274de008c345ef2c0a75
|
[
"MIT"
] | null | null | null |
# Generated by Django 4.0 on 2022-03-13 19:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('paginas', '0009_remove_publicacao_imagem'),
]
operations = [
migrations.RemoveField(
model_name='publicacao',
name='descricao',
),
migrations.RemoveField(
model_name='publicacao',
name='hora',
),
migrations.RemoveField(
model_name='publicacao',
name='tag',
),
migrations.RemoveField(
model_name='publicacao',
name='titulo',
),
migrations.RemoveField(
model_name='publicacao',
name='upload',
),
]
| 22.411765
| 53
| 0.531496
| 62
| 762
| 6.403226
| 0.5
| 0.264484
| 0.327456
| 0.377834
| 0.554156
| 0.554156
| 0
| 0
| 0
| 0
| 0
| 0.03681
| 0.358268
| 762
| 33
| 54
| 23.090909
| 0.775051
| 0.05643
| 0
| 0.555556
| 1
| 0
| 0.158996
| 0.040446
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.037037
| 0
| 0.148148
| 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
|
7daa8b7f7670d51fc3c11e4061299848b32ff6f2
| 172
|
py
|
Python
|
lesson16n3/code_gen/py_syntax/comment_gen_v16n3.py
|
muzudho/py-state-machine-practice
|
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
|
[
"MIT"
] | null | null | null |
lesson16n3/code_gen/py_syntax/comment_gen_v16n3.py
|
muzudho/py-state-machine-practice
|
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
|
[
"MIT"
] | null | null | null |
lesson16n3/code_gen/py_syntax/comment_gen_v16n3.py
|
muzudho/py-state-machine-practice
|
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
|
[
"MIT"
] | null | null | null |
class CommentGenV16n3:
@classmethod
def generate_comment(clazz, indent, line_list):
text = f"\n{indent}".join(line_list)
return f"{indent}{text}\n"
| 28.666667
| 51
| 0.656977
| 22
| 172
| 5
| 0.681818
| 0.145455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022059
| 0.209302
| 172
| 5
| 52
| 34.4
| 0.786765
| 0
| 0
| 0
| 1
| 0
| 0.151163
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.6
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
7dc17173ef31bf135b9b617c83998a6bbbcac5e4
| 1,319
|
py
|
Python
|
DailyProgrammer/DP20160824B.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | 2
|
2020-12-23T18:59:22.000Z
|
2021-04-14T13:16:09.000Z
|
DailyProgrammer/DP20160824B.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | null | null | null |
DailyProgrammer/DP20160824B.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | null | null | null |
"""
[2016-08-24] Challenge #280 [Intermediate] Anagram Maker
https://www.reddit.com/r/dailyprogrammer/comments/4zcly2/20160824_challenge_280_intermediate_anagram_maker/
# Description
Anagrams, where you take the letters from one or more words and rearrange them to spell something else, are a fun word
game.
In this challenge you'll be asked to create anagrams from specific inputs. You should ignore capitalization as needed,
and use only English language words. Note that because there are so many possibilities, there are no "right" answers so
long as they're valid English language words and proper anagrams.
# Example Input
First you'll be given an integer on a single line, this tells you how many lines to read. Then you'll be given a word
(or words) on *N* lines to make anagrams for. Example:
1
Field of dreams
# Example Output
Your program should emit the original word and one or more anagrams it developed. Example:
Field of dreams -> Dads Offer Lime
Field of dreams -> Deaf Fold Miser
# Challenge Input
6
Desperate
Redditor
Dailyprogrammer
Sam likes to swim
The Morse Code
Help, someone stole my purse
# English Wordlist
Feel free to use the venerable http://norvig.com/ngrams/enable1.txt
"""
def main():
pass
if __name__ == "__main__":
main()
| 32.975
| 119
| 0.750569
| 206
| 1,319
| 4.742718
| 0.650485
| 0.015353
| 0.021494
| 0.06346
| 0.073695
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025352
| 0.19257
| 1,319
| 39
| 120
| 33.820513
| 0.892019
| 0.944655
| 0
| 0
| 0
| 0
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0
| 0
| 0.25
| 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
|
816c0bb32cbb9761f76322499bc40c3ada30d976
| 151
|
py
|
Python
|
popelines/__init__.py
|
InfusionsoftAnalytics/popelines
|
3a719eafb8acd025a1868c06ddf60bacb058c078
|
[
"MIT"
] | 1
|
2019-01-12T00:54:14.000Z
|
2019-01-12T00:54:14.000Z
|
build/lib/popelines/__init__.py
|
InfusionsoftAnalytics/popelines
|
3a719eafb8acd025a1868c06ddf60bacb058c078
|
[
"MIT"
] | 4
|
2019-01-12T00:37:43.000Z
|
2019-02-22T06:20:54.000Z
|
popelines/__init__.py
|
InfusionsoftAnalytics/popelines
|
3a719eafb8acd025a1868c06ddf60bacb058c078
|
[
"MIT"
] | 1
|
2019-05-30T18:38:07.000Z
|
2019-05-30T18:38:07.000Z
|
from popelines.main import popeline
from pkg_resources import get_distribution
name = 'popelines'
__version__ = get_distribution("popelines").version
| 25.166667
| 51
| 0.834437
| 18
| 151
| 6.611111
| 0.611111
| 0.252101
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.099338
| 151
| 6
| 51
| 25.166667
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0.118421
| 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
|
81aa6e2cba1723498fcd681566959fe5741c35ed
| 98
|
py
|
Python
|
example.py
|
lithiil/kanka-npc-creator
|
bfe4791ea74371ece4f14ec7a554bcc7377c73cd
|
[
"Apache-2.0"
] | 1
|
2020-07-26T22:06:53.000Z
|
2020-07-26T22:06:53.000Z
|
example.py
|
lithiil/kanka-npc-creator
|
bfe4791ea74371ece4f14ec7a554bcc7377c73cd
|
[
"Apache-2.0"
] | null | null | null |
example.py
|
lithiil/kanka-npc-creator
|
bfe4791ea74371ece4f14ec7a554bcc7377c73cd
|
[
"Apache-2.0"
] | null | null | null |
from Generator import NpcGenerator
gen = NpcGenerator()
gen.create_npcs('Warhammer Fantasy', 5)
| 16.333333
| 39
| 0.785714
| 12
| 98
| 6.333333
| 0.833333
| 0.394737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011628
| 0.122449
| 98
| 5
| 40
| 19.6
| 0.872093
| 0
| 0
| 0
| 0
| 0
| 0.173469
| 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
|
81ad143506b01e5c5d27cc01e67ac97779696b5b
| 185
|
py
|
Python
|
game/serializers.py
|
infoshareacademy/jpydzr1-dkmap-django
|
4fc34b2d721507b69a7fe945fd4ea3e5fd863828
|
[
"MIT"
] | null | null | null |
game/serializers.py
|
infoshareacademy/jpydzr1-dkmap-django
|
4fc34b2d721507b69a7fe945fd4ea3e5fd863828
|
[
"MIT"
] | 1
|
2021-03-20T18:56:37.000Z
|
2021-03-20T18:56:37.000Z
|
game/serializers.py
|
infoshareacademy/jpydzr1-dkmap-django
|
4fc34b2d721507b69a7fe945fd4ea3e5fd863828
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import Board
class BoardSerializer(serializers.ModelSerializer):
class Meta:
model = Board
fields = '__all__'
| 18.5
| 51
| 0.724324
| 19
| 185
| 6.789474
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.221622
| 185
| 9
| 52
| 20.555556
| 0.895833
| 0
| 0
| 0
| 0
| 0
| 0.037838
| 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
|
81cd6a097c7b71793aa3020205729c34d0e71d61
| 367
|
py
|
Python
|
preml/models/__init__.py
|
csaybar/preml
|
5077a3ff83f3a99af5ce7a1a12eb7329289c8390
|
[
"MIT"
] | null | null | null |
preml/models/__init__.py
|
csaybar/preml
|
5077a3ff83f3a99af5ce7a1a12eb7329289c8390
|
[
"MIT"
] | null | null | null |
preml/models/__init__.py
|
csaybar/preml
|
5077a3ff83f3a99af5ce7a1a12eb7329289c8390
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Top-level package for preML."""
__author__ = """Cesar Aybar Camacho"""
__email__ = 'csaybar@gmail.com'
__version__ = '0.1.0'
from .models import BayesianOptimization
from .models import show_parameter
from .models import lr_decayp
from .models import lightgbm_fitparams
from .models import lightgbm_SS
from .models import optim_f1_score
| 24.466667
| 40
| 0.762943
| 50
| 367
| 5.24
| 0.66
| 0.229008
| 0.366412
| 0.183206
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015625
| 0.128065
| 367
| 14
| 41
| 26.214286
| 0.803125
| 0.138965
| 0
| 0
| 0
| 0
| 0.132258
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
c4a704e027277338f9865d4b94529b06dfeed43e
| 230
|
py
|
Python
|
mmpose/models/losses/__init__.py
|
woffett/mmpose
|
cf8cbf49759e745896b70ce69d412518568af33b
|
[
"Apache-2.0"
] | 1
|
2020-09-22T03:39:47.000Z
|
2020-09-22T03:39:47.000Z
|
mmpose/models/losses/__init__.py
|
woffett/mmpose
|
cf8cbf49759e745896b70ce69d412518568af33b
|
[
"Apache-2.0"
] | null | null | null |
mmpose/models/losses/__init__.py
|
woffett/mmpose
|
cf8cbf49759e745896b70ce69d412518568af33b
|
[
"Apache-2.0"
] | 1
|
2021-07-13T03:42:27.000Z
|
2021-07-13T03:42:27.000Z
|
from .mse_loss import JointsMSELoss, JointsOHKMMSELoss
from .multi_loss_factory import AELoss, HeatmapLoss, MultiLossFactory
__all__ = [
'JointsMSELoss', 'JointsOHKMMSELoss', 'HeatmapLoss', 'AELoss',
'MultiLossFactory'
]
| 28.75
| 69
| 0.778261
| 20
| 230
| 8.6
| 0.6
| 0.348837
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126087
| 230
| 7
| 70
| 32.857143
| 0.855721
| 0
| 0
| 0
| 0
| 0
| 0.273913
| 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
|
c4af3c37638fd92e5dad1c669799f11ff3b4608f
| 27
|
py
|
Python
|
src/pytorch_metric_learning/__init__.py
|
FadouaKhm/pytorch-metric-learning
|
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
|
[
"MIT"
] | 2
|
2020-08-06T16:33:51.000Z
|
2021-06-09T03:24:19.000Z
|
src/pytorch_metric_learning/__init__.py
|
FadouaKhm/pytorch-metric-learning
|
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
|
[
"MIT"
] | null | null | null |
src/pytorch_metric_learning/__init__.py
|
FadouaKhm/pytorch-metric-learning
|
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
|
[
"MIT"
] | null | null | null |
__version__ = "0.9.89.dev2"
| 27
| 27
| 0.703704
| 5
| 27
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.074074
| 27
| 1
| 27
| 27
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0.392857
| 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
|
c4dfc596c8c8ae907835dbcf9efecc20f25d924b
| 53
|
py
|
Python
|
AtCoder/ABC/A/page-2/069A.py
|
Nishi05/Competitive-programming
|
e59a6755b706d9d5c1f359f4511d92c114e6a94e
|
[
"MIT"
] | null | null | null |
AtCoder/ABC/A/page-2/069A.py
|
Nishi05/Competitive-programming
|
e59a6755b706d9d5c1f359f4511d92c114e6a94e
|
[
"MIT"
] | null | null | null |
AtCoder/ABC/A/page-2/069A.py
|
Nishi05/Competitive-programming
|
e59a6755b706d9d5c1f359f4511d92c114e6a94e
|
[
"MIT"
] | null | null | null |
n, m = map(int, input().split())
print((n-1)*(m-1))
| 13.25
| 32
| 0.509434
| 11
| 53
| 2.454545
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 0.132075
| 53
| 3
| 33
| 17.666667
| 0.543478
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
|
c4e76ed54e6562ddfc0d60b2e26e7f181cef193d
| 264
|
py
|
Python
|
src/baboon_tracking/mixins/baboons_mixin.py
|
radioactivebean0/baboon-tracking
|
062351c514073aac8e1207b8b46ca89ece987928
|
[
"MIT"
] | 6
|
2019-07-15T19:10:59.000Z
|
2022-02-01T04:25:26.000Z
|
src/baboon_tracking/mixins/baboons_mixin.py
|
radioactivebean0/baboon-tracking
|
062351c514073aac8e1207b8b46ca89ece987928
|
[
"MIT"
] | 86
|
2019-07-02T17:59:46.000Z
|
2022-02-01T23:23:08.000Z
|
src/baboon_tracking/mixins/baboons_mixin.py
|
radioactivebean0/baboon-tracking
|
062351c514073aac8e1207b8b46ca89ece987928
|
[
"MIT"
] | 7
|
2019-10-16T12:58:21.000Z
|
2022-03-08T00:31:32.000Z
|
"""
Mixin for returning baboon objects.
"""
from typing import List
from baboon_tracking.models.baboon import Baboon
class BaboonsMixin:
"""
Mixin for returning baboon objects.
"""
def __init__(self):
self.baboons: List[Baboon] = None
| 15.529412
| 48
| 0.681818
| 31
| 264
| 5.645161
| 0.580645
| 0.091429
| 0.194286
| 0.262857
| 0.342857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.223485
| 264
| 16
| 49
| 16.5
| 0.853659
| 0.268939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
c4f1536eb878c51e0c654d3c969417778d8996d0
| 431
|
py
|
Python
|
run.py
|
subhomoy-roy-choudhury/Pytorch-Chatbot
|
918f4f5aac717dd56c9462aa413a028c1045eb62
|
[
"MIT"
] | null | null | null |
run.py
|
subhomoy-roy-choudhury/Pytorch-Chatbot
|
918f4f5aac717dd56c9462aa413a028c1045eb62
|
[
"MIT"
] | null | null | null |
run.py
|
subhomoy-roy-choudhury/Pytorch-Chatbot
|
918f4f5aac717dd56c9462aa413a028c1045eb62
|
[
"MIT"
] | null | null | null |
import os
print ("Starting script1")
os.system("pip install -r requirements.txt")
print ("script1 ended")
print ("Starting script2")
os.system("python yaml2json.py")
print ("script2 ended")
print ("Starting script3")
os.system("python convert.py")
print ("script3 ended")
print ("Starting script4")
os.system("python merge.py")
print ("script4 ended")
print ("Starting script5")
os.system("python train.py")
print ("script5 ended")
| 26.9375
| 44
| 0.735499
| 59
| 431
| 5.372881
| 0.372881
| 0.205047
| 0.227129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028351
| 0.099768
| 431
| 16
| 45
| 26.9375
| 0.78866
| 0
| 0
| 0
| 0
| 0
| 0.560185
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.0625
| 0
| 0.0625
| 0.625
| 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
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
f2132474febe51bac34be2a89427ab7849f7f190
| 301
|
py
|
Python
|
Postgres/Object/Course.py
|
EthanITA/isw-telegram
|
2e77075cbf8ad3a4ef002e5952ca979815ece412
|
[
"MIT"
] | null | null | null |
Postgres/Object/Course.py
|
EthanITA/isw-telegram
|
2e77075cbf8ad3a4ef002e5952ca979815ece412
|
[
"MIT"
] | null | null | null |
Postgres/Object/Course.py
|
EthanITA/isw-telegram
|
2e77075cbf8ad3a4ef002e5952ca979815ece412
|
[
"MIT"
] | null | null | null |
class Course:
def __init__(self, records: dict = None):
self.id: int = records.get('Id')
self.name: str = records.get('CourseName')
self.about: str = records.get('About')
self.about_exam: str = records.get('About Exam')
self.site: str = records.get('Site')
| 37.625
| 56
| 0.601329
| 40
| 301
| 4.4
| 0.425
| 0.284091
| 0.295455
| 0.204545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.242525
| 301
| 7
| 57
| 43
| 0.77193
| 0
| 0
| 0
| 0
| 0
| 0.10299
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1ef3c4c1cb7537040271287b761328bf50befd4c
| 660
|
py
|
Python
|
src/builder/TextBuilder.py
|
fuqinshen/Python--
|
aaa5230354258e1bba761e483c8b9fb6be00402a
|
[
"MIT"
] | 31
|
2018-10-19T15:28:36.000Z
|
2022-02-14T03:01:25.000Z
|
src/builder/TextBuilder.py
|
fuqinshen/Python--
|
aaa5230354258e1bba761e483c8b9fb6be00402a
|
[
"MIT"
] | null | null | null |
src/builder/TextBuilder.py
|
fuqinshen/Python--
|
aaa5230354258e1bba761e483c8b9fb6be00402a
|
[
"MIT"
] | 10
|
2019-01-10T04:02:12.000Z
|
2021-11-17T01:52:15.000Z
|
from Builder import Builder
class TextBuilder(Builder):
def __init__(self):
self.buffer = str()
def makeTitle(self, title):
self.buffer += "==============================\n"
self.buffer += " [ " + title + " ]\n"
self.buffer += "\n"
def makeString(self, str):
self.buffer += '■ ' + str + "\n"
self.buffer += "\n"
def makeItems(self, items):
for _, item in enumerate(items):
self.buffer += " · " + item + "\n"
self.buffer += "\n"
def close(self):
self.buffer += "==============================\n"
def get_result(self):
return self.buffer
| 24.444444
| 57
| 0.463636
| 69
| 660
| 4.376812
| 0.376812
| 0.331126
| 0.182119
| 0.18543
| 0.149007
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.298485
| 660
| 26
| 58
| 25.384615
| 0.647948
| 0
| 0
| 0.263158
| 0
| 0
| 0.131818
| 0.09697
| 0
| 0
| 0
| 0
| 0
| 1
| 0.315789
| false
| 0
| 0.052632
| 0.052632
| 0.473684
| 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
|
4808dffe29c6ade6dc68f27aa54ac3a681631252
| 357
|
py
|
Python
|
hash_util.py
|
UzairJavaid/simulating-blockchain-data-for-nonce-prediction-with-AI
|
14574bd7d6447fa81054eba13c4e40181a5a2231
|
[
"MIT"
] | 1
|
2020-01-28T04:20:03.000Z
|
2020-01-28T04:20:03.000Z
|
hash_util.py
|
UzairJavaid/simulating-blockchain-data-for-nonce-prediction-with-AI
|
14574bd7d6447fa81054eba13c4e40181a5a2231
|
[
"MIT"
] | null | null | null |
hash_util.py
|
UzairJavaid/simulating-blockchain-data-for-nonce-prediction-with-AI
|
14574bd7d6447fa81054eba13c4e40181a5a2231
|
[
"MIT"
] | null | null | null |
import hashlib as hl
import json
def hash_string_256(string):
return hl.sha256(string).hexdigest()
def hash_block(block):
""" Hashes a block and returns a string representation of it.
Arguments:
:block: The block that should be hashed.
"""
return hash_string_256(json.dumps(block, sort_keys = True).encode())
| 23.8
| 72
| 0.669468
| 49
| 357
| 4.755102
| 0.632653
| 0.060086
| 0.111588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033088
| 0.238095
| 357
| 15
| 72
| 23.8
| 0.823529
| 0.319328
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.166667
| 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
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
48283a1c00c177555cb5877c8808e1326491a458
| 699
|
py
|
Python
|
codility/test_perm_missing_elem.py
|
grzesk075/PythonSandbox
|
9fa879b4a15a971258c458bbfe55c7a899c95ce5
|
[
"MIT"
] | null | null | null |
codility/test_perm_missing_elem.py
|
grzesk075/PythonSandbox
|
9fa879b4a15a971258c458bbfe55c7a899c95ce5
|
[
"MIT"
] | null | null | null |
codility/test_perm_missing_elem.py
|
grzesk075/PythonSandbox
|
9fa879b4a15a971258c458bbfe55c7a899c95ce5
|
[
"MIT"
] | null | null | null |
from unittest import TestCase, main
from codility.perm_missing_elem import solution
class TestOddOccurrencesInArray(TestCase):
def test_solution(self):
self.assertEqual(solution([1]), 2)
self.assertEqual(solution([2]), 1)
self.assertEqual(solution([1, 3]), 2)
self.assertEqual(solution([3, 1]), 2)
self.assertEqual(solution([2, 3]), 1)
self.assertEqual(solution([2, 1]), 3)
self.assertEqual(solution([2, 3, 5, 1]), 4)
N = 100000
A = list(range(1, N + 2))
missing = 23974
del (A[missing - 1])
self.assertEqual(solution(A), missing)
if __name__ == '__main__':
main()
| 27.96
| 52
| 0.586552
| 84
| 699
| 4.75
| 0.357143
| 0.300752
| 0.461153
| 0.240602
| 0.260652
| 0.130326
| 0
| 0
| 0
| 0
| 0
| 0.068898
| 0.273248
| 699
| 24
| 53
| 29.125
| 0.716535
| 0
| 0
| 0
| 0
| 0
| 0.011852
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 1
| 0.055556
| false
| 0
| 0.111111
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
486487c8a793600bbcce673cfb32c15679c67b78
| 211
|
py
|
Python
|
profiles/admin.py
|
gurleen-kaur1313/greivance-redressal_portal-1
|
07a01fce521d7b857d194e9e8908925569df25b2
|
[
"MIT"
] | 1
|
2020-11-04T08:36:58.000Z
|
2020-11-04T08:36:58.000Z
|
profiles/admin.py
|
gurleen-kaur1313/greivance-redressal_portal-1
|
07a01fce521d7b857d194e9e8908925569df25b2
|
[
"MIT"
] | null | null | null |
profiles/admin.py
|
gurleen-kaur1313/greivance-redressal_portal-1
|
07a01fce521d7b857d194e9e8908925569df25b2
|
[
"MIT"
] | 2
|
2020-10-29T03:17:59.000Z
|
2020-11-04T08:23:16.000Z
|
from django.contrib import admin
from .models import Profile
@admin.register(Profile)
class ProfileModelAdmin(admin.ModelAdmin):
list_display = ('user', 'location')
list_search_fields = ('user', 'location')
| 23.444444
| 42
| 0.767773
| 25
| 211
| 6.36
| 0.68
| 0.150943
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109005
| 211
| 8
| 43
| 26.375
| 0.845745
| 0
| 0
| 0
| 0
| 0
| 0.113744
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.833333
| 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
|
4870229d7706ce7d3683a6e89ef53c23e0c198f6
| 412
|
py
|
Python
|
archfx_cloud/reports/exceptions.py
|
iotile/python_archfx_cloud
|
0630f8dc5faa16ba47e592277191efc52f323919
|
[
"MIT"
] | 1
|
2021-07-17T00:00:49.000Z
|
2021-07-17T00:00:49.000Z
|
archfx_cloud/reports/exceptions.py
|
iotile/python_archfx_cloud
|
0630f8dc5faa16ba47e592277191efc52f323919
|
[
"MIT"
] | 4
|
2021-04-05T00:08:57.000Z
|
2021-08-03T21:59:28.000Z
|
archfx_cloud/reports/exceptions.py
|
iotile/python_archfx_cloud
|
0630f8dc5faa16ba47e592277191efc52f323919
|
[
"MIT"
] | null | null | null |
from typedargs.exceptions import KeyValueException as IOTileException
class DataError(IOTileException):
"""The method relied on data pass in by the user and the data was invalid.
This could be because a file was the wrong type or because a data provider
returned an unexpected result. The parameters passed with this exception
provide more detail on what occurred and where.
"""
pass
| 34.333333
| 78
| 0.759709
| 59
| 412
| 5.305085
| 0.762712
| 0.051118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.208738
| 412
| 11
| 79
| 37.454545
| 0.960123
| 0.650485
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 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
|
6f85584dac8ae1016491b98dbea35f77f76a0f4c
| 238
|
py
|
Python
|
hw_asr/model/__init__.py
|
iamilyasedunov/asr_project_template
|
fce2d6925ece333801a80593e451bdbdd2228a59
|
[
"MIT"
] | null | null | null |
hw_asr/model/__init__.py
|
iamilyasedunov/asr_project_template
|
fce2d6925ece333801a80593e451bdbdd2228a59
|
[
"MIT"
] | null | null | null |
hw_asr/model/__init__.py
|
iamilyasedunov/asr_project_template
|
fce2d6925ece333801a80593e451bdbdd2228a59
|
[
"MIT"
] | null | null | null |
from hw_asr.model.baseline_model import BaselineModel
from hw_asr.model.conv_model import QuartzNet
from hw_asr.model.baseline_rnn_model import BaselineRNNModel
__all__ = [
"BaselineModel",
"QuartzNet",
"BaselineRNNModel",
]
| 23.8
| 60
| 0.789916
| 29
| 238
| 6.103448
| 0.413793
| 0.101695
| 0.152542
| 0.237288
| 0.248588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134454
| 238
| 9
| 61
| 26.444444
| 0.859223
| 0
| 0
| 0
| 0
| 0
| 0.159664
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.375
| 0
| 0.375
| 0
| 1
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6fd56a2f7effac8f90a84e07025aeee8e39ee736
| 53
|
py
|
Python
|
music/helloworld.py
|
aphawkins/microbit
|
8fa6a56504ef75082c3c4de7d962419eb8848b7a
|
[
"MIT"
] | null | null | null |
music/helloworld.py
|
aphawkins/microbit
|
8fa6a56504ef75082c3c4de7d962419eb8848b7a
|
[
"MIT"
] | null | null | null |
music/helloworld.py
|
aphawkins/microbit
|
8fa6a56504ef75082c3c4de7d962419eb8848b7a
|
[
"MIT"
] | null | null | null |
from microbit import *
display.scroll("Hello World!")
| 26.5
| 30
| 0.773585
| 7
| 53
| 5.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09434
| 53
| 2
| 30
| 26.5
| 0.854167
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.