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
bf7021cd6436cdc90fdb123560bbe42e5ab0e529
593
py
Python
httpolice/__init__.py
bmwiedemann/httpolice
4da2bde3d14a24b0623ee45ae10afd192d6fa771
[ "MIT" ]
1
2020-09-19T13:50:36.000Z
2020-09-19T13:50:36.000Z
httpolice/__init__.py
99/httpolice
8175020af13708801fbefc8d4f3787b11093c962
[ "MIT" ]
null
null
null
httpolice/__init__.py
99/httpolice
8175020af13708801fbefc8d4f3787b11093c962
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- from httpolice import helpers from httpolice.__metadata__ import version as __version__ from httpolice.blackboard import Complaint from httpolice.exchange import Exchange, check_exchange from httpolice.notice import Severity from httpolice.reports.html import html_report from httpolice.reports...
24.708333
57
0.753794
68
593
6.308824
0.338235
0.272727
0.09324
0
0
0
0
0
0
0
0
0.002008
0.160202
593
23
58
25.782609
0.859438
0.037099
0
0
0
0
0.14587
0
0
0
0
0
0
1
0
false
0
0.45
0
0.45
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
bf92e2b796afda65543afc9a1d957b84bd60a4c5
4,124
py
Python
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
37.834862
94
0.725024
349
4,124
8.352436
0.255014
0.150943
0.098113
0.143396
0.351286
0.163979
0.163979
0.163979
0.163979
0.163979
0
0.008
0.18162
4,124
108
95
38.185185
0.855704
0.178952
0
0
0
0
0.182658
0.087008
0
0
0
0
0
1
0
false
0.061224
0.469388
0
0.469388
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
bf9e18fe4d55d3bb8920e6325a4acb85be41d552
481
py
Python
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
8
2020-11-16T20:25:05.000Z
2021-10-04T17:06:33.000Z
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
3
2021-04-10T20:31:12.000Z
2021-04-12T12:03:32.000Z
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
7
2021-03-29T09:42:38.000Z
2022-02-04T12:52:29.000Z
import requests import re def cut_url(content): text = re.findall(r'url="https:\/\/[\w.,@?^=%&:/~+#-]*', content) #idk if this a good way return text[0].replace('url="', '').replace('?version=3', '').replace('/v/', '/watch?v=') def get_urls(url): resp = requests.get(url) urls = [cut_url(link) fo...
25.315789
93
0.621622
76
481
3.815789
0.5
0.072414
0
0
0
0
0
0
0
0
0
0.004963
0.162162
481
18
94
26.722222
0.71464
0.045738
0
0
0
0
0.165939
0.074236
0
0
0
0
0
1
0.272727
false
0
0.181818
0.090909
0.727273
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
bfa0c27f0aad4f5472dc6a2166cb780a75f980c8
1,105
py
Python
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
40.925926
83
0.718552
146
1,105
5.308219
0.623288
0.077419
0.061935
0.04129
0
0
0
0
0
0
0
0.009657
0.156561
1,105
26
84
42.5
0.821888
0.700452
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.2
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
bfa9911aa0052a6c71229ba272f18a078ad0fbf0
925
py
Python
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields, validate from apidoc.libs.common import contain_zh from apidoc.settings import Config class PaginateSchema(Schema): page = fields.Int(missing=1, location='query') per_page = fields.Int(missing=Config.API_DOC_PER_PAGE, location='query') class NameSchema(Schema): n...
38.541667
116
0.725405
125
925
5.296
0.464
0.054381
0.099698
0.060423
0.244713
0.187311
0.187311
0.187311
0.187311
0.187311
0
0.009988
0.134054
925
23
117
40.217391
0.816479
0.111351
0
0
0
0
0.056511
0
0
0
0
0.043478
0
1
0
false
0
0.214286
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
1
0
0
0
0
0
0
0
1
0
0
2
bfc30a77b97d4e74224bb01d940181301a27ab6f
537
py
Python
dthm4kaiako/config/filters/markdown.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
3
2018-12-10T07:03:02.000Z
2021-04-12T02:18:30.000Z
dthm4kaiako/config/filters/markdown.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
566
2018-09-30T02:54:28.000Z
2022-03-28T01:20:01.000Z
dthm4kaiako/config/filters/markdown.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
3
2019-04-04T19:53:39.000Z
2021-05-16T02:04:46.000Z
"""Template filter for rendering Markdown to HTML.""" from django import template from django.utils.safestring import mark_safe from django.template.defaultfilters import stringfilter from markdownx.utils import markdownify register = template.Library() @register.filter @stringfilter def markdown(raw_markdown): ...
23.347826
56
0.748603
66
537
6.015152
0.5
0.110831
0
0
0
0
0
0
0
0
0
0
0.176909
537
22
57
24.409091
0.89819
0.350093
0
0
0
0
0
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
bfd4b07cf0067ae5efca658be3f46767e83ea056
523
py
Python
35. searchInsertPosition.py
izan-majeed/leetcode
b7fbc734771f94522498d833f72443d07c4e7ed1
[ "Apache-2.0" ]
1
2021-06-20T09:59:59.000Z
2021-06-20T09:59:59.000Z
35. searchInsertPosition.py
izan-majeed/leetcode
b7fbc734771f94522498d833f72443d07c4e7ed1
[ "Apache-2.0" ]
null
null
null
35. searchInsertPosition.py
izan-majeed/leetcode
b7fbc734771f94522498d833f72443d07c4e7ed1
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def searchInsert(self, a: List[int], target: int) -> int: l, r = 0, len(a)-1 #binary search while l<=r: mid = (l+r)//2 if target == a[mid]: return mid elif target > a[mid]: ...
23.772727
61
0.418738
66
523
3.318182
0.409091
0.159817
0.228311
0.219178
0.360731
0.319635
0.319635
0.319635
0.319635
0.319635
0
0.021898
0.476099
523
22
62
23.772727
0.777372
0.049713
0
0.25
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.375
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
44a08928a2a3e4699cdfa43b536f8936d6d36c31
6,064
py
Python
deployer/loggers/__init__.py
timgates42/python-deployer
04c67c887357c202e315412473ee3541b4675f02
[ "BSD-2-Clause-FreeBSD" ]
39
2015-01-06T23:56:56.000Z
2021-12-15T09:43:35.000Z
deployer/loggers/__init__.py
timgates42/python-deployer
04c67c887357c202e315412473ee3541b4675f02
[ "BSD-2-Clause-FreeBSD" ]
1
2017-02-11T21:12:41.000Z
2017-02-11T21:12:41.000Z
deployer/loggers/__init__.py
timgates42/python-deployer
04c67c887357c202e315412473ee3541b4675f02
[ "BSD-2-Clause-FreeBSD" ]
14
2015-03-14T17:52:18.000Z
2021-11-25T18:23:38.000Z
__all__ = ('Actions', 'LoggerInterface', 'RunCallback', 'FileCallback', 'Logger', 'DummyLoggerInterface') # # Interface: group of loggers which can attach multiple loggers. # class Actions(object): Run = 'run' Open = 'open' Fork = 'fork' class LoggerInterface(object): """ Base class for loggin...
25.91453
123
0.540897
632
6,064
4.969937
0.18038
0.019102
0.013372
0.015919
0.257243
0.202165
0.13085
0.094874
0.073862
0.042662
0
0.000262
0.369393
6,064
233
124
26.025751
0.82113
0.084268
0
0.342857
0
0
0.016614
0
0
0
0
0
0
1
0.292857
false
0.057143
0
0.042857
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
44a13e0681ea8a22398ff1905b2af689bf8ea5fe
477
py
Python
Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py
LiuChaoXD/Remote-Sensing-Image-Retrieval-Models
c135562263102080716e35260f111dcff7762264
[ "MIT" ]
4
2021-01-30T15:45:43.000Z
2021-12-19T03:41:57.000Z
Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py
LiuChaoXD/Remote-Sensing-Image-Retrieval-Models
c135562263102080716e35260f111dcff7762264
[ "MIT" ]
null
null
null
Deep-Hash-learning-for-Remote-Sensing-Image-Retrieval/utils/generateUniformData.py
LiuChaoXD/Remote-Sensing-Image-Retrieval-Models
c135562263102080716e35260f111dcff7762264
[ "MIT" ]
1
2020-12-21T14:23:36.000Z
2020-12-21T14:23:36.000Z
import numpy as np def generate_binary_distribution(batchsize, dim): z_batch = np.zeros((batchsize, dim)) for b in range(batchsize): value_zeros_ones = np.zeros((dim)) for i in range(dim): if i < dim // 2: value_zeros_ones[i] = 0. else: v...
28.058824
49
0.563941
65
477
3.938462
0.461538
0.15625
0.21875
0.117188
0
0
0
0
0
0
0
0.009317
0.324948
477
16
50
29.8125
0.785714
0
0
0
1
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
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
44d06773b5f3d0ff34828b00098d2e28292a0ca8
10,308
py
Python
tests/responses/test_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
4
2020-09-08T08:14:21.000Z
2022-01-27T19:22:53.000Z
tests/responses/test_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
19
2018-02-13T05:51:25.000Z
2022-03-27T22:48:11.000Z
tests/responses/test_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
3
2017-11-17T13:25:23.000Z
2022-02-03T12:57:00.000Z
import os import sys if sys.version_info >= (3, 8): from unittest import IsolatedAsyncioTestCase as TestCase else: from unittest import TestCase import pytest import jj from jj import server_version from jj.apps import create_app from jj.handlers import default_handler from jj.matchers import MethodMatcher f...
38.898113
95
0.644257
1,222
10,308
5.279051
0.102291
0.123237
0.121222
0.120911
0.756007
0.746086
0.704232
0.645326
0.537436
0.521315
0
0.007268
0.239135
10,308
264
96
39.045455
0.815249
0.00844
0
0.512315
0
0
0.076765
0.00235
0
0
0
0
0.280788
1
0.014778
false
0
0.064039
0.004926
0.103448
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
44da8f08437fa311200de5d8536d8b820064e77f
438
py
Python
_todo/programme/td9_simple_server.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
73
2015-05-12T13:12:11.000Z
2021-12-21T11:44:29.000Z
_todo/programme/td9_simple_server.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
90
2015-06-23T11:11:35.000Z
2021-03-31T22:09:15.000Z
_todo/programme/td9_simple_server.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
65
2015-01-13T08:23:55.000Z
2022-02-11T22:42:07.000Z
import sys sys.path.append(r"D:\Dupre\_data\program\pyhome") import pyhome3 from pyhome3 import HalLOG from pyhome3.srcpyhome.internet.simple_server.simple_server_custom import run_server HalLOG(OutputPrint=True) HalLOG("running server") run_server(None) HalLOG("end running server") # http://localhost:8080/localfile/...
29.2
112
0.821918
64
438
5.4375
0.625
0.034483
0.057471
0
0
0
0
0
0
0
0
0.038929
0.061644
438
14
113
31.285714
0.807786
0.333333
0
0
0
0
0.211806
0.100694
0
0
0
0
0
1
0
true
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
44e4083a3f1aa8e2c31b0a862cea63e31e705b35
502
py
Python
grifo/snippets/api.py
pavelsimo/Grifo
aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2
[ "MIT" ]
null
null
null
grifo/snippets/api.py
pavelsimo/Grifo
aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2
[ "MIT" ]
null
null
null
grifo/snippets/api.py
pavelsimo/Grifo
aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2
[ "MIT" ]
null
null
null
from grifo.snippets.models import Snippet, SnippetCategory from rest_framework import viewsets from grifo.snippets.serializers import SnippetSerializer, SnippetCategorySerializer class SnippetViewSet(viewsets.ModelViewSet): serializer_class = SnippetSerializer queryset = Snippet.objects.all() lookup_fiel...
29.529412
83
0.806773
47
502
8.510638
0.510638
0.045
0.085
0.175
0.115
0
0
0
0
0
0
0
0.129482
502
16
84
31.375
0.915332
0
0
0.181818
0
0
0.007968
0
0
0
0
0
0
1
0
false
0
0.272727
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
44e8fc0d72523b5cd8b760e1363b4509f15356c5
450
py
Python
flask_restly/decorator/body.py
gorzechowski/flask-restly
54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a
[ "MIT" ]
16
2018-10-16T20:07:02.000Z
2021-01-07T13:01:05.000Z
flask_restly/decorator/body.py
gorzechowski/flask-restly
54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a
[ "MIT" ]
16
2018-10-16T14:09:55.000Z
2020-01-16T07:52:22.000Z
flask_restly/decorator/body.py
gorzechowski/flask-restly
54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a
[ "MIT" ]
1
2019-04-17T03:20:41.000Z
2019-04-17T03:20:41.000Z
from flask_restly._storage import push_metadata import wrapt def body(outgoing=None, incoming=None): def decorator(func): @wrapt.decorator def wrapper(wrapped, _, args, kwargs): return wrapped(*args, **kwargs) wrapped_func = wrapper(func) push_metadata(wrapped_func, { ...
22.5
47
0.62
46
450
5.891304
0.434783
0.121771
0.125461
0
0
0
0
0
0
0
0
0
0.291111
450
19
48
23.684211
0.84953
0
0
0
0
0
0.035556
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0.071429
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
44fed48b903a45718e278b7bbb853329b5ff3a78
669
py
Python
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
""" Analyzers. """ from elasticsearch_dsl import analyzer from elasticsearch_dsl.analysis import token_filter __title__ = 'django_elasticsearch_dsl_drf.analyzers' __author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>' __copyright__ = '2017-2019 Artur Barseghyan' __license__ = 'GPL 2.0/LGPL 2.1' __all__ = ( '...
23.068966
60
0.762332
80
669
5.775
0.475
0.155844
0.287879
0.21645
0
0
0
0
0
0
0
0.025952
0.136024
669
28
61
23.892857
0.773356
0.014948
0
0.095238
0
0
0.384025
0.25192
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
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
78000ffb092a4de142fe1f75fa2e53b2d742b53a
43,347
py
Python
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-05T10:13:36.000Z
2021-03-05T10:13:36.000Z
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
2
2021-09-17T07:23:39.000Z
2021-09-20T12:34:51.000Z
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 ...
32.93845
162
0.63054
4,633
43,347
5.595079
0.041226
0.031865
0.049147
0.071831
0.756307
0.725793
0.689839
0.617313
0.595594
0.573644
0
0.001274
0.257826
43,347
1,315
163
32.963498
0.804482
0.004083
0
0.698043
1
0.018639
0.174381
0.049602
0
0
0
0
0
1
0.174278
false
0
0.005592
0.091333
0.335508
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
78053273af9c507537b21f75edef0b6e3855dd00
317
py
Python
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
11
2021-02-25T23:27:14.000Z
2021-08-18T10:04:18.000Z
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
1
2021-07-17T15:49:43.000Z
2021-08-03T06:56:04.000Z
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
null
null
null
# GRAYSCALE WHITE = (255, 255, 255) L_GRAY = (190, 190, 190) GRAY = (127, 127, 127) D_GRAY = (63, 63, 63 ) BLACK = (0, 0, 0 ) # RGB RED = (255, 0, 0 ) YELLOW = (255, 255, 0 ) GREEN = (0, 255, 0 ) INDIGO = (0, 255, 255) BLUE = (0, 0, 255) MAGENTA = (255, 0, 255)
22.642857
26
0.444795
48
317
2.895833
0.375
0.172662
0
0
0
0
0
0
0
0
0
0.363636
0.375394
317
14
27
22.642857
0.338384
0.041009
0
0
0
0
0
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
7809b78f24ddb2cbb5d91e66401e349e1a70f060
332
py
Python
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
23
2016-12-16T09:03:18.000Z
2022-02-25T19:19:23.000Z
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
30
2016-12-20T11:11:42.000Z
2019-11-19T15:23:59.000Z
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
4
2016-12-11T18:29:11.000Z
2018-04-22T07:51:28.000Z
#!/usr/bin/env python import sys from powerline.bindings.wm import DEFAULT_UPDATE_INTERVAL from powerline.bindings.wm.awesome import run def main(): try: interval = float(sys.argv[1]) except IndexError: interval = DEFAULT_UPDATE_INTERVAL run(interval=interval) if __name__ == '__main__':...
18.444444
57
0.704819
42
332
5.285714
0.595238
0.117117
0.189189
0.207207
0
0
0
0
0
0
0
0.003759
0.198795
332
17
58
19.529412
0.830827
0.060241
0
0
0
0
0.025723
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.363636
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
780fb3b531fe4dbaf617a0a6b5ace4197ef2ce42
355
py
Python
cv2/__init__.py
goodclass/OpenCV_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
6
2019-08-13T21:56:47.000Z
2021-03-23T19:52:55.000Z
cv2/__init__.py
goodclass/opencv_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
null
null
null
cv2/__init__.py
goodclass/opencv_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
null
null
null
import importlib from .cv2 import * from .data import * # wildcard import above does not import "private" variables like __version__ # this makes them available globals().update(importlib.import_module('cv2.cv2').__dict__) def imshow_image(title, image): import matplotlib.pyplot as plt plt.imshow(image) ...
20.882353
76
0.752113
48
355
5.333333
0.625
0.128906
0
0
0
0
0
0
0
0
0
0.010033
0.157746
355
16
77
22.1875
0.846154
0.28169
0
0
0
0
0.027778
0
0
0
0
0
0
1
0.111111
false
0
0.555556
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
78115951a587f10b8a500670a6eababb14671283
7,220
py
Python
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
import random,math import numpy as np import jittor as jt from jittor.nn import Sequential,LeakyReLU class LR: def __init__(self,n): self.n=n def get_w(self,m): w=getattr(m,self.n+'_o') return w*math.sqrt(2/w[0].numel()) def __call__(self,m,_): setattr(m,self.n,self.get_w(...
40.111111
317
0.608033
1,425
7,220
3
0.126316
0.012632
0.049123
0.047719
0.370058
0.25731
0.152281
0.083743
0.078596
0.053333
0
0.070741
0.17964
7,220
179
318
40.335196
0.651021
0
0
0.090278
0
0
0.004294
0
0
0
0
0
0
1
0.243056
false
0
0.027778
0.0625
0.520833
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
78229ade32d0366ad4b3eef09f67c6320b26c881
235
py
Python
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
null
null
null
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
null
null
null
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
1
2021-01-23T23:49:50.000Z
2021-01-23T23:49:50.000Z
# content of ./test_smtpsimple.py import pytest @pytest.fixture def smtp(): import smtplib return smtplib.SMTP("smtp.gmail.com", 587, timeout=5) def test_ehlo(smtp): response, msg = smtp.ehlo() assert response == 250
19.583333
57
0.693617
33
235
4.878788
0.666667
0
0
0
0
0
0
0
0
0
0
0.036458
0.182979
235
11
58
21.363636
0.802083
0.131915
0
0
0
0
0.069307
0
0
0
0
0
0.125
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
7833a508141379ddb62d6f7c97d3b1f4b1653b14
2,904
py
Python
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
2
2020-06-22T13:33:28.000Z
2020-12-30T15:09:00.000Z
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
37
2020-02-18T12:15:00.000Z
2021-12-13T20:01:14.000Z
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
null
null
null
from unittest import TestCase import os from musicscore.musicstream.streamvoice import SimpleFormat from musicscore.musictree.treebeat import TreeBeat from musicscore.musictree.treechordflags1 import PizzFlag1, PercussionFlag1 from musicscore.musictree.treemeasure import TreeMeasure from musicscore.musictree.treepart ...
42.086957
79
0.513774
292
2,904
4.931507
0.318493
0.05
0.079861
0.055556
0
0
0
0
0
0
0
0.025685
0.396694
2,904
68
80
42.705882
0.796233
0.522039
0
0
0
0
0.005926
0
0
0
0
0
0
1
0.086957
false
0
0.434783
0
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7842f6c64be0b6e9300407e9d61cb1d099892c8f
372
py
Python
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import re import json def parse_json(value): return json.dumps(json.loads(re.sub('^.*\n#STARTJSON\n', '', value, flags=re.DOTALL)), indent=4, sort_keys=True) class FilterModule(object): def filters(self): retur...
20.666667
116
0.674731
48
372
4.9375
0.666667
0.113924
0
0
0
0
0
0
0
0
0
0.003344
0.196237
372
17
117
21.882353
0.789298
0
0
0
0
0
0.072581
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.181818
0.727273
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
786ea20db76f036afee97045dee5cd524ee74858
166
py
Python
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
2
2021-11-13T13:52:56.000Z
2022-03-29T18:10:27.000Z
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
v = float(input('qual e o valor do seu produto? R$:')) d = v / 100 * 5 print('o valor do produto de R$:{} agora com 5% de desconto ficou R$:{:.2f}'.format(v, (v-d)))
41.5
94
0.60241
34
166
2.941176
0.647059
0.12
0.16
0
0
0
0
0
0
0
0
0.044444
0.186747
166
3
95
55.333333
0.696296
0
0
0
0
0
0.614458
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
78745512b8e1db248b6cccfe158e400723701d66
138
py
Python
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
""" *Measure* The measure type. """ from abc import ABCMeta __all__ = ["Measure"] class Measure: __metaclass__ = ABCMeta
8.625
27
0.630435
14
138
5.642857
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.253623
138
15
28
9.2
0.76699
0.202899
0
0
0
0
0.074468
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7890995ad59e5c3bbb5109c842b33e0e62a5d810
1,255
py
Python
exceptions.py
SynStratos/Fitness_Pose_Machine
006576f36b2e5c9b592a1585a91791a0af950814
[ "MIT" ]
3
2020-06-18T21:43:07.000Z
2021-12-18T22:43:44.000Z
exceptions.py
SynStratos/Fitness_Pose_Machine
006576f36b2e5c9b592a1585a91791a0af950814
[ "MIT" ]
null
null
null
exceptions.py
SynStratos/Fitness_Pose_Machine
006576f36b2e5c9b592a1585a91791a0af950814
[ "MIT" ]
null
null
null
class BadRepetitionException(Exception): """ exception raised for a bad repetition """ def __init__(self, *args): super(BadRepetitionException, self).__init__(*args) class NoneRepetitionException(Exception): """ exception raised for repetition ended without movements """ def __...
27.282609
84
0.690837
127
1,255
6.448819
0.354331
0.131868
0.175824
0.10989
0.239316
0.07326
0
0
0
0
0
0
0.207968
1,255
46
85
27.282609
0.823944
0.27012
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
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
1
0
0
0
0
1
0
0
2
7895a56533a856d00ddcc556bf216b2bb9177e04
6,354
py
Python
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
import logging from sqlalchemy.orm.exc import NoResultFound from werkzeug.security import generate_password_hash from ermaket.api.database import DBConn from ermaket.api.models import Models, NamesConverter from ermaket.api.system.hierarchy import AccessRight, PrebuiltPageType from ermaket.utils import Singleton fro...
34.532609
77
0.583727
728
6,354
4.917582
0.178571
0.022346
0.026816
0.038547
0.303073
0.236592
0.187989
0.179888
0.143017
0.117877
0
0
0.319326
6,354
183
78
34.721311
0.827746
0
0
0.236025
1
0
0.044696
0
0
0
0
0
0
1
0.093168
false
0.086957
0.049689
0.006211
0.254658
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
1
0
0
0
0
0
2
78be57289fc53eb405e7499adae1ebb913de3e39
3,019
py
Python
tests/cluster_test/kmeans_test.py
alisoltanirad/Reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
1
2020-12-21T21:26:27.000Z
2020-12-21T21:26:27.000Z
tests/cluster_test/kmeans_test.py
alisoltanirad/Reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
10
2020-12-26T18:55:43.000Z
2021-01-10T09:15:32.000Z
tests/cluster_test/kmeans_test.py
alisoltanirad/reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
null
null
null
import pytest import pandas as pd from reason.cluster import KMeansClusterer @pytest.fixture def df(): x = {'feature1': [2, 7], 'feature2': [3, 6]} df = pd.DataFrame(data=x) return df def test_object_creation(): KMeansClusterer() def test_fit_featureset(): data = [{'feature1': 2, 'feature2': 3}...
25.584746
75
0.676714
360
3,019
5.527778
0.175
0.066834
0.169849
0.198995
0.624623
0.544221
0.507035
0.421608
0.31005
0.253769
0
0.019704
0.19311
3,019
117
76
25.803419
0.797209
0
0
0.494737
0
0
0.050017
0
0
0
0
0
0.021053
1
0.221053
false
0
0.031579
0.010526
0.273684
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
78c0b5cce43db211f820b2e27ad74c24b5509ab2
1,081
py
Python
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
from django.db import models #TODO candidatura class Candidato(models.Model): nome = models.CharField(max_length = 120, null=True) ra = models.CharField(max_length = 80, null=True) email = models.CharField(max_length = 80, null=True) celular = models.CharField(max_length = 11, null=True) codigo_...
38.607143
108
0.716004
136
1,081
5.580882
0.404412
0.084321
0.118577
0.158103
0.367589
0.367589
0.367589
0.185771
0
0
0
0.013333
0.167438
1,081
28
109
38.607143
0.83
0.06383
0
0
0
0
0.067527
0
0
0
0
0.035714
0
1
0.052632
false
0
0.210526
0.052632
0.947368
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
1539da9dfc5706c48e724fafc184cafaf0ce8a5d
783
py
Python
nbdevminimum/_nbdev.py
Isaac-Flath/nbdev_minimum
2ed888bdbf672bb3ace8b09a6a5955536c0c4b4c
[ "Apache-2.0" ]
1
2021-06-02T14:22:22.000Z
2021-06-02T14:22:22.000Z
nbdevminimum/_nbdev.py
Isaac-Flath/nbdev_minimum
2ed888bdbf672bb3ace8b09a6a5955536c0c4b4c
[ "Apache-2.0" ]
null
null
null
nbdevminimum/_nbdev.py
Isaac-Flath/nbdev_minimum
2ed888bdbf672bb3ace8b09a6a5955536c0c4b4c
[ "Apache-2.0" ]
1
2021-08-11T08:51:36.000Z
2021-08-11T08:51:36.000Z
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"get_module_text": "00_nb2module.ipynb", "write_module_text": "00_nb2module.ipynb", "clear_all_modules": "00_nb2module.ipynb", "simple_export_one_nb": "00_nb2module.ipynb", ...
34.043478
70
0.671775
102
783
4.754902
0.460784
0.113402
0.164948
0.086598
0.22268
0
0
0
0
0
0
0.044822
0.173691
783
22
71
35.590909
0.704791
0.045977
0
0
1
0
0.620134
0
0
0
0
0
0
1
0.066667
false
0
0
0.066667
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
153d2187272b61b32c8f115e4dcaad581d8b6ca8
660
py
Python
SearaLib/disc_math.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
SearaLib/disc_math.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
SearaLib/disc_math.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
import math def combinations(n, k): """ Unordered, w / o repetitions From n choose k """ return math.factorial(n) / (math.factorial(k) * math.factorial(n - k)) def combinations_with_repetitions(n, k): """ Unordered, w / repetitions Вспомни задачу со спичками, это просто распределение...
17.837838
74
0.60303
84
660
4.714286
0.357143
0.035354
0.141414
0.060606
0.224747
0.166667
0
0
0
0
0
0.004141
0.268182
660
36
75
18.333333
0.815735
0.306061
0
0
0
0
0
0
0
0
0
0
0
1
0.454545
false
0
0.090909
0.090909
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
154fe42eadedd30b52e9d409a81aab4ed1b44894
437
py
Python
test/dom/ext/test_single_elements.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
test/dom/ext/test_single_elements.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
test/dom/ext/test_single_elements.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
def test(inFile): from xml.dom.ext.reader import HtmlLib from xml.dom import ext from xml.dom import Node from xml.dom.html import HTMLDocument doc = HTMLDocument.HTMLDocument() HtmlLib.FromHtmlStream(inFile,doc) print doc ext.PrettyPrint(doc) if __name__ == '__main__': i...
15.068966
42
0.643021
59
437
4.627119
0.474576
0.102564
0.14652
0.117216
0
0
0
0
0
0
0
0.006135
0.254005
437
28
43
15.607143
0.831288
0
0
0
0
0
0.020595
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
1551460d8250cc7f9570e1158c0116db59b95164
684
py
Python
cluster/views.py
zhenyit/django-data-mining
8739dba912e8bd6e9ef7571099fb3cb229ecd0d0
[ "MIT" ]
7
2019-08-07T03:30:43.000Z
2019-08-07T19:40:24.000Z
cluster/views.py
zhenyit/Django-Python-Server
8739dba912e8bd6e9ef7571099fb3cb229ecd0d0
[ "MIT" ]
null
null
null
cluster/views.py
zhenyit/Django-Python-Server
8739dba912e8bd6e9ef7571099fb3cb229ecd0d0
[ "MIT" ]
1
2019-08-06T17:40:40.000Z
2019-08-06T17:40:40.000Z
from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.http import JsonResponse from django.core import serializers from . import models import numpy as np from sklearn.cluster import KMeans def kmeans(request): response = { 'label': [], 'cl...
25.333333
69
0.678363
88
684
5.193182
0.488636
0.087527
0.061269
0.087527
0
0
0
0
0
0
0
0.030631
0.188596
684
27
70
25.333333
0.792793
0.111111
0
0
0
0
0.066007
0
0
0
0
0
0
1
0.058824
false
0
0.411765
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1560cbf480f3901c1a28c49d69f13f6422f71682
659
py
Python
Baum Sweet sequence/Baum-Sweet sequence.py
ajtroyer/Integer-Sequences
d54a84c74b2cfa95e3df8489d5878fa4e8881d73
[ "Unlicense" ]
48
2021-06-28T05:53:43.000Z
2022-03-17T10:37:26.000Z
Baum Sweet sequence/Baum-Sweet sequence.py
PremApk/Integer-Sequences
89a409006d5718c5e9cd9d95748c312337600209
[ "Unlicense" ]
99
2021-06-28T03:16:51.000Z
2022-03-17T00:18:50.000Z
Baum Sweet sequence/Baum-Sweet sequence.py
PremApk/Integer-Sequences
89a409006d5718c5e9cd9d95748c312337600209
[ "Unlicense" ]
140
2021-06-28T06:29:19.000Z
2022-03-30T11:15:45.000Z
def baum_sweet(z): num_of_zeros = [] count_of_zeros = [] if z == "0": n = 1 else: for i in z: if i == "0": num_of_zeros.append(i) else: count_of_zeros.append(num_of_zeros.count("0")) num_of_zeros = [] count_o...
21.966667
62
0.503794
98
659
3.122449
0.295918
0.205882
0.163399
0.196078
0.326797
0.326797
0.222222
0.222222
0.222222
0
0
0.026634
0.373293
659
29
63
22.724138
0.714286
0
0
0.32
0
0
0.028832
0
0
0
0
0
0
1
0.04
false
0
0
0
0.08
0.04
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
15648f3f05ac0f6c6228e523147b6492fa7359ff
288
py
Python
huobi/aa/account_type.py
peterkang2001/Gaea
b0fb7038f55061abc79dc2b3ea2997b268cc39a6
[ "Apache-2.0" ]
null
null
null
huobi/aa/account_type.py
peterkang2001/Gaea
b0fb7038f55061abc79dc2b3ea2997b268cc39a6
[ "Apache-2.0" ]
null
null
null
huobi/aa/account_type.py
peterkang2001/Gaea
b0fb7038f55061abc79dc2b3ea2997b268cc39a6
[ "Apache-2.0" ]
null
null
null
# from aa import Enum # # class Account_Type(Enum): # SPOT = 0 # 现货账户 # OTC = 1 # OTC账户 # MARGIN = 2 # 逐仓杠杆账户,该账户类型以subType区分具体币种对账户 # SUPER = 3 # margin(或cross - margin):全仓杠杆账户 # POINT = 4 # 点卡账户 # MINEPOOL = 5 # 矿池账户 # ETF = 6 # ETF账户 # #
22.153846
50
0.527778
33
288
4.575758
0.909091
0
0
0
0
0
0
0
0
0
0
0.037634
0.354167
288
12
51
24
0.774194
0.888889
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
156ca789f384099842ba6ca65a15fbac8a66d3ef
3,859
py
Python
authentication/serializers.py
MichaelNjoroge254/Sendit
367d69c30f061dea07c7601c4015dd8322d8426b
[ "MIT" ]
null
null
null
authentication/serializers.py
MichaelNjoroge254/Sendit
367d69c30f061dea07c7601c4015dd8322d8426b
[ "MIT" ]
null
null
null
authentication/serializers.py
MichaelNjoroge254/Sendit
367d69c30f061dea07c7601c4015dd8322d8426b
[ "MIT" ]
null
null
null
from django.db.models.base import Model from rest_framework import serializers from rest_framework.utils import field_mapping from . models import User, UserManager from rest_framework.exceptions import AuthenticationFailed from django.contrib import auth from rest_framework.exceptions import AuthenticationFailed from...
37.105769
105
0.695776
422
3,859
6.246446
0.270142
0.030728
0.032246
0.055008
0.286039
0.251517
0.251517
0.2022
0.100152
0.047041
0
0.01541
0.20964
3,859
104
106
37.105769
0.848852
0.004405
0
0.253012
0
0
0.084613
0
0
0
0
0
0
1
0.060241
false
0.168675
0.13253
0.012048
0.506024
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
15722e6bff2b531a59d977733b7dcfbad85e094b
870
py
Python
iot_device_simulator/timeutil.py
paurosello/community
f2098279e908ef91a768c103841b4ecf13f6546e
[ "Apache-2.0" ]
2
2019-12-08T08:32:23.000Z
2019-12-12T11:37:24.000Z
iot_device_simulator/timeutil.py
marhak/odfe-community
c1f2802205eb11c0fdbbbef909b0e33e90ea2ad5
[ "Apache-2.0" ]
null
null
null
iot_device_simulator/timeutil.py
marhak/odfe-community
c1f2802205eb11c0fdbbbef909b0e33e90ea2ad5
[ "Apache-2.0" ]
null
null
null
''' Copyright 2019, Amazon Web Services Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
30
72
0.766667
136
870
4.882353
0.625
0.090361
0.039157
0.048193
0.066265
0
0
0
0
0
0
0.012414
0.166667
870
28
73
31.071429
0.903448
0.77931
0
0
0
0
0.073034
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
157999b938d6e8b24890fadfe31e7fc658590d35
1,489
py
Python
nzbhydra/tests/db_prepare.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
674
2015-11-06T04:22:47.000Z
2022-02-26T17:31:43.000Z
nzbhydra/tests/db_prepare.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
713
2015-11-06T10:48:58.000Z
2018-11-27T16:32:18.000Z
nzbhydra/tests/db_prepare.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
106
2015-12-07T11:21:06.000Z
2022-03-11T10:58:41.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import inspect import os import shutil import peewee from builtins import * from playhouse.sqlite_ext import SqliteExtDatabase from playhouse.sqliteq import SqliteQueueD...
31.680851
152
0.727334
168
1,489
6.303571
0.452381
0.070822
0.060434
0.02644
0
0
0
0
0
0
0
0.003263
0.176629
1,489
46
153
32.369565
0.860522
0.328408
0
0
0
0
0.095626
0.021363
0
0
0
0
0
1
0.083333
false
0.041667
0.583333
0
0.666667
0.041667
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
1594a5de479d5d5f7a36a36430ba31ef5bbf7529
1,047
py
Python
CoinbaseConnector/coinbaseconnector/utils.py
ospragg/CoinbaseConnector
febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5
[ "MIT" ]
null
null
null
CoinbaseConnector/coinbaseconnector/utils.py
ospragg/CoinbaseConnector
febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5
[ "MIT" ]
null
null
null
CoinbaseConnector/coinbaseconnector/utils.py
ospragg/CoinbaseConnector
febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import base64 import hmac import hashlib from requests.auth import AuthBase def generate_auth_headers(message, api_key, secret_key, passphrase): timestamp = str(time.time()) message = timestamp + message hmac_key = base64.b64decode(secret_key) signature = ...
27.552632
68
0.698185
137
1,047
5.094891
0.379562
0.070201
0.04298
0.074499
0.116046
0
0
0
0
0
0
0.021226
0.190067
1,047
37
69
28.297297
0.801887
0.040115
0
0
1
0
0.093812
0
0
0
0
0
0
1
0.1
false
0.166667
0.166667
0
0.366667
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
1
0
0
0
0
0
2
159bcd51706f2fb03b79fd055eadc60487e05f9b
189
py
Python
steps/step01.py
teijeong/deeplearning-from-scratch
d2d237cc592c4454e4a3cc08987b64fb5823fe9e
[ "MIT" ]
null
null
null
steps/step01.py
teijeong/deeplearning-from-scratch
d2d237cc592c4454e4a3cc08987b64fb5823fe9e
[ "MIT" ]
null
null
null
steps/step01.py
teijeong/deeplearning-from-scratch
d2d237cc592c4454e4a3cc08987b64fb5823fe9e
[ "MIT" ]
null
null
null
import numpy as np class Variable: def __init__(self, data: np.ndarray) -> None: self.data = data if __name__ == '__main__': x = Variable(np.array(1.0)) print(x.data)
18.9
49
0.624339
28
189
3.785714
0.714286
0.150943
0
0
0
0
0
0
0
0
0
0.013889
0.238095
189
9
50
21
0.722222
0
0
0
0
0
0.042328
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
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
15b6b79e99c48019821e5f8d99db6cad406b8146
362
py
Python
ajax_forms/tests/forms.py
chrisspen/django-ajax-forms
da5031192a46aaa2fe3de5d6984b376755c9e429
[ "BSD-3-Clause" ]
null
null
null
ajax_forms/tests/forms.py
chrisspen/django-ajax-forms
da5031192a46aaa2fe3de5d6984b376755c9e429
[ "BSD-3-Clause" ]
29
2017-09-30T09:45:56.000Z
2021-03-01T14:40:23.000Z
ajax_forms/tests/forms.py
chrisspen/django-ajax-forms
da5031192a46aaa2fe3de5d6984b376755c9e429
[ "BSD-3-Clause" ]
9
2017-05-12T11:48:47.000Z
2018-07-13T12:07:58.000Z
from django import forms from .models import Contact #class ContactForm(forms.Form): #name = forms.CharField(max_length=50) class ContactForm(forms.Form): name = forms.CharField() email = forms.EmailField() age = forms.IntegerField() class ContactModelForm(forms.ModelForm): class Meta: m...
21.294118
42
0.69337
41
362
6
0.585366
0.130081
0.170732
0.203252
0.349594
0.349594
0.349594
0
0
0
0
0.006944
0.20442
362
16
43
22.625
0.847222
0.185083
0
0
0
0
0.023891
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
ec684c29cec63e05fe5c271d79cdf0cf8195b34d
530
py
Python
ibis/clickhouse/tests/test_types.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
ibis/clickhouse/tests/test_types.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
ibis/clickhouse/tests/test_types.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
import pytest import pandas as pd pytest.importorskip('clickhouse_driver') pytestmark = pytest.mark.clickhouse def test_column_types(alltypes): df = alltypes.execute() assert df.tinyint_col.dtype.name == 'int8' assert df.smallint_col.dtype.name == 'int16' assert df.int_col.dtype.name == 'int32' ...
29.444444
69
0.733962
75
530
5.026667
0.506667
0.148541
0.190981
0
0
0
0
0
0
0
0
0.028698
0.145283
530
17
70
31.176471
0.803532
0
0
0
0
0
0.09434
0
0
0
0
0
0.538462
1
0.076923
false
0
0.230769
0
0.307692
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
1
0
0
0
0
0
0
0
0
0
2
ec6cd0510d28ae1936e2680c37f9c33430331487
117
py
Python
abc/abc201/abc201a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc201/abc201a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc201/abc201a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
A = list(map(int, input().split())) A.sort() if A[2] - A[1] == A[1] - A[0]: print('Yes') else: print('No')
13
35
0.470085
22
117
2.5
0.681818
0.072727
0.109091
0
0
0
0
0
0
0
0
0.043956
0.222222
117
8
36
14.625
0.56044
0
0
0
0
0
0.042735
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
ec6dfd9168cb83b20497e11b47d3f3850c1eba7d
1,493
py
Python
backend/chuckwagon/models.py
kwkelly/chuckwagon
f6d3ee564b9d895195df223025ac05ef56f78e52
[ "MIT" ]
null
null
null
backend/chuckwagon/models.py
kwkelly/chuckwagon
f6d3ee564b9d895195df223025ac05ef56f78e52
[ "MIT" ]
null
null
null
backend/chuckwagon/models.py
kwkelly/chuckwagon
f6d3ee564b9d895195df223025ac05ef56f78e52
[ "MIT" ]
null
null
null
from django.contrib.gis.db import models from django.utils.timezone import now # timezone depends on value of USE_TZ env variable from django.utils import timezone class Brand(models.Model): name = models.CharField(max_length=128, blank=False) twitter_handle = models.CharField(max_length=100, blank=True) ...
30.469388
88
0.705961
191
1,493
5.350785
0.34555
0.073386
0.088063
0.117417
0.375734
0.375734
0.334638
0.205479
0.101761
0.101761
0
0.012225
0.178165
1,493
48
89
31.104167
0.820701
0.03215
0
0.363636
0
0
0.074844
0
0
0
0
0
0
1
0.151515
false
0
0.090909
0.121212
0.878788
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
ec722b1aeed5106b395d1dfc9f31482926f0f34e
352
py
Python
ex3.py
Oliviaha/python-the-hardway
680ed0594878507b368ece0e58f87a6126746dcf
[ "MIT" ]
null
null
null
ex3.py
Oliviaha/python-the-hardway
680ed0594878507b368ece0e58f87a6126746dcf
[ "MIT" ]
1
2019-11-10T17:37:00.000Z
2019-11-10T17:37:26.000Z
ex3.py
Oliviaha/python-the-hardway
680ed0594878507b368ece0e58f87a6126746dcf
[ "MIT" ]
null
null
null
# -*-coding: utf-8 -*- print "닭을 세어 봅시다." print "암탉", 25+30 / 6 print "수탉", 100-25 * 3 % 4 print "이제 달걀도 세어 봅시다." print 3+2+1-5+4%2-1 / 4+6 print "3+2 < 5-7 는 참인가요?" print 3+2 <5-7 print "3+2 는 얼마죠?", 3+2 print "5-7은 얼마죠?", 5-7 print "아하 이게 False인 이유네요" print "더 해볼까요." print "더 큰가요??", 5 > -2 print "더 크거나 같나요?", 5...
17.6
26
0.551136
83
352
2.337349
0.421687
0.051546
0.14433
0.082474
0.092784
0
0
0
0
0
0
0.16
0.21875
352
20
27
17.6
0.545455
0.056818
0
0
0
0
0.347432
0
0
0
0
0
0
0
null
null
0
0
null
null
1
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
ec74a4fd26f6d6f3e84eb0b32f9f306a3310afb5
228
py
Python
src/test/unit_tests/test_right_shift.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
null
null
null
src/test/unit_tests/test_right_shift.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
7
2019-12-27T20:59:12.000Z
2020-01-08T22:53:42.000Z
src/test/unit_tests/test_right_shift.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
null
null
null
from unittest import TestCase from spacecat.common_utils import right_shift class TestRight_shift(TestCase): def test_right_shift(self): to_shift = "1111" self.assertEqual("0011", right_shift(to_shift, 2))
25.333333
58
0.741228
31
228
5.193548
0.612903
0.186335
0
0
0
0
0
0
0
0
0
0.047872
0.175439
228
8
59
28.5
0.808511
0
0
0
0
0
0.035088
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
ec83603dc2f5de5383a2e5ca4b3ee0943e8df88f
1,270
py
Python
hall-of-fame/round-03/05_ArfiTech/team.py
sihumji00/cau-osp2020-game
bf832c576e3ec6b7b6fd86f4a6945943de0b0a3c
[ "Apache-2.0" ]
17
2020-12-08T14:33:01.000Z
2020-12-17T15:50:59.000Z
hall-of-fame/round-03/05_ArfiTech/team.py
sihumji00/cau-osp2020-game
bf832c576e3ec6b7b6fd86f4a6945943de0b0a3c
[ "Apache-2.0" ]
2
2020-11-26T12:21:53.000Z
2020-12-02T07:07:24.000Z
hall-of-fame/round-03/05_ArfiTech/team.py
sihumji00/cau-osp2020-game
bf832c576e3ec6b7b6fd86f4a6945943de0b0a3c
[ "Apache-2.0" ]
79
2020-11-26T00:43:18.000Z
2020-12-18T14:18:37.000Z
from loa.team import Team def get_team(): return LittleLyrical("LittleLyrical") class LittleLyrical(Team): def arrange(self, enemy: Team): first_unit = self.units[0] for i in range(self.num_positions - 1): j = i + 1 self.units[i] = self.units[j] ...
28.863636
55
0.462205
161
1,270
3.596273
0.21118
0.326425
0.241796
0.124352
0.625216
0.569948
0.518135
0.518135
0.469775
0.369603
0
0.022973
0.417323
1,270
43
56
29.534884
0.759459
0.007874
0
0.4
0
0
0.010334
0
0
0
0
0
0
1
0.066667
false
0
0.033333
0.033333
0.166667
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
ec9c34f157ba2eac91b3d93431126478f7f42798
511
py
Python
molmodmt/utils/selection.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
molmodmt/utils/selection.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
molmodmt/utils/selection.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
def parse_selection(selection,syntaxis="mdtraj"): from molmodmt.topology import ion_residues if syntaxis=="mdtraj": selection=selection.replace("dna","(resname DA DG DC DT DI)") selection=selection.replace("rna","(resname A G C U I)") selection=selection.replace("ion",'(resname '+' '....
36.5
115
0.639922
63
511
5.126984
0.52381
0.278638
0.309598
0.099071
0.210526
0.210526
0.210526
0.210526
0.210526
0
0
0
0.166341
511
13
116
39.307692
0.758216
0
0
0
0
0
0.194118
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
eca5a1c5f1cda002d846fcbdcac9c31044bff804
8,235
py
Python
src/test-decapod-genpdf.py
amitdo/decapod.genpdf
021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76
[ "Apache-2.0" ]
null
null
null
src/test-decapod-genpdf.py
amitdo/decapod.genpdf
021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76
[ "Apache-2.0" ]
null
null
null
src/test-decapod-genpdf.py
amitdo/decapod.genpdf
021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import time import getopt import shlex, subprocess, tempfile def main(sysargv): testDes = [] # descriptions of the tests testOut = [] # retur values of the tests testExp = [] # expected return values of the tests testCmd = [] # co...
35.960699
92
0.571342
1,040
8,235
4.516346
0.149038
0.070258
0.057909
0.065148
0.772621
0.728337
0.662763
0.645731
0.641047
0.599745
0
0.025008
0.213358
8,235
228
93
36.118421
0.700062
0.160777
0
0.60989
0
0
0.292828
0.003194
0
0
0
0
0
0
null
null
0
0.027473
null
null
0.126374
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
eca5a506fa126645e7a9f317196aec70ebefa132
9,242
py
Python
mulearn/kernel.py
vishalbelsare/mulearn
9a794abe8788b17993cfd58a17ca44f5de6984cf
[ "Apache-2.0" ]
2
2021-07-23T09:43:33.000Z
2021-08-23T20:46:00.000Z
mulearn/kernel.py
vishalbelsare/mulearn
9a794abe8788b17993cfd58a17ca44f5de6984cf
[ "Apache-2.0" ]
null
null
null
mulearn/kernel.py
vishalbelsare/mulearn
9a794abe8788b17993cfd58a17ca44f5de6984cf
[ "Apache-2.0" ]
2
2020-05-01T07:42:41.000Z
2021-08-23T20:46:02.000Z
"""Kernel implementation. This module implements the kernel used in mulearn. """ import numpy as np class Kernel: """Base kernel class.""" def __init__(self): """Create an instance of :class:`Kernel`.""" self.precomputed = False self.kernel_computations = None def compute(self,...
32.090278
79
0.604631
1,158
9,242
4.645941
0.151123
0.020074
0.04684
0.054647
0.479182
0.446097
0.424164
0.39368
0.385502
0.371933
0
0.015002
0.285977
9,242
287
80
32.202091
0.800273
0.471868
0
0.201835
0
0
0.117883
0.034863
0
0
0
0
0
1
0.229358
false
0
0.009174
0
0.504587
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
ecaae9b03468e6304f02df581086de6fc888491a
152
py
Python
accepted/486A.py
cbarnson/codeforces-python
3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c
[ "Unlicense", "MIT" ]
1
2019-09-07T17:01:33.000Z
2019-09-07T17:01:33.000Z
accepted/486A.py
cbarnson/codeforces-python
3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c
[ "Unlicense", "MIT" ]
null
null
null
accepted/486A.py
cbarnson/codeforces-python
3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c
[ "Unlicense", "MIT" ]
null
null
null
# 486A - Calculating Function # http://codeforces.com/problemset/problem/486/A n = int(input()) ans = ((n + 1) // 2) * (-1 if n & 1 else 1) print(ans)
21.714286
48
0.618421
25
152
3.76
0.76
0.042553
0
0
0
0
0
0
0
0
0
0.088
0.177632
152
6
49
25.333333
0.664
0.486842
0
0
0
0
0
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
ecad9b0323eb30d3ba4bdf94306b9f59f9546d07
281
py
Python
utils.py
jacenfox/pytorch-training-framework
771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4
[ "MIT" ]
null
null
null
utils.py
jacenfox/pytorch-training-framework
771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4
[ "MIT" ]
null
null
null
utils.py
jacenfox/pytorch-training-framework
771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4
[ "MIT" ]
null
null
null
import numpy as np import math def time_elapse_parser(time_elapsed): # time_elapsed = time.time() - start_time m_elapsed, s_elapsed = divmod(time_elapsed, 60) h_elapsed, m_elapsed = divmod(m_elapsed, 60) return '%d:%02d:%02d' % (h_elapsed, m_elapsed, s_elapsed)
25.545455
61
0.715302
44
281
4.25
0.431818
0.171123
0.160428
0.171123
0
0
0
0
0
0
0
0.034483
0.174377
281
10
62
28.1
0.771552
0.13879
0
0
0
0
0.050209
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
ecb3cf2ee7d709c516ad3d6fdd036750e84f3da1
1,188
py
Python
app/repository/page_repository.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
11
2015-04-23T21:57:56.000Z
2019-04-28T12:48:58.000Z
app/repository/page_repository.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
1
2016-10-05T14:10:58.000Z
2016-10-05T14:12:23.000Z
app/repository/page_repository.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
3
2016-10-05T14:00:42.000Z
2019-01-16T14:33:43.000Z
from app import db from app.models.group import Group from app.models.page import Page, PageReadPermission def get_read_permission_groups_by_page(page): return db.session.query(Group) \ .join(PageReadPermission) \ .filter(PageReadPermission.page == page) \ .all() def add_page_group_read_...
28.285714
71
0.72138
150
1,188
5.513333
0.226667
0.108827
0.067715
0.166868
0.440145
0.251511
0.251511
0
0
0
0
0
0.169192
1,188
41
72
28.97561
0.837893
0
0
0.275862
0
0
0.008418
0
0
0
0
0
0
1
0.206897
false
0
0.103448
0.068966
0.37931
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
ecb9fc3eb4af0c3744f4d570fe01f50eb2a46525
353
py
Python
Python/encontra_impares.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
Python/encontra_impares.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
Python/encontra_impares.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
# Encontrando ímpares em uma lista def encontra_impares(lista, lista_impares = None): if lista_impares == None: lista_impares = [] if len(lista) < 1: return [] else: if lista[0]%2 != 0: lista_impares.extend([lista[0]]) encontra_impares(lista[1:], lista_impares) ...
25.214286
58
0.597734
43
353
4.72093
0.395349
0.35468
0.197044
0
0
0
0
0
0
0
0
0.024096
0.294618
353
13
59
27.153846
0.791165
0.090652
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
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
ecba8b7698e1a2bbb48d56ba91fd2aa14fe731f5
1,236
py
Python
gge_proxy_manager/management/commands/clean_duplicates.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
null
null
null
gge_proxy_manager/management/commands/clean_duplicates.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
1
2015-04-09T15:58:19.000Z
2015-04-14T06:37:02.000Z
gge_proxy_manager/management/commands/clean_duplicates.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.core.management.base import BaseCommand, CommandError from gge_proxy_manager.methods import clean_duplicate_alliances, clean_duplicate_castles, clean_duplicate_players from gge_proxy_manager.models import Castle, Player, Alliance from django.utils.timezone import now...
37.454545
115
0.696602
154
1,236
5.38961
0.383117
0.151807
0.083133
0.083133
0.292771
0.136145
0.101205
0.101205
0.101205
0
0
0.001998
0.190129
1,236
33
115
37.454545
0.827173
0.04288
0
0
0
0
0.193903
0
0
0
0
0
0
0
null
null
0
0.238095
null
null
0.428571
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
ecbab1ca9b545730a74f300e7a921cd892b9aec6
995
py
Python
events/migrations/0001_initial.py
homosaur/stl-dsa
ccc32398ca5a7a849b7860e574a8a3f49b3bed75
[ "MIT" ]
null
null
null
events/migrations/0001_initial.py
homosaur/stl-dsa
ccc32398ca5a7a849b7860e574a8a3f49b3bed75
[ "MIT" ]
null
null
null
events/migrations/0001_initial.py
homosaur/stl-dsa
ccc32398ca5a7a849b7860e574a8a3f49b3bed75
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2020-03-02 10:22 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Event', fields=[ ('id', models.AutoField(au...
32.096774
114
0.540704
94
995
5.617021
0.62766
0.113636
0.136364
0.181818
0.098485
0
0
0
0
0
0
0.033626
0.312563
995
30
115
33.166667
0.738304
0.045226
0
0
1
0
0.088608
0
0
0
0
0
0
1
0
false
0
0.043478
0
0.217391
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
eccee2d9721694209ab951d349b8a65cdea70532
22,944
py
Python
pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-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-IP-NW-DISCOVERY-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-IP-NW-DISCOVERY-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-IP-NW-DISCOVERY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IP-NW-DISCOVERY-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:02:10 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3....
206.702703
1,826
0.802868
2,671
22,944
6.895919
0.154624
0.032575
0.057006
0.006949
0.424616
0.294424
0.259569
0.235789
0.191324
0.178511
0
0.033993
0.098631
22,944
110
1,827
208.581818
0.856632
0.014993
0
0.039604
0
0.178218
0.515958
0.130893
0
0
0
0
0
1
0
false
0
0.09901
0
0.09901
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
eccf13ca0d1a710475435bedf4a8059c9f65f162
3,701
py
Python
python/hsfs/core/feature_group_base.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
python/hsfs/core/feature_group_base.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
python/hsfs/core/feature_group_base.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020 Logical Clocks AB # # 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 ag...
32.752212
91
0.636315
484
3,701
4.760331
0.303719
0.088542
0.041667
0.057292
0.391493
0.345486
0.311632
0.261719
0.215278
0.215278
0
0.003076
0.297217
3,701
112
92
33.044643
0.882737
0.61659
0
0.090909
0
0
0
0
0
0
0
0
0
1
0.318182
false
0
0.045455
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ecd428458267aa04e972ffb127dbe76ea7b0f91c
315
py
Python
linebot/__init__.py
WhereWeCanShare/linebot
ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7
[ "BSD-3-Clause" ]
null
null
null
linebot/__init__.py
WhereWeCanShare/linebot
ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7
[ "BSD-3-Clause" ]
null
null
null
linebot/__init__.py
WhereWeCanShare/linebot
ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask, Blueprint from .settings import Setting from .routes import main from .line2telegram.routes import l2tg def create_app(): app = Flask(__name__) app.config.from_object(Setting) app.register_blueprint(main) app.register_blueprint(l2tg, url_prefix='/l2tg') return app
19.6875
52
0.749206
42
315
5.404762
0.47619
0.105727
0.176211
0
0
0
0
0
0
0
0
0.015267
0.168254
315
15
53
21
0.851145
0
0
0
0
0
0.015873
0
0
0
0
0
0
1
0.1
false
0
0.4
0
0.6
0.3
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
ecde65669f4bedead3c07c5ea0c8b548eae55547
274
py
Python
examples/tutorial/Hello World/hello_world_simple.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
examples/tutorial/Hello World/hello_world_simple.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
examples/tutorial/Hello World/hello_world_simple.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
import geosoft.gxpy as gxpy # a GX context is required, and must be assigned to a variable that persists through the life of execution. gxc = gxpy.gx.GXpy() # gid is a property of the context that holds the user's Geosoft ID. Say hello. print('Hello {}'.format(gxc.gid))
34.25
107
0.740876
49
274
4.142857
0.673469
0
0
0
0
0
0
0
0
0
0
0
0.175182
274
7
108
39.142857
0.89823
0.671533
0
0
0
0
0.091954
0
0
0
0
0
0
1
0
false
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
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
ecef158be8b2811acbb68437f98daaadc77358fd
521
py
Python
api/migrations/0007_auto_20181214_0439.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
null
null
null
api/migrations/0007_auto_20181214_0439.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
9
2019-08-06T02:02:54.000Z
2021-09-08T00:41:31.000Z
api/migrations/0007_auto_20181214_0439.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2018-12-14 04:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0006_auto_20181214_0019'), ] operations = [ migrations.AlterField( model_name='post', name='created_at', ...
21.708333
47
0.56238
51
521
5.607843
0.686275
0.13986
0.174825
0.202797
0.258741
0.258741
0
0
0
0
0
0.087819
0.322457
521
23
48
22.652174
0.72238
0.086372
0
0.470588
1
0
0.113924
0.048523
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
ecf2e06543a14fb924a2fb9fd6fb42ef3f9435a6
547
py
Python
client/terminal.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
5,975
2018-05-11T15:54:32.000Z
2022-03-31T14:38:00.000Z
client/terminal.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
524
2018-05-11T16:47:20.000Z
2022-03-22T17:43:06.000Z
client/terminal.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
501
2018-05-11T16:46:29.000Z
2022-03-19T04:41:57.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import sys from typing import TextIO def is_capable(file: TextIO = sys.stderr) -> bool: """ Determine whether we are conne...
27.35
65
0.689214
79
547
4.759494
0.696203
0.053191
0
0
0
0
0
0
0
0
0
0
0.21755
547
19
66
28.789474
0.878505
0.489945
0
0
0
0
0.065637
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
019fe14b196eb5bbb4dfe787d8a050ae5287690f
380
py
Python
model/__init__.py
aupendu/zero-restore
7d2f44eb008ef47042a3a5b0e0a2654731e22f53
[ "MIT" ]
13
2021-06-15T12:39:44.000Z
2022-03-07T15:33:40.000Z
model/__init__.py
aupendu/zero-restore
7d2f44eb008ef47042a3a5b0e0a2654731e22f53
[ "MIT" ]
4
2021-06-19T07:53:09.000Z
2022-01-12T15:41:52.000Z
model/__init__.py
aupendu/zero-restore
7d2f44eb008ef47042a3a5b0e0a2654731e22f53
[ "MIT" ]
4
2021-08-01T08:51:38.000Z
2022-02-22T05:12:03.000Z
import os import torch import torch.nn as nn from importlib import import_module class Model(nn.Module): def __init__(self, modelname): super(Model, self).__init__() print('Making model...') module = import_module('model.' + modelname) self.model = module.make_mode...
22.352941
52
0.623684
47
380
4.808511
0.446809
0.097345
0
0
0
0
0
0
0
0
0
0
0.268421
380
16
53
23.75
0.81295
0
0
0
0
0
0.055263
0
0
0
0
0
0
1
0.166667
false
0
0.416667
0.083333
0.75
0.083333
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
01a16a425c553405c970ba2b0d169dec70571e71
805
py
Python
WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py
sak9188/WinIO2
629a91633142cd78fd55422f9884b7f15f1d4e1d
[ "Apache-2.0" ]
1
2022-03-20T23:19:24.000Z
2022-03-20T23:19:24.000Z
WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py
sak9188/WinIO2
629a91633142cd78fd55422f9884b7f15f1d4e1d
[ "Apache-2.0" ]
null
null
null
WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py
sak9188/WinIO2
629a91633142cd78fd55422f9884b7f15f1d4e1d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- from WinIO.Controls import ReuseWindow from WinIO.Core import PyDelegateConverter as PyDel from WinIO2.Core.FunctionTool import FunctionChain class AcrylicWindowStyle(object): Normal = 0 NoIcon = 1 Null = 2 class BlankWindow(ReuseWindow): def __init__(self): self.after_hidden = Functi...
18.295455
61
0.737888
104
805
5.634615
0.403846
0.056314
0.071672
0
0
0
0
0
0
0
0
0.007407
0.161491
805
44
62
18.295455
0.860741
0.026087
0
0.096774
0
0
0
0
0
0
0
0
0
1
0.258065
false
0
0.096774
0.096774
0.612903
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
01a2fc10e366d654cb931d27945bf9ef998b5a2a
21,634
py
Python
tor4/tensor.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
tor4/tensor.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
tor4/tensor.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
from typing import ( Any, Callable, List, NamedTuple, Optional, Tuple, Type, Union, overload, ) import numpy as np from scipy import special Array = Union[np.ndarray] Numeric = Union[int, float] # Lists = Union[Numeric, List['Lists']] Tuplist = Union[Tuple[int, ...], List[int]] Dim...
26.841191
122
0.623278
2,779
21,634
4.668586
0.080964
0.104517
0.025435
0.03006
0.626561
0.565207
0.527362
0.497996
0.471713
0.468938
0
0.004411
0.266386
21,634
805
123
26.874534
0.813055
0.014422
0
0.416988
0
0
0.037682
0.001642
0
0
0
0
0.009653
1
0.214286
false
0
0.005792
0.100386
0.420849
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
01ab53ae5bc82ce4bbeea09d61801f03d76fc4d6
729
py
Python
tortoise/contrib/test/condition.py
Alirezaja1384/tortoise-orm
e7ecbc81d43860a3b0b6d5d9da27497ed6234049
[ "Apache-2.0" ]
33
2018-04-07T09:50:22.000Z
2018-08-24T10:25:29.000Z
tortoise/contrib/test/condition.py
Alirezaja1384/tortoise-orm
e7ecbc81d43860a3b0b6d5d9da27497ed6234049
[ "Apache-2.0" ]
41
2018-03-29T17:09:18.000Z
2018-08-24T16:37:38.000Z
tortoise/contrib/test/condition.py
Alirezaja1384/tortoise-orm
e7ecbc81d43860a3b0b6d5d9da27497ed6234049
[ "Apache-2.0" ]
4
2018-06-27T08:45:11.000Z
2018-07-30T18:16:55.000Z
from typing import Any class Condition: def __init__(self, value: Any): self.value = value class NotEQ(Condition): def __eq__(self, other: Any): return self.value != other def __str__(self): return f"<!={self.value}>" class In(Condition): def __init__(self, *args: Any): ...
19.702703
41
0.609053
97
729
4.123711
0.216495
0.18
0.11
0.15
0.6
0.5575
0.5
0.34
0.2
0.2
0
0
0.263374
729
36
42
20.25
0.744879
0
0
0.347826
0
0
0.074074
0
0
0
0
0
0
1
0.391304
false
0
0.043478
0.26087
0.869565
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
01b4dc4de6e91f68656b6a74509b9ace0bd38359
1,918
py
Python
pyceo/pastel/stack.py
jpsca/pyceo
8d8767514347848b4f045d04ce6e9fbb96a8d60f
[ "MIT" ]
15
2020-09-30T22:41:09.000Z
2021-12-30T16:38:42.000Z
proper_cli/pastel/stack.py
jpsca/proper-cli
038f7273323bbf1880e30e4c3be19378e3e00df2
[ "MIT" ]
null
null
null
proper_cli/pastel/stack.py
jpsca/proper-cli
038f7273323bbf1880e30e4c3be19378e3e00df2
[ "MIT" ]
1
2021-07-24T04:10:01.000Z
2021-07-24T04:10:01.000Z
""" Copyright (c) 2018 Sébastien Eustace Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
33.068966
70
0.708029
274
1,918
4.908759
0.463504
0.074349
0.041636
0.017844
0.056506
0.056506
0.056506
0.056506
0.056506
0
0
0.004046
0.226799
1,918
57
71
33.649123
0.9029
0.552659
0
0.173913
0
0
0.041225
0
0
0
0
0
0
1
0.217391
false
0
0.043478
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
01b64a5b8b1712b8bbe3a1fc3194b71d68d732a0
493
py
Python
tests/test_add_metadata_route.py
lsst-sqre/sqre-apikit
0d267f0d35a959e196b490a3cbb3aad0e0acdf03
[ "MIT" ]
null
null
null
tests/test_add_metadata_route.py
lsst-sqre/sqre-apikit
0d267f0d35a959e196b490a3cbb3aad0e0acdf03
[ "MIT" ]
null
null
null
tests/test_add_metadata_route.py
lsst-sqre/sqre-apikit
0d267f0d35a959e196b490a3cbb3aad0e0acdf03
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Test add_metadata_route function with legal parameters. """ import apikit from flask import Flask def test_set_flask_metadata(): """Test metadata creation with legal parameters. """ app = Flask("bob") apikit.set_flask_metadata(app, "2.0", "http://example.repo", "BobApp") a...
29
74
0.697769
67
493
4.910448
0.41791
0.167173
0.243161
0.267477
0.331307
0.255319
0.255319
0.255319
0.255319
0.255319
0
0.004773
0.150101
493
16
75
30.8125
0.78043
0.257606
0
0
0
0
0.127119
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
01b6c2d8b92674f99f55d4198010e87b3a7c726a
3,096
py
Python
Bugscan_exploits-master/exp_list/exp-2458.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-2458.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-2458.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#/usr/bin/python #-*- coding: utf-8 -*- #Refer: 0day 这么多注入总有一个适合你 import time def assign(service, arg): if service == "rockoa": return True, arg def test_inj_get(url): payload = "' AND (SELECT * FROM (SELECT(SLEEP(7)))MDqI) AND 'geIm'='geIm" verify = url + payload time1 = time...
42.410959
112
0.583333
437
3,096
4.075515
0.258581
0.058956
0.067378
0.050533
0.56822
0.518248
0.433464
0.433464
0.411005
0.385738
0
0.026695
0.237726
3,096
73
113
42.410959
0.727542
0.01938
0
0.40625
0
0.21875
0.378588
0.305978
0
0
0
0
0
0
null
null
0
0.03125
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
1
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
01bb8846e49fe494aa95112df0a29c0432c51267
2,097
py
Python
MediaCatalog/media_catalog/serializers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
MediaCatalog/media_catalog/serializers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
MediaCatalog/media_catalog/serializers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
from django.contrib.auth.models import User, Group from rest_framework import serializers from rest_framework.serializers import StringRelatedField from drf_haystack.serializers import HaystackSerializer from . models import Media, MediaPublish, Category, Creator, Provider, MediaUser from . search_indexes import Med...
26.884615
80
0.733906
198
2,097
7.671717
0.333333
0.053325
0.073733
0.181698
0.370639
0.123107
0.096774
0
0
0
0
0
0.164044
2,097
77
81
27.233766
0.866515
0
0
0.160714
0
0
0.106017
0
0
0
0
0
0
1
0
false
0
0.107143
0
0.517857
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
01cc0d8c1cafeb4c50dbdebb8736e0f6d7e35751
1,130
py
Python
Azure_DataScientist_Associate/Exercise/Exe11_math_number.py
Jiaying-Wu/Note-Azure
f8f0b917debf735ad238e69361cc77799c1b8f5e
[ "MIT" ]
null
null
null
Azure_DataScientist_Associate/Exercise/Exe11_math_number.py
Jiaying-Wu/Note-Azure
f8f0b917debf735ad238e69361cc77799c1b8f5e
[ "MIT" ]
null
null
null
Azure_DataScientist_Associate/Exercise/Exe11_math_number.py
Jiaying-Wu/Note-Azure
f8f0b917debf735ad238e69361cc77799c1b8f5e
[ "MIT" ]
null
null
null
# mathematical operations first_value = 5 second_value = 4 sum = first_value + second_value difference = first_value - second_value product = first_value * second_value quotient = first_value / second_value modulus = first_value % second_value exponent = first_value ** second_value print('Sum: ' + str(sum)) print('D...
19.824561
41
0.726549
169
1,130
4.727811
0.272189
0.137672
0.1602
0.210263
0.334168
0.222778
0.165207
0.165207
0.165207
0.102628
0
0.040123
0.139823
1,130
57
42
19.824561
0.781893
0.145133
0
0.461538
0
0
0.057292
0
0
0
0
0
0
1
0
false
0
0
0
0
0.564103
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
01d34093e5c9e7f4544e25b1fde1111ea81ea296
3,098
py
Python
tests/test_pj_categories.py
QwantResearch/idunn
88b6862f1036187855b5541bbb6758ddd4df33c1
[ "Apache-2.0" ]
26
2018-11-30T09:17:17.000Z
2020-11-07T01:53:07.000Z
tests/test_pj_categories.py
QwantResearch/idunn
88b6862f1036187855b5541bbb6758ddd4df33c1
[ "Apache-2.0" ]
38
2018-06-08T09:41:04.000Z
2020-12-07T17:39:12.000Z
tests/test_pj_categories.py
Qwant/idunn
65582dfed732093778bf7c2998db1e2cd78255b8
[ "Apache-2.0" ]
9
2018-05-18T13:07:00.000Z
2020-08-01T16:42:40.000Z
from idunn.places import PjApiPOI from idunn.places.models import pj_info def test_categories_pj(): poi = PjApiPOI(pj_info.Response(**{"categories": []})) assert poi.get_class_name() is None assert poi.get_subclass_name() is None poi = PjApiPOI(pj_info.Response(**{"categories": [{"category_name": "re...
36.447059
100
0.611039
335
3,098
5.385075
0.191045
0.13969
0.186253
0.131929
0.716186
0.366962
0.347561
0.347561
0.060976
0.060976
0
0
0.222079
3,098
84
101
36.880952
0.748548
0
0
0.15942
0
0
0.24887
0
0
0
0
0
0.405797
1
0.014493
false
0
0.028986
0
0.043478
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
1
0
0
0
0
0
0
0
0
0
2
01f740df8599560ff474d7854131e8adb9839b1d
160
py
Python
AtCoder/ABC049/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
1
2018-11-25T04:15:45.000Z
2018-11-25T04:15:45.000Z
AtCoder/ABC049/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
null
null
null
AtCoder/ABC049/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
2
2018-08-08T13:01:14.000Z
2018-11-25T12:38:36.000Z
S = input() S = S.replace("eraser", "").replace("erase", "").replace("dreamer", "").replace("dream", "") if len(S) == 0: print("YES") else: print("NO")
22.857143
92
0.53125
21
160
4.047619
0.666667
0
0
0
0
0
0
0
0
0
0
0.007407
0.15625
160
6
93
26.666667
0.622222
0
0
0
0
0
0.175
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
bf0fb5acc22e80083158c297652c5fa26da2e18c
5,697
py
Python
rrhood.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
rrhood.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
rrhood.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
from collections import defaultdict import string CHARACTERS = ['Red Riding Hood', # we're omitting 'mother' here for simplicity # (= substring grandmother) ('Grandmother', 'Grandma', 'Granny'), 'wolf', 'woodsman'] text = """ Once upon a time, there was a little...
68.638554
259
0.72073
944
5,697
4.325212
0.384534
0.039677
0.054127
0.069802
0.098947
0.086701
0.062699
0.040656
0.040656
0.023512
0
0.000224
0.21485
5,697
83
260
68.638554
0.912587
0.081973
0
0.033898
0
0.40678
0.813091
0
0
0
0
0
0
1
0.016949
false
0.016949
0.050847
0
0.084746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bf12f48a688a99e455dd7e4337c4da0fd88a8ec6
4,727
py
Python
src/ultros/core/storage/config/yaml_roundtrip.py
UltrosBot/Ultros3K
3aac86beecf94ff1391ca993eafaaf55e513b965
[ "Artistic-2.0" ]
11
2016-06-29T11:54:42.000Z
2020-11-02T00:09:41.000Z
src/ultros/core/storage/config/yaml_roundtrip.py
UltrosBot/Ultros3K
3aac86beecf94ff1391ca993eafaaf55e513b965
[ "Artistic-2.0" ]
4
2016-06-29T12:11:25.000Z
2017-03-21T15:24:32.000Z
src/ultros/core/storage/config/yaml_roundtrip.py
UltrosBot/Ultros3K
3aac86beecf94ff1391ca993eafaaf55e513b965
[ "Artistic-2.0" ]
null
null
null
# coding=utf-8 """ Class for YAML-based (roundtrip) configurations This is a mutable configuration that keeps track of both structure and comments, and allows you to add comments in certain circumstances as well. To make use of this, make sure you use the `fmt` argument of the `get_config()` function in the storage ...
25.690217
119
0.632748
579
4,727
4.962003
0.286701
0.072398
0.092586
0.037591
0.140968
0.093978
0.046641
0
0
0
0
0.002573
0.259996
4,727
183
120
25.830601
0.818754
0.280939
0
0
0
0
0.034128
0
0
0
0
0
0
1
0.362319
false
0
0.086957
0.130435
0.753623
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
bf295ca777715f6aa9e9a9220331a760cad03d41
980
py
Python
clickhouse_driver/columns/tuplecolumn.py
xzkostyan/clickhouse-driver
9a8b4a0706d78ee9952737a9b277f448acf3eaf0
[ "MIT" ]
null
null
null
clickhouse_driver/columns/tuplecolumn.py
xzkostyan/clickhouse-driver
9a8b4a0706d78ee9952737a9b277f448acf3eaf0
[ "MIT" ]
null
null
null
clickhouse_driver/columns/tuplecolumn.py
xzkostyan/clickhouse-driver
9a8b4a0706d78ee9952737a9b277f448acf3eaf0
[ "MIT" ]
null
null
null
from .base import Column from .util import get_inner_spec, get_inner_columns class TupleColumn(Column): py_types = (list, tuple) def __init__(self, nested_columns, **kwargs): self.nested_columns = nested_columns super(TupleColumn, self).__init__(**kwargs) def write_data(self, items, buf...
28
69
0.681633
144
980
4.333333
0.263889
0.089744
0.108974
0.054487
0.054487
0
0
0
0
0
0
0
0.210204
980
34
70
28.823529
0.806202
0
0
0
0
0
0.005107
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.090909
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
1
0
0
0
0
1
0
0
2
bf3c0cb0df6b706d99fdac9f82ea5ed8b6f1d695
454
py
Python
accounts/models.py
Chetnasahay/FireFox
f79b2ea5b03a5e591d9e0837881f4f1811e40ea1
[ "MIT" ]
null
null
null
accounts/models.py
Chetnasahay/FireFox
f79b2ea5b03a5e591d9e0837881f4f1811e40ea1
[ "MIT" ]
null
null
null
accounts/models.py
Chetnasahay/FireFox
f79b2ea5b03a5e591d9e0837881f4f1811e40ea1
[ "MIT" ]
1
2021-05-11T12:05:24.000Z
2021-05-11T12:05:24.000Z
from django.db import models # Create your models here. class organization(models.Model): username = models.CharField(max_length=1000) email= models.URLField() img= models.ImageField( upload_to='pics',null=True,blank=True) # number = models.IntegerField() password= models.CharField(max_length=200)...
32.428571
66
0.737885
58
454
5.724138
0.586207
0.072289
0.11747
0.153614
0
0
0
0
0
0
0
0.017949
0.140969
454
13
67
34.923077
0.833333
0.121145
0
0
0
0
0.010101
0
0
0
0
0
0
1
0
false
0.111111
0.111111
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
1
0
0
1
0
0
2
1724b372c51eac0a72bead9ebc774a9fc7671773
1,868
py
Python
acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
8
2018-09-14T01:34:01.000Z
2021-07-01T02:00:23.000Z
acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
3
2019-09-10T11:39:50.000Z
2019-10-10T08:26:22.000Z
acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
9
2018-10-11T15:14:03.000Z
2021-02-17T11:37:20.000Z
''' Copyright (C) 2018 Intel Corporation ? Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ? http://www.apache.org/licenses/LICENSE-2.0 ? Unless required by applicable law or agreed to in writing, so...
25.243243
91
0.633833
280
1,868
4.132143
0.439286
0.051858
0.060501
0.027658
0
0
0
0
0
0
0
0.012802
0.247323
1,868
73
92
25.589041
0.8101
0.320664
0
0
0
0
0.071372
0
0
0
0
0
0
1
0.219512
false
0
0.02439
0.146341
0.439024
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
17423e053f3c9b2038d99ecf3e00f75df52099d6
1,814
py
Python
opencv-2.4.11/samples/python/convexhull.py
durai-chellamuthu/node-opencv
a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3
[ "MIT" ]
55
2015-06-20T20:15:33.000Z
2022-02-10T02:45:14.000Z
opencv-2.4.11/samples/python/convexhull.py
durai-chellamuthu/node-opencv
a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3
[ "MIT" ]
8
2015-06-20T18:46:52.000Z
2015-10-31T11:08:04.000Z
opencv-2.4.11/samples/python/convexhull.py
durai-chellamuthu/node-opencv
a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3
[ "MIT" ]
73
2015-06-20T15:59:27.000Z
2020-03-15T22:43:36.000Z
#! /usr/bin/env python print "OpenCV Python version of convexhull" # import the necessary things for OpenCV import cv2.cv as cv # to generate random values import random # how many points we want at max _MAX_POINTS = 100 if __name__ == '__main__': # main object to get random values from my_random = random...
27.484848
75
0.574972
246
1,814
4.150407
0.455285
0.019589
0.049951
0.052889
0.109696
0.078355
0.078355
0.078355
0.078355
0.078355
0
0.037438
0.337376
1,814
65
76
27.907692
0.81198
0.309261
0
0.068966
1
0
0.041296
0
0
0
0.004049
0
0
0
null
null
0
0.068966
null
null
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
174437ebe7a3e726cb780435f71ba8286739cd0d
27,514
py
Python
mavsdk/mission_raw_server_pb2.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
mavsdk/mission_raw_server_pb2.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
mavsdk/mission_raw_server_pb2.py
PML-UCF/MAVSDK-Python
a328834518621842f530804572ecb3baeec31805
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mission_raw_server/mission_raw_server.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.protobuf import message as _me...
39.702742
2,987
0.775096
3,159
27,514
6.428933
0.095283
0.048747
0.076419
0.062682
0.61293
0.572849
0.51972
0.503964
0.429169
0.396967
0
0.03423
0.112343
27,514
692
2,988
39.760116
0.797322
0.047031
0
0.626603
1
0.001603
0.276735
0.251279
0
0
0
0
0
1
0
false
0
0.009615
0
0.009615
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
17553a498d4907cf69fd13bc2a596ad111d2d7ca
219
py
Python
cupcake/config/__init__.py
billyeatcookies/cupcake
2f2d1d5f8a1a454e50283547cf433cc82d1825d6
[ "MIT" ]
3
2022-03-29T12:55:24.000Z
2022-03-30T17:06:11.000Z
cupcake/config/__init__.py
billyeatcookies/Cupcake
2f2d1d5f8a1a454e50283547cf433cc82d1825d6
[ "MIT" ]
null
null
null
cupcake/config/__init__.py
billyeatcookies/Cupcake
2f2d1d5f8a1a454e50283547cf433cc82d1825d6
[ "MIT" ]
null
null
null
from tkinter import font class Config: def __init__(self, master, *args, **kwargs): self.master = master self.font = font.Font( family="Consolas", size=11, weight="normal")
21.9
48
0.579909
25
219
4.92
0.72
0.162602
0
0
0
0
0
0
0
0
0
0.013072
0.30137
219
9
49
24.333333
0.79085
0
0
0
0
0
0.063927
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
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
17609d169bbc79d752bdaa535b186028a8ee38c2
1,752
py
Python
sports/excel.py
liliangbin/spider
05080e862f204ce139249f07787de43781e39887
[ "Apache-2.0" ]
null
null
null
sports/excel.py
liliangbin/spider
05080e862f204ce139249f07787de43781e39887
[ "Apache-2.0" ]
null
null
null
sports/excel.py
liliangbin/spider
05080e862f204ce139249f07787de43781e39887
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import xlrd import MySQLdb import datetime xlsfile = r'li.xlsx' book = xlrd.open_workbook(xlsfile) # 获取sheet的数量 count = len(book.sheets()) sheet = book.sheets()[0] # 设置连接数据库 database = MySQLdb.connect(host="yb.upc.edu.cn", port=3306, user="yibantest", passwd="yibantest", ...
23.675676
240
0.671233
241
1,752
4.809129
0.373444
0.100949
0.112166
0.034513
0.262295
0.240725
0.185505
0.185505
0.185505
0.185505
0
0.019417
0.176941
1,752
73
241
24
0.784327
0.030822
0
0
0
0.02381
0.216312
0.073877
0
0
0
0
0
0
null
null
0.095238
0.071429
null
null
0.071429
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
176fd12839e770c97951f5799e322a7e99606c06
10,613
py
Python
github_update_dara.py
9bstudios/mecco_dara
9c460a10e6bf4c3485e602ecbacdeacefaa9154f
[ "MIT" ]
10
2018-06-04T13:18:23.000Z
2020-06-14T10:09:57.000Z
github_update_dara.py
9bstudios/mecco_dara
9c460a10e6bf4c3485e602ecbacdeacefaa9154f
[ "MIT" ]
null
null
null
github_update_dara.py
9bstudios/mecco_dara
9c460a10e6bf4c3485e602ecbacdeacefaa9154f
[ "MIT" ]
1
2018-10-26T05:44:25.000Z
2018-10-26T05:44:25.000Z
# python import sys, traceback import requests, pprint, os, zipfile, shutil, glob, xml.etree.ElementTree, getpass import json from os.path import expanduser #from git import Repo BASE_URL = "https://api.github.com/repos/pixelfondue/%s/releases/latest" BASE_PATH = os.path.dirname(os.path.realpath(__file__)) print "bas...
34.016026
95
0.647508
1,377
10,613
4.744372
0.151779
0.048676
0.050513
0.030002
0.617021
0.605694
0.583652
0.572478
0.572478
0.572478
0
0.001115
0.239518
10,613
311
96
34.125402
0.808326
0.064072
0
0.526087
0
0
0.111515
0
0
0
0
0
0
0
null
null
0.052174
0.017391
null
null
0.091304
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
178e643cf3d9baf1cd9e7a3ac1ac162854128b03
3,590
py
Python
sktime/transformations/panel/tests/test_shapelet_transform.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
1
2021-12-22T02:45:39.000Z
2021-12-22T02:45:39.000Z
sktime/transformations/panel/tests/test_shapelet_transform.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/panel/tests/test_shapelet_transform.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ShapeletTransform test code.""" import numpy as np from numpy import testing from sktime.datasets import load_basic_motions, load_unit_test from sktime.transformations.panel.shapelet_transform import RandomShapeletTransform def test_st_on_unit_test(): """Test of ShapeletTransform on un...
28.267717
83
0.593593
334
3,590
6.197605
0.353293
0.04058
0.023188
0.03285
0.321739
0.3
0.258937
0.258937
0.258937
0.258937
0
0.392504
0.323677
3,590
126
84
28.492063
0.460049
0.087744
0
0.171429
0
0
0.003074
0
0
0
0
0
0.019048
1
0.019048
false
0
0.038095
0
0.057143
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
17952da6143d5a1227f4338f74ceef2025244a03
260
py
Python
pyamg/classical/__init__.py
rsmedleystevenson/pyamg
72c3b43e0d14223e3849cb7e5f0bc8817b342373
[ "MIT" ]
null
null
null
pyamg/classical/__init__.py
rsmedleystevenson/pyamg
72c3b43e0d14223e3849cb7e5f0bc8817b342373
[ "MIT" ]
null
null
null
pyamg/classical/__init__.py
rsmedleystevenson/pyamg
72c3b43e0d14223e3849cb7e5f0bc8817b342373
[ "MIT" ]
null
null
null
"""Classical AMG""" from __future__ import absolute_import from .classical import * from .split import * from .interpolate import * from .cr import * __all__ = [s for s in dir() if not s.startswith('_')] from numpy.testing import Tester test = Tester().test
21.666667
53
0.730769
37
260
4.864865
0.567568
0.222222
0
0
0
0
0
0
0
0
0
0
0.157692
260
11
54
23.636364
0.821918
0.05
0
0
0
0
0.004149
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
bd86643159f81b1a7609b03844ed56a6c9324674
1,988
py
Python
teste.py
yagopessoa/extrator-caracteristicas
8fb54359836f2a7063fb34849bfdb1b4c88188b1
[ "MIT" ]
null
null
null
teste.py
yagopessoa/extrator-caracteristicas
8fb54359836f2a7063fb34849bfdb1b4c88188b1
[ "MIT" ]
4
2021-03-19T01:36:12.000Z
2022-01-13T01:21:07.000Z
teste.py
yagopessoa/extrator-caracteristicas
8fb54359836f2a7063fb34849bfdb1b4c88188b1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import cv2 import numpy as np import sys import os import pickle import datetime import base64 import io from matplotlib import pyplot as plt from PIL import Image import extract_feature # x = np.random.randint(25,100,25) # y = np.random.randint(175,255,25) # z = np.hstack((x,y)) # z = z.reshape((...
30.121212
145
0.71328
309
1,988
4.466019
0.417476
0.06087
0.068841
0.069565
0.181159
0.150725
0.150725
0.150725
0
0
0
0.061574
0.117706
1,988
65
146
30.584615
0.7252
0.583501
0
0
0
0
0.156368
0.058008
0
0
0
0
0
1
0
false
0
0.52381
0
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
bd964ac6777bf26c9cd2e0c8102f286788f8ac58
201
py
Python
lab/db/utils.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
lab/db/utils.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
lab/db/utils.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
import os def beforeSaveFile(fname): '''makesure the path exists before save file''' dirname = os.path.dirname(fname) if not os.path.exists(dirname): os.makedirs(dirname)
22.333333
52
0.651741
26
201
5.038462
0.615385
0.152672
0
0
0
0
0
0
0
0
0
0
0.238806
201
8
53
25.125
0.856209
0.20398
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bd99509849b2119597bc329227a6d9a8957453fc
61
py
Python
text/_geometry/boxing/_line/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/_geometry/boxing/_line/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/_geometry/boxing/_line/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
from .style import LineStyle __all__ = [ "LineStyle", ]
10.166667
28
0.655738
6
61
6
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.229508
61
5
29
12.2
0.765957
0
0
0
0
0
0.147541
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bd9b25df86c49c5c34262d4d2399058530c129b1
296
py
Python
backend/commands/remove_expired_tokens.py
KSodowska/codeforpoznan.pl_v3
ddb079db90eda869940f4467832ef96f70591055
[ "MIT" ]
8
2019-08-12T22:10:48.000Z
2020-09-13T17:46:10.000Z
backend/commands/remove_expired_tokens.py
KSodowska/codeforpoznan.pl_v3
ddb079db90eda869940f4467832ef96f70591055
[ "MIT" ]
326
2018-11-07T20:29:28.000Z
2022-02-10T08:53:42.000Z
backend/commands/remove_expired_tokens.py
KSodowska/codeforpoznan.pl_v3
ddb079db90eda869940f4467832ef96f70591055
[ "MIT" ]
49
2018-11-14T17:50:27.000Z
2021-04-20T22:40:29.000Z
import click from flask.cli import with_appcontext from backend.models import JWTToken @click.command() @with_appcontext def remove_expired_tokens(): """Remove expired tokens from database.""" click.echo("Removing expired tokens") JWTToken.remove_expired() click.echo("Done!")
21.142857
46
0.75
37
296
5.864865
0.513514
0.179724
0.175115
0
0
0
0
0
0
0
0
0
0.14527
296
13
47
22.769231
0.857708
0.121622
0
0
0
0
0.110236
0
0
0
0
0
0
1
0.111111
true
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
bdbb22ba6b4c3c39c0c15a90a8c254569dd0c0be
74
py
Python
tinycord/models/message/gateway/__init__.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
8
2022-01-08T20:04:29.000Z
2022-03-21T19:12:19.000Z
tinycord/models/message/gateway/__init__.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
null
null
null
tinycord/models/message/gateway/__init__.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
1
2022-01-02T21:42:53.000Z
2022-01-02T21:42:53.000Z
from .reaction import ReactionGateway __all__ = [ "ReactionGateway" ]
14.8
37
0.743243
6
74
8.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.175676
74
5
38
14.8
0.836066
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bdbde2d938f424e96e16facd89ad398cdbed2930
46,214
py
Python
pysnmp-with-texts/CISCO-LISP-EXT-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-LISP-EXT-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-LISP-EXT-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-LISP-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LISP-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:04:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
175.05303
5,644
0.825378
4,494
46,214
8.487316
0.102804
0.043417
0.075979
0.032248
0.453726
0.350794
0.299198
0.280557
0.250066
0.21142
0
0.032393
0.075497
46,214
263
5,645
175.718631
0.860339
0.007141
0
0.043478
0
0.142292
0.360501
0.095826
0
0
0
0
0
1
0
false
0.007905
0.039526
0
0.039526
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
bdbe72b5112056466b1083e545acb1c1e6dff2bb
901
py
Python
client/model.py
firmanmm/tic-tac-royale
83c3bb88cd31a34eeceeac3d42aaa302598f52e9
[ "MIT" ]
null
null
null
client/model.py
firmanmm/tic-tac-royale
83c3bb88cd31a34eeceeac3d42aaa302598f52e9
[ "MIT" ]
null
null
null
client/model.py
firmanmm/tic-tac-royale
83c3bb88cd31a34eeceeac3d42aaa302598f52e9
[ "MIT" ]
null
null
null
class Location: def __init__(self, x : int, y : int): self.x = x self.y = y def getX(self) -> int: return self.x def getY(self) -> int: return self.y def __eq__(self, value): return self.x == value.x and self.y == value.y def __hash__(self): retu...
22.525
68
0.54717
113
901
4.221239
0.265487
0.125786
0.109015
0.142558
0
0
0
0
0
0
0
0.00335
0.337403
901
39
69
23.102564
0.795645
0
0
0
0
0
0.008889
0
0
0
0
0
0
1
0.344828
false
0
0
0.241379
0.758621
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
bdc1c2924b490c44031d1301da774e5f85923904
112
py
Python
Unit 5/5.2/5.2.8 Average Test Score.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
1
2021-04-08T14:02:49.000Z
2021-04-08T14:02:49.000Z
Unit 5/5.2/5.2.8 Average Test Score.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
null
null
null
Unit 5/5.2/5.2.8 Average Test Score.py
shashwat73/cse
60e49307e57105cf9916c7329f53f891c5e81fdb
[ "MIT" ]
null
null
null
Score = 0 for For3Scores in range(1,4): Average = int(input()) Score += Average print((Score/3))
12.444444
30
0.589286
16
112
4.125
0.8125
0
0
0
0
0
0
0
0
0
0
0.060241
0.258929
112
8
31
14
0.73494
0
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
bdcdd065ac669fb99de9c3ef2f470429acaafd67
1,562
py
Python
models/room.py
kwahalf/data-structures
19ebcbee6108e9b843bace4e7264e5e9e5c5c6fd
[ "MIT" ]
1
2018-12-28T23:56:08.000Z
2018-12-28T23:56:08.000Z
models/room.py
kwahalf/data-structures
19ebcbee6108e9b843bace4e7264e5e9e5c5c6fd
[ "MIT" ]
null
null
null
models/room.py
kwahalf/data-structures
19ebcbee6108e9b843bace4e7264e5e9e5c5c6fd
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class Room(object): """class Room""" __metaclass__ = ABCMeta room_count = 0 def __init__(self, name=None, max_capacity=None): self.room_id = self.room_count self.room_count += 1 self.name = name self.max_capacity = max_cap...
27.892857
65
0.599232
179
1,562
4.871508
0.240223
0.151376
0.068807
0.051606
0.318807
0.288991
0.224771
0.12156
0.12156
0.12156
0
0.003663
0.300896
1,562
56
66
27.892857
0.794872
0.03073
0
0.146341
0
0
0.038025
0
0
0
0
0
0
1
0.219512
false
0
0.02439
0.097561
0.560976
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
bdebe8ab095dd6dc14338c32ad38db4e4ac43ada
1,056
py
Python
ads_dashboard/ads/models.py
vintage/ads_dashboard
85a8540411a9af0a2e41dd3730b52e3c6b3805d4
[ "MIT" ]
null
null
null
ads_dashboard/ads/models.py
vintage/ads_dashboard
85a8540411a9af0a2e41dd3730b52e3c6b3805d4
[ "MIT" ]
5
2020-02-12T09:18:05.000Z
2021-09-22T18:05:21.000Z
ads_dashboard/ads/models.py
vintage/ads_dashboard
85a8540411a9af0a2e41dd3730b52e3c6b3805d4
[ "MIT" ]
null
null
null
from django.db import models class Campaign(models.Model): name = models.CharField("name", unique=True, max_length=255) class Meta: verbose_name = "campaign" verbose_name_plural = "campaigns" def __str__(self): return self.name class DataSource(models.Model): name = models....
26.4
73
0.673295
121
1,056
5.644628
0.338843
0.096633
0.070278
0.087848
0.360176
0.307467
0.307467
0.222548
0.222548
0.222548
0
0.007238
0.214962
1,056
39
74
27.076923
0.816647
0
0
0.37037
0
0
0.128788
0
0
0
0
0
0
1
0.111111
false
0
0.037037
0.111111
0.740741
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
bdfc1be607446f5c58bd0a13c161e7d2e69d78e2
4,629
py
Python
test/test_ui/test_render.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
50
2015-02-11T12:00:25.000Z
2022-01-18T05:26:40.000Z
test/test_ui/test_render.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
3
2017-11-27T20:55:42.000Z
2020-03-20T18:05:53.000Z
test/test_ui/test_render.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
15
2015-04-22T14:33:36.000Z
2021-09-29T21:33:50.000Z
import pytest from contextlib import contextmanager from datetime import datetime from poezio.theming import get_theme from poezio.ui.render import build_lines, Line, write_pre from poezio.ui.types import BaseMessage, Message, StatusMessage, XMLLog def test_simple_build_basemsg(): msg = BaseMessage(txt='coucou') ...
31.924138
76
0.669259
684
4,629
4.378655
0.141813
0.066778
0.04808
0.0601
0.696828
0.689816
0.611018
0.611018
0.601336
0.601336
0
0.039164
0.183625
4,629
144
77
32.145833
0.753374
0
0
0.321101
0
0
0.093109
0
0
0
0
0
0.275229
1
0.201835
false
0
0.055046
0.018349
0.302752
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
da0300886933dfe76dadbea34ca3db3b9a2e627c
355
py
Python
src/sima/simo/linearization.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/simo/linearization.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/simo/linearization.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# Generated with Linearization # from enum import Enum from enum import auto class Linearization(Enum): """""" STOCHASTIC = auto() DIFFERENTIATION = auto() def label(self): if self == Linearization.STOCHASTIC: return "Stochastic" if self == Linearization.DIFFERENTIATION: ...
23.666667
49
0.64507
33
355
6.939394
0.454545
0.069869
0.122271
0
0
0
0
0
0
0
0
0
0.264789
355
15
50
23.666667
0.877395
0.078873
0
0
1
0
0.078616
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.8
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
da08fa8384c712fcc3ccc0c8023334a1b12a22c0
375
py
Python
globals/mime.py
RogueScholar/debreate
0abc168c51336b31ff87c61f84bc7bb6000e88f4
[ "MIT" ]
97
2016-09-16T08:44:04.000Z
2022-01-29T22:30:18.000Z
globals/mime.py
RogueScholar/debreate
0abc168c51336b31ff87c61f84bc7bb6000e88f4
[ "MIT" ]
34
2016-09-20T00:42:45.000Z
2021-04-16T07:21:44.000Z
globals/mime.py
RogueScholar/debreate
0abc168c51336b31ff87c61f84bc7bb6000e88f4
[ "MIT" ]
24
2016-09-16T08:44:56.000Z
2021-07-29T11:32:47.000Z
# -*- coding: utf-8 -*- ## \package globals.mime # MIT licensing # See: docs/LICENSE.txt from globals.execute import GetCommandOutput from globals.execute import GetExecutable ## TODO: Doxygen def GetFileMimeType(filename): CMD_file = GetExecutable(u'file') if not CMD_file: return None return GetCommandOut...
17.857143
75
0.728
48
375
5.625
0.645833
0.077778
0.133333
0.177778
0
0
0
0
0
0
0
0.003106
0.141333
375
20
76
18.75
0.835404
0.248
0
0
0
0
0.080292
0
0
0
0
0.05
0
1
0.142857
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
da09c6430f4f0663e4ddd43367f12c8087614e78
1,761
py
Python
src/deployer/result.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
2
2018-08-30T14:14:13.000Z
2022-03-24T15:19:29.000Z
src/deployer/result.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
null
null
null
src/deployer/result.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Joseph Benden <joe@benden.us> # # 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...
33.865385
83
0.662124
241
1,761
4.771784
0.46888
0.052174
0.055652
0.06
0.226957
0.163478
0.116522
0.064348
0
0
0
0.010815
0.212379
1,761
51
84
34.529412
0.818313
0.64452
0
0
0
0
0.14841
0
0
0
0
0
0
1
0.461538
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
da18045dfd912105fc7a816ba7142c291b5641e5
358
py
Python
scripts/plotting/utils.py
ltiao/pynance
1f170f9d32262eacf566a8d7647be04715c47dc1
[ "MIT" ]
1
2021-04-24T09:23:35.000Z
2021-04-24T09:23:35.000Z
scripts/plotting/utils.py
ltiao/pynance
1f170f9d32262eacf566a8d7647be04715c47dc1
[ "MIT" ]
null
null
null
scripts/plotting/utils.py
ltiao/pynance
1f170f9d32262eacf566a8d7647be04715c47dc1
[ "MIT" ]
1
2021-07-14T08:55:39.000Z
2021-07-14T08:55:39.000Z
import numpy as np import pandas as pd import yaml from pynance.benchmarks import make_benchmark from pathlib import Path GOLDEN_RATIO = 0.5 * (1 + np.sqrt(5)) WIDTH = 397.48499 def pt_to_in(x): pt_per_in = 72.27 return x / pt_per_in def size(width, aspect=GOLDEN_RATIO): width_in = pt_to_in(width) ...
17.9
45
0.72067
64
358
3.8125
0.53125
0.086066
0.04918
0.065574
0
0
0
0
0
0
0
0.055556
0.195531
358
19
46
18.842105
0.791667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.384615
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
da3c5141c6711e22ea8ee4bbbf6d8f4d99c372b5
163
py
Python
unused_stuff/save_image.py
JDJGInc/JDJGBotSupreme
fd8a5679f05cb90ebec8dbfc297445f9773ebe5f
[ "MIT" ]
4
2020-07-10T04:02:23.000Z
2021-02-13T16:38:54.000Z
unused_stuff/save_image.py
JDJGInc/JDJGBotSupreme
fd8a5679f05cb90ebec8dbfc297445f9773ebe5f
[ "MIT" ]
3
2021-07-13T15:38:39.000Z
2022-02-15T15:17:17.000Z
unused_stuff/save_image.py
johndpope/JDJGBotSupreme
64fde0e169811e1866eb29174ac5dd8e052d830a
[ "MIT" ]
2
2020-08-01T11:15:09.000Z
2022-02-15T11:46:22.000Z
async with aiohttp.ClientSession() as cs: async with cs.get(url) as r: image=await r.read() f = open("reverse.png","wb") f.write(image) f.close()
27.166667
41
0.625767
27
163
3.777778
0.703704
0.176471
0
0
0
0
0
0
0
0
0
0
0.208589
163
6
42
27.166667
0.790698
0
0
0
0
0
0.079268
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