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
d3b146cefcbdfbb497115b74257a2891722524b5
1,988
py
Python
promgen/util.py
sundy-li/promgen
e532bde46b542dd66f46e3dd654bc1ad31deeec7
[ "MIT" ]
null
null
null
promgen/util.py
sundy-li/promgen
e532bde46b542dd66f46e3dd654bc1ad31deeec7
[ "MIT" ]
8
2021-04-08T21:59:34.000Z
2022-02-10T10:42:43.000Z
promgen/util.py
Andreich2010/promgen
dae2b720f30b0c002aa50a74c4c4fc8dfbcbb2b7
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests.sessions from django.db.models import F from promgen.version import __version__ from django.conf import settings # Wrappers around request api to ensure we always attach our user agent #...
28.811594
87
0.667505
270
1,988
4.792593
0.437037
0.049459
0.041731
0.060278
0.233385
0.233385
0.233385
0.233385
0.233385
0.233385
0
0.002572
0.217807
1,988
68
88
29.235294
0.829582
0.288229
0
0.181818
0
0
0.044623
0
0
0
0
0
0
1
0.212121
false
0
0.121212
0.030303
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d3c48e47d2fa33e8114041e17aa2a33b9c9c1809
895
py
Python
chapter04/ifelse.py
persevere-in-coding-persist-in-learning/python2
b207d0040232abae63638784b34a950b932bef77
[ "Apache-2.0" ]
3
2020-08-05T01:15:41.000Z
2020-08-05T09:28:36.000Z
chapter04/ifelse.py
persevere-in-coding-persist-in-learning/python2
b207d0040232abae63638784b34a950b932bef77
[ "Apache-2.0" ]
null
null
null
chapter04/ifelse.py
persevere-in-coding-persist-in-learning/python2
b207d0040232abae63638784b34a950b932bef77
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ 控制结构if elif else的研究 Version: 0.1 Author: huijz Date: 2020-08-24 """ # 例1:if的基本用法: flag = False name = 'huijz' if name == 'python': # 判断变量是否为 python flag = True # 条件成立时设置标志为真 print 'welcome boss' # 并输出欢迎信息 else: print name # 条件不成立时输出变量名称 # 例2:elif用法 num = 5 if num == 3: # 判断num的值 ...
16.886792
41
0.606704
132
895
4.113636
0.492424
0.066298
0.022099
0.069982
0.143646
0.143646
0.143646
0
0
0
0
0.08982
0.253631
895
52
42
17.211538
0.723054
0.248045
0
0.264706
0
0
0.169811
0
0
0
0
0
0
0
null
null
0
0
null
null
0.411765
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
d3c7eb72e9d8627f04182ce89238416d18909674
1,436
py
Python
src/core/stats.py
dynaryu/vaws
f6ed9b75408f7ce6100ed59b7754f745e59be152
[ "BSD-3-Clause" ]
null
null
null
src/core/stats.py
dynaryu/vaws
f6ed9b75408f7ce6100ed59b7754f745e59be152
[ "BSD-3-Clause" ]
null
null
null
src/core/stats.py
dynaryu/vaws
f6ed9b75408f7ce6100ed59b7754f745e59be152
[ "BSD-3-Clause" ]
null
null
null
import math def lognormal_mean(m, stddev): """ compute mean of log x with mean and std. of x Args: m: mean of x stddev: standard deviation of x Returns: mean of log x """ return math.log(m) - (0.5 * math.log(1.0 + (stddev * stddev) / (m * m))) def lognormal_stdde...
23.16129
77
0.521588
212
1,436
3.495283
0.150943
0.067476
0.080972
0.072874
0.746289
0.531714
0.410256
0.410256
0.345479
0.345479
0
0.024705
0.351671
1,436
61
78
23.540984
0.771214
0.509749
0
0
0
0
0
0
0
0
0
0
0
1
0.4
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
d3d87b798d29e52210031306b4e2f4fee10a8cd2
992
py
Python
stacker/tests/providers/aws/test_interactive.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
1
2021-11-06T17:01:01.000Z
2021-11-06T17:01:01.000Z
stacker/tests/providers/aws/test_interactive.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
null
null
null
stacker/tests/providers/aws/test_interactive.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
1
2021-11-06T17:00:53.000Z
2021-11-06T17:00:53.000Z
import unittest from ....providers.aws.interactive import requires_replacement def generate_resource_change(replacement=True): resource_change = { "Action": "Modify", "Details": [], "LogicalResourceId": "Fake", "PhysicalResourceId": "arn:aws:fake", "Replacement": "True" if ...
30.060606
79
0.634073
83
992
7.409639
0.481928
0.136585
0.143089
0.160976
0
0
0
0
0
0
0
0.001337
0.245968
992
32
80
31
0.820856
0
0
0.074074
1
0
0.18246
0
0
0
0
0
0.074074
1
0.074074
false
0
0.074074
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d3db48db20a20bc47e28f0062af79ebd64f3fa41
811
py
Python
forms/views.py
urchinpro/L2-forms
37f33386984efbb2d1e92c73d915256247801109
[ "MIT" ]
null
null
null
forms/views.py
urchinpro/L2-forms
37f33386984efbb2d1e92c73d915256247801109
[ "MIT" ]
null
null
null
forms/views.py
urchinpro/L2-forms
37f33386984efbb2d1e92c73d915256247801109
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.utils.module_loading import import_string def pdf(request): """ Get form's number (decimal type: 101.15 - where "101" is form's group and "15"-number itsels). Can't use 1,2,3,4,5,6,7,8,9 for number itsels - which stands after the point. Bacause in datab...
38.619048
103
0.670777
130
811
4.138462
0.638462
0.055762
0
0
0
0
0
0
0
0
0
0.076807
0.181258
811
20
104
40.55
0.733434
0.436498
0
0
0
0
0.19715
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d3de757442c04a58c632f23911d3bb3230eadbab
572
py
Python
parkrundata/views.py
remarkablerocket/parkrundata
c717b59771629d6308ec093e29fd373981726fde
[ "BSD-3-Clause" ]
null
null
null
parkrundata/views.py
remarkablerocket/parkrundata
c717b59771629d6308ec093e29fd373981726fde
[ "BSD-3-Clause" ]
null
null
null
parkrundata/views.py
remarkablerocket/parkrundata
c717b59771629d6308ec093e29fd373981726fde
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework import viewsets from rest_framework.permissions import IsAuthenticatedOrReadOnly from .models import Country, Event from .serializers import CountrySerializer, EventSerializer class CountryViewSet(viewsets.ModelViewSet): queryset = Country.objects.all() serializer...
28.6
64
0.798951
52
572
8.673077
0.5
0.035477
0.075388
0.110865
0
0
0
0
0
0
0
0.002012
0.131119
572
19
65
30.105263
0.905433
0.036713
0
0.166667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
d3e19347ed0ddda8633be363dd6cfd4b345245b2
402
py
Python
catalog/bindings/gmd/point.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/point.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/point.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.point_type import PointType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class Point(PointType): """A Point is defined by a single coordinate tuple. The direct position of a point is specified by the pos element which is of type DirectPositi...
23.647059
72
0.721393
55
402
5.181818
0.6
0.091228
0.112281
0.161404
0.203509
0.203509
0
0
0
0
0
0
0.196517
402
16
73
25.125
0.882353
0.370647
0
0
0
0
0.222222
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.571429
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
d3ea46bda3dee2d1a7eb7b7fac100d0a90820e25
14,363
py
Python
sdk/python/pulumi_aws_native/amplify/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/amplify/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/amplify/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
34.609639
124
0.664555
1,652
14,363
5.516949
0.063559
0.126728
0.096774
0.062541
0.742813
0.629142
0.549704
0.483542
0.423085
0.323897
0
0.000089
0.213674
14,363
414
125
34.693237
0.806889
0.011209
0
0.466667
1
0
0.120175
0.069597
0
0
0
0
0
1
0.209091
false
0.045455
0.018182
0.090909
0.345455
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
d3eaa974be46c94752b5084755d30c91ec1e2ca1
4,203
py
Python
awsecommerceservice/models/item_lookup_request.py
nidaizamir/Test-PY
26ea1019115a1de3b1b37a4b830525e164ac55ce
[ "MIT" ]
null
null
null
awsecommerceservice/models/item_lookup_request.py
nidaizamir/Test-PY
26ea1019115a1de3b1b37a4b830525e164ac55ce
[ "MIT" ]
null
null
null
awsecommerceservice/models/item_lookup_request.py
nidaizamir/Test-PY
26ea1019115a1de3b1b37a4b830525e164ac55ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ awsecommerceservice This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class ItemLookupRequest(object): """Implementation of the 'ItemLookupRequest' model. TODO: type model description here. Attributes: condition (ConditionE...
35.618644
83
0.623602
421
4,203
5.995249
0.23753
0.038035
0.082805
0.100238
0.102219
0.06775
0.041601
0
0
0
0
0.001021
0.300738
4,203
117
84
35.923077
0.857775
0.336902
0
0
1
0
0.160972
0.024677
0
0
0
0.102564
0
1
0.03125
false
0
0
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
310702fdf551ae6fbf1e07ce937cc37a28affac0
233
py
Python
libra/handlers/user.py
pitomba/libra
8a2e4008f5a6038995ed03ea29d1cbf3dc3c589d
[ "MIT" ]
2
2015-03-22T09:44:36.000Z
2015-06-04T06:30:13.000Z
libra/handlers/user.py
pitomba/libra
8a2e4008f5a6038995ed03ea29d1cbf3dc3c589d
[ "MIT" ]
null
null
null
libra/handlers/user.py
pitomba/libra
8a2e4008f5a6038995ed03ea29d1cbf3dc3c589d
[ "MIT" ]
null
null
null
# coding: utf-8 from tornado.web import RequestHandler from libra.handlers.base import authenticated class UserHandler(RequestHandler): @authenticated def post(self, user, **kwargs): self.write({"msg": "Success"})
21.181818
45
0.716738
27
233
6.185185
0.814815
0
0
0
0
0
0
0
0
0
0
0.005155
0.167382
233
10
46
23.3
0.85567
0.055794
0
0
0
0
0.045872
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
310bacdf46c233952b779b59db8e0cb5aa5c4604
5,068
py
Python
planning/domains/depth/depthGenerator.py
xlbandy/fape
8a00f9d4c20f722930c11d88b60e0e82f523a439
[ "BSD-2-Clause" ]
14
2017-01-09T23:25:12.000Z
2022-02-16T12:08:48.000Z
planning/domains/depth/depthGenerator.py
xlbandy/fape
8a00f9d4c20f722930c11d88b60e0e82f523a439
[ "BSD-2-Clause" ]
7
2018-05-18T08:27:03.000Z
2022-03-23T06:39:42.000Z
planning/domains/depth/depthGenerator.py
xlbandy/fape
8a00f9d4c20f722930c11d88b60e0e82f523a439
[ "BSD-2-Clause" ]
8
2016-12-09T13:31:43.000Z
2022-02-16T12:08:50.000Z
from __future__ import division import itertools import json import math import os import random import shutil import subprocess import sys durationA = str(5) durationB = str(4) durationC = str(1) def main(): if len(sys.argv) > 1: nbDepth = int(sys.argv[1]) if nbDepth < 2 : nbDept...
36.992701
89
0.414759
635
5,068
3.291339
0.146457
0.209569
0.224402
0.103349
0.637799
0.616268
0.611483
0.502392
0.432057
0.432057
0
0.01468
0.32794
5,068
136
90
37.264706
0.598943
0.017758
0
0.446429
0
0
0.229732
0.013069
0
0
0
0
0
1
0.035714
false
0
0.080357
0
0.116071
0.035714
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
3113f40d512a333a3eafda75e8d9b764160cd806
15,467
py
Python
(19.12.06) Culminating/sprites.py
bly852/ICS3U1
8844321b26027d1612fad7fba88e70a1108de2eb
[ "MIT" ]
null
null
null
(19.12.06) Culminating/sprites.py
bly852/ICS3U1
8844321b26027d1612fad7fba88e70a1108de2eb
[ "MIT" ]
null
null
null
(19.12.06) Culminating/sprites.py
bly852/ICS3U1
8844321b26027d1612fad7fba88e70a1108de2eb
[ "MIT" ]
null
null
null
# course: ICS3U1 2019 # exercise: Culminating Activity # date: 2019-12-06 # student number: 340926187 # name: Brandon Ly # description: Two players (Mr Chun & Mr Pileggi) running around the school # collecting food for the food drive. # sprite classes import pygame...
40.174026
140
0.541799
1,854
15,467
4.434736
0.104639
0.042812
0.05838
0.052542
0.740452
0.719898
0.696911
0.691438
0.668086
0.636342
0
0.027068
0.36704
15,467
384
141
40.278646
0.812768
0.179026
0
0.599206
0
0
0.019392
0
0
0
0
0
0
1
0.043651
false
0
0.019841
0
0.079365
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
311469936b15c039449f088fcb08c289febfdf41
294
py
Python
app/schemas/usage_logs.py
wiki-yu/fastapi-algorithm-library
8f745e9fe4d1d063dc8505d4c7f467e95209a385
[ "MIT" ]
null
null
null
app/schemas/usage_logs.py
wiki-yu/fastapi-algorithm-library
8f745e9fe4d1d063dc8505d4c7f467e95209a385
[ "MIT" ]
null
null
null
app/schemas/usage_logs.py
wiki-yu/fastapi-algorithm-library
8f745e9fe4d1d063dc8505d4c7f467e95209a385
[ "MIT" ]
null
null
null
from typing import Optional, List from pydantic import BaseModel class UsageLog(BaseModel): api_key: str is_active: bool never_expire: bool expiration_date: str latest_query_date: Optional[str] total_queries: int class UsageLogs(BaseModel): logs: List[UsageLog]
18.375
36
0.738095
38
294
5.526316
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.20068
294
15
37
19.6
0.893617
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.181818
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
3117d8dd620c63b6e9601bc884ac493aa6485d06
1,100
py
Python
tweetf0rm/process/crawler_process.py
amaurywalbert/mytweetf0rm
2272b53214b3669eb104762f5b5b38ff4adda435
[ "MIT" ]
1
2015-02-16T11:08:35.000Z
2015-02-16T11:08:35.000Z
tweetf0rm/process/crawler_process.py
maruthiprithivi/tweetf0rm
f59e57495afda05032d41b161b5aed74f2bc4dfe
[ "MIT" ]
null
null
null
tweetf0rm/process/crawler_process.py
maruthiprithivi/tweetf0rm
f59e57495afda05032d41b161b5aed74f2bc4dfe
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # import logging logger = logging.getLogger(__name__) import multiprocessing as mp import tweetf0rm.handler from tweetf0rm.redis_helper import CrawlerQueue #MAX_QUEUE_SIZE = 32767 class CrawlerProcess(mp.Process): def __init__(self, node_id, crawler_id, redis_config, ha...
22.916667
83
0.75
158
1,100
4.962025
0.35443
0.098214
0.102041
0.035714
0.118622
0.066327
0
0
0
0
0
0.008403
0.134545
1,100
48
84
22.916667
0.815126
0.178182
0
0
0
0
0.03456
0
0
0
0
0
0
1
0.230769
false
0.038462
0.153846
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
312a37dbf8253fa5df799a76f2660e8811afe2b8
1,823
py
Python
sympyosis/logger.py
ZechCodes/sympyosis
0c7315a08fc91d2d074b42f0aeb5d04c6f3f22d1
[ "MIT" ]
null
null
null
sympyosis/logger.py
ZechCodes/sympyosis
0c7315a08fc91d2d074b42f0aeb5d04c6f3f22d1
[ "MIT" ]
null
null
null
sympyosis/logger.py
ZechCodes/sympyosis
0c7315a08fc91d2d074b42f0aeb5d04c6f3f22d1
[ "MIT" ]
null
null
null
from enum import IntEnum from typing import Type, TypeVar import logging T = TypeVar("T") class LogLevel(IntEnum): DEBUG = logging.DEBUG INFO = logging.INFO WARNING = logging.WARNING ERROR = logging.ERROR CRITICAL = logging.CRITICAL @classmethod def get(cls: Type[T], name: str) -> T: ...
28.484375
81
0.633571
221
1,823
5.126697
0.217195
0.105914
0.074139
0.079435
0.245366
0.203001
0.203001
0.203001
0.203001
0
0
0
0.237521
1,823
63
82
28.936508
0.815108
0
0
0.044444
0
0
0.000549
0
0
0
0
0
0
1
0.244444
false
0
0.066667
0.044444
0.511111
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
312efdddb68056b4177eee4701aa3c39ea0d5fe6
6,656
py
Python
tests/func/test_pipeline.py
kacmak7/dvc
7f92cc3be31f55a1d47c56fc5a39896dd5d1e313
[ "Apache-2.0" ]
null
null
null
tests/func/test_pipeline.py
kacmak7/dvc
7f92cc3be31f55a1d47c56fc5a39896dd5d1e313
[ "Apache-2.0" ]
null
null
null
tests/func/test_pipeline.py
kacmak7/dvc
7f92cc3be31f55a1d47c56fc5a39896dd5d1e313
[ "Apache-2.0" ]
null
null
null
import logging from dvc.main import main from tests.basic_env import TestDvc from tests.func.test_repro import TestRepro from tests.func.test_repro import TestReproChangedDeepData class TestPipelineShowSingle(TestDvc): def setUp(self): super().setUp() self.stage = "foo.dvc" ret = main(["a...
29.847534
79
0.594351
826
6,656
4.671913
0.100484
0.147707
0.128531
0.142783
0.757191
0.726095
0.684633
0.678414
0.632288
0.584607
0
0.013096
0.23137
6,656
222
80
29.981982
0.741204
0
0
0.621951
0
0
0.126352
0
0
0
0
0
0.280488
1
0.237805
false
0
0.030488
0
0.310976
0.006098
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
0
1
0
0
0
0
0
0
0
2
3132c79a2cad6d01993855975464a0c7d164ed0d
898
py
Python
src/apiron/service/discoverable.py
tushar-deepsource/apiron
6b542d498e1e2a76d5f8a2d086d237be43d09bc3
[ "MIT" ]
109
2018-10-01T19:38:36.000Z
2022-03-10T05:28:34.000Z
src/apiron/service/discoverable.py
tushar-deepsource/apiron
6b542d498e1e2a76d5f8a2d086d237be43d09bc3
[ "MIT" ]
39
2018-10-01T20:51:49.000Z
2022-03-07T15:38:32.000Z
src/apiron/service/discoverable.py
tushar-deepsource/apiron
6b542d498e1e2a76d5f8a2d086d237be43d09bc3
[ "MIT" ]
10
2018-10-02T06:54:40.000Z
2020-05-28T14:30:12.000Z
from typing import List, Type from apiron.service.base import ServiceBase class DiscoverableService(ServiceBase): """ A Service whose hosts are determined via a host resolver. A host resolver is any class with a :func:`resolve` method that takes a service name as its sole argument and returns a l...
30.965517
115
0.707127
120
898
4.983333
0.4
0.160535
0.085284
0.076923
0
0
0
0
0
0
0
0
0.213808
898
28
116
32.071429
0.847026
0.255011
0
0
0
0
0.104524
0.102964
0
0
0
0
0
1
0.2
false
0
0.133333
0.133333
0.733333
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
314bff70a566f2c7c9e67a0b7e9a88c99668d8c8
857
py
Python
ois_api_client/v2_0/deserialization/deserialize_invoice_number_query.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v2_0/deserialization/deserialize_invoice_number_query.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v2_0/deserialization/deserialize_invoice_number_query.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from typing import Optional import xml.etree.ElementTree as ET from ...xml.XmlReader import XmlReader as XR from ..namespaces import API from ..namespaces import DATA from ...deserialization.create_enum import create_enum from ..dto.InvoiceNumberQuery import InvoiceNumberQuery from ..dto.InvoiceDirection import Invoice...
37.26087
109
0.771295
102
857
6.294118
0.421569
0.031153
0.062305
0.065421
0.116822
0.084112
0
0
0
0
0
0
0.144691
857
22
110
38.954545
0.875853
0
0
0
0
0
0.065344
0
0
0
0
0
0
1
0.055556
false
0
0.444444
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
315b8d418921022e63456c61eb0e983243286ff8
245
py
Python
head_first_v2/ch4/modules/setup.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
head_first_v2/ch4/modules/setup.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
head_first_v2/ch4/modules/setup.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='lsearch', version='1.0', description='The Head First Python Search Tools', author='HF Python 2e', author_email='hfpy2e@gmail.com', url='headfirstlabs.com', py_modules=['lsearch'], )
24.5
109
0.685714
32
245
5.1875
0.84375
0
0
0
0
0
0
0
0
0
0
0.019608
0.167347
245
9
110
27.222222
0.794118
0
0
0
0
0
0.391837
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
315c82c7ef0cdf26d1ed8dc3787880aa67476f2f
1,329
py
Python
stability/stairs_contacts.py
haudren/stability-polygon
b5e42bbd6eda2426a2c0d70716fbf956ce63f290
[ "MIT" ]
null
null
null
stability/stairs_contacts.py
haudren/stability-polygon
b5e42bbd6eda2426a2c0d70716fbf956ce63f290
[ "MIT" ]
null
null
null
stability/stairs_contacts.py
haudren/stability-polygon
b5e42bbd6eda2426a2c0d70716fbf956ce63f290
[ "MIT" ]
null
null
null
import numpy as np pos = [] normals = [] p = [[-0.4722227, -0.24517583, -0.6370031]] n = [[2.02215104e-04, -3.23903880e-05, 9.99999979e-01]] pos.append(p) normals.append(n) p = [[-0.2549828, -0.24587737, -0.63704705]] n = [[2.02215104e-04, -3.23903880e-05, 9.99999979e-01]] pos.append(p) normals.append(n) p = [[-0.2...
23.315789
57
0.653123
231
1,329
3.757576
0.307359
0.020737
0.092166
0.156682
0.474654
0.474654
0.474654
0.354839
0.354839
0.288018
0
0.429057
0.114372
1,329
56
58
23.732143
0.308411
0.2769
0
0.551724
0
0
0
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
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
3169e4d8e7a2dd174944cc17f672b8a7919b6ebd
1,928
py
Python
targhe/models.py
luca772005/studio
8d19d28f13f400aa4dde84c36e44cf5891d18ddd
[ "MIT" ]
null
null
null
targhe/models.py
luca772005/studio
8d19d28f13f400aa4dde84c36e44cf5891d18ddd
[ "MIT" ]
null
null
null
targhe/models.py
luca772005/studio
8d19d28f13f400aa4dde84c36e44cf5891d18ddd
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Tipo(models.Model): descrizione = models.CharField(blank=False, null=False, max_length=128) def __unicode__(self): return "{}".format(self.descrizione) class Meta: verbose_name_plural = 'Tipi' class Marca(models.Model): ...
26.410959
77
0.688278
229
1,928
5.606987
0.20524
0.093458
0.076324
0.116822
0.623832
0.583333
0.583333
0.583333
0.583333
0.511682
0
0.012829
0.19139
1,928
72
78
26.777778
0.810776
0.012448
0
0.444444
0
0
0.029443
0
0
0
0
0
0
1
0.133333
false
0
0.022222
0.133333
0.866667
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
316f355464f64ade9dfc879dc379fa3194ccd5a6
363
py
Python
objettoqt/mixins.py
brunonicko/objettoqt
1a91ef58d4540b7f377e405492d35ccd222d71d5
[ "MIT" ]
null
null
null
objettoqt/mixins.py
brunonicko/objettoqt
1a91ef58d4540b7f377e405492d35ccd222d71d5
[ "MIT" ]
null
null
null
objettoqt/mixins.py
brunonicko/objettoqt
1a91ef58d4540b7f377e405492d35ccd222d71d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Mix-in classes for `Qt` types.""" from ._mixins import ( OQAbstractItemModelMixin, OQAbstractItemViewMixin, OQObjectMixin, OQWidgetMixin, ) from ._views import OQListViewMixin __all__ = [ "OQObjectMixin", "OQWidgetMixin", "OQAbstractItemModelMixin", "OQAbstra...
19.105263
36
0.683196
26
363
9.307692
0.730769
0.38843
0
0
0
0
0
0
0
0
0
0.003413
0.192837
363
18
37
20.166667
0.822526
0.146006
0
0
0
0
0.289474
0.154605
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
31789285a83d618d1865746d4dfadf7a34d38be3
403
py
Python
examples/circuitplayground_light_plotter.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
examples/circuitplayground_light_plotter.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
examples/circuitplayground_light_plotter.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
"""If you're using Mu, this example will plot the light levels from the light sensor (located next to the eye) on your Circuit Playground. Try shining a flashlight on your Circuit Playground, or covering the light sensor to see the plot increase and decrease.""" import time from adafruit_circuitplayground import cp wh...
36.636364
98
0.751861
65
403
4.646154
0.661538
0.07947
0.092715
0.152318
0
0
0
0
0
0
0
0.005988
0.171216
403
10
99
40.3
0.898204
0.635236
0
0
0
0
0.042553
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
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
31b9a252afcfedd5b4624ba9c3b0dea6a7505e81
10,253
py
Python
model_zoo/official/cv/FCN8s/src/nets/FCN8s.py
LottieWang/mindspore
1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0
[ "Apache-2.0" ]
null
null
null
model_zoo/official/cv/FCN8s/src/nets/FCN8s.py
LottieWang/mindspore
1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0
[ "Apache-2.0" ]
null
null
null
model_zoo/official/cv/FCN8s/src/nets/FCN8s.py
LottieWang/mindspore
1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., 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 a...
48.592417
103
0.609968
1,349
10,253
4.4255
0.122313
0.114573
0.066332
0.080905
0.7933
0.776549
0.738693
0.664824
0.621441
0.40737
0
0.062832
0.265776
10,253
210
104
48.82381
0.730207
0.062226
0
0.297297
0
0
0.03131
0
0
0
0
0
0
1
0.016216
false
0
0.010811
0
0.037838
0
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
31d1dcdc84557e4ef3daa2e742b3df53f7c45b0e
1,569
py
Python
fdrtd_server/exceptions.py
UNakade/server
f659524242d01fe67f9801ab41fabf46640ad590
[ "MIT" ]
null
null
null
fdrtd_server/exceptions.py
UNakade/server
f659524242d01fe67f9801ab41fabf46640ad590
[ "MIT" ]
null
null
null
fdrtd_server/exceptions.py
UNakade/server
f659524242d01fe67f9801ab41fabf46640ad590
[ "MIT" ]
null
null
null
import logging as _logging def handle_exception(e): if isinstance(e, ApiError): _logging.exception(e.message) return e.message, e.statuscode _logging.exception(repr(e)) return None, 500 class ApiError(Exception): def __init__(self, statuscode, message): self.statuscode = s...
22.414286
78
0.684512
170
1,569
5.870588
0.276471
0.063126
0.099198
0.152305
0.183367
0.183367
0.183367
0.078156
0.078156
0
0
0.021378
0.195029
1,569
69
79
22.73913
0.768804
0
0
0.135135
0
0
0.183556
0
0
0
0
0
0
1
0.297297
false
0
0.027027
0.027027
0.648649
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
31e18d81d721e6fc0a0c74da919f35393478b123
324
py
Python
test/programytest/storage/entities/test_nodes.py
cdoebler1/AIML2
ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a
[ "MIT" ]
345
2016-11-23T22:37:04.000Z
2022-03-30T20:44:44.000Z
test/programytest/storage/entities/test_nodes.py
MikeyBeez/program-y
00d7a0c7d50062f18f0ab6f4a041068e119ef7f0
[ "MIT" ]
275
2016-12-07T10:30:28.000Z
2022-02-08T21:28:33.000Z
test/programytest/storage/entities/test_nodes.py
VProgramMist/modified-program-y
f32efcafafd773683b3fe30054d5485fe9002b7d
[ "MIT" ]
159
2016-11-28T18:59:30.000Z
2022-03-20T18:02:44.000Z
import unittest import unittest.mock from programy.storage.entities.nodes import NodesStore class NodesStoreTest(unittest.TestCase): def test_load(self): store = NodesStore() with self.assertRaises(NotImplementedError): collector = unittest.mock.Mock() store.load(collecto...
21.6
54
0.703704
33
324
6.878788
0.636364
0.123348
0
0
0
0
0
0
0
0
0
0
0.216049
324
14
55
23.142857
0.893701
0
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9ed0bf65b8f404e11c189c592c88427ef28a69fc
685
py
Python
lh_lib/sensors/esp32/touch.py
lh70/s-connect-python
5a4ca17690ec700b36faf69ea744c514f532cc48
[ "Apache-2.0" ]
null
null
null
lh_lib/sensors/esp32/touch.py
lh70/s-connect-python
5a4ca17690ec700b36faf69ea744c514f532cc48
[ "Apache-2.0" ]
null
null
null
lh_lib/sensors/esp32/touch.py
lh70/s-connect-python
5a4ca17690ec700b36faf69ea744c514f532cc48
[ "Apache-2.0" ]
null
null
null
from machine import Pin from lh_lib.sensors.sensor import AbstractSensor class Touch(AbstractSensor): """ This represents a touch sensor with integrated Logic, where there is only one output pin, which digitally represents the touched state. pin:integer can be one of all available GPIO pins: 0-19, ...
28.541667
130
0.636496
104
685
4.105769
0.711538
0.04918
0.051522
0
0
0
0
0
0
0
0
0.059289
0.261314
685
23
131
29.782609
0.784585
0.49635
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
9ed4b01964cfce5140c8270d443eb2c516032d63
2,830
py
Python
SAMAE/data/__init__.py
Lisa-pa/SAMAE
8d52fd6f8c2634c82f2071233e9796ea322f6360
[ "MIT" ]
null
null
null
SAMAE/data/__init__.py
Lisa-pa/SAMAE
8d52fd6f8c2634c82f2071233e9796ea322f6360
[ "MIT" ]
4
2021-03-20T09:31:02.000Z
2022-03-12T00:51:19.000Z
SAMAE/data/__init__.py
Lisa-pa/AponeurosesDetection
8d52fd6f8c2634c82f2071233e9796ea322f6360
[ "MIT" ]
null
null
null
"""Standard test images. """ import os from skimage.io import imread data_dir = os.path.abspath(os.path.dirname(__file__)) __all__ = ['data_dir', 'circle', 'skmuscimg'] def _load(f, as_gray=False): """Load an image file located in the data directory. Parameters ---------- f : string F...
28.877551
114
0.621908
356
2,830
4.856742
0.441011
0.02834
0.018508
0.037016
0.116252
0.116252
0.116252
0.100636
0.100636
0.100636
0
0.017267
0.283746
2,830
98
115
28.877551
0.835718
0.591166
0
0
0
0
0.094748
0
0
0
0
0
0
1
0.222222
false
0
0.185185
0
0.666667
0.037037
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
732764ebd0702a98bf1fa40e238672b9d8162849
397
py
Python
tests/test_modules/test_ADPandABlocks/test_adpandablocks_blocks.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_ADPandABlocks/test_adpandablocks_blocks.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_ADPandABlocks/test_adpandablocks_blocks.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
from mock import Mock from malcolm.testutil import ChildTestCase from malcolm.modules.ADPandABlocks.blocks import pandablocks_runnable_block class TestADPandABlocksBlocks(ChildTestCase): def test_pandablocks_runnable_block(self): self.create_child_block( pandablocks_runnable_block, Mock(), ...
33.083333
78
0.7733
46
397
6.369565
0.543478
0.194539
0.245734
0
0
0
0
0
0
0
0
0
0.153652
397
11
79
36.090909
0.872024
0
0
0
0
0
0.057935
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
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
1
0
0
0
0
2
732b698a8ba47881b21329d7619d19e7979a1509
1,433
py
Python
subscriptions/models.py
emil-magnusson/py-on-api
50967ea9d6a189c2c1cb75bd3e2b8ab817077634
[ "MIT" ]
null
null
null
subscriptions/models.py
emil-magnusson/py-on-api
50967ea9d6a189c2c1cb75bd3e2b8ab817077634
[ "MIT" ]
4
2021-03-30T14:10:30.000Z
2021-09-22T19:29:56.000Z
subscriptions/models.py
emil-magnusson/py-on-api
50967ea9d6a189c2c1cb75bd3e2b8ab817077634
[ "MIT" ]
null
null
null
# subscriptions/models.py import uuid from django.db import models from accesses.models import Accesses, Services class OperationalState(models.Model): operationalState = models.CharField(primary_key=True, max_length=50) def __str__(self): return self.operationalState class Subscriptions(models.Mod...
37.710526
105
0.752966
162
1,433
6.5
0.345679
0.071225
0.066477
0.099715
0.155745
0.049383
0
0
0
0
0
0.016908
0.133287
1,433
37
106
38.72973
0.830918
0.083043
0
0.130435
0
0
0.027565
0
0
0
0
0
0
1
0.130435
false
0
0.130435
0.130435
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
733cfbac832497fb734f7d0cde01792ad3325cd5
4,038
py
Python
app/core/models.py
echosisdev/openmrs-disa-sync
077331c5b96394f15cc90aba7ce4018e10d5608d
[ "MIT" ]
null
null
null
app/core/models.py
echosisdev/openmrs-disa-sync
077331c5b96394f15cc90aba7ce4018e10d5608d
[ "MIT" ]
null
null
null
app/core/models.py
echosisdev/openmrs-disa-sync
077331c5b96394f15cc90aba7ce4018e10d5608d
[ "MIT" ]
null
null
null
from django.db import models from django.db.models.signals import pre_save, post_save from core.utils.constants import Constants from core.utils.data_convertion import DataConversion class ExcelFile(models.Model): file_name = models.FileField(upload_to='uploads') date_created = models.DateTimeField(auto_now_...
38.826923
78
0.733779
522
4,038
5.47318
0.214559
0.115506
0.138607
0.184809
0.662583
0.621281
0.59818
0.539377
0.472874
0.349667
0
0.019034
0.154284
4,038
103
79
39.203884
0.81757
0.071322
0
0.315068
0
0
0.038729
0
0
0
0
0
0
1
0.082192
false
0
0.054795
0.082192
0.890411
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
734ac6f57c878180c7a2282d8eb947a2ce6b549f
2,588
py
Python
piptools/repositories/base.py
LaudateCorpus1/pip-tools
53c927262d816c336664afee9b03996bfb8f9c44
[ "BSD-3-Clause" ]
2
2021-12-02T11:41:02.000Z
2021-12-27T12:01:53.000Z
piptools/repositories/base.py
LaudateCorpus1/pip-tools
53c927262d816c336664afee9b03996bfb8f9c44
[ "BSD-3-Clause" ]
3
2020-11-20T18:42:20.000Z
2021-06-20T09:38:27.000Z
piptools/repositories/base.py
LaudateCorpus1/pip-tools
53c927262d816c336664afee9b03996bfb8f9c44
[ "BSD-3-Clause" ]
2
2021-07-13T08:53:43.000Z
2022-02-02T14:10:58.000Z
import optparse from abc import ABCMeta, abstractmethod from contextlib import contextmanager from typing import Iterator, Optional, Set from pip._internal.index.package_finder import PackageFinder from pip._internal.models.index import PyPI from pip._internal.network.session import PipSession from pip._internal.req i...
34.506667
88
0.693199
294
2,588
6.044218
0.438776
0.066967
0.033765
0.032639
0.03489
0
0
0
0
0
0
0.001521
0.238022
2,588
74
89
34.972973
0.899594
0.409196
0
0.314286
0
0
0
0
0
0
0
0
0
1
0.257143
false
0
0.228571
0
0.542857
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
734d1d2e2ae1a6d7737d630a4bc5c6e70adf63d2
28,079
py
Python
billingbudgets/google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2.py
hugovk/google-cloud-python
b387134827dbc3be0e1b431201e0875798002fda
[ "Apache-2.0" ]
1
2019-12-09T11:40:28.000Z
2019-12-09T11:40:28.000Z
billingbudgets/google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2.py
hugovk/google-cloud-python
b387134827dbc3be0e1b431201e0875798002fda
[ "Apache-2.0" ]
1
2019-03-29T22:03:48.000Z
2019-04-02T22:24:45.000Z
billingbudgets/google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2.py
hugovk/google-cloud-python
b387134827dbc3be0e1b431201e0875798002fda
[ "Apache-2.0" ]
1
2019-03-29T18:26:16.000Z
2019-03-29T18:26:16.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/billing/budgets_v1beta1/proto/budget_model.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.proto...
36.849081
2,327
0.654795
3,182
28,079
5.52797
0.148649
0.028653
0.057248
0.072484
0.568221
0.523081
0.462592
0.433371
0.36697
0.319215
0
0.040337
0.246875
28,079
761
2,328
36.897503
0.79146
0.026497
0
0.594633
1
0.004237
0.394942
0.174981
0
0
0
0
0
1
0
false
0.001412
0.011299
0
0.011299
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
73592c3ecd42d5c4a472b3d8242eb4b399af73f6
1,000
py
Python
100-Exercicios/ex039.py
thedennerdev/ExerciciosPython-Iniciante
de36c4a09700353a9a1daa7f1320e416c6201a5c
[ "MIT" ]
null
null
null
100-Exercicios/ex039.py
thedennerdev/ExerciciosPython-Iniciante
de36c4a09700353a9a1daa7f1320e416c6201a5c
[ "MIT" ]
null
null
null
100-Exercicios/ex039.py
thedennerdev/ExerciciosPython-Iniciante
de36c4a09700353a9a1daa7f1320e416c6201a5c
[ "MIT" ]
null
null
null
#Exercício Python 39: Faça um programa que leia o ano de nascimento de um jovem e informe, de acordo com a sua idade, se ele ainda vai se alistar ao serviço militar, se é a hora exata de se alistar ou se já passou do tempo do alistamento. Seu programa também deverá mostrar o tempo que falta ou que passou do prazo. imp...
62.5
315
0.75
166
1,000
4.445783
0.415663
0.173442
0.108401
0.056911
0
0
0
0
0
0
0
0.012136
0.176
1,000
16
316
62.5
0.883495
0.314
0
0
0
0.153846
0.584548
0
0
0
0
0
0
1
0
false
0.153846
0.076923
0
0.076923
0.461538
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
0
1
0
2
73617c822f5af71e4276c1b4c85554260d13ae06
982
py
Python
news/pybo/migrations/0006_auto_20211010_0322.py
Smashh712/nrib
375c9625e9efa6bb9a6f466312de3c6fcd5818a4
[ "MIT" ]
null
null
null
news/pybo/migrations/0006_auto_20211010_0322.py
Smashh712/nrib
375c9625e9efa6bb9a6f466312de3c6fcd5818a4
[ "MIT" ]
null
null
null
news/pybo/migrations/0006_auto_20211010_0322.py
Smashh712/nrib
375c9625e9efa6bb9a6f466312de3c6fcd5818a4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-09 18:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pybo', '0005_auto_20211010_0320'), ] operations = [ migrations.AddField( model_name='issue', name='agree_representor...
28.882353
73
0.580448
99
982
5.585859
0.434343
0.065099
0.101266
0.130199
0.734177
0.734177
0.575045
0.575045
0.575045
0.575045
0
0.056358
0.295316
982
33
74
29.757576
0.742775
0.045825
0
0.592593
1
0
0.135829
0.049198
0
0
0
0
0
1
0
false
0
0.037037
0
0.148148
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7df69847b16a72c401c8d03768fb93c74d01b5c9
2,114
py
Python
morepath/tests/test_method_directive.py
DuncanBetts/morepath
acad10489b051df9c512f6735a9338854745a599
[ "BSD-3-Clause" ]
null
null
null
morepath/tests/test_method_directive.py
DuncanBetts/morepath
acad10489b051df9c512f6735a9338854745a599
[ "BSD-3-Clause" ]
null
null
null
morepath/tests/test_method_directive.py
DuncanBetts/morepath
acad10489b051df9c512f6735a9338854745a599
[ "BSD-3-Clause" ]
null
null
null
import morepath from webtest import TestApp as Client def test_implicit_function(): class app(morepath.App): @morepath.dispatch_method() def one(self): return "Default one" @morepath.dispatch_method() def two(self): return "Default two" @app.path(path=...
21.793814
72
0.580889
269
2,114
4.453532
0.178439
0.066778
0.073456
0.083472
0.488314
0.440735
0.440735
0.327212
0.233723
0.178631
0
0.001329
0.288079
2,114
96
73
22.020833
0.794684
0
0
0.471429
0
0
0.082308
0
0
0
0
0
0.042857
1
0.271429
false
0.042857
0.028571
0.2
0.6
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
7dfb15185b5928b42e0c69caa80b31116a8fea1a
1,715
py
Python
saleor/order/migrations/0072_django_price_2.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
19
2019-12-03T17:28:07.000Z
2021-09-10T21:30:52.000Z
saleor/order/migrations/0072_django_price_2.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
51
2019-12-06T08:06:07.000Z
2021-05-06T02:10:50.000Z
saleor/order/migrations/0072_django_price_2.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
20
2020-02-03T00:38:59.000Z
2022-01-03T13:07:52.000Z
# Generated by Django 2.2.4 on 2019-08-14 09:13 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("order", "0071_order_gift_cards")] operations = [ migrations.RenameField( model_name="order", old...
31.181818
85
0.58484
168
1,715
5.619048
0.279762
0.076271
0.165254
0.190678
0.617585
0.617585
0.611229
0.595339
0.595339
0.349576
0
0.016253
0.318367
1,715
54
86
31.759259
0.791275
0.026239
0
0.666667
1
0
0.18705
0.070144
0
0
0
0
0
1
0
false
0
0.041667
0
0.104167
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
b40ee079a577a77555888197b34380d7e63acfd3
517
py
Python
src/waldur_mastermind/notifications/migrations/0002_json_field.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
2
2017-01-20T15:26:25.000Z
2017-08-03T04:38:08.000Z
src/waldur_mastermind/notifications/migrations/0002_json_field.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
src/waldur_mastermind/notifications/migrations/0002_json_field.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2022-01-31 14:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notifications', '0001_initial'), ] operations = [ migrations.AlterField( model_name='notification', name='emails', ...
21.541667
45
0.560928
46
517
6.23913
0.673913
0.139373
0.174216
0.202091
0.313589
0.313589
0
0
0
0
0
0.051576
0.324952
517
23
46
22.478261
0.770774
0.083172
0
0.470588
1
0
0.127119
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
b4148b82caffcb3d401203b514031ef55ddaf4b5
1,279
py
Python
CodigoSOLID.py
JhonGalarza/SOLID
5ee45f136a24cb2300837c8ed89accdc2f299c83
[ "MIT" ]
null
null
null
CodigoSOLID.py
JhonGalarza/SOLID
5ee45f136a24cb2300837c8ed89accdc2f299c83
[ "MIT" ]
null
null
null
CodigoSOLID.py
JhonGalarza/SOLID
5ee45f136a24cb2300837c8ed89accdc2f299c83
[ "MIT" ]
null
null
null
#DATOS DE ENTRADA ANIMAL= int(input("¿De cual animal quiere conocer la caracteristicas? 1.Leon 2.Ballena 3.Tucan? ")) class Animal: def __init__(self, ANIMAL): self.ANIMAL = ANIMAL def acciones_comun(): comun = "Comer" return comun def sentido_vista(): vista = ...
24.596154
120
0.620797
152
1,279
5.125
0.388158
0.056483
0.092426
0.115533
0.186136
0.12837
0
0
0
0
0
0.006659
0.295543
1,279
52
121
24.596154
0.856826
0.01251
0
0.236842
0
0
0.252475
0
0
0
0
0
0
1
0.236842
false
0
0
0.052632
0.631579
0.078947
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
b45613d6f68d15fc7e95c155cc5ae42470c0d2ab
694
py
Python
backtest/tests/test_strategy.py
Christakou/backtest
fa97f50b36a1d56fe667250169ed50a8d9121c3c
[ "MIT" ]
null
null
null
backtest/tests/test_strategy.py
Christakou/backtest
fa97f50b36a1d56fe667250169ed50a8d9121c3c
[ "MIT" ]
null
null
null
backtest/tests/test_strategy.py
Christakou/backtest
fa97f50b36a1d56fe667250169ed50a8d9121c3c
[ "MIT" ]
null
null
null
import pytest from backtest.strategy import BuyAndHoldEqualAllocation @pytest.fixture def strategy(): symbols = ('AAPL', 'GOOG') strategy = BuyAndHoldEqualAllocation(relevant_symbols=symbols) return strategy def test_strategy_execute(strategy): strategy.execute() assert len(strategy.holdings) > 0...
33.047619
79
0.698847
83
694
5.686747
0.361446
0.169492
0.186441
0.20339
0.190678
0.190678
0
0
0
0
0
0.087838
0.146974
694
21
80
33.047619
0.709459
0
0
0.117647
0
0
0.097842
0
0
0
0
0
0.352941
1
0.176471
false
0
0.117647
0
0.352941
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
b457086f7edbfe9899dbbd18e732ac94f61af7c3
2,798
py
Python
src/api/fundings/entities.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
2
2020-10-15T15:16:08.000Z
2020-11-06T10:41:13.000Z
src/api/fundings/entities.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
1
2020-11-14T19:40:14.000Z
2020-11-14T19:40:14.000Z
src/api/fundings/entities.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields, validate from sqlalchemy import Column, String, Integer, Float, Date, ForeignKey from sqlalchemy.orm import relationship from ..funders.entities import Funder, FunderSchema from src.api import db from src.shared.entity import Base class Funding(Base, db.Model): __tablename...
43.046154
111
0.723016
396
2,798
4.772727
0.207071
0.040741
0.075661
0.050794
0.191005
0.113757
0.077249
0
0
0
0
0.00786
0.181558
2,798
65
112
43.046154
0.817467
0.028949
0
0
0
0
0.018778
0.0081
0
0
0
0.015385
0
1
0.017544
false
0
0.105263
0
0.719298
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
b4605592d622fde2874b27f05a1e575beae84ca9
136
py
Python
Legacy/Audit_Sweep/daily_audit_cron.py
QualiSystemsLab/Power-Management
f90f5971d80f17f45c8ac3f43ff93c0071572dd0
[ "Apache-2.0" ]
null
null
null
Legacy/Audit_Sweep/daily_audit_cron.py
QualiSystemsLab/Power-Management
f90f5971d80f17f45c8ac3f43ff93c0071572dd0
[ "Apache-2.0" ]
null
null
null
Legacy/Audit_Sweep/daily_audit_cron.py
QualiSystemsLab/Power-Management
f90f5971d80f17f45c8ac3f43ff93c0071572dd0
[ "Apache-2.0" ]
null
null
null
from power_audit import PowerAudit def main(): local = PowerAudit() local.full_audit() if __name__ == '__main__': main()
13.6
34
0.661765
16
136
5
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.220588
136
9
35
15.111111
0.754717
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
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
b46a7333f1fb95d927bac95badb76d52d1539743
1,691
py
Python
boilerplate_app/serializers.py
taher-systango/DjangoUnboxed
808ab771a44564458b897b6ec854c08f43cccf2a
[ "MIT" ]
null
null
null
boilerplate_app/serializers.py
taher-systango/DjangoUnboxed
808ab771a44564458b897b6ec854c08f43cccf2a
[ "MIT" ]
null
null
null
boilerplate_app/serializers.py
taher-systango/DjangoUnboxed
808ab771a44564458b897b6ec854c08f43cccf2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals # Python imports. import logging import datetime import calendar # Django imports. from django.db import transaction # Rest Framework imports. from rest_framework import serializers # Third Party Library imports # local imports....
25.621212
91
0.686576
182
1,691
6.252747
0.406593
0.068541
0.049209
0.092267
0.205624
0.094903
0.094903
0
0
0
0
0.000738
0.198699
1,691
66
92
25.621212
0.839114
0.094619
0
0.277778
0
0
0.091864
0
0
0
0
0
0
1
0.083333
false
0.111111
0.194444
0.027778
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
b4723dbed92e900ca2787cc70a21f796a78c3f12
2,307
py
Python
tests/conftest.py
arosen93/jobflow
fbd5868394c6f4f6b4f2e0ccf4b7ff7d21fe7258
[ "BSD-3-Clause-LBNL" ]
10
2021-11-13T07:43:27.000Z
2022-03-14T11:05:15.000Z
tests/conftest.py
arosen93/jobflow
fbd5868394c6f4f6b4f2e0ccf4b7ff7d21fe7258
[ "BSD-3-Clause-LBNL" ]
69
2021-08-31T13:15:54.000Z
2022-03-31T21:43:56.000Z
tests/conftest.py
arosen93/jobflow
fbd5868394c6f4f6b4f2e0ccf4b7ff7d21fe7258
[ "BSD-3-Clause-LBNL" ]
5
2021-10-17T03:52:57.000Z
2022-03-31T00:17:20.000Z
import pytest @pytest.fixture(scope="session") def test_data(): from pathlib import Path module_dir = Path(__file__).resolve().parent test_dir = module_dir / "test_data" return test_dir.resolve() @pytest.fixture(scope="session") def database(): return "jobflow_test" @pytest.fixture(scope="ses...
20.236842
78
0.686606
268
2,307
5.716418
0.279851
0.084856
0.082245
0.081593
0.605091
0.475849
0.451044
0.420366
0.420366
0.420366
0
0
0.205028
2,307
113
79
20.415929
0.835333
0
0
0.479452
0
0
0.051149
0
0
0
0
0
0
1
0.164384
false
0.027397
0.328767
0.027397
0.60274
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
b48ab31d2b65a280be63bfbc1d367523dc945d6a
141
py
Python
Python/Least_Common_Multiple_for_large_numbers.py
DeathcallXD/DS-Algo-Point
70bc4b98fa6648cdcb2e65bccaa8b30298f14d87
[ "MIT" ]
null
null
null
Python/Least_Common_Multiple_for_large_numbers.py
DeathcallXD/DS-Algo-Point
70bc4b98fa6648cdcb2e65bccaa8b30298f14d87
[ "MIT" ]
null
null
null
Python/Least_Common_Multiple_for_large_numbers.py
DeathcallXD/DS-Algo-Point
70bc4b98fa6648cdcb2e65bccaa8b30298f14d87
[ "MIT" ]
null
null
null
def GCD(a,b): if b == 0: return a else: return GCD(b, a%b) a = int(input()) b = int(input()) print(a*b//(GCD(a,b)))
14.1
26
0.460993
27
141
2.407407
0.407407
0.123077
0.153846
0
0
0
0
0
0
0
0
0.010309
0.312057
141
9
27
15.666667
0.659794
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0.125
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
81f67189d5d5520037d53dd853b5b30e2b4a3514
23,097
py
Python
test_fiona_issue383.py
thomasaarholt/fiona-wheels
50ff76691ea4286052d552ffb67d83894742b00a
[ "MIT" ]
null
null
null
test_fiona_issue383.py
thomasaarholt/fiona-wheels
50ff76691ea4286052d552ffb67d83894742b00a
[ "MIT" ]
null
null
null
test_fiona_issue383.py
thomasaarholt/fiona-wheels
50ff76691ea4286052d552ffb67d83894742b00a
[ "MIT" ]
null
null
null
import fiona d = { "type": "Feature", "id": "0", "properties": { "ADMINFORES": "99081600010343", "REGION": "08", "FORESTNUMB": "16", "FORESTORGC": "0816", "FORESTNAME": "El Yunque National Forest", "GIS_ACRES": 55829.81, "SHAPE_AREA": 0.0193062316937,...
55.789855
61
0.50972
1,546
23,097
7.613195
0.50194
0.004333
0.004843
0.005438
0.005947
0
0
0
0
0
0
0.796774
0.371953
23,097
413
62
55.924939
0.014615
0
0
0.02445
0
0
0.00814
0
0
0
0
0
0
1
0
false
0
0.00489
0
0.00489
0.002445
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
81f8ba9bf744d6a257f9ade3faa2ce783ae335eb
2,317
py
Python
vantage6/server/model/organization.py
jaspersnel/vantage6-server
88ad40d23cc36eaba57c170929f7ccdd0011720a
[ "Apache-2.0" ]
2
2020-10-19T08:59:08.000Z
2022-03-07T10:30:21.000Z
vantage6/server/model/organization.py
jaspersnel/vantage6-server
88ad40d23cc36eaba57c170929f7ccdd0011720a
[ "Apache-2.0" ]
67
2020-04-15T09:43:31.000Z
2022-03-18T08:29:17.000Z
vantage6/server/model/organization.py
jaspersnel/vantage6-server
88ad40d23cc36eaba57c170929f7ccdd0011720a
[ "Apache-2.0" ]
2
2021-01-21T15:09:26.000Z
2021-04-19T14:58:10.000Z
import base64 from sqlalchemy import Column, String, LargeBinary from sqlalchemy.orm import relationship from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm.exc import NoResultFound from vantage6.common.globals import STRING_ENCODING from .base import Base, Database class Organization(Base): ...
30.893333
76
0.643073
247
2,317
5.878543
0.445344
0.068182
0.068871
0.022039
0
0
0
0
0
0
0
0.011223
0.269314
2,317
74
77
31.310811
0.846426
0.139404
0
0.075472
0
0
0.096232
0.022403
0
0
0
0.013514
0
1
0.075472
false
0
0.132075
0
0.584906
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
81fea7350bf3a22df6647f4ff0e42232c0fd7743
191
py
Python
spinesTS/utils/_validation.py
BirchKwok/spinesTS
b88ec333f41f58979e0570177d1fdc364d976056
[ "Apache-2.0" ]
2
2021-08-15T09:29:37.000Z
2022-03-10T13:56:13.000Z
spinesTS/utils/_validation.py
BirchKwok/spinesTS
b88ec333f41f58979e0570177d1fdc364d976056
[ "Apache-2.0" ]
null
null
null
spinesTS/utils/_validation.py
BirchKwok/spinesTS
b88ec333f41f58979e0570177d1fdc364d976056
[ "Apache-2.0" ]
null
null
null
import numpy as np def check_x_y(x, y): assert isinstance(x, np.ndarray) and isinstance(y, np.ndarray) assert np.ndim(x) <= 3 and np.ndim(y) <= 2 assert len(x) == len(y)
23.875
67
0.612565
35
191
3.285714
0.457143
0.034783
0
0
0
0
0
0
0
0
0
0.013793
0.240838
191
7
68
27.285714
0.77931
0
0
0
0
0
0
0
0
0
0
0
0.6
1
0.2
false
0
0.2
0
0.4
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
1
0
0
0
0
0
0
0
0
0
2
c304d7f7756e66ca85c0f39399c15dd4c7181588
1,329
py
Python
collegiate-explorer-admin/cc_admin/cc_admin/test.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
3
2021-05-24T23:06:40.000Z
2021-11-08T10:32:42.000Z
collegiate-explorer-admin/cc_admin/cc_admin/test.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
4
2020-10-12T03:00:43.000Z
2020-11-17T01:47:56.000Z
collegiate-explorer-admin/cc_admin/cc_admin/test.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
2
2021-03-01T15:30:26.000Z
2022-01-13T21:30:20.000Z
__author__ = 'Aaron Yang' __email__ = 'byang971@usc.edu' __date__ = '10/28/2020 4:52 PM' # import re # # # def format_qs_score(score_str): # """ # help you generate a qs score # 1 - 100 : 5 # 141-200 : 4 # =100: 4 # N/A 3 # :param score_str: # :return: # """ # score = 3 # if...
26.058824
76
0.527464
179
1,329
3.748603
0.463687
0.059613
0.071535
0.056632
0.065574
0
0
0
0
0
0
0.059511
0.291949
1,329
51
77
26.058824
0.65356
0.86155
0
0
1
0
0.321168
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c332b852b9ea902789bff01e3510374ac9b4407d
106
py
Python
variables.py
MuhweziDeo/python_refresher
0d100f88524ff780f1cee8afabfee1025c648f8b
[ "MIT" ]
null
null
null
variables.py
MuhweziDeo/python_refresher
0d100f88524ff780f1cee8afabfee1025c648f8b
[ "MIT" ]
null
null
null
variables.py
MuhweziDeo/python_refresher
0d100f88524ff780f1cee8afabfee1025c648f8b
[ "MIT" ]
null
null
null
x = 2 print(x) # multiple assignment a, b, c, d = (1, 2, 5, 9) print(a, b, c, d) print(type(str(a)))
8.833333
25
0.528302
23
106
2.434783
0.608696
0.071429
0.107143
0.142857
0
0
0
0
0
0
0
0.0625
0.245283
106
11
26
9.636364
0.6375
0.179245
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
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
0
1
0
2
c337200f464a7d012b7b952e50ed5709111473ef
7,996
py
Python
cradlepy/framework/http.py
cblanquera/cradlepy
1634fe38a0cc58f92dbfc2b0c84ace9d16821c3c
[ "MIT" ]
null
null
null
cradlepy/framework/http.py
cblanquera/cradlepy
1634fe38a0cc58f92dbfc2b0c84ace9d16821c3c
[ "MIT" ]
null
null
null
cradlepy/framework/http.py
cblanquera/cradlepy
1634fe38a0cc58f92dbfc2b0c84ace9d16821c3c
[ "MIT" ]
null
null
null
from .request import Request from .response import Response class HttpRequestCookieTrait: 'Designed for the Request Object; Adds methods to store COOKIE data' def get_cookies(self, *args): 'Returns COOKIE given name or all COOKIE' return self.get('cookie', *args) def remove_cookies(self,...
23.380117
83
0.617184
999
7,996
4.888889
0.131131
0.045864
0.033784
0.031532
0.454955
0.403767
0.361589
0.287879
0.247748
0.137797
0
0.000715
0.30065
7,996
341
84
23.44868
0.872675
0.325913
0
0.337553
0
0
0.326032
0
0
0
0
0.002933
0
1
0.240506
false
0.198312
0.008439
0
0.421941
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
c3386296bb9f34b0112bf5ce7c89306471d38bbf
4,311
py
Python
conjuntos.py
Tiesco789/guppe
464702a2d618e149439a9b5c763f82c5376d2c32
[ "MIT" ]
null
null
null
conjuntos.py
Tiesco789/guppe
464702a2d618e149439a9b5c763f82c5376d2c32
[ "MIT" ]
null
null
null
conjuntos.py
Tiesco789/guppe
464702a2d618e149439a9b5c763f82c5376d2c32
[ "MIT" ]
null
null
null
""" Conjuntos — Conjunto em qualquer linguagem de programação, estamos fazendo referência à teoria de conjuntos da matemática — Aqui no Python, os conjuntos são chamados de sets Dito isto, da mesma forma que na matemática: — Sets (conjuntos) não possuem valores duplicados; — Sets (conjuntos) não possuem valores ordena...
27.812903
140
0.740895
662
4,311
4.808157
0.353474
0.01885
0.004713
0.005027
0.178448
0.099906
0.042727
0
0
0
0
0.02114
0.166087
4,311
154
141
27.993506
0.862309
0.997448
0
null
0
null
0
0
null
0
0
0.006494
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
c34deabfbf09d812a3e974c9b52d0665996b8dda
1,095
py
Python
apps/cars/tests/api/abstract/abstract_base_api_test.py
agorsk1/car-rating-app
354c5933f4cbad69c9a57d1839f9086cd5cf9a1d
[ "MIT" ]
1
2022-03-03T11:15:25.000Z
2022-03-03T11:15:25.000Z
apps/cars/tests/api/abstract/abstract_base_api_test.py
agorsk1/car-rating-app
354c5933f4cbad69c9a57d1839f9086cd5cf9a1d
[ "MIT" ]
null
null
null
apps/cars/tests/api/abstract/abstract_base_api_test.py
agorsk1/car-rating-app
354c5933f4cbad69c9a57d1839f9086cd5cf9a1d
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from django.test import TestCase from rest_framework.generics import GenericAPIView from rest_framework.test import APIRequestFactory from apps.cars.factory import UserFactory class AbstractBaseTest(object): class AbstractBaseApiTestCase(TestCase, ABC): """ A...
29.594595
72
0.621918
108
1,095
6.203704
0.444444
0.035821
0.050746
0
0
0
0
0
0
0
0
0
0.286758
1,095
36
73
30.416667
0.857875
0.177169
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.190476
false
0.142857
0.238095
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
1
0
0
1
0
0
2
c3556300b12020a7a08798e9741d8eecbab08f07
1,555
py
Python
circuitpython/schedule.py
Flameeyes/birch-books-smarthome
245a8afc848b2a8cf4dbcde31b36716b44937200
[ "MIT" ]
null
null
null
circuitpython/schedule.py
Flameeyes/birch-books-smarthome
245a8afc848b2a8cf4dbcde31b36716b44937200
[ "MIT" ]
null
null
null
circuitpython/schedule.py
Flameeyes/birch-books-smarthome
245a8afc848b2a8cf4dbcde31b36716b44937200
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: © 2020 The birch-books-smarthome Authors # SPDX-License-Identifier: MIT BOOKSTORE_GROUND_FLOOR = 0x0007 BOOKSTORE_FIRST_FLOOR = 0x0008 BOOKSTORE_TERRARIUM = 0x0010 BOOKSTORE_BEDROOM = 0x0020 HOUSE_BASEMENT = 0x0040 HOUSE_GROUND_FLOOR = 0x0380 HOUSE_BEDROOM_LIGHT = 0x0400 HOUSE_BEDROOM_LAMP = ...
33.804348
87
0.803859
178
1,555
6.505618
0.213483
0.142487
0.303109
0.248705
0.576857
0.576857
0.553541
0.497409
0.353195
0.353195
0
0.045249
0.147267
1,555
45
88
34.555556
0.8273
0.059807
0
0.225
0
0
0
0
0
0
0.041124
0
0
1
0
false
0
0
0
0
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
c3565453ab31565d1b32ad8f383deec201854e66
1,563
py
Python
services/smtp.py
sourceperl/docker.mqttwarn
9d87337f766843c8bdee34eba8d29776e7032009
[ "MIT" ]
null
null
null
services/smtp.py
sourceperl/docker.mqttwarn
9d87337f766843c8bdee34eba8d29776e7032009
[ "MIT" ]
null
null
null
services/smtp.py
sourceperl/docker.mqttwarn
9d87337f766843c8bdee34eba8d29776e7032009
[ "MIT" ]
2
2016-09-03T09:12:17.000Z
2020-03-03T11:58:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Jan-Piet Mens <jpmens()gmail.com>' __copyright__ = 'Copyright 2014 Jan-Piet Mens' __license__ = """Eclipse Public License - v 1.0 (http://www.eclipse.org/legal/epl-v10.html)""" import smtplib from email.mime.text import MIMEText def plugin(srv, item): ...
33.978261
124
0.621241
187
1,563
5.069519
0.481283
0.068565
0.047468
0.072785
0.052743
0.052743
0
0
0
0
0
0.008333
0.232246
1,563
45
125
34.733333
0.781667
0.026871
0
0
0
0.029412
0.250165
0
0
0
0
0
0
0
null
null
0.058824
0.058824
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
c35c0c54bc5945e22f05841e1485001ae7177f54
2,984
py
Python
scripts/convert_to_singlehead.py
Lollipop321/mini-decoder-network
cfdaba579b45cba1d181585e5430178c1dc60049
[ "BSD-3-Clause" ]
1
2021-09-18T05:07:38.000Z
2021-09-18T05:07:38.000Z
scripts/convert_to_singlehead.py
Lollipop321/mini-decoder-network
cfdaba579b45cba1d181585e5430178c1dc60049
[ "BSD-3-Clause" ]
null
null
null
scripts/convert_to_singlehead.py
Lollipop321/mini-decoder-network
cfdaba579b45cba1d181585e5430178c1dc60049
[ "BSD-3-Clause" ]
1
2021-12-24T13:05:02.000Z
2021-12-24T13:05:02.000Z
import torch import math import time import struct import argparse import numpy as np from collections import OrderedDict if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-model', required=True, help="trained model prefix, also include dir, e.g. ../data/model-100") args =...
45.907692
146
0.560657
393
2,984
4.030534
0.208651
0.121212
0.20202
0.239899
0.585859
0.554293
0.546717
0.546717
0.541667
0.541667
0
0.023685
0.29256
2,984
65
147
45.907692
0.72667
0.011394
0
0.259259
0
0
0.094947
0.038318
0
0
0
0
0.111111
1
0
false
0
0.12963
0
0.12963
0.018519
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
c360b0127afead19c24d728369419544803b4819
2,191
py
Python
Modulo_5/proyecto/presentacion/form_ubicacion/formAUbicacion_designer.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/proyecto/presentacion/form_ubicacion/formAUbicacion_designer.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/proyecto/presentacion/form_ubicacion/formAUbicacion_designer.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import tkinter as tk import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from pandastable import Table import util.generic as utl class FormUbicacionDesigner(tk.Toplevel): def __init__(self): super().__init__() def initialize_component(self): ...
41.339623
137
0.645824
253
2,191
5.407115
0.351779
0.065789
0.095029
0.160819
0.341374
0.225877
0.225877
0.225877
0.225877
0.17617
0
0.030432
0.250114
2,191
52
138
42.134615
0.802191
0
0
0
0
0
0.036057
0
0
0
0
0
0
1
0.216216
false
0
0.135135
0
0.378378
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
c36ce52f1b69aad8e3b2676523c1755292c1c03c
29,068
py
Python
src/flower/proto/transport_pb2.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
null
null
null
src/flower/proto/transport_pb2.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
null
null
null
src/flower/proto/transport_pb2.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
1
2020-06-01T11:06:18.000Z
2020-06-01T11:06:18.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: flower/proto/transport.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection a...
39.494565
2,507
0.762901
3,395
29,068
6.218851
0.074816
0.037134
0.044759
0.047933
0.722777
0.663335
0.595036
0.577275
0.532516
0.527969
0
0.032427
0.115213
29,068
735
2,508
39.548299
0.788483
0.041695
0
0.631501
1
0.001486
0.224665
0.170061
0
0
0
0
0
1
0
false
0
0.007429
0
0.007429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c382afee49a8dcf277085e3abd2845bbc944eef7
5,838
py
Python
equatation.py
asteinig4018/mhacks19
64b5ba211f38f3b30927bf926073b777fb23a46f
[ "MIT" ]
1
2019-10-12T21:30:15.000Z
2019-10-12T21:30:15.000Z
equatation.py
asteinig4018/mhacks19
64b5ba211f38f3b30927bf926073b777fb23a46f
[ "MIT" ]
null
null
null
equatation.py
asteinig4018/mhacks19
64b5ba211f38f3b30927bf926073b777fb23a46f
[ "MIT" ]
null
null
null
import json import math from HistoricalTweetDataFetcher import getHistoricalData joelsarray = getHistoricalData(0) arrs = [] arrm = [] arrp = [] arrsTotal = 0 arrmTotal = 0 ncount = 0 ccount = 0 lcount = 0 time = joelsarray[0]["h"] for dictionary in joelsarray: arrs.append(dictionary["s"]) arrm...
39.714286
198
0.604488
589
5,838
5.971138
0.2309
0.280921
0.184817
0.029571
0.495309
0.467444
0.467444
0.467444
0.467444
0.467444
0
0.030517
0.174889
5,838
146
199
39.986301
0.699606
0.039054
0
0.411215
0
0
0.197736
0.005075
0
0
0
0
0
1
0.009346
false
0
0.028037
0
0.046729
0.037383
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
5ee2508b1563859bc37a102d678ee13eb3c4fb40
3,496
py
Python
py_include/__init__.py
mauro-balades/py-include
d2d3b90fc840a550a49d76798bc8a97b076480d8
[ "MIT" ]
2
2022-01-30T13:23:22.000Z
2022-01-31T10:23:46.000Z
py_include/__init__.py
mauro-balades/py-include
d2d3b90fc840a550a49d76798bc8a97b076480d8
[ "MIT" ]
null
null
null
py_include/__init__.py
mauro-balades/py-include
d2d3b90fc840a550a49d76798bc8a97b076480d8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ | --------------------- Py include <Mauro Baladés> --------------------- | ___ _ _ _ __ _ _ ___ ____ | | |_) \ \_/ | | | |\ | / /` | | | | | | | \ | |_ | |_| |_| |_| |_| \| \_\_, |_|__ \_\_/ |_|_/ |_|__ | -----------------------------------------...
33.295238
80
0.65246
510
3,496
4.370588
0.405882
0.03948
0.030507
0.018843
0
0
0
0
0
0
0
0.001863
0.232265
3,496
104
81
33.615385
0.828614
0.810069
0
0
0
0
0.06734
0
0
0
0
0
0
1
0.166667
false
0.111111
0.111111
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
0
0
1
0
0
0
0
0
2
5ee68ea9e8a99cf09e7e6d0ca6ce334ef983ef7f
4,724
py
Python
model_compression_toolkit/common/graph/graph_matchers.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
model_compression_toolkit/common/graph/graph_matchers.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
model_compression_toolkit/common/graph/graph_matchers.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Sony Semiconductors Israel, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
31.704698
108
0.650296
583
4,724
5.113208
0.262436
0.040255
0.050319
0.028514
0.247903
0.146595
0.123784
0.088561
0.037571
0.037571
0
0.003188
0.269687
4,724
148
109
31.918919
0.86087
0.541702
0
0.2
0
0
0
0
0
0
0
0
0
1
0.266667
false
0.033333
0.1
0
0.633333
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
5eeb79ff59fe8c898948a4d629f95025dddf840d
1,843
py
Python
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
42.860465
78
0.72382
153
1,843
8.69281
0.437909
0.009023
0.021053
0
0
0
0
0
0
0
0
0
0.130222
1,843
42
79
43.880952
0.829694
0.307651
0
0
0
0
0.222311
0.0749
0
0
0
0
0
1
0
false
0
0.76
0
0.76
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
5eefaff8065c5ecea5f5a36834a9168d04d5bd4e
2,403
py
Python
screenblankmgr.py
nsw42/pijuui
fee9b96ceaab6b4f5db7ea41cb86da9a1a3b9eac
[ "BSD-2-Clause" ]
1
2021-12-20T15:02:54.000Z
2021-12-20T15:02:54.000Z
screenblankmgr.py
nsw42/pijuui
fee9b96ceaab6b4f5db7ea41cb86da9a1a3b9eac
[ "BSD-2-Clause" ]
null
null
null
screenblankmgr.py
nsw42/pijuui
fee9b96ceaab6b4f5db7ea41cb86da9a1a3b9eac
[ "BSD-2-Clause" ]
null
null
null
import logging import subprocess class PlayingState: Inactive = 0 Active = 1 class ProfileBase: def __init__(self): raise NotImplementedError() def on_start_playing(self): raise NotImplementedError() def on_stop_playing(self): raise NotImplementedError() def on_pla...
22.669811
94
0.615481
263
2,403
5.307985
0.205323
0.04298
0.039398
0.060888
0.41404
0.338825
0.234241
0.192693
0.192693
0.192693
0
0.009959
0.289638
2,403
105
95
22.885714
0.80785
0.018727
0
0.452055
0
0
0.01671
0
0
0
0
0
0
1
0.273973
false
0.09589
0.027397
0
0.410959
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
5ef50480947622fa6c85f38cc28d083417268f20
351
py
Python
apps/snippet/admin.py
AniPython/ani
2536ac9ddae2b8396b634f982fb1083339b4a389
[ "MIT" ]
null
null
null
apps/snippet/admin.py
AniPython/ani
2536ac9ddae2b8396b634f982fb1083339b4a389
[ "MIT" ]
null
null
null
apps/snippet/admin.py
AniPython/ani
2536ac9ddae2b8396b634f982fb1083339b4a389
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Tag, Article @admin.register(Tag) class TagAdmin(admin.ModelAdmin): list_display = ('name', 'order') list_editable = ('order',) @admin.register(Article) class ArticleAdmin(admin.ModelAdmin): list_display = ['title', 'author'] readonly_fields = ['...
19.5
52
0.709402
41
351
5.926829
0.609756
0.106996
0.156379
0.213992
0
0
0
0
0
0
0
0
0.150997
351
17
53
20.647059
0.815436
0
0
0
0
0
0.13467
0
0
0
0
0
0
1
0
false
0
0.2
0
0.8
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
5ef67226c4fddb4ea740eed126e252d451b1063d
1,326
py
Python
test/functional/test_framework/script_util.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
1,389
2017-06-28T02:35:01.000Z
2022-03-25T20:09:01.000Z
test/functional/test_framework/script_util.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
1,039
2015-03-25T23:58:32.000Z
2022-03-30T00:41:16.000Z
test/functional/test_framework/script_util.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
564
2017-06-28T03:55:03.000Z
2022-03-30T14:57:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Useful Script constants and utils.""" from test_framework.script import CScript # To prevent a "tx-size-sma...
51
84
0.737557
212
1,326
4.575472
0.584906
0.024742
0.018557
0.020619
0
0
0
0
0
0
0
0.03539
0.168929
1,326
25
85
53.04
0.844828
0.898944
0
0
0
0
0.009259
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
5eff513cdc7ff514a20abc942fb429679a31b4d7
95
py
Python
12_find the output/03_In Python/01_GeeksForGeeks/05_Set Five/problem_4.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
1
2021-11-16T14:14:38.000Z
2021-11-16T14:14:38.000Z
12_find the output/03_In Python/01_GeeksForGeeks/05_Set Five/problem_4.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
null
null
null
12_find the output/03_In Python/01_GeeksForGeeks/05_Set Five/problem_4.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
null
null
null
def gfg(x,l = []): for i in range(x): l.append(i*i) print(l) gfg(2) gfg(3,[3,2,1]) gfg(3)
10.555556
19
0.526316
24
95
2.083333
0.541667
0.08
0
0
0
0
0
0
0
0
0
0.077922
0.189474
95
8
20
11.875
0.571429
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.142857
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
6f0bf095397f81c3ceab712d5eed93ca0139a752
1,319
py
Python
i_vis/core/login.py
piechottam/i-vis-core
0b90300d1ae8b96d28a80802c1300dd861ad6f4e
[ "MIT" ]
null
null
null
i_vis/core/login.py
piechottam/i-vis-core
0b90300d1ae8b96d28a80802c1300dd861ad6f4e
[ "MIT" ]
null
null
null
i_vis/core/login.py
piechottam/i-vis-core
0b90300d1ae8b96d28a80802c1300dd861ad6f4e
[ "MIT" ]
null
null
null
""" Flask LoginManager plugin. Import and execute ``login.init_app(app)`` in a factory function to use. """ from typing import Any, Callable, TYPE_CHECKING from functools import wraps from flask import redirect, request, url_for, current_app from flask_login import current_user from flask_login.login_manager import...
25.862745
72
0.686884
163
1,319
5.404908
0.478528
0.049943
0.044268
0.036322
0.095346
0
0
0
0
0
0
0
0.230478
1,319
50
73
26.38
0.86798
0.244124
0
0
0
0
0.034375
0
0
0
0
0.02
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
1
0
0
0
0
0
1
0
0
0
0
2
6f0fd9711f448e832198d3798ba9ecf322599507
680
py
Python
src/M5_random_module.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
src/M5_random_module.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
src/M5_random_module.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
import random # use of the random module print(random.random()) # a float value >= 0.0 and < 1.0 print(random.random()*100) # a float value >= 0.0 and < 100.0 # use of the randint method print(random.randint(1, 100)) # an int from 1 to 100 print(random.randint(101, 200)) # an int from 101 to 2...
35.789474
73
0.627941
119
680
3.588235
0.310924
0.206089
0.084309
0.056206
0.149883
0.149883
0.074941
0
0
0
0
0.148148
0.245588
680
18
74
37.777778
0.684211
0.364706
0
0
0
0
0.026128
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.75
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
6f484367a2e17cf732eb810bd88c47b5caccd1c1
166
py
Python
app/src/constants.py
hubacekjirka/dailyPhotoTwitterBot
abd490b73603883d4e71bfa6076e9925a055fcb7
[ "MIT" ]
1
2020-03-16T10:51:07.000Z
2020-03-16T10:51:07.000Z
app/src/constants.py
hubacekjirka/dailyPhotoTwitterBot
abd490b73603883d4e71bfa6076e9925a055fcb7
[ "MIT" ]
6
2019-08-11T10:00:36.000Z
2021-06-02T00:18:58.000Z
app/src/constants.py
hubacekjirka/dailyPhotoTwitterBot
abd490b73603883d4e71bfa6076e9925a055fcb7
[ "MIT" ]
2
2019-09-30T18:45:47.000Z
2021-01-09T10:38:14.000Z
friendly_camera_mapping = { "GM1913": "Oneplus 7 Pro", "FC3170": "Mavic Air 2", # An analogue scanner in FilmNeverDie "SP500": "Canon AE-1 Program" }
23.714286
41
0.638554
21
166
4.952381
1
0
0
0
0
0
0
0
0
0
0
0.109375
0.228916
166
6
42
27.666667
0.703125
0.210843
0
0
0
0
0.457364
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
6f6c2c1c13418649733376c632ea6395a15039ac
857
py
Python
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #223. Rectangle Area #Find the total area covered by two rectilinear rectangles in a 2D plane. #Each rectangle is defined by its bottom left corner and to...
32.961538
98
0.655776
128
857
4.390625
0.625
0.087189
0.046263
0
0
0
0
0
0
0
0
0.006319
0.261377
857
26
99
32.961538
0.881517
0.942824
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
489780fa9ccacfe9a097c426e6e4d2cf96e01913
163
py
Python
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
# https://codegolf.stackexchange.com/a/11480 multiplication = [] for i in range(10): multiplication.append(i * (i + 1)) for x in multiplication: print(x)
20.375
44
0.680982
23
163
4.826087
0.695652
0
0
0
0
0
0
0
0
0
0
0.059259
0.171779
163
8
45
20.375
0.762963
0.257669
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
48acd263a6439030b9241f1881827f94f5753592
677
py
Python
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
1
2021-11-10T15:24:36.000Z
2021-11-10T15:24:36.000Z
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
12
2020-01-15T00:19:41.000Z
2021-05-11T14:52:04.000Z
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
2
2015-01-31T11:51:06.000Z
2015-01-31T21:29:19.000Z
"""Linux-specific code""" from pysyte.types import paths def xdg_home(): """path to $XDG_CONFIG_HOME >>> assert xdg_home() == paths.path('~/.config').expand() """ return paths.environ_path("XDG_CONFIG_HOME", "~/.config") def xdg_home_config(filename): """path to that file in $XDG_CONFIG_HOME ...
19.911765
79
0.660266
90
677
4.7
0.355556
0.099291
0.092199
0.089835
0.122931
0.122931
0
0
0
0
0
0
0.174298
677
33
80
20.515152
0.756708
0.360414
0
0
0
0
0.238579
0
0
0
0
0
0
1
0.363636
false
0
0.090909
0.090909
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
1
0
0
0
0
1
0
0
2
48b3cc7ab2adb8652b3ac164a64a50173d354d2a
4,759
py
Python
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
10
2020-01-05T19:33:33.000Z
2022-02-04T14:56:09.000Z
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
1
2019-12-18T15:16:44.000Z
2019-12-18T15:16:44.000Z
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
6
2019-12-18T14:45:37.000Z
2021-09-13T12:48:28.000Z
# -------------------------------------------------------------------------------------------------- # Copyright (c) 2018 Microsoft Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Software"), to deal in the Softw...
36.328244
100
0.65497
566
4,759
5.314488
0.325088
0.045878
0.039894
0.019947
0.150931
0.150931
0.132314
0.09641
0.09641
0.09641
0
0.002479
0.237025
4,759
130
101
36.607692
0.825943
0.519647
0
0.136364
0
0
0.010547
0.010547
0
0
0
0
0.068182
1
0.227273
false
0
0.090909
0.068182
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
48d7564242b45a65bf822b185e1203ecbd2093a0
773
py
Python
3 assignment/number_of_digits_unitest.py
nastae/programavimas_python
7e65ad834c5f52e146fb5fcd0408b344545dc30e
[ "Apache-2.0" ]
null
null
null
3 assignment/number_of_digits_unitest.py
nastae/programavimas_python
7e65ad834c5f52e146fb5fcd0408b344545dc30e
[ "Apache-2.0" ]
null
null
null
3 assignment/number_of_digits_unitest.py
nastae/programavimas_python
7e65ad834c5f52e146fb5fcd0408b344545dc30e
[ "Apache-2.0" ]
null
null
null
import unittest def number_of_digits(s): return sum(c.isdigit() for c in s) # Parašykite funkcijai X unittest'us class Test(unittest.TestCase): def test_only_digits(self): s = "123456789" self.assertEqual(number_of_digits(s), 9) def test_only_letters(self): s = "abcdef" s...
24.935484
48
0.65718
102
773
4.647059
0.382353
0.101266
0.177215
0.189873
0.35443
0.35443
0.291139
0.160338
0.160338
0
0
0.048333
0.223803
773
30
49
25.766667
0.741667
0.043984
0
0.190476
0
0
0.085482
0
0
0
0
0
0.238095
1
0.285714
false
0
0.047619
0.047619
0.428571
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
48ebc333c8d0ba26cd1d7f0f9c59510601ab4ec4
1,788
py
Python
cloudkitty/rating/hash/controllers/root.py
wanghuiict/cloudkitty
11ff713042eb0354f497f7051130630c46860735
[ "Apache-2.0" ]
97
2015-10-18T02:53:17.000Z
2022-03-07T05:15:39.000Z
cloudkitty/rating/hash/controllers/root.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
1
2017-11-29T15:39:27.000Z
2017-11-29T15:39:27.000Z
cloudkitty/rating/hash/controllers/root.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
54
2015-10-27T10:55:02.000Z
2022-02-18T08:23:19.000Z
# -*- coding: utf-8 -*- # Copyright 2015 Objectif Libre # # 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 ...
38.042553
78
0.758949
226
1,788
5.924779
0.517699
0.073189
0.089619
0.107543
0.182226
0.162061
0.131441
0
0
0
0
0.006069
0.170582
1,788
46
79
38.869565
0.896831
0.39877
0
0
0
0
0.007619
0
0
0
0
0
0
1
0.047619
false
0
0.428571
0
0.857143
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
48edd7f48e568a644eaeb1b10b708e137aa7c9cf
433
py
Python
src/OTLMOW/OEFModel/Classes/Wilddet.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OEFModel/Classes/Wilddet.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OEFModel/Classes/Wilddet.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OEFModel.EMObject import EMObject # Generated with OEFClassCreator. To modify: extend, do not edit class Wilddet(EMObject): """Een wilddetectiesysteem zal de weggebruikers waarschuwen bij de aanwezigheid van eventueel overstekend wild""" typeURI = 'https://lgc.data.wegenenverkeer.b...
28.866667
117
0.745958
50
433
6.3
0.88
0
0
0
0
0
0
0
0
0
0
0.002747
0.159353
433
14
118
30.928571
0.862637
0.424942
0
0
1
0
0.315353
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
48f3e0cd5e4cb55eec34f20d3487909f95548f7a
1,418
py
Python
utipy/array/blend.py
LudvigOlsen/utipy
c287f7eed15b3591118bba49ecdfc2b2605f59a0
[ "MIT" ]
null
null
null
utipy/array/blend.py
LudvigOlsen/utipy
c287f7eed15b3591118bba49ecdfc2b2605f59a0
[ "MIT" ]
1
2022-02-16T15:24:33.000Z
2022-02-16T15:24:33.000Z
utipy/array/blend.py
LudvigOlsen/utipy
c287f7eed15b3591118bba49ecdfc2b2605f59a0
[ "MIT" ]
null
null
null
""" @author: ludvigolsen """ from typing import Union import numpy as np import pandas as pd from utipy.utils.check_instance import check_instance from utipy.utils.convert_to_type import convert_to_type def blend(x1: Union[list, np.ndarray, pd.Series], x2: Union[list, np.ndarray, pd.Series], amount: float = 0.5) -> ...
24.448276
149
0.608604
209
1,418
4.057416
0.344498
0.084906
0.091981
0.106132
0.222877
0.148585
0
0
0
0
0
0.054808
0.266573
1,418
57
150
24.877193
0.760577
0.51481
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.454545
0
0.636364
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
48f9216cd7b0c9c64c3f0cc8145822d20126a1a1
572
py
Python
python/random-videogame-generator.py
iamashiq/Hacktoberfest2021-2
9823996e9e97a25fcf70abc6fd6c55e4b60da568
[ "MIT" ]
6
2021-10-04T07:57:24.000Z
2021-11-15T13:35:21.000Z
python/random-videogame-generator.py
iamashiq/Hacktoberfest2021-2
9823996e9e97a25fcf70abc6fd6c55e4b60da568
[ "MIT" ]
2
2021-10-14T16:55:50.000Z
2021-10-31T12:17:20.000Z
python/random-videogame-generator.py
iamashiq/Hacktoberfest2021-2
9823996e9e97a25fcf70abc6fd6c55e4b60da568
[ "MIT" ]
33
2021-10-03T05:00:58.000Z
2021-11-05T19:49:19.000Z
print("Are you trying to find new videogames to play?") print("let me help you!") print("do you like shooting games, yes or no") shooting=input() if shooting = "yes" print("do you like battle royale games?") br=input() if br="yes" print("you should try out call of duty!") else if br="no" print("...
30.105263
55
0.636364
93
572
3.913978
0.419355
0.057692
0.082418
0.115385
0
0
0
0
0
0
0
0.002288
0.236014
572
18
56
31.777778
0.830664
0
0
0
0
0
0.506993
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
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
48fb1aa9e5e10603d8a878537cb85772b452f285
468
py
Python
iot/iot_portal/doctype/iot_homepage/iot_homepage.py
srdgame/symlink_iot
6ec524498cccaf2f49f7264a3b284a8956bd430c
[ "MIT" ]
4
2017-09-26T09:21:19.000Z
2021-12-22T10:26:36.000Z
iot/iot_portal/doctype/iot_homepage/iot_homepage.py
srdgame/symlink_iot
6ec524498cccaf2f49f7264a3b284a8956bd430c
[ "MIT" ]
1
2017-11-21T20:53:10.000Z
2017-12-11T02:17:06.000Z
iot/iot_portal/doctype/iot_homepage/iot_homepage.py
srdgame/symlink_iot
6ec524498cccaf2f49f7264a3b284a8956bd430c
[ "MIT" ]
9
2017-03-17T04:12:22.000Z
2022-03-21T09:33:11.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Dirk Chang and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.website.utils import delete_page_cache class IOTHomepage(Document): def validate(sel...
31.2
84
0.782051
65
468
5.461538
0.692308
0.056338
0.084507
0
0
0
0
0
0
0
0
0.012315
0.132479
468
14
85
33.428571
0.862069
0.25
0
0
0
0
0.167147
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
48fb52f8c130468ec6ba0fdb93a761de09a44b65
368
py
Python
src/garage/envs/env_spec.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
2
2020-03-15T14:35:15.000Z
2021-02-15T16:38:00.000Z
src/garage/envs/env_spec.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
null
null
null
src/garage/envs/env_spec.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
1
2020-02-24T03:04:23.000Z
2020-02-24T03:04:23.000Z
"""EnvSpec class.""" class EnvSpec: """EnvSpec class. Args: observation_space (akro.Space): The observation space of the env. action_space (akro.Space): The action space of the env. """ def __init__(self, observation_space, action_space): self.observation_space = observation...
23
73
0.668478
44
368
5.318182
0.295455
0.34188
0.119658
0.145299
0
0
0
0
0
0
0
0
0.236413
368
15
74
24.533333
0.83274
0.451087
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
48fc04ddecaf2a0349002da2c688a1f9e69caacb
105
py
Python
exercises/exe41 - 50/exe047.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
exercises/exe41 - 50/exe047.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
exercises/exe41 - 50/exe047.py
thomas-rohde/Classes-Python
f862995510b7aabf68bc14aecf815f597034d8a1
[ "MIT" ]
null
null
null
t = int(input('Digite um nº: ')) for t0 in range(1, 11): print('{} X {} = {}'.format(t, t0, t * t0))
26.25
47
0.495238
19
105
2.736842
0.789474
0.115385
0
0
0
0
0
0
0
0
0
0.074074
0.228571
105
3
48
35
0.567901
0
0
0
0
0
0.247619
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
48fe1f175aa02923066c86fda95e2c0081a49955
98,484
py
Python
pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-DIAMETER-BASE-PROTOCOL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-DIAMETER-BASE-PROTOCOL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DIAMETER-BASE-PROTOCOL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:54:20 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Pyt...
174.617021
9,504
0.799176
10,960
98,484
7.181022
0.080018
0.05123
0.089652
0.00925
0.532934
0.395952
0.348038
0.32654
0.284789
0.274675
0
0.043887
0.084024
98,484
563
9,505
174.927176
0.828576
0.003635
0
0.023466
0
0.084838
0.383573
0.108941
0
0
0
0
0
1
0
false
0
0.016245
0
0.016245
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
48ff11c606361c503d4ae242b33d2e5d2c9cf908
1,337
py
Python
py_build/funcs.py
Aesonus/py-build
790a750492b0f6ecd52f6f564d3aa4522e255406
[ "MIT" ]
null
null
null
py_build/funcs.py
Aesonus/py-build
790a750492b0f6ecd52f6f564d3aa4522e255406
[ "MIT" ]
null
null
null
py_build/funcs.py
Aesonus/py-build
790a750492b0f6ecd52f6f564d3aa4522e255406
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Callable, Sequence, TYPE_CHECKING import functools if TYPE_CHECKING: from .build import BuildStepCallable def split_step_name(name: str, new = ' ', old='_'): return name.replace(old, new).capitalize() def print_step_name(formatter=split_step_name, args: Se...
33.425
80
0.682872
162
1,337
5.419753
0.376543
0.045558
0.029613
0.059226
0.134396
0.075171
0
0
0
0
0
0
0.229619
1,337
39
81
34.282051
0.852427
0.139117
0
0.133333
0
0
0.001776
0
0
0
0
0
0
1
0.3
false
0
0.133333
0.033333
0.733333
0.133333
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
5b0f67ce020d1273d176ad58ddcab8801ec9c7f2
181
py
Python
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/RestaurantSeat.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
cantidad= input("Cuantas personas van a cenar?") cant = int(cantidad) print(cant) if cant > 8: print("Lo siento, tendran que esperar") else: print("La mesa esta lista")
15.083333
48
0.674033
27
181
4.518519
0.814815
0
0
0
0
0
0
0
0
0
0
0.006897
0.198895
181
11
49
16.454545
0.834483
0
0
0
0
0
0.430168
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
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
0
1
0
2
5b10fde1a0b02a1e7f85ed42e2bfe8b97109fa80
514
py
Python
parse_cookie.py
olnikiforov/hillel
911bb94169aa277932e346e564e5efd69073d634
[ "MIT" ]
null
null
null
parse_cookie.py
olnikiforov/hillel
911bb94169aa277932e346e564e5efd69073d634
[ "MIT" ]
1
2021-04-01T18:56:38.000Z
2021-04-01T18:56:38.000Z
parse_cookie.py
olnikiforov/hillel
911bb94169aa277932e346e564e5efd69073d634
[ "MIT" ]
null
null
null
def parse_cookie(query: str) -> dict: res = {} if query: data = query.split(';') for i in data: if '=' in i: res[i.split('=')[0]] = '='.join(i.split('=')[1:]) return res if __name__ == '__main__': assert parse_cookie('name=Dima;') == {'name': 'Dima'} as...
30.235294
87
0.509728
66
514
3.772727
0.363636
0.192771
0.273092
0.253012
0.405622
0
0
0
0
0
0
0.025907
0.249027
514
16
88
32.125
0.619171
0
0
0
0
0
0.196498
0.042802
0
0
0
0
0.307692
1
0.076923
false
0
0
0
0.153846
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
5b14c0f520aa2dfc088e43cb4960682061f61a03
409
py
Python
netrd/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
116
2019-01-17T18:31:43.000Z
2022-03-31T13:37:21.000Z
netrd/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
175
2019-01-15T01:19:13.000Z
2021-05-25T16:51:26.000Z
netrd/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
36
2019-01-14T20:38:32.000Z
2022-01-21T20:58:38.000Z
""" netrd ----- netrd stands for Network Reconstruction and Distances. It is a repository of different algorithms for constructing a network from time series data, as well as for comparing two networks. It is the product of the Network Science Insitute 2019 Collabathon. """ from . import distance # noqa from . impo...
25.5625
73
0.760391
57
409
5.45614
0.614035
0.128617
0.135048
0
0
0
0
0
0
0
0
0.011976
0.183374
409
15
74
27.266667
0.919162
0.704156
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
d2a75f44feb7064f817bce0160b3db28ad77852c
597
py
Python
barcode/charsets/ean.py
Azd325/python-barcode
b41b1d5d479fb0ad3290a0a6235a8d3203d34ee9
[ "MIT" ]
null
null
null
barcode/charsets/ean.py
Azd325/python-barcode
b41b1d5d479fb0ad3290a0a6235a8d3203d34ee9
[ "MIT" ]
null
null
null
barcode/charsets/ean.py
Azd325/python-barcode
b41b1d5d479fb0ad3290a0a6235a8d3203d34ee9
[ "MIT" ]
null
null
null
EDGE = '101' MIDDLE = '01010' CODES = { 'A': ( '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011' ), 'B': ( '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111' ...
28.428571
73
0.515913
50
597
6.14
1
0
0
0
0
0
0
0
0
0
0
0.480176
0.239531
597
20
74
29.85
0.196035
0
0
0.15
0
0
0.470687
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d2c143baf7ea1e8434d64873e45800bbd43dfe04
444
py
Python
sdk/python/approzium/mysql/connector/pooling.py
UpGado/approzium
306b40f16a1ba0dfbe3a312e1c40881e98518137
[ "Apache-2.0" ]
59
2020-07-14T17:18:09.000Z
2022-02-24T07:39:22.000Z
sdk/python/approzium/mysql/connector/pooling.py
UpGado/approzium
306b40f16a1ba0dfbe3a312e1c40881e98518137
[ "Apache-2.0" ]
66
2020-07-09T19:11:55.000Z
2022-03-15T11:42:55.000Z
sdk/python/approzium/mysql/connector/pooling.py
UpGado/approzium
306b40f16a1ba0dfbe3a312e1c40881e98518137
[ "Apache-2.0" ]
9
2020-07-09T19:20:45.000Z
2022-02-24T07:39:26.000Z
from mysql.connector.pooling import MySQLConnectionPool from ._connect import _parse_kwargs, _patch_MySQLConnection class MySQLConnectionPool(MySQLConnectionPool): def set_config(self, **kwargs): kwargs = _parse_kwargs(kwargs) super(MySQLConnectionPool, self).set_config(**kwargs) def add_con...
31.714286
61
0.75
47
444
6.787234
0.510638
0.068966
0
0
0
0
0
0
0
0
0
0
0.164414
444
13
62
34.153846
0.859838
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d2c30d506f338f0ad2e0b0a0c5af2f47676aea3a
267
py
Python
setup.py
Faust-Wang/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
21
2021-03-03T10:51:46.000Z
2022-03-28T11:00:35.000Z
setup.py
Faust-Wang/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
2
2021-07-21T07:57:16.000Z
2022-03-17T12:41:51.000Z
setup.py
hvourtsis/vswarm
d18ce643218c18ef1e762f40562104b2a0926ad7
[ "MIT" ]
8
2021-02-27T14:29:55.000Z
2022-01-05T19:40:38.000Z
# Do not manually invoke this setup.py, use catkin instead! from setuptools import setup from catkin_pkg.python_setup import generate_distutils_setup setup_args = generate_distutils_setup( packages=['vswarm'], package_dir={'': 'src'} ) setup(**setup_args)
22.25
60
0.764045
36
267
5.416667
0.638889
0.174359
0.225641
0
0
0
0
0
0
0
0
0
0.138577
267
11
61
24.272727
0.847826
0.213483
0
0
1
0
0.043269
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
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
d2d95eb0f80255c257603ed734e875c5ce26b88b
2,945
py
Python
authors/apps/profiles/tests/test_follow.py
KabohaJeanMark/ah-backend-invictus
a9cf930934e8cbcb4ee370a088df57abe50ee6d6
[ "BSD-3-Clause" ]
7
2021-03-04T09:29:13.000Z
2021-03-17T17:35:42.000Z
authors/apps/profiles/tests/test_follow.py
KabohaJeanMark/ah-backend-invictus
a9cf930934e8cbcb4ee370a088df57abe50ee6d6
[ "BSD-3-Clause" ]
25
2019-04-23T18:51:02.000Z
2021-06-10T21:22:47.000Z
authors/apps/profiles/tests/test_follow.py
KabohaJeanMark/ah-backend-invictus
a9cf930934e8cbcb4ee370a088df57abe50ee6d6
[ "BSD-3-Clause" ]
7
2019-06-29T10:40:38.000Z
2019-09-23T09:05:45.000Z
from django.urls import reverse from rest_framework import status from .base import BaseTestCase class FollowTestCase(BaseTestCase): """Testcases for following a user.""" def test_follow_user_post(self): """Test start following a user.""" url = reverse('follow', kwargs={'username': 'test2'}) ...
50.775862
86
0.711036
370
2,945
5.421622
0.17027
0.064806
0.136092
0.162014
0.727318
0.696411
0.655035
0.655035
0.65005
0.615155
0
0.011895
0.172156
2,945
57
87
51.666667
0.810911
0.099491
0
0.5
0
0
0.069705
0
0
0
0
0
0.175
1
0.175
false
0
0.075
0
0.275
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d2dbe93b08cbd7c9fba4a7da5b0696432c491446
2,860
py
Python
rqt_mypkg/src/rqt_mypkg/statistics.py
mounteverset/moveit_path_visualizer
15e55c631cb4c4d052763ebd695ce5fcb6de5a4c
[ "BSD-3-Clause" ]
null
null
null
rqt_mypkg/src/rqt_mypkg/statistics.py
mounteverset/moveit_path_visualizer
15e55c631cb4c4d052763ebd695ce5fcb6de5a4c
[ "BSD-3-Clause" ]
null
null
null
rqt_mypkg/src/rqt_mypkg/statistics.py
mounteverset/moveit_path_visualizer
15e55c631cb4c4d052763ebd695ce5fcb6de5a4c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys import copy from moveit_commander import move_group import rospy import moveit_commander import moveit_msgs.msg import geometry_msgs.msg from math import pi, sqrt, pow from std_msgs.msg import String import io import shutil import json #used to convert the points from the gui in a va...
39.178082
110
0.681469
401
2,860
4.755611
0.316708
0.047195
0.040902
0.033561
0.22129
0.147352
0.104877
0.104877
0.080755
0.058731
0
0.010723
0.25
2,860
73
111
39.178082
0.878322
0.35979
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0.5
0
0.631579
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
d2dbfa2d8a9c4169b00a898c87b761496a338473
596
py
Python
apps/sendmail/admin.py
CasualGaming/studlan
63daed67c1d309e4d5bd755eb68163e2174d0e00
[ "MIT" ]
9
2016-03-15T21:03:49.000Z
2020-12-02T19:45:44.000Z
apps/sendmail/admin.py
piyushd26/studlan
6eb96ebda182f44759b430cd497a727e0ee5bb63
[ "MIT" ]
161
2016-02-05T14:11:50.000Z
2020-10-14T10:13:21.000Z
apps/sendmail/admin.py
piyushd26/studlan
6eb96ebda182f44759b430cd497a727e0ee5bb63
[ "MIT" ]
11
2016-07-27T12:20:05.000Z
2021-04-18T05:49:17.000Z
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Mail class MailAdmin(admin.ModelAdmin): list_display = ['subject', 'sent_time', 'recipients_total', 'successful_mails', 'failed_mails', 'done_sending'] ordering = ['-sent_time'] # Prevent creation def has_add_permission(s...
22.074074
115
0.676174
72
596
5.444444
0.680556
0.084184
0.071429
0
0
0
0
0
0
0
0
0.004237
0.208054
596
26
116
22.923077
0.826271
0.124161
0
0.166667
0
0
0.158607
0
0
0
0
0
0
1
0.25
false
0.166667
0.166667
0.083333
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
d2dcba40eaf1e9db722986c2a78f80438fb6fdb3
1,066
py
Python
aoc/year_2020/day_06/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
2
2020-12-06T10:59:52.000Z
2021-09-29T22:14:03.000Z
aoc/year_2020/day_06/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
null
null
null
aoc/year_2020/day_06/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
2
2021-09-29T22:14:18.000Z
2022-01-18T02:20:26.000Z
"""This is the Solution for Year 2020 Day 06""" import re from aoc.abstracts.solver import Answers, StrLines class Solver: def __init__(self, data: str) -> None: self.data = data def _preprocess(self) -> StrLines: delim = "\n\n" return self.data.split(delim) def _solve_part_one...
32.30303
81
0.641651
146
1,066
4.465753
0.356164
0.055215
0.050614
0.06135
0.082822
0
0
0
0
0
0
0.008696
0.244841
1,066
32
82
33.3125
0.801242
0.038462
0
0
0
0
0.009814
0
0
0
0
0
0
1
0.217391
false
0
0.086957
0
0.521739
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
d2f5d91da9ad5c16c7e8d867f33c570f4ad80d87
1,127
py
Python
notebooks/denerator_tests/actions/config.py
Collen-Roller/Rasa-Denerator
728d21d93f21a18c9de7be303ceae59392de9a41
[ "MIT" ]
11
2019-09-11T13:48:53.000Z
2021-11-26T00:48:57.000Z
notebooks/denerator_tests/actions/config.py
Collen-Roller/Rasa-Denerator
728d21d93f21a18c9de7be303ceae59392de9a41
[ "MIT" ]
2
2019-10-18T17:21:54.000Z
2021-10-08T06:45:11.000Z
notebooks/denerator_tests/actions/config.py
Collen-Roller/Rasa-Denerator
728d21d93f21a18c9de7be303ceae59392de9a41
[ "MIT" ]
4
2019-10-04T14:43:06.000Z
2021-06-16T21:23:23.000Z
import os policy_model_dir = os.environ.get("POLICY_MODEL_DIR", "models/dialogue/") rasa_nlu_config = os.environ.get("RASA_NLU_CONFIG", "nlu_config.yml") account_sid = os.environ.get("ACCOUNT_SID", "") auth_token = os.environ.get("AUTH_TOKEN", "") twilio_number = os.environ.get("TWILIO_NUMBER", "") platform_api =...
30.459459
84
0.747116
165
1,127
4.751515
0.272727
0.206633
0.27551
0.122449
0.165816
0
0
0
0
0
0
0.003861
0.080745
1,127
37
85
30.459459
0.752896
0
0
0
0
0
0.335106
0.062943
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
96024e0d78c0a224ad13e044ee7fc8d5953df2e6
259
py
Python
app/__init__.py
nic-mon/IAIOLab
b8c4a23c95ee722938b393e4824b7fc94447f17c
[ "MIT" ]
null
null
null
app/__init__.py
nic-mon/IAIOLab
b8c4a23c95ee722938b393e4824b7fc94447f17c
[ "MIT" ]
null
null
null
app/__init__.py
nic-mon/IAIOLab
b8c4a23c95ee722938b393e4824b7fc94447f17c
[ "MIT" ]
1
2018-04-11T00:34:09.000Z
2018-04-11T00:34:09.000Z
from flask import Flask """ 1. Creating a flask application instance, the name argument is passed to flask application constructor. It's used to determine the root path""" app = Flask(__name__) app.config.from_object('config') from app import views, models
28.777778
82
0.776062
40
259
4.9
0.65
0.163265
0
0
0
0
0
0
0
0
0
0.004525
0.146718
259
8
83
32.375
0.882353
0
0
0
0
0
0.053571
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
9607844773359aa6aa0c7976c01c1f1c73d9292a
145
py
Python
cryptos.py
pogoetic/tricero
6cb60e780bf9056ad9887a84e2ba7d73787ac2fc
[ "MIT" ]
null
null
null
cryptos.py
pogoetic/tricero
6cb60e780bf9056ad9887a84e2ba7d73787ac2fc
[ "MIT" ]
null
null
null
cryptos.py
pogoetic/tricero
6cb60e780bf9056ad9887a84e2ba7d73787ac2fc
[ "MIT" ]
null
null
null
cryptolist = ['ETH','BTC','XRP','EOS','ADA','NEO','STEEM', 'BTS','ZEC','XMR','XVG','XEM','OMG','MIOTA','XTZ','SC', 'CVC','BAT','XLM','ZRX','VEN']
48.333333
58
0.524138
22
145
3.454545
1
0
0
0
0
0
0
0
0
0
0
0
0.027586
145
3
59
48.333333
0.539007
0
0
0
0
0
0.452055
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
960fe6f4df41a131c506151d154738d3ea6e3c53
533
py
Python
alerter/src/alerter/alert_code/node/evm_alert_code.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
41
2019-08-23T12:40:42.000Z
2022-03-28T11:06:02.000Z
alerter/src/alerter/alert_code/node/evm_alert_code.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
147
2019-08-30T22:09:48.000Z
2022-03-30T08:46:26.000Z
alerter/src/alerter/alert_code/node/evm_alert_code.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
3
2019-09-03T21:12:28.000Z
2021-08-18T14:27:56.000Z
from ..alert_code import AlertCode class EVMNodeAlertCode(AlertCode): NoChangeInBlockHeight = 'evm_node_alert_1' BlockHeightUpdatedAlert = 'evm_node_alert_2' BlockHeightDifferenceIncreasedAboveThresholdAlert = 'evm_node_alert_3' BlockHeightDifferenceDecreasedBelowThresholdAlert = 'evm_node_alert_4' ...
38.071429
74
0.806754
53
533
7.584906
0.509434
0.156716
0.268657
0
0
0
0
0
0
0
0
0.019481
0.133208
533
13
75
41
0.850649
0
0
0
0
0
0.270169
0
0
0
0
0
0
1
0
false
0
0.090909
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
961296a2dbd17acbbeca5341d04b5200b3df15a3
4,973
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/python # # Copyright (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser Gener...
31.474684
83
0.646893
662
4,973
4.817221
0.330816
0.014111
0.017247
0.022578
0.197241
0.186579
0.144246
0.102854
0.102854
0.090938
0
0.008905
0.232254
4,973
157
84
31.675159
0.826349
0.278504
0
0.052632
0
0
0.067268
0
0
0
0
0
0.078947
0
null
null
0.078947
0.026316
null
null
0.078947
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
961374e180229cec23558c1850e6a56b8464ae8b
63,005
py
Python
pyCEvNS/flux.py
athompson-tamu/pyCEvNS
feb3f83c706e6604608eae83c50ac79ced9140bf
[ "MIT" ]
null
null
null
pyCEvNS/flux.py
athompson-tamu/pyCEvNS
feb3f83c706e6604608eae83c50ac79ced9140bf
[ "MIT" ]
null
null
null
pyCEvNS/flux.py
athompson-tamu/pyCEvNS
feb3f83c706e6604608eae83c50ac79ced9140bf
[ "MIT" ]
null
null
null
""" flux related class and functions """ from scipy.integrate import quad import pandas as pd from .helper import LinearInterp, polar_to_cartesian, lorentz_boost, lorentz_matrix from .oscillation import survival_solar from .parameters import * def _invs(ev): return 1/ev**2 class FluxBaseContinuous: def ...
48.09542
163
0.53164
9,088
63,005
3.53026
0.06206
0.01945
0.010255
0.009475
0.761712
0.713431
0.684225
0.659415
0.624443
0.6001
0
0.046309
0.330291
63,005
1,309
164
48.132162
0.714042
0.117546
0
0.590864
0
0.000993
0.035546
0.007396
0
0
0
0
0
1
0.072493
false
0.000993
0.004965
0.028798
0.193644
0.00993
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
961ccfb0c6fb46c865492bed7af363f36b450b4b
1,239
py
Python
utils/checks.py
JDJGInc/JDBot
057bcc5c80452c9282606e9bf66219e614aac5e1
[ "MIT" ]
12
2021-01-09T06:17:51.000Z
2022-03-18T06:30:15.000Z
utils/checks.py
JDJGInc/JDBot
057bcc5c80452c9282606e9bf66219e614aac5e1
[ "MIT" ]
21
2021-03-21T16:43:45.000Z
2022-02-01T16:02:26.000Z
utils/checks.py
JDJGInc/JDBot
057bcc5c80452c9282606e9bf66219e614aac5e1
[ "MIT" ]
25
2021-03-21T16:33:56.000Z
2022-03-12T16:52:25.000Z
import discord def check(ctx): def inner(m): return m.author == ctx.author return inner def Membercheck(ctx): def inner(m): return m.author == ctx.guild.me return inner def warn_permission(ctx, Member): if isinstance(ctx.channel, discord.TextChannel): return ctx.author.guild_permissions.ma...
27.533333
158
0.742534
176
1,239
5.102273
0.357955
0.060134
0.066815
0.097996
0.365256
0.365256
0.365256
0.365256
0.302895
0.18931
0
0.001946
0.170299
1,239
45
159
27.533333
0.871595
0.090395
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.233333
false
0
0.033333
0.066667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2