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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6af9ad025dfff4a6587ce62e836f6f4305e1f5c | 76 | py | Python | main.py | Jen-Monsayac/Game-of-Life | 25c18acd696cbd84e1a8a2ebb0e56d9dd86e8355 | [
"MIT"
] | null | null | null | main.py | Jen-Monsayac/Game-of-Life | 25c18acd696cbd84e1a8a2ebb0e56d9dd86e8355 | [
"MIT"
] | null | null | null | main.py | Jen-Monsayac/Game-of-Life | 25c18acd696cbd84e1a8a2ebb0e56d9dd86e8355 | [
"MIT"
] | null | null | null | from gameoflife import GameOfLife
game = GameOfLife (20,50)
game.run()
| 15.2 | 34 | 0.723684 | 10 | 76 | 5.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.184211 | 76 | 4 | 35 | 19 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
e6b620a15896932c11c8fa6c9e4935b9c4c6cfbf | 462 | py | Python | variables/vars.py | wuranxu/pity_basic | 43c69552569f204016dadc0ceccd9014724187dd | [
"Apache-2.0"
] | null | null | null | variables/vars.py | wuranxu/pity_basic | 43c69552569f204016dadc0ceccd9014724187dd | [
"Apache-2.0"
] | null | null | null | variables/vars.py | wuranxu/pity_basic | 43c69552569f204016dadc0ceccd9014724187dd | [
"Apache-2.0"
] | null | null | null | """
pity变量池
变量池的生命周期与用例保持一致
"""
__author__ = "xiaoke"
class VarPool(object):
def __init__(self, case_id):
"""
:param case_id: 用来标识变量所处的主生命周期case
"""
self.cache = dict()
self.case_id = case_id
def set(self, key, value):
self.cache[key] = value
def get(sel... | 17.769231 | 49 | 0.597403 | 56 | 462 | 4.660714 | 0.392857 | 0.091954 | 0.076628 | 0.137931 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279221 | 462 | 25 | 50 | 18.48 | 0.783784 | 0.125541 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.181818 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e6d37a6976ce852760972dcda2eb76bc6c48198e | 125 | py | Python | setup.py | mathildebadoual/energym | bcdba783ea50a2c3adb9e6c86ecdfb1949bd59a5 | [
"MIT"
] | 13 | 2018-11-20T23:21:24.000Z | 2021-06-18T08:43:15.000Z | setup.py | mathildebadoual/energym | bcdba783ea50a2c3adb9e6c86ecdfb1949bd59a5 | [
"MIT"
] | 1 | 2019-03-26T20:49:18.000Z | 2019-03-26T20:51:32.000Z | setup.py | mathildebadoual/energym | bcdba783ea50a2c3adb9e6c86ecdfb1949bd59a5 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='energym',
version='0.0.2',
install_requires=['gym']
)
| 15.625 | 32 | 0.56 | 14 | 125 | 4.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.304 | 125 | 7 | 33 | 17.857143 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6d87e7c46d8c4ff054f2674cd421600048677bd | 261 | py | Python | Anuvaad-tools/sentence_extractor/anuvaad_exceptions.py | project-anuvaad/corpus-tools | bd7614d923d452b323aef690a84beec0f419e05f | [
"MIT"
] | 1 | 2019-12-20T08:57:53.000Z | 2019-12-20T08:57:53.000Z | Anuvaad-tools/sentence_extractor/anuvaad_exceptions.py | project-anuvaad/corpus-tools | bd7614d923d452b323aef690a84beec0f419e05f | [
"MIT"
] | 6 | 2019-12-24T07:39:44.000Z | 2020-02-12T20:35:48.000Z | Anuvaad-tools/sentence_extractor/anuvaad_exceptions.py | project-anuvaad/corpus-tools | bd7614d923d452b323aef690a84beec0f419e05f | [
"MIT"
] | null | null | null | class Error(Exception):
"""Base class for other exceptions"""
pass
class WrongFilePath(Error):
"""Raised when the input value for path is incorrect"""
pass
class KafkaErrorSending(Error):
"""Raised when the input value is too large"""
pass | 20.076923 | 58 | 0.697318 | 34 | 261 | 5.352941 | 0.588235 | 0.098901 | 0.164835 | 0.197802 | 0.307692 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199234 | 261 | 13 | 59 | 20.076923 | 0.870813 | 0.467433 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e6ddc7e807df3e9ed66f05e57398519f7640921e | 1,939 | py | Python | User.py | lilian-2021/passwordLocker | d641adc3b3ffc3d720f5db6e0bef1ffa310a71f0 | [
"Unlicense"
] | null | null | null | User.py | lilian-2021/passwordLocker | d641adc3b3ffc3d720f5db6e0bef1ffa310a71f0 | [
"Unlicense"
] | null | null | null | User.py | lilian-2021/passwordLocker | d641adc3b3ffc3d720f5db6e0bef1ffa310a71f0 | [
"Unlicense"
] | null | null | null | class User:
"""
Class that generates new instances of User
"""
listOfUser=[]
def __init__(self,first_name,last_name,password,email):
'''
__init__ method that helps us define properties for our objects.
Args:
first_name: New user first name.... | 26.561644 | 83 | 0.532749 | 213 | 1,939 | 4.704225 | 0.305164 | 0.125749 | 0.055888 | 0.071856 | 0.147705 | 0.103792 | 0.103792 | 0.103792 | 0.103792 | 0.103792 | 0 | 0 | 0.405879 | 1,939 | 73 | 84 | 26.561644 | 0.869792 | 0.361527 | 0 | 0.28 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.08 | 0 | 0.04 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e6f650080e33ad5eb9dda37e4ad7c4b23e0bf6bd | 663 | py | Python | first/map-reduce.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | first/map-reduce.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | first/map-reduce.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | from functools import reduce
def f(x):
return x * x
r = map(f,[1,2,3,4,5,6,7,8,9])
# print(list(r))
def add(x,y):
return x + y
# print(reduce(add,[1,2,3,4,5,6,7,8,9,10]))
def fn(x,y):
return x*10 + y
def charToNum(s):
digits = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8':... | 20.090909 | 97 | 0.497738 | 133 | 663 | 2.481203 | 0.240602 | 0.084848 | 0.072727 | 0.081818 | 0.472727 | 0.472727 | 0.472727 | 0.472727 | 0.472727 | 0.418182 | 0 | 0.150198 | 0.236802 | 663 | 33 | 98 | 20.090909 | 0.501976 | 0.084465 | 0 | 0.5 | 0 | 0 | 0.052893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0 | 0.05 | 0.2 | 0.75 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
fc1c5874bb7ccaf1271140457e3a6fffa4b2a987 | 1,391 | py | Python | eval/dataset.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | eval/dataset.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | eval/dataset.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | # Code with dataset loader (adapted from bodokaiser/piwise code)
# Sept 2018
# Eduardo Romera, Kailun Yang
#######################
import numpy as np
import os
from PIL import Image
from torch.utils.data import Dataset
EXTENSIONS = ['.jpg', '.png', '.JPG']
def load_image(file):
return Image.open(file)
def is_... | 26.245283 | 137 | 0.663551 | 192 | 1,391 | 4.65625 | 0.390625 | 0.040268 | 0.033557 | 0.03132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005425 | 0.204889 | 1,391 | 52 | 138 | 26.75 | 0.802893 | 0.09849 | 0 | 0 | 0 | 0 | 0.03102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.142857 | 0.178571 | 0.642857 | 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 | 1 | 0 | 0 | 3 |
fc1e16b777155706450f371bfbe5992a39aafe8f | 262 | bzl | Python | anchore/updater.docs.bzl | hxtk/rules_anchore | 604ab3d9509113b8d20a371725636ff0ddb3e1fd | [
"Apache-2.0"
] | 1 | 2022-01-10T20:26:06.000Z | 2022-01-10T20:26:06.000Z | anchore/updater.docs.bzl | hxtk/rules_anchore | 604ab3d9509113b8d20a371725636ff0ddb3e1fd | [
"Apache-2.0"
] | 6 | 2021-12-29T13:45:58.000Z | 2022-01-07T01:10:07.000Z | anchore/updater.docs.bzl | hxtk/rules_anchore | 604ab3d9509113b8d20a371725636ff0ddb3e1fd | [
"Apache-2.0"
] | null | null | null | """
Generated API documentation for Anchore rules.
Load these from `@com_github_hxtk_rules_anchore//anchore:updater.bzl`.
"""
load("//anchore:updater.bzl", _grype_updater = "grype_updater")
# Explicitly re-export the functions.
grype_updater = _grype_updater
| 23.818182 | 70 | 0.778626 | 34 | 262 | 5.705882 | 0.588235 | 0.247423 | 0.175258 | 0.247423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103053 | 262 | 10 | 71 | 26.2 | 0.825532 | 0.591603 | 0 | 0 | 1 | 0 | 0.343434 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
fc2489de115a479b8273230795f6fa2013a54b8f | 605 | py | Python | graphgallery/functional/graph_level/standardize.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | 300 | 2020-08-09T04:27:41.000Z | 2022-03-30T07:43:41.000Z | graphgallery/functional/graph_level/standardize.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | 5 | 2020-11-05T06:16:50.000Z | 2021-12-11T05:05:22.000Z | graphgallery/functional/graph_level/standardize.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | 51 | 2020-09-23T15:37:12.000Z | 2022-03-05T01:28:56.000Z | from ..base_transforms import GraphTransform
from ..transform import Transform
from ..network import largest_connected_components
from .subgraph import subgraph
__all__ = ['Standardize']
@Transform.register()
class Standardize(GraphTransform):
def __call__(self, graph):
# TODO: multiple graph
... | 37.8125 | 76 | 0.742149 | 69 | 605 | 6.15942 | 0.521739 | 0.049412 | 0.077647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17686 | 605 | 15 | 77 | 40.333333 | 0.853414 | 0.033058 | 0 | 0 | 0 | 0 | 0.075704 | 0 | 0 | 0 | 0 | 0.066667 | 0.083333 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc26de43a4c6e1caf0303d1c393ef699ffa0c86e | 126 | py | Python | scripts/invoke-prog.py | hangilc/myclinic-spring | 5d2befd7901439d8e8c0102e0c81cf356b5b38ba | [
"MIT"
] | null | null | null | scripts/invoke-prog.py | hangilc/myclinic-spring | 5d2befd7901439d8e8c0102e0c81cf356b5b38ba | [
"MIT"
] | 2 | 2020-03-04T22:17:34.000Z | 2020-03-21T05:58:49.000Z | scripts/invoke-prog.py | hangilc/myclinic-spring | 5d2befd7901439d8e8c0102e0c81cf356b5b38ba | [
"MIT"
] | null | null | null | import subprocess
import sys
proc = subprocess.run(sys.argv[1:], stdout=subprocess.PIPE, encoding='utf-8')
print(proc.stdout) | 25.2 | 77 | 0.769841 | 19 | 126 | 5.105263 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.079365 | 126 | 5 | 78 | 25.2 | 0.818966 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
fc38d24a85e3b651d583566448e00f80be1638c7 | 1,503 | py | Python | synapseclient/team.py | ScottSnapperLab/synapsePythonClient | bed0a1f988df484354b273bc8a4fc6d3782ffb7a | [
"Apache-2.0"
] | null | null | null | synapseclient/team.py | ScottSnapperLab/synapsePythonClient | bed0a1f988df484354b273bc8a4fc6d3782ffb7a | [
"Apache-2.0"
] | null | null | null | synapseclient/team.py | ScottSnapperLab/synapsePythonClient | bed0a1f988df484354b273bc8a4fc6d3782ffb7a | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .dict_object import DictObject
class UserProfile(DictObject):
def __init__(self, **kwargs):
super(UserProfile, self).__init__(kwargs)
class UserGroupH... | 27.833333 | 126 | 0.667332 | 179 | 1,503 | 5.307263 | 0.413408 | 0.063158 | 0.073684 | 0.071579 | 0.118947 | 0.067368 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225549 | 1,503 | 53 | 127 | 28.358491 | 0.816151 | 0.251497 | 0 | 0.1875 | 0 | 0 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.15625 | 0.1875 | 0.78125 | 0.03125 | 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 | 1 | 0 | 0 | 3 |
fc3e6ae0ed12d0b9c56a675b32d5f8ef17cbc2eb | 380 | py | Python | dls_ade/dls_changes_since_release_test.py | hir12111/dls_ade | 92449cc2a0fadc1af4c125d72cfc392df4763f2c | [
"Apache-2.0"
] | null | null | null | dls_ade/dls_changes_since_release_test.py | hir12111/dls_ade | 92449cc2a0fadc1af4c125d72cfc392df4763f2c | [
"Apache-2.0"
] | null | null | null | dls_ade/dls_changes_since_release_test.py | hir12111/dls_ade | 92449cc2a0fadc1af4c125d72cfc392df4763f2c | [
"Apache-2.0"
] | null | null | null | #!/bin/env dls-python
import unittest
from dls_ade import dls_changes_since_release
from mock import ANY, patch
class MakeParserTest(unittest.TestCase):
@patch('dls_ade.dls_changes_since_release.ArgParser.add_module_name_arg')
def test_module_name_set(self, parser_mock):
dls_changes_since_release.m... | 23.75 | 77 | 0.792105 | 55 | 380 | 5.054545 | 0.581818 | 0.107914 | 0.161871 | 0.23741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134211 | 380 | 15 | 78 | 25.333333 | 0.844985 | 0.052632 | 0 | 0 | 0 | 0 | 0.175487 | 0.175487 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 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 | 1 | 0 | 0 | 3 |
fc3fadcf447bc452f2ea621d0f556df88e8d6b60 | 1,476 | py | Python | meslas/covariance/old.py | CedricTravelletti/MESLAS | 362c7f13c5f3d7261e7603920c22429275a4958b | [
"MIT"
] | null | null | null | meslas/covariance/old.py | CedricTravelletti/MESLAS | 362c7f13c5f3d7261e7603920c22429275a4958b | [
"MIT"
] | null | null | null | meslas/covariance/old.py | CedricTravelletti/MESLAS | 362c7f13c5f3d7261e7603920c22429275a4958b | [
"MIT"
] | null | null | null | """ Saving ideas from the first reflections about implementation.
"""
def k(x1, x2, j1, j2):
""" Computes (cross)-covariance between a set of measures.
TODO: We only consider stationary, so maybe get rid of x1, x2 and just
consider h.
Parameters
----------
x1: Tensor
Locations of fi... | 23.428571 | 78 | 0.638889 | 195 | 1,476 | 4.8 | 0.466667 | 0.010684 | 0.047009 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019196 | 0.258808 | 1,476 | 62 | 79 | 23.806452 | 0.83638 | 0.652439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.454545 | false | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fc458f1c3e0622df124df0dcab0b9af4bc6803b9 | 95 | py | Python | server/edd/load/notify/__init__.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 13 | 2016-11-15T07:33:40.000Z | 2021-09-22T12:19:13.000Z | server/edd/load/notify/__init__.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 40 | 2017-04-04T15:20:14.000Z | 2022-03-31T04:34:37.000Z | server/edd/load/notify/__init__.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 10 | 2017-09-21T07:27:01.000Z | 2022-03-10T17:02:19.000Z | from .backend import Notification, WsBroker
__all__ = [
"Notification",
"WsBroker",
]
| 13.571429 | 43 | 0.673684 | 8 | 95 | 7.5 | 0.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 95 | 6 | 44 | 15.833333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
fc54bfaa308fcb9e844ef6cef3c214e42c6add2b | 115 | py | Python | 1/0/10953/10953.py | chr0m3/boj-codes | d71d0a22d0a3ae62c225f382442461275f56fe8f | [
"MIT"
] | 3 | 2017-07-08T16:29:06.000Z | 2020-07-20T00:17:45.000Z | 1/0/10953/10953.py | chr0m3/boj-codes | d71d0a22d0a3ae62c225f382442461275f56fe8f | [
"MIT"
] | null | null | null | 1/0/10953/10953.py | chr0m3/boj-codes | d71d0a22d0a3ae62c225f382442461275f56fe8f | [
"MIT"
] | 2 | 2017-11-20T14:06:06.000Z | 2020-07-20T00:17:47.000Z | case_count = int(input())
for i in range(0, case_count):
a, b = map(int, input().split(','))
print(a + b)
| 19.166667 | 39 | 0.565217 | 20 | 115 | 3.15 | 0.7 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.217391 | 115 | 5 | 40 | 23 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 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 | 3 |
fc54cdbe99c025b8ec1d5ee3e4d9d3c4459087e6 | 1,842 | py | Python | pysnmp/BEGEMOT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/BEGEMOT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/BEGEMOT-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 BEGEMOT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BEGEMOT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:20:03 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 96.947368 | 477 | 0.788274 | 186 | 1,842 | 7.795699 | 0.532258 | 0.111034 | 0.055862 | 0.114483 | 0.368276 | 0.231724 | 0.231724 | 0.231724 | 0.231724 | 0.231724 | 0 | 0.054674 | 0.076547 | 1,842 | 18 | 478 | 102.333333 | 0.797766 | 0.171553 | 0 | 0 | 0 | 0 | 0.329598 | 0.029005 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc6c9de910d25b7fb580729fa2ede65d455118ac | 2,627 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/clear_texture.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/clear_texture.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/clear_texture.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension ARB.clear_texture
This module customises the behaviour of the
OpenGL.raw.GL.ARB.clear_texture to provide a more
Python-friendly API
Overview (from the spec)
Texture objects are fundamental to the operation of OpenGL. They are
used as a source for texture sampling and destination for renderin... | 44.525424 | 73 | 0.803959 | 393 | 2,627 | 5.346056 | 0.424936 | 0.028558 | 0.035697 | 0.01999 | 0.099952 | 0.079962 | 0.067587 | 0.034269 | 0 | 0 | 0 | 0 | 0.157214 | 2,627 | 59 | 74 | 44.525424 | 0.948961 | 0.854206 | 0 | 0.133333 | 0 | 0 | 0.014363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.466667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc73020622f17e39dc36a7735dddd545b1117dc3 | 536 | py | Python | Stream/StreamStruct.py | cisp/PacketAnylast | 498ee5a15d7d9f25661168707a48792c78dc7a6a | [
"MIT"
] | 6 | 2018-12-24T03:09:02.000Z | 2021-10-16T12:40:54.000Z | Stream/StreamStruct.py | cisp/PacketAnylast | 498ee5a15d7d9f25661168707a48792c78dc7a6a | [
"MIT"
] | null | null | null | Stream/StreamStruct.py | cisp/PacketAnylast | 498ee5a15d7d9f25661168707a48792c78dc7a6a | [
"MIT"
] | 1 | 2021-03-18T03:31:07.000Z | 2021-03-18T03:31:07.000Z | # -*- coding:utf-8 -*-
# 定义TCP流解析的存储结构
class StreamStruct(object):
'''TCP流解析实例存储结构'''
def __init__(self):
'''结构初始化'''
self._stream = {}
self.size = 0
def addStream(self,streamhash,stream):
'''添加流实例'''
self._stream[streamhash] = stream
self.size += 1
de... | 20.615385 | 50 | 0.570896 | 54 | 536 | 5.5 | 0.5 | 0.16835 | 0.161616 | 0.13468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007772 | 0.279851 | 536 | 25 | 51 | 21.44 | 0.761658 | 0.123134 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.153846 | 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 | 1 | 1 | 0 | 0 | 3 |
fc804f5863867671eb1c0e35a2203dbd17c8fdf1 | 550 | py | Python | src/cbc_sdk/enterprise_edr/__init__.py | avanbrunt-cb/carbon-black-cloud-sdk-python | f737ceaf6c69c1efea128d8dfb219c738cc7fc33 | [
"MIT"
] | null | null | null | src/cbc_sdk/enterprise_edr/__init__.py | avanbrunt-cb/carbon-black-cloud-sdk-python | f737ceaf6c69c1efea128d8dfb219c738cc7fc33 | [
"MIT"
] | null | null | null | src/cbc_sdk/enterprise_edr/__init__.py | avanbrunt-cb/carbon-black-cloud-sdk-python | f737ceaf6c69c1efea128d8dfb219c738cc7fc33 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from cbc_sdk.enterprise_edr.base import (Process, Event, Tree, Query, AsyncProcessQuery,
TreeQuery)
from cbc_sdk.enterprise_edr.threat_intelligence import (Watchlist, Feed, Report,
Repor... | 45.833333 | 88 | 0.530909 | 45 | 550 | 6.2 | 0.644444 | 0.075269 | 0.107527 | 0.215054 | 0.247312 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.425455 | 550 | 11 | 89 | 50 | 0.879747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fc82af1c5ec5b9bc42f52ba2d4584cfb29d4d942 | 213 | py | Python | tests/test_ocr_recognise_component.py | cofiem/leaf-focus | fdab4f30b985ab2adc3a413390e028e9a9325bac | [
"MIT"
] | null | null | null | tests/test_ocr_recognise_component.py | cofiem/leaf-focus | fdab4f30b985ab2adc3a413390e028e9a9325bac | [
"MIT"
] | 2 | 2022-02-09T23:46:31.000Z | 2022-03-03T22:00:53.000Z | tests/test_ocr_recognise_component.py | cofiem/leaf-focus | fdab4f30b985ab2adc3a413390e028e9a9325bac | [
"MIT"
] | null | null | null | import logging
import pytest
from leaf_focus.ocr.recognise.component import Component
class TestOcrRecogniseComponent:
@pytest.mark.slow
def test_instance(self):
Component(logging.getLogger())
| 17.75 | 56 | 0.769953 | 24 | 213 | 6.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159624 | 213 | 11 | 57 | 19.363636 | 0.905028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc9bbdd654a64d2f10165f542778e2c9202ade79 | 21 | py | Python | musicalrobot/__init__.py | pozzocapstone/musical-robot1 | 556cb325851c6e268bee6c46d8a00e073b404ca6 | [
"MIT"
] | 1 | 2020-07-01T17:41:27.000Z | 2020-07-01T17:41:27.000Z | musicalrobot/__init__.py | pozzocapstone/musical-robot1 | 556cb325851c6e268bee6c46d8a00e073b404ca6 | [
"MIT"
] | null | null | null | musicalrobot/__init__.py | pozzocapstone/musical-robot1 | 556cb325851c6e268bee6c46d8a00e073b404ca6 | [
"MIT"
] | 4 | 2019-11-21T01:59:12.000Z | 2021-05-20T15:37:09.000Z | name = 'musicalrobot' | 21 | 21 | 0.761905 | 2 | 21 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 21 | 1 | 21 | 21 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
5d93399ca033074feaeaeaccd08f475ec23b9ca0 | 938 | py | Python | cirq/contrib/jobs/__init__.py | jlmayfield/Cirq | dc1294f54118a9a4f92546ca13780b91615dd675 | [
"Apache-2.0"
] | 16 | 2019-05-28T14:32:43.000Z | 2022-02-10T08:49:53.000Z | cirq/contrib/jobs/__init__.py | jlmayfield/Cirq | dc1294f54118a9a4f92546ca13780b91615dd675 | [
"Apache-2.0"
] | 3 | 2021-02-08T20:31:37.000Z | 2021-06-01T23:48:19.000Z | cirq/contrib/jobs/__init__.py | jlmayfield/Cirq | dc1294f54118a9a4f92546ca13780b91615dd675 | [
"Apache-2.0"
] | 8 | 2019-05-28T15:57:31.000Z | 2022-01-05T12:14:57.000Z | # Copyright 2018 The Cirq Developers
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.5 | 76 | 0.769723 | 139 | 938 | 5.18705 | 0.661871 | 0.083218 | 0.036061 | 0.044383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.168444 | 938 | 27 | 77 | 34.740741 | 0.914103 | 0.829424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5dada8446102c9df4bd212cb4fc66512a3a59d77 | 228 | py | Python | tinker_access_client/tinker_access_client/State.py | ToddFranks-TM/tinkerAccess | f875772f0cd452586d08d4c41c5390aed0f5aea6 | [
"MIT"
] | 15 | 2016-01-29T21:52:58.000Z | 2021-04-07T06:21:47.000Z | tinker_access_client/tinker_access_client/State.py | ToddFranks-TM/tinkerAccess | f875772f0cd452586d08d4c41c5390aed0f5aea6 | [
"MIT"
] | 26 | 2015-07-18T00:04:25.000Z | 2021-09-24T13:21:27.000Z | tinker_access_client/tinker_access_client/State.py | ToddFranks-TM/tinkerAccess | f875772f0cd452586d08d4c41c5390aed0f5aea6 | [
"MIT"
] | 16 | 2015-07-18T00:12:04.000Z | 2022-03-28T07:23:31.000Z |
class State(object):
INITIALIZED = 'initialized'
ESTOP = 'estop'
BYPASSED = 'bypassed'
IDLE = 'idle'
UNLOCKED = 'unlocked'
IN_USE = 'in_use'
IN_TRAINING = 'in_training'
TERMINATED = 'terminated'
| 20.727273 | 31 | 0.622807 | 23 | 228 | 6 | 0.521739 | 0.072464 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258772 | 228 | 10 | 32 | 22.8 | 0.816568 | 0 | 0 | 0 | 0 | 0 | 0.277533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5dae5ef5d3ae6d298dfae411e20fd53cb98bae00 | 1,046 | py | Python | api/accounts/serializers.py | gpiechnik2/senter | 6f64f5410fe02a5215ba148553dec45feaadcc09 | [
"CC0-1.0"
] | 2 | 2021-12-08T19:38:33.000Z | 2022-01-26T15:02:57.000Z | api/accounts/serializers.py | gpiechnik2/senter | 6f64f5410fe02a5215ba148553dec45feaadcc09 | [
"CC0-1.0"
] | null | null | null | api/accounts/serializers.py | gpiechnik2/senter | 6f64f5410fe02a5215ba148553dec45feaadcc09 | [
"CC0-1.0"
] | 1 | 2021-12-08T19:38:39.000Z | 2021-12-08T19:38:39.000Z | from djoser.serializers import UserCreateSerializer, UserSerializer
from rest_framework import serializers
from .models import *
class ChangeUserAgentSerializer(serializers.Serializer):
user_agent = serializers.CharField()
class UserGoogleJWTSerializer(serializers.Serializer):
id_token = serializers.CharField... | 34.866667 | 73 | 0.777247 | 97 | 1,046 | 8.257732 | 0.371134 | 0.224719 | 0.124844 | 0.082397 | 0.104869 | 0.104869 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135755 | 1,046 | 29 | 74 | 36.068966 | 0.886062 | 0 | 0 | 0 | 0 | 0 | 0.034417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0.136364 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5db5243436164cae3f0b0bdadcbf3bd38cd30044 | 398 | py | Python | Section 4 Code/4.3/locators.py | raihanannafi/beginner-selenium | 1e8f9aeee345b5308ea1159952880a4b244d61cc | [
"MIT"
] | 11 | 2018-09-18T08:04:18.000Z | 2022-02-04T16:36:07.000Z | Section 4 Code/4.3/locators.py | raihanannafi/beginner-selenium | 1e8f9aeee345b5308ea1159952880a4b244d61cc | [
"MIT"
] | null | null | null | Section 4 Code/4.3/locators.py | raihanannafi/beginner-selenium | 1e8f9aeee345b5308ea1159952880a4b244d61cc | [
"MIT"
] | 10 | 2018-09-16T05:51:31.000Z | 2020-05-07T00:53:23.000Z | from selenium.webdriver.common.by import By
class LoginPage(object):
username_field = (By.CSS_SELECTOR, '#username')
password_field = (By.CSS_SELECTOR, '#password')
submit_btn = (By.NAME, 'submit')
create_account_link = (By.LINK_TEXT, 'Create an account')
message = (By.CSS_SELECTOR, '#auth-message'... | 33.166667 | 61 | 0.708543 | 50 | 398 | 5.44 | 0.52 | 0.073529 | 0.191176 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150754 | 398 | 11 | 62 | 36.181818 | 0.804734 | 0 | 0 | 0 | 0 | 0 | 0.153266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5dfaedde987a524b2644b0cd9f449ad91afa6ff2 | 3,347 | py | Python | tensornetwork/backends/numpy/numpy_backend.py | Bonnevie/TensorNetwork | f86d8357b6365f31a0b8dc80967aff05cae5bae8 | [
"Apache-2.0"
] | 3 | 2019-11-06T21:59:35.000Z | 2019-11-07T07:19:39.000Z | tensornetwork/backends/numpy/numpy_backend.py | Thenerdstation/TensorNetwork | 38636ebae29d78af7727c8debb9571372fce9dc1 | [
"Apache-2.0"
] | null | null | null | tensornetwork/backends/numpy/numpy_backend.py | Thenerdstation/TensorNetwork | 38636ebae29d78af7727c8debb9571372fce9dc1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The TensorNetwork Authors
#
# 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 ... | 35.989247 | 77 | 0.677921 | 425 | 3,347 | 5.242353 | 0.374118 | 0.102334 | 0.059246 | 0.056553 | 0.094255 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007698 | 0.223782 | 3,347 | 92 | 78 | 36.380435 | 0.849885 | 0.194204 | 0 | 0.034483 | 0 | 0 | 0.043316 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.258621 | false | 0 | 0.137931 | 0.206897 | 0.655172 | 0.017241 | 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 | 1 | 0 | 0 | 3 |
f8d77389769386ce8557bfb8c8f81cd988b5fb49 | 1,507 | py | Python | src/robot/variables/isvar.py | azam-a/robotframework | 6670d66413c6a49e33c15e77c03835a113ee4400 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/robot/variables/isvar.py | azam-a/robotframework | 6670d66413c6a49e33c15e77c03835a113ee4400 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/robot/variables/isvar.py | azam-a/robotframework | 6670d66413c6a49e33c15e77c03835a113ee4400 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2008-2014 Nokia Solutions and Networks
#
# 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 l... | 31.395833 | 75 | 0.686131 | 201 | 1,507 | 5.094527 | 0.487562 | 0.070313 | 0.117188 | 0.085938 | 0.126953 | 0.078125 | 0.078125 | 0.078125 | 0 | 0 | 0 | 0.013548 | 0.216324 | 1,507 | 47 | 76 | 32.06383 | 0.853514 | 0.384207 | 0 | 0 | 0 | 0 | 0.042716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.136364 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f8e688c89d4d9295a37ce044ed8d9fb65d9a6aea | 84 | py | Python | mkninja/__init__.py | rexroni/mkninja | 1d3ea8f262e4efb802a0eea1eed84cbb569d2d39 | [
"Unlicense"
] | null | null | null | mkninja/__init__.py | rexroni/mkninja | 1d3ea8f262e4efb802a0eea1eed84cbb569d2d39 | [
"Unlicense"
] | null | null | null | mkninja/__init__.py | rexroni/mkninja | 1d3ea8f262e4efb802a0eea1eed84cbb569d2d39 | [
"Unlicense"
] | null | null | null | __version__ = "0.1.0"
from mkninja._core import add_target_object, _Project, Target
| 28 | 61 | 0.797619 | 13 | 84 | 4.538462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.107143 | 84 | 2 | 62 | 42 | 0.746667 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f8e725620bd182d074bdb4e06b90e902a3a2a024 | 158 | py | Python | .history/Code/ycx/day_13 svm_20210303174521.py | yangchongxuan/100-Days-Of-ML-Code | a2197066c07e9830859e20e057393ca2270af374 | [
"MIT"
] | null | null | null | .history/Code/ycx/day_13 svm_20210303174521.py | yangchongxuan/100-Days-Of-ML-Code | a2197066c07e9830859e20e057393ca2270af374 | [
"MIT"
] | null | null | null | .history/Code/ycx/day_13 svm_20210303174521.py | yangchongxuan/100-Days-Of-ML-Code | a2197066c07e9830859e20e057393ca2270af374 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
a = 10
a = 20
a = 30
dataset = pd.read_csv('./datasets/Social_Network_Ads.csv')
# X = | 17.555556 | 58 | 0.721519 | 29 | 158 | 3.827586 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.177215 | 158 | 9 | 59 | 17.555556 | 0.807692 | 0.018987 | 0 | 0 | 0 | 0 | 0.215686 | 0.215686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f8ef3a237825c2cc5a1d2068586ee25faeabf962 | 23,117 | py | Python | tests/test_ssm/test_ssm_boto3.py | alexsult/moto | ed861ecae1039a048a6350a4ff832ef094cdf2c2 | [
"Apache-2.0"
] | null | null | null | tests/test_ssm/test_ssm_boto3.py | alexsult/moto | ed861ecae1039a048a6350a4ff832ef094cdf2c2 | [
"Apache-2.0"
] | 5 | 2018-04-25T21:04:20.000Z | 2018-11-02T19:59:27.000Z | tests/test_ssm/test_ssm_boto3.py | alexsult/moto | ed861ecae1039a048a6350a4ff832ef094cdf2c2 | [
"Apache-2.0"
] | 1 | 2018-10-14T17:56:38.000Z | 2018-10-14T17:56:38.000Z | from __future__ import unicode_literals
import boto3
import botocore.exceptions
import sure # noqa
import datetime
import uuid
import json
from botocore.exceptions import ClientError
from nose.tools import assert_raises
from moto import mock_ssm, mock_cloudformation
@mock_ssm
def test_delete_parameter():
cli... | 29.373571 | 90 | 0.605615 | 2,495 | 23,117 | 5.495391 | 0.0998 | 0.093866 | 0.068923 | 0.093064 | 0.773102 | 0.721246 | 0.704836 | 0.6602 | 0.6187 | 0.602874 | 0 | 0.01676 | 0.233421 | 23,117 | 786 | 91 | 29.410941 | 0.756955 | 0.020894 | 0 | 0.63124 | 0 | 0 | 0.203395 | 0.00252 | 0 | 0 | 0 | 0 | 0.006441 | 1 | 0.032206 | false | 0 | 0.016103 | 0 | 0.048309 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
5d262d83bd3582717a794ffb53b9506f836d1ac3 | 982 | py | Python | basic_tutorials/dictionaries.py | LearnPythonAndMakeGames/BasicPythonTutorialSeries | be129702680aaf1186fb62add13f94002d4baa63 | [
"Apache-2.0"
] | 7 | 2015-04-16T14:30:47.000Z | 2021-08-18T15:37:12.000Z | basic_tutorials/dictionaries.py | LearnPythonAndMakeGames/BasicPythonTutorialSeries | be129702680aaf1186fb62add13f94002d4baa63 | [
"Apache-2.0"
] | null | null | null | basic_tutorials/dictionaries.py | LearnPythonAndMakeGames/BasicPythonTutorialSeries | be129702680aaf1186fb62add13f94002d4baa63 | [
"Apache-2.0"
] | 2 | 2015-04-21T09:57:21.000Z | 2020-01-07T08:41:41.000Z | items = [
('sword', 100),
('boots', 30),
('armor', 50),
('gloves', 20),
('shield', 45),
]
sword_value = items[0][1]
items = dict(items)
for item_name, item_value in items.items():
print "{} --> {} gold".format(item_name, item_value)
sword_value = items['sword']
print sword_value
del items['s... | 24.55 | 56 | 0.633401 | 140 | 982 | 4.221429 | 0.235714 | 0.182741 | 0.182741 | 0.258883 | 0.510998 | 0.510998 | 0.510998 | 0.411168 | 0.348562 | 0.216582 | 0 | 0.023573 | 0.179226 | 982 | 39 | 57 | 25.179487 | 0.709677 | 0 | 0 | 0.290323 | 0 | 0 | 0.139511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.290323 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d2992215e1315409f35c66ada0c42bbac6f3d26 | 768 | py | Python | app/config/Config.py | christmas-tree/power | 18bfe10cf5e4c705618615d0d6b88bb33f3a2166 | [
"Apache-2.0"
] | null | null | null | app/config/Config.py | christmas-tree/power | 18bfe10cf5e4c705618615d0d6b88bb33f3a2166 | [
"Apache-2.0"
] | null | null | null | app/config/Config.py | christmas-tree/power | 18bfe10cf5e4c705618615d0d6b88bb33f3a2166 | [
"Apache-2.0"
] | null | null | null | from six.moves import configparser
import six
if six.PY2:
ConfigParser = configparser.SafeConfigParser
else:
ConfigParser = configparser.ConfigParser
class Config:
def __init__(self):
self._config = ConfigParser()
self._config.read('app/config/default.ini')
self._config.read('con... | 24.774194 | 57 | 0.673177 | 95 | 768 | 5.210526 | 0.326316 | 0.161616 | 0.131313 | 0.161616 | 0.270707 | 0.270707 | 0 | 0 | 0 | 0 | 0 | 0.003263 | 0.201823 | 768 | 30 | 58 | 25.6 | 0.804241 | 0 | 0 | 0 | 0 | 0 | 0.132813 | 0.028646 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0.238095 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
5d2cf38987adcb8b75ccb0b0cc68213d955fee79 | 268 | py | Python | modules/NTFS/util.py | naaya17/carpe | fa2e3cfebe20f8839c985e5b9b78b538800172a1 | [
"Apache-2.0"
] | 56 | 2019-02-07T06:21:45.000Z | 2022-03-21T08:19:24.000Z | modules/NTFS/util.py | naaya17/carpe | fa2e3cfebe20f8839c985e5b9b78b538800172a1 | [
"Apache-2.0"
] | 5 | 2020-05-25T17:29:00.000Z | 2021-12-13T20:49:08.000Z | modules/NTFS/util.py | naaya17/carpe | fa2e3cfebe20f8839c985e5b9b78b538800172a1 | [
"Apache-2.0"
] | 31 | 2019-03-13T10:23:49.000Z | 2021-11-04T12:14:58.000Z | def format_timestamp(timestamp, time_zone):
if timestamp is None or timestamp == '' or timestamp == 0:
return ''
try:
return timestamp.astimezone(time_zone).isoformat()
except:
# TODO: 1970.01.02 timezone error 수정
return ''
| 29.777778 | 62 | 0.626866 | 32 | 268 | 5.15625 | 0.6875 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.272388 | 268 | 8 | 63 | 33.5 | 0.8 | 0.126866 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5d32a41c1ddcdbfd4adc3a4c7993a3c85cb4abfe | 2,160 | py | Python | Platforms/Web/Processing/Api/Discord/Configs/Whitelistedlinks/errors.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 2 | 2017-09-14T08:07:55.000Z | 2021-05-18T05:05:05.000Z | Platforms/Web/Processing/Api/Discord/Configs/Whitelistedlinks/errors.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 111 | 2018-04-15T14:32:14.000Z | 2021-03-28T21:06:29.000Z | Platforms/Web/Processing/Api/Discord/Configs/Whitelistedlinks/errors.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 1 | 2018-04-15T13:24:44.000Z | 2018-04-15T13:24:44.000Z | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from Platforms.Web.main_web import PhaazebotWeb
import json
from aiohttp.web import Response
from Utils.Classes.extendedrequest import ExtendedRequest
async def apiDiscordWhitelistedLinkExists(cls:"PhaazebotWeb", WebRequest:ExtendedRequest, **kwargs) -> Response:
"... | 26.341463 | 115 | 0.661111 | 270 | 2,160 | 5.196296 | 0.233333 | 0.038489 | 0.042766 | 0.034212 | 0.721311 | 0.711333 | 0.678546 | 0.678546 | 0.678546 | 0.605845 | 0 | 0.012903 | 0.138889 | 2,160 | 81 | 116 | 26.666667 | 0.741398 | 0.0125 | 0 | 0.511628 | 0 | 0 | 0.246222 | 0.037783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.116279 | 0 | 0.162791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d3fae06442537b58a1116105ab68f16680d99bc | 334 | py | Python | PhloxAR/tracking/__init__.py | jardinier/phlox | f312569ec983b5f27c75846b34debc04fe7bdf98 | [
"Apache-2.0"
] | 1 | 2016-05-22T00:12:14.000Z | 2016-05-22T00:12:14.000Z | PhloxAR/tracking/__init__.py | jardinier/phlox | f312569ec983b5f27c75846b34debc04fe7bdf98 | [
"Apache-2.0"
] | null | null | null | PhloxAR/tracking/__init__.py | jardinier/phlox | f312569ec983b5f27c75846b34debc04fe7bdf98 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from .track import *
from .camshift_tracker import *
from .lkt_tracker import *
from .mf_tracker import *
from .surf_tracker import *
__all__ = [
'Track', 'CAMShiftTrack', 'SURFTrack', 'LKTrack', 'MFTrack',
'camshift_tracker', 'lk_tracker', 'surf_tracker', 'mf_tracker',... | 25.692308 | 78 | 0.730539 | 39 | 334 | 5.820513 | 0.461538 | 0.176211 | 0.22467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143713 | 334 | 12 | 79 | 27.833333 | 0.793706 | 0 | 0 | 0 | 0 | 0 | 0.290419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5d4c81bc859b1a5bb45035f5264ab1564ae60e05 | 204 | py | Python | eggs/Beaker-1.4-py2.7.egg/beaker/crypto/pycrypto.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 19 | 2015-05-01T19:59:03.000Z | 2021-12-09T08:03:16.000Z | eggs/Beaker-1.4-py2.7.egg/beaker/crypto/pycrypto.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 1 | 2018-01-03T15:26:49.000Z | 2018-01-03T15:26:49.000Z | eggs/Beaker-1.4-py2.7.egg/beaker/crypto/pycrypto.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 30 | 2015-03-25T19:40:07.000Z | 2021-05-28T22:59:26.000Z | """
Encryption module that uses pycryptopp.
"""
from pycryptopp.cipher import aes
def aesEncrypt(data, key):
cipher = aes.AES(key)
return cipher.process(data)
def getKeyLength():
return 32
| 15.692308 | 39 | 0.705882 | 26 | 204 | 5.538462 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.186275 | 204 | 12 | 40 | 17 | 0.855422 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
5d609d7fdab0f5567cfca331e48586695d226f15 | 3,858 | py | Python | aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/ListNatIpCidrsRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/ListNatIpCidrsRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/ListNatIpCidrsRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.842105 | 86 | 0.762053 | 492 | 3,858 | 5.784553 | 0.25813 | 0.027407 | 0.063949 | 0.077653 | 0.177442 | 0.16409 | 0.16409 | 0.022488 | 0 | 0 | 0 | 0.006569 | 0.131934 | 3,858 | 114 | 87 | 33.842105 | 0.843237 | 0.195438 | 0 | 0 | 0 | 0 | 0.130536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0 | 0.030303 | 0.19697 | 0.651515 | 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 | 1 | 0 | 0 | 3 |
5d713399b1a9b8d28db831f9fcbc596f1082efe8 | 391 | py | Python | pyserver/testproject1/pages/views.py | kappakkaala/mypyscripts | 263a07f8406bf74a6bbd2e597b60a7d2e8b7935d | [
"MIT"
] | null | null | null | pyserver/testproject1/pages/views.py | kappakkaala/mypyscripts | 263a07f8406bf74a6bbd2e597b60a7d2e8b7935d | [
"MIT"
] | null | null | null | pyserver/testproject1/pages/views.py | kappakkaala/mypyscripts | 263a07f8406bf74a6bbd2e597b60a7d2e8b7935d | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home_view(request, *args, **kwargs):
# return HttpResponse("<h1>Welcome to Django Server!</h1>")
return render(request, "home.html", {})
def about_view(request, *args, **kwargs):
my_context = {"name" : "... | 35.545455 | 63 | 0.695652 | 52 | 391 | 5.153846 | 0.576923 | 0.074627 | 0.11194 | 0.156716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012085 | 0.153453 | 391 | 11 | 64 | 35.545455 | 0.797583 | 0.207161 | 0 | 0 | 0 | 0 | 0.097403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
53805b8bfeea2751715cb568059b3a1335549a43 | 169 | py | Python | Ogrenciler/Eren/soru2.py | ProEgitim/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | 1 | 2021-04-18T17:35:22.000Z | 2021-04-18T17:35:22.000Z | Ogrenciler/Eren/soru2.py | waroi/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | null | null | null | Ogrenciler/Eren/soru2.py | waroi/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | 2 | 2021-04-18T18:22:26.000Z | 2021-04-24T17:16:19.000Z | print("VÜCUT KİTLE ENDEKSİ HESAPLAMA ")
boy = float(input("Boy (m) : "))
kilo = int(input("Kilo (kg) : "))
endeks = kilo/(boy*boy)
print("VÜCUT KİTLE ENDEKSİ",endeks) | 28.166667 | 39 | 0.650888 | 30 | 169 | 3.8 | 0.5 | 0.175439 | 0.210526 | 0.22807 | 0.421053 | 0.421053 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0.147929 | 169 | 6 | 40 | 28.166667 | 0.763889 | 0 | 0 | 0 | 0 | 0 | 0.417647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
538169da8665221f425b18b9198a81ceefb9e73a | 109 | py | Python | snippets/debit-dispute-show.py | timgates42/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 12 | 2015-04-12T06:18:33.000Z | 2021-03-03T23:54:19.000Z | snippets/debit-dispute-show.py | takwas/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 1 | 2021-11-24T20:10:19.000Z | 2021-11-24T20:10:19.000Z | snippets/debit-dispute-show.py | takwas/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 14 | 2015-03-23T17:52:06.000Z | 2021-11-24T11:04:15.000Z | # debit_href is the stored href of the debit
debit = balanced.Debit.fetch(debit_href)
dispute = debit.dispute | 36.333333 | 44 | 0.798165 | 18 | 109 | 4.722222 | 0.5 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12844 | 109 | 3 | 45 | 36.333333 | 0.894737 | 0.385321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
5396a994df8e9170d58151d05742f768ac3dd0af | 7,392 | py | Python | api/handlers/recipes.py | syth0le/async_cookeat | 0cecdd44c064be6fe19c0d0ae8342d7baf5a9bb8 | [
"CC0-1.0"
] | null | null | null | api/handlers/recipes.py | syth0le/async_cookeat | 0cecdd44c064be6fe19c0d0ae8342d7baf5a9bb8 | [
"CC0-1.0"
] | null | null | null | api/handlers/recipes.py | syth0le/async_cookeat | 0cecdd44c064be6fe19c0d0ae8342d7baf5a9bb8 | [
"CC0-1.0"
] | null | null | null | from sqlalchemy import func
from sqlalchemy.orm import Session
from api.handlers.base import BaseRepository
from api.models.recipes import Recipe
# async def get_recipe(db: Session, identificator: str):
# if type(identificator) is int:
# return db.query(Recipe).filter_by(id=identificator).first()
# e... | 37.145729 | 113 | 0.650703 | 963 | 7,392 | 4.856698 | 0.107996 | 0.047894 | 0.075048 | 0.085311 | 0.791533 | 0.755613 | 0.732093 | 0.690827 | 0.677785 | 0.656404 | 0 | 0.009979 | 0.213745 | 7,392 | 198 | 114 | 37.333333 | 0.794735 | 0.413149 | 0 | 0.283951 | 0 | 0 | 0.112081 | 0.043889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.246914 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
53ae9e66dcc3cc10f3fe229e460ad0a56a389621 | 70 | py | Python | abc159_c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc159_c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc159_c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | L = int(input())
a = L / 3
b = L / 3
c = L - (a + b)
print(a * b * c)
| 11.666667 | 16 | 0.385714 | 17 | 70 | 1.588235 | 0.470588 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.357143 | 70 | 5 | 17 | 14 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 1 | 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 | 3 |
53baf55230ea1e8878e222a5bbe51a5fa4cce3bf | 210 | py | Python | dev_env/urls.py | andycsoto/django-db-logger | 6682fc38025f3fbeb8a0b984930a0cbc2a7f5368 | [
"MIT"
] | null | null | null | dev_env/urls.py | andycsoto/django-db-logger | 6682fc38025f3fbeb8a0b984930a0cbc2a7f5368 | [
"MIT"
] | null | null | null | dev_env/urls.py | andycsoto/django-db-logger | 6682fc38025f3fbeb8a0b984930a0cbc2a7f5368 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from django_db_logs.views import __gen_500_errors
urlpatterns = [
path('admin/', admin.site.urls),
path('__gen_500/', __gen_500_errors)
]
| 21 | 49 | 0.757143 | 31 | 210 | 4.709677 | 0.483871 | 0.205479 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.142857 | 210 | 9 | 50 | 23.333333 | 0.761111 | 0 | 0 | 0 | 0 | 0 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
53cb990a9e6924f3feb7ab403f56c8759f1c6501 | 287 | py | Python | ynab_sdk/utils/configurations/default.py | quinnhosler/ynab-sdk-python | 4ef8040bb44216212a84c8990329dcf63972e0fa | [
"Apache-2.0"
] | null | null | null | ynab_sdk/utils/configurations/default.py | quinnhosler/ynab-sdk-python | 4ef8040bb44216212a84c8990329dcf63972e0fa | [
"Apache-2.0"
] | null | null | null | ynab_sdk/utils/configurations/default.py | quinnhosler/ynab-sdk-python | 4ef8040bb44216212a84c8990329dcf63972e0fa | [
"Apache-2.0"
] | null | null | null | class DefaultConfig:
def __init__(self, api_key: str, base_path='/v1', host='https://api.youneedabudget.com'):
self.api_key = api_key
self.base_path = base_path
self.host = host
@property
def full_url(self):
return self.host + self.base_path
| 28.7 | 93 | 0.644599 | 40 | 287 | 4.325 | 0.475 | 0.184971 | 0.115607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.240418 | 287 | 9 | 94 | 31.888889 | 0.788991 | 0 | 0 | 0 | 0 | 0 | 0.114983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
53ef44dbebd503eaa5826ad5976ce6b079f01cae | 523 | py | Python | utils/__init__.py | halabikeren/vir_to_host | cfe0e37b60c9c36413c24e945f1674f339f95515 | [
"MIT"
] | null | null | null | utils/__init__.py | halabikeren/vir_to_host | cfe0e37b60c9c36413c24e945f1674f339f95515 | [
"MIT"
] | null | null | null | utils/__init__.py | halabikeren/vir_to_host | cfe0e37b60c9c36413c24e945f1674f339f95515 | [
"MIT"
] | null | null | null | from .data_collecting_utils import DataCleanupUtils
from .signal_handling_service import SignalHandlingService
from .parallelization_service import ParallelizationService
from .taxonomy_utils import TaxonomyCollectingUtils
from .sequence_utils import (
SequenceType,
SequenceCollectingUtils,
GenomeBiasCollec... | 37.357143 | 64 | 0.869981 | 51 | 523 | 8.686275 | 0.54902 | 0.173815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101338 | 523 | 13 | 65 | 40.230769 | 0.942553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.692308 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
53ff9c34340af10c59952d6e7fc90cac48555936 | 798 | py | Python | pypi_org/data/users.py | vyahello/pypi-flask-clone | a96f3aeab98ee36e9f6c7ddeb58fe55abd990aa3 | [
"MIT"
] | null | null | null | pypi_org/data/users.py | vyahello/pypi-flask-clone | a96f3aeab98ee36e9f6c7ddeb58fe55abd990aa3 | [
"MIT"
] | null | null | null | pypi_org/data/users.py | vyahello/pypi-flask-clone | a96f3aeab98ee36e9f6c7ddeb58fe55abd990aa3 | [
"MIT"
] | null | null | null | import datetime
import sqlalchemy
from pypi_org.data.modelbase import SqlAlchemyBase
class User(SqlAlchemyBase):
__tablename__ = 'users'
id = sqlalchemy.Column(
sqlalchemy.Integer, primary_key=True, autoincrement=True
)
name = sqlalchemy.Column(sqlalchemy.String, nullable=True)
email = sq... | 30.692308 | 70 | 0.721805 | 85 | 798 | 6.647059 | 0.435294 | 0.19823 | 0.322124 | 0.226549 | 0.4 | 0.4 | 0.244248 | 0.244248 | 0.244248 | 0.244248 | 0 | 0 | 0.189223 | 798 | 25 | 71 | 31.92 | 0.873261 | 0 | 0 | 0.090909 | 0 | 0 | 0.006266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.136364 | 0 | 0.545455 | 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 | 1 | 0 | 0 | 3 |
99055c23b301290f1e446191aaee4f0e24f3dc8f | 86 | py | Python | src/utils/constants.py | Japroz-Saini/dojo | 16292d6369d20cc4c33d613b21e9d18ad998152e | [
"MIT"
] | null | null | null | src/utils/constants.py | Japroz-Saini/dojo | 16292d6369d20cc4c33d613b21e9d18ad998152e | [
"MIT"
] | null | null | null | src/utils/constants.py | Japroz-Saini/dojo | 16292d6369d20cc4c33d613b21e9d18ad998152e | [
"MIT"
] | null | null | null | DIGITS = '0123456789'
LETTERS = string.ascii_letters
LETTERS_DIGITS = LETTERS + DIGITS | 28.666667 | 33 | 0.802326 | 10 | 86 | 6.7 | 0.5 | 0.38806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.116279 | 86 | 3 | 33 | 28.666667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
54df89c0544541c81d52901cea50b9ec4a925eb6 | 1,643 | py | Python | official/nlp/modeling/layers/util.py | hjkim-haga/TF-OD-API | 22ac477ff4dfb93fe7a32c94b5f0b1e74330902b | [
"Apache-2.0"
] | 1 | 2021-05-22T12:50:50.000Z | 2021-05-22T12:50:50.000Z | official/nlp/modeling/layers/util.py | DemonDamon/mask-detection-based-on-tf2odapi | 192ae544169c1230c21141c033800aa1bd94e9b6 | [
"MIT"
] | null | null | null | official/nlp/modeling/layers/util.py | DemonDamon/mask-detection-based-on-tf2odapi | 192ae544169c1230c21141c033800aa1bd94e9b6 | [
"MIT"
] | null | null | null | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 34.957447 | 83 | 0.711503 | 221 | 1,643 | 5.158371 | 0.524887 | 0.052632 | 0.042105 | 0.02807 | 0.073684 | 0.073684 | 0.073684 | 0 | 0 | 0 | 0 | 0.02207 | 0.200243 | 1,643 | 46 | 84 | 35.717391 | 0.84551 | 0.528911 | 0 | 0 | 0 | 0 | 0.06447 | 0.050143 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
54ff49c8ea239305d15679529abf4af37bfb912a | 2,353 | py | Python | test/programytest/nlp/sentiment/test_scores.py | NeolithEra/program-y | 8c2396611f30c8095e98ff02988223a641c1a3be | [
"MIT"
] | null | null | null | test/programytest/nlp/sentiment/test_scores.py | NeolithEra/program-y | 8c2396611f30c8095e98ff02988223a641c1a3be | [
"MIT"
] | null | null | null | test/programytest/nlp/sentiment/test_scores.py | NeolithEra/program-y | 8c2396611f30c8095e98ff02988223a641c1a3be | [
"MIT"
] | null | null | null | from unittest import TestCase
from programy.nlp.sentiment.scores import SentimentScores
class SentimentScoresTests(TestCase):
def test_positivity(self):
scorer = SentimentScores()
self.assertEqual("EXTREMELY NEGATIVE", scorer.positivity(-1.0))
self.assertEqual("VERY NEGATIVE", scorer.p... | 39.216667 | 75 | 0.697408 | 258 | 2,353 | 6.352713 | 0.178295 | 0.274558 | 0.185479 | 0.119585 | 0.728493 | 0.679683 | 0.438072 | 0.068334 | 0.068334 | 0 | 0 | 0.034606 | 0.164896 | 2,353 | 60 | 75 | 39.216667 | 0.799491 | 0 | 0 | 0.054054 | 0 | 0 | 0.183942 | 0 | 0 | 0 | 0 | 0 | 0.810811 | 1 | 0.054054 | false | 0 | 0.054054 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
070b46e23d7e2903892c1df602c8c7923b8673c1 | 42 | py | Python | modis/discord_modis/modules/manager/_data.py | TechnologyhelpBundaberg/Moderation101 | ddbfd6c63c65f3065b64fe0da79150a6b415a44e | [
"Apache-2.0"
] | null | null | null | modis/discord_modis/modules/manager/_data.py | TechnologyhelpBundaberg/Moderation101 | ddbfd6c63c65f3065b64fe0da79150a6b415a44e | [
"Apache-2.0"
] | null | null | null | modis/discord_modis/modules/manager/_data.py | TechnologyhelpBundaberg/Moderation101 | ddbfd6c63c65f3065b64fe0da79150a6b415a44e | [
"Apache-2.0"
] | null | null | null | modulename = "Manager"
sd_structure = {}
| 10.5 | 22 | 0.690476 | 4 | 42 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 3 | 23 | 14 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
0725ef63dcd91df01b83f7d3a1f602e32cb9f4f0 | 60 | py | Python | backend/forum/messaging/__init__.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 7 | 2016-09-20T11:49:49.000Z | 2017-06-24T23:51:56.000Z | backend/forum/messaging/__init__.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 17 | 2019-12-22T10:41:48.000Z | 2021-11-17T10:58:50.000Z | backend/forum/messaging/__init__.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 1 | 2016-09-20T11:50:57.000Z | 2016-09-20T11:50:57.000Z | default_app_config = 'forum.messaging.apps.MessagingConfig'
| 30 | 59 | 0.85 | 7 | 60 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 60 | 1 | 60 | 60 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0726f1646eb0b7b95430cec705b57b00b0535f06 | 164 | py | Python | EvenOrOdd.py | GliderFromNorth/PythonPractice2021 | 23817b7b7e3ff6e91c5f57d721b6cf7cd96f3a64 | [
"MIT"
] | null | null | null | EvenOrOdd.py | GliderFromNorth/PythonPractice2021 | 23817b7b7e3ff6e91c5f57d721b6cf7cd96f3a64 | [
"MIT"
] | null | null | null | EvenOrOdd.py | GliderFromNorth/PythonPractice2021 | 23817b7b7e3ff6e91c5f57d721b6cf7cd96f3a64 | [
"MIT"
] | null | null | null | """
Code By : https://Linkedin.com/in/GliderFromNorth
"""
numba = int(input("Enter a Number :"))
print("Even Number") if (numba % 2 == 0) else print("Odd Number")
| 23.428571 | 65 | 0.646341 | 24 | 164 | 4.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.146341 | 164 | 6 | 66 | 27.333333 | 0.742857 | 0.29878 | 0 | 0 | 0 | 0 | 0.345794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
0732177cd7883c1b4313527e7fd8a6a9f0fb3f7f | 240 | py | Python | tests/__init__.py | robwdwd/ipwebtools | 3a76d6488dc1f5a50dd88ba0d09730d01b4ea3ac | [
"BSD-2-Clause"
] | null | null | null | tests/__init__.py | robwdwd/ipwebtools | 3a76d6488dc1f5a50dd88ba0d09730d01b4ea3ac | [
"BSD-2-Clause"
] | null | null | null | tests/__init__.py | robwdwd/ipwebtools | 3a76d6488dc1f5a50dd88ba0d09730d01b4ea3ac | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2021, Rob Woodward. All rights reserved.
#
# This file is part of IP Web Tools and is released under the
# "BSD 2-Clause License". Please see the LICENSE file that should
# have been included as part of this distribution.
#
| 34.285714 | 65 | 0.745833 | 40 | 240 | 4.475 | 0.825 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.1875 | 240 | 6 | 66 | 40 | 0.892308 | 0.945833 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
074a8e948f5224737d637c1e3ec542e4011e6f61 | 258 | py | Python | hacker_rank/30_days_challenge/day_12/person.py | alefeans/python_exercises | d7f8ea8dfd993f070d201202d12a526bb8105cc5 | [
"MIT"
] | 1 | 2021-06-11T18:29:26.000Z | 2021-06-11T18:29:26.000Z | hacker_rank/30_days_challenge/day_12/person.py | alefeans/learning_python | d7f8ea8dfd993f070d201202d12a526bb8105cc5 | [
"MIT"
] | null | null | null | hacker_rank/30_days_challenge/day_12/person.py | alefeans/learning_python | d7f8ea8dfd993f070d201202d12a526bb8105cc5 | [
"MIT"
] | null | null | null | class Person:
def __init__(self, firstName, lastName, idNumber):
self.firstName = firstName
self.lastName = lastName
self.idNumber = idNumber
def printPerson(self):
print("Name:", self.lastName + ",", self.firstName)
print("ID:", self.idNumber)
| 25.8 | 53 | 0.713178 | 30 | 258 | 6 | 0.4 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147287 | 258 | 9 | 54 | 28.666667 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0.375 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
076796a2b1127106c40e85aba9d54deffc4a4399 | 449 | py | Python | note29/pkg/D.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | note29/pkg/D.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | note29/pkg/D.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | #######################################################
#
# D.py
# Python implementation of the Class D
# Generated by Enterprise Architect
# Created on: 08-5��-2021 15:22:03
# Original author: 70748
#
#######################################################
from pkg.B import B
from pkg.C import C
from pkg.A impo... | 24.944444 | 55 | 0.476615 | 57 | 449 | 3.789474 | 0.649123 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004454 | 0.049451 | 0.18931 | 449 | 18 | 56 | 24.944444 | 0.538462 | 0.342984 | 0 | 0 | 1 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0.142857 | 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 | 1 | 0 | 0 | 3 |
4af9f59fd7ac27ddd2a1657827c21be76a17f5c3 | 530 | py | Python | PreprocessData/all_class_files/ComputerLanguage.py | wkid-neu/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 3 | 2021-11-06T12:29:05.000Z | 2022-03-22T12:48:55.000Z | PreprocessData/all_class_files/ComputerLanguage.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | null | null | null | PreprocessData/all_class_files/ComputerLanguage.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 1 | 2021-11-06T12:29:12.000Z | 2021-11-06T12:29:12.000Z | from PreprocessData.all_class_files.Intangible import Intangible
import global_data
class ComputerLanguage(Intangible):
def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None, potentialAction=... | 66.25 | 223 | 0.815094 | 53 | 530 | 7.943396 | 0.471698 | 0.07601 | 0.104513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101887 | 530 | 7 | 224 | 75.714286 | 0.884454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4aff615a51b1ee935b3f5779a12a4a8b9fdd700e | 19,019 | py | Python | tests/testsuite_basic/integration/test_push_updates.py | Hojang2/packit | 8396278d16ddf84d55bc7c31d9bf9d799d35c24b | [
"MIT"
] | null | null | null | tests/testsuite_basic/integration/test_push_updates.py | Hojang2/packit | 8396278d16ddf84d55bc7c31d9bf9d799d35c24b | [
"MIT"
] | null | null | null | tests/testsuite_basic/integration/test_push_updates.py | Hojang2/packit | 8396278d16ddf84d55bc7c31d9bf9d799d35c24b | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2018-2019 Red Hat, Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | 43.422374 | 100 | 0.330932 | 1,251 | 19,019 | 4.895284 | 0.232614 | 0.020575 | 0.015676 | 0.03919 | 0.705421 | 0.69889 | 0.69889 | 0.69889 | 0.69889 | 0.69889 | 0 | 0.067099 | 0.569799 | 19,019 | 437 | 101 | 43.521739 | 0.681374 | 0.059257 | 0 | 0.765586 | 0 | 0 | 0.239731 | 0.034471 | 0 | 0 | 0 | 0.002288 | 0 | 1 | 0.007481 | false | 0 | 0.024938 | 0.004988 | 0.037406 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 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 | 3 |
ab207942a8c86fb5d2a4f450e750a1a1497960df | 10,524 | py | Python | akshare/stock_feature/stock_ttm_lyr.py | lisong996/akshare | 1ee414cdecc2a492f2bb2f40d326a627c46dae2b | [
"MIT"
] | 4,202 | 2019-10-01T08:55:03.000Z | 2021-09-21T07:15:57.000Z | akshare/stock_feature/stock_ttm_lyr.py | lisong996/akshare | 1ee414cdecc2a492f2bb2f40d326a627c46dae2b | [
"MIT"
] | 290 | 2019-11-21T06:23:30.000Z | 2021-09-21T08:29:02.000Z | akshare/stock_feature/stock_ttm_lyr.py | lisong996/akshare | 1ee414cdecc2a492f2bb2f40d326a627c46dae2b | [
"MIT"
] | 894 | 2019-10-09T08:14:01.000Z | 2021-09-20T02:51:54.000Z | # -*- coding:utf-8 -*-
#!/usr/bin/env python
"""
Date: 2021/8/12 15:57
Desc: 全部A股-等权重市盈率、中位数市盈率
https://www.legulegu.com/stockdata/a-ttm-lyr
此网站需要 JS 逆向分析 token 代码,本项目分解 JS 加密部分,提取主要的加密参数后本地执行
"""
from datetime import datetime
import pandas as pd
import requests
from py_mini_racer import py_mini_racer
hash_code = """... | 30.504348 | 119 | 0.406975 | 1,839 | 10,524 | 2.306688 | 0.121805 | 0.031117 | 0.024045 | 0.016973 | 0.350542 | 0.29538 | 0.269448 | 0.251061 | 0.119991 | 0.11669 | 0 | 0.18321 | 0.372957 | 10,524 | 344 | 120 | 30.593023 | 0.459615 | 0.029076 | 0 | 0.115512 | 0 | 0.283828 | 0.932037 | 0.035848 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0033 | false | 0 | 0.013201 | 0 | 0.092409 | 0.0033 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab4f6b1da9642c066e092a479fe698b1bb0db0e7 | 6,649 | py | Python | test/test_netstat_metric.py | RiteshMaheshwari/naarad | 401ae683e38900e94898b15ab64d4410a556956c | [
"Apache-2.0"
] | null | null | null | test/test_netstat_metric.py | RiteshMaheshwari/naarad | 401ae683e38900e94898b15ab64d4410a556956c | [
"Apache-2.0"
] | null | null | null | test/test_netstat_metric.py | RiteshMaheshwari/naarad | 401ae683e38900e94898b15ab64d4410a556956c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
"""
© 2013 LinkedIn Corp. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 53.192 | 212 | 0.710483 | 1,020 | 6,649 | 4.55098 | 0.238235 | 0.075399 | 0.067212 | 0.077553 | 0.533175 | 0.512064 | 0.512064 | 0.512064 | 0.512064 | 0.494184 | 0 | 0.124246 | 0.176869 | 6,649 | 124 | 213 | 53.620968 | 0.723735 | 0.040156 | 0 | 0 | 0 | 0.303797 | 0.610935 | 0.189401 | 0 | 0 | 0 | 0 | 0.012658 | 0 | null | null | 0 | 0.101266 | null | null | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab5113225ad59f9b70b0dc8ad22cc964e6ad7b2f | 230 | py | Python | Ejercicios progra.usm.cl/Parte 1/3- Ciclos/suma-entre-numeros.py | csaldias/python-usm | c76572b643eb5d9bcf377c39c3a4bcb436a7b91b | [
"MIT"
] | 7 | 2015-04-27T17:27:22.000Z | 2021-06-01T06:31:02.000Z | Ejercicios progra.usm.cl/Parte 1/3- Ciclos/suma-entre-numeros.py | csaldias/python-usm | c76572b643eb5d9bcf377c39c3a4bcb436a7b91b | [
"MIT"
] | null | null | null | Ejercicios progra.usm.cl/Parte 1/3- Ciclos/suma-entre-numeros.py | csaldias/python-usm | c76572b643eb5d9bcf377c39c3a4bcb436a7b91b | [
"MIT"
] | 6 | 2018-05-22T19:01:28.000Z | 2021-06-21T22:48:26.000Z | #Pedimos los numeros
num1 = int(raw_input("Ingrese num: "))
num2 = int(raw_input("Ingrese num: "))
#Sumamos todos los numeros entre los dos especificados
suma = 0
for i in range(num1+1, num2):
suma += i
print "La suma es", suma | 23 | 54 | 0.704348 | 39 | 230 | 4.102564 | 0.641026 | 0.125 | 0.1375 | 0.225 | 0.2625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0.169565 | 230 | 10 | 55 | 23 | 0.806283 | 0.313043 | 0 | 0 | 0 | 0 | 0.229299 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab51f77ade0fec8f26e752eb32f1ea400e6d6411 | 918 | py | Python | python/experiments/baseline/tools/mention.py | boyuanzheng010/friends_semeval | 7891d072fd2598374e4bc1af6a9febed2577e118 | [
"Apache-2.0"
] | 39 | 2017-04-21T00:19:31.000Z | 2022-03-07T21:37:55.000Z | python/experiments/baseline/tools/mention.py | BarryZM/character-identification | 5c47347aeff7ff8a16460b6f38637bc47a2efa1b | [
"Apache-2.0"
] | 1 | 2020-07-05T11:22:31.000Z | 2021-02-25T12:04:56.000Z | python/experiments/baseline/tools/mention.py | BarryZM/character-identification | 5c47347aeff7ff8a16460b6f38637bc47a2efa1b | [
"Apache-2.0"
] | 8 | 2018-05-11T06:55:24.000Z | 2020-07-15T20:53:28.000Z | class SingEvalMentionNode(object):
@staticmethod
def root():
return SingEvalMentionNode(0, [], 'root', {})
def __init__(self, id, tokens, all_gold_refs, gold_ref, auto_ref=None, feat_map=None, plural=False):
self.id = id
self.tokens = tokens
self.all_gold_refs = [gref.lower... | 29.612903 | 104 | 0.625272 | 129 | 918 | 4.077519 | 0.302326 | 0.045627 | 0.08365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002928 | 0.255991 | 918 | 30 | 105 | 30.6 | 0.767204 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0 | 0.272727 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
db43fac82ed5bbbcf5a259abe503682d5c87503a | 490 | py | Python | products/admin.py | Rahimz/gineau | 7e6875b00c65a87cb26d40c85993dfa64153b6da | [
"MIT"
] | 1 | 2020-07-28T12:45:24.000Z | 2020-07-28T12:45:24.000Z | products/admin.py | Rahimz/gineau | 7e6875b00c65a87cb26d40c85993dfa64153b6da | [
"MIT"
] | null | null | null | products/admin.py | Rahimz/gineau | 7e6875b00c65a87cb26d40c85993dfa64153b6da | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Product, Image, Email, Slider
# Register your models here.
admin.site.register(Product)
admin.site.register(Image)
admin.site.register(Email)
admin.site.register(Slider)
# class ImageInline(admin.StackedInline):
# model = Image
# readonly_fields =('image1'... | 20.416667 | 49 | 0.697959 | 55 | 490 | 6.181818 | 0.545455 | 0.105882 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0075 | 0.183673 | 490 | 23 | 50 | 21.304348 | 0.8425 | 0.532653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
db4ff7b2e5338da6f08f772f9c99c2fd5a754a60 | 284 | py | Python | python/src/scipp/_utils/__init__.py | g5t/scipp | d819c930a5e438fd65e42e2e4e737743b8d39d37 | [
"BSD-3-Clause"
] | null | null | null | python/src/scipp/_utils/__init__.py | g5t/scipp | d819c930a5e438fd65e42e2e4e737743b8d39d37 | [
"BSD-3-Clause"
] | null | null | null | python/src/scipp/_utils/__init__.py | g5t/scipp | d819c930a5e438fd65e42e2e4e737743b8d39d37 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
# @file
# @author Neil Vaytet
# flake8: noqa
from .collapse_and_slices import *
from .colors import *
from .typing import *
from .to_string import *
from .comparison import *
| 21.846154 | 66 | 0.742958 | 39 | 284 | 5.333333 | 0.769231 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.144366 | 284 | 12 | 67 | 23.666667 | 0.831276 | 0.496479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
db54b3915aee97ebb5419dd4b5dfa1311405c79d | 737 | py | Python | src/types/mempool_item.py | jespino/chia-blockchain | 6518b2bf42d03b29e83d1701900dfb0ede52d5b0 | [
"Apache-2.0"
] | null | null | null | src/types/mempool_item.py | jespino/chia-blockchain | 6518b2bf42d03b29e83d1701900dfb0ede52d5b0 | [
"Apache-2.0"
] | 57 | 2021-05-04T06:27:04.000Z | 2022-03-22T17:05:47.000Z | src/types/mempool_item.py | jespino/chia-blockchain | 6518b2bf42d03b29e83d1701900dfb0ede52d5b0 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import List
from src.consensus.cost_calculator import CostResult
from src.types.blockchain_format.coin import Coin
from src.types.spend_bundle import SpendBundle
from src.types.blockchain_format.sized_bytes import bytes32
from src.util.ints import uint64
@dataclass(froze... | 26.321429 | 59 | 0.750339 | 103 | 737 | 5.165049 | 0.475728 | 0.065789 | 0.067669 | 0.082707 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016694 | 0.187246 | 737 | 27 | 60 | 27.296296 | 0.871452 | 0.042062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.095238 | false | 0 | 0.333333 | 0.095238 | 0.904762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
db88a3d8528c38f9e34c8af6652503bb4fc4b06e | 10,913 | py | Python | pymatgen/io/fleur/tests/test_fleurinput.py | JuDFTteam/pymatgen-io-fleur | ea9ae219c8ba0bb115e538b72d6cd0248168f771 | [
"MIT"
] | 2 | 2021-09-01T14:18:52.000Z | 2021-11-14T05:08:17.000Z | pymatgen/io/fleur/tests/test_fleurinput.py | JuDFTteam/pymatgen-io-fleur | ea9ae219c8ba0bb115e538b72d6cd0248168f771 | [
"MIT"
] | null | null | null | pymatgen/io/fleur/tests/test_fleurinput.py | JuDFTteam/pymatgen-io-fleur | ea9ae219c8ba0bb115e538b72d6cd0248168f771 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tests of the FleurInput class
"""
from pathlib import Path
from tempfile import TemporaryDirectory
from pymatgen.util.testing import PymatgenTest
from pymatgen.io.fleur import FleurInput
from pymatgen.core import Structure, Lattice
TEST_FILES_DIR = Path(__file__).absolute().parent / ".." /... | 35.780328 | 119 | 0.561074 | 1,332 | 10,913 | 4.507508 | 0.130631 | 0.013991 | 0.017488 | 0.018654 | 0.767821 | 0.738008 | 0.707861 | 0.666889 | 0.653231 | 0.641905 | 0 | 0.112346 | 0.299368 | 10,913 | 304 | 120 | 35.898026 | 0.672901 | 0.077431 | 0 | 0.642157 | 0 | 0 | 0.171327 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.053922 | false | 0 | 0.029412 | 0 | 0.102941 | 0.009804 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
db8d3d938f7dac2fd0e5ae1d7e2d4445fe50ba28 | 206 | py | Python | scroll_test/conftest.py | wwakabobik/python_test | 05de0aab170d5a22dd17d53eb0faded006c210e0 | [
"BSD-2-Clause"
] | null | null | null | scroll_test/conftest.py | wwakabobik/python_test | 05de0aab170d5a22dd17d53eb0faded006c210e0 | [
"BSD-2-Clause"
] | null | null | null | scroll_test/conftest.py | wwakabobik/python_test | 05de0aab170d5a22dd17d53eb0faded006c210e0 | [
"BSD-2-Clause"
] | null | null | null | from selenium import webdriver
import pytest
@pytest.fixture(autouse=True, scope='session')
def driver():
my_driver = webdriver.Chrome()
yield my_driver
my_driver.close()
my_driver.quit()
| 18.727273 | 46 | 0.723301 | 27 | 206 | 5.37037 | 0.62963 | 0.22069 | 0.193103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169903 | 206 | 10 | 47 | 20.6 | 0.847953 | 0 | 0 | 0 | 0 | 0 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 1 | 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 | 3 |
db8f30e8ac93934073fa8203fcae5bec3c79b436 | 86 | py | Python | src/fractal/evolve/_op/evolving.py | jedhsu/fractal | 97833ddc5063fae72352cf590738fef508c02f0c | [
"MIT"
] | null | null | null | src/fractal/evolve/_op/evolving.py | jedhsu/fractal | 97833ddc5063fae72352cf590738fef508c02f0c | [
"MIT"
] | null | null | null | src/fractal/evolve/_op/evolving.py | jedhsu/fractal | 97833ddc5063fae72352cf590738fef508c02f0c | [
"MIT"
] | null | null | null | """
Construct the evolving structure.
"""
class Evolve(Evolving,):
def evolving(
| 12.285714 | 33 | 0.686047 | 9 | 86 | 6.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 86 | 6 | 34 | 14.333333 | 0.830986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db97853cf4cdb82169cffcdc7302e6bfe76c5975 | 187 | py | Python | __init__.py | briannavfernandez/battlefish | b4e6430994a87e3eb571fe8d6aeaf244acfc63c2 | [
"MIT"
] | null | null | null | __init__.py | briannavfernandez/battlefish | b4e6430994a87e3eb571fe8d6aeaf244acfc63c2 | [
"MIT"
] | null | null | null | __init__.py | briannavfernandez/battlefish | b4e6430994a87e3eb571fe8d6aeaf244acfc63c2 | [
"MIT"
] | null | null | null | from .game_setup import *
from .fish import *
part2 = input("Ready for Chapter 2? Y or N?").upper()
if part2 == 'Y':
from .chapter2 import *
else:
print("\nThanks for playing!") | 23.375 | 53 | 0.647059 | 28 | 187 | 4.285714 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.203209 | 187 | 8 | 54 | 23.375 | 0.778523 | 0 | 0 | 0 | 0 | 0 | 0.265957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
db9d286310ba3a0163d29190c7ecda1cc2330690 | 146 | py | Python | coding/learn_packages/graphics/somemodule.py | yatao91/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | 3 | 2021-05-25T16:58:52.000Z | 2022-02-05T09:37:17.000Z | coding/learn_packages/graphics/somemodule.py | yataosu/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | null | null | null | coding/learn_packages/graphics/somemodule.py | yataosu/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def spam():
pass
def grok():
pass
blah = 42
# 仅导出spam,grok.为空则不会导入任何.出现没有的内容会引发attributeerror
__all__ = []
| 9.125 | 49 | 0.609589 | 16 | 146 | 5.3125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.232877 | 146 | 15 | 50 | 9.733333 | 0.732143 | 0.472603 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
db9ef610658e3cea491334ccb9204821d34da467 | 22 | py | Python | python.py | garybagm/test007 | c3bee3769915be560de4725385660a93d499b6c7 | [
"MIT"
] | null | null | null | python.py | garybagm/test007 | c3bee3769915be560de4725385660a93d499b6c7 | [
"MIT"
] | null | null | null | python.py | garybagm/test007 | c3bee3769915be560de4725385660a93d499b6c7 | [
"MIT"
] | null | null | null | name1 = 张三
name2 = 李四
| 7.333333 | 10 | 0.636364 | 4 | 22 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.272727 | 22 | 2 | 11 | 11 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
dbcd8cf718ff28bdd1000bcb577d8fdb47675795 | 71 | py | Python | control-flow/src/file-append.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | 1 | 2019-01-02T15:04:08.000Z | 2019-01-02T15:04:08.000Z | control-flow/src/file-append.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | null | null | null | control-flow/src/file-append.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | null | null | null | with open(r'/tmp/iris.csv', mode='a') as file:
file.write('hello')
| 23.666667 | 46 | 0.619718 | 13 | 71 | 3.384615 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 71 | 2 | 47 | 35.5 | 0.721311 | 0 | 0 | 0 | 0 | 0 | 0.267606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
916276df446141d06dfa3287cc8cf430032e1069 | 318 | py | Python | ATIVI02.py | kauaas/ATIVIDADE-DE-PYTHON-N3 | c596f866f9b825ceb7e330317a018e1740187df4 | [
"Apache-2.0"
] | null | null | null | ATIVI02.py | kauaas/ATIVIDADE-DE-PYTHON-N3 | c596f866f9b825ceb7e330317a018e1740187df4 | [
"Apache-2.0"
] | null | null | null | ATIVI02.py | kauaas/ATIVIDADE-DE-PYTHON-N3 | c596f866f9b825ceb7e330317a018e1740187df4 | [
"Apache-2.0"
] | null | null | null | print('faça o seu cadrasto')
usuario = str(input('Informe o seu nome de usuário: '))
senha = str(input('Informe uma senha: '))
while usuario==senha:
print('Tente Novamente!')
usuario = str(input('Informe o nome de usuário: '))
senha = str(input('Informe a senha: '))
else:
print('Cadrasto efetuado!')
| 31.8 | 55 | 0.663522 | 44 | 318 | 4.795455 | 0.454545 | 0.151659 | 0.28436 | 0.208531 | 0.530806 | 0.312796 | 0.312796 | 0 | 0 | 0 | 0 | 0 | 0.179245 | 318 | 9 | 56 | 35.333333 | 0.808429 | 0 | 0 | 0 | 0 | 0 | 0.462264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
917ccd1ee9462710c074ddd6103d10e392e85988 | 34 | py | Python | name.py | Dervish13/bsidesns-backend | ba8173f2b81210a561b203973eb48d5c124870b1 | [
"BSD-2-Clause"
] | null | null | null | name.py | Dervish13/bsidesns-backend | ba8173f2b81210a561b203973eb48d5c124870b1 | [
"BSD-2-Clause"
] | null | null | null | name.py | Dervish13/bsidesns-backend | ba8173f2b81210a561b203973eb48d5c124870b1 | [
"BSD-2-Clause"
] | 3 | 2020-01-12T13:34:35.000Z | 2021-11-01T17:50:21.000Z | app_name="bsidesns" # noqa: E225
| 17 | 33 | 0.705882 | 5 | 34 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0.147059 | 34 | 1 | 34 | 34 | 0.689655 | 0.294118 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
918b59870f782cf4d9abc5f89e168830d2d98170 | 3,210 | py | Python | tests/plugins/test_inline.py | loganbyers/frictionless-py | 9bec83d313e9a67ba4cb8970f382f47d33a96ac0 | [
"MIT"
] | null | null | null | tests/plugins/test_inline.py | loganbyers/frictionless-py | 9bec83d313e9a67ba4cb8970f382f47d33a96ac0 | [
"MIT"
] | null | null | null | tests/plugins/test_inline.py | loganbyers/frictionless-py | 9bec83d313e9a67ba4cb8970f382f47d33a96ac0 | [
"MIT"
] | null | null | null | from collections import OrderedDict
from frictionless import Table
from frictionless.plugins.inline import InlineDialect
# Read
def test_inline_parser():
source = [["id", "name"], ["1", "english"], ["2", "中国人"]]
with Table(source) as table:
assert table.header == ["id", "name"]
assert table.... | 31.470588 | 73 | 0.560125 | 383 | 3,210 | 4.561358 | 0.117493 | 0.12593 | 0.074413 | 0.108758 | 0.789926 | 0.725243 | 0.721809 | 0.701774 | 0.670292 | 0.585575 | 0 | 0.014587 | 0.231153 | 3,210 | 101 | 74 | 31.782178 | 0.693274 | 0.003115 | 0 | 0.534247 | 0 | 0 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0.273973 | 1 | 0.164384 | false | 0 | 0.041096 | 0 | 0.205479 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 3 |
918f8f7329fd48169c9ce281fe56b4e786a5c9a1 | 26,236 | py | Python | test/test_parallel_link_model.py | tim-fiola/network_traffic_modeler_py3 | d2bd7287ea86fb22ec41c2522164d5761fc225dd | [
"Apache-2.0"
] | 102 | 2018-09-16T00:14:05.000Z | 2022-03-24T09:07:37.000Z | test/test_parallel_link_model.py | tim-fiola/network_traffic_modeler_py3 | d2bd7287ea86fb22ec41c2522164d5761fc225dd | [
"Apache-2.0"
] | 17 | 2019-01-17T14:00:50.000Z | 2021-05-05T14:59:36.000Z | test/test_parallel_link_model.py | tim-fiola/network_traffic_modeler_py3 | d2bd7287ea86fb22ec41c2522164d5761fc225dd | [
"Apache-2.0"
] | 10 | 2019-08-14T20:57:34.000Z | 2022-03-24T09:07:42.000Z | import unittest
from pyNTM import Circuit
from pyNTM import Interface
from pyNTM import ModelException
from pyNTM import Node
from pyNTM import FlexModel
from pyNTM import Parallel_Link_Model
class TestModel(unittest.TestCase):
@classmethod
def setUpClass(self):
self.model = FlexModel.load_model_file... | 40.054962 | 107 | 0.666603 | 3,857 | 26,236 | 4.164376 | 0.062225 | 0.051799 | 0.079753 | 0.044453 | 0.793675 | 0.736708 | 0.708006 | 0.684722 | 0.652223 | 0.610821 | 0 | 0.013073 | 0.224424 | 26,236 | 654 | 108 | 40.116208 | 0.776293 | 0.043261 | 0 | 0.511202 | 0 | 0 | 0.15828 | 0.0785 | 0 | 0 | 0 | 0 | 0.226069 | 1 | 0.099796 | false | 0 | 0.014257 | 0 | 0.11609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
9193f2b2d565c1f97a71fb5b493d20977538c81f | 410 | py | Python | homework/week3/hw4.py | jamestiotio/DW2020 | a8c575f1afd34d66dce2798a11b2fa15d1214a43 | [
"MIT"
] | null | null | null | homework/week3/hw4.py | jamestiotio/DW2020 | a8c575f1afd34d66dce2798a11b2fa15d1214a43 | [
"MIT"
] | 1 | 2021-11-04T16:30:26.000Z | 2021-11-04T16:30:26.000Z | homework/week3/hw4.py | jamestiotio/DW2020 | a8c575f1afd34d66dce2798a11b2fa15d1214a43 | [
"MIT"
] | null | null | null | from math import exp
import numpy as np
def f(t, y):
return 3 + exp(-t) - (0.5 * y)
def approx_ode(h,t0,y0,tn):
# Inputs - h : step size
# t0 : initial t value (at step 0)
# y0 : initial y value (at step 0)
# tn : t value at step n
# Add your code below!
t, y = ... | 24.117647 | 47 | 0.5 | 75 | 410 | 2.72 | 0.48 | 0.029412 | 0.161765 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050584 | 0.373171 | 410 | 17 | 48 | 24.117647 | 0.743191 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 3 |
91a114cfe31c98497ad34bd0dd7dd2f696777838 | 119 | py | Python | khatynka/urls.py | Dsibe/abtco | 7a1782303aedd77a0ecc50347a5d141945e3dd2f | [
"MIT"
] | null | null | null | khatynka/urls.py | Dsibe/abtco | 7a1782303aedd77a0ecc50347a5d141945e3dd2f | [
"MIT"
] | 17 | 2019-11-19T12:23:57.000Z | 2021-11-05T20:56:09.000Z | khatynka/urls.py | Dsibe/abtco | 7a1782303aedd77a0ecc50347a5d141945e3dd2f | [
"MIT"
] | null | null | null | from django.urls import path, include
from khatynka.views import *
urlpatterns = [
path('', main, name='main'),
]
| 17 | 37 | 0.680672 | 15 | 119 | 5.4 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 119 | 6 | 38 | 19.833333 | 0.826531 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
91bb1680d1cd2b82e0992fb311304daad4e1463f | 154 | py | Python | code/database.py | UebeI2lauf/insertcreativeName | c4d15676bbad864bbb2145faaf494ca0eae87c28 | [
"MIT"
] | null | null | null | code/database.py | UebeI2lauf/insertcreativeName | c4d15676bbad864bbb2145faaf494ca0eae87c28 | [
"MIT"
] | null | null | null | code/database.py | UebeI2lauf/insertcreativeName | c4d15676bbad864bbb2145faaf494ca0eae87c28 | [
"MIT"
] | null | null | null | # Import MongoDB modules
from motor import motor_asyncio
# set up database
client = motor_asyncio.AsyncIOMotorClient("localhost", 27017)
db = client.EDU
| 22 | 61 | 0.798701 | 20 | 154 | 6.05 | 0.75 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.12987 | 154 | 6 | 62 | 25.666667 | 0.865672 | 0.246753 | 0 | 0 | 0 | 0 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
91c2fbcc62054b88f172575b071fa51170efbdab | 158 | py | Python | fast_dataset_cleaner/back/constants.py | PhotoRoom/fast-dataset-cleaner | a18648866a17801492608bb910fc98c7f7e7a372 | [
"MIT"
] | 4 | 2020-12-17T17:44:01.000Z | 2022-02-18T10:41:19.000Z | fast_dataset_cleaner/back/constants.py | PhotoRoom/fast-dataset-cleaner | a18648866a17801492608bb910fc98c7f7e7a372 | [
"MIT"
] | null | null | null | fast_dataset_cleaner/back/constants.py | PhotoRoom/fast-dataset-cleaner | a18648866a17801492608bb910fc98c7f7e7a372 | [
"MIT"
] | 1 | 2020-12-16T16:41:17.000Z | 2020-12-16T16:41:17.000Z | ANNOTATION_COLUMN = 'fast_dataset_cleaner_label'
ANNOTATOR_COLUMN = 'annotator'
ANNOTATED_SUFFIX = '_annotated'
PASSWORD_ERROR = 'Missing or wrong password'
| 26.333333 | 48 | 0.822785 | 18 | 158 | 6.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 158 | 5 | 49 | 31.6 | 0.859155 | 0 | 0 | 0 | 0 | 0 | 0.443038 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
91e52dfa3fe68419c15342ff65017671afd7fc33 | 1,813 | py | Python | woot/apps/catalog/admin.py | Makeystreet/makeystreet | 761331de52207227baf6f8d161ab6df1747f8ef3 | [
"Apache-2.0"
] | 1 | 2015-06-27T13:25:28.000Z | 2015-06-27T13:25:28.000Z | woot/apps/catalog/admin.py | Makeystreet/makeystreet | 761331de52207227baf6f8d161ab6df1747f8ef3 | [
"Apache-2.0"
] | 1 | 2015-07-02T20:18:53.000Z | 2015-07-02T20:18:53.000Z | woot/apps/catalog/admin.py | Makeystreet/makeystreet | 761331de52207227baf6f8d161ab6df1747f8ef3 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from models.article import *
from models.core import *
from models.top import *
from models.misc import *
from models.like import *
from models.review import *
from models.forum import *
from models.issues import *
import reversion
class MakeyAdmin(reversion.VersionAdmin):
pass
... | 26.661765 | 45 | 0.820739 | 229 | 1,813 | 6.497817 | 0.279476 | 0.278226 | 0.525538 | 0.02957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060673 | 1,813 | 67 | 46 | 27.059701 | 0.873752 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.020408 | 0.204082 | 0 | 0.22449 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37cde15eba9bace1ea8bafa4059efe0ffec6d1af | 53,038 | py | Python | pysnmp-with-texts/COM21-HCXETH-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/COM21-HCXETH-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/COM21-HCXETH-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 COM21-HCXETH-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/COM21-HCXETH-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:26:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | 151.105413 | 5,500 | 0.79592 | 5,961 | 53,038 | 7.081362 | 0.101661 | 0.060836 | 0.106463 | 0.010613 | 0.543021 | 0.427461 | 0.377097 | 0.354804 | 0.340614 | 0.297901 | 0 | 0.055592 | 0.088691 | 53,038 | 350 | 5,501 | 151.537143 | 0.817747 | 0.006147 | 0 | 0 | 0 | 0.129032 | 0.312734 | 0.012181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105572 | 0.02346 | 0 | 0.041056 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
37e0ccd1d3043672126aea8de3bed8f4d401ae3f | 581 | py | Python | pyscriptic/tests/project_test.py | naderm/pytranscriptic | bb9b825c9f9b6e8c223cf8ba184327ae3674edc7 | [
"BSD-2-Clause"
] | null | null | null | pyscriptic/tests/project_test.py | naderm/pytranscriptic | bb9b825c9f9b6e8c223cf8ba184327ae3674edc7 | [
"BSD-2-Clause"
] | null | null | null | pyscriptic/tests/project_test.py | naderm/pytranscriptic | bb9b825c9f9b6e8c223cf8ba184327ae3674edc7 | [
"BSD-2-Clause"
] | null | null | null |
from unittest import TestCase
class ProjectTests(TestCase):
def test_import_module(self):
from pyscriptic.project import ProjectProperties, create_project, get_project
def test_new_project_properties(self):
from pyscriptic.project import ProjectProperties
ProjectProperties(
... | 26.409091 | 85 | 0.643718 | 58 | 581 | 6.241379 | 0.448276 | 0.077348 | 0.099448 | 0.138122 | 0.265193 | 0.265193 | 0 | 0 | 0 | 0 | 0 | 0.011792 | 0.270224 | 581 | 21 | 86 | 27.666667 | 0.841981 | 0 | 0 | 0.125 | 0 | 0 | 0.081034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0 | 0.5625 | 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 | 1 | 0 | 0 | 3 |
37f71167e2a3ca57eee4b2fd63e635e01e134ba1 | 325 | py | Python | torch2trt/converters/relu.py | SnowMasaya/torch2trt | d526b2473805f9b9a704a201bef3ce5be25d284f | [
"MIT"
] | 2 | 2020-03-20T13:06:06.000Z | 2022-02-14T09:39:06.000Z | torch2trt/converters/relu.py | Chujingjun/torch2trt | 3ddd70d7cb7074ed204bd77205ab8f6515e06312 | [
"MIT"
] | null | null | null | torch2trt/converters/relu.py | Chujingjun/torch2trt | 3ddd70d7cb7074ed204bd77205ab8f6515e06312 | [
"MIT"
] | 1 | 2019-10-14T01:11:23.000Z | 2019-10-14T01:11:23.000Z | from torch2trt.torch2trt import *
from .ReLU import *
@tensorrt_converter('torch.relu')
@tensorrt_converter('torch.relu_')
@tensorrt_converter('torch.nn.functional.relu')
@tensorrt_converter('torch.nn.functional.relu_')
def convert_relu(ctx):
ctx.method_args = (torch.nn.ReLU(),) + ctx.method_args
convert_ReLU... | 29.545455 | 58 | 0.763077 | 43 | 325 | 5.534884 | 0.325581 | 0.285714 | 0.369748 | 0.327731 | 0.537815 | 0.537815 | 0.537815 | 0 | 0 | 0 | 0 | 0.006757 | 0.089231 | 325 | 11 | 59 | 29.545455 | 0.797297 | 0 | 0 | 0 | 0 | 0 | 0.214724 | 0.150307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
37f9d45248d4b02e26dbbd19990b646a06338bb3 | 727 | py | Python | lexicon/tests/providers/test_hostingde.py | tlusser-inv/lexicon | 700d9912fb4628414dae1f7b9783837eb8d796e0 | [
"MIT"
] | 1 | 2020-06-16T12:48:21.000Z | 2020-06-16T12:48:21.000Z | lexicon/tests/providers/test_hostingde.py | tlusser-inv/lexicon | 700d9912fb4628414dae1f7b9783837eb8d796e0 | [
"MIT"
] | null | null | null | lexicon/tests/providers/test_hostingde.py | tlusser-inv/lexicon | 700d9912fb4628414dae1f7b9783837eb8d796e0 | [
"MIT"
] | null | null | null | """Integration tests for HostingDE provider"""
from unittest import TestCase
from lexicon.tests.providers.integration_tests import IntegrationTests
# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance fro... | 31.608696 | 71 | 0.757909 | 82 | 727 | 6.560976 | 0.597561 | 0.118959 | 0.070632 | 0.104089 | 0.133829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166437 | 727 | 22 | 72 | 33.045455 | 0.887789 | 0.389271 | 0 | 0 | 0 | 0 | 0.113689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.272727 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
37fb9c2a110e93c7ed3bcfc6f1252f602175b348 | 5,389 | py | Python | clouddb/models/instance.py | adregner/python-clouddb | 6c77261a0e9cda221980c9240c7fffc93a78f7f7 | [
"X11"
] | 1 | 2018-05-21T23:09:36.000Z | 2018-05-21T23:09:36.000Z | clouddb/models/instance.py | adregner/python-clouddb | 6c77261a0e9cda221980c9240c7fffc93a78f7f7 | [
"X11"
] | null | null | null | clouddb/models/instance.py | adregner/python-clouddb | 6c77261a0e9cda221980c9240c7fffc93a78f7f7 | [
"X11"
] | null | null | null | # -*- encoding: utf-8 -*-
__author__ = "Andrew Regner <andrew@aregner.com>"
"""
clouddb instance module
This code is licensed under the MIT license. See COPYING for more details.
"""
import re
from clouddb.models.base import APIBaseModel
from clouddb.models import Flavor, Database, User
from clouddb import helpers... | 33.68125 | 101 | 0.601967 | 648 | 5,389 | 4.908951 | 0.299383 | 0.032694 | 0.028607 | 0.033952 | 0.269727 | 0.156555 | 0.10437 | 0.025778 | 0 | 0 | 0 | 0.002309 | 0.276675 | 5,389 | 160 | 102 | 33.68125 | 0.813751 | 0.219707 | 0 | 0.144737 | 0 | 0.013158 | 0.132546 | 0.005908 | 0 | 0 | 0 | 0.01875 | 0 | 1 | 0.223684 | false | 0.039474 | 0.078947 | 0.013158 | 0.565789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
53407cefd2189e87d3bda9eaf184c8a76722cdeb | 353 | py | Python | DQM/RPCMonitorDigi/python/RPCDcsInfo_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQM/RPCMonitorDigi/python/RPCDcsInfo_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQM/RPCMonitorDigi/python/RPCDcsInfo_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
rpcDcsInfo = cms.EDAnalyzer("RPCDcsInfo",
subSystemFolder = cms.untracked.string("RPC") ,
dcsInfoFolder = cms.untracked.string("DCSInfo") ,
ScalersRawToDigiLabel = cms.InputTag('scalersRawToDigi... | 44.125 | 84 | 0.538244 | 24 | 353 | 7.916667 | 0.708333 | 0.126316 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.373938 | 353 | 7 | 85 | 50.428571 | 0.859729 | 0 | 0 | 0 | 0 | 0 | 0.101983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 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 | 3 |
5346e348928203014f540a3883679513bce9a23c | 292 | py | Python | crescent/functions/base64.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | 1 | 2020-03-26T19:20:03.000Z | 2020-03-26T19:20:03.000Z | crescent/functions/base64.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | crescent/functions/base64.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | from .fn import Fn as AnyFn, FnSingleValue
from typing import Union
class Base64(FnSingleValue):
def __init__(self):
super(Base64, self).__init__(fn_name=Base64.__name__)
def Value(self, value: Union[str, AnyFn]):
return self._set_field(self.Value.__name__, value)
| 26.545455 | 61 | 0.719178 | 40 | 292 | 4.775 | 0.5 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.178082 | 292 | 10 | 62 | 29.2 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
535a19089d672823562c5bb60a28cd85adddbbfd | 114 | py | Python | muspinsim/version.py | stur86/muspinsim | 17c035475aa3fd4278f8c270c9a40cc214631b42 | [
"MIT"
] | 2 | 2021-02-23T12:34:42.000Z | 2021-04-28T09:33:33.000Z | muspinsim/version.py | stur86/muspinsim | 17c035475aa3fd4278f8c270c9a40cc214631b42 | [
"MIT"
] | 1 | 2021-02-02T14:27:43.000Z | 2021-02-08T17:32:55.000Z | muspinsim/version.py | stur86/muspinsim | 17c035475aa3fd4278f8c270c9a40cc214631b42 | [
"MIT"
] | 1 | 2021-04-26T14:03:50.000Z | 2021-04-26T14:03:50.000Z | """version.py
Version of the package. Kept separated to allow for import from setup.py"""
__version__ = "1.0.2"
| 19 | 75 | 0.719298 | 19 | 114 | 4.105263 | 0.842105 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.157895 | 114 | 5 | 76 | 22.8 | 0.78125 | 0.736842 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
535f01d35866d046e05a4124e8e71d410aefcf80 | 208 | py | Python | meiduo_mall/meiduo_mall/apps/oauth/urls.py | bapewing/MeiduoMall | 2b1634de2b7bc9eec80716770894824d668ec314 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/oauth/urls.py | bapewing/MeiduoMall | 2b1634de2b7bc9eec80716770894824d668ec314 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/oauth/urls.py | bapewing/MeiduoMall | 2b1634de2b7bc9eec80716770894824d668ec314 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from oauth import views
urlpatterns = [
url(r'^qq/authorization/$', view=views.OauthQQUrlView.as_view()),
url(r'^qq/user/$', view=views.OauthQQUserView.as_view()),
] | 26 | 69 | 0.711538 | 29 | 208 | 5.034483 | 0.586207 | 0.054795 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120192 | 208 | 8 | 70 | 26 | 0.797814 | 0 | 0 | 0 | 0 | 0 | 0.138756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
725c7a80f2aa82994811d732d5e461d5e54714c8 | 816 | py | Python | tests/test_operators.py | schroedk/hmirls | a31729bd0d337e05160c3d682239fc7b2df16491 | [
"MIT"
] | null | null | null | tests/test_operators.py | schroedk/hmirls | a31729bd0d337e05160c3d682239fc7b2df16491 | [
"MIT"
] | null | null | null | tests/test_operators.py | schroedk/hmirls | a31729bd0d337e05160c3d682239fc7b2df16491 | [
"MIT"
] | null | null | null | import pytest
import numpy as np
from hmirls.operators import SamplingMatrixOperator
@pytest.fixture
def matrix():
u = np.array([1.0, 10.0, -2.0, 0.1]).reshape((-1, 1))
v = np.array([1.0, 2.0, 3.0, 4.0]).reshape((-1, 1))
X = np.matmul(u, v.transpose())
return X
@pytest.fixture
def row_indices():
... | 21.473684 | 92 | 0.670343 | 136 | 816 | 3.926471 | 0.286765 | 0.121723 | 0.149813 | 0.033708 | 0.123596 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0.078171 | 0.169118 | 816 | 37 | 93 | 22.054054 | 0.70944 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.25 | false | 0 | 0.125 | 0.166667 | 0.583333 | 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 | 1 | 0 | 0 | 3 |
728bb6401b01285eb8583208703f731e910f7433 | 131 | py | Python | boa3_test/test_sc/tuple_test/TupleSlicingEndOmitted.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/tuple_test/TupleSlicingEndOmitted.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/tuple_test/TupleSlicingEndOmitted.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin import public
@public
def Main() -> tuple:
a = (0, 1, 2, 3, 4, 5)
return a[2:] # expect (2, 3, 4, 5)
| 16.375 | 40 | 0.534351 | 24 | 131 | 2.916667 | 0.708333 | 0.057143 | 0.085714 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 0.282443 | 131 | 7 | 41 | 18.714286 | 0.617021 | 0.145038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 3 |
7296a7faf01719697c9b2185b269255465c9caa2 | 647 | py | Python | savu/plugins/ring_removal/ring_removal_interpolation_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 39 | 2015-03-30T14:03:42.000Z | 2022-03-16T16:50:33.000Z | savu/plugins/ring_removal/ring_removal_interpolation_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 670 | 2015-02-11T11:08:09.000Z | 2022-03-21T09:27:57.000Z | savu/plugins/ring_removal/ring_removal_interpolation_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 54 | 2015-02-13T14:09:52.000Z | 2022-01-24T13:57:09.000Z | from savu.plugins.plugin_tools import PluginTools
class RingRemovalInterpolationTools(PluginTools):
"""Interpolation-based method working in the sinogram space to remove ring
artifacts.
"""
def define_parameters(self):
"""
size:
visibility: basic
dtype: [float, l... | 29.409091 | 79 | 0.598145 | 64 | 647 | 6.015625 | 0.78125 | 0.077922 | 0.103896 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009324 | 0.33694 | 647 | 21 | 80 | 30.809524 | 0.888112 | 0.587326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
72d550c2e887cf97532bbbbcb2a5e2abb3b5ca62 | 378 | py | Python | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/INGR/interlace_read.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/INGR/interlace_read.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/INGR/interlace_read.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | '''OpenGL extension INGR.interlace_read
This module customises the behaviour of the
OpenGL.raw.GL.INGR.interlace_read to provide a more
Python-friendly API
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.... | 31.5 | 56 | 0.812169 | 55 | 378 | 5.527273 | 0.6 | 0.131579 | 0.167763 | 0.098684 | 0.184211 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121693 | 378 | 12 | 57 | 31.5 | 0.915663 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
72f07b2825a3dd7da9831258ff2a7cf384aa1a75 | 440 | py | Python | src/pythiamill/utils/__init__.py | maxim-borisyak/pythia-mill | e33b137b03bdcea7f2a07a7721049983909f1551 | [
"MIT"
] | null | null | null | src/pythiamill/utils/__init__.py | maxim-borisyak/pythia-mill | e33b137b03bdcea7f2a07a7721049983909f1551 | [
"MIT"
] | null | null | null | src/pythiamill/utils/__init__.py | maxim-borisyak/pythia-mill | e33b137b03bdcea7f2a07a7721049983909f1551 | [
"MIT"
] | null | null | null | from .pythiautils import launch_pythia, configure_pythia, pythia_worker, bind_detector, check_pythia
from .stdetector import SphericityThrustDetectorWrapper as SphericityThrustDetector
from .tunemcdetector import TuneMCDetectorWrapper as TuneMCDetector
from .spherical_tracker import SphericalTrackerWrapper as Spherica... | 48.888889 | 100 | 0.886364 | 45 | 440 | 8.511111 | 0.577778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 440 | 8 | 101 | 55 | 0.9575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f4049482eb67ba04420de9ba26f638b101efec4d | 2,305 | py | Python | bit_light_switch.py | dwalley/SICXE | f3d019301e82712a1e94c6936b667bb5c93bbce0 | [
"MIT"
] | null | null | null | bit_light_switch.py | dwalley/SICXE | f3d019301e82712a1e94c6936b667bb5c93bbce0 | [
"MIT"
] | null | null | null | bit_light_switch.py | dwalley/SICXE | f3d019301e82712a1e94c6936b667bb5c93bbce0 | [
"MIT"
] | null | null | null | # class defining class consisting of bit light and toggle toggle switch pairs
import sys, pygame,os
from bit_lights import *
from switches import *
class bit_light_switch():
def __init__(self,name,location,screen):
self.name = name
self.screen = screen
# note location is the center of th... | 28.45679 | 86 | 0.649458 | 336 | 2,305 | 4.229167 | 0.244048 | 0.118227 | 0.109782 | 0.073892 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002338 | 0.257701 | 2,305 | 80 | 87 | 28.8125 | 0.828171 | 0.159219 | 0 | 0.142857 | 0 | 0 | 0.012953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.061224 | 0.102041 | 0.55102 | 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 | 1 | 0 | 0 | 3 |
f4230ae469a9f865910d289750b266e7f089cc21 | 542 | py | Python | backend/exceptions/__init__.py | chiro2001/chiblog | fee06b6e48bed39b5c7110a669ebc1fe9914d491 | [
"MIT"
] | null | null | null | backend/exceptions/__init__.py | chiro2001/chiblog | fee06b6e48bed39b5c7110a669ebc1fe9914d491 | [
"MIT"
] | null | null | null | backend/exceptions/__init__.py | chiro2001/chiblog | fee06b6e48bed39b5c7110a669ebc1fe9914d491 | [
"MIT"
] | null | null | null | from utils.logger import logger
class BlogBaseError(Exception):
def __init__(self, data: str = None):
self.data = data
logger.error(self.__str__())
def __str__(self):
return f"Error: {self.__class__.__name__}{(' : %s' % self.data) if self.data is not None else ''}"
class BlogError(B... | 17.483871 | 106 | 0.690037 | 60 | 542 | 5.9 | 0.466667 | 0.240113 | 0.248588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206642 | 542 | 30 | 107 | 18.066667 | 0.823256 | 0 | 0 | 0.294118 | 0 | 0.058824 | 0.162362 | 0.051661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.294118 | 0.058824 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f432f85a8fc6b02dba7399cae10d2b42d1a6a143 | 159 | py | Python | Python Script Tools/12.0 Text to voice gTTS.py | juan1305/0.11-incremento_descremento | 954ddb32180c3197e5b01cf95d20f5325ada8a29 | [
"MIT"
] | 1 | 2020-04-13T00:16:16.000Z | 2020-04-13T00:16:16.000Z | Python Script Tools/12.0 Text to voice gTTS.py | juan1305/0.11-incremento_descremento | 954ddb32180c3197e5b01cf95d20f5325ada8a29 | [
"MIT"
] | null | null | null | Python Script Tools/12.0 Text to voice gTTS.py | juan1305/0.11-incremento_descremento | 954ddb32180c3197e5b01cf95d20f5325ada8a29 | [
"MIT"
] | null | null | null | # instalar el modulo: pip install gTTS
from gtts import gTTS
# texto a voz
tts = gTTS('Este es un texto de prueba')
# Guardar el audio
tts.save('hello.mp3') | 19.875 | 40 | 0.716981 | 28 | 159 | 4.071429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.188679 | 159 | 8 | 41 | 19.875 | 0.875969 | 0.408805 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f44d8f31869a35a7078422af83952cace59af564 | 289 | py | Python | calyx/src/courses/utils.py | taxio/Saffron | 5fc2559f74d323ec31b02064b72158c3721db320 | [
"MIT"
] | null | null | null | calyx/src/courses/utils.py | taxio/Saffron | 5fc2559f74d323ec31b02064b72158c3721db320 | [
"MIT"
] | 324 | 2018-04-13T08:18:31.000Z | 2020-03-27T20:20:12.000Z | calyx/src/courses/utils.py | StudioAquatan/Saffron | 5fc2559f74d323ec31b02064b72158c3721db320 | [
"MIT"
] | null | null | null | from contextlib import contextmanager
@contextmanager
def disable_signal(signal, receiver, sender=None, weak=True, dispatch_uid=None):
signal.disconnect(receiver, sender, dispatch_uid=dispatch_uid)
yield
signal.connect(receiver, sender, weak=weak, dispatch_uid=dispatch_uid)
| 32.111111 | 80 | 0.799308 | 36 | 289 | 6.25 | 0.472222 | 0.244444 | 0.168889 | 0.195556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114187 | 289 | 8 | 81 | 36.125 | 0.878906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f466f37a1d85bc6d9902600ae96d93a5351c098d | 209 | py | Python | cpo/config.py | worc3131/CPO | de738f18188566327c407bd34f0683d827b5d5d5 | [
"MIT"
] | null | null | null | cpo/config.py | worc3131/CPO | de738f18188566327c407bd34f0683d827b5d5d5 | [
"MIT"
] | null | null | null | cpo/config.py | worc3131/CPO | de738f18188566327c407bd34f0683d827b5d5d5 | [
"MIT"
] | null | null | null |
log_size = 50
logging = 0
port = 0
# suppress = ''
poolKIND ='ADAPTIVE'
poolMAX = 1024
# poolREPORT = False
# poolG = 0
# poolM = 6
# poolK = 0
def get(key, default):
return globals().get(key, default)
| 13.0625 | 38 | 0.636364 | 29 | 209 | 4.551724 | 0.793103 | 0.090909 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067901 | 0.22488 | 209 | 15 | 39 | 13.933333 | 0.746914 | 0.296651 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
be448277a5043e98bc5f6194566aff8d9910eaa3 | 202 | py | Python | v0.1/ui/classes/membrane.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 3 | 2020-05-09T20:10:03.000Z | 2020-10-01T05:28:05.000Z | v0.1/ui/classes/membrane.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 1 | 2020-09-01T04:32:46.000Z | 2020-09-01T04:32:46.000Z | v0.1/ui/classes/membrane.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 1 | 2020-09-20T00:24:08.000Z | 2020-09-20T00:24:08.000Z | class membrane:
def __init__(self, dimensions, properties):
self.dims = dimensions
self.props = properties
def discretise(self, n):
self.n_evaluation_points = n
| 25.25 | 47 | 0.628713 | 22 | 202 | 5.5 | 0.590909 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292079 | 202 | 7 | 48 | 28.857143 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.