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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f1216ebdeb0ac01b6cb5de555707baa02046e9f | 3,000 | py | Python | tests/tests/test_load.py | CodeYellowBV/chimera-cub | a2a253105a4113b9ff55a0fb6f1f342285b60187 | [
"MIT"
] | null | null | null | tests/tests/test_load.py | CodeYellowBV/chimera-cub | a2a253105a4113b9ff55a0fb6f1f342285b60187 | [
"MIT"
] | 3 | 2017-08-11T14:25:23.000Z | 2017-08-11T14:28:41.000Z | tests/tests/test_load.py | CodeYellowBV/chimera-cub | a2a253105a4113b9ff55a0fb6f1f342285b60187 | [
"MIT"
] | null | null | null | import json
from unittest import TestCase
import websockets
import asyncio
from .utils.rabbitmq import send_trigger
from .utils.wiremock import set_bootstrap_response
from settings import WS_URI
# from time import time
class TestSubscribe(TestCase):
"""
Simple test for setting up a websocket connection.
... | 34.090909 | 68 | 0.421667 | 260 | 3,000 | 4.757692 | 0.315385 | 0.051738 | 0.032336 | 0.053355 | 0.426031 | 0.383994 | 0.292643 | 0.239289 | 0.239289 | 0.239289 | 0 | 0.006879 | 0.467 | 3,000 | 87 | 69 | 34.482759 | 0.766729 | 0.101 | 0 | 0.362069 | 0 | 0 | 0.102622 | 0 | 0 | 0 | 0 | 0.011494 | 0.12069 | 1 | 0.017241 | false | 0 | 0.12069 | 0 | 0.155172 | 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 | 0 | 0 | 0 | 1 |
6f170dce53fb59418173a31515a883c5e28da64f | 549 | py | Python | notifications/migrations/0002_auto_20150701_1145.py | aaronc-bixly/notifications | c93886397b98d832b85cbb442e19201a0889ba67 | [
"MIT"
] | 1 | 2015-08-03T07:40:34.000Z | 2015-08-03T07:40:34.000Z | notifications/migrations/0002_auto_20150701_1145.py | aaronc-bixly/notifications | c93886397b98d832b85cbb442e19201a0889ba67 | [
"MIT"
] | null | null | null | notifications/migrations/0002_auto_20150701_1145.py | aaronc-bixly/notifications | c93886397b98d832b85cbb442e19201a0889ba67 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('notifications', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='noticedigest',
... | 21.115385 | 42 | 0.571949 | 42 | 549 | 7.261905 | 0.642857 | 0.157377 | 0.170492 | 0.196721 | 0.301639 | 0.301639 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.31694 | 549 | 25 | 43 | 21.96 | 0.8 | 0.038251 | 0 | 0.368421 | 0 | 0 | 0.159696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 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 | 0 | 0 | 0 | 1 |
6f1875a4dd8ec1534676f06933981472e392cbb5 | 1,413 | py | Python | website/blog/migrations/0006_auto_20180620_1314.py | atombrella/worldinfilms | fdbeb6515dd840f3c1a508ac7f97eccc7f630c0e | [
"BSD-3-Clause"
] | 1 | 2020-04-20T05:35:55.000Z | 2020-04-20T05:35:55.000Z | website/blog/migrations/0006_auto_20180620_1314.py | atombrella/worldinfilms | fdbeb6515dd840f3c1a508ac7f97eccc7f630c0e | [
"BSD-3-Clause"
] | null | null | null | website/blog/migrations/0006_auto_20180620_1314.py | atombrella/worldinfilms | fdbeb6515dd840f3c1a508ac7f97eccc7f630c0e | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0 on 2018-06-20 13:14
import blog.models
import django.core.validators
from django.db import migrations, models
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.embeds.blocks
class Migration(migrations.Migration):
dependencies = [
('blog', '0005_auto_20180619_... | 37.184211 | 310 | 0.64402 | 145 | 1,413 | 6.17931 | 0.544828 | 0.061384 | 0.066964 | 0.080357 | 0.060268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043127 | 0.212314 | 1,413 | 37 | 311 | 38.189189 | 0.761905 | 0.030432 | 0 | 0.071429 | 1 | 0 | 0.09011 | 0.01685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.321429 | 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 | 0 | 0 | 0 | 1 |
6f1e7bc15aa82c85603e56eab88ad09e1f6137fd | 5,819 | py | Python | oneflow/compatible_single_client_python/test/ops/test_range.py | xcnick/oneflow | 7b786b27069dec35d2493256011e773988c91f56 | [
"Apache-2.0"
] | null | null | null | oneflow/compatible_single_client_python/test/ops/test_range.py | xcnick/oneflow | 7b786b27069dec35d2493256011e773988c91f56 | [
"Apache-2.0"
] | null | null | null | oneflow/compatible_single_client_python/test/ops/test_range.py | xcnick/oneflow | 7b786b27069dec35d2493256011e773988c91f56 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2020 The OneFlow 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 applicable law or agr... | 36.36875 | 86 | 0.651487 | 859 | 5,819 | 4.145518 | 0.199069 | 0.03089 | 0.019657 | 0.025274 | 0.696153 | 0.652064 | 0.652064 | 0.652064 | 0.639146 | 0.627071 | 0 | 0.043673 | 0.232686 | 5,819 | 159 | 87 | 36.597484 | 0.753863 | 0.112562 | 0 | 0.491228 | 0 | 0 | 0.070209 | 0.008146 | 0 | 0 | 0 | 0 | 0.035088 | 1 | 0.078947 | false | 0 | 0.070175 | 0 | 0.201754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f24703de2d58c56e8cf1449f249069908009fd7 | 376 | py | Python | main.py | ziceweek/spider | 3c36f3d32815c844226686535b32814f19271677 | [
"MIT"
] | null | null | null | main.py | ziceweek/spider | 3c36f3d32815c844226686535b32814f19271677 | [
"MIT"
] | null | null | null | main.py | ziceweek/spider | 3c36f3d32815c844226686535b32814f19271677 | [
"MIT"
] | null | null | null | __author__ = 'zice'
from spider.spider import extractor,downloader,todo
import multiprocessing
if __name__ == "__main__":
todo(url='http://finance.sina.com.cn/',func='a')
process2 = multiprocessing.Process(target=extractor)
process1 = multiprocessing.Process(target=downloader)
process1.start()
p... | 23.5 | 57 | 0.720745 | 41 | 376 | 6.317073 | 0.634146 | 0.169884 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.148936 | 376 | 16 | 58 | 23.5 | 0.790625 | 0 | 0 | 0 | 0 | 0 | 0.106101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f283e8c55912bcb276f39c497924ac6d53da32d | 2,859 | py | Python | src/dji_sim.py | augcog/ISAACS_Server | 822740d47c6f3b69db8666986988caede1ea9650 | [
"Apache-2.0"
] | 7 | 2020-09-27T04:12:47.000Z | 2021-06-20T12:08:15.000Z | src/dji_sim.py | augcog/ISAACS_Server | 822740d47c6f3b69db8666986988caede1ea9650 | [
"Apache-2.0"
] | 27 | 2020-09-21T01:46:39.000Z | 2021-05-01T18:02:00.000Z | src/dji_sim.py | augcog/ISAACS_Server | 822740d47c6f3b69db8666986988caede1ea9650 | [
"Apache-2.0"
] | null | null | null | '''
Since we don't have the physical drone to advertise its services (land, takeoff, etc)
this script simulates advertising those services. This lets the server actually call them.
Instead of seeing the perform its action, we will get a print message.
'''
import roslibpy
import constants
client = roslibpy.Ros(host=co... | 33.244186 | 141 | 0.737671 | 377 | 2,859 | 5.464191 | 0.297082 | 0.058252 | 0.048544 | 0.055825 | 0.305825 | 0.276214 | 0.208252 | 0.129612 | 0.129612 | 0.129612 | 0 | 0.011532 | 0.150752 | 2,859 | 85 | 142 | 33.635294 | 0.836903 | 0.086394 | 0 | 0.363636 | 0 | 0 | 0.361772 | 0.146853 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.090909 | false | 0 | 0.036364 | 0 | 0.218182 | 0.181818 | 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 | 0 | 0 | 0 | 1 |
6f29b9cd2c4a8a22475f0e39b06a640bdbc1ad91 | 504 | py | Python | sparqlkernel/pygments_sparql.py | riccardotommasini/sparql-kernel | 7be147d18fc2ca681e3403be56c4a1d780e6a7d4 | [
"BSD-3-Clause"
] | 1 | 2021-08-21T05:00:55.000Z | 2021-08-21T05:00:55.000Z | sparqlkernel/pygments_sparql.py | riccardotommasini/sparql-kernel | 7be147d18fc2ca681e3403be56c4a1d780e6a7d4 | [
"BSD-3-Clause"
] | null | null | null | sparqlkernel/pygments_sparql.py | riccardotommasini/sparql-kernel | 7be147d18fc2ca681e3403be56c4a1d780e6a7d4 | [
"BSD-3-Clause"
] | null | null | null | from pygments.lexers.rdf import SparqlLexer
from pygments.token import Other
class SparqlLexerMagics( SparqlLexer ):
"""
A variant of the standard SPARQL Pygments lexer that understands
line magics
"""
#print( "I'm the custom converter")
aliases = [ 'sparql-nb', 'sparql' ]
name = 'SPARQL ... | 31.5 | 69 | 0.662698 | 67 | 504 | 4.985075 | 0.656716 | 0.071856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212302 | 504 | 16 | 70 | 31.5 | 0.84131 | 0.335317 | 0 | 0 | 0 | 0 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f2c1f8c85bbd36dd01f09ffaa79f34517d1aefa | 322 | py | Python | 02 Data Structures: Exercise 8 to 19/exercise 9 - merge/part01-e09_merge/src/merge.py | Aristo-eng/Python-in-a-nutshell | 12a40551e6416e83c2f179f8491d3b28a5b0f841 | [
"MIT"
] | null | null | null | 02 Data Structures: Exercise 8 to 19/exercise 9 - merge/part01-e09_merge/src/merge.py | Aristo-eng/Python-in-a-nutshell | 12a40551e6416e83c2f179f8491d3b28a5b0f841 | [
"MIT"
] | null | null | null | 02 Data Structures: Exercise 8 to 19/exercise 9 - merge/part01-e09_merge/src/merge.py | Aristo-eng/Python-in-a-nutshell | 12a40551e6416e83c2f179f8491d3b28a5b0f841 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def merge(L1, L2):
L3 = L1+L2
for j in range(len(L3)):
for i in range(0, len(L3)-j-1):
if L3[i]> L3[i+1]:
L3[i],L3[i+1] = L3[i+1] , L3[i]
return (L3)
def main():
print((merge([1,2,3],[1,6,7])))
pass
if __name__ == "__main__":
main(... | 16.1 | 47 | 0.462733 | 59 | 322 | 2.389831 | 0.457627 | 0.12766 | 0.085106 | 0.12766 | 0.148936 | 0.120567 | 0.120567 | 0 | 0 | 0 | 0 | 0.118182 | 0.31677 | 322 | 19 | 48 | 16.947368 | 0.522727 | 0.065217 | 0 | 0 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f354f859bb10c5d1b53e284aa04bcd95c2e0a10 | 2,558 | py | Python | Brain/Utils/strings.py | adityatelange/MU_QPapers | e2a16a7238bf4da821d6eaa8b2bcda39a21c5d19 | [
"MIT"
] | 2 | 2020-02-17T17:22:45.000Z | 2020-09-16T08:10:48.000Z | Brain/Utils/strings.py | adityatelange/MU_QPapers | e2a16a7238bf4da821d6eaa8b2bcda39a21c5d19 | [
"MIT"
] | null | null | null | Brain/Utils/strings.py | adityatelange/MU_QPapers | e2a16a7238bf4da821d6eaa8b2bcda39a21c5d19 | [
"MIT"
] | 1 | 2020-09-16T08:11:23.000Z | 2020-09-16T08:11:23.000Z | import os
import logging
logger = logging.getLogger(__name__)
OWNER_ID = os.getenv("OWNER_ID")
# ----------------------------------------------------------------------------------------------------------------------
HELPER_SCRIPTS = {}
# --------------------------------------------------------------------------------... | 35.041096 | 131 | 0.31939 | 164 | 2,558 | 4.920732 | 0.579268 | 0.066915 | 0.085502 | 0.099133 | 0.104089 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004642 | 0.241986 | 2,558 | 72 | 132 | 35.527778 | 0.411552 | 0.278733 | 0 | 0.081967 | 0 | 0 | 0.396083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f35b74497a4c6425cc539b237ec56b6276611b5 | 416 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/__init__.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | 3 | 2016-06-24T21:14:37.000Z | 2017-03-07T05:36:33.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/__init__.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/__init__.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | null | null | null | import muffin
# Project middlewares
from .common.middlewares import middleware_current_user
app = muffin.Application(
'project',
middlewares=[middleware_current_user]
)
# Register Handlers
from .public.handlers import * # noqa
from .users.handlers import * # noqa
# Register Commands
from .commands import... | 19.809524 | 55 | 0.766827 | 48 | 416 | 6.520833 | 0.416667 | 0.105431 | 0.134185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161058 | 416 | 20 | 56 | 20.8 | 0.896848 | 0.245192 | 0 | 0 | 0 | 0 | 0.022951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6f38165b77614ab8ce0a0448f68f13ebc5c6067d | 5,504 | py | Python | sct_subontterms.py | luisgasco/sct_subontterms | 0176c1334a3d29f04b41fd0462e8ffca59bbcdcd | [
"MIT"
] | null | null | null | sct_subontterms.py | luisgasco/sct_subontterms | 0176c1334a3d29f04b41fd0462e8ffca59bbcdcd | [
"MIT"
] | null | null | null | sct_subontterms.py | luisgasco/sct_subontterms | 0176c1334a3d29f04b41fd0462e8ffca59bbcdcd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: luisgasco
Script to generate a terminology tsv file with concepts of SnomedCT given a list of seed codes.
You will get the concept
to normaliza clinical entities to controlled vocabularies
"""
import sys
import pandas as pd
import networkx as nx
import numpy... | 42.666667 | 148 | 0.657703 | 738 | 5,504 | 4.743902 | 0.283198 | 0.025993 | 0.01371 | 0.018566 | 0.163382 | 0.140531 | 0.140531 | 0.140531 | 0.140531 | 0.115396 | 0 | 0.021645 | 0.244549 | 5,504 | 129 | 149 | 42.666667 | 0.820106 | 0.417151 | 0 | 0.101695 | 1 | 0 | 0.147579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.084746 | 0 | 0.220339 | 0.050847 | 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 | 0 | 0 | 0 | 1 |
6f3e5253485738a8be9082e5996c95928d213565 | 3,499 | py | Python | ndscheduler/corescheduler/job.py | palto42/ndscheduler | dc875b5c32192cb1fe2d658f320f81215cb1d9f5 | [
"BSD-2-Clause"
] | 9 | 2021-05-03T07:31:22.000Z | 2022-03-19T23:07:36.000Z | ndscheduler/corescheduler/job.py | palto42/ndscheduler | dc875b5c32192cb1fe2d658f320f81215cb1d9f5 | [
"BSD-2-Clause"
] | 2 | 2021-05-01T14:40:21.000Z | 2021-06-20T16:50:37.000Z | ndscheduler/corescheduler/job.py | palto42/ndscheduler | dc875b5c32192cb1fe2d658f320f81215cb1d9f5 | [
"BSD-2-Clause"
] | 3 | 2021-10-12T04:10:10.000Z | 2022-03-19T23:28:32.000Z | """Base class for a job."""
import os
import socket
from ndscheduler.corescheduler import utils
class JobBase:
def __init__(self, job_id, execution_id):
self.job_id = job_id
self.execution_id = execution_id
@classmethod
def create_test_instance(cls):
"""Creates an instance of th... | 33.32381 | 99 | 0.592169 | 404 | 3,499 | 4.997525 | 0.321782 | 0.069341 | 0.05894 | 0.069341 | 0.338286 | 0.338286 | 0.29371 | 0.29371 | 0.247152 | 0.247152 | 0 | 0.001639 | 0.302658 | 3,499 | 104 | 100 | 33.644231 | 0.82582 | 0.373535 | 0 | 0.490909 | 0 | 0 | 0.09943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.054545 | 0.036364 | 0.472727 | 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 | 0 | 0 | 0 | 1 |
6f3f48a0be770cfcd40f5cd4dd0aee1ce1659dcc | 1,497 | py | Python | pdf_class.py | Kobie-Kirven/symrx | b3c9ca5e07d6e6dee04ad80c3f2ffa3c51f700e7 | [
"MIT"
] | null | null | null | pdf_class.py | Kobie-Kirven/symrx | b3c9ca5e07d6e6dee04ad80c3f2ffa3c51f700e7 | [
"MIT"
] | null | null | null | pdf_class.py | Kobie-Kirven/symrx | b3c9ca5e07d6e6dee04ad80c3f2ffa3c51f700e7 | [
"MIT"
] | null | null | null | # a class for genterating the PDF
from fpdf import FPDF
class Generate_pdf():
"""A way to generate a pdf based on what people select"""
def __init__(self, v4, v1, v5, v2, v3, patient_name):
self.dosage_type = v1
self.quantity = v4
self.admin_route = v5
self.eat = v2
self.time = v3
self.patient_name = p... | 22.343284 | 89 | 0.607214 | 261 | 1,497 | 3.386973 | 0.40613 | 0.095023 | 0.072398 | 0.015837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07897 | 0.221777 | 1,497 | 66 | 90 | 22.681818 | 0.679828 | 0.066132 | 0 | 0.04 | 1 | 0 | 0.073329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.02 | 0 | 0.12 | 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 | 0 | 0 | 0 | 1 |
6f4666a3f4d879ed601696ff6889f8d455a7dfb3 | 291 | py | Python | src/myapp/apps/dummy/assets/__init__.py | JasonGiedymin/Flask-Module-Scaffold | b8d88bf81c0bca5f8f151ffd2d94ef339fe445c4 | [
"BSD-3-Clause"
] | 4 | 2015-09-09T23:57:54.000Z | 2019-06-21T12:32:36.000Z | src/myapp/apps/frontend/assets/__init__.py | JasonGiedymin/Flask-Module-Scaffold | b8d88bf81c0bca5f8f151ffd2d94ef339fe445c4 | [
"BSD-3-Clause"
] | null | null | null | src/myapp/apps/frontend/assets/__init__.py | JasonGiedymin/Flask-Module-Scaffold | b8d88bf81c0bca5f8f151ffd2d94ef339fe445c4 | [
"BSD-3-Clause"
] | null | null | null | from flaskext.assets import Bundle
frontend_css = Bundle (
# core css
Bundle("frontend/style.css"),
# Chain additional css groups here
# additional css
#Bundle(...),
# even more css
#Bundle(...),
filter="cssmin",
output="frontend/combine.css")
| 19.4 | 38 | 0.608247 | 32 | 291 | 5.5 | 0.59375 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261168 | 291 | 14 | 39 | 20.785714 | 0.818605 | 0.323024 | 0 | 0 | 0 | 0 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f4c8223109aa4349badffaa4c925322b98ec017 | 1,615 | py | Python | keras/caffe/models/segmentation/test_segmentation.py | lvapeab/keras | aa7174cd9977e317d546adb458b1f4e64d0c92c3 | [
"MIT"
] | 259 | 2016-02-09T09:06:29.000Z | 2021-07-29T05:27:40.000Z | keras/caffe/models/segmentation/test_segmentation.py | lvapeab/keras | aa7174cd9977e317d546adb458b1f4e64d0c92c3 | [
"MIT"
] | 50 | 2016-02-24T14:46:57.000Z | 2020-01-20T07:34:19.000Z | keras/caffe/models/segmentation/test_segmentation.py | MarcBS/keras | 82ee0908e5fab22e63434cceb60a680bc991b0c6 | [
"MIT"
] | 94 | 2016-02-17T20:59:27.000Z | 2021-04-19T08:18:16.000Z | """
author: Akshay Chawla (https://github.com/akshaychawla)
TEST:rs
Test convert.py's ability to handle Deconvolution and Crop laye
by converting voc-fcn8s .prototxt and .caffemodel present in the caffe/models/segmentation folder
"""
# import os
# import inspect
# import numpy as np
# import keras.caffe.convert as conv... | 31.057692 | 108 | 0.71517 | 242 | 1,615 | 4.752066 | 0.479339 | 0.052174 | 0.083478 | 0.135652 | 0.29913 | 0.173913 | 0.173913 | 0.173913 | 0.10087 | 0.10087 | 0 | 0.017229 | 0.137461 | 1,615 | 51 | 109 | 31.666667 | 0.808327 | 0.268111 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f5211374cbbcd3bdffa3348d951fca6f80239da | 2,149 | py | Python | symphony/cli/pyinventory/graphql/search_query.py | MeganWheeler1997/magma | b0303e0f5b35ca608f3b70a74b0047f1dae60d56 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T09:01:40.000Z | 2020-06-05T09:01:40.000Z | symphony/cli/pyinventory/graphql/search_query.py | MeganWheeler1997/magma | b0303e0f5b35ca608f3b70a74b0047f1dae60d56 | [
"BSD-3-Clause"
] | 14 | 2019-11-15T12:01:18.000Z | 2019-12-12T14:37:42.000Z | symphony/cli/pyinventory/graphql/search_query.py | MeganWheeler1997/magma | b0303e0f5b35ca608f3b70a74b0047f1dae60d56 | [
"BSD-3-Clause"
] | 3 | 2019-11-15T15:56:25.000Z | 2019-11-21T10:34:59.000Z | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass, field
from datetime import datetime
from enum import Enum
from functools import partial
from typing import Any, Callable, List, Mapping, Optional
from dataclasses_json import dataclass_json
from marshmallow impor... | 23.615385 | 154 | 0.605398 | 206 | 2,149 | 6.199029 | 0.368932 | 0.061081 | 0.086139 | 0.105717 | 0.075176 | 0.075176 | 0.075176 | 0.075176 | 0.075176 | 0.075176 | 0 | 0.003362 | 0.30805 | 2,149 | 90 | 155 | 23.877778 | 0.855414 | 0.039553 | 0 | 0.166667 | 1 | 0 | 0.195146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0 | 0.111111 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f64eab8f0d93146b6c960cab9609e33ef367407 | 218 | py | Python | refresher on Python scripts/Tuesday.py | JulianConneely/Python-Programming-Semester-2 | 83d957161050288c9a116ccdeccf1c20e7815735 | [
"Apache-2.0"
] | null | null | null | refresher on Python scripts/Tuesday.py | JulianConneely/Python-Programming-Semester-2 | 83d957161050288c9a116ccdeccf1c20e7815735 | [
"Apache-2.0"
] | null | null | null | refresher on Python scripts/Tuesday.py | JulianConneely/Python-Programming-Semester-2 | 83d957161050288c9a116ccdeccf1c20e7815735 | [
"Apache-2.0"
] | null | null | null | # Julian Conneely 25/09/18
import datetime
today = datetime.datetime.today()
dayofweek = today.weekday()
if dayofweek == 1:
print("It's Tuesday!")
else:
print("Unfortunately, it's not Tuesday.")
| 18.166667 | 46 | 0.655963 | 28 | 218 | 5.107143 | 0.678571 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040698 | 0.211009 | 218 | 11 | 47 | 19.818182 | 0.790698 | 0.110092 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f6b8a78338bdd5151d60a98051ab54327a7d49c | 1,089 | py | Python | migrations/versions/20200706_19-19-01__add_fields_for_time_and_timezone.py | alysivji/github-adapter | 5e3543f41f189fbe4a50d64e3d6734dc765579b4 | [
"MIT"
] | 55 | 2019-05-05T01:20:58.000Z | 2022-01-10T18:03:05.000Z | migrations/versions/20200706_19-19-01__add_fields_for_time_and_timezone.py | alysivji/github-adapter | 5e3543f41f189fbe4a50d64e3d6734dc765579b4 | [
"MIT"
] | 222 | 2019-05-03T16:31:26.000Z | 2021-08-28T23:49:03.000Z | migrations/versions/20200706_19-19-01__add_fields_for_time_and_timezone.py | busy-beaver-dev/busy-beaver | 5e3543f41f189fbe4a50d64e3d6734dc765579b4 | [
"MIT"
] | 19 | 2019-04-27T19:49:32.000Z | 2020-06-30T19:52:09.000Z | """add fields for time and timezone
Revision ID: a97292c2b635
Revises: 3f137bef24e4
Create Date: 2020-07-06 19:19:01.413325
"""
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
# revision identifiers, used by Alembic.
revision = "a97292c2b635"
down_revision = "3f137bef24e4"
branch_labels = None... | 26.560976 | 75 | 0.684114 | 124 | 1,089 | 5.806452 | 0.459677 | 0.066667 | 0.105556 | 0.177778 | 0.408333 | 0.408333 | 0.408333 | 0.408333 | 0.155556 | 0.155556 | 0 | 0.060046 | 0.204775 | 1,089 | 40 | 76 | 27.225 | 0.771363 | 0.288338 | 0 | 0.173913 | 0 | 0 | 0.292683 | 0.208672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f6fa57586b0af9354bcba0cb4b6860fb9c1fbc4 | 10,605 | py | Python | py_dash/app.py | saihinchi-tak/Flaming-test | ad89d4508da7a6adc0e3b5156ef0234f1c36629e | [
"MIT"
] | null | null | null | py_dash/app.py | saihinchi-tak/Flaming-test | ad89d4508da7a6adc0e3b5156ef0234f1c36629e | [
"MIT"
] | null | null | null | py_dash/app.py | saihinchi-tak/Flaming-test | ad89d4508da7a6adc0e3b5156ef0234f1c36629e | [
"MIT"
] | null | null | null | import dash
import dash as html
import dash as dcc
from dash import dash_table
from dash.dependencies import Input, Output
import plotly.graph_objs as go
import pandas as pd
import datetime
import mysql.connector
import os,io
#============================================================================================... | 36.194539 | 114 | 0.485903 | 1,056 | 10,605 | 4.698864 | 0.276515 | 0.066102 | 0.052398 | 0.065498 | 0.362354 | 0.309351 | 0.159008 | 0.159008 | 0.137243 | 0.137243 | 0 | 0.022303 | 0.298161 | 10,605 | 292 | 115 | 36.318493 | 0.644364 | 0.104008 | 0 | 0.289855 | 0 | 0 | 0.228502 | 0.024614 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009662 | 0.048309 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f7343d1d09c49c823912c237498cc9cfae662bc | 410 | py | Python | setup.py | sihrc/bdo-image2text | 17c346b440ad647da56c38c23ba5783a412d8259 | [
"MIT"
] | 1 | 2019-04-18T19:16:16.000Z | 2019-04-18T19:16:16.000Z | setup.py | sihrc/bdo-image2text | 17c346b440ad647da56c38c23ba5783a412d8259 | [
"MIT"
] | null | null | null | setup.py | sihrc/bdo-image2text | 17c346b440ad647da56c38c23ba5783a412d8259 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
setup(
name='bdo',
version='0.1',
description='bdo utilities',
author='Chris Lee',
author_email='sihrc.c.lee@gmail.com',
packages=find_packages(),
install_requires=open(
os.path.join(
os.path.dir... | 20.5 | 43 | 0.597561 | 48 | 410 | 4.9375 | 0.770833 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006601 | 0.260976 | 410 | 19 | 44 | 21.578947 | 0.775578 | 0.04878 | 0 | 0 | 0 | 0 | 0.169666 | 0.053985 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f752fcfbf31d36105201a0b9ad8d3dc3b0593ad | 536 | py | Python | 21-amicableNumbers.py | cmaron/Project-Euler | c4950302f71ee65d81040fae5764ec9eeef6b1f0 | [
"MIT"
] | 2 | 2015-01-20T14:00:14.000Z | 2016-01-27T16:36:53.000Z | 21-amicableNumbers.py | cmaron/Project-Euler | c4950302f71ee65d81040fae5764ec9eeef6b1f0 | [
"MIT"
] | null | null | null | 21-amicableNumbers.py | cmaron/Project-Euler | c4950302f71ee65d81040fae5764ec9eeef6b1f0 | [
"MIT"
] | null | null | null | import pprint
def sum_divisors(n):
x = 0
i = 1
while(i < n):
if(n % i == 0):
x += i
i += 1
return x
amicable_numbers = {}
for i in range(0,10001):
sum_d = sum_divisors(i)
if sum_d > 0:
other_sum = sum_divisors(sum_d)
sum_other_sum = sum_divisors(other_sum)
print i... | 21.44 | 62 | 0.639925 | 92 | 536 | 3.456522 | 0.282609 | 0.08805 | 0.138365 | 0.119497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027228 | 0.246269 | 536 | 24 | 63 | 22.333333 | 0.759901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.15 | 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 | 0 | 0 | 1 |
6f774f0644ec879f656435140fa0c4b4e50a004f | 4,392 | py | Python | test/test_mount.py | ltmix-web/bottle | 64084b2363a3d1bf223a9118b9f9c582e4710a21 | [
"MIT"
] | 6,086 | 2015-01-01T11:27:41.000Z | 2022-03-30T19:35:50.000Z | test/test_mount.py | ltmix-web/bottle | 64084b2363a3d1bf223a9118b9f9c582e4710a21 | [
"MIT"
] | 600 | 2015-01-01T13:02:13.000Z | 2022-03-14T20:35:49.000Z | test/test_mount.py | ltmix-web/bottle | 64084b2363a3d1bf223a9118b9f9c582e4710a21 | [
"MIT"
] | 1,556 | 2015-01-01T07:03:08.000Z | 2022-03-15T13:44:53.000Z | # -*- coding: utf-8 -*-
import bottle
from .tools import ServerTestBase
from bottle import response
class TestAppMounting(ServerTestBase):
def setUp(self):
ServerTestBase.setUp(self)
self.subapp = bottle.Bottle()
@self.subapp.route('/')
@self.subapp.route('/test/<test>')
de... | 34.3125 | 75 | 0.572177 | 509 | 4,392 | 4.848723 | 0.1611 | 0.074554 | 0.053485 | 0.06483 | 0.561588 | 0.561588 | 0.472853 | 0.419773 | 0.373582 | 0.354133 | 0 | 0.015193 | 0.250683 | 4,392 | 127 | 76 | 34.582677 | 0.734731 | 0.009791 | 0 | 0.443396 | 0 | 0 | 0.151404 | 0 | 0 | 0 | 0 | 0 | 0.320755 | 1 | 0.216981 | false | 0 | 0.028302 | 0.04717 | 0.339623 | 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 | 0 | 0 | 0 | 1 |
6f77a01579793ca8f9fce5210dc9b23da548b70e | 2,389 | py | Python | tests/unit/chroma_api/test_log.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | 1 | 2021-02-08T16:59:14.000Z | 2021-02-08T16:59:14.000Z | tests/unit/chroma_api/test_log.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | null | null | null | tests/unit/chroma_api/test_log.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User, Group
from tests.unit.chroma_api.tastypie_test import TestApiClient
from tests.unit.chroma_api.chroma_api_test_case import ChromaApiTestCase
from tests.unit.chroma_core.helpers import fake_log_message
class TestLogResource(ChromaApiTestCase):
def setUp(self):
... | 45.075472 | 119 | 0.683131 | 271 | 2,389 | 5.837638 | 0.291513 | 0.061947 | 0.024652 | 0.03603 | 0.318584 | 0.185841 | 0.185841 | 0.135272 | 0.135272 | 0.135272 | 0 | 0.00106 | 0.21013 | 2,389 | 52 | 120 | 45.942308 | 0.837308 | 0.11553 | 0 | 0.171429 | 0 | 0 | 0.182468 | 0.034302 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.085714 | false | 0.085714 | 0.114286 | 0 | 0.228571 | 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 | 0 | 0 | 0 | 1 |
488e73463a8f10ac4a73ab1371ddb52148a78cb2 | 35,685 | py | Python | executor/contexts.py | metabolize/python-executor | 3c44978bc4f5fb5b9f4636a79be527bc72d33de6 | [
"MIT"
] | null | null | null | executor/contexts.py | metabolize/python-executor | 3c44978bc4f5fb5b9f4636a79be527bc72d33de6 | [
"MIT"
] | null | null | null | executor/contexts.py | metabolize/python-executor | 3c44978bc4f5fb5b9f4636a79be527bc72d33de6 | [
"MIT"
] | null | null | null | # Programmer friendly subprocess wrapper.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: May 20, 2018
# URL: https://executor.readthedocs.io
r"""
Dependency injection for command execution contexts.
The :mod:`~executor.contexts` module defines the :class:`LocalContext`,
:class:`RemoteContext` and :cl... | 40.736301 | 108 | 0.634272 | 4,313 | 35,685 | 5.183399 | 0.157663 | 0.010288 | 0.016103 | 0.016103 | 0.41443 | 0.377259 | 0.349168 | 0.333244 | 0.314412 | 0.300054 | 0 | 0.002058 | 0.278184 | 35,685 | 875 | 109 | 40.782857 | 0.865867 | 0.622951 | 0 | 0.295082 | 0 | 0 | 0.053475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22541 | false | 0 | 0.053279 | 0 | 0.487705 | 0.004098 | 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 | 0 | 0 | 0 | 1 |
48947a8a707b6932f4cb18844f23a65392dc32cb | 3,312 | py | Python | common/PHP.py | nfawbert/deployments | 6cedf25af8d9983fb72dd8cdcd1427c836c1904a | [
"MIT"
] | null | null | null | common/PHP.py | nfawbert/deployments | 6cedf25af8d9983fb72dd8cdcd1427c836c1904a | [
"MIT"
] | null | null | null | common/PHP.py | nfawbert/deployments | 6cedf25af8d9983fb72dd8cdcd1427c836c1904a | [
"MIT"
] | null | null | null | from fabric.api import *
from fabric.operations import put
from fabric.contrib.files import *
import random
import string
# Custom Code Enigma modules
import common.Utils
# Run a composer command
@task
@roles('app_all')
def composer_command(site_root, composer_command="install", package_to_install=None, install_no_de... | 41.4 | 215 | 0.742452 | 455 | 3,312 | 5.182418 | 0.283516 | 0.093299 | 0.050891 | 0.07464 | 0.239186 | 0.186599 | 0.186599 | 0.099237 | 0.099237 | 0.071247 | 0 | 0 | 0.162742 | 3,312 | 79 | 216 | 41.924051 | 0.850343 | 0.138889 | 0 | 0.189655 | 0 | 0.017241 | 0.279086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.068966 | 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 | 0 | 0 | 1 |
4894da9214ef8cfbd63bd7b7ca9c6c0201fe6b8d | 1,281 | py | Python | oversee/thumbnail.py | bpsagar/oversee-app | 1bb6097ead22a95cd6852af804d587b4f7a71bf8 | [
"MIT"
] | null | null | null | oversee/thumbnail.py | bpsagar/oversee-app | 1bb6097ead22a95cd6852af804d587b4f7a71bf8 | [
"MIT"
] | null | null | null | oversee/thumbnail.py | bpsagar/oversee-app | 1bb6097ead22a95cd6852af804d587b4f7a71bf8 | [
"MIT"
] | null | null | null | from moviepy.editor import VideoFileClip
from PIL import Image
from .filetype import FileType
class CannotGenerateThumbnail(Exception):
"""Exception raised when a thumbnail cannot be created for the file"""
pass
def _resize_image(filepath, outfilepath, width):
"""Resize, optimize and make the image pro... | 33.710526 | 78 | 0.715847 | 158 | 1,281 | 5.727848 | 0.405063 | 0.083978 | 0.070718 | 0.059669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008721 | 0.194379 | 1,281 | 37 | 79 | 34.621622 | 0.868217 | 0.215457 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.045455 | 0.136364 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4895ca1a1328f78e1a37b3327b908c01b39e45e0 | 2,994 | py | Python | edg_core/ScalaCompilerInterface.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | edg_core/ScalaCompilerInterface.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | edg_core/ScalaCompilerInterface.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | from typing import Optional, Any, Type, Iterable, Union
import os
import subprocess
from . import edgir, edgrpc
from .BufferSerializer import BufferSerializer, BufferDeserializer
from .Core import builder
from .HierarchyBlock import Block
from .DesignTop import DesignTop
from .Refinements import Refinements
class C... | 34.413793 | 101 | 0.736473 | 345 | 2,994 | 6.286957 | 0.353623 | 0.0355 | 0.020747 | 0.023052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00201 | 0.169339 | 2,994 | 86 | 102 | 34.813953 | 0.870125 | 0.011356 | 0 | 0.030769 | 0 | 0.015385 | 0.091278 | 0.021974 | 0 | 0 | 0 | 0.011628 | 0.092308 | 1 | 0.092308 | false | 0.030769 | 0.138462 | 0 | 0.323077 | 0.015385 | 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 | 0 | 0 | 0 | 1 |
4897f417f914ffaf8c3d30e94b17af9d43096e32 | 1,887 | py | Python | dglt/contrib/moses/moses/model/gvae/find_rule_idxs_min.py | uta-smile/CD-MVGNN | b48f4cd14befed298980a83edb417ab6809f0af6 | [
"MIT"
] | 3 | 2022-02-06T09:13:51.000Z | 2022-02-19T15:03:35.000Z | dglt/contrib/moses/moses/model/gvae/find_rule_idxs_min.py | uta-smile/CD-MVGNN | b48f4cd14befed298980a83edb417ab6809f0af6 | [
"MIT"
] | 1 | 2022-02-14T23:16:27.000Z | 2022-02-14T23:16:27.000Z | dglt/contrib/moses/moses/model/gvae/find_rule_idxs_min.py | uta-smile/CD-MVGNN | b48f4cd14befed298980a83edb417ab6809f0af6 | [
"MIT"
] | null | null | null | import pandas as pd
def find_rule_idxs_min(csv_path):
rule_idxs_min = set()
rule_idxs_list = pd.read_csv(csv_path, usecols=['IDXS'], squeeze=True).astype(str).tolist()
for rule_idxs in rule_idxs_list:
rule_idxs_min |= set([int(x) for x in rule_idxs.split('|')])
print(rule_idxs_min)
return ... | 36.288462 | 95 | 0.7292 | 343 | 1,887 | 3.521866 | 0.19242 | 0.271523 | 0.127483 | 0.053808 | 0.304636 | 0.144868 | 0.084437 | 0.054636 | 0.054636 | 0 | 0 | 0 | 0.147324 | 1,887 | 51 | 96 | 37 | 0.750777 | 0.005299 | 0 | 0.051282 | 0 | 0 | 0.094703 | 0.063135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.102564 | 0.051282 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
489f05a206217b42c4f40b928c2626248b026d98 | 5,076 | py | Python | skclean/detectors/neighbors.py | Shihab-Shahriar/scikit-clean | 1f5d4266c91ca7074f1833de78526c39d97a5648 | [
"MIT"
] | 4 | 2020-11-02T14:01:50.000Z | 2021-12-06T09:18:33.000Z | skclean/detectors/neighbors.py | Shihab-Shahriar/scikit-clean | 1f5d4266c91ca7074f1833de78526c39d97a5648 | [
"MIT"
] | null | null | null | skclean/detectors/neighbors.py | Shihab-Shahriar/scikit-clean | 1f5d4266c91ca7074f1833de78526c39d97a5648 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.exceptions import NotFittedError
from sklearn.neighbors import KNeighborsClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.neighbors._base import _get_weights
from .base import BaseDetector
# TODO: Support other distance metrics
class KDN(BaseDetector):
"... | 34.530612 | 99 | 0.639283 | 709 | 5,076 | 4.399154 | 0.252468 | 0.030458 | 0.026932 | 0.016031 | 0.383456 | 0.378968 | 0.337288 | 0.309073 | 0.30234 | 0.29144 | 0 | 0.011628 | 0.254531 | 5,076 | 146 | 100 | 34.767123 | 0.812632 | 0.330378 | 0 | 0.242857 | 0 | 0 | 0.013259 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.342857 | 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 | 0 | 0 | 0 | 1 |
48a318d7bf6c34c6da8b2647ef5a3c3fef887705 | 4,153 | py | Python | naive_bayes.py | jpmaldonado/nb-hadoop | 7d5e7fee9aedcad254dc7004c471551ba65bc21d | [
"MIT"
] | null | null | null | naive_bayes.py | jpmaldonado/nb-hadoop | 7d5e7fee9aedcad254dc7004c471551ba65bc21d | [
"MIT"
] | null | null | null | naive_bayes.py | jpmaldonado/nb-hadoop | 7d5e7fee9aedcad254dc7004c471551ba65bc21d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 20 15:53:11 2015
@author: pablo
"""
import re
import math
class classifier:
def __init__(self,getfeatures, filename = None):
# counts of feature/category combinations
self.fc={}
# counts of document in each category
self.cc = {}
... | 26.967532 | 86 | 0.575006 | 536 | 4,153 | 4.414179 | 0.294776 | 0.016906 | 0.013525 | 0.017751 | 0.092984 | 0.0541 | 0.032122 | 0 | 0 | 0 | 0 | 0.013333 | 0.313749 | 4,153 | 153 | 87 | 27.143791 | 0.816842 | 0.2013 | 0 | 0.060241 | 0 | 0 | 0.043277 | 0.019784 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024096 | null | null | 0.024096 | 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 | 0 | 0 | 1 |
48ab0cb63c0a7b19369efe3a633d7c80a41f99d4 | 890 | py | Python | scripts/python/update_series_catalog/organize_files.py | CMIP5/HUC8Climate | 411bce49a56ea88085f37cfa5471fec6759db6cf | [
"MIT"
] | null | null | null | scripts/python/update_series_catalog/organize_files.py | CMIP5/HUC8Climate | 411bce49a56ea88085f37cfa5471fec6759db6cf | [
"MIT"
] | null | null | null | scripts/python/update_series_catalog/organize_files.py | CMIP5/HUC8Climate | 411bce49a56ea88085f37cfa5471fec6759db6cf | [
"MIT"
] | null | null | null | __author__ = 'Jiri'
import os
import requests
import shutil
from findtools.find_files import (find_files, Match)
base_dir = "C:\climate"
#get list of HUC's
dir1 = 'FutureFive'
dir2 = 'FutureFour'
dir3 = 'FutureOne'
dir4 = 'FutureSix'
dir5 = 'FutureThree'
dir6 = 'FutureTwo'
dir7 = 'HistoricalOne'
dir8 = 'Historica... | 22.25 | 81 | 0.680899 | 122 | 890 | 4.860656 | 0.57377 | 0.040472 | 0.033727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011019 | 0.18427 | 890 | 39 | 82 | 22.820513 | 0.805785 | 0.019101 | 0 | 0 | 0 | 0.034483 | 0.21445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48ad0c77922be6cf865cfe659d6d5c8a48982d09 | 2,231 | py | Python | solidity/python/PerformanceExpTestCross.py | surzm/contracts-solidity | 6864daaad41e3878b34e2d61dc16b9b04db8facb | [
"Apache-2.0"
] | 200 | 2020-06-18T13:33:45.000Z | 2022-03-29T09:38:14.000Z | solidity/python/PerformanceExpTestCross.py | clevermacaw/contracts-solidity | a998d98bf87621b8826fa511e0d8f7828cba22d3 | [
"Apache-2.0"
] | 73 | 2020-06-18T18:26:21.000Z | 2022-01-30T17:31:19.000Z | solidity/python/PerformanceExpTestCross.py | clevermacaw/contracts-solidity | a998d98bf87621b8826fa511e0d8f7828cba22d3 | [
"Apache-2.0"
] | 100 | 2020-06-16T20:34:55.000Z | 2022-03-25T23:54:07.000Z | import Web3Wrapper
import InputGenerator
MINIMUM_VALUE_BALANCE = 100
MAXIMUM_VALUE_BALANCE = 10 ** 34
GROWTH_FACTOR_BALANCE = 2.5
MINIMUM_VALUE_WEIGHT = 100000
MAXIMUM_VALUE_WEIGHT = 900000
GROWTH_FACTOR_WEIGHT = 1.5
MINIMUM_VALUE_AMOUNT = 1
MAXIMUM_VALUE_AMOUNT = 10 ** 34
GROWTH_FACTOR_AMOUNT = 2.5
def Main():
... | 39.140351 | 181 | 0.647243 | 204 | 2,231 | 6.843137 | 0.318627 | 0.068768 | 0.157593 | 0.175501 | 0.265043 | 0.265043 | 0.265043 | 0.265043 | 0.265043 | 0.265043 | 0 | 0.035514 | 0.280592 | 2,231 | 56 | 182 | 39.839286 | 0.834268 | 0 | 0 | 0 | 0 | 0 | 0.040341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.023256 | 0.046512 | 0 | 0.069767 | 0.023256 | 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 | 0 | 0 | 1 |
48b67416e08ae51f4cfec969abe0dd8c250d451b | 7,530 | py | Python | shift_reg_gpio/shift_reg_slider.py | dot-cat/dpl_specific_platforms | be46cf1d4075acfa4ec5f2ec84e3b674d357b6e4 | [
"MIT"
] | null | null | null | shift_reg_gpio/shift_reg_slider.py | dot-cat/dpl_specific_platforms | be46cf1d4075acfa4ec5f2ec84e3b674d357b6e4 | [
"MIT"
] | null | null | null | shift_reg_gpio/shift_reg_slider.py | dot-cat/dpl_specific_platforms | be46cf1d4075acfa4ec5f2ec84e3b674d357b6e4 | [
"MIT"
] | null | null | null | ##############################################################################################
# FIXME List:
# CC3 - Consider Change 3
# См. файл things/specific/shift_reg_trigger.py
# CC4 - Consider Change 4
# Проверка на тип толком и не нужна: наличие полей pos, neg и их типы проверяются и так.
# CC5 - Consider C... | 33.466667 | 103 | 0.622444 | 810 | 7,530 | 5.601235 | 0.337037 | 0.03769 | 0.033061 | 0.025127 | 0.264492 | 0.178091 | 0.161781 | 0.111087 | 0.111087 | 0.111087 | 0 | 0.004756 | 0.273971 | 7,530 | 224 | 104 | 33.616071 | 0.825133 | 0.304382 | 0 | 0.293578 | 0 | 0 | 0.043807 | 0 | 0 | 0 | 0 | 0.026786 | 0 | 1 | 0.12844 | false | 0 | 0.027523 | 0 | 0.275229 | 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 | 0 | 0 | 0 | 1 |
48b8587f23cd4f26a54fe7b93b7f656783a72992 | 375 | py | Python | blender/arm/logicnode/native/LN_shutdown.py | notwarp/armory | bd6078e3035eefcb3c725664698eeb369b4c2d88 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/native/LN_shutdown.py | notwarp/armory | bd6078e3035eefcb3c725664698eeb369b4c2d88 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/native/LN_shutdown.py | notwarp/armory | bd6078e3035eefcb3c725664698eeb369b4c2d88 | [
"Zlib"
] | null | null | null | from arm.logicnode.arm_nodes import *
class ShutdownNode(ArmLogicTreeNode):
"""Closes the application."""
bl_idname = 'LNShutdownNode'
bl_label = 'Shutdown'
arm_version = 1
def init(self, context):
super(ShutdownNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
... | 26.785714 | 53 | 0.68 | 40 | 375 | 6.225 | 0.725 | 0.056225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0.197333 | 375 | 13 | 54 | 28.846154 | 0.82392 | 0.061333 | 0 | 0 | 0 | 0 | 0.187861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
48be221c5bc137548d9a5958375eb9f53d267670 | 434 | py | Python | netbox/secrets/migrations/0003_unicode_literals.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 6 | 2017-12-01T05:13:39.000Z | 2020-01-23T13:04:43.000Z | netbox/secrets/migrations/0003_unicode_literals.py | emersonfelipesp/netbox | fecca5ad83fb6b48a2f15982dfd3242653f105f9 | [
"Apache-2.0"
] | 25 | 2019-09-17T19:40:50.000Z | 2022-03-11T04:01:55.000Z | netbox/secrets/migrations/0003_unicode_literals.py | emersonfelipesp/netbox | fecca5ad83fb6b48a2f15982dfd3242653f105f9 | [
"Apache-2.0"
] | 3 | 2017-11-18T01:28:22.000Z | 2018-05-17T14:04:43.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-24 15:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('secrets', '0002_userkey_add_session_key'),
]
operations = [
migrations.AlterField(
model_name='userkey',
... | 22.842105 | 66 | 0.605991 | 48 | 434 | 5.333333 | 0.770833 | 0.070313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063091 | 0.269585 | 434 | 18 | 67 | 24.111111 | 0.74448 | 0.152074 | 0 | 0 | 1 | 0 | 0.180822 | 0.076712 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48bf399adc6e945ff44e627fa3ae442717defcca | 794 | py | Python | appengine/monorail/framework/pbproxy_test_pb2.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | 1 | 2018-01-02T05:47:07.000Z | 2018-01-02T05:47:07.000Z | appengine/monorail/framework/pbproxy_test_pb2.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/monorail/framework/pbproxy_test_pb2.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is govered by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Message classes for use by template_helpers_test."""
from protorpc import messages
class P... | 36.090909 | 73 | 0.777078 | 106 | 794 | 5.764151 | 0.641509 | 0.07365 | 0.052373 | 0.072013 | 0.209493 | 0.209493 | 0.209493 | 0.209493 | 0.209493 | 0.209493 | 0 | 0.013006 | 0.128463 | 794 | 21 | 74 | 37.809524 | 0.869942 | 0.482368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
48c10fde45c2663f5bdd45656704150a817d116e | 6,827 | py | Python | GUI.py | iampraveenmng/Jarvis-the-voice-assistant-for-students | ae0fea4953e5baae5c005586738472f84aa2a68f | [
"MIT"
] | null | null | null | GUI.py | iampraveenmng/Jarvis-the-voice-assistant-for-students | ae0fea4953e5baae5c005586738472f84aa2a68f | [
"MIT"
] | null | null | null | GUI.py | iampraveenmng/Jarvis-the-voice-assistant-for-students | ae0fea4953e5baae5c005586738472f84aa2a68f | [
"MIT"
] | null | null | null | from tkinter import*
from PIL import Image,ImageTk
from tkinter import ttk
import webbrowser
import requests
import json
def changeOnHover(button, colorOnHover, colorOnLeave):
# adjusting backgroung of the widget
# background on entering widget
button.bind("<Enter>", func=lambda e: bu... | 42.66875 | 128 | 0.601435 | 953 | 6,827 | 4.299056 | 0.172088 | 0.061508 | 0.068343 | 0.06639 | 0.749329 | 0.732975 | 0.684403 | 0.671711 | 0.616305 | 0.591652 | 0 | 0.064755 | 0.228651 | 6,827 | 160 | 129 | 42.66875 | 0.713255 | 0.124213 | 0 | 0.315789 | 0 | 0 | 0.16322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0.010526 | 0.063158 | 0 | 0.115789 | 0.021053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48c2ba64ae791aa68ce835888a466cda8fb82eb9 | 5,964 | py | Python | src/collectors/solr/test/testsolr.py | art19/netuitive-diamond | 57f61f2444e6f3d3692b4ee989415939bfaa932e | [
"MIT"
] | 2 | 2016-11-17T13:17:50.000Z | 2017-03-28T19:42:04.000Z | src/collectors/solr/test/testsolr.py | art19/netuitive-diamond | 57f61f2444e6f3d3692b4ee989415939bfaa932e | [
"MIT"
] | 62 | 2016-09-30T14:04:52.000Z | 2021-04-22T21:22:28.000Z | src/collectors/solr/test/testsolr.py | art19/netuitive-diamond | 57f61f2444e6f3d3692b4ee989415939bfaa932e | [
"MIT"
] | 4 | 2017-01-24T14:44:56.000Z | 2021-03-03T17:14:19.000Z | #!/usr/bin/python
# coding=utf-8
##########################################################################
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from mock import Mock
from mock import patch
from diamond.collector import Collector
from solr import SolrColl... | 38.727273 | 78 | 0.587693 | 522 | 5,964 | 6.591954 | 0.239464 | 0.068003 | 0.073235 | 0.026155 | 0.148794 | 0.072653 | 0.052892 | 0.029643 | 0.029643 | 0 | 0 | 0.037594 | 0.264085 | 5,964 | 153 | 79 | 38.980392 | 0.746411 | 0.004863 | 0 | 0.081967 | 0 | 0 | 0.446682 | 0.402381 | 0 | 0 | 0 | 0 | 0.02459 | 1 | 0.032787 | false | 0 | 0.065574 | 0 | 0.106557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48c2f6ad2585d7796dc5558f572ef19dc323a3a0 | 3,825 | py | Python | fastflix/widgets/about.py | AwesomeGitHubRepos/FastFlix | 60adf2b68a13907ac17013cb621867b2b302c101 | [
"MIT"
] | 1 | 2021-06-14T04:35:50.000Z | 2021-06-14T04:35:50.000Z | fastflix/widgets/about.py | AwesomeGitHubRepos/FastFlix | 60adf2b68a13907ac17013cb621867b2b302c101 | [
"MIT"
] | 1 | 2020-12-24T13:08:56.000Z | 2020-12-24T13:08:56.000Z | fastflix/widgets/about.py | leonardyan/FastFlix | 01f19c2de74945a4c60db61711aea9d3fe01b0cc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pathlib import Path
import reusables
from box import __version__ as box_version
from qtpy import API, QtCore, QtGui, QtWidgets
from fastflix.language import t
from fastflix.shared import base_path, link, pyinstaller
from fastflix.version import __version__
__all__ =... | 44.476744 | 116 | 0.643922 | 425 | 3,825 | 5.647059 | 0.315294 | 0.0375 | 0.04375 | 0.0525 | 0.309167 | 0.147917 | 0.093333 | 0.093333 | 0.061667 | 0 | 0 | 0.008267 | 0.209412 | 3,825 | 85 | 117 | 45 | 0.785384 | 0.01098 | 0 | 0.028986 | 0 | 0.217391 | 0.35123 | 0.026184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.101449 | 0 | 0.130435 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48c3e3fbf3ecc285548a9026c68463de0f61bae4 | 286 | py | Python | tree/max_path_sum.py | javyxu/algorithms-python | 2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38 | [
"MIT"
] | 8 | 2017-07-02T15:17:25.000Z | 2017-09-18T15:37:51.000Z | tree/max_path_sum.py | javyxu/algorithms-python | 2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38 | [
"MIT"
] | null | null | null | tree/max_path_sum.py | javyxu/algorithms-python | 2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38 | [
"MIT"
] | 5 | 2018-02-23T22:08:28.000Z | 2020-08-19T08:31:47.000Z |
maximum = float("-inf")
def max_path_sum(root):
helper(root)
return maximum
def helper(root):
if not root:
return 0
left = helper(root.left)
right = helper(root.right)
maximum = max(maximum, left+right+root.val)
return root.val + max(left, right)
| 19.066667 | 47 | 0.636364 | 41 | 286 | 4.390244 | 0.390244 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.241259 | 286 | 14 | 48 | 20.428571 | 0.824885 | 0 | 0 | 0 | 0 | 0 | 0.014035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48c69ba536f5fc7865cceecb70a3b1167475a6f4 | 772 | py | Python | main/admin.py | sirodoht/cyanblue | 5f422308fd86cda14698a92d3de076412b94dabb | [
"MIT"
] | null | null | null | main/admin.py | sirodoht/cyanblue | 5f422308fd86cda14698a92d3de076412b94dabb | [
"MIT"
] | null | null | null | main/admin.py | sirodoht/cyanblue | 5f422308fd86cda14698a92d3de076412b94dabb | [
"MIT"
] | null | null | null | from django.contrib import admin
from main import models
class SubscriptionAdmin(admin.ModelAdmin):
list_display = (
"id",
"email",
"created_at",
"unsubscribe_key",
)
ordering = ["-id"]
admin.site.register(models.Subscription, SubscriptionAdmin)
class EmailRecordAdmin... | 16.083333 | 59 | 0.586788 | 69 | 772 | 6.463768 | 0.463768 | 0.100897 | 0.127803 | 0.174888 | 0.410314 | 0.221973 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283679 | 772 | 47 | 60 | 16.425532 | 0.80651 | 0 | 0 | 0.354839 | 0 | 0 | 0.13601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.354839 | 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 | 0 | 0 | 0 | 1 |
48c6dc61dc294ec64d65f29d087568b1ce3671d3 | 422 | py | Python | payroll/payroll_management/migrations/0003_auto_20200221_1319.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | 1 | 2021-03-26T19:39:30.000Z | 2021-03-26T19:39:30.000Z | payroll/payroll_management/migrations/0003_auto_20200221_1319.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | 12 | 2020-10-27T22:47:01.000Z | 2022-03-12T00:42:49.000Z | payroll/payroll_management/migrations/0003_auto_20200221_1319.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-21 10:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payroll_management', '0002_auto_20200221_1221'),
]
operations = [
migrations.AlterField(
model_name='payslip',
... | 22.210526 | 59 | 0.590047 | 43 | 422 | 5.651163 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105802 | 0.305687 | 422 | 18 | 60 | 23.444444 | 0.723549 | 0.106635 | 0 | 0 | 1 | 0 | 0.168067 | 0.064426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48cd2144f5d1099211b514ae445cde31819f7618 | 244 | py | Python | src/publicholiday/urls.py | ApetEat/Public-Holidays-API | 01fb19a1c2d48fa572bf42eae3712e417e32643c | [
"Apache-2.0"
] | null | null | null | src/publicholiday/urls.py | ApetEat/Public-Holidays-API | 01fb19a1c2d48fa572bf42eae3712e417e32643c | [
"Apache-2.0"
] | null | null | null | src/publicholiday/urls.py | ApetEat/Public-Holidays-API | 01fb19a1c2d48fa572bf42eae3712e417e32643c | [
"Apache-2.0"
] | 1 | 2018-02-06T19:19:17.000Z | 2018-02-06T19:19:17.000Z | from django.conf.urls import url
from .views import PublicHolidayRetrieveAPIView
urlpatterns = [
url(r'^city/(?P<city>[^/]+)/date/(?P<date>[^/]+)/$',
PublicHolidayRetrieveAPIView.as_view(),
name='check_public_holiday'),
] | 24.4 | 56 | 0.663934 | 26 | 244 | 6.115385 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151639 | 244 | 10 | 57 | 24.4 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0.261224 | 0.179592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
48d1fc44b0de7dfa501ccc6f84b6181b23f7a375 | 2,032 | py | Python | shipstation/pagination.py | Alchez/shipstation-client | 5afaefc3161fa779d568211fa037e2a0fd2e0705 | [
"MIT"
] | null | null | null | shipstation/pagination.py | Alchez/shipstation-client | 5afaefc3161fa779d568211fa037e2a0fd2e0705 | [
"MIT"
] | null | null | null | shipstation/pagination.py | Alchez/shipstation-client | 5afaefc3161fa779d568211fa037e2a0fd2e0705 | [
"MIT"
] | null | null | null | import typing
from decimal import Decimal
from functools import partial
from attr import attrib, attrs
from httpx import Response
from shipstation.base import ShipStationBase
@attrs(auto_attribs=True)
class Page:
key: str
type: type
call: typing.Optional[typing.Tuple[typing.Callable, typing.Dict[str, ty... | 31.75 | 86 | 0.620571 | 260 | 2,032 | 4.711538 | 0.261538 | 0.080816 | 0.04898 | 0.03102 | 0.088163 | 0.052245 | 0.052245 | 0.052245 | 0.052245 | 0 | 0 | 0.009901 | 0.254429 | 2,032 | 63 | 87 | 32.253968 | 0.79868 | 0.018701 | 0 | 0.076923 | 0 | 0 | 0.022111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0 | 0.115385 | 0.057692 | 0.557692 | 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 | 0 | 1 | 0 | 0 | 1 |
48d20d6589fb59f38eaf617507e50d284d292569 | 79,298 | py | Python | projectFile.py | waelbenamara/predef | 8e76806d4236d0f81d69e2c66865d5d72265ffd8 | [
"MIT"
] | null | null | null | projectFile.py | waelbenamara/predef | 8e76806d4236d0f81d69e2c66865d5d72265ffd8 | [
"MIT"
] | null | null | null | projectFile.py | waelbenamara/predef | 8e76806d4236d0f81d69e2c66865d5d72265ffd8 | [
"MIT"
] | null | null | null | from flask_website import app
app.run(debug=True)
#!/usr/bin/env python
from flask_website import app
from flask_website.search import update_documentation_index
with app.test_request_context():
update_documentation_index()
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
DEBUG = False
SECRET_KE... | 35.072092 | 142 | 0.593168 | 8,806 | 79,298 | 5.266182 | 0.178628 | 0.025359 | 0.017251 | 0.019343 | 0.216242 | 0.13583 | 0.103528 | 0.064648 | 0.047354 | 0.040475 | 0 | 0.010365 | 0.283399 | 79,298 | 2,260 | 143 | 35.087611 | 0.805579 | 0.02507 | 0 | 0.335533 | 0 | 0.004569 | 0.480353 | 0.055587 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002538 | 0.041624 | null | null | 0.008122 | 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 | 0 | 0 | 1 |
48d276e102dadacd027cc51af602e15a39571740 | 483 | py | Python | instructors/course-2015/errors_and_introspection/project/primetester.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 46 | 2017-09-27T20:19:36.000Z | 2020-12-08T10:07:19.000Z | instructors/course-2015/errors_and_introspection/project/primetester.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 6 | 2018-01-09T08:07:37.000Z | 2020-09-07T12:25:13.000Z | instructors/course-2015/errors_and_introspection/project/primetester.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 18 | 2017-10-10T02:06:51.000Z | 2019-12-01T10:18:13.000Z |
def prime_test(i, j=2):
"""
Cases:
Return False if i is not prime
Return True if i is prime
Caveat: cannot test 1.
Caveat 2: Cannot test 2.
It is fortuitous that these tests both return true.
"""
if j >= i: # i used greater than to cover 1
return True
if i % j == 0: # ... | 19.32 | 55 | 0.581781 | 80 | 483 | 3.475 | 0.4625 | 0.097122 | 0.129496 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0.335404 | 483 | 24 | 56 | 20.125 | 0.82866 | 0.10559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48db67ce1a4b8bac788e8cc3c30e7e8ccda14f38 | 5,275 | py | Python | tic-tac-toe.py | StevenCopeland/Python-Games | 8ca0c9550b962d8c15fb387440c7aa6451d73abc | [
"MIT"
] | 2 | 2018-05-01T17:51:20.000Z | 2019-09-12T06:39:09.000Z | tic-tac-toe.py | StevenCopeland/Python-Games | 8ca0c9550b962d8c15fb387440c7aa6451d73abc | [
"MIT"
] | 3 | 2017-06-01T10:58:50.000Z | 2017-09-13T01:52:56.000Z | tic-tac-toe.py | StevenCopeland/Python-Games | 8ca0c9550b962d8c15fb387440c7aa6451d73abc | [
"MIT"
] | 2 | 2019-03-08T13:06:51.000Z | 2020-03-24T10:00:41.000Z | # Tic-Tac-Toe
import random
def drawBoard(board):
# this function prints the board
# "board" is a list of strings
print(board[7] + '|' + board[8] + '|' + board[9])
print('-+-+-')
print(board[4] + '|' + board[5] + '|' + board[6])
print('-+-+-')
print(board[1] + '|' + board[2] + '|' + board... | 29.971591 | 91 | 0.554882 | 662 | 5,275 | 4.42145 | 0.23565 | 0.027332 | 0.038264 | 0.0082 | 0.226853 | 0.203621 | 0.188931 | 0.173557 | 0.173557 | 0.173557 | 0 | 0.019514 | 0.329668 | 5,275 | 175 | 92 | 30.142857 | 0.808258 | 0.167583 | 0 | 0.344262 | 0 | 0 | 0.07251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008197 | null | null | 0.114754 | 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 | 0 | 0 | 1 |
48e261b36b4fdfcd531fec0f679441a634abf408 | 911 | py | Python | utils/aes-encrypt.py | contraster-steve/vulpy | bfc60f1e79ff9deb70dbbb8544ba35e2f868e4f3 | [
"MIT"
] | 28 | 2020-01-09T09:50:26.000Z | 2022-03-18T19:27:36.000Z | utils/aes-encrypt.py | contraster-steve/vulpy | bfc60f1e79ff9deb70dbbb8544ba35e2f868e4f3 | [
"MIT"
] | 2 | 2022-02-13T15:43:03.000Z | 2022-02-13T15:44:25.000Z | utils/aes-encrypt.py | contraster-steve/vulpy | bfc60f1e79ff9deb70dbbb8544ba35e2f868e4f3 | [
"MIT"
] | 134 | 2019-12-18T16:37:23.000Z | 2022-03-22T06:09:00.000Z | #!/usr/bin/env python3
import os
import sys
from binascii import hexlify
import click
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
@click.command()
@click.argument('key')
@clic... | 24.621622 | 89 | 0.726674 | 113 | 911 | 5.725664 | 0.442478 | 0.074189 | 0.102009 | 0.098918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010178 | 0.137212 | 911 | 36 | 90 | 25.305556 | 0.812977 | 0.082327 | 0 | 0 | 0 | 0 | 0.021635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.380952 | 0.047619 | 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 | 0 | 0 | 0 | 1 |
48e864eed26b7c36f3a5b34e76c900e47e128c1b | 456 | py | Python | fashion-client/web_backend/generator/views.py | scresh/fashion_dlt | 3a4d640bcf17e75e4df469619c286ad6e0f536e9 | [
"Apache-2.0"
] | 4 | 2018-12-12T00:47:22.000Z | 2021-11-04T18:59:54.000Z | fashion-client/web_backend/generator/views.py | scresh/fashion_dlt | 3a4d640bcf17e75e4df469619c286ad6e0f536e9 | [
"Apache-2.0"
] | null | null | null | fashion-client/web_backend/generator/views.py | scresh/fashion_dlt | 3a4d640bcf17e75e4df469619c286ad6e0f536e9 | [
"Apache-2.0"
] | 1 | 2019-01-27T10:11:21.000Z | 2019-01-27T10:11:21.000Z | from django.http import JsonResponse
from django.views import View
from secp256k1 import PrivateKey
class GeneratorView(View):
def get(self, request):
private_key = PrivateKey()
private_key_hex = private_key.serialize()
public_key_hex = private_key.pubkey.serialize().hex()
result ... | 26.823529 | 61 | 0.666667 | 52 | 456 | 5.596154 | 0.442308 | 0.206186 | 0.089347 | 0.109966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.252193 | 456 | 16 | 62 | 28.5 | 0.841642 | 0 | 0 | 0 | 0 | 0 | 0.046053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48f52ab0eaed81e6b6dd60c19fd3bdff844586ae | 2,591 | py | Python | azext_keyvault/keyvault/models/deleted_storage_account_item_py3.py | jdmartinez36/azure-keyvault-cli-extension | 4dc674b9c30cac13e27347782c49b3ed7dca2e2f | [
"MIT"
] | 2 | 2019-06-12T13:44:34.000Z | 2020-06-01T13:24:04.000Z | azext_keyvault/keyvault/models/deleted_storage_account_item_py3.py | jdmartinez36/azure-keyvault-cli-extension | 4dc674b9c30cac13e27347782c49b3ed7dca2e2f | [
"MIT"
] | 5 | 2018-04-26T01:14:29.000Z | 2021-01-05T00:45:39.000Z | azext_keyvault/keyvault/models/deleted_storage_account_item_py3.py | jdmartinez36/azure-keyvault-cli-extension | 4dc674b9c30cac13e27347782c49b3ed7dca2e2f | [
"MIT"
] | 8 | 2018-04-24T22:52:48.000Z | 2021-11-16T06:29:28.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 ... | 40.484375 | 83 | 0.631802 | 287 | 2,591 | 5.571429 | 0.404181 | 0.070044 | 0.056285 | 0.045028 | 0.040025 | 0.040025 | 0.040025 | 0 | 0 | 0 | 0 | 0.000482 | 0.198765 | 2,591 | 63 | 84 | 41.126984 | 0.76975 | 0.17445 | 0 | 0 | 0 | 0 | 0.306537 | 0.021201 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48f665f0b77802e6a5b2f174bb4a6f078d80c683 | 720 | py | Python | examples/config_example.py | lucblender/FlipDigitPython | 93ad20e1cec2f45a93b53a4e60b40e4d02960d2e | [
"X11"
] | 1 | 2021-05-05T11:24:48.000Z | 2021-05-05T11:24:48.000Z | examples/config_example.py | lucblender/FlipDigitPython | 93ad20e1cec2f45a93b53a4e60b40e4d02960d2e | [
"X11"
] | null | null | null | examples/config_example.py | lucblender/FlipDigitPython | 93ad20e1cec2f45a93b53a4e60b40e4d02960d2e | [
"X11"
] | null | null | null | from flipdigit import *
from time import sleep
#---------------------------------------------------------
#
# We start with basic config: addr = 0xff and speed 9600
#
#---------------------------------------------------------
# myDigit = FlipDigit('/dev/tty0') #Linux com port
myDigit = FlipDigit('COM6')
myDigit.se... | 21.818182 | 58 | 0.473611 | 72 | 720 | 4.652778 | 0.597222 | 0.143284 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.125 | 720 | 32 | 59 | 22.5 | 0.468254 | 0.626389 | 0 | 0 | 0 | 0 | 0.01581 | 0 | 0 | 0 | 0.01581 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b0bb944036994a40d6e9c8ac6e0f39ace756ad4 | 6,557 | py | Python | ckan/ckanext-spatial/ckanext/spatial/lib/__init__.py | lorenzoeusepi77/ckan | 3a620e9c81ba1750d12941c02184092d507f71df | [
"Apache-2.0"
] | null | null | null | ckan/ckanext-spatial/ckanext/spatial/lib/__init__.py | lorenzoeusepi77/ckan | 3a620e9c81ba1750d12941c02184092d507f71df | [
"Apache-2.0"
] | null | null | null | ckan/ckanext-spatial/ckanext/spatial/lib/__init__.py | lorenzoeusepi77/ckan | 3a620e9c81ba1750d12941c02184092d507f71df | [
"Apache-2.0"
] | null | null | null | import logging
from string import Template
from ckan.model import Session, Package
from ckan.lib.base import config
from ckanext.spatial.model import PackageExtent
from shapely.geometry import asShape
from ckanext.spatial.geoalchemy_common import (WKTElement, ST_Transform,
... | 34.510526 | 187 | 0.622083 | 840 | 6,557 | 4.705952 | 0.253571 | 0.065773 | 0.036428 | 0.045535 | 0.242854 | 0.22211 | 0.207437 | 0.171515 | 0.167974 | 0.117885 | 0 | 0.023784 | 0.281836 | 6,557 | 189 | 188 | 34.693122 | 0.815672 | 0.04865 | 0 | 0.131868 | 0 | 0.021978 | 0.226317 | 0.080714 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b21054650292a232b0a2123e23f4300d1188808 | 11,421 | py | Python | data_processing/filter_aichallenge2018_only_single_person.py | tucan9389/mobile-pose-estimation-for-TF2 | 82a01359820c1797505a13bc663df49b717cc696 | [
"Apache-2.0"
] | 122 | 2019-04-08T04:20:26.000Z | 2021-03-22T05:32:29.000Z | data_processing/filter_aichallenge2018_only_single_person.py | tucan9389/mobile-pose-estimation-for-TF2 | 82a01359820c1797505a13bc663df49b717cc696 | [
"Apache-2.0"
] | 45 | 2019-03-31T22:29:31.000Z | 2021-03-21T07:00:08.000Z | data_processing/filter_aichallenge2018_only_single_person.py | tucan9389/mobile-pose-estimation-for-TF2 | 82a01359820c1797505a13bc663df49b717cc696 | [
"Apache-2.0"
] | 35 | 2019-05-24T03:43:11.000Z | 2021-03-09T08:22:22.000Z | import os, json, shutil
# coco_annotation_json_path = "/home/centos/datasets/ai_challenger_2018/ai_challenger_keypoint_train_20170909/keypoint_train_annotations_20170909.json"
# image_source_dir_path = "/home/centos/datasets/ai_challenger_2018/ai_challenger_keypoint_train_20170909/keypoint_train_images_201... | 47.987395 | 875 | 0.687068 | 1,655 | 11,421 | 4.465257 | 0.186103 | 0.075778 | 0.053586 | 0.02977 | 0.547903 | 0.477402 | 0.448714 | 0.406631 | 0.359134 | 0.312585 | 0 | 0.08632 | 0.103318 | 11,421 | 238 | 876 | 47.987395 | 0.63529 | 0.359776 | 0 | 0.262295 | 0 | 0 | 0.315798 | 0.228479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032787 | 0.008197 | 0 | 0.008197 | 0.42623 | 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 | 0 | 0 | 1 | 0 | 1 |
5b22794326898042e14d15222bfa79d251a33853 | 3,405 | py | Python | steamcareer/playerData.py | StephenChamberlain/steam-year | e9e89c55af9844779758f1f9cacd4cbd4722d52b | [
"MIT"
] | null | null | null | steamcareer/playerData.py | StephenChamberlain/steam-year | e9e89c55af9844779758f1f9cacd4cbd4722d52b | [
"MIT"
] | 2 | 2017-11-02T14:02:08.000Z | 2017-11-21T12:23:55.000Z | steamcareer/playerData.py | StephenChamberlain/steam-year | e9e89c55af9844779758f1f9cacd4cbd4722d52b | [
"MIT"
] | null | null | null | '''
Created on 13 Apr 2019
Holds player data so that necessary data processing can happen in one place and the result shared between all templates.
@author: Stephen
'''
import datetime, requests, json, babel.numbers
class PlayerData(object):
def __init__(self, steam_user):
try:
self.use... | 45.4 | 144 | 0.58326 | 417 | 3,405 | 4.611511 | 0.429257 | 0.042122 | 0.050962 | 0.054602 | 0.175767 | 0.068123 | 0.042122 | 0 | 0 | 0 | 0 | 0.012169 | 0.324229 | 3,405 | 75 | 145 | 45.4 | 0.823555 | 0.228781 | 0 | 0.235294 | 0 | 0 | 0.089204 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.039216 | false | 0 | 0.019608 | 0 | 0.078431 | 0.039216 | 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 | 0 | 0 | 0 | 1 |
d289ebd9186fec7865d6ff154e4be9dd8e3c199e | 23,318 | py | Python | Trash/sandbox/hmm/ghmm-0.9-rc3/HMMEd/HMMEditor.py | ruslankuzmin/julia | 2ad5bfb9c9684b1c800e96732a9e2f1e844b856f | [
"BSD-3-Clause"
] | 7 | 2017-03-13T17:32:26.000Z | 2021-09-27T16:51:22.000Z | Trash/sandbox/hmm/ghmm-0.9-rc3/HMMEd/HMMEditor.py | ruslankuzmin/julia | 2ad5bfb9c9684b1c800e96732a9e2f1e844b856f | [
"BSD-3-Clause"
] | 1 | 2021-05-29T19:54:02.000Z | 2021-05-29T19:54:52.000Z | Trash/sandbox/hmm/ghmm-0.9-rc3/HMMEd/HMMEditor.py | ruslankuzmin/julia | 2ad5bfb9c9684b1c800e96732a9e2f1e844b856f | [
"BSD-3-Clause"
] | 25 | 2016-10-18T03:31:44.000Z | 2020-12-29T13:23:10.000Z | #!/usr/bin/env python
################################################################################
#
# This file is part of ghmm
#
# file: HMMEd.py
# author: Janne Grunau
#
# Copyright (C) 1998-2002, Alexander Schliep
#
# Contact: schliep@molgen.mpg... | 39.589134 | 204 | 0.582168 | 2,673 | 23,318 | 5.022821 | 0.188552 | 0.020334 | 0.030836 | 0.020334 | 0.429987 | 0.385819 | 0.342023 | 0.313273 | 0.290854 | 0.269477 | 0 | 0.019589 | 0.286302 | 23,318 | 588 | 205 | 39.656463 | 0.787165 | 0.081182 | 0 | 0.338061 | 0 | 0.009456 | 0.084915 | 0.008135 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018913 | null | null | 0.007092 | 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 | 0 | 0 | 1 |
d28c1c9d41c9e47bd064b5431a592d6d56da62e2 | 4,505 | py | Python | cogs/vault.py | sks316/vimm-vault-bot | 3a2e091de5b63e86d3bf6b80610a2b524e37e6bc | [
"MIT"
] | 2 | 2021-08-09T21:50:03.000Z | 2021-08-12T17:34:51.000Z | cogs/vault.py | sks316/vimm-vault-bot | 3a2e091de5b63e86d3bf6b80610a2b524e37e6bc | [
"MIT"
] | 1 | 2022-02-13T22:45:35.000Z | 2022-02-14T03:26:53.000Z | cogs/vault.py | sks316/vimm-vault-bot | 3a2e091de5b63e86d3bf6b80610a2b524e37e6bc | [
"MIT"
] | null | null | null | import discord
from discord.ext import tasks, commands
import asyncio
from datetime import datetime
import pytz
import json
import aiohttp
import os
import vimm_config as config
botver = "vimm-vault-bot v1.0"
class Vault(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.vault_updates.sta... | 56.3125 | 256 | 0.598668 | 609 | 4,505 | 4.410509 | 0.328407 | 0.035741 | 0.007818 | 0.022338 | 0.284438 | 0.246463 | 0.246463 | 0.224125 | 0.224125 | 0.224125 | 0 | 0.00356 | 0.314095 | 4,505 | 79 | 257 | 57.025316 | 0.865696 | 0.382908 | 0 | 0.333333 | 0 | 0.035088 | 0.216521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.052632 | 0.157895 | 0 | 0.210526 | 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 | 0 | 0 | 0 | 1 |
d2929059321995d515e6191d45f30a858ec29318 | 1,068 | py | Python | tests/autokeras/adapters/output_adapter_test.py | thwang1231/autokeras | 2b8a1c5506896102ed49a3e82db811ada44a1d6c | [
"MIT"
] | 3 | 2020-10-20T05:32:34.000Z | 2020-12-22T08:37:02.000Z | tests/autokeras/adapters/output_adapter_test.py | thwang1231/autokeras | 2b8a1c5506896102ed49a3e82db811ada44a1d6c | [
"MIT"
] | null | null | null | tests/autokeras/adapters/output_adapter_test.py | thwang1231/autokeras | 2b8a1c5506896102ed49a3e82db811ada44a1d6c | [
"MIT"
] | 3 | 2020-03-31T07:53:54.000Z | 2022-01-28T11:29:07.000Z | import numpy as np
import pytest
import tensorflow as tf
from autokeras.adapters import output_adapter
from tests import utils
def test_y_is_pd_series():
(x, y), (val_x, val_y) = utils.dataframe_series()
head = output_adapter.ClassificationHeadAdapter(name='a')
head.fit_transform(y)
assert isinstance... | 28.864865 | 61 | 0.720037 | 150 | 1,068 | 4.96 | 0.36 | 0.080645 | 0.091398 | 0.225806 | 0.642473 | 0.642473 | 0.516129 | 0.516129 | 0.516129 | 0.346774 | 0 | 0.001124 | 0.166667 | 1,068 | 36 | 62 | 29.666667 | 0.834831 | 0 | 0 | 0.407407 | 0 | 0 | 0.054307 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2973a7db9190bcb0380ff22c84ef6d6adefbb6d | 560 | py | Python | examples/example.py | ashleysommer/sanicpluginsframework | 646820cb23dd2a767afe75c7bda0f901fe9507ba | [
"MIT"
] | 46 | 2017-10-19T00:59:07.000Z | 2020-11-16T21:16:47.000Z | examples/example.py | ashleysommer/sanicpluginsframework | 646820cb23dd2a767afe75c7bda0f901fe9507ba | [
"MIT"
] | 17 | 2017-12-25T00:27:36.000Z | 2021-03-21T14:45:20.000Z | examples/example.py | ashleysommer/sanic-plugin-toolkit | 18d96ab8d71448139f6b8c925a4bea246de844de | [
"MIT"
] | 10 | 2017-12-22T03:26:16.000Z | 2020-10-19T19:16:59.000Z | from sanic import Sanic
from sanic.response import text
from sanic_plugin_toolkit import SanicPluginRealm
#from examples.my_plugin import my_plugin
from examples import my_plugin
from examples.my_plugin import MyPlugin
from logging import DEBUG
app = Sanic(__name__)
# mp = MyPlugin(app) //Legacy registration example
... | 25.454545 | 66 | 0.776786 | 81 | 560 | 5.098765 | 0.493827 | 0.116223 | 0.067797 | 0.096852 | 0.208232 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020492 | 0.128571 | 560 | 21 | 67 | 26.666667 | 0.82582 | 0.160714 | 0 | 0 | 0 | 0 | 0.061966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d29d532c90b27cec85cb05f75841e3d997183f1f | 20,592 | py | Python | scripts/redcap/export_mr_sessions_pipeline.py | nicholsn/ncanda-data-integration | 45e563b5ef71f70a92c8772b1dcc8019e94d9c8b | [
"BSD-3-Clause"
] | null | null | null | scripts/redcap/export_mr_sessions_pipeline.py | nicholsn/ncanda-data-integration | 45e563b5ef71f70a92c8772b1dcc8019e94d9c8b | [
"BSD-3-Clause"
] | null | null | null | scripts/redcap/export_mr_sessions_pipeline.py | nicholsn/ncanda-data-integration | 45e563b5ef71f70a92c8772b1dcc8019e94d9c8b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
##
## See COPYING file distributed along with the ncanda-data-integration package
## for the copyright and license terms
##
import re
import os
import subprocess
import shutil
import sys
import sibis
from export_mr_sessions_spiral import export_spiral_files
#
# Checker whether an EID file ex... | 47.229358 | 269 | 0.651321 | 2,708 | 20,592 | 4.700148 | 0.147341 | 0.034884 | 0.035355 | 0.02357 | 0.512021 | 0.436832 | 0.385685 | 0.34978 | 0.319689 | 0.296119 | 0 | 0.011177 | 0.239656 | 20,592 | 435 | 270 | 47.337931 | 0.80175 | 0.162879 | 0 | 0.314607 | 0 | 0.007491 | 0.167124 | 0.05316 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003745 | 0.026217 | null | null | 0.037453 | 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 | 0 | 0 | 1 |
d29e033308fc5d0120edf627a199fb3556227fe0 | 541 | py | Python | Dataset/Leetcode/valid/111/405.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/111/405.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/111/405.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def traverse(self, node: TreeNode, deep: int):
if node is None: return deep
deep += 1
if node.left is None:
return self.traverse(node.right, deep)
elif node.right is None:
return self.traverse(node.left, deep)
else:
left_de... | 30.055556 | 56 | 0.5878 | 71 | 541 | 4.422535 | 0.309859 | 0.191083 | 0.203822 | 0.101911 | 0.388535 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.316081 | 541 | 17 | 57 | 31.823529 | 0.843243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.071429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d29f5864dd6f4be0bb47c8b7ab370d4eb1021291 | 7,088 | py | Python | library/oci_fast_connect_provider_service_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 106 | 2018-06-29T16:38:56.000Z | 2022-02-16T16:38:56.000Z | library/oci_fast_connect_provider_service_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 122 | 2018-09-11T12:49:39.000Z | 2021-05-01T04:54:22.000Z | library/oci_fast_connect_provider_service_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 78 | 2018-07-04T05:48:54.000Z | 2022-03-09T06:33:12.000Z | #!/usr/bin/python
# Copyright (c) 2019, Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for detail... | 37.702128 | 113 | 0.621896 | 727 | 7,088 | 5.80055 | 0.275103 | 0.059995 | 0.103628 | 0.083235 | 0.4636 | 0.407161 | 0.294048 | 0.254209 | 0.230021 | 0.165521 | 0 | 0.006334 | 0.309537 | 7,088 | 187 | 114 | 37.903743 | 0.855333 | 0.043877 | 0 | 0.221519 | 0 | 0 | 0.684242 | 0.147098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0 | 0.044304 | 0 | 0.063291 | 0.006329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2a6788c3edd749ae2a9e00470a0ea8c2c001b15 | 328 | py | Python | gunpowder/__init__.py | coinse/gunpowder | ee7ba37ec2a8e56ff8e31e4398fc0e149a18fffc | [
"MIT"
] | 2 | 2020-08-13T02:19:02.000Z | 2021-04-18T12:41:23.000Z | gunpowder/__init__.py | coinse/gunpowder | ee7ba37ec2a8e56ff8e31e4398fc0e149a18fffc | [
"MIT"
] | null | null | null | gunpowder/__init__.py | coinse/gunpowder | ee7ba37ec2a8e56ff8e31e4398fc0e149a18fffc | [
"MIT"
] | null | null | null | """
Copyright (C) 2017 by Junhwi Kim <junhwi.kim23@gmail.com>
Licensed under the MIT License:
See the LICENSE file at the top-level directory of this distribution.
"""
from os import path
CAVM_HEADER = path.dirname(__file__) + '/branch_distance.h'
STRCMP2 = path.dirname(__file__) + '/strcmp2.c'
from .session import ... | 25.230769 | 69 | 0.753049 | 49 | 328 | 4.836735 | 0.714286 | 0.092827 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028369 | 0.140244 | 328 | 12 | 70 | 27.333333 | 0.812057 | 0.487805 | 0 | 0 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d2b3b1a4d8b090b25a39cda94e437ea9699c064a | 5,468 | py | Python | test/test_http.py | FabianElsmer/rueckenwind | 255b026009edcdc41b6a5ad7cbae3e5e4970696c | [
"Apache-2.0"
] | 3 | 2015-09-03T07:39:57.000Z | 2020-01-28T09:14:04.000Z | test/test_http.py | FabianElsmer/rueckenwind | 255b026009edcdc41b6a5ad7cbae3e5e4970696c | [
"Apache-2.0"
] | 6 | 2015-05-09T13:26:12.000Z | 2017-07-13T14:22:31.000Z | test/test_http.py | FabianElsmer/rueckenwind | 255b026009edcdc41b6a5ad7cbae3e5e4970696c | [
"Apache-2.0"
] | 5 | 2015-05-13T08:58:22.000Z | 2020-09-10T14:49:43.000Z | from collections import namedtuple
import pytest
import tornado.testing
import rw.scope
import rw.http
import rw.routing
import rw.template
from .common import generate_handler_func
## TODO
# def test_duplicated_functions():
# m = rw.http.Module('test')
#
# @m.get('/')
# def foo():
# pass
#
# ... | 34.389937 | 89 | 0.585772 | 708 | 5,468 | 4.341808 | 0.129944 | 0.058556 | 0.07417 | 0.092713 | 0.585231 | 0.464541 | 0.361418 | 0.317827 | 0.283019 | 0.258946 | 0 | 0.004625 | 0.24872 | 5,468 | 158 | 90 | 34.607595 | 0.743671 | 0.097476 | 0 | 0.287129 | 1 | 0 | 0.12324 | 0.008774 | 0 | 0 | 0 | 0.006329 | 0.306931 | 1 | 0.069307 | false | 0 | 0.079208 | 0.009901 | 0.168317 | 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 | 0 | 0 | 0 | 1 |
d2daf79e42663bcb42485db1ab52c53b8a68d5c8 | 1,290 | py | Python | proyectoinoxidables/urls.py | inoxidables/ferreteriainoxidables | f5a3e8ba6938dbc5bcf3d1ab4aa0b5606b9ebeaa | [
"MIT"
] | null | null | null | proyectoinoxidables/urls.py | inoxidables/ferreteriainoxidables | f5a3e8ba6938dbc5bcf3d1ab4aa0b5606b9ebeaa | [
"MIT"
] | null | null | null | proyectoinoxidables/urls.py | inoxidables/ferreteriainoxidables | f5a3e8ba6938dbc5bcf3d1ab4aa0b5606b9ebeaa | [
"MIT"
] | null | null | null | """proyectoinoxidables URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | 29.318182 | 91 | 0.705426 | 172 | 1,290 | 5.255814 | 0.348837 | 0.066372 | 0.016593 | 0.026549 | 0.220133 | 0.129425 | 0.082965 | 0 | 0 | 0 | 0 | 0.007463 | 0.168992 | 1,290 | 43 | 92 | 30 | 0.835821 | 0.492248 | 0 | 0 | 0 | 0 | 0.180556 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d2dc72c58746553da941e4c1877dbe6fa9730221 | 479 | py | Python | fitbeat_project/middleware/threadlocals.py | huddlej/fitbeats | f1841747740636320eaa4e94c1fad591a5100fbd | [
"Apache-2.0"
] | null | null | null | fitbeat_project/middleware/threadlocals.py | huddlej/fitbeats | f1841747740636320eaa4e94c1fad591a5100fbd | [
"Apache-2.0"
] | null | null | null | fitbeat_project/middleware/threadlocals.py | huddlej/fitbeats | f1841747740636320eaa4e94c1fad591a5100fbd | [
"Apache-2.0"
] | null | null | null | # threadlocals middleware
try:
from threading import local
except ImportError:
from django.utils._threading_local import local
_thread_locals = local()
def get_current_user():
return getattr(_thread_locals, 'user', None)
class ThreadLocals(object):
"""Middleware that gets various objects from the
... | 29.9375 | 61 | 0.745303 | 60 | 479 | 5.766667 | 0.583333 | 0.104046 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173278 | 479 | 15 | 62 | 31.933333 | 0.873737 | 0.26096 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d2e7b7814b472aeeaa9e102c21770c931a8aea45 | 1,528 | py | Python | generate_index.py | ddayguerrero/spimi-indexer | b7519f72b41b322cc0dd4babeb7bb4b0094d886a | [
"MIT"
] | 5 | 2018-10-08T16:59:59.000Z | 2022-03-20T19:25:34.000Z | generate_index.py | ddayguerrero/spimi-indexer | b7519f72b41b322cc0dd4babeb7bb4b0094d886a | [
"MIT"
] | null | null | null | generate_index.py | ddayguerrero/spimi-indexer | b7519f72b41b322cc0dd4babeb7bb4b0094d886a | [
"MIT"
] | 2 | 2020-02-17T16:17:05.000Z | 2021-03-26T02:43:45.000Z | import sys
from os import listdir
import reuters
from vocabulary import preprocess
from spimi import spimi_invert, merge_blocks
def compile_inverted_index(block_size_limit):
""" Generate inverted index for Reuters21578 """
reuters_corpus = reuters.ReutersCorpus()
# Retrieve Reuters documents
print("==... | 41.297297 | 94 | 0.649215 | 172 | 1,528 | 5.540698 | 0.412791 | 0.094439 | 0.117524 | 0.052466 | 0.119622 | 0.071354 | 0 | 0 | 0 | 0 | 0 | 0.017671 | 0.185209 | 1,528 | 37 | 95 | 41.297297 | 0.747791 | 0.283377 | 0 | 0 | 1 | 0 | 0.281076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.26087 | 0.217391 | 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 | 0 | 0 | 0 | 1 |
d2e9ccffbcb568f3e3041a9acfb347da1fabf79f | 4,166 | py | Python | examples/classification/test_classify_multinet_samePE.py | Saums/ml-suite | 8a2b52763b0c1406abc4400302977d8354d74e11 | [
"Apache-2.0"
] | null | null | null | examples/classification/test_classify_multinet_samePE.py | Saums/ml-suite | 8a2b52763b0c1406abc4400302977d8354d74e11 | [
"Apache-2.0"
] | null | null | null | examples/classification/test_classify_multinet_samePE.py | Saums/ml-suite | 8a2b52763b0c1406abc4400302977d8354d74e11 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# // SPDX-License-Identifier: BSD-3-CLAUSE
#
# (C) Copyright 2018, Xilinx, Inc.
#
import argparse
import os.path
import math
import sys
import timeit
import json
import xdnn, xdnn_io
import numpy as np
from ctypes import *
# example for multiple executors
def main(argv):
args = xdnn_io.pro... | 35.305085 | 141 | 0.6229 | 465 | 4,166 | 5.378495 | 0.341935 | 0.105558 | 0.05038 | 0.043982 | 0.142343 | 0.138345 | 0.111156 | 0.073571 | 0.073571 | 0.073571 | 0 | 0.012428 | 0.246759 | 4,166 | 117 | 142 | 35.606838 | 0.784576 | 0.135622 | 0 | 0.151515 | 0 | 0 | 0.056375 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.045455 | 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 | 0 | 0 | 1 |
d2eadd3580cfb8423364871a07d6b76d72283330 | 660 | py | Python | 14/14-5(binarySearch).py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | 14/14-5(binarySearch).py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | 14/14-5(binarySearch).py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | def binary_search(element, some_list):
# 코드를 작성하세요.
start_index = 0
end_index = len(some_list) - 1
while (start_index <= end_index):
mid_index = (end_index + start_index) // 2
if(some_list[mid_index] == element):
return mid_index
elif(some_list[mid_index] < element):
... | 34.736842 | 50 | 0.589394 | 106 | 660 | 3.443396 | 0.264151 | 0.19726 | 0.232877 | 0.054795 | 0.208219 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088115 | 0.260606 | 660 | 19 | 51 | 34.736842 | 0.659836 | 0.034848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 0.294118 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2ee782b63e0420a8b86e14a4e60b26955d83a3a | 2,704 | py | Python | solr-synonyms-api/synonyms/constants/__init__.py | rarmitag/namex | 1b308bf96130619d4a61d44e075cc7ab177dc6cd | [
"Apache-2.0"
] | null | null | null | solr-synonyms-api/synonyms/constants/__init__.py | rarmitag/namex | 1b308bf96130619d4a61d44e075cc7ab177dc6cd | [
"Apache-2.0"
] | 2 | 2019-01-14T23:59:11.000Z | 2019-01-30T16:09:16.000Z | solr-synonyms-api/synonyms/constants/__init__.py | rarmitag/namex | 1b308bf96130619d4a61d44e075cc7ab177dc6cd | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class DesignationPositionCodes(Enum):
START = 'start'
END = 'end'
ANY = 'any'
@classmethod
def list(cls):
values = []
for item in cls:
values.append(item.value)
return values
@classmethod
def has_value(cls, value):
return... | 24.581818 | 105 | 0.651257 | 324 | 2,704 | 5.240741 | 0.385802 | 0.053004 | 0.053004 | 0.061837 | 0.361602 | 0.361602 | 0.361602 | 0.361602 | 0.361602 | 0.361602 | 0 | 0.002013 | 0.265163 | 2,704 | 110 | 106 | 24.581818 | 0.852542 | 0.217086 | 0 | 0.583333 | 0 | 0 | 0.038023 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 1 | 0.125 | false | 0 | 0.013889 | 0.055556 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
d2efcfaf04e70cbc4f80a2a0a59721341c3be472 | 876 | py | Python | azure-mgmt-commerce/azure/mgmt/commerce/models/info_field.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 4 | 2016-06-17T23:25:29.000Z | 2022-03-30T22:37:45.000Z | azure-mgmt-commerce/azure/mgmt/commerce/models/info_field.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 2 | 2016-09-30T21:40:24.000Z | 2017-11-10T18:16:18.000Z | azure-mgmt-commerce/azure/mgmt/commerce/models/info_field.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 3 | 2016-05-03T20:49:46.000Z | 2017-10-05T21:05:27.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 ... | 30.206897 | 76 | 0.575342 | 95 | 876 | 5.242105 | 0.715789 | 0.02008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001391 | 0.179224 | 876 | 28 | 77 | 31.285714 | 0.691238 | 0.695205 | 0 | 0 | 0 | 0 | 0.102128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d2eff885e8dd8001f0b6285ea501b00868d0f984 | 1,573 | py | Python | ipfs-feed-translator.py | the7erm/ipfs-feed-translator | 6d21c8e69fd104a9b7a22e98461f50947c92bf6e | [
"MIT"
] | 1 | 2022-02-19T20:42:19.000Z | 2022-02-19T20:42:19.000Z | ipfs-feed-translator.py | the7erm/ipfs-feed-translator | 6d21c8e69fd104a9b7a22e98461f50947c92bf6e | [
"MIT"
] | 1 | 2021-06-01T22:36:34.000Z | 2021-06-01T22:36:34.000Z | ipfs-feed-translator.py | the7erm/ipfs-feed-translator | 6d21c8e69fd104a9b7a22e98461f50947c92bf6e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import config
import sys
import time
import rss_feed
from rss_feed import RssFeed, public_gateways
from logger import log
from downloader import download, safe_filename
log.debug("import complete")
while True:
rss_feed.error_tracker = {}
rss_feed.reliablity_tracker = {}
ipns_urls ... | 30.25 | 95 | 0.614749 | 217 | 1,573 | 4.258065 | 0.336406 | 0.05303 | 0.038961 | 0.038961 | 0.138528 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.274634 | 1,573 | 51 | 96 | 30.843137 | 0.803681 | 0.034965 | 0 | 0.05 | 0 | 0 | 0.129288 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f0206fcca5d768384f9df321ec7cd79744dc21 | 174 | py | Python | Ar_Script/ar_007_打印1-100的基数.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | null | null | null | Ar_Script/ar_007_打印1-100的基数.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | 1 | 2020-01-19T01:19:57.000Z | 2020-01-19T01:19:57.000Z | Ar_Script/ar_007_打印1-100的基数.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | null | null | null | #for循环方法
a=1
for i in range(0,101):
if i%2!=0:
print(i,end=' ')
#换行打印
print('')
while a<=100:
if a % 2!=0:
print(a,end=' ')
a+=1
| 11.6 | 25 | 0.413793 | 30 | 174 | 2.4 | 0.533333 | 0.055556 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12037 | 0.37931 | 174 | 14 | 26 | 12.428571 | 0.546296 | 0.063218 | 0 | 0 | 0 | 0 | 0.013605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f044a7f5d4e9b4667ead71c04178e41f809285 | 1,182 | py | Python | src/oci/service_manager_proxy/models/__init__.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/service_manager_proxy/models/__init__.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/service_manager_proxy/models/__init__.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 51.391304 | 245 | 0.834179 | 127 | 1,182 | 7.590551 | 0.582677 | 0.057054 | 0.091286 | 0.020747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0.107445 | 1,182 | 22 | 246 | 53.727273 | 0.899526 | 0.336717 | 0 | 0 | 0 | 0 | 0.170732 | 0.111682 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 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 | 0 | 0 | 0 | 1 |
d2f88c5bb2091dcf041d49b981855fad093b2ca0 | 1,408 | py | Python | setup.py | DataDog/elasticmock | ef4841bbe2bbaddc2b05bb205cce30aee759da83 | [
"MIT"
] | null | null | null | setup.py | DataDog/elasticmock | ef4841bbe2bbaddc2b05bb205cce30aee759da83 | [
"MIT"
] | null | null | null | setup.py | DataDog/elasticmock | ef4841bbe2bbaddc2b05bb205cce30aee759da83 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import setuptools
__version__ = "1.8.0+dd.2"
# read the contents of your readme file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), "rb") as f:
long_description = f.read().decode("utf-8")
setuptools.setup(
... | 32 | 71 | 0.640625 | 150 | 1,408 | 5.86 | 0.593333 | 0.151308 | 0.19909 | 0.147895 | 0.061433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015455 | 0.21875 | 1,408 | 43 | 72 | 32.744186 | 0.783636 | 0.041903 | 0 | 0.055556 | 0 | 0 | 0.479198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2fb11972a2a824b2550b999b13e1d8f9cd10ae2 | 2,717 | py | Python | etna_cli/config.py | matteyeux/etna-cli | 3a199244df598201563a9983699e1bdc85564a2b | [
"MIT"
] | 2 | 2020-11-25T10:07:18.000Z | 2021-11-06T01:33:34.000Z | etna_cli/config.py | matteyeux/etna-cli | 3a199244df598201563a9983699e1bdc85564a2b | [
"MIT"
] | null | null | null | etna_cli/config.py | matteyeux/etna-cli | 3a199244df598201563a9983699e1bdc85564a2b | [
"MIT"
] | null | null | null | import click
import configparser
import getpass
import keyring
import os
import sys
from pathlib import Path
from typing import Tuple
from etnawrapper import EtnaWrapper
@click.group(name="config")
def main():
"""Init, edit or delete etna config."""
@main.command()
def init():
"""Init config file."""
co... | 26.90099 | 69 | 0.658447 | 315 | 2,717 | 5.577778 | 0.247619 | 0.068298 | 0.034149 | 0.045532 | 0.350028 | 0.277177 | 0.263517 | 0.192373 | 0.192373 | 0.192373 | 0 | 0.000457 | 0.194332 | 2,717 | 100 | 70 | 27.17 | 0.802193 | 0.048215 | 0 | 0.314286 | 0 | 0 | 0.171037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.157143 | 0.128571 | 0 | 0.285714 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d2fb59fff11eb15e21060f42d0a045ade561d559 | 2,127 | py | Python | ws2122-lspm/Lib/site-packages/pm4py/statistics/variants/pandas/get.py | Malekhy/ws2122-lspm | e4dc8b801d12f862b8ef536a0f125f346f085a00 | [
"MIT"
] | 1 | 2022-01-19T04:02:46.000Z | 2022-01-19T04:02:46.000Z | ws2122-lspm/Lib/site-packages/pm4py/statistics/variants/pandas/get.py | Malekhy/ws2122-lspm | e4dc8b801d12f862b8ef536a0f125f346f085a00 | [
"MIT"
] | 1 | 2021-11-19T07:21:48.000Z | 2021-11-19T07:21:48.000Z | ws2122-lspm/Lib/site-packages/pm4py/statistics/variants/pandas/get.py | Malekhy/ws2122-lspm | e4dc8b801d12f862b8ef536a0f125f346f085a00 | [
"MIT"
] | 1 | 2022-01-14T17:15:38.000Z | 2022-01-14T17:15:38.000Z | '''
This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any late... | 29.957746 | 119 | 0.670898 | 279 | 2,127 | 5.057348 | 0.390681 | 0.080794 | 0.02764 | 0.040397 | 0.439405 | 0.420978 | 0.38129 | 0.38129 | 0.38129 | 0.38129 | 0 | 0.004308 | 0.236013 | 2,127 | 70 | 120 | 30.385714 | 0.864 | 0.598496 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d2fd50ce9810b1122edc30138510e886cd6d3744 | 649 | py | Python | example/project/migrations/0001_initial.py | morlandi/django-tables-cleaner | 247e8bf04af3232bddbf00ebc6129ec22b88c22b | [
"MIT"
] | 10 | 2019-01-19T06:52:20.000Z | 2022-03-21T01:19:56.000Z | example/project/migrations/0001_initial.py | morlandi/django-tables-cleaner | 247e8bf04af3232bddbf00ebc6129ec22b88c22b | [
"MIT"
] | 12 | 2020-05-06T13:36:03.000Z | 2021-09-22T19:35:21.000Z | example/project/migrations/0001_initial.py | morlandi/django-tables-cleaner | 247e8bf04af3232bddbf00ebc6129ec22b88c22b | [
"MIT"
] | 3 | 2020-05-06T12:14:18.000Z | 2021-12-01T00:00:22.000Z | # Generated by Django 3.1.1 on 2020-09-13 09:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Sample',
fields=[
('id', models.AutoField(a... | 24.961538 | 114 | 0.540832 | 62 | 649 | 5.564516 | 0.66129 | 0.063768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034325 | 0.326656 | 649 | 25 | 115 | 25.96 | 0.755149 | 0.069337 | 0 | 0 | 1 | 0 | 0.101329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.277778 | 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 | 0 | 0 | 0 | 1 |
96074d00a999538164c6e28290c6e07a8e481438 | 27,844 | py | Python | avalanche/parse_routing.py | EPFL-LAP/fpl21-avalanche | 6cb96911c6c59704bc0dd0056cee3ef576e84fd0 | [
"MIT"
] | 2 | 2021-09-02T13:13:35.000Z | 2021-12-19T11:35:03.000Z | avalanche/parse_routing.py | EPFL-LAP/fpl21-avalanche | 6cb96911c6c59704bc0dd0056cee3ef576e84fd0 | [
"MIT"
] | null | null | null | avalanche/parse_routing.py | EPFL-LAP/fpl21-avalanche | 6cb96911c6c59704bc0dd0056cee3ef576e84fd0 | [
"MIT"
] | 2 | 2021-09-29T02:53:03.000Z | 2022-03-27T09:55:35.000Z | """Parses the final routing and converts it into a Networkx graph.
"""
import copy
import networkx as nx
##########################################################################
def parse_global_routing(filename):
"""Parses .route global routing files.
Parameters
----------
filename : str
N... | 35.881443 | 122 | 0.490267 | 3,156 | 27,844 | 4.207858 | 0.119455 | 0.024398 | 0.018599 | 0.01491 | 0.335693 | 0.29375 | 0.231099 | 0.199699 | 0.183509 | 0.140813 | 0 | 0.007644 | 0.32815 | 27,844 | 775 | 123 | 35.927742 | 0.70225 | 0.0538 | 0 | 0.320166 | 0 | 0.014553 | 0.066095 | 0 | 0 | 0 | 0 | 0.003871 | 0.010395 | 0 | null | null | 0.002079 | 0.004158 | null | null | 0.024948 | 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 | 0 | 0 | 1 |
9613f90cc9d9881c01049687e787ad89c07573dd | 451 | py | Python | projects/training/get-len-with-map.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | projects/training/get-len-with-map.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | projects/training/get-len-with-map.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | """
words = ["apple", "bear", "cat", "doorknob", "elephant", "finger", "good"]
i trqq poluchish tova
[5, 8, 8, 6]
koeto e
dyljinata na vsichki dumi koito sa pone
5 simvola dylgi
polzvam filter + map
"""
words = ["apple", "bear", "cat", "doorknob", "elephant", "finger", "good"]
def get_len_words_in_list(list):
the... | 25.055556 | 74 | 0.667406 | 68 | 451 | 4.308824 | 0.573529 | 0.068259 | 0.095563 | 0.116041 | 0.409556 | 0.293515 | 0.293515 | 0.293515 | 0 | 0 | 0 | 0.015831 | 0.159645 | 451 | 17 | 75 | 26.529412 | 0.757256 | 0 | 0 | 0 | 0 | 0 | 0.153226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
961455ebd1fb336776fb35ea6c9ff23d91d22ecd | 1,002 | py | Python | impala/compat.py | wzhou-code/impyla | 2ff9bf757e3ea6061007470e8cdb0f1a492fbf42 | [
"Apache-2.0"
] | 661 | 2015-01-08T08:33:43.000Z | 2022-03-28T06:29:15.000Z | impala/compat.py | wzhou-code/impyla | 2ff9bf757e3ea6061007470e8cdb0f1a492fbf42 | [
"Apache-2.0"
] | 389 | 2015-01-13T14:58:47.000Z | 2022-03-29T14:45:17.000Z | impala/compat.py | wzhou-code/impyla | 2ff9bf757e3ea6061007470e8cdb0f1a492fbf42 | [
"Apache-2.0"
] | 262 | 2015-01-24T02:29:47.000Z | 2022-03-03T19:13:07.000Z | # Copyright 2015 Cloudera 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 writing, so... | 26.368421 | 74 | 0.732535 | 144 | 1,002 | 5.048611 | 0.645833 | 0.082531 | 0.035763 | 0.044017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013733 | 0.200599 | 1,002 | 37 | 75 | 27.081081 | 0.893883 | 0.622754 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
96193d5e5bab49875a4657e04add5cb2306a3a23 | 825 | py | Python | fastapi_pagination/ext/django.py | lingster/fastapi-pagination | a7870b3adf6e8807036efe7370ce1a925e5fad90 | [
"MIT"
] | null | null | null | fastapi_pagination/ext/django.py | lingster/fastapi-pagination | a7870b3adf6e8807036efe7370ce1a925e5fad90 | [
"MIT"
] | null | null | null | fastapi_pagination/ext/django.py | lingster/fastapi-pagination | a7870b3adf6e8807036efe7370ce1a925e5fad90 | [
"MIT"
] | null | null | null | from typing import Optional
from django.db.models import QuerySet
from pydantic import BaseModel
# To convert from a django ORM model to a pydantic Model, provide a BaseModel with from_django() method to map fields
# from django to pydantic
from fastapi_pagination import resolve_params, create_page
from fastapi_pagi... | 29.464286 | 117 | 0.757576 | 112 | 825 | 5.419643 | 0.428571 | 0.074135 | 0.069193 | 0.062603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166061 | 825 | 27 | 118 | 30.555556 | 0.882267 | 0.168485 | 0 | 0 | 0 | 0 | 0.011713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 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 | 0 | 0 | 0 | 1 |
961b142cca5fd825213955ca554228a998c87867 | 14,109 | py | Python | NSF_Biosensing_kmer_count.py | HoangAVu/UMDkmeroptimization | cef1d308d06c72bd344e85412f162d79cd252daf | [
"MIT"
] | null | null | null | NSF_Biosensing_kmer_count.py | HoangAVu/UMDkmeroptimization | cef1d308d06c72bd344e85412f162d79cd252daf | [
"MIT"
] | null | null | null | NSF_Biosensing_kmer_count.py | HoangAVu/UMDkmeroptimization | cef1d308d06c72bd344e85412f162d79cd252daf | [
"MIT"
] | null | null | null | from Bio.Seq import Seq
import time
from Bio.Alphabet import IUPAC
from Bio import SeqIO
import itertools
import random
import numpy as np
import numpy.linalg as linalg
import scipy.linalg as la
import pickle
import pandas as pd
import matplotlib.pyplot as plt
from kmer_classes_functions import *
from copy... | 57.353659 | 461 | 0.72188 | 1,944 | 14,109 | 4.968107 | 0.117284 | 0.0497 | 0.065231 | 0.082626 | 0.781942 | 0.70087 | 0.609132 | 0.544833 | 0.489025 | 0.471526 | 0 | 0.031636 | 0.132965 | 14,109 | 245 | 462 | 57.587755 | 0.757868 | 0.389326 | 0 | 0.186916 | 0 | 0 | 0.239181 | 0.080495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028037 | false | 0 | 0.149533 | 0 | 0.17757 | 0.037383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
961b4432a93a45dc26aa0d78ff5a1306715a3137 | 2,455 | py | Python | main.py | andycavatorta/RhythmBoxKing | 0296aa3b183414ac1a1762593d3651dbf82a7e2d | [
"MIT"
] | null | null | null | main.py | andycavatorta/RhythmBoxKing | 0296aa3b183414ac1a1762593d3651dbf82a7e2d | [
"MIT"
] | null | null | null | main.py | andycavatorta/RhythmBoxKing | 0296aa3b183414ac1a1762593d3651dbf82a7e2d | [
"MIT"
] | null | null | null |
import time
import threading
import mido
import sys
import MRQ1
#import duplexPort
# globals
MIDI_PORT = False
MIDI_note_mapping = [None] * 127
MIDI_note_mapping[91] = [MRQ1.droneSnare,16]
MIDI_note_mapping[93] = [MRQ1.droneBongo,16]
MIDI_note_mapping[95] = [MRQ1.droneBass, 16]
MIDI_note_mapping[96] = [MRQ1.droneBru... | 28.218391 | 64 | 0.747047 | 361 | 2,455 | 4.847645 | 0.271468 | 0.077714 | 0.128571 | 0.065143 | 0.239429 | 0.239429 | 0.239429 | 0.168571 | 0.168571 | 0.168571 | 0 | 0.047774 | 0.121792 | 2,455 | 86 | 65 | 28.546512 | 0.763915 | 0.182485 | 0 | 0.153846 | 0 | 0 | 0.051685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096154 | null | null | 0.115385 | 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 | 0 | 0 | 1 |
961d7a1c4a9f64f8fe15c4b0cb6d3dac11ea4aa3 | 420 | py | Python | addition.py | BerryWells/Python-basic | 2ec4f92df8570f63a3d1ac9d964bbe9f5671378a | [
"MIT"
] | null | null | null | addition.py | BerryWells/Python-basic | 2ec4f92df8570f63a3d1ac9d964bbe9f5671378a | [
"MIT"
] | null | null | null | addition.py | BerryWells/Python-basic | 2ec4f92df8570f63a3d1ac9d964bbe9f5671378a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 4 19:54:23 2020
@author: Mustapha
"""
import sys
def main(argv):
if len(argv) != 2:
sys.exit('Usage: simple_multi.py <a> <b>')
a = int(sys.argv[1])
b = int(sys.argv[2])
sum = 0
for i in range(a):
sum += b
print "The result of " +... | 16.8 | 75 | 0.521429 | 69 | 420 | 3.043478 | 0.652174 | 0.1 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055921 | 0.27619 | 420 | 25 | 76 | 16.8 | 0.634868 | 0.05 | 0 | 0 | 0 | 0 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
962004fb23b4da8013cf1a85e77df04680c66360 | 1,048 | py | Python | bel/db/redis.py | belbio/bel | 14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8 | [
"Apache-2.0"
] | 6 | 2018-01-31T21:25:40.000Z | 2020-11-18T16:43:56.000Z | bel/db/redis.py | belbio/bel | 14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8 | [
"Apache-2.0"
] | 83 | 2018-01-03T17:31:49.000Z | 2021-12-13T19:50:17.000Z | bel/db/redis.py | belbio/bel | 14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8 | [
"Apache-2.0"
] | 2 | 2019-04-12T20:42:06.000Z | 2020-07-17T02:49:03.000Z | # Standard Library
import json
from typing import List, Tuple
# Third Party
import redis
from loguru import logger
# Local
import bel.core.settings as settings
redis_db = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=0)
batch_cnt = 5 # TODO increase after initial testing
"""Notes
Queues:
... | 20.96 | 80 | 0.667939 | 151 | 1,048 | 4.562914 | 0.516556 | 0.09434 | 0.037736 | 0.060958 | 0.089985 | 0.089985 | 0 | 0 | 0 | 0 | 0 | 0.004872 | 0.216603 | 1,048 | 49 | 81 | 21.387755 | 0.834348 | 0.194656 | 0 | 0.117647 | 0 | 0 | 0.036125 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.470588 | 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 | 0 | 0 | 0 | 1 |
9621e70e6b14b969c70ac7787636150f30ff5107 | 3,685 | py | Python | core/strategy/status.py | zhongxinghong/Botzone-Tank2 | 17fd00a57405ddd2f2bace58bab27800080b1fc7 | [
"MIT"
] | 11 | 2019-06-01T11:17:55.000Z | 2021-06-03T00:47:24.000Z | core/strategy/status.py | zhongxinghong/Botzone-Tank2 | 17fd00a57405ddd2f2bace58bab27800080b1fc7 | [
"MIT"
] | 1 | 2021-03-31T19:17:52.000Z | 2021-03-31T19:17:52.000Z | core/strategy/status.py | zhongxinghong/Botzone-Tank2 | 17fd00a57405ddd2f2bace58bab27800080b1fc7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Administrator
# @Date: 2019-05-01 18:00:49
# @Last Modified by: Administrator
# @Last Modified time: 2019-05-29 16:43:18
"""
当前状态
用于被队友主动获取
"""
__all__ = [
"Status",
]
from ..utils import UniqueIntEnumMeta, debug_print, debug_pprint
#{ BEGIN }#
class Status(object,... | 36.85 | 77 | 0.579376 | 407 | 3,685 | 4.815725 | 0.628993 | 0.060714 | 0.030612 | 0.030612 | 0.02551 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.357395 | 3,685 | 100 | 78 | 36.85 | 0.773649 | 0.218996 | 0 | 0 | 0 | 0 | 0.002513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.014286 | 0 | 0.828571 | 0.014286 | 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 | 0 | 1 | 0 | 0 | 1 |
9622950205a26cf3118a726a9277404c1dffe50e | 8,011 | py | Python | researcher_workspace/admin.py | NeCTAR-RC/bumblebee | 8ba4c543695c83ea1ca532012203f05189438e23 | [
"Apache-2.0"
] | 3 | 2021-11-19T10:45:17.000Z | 2022-02-15T21:57:58.000Z | researcher_workspace/admin.py | NeCTAR-RC/bumblebee | 8ba4c543695c83ea1ca532012203f05189438e23 | [
"Apache-2.0"
] | null | null | null | researcher_workspace/admin.py | NeCTAR-RC/bumblebee | 8ba4c543695c83ea1ca532012203f05189438e23 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin, messages
from django.contrib.auth.admin import UserAdmin
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.utils.html import format_html
from django.utils.translation import gettext as _
from researcher_workspace.models import Permi... | 40.055 | 231 | 0.669579 | 878 | 8,011 | 5.888383 | 0.203872 | 0.034816 | 0.029787 | 0.02089 | 0.363443 | 0.313153 | 0.25087 | 0.244487 | 0.213346 | 0.151644 | 0 | 0.00016 | 0.2182 | 8,011 | 199 | 232 | 40.256281 | 0.825323 | 0.032331 | 0 | 0.237179 | 0 | 0.012821 | 0.243187 | 0.061346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089744 | false | 0.00641 | 0.051282 | 0 | 0.519231 | 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 | 0 | 1 | 0 | 0 | 1 |
962463aefce854d184e6828af550cbeb13305b3f | 183,793 | py | Python | Tools/sqfvalidator/sqf/database.py | Rowantrek/A3-Antistasi | 80ec81108d3370c5bd712717ebd140488415e3e9 | [
"MIT"
] | 161 | 2019-09-02T11:05:52.000Z | 2022-03-15T13:52:06.000Z | Tools/sqfvalidator/sqf/database.py | Rowantrek/A3-Antistasi | 80ec81108d3370c5bd712717ebd140488415e3e9 | [
"MIT"
] | 1,539 | 2019-08-30T17:02:16.000Z | 2022-03-30T23:55:36.000Z | Tools/sqfvalidator/sqf/database.py | Rowantrek/A3-Antistasi | 80ec81108d3370c5bd712717ebd140488415e3e9 | [
"MIT"
] | 200 | 2019-08-31T18:38:37.000Z | 2022-03-25T10:48:30.000Z | # This file is generated automatically by `build_database.py`. Change it there.
from sqf.expressions import BinaryExpression, UnaryExpression, NullExpression
from sqf.types import Keyword, Type, Nothing, Anything, String, Code, Array, Number, Boolean, Namespace, \
Object, Config, Script, Control, Group, Display, Si... | 66.519363 | 109 | 0.748054 | 14,828 | 183,793 | 9.270569 | 0.153628 | 0.197012 | 0.12025 | 0.10685 | 0.394147 | 0.039399 | 0.030532 | 0.017757 | 0.015088 | 0.013538 | 0 | 0.000545 | 0.110815 | 183,793 | 2,762 | 110 | 66.543447 | 0.840595 | 0.000419 | 0 | 0.005074 | 1 | 0 | 0.194073 | 0.035348 | 0 | 0 | 0 | 0 | 0.000362 | 1 | 0 | false | 0.002175 | 0.002175 | 0 | 0.002175 | 0.000725 | 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 | 0 | 0 | 0 | 1 |
96265c0fd664d3106704809ac358950786a046a5 | 7,584 | py | Python | djangocms_blog/cms_plugins.py | sparrowme/djangocms-blog | 6bbb32a3304d284fb699cf713e45ccd48ee876ae | [
"BSD-3-Clause"
] | null | null | null | djangocms_blog/cms_plugins.py | sparrowme/djangocms-blog | 6bbb32a3304d284fb699cf713e45ccd48ee876ae | [
"BSD-3-Clause"
] | null | null | null | djangocms_blog/cms_plugins.py | sparrowme/djangocms-blog | 6bbb32a3304d284fb699cf713e45ccd48ee876ae | [
"BSD-3-Clause"
] | null | null | null | import os.path
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.contrib.sites.shortcuts import get_current_site
from django.db import models
from django.template.loader import select_template
from .forms import AuthorPostsForm, BlogPluginForm, LatestEntriesForm
from .model... | 37.176471 | 119 | 0.697126 | 857 | 7,584 | 5.938156 | 0.172695 | 0.041265 | 0.053645 | 0.033012 | 0.614266 | 0.52977 | 0.512085 | 0.417764 | 0.406956 | 0.362743 | 0 | 0.00132 | 0.200686 | 7,584 | 203 | 120 | 37.359606 | 0.838172 | 0.177743 | 0 | 0.413223 | 0 | 0 | 0.150507 | 0.049892 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099174 | false | 0 | 0.07438 | 0 | 0.595041 | 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 | 0 | 1 | 0 | 0 | 1 |
9627a50f8a3828881c936c14244710ceab5e95af | 803 | py | Python | submissions/surface-area-of-3d-shapes/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | null | null | null | submissions/surface-area-of-3d-shapes/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | 1 | 2022-03-04T20:24:32.000Z | 2022-03-04T20:31:58.000Z | submissions/surface-area-of-3d-shapes/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/surface-area-of-3d-shapes
class Solution:
def surfaceArea(self, grid):
N = len(grid)
ans = 0
for i in range(N):
for j in range(N):
if grid[i][j] == 0:
continue
height = grid[i][j]
... | 32.12 | 74 | 0.307597 | 94 | 803 | 2.62766 | 0.382979 | 0.032389 | 0.064777 | 0.032389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044379 | 0.579078 | 803 | 24 | 75 | 33.458333 | 0.686391 | 0.068493 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
82547fd6842449cd3dab964eedf518565662e734 | 4,661 | py | Python | examples/scripts/make_movie_cartopy.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 38 | 2016-04-05T06:15:42.000Z | 2021-08-31T17:10:00.000Z | examples/scripts/make_movie_cartopy.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 42 | 2016-04-16T07:47:40.000Z | 2022-03-10T19:42:25.000Z | examples/scripts/make_movie_cartopy.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 12 | 2016-05-09T15:15:01.000Z | 2020-01-12T10:24:29.000Z | #!/usr/bin/env python
# coding=utf-8
#
""" Create a movie of a 2D variable
requires: cartopy
to do:
- automatically choose lon,lat bounds and ticks
- fix loading of the library
- improve treatment of datetime64 in titles
"""
# - Modules
#
import sys, os
import xarray as xr
import time,... | 36.992063 | 104 | 0.63377 | 653 | 4,661 | 4.402757 | 0.350689 | 0.057391 | 0.022261 | 0.030609 | 0.446609 | 0.390957 | 0.353391 | 0.353391 | 0.29287 | 0.269217 | 0 | 0.054495 | 0.224415 | 4,661 | 125 | 105 | 37.288 | 0.740802 | 0.195666 | 0 | 0.088235 | 0 | 0 | 0.104059 | 0.055174 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014706 | 0.102941 | null | null | 0.044118 | 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 | 0 | 0 | 1 |
825844ce612ae5c9acc1ab6b809db428035e151b | 664 | py | Python | MicroPythonPkg/MicroPythonDxe/Lib/Uefi/protocols.py | curtisrlee/edk2-staging | 26f310d39e8dcb4fdfb6cb205f1430977dbbc366 | [
"BSD-2-Clause"
] | null | null | null | MicroPythonPkg/MicroPythonDxe/Lib/Uefi/protocols.py | curtisrlee/edk2-staging | 26f310d39e8dcb4fdfb6cb205f1430977dbbc366 | [
"BSD-2-Clause"
] | null | null | null | MicroPythonPkg/MicroPythonDxe/Lib/Uefi/protocols.py | curtisrlee/edk2-staging | 26f310d39e8dcb4fdfb6cb205f1430977dbbc366 | [
"BSD-2-Clause"
] | null | null | null | ## @file
# MicroPython definitions of UEFI protocol GUID values.
#
# Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full te... | 39.058824 | 85 | 0.762048 | 93 | 664 | 5.430108 | 0.741935 | 0.059406 | 0.051485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043557 | 0.170181 | 664 | 16 | 86 | 41.5 | 0.872958 | 0.793675 | 0 | 0 | 0 | 0 | 0.336449 | 0.336449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
825991c4b6b0c3b799074eb2a829d444f6d71c09 | 336 | py | Python | mayan/apps/appearance/migrations/0020_remove_theme_import_file.py | punphatai/Mayan-EDMS | 8f929e427b497817ad0e024cec7f7bec61b172c0 | [
"Apache-2.0"
] | null | null | null | mayan/apps/appearance/migrations/0020_remove_theme_import_file.py | punphatai/Mayan-EDMS | 8f929e427b497817ad0e024cec7f7bec61b172c0 | [
"Apache-2.0"
] | null | null | null | mayan/apps/appearance/migrations/0020_remove_theme_import_file.py | punphatai/Mayan-EDMS | 8f929e427b497817ad0e024cec7f7bec61b172c0 | [
"Apache-2.0"
] | 1 | 2022-02-21T13:19:36.000Z | 2022-02-21T13:19:36.000Z | # Generated by Django 2.2.24 on 2022-03-19 19:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('appearance', '0019_auto_20220319_1818'),
]
operations = [
migrations.RemoveField(
model_name='theme',
name='import_file',
... | 18.666667 | 50 | 0.60119 | 36 | 336 | 5.472222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133891 | 0.28869 | 336 | 17 | 51 | 19.764706 | 0.690377 | 0.136905 | 0 | 0 | 1 | 0 | 0.170139 | 0.079861 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 1 |
825a85d269f0a3dbe43e72b1a65be479fddbde61 | 2,282 | py | Python | comtypes/test/find_memleak.py | vasily-v-ryabov/comtypes | a8532776f6b3584fa45d31b518f0245109ccba59 | [
"MIT"
] | 212 | 2015-01-13T18:24:17.000Z | 2022-03-28T07:52:48.000Z | comtypes/test/find_memleak.py | vasily-v-ryabov/comtypes | a8532776f6b3584fa45d31b518f0245109ccba59 | [
"MIT"
] | 188 | 2015-01-20T15:38:24.000Z | 2022-03-28T10:21:53.000Z | comtypes/test/find_memleak.py | vasily-v-ryabov/comtypes | a8532776f6b3584fa45d31b518f0245109ccba59 | [
"MIT"
] | 110 | 2015-01-08T17:03:15.000Z | 2022-03-17T23:00:54.000Z | import unittest, gc
from ctypes import *
from ctypes.wintypes import *
################################################################
class PROCESS_MEMORY_COUNTERS(Structure):
_fields_ = [("cb", DWORD),
("PageFaultCount", DWORD),
("PeakWorkingSetSize", c_size_t),
... | 36.806452 | 99 | 0.56135 | 248 | 2,282 | 5.032258 | 0.443548 | 0.032051 | 0.038462 | 0.057692 | 0.144231 | 0.107372 | 0.107372 | 0.107372 | 0.107372 | 0.107372 | 0 | 0.010243 | 0.315513 | 2,282 | 61 | 100 | 37.409836 | 0.788732 | 0.20596 | 0 | 0.186047 | 0 | 0 | 0.100299 | 0.042388 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0.023256 | 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 | 0 | 0 | 1 |
82694f01c2ba742932359b880c42f1f99c770ee0 | 8,246 | py | Python | coiltraine.py | PDillis/coiltraine | a682aa62af5f6ecb95a837d33b70d893d3d261f6 | [
"MIT"
] | 1 | 2021-03-01T19:43:12.000Z | 2021-03-01T19:43:12.000Z | coiltraine.py | PDillis/coiltraine | a682aa62af5f6ecb95a837d33b70d893d3d261f6 | [
"MIT"
] | null | null | null | coiltraine.py | PDillis/coiltraine | a682aa62af5f6ecb95a837d33b70d893d3d261f6 | [
"MIT"
] | null | null | null | import warnings
warnings.filterwarnings("ignore", category=FutureWarning)
warnings.filterwarnings("ignore", category=UserWarning)
import argparse
import sys
import os
import re
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
from coil_core import execute_train, execute_validation, execute_drive, folder_execute
# ... | 62.469697 | 178 | 0.726655 | 1,145 | 8,246 | 5.042795 | 0.221834 | 0.059058 | 0.046069 | 0.041912 | 0.541219 | 0.506235 | 0.468479 | 0.468479 | 0.468479 | 0.468479 | 0 | 0.005512 | 0.142008 | 8,246 | 131 | 179 | 62.946565 | 0.810601 | 0.082949 | 0 | 0 | 0 | 0 | 0.407402 | 0.034625 | 0 | 0 | 0 | 0.015267 | 0.010417 | 1 | 0.041667 | false | 0 | 0.0625 | 0 | 0.15625 | 0.020833 | 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 | 0 | 0 | 0 | 1 |
826dea8e842125e3beacbb925f56fc71b1193e30 | 6,939 | py | Python | src/bg_adv.py | dschrimpsher/mcoc_aw_diversity | 25ca8bf177e3d266b13516957ca497bfa4b7b68b | [
"MIT"
] | null | null | null | src/bg_adv.py | dschrimpsher/mcoc_aw_diversity | 25ca8bf177e3d266b13516957ca497bfa4b7b68b | [
"MIT"
] | null | null | null | src/bg_adv.py | dschrimpsher/mcoc_aw_diversity | 25ca8bf177e3d266b13516957ca497bfa4b7b68b | [
"MIT"
] | null | null | null | import player
import json
class BG(object):
def __init__(self):
self.id = 0
self.players = []
self.chosen = []
def load(self, file):
with open(file) as data_file:
data = json.load(data_file)
self.id = data['id']
for datum in data['players']:... | 43.641509 | 142 | 0.366768 | 572 | 6,939 | 4.424825 | 0.183566 | 0.071118 | 0.060846 | 0.069538 | 0.448439 | 0.403003 | 0.389569 | 0.317661 | 0.317661 | 0.261557 | 0 | 0.010566 | 0.536244 | 6,939 | 158 | 143 | 43.917722 | 0.775948 | 0.031128 | 0 | 0.477612 | 0 | 0 | 0.047364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067164 | false | 0 | 0.014925 | 0 | 0.11194 | 0.037313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
826fc231103bac8cebd5a6b04e0b88d5147230e5 | 2,728 | py | Python | proj06/proj06.py | Carmenuski/savy | 497cab4668901ab4f650b4f1ea0b962987928d6e | [
"MIT"
] | null | null | null | proj06/proj06.py | Carmenuski/savy | 497cab4668901ab4f650b4f1ea0b962987928d6e | [
"MIT"
] | null | null | null | proj06/proj06.py | Carmenuski/savy | 497cab4668901ab4f650b4f1ea0b962987928d6e | [
"MIT"
] | null | null | null | # Name:
# Date:
# proj06: Hangman
# -----------------------------------
# Helper code
# (you don't need to understand this helper code)
import random
import string
WORDLIST_FILENAME = "words.txt"
def load_words():
"""
Returns a list of valid words. Words are strings of lowercase letters.
Depending on the si... | 28.123711 | 111 | 0.583211 | 347 | 2,728 | 4.536023 | 0.348703 | 0.017789 | 0.022872 | 0.013977 | 0.104193 | 0.104193 | 0.03939 | 0.03939 | 0.03939 | 0 | 0 | 0.01735 | 0.302786 | 2,728 | 96 | 112 | 28.416667 | 0.8102 | 0.182918 | 0 | 0.203125 | 0 | 0.015625 | 0.203416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.1875 | 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 | 0 | 0 | 1 |
8271b94c554049a7b3aeed16449957fcc057d230 | 610 | py | Python | tmp.py | tonnkie/USC-Second-hand-Group | c2a261ac9d5d317021168ed5db601540a92d5677 | [
"Apache-2.0"
] | 1 | 2017-10-15T16:39:11.000Z | 2017-10-15T16:39:11.000Z | tmp.py | Tonnkie/USC-Second-hand-Group | c2a261ac9d5d317021168ed5db601540a92d5677 | [
"Apache-2.0"
] | null | null | null | tmp.py | Tonnkie/USC-Second-hand-Group | c2a261ac9d5d317021168ed5db601540a92d5677 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
import re
def emoji_print(rawstring):
flag = True
while flag:
start = rawstring.find('<span')
end = rawstring.find('></span>')
if start < 0 or end < 0:
flag = False
break
emojistr = rawstring[start : end + 8]
try:
emoji... | 23.461538 | 69 | 0.542623 | 70 | 610 | 4.7 | 0.557143 | 0.06079 | 0.103343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026634 | 0.322951 | 610 | 25 | 70 | 24.4 | 0.769976 | 0.019672 | 0 | 0 | 0 | 0 | 0.11973 | 0.038786 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.105263 | 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 | 0 | 0 | 1 |
82767000cc5b5b09499e689cbb4d609bc6d3649d | 13,245 | py | Python | qunetsim/backends/cqc_backend.py | HalcyonicFalconX/QuNetSim | 24239c3881f1d14c6a10e466c2f833b3dc0bd35f | [
"MIT"
] | null | null | null | qunetsim/backends/cqc_backend.py | HalcyonicFalconX/QuNetSim | 24239c3881f1d14c6a10e466c2f833b3dc0bd35f | [
"MIT"
] | null | null | null | qunetsim/backends/cqc_backend.py | HalcyonicFalconX/QuNetSim | 24239c3881f1d14c6a10e466c2f833b3dc0bd35f | [
"MIT"
] | 1 | 2020-09-17T15:43:34.000Z | 2020-09-17T15:43:34.000Z | import cqc.pythonLib as cqc
from simulaqron.settings import simulaqron_settings
from simulaqron.network import Network as SimulaNetwork
from qunetsim.backends.rw_lock import RWLock
from qunetsim.backends.safe_dict import SafeDict
from qunetsim.objects.qubit import Qubit
class CQCBackend(object):
"""
The Simu... | 33.1125 | 82 | 0.594111 | 1,694 | 13,245 | 4.478158 | 0.135183 | 0.075138 | 0.033219 | 0.042578 | 0.55787 | 0.534933 | 0.447535 | 0.363828 | 0.345637 | 0.340364 | 0 | 0.004789 | 0.322159 | 13,245 | 399 | 83 | 33.195489 | 0.840165 | 0.365874 | 0 | 0.30719 | 0 | 0 | 0.044407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.039216 | 0 | 0.366013 | 0.006536 | 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 | 0 | 0 | 0 | 1 |
8278790b2f9c3b4cb0b5fe6172c42770bb0abb80 | 1,969 | py | Python | eyelab/views/ui/ui_proceed_diaolog.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | eyelab/views/ui/ui_proceed_diaolog.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | eyelab/views/ui/ui_proceed_diaolog.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'ui_proceed_diaolog.ui'
##
## Created by: Qt User Interface Compiler version 6.1.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
########... | 37.150943 | 88 | 0.656679 | 176 | 1,969 | 7.329545 | 0.494318 | 0.086822 | 0.037209 | 0.031008 | 0.04186 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008626 | 0.175724 | 1,969 | 52 | 89 | 37.865385 | 0.786198 | 0.138649 | 0 | 0 | 1 | 0 | 0.048058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.2 | 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 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.