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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8301c6aa8f8cef18ee82f5004b70a04e4bd907e | 1,379 | py | Python | code/agnfiles.py | NBCLab/PACE | c70acd01b8ac62c4d22de3b9a0808647890c3e6b | [
"MIT"
] | null | null | null | code/agnfiles.py | NBCLab/PACE | c70acd01b8ac62c4d22de3b9a0808647890c3e6b | [
"MIT"
] | null | null | null | code/agnfiles.py | NBCLab/PACE | c70acd01b8ac62c4d22de3b9a0808647890c3e6b | [
"MIT"
] | null | null | null | import argparse
import json
import os.path as op
from glob import glob
import pandas as pd
def participants(bids_dir):
"""
Generate participants.tsv and dataset_description.json
Parameters
----------
bids_dir : str
"""
# dataset_description.json
dictionary = {"Name": "ENIGMA-Addicti... | 23.372881 | 83 | 0.651922 | 183 | 1,379 | 4.672131 | 0.420765 | 0.081871 | 0.102924 | 0.045614 | 0.112281 | 0.112281 | 0.112281 | 0 | 0 | 0 | 0 | 0.003693 | 0.214648 | 1,379 | 58 | 84 | 23.775862 | 0.78578 | 0.097897 | 0 | 0 | 1 | 0 | 0.161317 | 0.039506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a83387a67a323eed712bae7c7c7f89195e19951e | 10,683 | py | Python | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoFill/scripts/clusterGUIpmv.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoFill/scripts/clusterGUIpmv.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoFill/scripts/clusterGUIpmv.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | import random
import numpy
from math import sqrt
# -- The Point class represents points in n-dimensional space
class Point:
# Instance variables
# self.coords is a list of coordinates for this Point
# self.n is the number of dimensions this Point lives in (ie, its space)
# self.reference is an object b... | 34.911765 | 83 | 0.608631 | 1,332 | 10,683 | 4.853604 | 0.237237 | 0.030317 | 0.007579 | 0.006806 | 0.250735 | 0.222893 | 0.164888 | 0.151276 | 0.113534 | 0.113534 | 0 | 0.016576 | 0.277169 | 10,683 | 305 | 84 | 35.02623 | 0.820642 | 0.235982 | 0 | 0.166667 | 0 | 0 | 0.058329 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0 | null | null | 0 | 0.058824 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8348c633ae9cf5b313419d0980936fb62b9f85f | 892 | py | Python | tests/test_pyafka.py | JacekPs/pyafka | 66ddc1dfbf2439cf3d0d5f65f5e92e64877f5f50 | [
"Apache-2.0"
] | 5 | 2020-10-18T17:26:25.000Z | 2020-10-19T09:25:08.000Z | tests/test_pyafka.py | JacekPs/pyafka | 66ddc1dfbf2439cf3d0d5f65f5e92e64877f5f50 | [
"Apache-2.0"
] | null | null | null | tests/test_pyafka.py | JacekPs/pyafka | 66ddc1dfbf2439cf3d0d5f65f5e92e64877f5f50 | [
"Apache-2.0"
] | null | null | null | from pyafkalib.pyafka import kafka_consumer
from time import time, sleep
SOME_MESSAGE = 'some message'
def test_kafka_consumer(mocker):
class Message:
def value(self):
return SOME_MESSAGE
mocker.patch('confluent_kafka.DeserializingConsumer.__init__', return_value = None)
mocker.patch('... | 34.307692 | 102 | 0.724215 | 103 | 892 | 6.009709 | 0.407767 | 0.105008 | 0.129241 | 0.161551 | 0.297254 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004093 | 0.178251 | 892 | 25 | 103 | 35.68 | 0.840382 | 0 | 0 | 0 | 0 | 0 | 0.252242 | 0.200673 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.15 | false | 0 | 0.1 | 0.05 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a83752f781fd48a31f4a6fb59008a960a96b0e81 | 925 | py | Python | app/service/dbdump_service.py | JunFuruya/Ratsnake | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | null | null | null | app/service/dbdump_service.py | JunFuruya/Ratsnake | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | 5 | 2018-05-17T04:03:39.000Z | 2021-09-08T01:03:17.000Z | app/service/dbdump_service.py | JunFuruya/Hideout | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import datetime
from app.repository.dbdump_repository import DbDumpRepository
from app.service.base_service import BaseService
'''
Service Module
'''
class DbDumpService(BaseService):
MESSAGE_NO_FILE = 'バックアップファイルはないよ。'
def __init__(self):
self.__dbdump_repository = DbDumpRep... | 26.428571 | 66 | 0.662703 | 109 | 925 | 5.266055 | 0.366972 | 0.139373 | 0.139373 | 0.055749 | 0.094077 | 0.094077 | 0 | 0 | 0 | 0 | 0 | 0.002869 | 0.246486 | 925 | 35 | 67 | 26.428571 | 0.82066 | 0.022703 | 0 | 0.26087 | 0 | 0 | 0.019296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.173913 | 0.130435 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b519bd58c2133936a736cca33cc50f3b9dcc2f16 | 1,426 | py | Python | src/nodeconductor_plus/plans/tests/factories.py | opennode/nodeconductor-plus | 418380e3e78aeb4d030b16ef9514556f82b57d41 | [
"MIT"
] | null | null | null | src/nodeconductor_plus/plans/tests/factories.py | opennode/nodeconductor-plus | 418380e3e78aeb4d030b16ef9514556f82b57d41 | [
"MIT"
] | null | null | null | src/nodeconductor_plus/plans/tests/factories.py | opennode/nodeconductor-plus | 418380e3e78aeb4d030b16ef9514556f82b57d41 | [
"MIT"
] | null | null | null | from django.core.urlresolvers import reverse
import factory
import factory.fuzzy
from .. import models
from nodeconductor.structure.tests import factories as structure_factories
class PlanFactory(factory.DjangoModelFactory):
class Meta(object):
model = models.Plan
name = factory.Sequence(lambda n: '... | 31 | 97 | 0.690743 | 161 | 1,426 | 6.049689 | 0.347826 | 0.057495 | 0.069815 | 0.110883 | 0.355236 | 0.223819 | 0.223819 | 0.119097 | 0.119097 | 0.119097 | 0 | 0.00524 | 0.197055 | 1,426 | 45 | 98 | 31.688889 | 0.845415 | 0 | 0 | 0.235294 | 0 | 0 | 0.107293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.147059 | 0.058824 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b51eca5ef2d466918b6822fec6cbc3fede4ac767 | 860 | py | Python | sourcedive/settings_private.dev.py | industrydive/sourcedive | eb8c4657a6c3182666dc15109bd982a5d5ba1325 | [
"MIT"
] | null | null | null | sourcedive/settings_private.dev.py | industrydive/sourcedive | eb8c4657a6c3182666dc15109bd982a5d5ba1325 | [
"MIT"
] | 16 | 2019-05-30T20:55:25.000Z | 2020-06-09T18:52:34.000Z | sourcedive/settings_private.dev.py | industrydive/sourcedive | eb8c4657a6c3182666dc15109bd982a5d5ba1325 | [
"MIT"
] | null | null | null | ## private settings
SECRET_KEY = '' # UPDATE with random string
ALLOWED_HOSTS = [
# local
'localhost',
'127.0.0.1',
# staging
'35.232.16.182',
]
INTERNAL_IPS = ['127.0.0.1']
## for local and test servers
TEST_ENV = True
## for prod server
# TEST_ENV = False
## project info
PROJECT_NAME = 'Sour... | 21.5 | 77 | 0.727907 | 118 | 860 | 5.059322 | 0.635593 | 0.100503 | 0.080402 | 0.020101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04039 | 0.165116 | 860 | 39 | 78 | 22.051282 | 0.789694 | 0.388372 | 0 | 0 | 0 | 0 | 0.261386 | 0.075248 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b523ddf798379c705e6c3d519471aef8f1ec0b20 | 1,657 | py | Python | Dos.py | Mr-amir84/Doss | bc96198baa6882ca4cfb0f13306e0b0129f61854 | [
"CC0-1.0"
] | null | null | null | Dos.py | Mr-amir84/Doss | bc96198baa6882ca4cfb0f13306e0b0129f61854 | [
"CC0-1.0"
] | null | null | null | Dos.py | Mr-amir84/Doss | bc96198baa6882ca4cfb0f13306e0b0129f61854 | [
"CC0-1.0"
] | null | null | null | import os
os.system("pip install requests socket webbrowser random datetime urllib.request && pkg install sl -y && pkg install figlet -y && pkg install ruby -y && pkg install curl -y && gem install lolcat && pkg install toilet -y")
import random
import socket
import webbrowser
import urllib.request ... | 36.822222 | 221 | 0.388051 | 144 | 1,657 | 4.416667 | 0.513889 | 0.066038 | 0.051887 | 0.061321 | 0.045597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135329 | 0.496077 | 1,657 | 44 | 222 | 37.659091 | 0.626347 | 0.009053 | 0 | 0.111111 | 0 | 0.027778 | 0.751371 | 0.077392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5267819825f36fc8713ac562bd591345d0a33d8 | 469 | py | Python | majestic-monolith-django/majestic-monolith-django/asgi.py | kokospapa8/majestic-monolith-django | a0879989a651ecef6761ee7fce619ab17738bb35 | [
"Apache-2.0"
] | 1 | 2022-03-12T09:55:36.000Z | 2022-03-12T09:55:36.000Z | majestic-monolith-django/majestic-monolith-django/asgi.py | kokospapa8/majestic-monolith-django | a0879989a651ecef6761ee7fce619ab17738bb35 | [
"Apache-2.0"
] | 6 | 2022-03-09T10:42:44.000Z | 2022-03-31T08:27:25.000Z | majestic-monolith-django/majestic-monolith-django/asgi.py | kokospapa8/majestic-monolith-django | a0879989a651ecef6761ee7fce619ab17738bb35 | [
"Apache-2.0"
] | null | null | null | """
ASGI config for majestic-monolith-django project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
ENV = os.environ.g... | 26.055556 | 91 | 0.776119 | 68 | 469 | 5.264706 | 0.647059 | 0.089385 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.100213 | 469 | 17 | 92 | 27.588235 | 0.843602 | 0.490405 | 0 | 0 | 0 | 0 | 0.298701 | 0.264069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b52ed5f9f077e548794a178be15ae7010ebdb34b | 340 | py | Python | Recursion/Easy/binary_search.py | sounak95/100_days_of_code | 50fbf088ce6ab2137aa216a30e3b3f828b278a22 | [
"Apache-2.0"
] | null | null | null | Recursion/Easy/binary_search.py | sounak95/100_days_of_code | 50fbf088ce6ab2137aa216a30e3b3f828b278a22 | [
"Apache-2.0"
] | null | null | null | Recursion/Easy/binary_search.py | sounak95/100_days_of_code | 50fbf088ce6ab2137aa216a30e3b3f828b278a22 | [
"Apache-2.0"
] | null | null | null |
def bs(arr,target,s,e):
if (s>e):
return -1
m= int((s+e)/2)
if arr[m]==target:
return m
elif target>arr[m]:
return bs(arr,target,m+1,e)
else:
return bs(arr,target,s,m-1)
if __name__ == "__main__":
l1=[1, 2, 3, 4, 55, 66, 78]
target = 67
print(bs(l1,... | 16.190476 | 36 | 0.502941 | 62 | 340 | 2.629032 | 0.419355 | 0.092025 | 0.202454 | 0.147239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088983 | 0.305882 | 340 | 21 | 36 | 16.190476 | 0.601695 | 0 | 0 | 0 | 0 | 0 | 0.023669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b53151bf5836e1f0bec599f702f64457192a34bc | 47,239 | py | Python | pKarun/WI_tools.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 3 | 2016-11-11T06:11:03.000Z | 2021-09-12T22:13:51.000Z | pKarun/WI_tools.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | null | null | null | pKarun/WI_tools.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 2 | 2016-02-15T16:10:36.000Z | 2018-02-27T10:33:21.000Z | #!/usr/bin/env python
#
# pKarun - scripts for running pKa calculations
# Copyright (C) 2010 Jens Erik Nielsen
#
# 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 3 of the License, ... | 35.226696 | 216 | 0.545609 | 6,198 | 47,239 | 4.130365 | 0.129235 | 0.007578 | 0.022344 | 0.030938 | 0.485664 | 0.452695 | 0.403867 | 0.383711 | 0.368281 | 0.357305 | 0 | 0.022025 | 0.310866 | 47,239 | 1,340 | 217 | 35.252985 | 0.764361 | 0.137154 | 0 | 0.507726 | 0 | 0.016556 | 0.165017 | 0.004274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002208 | 0.027594 | null | null | 0.037528 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b537687d72c052da86a17fafb07b2a1a437b62fc | 780 | py | Python | app/console/file_generator.py | hashemidesign/easy-flask | 1e6f0e3162756fd451f59d4acb4cf8a3443ef477 | [
"MIT"
] | null | null | null | app/console/file_generator.py | hashemidesign/easy-flask | 1e6f0e3162756fd451f59d4acb4cf8a3443ef477 | [
"MIT"
] | null | null | null | app/console/file_generator.py | hashemidesign/easy-flask | 1e6f0e3162756fd451f59d4acb4cf8a3443ef477 | [
"MIT"
] | null | null | null | import click
from app import base_dir
from app.console import console
from app.console.placeholders.api_placeholder import api_placeholder
from app.console.placeholders.model_placeholder import model_placeholder
from app.helpers.directories import exists_or_create_directory
@console.cli.command("create")
@click.optio... | 32.5 | 72 | 0.748718 | 108 | 780 | 5.166667 | 0.333333 | 0.062724 | 0.075269 | 0.123656 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151282 | 780 | 23 | 73 | 33.913043 | 0.8429 | 0.032051 | 0 | 0 | 0 | 0 | 0.057105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b53ad3da1b3106aafbb92aee94d926a53f6dbb74 | 2,813 | py | Python | targets/arty/etherbone.py | skiphansen/litex-buildenv | a6ea4aa281a79f4ea2a03e89dcfd8bf08819617b | [
"BSD-2-Clause"
] | 198 | 2018-01-17T05:39:54.000Z | 2022-03-15T08:59:16.000Z | targets/arty/etherbone.py | skiphansen/litex-buildenv | a6ea4aa281a79f4ea2a03e89dcfd8bf08819617b | [
"BSD-2-Clause"
] | 610 | 2017-12-31T01:32:32.000Z | 2022-03-19T22:07:28.000Z | targets/arty/etherbone.py | skiphansen/litex-buildenv | a6ea4aa281a79f4ea2a03e89dcfd8bf08819617b | [
"BSD-2-Clause"
] | 85 | 2018-01-13T05:51:38.000Z | 2022-02-11T18:54:14.000Z | from litex.soc.integration.soc_core import mem_decoder
from litex.soc.integration.soc_sdram import *
from liteeth.common import convert_ip
from liteeth.core import LiteEthUDPIPCore
from liteeth.frontend.etherbone import LiteEthEtherbone
from liteeth.mac import LiteEthMAC
from liteeth.phy import LiteEthPHY
from target... | 39.069444 | 100 | 0.603271 | 327 | 2,813 | 4.996942 | 0.397554 | 0.051408 | 0.031824 | 0.03672 | 0.209302 | 0.113831 | 0.094247 | 0.059976 | 0.059976 | 0.059976 | 0 | 0.028289 | 0.246001 | 2,813 | 71 | 101 | 39.619718 | 0.742103 | 0.193743 | 0 | 0 | 0 | 0 | 0.045778 | 0 | 0 | 0 | 0.009333 | 0.014085 | 0 | 1 | 0.068182 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b53e6abe3fe4dde9f38f9c7197c1678718fb8bd8 | 9,980 | py | Python | components/schema_org/generate_schema_org_code.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/schema_org/generate_schema_org_code.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/schema_org/generate_schema_org_code.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | # Copyright 2020 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.
"""Generates C++ code representing structured data objects from schema.org
This script generates C++ objects based on a JSON+LD schema file. Blink uses the
g... | 35.390071 | 80 | 0.63978 | 1,299 | 9,980 | 4.666667 | 0.185527 | 0.043055 | 0.034477 | 0.027879 | 0.208677 | 0.144177 | 0.106565 | 0.062356 | 0.032992 | 0.022105 | 0 | 0.001592 | 0.244589 | 9,980 | 281 | 81 | 35.516014 | 0.802494 | 0.128657 | 0 | 0.122549 | 1 | 0 | 0.130832 | 0.002779 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.029412 | 0.019608 | 0.210784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b53efbb801e0b4d91661dafb92ddebc4e5978410 | 18,474 | py | Python | plugins/modules/user.py | jmsierra/ansible-oracle-collection | 8bce8f135ad88943ee14c8e4303b257cf73613d1 | [
"MIT"
] | null | null | null | plugins/modules/user.py | jmsierra/ansible-oracle-collection | 8bce8f135ad88943ee14c8e4303b257cf73613d1 | [
"MIT"
] | null | null | null | plugins/modules/user.py | jmsierra/ansible-oracle-collection | 8bce8f135ad88943ee14c8e4303b257cf73613d1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
DOCUMENTATION = '''
---
module: jmsierra.oracle.user
short_description: Manage users/schemas in an Oracle database
description:
- Manage users/schemas in an Oracle database
- Can be run locally on the controlmachine or on a remote host
version_added: "0.2.0"
options:
hostname:
des... | 37.702041 | 201 | 0.632402 | 2,167 | 18,474 | 5.222427 | 0.126904 | 0.044535 | 0.02863 | 0.02103 | 0.560749 | 0.487143 | 0.420341 | 0.368737 | 0.333922 | 0.308121 | 0 | 0.000885 | 0.265671 | 18,474 | 490 | 202 | 37.702041 | 0.833333 | 0.089585 | 0 | 0.398922 | 0 | 0.010782 | 0.353828 | 0.024188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026954 | false | 0.156334 | 0.008086 | 0 | 0.06469 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b542f0442d7b90693d01368b5003a87b9c327b58 | 16,269 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/activedirectory/type_Item.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/activedirectory/type_Item.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | null | null | null | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/activedirectory/type_Item.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: type_Item.py
from types import *
import mcl.object.MclTime
class ResultMode:
def __init__(self):
self.__dict__['isMixed'] = False
... | 51.321767 | 111 | 0.671215 | 1,676 | 16,269 | 5.850239 | 0.091885 | 0.142784 | 0.093014 | 0.101173 | 0.530444 | 0.497807 | 0.385008 | 0.320755 | 0.188985 | 0.119837 | 0 | 0.006096 | 0.213473 | 16,269 | 317 | 112 | 51.321767 | 0.760159 | 0.010634 | 0 | 0.143836 | 0 | 0 | 0.186875 | 0.036977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05137 | false | 0.119863 | 0.027397 | 0 | 0.208904 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b544ed60bc9f0ef5338b3b5f65777e7f640e1201 | 1,300 | py | Python | source/modules/synt/time_algorithms.py | SyntLang/SyntPy | fdbfe4c4083193d430cbdf5a0968556ba9f72f0f | [
"MIT"
] | null | null | null | source/modules/synt/time_algorithms.py | SyntLang/SyntPy | fdbfe4c4083193d430cbdf5a0968556ba9f72f0f | [
"MIT"
] | null | null | null | source/modules/synt/time_algorithms.py | SyntLang/SyntPy | fdbfe4c4083193d430cbdf5a0968556ba9f72f0f | [
"MIT"
] | null | null | null | # tick Algorithms
# modules
import time
# reset tick
def reset_tick(self, *args):
# check if run_status is run
if self.run_status == "run":
pass
else:
return
# reset tick
self.tick = 0
self.last_tick = time.time()
# pause tick
def pause_tick(self, *args):
# check if run_status is run
if self.run_status... | 17.333333 | 64 | 0.690769 | 199 | 1,300 | 4.376884 | 0.21608 | 0.176808 | 0.055109 | 0.078071 | 0.443169 | 0.401837 | 0.401837 | 0.342135 | 0.342135 | 0.342135 | 0 | 0.00675 | 0.202308 | 1,300 | 74 | 65 | 17.567568 | 0.833173 | 0.27 | 0 | 0.526316 | 0 | 0 | 0.061489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.105263 | 0.026316 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b54975c2463ff03a02966f772c15fc4938008273 | 508 | py | Python | src/utils/html_extractor.py | alphagov-mirror/govuk-accessibility-reports | 88204c03e273fff76b67ab0730a44869f02e28c9 | [
"MIT"
] | 7 | 2021-02-18T07:15:25.000Z | 2021-06-28T07:58:04.000Z | src/utils/html_extractor.py | alphagov-mirror/govuk-accessibility-reports | 88204c03e273fff76b67ab0730a44869f02e28c9 | [
"MIT"
] | 5 | 2021-01-25T18:41:30.000Z | 2022-03-04T17:36:17.000Z | src/utils/html_extractor.py | alphagov-mirror/govuk-accessibility-reports | 88204c03e273fff76b67ab0730a44869f02e28c9 | [
"MIT"
] | 3 | 2020-12-14T17:35:58.000Z | 2021-04-10T20:11:26.000Z | import re
from bs4 import BeautifulSoup
class HtmlExtractor:
header_regex = re.compile("^h[1-6]{1}$")
excluded_headings = [
"Tell us whether you accept cookies"
]
@classmethod
def extract_headings(cls, html):
soup = BeautifulSoup(html, 'html5lib')
matches = soup.find_all(c... | 26.736842 | 98 | 0.685039 | 63 | 508 | 5.396825 | 0.666667 | 0.064706 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012594 | 0.218504 | 508 | 18 | 99 | 28.222222 | 0.843829 | 0 | 0 | 0 | 0 | 0 | 0.104331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b54df48bfa9252241798965555f78dcbb936335e | 488 | py | Python | paint/migrations/0002_auto_20200330_1857.py | atulk17/Paint-App | 4b56455596d140cee4a9b19c71fe82364c3f3b7c | [
"BSD-2-Clause"
] | null | null | null | paint/migrations/0002_auto_20200330_1857.py | atulk17/Paint-App | 4b56455596d140cee4a9b19c71fe82364c3f3b7c | [
"BSD-2-Clause"
] | null | null | null | paint/migrations/0002_auto_20200330_1857.py | atulk17/Paint-App | 4b56455596d140cee4a9b19c71fe82364c3f3b7c | [
"BSD-2-Clause"
] | 1 | 2020-05-31T11:37:48.000Z | 2020-05-31T11:37:48.000Z | # Generated by Django 3.0.4 on 2020-03-30 13:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('paint', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='delivers',
name='Delivery... | 25.684211 | 137 | 0.584016 | 51 | 488 | 5.490196 | 0.803922 | 0.085714 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065341 | 0.278689 | 488 | 18 | 138 | 27.111111 | 0.730114 | 0.092213 | 0 | 0 | 1 | 0 | 0.186761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b555fa97f9d5eac09c262ec84735d057d72d1300 | 2,032 | py | Python | pset2/p2.py | IanMezza/edx-6.00.1x | 6f426abe1bd5e5a12056003545f3f916a3b23178 | [
"MIT"
] | null | null | null | pset2/p2.py | IanMezza/edx-6.00.1x | 6f426abe1bd5e5a12056003545f3f916a3b23178 | [
"MIT"
] | null | null | null | pset2/p2.py | IanMezza/edx-6.00.1x | 6f426abe1bd5e5a12056003545f3f916a3b23178 | [
"MIT"
] | null | null | null | """Problem 2 - Paying Debt Off in a Year
Now write a program that calculates the minimum fixed monthly payment needed in order pay off a credit card balance within 12 months. By a fixed monthly payment, we mean a single number which does not change each month, but instead is a constant amount that will be paid each mon... | 53.473684 | 368 | 0.765748 | 274 | 2,032 | 5.678832 | 0.437956 | 0.053985 | 0.036632 | 0.033419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01339 | 0.191437 | 2,032 | 38 | 369 | 53.473684 | 0.933658 | 0.652067 | 0 | 0 | 0 | 0 | 0.022825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b558f003e5feaa7e695656359443035a13c63678 | 1,291 | py | Python | tests/resources/generator/cell_geometry_model/model.external.py | OpenCMISS-Dependencies2/libcellml | 9948e5fb6159bbe50bbe0f4bec883ed7190a51f7 | [
"Apache-2.0"
] | 1 | 2021-02-15T01:09:04.000Z | 2021-02-15T01:09:04.000Z | tests/resources/generator/cell_geometry_model/model.external.py | hsorby/libcellml | 27db3807c0c15591e251aa9fe411967b1cc2dab1 | [
"Apache-2.0"
] | 8 | 2019-09-01T23:37:50.000Z | 2021-05-27T21:20:34.000Z | tests/resources/generator/cell_geometry_model/model.external.py | hsorby/libcellml | 27db3807c0c15591e251aa9fe411967b1cc2dab1 | [
"Apache-2.0"
] | 1 | 2022-02-04T06:11:40.000Z | 2022-02-04T06:11:40.000Z | # The content of this file was generated using the Python profile of libCellML 0.2.0.
from enum import Enum
from math import *
__version__ = "0.3.0"
LIBCELLML_VERSION = "0.2.0"
VARIABLE_COUNT = 4
class VariableType(Enum):
CONSTANT = 1
COMPUTED_CONSTANT = 2
ALGEBRAIC = 3
EXTERNAL = 4
VARIABLE_INF... | 28.065217 | 107 | 0.701782 | 157 | 1,291 | 5.611465 | 0.350318 | 0.108967 | 0.170261 | 0.113507 | 0.524404 | 0.524404 | 0.524404 | 0.524404 | 0.385925 | 0.240636 | 0 | 0.035649 | 0.152595 | 1,291 | 45 | 108 | 28.688889 | 0.769653 | 0.064291 | 0 | 0.142857 | 1 | 0 | 0.167496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.035714 | 0.071429 | 0.035714 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b561762fea9c0c6be02e89ec3acb4dd5f6109b9d | 1,492 | py | Python | Capitulo_09/exercise9_3.py | thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python | 841aa855a7450ad3d0ba65393ba0b6debcd6a770 | [
"MIT"
] | null | null | null | Capitulo_09/exercise9_3.py | thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python | 841aa855a7450ad3d0ba65393ba0b6debcd6a770 | [
"MIT"
] | null | null | null | Capitulo_09/exercise9_3.py | thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python | 841aa855a7450ad3d0ba65393ba0b6debcd6a770 | [
"MIT"
] | null | null | null | """
9.3 – Usuários: Crie uma classe chamada User. Crie dois atributos de nomes
first_name e last_name e, então, crie vários outros atributos normalmente
armazenados em um perfil de usuário. Escreva um método de nome
describe_user() que apresente um resumo das informações do usuário. Escreva
outro método chamado greet_u... | 30.44898 | 75 | 0.701072 | 217 | 1,492 | 4.691244 | 0.414747 | 0.082515 | 0.051081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021792 | 0.169571 | 1,492 | 48 | 76 | 31.083333 | 0.799031 | 0.317024 | 0 | 0 | 0 | 0 | 0.287129 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.103448 | false | 0 | 0 | 0 | 0.137931 | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b562428b88907aaccd630ba3b572ba82c06791e9 | 450 | py | Python | Code Accdemy/Strings_Review.py | JackVoice/Testing | 11e1b83c7b2e51fa0a8cdde67c5c1eab650e018a | [
"Unlicense"
] | null | null | null | Code Accdemy/Strings_Review.py | JackVoice/Testing | 11e1b83c7b2e51fa0a8cdde67c5c1eab650e018a | [
"Unlicense"
] | null | null | null | Code Accdemy/Strings_Review.py | JackVoice/Testing | 11e1b83c7b2e51fa0a8cdde67c5c1eab650e018a | [
"Unlicense"
] | null | null | null | def username_generator(first,last):
counter = 0
username = ""
for i in first:
if counter <= 2:
counter += 1
username += i
counter = 0
for j in last:
if counter <= 3:
counter += 1
username += j
return username
def password_generator(username="testin"):
password = ""
count... | 18.75 | 42 | 0.615556 | 57 | 450 | 4.807018 | 0.333333 | 0.116788 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.28 | 450 | 23 | 43 | 19.565217 | 0.817901 | 0 | 0 | 0.285714 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.238095 | 0 | 0 | 0.190476 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b56c6482f73fc934762abc6685b9d1b22f72c5b0 | 333 | py | Python | app/tension_analysis/__init__.py | lingxiaoyang/Tension-Analysis | 833b18e7ccc459780b7f9191e04e1bb2163d3d82 | [
"MIT"
] | 2 | 2019-07-06T20:21:51.000Z | 2019-07-08T15:16:03.000Z | app/tension_analysis/__init__.py | lingxiaoyang/Tension-Analysis | 833b18e7ccc459780b7f9191e04e1bb2163d3d82 | [
"MIT"
] | 9 | 2019-07-05T21:29:36.000Z | 2019-08-02T22:53:28.000Z | app/tension_analysis/__init__.py | mat3rial/Tension-Analysis | 833b18e7ccc459780b7f9191e04e1bb2163d3d82 | [
"MIT"
] | null | null | null | """
The entrypoint of tension analysis app.
"""
from flask import Flask
def create_app():
"""
The entrypoint: factory the Flask app to share with multiple instances.
"""
app = Flask(__name__)
app.config.from_object('global_config')
from .views import views
app.register_blueprint(views)
... | 19.588235 | 75 | 0.687688 | 43 | 333 | 5.139535 | 0.581395 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219219 | 333 | 16 | 76 | 20.8125 | 0.85 | 0.333333 | 0 | 0 | 0 | 0 | 0.065327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b576930b5e0734efdc16ed80469e629ff79260eb | 524 | py | Python | src/pluto/ui/qt/mvc/controllers.py | shootsoft/PlutoVideoSnapshoter | 20eb4bc9d4eb6f090c713dce23077173d7ed8e5e | [
"Apache-2.0"
] | 22 | 2018-04-30T23:16:20.000Z | 2021-12-30T02:21:24.000Z | src/pluto/ui/qt/mvc/controllers.py | shootsoft/PlutoVidoeSnapshoter | 20eb4bc9d4eb6f090c713dce23077173d7ed8e5e | [
"Apache-2.0"
] | null | null | null | src/pluto/ui/qt/mvc/controllers.py | shootsoft/PlutoVidoeSnapshoter | 20eb4bc9d4eb6f090c713dce23077173d7ed8e5e | [
"Apache-2.0"
] | 6 | 2018-05-06T02:35:32.000Z | 2021-03-06T11:37:51.000Z | # -*- coding: utf-8 -*-
class Controller(object):
def __init__(self, router, view):
self.router = router
self.view = view
def show(self):
if self.view:
self.view.show()
else:
raise Exception("None view")
def hide(self):
if self.view:
... | 20.96 | 44 | 0.520992 | 63 | 524 | 4.206349 | 0.349206 | 0.150943 | 0.075472 | 0.10566 | 0.384906 | 0.384906 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.358779 | 524 | 24 | 45 | 21.833333 | 0.785714 | 0.040076 | 0 | 0.333333 | 0 | 0 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b577440f7f73a6584b7b39f7050dd8c546e67dec | 27,744 | py | Python | oompa/tracking/github/GitHubTracker.py | sjtsp2008/oompa | 2dfdecba192c408c0463da27e0b5859ef9ce3db6 | [
"Apache-2.0"
] | 2 | 2016-02-23T00:58:11.000Z | 2017-06-14T15:39:22.000Z | oompa/tracking/github/GitHubTracker.py | sjtsp2008/oompa | 2dfdecba192c408c0463da27e0b5859ef9ce3db6 | [
"Apache-2.0"
] | 3 | 2015-06-21T11:13:50.000Z | 2015-06-21T13:27:03.000Z | oompa/tracking/github/GitHubTracker.py | sjtsp2008/oompa | 2dfdecba192c408c0463da27e0b5859ef9ce3db6 | [
"Apache-2.0"
] | null | null | null | #
# GitHubTracker.py
#
"""
package oompa.tracking.github
"""
import os
import sys
import time
from datetime import datetime
from oompa.tracking.github import github_utils
from oompa.tracking.github.GitHub3Helper import GitHub3Helper
from oompa.tracking.TagManager import TagManager
from oom... | 34.041718 | 124 | 0.542207 | 2,758 | 27,744 | 5.351704 | 0.171501 | 0.035366 | 0.039837 | 0.014228 | 0.550407 | 0.509417 | 0.439634 | 0.415041 | 0.389431 | 0.372629 | 0 | 0.001781 | 0.372513 | 27,744 | 814 | 125 | 34.083538 | 0.846057 | 0.229852 | 0 | 0.61658 | 0 | 0.005181 | 0.096184 | 0.004117 | 0 | 0 | 0 | 0.009828 | 0 | 1 | 0.049223 | false | 0.111399 | 0.025907 | 0.002591 | 0.145078 | 0.054404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b57af30d2d51ead694c4ea3aead6afab528987b9 | 323 | py | Python | tests/test_minimum_swaps.py | yxtay/code-ex | aabcfd4741067a8515fe75441c10853b5724bc01 | [
"MIT"
] | null | null | null | tests/test_minimum_swaps.py | yxtay/code-ex | aabcfd4741067a8515fe75441c10853b5724bc01 | [
"MIT"
] | null | null | null | tests/test_minimum_swaps.py | yxtay/code-ex | aabcfd4741067a8515fe75441c10853b5724bc01 | [
"MIT"
] | null | null | null | import pytest
from src.minimum_swaps import minimum_swaps
cases = [
([7, 1, 3, 2, 4, 5, 6], 5),
([4, 3, 1, 2], 3),
([2, 3, 4, 1, 5], 3),
([1, 3, 5, 2, 4, 6, 7], 3),
]
@pytest.mark.parametrize("arr, expected", cases)
def test(arr, expected):
result = minimum_swaps(arr)
assert result == expect... | 19 | 48 | 0.557276 | 54 | 323 | 3.277778 | 0.407407 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110204 | 0.241486 | 323 | 16 | 49 | 20.1875 | 0.612245 | 0 | 0 | 0 | 0 | 0 | 0.040248 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b57b1e703e23b0ee9ca803a61abb928ac2f47e5e | 1,371 | py | Python | core/migrations/0001_initial.py | sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack | ef34f533793b060a90cc3fa6e2c1b51b3349f14d | [
"Unlicense"
] | null | null | null | core/migrations/0001_initial.py | sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack | ef34f533793b060a90cc3fa6e2c1b51b3349f14d | [
"Unlicense"
] | null | null | null | core/migrations/0001_initial.py | sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack | ef34f533793b060a90cc3fa6e2c1b51b3349f14d | [
"Unlicense"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-11 01:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 45.7 | 288 | 0.646244 | 152 | 1,371 | 5.697368 | 0.532895 | 0.027714 | 0.055427 | 0.072748 | 0.053118 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020018 | 0.198395 | 1,371 | 29 | 289 | 47.275862 | 0.767971 | 0.032823 | 0 | 0 | 1 | 0 | 0.195619 | 0.045317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b57d592d256b520d7e06de9cb695c31909ff890a | 6,128 | py | Python | Distribution/appcast.py | samscam/transmote | ceb3d5fbb34d42861fb3d597d373aab74bbcc3e5 | [
"MIT"
] | 14 | 2015-12-28T17:48:35.000Z | 2021-01-07T02:12:30.000Z | Scripts/appcast.py | Omgitsu/SparkleBuilder | 9df1bac8e1e533f4b22860c850ee36aac1c8bbe9 | [
"Apache-2.0"
] | 4 | 2015-01-02T18:35:53.000Z | 2017-07-31T20:13:35.000Z | Distribution/appcast.py | samscam/transmote | ceb3d5fbb34d42861fb3d597d373aab74bbcc3e5 | [
"MIT"
] | 1 | 2016-08-02T16:39:26.000Z | 2016-08-02T16:39:26.000Z | ##
## appcast.py
## SparkleBuilder
##
## Created by James Baker on 4/29/15.
## Copyright (c) 2015 WDDG, Inc. All rights reserved.
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software and associated documentation files (the "Software"), to deal
## in the Software wit... | 45.058824 | 143 | 0.545366 | 600 | 6,128 | 5.321667 | 0.293333 | 0.0855 | 0.058566 | 0.039461 | 0.186032 | 0.127153 | 0.096461 | 0 | 0 | 0 | 0 | 0.003631 | 0.370757 | 6,128 | 135 | 144 | 45.392593 | 0.824429 | 0.188805 | 0 | 0.183673 | 0 | 0.010204 | 0.384303 | 0.06588 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010204 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b58905d7ab2b8c5dc98764ac4cb93a857391c84f | 589 | py | Python | file_operation/traverse_corpus.py | SkyInNight/NLPChineseWordSegmention-Python | f3738619f4830c805c04a2a4873c6afaf360b083 | [
"Apache-2.0"
] | null | null | null | file_operation/traverse_corpus.py | SkyInNight/NLPChineseWordSegmention-Python | f3738619f4830c805c04a2a4873c6afaf360b083 | [
"Apache-2.0"
] | null | null | null | file_operation/traverse_corpus.py | SkyInNight/NLPChineseWordSegmention-Python | f3738619f4830c805c04a2a4873c6afaf360b083 | [
"Apache-2.0"
] | null | null | null | import os
from file_operation.file_operation import read_corpus
def traverse_corpus(file_path):
corpus_lengths = {}
# 获取当前目录下面的文件列表
path_dir = os.listdir(file_path)
for path in path_dir:
# 将文件名补充完整
new_dir = os.path.join(file_path, path)
# 判断如果是txt文件
if os.path.splitex... | 24.541667 | 59 | 0.611205 | 72 | 589 | 4.708333 | 0.430556 | 0.106195 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002451 | 0.307301 | 589 | 23 | 60 | 25.608696 | 0.828431 | 0.076401 | 0 | 0 | 0 | 0 | 0.007449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.285714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b591051cc9402763b9e65f54de84d3c3f5995de2 | 7,458 | py | Python | src/peak.si.rm.bg.py | gxiaolab/cGMAS | 8e736749342bf642c3942f7761f33ae9be6fd92c | [
"Apache-2.0"
] | 1 | 2021-03-22T07:26:03.000Z | 2021-03-22T07:26:03.000Z | src/peak.si.rm.bg.py | gxiaolab/cGMAS | 8e736749342bf642c3942f7761f33ae9be6fd92c | [
"Apache-2.0"
] | 3 | 2021-03-28T06:47:24.000Z | 2021-08-20T07:04:20.000Z | src/peak.si.rm.bg.py | gxiaolab/cGMAS | 8e736749342bf642c3942f7761f33ae9be6fd92c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys
import argparse
import glob
from time import strftime
import os
import time
import numpy as np
from sklearn.mixture import GMM
from collections import defaultdict
import scipy as sp
import math
import smartFunctions
###########
# Need to find the snv with Si number close to 1, which is th... | 37.477387 | 161 | 0.629928 | 1,254 | 7,458 | 3.718501 | 0.302233 | 0.006005 | 0.008364 | 0.010294 | 0.077204 | 0.057259 | 0.046537 | 0.038816 | 0.032383 | 0.018658 | 0 | 0.024693 | 0.190936 | 7,458 | 198 | 162 | 37.666667 | 0.748094 | 0.334674 | 0 | 0.081301 | 0 | 0.01626 | 0.152752 | 0.042259 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00813 | 0.097561 | null | null | 0.089431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5926bbdb3a92266d840ae45329ef7e0f19387ac | 1,116 | py | Python | synthesize.py | qilinliu670/multilayer-pagerank-algorithm | cd3911508c65cea45afa0782eb038e67034454cf | [
"MIT"
] | null | null | null | synthesize.py | qilinliu670/multilayer-pagerank-algorithm | cd3911508c65cea45afa0782eb038e67034454cf | [
"MIT"
] | null | null | null | synthesize.py | qilinliu670/multilayer-pagerank-algorithm | cd3911508c65cea45afa0782eb038e67034454cf | [
"MIT"
] | null | null | null | # generate an input file containing the structure of a two-level graph
# first line is the number of domains
# next n lines are the number of webpages in each domain
# other lines are links represented in "A B C D" form where A is source's domain, B is source's name, C is destination's domain, and D is destination's na... | 39.857143 | 156 | 0.629928 | 205 | 1,116 | 3.429268 | 0.346341 | 0.051209 | 0.076814 | 0.056899 | 0.295875 | 0.278805 | 0.199147 | 0.079659 | 0.079659 | 0.079659 | 0 | 0.020339 | 0.206989 | 1,116 | 28 | 157 | 39.857143 | 0.774011 | 0.437276 | 0 | 0.111111 | 1 | 0 | 0.03871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b59bf33085fd2b88f5de8aa2882403817c312ecf | 775 | py | Python | RandomGenerator/random_list.py | mkm99/TeamProject_StatsCalculator | 81085c1af47f38d3e49b43d667e312016c44ad10 | [
"MIT"
] | null | null | null | RandomGenerator/random_list.py | mkm99/TeamProject_StatsCalculator | 81085c1af47f38d3e49b43d667e312016c44ad10 | [
"MIT"
] | 7 | 2020-03-03T21:37:57.000Z | 2020-03-06T04:11:42.000Z | RandomGenerator/random_list.py | mkm99/TeamProject_StatsCalculator | 81085c1af47f38d3e49b43d667e312016c44ad10 | [
"MIT"
] | null | null | null | # Generate a list of N random numbers with a seed and between a range of numbers - Both Integer and Decimal
from numpy.random import seed
import random
class RandomList():
@staticmethod
def list_Of_Ints(num1, num2, length, theSeed):
if isinstance(num1, float):
return list_Of_Floats(num1, n... | 25 | 107 | 0.616774 | 95 | 775 | 4.968421 | 0.421053 | 0.084746 | 0.088983 | 0.133475 | 0.495763 | 0.495763 | 0.495763 | 0.34322 | 0.34322 | 0.34322 | 0 | 0.020408 | 0.304516 | 775 | 30 | 108 | 25.833333 | 0.855288 | 0.135484 | 0 | 0.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5a6ad6dc800b6d1f35749baad4398c156be32c3 | 3,325 | py | Python | showroom/api/client.py | faisaldwinant/showroom | 1a938afcf90f6cb29a2291882639ec64692015c9 | [
"MIT"
] | 52 | 2016-06-15T17:21:46.000Z | 2022-03-09T14:53:01.000Z | showroom/api/client.py | faisaldwinant/showroom | 1a938afcf90f6cb29a2291882639ec64692015c9 | [
"MIT"
] | 24 | 2016-10-18T08:45:18.000Z | 2022-02-18T01:44:56.000Z | showroom/api/client.py | faisaldwinant/showroom | 1a938afcf90f6cb29a2291882639ec64692015c9 | [
"MIT"
] | 27 | 2016-10-16T10:51:24.000Z | 2022-03-09T14:53:03.000Z | from .session import ClientSession
from .endpoints import (
LiveEndpointsMixin,
VREndpointsMixin,
RoomEndpointsMixin,
UserEndpointsMixin,
OtherEndpointsMixin
)
from json import JSONDecodeError
import time
from showroom.api.utils import get_csrf_token
from requests.exceptions import HTTPError
import ... | 31.666667 | 110 | 0.630376 | 390 | 3,325 | 5.207692 | 0.35641 | 0.044313 | 0.025603 | 0.014771 | 0.189069 | 0.162482 | 0.162482 | 0.134909 | 0.102413 | 0.102413 | 0 | 0 | 0.290526 | 3,325 | 104 | 111 | 31.971154 | 0.860958 | 0.194586 | 0 | 0.444444 | 0 | 0 | 0.057685 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.069444 | false | 0 | 0.097222 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5a926e82b6bc2b95b69cbac98ee05ab7259a06f | 1,989 | py | Python | MedSpa_backend/med_spa/medspa/models.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | 1 | 2021-08-10T19:03:23.000Z | 2021-08-10T19:03:23.000Z | MedSpa_backend/med_spa/medspa/models.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | null | null | null | MedSpa_backend/med_spa/medspa/models.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
email = models.EmailField(verbose_name='email', max_length=100, unique=True)
phone = models.CharField(null=True, max_length=50)
# add fields you would like to update in database
REQUIRED_FIELDS ... | 35.517857 | 85 | 0.737557 | 261 | 1,989 | 5.501916 | 0.318008 | 0.072423 | 0.048747 | 0.077994 | 0.463092 | 0.387883 | 0.236769 | 0.178273 | 0.178273 | 0.178273 | 0 | 0.018171 | 0.142283 | 1,989 | 55 | 86 | 36.163636 | 0.823564 | 0.02363 | 0 | 0.105263 | 0 | 0 | 0.040722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0.026316 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b5acfab06e1bab0ce401f0abfedd1ad8a8f650e4 | 579 | py | Python | mycarehub/staff/migrations/0005_servicerequest_facility.py | savannahghi/mycarehub-backend | 035471bf463d99ae7247cc25adc7062de681d9ea | [
"MIT"
] | 1 | 2022-01-06T12:20:15.000Z | 2022-01-06T12:20:15.000Z | mycarehub/staff/migrations/0005_servicerequest_facility.py | savannahghi/mycarehub-backend | 035471bf463d99ae7247cc25adc7062de681d9ea | [
"MIT"
] | 5 | 2021-11-07T11:01:13.000Z | 2022-03-29T08:33:28.000Z | mycarehub/staff/migrations/0005_servicerequest_facility.py | savannahghi/mycarehub-backend | 035471bf463d99ae7247cc25adc7062de681d9ea | [
"MIT"
] | 1 | 2022-01-17T10:56:42.000Z | 2022-01-17T10:56:42.000Z | # Generated by Django 3.2.11 on 2022-03-25 08:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('common', '0016_auto_20220215_1721'),
('staff', '0004_servicerequest'),
]
operations = [
migrations... | 27.571429 | 160 | 0.656304 | 66 | 579 | 5.621212 | 0.666667 | 0.06469 | 0.075472 | 0.118598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079646 | 0.219344 | 579 | 20 | 161 | 28.95 | 0.74115 | 0.079447 | 0 | 0 | 1 | 0 | 0.199623 | 0.043315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5ae24ecd2697e6be321a9e6248507a02eb0a1b3 | 2,427 | py | Python | word_glue.py | romaktion/vosk | 599e9952f517ca288deb0c517265a973d1ffebf7 | [
"Apache-2.0"
] | 4 | 2021-02-23T22:54:40.000Z | 2021-06-27T16:55:24.000Z | word_glue.py | romaktion/vosk | 599e9952f517ca288deb0c517265a973d1ffebf7 | [
"Apache-2.0"
] | null | null | null | word_glue.py | romaktion/vosk | 599e9952f517ca288deb0c517265a973d1ffebf7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Author: romaktion@gmail.com
import glob
import ntpath
import os
import re
import shutil
import sys
from pathlib import Path
from pydub import AudioSegment
def get_glue_words():
with open("glue_words.txt", 'r') as glue_words_file:
ret = []
for w in re.sub(r... | 29.962963 | 92 | 0.569015 | 332 | 2,427 | 3.927711 | 0.298193 | 0.048313 | 0.07592 | 0.032209 | 0.08589 | 0.042945 | 0.042945 | 0.042945 | 0 | 0 | 0 | 0.006567 | 0.309848 | 2,427 | 80 | 93 | 30.3375 | 0.77194 | 0.028842 | 0 | 0.029851 | 0 | 0 | 0.039138 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.014925 | false | 0 | 0.119403 | 0 | 0.149254 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5af975d1a0536d2222c8f8450d6807cb999da32 | 190 | py | Python | fileminer/__init__.py | DaSch17/fileminer | fe202f39407a52ef0b8970ba10d7059b05bcaade | [
"MIT"
] | null | null | null | fileminer/__init__.py | DaSch17/fileminer | fe202f39407a52ef0b8970ba10d7059b05bcaade | [
"MIT"
] | null | null | null | fileminer/__init__.py | DaSch17/fileminer | fe202f39407a52ef0b8970ba10d7059b05bcaade | [
"MIT"
] | 1 | 2021-12-14T15:08:40.000Z | 2021-12-14T15:08:40.000Z | """
Title
==================
Description
"""
__author__ = """Danaël Schlewer--Becker"""
__email__ = '.'
__version__ = '0.1.0'
from .fileminer import copy, dig_copy, rename, dig_rename
| 11.875 | 57 | 0.610526 | 20 | 190 | 5.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.147368 | 190 | 15 | 58 | 12.666667 | 0.611111 | 0.194737 | 0 | 0 | 0 | 0 | 0.204225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5b464c62eb067cb18e6bbc7917fdd6861f2aeb5 | 1,439 | py | Python | MarketVersion/ProducerMKT_class.py | ntuecon/2018groupCE | 51c4442bcae8fbd3841b12b8f87d5eefe11e23f8 | [
"MIT"
] | 3 | 2018-03-13T07:30:47.000Z | 2018-06-12T15:02:44.000Z | MarketVersion/ProducerMKT_class.py | ntuecon/2018groupCE | 51c4442bcae8fbd3841b12b8f87d5eefe11e23f8 | [
"MIT"
] | null | null | null | MarketVersion/ProducerMKT_class.py | ntuecon/2018groupCE | 51c4442bcae8fbd3841b12b8f87d5eefe11e23f8 | [
"MIT"
] | 1 | 2018-03-20T08:10:22.000Z | 2018-03-20T08:10:22.000Z | class Product:
def __init__(self,psi,ksi,GoodPriceN,FacPrices):
import numpy as np
self.GoodPriceN=float(GoodPriceN)
self.FacPrices=np.array(FacPrices)
self.ksi=float(ksi)
self.psi=np.array(psi)
self.nf=len(FacPrices)
def Tech(self,FacDemand,sign=1.0):
im... | 35.975 | 112 | 0.604587 | 183 | 1,439 | 4.726776 | 0.289617 | 0.076301 | 0.090173 | 0.104046 | 0.294798 | 0.234682 | 0.234682 | 0.234682 | 0.234682 | 0.234682 | 0 | 0.012253 | 0.262682 | 1,439 | 39 | 113 | 36.897436 | 0.803016 | 0.025017 | 0 | 0.272727 | 0 | 0 | 0.02219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.212121 | 0 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a913db9e567ab79819371cc7222eb7aa3e2c5d8b | 650 | py | Python | sqlalchemy_demo/pool_example.py | by46/geek | 04b08d0dff80c524bd471ead3fe524423eebf123 | [
"MIT"
] | null | null | null | sqlalchemy_demo/pool_example.py | by46/geek | 04b08d0dff80c524bd471ead3fe524423eebf123 | [
"MIT"
] | null | null | null | sqlalchemy_demo/pool_example.py | by46/geek | 04b08d0dff80c524bd471ead3fe524423eebf123 | [
"MIT"
] | null | null | null | from sqlalchemy.engine import create_engine
from sqlalchemy.orm import sessionmaker
engine = create_engine('mysql+pymysql://root:root@10.16.76.245:3306/coffee')
Session = sessionmaker(bind=engine)
session = Session()
session.execute('INSERT demo5(name) VALUES(:Name)', params={'Name': 'Trans1'})
session.execut... | 38.235294 | 79 | 0.729231 | 82 | 650 | 5.731707 | 0.390244 | 0.119149 | 0.170213 | 0.212766 | 0.493617 | 0.493617 | 0.493617 | 0.493617 | 0.493617 | 0.285106 | 0 | 0.035593 | 0.092308 | 650 | 16 | 80 | 40.625 | 0.761017 | 0 | 0 | 0.285714 | 0 | 0 | 0.343849 | 0.078864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a915ab6518e3d1352290daaa6dc8d60628ee44f2 | 843 | py | Python | EstruturaSequencial/Ex17.py | anselmocarrijog/Exercicios_Site_Python | 499b82a7bcc60be91328f05b2fdcf6c51e1557fe | [
"MIT"
] | null | null | null | EstruturaSequencial/Ex17.py | anselmocarrijog/Exercicios_Site_Python | 499b82a7bcc60be91328f05b2fdcf6c51e1557fe | [
"MIT"
] | null | null | null | EstruturaSequencial/Ex17.py | anselmocarrijog/Exercicios_Site_Python | 499b82a7bcc60be91328f05b2fdcf6c51e1557fe | [
"MIT"
] | null | null | null | """
Faça um Programa para uma loja de tintas. O programa deverá pedir o tamanho em metros quadrados da área a ser pintada.
Considere que a cobertura da tinta é de 1 litro para cada 6 metros quadrados e que a tinta é vendida em latas de 18
litros, que custam R$ 80,00 ou em galões de 3,6 litros, que custam R$ 25,00.
Info... | 27.193548 | 141 | 0.739027 | 151 | 843 | 4.119205 | 0.516556 | 0.033762 | 0.043408 | 0.072347 | 0.106109 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040179 | 0.202847 | 843 | 30 | 142 | 28.1 | 0.885417 | 0.865955 | 0 | 0 | 0 | 0 | 0.32967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9194543b2b9281b8c49f34813214f674e55ea5d | 1,075 | py | Python | HackerPack/src/mutualfriends.py | LinhchiNguyen/Hackmates | 8e898b54757ecaf92c2c4346d76e59ab0ee528f6 | [
"MIT"
] | null | null | null | HackerPack/src/mutualfriends.py | LinhchiNguyen/Hackmates | 8e898b54757ecaf92c2c4346d76e59ab0ee528f6 | [
"MIT"
] | null | null | null | HackerPack/src/mutualfriends.py | LinhchiNguyen/Hackmates | 8e898b54757ecaf92c2c4346d76e59ab0ee528f6 | [
"MIT"
] | null | null | null | from allauth.socialaccount.models import SocialAccount
import requests
from allauth.socialaccount.models import SocialToken
def get_mutual_friends(user_id):
GRAPH_API_VERSION = getattr(
settings, 'SOCIALACCOUNT_PROVIDERS', {}
).get('facebook', {}).get('VERSION', 'v2.4')
GRAPH_API_URL = 'https://graph.facebook.co... | 26.219512 | 105 | 0.780465 | 141 | 1,075 | 5.680851 | 0.489362 | 0.049938 | 0.041199 | 0.074906 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047917 | 0.106977 | 1,075 | 40 | 106 | 26.875 | 0.786458 | 0.110698 | 0 | 0 | 0 | 0 | 0.157729 | 0.071504 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a91bafa45ec9e0b0f73cb981236942748eac1a28 | 3,497 | py | Python | lab8/cse512_lab8.py | Rudy02/CSE512 | ba95b638fcc2f4bd696fc193a06030e945c8d182 | [
"MIT"
] | null | null | null | lab8/cse512_lab8.py | Rudy02/CSE512 | ba95b638fcc2f4bd696fc193a06030e945c8d182 | [
"MIT"
] | null | null | null | lab8/cse512_lab8.py | Rudy02/CSE512 | ba95b638fcc2f4bd696fc193a06030e945c8d182 | [
"MIT"
] | null | null | null | # cse512_lab8.py
# KV, Mar 2018, solution for lab8 and beyond
import copy
import itertools # just to try it out; used once, see below
import random
CLS = [['notP', 'notQ', 'R'], ['P', 'R'], ['Q', 'R'], ['notR']]
# set up to prove that H2CO3 by contradicting notH2CO3
CHEM = [['notCO2', 'notH2O','H2CO3'], ... | 22.856209 | 72 | 0.516443 | 466 | 3,497 | 3.841202 | 0.313305 | 0.008939 | 0.010056 | 0.035196 | 0.203352 | 0.159218 | 0.071508 | 0.071508 | 0.071508 | 0.071508 | 0 | 0.040887 | 0.342579 | 3,497 | 152 | 73 | 23.006579 | 0.737712 | 0.209036 | 0 | 0.266667 | 0 | 0 | 0.101852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9287180e10ba1270fe10801672e9235024ccce9 | 1,037 | py | Python | libpdraw/python/test.py | Akaaba/pdraw | 2411d6b846e83202984f422eeb79553304e7bd03 | [
"BSD-3-Clause"
] | 4 | 2018-05-15T01:26:21.000Z | 2020-01-27T03:15:34.000Z | libpdraw/python/test.py | Akaaba/pdraw | 2411d6b846e83202984f422eeb79553304e7bd03 | [
"BSD-3-Clause"
] | 1 | 2018-10-18T15:53:02.000Z | 2018-10-18T15:53:02.000Z | libpdraw/python/test.py | Akaaba/pdraw | 2411d6b846e83202984f422eeb79553304e7bd03 | [
"BSD-3-Clause"
] | 4 | 2017-05-16T11:46:12.000Z | 2019-01-09T09:13:01.000Z | #!/usr/bin/env python2
import cv2
import numpy as np
import os
import sys
# import pdraw_python with right path
try:
l = os.environ['LD_LIBRARY_PATH']
path = l.split(":")[1] + "/python"
sys.path.insert(0, path)
import libpdraw_python as pdraw
except:
print "launch me with native_wrapper please"
... | 21.163265 | 82 | 0.703954 | 138 | 1,037 | 5.253623 | 0.594203 | 0.027586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0761 | 0.189007 | 1,037 | 48 | 83 | 21.604167 | 0.785969 | 0.108968 | 0 | 0 | 0 | 0 | 0.096739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a93416b17210813f8f5df67a4186c8f7c13aeec4 | 2,509 | py | Python | program/data/util.py | donyori/2018ccf_bdci_inter_fund_correlation_prediction | 6e06a3e192e05ae1e9822111cf323eda3a61bf4e | [
"MIT"
] | null | null | null | program/data/util.py | donyori/2018ccf_bdci_inter_fund_correlation_prediction | 6e06a3e192e05ae1e9822111cf323eda3a61bf4e | [
"MIT"
] | 1 | 2018-12-18T05:14:08.000Z | 2019-01-16T06:31:35.000Z | program/data/util.py | donyori/2018ccf_bdci_inter_fund_correlation_prediction | 6e06a3e192e05ae1e9822111cf323eda3a61bf4e | [
"MIT"
] | null | null | null | _first_index_in_every_row_list = list()
def _build_first_index_in_every_row_list():
global _first_index_in_every_row_list
_first_index_in_every_row_list.clear()
_first_index_in_every_row_list.append(0)
for delta in range(199, 1, -1):
_first_index_in_every_row_list.append(_first_index_in_every_... | 33.453333 | 89 | 0.624552 | 366 | 2,509 | 3.893443 | 0.204918 | 0.088421 | 0.109474 | 0.155088 | 0.53193 | 0.464561 | 0.363509 | 0.210526 | 0.210526 | 0.150175 | 0 | 0.0747 | 0.269031 | 2,509 | 74 | 90 | 33.905405 | 0.70229 | 0.040654 | 0 | 0.117647 | 0 | 0 | 0.027804 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.078431 | false | 0 | 0 | 0 | 0.156863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a951e6378c558e6f8cf1aafd2cd388ec4adb9e55 | 9,577 | py | Python | python/IndexSetup.py | xingyang-liu/StreamAudioIndex | d7bfb26ab63b8b4806cf80b2c4b416bcb8513481 | [
"BSD-3-Clause"
] | null | null | null | python/IndexSetup.py | xingyang-liu/StreamAudioIndex | d7bfb26ab63b8b4806cf80b2c4b416bcb8513481 | [
"BSD-3-Clause"
] | null | null | null | python/IndexSetup.py | xingyang-liu/StreamAudioIndex | d7bfb26ab63b8b4806cf80b2c4b416bcb8513481 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import subprocess
import numpy as np
import sys, os
from os import listdir
from os.path import isfile
import json
from time import sleep
import chardet
from Text2Speech import SpeechConvertor
from mfcc import MFCC
PATH = '/media/billy/New Volume/Billy/audio/'
MP3_PATH = '/media/billy/New Volu... | 38.773279 | 113 | 0.46382 | 918 | 9,577 | 4.770153 | 0.218954 | 0.028774 | 0.045216 | 0.036538 | 0.525691 | 0.496689 | 0.476364 | 0.396438 | 0.396438 | 0.383878 | 0 | 0.017607 | 0.418816 | 9,577 | 246 | 114 | 38.930894 | 0.769134 | 0.035815 | 0 | 0.472906 | 0 | 0 | 0.106445 | 0.016819 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049261 | null | null | 0.064039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9555f4492d23e9ce352bb07f0a6b267e2d7d48b | 663 | py | Python | 200Python/demo/01basic-hello/02basic/data_type.py | lyliyongblue/- | d68b6699b5fbe6287ef2abbe867f367fe6efb324 | [
"Apache-2.0"
] | 24 | 2020-01-13T14:51:43.000Z | 2022-01-10T09:24:30.000Z | 200Python/demo/01basic-hello/02basic/data_type.py | lyliyongblue/- | d68b6699b5fbe6287ef2abbe867f367fe6efb324 | [
"Apache-2.0"
] | 1 | 2022-01-21T23:50:05.000Z | 2022-01-21T23:50:05.000Z | 200Python/demo/01basic-hello/02basic/data_type.py | lyliyongblue/- | d68b6699b5fbe6287ef2abbe867f367fe6efb324 | [
"Apache-2.0"
] | 11 | 2020-04-09T01:49:43.000Z | 2022-03-23T03:51:41.000Z | # _*_ coding: utf-8 _*_
# 整数
age = 100_000
print('age:', age)
# 浮点数
salary = 1000.02
print('salary:', salary)
salary = 1.00002e3
print('salary:', salary)
# 字符串
print("It's OK")
print('It\'s OK')
# 通过r表名引号中的所有字段都直接输出
print(r'It\\\'s OK')
# 通过三个引号,可以输入多行字符串
print('''line1
line2
line3
''')
# 布尔值
is_good = True
is_happy... | 13.8125 | 29 | 0.622926 | 110 | 663 | 3.645455 | 0.436364 | 0.05985 | 0.037406 | 0.049875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078755 | 0.176471 | 663 | 47 | 30 | 14.106383 | 0.655678 | 0.19457 | 0 | 0.076923 | 0 | 0 | 0.188462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.653846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a95b412620fce8b14312017c3e3a63ed1c8e8d3b | 2,813 | py | Python | accounts/models.py | DeepakDarkiee/forex_backend | 273cea071034216d5f193813a6e4d38f849527b9 | [
"Apache-2.0"
] | null | null | null | accounts/models.py | DeepakDarkiee/forex_backend | 273cea071034216d5f193813a6e4d38f849527b9 | [
"Apache-2.0"
] | null | null | null | accounts/models.py | DeepakDarkiee/forex_backend | 273cea071034216d5f193813a6e4d38f849527b9 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import (
AbstractBaseUser,
BaseUserManager,
PermissionsMixin,
)
from rest_framework_simplejwt.tokens import RefreshToken
# Create your models here.
class UserManager(BaseUserManager):
def create_user(
self,
username,
... | 27.048077 | 83 | 0.629932 | 306 | 2,813 | 5.607843 | 0.30719 | 0.036713 | 0.062937 | 0.083916 | 0.215035 | 0.132284 | 0.096154 | 0.066434 | 0.066434 | 0.066434 | 0 | 0.009232 | 0.268397 | 2,813 | 103 | 84 | 27.31068 | 0.824587 | 0.008532 | 0 | 0.270588 | 0 | 0 | 0.069609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047059 | false | 0.070588 | 0.035294 | 0.011765 | 0.341176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a95e2ab0dceff9c543347d802083cfe29c73f754 | 1,570 | py | Python | layernet/io/iamdb/char_order.py | huashiyiqike/netlab | d265bc02bd3dafdeec7371f9fb9d65e8f9e10626 | [
"Apache-2.0"
] | 21 | 2015-09-25T08:40:53.000Z | 2022-03-24T23:49:19.000Z | layernet/io/iamdb/char_order.py | huashiyiqike/netlab | d265bc02bd3dafdeec7371f9fb9d65e8f9e10626 | [
"Apache-2.0"
] | 1 | 2015-11-10T10:17:05.000Z | 2015-11-11T02:19:26.000Z | layernet/io/iamdb/char_order.py | huashiyiqike/netlab | d265bc02bd3dafdeec7371f9fb9d65e8f9e10626 | [
"Apache-2.0"
] | 20 | 2015-09-27T15:08:40.000Z | 2020-09-16T09:26:02.000Z | import re
inName = "./char_order.txt"
inLines = file(inName, 'r').readlines()
charDict = dict()
puncDict = dict()
for line in inLines:
seq = line.split()
if re.match('[a-zA-Z\.\,\'\"\-]', seq[1]):
count = int(seq[2][1:])
if charDict.has_key(seq[1]):
charDict[seq[1]] += count
... | 24.153846 | 62 | 0.515924 | 213 | 1,570 | 3.774648 | 0.215962 | 0.059701 | 0.100746 | 0.074627 | 0.390547 | 0.390547 | 0.310945 | 0.310945 | 0.264925 | 0.160448 | 0 | 0.023466 | 0.294268 | 1,570 | 64 | 63 | 24.53125 | 0.702166 | 0 | 0 | 0.362069 | 0 | 0 | 0.054847 | 0.019133 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017241 | null | null | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9617696bc76f5e4b9af0843bce2cae8a9e064e4 | 1,862 | py | Python | src/bin/AutoPip/AutoPip.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | src/bin/AutoPip/AutoPip.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | src/bin/AutoPip/AutoPip.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | '''
Author: Hans Erik Heggem
Email: hans.erik.heggem@gmail.com
Project: Master's Thesis - Autonomous Inspection Of Wind Blades
Repository: Master's Thesis - CV (Computer Vision)
'''
import sys, time, os, site, importlib
from . get_pip import get_pip_main
'''
@brieaf This class implements auto import of packages ... | 25.506849 | 91 | 0.709989 | 235 | 1,862 | 5.502128 | 0.442553 | 0.065739 | 0.039443 | 0.058005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000657 | 0.182062 | 1,862 | 72 | 92 | 25.861111 | 0.848326 | 0.008593 | 0 | 0 | 0 | 0 | 0.029762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.290323 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a966f9b5296d3469effa04c67be2f75622d6daaa | 2,139 | py | Python | ngcccbase/p2ptrade/tests/test_comm.py | petertodd/ngcccbase | 9e346eebaf4461589e5fdce098c8d0c5793c9461 | [
"MIT"
] | 2 | 2021-10-31T19:08:48.000Z | 2021-10-31T19:09:31.000Z | ngcccbase/p2ptrade/tests/test_comm.py | petertodd/ngcccbase | 9e346eebaf4461589e5fdce098c8d0c5793c9461 | [
"MIT"
] | null | null | null | ngcccbase/p2ptrade/tests/test_comm.py | petertodd/ngcccbase | 9e346eebaf4461589e5fdce098c8d0c5793c9461 | [
"MIT"
] | 1 | 2021-10-31T19:10:02.000Z | 2021-10-31T19:10:02.000Z | #!/usr/bin/env python
import SocketServer
import SimpleHTTPServer
import threading
import time
import unittest
from ngcccbase.p2ptrade.comm import HTTPComm, ThreadedComm, CommThread
class MockAgent(object):
def dispatch_message(self, m):
pass
class TestServer(threading.Thread):
def __init__(self, a... | 27.779221 | 79 | 0.652174 | 255 | 2,139 | 5.286275 | 0.380392 | 0.053412 | 0.04451 | 0.040059 | 0.151335 | 0.151335 | 0.08457 | 0.08457 | 0.08457 | 0.08457 | 0 | 0.011398 | 0.220664 | 2,139 | 76 | 80 | 28.144737 | 0.797241 | 0.00935 | 0 | 0.140351 | 0 | 0 | 0.076959 | 0.009915 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.210526 | false | 0.017544 | 0.105263 | 0 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9676b0dbb1804426b1019f71ea9661d4f2084a4 | 1,987 | py | Python | ebiznes/apps/service/migrations/0014_auto_20191120_1825.py | kaniak274/EBiznes | 5dcb10020b5af6b7ae57a70060605f6e5324b03a | [
"MIT"
] | null | null | null | ebiznes/apps/service/migrations/0014_auto_20191120_1825.py | kaniak274/EBiznes | 5dcb10020b5af6b7ae57a70060605f6e5324b03a | [
"MIT"
] | 1 | 2019-10-30T06:26:36.000Z | 2019-11-20T17:07:25.000Z | ebiznes/apps/service/migrations/0014_auto_20191120_1825.py | kaniak274/EBiznes | 5dcb10020b5af6b7ae57a70060605f6e5324b03a | [
"MIT"
] | 1 | 2019-11-12T19:09:05.000Z | 2019-11-12T19:09:05.000Z | # Generated by Django 2.2.5 on 2019-11-20 17:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('service', '0013_auto_20191113_1744'),
]
operations = [
migrations.AlterModelOptions(
name='prof... | 39.74 | 164 | 0.606442 | 196 | 1,987 | 5.969388 | 0.392857 | 0.131624 | 0.047863 | 0.075214 | 0.293162 | 0.293162 | 0.264957 | 0.191453 | 0.191453 | 0.191453 | 0 | 0.024275 | 0.253649 | 1,987 | 49 | 165 | 40.55102 | 0.764666 | 0.022647 | 0 | 0.372093 | 1 | 0 | 0.201031 | 0.011856 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a96a418738d0219fb2f6ff720808aeed7db4f020 | 25,489 | py | Python | airport/kube/api.py | zen-xu/airport | fb5cfdd885f3f78b9be0abc90c04199b24d5560e | [
"Apache-2.0"
] | null | null | null | airport/kube/api.py | zen-xu/airport | fb5cfdd885f3f78b9be0abc90c04199b24d5560e | [
"Apache-2.0"
] | null | null | null | airport/kube/api.py | zen-xu/airport | fb5cfdd885f3f78b9be0abc90c04199b24d5560e | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from decimal import Decimal
from enum import Enum
from typing import Dict
from typing import List
from typing import Optional
from typing import Tuple
from typing import Union
try:
from yaml import CLoader as YamlLoader
except ImportError:
from yaml import Loader as ... | 25.617085 | 88 | 0.667778 | 2,014 | 25,489 | 8.374379 | 0.280536 | 0.016127 | 0.011384 | 0.016542 | 0.198328 | 0.179177 | 0.16471 | 0.136132 | 0.114431 | 0.106842 | 0 | 0.0026 | 0.230452 | 25,489 | 994 | 89 | 25.642857 | 0.857252 | 0.013535 | 0 | 0.28343 | 0 | 0 | 0.048233 | 0.00423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.021802 | 0.015988 | 0.979651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a96adc36d4bd2498196ec676dce260d314fbbc92 | 3,752 | py | Python | shuup_graphql/front/types/shop_product.py | jyoost/shuup-graphql | 9b7f6182a7e470431e4c8cccfff8076f208eb3fc | [
"Apache-2.0"
] | 1 | 2021-11-08T09:12:45.000Z | 2021-11-08T09:12:45.000Z | shuup_graphql/front/types/shop_product.py | jyoost/shuup-graphql | 9b7f6182a7e470431e4c8cccfff8076f208eb3fc | [
"Apache-2.0"
] | null | null | null | shuup_graphql/front/types/shop_product.py | jyoost/shuup-graphql | 9b7f6182a7e470431e4c8cccfff8076f208eb3fc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import graphene
import six
from django.utils.encoding import force_text
from graphene_django import DjangoObjectType
from shuup.core.models import ProductMode, ShopProduct, get_person_contact
from shuup.core.pricing._context import PricingContext
from shuup.core.utils.prices import convert_taxn... | 37.89899 | 120 | 0.637793 | 378 | 3,752 | 6.126984 | 0.280423 | 0.056995 | 0.048359 | 0.051813 | 0.094991 | 0.046632 | 0 | 0 | 0 | 0 | 0 | 0.000368 | 0.275853 | 3,752 | 98 | 121 | 38.285714 | 0.852043 | 0.005597 | 0 | 0.1 | 0 | 0 | 0.048807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.025 | 0.1625 | 0.075 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a9757f9d815e0efe2efa8b46ed37c965e00d8464 | 249 | py | Python | stream/urls.py | kmes055/AutoDrawer_server | b6fd31ba448834c75a06762e92a3e64ddace5034 | [
"MIT"
] | null | null | null | stream/urls.py | kmes055/AutoDrawer_server | b6fd31ba448834c75a06762e92a3e64ddace5034 | [
"MIT"
] | null | null | null | stream/urls.py | kmes055/AutoDrawer_server | b6fd31ba448834c75a06762e92a3e64ddace5034 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import *
app_name = 'stream'
urlpatterns = [
url(r'^$', cross, name='connect'),
# url(r'^stream/upload/$', upload, name='upload'),
# url(r'^stream/download/$', download, name='download'),
]
| 22.636364 | 60 | 0.630522 | 32 | 249 | 4.875 | 0.5 | 0.076923 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160643 | 249 | 10 | 61 | 24.9 | 0.746411 | 0.413655 | 0 | 0 | 0 | 0 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a97d4ea3d12e080e9627c1ce8722fd1a542365b3 | 1,137 | py | Python | Inferring mRNA from Protein.py | ixaxaar/rosalind | 43b43573c19e1448fbeb0de069cabbde17146fbd | [
"MIT"
] | 1 | 2019-10-27T09:14:45.000Z | 2019-10-27T09:14:45.000Z | Inferring mRNA from Protein.py | ixaxaar/rosalind | 43b43573c19e1448fbeb0de069cabbde17146fbd | [
"MIT"
] | null | null | null | Inferring mRNA from Protein.py | ixaxaar/rosalind | 43b43573c19e1448fbeb0de069cabbde17146fbd | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import sys
codon_table = '''
UUU F
CUU L
AUU I
GUU V
UUC F
CUC L
AUC I
GUC V
UUA L
CUA L
AUA I
GUA V
UUG L
CUG L
AUG M
GUG V
UCU S
CCU P
ACU T
GCU A
UCC S
CCC P
ACC T
GCC A
UCA S
CCA P
ACA T
GCA A
UCG S
CCG P
ACG T
GCG A
UAU Y
CAU H
AAU N
GAU D
UAC Y
CAC H
AAC N
GAC D
UAA Stop
CAA Q
AAA K
GAA E... | 10.932692 | 76 | 0.66139 | 237 | 1,137 | 3.046414 | 0.50211 | 0.096953 | 0.110803 | 0.062327 | 0.146814 | 0.146814 | 0.146814 | 0.146814 | 0 | 0 | 0 | 0.019429 | 0.230431 | 1,137 | 103 | 77 | 11.038835 | 0.805714 | 0.055409 | 0 | 0.022472 | 0 | 0 | 0.385047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011236 | null | null | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a97ff48e5e04856b1428f1e257990eeff113adae | 1,337 | py | Python | src/week_5/features/process_text/lemmatization.py | Gost2017/text-analytics-lecture | a51976ba7cf7a992af4c0fba52dc9eef57a8155b | [
"MIT"
] | 2 | 2018-03-05T20:45:11.000Z | 2019-03-17T02:59:57.000Z | src/week_5/features/process_text/lemmatization.py | Gost2017/text-analytics-lecture | a51976ba7cf7a992af4c0fba52dc9eef57a8155b | [
"MIT"
] | null | null | null | src/week_5/features/process_text/lemmatization.py | Gost2017/text-analytics-lecture | a51976ba7cf7a992af4c0fba52dc9eef57a8155b | [
"MIT"
] | 8 | 2018-03-02T14:12:35.000Z | 2018-04-21T10:31:25.000Z | from nltk import pos_tag, word_tokenize
from nltk.corpus import wordnet
from nltk.stem import WordNetLemmatizer
def is_noun(tag):
return tag in ['NN', 'NNS', 'NNP', 'NNPS']
def is_verb(tag):
return tag in ['VB', 'VBD', 'VBG', 'VBN', 'VBP', 'VBZ']
def is_adverb(tag):
return tag in ['RB', 'RBR', 'RBS']
... | 21.222222 | 59 | 0.610322 | 184 | 1,337 | 4.293478 | 0.342391 | 0.091139 | 0.060759 | 0.070886 | 0.070886 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002051 | 0.270755 | 1,337 | 63 | 60 | 21.222222 | 0.808205 | 0 | 0 | 0.044444 | 0 | 0 | 0.03438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.066667 | 0.088889 | 0.511111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a9872435c8061d681a27f48b3637f03deb2b4bd8 | 534 | py | Python | linuxballoontip.py | Kibbles/polyblip | 8fa0968659937f582ae679811ca4f186c926676b | [
"MIT"
] | 3 | 2017-01-26T19:56:00.000Z | 2017-07-01T21:02:58.000Z | linuxballoontip.py | Kibbles/polyblip | 8fa0968659937f582ae679811ca4f186c926676b | [
"MIT"
] | null | null | null | linuxballoontip.py | Kibbles/polyblip | 8fa0968659937f582ae679811ca4f186c926676b | [
"MIT"
] | 4 | 2017-01-24T16:32:20.000Z | 2018-10-11T21:11:17.000Z | # -- coding: utf-8 --
#Import the library to use libnotify.
from gi.repository import Notify
class LinuxNotify():
"""LinuxNotify calls the notification system for Linux."""
def __init__(self, title, msg):
#Register the application and give the class a name to use.
Notify.init("Polyblip")
... | 28.105263 | 67 | 0.666667 | 68 | 534 | 5.161765 | 0.602941 | 0.091168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002433 | 0.230337 | 534 | 18 | 68 | 29.666667 | 0.851582 | 0.426966 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a988b163185202aea9f27dfeda36b3fc1cb7ee7e | 2,744 | py | Python | stratiform/resources.py | drbild/stratiform | 2aef05c9ecc83804972690bcea490087e7bd706a | [
"Apache-2.0"
] | null | null | null | stratiform/resources.py | drbild/stratiform | 2aef05c9ecc83804972690bcea490087e7bd706a | [
"Apache-2.0"
] | null | null | null | stratiform/resources.py | drbild/stratiform | 2aef05c9ecc83804972690bcea490087e7bd706a | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 David R. Bild
#
# 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 agree... | 31.906977 | 83 | 0.665087 | 334 | 2,744 | 5.278443 | 0.41018 | 0.034033 | 0.038571 | 0.018151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003768 | 0.226312 | 2,744 | 85 | 84 | 32.282353 | 0.82666 | 0.214286 | 0 | 0.036364 | 0 | 0 | 0.080169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.018182 | 0.090909 | 0.072727 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a98a61a8d05dbf7748087acca353d8992a145be4 | 4,710 | py | Python | day_3/classes.py | JohnminerIv/b-g-club-tutorials | 8bbab1ff589cb4b0103bdb1698ac78ea5857c16f | [
"Unlicense"
] | null | null | null | day_3/classes.py | JohnminerIv/b-g-club-tutorials | 8bbab1ff589cb4b0103bdb1698ac78ea5857c16f | [
"Unlicense"
] | null | null | null | day_3/classes.py | JohnminerIv/b-g-club-tutorials | 8bbab1ff589cb4b0103bdb1698ac78ea5857c16f | [
"Unlicense"
] | null | null | null | # day_3/classes.py
"""
Classes are a way to encapsulate code. It is a way of keeping functions and data
that represent something together and is a core concept to understand for object
oreinted programing.
"""
class Person:
def __init__(self, name: str, age: int) -> None:
"""
Initializes the pers... | 26.610169 | 120 | 0.627389 | 621 | 4,710 | 4.674718 | 0.26248 | 0.022046 | 0.011023 | 0.037203 | 0.265243 | 0.176714 | 0.126765 | 0.048915 | 0.048915 | 0.022046 | 0 | 0.012282 | 0.256688 | 4,710 | 176 | 121 | 26.761364 | 0.816909 | 0.205308 | 0 | 0.207792 | 0 | 0 | 0.174088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220779 | false | 0 | 0 | 0.025974 | 0.415584 | 0.194805 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9940c6a596ca62f8cf5fdaf395e360f354744c2 | 2,899 | py | Python | examples/gre/run.py | zjuchenyuan/EasyLogin | acc67187d902f20ec64d2d6b9eeb953e2a0ac77d | [
"MIT"
] | 33 | 2016-12-01T01:33:31.000Z | 2021-05-12T03:32:27.000Z | examples/gre/run.py | zjuchenyuan/EasyLogin | acc67187d902f20ec64d2d6b9eeb953e2a0ac77d | [
"MIT"
] | 2 | 2018-04-26T06:58:29.000Z | 2020-01-11T15:18:14.000Z | examples/gre/run.py | zjuchenyuan/EasyLogin | acc67187d902f20ec64d2d6b9eeb953e2a0ac77d | [
"MIT"
] | 4 | 2017-02-24T11:08:45.000Z | 2021-01-13T16:00:33.000Z | from EasyLogin import EasyLogin
a=EasyLogin()
def get_question(qid):
global a
html=a.get("http://gre.kmf.com/question/{qid}.html".format(qid=qid), cache=True)
soup = a.b
question_type = soup.find("input",{"id":"GlobeQUESTIONNAME"})["value"]
question_from = soup.find("span",{"class":"gray"})... | 46.758065 | 142 | 0.584684 | 375 | 2,899 | 4.394667 | 0.301333 | 0.058252 | 0.040049 | 0.038835 | 0.184466 | 0.163835 | 0.098301 | 0.098301 | 0.054612 | 0.054612 | 0 | 0.008169 | 0.197654 | 2,899 | 62 | 143 | 46.758065 | 0.700344 | 0.071404 | 0 | 0 | 0 | 0 | 0.207475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0.056604 | 0.056604 | 0 | 0.09434 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a999c1fec81260bdc18fd064907598dd3fb19922 | 599 | py | Python | mantle_simulation/tests/test_stokes.py | Johnson-A/UNM_Research | 28d88a4c8229eeef776a2f2ea953c3c6fb5fd6d2 | [
"MIT"
] | 4 | 2017-04-07T16:34:40.000Z | 2021-04-06T08:07:01.000Z | mantle_simulation/tests/test_stokes.py | Johnson-A/mantle_simulation | 28d88a4c8229eeef776a2f2ea953c3c6fb5fd6d2 | [
"MIT"
] | null | null | null | mantle_simulation/tests/test_stokes.py | Johnson-A/mantle_simulation | 28d88a4c8229eeef776a2f2ea953c3c6fb5fd6d2 | [
"MIT"
] | 2 | 2016-09-20T22:05:52.000Z | 2021-04-06T08:07:08.000Z | from dolfin import *
mesh = UnitSquareMesh(8,8)
V = VectorFunctionSpace(mesh, 'CG', 1)
u = TrialFunction(V)
v = TestFunction(V)
# Define boundary conditions
tol = 1E-14
def lower_boundary(x, on_boundary):
return on_boundary and abs(x[1]) < tol
def upper_boundary(x, on_boundary):
return on_boundary and abs(... | 18.71875 | 51 | 0.687813 | 103 | 599 | 3.883495 | 0.436893 | 0.03 | 0.0225 | 0.095 | 0.215 | 0.215 | 0.215 | 0.215 | 0.215 | 0.215 | 0 | 0.045726 | 0.160267 | 599 | 31 | 52 | 19.322581 | 0.749503 | 0.071786 | 0 | 0 | 0 | 0 | 0.018083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.111111 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a9a1080d72632cc4da07ef94a1b816a992abbae7 | 1,013 | py | Python | oo/person.py | djonypaladin/pythonbirds | 9ac0754145d0a6cc2863c2291bd2f75bae10228a | [
"MIT"
] | null | null | null | oo/person.py | djonypaladin/pythonbirds | 9ac0754145d0a6cc2863c2291bd2f75bae10228a | [
"MIT"
] | null | null | null | oo/person.py | djonypaladin/pythonbirds | 9ac0754145d0a6cc2863c2291bd2f75bae10228a | [
"MIT"
] | null | null | null | class Pessoa:
menbros_superiores = 2
menbro_inferiores=2
def __init__(self,*familia,name=None,idade=17):
self.name= name
self.familia= list(familia)
self.idade= idade
def comprimentar(self):
return 'hello my code'
def despedisir(self):
return 'diz tcha... | 26.657895 | 112 | 0.649556 | 122 | 1,013 | 5.213115 | 0.385246 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021823 | 0.230997 | 1,013 | 37 | 113 | 27.378378 | 0.794608 | 0 | 0 | 0 | 0 | 0 | 0.136229 | 0.054294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0.15625 | 0.4375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a9a18f17055978fe4595d3927a7f7c3478901652 | 239 | py | Python | Biblioteca_PA/livros/views.py | KKBittencourtZ/BibliotecaPA | 705057e95e564b4a2e65ec6018b360633fb03661 | [
"MIT"
] | null | null | null | Biblioteca_PA/livros/views.py | KKBittencourtZ/BibliotecaPA | 705057e95e564b4a2e65ec6018b360633fb03661 | [
"MIT"
] | null | null | null | Biblioteca_PA/livros/views.py | KKBittencourtZ/BibliotecaPA | 705057e95e564b4a2e65ec6018b360633fb03661 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import livro
def livros_view(request):
estante = livro.objects.get(numero=373)
livrinho = {
'number' : estante
}
return render(request, 'livros.html', livrinho)
| 17.071429 | 51 | 0.677824 | 28 | 239 | 5.75 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.221757 | 239 | 13 | 52 | 18.384615 | 0.849462 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9a1ca39ef6bd18d66a575311ccdbd88701f2005 | 11,624 | py | Python | adrem_tool_dialog.py | AndLouis/adrem | a9b3a3c705109077fa41d7fd18d1c8769c500ab0 | [
"MIT"
] | null | null | null | adrem_tool_dialog.py | AndLouis/adrem | a9b3a3c705109077fa41d7fd18d1c8769c500ab0 | [
"MIT"
] | null | null | null | adrem_tool_dialog.py | AndLouis/adrem | a9b3a3c705109077fa41d7fd18d1c8769c500ab0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/***************************************************************************
ADREMToolDialog
A QGIS plugin
No desrciption yet
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
... | 41.219858 | 127 | 0.510668 | 1,053 | 11,624 | 5.472934 | 0.22982 | 0.056221 | 0.038175 | 0.045289 | 0.349124 | 0.276419 | 0.192435 | 0.166753 | 0.166753 | 0.166753 | 0 | 0.004879 | 0.329921 | 11,624 | 281 | 128 | 41.366548 | 0.735011 | 0.149948 | 0 | 0.289855 | 1 | 0 | 0.107694 | 0.002698 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05314 | false | 0.004831 | 0.024155 | 0 | 0.140097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9a28d4e8538e5fcdad0e5a09fd0aaeac011bd43 | 288 | py | Python | mmaction/models/tenons/backbones/__init__.py | arpanmangal/coinaction | 579c1cc48ee55814584c92691a9a0c64f98a539f | [
"Apache-2.0"
] | 1 | 2019-08-22T14:34:03.000Z | 2019-08-22T14:34:03.000Z | mmaction/models/tenons/backbones/__init__.py | yysijie/mmaction | 488eb4fea833ecf5df65acdf12e55592099efc93 | [
"Apache-2.0"
] | null | null | null | mmaction/models/tenons/backbones/__init__.py | yysijie/mmaction | 488eb4fea833ecf5df65acdf12e55592099efc93 | [
"Apache-2.0"
] | null | null | null | from .bninception import BNInception
from .resnet import ResNet
from .inception_v1_i3d import InceptionV1_I3D
from .resnet_i3d import ResNet_I3D
from .resnet_s3d import ResNet_S3D
__all__ = [
'BNInception',
'ResNet',
'InceptionV1_I3D',
'ResNet_I3D',
'ResNet_S3D',
]
| 19.2 | 45 | 0.743056 | 36 | 288 | 5.555556 | 0.277778 | 0.15 | 0.13 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.177083 | 288 | 14 | 46 | 20.571429 | 0.793249 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8d1280c929de55c980ba16641a9ef994cfc15722 | 225 | py | Python | online_stats/__init__.py | timb07/online_stats | 325df08ec20b0b33ab20d986b5e41ab013f0e6ad | [
"MIT"
] | null | null | null | online_stats/__init__.py | timb07/online_stats | 325df08ec20b0b33ab20d986b5e41ab013f0e6ad | [
"MIT"
] | null | null | null | online_stats/__init__.py | timb07/online_stats | 325df08ec20b0b33ab20d986b5e41ab013f0e6ad | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for Online Stats."""
__author__ = """Tim Bell"""
__email__ = 'timothybell@gmail.com'
__version__ = '0.1.0'
from .online_stats import Statistics
__all__ = [
'Statistics',
]
| 16.071429 | 41 | 0.653333 | 27 | 225 | 4.814815 | 0.851852 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.164444 | 225 | 13 | 42 | 17.307692 | 0.670213 | 0.257778 | 0 | 0 | 0 | 0 | 0.273292 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d131d2f473979b2b80a12104355d9025e3a5c00 | 259 | py | Python | tests/test_prdctr.py | oxyyx/prdctr | b698a344a7e14e2af2dc59e2bd32678de47bffea | [
"MIT"
] | null | null | null | tests/test_prdctr.py | oxyyx/prdctr | b698a344a7e14e2af2dc59e2bd32678de47bffea | [
"MIT"
] | null | null | null | tests/test_prdctr.py | oxyyx/prdctr | b698a344a7e14e2af2dc59e2bd32678de47bffea | [
"MIT"
] | null | null | null | from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_read_main():
"""
We expect the root directory to not return anything.
"""
response = client.get("/")
assert response.status_code == 404 | 21.583333 | 56 | 0.698842 | 34 | 259 | 5.235294 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.204633 | 259 | 12 | 57 | 21.583333 | 0.849515 | 0.200772 | 0 | 0 | 0 | 0 | 0.005208 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8d13725d024fe8bc34d1bbda2627d01677037396 | 1,826 | py | Python | code/utils/risk_distribution.py | callta/PRIMARI | f709c09d7261b91755586c6b419bfe5153e69f4c | [
"Apache-2.0"
] | null | null | null | code/utils/risk_distribution.py | callta/PRIMARI | f709c09d7261b91755586c6b419bfe5153e69f4c | [
"Apache-2.0"
] | null | null | null | code/utils/risk_distribution.py | callta/PRIMARI | f709c09d7261b91755586c6b419bfe5153e69f4c | [
"Apache-2.0"
] | null | null | null | ##############################
# Generate risk distribution #
##############################
import numpy as np
import pandas as pd
from scipy.stats import norm
from pathlib import Path
import os
# Make a new directory
PATH = Path('...')
SAVE_PATH = PATH / 'data/processed/a_risk/'
os.makedirs(SAVE_PATH, exist_ok=True)... | 29.451613 | 79 | 0.640197 | 309 | 1,826 | 3.598706 | 0.372168 | 0.08813 | 0.067446 | 0.043165 | 0.095324 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071477 | 0.187842 | 1,826 | 61 | 80 | 29.934426 | 0.678355 | 0.152793 | 0 | 0 | 1 | 0 | 0.141407 | 0.075101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.119048 | 0 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d1780906f1ead3a7d31025db7058b3214885a5b | 1,212 | py | Python | inference.py | NoahDrisort/ViSV2TTS | bea6fa1f85527c824c85986d8b7bfa3e3efd120a | [
"MIT"
] | 1 | 2021-09-23T15:46:14.000Z | 2021-09-23T15:46:14.000Z | inference.py | v-nhandt21/ViSV2TTS | bea6fa1f85527c824c85986d8b7bfa3e3efd120a | [
"MIT"
] | null | null | null | inference.py | v-nhandt21/ViSV2TTS | bea6fa1f85527c824c85986d8b7bfa3e3efd120a | [
"MIT"
] | null | null | null | import os
from os.path import exists, join, basename, splitext
import sys
import numpy as np
from synthesizer.inference import Synthesizer
from encoder import inference as encoder
from vocoder import inference as vocoder
from pathlib import Path
import soundfile as sf
encoder.load_model(Path("encoder/saved_models/pr... | 37.875 | 182 | 0.796205 | 167 | 1,212 | 5.664671 | 0.473054 | 0.05074 | 0.066596 | 0.065539 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010166 | 0.107261 | 1,212 | 32 | 183 | 37.875 | 0.86414 | 0.018152 | 0 | 0 | 0 | 0.041667 | 0.261345 | 0.107563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.375 | 0 | 0.5 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8d19b95bc3c2dc7765d7f70f4239009b79c489dd | 957 | py | Python | 2020/02/code.py | ahriley/advent-of-code | 2484ff4e520215b5dfb855761465d683aa2b91eb | [
"MIT"
] | null | null | null | 2020/02/code.py | ahriley/advent-of-code | 2484ff4e520215b5dfb855761465d683aa2b91eb | [
"MIT"
] | null | null | null | 2020/02/code.py | ahriley/advent-of-code | 2484ff4e520215b5dfb855761465d683aa2b91eb | [
"MIT"
] | null | null | null | import numpy as np
# read in file
with open('input.txt') as f:
lines = f.readlines()
# process file
lows, highs, vals, passwords = [], [], [], []
for line in lines:
items = line.split()
limits = items[0].split('-')
lows.append(int(limits[0]))
highs.append(int(limits[1]))
vals.append(items[1][0... | 24.538462 | 66 | 0.631139 | 141 | 957 | 4.283688 | 0.361702 | 0.044702 | 0.043046 | 0.072848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019133 | 0.180773 | 957 | 38 | 67 | 25.184211 | 0.751276 | 0.048067 | 0 | 0 | 0 | 0 | 0.049724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.214286 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8d2c8ac50c9cdc3ee73bbec9c7a5d930e96c695b | 4,256 | py | Python | notebooks/sports/interactive.py | callysto/lesson-plans | 781cd15fcbf9c18fe589e37e337ebc0a065e72ed | [
"CC-BY-4.0"
] | 2 | 2021-12-17T15:46:25.000Z | 2021-12-17T15:46:51.000Z | notebooks/sports/interactive.py | callysto/lesson-plans | 781cd15fcbf9c18fe589e37e337ebc0a065e72ed | [
"CC-BY-4.0"
] | 3 | 2020-11-25T18:42:36.000Z | 2022-03-10T00:51:55.000Z | notebooks/sports/interactive.py | callysto/lesson-plans | 781cd15fcbf9c18fe589e37e337ebc0a065e72ed | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 30 2021
@author: TinaL5, adapted from lisacao, Laura G.F.
"""
# libraries
import random
################################ TEXT ENCODING
def soccer(text): # blocked out grey with emoji
rvr = "\033[1;35m ⚽️ : \033[1;0m" + text + "\033[1;0m"
... | 41.72549 | 329 | 0.602914 | 589 | 4,256 | 4.368421 | 0.349745 | 0.026428 | 0.023319 | 0.031092 | 0.368442 | 0.312476 | 0.267781 | 0.267781 | 0.216867 | 0.168286 | 0 | 0.046314 | 0.254229 | 4,256 | 102 | 330 | 41.72549 | 0.76087 | 0.142622 | 0 | 0.31746 | 0 | 0.095238 | 0.496277 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 1 | 0.206349 | false | 0 | 0.015873 | 0 | 0.365079 | 0.126984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d2f5a90d8783c75cac5b04ba0b2478b99a44afc | 1,248 | py | Python | archives/code_snippet/redis_helper.py | NopSmile/Blog | 4e7d9eb7ced038781179b6db1c0fada73c353071 | [
"MIT"
] | 1 | 2019-05-25T03:07:07.000Z | 2019-05-25T03:07:07.000Z | archives/code_snippet/redis_helper.py | NopSmile/Blog | 4e7d9eb7ced038781179b6db1c0fada73c353071 | [
"MIT"
] | 1 | 2018-03-29T01:55:21.000Z | 2018-03-29T01:55:21.000Z | archives/code_snippet/redis_helper.py | NopSmile/blog | 4e7d9eb7ced038781179b6db1c0fada73c353071 | [
"MIT"
] | 2 | 2019-04-24T08:21:49.000Z | 2021-01-15T06:49:47.000Z | # -*- coding:utf-8 -*-
import datetime
import time
class RedisHelper(object):
def __init__(self, redis_type=None, **args):
if redis_type == "cluster":
import rediscluster
self.r_conn = rediscluster.StrictRedisCluster(**args)
else:
import redis
self.r... | 26.553191 | 65 | 0.592147 | 157 | 1,248 | 4.535032 | 0.388535 | 0.042135 | 0.075843 | 0.061798 | 0.109551 | 0.109551 | 0 | 0 | 0 | 0 | 0 | 0.062893 | 0.235577 | 1,248 | 46 | 66 | 27.130435 | 0.683438 | 0.189904 | 0 | 0 | 0 | 0 | 0.066933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.153846 | 0.115385 | 0.5 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8d3ac4486e2f04be8dffe7d91b6973b03f034da1 | 460 | py | Python | gallery/migrations/0008_auto_20180929_1109.py | Nancy-Muthinzi/ip1-django | b14c637eb494240c8d3d599e48fa31a80792c3b9 | [
"MIT"
] | null | null | null | gallery/migrations/0008_auto_20180929_1109.py | Nancy-Muthinzi/ip1-django | b14c637eb494240c8d3d599e48fa31a80792c3b9 | [
"MIT"
] | null | null | null | gallery/migrations/0008_auto_20180929_1109.py | Nancy-Muthinzi/ip1-django | b14c637eb494240c8d3d599e48fa31a80792c3b9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-09-29 08:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery', '0007_auto_20180928_1633'),
]
operations = [
migrations.AlterField(... | 21.904762 | 51 | 0.626087 | 50 | 460 | 5.54 | 0.8 | 0.064982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 0.26087 | 460 | 20 | 52 | 23 | 0.711765 | 0.143478 | 0 | 0 | 1 | 0 | 0.132992 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d3feedfdd6b4f51b4163a25965727ad5f7a13f7 | 1,496 | py | Python | AlphaCodeServer/AlphaCodeTasks/migrations/0001_initial.py | RoranBlackfire/Alpha-Code | d2dcae2bf6f6b705ad577c92172f143e213a6c3d | [
"MIT"
] | null | null | null | AlphaCodeServer/AlphaCodeTasks/migrations/0001_initial.py | RoranBlackfire/Alpha-Code | d2dcae2bf6f6b705ad577c92172f143e213a6c3d | [
"MIT"
] | null | null | null | AlphaCodeServer/AlphaCodeTasks/migrations/0001_initial.py | RoranBlackfire/Alpha-Code | d2dcae2bf6f6b705ad577c92172f143e213a6c3d | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-29 07:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='RunServer',
fields=[
('id', models.AutoFiel... | 41.555556 | 195 | 0.574198 | 148 | 1,496 | 5.709459 | 0.540541 | 0.071006 | 0.078107 | 0.054438 | 0.149112 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021062 | 0.270053 | 1,496 | 35 | 196 | 42.742857 | 0.752747 | 0.03008 | 0 | 0.285714 | 1 | 0 | 0.21049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d469b725c6b2e4de1ad160c034126471a06f517 | 341 | py | Python | wiki/urls.py | franklin-phan/makewiki-v2 | 2b141f8e66621d1015c35de9cf0f5314109c1132 | [
"MIT"
] | null | null | null | wiki/urls.py | franklin-phan/makewiki-v2 | 2b141f8e66621d1015c35de9cf0f5314109c1132 | [
"MIT"
] | 7 | 2020-06-06T00:37:52.000Z | 2022-02-10T08:47:25.000Z | wiki/urls.py | franklin-phan/makewiki-v2 | 2b141f8e66621d1015c35de9cf0f5314109c1132 | [
"MIT"
] | null | null | null | from django.urls import path
from wiki.views import PageListView, PageDetailView
from django.conf.urls import include
urlpatterns = [
path('', PageListView.as_view(), name='wiki-list-page'),
path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'),
path('accounts/', include('django.contrib.... | 28.416667 | 76 | 0.706745 | 43 | 341 | 5.55814 | 0.534884 | 0.083682 | 0.083682 | 0.117155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 341 | 11 | 77 | 31 | 0.804714 | 0 | 0 | 0 | 0 | 0 | 0.219941 | 0.070381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8d4e55307058940742c3ea6b8c4facf97433bfe9 | 1,494 | py | Python | networking_mlnx_baremetal/ufmclient/client.py | IamFive/networking-mlnx-baremetal | 070d42a2b9eefe3198553353fe65043b54cd383e | [
"Apache-2.0"
] | null | null | null | networking_mlnx_baremetal/ufmclient/client.py | IamFive/networking-mlnx-baremetal | 070d42a2b9eefe3198553353fe65043b54cd383e | [
"Apache-2.0"
] | null | null | null | networking_mlnx_baremetal/ufmclient/client.py | IamFive/networking-mlnx-baremetal | 070d42a2b9eefe3198553353fe65043b54cd383e | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 HuaWei Technologies. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 37.35 | 78 | 0.696118 | 185 | 1,494 | 5.508108 | 0.535135 | 0.058881 | 0.044161 | 0.061825 | 0.200196 | 0.076546 | 0 | 0 | 0 | 0 | 0 | 0.007011 | 0.236278 | 1,494 | 39 | 79 | 38.307692 | 0.886065 | 0.506693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.214286 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8d57234f0338c49c4639c2e8f06bf1d06fbd270b | 10,895 | py | Python | travel/docs/Amadeus-master/pactravel-master/swagger_client/models/airport_information.py | shopglobal/api | 176e1858d3f93e8e7854ba194698b6b9825841da | [
"CC-BY-4.0"
] | null | null | null | travel/docs/Amadeus-master/pactravel-master/swagger_client/models/airport_information.py | shopglobal/api | 176e1858d3f93e8e7854ba194698b6b9825841da | [
"CC-BY-4.0"
] | 1 | 2021-06-01T22:04:28.000Z | 2021-06-01T22:04:28.000Z | travel/docs/Amadeus-master/pactravel-master/swagger_client/models/airport_information.py | shopglobal/api | 176e1858d3f93e8e7854ba194698b6b9825841da | [
"CC-BY-4.0"
] | null | null | null | # coding: utf-8
"""
Amadeus Travel Innovation Sandbox
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import ... | 30.518207 | 234 | 0.601744 | 1,300 | 10,895 | 4.925385 | 0.136923 | 0.039357 | 0.134937 | 0.067468 | 0.599563 | 0.533812 | 0.493206 | 0.419647 | 0.350773 | 0.350773 | 0 | 0.004545 | 0.313447 | 10,895 | 356 | 235 | 30.603933 | 0.851471 | 0.41799 | 0 | 0.075862 | 1 | 0 | 0.119412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165517 | false | 0 | 0.02069 | 0 | 0.310345 | 0.006897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d5e002acc27962025b11888c65666d25db10d55 | 440 | py | Python | pump-wip.py | prcutler/pi-pump | 3930edf3d1ef0c0ab39ee9dc33ad0997c47fc7dc | [
"MIT"
] | 1 | 2020-01-21T22:47:05.000Z | 2020-01-21T22:47:05.000Z | pump-wip.py | prcutler/pi-pump | 3930edf3d1ef0c0ab39ee9dc33ad0997c47fc7dc | [
"MIT"
] | 262 | 2019-07-04T11:29:12.000Z | 2022-03-21T10:39:52.000Z | pump-wip.py | prcutler/pi-pump | 3930edf3d1ef0c0ab39ee9dc33ad0997c47fc7dc | [
"MIT"
] | null | null | null | from gpiozero import OutputDevice
from time import sleep
import sentry_sdk
# TODO: Add code comments to make it easier for a user to add additional pumps
sentry_sdk.init("https://dfe1f1ad68ac4df8abe1479c6dedb280@sentry.io/1492008")
pump1 = OutputDevice(4)
def run_pump():
pump1.active_high = False
pump1.to... | 17.6 | 78 | 0.718182 | 60 | 440 | 5.05 | 0.733333 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077994 | 0.184091 | 440 | 24 | 79 | 18.333333 | 0.766017 | 0.172727 | 0 | 0.153846 | 0 | 0 | 0.238227 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d63e07b4f8eb01a687e7709d8ff4bb54cda1f06 | 767 | py | Python | Class.py | maiconloure/Learning_Python | 2999508909ace5f8ca0708cdea93b82abaaeafb2 | [
"MIT"
] | null | null | null | Class.py | maiconloure/Learning_Python | 2999508909ace5f8ca0708cdea93b82abaaeafb2 | [
"MIT"
] | null | null | null | Class.py | maiconloure/Learning_Python | 2999508909ace5f8ca0708cdea93b82abaaeafb2 | [
"MIT"
] | null | null | null | class Conta:
def __init__(self, numero, nome, saldo=0):
self._numero = numero
self._nome = nome
self._saldo = saldo
def atualiza(self, taxa):
self._saldo += self._saldo * taxa
def deposita(self, valor):
self._saldo += valor - 0.10
class ContaCorrente(Conta):
... | 21.914286 | 46 | 0.598435 | 102 | 767 | 4.254902 | 0.333333 | 0.165899 | 0.103687 | 0.131336 | 0.306452 | 0.306452 | 0.306452 | 0.306452 | 0.306452 | 0.211982 | 0 | 0.068301 | 0.255541 | 767 | 35 | 47 | 21.914286 | 0.691769 | 0 | 0 | 0.130435 | 0 | 0 | 0.048177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0 | 0.347826 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d6dd4abc3ee2bb362c42b0495c5da33e0d4dcdc | 1,457 | py | Python | fixit/common/tests/test_comments.py | sk-/Fixit | ee0c2c9699f3cf5557b7f1210447c68be1542024 | [
"Apache-2.0"
] | 313 | 2020-09-02T20:35:57.000Z | 2022-03-29T07:55:37.000Z | fixit/common/tests/test_comments.py | sk-/Fixit | ee0c2c9699f3cf5557b7f1210447c68be1542024 | [
"Apache-2.0"
] | 93 | 2020-09-02T19:51:22.000Z | 2022-01-19T18:29:46.000Z | fixit/common/tests/test_comments.py | sk-/Fixit | ee0c2c9699f3cf5557b7f1210447c68be1542024 | [
"Apache-2.0"
] | 46 | 2020-09-02T21:16:57.000Z | 2022-03-16T18:49:37.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import tokenize
from io import BytesIO
from libcst.testing.utils import UnitTest
from fixit.common.comments import CommentInfo
from fixit.co... | 35.536585 | 87 | 0.616335 | 193 | 1,457 | 4.590674 | 0.455959 | 0.055305 | 0.060948 | 0.072235 | 0.121896 | 0.121896 | 0.121896 | 0.121896 | 0.121896 | 0.121896 | 0 | 0.016832 | 0.306795 | 1,457 | 40 | 88 | 36.425 | 0.860396 | 0.313658 | 0 | 0 | 0 | 0 | 0.007174 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8d71141e02231bfc7d7b24d472d6ccbc9ba9d7dd | 467 | py | Python | test/app_test.py | xylovedd/yangyang | 4cb99491c0f046da9a39f7c916e0c85cb473c002 | [
"Apache-2.0"
] | 20 | 2019-11-14T02:53:53.000Z | 2022-03-26T02:44:04.000Z | test/app_test.py | janlle/12306 | 73b1d5423492013447ebdbbfcc6f1fe3a719ee0b | [
"Apache-2.0"
] | 9 | 2019-11-17T09:16:37.000Z | 2022-03-12T00:07:14.000Z | test/app_test.py | xylovedd/yangyang | 4cb99491c0f046da9a39f7c916e0c85cb473c002 | [
"Apache-2.0"
] | 7 | 2019-12-05T09:26:09.000Z | 2020-11-15T15:13:16.000Z | # coding:utf-8
import datetime
from util.logger import Logger
from util.app_util import datetime_str_timestamp, current_timestamp
import ticket_config as config
log = Logger('debug')
if __name__ == "__main__":
start_time = datetime_str_timestamp('2019-12-27 12:01:00')
while True:
current_time = curre... | 25.944444 | 67 | 0.691649 | 64 | 467 | 4.703125 | 0.53125 | 0.089701 | 0.13289 | 0.13289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044077 | 0.222698 | 467 | 17 | 68 | 27.470588 | 0.785124 | 0.025696 | 0 | 0 | 0 | 0 | 0.090508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8d7386c79d5c705651fa921cebf00537d8051504 | 1,077 | py | Python | backend/modules/doc/migrations/0004_auto_20211208_1947.py | YouFacai/iWiki | 7a2cbb514f25b72932b0212f6165cdb426243243 | [
"MIT"
] | null | null | null | backend/modules/doc/migrations/0004_auto_20211208_1947.py | YouFacai/iWiki | 7a2cbb514f25b72932b0212f6165cdb426243243 | [
"MIT"
] | null | null | null | backend/modules/doc/migrations/0004_auto_20211208_1947.py | YouFacai/iWiki | 7a2cbb514f25b72932b0212f6165cdb426243243 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-08 19:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("doc", "0003_alter_doc_index_together"),
]
operations = [
migrations.AlterField(
model_name="comment",
name="doc_id",... | 29.108108 | 79 | 0.574745 | 102 | 1,077 | 5.862745 | 0.431373 | 0.065217 | 0.125418 | 0.145485 | 0.481605 | 0.384615 | 0.384615 | 0.384615 | 0.384615 | 0.301003 | 0 | 0.025099 | 0.297122 | 1,077 | 36 | 80 | 29.916667 | 0.764861 | 0.041783 | 0 | 0.466667 | 1 | 0 | 0.147573 | 0.028155 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d7416d466f2d50607b39ecb1a8ba0a3331281eb | 1,490 | py | Python | sslh/SSLH_database.py | sslh/sslh | 740fb0abf9e179a3d50c5d703fd1337cde0f7fbe | [
"Apache-2.0"
] | 7 | 2015-10-06T14:46:04.000Z | 2021-02-05T19:04:59.000Z | sslh/SSLH_database.py | sslh/sslh | 740fb0abf9e179a3d50c5d703fd1337cde0f7fbe | [
"Apache-2.0"
] | 1 | 2015-10-28T00:59:14.000Z | 2015-10-28T00:59:14.000Z | sslh/SSLH_database.py | sslh/sslh | 740fb0abf9e179a3d50c5d703fd1337cde0f7fbe | [
"Apache-2.0"
] | 4 | 2015-10-02T05:47:36.000Z | 2020-12-31T08:44:22.000Z | """
Postgres database interaction for experimental results (SSL-H)
First version: June 13, 2015
This version: June 13, 2015
Author: Wolfgang Gatterbauer <gatt@cmu.edu>
"""
import psycopg2
def database_sql_statement(connection_string, sql_string):
"""Given a connection string and a SQL statement (can be an inse... | 38.205128 | 125 | 0.688591 | 194 | 1,490 | 5.226804 | 0.463918 | 0.094675 | 0.025641 | 0.033531 | 0.209073 | 0.209073 | 0.149901 | 0.149901 | 0.149901 | 0.149901 | 0 | 0.018057 | 0.219463 | 1,490 | 38 | 126 | 39.210526 | 0.853826 | 0.161745 | 0 | 0.333333 | 0 | 0 | 0.040503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d74c27b7fc8ed46941ce10fb31436607b086104 | 10,819 | py | Python | lvm.py | vkushnir/mysqlbackup | 376577b0b1e473c7e68f18c50ba3c3552bd0ea22 | [
"MIT"
] | null | null | null | lvm.py | vkushnir/mysqlbackup | 376577b0b1e473c7e68f18c50ba3c3552bd0ea22 | [
"MIT"
] | null | null | null | lvm.py | vkushnir/mysqlbackup | 376577b0b1e473c7e68f18c50ba3c3552bd0ea22 | [
"MIT"
] | null | null | null | #!/usr/bin/python2
"""
Logical Volume Management utitltes python wrapper
Written by : Vladimir Kushnir
Created date: 30.04.2019
Last modified: 04.05.2019
Tested with : Python 2.7
"""
__version__ = "0.12"
__copyright__ = "Vladimir Kushnir aka Kvantum (c)2019"
__all__ = ['find_lv', 'find_mount_target', 'find_mou... | 28.927807 | 117 | 0.595342 | 1,299 | 10,819 | 4.789069 | 0.165512 | 0.02797 | 0.01929 | 0.052082 | 0.29738 | 0.230831 | 0.166854 | 0.132937 | 0.124578 | 0.089535 | 0 | 0.006365 | 0.288474 | 10,819 | 373 | 118 | 29.005362 | 0.801767 | 0.278122 | 0 | 0.242424 | 0 | 0 | 0.112693 | 0.013646 | 0 | 0 | 0 | 0.002681 | 0 | 1 | 0.218182 | false | 0.024242 | 0.018182 | 0.012121 | 0.412121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d7cf6c719e9af7aa19222dd8d34129a2327f2d0 | 1,263 | py | Python | tests/functional/genesets/e2e_genesets.py | JureZmrzlikar/resolwe-bio-py | 49fba947b656b888879a69d8ee07494013475a7c | [
"Apache-2.0"
] | 4 | 2016-09-28T16:00:05.000Z | 2018-08-16T16:14:10.000Z | tests/functional/genesets/e2e_genesets.py | JureZmrzlikar/resolwe-bio-py | 49fba947b656b888879a69d8ee07494013475a7c | [
"Apache-2.0"
] | 229 | 2016-03-28T19:41:00.000Z | 2022-03-16T15:02:15.000Z | tests/functional/genesets/e2e_genesets.py | JureZmrzlikar/resolwe-bio-py | 49fba947b656b888879a69d8ee07494013475a7c | [
"Apache-2.0"
] | 18 | 2016-03-10T16:11:57.000Z | 2021-06-01T10:01:49.000Z | import resdk
from ..base import BaseResdkFunctionalTest
class TestCreateGeneset(BaseResdkFunctionalTest):
def setUp(self):
super().setUp()
self.collection = self.res.collection.create(name="Test collection")
self.geneset = None
def tearDown(self):
# self.geneset i... | 34.135135 | 77 | 0.628662 | 130 | 1,263 | 6.092308 | 0.369231 | 0.166667 | 0.119949 | 0.164141 | 0.088384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254949 | 1,263 | 36 | 78 | 35.083333 | 0.841658 | 0.059382 | 0 | 0 | 0 | 0 | 0.105309 | 0.036554 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d86498b2b52d707f5c02e5382984123e9aaf8f4 | 1,997 | py | Python | api/auth/routers/v1/users.py | iashraful/survey-api | 67de151f2938c24db96186117eed60b7909146d2 | [
"MIT"
] | null | null | null | api/auth/routers/v1/users.py | iashraful/survey-api | 67de151f2938c24db96186117eed60b7909146d2 | [
"MIT"
] | 3 | 2021-09-22T13:55:12.000Z | 2021-09-28T14:27:34.000Z | api/auth/routers/v1/users.py | iashraful/survey-api | 67de151f2938c24db96186117eed60b7909146d2 | [
"MIT"
] | 1 | 2021-09-10T06:55:17.000Z | 2021-09-10T06:55:17.000Z | from typing import List
from fastapi import APIRouter, HTTPException
from fastapi.params import Depends
from fastapi.security import OAuth2PasswordRequestForm
from sqlalchemy.orm import Session
from api.core.auth import authenticate, create_access_token, get_current_user
from api.core.database import get_db
from api.... | 35.660714 | 98 | 0.737106 | 263 | 1,997 | 5.410646 | 0.30038 | 0.042164 | 0.044975 | 0.053408 | 0.23331 | 0.139143 | 0 | 0 | 0 | 0 | 0 | 0.012493 | 0.158237 | 1,997 | 55 | 99 | 36.309091 | 0.834027 | 0 | 0 | 0.090909 | 0 | 0 | 0.057086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.136364 | 0.227273 | 0.022727 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8da280bbc18600a2945d26ee5697d1d322218f81 | 522 | py | Python | saleor/product/migrations/0077_imagedata_category.py | smbpgroup/upibo_tuan | 37abd7774fac7b45b6c6a0f0f84179937c47e19d | [
"BSD-3-Clause"
] | null | null | null | saleor/product/migrations/0077_imagedata_category.py | smbpgroup/upibo_tuan | 37abd7774fac7b45b6c6a0f0f84179937c47e19d | [
"BSD-3-Clause"
] | 5 | 2020-03-24T16:37:25.000Z | 2021-06-10T21:24:54.000Z | saleor/product/migrations/0077_imagedata_category.py | smbpgroup/upibo_tuan | 37abd7774fac7b45b6c6a0f0f84179937c47e19d | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.8 on 2019-01-14 04:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('product', '0076_auto_20181221_0143'),
]
operations = [
migrations.AddField(
model_name='imageda... | 26.1 | 150 | 0.653257 | 61 | 522 | 5.491803 | 0.688525 | 0.071642 | 0.083582 | 0.131343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076543 | 0.224138 | 522 | 19 | 151 | 27.473684 | 0.750617 | 0.086207 | 0 | 0 | 1 | 0 | 0.145263 | 0.048421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8da410d26831cfaca70e4f646fe698748374d4f9 | 327 | py | Python | keepmo/notes/migrations/0005_remove_note_deadline.py | YunusEmreUyar/Django-Notes-App | 2fbe40403e7a97ba7ac9dffd64c77073758876e8 | [
"MIT"
] | null | null | null | keepmo/notes/migrations/0005_remove_note_deadline.py | YunusEmreUyar/Django-Notes-App | 2fbe40403e7a97ba7ac9dffd64c77073758876e8 | [
"MIT"
] | null | null | null | keepmo/notes/migrations/0005_remove_note_deadline.py | YunusEmreUyar/Django-Notes-App | 2fbe40403e7a97ba7ac9dffd64c77073758876e8 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-12 09:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('notes', '0004_alter_profile_photo'),
]
operations = [
migrations.RemoveField(
model_name='note',
name='deadline',
),... | 18.166667 | 47 | 0.590214 | 35 | 327 | 5.4 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082609 | 0.296636 | 327 | 17 | 48 | 19.235294 | 0.73913 | 0.137615 | 0 | 0 | 1 | 0 | 0.146429 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8da5510a420ffc6b32de17235e3a52640539d6a8 | 310 | py | Python | School-Management-System/api/urls.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | School-Management-System/api/urls.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | School-Management-System/api/urls.py | GisaKaze/Python-Quarantine-Projects | 29fabcb7e4046e6f3e9a19403e6d2490fe4b9fc4 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('attendance/<student_class>/<student_id>', views.StudentAttendance.as_view(), name='student_attendance'),
path('result', views.ResultInfo.as_view(), name='result'),
path('student/create', views.CreateStudentInfo.as_view()),
]
| 31 | 114 | 0.729032 | 37 | 310 | 5.945946 | 0.513514 | 0.081818 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109677 | 310 | 9 | 115 | 34.444444 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.268608 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5c12ab6e76351e28fbbbe41aa499ab422f6c67f | 396 | py | Python | python/Head First Python and Head First Programming/Guess game/guess_game.py | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | python/Head First Python and Head First Programming/Guess game/guess_game.py | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | python/Head First Python and Head First Programming/Guess game/guess_game.py | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | from random import randint
secret = randint(1,15)
guess = 0
while guess != secret:
g = input("Guess a number between 1-15:")
guess = int(g)
if guess == secret:
print("You Win.")
else:
if guess > secret:
print("Too High")
... | 22 | 49 | 0.449495 | 43 | 396 | 4.139535 | 0.581395 | 0.185393 | 0.089888 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031674 | 0.441919 | 396 | 17 | 50 | 23.294118 | 0.773756 | 0 | 0 | 0.142857 | 0 | 0 | 0.149367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5c15a2739cee09910e465cbedf69f30c65ca5e6 | 3,497 | py | Python | pokedexApp/tests/test_utils.py | LucasAlmeidaSar/pokedex-django | ee0d271c661683f8d8df19001431ba2576a6059f | [
"MIT"
] | null | null | null | pokedexApp/tests/test_utils.py | LucasAlmeidaSar/pokedex-django | ee0d271c661683f8d8df19001431ba2576a6059f | [
"MIT"
] | null | null | null | pokedexApp/tests/test_utils.py | LucasAlmeidaSar/pokedex-django | ee0d271c661683f8d8df19001431ba2576a6059f | [
"MIT"
] | null | null | null | from pokedexApp.utils import *
url_pokemon = 'https://pokeapi.co/api/v2/pokemon/pikachu'
url_specie = 'https://pokeapi.co/api/v2/pokemon-species/25/'
url_type = 'https://pokeapi.co/api/v2/type/13/'
weakness_list = [{ "name": "ice","url": "https://pokeapi.co/api/v2/type/3/"}]
fake_specie = {'habitat' : '', 'shape' : ''... | 33.304762 | 77 | 0.784387 | 515 | 3,497 | 4.883495 | 0.163107 | 0.12326 | 0.063618 | 0.087873 | 0.539563 | 0.375746 | 0.217893 | 0.147913 | 0.077932 | 0.042147 | 0 | 0.025153 | 0.11324 | 3,497 | 105 | 78 | 33.304762 | 0.785876 | 0 | 0 | 0.148148 | 0 | 0 | 0.067181 | 0 | 0 | 0 | 0 | 0 | 0.246914 | 1 | 0.246914 | false | 0 | 0.012346 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5c9ca1cdbcbed3b00fecbc9fa76e28cae9c4020 | 1,542 | py | Python | koalixcrm/crm/migrations/0049_auto_20181014_2258.py | Cataldir/koalixcrm | 87d125379845d6ab990c19500d63cbed4051040a | [
"BSD-3-Clause"
] | 290 | 2015-01-11T03:01:05.000Z | 2019-12-17T03:56:17.000Z | koalixcrm/crm/migrations/0049_auto_20181014_2258.py | Cataldir/koalixcrm | 87d125379845d6ab990c19500d63cbed4051040a | [
"BSD-3-Clause"
] | 178 | 2016-02-26T14:41:49.000Z | 2019-12-29T08:34:21.000Z | koalixcrm/crm/migrations/0049_auto_20181014_2258.py | Cataldir/koalixcrm | 87d125379845d6ab990c19500d63cbed4051040a | [
"BSD-3-Clause"
] | 124 | 2015-02-28T20:56:37.000Z | 2019-12-13T18:15:35.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-10-12 20:56
from __future__ import unicode_literals
from django.db import migrations
def reverse_func(apps, schema_editor):
return 1
def backup_identifiers(apps, schema_editor):
Position = apps.get_model("crm", "Position")
CustomerGroupTransfo... | 35.045455 | 88 | 0.73022 | 188 | 1,542 | 5.702128 | 0.340426 | 0.072761 | 0.044776 | 0.05597 | 0.093284 | 0.093284 | 0 | 0 | 0 | 0 | 0 | 0.026646 | 0.172503 | 1,542 | 43 | 89 | 35.860465 | 0.81348 | 0.044099 | 0 | 0 | 1 | 0 | 0.058464 | 0.030591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0.030303 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5cd84522bf4a31b3ce77880167061b23a3e0b9d | 475 | py | Python | backend/benefit/applications/migrations/0005_employee_is_living_in_helsinki.py | iivoraitahila/yjdh | 4a9b46e0458529548af818534600eadd4f96a048 | [
"MIT"
] | 2 | 2021-05-10T09:28:35.000Z | 2021-05-17T12:15:34.000Z | backend/benefit/applications/migrations/0005_employee_is_living_in_helsinki.py | iivoraitahila/yjdh | 4a9b46e0458529548af818534600eadd4f96a048 | [
"MIT"
] | 931 | 2021-05-21T15:24:35.000Z | 2022-03-31T20:07:40.000Z | backend/benefit/applications/migrations/0005_employee_is_living_in_helsinki.py | iivoraitahila/yjdh | 4a9b46e0458529548af818534600eadd4f96a048 | [
"MIT"
] | 6 | 2021-07-06T11:07:02.000Z | 2022-02-07T12:42:21.000Z | # Generated by Django 3.2.4 on 2021-06-23 14:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("applications", "0004_validation_fixes"),
]
operations = [
migrations.AddField(
model_name="employee",
name="is_livin... | 22.619048 | 67 | 0.593684 | 49 | 475 | 5.612245 | 0.77551 | 0.043636 | 0.087273 | 0.101818 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057576 | 0.305263 | 475 | 20 | 68 | 23.75 | 0.775758 | 0.094737 | 0 | 0.142857 | 1 | 0 | 0.193925 | 0.098131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5cdf7751686bba352337c7f83cc9cf025182b9d | 14,899 | py | Python | vocabulary.py | JAMJU/MalDim | 01b02fe4f56161c9c09d0d5ac03e26342a586a50 | [
"MIT"
] | null | null | null | vocabulary.py | JAMJU/MalDim | 01b02fe4f56161c9c09d0d5ac03e26342a586a50 | [
"MIT"
] | null | null | null | vocabulary.py | JAMJU/MalDim | 01b02fe4f56161c9c09d0d5ac03e26342a586a50 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
from medicament import get_list_medoc, is_number, get_list_medoc_first
import enchant
import numpy as np
import os
from lev_distance import levenshtein_dist
import matplotlib.pyplot as plt
import matplotlib as mlab
list_med_com = get_list_medoc_first("data/cr... | 37.434673 | 216 | 0.550775 | 1,925 | 14,899 | 4.079481 | 0.144935 | 0.032981 | 0.023176 | 0.011461 | 0.433847 | 0.342417 | 0.266522 | 0.219279 | 0.182478 | 0.166815 | 0 | 0.008518 | 0.322371 | 14,899 | 398 | 217 | 37.434673 | 0.769017 | 0.134237 | 0 | 0.410526 | 0 | 0.007018 | 0.061427 | 0.014993 | 0.003509 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003509 | 0.02807 | null | null | 0.007018 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5cf0b0ff3ba8763025a3432eb2ecc010af8b52e | 26,466 | py | Python | Tria.py | brugola00/Progetto-Tria | 06da1faa663821820c82b9950f5d564eedf3193b | [
"MIT"
] | null | null | null | Tria.py | brugola00/Progetto-Tria | 06da1faa663821820c82b9950f5d564eedf3193b | [
"MIT"
] | null | null | null | Tria.py | brugola00/Progetto-Tria | 06da1faa663821820c82b9950f5d564eedf3193b | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Tria.py - Programma principale per la tria realizzata con fischertechnik
© 2018 Pietro Dorighi Riccardo Martinelli Gabriele Prada
"""
# Importazione librerie
import ftrobopy
import time
import random
import cv2
import logging
import opt
logging.basicConfig(... | 31.544696 | 92 | 0.471851 | 2,847 | 26,466 | 4.347383 | 0.157007 | 0.010665 | 0.01018 | 0.013331 | 0.465945 | 0.428214 | 0.408742 | 0.378202 | 0.368264 | 0.354367 | 0 | 0.068147 | 0.411169 | 26,466 | 838 | 93 | 31.582339 | 0.726001 | 0.042092 | 0 | 0.536153 | 0 | 0 | 0.087105 | 0.001027 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008186 | null | null | 0.020464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5cf1339fa496a877c6a3ef70e1dc8f0470cca45 | 1,414 | py | Python | tfcoreml/optimizations/_optimize_nn_spec.py | fantimond/fast-style-transfer-coreml | 82a6e87ce352e444138020335eebd93ce021306d | [
"MIT"
] | 38 | 2019-02-24T02:21:44.000Z | 2022-03-25T08:46:10.000Z | Chapter03/tfcoreml/optimizations/_optimize_nn_spec.py | datanonymous/NumberClassifier | 59125cbff9d93ed772162e5b8d6640534f5dccaa | [
"MIT"
] | 2 | 2019-05-23T17:24:47.000Z | 2020-09-06T00:09:19.000Z | Chapter03/tfcoreml/optimizations/_optimize_nn_spec.py | datanonymous/NumberClassifier | 59125cbff9d93ed772162e5b8d6640534f5dccaa | [
"MIT"
] | 38 | 2018-09-16T05:53:37.000Z | 2022-01-25T00:44:16.000Z | import _optimize
def _optimize_fold_load_constants(nn_layers):
"""
Fold load constants that interact through 'add', 'multiply', 'activation',
'slice', 'reduce' or 'unary' layers.
In other words, evaluate any sub-graph that involves only 'load_constant',
'multiply', 'add', 'activation', 'slice', 'reduce'
or... | 28.28 | 79 | 0.764498 | 195 | 1,414 | 5.230769 | 0.425641 | 0.047059 | 0.05 | 0.055882 | 0.169608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 1,414 | 49 | 80 | 28.857143 | 0.847176 | 0.484441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5cf42f6e351bca3c2af0c7416bdb770f4108e9e | 1,262 | py | Python | tests/markdown_test/test_utils.py | Cal-CS-61A-Staff/templar | 2c2a5a544da377e3c311750fadd6606bba3b7e75 | [
"MIT"
] | 6 | 2015-05-04T06:17:49.000Z | 2021-09-11T00:13:14.000Z | tests/markdown_test/test_utils.py | albert12132/templar | 39851c89730ab69e5c73d0a46adca2a44ecc4165 | [
"MIT"
] | 17 | 2015-01-07T03:25:47.000Z | 2016-10-08T03:53:44.000Z | tests/markdown_test/test_utils.py | Cal-CS-61A-Staff/templar | 2c2a5a544da377e3c311750fadd6606bba3b7e75 | [
"MIT"
] | 6 | 2015-10-08T11:37:17.000Z | 2019-06-03T21:27:52.000Z | import os
import unittest
import re
import textwrap
from templar.markdown import convert, Markdown
class TemplarTest(unittest.TestCase):
def dedent(self, text):
return textwrap.dedent(text).lstrip('\n').rstrip()
def ignoreWhitespace(self, text):
text = self.dedent(text)
return re.sub(... | 26.851064 | 70 | 0.619651 | 124 | 1,262 | 6.306452 | 0.306452 | 0.076726 | 0.069054 | 0.099744 | 0.345269 | 0.242967 | 0.242967 | 0.186701 | 0.186701 | 0.186701 | 0 | 0 | 0.280507 | 1,262 | 46 | 71 | 27.434783 | 0.861233 | 0 | 0 | 0.432432 | 0 | 0 | 0.007137 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 1 | 0.189189 | false | 0.054054 | 0.135135 | 0.027027 | 0.432432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a5da580cbfd41b046294527f7a0dcdb975dc6956 | 2,055 | py | Python | FrequencyQueries/Queries_SVK_On2.py | SalilVishnuKapur/Optimized-Algorithms | cae2134d0e54ce2a14d0c56c148de35546d2bd57 | [
"MIT"
] | null | null | null | FrequencyQueries/Queries_SVK_On2.py | SalilVishnuKapur/Optimized-Algorithms | cae2134d0e54ce2a14d0c56c148de35546d2bd57 | [
"MIT"
] | null | null | null | FrequencyQueries/Queries_SVK_On2.py | SalilVishnuKapur/Optimized-Algorithms | cae2134d0e54ce2a14d0c56c148de35546d2bd57 | [
"MIT"
] | 1 | 2018-10-03T01:10:50.000Z | 2018-10-03T01:10:50.000Z | #!/bin/python3
import os
import sys
from array import array
def operation1(dic, word, dic_c):
if (word in dic) and (dic[word] in dic_c):
#if dic_c[dic[word]] > 0:
dic_c[dic[word]] -= 1
dic[word] = dic.get(word, 0) + 1
dic_c[dic[word]] = dic_c.get(dic[word], 0) + 1
return dic, dic_c
d... | 25.060976 | 84 | 0.505109 | 285 | 2,055 | 3.522807 | 0.235088 | 0.083665 | 0.069721 | 0.065737 | 0.286853 | 0.2251 | 0.197211 | 0.197211 | 0.153386 | 0.153386 | 0 | 0.051674 | 0.331387 | 2,055 | 81 | 85 | 25.37037 | 0.679039 | 0.029684 | 0 | 0.16129 | 0 | 0 | 0.022613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048387 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5e46d67e2ee60683ded1bbb8899fb5b7029838c | 4,646 | py | Python | lib/ngramdb/ngramdb/ngramtoken.py | uwnlp/verbphysics | 7028b3acd7f70e967433453929b8bdbce73bbe28 | [
"MIT"
] | 28 | 2017-09-17T20:03:27.000Z | 2022-03-01T12:49:17.000Z | lib/ngramdb/ngramdb/ngramtoken.py | uwnlp/verbphysics | 7028b3acd7f70e967433453929b8bdbce73bbe28 | [
"MIT"
] | null | null | null | lib/ngramdb/ngramdb/ngramtoken.py | uwnlp/verbphysics | 7028b3acd7f70e967433453929b8bdbce73bbe28 | [
"MIT"
] | 5 | 2018-05-12T06:31:24.000Z | 2020-05-30T05:59:57.000Z | import itertools
from collections import defaultdict, Counter
class Ngram(object):
def __init__(self, tokens,
nid=None, freq=None):
self.tokens = tokens
self.headpositions = [t.headposition for t in self.tokens]
try:
for t in self.tokens:
if t.... | 27.491124 | 76 | 0.528196 | 561 | 4,646 | 4.278075 | 0.174688 | 0.070833 | 0.0325 | 0.033333 | 0.207917 | 0.172917 | 0.172917 | 0.101667 | 0.030833 | 0.030833 | 0 | 0.004637 | 0.350194 | 4,646 | 168 | 77 | 27.654762 | 0.790328 | 0.035299 | 0 | 0.239316 | 0 | 0 | 0.04981 | 0 | 0 | 0 | 0 | 0.005952 | 0 | 1 | 0.17094 | false | 0.008547 | 0.017094 | 0.102564 | 0.358974 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a5e935d89ac85e61af946bc27afcf93cf77d3969 | 6,417 | py | Python | chembl_beaker/beaker/core_apps/similarityMaps/views.py | mnowotka/chembl_beaker | 1fb87990ac353b0fa06ab7186d99eae8784da13d | [
"Apache-2.0"
] | 7 | 2015-04-02T16:54:16.000Z | 2021-04-06T13:16:21.000Z | chembl_beaker/beaker/core_apps/similarityMaps/views.py | mnowotka/chembl_beaker | 1fb87990ac353b0fa06ab7186d99eae8784da13d | [
"Apache-2.0"
] | null | null | null | chembl_beaker/beaker/core_apps/similarityMaps/views.py | mnowotka/chembl_beaker | 1fb87990ac353b0fa06ab7186d99eae8784da13d | [
"Apache-2.0"
] | 6 | 2015-03-13T17:31:33.000Z | 2020-06-28T18:28:26.000Z | __author__ = 'mnowotka'
#-----------------------------------------------------------------------------------------------------------------------
from chembl_beaker.beaker.utils.io import _parseFlag
from chembl_beaker.beaker import app
from chembl_beaker.beaker.core_apps.similarityMaps.impl import _smiles2SimilarityMa... | 50.132813 | 145 | 0.597943 | 697 | 6,417 | 5.417504 | 0.162123 | 0.042903 | 0.048199 | 0.029131 | 0.724311 | 0.662871 | 0.637182 | 0.637182 | 0.604343 | 0.604343 | 0 | 0.02766 | 0.121085 | 6,417 | 127 | 146 | 50.527559 | 0.641844 | 0.537634 | 0 | 0.464286 | 0 | 0 | 0.194208 | 0.025894 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.089286 | 0 | 0.303571 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.