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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
efd70db67ac99524851701ab796dad4374ba86f6 | 366 | py | Python | MITx-6.00.1x/pset5/Problem_4_-_Decrypt_a_Story.py | FTiniNadhirah/Coursera-courses-answers | d59311917b740a6ce8b8361e9ac79657b103bb75 | [
"Apache-2.0"
] | 73 | 2020-08-26T03:03:03.000Z | 2022-03-13T17:35:47.000Z | MITx-6.00.1x/pset5/Problem_4_-_Decrypt_a_Story.py | FTiniNadhirah/Coursera-courses-answers | d59311917b740a6ce8b8361e9ac79657b103bb75 | [
"Apache-2.0"
] | null | null | null | MITx-6.00.1x/pset5/Problem_4_-_Decrypt_a_Story.py | FTiniNadhirah/Coursera-courses-answers | d59311917b740a6ce8b8361e9ac79657b103bb75 | [
"Apache-2.0"
] | 44 | 2020-09-19T09:28:14.000Z | 2022-03-29T18:07:19.000Z | def decrypt_story():
"""
Using the methods you created in this problem set,
decrypt the story given by the function getStoryString().
Use the functions getStoryString and loadWords to get the
raw data you need.
returns: string - story in plain text
"""
story = CiphertextMessage(get_story... | 33.272727 | 61 | 0.710383 | 48 | 366 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224044 | 366 | 10 | 62 | 36.6 | 0.901408 | 0.60929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eff4cd55dc1f3464b7ed98d400e1da0ff11ef44e | 230 | py | Python | run_all_tests.py | ricdezen/random-algo-stuff | ef32fc786dca911b0f3f79e787967e462e863fcb | [
"MIT"
] | null | null | null | run_all_tests.py | ricdezen/random-algo-stuff | ef32fc786dca911b0f3f79e787967e462e863fcb | [
"MIT"
] | null | null | null | run_all_tests.py | ricdezen/random-algo-stuff | ef32fc786dca911b0f3f79e787967e462e863fcb | [
"MIT"
] | null | null | null | import os
from setuptools import find_packages
if __name__ == '__main__':
for package in find_packages():
if '.test' in package:
continue
os.system(f'cmd /c "python -m pytest -s {package}/test"')
| 23 | 65 | 0.630435 | 31 | 230 | 4.354839 | 0.709677 | 0.177778 | 0.207407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 230 | 9 | 66 | 25.555556 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.243478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eff8e1e5677707ce1b58b48a66de8aef6a08ddd0 | 415 | py | Python | utils/error_operate.py | game-platform-awaresome/XSdkTools | 2d5454f998014c130a28695dfcd9da155d20c9e9 | [
"MIT"
] | 2 | 2020-09-24T10:47:27.000Z | 2020-09-24T10:49:57.000Z | utils/error_operate.py | game-platform-awaresome/XSdkTools | 2d5454f998014c130a28695dfcd9da155d20c9e9 | [
"MIT"
] | null | null | null | utils/error_operate.py | game-platform-awaresome/XSdkTools | 2d5454f998014c130a28695dfcd9da155d20c9e9 | [
"MIT"
] | 4 | 2019-03-25T04:22:30.000Z | 2021-05-16T12:52:41.000Z | #Embedded file name: D:/AnySDK_Package/Env/debug/../script\error_operate.py
# from taskManagerModule import taskManager
import thread
import threading
import file_operate
# import core
def error(code):
return
# idChannel = int(threading.currentThread().getName())
# taskManager.shareInstance().notify(idChan... | 31.923077 | 77 | 0.737349 | 51 | 415 | 5.921569 | 0.647059 | 0.072848 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.139759 | 415 | 12 | 78 | 34.583333 | 0.829132 | 0.778313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
4bd4de1098e3372b2e3dade869982332d2586632 | 621 | py | Python | planetary_nebula_calculator/radial velocity calculator.py | Woosang-Cho/Planetary_nebula_calculator | 6d36fa56692d8d2551a50ede6dc6e5edc5fb5181 | [
"MIT"
] | null | null | null | planetary_nebula_calculator/radial velocity calculator.py | Woosang-Cho/Planetary_nebula_calculator | 6d36fa56692d8d2551a50ede6dc6e5edc5fb5181 | [
"MIT"
] | null | null | null | planetary_nebula_calculator/radial velocity calculator.py | Woosang-Cho/Planetary_nebula_calculator | 6d36fa56692d8d2551a50ede6dc6e5edc5fb5181 | [
"MIT"
] | null | null | null | '''
21cm 전파를 보내는 행성상성운과 우리 은하 사이 상대적 속도를 계산합니다.
21cm 전파의 lamda_0 는 5006.84 A 이고,관측된 파장 lamda 와 적색편이 z가 주어졌을 때 시선속도 V_r 은 다음과 같이 주어집니다.
V_r = z * c = (lambda_obsereved - lamda_0/lambda_0)*c
'''
from astropy import constants as const
import math
lambda_obsereved = float(input("Enter the obeserved wavelength (lambda_ob... | 27 | 86 | 0.713366 | 112 | 621 | 3.732143 | 0.544643 | 0.215311 | 0.076555 | 0.210526 | 0.196172 | 0.196172 | 0.196172 | 0.196172 | 0 | 0 | 0 | 0.046512 | 0.169082 | 621 | 23 | 87 | 27 | 0.763566 | 0.297907 | 0 | 0 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4bddf7de29eb6d98086c78000859fae24746845a | 332 | py | Python | test/integration/dppl/inference/test_neal_funnel.py | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | 17 | 2020-11-26T00:53:58.000Z | 2021-08-20T18:56:39.000Z | test/integration/dppl/inference/test_neal_funnel.py | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | null | null | null | test/integration/dppl/inference/test_neal_funnel.py | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | 3 | 2020-12-09T20:16:16.000Z | 2021-05-28T04:30:28.000Z |
from .harness import MCMCTest, Config
from pprint import pprint
def test_neal_funnel(config=Config()):
test_neal_funnel = MCMCTest(
name='neal_funnel',
model_file='good/neal_funnel.stan',
config=config
)
return test_neal_funnel.run()
if __name__ == "__main__":
pprint(test_nea... | 20.75 | 43 | 0.689759 | 42 | 332 | 5 | 0.452381 | 0.285714 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207831 | 332 | 15 | 44 | 22.133333 | 0.798479 | 0 | 0 | 0 | 0 | 0 | 0.120846 | 0.063444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4bee09787d35e33ea2079b49244be8471ed4b748 | 907 | py | Python | python/test/test_data_types.py | shuuji3/cylon | b0684d5ab2a1cc4973e736f0fb0390b31de7a786 | [
"Apache-2.0"
] | null | null | null | python/test/test_data_types.py | shuuji3/cylon | b0684d5ab2a1cc4973e736f0fb0390b31de7a786 | [
"Apache-2.0"
] | null | null | null | python/test/test_data_types.py | shuuji3/cylon | b0684d5ab2a1cc4973e736f0fb0390b31de7a786 | [
"Apache-2.0"
] | null | null | null | ##
# 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, software
# distributed under the... | 22.121951 | 74 | 0.734289 | 141 | 907 | 4.659574 | 0.609929 | 0.091324 | 0.039574 | 0.048706 | 0.08828 | 0.08828 | 0 | 0 | 0 | 0 | 0 | 0.014865 | 0.184123 | 907 | 40 | 75 | 22.675 | 0.872973 | 0.670342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4bfc115fe8405b05494989a769dca5a379b0b411 | 1,894 | py | Python | HHBK_2020/D.py | i14kawanaka/AtCoder | 1dd24b42ef672a64c592dc6479a80c4fe8383abc | [
"MIT"
] | null | null | null | HHBK_2020/D.py | i14kawanaka/AtCoder | 1dd24b42ef672a64c592dc6479a80c4fe8383abc | [
"MIT"
] | null | null | null | HHBK_2020/D.py | i14kawanaka/AtCoder | 1dd24b42ef672a64c592dc6479a80c4fe8383abc | [
"MIT"
] | null | null | null | import numpy as np
def big(a, b):
if(a > b):
return a
return b
def small(a, b):
if(a > b):
return b
return a
def bbb(a,b):
if(a>b):
return (a-b+1)**2
return(b-a+1)**2
def sisumi(a,b):
if(a>b):
return (a-b+1)
def abs(a):
if(a>0):
return a
e... | 29.59375 | 248 | 0.506864 | 420 | 1,894 | 2.235714 | 0.095238 | 0.127796 | 0.072417 | 0.102236 | 0.603834 | 0.603834 | 0.569755 | 0.555911 | 0.522897 | 0.445154 | 0 | 0.101258 | 0.160507 | 1,894 | 63 | 249 | 30.063492 | 0.489308 | 0.295671 | 0 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.162791 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4bfce2d839edf4c0dacd9aa258ba3288f2aa17a2 | 548 | py | Python | imageledger/migrations/0011_auto_20161205_1424.py | creativecommons/open-ledger | c2c7fa9d49475481e690738a0d96eec90d1fdd33 | [
"MIT"
] | 46 | 2016-11-01T15:33:08.000Z | 2018-11-01T23:42:37.000Z | imageledger/migrations/0011_auto_20161205_1424.py | cc-archive/open-ledger | c2c7fa9d49475481e690738a0d96eec90d1fdd33 | [
"MIT"
] | 230 | 2016-09-21T15:14:01.000Z | 2019-01-01T00:45:44.000Z | imageledger/migrations/0011_auto_20161205_1424.py | cc-archive/open-ledger | c2c7fa9d49475481e690738a0d96eec90d1fdd33 | [
"MIT"
] | 24 | 2016-10-08T19:48:12.000Z | 2018-08-21T11:36:11.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-05 14:24
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('imageledger', '0010_auto_20161130_1814'),
]
operations = [
migrations.AlterModelOpt... | 22.833333 | 51 | 0.587591 | 52 | 548 | 6 | 0.730769 | 0.173077 | 0.198718 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.277372 | 548 | 23 | 52 | 23.826087 | 0.704545 | 0.124088 | 0 | 0.375 | 1 | 0 | 0.176101 | 0.048218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef1d3fbeb0cfee41b08794d8e5a7ad7661180ee0 | 530 | py | Python | pants_jupyter_plugin/__init__.py | Kludex/pants-jupyter-plugin | 241f97864fd4bc53a93603316bb4625c6c25a401 | [
"Apache-2.0"
] | 7 | 2021-06-28T20:02:00.000Z | 2022-02-19T15:37:10.000Z | pants_jupyter_plugin/__init__.py | Kludex/pants-jupyter-plugin | 241f97864fd4bc53a93603316bb4625c6c25a401 | [
"Apache-2.0"
] | 23 | 2021-03-03T03:06:11.000Z | 2022-02-18T17:28:40.000Z | pants_jupyter_plugin/__init__.py | Kludex/pants-jupyter-plugin | 241f97864fd4bc53a93603316bb4625c6c25a401 | [
"Apache-2.0"
] | 4 | 2021-03-03T02:30:58.000Z | 2022-02-02T22:59:52.000Z | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
"""Jupyter support for Pants projects and PEX files.""" # N.B.: Flit uses this as our distribution description.
__version__ = "0.0.4" # N.B.: Flit uses this as our distribution version.... | 35.333333 | 112 | 0.781132 | 67 | 530 | 6.044776 | 0.656716 | 0.009877 | 0.02963 | 0.049383 | 0.153086 | 0.153086 | 0.153086 | 0.153086 | 0 | 0 | 0 | 0.019694 | 0.137736 | 530 | 14 | 113 | 37.857143 | 0.866521 | 0.530189 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 2 |
ef227e2706ac990ac03558617c6b1b3064fad4ca | 178 | py | Python | platzi/Conversor.py | diegosish/Introduction-Python | b40dde602c0b5ca4ec4f6b13303ad6d3831fab73 | [
"MIT"
] | null | null | null | platzi/Conversor.py | diegosish/Introduction-Python | b40dde602c0b5ca4ec4f6b13303ad6d3831fab73 | [
"MIT"
] | null | null | null | platzi/Conversor.py | diegosish/Introduction-Python | b40dde602c0b5ca4ec4f6b13303ad6d3831fab73 | [
"MIT"
] | null | null | null | Pesos = input("¿Cuántos Pesos Colombianos tiene?: ")
Pesos = float(Pesos)
v_Dolar = 4033
Dolares = Pesos / v_Dolar
Dolares = str(Dolares)
print("Tienes $" + Dolares + " Dolares") | 29.666667 | 52 | 0.702247 | 24 | 178 | 5.166667 | 0.583333 | 0.096774 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0.151685 | 178 | 6 | 53 | 29.666667 | 0.788079 | 0 | 0 | 0 | 0 | 0 | 0.284916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef247214cdb1da6ba70744376b02400d74011228 | 91 | py | Python | test_data/parse/unexpected/property_definitions/without_type_annotation/meta_model.py | gillistephan/aas-core-codegen | 5b89ea2ee35aecaca9a1bed7ac81d420cc560f29 | [
"MIT"
] | 5 | 2021-12-29T12:55:34.000Z | 2022-03-01T17:57:21.000Z | test_data/parse/unexpected/property_definitions/without_type_annotation/meta_model.py | gillistephan/aas-core-codegen | 5b89ea2ee35aecaca9a1bed7ac81d420cc560f29 | [
"MIT"
] | 10 | 2021-12-29T02:15:55.000Z | 2022-03-09T11:04:22.000Z | test_data/parse/unexpected/property_definitions/without_type_annotation/meta_model.py | gillistephan/aas-core-codegen | 5b89ea2ee35aecaca9a1bed7ac81d420cc560f29 | [
"MIT"
] | 2 | 2021-12-29T01:42:12.000Z | 2022-02-15T13:46:33.000Z | class Something:
some_property = 3
__book_url__ = "dummy"
__book_version__ = "dummy"
| 13 | 26 | 0.725275 | 11 | 91 | 5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.186813 | 91 | 6 | 27 | 15.166667 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef2a2060f822eaca05a20d891cdb73ea2a6846dd | 2,654 | py | Python | polls/models.py | gurupratap-matharu/polls | 5484a1f639b2ccd5e0a676f24cf0e23b6b2d0639 | [
"MIT"
] | null | null | null | polls/models.py | gurupratap-matharu/polls | 5484a1f639b2ccd5e0a676f24cf0e23b6b2d0639 | [
"MIT"
] | 66 | 2020-08-25T02:03:25.000Z | 2021-09-22T19:33:34.000Z | polls/models.py | gurupratap-matharu/polls | 5484a1f639b2ccd5e0a676f24cf0e23b6b2d0639 | [
"MIT"
] | null | null | null | import datetime
import uuid
from django.contrib.auth import get_user_model
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from taggit.managers import TaggableManager
from taggit.models import GenericUUIDTaggedItemBa... | 32.365854 | 92 | 0.726074 | 330 | 2,654 | 5.624242 | 0.315152 | 0.043103 | 0.028017 | 0.043103 | 0.315194 | 0.278556 | 0.202586 | 0.202586 | 0.116379 | 0.116379 | 0 | 0.006797 | 0.168425 | 2,654 | 81 | 93 | 32.765432 | 0.834164 | 0 | 0 | 0.206897 | 0 | 0 | 0.061417 | 0.023738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.155172 | 0.172414 | 0.896552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
ef5222866736e9364bed9f77db0f1d8d30aba766 | 3,999 | py | Python | accumulators/decorator.py | icecrime/Accumulators | f390fe5b23d2ea8efadfa433dc07769020819d24 | [
"Apache-2.0"
] | 1 | 2018-02-12T09:51:00.000Z | 2018-02-12T09:51:00.000Z | accumulators/decorator.py | icecrime/Accumulators | f390fe5b23d2ea8efadfa433dc07769020819d24 | [
"Apache-2.0"
] | null | null | null | accumulators/decorator.py | icecrime/Accumulators | f390fe5b23d2ea8efadfa433dc07769020819d24 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Arnaud Porterie
#
# 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... | 35.705357 | 84 | 0.693423 | 466 | 3,999 | 5.787554 | 0.349785 | 0.053022 | 0.035595 | 0.050056 | 0.343715 | 0.298109 | 0.262514 | 0.228402 | 0.228402 | 0.228402 | 0 | 0.003621 | 0.24031 | 3,999 | 111 | 85 | 36.027027 | 0.884134 | 0.52088 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.027778 | 0.055556 | 0.055556 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ef53cbf704e0cc9342f317fdb9a13c26abe67c80 | 798 | py | Python | {{cookiecutter.project_slug}}/src/tests/core/test_core_exceptions.py | abogoyavlensky/cookiecutter-django-api | 9b1516e80d22a0d50b524e5ce8ce975a50bf59f1 | [
"MIT"
] | 7 | 2018-06-17T19:14:07.000Z | 2019-09-02T07:21:53.000Z | {{cookiecutter.project_slug}}/src/tests/core/test_core_exceptions.py | abogoyavlensky/cookiecutter-django-api | 9b1516e80d22a0d50b524e5ce8ce975a50bf59f1 | [
"MIT"
] | 2 | 2018-04-07T08:26:25.000Z | 2018-04-12T19:17:09.000Z | {{cookiecutter.project_slug}}/src/tests/core/test_core_exceptions.py | abogoyavlensky/cookiecutter-django-api | 9b1516e80d22a0d50b524e5ce8ce975a50bf59f1 | [
"MIT"
] | null | null | null | from rest_framework.exceptions import APIException
from core.exceptions import common_exception_handler
def test_common_exception_handler_if_error_without_detail(mocker):
exp = APIException({'data': 'test'})
response = common_exception_handler(exp, mocker.Mock())
assert response.data['service_name'] == '... | 39.9 | 66 | 0.743108 | 95 | 798 | 5.978947 | 0.294737 | 0.147887 | 0.190141 | 0.15493 | 0.658451 | 0.658451 | 0.658451 | 0.53169 | 0.53169 | 0.53169 | 0 | 0 | 0.12406 | 798 | 19 | 67 | 42 | 0.812589 | 0 | 0 | 0.428571 | 0 | 0 | 0.200501 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef557fe90419f147359a23f9961e003da81ca564 | 154 | py | Python | ENTRY_MODULE/FirstStepsInCoding/LAB/09_Yard_Greening.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | ENTRY_MODULE/FirstStepsInCoding/LAB/09_Yard_Greening.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | 1 | 2022-01-15T10:33:56.000Z | 2022-01-15T10:33:56.000Z | ENTRY_MODULE/FirstStepsInCoding/LAB/09_Yard_Greening.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | price = float(input()) * 7.61
discount = price * 0.18
final = price - discount
print(f'The final price is: {final} lv.\nThe discount is: {discount} lv.')
| 30.8 | 74 | 0.675325 | 25 | 154 | 4.16 | 0.6 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.162338 | 154 | 4 | 75 | 38.5 | 0.75969 | 0 | 0 | 0 | 0 | 0 | 0.415584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef5a6deef918a98c050209374bd0a9bacb5c8955 | 476 | py | Python | tests/test_app.py | Olive-Wangui/Pitchy | 888a56074090599d8d171008f92677b31e5c832d | [
"MIT"
] | null | null | null | tests/test_app.py | Olive-Wangui/Pitchy | 888a56074090599d8d171008f92677b31e5c832d | [
"MIT"
] | null | null | null | tests/test_app.py | Olive-Wangui/Pitchy | 888a56074090599d8d171008f92677b31e5c832d | [
"MIT"
] | null | null | null | import unittest
from app.models import User, Post, Comment
class PitchTest(unittest.TestCase):
def setUp(self):
self.new_user = User(username='Olly', email='owanguioly4@gmail.com', password='ciara')
self.new_post = Post()
self.new_comment = Comment()
def test_user_instance(self):
... | 21.636364 | 94 | 0.657563 | 59 | 476 | 5.016949 | 0.491525 | 0.070946 | 0.162162 | 0.128378 | 0.155405 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00274 | 0.233193 | 476 | 22 | 95 | 21.636364 | 0.808219 | 0 | 0 | 0.2 | 0 | 0 | 0.079665 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.266667 | 0.133333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ef69b5cc63952a009c0430c1cec2a19375aed516 | 1,821 | py | Python | alexa-british-problems.py | Sorsby/alexa-british-problems | b6017266a35b09de9fb741fd0fb2ced7b0cd34da | [
"MIT"
] | null | null | null | alexa-british-problems.py | Sorsby/alexa-british-problems | b6017266a35b09de9fb741fd0fb2ced7b0cd34da | [
"MIT"
] | null | null | null | alexa-british-problems.py | Sorsby/alexa-british-problems | b6017266a35b09de9fb741fd0fb2ced7b0cd34da | [
"MIT"
] | null | null | null | import json
import time
import requests
import unidecode
from flask import Flask
from flask_ask import Ask, question, session, statement
APP = Flask(__name__)
ASK = Ask(APP, "/british_problems")
def get_british_problems():
"""Get the titles of the /r/britishproblems posts"""
user_pass_dict = {... | 27.590909 | 90 | 0.65129 | 221 | 1,821 | 5.19457 | 0.502262 | 0.065331 | 0.047038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009168 | 0.221307 | 1,821 | 65 | 91 | 28.015385 | 0.800423 | 0 | 0 | 0 | 0 | 0 | 0.250986 | 0.032852 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.069767 | 0.139535 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
324ecef3a2d53cf11121f34730f847205d87b32b | 150 | py | Python | tests/scripts/unicode💩.py | benfred/py-spy | e1b117ad52117ed54909ea36f555af050c1cda60 | [
"MIT"
] | 8,112 | 2018-08-09T13:35:54.000Z | 2022-03-31T23:23:52.000Z | tests/scripts/unicode💩.py | benfred/py-spy | e1b117ad52117ed54909ea36f555af050c1cda60 | [
"MIT"
] | 327 | 2018-08-21T10:39:06.000Z | 2022-03-29T08:58:22.000Z | tests/scripts/unicode💩.py | benfred/py-spy | e1b117ad52117ed54909ea36f555af050c1cda60 | [
"MIT"
] | 328 | 2018-08-21T09:36:49.000Z | 2022-03-30T10:15:18.000Z | #!/env/bin/python
# -*- coding: utf-8 -*-
import time
def function1(seconds):
time.sleep(seconds)
if __name__ == "__main__":
function1(100)
| 15 | 26 | 0.646667 | 19 | 150 | 4.684211 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.173333 | 150 | 9 | 27 | 16.666667 | 0.669355 | 0.253333 | 0 | 0 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
32562bd053556cb161aaa73de5cd1083c7116c63 | 1,177 | py | Python | weboauth2/apps/oauth2/views/app.py | askar-alty/oauth2 | 371f376bf002241623c1418427ac4d9c97a9c48b | [
"MIT"
] | 1 | 2019-03-19T14:38:36.000Z | 2019-03-19T14:38:36.000Z | weboauth2/apps/oauth2/views/app.py | askar-alty/oauth2 | 371f376bf002241623c1418427ac4d9c97a9c48b | [
"MIT"
] | null | null | null | weboauth2/apps/oauth2/views/app.py | askar-alty/oauth2 | 371f376bf002241623c1418427ac4d9c97a9c48b | [
"MIT"
] | null | null | null | from django.urls import reverse_lazy
from oauth2_provider import views
from .. import mixins
class ApplicationList(mixins.TwoFactorMixin, mixins.ApplicationViewMixin, views.ApplicationList):
template_name = 'oauth2/applications/list.html'
class ApplicationRegistration(mixins.ApplicationCreationMixin, mixins.Tw... | 36.78125 | 117 | 0.802039 | 120 | 1,177 | 7.716667 | 0.333333 | 0.107991 | 0.097192 | 0.161987 | 0.168467 | 0.168467 | 0.168467 | 0.168467 | 0.168467 | 0.168467 | 0 | 0.005693 | 0.104503 | 1,177 | 31 | 118 | 37.967742 | 0.872865 | 0 | 0 | 0.222222 | 0 | 0 | 0.179269 | 0.131691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
3258b0c47bdb506f5ad3be06eb83d4107b08008a | 186 | py | Python | demo/doctype/task.py | Nikhil9168/demo | 4c903ff86620c4b623d766d30eba962a99b6d97a | [
"MIT"
] | null | null | null | demo/doctype/task.py | Nikhil9168/demo | 4c903ff86620c4b623d766d30eba962a99b6d97a | [
"MIT"
] | null | null | null | demo/doctype/task.py | Nikhil9168/demo | 4c903ff86620c4b623d766d30eba962a99b6d97a | [
"MIT"
] | null | null | null | import frappe
def execute():
a=frappe.new_doc("Task")
a.subject='axy'
a.save()
print(a.name)
# #bench execute demo.doctype.task.execute
# print('***************') | 23.25 | 46 | 0.564516 | 24 | 186 | 4.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198925 | 186 | 8 | 47 | 23.25 | 0.697987 | 0.344086 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3262c629c9db9996ec60c94816cfd5f054067129 | 327 | py | Python | Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/05_formatierte_ausgabe.py | Apop85/Scripts | e71e1c18539e67543e3509c424c7f2d6528da654 | [
"MIT"
] | null | null | null | Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/05_formatierte_ausgabe.py | Apop85/Scripts | e71e1c18539e67543e3509c424c7f2d6528da654 | [
"MIT"
] | 6 | 2020-12-24T15:15:09.000Z | 2022-01-13T01:58:35.000Z | Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/05_formatierte_ausgabe.py | Apop85/Scripts | 1d8dad316c55e1f1343526eac9e4b3d0909e4873 | [
"MIT"
] | null | null | null | # Formatierte Stringausgabe
dic={'Käse' : 5, 'Brot' : 3, 'Wein' : 2,
'Eier' : 6, 'Nuss' : 12, 'Tee' : 14,
'Müsli' : 1}
print(('Inventar'.center(16, '#')).center(60))
for namen, anzahl in dic.items():
print((namen.ljust(13, '.') + str(anzahl).rjust(3, '.')).center(60))
print(('#'.center(16, '#')).cente... | 25.153846 | 72 | 0.544343 | 44 | 327 | 4.045455 | 0.704545 | 0.134831 | 0.157303 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081181 | 0.171254 | 327 | 12 | 73 | 27.25 | 0.575646 | 0.076453 | 0 | 0 | 0 | 0 | 0.136667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
326ad7884518e58259ac572a81ad887d7390e95f | 5,781 | py | Python | tests/test_node_expand.py | spyysalo/wikitextprocessor | ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f | [
"MIT"
] | 38 | 2020-11-21T11:11:46.000Z | 2022-03-20T14:06:41.000Z | tests/test_node_expand.py | spyysalo/wikitextprocessor | ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f | [
"MIT"
] | 5 | 2021-04-07T21:48:38.000Z | 2022-03-09T17:11:21.000Z | tests/test_node_expand.py | spyysalo/wikitextprocessor | ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f | [
"MIT"
] | 10 | 2020-10-30T12:58:33.000Z | 2022-03-16T15:01:34.000Z | # Tests for WikiText parsing
#
# Copyright (c) 2020-2021 Tatu Ylonen. See file LICENSE and https://ylonen.org
import unittest
from wikitextprocessor import Wtp
from wikitextprocessor.parser import (print_tree, NodeKind, WikiNode)
def parse_with_ctx(title, text, **kwargs):
assert isinstance(title, str)
asser... | 29.345178 | 79 | 0.540045 | 812 | 5,781 | 3.751232 | 0.17734 | 0.108011 | 0.206829 | 0.047275 | 0.531517 | 0.456993 | 0.375575 | 0.325673 | 0.262968 | 0.240643 | 0 | 0.02027 | 0.231967 | 5,781 | 196 | 80 | 29.494898 | 0.665766 | 0.01799 | 0 | 0.116788 | 0 | 0.014599 | 0.257536 | 0.0208 | 0 | 0 | 0 | 0 | 0.094891 | 1 | 0.379562 | false | 0 | 0.021898 | 0 | 0.423358 | 0.014599 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3272a4ca77c9d3be1130be40c480ff86999a76c5 | 17,584 | py | Python | pysnmp/BIANCA-BRICK-X25STAT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/BIANCA-BRICK-X25STAT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/BIANCA-BRICK-X25STAT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BIANCA-BRICK-X25STAT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-X25STAT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:21:52 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | 113.445161 | 3,221 | 0.771667 | 1,924 | 17,584 | 7.052495 | 0.102911 | 0.010907 | 0.01614 | 0.02152 | 0.41101 | 0.396418 | 0.341145 | 0.151227 | 0.149606 | 0.147911 | 0 | 0.124666 | 0.083542 | 17,584 | 154 | 3,222 | 114.181818 | 0.717344 | 0.01945 | 0 | 0 | 0 | 0 | 0.094528 | 0.003946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
329012571dc000a001ae479daea8b53b216398fd | 181 | py | Python | setup.py | AZdet/causal-infogan | 146b647863a27542ad4a1a01ddb033cdcab9843d | [
"MIT"
] | null | null | null | setup.py | AZdet/causal-infogan | 146b647863a27542ad4a1a01ddb033cdcab9843d | [
"MIT"
] | null | null | null | setup.py | AZdet/causal-infogan | 146b647863a27542ad4a1a01ddb033cdcab9843d | [
"MIT"
] | 1 | 2020-02-15T19:17:24.000Z | 2020-02-15T19:17:24.000Z | from setuptools import setup
import numpy
setup(
name='CIGAN',
version='0.2dev',
packages=['vpa'],
license='MIT License',
include_dirs=[numpy.get_include(),],
) | 18.1 | 40 | 0.651934 | 22 | 181 | 5.272727 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.187845 | 181 | 10 | 41 | 18.1 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.137363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
32b85ff348fb824c5c45f298bab07753c8ab4ba7 | 343 | py | Python | pinot/data/tests/test_temporal.py | choderalab/pinot | 413a349ab42912d8a668a645effde8e70ba608a6 | [
"MIT"
] | 13 | 2020-03-23T21:53:06.000Z | 2021-09-28T19:29:35.000Z | pinot/data/tests/test_temporal.py | choderalab/pinot | 413a349ab42912d8a668a645effde8e70ba608a6 | [
"MIT"
] | 89 | 2020-03-27T21:18:55.000Z | 2021-04-02T19:36:50.000Z | pinot/data/tests/test_temporal.py | choderalab/pinot | 413a349ab42912d8a668a645effde8e70ba608a6 | [
"MIT"
] | 2 | 2020-04-25T03:23:40.000Z | 2021-02-19T18:35:27.000Z | import pytest
def test_import():
""" """
import pinot.data.datasets
@pytest.fixture
def moonshot():
""" """
import pinot
ds = pinot.data.moonshot_with_date
return ds
def test_moonshot(moonshot):
"""
Parameters
----------
moonshot :
Returns
-------
"... | 11.064516 | 38 | 0.533528 | 32 | 343 | 5.59375 | 0.5 | 0.078212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309038 | 343 | 30 | 39 | 11.433333 | 0.755274 | 0.157434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.4 | 0 | 0.8 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
32c0f78e559a83939393fe4eac28f5538d208e69 | 1,729 | py | Python | Section 1/Section1/Video4_collections_1_tuples.py | PacktPublishing/-Python-By-Example | 8f543afa07e190676d80bbb24bb2f5a1db44788d | [
"MIT"
] | 8 | 2018-06-08T05:34:35.000Z | 2021-10-01T22:06:06.000Z | Section 1/Section1/Video4_collections_1_tuples.py | PacktPublishing/-Python-By-Example | 8f543afa07e190676d80bbb24bb2f5a1db44788d | [
"MIT"
] | null | null | null | Section 1/Section1/Video4_collections_1_tuples.py | PacktPublishing/-Python-By-Example | 8f543afa07e190676d80bbb24bb2f5a1db44788d | [
"MIT"
] | 6 | 2018-06-27T03:39:42.000Z | 2021-10-02T16:54:09.000Z | '''
Created on Mar 31, 2018
@author: Burkhard A. Meier
'''
# ------------ Tuples ------------
number_tuple = (1, 2, 3, 4) # tuples use parentheses for creation
letter_tuple = ('a', 'b', 'c', 'd')
mixed_tuple = (1, 'a', 2, 'b', [88, 99]) # can mix different types
print(number... | 36.020833 | 108 | 0.57085 | 223 | 1,729 | 4.309417 | 0.439462 | 0.217482 | 0.083247 | 0.114464 | 0.173777 | 0.135276 | 0.081165 | 0.081165 | 0 | 0 | 0 | 0.023911 | 0.32273 | 1,729 | 47 | 109 | 36.787234 | 0.796755 | 0.41122 | 0 | 0.4 | 0 | 0 | 0.046278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.52 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
0864139e67deee6d4c7b415cabbf8e2a580b0494 | 6,238 | py | Python | chapter_3/redirection-options.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_3/redirection-options.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_3/redirection-options.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | "Other Redirection Options: os.popen and subprocess Revisited"
'''
the built-in os.popen function and its subprocess.Popen relative,
which provide a way to redirect another command’s streams from
within a Python program. these tools can be used to run a shell
command line.
Other Redirection Options: os.popen and su... | 40.506494 | 99 | 0.684675 | 977 | 6,238 | 4.373593 | 0.262027 | 0.021297 | 0.020594 | 0.0337 | 0.276855 | 0.231219 | 0.208519 | 0.194009 | 0.162415 | 0.144161 | 0 | 0.007967 | 0.215293 | 6,238 | 153 | 100 | 40.771242 | 0.864556 | 0.009618 | 0 | 0 | 0 | 0 | 0.843023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
086d4d739f17d75db6c8c481f8c5cbf6e185f880 | 339 | py | Python | vespene/migrations/0009_remove_workerpool_sudo_password.py | vespene-io/vespene | c0fbb217dfc5155bf974ab9e06fd43e539da63e0 | [
"Apache-2.0"
] | 680 | 2018-10-29T12:12:10.000Z | 2019-04-27T09:52:58.000Z | vespene/migrations/0009_remove_workerpool_sudo_password.py | mpdehaan/vespene | e0883b22bd33581323e5f768fd2791624ecfa1f9 | [
"Apache-2.0"
] | 110 | 2018-10-29T12:33:34.000Z | 2019-02-14T02:31:43.000Z | vespene/migrations/0009_remove_workerpool_sudo_password.py | vespene-io/_old_vespene | c0fbb217dfc5155bf974ab9e06fd43e539da63e0 | [
"Apache-2.0"
] | 92 | 2018-10-29T12:21:12.000Z | 2019-06-08T11:08:08.000Z | # Generated by Django 2.1.2 on 2018-12-16 13:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vespene', '0008_auto_20181106_2233'),
]
operations = [
migrations.RemoveField(
model_name='workerpool',
name='sudo_password'... | 18.833333 | 47 | 0.60472 | 36 | 339 | 5.555556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128099 | 0.286136 | 339 | 17 | 48 | 19.941176 | 0.698347 | 0.132743 | 0 | 0 | 1 | 0 | 0.181507 | 0.078767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
087e8a8fe823bdd33631737930bbc02ad6821199 | 179 | py | Python | doc/autosar4_api/examples/create_composition_component.py | SHolzmann/autosar | 26a7725ef71f63323ba5daa8d8bd841449da1da4 | [
"MIT"
] | 199 | 2016-07-27T17:14:43.000Z | 2022-03-30T12:28:02.000Z | doc/autosar4_api/examples/create_composition_component.py | SHolzmann/autosar | 26a7725ef71f63323ba5daa8d8bd841449da1da4 | [
"MIT"
] | 50 | 2017-10-10T08:19:21.000Z | 2022-03-27T18:43:29.000Z | doc/autosar4_api/examples/create_composition_component.py | SHolzmann/autosar | 26a7725ef71f63323ba5daa8d8bd841449da1da4 | [
"MIT"
] | 125 | 2016-07-27T17:16:08.000Z | 2022-03-30T17:03:28.000Z | import autosar
ws = autosar.workspace("4.2.2")
components = ws.createPackage("ComponentTypes")
swc = components.createCompositionComponent("MyComposition")
print(swc.name)
| 25.571429 | 61 | 0.765363 | 19 | 179 | 7.210526 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.106145 | 179 | 6 | 62 | 29.833333 | 0.8375 | 0 | 0 | 0 | 0 | 0 | 0.184971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
08abd70be306d46c1e85aaf77f756a424ff1a7b7 | 3,670 | py | Python | parabox/behaviour/movable/movable.py | DenisMinich/parabox | f190001b04fe06c3cab85330d3fb6edb1f55e9ca | [
"MIT"
] | null | null | null | parabox/behaviour/movable/movable.py | DenisMinich/parabox | f190001b04fe06c3cab85330d3fb6edb1f55e9ca | [
"MIT"
] | null | null | null | parabox/behaviour/movable/movable.py | DenisMinich/parabox | f190001b04fe06c3cab85330d3fb6edb1f55e9ca | [
"MIT"
] | null | null | null | from kivy.properties import (
NumericProperty, ReferenceListProperty, BooleanProperty)
from kivy.vector import Vector
from parabox.base_object import BaseObject
class Movable(BaseObject):
"""Mixins for movable classes"""
velocity_x = NumericProperty(0)
velocity_y = NumericProperty(0)
velocity = R... | 30.330579 | 75 | 0.615259 | 452 | 3,670 | 4.738938 | 0.15708 | 0.084034 | 0.045752 | 0.058824 | 0.296919 | 0.223623 | 0.070962 | 0.042017 | 0.042017 | 0.042017 | 0 | 0.004908 | 0.278202 | 3,670 | 120 | 76 | 30.583333 | 0.8037 | 0.153134 | 0 | 0.108108 | 0 | 0 | 0.038566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.054054 | 0.040541 | 0 | 0.364865 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
08ad2f5ea152dfcb02570685200afc8979611f16 | 312 | py | Python | app/core/settings.py | oxfn/owtest | f4eeae225ef67684d96edd5708c44a0fd639d037 | [
"Unlicense"
] | null | null | null | app/core/settings.py | oxfn/owtest | f4eeae225ef67684d96edd5708c44a0fd639d037 | [
"Unlicense"
] | null | null | null | app/core/settings.py | oxfn/owtest | f4eeae225ef67684d96edd5708c44a0fd639d037 | [
"Unlicense"
] | null | null | null | from functools import lru_cache
from pydantic import BaseSettings
class Settings(BaseSettings):
"""Settings model."""
secret_key: str = ""
mongo_url: str = ""
testing: bool = False
@lru_cache(typed=False)
def get_settings() -> Settings:
"""Initialize settings."""
return Settings()
| 17.333333 | 33 | 0.676282 | 35 | 312 | 5.885714 | 0.657143 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201923 | 312 | 17 | 34 | 18.352941 | 0.827309 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
08c4c880cd0113f7b24c3b0d1353c74114554755 | 2,856 | py | Python | wav2vec/project/data_processor/dataset.py | rocabrera/audio-learning | 9c99effb44c05cb33a7fdc8dbce18955fa95f84e | [
"MIT"
] | null | null | null | wav2vec/project/data_processor/dataset.py | rocabrera/audio-learning | 9c99effb44c05cb33a7fdc8dbce18955fa95f84e | [
"MIT"
] | null | null | null | wav2vec/project/data_processor/dataset.py | rocabrera/audio-learning | 9c99effb44c05cb33a7fdc8dbce18955fa95f84e | [
"MIT"
] | null | null | null | import re
import os
import json
import pandas as pd
from glob import glob
from abc import ABC, abstractmethod
class DataBase(ABC):
@abstractmethod
def make_tidy(self):
pass
@abstractmethod
def parse_data(self) -> pd.DataFrame:
pass
class MLS(DataBase):
ext = ".f... | 32.827586 | 112 | 0.593838 | 379 | 2,856 | 4.184697 | 0.218997 | 0.045397 | 0.065574 | 0.064313 | 0.435057 | 0.400378 | 0.300126 | 0.300126 | 0.300126 | 0.300126 | 0 | 0.001443 | 0.272059 | 2,856 | 87 | 113 | 32.827586 | 0.761424 | 0 | 0 | 0.333333 | 0 | 0 | 0.075254 | 0.0084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.1 | 0.016667 | 0.516667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
08c60ca3859ccfc415b5d738d93922a981aa39f7 | 1,318 | py | Python | OOP_formy/src/pages/radio_button_page.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | OOP_formy/src/pages/radio_button_page.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | OOP_formy/src/pages/radio_button_page.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | """
Radio button page
clicking them in different order
"""
from pages.base_page import BasePage
import time
from selenium.webdriver.common.by import By
class RadioButtonPage(BasePage):
RADIO_BTN_1 = (By.ID, 'radio-button-1')
RADIO_BTN_2 = (By.XPATH, '/html/body/div/div[2]/input')
RADIO_BTN_3 = (By.XPATH,... | 27.458333 | 59 | 0.640364 | 209 | 1,318 | 3.746411 | 0.181818 | 0.122605 | 0.16092 | 0.241379 | 0.719029 | 0.685824 | 0.632184 | 0.632184 | 0.632184 | 0.463602 | 0 | 0.041543 | 0.232929 | 1,318 | 47 | 60 | 28.042553 | 0.732938 | 0.037936 | 0 | 0.705882 | 0 | 0 | 0.053968 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.088235 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
08c9bcba81a8a8eafe5a0942df588eb0d61fd89f | 1,098 | py | Python | pypy/jit/codegen/detect_cpu.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/jit/codegen/detect_cpu.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | null | null | null | pypy/jit/codegen/detect_cpu.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | """
Processor auto-detection
"""
import sys, os
class ProcessorAutodetectError(Exception):
pass
def autodetect():
mach = None
try:
import platform
mach = platform.machine()
except ImportError:
pass
if not mach:
platform = sys.platform.lower()
if platform.st... | 28.894737 | 77 | 0.526412 | 112 | 1,098 | 5.151786 | 0.598214 | 0.041594 | 0.031196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079832 | 0.349727 | 1,098 | 37 | 78 | 29.675676 | 0.728291 | 0.106557 | 0 | 0.2 | 0 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.066667 | 0.1 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
08d8f8abf468d502a33afc20f48a8cac2a681b67 | 2,488 | py | Python | feedparser/datetimes/greek.py | verhovsky/feedparser | cbe18d0abdd95699e3375aab9da5837f1cd86626 | [
"BSD-2-Clause"
] | null | null | null | feedparser/datetimes/greek.py | verhovsky/feedparser | cbe18d0abdd95699e3375aab9da5837f1cd86626 | [
"BSD-2-Clause"
] | null | null | null | feedparser/datetimes/greek.py | verhovsky/feedparser | cbe18d0abdd95699e3375aab9da5837f1cd86626 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import re
from .rfc822 import _parse_date_rfc822
# Unicode strings for Greek date strings
_greek_months = \
{ \
'\u0399\u03b1\u03bd': 'Jan', # c9e1ed in iso-8859-7
'\u03a6\u03b5\u03b2': 'Feb', # d6e5e2 in iso-8859-7
'\u039c\u03ac\u03ce':... | 43.649123 | 103 | 0.582797 | 374 | 2,488 | 3.794118 | 0.342246 | 0.091614 | 0.164905 | 0.183228 | 0.306554 | 0.190275 | 0.035236 | 0 | 0 | 0 | 0 | 0.222165 | 0.213023 | 2,488 | 56 | 104 | 44.428571 | 0.502554 | 0.258842 | 0 | 0.041667 | 0 | 0.041667 | 0.416115 | 0.084989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
08ecf0638ba92929e48d4293ba947bb1ab738424 | 2,361 | py | Python | ohsomeTools/OhsomeToolsPlugin.py | GIScience/ohsome-qgis-plugin | acd4811e9e36ed35e3fe62c063b5c990a8b795f9 | [
"MIT"
] | 3 | 2021-06-28T09:45:58.000Z | 2021-09-13T02:16:50.000Z | ohsomeTools/OhsomeToolsPlugin.py | GIScience/ohsome-qgis-plugin | acd4811e9e36ed35e3fe62c063b5c990a8b795f9 | [
"MIT"
] | 29 | 2021-06-22T08:58:37.000Z | 2022-02-13T21:35:02.000Z | ohsomeTools/OhsomeToolsPlugin.py | GIScience/ohsome-qgis-plugin | acd4811e9e36ed35e3fe62c063b5c990a8b795f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/***************************************************************************
ohsomeTools
A QGIS plugin
QGIS client to query the ohsome API
-------------------
begin : 2021-05-01
git sha ... | 40.016949 | 77 | 0.5036 | 206 | 2,361 | 5.752427 | 0.592233 | 0.025316 | 0.020253 | 0.037131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008464 | 0.299449 | 2,361 | 58 | 78 | 40.706897 | 0.707981 | 0.728928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3e9eeba5431dbdb72765dc6e26682d103107b299 | 261 | py | Python | import/a.py | abos5/pythontutor | eba451700def8bd98d74668d1b6cc08c0ccc0d3c | [
"MIT"
] | null | null | null | import/a.py | abos5/pythontutor | eba451700def8bd98d74668d1b6cc08c0ccc0d3c | [
"MIT"
] | null | null | null | import/a.py | abos5/pythontutor | eba451700def8bd98d74668d1b6cc08c0ccc0d3c | [
"MIT"
] | null | null | null | print "a before b"
import b
print "a after import b"
_once = 0
def dofoo():
global _once;
_once += 1
if _once > 1:
print "what the hell are u thinking?"
print "a very important function that can only exec once"
dofoo()
print "complete a"
| 13.736842 | 61 | 0.651341 | 43 | 261 | 3.860465 | 0.627907 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.264368 | 261 | 18 | 62 | 14.5 | 0.848958 | 0 | 0 | 0 | 0 | 0 | 0.436782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
3e9f7907a3b215cbb248d969cfc363d1dae946dc | 2,231 | py | Python | src/telliot_core/queries/query.py | tellor-io/pytelliot | c5da9168f8dcf8ac5728c208f169b6f7ddba85d7 | [
"MIT"
] | 2 | 2021-09-01T14:19:26.000Z | 2021-09-07T15:17:14.000Z | src/telliot_core/queries/query.py | tellor-io/pytelliot | c5da9168f8dcf8ac5728c208f169b6f7ddba85d7 | [
"MIT"
] | 77 | 2021-09-03T04:01:20.000Z | 2021-11-09T14:45:52.000Z | src/telliot_core/queries/query.py | tellor-io/pytelliot | c5da9168f8dcf8ac5728c208f169b6f7ddba85d7 | [
"MIT"
] | 3 | 2021-09-02T10:51:15.000Z | 2021-09-07T15:16:59.000Z | """ Oracle Query Module
"""
import json
from clamfig import Serializable
from web3 import Web3
from telliot_core.dtypes.value_type import ValueType
class OracleQuery(Serializable):
"""Oracle Query
An OracleQuery specifies how to pose a question to the
Tellor Oracle and how to format/interpret the res... | 28.974026 | 78 | 0.662035 | 277 | 2,231 | 5.306859 | 0.389892 | 0.070748 | 0.071429 | 0.065306 | 0.185714 | 0.163265 | 0.130612 | 0.130612 | 0.092517 | 0.092517 | 0 | 0.002402 | 0.253698 | 2,231 | 76 | 79 | 29.355263 | 0.88048 | 0.625728 | 0 | 0.210526 | 0 | 0 | 0.011309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.210526 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3ea399d1e5a995cb3131c5c40db9d76cde8ea679 | 1,848 | py | Python | python/busmap/fetch.py | ehabkost/busmap | 0e3361bb67abee8ada43dd85bf530a712fdd10d0 | [
"MIT"
] | 4 | 2016-08-16T20:58:32.000Z | 2022-02-08T23:25:14.000Z | python/busmap/fetch.py | ehabkost/busmap | 0e3361bb67abee8ada43dd85bf530a712fdd10d0 | [
"MIT"
] | null | null | null | python/busmap/fetch.py | ehabkost/busmap | 0e3361bb67abee8ada43dd85bf530a712fdd10d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
import horarios, linhas, env, dias
def get_linha_hor(idhor, nome):
c = env.db.cursor()
# look for id horario
r = c.select_onerow('linhas', ['id'], 'idhor=%s', [idhor])
if r:
c.close()
return r[0]
# not found. look for a similar name, but with no idhor set
r = c.select_onerow('linha... | 22 | 75 | 0.654762 | 303 | 1,848 | 3.874587 | 0.313531 | 0.030664 | 0.051107 | 0.025554 | 0.245315 | 0.187394 | 0.151618 | 0.105622 | 0.105622 | 0.063032 | 0 | 0.005305 | 0.183983 | 1,848 | 83 | 76 | 22.26506 | 0.77321 | 0.125 | 0 | 0.322034 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 0 | null | null | 0 | 0.016949 | null | null | 0.033898 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ea5b79052738ff444697a0162544b7cb83fa77e | 170 | py | Python | cardice/__init__.py | ogrisel/cardice | 29c1639acf4236b6732149b7fe1294e57f484ec2 | [
"MIT"
] | 2 | 2017-07-01T21:42:13.000Z | 2021-07-25T15:06:22.000Z | cardice/__init__.py | ogrisel/cardice | 29c1639acf4236b6732149b7fe1294e57f484ec2 | [
"MIT"
] | null | null | null | cardice/__init__.py | ogrisel/cardice | 29c1639acf4236b6732149b7fe1294e57f484ec2 | [
"MIT"
] | null | null | null | """Compute Cloud setup with SaltStack and Apache Libcloud"""
__version__ = '0.1.0-git'
if __name__ == '__main__':
from cardice.commandline import main
main()
| 17 | 60 | 0.694118 | 22 | 170 | 4.818182 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.188235 | 170 | 9 | 61 | 18.888889 | 0.746377 | 0.317647 | 0 | 0 | 0 | 0 | 0.154545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3eb1c33818cd84bcfee1e91a77bb6a7a469133d6 | 696 | py | Python | rss/subreddits.py | victorchen796/reddit-submission-scraper | 01401c6b35af8547eb9640e441a28633c38408bd | [
"MIT"
] | null | null | null | rss/subreddits.py | victorchen796/reddit-submission-scraper | 01401c6b35af8547eb9640e441a28633c38408bd | [
"MIT"
] | null | null | null | rss/subreddits.py | victorchen796/reddit-submission-scraper | 01401c6b35af8547eb9640e441a28633c38408bd | [
"MIT"
] | null | null | null | from resources import get_subreddits, update_subreddits
"""
subreddits:
{
'<subreddit name>': {
'phrases': [
'<phrases>'
],
'flairs': [
'<flairs>'
],
'include': <boolean>,
'unflaired': <boolean>
},
...
}
"""
subreddits = get_subreddit... | 15.818182 | 55 | 0.54023 | 56 | 696 | 6.607143 | 0.410714 | 0.172973 | 0.281081 | 0.156757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.308908 | 696 | 44 | 56 | 15.818182 | 0.769231 | 0 | 0 | 0.166667 | 0 | 0 | 0.062771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.055556 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ebd223a68790d2b826279a6ebae4b4991e4d159 | 147 | py | Python | Python3/tests/test_key.py | combofish/chips-get | 6005f24d09edda3f1f54c6603205b2f854ec3b3f | [
"MIT"
] | 2 | 2021-11-01T01:56:12.000Z | 2021-11-01T01:56:51.000Z | Python3/tests/test_key.py | combofish/chips-get | 6005f24d09edda3f1f54c6603205b2f854ec3b3f | [
"MIT"
] | null | null | null | Python3/tests/test_key.py | combofish/chips-get | 6005f24d09edda3f1f54c6603205b2f854ec3b3f | [
"MIT"
] | 2 | 2021-06-26T03:32:50.000Z | 2021-07-27T05:29:46.000Z | import unittest
class TeskKey(unittest.TestCase):
def test_key(self):
a = ['a', 'b']
b = ['b']
self.assertEqual(a,b)
| 16.333333 | 33 | 0.537415 | 19 | 147 | 4.105263 | 0.631579 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29932 | 147 | 8 | 34 | 18.375 | 0.757282 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ec0c0e888a693a3ef0bfeef53e754e45dcb5c0d | 8,632 | py | Python | treestruct/__init__.py | srafehi/treestruct | 6a9ef3a1457eb01655b4e977b0878a39702f90d3 | [
"MIT"
] | null | null | null | treestruct/__init__.py | srafehi/treestruct | 6a9ef3a1457eb01655b4e977b0878a39702f90d3 | [
"MIT"
] | null | null | null | treestruct/__init__.py | srafehi/treestruct | 6a9ef3a1457eb01655b4e977b0878a39702f90d3 | [
"MIT"
] | null | null | null | from collections import MutableSet
from . import helpers
FORWARD = 1 # used to look at Node children
BACKWARD = -1 # used to look at Node parents
class NodeSet(MutableSet):
"""
A mutable set which automatically populates parent/child node sets.
For example, if this NodeSet contains `children` no... | 28.966443 | 116 | 0.614805 | 1,071 | 8,632 | 4.851541 | 0.15873 | 0.035027 | 0.027714 | 0.017321 | 0.39261 | 0.319092 | 0.268283 | 0.245574 | 0.204388 | 0.184758 | 0 | 0.000981 | 0.291242 | 8,632 | 297 | 117 | 29.063973 | 0.848316 | 0.3845 | 0 | 0.068966 | 0 | 0 | 0.044162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.022989 | 0.057471 | 0.689655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3ec359870a353daedab935a963ae9baa6a11c4ba | 121 | py | Python | output/models/ms_data/regex/re_c43_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_c43_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_c43_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_c43_xsd.re_c43 import (
Regex,
Doc,
)
__all__ = [
"Regex",
"Doc",
]
| 12.1 | 59 | 0.603306 | 17 | 121 | 3.823529 | 0.705882 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.247934 | 121 | 9 | 60 | 13.444444 | 0.67033 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ed195c643e05f2493c485ef9620716c66af0427 | 1,559 | py | Python | pyppeteer_stealth/__init__.py | ramiezer2/pyppeteer_stealth | 432cf97713de51f12e8cab37320e2fc99cb32322 | [
"MIT"
] | 1 | 2021-06-25T07:27:52.000Z | 2021-06-25T07:27:52.000Z | pyppeteer_stealth/__init__.py | ramiezer2/pyppeteer_stealth | 432cf97713de51f12e8cab37320e2fc99cb32322 | [
"MIT"
] | null | null | null | pyppeteer_stealth/__init__.py | ramiezer2/pyppeteer_stealth | 432cf97713de51f12e8cab37320e2fc99cb32322 | [
"MIT"
] | null | null | null | from pyppeteer.page import Page
from .chrome_app import chrome_app
from .chrome_runtime import chrome_runtime
from .iframe_content_window import iframe_content_window
from .media_codecs import media_codecs
from .sourceurl import sourceurl
from .navigator_hardware_concurrency import navigator_hardware_concurrency
from ... | 39.974359 | 74 | 0.800513 | 195 | 1,559 | 6.14359 | 0.210256 | 0.133556 | 0.175292 | 0.1202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128929 | 1,559 | 38 | 75 | 41.026316 | 0.88218 | 0 | 0 | 0 | 0 | 0 | 0.020526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.470588 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3edb958165b1301f89cfaaba49e8a154b384bc20 | 916 | py | Python | src/gilbert/plugins/markdown.py | funkybob/gilbert | 2b478904f0aeb7a1d8c7294043c154afb15f3a79 | [
"MIT"
] | 11 | 2019-02-11T05:11:24.000Z | 2021-03-03T15:48:24.000Z | src/gilbert/plugins/markdown.py | funkybob/gilbert | 2b478904f0aeb7a1d8c7294043c154afb15f3a79 | [
"MIT"
] | 28 | 2019-05-07T20:00:10.000Z | 2020-12-11T21:28:53.000Z | src/gilbert/plugins/markdown.py | funkybob/gilbert | 2b478904f0aeb7a1d8c7294043c154afb15f3a79 | [
"MIT"
] | 5 | 2019-05-06T20:17:27.000Z | 2019-08-05T01:50:02.000Z | from pathlib import Path
from markdown import markdown
from gilbert import Site
from gilbert.content import Page
from gilbert.types import LoaderResult
from gilbert.utils import oneshot
class MarkdownPage(Page):
"""
Page type that renders its content as Markdown.
Extensions can be configured in ``confi... | 22.341463 | 85 | 0.684498 | 115 | 916 | 5.382609 | 0.495652 | 0.071082 | 0.074313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002766 | 0.210699 | 916 | 40 | 86 | 22.9 | 0.853389 | 0.221616 | 0 | 0 | 0 | 0 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3edc47a2f2b42d2d27d2ba855dd9ff3306df4bc4 | 330 | py | Python | lib/exutils.py | miyagaw61/old_exgdb | 270a4e2075215b012f445c5301111c349abcdcdf | [
"MIT"
] | 27 | 2017-07-02T11:42:45.000Z | 2018-05-20T04:40:25.000Z | lib/exutils.py | miyagi1024/exgdb | 270a4e2075215b012f445c5301111c349abcdcdf | [
"MIT"
] | null | null | null | lib/exutils.py | miyagi1024/exgdb | 270a4e2075215b012f445c5301111c349abcdcdf | [
"MIT"
] | 5 | 2020-09-19T10:50:44.000Z | 2022-03-12T08:47:32.000Z | import os
import sys
EXGDBFILE = os.path.abspath(os.path.expanduser(__file__))
sys.path.insert(0, os.path.dirname(EXGDBFILE) + "/lib/")
import utils
from enert import *
def clearscreen():
"""
Customized clearscreen from https://github.com/longld/peda
"""
print("\x1b[2J\x1b[H")
utils.clearscreen = cl... | 19.411765 | 62 | 0.70303 | 44 | 330 | 5.181818 | 0.613636 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014235 | 0.148485 | 330 | 16 | 63 | 20.625 | 0.797153 | 0.175758 | 0 | 0 | 0 | 0 | 0.070313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3ee0586956a13ee6d295dfe52ed995063090548a | 747 | py | Python | pkg/yc.py | rmc8/bibliography_alert | 219846404f98493d7f59b1c2c3c06ce0950db449 | [
"MIT"
] | null | null | null | pkg/yc.py | rmc8/bibliography_alert | 219846404f98493d7f59b1c2c3c06ce0950db449 | [
"MIT"
] | null | null | null | pkg/yc.py | rmc8/bibliography_alert | 219846404f98493d7f59b1c2c3c06ce0950db449 | [
"MIT"
] | null | null | null | import os
import yaml
class YamlConfig:
def __init__(self, file_path: str = "./settings/config.yml"):
self.file_path = file_path
def exists(self) -> bool:
return os.path.exists(self.file_path)
def load(self) -> dict:
"""
:return: Return yaml data as dictionary fo... | 27.666667 | 76 | 0.585007 | 100 | 747 | 4.25 | 0.49 | 0.112941 | 0.141176 | 0.084706 | 0.197647 | 0.122353 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.29585 | 747 | 26 | 77 | 28.730769 | 0.804183 | 0.170013 | 0 | 0 | 0 | 0 | 0.058407 | 0.037168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3efee332aeb99ec728789578036f2342e30c7328 | 813 | py | Python | piecrust/sources/interfaces.py | ludovicchabant/PieCrust2 | 89b2bf268bfdaae24ff6cf6d8c29c0b1239be739 | [
"Apache-2.0"
] | 43 | 2015-04-24T05:30:04.000Z | 2022-02-03T17:47:35.000Z | piecrust/sources/interfaces.py | ludovicchabant/PieCrust2 | 89b2bf268bfdaae24ff6cf6d8c29c0b1239be739 | [
"Apache-2.0"
] | 54 | 2015-01-03T01:58:44.000Z | 2021-05-06T21:56:26.000Z | piecrust/sources/interfaces.py | ludovicchabant/PieCrust2 | 89b2bf268bfdaae24ff6cf6d8c29c0b1239be739 | [
"Apache-2.0"
] | 8 | 2015-05-10T01:50:46.000Z | 2016-12-26T20:53:15.000Z |
class IPreparingSource(object):
""" Defines the interface for a source whose pages can be created by the
`chef prepare` command.
"""
def setupPrepareParser(self, parser, app):
raise NotImplementedError()
def createContent(self, args):
raise NotImplementedError()
class Interac... | 26.225806 | 76 | 0.669127 | 93 | 813 | 5.72043 | 0.548387 | 0.135338 | 0.071429 | 0.082707 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.252153 | 813 | 30 | 77 | 27.1 | 0.871711 | 0.268143 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
41098ba24fb46fd583520eb44cb473c2e1f45465 | 1,720 | py | Python | fyp/api/tests/serializers/test_login_serializer.py | Fanner487/fyp-django | 2cbc12099855b230497b73950dbea59e90e097da | [
"MIT"
] | null | null | null | fyp/api/tests/serializers/test_login_serializer.py | Fanner487/fyp-django | 2cbc12099855b230497b73950dbea59e90e097da | [
"MIT"
] | null | null | null | fyp/api/tests/serializers/test_login_serializer.py | Fanner487/fyp-django | 2cbc12099855b230497b73950dbea59e90e097da | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
from django.contrib.auth.models import User
from api import serializers
class LoginSerializerTest(TestCase):
"""
Tests all parameters of LoginSerializer
"""
def setUp(self):
self.user = U... | 27.741935 | 114 | 0.627907 | 163 | 1,720 | 6.472393 | 0.319018 | 0.033175 | 0.056872 | 0.189573 | 0.6 | 0.509005 | 0.509005 | 0.472038 | 0.409479 | 0.409479 | 0 | 0.002355 | 0.259302 | 1,720 | 61 | 115 | 28.196721 | 0.825746 | 0.036047 | 0 | 0.452381 | 0 | 0 | 0.117503 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.142857 | false | 0.190476 | 0.095238 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
412615f42d987f7821de56b42b3a3ec7a231083a | 608 | py | Python | neuralizer/tests/test_data_process.py | BeckResearchLab/Neuralizer | 70826e684f395796752dcdb891a28b35512a9632 | [
"MIT"
] | 1 | 2019-04-23T15:54:14.000Z | 2019-04-23T15:54:14.000Z | neuralizer/tests/test_data_process.py | BeckResearchLab/Neuralizer | 70826e684f395796752dcdb891a28b35512a9632 | [
"MIT"
] | 1 | 2019-05-08T01:13:14.000Z | 2019-05-08T01:13:14.000Z | neuralizer/tests/test_data_process.py | BeckResearchLab/Neuralizer | 70826e684f395796752dcdb891a28b35512a9632 | [
"MIT"
] | 1 | 2018-11-01T17:12:30.000Z | 2018-11-01T17:12:30.000Z | from __future__ import absolute_import,division,print_function
import os
import pandas as pd
import numpy as np
import numpy.testing as npt
import data_process as dp
def test_read_file():
X,Y = dp.read_file('test.tsv',["A","B"],"y")
npt.assert_equal(X,np.array[[0,1],[3,2],[4,3]])
npt.assert_equal(Y,np.arra... | 33.777778 | 71 | 0.692434 | 110 | 608 | 3.636364 | 0.436364 | 0.055 | 0.015 | 0.045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021195 | 0.146382 | 608 | 17 | 72 | 35.764706 | 0.749518 | 0 | 0 | 0 | 0 | 0 | 0.195724 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.133333 | false | 0 | 0.4 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
41288f3b6fef434c871e355217f7a21e8e1f91bd | 347 | py | Python | contact_forms/contact/tests/test_config.py | uktrade/dit-contact-forms | 57d4f040392ce31d8188d492dab5a8ca6eb5cc90 | [
"MIT"
] | 2 | 2020-02-05T11:12:48.000Z | 2021-06-03T14:21:44.000Z | contact_forms/contact/tests/test_config.py | uktrade/dit-contact-forms | 57d4f040392ce31d8188d492dab5a8ca6eb5cc90 | [
"MIT"
] | 8 | 2020-01-28T14:47:14.000Z | 2021-05-28T11:20:48.000Z | contact_forms/contact/tests/test_config.py | uktrade/dit-contact-forms | 57d4f040392ce31d8188d492dab5a8ca6eb5cc90 | [
"MIT"
] | null | null | null | from django.test import SimpleTestCase
from django.apps import apps
from contact.apps import ContactConfig
class ContactConfigTestCase(SimpleTestCase):
"""
Test app config
"""
def test_apps(self):
self.assertEqual(ContactConfig.name, "contact")
self.assertEqual(apps.get_app_config("... | 21.6875 | 72 | 0.723343 | 39 | 347 | 6.358974 | 0.435897 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178674 | 347 | 15 | 73 | 23.133333 | 0.870175 | 0.043228 | 0 | 0 | 0 | 0 | 0.066456 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
412c723b35d3bed5ac7d8c05ba319e197cf3a359 | 566 | py | Python | setup.py | jim22k/metagraph-stellargraph | 387d8180349b54eb1601d050a1ae176cfe26aad8 | [
"Apache-2.0"
] | null | null | null | setup.py | jim22k/metagraph-stellargraph | 387d8180349b54eb1601d050a1ae176cfe26aad8 | [
"Apache-2.0"
] | 6 | 2020-10-19T18:20:27.000Z | 2021-04-22T16:03:08.000Z | setup.py | jim22k/metagraph-stellargraph | 387d8180349b54eb1601d050a1ae176cfe26aad8 | [
"Apache-2.0"
] | 2 | 2020-10-12T16:58:30.000Z | 2020-12-01T15:58:27.000Z | from setuptools import setup, find_packages
import versioneer
setup(
name="metagraph-stellargraph",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Stellargraph plugins for Metagraph",
author="Anaconda, Inc.",
packages=find_packages(
include=["metagrap... | 29.789474 | 82 | 0.724382 | 54 | 566 | 7.37037 | 0.5 | 0.263819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159011 | 566 | 18 | 83 | 31.444444 | 0.836134 | 0 | 0 | 0 | 0 | 0 | 0.362191 | 0.210247 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5af258f22144a5a7f8a0f03781ee42b397db5e8 | 1,892 | py | Python | Comportamentais/Template Method/main.py | DionVitor/design_pattern | 6356e126abf32f74691010b45b2ffbc231b082ca | [
"MIT"
] | null | null | null | Comportamentais/Template Method/main.py | DionVitor/design_pattern | 6356e126abf32f74691010b45b2ffbc231b082ca | [
"MIT"
] | null | null | null | Comportamentais/Template Method/main.py | DionVitor/design_pattern | 6356e126abf32f74691010b45b2ffbc231b082ca | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
def print_abstract(string):
print(f'\033[31m{string}\033[0;0m')
def print_concrete(string):
print(f'\033[32m{string}\033[0;0m')
class AbstractClass(ABC):
def template_method(self):
self.operation_one()
self.required_operation_one()
self.opera... | 23.949367 | 82 | 0.676004 | 213 | 1,892 | 5.798122 | 0.253521 | 0.110121 | 0.097166 | 0.093117 | 0.468826 | 0.425101 | 0.39919 | 0.39919 | 0.244534 | 0.244534 | 0 | 0.028708 | 0.226744 | 1,892 | 78 | 83 | 24.25641 | 0.815448 | 0.023256 | 0 | 0.333333 | 0 | 0 | 0.260022 | 0.027086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.313725 | false | 0.078431 | 0.019608 | 0 | 0.392157 | 0.254902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f5b1e7815cd231f154cc929bbc928d3f6461a658 | 1,994 | py | Python | xos/xos/urls.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/xos/urls.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/xos/urls.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
# This is the generated API
from xosapi import *
from core.views.legacyapi import LegacyXMLRPC
from core.views.services import ServiceGridView
#from core.views.analytics import Ana... | 34.982456 | 87 | 0.712638 | 264 | 1,994 | 5.318182 | 0.333333 | 0.039886 | 0.027778 | 0.022792 | 0.034188 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136409 | 1,994 | 56 | 88 | 35.607143 | 0.815331 | 0.310431 | 0 | 0 | 1 | 0 | 0.248525 | 0.102507 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.333333 | 0 | 0.407407 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
f5cf5907e9083ee6f4bf80f773dd1fbdc14b023f | 229 | py | Python | main_exe.py | pkudba/SCL | 78e85344a579075d3d07ed77eab8e13144321c6a | [
"MIT"
] | 7 | 2021-09-02T06:47:35.000Z | 2022-03-09T05:13:00.000Z | main_exe.py | pkudba/SCL | 78e85344a579075d3d07ed77eab8e13144321c6a | [
"MIT"
] | null | null | null | main_exe.py | pkudba/SCL | 78e85344a579075d3d07ed77eab8e13144321c6a | [
"MIT"
] | null | null | null | import os
import torch
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import yaml
from tqdm.auto import tqdm
from tensorboardX import SummaryWriter
from torch.utils.data.dataloader import DataLoader
| 16.357143 | 50 | 0.825328 | 37 | 229 | 5.108108 | 0.486486 | 0.174603 | 0.179894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152838 | 229 | 13 | 51 | 17.615385 | 0.974227 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f5d1da8412d1d54895f1d9d6a54fcbbe3d315dcd | 3,841 | py | Python | simulations/simulations.py | ashkanbashiri/data_driven_intersection_control | d4e9dde231f9c78b0e5b0673786ec81644190f4a | [
"MIT"
] | 1 | 2020-04-16T23:54:15.000Z | 2020-04-16T23:54:15.000Z | simulations/simulations.py | ashkanbashiri/data_driven_intersection_control | d4e9dde231f9c78b0e5b0673786ec81644190f4a | [
"MIT"
] | null | null | null | simulations/simulations.py | ashkanbashiri/data_driven_intersection_control | d4e9dde231f9c78b0e5b0673786ec81644190f4a | [
"MIT"
] | 1 | 2021-07-23T10:21:41.000Z | 2021-07-23T10:21:41.000Z | from vissim_utils.sim import generate_phase_times, run_simulation, printProgressBar
import sys
import time
import datetime
import multiprocessing
import win32com.client as com
import os
def main():
global start_time
start_time = time.time()
fair_scheme = 'fair'
relative_scheme = 'relative'
schemes... | 44.662791 | 137 | 0.490497 | 442 | 3,841 | 4.049774 | 0.350679 | 0.006704 | 0.006704 | 0.006704 | 0.064804 | 0.052514 | 0.052514 | 0.052514 | 0.052514 | 0.052514 | 0 | 0.093064 | 0.406925 | 3,841 | 86 | 138 | 44.662791 | 0.692713 | 0.036188 | 0 | 0.135593 | 1 | 0 | 0.053857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.118644 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5d2c8743a87edafc1aa20751aaf5b47e4078cf5 | 78 | py | Python | mass_flask_core/tests/__init__.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 8 | 2017-03-15T20:04:23.000Z | 2021-02-11T02:57:58.000Z | mass_flask_core/tests/__init__.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 100 | 2016-09-20T14:02:22.000Z | 2019-10-23T00:49:38.000Z | mass_flask_core/tests/__init__.py | mass-project/mass_server | a785629ec9e74edfc039fa33727cc094cc1b7763 | [
"MIT"
] | 3 | 2018-01-19T12:57:46.000Z | 2018-12-28T00:53:46.000Z | from .flask_test_case import FlaskTestCase
__all__ = [
'FlaskTestCase'
]
| 13 | 42 | 0.74359 | 8 | 78 | 6.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 78 | 5 | 43 | 15.6 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5e26f92a26ee7e3b16828ff6c46dab8b988e7d9 | 562 | py | Python | src/modules/catalog/domain/services.py | Ermlab/python-ddd | a3e1cc69cad45e901c820688d7b42173bb3e1a1d | [
"MIT"
] | 308 | 2019-03-04T12:52:57.000Z | 2022-03-16T10:33:25.000Z | src/modules/catalog/domain/services.py | pgorecki/python-ddd | 0073ccce35c651be263f5d7d3d63f9a49bc0b78a | [
"MIT"
] | 5 | 2018-12-07T08:14:52.000Z | 2021-06-17T12:22:19.000Z | src/modules/catalog/domain/services.py | Ermlab/python-ddd | a3e1cc69cad45e901c820688d7b42173bb3e1a1d | [
"MIT"
] | 58 | 2019-06-15T22:56:15.000Z | 2022-03-01T02:00:17.000Z | # from seedwork.domain.services import DomainService
# from seedwork.domain.value_objects import UUID
# from .entities import Listing, Seller
# from .repositories import ListingRepository
# from .rules import (
# ListingMustBeInDraftState,
# SellerMustBeEligibleForAddingNextListing,
# )
# class CatalogService... | 35.125 | 75 | 0.763345 | 50 | 562 | 8.5 | 0.5 | 0.056471 | 0.084706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153025 | 562 | 15 | 76 | 37.466667 | 0.892857 | 0.948399 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5f1c161de6067bb2f62e69e4cf3b58d2d8f64c4 | 347 | py | Python | measure_mate/migrations/0015_merge.py | niche-tester/measure-mate | c3acba57747bcb89fe0c6b9509ec90f04a581506 | [
"MIT"
] | 15 | 2015-12-14T02:20:31.000Z | 2022-01-30T04:36:39.000Z | measure_mate/migrations/0015_merge.py | rloomans/measure-mate | e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2 | [
"MIT"
] | 1,403 | 2017-02-16T01:00:04.000Z | 2022-03-15T21:12:13.000Z | measure_mate/migrations/0015_merge.py | rloomans/measure-mate | e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2 | [
"MIT"
] | 10 | 2015-12-18T01:30:46.000Z | 2022-01-30T04:36:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-26 06:25
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('measure_mate', '0011_auto_20160225_1305'),
('measure_mate', '0014_auto_20160224_0207'),
]... | 20.411765 | 52 | 0.67147 | 43 | 347 | 5.116279 | 0.790698 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174545 | 0.207493 | 347 | 16 | 53 | 21.6875 | 0.625455 | 0.193084 | 0 | 0 | 1 | 0 | 0.252708 | 0.166065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f5f8b3972f25a15c43cde6e54eab5f8619f3ad6d | 7,432 | py | Python | src/oci/adm/models/application_dependency_vulnerability_summary.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/adm/models/application_dependency_vulnerability_summary.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/adm/models/application_dependency_vulnerability_summary.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"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... | 37.725888 | 245 | 0.706136 | 792 | 7,432 | 6.369949 | 0.189394 | 0.030922 | 0.232904 | 0.099901 | 0.6444 | 0.497721 | 0.396234 | 0.335778 | 0.304856 | 0.252527 | 0 | 0.003155 | 0.232239 | 7,432 | 196 | 246 | 37.918367 | 0.881002 | 0.578848 | 0 | 0.080645 | 0 | 0 | 0.111245 | 0.066102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.032258 | 0.419355 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eb0ba8ea59919b7a462c48587b5c02e352092770 | 449 | py | Python | random/random_util_test.py | ljszalai/pyaster | 829e1cc7bec2f3a1923f7b927da92a300f9dd632 | [
"Apache-2.0"
] | null | null | null | random/random_util_test.py | ljszalai/pyaster | 829e1cc7bec2f3a1923f7b927da92a300f9dd632 | [
"Apache-2.0"
] | null | null | null | random/random_util_test.py | ljszalai/pyaster | 829e1cc7bec2f3a1923f7b927da92a300f9dd632 | [
"Apache-2.0"
] | null | null | null | import unittest
import random_util
class MyTestCase(unittest.TestCase):
def test_visualize_results(self):
column_width = 20
print("Generated id:".rjust(column_width, ' ') + random_util.generate_id())
print("Generated uuid:".rjust(column_width, ' ') + random_util.generate_uuid())
pr... | 29.933333 | 89 | 0.690423 | 52 | 449 | 5.557692 | 0.480769 | 0.138408 | 0.16609 | 0.228374 | 0.352941 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.173719 | 449 | 14 | 90 | 32.071429 | 0.773585 | 0 | 0 | 0 | 1 | 0 | 0.122494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eb12fc6b29a934d4686d5db491393e262d899e41 | 72 | py | Python | snli/wae-stochastic/gl.py | yq-wen/probabilistic_nlg | 545a0a82eaba005be77d50ad25c6cb7267e16676 | [
"MIT"
] | 28 | 2019-03-03T05:12:51.000Z | 2022-01-15T14:05:39.000Z | snli/wae-stochastic/gl.py | yq-wen/probabilistic_nlg | 545a0a82eaba005be77d50ad25c6cb7267e16676 | [
"MIT"
] | 6 | 2019-07-04T11:39:32.000Z | 2022-02-09T23:29:03.000Z | snli/wae-stochastic/gl.py | sndean/probabilistic_nlg | fab94d63a742951d9e198f3b2a90db87ffa23b8a | [
"MIT"
] | 8 | 2019-04-02T15:36:41.000Z | 2021-05-17T16:02:56.000Z | config_fingerprint = None
config = None
log_writer = None
isTrain = True | 18 | 25 | 0.791667 | 10 | 72 | 5.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152778 | 72 | 4 | 26 | 18 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eb13af00dcbb8db574bd4f7e84464fa116b3916a | 3,054 | py | Python | MyInfo/models.py | hhauer/myinfo | 210a2caeff570650462f8774385aa9223b3bc858 | [
"MIT"
] | 2 | 2015-08-04T21:17:09.000Z | 2019-11-16T23:41:56.000Z | MyInfo/models.py | hhauer/myinfo | 210a2caeff570650462f8774385aa9223b3bc858 | [
"MIT"
] | null | null | null | MyInfo/models.py | hhauer/myinfo | 210a2caeff570650462f8774385aa9223b3bc858 | [
"MIT"
] | 2 | 2020-11-03T15:45:04.000Z | 2021-08-30T11:29:44.000Z | from django.db import models
from localflavor.us.models import USStateField, PhoneNumberField
from MyInfo.validators import validate_psu_phone
import logging
logger = logging.getLogger(__name__)
# PSU Mailcode
class Mailcode(models.Model):
code = models.CharField(max_length=40)
description = models.CharFiel... | 35.511628 | 104 | 0.722659 | 380 | 3,054 | 5.623684 | 0.310526 | 0.067384 | 0.109499 | 0.145999 | 0.450632 | 0.355171 | 0.295742 | 0.233973 | 0.206832 | 0.166589 | 0 | 0.018629 | 0.17387 | 3,054 | 86 | 105 | 35.511628 | 0.828379 | 0.094303 | 0 | 0.230769 | 0 | 0 | 0.066014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0.115385 | 0.903846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
eb183fa78d4e64a59981a611cb06d01feedd1183 | 545 | py | Python | cicada2/operator/daemon/types.py | herzo175/cicada-2 | be838e7183dccfceafe02b61b0fe2307d50aab69 | [
"BSD-3-Clause"
] | 11 | 2020-05-05T22:42:09.000Z | 2020-05-11T04:13:17.000Z | cicada2/operator/daemon/types.py | cicadatesting/cicada-2 | be838e7183dccfceafe02b61b0fe2307d50aab69 | [
"BSD-3-Clause"
] | 8 | 2020-09-24T12:31:54.000Z | 2022-02-19T01:15:42.000Z | cicada2/operator/daemon/types.py | cicadatesting/cicada-2 | be838e7183dccfceafe02b61b0fe2307d50aab69 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T22:41:33.000Z | 2020-05-05T22:41:33.000Z | from typing import Dict, List, TypedDict
class Dependency(TypedDict):
name: str
labels: Dict[str, str]
statuses: List[str]
class SetupConfig(TypedDict):
pvc: str
mountPath: str
remotePath: str
localPath: str
class Spec(TypedDict):
dependencies: List[Dependency]
ioConfig: Dict[s... | 16.515152 | 40 | 0.686239 | 61 | 545 | 6.131148 | 0.42623 | 0.05615 | 0.080214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229358 | 545 | 32 | 41 | 17.03125 | 0.890476 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eb263e400e7560a4734a8fcb0b56677a86219df4 | 1,521 | py | Python | dataconverter.py | zhang96/CSVToJSON | d5fc93f3d5048ff2d5e14ca283d997b48b59fbf2 | [
"MIT"
] | 1 | 2018-08-03T15:32:07.000Z | 2018-08-03T15:32:07.000Z | dataconverter.py | JerryFZhang/CSVToJSON | d5fc93f3d5048ff2d5e14ca283d997b48b59fbf2 | [
"MIT"
] | null | null | null | dataconverter.py | JerryFZhang/CSVToJSON | d5fc93f3d5048ff2d5e14ca283d997b48b59fbf2 | [
"MIT"
] | null | null | null | # Simple Python program that converts CSV to JSON for my MongoDB project.
# - It converts all the csv files under the directory at once.
import csv
import json
import glob
for files in glob.glob("*.csv"):
csvfile = open(files, 'r')
jsonfile = open(files[:-4] + '.json', 'w')
reader = csv.reader(open(files, ... | 24.532258 | 73 | 0.378041 | 135 | 1,521 | 4.259259 | 0.377778 | 0.055652 | 0.027826 | 0.048696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.530572 | 1,521 | 61 | 74 | 24.934426 | 0.788515 | 0.122945 | 0 | 0.095238 | 0 | 0 | 0.032453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eb2b8f178677fc6dee15426bc63bb2e1cf3fc17c | 1,230 | py | Python | tests/fields/test_integer.py | Ennkua/wtforms | c08ec7840c5a78ae8784139f7ee70f9627cf1ab8 | [
"BSD-3-Clause"
] | 1,197 | 2015-01-04T16:17:55.000Z | 2022-03-28T01:14:33.000Z | tests/fields/test_integer.py | Ennkua/wtforms | c08ec7840c5a78ae8784139f7ee70f9627cf1ab8 | [
"BSD-3-Clause"
] | 517 | 2015-01-03T13:36:25.000Z | 2022-03-27T07:02:07.000Z | tests/fields/test_integer.py | Ennkua/wtforms | c08ec7840c5a78ae8784139f7ee70f9627cf1ab8 | [
"BSD-3-Clause"
] | 449 | 2015-01-02T12:17:36.000Z | 2022-02-17T06:41:34.000Z | from tests.common import DummyPostData
from wtforms.fields import IntegerField
from wtforms.form import Form
class F(Form):
a = IntegerField()
b = IntegerField(default=48)
def test_integer_field():
form = F(DummyPostData(a=["v"], b=["-15"]))
assert form.a.data is None
assert form.a.raw_data == ... | 30.75 | 78 | 0.613008 | 187 | 1,230 | 3.973262 | 0.213904 | 0.215343 | 0.133244 | 0.086137 | 0.472409 | 0.449529 | 0.449529 | 0.449529 | 0.293405 | 0.293405 | 0 | 0.015353 | 0.205691 | 1,230 | 39 | 79 | 31.538462 | 0.745138 | 0 | 0 | 0.352941 | 0 | 0 | 0.08374 | 0 | 0 | 0 | 0 | 0 | 0.676471 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de189f5a112fe713a2f662fcee9243c208974d1c | 252 | py | Python | 3/3_4_2_full_permutation_2.py | DingJunyao/aha-algorithms-py | 98912e569ed22bcbbe462c1a01b153ce99e030e5 | [
"CC0-1.0"
] | 2 | 2019-06-27T15:44:18.000Z | 2020-02-24T06:57:26.000Z | 3/3_4_2_full_permutation_2.py | DingJunyao/aha-algorithms-py | 98912e569ed22bcbbe462c1a01b153ce99e030e5 | [
"CC0-1.0"
] | null | null | null | 3/3_4_2_full_permutation_2.py | DingJunyao/aha-algorithms-py | 98912e569ed22bcbbe462c1a01b153ce99e030e5 | [
"CC0-1.0"
] | null | null | null | """
全排列2
求1、2、3、4的全排列
"""
k = [1, 2, 3, 4]
for a in k:
for b in k:
for c in k:
for d in k:
if a != b and a != c and a != d and b != c and b != d and c != d:
print("%s%s%s%s" % (a, b, c, d))
| 18 | 81 | 0.349206 | 53 | 252 | 1.660377 | 0.339623 | 0.136364 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0.468254 | 252 | 13 | 82 | 19.384615 | 0.589552 | 0.071429 | 0 | 0 | 0 | 0 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 1 | 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 | 2 |
de3d9040ebdb5cc350a901bdff499ed23b83a44f | 3,281 | py | Python | dev/atlas/create_atlas/create_masks_csf_and_gm.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | 1 | 2020-05-17T00:39:47.000Z | 2020-05-17T00:39:47.000Z | dev/atlas/create_atlas/create_masks_csf_and_gm.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | null | null | null | dev/atlas/create_atlas/create_masks_csf_and_gm.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# create masks of CSF and gray matter
# Author: jcohen@polymtl.ca
# Created: 2014-12-06
# TODO: get GM
# TODO: add tract corresponding to the undefined values in WM atlas
import sys, io, os, glob
import numpy as np
import nibabel as nib
path_sct = os.environ.get("SCT_DIR", os.path.dirname(os.p... | 38.151163 | 120 | 0.708321 | 569 | 3,281 | 3.885765 | 0.330404 | 0.024876 | 0.03166 | 0.028946 | 0.202171 | 0.155133 | 0.088648 | 0.026232 | 0 | 0 | 0 | 0.036424 | 0.171594 | 3,281 | 85 | 121 | 38.6 | 0.777042 | 0.235599 | 0 | 0.046512 | 0 | 0.046512 | 0.154814 | 0.029055 | 0 | 0 | 0 | 0.011765 | 0 | 0 | null | null | 0 | 0.093023 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de544240267c7fd528689a484817f60de0058609 | 1,530 | py | Python | setup.py | sqxccdy/tcp-tunnel | c049152224724a85e94ad5f66bba7a0ed9f0e4ec | [
"MIT"
] | 1 | 2020-11-13T07:35:53.000Z | 2020-11-13T07:35:53.000Z | setup.py | sqxccdy/tcp-tunnel | c049152224724a85e94ad5f66bba7a0ed9f0e4ec | [
"MIT"
] | null | null | null | setup.py | sqxccdy/tcp-tunnel | c049152224724a85e94ad5f66bba7a0ed9f0e4ec | [
"MIT"
] | null | null | null | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools import setup, find_packages
import tcp_tunnel
setup(name="tcp-tunnel",
version=tcp_tunnel.VERSION,
pac... | 31.875 | 91 | 0.61634 | 159 | 1,530 | 5.811321 | 0.641509 | 0.077922 | 0.108225 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007881 | 0.253595 | 1,530 | 47 | 92 | 32.553191 | 0.801226 | 0.054248 | 0 | 0 | 1 | 0 | 0.444753 | 0.020153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.131579 | 0 | 0.131579 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de6432581dedd25ec0ac677022d4ab7e275b3ce7 | 15,919 | py | Python | src/tfchain/types/PrimitiveTypes.py | GlenDC/threefold-wallet-electron | 440662a793d98781eb3bbf415ba8a482abed0288 | [
"MIT"
] | null | null | null | src/tfchain/types/PrimitiveTypes.py | GlenDC/threefold-wallet-electron | 440662a793d98781eb3bbf415ba8a482abed0288 | [
"MIT"
] | 201 | 2019-05-20T15:06:05.000Z | 2019-07-16T12:48:59.000Z | src/tfchain/types/PrimitiveTypes.py | GlenDC/threefold-wallet-electron | 440662a793d98781eb3bbf415ba8a482abed0288 | [
"MIT"
] | 1 | 2019-12-20T21:45:39.000Z | 2019-12-20T21:45:39.000Z | import tfchain.errors as tferrors
import tfchain.polyfill.encoding.base64 as jsbase64
import tfchain.polyfill.encoding.hex as jshex
import tfchain.polyfill.encoding.str as jsstr
import tfchain.polyfill.encoding.decimal as jsdec
import tfchain.polyfill.array as jsarray
from tfchain.types.BaseDataType import BaseDataTy... | 33.870213 | 115 | 0.60588 | 1,949 | 15,919 | 4.669061 | 0.110826 | 0.057143 | 0.034615 | 0.04 | 0.540659 | 0.478681 | 0.406703 | 0.355385 | 0.303077 | 0.231648 | 0 | 0.004632 | 0.294805 | 15,919 | 469 | 116 | 33.942431 | 0.805986 | 0.106477 | 0 | 0.432749 | 0 | 0 | 0.06834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.020468 | 0.102339 | 0.467836 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
de725a930ec5ae393fc3caa92451bc677a847ebf | 1,690 | py | Python | hub/tests/test_models_custom_link.py | yevgenykuz/dev-team-hub | 839938fa7fd59f19fef6b90f32d10c30f2b34a91 | [
"MIT"
] | 2 | 2019-04-30T13:21:30.000Z | 2020-04-04T03:12:44.000Z | hub/tests/test_models_custom_link.py | yevgenykuz/dev-team-hub | 839938fa7fd59f19fef6b90f32d10c30f2b34a91 | [
"MIT"
] | 40 | 2018-01-25T13:53:40.000Z | 2022-03-03T00:46:50.000Z | hub/tests/test_models_custom_link.py | yevgenykuz/dev-team-hub | 839938fa7fd59f19fef6b90f32d10c30f2b34a91 | [
"MIT"
] | null | null | null | from django.test import TestCase
from ..models import CustomLink
class CustomLinkModelTests(TestCase):
def setUp(self):
self.custom_link = CustomLink.objects.create(name='Google', url='https://www.google.com', order_id=1)
def test_new_object(self):
self.assertEquals(self.custom_link.name, 'G... | 41.219512 | 109 | 0.711834 | 226 | 1,690 | 5.026549 | 0.20354 | 0.132042 | 0.184859 | 0.126761 | 0.452465 | 0.338028 | 0.278169 | 0.239437 | 0.227113 | 0.121479 | 0 | 0.00569 | 0.168047 | 1,690 | 40 | 110 | 42.25 | 0.802276 | 0 | 0 | 0 | 0 | 0 | 0.095858 | 0.028402 | 0 | 0 | 0 | 0 | 0.387097 | 1 | 0.225806 | false | 0 | 0.064516 | 0 | 0.322581 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de805156ebf0bbfbf59d7831977a94f6a44b464d | 1,033 | py | Python | poketech/pokequest/migrations/0011_auto_20150829_1618.py | sagarmanchanda/PokeQuest | feea3003fc2918f678dc67c09491f6fc07685677 | [
"MIT"
] | null | null | null | poketech/pokequest/migrations/0011_auto_20150829_1618.py | sagarmanchanda/PokeQuest | feea3003fc2918f678dc67c09491f6fc07685677 | [
"MIT"
] | null | null | null | poketech/pokequest/migrations/0011_auto_20150829_1618.py | sagarmanchanda/PokeQuest | feea3003fc2918f678dc67c09491f6fc07685677 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pokequest', '0010_auto_20150826_1936'),
]
operations = [
migrations.RenameField(
model_name='player',
... | 23.477273 | 49 | 0.522749 | 78 | 1,033 | 6.705128 | 0.474359 | 0.120459 | 0.298279 | 0.344168 | 0.466539 | 0.466539 | 0 | 0 | 0 | 0 | 0 | 0.03653 | 0.363988 | 1,033 | 43 | 50 | 24.023256 | 0.759513 | 0.020329 | 0 | 0.540541 | 0 | 0 | 0.146535 | 0.022772 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
debcc219fb5af886219a6a83095c6cfb8964ecd8 | 318 | py | Python | flow-python/examples/basis_function/nest/op.py | MegEngine/MegFlow | 4bbf15acc21fb1f51e95311e28fb0a10fe4a91d3 | [
"Apache-2.0"
] | 303 | 2021-09-09T06:42:01.000Z | 2022-03-28T10:54:40.000Z | flow-python/examples/basis_function/nest/op.py | MegEngine/MegFlow | 4bbf15acc21fb1f51e95311e28fb0a10fe4a91d3 | [
"Apache-2.0"
] | 49 | 2021-09-09T08:18:50.000Z | 2022-03-31T03:25:07.000Z | flow-python/examples/basis_function/nest/op.py | MegEngine/MegFlow | 4bbf15acc21fb1f51e95311e28fb0a10fe4a91d3 | [
"Apache-2.0"
] | 31 | 2021-09-09T12:12:36.000Z | 2022-03-21T01:53:13.000Z | #!/usr/bin/env python
# coding=utf-8
from megflow.func_op import *
@map_def(exclusive=True)
def noop(x):
# print('send', x)
return x
@source_def()
def gen(context=None):
for i in range(context.n):
# print('first', i)
yield i
@sink_def()
def printer(x):
pass
# print('last', x)
| 14.454545 | 30 | 0.597484 | 50 | 318 | 3.72 | 0.72 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.238994 | 318 | 21 | 31 | 15.142857 | 0.764463 | 0.267296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.090909 | 0.090909 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
debefb62a57111e1274ab47b30e41a5413fe0de1 | 196 | py | Python | Implementation/Subtract the Product and Sum of Digits of an Integer.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | 1 | 2021-06-30T17:51:56.000Z | 2021-06-30T17:51:56.000Z | Implementation/Subtract the Product and Sum of Digits of an Integer.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | null | null | null | Implementation/Subtract the Product and Sum of Digits of an Integer.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | null | null | null | class Solution:
def subtractProductAndSum(self, n: int) -> int:
x=1
s=0
while n>0:
x=x*(n%10)
s=s+(n%10)
n=n//10
return x-s
| 19.6 | 51 | 0.413265 | 29 | 196 | 2.793103 | 0.482759 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 0.454082 | 196 | 9 | 52 | 21.777778 | 0.672897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dec0126f28289afd20d35fd0a9abafa309cefaa8 | 635 | py | Python | FWCore/GuiBrowsers/python/Vispa/Plugins/EdmBrowser/BranchTableView.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | FWCore/GuiBrowsers/python/Vispa/Plugins/EdmBrowser/BranchTableView.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | FWCore/GuiBrowsers/python/Vispa/Plugins/EdmBrowser/BranchTableView.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | import logging
from Vispa.Views.TableView import TableView
class BranchTableView(TableView):
""" Table view that lists python configuration code.
"""
LABEL = "Branches"
def __init__(self, parent=None):
logging.debug(__name__ + ": __init__")
TableView.__init__(self,parent)
sel... | 26.458333 | 66 | 0.670866 | 64 | 635 | 6.359375 | 0.625 | 0.039312 | 0.068796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002012 | 0.217323 | 635 | 23 | 67 | 27.608696 | 0.816901 | 0.075591 | 0 | 0 | 0 | 0 | 0.071304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0.133333 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
dec06e17706724ed8febf7fda1dc7a92ef6d1e04 | 824 | py | Python | ALEPlayer.py | shamrickus/Deep-Learning-Atari | 2e0d34978d3c1ff68607cbc5c4b9b4d96f6e996d | [
"Apache-2.0"
] | null | null | null | ALEPlayer.py | shamrickus/Deep-Learning-Atari | 2e0d34978d3c1ff68607cbc5c4b9b4d96f6e996d | [
"Apache-2.0"
] | 1 | 2021-06-17T15:21:21.000Z | 2021-06-17T15:21:21.000Z | ALEPlayer.py | shamrickus/Deep-Learning-Atari | 2e0d34978d3c1ff68607cbc5c4b9b4d96f6e996d | [
"Apache-2.0"
] | null | null | null | import time
from random import randrange
import random
import BaseROM
from ALEWrapper import ALEWrapper
class ALEPlayer:
ale = None
reward = 0
actions = []
actionHistory = []
time = None
depth = 0
originalState = None
rom = None
def __init__(self, rom: BaseROM):
self.rom ... | 22.888889 | 139 | 0.629854 | 99 | 824 | 5.080808 | 0.414141 | 0.083499 | 0.039761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013136 | 0.260922 | 824 | 35 | 140 | 23.542857 | 0.812808 | 0 | 0 | 0.071429 | 0 | 0 | 0.055825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.178571 | 0.107143 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
dee4aace9a168ffd1bad57604074f36b12c52ea4 | 423 | py | Python | src/themester/decorators.py | pauleveritt/themester | dbcace1b60b892e0e49479976a6de6f080993305 | [
"MIT"
] | null | null | null | src/themester/decorators.py | pauleveritt/themester | dbcace1b60b892e0e49479976a6de6f080993305 | [
"MIT"
] | 10 | 2022-01-23T17:08:28.000Z | 2022-03-28T13:37:30.000Z | src/themester/decorators.py | pauleveritt/themester | dbcace1b60b892e0e49479976a6de6f080993305 | [
"MIT"
] | null | null | null | """Convenience decorators for custom Themester injectables."""
from hopscotch import injectable
from themester.protocols import Config
from themester.protocols import View
# noinspection PyPep8Naming
class view(injectable): # noqa: N801
"""Injectable views."""
kind = View
# noinspection PyPep8Naming
clas... | 21.15 | 62 | 0.747045 | 43 | 423 | 7.348837 | 0.511628 | 0.082278 | 0.139241 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022663 | 0.165485 | 423 | 19 | 63 | 22.263158 | 0.872521 | 0.44208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
deed49e16e583f13ee63c48febe1d703c854e21e | 263 | py | Python | mopidy_sevensegmentdisplay/threader.py | JuMalIO/mopidy-sevensegmentdisplay | ea3a99715ecf29f6a7d25b08429883c1918517e5 | [
"Apache-2.0"
] | null | null | null | mopidy_sevensegmentdisplay/threader.py | JuMalIO/mopidy-sevensegmentdisplay | ea3a99715ecf29f6a7d25b08429883c1918517e5 | [
"Apache-2.0"
] | 8 | 2018-11-05T12:42:15.000Z | 2019-05-25T13:46:05.000Z | mopidy_sevensegmentdisplay/threader.py | JuMalIO/mopidy-sevensegmentdisplay | ea3a99715ecf29f6a7d25b08429883c1918517e5 | [
"Apache-2.0"
] | null | null | null | import threading
class Threader(threading.Thread):
def __init__(self):
super(Threader, self).__init__()
self._stop = threading.Event()
def stop(self):
self._stop.set()
def stopped(self):
return self._stop.is_set()
| 17.533333 | 40 | 0.623574 | 31 | 263 | 4.903226 | 0.483871 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254753 | 263 | 14 | 41 | 18.785714 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
def12acdbe4e6e1133832b25c20cbafefb42a2b3 | 190,406 | py | Python | smartaddress/datas/a3.py | 1haohulian/smart-address | 6f96a8a58b8d2e42912ea5c73e12b33d93cfaccb | [
"MIT"
] | null | null | null | smartaddress/datas/a3.py | 1haohulian/smart-address | 6f96a8a58b8d2e42912ea5c73e12b33d93cfaccb | [
"MIT"
] | null | null | null | smartaddress/datas/a3.py | 1haohulian/smart-address | 6f96a8a58b8d2e42912ea5c73e12b33d93cfaccb | [
"MIT"
] | null | null | null | a3_data = {
37: {'name': '东城区', 'pid': 36, 'zipcode': 100000},
38: {'name': '西城区', 'pid': 36, 'zipcode': 100000},
41: {'name': '朝阳区', 'pid': 36, 'zipcode': 122000},
42: {'name': '丰台区', 'pid': 36, 'zipcode': 100000},
43: {'name': '石景山区', 'pid': 36, 'zipcode': 100000},
44: {'name': '海淀区', 'pid': 36, 'zipcode': 1... | 54.982963 | 66 | 0.54565 | 24,223 | 190,406 | 4.289064 | 0.318416 | 0.002021 | 0.004851 | 0.006584 | 0.001001 | 0.001001 | 0 | 0 | 0 | 0 | 0 | 0.269409 | 0.14541 | 190,406 | 3,462 | 67 | 54.998845 | 0.369078 | 0 | 0 | 0 | 0 | 0 | 0.315389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
def6a8634639338cbefbb55ef6b3287e80d9bb80 | 812 | py | Python | spark_auto_mapper_fhir/value_sets/v2_0472.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | 1 | 2021-11-18T18:06:45.000Z | 2021-11-18T18:06:45.000Z | spark_auto_mapper_fhir/value_sets/v2_0472.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | spark_auto_mapper_fhir/value_sets/v2_0472.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from spark_auto_mapper_fhir.fhir_types.uri import FhirUri
from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode
from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType
# This file is auto-generated by generate_classes so do not edi... | 31.230769 | 84 | 0.756158 | 107 | 812 | 5.485981 | 0.542056 | 0.051107 | 0.06644 | 0.097104 | 0.25724 | 0.178876 | 0.178876 | 0 | 0 | 0 | 0 | 0.052632 | 0.157635 | 812 | 25 | 85 | 32.48 | 0.805556 | 0.317734 | 0 | 0 | 0 | 0 | 0.092275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
724c632ef51b4817a07a8856df9741f92655f48f | 1,777 | py | Python | parlai/agents/programr/config/bot/bot.py | roholazandie/ParlAI | 32352cab81ecb666aefd596232c5ed9f33cbaeb9 | [
"MIT"
] | null | null | null | parlai/agents/programr/config/bot/bot.py | roholazandie/ParlAI | 32352cab81ecb666aefd596232c5ed9f33cbaeb9 | [
"MIT"
] | null | null | null | parlai/agents/programr/config/bot/bot.py | roholazandie/ParlAI | 32352cab81ecb666aefd596232c5ed9f33cbaeb9 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from parlai.agents.programr.config.base import BaseConfigurationData
from parlai.agents.programr.config.bot.conversations import BotConversationsConfiguration
from parlai.agents.programr.config.bot.databaseconfig import DatabaseConfiguration
from parlai.agents.programr.config.b... | 44.425 | 89 | 0.746201 | 192 | 1,777 | 6.776042 | 0.317708 | 0.156802 | 0.115296 | 0.092237 | 0.203689 | 0.076095 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154755 | 1,777 | 39 | 90 | 45.564103 | 0.866178 | 0.016882 | 0 | 0 | 0 | 0 | 0.007458 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.03125 | false | 0 | 0.1875 | 0 | 0.78125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a0c7f0bdfcf186c3413f6d5f8145b336ace77089 | 18,575 | py | Python | datacommons/test/populations_test.py | ACscooter/datacommons | f35d2810c5bfdf723996629c7490887e58d9c460 | [
"Apache-2.0"
] | 1 | 2019-05-03T17:20:49.000Z | 2019-05-03T17:20:49.000Z | datacommons/test/populations_test.py | ACscooter/datacommons | f35d2810c5bfdf723996629c7490887e58d9c460 | [
"Apache-2.0"
] | 1 | 2019-07-25T19:01:36.000Z | 2019-07-25T19:01:36.000Z | datacommons/test/populations_test.py | ACscooter/datacommons | f35d2810c5bfdf723996629c7490887e58d9c460 | [
"Apache-2.0"
] | 5 | 2019-06-14T03:56:18.000Z | 2019-08-01T01:30:35.000Z | # Copyright 2017 Google 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, ... | 34.849906 | 92 | 0.616635 | 2,075 | 18,575 | 5.341687 | 0.132048 | 0.027066 | 0.012992 | 0.018766 | 0.771833 | 0.726001 | 0.699026 | 0.68035 | 0.67629 | 0.66808 | 0 | 0.04696 | 0.253674 | 18,575 | 532 | 93 | 34.915414 | 0.752579 | 0.203015 | 0 | 0.609418 | 0 | 0 | 0.253418 | 0.025967 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.055402 | false | 0 | 0.033241 | 0.00554 | 0.146814 | 0.00277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a0da175e35145b366d3b7737a4273391c1098b6b | 186 | py | Python | test.py | pascscha/pySBB | 16b6c8de34088f7e1d8ad7235e1b9e86cfb06dcc | [
"MIT"
] | 6 | 2019-08-17T18:37:49.000Z | 2020-06-07T15:09:45.000Z | test.py | pascscha/pySBB | 16b6c8de34088f7e1d8ad7235e1b9e86cfb06dcc | [
"MIT"
] | 1 | 2019-03-27T11:13:52.000Z | 2019-03-27T11:15:05.000Z | test.py | pasch13/pySBB | 16b6c8de34088f7e1d8ad7235e1b9e86cfb06dcc | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import pySBB
entries = pySBB.get_stationboard("Zürich, Milchbuck")[:5]
for entry in entries:
print(entry.category, entry.number, entry.to, entry.stop.departure)
| 23.25 | 71 | 0.747312 | 26 | 186 | 5.307692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.112903 | 186 | 7 | 72 | 26.571429 | 0.824242 | 0.091398 | 0 | 0 | 0 | 0 | 0.10119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a0fef096085f4bc57b7af05c1f017ee438802d8d | 193,261 | py | Python | pysnmp-with-texts/ADIC-MANAGEMENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ADIC-MANAGEMENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ADIC-MANAGEMENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ADIC-MANAGEMENT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADIC-MANAGEMENT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:13:37 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 140.451308 | 9,533 | 0.769058 | 23,225 | 193,261 | 6.39944 | 0.06394 | 0.069193 | 0.121088 | 0.012272 | 0.577755 | 0.443614 | 0.398629 | 0.386727 | 0.333351 | 0.308302 | 0 | 0.068364 | 0.095218 | 193,261 | 1,375 | 9,534 | 140.553455 | 0.781618 | 0.001718 | 0 | 0.004425 | 0 | 0.084808 | 0.313721 | 0.030406 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003687 | 0.013274 | 0 | 0.037611 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d04ee532c5ba7b7333d595cad7ba16d0f6d45fd | 1,846 | py | Python | app/ldap/users.py | acm-uic/ACM-USERS | c80f803957817243446a23c017f1d2ba58a82aea | [
"MIT"
] | null | null | null | app/ldap/users.py | acm-uic/ACM-USERS | c80f803957817243446a23c017f1d2ba58a82aea | [
"MIT"
] | null | null | null | app/ldap/users.py | acm-uic/ACM-USERS | c80f803957817243446a23c017f1d2ba58a82aea | [
"MIT"
] | null | null | null | # ldap/users.py
# Written by Jeff Kaleshi
from ldap3 import Connection, SUBTREE, core
from app.users.models import User
from .util import get_permissions, get_paid_status, generate_user_data
class Users():
'''
Manages ldap users
'''
def __init__(self, config):
self._config = config
d... | 24.945946 | 78 | 0.529794 | 183 | 1,846 | 5.191257 | 0.453552 | 0.052632 | 0.033684 | 0.029474 | 0.035789 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000864 | 0.373239 | 1,846 | 73 | 79 | 25.287671 | 0.820225 | 0.116468 | 0 | 0.071429 | 1 | 0 | 0.083221 | 0.036242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.095238 | 0.071429 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9d0b610d7ac7ca3f149c3ad17c1552eee6804951 | 354 | py | Python | scripts/create-admin-user.py | franjial/ghostm2m | 2e7898761237cb12f4fddd55665b3a15fb84dddc | [
"MIT"
] | null | null | null | scripts/create-admin-user.py | franjial/ghostm2m | 2e7898761237cb12f4fddd55665b3a15fb84dddc | [
"MIT"
] | null | null | null | scripts/create-admin-user.py | franjial/ghostm2m | 2e7898761237cb12f4fddd55665b3a15fb84dddc | [
"MIT"
] | null | null | null | from onem2m.db import DBConnection
from django.conf import settings
def run():
try:
users = DBConnection().db['users']
result = users.insert_one({'_id':settings.GHOSTM2M['admin-user']['username'],'pwd':settings.GHOSTM2M['admin-user']['pwd']})
except Exception as e:
print('no se crea usu... | 35.4 | 131 | 0.652542 | 46 | 354 | 4.978261 | 0.673913 | 0.139738 | 0.183406 | 0.218341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010453 | 0.189266 | 354 | 10 | 132 | 35.4 | 0.787456 | 0 | 0 | 0 | 0 | 0 | 0.185915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d128db39cc6c093ccf685aa4ef4232698c4f445 | 934 | py | Python | django/contrib/auth/apps.py | carlospalol/django | e261337eea46b472c92cf1c351b22d62a7045e11 | [
"PSF-2.0",
"BSD-3-Clause"
] | 1 | 2017-07-17T02:33:21.000Z | 2017-07-17T02:33:21.000Z | django/contrib/auth/apps.py | carlospalol/django | e261337eea46b472c92cf1c351b22d62a7045e11 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | django/contrib/auth/apps.py | carlospalol/django | e261337eea46b472c92cf1c351b22d62a7045e11 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
from django.core import checks
from django.db.models.signals import post_migrate
from django.utils.translation import ugettext_lazy as _
from .checks import check_models_permissions, check_user_model
from .management import create_permissions
class BaseAuthConfig(AppConfig):
"""... | 28.30303 | 76 | 0.723769 | 109 | 934 | 6.036697 | 0.46789 | 0.06079 | 0.066869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194861 | 934 | 32 | 77 | 29.1875 | 0.875 | 0.095289 | 0 | 0.105263 | 0 | 0 | 0.12285 | 0.060197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.315789 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9d1db51531775c031f612cb0bb3897303a7e8915 | 207 | py | Python | Course-Work/week_3/Maximum Advertisement Revenue (Maximum Dot Product).py | TSG405/Algorithmic-Toolbox-UC-San-Diego | ff9361dc69a3c3dd787f78956727a6ff38d7ff28 | [
"BSD-3-Clause"
] | 1 | 2021-06-18T06:47:19.000Z | 2021-06-18T06:47:19.000Z | Course-Work/week_3/Maximum Advertisement Revenue (Maximum Dot Product).py | TSG405/Algorithmic-Toolbox-UC-San-Diego | ff9361dc69a3c3dd787f78956727a6ff38d7ff28 | [
"BSD-3-Clause"
] | null | null | null | Course-Work/week_3/Maximum Advertisement Revenue (Maximum Dot Product).py | TSG405/Algorithmic-Toolbox-UC-San-Diego | ff9361dc69a3c3dd787f78956727a6ff38d7ff28 | [
"BSD-3-Clause"
] | 2 | 2021-06-18T15:57:50.000Z | 2021-06-19T09:33:02.000Z | >>
n=int(input())
l3=[]
l1 = list(map(int,input().split()))
l2 = list(map(int,input().split()))
l1.sort()
l2.sort()
for t in range(0,n): l3.append(l1[t]*l2[t])
print(sum(l3))
@ CODED BY TSG405, 2021
| 12.176471 | 43 | 0.584541 | 39 | 207 | 3.102564 | 0.564103 | 0.198347 | 0.165289 | 0.247934 | 0.330579 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096045 | 0.144928 | 207 | 16 | 44 | 12.9375 | 0.587571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d324367928bcc6535d2930c66180b1799610a9e | 670 | py | Python | simplecrypt__example/encrypt_and_save_to_random_uuid_guid_file.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | simplecrypt__example/encrypt_and_save_to_random_uuid_guid_file.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | simplecrypt__example/encrypt_and_save_to_random_uuid_guid_file.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
message = 'Hello World!'
password = 'secret'
print('message: "{}"'.format(message))
print('password: "{}"'.format(password))
print()
from simplecrypt import encrypt
encrypt_text = encrypt(password, message)
print('encrypt_text[{}]: "{}"'.format... | 22.333333 | 83 | 0.71194 | 90 | 670 | 5.066667 | 0.444444 | 0.241228 | 0.122807 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005017 | 0.107463 | 670 | 29 | 84 | 23.103448 | 0.757525 | 0.08209 | 0 | 0.111111 | 0 | 0 | 0.189542 | 0.034314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0.388889 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9d4856b40a6fb0fd870cad61a2a9509de960c4ac | 4,607 | py | Python | v1/expressions.py | sota/trials | 0986ac8b550b70c28378e0a894d1a0f6be26932a | [
"MIT"
] | null | null | null | v1/expressions.py | sota/trials | 0986ac8b550b70c28378e0a894d1a0f6be26932a | [
"MIT"
] | null | null | null | v1/expressions.py | sota/trials | 0986ac8b550b70c28378e0a894d1a0f6be26932a | [
"MIT"
] | null | null | null |
from collections import OrderedDict
class SastExp(object):
def __init__(self):
self.value = None
def __eq__(self, sastexp):
return self.value == sastexp.value
def default(self):
raise NotImplementedError
def isa(self, sastclass):
return isinstance(self, sastclass)
c... | 22.583333 | 50 | 0.557847 | 496 | 4,607 | 4.953629 | 0.169355 | 0.080586 | 0.053724 | 0.03256 | 0.240537 | 0.183964 | 0.183964 | 0.139601 | 0.102971 | 0.102971 | 0 | 0.004856 | 0.329499 | 4,607 | 203 | 51 | 22.694581 | 0.790547 | 0.004775 | 0 | 0.346154 | 0 | 0 | 0.02662 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 1 | 0.24359 | false | 0.012821 | 0.00641 | 0.108974 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
9d4bf404618470fe70bb37018a11f6900485dd5e | 1,132 | py | Python | src/data_manipulation/utils.py | Mohanned-Elkholy/Vector-Quantized-Variational-AutoEncoder-VQ-VAE- | 185ea9954802933be85cb866e13b19d1c90fbc1f | [
"MIT"
] | 1 | 2021-10-04T08:05:04.000Z | 2021-10-04T08:05:04.000Z | src/data_manipulation/utils.py | Mohanned-Elkholy/Vector-Quantized-Variational-AutoEncoder-VQ-VAE | 185ea9954802933be85cb866e13b19d1c90fbc1f | [
"MIT"
] | null | null | null | src/data_manipulation/utils.py | Mohanned-Elkholy/Vector-Quantized-Variational-AutoEncoder-VQ-VAE | 185ea9954802933be85cb866e13b19d1c90fbc1f | [
"MIT"
] | null | null | null | import numpy as np
from matplotlib import pyplot as plt
import tensorflow as tf
import keras
from google.colab.patches import cv2_imshow
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Layer, Activation, Dense, Flatten, Dropout, Lambda, Conv2D, MaxPooling2D, UpSampling2D, Conv2DTran... | 40.428571 | 164 | 0.756184 | 185 | 1,132 | 4.540541 | 0.383784 | 0.05 | 0.113095 | 0.028571 | 0.357143 | 0.357143 | 0.311905 | 0.285714 | 0.285714 | 0.285714 | 0 | 0.05058 | 0.161661 | 1,132 | 28 | 165 | 40.428571 | 0.834563 | 0.234099 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.75 | 0 | 0.85 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9d55e7d4564d6e118fabaa6cbbb13af676d4a55b | 5,789 | py | Python | modules/nameparser/config/__init__.py | PeterDaveHello/eden | 26174a9dde2f19cd3bc879694f373ad5f765b6ed | [
"MIT"
] | 1 | 2017-07-22T18:49:34.000Z | 2017-07-22T18:49:34.000Z | modules/nameparser/config/__init__.py | PeterDaveHello/eden | 26174a9dde2f19cd3bc879694f373ad5f765b6ed | [
"MIT"
] | null | null | null | modules/nameparser/config/__init__.py | PeterDaveHello/eden | 26174a9dde2f19cd3bc879694f373ad5f765b6ed | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The :py:mod:`nameparser.config` module manages the configuration of the
nameparser.
A module-level instance of :py:class:`~nameparser.config.Constants` is created
and used by default for all HumanName instances. You can adjust the entire module's
configuration by importing this instance an... | 35.734568 | 91 | 0.661081 | 687 | 5,789 | 5.435226 | 0.273654 | 0.038565 | 0.042849 | 0.033744 | 0.188002 | 0.123192 | 0.114622 | 0.09534 | 0.051419 | 0.026781 | 0 | 0.000684 | 0.242011 | 5,789 | 161 | 92 | 35.956522 | 0.850273 | 0.494731 | 0 | 0.059701 | 0 | 0 | 0.013294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0 | 0.149254 | 0.134328 | 0.61194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
9d58e9c86e0c3a3a7de697d0dcecae3d9dcf6bbe | 1,064 | py | Python | dp/tools/performance_tests/config.py | khansiddiquekc/magma | 891718acbe3b9cb3973ae0376d9bcadb31503905 | [
"BSD-3-Clause"
] | 539 | 2019-02-25T05:03:10.000Z | 2020-07-24T11:13:15.000Z | dp/tools/performance_tests/config.py | khansiddiquekc/magma | 891718acbe3b9cb3973ae0376d9bcadb31503905 | [
"BSD-3-Clause"
] | 1,729 | 2019-02-25T16:02:33.000Z | 2020-07-24T23:40:07.000Z | dp/tools/performance_tests/config.py | khansiddiquekc/magma | 891718acbe3b9cb3973ae0376d9bcadb31503905 | [
"BSD-3-Clause"
] | 210 | 2019-02-25T13:34:53.000Z | 2020-07-23T20:16:18.000Z | """
Copyright 2021 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | 35.466667 | 72 | 0.732143 | 158 | 1,064 | 4.810127 | 0.506329 | 0.106579 | 0.142105 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014623 | 0.164474 | 1,064 | 29 | 73 | 36.689655 | 0.84027 | 0.472744 | 0 | 0 | 0 | 0 | 0.260223 | 0.039033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
9d5deb970721b363bca81120f550c11bff44b7f5 | 4,812 | py | Python | rdr_service/alembic/versions/ce0d4837ba00_add_deleted_flag_for_genomic_metrics.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 39 | 2017-10-13T19:16:27.000Z | 2021-09-24T16:58:21.000Z | rdr_service/alembic/versions/ce0d4837ba00_add_deleted_flag_for_genomic_metrics.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 312 | 2017-09-08T15:42:13.000Z | 2022-03-23T18:21:40.000Z | rdr_service/alembic/versions/ce0d4837ba00_add_deleted_flag_for_genomic_metrics.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 19 | 2017-09-15T13:58:00.000Z | 2022-02-07T18:33:20.000Z | """add deleted flag for genomic metrics
Revision ID: ce0d4837ba00
Revises: a41c2f2266cb
Create Date: 2021-02-17 13:31:28.006077
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus
fro... | 52.879121 | 125 | 0.786575 | 622 | 4,812 | 5.712219 | 0.160772 | 0.117084 | 0.135097 | 0.225162 | 0.745567 | 0.733746 | 0.683085 | 0.672671 | 0.649873 | 0.582043 | 0 | 0.013822 | 0.09788 | 4,812 | 90 | 126 | 53.466667 | 0.804653 | 0.098088 | 0 | 0.035088 | 0 | 0 | 0.349555 | 0.227422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.035088 | 0.192982 | 0 | 0.298246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d6029cfa2d7e59b453893273173a63c00ce1d99 | 260 | py | Python | setup_meta.py | shiyingzhanl/kivy-gardenh | b7ef14f06fccd20b12f444fc03db31d2df4e4f59 | [
"MIT"
] | 38 | 2019-11-11T08:32:44.000Z | 2022-01-28T09:44:44.000Z | setup_meta.py | shiyingzhanl/kivy-gardenh | b7ef14f06fccd20b12f444fc03db31d2df4e4f59 | [
"MIT"
] | 33 | 2019-09-10T12:37:46.000Z | 2022-02-14T17:21:31.000Z | setup_meta.py | shiyingzhanl/kivy-gardenh | b7ef14f06fccd20b12f444fc03db31d2df4e4f59 | [
"MIT"
] | 23 | 2020-06-05T09:42:03.000Z | 2022-03-10T01:57:55.000Z | """
Creates a distribution alias that just installs kivy_garden.xcamera.
"""
from setuptools import setup
from setup import setup_params
setup_params.update({
'install_requires': ['kivy_garden.xcamera'],
'name': 'xcamera',
})
setup(**setup_params)
| 17.333333 | 68 | 0.734615 | 32 | 260 | 5.78125 | 0.59375 | 0.178378 | 0.183784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142308 | 260 | 14 | 69 | 18.571429 | 0.829596 | 0.261538 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19c97c85e10a688c1c778002bcba1e33fdc29c1a | 3,290 | py | Python | spccore/internal/timeutils.py | Sage-Bionetworks/spccore | c63a88ef472b83be11594b820a072f6d79080a73 | [
"Apache-2.0"
] | 1 | 2019-06-13T20:47:59.000Z | 2019-06-13T20:47:59.000Z | spccore/internal/timeutils.py | Sage-Bionetworks/spccore | c63a88ef472b83be11594b820a072f6d79080a73 | [
"Apache-2.0"
] | 12 | 2019-06-13T23:32:59.000Z | 2019-08-27T01:24:57.000Z | spccore/internal/timeutils.py | Sage-Bionetworks/spccore | c63a88ef472b83be11594b820a072f6d79080a73 | [
"Apache-2.0"
] | 3 | 2019-06-13T20:50:01.000Z | 2019-08-29T19:34:31.000Z | import datetime
import platform
"""
Epoch time is in millisecond precision. In Python time.time() and datetime.datetime.utcfromtimestamp() operates on float
with millisecond precision. For example 123.456 represents 123456 milliseconds.
The methods above takes and returns float in millisecond precision even though th... | 40.617284 | 120 | 0.703343 | 481 | 3,290 | 4.696466 | 0.301455 | 0.071713 | 0.048694 | 0.033201 | 0.231961 | 0.15892 | 0.131474 | 0.08278 | 0.08278 | 0 | 0 | 0.090501 | 0.187234 | 3,290 | 80 | 121 | 41.125 | 0.754301 | 0.327964 | 0 | 0 | 0 | 0.045455 | 0.112687 | 0.103731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
19e4619188c24d56d2180ca7960320f7ef9972d7 | 374 | py | Python | Pacote de Conteudo/Mundo 02/Exercicios/ex035.py | Michelle-On/ExerciciosPython_2020-21 | 61615237a310c15923138575ebc65f6a15b301ab | [
"MIT"
] | null | null | null | Pacote de Conteudo/Mundo 02/Exercicios/ex035.py | Michelle-On/ExerciciosPython_2020-21 | 61615237a310c15923138575ebc65f6a15b301ab | [
"MIT"
] | null | null | null | Pacote de Conteudo/Mundo 02/Exercicios/ex035.py | Michelle-On/ExerciciosPython_2020-21 | 61615237a310c15923138575ebc65f6a15b301ab | [
"MIT"
] | null | null | null | print ('*'*62)#estetica
print('='*20,'Analisando Triagulos','='*20)
print('*'*62)#estetica
r1 = float(input('Primeiro segmento: '))
r2 = float(input('Segundo segmento: '))
r3 = float(input('Terceiro segmento: '))
if r1<r2+r3 and r2<r1+r3 and r3<r1+r2:
print('Os segmentos acima PODEM formar triangulos')
else:
pr... | 37.4 | 60 | 0.68984 | 54 | 374 | 4.777778 | 0.462963 | 0.116279 | 0.116279 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061162 | 0.125668 | 374 | 10 | 60 | 37.4 | 0.727829 | 0.042781 | 0 | 0.2 | 0 | 0 | 0.473389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
19ea6c9ab33a54fa6fc7dc593d2f90c8b8681a96 | 775 | py | Python | website/canvas/management/commands/monster_parts.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 61 | 2015-11-10T17:13:46.000Z | 2021-08-06T17:58:30.000Z | website/canvas/management/commands/monster_parts.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 13 | 2015-11-11T07:49:41.000Z | 2021-06-09T03:45:31.000Z | website/canvas/management/commands/monster_parts.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 18 | 2015-11-11T04:50:04.000Z | 2021-08-20T00:57:11.000Z |
from datetime import datetime
import os
from django.core.files.temp import gettempdir
from django.core.management.base import BaseCommand, CommandError
from canvas.models import Comment
from apps.monster.models import MONSTER_GROUP
from django.conf import settings
class Command(BaseCommand):
args = ''
help... | 29.807692 | 143 | 0.664516 | 99 | 775 | 5.121212 | 0.585859 | 0.059172 | 0.055227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008432 | 0.234839 | 775 | 25 | 144 | 31 | 0.846543 | 0 | 0 | 0 | 0 | 0 | 0.024548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.368421 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
19fcaa19b66077775bee4edd40489b5efdaa5b24 | 601 | py | Python | scieldas/services/travis/app.py | autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | 6 | 2018-06-13T06:54:12.000Z | 2021-01-15T13:59:33.000Z | scieldas/services/travis/app.py | Autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | 1 | 2020-06-21T17:56:32.000Z | 2020-06-23T07:48:57.000Z | scieldas/services/travis/app.py | autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | null | null | null | from flask import current_app
from scieldas.services import Service
from scieldas.shields import StateShield
from .api import Travis
api = Travis()
class BuildStatus(Service):
name = "Travis CI Build Status"
shield = StateShield(
{"pass": "Passing", "building": "Building", "fail": "Failing"}, prefix... | 27.318182 | 86 | 0.665557 | 71 | 601 | 5.56338 | 0.535211 | 0.111392 | 0.081013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202995 | 601 | 21 | 87 | 28.619048 | 0.824635 | 0 | 0 | 0 | 0 | 0 | 0.221298 | 0.046589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.25 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.