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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db9e3f3b81fe505cd7af11f448418ecd8b4fc4cb | 1,128 | py | Python | maestrofinder_app/forms.py | BethanyFolino/MaestroFinder | 88a912cfbbe49725d408c796d64216b3bfaafa95 | [
"MIT"
] | null | null | null | maestrofinder_app/forms.py | BethanyFolino/MaestroFinder | 88a912cfbbe49725d408c796d64216b3bfaafa95 | [
"MIT"
] | null | null | null | maestrofinder_app/forms.py | BethanyFolino/MaestroFinder | 88a912cfbbe49725d408c796d64216b3bfaafa95 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from maestrofinder_app.models import Musician
class SignupForm(forms.Form):
name = forms.CharField(max_length=100)
teacher_or_student_choices = (
(True, 'Teacher'),
(False, 'Student')
)
teacher_or_stude... | 41.777778 | 158 | 0.707447 | 128 | 1,128 | 6.078125 | 0.335938 | 0.092545 | 0.164524 | 0.118252 | 0.62982 | 0.62982 | 0.62982 | 0.62982 | 0.62982 | 0.62982 | 0 | 0.00974 | 0.180851 | 1,128 | 27 | 159 | 41.777778 | 0.832251 | 0 | 0 | 0.521739 | 0 | 0 | 0.056687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.130435 | 0 | 0.73913 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
dba25c52fd8fab65dc85d4657ba625a1dd98e826 | 80 | py | Python | work.py | shakfu/embedding_python | 7d50a28b11d2f59f362384310ea2f79bb8831f1c | [
"MIT"
] | 6 | 2017-03-24T10:18:32.000Z | 2020-03-03T10:38:23.000Z | work.py | shakfu/embedding_python | 7d50a28b11d2f59f362384310ea2f79bb8831f1c | [
"MIT"
] | null | null | null | work.py | shakfu/embedding_python | 7d50a28b11d2f59f362384310ea2f79bb8831f1c | [
"MIT"
] | 3 | 2018-03-08T16:34:29.000Z | 2022-03-01T11:08:31.000Z | import time
def working(name):
print name, "is working"
time.sleep(1)
| 11.428571 | 28 | 0.65 | 12 | 80 | 4.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.2375 | 80 | 6 | 29 | 13.333333 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dba86350400b6b7dbec7669f7edc1bcdd5591cd8 | 1,342 | py | Python | Python/tdw/FBOutput/OculusTouchButtons.py | ricklentz/tdw | da40eec151acae20b28d6486defb4358d96adb0e | [
"BSD-2-Clause"
] | null | null | null | Python/tdw/FBOutput/OculusTouchButtons.py | ricklentz/tdw | da40eec151acae20b28d6486defb4358d96adb0e | [
"BSD-2-Clause"
] | null | null | null | Python/tdw/FBOutput/OculusTouchButtons.py | ricklentz/tdw | da40eec151acae20b28d6486defb4358d96adb0e | [
"BSD-2-Clause"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FBOutput
import tdw.flatbuffers
class OculusTouchButtons(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsOculusTouchButtons(cls, buf, offset):
n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoffset, ... | 34.410256 | 92 | 0.701937 | 157 | 1,342 | 5.88535 | 0.369427 | 0.121212 | 0.08658 | 0.108225 | 0.292208 | 0.292208 | 0.292208 | 0.292208 | 0.292208 | 0.292208 | 0 | 0.01756 | 0.193741 | 1,342 | 38 | 93 | 35.315789 | 0.836414 | 0.106557 | 0 | 0.24 | 1 | 0 | 0.003353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0.04 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dbaaf03de4aa6992b095ad36fa7e62f586e972db | 309 | py | Python | src/prodstats/parsing/util.py | la-mar/prodstats | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | [
"MIT"
] | null | null | null | src/prodstats/parsing/util.py | la-mar/prodstats | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | [
"MIT"
] | null | null | null | src/prodstats/parsing/util.py | la-mar/prodstats | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | [
"MIT"
] | 1 | 2021-01-05T18:58:08.000Z | 2021-01-05T18:58:08.000Z | import re
__all__ = ["camel_to_snake"]
REGEX_CAMEL_CASE_HANDLE_ACRONYMS = re.compile(r"(.)([A-Z][a-z]+)")
REGEX_CAMEL_CASE = re.compile(r"([a-z0-9])([A-Z])")
def camel_to_snake(name):
name = REGEX_CAMEL_CASE_HANDLE_ACRONYMS.sub(r"\1_\2", name)
return REGEX_CAMEL_CASE.sub(r"\1_\2", name).lower()
| 23.769231 | 66 | 0.68932 | 55 | 309 | 3.472727 | 0.418182 | 0.209424 | 0.293194 | 0.209424 | 0.397906 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.106796 | 309 | 12 | 67 | 25.75 | 0.67029 | 0 | 0 | 0 | 0 | 0 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dbb8b65b8db3a362bab2f10ee950c5d4ae024e38 | 18,852 | py | Python | cassiopeia/core/league.py | artemigkh/cassiopeia | fa78cb8f86ea21857916a707d04de6a05498033e | [
"MIT"
] | null | null | null | cassiopeia/core/league.py | artemigkh/cassiopeia | fa78cb8f86ea21857916a707d04de6a05498033e | [
"MIT"
] | null | null | null | cassiopeia/core/league.py | artemigkh/cassiopeia | fa78cb8f86ea21857916a707d04de6a05498033e | [
"MIT"
] | null | null | null | from typing import List, Union, Optional, Generator
from merakicommons.cache import lazy_property, lazy
from merakicommons.container import searchable, SearchableList
from .. import configuration
from ..data import Region, Platform, Tier, Division, Queue, Role
from .common import CoreData, CoreDataList, CassiopeiaObj... | 32.786087 | 181 | 0.660142 | 2,052 | 18,852 | 5.846979 | 0.101365 | 0.035339 | 0.041257 | 0.014169 | 0.595433 | 0.573012 | 0.498083 | 0.472912 | 0.426988 | 0.398566 | 0 | 0.000684 | 0.224592 | 18,852 | 575 | 182 | 32.786087 | 0.820085 | 0.048324 | 0 | 0.600473 | 0 | 0 | 0.053399 | 0.001346 | 0 | 0 | 0 | 0 | 0.002364 | 1 | 0.224586 | false | 0 | 0.018913 | 0.153664 | 0.574468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dbbf53dc49e95ebfa13f38f274995024eaebac28 | 8,249 | py | Python | mahdi.py | JEWELFUND/decrept | 3e286c3cb5ee43fab41c7495a5426edbca1112c7 | [
"MIT"
] | 1 | 2022-03-24T18:10:33.000Z | 2022-03-24T18:10:33.000Z | mahdi.py | JEWELFUND/decrept | 3e286c3cb5ee43fab41c7495a5426edbca1112c7 | [
"MIT"
] | null | null | null | mahdi.py | JEWELFUND/decrept | 3e286c3cb5ee43fab41c7495a5426edbca1112c7 | [
"MIT"
] | 1 | 2022-03-15T22:31:36.000Z | 2022-03-15T22:31:36.000Z | # -*- coding:utf8 -*-
# Supports python2 & python3
# Name : PyObfuscate - Simple Python Code Obfuscator
# Author : HTR-TECH
# Date : Sun Jul 19 00:19:27 2021
# Import Modules
import os
import sys
import zlib
import time
import base64
import marshal
import py_compile
# Select raw_input() or input()
if sys.version... | 50.29878 | 1,631 | 0.592678 | 1,250 | 8,249 | 3.7816 | 0.188 | 0.038079 | 0.055215 | 0.071081 | 0.570764 | 0.566321 | 0.51026 | 0.481278 | 0.455892 | 0.401312 | 0 | 0.159128 | 0.187902 | 8,249 | 163 | 1,632 | 50.607362 | 0.534707 | 0.04146 | 0 | 0.131387 | 0 | 0.10219 | 0.585245 | 0.482951 | 0 | 1 | 0 | 0 | 0 | 1 | 0.051095 | false | 0 | 0.167883 | 0 | 0.233577 | 0.036496 | 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 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dbd370b1381b865905f6e87bd36ee62373c7ab4f | 805 | py | Python | content/04-python-matplotlib/class/test_class.py | sbu-phy-ast-reu/reu-python-tutorial | 7bac6d87d4528a45e2169020266d92fc1a47dc70 | [
"BSD-3-Clause"
] | 3 | 2020-05-07T03:11:10.000Z | 2020-06-19T18:17:41.000Z | day-4/class/test_class.py | sbu-python-summer/python-tutorial | c93ac1d75188d762df7d17df7045af39dbc1bee8 | [
"BSD-3-Clause"
] | null | null | null | day-4/class/test_class.py | sbu-python-summer/python-tutorial | c93ac1d75188d762df7d17df7045af39dbc1bee8 | [
"BSD-3-Clause"
] | 5 | 2020-05-21T07:03:28.000Z | 2022-01-09T08:15:03.000Z | # a test class is useful to hold data that we might want setup
# for every test.
import numpy as np
from numpy.testing import assert_array_equal
class TestClassExample(object):
@classmethod
def setup_class(cls):
""" this is run once for each class, before any tests """
pass
@classmethod
... | 25.15625 | 65 | 0.631056 | 119 | 805 | 4.184874 | 0.445378 | 0.048193 | 0.072289 | 0.056225 | 0.289157 | 0.13253 | 0.13253 | 0.13253 | 0.13253 | 0 | 0 | 0.013699 | 0.274534 | 805 | 31 | 66 | 25.967742 | 0.839041 | 0.331677 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.352941 | false | 0.176471 | 0.117647 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
91733dff7bd13b8f3775e2958d1e078edb65c1b6 | 5,701 | py | Python | city_keyword.py | aguroshou/JPHACKS-AguroTest | a74edce309197e676031aaeecc1d71f4a924c5f5 | [
"MIT"
] | null | null | null | city_keyword.py | aguroshou/JPHACKS-AguroTest | a74edce309197e676031aaeecc1d71f4a924c5f5 | [
"MIT"
] | null | null | null | city_keyword.py | aguroshou/JPHACKS-AguroTest | a74edce309197e676031aaeecc1d71f4a924c5f5 | [
"MIT"
] | null | null | null | import json
#from botocore.vendored import requests #AWS用
import requests #AWS以外用
method = "POST"
headers = {"Content-Type" : "application/json"}
appID = "b664516431b4a1264f36746219a8bcbee9a7f807d6af52373ed3add943af0d3a"
def gooAPIkeyword(s_title,s_body,max_num) :
url = "https://labs.goo.ne.jp/api/keyword"
... | 73.089744 | 325 | 0.83231 | 576 | 5,701 | 8.28125 | 0.762153 | 0.003774 | 0.007547 | 0.012159 | 0.060377 | 0.046541 | 0.046541 | 0.046541 | 0.046541 | 0.046541 | 0 | 0.031676 | 0.047536 | 5,701 | 77 | 326 | 74.038961 | 0.838306 | 0.008595 | 0 | 0 | 0 | 0.25 | 0.782793 | 0.731811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.03125 | 0 | 0.0625 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91778b8f90e15b9b15914f56bd0d5de9166ede6d | 775 | py | Python | project/migrations/0011_auto_20210910_1917.py | RawAnimal/esm | 9a83a2580940f2efd642882cad46745a8d88c9ca | [
"MIT"
] | null | null | null | project/migrations/0011_auto_20210910_1917.py | RawAnimal/esm | 9a83a2580940f2efd642882cad46745a8d88c9ca | [
"MIT"
] | null | null | null | project/migrations/0011_auto_20210910_1917.py | RawAnimal/esm | 9a83a2580940f2efd642882cad46745a8d88c9ca | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-10 23:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('project', '0010_alter_project_clients'),
]
operations = [
migrations.RemoveField(
model_name='project',
name='clients',
... | 22.142857 | 50 | 0.531613 | 61 | 775 | 6.655738 | 0.491803 | 0.155172 | 0.192118 | 0.221675 | 0.403941 | 0.236453 | 0 | 0 | 0 | 0 | 0 | 0.038229 | 0.35871 | 775 | 34 | 51 | 22.794118 | 0.778672 | 0.058065 | 0 | 0.5 | 1 | 0 | 0.157967 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9196ac44076f252ccd2de565c605c310df9bb94c | 4,364 | py | Python | tests/console/commands/test_new.py | HarryPeach/poetry | 70ac497a81f3ac59ee890c6a7bee0ffc3cae6c6e | [
"MIT"
] | null | null | null | tests/console/commands/test_new.py | HarryPeach/poetry | 70ac497a81f3ac59ee890c6a7bee0ffc3cae6c6e | [
"MIT"
] | null | null | null | tests/console/commands/test_new.py | HarryPeach/poetry | 70ac497a81f3ac59ee890c6a7bee0ffc3cae6c6e | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Optional
import pytest
from poetry.factory import Factory
from poetry.poetry import Poetry
@pytest.fixture
def tester(command_tester_factory):
return command_tester_factory("new")
def verify_project_directory(
path: Path, package_name: str, package_path: str, in... | 27.974359 | 88 | 0.543767 | 413 | 4,364 | 5.539952 | 0.164649 | 0.300699 | 0.190997 | 0.20979 | 0.52972 | 0.448427 | 0.434004 | 0.403409 | 0.360577 | 0.353147 | 0 | 0.001337 | 0.31439 | 4,364 | 155 | 89 | 28.154839 | 0.763369 | 0 | 0 | 0.455882 | 0 | 0 | 0.267415 | 0.042163 | 0 | 0 | 0 | 0 | 0.066176 | 1 | 0.029412 | false | 0 | 0.036765 | 0.007353 | 0.080882 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9198aba3795941c906915dc72dd7a0fb2b8e253c | 1,040 | py | Python | python_parikshith21/Day34.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | python_parikshith21/Day34.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | python_parikshith21/Day34.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 12 19:43:35 2019
@author: Parikshith.H
"""
class customer:
__counter=1000
def __init__(self,NAME,NUM):
self.__id=customer.__counter+1
self.__name=NAME
self.__num=NUM
customer.__counter=customer.__counter+1
def get_id(s... | 24.761905 | 79 | 0.535577 | 123 | 1,040 | 4.130081 | 0.317073 | 0.11811 | 0.165354 | 0.059055 | 0.330709 | 0.181102 | 0 | 0 | 0 | 0 | 0 | 0.043849 | 0.210577 | 1,040 | 41 | 80 | 25.365854 | 0.574909 | 0.25 | 0 | 0.230769 | 0 | 0 | 0.003916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.230769 | 0.653846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
91a910889927a2664c43faa176a09f387634922a | 419 | py | Python | configs/self6dpp/ssLM/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10_cat.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 33 | 2021-12-15T07:11:47.000Z | 2022-03-29T08:58:32.000Z | configs/self6dpp/ssLM/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10_cat.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 3 | 2021-12-15T11:39:54.000Z | 2022-03-29T07:24:23.000Z | configs/self6dpp/ssLM/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10_cat.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | null | null | null | _base_ = "./ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10_ape.py"
OUTPUT_DIR = "output/self6dpp/ssLM/ss_v1_dibr_mlBCE_FreezeBN_woCenter_refinePM10/cat"
DATASETS = dict(
TRAIN=("lm_real_cat_train",), TRAIN2=("lm_pbr_cat_train",), TRAIN2_RATIO=0.0, TEST=("lm_real_cat_test",)
)
MODEL = dict(
WEIGHTS="output/gdrn/l... | 46.555556 | 122 | 0.811456 | 66 | 419 | 4.590909 | 0.575758 | 0.049505 | 0.052805 | 0.085809 | 0.257426 | 0.257426 | 0.257426 | 0 | 0 | 0 | 0 | 0.053571 | 0.064439 | 419 | 8 | 123 | 52.375 | 0.719388 | 0 | 0 | 0 | 0 | 0 | 0.670644 | 0.553699 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91b1bfd1316f7567ada20f6b4019ffdd08a8a49e | 259 | py | Python | Algorithm/Mathematical/628. Maximum Product of Three Numbers.py | smsubham/Data-Structure-Algorithms-Questions | 45da68231907068ef4e4a0444ffdac69b337fa7c | [
"Apache-2.0"
] | null | null | null | Algorithm/Mathematical/628. Maximum Product of Three Numbers.py | smsubham/Data-Structure-Algorithms-Questions | 45da68231907068ef4e4a0444ffdac69b337fa7c | [
"Apache-2.0"
] | null | null | null | Algorithm/Mathematical/628. Maximum Product of Three Numbers.py | smsubham/Data-Structure-Algorithms-Questions | 45da68231907068ef4e4a0444ffdac69b337fa7c | [
"Apache-2.0"
] | null | null | null | #https://leetcode.com/problems/maximum-product-of-three-numbers/
class Solution:
def maximumProduct(self, nums: List[int]) -> int:
a, b = heapq.nlargest(3, nums), heapq.nsmallest(2, nums)
return max(a[0] * a[1] * a[2], b[0] * b[1] * a[0]) | 43.166667 | 64 | 0.617761 | 42 | 259 | 3.809524 | 0.666667 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.181467 | 259 | 6 | 65 | 43.166667 | 0.716981 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
91caa7a517fd3937ffa061b9186c8f56529fe778 | 151 | py | Python | LattesLab/consistency/dummy.py | santanasan/LattesLab | 462ef9b0881f966a919a45827d9640b4b2addb3b | [
"MIT"
] | 2 | 2021-05-12T22:15:30.000Z | 2021-06-16T14:31:40.000Z | LattesLab/consistency/dummy.py | santanasan/LattesLab | 462ef9b0881f966a919a45827d9640b4b2addb3b | [
"MIT"
] | null | null | null | LattesLab/consistency/dummy.py | santanasan/LattesLab | 462ef9b0881f966a919a45827d9640b4b2addb3b | [
"MIT"
] | 2 | 2020-01-06T23:59:05.000Z | 2020-03-06T13:39:01.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 3 22:50:18 2018
@author: thiag
"""
import LattesLab.consistency as con
con.total_prod(root, 'works') | 15.1 | 35 | 0.662252 | 24 | 151 | 4.125 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.165563 | 151 | 10 | 36 | 15.1 | 0.690476 | 0.490066 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
91dc530ee5ea8fae79ee9c5cae526d878b40bfe6 | 277 | py | Python | plugins/dwgVars.py | vdevelg/pathway | b56a363a724eadf54a39b32422a099ce74ce92e5 | [
"MIT"
] | null | null | null | plugins/dwgVars.py | vdevelg/pathway | b56a363a724eadf54a39b32422a099ce74ce92e5 | [
"MIT"
] | null | null | null | plugins/dwgVars.py | vdevelg/pathway | b56a363a724eadf54a39b32422a099ce74ce92e5 | [
"MIT"
] | null | null | null | def dwgVars(argument):
print()
print("Привет, меня зовут dwgVars и я не реализована")
print()
def dwgVars_print(ProcData):
print()
print("Привет, меня зовут dwgVars")
print("Мне передали аргументы:")
for i in ProcData:
print(i)
print()
| 21.307692 | 58 | 0.635379 | 35 | 277 | 5 | 0.514286 | 0.114286 | 0.182857 | 0.228571 | 0.365714 | 0.365714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249097 | 277 | 12 | 59 | 23.083333 | 0.841346 | 0 | 0 | 0.363636 | 0 | 0 | 0.33935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.181818 | 0.818182 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
91dfba5003581f592d53de04aec67a074a50e38d | 21 | py | Python | pandas/version.py | timClicks/pandas | 83b216c9efb439c1d19690feff1dcba58c6a2f88 | [
"BSD-3-Clause"
] | 1 | 2020-09-17T11:33:26.000Z | 2020-09-17T11:33:26.000Z | pandas/version.py | timClicks/pandas | 83b216c9efb439c1d19690feff1dcba58c6a2f88 | [
"BSD-3-Clause"
] | null | null | null | pandas/version.py | timClicks/pandas | 83b216c9efb439c1d19690feff1dcba58c6a2f88 | [
"BSD-3-Clause"
] | null | null | null | version = '0.4.0dev'
| 10.5 | 20 | 0.619048 | 4 | 21 | 3.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.142857 | 21 | 1 | 21 | 21 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91e0f72c124d45afeef85443f665f5f9612205c6 | 505 | py | Python | django_analyses/filters/pipeline/node.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 1 | 2020-12-30T12:43:34.000Z | 2020-12-30T12:43:34.000Z | django_analyses/filters/pipeline/node.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 59 | 2019-12-25T13:14:56.000Z | 2021-07-22T12:24:46.000Z | django_analyses/filters/pipeline/node.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 2 | 2020-05-24T06:44:27.000Z | 2020-07-09T15:47:31.000Z | """
Definition of a
:class:`~django_analyses.filters.pipeline.node.NodeFilter` for the
:class:`~django_analyses.models.pipeline.node.Node` model.
"""
from django_analyses.models.pipeline.node import Node
from django_filters import rest_framework as filters
class NodeFilter(filters.FilterSet):
"""
Provides u... | 21.956522 | 66 | 0.718812 | 61 | 505 | 5.836066 | 0.459016 | 0.157303 | 0.160112 | 0.235955 | 0.382022 | 0.292135 | 0.292135 | 0.292135 | 0.292135 | 0.292135 | 0 | 0 | 0.170297 | 505 | 22 | 67 | 22.954545 | 0.849642 | 0.479208 | 0 | 0 | 0 | 0 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
91e5658877ff65f24f128cd8a98cf50661204406 | 271 | py | Python | total_avg.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | 4 | 2022-03-20T10:59:53.000Z | 2022-03-25T18:28:04.000Z | total_avg.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | null | null | null | total_avg.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | 15 | 2022-03-12T11:49:10.000Z | 2022-03-15T06:22:55.000Z | a=int(input("Enter the first number"))
b=int(input("Enter the second number"))
c=int(input("Enter the third number"))
d=int(input("Enter the fourth number"))
total=a+b+c+d
average=total/4
print("Total of the four numbers=",total,"\naverage of the four numbers=",average)
| 33.875 | 82 | 0.730627 | 49 | 271 | 4.040816 | 0.428571 | 0.161616 | 0.262626 | 0.323232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.099631 | 271 | 7 | 83 | 38.714286 | 0.807377 | 0 | 0 | 0 | 0 | 0 | 0.538745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37d289cafe8070cdf6ccf1ba58f203f68139b93d | 1,306 | py | Python | qiskit_ibm_provider/job/exceptions.py | rathishcholarajan/qiskit-ibm-provider | d0c6b613504e386d56f05cf7dd7e697ac6ff52e8 | [
"Apache-2.0"
] | 4 | 2022-02-28T05:47:43.000Z | 2022-03-23T20:57:25.000Z | qiskit_ibm_provider/job/exceptions.py | rathishcholarajan/qiskit-ibm-provider | d0c6b613504e386d56f05cf7dd7e697ac6ff52e8 | [
"Apache-2.0"
] | 87 | 2022-02-14T14:18:03.000Z | 2022-03-31T17:37:34.000Z | qiskit_ibm_provider/job/exceptions.py | rathishcholarajan/qiskit-ibm-provider | d0c6b613504e386d56f05cf7dd7e697ac6ff52e8 | [
"Apache-2.0"
] | 3 | 2022-02-26T19:04:35.000Z | 2022-03-02T04:47:40.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 24.185185 | 77 | 0.735069 | 178 | 1,306 | 5.393258 | 0.539326 | 0.0625 | 0.095833 | 0.1125 | 0.129167 | 0.129167 | 0 | 0 | 0 | 0 | 0 | 0.007512 | 0.184533 | 1,306 | 53 | 78 | 24.641509 | 0.893897 | 0.6049 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.428571 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
37e20e21585ba3124214328c37079555d637e627 | 523 | py | Python | tests/conftest.py | RI-imaging/DryMass | 150cc5ec05b88c32caf4bb1ab181f34da9a9260e | [
"MIT"
] | 1 | 2022-02-23T12:32:24.000Z | 2022-02-23T12:32:24.000Z | tests/conftest.py | RI-imaging/DryMass | 150cc5ec05b88c32caf4bb1ab181f34da9a9260e | [
"MIT"
] | 30 | 2017-11-16T13:08:18.000Z | 2022-03-28T22:12:40.000Z | tests/conftest.py | RI-imaging/DryMass | 150cc5ec05b88c32caf4bb1ab181f34da9a9260e | [
"MIT"
] | 1 | 2018-04-05T04:17:42.000Z | 2018-04-05T04:17:42.000Z | import shutil
import tempfile
import time
TMPDIR = tempfile.mkdtemp(prefix=time.strftime(
"drymass_test_%H.%M_"))
def pytest_configure(config):
"""
Allows plugins and conftest files to perform initial configuration.
This hook is called for every plugin and initial conftest
file after command line... | 22.73913 | 71 | 0.720841 | 66 | 523 | 5.621212 | 0.742424 | 0.048518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200765 | 523 | 22 | 72 | 23.772727 | 0.88756 | 0.407266 | 0 | 0 | 0 | 0 | 0.070111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
37fa50785b0e5b10e70a28914b2e030c750c94f1 | 392 | py | Python | custom_components/average/__init__.py | DelusionalAI/HomeAssistantConfig | 7c1d578a3807f9935793b17b2690f8a4b9e35a84 | [
"MIT"
] | 1 | 2019-12-22T12:59:01.000Z | 2019-12-22T12:59:01.000Z | custom_components/average/__init__.py | elsingaa/Home-Assistant-Config | d20a2dabf5deeef8f087fa6d34a371617da9c4cd | [
"MIT"
] | 28 | 2019-12-22T10:33:13.000Z | 2020-08-09T04:46:46.000Z | custom_components/average/__init__.py | elsingaa/Home-Assistant-Config | d20a2dabf5deeef8f087fa6d34a371617da9c4cd | [
"MIT"
] | null | null | null | #
# Copyright (c) 2019, Andrey "Limych" Khrolenok <andrey@khrolenok.ru>
# Creative Commons BY-NC-SA 4.0 International Public License
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/)
#
"""
The Average Temperature Sensor.
For more details about this sensor, please refer to the documentation at... | 28 | 73 | 0.747449 | 58 | 392 | 5.051724 | 0.758621 | 0.027304 | 0.040956 | 0.047782 | 0.054608 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02346 | 0.130102 | 392 | 13 | 74 | 30.153846 | 0.835777 | 0.880102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
37ff739d65cb3842c6746efc8fef2671259ecdf8 | 399 | py | Python | week1/opensearch.py | macrakis/search_with_machine_learning_course | ac01352eabbfdcab6d61541e2aab533af7bf4c03 | [
"Apache-2.0"
] | null | null | null | week1/opensearch.py | macrakis/search_with_machine_learning_course | ac01352eabbfdcab6d61541e2aab533af7bf4c03 | [
"Apache-2.0"
] | null | null | null | week1/opensearch.py | macrakis/search_with_machine_learning_course | ac01352eabbfdcab6d61541e2aab533af7bf4c03 | [
"Apache-2.0"
] | null | null | null |
from flask import g, current_app
from opensearchpy import OpenSearch
# Create an OpenSearch client instance and put it into Flask shared space for use by the application
def get_opensearch():
if 'opensearch' not in g:
# Implement a client connection to OpenSearch so that the rest of the application can co... | 33.25 | 121 | 0.759398 | 58 | 399 | 5.189655 | 0.706897 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 399 | 11 | 122 | 36.272727 | 0.955556 | 0.526316 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5335b66807e93239655b2af50a02b33bf285b6a2 | 307 | py | Python | Dataset/Leetcode/valid/13/907.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/13/907.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/13/907.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, s: str) -> int:
num=s.count('I')+s.count('V')*5+s.count('X')*10+s.count('L')*50+s.count('C')*100+s.count('D')*500+s.count('M')*1000
num-=(s.count('IV')+s.count('IX'))*2+(s.count('XL')+s.count('XC'))*20+(s.count('CD')+s.count('CM'))*200
return num
| 43.857143 | 123 | 0.530945 | 60 | 307 | 2.716667 | 0.55 | 0.478528 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079245 | 0.136808 | 307 | 6 | 124 | 51.166667 | 0.535849 | 0 | 0 | 0 | 0 | 0 | 0.062092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53413c3144337cad4bf7e3f940158367c8fc08d2 | 2,910 | py | Python | venv/Lib/site-packages/pyrogram/handlers/raw_update_handler.py | D1ne2021/jjhhhjj | a090da30983b3ef276dfe4cef2ded4526f36002a | [
"MIT"
] | 5 | 2021-09-11T22:01:15.000Z | 2022-03-16T21:33:42.000Z | backend/pyrogram/handlers/raw_update_handler.py | iamatlasss/social-media-analyzer | 429d1d2bbd8bfce80c50c5f8edda58f87ace668d | [
"Apache-2.0"
] | null | null | null | backend/pyrogram/handlers/raw_update_handler.py | iamatlasss/social-media-analyzer | 429d1d2bbd8bfce80c50c5f8edda58f87ace668d | [
"Apache-2.0"
] | 3 | 2022-01-18T11:06:22.000Z | 2022-02-26T13:39:28.000Z | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | 44.090909 | 105 | 0.67457 | 405 | 2,910 | 4.812346 | 0.451852 | 0.050795 | 0.043099 | 0.048743 | 0.182658 | 0.182658 | 0.166239 | 0.095434 | 0.095434 | 0.095434 | 0 | 0.01301 | 0.234021 | 2,910 | 65 | 106 | 44.769231 | 0.861373 | 0.892096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
534a5fab3dba629ae5a79ed75a41f9ed1c6021f5 | 601 | py | Python | spyder/plugins/editor/widgets/tests/assets/black_range.py | Earthman100/spyder | 949ce0f9100a69504c70a5678e8589a05aee7d38 | [
"MIT"
] | 7,956 | 2015-02-17T01:19:09.000Z | 2022-03-31T21:52:15.000Z | spyder/plugins/editor/widgets/tests/assets/black_range.py | Earthman100/spyder | 949ce0f9100a69504c70a5678e8589a05aee7d38 | [
"MIT"
] | 16,326 | 2015-02-16T23:15:21.000Z | 2022-03-31T23:34:34.000Z | spyder/plugins/editor/widgets/tests/assets/black_range.py | Earthman100/spyder | 949ce0f9100a69504c70a5678e8589a05aee7d38 | [
"MIT"
] | 1,918 | 2015-02-20T19:26:26.000Z | 2022-03-31T19:03:25.000Z | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import os;import sys
# %% functions
def d():
def inner():
return 2
return inner
# ---- func 1 and 2
def func1():
for i in range(3):
print(i)
def func2():
if True:
pass
# ---- other functions... | 10.54386 | 38 | 0.517471 | 78 | 601 | 3.884615 | 0.602564 | 0.092409 | 0.072607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033163 | 0.347754 | 601 | 56 | 39 | 10.732143 | 0.739796 | 0.221298 | 0 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.407407 | false | 0.259259 | 0.037037 | 0.037037 | 0.555556 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5353ed45b38a17bb58e43165e45c414316c9f796 | 362 | py | Python | WEEKS/CD_Sata-Structures/general/practice/PYTHON/insertDashes.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 11 | 2021-02-18T04:53:44.000Z | 2022-01-16T10:57:39.000Z | WEEKS/CD_Sata-Structures/general/practice/PYTHON/insertDashes.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | WEEKS/CD_Sata-Structures/general/practice/PYTHON/insertDashes.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 8 | 2021-02-18T05:12:34.000Z | 2022-03-06T19:02:14.000Z | # def insertDashes(s):
# return "-".join(s).replace("- -", " ")
# 55
# insertDashes = lambda s: "-".join(s).replace("- -", " ")
# 51
# return "-".join(*eval(dir()[0])).replace("- -", " ")
# 50
# return re.sub("- -", " ", "-".join(*eval(dir()[0])))
# 49
# insertDashes = lambda s: re.sub('\B', '-', s)
# 39
retur... | 19.052632 | 58 | 0.472376 | 46 | 362 | 3.717391 | 0.413043 | 0.122807 | 0.140351 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050336 | 0.176796 | 362 | 18 | 59 | 20.111111 | 0.52349 | 0.801105 | 0 | 0 | 0 | 0 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
535f35bdf0fd421c9a91aabf116f7494c49e7ba0 | 135 | py | Python | create_db.py | merlinxcy/PatentManagePlatform | b7dd0ca162b75febec235337af97cd613b30adad | [
"MIT"
] | 2 | 2018-06-11T13:46:19.000Z | 2019-07-18T03:32:23.000Z | create_db.py | merlinxcy/PatentManagePlatform | b7dd0ca162b75febec235337af97cd613b30adad | [
"MIT"
] | null | null | null | create_db.py | merlinxcy/PatentManagePlatform | b7dd0ca162b75febec235337af97cd613b30adad | [
"MIT"
] | null | null | null | #!-*- coding: utf-8 -*-
from app import *
if __name__ == '__main__':
db.init_app(app) # 解决
db.create_all() #Issue 002
| 16.875 | 31 | 0.562963 | 19 | 135 | 3.473684 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.259259 | 135 | 7 | 32 | 19.285714 | 0.62 | 0.251852 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
725fc6ed4290795fc2bbb1841c33107f72676c22 | 1,002 | py | Python | core/lib/payloads/rootkit/ft_udp/linux.py | ayashgupta/ZKit-Framework | 97217d708f6b8ce78452328ba50cc1c5a0c72939 | [
"Apache-2.0"
] | 1 | 2021-07-11T20:58:27.000Z | 2021-07-11T20:58:27.000Z | core/lib/payloads/rootkit/ft_udp/linux.py | ayashgupta/ZKit-Framework | 97217d708f6b8ce78452328ba50cc1c5a0c72939 | [
"Apache-2.0"
] | null | null | null | core/lib/payloads/rootkit/ft_udp/linux.py | ayashgupta/ZKit-Framework | 97217d708f6b8ce78452328ba50cc1c5a0c72939 | [
"Apache-2.0"
] | null | null | null | class Payload:
def __init__(self, host: str, port: int, strs: list):
self.host, self.port, self.strs = host, port, strs
def create(self):
return """
def {sendfile}(file, conn):\n\tconn.send("!!!".encode("UTF-8"))
\twith open(file , 'rb') as f:
\t\tconn.send(str(len(f.read())).encode("UTF-8"))\n... | 47.714286 | 97 | 0.648703 | 172 | 1,002 | 3.744186 | 0.354651 | 0.021739 | 0.07764 | 0.043478 | 0.049689 | 0.049689 | 0 | 0 | 0 | 0 | 0 | 0.013187 | 0.091816 | 1,002 | 20 | 98 | 50.1 | 0.694505 | 0 | 0 | 0 | 0 | 0.263158 | 0.731537 | 0.50499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0.052632 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
726e43e466f6008a94d3bcb8f476c6e528870bc3 | 1,942 | py | Python | moya/tests/test_timespan.py | moyaproject/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 129 | 2015-02-16T12:02:50.000Z | 2021-11-06T00:20:01.000Z | moya/tests/test_timespan.py | liaohandel/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 5 | 2015-02-19T15:56:41.000Z | 2015-09-08T18:58:35.000Z | moya/tests/test_timespan.py | liaohandel/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 14 | 2015-02-19T17:20:34.000Z | 2022-03-28T01:38:09.000Z | import unittest
from moya.context.expressiontime import TimeSpan
class TestTimeSpan(unittest.TestCase):
def test_create(self):
"""Test creating timespans"""
for ts, ms, s, m, h, d in [
(TimeSpan(10), 10, 0, 0, 0, 0),
(TimeSpan("10ms"), 10, 0, 0, 0, 0),
(TimeSpa... | 40.458333 | 76 | 0.519053 | 228 | 1,942 | 4.385965 | 0.267544 | 0.21 | 0.184 | 0.125 | 0.338 | 0.188 | 0.16 | 0.16 | 0.097 | 0 | 0 | 0.122494 | 0.306385 | 1,942 | 47 | 77 | 41.319149 | 0.619896 | 0.026777 | 0 | 0.04878 | 0 | 0 | 0.054284 | 0 | 0 | 0 | 0 | 0 | 0.487805 | 1 | 0.04878 | false | 0 | 0.04878 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7273cb19322312c55bbc9d37d46293cef5f5cb1a | 1,111 | py | Python | ui/views/PRESUBMIT.py | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | ui/views/PRESUBMIT.py | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | ui/views/PRESUBMIT.py | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | # Copyright 2019 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.
"""Presubmit script for changes affecting //ui/views.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the... | 30.027027 | 75 | 0.775878 | 156 | 1,111 | 5.294872 | 0.551282 | 0.106538 | 0.135593 | 0.164649 | 0.302663 | 0.123487 | 0.123487 | 0.123487 | 0.123487 | 0.123487 | 0 | 0.005187 | 0.132313 | 1,111 | 36 | 76 | 30.861111 | 0.85166 | 0.354635 | 0 | 0.117647 | 0 | 0 | 0.015647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.117647 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
72742f04ab998eb8d4b169f02ab83956a7e133c2 | 165 | py | Python | sample_config.py | Achu2234/LunaChatBot | 33ee9688b4c075d994d72790d1d14a6b05fea7f2 | [
"MIT"
] | 1 | 2021-05-03T13:28:16.000Z | 2021-05-03T13:28:16.000Z | sample_config.py | Achu2234/LunaChatBot | 33ee9688b4c075d994d72790d1d14a6b05fea7f2 | [
"MIT"
] | null | null | null | sample_config.py | Achu2234/LunaChatBot | 33ee9688b4c075d994d72790d1d14a6b05fea7f2 | [
"MIT"
] | null | null | null | owner_id = 1221558981
bot_token = "1641954476:AAG-EBjPfq8mj7OI6odusgtAa13j9xCQyOo"
bot_id = 1641954476
# Leave it as it is
ARQ_API_BASE_URL = "https://thearq.tech"
| 23.571429 | 60 | 0.793939 | 23 | 165 | 5.434783 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246575 | 0.115152 | 165 | 6 | 61 | 27.5 | 0.609589 | 0.10303 | 0 | 0 | 0 | 0 | 0.445205 | 0.315068 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72756d705402101be8a79f7602df80e2dae803b8 | 259 | py | Python | pyqtcli/test/verbose.py | Kynarth/pyqtcli | ca5f7f711b3731531f39b7d9a63b9965fbbc2b75 | [
"MIT"
] | null | null | null | pyqtcli/test/verbose.py | Kynarth/pyqtcli | ca5f7f711b3731531f39b7d9a63b9965fbbc2b75 | [
"MIT"
] | null | null | null | pyqtcli/test/verbose.py | Kynarth/pyqtcli | ca5f7f711b3731531f39b7d9a63b9965fbbc2b75 | [
"MIT"
] | null | null | null | import re
def format_msg(msg):
"""
Format a message from verbose to delete extra spaces and carriage return.
Args:
msg (str): Message to format.
Returns:
str: Formatted message.
"""
return re.sub("\n\s+", " ", msg)
| 17.266667 | 77 | 0.586873 | 34 | 259 | 4.441176 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297297 | 259 | 14 | 78 | 18.5 | 0.82967 | 0.586873 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
727b0030c565a15cf0734e6267cc31cd406313e4 | 687 | py | Python | src/processor/schemas.py | hirmeos/altmetrics | 546726f01e81e3ca2f37d448d01a55625e9be1ea | [
"MIT"
] | 2 | 2019-02-28T04:11:06.000Z | 2020-05-04T08:44:22.000Z | src/processor/schemas.py | hirmeos/altmetrics | 546726f01e81e3ca2f37d448d01a55625e9be1ea | [
"MIT"
] | 23 | 2019-02-08T12:27:40.000Z | 2020-12-16T20:43:50.000Z | src/processor/schemas.py | hirmeos/altmetrics | 546726f01e81e3ca2f37d448d01a55625e9be1ea | [
"MIT"
] | 1 | 2020-05-04T08:44:25.000Z | 2020-05-04T08:44:25.000Z | from marshmallow import Schema, fields
class EventSchema(Schema):
""" Base schema for HIRMEOS metrics Event """
uri_id = fields.Method('get_uri', required=True)
origin = fields.Method('get_origin', required=True)
provider = fields.Method('get_provider', required=True)
scrape_id = fields.Method(
... | 25.444444 | 59 | 0.652111 | 85 | 687 | 5.117647 | 0.317647 | 0.110345 | 0.137931 | 0.156322 | 0.22069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22853 | 687 | 26 | 60 | 26.423077 | 0.820755 | 0.053857 | 0 | 0 | 0 | 0 | 0.121495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
72974ef1d5735895d5ed864676d183a3c27410fe | 6,481 | py | Python | experiences/factories.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | 3 | 2018-12-05T16:44:59.000Z | 2020-08-01T14:12:32.000Z | experiences/factories.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | 6 | 2020-06-03T15:56:59.000Z | 2022-02-10T07:23:55.000Z | experiences/factories.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | null | null | null | from elasticsearch import Elasticsearch
import certifi
from django.urls import reverse
from django.conf import settings
from people.basic_factories import create_person_permissions_validator, create_block_repo
from profiles.factories import create_get_profile_interactor
from .repositories import ExperienceRepo, Exper... | 47.654412 | 120 | 0.73538 | 553 | 6,481 | 8.126582 | 0.164557 | 0.092568 | 0.048954 | 0.066756 | 0.440365 | 0.335113 | 0.300178 | 0.257454 | 0.159546 | 0.12194 | 0 | 0 | 0.20645 | 6,481 | 135 | 121 | 48.007407 | 0.873809 | 0 | 0 | 0.134831 | 0 | 0 | 0.009104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247191 | false | 0 | 0.11236 | 0.235955 | 0.606742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7297951508a23afe5cfbe60c450697ff78d2a090 | 144 | py | Python | Tests/Aula_18.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | 4 | 2021-04-23T18:07:58.000Z | 2021-05-12T11:38:14.000Z | Tests/Aula_18.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | null | null | null | Tests/Aula_18.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | null | null | null | test = []
test.append('Ian')
test.append(17)
galera = []
galera.append(test[:])
test[0] = 'Mário'
test[1] = 29
galera.append(test)
print(galera) | 16 | 22 | 0.659722 | 22 | 144 | 4.318182 | 0.454545 | 0.168421 | 0.336842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.111111 | 144 | 9 | 23 | 16 | 0.695313 | 0 | 0 | 0 | 0 | 0 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72a236fac2c6f1bcf7ce5543b733f46c16a53580 | 314 | py | Python | recipes/site_listers/saveur.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | recipes/site_listers/saveur.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | recipes/site_listers/saveur.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | import re
from recipes.site_listers.base import TwoLevelSitemapLister
class SaveurLister(TwoLevelSitemapLister):
""" """
start_url = "https://www.saveur.com/sitemap_index.xml"
sitemap_path_regex = re.compile(r"^/post-sitemap\d+\.xml$")
recipes_path_regex = re.compile(r"^/article/Recipes/.+$")
| 26.166667 | 63 | 0.72293 | 39 | 314 | 5.641026 | 0.666667 | 0.081818 | 0.1 | 0.163636 | 0.172727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124204 | 314 | 11 | 64 | 28.545455 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.273616 | 0.143322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
72d8b3e1274da8771455a13d0bd6895c2efc5fc3 | 371 | py | Python | RecoMuon/MuonIsolation/python/muonPFIsolation_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoMuon/MuonIsolation/python/muonPFIsolation_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoMuon/MuonIsolation/python/muonPFIsolation_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from RecoMuon.MuonIsolation.muonPFIsolationDeposits_cff import *
from RecoMuon.MuonIsolation.muonPFIsolationValues_cff import *
muonPFIsolationTask = cms.Task(
muonPFIsolationDepositsTask,
muonPFIsolationValuesTask
)
muonPFIso... | 30.916667 | 64 | 0.754717 | 27 | 371 | 10.296296 | 0.666667 | 0.086331 | 0.179856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199461 | 371 | 11 | 65 | 33.727273 | 0.936027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 1 | 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 | 3 |
72dae2b3d781eb366e37de5bfcc011d4f2c62165 | 287 | py | Python | first_script.py | rodrigo1392/abaqus_macros | ae57d104a70b3b4db0dfb5b0ef9daab0a9e9543d | [
"MIT"
] | 4 | 2020-09-03T04:08:35.000Z | 2022-01-09T08:00:41.000Z | first_script.py | rodrigo1392/abaqus_macros | ae57d104a70b3b4db0dfb5b0ef9daab0a9e9543d | [
"MIT"
] | null | null | null | first_script.py | rodrigo1392/abaqus_macros | ae57d104a70b3b4db0dfb5b0ef9daab0a9e9543d | [
"MIT"
] | 7 | 2020-01-11T04:44:33.000Z | 2021-11-15T03:46:08.000Z | """Script to be called by Abaqus CAE upon a session starting.
This script is meant to be called upon Abaqus opening a new session,
to run batch commands automatically.
Developed by Rodrigo Rivero.
https://github.com/rodrigo1392
"""
print('EXECUTING FIRST SCRIPT') | 26.090909 | 72 | 0.721254 | 41 | 287 | 5.04878 | 0.731707 | 0.038647 | 0.096618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.212544 | 287 | 11 | 73 | 26.090909 | 0.89823 | 0.787456 | 0 | 0 | 0 | 0 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
72e0a863de4c4b9847e515f05ab92e6e088b0ee6 | 891 | py | Python | recruiting/forms.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | 1 | 2018-04-10T11:47:16.000Z | 2018-04-10T11:47:16.000Z | recruiting/forms.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | null | null | null | recruiting/forms.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | null | null | null | from django import forms
from .models import AdminResume, ApplicantResume, Question, ShortAnswer, LongAnswer
class AdminResumeForm(forms.ModelForm):
class Meta:
model = AdminResume
exclude = ('club', )
class ApplicantResumeForm(forms.ModelForm):
class Meta:
model = ApplicantResume
... | 21.214286 | 83 | 0.648709 | 82 | 891 | 7 | 0.402439 | 0.146341 | 0.198606 | 0.240418 | 0.365854 | 0.170732 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0.25477 | 891 | 41 | 84 | 21.731707 | 0.864458 | 0 | 0 | 0.344828 | 0 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f41ac97bda326e74f27834ec858b792bfc4bbad9 | 2,225 | py | Python | app/models.py | dorothymuhonja/Pitches-app | 3cf85ac8a7c05862c9c4f2cb6c5675553d099869 | [
"MIT"
] | null | null | null | app/models.py | dorothymuhonja/Pitches-app | 3cf85ac8a7c05862c9c4f2cb6c5675553d099869 | [
"MIT"
] | null | null | null | app/models.py | dorothymuhonja/Pitches-app | 3cf85ac8a7c05862c9c4f2cb6c5675553d099869 | [
"MIT"
] | 1 | 2021-03-04T08:34:57.000Z | 2021-03-04T08:34:57.000Z | from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from . import login_manager
from flask_login import UserMixin
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class Comment(db.Model):
__tablename__ =... | 28.896104 | 72 | 0.682247 | 307 | 2,225 | 4.765472 | 0.267101 | 0.09296 | 0.1162 | 0.09296 | 0.3527 | 0.289132 | 0.279563 | 0.218729 | 0.127136 | 0.127136 | 0 | 0.008884 | 0.190562 | 2,225 | 76 | 73 | 29.276316 | 0.803443 | 0 | 0 | 0.258621 | 1 | 0 | 0.062106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.103448 | 0.086207 | 0.086207 | 0.793103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f42e38b3c47670fc3bd11e01b31f2a81db2b9bac | 62 | py | Python | sidrapy/__init__.py | edinhodiluviano/sidrapy | e97dc9ad4ccff4500b5199b322adafde7e34d9ce | [
"MIT"
] | null | null | null | sidrapy/__init__.py | edinhodiluviano/sidrapy | e97dc9ad4ccff4500b5199b322adafde7e34d9ce | [
"MIT"
] | null | null | null | sidrapy/__init__.py | edinhodiluviano/sidrapy | e97dc9ad4ccff4500b5199b322adafde7e34d9ce | [
"MIT"
] | null | null | null | from .table import get_table # NOQA F401
VERSION = "0.1.1"
| 12.4 | 41 | 0.677419 | 11 | 62 | 3.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 0.209677 | 62 | 4 | 42 | 15.5 | 0.714286 | 0.145161 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f435c16f95a980b915c52ebe4c82d5b95d612195 | 52 | py | Python | library/__init__.py | mwschall/storkive | 5d52d5a4a06be7755aa1a93472bbc395bdb80d8f | [
"0BSD"
] | null | null | null | library/__init__.py | mwschall/storkive | 5d52d5a4a06be7755aa1a93472bbc395bdb80d8f | [
"0BSD"
] | 12 | 2019-12-04T22:20:55.000Z | 2022-03-15T05:17:51.000Z | library/__init__.py | mwschall/storkive | 5d52d5a4a06be7755aa1a93472bbc395bdb80d8f | [
"0BSD"
] | null | null | null |
default_app_config = 'library.apps.LibraryConfig'
| 13 | 49 | 0.807692 | 6 | 52 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 52 | 3 | 50 | 17.333333 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.52 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f454c5a73e04157863972b1a5b33a128361f03fb | 1,025 | py | Python | sentry/plugins/sentry_urls/models.py | optimal-outsource/django-sentry | 1b55011f1474cde8707a9febaf0c64c8142496d2 | [
"BSD-3-Clause"
] | 1 | 2015-07-15T19:04:48.000Z | 2015-07-15T19:04:48.000Z | sentry/plugins/sentry_urls/models.py | m0sth8/django-sentry | 1fd836d7029331aa17e2560a3be94996287ad9d3 | [
"BSD-3-Clause"
] | null | null | null | sentry/plugins/sentry_urls/models.py | m0sth8/django-sentry | 1fd836d7029331aa17e2560a3be94996287ad9d3 | [
"BSD-3-Clause"
] | null | null | null | """
sentry.plugins.sentry_urls.models
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from django.shortcuts import render_to_response
from django.template.loader import render_to_string
from sentry.plugins impor... | 33.064516 | 84 | 0.703415 | 133 | 1,025 | 5.278195 | 0.503759 | 0.074074 | 0.081197 | 0.098291 | 0.08547 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.176585 | 1,025 | 31 | 85 | 33.064516 | 0.827014 | 0.362927 | 0 | 0 | 0 | 0 | 0.126603 | 0.120192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.166667 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f4591e9f473c16fe978a3cd55f7d6dbced6688f1 | 586 | py | Python | mundo-1/ex009.py | GustavoMendel/curso-python | 2270734cc159cf44cf513184f1467a9040a7bc46 | [
"MIT"
] | null | null | null | mundo-1/ex009.py | GustavoMendel/curso-python | 2270734cc159cf44cf513184f1467a9040a7bc46 | [
"MIT"
] | null | null | null | mundo-1/ex009.py | GustavoMendel/curso-python | 2270734cc159cf44cf513184f1467a9040a7bc46 | [
"MIT"
] | null | null | null | valor = int(input('Digite um valor: '))
x1 = valor * 1
x2 = valor * 2
x3 = valor * 3
x4 = valor * 4
x5 = valor * 5
x6 = valor * 6
x7 = valor * 7
x8 = valor * 8
x9 = valor * 9
x10 = valor * 10
print('1 x {} = {}'.format(valor, x1))
print('2 x {} = {}'.format(valor, x2))
print('3 x {} = {}'.format(valor, x3))
print('4 ... | 24.416667 | 40 | 0.52901 | 96 | 586 | 3.229167 | 0.291667 | 0.225806 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094017 | 0.201365 | 586 | 23 | 41 | 25.478261 | 0.568376 | 0 | 0 | 0 | 0 | 0 | 0.21843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.47619 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f46df5dfc527a21828984007f0e01172004e6e8c | 450 | py | Python | src/lambdainit.py | mkrauklis/amazon-sqs-dlq-replay-backoff | 36fa9c4c8049ad8b18e55b39bcea2f9c5e20d1cc | [
"MIT-0"
] | 35 | 2020-11-20T15:59:43.000Z | 2022-03-14T19:15:01.000Z | src/lambdainit.py | mkrauklis/amazon-sqs-dlq-replay-backoff | 36fa9c4c8049ad8b18e55b39bcea2f9c5e20d1cc | [
"MIT-0"
] | 4 | 2021-01-22T16:21:23.000Z | 2022-01-28T01:45:43.000Z | src/lambdainit.py | mkrauklis/amazon-sqs-dlq-replay-backoff | 36fa9c4c8049ad8b18e55b39bcea2f9c5e20d1cc | [
"MIT-0"
] | 19 | 2021-01-17T09:43:33.000Z | 2022-03-04T18:08:56.000Z | """Special initializations for Lambda functions.
This file must be imported as the first import in any file containing
a Lambda function handler method.
"""
import sys
# add packaged dependencies to search path
sys.path.append('lib')
# imports of library dependencies must come after setting up
# the dependency se... | 25 | 70 | 0.777778 | 68 | 450 | 5.088235 | 0.764706 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.166667 | 450 | 17 | 71 | 26.470588 | 0.914667 | 0.873333 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f4700e24a39e4dae58fc83a6369650ba4794c08d | 321 | py | Python | robust_sleep_net/models/modulo_net/sequence_encoder/__init__.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | 16 | 2021-04-06T14:04:45.000Z | 2022-03-11T14:37:08.000Z | robust_sleep_net/models/modulo_net/sequence_encoder/__init__.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | null | null | null | robust_sleep_net/models/modulo_net/sequence_encoder/__init__.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | 4 | 2021-06-10T06:48:33.000Z | 2022-03-26T22:29:07.000Z | from .gru_sequence_encoder import GRUSequenceEncoder, LSTMSequenceEncoder
from .residual_sequence_encoder import ResidualGRUSequenceEncoder
sequence_encoders = {
"GRUSequenceEncoder": GRUSequenceEncoder,
"LSTMSequenceEncoder": LSTMSequenceEncoder,
"ResidualGRUSequenceEncoder": ResidualGRUSequenceEncoder,
}... | 35.666667 | 73 | 0.844237 | 21 | 321 | 12.666667 | 0.47619 | 0.112782 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099688 | 321 | 8 | 74 | 40.125 | 0.920415 | 0 | 0 | 0 | 0 | 0 | 0.196262 | 0.080997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f473970e70b289354432f1bfb2af005e4e19a1d7 | 386 | py | Python | timtec/context_processor.py | rafaelbantu/timtec | 86c51b7440a044704ed33c3e752a6cf6b15ceae3 | [
"BSD-3-Clause"
] | 21 | 2015-09-23T14:07:16.000Z | 2022-02-18T01:35:18.000Z | timtec/context_processor.py | rafaelbantu/timtec | 86c51b7440a044704ed33c3e752a6cf6b15ceae3 | [
"BSD-3-Clause"
] | 178 | 2016-05-10T16:16:19.000Z | 2021-12-15T20:21:21.000Z | timtec/context_processor.py | rafaelbantu/timtec | 86c51b7440a044704ed33c3e752a6cf6b15ceae3 | [
"BSD-3-Clause"
] | 18 | 2015-10-23T13:28:17.000Z | 2021-09-22T13:08:28.000Z | from django.utils.translation import to_locale, get_language
from django.conf import settings
def locale(request):
return {'LOCALE': to_locale(get_language())}
def openid_providers(request):
providers = getattr(settings, 'SOCIALACCOUNT_PROVIDERS', {})
openid = providers.get('openid', {})
servers = o... | 27.571429 | 64 | 0.722798 | 44 | 386 | 6.181818 | 0.431818 | 0.165441 | 0.080882 | 0.139706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145078 | 386 | 13 | 65 | 29.692308 | 0.824242 | 0 | 0 | 0 | 0 | 0 | 0.150259 | 0.059585 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f47ccf9de0edf58ee13878681c65d28d170c0091 | 1,593 | py | Python | snakemake/configs/GRCz11_SRP033369.py | saketkc/re-ribo-smk | c9326cbafdfa060e22e9af692d9146c37f5035ba | [
"BSD-2-Clause"
] | 1 | 2019-09-11T17:09:48.000Z | 2019-09-11T17:09:48.000Z | snakemake/configs/GRCz11_SRP033369.py | saketkc/re-ribo-smk | c9326cbafdfa060e22e9af692d9146c37f5035ba | [
"BSD-2-Clause"
] | null | null | null | snakemake/configs/GRCz11_SRP033369.py | saketkc/re-ribo-smk | c9326cbafdfa060e22e9af692d9146c37f5035ba | [
"BSD-2-Clause"
] | null | null | null | RAWDATA_DIR = '/staging/as/skchoudh/re-ribo-datasets/GRCz11/SRP033369'
OUT_DIR = '/staging/as/skchoudh/re-ribo-analysis/GRCz11/SRP033369'
GENOME_FASTA = '/home/cmb-06/as/skchoudh/genomes/GRCz11/fasta/Danio_rerio.GRCz11.dna.primary_assembly.fa'
CHROM_SIZES = '/home/cmb-06/as/skchoudh/genomes/GRCz11/fasta/Danio_rerio.GRC... | 79.65 | 122 | 0.811048 | 234 | 1,593 | 5.363248 | 0.277778 | 0.111554 | 0.086056 | 0.105179 | 0.657371 | 0.657371 | 0.615936 | 0.539442 | 0.539442 | 0.539442 | 0 | 0.065317 | 0.03892 | 1,593 | 19 | 123 | 83.842105 | 0.754409 | 0 | 0 | 0 | 0 | 0.526316 | 0.7828 | 0.764595 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f487bcdf99bc4d380f8c1bfa49075eda62a16b56 | 1,378 | py | Python | pyinstaller-1.5.1/hooks/hook-PIL.Image.py | rafidhoda/differentiator_utility | b30ef54abef5bde46fb2d3eac8cb43218a7a4c17 | [
"Xnet",
"X11"
] | null | null | null | pyinstaller-1.5.1/hooks/hook-PIL.Image.py | rafidhoda/differentiator_utility | b30ef54abef5bde46fb2d3eac8cb43218a7a4c17 | [
"Xnet",
"X11"
] | null | null | null | pyinstaller-1.5.1/hooks/hook-PIL.Image.py | rafidhoda/differentiator_utility | b30ef54abef5bde46fb2d3eac8cb43218a7a4c17 | [
"Xnet",
"X11"
] | null | null | null | # Copyright (C) 2005, Giovanni Bajo
# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the... | 45.933333 | 90 | 0.758345 | 224 | 1,378 | 4.638393 | 0.566964 | 0.030799 | 0.037536 | 0.05486 | 0.078922 | 0.053898 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.169811 | 1,378 | 29 | 91 | 47.517241 | 0.88549 | 0.917271 | 0 | 0 | 0 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0.034483 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
be51bb280d0da918d723c618585fc9e75ba632c6 | 39,782 | py | Python | lunar_python/Lunar.py | 6tail/lunar-python | 96e17121371009a524728d11c93d5a97119e27d5 | [
"MIT"
] | 61 | 2020-07-16T00:53:24.000Z | 2022-03-28T14:21:34.000Z | lunar_python/Lunar.py | 6tail/lunar-python | 96e17121371009a524728d11c93d5a97119e27d5 | [
"MIT"
] | 4 | 2020-09-23T08:03:40.000Z | 2022-02-21T06:09:08.000Z | lunar_python/Lunar.py | 6tail/lunar-python | 96e17121371009a524728d11c93d5a97119e27d5 | [
"MIT"
] | 25 | 2020-05-25T00:26:25.000Z | 2022-03-29T03:13:54.000Z | # -*- coding: utf-8 -*-
from datetime import timedelta
from . import ExactDate, Solar, NineStar, EightChar, JieQi, ShuJiu, Fu, LunarTime
from .util import LunarUtil, SolarUtil
class Lunar:
"""
阴历日期
"""
JIE_QI = ("冬至", "小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满", "芒种", "夏至", "小暑", "大暑",... | 31.448221 | 242 | 0.591675 | 4,196 | 39,782 | 5.396806 | 0.147045 | 0.059174 | 0.060411 | 0.023846 | 0.345728 | 0.260278 | 0.204902 | 0.167145 | 0.143475 | 0.125502 | 0 | 0.012457 | 0.293751 | 39,782 | 1,264 | 243 | 31.473101 | 0.793529 | 0.038862 | 0 | 0.163265 | 0 | 0 | 0.013797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255702 | false | 0 | 0.006002 | 0.162065 | 0.52461 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
be6ecebd52665018648ee40d6441bb140a0ca5e2 | 1,221 | py | Python | disturbance/migrations/0254_auto_20210419_1553.py | thakurpriya1990/disturbance | 47f9ce5ae5f1b02d97ace11f1041e96daf7e4556 | [
"Apache-2.0"
] | 1 | 2020-06-30T04:47:42.000Z | 2020-06-30T04:47:42.000Z | disturbance/migrations/0254_auto_20210419_1553.py | thakurpriya1990/disturbance | 47f9ce5ae5f1b02d97ace11f1041e96daf7e4556 | [
"Apache-2.0"
] | 16 | 2020-03-11T08:25:46.000Z | 2022-03-02T08:14:40.000Z | disturbance/migrations/0254_auto_20210419_1553.py | thakurpriya1990/disturbance | 47f9ce5ae5f1b02d97ace11f1041e96daf7e4556 | [
"Apache-2.0"
] | 9 | 2020-01-30T17:37:38.000Z | 2021-09-30T02:22:24.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-04-19 07:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('disturbance', '0253_auto_20210414_1106'),
]
operations = [
migrations.Alte... | 29.780488 | 69 | 0.595414 | 101 | 1,221 | 7.049505 | 0.554455 | 0.189607 | 0.217697 | 0.168539 | 0.101124 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0.042775 | 0.291564 | 1,221 | 40 | 70 | 30.525 | 0.780347 | 0.056511 | 0 | 0.333333 | 1 | 0 | 0.2698 | 0.020017 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be79f3c6abdd68a0dcc2886700b04b8774af460b | 350 | py | Python | Lib/test/test_popen2.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 1 | 2019-10-25T21:41:07.000Z | 2019-10-25T21:41:07.000Z | Lib/test/test_popen2.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | Lib/test/test_popen2.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | #! /usr/bin/env python
"""Test script for popen2.py
Christian Tismer
"""
# popen2 contains its own testing routine
# which is especially useful to see if open files
# like stdin can be read successfully by a forked
# subprocess.
def main():
from os import fork # skips test through ImportError
import popen... | 19.444444 | 56 | 0.714286 | 51 | 350 | 4.882353 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.211429 | 350 | 17 | 57 | 20.588235 | 0.887681 | 0.697143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
be7b76171ddf9787fd7f28d0bf8b61e7f28304cb | 1,033 | py | Python | python/schuelerpraktika/sascha_mueller/Aufgaben/Aufgabe2.py | maximilianharr/code_snippets | 8b271e6fa9174e24200e88be59e417abd5f2f59a | [
"BSD-3-Clause"
] | null | null | null | python/schuelerpraktika/sascha_mueller/Aufgaben/Aufgabe2.py | maximilianharr/code_snippets | 8b271e6fa9174e24200e88be59e417abd5f2f59a | [
"BSD-3-Clause"
] | null | null | null | python/schuelerpraktika/sascha_mueller/Aufgaben/Aufgabe2.py | maximilianharr/code_snippets | 8b271e6fa9174e24200e88be59e417abd5f2f59a | [
"BSD-3-Clause"
] | null | null | null | #-*- coding: utf-8 -*-
#Sinuskurve im Graphen
# @todo Beschriftung der Achsen
# @todo Legende
# @todo Sinus (gruen) und Cosinus (rot)
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
print ('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
print ('~~~~~~~~~~~~~~... | 24.023256 | 68 | 0.458858 | 132 | 1,033 | 3.575758 | 0.477273 | 0.169492 | 0.095339 | 0.025424 | 0.04661 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017467 | 0.113262 | 1,033 | 42 | 69 | 24.595238 | 0.497817 | 0.153921 | 0 | 0.307692 | 0 | 0 | 0.475751 | 0.362587 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0.038462 | 0.192308 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
bea017d3636be09dd661e52d841d15ca777a72e8 | 2,071 | py | Python | httprider/generated/import_text_dialog.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | null | null | null | httprider/generated/import_text_dialog.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | null | null | null | httprider/generated/import_text_dialog.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'resources/ui/import_text_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_ImportTextDialog(object):
def setupUi(sel... | 46.022222 | 115 | 0.757122 | 207 | 2,071 | 7.400966 | 0.405797 | 0.046997 | 0.083551 | 0.091384 | 0.046997 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008576 | 0.15548 | 2,071 | 44 | 116 | 47.068182 | 0.867353 | 0.098986 | 0 | 0 | 1 | 0 | 0.065627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.677419 | 0 | 0.774194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fe22f69bb96980a4a8294a2c96e1f999c02c68e9 | 216 | py | Python | src/spyd/game/room/player_event_handlers/replenish_ammo_handler.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | 4 | 2015-05-05T16:44:42.000Z | 2020-10-27T09:45:23.000Z | src/spyd/game/room/player_event_handlers/replenish_ammo_handler.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | null | null | null | src/spyd/game/room/player_event_handlers/replenish_ammo_handler.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | 2 | 2016-12-13T22:21:08.000Z | 2020-03-14T16:44:20.000Z | from spyd.registry_manager import register
@register('room_player_event_handler')
class ReplenishAmmoHandler(object):
event_type = 'replenish_ammo'
@staticmethod
def handle(room, player):
pass
| 19.636364 | 42 | 0.74537 | 24 | 216 | 6.458333 | 0.833333 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175926 | 216 | 10 | 43 | 21.6 | 0.870787 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 0.115741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fe27ebc4cfc75e92be73c007e6bb332c08d6fb53 | 179 | py | Python | src/rosdiscover/models/placeholder.py | rosqual/rosdiscover | ec1832b8df2c1c55764c8a33debb6174ae32d299 | [
"Apache-2.0"
] | 2 | 2021-09-23T13:36:39.000Z | 2021-09-23T13:41:32.000Z | src/rosdiscover/models/placeholder.py | ChrisTimperley/rosdiscover | ce55a011bfda03b0dc70d543bbff5462fff16e8e | [
"Apache-2.0"
] | 48 | 2020-06-02T19:59:27.000Z | 2021-07-27T02:07:05.000Z | src/rosdiscover/models/placeholder.py | rosqual/rosdiscover | ec1832b8df2c1c55764c8a33debb6174ae32d299 | [
"Apache-2.0"
] | 1 | 2020-06-01T16:56:49.000Z | 2020-06-01T16:56:49.000Z | from ..interpreter import model
@model('PLACEHOLDER', 'PLACEHOLDER')
def placeholder(c):
# c.pub("/diagnostics", "diagnostic_msgs/DiagnosticArray")
c.mark_placeholder()
| 22.375 | 62 | 0.726257 | 19 | 179 | 6.736842 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122905 | 179 | 7 | 63 | 25.571429 | 0.815287 | 0.312849 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe38332d337b2818062c9e9664b3bfa96905c30f | 1,184 | py | Python | sumu/tests/test_aps.py | Sera91/sumu | 1ad51e89c62ea8074735611d88668094d5cf1c3d | [
"BSD-3-Clause"
] | 4 | 2021-11-04T11:32:33.000Z | 2021-12-24T14:55:14.000Z | sumu/tests/test_aps.py | Sera91/sumu | 1ad51e89c62ea8074735611d88668094d5cf1c3d | [
"BSD-3-Clause"
] | 18 | 2021-10-30T07:31:12.000Z | 2022-02-05T10:25:08.000Z | sumu/tests/test_aps.py | Sera91/sumu | 1ad51e89c62ea8074735611d88668094d5cf1c3d | [
"BSD-3-Clause"
] | 3 | 2020-12-29T11:45:18.000Z | 2022-03-10T12:09:18.000Z | import numpy as np
import sumu
def test_aps_runs():
w = np.array(
[
[
-289.523,
-261.6225,
-166.2411,
-167.5349,
-193.1454,
19.45066,
-71.52742,
29.97363,
... | 20.413793 | 45 | 0.288007 | 93 | 1,184 | 3.526882 | 0.688172 | 0.073171 | 0.067073 | 0.079268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.465957 | 0.603041 | 1,184 | 57 | 46 | 20.77193 | 0.231915 | 0 | 0 | 0.392157 | 0 | 0 | 0.006757 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 1 | 0.019608 | false | 0 | 0.039216 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe45a240db26fea3e2306571d43e9b8644288cb4 | 125 | py | Python | api/src/_tests.py | KaioViana/analise-de-markov | 7fc187a532b0247def4d13256fb342c7035c2532 | [
"MIT"
] | 1 | 2020-10-18T17:26:32.000Z | 2020-10-18T17:26:32.000Z | api/src/_tests.py | KaioViana/analise-de-markov | 7fc187a532b0247def4d13256fb342c7035c2532 | [
"MIT"
] | null | null | null | api/src/_tests.py | KaioViana/analise-de-markov | 7fc187a532b0247def4d13256fb342c7035c2532 | [
"MIT"
] | null | null | null | from markov_chain import MarkovChain
markov_chain = MarkovChain()
text = ''
chain = markov_chain.chain(text)
print(chain) | 13.888889 | 36 | 0.768 | 16 | 125 | 5.8125 | 0.4375 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136 | 125 | 9 | 37 | 13.888889 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe47f80a01eaf4b3015f3fea29a4f67d9fc64957 | 987 | py | Python | raven/pybullet_utils.py | HaojHuang/Equivariant-Transporter-Net | f3bd4bb0d669b54be9385a3246355a6f68a6bfea | [
"Apache-2.0"
] | 2 | 2022-03-05T20:44:17.000Z | 2022-03-25T02:19:05.000Z | raven/pybullet_utils.py | HaojHuang/Equivariant-Transporter-Net | f3bd4bb0d669b54be9385a3246355a6f68a6bfea | [
"Apache-2.0"
] | 1 | 2022-03-25T05:04:15.000Z | 2022-03-25T05:04:15.000Z | raven/raven/pybullet_utils.py | HaojHuang/Equivariant-Transporter-Net | f3bd4bb0d669b54be9385a3246355a6f68a6bfea | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2021 The Ravens Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 30.84375 | 74 | 0.749747 | 147 | 987 | 4.993197 | 0.666667 | 0.081744 | 0.035422 | 0.043597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010962 | 0.168186 | 987 | 31 | 75 | 31.83871 | 0.883069 | 0.72847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
fe4b7951e4d20208e2878e1c8368b3cb6022d41a | 1,663 | py | Python | tests/unit/test_api.py | mcanaves/chubbyrepo | 8e10a36257982dfa06aae69d74c259af87c16032 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_api.py | mcanaves/chubbyrepo | 8e10a36257982dfa06aae69d74c259af87c16032 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_api.py | mcanaves/chubbyrepo | 8e10a36257982dfa06aae69d74c259af87c16032 | [
"BSD-3-Clause"
] | null | null | null | from unittest import mock
from flask import url_for
from chubbyrepo.core.responses import ResponseSuccess
@mock.patch('chubbyrepo.core.interactors.OrganizationStatsInteractor.execute')
def test_get_organization_stats(mock_interactor, client):
organization_stats_data = {'name': 'Acme Corp.', 'stars': 200}
mo... | 46.194444 | 96 | 0.78653 | 196 | 1,663 | 6.382653 | 0.25 | 0.115108 | 0.129496 | 0.055156 | 0.748201 | 0.721023 | 0.721023 | 0.697042 | 0.697042 | 0.697042 | 0 | 0.012829 | 0.109441 | 1,663 | 35 | 97 | 47.514286 | 0.83187 | 0 | 0 | 0.518519 | 0 | 0 | 0.234516 | 0.162959 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe545da3cd77dc6935d4056b223046d8a587d768 | 392 | py | Python | distributex/backends/backend.py | calston/distributex | 06ef0f948f7587ccf2a45305e8de45e9922990cc | [
"MIT"
] | 2 | 2018-06-07T12:46:22.000Z | 2020-11-21T18:10:44.000Z | distributex/backends/backend.py | calston/distributex | 06ef0f948f7587ccf2a45305e8de45e9922990cc | [
"MIT"
] | null | null | null | distributex/backends/backend.py | calston/distributex | 06ef0f948f7587ccf2a45305e8de45e9922990cc | [
"MIT"
] | null | null | null | from zope import interface
import time
class ICacheBackend(interface.Interface):
def get_lock(self, pool, host):
"""
Try to get a lock on a specific pool
"""
def release_lock(self, pool, host):
"""
Release the lock on a pool
"""
def add_pool(self, pool, ex... | 19.6 | 44 | 0.561224 | 49 | 392 | 4.428571 | 0.510204 | 0.110599 | 0.110599 | 0.147465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.344388 | 392 | 19 | 45 | 20.631579 | 0.844358 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fe5d457d5450876b2c1749d8e3c1fe106cfd425b | 249 | py | Python | python_tutorial/sysmodule.py | vchatchai/python101 | c2f1c7b0f62a4600f9c64af566dc5630742580f2 | [
"Apache-2.0"
] | null | null | null | python_tutorial/sysmodule.py | vchatchai/python101 | c2f1c7b0f62a4600f9c64af566dc5630742580f2 | [
"Apache-2.0"
] | null | null | null | python_tutorial/sysmodule.py | vchatchai/python101 | c2f1c7b0f62a4600f9c64af566dc5630742580f2 | [
"Apache-2.0"
] | null | null | null | import sys
print(sys.__name__)
print(sys.path)
import fibo
for value in dir(fibo) :
print(value)
print(fibo.__builtins__)
print("sys")
for value in dir(sys) :
print(value)
import builtins
for value in dir(builtins):
print(value) | 12.45 | 27 | 0.698795 | 38 | 249 | 4.368421 | 0.289474 | 0.144578 | 0.180723 | 0.23494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188755 | 249 | 20 | 28 | 12.45 | 0.821782 | 0 | 0 | 0.230769 | 0 | 0 | 0.012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.538462 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fe60f290a2625fa63f4bda23340c610aaaea6cbf | 2,314 | py | Python | graph_explorer/structured_metrics/plugins/carbon.py | farheenkaifee/dashboard_3 | bc557a6190a99182ec7a1c96dfdd33208a8575cd | [
"Apache-2.0"
] | 284 | 2015-01-03T05:35:18.000Z | 2022-01-19T08:30:31.000Z | structured_metrics/plugins/carbon.py | techdragon/graph-explorer | 729b4e19dbfdd0f2ba031db08e6b5563c4eb6613 | [
"Apache-2.0"
] | 9 | 2015-01-20T16:41:01.000Z | 2017-02-03T08:02:39.000Z | graph_explorer/structured_metrics/plugins/carbon.py | isabella232/graph-explorer | bc557a6190a99182ec7a1c96dfdd33208a8575cd | [
"Apache-2.0"
] | 35 | 2015-02-05T13:03:51.000Z | 2022-01-19T08:31:15.000Z | from . import Plugin
class CarbonPlugin(Plugin):
'''
these definitions are probably not correct and need to be adjusted.
a lot of these might actually be rates and/or in different units. somebody fixme kthx!
'''
targets = [
{
'match': 'carbon\.agents\.(?P<agent>[^\.]+)\.(?P<wtt... | 39.896552 | 90 | 0.482282 | 230 | 2,314 | 4.808696 | 0.365217 | 0.325497 | 0.164557 | 0.176311 | 0.128391 | 0.052441 | 0.052441 | 0 | 0 | 0 | 0 | 0.001213 | 0.287381 | 2,314 | 57 | 91 | 40.596491 | 0.669497 | 0.075194 | 0 | 0.081633 | 0 | 0 | 0.343396 | 0.061321 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.020408 | false | 0 | 0.020408 | 0 | 0.081633 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe6e327a52e974db149a8ce59573e4423eba3d14 | 5,940 | py | Python | python/smqtk/utils/metrics.py | jbeezley/SMQTK | e6b00f94be95f39bbca52a7983ac3d6d1f86f847 | [
"BSD-3-Clause"
] | 82 | 2015-01-07T15:33:29.000Z | 2021-08-11T18:34:05.000Z | python/smqtk/utils/metrics.py | jbeezley/SMQTK | e6b00f94be95f39bbca52a7983ac3d6d1f86f847 | [
"BSD-3-Clause"
] | 230 | 2015-04-08T14:36:51.000Z | 2022-03-14T17:55:30.000Z | python/smqtk/utils/metrics.py | DigitalCompanion/SMQTK | fc9404b69150ef44f24423844bc80735c0c2b669 | [
"BSD-3-Clause"
] | 65 | 2015-01-04T15:00:16.000Z | 2021-11-19T18:09:11.000Z | """
LICENCE
-------
Copyright 2015 by Kitware, Inc. All Rights Reserved. Please refer to
KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
"""
from math import acos, pi
import numpy as np
def histogram_intersection_distance(a, b):
... | 32.459016 | 80 | 0.666162 | 892 | 5,940 | 4.402466 | 0.29148 | 0.007639 | 0.043545 | 0.059587 | 0.27069 | 0.196588 | 0.160682 | 0.154316 | 0.154316 | 0.119684 | 0 | 0.016178 | 0.229966 | 5,940 | 182 | 81 | 32.637363 | 0.84237 | 0.774916 | 0 | 0.190476 | 0 | 0 | 0.001067 | 0 | 0 | 0 | 0 | 0.016484 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fe92aad995811dd2e1d90204cdde63230dbda417 | 1,728 | py | Python | tellurium/plotting/engine_null.py | kirichoi/tellurium | 77cf6e794600587741ebe209644a78051e0db1d5 | [
"Apache-2.0"
] | 73 | 2016-06-13T12:44:28.000Z | 2021-12-31T14:44:39.000Z | tellurium/plotting/engine_null.py | kirichoi/tellurium | 77cf6e794600587741ebe209644a78051e0db1d5 | [
"Apache-2.0"
] | 461 | 2015-03-26T00:05:16.000Z | 2022-03-16T17:24:35.000Z | tellurium/plotting/engine_null.py | kirichoi/tellurium | 77cf6e794600587741ebe209644a78051e0db1d5 | [
"Apache-2.0"
] | 30 | 2016-01-18T16:50:54.000Z | 2021-07-06T09:29:53.000Z | """
Plotly implementation of the plotting engine.
"""
from __future__ import print_function, absolute_import
from .engine import PlottingEngine, PlottingFigure, PlottingLayout, filterWithSelections, TiledFigure, LowerTriFigure
class NullEngine(PlottingEngine):
""" PlottingEngine using plotly. """
def __init... | 28.8 | 129 | 0.70081 | 186 | 1,728 | 6.33871 | 0.354839 | 0.027142 | 0.044105 | 0.030534 | 0.157761 | 0.103478 | 0.059372 | 0.059372 | 0 | 0 | 0 | 0 | 0.190394 | 1,728 | 59 | 130 | 29.288136 | 0.842745 | 0.076968 | 0 | 0.25 | 0 | 0 | 0.007648 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.40625 | false | 0.1875 | 0.0625 | 0.09375 | 0.71875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fe96529e398c315d50e199855278c6a043369888 | 291 | py | Python | pass_hash.py | p-lahanas/password-manager | 702e227b280ac4ca751bf2894acedd8ddd10c650 | [
"MIT"
] | null | null | null | pass_hash.py | p-lahanas/password-manager | 702e227b280ac4ca751bf2894acedd8ddd10c650 | [
"MIT"
] | null | null | null | pass_hash.py | p-lahanas/password-manager | 702e227b280ac4ca751bf2894acedd8ddd10c650 | [
"MIT"
] | null | null | null | import hashlib
#To convert your password to a hashed password, enter the desired password when prompted
#Copy and paste the output to the HASHED_ADMIN variable in the main.py file
password = input("Please enter your password: ")
print(hashlib.sha256(password.encode()).hexdigest()) | 36.375 | 89 | 0.769759 | 43 | 291 | 5.186047 | 0.674419 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.158076 | 291 | 8 | 90 | 36.375 | 0.897959 | 0.553265 | 0 | 0 | 0 | 0 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.666667 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
fe97057aa351ba9e708f4d3fe2534e5c2ee6afee | 261 | py | Python | Chapter 10/Chap10_Example10.10.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 10/Chap10_Example10.10.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 10/Chap10_Example10.10.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | from threading import *
def displaymsg():
print("Child Thread")
myt1 = Thread(target = displaymsg)
myt1.start()
print(f"{current_thread().getName()} unique id is: {current_thread().ident}" )
print(f"{myt1.getName()} unique id is: {myt1.ident}" )
| 26.1 | 79 | 0.670498 | 34 | 261 | 5.088235 | 0.529412 | 0.069364 | 0.17341 | 0.196532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.157088 | 261 | 9 | 80 | 29 | 0.768182 | 0 | 0 | 0 | 0 | 0 | 0.484127 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fea26698c9b4060b0f4ac0f1ce36da30110bd574 | 350 | py | Python | sphinx_d/test.py | wjw19854/sphinx-dev | 1a4dfb839cba89e31f3eae7c5463317dc9dee875 | [
"MIT"
] | 1 | 2018-05-15T07:34:17.000Z | 2018-05-15T07:34:17.000Z | sphinx_d/test.py | wjw19854/sphinx-dev | 1a4dfb839cba89e31f3eae7c5463317dc9dee875 | [
"MIT"
] | null | null | null | sphinx_d/test.py | wjw19854/sphinx-dev | 1a4dfb839cba89e31f3eae7c5463317dc9dee875 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
module document
"""
class a(object):
"""
class document
"""
def __init__(self):
"""
init document
"""
pass
def func_a(self, arg1):
"""
func_a document
:param arg1: arg1 document
:return: return document
... | 14 | 34 | 0.462857 | 33 | 350 | 4.727273 | 0.515152 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019704 | 0.42 | 350 | 24 | 35 | 14.583333 | 0.748768 | 0.365714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
feb014dd035bb397dcbfbbedbd0fb08ef35686b9 | 400 | py | Python | setup.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | 1 | 2021-05-03T09:11:35.000Z | 2021-05-03T09:11:35.000Z | setup.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | null | null | null | setup.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='Computational Engineering B',
version='0.0.1',
description='cording for Computational Engineering B',
long_description=readme,
author='Takuya Wada',
author_email='wakky.927.5831@gmail.com',
install_requires=['numpy', 'numba', 'matplotlib'],
url... | 26.666667 | 66 | 0.7025 | 47 | 400 | 5.914894 | 0.765957 | 0.258993 | 0.269784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.155 | 400 | 14 | 67 | 28.571429 | 0.784024 | 0 | 0 | 0 | 0 | 0 | 0.46 | 0.06 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
feb01c2e417a29c3491766b9424891b5dfe5684b | 6,403 | py | Python | vortexasdk/endpoints/eia_forecasts.py | V0RT3X4/python-sdk | 4cffae83b90a58a56f1a534057fa1ca1c8671e05 | [
"Apache-2.0"
] | 9 | 2019-11-13T17:14:55.000Z | 2019-11-18T16:06:13.000Z | vortexasdk/endpoints/eia_forecasts.py | VorTECHsa/python-sdk | d85aabd8d9843e4d04d857360492bea002c2b24b | [
"Apache-2.0"
] | 114 | 2020-01-08T11:08:24.000Z | 2022-03-30T16:42:23.000Z | vortexasdk/endpoints/eia_forecasts.py | V0RT3X4/python-sdk | 4cffae83b90a58a56f1a534057fa1ca1c8671e05 | [
"Apache-2.0"
] | 6 | 2020-05-28T00:09:02.000Z | 2022-03-14T03:52:44.000Z | """
Try me out in your browser:
[.split())
if k % 2 == 0:
print(a - b)
else:
print(b - a)
| 15.666667 | 38 | 0.457447 | 19 | 94 | 2.263158 | 0.684211 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.297872 | 94 | 5 | 39 | 18.8 | 0.621212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
229bfdc41497a6f3dd972ecbe802ea32ba444a71 | 99 | py | Python | maintenance/smart-upload/language.py | dpatel257/Smart-City-Sample | 933c9220c37fbe4b67ec749a8e0315c803fcec66 | [
"BSD-3-Clause"
] | 126 | 2019-07-15T14:44:54.000Z | 2022-03-22T11:03:50.000Z | maintenance/smart-upload/language.py | dpatel257/Smart-City-Sample | 933c9220c37fbe4b67ec749a8e0315c803fcec66 | [
"BSD-3-Clause"
] | 97 | 2019-07-16T18:28:29.000Z | 2022-03-16T07:27:57.000Z | maintenance/smart-upload/language.py | dpatel257/Smart-City-Sample | 933c9220c37fbe4b67ec749a8e0315c803fcec66 | [
"BSD-3-Clause"
] | 74 | 2019-07-15T14:45:02.000Z | 2022-03-23T12:10:03.000Z | #!/usr/bin/python3
text={
"smart-upload": "smart-upload",
"maintanence": "maintanence",
}
| 14.142857 | 35 | 0.616162 | 10 | 99 | 6.1 | 0.7 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.161616 | 99 | 6 | 36 | 16.5 | 0.722892 | 0.171717 | 0 | 0 | 0 | 0 | 0.567901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
22a239c92fa9ff859f9311beb1892759f0103b5a | 415 | py | Python | chapter_1/1.9.py | frbaroni/ctci | ff2f308aae76ab0e3dde09c7f88f37b86073cb38 | [
"MIT"
] | null | null | null | chapter_1/1.9.py | frbaroni/ctci | ff2f308aae76ab0e3dde09c7f88f37b86073cb38 | [
"MIT"
] | null | null | null | chapter_1/1.9.py | frbaroni/ctci | ff2f308aae76ab0e3dde09c7f88f37b86073cb38 | [
"MIT"
] | null | null | null | import unittest
def isStringRotation(a, b):
return (b + b).find(a) != -1
class Playground(unittest.TestCase):
def test_0(self):
self.assertTrue(isStringRotation('waterloo', 'terloowa'))
def test_1(self):
self.assertTrue(isStringRotation('test', 'estt'))
def test_2(self):
self... | 23.055556 | 65 | 0.655422 | 48 | 415 | 5.4375 | 0.520833 | 0.08046 | 0.137931 | 0.260536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.190361 | 415 | 17 | 66 | 24.411765 | 0.764881 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.333333 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
22b02858406d278a34a116f3fe7a7648cc9f18db | 294 | py | Python | SVMModel/SVMSearchParameters.py | PashaIanko/ClothesClassifier | 79a3205b85c3c2a3b573c6834f12c69b724479dc | [
"MIT"
] | null | null | null | SVMModel/SVMSearchParameters.py | PashaIanko/ClothesClassifier | 79a3205b85c3c2a3b573c6834f12c69b724479dc | [
"MIT"
] | null | null | null | SVMModel/SVMSearchParameters.py | PashaIanko/ClothesClassifier | 79a3205b85c3c2a3b573c6834f12c69b724479dc | [
"MIT"
] | null | null | null | from GridSearchParameters import GridSearchParameters
class SVMSearchParameters(GridSearchParameters):
def __init__(self):
super().__init__()
def update_gs_params(self):
# No update, keep same search parameters as in parent
self.gs_params.update({})
| 29.4 | 62 | 0.70068 | 30 | 294 | 6.5 | 0.666667 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 294 | 9 | 63 | 32.666667 | 0.855263 | 0.173469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
22b47561f5565b279f72e4dce9820ac906ee2988 | 2,129 | py | Python | section_02_(strings)/string_count.py | alisonjo2786/old-python-lessons-fork | 2d3e271c569d33237d8e8ad8d465fcb3e67d025f | [
"MIT"
] | 425 | 2015-01-13T03:19:10.000Z | 2022-03-13T00:34:44.000Z | section_02_(strings)/string_count.py | Supercodero/python-lessons | 38409c318e7a62d30b2ffd68f8a7a5a5ec00778d | [
"MIT"
] | null | null | null | section_02_(strings)/string_count.py | Supercodero/python-lessons | 38409c318e7a62d30b2ffd68f8a7a5a5ec00778d | [
"MIT"
] | 178 | 2015-01-08T05:01:05.000Z | 2021-12-02T00:56:58.000Z | # String methods: string.count()
# string.count() tells you how many times one string appears in a larger string
gettysburg_address = """
Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty, and dedicated to the proposition that all men are created equal.
Now ... | 78.851852 | 175 | 0.772194 | 375 | 2,129 | 4.370667 | 0.466667 | 0.051861 | 0.053691 | 0.065894 | 0.039048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00287 | 0.181775 | 2,129 | 27 | 176 | 78.851852 | 0.938002 | 0.209488 | 0 | 0 | 0 | 0.555556 | 0.89194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
22bc25782e279c893526e4b4ee8d3ad38a93d8d6 | 195 | py | Python | pydsa/tests/sorting/test_merge_sort .py | pydsa/pydsa | 20410299bfeec2acf803c2185bf0d5c21be43dea | [
"BSD-3-Clause"
] | 126 | 2016-02-09T18:31:16.000Z | 2021-11-02T09:24:38.000Z | pydsa/tests/sorting/test_merge_sort .py | pydsa/pydsa | 20410299bfeec2acf803c2185bf0d5c21be43dea | [
"BSD-3-Clause"
] | 104 | 2016-03-01T12:12:56.000Z | 2019-04-30T16:13:04.000Z | pydsa/tests/sorting/test_merge_sort .py | pydsa/pydsa | 20410299bfeec2acf803c2185bf0d5c21be43dea | [
"BSD-3-Clause"
] | 124 | 2016-02-11T17:59:39.000Z | 2020-01-11T21:55:54.000Z | from random import randint
from pydsa.sorting.merge_sort import merge_sort
def test_merge_sort():
a = [randint(1, 100) for i in range(100)]
b = a
assert merge_sort(a) == sorted(b)
| 19.5 | 47 | 0.692308 | 33 | 195 | 3.939394 | 0.606061 | 0.276923 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045161 | 0.205128 | 195 | 9 | 48 | 21.666667 | 0.793548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
22c58e8af4e1ecf894980c96759862d73424ab87 | 962 | py | Python | src/py_dss_interface/models/DSSInterface/DSSInterfaceV.py | davilamds/py_dss_interface | a447c97787aeac962381db88dd622ccb235eef4b | [
"MIT"
] | 8 | 2020-08-15T12:56:03.000Z | 2022-01-04T15:51:14.000Z | src/py_dss_interface/models/DSSInterface/DSSInterfaceV.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 24 | 2021-04-24T18:33:19.000Z | 2021-11-13T14:59:54.000Z | src/py_dss_interface/models/DSSInterface/DSSInterfaceV.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 7 | 2020-08-15T12:56:04.000Z | 2021-10-04T16:14:30.000Z | # -*- encoding: utf-8 -*-
"""
Created by eniocc at 11/10/2020
"""
from typing import List
from py_dss_interface.models import Bridge
from py_dss_interface.models.Base import Base
class DSSInterfaceV(Base):
"""
This interface can be used to read/write certain properties of the active DSS object.
The str... | 33.172414 | 115 | 0.697505 | 144 | 962 | 4.5625 | 0.513889 | 0.053272 | 0.027397 | 0.054795 | 0.340944 | 0.200913 | 0.200913 | 0.200913 | 0.200913 | 0.200913 | 0 | 0.017038 | 0.206861 | 962 | 28 | 116 | 34.357143 | 0.844037 | 0.531185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
22eafa90d05d391eac905ce930af0f781ce5ec1d | 190 | py | Python | smart_insurance/__init__.py | iammaheshj/smartinsurance | 2888e95b1a7a6cea9e4c772333811cf5c478b4d0 | [
"MIT"
] | null | null | null | smart_insurance/__init__.py | iammaheshj/smartinsurance | 2888e95b1a7a6cea9e4c772333811cf5c478b4d0 | [
"MIT"
] | null | null | null | smart_insurance/__init__.py | iammaheshj/smartinsurance | 2888e95b1a7a6cea9e4c772333811cf5c478b4d0 | [
"MIT"
] | null | null | null | from flask import Flask
from smart_insurance._version import __version__
app = Flask(__name__)
import smart_insurance_routes
import cognitive
import experian
import vehicle
import premium
| 17.272727 | 48 | 0.857895 | 25 | 190 | 6.04 | 0.52 | 0.18543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121053 | 190 | 10 | 49 | 19 | 0.904192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
22ed8e5f8632f53664f9ad7be67d5b63ab386793 | 1,314 | py | Python | formulaic/materializers/types/evaluated_factor.py | fabio-rosa-ors/formulaic | a8784d1acf807eeddf73e5181f25881a2dc7b1bd | [
"MIT"
] | null | null | null | formulaic/materializers/types/evaluated_factor.py | fabio-rosa-ors/formulaic | a8784d1acf807eeddf73e5181f25881a2dc7b1bd | [
"MIT"
] | null | null | null | formulaic/materializers/types/evaluated_factor.py | fabio-rosa-ors/formulaic | a8784d1acf807eeddf73e5181f25881a2dc7b1bd | [
"MIT"
] | null | null | null | from formulaic.parser.types import Factor
class EvaluatedFactor:
def __init__(self, factor, values, kind=None, spans_intercept=False):
self.factor = factor
self.values = values
self.kind = kind
self.spans_intercept = spans_intercept
@property
def kind(self):
return... | 26.816327 | 83 | 0.625571 | 146 | 1,314 | 5.458904 | 0.294521 | 0.100376 | 0.080301 | 0.050188 | 0.228356 | 0.228356 | 0.228356 | 0.228356 | 0.228356 | 0.228356 | 0 | 0 | 0.289954 | 1,314 | 48 | 84 | 27.375 | 0.854234 | 0 | 0 | 0.184211 | 0 | 0 | 0.04414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0 | 0.026316 | 0.131579 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fe0482dc7a6c7235fd5a57e9b14d7ba6e6beb9c1 | 334 | py | Python | set_examples.py | shaunakv1/agis-python | 45489d4534cbf4a39a3020449a4762a186a8830e | [
"MIT"
] | null | null | null | set_examples.py | shaunakv1/agis-python | 45489d4534cbf4a39a3020449a4762a186a8830e | [
"MIT"
] | null | null | null | set_examples.py | shaunakv1/agis-python | 45489d4534cbf4a39a3020449a4762a186a8830e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# (c)2015 John Strickler
letters = ['a', 'b','m','z', 'x', 'c']
s1 = set(letters)
s2 = { 'm', 'c', 'a', 'd', 'f', 'r' }
s2.add('p')
s2.add('p')
s2.add('p')
print "intersection:", s1 & s2
print "union:", s1 | s2
print "xor:", s1 ^ s2
print 's1 - s2:', s1 - s2
print 's2 - s1:', s2 - s1
print len... | 17.578947 | 38 | 0.51497 | 61 | 334 | 2.819672 | 0.442623 | 0.139535 | 0.209302 | 0.093023 | 0.104651 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 0.191617 | 334 | 18 | 39 | 18.555556 | 0.544444 | 0.128743 | 0 | 0.25 | 0 | 0 | 0.186851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a3e303a7c8b0a0f8f22a66c5310a62c021a0fd8e | 366 | py | Python | pysg/testing.py | alonblade/pysg | 8b7eb4b06d2941d3a4b6c3a9e845983b4c84f551 | [
"MIT"
] | 1 | 2021-03-01T20:31:48.000Z | 2021-03-01T20:31:48.000Z | pysg/testing.py | alonblade/pysg | 8b7eb4b06d2941d3a4b6c3a9e845983b4c84f551 | [
"MIT"
] | 2 | 2021-01-17T13:35:09.000Z | 2021-01-18T21:16:41.000Z | pysg/testing.py | alonblade/pysg | 8b7eb4b06d2941d3a4b6c3a9e845983b4c84f551 | [
"MIT"
] | 1 | 2021-01-17T13:35:37.000Z | 2021-01-17T13:35:37.000Z | from pyrr import Quaternion
from pysg.pyrr_extensions import quaternion_are_equal
class CustomAssertions:
def assertQuaternionAreEqual(self, q1: Quaternion, q2: Quaternion, epsilon: float = 1e-12) -> None:
if not quaternion_are_equal(q1, q2, epsilon=epsilon):
raise AssertionError('Quaternion ... | 36.6 | 103 | 0.724044 | 48 | 366 | 5.416667 | 0.541667 | 0.123077 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036545 | 0.177596 | 366 | 9 | 104 | 40.666667 | 0.827243 | 0 | 0 | 0 | 0 | 0 | 0.117486 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a3e5479b2433e72d5d1d668db3d2491abb5cf295 | 1,412 | py | Python | byteparsing/failure.py | parallelwindfarms/byteparsing | 9222548be9ffe21597fb44ba1cef8409d4354a59 | [
"Apache-2.0"
] | null | null | null | byteparsing/failure.py | parallelwindfarms/byteparsing | 9222548be9ffe21597fb44ba1cef8409d4354a59 | [
"Apache-2.0"
] | 7 | 2021-02-11T09:32:44.000Z | 2021-02-18T14:48:27.000Z | byteparsing/failure.py | parallelwindfarms/byteparsing | 9222548be9ffe21597fb44ba1cef8409d4354a59 | [
"Apache-2.0"
] | null | null | null | """
Exceptions
==========
A parser can indicate a failure to parse by raising a `Failure`. Most of the
time such a `Failure` is not fatal, since it would be part of a range of parser
choices. Say we want to parse a number that is either an `int` or a `float`.
First we would try to parse using the `int` parser. If tha... | 28.816327 | 79 | 0.680595 | 194 | 1,412 | 4.747423 | 0.43299 | 0.034745 | 0.047774 | 0.032573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216714 | 1,412 | 48 | 80 | 29.416667 | 0.832731 | 0.435552 | 0 | 0.1 | 0 | 0 | 0.121053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0 | 0.05 | 0.15 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a3e8cbfe7e9db690ad5ab8c2e54c558ff498c072 | 2,190 | py | Python | zcli/ZAutomator.py | teriyakichild/python-zcli | 43538a8e02a18d3e415d98b2cb1114d074e44a4f | [
"Apache-2.0"
] | null | null | null | zcli/ZAutomator.py | teriyakichild/python-zcli | 43538a8e02a18d3e415d98b2cb1114d074e44a4f | [
"Apache-2.0"
] | null | null | null | zcli/ZAutomator.py | teriyakichild/python-zcli | 43538a8e02a18d3e415d98b2cb1114d074e44a4f | [
"Apache-2.0"
] | null | null | null | import json
from Tools import *
from ClsDict import ClsDict
import Zabbix
class ZAutomator(object):
def __init__(self, rpc_callback):
"""Class takes zapi instance and an RPC helper function"""
self.rpc = rpc_callback
self.bundles = []
#### Internal Properties
@property
def bu... | 27.375 | 87 | 0.576712 | 249 | 2,190 | 4.983936 | 0.425703 | 0.028203 | 0.038678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321461 | 2,190 | 79 | 88 | 27.721519 | 0.835128 | 0.269863 | 0 | 0.152174 | 0 | 0 | 0.068896 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.217391 | false | 0.065217 | 0.086957 | 0.043478 | 0.413043 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a3e92ac575d192d7c8d27e7902bda4d9a6ea2c10 | 202 | py | Python | djongo_test/djongo_test/djongo_app/testapp/models.py | shyamyadati/django-mongo | d44e5b9e40a6fbab0de795a430593dd2430de8ba | [
"MIT"
] | null | null | null | djongo_test/djongo_test/djongo_app/testapp/models.py | shyamyadati/django-mongo | d44e5b9e40a6fbab0de795a430593dd2430de8ba | [
"MIT"
] | null | null | null | djongo_test/djongo_test/djongo_app/testapp/models.py | shyamyadati/django-mongo | d44e5b9e40a6fbab0de795a430593dd2430de8ba | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class TestModel(models.Model):
name = models.TextField(default="hello", null=True)
timestamp = models.FloatField(default=-1.0, null=True) | 33.666667 | 58 | 0.742574 | 28 | 202 | 5.357143 | 0.75 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.133663 | 202 | 6 | 58 | 33.666667 | 0.845714 | 0.118812 | 0 | 0 | 0 | 0 | 0.028249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
43155499df67d34dc828aaa967b58d785a8a2a4d | 5,099 | py | Python | optimol/tests/test_data_compile.py | ShadyMikey/OptiMol | e18e35e8ea65a73818e901907395c7fd2bb24296 | [
"MIT"
] | null | null | null | optimol/tests/test_data_compile.py | ShadyMikey/OptiMol | e18e35e8ea65a73818e901907395c7fd2bb24296 | [
"MIT"
] | 4 | 2020-03-09T18:18:40.000Z | 2020-03-14T06:04:15.000Z | optimol/tests/test_data_compile.py | ng-git/OptiMol | e18e35e8ea65a73818e901907395c7fd2bb24296 | [
"MIT"
] | 2 | 2020-03-10T23:06:06.000Z | 2020-03-11T18:06:33.000Z | """ Test file for data_compile.py"""
from optimol import data_compile
import pandas as pd
import os
path = os.path.dirname(os.path.realpath(__file__))
def test_get_df_user_edge_cases():
""" Check for edge cases"""
edge_cases = [path + '/samples/empty.txt', path + '/samples/less_than_4.txt']
... | 22.266376 | 82 | 0.595999 | 604 | 5,099 | 4.731788 | 0.130795 | 0.119314 | 0.122463 | 0.10112 | 0.758223 | 0.717285 | 0.702939 | 0.612316 | 0.505948 | 0.36704 | 0 | 0.013648 | 0.310257 | 5,099 | 228 | 83 | 22.364035 | 0.798976 | 0.095117 | 0 | 0.679739 | 0 | 0 | 0.031994 | 0.005605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104575 | false | 0.163399 | 0.019608 | 0 | 0.124183 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
43269ce356378e3349100da641f4672747345b28 | 1,978 | py | Python | 2018_RPC_13/A.py | Luis-MX/competitive_programming | 1c3c6d259695e958662eddadd4a7ca48dc9e37e7 | [
"MIT"
] | null | null | null | 2018_RPC_13/A.py | Luis-MX/competitive_programming | 1c3c6d259695e958662eddadd4a7ca48dc9e37e7 | [
"MIT"
] | null | null | null | 2018_RPC_13/A.py | Luis-MX/competitive_programming | 1c3c6d259695e958662eddadd4a7ca48dc9e37e7 | [
"MIT"
] | null | null | null | from sys import stdin;
import copy
caras = [
[
[0,0,0],
[0,1,0],
[0,0,0]
],
[
[0,0,1],
[0,0,0],
[1,0,0]
],
[
[0,0,1],
[0,1,0],
[1,0,0]
],
[
[1,0,1],
[0,0,0],
[1,0,1]
],
[
[1,0,1],... | 19.78 | 34 | 0.474216 | 376 | 1,978 | 2.494681 | 0.079787 | 0.066098 | 0.054371 | 0.046908 | 0.696162 | 0.696162 | 0.69403 | 0.672708 | 0.641791 | 0.628998 | 0 | 0.149864 | 0.257836 | 1,978 | 99 | 35 | 19.979798 | 0.489101 | 0 | 0 | 0.701031 | 0 | 0 | 0.004044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010309 | false | 0 | 0.020619 | 0 | 0.041237 | 0.051546 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a2973e9f0516c32f19106a7a2a67986e856f270 | 1,124 | py | Python | Challenge/2020/201809009-WangZhengyu/OpenVINO-YOLOV4/monitors.py | fabien867729936/RoboPerception | ea2e0a7394dd8ef7791b3e25893820534ba78057 | [
"MIT"
] | 22 | 2020-09-04T13:49:11.000Z | 2022-03-07T00:37:35.000Z | Challenge/2020/201809009-WangZhengyu/OpenVINO-YOLOV4/monitors.py | fabien867729936/RoboPerception | ea2e0a7394dd8ef7791b3e25893820534ba78057 | [
"MIT"
] | 6 | 2020-09-15T13:00:51.000Z | 2022-02-26T07:37:57.000Z | Challenge/2020/201809009-WangZhengyu/OpenVINO-YOLOV4/monitors.py | fabien867729936/RoboPerception | ea2e0a7394dd8ef7791b3e25893820534ba78057 | [
"MIT"
] | 2 | 2021-07-14T02:31:28.000Z | 2021-09-16T17:27:08.000Z | """
Copyright (C) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 31.222222 | 80 | 0.670819 | 146 | 1,124 | 5.123288 | 0.657534 | 0.080214 | 0.034759 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.263345 | 1,124 | 35 | 81 | 32.114286 | 0.881643 | 0.5 | 0 | 0 | 0 | 0 | 0.060904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.214286 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4a3eb63ae901cc8258905589121b4a9f07356f4b | 483 | py | Python | models/recipe_ingredient.py | FrostMiser/Frostica | 7fe4cf44b71ce36fec74201a25b38d391714f12f | [
"MIT"
] | 1 | 2021-08-10T14:58:44.000Z | 2021-08-10T14:58:44.000Z | models/recipe_ingredient.py | FrostMiser/Frostica | 7fe4cf44b71ce36fec74201a25b38d391714f12f | [
"MIT"
] | 3 | 2021-06-08T21:38:17.000Z | 2022-01-13T02:46:07.000Z | models/recipe_ingredient.py | FrostMiser/Frostica-Adventure-Bot | 7fe4cf44b71ce36fec74201a25b38d391714f12f | [
"MIT"
] | 1 | 2019-03-18T05:18:24.000Z | 2019-03-18T05:18:24.000Z | from sqlalchemy import Column, Integer, ForeignKey
from sqlalchemy.orm import relationship
from common.base import Base
from models.item import Item
from models.recipe import Recipe
class RecipeIngredient(Base):
__tablename__ = 'recipe_ingredient'
id = Column(Integer, primary_key=True)
recipe_id = Colum... | 28.411765 | 54 | 0.763975 | 61 | 483 | 5.901639 | 0.360656 | 0.180556 | 0.191667 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151139 | 483 | 16 | 55 | 30.1875 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0.068323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4a4a3baaabf62c633336c9bf0ffe59fc3b739439 | 418 | py | Python | tools/intogen/runtime/pyenv/lib/python2.7/site-packages/wok/core/utils/timeout.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | 1 | 2021-02-05T13:19:58.000Z | 2021-02-05T13:19:58.000Z | chapter2/wok/master/wok/core/utils/timeout.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter2/wok/master/wok/core/utils/timeout.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | import time
class ProgressiveTimeout(object):
def __init__(self, start=0.5, maximum=6.0, step=0.5):
self.start = start
self.timeout = start
self.maximum = maximum
self.step = step
def next(self):
timeout = self.timeout
self.timeout += self.step
self.timeout = min(self.maximum, self.timeout)
return t... | 20.9 | 54 | 0.703349 | 62 | 418 | 4.677419 | 0.322581 | 0.265517 | 0.206897 | 0.151724 | 0.127586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.167464 | 418 | 20 | 55 | 20.9 | 0.816092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a7161fef03a8b19cc3ac03ff0d45f5aa2cec519 | 3,678 | py | Python | _unittests/ut_install/test_module_dependencies.py | sdpython/pymyinstall | 72b3a56a29def0694e34ccae910bf288a95cf4a5 | [
"MIT"
] | 8 | 2015-08-24T21:01:49.000Z | 2018-01-04T06:34:51.000Z | _unittests/ut_install/test_module_dependencies.py | sdpython/pymyinstall | 72b3a56a29def0694e34ccae910bf288a95cf4a5 | [
"MIT"
] | 66 | 2015-06-14T22:04:58.000Z | 2021-11-11T13:46:03.000Z | _unittests/ut_install/test_module_dependencies.py | sdpython/pymyinstall | 72b3a56a29def0694e34ccae910bf288a95cf4a5 | [
"MIT"
] | 5 | 2016-09-13T18:14:46.000Z | 2021-08-23T12:03:28.000Z | """
@brief test log(time=1s)
"""
import unittest
from pyquickhelper.loghelper import fLOG
from pymyinstall.installhelper import get_module_dependencies, get_module_metadata, version_consensus
from pymyinstall.installhelper.module_install_exceptions import WrongVersionError
from pymyinstall.installhelper.install_cm... | 42.767442 | 101 | 0.58646 | 463 | 3,678 | 4.451404 | 0.203024 | 0.038816 | 0.230956 | 0.391072 | 0.562834 | 0.562834 | 0.562834 | 0.562834 | 0.515284 | 0.515284 | 0 | 0.058905 | 0.215334 | 3,678 | 85 | 102 | 43.270588 | 0.655232 | 0.018488 | 0 | 0.289855 | 0 | 0 | 0.125486 | 0.011105 | 0 | 0 | 0 | 0 | 0.405797 | 1 | 0.043478 | false | 0.028986 | 0.086957 | 0 | 0.15942 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a911a3058bbff723ef1650860e85a476b83dfc6 | 1,505 | py | Python | csxtools/fastccd/phocount.py | leofang/csxtools | eb3ab7f33f230b3d09c428c7bcca94d4d8f844a5 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T22:01:30.000Z | 2020-11-08T14:25:29.000Z | csxtools/fastccd/phocount.py | leofang/csxtools | eb3ab7f33f230b3d09c428c7bcca94d4d8f844a5 | [
"BSD-3-Clause"
] | 62 | 2015-08-21T19:14:07.000Z | 2022-01-19T22:06:53.000Z | csxtools/fastccd/phocount.py | leofang/csxtools | eb3ab7f33f230b3d09c428c7bcca94d4d8f844a5 | [
"BSD-3-Clause"
] | 13 | 2015-08-20T15:29:41.000Z | 2020-02-10T22:52:10.000Z | from ..ext import phocount as ph
def photon_count(data, thresh, mean_filter, std_filter, nsum=3, nan=False):
"""Do single photon counting on CCD image
This routine does single photon counting by cluster analysis. The image
is searched for bright pixels within a threshold and then the energy
deposited... | 37.625 | 76 | 0.665781 | 228 | 1,505 | 4.359649 | 0.429825 | 0.030181 | 0.030181 | 0.038229 | 0.243461 | 0.243461 | 0.243461 | 0.243461 | 0.096579 | 0.096579 | 0 | 0.002762 | 0.278405 | 1,505 | 39 | 77 | 38.589744 | 0.912523 | 0.792027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4aa57e28088a7489158a37342dd4ae6fd1bfcab3 | 70 | py | Python | notebooks/_solutions/90_package_numpy17.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 58 | 2020-10-09T10:10:59.000Z | 2022-03-07T14:58:07.000Z | notebooks/_solutions/11-numpy17.py | amitkb3/DS-python-geospatial | 5f156ebff67e06d59b2a7ef446d1fed746ce0650 | [
"BSD-3-Clause"
] | 24 | 2020-09-30T19:57:14.000Z | 2021-10-05T07:21:09.000Z | notebooks/_solutions/11-numpy17.py | amitkb3/DS-python-geospatial | 5f156ebff67e06d59b2a7ef446d1fed746ce0650 | [
"BSD-3-Clause"
] | 19 | 2020-10-05T09:32:18.000Z | 2022-03-20T00:09:14.000Z | # Squeeze to 2D float array
b4_data = b4_data.squeeze().astype(float) | 35 | 41 | 0.757143 | 12 | 70 | 4.25 | 0.666667 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.128571 | 70 | 2 | 41 | 35 | 0.786885 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ab27f2d20100a889fa6fc3164c51393a8bff978 | 6,527 | py | Python | raiden/tests/unit/test_logging.py | christianbrb/raiden | 64f0715af076747b293671157e2cbbd235cab81b | [
"MIT"
] | null | null | null | raiden/tests/unit/test_logging.py | christianbrb/raiden | 64f0715af076747b293671157e2cbbd235cab81b | [
"MIT"
] | null | null | null | raiden/tests/unit/test_logging.py | christianbrb/raiden | 64f0715af076747b293671157e2cbbd235cab81b | [
"MIT"
] | null | null | null | import logging
import os
import pytest
import structlog
from raiden.exceptions import ConfigurationError
from raiden.log_config import LogFilter, configure_logging
def test_log_filter():
rules = {"": "INFO"}
filter_ = LogFilter(rules, default_level="INFO")
assert filter_.should_log("test", "DEBUG") is ... | 41.050314 | 268 | 0.6945 | 825 | 6,527 | 5.295758 | 0.140606 | 0.142824 | 0.214237 | 0.249943 | 0.658732 | 0.639506 | 0.618677 | 0.605859 | 0.590295 | 0.590295 | 0 | 0.032146 | 0.161177 | 6,527 | 158 | 269 | 41.310127 | 0.765845 | 0.018232 | 0 | 0.487603 | 0 | 0.016529 | 0.257772 | 0.080925 | 0 | 0 | 0.030933 | 0 | 0.495868 | 1 | 0.041322 | false | 0 | 0.049587 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4abb23da0a13436c343927890dddbe59f1551a59 | 501 | py | Python | nerodia/elements/hidden.py | harsh183/nerodia | 69c5e4408432e85b5af0b2da03015f729809dac4 | [
"MIT"
] | 83 | 2017-11-20T08:41:09.000Z | 2022-02-09T21:01:47.000Z | nerodia/elements/hidden.py | harsh183/nerodia | 69c5e4408432e85b5af0b2da03015f729809dac4 | [
"MIT"
] | 28 | 2017-11-21T02:25:03.000Z | 2021-04-15T15:26:30.000Z | nerodia/elements/hidden.py | harsh183/nerodia | 69c5e4408432e85b5af0b2da03015f729809dac4 | [
"MIT"
] | 14 | 2017-11-29T06:44:12.000Z | 2021-09-06T04:53:44.000Z | import six
from .html_elements import InputCollection
from ..elements.input import Input
from ..exception import ObjectDisabledException
from ..meta_elements import MetaHTMLElement
@six.add_metaclass(MetaHTMLElement)
class Hidden(Input):
@property
def visible(self):
return False
def click(self):... | 22.772727 | 91 | 0.774451 | 56 | 501 | 6.857143 | 0.571429 | 0.072917 | 0.078125 | 0.15625 | 0.182292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159681 | 501 | 21 | 92 | 23.857143 | 0.912114 | 0 | 0 | 0.133333 | 0 | 0 | 0.0998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.333333 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
435947efb7ded3df25a07db10231a6b94ebb99b3 | 918 | py | Python | app/main/forms.py | nancy88199488/Personal-Blog | 62dea8973cb017738a4e4048ae9624074a043554 | [
"MIT"
] | null | null | null | app/main/forms.py | nancy88199488/Personal-Blog | 62dea8973cb017738a4e4048ae9624074a043554 | [
"MIT"
] | null | null | null | app/main/forms.py | nancy88199488/Personal-Blog | 62dea8973cb017738a4e4048ae9624074a043554 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,SubmitField,BooleanField,TextAreaField
from wtforms.validators import Required,Email,EqualTo
from ..models import User
from wtforms import ValidationError
class updateProfile(FlaskForm):
bio = TextAreaField('Tell us more about you.... | 34 | 84 | 0.745098 | 91 | 918 | 7.505495 | 0.472527 | 0.131772 | 0.140556 | 0.204978 | 0.20205 | 0.20205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143791 | 918 | 26 | 85 | 35.307692 | 0.868957 | 0 | 0 | 0.157895 | 0 | 0 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.263158 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
43890353312ed72a313865d363fce625f7a60f8b | 568 | py | Python | crash_course/ch03/exec/seeing_the_world.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null | crash_course/ch03/exec/seeing_the_world.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null | crash_course/ch03/exec/seeing_the_world.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null |
places = ['shiyan', 'shanghai', 'chicago', 'paris', 'berlin']
print('original list')
print(places)
print('alphabetical order')
print(sorted(places))
print('original list')
print(places)
print('reverse alphabetical order')
print(sorted(places, reverse=True))
print('original list')
print(places)
# reversed list
places... | 17.75 | 61 | 0.739437 | 73 | 568 | 5.753425 | 0.246575 | 0.15 | 0.25 | 0.209524 | 0.452381 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096831 | 568 | 31 | 62 | 18.322581 | 0.818713 | 0.06162 | 0 | 0.565217 | 0 | 0 | 0.323864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.782609 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4391197d46c0626d92653eb3f603147af86b05f3 | 92 | py | Python | src/bookborrowing/api/v1/routers.py | miguelzetina/-book-borrowing-system | c8e356bb634ba3bc35116a4c8e7de6e2dd642e53 | [
"MIT"
] | 5 | 2019-02-02T05:47:19.000Z | 2021-07-06T02:19:16.000Z | src/bookborrowing/api/v1/routers.py | miguelzetina/-book-borrowing-system | c8e356bb634ba3bc35116a4c8e7de6e2dd642e53 | [
"MIT"
] | null | null | null | src/bookborrowing/api/v1/routers.py | miguelzetina/-book-borrowing-system | c8e356bb634ba3bc35116a4c8e7de6e2dd642e53 | [
"MIT"
] | 4 | 2019-09-06T07:56:42.000Z | 2020-07-27T14:24:27.000Z | from ...core.api.routers import DefaultRouter
router = DefaultRouter(trailing_slash=False)
| 23 | 45 | 0.815217 | 11 | 92 | 6.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 92 | 3 | 46 | 30.666667 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
439291ea39ee5575bd6cc83de75f64ec8a0a3b3f | 614 | py | Python | migrations/versions/f8b110875ac9_.py | Maethorin/concept2 | 05d64805388126a6fb1c412a3fe290b5fa7ed117 | [
"MIT"
] | null | null | null | migrations/versions/f8b110875ac9_.py | Maethorin/concept2 | 05d64805388126a6fb1c412a3fe290b5fa7ed117 | [
"MIT"
] | null | null | null | migrations/versions/f8b110875ac9_.py | Maethorin/concept2 | 05d64805388126a6fb1c412a3fe290b5fa7ed117 | [
"MIT"
] | null | null | null | """empty message
Revision ID: f8b110875ac9
Revises: 6506ed199f9b
Create Date: 2016-03-03 11:18:01.414991
"""
# revision identifiers, used by Alembic.
revision = 'f8b110875ac9'
down_revision = '6506ed199f9b'
from alembic import op
import app
import sqlalchemy as sa
def upgrade():
### commands auto generated by... | 21.928571 | 76 | 0.693811 | 76 | 614 | 5.565789 | 0.578947 | 0.06383 | 0.099291 | 0.108747 | 0.208038 | 0.208038 | 0.208038 | 0.208038 | 0 | 0 | 0 | 0.102362 | 0.172638 | 614 | 27 | 77 | 22.740741 | 0.730315 | 0.473941 | 0 | 0 | 0 | 0 | 0.158621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
439fd880a3467ab1b710df78cdd6f398fc1dba98 | 1,489 | py | Python | qiskit/pulse/pulse_lib/__init__.py | romainfd/qiskit-terra | b5285ccc5cb1d17b7c73402833f2750b93652426 | [
"Apache-2.0"
] | null | null | null | qiskit/pulse/pulse_lib/__init__.py | romainfd/qiskit-terra | b5285ccc5cb1d17b7c73402833f2750b93652426 | [
"Apache-2.0"
] | null | null | null | qiskit/pulse/pulse_lib/__init__.py | romainfd/qiskit-terra | b5285ccc5cb1d17b7c73402833f2750b93652426 | [
"Apache-2.0"
] | 1 | 2020-07-13T17:56:46.000Z | 2020-07-13T17:56:46.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 34.627907 | 96 | 0.754197 | 222 | 1,489 | 5.013514 | 0.509009 | 0.071878 | 0.115004 | 0.136568 | 0.204852 | 0.156334 | 0.062893 | 0.062893 | 0 | 0 | 0 | 0.01105 | 0.149093 | 1,489 | 42 | 97 | 35.452381 | 0.867403 | 0.860309 | 0 | 0 | 0 | 0 | 0.354497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
43b0c70da58443d28e2d7400c9f735eacd3134f1 | 998 | py | Python | ngos/models.py | daksh2k/cov-web | 4fd37ee215ccb7673981ae2104f90cb097269e9d | [
"MIT"
] | null | null | null | ngos/models.py | daksh2k/cov-web | 4fd37ee215ccb7673981ae2104f90cb097269e9d | [
"MIT"
] | null | null | null | ngos/models.py | daksh2k/cov-web | 4fd37ee215ccb7673981ae2104f90cb097269e9d | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
class Ngos(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
name = models.CharField(max_length=200)
email = models.CharField... | 32.193548 | 83 | 0.726453 | 132 | 998 | 5.340909 | 0.477273 | 0.170213 | 0.204255 | 0.27234 | 0.265248 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02509 | 0.161323 | 998 | 30 | 84 | 33.266667 | 0.817204 | 0.163327 | 0 | 0 | 0 | 0 | 0.026699 | 0.026699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0.055556 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.