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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
256f9af048ce43a7a2257935c3b318cad34ffeb2 | 1,043 | py | Python | binning/jdroege/seqlen.py | CAMI-challenge/evaluation | de74ce7f5057e3d5b7ac8f728e2eca4a148900ce | [
"MIT"
] | null | null | null | binning/jdroege/seqlen.py | CAMI-challenge/evaluation | de74ce7f5057e3d5b7ac8f728e2eca4a148900ce | [
"MIT"
] | null | null | null | binning/jdroege/seqlen.py | CAMI-challenge/evaluation | de74ce7f5057e3d5b7ac8f728e2eca4a148900ce | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Jiffy to calculate sequence lengths in either FastA or FastQ format.
"""
from Bio import SeqIO
import os.path
import argparse
import sys
#
# CLI definition and parsing
#
parser = argparse.ArgumentParser(description='Calculate sequence lengths')
parser.add_argument('--fastq', help='Input file ... | 26.74359 | 101 | 0.711409 | 165 | 1,043 | 4.460606 | 0.521212 | 0.048913 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.160115 | 1,043 | 38 | 102 | 27.447368 | 0.835616 | 0.25024 | 0 | 0 | 0 | 0 | 0.223988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.235294 | null | null | 0.117647 | 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 |
c255aa82a0cd63e6e2124ecc71ddbe9c11f74938 | 807 | py | Python | students/K33402/Livasily/lr3/FlexAir3/FlexAir/api.py | jabkevich/ITMO_ICT_WebDevelopment_2020-2021 | b2bfbcf53d061e20f8c13d2fe662a4df2022d09b | [
"MIT"
] | null | null | null | students/K33402/Livasily/lr3/FlexAir3/FlexAir/api.py | jabkevich/ITMO_ICT_WebDevelopment_2020-2021 | b2bfbcf53d061e20f8c13d2fe662a4df2022d09b | [
"MIT"
] | null | null | null | students/K33402/Livasily/lr3/FlexAir3/FlexAir/api.py | jabkevich/ITMO_ICT_WebDevelopment_2020-2021 | b2bfbcf53d061e20f8c13d2fe662a4df2022d09b | [
"MIT"
] | null | null | null | from .models import *
from rest_framework import viewsets, permissions
from .serializers import *
#
# from knox.views import LoginView as KnoxLoginView
# from rest_framework.authentication import BasicAuthentication
#
# class LoginView(KnoxLoginView):
# authentication_classes = [BasicAuthentication]
class Airli... | 23.735294 | 63 | 0.743494 | 78 | 807 | 7.576923 | 0.5 | 0.033841 | 0.05753 | 0.125212 | 0.175973 | 0.175973 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180917 | 807 | 33 | 64 | 24.454545 | 0.8941 | 0.240397 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 0.722222 | 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 |
c2590372f603ff2bb820adf076263fcafdf4282c | 6,000 | py | Python | proginn_ping/proginn_ping.py | bluehole333/spider | 0540b7495306224b1e54ba1609718fa1b4d0eb6a | [
"MIT"
] | 2 | 2019-09-24T11:52:07.000Z | 2020-08-10T10:28:03.000Z | proginn_ping/proginn_ping.py | bluehole333/spider | 0540b7495306224b1e54ba1609718fa1b4d0eb6a | [
"MIT"
] | null | null | null | proginn_ping/proginn_ping.py | bluehole333/spider | 0540b7495306224b1e54ba1609718fa1b4d0eb6a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
程序员客栈 自动ping
Python3.6
"""
import os
import yaml
import time
import requests
import memcache
from selenium import webdriver
from bs4 import BeautifulSoup
from requests.exceptions import *
from selenium.webdriver.common.proxy import Proxy, ProxyType
LOGIN_URL = 'https://ww... | 31.25 | 150 | 0.576 | 693 | 6,000 | 4.795094 | 0.357864 | 0.018959 | 0.030695 | 0.034306 | 0.097201 | 0.016852 | 0.016852 | 0.016852 | 0 | 0 | 0 | 0.019678 | 0.297 | 6,000 | 191 | 151 | 31.413613 | 0.768137 | 0.055 | 0 | 0.116279 | 0 | 0.015504 | 0.170488 | 0.034948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.054264 | 0.069767 | 0 | 0.224806 | 0.093023 | 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 |
c25d864b232f3fefd3428b86eb977edbe143d771 | 520 | py | Python | pyabc/external/__init__.py | ICB-DCM/pyABC | 3cef3237a819caba40efe6eb4f775822b4d66955 | [
"BSD-3-Clause"
] | 144 | 2017-10-23T11:20:09.000Z | 2022-03-31T08:55:51.000Z | pyabc/external/__init__.py | ICB-DCM/pyABC | 3cef3237a819caba40efe6eb4f775822b4d66955 | [
"BSD-3-Clause"
] | 494 | 2018-02-14T09:49:26.000Z | 2022-03-29T12:09:39.000Z | pyABC/Modified/external/__init__.py | ICB-DCM/lookahead-study | b9849ce2b0cebbe55d6c9f7a248a5f4dff191007 | [
"MIT"
] | 45 | 2018-08-27T18:01:46.000Z | 2022-03-30T14:05:37.000Z | """
External simulators
===================
This module can be used to easily interface pyABC with model simulations,
summary statistics calculators and distance functions written in arbitrary
programming languages, only requiring a specified command line interface
and file input and output.
It has been successfully u... | 27.368421 | 74 | 0.746154 | 67 | 520 | 5.746269 | 0.835821 | 0.046753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00232 | 0.171154 | 520 | 18 | 75 | 28.888889 | 0.890951 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c261b337ca771735be7ad042b7fc3d72e94e2d48 | 2,857 | py | Python | server/ahj_app/migrations/0005_ahjdocumentsubmissionmethoduse_ahjpermitissuemethoduse_documentsubmissionmethod_permitissuemethod.py | btansy/ahj-registry | b5340c7474f610964e828588572846ce4fb088aa | [
"MIT"
] | 4 | 2020-11-06T04:42:07.000Z | 2021-07-28T18:09:26.000Z | server/ahj_app/migrations/0005_ahjdocumentsubmissionmethoduse_ahjpermitissuemethoduse_documentsubmissionmethod_permitissuemethod.py | btansy/ahj-registry | b5340c7474f610964e828588572846ce4fb088aa | [
"MIT"
] | 38 | 2020-08-19T20:20:08.000Z | 2022-01-23T03:22:51.000Z | server/ahj_app/migrations/0005_ahjdocumentsubmissionmethoduse_ahjpermitissuemethoduse_documentsubmissionmethod_permitissuemethod.py | btansy/ahj-registry | b5340c7474f610964e828588572846ce4fb088aa | [
"MIT"
] | 8 | 2020-05-22T17:04:16.000Z | 2021-01-15T19:14:36.000Z | # Generated by Django 3.1.3 on 2021-03-16 02:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ahj_app', '0004_auto_20210312_2016'),
]
operations = [
migrations.CreateModel(
name='DocumentSu... | 50.122807 | 216 | 0.60343 | 245 | 2,857 | 6.881633 | 0.281633 | 0.05694 | 0.041518 | 0.065243 | 0.540925 | 0.505338 | 0.505338 | 0.505338 | 0.505338 | 0.505338 | 0 | 0.016256 | 0.246412 | 2,857 | 56 | 217 | 51.017857 | 0.766837 | 0.015751 | 0 | 0.56 | 1 | 0 | 0.280783 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c26e02c15cb2e403989d186d71c347fca9a25a72 | 226 | py | Python | Code/lecture 28/recurion.py | capacitybuilding/Introduction-to-Computng | 77639e53ed53896581c4a8431f32198237ac70dc | [
"MIT"
] | null | null | null | Code/lecture 28/recurion.py | capacitybuilding/Introduction-to-Computng | 77639e53ed53896581c4a8431f32198237ac70dc | [
"MIT"
] | null | null | null | Code/lecture 28/recurion.py | capacitybuilding/Introduction-to-Computng | 77639e53ed53896581c4a8431f32198237ac70dc | [
"MIT"
] | null | null | null | def factorial(n):
if n == 1 or n == 0:
return 1
else:
return n * factorial(n-1)
print factorial(5)
def fib(n):
if n == 1 or n == 0:
return 1
else:
return fib(n-1) + fib(n-2)
print fib(5)
| 12.555556 | 34 | 0.513274 | 42 | 226 | 2.761905 | 0.309524 | 0.068966 | 0.068966 | 0.086207 | 0.448276 | 0.448276 | 0.448276 | 0.448276 | 0.448276 | 0.448276 | 0 | 0.073826 | 0.340708 | 226 | 17 | 35 | 13.294118 | 0.704698 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 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 |
c27c1191c7fab29af658e8f0387347e24139db51 | 3,939 | py | Python | discovery-provider/alembic/versions/61a2ec64d2cb_add_cols_to_lexeme_dict.py | elopio/audius-protocol | 3b774e9dad09131735a9729fab816b4eac412c61 | [
"Apache-2.0"
] | 1 | 2020-11-10T04:04:47.000Z | 2020-11-10T04:04:47.000Z | discovery-provider/alembic/versions/61a2ec64d2cb_add_cols_to_lexeme_dict.py | elopio/audius-protocol | 3b774e9dad09131735a9729fab816b4eac412c61 | [
"Apache-2.0"
] | null | null | null | discovery-provider/alembic/versions/61a2ec64d2cb_add_cols_to_lexeme_dict.py | elopio/audius-protocol | 3b774e9dad09131735a9729fab816b4eac412c61 | [
"Apache-2.0"
] | null | null | null | """reasdf
Revision ID: 61a2ec64d2cb
Revises: 6a97af9e5058
Create Date: 2019-12-24 11:53:04.267648
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '61a2ec64d2cb'
down_revision = '6a97af9e5058'
branch_labels = None
depends_on = None
# Add col to search views to... | 29.177778 | 91 | 0.576542 | 489 | 3,939 | 4.398773 | 0.198364 | 0.074384 | 0.04556 | 0.041841 | 0.662483 | 0.506741 | 0.409577 | 0.409577 | 0.366341 | 0.333798 | 0 | 0.018861 | 0.353897 | 3,939 | 134 | 92 | 29.395522 | 0.826326 | 0.05052 | 0 | 0.5 | 0 | 0 | 0.938086 | 0.036987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0.008929 | 0.017857 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2813a80676062560793b1998d8d2d66db548c44 | 294 | py | Python | pycsync/version.py | shadowfax-chc/pycsync | 61a9131c66e5face8d9fb1a86a51a5ccf60b7974 | [
"ISC"
] | null | null | null | pycsync/version.py | shadowfax-chc/pycsync | 61a9131c66e5face8d9fb1a86a51a5ccf60b7974 | [
"ISC"
] | 1 | 2018-03-04T20:25:55.000Z | 2018-03-04T20:25:55.000Z | pycsync/version.py | shadowfax-chc/pycsync | 61a9131c66e5face8d9fb1a86a51a5ccf60b7974 | [
"ISC"
] | 1 | 2018-03-04T20:23:42.000Z | 2018-03-04T20:23:42.000Z | # vim: set et ts=4 sw=4 fileencoding=utf-8:
'''
pycsync.version
===============
Get version of pycsync
'''
from distutils.version import StrictVersion # pylint: disable=E0611,F0401
__version__ = str(StrictVersion('0.1b1'))
del StrictVersion
if __name__ == '__main__':
print __version__
| 19.6 | 74 | 0.70068 | 37 | 294 | 5.135135 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055336 | 0.139456 | 294 | 14 | 75 | 21 | 0.695652 | 0.234694 | 0 | 0 | 0 | 0 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 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 |
c284da62116defed49579f224f9b9be2d4ce8e28 | 2,923 | py | Python | contrib/integration/session/python/cppcmstest/tester/views.py | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 388 | 2017-03-01T07:39:21.000Z | 2022-03-30T19:38:41.000Z | contrib/integration/session/python/cppcmstest/tester/views.py | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 81 | 2017-03-08T20:28:00.000Z | 2022-01-23T08:19:31.000Z | contrib/integration/session/python/cppcmstest/tester/views.py | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 127 | 2017-03-05T21:53:40.000Z | 2022-02-25T02:31:01.000Z | from django.http import HttpResponse
from django.conf import settings
import cppcms
#
# Create the session pool - note it is thread safe and should be one per projects
# Provide a path to configuration file
#
pool=cppcms.SessionPool(settings.BASE_DIR + '/config.js')
def bin2hex(val):
return ''.join('{:02x}'.format... | 32.842697 | 81 | 0.53233 | 350 | 2,923 | 4.314286 | 0.285714 | 0.075497 | 0.043709 | 0.027815 | 0.027815 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004158 | 0.341772 | 2,923 | 88 | 82 | 33.215909 | 0.780665 | 0.039685 | 0 | 0 | 0 | 0 | 0.096003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c285b4a813611363744ea84fdfbabfc937a77d13 | 466 | py | Python | InvenTree/stock/migrations/0024_auto_20200405_2239.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 656 | 2017-03-29T22:06:14.000Z | 2022-03-30T11:23:52.000Z | InvenTree/stock/migrations/0024_auto_20200405_2239.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 1,545 | 2017-04-10T23:26:04.000Z | 2022-03-31T18:32:10.000Z | InvenTree/stock/migrations/0024_auto_20200405_2239.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 196 | 2017-03-28T03:06:21.000Z | 2022-03-28T11:53:29.000Z | # Generated by Django 2.2.10 on 2020-04-05 22:39
import InvenTree.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stock', '0023_auto_20200318_1027'),
]
operations = [
migrations.AlterField(
model_name='stockitem',
... | 23.3 | 115 | 0.639485 | 53 | 466 | 5.509434 | 0.811321 | 0.10274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100287 | 0.251073 | 466 | 19 | 116 | 24.526316 | 0.73639 | 0.098712 | 0 | 0 | 1 | 0 | 0.143541 | 0.055024 | 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 |
c28799a105032886f0283877471ba74fac50945c | 4,287 | py | Python | profiler/profiler/domain/feature_metric.py | rufusnufus/hydro-profiler | a729ffa2575bb8bfe9a080c2562fd592ed37521d | [
"Apache-2.0"
] | null | null | null | profiler/profiler/domain/feature_metric.py | rufusnufus/hydro-profiler | a729ffa2575bb8bfe9a080c2562fd592ed37521d | [
"Apache-2.0"
] | 2 | 2021-11-23T11:39:43.000Z | 2021-11-25T12:07:54.000Z | profiler/profiler/domain/feature_metric.py | rufusnufus/hydro-profiler | a729ffa2575bb8bfe9a080c2562fd592ed37521d | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List
from enum import Enum
from pydantic.main import BaseModel
class CheckType(str, Enum):
SUCCESS = "succeed"
FAILED = "failed"
SUSPICIOUS = "suspicious"
class MetricType(str, Enum):
MIN_MAX = "MinMax"
IN = "Include"
PERCENTILE = "Perce... | 28.390728 | 91 | 0.580592 | 485 | 4,287 | 5.012371 | 0.150515 | 0.078157 | 0.03949 | 0.085562 | 0.6232 | 0.57754 | 0.573427 | 0.573427 | 0.507199 | 0.472645 | 0 | 0.011636 | 0.298344 | 4,287 | 150 | 92 | 28.58 | 0.796543 | 0 | 0 | 0.421488 | 0 | 0 | 0.183112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115702 | false | 0.008264 | 0.033058 | 0.066116 | 0.520661 | 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 |
c28826d189556c4b4cad57d232a054498586a7b1 | 2,670 | py | Python | convert_to_chargrid.py | sam-ai/F3Net | a5dd8c06c9f797e02c8c606c44d7b09a0d56f074 | [
"MIT"
] | 1 | 2021-02-01T07:58:25.000Z | 2021-02-01T07:58:25.000Z | convert_to_chargrid.py | sam-ai/F3Net | a5dd8c06c9f797e02c8c606c44d7b09a0d56f074 | [
"MIT"
] | null | null | null | convert_to_chargrid.py | sam-ai/F3Net | a5dd8c06c9f797e02c8c606c44d7b09a0d56f074 | [
"MIT"
] | null | null | null | import pytesseract
import cv2
from pytesseract import Output
import numpy as np
import os
from tqdm import tqdm
CHAR_MAP = {
'"': (0, 255, 0),
'#': (0, 255, 0),
'%': (0, 255, 0),
'&': (0, 255, 0),
',': (0, 255, 0),
'.': (0, 255, 0),
'0': (0, 0, 255),
'1': (0, 0, 255),
'2': (0, 0, 255),
'3': (0, 0, 255),
'4'... | 23.217391 | 72 | 0.440449 | 378 | 2,670 | 2.992063 | 0.291005 | 0.152078 | 0.16092 | 0.03183 | 0.06985 | 0.027409 | 0.027409 | 0.027409 | 0.027409 | 0.027409 | 0 | 0.177107 | 0.342322 | 2,670 | 114 | 73 | 23.421053 | 0.46697 | 0.157678 | 0 | 0 | 0 | 0 | 0.031362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.065934 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c295320e47debcf44ac3057d59ed4ac2135a1a23 | 8,174 | py | Python | hbc/Auteurs/Generation_notes_d_auteur.py | delahee/admin_docs | be9ea0d6499ea3d13c259f165776747a20cf83a3 | [
"MIT"
] | 3 | 2020-11-03T07:46:05.000Z | 2021-09-21T10:39:25.000Z | hbc/Auteurs/Generation_notes_d_auteur.py | delahee/admin_docs | be9ea0d6499ea3d13c259f165776747a20cf83a3 | [
"MIT"
] | null | null | null | hbc/Auteurs/Generation_notes_d_auteur.py | delahee/admin_docs | be9ea0d6499ea3d13c259f165776747a20cf83a3 | [
"MIT"
] | null | null | null |
import csv
import math
from send_email import *
from reportlab.pdfgen import canvas
from reportlab.lib import colors
from reportlab.lib.units import cm
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus import Paragraph,Table, TableStyle
from reportlab.pdfbase import pdfmetrics
from reportlab.... | 28.283737 | 171 | 0.643014 | 1,241 | 8,174 | 4.101531 | 0.254633 | 0.025147 | 0.032417 | 0.047151 | 0.097446 | 0.046758 | 0.017092 | 0.017092 | 0.017092 | 0.017092 | 0 | 0.028524 | 0.185099 | 8,174 | 288 | 172 | 28.381944 | 0.734124 | 0.084903 | 0 | 0.09633 | 0 | 0 | 0.171956 | 0.004746 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013761 | 0.050459 | null | null | 0.087156 | 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 |
c299e2952a22aa733aa8a572fee4d181c011b901 | 810 | py | Python | setup.py | dsuarezgarcia/freecomet | a09e86ca94957660c70269230e578f0c670775c2 | [
"MIT"
] | null | null | null | setup.py | dsuarezgarcia/freecomet | a09e86ca94957660c70269230e578f0c670775c2 | [
"MIT"
] | null | null | null | setup.py | dsuarezgarcia/freecomet | a09e86ca94957660c70269230e578f0c670775c2 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="FreeComet",
version="1.0.0",
description="FreeComet application.",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/dsuarezgarcia/freecomet",
author="Diego Suárez",
author_email="d.suarez@udc.es",
... | 32.4 | 98 | 0.641975 | 83 | 810 | 6.096386 | 0.759036 | 0.112648 | 0.148221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009231 | 0.197531 | 810 | 25 | 99 | 32.4 | 0.769231 | 0 | 0 | 0.083333 | 0 | 0 | 0.45746 | 0.038224 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c29ea712bf0efe8d3639c1125b90d0bfca407e72 | 825 | py | Python | ncc/modules/decoders/base/transformer_decoder_layer.py | iwangyuezhang/naturalcc | e9d9b4a296b61199fc35779b062db2205935a608 | [
"MIT"
] | 1 | 2022-03-30T14:45:42.000Z | 2022-03-30T14:45:42.000Z | ncc/modules/decoders/base/transformer_decoder_layer.py | hrshy0629/naturalcc | 9c3329dd8387c8242deb52bf590ebe3ac795f8de | [
"MIT"
] | null | null | null | ncc/modules/decoders/base/transformer_decoder_layer.py | hrshy0629/naturalcc | 9c3329dd8387c8242deb52bf590ebe3ac795f8de | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import Dict, Optional
import torch
import torch.nn as nn
from torch import Tensor
class TransformerDecoderLayer(nn.Module):
def __init__(self, *args, **kwargs):
super(TransformerDecoderLayer, self).__init__()
def make_generation_fast_(self, need_attn: bool = Fal... | 28.448276 | 85 | 0.700606 | 100 | 825 | 5.49 | 0.45 | 0.204007 | 0.167577 | 0.098361 | 0.185792 | 0.185792 | 0.185792 | 0.185792 | 0 | 0 | 0 | 0.001524 | 0.204848 | 825 | 28 | 86 | 29.464286 | 0.835366 | 0.099394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c29f41b3a408f6802e170f2a2d77387e04110b1b | 1,153 | py | Python | tests/pre_order_traversal_test.py | gsingh79/python-ds-algorithms | 236bda4bb4e57d20ce2d6310efe8cdcd8d3367fc | [
"Apache-2.0"
] | 1 | 2022-01-19T01:28:08.000Z | 2022-01-19T01:28:08.000Z | tests/pre_order_traversal_test.py | gaurav-singh/python-ds-algorithms | 236bda4bb4e57d20ce2d6310efe8cdcd8d3367fc | [
"Apache-2.0"
] | null | null | null | tests/pre_order_traversal_test.py | gaurav-singh/python-ds-algorithms | 236bda4bb4e57d20ce2d6310efe8cdcd8d3367fc | [
"Apache-2.0"
] | 1 | 2022-01-03T04:03:27.000Z | 2022-01-03T04:03:27.000Z | from tests.models.binary_tree import TreeNode
# root, left, right (+ab)
def pre_order(root):
order = []
def traverse(node):
if node:
order.append(node.val)
else:
return
traverse(node.left)
traverse(node.right)
traverse(root)
return order
def... | 21.754717 | 87 | 0.699046 | 166 | 1,153 | 4.457831 | 0.23494 | 0.118919 | 0.081081 | 0.114865 | 0.517568 | 0.491892 | 0.464865 | 0.414865 | 0.295946 | 0.295946 | 0 | 0.018519 | 0.203816 | 1,153 | 52 | 88 | 22.173077 | 0.787582 | 0.019948 | 0 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.225806 | false | 0 | 0.032258 | 0 | 0.322581 | 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 |
c2a08f005db10777d0173f42e04c86f73b17370f | 1,010 | py | Python | simplestorage/clients/local.py | tbchk/simple-storage | 8fc9850602f4faf04aaf86749f9183021a75cc34 | [
"MIT"
] | null | null | null | simplestorage/clients/local.py | tbchk/simple-storage | 8fc9850602f4faf04aaf86749f9183021a75cc34 | [
"MIT"
] | null | null | null | simplestorage/clients/local.py | tbchk/simple-storage | 8fc9850602f4faf04aaf86749f9183021a75cc34 | [
"MIT"
] | null | null | null | import os
import glob
from io import BytesIO, StringIO
from typing import List
from ..templates import StorageBase, DataUnit
class LocalStorage(StorageBase):
def ls(self, uri: str) -> List[DataUnit]:
fpath = f"{uri}/*"
matches = glob.glob(fpath)
elements = [self._get_data_from_uri(uri=fpa... | 24.047619 | 64 | 0.583168 | 137 | 1,010 | 4.218978 | 0.357664 | 0.062284 | 0.086505 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30297 | 1,010 | 41 | 65 | 24.634146 | 0.821023 | 0 | 0 | 0.133333 | 0 | 0 | 0.011881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.166667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c2a4ee49f0d747e20ded440689cb8acf0c148cb2 | 477 | py | Python | mock_op/__init__.py | zcutlip/mock-op | 28119ec46d6e62c9218553b7ea668856c802694d | [
"MIT"
] | null | null | null | mock_op/__init__.py | zcutlip/mock-op | 28119ec46d6e62c9218553b7ea668856c802694d | [
"MIT"
] | null | null | null | mock_op/__init__.py | zcutlip/mock-op | 28119ec46d6e62c9218553b7ea668856c802694d | [
"MIT"
] | null | null | null | from .__about__ import (
__version__,
__title__,
__summary__
)
from .mock_op import MockOP
from . import _op
if _op.OP:
from .response_generator import OPResponseGenerator
else:
# make pyonepassword dependency a run-time error so it isn't needed if not generating responses
class OPResponseGene... | 26.5 | 99 | 0.735849 | 55 | 477 | 5.927273 | 0.745455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205451 | 477 | 17 | 100 | 28.058824 | 0.860158 | 0.194969 | 0 | 0 | 0 | 0 | 0.143979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c2a7ef48397d9116ceab50294fced108cb011cae | 2,724 | py | Python | chat/migrations/0001_initial.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | chat/migrations/0001_initial.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | chat/migrations/0001_initial.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-05 13:21
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.4 | 171 | 0.593612 | 278 | 2,724 | 5.629496 | 0.334532 | 0.140575 | 0.044728 | 0.070288 | 0.394888 | 0.394888 | 0.366773 | 0.325879 | 0.325879 | 0.325879 | 0 | 0.012994 | 0.265419 | 2,724 | 59 | 172 | 46.169492 | 0.769115 | 0.01652 | 0 | 0.346154 | 1 | 0 | 0.135226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057692 | 0 | 0.134615 | 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 |
c2b45a189d821ead8e14e434b8ffc1dbd6b136aa | 198 | py | Python | 21-08/Long/4.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | 21-08/Long/4.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | 21-08/Long/4.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | # https://www.codechef.com/AUG21C/problems/SPCTRIPS
for T in range(int(input())):
n,c=int(input()),0
for x in range(1,n+1):
for y in range(x,n+1,x): c+=((n-(x+y))//y+1)
print(c) | 28.285714 | 52 | 0.565657 | 41 | 198 | 2.731707 | 0.487805 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.186869 | 198 | 7 | 53 | 28.285714 | 0.652174 | 0.247475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
c2b96dc4282c868587b448db3618460a4766b92e | 4,602 | py | Python | cave/com.raytheon.viz.gfe/localization/gfe/userPython/textUtilities/offsetTime.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.viz.gfe/localization/gfe/userPython/textUtilities/offsetTime.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.viz.gfe/localization/gfe/userPython/textUtilities/offsetTime.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... | 30.68 | 94 | 0.62864 | 509 | 4,602 | 5.660118 | 0.449902 | 0.013884 | 0.017702 | 0.014578 | 0.108643 | 0.108643 | 0.108643 | 0.108643 | 0.076709 | 0.076709 | 0 | 0.01626 | 0.25163 | 4,602 | 149 | 95 | 30.885906 | 0.820267 | 0.443937 | 0 | 0.155844 | 0 | 0 | 0.073181 | 0.010454 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064935 | 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 |
c2b9eab134ab87aebbf17a9e68d25a4a2c0a7d4f | 811 | py | Python | benchmark/plot_benchmark_sampler.py | Jankoziol/discrete-sample | 26756327fbfff4f09093e2166a8d7281b8c110c7 | [
"MIT"
] | null | null | null | benchmark/plot_benchmark_sampler.py | Jankoziol/discrete-sample | 26756327fbfff4f09093e2166a8d7281b8c110c7 | [
"MIT"
] | null | null | null | benchmark/plot_benchmark_sampler.py | Jankoziol/discrete-sample | 26756327fbfff4f09093e2166a8d7281b8c110c7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#--------------------------------------------------------------------------#
# Name: Jan Koziol #
# Email: jankoziol@gmx.de #
# GitHub: https://github.com/Jankoziol/discrete-sample ... | 31.192308 | 76 | 0.418002 | 73 | 811 | 4.506849 | 0.575342 | 0.06383 | 0.072948 | 0.191489 | 0.367781 | 0.367781 | 0.367781 | 0.367781 | 0.367781 | 0 | 0 | 0.001733 | 0.288533 | 811 | 25 | 77 | 32.44 | 0.568458 | 0.482121 | 0 | 0 | 0 | 0 | 0.388753 | 0.051345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 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 |
c2bc703818332e9803dbfd106b4a881e0709e53b | 875 | py | Python | tests/app/test_webauthn_server.py | alphagov/notify-admin-frontend | 70f2a6a97aefe2432d7a3b54dc1555c030dd3693 | [
"MIT"
] | 33 | 2016-01-11T20:16:17.000Z | 2021-11-23T12:50:29.000Z | tests/app/test_webauthn_server.py | alphagov/notify-admin-frontend | 70f2a6a97aefe2432d7a3b54dc1555c030dd3693 | [
"MIT"
] | 1,249 | 2015-11-30T16:43:21.000Z | 2022-03-24T13:04:55.000Z | tests/app/test_webauthn_server.py | alphagov/notify-admin-frontend | 70f2a6a97aefe2432d7a3b54dc1555c030dd3693 | [
"MIT"
] | 36 | 2015-12-02T09:49:26.000Z | 2021-04-10T18:05:41.000Z | import pytest
from app import webauthn_server
@pytest.fixture
def app_with_mock_config(mocker):
app = mocker.Mock()
app.config = {
'ADMIN_BASE_URL': 'https://www.notify.works',
'NOTIFY_ENVIRONMENT': 'development'
}
return app
@pytest.mark.parametrize(('environment, allowed'), [
... | 22.435897 | 81 | 0.729143 | 110 | 875 | 5.409091 | 0.363636 | 0.094118 | 0.147899 | 0.228571 | 0.329412 | 0.252101 | 0.252101 | 0.252101 | 0.252101 | 0.252101 | 0 | 0 | 0.164571 | 875 | 38 | 82 | 23.026316 | 0.813953 | 0 | 0 | 0.214286 | 0 | 0 | 0.174857 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.107143 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
c2cbf053581725080b3e278e3039b9c5dd31d3a9 | 590 | py | Python | onewords/hitokoto.py | miaozhongyin/EverydayWechat | 754db31d94d09d245a3880bc33ecdf2cf43d619d | [
"MIT"
] | null | null | null | onewords/hitokoto.py | miaozhongyin/EverydayWechat | 754db31d94d09d245a3880bc33ecdf2cf43d619d | [
"MIT"
] | null | null | null | onewords/hitokoto.py | miaozhongyin/EverydayWechat | 754db31d94d09d245a3880bc33ecdf2cf43d619d | [
"MIT"
] | null | null | null | # coding=utf-8
import requests
def get_hitokoto_info():
"""
从『一言』获取信息。(官网:https://hitokoto.cn/)
:return: str,一言。
"""
print('获取一言...')
try:
resp = requests.get('https://v1.hitokoto.cn/', params={'c': 'e', 'encode': 'text'})
if resp.status_code == 200:
return "开心一言:\r... | 21.071429 | 91 | 0.588136 | 75 | 590 | 4.426667 | 0.64 | 0.066265 | 0.090361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011287 | 0.249153 | 590 | 28 | 92 | 21.071429 | 0.733634 | 0.111864 | 0 | 0.125 | 0 | 0 | 0.134653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.0625 | 0 | 0.3125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c2cdd712c4b3ddb05ef84857eace9cc59ecc045a | 1,411 | py | Python | solnml/components/models/object_detection/retinanet.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | solnml/components/models/object_detection/retinanet.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | solnml/components/models/object_detection/retinanet.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | import numpy as np
import torch
from ConfigSpace.configuration_space import ConfigurationSpace
from ConfigSpace.conditions import EqualsCondition
from ConfigSpace.hyperparameters import UniformFloatHyperparameter, \
UniformIntegerHyperparameter, CategoricalHyperparameter, UnParametrizedHyperparameter
from solnml.c... | 35.275 | 89 | 0.687456 | 131 | 1,411 | 7.305344 | 0.534351 | 0.037618 | 0.041797 | 0.048067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005545 | 0.233168 | 1,411 | 39 | 90 | 36.179487 | 0.878928 | 0.036853 | 0 | 0 | 0 | 0 | 0.09882 | 0.016224 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.1 | false | 0 | 0.266667 | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2d0ea5cea17d93820c437c8fd21e81c4eaabefd | 566 | py | Python | test.py | LastGenius-edu/maze_solver_project | 42eb99d62a3d2b7fbf15c0c5022e1d4ea02b7dc4 | [
"MIT"
] | null | null | null | test.py | LastGenius-edu/maze_solver_project | 42eb99d62a3d2b7fbf15c0c5022e1d4ea02b7dc4 | [
"MIT"
] | null | null | null | test.py | LastGenius-edu/maze_solver_project | 42eb99d62a3d2b7fbf15c0c5022e1d4ea02b7dc4 | [
"MIT"
] | null | null | null | # Imports
from maze_generator import breadth_first_generation
from PIL import Image
import numpy
def main():
"""
Generates a few new mazes
:return: None
"""
for i in range(5):
breadth_first_generation(name=f'image{i}.jpg')
def astar_algorithm(name):
"""
Algorithm that is based o... | 17.6875 | 62 | 0.65371 | 77 | 566 | 4.584416 | 0.623377 | 0.067989 | 0.124646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002336 | 0.243816 | 566 | 31 | 63 | 18.258065 | 0.82243 | 0.24735 | 0 | 0 | 1 | 0 | 0.075718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2d416474986c433c4734e3a8df130f14956ac76 | 1,522 | py | Python | bot/options.py | Achxy/emoji-alchemist | df718da216d9dbfa82e4f11fe24d82b8508f8c95 | [
"MIT"
] | 1 | 2022-01-06T07:55:57.000Z | 2022-01-06T07:55:57.000Z | bot/options.py | Achxy/emoji-alchemist | df718da216d9dbfa82e4f11fe24d82b8508f8c95 | [
"MIT"
] | null | null | null | bot/options.py | Achxy/emoji-alchemist | df718da216d9dbfa82e4f11fe24d82b8508f8c95 | [
"MIT"
] | null | null | null | """
EmojiWizard is a project licensed under GNU Affero General Public License.
Copyright (C) 2022-present Achxy
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License... | 29.843137 | 74 | 0.738502 | 208 | 1,522 | 5.317308 | 0.5625 | 0.03255 | 0.057866 | 0.079566 | 0.116637 | 0.090416 | 0.061483 | 0 | 0 | 0 | 0 | 0.003962 | 0.170828 | 1,522 | 50 | 75 | 30.44 | 0.872425 | 0.488173 | 0 | 0 | 0 | 0 | 0.125811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2d62ea6313292724e5d1772f65bc366e9fba5b8 | 410 | py | Python | setup.py | murd0/codonPython | d04029eab3707f5dbd1a7945839b609a662704fa | [
"BSD-3-Clause"
] | null | null | null | setup.py | murd0/codonPython | d04029eab3707f5dbd1a7945839b609a662704fa | [
"BSD-3-Clause"
] | null | null | null | setup.py | murd0/codonPython | d04029eab3707f5dbd1a7945839b609a662704fa | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='codonPython',
version='0.1',
license='BSD',
packages=['codonPython',],
install_required=[
'numpy',
're',
'pandas',
'random',
'sqlalchemy'
],
author='NHS Digital DIS Team',
author_email='paul.ellingham@nhs.net',
url='https://digital.nhs.uk/data... | 20.5 | 68 | 0.697561 | 54 | 410 | 5.240741 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.136585 | 410 | 19 | 69 | 21.578947 | 0.793785 | 0 | 0 | 0 | 0 | 0 | 0.47561 | 0.053659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2e4c23939ba9f5aa50403876b8d78bbfe48e19d | 767 | py | Python | prometheus_manager/app.py | wikimedia/cloud-metricsinfra-prometheus-manager | ad42e8e1173cabb0d9333cb07d3e1506f5729380 | [
"BSD-3-Clause"
] | null | null | null | prometheus_manager/app.py | wikimedia/cloud-metricsinfra-prometheus-manager | ad42e8e1173cabb0d9333cb07d3e1506f5729380 | [
"BSD-3-Clause"
] | null | null | null | prometheus_manager/app.py | wikimedia/cloud-metricsinfra-prometheus-manager | ad42e8e1173cabb0d9333cb07d3e1506f5729380 | [
"BSD-3-Clause"
] | null | null | null | import os
import flask
import yaml
from prometheus_manager.api.blueprint import api
from prometheus_manager.config import construct_config
from prometheus_manager.database import alembic, database
from prometheus_manager.metrics import metrics
def create_app(db_account='USER'):
app = flask.Flask(__name__)
... | 23.96875 | 83 | 0.736636 | 103 | 767 | 5.23301 | 0.38835 | 0.157699 | 0.155844 | 0.06308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172099 | 767 | 31 | 84 | 24.741935 | 0.848819 | 0 | 0 | 0.095238 | 0 | 0 | 0.057366 | 0.039113 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.428571 | 0.095238 | 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 |
c2f692d5e580744a7b9b067fadd43e67453e5b13 | 928 | bzl | Python | source/bazel/rules/image/png_to_x11_artifacts.bzl | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/bazel/rules/image/png_to_x11_artifacts.bzl | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/bazel/rules/image/png_to_x11_artifacts.bzl | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | load("//bazel/rules/image:png_to_xpm.bzl", "png_to_xpm")
load("//bazel/rules/image:xpm_to_ppm.bzl", "xpm_to_ppm")
load("//bazel/rules/image:ppm_to_mask.bzl", "ppm_to_mask")
load("//bazel/rules/image:ppm_to_xpm.bzl", "ppm_to_xpm")
load("//bazel/rules/image:xpm_to_xbm.bzl", "xpm_to_xbm")
load("//bazel/rules/image:png_mir... | 29 | 58 | 0.627155 | 141 | 928 | 3.695035 | 0.141844 | 0.076775 | 0.161228 | 0.21881 | 0.410749 | 0.203455 | 0.111324 | 0.111324 | 0 | 0 | 0 | 0.00271 | 0.204741 | 928 | 31 | 59 | 29.935484 | 0.703252 | 0 | 0 | 0 | 0 | 0 | 0.400862 | 0.220905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.037037 | 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 |
c2fbccb61982ce3ccf5f482ca94d667544d350e5 | 625 | py | Python | addon.py | lpenz/script.omnilauncher | a62d7ecef1efb5bf1f3476f8b0701a85bb416d0d | [
"MIT"
] | 1 | 2018-01-21T07:40:28.000Z | 2018-01-21T07:40:28.000Z | addon.py | lpenz/script.omnilauncher | a62d7ecef1efb5bf1f3476f8b0701a85bb416d0d | [
"MIT"
] | null | null | null | addon.py | lpenz/script.omnilauncher | a62d7ecef1efb5bf1f3476f8b0701a85bb416d0d | [
"MIT"
] | null | null | null | """Omnilauncher entry point"""
import sys
from resources.lib.log import getLogger
try:
from urllib.parse import parse_qs
except ImportError:
from urlparse import parse_qs
from resources.lib import omnilauncher
from resources.lib import kodiservice
log = getLogger(__name__)
def main():
log.debug(sys.ar... | 20.833333 | 67 | 0.6912 | 85 | 625 | 4.905882 | 0.411765 | 0.067146 | 0.115108 | 0.105516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007859 | 0.1856 | 625 | 29 | 68 | 21.551724 | 0.811395 | 0.0384 | 0 | 0 | 0 | 0 | 0.053782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 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 |
c2fed5e4c648a6a368d6d9089cf369fc706e33fc | 381 | py | Python | ex023.py | ezequielwish/Python3 | a4489d49e6919649437cb9e682614240701e2b68 | [
"MIT"
] | 1 | 2022-01-24T02:01:32.000Z | 2022-01-24T02:01:32.000Z | ex023.py | ezequielwish/Python3 | a4489d49e6919649437cb9e682614240701e2b68 | [
"MIT"
] | null | null | null | ex023.py | ezequielwish/Python3 | a4489d49e6919649437cb9e682614240701e2b68 | [
"MIT"
] | null | null | null | # Faça um programa que leia um número de 0 a 9999 e mostre na tela cada um dos dígitos separados.
number = int(input('Digite um número de 0 a 9999: '))
unitys = number // 1 % 10
dozens = number // 10 % 10
hundreds = number // 100 % 10
thousands = number // 1000 % 10
print('Unidades:', unitys)
print('Dezenas:', dozens... | 29.307692 | 97 | 0.687664 | 58 | 381 | 4.517241 | 0.603448 | 0.061069 | 0.076336 | 0.083969 | 0.122137 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0.181102 | 381 | 12 | 98 | 31.75 | 0.75 | 0.249344 | 0 | 0 | 0 | 0 | 0.228873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 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 |
6c11b0c57fa2a3333ae5281fe4f3d9bbbe00bd4b | 408 | py | Python | freelance_arena/users/migrations/0003_user_balance.py | rshch1/freelance-arena | c26446e10cb25208de9bd19eae97ffd12ca908f7 | [
"MIT"
] | null | null | null | freelance_arena/users/migrations/0003_user_balance.py | rshch1/freelance-arena | c26446e10cb25208de9bd19eae97ffd12ca908f7 | [
"MIT"
] | null | null | null | freelance_arena/users/migrations/0003_user_balance.py | rshch1/freelance-arena | c26446e10cb25208de9bd19eae97ffd12ca908f7 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-16 13:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_user_user_type'),
]
operations = [
migrations.AddField(
model_name='user',
name='balance',
... | 21.473684 | 81 | 0.605392 | 47 | 408 | 5.12766 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074576 | 0.276961 | 408 | 18 | 82 | 22.666667 | 0.742373 | 0.110294 | 0 | 0 | 1 | 0 | 0.096953 | 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 |
6c1425958b2af7f0574949baa26580246569f617 | 413 | py | Python | lumi_language_id/tests/test_language_id.py | LuminosoInsight/lumi_language_id | cef5c2582ef4887f54902b10264b7940cc4cf49b | [
"MIT"
] | 3 | 2020-06-04T01:42:29.000Z | 2022-01-03T06:31:25.000Z | lumi_language_id/tests/test_language_id.py | LuminosoInsight/lumi_language_id | cef5c2582ef4887f54902b10264b7940cc4cf49b | [
"MIT"
] | null | null | null | lumi_language_id/tests/test_language_id.py | LuminosoInsight/lumi_language_id | cef5c2582ef4887f54902b10264b7940cc4cf49b | [
"MIT"
] | null | null | null | from lumi_language_id.tuned import TunedLanguageIdentifier
LID = TunedLanguageIdentifier.load()
def _get_language(text):
lang, prob = LID.detect_language(text)
return lang
def test_language_id():
assert _get_language("here's some words") == 'en'
assert _get_language("aquí hay algunas palabras") ==... | 24.294118 | 61 | 0.716707 | 52 | 413 | 5.403846 | 0.615385 | 0.19573 | 0.241993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164649 | 413 | 16 | 62 | 25.8125 | 0.814493 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c1c918107025ef74bccd46fd7710e9b4cd0e3b6 | 495 | py | Python | orchestra/migrations/0082_task_tags.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 444 | 2016-07-25T05:24:30.000Z | 2022-02-21T08:12:29.000Z | orchestra/migrations/0082_task_tags.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 395 | 2016-07-26T20:49:59.000Z | 2022-03-15T20:58:45.000Z | orchestra/migrations/0082_task_tags.py | code-review-doctor/orchestra | 1ba58d26c508e89d2050dc9b0c8439eb1eadd014 | [
"Apache-2.0"
] | 63 | 2016-07-26T04:10:21.000Z | 2022-03-29T03:32:19.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-10-02 18:47
from __future__ import unicode_literals
from django.db import migrations
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('orchestra', '0081_step_todolist_templates_to_apply'),
]
operations... | 22.5 | 67 | 0.630303 | 54 | 495 | 5.574074 | 0.777778 | 0.099668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058981 | 0.246465 | 495 | 21 | 68 | 23.571429 | 0.747989 | 0.139394 | 0 | 0 | 1 | 0 | 0.137116 | 0.08747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c1f0c8ec8309648fd0568f905bff4a8ca0603b0 | 283 | py | Python | django_project/simple_django_logger/constants.py | eshandas/django_key_value_settings | 70ba8c0877f4b59cb66e69507b1e78bbd62f7e65 | [
"MIT"
] | null | null | null | django_project/simple_django_logger/constants.py | eshandas/django_key_value_settings | 70ba8c0877f4b59cb66e69507b1e78bbd62f7e65 | [
"MIT"
] | 7 | 2020-06-06T00:25:53.000Z | 2022-03-12T00:03:44.000Z | django_project/simple_django_logger/constants.py | eshandas/django_key_value_settings | 70ba8c0877f4b59cb66e69507b1e78bbd62f7e65 | [
"MIT"
] | null | null | null | class Keys():
ERROR = 'ERROR'
DEBUG = 'DEBUG'
WARN = 'WARN'
INFO = 'INFO'
URL = 'url'
TAG = 'tag'
MESSAGE = 'message'
LOG_LEVEL = 'level'
REQUEST_METHOD = 'method'
RESPONSE_STATUS = 'status'
PAGE = 'page'
SHOW = 'show'
ALL = 'all'
| 18.866667 | 30 | 0.522968 | 31 | 283 | 4.677419 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328622 | 283 | 14 | 31 | 20.214286 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0.208481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c2f706005ff55a91c6cebf57f577e32b4ba0fc3 | 6,213 | py | Python | irco/parser.py | GaretJax/irco | e5df3cf1a608dc813011a1ee7e920637e5bd155c | [
"MIT"
] | null | null | null | irco/parser.py | GaretJax/irco | e5df3cf1a608dc813011a1ee7e920637e5bd155c | [
"MIT"
] | null | null | null | irco/parser.py | GaretJax/irco | e5df3cf1a608dc813011a1ee7e920637e5bd155c | [
"MIT"
] | 1 | 2015-12-17T19:18:28.000Z | 2015-12-17T19:18:28.000Z | import re
import htmlentitydefs
from irco.authors import Author
from irco import errors
class IgnoreField(Exception):
pass
def unescape(text):
def fixup(m):
text = m.group(0)
if text[:2] == "&#":
# character reference
try:
if text[:3] == "&#x":
... | 28.5 | 79 | 0.526155 | 670 | 6,213 | 4.777612 | 0.19403 | 0.037488 | 0.026242 | 0.014995 | 0.078101 | 0.054358 | 0.048735 | 0.010622 | 0 | 0 | 0 | 0.008656 | 0.367777 | 6,213 | 217 | 80 | 28.631336 | 0.806263 | 0.007082 | 0 | 0.283237 | 0 | 0 | 0.064396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023121 | 0.028902 | null | null | 0.104046 | 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 |
6c38b69fe1431965e9bddbd214a827ff0d723ade | 33,383 | py | Python | pyghostbt/strategy.py | strengthening/pyghostbt | d2322527c8433fcfeaf03df1ecec9c679d348578 | [
"BSD-3-Clause"
] | null | null | null | pyghostbt/strategy.py | strengthening/pyghostbt | d2322527c8433fcfeaf03df1ecec9c679d348578 | [
"BSD-3-Clause"
] | null | null | null | pyghostbt/strategy.py | strengthening/pyghostbt | d2322527c8433fcfeaf03df1ecec9c679d348578 | [
"BSD-3-Clause"
] | 2 | 2019-12-16T02:30:13.000Z | 2021-12-14T00:24:34.000Z | from typing import List
from typing import Tuple
from jsonschema import validate
from pyanalysis.mysql import Conn
from pyanalysis.moment import moment
from pyghostbt.tool.runtime import Runtime
from pyghostbt.tool.asset import Asset
from pyghostbt.tool.indices import Indices
from pyghostbt.tool.param import Param
fro... | 42.31052 | 125 | 0.566396 | 3,588 | 33,383 | 4.959588 | 0.061037 | 0.036415 | 0.031357 | 0.017196 | 0.758247 | 0.73116 | 0.696432 | 0.661366 | 0.591795 | 0.564541 | 0 | 0.004925 | 0.318755 | 33,383 | 788 | 126 | 42.364213 | 0.777548 | 0.031753 | 0 | 0.526316 | 0 | 0.010526 | 0.267733 | 0.046105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027068 | false | 0 | 0.022556 | 0 | 0.094737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c38e241c92b3133b6e7799e445d2b7e58bf2712 | 1,622 | py | Python | solutions/solution166.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | 3 | 2018-11-22T10:31:09.000Z | 2019-05-05T15:53:48.000Z | solutions/solution166.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | solutions/solution166.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | class Solution:
def fractionToDecimal(self, numerator: int, denominator: int) -> str:
if numerator == 0:
return '0'
if numerator ^ denominator < 0:
result = '-'
else:
result = ''
numerator = abs(numerator)
denominator = abs(denomin... | 39.560976 | 165 | 0.610974 | 160 | 1,622 | 6.00625 | 0.24375 | 0.080125 | 0.123829 | 0.243496 | 0.381894 | 0.381894 | 0.081165 | 0.081165 | 0 | 0 | 0 | 0.021151 | 0.27127 | 1,622 | 40 | 166 | 40.55 | 0.791878 | 0 | 0 | 0.147059 | 0 | 0 | 0.008217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0 | 0 | 0.176471 | 0.176471 | 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 |
6c3a199390168126690ae64f11c7b19de8ceaf5b | 893 | py | Python | Subproject/tkitFile/tkitFile/csv.py | napoler/Terry-toolkit | 8b1a607fb6d27801b0441b67f7eb0962794a728a | [
"MIT"
] | null | null | null | Subproject/tkitFile/tkitFile/csv.py | napoler/Terry-toolkit | 8b1a607fb6d27801b0441b67f7eb0962794a728a | [
"MIT"
] | 14 | 2019-11-15T14:28:22.000Z | 2022-02-10T00:24:28.000Z | Terry_toolkit/csv.py | napoler/Terry-toolkit | 8b1a607fb6d27801b0441b67f7eb0962794a728a | [
"MIT"
] | 1 | 2020-04-15T12:58:00.000Z | 2020-04-15T12:58:00.000Z | import numpy as np
import csv
class Csv:
"""
处理各种csv数据
"""
def __init__(self):
pass
# def reader(self,file_path='')
def csv_data(self,file_path='',label=True):
"""
自定义读取csv 自动将数据转化成对象列表
数据需要第一行定义label
"""
with open(file_path,'r') as csvfile:
... | 26.264706 | 56 | 0.423292 | 84 | 893 | 4.392857 | 0.535714 | 0.065041 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006438 | 0.478163 | 893 | 34 | 57 | 26.264706 | 0.785408 | 0.173572 | 0 | 0 | 0 | 0 | 0.001462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6c3e8c0175cc0a95548fca0ba38cbe7a49cf50d5 | 419 | py | Python | backend/base/migrations/0002_auto_20210309_1516.py | Kolbondith/ecommerce | d0e224c83682fd6c94a382d1da0897bb72267b5e | [
"MIT"
] | null | null | null | backend/base/migrations/0002_auto_20210309_1516.py | Kolbondith/ecommerce | d0e224c83682fd6c94a382d1da0897bb72267b5e | [
"MIT"
] | null | null | null | backend/base/migrations/0002_auto_20210309_1516.py | Kolbondith/ecommerce | d0e224c83682fd6c94a382d1da0897bb72267b5e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-09 08:16
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('base', '0001_initial'),
]
operations = [
migrati... | 20.95 | 66 | 0.634845 | 46 | 419 | 5.652174 | 0.782609 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061489 | 0.26253 | 419 | 19 | 67 | 22.052632 | 0.779935 | 0.107399 | 0 | 0 | 1 | 0 | 0.083333 | 0 | 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 |
6c42976620655f375bda0227097f091d6e6fda10 | 1,946 | py | Python | chapter_10/rad.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_10/rad.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_10/rad.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | "Reloading Callback Handlers Dynamically"
# reload callback handlers dynamically
from tkinter import *
import radactions # get initial callback handlers
from importlib import reload
class Hello(Frame):
def __init__(self, master=None):
Frame.__init__(self, master)... | 37.423077 | 106 | 0.656732 | 253 | 1,946 | 5.007905 | 0.541502 | 0.037885 | 0.04262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006415 | 0.279034 | 1,946 | 51 | 107 | 38.156863 | 0.89665 | 0.161357 | 0 | 0.095238 | 0 | 0 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c4a4041eee55ce64a42ddddf704cc9fca99b4b3 | 218 | py | Python | text_based_rpg/interface/data/__init__.py | satoshit1/python-text-based-rpg | 464773dbf9c6d254cf3cd367a0cf76c396cc1c09 | [
"0BSD"
] | 23 | 2019-02-08T16:50:06.000Z | 2021-12-20T00:32:51.000Z | text_based_rpg/interface/data/__init__.py | satoshit1/python-text-based-rpg | 464773dbf9c6d254cf3cd367a0cf76c396cc1c09 | [
"0BSD"
] | null | null | null | text_based_rpg/interface/data/__init__.py | satoshit1/python-text-based-rpg | 464773dbf9c6d254cf3cd367a0cf76c396cc1c09 | [
"0BSD"
] | 15 | 2018-10-30T00:51:06.000Z | 2021-10-06T03:46:46.000Z | """
This module is an interface to the package's data.json file.
"""
import os
import json
DATA = json.load(
open(
os.path.dirname(
os.path.realpath(__file__)
) + "/data.json"
)
)
| 14.533333 | 60 | 0.573394 | 29 | 218 | 4.172414 | 0.655172 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298165 | 218 | 14 | 61 | 15.571429 | 0.79085 | 0.275229 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c4d01001529ea9e78bc075f263734250eb54214 | 2,000 | py | Python | benchmark/benchmark_roberta_model.py | VirgileHlav/text | c5f08db5d67dbd98edbf4388e617e906460c6c10 | [
"BSD-3-Clause"
] | null | null | null | benchmark/benchmark_roberta_model.py | VirgileHlav/text | c5f08db5d67dbd98edbf4388e617e906460c6c10 | [
"BSD-3-Clause"
] | null | null | null | benchmark/benchmark_roberta_model.py | VirgileHlav/text | c5f08db5d67dbd98edbf4388e617e906460c6c10 | [
"BSD-3-Clause"
] | null | null | null | from argparse import ArgumentParser
import torch
from benchmark.utils import Timer
from torchtext.functional import to_tensor
from torchtext.models import XLMR_BASE_ENCODER, XLMR_LARGE_ENCODER, ROBERTA_BASE_ENCODER, ROBERTA_LARGE_ENCODER
ENCODERS = {
"xlmr_base": XLMR_BASE_ENCODER,
"xlmr_large": XLMR_LARGE_EN... | 30.30303 | 111 | 0.705 | 255 | 2,000 | 5.235294 | 0.301961 | 0.104869 | 0.05618 | 0.044944 | 0.28015 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003075 | 0.187 | 2,000 | 65 | 112 | 30.769231 | 0.817958 | 0 | 0 | 0.08 | 0 | 0 | 0.136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.14 | 0.1 | 0 | 0.18 | 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 |
6c53db106385f9eacbf329377b2237070d4dfda9 | 7,496 | py | Python | test/programytest/parser/template/node_tests/test_conditiontype3.py | cdoebler1/AIML2 | ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a | [
"MIT"
] | 345 | 2016-11-23T22:37:04.000Z | 2022-03-30T20:44:44.000Z | test/programytest/parser/template/node_tests/test_conditiontype3.py | MikeyBeez/program-y | 00d7a0c7d50062f18f0ab6f4a041068e119ef7f0 | [
"MIT"
] | 275 | 2016-12-07T10:30:28.000Z | 2022-02-08T21:28:33.000Z | test/programytest/parser/template/node_tests/test_conditiontype3.py | VProgramMist/modified-program-y | f32efcafafd773683b3fe30054d5485fe9002b7d | [
"MIT"
] | 159 | 2016-11-28T18:59:30.000Z | 2022-03-20T18:02:44.000Z | from unittest.mock import patch
import xml.etree.ElementTree as ET
from programy.parser.template.nodes.base import TemplateNode
from programy.parser.template.nodes.condition import TemplateConditionListItemNode
from programy.parser.template.nodes.condition import TemplateConditionNode
from programy.parser.template.node... | 43.836257 | 253 | 0.718783 | 774 | 7,496 | 6.784238 | 0.129199 | 0.049514 | 0.058275 | 0.045706 | 0.739859 | 0.698914 | 0.698914 | 0.663683 | 0.663683 | 0.663683 | 0 | 0.023905 | 0.16849 | 7,496 | 170 | 254 | 44.094118 | 0.818546 | 0.001734 | 0 | 0.688 | 0 | 0.008 | 0.089305 | 0.038369 | 0 | 0 | 0 | 0 | 0.208 | 1 | 0.056 | false | 0 | 0.064 | 0 | 0.136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c561daadbcaef891350f6290b637d3abd496925 | 2,067 | py | Python | pyEdem/BigEclass.py | Guy-Koliko/Edem_Robin_python_project_book | 71fd31d46f0e40284d7e0469e5064a2b0d75141d | [
"MIT"
] | null | null | null | pyEdem/BigEclass.py | Guy-Koliko/Edem_Robin_python_project_book | 71fd31d46f0e40284d7e0469e5064a2b0d75141d | [
"MIT"
] | null | null | null | pyEdem/BigEclass.py | Guy-Koliko/Edem_Robin_python_project_book | 71fd31d46f0e40284d7e0469e5064a2b0d75141d | [
"MIT"
] | null | null | null |
from typing import Any, List
import ExpressionClass as ec
class KojoStringValidate:
def __init__(self,list_container: List,name_check: str = '', name_display: str = '', error_msg: str ='ERROR, Please provide string (A-Z)', number_of_char: int =3) -> None:
self.name_check = name_check
self.name_... | 33.33871 | 175 | 0.567973 | 272 | 2,067 | 4.150735 | 0.279412 | 0.085031 | 0.103632 | 0.042516 | 0.524358 | 0.524358 | 0.524358 | 0.524358 | 0.524358 | 0.524358 | 0 | 0.00075 | 0.355104 | 2,067 | 62 | 176 | 33.33871 | 0.846212 | 0.089502 | 0 | 0.578947 | 0 | 0.026316 | 0.12153 | 0.026527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.078947 | 0.052632 | 0 | 0.236842 | 0.078947 | 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 |
6c5bf549ae7c073bb53a4db11fb7c96f1ddd90f1 | 1,193 | py | Python | utils.py | normandipalo/neural_tatami | 8ad7601dca7d6155167ee0ef2bf3e10cde998786 | [
"MIT"
] | 1 | 2020-10-11T06:50:13.000Z | 2020-10-11T06:50:13.000Z | utils.py | normandipalo/neural_tatami | 8ad7601dca7d6155167ee0ef2bf3e10cde998786 | [
"MIT"
] | null | null | null | utils.py | normandipalo/neural_tatami | 8ad7601dca7d6155167ee0ef2bf3e10cde998786 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import time
import hashlib
import os
import json
import copy
from hyper import cfg, cos_loss
from models import *
from data import *
def store_hp(cfg):
# I create a deterministic hash based on the content of the cfg and model_hp dictionaries.
# Dictionaries ... | 36.151515 | 97 | 0.704107 | 201 | 1,193 | 3.975124 | 0.432836 | 0.061327 | 0.037547 | 0.041302 | 0.135169 | 0.055069 | 0.055069 | 0.055069 | 0.055069 | 0 | 0 | 0.010183 | 0.176865 | 1,193 | 32 | 98 | 37.28125 | 0.803462 | 0.28751 | 0 | 0 | 0 | 0 | 0.054438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.4 | 0 | 0.48 | 0.04 | 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 |
6c5c4082055c407789b1cae21a63325ec9fe9011 | 8,072 | py | Python | options/colla_options.py | dwleeKAIST/CollaGAN_MRI | f9100544d67517c0100eba95a3d7e8db4c78a0ac | [
"Apache-2.0"
] | 22 | 2019-07-18T06:49:46.000Z | 2022-03-20T11:55:47.000Z | options/colla_options.py | lixuan0/CollaGAN_MRI | f9100544d67517c0100eba95a3d7e8db4c78a0ac | [
"Apache-2.0"
] | 1 | 2020-07-02T11:39:31.000Z | 2020-07-02T11:39:31.000Z | options/colla_options.py | lixuan0/CollaGAN_MRI | f9100544d67517c0100eba95a3d7e8db4c78a0ac | [
"Apache-2.0"
] | 13 | 2019-08-15T00:47:16.000Z | 2022-03-18T10:32:15.000Z | import argparse
import os
from util import util
from ipdb import set_trace as st
# for gray scal : input_nc, output_nc, ngf, ndf, gpu_ids, batchSize, norm
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
self.init... | 55.668966 | 215 | 0.571977 | 1,038 | 8,072 | 4.260116 | 0.205202 | 0.085934 | 0.105834 | 0.170963 | 0.384894 | 0.284034 | 0.159204 | 0.112619 | 0.085482 | 0.05156 | 0 | 0.014693 | 0.274901 | 8,072 | 144 | 216 | 56.055556 | 0.740817 | 0.053147 | 0 | 0.065041 | 0 | 0 | 0.224407 | 0.00852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03252 | false | 0 | 0.03252 | 0 | 0.089431 | 0.03252 | 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 |
6c617a2b9704ffe6f1a87126a3a13ffb5be95f57 | 319 | py | Python | CourierManagement/users/permissions.py | GSri30/CourierManagementProject | 023fd2d72772d7045ea91ec6bc1a0d3ff212c93c | [
"MIT"
] | 2 | 2020-12-25T06:47:29.000Z | 2022-01-15T14:34:26.000Z | CourierManagement/users/permissions.py | GSri30/CourierManagementProject | 023fd2d72772d7045ea91ec6bc1a0d3ff212c93c | [
"MIT"
] | null | null | null | CourierManagement/users/permissions.py | GSri30/CourierManagementProject | 023fd2d72772d7045ea91ec6bc1a0d3ff212c93c | [
"MIT"
] | 1 | 2022-01-15T14:42:31.000Z | 2022-01-15T14:42:31.000Z | from rest_framework import permissions
class IsOwner(permissions.BasePermission):
"""
Checks if the user is the owner
"""
def has_object_permission(self,request,view,obj):
if request.method in permissions.SAFE_METHODS:
return True
return obj.email == request.user.email | 29 | 54 | 0.68652 | 39 | 319 | 5.512821 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238245 | 319 | 11 | 55 | 29 | 0.884774 | 0.097179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.833333 | 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 |
6c745ad4dd5f8d8ac26db1c3029d05ab42f800c0 | 6,857 | py | Python | nthmp_currents_2015/problem4/compare_gauges.py | rjleveque/tsunami_benchmarks | b2b18705a2c088f2beebaee50dfdcafe94c9e8ca | [
"BSD-3-Clause"
] | 1 | 2015-08-05T00:52:39.000Z | 2015-08-05T00:52:39.000Z | nthmp_currents_2015/problem4/compare_gauges.py | rjleveque/tsunami_benchmarks | b2b18705a2c088f2beebaee50dfdcafe94c9e8ca | [
"BSD-3-Clause"
] | 1 | 2015-08-02T18:44:40.000Z | 2015-08-02T20:33:43.000Z | nthmp_currents_2015/problem4/compare_gauges.py | rjleveque/tsunami_benchmarks | b2b18705a2c088f2beebaee50dfdcafe94c9e8ca | [
"BSD-3-Clause"
] | 4 | 2015-04-16T23:25:03.000Z | 2020-05-20T03:11:12.000Z |
from pylab import *
from clawpack.visclaw.data import ClawPlotData
datadir = '../all_data/4_Seaside_OSU_Model_Lab/comparison_data'
datadir_other = datadir + '/other'
d = loadtxt(datadir+'/Wavegage.txt',skiprows=1)
t = d[:,0]
def plot_wavemaker():
dt = 0.02
wm_disp = 0.47*(d[:,1]-d[0,1])
wm_speed = (wm_... | 25.778195 | 79 | 0.553887 | 1,116 | 6,857 | 3.362007 | 0.172939 | 0.019989 | 0.023987 | 0.040778 | 0.478945 | 0.45709 | 0.416844 | 0.323028 | 0.296642 | 0.284915 | 0 | 0.092152 | 0.22138 | 6,857 | 265 | 80 | 25.875472 | 0.610601 | 0.057314 | 0 | 0.454545 | 0 | 0 | 0.11585 | 0.007909 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009569 | null | null | 0.052632 | 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 |
6c76ac2ec2c7a6c15cba03e4020f00c59c023453 | 859 | py | Python | Exercicios_Resolvidos/Parte 2/Semana 2/Leituras - Arquivos/Exercícios adicionais/conta_letras.py | EmersonAires/Introducao_a_ciencia_da_computacao_com_Python | 152f95410a638d84adf97367be17ec67fdb8bf3c | [
"MIT"
] | null | null | null | Exercicios_Resolvidos/Parte 2/Semana 2/Leituras - Arquivos/Exercícios adicionais/conta_letras.py | EmersonAires/Introducao_a_ciencia_da_computacao_com_Python | 152f95410a638d84adf97367be17ec67fdb8bf3c | [
"MIT"
] | null | null | null | Exercicios_Resolvidos/Parte 2/Semana 2/Leituras - Arquivos/Exercícios adicionais/conta_letras.py | EmersonAires/Introducao_a_ciencia_da_computacao_com_Python | 152f95410a638d84adf97367be17ec67fdb8bf3c | [
"MIT"
] | null | null | null | def conta_letras(frase, contar="vogais"):
''' Account the amount of consonants or vowels that the sentence has'''
lista_ord_vogais = [65, 69, 73, 79, 85, 97, 101, 105, 111, 117]
lista_ord_cosoantes = [66, 67, 68, 70, 71, 72, 74, 75, 76, 77, 78, 80,
81, 82, 83, 84, 86, 87, 88, 89, 90, 98, 99, 100, 102,... | 33.038462 | 77 | 0.559953 | 127 | 859 | 3.677165 | 0.669291 | 0.068522 | 0.059957 | 0.06424 | 0.286938 | 0.286938 | 0.286938 | 0.286938 | 0.158458 | 0.158458 | 0 | 0.223368 | 0.322468 | 859 | 26 | 78 | 33.038462 | 0.579038 | 0.074505 | 0 | 0.333333 | 0 | 0 | 0.054499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c831edf9795bb1172ebedd7953af5249cae00bf | 473 | py | Python | singleton-meta.py | MillionIntegrals/metaclass-playground | 78ffd6a953f5f832ad868aab22fac7b8b10f95ab | [
"MIT"
] | 4 | 2019-08-02T07:01:51.000Z | 2021-12-06T13:03:20.000Z | singleton-meta.py | MillionIntegrals/metaclass-playground | 78ffd6a953f5f832ad868aab22fac7b8b10f95ab | [
"MIT"
] | null | null | null | singleton-meta.py | MillionIntegrals/metaclass-playground | 78ffd6a953f5f832ad868aab22fac7b8b10f95ab | [
"MIT"
] | null | null | null | class SingletonMeta(type):
def __init__(cls, name, bases, namespace):
super().__init__(name, bases, namespace)
cls.instance = None
def __call__(cls, *args, **kwargs):
if cls.instance is None:
cls.instance = super().__call__(*args, **kwargs)
return cls.instance
cla... | 16.892857 | 60 | 0.630021 | 55 | 473 | 5.127273 | 0.436364 | 0.156028 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238901 | 473 | 27 | 61 | 17.518519 | 0.783333 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.176471 | 0 | 0 | 0.411765 | 0.176471 | 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 |
6c8e273d12ddbeeae684ad44662b6405d3b6247c | 628 | py | Python | pyAuth/createAccount.py | ryomakawakami/userAccounts | 086fca314cc9ac63d87935b4494a751f6f06783f | [
"MIT"
] | null | null | null | pyAuth/createAccount.py | ryomakawakami/userAccounts | 086fca314cc9ac63d87935b4494a751f6f06783f | [
"MIT"
] | null | null | null | pyAuth/createAccount.py | ryomakawakami/userAccounts | 086fca314cc9ac63d87935b4494a751f6f06783f | [
"MIT"
] | null | null | null | import sys
import hasher
def validateInfo(u, p):
with open('admin/accounts', 'r') as f:
for line in f:
account = line.strip().split(' ')
if(u == account[0]):
return 1
s, h = hasher.newHash(p)
with open('admin/accounts', 'a') as f:
f.write(u + ' ' ... | 20.258065 | 45 | 0.538217 | 85 | 628 | 3.976471 | 0.529412 | 0.06213 | 0.053254 | 0.08284 | 0.130178 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015909 | 0.299363 | 628 | 30 | 46 | 20.933333 | 0.752273 | 0.047771 | 0 | 0.125 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.166667 | 0.083333 | 0 | 0.208333 | 0.166667 | 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 |
6658ff73fc348525d343dead3fa308b7669200e6 | 59,102 | py | Python | chainmore/models.py | kleon1024/ChainMore-API-Flask | 4fc5f2537ce9b648e37b1679c1af6f95a70d45bf | [
"Apache-2.0"
] | 1 | 2019-10-29T06:31:04.000Z | 2019-10-29T06:31:04.000Z | chainmore/models.py | kleon1024/ChainMore-API-Flask | 4fc5f2537ce9b648e37b1679c1af6f95a70d45bf | [
"Apache-2.0"
] | null | null | null | chainmore/models.py | kleon1024/ChainMore-API-Flask | 4fc5f2537ce9b648e37b1679c1af6f95a70d45bf | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:author: Kleon
:url: https://github.com/kleon1024
"""
from datetime import datetime
from enum import Enum
from werkzeug.security import generate_password_hash, check_password_hash
from .extensions import db, whooshee
from .common import merge
import json
DIGEST_LENGTH = 64
COLOR_... | 32.384658 | 91 | 0.622026 | 6,975 | 59,102 | 5.142222 | 0.062939 | 0.054646 | 0.06775 | 0.058773 | 0.654892 | 0.538824 | 0.479187 | 0.429838 | 0.392589 | 0.34851 | 0 | 0.001951 | 0.245609 | 59,102 | 1,824 | 92 | 32.402412 | 0.802494 | 0.131637 | 0 | 0.392278 | 1 | 0 | 0.095885 | 0.005007 | 0 | 0 | 0.000156 | 0 | 0.001544 | 1 | 0.068726 | false | 0.006178 | 0.004633 | 0.016216 | 0.455598 | 0.000772 | 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 |
665af58b33568cb3442dfa907fdd2f52ad384348 | 267 | py | Python | kata/digitalRoot.py | PauloBernal/Codewars | b5db67d1b13168d3aae7310815b7de0894608e9c | [
"MIT"
] | null | null | null | kata/digitalRoot.py | PauloBernal/Codewars | b5db67d1b13168d3aae7310815b7de0894608e9c | [
"MIT"
] | null | null | null | kata/digitalRoot.py | PauloBernal/Codewars | b5db67d1b13168d3aae7310815b7de0894608e9c | [
"MIT"
] | null | null | null | # Solution by PauloBA
def digital_root(n):
n = str(n)
ls = []
ans = 0
for i in n:
ls.append(int(i))
for i in ls:
ans = ans + i
if ans < 10:
return ans
else:
return digital_root(ans)
print(digital_root(24)) | 16.6875 | 32 | 0.516854 | 42 | 267 | 3.214286 | 0.52381 | 0.244444 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02994 | 0.374532 | 267 | 16 | 33 | 16.6875 | 0.778443 | 0.071161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0.076923 | 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 |
665c867b432bfac222fbdbc03eba9c49dffdad28 | 1,285 | py | Python | helper/mapHelper.py | LHGames-2018/DCI4espaces | 0b5dfed8b99d07f3f13ef4b9861494155922bc8b | [
"MIT"
] | null | null | null | helper/mapHelper.py | LHGames-2018/DCI4espaces | 0b5dfed8b99d07f3f13ef4b9861494155922bc8b | [
"MIT"
] | null | null | null | helper/mapHelper.py | LHGames-2018/DCI4espaces | 0b5dfed8b99d07f3f13ef4b9861494155922bc8b | [
"MIT"
] | null | null | null | from helper.structs import Point
class MapHelper:
# Helper method to determine what is the next move in order to move
# towards something. It uses manhattan movement in order to retrieve a point.
# Ex: Point(-1, 0) to move left.
@staticmethod
def getMoveTowards(fromPoint, toPoint):
distX =... | 36.714286 | 95 | 0.627237 | 170 | 1,285 | 4.741176 | 0.388235 | 0.059553 | 0.063275 | 0.074442 | 0.182382 | 0.182382 | 0.182382 | 0.182382 | 0.182382 | 0.182382 | 0 | 0.011866 | 0.278599 | 1,285 | 35 | 96 | 36.714286 | 0.857605 | 0.206226 | 0 | 0.166667 | 0 | 0 | 0.064039 | 0.025616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.041667 | 0.125 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
6666b5b5c78795e5fd50feebb710ca5bb91491cc | 356 | py | Python | scripts/download_common_tags.py | nrotstan/osm-compare | 59c1ff6d5cc375aa7ceef97f19e2670377df0484 | [
"0BSD"
] | 30 | 2016-07-12T18:55:49.000Z | 2022-02-09T22:38:08.000Z | scripts/download_common_tags.py | nrotstan/osm-compare | 59c1ff6d5cc375aa7ceef97f19e2670377df0484 | [
"0BSD"
] | 133 | 2016-06-29T13:59:26.000Z | 2021-04-29T11:22:53.000Z | scripts/download_common_tags.py | nrotstan/osm-compare | 59c1ff6d5cc375aa7ceef97f19e2670377df0484 | [
"0BSD"
] | 10 | 2016-08-31T13:12:17.000Z | 2021-05-02T20:33:22.000Z | import json
import requests
key = 'waterway'
url = 'https://taginfo.openstreetmap.org/api/4/key/values?key={0}&sortname=count&sortorder=desc'
response = requests.get(url.format(key))
common_tags = json.loads(response.text)
results = list()
for common_tag in common_tags['data'][:20]:
results.append(common_tag['va... | 25.428571 | 96 | 0.727528 | 51 | 356 | 5 | 0.705882 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.095506 | 356 | 13 | 97 | 27.384615 | 0.779503 | 0 | 0 | 0 | 0 | 0.1 | 0.297753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
667a4c81b28c4ac0607eb08d9253c15711f85fae | 932 | py | Python | decorator/classmethod.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | decorator/classmethod.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | decorator/classmethod.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
@ Author : pengj
@ date : 2019/10/31 18:48
@ IDE : PyCharm
@ GitHub : https://github.com/JackyPJB
@ Contact : pengjianbiao@hotmail.com
---------------... | 22.731707 | 53 | 0.44206 | 80 | 932 | 5.0375 | 0.6625 | 0.059553 | 0.039702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019667 | 0.290773 | 932 | 40 | 54 | 23.3 | 0.590015 | 0.648069 | 0 | 0 | 0 | 0 | 0.157729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
667baeea88488cc60da1a720d87a9f8dfded9d93 | 21,024 | py | Python | TEmarker_utils/TM_opt_vcf.py | yanhaidong1/TEmarker | 120a9555d075c14db8b2c6a409d8df96e4acfead | [
"BSD-3-Clause"
] | 2 | 2022-01-17T19:29:58.000Z | 2022-02-23T02:03:12.000Z | TEmarker_utils/TM_opt_vcf.py | yanhaidong1/TEmarker | 120a9555d075c14db8b2c6a409d8df96e4acfead | [
"BSD-3-Clause"
] | 1 | 2022-03-30T06:43:20.000Z | 2022-03-30T12:22:42.000Z | TEmarker_utils/TM_opt_vcf.py | yanhaidong1/TEmarker | 120a9555d075c14db8b2c6a409d8df96e4acfead | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
##updating 041121 add the read supporting information
##updation 110520 add the MAF filtration
##updation 110120 add an opt to generate vcf file
##import modules
from Bio import SeqIO
import re
import sys
import subprocess
def generate_sample_list (input_all_sample_list_file):
all_name_list... | 36 | 122 | 0.512462 | 2,597 | 21,024 | 3.864074 | 0.105506 | 0.050224 | 0.050523 | 0.057399 | 0.512307 | 0.440857 | 0.411161 | 0.347484 | 0.316094 | 0.284704 | 0 | 0.020977 | 0.385512 | 21,024 | 584 | 123 | 36 | 0.755786 | 0.146452 | 0 | 0.418421 | 1 | 0 | 0.036733 | 0.003685 | 0.013158 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0 | 0.010526 | 0 | 0.073684 | 0.007895 | 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 |
668363c336ebd629bd6ee8176112fa8383eebd07 | 2,229 | py | Python | lex/bots/PollexyHygieneBot.py | troylar/ez-lex-bot-manager | 470938be966e0e2e19aeb746df552c5efb257af6 | [
"MIT"
] | 2 | 2018-10-09T22:49:45.000Z | 2018-11-12T21:51:13.000Z | lex/bots/PollexyHygieneBot.py | troylar/ez-lex-bot-manager | 470938be966e0e2e19aeb746df552c5efb257af6 | [
"MIT"
] | 4 | 2020-03-24T17:47:53.000Z | 2021-06-02T00:32:04.000Z | lex/bots/PollexyHygieneBot.py | troylar/luthor-for-lex | 470938be966e0e2e19aeb746df552c5efb257af6 | [
"MIT"
] | null | null | null | from lex.bots import BaseBot
import time
class PollexyHygieneBot(BaseBot):
def __init__(self, lexbot):
self.bot_name = 'PollexyHygieneBot'
self.lexbot = lexbot
super(PollexyHygieneBot, self).__init__()
def on_fulfilled(self):
print(self.lexbot.last_intent)
if self.lexb... | 33.268657 | 77 | 0.581875 | 248 | 2,229 | 5.108871 | 0.310484 | 0.134175 | 0.07577 | 0.108919 | 0.330702 | 0.194159 | 0.194159 | 0.151539 | 0.151539 | 0.085241 | 0 | 0.003322 | 0.324809 | 2,229 | 66 | 78 | 33.772727 | 0.838538 | 0 | 0 | 0.264151 | 0 | 0 | 0.261104 | 0.043966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169811 | false | 0.09434 | 0.037736 | 0 | 0.226415 | 0.018868 | 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 |
6697abc1cf10180f1ed47e4250f8b7d94d4954c1 | 2,702 | py | Python | tests/test_lammpsWriteTABLE.py | mjdrushton/atsim-potentials | 566020dc0d2df4b701b9c8cd00319a1c9461f56e | [
"Apache-2.0"
] | 1 | 2021-03-16T14:48:51.000Z | 2021-03-16T14:48:51.000Z | tests/test_lammpsWriteTABLE.py | mjdrushton/atsim-potentials | 566020dc0d2df4b701b9c8cd00319a1c9461f56e | [
"Apache-2.0"
] | null | null | null | tests/test_lammpsWriteTABLE.py | mjdrushton/atsim-potentials | 566020dc0d2df4b701b9c8cd00319a1c9461f56e | [
"Apache-2.0"
] | 2 | 2020-12-30T09:20:54.000Z | 2022-02-14T06:12:14.000Z | """Module containing tests for the _lammps_writeTABLE module"""
import unittest
from io import StringIO
import os
from atsim import potentials
from atsim.potentials import _lammps_writeTABLE
class LammpsWriteTABLETestCase(unittest.TestCase):
"""Test case for lammps.writeTABLE module"""
def testWriteSinglePote... | 31.788235 | 95 | 0.590674 | 353 | 2,702 | 4.481586 | 0.189802 | 0.102402 | 0.107459 | 0.045512 | 0.561315 | 0.494943 | 0.482301 | 0.482301 | 0.482301 | 0.482301 | 0 | 0.294385 | 0.26832 | 2,702 | 84 | 96 | 32.166667 | 0.505817 | 0.097705 | 0 | 0.580645 | 0 | 0 | 0.30298 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.032258 | false | 0 | 0.080645 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
669858ed1148af31458b0c122a9e17f3e9667083 | 439 | py | Python | url_shortener/url_shortener/urlapp/migrations/0002_auto_20180814_1328.py | rockchalkwushock/pdx-code-labs | 9953fda1c1b727c98834d5b10ea6a742967af470 | [
"MIT"
] | null | null | null | url_shortener/url_shortener/urlapp/migrations/0002_auto_20180814_1328.py | rockchalkwushock/pdx-code-labs | 9953fda1c1b727c98834d5b10ea6a742967af470 | [
"MIT"
] | 12 | 2020-06-05T18:47:42.000Z | 2021-06-10T20:53:28.000Z | url_shortener/url_shortener/urlapp/migrations/0002_auto_20180814_1328.py | rockchalkwushock/pdx-code-labs | 9953fda1c1b727c98834d5b10ea6a742967af470 | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2018-08-14 20:28
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('urlapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='url',
name='created_date... | 21.95 | 98 | 0.610478 | 49 | 439 | 5.408163 | 0.755102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 0.271071 | 439 | 19 | 99 | 23.105263 | 0.715625 | 0.09795 | 0 | 0 | 1 | 0 | 0.083756 | 0 | 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 |
66994fad2068d76d23fbf6dd1ea79fc5bfb404a4 | 382 | py | Python | src/wafp/fuzzers/catalog/fuzzy_swagger/__init__.py | schemathesis/web-api-fuzzing-project | 69916d9ba9c8c844c7f529dd116790b1f7a135a9 | [
"MIT"
] | 5 | 2021-05-10T16:14:46.000Z | 2021-09-18T13:29:42.000Z | src/wafp/fuzzers/catalog/fuzzy_swagger/__init__.py | schemathesis/web-api-fuzzing-project | 69916d9ba9c8c844c7f529dd116790b1f7a135a9 | [
"MIT"
] | 4 | 2021-05-10T10:42:56.000Z | 2021-11-13T08:15:11.000Z | src/wafp/fuzzers/catalog/fuzzy_swagger/__init__.py | schemathesis/web-api-fuzzing-project | 69916d9ba9c8c844c7f529dd116790b1f7a135a9 | [
"MIT"
] | null | null | null | from typing import Dict, List
from wafp.fuzzers import BaseFuzzer, FuzzerContext
class Default(BaseFuzzer):
def get_entrypoint_args(
self, context: FuzzerContext, schema: str, base_url: str, headers: Dict[str, str]
) -> List[str]:
# Fuzzy-Swagger does not support custom headers
return... | 31.833333 | 89 | 0.683246 | 48 | 382 | 5.354167 | 0.666667 | 0.054475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191099 | 382 | 11 | 90 | 34.727273 | 0.831715 | 0.117801 | 0 | 0 | 0 | 0 | 0.137313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
66b78d6b3068383b12f57ef9af5067870e50597b | 1,001 | py | Python | exptool/basis/bsplinebasis.py | MSPetersen/exptool | 5cede3fe39fff1281d8595ed7a799d2952b01802 | [
"BSD-3-Clause"
] | null | null | null | exptool/basis/bsplinebasis.py | MSPetersen/exptool | 5cede3fe39fff1281d8595ed7a799d2952b01802 | [
"BSD-3-Clause"
] | 15 | 2017-10-29T20:56:45.000Z | 2022-01-16T21:23:52.000Z | exptool/basis/bsplinebasis.py | MSPetersen/exptool | 5cede3fe39fff1281d8595ed7a799d2952b01802 | [
"BSD-3-Clause"
] | null | null | null | '''
bsplinebasis.py
Set up bspline basis
31-Mar-2021: First written
vision is to follow Vasiliev's technique for deriving radial basis functions using spline representation
built on scipy's implementation, but may use the naive implementation
as well.
TODO
1. investigate loss functions
2. investigate penalised fitt... | 22.75 | 116 | 0.584416 | 188 | 1,001 | 3.111702 | 0.409574 | 0.041026 | 0.025641 | 0.020513 | 0.075214 | 0.023932 | 0.023932 | 0 | 0 | 0 | 0 | 0.045455 | 0.252747 | 1,001 | 43 | 117 | 23.27907 | 0.736631 | 0.431568 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.055556 | 1 | 0.111111 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66b7c20c91e91dce74b85de785fa0c970f0b0635 | 434 | py | Python | app/config.py | nguyentienlong/tweetapp | 1d390d733aeb21e3c3107e138d7222a50de181b4 | [
"MIT"
] | null | null | null | app/config.py | nguyentienlong/tweetapp | 1d390d733aeb21e3c3107e138d7222a50de181b4 | [
"MIT"
] | 3 | 2021-05-11T10:58:43.000Z | 2022-02-27T03:16:10.000Z | app/config.py | nguyentienlong/tweetapp | 1d390d733aeb21e3c3107e138d7222a50de181b4 | [
"MIT"
] | null | null | null |
import os
# DEBUG has to be to False in a production enrironment for security reasons
DEBUG = True
LOG_LEVEL = DEBUG
LOG_FILE = "logs/app.log"
TWITTER_API_KEY = "7yTSEytlv1F9558UnpE6A"
TWITTER_SECRET_KEY = "GOI4AFmaY2tXfb4uECeasxVwitzbNUcYSJXd3MPMW6c"
TWITTER_ACCESS_TOKEN = "32852699-HOwaZhWqgVX9186LXiktNFbFcCzU4a5T... | 31 | 77 | 0.85023 | 47 | 434 | 7.574468 | 0.723404 | 0.073034 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107417 | 0.099078 | 434 | 13 | 78 | 33.384615 | 0.803069 | 0.168203 | 0 | 0 | 0 | 0 | 0.477654 | 0.444134 | 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 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66bd79579929890ba4da42b0745d11b40dd7dad9 | 367 | py | Python | benchmarks/ud_benchmark/scripts/copy_files.py | apjanco/projects | 2f8850140ba13ab18b9cf622e46e79013d41701f | [
"MIT"
] | 823 | 2019-11-22T17:08:39.000Z | 2022-03-31T03:03:23.000Z | benchmarks/ud_benchmark/scripts/copy_files.py | apjanco/projects | 2f8850140ba13ab18b9cf622e46e79013d41701f | [
"MIT"
] | 46 | 2019-11-25T15:14:05.000Z | 2022-03-31T12:59:45.000Z | benchmarks/ud_benchmark/scripts/copy_files.py | apjanco/projects | 2f8850140ba13ab18b9cf622e46e79013d41701f | [
"MIT"
] | 326 | 2019-11-24T01:31:27.000Z | 2022-03-27T19:48:04.000Z | import typer
from pathlib import Path
import glob
import shutil
def main(stem: str, ext: str, input_dir: Path, output_dir: Path):
output_dir.mkdir(parents=True, exist_ok=True)
for filename in glob.glob(str(input_dir.resolve()) + f"/*-{stem}*.{ext}"):
shutil.copy(filename, str(output_dir.resolve()))
... | 24.466667 | 78 | 0.694823 | 55 | 367 | 4.381818 | 0.527273 | 0.112033 | 0.091286 | 0.13278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158038 | 367 | 14 | 79 | 26.214286 | 0.779935 | 0 | 0 | 0 | 0 | 0 | 0.065395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 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 |
66c0c130c14e99050e5788c2e8921499ea0ae306 | 3,729 | py | Python | setup.py | hizeph/AWS-Environment-Deployer | e5ef3783318e1b58d03478062cc302018af81fd7 | [
"MIT"
] | null | null | null | setup.py | hizeph/AWS-Environment-Deployer | e5ef3783318e1b58d03478062cc302018af81fd7 | [
"MIT"
] | null | null | null | setup.py | hizeph/AWS-Environment-Deployer | e5ef3783318e1b58d03478062cc302018af81fd7 | [
"MIT"
] | null | null | null |
import sys, argparse
from driver import InfrastructureConfiguration
class Setup:
def __init__(self):
self.conf = InfrastructureConfiguration()
self.conf_map = {
1: self.conf_nodes,
2: self.conf_packages,
3: self.conf_scripts,
4: self.save_infra,
5: self.show_conf,
6: self.save_conf,
7: sys.... | 27.021739 | 146 | 0.666935 | 501 | 3,729 | 4.824351 | 0.263473 | 0.056268 | 0.028962 | 0.019859 | 0.218453 | 0.074472 | 0.074472 | 0.074472 | 0.048821 | 0.048821 | 0 | 0.009262 | 0.189327 | 3,729 | 138 | 147 | 27.021739 | 0.790275 | 0.008581 | 0 | 0.330645 | 0 | 0 | 0.252165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.064516 | 0.016129 | 0 | 0.08871 | 0.193548 | 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 |
66d782ded4c7ccc8a3d71f293db68e55b75d3fe5 | 19,517 | py | Python | src/python/director/polarisplatformplanner.py | EulerWong/director | e30a56ba3a3bac82216adb0f8cc29d1fae8cb74b | [
"BSD-3-Clause"
] | 3 | 2017-05-25T01:13:06.000Z | 2019-07-21T09:04:51.000Z | src/python/director/polarisplatformplanner.py | EulerWong/director | e30a56ba3a3bac82216adb0f8cc29d1fae8cb74b | [
"BSD-3-Clause"
] | null | null | null | src/python/director/polarisplatformplanner.py | EulerWong/director | e30a56ba3a3bac82216adb0f8cc29d1fae8cb74b | [
"BSD-3-Clause"
] | 5 | 2017-02-22T17:56:52.000Z | 2019-07-21T09:04:53.000Z | import os
import sys
import vtkAll as vtk
import math
import time
import types
import functools
import numpy as np
from director import transformUtils
from director import lcmUtils
from director.timercallback import TimerCallback
from director.asynctaskqueue import AsyncTaskQueue
from director import objectmodel as om... | 43.274945 | 140 | 0.715581 | 1,825 | 19,517 | 7.62137 | 0.252055 | 0.028039 | 0.022 | 0.008052 | 0.21691 | 0.191243 | 0.149615 | 0.120498 | 0.095837 | 0.080523 | 0 | 0.03051 | 0.197264 | 19,517 | 450 | 141 | 43.371111 | 0.85728 | 0.061075 | 0 | 0.14881 | 0 | 0 | 0.038962 | 0.002295 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002976 | 0.113095 | null | null | 0.002976 | 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 |
66d836fd6a986fd79765e90775e9c4ab44fb1464 | 6,264 | py | Python | python/ndcg_eval_server.py | bmilde/ambientsearch | 74bf83a313e19da54a4e44158063041f981424c9 | [
"Apache-2.0"
] | 20 | 2016-04-30T11:24:45.000Z | 2021-11-09T10:39:25.000Z | python/ndcg_eval_server.py | bmilde/ambientsearch | 74bf83a313e19da54a4e44158063041f981424c9 | [
"Apache-2.0"
] | 1 | 2020-09-23T13:36:58.000Z | 2020-09-23T13:36:58.000Z | python/ndcg_eval_server.py | bmilde/ambientsearch | 74bf83a313e19da54a4e44158063041f981424c9 | [
"Apache-2.0"
] | 8 | 2015-10-07T13:40:36.000Z | 2019-08-07T06:45:24.000Z | import json
import os
import io
import re
from collections import defaultdict
import flask
from flask import Flask
app = Flask(__name__)
#ndcg_eval_dir = "data/ndcg_eval_dir"
origs = {}
needed_judgements = defaultdict(list)
# From http://stackoverflow.com/questions/273192/how-to-check-if-a-directory-exists-and-cre... | 38.906832 | 327 | 0.598499 | 875 | 6,264 | 4.136 | 0.211429 | 0.029014 | 0.021277 | 0.016579 | 0.294557 | 0.252832 | 0.231832 | 0.208069 | 0.188174 | 0.121028 | 0 | 0.012149 | 0.237867 | 6,264 | 160 | 328 | 39.15 | 0.745915 | 0.066252 | 0 | 0.155738 | 0 | 0.040984 | 0.25411 | 0.050685 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057377 | null | null | 0.065574 | 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 |
66defca06141c1e157b9bf9eadeb91c63871feb1 | 328 | py | Python | manage.py | like-ycy/mofang_api | 78683084f63323d93a5997571125f16eafe08079 | [
"MIT"
] | null | null | null | manage.py | like-ycy/mofang_api | 78683084f63323d93a5997571125f16eafe08079 | [
"MIT"
] | null | null | null | manage.py | like-ycy/mofang_api | 78683084f63323d93a5997571125f16eafe08079 | [
"MIT"
] | null | null | null | from application import celery
from application import init_app, Flask
app: Flask = init_app("application.settings.dev")
@celery.task(name="send_sms")
def send_sms(mobile: str):
"""占用celery导包,不然代码格式化把导包删除了,shell启动不了celery"""
print("发送短信~")
if __name__ == '__main__':
app.run()
send_sms.delay("188888... | 20.5 | 50 | 0.719512 | 41 | 328 | 5.439024 | 0.634146 | 0.09417 | 0.188341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039007 | 0.140244 | 328 | 15 | 51 | 21.866667 | 0.751773 | 0.121951 | 0 | 0 | 0 | 0 | 0.198582 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0.111111 | 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 |
66ea54d819d16a6534b6d53f7f36fddb4808b3d9 | 512 | py | Python | tests/test_study_queue_schema.py | patrickayoup/pybunpro | 961270c256b0068b97d2cb6b68f4f376a15d24b4 | [
"MIT"
] | 1 | 2019-05-21T17:37:13.000Z | 2019-05-21T17:37:13.000Z | tests/test_study_queue_schema.py | patrickayoup/pybunpro | 961270c256b0068b97d2cb6b68f4f376a15d24b4 | [
"MIT"
] | 16 | 2019-05-09T12:30:50.000Z | 2021-02-02T22:17:24.000Z | tests/test_study_queue_schema.py | patrickayoup/pybunpro | 961270c256b0068b97d2cb6b68f4f376a15d24b4 | [
"MIT"
] | null | null | null | from pybunpro import StudyQueueSchema
class TestStudyQueueSchema(object):
def test_dump(self, study_queue, study_queue_dict):
schema = StudyQueueSchema()
result, errors = schema.dump(study_queue)
assert errors == dict()
assert result == study_queue_dict
def test_load(self, s... | 26.947368 | 55 | 0.681641 | 57 | 512 | 5.877193 | 0.333333 | 0.238806 | 0.167164 | 0.113433 | 0.632836 | 0.632836 | 0.632836 | 0.40597 | 0.40597 | 0.40597 | 0 | 0 | 0.238281 | 512 | 18 | 56 | 28.444444 | 0.858974 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.333333 | 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 |
dd01e43299105b7de8c8f1c505961f458bb41eab | 1,217 | py | Python | 2day/Dict02.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | 2day/Dict02.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | 2day/Dict02.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | # Dict02.py
a = {'사과' : 'apple',
'포도' : 'grape',
'바나나' : 'banana',
'컵' : 'cup',
'물' : 'water'}
a['강'] = 'river'
print(a)
a['자바'] = 'Java'
a.pop('강') # 강 지우기
print(a)
del a['자바']
print(a) # 자바 지우기
# keys에서 바나나가 존재하는지 궁금
print("바나나" in a)
# values에서 grape 존재하는지 궁금
print('grape' in a.values())... | 11.373832 | 46 | 0.520953 | 209 | 1,217 | 3.023923 | 0.421053 | 0.123418 | 0.06962 | 0.037975 | 0.041139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007543 | 0.237469 | 1,217 | 106 | 47 | 11.481132 | 0.673491 | 0.185703 | 0 | 0.205128 | 0 | 0 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.487179 | 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 |
dd0421b96dd61d0278dd0a1a74bcc29f0ba3b56e | 693 | py | Python | desafio075b.py | Darlingcris/Desafios-Python | 43dd1c9ee336482834007c515e7cf327a7c84d44 | [
"MIT"
] | null | null | null | desafio075b.py | Darlingcris/Desafios-Python | 43dd1c9ee336482834007c515e7cf327a7c84d44 | [
"MIT"
] | null | null | null | desafio075b.py | Darlingcris/Desafios-Python | 43dd1c9ee336482834007c515e7cf327a7c84d44 | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia quatro valores pelo teclado e guarde-os em uma tupla. No final, mostre:
#A) Quantas vezes apareceu o valor 9.
#B) Em que posição foi digitado o primeiro valor 3.
#C) Quais foram os números pares.
valores=tuple(int(input("Digite um numero: ")) for n in range(1,5))
print(f"Os valores ... | 30.130435 | 105 | 0.681097 | 123 | 693 | 3.845528 | 0.536585 | 0.05074 | 0.02537 | 0.063425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024605 | 0.178932 | 693 | 23 | 106 | 30.130435 | 0.804921 | 0.318903 | 0 | 0 | 0 | 0 | 0.512821 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
dd0be9caf929b6faa46985d662e06e3f27896bad | 1,284 | py | Python | communities/migrations/0002_auto_20190806_1718.py | sorinsinz/Community-Based-Forum-Api-with-Django | 43d7c1e00b754b397499b6365e65e02476e4164b | [
"MIT"
] | 5 | 2018-09-19T10:59:32.000Z | 2019-09-14T08:41:30.000Z | communities/migrations/0002_auto_20190806_1718.py | pablo-moreno/Community-Based-Forum-Api-with-Django | 43d7c1e00b754b397499b6365e65e02476e4164b | [
"MIT"
] | 1 | 2020-02-11T23:12:28.000Z | 2020-02-11T23:12:28.000Z | communities/migrations/0002_auto_20190806_1718.py | sorinsinz/Community-Based-Forum-Api-with-Django | 43d7c1e00b754b397499b6365e65e02476e4164b | [
"MIT"
] | 2 | 2018-12-16T12:14:34.000Z | 2019-07-17T07:01:34.000Z | # Generated by Django 2.2 on 2019-08-06 15:18
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),
('commun... | 32.923077 | 125 | 0.647975 | 134 | 1,284 | 6.014925 | 0.365672 | 0.074442 | 0.099256 | 0.130273 | 0.508685 | 0.480149 | 0.430521 | 0.373449 | 0.246898 | 0.246898 | 0 | 0.018538 | 0.243769 | 1,284 | 38 | 126 | 33.789474 | 0.811535 | 0.033489 | 0 | 0.387097 | 1 | 0 | 0.12268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.225806 | 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 |
dd1443914a90437c7efd7914c2a71a18a54b4088 | 5,017 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/shader_image_load_store.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/shader_image_load_store.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/ARB/shader_image_load_store.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | 59.72619 | 124 | 0.881204 | 863 | 5,017 | 4.439166 | 0.196987 | 0.050117 | 0.057426 | 0.103367 | 0.605064 | 0.306186 | 0.085095 | 0.021404 | 0 | 0 | 0 | 0.075758 | 0.02651 | 5,017 | 83 | 125 | 60.445783 | 0.70864 | 0.019932 | 0 | 0.025316 | 1 | 0 | 0.34277 | 0.287984 | 0 | 0 | 0.088798 | 0 | 0 | 1 | 0.037975 | false | 0.025316 | 0.075949 | 0.012658 | 0.126582 | 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 |
dd1f88491cbca2a2d643eb09095a2236448e82ba | 2,486 | py | Python | HelloLeap.py | KanaadPathak/SimpleTracker-v0.1 | 92c9c23807f14755a3611e05a97f26431019db5e | [
"MIT"
] | null | null | null | HelloLeap.py | KanaadPathak/SimpleTracker-v0.1 | 92c9c23807f14755a3611e05a97f26431019db5e | [
"MIT"
] | null | null | null | HelloLeap.py | KanaadPathak/SimpleTracker-v0.1 | 92c9c23807f14755a3611e05a97f26431019db5e | [
"MIT"
] | null | null | null | import Leap, sys, thread, time
from Leap import CircleGesture, KeyTapGesture, ScreenTapGesture, SwipeGesture
import matplotlib.pyplot as plt
import numpy as np
directionList = []
totalFrames = 0
def plotGraph ():
print directionList
global totalFrames
print totalFrames
i=0
while i < t... | 29.247059 | 91 | 0.633548 | 275 | 2,486 | 5.6 | 0.472727 | 0.016234 | 0.05974 | 0.07013 | 0.102597 | 0.102597 | 0.053247 | 0 | 0 | 0 | 0 | 0.003889 | 0.275945 | 2,486 | 84 | 92 | 29.595238 | 0.851667 | 0.155672 | 0 | 0.036364 | 0 | 0 | 0.113217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.072727 | null | null | 0.145455 | 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 |
dd252c7c128e8b7e2ed8effa346e7537a5d43614 | 1,070 | py | Python | setup.py | colincsl/StructuredModels | 5f0ea503babf6b741555b3c42bb9c38b5ac641d5 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2018-02-13T15:08:26.000Z | 2018-02-13T15:08:26.000Z | setup.py | colincsl/StructuredModels | 5f0ea503babf6b741555b3c42bb9c38b5ac641d5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | setup.py | colincsl/StructuredModels | 5f0ea503babf6b741555b3c42bb9c38b5ac641d5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null |
'''
Configure:
python setup.py build
StructuredModels
Colin Lea
2013
'''
from distutils.core import setup
# from setuptools import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np
# ext_modules = [
# Extension("pyKinectTools_algs_Dijkstras", ["pyKinectToo... | 23.26087 | 127 | 0.67757 | 118 | 1,070 | 5.966102 | 0.59322 | 0.056818 | 0.042614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006682 | 0.160748 | 1,070 | 45 | 128 | 23.777778 | 0.777283 | 0.552336 | 0 | 0 | 0 | 0 | 0.221978 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd2769003f15a7574aca2e327e17f54bcdff9bc7 | 4,975 | py | Python | gary/potential/tests/test_all_builtin.py | adrn/gary-old | 065b371534baa03deeb860893640068d90ba5881 | [
"MIT"
] | null | null | null | gary/potential/tests/test_all_builtin.py | adrn/gary-old | 065b371534baa03deeb860893640068d90ba5881 | [
"MIT"
] | null | null | null | gary/potential/tests/test_all_builtin.py | adrn/gary-old | 065b371534baa03deeb860893640068d90ba5881 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Test the builtin CPotential classes
"""
from __future__ import absolute_import, unicode_literals, division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Third-party
import numpy as np
import astropy.units as u
import pytest
# This project
from ..core import CompositePotenti... | 34.79021 | 82 | 0.594573 | 646 | 4,975 | 4.518576 | 0.249226 | 0.018499 | 0.015416 | 0.013703 | 0.380267 | 0.322028 | 0.261733 | 0.261733 | 0.261733 | 0.254197 | 0 | 0.096531 | 0.200402 | 4,975 | 142 | 83 | 35.035211 | 0.637255 | 0.041206 | 0 | 0.191489 | 0 | 0 | 0.009912 | 0.005632 | 0 | 0 | 0 | 0 | 0.031915 | 1 | 0.042553 | false | 0.021277 | 0.085106 | 0 | 0.691489 | 0.010638 | 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 |
dd2bd9f1a85788cb968e2c03f825b79e6dffa606 | 1,714 | py | Python | scripts/lib/LedStates.py | ixent/qosa-snee | cc103a2f50262cad1927976a0b7f99554362581d | [
"BSD-3-Clause"
] | 1 | 2019-01-19T06:45:42.000Z | 2019-01-19T06:45:42.000Z | scripts/lib/LedStates.py | ixent/qosa-snee | cc103a2f50262cad1927976a0b7f99554362581d | [
"BSD-3-Clause"
] | null | null | null | scripts/lib/LedStates.py | ixent/qosa-snee | cc103a2f50262cad1927976a0b7f99554362581d | [
"BSD-3-Clause"
] | 3 | 2017-03-08T17:42:16.000Z | 2021-05-28T16:01:30.000Z | import sys, string, os, re, fileinput, FrequencyLib
class LedStates(object):
def __init__(self, site, verbose = False):
self.site = site
self.counts = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
self.verbose = verbose
def parseLine(self,line):
m = re.search(" (\d+)( +)(\d+)( +)(on|off)( +)(o... | 22.25974 | 78 | 0.606768 | 257 | 1,714 | 4.031128 | 0.287938 | 0.050193 | 0.072394 | 0.092664 | 0.323359 | 0.179537 | 0.179537 | 0.138996 | 0.026062 | 0.026062 | 0 | 0.038433 | 0.225788 | 1,714 | 76 | 79 | 22.552632 | 0.742276 | 0.134189 | 0 | 0.322034 | 0 | 0.016949 | 0.068382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016949 | null | null | 0.050847 | 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 |
dd3077df16a941ddda49c2b816a77c0632ed1521 | 471 | py | Python | bqskit/ir/opt/minimizers/lbfgs.py | jkalloor3/bqskit | ad34a6eae3c0e62d2bd960cd4cd841ba8e845811 | [
"BSD-3-Clause-LBNL"
] | 13 | 2021-05-26T21:32:26.000Z | 2022-03-15T17:48:10.000Z | bqskit/ir/opt/minimizers/lbfgs.py | jkalloor3/bqskit | ad34a6eae3c0e62d2bd960cd4cd841ba8e845811 | [
"BSD-3-Clause-LBNL"
] | 20 | 2021-05-26T20:17:15.000Z | 2022-02-27T20:04:10.000Z | bqskit/ir/opt/minimizers/lbfgs.py | jkalloor3/bqskit | ad34a6eae3c0e62d2bd960cd4cd841ba8e845811 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-10-05T16:00:47.000Z | 2021-10-08T01:30:06.000Z | """This module implements the LBFGSMinimizer class."""
from __future__ import annotations
import logging
from bqskitrs import LBFGSMinimizerNative
from bqskit.ir.opt.minimizer import Minimizer
_logger = logging.getLogger(__name__)
class LBFGSMinimizer(LBFGSMinimizerNative, Minimizer):
"""
The LBFGSMinimiz... | 23.55 | 72 | 0.77707 | 53 | 471 | 6.735849 | 0.641509 | 0.142857 | 0.123249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161359 | 471 | 19 | 73 | 24.789474 | 0.903797 | 0.422505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.833333 | 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 |
dd307b7c32c75ed47c9be2c63bc256166d682219 | 493 | py | Python | routemaster/migrations/versions/e1fec9622785_add_metadata_triggers_processed_flag_to_.py | thread/routemaster | 1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41 | [
"MIT"
] | 13 | 2018-01-16T14:26:27.000Z | 2022-03-19T12:43:17.000Z | routemaster/migrations/versions/e1fec9622785_add_metadata_triggers_processed_flag_to_.py | thread/routemaster | 1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41 | [
"MIT"
] | 86 | 2018-01-03T17:00:56.000Z | 2021-12-06T12:58:06.000Z | routemaster/migrations/versions/e1fec9622785_add_metadata_triggers_processed_flag_to_.py | thread/routemaster | 1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41 | [
"MIT"
] | 3 | 2018-02-21T23:13:45.000Z | 2022-03-19T12:43:23.000Z | """
add metadata_triggers_processed flag to labels
Revision ID: e1fec9622785
Revises: 3a6f69dca9d7
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'e1fec9622785'
down_revision = '3a6f69dca9d7'
branch_labels = None
depends_on = None
def upgrade():
op.add_co... | 18.259259 | 63 | 0.730223 | 58 | 493 | 6.017241 | 0.568966 | 0.137536 | 0.2149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06846 | 0.170385 | 493 | 26 | 64 | 18.961538 | 0.784841 | 0.273834 | 0 | 0 | 0 | 0 | 0.257143 | 0.154286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd37e4e86b58133d352c0a9fecaf3446773de7ff | 247 | py | Python | basic_grammar/set_usecase.py | OnoYuta/python_programing | 5d191bef5666c0a826f6daa0bd45bc9dd6603d59 | [
"MIT"
] | null | null | null | basic_grammar/set_usecase.py | OnoYuta/python_programing | 5d191bef5666c0a826f6daa0bd45bc9dd6603d59 | [
"MIT"
] | null | null | null | basic_grammar/set_usecase.py | OnoYuta/python_programing | 5d191bef5666c0a826f6daa0bd45bc9dd6603d59 | [
"MIT"
] | null | null | null | # 共通の要素を取り出す
my_frinends = {'A', 'C', 'D'}
A_frinends = {'B', 'D', 'E', 'F'}
print(my_frinends & A_frinends)
# {'D'}
# 種類を調べる
fruits = ['apple', 'banana', 'apple', 'banana', 'orange']
kind = set(fruits)
print(kind)
# {'apple', 'banana', 'orange'} | 22.454545 | 57 | 0.582996 | 33 | 247 | 4.242424 | 0.515152 | 0.235714 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1417 | 247 | 11 | 58 | 22.454545 | 0.660377 | 0.214575 | 0 | 0 | 0 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
dd384999063ca21a8f3c7fac4429d2471084c8c5 | 291 | py | Python | xxx.sikuli/xxx.py | glenlivet/sikulix | 1176b7547a7f28175fe76e7f9b9d07d3fc22e683 | [
"MIT"
] | null | null | null | xxx.sikuli/xxx.py | glenlivet/sikulix | 1176b7547a7f28175fe76e7f9b9d07d3fc22e683 | [
"MIT"
] | null | null | null | xxx.sikuli/xxx.py | glenlivet/sikulix | 1176b7547a7f28175fe76e7f9b9d07d3fc22e683 | [
"MIT"
] | null | null | null | for i in range(4):
moveMouse(reg, 100 + ran_x, -75 - ran_y)
if i%2 == 0:
ran_x = - ran_x
ran_y = - ran_y
else:
ran_x = randv(0, 20)
ran_y = randv(0, 15)
clickCurrentPoint(reg)
wait(random.uniform(1.5, 2.0))
print Env.getMouseLocation() | 26.454545 | 44 | 0.546392 | 48 | 291 | 3.145833 | 0.583333 | 0.10596 | 0.092715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090452 | 0.316151 | 291 | 11 | 45 | 26.454545 | 0.668342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd387752205dba6e5fe070960aa7b176ecf147cc | 3,412 | py | Python | core/migrations/0007_endpoint_endpointdatasource_endpointdatasourcecolumn_endpointheader_endpointparameter.py | mark-barrett/RESTBroker | d9b0a3574d2970443fdf40c70ab9ceb8d72614f4 | [
"MIT"
] | null | null | null | core/migrations/0007_endpoint_endpointdatasource_endpointdatasourcecolumn_endpointheader_endpointparameter.py | mark-barrett/RESTBroker | d9b0a3574d2970443fdf40c70ab9ceb8d72614f4 | [
"MIT"
] | null | null | null | core/migrations/0007_endpoint_endpointdatasource_endpointdatasourcecolumn_endpointheader_endpointparameter.py | mark-barrett/RESTBroker | d9b0a3574d2970443fdf40c70ab9ceb8d72614f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-11-28 14:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0006_databasecolumn'),
]
operations = [
... | 43.189873 | 114 | 0.555686 | 322 | 3,412 | 5.729814 | 0.270186 | 0.097561 | 0.053659 | 0.104065 | 0.569648 | 0.538211 | 0.538211 | 0.538211 | 0.538211 | 0.538211 | 0 | 0.017464 | 0.295135 | 3,412 | 78 | 115 | 43.74359 | 0.749688 | 0.01993 | 0 | 0.549296 | 1 | 0 | 0.159533 | 0.007183 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042254 | 0 | 0.084507 | 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 |
dd38f27aa6390c559abf86a8d2a90539532ae038 | 6,397 | py | Python | spec_seg.py | AlfredYang1986/phcleanning | 7aea2c09eff408ac1c3542ffef08602a16cb93b8 | [
"MIT"
] | null | null | null | spec_seg.py | AlfredYang1986/phcleanning | 7aea2c09eff408ac1c3542ffef08602a16cb93b8 | [
"MIT"
] | null | null | null | spec_seg.py | AlfredYang1986/phcleanning | 7aea2c09eff408ac1c3542ffef08602a16cb93b8 | [
"MIT"
] | 1 | 2021-01-04T05:29:55.000Z | 2021-01-04T05:29:55.000Z | # -*- coding: utf-8 -*-
"""alfredyang@pharbers.com.
功能描述:one hot encoding for manifacture name
"""
import os
from pyspark.sql import SparkSession
from dataparepare import *
from interfere import *
from pdu_feature import *
from pyspark.sql.types import *
from pyspark.sql.functions import when
from pyspark.sql.functi... | 42.085526 | 169 | 0.66453 | 944 | 6,397 | 4.323093 | 0.243644 | 0.027444 | 0.075472 | 0.097035 | 0.413624 | 0.276648 | 0.197991 | 0.155844 | 0.105856 | 0.088704 | 0 | 0.02264 | 0.10927 | 6,397 | 151 | 170 | 42.364238 | 0.69305 | 0.652024 | 0 | 0 | 0 | 0.02 | 0.242664 | 0.143456 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.4 | 0.02 | 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 |
dd426d4e563a4047b3a90bfb2b8245333fe6c6b5 | 7,309 | py | Python | src/tests/test_board.py | marmelab/pentago-python | 63cf00b8cf7080c3c9b0b7c1435aefaedfe6100c | [
"MIT"
] | 5 | 2018-09-03T08:04:08.000Z | 2021-06-21T14:59:29.000Z | src/tests/test_board.py | marmelab/pentago-python | 63cf00b8cf7080c3c9b0b7c1435aefaedfe6100c | [
"MIT"
] | 4 | 2018-09-04T13:53:05.000Z | 2021-01-28T17:49:53.000Z | src/tests/test_board.py | marmelab/pentago-python | 63cf00b8cf7080c3c9b0b7c1435aefaedfe6100c | [
"MIT"
] | 1 | 2021-01-31T19:17:52.000Z | 2021-01-31T19:17:52.000Z | import unittest
from unittest_data_provider import data_provider
import sys
import numpy as np
from board import *
from tests.test_utils.generate_board import generate_board_and_add_position, generate_empty_board, generate_full_board, generate_board_and_add_positions
from tests.test_utils.print_board import print_boa... | 38.671958 | 152 | 0.653988 | 993 | 7,309 | 4.393756 | 0.108761 | 0.016502 | 0.102682 | 0.121934 | 0.629842 | 0.555123 | 0.453587 | 0.391015 | 0.26083 | 0.250974 | 0 | 0.038112 | 0.217403 | 7,309 | 188 | 153 | 38.87766 | 0.72465 | 0 | 0 | 0.18705 | 1 | 0 | 0.017786 | 0 | 0 | 0 | 0 | 0 | 0.100719 | 1 | 0.086331 | false | 0 | 0.05036 | 0 | 0.201439 | 0.093525 | 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 |
dd44eec28babdf1a8ccfd3eef040420b6897d3d9 | 620 | py | Python | sac/tests/categorical_policy_test.py | sandipan1/robo_rl | 3bcb7caabeba71dd747fadf2355ac42408b7f340 | [
"MIT"
] | 5 | 2018-10-16T03:48:02.000Z | 2021-10-01T08:58:05.000Z | sac/tests/categorical_policy_test.py | sandipan1/robo_rl | 3bcb7caabeba71dd747fadf2355ac42408b7f340 | [
"MIT"
] | 1 | 2018-10-17T16:19:14.000Z | 2018-10-31T06:19:30.000Z | sac/tests/categorical_policy_test.py | sandipan1/robo_rl | 3bcb7caabeba71dd747fadf2355ac42408b7f340 | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as torchfunc
from robo_rl.common.networks.linear_network import LinearCategoricalNetwork
from robo_rl.sac.categorical_policy import LinearCategoricalPolicy
torch.manual_seed(0)
action_dim = [2, 3, 4]
# net = LinearCategoricalNetwork([5, 5, action_dim], activation_function=torchf... | 31 | 109 | 0.762903 | 91 | 620 | 5.065934 | 0.494505 | 0.058568 | 0.043384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030466 | 0.1 | 620 | 19 | 110 | 32.631579 | 0.795699 | 0.306452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 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 |
dd4c52649d937300ca2c1e644e3d02a0627ecde5 | 1,082 | py | Python | tests/__init__.py | bbengfort/georgetown-twitter | bc17e95bd23b76186c605ae7b7b1792b21535bd6 | [
"MIT"
] | 2 | 2015-03-28T16:54:57.000Z | 2015-05-04T16:55:55.000Z | tests/__init__.py | georgetown-analytics/chirpy | bc17e95bd23b76186c605ae7b7b1792b21535bd6 | [
"MIT"
] | null | null | null | tests/__init__.py | georgetown-analytics/chirpy | bc17e95bd23b76186c605ae7b7b1792b21535bd6 | [
"MIT"
] | 6 | 2015-02-14T14:04:12.000Z | 2020-03-04T01:30:02.000Z | # tests
# Testing for the chirpy package
#
# Author: Benjamin Bengfort <bb830@georgetown.edu>
# Created: Thu Mar 27 16:49:40 2014 -0400
#
# Copyright (C) 2014 Georgetown University
# For license information, see LICENSE.txt
#
# ID: __init__.py [] bb830@georgetown.edu $
"""
Testing for the chirpy package
"""
######... | 25.162791 | 74 | 0.45841 | 95 | 1,082 | 5.157895 | 0.684211 | 0.055102 | 0.053061 | 0.077551 | 0.106122 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03341 | 0.197782 | 1,082 | 42 | 75 | 25.761905 | 0.531106 | 0.35305 | 0 | 0 | 0 | 0 | 0.103858 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.6 | 0 | 0.9 | 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 |
dd60d7e3802a6e209cbf04b76fe8faa6fa72cf25 | 288 | py | Python | src/data/load_data.py | CamCairns/house_price_model | c7abb3449fef67cfe673bccb2abc627b1cab9dcb | [
"MIT"
] | null | null | null | src/data/load_data.py | CamCairns/house_price_model | c7abb3449fef67cfe673bccb2abc627b1cab9dcb | [
"MIT"
] | 1 | 2019-08-23T23:59:05.000Z | 2019-08-23T23:59:05.000Z | src/data/load_data.py | CamCairns/house_price_model | c7abb3449fef67cfe673bccb2abc627b1cab9dcb | [
"MIT"
] | null | null | null | import pandas as pd
def load_data():
df = pd.read_csv("../data/raw/train.csv")
df['GarageYrBlt'] = df['GarageYrBlt'].fillna(df['GarageYrBlt'].mode()[0])
feats = df.corrwith(df['SalePrice']).sort_values(ascending=False).index[1:10]
X = df[feats]
y = df['SalePrice']
return X, y | 20.571429 | 78 | 0.666667 | 45 | 288 | 4.2 | 0.644444 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01581 | 0.121528 | 288 | 14 | 79 | 20.571429 | 0.731225 | 0 | 0 | 0 | 0 | 0 | 0.249135 | 0.072664 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
dd681ccb231bd48bb3f935816ae086c5a051c7e4 | 5,839 | py | Python | apps/validations/models.py | danyBautista/sit-system | 24cdeb5442ca8ee0be4ca3ae087370f3815afb86 | [
"Apache-2.0"
] | null | null | null | apps/validations/models.py | danyBautista/sit-system | 24cdeb5442ca8ee0be4ca3ae087370f3815afb86 | [
"Apache-2.0"
] | null | null | null | apps/validations/models.py | danyBautista/sit-system | 24cdeb5442ca8ee0be4ca3ae087370f3815afb86 | [
"Apache-2.0"
] | 1 | 2022-02-16T22:15:41.000Z | 2022-02-16T22:15:41.000Z | from xmlrpc.client import boolean
from django.db import models
from datetime import datetime, date, timedelta
from apps.people.models import people
from apps.vehicles.models import vehicles
from apps.certify.models import soat, citv, src, svct
# Create your models here.
class routes(models.Model):
CONCESSIONS = ... | 43.574627 | 111 | 0.714848 | 708 | 5,839 | 5.724576 | 0.216102 | 0.053294 | 0.06415 | 0.083888 | 0.410067 | 0.3585 | 0.3585 | 0.3094 | 0.178633 | 0.178633 | 0 | 0.012215 | 0.15876 | 5,839 | 134 | 112 | 43.574627 | 0.812907 | 0.012673 | 0 | 0.213675 | 0 | 0 | 0.048759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042735 | false | 0 | 0.051282 | 0.042735 | 0.820513 | 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 |
dd6e4de5fc035d816d688405e83bd09437b376a5 | 1,083 | py | Python | django_lifestream/utils.py | SerCna/django-lifestream | 16eabf82bace788dea6279db04ba7e6ace4ff205 | [
"BSD-3-Clause"
] | null | null | null | django_lifestream/utils.py | SerCna/django-lifestream | 16eabf82bace788dea6279db04ba7e6ace4ff205 | [
"BSD-3-Clause"
] | null | null | null | django_lifestream/utils.py | SerCna/django-lifestream | 16eabf82bace788dea6279db04ba7e6ace4ff205 | [
"BSD-3-Clause"
] | null | null | null | import os
import os.path
from cPickle import load
def validate_sources(sources):
"""
Checks that all sources have the required format:
{
'link': <link to the feed>,
'class': <class to be used for entries>,
'content_type': <for example application/atom+xml>,
}
If a source doesn't have at least these 3 at... | 24.066667 | 112 | 0.722992 | 161 | 1,083 | 4.745342 | 0.509317 | 0.031414 | 0.04712 | 0.039267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001103 | 0.162512 | 1,083 | 45 | 113 | 24.066667 | 0.841235 | 0 | 0 | 0.071429 | 0 | 0 | 0.201502 | 0.057572 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.035714 | 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 |
dd76cb2a23fbb44ad64c1c526b4e6dcf4adc712f | 483 | py | Python | server/artisticmovements/migrations/0003_alter_artwork_art_movement.py | ligiapopescu/artisticmovements | db94b4f203e071e6f1a5671978a47178a55c3247 | [
"Unlicense"
] | null | null | null | server/artisticmovements/migrations/0003_alter_artwork_art_movement.py | ligiapopescu/artisticmovements | db94b4f203e071e6f1a5671978a47178a55c3247 | [
"Unlicense"
] | null | null | null | server/artisticmovements/migrations/0003_alter_artwork_art_movement.py | ligiapopescu/artisticmovements | db94b4f203e071e6f1a5671978a47178a55c3247 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.2.5 on 2021-10-17 10:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('artisticmovements', '0002_auto_20211017_1102'),
]
operations = [
migrations.AlterField(
model_name='artwork',
name='... | 25.421053 | 130 | 0.650104 | 52 | 483 | 5.923077 | 0.788462 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084932 | 0.244306 | 483 | 18 | 131 | 26.833333 | 0.758904 | 0.093168 | 0 | 0 | 1 | 0 | 0.291284 | 0.119266 | 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 |
dd7fe49be02ba3fe73d8ab9cd91ae7be701ea9c4 | 1,487 | py | Python | api/src/model/local.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | 18 | 2020-04-12T19:43:24.000Z | 2021-11-14T17:35:34.000Z | api/src/model/local.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | 6 | 2020-04-12T22:56:15.000Z | 2020-04-17T19:06:41.000Z | api/src/model/local.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | null | null | null | import sqlalchemy as db
from sqlalchemy.orm import relationship
from src.db import helper
from src.db.sqlalchemy import Base
from src.model.category import Category
class Local(Base):
__tablename__ = 'compra_local_local'
id = db.Column(db.Integer, helper.get_sequence(__tablename__), primary_key=True)
... | 33.795455 | 86 | 0.67384 | 190 | 1,487 | 5.110526 | 0.3 | 0.098867 | 0.123584 | 0.082389 | 0.268795 | 0.133883 | 0.07621 | 0 | 0 | 0 | 0 | 0.011188 | 0.218561 | 1,487 | 43 | 87 | 34.581395 | 0.824441 | 0 | 0 | 0 | 0 | 0 | 0.030262 | 0.018157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.142857 | 0.028571 | 0.628571 | 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 |
dd8073b7b6835a9fb24e72f3b6b7eeb66339de6d | 9,663 | py | Python | des_algorithm.py | jeenn85/DES_encryptor | 753729c0bdc1e4e064b99b0065e7642da5d99bbe | [
"MIT"
] | null | null | null | des_algorithm.py | jeenn85/DES_encryptor | 753729c0bdc1e4e064b99b0065e7642da5d99bbe | [
"MIT"
] | null | null | null | des_algorithm.py | jeenn85/DES_encryptor | 753729c0bdc1e4e064b99b0065e7642da5d99bbe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Initial permutation matrix
PI = [58, 50, 42, 34, 26, 18, 10, 2,
60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6,
64, 56, 48, 40, 32, 24, 16, 8,
57, 49, 41, 33, 25, 17, 9, 1,
59, 51, 43, 35, 27, 19, 11, 3,
61, 53, 45, 37, 29, 21, 13, 5,
6... | 37.894118 | 119 | 0.513609 | 1,757 | 9,663 | 2.770063 | 0.137735 | 0.004109 | 0.004931 | 0.004931 | 0.113211 | 0.06842 | 0.05075 | 0.05075 | 0.011095 | 0 | 0 | 0.207202 | 0.321743 | 9,663 | 254 | 120 | 38.043307 | 0.535398 | 0.206458 | 0 | 0.080645 | 0 | 0 | 0.012579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086022 | false | 0.016129 | 0 | 0 | 0.166667 | 0.005376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd835e22de1a56e3e114c6f88bbb1aea156ec43b | 1,408 | py | Python | LeftSwitch.py | RephenSoss/python | 2a3f71caab958ae4c53a6e2242d2b9283986148b | [
"MIT"
] | 3 | 2016-08-19T17:45:34.000Z | 2021-08-15T03:42:16.000Z | LeftSwitch.py | RephenSoss/python | 2a3f71caab958ae4c53a6e2242d2b9283986148b | [
"MIT"
] | 2 | 2018-08-03T20:48:07.000Z | 2019-01-09T19:31:29.000Z | LeftSwitch.py | RephenSoss/python | 2a3f71caab958ae4c53a6e2242d2b9283986148b | [
"MIT"
] | 2 | 2018-08-03T17:55:32.000Z | 2022-03-31T14:20:57.000Z | __author__ = 'DHICKMA'
import arcpy
table = "C:\\_GRID\\__V15\\V15_Final\\V15_FinalDatasets.gdb\\BAXYCRFCFDRSTLMP_ROADWAY_SUMMARY"
rows = arcpy.UpdateCursor(table)
for row in rows:
if str(row.RTE_ORDER_ID).count("-") < 2:
pass
elif str(row.RTE_ORDER_ID).split("-")[1] not in ['LG', 'MG', 'XG', 'PG', ... | 28.16 | 94 | 0.59375 | 189 | 1,408 | 4.026455 | 0.243386 | 0.078844 | 0.102497 | 0.086728 | 0.29435 | 0.157687 | 0.157687 | 0 | 0 | 0 | 0 | 0.008421 | 0.325284 | 1,408 | 50 | 95 | 28.16 | 0.792632 | 0 | 0 | 0.051282 | 0 | 0 | 0.073101 | 0.059617 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051282 | 0.025641 | 0 | 0.025641 | 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 |
dd862c2f669a5bc47808e475a12940da15a83ff2 | 1,365 | py | Python | src/main/tools/vector.py | lukaszmichalskii/Flocking-Simulation | eec7ad7c1b6a8c593367e11b68f9fac414f8efe3 | [
"MIT"
] | null | null | null | src/main/tools/vector.py | lukaszmichalskii/Flocking-Simulation | eec7ad7c1b6a8c593367e11b68f9fac414f8efe3 | [
"MIT"
] | null | null | null | src/main/tools/vector.py | lukaszmichalskii/Flocking-Simulation | eec7ad7c1b6a8c593367e11b68f9fac414f8efe3 | [
"MIT"
] | null | null | null | from __future__ import annotations
import math
class Vector:
"""Class of 2D vector objects known from linear algebra"""
def __init__(self, x: float = 0, y: float = 0):
self.x = x
self.y = y
def add(self, vector: Vector):
self.x += vector.x
self.y += vector.y
def sub... | 25.277778 | 97 | 0.569963 | 178 | 1,365 | 4.320225 | 0.241573 | 0.058518 | 0.023407 | 0.052016 | 0.244473 | 0.244473 | 0.176853 | 0.111834 | 0.111834 | 0.111834 | 0 | 0.01797 | 0.30696 | 1,365 | 53 | 98 | 25.754717 | 0.794926 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.289474 | false | 0 | 0.052632 | 0.052632 | 0.447368 | 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 |
dd8752191fd37fef694b1830863cd68d10e6ccc5 | 989 | py | Python | setup.py | fizista/django-split-settings | cd0cbd65a6b09e00a043c827eb6e699aa4e2b603 | [
"BSD-3-Clause"
] | null | null | null | setup.py | fizista/django-split-settings | cd0cbd65a6b09e00a043c827eb6e699aa4e2b603 | [
"BSD-3-Clause"
] | null | null | null | setup.py | fizista/django-split-settings | cd0cbd65a6b09e00a043c827eb6e699aa4e2b603 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from split_settings import __version__
setup(name='django-split-settings',
version=__version__,
description='Organize Django settings into multiple files and directories. '
'Easily override and modify settings. Use wildcards a... | 35.321429 | 82 | 0.651163 | 106 | 989 | 5.924528 | 0.707547 | 0.062102 | 0.06051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010403 | 0.222447 | 989 | 27 | 83 | 36.62963 | 0.806242 | 0.021234 | 0 | 0 | 0 | 0 | 0.52381 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd8cc8f0afdc7aae849dc835accb4e02de5ebaed | 44,137 | py | Python | data-processing/fec/FECParser.py | MinnPost/minnpost-fec-data-analysis | b0bfd9c8874b16605ebb0c09cf02468481a765ab | [
"MIT"
] | null | null | null | data-processing/fec/FECParser.py | MinnPost/minnpost-fec-data-analysis | b0bfd9c8874b16605ebb0c09cf02468481a765ab | [
"MIT"
] | null | null | null | data-processing/fec/FECParser.py | MinnPost/minnpost-fec-data-analysis | b0bfd9c8874b16605ebb0c09cf02468481a765ab | [
"MIT"
] | null | null | null | # FEC Parser
# By Christopher Schnaars, USA TODAY
# Developed with Python 2.7.2
"""
The purpose of this script is to parse ASCII-28 delimited text files
from the Federal Election Commission (FEC) containing campaign
contribution, expenditure, loan and other data from Form 3 reports filed
by candidate committees, polit... | 54.965131 | 139 | 0.5927 | 4,091 | 44,137 | 6.207529 | 0.23955 | 0.012916 | 0.007797 | 0.013388 | 0.306084 | 0.277417 | 0.248868 | 0.226698 | 0.217759 | 0.208191 | 0 | 0.026761 | 0.314226 | 44,137 | 802 | 140 | 55.033666 | 0.812244 | 0.093776 | 0 | 0.251223 | 0 | 0 | 0.392962 | 0.34615 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026101 | null | null | 0.017945 | 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 |
dd8cd4b7db4915504515a1ba08e51ee2f81a0435 | 3,872 | py | Python | smia/parse_config.py | cukie/SMIA_CUKIE | 0e32f189b32e512ac7f0b01f011f25241dafe601 | [
"MIT"
] | 1 | 2015-05-28T19:09:25.000Z | 2015-05-28T19:09:25.000Z | smia/parse_config.py | cukie/SMIA_CUKIE | 0e32f189b32e512ac7f0b01f011f25241dafe601 | [
"MIT"
] | 18 | 2015-09-28T01:36:05.000Z | 2017-04-09T15:13:56.000Z | smia/parse_config.py | cukie/SMIA-CUKIE | 0e32f189b32e512ac7f0b01f011f25241dafe601 | [
"MIT"
] | 2 | 2017-12-06T18:23:02.000Z | 2021-09-05T11:25:53.000Z | # Author: Gil Cukierman
# gil.cukierman (at) gmail.com
# Creation Date: 5/6/15
# (c) All Rights Reserved
import json
"""
This module contains all the logic for parsing a
configuration file (in json format).
"""
def ParseConfig(config_file):
"""
Takes in a json filename, opens it, and parses
the input into a dicti... | 35.851852 | 114 | 0.741477 | 571 | 3,872 | 4.903678 | 0.315236 | 0.054643 | 0.05 | 0.0675 | 0.198571 | 0.155357 | 0.146429 | 0.131786 | 0.104643 | 0.104643 | 0 | 0.003069 | 0.158574 | 3,872 | 107 | 115 | 36.186916 | 0.856354 | 0.138171 | 0 | 0.042553 | 0 | 0 | 0.39687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021277 | null | null | 0.021277 | 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 |
dd9bfc7df8295464124bb67d35dc31746ebc516c | 1,465 | py | Python | DenizUcgunPY/Car.py | eminkartci/PythonCourse | 89d698199e1b9061b42552bc42ab7fd423ae00e0 | [
"Apache-2.0"
] | null | null | null | DenizUcgunPY/Car.py | eminkartci/PythonCourse | 89d698199e1b9061b42552bc42ab7fd423ae00e0 | [
"Apache-2.0"
] | null | null | null | DenizUcgunPY/Car.py | eminkartci/PythonCourse | 89d698199e1b9061b42552bc42ab7fd423ae00e0 | [
"Apache-2.0"
] | 1 | 2021-07-03T17:21:44.000Z | 2021-07-03T17:21:44.000Z |
class Car:
# constructor
def __init__(self,name,fuel,consumption,passengers,capacity):
self.name = name
self.fuel = fuel
self.consumption = consumption
self.km = 0.0
self.passengers = passengers
self.capacity = capacity
# Behavior
def print_car(sel... | 29.3 | 112 | 0.553584 | 167 | 1,465 | 4.802395 | 0.311377 | 0.069825 | 0.071072 | 0.032419 | 0.042394 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.34198 | 1,465 | 50 | 113 | 29.3 | 0.827801 | 0.062116 | 0 | 0.09375 | 0 | 0.03125 | 0.176946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.34375 | 0 | 0 | 0.21875 | 0.15625 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.