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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b425c9c9f8ae82e61b1f78f1507a1a54617d3401 | 101 | py | Python | abc/abc156/abc156b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc156/abc156b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc156/abc156b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | N, K = map(int, input().split())
result = 0
while N != 0:
result += 1
N //= K
print(result)
| 12.625 | 32 | 0.514851 | 17 | 101 | 3.058824 | 0.647059 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.277228 | 101 | 7 | 33 | 14.428571 | 0.671233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
b4286ff31fbba48bbffbe61d13b22c6feaa707ee | 1,217 | py | Python | falcon/util/time.py | RioAtHome/falcon | edd9352e630dbbb6272370281fc5fa6d792df057 | [
"Apache-2.0"
] | null | null | null | falcon/util/time.py | RioAtHome/falcon | edd9352e630dbbb6272370281fc5fa6d792df057 | [
"Apache-2.0"
] | null | null | null | falcon/util/time.py | RioAtHome/falcon | edd9352e630dbbb6272370281fc5fa6d792df057 | [
"Apache-2.0"
] | null | null | null | """Time and date utilities.
This module provides utility functions and classes for dealing with
times and dates. These functions are hoisted into the `falcon` module
for convenience::
import falcon
tz = falcon.TimezoneGMT()
"""
import datetime
__all__ = ['TimezoneGMT']
class TimezoneGMT(datetime.tzinfo)... | 20.627119 | 84 | 0.600657 | 140 | 1,217 | 5.171429 | 0.464286 | 0.029006 | 0.058011 | 0.09116 | 0.245856 | 0.196133 | 0.146409 | 0.146409 | 0 | 0 | 0 | 0.003563 | 0.308135 | 1,217 | 58 | 85 | 20.982759 | 0.856295 | 0.604766 | 0 | 0.2 | 0 | 0 | 0.043344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.9 | 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 |
b43488081f782e60f929dfb3d7dec79c527c755a | 120 | py | Python | nemo_cf/__init__.py | willirath/nemo_cf | 560b7766cd22916752aeb1a656c7dfa108a290b6 | [
"MIT"
] | null | null | null | nemo_cf/__init__.py | willirath/nemo_cf | 560b7766cd22916752aeb1a656c7dfa108a290b6 | [
"MIT"
] | 4 | 2020-02-28T12:18:55.000Z | 2021-02-24T13:52:25.000Z | nemo_cf/__init__.py | willirath/nemo_cf | 560b7766cd22916752aeb1a656c7dfa108a290b6 | [
"MIT"
] | 2 | 2021-03-19T09:22:12.000Z | 2021-05-31T07:35:11.000Z | """Top-level package for NEMO CF."""
__author__ = """Willi Rath"""
__email__ = 'wrath@geomar.de'
__version__ = '0.1.0'
| 20 | 36 | 0.658333 | 17 | 120 | 3.941176 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0.133333 | 120 | 5 | 37 | 24 | 0.615385 | 0.25 | 0 | 0 | 0 | 0 | 0.357143 | 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 |
b43863ea2282716a434818d10e3a3506fdad83aa | 348 | py | Python | convert.py | Mohitsharma44/pyfrac | 152a4cbf6e90b0f11c8594780b77705898bab197 | [
"MIT"
] | 7 | 2018-06-15T06:29:48.000Z | 2021-12-03T05:51:45.000Z | convert.py | Mohitsharma44/pyfrac | 152a4cbf6e90b0f11c8594780b77705898bab197 | [
"MIT"
] | 2 | 2018-01-09T16:08:52.000Z | 2018-07-19T11:15:15.000Z | convert.py | Mohitsharma44/pyfrac | 152a4cbf6e90b0f11c8594780b77705898bab197 | [
"MIT"
] | 2 | 2018-04-16T03:37:54.000Z | 2018-12-13T05:43:00.000Z | from pyfrac.convert import radtocsv
r = radtocsv.RadConv(basedir='./ir_images')
r._exifProcess()
#r.get_meta(base_dir='./ir_images', batch=True, tofile=True, filenames=['test020316.jpg'])
#r.tograyscale(base_dir='./ir_images', batch=True, meta=False, filenames=['test.jpg'])
r.tocsv(base_dir='./ir_images', batch=True, ... | 38.666667 | 90 | 0.744253 | 52 | 348 | 4.807692 | 0.519231 | 0.128 | 0.108 | 0.18 | 0.288 | 0.288 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.060345 | 348 | 8 | 91 | 43.5 | 0.746177 | 0.5 | 0 | 0 | 0 | 0 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4392b141a1925f819efd3eb7943e20bba21ccb4 | 420 | py | Python | picdown/picdown/items.py | gamegrd/discuz_spider | 06f16083f40b129e4d80478d57963ccced1c833c | [
"MIT"
] | 3 | 2017-01-11T03:26:26.000Z | 2020-07-18T11:25:18.000Z | picdown/picdown/items.py | andyzhuangyy/discuz_spider | 06f16083f40b129e4d80478d57963ccced1c833c | [
"MIT"
] | null | null | null | picdown/picdown/items.py | andyzhuangyy/discuz_spider | 06f16083f40b129e4d80478d57963ccced1c833c | [
"MIT"
] | 3 | 2016-09-03T03:44:22.000Z | 2020-07-18T11:25:20.000Z | # Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class PicdownItem(Item):
# define the fields for your item here like:
# name = Field()
#text = Field()
image_urls = Field()
image_paths ... | 22.105263 | 51 | 0.645238 | 57 | 420 | 4.701754 | 0.649123 | 0.052239 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 420 | 18 | 52 | 23.333333 | 0.8375 | 0.483333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.875 | 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 |
b4421d2b5e57fc6449dab964451d143c95dc9621 | 601 | py | Python | e621/posts/migrations/0005_auto_20181205_2231.py | adjspecies/explore621 | 0ec946d28ed54d11569aa237f721001f74e7f1be | [
"MIT"
] | 3 | 2019-10-12T13:32:22.000Z | 2021-11-18T19:17:16.000Z | e621/posts/migrations/0005_auto_20181205_2231.py | adjspecies/explore621 | 0ec946d28ed54d11569aa237f721001f74e7f1be | [
"MIT"
] | 6 | 2018-12-11T20:38:26.000Z | 2021-06-10T21:01:45.000Z | e621/posts/migrations/0005_auto_20181205_2231.py | adjspecies/explore621 | 0ec946d28ed54d11569aa237f721001f74e7f1be | [
"MIT"
] | 4 | 2018-12-11T06:19:59.000Z | 2022-02-17T00:29:15.000Z | # Generated by Django 2.1.3 on 2018-12-05 22:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0004_tag_tag_type'),
]
operations = [
migrations.AddField(
model_name='ingestlog',
name='new',
... | 23.115385 | 49 | 0.567388 | 59 | 601 | 5.661017 | 0.627119 | 0.107784 | 0.137725 | 0.161677 | 0.54491 | 0.54491 | 0.305389 | 0.305389 | 0 | 0 | 0 | 0.051597 | 0.322795 | 601 | 25 | 50 | 24.04 | 0.769042 | 0.074875 | 0 | 0.526316 | 1 | 0 | 0.090253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b44c18ee037b88ef11f860a4fe764085c991c641 | 197 | py | Python | lib/ConfParser.py | jessehorne/anonchat.io | c01ec997ea1b736ed17c3071cb91f5de0307d590 | [
"MIT"
] | 1 | 2016-06-12T01:57:19.000Z | 2016-06-12T01:57:19.000Z | lib/ConfParser.py | jessehorne/anonchat.io | c01ec997ea1b736ed17c3071cb91f5de0307d590 | [
"MIT"
] | 7 | 2016-06-05T18:33:37.000Z | 2016-06-27T02:01:04.000Z | lib/ConfParser.py | jessehorne/anonchat.io | c01ec997ea1b736ed17c3071cb91f5de0307d590 | [
"MIT"
] | 1 | 2016-06-10T06:15:31.000Z | 2016-06-10T06:15:31.000Z | from ConfigParser import ConfigParser
def parse(filename):
config_dir = ""
parser = ConfigParser()
parser.read(config_dir + filename + ".conf")
return parser._sections[filename]
| 19.7 | 48 | 0.705584 | 21 | 197 | 6.47619 | 0.619048 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192893 | 197 | 9 | 49 | 21.888889 | 0.855346 | 0 | 0 | 0 | 0 | 0 | 0.025381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b45b7a12966f6b6599da83e90d6fb3cb245f366c | 310 | py | Python | posts/api/views.py | rkarthikdev/blog_api_django | 9d4e6f7984015518a63fb2793b8539e5636cb9ba | [
"MIT"
] | null | null | null | posts/api/views.py | rkarthikdev/blog_api_django | 9d4e6f7984015518a63fb2793b8539e5636cb9ba | [
"MIT"
] | 5 | 2021-03-19T11:21:48.000Z | 2021-11-15T17:52:14.000Z | posts/api/views.py | rkarthikdev/blog_api_django | 9d4e6f7984015518a63fb2793b8539e5636cb9ba | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from .serializers import PostSerializer
from posts.models import Post
from .permissions import IsGetOrIsAdmin
class PostViewSet(viewsets.ModelViewSet):
queryset = Post.objects.all()
serializer_class = PostSerializer
permission_classes = (IsGetOrIsAdmin,)
| 25.833333 | 42 | 0.796774 | 32 | 310 | 7.625 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148387 | 310 | 11 | 43 | 28.181818 | 0.924242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b4653ed93206024a4b84f1737222d2c8bc153179 | 235 | py | Python | src/server/config.py | diegosanchezstrange/auth-server-jwt-flask | 0f08e73c5d572b521a8ec361fad4358991258fc9 | [
"MIT"
] | 1 | 2019-10-18T07:14:56.000Z | 2019-10-18T07:14:56.000Z | src/server/config.py | diegosanchezstrange/auth-server-jwt-flask | 0f08e73c5d572b521a8ec361fad4358991258fc9 | [
"MIT"
] | 2 | 2021-12-01T11:29:55.000Z | 2021-12-01T11:29:56.000Z | src/server/config.py | diegosanchezstrange/auth-server-jwt-flask | 0f08e73c5d572b521a8ec361fad4358991258fc9 | [
"MIT"
] | null | null | null | import os
class Config(object):
DEBUG = False
TESTING = False
SECRET_KEY = os.getenv('SECRET_KEY', 'SUPER_IMPORTANT_KEY')
class DevelopmentConfig(Config):
DEBUG = True
class TestingConfig(Config):
TESTING = True
| 18.076923 | 63 | 0.706383 | 28 | 235 | 5.785714 | 0.571429 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 235 | 12 | 64 | 19.583333 | 0.861702 | 0 | 0 | 0 | 0 | 0 | 0.123404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1.111111 | 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 |
b476df0cc2558e876a3887a124ffd21a404bb895 | 5,583 | py | Python | tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/structured_output.py | joshz123/tensorflow | 7841ca029060ab78e221e757d4b1ee6e3e0ffaa4 | [
"Apache-2.0"
] | 388 | 2020-06-27T01:38:29.000Z | 2022-03-29T14:12:01.000Z | tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/structured_output.py | sagol/tensorflow | 04f2870814d2773e09dcfa00cbe76a66a2c4de88 | [
"Apache-2.0"
] | 58 | 2021-11-22T05:41:28.000Z | 2022-01-19T01:33:40.000Z | tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/structured_output.py | sagol/tensorflow | 04f2870814d2773e09dcfa00cbe76a66a2c4de88 | [
"Apache-2.0"
] | 75 | 2021-12-24T04:48:21.000Z | 2022-03-29T10:13:39.000Z | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 44.309524 | 107 | 0.688519 | 801 | 5,583 | 4.615481 | 0.267166 | 0.043549 | 0.074655 | 0.059778 | 0.532324 | 0.457127 | 0.456857 | 0.456857 | 0.387341 | 0.360022 | 0 | 0.037409 | 0.162099 | 5,583 | 125 | 108 | 44.664 | 0.752886 | 0.695504 | 0 | 0.228571 | 0 | 0 | 0.007394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.142857 | 0.171429 | 0.6 | 0.028571 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
b47d97a263a579e43f857f05ee46aef2b46a587e | 5,502 | py | Python | enaml/widgets/tool_bar.py | xtuzy/enaml | a1b5c0df71c665b6ef7f61d21260db92d77d9a46 | [
"BSD-3-Clause-Clear"
] | 1,080 | 2015-01-04T14:29:34.000Z | 2022-03-29T05:44:51.000Z | enaml/widgets/tool_bar.py | xtuzy/enaml | a1b5c0df71c665b6ef7f61d21260db92d77d9a46 | [
"BSD-3-Clause-Clear"
] | 308 | 2015-01-05T22:44:13.000Z | 2022-03-30T21:19:18.000Z | enaml/widgets/tool_bar.py | xtuzy/enaml | a1b5c0df71c665b6ef7f61d21260db92d77d9a46 | [
"BSD-3-Clause-Clear"
] | 123 | 2015-01-25T16:33:48.000Z | 2022-02-25T19:57:10.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
#-----------------------------------------------------... | 35.044586 | 79 | 0.58506 | 644 | 5,502 | 4.909938 | 0.27795 | 0.028779 | 0.041113 | 0.030361 | 0.226439 | 0.184693 | 0.161923 | 0.127767 | 0.127767 | 0.097407 | 0 | 0.00095 | 0.234824 | 5,502 | 156 | 80 | 35.269231 | 0.750119 | 0.513631 | 0 | 0.224138 | 0 | 0 | 0.102187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.086207 | 0 | 0.586207 | 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 |
b483604e2df070e1dee7920716003f0c4b087099 | 2,058 | py | Python | forgot_password/handlers/__init__.py | oursky/forgot_password | 9afde8b9d39a2837676628f12c9b6f2c45da592a | [
"Apache-2.0"
] | null | null | null | forgot_password/handlers/__init__.py | oursky/forgot_password | 9afde8b9d39a2837676628f12c9b6f2c45da592a | [
"Apache-2.0"
] | null | null | null | forgot_password/handlers/__init__.py | oursky/forgot_password | 9afde8b9d39a2837676628f12c9b6f2c45da592a | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Oursky Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 45.733333 | 78 | 0.794947 | 268 | 2,058 | 5.779851 | 0.317164 | 0.123951 | 0.054229 | 0.082634 | 0.378309 | 0.352485 | 0.083925 | 0.083925 | 0.083925 | 0.083925 | 0 | 0.00459 | 0.153061 | 2,058 | 44 | 79 | 46.772727 | 0.884108 | 0.266278 | 0 | 0.08 | 0 | 0 | 0.03008 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.44 | 0.36 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
81f0254aa52bc4715daccc1a66bfb7d3214c5cba | 1,063 | py | Python | src/pymortests/algorithms/stuff.py | weslowrie/pymor | badb5078b2394162d04a1ebfefe9034b889dac64 | [
"Unlicense"
] | null | null | null | src/pymortests/algorithms/stuff.py | weslowrie/pymor | badb5078b2394162d04a1ebfefe9034b889dac64 | [
"Unlicense"
] | 4 | 2022-03-17T10:07:38.000Z | 2022-03-30T12:41:06.000Z | src/pymortests/algorithms/stuff.py | weslowrie/pymor | badb5078b2394162d04a1ebfefe9034b889dac64 | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2020 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import numpy as np
import pytest
from pymor.algorithms.newton import newton, NewtonError
from pym... | 29.527778 | 77 | 0.747883 | 146 | 1,063 | 5.260274 | 0.554795 | 0.035156 | 0.026042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02623 | 0.139229 | 1,063 | 35 | 78 | 30.371429 | 0.813115 | 0.201317 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.142857 | false | 0 | 0.333333 | 0 | 0.52381 | 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 |
81f6d5f3e4368f7b5c84a551214726b7e67f9c9f | 1,208 | py | Python | tests/test_protocol_implements_decorator.py | rbroderi/protocol_implements_decorator | f878503e27774e5b9c8b032ec2ff0fbd7f4d49bb | [
"BSD-3-Clause"
] | null | null | null | tests/test_protocol_implements_decorator.py | rbroderi/protocol_implements_decorator | f878503e27774e5b9c8b032ec2ff0fbd7f4d49bb | [
"BSD-3-Clause"
] | null | null | null | tests/test_protocol_implements_decorator.py | rbroderi/protocol_implements_decorator | f878503e27774e5b9c8b032ec2ff0fbd7f4d49bb | [
"BSD-3-Clause"
] | null | null | null | from protocol_implements_decorator import implements
from typing import Protocol
def test():
"""Run some tests on the functionality of the decorators."""
class Printable(Protocol):
"""A test protocol that requires a to_string method."""
def to_string(self) -> str:
return ""
... | 21.963636 | 73 | 0.595199 | 130 | 1,208 | 5.469231 | 0.430769 | 0.049226 | 0.091421 | 0.063291 | 0.254571 | 0.120956 | 0.087201 | 0.087201 | 0 | 0 | 0 | 0.003584 | 0.307119 | 1,208 | 54 | 74 | 22.37037 | 0.845878 | 0.237583 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.2 | false | 0.033333 | 0.066667 | 0.166667 | 0.6 | 0.033333 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
81f86a953c4d7b1b503cb152d3b04d53193f220f | 705 | py | Python | setup.py | Natgho/HMS-Search-Kit-Python-Client | 9c0d465fc5b98882065065903ab705312ba649e6 | [
"Apache-2.0"
] | 3 | 2021-02-25T12:51:39.000Z | 2021-02-26T11:47:07.000Z | setup.py | Natgho/HMS-Search-Kit-Python-Client | 9c0d465fc5b98882065065903ab705312ba649e6 | [
"Apache-2.0"
] | null | null | null | setup.py | Natgho/HMS-Search-Kit-Python-Client | 9c0d465fc5b98882065065903ab705312ba649e6 | [
"Apache-2.0"
] | null | null | null | # Created by Sezer BOZKIR<admin@sezerbozkir.com at 2/25/2021
from setuptools import setup
setup(
name='HMSSearchKit',
version='0.1.0',
description='HMS Search Kit Python Client',
url='https://github.com/shuds13/pyexample',
author='Sezer Bozkir',
author_email='admin@sezerbozkir.com',
license... | 29.375 | 60 | 0.61844 | 76 | 705 | 5.710526 | 0.684211 | 0.131336 | 0.172811 | 0.179724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040892 | 0.236879 | 705 | 23 | 61 | 30.652174 | 0.765799 | 0.08227 | 0 | 0.1 | 0 | 0 | 0.52093 | 0.032558 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 |
c30de45d6aa7c68a337d0b835acd7a7cde29a48b | 72 | py | Python | tests/fake_django_settings.py | gpshead/cheap_repr | 076d1ebf4aa02f50093f6bea9b8368fa38a91837 | [
"MIT"
] | 19 | 2018-02-04T23:29:45.000Z | 2022-01-03T14:34:30.000Z | tests/fake_django_settings.py | gpshead/cheap_repr | 076d1ebf4aa02f50093f6bea9b8368fa38a91837 | [
"MIT"
] | 15 | 2018-07-25T18:33:07.000Z | 2021-09-18T11:10:50.000Z | tests/fake_django_settings.py | gpshead/cheap_repr | 076d1ebf4aa02f50093f6bea9b8368fa38a91837 | [
"MIT"
] | 6 | 2017-11-19T17:15:30.000Z | 2021-10-08T00:55:51.000Z | SECRET_KEY = 'jhfhkghg'
INSTALLED_APPS = ['django.contrib.contenttypes'] | 36 | 48 | 0.791667 | 8 | 72 | 6.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 72 | 2 | 48 | 36 | 0.820896 | 0 | 0 | 0 | 0 | 0 | 0.479452 | 0.369863 | 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 |
c313af48f369b41cc0c20af22bb8384c92b1a7c4 | 127 | py | Python | chapter_05_mathematics/section_5_2_fractions/5_14_fractions_create_strings_floats.py | wuxiaofeng8764/P3SL_Example | 8ce1877af7372211b20836f799a8c44679577b7c | [
"MIT"
] | 3 | 2018-08-14T09:33:52.000Z | 2022-03-21T12:31:58.000Z | chapter_05_mathematics/section_5_2_fractions/5_14_fractions_create_strings_floats.py | wuxiaofeng8764/P3SL_Example | 8ce1877af7372211b20836f799a8c44679577b7c | [
"MIT"
] | null | null | null | chapter_05_mathematics/section_5_2_fractions/5_14_fractions_create_strings_floats.py | wuxiaofeng8764/P3SL_Example | 8ce1877af7372211b20836f799a8c44679577b7c | [
"MIT"
] | null | null | null | import fractions
for s in ['0.5', '1.5', '2.0', '5e-1']:
f = fractions.Fraction(s)
print('{0:>4} = {1}'.format(s, f))
| 21.166667 | 39 | 0.511811 | 24 | 127 | 2.708333 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 0.19685 | 127 | 5 | 40 | 25.4 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0.19685 | 0 | 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 |
c31ca548bba1dd7c708c2f2d18f790bb0859d3b4 | 5,015 | py | Python | Tools/compiler/compiler/astgen.py | SaadBazaz/ChinesePython | 800955539dda912d4a1621bcf5a700aaaddc012f | [
"CNRI-Python-GPL-Compatible"
] | 3 | 2022-01-30T20:08:24.000Z | 2022-02-12T08:51:12.000Z | Tools/compiler/compiler/astgen.py | SaadBazaz/ChinesePython | 800955539dda912d4a1621bcf5a700aaaddc012f | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Tools/compiler/compiler/astgen.py | SaadBazaz/ChinesePython | 800955539dda912d4a1621bcf5a700aaaddc012f | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | """Generate ast module from specification"""
import fileinput
import getopt
import re
import sys
from StringIO import StringIO
SPEC = "ast.txt"
COMMA = ", "
def load_boilerplate(file):
f = open(file)
buf = f.read()
f.close()
i = buf.find('### ''PROLOGUE')
j = buf.find('### ''EPILOGUE')
pro = ... | 27.404372 | 79 | 0.514058 | 604 | 5,015 | 4.168874 | 0.245033 | 0.041303 | 0.0278 | 0.023828 | 0.098888 | 0.060763 | 0.051628 | 0.051628 | 0.030183 | 0.030183 | 0 | 0.004655 | 0.357527 | 5,015 | 182 | 80 | 27.554945 | 0.776847 | 0.034297 | 0 | 0.155405 | 1 | 0 | 0.074581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013514 | 0.047297 | null | null | 0.114865 | 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 |
c327a4c945412beb5f683067bbc4d406ad83aa03 | 3,613 | py | Python | applications/ShallowWaterApplication/tests/shallow_water_test_factory.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | null | null | null | applications/ShallowWaterApplication/tests/shallow_water_test_factory.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | null | null | null | applications/ShallowWaterApplication/tests/shallow_water_test_factory.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | null | null | null | import KratosMultiphysics
import KratosMultiphysics.KratosUnittest as KratosUnittest
from KratosMultiphysics.ShallowWaterApplication.shallow_water_analysis import ShallowWaterAnalysis
try:
import numpy
numpy_available = True
except ImportError:
numpy_available = False
try:
import scipy
scipy_avai... | 34.740385 | 98 | 0.781345 | 332 | 3,613 | 8.171687 | 0.271084 | 0.099521 | 0.211574 | 0.147438 | 0.417987 | 0.356432 | 0.356432 | 0.056764 | 0.056764 | 0 | 0 | 0.003951 | 0.159424 | 3,613 | 103 | 99 | 35.07767 | 0.889365 | 0 | 0 | 0.285714 | 0 | 0 | 0.163299 | 0.059784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011905 | false | 0 | 0.107143 | 0 | 0.75 | 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 |
c3395edee93687c7c622661482cacfc6d62d1ef2 | 2,712 | py | Python | python_structure/code_signal_challenges/sort_by_height.py | bangyen/pascal-triangle | 0831348e93c274bdd38bba5c3aeeda7596ab97ee | [
"MIT"
] | 1 | 2020-03-11T10:20:53.000Z | 2020-03-11T10:20:53.000Z | python_structure/code_signal_challenges/sort_by_height.py | bangyen/pascal-triangle | 0831348e93c274bdd38bba5c3aeeda7596ab97ee | [
"MIT"
] | 1 | 2020-07-06T15:45:01.000Z | 2020-07-06T15:50:32.000Z | python_structure/code_signal_challenges/sort_by_height.py | bangyen/pascal-triangle | 0831348e93c274bdd38bba5c3aeeda7596ab97ee | [
"MIT"
] | 1 | 2020-07-02T05:21:58.000Z | 2020-07-02T05:21:58.000Z | """
> Task
Some people are standing in a row in a park. There are trees between them which cannot be moved.
Your task is to rearrange the people by their heights in a non-descending order without moving
the trees. People can be very tall!
> Example
For a = [-1, 150, 190, 170, -1, -1, 160, 180], the output should be [-... | 29.478261 | 106 | 0.577065 | 477 | 2,712 | 3.08805 | 0.247379 | 0.032587 | 0.171079 | 0.207739 | 0.370672 | 0.308215 | 0.008826 | 0.008826 | 0.008826 | 0.008826 | 0 | 0.079253 | 0.269543 | 2,712 | 91 | 107 | 29.802198 | 0.662292 | 0.257006 | 0 | 0.116667 | 0 | 0 | 0.06278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.116667 | 0.416667 | 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 |
c33978d1c78a7a73238baa1b20eaaa402909d1df | 1,134 | py | Python | dglt/contrib/moses/moses/model/organ/generator.py | uta-smile/CD-MVGNN | b48f4cd14befed298980a83edb417ab6809f0af6 | [
"MIT"
] | 3 | 2022-02-06T09:13:51.000Z | 2022-02-19T15:03:35.000Z | dglt/contrib/moses/moses/model/organ/generator.py | uta-smile/CD-MVGNN | b48f4cd14befed298980a83edb417ab6809f0af6 | [
"MIT"
] | 1 | 2022-02-14T23:16:27.000Z | 2022-02-14T23:16:27.000Z | dglt/contrib/moses/moses/model/organ/generator.py | uta-smile/CD-MVGNN | b48f4cd14befed298980a83edb417ab6809f0af6 | [
"MIT"
] | null | null | null | import numpy as np
from functools import wraps
from tqdm import tqdm
import torch
from dglt.contrib.moses.moses.abstract_generator import AbstractGenerator
from dglt.contrib.moses.moses.model.vae.dataset import VAEDesignDataset
class ORGANGenerator(AbstractGenerator):
"""ORGAN - SMILES generator."""
def __i... | 30.648649 | 83 | 0.719577 | 141 | 1,134 | 5.617021 | 0.390071 | 0.037879 | 0.035354 | 0.065657 | 0.366162 | 0.247475 | 0.247475 | 0.247475 | 0.247475 | 0.247475 | 0 | 0 | 0.194004 | 1,134 | 36 | 84 | 31.5 | 0.866521 | 0.250441 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.352941 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c33d9c168daa39857619ec4291fcccda1e048bac | 542 | py | Python | python/exercism/gigasecond/gigasecond.py | lmregus/Portfolio | 9a751443edbfe5ff2b47cdeacca86761ed03e81f | [
"MIT"
] | null | null | null | python/exercism/gigasecond/gigasecond.py | lmregus/Portfolio | 9a751443edbfe5ff2b47cdeacca86761ed03e81f | [
"MIT"
] | 1 | 2021-11-15T17:46:44.000Z | 2021-11-15T17:46:44.000Z | python/exercism/gigasecond/gigasecond.py | lmregus/Portfolio | 9a751443edbfe5ff2b47cdeacca86761ed03e81f | [
"MIT"
] | null | null | null | ##########################
# #
# Developer: Luis Regus #
# Date: 11/13/2015 #
# #
##########################
from datetime import datetime
from datetime import timedelta
def add_gigasecond(date):
''' Returns 1Gs anniversary
This function calculates 1G... | 20.846154 | 46 | 0.490775 | 49 | 542 | 5.408163 | 0.612245 | 0.090566 | 0.135849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.341328 | 542 | 25 | 47 | 21.68 | 0.703081 | 0.370849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c3400472659a07ab2ba2519079d982e51408b002 | 1,387 | py | Python | tests/test_tokenizer.py | jonatan1609/JoLang | 177d18d18b42834c2d624a1050902cc799d7d638 | [
"MIT"
] | 25 | 2021-11-04T11:59:18.000Z | 2022-03-10T20:20:10.000Z | tests/test_tokenizer.py | jonatan1609/JoLang | 177d18d18b42834c2d624a1050902cc799d7d638 | [
"MIT"
] | null | null | null | tests/test_tokenizer.py | jonatan1609/JoLang | 177d18d18b42834c2d624a1050902cc799d7d638 | [
"MIT"
] | 1 | 2022-02-07T21:00:27.000Z | 2022-02-07T21:00:27.000Z | from unittest import TestCase
from jolang.tokenizer import Tokenizer, tokens
class TestTokenizer(TestCase):
tests_pass = {
"+": [tokens.Add],
"-": [tokens.Subtract],
">>": [tokens.RightShift],
">>=": [tokens.InplaceRightShift],
"|": [tokens.BinOr],
"||": [tokens.Log... | 43.34375 | 290 | 0.622206 | 159 | 1,387 | 5.377358 | 0.396226 | 0.149708 | 0.180117 | 0.149708 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01845 | 0.218457 | 1,387 | 31 | 291 | 44.741935 | 0.770295 | 0 | 0 | 0 | 0 | 0 | 0.090844 | 0 | 0 | 0 | 0.003605 | 0 | 0.115385 | 1 | 0.076923 | false | 0.115385 | 0.076923 | 0 | 0.269231 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c3405ab001158b193e09eeb6fb0905820b4c70b8 | 340 | py | Python | megumin/__main__.py | davitudoplugins1234/WhiterKang | f4779d2c440849fa97e7014cd856f885b0abbc87 | [
"MIT"
] | 2 | 2022-02-01T17:55:44.000Z | 2022-03-27T17:21:55.000Z | megumin/__main__.py | davitudoplugins1234/WhiterKang | f4779d2c440849fa97e7014cd856f885b0abbc87 | [
"MIT"
] | null | null | null | megumin/__main__.py | davitudoplugins1234/WhiterKang | f4779d2c440849fa97e7014cd856f885b0abbc87 | [
"MIT"
] | null | null | null | # Copyright (C) 2022 by fnixdev
#
from .bot import megux
from pyrogram import idle
import asyncio
from .utils.database.lang import load_language
async def main():
load_language()
await megux.start()
await idle()
await megux.stop()
if __name__ == "__main__" :
asyncio.get_event_loop().run_unt... | 17.894737 | 55 | 0.705882 | 46 | 340 | 4.913043 | 0.673913 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.194118 | 340 | 18 | 56 | 18.888889 | 0.810219 | 0.085294 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.363636 | 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 |
c35080831dc95db1d8973ea37e121ce75465ed82 | 4,401 | py | Python | tests/test_get_free_timeslots_complex_case_0.py | gemerden/make_my_day_planner | dbd7a170d8ac4688df278063568ab424e5768462 | [
"MIT"
] | 2 | 2020-02-20T14:25:51.000Z | 2020-02-20T14:26:01.000Z | tests/test_get_free_timeslots_complex_case_0.py | gemerden/make_my_day_planner | dbd7a170d8ac4688df278063568ab424e5768462 | [
"MIT"
] | 1 | 2019-12-18T12:46:41.000Z | 2019-12-19T14:37:31.000Z | tests/test_get_free_timeslots_complex_case_0.py | gemerden/make_my_day_planner | dbd7a170d8ac4688df278063568ab424e5768462 | [
"MIT"
] | 2 | 2020-02-08T14:13:09.000Z | 2020-03-21T21:17:25.000Z | import pytest
from app_scripts.get_free_timeslots import get_free_timeslots
"""
Pytest file for testing.
Run with `pytest` in root of project
"""
"""
If any test fails, drop to the python shell and use the following to execute
tests for a specific time_min
```
from app_scripts.get_free_timeslots import get_free_tim... | 31.891304 | 86 | 0.533288 | 752 | 4,401 | 2.93883 | 0.12633 | 0.050679 | 0.070588 | 0.094118 | 0.677376 | 0.619457 | 0.419005 | 0.390045 | 0.382805 | 0.330317 | 0 | 0.283537 | 0.180186 | 4,401 | 137 | 87 | 32.124088 | 0.328991 | 0 | 0 | 0.268041 | 0 | 0 | 0.325267 | 0.07175 | 0 | 0 | 0 | 0 | 0.010309 | 1 | 0.010309 | false | 0 | 0.020619 | 0 | 0.030928 | 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 |
c3589138bc1de5491880359cd41fe82267d1370e | 699 | py | Python | ww/api/admin.py | basilpork/watchword | 922f520104e840e75fe773f2a7310764f0701c49 | [
"MIT"
] | 1 | 2016-02-14T17:12:22.000Z | 2016-02-14T17:12:22.000Z | ww/api/admin.py | basilpork/watchword | 922f520104e840e75fe773f2a7310764f0701c49 | [
"MIT"
] | 3 | 2018-07-15T03:35:06.000Z | 2021-10-02T17:21:55.000Z | ww/api/admin.py | basilpork/watchword | 922f520104e840e75fe773f2a7310764f0701c49 | [
"MIT"
] | 1 | 2019-10-02T03:18:19.000Z | 2019-10-02T03:18:19.000Z | from django.contrib import admin
from ww.api.models import Watch, Ping, Flare, Launch
@admin.register(Watch)
class WatchAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'created', 'word', 'state', 'status', 'last_ping',)
@admin.register(Ping)
class PingAdmin(admin.ModelAdmin):
list_display = ('id', 'cr... | 30.391304 | 90 | 0.693848 | 86 | 699 | 5.523256 | 0.465116 | 0.109474 | 0.16 | 0.218947 | 0.265263 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131617 | 699 | 22 | 91 | 31.772727 | 0.782537 | 0 | 0 | 0 | 0 | 0 | 0.194564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c35a02171b560c4a30f4a1d48d2ee408d0833fd9 | 5,028 | py | Python | tests/reqgenerator/reqgenerator.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | null | null | null | tests/reqgenerator/reqgenerator.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | 10 | 2018-03-28T17:25:16.000Z | 2021-03-05T10:15:06.000Z | tests/reqgenerator/reqgenerator.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | 1 | 2019-06-07T20:43:45.000Z | 2019-06-07T20:43:45.000Z | # dependencies
# pip install requests cachecontrol beautifulsoup4
from datetime import datetime
import random
import requests
import sys
import time
from threading import Thread
from bs4 import BeautifulSoup
from cachecontrol import CacheControl
# note, when using localhost and port, cache never filled.
URL = 'http:/... | 34.204082 | 101 | 0.598846 | 624 | 5,028 | 4.677885 | 0.294872 | 0.043165 | 0.023981 | 0.021925 | 0.182597 | 0.159986 | 0.138746 | 0.09421 | 0.09421 | 0.031518 | 0 | 0.01628 | 0.279236 | 5,028 | 146 | 102 | 34.438356 | 0.789183 | 0.067025 | 0 | 0.086207 | 0 | 0.008621 | 0.1259 | 0.005891 | 0 | 0 | 0 | 0.006849 | 0 | 0 | null | null | 0.051724 | 0.068966 | null | null | 0.025862 | 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 |
c35bc315e3b98332b933ac9d40a0bdc24c8a3fe4 | 1,055 | py | Python | apps/gridportal/base/AYS/.macros/page/ayscodeeditors/3_ayscodeeditors.py | jumpscale7/jumpscale_portal | 8c99265e48f85643f8a52bc40a23f5266fb09231 | [
"Apache-2.0"
] | 2 | 2016-04-14T14:05:01.000Z | 2016-04-21T07:20:36.000Z | apps/gridportal/base/AYS/.macros/page/ayscodeeditors/3_ayscodeeditors.py | jumpscale7/jumpscale_portal | 8c99265e48f85643f8a52bc40a23f5266fb09231 | [
"Apache-2.0"
] | 13 | 2016-03-07T12:07:15.000Z | 2018-02-28T13:11:59.000Z | apps/gridportal/base/AYS/.macros/page/ayscodeeditors/3_ayscodeeditors.py | jumpscale7/jumpscale_portal | 8c99265e48f85643f8a52bc40a23f5266fb09231 | [
"Apache-2.0"
] | 5 | 2016-03-08T07:49:51.000Z | 2018-10-19T13:57:04.000Z | def main(j, args, params, tags, tasklet):
page = args.page
logpath = args.requestContext.params.get('logpath')
templatepath = args.requestContext.params.get('templatepath')
installedpath = args.requestContext.params.get('installedpath')
metapath = args.requestContext.params.get('metapath')
dom... | 37.678571 | 134 | 0.682464 | 121 | 1,055 | 5.950413 | 0.421488 | 0.175 | 0.233333 | 0.2625 | 0.061111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005767 | 0.178199 | 1,055 | 27 | 135 | 39.074074 | 0.824683 | 0 | 0 | 0 | 0 | 0 | 0.116588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0.05 | 0.2 | 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 |
c36b261f98a6c99a79c4f376e220c3d208e834c3 | 2,077 | py | Python | tests/test_authentication.py | da8y01/xkcd3-back | 83037e50e10aa34135828661af0e032c9db983b1 | [
"MIT"
] | null | null | null | tests/test_authentication.py | da8y01/xkcd3-back | 83037e50e10aa34135828661af0e032c9db983b1 | [
"MIT"
] | null | null | null | tests/test_authentication.py | da8y01/xkcd3-back | 83037e50e10aa34135828661af0e032c9db983b1 | [
"MIT"
] | null | null | null | # coding: utf-8
from flask import url_for
from xkcd.exceptions import USER_ALREADY_REGISTERED
def _register_user(testapp, **kwargs):
return testapp.post_json(url_for("users.register_user"), {
"user": {
"first_name": "mo",
"last_name": "mo",
"email": "mo@mo.mo",
... | 31.953846 | 72 | 0.561868 | 236 | 2,077 | 4.75 | 0.224576 | 0.042819 | 0.128457 | 0.160571 | 0.639607 | 0.598573 | 0.450491 | 0.416592 | 0.416592 | 0.416592 | 0 | 0.002642 | 0.271064 | 2,077 | 64 | 73 | 32.453125 | 0.737781 | 0.006259 | 0 | 0.352941 | 0 | 0 | 0.177013 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 1 | 0.117647 | false | 0.058824 | 0.039216 | 0.019608 | 0.196078 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c36cda6bebbdc293607d57b2d0fddc992026d4c1 | 1,150 | py | Python | aiotdlib/api/functions/delete_revoked_chat_invite_link.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/functions/delete_revoked_chat_invite_link.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/functions/delete_revoked_chat_invite_link.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 35.9375 | 162 | 0.511304 | 96 | 1,150 | 5.989583 | 0.583333 | 0.069565 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293913 | 1,150 | 31 | 163 | 37.096774 | 0.708128 | 0.607826 | 0 | 0 | 1 | 0 | 0.080808 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 0.9 | 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 |
c373398fb511d61f08caf8d847231639a81b635a | 1,028 | py | Python | inputs/fields/field.py | Receiling/ENPAR | decd2945d21a7be5a0f73c37cfc5e252301aab15 | [
"MIT"
] | 5 | 2021-06-09T13:38:22.000Z | 2022-01-29T05:26:51.000Z | inputs/fields/field.py | Receiling/ENPAR | decd2945d21a7be5a0f73c37cfc5e252301aab15 | [
"MIT"
] | null | null | null | inputs/fields/field.py | Receiling/ENPAR | decd2945d21a7be5a0f73c37cfc5e252301aab15 | [
"MIT"
] | 1 | 2021-10-31T05:09:16.000Z | 2021-10-31T05:09:16.000Z | from abc import ABC, abstractclassmethod
class Field(ABC):
"""Abstract class `Field` define one indexing method,
generate counter from raw text data and index token in raw text data
Arguments:
ABC {ABC} -- abstract base class
"""
@abstractclassmethod
def count_vocab_items(self, count... | 28.555556 | 76 | 0.643969 | 106 | 1,028 | 6.226415 | 0.518868 | 0.048485 | 0.033333 | 0.063636 | 0.136364 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290856 | 1,028 | 35 | 77 | 29.371429 | 0.90535 | 0.580739 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c37f768b06b5765c62042731062b3988f30471c6 | 135 | py | Python | medcon/__main__.py | FNNDSC/pl-medcon | 7cca3b6986a6fc6ede28a6bc351882b7e39f277e | [
"MIT"
] | null | null | null | medcon/__main__.py | FNNDSC/pl-medcon | 7cca3b6986a6fc6ede28a6bc351882b7e39f277e | [
"MIT"
] | 1 | 2020-06-25T14:21:39.000Z | 2020-06-25T14:21:39.000Z | medcon/__main__.py | FNNDSC/pl-medcon | 7cca3b6986a6fc6ede28a6bc351882b7e39f277e | [
"MIT"
] | 1 | 2020-11-12T21:41:02.000Z | 2020-11-12T21:41:02.000Z | from medcon.medcon import Medcon
def main():
chris_app = Medcon()
chris_app.launch()
if __name__ == "__main__":
main()
| 12.272727 | 32 | 0.644444 | 17 | 135 | 4.529412 | 0.588235 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22963 | 135 | 10 | 33 | 13.5 | 0.740385 | 0 | 0 | 0 | 0 | 0 | 0.059259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
5effaa0122aef6ba6d0ec9b6291d5dd57a2e5485 | 447 | py | Python | pysynphot/test/test_ticket126.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | 24 | 2015-01-04T23:38:21.000Z | 2022-02-01T00:11:07.000Z | pysynphot/test/test_ticket126.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | 126 | 2015-01-29T14:50:37.000Z | 2022-02-15T01:58:13.000Z | pysynphot/test/test_ticket126.py | dobos/pysynphot | 5d2e0b52ceda78890940ac9239c2d88e149e0bed | [
"BSD-3-Clause"
] | 25 | 2015-02-09T12:12:02.000Z | 2021-09-09T13:06:54.000Z | """
Applies to both #125 and #126.
Test raises an error if the bug has not been fixed.
"""
from __future__ import absolute_import, division, print_function
import pytest
from ..spectrum import SourceSpectrum
from ..spparser import parse_spec
@pytest.mark.remote_data
def test_ticket125():
sp = parse_spec('rn(ica... | 24.833333 | 76 | 0.720358 | 64 | 447 | 4.875 | 0.78125 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07027 | 0.17226 | 447 | 17 | 77 | 26.294118 | 0.772973 | 0.183445 | 0 | 0 | 0 | 0.111111 | 0.182073 | 0.151261 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6f08d4da07c55f770821f90e8e7ea2e38aafd071 | 513 | py | Python | app/user/views.py | chandan-urs/recipe-app-api | 647c9afb4e9b96eaf6f36cdae2de4843cab9d21a | [
"MIT"
] | null | null | null | app/user/views.py | chandan-urs/recipe-app-api | 647c9afb4e9b96eaf6f36cdae2de4843cab9d21a | [
"MIT"
] | null | null | null | app/user/views.py | chandan-urs/recipe-app-api | 647c9afb4e9b96eaf6f36cdae2de4843cab9d21a | [
"MIT"
] | null | null | null | from rest_framework import generics
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.settings import api_settings
from . import serializers
class CreateUserView(generics.CreateAPIView):
"""Creates a new user in the system"""
serializer_class = serializers.UserSerializer
class ... | 30.176471 | 60 | 0.810916 | 58 | 513 | 7 | 0.551724 | 0.059113 | 0.125616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132554 | 513 | 16 | 61 | 32.0625 | 0.91236 | 0.126706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 |
6f1d5a786bc30402eb73dbd1c83863e37f04cead | 5,634 | py | Python | flask_news2/controlers/admin.py | lpy148145/test | b9ff99ed9faadf55455b1a78712c8fbbd0ca6676 | [
"Unlicense"
] | null | null | null | flask_news2/controlers/admin.py | lpy148145/test | b9ff99ed9faadf55455b1a78712c8fbbd0ca6676 | [
"Unlicense"
] | null | null | null | flask_news2/controlers/admin.py | lpy148145/test | b9ff99ed9faadf55455b1a78712c8fbbd0ca6676 | [
"Unlicense"
] | null | null | null | from flask import Blueprint, render_template, url_for, flash, redirect, session, request
from werkzeug.security import generate_password_hash, check_password_hash
from forms import UserForm, NewsForm
from functools import wraps
from application import db
from modules import User, News
from datetime import datetime
ad... | 29.968085 | 101 | 0.622826 | 668 | 5,634 | 5.079341 | 0.200599 | 0.044209 | 0.055113 | 0.058945 | 0.367816 | 0.262305 | 0.21397 | 0.111406 | 0.089596 | 0.061892 | 0 | 0.003298 | 0.246539 | 5,634 | 187 | 102 | 30.128342 | 0.795995 | 0.033901 | 0 | 0.267123 | 1 | 0 | 0.124287 | 0.02854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089041 | false | 0.061644 | 0.047945 | 0.013699 | 0.273973 | 0.020548 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6f27d04d22425e1352fe43a77e0b68ade345ddde | 478 | py | Python | django_emailsupport/management/commands/download_emails.py | rosti-cz/django-emailsupport | 908e347b1cc09d51096d2d14b4ccc3f1ccccc953 | [
"MIT"
] | 2 | 2016-01-16T08:45:28.000Z | 2017-11-15T19:30:52.000Z | django_emailsupport/management/commands/download_emails.py | rosti-cz/django-emailsupport | 908e347b1cc09d51096d2d14b4ccc3f1ccccc953 | [
"MIT"
] | null | null | null | django_emailsupport/management/commands/download_emails.py | rosti-cz/django-emailsupport | 908e347b1cc09d51096d2d14b4ccc3f1ccccc953 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.core.management.base import BaseCommand
from django_emailsupport.processor import download_and_save
logger = logging.getLogger('default')
class Command(BaseCommand):
help = 'Download emails'
def handle(self, *args, ... | 23.9 | 71 | 0.686192 | 56 | 478 | 5.678571 | 0.714286 | 0.062893 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002618 | 0.200837 | 478 | 19 | 72 | 25.157895 | 0.829843 | 0.043933 | 0 | 0 | 0 | 0 | 0.079121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6f2c2f00b92e727e88d16a2d923215ef4080573b | 722 | py | Python | services/app/src/concrete_data/__init__.py | yingw787/tinydevcrm-saas-starter | 0a37a8f0dccc5ec4b9074de40371d0074744ae79 | [
"MIT"
] | 2 | 2020-05-22T22:23:01.000Z | 2020-06-22T05:02:00.000Z | services/app/src/concrete_data/__init__.py | yingw787/tinydevcrm-saas-starter | 0a37a8f0dccc5ec4b9074de40371d0074744ae79 | [
"MIT"
] | 7 | 2021-03-19T02:40:00.000Z | 2021-09-22T18:57:26.000Z | services/app/src/concrete_data/__init__.py | yingw787/tinydevcrm-saas-starter | 0a37a8f0dccc5ec4b9074de40371d0074744ae79 | [
"MIT"
] | null | null | null | """
Concrete data service.
This Django app manages API endpoints related to managing "concrete data", or
data that serves as the foundational sources of truth for users. This is opposed
to "derived data", which is data computed via mathematical, logical /
relational, or other types of transformations. For example, a m... | 45.125 | 80 | 0.804709 | 104 | 722 | 5.586538 | 0.673077 | 0.061962 | 0.05852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152355 | 722 | 15 | 81 | 48.133333 | 0.949346 | 0.987535 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f2cec1b9744315aa113d717fe41356400055e5f | 73 | py | Python | openpype/modules/job_queue/__init__.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 87 | 2021-05-07T08:40:46.000Z | 2022-03-19T00:36:25.000Z | openpype/modules/job_queue/__init__.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | 1,019 | 2021-04-26T06:22:56.000Z | 2022-03-31T16:30:43.000Z | openpype/modules/job_queue/__init__.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | 33 | 2021-04-29T12:35:54.000Z | 2022-03-25T14:48:42.000Z | from .module import JobQueueModule
__all__ = (
"JobQueueModule",
)
| 10.428571 | 34 | 0.69863 | 6 | 73 | 7.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205479 | 73 | 6 | 35 | 12.166667 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 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 |
6f41475b32e97fa39956e924f3ad28d185421cf5 | 375 | py | Python | dbt/adapters/synapse/connections.py | swanjson/dbt-synapse | 38f96116b6b89921e6083ac3850f3cabbb1f2c05 | [
"MIT"
] | 25 | 2020-11-05T16:22:46.000Z | 2022-03-14T04:41:50.000Z | dbt/adapters/synapse/connections.py | swanjson/dbt-synapse | 38f96116b6b89921e6083ac3850f3cabbb1f2c05 | [
"MIT"
] | 44 | 2020-11-11T00:09:21.000Z | 2022-03-29T08:12:48.000Z | dbt/adapters/synapse/connections.py | swanjson/dbt-synapse | 38f96116b6b89921e6083ac3850f3cabbb1f2c05 | [
"MIT"
] | 12 | 2020-11-05T16:22:49.000Z | 2022-02-25T18:55:03.000Z | from dataclasses import dataclass
from dbt.adapters.sqlserver import (SQLServerConnectionManager,
SQLServerCredentials)
@dataclass
class SynapseCredentials(SQLServerCredentials):
@property
def type(self):
return "synapse"
class SynapseConnectionManager(SQLServerCon... | 25 | 63 | 0.706667 | 28 | 375 | 9.464286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234667 | 375 | 14 | 64 | 26.785714 | 0.923345 | 0 | 0 | 0 | 0 | 0 | 0.037333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 0.727273 | 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 |
6f463e6d8e867fd395721bdd11b5b2cfa8c6521f | 361 | py | Python | docs/dc/singleton/app.py | ztane/wired | 63cee7e3c39bd64ad36f1c8e6f63e22bd1010ad0 | [
"MIT"
] | 12 | 2018-07-22T15:40:35.000Z | 2020-12-27T21:39:18.000Z | docs/dc/singleton/app.py | ztane/wired | 63cee7e3c39bd64ad36f1c8e6f63e22bd1010ad0 | [
"MIT"
] | 36 | 2019-03-23T13:47:25.000Z | 2020-11-28T18:08:14.000Z | docs/dc/singleton/app.py | ztane/wired | 63cee7e3c39bd64ad36f1c8e6f63e22bd1010ad0 | [
"MIT"
] | 6 | 2019-03-23T20:08:57.000Z | 2021-06-03T16:52:06.000Z | # app.py
from dataclasses import dataclass, field
from venusian import Scanner
from wired import ServiceRegistry
from . import models
@dataclass
class App:
registry: ServiceRegistry = field(default_factory=ServiceRegistry)
def scan(self):
# Look for decorators
scanner = Scanner(registry=sel... | 20.055556 | 70 | 0.734072 | 41 | 361 | 6.439024 | 0.536585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202216 | 361 | 17 | 71 | 21.235294 | 0.916667 | 0.072022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 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 |
6f477234e17906c81082877342eabcd84e6ec08b | 451 | py | Python | setup.py | DeveloperHacker/Live-Plotter | 185cbc182bf66df52c4a4489fc4fda4ec9eaed1c | [
"MIT"
] | null | null | null | setup.py | DeveloperHacker/Live-Plotter | 185cbc182bf66df52c4a4489fc4fda4ec9eaed1c | [
"MIT"
] | null | null | null | setup.py | DeveloperHacker/Live-Plotter | 185cbc182bf66df52c4a4489fc4fda4ec9eaed1c | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='live-plotter',
version='1.0',
packages=[
'live_plotter',
'live_plotter.base',
'live_plotter.proxy'
],
url='https://github.com/DeveloperHacker/Live-Plotter',
license='MIT',
author='HackerMadCat',
author_email='hacker.mad.c... | 21.47619 | 58 | 0.609756 | 47 | 451 | 5.744681 | 0.744681 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005865 | 0.243902 | 451 | 20 | 59 | 22.55 | 0.785924 | 0 | 0 | 0.105263 | 0 | 0 | 0.419069 | 0.053215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f4c31a8d9a834004260fdf94482331b5334a57b | 20,008 | py | Python | applications/ParticleMechanicsApplication/tests/test_search_mpm_particle.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 2 | 2019-10-25T09:28:10.000Z | 2019-11-21T12:51:46.000Z | applications/ParticleMechanicsApplication/tests/test_search_mpm_particle.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 13 | 2019-10-07T12:06:51.000Z | 2020-02-18T08:48:33.000Z | applications/ParticleMechanicsApplication/tests/test_search_mpm_particle.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | null | null | null | from __future__ import print_function, absolute_import, division
import KratosMultiphysics
import KratosMultiphysics.ParticleMechanicsApplication as KratosParticle
import KratosMultiphysics.KratosUnittest as KratosUnittest
class TestSearchMPMParticle(KratosUnittest.TestCase):
def _generate_particle_element(self... | 50.271357 | 136 | 0.692073 | 2,546 | 20,008 | 5.128437 | 0.077769 | 0.102933 | 0.074213 | 0.06127 | 0.790381 | 0.746649 | 0.717163 | 0.689362 | 0.61132 | 0.579766 | 0 | 0.070509 | 0.20042 | 20,008 | 397 | 137 | 50.397985 | 0.745656 | 0.015644 | 0 | 0.491582 | 0 | 0 | 0.031152 | 0.012806 | 0 | 0 | 0 | 0 | 0.016835 | 1 | 0.070707 | false | 0 | 0.013468 | 0 | 0.087542 | 0.003367 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f53d23c5cd28b4022024b044588e71e78db9e88 | 20,693 | py | Python | botenv/lib/python3.9/site-packages/telegram/ext/commandhandler.py | 0xtuytuy/unit-crypto-ski-week-poap-bot | 9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1 | [
"MIT"
] | null | null | null | botenv/lib/python3.9/site-packages/telegram/ext/commandhandler.py | 0xtuytuy/unit-crypto-ski-week-poap-bot | 9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1 | [
"MIT"
] | null | null | null | botenv/lib/python3.9/site-packages/telegram/ext/commandhandler.py | 0xtuytuy/unit-crypto-ski-week-poap-bot | 9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2022
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 45.280088 | 99 | 0.638187 | 2,583 | 20,693 | 5.023616 | 0.130081 | 0.012485 | 0.024661 | 0.017263 | 0.713548 | 0.695438 | 0.677404 | 0.670546 | 0.664072 | 0.65151 | 0 | 0.001786 | 0.26956 | 20,693 | 456 | 100 | 45.379386 | 0.856699 | 0.63089 | 0 | 0.436047 | 0 | 0 | 0.029582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063953 | false | 0.127907 | 0.063953 | 0 | 0.215116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6f56d51e84a5a8d5db4d98c2b21687473eae0dde | 1,249 | py | Python | build/lib/Tests/Utils/test_argument_loader.py | AnaTomomi/tscfat | 74a89b61dc8ebd093212f356d8a20a3589eda789 | [
"MIT"
] | 1 | 2021-11-07T14:20:21.000Z | 2021-11-07T14:20:21.000Z | build/lib/Tests/Utils/test_argument_loader.py | AnaTomomi/tscfat | 74a89b61dc8ebd093212f356d8a20a3589eda789 | [
"MIT"
] | 11 | 2021-04-13T11:46:06.000Z | 2022-03-12T01:11:55.000Z | build/lib/Tests/Utils/test_argument_loader.py | AnaTomomi/tscfat | 74a89b61dc8ebd093212f356d8a20a3589eda789 | [
"MIT"
] | 3 | 2021-01-22T11:11:58.000Z | 2021-04-13T11:26:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 31 22:52:40 2021
@author: ikaheia1
Tests for argument loader.
1) setup_pd should return a pandas dataframe
2) setup_ps should return a pandas series
3) setup_np shoulf return a numpy array
"""
import numpy as np
import pandas as pd
f... | 19.825397 | 69 | 0.57486 | 147 | 1,249 | 4.714286 | 0.380952 | 0.070707 | 0.051948 | 0.073593 | 0.376623 | 0.168831 | 0.168831 | 0.168831 | 0.118326 | 0 | 0 | 0.021792 | 0.338671 | 1,249 | 63 | 70 | 19.825397 | 0.817191 | 0.393915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6f5e5f6f42858592f225d4f7cd976dca6181ef04 | 739 | py | Python | src/spaceone/core/handler/mutation_handler.py | ku524/python-core | 2004338aca00f776f68f83d73d8dc933d40d9e9c | [
"Apache-2.0"
] | null | null | null | src/spaceone/core/handler/mutation_handler.py | ku524/python-core | 2004338aca00f776f68f83d73d8dc933d40d9e9c | [
"Apache-2.0"
] | null | null | null | src/spaceone/core/handler/mutation_handler.py | ku524/python-core | 2004338aca00f776f68f83d73d8dc933d40d9e9c | [
"Apache-2.0"
] | null | null | null | import logging
from spaceone.core.error import *
from spaceone.core import pygrpc
from spaceone.core import utils
from spaceone.core.transaction import Transaction
from spaceone.core.handler import BaseMutationHandler
_LOGGER = logging.getLogger(__name__)
class SpaceONEMutationHandler(BaseMutationHandler):
def... | 29.56 | 64 | 0.748309 | 85 | 739 | 6.247059 | 0.411765 | 0.112994 | 0.150659 | 0.082863 | 0.143126 | 0.143126 | 0.143126 | 0.143126 | 0 | 0 | 0 | 0 | 0.166441 | 739 | 24 | 65 | 30.791667 | 0.862013 | 0 | 0 | 0.235294 | 0 | 0 | 0.028417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.117647 | 0.352941 | 0 | 0.588235 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
6f6dd8ae7e91c253d203dccbdd4345087e922703 | 4,766 | py | Python | api/collections/nodeman.py | brookylin/bk-sops | 6c0cf78879849921c4ff6ad6bf3bb82dfdf5b973 | [
"Apache-2.0"
] | 881 | 2019-03-25T02:45:42.000Z | 2022-03-30T09:10:49.000Z | api/collections/nodeman.py | m0re-work/bk-sops | d03ba8a4ee0781c6daaf0dd38a7369dc82669f7d | [
"Apache-2.0"
] | 3,303 | 2019-03-25T04:18:03.000Z | 2022-03-31T11:52:03.000Z | api/collections/nodeman.py | m0re-work/bk-sops | d03ba8a4ee0781c6daaf0dd38a7369dc82669f7d | [
"Apache-2.0"
] | 395 | 2019-03-25T02:53:36.000Z | 2022-03-31T08:37:28.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 40.05042 | 119 | 0.655266 | 668 | 4,766 | 4.32485 | 0.239521 | 0.086535 | 0.080997 | 0.119418 | 0.444098 | 0.4081 | 0.354102 | 0.318103 | 0.309796 | 0.280028 | 0 | 0.007266 | 0.220311 | 4,766 | 118 | 120 | 40.389831 | 0.770183 | 0.153588 | 0 | 0.180723 | 0 | 0 | 0.145093 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204819 | false | 0 | 0.036145 | 0.180723 | 0.457831 | 0.012048 | 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 |
6f798cdc99f0e788fea4f6ab4e7e9626cad90231 | 301 | py | Python | Analyzer/__init__.py | buxiangqimingle233/NoCPerformanceModel | 5125e80d95425a98b22dcb611cf45eeda82c63f0 | [
"MIT"
] | null | null | null | Analyzer/__init__.py | buxiangqimingle233/NoCPerformanceModel | 5125e80d95425a98b22dcb611cf45eeda82c63f0 | [
"MIT"
] | null | null | null | Analyzer/__init__.py | buxiangqimingle233/NoCPerformanceModel | 5125e80d95425a98b22dcb611cf45eeda82c63f0 | [
"MIT"
] | null | null | null | import os
import sys
root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(root)
sys.path.append(root + "/Driver")
sys.path.append(root + "/Estimator")
sys.path.append(root + "/CongManager")
sys.path.append(root + "/Util")
sys.path.append(root + "/Default")
print("WUHU")
| 27.363636 | 66 | 0.717608 | 46 | 301 | 4.608696 | 0.347826 | 0.198113 | 0.367925 | 0.481132 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079734 | 301 | 10 | 67 | 30.1 | 0.765343 | 0 | 0 | 0 | 0 | 0 | 0.152824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 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 |
489e8d14fa4611fac2b9cfc73fffb569c8a0872a | 1,577 | py | Python | tests/test_analysis/test_outliers/test_median_outliers.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | 1 | 2021-11-11T21:18:42.000Z | 2021-11-11T21:18:42.000Z | tests/test_analysis/test_outliers/test_median_outliers.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | null | null | null | tests/test_analysis/test_outliers/test_median_outliers.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pytest
from etna.analysis.outliers import get_anomalies_median
@pytest.mark.parametrize(
"window_size, alpha, right_anomal",
(
(10, 3, {"1": [np.datetime64("2021-01-11")], "2": [np.datetime64("2021-01-09"), np.datetime64("2021-01-27")]}),
(
10,
... | 37.547619 | 119 | 0.63792 | 220 | 1,577 | 4.381818 | 0.290909 | 0.161826 | 0.19917 | 0.224066 | 0.46473 | 0.280083 | 0.280083 | 0.280083 | 0.192946 | 0.192946 | 0 | 0.11478 | 0.193405 | 1,577 | 41 | 120 | 38.463415 | 0.643082 | 0 | 0 | 0.058824 | 0 | 0 | 0.114141 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.088235 | false | 0 | 0.088235 | 0 | 0.176471 | 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 |
48b37827ff85024585b4c369afe3dd80f06a75b6 | 6,167 | py | Python | Ninja/WhiteBook/search_n_sort.py | cyandterry/Python-Study | b40e6c4db10da417e72247f61146f7570621106a | [
"MIT"
] | 61 | 2015-02-03T20:25:55.000Z | 2021-05-17T19:33:40.000Z | Ninja/WhiteBook/search_n_sort.py | cyandterry/Python-Study | b40e6c4db10da417e72247f61146f7570621106a | [
"MIT"
] | null | null | null | Ninja/WhiteBook/search_n_sort.py | cyandterry/Python-Study | b40e6c4db10da417e72247f61146f7570621106a | [
"MIT"
] | 37 | 2015-02-04T07:12:52.000Z | 2020-05-16T18:47:16.000Z | #!/usr/bin/env python
def swap(data_list, i1, i2):
temp = data_list[i1]
data_list[i1] = data_list[i2]
data_list[i2] = temp
def bubble_sort(data_list):
flag = True
for i in range( 1, len(data_list)):
flag = True
for j in range( 1, len(data_list)):
if data_list[j-1] > dat... | 27.408889 | 81 | 0.576455 | 893 | 6,167 | 3.765957 | 0.134379 | 0.214095 | 0.040143 | 0.037467 | 0.377342 | 0.267023 | 0.223313 | 0.173952 | 0.129051 | 0.129051 | 0 | 0.019712 | 0.325442 | 6,167 | 224 | 82 | 27.53125 | 0.788702 | 0 | 0 | 0.295181 | 0 | 0 | 0.001446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006024 | 0.006024 | null | null | 0.036145 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48b3bc6c8647990312c73813183574e4c1320ed9 | 345 | py | Python | app/area/serializers.py | spbso/so_rest | 2ede1ee849fa3e4ba9fc76a64a522b9aaa34e27f | [
"MIT"
] | null | null | null | app/area/serializers.py | spbso/so_rest | 2ede1ee849fa3e4ba9fc76a64a522b9aaa34e27f | [
"MIT"
] | 1 | 2022-03-11T14:25:08.000Z | 2022-03-11T14:25:08.000Z | app/area/serializers.py | spbso/so_rest | 2ede1ee849fa3e4ba9fc76a64a522b9aaa34e27f | [
"MIT"
] | null | null | null | from core.models import Area
from core.serializers import DynamicFieldsModelSerializer
from django.utils.translation import ugettext_lazy as _
class AreaSerializer(DynamicFieldsModelSerializer):
"""serializer for the area objects"""
class Meta:
model = Area
fields = ("id", "title")
re... | 26.538462 | 57 | 0.718841 | 37 | 345 | 6.594595 | 0.702703 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197101 | 345 | 12 | 58 | 28.75 | 0.880866 | 0.089855 | 0 | 0 | 0 | 0 | 0.029221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 |
48bf16be94aaa8d31095dcb1b471f4c5f061d305 | 1,693 | py | Python | inst/python/ee_utils.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | inst/python/ee_utils.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | inst/python/ee_utils.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Python utils module for rgee
>>> ee_create_json_py | utils-upload.R | ee_gcs_to_asset_image function
>>> eedate_to_rdate | ee_Date.R | eedate_to_rdate function
"""
import base64
import hashlib
import json
import os
import ee
# utils-upload.R --> ee_gcs_to_asset_image func... | 26.873016 | 85 | 0.703485 | 241 | 1,693 | 4.672199 | 0.431535 | 0.013321 | 0.057726 | 0.024867 | 0.269982 | 0.197158 | 0.197158 | 0.147425 | 0.065719 | 0 | 0 | 0.013699 | 0.180744 | 1,693 | 62 | 86 | 27.306452 | 0.798125 | 0.298287 | 0 | 0 | 0 | 0 | 0.088965 | 0.01882 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.147059 | 0.058824 | 0.588235 | 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 |
48c4e771ce9f459f60b85770f5fbe61525f46d98 | 246 | py | Python | build/lib.linux-i686-3.3/pywt/version.py | astromaddie/pywavelets-py3 | 9d434929cb748eb44be86a4b712d8f3009326693 | [
"MIT"
] | 1 | 2018-03-13T10:44:47.000Z | 2018-03-13T10:44:47.000Z | build/lib.linux-i686-3.3/pywt/version.py | astromaddie/pywavelets-py3 | 9d434929cb748eb44be86a4b712d8f3009326693 | [
"MIT"
] | null | null | null | build/lib.linux-i686-3.3/pywt/version.py | astromaddie/pywavelets-py3 | 9d434929cb748eb44be86a4b712d8f3009326693 | [
"MIT"
] | 1 | 2018-03-13T10:44:54.000Z | 2018-03-13T10:44:54.000Z |
# THIS FILE IS GENERATED FROM PYWAVELETS SETUP.PY
short_version = '0.3.0'
version = '0.3.0'
full_version = '0.3.0.dev-7ea3e91'
git_revision = '7ea3e919b1d7bbf4d7685c47d3d10c16c599cd06'
release = False
if not release:
version = full_version
| 22.363636 | 57 | 0.756098 | 35 | 246 | 5.2 | 0.628571 | 0.131868 | 0.148352 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175355 | 0.142276 | 246 | 10 | 58 | 24.6 | 0.687204 | 0.191057 | 0 | 0 | 1 | 0 | 0.341837 | 0.204082 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48c95563ed0ab4136de54503a385f5380cc4c770 | 395 | py | Python | bot/handlers/password_handler.py | under735/botkaca | 1f560df2f9ff83eba6469927864bc7ea5e2bc3e1 | [
"MIT"
] | 1 | 2021-04-07T10:59:49.000Z | 2021-04-07T10:59:49.000Z | bot/handlers/password_handler.py | under735/botkaca | 1f560df2f9ff83eba6469927864bc7ea5e2bc3e1 | [
"MIT"
] | null | null | null | bot/handlers/password_handler.py | under735/botkaca | 1f560df2f9ff83eba6469927864bc7ea5e2bc3e1 | [
"MIT"
] | 1 | 2021-02-23T20:21:35.000Z | 2021-02-23T20:21:35.000Z | from pyrogram import Client, Message
from bot import LOCAL, CONFIG
from bot.handlers import help_message_handler
async def func(client : Client, message: Message):
try:
await message.delete()
except:
pass
if ' '.join(message.command[1:]) == CONFIG.BOT_PASSWORD:
CONFIG.CHAT_ID.append... | 30.384615 | 60 | 0.703797 | 52 | 395 | 5.230769 | 0.519231 | 0.143382 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003175 | 0.202532 | 395 | 12 | 61 | 32.916667 | 0.860317 | 0 | 0 | 0 | 0 | 0 | 0.002532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.181818 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
48c9741c2c9edf4b861dd179995b50003fdc8b1f | 1,394 | py | Python | autocleus/library/__init__.py | ludah65/autocleus | b7403894e4f72d7874af4d888ec63bd1e7832c02 | [
"Apache-2.0"
] | 2 | 2021-05-21T15:51:24.000Z | 2021-05-21T17:27:48.000Z | autocleus/library/__init__.py | ludah65/autocleus | b7403894e4f72d7874af4d888ec63bd1e7832c02 | [
"Apache-2.0"
] | null | null | null | autocleus/library/__init__.py | ludah65/autocleus | b7403894e4f72d7874af4d888ec63bd1e7832c02 | [
"Apache-2.0"
] | null | null | null | import os
import autocleus.cmd as cmd
import jinja2
from jinja2 import Environment, PackageLoader, select_autoescape, StrictUndefined
def find_license(license):
"""
Return base license class
Args:
license(str): name of license file (Apache2, BSD3, MIT)
"""
return cmd.get_module('licens... | 28.44898 | 96 | 0.66858 | 180 | 1,394 | 5.072222 | 0.472222 | 0.061336 | 0.03943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004634 | 0.225968 | 1,394 | 49 | 97 | 28.44898 | 0.84152 | 0.406743 | 0 | 0 | 0 | 0 | 0.108434 | 0.028112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.058824 | 0.647059 | 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 |
48da07dc752cb452520d3822f5a3de69a352f34d | 289 | py | Python | data/urls.py | marcia-marques/django-dashboard | c72e97b30f1b712743f28023ec841be53ce9110c | [
"MIT"
] | 2 | 2021-07-03T04:14:19.000Z | 2021-07-27T06:13:57.000Z | data/urls.py | marcia-marques/django-dashboard | c72e97b30f1b712743f28023ec841be53ce9110c | [
"MIT"
] | 1 | 2021-07-28T17:41:45.000Z | 2021-07-28T17:41:45.000Z | data/urls.py | marcia-marques/django-dashboard | c72e97b30f1b712743f28023ec841be53ce9110c | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from .views import CampaignListView
urlpatterns = [
path('', CampaignListView.as_view(), name='campaign_list'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
| 28.9 | 65 | 0.788927 | 38 | 289 | 5.868421 | 0.526316 | 0.134529 | 0.125561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110727 | 289 | 9 | 66 | 32.111111 | 0.867704 | 0 | 0 | 0 | 0 | 0 | 0.044983 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
48ed9298afd3fe0497e3113494d6ec9a5eb43552 | 70 | py | Python | src/__init__.py | lancondrej/freeconf | 8d05d358ab24a85b775ad39f0bace8475fff792f | [
"Unlicense"
] | null | null | null | src/__init__.py | lancondrej/freeconf | 8d05d358ab24a85b775ad39f0bace8475fff792f | [
"Unlicense"
] | null | null | null | src/__init__.py | lancondrej/freeconf | 8d05d358ab24a85b775ad39f0bace8475fff792f | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
__author__ = 'Ondřej Lanč'
| 17.5 | 26 | 0.614286 | 9 | 70 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.142857 | 70 | 3 | 27 | 23.333333 | 0.616667 | 0.557143 | 0 | 0 | 0 | 0 | 0.37931 | 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 |
48f62580c32459b7b545a2a4e15ffbae26de4e77 | 3,751 | py | Python | utils/text/preprocess.py | alexander-paskal/news-bias-analysis | 9226bbcd2e5ba5cc67163f64b453ed7f602bdef9 | [
"MIT"
] | 1 | 2021-11-03T00:29:19.000Z | 2021-11-03T00:29:19.000Z | utils/text/preprocess.py | alexander-paskal/news-bias-analysis | 9226bbcd2e5ba5cc67163f64b453ed7f602bdef9 | [
"MIT"
] | null | null | null | utils/text/preprocess.py | alexander-paskal/news-bias-analysis | 9226bbcd2e5ba5cc67163f64b453ed7f602bdef9 | [
"MIT"
] | null | null | null | """
Contains utility functions for preprocessing text
"""
import nltk
import re,string
from nltk.tokenize import word_tokenize
nltk.download('punkt')
STOPWORDS = {"i", "me", "my", "myself", "we", "our", "ours", "ourselves", "you", "your", "yours", "yourself", "yourselves", "he", "him", "his", "himself", "she", "her", ... | 41.677778 | 1,015 | 0.603306 | 469 | 3,751 | 4.776119 | 0.407249 | 0.025 | 0.042857 | 0.025446 | 0.292857 | 0.226786 | 0.199107 | 0.199107 | 0.169643 | 0.091071 | 0 | 0 | 0.227406 | 3,751 | 89 | 1,016 | 42.146067 | 0.772947 | 0.221274 | 0 | 0.386364 | 0 | 0 | 0.182273 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.068182 | false | 0 | 0.068182 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48f7b81cad1cd871521896cab7e73026a27332c3 | 4,216 | py | Python | python/Pipeline/Utilities/CBASS_U_MultiChannelTemplateMatching.py | cardin-higley-lab/CBASS | 0d0b58497313027388351feffc79766f815b47b5 | [
"Apache-2.0"
] | null | null | null | python/Pipeline/Utilities/CBASS_U_MultiChannelTemplateMatching.py | cardin-higley-lab/CBASS | 0d0b58497313027388351feffc79766f815b47b5 | [
"Apache-2.0"
] | null | null | null | python/Pipeline/Utilities/CBASS_U_MultiChannelTemplateMatching.py | cardin-higley-lab/CBASS | 0d0b58497313027388351feffc79766f815b47b5 | [
"Apache-2.0"
] | null | null | null | def MultiChannelTemplateMatching(db2Signal, db2Template, blCenter, blNormalize):
'''
Synopsis: DB1SCORE = CBASS_U_MultiChannelTemplateMatching(DB2SIGNAL, DB2TEMPLATE, [BLNORM])
Returns a score DB1SCORE indicative of how well the multi-channel signal
DB2SIGNAL matches the spatio temporal template DB2TEMPLATE
Input: -DB2... | 52.049383 | 151 | 0.666509 | 514 | 4,216 | 5.463035 | 0.247082 | 0.038462 | 0.059829 | 0.064815 | 0.325142 | 0.116453 | 0.070513 | 0.042023 | 0.029202 | 0 | 0 | 0.029149 | 0.202562 | 4,216 | 80 | 152 | 52.7 | 0.806068 | 0.055503 | 0 | 0.226415 | 0 | 0 | 0.17012 | 0.026738 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.415094 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
48fb5183403caedfebd51c3c178a20a2f3fbeeed | 489 | py | Python | MovieRaterBackend/API/migrations/0002_auto_20200612_0317.py | MXSH-Dev/MovieRater-Angular-DjangoREST | b89dc1227cf92991888ef72c53b2487350a3e456 | [
"MIT"
] | null | null | null | MovieRaterBackend/API/migrations/0002_auto_20200612_0317.py | MXSH-Dev/MovieRater-Angular-DjangoREST | b89dc1227cf92991888ef72c53b2487350a3e456 | [
"MIT"
] | null | null | null | MovieRaterBackend/API/migrations/0002_auto_20200612_0317.py | MXSH-Dev/MovieRater-Angular-DjangoREST | b89dc1227cf92991888ef72c53b2487350a3e456 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-06-12 03:17
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('API', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='rating',
name... | 24.45 | 141 | 0.648262 | 51 | 489 | 6.176471 | 0.686275 | 0.095238 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 0.233129 | 489 | 19 | 142 | 25.736842 | 0.786667 | 0.087935 | 0 | 0 | 1 | 0 | 0.058559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5b06b03536744cb1fae37dfac423defa9b29c3f4 | 983 | py | Python | em Python/Roteiro7/Roteiro7__testes_grafo.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | em Python/Roteiro7/Roteiro7__testes_grafo.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | em Python/Roteiro7/Roteiro7__testes_grafo.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | from Roteiro7.Roteiro7__funcoes import Grafo
mapa = Grafo()
for v in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10',
'11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
'21', '22', '23', '24', '25', '26', '27', '28', '29', '30',
'31', '32', '33']:
mapa.adicionaVert... | 54.611111 | 119 | 0.441506 | 179 | 983 | 2.407821 | 0.324022 | 0.013921 | 0.018561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302682 | 0.203459 | 983 | 17 | 120 | 57.823529 | 0.247765 | 0 | 0 | 0 | 0 | 0 | 0.363174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 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 |
5b146fb5ea09b4d7217a535fe7d8bead2a197ae2 | 854 | py | Python | Pages/login_page.py | trandahang/herokuapp | bbc405f9b291eece0e1bd29bdbb92d6535443cb3 | [
"MIT"
] | null | null | null | Pages/login_page.py | trandahang/herokuapp | bbc405f9b291eece0e1bd29bdbb92d6535443cb3 | [
"MIT"
] | null | null | null | Pages/login_page.py | trandahang/herokuapp | bbc405f9b291eece0e1bd29bdbb92d6535443cb3 | [
"MIT"
] | null | null | null | import logging
import TestData
from Locators.login_page_locators import LoginpageLocators
from Pages.base_page import BasePage
from TestData.test_data import Data
class LoginPage(BasePage):
def __init__(self, driver):
super().__init__(driver)
logging.basicConfig(format='%(asctime)s - %(message)s... | 32.846154 | 83 | 0.755269 | 99 | 854 | 6.262626 | 0.393939 | 0.058065 | 0.083871 | 0.193548 | 0.448387 | 0.448387 | 0.164516 | 0 | 0 | 0 | 0 | 0 | 0.15808 | 854 | 25 | 84 | 34.16 | 0.862309 | 0 | 0 | 0.111111 | 0 | 0 | 0.029308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.277778 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5b189ca28a03539e41b9e0b68159873c136c8b17 | 2,255 | py | Python | bomb32/solve_phase2.py | moshekaplan/angr_playing | d77a4060e10c692190de6a9a5add2eda3d550afd | [
"MIT"
] | 4 | 2018-07-21T05:56:55.000Z | 2020-06-07T20:22:10.000Z | bomb32/solve_phase2.py | moshekaplan/angr_playing | d77a4060e10c692190de6a9a5add2eda3d550afd | [
"MIT"
] | null | null | null | bomb32/solve_phase2.py | moshekaplan/angr_playing | d77a4060e10c692190de6a9a5add2eda3d550afd | [
"MIT"
] | 1 | 2021-05-30T21:25:43.000Z | 2021-05-30T21:25:43.000Z | def approach1():
# Approach 1 - Replace the 6 integers with individual symbolized values
import angr
AFTER_READ_SIX_NUMBERS_ADDR = 0x8048B63
FIND_ADDR = 0x8048B8E
AVOID_ADDR = 0x8048B83
proj = angr.Project('bomb', load_options={'auto_load_libs':False})
state = proj.factory.blank_state(addr=... | 30.066667 | 105 | 0.677162 | 337 | 2,255 | 4.284866 | 0.296736 | 0.037396 | 0.041551 | 0.052632 | 0.658587 | 0.569252 | 0.552632 | 0.552632 | 0.552632 | 0.49723 | 0 | 0.051149 | 0.228381 | 2,255 | 75 | 106 | 30.066667 | 0.778736 | 0.167184 | 0 | 0.702703 | 0 | 0 | 0.042529 | 0 | 0 | 0 | 0.035632 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5b19cabd6afcd7cdbc1efbc3c3d7592c769f2da5 | 851 | py | Python | sortingview/tasks/sorting_info.py | garrettmflynn/sortingview | 0bb3df40d5d031ec651c4821f928787bbee71fbb | [
"Apache-2.0"
] | 2 | 2021-11-19T04:51:42.000Z | 2022-03-12T23:36:19.000Z | sortingview/tasks/sorting_info.py | magland/sortingview | 0b1be9d55048cd4b8a0b6b6733bd7d35cb440aa7 | [
"Apache-2.0"
] | 172 | 2021-05-10T17:39:15.000Z | 2022-03-18T21:46:15.000Z | sortingview/tasks/sorting_info.py | garrettmflynn/sortingview | 0bb3df40d5d031ec651c4821f928787bbee71fbb | [
"Apache-2.0"
] | 2 | 2021-08-29T20:13:57.000Z | 2022-03-12T23:36:34.000Z | from typing import List, cast
import hither2 as hi
import numpy as np
import spikeextractors as se
import kachery_client as kc
from sortingview.config import job_cache, job_handler
from sortingview.extractors import LabboxEphysSortingExtractor
@hi.function(
'sorting_info', '0.1.3'
)
def sorting_info(sorting_uri):
... | 31.518519 | 70 | 0.760282 | 119 | 851 | 5.184874 | 0.445378 | 0.089141 | 0.08752 | 0.102107 | 0.090762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00684 | 0.141011 | 851 | 27 | 71 | 31.518519 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.068075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.304348 | 0.043478 | 0.565217 | 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 |
5b1c8b414dc84ddcbf46c3ebc4600c697923b2db | 1,408 | py | Python | pyconsem/convertor.py | vliz-be-opsci/pyConSem | 20c4f25426dad6afb15d7f5c3bc09826cbd9f71d | [
"MIT"
] | null | null | null | pyconsem/convertor.py | vliz-be-opsci/pyConSem | 20c4f25426dad6afb15d7f5c3bc09826cbd9f71d | [
"MIT"
] | null | null | null | pyconsem/convertor.py | vliz-be-opsci/pyConSem | 20c4f25426dad6afb15d7f5c3bc09826cbd9f71d | [
"MIT"
] | null | null | null | # Use this file to describe the datamodel handled by this module
# we recommend using abstract classes to achieve proper service and interface insulation
from abc import ABC # , abstractmethod
import logging
log = logging.getLogger(__name__)
class Convertor(ABC):
""" Main class performing the conversion
""... | 29.333333 | 101 | 0.618608 | 168 | 1,408 | 5.077381 | 0.529762 | 0.046893 | 0.042204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290483 | 1,408 | 47 | 102 | 29.957447 | 0.853854 | 0.40696 | 0 | 0 | 0 | 0 | 0.161538 | 0 | 0 | 0 | 0 | 0.021277 | 0.052632 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.368421 | 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 |
d286482546a6104e50bca01ad316a777cd2d427a | 1,080 | py | Python | tests/test_cpu.py | garybake/gbakeboy | f24d3d96c3e6c89446c2ef6645668fa8a1ccf506 | [
"MIT"
] | 1 | 2018-01-05T13:54:24.000Z | 2018-01-05T13:54:24.000Z | tests/test_cpu.py | garybake/gbakeboy | f24d3d96c3e6c89446c2ef6645668fa8a1ccf506 | [
"MIT"
] | null | null | null | tests/test_cpu.py | garybake/gbakeboy | f24d3d96c3e6c89446c2ef6645668fa8a1ccf506 | [
"MIT"
] | 1 | 2019-12-31T05:16:38.000Z | 2019-12-31T05:16:38.000Z | import unittest
from gbakeboy import Cpu
from gbakeboy import Memory
from gbakeboy import hex2int as h2i
from gbakeboy import print_bin_8
class test_cpu(unittest.TestCase):
def setUp(self):
mem = Memory()
self.cpu = Cpu(mem)
def clear_registers(self):
cpu = self.cpu
cpu.set_... | 24.545455 | 45 | 0.598148 | 154 | 1,080 | 4.084416 | 0.324675 | 0.238474 | 0.286169 | 0.152623 | 0.281399 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05604 | 0.256481 | 1,080 | 43 | 46 | 25.116279 | 0.727273 | 0 | 0 | 0.064516 | 0 | 0 | 0.030556 | 0 | 0 | 0 | 0 | 0 | 0.354839 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.290323 | 0.032258 | 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 |
d29b8409fa3b4f92d2371ae2f813130bdd6e163f | 78 | py | Python | django_nextjs/__init__.py | QueraTeam/django-nextjs | 21100c6262334be9f672c8c7b8eda9d377e1d43c | [
"MIT"
] | 43 | 2022-02-01T20:16:21.000Z | 2022-03-30T18:01:09.000Z | django_nextjs/__init__.py | QueraTeam/django-nextjs | 21100c6262334be9f672c8c7b8eda9d377e1d43c | [
"MIT"
] | null | null | null | django_nextjs/__init__.py | QueraTeam/django-nextjs | 21100c6262334be9f672c8c7b8eda9d377e1d43c | [
"MIT"
] | 1 | 2022-03-21T10:11:49.000Z | 2022-03-21T10:11:49.000Z | default_app_config = "django_nextjs.apps.NextJSConfig"
__version__ = "2.1.4"
| 19.5 | 54 | 0.782051 | 11 | 78 | 4.909091 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.089744 | 78 | 3 | 55 | 26 | 0.71831 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 0.397436 | 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 |
d2a0c996ef0bfb00cb2263a1445ebb2530f7e02f | 432 | py | Python | PickFirstCovEntry.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | 5 | 2016-04-21T20:00:01.000Z | 2020-03-12T16:35:55.000Z | PickFirstCovEntry.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | null | null | null | PickFirstCovEntry.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | 8 | 2015-09-15T07:08:06.000Z | 2021-07-13T02:25:12.000Z | #!/usr/bin/env python
import sys
prevVals = [None, None, None]
totalCoverage = 0
nCoverage = 0
for line in sys.stdin.readlines():
vals = line.split()
if (vals[0:3] != prevVals[0:3] and prevVals[0] is not None):
coverage = totalCoverage / nCoverage
prevVals[-1] = coverage
print "\t".join([str(i) for i in prev... | 24 | 61 | 0.673611 | 64 | 432 | 4.546875 | 0.484375 | 0.054983 | 0.158076 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036723 | 0.180556 | 432 | 17 | 62 | 25.411765 | 0.785311 | 0.046296 | 0 | 0.266667 | 0 | 0 | 0.004866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 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 |
d2a8e6d4ac9736101fda9809a41c5e4eb5a790af | 3,072 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/SchedulableField.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/SchedulableField.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/SchedulableField.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class SchedulableField(object, IDisposable):
"""
A non-calculated field eligible to be included in a schedule.
SchedulableField(fieldType: ScheduleFieldType,parameterId: ElementId)
SchedulableField(fieldType: ScheduleFieldType)
SchedulableField()
"""
def Dispose(self):
""" Disp... | 21.942857 | 221 | 0.616536 | 317 | 3,072 | 5.675079 | 0.293375 | 0.111173 | 0.026681 | 0.031684 | 0.23791 | 0.15453 | 0.15453 | 0.15453 | 0.15453 | 0.15453 | 0 | 0 | 0.274414 | 3,072 | 139 | 222 | 22.100719 | 0.807088 | 0.422852 | 0 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.363636 | 0 | 0 | 0.484848 | 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 |
d2b4b50d293aa7e0f84a68d89f7fcb13707358c1 | 6,739 | py | Python | src/gdata/exif/__init__.py | Cloudlock/gdata-python3 | a6481a13590bfa225f91a97b2185cca9aacd1403 | [
"Apache-2.0"
] | 19 | 2017-06-09T13:38:03.000Z | 2020-12-12T07:45:48.000Z | src/gdata/exif/__init__.py | AlexxIT/gdata-python3 | 5cc5a83a469d87f804d1fda8760ec76bcb6050c9 | [
"Apache-1.1"
] | 11 | 2017-07-22T07:09:54.000Z | 2020-12-02T15:08:48.000Z | src/gdata/exif/__init__.py | AlexxIT/gdata-python3 | 5cc5a83a469d87f804d1fda8760ec76bcb6050c9 | [
"Apache-1.1"
] | 25 | 2017-07-03T11:30:39.000Z | 2020-10-01T02:21:13.000Z | # -*-*- encoding: utf-8 -*-*-
#
# This is gdata.photos.exif, implementing the exif namespace in gdata
#
# $Id: __init__.py 81 2007-10-03 14:41:42Z havard.gulldahl $
#
# Copyright 2007 Håvard Gulldahl
# Portions copyright 2007 Google Inc.
#
# Licensed under the Apache License 2.0;
"""This module maps elements from th... | 28.196653 | 134 | 0.686304 | 832 | 6,739 | 5.425481 | 0.266827 | 0.043864 | 0.036553 | 0.0463 | 0.221311 | 0.06646 | 0.038104 | 0.023039 | 0 | 0 | 0 | 0.026852 | 0.198694 | 6,739 | 238 | 135 | 28.315126 | 0.809074 | 0.350942 | 0 | 0.042553 | 0 | 0 | 0.078765 | 0.005432 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0 | 0.031915 | 0.117021 | 0.648936 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
d2c3d5720d443c8428e3cc762241fd374d367940 | 290 | py | Python | mco_agent/exceptions.py | optiz0r/py-mco-agent | e7032999f7ffb51f48030c1041af4f45bf84b2a6 | [
"Apache-2.0"
] | null | null | null | mco_agent/exceptions.py | optiz0r/py-mco-agent | e7032999f7ffb51f48030c1041af4f45bf84b2a6 | [
"Apache-2.0"
] | null | null | null | mco_agent/exceptions.py | optiz0r/py-mco-agent | e7032999f7ffb51f48030c1041af4f45bf84b2a6 | [
"Apache-2.0"
] | null | null | null | class AgentException(Exception):
""" Base exception"""
description = 'Unknown error'
statuscode = 5
def __str__(self):
return '{0}: {1}'.format(self.description, ' '.join(self.args))
class InactiveAgent(AgentException):
description = "Agent is not activated"
| 24.166667 | 71 | 0.662069 | 30 | 290 | 6.266667 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012931 | 0.2 | 290 | 11 | 72 | 26.363636 | 0.797414 | 0.048276 | 0 | 0 | 0 | 0 | 0.163569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
d2c7a326c6dd76c697638c1c2111c5f69981ab8f | 88 | py | Python | learn-to-code-with-python/04-Variables/augmented-assignment-operator.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/04-Variables/augmented-assignment-operator.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/04-Variables/augmented-assignment-operator.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | a = 1
a = a + 2
print(a)
a += 2
print(a)
word = "race"
word += " car"
print(word)
| 5.866667 | 14 | 0.488636 | 17 | 88 | 2.529412 | 0.411765 | 0.093023 | 0.139535 | 0.372093 | 0.395349 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.306818 | 88 | 14 | 15 | 6.285714 | 0.655738 | 0 | 0 | 0.25 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 1 | 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 | 0 | 0 | 2 |
d2c8340ebc6002f2683e323f943ffab89154b485 | 134 | py | Python | gold_digger/api_server/app.py | N0081K/gold-digger | 3a68084bf65565a61009f5e01da643499a5e06e6 | [
"Apache-2.0"
] | 7 | 2016-05-04T17:13:58.000Z | 2017-11-07T07:29:16.000Z | gold_digger/api_server/app.py | N0081K/gold-digger | 3a68084bf65565a61009f5e01da643499a5e06e6 | [
"Apache-2.0"
] | 94 | 2019-07-03T15:33:29.000Z | 2022-03-28T01:17:41.000Z | gold_digger/api_server/app.py | N0081K/gold-digger | 3a68084bf65565a61009f5e01da643499a5e06e6 | [
"Apache-2.0"
] | 2 | 2017-05-30T13:55:01.000Z | 2017-08-20T19:52:45.000Z | from .api_server import API
from .helpers import ContextMiddleware
app = API(
middleware=[
ContextMiddleware(),
],
)
| 14.888889 | 38 | 0.671642 | 13 | 134 | 6.846154 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238806 | 134 | 8 | 39 | 16.75 | 0.872549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
d2d955fb07d9f14d4e099a73b3ca44b5938a335c | 944 | py | Python | bspwm/.config/bspwm/bspwm.py | kevin-hanselman/dotfiles | 0d7ff5703e3dfc3a7ae08b211245c6d43eea0ca5 | [
"MIT"
] | 5 | 2020-09-14T01:28:53.000Z | 2021-08-16T17:49:09.000Z | bspwm/.config/bspwm/bspwm.py | kevin-hanselman/dotfiles | 0d7ff5703e3dfc3a7ae08b211245c6d43eea0ca5 | [
"MIT"
] | null | null | null | bspwm/.config/bspwm/bspwm.py | kevin-hanselman/dotfiles | 0d7ff5703e3dfc3a7ae08b211245c6d43eea0ca5 | [
"MIT"
] | 4 | 2019-07-13T18:10:07.000Z | 2019-10-08T16:27:48.000Z | '''A module for interacting with the bspwm X window manager'''
from subprocess import Popen, PIPE, run, TimeoutExpired
import json
def __process_stdout_generator(proc):
'''Create a generator for a Popen object's STDOUT'''
while proc.poll() is None:
yield from proc.stdout
def subscribe(*subscribe_arg... | 27.764706 | 72 | 0.682203 | 131 | 944 | 4.816794 | 0.496183 | 0.041204 | 0.069731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002642 | 0.198093 | 944 | 33 | 73 | 28.606061 | 0.830911 | 0.315678 | 0 | 0 | 0 | 0 | 0.033871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.117647 | 0 | 0.529412 | 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 |
d2f5d2ba85efe47a6844821a0e43b9b2046beefc | 265 | py | Python | lang/Python/dutch-national-flag-problem-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/dutch-national-flag-problem-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/dutch-national-flag-problem-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | from itertools import chain
def dutch_flag_sort2(items, order=colours_in_order):
'return summed filter of items using the given order'
return list(chain.from_iterable([c for c in items if c==colour]
for colour in order))
| 44.166667 | 67 | 0.667925 | 39 | 265 | 4.410256 | 0.641026 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.271698 | 265 | 5 | 68 | 53 | 0.88601 | 0.192453 | 0 | 0 | 0 | 0 | 0.192453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
961116f3fd8b23cda50d826f4734ff8d74ae8c80 | 116 | py | Python | celsius_to_fahrenheit.py | jjberg83/python_eksperimenter | ea26a6bd4a0cf71e69cbf5015a06db30de811b45 | [
"MIT"
] | null | null | null | celsius_to_fahrenheit.py | jjberg83/python_eksperimenter | ea26a6bd4a0cf71e69cbf5015a06db30de811b45 | [
"MIT"
] | null | null | null | celsius_to_fahrenheit.py | jjberg83/python_eksperimenter | ea26a6bd4a0cf71e69cbf5015a06db30de811b45 | [
"MIT"
] | null | null | null | degrees = int(input('What is the temperature in Celsius? \n'))
fahrenheit = (degrees * 1.8) + 32
print(fahrenheit)
| 29 | 62 | 0.698276 | 17 | 116 | 4.764706 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.155172 | 116 | 3 | 63 | 38.666667 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.327586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
961b358ba0f5a1d889ad5d3faeb96b97437ddae6 | 407 | py | Python | th_address/models/models.py | anndream/odoo-docker-training-v14-v2 | 7ef8f714ab151d61502d79f53badc3367335653f | [
"MIT"
] | null | null | null | th_address/models/models.py | anndream/odoo-docker-training-v14-v2 | 7ef8f714ab151d61502d79f53badc3367335653f | [
"MIT"
] | null | null | null | th_address/models/models.py | anndream/odoo-docker-training-v14-v2 | 7ef8f714ab151d61502d79f53badc3367335653f | [
"MIT"
] | null | null | null | import logging
from odoo import api, models
_logger = logging.getLogger(__name__)
class geonames_th(models.Model):
_name = "geonames_th.geonames_th"
@api.model
def import_data(self):
TH = self.env.ref("base.th")
geoname_import = self.env["city.zip.geonames.import"]
parse_csv = g... | 23.941176 | 61 | 0.702703 | 57 | 407 | 4.666667 | 0.473684 | 0.112782 | 0.112782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191646 | 407 | 16 | 62 | 25.4375 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.132678 | 0.115479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.545455 | 0 | 0.818182 | 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 |
961eb46d5b68a5c8a7d4576a5bfad12d27379400 | 3,544 | py | Python | DTO/r1_data_check_specific_dto.py | fudo-myo/LST_BBDD | 564db35a08978884c9a5246e509fbb3580e51db2 | [
"MIT"
] | null | null | null | DTO/r1_data_check_specific_dto.py | fudo-myo/LST_BBDD | 564db35a08978884c9a5246e509fbb3580e51db2 | [
"MIT"
] | null | null | null | DTO/r1_data_check_specific_dto.py | fudo-myo/LST_BBDD | 564db35a08978884c9a5246e509fbb3580e51db2 | [
"MIT"
] | null | null | null | class R1DataCheckSpecificDto:
def __init__(self, id_r1_data_check_specific=None, init_event=None, end_event=None, init_pixel=None, end_pixel=None,
init_sample=None, end_sample=None,
init_subrun=None, end_subrun=None, type_of_gap_calc=None, list_of_module_in_detail=None):
s... | 28.813008 | 120 | 0.694695 | 499 | 3,544 | 4.366733 | 0.06012 | 0.033043 | 0.060578 | 0.104635 | 0.302891 | 0.248279 | 0.167967 | 0.117485 | 0.093621 | 0.075264 | 0 | 0.005203 | 0.240688 | 3,544 | 122 | 121 | 29.04918 | 0.804534 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247423 | false | 0 | 0 | 0.113402 | 0.381443 | 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 |
961f44bd18c7d0aaac666c6f2d7708f2f30a183e | 340 | py | Python | home/kwatters/harry/gestures/takethis.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 63 | 2015-02-03T18:49:43.000Z | 2022-03-29T03:52:24.000Z | home/kwatters/harry/gestures/takethis.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 16 | 2016-01-26T19:13:29.000Z | 2018-11-25T21:20:51.000Z | home/kwatters/harry/gestures/takethis.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | def takethis():
fullspeed()
i01.moveHead(14,90)
i01.moveArm("left",13,45,95,10)
i01.moveArm("right",5,90,30,10)
i01.moveHand("left",2,2,2,2,2,60)
i01.moveHand("right",81,66,82,60,105,113)
i01.moveTorso(85,76,90)
sleep(3)
closelefthand()
i01.moveTorso(110,90,90)
sleep(2)
isitaball()
i01.mouth.s... | 21.25 | 43 | 0.655882 | 61 | 340 | 3.655738 | 0.606557 | 0.035874 | 0.040359 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239865 | 0.129412 | 340 | 15 | 44 | 22.666667 | 0.513514 | 0 | 0 | 0 | 0 | 0 | 0.082596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
8248894ceb22eeeb8e9f958c335140b2554bdb8f | 619 | py | Python | shop/source/database/__init__.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | shop/source/database/__init__.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | shop/source/database/__init__.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from core import db_config
conn_str = 'postgresql+psycopg2://{username}:{password}@{host}/{db}'.format(
username=db_config['user'],
password=db_config['password'],
host=db_co... | 25.791667 | 76 | 0.749596 | 79 | 619 | 5.670886 | 0.405063 | 0.089286 | 0.084821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001828 | 0.116317 | 619 | 23 | 77 | 26.913043 | 0.817185 | 0 | 0 | 0 | 0 | 0 | 0.159935 | 0.088853 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.352941 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
8255fff10ac99c19922046584b5b3ffd3fa5ee29 | 19,985 | py | Python | plotcounts/src/d1state/system_state.py | vdave/d1_environment_status | 65368e21e649d060e085df2e844964f74ac0f985 | [
"Apache-2.0"
] | null | null | null | plotcounts/src/d1state/system_state.py | vdave/d1_environment_status | 65368e21e649d060e085df2e844964f74ac0f985 | [
"Apache-2.0"
] | null | null | null | plotcounts/src/d1state/system_state.py | vdave/d1_environment_status | 65368e21e649d060e085df2e844964f74ac0f985 | [
"Apache-2.0"
] | null | null | null | '''
Created on Feb 27, 2014
@author: vieglais
Generates a JSON object that provides a high level description of the state of
a DataONE environment at the time.
The resulting JSON can be processed with Javascript and HTML to provide a
state view, or can be loaded back into the Python structure for additional
proces... | 35.560498 | 283 | 0.587491 | 2,391 | 19,985 | 4.849017 | 0.205772 | 0.032603 | 0.011471 | 0.016388 | 0.286614 | 0.239693 | 0.230119 | 0.174832 | 0.152924 | 0.106003 | 0 | 0.027522 | 0.260045 | 19,985 | 561 | 284 | 35.623886 | 0.756154 | 0.036527 | 0 | 0.216958 | 1 | 0 | 0.155122 | 0.010136 | 0 | 0 | 0 | 0.003565 | 0 | 0 | null | null | 0 | 0.027431 | null | null | 0.014963 | 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 |
826e31959e7709d82188c71c395013b127847d6b | 386 | py | Python | hendrix/contrib/concurrency/signals.py | bliedblad/hendrix | 90cb4a0f020873acbe9a350840c61d68a10501a0 | [
"MIT"
] | 309 | 2015-08-14T18:54:57.000Z | 2021-12-20T18:53:33.000Z | hendrix/contrib/concurrency/signals.py | bliedblad/hendrix | 90cb4a0f020873acbe9a350840c61d68a10501a0 | [
"MIT"
] | 77 | 2015-08-14T21:07:09.000Z | 2021-07-19T21:50:17.000Z | hendrix/contrib/concurrency/signals.py | bliedblad/hendrix | 90cb4a0f020873acbe9a350840c61d68a10501a0 | [
"MIT"
] | 40 | 2015-08-14T20:59:38.000Z | 2021-07-18T20:16:36.000Z | """
Signals for easy use in django projects
"""
try:
from django import dispatch
short_task = dispatch.Signal(providing_args=["args", "kwargs"])
long_task = dispatch.Signal(providing_args=["args", "kwargs"])
message_signal = dispatch.Signal(providing_args=["data", "dispatcher"])
USE_DJANGO_... | 22.705882 | 75 | 0.707254 | 46 | 386 | 5.717391 | 0.543478 | 0.159696 | 0.262357 | 0.307985 | 0.311787 | 0.311787 | 0.311787 | 0 | 0 | 0 | 0 | 0 | 0.173575 | 386 | 17 | 76 | 22.705882 | 0.824451 | 0.101036 | 0 | 0 | 0 | 0 | 0.10119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
827009f60ad9b200a7fda26ccc32a7a305e5914c | 3,207 | py | Python | threat_connect/komand_threat_connect/actions/create_task/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | threat_connect/komand_threat_connect/actions/create_task/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | threat_connect/komand_threat_connect/actions/create_task/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
class Input:
ASSIGNEE = "assignee"
ATTRIBUTES = "attributes"
DUE_DATE = "due_date"
ESCALATED = "escalated"
ESCALATEE = "escalatee"
ESCALATION_DATE = "escalation_date"
NAME = "name"
OVERDUE = "overdue"
REMINDED = "rem... | 20.824675 | 57 | 0.505145 | 281 | 3,207 | 5.637011 | 0.27758 | 0.104167 | 0.085227 | 0.035985 | 0.224116 | 0.116162 | 0.116162 | 0.116162 | 0.054293 | 0.054293 | 0 | 0.008163 | 0.312442 | 3,207 | 153 | 58 | 20.960784 | 0.710204 | 0.011537 | 0 | 0.239437 | 1 | 0 | 0.800189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.014085 | 0 | 0.169014 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8275a1d4f50cd8c414f8021a48a1f2de4296d247 | 467 | py | Python | dashboard_api/models/timelapse.py | NASA-IMPACT/eis-pilot-dashboard-api | 18f28d1fcc8bd982b4161754f5852fb247fc77d0 | [
"MIT"
] | 1 | 2021-05-19T17:25:25.000Z | 2021-05-19T17:25:25.000Z | dashboard_api/models/timelapse.py | NASA-IMPACT/eis-pilot-dashboard-api | 18f28d1fcc8bd982b4161754f5852fb247fc77d0 | [
"MIT"
] | 9 | 2021-05-03T18:22:22.000Z | 2021-09-30T19:43:52.000Z | dashboard_api/models/timelapse.py | NASA-IMPACT/eis-pilot-dashboard-api | 18f28d1fcc8bd982b4161754f5852fb247fc77d0 | [
"MIT"
] | 1 | 2021-06-22T17:08:46.000Z | 2021-06-22T17:08:46.000Z | """Tilelapse models."""
from geojson_pydantic.features import Feature
from geojson_pydantic.geometries import Polygon
from pydantic import BaseModel
class PolygonFeature(Feature):
"""Feature model."""
geometry: Polygon
class TimelapseValue(BaseModel):
""""Timelapse values model."""
mean: float
... | 17.296296 | 47 | 0.715203 | 47 | 467 | 7.06383 | 0.553191 | 0.066265 | 0.114458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184154 | 467 | 26 | 48 | 17.961538 | 0.871391 | 0.17773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
828220f108f84bbc82195a5469ba50a2b32a9f13 | 512 | py | Python | example/table_example.py | lakdred/pyecharts | 02050acb0e94bb9453b88a25028de7a0ce23f125 | [
"MIT"
] | 1 | 2019-06-29T09:37:45.000Z | 2019-06-29T09:37:45.000Z | example/table_example.py | lakdred/pyecharts | 02050acb0e94bb9453b88a25028de7a0ce23f125 | [
"MIT"
] | null | null | null | example/table_example.py | lakdred/pyecharts | 02050acb0e94bb9453b88a25028de7a0ce23f125 | [
"MIT"
] | 1 | 2021-01-18T10:17:01.000Z | 2021-01-18T10:17:01.000Z | # coding=utf-8
from pyecharts.components import Table
def table_base():
table = Table()
headers = ["City name", "Area", "Population", "Annual Rainfall"]
rows = [
["Brisbane", 5905, 1857594, 1146.4],
["Adelaide", 1295, 1158259, 600.5],
["Darwin", 112, 120900, 1714.7],
["Hob... | 26.947368 | 68 | 0.558594 | 60 | 512 | 4.75 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278947 | 0.257813 | 512 | 18 | 69 | 28.444444 | 0.471053 | 0.023438 | 0 | 0 | 0 | 0 | 0.172691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 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 |
828ad861f6573dcf74d6d87a19b86829e86914bd | 1,272 | py | Python | S2/S2_Modular_Code/ModelTransfer.py | pankaj90382/TSAI-2 | af4b3543dfb206fb1cc2bd166ed31e9ea7bd3778 | [
"MIT"
] | null | null | null | S2/S2_Modular_Code/ModelTransfer.py | pankaj90382/TSAI-2 | af4b3543dfb206fb1cc2bd166ed31e9ea7bd3778 | [
"MIT"
] | 9 | 2021-06-08T22:18:08.000Z | 2022-03-12T00:46:43.000Z | S2/S2_Modular_Code/ModelTransfer.py | pankaj90382/TSAI-2 | af4b3543dfb206fb1cc2bd166ed31e9ea7bd3778 | [
"MIT"
] | 1 | 2020-10-12T17:13:35.000Z | 2020-10-12T17:13:35.000Z | from torchsummary import summary
import torch
import torch.nn as nn
import torch.nn.functional as F
from ModelTrainer import ModelTrainer
import Resnet as rn
class Net():
"""
Base network that defines helper functions, summary and mapping to device
"""
def __init__(self, model):
... | 34.378378 | 181 | 0.669811 | 159 | 1,272 | 5.257862 | 0.396226 | 0.09689 | 0.0311 | 0.043062 | 0.150718 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0.008299 | 0.242138 | 1,272 | 37 | 182 | 34.378378 | 0.858921 | 0.075472 | 0 | 0.16 | 0 | 0 | 0.014222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.24 | 0.08 | 0.68 | 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 |
828f4e2b1ccb540c7a56d21483959504b6f04e0c | 168 | py | Python | src/data_management/dto/Data.py | chrissteffen98/KraftKonnect | 3409af2a98085c379ff44cc674ab9a8799095d88 | [
"Apache-2.0"
] | null | null | null | src/data_management/dto/Data.py | chrissteffen98/KraftKonnect | 3409af2a98085c379ff44cc674ab9a8799095d88 | [
"Apache-2.0"
] | null | null | null | src/data_management/dto/Data.py | chrissteffen98/KraftKonnect | 3409af2a98085c379ff44cc674ab9a8799095d88 | [
"Apache-2.0"
] | 1 | 2020-12-11T15:18:49.000Z | 2020-12-11T15:18:49.000Z | from dataclasses import dataclass
from time import time_ns
@dataclass
class Data:
__slots__ = ['key', 'time', 'value']
key: int
time: int
value: str
| 14 | 40 | 0.660714 | 22 | 168 | 4.818182 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244048 | 168 | 11 | 41 | 15.272727 | 0.834646 | 0 | 0 | 0 | 0 | 0 | 0.071856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
82901893090f748e90ef49097b48af7e0cd4d993 | 681 | py | Python | tests/login/login_shib.py | giangbui/fence | 5a28b77c30ce7fb11fd05b09a023d0aec1e57e16 | [
"Apache-2.0"
] | null | null | null | tests/login/login_shib.py | giangbui/fence | 5a28b77c30ce7fb11fd05b09a023d0aec1e57e16 | [
"Apache-2.0"
] | null | null | null | tests/login/login_shib.py | giangbui/fence | 5a28b77c30ce7fb11fd05b09a023d0aec1e57e16 | [
"Apache-2.0"
] | null | null | null | def test_shib_redirect(client, app):
r = client.get("/login/shib")
assert r.status_code == 302
def test_shib_login(app, client):
r = client.get(
"/login/shib/login", headers={app.config["SHIBBOLETH_HEADER"]: "test"}
)
assert r.status_code == 200
def test_shib_login_redirect(app, client):... | 27.24 | 78 | 0.654919 | 94 | 681 | 4.574468 | 0.244681 | 0.125581 | 0.116279 | 0.174419 | 0.611628 | 0.513953 | 0.513953 | 0.35814 | 0.35814 | 0.35814 | 0 | 0.021544 | 0.182085 | 681 | 24 | 79 | 28.375 | 0.750449 | 0 | 0 | 0.333333 | 0 | 0 | 0.242291 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8295ffbb2d18d874ceadc7ebfc0ff07ac74b254b | 27,821 | py | Python | tests/pytests/test_followhashes.py | kashish-redislabs/RediSearch | a2c5ac21bc072e6df87ece7f3329eb85d5e7618c | [
"Ruby",
"MIT"
] | null | null | null | tests/pytests/test_followhashes.py | kashish-redislabs/RediSearch | a2c5ac21bc072e6df87ece7f3329eb85d5e7618c | [
"Ruby",
"MIT"
] | null | null | null | tests/pytests/test_followhashes.py | kashish-redislabs/RediSearch | a2c5ac21bc072e6df87ece7f3329eb85d5e7618c | [
"Ruby",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from includes import *
from common import getConnectionByEnv, waitForIndex, sortedResults, toSortedFlatList
from time import sleep
from RLTest import Env
def testSyntax1(env):
conn = getConnectionByEnv(env)
env.expect('ft.create', 'idx',
'ONfoo*',
... | 41.83609 | 134 | 0.57356 | 3,607 | 27,821 | 4.390075 | 0.088162 | 0.086959 | 0.086138 | 0.064414 | 0.780676 | 0.700347 | 0.633786 | 0.584717 | 0.528323 | 0.444269 | 0 | 0.026766 | 0.200963 | 27,821 | 664 | 135 | 41.899096 | 0.683941 | 0.011502 | 0 | 0.457306 | 0 | 0.001898 | 0.337772 | 0.0008 | 0 | 0 | 0 | 0 | 0.049336 | 0 | null | null | 0 | 0.009488 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
829655890b89680bc4889bab38b4820fbea87750 | 237 | py | Python | debug.py | efokschaner/pbundler | c6d8ea7fcdbea2116b603d068b035ea18d5b7b24 | [
"MIT"
] | null | null | null | debug.py | efokschaner/pbundler | c6d8ea7fcdbea2116b603d068b035ea18d5b7b24 | [
"MIT"
] | null | null | null | debug.py | efokschaner/pbundler | c6d8ea7fcdbea2116b603d068b035ea18d5b7b24 | [
"MIT"
] | null | null | null | """
A simple wrapper to invoke pbundler without needing to install it, making debugging easier in an IDE
"""
import sys
from pbundler import PBCli
def main():
sys.exit(PBCli().run(sys.argv))
if __name__ == '__main__':
main() | 16.928571 | 100 | 0.700422 | 35 | 237 | 4.514286 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 237 | 14 | 101 | 16.928571 | 0.822917 | 0.421941 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
82993b323a33348c2c36cf2eb1c0476dfe101805 | 1,002 | py | Python | JarekG/2_python_controlflow/exception_raise_a.py | Khayn/2021-12-elearning-pythonana | a54e407adc8fb8c3a5fd2522735ae09cdef6540a | [
"MIT"
] | null | null | null | JarekG/2_python_controlflow/exception_raise_a.py | Khayn/2021-12-elearning-pythonana | a54e407adc8fb8c3a5fd2522735ae09cdef6540a | [
"MIT"
] | null | null | null | JarekG/2_python_controlflow/exception_raise_a.py | Khayn/2021-12-elearning-pythonana | a54e407adc8fb8c3a5fd2522735ae09cdef6540a | [
"MIT"
] | null | null | null | """
* Assignment: Exception Raise One
* Required: yes
* Complexity: easy
* Lines of code: 2 lines
* Time: 3 min
English:
1. Validate value passed to a `result` function:
a. If `value` is less than zero, raise `ValueError`
2. Non-functional requirements:
a. Write solution inside `result` functio... | 23.857143 | 78 | 0.646707 | 125 | 1,002 | 5.184 | 0.704 | 0.04321 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017497 | 0.258483 | 1,002 | 41 | 79 | 24.439024 | 0.854643 | 0.92515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82a649e278b3437f5903b99568f04620dd558a29 | 535 | py | Python | modules/getDriver.py | ProzTock/RecibosAllianz | 83e0e4de9a883050bd5c0c93fe6528a2bfc521ed | [
"MIT"
] | 3 | 2021-12-13T16:10:29.000Z | 2022-03-12T23:01:02.000Z | modules/getDriver.py | ProzTock/RecibosAllianz | 83e0e4de9a883050bd5c0c93fe6528a2bfc521ed | [
"MIT"
] | null | null | null | modules/getDriver.py | ProzTock/RecibosAllianz | 83e0e4de9a883050bd5c0c93fe6528a2bfc521ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#_*_ coding: utf-8 _*_
from os import remove
from zipfile import ZipFile
from urllib.request import urlopen
def downloadDriver(url : str):
chrome_driver_file = urlopen(url=url).read()
with open("chromeDriver\\chromedriver_win32.zip", 'wb') as download:
download.write(chrome_dr... | 22.291667 | 72 | 0.721495 | 66 | 535 | 5.636364 | 0.515152 | 0.193548 | 0.233871 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.162617 | 535 | 24 | 73 | 22.291667 | 0.814732 | 0.076636 | 0 | 0 | 0 | 0 | 0.247465 | 0.219067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 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 |
82adbdffb925134432e6782646630079f2bcf7d5 | 182 | py | Python | setup.py | afcarl/corvid | e257074edeac1e8dce4a737b60e93a9bea37b6b9 | [
"Apache-2.0"
] | 1 | 2019-04-15T13:49:39.000Z | 2019-04-15T13:49:39.000Z | setup.py | afcarl/corvid | e257074edeac1e8dce4a737b60e93a9bea37b6b9 | [
"Apache-2.0"
] | null | null | null | setup.py | afcarl/corvid | e257074edeac1e8dce4a737b60e93a9bea37b6b9 | [
"Apache-2.0"
] | 1 | 2020-09-02T13:49:52.000Z | 2020-09-02T13:49:52.000Z | #!/usr/bin/python
import setuptools
setuptools.setup(
name='corvid',
version='0.0.1',
url='https://github.com/allenai/corvid',
packages=setuptools.find_packages()
) | 18.2 | 44 | 0.681319 | 23 | 182 | 5.347826 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.142857 | 182 | 10 | 45 | 18.2 | 0.769231 | 0.087912 | 0 | 0 | 0 | 0 | 0.26506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82b521b0de83ba47519cca93ed7cf39de30dd875 | 1,478 | py | Python | player_test.py | KeepCoding/Connecta | e11c2974795cf325c194e107d1749c7e6431219c | [
"MIT"
] | null | null | null | player_test.py | KeepCoding/Connecta | e11c2974795cf325c194e107d1749c7e6431219c | [
"MIT"
] | null | null | null | player_test.py | KeepCoding/Connecta | e11c2974795cf325c194e107d1749c7e6431219c | [
"MIT"
] | null | null | null | from square_board import SquareBoard
from oracle import BaseOracle
from player import Player, _is_int, _is_non_full_column, _is_within_column_range
def test_valid_column():
board = SquareBoard.fromList([['x', None, None, None, ],
['x', 'o', 'x', 'o', ],
... | 36.04878 | 80 | 0.556157 | 188 | 1,478 | 3.962766 | 0.180851 | 0.193289 | 0.150336 | 0.204027 | 0.69396 | 0.681879 | 0.432215 | 0.299329 | 0.299329 | 0.193289 | 0 | 0.022549 | 0.309878 | 1,478 | 40 | 81 | 36.95 | 0.707843 | 0 | 0 | 0.25 | 0 | 0 | 0.02774 | 0 | 0 | 0 | 0 | 0 | 0.5625 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82b7d9b53d21dc0b7f10f306ebac9042c05895fe | 700 | py | Python | 15. Iterators and Generators - Lab/01_custom_range.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-27T16:56:30.000Z | 2021-03-27T16:56:30.000Z | 15. Iterators and Generators - Lab/01_custom_range.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | null | null | null | 15. Iterators and Generators - Lab/01_custom_range.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-15T14:50:39.000Z | 2021-03-15T14:50:39.000Z | class custom_range:
def __init__(self, start, end, step=1):
self.start = start
self.end = end
self.step = step
self.increment = 1
if self.step < 0:
self.start, self.end = self.end, self.start
self.increment = -1
def __iter__(self):
return... | 22.580645 | 55 | 0.535714 | 88 | 700 | 4.056818 | 0.318182 | 0.201681 | 0.218487 | 0.134454 | 0.201681 | 0.201681 | 0.201681 | 0 | 0 | 0 | 0 | 0.018223 | 0.372857 | 700 | 30 | 56 | 23.333333 | 0.794989 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.041667 | 0.25 | 0.041667 | 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 |
82c52fd0cdf885d4f695b52df6d68a04d67b6ec2 | 2,574 | py | Python | lavalink/events.py | iWeeti/Lavalink.py | c47149c0f6dcdd11cd57ee10b6f92ef932c027ea | [
"MIT"
] | null | null | null | lavalink/events.py | iWeeti/Lavalink.py | c47149c0f6dcdd11cd57ee10b6f92ef932c027ea | [
"MIT"
] | null | null | null | lavalink/events.py | iWeeti/Lavalink.py | c47149c0f6dcdd11cd57ee10b6f92ef932c027ea | [
"MIT"
] | null | null | null | class Event:
""" The base for all Lavalink events. """
pass
class QueueEndEvent(Event):
""" This event is dispatched when there are no more songs in the queue. """
def __init__(self, player):
self.player = player
class TrackStuckEvent(Event):
""" This event is dispatched when the current... | 29.586207 | 85 | 0.662393 | 324 | 2,574 | 5.126543 | 0.280864 | 0.084287 | 0.075858 | 0.086695 | 0.373871 | 0.360626 | 0.28838 | 0.151114 | 0 | 0 | 0 | 0 | 0.254468 | 2,574 | 86 | 86 | 29.930233 | 0.865555 | 0.397824 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.214286 | false | 0.02381 | 0 | 0 | 0.452381 | 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 |
82db0d32c95eb2ac6e44ab8966b06f6b3c477129 | 505 | py | Python | iseq/io/test/test_readers.py | horta/iseq | f054737ed1b76e7fe618261d1bef7f465d51ea64 | [
"MIT"
] | null | null | null | iseq/io/test/test_readers.py | horta/iseq | f054737ed1b76e7fe618261d1bef7f465d51ea64 | [
"MIT"
] | null | null | null | iseq/io/test/test_readers.py | horta/iseq | f054737ed1b76e7fe618261d1bef7f465d51ea64 | [
"MIT"
] | null | null | null | # from nmm import tblout_reader
# def test_tblout(tblout):
# with open(tblout) as file:
# reader = tblout_reader(file)
# row = next(reader)
# assert row.target_name == "item2"
# assert row.full_sequence.e_value == "1.2e-07"
# assert row.best_1_domain.e_value == "1.2e-07"
... | 29.705882 | 55 | 0.59604 | 72 | 505 | 3.972222 | 0.375 | 0.188811 | 0.097902 | 0.125874 | 0.664336 | 0.664336 | 0.664336 | 0.440559 | 0.440559 | 0.440559 | 0 | 0.054054 | 0.267327 | 505 | 16 | 56 | 31.5625 | 0.718919 | 0.942574 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82e0cc3fbbfd40582ea26e54caaeab0ec7435ba4 | 584 | py | Python | djue/management/commands/components.py | brmc/django-djue | 47a096f1aec9b9f519f8b831ca61b078c5b9b521 | [
"MIT"
] | null | null | null | djue/management/commands/components.py | brmc/django-djue | 47a096f1aec9b9f519f8b831ca61b078c5b9b521 | [
"MIT"
] | null | null | null | djue/management/commands/components.py | brmc/django-djue | 47a096f1aec9b9f519f8b831ca61b078c5b9b521 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from django.conf import settings
from django.urls import get_resolver
from djue.management.commands._actions import ModuleCommand, \
generate_components
from djue.utils import log, get_output_path
class Command(ModuleCommand):
def handle(se... | 24.333333 | 62 | 0.693493 | 73 | 584 | 5.410959 | 0.589041 | 0.050633 | 0.065823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002155 | 0.205479 | 584 | 23 | 63 | 25.391304 | 0.849138 | 0.071918 | 0 | 0 | 0 | 0 | 0.075926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 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 |
82e2a2fd5ec90f08b64886c49fc30d236a2850b4 | 6,381 | py | Python | src/gluonnlp/utils/lazy_imports.py | ZheyuYe/gluon-nlp | 23d9d73f89ed83376def818434684eca17a3dea6 | [
"Apache-2.0"
] | 1 | 2020-08-19T09:31:04.000Z | 2020-08-19T09:31:04.000Z | src/gluonnlp/utils/lazy_imports.py | ZheyuYe/gluon-nlp | 23d9d73f89ed83376def818434684eca17a3dea6 | [
"Apache-2.0"
] | null | null | null | src/gluonnlp/utils/lazy_imports.py | ZheyuYe/gluon-nlp | 23d9d73f89ed83376def818434684eca17a3dea6 | [
"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 u... | 37.982143 | 100 | 0.63595 | 744 | 6,381 | 5.361559 | 0.227151 | 0.085736 | 0.039108 | 0.107546 | 0.350714 | 0.208824 | 0.107295 | 0.080471 | 0.063926 | 0.063926 | 0 | 0.005345 | 0.296349 | 6,381 | 167 | 101 | 38.209581 | 0.883074 | 0.143081 | 0 | 0.233871 | 0 | 0 | 0.469324 | 0.019471 | 0 | 0 | 0 | 0 | 0.008065 | 1 | 0.104839 | false | 0 | 0.524194 | 0 | 0.725806 | 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 |
82e3c3960ec4676a2461a78da13f98923685e72a | 1,770 | py | Python | backend/core/models.py | andreaabellera/Ecoyou | 7b12e8a0d910549eaabf9d0e5e2da0abc293ca36 | [
"MIT"
] | null | null | null | backend/core/models.py | andreaabellera/Ecoyou | 7b12e8a0d910549eaabf9d0e5e2da0abc293ca36 | [
"MIT"
] | null | null | null | backend/core/models.py | andreaabellera/Ecoyou | 7b12e8a0d910549eaabf9d0e5e2da0abc293ca36 | [
"MIT"
] | 1 | 2021-01-14T21:12:47.000Z | 2021-01-14T21:12:47.000Z | from django.db import models
class Challenge(models.Model):
name = models.CharField(max_length=60)
city = models.CharField(max_length=60, default='Unknown')
organizer = models.CharField(max_length=60, default='Anonymous')
duration = models.PositiveIntegerField(default=30)
reward = models.PositiveIn... | 43.170732 | 79 | 0.753672 | 212 | 1,770 | 6.216981 | 0.268868 | 0.147951 | 0.177542 | 0.236722 | 0.588012 | 0.586495 | 0.531108 | 0.531108 | 0.468892 | 0.432473 | 0 | 0.035456 | 0.139548 | 1,770 | 40 | 80 | 44.25 | 0.829941 | 0.050847 | 0 | 0.323529 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
82e895cfab9612952b99f4c398d42ac51ff34cd5 | 528 | py | Python | tests/r/test_grunfeld1.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_grunfeld1.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_grunfeld1.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.grunfeld1 import grunfeld1
def test_grunfeld1():
"""Test module grunfeld1.py by downloading
grunfeld1.csv and testing shape of
extracted d... | 22 | 46 | 0.75947 | 72 | 528 | 5.291667 | 0.569444 | 0.07874 | 0.125984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032184 | 0.176136 | 528 | 23 | 47 | 22.956522 | 0.843678 | 0.219697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0.066667 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.