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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ab1513ec3fd535533ea099090f2e669f39b5c0a | 11,541 | py | Python | verba/apps/github/api.py | nhsuk/verba | c0354ae2012a046e7f7cc7482e293737de9d28bc | [
"MIT"
] | null | null | null | verba/apps/github/api.py | nhsuk/verba | c0354ae2012a046e7f7cc7482e293737de9d28bc | [
"MIT"
] | 2 | 2016-08-11T09:30:41.000Z | 2016-08-11T15:04:08.000Z | verba/apps/github/api.py | nhsuk/verba | c0354ae2012a046e7f7cc7482e293737de9d28bc | [
"MIT"
] | 1 | 2021-04-11T07:41:27.000Z | 2021-04-11T07:41:27.000Z | import json
import requests
import base64
import logging
from django.utils.dateparse import parse_datetime
from verba_settings import config
from .exceptions import InvalidResponseException, NotFoundException
logger = logging.getLogger('github.api')
class Request(object):
base_url = None
default_json = T... | 26.839535 | 107 | 0.605667 | 1,383 | 11,541 | 4.848156 | 0.130152 | 0.046532 | 0.02789 | 0.032215 | 0.362565 | 0.244295 | 0.216555 | 0.131842 | 0.125578 | 0.112155 | 0 | 0.002269 | 0.2745 | 11,541 | 429 | 108 | 26.902098 | 0.798519 | 0.021055 | 0 | 0.322981 | 0 | 0 | 0.054176 | 0.002217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.021739 | 0.102484 | 0.465839 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
3abd3f91e2586cf8da40fe2d8c16616920166120 | 1,460 | py | Python | sources/controller/main_window/button_main_window.py | Groomsha/lan-map | 1c30819470f43f8521e98eb75c70da23939f8f06 | [
"Apache-2.0"
] | null | null | null | sources/controller/main_window/button_main_window.py | Groomsha/lan-map | 1c30819470f43f8521e98eb75c70da23939f8f06 | [
"Apache-2.0"
] | null | null | null | sources/controller/main_window/button_main_window.py | Groomsha/lan-map | 1c30819470f43f8521e98eb75c70da23939f8f06 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 31.73913 | 66 | 0.774658 | 218 | 1,460 | 5.045872 | 0.509174 | 0.054545 | 0.054545 | 0.081818 | 0.164545 | 0.164545 | 0.164545 | 0.136364 | 0.136364 | 0.094545 | 0 | 0.010375 | 0.141781 | 1,460 | 45 | 67 | 32.444444 | 0.867518 | 0.620548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0 | 0 | 0.545455 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
3ac554f4cac24d4da36e3e1c642e8f93e5c1cc2e | 391 | py | Python | data/config.py | Iwillsky/ProteinFoldingCloud | 80acc6dd3ce8ac98e074e12c5962cf89ff13816d | [
"MIT"
] | 1 | 2022-02-07T16:49:56.000Z | 2022-02-07T16:49:56.000Z | data/config.py | Iwillsky/ProteinFoldingCloud | 80acc6dd3ce8ac98e074e12c5962cf89ff13816d | [
"MIT"
] | null | null | null | data/config.py | Iwillsky/ProteinFoldingCloud | 80acc6dd3ce8ac98e074e12c5962cf89ff13816d | [
"MIT"
] | null | null | null | import os
settings = {
'host': os.environ.get('ACCOUNT_HOST', 'https://hacktest.documents.azure.com:443/'),
'master_key': os.environ.get('ACCOUNT_KEY', '7iE999aQxxo6Y3HtZJv46OQzJBlY6E5B3EKVsjzuYsyiwjSAZZWaQxfOgGSXco7bHWlM8tJrxTywBR1uu0X4GQ=='),
'database_id': os.environ.get('COSMOS_DATABASE', 'hackjoblist'... | 48.875 | 140 | 0.746803 | 39 | 391 | 7.307692 | 0.564103 | 0.126316 | 0.168421 | 0.133333 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053221 | 0.086957 | 391 | 8 | 141 | 48.875 | 0.745098 | 0 | 0 | 0 | 0 | 0 | 0.607143 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ad1ae396a459e4ee9c212221ec38d44dc4ffc95 | 990 | py | Python | 0306_more_guest.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | 0306_more_guest.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | 0306_more_guest.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys
def main():
guest_lists = ['senthil', 'raj', 'ameen']
print("Hi Everyone! I found a bigger dinner table. I would like to invite more people for Dinner.")
guest_lists.insert(0, 'naveen')
guest_lists.insert(2, 'prabhu')
guest_lists.append('ragu')
... | 39.6 | 104 | 0.630303 | 142 | 990 | 4.267606 | 0.352113 | 0.165017 | 0.118812 | 0.168317 | 0.59571 | 0.59571 | 0.59571 | 0.59571 | 0.59571 | 0.59571 | 0 | 0.011673 | 0.221212 | 990 | 24 | 105 | 41.25 | 0.774319 | 0.016162 | 0 | 0 | 0 | 0 | 0.483667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0.470588 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
3ad4e49f3fb445d401e90879815a1d1fd82bcf37 | 1,182 | py | Python | harris_county_bookings/settings_example.py | open-austin/harris-county-bookings | 0fb8591288be4b81378a3a9b5cd427ac37b789ed | [
"Unlicense"
] | 4 | 2018-05-09T00:59:14.000Z | 2021-11-18T04:47:37.000Z | harris_county_bookings/settings_example.py | open-austin/harris-county-bookings | 0fb8591288be4b81378a3a9b5cd427ac37b789ed | [
"Unlicense"
] | 17 | 2016-07-28T01:11:09.000Z | 2018-08-06T05:05:37.000Z | harris_county_bookings/settings_example.py | open-austin/harris-county-bookings | 0fb8591288be4b81378a3a9b5cd427ac37b789ed | [
"Unlicense"
] | 6 | 2016-07-27T23:44:09.000Z | 2021-11-18T04:47:28.000Z | """
These settings are only needed if you are planning to push to S3, GitHub or data.world.
If you only are only saving to local files, then these are not needed.
"""
S3_BUCKETS = {
# 'bucket': name of the bucket
# 'key': syntax: a_folder/another_folder
#
# For the 'scrub' bucket, one sub-folder named ... | 42.214286 | 105 | 0.719966 | 182 | 1,182 | 4.252747 | 0.313187 | 0.054264 | 0.072351 | 0.100775 | 0.348837 | 0.286822 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0 | 0.001974 | 0.142978 | 1,182 | 27 | 106 | 43.777778 | 0.762093 | 0.345178 | 0 | 0 | 0 | 0 | 0.612352 | 0.473062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ad8bcbb6feea1785464288aceb9639383828b73 | 156 | py | Python | model/section.py | yiyangyi/cc98-tornado | 45313f2313e5b5a4636469b4b82a02a8e62fc1f1 | [
"MIT"
] | null | null | null | model/section.py | yiyangyi/cc98-tornado | 45313f2313e5b5a4636469b4b82a02a8e62fc1f1 | [
"MIT"
] | null | null | null | model/section.py | yiyangyi/cc98-tornado | 45313f2313e5b5a4636469b4b82a02a8e62fc1f1 | [
"MIT"
] | null | null | null | class SectionModel(Query):
def __init__(self, db):
self.db = db
self.table_name = "section"
super(SectionModel, self).__init__() | 31.2 | 44 | 0.621795 | 18 | 156 | 4.888889 | 0.611111 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25641 | 156 | 5 | 44 | 31.2 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.044586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 2 |
3aedc4bff8cbf1ecaa2885d21e7d52ed9675dbef | 413 | py | Python | src/backend/app/drivers/sqlalchemy/models/role.py | douglasdaly/web-app-skeleton | af7580822b18e714d7c0b54f6fdcd11bf57f16e0 | [
"MIT"
] | 1 | 2021-07-20T14:20:10.000Z | 2021-07-20T14:20:10.000Z | src/backend/app/drivers/sqlalchemy/models/role.py | douglasdaly/web-app-skeleton | af7580822b18e714d7c0b54f6fdcd11bf57f16e0 | [
"MIT"
] | 4 | 2021-03-31T20:03:55.000Z | 2022-02-27T09:19:29.000Z | src/backend/app/drivers/sqlalchemy/models/role.py | douglasdaly/web-app-skeleton | af7580822b18e714d7c0b54f6fdcd11bf57f16e0 | [
"MIT"
] | 1 | 2021-05-02T09:27:16.000Z | 2021-05-02T09:27:16.000Z | # -*- coding: utf-8 -*-
"""
Role storage schema for SQLAlchemy.
"""
import typing as tp
import sqlalchemy as sa
from app.crud.models.role import RoleBase
from app.drivers.sqlalchemy.models.base import Base
class Role(RoleBase, Base):
"""
Storage table for Role objects in SQLAlchemy.
"""
name = sa.Co... | 21.736842 | 56 | 0.702179 | 58 | 413 | 5 | 0.568966 | 0.048276 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002941 | 0.176755 | 413 | 18 | 57 | 22.944444 | 0.85 | 0.251816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
aaf8fc9701ea057c797fbc617c997b61c0a8d730 | 94,626 | py | Python | pysnmp/CISCO-STP-EXTENSIONS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-STP-EXTENSIONS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-STP-EXTENSIONS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-STP-EXTENSIONS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-STP-EXTENSIONS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:56:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | 155.634868 | 12,705 | 0.766417 | 9,887 | 94,626 | 7.334985 | 0.050976 | 0.046552 | 0.104742 | 0.122199 | 0.493747 | 0.457343 | 0.424139 | 0.405731 | 0.393845 | 0.383048 | 0 | 0.060074 | 0.074683 | 94,626 | 607 | 12,706 | 155.891269 | 0.768179 | 0.003614 | 0 | 0.093697 | 0 | 0 | 0.259093 | 0.178711 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015332 | 0 | 0.02385 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9039b4764c11673eaf4c73b170db2a774fedfa4 | 785 | py | Python | setup.py | rusek/bgjobs | 3d397dbbdd38a865c7c0645c50fade56df30d972 | [
"MIT"
] | null | null | null | setup.py | rusek/bgjobs | 3d397dbbdd38a865c7c0645c50fade56df30d972 | [
"MIT"
] | null | null | null | setup.py | rusek/bgjobs | 3d397dbbdd38a865c7c0645c50fade56df30d972 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='bgjobs',
version='0.1',
author='Krzysztof Rusek',
author_email='savix5@gmail.com',
description='Run and monitor background jobs',
url='https://github.com/rusek/bgjobs',
license='The MIT License (MIT)',
keywo... | 30.192308 | 53 | 0.625478 | 81 | 785 | 6.024691 | 0.666667 | 0.155738 | 0.204918 | 0.159836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01495 | 0.233121 | 785 | 25 | 54 | 31.4 | 0.795681 | 0.025478 | 0 | 0 | 0 | 0 | 0.558901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
c9043a4a4e51c7ec01d9b64f4c015ee5ae6a2a5d | 1,262 | gyp | Python | camerartc/camerartc.gyp | Teaonly/yacamera | 13a41d18175e50318911dd470c76a811601dfa22 | [
"MIT"
] | 20 | 2015-06-08T08:25:22.000Z | 2020-06-14T09:17:50.000Z | camerartc/camerartc.gyp | Teaonly/yacamera | 13a41d18175e50318911dd470c76a811601dfa22 | [
"MIT"
] | null | null | null | camerartc/camerartc.gyp | Teaonly/yacamera | 13a41d18175e50318911dd470c76a811601dfa22 | [
"MIT"
] | 8 | 2015-06-09T03:28:56.000Z | 2019-07-16T08:24:24.000Z | #
# Building script for ipcamera application
#
{
'includes': ['build/common.gypi'],
'targets' : [
{
'target_name': 'camerartc',
'type': 'executable',
'include_dirs': [
'../third_party/webrtc/modules/interface',
],
'dependencies': [
'libjing... | 30.047619 | 63 | 0.515848 | 105 | 1,262 | 6.142857 | 0.428571 | 0.167442 | 0.083721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01907 | 0.335182 | 1,262 | 41 | 64 | 30.780488 | 0.749702 | 0.031696 | 0 | 0.105263 | 0 | 0 | 0.560855 | 0.421875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c921307aaf30f45d8980152bb95840877735923f | 132 | py | Python | src/t4me/__init__.py | knirajiitb/t4me_AMMCR | f8b6696493a4f1d964404814105ced241967adbb | [
"BSD-3-Clause"
] | 6 | 2018-12-15T06:04:07.000Z | 2021-06-26T05:16:15.000Z | src/t4me/__init__.py | knirajiitb/t4me_AMMCR | f8b6696493a4f1d964404814105ced241967adbb | [
"BSD-3-Clause"
] | 3 | 2019-02-19T08:06:04.000Z | 2021-03-25T16:58:33.000Z | src/t4me/__init__.py | knirajiitb/t4me_AMMCR | f8b6696493a4f1d964404814105ced241967adbb | [
"BSD-3-Clause"
] | 4 | 2020-11-16T23:48:32.000Z | 2021-09-03T10:47:02.000Z | """T4ME - Transport 4 MatErials - a code to calculate the electronic transport coefficients of materials."""
__version__ = '2.0.0'
| 33 | 108 | 0.742424 | 18 | 132 | 5.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.151515 | 132 | 3 | 109 | 44 | 0.794643 | 0.772727 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c92d0df92743101c01b5c2aca66c90216b1d5b37 | 1,373 | py | Python | app/tests/test_get_data.py | rafayahmed123/covid19-api | d348cae21713b147446d3b5f0ee473376014d6a2 | [
"MIT"
] | null | null | null | app/tests/test_get_data.py | rafayahmed123/covid19-api | d348cae21713b147446d3b5f0ee473376014d6a2 | [
"MIT"
] | null | null | null | app/tests/test_get_data.py | rafayahmed123/covid19-api | d348cae21713b147446d3b5f0ee473376014d6a2 | [
"MIT"
] | null | null | null | """
FILE: test_get_data.py
DESCRIPTION: Test reading raw files from GitHub
AUTHOR: Nuttaphat Arunoprayoch
DATE: 11-April-2020
"""
# Import libraries
import pandas as pd
from ..utils import getData
getdataRep = getInstance.get_data()
# Test - Get Lookup table
def test_get_data_lookup_table() -> None:
result = get... | 25.425926 | 52 | 0.716679 | 200 | 1,373 | 4.73 | 0.235 | 0.125793 | 0.127907 | 0.145877 | 0.667019 | 0.605708 | 0.510571 | 0.470402 | 0.427061 | 0.427061 | 0 | 0.012567 | 0.188638 | 1,373 | 53 | 53 | 25.90566 | 0.836625 | 0.232338 | 0 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.222222 | false | 0 | 0.074074 | 0 | 0.296296 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9433438989a6bb69a269daa08ad0b9234b16d36 | 1,303 | py | Python | tests/providers/amazon/aws/operators/test_emr_system.py | ChaseKnowlden/airflow | 6b71eac1997a7c0db3b8e3aed6b4e65d01871440 | [
"Apache-2.0"
] | 15,947 | 2019-01-05T13:51:02.000Z | 2022-03-31T23:33:16.000Z | tests/providers/amazon/aws/operators/test_emr_system.py | ChaseKnowlden/airflow | 6b71eac1997a7c0db3b8e3aed6b4e65d01871440 | [
"Apache-2.0"
] | 14,603 | 2019-01-05T09:43:19.000Z | 2022-03-31T23:11:59.000Z | tests/providers/amazon/aws/operators/test_emr_system.py | ChaseKnowlden/airflow | 6b71eac1997a7c0db3b8e3aed6b4e65d01871440 | [
"Apache-2.0"
] | 8,429 | 2019-01-05T19:45:47.000Z | 2022-03-31T22:13:01.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 37.228571 | 83 | 0.769762 | 193 | 1,303 | 5.005181 | 0.533679 | 0.062112 | 0.037267 | 0.033126 | 0.149068 | 0.10766 | 0.060041 | 0.060041 | 0 | 0 | 0 | 0.00369 | 0.168074 | 1,303 | 34 | 84 | 38.323529 | 0.887454 | 0.604758 | 0 | 0 | 0 | 0 | 0.126033 | 0.126033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.555556 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
c945186b50383d5d0bb16019c5f8268a9b56294a | 474 | py | Python | fabfile.py | maracuja/maracuja.github.io | cb9d875549fe9b47ba231e9014be19030ee421d7 | [
"MIT"
] | null | null | null | fabfile.py | maracuja/maracuja.github.io | cb9d875549fe9b47ba231e9014be19030ee421d7 | [
"MIT"
] | null | null | null | fabfile.py | maracuja/maracuja.github.io | cb9d875549fe9b47ba231e9014be19030ee421d7 | [
"MIT"
] | null | null | null | from fabric.api import *
def live():
""" Set the target to production. """
env.hosts = ['kurosaki@ichigo']
env.remote_app_dir = '/home/kurosaki/htdocs/setr.co.uk/'
env.build_dir = '_site/'
def push():
"""
Pushes the code to nominated server.
restart included.
doesn't touch ... | 21.545455 | 60 | 0.599156 | 63 | 474 | 4.380952 | 0.714286 | 0.065217 | 0.086957 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240506 | 474 | 21 | 61 | 22.571429 | 0.766667 | 0.223629 | 0 | 0 | 0 | 0 | 0.227692 | 0.101538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | true | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9546084ea191cbc5d52bb9ccb6efc44e7c47ba5 | 7,050 | py | Python | src/safe.py | vincent-lg/cocomud | a2c174f15b024d834266e0bef3d0404732d34a47 | [
"BSD-3-Clause"
] | 3 | 2016-10-13T01:39:20.000Z | 2017-08-01T15:58:12.000Z | src/safe.py | vincent-lg/cocomud | a2c174f15b024d834266e0bef3d0404732d34a47 | [
"BSD-3-Clause"
] | 11 | 2018-11-27T16:13:11.000Z | 2019-12-29T11:34:54.000Z | src/safe.py | vlegoff/cocomud | a2c174f15b024d834266e0bef3d0404732d34a47 | [
"BSD-3-Clause"
] | 2 | 2017-08-02T19:36:57.000Z | 2017-10-21T04:13:34.000Z | # Copyright (c) 2016-2020, LE GOFF Vincent
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions a... | 34.390244 | 80 | 0.653617 | 927 | 7,050 | 4.932039 | 0.323625 | 0.030621 | 0.008749 | 0.009186 | 0.118985 | 0.108486 | 0.108486 | 0.108486 | 0.055118 | 0.055118 | 0 | 0.009819 | 0.263262 | 7,050 | 204 | 81 | 34.558824 | 0.870235 | 0.228369 | 0 | 0.078947 | 0 | 0 | 0.033957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.157895 | 0.065789 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c966131819107d695081328315c6c8a2669cfec1 | 81,555 | py | Python | py_ctp/ctp_enum.py | xzstar/Rainbird2 | 8d4efb796e45e741603e728251f5bb916031b053 | [
"Apache-2.0"
] | 4 | 2018-12-12T02:52:44.000Z | 2020-01-21T04:56:45.000Z | py_ctp/ctp_enum.py | xzstar/Rainbird2 | 8d4efb796e45e741603e728251f5bb916031b053 | [
"Apache-2.0"
] | 1 | 2019-06-06T05:17:56.000Z | 2019-06-06T05:17:56.000Z | py_ctp/ctp_enum.py | xzstar/Rainbird2 | 8d4efb796e45e741603e728251f5bb916031b053 | [
"Apache-2.0"
] | 12 | 2019-04-22T12:34:23.000Z | 2022-03-26T16:56:29.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from enum import Enum
class THOST_TE_RESUME_TYPE(Enum):
TERT_RESTART = 0
TERT_RESUME = 1
TERT_QUICK = 2
class TThostFtdcExchangePropertyType(Enum):
"""交易所属性类型"""
THOST_FTDC_EXP_Normal = 48
"""正常"""
THOST_FTDC_EXP_GenOrderByTrade = 49
"""根据成交生成报单"... | 22.337716 | 54 | 0.645662 | 8,752 | 81,555 | 5.588551 | 0.323469 | 0.225041 | 0.013494 | 0.002658 | 0.042404 | 0.002004 | 0.001513 | 0.000818 | 0.000818 | 0 | 0 | 0.040174 | 0.213463 | 81,555 | 3,650 | 55 | 22.343836 | 0.722321 | 0.032726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.01114 | 0.001311 | 0 | 1.000655 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c9717c69feb473ac6addbfd086ec05db90d9ff5c | 758 | py | Python | account/urls.py | mateuszwwwrobel/Expense_Tracker_Django | e84bda82433427608e026faa00a634c46a433179 | [
"MIT"
] | null | null | null | account/urls.py | mateuszwwwrobel/Expense_Tracker_Django | e84bda82433427608e026faa00a634c46a433179 | [
"MIT"
] | null | null | null | account/urls.py | mateuszwwwrobel/Expense_Tracker_Django | e84bda82433427608e026faa00a634c46a433179 | [
"MIT"
] | null | null | null | from django.urls import path
from account import views as account_views
urlpatterns = [
path('begin/', account_views.BeginView.as_view(), name='begin'),
path('signup/', account_views.SignUpView.as_view(), name='signup'),
path('login/', account_views.LoginView.as_view(), name='login'),
path('logout/', ... | 44.588235 | 108 | 0.729551 | 95 | 758 | 5.631579 | 0.294737 | 0.201869 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.097625 | 758 | 16 | 109 | 47.375 | 0.77924 | 0 | 0 | 0 | 0 | 0 | 0.259894 | 0.096306 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c9750562edcc7bc60779610f0c228ee6b0e7086c | 182 | py | Python | result.py | Hom-Wang/python_clang_struct_conv | 649945d8f8c2687b716d0d666f4f9d84fa066fd9 | [
"MIT"
] | 1 | 2021-08-07T00:58:42.000Z | 2021-08-07T00:58:42.000Z | result.py | Hom-Wang/python_clang_struct_conv | 649945d8f8c2687b716d0d666f4f9d84fa066fd9 | [
"MIT"
] | null | null | null | result.py | Hom-Wang/python_clang_struct_conv | 649945d8f8c2687b716d0d666f4f9d84fa066fd9 | [
"MIT"
] | 1 | 2021-11-22T03:57:24.000Z | 2021-11-22T03:57:24.000Z | from ctypes import *
class result(Structure):
_fields_ = [
("type", c_uint),
("nbyte", c_uint),
("param", c_ubyte*2),
("data", c_ubyte*8),
]
| 18.2 | 29 | 0.494505 | 21 | 182 | 4 | 0.761905 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.324176 | 182 | 9 | 30 | 20.222222 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.375 | 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 | 0 | 0 | 0 | 0 | 2 |
a3170556846b8fbd63bb392684a14e98601319ad | 196 | py | Python | docs/examples/required_note.py | JonathanGrant/marbles | e517ed9b24e79bdf972b52207addd253113b41ed | [
"MIT"
] | 109 | 2018-05-20T05:14:13.000Z | 2022-02-08T03:54:56.000Z | docs/examples/required_note.py | JonathanGrant/marbles | e517ed9b24e79bdf972b52207addd253113b41ed | [
"MIT"
] | 65 | 2018-05-20T01:36:45.000Z | 2021-10-15T10:55:34.000Z | docs/examples/required_note.py | JonathanGrant/marbles | e517ed9b24e79bdf972b52207addd253113b41ed | [
"MIT"
] | 16 | 2018-05-26T04:08:27.000Z | 2021-05-01T10:53:16.000Z | import marbles.core
class ComplexTestCase(marbles.core.AnnotatedTestCase):
def test_for_edge_case(self):
self.assertTrue(False)
if __name__ == '__main__':
marbles.core.main()
| 16.333333 | 54 | 0.72449 | 23 | 196 | 5.695652 | 0.73913 | 0.251908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168367 | 196 | 11 | 55 | 17.818182 | 0.803681 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a319265ae4c4d1163a9aa9c373a81ef8a42afee8 | 528 | py | Python | phd_satellite_trajectory/wrappers/normalize_observation_space.py | zampanteymedio/phd-satellite-trajectory-public | d8c1d2154a413f8c010bfb944cedbd4676e3f842 | [
"Apache-2.0"
] | 2 | 2021-02-14T20:17:38.000Z | 2021-03-08T10:02:09.000Z | phd_satellite_trajectory/wrappers/normalize_observation_space.py | zampanteymedio/phd-satellite-trajectory-public | d8c1d2154a413f8c010bfb944cedbd4676e3f842 | [
"Apache-2.0"
] | null | null | null | phd_satellite_trajectory/wrappers/normalize_observation_space.py | zampanteymedio/phd-satellite-trajectory-public | d8c1d2154a413f8c010bfb944cedbd4676e3f842 | [
"Apache-2.0"
] | null | null | null | from gym.spaces import Box
from gym.wrappers import TransformObservation
class NormalizeObservationSpace(TransformObservation):
def __init__(self, env, f):
super(NormalizeObservationSpace, self).__init__(env, f)
if isinstance(self.observation_space, Box):
self.observation_space = Box(
... | 37.714286 | 63 | 0.693182 | 58 | 528 | 6.068966 | 0.396552 | 0.255682 | 0.340909 | 0.130682 | 0.142045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217803 | 528 | 13 | 64 | 40.615385 | 0.8523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a352996b4a6e3b0789a7c184f6b0b78bb03f60c2 | 5,444 | py | Python | Mathematics_for_Machine_Learning/Linear Algebra/readonly/bearNecessities.py | PerpetualSmile/-Coursera | 485bed0f2e9026e1d66db12c158890e305c4db3d | [
"MIT"
] | 1 | 2020-12-26T12:06:37.000Z | 2020-12-26T12:06:37.000Z | Mathematics_for_Machine_Learning/Linear Algebra/readonly/bearNecessities.py | PerpetualSmile/Coursera | 485bed0f2e9026e1d66db12c158890e305c4db3d | [
"MIT"
] | null | null | null | Mathematics_for_Machine_Learning/Linear Algebra/readonly/bearNecessities.py | PerpetualSmile/Coursera | 485bed0f2e9026e1d66db12c158890e305c4db3d | [
"MIT"
] | null | null | null | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import numpy.linalg as la
bear_black = (0.141,0.11,0.11)
bear_white = (0.89,0.856,0.856)
magenta = (0xfc/255, 0x75/255, 0xdb/255) # Brighter magenta
orange = (218/255, 171/255, 115/255)
green = (175/255, 219/255, 133/255)
white ... | 51.847619 | 97 | 0.549229 | 869 | 5,444 | 3.418872 | 0.302647 | 0.033659 | 0.013463 | 0.010098 | 0.190845 | 0.162908 | 0.144396 | 0.144059 | 0.144059 | 0.141367 | 0 | 0.533514 | 0.254592 | 5,444 | 104 | 98 | 52.346154 | 0.19862 | 0.002939 | 0 | 0 | 0 | 0 | 0.000553 | 0 | 0 | 0 | 0.002212 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.041237 | 0 | 0.082474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a36aaf1247350393af8931185378670c243c5fe2 | 547 | py | Python | PE-Python/P085/P085.py | Tiny-Snow/Project-Euler-Problem-Solutions | 71f25a0ee487bad9130daf653e9eb0397c042f6f | [
"Apache-2.0"
] | 1 | 2021-03-17T08:53:53.000Z | 2021-03-17T08:53:53.000Z | PE-Python/P085/P085.py | Tiny-Snow/Project-Euler-Problem-Solutions | 71f25a0ee487bad9130daf653e9eb0397c042f6f | [
"Apache-2.0"
] | null | null | null | PE-Python/P085/P085.py | Tiny-Snow/Project-Euler-Problem-Solutions | 71f25a0ee487bad9130daf653e9eb0397c042f6f | [
"Apache-2.0"
] | null | null | null | # -*- coding:UTF-8 -*-
# Author:Tiny Snow
# Date: Tue, 30 Mar 2021, 17:09
# Project Euler # 085 Counting rectangles
#=============================================================Solution
def get_rectangles(m, n):
return m * (m + 1) * n * (n + 1) // 4
diff = 10000
area = 0
for m in range(1, int(2 * (2 ** 0.5) * 10... | 32.176471 | 70 | 0.453382 | 86 | 547 | 2.848837 | 0.488372 | 0.032653 | 0.171429 | 0.183673 | 0.269388 | 0.269388 | 0.269388 | 0.269388 | 0 | 0 | 0 | 0.118812 | 0.261426 | 547 | 17 | 71 | 32.176471 | 0.487624 | 0.319927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0.1 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a36c601e88bcbc82de4fdac974b1fe9f6861728a | 9,501 | py | Python | server/server_pb2_grpc.py | MruV-RP/mruv-pb-python | 2a640f7667d23f39e50ccc9ba73c98138c6839b5 | [
"MIT"
] | null | null | null | server/server_pb2_grpc.py | MruV-RP/mruv-pb-python | 2a640f7667d23f39e50ccc9ba73c98138c6839b5 | [
"MIT"
] | 1 | 2020-11-25T09:52:48.000Z | 2020-11-25T09:52:48.000Z | server/server_pb2_grpc.py | MruV-RP/mruv-pb-python | 2a640f7667d23f39e50ccc9ba73c98138c6839b5 | [
"MIT"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from server import server_model_pb2 as server_dot_server__model__pb2
from server import server_pb2 as server_dot_server__pb2
class MruVServerServiceStub(object... | 45.45933 | 116 | 0.679718 | 842 | 9,501 | 7.342043 | 0.149644 | 0.046587 | 0.077645 | 0.055322 | 0.747654 | 0.71045 | 0.570527 | 0.466192 | 0.3879 | 0.3879 | 0 | 0.004781 | 0.251447 | 9,501 | 208 | 117 | 45.677885 | 0.864454 | 0.083886 | 0 | 0.490798 | 1 | 0 | 0.095006 | 0.058653 | 0 | 0 | 0 | 0.004808 | 0 | 1 | 0.07362 | false | 0 | 0.018405 | 0.030675 | 0.141104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
a37dd201e0d1596b27dfecaed0acc6886461e3e2 | 334 | py | Python | Kattis/erase.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | null | null | null | Kattis/erase.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | null | null | null | Kattis/erase.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | 1 | 2020-06-22T21:07:24.000Z | 2020-06-22T21:07:24.000Z | N = int(input())
before = input()
after = input()
if N % 2 == 0:
print("Deletion succeeded" if before == after else "Deletion failed")
else:
find = True
for i in range(len(before)):
if before[i] == after[i]:
find = False
break
print("Deletion succeeded" if find else "Del... | 25.692308 | 73 | 0.583832 | 45 | 334 | 4.333333 | 0.488889 | 0.133333 | 0.225641 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.284431 | 334 | 13 | 74 | 25.692308 | 0.807531 | 0 | 0 | 0 | 0 | 0 | 0.197015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a388a4c389e16ea72e99e1ad56ce64904e8d1e0e | 1,007 | py | Python | camp/Core/_UnstructuredGridClass.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | 4 | 2021-03-02T05:18:06.000Z | 2021-11-29T16:06:39.000Z | camp/Core/_UnstructuredGridClass.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | null | null | null | camp/Core/_UnstructuredGridClass.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | 1 | 2021-03-26T20:38:11.000Z | 2021-03-26T20:38:11.000Z | import torch
class UnstructuredGrid:
def __init__(self, vertices, indices, per_vert_values=None, per_index_values=None,
device='cpu', dtype=torch.float32):
self.vertices = vertices
self.indices = indices
self.per_vert_value = per_vert_values
self.per_index_value =... | 27.972222 | 101 | 0.61569 | 123 | 1,007 | 4.601626 | 0.341463 | 0.04947 | 0.045936 | 0.063604 | 0.162544 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002797 | 0.28997 | 1,007 | 35 | 102 | 28.771429 | 0.788811 | 0 | 0 | 0.148148 | 0 | 0 | 0.008937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.037037 | 0.037037 | 0.111111 | 0.444444 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
a38f315dfc378d7af6e63ae5467ab5b474438185 | 830 | py | Python | deciphon_api/api/api.py | EBI-Metagenomics/deciphon-api | d2435d84aaf4cc0ffe24b6ac7a01d8cb527b3ff2 | [
"MIT"
] | null | null | null | deciphon_api/api/api.py | EBI-Metagenomics/deciphon-api | d2435d84aaf4cc0ffe24b6ac7a01d8cb527b3ff2 | [
"MIT"
] | null | null | null | deciphon_api/api/api.py | EBI-Metagenomics/deciphon-api | d2435d84aaf4cc0ffe24b6ac7a01d8cb527b3ff2 | [
"MIT"
] | null | null | null | from fastapi import APIRouter, Request
from starlette.status import HTTP_200_OK
from deciphon_api.api import dbs, hmms, jobs, prods, scans, sched, seqs
from deciphon_api.core.responses import PrettyJSONResponse
router = APIRouter()
router.include_router(dbs.router)
router.include_router(hmms.router)
router.include_r... | 28.62069 | 71 | 0.777108 | 114 | 830 | 5.526316 | 0.421053 | 0.144444 | 0.211111 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008208 | 0.119277 | 830 | 28 | 72 | 29.642857 | 0.853625 | 0 | 0 | 0 | 0 | 0 | 0.053012 | 0.026506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a391a26073dbc0740f14e1f06e3f288ab2daa392 | 68 | py | Python | PyFSM/pyfsm/utils/__init__.py | wafec/wafec-py-fsm | 444b7b797411daa3186cf812535a660404951d00 | [
"MIT"
] | null | null | null | PyFSM/pyfsm/utils/__init__.py | wafec/wafec-py-fsm | 444b7b797411daa3186cf812535a660404951d00 | [
"MIT"
] | null | null | null | PyFSM/pyfsm/utils/__init__.py | wafec/wafec-py-fsm | 444b7b797411daa3186cf812535a660404951d00 | [
"MIT"
] | null | null | null | from .list_utils import ListUtils
__all__ = [
'ListUtils'
] | 13.6 | 34 | 0.661765 | 7 | 68 | 5.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 68 | 5 | 35 | 13.6 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 2 |
a3a1003e07fedaeafced6798c19b49556228be59 | 1,104 | py | Python | unobase/api/constants.py | unomena/unobase | 175e768afa1608f9f34d1e5a053763ad27db0f7e | [
"BSD-3-Clause"
] | null | null | null | unobase/api/constants.py | unomena/unobase | 175e768afa1608f9f34d1e5a053763ad27db0f7e | [
"BSD-3-Clause"
] | null | null | null | unobase/api/constants.py | unomena/unobase | 175e768afa1608f9f34d1e5a053763ad27db0f7e | [
"BSD-3-Clause"
] | null | null | null | '''
Created on 15 Jan 2013
@author: euan
'''
from django.conf import settings
REQUEST_STATUS_CREATED = 0
REQUEST_STATUS_SUCCESS = 1
REQUEST_STATUS_ERROR = 2
REQUEST_STATUS_RETRY = 3
REQUEST_STATUS_ABORT = 4
REQUEST_STATUS_CHOICES = ((REQUEST_STATUS_CREATED,'Created'),
(REQUEST_STATUS_SUCCE... | 29.837838 | 79 | 0.602355 | 108 | 1,104 | 5.666667 | 0.259259 | 0.276144 | 0.21732 | 0.132353 | 0.30719 | 0.25817 | 0.153595 | 0 | 0 | 0 | 0 | 0.021248 | 0.317935 | 1,104 | 37 | 80 | 29.837838 | 0.791501 | 0.033514 | 0 | 0.083333 | 0 | 0 | 0.058491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e555c0b62aaf97f6a3ac85057f9937c3fe02c23 | 24,663 | py | Python | ffmpeg/filters/afilters.py | busterbeam/ffmpeg-generator | 7351e43e62d2dcdfa5d5460386c8af398fd31aee | [
"MIT"
] | 23 | 2021-05-04T05:43:00.000Z | 2022-03-16T15:38:56.000Z | ffmpeg/filters/afilters.py | cxfans/ffmpeg-generator | ce3baf1bb4f355627790add8f7fc11e2841c526a | [
"MIT"
] | 8 | 2021-05-07T19:09:33.000Z | 2021-11-22T02:59:48.000Z | ffmpeg/filters/afilters.py | cxfans/ffmpeg-generator | ce3baf1bb4f355627790add8f7fc11e2841c526a | [
"MIT"
] | 6 | 2021-05-04T05:43:04.000Z | 2021-11-03T15:49:24.000Z | '''
Date: 2021.02-28 22:29:00
LastEditors: Rustle Karl
LastEditTime: 2021.04.25 13:31:49
'''
from ..nodes import FilterableStream, Stream, filterable
from .avfilters import filter
__all__ = []
"""Audio Filters
https://ffmpeg.org/ffmpeg-filters.html#Audio-Filters
"""
@filterable()
def acompressor(stream: Stream, *a... | 33.784932 | 118 | 0.70032 | 2,716 | 24,663 | 6.179308 | 0.071429 | 0.128702 | 0.099267 | 0.14181 | 0.662158 | 0.492165 | 0.492165 | 0.48573 | 0.479533 | 0.466663 | 0 | 0.001615 | 0.121113 | 24,663 | 729 | 119 | 33.831276 | 0.772652 | 0.228804 | 0 | 0.329609 | 0 | 0 | 0.000769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.324022 | false | 0.027933 | 0.005587 | 0 | 0.653631 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
6e57fe0634a0cec7cca399bba292e130ce0be123 | 566 | py | Python | micro_shop/staff/views.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 1 | 2021-06-17T15:11:03.000Z | 2021-06-17T15:11:03.000Z | micro_shop/staff/views.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 7 | 2020-06-30T11:25:28.000Z | 2021-06-09T18:51:55.000Z | micro_shop/staff/views.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 5 | 2020-10-02T20:01:43.000Z | 2021-06-21T08:57:29.000Z | from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
from django.views.generic import UpdateView
from staff.models import UserProfile
class UserProfileUpdate(LoginRequiredMixin, SuccessMessageMixin, UpdateView):
model = UserProfile
success_me... | 33.294118 | 77 | 0.734982 | 55 | 566 | 7.472727 | 0.727273 | 0.072993 | 0.082725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164311 | 566 | 16 | 78 | 35.375 | 0.868922 | 0 | 0 | 0 | 0 | 0 | 0.204947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.692308 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6e5ad86597d3effeb590c10f2b4ab57be6067003 | 2,428 | py | Python | gcs_operations/permissions_issuer.py | openskies-sh/aerobridge | 130cb4b23bae0b902d96c56aa316fd5c1cb68296 | [
"Apache-2.0"
] | 5 | 2020-11-26T17:34:39.000Z | 2022-01-29T17:14:22.000Z | gcs_operations/permissions_issuer.py | openskies-sh/aerobridge | 130cb4b23bae0b902d96c56aa316fd5c1cb68296 | [
"Apache-2.0"
] | 13 | 2021-05-21T10:46:15.000Z | 2021-08-09T17:07:46.000Z | gcs_operations/permissions_issuer.py | openskies-sh/aerobridge | 130cb4b23bae0b902d96c56aa316fd5c1cb68296 | [
"Apache-2.0"
] | 11 | 2020-12-02T15:49:47.000Z | 2021-11-23T19:48:39.000Z | from gcs_operations.models import FlightOperation, FlightPermission
import json
import arrow
from pki_framework import encrpytion_util
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from django.conf import settings
from pki_framework.models import AerobridgeCrede... | 39.803279 | 121 | 0.698929 | 303 | 2,428 | 5.323432 | 0.326733 | 0.066956 | 0.065096 | 0.039058 | 0.132672 | 0.132672 | 0.059516 | 0.059516 | 0.059516 | 0 | 0 | 0.014995 | 0.20346 | 2,428 | 60 | 122 | 40.466667 | 0.819028 | 0.682867 | 0 | 0 | 0 | 0 | 0.013755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.625 | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6e643bd6ec7b834cc3ffc511e2bda3e1eb27936b | 865 | py | Python | crowd_anki/anki/adapters/anki_deck.py | ll-in-anki/CrowdAnki | b25eace61c2ddbc4dad078b83093b291581c0d87 | [
"MIT"
] | 391 | 2016-08-31T21:55:07.000Z | 2022-03-30T16:30:12.000Z | crowd_anki/anki/adapters/anki_deck.py | ll-in-anki/CrowdAnki | b25eace61c2ddbc4dad078b83093b291581c0d87 | [
"MIT"
] | 150 | 2016-09-01T00:35:35.000Z | 2022-03-30T23:26:48.000Z | crowd_anki/anki/adapters/anki_deck.py | ll-in-anki/CrowdAnki | b25eace61c2ddbc4dad078b83093b291581c0d87 | [
"MIT"
] | 51 | 2016-09-04T17:02:39.000Z | 2022-02-04T11:49:10.000Z | from cached_property import cached_property
from dataclasses import dataclass
from typing import Callable
@dataclass
class AnkiDeck:
_data: dict
deck_name_separator = '::'
@property
def data(self):
return self._data
@property
def is_dynamic(self):
return bool(self.data['dyn... | 20.116279 | 75 | 0.668208 | 100 | 865 | 5.5 | 0.29 | 0.1 | 0.101818 | 0.069091 | 0.210909 | 0.210909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233526 | 865 | 42 | 76 | 20.595238 | 0.829563 | 0 | 0 | 0.275862 | 0 | 0 | 0.010405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.103448 | 0.172414 | 0.689655 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
6e81c0dff689c7dd23e47b88c8acc7e0cc1cf740 | 885 | py | Python | sc2agents/learning/deep/keras/network.py | jawoszek/sc2-intelligent-agents | 4eff0fe525bdc766c6ee36af7fe7ed890e86353e | [
"Apache-2.0"
] | null | null | null | sc2agents/learning/deep/keras/network.py | jawoszek/sc2-intelligent-agents | 4eff0fe525bdc766c6ee36af7fe7ed890e86353e | [
"Apache-2.0"
] | null | null | null | sc2agents/learning/deep/keras/network.py | jawoszek/sc2-intelligent-agents | 4eff0fe525bdc766c6ee36af7fe7ed890e86353e | [
"Apache-2.0"
] | null | null | null | from keras.utils import to_categorical
from numpy import array
import sc2agents.learning.deep.keras.parsers as parsers
def train(model, input_data, output_data, epochs):
x_train = array(input_data)
y_train = to_categorical(array(output_data).T[0], num_classes=2)
model.fit(x_train, y_train, epochs=epochs,... | 30.517241 | 69 | 0.722034 | 125 | 885 | 4.896 | 0.424 | 0.058824 | 0.045752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021918 | 0.175141 | 885 | 28 | 70 | 31.607143 | 0.816438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6e8229ddd4deceb52130dfea853f3d4016ccf290 | 4,282 | py | Python | genRandInputs.py | deehzee/affine-charform | e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2 | [
"MIT"
] | 2 | 2019-04-13T03:50:22.000Z | 2021-03-02T12:34:47.000Z | genRandInputs.py | deehzee/affine-charform | e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2 | [
"MIT"
] | null | null | null | genRandInputs.py | deehzee/affine-charform | e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2 | [
"MIT"
] | null | null | null | # genRandInput.py - Generate ranodom input
def random_inputs(N = 5, maxvarn = 4, maxs = 3):
# N = size of each sample size for each kind
# maxvarn = maximum variation for n
# maxs = maximum value for s_i
# X = type (A, B, C, D, E or F)
# n = subscript
# r = superscript
# S = specialization
... | 24.05618 | 67 | 0.456796 | 622 | 4,282 | 3.075563 | 0.157556 | 0.08782 | 0.020387 | 0.069002 | 0.474647 | 0.447987 | 0.447987 | 0.447987 | 0.447987 | 0.447987 | 0 | 0.025621 | 0.389304 | 4,282 | 177 | 68 | 24.19209 | 0.705927 | 0.130546 | 0 | 0.552846 | 1 | 0 | 0.063229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01626 | null | null | 0.105691 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e9117aaa8aae74ff224322e4a6d8b31a361afd5 | 265 | py | Python | FusionIIIT/applications/eis/api/urls.py | 29rj/Fusion | bc2941a67532e183adeb0bc4042df0b182b9e3aa | [
"bzip2-1.0.6"
] | 29 | 2019-02-20T15:35:33.000Z | 2022-03-22T11:10:57.000Z | FusionIIIT/applications/eis/api/urls.py | 29rj/Fusion | bc2941a67532e183adeb0bc4042df0b182b9e3aa | [
"bzip2-1.0.6"
] | 409 | 2019-01-17T19:30:51.000Z | 2022-03-31T16:28:45.000Z | FusionIIIT/applications/eis/api/urls.py | 29rj/Fusion | bc2941a67532e183adeb0bc4042df0b182b9e3aa | [
"bzip2-1.0.6"
] | 456 | 2019-01-12T11:01:13.000Z | 2022-03-30T17:06:52.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
# generic profile endpoint
url(r'^profile/(?P<username>\w+)/', views.profile, name='profile-api'),
# current user profile
url(r'^profile/', views.profile, name='profile-api'),
]
| 24.090909 | 75 | 0.667925 | 35 | 265 | 5.057143 | 0.542857 | 0.045198 | 0.124294 | 0.259887 | 0.293785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166038 | 265 | 10 | 76 | 26.5 | 0.800905 | 0.169811 | 0 | 0 | 0 | 0 | 0.267281 | 0.124424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6ea3a14c98a56d04f8560bf90001b1dffc5e13bf | 418 | py | Python | bin/reverseComplement.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | 1 | 2015-09-16T07:53:18.000Z | 2015-09-16T07:53:18.000Z | bin/reverseComplement.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | null | null | null | bin/reverseComplement.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | 3 | 2016-01-02T16:34:59.000Z | 2021-07-21T04:21:55.000Z | #!/usr/bin/env python
"""
reverse_comp.py <filename>
Prints the reverse complement of a DNA string (in fasta format).
"""
import sys
from mungo import fasta
from mungo import sequence
if len(sys.argv)!=2 or '-h' in sys.argv or '--help' in sys.argv:
sys.exit(__doc__)
for h,s in fasta.FastaFile(sys.argv[1]):
... | 18.173913 | 64 | 0.672249 | 68 | 418 | 4.058824 | 0.602941 | 0.101449 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0059 | 0.188995 | 418 | 22 | 65 | 19 | 0.80826 | 0.047847 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.222222 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6eb89a603e03e6eaa71c1f1aeef397936c4b0b21 | 2,338 | py | Python | base-part1/rest_api/api/serializers.py | AETT-UA/ws_deployment | 4c058f9023137ad75fddfc76ffb0c774635cde9d | [
"Apache-2.0"
] | 4 | 2021-04-21T18:07:51.000Z | 2021-05-11T16:57:06.000Z | base-part2/rest_api/api/serializers.py | AETT-UA/ws_deployment | 4c058f9023137ad75fddfc76ffb0c774635cde9d | [
"Apache-2.0"
] | null | null | null | base-part2/rest_api/api/serializers.py | AETT-UA/ws_deployment | 4c058f9023137ad75fddfc76ffb0c774635cde9d | [
"Apache-2.0"
] | 3 | 2021-05-05T15:50:14.000Z | 2022-01-31T18:37:36.000Z | from rest_framework import serializers
from api.models import Attendance, CourseUnit, Department, Student
class LoginSerializer(serializers.Serializer):
email = serializers.EmailField()
password = serializers.CharField()
class UserSerializer(serializers.Serializer):
email = serializers.EmailField()
... | 28.864198 | 73 | 0.742943 | 215 | 2,338 | 7.897674 | 0.367442 | 0.117786 | 0.070671 | 0.061837 | 0.159011 | 0.088339 | 0.088339 | 0.088339 | 0 | 0 | 0 | 0 | 0.167665 | 2,338 | 80 | 74 | 29.225 | 0.872559 | 0 | 0 | 0.169811 | 0 | 0 | 0.023097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.09434 | 0.037736 | 0 | 0.754717 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
6ebcbccb7c67dc754160498a2dbb8b77e91a93fd | 2,124 | py | Python | tests/test_definitionlist.py | al3xandru/html2md | fe9c49c7a263f4236a057763d9ad68d237e8cf15 | [
"RSA-MD"
] | 8 | 2015-02-14T04:30:16.000Z | 2019-07-10T05:06:49.000Z | tests/test_definitionlist.py | al3xandru/html2md | fe9c49c7a263f4236a057763d9ad68d237e8cf15 | [
"RSA-MD"
] | 2 | 2015-02-20T12:16:54.000Z | 2017-09-21T10:02:53.000Z | tests/test_definitionlist.py | al3xandru/html2md | fe9c49c7a263f4236a057763d9ad68d237e8cf15 | [
"RSA-MD"
] | 4 | 2016-02-06T04:28:16.000Z | 2021-04-22T00:12:39.000Z | import unittest
from context import html2md
from assertions import assertEq
class DefinitioListTests(unittest.TestCase):
def test_basic(self):
in_html = u'''
<dl>
<dt>Apple</dt>
<dd>Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.</dd>
<dt>Orange</dt>
<dd>The fruit of an evergreen tr... | 21.029703 | 74 | 0.669962 | 333 | 2,124 | 4.162162 | 0.186186 | 0.060606 | 0.08658 | 0.095238 | 0.72583 | 0.708514 | 0.697691 | 0.697691 | 0.697691 | 0.697691 | 0 | 0.00886 | 0.202919 | 2,124 | 101 | 75 | 21.029703 | 0.809805 | 0 | 0 | 0.623377 | 0 | 0 | 0.587294 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 1 | 0.064935 | false | 0 | 0.038961 | 0.012987 | 0.12987 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6ebf414112bc12be933b98dfb33858e211cd4a3f | 2,205 | py | Python | pytorchrl/agent/env/env_wrappers.py | PyTorchRL/pytorchrl | 055843ab58a06ba1f77da73082be6f23cf453ddd | [
"MIT"
] | 20 | 2021-01-12T16:31:34.000Z | 2022-03-18T00:31:29.000Z | pytorchrl/agent/env/env_wrappers.py | PyTorchRL/pytorchrl | 055843ab58a06ba1f77da73082be6f23cf453ddd | [
"MIT"
] | 4 | 2021-01-19T09:29:58.000Z | 2021-09-29T12:21:08.000Z | pytorchrl/agent/env/env_wrappers.py | PyTorchRL/pytorchrl | 055843ab58a06ba1f77da73082be6f23cf453ddd | [
"MIT"
] | 2 | 2021-01-12T16:07:37.000Z | 2021-02-01T21:09:14.000Z | import gym
from gym.spaces.box import Box
class TransposeImagesIfRequired(gym.ObservationWrapper):
"""
When environment observations are images, this wrapper transposes
the axis. It is useful when the images have shape (W,H,C), as they can be
transposed "on the fly" to (C,W,H) for PyTorch convolutions... | 39.375 | 94 | 0.570975 | 283 | 2,205 | 4.335689 | 0.261484 | 0.221679 | 0.260799 | 0.06846 | 0.449063 | 0.398533 | 0.342298 | 0.244499 | 0.182559 | 0.182559 | 0 | 0.020288 | 0.307029 | 2,205 | 56 | 95 | 39.375 | 0.782723 | 0.185488 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6ecb04355bb189b8aed688f26403776f38e23b06 | 2,637 | py | Python | src/lamuda/date/common_date.py | hanadumal/lamud | 092e036c4c1a0420b6f5c16148252288f42f3271 | [
"MIT"
] | null | null | null | src/lamuda/date/common_date.py | hanadumal/lamud | 092e036c4c1a0420b6f5c16148252288f42f3271 | [
"MIT"
] | null | null | null | src/lamuda/date/common_date.py | hanadumal/lamud | 092e036c4c1a0420b6f5c16148252288f42f3271 | [
"MIT"
] | null | null | null | from datetime import date
from datetime import datetime
from datetime import timedelta
from datetime import timezone
class CommonDate(object):
DEFAULT_ZONE = timezone(offset=timedelta(hours=8))
@staticmethod
def today(tz=DEFAULT_ZONE):
return date.today()
@staticmethod
def today_time(tz=... | 27.757895 | 90 | 0.63595 | 338 | 2,637 | 4.843195 | 0.153846 | 0.120953 | 0.135003 | 0.127673 | 0.646915 | 0.627978 | 0.453268 | 0.382407 | 0.382407 | 0.346976 | 0 | 0.014771 | 0.229807 | 2,637 | 94 | 91 | 28.053191 | 0.791236 | 0.074706 | 0 | 0.316667 | 0 | 0 | 0.035638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.283333 | false | 0 | 0.066667 | 0.183333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
6ecceb4a0eb5ee413f513b8996070a1dbea9d970 | 1,176 | py | Python | autotrade/account_manager.py | rezabmirzaei/tradebot | 2ee94de2ad3fd5d1474b5628bb8777fff1b0d412 | [
"Unlicense"
] | null | null | null | autotrade/account_manager.py | rezabmirzaei/tradebot | 2ee94de2ad3fd5d1474b5628bb8777fff1b0d412 | [
"Unlicense"
] | null | null | null | autotrade/account_manager.py | rezabmirzaei/tradebot | 2ee94de2ad3fd5d1474b5628bb8777fff1b0d412 | [
"Unlicense"
] | 1 | 2021-03-05T12:35:52.000Z | 2021-03-05T12:35:52.000Z | import logging
from typing import List
from autotrade.session_handler import SessionHandler
log = logging.getLogger('tradebot.log')
class AccountManager:
def __init__(self, config: dict, session_handler: SessionHandler) -> None:
self.session_handler: SessionHandler = session_handler
self.invest... | 34.588235 | 82 | 0.690476 | 150 | 1,176 | 5.2 | 0.406667 | 0.125641 | 0.092308 | 0.069231 | 0.162821 | 0.162821 | 0.162821 | 0.162821 | 0.115385 | 0.115385 | 0 | 0.004292 | 0.207483 | 1,176 | 33 | 83 | 35.636364 | 0.832618 | 0.081633 | 0 | 0.136364 | 0 | 0 | 0.053122 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.227273 | false | 0 | 0.136364 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
42b30eb189150f31673ef4c6485a49c0aca1398f | 539 | py | Python | web/app/syzygy/view_history/__init__.py | aaronSchanck/SepTech | 323b7db183928b43576b0f13477fccdd192fd3fa | [
"Apache-2.0"
] | 1 | 2021-09-10T17:51:40.000Z | 2021-09-10T17:51:40.000Z | web/app/syzygy/view_history/__init__.py | ItsmeCurly/SepTech | 323b7db183928b43576b0f13477fccdd192fd3fa | [
"Apache-2.0"
] | 2 | 2021-04-30T15:57:12.000Z | 2021-05-01T17:55:51.000Z | web/app/syzygy/view_history/__init__.py | ItsmeCurly/SepTech | 323b7db183928b43576b0f13477fccdd192fd3fa | [
"Apache-2.0"
] | 1 | 2021-09-10T17:51:10.000Z | 2021-09-10T17:51:10.000Z | """/web/app/syzygy/view_history/__init__.py
Author: Adam Green (adam.green1@maine.edu),
Ashley Drexler (ashley.drexler@maine.edu)
[Description]
Classes:
[ClassesList]
Functions:
[FunctionsList]
"""
import logging
from .model import ViewHistory
from .schema import ViewHistorySchema
BASE_ROUTE =... | 16.84375 | 69 | 0.734694 | 69 | 539 | 5.478261 | 0.623188 | 0.116402 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002179 | 0.148423 | 539 | 31 | 70 | 17.387097 | 0.821351 | 0.393321 | 0 | 0 | 0 | 0 | 0.109718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
42d788c8dbe7014e21512cdd163356bf808f3fdd | 137 | py | Python | src/test.py | davidkimolo/simple_image_editor | 891e4cdce70901df540c8c4a73497c85693b052c | [
"MIT"
] | null | null | null | src/test.py | davidkimolo/simple_image_editor | 891e4cdce70901df540c8c4a73497c85693b052c | [
"MIT"
] | null | null | null | src/test.py | davidkimolo/simple_image_editor | 891e4cdce70901df540c8c4a73497c85693b052c | [
"MIT"
] | null | null | null | from PIL import Image
my_image = Image.open("assets/images/splashscreen_background.png")
width, height = my_image.size
print(height)
| 17.125 | 66 | 0.781022 | 20 | 137 | 5.2 | 0.75 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116788 | 137 | 7 | 67 | 19.571429 | 0.859504 | 0 | 0 | 0 | 0 | 0 | 0.29927 | 0.29927 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 | 0 | 0 | 0 | 0 | 2 |
42debcffd806c115b3d4bd83ca13e1f13c433bbf | 1,311 | py | Python | pyspawn/_graph/table.py | Tsanton/pyspawn | e539e0170f65a96e2579f255888575f6710db561 | [
"Apache-2.0"
] | null | null | null | pyspawn/_graph/table.py | Tsanton/pyspawn | e539e0170f65a96e2579f255888575f6710db561 | [
"Apache-2.0"
] | null | null | null | pyspawn/_graph/table.py | Tsanton/pyspawn | e539e0170f65a96e2579f255888575f6710db561 | [
"Apache-2.0"
] | null | null | null | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from pyspawn._graph.relationship import Relationship
from dataclasses import dataclass
from typing import Set
@dataclass(frozen=False)
class Table:
"""Table class"""
schema: str
table_name: str
def __post_init__(self):
self.relationship... | 31.97561 | 121 | 0.691076 | 163 | 1,311 | 5.349693 | 0.331288 | 0.082569 | 0.074541 | 0.050459 | 0.276376 | 0.098624 | 0.098624 | 0 | 0 | 0 | 0 | 0 | 0.208238 | 1,311 | 41 | 122 | 31.97561 | 0.840077 | 0.216629 | 0 | 0 | 0 | 0 | 0.187625 | 0.186627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.173913 | 0 | 0.782609 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
42eb886a799cd5a586de9a33ab7d7606a91d724c | 1,677 | py | Python | xcube_hub/models/cubegen_config_code_config_file_set.py | bcdev/xcube-hub | 8eab0fccd340aa487560a41ae7c59dedb0cb08a8 | [
"MIT"
] | 3 | 2021-03-08T09:47:23.000Z | 2021-09-13T04:53:42.000Z | xcube_hub/models/cubegen_config_code_config_file_set.py | bcdev/xcube-hub | 8eab0fccd340aa487560a41ae7c59dedb0cb08a8 | [
"MIT"
] | 9 | 2021-06-23T15:33:04.000Z | 2022-03-30T08:30:17.000Z | xcube_hub/models/cubegen_config_code_config_file_set.py | bcdev/xcube-hub | 8eab0fccd340aa487560a41ae7c59dedb0cb08a8 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from xcube_hub.models.base_model_ import Model
from xcube_hub import util
class CubegenConfigCodeConfigFileSet(Model):
"""NOTE: This class is auto generated by Op... | 25.8 | 107 | 0.641026 | 178 | 1,677 | 5.91573 | 0.382022 | 0.034188 | 0.205128 | 0.061728 | 0.270655 | 0.098765 | 0.098765 | 0 | 0 | 0 | 0 | 0.013201 | 0.277281 | 1,677 | 64 | 108 | 26.203125 | 0.855611 | 0.467501 | 0 | 0.086957 | 0 | 0 | 0.056834 | 0.040595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0 | 0.521739 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
42f0fb077af0807cf18d0db0a4ebd341c49c0ef7 | 414 | py | Python | wrappers.py | raymundosaraiva/moviestar_bot | ea10a7dcfbf89172f66b45f2cee05fdc2596c3b7 | [
"MIT"
] | null | null | null | wrappers.py | raymundosaraiva/moviestar_bot | ea10a7dcfbf89172f66b45f2cee05fdc2596c3b7 | [
"MIT"
] | null | null | null | wrappers.py | raymundosaraiva/moviestar_bot | ea10a7dcfbf89172f66b45f2cee05fdc2596c3b7 | [
"MIT"
] | null | null | null | from telegram import ChatAction
from functools import wraps
def send_typing_action(func):
"""Sends typing action while processing func command."""
@wraps(func)
def command_func(update, context, *args, **kwargs):
context.bot.send_chat_action(chat_id=update.effective_message.chat_id, action=ChatAc... | 27.6 | 104 | 0.731884 | 53 | 414 | 5.54717 | 0.471698 | 0.081633 | 0.115646 | 0.142857 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171498 | 414 | 14 | 105 | 29.571429 | 0.857143 | 0.120773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
6e0a915556ef1b1ec2b6032d70ff048d336e1f15 | 8,573 | py | Python | farecalculator.py | bliksemlabs/Glassbox | 6e9ffe4208ec258fa6392e30cc2b8e0ccc605f17 | [
"MIT"
] | 1 | 2017-06-16T16:43:24.000Z | 2017-06-16T16:43:24.000Z | farecalculator.py | bliksemlabs/Glassbox | 6e9ffe4208ec258fa6392e30cc2b8e0ccc605f17 | [
"MIT"
] | null | null | null | farecalculator.py | bliksemlabs/Glassbox | 6e9ffe4208ec258fa6392e30cc2b8e0ccc605f17 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2014 Thomas Koch
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 40.248826 | 169 | 0.650414 | 1,089 | 8,573 | 4.932048 | 0.214876 | 0.046919 | 0.013405 | 0.023459 | 0.353193 | 0.298641 | 0.253026 | 0.216533 | 0.216533 | 0.216533 | 0 | 0.029979 | 0.268517 | 8,573 | 212 | 170 | 40.438679 | 0.826503 | 0.076636 | 0 | 0.391304 | 0 | 0.006211 | 0.117268 | 0.014977 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.080745 | 0.018634 | null | null | 0.006211 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6e13a96e632034fdebb7c762a6c1d8d4230e9842 | 372 | py | Python | searching/search_by_google.py | dimishpatriot/image_parser | 92594bd2b1b2070ecea4e53dba00c7b4bba6af62 | [
"MIT"
] | 2 | 2021-11-11T14:58:42.000Z | 2021-11-11T14:58:48.000Z | searching/search_by_google.py | dimishpatriot/image_parser | 92594bd2b1b2070ecea4e53dba00c7b4bba6af62 | [
"MIT"
] | 1 | 2021-03-31T19:59:55.000Z | 2021-03-31T19:59:55.000Z | searching/search_by_google.py | dimishpatriot/image_parser | 92594bd2b1b2070ecea4e53dba00c7b4bba6af62 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# search_by_google.py
# github.com/dimishpatriot/img_pars
from searching import search_main
class GoogleSearch(search_main.Search):
search_types = {}
size_types = {}
gamma_types = {}
orient_types = {}
type_types = {}
maximum_pics = 100
def __init__(self, path):
... | 17.714286 | 39 | 0.637097 | 45 | 372 | 4.911111 | 0.711111 | 0.090498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0.25 | 372 | 20 | 40 | 18.6 | 0.777778 | 0.201613 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.083333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
6e23eb19ef5870daff45b080ad9bb6cad51eaa2b | 215 | py | Python | desafio046.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | desafio046.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | desafio046.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | from time import sleep
import emoji
print('AGUARDE A CONTAGEM PARA OS FOGOS')
for c in range(10, 0, -1):
print(c)
sleep(1)
print(emoji.emojize("Detonação dos fogos :sunny: ", use_aliases=True))
print('FIM') | 23.888889 | 70 | 0.702326 | 36 | 215 | 4.166667 | 0.75 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.162791 | 215 | 9 | 71 | 23.888889 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
6e2954015f0965167926dd7139658ee07429bc63 | 6,723 | py | Python | nuage_neutron/plugins/nuage_ml2/nuage_ml2_wrapper.py | krissterckx/nuage-openstack-neutron | ff0ddd995328c502a0b903a2f2bc30ebbb3e9ddb | [
"Apache-2.0"
] | null | null | null | nuage_neutron/plugins/nuage_ml2/nuage_ml2_wrapper.py | krissterckx/nuage-openstack-neutron | ff0ddd995328c502a0b903a2f2bc30ebbb3e9ddb | [
"Apache-2.0"
] | null | null | null | nuage_neutron/plugins/nuage_ml2/nuage_ml2_wrapper.py | krissterckx/nuage-openstack-neutron | ff0ddd995328c502a0b903a2f2bc30ebbb3e9ddb | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Nokia
#
# 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... | 37.769663 | 79 | 0.681392 | 740 | 6,723 | 5.994595 | 0.205405 | 0.056808 | 0.129621 | 0.060866 | 0.499549 | 0.377818 | 0.298918 | 0.188909 | 0.169522 | 0.169522 | 0 | 0.008808 | 0.240071 | 6,723 | 177 | 80 | 37.983051 | 0.859464 | 0.094601 | 0 | 0.301587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.087302 | 0.142857 | 0.47619 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
6e3029cba6029a34f5322a6bcd9f30471572e629 | 189 | py | Python | aapi/__init__.py | wpk-/aapi | d8cd47c16cefa599edba5a85f86551bf6747718c | [
"MIT"
] | null | null | null | aapi/__init__.py | wpk-/aapi | d8cd47c16cefa599edba5a85f86551bf6747718c | [
"MIT"
] | null | null | null | aapi/__init__.py | wpk-/aapi | d8cd47c16cefa599edba5a85f86551bf6747718c | [
"MIT"
] | null | null | null | """
aapi.
Een typed interface voor de data API van de Gemeente Amsterdam.
"""
__version__ = '0.2.2'
__author__ = 'Paul Koppen'
__credits__ = 'Gemeente Amsterdam'
from aapi.api import API
| 17.181818 | 63 | 0.730159 | 27 | 189 | 4.666667 | 0.740741 | 0.269841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.164021 | 189 | 10 | 64 | 18.9 | 0.778481 | 0.37037 | 0 | 0 | 0 | 0 | 0.306306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e3ff40009b72ff44050f296d08804c97ade0590 | 4,233 | py | Python | src/py_dss_interface/models/Bus/BusF.py | davilamds/py_dss_interface | a447c97787aeac962381db88dd622ccb235eef4b | [
"MIT"
] | 8 | 2020-08-15T12:56:03.000Z | 2022-01-04T15:51:14.000Z | src/py_dss_interface/models/Bus/BusF.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 24 | 2021-04-24T18:33:19.000Z | 2021-11-13T14:59:54.000Z | src/py_dss_interface/models/Bus/BusF.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 7 | 2020-08-15T12:56:04.000Z | 2021-10-04T16:14:30.000Z | # -*- encoding: utf-8 -*-
"""
Created by eniocc at 11/10/2020
"""
import ctypes
from py_dss_interface.models.Base import Base
class BusF(Base):
"""
This interface can be used to read/write certain properties of the active DSS object.
The structure of the interface is as follows:
double BUSF(int... | 43.193878 | 117 | 0.6558 | 590 | 4,233 | 4.555932 | 0.237288 | 0.035714 | 0.059524 | 0.083333 | 0.531622 | 0.393229 | 0.364583 | 0.318452 | 0.25372 | 0.25372 | 0 | 0.016682 | 0.249468 | 4,233 | 97 | 118 | 43.639175 | 0.829399 | 0.372549 | 0 | 0.133333 | 0 | 0 | 0.06235 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0.355556 | false | 0 | 0.044444 | 0 | 0.777778 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
6e44102227003162a189dcc752d1e7caa86a2f9b | 1,357 | py | Python | sme/test/test_membrane.py | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 4 | 2019-07-18T15:05:09.000Z | 2020-03-14T09:50:07.000Z | sme/test/test_membrane.py | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 418 | 2020-10-08T07:42:27.000Z | 2022-03-08T12:10:52.000Z | sme/test/test_membrane.py | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 2 | 2021-09-02T11:20:38.000Z | 2021-10-13T14:05:32.000Z | import unittest
import sme
class TestMembrane(unittest.TestCase):
def test_membrane(self):
m = sme.open_example_model()
self.assertEqual(len(m.membranes), 2)
self.assertRaises(sme.InvalidArgument, lambda: m.membranes["X"])
mem = m.membranes["Outside <-> Cell"]
self.assertEq... | 43.774194 | 88 | 0.635225 | 173 | 1,357 | 4.942197 | 0.294798 | 0.22807 | 0.084211 | 0.091228 | 0.329825 | 0.261988 | 0.098246 | 0 | 0 | 0 | 0 | 0.017891 | 0.217391 | 1,357 | 30 | 89 | 45.233333 | 0.787194 | 0.039057 | 0 | 0 | 0 | 0 | 0.167435 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e4ba257edcc744415488557ba2aeb6f15a3e57e | 1,803 | py | Python | ussd/airtime_api.py | dirkcuys/save4life | 0dbc8feb0292e24177b8fcb4bd274dfc27f8264e | [
"BSD-3-Clause"
] | null | null | null | ussd/airtime_api.py | dirkcuys/save4life | 0dbc8feb0292e24177b8fcb4bd274dfc27f8264e | [
"BSD-3-Clause"
] | null | null | null | ussd/airtime_api.py | dirkcuys/save4life | 0dbc8feb0292e24177b8fcb4bd274dfc27f8264e | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from zeep import Client
import time
import logging
logger = logging.getLogger(__name__)
class InsufficientBalance(Exception):
pass
class AirtimeApiError(Exception):
pass
def pinless_recharge(transaction):
amount = transaction.amount
msisdn = transaction.user.msisdn... | 31.086207 | 92 | 0.711592 | 211 | 1,803 | 5.92891 | 0.436019 | 0.059952 | 0.026379 | 0.043165 | 0.067146 | 0.067146 | 0.067146 | 0 | 0 | 0 | 0 | 0.00756 | 0.193012 | 1,803 | 57 | 93 | 31.631579 | 0.852234 | 0.114254 | 0 | 0.052632 | 0 | 0 | 0.124607 | 0.039648 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.026316 | false | 0.052632 | 0.105263 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6e54533bbe829a4155622461678156ed91fdf48f | 73,609 | py | Python | tests/test_resources/concept_ids/municipality.py | JobtechSwe/sokannonser-api | 84214c51429fcedffa9a5d7d93afd9fdc080dcbb | [
"Apache-2.0"
] | 14 | 2018-09-12T14:08:54.000Z | 2021-09-20T11:54:20.000Z | tests/test_resources/concept_ids/municipality.py | JobtechSwe/sokannonser-api | 84214c51429fcedffa9a5d7d93afd9fdc080dcbb | [
"Apache-2.0"
] | 43 | 2018-09-25T14:39:02.000Z | 2021-10-01T08:40:23.000Z | tests/test_resources/concept_ids/municipality.py | JobtechSwe/sokannonser-api | 84214c51429fcedffa9a5d7d93afd9fdc080dcbb | [
"Apache-2.0"
] | 8 | 2018-11-21T23:51:47.000Z | 2021-06-04T10:34:16.000Z | from tests.test_resources.helper import select_random_from_list
def get_muncipalities_with_hits():
with_hits = []
for m in municipalities:
if m['hits'] > 0:
with_hits.append(m)
return with_hits
def get_ten_random_municipalities_with_hits():
return select_random_from_list(full_lis... | 63.292347 | 120 | 0.580255 | 7,949 | 73,609 | 5.187948 | 0.416405 | 0.112515 | 0.140644 | 0.021388 | 0.315575 | 0.297898 | 0.297122 | 0.297122 | 0.17515 | 0.16448 | 0 | 0.268468 | 0.16267 | 73,609 | 1,162 | 121 | 63.346816 | 0.400617 | 0 | 0 | 0.070439 | 0 | 0 | 0.575786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002309 | false | 0 | 0.001155 | 0.001155 | 0.005774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e547ba286ff8160e4b8d707f667afce26757473 | 192 | py | Python | include/syms.py | Newer-Team/NewerSMBU | 3f91885234852b5763f5c8815ea14816f3baffff | [
"MIT"
] | 7 | 2021-05-22T21:59:42.000Z | 2022-01-03T16:33:03.000Z | include/syms.py | Newer-Team/NewerSMBU | 3f91885234852b5763f5c8815ea14816f3baffff | [
"MIT"
] | null | null | null | include/syms.py | Newer-Team/NewerSMBU | 3f91885234852b5763f5c8815ea14816f3baffff | [
"MIT"
] | 2 | 2021-05-24T03:38:18.000Z | 2021-08-12T01:25:36.000Z |
names = []
addr = 0x148 + 0x4E4
while addr <= 0x148 + 0x7FC:
names.append('\t' + Name(Dword(addr)) + ' = ')
addr += 8
with open('names.txt', 'w') as f:
f.write('\n'.join(names))
| 19.2 | 50 | 0.541667 | 28 | 192 | 3.714286 | 0.714286 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 0.229167 | 192 | 9 | 51 | 21.333333 | 0.608108 | 0 | 0 | 0 | 0 | 0 | 0.089005 | 0 | 0 | 0 | 0.104712 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
28125d005b1e52a3bd748fa5c25984c9f46123e0 | 372 | py | Python | setup.py | simonblouin/montreal-py-wd | d1240ca32e0e339209a2418386c0a727c807d7ef | [
"MIT"
] | 3 | 2017-12-15T18:48:56.000Z | 2017-12-15T19:08:15.000Z | setup.py | simonblouin/montreal-py-wd | d1240ca32e0e339209a2418386c0a727c807d7ef | [
"MIT"
] | 1 | 2017-12-15T19:03:46.000Z | 2017-12-15T19:03:46.000Z | setup.py | simonblouin/montreal-py-wd | d1240ca32e0e339209a2418386c0a727c807d7ef | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='NaBlaUtils',
version='0.1',
description="Utilitaires Python pour l'analyse et la visualisation de données relatives aux étoiles naines blanches",
url='https://github.com/simonblouin/NaBlaMTL-utilitaires',
package_data={'': ['lines.csv', 'M... | 37.2 | 123 | 0.717742 | 45 | 372 | 5.844444 | 0.888889 | 0.091255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.155914 | 372 | 9 | 124 | 41.333333 | 0.83121 | 0 | 0 | 0 | 0 | 0 | 0.512129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
281907314aa62398b5ac9a1eb0434b58b92aeb4a | 130 | py | Python | deployer/__init__.py | LSmith-Zenoscave/deployer | 0c3e3bd12a54affdca5751da678617511c98afbd | [
"BSD-3-Clause"
] | 3 | 2022-02-23T02:32:39.000Z | 2022-03-16T17:42:13.000Z | deployer/__init__.py | LSmith-Zenoscave/deployer | 0c3e3bd12a54affdca5751da678617511c98afbd | [
"BSD-3-Clause"
] | 190 | 2020-03-06T16:39:00.000Z | 2022-03-28T02:02:20.000Z | deployer/__init__.py | LSmith-Zenoscave/deployer | 0c3e3bd12a54affdca5751da678617511c98afbd | [
"BSD-3-Clause"
] | null | null | null | """Top-level package for deployer-fsm."""
__author__ = """Luke Smith"""
__email__ = 'lsmith@zenoscave.com'
__version__ = '0.1.5'
| 21.666667 | 41 | 0.684615 | 17 | 130 | 4.529412 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.115385 | 130 | 5 | 42 | 26 | 0.643478 | 0.269231 | 0 | 0 | 0 | 0 | 0.393258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
28195397cc0f59570344feb41e69dd85fdaea18d | 4,800 | py | Python | mibs/pycopia/mibs/SNMP_PROXY_MIB.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 89 | 2015-03-26T11:25:20.000Z | 2022-01-12T06:25:14.000Z | mibs/pycopia/mibs/SNMP_PROXY_MIB.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 1 | 2015-07-05T03:27:43.000Z | 2015-07-11T06:21:20.000Z | mibs/pycopia/mibs/SNMP_PROXY_MIB.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 30 | 2015-04-30T01:35:54.000Z | 2022-01-12T06:19:49.000Z | # python
# This file is generated by a program (mib2py). Any edits will be lost.
from pycopia.aid import Enum
import pycopia.SMI.Basetypes
Range = pycopia.SMI.Basetypes.Range
Ranges = pycopia.SMI.Basetypes.Ranges
from pycopia.SMI.Objects import ColumnObject, MacroObject, NotificationObject, RowObject, ScalarObject, N... | 34.042553 | 427 | 0.752083 | 598 | 4,800 | 6.006689 | 0.250836 | 0.066815 | 0.11637 | 0.097996 | 0.287027 | 0.287027 | 0.287027 | 0.287027 | 0.287027 | 0.287027 | 0 | 0.052189 | 0.13375 | 4,800 | 140 | 428 | 34.285714 | 0.811688 | 0.044375 | 0 | 0.293478 | 1 | 0.01087 | 0.134514 | 0.034339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097826 | 0 | 0.967391 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2832dce055b231bd88c0301f0256587ca9797d55 | 4,153 | py | Python | python/integrations/hamcrest.py | google/checkers_classic | 6081fa629033634651b8815061085d76c2616917 | [
"Apache-2.0"
] | 6 | 2016-01-04T22:44:16.000Z | 2021-04-20T20:38:12.000Z | python/integrations/hamcrest.py | google/checkers_classic | 6081fa629033634651b8815061085d76c2616917 | [
"Apache-2.0"
] | null | null | null | python/integrations/hamcrest.py | google/checkers_classic | 6081fa629033634651b8815061085d76c2616917 | [
"Apache-2.0"
] | 8 | 2015-12-06T20:40:15.000Z | 2021-10-12T02:59:20.000Z | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 35.801724 | 91 | 0.833855 | 584 | 4,153 | 5.765411 | 0.361301 | 0.110484 | 0.11286 | 0.077517 | 0.250668 | 0.126522 | 0.10395 | 0.10395 | 0.069498 | 0 | 0 | 0.002177 | 0.115098 | 4,153 | 115 | 92 | 36.113043 | 0.914014 | 0.328919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0 | false | 0 | 0.516129 | 0 | 0.516129 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
284932e333f74b90ff691d5b09155335800b2530 | 249 | py | Python | 12_misc-semantic-code/hello_all.py | abdullahzameek/politics-of-code | 578c4fb59216ea6cf63d864d371e77b4d39ddc20 | [
"Unlicense"
] | 21 | 2018-01-05T00:14:36.000Z | 2022-03-29T15:26:52.000Z | 05_source/hello_all.py | periode/software-art-text | bc512345bb8e293f165077587b343407fba61d71 | [
"Unlicense"
] | null | null | null | 05_source/hello_all.py | periode/software-art-text | bc512345bb8e293f165077587b343407fba61d71 | [
"Unlicense"
] | 4 | 2019-05-18T21:44:58.000Z | 2019-12-04T06:51:29.000Z | #!/usr/bin/python
#alex mclean, 2013
import iptools, httplib
for ip in iptools.IpRangeList('0.0.0.0/0'):
try:
print "Greeting " + ip
cx = httplib.HTTPConnection("%s:80" % ip)
cx.request("POST", '/', "message=Hello+world!")
except:
pass
| 17.785714 | 49 | 0.650602 | 37 | 249 | 4.378378 | 0.756757 | 0.049383 | 0.055556 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.160643 | 249 | 13 | 50 | 19.153846 | 0.722488 | 0.13253 | 0 | 0 | 0 | 0 | 0.224299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.125 | 0.125 | null | null | 0.125 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
28670d3f4a409af1f28760549be5dd847eb9ca00 | 1,061 | py | Python | examples/models1.py | weatherhead99/symdiff | ba21034fcffcc0fb84e1922549bb969f556c7741 | [
"Apache-2.0"
] | 8 | 2016-06-02T17:07:44.000Z | 2021-03-13T16:21:54.000Z | examples/models1.py | weatherhead99/symdiff | ba21034fcffcc0fb84e1922549bb969f556c7741 | [
"Apache-2.0"
] | 4 | 2018-03-04T20:32:01.000Z | 2020-01-15T15:42:41.000Z | examples/models1.py | devsim/symdiff | 1f25961214c25c5142279ec771db3c378637c950 | [
"Apache-2.0"
] | 7 | 2015-10-28T17:24:05.000Z | 2021-03-13T16:22:01.000Z | from symdiff import *
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
print(symdiff('declare_model(x)'))
print(symdiff('define_model(y, a*x)'))
print(symdiff('diff(y, x)'))
print(symdiff('clear_model(x)'))
print(ordered_list('y'))
print(symdiff('declare_model(x)')... | 25.261905 | 51 | 0.66918 | 165 | 1,061 | 4.127273 | 0.254545 | 0.229075 | 0.114537 | 0.105727 | 0.638767 | 0.604993 | 0.594714 | 0.594714 | 0.499266 | 0.381791 | 0 | 0.003195 | 0.114986 | 1,061 | 41 | 52 | 25.878049 | 0.722045 | 0.104618 | 0 | 0.580645 | 0 | 0 | 0.322751 | 0.026455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0.677419 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
286f7a6f9777c0e3604948d3c7c76deea546bdbe | 1,144 | py | Python | docs/tutorial/python/sanic/users_if.py | mrpotes/go-raml | f151e1e143c47282b294fe70c5e56f113988ed10 | [
"BSD-2-Clause"
] | 142 | 2016-02-11T06:23:34.000Z | 2022-03-24T06:05:22.000Z | docs/tutorial/python/sanic/users_if.py | mrpotes/go-raml | f151e1e143c47282b294fe70c5e56f113988ed10 | [
"BSD-2-Clause"
] | 297 | 2016-02-04T06:23:13.000Z | 2020-08-20T13:23:22.000Z | docs/tutorial/python/sanic/users_if.py | mrpotes/go-raml | f151e1e143c47282b294fe70c5e56f113988ed10 | [
"BSD-2-Clause"
] | 49 | 2016-02-01T10:59:50.000Z | 2021-05-20T15:04:01.000Z | # DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
from sanic import Blueprint
from sanic.views import HTTPMethodView
from sanic.response import text
from . import users_api
from .oauth2_itsyouonline import oauth2_itsyouonline
users_if = Blueprint('users_if')
class usersView(HTTPMetho... | 25.422222 | 94 | 0.72028 | 148 | 1,144 | 5.391892 | 0.337838 | 0.112782 | 0.037594 | 0.06015 | 0.457393 | 0.457393 | 0.380952 | 0.318296 | 0.203008 | 0.203008 | 0 | 0.014925 | 0.18007 | 1,144 | 44 | 95 | 26 | 0.835821 | 0.067308 | 0 | 0.136364 | 1 | 0 | 0.0723 | 0.024413 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.590909 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2877d06e24055e10815c2ec5fdf2dd072f4cb3fe | 685 | py | Python | stability_label_algorithm/modules/dataset_generator/dataset.py | DaphneO/stabilitylabelalgorithm | a163eaede3a4fa544ef8840079db64c0f8cd7015 | [
"MIT"
] | null | null | null | stability_label_algorithm/modules/dataset_generator/dataset.py | DaphneO/stabilitylabelalgorithm | a163eaede3a4fa544ef8840079db64c0f8cd7015 | [
"MIT"
] | null | null | null | stability_label_algorithm/modules/dataset_generator/dataset.py | DaphneO/stabilitylabelalgorithm | a163eaede3a4fa544ef8840079db64c0f8cd7015 | [
"MIT"
] | null | null | null | from typing import List
from stability_label_algorithm.modules.dataset_generator.dataset_item import DatasetItem
class Dataset:
def __init__(self, name: str, argumentation_system_name: str, dataset_items: List[DatasetItem]):
"""
A Dataset has a name, the name of its ArgumentationSystem and a list... | 38.055556 | 104 | 0.728467 | 87 | 685 | 5.505747 | 0.402299 | 0.158664 | 0.192067 | 0.05428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216058 | 685 | 17 | 105 | 40.294118 | 0.891993 | 0.381022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2885320113f7e24f2d68ca121540f5ec54198754 | 189 | py | Python | src/util.py | jnxyp/NetInspectionHelper | 5f37985db014099a9b0ee4b8e71d4e48a8b641f0 | [
"MIT"
] | 3 | 2020-06-22T15:12:48.000Z | 2020-06-29T20:06:11.000Z | src/util.py | jnxyp/NetInspectionHelper | 5f37985db014099a9b0ee4b8e71d4e48a8b641f0 | [
"MIT"
] | 6 | 2021-03-31T19:58:11.000Z | 2022-03-12T00:45:50.000Z | src/util.py | jnxyp/NetInspectionHelper | 5f37985db014099a9b0ee4b8e71d4e48a8b641f0 | [
"MIT"
] | null | null | null | from config import DEBUG
def read_file(path: str) -> list:
with open(path, encoding='utf8') as file:
return file.readlines()
def p(s: str):
if (DEBUG):
print(s)
| 15.75 | 45 | 0.603175 | 28 | 189 | 4.035714 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.26455 | 189 | 11 | 46 | 17.181818 | 0.805755 | 0 | 0 | 0 | 0 | 0 | 0.021164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 2 |
288ab86f63deb185af9b80c75a5e90e6807f50ae | 5,005 | py | Python | data.py | cmlohr/py-quiz-game | 96e44118744d959c90f27e6cd0ffae7627cd3425 | [
"MIT"
] | null | null | null | data.py | cmlohr/py-quiz-game | 96e44118744d959c90f27e6cd0ffae7627cd3425 | [
"MIT"
] | null | null | null | data.py | cmlohr/py-quiz-game | 96e44118744d959c90f27e6cd0ffae7627cd3425 | [
"MIT"
] | null | null | null | q_data = [
{"question": "Japan was part of the Allied Powers during World War I.", "correct_answer": "True",
"incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "easy",
"question": "The Tiananmen Square protests of 1989 were held in H... | 91 | 171 | 0.606993 | 539 | 5,005 | 5.560297 | 0.358071 | 0.086753 | 0.120454 | 0.164832 | 0.587588 | 0.587588 | 0.574908 | 0.570904 | 0.570904 | 0.570904 | 0 | 0.007 | 0.229371 | 5,005 | 54 | 172 | 92.685185 | 0.770029 | 0 | 0 | 0.555556 | 0 | 0.074074 | 0.664735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2891b45fa5c52ef0e7b5e1972a972e770407da5b | 409 | py | Python | transformer/__init__.py | DreamInvoker/attention-is-all-you-need-pytorch | b361752317089883464e1377c05faa51a829eed1 | [
"MIT"
] | null | null | null | transformer/__init__.py | DreamInvoker/attention-is-all-you-need-pytorch | b361752317089883464e1377c05faa51a829eed1 | [
"MIT"
] | null | null | null | transformer/__init__.py | DreamInvoker/attention-is-all-you-need-pytorch | b361752317089883464e1377c05faa51a829eed1 | [
"MIT"
] | null | null | null | import transformer.Beam
import transformer.Constants
import transformer.Layers
import transformer.Models
import transformer.Modules
import transformer.Optim
import transformer.SubLayers
import transformer.Translator
__all__ = [
transformer.Constants, transformer.Modules, transformer.Layers,
transformer.SubLaye... | 29.214286 | 67 | 0.838631 | 41 | 409 | 8.268293 | 0.268293 | 0.40118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0978 | 409 | 13 | 68 | 31.461538 | 0.918699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2895dfb1d2ebd786ade44b4dda00d9c918c08fa9 | 443 | py | Python | tests/api_interface/test_runbooks/test_files/parallel_task.py | tuxtof/calm-dsl | 5af67435d8304b97e170a690068f2d5975e9bfe6 | [
"Apache-2.0"
] | 37 | 2019-12-23T15:23:20.000Z | 2022-03-15T11:12:11.000Z | tests/api_interface/test_runbooks/test_files/parallel_task.py | tuxtof/calm-dsl | 5af67435d8304b97e170a690068f2d5975e9bfe6 | [
"Apache-2.0"
] | 144 | 2020-03-09T11:22:09.000Z | 2022-03-28T21:34:09.000Z | tests/api_interface/test_runbooks/test_files/parallel_task.py | abhijeetkaurav1st/calm-dsl | 6487a896967b3fd667b9320e2ad3a397c9960497 | [
"Apache-2.0"
] | 46 | 2020-01-23T14:28:04.000Z | 2022-03-09T04:17:10.000Z | """
Calm DSL Sample Runbook for parallel task
"""
from calm.dsl.runbooks import runbook, parallel, branch
from calm.dsl.runbooks import RunbookTask as Task
@runbook
def ParallelTask():
"Runbook Service example"
with parallel() as p:
with branch(p):
Task.Delay(60, name="Delay1")
w... | 22.15 | 55 | 0.625282 | 57 | 443 | 4.859649 | 0.438596 | 0.075812 | 0.119134 | 0.162455 | 0.462094 | 0.281588 | 0.281588 | 0 | 0 | 0 | 0 | 0.027439 | 0.259594 | 443 | 19 | 56 | 23.315789 | 0.817073 | 0.146727 | 0 | 0.25 | 0 | 0 | 0.104326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
289ac281de5cc15c291335f623dcb4dfdcc4c2b9 | 3,730 | py | Python | modules/templates.py | w-renk/p2e-monbuild | 1660b5a690e9d2c834599d811de19dbb410a63d6 | [
"MIT"
] | null | null | null | modules/templates.py | w-renk/p2e-monbuild | 1660b5a690e9d2c834599d811de19dbb410a63d6 | [
"MIT"
] | 2 | 2021-02-03T04:22:47.000Z | 2021-02-03T04:36:52.000Z | modules/templates.py | w-renk/p2e-monbuild | 1660b5a690e9d2c834599d811de19dbb410a63d6 | [
"MIT"
] | null | null | null | from .scripts import ClearScreen
from PyInquirer import prompt
def SelectTemplateGraft(statBlock):
ClearScreen()
print("You can optionally use a template graft to start the creation process. Template grafts grant specific bonuses and unique abilities. They also " +
"largely determine the creature t... | 61.147541 | 166 | 0.646917 | 457 | 3,730 | 5.280088 | 0.367615 | 0.119354 | 0.0431 | 0.049316 | 0.138002 | 0.099461 | 0.099461 | 0.066308 | 0.066308 | 0 | 0 | 0.01014 | 0.233244 | 3,730 | 61 | 167 | 61.147541 | 0.833566 | 0.033512 | 0 | 0 | 0 | 0.266667 | 0.669534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.044444 | 0 | 0.088889 | 0.022222 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
955ad28239fde7863ac44405655a9a403aff97ca | 2,204 | py | Python | utils/eval_utils.py | alon-albalak/XOR-COVID | 319c33d30754e5c632e8e3307ff4f3774b9fca79 | [
"MIT"
] | 1 | 2022-03-20T04:23:06.000Z | 2022-03-20T04:23:06.000Z | utils/eval_utils.py | alon-albalak/XOR-COVID | 319c33d30754e5c632e8e3307ff4f3774b9fca79 | [
"MIT"
] | null | null | null | utils/eval_utils.py | alon-albalak/XOR-COVID | 319c33d30754e5c632e8e3307ff4f3774b9fca79 | [
"MIT"
] | null | null | null |
import sys
import re
import string
from collections import Counter
import pickle
def normalize_answer(s):
def remove_articles(text):
return re.sub(r'\b(a|an|the)\b', ' ', text)
def white_space_fix(text):
return ' '.join(text.split())
def remove_punc(text):
exclude = set(string.... | 31.942029 | 75 | 0.700091 | 289 | 2,204 | 5.117647 | 0.304498 | 0.081136 | 0.048682 | 0.042596 | 0.016227 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006822 | 0.201906 | 2,204 | 68 | 76 | 32.411765 | 0.833997 | 0.038566 | 0 | 0 | 0 | 0 | 0.008996 | 0 | 0 | 0 | 0 | 0.014706 | 0.038462 | 1 | 0.192308 | false | 0 | 0.115385 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9575bcddb1624e18b95ffde1bdad365d909fb591 | 1,090 | py | Python | src/_Image_Env/MetaData.py | krisHans3n/ifd_standardised_api_prod | d8684b63c5e89b0bdfa5d42142f6986e9f96357f | [
"MIT"
] | null | null | null | src/_Image_Env/MetaData.py | krisHans3n/ifd_standardised_api_prod | d8684b63c5e89b0bdfa5d42142f6986e9f96357f | [
"MIT"
] | null | null | null | src/_Image_Env/MetaData.py | krisHans3n/ifd_standardised_api_prod | d8684b63c5e89b0bdfa5d42142f6986e9f96357f | [
"MIT"
] | null | null | null | class MetaData:
'''
convert to dynamically adding attributes by passing in **kwargs and
setting each key value pair
attention will need to be given for when this class is used in other processes
to make sure they know the attributes that exists with each class
however, not necessary just now
... | 25.348837 | 82 | 0.665138 | 147 | 1,090 | 4.727891 | 0.421769 | 0.092086 | 0.141007 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280734 | 1,090 | 42 | 83 | 25.952381 | 0.88648 | 0.249541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0 | 0.28 | 0.64 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
95803b48da5262cff9f246dcc6e5ba50079349a3 | 371 | py | Python | 13/13.py | teagles/teagles-pc | d245cd6e49cf60d893c6b19721bcef5a072d087f | [
"MIT"
] | null | null | null | 13/13.py | teagles/teagles-pc | d245cd6e49cf60d893c6b19721bcef5a072d087f | [
"MIT"
] | null | null | null | 13/13.py | teagles/teagles-pc | d245cd6e49cf60d893c6b19721bcef5a072d087f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# http://huge:file@www.pythonchallenge.com/pc/return/disproportional.html
import sys
import xmlrpclib
URL = 'http://www.pythonchallenge.com/pc/phonebook.php'
# 13/13.py Bert
def main(args=None):
if args is None:
args = sys.argv[1:]
s = xmlrpclib.ServerProxy(URL)
print s.phon... | 19.526316 | 73 | 0.679245 | 55 | 371 | 4.436364 | 0.672727 | 0.147541 | 0.172131 | 0.188525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.167116 | 371 | 18 | 74 | 20.611111 | 0.770227 | 0.285714 | 0 | 0 | 0 | 0 | 0.209924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
959c2d734cf5521a7e6b6877fe2f46088f5cb6b7 | 563 | py | Python | justfunc/__init__.py | justland/just-func-python | 5b5c9def71ccbab998c1f164e1903e7bf42919a6 | [
"MIT"
] | 1 | 2021-03-09T18:53:36.000Z | 2021-03-09T18:53:36.000Z | justfunc/__init__.py | justland/just-func-python | 5b5c9def71ccbab998c1f164e1903e7bf42919a6 | [
"MIT"
] | null | null | null | justfunc/__init__.py | justland/just-func-python | 5b5c9def71ccbab998c1f164e1903e7bf42919a6 | [
"MIT"
] | null | null | null | import json
from justfunc.env import setup_env
from justfunc.evaluator import evaluate
from justfunc.reader import read
class JustFunc:
def __init__(self):
self.env = setup_env()
def run(self, src):
return evaluate(read(src), self.env)
def run_repl(self, prompt=">>> "):
while li... | 22.52 | 44 | 0.584369 | 70 | 563 | 4.571429 | 0.471429 | 0.1125 | 0.05625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002577 | 0.310835 | 563 | 24 | 45 | 23.458333 | 0.822165 | 0 | 0 | 0 | 0 | 0 | 0.007105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.055556 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
959f3cada4b21f1a6532c73af52a41ed4475daf9 | 1,182 | py | Python | robot-server/robot_server/robot/calibration/pipette_offset/constants.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | 235 | 2017-10-27T20:37:27.000Z | 2022-03-30T14:09:49.000Z | robot-server/robot_server/robot/calibration/pipette_offset/constants.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | 8,425 | 2017-10-26T15:25:43.000Z | 2022-03-31T23:54:26.000Z | robot-server/robot_server/robot/calibration/pipette_offset/constants.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | 130 | 2017-11-09T21:02:37.000Z | 2022-03-15T18:01:24.000Z | from __future__ import annotations
from enum import Enum
from typing import TYPE_CHECKING
from robot_server.robot.calibration.constants import STATE_WILDCARD
if TYPE_CHECKING:
from typing_extensions import Final
class PipetteOffsetCalibrationState(str, Enum):
sessionStarted = "sessionStarted"
labwareLoa... | 30.307692 | 67 | 0.774958 | 87 | 1,182 | 10.37931 | 0.413793 | 0.043189 | 0.035437 | 0.077519 | 0.396456 | 0.396456 | 0.261351 | 0.261351 | 0 | 0 | 0 | 0.001009 | 0.161591 | 1,182 | 38 | 68 | 31.105263 | 0.910192 | 0 | 0 | 0.6 | 0 | 0 | 0.242809 | 0.017767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.933333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
95a2b7b36a7770ccb22f6528ec0c918ee2b72723 | 542 | py | Python | examples/verlet_chain/relax.py | Peque/pyqtgraph | 2bf4a0eb7b8ddba8eef0e84668a602a72404c050 | [
"MIT"
] | null | null | null | examples/verlet_chain/relax.py | Peque/pyqtgraph | 2bf4a0eb7b8ddba8eef0e84668a602a72404c050 | [
"MIT"
] | null | null | null | examples/verlet_chain/relax.py | Peque/pyqtgraph | 2bf4a0eb7b8ddba8eef0e84668a602a72404c050 | [
"MIT"
] | null | null | null | import ctypes
import os
so = os.path.join(os.path.dirname(__file__), 'maths.so')
lib = ctypes.CDLL(so)
lib.relax.argtypes = [
ctypes.c_void_p,
ctypes.c_void_p,
ctypes.c_void_p,
ctypes.c_void_p,
ctypes.c_void_p,
ctypes.c_void_p,
ctypes.c_void_p,
ctypes.c_int,
ctypes.c_int,
]
de... | 22.583333 | 124 | 0.678967 | 87 | 542 | 4 | 0.333333 | 0.181034 | 0.221264 | 0.241379 | 0.261494 | 0.261494 | 0.261494 | 0.261494 | 0.261494 | 0.261494 | 0 | 0.011364 | 0.188192 | 542 | 23 | 125 | 23.565217 | 0.779545 | 0 | 0 | 0.5 | 0 | 0 | 0.014787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95b7ea934e170b41492a8074ef0d54978725beca | 3,234 | py | Python | keystone/test/unit/test_normalizingfilter.py | admiyo/keystone | 9452cf04bc8b0a4dc66dc640615d5ace1ca715f2 | [
"Apache-2.0"
] | null | null | null | keystone/test/unit/test_normalizingfilter.py | admiyo/keystone | 9452cf04bc8b0a4dc66dc640615d5ace1ca715f2 | [
"Apache-2.0"
] | null | null | null | keystone/test/unit/test_normalizingfilter.py | admiyo/keystone | 9452cf04bc8b0a4dc66dc640615d5ace1ca715f2 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2010-2011 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | 34.042105 | 73 | 0.66543 | 393 | 3,234 | 5.267176 | 0.310433 | 0.054106 | 0.085024 | 0.069565 | 0.498068 | 0.485024 | 0.462319 | 0.462319 | 0.367633 | 0.367633 | 0 | 0.012422 | 0.203463 | 3,234 | 94 | 74 | 34.404255 | 0.791149 | 0.199753 | 0 | 0.421053 | 0 | 0 | 0.247274 | 0.054907 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.210526 | false | 0.052632 | 0.035088 | 0 | 0.280702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
95ba01af2dd88b323ad0133e622fb5c44e2460b0 | 282 | py | Python | Net640/apps/images/urls.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | 1 | 2019-06-18T09:50:29.000Z | 2019-06-18T09:50:29.000Z | Net640/apps/images/urls.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | 10 | 2019-12-24T07:05:29.000Z | 2022-02-10T07:42:44.000Z | Net640/apps/images/urls.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | null | null | null | from django.urls import path, re_path
from Net640.apps.images import views
app_name = 'images'
urlpatterns = [
path(r'my_images/', views.user_images_view, name="my_images"),
# TODO move to rest api
path(r'action/', views.user_image_action, name="user_image_action"),
]
| 28.2 | 72 | 0.730496 | 44 | 282 | 4.454545 | 0.545455 | 0.05102 | 0.153061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012448 | 0.14539 | 282 | 9 | 73 | 31.333333 | 0.80083 | 0.074468 | 0 | 0 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95bf916c91e4f33552b1b6aaf5c5b7bfa117a363 | 1,237 | py | Python | symphony/cli/graphql_compiler/gql/utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T09:01:40.000Z | 2020-06-05T09:01:40.000Z | symphony/cli/graphql_compiler/gql/utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 14 | 2019-11-15T12:01:18.000Z | 2019-12-12T14:37:42.000Z | symphony/cli/graphql_compiler/gql/utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 3 | 2019-11-15T15:56:25.000Z | 2019-11-21T10:34:59.000Z | #!/usr/bin/env python3
import os
SPACES = ' ' * 4
class CodeChunk:
class Block:
def __init__(self, codegen: 'CodeChunk'):
self.gen = codegen
def __enter__(self):
self.gen.indent()
return self.gen
def __exit__(self, exc_type, exc_val, exc_tb):
... | 22.490909 | 62 | 0.561843 | 151 | 1,237 | 4.403974 | 0.304636 | 0.067669 | 0.033083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.320938 | 1,237 | 54 | 63 | 22.907407 | 0.784524 | 0.016977 | 0 | 0 | 0 | 0 | 0.00823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.026316 | 0.078947 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
95cfdac0c2362f99c28a30a74ba903c5303c9fe2 | 4,154 | py | Python | password_test.py | John-Kimani/Password-Manager | 4bbb4b616c8d127793deaf3cd48e8ea5fe3097c3 | [
"MIT"
] | null | null | null | password_test.py | John-Kimani/Password-Manager | 4bbb4b616c8d127793deaf3cd48e8ea5fe3097c3 | [
"MIT"
] | null | null | null | password_test.py | John-Kimani/Password-Manager | 4bbb4b616c8d127793deaf3cd48e8ea5fe3097c3 | [
"MIT"
] | null | null | null | import unittest #unitest module
from password import Credential #imports Credential class for testing
from password import User #imports User class for testing
class TestUser(unittest.TestCase):
'''
Test class that helps define test cases for the credentials class behaviours
Args:
Testcase class ta... | 34.907563 | 126 | 0.665383 | 486 | 4,154 | 5.537037 | 0.218107 | 0.033816 | 0.052025 | 0.036418 | 0.50799 | 0.435154 | 0.375697 | 0.358974 | 0.32107 | 0.26087 | 0 | 0.00482 | 0.250843 | 4,154 | 119 | 127 | 34.907563 | 0.859897 | 0.329562 | 0 | 0.395833 | 0 | 0 | 0.09242 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 1 | 0.229167 | false | 0.083333 | 0.0625 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
95d3dff28770504e9596f85e60168b427ecafade | 262 | py | Python | models.py | kaflesudip/TweetStats | 2cae1c0615c970cf56e69752924e943a5f40f7e5 | [
"Apache-2.0"
] | null | null | null | models.py | kaflesudip/TweetStats | 2cae1c0615c970cf56e69752924e943a5f40f7e5 | [
"Apache-2.0"
] | 12 | 2020-06-05T16:51:04.000Z | 2022-03-11T23:11:43.000Z | models.py | kaflesudip/TweetStats | 2cae1c0615c970cf56e69752924e943a5f40f7e5 | [
"Apache-2.0"
] | 1 | 2020-05-12T03:32:29.000Z | 2020-05-12T03:32:29.000Z | from mongoengine import DynamicDocument, fields, connect
connect('tweetpredict')
class Tweet(DynamicDocument):
tweet_id = fields.StringField()
tweets = fields.ListField()
total_fetched = fields.IntField()
error_occured = fields.BooleanField()
| 23.818182 | 56 | 0.751908 | 26 | 262 | 7.461538 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152672 | 262 | 10 | 57 | 26.2 | 0.873874 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
95d65ed692549d6dee491bcefd10d86dd08cbec8 | 407 | py | Python | ECUInteraction/main.py | arturmrowca/IVNS | 8915142d16debe4af780a9eb6859e44dea2ca7e6 | [
"MIT"
] | 8 | 2016-03-02T11:47:16.000Z | 2021-11-05T07:49:25.000Z | ECUInteraction/main.py | arturmrowca/IVNS | 8915142d16debe4af780a9eb6859e44dea2ca7e6 | [
"MIT"
] | 1 | 2019-03-19T14:23:52.000Z | 2019-03-25T14:24:45.000Z | ECUInteraction/main.py | PhilippMundhenk/IVNS | b2e395611e9b5111aeda7ab128f3486354bbbf0d | [
"MIT"
] | 5 | 2016-02-11T10:12:27.000Z | 2020-10-09T02:27:41.000Z |
from PyQt4 import QtGui
from gui.main_window import MainWindow
import sys
from gui.direct_view_window import DirectViewWindow, DirectViewer
'''
Later configure from here in some code lines: GUI On GUI off, want to have view x and view y
maybe a api for gui ?
'''
q_app = QtGui.QApplication(sys.argv)
gui = Ma... | 21.421053 | 92 | 0.72973 | 63 | 407 | 4.619048 | 0.634921 | 0.04811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003021 | 0.186732 | 407 | 19 | 93 | 21.421053 | 0.876133 | 0.127764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
95de66cae1fc85da8200c98fd2f99c7dce1abee0 | 1,462 | py | Python | clippy/command_return.py | gowithfloat/clippy | 0d537ff5fb8d2be79f33aa8451fc9facc75c372a | [
"MIT"
] | 2 | 2021-01-16T07:14:11.000Z | 2021-01-30T00:57:05.000Z | clippy/command_return.py | gowithfloat/clippy | 0d537ff5fb8d2be79f33aa8451fc9facc75c372a | [
"MIT"
] | 1 | 2020-02-11T19:29:52.000Z | 2020-02-17T16:03:55.000Z | clippy/command_return.py | gowithfloat/clippy | 0d537ff5fb8d2be79f33aa8451fc9facc75c372a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Defines the return value from a function, including its documentation and type annotation, if provided.
"""
from typing import Optional
from clippy.command_protocols import CommandProtocol
class CommandReturn(CommandProtocol):
"""The return value from a functio... | 33.227273 | 103 | 0.681259 | 166 | 1,462 | 5.73494 | 0.373494 | 0.069328 | 0.056723 | 0.07563 | 0.280462 | 0.280462 | 0.176471 | 0.176471 | 0 | 0 | 0 | 0.000878 | 0.22093 | 1,462 | 43 | 104 | 34 | 0.834943 | 0.350205 | 0 | 0 | 0 | 0 | 0.221973 | 0.142377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.055556 | 0.611111 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
95e87fff750d29d872602c9ffdd4a55e0cb69b97 | 283 | py | Python | config.py | FarmCodeGary/BlogCompile | c139f3c1a3a1ba032571a69774a228a3c023073f | [
"MIT"
] | null | null | null | config.py | FarmCodeGary/BlogCompile | c139f3c1a3a1ba032571a69774a228a3c023073f | [
"MIT"
] | null | null | null | config.py | FarmCodeGary/BlogCompile | c139f3c1a3a1ba032571a69774a228a3c023073f | [
"MIT"
] | null | null | null | # TODO: Make this a relative path
local_url = "/home/garrison/Code/blogengine/output"
remote_url = "http://www.example.com"
site_title = "My Vanilla Blog"
site_description = "The really cool blog in which I write about stuff"
copy_rst = False
disqus_shortname = "mydisqusshortname"
| 31.444444 | 70 | 0.770318 | 42 | 283 | 5.047619 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130742 | 283 | 8 | 71 | 35.375 | 0.861789 | 0.109541 | 0 | 0 | 0 | 0 | 0.56 | 0.148 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95f03412c276f2e57c8196e21e0e3e159b27cbe4 | 165 | py | Python | Fundamentals/Solo_Practice/translate.py | bnonni/Python | 9ebd18caa4e2d805028b557e8b77ea65a9ee1a3d | [
"Apache-2.0"
] | 4 | 2019-10-05T03:41:20.000Z | 2020-11-04T00:39:13.000Z | Fundamentals/Solo_Practice/translate.py | bnonni/Python | 9ebd18caa4e2d805028b557e8b77ea65a9ee1a3d | [
"Apache-2.0"
] | null | null | null | Fundamentals/Solo_Practice/translate.py | bnonni/Python | 9ebd18caa4e2d805028b557e8b77ea65a9ee1a3d | [
"Apache-2.0"
] | 2 | 2019-10-02T14:08:51.000Z | 2019-10-03T20:49:09.000Z | in_code = 'abcdefghijklmnopqrstuvwxyz'
out_code = '9128645!@#$%^&*()/.,;:~|[]'
code = str.maketrans(in_code, out_code)
print('this is encrypted!'.translate(code))
| 23.571429 | 43 | 0.678788 | 19 | 165 | 5.684211 | 0.631579 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046667 | 0.090909 | 165 | 6 | 44 | 27.5 | 0.673333 | 0 | 0 | 0 | 0 | 0 | 0.424242 | 0.315152 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 2 |
95f0c3b8559a2cdb63c2f9a86aedfd713206f35e | 896 | py | Python | scrapper/new_scrap_data/page_classifier.py | ARQtty/grouple-recsys | ce20613ed4ad5fd977985e8021e63dbbfaee1175 | [
"MIT"
] | null | null | null | scrapper/new_scrap_data/page_classifier.py | ARQtty/grouple-recsys | ce20613ed4ad5fd977985e8021e63dbbfaee1175 | [
"MIT"
] | 4 | 2022-02-03T09:52:29.000Z | 2022-03-31T20:43:48.000Z | scrapper/new_scrap_data/page_classifier.py | ARQtty/grouple-recsys | ce20613ed4ad5fd977985e8021e63dbbfaee1175 | [
"MIT"
] | 3 | 2022-03-25T05:51:05.000Z | 2022-03-29T06:55:23.000Z | import re
from arqtty_scrapper.page_types import Page_types
class Classifier:
def __init__(self, page_str):
self.page = page_str
def _is_404(self):
marker1 = 'Ой, ой, страничка потерялась'
marker2 = 'Спокойно! Логи записаны. Все будет исправлено.'
return re.search(marker1, se... | 26.352941 | 78 | 0.636161 | 114 | 896 | 4.736842 | 0.403509 | 0.1 | 0.111111 | 0.116667 | 0.172222 | 0.172222 | 0.118519 | 0 | 0 | 0 | 0 | 0.026114 | 0.273438 | 896 | 33 | 79 | 27.151515 | 0.803379 | 0 | 0 | 0.083333 | 0 | 0 | 0.137277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0 | 0.625 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
95fea7ab4ec1a16dc4fa606d938f4182056a0d5c | 548 | py | Python | descarteslabs/common/http/authorization.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | null | null | null | descarteslabs/common/http/authorization.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | null | null | null | descarteslabs/common/http/authorization.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | null | null | null | import six
def add_bearer(token):
"""For use with Authorization headers, add "Bearer "."""
if token:
return (u"Bearer " if isinstance(token, six.text_type) else b"Bearer ") + token
else:
return token
def remove_bearer(token):
"""For use with Authorization headers, strip any "Bearer "... | 27.4 | 88 | 0.640511 | 73 | 548 | 4.726027 | 0.369863 | 0.092754 | 0.156522 | 0.2 | 0.602899 | 0.602899 | 0.602899 | 0.266667 | 0.266667 | 0.266667 | 0 | 0.002398 | 0.239051 | 548 | 19 | 89 | 28.842105 | 0.82494 | 0.195255 | 0 | 0.307692 | 0 | 0 | 0.065116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
251c29c73488152e6511f74b6fef1cdbb40ed920 | 548 | py | Python | Module 3/Chapter 6/ch6_18.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | 50 | 2016-12-11T13:49:01.000Z | 2022-03-20T19:47:55.000Z | Module 3/Chapter 6/ch6_18.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | null | null | null | Module 3/Chapter 6/ch6_18.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | 40 | 2017-06-14T14:02:48.000Z | 2021-10-14T06:25:00.000Z | import nltk
from nltk.corpus import wordnet
from nltk.corpus import wordnet as wn
from nltk.corpus import wordnet_ic
brown_ic = wordnet_ic.ic('ic-brown.dat')
semcor_ic = wordnet_ic.ic('ic-semcor.dat')
from nltk.corpus import genesis
genesis_ic = wn.ic(genesis, False, 0.0)
lion = wn.synset('lion.n.01')
cat = wn.synset('... | 30.444444 | 43 | 0.777372 | 96 | 548 | 4.270833 | 0.25 | 0.109756 | 0.136585 | 0.195122 | 0.614634 | 0.307317 | 0 | 0 | 0 | 0 | 0 | 0.012024 | 0.089416 | 548 | 17 | 44 | 32.235294 | 0.809619 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2520d383228e1dada3ff7363e28dbffb33d0ac06 | 6,945 | py | Python | package/scripts/utils.py | xiaoxiaopan118/Ambari-Doris-Service | 3866e3dfb5604b4817657234ddb0d381c7feede5 | [
"Apache-2.0"
] | 5 | 2021-09-10T06:52:37.000Z | 2022-03-10T07:28:05.000Z | package/scripts/utils.py | xiaoxiaopan118/Ambari-Doris-Service | 3866e3dfb5604b4817657234ddb0d381c7feede5 | [
"Apache-2.0"
] | null | null | null | package/scripts/utils.py | xiaoxiaopan118/Ambari-Doris-Service | 3866e3dfb5604b4817657234ddb0d381c7feede5 | [
"Apache-2.0"
] | 3 | 2022-01-20T08:05:52.000Z | 2022-03-10T07:28:07.000Z | from resource_management import *
from resource_management.core.resources.system import Execute, Directory, File, Link
import os
import socket
import time
def install():
import params
if not is_service_installed(params):
# download doris tar.gz
cmd = format("mkdir -p {doris_install_dir}; cd {d... | 39.913793 | 120 | 0.656731 | 935 | 6,945 | 4.587166 | 0.161497 | 0.089765 | 0.054558 | 0.044766 | 0.539753 | 0.498951 | 0.459781 | 0.43903 | 0.420844 | 0.420844 | 0 | 0.006772 | 0.234557 | 6,945 | 173 | 121 | 40.144509 | 0.800038 | 0.100648 | 0 | 0.308411 | 0 | 0 | 0.246629 | 0.08221 | 0 | 0 | 0 | 0.017341 | 0 | 1 | 0.074766 | false | 0.149533 | 0.056075 | 0 | 0.140187 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2526b1b5faba17fda86ed66641ca885dd78c5a16 | 1,306 | py | Python | cvstudio/vo/dataset_vo.py | haruiz/PytorchCvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 32 | 2019-10-31T03:10:52.000Z | 2020-12-23T11:50:53.000Z | cvstudio/vo/dataset_vo.py | haruiz/CvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 19 | 2019-10-31T15:06:05.000Z | 2020-06-15T02:21:55.000Z | cvstudio/vo/dataset_vo.py | haruiz/PytorchCvStudio | ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef | [
"MIT"
] | 8 | 2019-10-31T03:32:50.000Z | 2020-07-17T20:47:37.000Z | class DatasetVO:
def __init__(self):
self._id = None
self._name = ""
self._folder = ""
self._description = ""
self._data_type = ""
self._size = 0
self._count = 0
@property
def count(self):
return self._count
@count.setter
def count(se... | 18.927536 | 41 | 0.561256 | 151 | 1,306 | 4.629139 | 0.145695 | 0.110157 | 0.1402 | 0.037196 | 0.098712 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004667 | 0.343798 | 1,306 | 68 | 42 | 19.205882 | 0.810968 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.12963 | 0.425926 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
252a5c1d8bcfbd783e04bca7818cfd80198a0f37 | 1,345 | py | Python | Tkinter/Attributes.py | architnagpal001/Tkinter-Full-Course- | 60845b0a62c3181b491b4d7a44ed86bc31afd2d0 | [
"MIT"
] | null | null | null | Tkinter/Attributes.py | architnagpal001/Tkinter-Full-Course- | 60845b0a62c3181b491b4d7a44ed86bc31afd2d0 | [
"MIT"
] | null | null | null | Tkinter/Attributes.py | architnagpal001/Tkinter-Full-Course- | 60845b0a62c3181b491b4d7a44ed86bc31afd2d0 | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
root.geometry("425x255")
root.title("Archit's GUI")
# Important label options
# text - adds the Text
# bd - background
# fg - foreground
# font - sets the font
# padx - x padding
# pady - y padding
# relef - border styling - SUNKEN, RAISED, GROOVE, RIDGE
titl... | 51.730769 | 234 | 0.730855 | 215 | 1,345 | 4.562791 | 0.683721 | 0.020387 | 0.018349 | 0.026504 | 0.079511 | 0.079511 | 0.079511 | 0.079511 | 0 | 0 | 0 | 0.04775 | 0.190335 | 1,345 | 26 | 235 | 51.730769 | 0.853076 | 0.143494 | 0 | 0 | 0 | 0.333333 | 0.852547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
25450f18bc54937b9e8d7dafb617133e8a1f90a8 | 6,838 | py | Python | phigaro/const.py | bobeobibo/phigaro | 342a3454bb5324426b25feb4a4d1f640b58bf8f8 | [
"MIT"
] | 31 | 2019-03-06T14:33:37.000Z | 2022-03-08T07:16:07.000Z | phigaro/const.py | bobeobibo/phigaro | 342a3454bb5324426b25feb4a4d1f640b58bf8f8 | [
"MIT"
] | 27 | 2019-05-17T05:06:58.000Z | 2022-03-27T00:38:56.000Z | phigaro/const.py | bobeobibo/phigaro | 342a3454bb5324426b25feb4a4d1f640b58bf8f8 | [
"MIT"
] | 12 | 2017-08-23T12:48:38.000Z | 2021-06-24T00:57:22.000Z | DEFAULT_WINDOW_SIZE = 32
DEFAULT_THRESHOLD_MIN_BASIC = 45.39
DEFAULT_THRESHOLD_MAX_BASIC = 46.0
DEFAULT_THRESHOLD_MIN_ABS = 50.32
DEFAULT_THRESHOLD_MAX_ABS = 52.96
DEFAULT_THRESHOLD_MIN_WITHOUT_GC = 11.28
DEFAULT_THRESHOLD_MAX_WITHOUT_GC = 11.42
DEFAULT_MEAN_GC = 0.46354823199323626
DEFAULT_MAX_EVALUE = 0.00445
DEFAULT... | 15.435666 | 40 | 0.490494 | 495 | 6,838 | 6.707071 | 0.925253 | 0.028916 | 0.017169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.380738 | 0.318222 | 6,838 | 442 | 41 | 15.470588 | 0.331403 | 0 | 0 | 0 | 0 | 0 | 0.439164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2557ceee6ba59bf8583b38eb1e461a179e7f3a54 | 400 | py | Python | pynubank/__init__.py | danizord/pynubank | 66633a6abcc338ac026def2ce3011a401d6d9c2e | [
"MIT"
] | 744 | 2017-06-20T23:14:59.000Z | 2022-03-28T05:48:38.000Z | pynubank/__init__.py | danizord/pynubank | 66633a6abcc338ac026def2ce3011a401d6d9c2e | [
"MIT"
] | 283 | 2017-06-22T18:10:53.000Z | 2022-03-24T18:14:30.000Z | pynubank/__init__.py | danizord/pynubank | 66633a6abcc338ac026def2ce3011a401d6d9c2e | [
"MIT"
] | 165 | 2017-06-21T05:13:26.000Z | 2022-03-24T17:04:37.000Z | from .exception import NuRequestException, NuException
from .nubank import Nubank
from .utils.mock_http import MockHttpClient
from .utils.http import HttpClient
from .utils.discovery import DISCOVERY_URL
def is_alive(client: HttpClient = None) -> bool:
if client is None:
client = HttpClient()
respons... | 28.571429 | 54 | 0.765 | 52 | 400 | 5.769231 | 0.557692 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.165 | 400 | 13 | 55 | 30.769231 | 0.88024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.7 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
255dd941037ae34ec382e729f0a8368af18c2c73 | 308 | py | Python | platform/hwconf_data/zgm13/modules/EMU/EMU_behavior.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | null | null | null | platform/hwconf_data/zgm13/modules/EMU/EMU_behavior.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T02:36:22.000Z | 2020-08-25T02:36:22.000Z | platform/hwconf_data/zgm13/modules/EMU/EMU_behavior.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T01:56:04.000Z | 2020-08-25T01:56:04.000Z | from . import ExporterModel
from . import EMU_model
from . import RuntimeModel
class EMU(ExporterModel.Module):
def __init__(self, name=None):
if not name:
name = self.__class__.__name__
super(EMU, self).__init__(name, visible=True, core=True)
self.model = EMU_model | 28 | 64 | 0.678571 | 39 | 308 | 4.897436 | 0.487179 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230519 | 308 | 11 | 65 | 28 | 0.805907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
255fed88de4b207e1a852e07bf62cf46b720836c | 431 | py | Python | handlers/__init__.py | MelomanCool/telegram-stickers | 62ee6e5c89bf6793a6d64ec0865b6f79582b3974 | [
"MIT"
] | null | null | null | handlers/__init__.py | MelomanCool/telegram-stickers | 62ee6e5c89bf6793a6d64ec0865b6f79582b3974 | [
"MIT"
] | 7 | 2017-12-18T20:07:57.000Z | 2021-06-21T13:50:30.000Z | handlers/__init__.py | MelomanCool/telegram-stickers | 62ee6e5c89bf6793a6d64ec0865b6f79582b3974 | [
"MIT"
] | null | null | null | from ._help import help_
from ._conversation import conversation
from ._sticker import sticker_handler as sticker
from ._inline import inlinequery, chosen_inline_result
from ._add_tags import add_tags
from ._delete_tag import delete_tag
from ._delete import delete
from ._get_by_id import get_by_id
from ._my import my
f... | 33.153846 | 54 | 0.851508 | 68 | 431 | 4.955882 | 0.308824 | 0.106825 | 0.089021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118329 | 431 | 12 | 55 | 35.916667 | 0.886842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2562a3f1ff690e914ab916dff7612653bc35e5c3 | 3,348 | py | Python | restfulpy/principal.py | Carrene/restfulpy | 21472af0415fffc23f8003b6074afc2de2e0b414 | [
"MIT"
] | 25 | 2017-06-19T10:01:36.000Z | 2019-08-03T10:35:41.000Z | restfulpy/principal.py | Carrene/restfulpy | 21472af0415fffc23f8003b6074afc2de2e0b414 | [
"MIT"
] | 209 | 2017-09-27T11:59:29.000Z | 2019-08-10T11:10:48.000Z | restfulpy/principal.py | Carrene/restfulpy | 21472af0415fffc23f8003b6074afc2de2e0b414 | [
"MIT"
] | 16 | 2017-11-22T15:44:31.000Z | 2019-04-14T12:29:34.000Z | from itsdangerous import TimedJSONWebSignatureSerializer, \
JSONWebSignatureSerializer
from nanohttp import settings, context, HTTPForbidden
class BaseJWTPrincipal:
def __init__(self, payload):
self.payload = payload
@classmethod
def create_serializer(cls, force=False, max_age=None):
... | 26.362205 | 78 | 0.623656 | 355 | 3,348 | 5.701408 | 0.295775 | 0.070652 | 0.041502 | 0.051877 | 0.272727 | 0.163043 | 0.150198 | 0.150198 | 0.106719 | 0.068182 | 0 | 0.001659 | 0.279869 | 3,348 | 126 | 79 | 26.571429 | 0.837827 | 0.064815 | 0 | 0.333333 | 0 | 0 | 0.029489 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 1 | 0.241379 | false | 0 | 0.022989 | 0.091954 | 0.505747 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
256b6ae4e1548cae49133d683b250e369197ae34 | 326 | py | Python | products/management/commands/clear_products.py | kedmenec/commerce_api | a12c552d06a71f6e92124862664608252cee729c | [
"MIT"
] | null | null | null | products/management/commands/clear_products.py | kedmenec/commerce_api | a12c552d06a71f6e92124862664608252cee729c | [
"MIT"
] | null | null | null | products/management/commands/clear_products.py | kedmenec/commerce_api | a12c552d06a71f6e92124862664608252cee729c | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from products.models import Product
class Command(BaseCommand):
help = 'Clear all entries from the Product table'
def _delete_all_products(self):
Product.objects.all().delete()
def handle(self, *args, **options):
self._delete_all_prod... | 23.285714 | 53 | 0.720859 | 41 | 326 | 5.585366 | 0.609756 | 0.078603 | 0.148472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184049 | 326 | 14 | 54 | 23.285714 | 0.860902 | 0 | 0 | 0 | 0 | 0 | 0.122324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
256bee042468f91711be16d1cef6c1963ecdea8e | 2,422 | py | Python | robot_teleop_joy/nodes/robot_teleop_joy.py | open-robot/open-robot | f23c5f2990df04815ed258e15973474901bb2805 | [
"BSD-2-Clause"
] | 58 | 2016-07-11T04:11:15.000Z | 2022-02-16T00:46:43.000Z | robot_teleop_joy/nodes/robot_teleop_joy.py | open-robot/open-robot | f23c5f2990df04815ed258e15973474901bb2805 | [
"BSD-2-Clause"
] | null | null | null | robot_teleop_joy/nodes/robot_teleop_joy.py | open-robot/open-robot | f23c5f2990df04815ed258e15973474901bb2805 | [
"BSD-2-Clause"
] | 37 | 2016-07-11T04:11:25.000Z | 2021-03-04T06:54:11.000Z | #!/usr/bin/env python
import thread
import rospy
from sensor_msgs.msg import Joy
from geometry_msgs.msg import Twist
from geometry_msgs.msg import PoseWithCovarianceStamped
twist = Twist()
pub = rospy.Publisher("cmd_vel", Twist, queue_size=10)
joystick_ready = False
lock_v = False
def initial_pose_reset():
pose... | 24.969072 | 223 | 0.607349 | 382 | 2,422 | 3.696335 | 0.246073 | 0.096317 | 0.135977 | 0.175637 | 0.166431 | 0.0517 | 0.0517 | 0.0517 | 0.0517 | 0.0517 | 0 | 0.084641 | 0.263419 | 2,422 | 96 | 224 | 25.229167 | 0.706839 | 0.036334 | 0 | 0.117647 | 0 | 0 | 0.037355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073529 | null | null | 0.058824 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c251fb3a13e54396bedec99174f04ff0771a63fd | 187 | py | Python | augeo/settings/components/django-suit.py | plankter/augeo-cloud | e7ee40a6a94649b3e675e12ad3d1b1587b25e51c | [
"MIT"
] | 1 | 2016-05-07T06:15:33.000Z | 2016-05-07T06:15:33.000Z | augeo/settings/components/django-suit.py | plankter/augeo-cloud | e7ee40a6a94649b3e675e12ad3d1b1587b25e51c | [
"MIT"
] | null | null | null | augeo/settings/components/django-suit.py | plankter/augeo-cloud | e7ee40a6a94649b3e675e12ad3d1b1587b25e51c | [
"MIT"
] | null | null | null | # See: http://django-suit.readthedocs.org/en/develop/
SUIT_CONFIG = {
# header
'ADMIN_NAME': 'Augeo',
# 'HEADER_DATE_FORMAT': 'l, j. F Y',
# 'HEADER_TIME_FORMAT': 'H:i',
} | 26.714286 | 53 | 0.609626 | 26 | 187 | 4.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187166 | 187 | 7 | 54 | 26.714286 | 0.710526 | 0.652406 | 0 | 0 | 0 | 0 | 0.245902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c27f310d3b63ce919cf0f284267a7206e3be1914 | 3,909 | py | Python | ServiceMod.py | menikhilpandey/RepIgnite | bf3c7d554f3bf74bfe9c7f13c74da050c4101d05 | [
"Apache-2.0"
] | null | null | null | ServiceMod.py | menikhilpandey/RepIgnite | bf3c7d554f3bf74bfe9c7f13c74da050c4101d05 | [
"Apache-2.0"
] | null | null | null | ServiceMod.py | menikhilpandey/RepIgnite | bf3c7d554f3bf74bfe9c7f13c74da050c4101d05 | [
"Apache-2.0"
] | null | null | null | import easygui
# TODO: In next version use easygui.multenterbox instead of independent enterbox
class Service:
def __init__(self):
self.employerName = easygui.enterbox(msg="Enter Name of Employer", title="Service Visit Inputs")
self.employerAddr = easygui.enterbox(msg="Enter Address of Employer"... | 83.170213 | 119 | 0.618061 | 410 | 3,909 | 5.882927 | 0.273171 | 0.119403 | 0.169154 | 0.228856 | 0.500415 | 0.39262 | 0.262438 | 0.181177 | 0.083748 | 0.043947 | 0 | 0 | 0.284216 | 3,909 | 46 | 120 | 84.978261 | 0.862044 | 0.019954 | 0 | 0.146341 | 0 | 0 | 0.401671 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.02439 | false | 0 | 0.02439 | 0 | 0.073171 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c28663f33bcd5a38a8d1d9a111f4ce0179a5205b | 1,918 | py | Python | tests/test_util.py | gszabi15/ncoreparser | cd7856a962ac82e31ae840ada77f6c25b2963919 | [
"Apache-2.0"
] | 10 | 2020-09-03T23:17:33.000Z | 2022-03-05T11:37:19.000Z | tests/test_util.py | gszabi15/ncoreparser | cd7856a962ac82e31ae840ada77f6c25b2963919 | [
"Apache-2.0"
] | 12 | 2020-10-29T14:57:13.000Z | 2022-03-17T00:44:09.000Z | tests/test_util.py | gszabi15/ncoreparser | cd7856a962ac82e31ae840ada77f6c25b2963919 | [
"Apache-2.0"
] | 1 | 2021-11-17T16:32:21.000Z | 2021-11-17T16:32:21.000Z | import pytest
from ncoreparser.util import Size
class TestSize:
@pytest.mark.parametrize("size1, size2", [("1024 MiB", "1 GiB"),
("10 MiB", "10 MiB"),
("2048 KiB", "2 MiB")])
def test_equal(self, size1, size2):
... | 39.958333 | 91 | 0.40146 | 197 | 1,918 | 3.86802 | 0.208122 | 0.131234 | 0.055118 | 0.170604 | 0.795276 | 0.700787 | 0.611549 | 0.452756 | 0.452756 | 0.452756 | 0 | 0.127762 | 0.457247 | 1,918 | 47 | 92 | 40.808511 | 0.604227 | 0 | 0 | 0.439024 | 0 | 0 | 0.15537 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 1 | 0.121951 | false | 0 | 0.04878 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.