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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4c966c7378e13ffb001567911e6d78e93d9832b | 1,207 | py | Python | dependencies/PyMesh/python/pymesh/meshutils/tests/test_separate_mesh.py | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | 5 | 2018-06-04T19:52:02.000Z | 2022-01-22T09:04:00.000Z | dependencies/PyMesh/python/pymesh/meshutils/tests/test_separate_mesh.py | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | dependencies/PyMesh/python/pymesh/meshutils/tests/test_separate_mesh.py | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | from pymesh import separate_mesh
from pymesh import merge_meshes
from pymesh import form_mesh
from pymesh import generate_box_mesh
from pymesh.TestCase import TestCase
import numpy as np
class SeparateMeshTest(TestCase):
def test_simple(self):
mesh_1 = generate_box_mesh(np.zeros(3), np.ones(3));
m... | 28.738095 | 74 | 0.578293 | 157 | 1,207 | 4.286624 | 0.292994 | 0.017831 | 0.095097 | 0.017831 | 0.104012 | 0.017831 | 0.017831 | 0.017831 | 0 | 0 | 0 | 0.046948 | 0.294118 | 1,207 | 41 | 75 | 29.439024 | 0.742958 | 0 | 0 | 0.060606 | 1 | 0 | 0.008285 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 1 | 0.060606 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4cf60d4e8167da04a6ca900d615e923eb168b70 | 3,422 | py | Python | webStorm-APICloud/python_tools/Lib/ctypes/test/test_memfunctions.py | zzr925028429/androidyianyan | 8967fdba92473e8e65ee222515dfc54cdae5bb0b | [
"MIT"
] | 81 | 2017-03-13T08:24:01.000Z | 2021-04-02T09:48:38.000Z | webStorm-APICloud/python_tools/Lib/ctypes/test/test_memfunctions.py | zzr925028429/androidyianyan | 8967fdba92473e8e65ee222515dfc54cdae5bb0b | [
"MIT"
] | 6 | 2017-04-30T08:36:55.000Z | 2017-09-22T01:37:28.000Z | webStorm-APICloud/python_tools/Lib/ctypes/test/test_memfunctions.py | zzr925028429/androidyianyan | 8967fdba92473e8e65ee222515dfc54cdae5bb0b | [
"MIT"
] | 41 | 2017-03-18T14:11:58.000Z | 2021-04-14T05:06:09.000Z | import sys
import unittest
from ctypes import *
class MemFunctionsTest(unittest.TestCase):
## def test_overflow(self):
## # string_at and wstring_at must use the Python calling
## # convention (which acquires the GIL and checks the Python
## # error flag). Provoke an error and catch it... | 42.775 | 76 | 0.581531 | 408 | 3,422 | 4.747549 | 0.311275 | 0.225607 | 0.116159 | 0.125452 | 0.532266 | 0.416624 | 0.258647 | 0.203924 | 0.129066 | 0.073309 | 0 | 0.052524 | 0.287843 | 3,422 | 79 | 77 | 43.316456 | 0.742306 | 0.209527 | 0 | 0.109091 | 0 | 0 | 0.098266 | 0.009249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.018182 | 0.054545 | 0 | 0.163636 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4d84b4e797bf86784ed3e12efe054be7d6bfb04 | 1,767 | py | Python | tests/tensor/test_type_other.py | anirudhacharya/Theano-PyMC | 55f54243cf88397b032ebc7121d1090ee91aea7d | [
"BSD-3-Clause"
] | null | null | null | tests/tensor/test_type_other.py | anirudhacharya/Theano-PyMC | 55f54243cf88397b032ebc7121d1090ee91aea7d | [
"BSD-3-Clause"
] | null | null | null | tests/tensor/test_type_other.py | anirudhacharya/Theano-PyMC | 55f54243cf88397b032ebc7121d1090ee91aea7d | [
"BSD-3-Clause"
] | null | null | null | """ This file don't test everything. It only test one past crash error."""
import aesara
from aesara import as_symbolic
from aesara.graph.basic import Constant
from aesara.tensor.math import argmax
from aesara.tensor.type import iscalar, vector
from aesara.tensor.type_other import (
MakeSlice,
NoneConst,
N... | 24.541667 | 74 | 0.666101 | 247 | 1,767 | 4.684211 | 0.396761 | 0.043215 | 0.041487 | 0.034572 | 0.058773 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012364 | 0.221845 | 1,767 | 71 | 75 | 24.887324 | 0.829091 | 0.166384 | 0 | 0.042553 | 0 | 0 | 0.034223 | 0 | 0 | 0 | 0 | 0.014085 | 0.212766 | 1 | 0.085106 | false | 0 | 0.170213 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4decdba569b4405be7f05d4ea0c228792696c1b | 402 | py | Python | aplications/persona/migrations/0004_colaborador_habilidad.py | orlandor55/practica1dj | 1de9d7f602e701ccf3eb93e5dffeff2671185d49 | [
"MIT"
] | null | null | null | aplications/persona/migrations/0004_colaborador_habilidad.py | orlandor55/practica1dj | 1de9d7f602e701ccf3eb93e5dffeff2671185d49 | [
"MIT"
] | null | null | null | aplications/persona/migrations/0004_colaborador_habilidad.py | orlandor55/practica1dj | 1de9d7f602e701ccf3eb93e5dffeff2671185d49 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-04 12:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('persona', '0003_habilidades'),
]
operations = [
migrations.AddField(
model_name='colaborador',
name='habilidad',
... | 21.157895 | 67 | 0.606965 | 40 | 402 | 6.05 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065292 | 0.276119 | 402 | 18 | 68 | 22.333333 | 0.766323 | 0.11194 | 0 | 0 | 1 | 0 | 0.174648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4dfb1f5ba58e0da2d155f783ffc96b503220e2b | 675 | py | Python | ex1.py | qzmfranklin/screen | 389e8a52ff5c0d8714c33888919c26d5cbe20dd4 | [
"MIT"
] | null | null | null | ex1.py | qzmfranklin/screen | 389e8a52ff5c0d8714c33888919c26d5cbe20dd4 | [
"MIT"
] | null | null | null | ex1.py | qzmfranklin/screen | 389e8a52ff5c0d8714c33888919c26d5cbe20dd4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""An exmple program demonstrating the use ScreenArray.
Create an array of terminal windows, each of which is connected to an sol
session.
This script is *not* with generality, reusability, or even readability in mind.
It serves to test something, period.
"""
from screen_array import ScreenAr... | 32.142857 | 104 | 0.684444 | 102 | 675 | 4.372549 | 0.745098 | 0.049327 | 0.017937 | 0.058296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029466 | 0.195556 | 675 | 20 | 105 | 33.75 | 0.791897 | 0.571852 | 0 | 0 | 0 | 0 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
d4e207376436277c661863a5e265d7f3da668207 | 538 | py | Python | CPU-bound-task.py | vladgafarov/multi | 11959cdeae812dcaf9c8935fd889887c74121abc | [
"MIT"
] | null | null | null | CPU-bound-task.py | vladgafarov/multi | 11959cdeae812dcaf9c8935fd889887c74121abc | [
"MIT"
] | null | null | null | CPU-bound-task.py | vladgafarov/multi | 11959cdeae812dcaf9c8935fd889887c74121abc | [
"MIT"
] | null | null | null | from hashlib import md5
from random import choice
import concurrent.futures
def generate_coin(c):
while True:
s = "".join([choice("0123456789") for i in range(50)])
h = md5(s.encode('utf8')).hexdigest()
if h.endswith("00000"):
c = f"{s} {h}"
break
return c
def... | 23.391304 | 77 | 0.600372 | 72 | 538 | 4.333333 | 0.625 | 0.019231 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.263941 | 538 | 23 | 78 | 23.391304 | 0.719697 | 0 | 0 | 0 | 1 | 0 | 0.06308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4e6042f1f2dbc46237760c706a4379918b04592 | 1,845 | py | Python | resources/migrations/0001_initial.py | vdloo/homelabmanager | 052909d832f46ee2974b247d2e08a571cdc3af32 | [
"MIT"
] | null | null | null | resources/migrations/0001_initial.py | vdloo/homelabmanager | 052909d832f46ee2974b247d2e08a571cdc3af32 | [
"MIT"
] | null | null | null | resources/migrations/0001_initial.py | vdloo/homelabmanager | 052909d832f46ee2974b247d2e08a571cdc3af32 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-06-05 07:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hypervisor',
fields=[
... | 41 | 174 | 0.569648 | 171 | 1,845 | 6.005848 | 0.438596 | 0.10224 | 0.105161 | 0.140214 | 0.319377 | 0.214216 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0 | 0.02784 | 0.279675 | 1,845 | 44 | 175 | 41.931818 | 0.744921 | 0.02439 | 0 | 0.324324 | 1 | 0 | 0.136263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4e74821e5cc18fd5cb966c9405bdcdcab6a2b38 | 19,189 | py | Python | MoinMoin/script/migration/_conv160a_wiki.py | RealTimeWeb/wikisite | 66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5 | [
"Apache-2.0"
] | null | null | null | MoinMoin/script/migration/_conv160a_wiki.py | RealTimeWeb/wikisite | 66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5 | [
"Apache-2.0"
] | null | null | null | MoinMoin/script/migration/_conv160a_wiki.py | RealTimeWeb/wikisite | 66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5 | [
"Apache-2.0"
] | 1 | 2020-01-09T04:53:32.000Z | 2020-01-09T04:53:32.000Z | # -*- coding: iso-8859-1 -*-
"""
MoinMoin - convert content in 1.6.0alpha (rev 1844: 58ebb64243cc) wiki markup to 1.6.0 style
by using a modified 1.6.0alpha parser as translator.
PLEASE NOTE: most moin users will never need to execute this code,
because it is just for users of 1... | 37.332685 | 133 | 0.544374 | 2,281 | 19,189 | 4.427883 | 0.188075 | 0.036634 | 0.041584 | 0.007129 | 0.190198 | 0.159703 | 0.124851 | 0.114951 | 0.102673 | 0.096733 | 0 | 0.009942 | 0.344781 | 19,189 | 513 | 134 | 37.405458 | 0.793367 | 0.145239 | 0 | 0.227642 | 0 | 0.00542 | 0.054444 | 0.004245 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.00813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4e789bc7edde040d9314f05139c71710697cda9 | 482 | py | Python | app/main.py | inunekousapon/sheeeet | 40f15e68e0f10e4f6e4b7ca9a2df116391b5fd2e | [
"MIT"
] | null | null | null | app/main.py | inunekousapon/sheeeet | 40f15e68e0f10e4f6e4b7ca9a2df116391b5fd2e | [
"MIT"
] | 3 | 2020-11-05T12:44:32.000Z | 2020-11-18T14:57:23.000Z | app/main.py | inunekousapon/sheeeet | 40f15e68e0f10e4f6e4b7ca9a2df116391b5fd2e | [
"MIT"
] | null | null | null | from fastapi import FastAPI, Request
from fastapi.responses import RedirectResponse
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates
app = FastAPI(
docs_url=None,
redoc_url=None,
)
templates = Jinja2Templates(directory="templates")
app.mount("/page", StaticFiles(dire... | 25.368421 | 66 | 0.780083 | 55 | 482 | 6.763636 | 0.527273 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004662 | 0.109959 | 482 | 18 | 67 | 26.777778 | 0.862471 | 0 | 0 | 0 | 0 | 0 | 0.089212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4e7ccb68ccbae684284849e0d36b3d32df610a6 | 1,041 | py | Python | MultiObjectiveModel_YMPNet_Pavan/depth_predictor.py | eva5covergence/EVA5_AI_Projects | 7052373c52b6b9901cd0bc05a4758dd4b63f7480 | [
"MIT"
] | null | null | null | MultiObjectiveModel_YMPNet_Pavan/depth_predictor.py | eva5covergence/EVA5_AI_Projects | 7052373c52b6b9901cd0bc05a4758dd4b63f7480 | [
"MIT"
] | null | null | null | MultiObjectiveModel_YMPNet_Pavan/depth_predictor.py | eva5covergence/EVA5_AI_Projects | 7052373c52b6b9901cd0bc05a4758dd4b63f7480 | [
"MIT"
] | null | null | null | """Compute depth maps for images in the input folder.
"""
import os
import glob
import torch
import midas_utils
import cv2
from midas_processing import pre_processing
from midas_processing import post_processing
from utils.model_utils import load_model
cfg = 'cfg/yolov3-custom.cfg'
def write_depth_outs(input_path, ... | 24.785714 | 89 | 0.697406 | 143 | 1,041 | 4.86014 | 0.384615 | 0.057554 | 0.054676 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.193084 | 1,041 | 41 | 90 | 25.390244 | 0.819048 | 0.101825 | 0 | 0 | 0 | 0 | 0.06427 | 0.022876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.333333 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4e978db3757399126e18ff51f32cc18102c6c6d | 2,183 | py | Python | python/pex/transform_common.py | JiveHelix/pex | d3cbe0e437e803fb4af6fe153de0cf3f61a3a6d6 | [
"MIT"
] | null | null | null | python/pex/transform_common.py | JiveHelix/pex | d3cbe0e437e803fb4af6fe153de0cf3f61a3a6d6 | [
"MIT"
] | null | null | null | python/pex/transform_common.py | JiveHelix/pex | d3cbe0e437e803fb4af6fe153de0cf3f61a3a6d6 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import (
TypeVar,
Callable,
Type,
Any,
Optional,
List,
Set,
ClassVar,
Dict,
Generic,
Union,
DefaultDict)
import types
import inspect
from collections import defaultdict
import attr
T = TypeVar("T")
Prototype = TypeVar("Pr... | 24.255556 | 77 | 0.689876 | 222 | 2,183 | 6.581081 | 0.36036 | 0.057495 | 0.049281 | 0.028747 | 0.13963 | 0.13963 | 0.104038 | 0.053388 | 0 | 0 | 0 | 0 | 0.202474 | 2,183 | 89 | 78 | 24.52809 | 0.839173 | 0.054054 | 0 | 0.103448 | 0 | 0 | 0.031128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155172 | false | 0 | 0.103448 | 0.103448 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
d4ec0d4ff40d9573d353f3e221e1ee755c77e22f | 366 | py | Python | [Kaleido-subs]/Movies & OVAs/Fate kaleid liner Prisma Illya - Prisma Phantasm [BD]/ac_IllyaPPBD_NCOP1.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | 57 | 2019-01-31T17:32:46.000Z | 2022-03-23T05:46:51.000Z | [Kaleido-subs]/Movies & OVAs/Fate kaleid liner Prisma Illya - Prisma Phantasm [BD]/ac_IllyaPPBD_NCOP1.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | null | null | null | [Kaleido-subs]/Movies & OVAs/Fate kaleid liner Prisma Illya - Prisma Phantasm [BD]/ac_IllyaPPBD_NCOP1.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | 12 | 2019-04-30T06:16:13.000Z | 2022-03-14T16:15:07.000Z | #!/usr/bin/env python3
import ntpath
import os
import lvsfunc as lvf
from acsuite import eztrim
path = 'BDMV/[BDMV][191127] Fate/kaleid liner Prisma☆Illya Prisma☆Phantasm/PRISMAPHANTASM_SP/BDMV/STREAM/00005.m2ts'
src = lvf.src(path)
if __name__ == "__main__":
eztrim(src, (24, -24), path, f"{ntpath.basename(__fil... | 28.153846 | 116 | 0.726776 | 58 | 366 | 4.362069 | 0.706897 | 0.055336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059006 | 0.120219 | 366 | 12 | 117 | 30.5 | 0.720497 | 0.071038 | 0 | 0 | 0 | 0.125 | 0.461538 | 0.286982 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4eeade676b4a361844a4f0caca02a22a3b48da5 | 1,509 | py | Python | molecule/centos/tests/test_icinga_satclient.py | dverhelst/icinga2 | f8c0d1b9c2c5cd1d37829aee356d0b7de2d0e0a6 | [
"MIT"
] | 3 | 2020-02-24T18:42:58.000Z | 2020-12-28T13:43:52.000Z | molecule/centos/tests/test_icinga_satclient.py | dverhelst/icinga2 | f8c0d1b9c2c5cd1d37829aee356d0b7de2d0e0a6 | [
"MIT"
] | 9 | 2019-12-28T12:10:22.000Z | 2020-06-30T17:08:58.000Z | molecule/centos/tests/test_icinga_satclient.py | dverhelst/icinga2 | f8c0d1b9c2c5cd1d37829aee356d0b7de2d0e0a6 | [
"MIT"
] | 7 | 2020-01-27T10:39:19.000Z | 2021-04-07T07:07:51.000Z | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('icinga2satclient')
def test_sat_client_config(host):
""" basic configuration checks
"""
with host.sudo():
# Check if zone is config... | 38.692308 | 120 | 0.652087 | 203 | 1,509 | 4.778325 | 0.438424 | 0.051546 | 0.024742 | 0.037113 | 0.182474 | 0.182474 | 0.101031 | 0.072165 | 0 | 0 | 0 | 0.058773 | 0.222001 | 1,509 | 38 | 121 | 39.710526 | 0.767462 | 0.212061 | 0 | 0.090909 | 0 | 0 | 0.289249 | 0.039249 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ef655ac467cdecc2ee1b203548a69bc41b9712 | 1,996 | py | Python | haweb/apps/web/migrations/0007_insert_default_helpful_links.py | edilio/tobeawebproperty | 317205bf27ab76a430ea56a474e1739ee71f164e | [
"MIT"
] | null | null | null | haweb/apps/web/migrations/0007_insert_default_helpful_links.py | edilio/tobeawebproperty | 317205bf27ab76a430ea56a474e1739ee71f164e | [
"MIT"
] | 4 | 2015-01-02T21:39:58.000Z | 2015-06-23T02:18:57.000Z | haweb/apps/web/migrations/0007_insert_default_helpful_links.py | edilio/tobeawebproperty | 317205bf27ab76a430ea56a474e1739ee71f164e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def insert_links(apps, schema_editor):
# We can't import the Person model directly as it may be a newer
# version than this migration expects. We use the historical version.
Link = apps.get_model("web"... | 28.514286 | 73 | 0.704409 | 261 | 1,996 | 5.337165 | 0.547893 | 0.045226 | 0.028715 | 0.03733 | 0.101938 | 0.101938 | 0.101938 | 0 | 0 | 0 | 0 | 0.007417 | 0.189379 | 1,996 | 69 | 74 | 28.927536 | 0.853523 | 0.076152 | 0 | 0 | 0 | 0.020408 | 0.628261 | 0.014674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.040816 | 0 | 0.122449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f0f9fec512baac51d66a2e05115b3015dbc449 | 1,085 | py | Python | zink/templatetags/markdownify.py | jw/zink | e890e3bcff56a07a265506350d41af8bce633b05 | [
"MIT"
] | 2 | 2016-01-25T09:01:51.000Z | 2016-05-08T11:29:40.000Z | zink/templatetags/markdownify.py | jw/zink | e890e3bcff56a07a265506350d41af8bce633b05 | [
"MIT"
] | 51 | 2018-02-14T05:14:40.000Z | 2022-01-14T08:01:05.000Z | zink/templatetags/markdownify.py | jw/zink | e890e3bcff56a07a265506350d41af8bce633b05 | [
"MIT"
] | 1 | 2020-05-03T09:15:21.000Z | 2020-05-03T09:15:21.000Z | import logging
from django import template
import mistune
from pygments import highlight
from pygments.formatters import html
from pygments.lexers import get_lexer_by_name, guess_lexer
from pygments.util import ClassNotFound
logger = logging.getLogger(__name__)
register = template.Library()
class HighlightRenderer... | 31 | 84 | 0.671889 | 124 | 1,085 | 5.733871 | 0.427419 | 0.067511 | 0.042194 | 0.059072 | 0.253165 | 0.199719 | 0.199719 | 0.199719 | 0.199719 | 0.199719 | 0 | 0 | 0.229493 | 1,085 | 34 | 85 | 31.911765 | 0.850478 | 0 | 0 | 0.148148 | 0 | 0.037037 | 0.056221 | 0.053456 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.259259 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d4f5d11bd60f167377c07a1837e649ee87960a0d | 769 | py | Python | tools/metrics/histograms/print_histogram_names.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/metrics/histograms/print_histogram_names.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/metrics/histograms/print_histogram_names.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Prints all histogram names."""
from __future__ import print_function
import os
import sys
sys.path.append(os.path.join(os.path.di... | 24.03125 | 75 | 0.762029 | 108 | 769 | 5.166667 | 0.62037 | 0.091398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006079 | 0.144343 | 769 | 31 | 76 | 24.806452 | 0.841945 | 0.26528 | 0 | 0 | 0 | 0 | 0.066547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4f7014cf489c40ce01d11f878e86ab0089f6eb9 | 4,836 | py | Python | csv-dbs.py | adib/BankConverter2 | cf8497691036e02b5974d1d985dd4f2e25c245f5 | [
"BSD-3-Clause"
] | 1 | 2021-08-28T08:43:44.000Z | 2021-08-28T08:43:44.000Z | csv-dbs.py | adib/BankConverter2 | cf8497691036e02b5974d1d985dd4f2e25c245f5 | [
"BSD-3-Clause"
] | null | null | null | csv-dbs.py | adib/BankConverter2 | cf8497691036e02b5974d1d985dd4f2e25c245f5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
#
# Converts DBS Bank's savings account CSV output into a proper CSV file for input to personal finance applications.
#
# This runs on macOS' built-in Python 2.7
#
# Copyright (c) 2018, Sasmito Adibowo
# https://cutecoder.org
# All rights reserved.
# Redistribution and... | 37.78125 | 135 | 0.668114 | 658 | 4,836 | 4.744681 | 0.378419 | 0.040999 | 0.024664 | 0.024984 | 0.121717 | 0.065983 | 0.065983 | 0.065983 | 0.065983 | 0.065983 | 0 | 0.01239 | 0.248966 | 4,836 | 127 | 136 | 38.07874 | 0.847192 | 0.397849 | 0 | 0.1 | 0 | 0.014286 | 0.161447 | 0.007655 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f8549ba72fb256dcf1d508d8ae20cc82510650 | 78,555 | py | Python | tools/isolate/trace_inputs.py | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 1 | 2019-04-23T15:57:04.000Z | 2019-04-23T15:57:04.000Z | tools/isolate/trace_inputs.py | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | null | null | null | tools/isolate/trace_inputs.py | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Traces an executable and its child processes and extract the files accessed
by them.
The implementation uses OS-... | 33.758058 | 83 | 0.607893 | 10,392 | 78,555 | 4.489511 | 0.121824 | 0.01286 | 0.009645 | 0.012217 | 0.2858 | 0.229815 | 0.192327 | 0.164334 | 0.151045 | 0.135763 | 0 | 0.013825 | 0.263357 | 78,555 | 2,326 | 84 | 33.772571 | 0.792421 | 0.126039 | 0 | 0.293103 | 0 | 0.035809 | 0.216836 | 0.026178 | 0 | 0 | 0.00053 | 0.004299 | 0.053714 | 0 | null | null | 0.005968 | 0.01061 | null | null | 0.019894 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4fadbe782a82181433effaa23dea7506f60dc30 | 4,780 | py | Python | tests/test_client.py | insideable/nats-python | 0bfe1722f6312e69cf37ba0056dabfd5c6f31c77 | [
"MIT"
] | null | null | null | tests/test_client.py | insideable/nats-python | 0bfe1722f6312e69cf37ba0056dabfd5c6f31c77 | [
"MIT"
] | null | null | null | tests/test_client.py | insideable/nats-python | 0bfe1722f6312e69cf37ba0056dabfd5c6f31c77 | [
"MIT"
] | null | null | null | import os
import socket
import threading
import time
import msgpack
import pytest
from pynats import NATSClient
@pytest.fixture
def nats_url():
return os.environ.get("NATS_URL", "nats://127.0.0.1:4222")
def test_connect_and_close(nats_url):
client = NATSClient(nats_url, socket_timeout=2)
client.conne... | 26.263736 | 85 | 0.622176 | 573 | 4,780 | 5.073298 | 0.136126 | 0.055384 | 0.062608 | 0.094943 | 0.784658 | 0.689026 | 0.640523 | 0.638115 | 0.638115 | 0.601651 | 0 | 0.018054 | 0.258368 | 4,780 | 181 | 86 | 26.40884 | 0.801975 | 0.028033 | 0 | 0.55 | 0 | 0 | 0.088597 | 0.022634 | 0 | 0 | 0 | 0 | 0.158333 | 1 | 0.141667 | false | 0 | 0.058333 | 0.008333 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be019b1d16a9084654ce4b17a386f3996264ed4e | 921 | py | Python | huobi/service/margin/get_margin_account_balance.py | xujunhuii/huobi_Python | 958df8b22ce774329c7e15a1ecf2f52eea5f6af8 | [
"Apache-2.0"
] | null | null | null | huobi/service/margin/get_margin_account_balance.py | xujunhuii/huobi_Python | 958df8b22ce774329c7e15a1ecf2f52eea5f6af8 | [
"Apache-2.0"
] | null | null | null | huobi/service/margin/get_margin_account_balance.py | xujunhuii/huobi_Python | 958df8b22ce774329c7e15a1ecf2f52eea5f6af8 | [
"Apache-2.0"
] | null | null | null | from huobi.connection.restapi_sync_client import RestApiSyncClient
from huobi.constant.system import HttpMethod
from huobi.model.account import Balance
from huobi.model.margin import *
from huobi.utils import *
class GetMarginAccountBalanceService:
def __init__(self, params):
self.params = params
def... | 34.111111 | 87 | 0.668838 | 101 | 921 | 5.871287 | 0.435644 | 0.075885 | 0.091062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001458 | 0.255157 | 921 | 26 | 88 | 35.423077 | 0.862974 | 0 | 0 | 0 | 0 | 0 | 0.033659 | 0.029316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
be08ea5090509065bf195b52e902d2f9d0d28dc9 | 250 | py | Python | finliveapp/common/utils.py | FinLiveRI/FinLiveApp | c5634c1da2a4081119890df7674c1f170f106e7f | [
"MIT"
] | null | null | null | finliveapp/common/utils.py | FinLiveRI/FinLiveApp | c5634c1da2a4081119890df7674c1f170f106e7f | [
"MIT"
] | null | null | null | finliveapp/common/utils.py | FinLiveRI/FinLiveApp | c5634c1da2a4081119890df7674c1f170f106e7f | [
"MIT"
] | null | null | null |
def dictTolist(data):
result = []
if isinstance(data, dict) and data.__len__() > 0:
result.append(data)
elif isinstance(data, list) and data.__len__() > 0:
result = data
else:
result = None
return result
| 20.833333 | 55 | 0.588 | 30 | 250 | 4.633333 | 0.533333 | 0.201439 | 0.143885 | 0.158273 | 0.244604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.3 | 250 | 11 | 56 | 22.727273 | 0.782857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be0b138ffcd2a7ca11d8c6a5196d31ad311e291b | 645 | py | Python | torch_geometric/nn/glob/__init__.py | rusty1s/pytorch-geometric | ded9a7b10ad8ebc19c97e567c7bb1ae6605253db | [
"MIT"
] | 2,350 | 2021-09-12T08:32:50.000Z | 2022-03-31T18:09:36.000Z | torch_geometric/nn/glob/__init__.py | rusty1s/pytorch-geometric | ded9a7b10ad8ebc19c97e567c7bb1ae6605253db | [
"MIT"
] | 588 | 2021-09-12T08:49:08.000Z | 2022-03-31T21:02:13.000Z | torch_geometric/nn/glob/__init__.py | rusty1s/pytorch-geometric | ded9a7b10ad8ebc19c97e567c7bb1ae6605253db | [
"MIT"
] | 505 | 2021-09-13T13:13:32.000Z | 2022-03-31T15:54:00.000Z | from .glob import global_add_pool, global_mean_pool, global_max_pool
from .glob import GlobalPooling
from .sort import global_sort_pool
from .attention import GlobalAttention
from .gmt import GraphMultisetTransformer
__all__ = [
'global_add_pool',
'global_mean_pool',
'global_max_pool',
'GlobalPooling',... | 24.807692 | 68 | 0.76124 | 77 | 645 | 6.025974 | 0.376623 | 0.086207 | 0.060345 | 0.081897 | 0.172414 | 0.172414 | 0.172414 | 0.172414 | 0.172414 | 0 | 0 | 0.009141 | 0.151938 | 645 | 25 | 69 | 25.8 | 0.839122 | 0.013953 | 0 | 0 | 0 | 0 | 0.249605 | 0.037915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
be1034e8f664e6da2fc26c62d7467fd6291f7c02 | 3,568 | py | Python | pyleecan/Methods/Slot/HoleM52/build_geometry.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 1 | 2021-07-08T01:27:24.000Z | 2021-07-08T01:27:24.000Z | pyleecan/Methods/Slot/HoleM52/build_geometry.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | null | null | null | pyleecan/Methods/Slot/HoleM52/build_geometry.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from numpy import exp
from ....Classes.Segment import Segment
from ....Classes.SurfLine import SurfLine
def build_geometry(self, alpha=0, delta=0, is_simplified=False):
"""Compute the curve (Line) needed to plot the Slot.
The ending point of a curve is the starting point of the next ... | 30.495726 | 80 | 0.623318 | 517 | 3,568 | 4.112186 | 0.212766 | 0.126999 | 0.155221 | 0.227658 | 0.457197 | 0.387582 | 0.332549 | 0.29492 | 0.265757 | 0.252117 | 0 | 0.057294 | 0.256446 | 3,568 | 116 | 81 | 30.758621 | 0.744063 | 0.205157 | 0 | 0.328947 | 0 | 0 | 0.041818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.039474 | 0 | 0.065789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be10d2815b875a22f0d9c93358dbff95338df1c0 | 249 | py | Python | packaging/pack1/setup.py | AndreiHondrari/python_exploration | cb4ac0b92ddc48c322201ba31cd6e7c5ee6af06d | [
"MIT"
] | 3 | 2019-05-04T12:19:09.000Z | 2019-08-30T07:12:31.000Z | packaging/pack1/setup.py | AndreiHondrari/python_exploration | cb4ac0b92ddc48c322201ba31cd6e7c5ee6af06d | [
"MIT"
] | null | null | null | packaging/pack1/setup.py | AndreiHondrari/python_exploration | cb4ac0b92ddc48c322201ba31cd6e7c5ee6af06d | [
"MIT"
] | null | null | null |
from distutils.core import setup
setup(
name='special_pack1_andrew',
version='0.1',
py_modules=['andrew_mod1'],
url='https://andreihondrari.com',
author='Andrei-George Hondrari',
author_email='andrei.hondrari@gmail.com'
)
| 19.153846 | 44 | 0.690763 | 31 | 249 | 5.387097 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019139 | 0.160643 | 249 | 12 | 45 | 20.75 | 0.779904 | 0 | 0 | 0 | 0 | 0 | 0.433198 | 0.101215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be18ac79175ce44750ab6f63e7a760ed5134e977 | 2,504 | py | Python | mac/pyobjc-core/PyObjCTest/test_specialtypecodes_struct.py | albertz/music-player | d23586f5bf657cbaea8147223be7814d117ae73d | [
"BSD-2-Clause"
] | 132 | 2015-01-01T10:02:42.000Z | 2022-03-09T12:51:01.000Z | mac/pyobjc-core/PyObjCTest/test_specialtypecodes_struct.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 6 | 2015-01-06T08:23:19.000Z | 2019-03-14T12:22:06.000Z | mac/pyobjc-core/PyObjCTest/test_specialtypecodes_struct.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 27 | 2015-02-23T11:51:43.000Z | 2022-03-07T02:34:18.000Z | """
Tests for using special type codes in struct definitions
TODO:
* _C_UNICHAR, _C_CHAR_AS_INT, _C_CHAR_AS_TEXT
"""
import weakref
from PyObjCTools.TestSupport import *
from PyObjCTest.fnd import NSObject
from PyObjCTest.specialtypecodes import *
EmbeddedBoolStruct = objc.createStructType(
"EmbeddedBoolStr... | 29.809524 | 79 | 0.636981 | 289 | 2,504 | 5.380623 | 0.366782 | 0.07717 | 0.083601 | 0.092605 | 0.454662 | 0.432797 | 0.404502 | 0.351125 | 0.351125 | 0.351125 | 0 | 0.017553 | 0.249201 | 2,504 | 83 | 80 | 30.168675 | 0.809574 | 0.16893 | 0 | 0.592593 | 0 | 0 | 0.053753 | 0.011138 | 0 | 0 | 0 | 0.012048 | 0.333333 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be191d301a1361695828bb94f70812135a4a77c9 | 1,332 | py | Python | hypha/public/news/migrations/0010_newsfeedsettings.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 20 | 2021-04-08T16:38:49.000Z | 2022-02-09T20:05:57.000Z | hypha/public/news/migrations/0010_newsfeedsettings.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 1,098 | 2017-12-15T11:23:03.000Z | 2020-01-24T07:58:07.000Z | hypha/public/news/migrations/0010_newsfeedsettings.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 17 | 2020-02-07T14:55:54.000Z | 2021-04-04T19:32:38.000Z | # Generated by Django 2.0.13 on 2019-04-30 11:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0040_page_draft_title'),
('news', '0009_add_awesome_table_block'),
]
operations = [
... | 44.4 | 176 | 0.635135 | 163 | 1,332 | 5.01227 | 0.429448 | 0.073439 | 0.093023 | 0.112607 | 0.457772 | 0.457772 | 0.435741 | 0.435741 | 0.435741 | 0.149327 | 0 | 0.035714 | 0.243243 | 1,332 | 29 | 177 | 45.931034 | 0.774802 | 0.034535 | 0 | 0 | 1 | 0 | 0.319315 | 0.057632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be25b96d5693a80d2f13a1e5a06708a8ec798e8f | 3,612 | py | Python | scalyr_agent/third_party_tls/oscrypto/_osx/_security.py | zak905/scalyr-agent-2 | 490f03f2a3f0a8d075d74df20610ceb23dff6c8c | [
"Apache-2.0"
] | null | null | null | scalyr_agent/third_party_tls/oscrypto/_osx/_security.py | zak905/scalyr-agent-2 | 490f03f2a3f0a8d075d74df20610ceb23dff6c8c | [
"Apache-2.0"
] | 1 | 2020-06-03T13:19:37.000Z | 2020-06-03T13:35:28.000Z | scalyr_agent/third_party_tls/oscrypto/_osx/_security.py | zak905/scalyr-agent-2 | 490f03f2a3f0a8d075d74df20610ceb23dff6c8c | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from .._ffi import FFIEngineError, null
try:
from ._security_cffi import Security, version_info as osx_version_info
from ._core_foundation_cffi import CoreFoundation, CFHelpers
except (FFIEngineError, ImportErro... | 26.558824 | 82 | 0.741694 | 376 | 3,612 | 6.805851 | 0.521277 | 0.032825 | 0.016413 | 0.019539 | 0.058617 | 0.046112 | 0.046112 | 0.046112 | 0.046112 | 0.046112 | 0 | 0.092233 | 0.20155 | 3,612 | 135 | 83 | 26.755556 | 0.795076 | 0.081118 | 0 | 0 | 0 | 0 | 0.034198 | 0.014656 | 0 | 0 | 0.024427 | 0 | 0 | 1 | 0.022472 | false | 0 | 0.078652 | 0 | 0.764045 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
be268921f447292fc194b032238863c3fa6e4e7b | 1,403 | py | Python | metaci/create_org/views.py | abhishekalgo/metaci | cd62473b3fb85fb0f39623f9fb2850993ff708a5 | [
"BSD-3-Clause"
] | null | null | null | metaci/create_org/views.py | abhishekalgo/metaci | cd62473b3fb85fb0f39623f9fb2850993ff708a5 | [
"BSD-3-Clause"
] | null | null | null | metaci/create_org/views.py | abhishekalgo/metaci | cd62473b3fb85fb0f39623f9fb2850993ff708a5 | [
"BSD-3-Clause"
] | 1 | 2018-12-07T09:51:07.000Z | 2018-12-07T09:51:07.000Z | from django.core.exceptions import PermissionDenied
from django.db.models import Q
from django.shortcuts import render
from metaci.plan.models import Plan, PlanRepository
def create_org(request):
planrepos = PlanRepository.objects.for_user(request.user, "plan.run_plan")
planrepos.filter(plan__role__in=["scra... | 33.404762 | 78 | 0.708482 | 174 | 1,403 | 5.511494 | 0.258621 | 0.046924 | 0.059437 | 0.103233 | 0.720542 | 0.691345 | 0.691345 | 0.691345 | 0.691345 | 0.691345 | 0 | 0 | 0.17819 | 1,403 | 41 | 79 | 34.219512 | 0.831743 | 0 | 0 | 0.53125 | 0 | 0 | 0.21454 | 0.053457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
076cb697c4a10066cd5f2c8472a59c2ac06c1eb0 | 833 | py | Python | MarsMissionImages/MakeDamagedTiles.py | craklyn/space-apps-2019 | f0a7e28907b9471b207d75eb840b1bd27ef99547 | [
"MIT"
] | 6 | 2021-08-16T14:48:30.000Z | 2022-01-25T01:06:03.000Z | MarsMissionImages/MakeDamagedTiles.py | craklyn/space-apps-2019 | f0a7e28907b9471b207d75eb840b1bd27ef99547 | [
"MIT"
] | 3 | 2021-06-08T20:29:10.000Z | 2022-03-12T00:02:34.000Z | MarsMissionImages/MakeDamagedTiles.py | craklyn/space-apps-2019 | f0a7e28907b9471b207d75eb840b1bd27ef99547 | [
"MIT"
] | 1 | 2019-10-21T05:42:25.000Z | 2019-10-21T05:42:25.000Z | import requests
import urllib.request
import time
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import glob
from listOfInd import listOfInd
names = glob.glob('./MarsMissionTiles/*')
for el in names:
img = mpimg.imread(el)
img = img[:,:,0]
#plt.imshow(img,cmap='gray')
... | 23.138889 | 66 | 0.643457 | 121 | 833 | 4.380165 | 0.446281 | 0.037736 | 0.037736 | 0.049057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.202881 | 833 | 35 | 67 | 23.8 | 0.786145 | 0.068427 | 0 | 0 | 0 | 0 | 0.089263 | 0.033635 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
076fd7cd1ebf7b9270ce818a67bdd96a736a327a | 1,366 | py | Python | python/client.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 114 | 2017-06-14T07:05:31.000Z | 2021-06-13T05:30:49.000Z | python/client.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 7 | 2017-11-17T08:16:55.000Z | 2019-10-05T00:09:20.000Z | python/client.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 40 | 2017-06-15T03:21:10.000Z | 2021-10-31T15:03:30.000Z | import zmq
import json
import time
import sys
def get_nodes(model):
node_set = set()
node_list = []
for layer in model['layers']:
if layer['bottom_nodes']:
for node in layer['bottom_nodes']:
if node not in node_set:
node_set.add(node)
... | 27.877551 | 122 | 0.592972 | 188 | 1,366 | 4.170213 | 0.409574 | 0.071429 | 0.034439 | 0.035714 | 0.188776 | 0.140306 | 0.140306 | 0.140306 | 0.140306 | 0.140306 | 0 | 0.019192 | 0.275256 | 1,366 | 48 | 123 | 28.458333 | 0.772727 | 0.065886 | 0 | 0.166667 | 0 | 0.027778 | 0.192762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077152f9a692c8e8a5ea33f20bc77758f9100d22 | 1,182 | py | Python | footmark/market/product.py | konstantin-kornienko/footmark | 0421bfb30d94f252a56c5d80a8696d37331b60b9 | [
"Apache-2.0"
] | 18 | 2017-04-29T10:11:41.000Z | 2021-11-18T03:44:22.000Z | footmark/market/product.py | KvistA-ELS/footmark | 487a864fc756d03b237ae46b23b67cc68ca72527 | [
"Apache-2.0"
] | 25 | 2017-06-01T09:35:57.000Z | 2021-06-24T08:09:26.000Z | footmark/market/product.py | KvistA-ELS/footmark | 487a864fc756d03b237ae46b23b67cc68ca72527 | [
"Apache-2.0"
] | 47 | 2017-05-05T08:02:59.000Z | 2021-07-05T12:44:56.000Z | from footmark.market.productobject import TaggedPRODUCTObject
class Product(TaggedPRODUCTObject):
def __init__(self, connection=None):
super(Product, self).__init__(connection)
def __repr__(self):
return 'Product:%s' % self.id
def __getattr__(self, name):
if name == 'price':
... | 33.771429 | 131 | 0.588832 | 126 | 1,182 | 5.198413 | 0.444444 | 0.054962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002358 | 0.282572 | 1,182 | 34 | 132 | 34.764706 | 0.770047 | 0 | 0 | 0.076923 | 0 | 0 | 0.163421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077354ed606a72ba5c178ab6c7eb412a13682d25 | 253 | py | Python | yt_concate/pipeline/steps/preflight.py | ThatMrWayne/yout_concate | f8c3ec87a3ec2517933f1290d905e7c530a00571 | [
"MIT"
] | null | null | null | yt_concate/pipeline/steps/preflight.py | ThatMrWayne/yout_concate | f8c3ec87a3ec2517933f1290d905e7c530a00571 | [
"MIT"
] | null | null | null | yt_concate/pipeline/steps/preflight.py | ThatMrWayne/yout_concate | f8c3ec87a3ec2517933f1290d905e7c530a00571 | [
"MIT"
] | null | null | null | import logging
from yt_concate.pipeline.steps.step import Step
class Preflight(Step):
def process(self, inputs, utils, data):
logger = logging.getLogger('record')
logger.info('In preflight.')
utils.create_downloads_dirs()
| 23 | 47 | 0.695652 | 31 | 253 | 5.580645 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197628 | 253 | 10 | 48 | 25.3 | 0.852217 | 0 | 0 | 0 | 0 | 0 | 0.075099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
077669a8bc696faf63d7c2f5d04b233657fd2eed | 613 | py | Python | sagas/tests/hybrid/func_client.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | 3 | 2020-01-11T13:55:38.000Z | 2020-08-25T22:34:15.000Z | sagas/tests/hybrid/func_client.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | null | null | null | sagas/tests/hybrid/func_client.py | samlet/stack | 47db17fd4fdab264032f224dca31a4bb1d19b754 | [
"Apache-2.0"
] | 1 | 2021-01-01T05:21:44.000Z | 2021-01-01T05:21:44.000Z | import asyncio
from functools import partial
from aio_pika import connect, IncomingMessage, Exchange, Message
from aio_pika.patterns.rpc import RPC, log as rpc_logger
from sagas.tests.hybrid.func_server import FuncBase
loop = asyncio.get_event_loop()
class FuncClient(FuncBase):
async def invoke(self):
ch... | 25.541667 | 64 | 0.722675 | 84 | 613 | 5.059524 | 0.619048 | 0.056471 | 0.051765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184339 | 613 | 23 | 65 | 26.652174 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.013093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07766cb00dd3ed81c49db7461bc5454d17463feb | 7,196 | py | Python | sdk/python/pulumi_azure_nextgen/blockchain/v20180601preview/transaction_node.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_nextgen/blockchain/v20180601preview/transaction_node.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_nextgen/blockchain/v20180601preview/transaction_node.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 40.426966 | 189 | 0.642857 | 813 | 7,196 | 5.434194 | 0.202952 | 0.039837 | 0.038026 | 0.038705 | 0.371661 | 0.285423 | 0.17904 | 0.162064 | 0.086691 | 0.064056 | 0 | 0.001698 | 0.263619 | 7,196 | 177 | 190 | 40.655367 | 0.832044 | 0.246109 | 0 | 0.149533 | 1 | 0 | 0.154968 | 0.041995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121495 | false | 0.046729 | 0.065421 | 0.018692 | 0.308411 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077702c6c7ef1a0df45ba4c34b4696f1f6f6ad61 | 554 | py | Python | randopt/__init__.py | seba-1511/randopt | 74cefcc734c6a38418151025b0a4d8b6cb41eb14 | [
"Apache-2.0"
] | 115 | 2016-11-21T06:44:19.000Z | 2022-01-21T22:21:27.000Z | randopt/__init__.py | seba-1511/randopt | 74cefcc734c6a38418151025b0a4d8b6cb41eb14 | [
"Apache-2.0"
] | 26 | 2016-11-21T07:31:37.000Z | 2019-01-16T14:13:23.000Z | randopt/__init__.py | seba-1511/randopt | 74cefcc734c6a38418151025b0a4d8b6cb41eb14 | [
"Apache-2.0"
] | 9 | 2018-04-02T19:54:20.000Z | 2020-02-11T09:12:41.000Z | #!/usr/bin/env python
import random
# Fork Python's RNG and seed with a truly random number
if 'RANDOP_INIT' not in globals():
RANDOPT_RNG = random.Random()
sys_seed = random.SystemRandom().randint(0, 1e10)
RANDOPT_RNG.seed(sys_seed)
RANDOPT_INIT = True
args = None
from ._version import __version__
... | 29.157895 | 84 | 0.770758 | 80 | 554 | 5.1 | 0.6 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008493 | 0.149819 | 554 | 18 | 85 | 30.777778 | 0.857749 | 0.133574 | 0 | 0 | 0 | 0 | 0.023013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07795e707718fb4e0cc15576aa782064eaa7e5e1 | 4,148 | py | Python | vize/180401025.py | yigitcanustek/blm2010 | 2e86dab3fc225a7679b6c660fb01902423476a94 | [
"Unlicense"
] | 2 | 2020-05-20T19:25:37.000Z | 2021-04-01T21:26:54.000Z | vize/180401025.py | yigitcanustek/blm2010 | 2e86dab3fc225a7679b6c660fb01902423476a94 | [
"Unlicense"
] | 15 | 2020-05-18T14:53:18.000Z | 2020-06-26T09:20:50.000Z | vize/180401025.py | yigitcanustek/blm2010 | 2e86dab3fc225a7679b6c660fb01902423476a94 | [
"Unlicense"
] | 155 | 2020-04-28T16:14:38.000Z | 2020-06-26T09:46:59.000Z | # Kutay KALMAZ 180401025
def getCoefficients(p1, p2, p3, p4, p5, p6, polyCoefficients):
polyCoefficients.write("1.degree polynomial : a0 = "+str(p1[0]) + " a1 = " + str(p1[1])+"\n" )
polyCoefficients.write("2.degree polynomial : a0 = "+str(p2[0]) + " a1 = " + str(p2[1]) + " a2 =" + str(p2[2]) + "\n")
... | 38.407407 | 213 | 0.517599 | 613 | 4,148 | 3.502447 | 0.159869 | 0.065207 | 0.027946 | 0.051234 | 0.313461 | 0.288309 | 0.253377 | 0.214252 | 0.214252 | 0.214252 | 0 | 0.07069 | 0.277001 | 4,148 | 107 | 214 | 38.766355 | 0.645215 | 0.006268 | 0 | 0.25 | 0 | 0 | 0.145666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077980e8965e45ef5ed08423a191ffd8fec23ea8 | 5,371 | py | Python | src/Snapcon Fortnite v2.0.2.py | EwyBoy/Fortnite---Snapcon-2.0 | c4e399eed9888f8375b50126991e951dc266a70b | [
"MIT"
] | 3 | 2019-09-27T12:13:59.000Z | 2021-08-01T01:33:51.000Z | src/Snapcon Fortnite v2.0.2.py | EwyBoy/Fortnite---Snapcon-2.0 | c4e399eed9888f8375b50126991e951dc266a70b | [
"MIT"
] | null | null | null | src/Snapcon Fortnite v2.0.2.py | EwyBoy/Fortnite---Snapcon-2.0 | c4e399eed9888f8375b50126991e951dc266a70b | [
"MIT"
] | 2 | 2020-10-28T19:47:24.000Z | 2021-02-25T08:48:21.000Z | import Tkinter
import ctypes
import time
import keyboard
import mouse
SendInput = ctypes.windll.user32.SendInput
# C struct redefinitions
PUL = ctypes.POINTER(ctypes.c_ulong)
class KeyBdInput(ctypes.Structure):
_fields_ = [("wVk", ctypes.c_ushort),
("wScan", ctypes.c_ushort),
("d... | 31.409357 | 123 | 0.624651 | 693 | 5,371 | 4.764791 | 0.396825 | 0.038159 | 0.04361 | 0.026651 | 0.1702 | 0.1702 | 0.152029 | 0.152029 | 0.13083 | 0.13083 | 0 | 0.024151 | 0.259914 | 5,371 | 171 | 124 | 31.409357 | 0.806541 | 0.109849 | 0 | 0.279661 | 0 | 0.076271 | 0.327945 | 0 | 0 | 0 | 0.008818 | 0 | 0 | 0 | null | null | 0.008475 | 0.042373 | null | null | 0.09322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077bcac78c199fa7ead255986604557dc8703f27 | 4,076 | py | Python | skyportal/enum_types.py | julietteBrt/skyportal | de8eb27d7aea292b18f47f3c507401580251d60d | [
"BSD-3-Clause"
] | null | null | null | skyportal/enum_types.py | julietteBrt/skyportal | de8eb27d7aea292b18f47f3c507401580251d60d | [
"BSD-3-Clause"
] | null | null | null | skyportal/enum_types.py | julietteBrt/skyportal | de8eb27d7aea292b18f47f3c507401580251d60d | [
"BSD-3-Clause"
] | null | null | null | import sqlalchemy as sa
from enum import Enum
import inspect
import numpy as np
from astropy import units as u, wcs
from baselayer.app.env import load_env
from . import facility_apis
from sncosmo.bandpasses import (
Bandpass, _BANDPASSES, _BANDPASS_INTERPOLATORS, read_bandpass)
from sncosmo.magsystems import _MA... | 30.192593 | 85 | 0.676398 | 519 | 4,076 | 5.077071 | 0.292871 | 0.012524 | 0.030361 | 0.00759 | 0.122201 | 0.122201 | 0.091082 | 0.091082 | 0.091082 | 0.091082 | 0 | 0.025923 | 0.195535 | 4,076 | 134 | 86 | 30.41791 | 0.777676 | 0.029686 | 0 | 0.072727 | 0 | 0 | 0.133367 | 0.005578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0.1 | 0.081818 | 0.009091 | 0.127273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
077c9a531a8ce1cdb20ce93af4a65bdb70ded25e | 5,191 | py | Python | Blender/backupfile/render/.ipynb_checkpoints/TaskImageVideo-checkpoint.py | Zhaoc917/cg | 1ed7e145c466a1eb5b4361d7ee9846204236947d | [
"MIT"
] | 1 | 2019-12-06T04:00:03.000Z | 2019-12-06T04:00:03.000Z | Blender/backupfile/render/.ipynb_checkpoints/TaskImageVideo-checkpoint.py | Zhaoc917/cg | 1ed7e145c466a1eb5b4361d7ee9846204236947d | [
"MIT"
] | 1 | 2019-12-14T06:09:59.000Z | 2019-12-14T06:26:30.000Z | Blender/backupfile/render/TaskImageVideo.py | Zhaoc917/cg | 1ed7e145c466a1eb5b4361d7ee9846204236947d | [
"MIT"
] | 2 | 2020-01-05T10:42:56.000Z | 2020-03-31T05:10:42.000Z | import sys
sys.path.append('..\\')
sys.path.append('..\\..\\lib')
from DirSetting import *
from Tool.IO import *
from Tool.PrettyColor import *
from Tool.FfmpegWrapper import *
from Tool.ImageMagickWrapper import *
class TaskImageVideo(object):
def __init__(self):
super(TaskImageVideo, self).__init__()
s... | 32.04321 | 218 | 0.681179 | 608 | 5,191 | 5.777961 | 0.263158 | 0.033874 | 0.096783 | 0.098207 | 0.520068 | 0.445204 | 0.384002 | 0.347851 | 0.316539 | 0.316539 | 0 | 0.024265 | 0.134656 | 5,191 | 161 | 219 | 32.242236 | 0.757792 | 0.337507 | 0 | 0.348837 | 0 | 0 | 0.125553 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0.05814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0781d567636f7811588e76ab1e1e130a0d5ca5f3 | 1,424 | py | Python | src/python/datatype/ListType.py | hiteshsahu/Python4ML | be193f78035d669c2c8d9da4ddd7a791e6e625f6 | [
"Apache-2.0"
] | null | null | null | src/python/datatype/ListType.py | hiteshsahu/Python4ML | be193f78035d669c2c8d9da4ddd7a791e6e625f6 | [
"Apache-2.0"
] | null | null | null | src/python/datatype/ListType.py | hiteshsahu/Python4ML | be193f78035d669c2c8d9da4ddd7a791e6e625f6 | [
"Apache-2.0"
] | null | null | null | """
List Data Type(list):
- Just Like Array following indexing
- **Unlike Arrays, list can hold HETEROGENEOUS DATA TYPE
- Repetition allowed
- Multi Dimensional
"""
# Creating a Multi-Dimensional List
print(" \n-------CREATE---------- ")
List = [['Hitesh', 'kumar', 'Sahu'], [29]]
thislist = ["0", "1", "2", "3", "4"... | 19.506849 | 66 | 0.613062 | 192 | 1,424 | 4.546875 | 0.375 | 0.119129 | 0.02291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037873 | 0.128511 | 1,424 | 73 | 67 | 19.506849 | 0.665592 | 0.155899 | 0 | 0.047619 | 0 | 0 | 0.291457 | 0.082077 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.642857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
0782df93d917df7c112f5462633b45ad26f9897d | 1,560 | py | Python | iaproofread03-gen.py | vitorio/iaproofread | f4a5188ad83bd07f778f57cdd7e37828477a0aa1 | [
"CC0-1.0"
] | null | null | null | iaproofread03-gen.py | vitorio/iaproofread | f4a5188ad83bd07f778f57cdd7e37828477a0aa1 | [
"CC0-1.0"
] | null | null | null | iaproofread03-gen.py | vitorio/iaproofread | f4a5188ad83bd07f778f57cdd7e37828477a0aa1 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'vitorio'
from xml.dom import minidom
import os.path
import pickle
import cgi
import PythonMagick
import jinja2
env = jinja2.Environment(loader=jinja2.FileSystemLoader('.'))
template = env.get_template('iaproofread03.jinja2')
#IA_NAME = 'windinwillows00grah'
#IA_NAME = 'artpracti... | 38.04878 | 115 | 0.696154 | 215 | 1,560 | 4.916279 | 0.465116 | 0.039735 | 0.047304 | 0.060549 | 0.151372 | 0.109745 | 0.109745 | 0.058657 | 0.058657 | 0 | 0 | 0.019217 | 0.132692 | 1,560 | 40 | 116 | 39 | 0.76201 | 0.146154 | 0 | 0 | 0 | 0 | 0.201662 | 0.036254 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07832d9d07b8e8bcb75e49e08a868f233ae4c3b4 | 931 | py | Python | validation.py | dan-doyle/ImageClassifier | 3b74e03840323d364bd46f6a1e3794f1e21d7370 | [
"MIT"
] | null | null | null | validation.py | dan-doyle/ImageClassifier | 3b74e03840323d364bd46f6a1e3794f1e21d7370 | [
"MIT"
] | null | null | null | validation.py | dan-doyle/ImageClassifier | 3b74e03840323d364bd46f6a1e3794f1e21d7370 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import torch
from torch import nn
from torch import optim
import torch.nn.functional as F
from torchvision import datasets, transforms, models
def validation(model, device, criterion, loader):
test_loss = 0
test_accuracy = 0
model.eval()
with torch.no_grad():
... | 32.103448 | 78 | 0.641246 | 125 | 931 | 4.656 | 0.448 | 0.054983 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.252417 | 931 | 29 | 79 | 32.103448 | 0.827586 | 0.008593 | 0 | 0 | 0 | 0 | 0.09436 | 0.065076 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07887035f87c425b6fefb3f901b938b0876c4cb1 | 5,324 | py | Python | zarr/tests/test_util.py | jhamman/zarr | f8df70ddcd714d544a913e3420279adf66b4994d | [
"MIT"
] | null | null | null | zarr/tests/test_util.py | jhamman/zarr | f8df70ddcd714d544a913e3420279adf66b4994d | [
"MIT"
] | null | null | null | zarr/tests/test_util.py | jhamman/zarr | f8df70ddcd714d544a913e3420279adf66b4994d | [
"MIT"
] | 1 | 2021-02-23T22:40:30.000Z | 2021-02-23T22:40:30.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
import numpy as np
import pytest
from zarr.util import (normalize_shape, normalize_chunks, is_total_slice,
normalize_resize_args, human_readable_size, normalize_order,
guess_chunks,... | 34.128205 | 89 | 0.608753 | 722 | 5,324 | 4.296399 | 0.160665 | 0.034816 | 0.061896 | 0.060284 | 0.57479 | 0.516119 | 0.460671 | 0.395551 | 0.36686 | 0.317859 | 0 | 0.159567 | 0.219572 | 5,324 | 155 | 90 | 34.348387 | 0.587004 | 0.026296 | 0 | 0.095652 | 0 | 0 | 0.022609 | 0 | 0 | 0 | 0 | 0 | 0.486957 | 1 | 0.086957 | false | 0 | 0.034783 | 0 | 0.121739 | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
078b35ecaa3f1c205d861bb0ed207a58648dff04 | 1,304 | py | Python | tests/ecr/data_generator/test_data_collection_dump.py | zhawan/maro | d8c98deea4296cdcb90efd1fb59bc571cec3a2ef | [
"MIT"
] | null | null | null | tests/ecr/data_generator/test_data_collection_dump.py | zhawan/maro | d8c98deea4296cdcb90efd1fb59bc571cec3a2ef | [
"MIT"
] | null | null | null | tests/ecr/data_generator/test_data_collection_dump.py | zhawan/maro | d8c98deea4296cdcb90efd1fb59bc571cec3a2ef | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import numpy as np
import unittest
import tempfile
from maro.data_lib.ecr.ecr_data_dump import dump_from_config
MAX_TICK = 20
class TestDataCollectionDump(unittest.TestCase):
def test_dump(self):
output_folder = tempfile.... | 32.6 | 131 | 0.687883 | 163 | 1,304 | 5.245399 | 0.411043 | 0.098246 | 0.081871 | 0.119298 | 0.439766 | 0.4 | 0.4 | 0.264327 | 0.264327 | 0.264327 | 0 | 0.009533 | 0.195552 | 1,304 | 40 | 132 | 32.6 | 0.805529 | 0.083589 | 0 | 0.208333 | 0 | 0 | 0.142737 | 0.02267 | 0 | 0 | 0 | 0.025 | 0.166667 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
078bb315bd609492cf9de0829b830a23af188fb0 | 5,052 | py | Python | sdk/python/pulumi_aws/eks/cluster.py | lemonade-hq/pulumi-aws | 9ee22c65c7bad42d38b16879ccd56526d856a01a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/eks/cluster.py | lemonade-hq/pulumi-aws | 9ee22c65c7bad42d38b16879ccd56526d856a01a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/eks/cluster.py | lemonade-hq/pulumi-aws | 9ee22c65c7bad42d38b16879ccd56526d856a01a | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-03-08T15:05:29.000Z | 2021-03-08T15:05:29.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from .. import utilities, tables
class Cluster(pulumi.CustomResource):... | 49.529412 | 486 | 0.704473 | 662 | 5,052 | 5.173716 | 0.261329 | 0.03854 | 0.030657 | 0.021022 | 0.529343 | 0.512993 | 0.500146 | 0.475037 | 0.455182 | 0.455182 | 0 | 0.000253 | 0.21635 | 5,052 | 101 | 487 | 50.019802 | 0.864865 | 0.274743 | 0 | 0 | 1 | 0 | 0.180801 | 0.018941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.098039 | 0.039216 | 0.392157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
078d4cc198ce99a1a397f0a645e470c22fefae01 | 740 | py | Python | dowwner/app/migrations/0001_initial.py | 10sr/dowwner | 224ff0251e6c28c8e605004f878de1979c29cc8d | [
"Apache-2.0"
] | 3 | 2016-01-25T09:08:44.000Z | 2016-10-30T15:40:15.000Z | dowwner/app/migrations/0001_initial.py | 10sr/dowwner | 224ff0251e6c28c8e605004f878de1979c29cc8d | [
"Apache-2.0"
] | 16 | 2018-10-27T13:59:24.000Z | 2021-09-30T01:33:51.000Z | dowwner/app/migrations/0001_initial.py | 10sr/dowwner | 224ff0251e6c28c8e605004f878de1979c29cc8d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.4 on 2018-12-26 04:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
('id', models.AutoField(aut... | 29.6 | 114 | 0.587838 | 76 | 740 | 5.605263 | 0.644737 | 0.077465 | 0.098592 | 0.131455 | 0.169014 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0.041199 | 0.278378 | 740 | 24 | 115 | 30.833333 | 0.756554 | 0.060811 | 0 | 0 | 1 | 0 | 0.092352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
078e327996f58da05bc22f45b16b0b73c64d6996 | 571 | py | Python | LoopFor_start.py | DeiseFreire/exerciciosDescubraPython | 25113c5821fc34248aa25ff2e45f06c0aa5b8b2f | [
"MIT"
] | null | null | null | LoopFor_start.py | DeiseFreire/exerciciosDescubraPython | 25113c5821fc34248aa25ff2e45f06c0aa5b8b2f | [
"MIT"
] | null | null | null | LoopFor_start.py | DeiseFreire/exerciciosDescubraPython | 25113c5821fc34248aa25ff2e45f06c0aa5b8b2f | [
"MIT"
] | null | null | null | #
# Arquivo com exemplos de loop
#
# Definindo um LOOP FOR
def loopFor():
for x in range (5, 10):
print (x)
loopFor()
# Usando um LOOP FOR em uma coleçao
def loopArray ():
dias = ["seg", "ter", "quar", "quin", "sex", "sab", "dom"]
for d in dias:
print (d)
loopArray()
... | 19.689655 | 64 | 0.549912 | 78 | 571 | 4.025641 | 0.551282 | 0.038217 | 0.057325 | 0.089172 | 0.191083 | 0.191083 | 0.191083 | 0.191083 | 0.191083 | 0 | 0 | 0.007519 | 0.301226 | 571 | 28 | 65 | 20.392857 | 0.779449 | 0.297723 | 0 | 0.142857 | 0 | 0 | 0.126374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.214286 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07903e1b78027d78dd8feed54fa18c4d49f36226 | 8,602 | py | Python | tests/test_client.py | fossabot/citric | 113c37bf9ffad4d34ebb0a535ed1d048b2e13656 | [
"MIT"
] | null | null | null | tests/test_client.py | fossabot/citric | 113c37bf9ffad4d34ebb0a535ed1d048b2e13656 | [
"MIT"
] | null | null | null | tests/test_client.py | fossabot/citric | 113c37bf9ffad4d34ebb0a535ed1d048b2e13656 | [
"MIT"
] | null | null | null | """Unit tests for the Python Client."""
import base64
import io
from pathlib import Path
from typing import Any, Dict, Generator, List, Optional
import pytest
from citric.client import Client
from citric.enums import ImportSurveyType
from citric.session import Session
class MockSession(Session):
"""Mock RPC ses... | 31.977695 | 87 | 0.627645 | 1,008 | 8,602 | 5.160714 | 0.207341 | 0.053057 | 0.080738 | 0.066321 | 0.33564 | 0.267974 | 0.230104 | 0.230104 | 0.161476 | 0.150519 | 0 | 0.022273 | 0.232737 | 8,602 | 268 | 88 | 32.097015 | 0.765909 | 0.175192 | 0 | 0.105263 | 0 | 0 | 0.129646 | 0.006823 | 0 | 0 | 0 | 0.003731 | 0.184211 | 1 | 0.223684 | false | 0.006579 | 0.078947 | 0 | 0.381579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0794f34bb036b2606b9c727bdf8e71afc9038eda | 6,257 | py | Python | user_management/api/serializers.py | incuna/django-user-management | 28cd481d333fa313601825dab4b05f3e51974fe8 | [
"BSD-2-Clause"
] | 52 | 2015-01-12T11:30:47.000Z | 2021-10-31T09:27:42.000Z | user_management/api/serializers.py | WebDevSand/django-user-management | 28cd481d333fa313601825dab4b05f3e51974fe8 | [
"BSD-2-Clause"
] | 81 | 2015-01-05T17:35:21.000Z | 2020-08-21T02:29:10.000Z | user_management/api/serializers.py | WebDevSand/django-user-management | 28cd481d333fa313601825dab4b05f3e51974fe8 | [
"BSD-2-Clause"
] | 23 | 2015-01-20T21:04:35.000Z | 2021-12-09T21:15:08.000Z | from django.contrib.auth import get_user_model
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers, validators
from user_management.utils.validators import validate_password_strength
User = get_user_model()
class UniqueEmailValidator(validators.UniqueValidator):
def f... | 31.442211 | 83 | 0.648394 | 642 | 6,257 | 6.138629 | 0.224299 | 0.04745 | 0.044405 | 0.05151 | 0.398884 | 0.376047 | 0.365643 | 0.327074 | 0.327074 | 0.327074 | 0 | 0.004884 | 0.247403 | 6,257 | 198 | 84 | 31.60101 | 0.832024 | 0.074157 | 0 | 0.445205 | 0 | 0 | 0.152542 | 0.006465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061644 | false | 0.30137 | 0.027397 | 0.006849 | 0.342466 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0799556d3dbfead57731cb4e0940cf3cea71b429 | 679 | py | Python | Molecular_dynamics/apo_MD/run.py | bctaylor/bccgc4 | 2f0d970f35a5345ae1bf0755fbeb0b2a8f2d1f5a | [
"Apache-2.0"
] | 1 | 2022-03-31T07:53:46.000Z | 2022-03-31T07:53:46.000Z | Molecular_dynamics/apo_MD/run.py | bctaylor/bccgc4 | 2f0d970f35a5345ae1bf0755fbeb0b2a8f2d1f5a | [
"Apache-2.0"
] | null | null | null | Molecular_dynamics/apo_MD/run.py | bctaylor/bccgc4 | 2f0d970f35a5345ae1bf0755fbeb0b2a8f2d1f5a | [
"Apache-2.0"
] | 5 | 2018-10-13T23:35:16.000Z | 2022-03-31T12:11:12.000Z | #!/bin/env python
import sys, os, subprocess
systems = ['md1','md2','md3','md4','md5']
for system in systems:
os.chdir('%s'%(system))
print "Entering directory: %s"%(system)
for i in xrange(1, 100):
if not os.path.isfile('%d.out'%(i)):
break
generation = i
args = "mv 0.prmtop s... | 32.333333 | 177 | 0.592047 | 92 | 679 | 4.336957 | 0.630435 | 0.035088 | 0.090226 | 0.115288 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023466 | 0.184094 | 679 | 20 | 178 | 33.95 | 0.696751 | 0.023564 | 0 | 0.125 | 0 | 0.0625 | 0.350453 | 0.21148 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
079ded32708d9bd3e459604a5d43e27d73b18b05 | 1,314 | py | Python | mirror_ch.py | OliverWisn/mishmash_tao | 761f93b02865e990a4dddf5d9a599a449e95ed30 | [
"MIT"
] | null | null | null | mirror_ch.py | OliverWisn/mishmash_tao | 761f93b02865e990a4dddf5d9a599a449e95ed30 | [
"MIT"
] | null | null | null | mirror_ch.py | OliverWisn/mishmash_tao | 761f93b02865e990a4dddf5d9a599a449e95ed30 | [
"MIT"
] | null | null | null | import os
def mirror(url, response):
if response != 'dummy':
clean_url = url.replace('http://', '').replace('https://', '').rstrip('/')
parts = clean_url.split('?')[0].split('/')
root = parts[0]
webpage = parts[-1]
parts.remove(root)
try:
parts.remove(we... | 29.863636 | 82 | 0.456621 | 132 | 1,314 | 4.492424 | 0.462121 | 0.053963 | 0.045531 | 0.053963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.392694 | 1,314 | 43 | 83 | 30.55814 | 0.734336 | 0.012938 | 0 | 0.2 | 0 | 0 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0.075 | 0.025 | 0 | 0.05 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07a28b25870d5c10bd9f9def8fb9a20b676255e7 | 539 | py | Python | util.py | samrat2825/Skeleton-Based-Human-Action-Recognition-SGN- | 90e47fcd87ef326d677476a8e74d0ab048bd367e | [
"MIT"
] | null | null | null | util.py | samrat2825/Skeleton-Based-Human-Action-Recognition-SGN- | 90e47fcd87ef326d677476a8e74d0ab048bd367e | [
"MIT"
] | null | null | null | util.py | samrat2825/Skeleton-Based-Human-Action-Recognition-SGN- | 90e47fcd87ef326d677476a8e74d0ab048bd367e | [
"MIT"
] | null | null | null | import os
import csv
import numpy as np
import matplotlib.pyplot as plt
import torch.nn as nn
import torch
import os.path as osp
def make_dir(dataset):
if dataset == 'NTU':
output_dir = os.path.join('./results/NTU/')
elif dataset == 'NTU120':
output_dir = os.path.join('./results/NTU120/')
... | 19.962963 | 54 | 0.64564 | 78 | 539 | 4.358974 | 0.423077 | 0.132353 | 0.097059 | 0.111765 | 0.152941 | 0.152941 | 0 | 0 | 0 | 0 | 0 | 0.034398 | 0.244898 | 539 | 26 | 55 | 20.730769 | 0.800983 | 0 | 0 | 0.2 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.35 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07a312cf844d1c237bee5efb4873b1a0ae37cb14 | 1,782 | py | Python | outsystems/bdd_framework/bdd_base.py | gaorenguo/outsystems-pipeline | f1d60e5fc0e5a3b032fec1844427b81f05126c10 | [
"Apache-2.0"
] | 18 | 2019-10-15T07:09:48.000Z | 2022-03-10T09:40:37.000Z | outsystems/bdd_framework/bdd_base.py | gaorenguo/outsystems-pipeline | f1d60e5fc0e5a3b032fec1844427b81f05126c10 | [
"Apache-2.0"
] | 9 | 2019-11-14T06:40:08.000Z | 2022-03-09T14:47:24.000Z | outsystems/bdd_framework/bdd_base.py | gaorenguo/outsystems-pipeline | f1d60e5fc0e5a3b032fec1844427b81f05126c10 | [
"Apache-2.0"
] | 37 | 2019-11-05T17:20:18.000Z | 2022-03-21T06:18:24.000Z | # Python Modules
import requests
# Custom Modules
# Exceptions
from outsystems.exceptions.invalid_json_response import InvalidJsonResponseError
# Variables
from outsystems.vars.bdd_vars import BDD_TEST_RUNNER_ENDPOINT
# Method that builds the BDD Framework endpoint based on the environment host
def build_bdd_endpoin... | 42.428571 | 115 | 0.747475 | 250 | 1,782 | 5.076 | 0.284 | 0.056738 | 0.047281 | 0.033097 | 0.308905 | 0.249015 | 0.148148 | 0.148148 | 0.148148 | 0.148148 | 0 | 0.000673 | 0.166106 | 1,782 | 41 | 116 | 43.463415 | 0.853297 | 0.272727 | 0 | 0 | 0 | 0 | 0.090413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0.1 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
07a7050559acea08e0c0b04fc9a9c433c8fe616b | 542 | py | Python | sgqlc/endpoint/__init__.py | metachris/sgqlc | 7f176f50c1756facf881da101b4e148b6b52dcc2 | [
"ISC"
] | null | null | null | sgqlc/endpoint/__init__.py | metachris/sgqlc | 7f176f50c1756facf881da101b4e148b6b52dcc2 | [
"ISC"
] | null | null | null | sgqlc/endpoint/__init__.py | metachris/sgqlc | 7f176f50c1756facf881da101b4e148b6b52dcc2 | [
"ISC"
] | null | null | null | '''
sgqlc - Simple GraphQL Client
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Access GraphQL endpoints using Python
=====================================
This package provide the following modules:
- :mod:`sgqlc.endpoint.base`: with abstract class
:class:`sgqlc.endpoint.base.BaseEndpoint` and helpful logging
utilities to t... | 24.636364 | 64 | 0.654982 | 57 | 542 | 6.157895 | 0.754386 | 0.148148 | 0.091168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125461 | 542 | 21 | 65 | 25.809524 | 0.740506 | 0.911439 | 0 | 0 | 0 | 0 | 0.475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07af52a6594e1d05651ebbb972fbb5c3754d2ce7 | 4,015 | py | Python | common/xrd-ui-tests-qautomate/pagemodel/ss_clients_dlg_services_edit_wsdl.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2019-02-09T00:16:54.000Z | 2019-02-09T00:16:54.000Z | common/xrd-ui-tests-qautomate/pagemodel/ss_clients_dlg_services_edit_wsdl.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2018-06-06T08:33:32.000Z | 2018-06-06T08:33:32.000Z | common/xrd-ui-tests-qautomate/pagemodel/ss_clients_dlg_services_edit_wsdl.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 3 | 2018-07-09T08:51:00.000Z | 2020-07-23T18:40:24.000Z | # -*- coding: utf-8 -*-
# Example for using WebDriver object: driver = get_driver() e.g driver.current_url
from QAutoLibrary.extension import TESTDATA
from selenium.webdriver.common.by import By
from QAutoLibrary.QAutoSelenium import *
from time import sleep
class Ss_clients_dlg_services_edit_wsdl(CommonUtils):
""... | 45.625 | 188 | 0.686924 | 569 | 4,015 | 4.636204 | 0.347979 | 0.034496 | 0.013268 | 0.025019 | 0.318044 | 0.276725 | 0.184989 | 0.134193 | 0.134193 | 0.134193 | 0 | 0.057746 | 0.197758 | 4,015 | 87 | 189 | 46.149425 | 0.761254 | 0.382067 | 0 | 0.111111 | 0 | 0.111111 | 0.271465 | 0.178451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0 | 0.555556 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
07afb621c3091e9f177991a96d21e8842d958de9 | 1,089 | py | Python | aio.core/aio/core/event/reactive.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | null | null | null | aio.core/aio/core/event/reactive.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | null | null | null | aio.core/aio/core/event/reactive.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | null | null | null |
import asyncio
from concurrent import futures
from functools import cached_property
from typing import Optional
import abstracts
class IReactive(metaclass=abstracts.Interface):
"""Object that has a `loop`."""
@property # type: ignore
@abstracts.interfacemethod
def loop(self) -> asyncio.AbstractEve... | 25.928571 | 67 | 0.689624 | 117 | 1,089 | 6.34188 | 0.435897 | 0.056604 | 0.072776 | 0.072776 | 0.301887 | 0.235849 | 0.118598 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1,089 | 41 | 68 | 26.560976 | 0.876033 | 0.15427 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0.043478 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
07b175063d7db812fd6595649c1801e80e819a5c | 1,290 | py | Python | vyperlogix/win/UserGetInfo.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | 1 | 2020-09-29T01:36:33.000Z | 2020-09-29T01:36:33.000Z | vyperlogix/win/UserGetInfo.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | vyperlogix/win/UserGetInfo.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | __copyright__ = """\
(c). Copyright 2008-2013, Vyper Logix Corp.,
All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational use only.,
http://www.VyperLogix.com for details
THE AUTHOR VYPER LOGIX CORP DIS... | 30.714286 | 73 | 0.727132 | 172 | 1,290 | 5.319767 | 0.639535 | 0.021858 | 0.030601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03263 | 0.192248 | 1,290 | 42 | 74 | 30.714286 | 0.845489 | 0 | 0 | 0 | 0 | 0 | 0.594888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07b3a60ac5f778dee2e6769a90789bf32c7fe7b1 | 2,520 | py | Python | decorator/clothing.py | kinglion580/python_design_pattern | 8684fa4554fbcb2f5f6dfc0aa0c50ac4b0f42def | [
"MIT"
] | null | null | null | decorator/clothing.py | kinglion580/python_design_pattern | 8684fa4554fbcb2f5f6dfc0aa0c50ac4b0f42def | [
"MIT"
] | null | null | null | decorator/clothing.py | kinglion580/python_design_pattern | 8684fa4554fbcb2f5f6dfc0aa0c50ac4b0f42def | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
class Person(metaclass=ABCMeta):
def __init__(self, name):
self._name = name
@abstractmethod
def wear(self):
print("clothing")
class Engineer(Person):
def __init__(self, name, skill):
super().__init__(name)
self.__skill = skill... | 22.300885 | 111 | 0.648413 | 261 | 2,520 | 5.908046 | 0.210728 | 0.045396 | 0.071336 | 0.077173 | 0.330739 | 0.303502 | 0.278859 | 0.278859 | 0.278859 | 0.278859 | 0 | 0 | 0.234921 | 2,520 | 112 | 112 | 22.5 | 0.799793 | 0 | 0 | 0.394737 | 0 | 0 | 0.061905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0.013158 | 0.013158 | 0.026316 | 0.486842 | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07b9a804ec3d2bb6f3aefd71e3627ca02d94f171 | 15,255 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenodemacgroups_34e1724b78ebdaead9952262e204cb39.py | rfrye-github/ixnetwork_restpy | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenodemacgroups_34e1724b78ebdaead9952262e204cb39.py | rfrye-github/ixnetwork_restpy | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenodemacgroups_34e1724b78ebdaead9952262e204cb39.py | rfrye-github/ixnetwork_restpy | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | [
"MIT"
] | null | null | null | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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, ... | 49.529221 | 353 | 0.694526 | 1,578 | 15,255 | 6.613435 | 0.157795 | 0.030663 | 0.024147 | 0.033634 | 0.658107 | 0.631755 | 0.582311 | 0.57867 | 0.562955 | 0.490035 | 0 | 0.000682 | 0.230678 | 15,255 | 307 | 354 | 49.690554 | 0.888548 | 0.511898 | 0 | 0.116505 | 0 | 0 | 0.168315 | 0.105281 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291262 | false | 0 | 0.019417 | 0 | 0.504854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07bcf827107c71523aac33e218cda8341ec33ab7 | 1,805 | py | Python | moozy_admin/migrations/0001_initial.py | meetthecoder/moozy | e21dab01f2aab4c5a4b2c4151f8408138cf681a5 | [
"MIT"
] | null | null | null | moozy_admin/migrations/0001_initial.py | meetthecoder/moozy | e21dab01f2aab4c5a4b2c4151f8408138cf681a5 | [
"MIT"
] | null | null | null | moozy_admin/migrations/0001_initial.py | meetthecoder/moozy | e21dab01f2aab4c5a4b2c4151f8408138cf681a5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-31 01:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AttributeCategory',
fields... | 42.97619 | 169 | 0.596676 | 188 | 1,805 | 5.56383 | 0.345745 | 0.115679 | 0.071702 | 0.07457 | 0.538241 | 0.538241 | 0.459847 | 0.459847 | 0.459847 | 0.413002 | 0 | 0.017712 | 0.249307 | 1,805 | 41 | 170 | 44.02439 | 0.754244 | 0.024931 | 0 | 0.5 | 1 | 0 | 0.137656 | 0.013652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07c479348f3654c4808895a8f06ce9dca20bdbe7 | 7,319 | py | Python | deepgaze/motion_detection.py | adrshm91/deepgaze | 59b3f68e64c49d21d20e264df05ae6b38dd02a6a | [
"MIT"
] | 1 | 2018-09-13T03:29:05.000Z | 2018-09-13T03:29:05.000Z | deepgaze/motion_detection.py | adrshm91/deepgaze | 59b3f68e64c49d21d20e264df05ae6b38dd02a6a | [
"MIT"
] | null | null | null | deepgaze/motion_detection.py | adrshm91/deepgaze | 59b3f68e64c49d21d20e264df05ae6b38dd02a6a | [
"MIT"
] | 1 | 2021-02-23T17:10:33.000Z | 2021-02-23T17:10:33.000Z | #!/usr/bin/env python
#The MIT License (MIT)
#Copyright (c) 2016 Massimiliano Patacchiola
#
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
#MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ... | 45.179012 | 141 | 0.723323 | 972 | 7,319 | 5.404321 | 0.349794 | 0.037122 | 0.017133 | 0.016752 | 0.235104 | 0.180088 | 0.180088 | 0.173425 | 0.173425 | 0.157815 | 0 | 0.011054 | 0.233638 | 7,319 | 161 | 142 | 45.459627 | 0.925477 | 0.08881 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07c5d2e6ad01f8b9aaef7c41cfb5b34890ead449 | 333 | py | Python | Xian/week 6/47 Count Even and Odd.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | Xian/week 6/47 Count Even and Odd.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | Xian/week 6/47 Count Even and Odd.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | '''
Write a program to get 3 integers from keyboard, then find out how many even and odd numbers there
are. Finally, print ofor _ in range(3)nd “odd” followed by quantity of the even and odd number.
'''
seq = (int(input()) for _ in range(3))
even = sum(1 for i in seq if i % 2 ==0)
print(f'even {even}', f'odd {3-even}'... | 33.3 | 98 | 0.66967 | 65 | 333 | 3.4 | 0.692308 | 0.063348 | 0.090498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026022 | 0.192192 | 333 | 9 | 99 | 37 | 0.795539 | 0.582583 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07c6563c9db43e904c90f80dbb06e00a45477468 | 15,093 | py | Python | calculate_features.py | btrotta/kaggle-plasticc | 910a6798da337854fd9aeeebc3ee713dfe6c22a7 | [
"MIT"
] | 22 | 2018-12-18T08:11:10.000Z | 2020-08-20T17:39:38.000Z | calculate_features.py | btrotta/kaggle-plasticc | 910a6798da337854fd9aeeebc3ee713dfe6c22a7 | [
"MIT"
] | null | null | null | calculate_features.py | btrotta/kaggle-plasticc | 910a6798da337854fd9aeeebc3ee713dfe6c22a7 | [
"MIT"
] | 4 | 2019-01-01T14:07:52.000Z | 2022-01-06T15:43:17.000Z | import pandas as pd
import numpy as np
import gc
import os
# read data
col_dict = {'mjd': np.float64, 'flux': np.float32, 'flux_err': np.float32, 'object_id': np.int32, 'passband': np.int8,
'detected': np.int8}
train_meta = pd.read_csv(os.path.join('data', 'training_set_metadata.csv'))
train = p... | 62.626556 | 121 | 0.638177 | 2,137 | 15,093 | 4.22555 | 0.126813 | 0.054264 | 0.051384 | 0.053488 | 0.536877 | 0.457697 | 0.372868 | 0.307641 | 0.213178 | 0.186822 | 0 | 0.015312 | 0.203803 | 15,093 | 240 | 122 | 62.8875 | 0.736124 | 0.107202 | 0 | 0.088398 | 0 | 0 | 0.180089 | 0.006743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01105 | false | 0.18232 | 0.022099 | 0 | 0.044199 | 0.01105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07dc1dabca6343d494fb011957be44e4456cdbec | 3,768 | py | Python | user/views.py | vis7/connection | 10f39dcc232887ad2f8af155bd685bd536a80a2d | [
"MIT"
] | 1 | 2021-07-02T04:45:29.000Z | 2021-07-02T04:45:29.000Z | user/views.py | vis7/connection | 10f39dcc232887ad2f8af155bd685bd536a80a2d | [
"MIT"
] | null | null | null | user/views.py | vis7/connection | 10f39dcc232887ad2f8af155bd685bd536a80a2d | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from django.urls import reverse_lazy
from django.views.generic import (
CreateView,
UpdateView,
DeleteView,
DetailView,
ListView
)
from .forms import UserModelForm, UserProfileModelForm, AdvertiserModelForm
from .models import User, Advertiser
... | 33.345133 | 112 | 0.690552 | 461 | 3,768 | 5.409978 | 0.255965 | 0.033681 | 0.064154 | 0.040096 | 0.347233 | 0.278268 | 0.109062 | 0.109062 | 0.077787 | 0.077787 | 0 | 0.00309 | 0.226911 | 3,768 | 112 | 113 | 33.642857 | 0.853072 | 0.119427 | 0 | 0.310345 | 0 | 0 | 0.110236 | 0.086614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
07dd4f29fbf2a54b1e32bf5e782195607e6fd34e | 3,375 | py | Python | wbia/detecttools/gitutil/meta_util_git.py | dylanirion/wildbook-ia | 3b7c30a6e123d87999950bfbb5035c4d9c1a6f5d | [
"Apache-2.0"
] | 6 | 2020-06-21T11:45:08.000Z | 2020-11-18T16:43:15.000Z | wbia/detecttools/gitutil/meta_util_git.py | dylanirion/wildbook-ia | 3b7c30a6e123d87999950bfbb5035c4d9c1a6f5d | [
"Apache-2.0"
] | 58 | 2020-06-05T19:02:48.000Z | 2021-01-14T15:27:33.000Z | wbia/detecttools/gitutil/meta_util_git.py | dylanirion/wildbook-ia | 3b7c30a6e123d87999950bfbb5035c4d9c1a6f5d | [
"Apache-2.0"
] | 3 | 2020-08-05T17:46:08.000Z | 2020-11-11T05:27:01.000Z | # -*- coding: utf-8 -*-
from os.path import expanduser, normpath, realpath, join
import os
from itertools import izip
import platform
USER_ID = None
IS_USER = False
PERMITTED_REPOS = []
format_dict = {
'https': ('.com/', 'https://'),
'ssh': ('.com:', 'git@'),
}
def get_computer_name():
return platform.... | 26.162791 | 88 | 0.630222 | 483 | 3,375 | 4.146998 | 0.246377 | 0.059411 | 0.031952 | 0.037943 | 0.184224 | 0.129306 | 0.115826 | 0.075886 | 0.075886 | 0.037943 | 0 | 0.005503 | 0.246222 | 3,375 | 128 | 89 | 26.367188 | 0.78184 | 0.342222 | 0 | 0 | 0 | 0 | 0.028532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0.065574 | 0.065574 | 0.442623 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07deae71441069edfa0b7613df20ba8ca665bd07 | 2,207 | py | Python | qualifiedname_test.py | maxfischer2781/qualifiedname | 8aea438f231130f167c3827890c2ce26a8236754 | [
"MIT"
] | null | null | null | qualifiedname_test.py | maxfischer2781/qualifiedname | 8aea438f231130f167c3827890c2ce26a8236754 | [
"MIT"
] | null | null | null | qualifiedname_test.py | maxfischer2781/qualifiedname | 8aea438f231130f167c3827890c2ce26a8236754 | [
"MIT"
] | null | null | null | import unittest
import sys
from qualifiedname import QualNameMeta, set_qualname_recursive
PY3K = sys.version_info >= (3,)
class QualNameMeta2(QualNameMeta):
def __new__(cls, *args, **kwargs):
return QualNameMeta.__new__(cls, *args, **kwargs)
class NoScope(object):
pass
class Scope1Standalone(obje... | 29.039474 | 116 | 0.690983 | 216 | 2,207 | 6.694444 | 0.277778 | 0.116183 | 0.074689 | 0.069156 | 0.153527 | 0.109267 | 0.086445 | 0 | 0 | 0 | 0 | 0.033082 | 0.219302 | 2,207 | 75 | 117 | 29.426667 | 0.806152 | 0.049388 | 0 | 0.218182 | 0 | 0 | 0.230072 | 0.097852 | 0 | 0 | 0 | 0 | 0.127273 | 1 | 0.127273 | false | 0.072727 | 0.054545 | 0.018182 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07dec08d8653a42ce14a9784620c51ba3ac0d3de | 1,136 | py | Python | mike_experiments/KNN_BERT.py | awermenlinger/Milestone2 | 3adafef2578cbd5c390ff3aec0352c54022cb7f4 | [
"MIT"
] | 2 | 2021-07-09T01:00:13.000Z | 2021-07-27T09:44:58.000Z | mike_experiments/KNN_BERT.py | awermenlinger/Milestone2 | 3adafef2578cbd5c390ff3aec0352c54022cb7f4 | [
"MIT"
] | null | null | null | mike_experiments/KNN_BERT.py | awermenlinger/Milestone2 | 3adafef2578cbd5c390ff3aec0352c54022cb7f4 | [
"MIT"
] | null | null | null | from get_dataframe import get_dfs
from write_results import results_to_txt
from datetime import datetime
import numpy as np
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn.multioutput import MultiOutputClassifier
from sklearn.neighbors import KNeighborsClassifier
from sentence_transforme... | 28.4 | 104 | 0.807218 | 170 | 1,136 | 5.141176 | 0.458824 | 0.040046 | 0.02746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012783 | 0.104754 | 1,136 | 39 | 105 | 29.128205 | 0.846608 | 0.044894 | 0 | 0 | 0 | 0 | 0.052632 | 0.034164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07decd40266225c057e5dfcd54c31a96827bf720 | 4,615 | py | Python | simulate.py | m-i-williams/Quantum-Multicast | bf5cc1fa6067b6e05d71993398aad6bd36f65397 | [
"MIT"
] | 1 | 2021-05-26T19:38:00.000Z | 2021-05-26T19:38:00.000Z | simulate.py | m-i-williams/Quantum-Multicast | bf5cc1fa6067b6e05d71993398aad6bd36f65397 | [
"MIT"
] | 15 | 2021-01-29T13:20:02.000Z | 2021-02-17T12:01:59.000Z | simulate.py | ooroo2/Quantum-Multicast | bf5cc1fa6067b6e05d71993398aad6bd36f65397 | [
"MIT"
] | null | null | null | import logging
import os
from datetime import datetime
from time import time
import netsquid as ns
import netsquid.qubits.qubitapi as qapi
import numpy as np
from netsquid.nodes import Network
from qmulticast.protocols import BipartiteProtocol, MultipartiteProtocol
from qmulticast.utils import create_network
from qmu... | 33.442029 | 128 | 0.576815 | 500 | 4,615 | 5.208 | 0.342 | 0.025346 | 0.010369 | 0.013825 | 0.139785 | 0.139785 | 0.139785 | 0.139785 | 0.077573 | 0.077573 | 0 | 0.007358 | 0.322644 | 4,615 | 137 | 129 | 33.686131 | 0.825656 | 0.142145 | 0 | 0.11828 | 0 | 0.021505 | 0.17751 | 0.043545 | 0 | 0 | 0 | 0.014599 | 0 | 1 | 0.021505 | false | 0 | 0.11828 | 0 | 0.139785 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07e023e9bdb88443e16d7700c96e3c0772e26b38 | 291 | py | Python | leads/migrations/0003_delete_user.py | rakibul-islam-raju/django-crm | bd2fe84e6662b2d2425d890c64a9f15c3b76127a | [
"MIT"
] | null | null | null | leads/migrations/0003_delete_user.py | rakibul-islam-raju/django-crm | bd2fe84e6662b2d2425d890c64a9f15c3b76127a | [
"MIT"
] | null | null | null | leads/migrations/0003_delete_user.py | rakibul-islam-raju/django-crm | bd2fe84e6662b2d2425d890c64a9f15c3b76127a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-29 17:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('leads', '0002_auto_20210129_1744'),
]
operations = [
migrations.DeleteModel(
name='User',
),
]
| 17.117647 | 47 | 0.597938 | 32 | 291 | 5.34375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149758 | 0.28866 | 291 | 16 | 48 | 18.1875 | 0.676329 | 0.154639 | 0 | 0 | 1 | 0 | 0.131148 | 0.094262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07e0c8065a5e59a93b357bc72478dec2762d8f10 | 40,094 | py | Python | pygsti/extras/rb/simulate.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 73 | 2016-01-28T05:02:05.000Z | 2022-03-30T07:46:33.000Z | pygsti/extras/rb/simulate.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 113 | 2016-02-25T15:32:18.000Z | 2022-03-31T13:18:13.000Z | pygsti/extras/rb/simulate.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 41 | 2016-03-15T19:32:07.000Z | 2022-02-16T10:22:05.000Z | """ Clifford circuits with Pauli errors simulation functions """
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U.S.... | 39.501478 | 120 | 0.585399 | 5,499 | 40,094 | 4.176941 | 0.11002 | 0.04271 | 0.045714 | 0.049327 | 0.530411 | 0.500457 | 0.479777 | 0.457486 | 0.433628 | 0.41974 | 0 | 0.016249 | 0.290866 | 40,094 | 1,014 | 121 | 39.540434 | 0.791608 | 0.384147 | 0 | 0.48503 | 0 | 0 | 0.080623 | 0.007368 | 0 | 0 | 0 | 0.013807 | 0.007984 | 1 | 0.0499 | false | 0.001996 | 0.013972 | 0.023952 | 0.169661 | 0.017964 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07ecc187ac195c8f5aeaf6a8e45701034ee2643f | 1,850 | py | Python | scripts/find-empty-hooks.py | soleil0-0/pyinstaller | 4249a7347f6b81aba9825ded8addb92ee0f85ea9 | [
"Apache-2.0"
] | 2 | 2020-09-13T09:15:02.000Z | 2021-07-04T04:26:50.000Z | scripts/find-empty-hooks.py | jeremysanders/pyinstaller | 321b24f9a9a5978337735816b36ca6b4a90a2fb4 | [
"Apache-2.0"
] | 3 | 2021-06-08T22:52:09.000Z | 2021-09-08T02:48:20.000Z | scripts/find-empty-hooks.py | jeremysanders/pyinstaller | 321b24f9a9a5978337735816b36ca6b4a90a2fb4 | [
"Apache-2.0"
] | 2 | 2020-12-28T21:46:59.000Z | 2021-01-24T12:21:37.000Z | #!/usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013-2020, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the bootloader.
#
# The full license is i... | 36.27451 | 87 | 0.680541 | 254 | 1,850 | 4.897638 | 0.53937 | 0.033762 | 0.017685 | 0.032154 | 0.041801 | 0.041801 | 0 | 0 | 0 | 0 | 0 | 0.008866 | 0.146486 | 1,850 | 50 | 88 | 37 | 0.778974 | 0.629189 | 0 | 0 | 0 | 0 | 0.105422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07ef94969e2f41e000f5d1952af1f00a1f225757 | 266 | py | Python | examples/pywrentest.py | spitfiredd/pywren-ibm-cloud | 3bc0818ffc510b32770d695b16755c8980feaefd | [
"Apache-2.0"
] | null | null | null | examples/pywrentest.py | spitfiredd/pywren-ibm-cloud | 3bc0818ffc510b32770d695b16755c8980feaefd | [
"Apache-2.0"
] | null | null | null | examples/pywrentest.py | spitfiredd/pywren-ibm-cloud | 3bc0818ffc510b32770d695b16755c8980feaefd | [
"Apache-2.0"
] | null | null | null |
"""
Simple PyWren example using one single function invocation
"""
import pywren_ibm_cloud as pywren
def my_function(x):
return x + 7
if __name__ == '__main__':
pw = pywren.ibm_cf_executor()
pw.call_async(my_function, 3)
print (pw.get_result())
| 16.625 | 58 | 0.699248 | 39 | 266 | 4.358974 | 0.74359 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.195489 | 266 | 15 | 59 | 17.733333 | 0.785047 | 0.218045 | 0 | 0 | 0 | 0 | 0.040201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
07f621163110d20fdb8940fa03f8a7d7593ce275 | 4,168 | py | Python | students/k3340/laboratory_works/VoronovAlexey/lab1/raceapp/migrations/0001_initial.py | voronoff2803/ITMO_ICT_WebProgramming_2020 | c59d8b2cdefe8b821049a2716733070983d08ad2 | [
"MIT"
] | null | null | null | students/k3340/laboratory_works/VoronovAlexey/lab1/raceapp/migrations/0001_initial.py | voronoff2803/ITMO_ICT_WebProgramming_2020 | c59d8b2cdefe8b821049a2716733070983d08ad2 | [
"MIT"
] | null | null | null | students/k3340/laboratory_works/VoronovAlexey/lab1/raceapp/migrations/0001_initial.py | voronoff2803/ITMO_ICT_WebProgramming_2020 | c59d8b2cdefe8b821049a2716733070983d08ad2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-06-15 19:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 51.45679 | 181 | 0.603407 | 426 | 4,168 | 5.751174 | 0.241784 | 0.125714 | 0.063673 | 0.100816 | 0.626122 | 0.59102 | 0.59102 | 0.527755 | 0.527755 | 0.485714 | 0 | 0.019458 | 0.247841 | 4,168 | 80 | 182 | 52.1 | 0.762041 | 0.010797 | 0 | 0.534247 | 1 | 0 | 0.121572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041096 | 0 | 0.09589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07f66389c7a29fd50714626c835a72be179c2d47 | 689 | py | Python | domain_api/migrations/0020_auto_20170604_0332.py | heytrav/drs-project | 68caa7e9bc8dea8963ddef561b42d05a7a88becd | [
"MIT"
] | 1 | 2020-07-01T02:35:14.000Z | 2020-07-01T02:35:14.000Z | domain_api/migrations/0020_auto_20170604_0332.py | heytrav/drs-api | 68caa7e9bc8dea8963ddef561b42d05a7a88becd | [
"MIT"
] | 2 | 2020-06-05T17:25:14.000Z | 2021-03-19T21:53:44.000Z | domain_api/migrations/0020_auto_20170604_0332.py | heytrav/drs-api | 68caa7e9bc8dea8963ddef561b42d05a7a88becd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-06-04 03:32
from __future__ import unicode_literals
from django.db import migrations
import django_mysql.models
class Migration(migrations.Migration):
dependencies = [
('domain_api', '0019_auto_20170603_1913'),
]
operations = [
... | 25.518519 | 73 | 0.626996 | 75 | 689 | 5.546667 | 0.613333 | 0.079327 | 0.122596 | 0.129808 | 0.322115 | 0.322115 | 0.322115 | 0.322115 | 0.322115 | 0.322115 | 0 | 0.064833 | 0.261248 | 689 | 26 | 74 | 26.5 | 0.752456 | 0.098694 | 0 | 0.421053 | 1 | 0 | 0.126214 | 0.037217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07ffaa6b5c623cfb481f277f7b72c0c92bcce8d0 | 435 | py | Python | First_Ten/08.py | NiCrook/Ebabit_Exercises | 235f63e3b6053cbad05d7a3a97595deef085779c | [
"MIT"
] | null | null | null | First_Ten/08.py | NiCrook/Ebabit_Exercises | 235f63e3b6053cbad05d7a3a97595deef085779c | [
"MIT"
] | null | null | null | First_Ten/08.py | NiCrook/Ebabit_Exercises | 235f63e3b6053cbad05d7a3a97595deef085779c | [
"MIT"
] | null | null | null | # https://edabit.com/challenge/KWoj7kWiHRqJtG6S2
# There is a single operator in Python
# capable of providing the remainder of a division operation.
# Two numbers are passed as parameters.
# The first parameter divided by the second parameter will have a remainder, possibly zero.
# Return that value.
def... | 29 | 93 | 0.728736 | 60 | 435 | 5.283333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025788 | 0.197701 | 435 | 14 | 94 | 31.071429 | 0.882521 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07ffdce399d430f07a2c590c811d327fdd561192 | 5,823 | py | Python | src/tickets/migrations/0001_initial.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | null | null | null | src/tickets/migrations/0001_initial.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | null | null | null | src/tickets/migrations/0001_initial.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-19 20:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
("camps", "0022_camp_colour")... | 34.455621 | 123 | 0.420745 | 414 | 5,823 | 5.789855 | 0.275362 | 0.030038 | 0.046725 | 0.073425 | 0.666249 | 0.666249 | 0.609929 | 0.609929 | 0.609929 | 0.587818 | 0 | 0.022668 | 0.477245 | 5,823 | 168 | 124 | 34.660714 | 0.764783 | 0.011678 | 0 | 0.69375 | 1 | 0 | 0.115438 | 0.007997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58015f85bd8f2d5a707214c0f6c4c970990e775b | 205 | py | Python | src/run.py | Muck-Man/muck.gg-api | 7a83b41cec17f5dfda6fd89e8952a89d1c36a430 | [
"MIT"
] | null | null | null | src/run.py | Muck-Man/muck.gg-api | 7a83b41cec17f5dfda6fd89e8952a89d1c36a430 | [
"MIT"
] | null | null | null | src/run.py | Muck-Man/muck.gg-api | 7a83b41cec17f5dfda6fd89e8952a89d1c36a430 | [
"MIT"
] | null | null | null | import asyncio
from config.config import cfg
from server.server import Server
loop = asyncio.get_event_loop()
server = Server(loop=loop, **cfg)
loop.run_until_complete(server.initialize())
server.run() | 18.636364 | 44 | 0.785366 | 30 | 205 | 5.233333 | 0.433333 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107317 | 205 | 11 | 45 | 18.636364 | 0.857924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5801616bf6c9c97bb3200edf26d6a200ee3da5b7 | 2,386 | py | Python | burger_war_dev/scripts/agents/agent.py | kenkenjlab/burger_war_dev | 0d6a85bca7896fa5cd7abc32cb082902523de983 | [
"BSD-3-Clause"
] | null | null | null | burger_war_dev/scripts/agents/agent.py | kenkenjlab/burger_war_dev | 0d6a85bca7896fa5cd7abc32cb082902523de983 | [
"BSD-3-Clause"
] | 9 | 2021-02-23T02:39:39.000Z | 2021-03-18T03:14:46.000Z | burger_war_dev/scripts/agents/agent.py | kenkenjlab/burger_war_dev | 0d6a85bca7896fa5cd7abc32cb082902523de983 | [
"BSD-3-Clause"
] | 2 | 2021-02-19T02:06:41.000Z | 2021-11-29T11:53:53.000Z | #!python3
#-*- coding: utf-8 -*-
from brain import Brain
class Agent:
"""
An agent for DDQN
"""
def __init__(self, num_actions, batch_size=32, capacity=10000, gamma=0.99, prioritized=True, lr=0.0005):
"""
Args:
num_actions (int): number of actions to output
ba... | 25.115789 | 111 | 0.533529 | 258 | 2,386 | 4.817829 | 0.290698 | 0.065165 | 0.035398 | 0.04827 | 0.212389 | 0.127112 | 0.109413 | 0.109413 | 0.109413 | 0 | 0 | 0.011192 | 0.36337 | 2,386 | 94 | 112 | 25.382979 | 0.806452 | 0.021794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0.043478 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
580282a9ff96be37836e0c147796812e86e00171 | 2,949 | py | Python | AP/analysis/ap_setup_project.py | sgagnon/Gagnon_CerebralCortex_2018 | 4412381014f129c1451ffa42ba03712e1fb8e2df | [
"Unlicense",
"MIT"
] | 1 | 2022-01-27T10:00:37.000Z | 2022-01-27T10:00:37.000Z | AP/analysis/ap_setup_project.py | sgagnon/Gagnon_CerebralCortex_2018 | 4412381014f129c1451ffa42ba03712e1fb8e2df | [
"Unlicense",
"MIT"
] | null | null | null | AP/analysis/ap_setup_project.py | sgagnon/Gagnon_CerebralCortex_2018 | 4412381014f129c1451ffa42ba03712e1fb8e2df | [
"Unlicense",
"MIT"
] | null | null | null | #! /usr/bin/env python
import os
import re
import sys
import imp
import os.path as op
import numpy as np
# for dprime
from scipy.stats import norm
from math import exp,sqrt
Z = norm.ppf
def gather_experiment_info(exp_name=None, dirs=None, altmodel=None):
"""Import an experiment module and add some formatted info... | 29.49 | 81 | 0.634452 | 466 | 2,949 | 3.886266 | 0.26824 | 0.027057 | 0.019879 | 0.037548 | 0.412479 | 0.349531 | 0.321369 | 0.321369 | 0.321369 | 0.321369 | 0 | 0.015011 | 0.231943 | 2,949 | 99 | 82 | 29.787879 | 0.784547 | 0.218718 | 0 | 0.338983 | 0 | 0 | 0.030194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135593 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5805272d1fda9cf37ef9a5457a71e781615654e8 | 169 | py | Python | exercicios/ex032.py | evertoncorreadias/aulas | 3a99a7c4223caa7cbda7a891b619875135847e9d | [
"MIT"
] | null | null | null | exercicios/ex032.py | evertoncorreadias/aulas | 3a99a7c4223caa7cbda7a891b619875135847e9d | [
"MIT"
] | null | null | null | exercicios/ex032.py | evertoncorreadias/aulas | 3a99a7c4223caa7cbda7a891b619875135847e9d | [
"MIT"
] | null | null | null | ano=int(input('que ano quer analisar'))
if ano%4==0 and ano % 100 !=0 or ano %400==0:
print('o ano é bissexto'.format (ano))
else:
print('o ano nao é bissesto')
| 28.166667 | 45 | 0.633136 | 33 | 169 | 3.242424 | 0.636364 | 0.11215 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 0.195266 | 169 | 5 | 46 | 33.8 | 0.713235 | 0 | 0 | 0 | 0 | 0 | 0.337278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
6af71bd077e90af6dbf7967026ea72522d0b28c8 | 60,536 | py | Python | src/mlab/awmstools.py | rsdeng/mlab | 72a98adf6499f548848ad44c604f74d68f07fe4f | [
"MIT"
] | 95 | 2018-04-13T03:34:51.000Z | 2022-03-30T10:10:28.000Z | _bak/v0.5/Matlab/mlab-1.1.4/src/mlab/awmstools.py | Dlaiven/DeepLearning_Wavelet-LSTM | 1606c16005a5338333b4943f782f57311c6b5e49 | [
"MIT"
] | 15 | 2015-03-04T23:25:26.000Z | 2020-10-19T07:51:19.000Z | _bak/v0.5/Matlab/mlab-1.1.4/src/mlab/awmstools.py | Dlaiven/DeepLearning_Wavelet-LSTM | 1606c16005a5338333b4943f782f57311c6b5e49 | [
"MIT"
] | 35 | 2018-07-27T09:21:18.000Z | 2021-11-30T02:13:01.000Z | # -*- encoding: utf-8 -*-
#############################################################################
################## awmstools : Common functions for python ###################
##############################################################################
##
## o author: Alexander Schmolck (A.Schmolck@gmx.net)
##... | 29.429266 | 98 | 0.57797 | 8,228 | 60,536 | 4.191298 | 0.158119 | 0.005625 | 0.00635 | 0.003596 | 0.154497 | 0.122311 | 0.080119 | 0.054515 | 0.041437 | 0.03239 | 0 | 0.034238 | 0.259399 | 60,536 | 2,056 | 99 | 29.44358 | 0.734927 | 0.068389 | 0 | 0.187954 | 0 | 0.009346 | 0.136331 | 0.026677 | 0 | 0 | 0 | 0.008268 | 0.013499 | 0 | null | null | 0.004154 | 0.033229 | null | null | 0.010384 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6af8c241e9fc3558d1b2d0a099d166278ce66761 | 2,712 | py | Python | rfc_manager/main.py | AlmightyYakob/RFC-Manager | c8478d0d10221193bc18dca8ac088e580eb9c021 | [
"Apache-2.0"
] | 1 | 2020-12-10T16:51:16.000Z | 2020-12-10T16:51:16.000Z | rfc_manager/main.py | AlmightyYakob/RFC-Manager | c8478d0d10221193bc18dca8ac088e580eb9c021 | [
"Apache-2.0"
] | 3 | 2020-12-09T19:12:50.000Z | 2020-12-09T19:13:23.000Z | rfc_manager/main.py | AlmightyYakob/RFC-Manager | c8478d0d10221193bc18dca8ac088e580eb9c021 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import re
import click
import shutil
from datetime import datetime
from pathlib import Path
from git.exc import InvalidGitRepositoryError
import sys
from rfc_manager.utils import get_context, get_github_username, burn_version
try:
context = get_context()
except InvalidGitRepositoryError:
... | 21.023256 | 76 | 0.640118 | 358 | 2,712 | 4.723464 | 0.363128 | 0.041396 | 0.041396 | 0.040213 | 0.165583 | 0.165583 | 0.137197 | 0.137197 | 0.137197 | 0.137197 | 0 | 0.006138 | 0.219027 | 2,712 | 128 | 77 | 21.1875 | 0.792257 | 0.021386 | 0 | 0.27381 | 0 | 0 | 0.110688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.071429 | 0.095238 | 0 | 0.22619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6afab502597cf9a4eaa918498344a1e654751f42 | 345 | py | Python | python/Selection Sorting/test_selection_sorting.py | Catfish1210/python-examples | 0c2e1574478ae9e1634274eb2df5b8ff0202f9e3 | [
"MIT"
] | null | null | null | python/Selection Sorting/test_selection_sorting.py | Catfish1210/python-examples | 0c2e1574478ae9e1634274eb2df5b8ff0202f9e3 | [
"MIT"
] | null | null | null | python/Selection Sorting/test_selection_sorting.py | Catfish1210/python-examples | 0c2e1574478ae9e1634274eb2df5b8ff0202f9e3 | [
"MIT"
] | 1 | 2021-06-16T14:23:45.000Z | 2021-06-16T14:23:45.000Z | import unittest
from selection_sorting import selection_sorting
class TestSelectioSorting(unittest.TestCase):
def test_selectio_sortingg(self):
test_array = [1, 3, 2, 4, 5]
sorted_array = selection_sorting(test_array)
self.assertEqual(sorted_array, [1, 2, 3, 4, 5])
if __name__ == '__main... | 24.642857 | 55 | 0.704348 | 44 | 345 | 5.136364 | 0.545455 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.194203 | 345 | 13 | 56 | 26.538462 | 0.776978 | 0 | 0 | 0 | 0 | 0 | 0.023188 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6afc5610b9d9acaa4c88101d4feedbea9a22db25 | 875 | py | Python | camp_registration/urls.py | chschenk/qcos | 7eaa5f2a599f000c72e1ea2a17f6e663ddc14318 | [
"MIT"
] | null | null | null | camp_registration/urls.py | chschenk/qcos | 7eaa5f2a599f000c72e1ea2a17f6e663ddc14318 | [
"MIT"
] | null | null | null | camp_registration/urls.py | chschenk/qcos | 7eaa5f2a599f000c72e1ea2a17f6e663ddc14318 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import add_registration, edit_registration, process_registration, finalize_registration
from .views import RegistrationList, CampList, RegistrationDelete
app_name = "camp_registration"
urlpatterns = [
path('', CampList.as_view(template_name="camp_registration/registration_camp... | 62.5 | 110 | 0.787429 | 103 | 875 | 6.524272 | 0.281553 | 0.044643 | 0.166667 | 0.184524 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059429 | 875 | 14 | 111 | 62.5 | 0.816525 | 0 | 0 | 0 | 0 | 0 | 0.378995 | 0.204338 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aff6c8d210019e4abb0d3f4dc01f175439b47b1 | 2,833 | py | Python | cloudroast/meniscus/smoke/status.py | kurhula/cloudroast | dcccce6b3af9d150cb667fc05bd051e97b5f6e2c | [
"Apache-2.0"
] | null | null | null | cloudroast/meniscus/smoke/status.py | kurhula/cloudroast | dcccce6b3af9d150cb667fc05bd051e97b5f6e2c | [
"Apache-2.0"
] | null | null | null | cloudroast/meniscus/smoke/status.py | kurhula/cloudroast | dcccce6b3af9d150cb667fc05bd051e97b5f6e2c | [
"Apache-2.0"
] | 1 | 2020-04-13T17:47:04.000Z | 2020-04-13T17:47:04.000Z | """
Copyright 2013 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 35.4125 | 76 | 0.699965 | 378 | 2,833 | 5.047619 | 0.346561 | 0.080713 | 0.062893 | 0.077044 | 0.319182 | 0.237421 | 0.203878 | 0.187631 | 0.187631 | 0.187631 | 0 | 0.023476 | 0.218143 | 2,833 | 79 | 77 | 35.860759 | 0.837923 | 0.24497 | 0 | 0.266667 | 0 | 0 | 0.011743 | 0 | 0 | 0 | 0 | 0.012658 | 0.222222 | 1 | 0.155556 | false | 0 | 0.022222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed05ac57bda773c4bf386473a1fc661fa24ba754 | 1,510 | py | Python | tests/opytimizer/optimizers/science/test_moa.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 528 | 2018-10-01T20:00:09.000Z | 2022-03-27T11:15:31.000Z | tests/opytimizer/optimizers/science/test_moa.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 17 | 2019-10-30T00:47:03.000Z | 2022-03-21T11:39:28.000Z | tests/opytimizer/optimizers/science/test_moa.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 35 | 2018-10-01T20:03:23.000Z | 2022-03-20T03:54:15.000Z | from opytimizer.optimizers.science import moa
from opytimizer.spaces import search
def test_moa_params():
params = {
'alpha': 1.0,
'rho': 2.0,
}
new_moa = moa.MOA(params=params)
assert new_moa.alpha == 1.0
assert new_moa.rho == 2.0
def test_moa_params_setter():
new_moa = m... | 20.684932 | 83 | 0.55894 | 213 | 1,510 | 3.723005 | 0.164319 | 0.174023 | 0.0971 | 0.090794 | 0.704918 | 0.686003 | 0.6343 | 0.6343 | 0.619168 | 0.619168 | 0 | 0.050197 | 0.327152 | 1,510 | 72 | 84 | 20.972222 | 0.730315 | 0 | 0 | 0.653061 | 0 | 0 | 0.006623 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 1 | 0.081633 | false | 0 | 0.040816 | 0 | 0.122449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed06af04fbbb1b55df21112fe0d2311fb0ce013a | 4,932 | py | Python | src/gnoi/proto/legacy.py | python-gnxi/python-gnoi-proto | f2071613f77a4d96768ecb073e68fad71a22eda9 | [
"Apache-2.0"
] | null | null | null | src/gnoi/proto/legacy.py | python-gnxi/python-gnoi-proto | f2071613f77a4d96768ecb073e68fad71a22eda9 | [
"Apache-2.0"
] | null | null | null | src/gnoi/proto/legacy.py | python-gnxi/python-gnoi-proto | f2071613f77a4d96768ecb073e68fad71a22eda9 | [
"Apache-2.0"
] | null | null | null | from gnoi.proto._legacy.bgp.bgp_pb2 import ( # noqa
ClearBGPNeighborRequest,
ClearBGPNeighborResponse,
)
from gnoi.proto._legacy.bgp.bgp_pb2_grpc import BGP, BGPServicer, BGPStub # noqa
from gnoi.proto._legacy.cert.cert_pb2 import ( # noqa
CSR,
CSRParams,
CanGenerateCSRRequest,
CanGenerateCSR... | 25.82199 | 86 | 0.745134 | 401 | 4,932 | 9.002494 | 0.456359 | 0.053186 | 0.086427 | 0.126316 | 0.209972 | 0.202216 | 0.202216 | 0.051524 | 0.029917 | 0 | 0 | 0.007769 | 0.190998 | 4,932 | 190 | 87 | 25.957895 | 0.896992 | 0.024128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.126316 | 0 | 0.126316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed0bc55b45bc0394f6ad4e2f4ab8a28f888c5b96 | 17,352 | py | Python | src/appengine/scripts/redirector.py | Acidburn0zzz/www.dartlang.org | 72fe0e9189aabf3416beb17c08eee2ff19e85220 | [
"CC-BY-3.0"
] | null | null | null | src/appengine/scripts/redirector.py | Acidburn0zzz/www.dartlang.org | 72fe0e9189aabf3416beb17c08eee2ff19e85220 | [
"CC-BY-3.0"
] | null | null | null | src/appengine/scripts/redirector.py | Acidburn0zzz/www.dartlang.org | 72fe0e9189aabf3416beb17c08eee2ff19e85220 | [
"CC-BY-3.0"
] | null | null | null | # import logging
from webapp2 import *
NEWS_POSTS = {
'/2012/01/26/revisiting-equality.html' : '/2012/01/proposed-changes-for-equality.html',
'/2012/01/20/dart-language-spec-0.07.html' : '/2012/01/dart-language-spec-v007-now-available.html',
'/2012/01/17/new-editor-build... | 52.108108 | 119 | 0.660327 | 1,902 | 17,352 | 5.967403 | 0.167192 | 0.164141 | 0.185551 | 0.047577 | 0.540088 | 0.457445 | 0.348987 | 0.310132 | 0.264317 | 0.186608 | 0 | 0.025974 | 0.143557 | 17,352 | 332 | 120 | 52.26506 | 0.73777 | 0.002651 | 0 | 0.193548 | 0 | 0.032258 | 0.445992 | 0.258741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041935 | false | 0 | 0.003226 | 0.003226 | 0.125806 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed0c9ee7546a0e1c605a0ba7c20c77704d67263d | 6,836 | py | Python | nba_api/stats/endpoints/teamvsplayer.py | adureja/nba_api | 2e1f8ee55e513689aea410bf663a09a3d7c34283 | [
"MIT"
] | 1 | 2019-02-20T19:19:19.000Z | 2019-02-20T19:19:19.000Z | nba_api/stats/endpoints/teamvsplayer.py | adureja/nba_api | 2e1f8ee55e513689aea410bf663a09a3d7c34283 | [
"MIT"
] | null | null | null | nba_api/stats/endpoints/teamvsplayer.py | adureja/nba_api | 2e1f8ee55e513689aea410bf663a09a3d7c34283 | [
"MIT"
] | 2 | 2020-08-09T06:00:19.000Z | 2022-03-04T16:39:30.000Z | from nba_api.stats.endpoints._base import Endpoint
from nba_api.stats.library.http import NBAStatsHTTP
from nba_api.stats.library.parameters import LastNGames, MeasureTypeDetailedDefense, Month, PaceAdjust, PerModeDetailed, Period, PlusMinus, Rank, Season, SeasonType, GameSegmentNullable, LeagueIDNullable, LocationNull... | 93.643836 | 3,052 | 0.641603 | 801 | 6,836 | 5.093633 | 0.174782 | 0.02549 | 0.046569 | 0.056373 | 0.466667 | 0.455882 | 0.422549 | 0.380147 | 0.370343 | 0.370343 | 0 | 0.004176 | 0.194266 | 6,836 | 72 | 3,053 | 94.944444 | 0.736565 | 0 | 0 | 0 | 0 | 0 | 0.337771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.043478 | 0 | 0.101449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed11f6eaa862f68ecee5ad9e5c62464fc93cf645 | 4,378 | py | Python | p1_unigram_tagger.py | beibeiyang/ngramtaggers | 5e5af2a64fbd44661610cabc4427eb6785e7553f | [
"Apache-2.0"
] | null | null | null | p1_unigram_tagger.py | beibeiyang/ngramtaggers | 5e5af2a64fbd44661610cabc4427eb6785e7553f | [
"Apache-2.0"
] | null | null | null | p1_unigram_tagger.py | beibeiyang/ngramtaggers | 5e5af2a64fbd44661610cabc4427eb6785e7553f | [
"Apache-2.0"
] | 1 | 2020-02-05T03:16:37.000Z | 2020-02-05T03:16:37.000Z | #! /usr/bin/python
__author__="Beibei Yang <byang1@cs.uml.edu>"
from collections import defaultdict
def replace_rare_words (oldtrainfile, newtrainfile, rarewords):
"""
read from oldtrainfile, replace the rare words with _RARE_,
and output to newtrainfile
"""
fin = open(oldtrainfile, 'r... | 30.615385 | 103 | 0.552764 | 512 | 4,378 | 4.580078 | 0.246094 | 0.034542 | 0.015352 | 0.030704 | 0.200853 | 0.125373 | 0.089552 | 0.089552 | 0.089552 | 0.089552 | 0 | 0.027759 | 0.325263 | 4,378 | 143 | 104 | 30.615385 | 0.76608 | 0.062814 | 0 | 0.27957 | 0 | 0 | 0.047589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010753 | null | null | 0.021505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed1311c6745701e06cce67aaae274a41c2f78c13 | 9,004 | py | Python | certbot/certbot/compat/os.py | queilawithaQ/certbot | 64df1fb32796fd083abd910b2ac81deaa7077c55 | [
"Apache-2.0"
] | null | null | null | certbot/certbot/compat/os.py | queilawithaQ/certbot | 64df1fb32796fd083abd910b2ac81deaa7077c55 | [
"Apache-2.0"
] | null | null | null | certbot/certbot/compat/os.py | queilawithaQ/certbot | 64df1fb32796fd083abd910b2ac81deaa7077c55 | [
"Apache-2.0"
] | null | null | null | """
This compat modules is a wrapper of the core os module that forbids usage of specific operations
(e.g. chown, chmod, getuid) that would be harmful to the Windows file security model of Certbot.
This module is intended to replace standard os module throughout certbot projects (except acme).
This module has the same... | 54.240964 | 128 | 0.72912 | 1,318 | 9,004 | 4.924127 | 0.277693 | 0.040678 | 0.049615 | 0.040678 | 0.224653 | 0.217565 | 0.134977 | 0.089368 | 0.073652 | 0.073652 | 0 | 0.001925 | 0.192359 | 9,004 | 165 | 129 | 54.569697 | 0.890539 | 0.650822 | 0 | 0.117647 | 0 | 0 | 0.387097 | 0.152644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.098039 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed144cfc6e9b8997327f24971ac86f0d62257681 | 482 | py | Python | datastore_version_manager/adapter/constants.py | statisticsnorway/microdata-datastore-version-manager | 0af6eb7aa54a01142ff0a17f80a0e72528a385e7 | [
"Apache-2.0"
] | null | null | null | datastore_version_manager/adapter/constants.py | statisticsnorway/microdata-datastore-version-manager | 0af6eb7aa54a01142ff0a17f80a0e72528a385e7 | [
"Apache-2.0"
] | 4 | 2021-11-24T12:47:24.000Z | 2022-03-22T11:16:08.000Z | datastore_version_manager/adapter/constants.py | statisticsnorway/microdata-datastore-version-manager | 0af6eb7aa54a01142ff0a17f80a0e72528a385e7 | [
"Apache-2.0"
] | null | null | null | OPERATION_TYPES = [
'ADD',
'REMOVE',
'CHANGE_DATA',
'PATCH_METADATA'
]
USER_CHANGEABLE_RELEASE_STATUSES = {
'MUTABLE': [
'DRAFT',
'PENDING_RELEASE',
'PENDING_DELETE'
],
'IMMUTABLE': [
'RELEASED',
'DELETED'
]
}
RELEASE_STATUS_ALLOWED_TRANSITIONS =... | 17.851852 | 44 | 0.556017 | 38 | 482 | 6.657895 | 0.578947 | 0.189723 | 0.150198 | 0.205534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273859 | 482 | 26 | 45 | 18.538462 | 0.722857 | 0 | 0 | 0 | 0 | 0 | 0.387967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed155bcd001b81fbb7d5fd0a646fe21979da9c0f | 918 | py | Python | web/app.py | nclouds/ecs-bootcamp-sample | 6a9a20bc10e9a1de4cffa725aa3441b1b9fb2434 | [
"MIT"
] | null | null | null | web/app.py | nclouds/ecs-bootcamp-sample | 6a9a20bc10e9a1de4cffa725aa3441b1b9fb2434 | [
"MIT"
] | null | null | null | web/app.py | nclouds/ecs-bootcamp-sample | 6a9a20bc10e9a1de4cffa725aa3441b1b9fb2434 | [
"MIT"
] | null | null | null | # Copyright 2017 Amazon.com, Inc. or its affiliates.
#
# 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 appl... | 36.72 | 88 | 0.712418 | 141 | 918 | 4.531915 | 0.666667 | 0.093897 | 0.040689 | 0.050078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02139 | 0.185185 | 918 | 24 | 89 | 38.25 | 0.832888 | 0.733115 | 0 | 0 | 0 | 0 | 0.127193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ed1ed29e4c4b182175957fa70ce402c6d54849af | 620 | py | Python | pyta/indicators/balance_of_power.py | gslinger/pyta | d69cde971d43ef813c0bb96ce97bc7b4a22baf42 | [
"MIT"
] | 1 | 2021-10-10T08:00:21.000Z | 2021-10-10T08:00:21.000Z | pyta/indicators/balance_of_power.py | gslinger/pyta | d69cde971d43ef813c0bb96ce97bc7b4a22baf42 | [
"MIT"
] | null | null | null | pyta/indicators/balance_of_power.py | gslinger/pyta | d69cde971d43ef813c0bb96ce97bc7b4a22baf42 | [
"MIT"
] | null | null | null | import pandas as pd
def balance_of_power(o: pd.Series, h: pd.Series, l: pd.Series, c: pd.Series) -> pd.Series:
bop_ = (c - o) / (h - l)
return bop_
balance_of_power.__doc__ = """Balance of Power (BOP)
Price-based indicator which evaluates the overall strength of buyers and sellers in the market.
Source:
... | 22.962963 | 95 | 0.675806 | 90 | 620 | 4.511111 | 0.522222 | 0.098522 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203226 | 620 | 27 | 96 | 22.962963 | 0.821862 | 0 | 0 | 0 | 0 | 0 | 0.687601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed1fd66d6cd3e4369bebc1ae8a90515ffd6dae71 | 475 | py | Python | test/test_LightModel/test_Profiles/test_moffat.py | heather999/lenstronomy | 8102fe026c1f3ba6e81d8a1f59cceb90e68430b4 | [
"MIT"
] | 107 | 2017-08-25T20:03:51.000Z | 2022-03-30T19:52:21.000Z | test/test_LightModel/test_Profiles/test_moffat.py | heather999/lenstronomy | 8102fe026c1f3ba6e81d8a1f59cceb90e68430b4 | [
"MIT"
] | 235 | 2017-06-07T13:30:53.000Z | 2022-03-28T12:44:04.000Z | test/test_LightModel/test_Profiles/test_moffat.py | heather999/lenstronomy | 8102fe026c1f3ba6e81d8a1f59cceb90e68430b4 | [
"MIT"
] | 68 | 2018-02-01T15:47:20.000Z | 2022-03-27T12:44:32.000Z |
import pytest
from lenstronomy.LightModel.Profiles.moffat import Moffat
class TestMoffat(object):
"""
class to test the Moffat profile
"""
def setup(self):
pass
def test_function(self):
"""
:return:
"""
profile = Moffat()
output = profile.function... | 19 | 96 | 0.591579 | 57 | 475 | 4.736842 | 0.614035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069971 | 0.277895 | 475 | 24 | 97 | 19.791667 | 0.717201 | 0.086316 | 0 | 0 | 0 | 0 | 0.020356 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0.090909 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed21bd4974d607e44756d6670296e04654ba3862 | 7,974 | py | Python | ding/envs/env_manager/tests/test_subprocess_env_manager.py | uuid0000/DI-engine | cc2713fa01e5288bae21cfeb595729d665e092d1 | [
"Apache-2.0"
] | null | null | null | ding/envs/env_manager/tests/test_subprocess_env_manager.py | uuid0000/DI-engine | cc2713fa01e5288bae21cfeb595729d665e092d1 | [
"Apache-2.0"
] | null | null | null | ding/envs/env_manager/tests/test_subprocess_env_manager.py | uuid0000/DI-engine | cc2713fa01e5288bae21cfeb595729d665e092d1 | [
"Apache-2.0"
] | null | null | null | import time
import signal
import pytest
import torch
import numpy as np
from ..base_env_manager import EnvState
from ..subprocess_env_manager import AsyncSubprocessEnvManager, SyncSubprocessEnvManager
@pytest.mark.unittest(rerun=5)
class TestSubprocessEnvManager:
def test_naive(self, setup_async_manager_cfg, se... | 43.102703 | 111 | 0.635816 | 1,066 | 7,974 | 4.496248 | 0.114447 | 0.200292 | 0.081369 | 0.080117 | 0.621531 | 0.583351 | 0.519716 | 0.457751 | 0.432506 | 0.407678 | 0 | 0.008469 | 0.259594 | 7,974 | 184 | 112 | 43.336957 | 0.803354 | 0.030599 | 0 | 0.512821 | 0 | 0 | 0.036677 | 0 | 0 | 0 | 0 | 0 | 0.237179 | 1 | 0.025641 | false | 0 | 0.044872 | 0 | 0.076923 | 0.032051 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed220801984e5d4236d7274759517c1c8db6a676 | 3,986 | py | Python | Documents/Automation/CopySnapshot/Setup/create_document.py | samhays/aws-systems-manager | 0547fc6d6bcab4039123a5e3cd86dbb440c61d0a | [
"MIT-0"
] | 1 | 2021-02-28T13:13:31.000Z | 2021-02-28T13:13:31.000Z | Documents/Automation/CopySnapshot/Setup/create_document.py | samhays/aws-systems-manager | 0547fc6d6bcab4039123a5e3cd86dbb440c61d0a | [
"MIT-0"
] | null | null | null | Documents/Automation/CopySnapshot/Setup/create_document.py | samhays/aws-systems-manager | 0547fc6d6bcab4039123a5e3cd86dbb440c61d0a | [
"MIT-0"
] | 1 | 2021-02-28T13:13:15.000Z | 2021-02-28T13:13:15.000Z | #
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# 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 u... | 37.252336 | 103 | 0.717511 | 549 | 3,986 | 5.029144 | 0.375228 | 0.039116 | 0.021731 | 0.017385 | 0.184716 | 0.147773 | 0.147773 | 0.137631 | 0.137631 | 0.137631 | 0 | 0.010366 | 0.17712 | 3,986 | 106 | 104 | 37.603774 | 0.831402 | 0.267687 | 0 | 0.126984 | 0 | 0 | 0.155571 | 0.028631 | 0 | 0 | 0 | 0 | 0.031746 | 0 | null | null | 0 | 0.063492 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed22425865246246f29ef5836a787b5cb0e70964 | 1,081 | py | Python | example.py | zeeguu-ecosystem/python-wordstats | bb02189fc43b0fc37ff61d9a3cb2062878363994 | [
"MIT"
] | 1 | 2018-08-14T13:58:19.000Z | 2018-08-14T13:58:19.000Z | example.py | zeeguu-ecosystem/python-wordstats | bb02189fc43b0fc37ff61d9a3cb2062878363994 | [
"MIT"
] | 4 | 2018-04-12T11:49:23.000Z | 2018-06-19T09:44:35.000Z | example.py | zeeguu-ecosystem/python-wordstats | bb02189fc43b0fc37ff61d9a3cb2062878363994 | [
"MIT"
] | null | null | null | from wordstats import LanguageInfo
from wordstats.common_words import common_words
French = LanguageInfo.load("fr")
print("Top 10 most used words in Dutch")
print(French.all_words()[:10])
print(" ")
print("Info about the word 'jamais'")
jamais_info = French.get("jamais")
print(jamais_info)
print(" ")
print("Word in... | 27.025 | 95 | 0.691952 | 154 | 1,081 | 4.798701 | 0.38961 | 0.074425 | 0.051421 | 0.037889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013453 | 0.174838 | 1,081 | 40 | 95 | 27.025 | 0.815022 | 0 | 0 | 0.1875 | 0 | 0 | 0.285582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.09375 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ed23cc0356de3e8d1b8e3b4c7cdc1a2089126a15 | 606 | py | Python | trakt/core/exceptions.py | ruinernin/trakt.py | a579b0adf589e1fb8efe11d1e9b5c4f6fbb78157 | [
"MIT"
] | 147 | 2015-01-07T11:27:26.000Z | 2022-02-21T19:57:44.000Z | trakt/core/exceptions.py | ruinernin/trakt.py | a579b0adf589e1fb8efe11d1e9b5c4f6fbb78157 | [
"MIT"
] | 90 | 2015-01-11T14:38:22.000Z | 2021-10-03T12:18:13.000Z | trakt/core/exceptions.py | ruinernin/trakt.py | a579b0adf589e1fb8efe11d1e9b5c4f6fbb78157 | [
"MIT"
] | 61 | 2015-01-09T12:32:09.000Z | 2022-02-03T00:50:36.000Z | from __future__ import absolute_import, division, print_function
from trakt.core.errors import ERRORS
class RequestFailedError(Exception):
pass
class RequestError(Exception):
def __init__(self, response):
self.response = response
self.status_code = response.status_code if response is not No... | 22.444444 | 81 | 0.709571 | 71 | 606 | 5.816901 | 0.507042 | 0.072639 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19967 | 606 | 26 | 82 | 23.307692 | 0.851546 | 0.047855 | 0 | 0.214286 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.214286 | 0.142857 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed2456fd09da99d1cdcd075d73e1dd548b4c76b8 | 6,563 | py | Python | src/pyscaffold/extensions/__init__.py | CarliJoy/pyscaffold | 6e6f8779c4a20fbab81b72c6a12716c877d8c062 | [
"MIT"
] | null | null | null | src/pyscaffold/extensions/__init__.py | CarliJoy/pyscaffold | 6e6f8779c4a20fbab81b72c6a12716c877d8c062 | [
"MIT"
] | null | null | null | src/pyscaffold/extensions/__init__.py | CarliJoy/pyscaffold | 6e6f8779c4a20fbab81b72c6a12716c877d8c062 | [
"MIT"
] | null | null | null | """
Built-in extensions for PyScaffold.
"""
import argparse
import sys
import textwrap
from typing import Callable, Iterator, List, Optional, Type
from ..actions import Action, register, unregister
from ..exceptions import ErrorLoadingExtension
from ..identification import dasherize, deterministic_sort, underscore
if... | 34.724868 | 119 | 0.681091 | 795 | 6,563 | 5.510692 | 0.314465 | 0.029674 | 0.012326 | 0.01438 | 0.215704 | 0.19402 | 0.179868 | 0.179868 | 0.179868 | 0.129651 | 0 | 0.002171 | 0.228097 | 6,563 | 188 | 120 | 34.909574 | 0.862614 | 0.432272 | 0 | 0.072464 | 0 | 0 | 0.052683 | 0.007805 | 0 | 0 | 0 | 0.005319 | 0 | 1 | 0.202899 | false | 0 | 0.130435 | 0.028986 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.