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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f9b002ae03889b2c8f5a644283b3dc6b4864ce8 | 916 | py | Python | bookmarks/books/migrations/0003_auto_20210419_1839.py | borko81/django-social-website | bf45cad5421a753bb5abf263a5a0bae65dd4f969 | [
"MIT"
] | null | null | null | bookmarks/books/migrations/0003_auto_20210419_1839.py | borko81/django-social-website | bf45cad5421a753bb5abf263a5a0bae65dd4f969 | [
"MIT"
] | null | null | null | bookmarks/books/migrations/0003_auto_20210419_1839.py | borko81/django-social-website | bf45cad5421a753bb5abf263a5a0bae65dd4f969 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-19 15:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('books', '0002_rename_authords_book_authors'),
]
operations = [
migrations.AlterField(
model_name=... | 30.533333 | 126 | 0.621179 | 96 | 916 | 5.802083 | 0.447917 | 0.057451 | 0.075404 | 0.118492 | 0.398564 | 0.398564 | 0.247756 | 0.247756 | 0.247756 | 0.247756 | 0 | 0.026316 | 0.253275 | 916 | 29 | 127 | 31.586207 | 0.788012 | 0.046943 | 0 | 0.347826 | 1 | 0 | 0.153846 | 0.037887 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fa09e161696850eb6257f9f0abd10d11638ae0d | 2,851 | py | Python | src/handlers/login.py | lauhuiyik/same-page | decd8b5f45eeca750edfecd4b21a37103553ad9d | [
"MIT"
] | 1 | 2020-05-25T21:32:48.000Z | 2020-05-25T21:32:48.000Z | src/handlers/login.py | lauhuiyik/same-page | decd8b5f45eeca750edfecd4b21a37103553ad9d | [
"MIT"
] | null | null | null | src/handlers/login.py | lauhuiyik/same-page | decd8b5f45eeca750edfecd4b21a37103553ad9d | [
"MIT"
] | null | null | null | ##########
import web
import hmac
from hashlib import sha256
from lib.utils import db, render, etherpad, memcache
from lib.validate import make_cookie
##########
class LoginPage:
def GET(self):
return render('login.html')
def POST(self):
uid = web.input().login_uid
pw = web.input()... | 32.033708 | 70 | 0.54402 | 331 | 2,851 | 4.595166 | 0.410876 | 0.052597 | 0.039448 | 0.044707 | 0.202498 | 0.172255 | 0.172255 | 0.172255 | 0.172255 | 0.117028 | 0 | 0.010795 | 0.382673 | 2,851 | 88 | 71 | 32.397727 | 0.853409 | 0.381971 | 0 | 0.351351 | 0 | 0 | 0.05731 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.054054 | false | 0 | 0.135135 | 0.027027 | 0.297297 | 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 |
8fa2b4c1156f4d4b38f40c9d642c48b15c8c725c | 4,603 | py | Python | build_release.py | TheSoftwareFactory/lokki-wp8 | c132e9244a269f87e61f9846dd2aefa6afe4a90d | [
"Apache-2.0"
] | null | null | null | build_release.py | TheSoftwareFactory/lokki-wp8 | c132e9244a269f87e61f9846dd2aefa6afe4a90d | [
"Apache-2.0"
] | null | null | null | build_release.py | TheSoftwareFactory/lokki-wp8 | c132e9244a269f87e61f9846dd2aefa6afe4a90d | [
"Apache-2.0"
] | 1 | 2018-03-21T01:19:25.000Z | 2018-03-21T01:19:25.000Z | """
Copyright (c) 2014-2015 F-Secure
See LICENSE for details
"""
#! coding: utf-8
import os
import shutil
import time
from os.path import abspath, dirname, basename, join, exists
from scripts import buildutils, code_analysis_to_junit
from scripts import create_ta_package
from optparse import OptionParser
im... | 31.744828 | 119 | 0.587877 | 502 | 4,603 | 5.229084 | 0.326693 | 0.030857 | 0.034286 | 0.04381 | 0.126095 | 0.087238 | 0.025143 | 0 | 0 | 0 | 0 | 0.011108 | 0.295894 | 4,603 | 145 | 120 | 31.744828 | 0.798828 | 0.131436 | 0 | 0.087912 | 0 | 0.010989 | 0.172624 | 0.037066 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010989 | 0.10989 | null | null | 0.054945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fa9e6ac1edb141137b113c2d34e5a9b87121f61 | 1,941 | py | Python | services/core-api/app/api/mines/permits/permit_amendment/models/permit_amendment_document.py | bcgov/mds | 6c427a66a5edb4196222607291adef8fd6677038 | [
"Apache-2.0"
] | 25 | 2018-07-09T19:04:37.000Z | 2022-03-15T17:27:10.000Z | services/core-api/app/api/mines/permits/permit_amendment/models/permit_amendment_document.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 983 | 2018-04-25T20:08:07.000Z | 2022-03-31T21:45:20.000Z | services/core-api/app/api/mines/permits/permit_amendment/models/permit_amendment_document.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 58 | 2018-05-15T22:35:50.000Z | 2021-11-29T19:40:52.000Z | from sqlalchemy.schema import FetchedValue
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.dialects.postgresql import UUID
from app.api.utils.models_mixins import SoftDeleteMixin, AuditMixin, Base
from app.extensions import db
from app.api.constants import PERMIT_EDIT_GROUP, PERMIT_AMENDM... | 42.195652 | 143 | 0.753735 | 237 | 1,941 | 5.860759 | 0.329114 | 0.151188 | 0.073434 | 0.051836 | 0.267819 | 0.215983 | 0.165587 | 0 | 0 | 0 | 0 | 0 | 0.151468 | 1,941 | 45 | 144 | 43.133333 | 0.843352 | 0 | 0 | 0.057143 | 0 | 0 | 0.138073 | 0.096857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.171429 | 0.057143 | 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 | 0 | 1 | 0 | 0 | 1 |
8fbb4996a1d6b7e71753f411f6855acaabe928f5 | 954 | py | Python | r5/tests/test_reproducible.py | afcarl/r5 | 9027425eb0d0029d825f187b6fb34cbccbcd6109 | [
"BSD-2-Clause"
] | 1 | 2019-04-22T16:43:39.000Z | 2019-04-22T16:43:39.000Z | r5/tests/test_reproducible.py | afcarl/r5 | 9027425eb0d0029d825f187b6fb34cbccbcd6109 | [
"BSD-2-Clause"
] | null | null | null | r5/tests/test_reproducible.py | afcarl/r5 | 9027425eb0d0029d825f187b6fb34cbccbcd6109 | [
"BSD-2-Clause"
] | null | null | null | import os
import json
import generate_testdata
import r5
def test_reproducible_hardcoded():
"""Check that walk is producing the same sequence as previous version of the code."""
expected = [0, -1, 0, 1, 0, -1, -2, -1, 0, -1, -2]
actual = r5.walk(10, seed=1)
assert expected == actual, '{} (expected)... | 35.333333 | 89 | 0.657233 | 132 | 954 | 4.659091 | 0.439394 | 0.013008 | 0.014634 | 0.04878 | 0.211382 | 0.211382 | 0.211382 | 0.211382 | 0.211382 | 0.211382 | 0 | 0.022546 | 0.209644 | 954 | 26 | 90 | 36.692308 | 0.793103 | 0.250524 | 0 | 0 | 1 | 0 | 0.105114 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.352941 | 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 |
8fc1e85b663356eedcd79653007e1c7b80cec659 | 684 | py | Python | app.py | web-rest/tornado-rest-framework | d674c47b6026e7867c1a101da0c3d506ca57fe23 | [
"Apache-2.0"
] | 1 | 2019-09-13T13:31:34.000Z | 2019-09-13T13:31:34.000Z | app.py | web-rest/tornado-rest-framework | d674c47b6026e7867c1a101da0c3d506ca57fe23 | [
"Apache-2.0"
] | null | null | null | app.py | web-rest/tornado-rest-framework | d674c47b6026e7867c1a101da0c3d506ca57fe23 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/python
# -*- coding:utf-8 -*-
# Author: Zhichang Fu
# Created Time: 2019-09-11 10:25:23
'''
BEGIN
function:
API
return:
code:0 success
END
'''
import tornado.ioloop
import tornado.web
from tornado.options import define, options, parse_command_line
from atm import settings
from atm.shortcuts import... | 20.117647 | 78 | 0.714912 | 97 | 684 | 4.896907 | 0.618557 | 0.012632 | 0.067368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040956 | 0.143275 | 684 | 33 | 79 | 20.727273 | 0.769625 | 0.214912 | 0 | 0 | 0 | 0 | 0.043726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8fc544575b5fd95efb1498496752ad7affa17bfc | 378 | py | Python | codedigger/problem/migrations/0002_auto_20210106_1154.py | jyothiprakashpanaik/Backend | 9ab1b57436a0a1a6197777c0b36c842e71121d3a | [
"Apache-2.0"
] | 17 | 2020-10-07T22:40:37.000Z | 2022-01-20T07:19:09.000Z | codedigger/problem/migrations/0002_auto_20210106_1154.py | jyothiprakashpanaik/Backend | 9ab1b57436a0a1a6197777c0b36c842e71121d3a | [
"Apache-2.0"
] | 42 | 2021-06-03T01:58:04.000Z | 2022-01-31T14:49:22.000Z | codedigger/problem/migrations/0002_auto_20210106_1154.py | jyothiprakashpanaik/Backend | 9ab1b57436a0a1a6197777c0b36c842e71121d3a | [
"Apache-2.0"
] | 25 | 2020-10-06T17:55:19.000Z | 2021-12-09T07:56:50.000Z | # Generated by Django 3.1.4 on 2021-01-06 06:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('problem', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='problem',
name='rating',
... | 19.894737 | 52 | 0.589947 | 39 | 378 | 5.666667 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086142 | 0.293651 | 378 | 18 | 53 | 21 | 0.741573 | 0.119048 | 0 | 0 | 1 | 0 | 0.096677 | 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 |
8fc5646c060cff5544f50ce1ae70f438fa91357a | 1,720 | py | Python | hyperquant/clients/tests/test_binance.py | assassinen/hyperquant | 65dfb9746bc1ee5229dcce9216af7228f78fdcd5 | [
"Apache-2.0"
] | 1 | 2021-10-30T20:25:50.000Z | 2021-10-30T20:25:50.000Z | hyperquant/clients/tests/test_binance.py | webclinic017/hyperquant | 65dfb9746bc1ee5229dcce9216af7228f78fdcd5 | [
"Apache-2.0"
] | null | null | null | hyperquant/clients/tests/test_binance.py | webclinic017/hyperquant | 65dfb9746bc1ee5229dcce9216af7228f78fdcd5 | [
"Apache-2.0"
] | 1 | 2021-10-30T20:25:47.000Z | 2021-10-30T20:25:47.000Z | from hyperquant.api import Platform
from hyperquant.clients import Error, ErrorCode
from hyperquant.clients.binance import BinanceRESTClient, BinanceRESTConverterV1, BinanceWSClient, BinanceWSConverterV1
from hyperquant.clients.tests.test_init import TestRESTClient, TestWSClient, TestConverter, TestRESTClientHistory
... | 31.851852 | 119 | 0.772093 | 184 | 1,720 | 6.98913 | 0.402174 | 0.060653 | 0.069984 | 0.05832 | 0.282271 | 0.2014 | 0.124417 | 0.124417 | 0.124417 | 0.124417 | 0 | 0.008293 | 0.158721 | 1,720 | 53 | 120 | 32.45283 | 0.880442 | 0.105814 | 0 | 0.259259 | 0 | 0 | 0.013072 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.62963 | 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 |
8fc8355458ba787a04ed85b8e4453fc0a7a61e6c | 2,633 | py | Python | xai_fairness/app_xai_indiv.py | victor-basisai/credit-risk | 43c7b0edf45fdec86c43de35b248e3c648535c44 | [
"Apache-2.0"
] | null | null | null | xai_fairness/app_xai_indiv.py | victor-basisai/credit-risk | 43c7b0edf45fdec86c43de35b248e3c648535c44 | [
"Apache-2.0"
] | 1 | 2021-03-25T02:26:53.000Z | 2021-03-25T02:26:53.000Z | xai_fairness/app_xai_indiv.py | victor-basisai/credit-risk | 43c7b0edf45fdec86c43de35b248e3c648535c44 | [
"Apache-2.0"
] | 1 | 2021-03-17T03:43:57.000Z | 2021-03-17T03:43:57.000Z | import altair as alt
import streamlit as st
from app_utils import load_model, load_data, predict
from preprocess.constants import FEATURES, TARGET
from .static_xai import make_source_waterfall, waterfall_chart
TARGET_CLASSES = [0, 1]
@st.cache
def get_sk_ids(series):
return series.tolist()
def plot_hist(sourc... | 32.506173 | 91 | 0.659704 | 363 | 2,633 | 4.53168 | 0.358127 | 0.032827 | 0.018237 | 0.025532 | 0.027964 | 0.027964 | 0 | 0 | 0 | 0 | 0 | 0.013849 | 0.204709 | 2,633 | 80 | 92 | 32.9125 | 0.771729 | 0.044436 | 0 | 0 | 0 | 0 | 0.151237 | 0.037909 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.054545 | false | 0 | 0.090909 | 0.018182 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fcd4d8031bb78848caf7b6e931250265ce0530f | 527 | py | Python | baekjoon/9095.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/9095.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/9095.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | """
9095 : 1, 2, 3 더하기
URL : https://www.acmicpc.net/problem/9095
Input :
3
4
7
10
Output :
7
44
274
"""
def make(i, n):
if i == n:
return 1
count = 0
if (i + 1) <= n:
count += make(i + 1, n)
if (i + 2) <= n:
... | 15.5 | 49 | 0.388994 | 81 | 527 | 2.518519 | 0.395062 | 0.098039 | 0.058824 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111486 | 0.43833 | 527 | 33 | 50 | 15.969697 | 0.577703 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0.066667 | 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 |
8fd41e70c77d99040dcbb4766a3c426f5235d629 | 870 | py | Python | game/gamestate/gamestatemenuoptions.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 5 | 2021-06-25T16:44:38.000Z | 2021-12-31T01:29:00.000Z | game/gamestate/gamestatemenuoptions.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | null | null | null | game/gamestate/gamestatemenuoptions.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 1 | 2021-06-25T20:33:47.000Z | 2021-06-25T20:33:47.000Z | from .basegamestate import BaseGameState
class GameStateMenuOptions(BaseGameState):
def on_enter(self):
self.game.r_int.letterbox = False
self.selection = 0
def on_tick(self, time, frame_time):
self.time = time
# self.lock = self.game.m_ani.on_tick(time, frame_time)
se... | 27.1875 | 82 | 0.625287 | 121 | 870 | 4.322314 | 0.429752 | 0.076482 | 0.124283 | 0.130019 | 0.16826 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020093 | 0.256322 | 870 | 31 | 83 | 28.064516 | 0.788253 | 0.06092 | 0 | 0 | 0 | 0 | 0.03317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.047619 | 0.047619 | 0 | 0.47619 | 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 |
8fd8a97da7f1a5095b2e0bd8c6e81d16c2f52c6f | 992 | py | Python | plot_fft.py | LittlelittleNancy/Denoise | 77dd72b1913df6beb5911b59ce2e810e91ee9888 | [
"MIT"
] | 1 | 2020-03-25T01:36:38.000Z | 2020-03-25T01:36:38.000Z | plot_fft.py | LittlelittleNancy/Denoise | 77dd72b1913df6beb5911b59ce2e810e91ee9888 | [
"MIT"
] | null | null | null | plot_fft.py | LittlelittleNancy/Denoise | 77dd72b1913df6beb5911b59ce2e810e91ee9888 | [
"MIT"
] | 2 | 2020-03-25T01:12:00.000Z | 2020-03-31T06:56:22.000Z | # -*- coding: utf-8 -*-
import subprocess
import wave
import struct
import numpy
import csv
import sys
import os
import matplotlib.pyplot as plt
import numpy as np
from statistics import mean
class Audio:
def __init__(self, audio):
self.audio = wave.open(audio,'r')
self.signal = self.audio.readfram... | 25.435897 | 78 | 0.616935 | 139 | 992 | 4.374101 | 0.446043 | 0.098684 | 0.046053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04026 | 0.22379 | 992 | 38 | 79 | 26.105263 | 0.749351 | 0.105847 | 0 | 0 | 0 | 0 | 0.085421 | 0.026196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.344828 | 0 | 0.448276 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fdd41ef7e41e9a9844ccf94d6ec637527a5d079 | 593 | py | Python | disp.py | BarnabyShearer/ble_temp_probe_decoder | 0d7d8aa100ced4ccf20b603c0fb75f3f644c7d9e | [
"Apache-2.0"
] | null | null | null | disp.py | BarnabyShearer/ble_temp_probe_decoder | 0d7d8aa100ced4ccf20b603c0fb75f3f644c7d9e | [
"Apache-2.0"
] | null | null | null | disp.py | BarnabyShearer/ble_temp_probe_decoder | 0d7d8aa100ced4ccf20b603c0fb75f3f644c7d9e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import fileinput
for line in fileinput.input():
if line.startswith("Notification handle = 0x0024 value:"):
print(end=" ")
vals = line.split()[5:]
# XORing the first (static) and third (random) bytes
# with the data give us simple BCD °C
x = int(vals... | 28.238095 | 62 | 0.505902 | 89 | 593 | 3.404494 | 0.573034 | 0.092409 | 0.039604 | 0.085809 | 0.165017 | 0.165017 | 0.165017 | 0.165017 | 0.165017 | 0 | 0 | 0.069652 | 0.322091 | 593 | 20 | 63 | 29.65 | 0.676617 | 0.182125 | 0 | 0.142857 | 0 | 0 | 0.093555 | 0 | 0 | 0 | 0.012474 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fde49e63be0c2d8cc3a0766f2fd4753c6a3564f | 2,775 | py | Python | example/makedata/make-dataset-KingsCollege.py | farrell236/DeepPose | 08e76eb42cc0f92f4ec11911d38ecab568bde562 | [
"MIT"
] | 13 | 2018-05-05T11:53:49.000Z | 2022-03-01T13:10:10.000Z | example/makedata/make-dataset-KingsCollege.py | farrell236/DeepPose | 08e76eb42cc0f92f4ec11911d38ecab568bde562 | [
"MIT"
] | 2 | 2018-05-01T23:40:09.000Z | 2019-08-13T21:13:40.000Z | example/makedata/make-dataset-KingsCollege.py | farrell236/DeepPose | 08e76eb42cc0f92f4ec11911d38ecab568bde562 | [
"MIT"
] | 2 | 2018-05-05T11:53:52.000Z | 2021-11-21T05:54:21.000Z | import random
import imageio
import numpy as np
import tensorflow as tf
from tqdm import tqdm
import sys
sys.path.append('/vol/medic01/users/bh1511/_build/geomstats-master/')
from geomstats.special_orthogonal_group import SpecialOrthogonalGroup
#######################################################################... | 26.682692 | 79 | 0.583784 | 343 | 2,775 | 4.55102 | 0.355685 | 0.035874 | 0.053812 | 0.038437 | 0.106342 | 0.106342 | 0.017937 | 0 | 0 | 0 | 0 | 0.030171 | 0.175856 | 2,775 | 103 | 80 | 26.941748 | 0.652383 | 0.056577 | 0 | 0.095238 | 0 | 0 | 0.098125 | 0.041867 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fe0679d54384586e0fcfed4ac4809fc7474ce54 | 750 | py | Python | blog/migrations/0005_auto_20210412_1708.py | Libor03/django_projekt_2.0 | 9369602f0cb43a98fd5c53f5ba03b64dfbeb8f1a | [
"CC0-1.0"
] | 2 | 2021-06-16T10:32:14.000Z | 2021-06-21T10:23:18.000Z | blog/migrations/0005_auto_20210412_1708.py | Libor03/django_projekt_2.0 | 9369602f0cb43a98fd5c53f5ba03b64dfbeb8f1a | [
"CC0-1.0"
] | null | null | null | blog/migrations/0005_auto_20210412_1708.py | Libor03/django_projekt_2.0 | 9369602f0cb43a98fd5c53f5ba03b64dfbeb8f1a | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.1.2 on 2021-04-12 16:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_auto_20210412_1704'),
]
operations = [
migrations.RemoveField(
model_name='animal',
name='type',
... | 26.785714 | 118 | 0.573333 | 81 | 750 | 5.197531 | 0.679012 | 0.064133 | 0.106888 | 0.135392 | 0.194774 | 0.194774 | 0.194774 | 0 | 0 | 0 | 0 | 0.058601 | 0.294667 | 750 | 27 | 119 | 27.777778 | 0.73724 | 0.06 | 0 | 0.380952 | 1 | 0 | 0.179232 | 0.064011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
8fe30d8bb2153722ffc69ade6cd7c8cd92e86bde | 1,610 | py | Python | small_simple_bot.py | borjauria/JetBrains-Simple-Bot | a4aaaf37cc3c72c8ea73536efa3487656cd55ffa | [
"MIT"
] | null | null | null | small_simple_bot.py | borjauria/JetBrains-Simple-Bot | a4aaaf37cc3c72c8ea73536efa3487656cd55ffa | [
"MIT"
] | 1 | 2020-08-25T11:28:34.000Z | 2020-08-25T11:28:34.000Z | small_simple_bot.py | borjauria/JetBrains-Simple-Bot | a4aaaf37cc3c72c8ea73536efa3487656cd55ffa | [
"MIT"
] | null | null | null | def greet(bot_name, birth_year):
print('Hello! My name is ' + bot_name + '.')
print('I was created in ' + birth_year + '.')
def remind_name():
print('Please, remind me your name.')
name = input()
print('What a great name you have, ' + name + '!')
def guess_age():
# Remainders are the remains... | 29.272727 | 232 | 0.637267 | 239 | 1,610 | 4.251046 | 0.472803 | 0.041339 | 0.038386 | 0.047244 | 0.147638 | 0.147638 | 0.147638 | 0.147638 | 0.147638 | 0.147638 | 0 | 0.026208 | 0.241615 | 1,610 | 55 | 233 | 29.272727 | 0.805897 | 0.062112 | 0 | 0 | 0 | 0.027778 | 0.483079 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8fe57f173d9b4d5ce92032ff1cb2b97afddd2357 | 4,847 | py | Python | sunpy/coordinates/representation.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | sunpy/coordinates/representation.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | sunpy/coordinates/representation.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | """
SunPy specific representations.
This submodule extends `astropy.coordinates.representations` with two Spherical
representation classes, primarily for use with the Helioprojective coordinate
system, due to the convention of Longitude going from -180 to 180 degrees.
"""
from __future__ import absolute_import, divis... | 41.42735 | 79 | 0.654425 | 589 | 4,847 | 5.332767 | 0.273345 | 0.068768 | 0.044572 | 0.02929 | 0.457179 | 0.457179 | 0.457179 | 0.457179 | 0.438077 | 0.438077 | 0 | 0.021006 | 0.253559 | 4,847 | 116 | 80 | 41.784483 | 0.847153 | 0.658345 | 0 | 0.083333 | 0 | 0 | 0.077642 | 0.04601 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8fe7e5425698bad0bd27119f1f2cdf52fc81d700 | 12,250 | py | Python | main.py | Kozzi11/DummyEditor | 275e5343cb0378d4b3b6a4a90082e4c98a0adf7e | [
"MIT"
] | null | null | null | main.py | Kozzi11/DummyEditor | 275e5343cb0378d4b3b6a4a90082e4c98a0adf7e | [
"MIT"
] | null | null | null | main.py | Kozzi11/DummyEditor | 275e5343cb0378d4b3b6a4a90082e4c98a0adf7e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'kozzi'
import wx
import wx.richtext
import os.path
DUMMY_EDITOR_FILE_TYPE = 6
class DummyEditorDataObjectComposite(wx.DataObjectComposite):
def __init__(self):
super(DummyEditorDataObjectComposite, self).__init__()
self.file_data = wx.FileDataObject()
... | 37.925697 | 122 | 0.64098 | 1,591 | 12,250 | 4.651791 | 0.153363 | 0.065397 | 0.028375 | 0.036887 | 0.427915 | 0.342656 | 0.295365 | 0.25402 | 0.209431 | 0.178895 | 0 | 0.004605 | 0.255429 | 12,250 | 323 | 123 | 37.925697 | 0.806819 | 0.009551 | 0 | 0.265625 | 0 | 0 | 0.039362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003906 | 0.011719 | null | null | 0.019531 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fe8fa8d192a34d94472be6451fa6906f1c3dc4a | 2,191 | py | Python | events/models.py | gr1d99/FootballTicketing | de77e457942bdea5ce632462705c72e6b9a21036 | [
"MIT"
] | null | null | null | events/models.py | gr1d99/FootballTicketing | de77e457942bdea5ce632462705c72e6b9a21036 | [
"MIT"
] | null | null | null | events/models.py | gr1d99/FootballTicketing | de77e457942bdea5ce632462705c72e6b9a21036 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
from django.utils import timezone
from accounts.models import UserProfile
class Event(models.Model):
name = models.CharField(max_length=100, unique=True)
slug = models.SlugField(max_length=100,
... | 30.859155 | 75 | 0.648562 | 263 | 2,191 | 5.250951 | 0.406844 | 0.026068 | 0.02824 | 0.03693 | 0.191166 | 0.134685 | 0.134685 | 0.062274 | 0 | 0 | 0 | 0.009901 | 0.262437 | 2,191 | 70 | 76 | 31.3 | 0.844678 | 0.100411 | 0 | 0.162791 | 0 | 0 | 0.034759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.116279 | 0.069767 | 0.790698 | 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 |
8fed373902633c9b9f24a8740884a1d0261e73d1 | 5,424 | py | Python | facility_stat_report/fstat_reportlab_doc.py | senthil10/dc_reporting_scripts | 9d7d75a71a7f3cd28bec2e0dc3ea1dd92b0018b0 | [
"MIT"
] | null | null | null | facility_stat_report/fstat_reportlab_doc.py | senthil10/dc_reporting_scripts | 9d7d75a71a7f3cd28bec2e0dc3ea1dd92b0018b0 | [
"MIT"
] | null | null | null | facility_stat_report/fstat_reportlab_doc.py | senthil10/dc_reporting_scripts | 9d7d75a71a7f3cd28bec2e0dc3ea1dd92b0018b0 | [
"MIT"
] | null | null | null | #/usr/bin/env python
# -*- coding: utf-8 -*-
# This have class to create facility reportlab object to generate
# facility maetrics pdf. This also have default values and the
# individual value for each facility is mention in facility_reportlab_data.py
# This is a dependancy for the fstat_pdf_gen.py script
from repo... | 40.781955 | 144 | 0.537426 | 594 | 5,424 | 4.73569 | 0.217172 | 0.082119 | 0.066477 | 0.027728 | 0.513686 | 0.410238 | 0.410238 | 0.410238 | 0.410238 | 0.393886 | 0 | 0.03343 | 0.365782 | 5,424 | 133 | 145 | 40.781955 | 0.784302 | 0.078909 | 0 | 0.514019 | 1 | 0 | 0.044378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028037 | false | 0 | 0.018692 | 0 | 0.056075 | 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 |
8fefe1325e81e060cbd6b0fac3e6ddd3c3e1d668 | 7,404 | py | Python | aac.py | m-j-andr/Audio-Library | 493d5d908bd5811b9306e695d37ddf27661d0a31 | [
"MIT"
] | null | null | null | aac.py | m-j-andr/Audio-Library | 493d5d908bd5811b9306e695d37ddf27661d0a31 | [
"MIT"
] | null | null | null | aac.py | m-j-andr/Audio-Library | 493d5d908bd5811b9306e695d37ddf27661d0a31 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 24 19:00:07 2018
@author: mjandr
"""
#%% MDCT
import numpy as np
def pre_mdct(x, n, axis):
# COPIED AND MINORLY EDITED FROM FFTPACK
if n is None:
n = x.shape[axis]
assert (n>1 and n%4 == 0)
if n < x.shape[axis]:
... | 23.883871 | 80 | 0.540789 | 1,302 | 7,404 | 2.990783 | 0.178187 | 0.01926 | 0.010786 | 0.024653 | 0.383154 | 0.337956 | 0.296867 | 0.245506 | 0.235747 | 0.140729 | 0 | 0.044921 | 0.275392 | 7,404 | 310 | 81 | 23.883871 | 0.680895 | 0.176931 | 0 | 0.354839 | 0 | 0 | 0.017678 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0 | null | null | 0.010753 | 0.016129 | null | null | 0.005376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ffda5e5f8b51bdd16832bddbf267a78e154d482 | 768 | py | Python | online_judges/Vjudge/ccpl2020r8/aaa.py | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | 2 | 2018-02-20T14:44:57.000Z | 2018-02-20T14:45:03.000Z | online_judges/Vjudge/ccpl2020r8/aaa.py | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | null | null | null | online_judges/Vjudge/ccpl2020r8/aaa.py | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | null | null | null | def dist(X, m):
S = 0
for x in X:
S += abs(x - m)
return S
T = int(input())
for ti in range(T):
N, M, F = map(int, input().split())
X = []
Y = []
for fi in range(F):
x, y = map(int, input().split())
X.append(x)
Y.append(y)
X = sorted(X)
Y = sorted(Y)
F = 2
if F & 1:
xx = str(... | 20.210526 | 56 | 0.398438 | 135 | 768 | 2.266667 | 0.259259 | 0.03268 | 0.058824 | 0.186275 | 0.343137 | 0.163399 | 0 | 0 | 0 | 0 | 0 | 0.016162 | 0.355469 | 768 | 37 | 57 | 20.756757 | 0.60202 | 0 | 0 | 0.142857 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.057143 | 0.114286 | 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 |
89007599bf083bef5bde0f456b2d939e82a30fa9 | 1,028 | py | Python | SheldonSite/account/migrations/0001_initial.py | marcciszek/Sheldon | 3be18c4412a5bed5158f56bd02ce4fbfba790bb7 | [
"MIT"
] | null | null | null | SheldonSite/account/migrations/0001_initial.py | marcciszek/Sheldon | 3be18c4412a5bed5158f56bd02ce4fbfba790bb7 | [
"MIT"
] | null | null | null | SheldonSite/account/migrations/0001_initial.py | marcciszek/Sheldon | 3be18c4412a5bed5158f56bd02ce4fbfba790bb7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-14 17:55
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... | 34.266667 | 184 | 0.615759 | 107 | 1,028 | 5.785047 | 0.607477 | 0.071082 | 0.045234 | 0.071082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027237 | 0.25 | 1,028 | 29 | 185 | 35.448276 | 0.775616 | 0.043774 | 0 | 0 | 1 | 0 | 0.149847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89059678bb0eb3564697a7eaed4ef2f74dbdb7e6 | 1,704 | py | Python | hardware/tests/opentrons_hardware/firmware_update/test_target.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | 2 | 2015-11-10T17:49:51.000Z | 2016-01-15T04:43:37.000Z | hardware/tests/opentrons_hardware/firmware_update/test_target.py | Opentrons/labware | e21d8db51eac5818477264a45ef12c0a2d15fb72 | [
"Apache-2.0"
] | null | null | null | hardware/tests/opentrons_hardware/firmware_update/test_target.py | Opentrons/labware | e21d8db51eac5818477264a45ef12c0a2d15fb72 | [
"Apache-2.0"
] | null | null | null | """Tests for Target class."""
import pytest
from _pytest.fixtures import FixtureRequest
from opentrons_hardware.firmware_bindings import NodeId
from opentrons_hardware.firmware_update.target import Target
@pytest.fixture(params=list(NodeId))
def system_node_id(request: FixtureRequest) -> NodeId:
"""Each node id ... | 34.08 | 88 | 0.671948 | 201 | 1,704 | 5.378109 | 0.298507 | 0.203515 | 0.166512 | 0.116559 | 0.521739 | 0.521739 | 0.466235 | 0.323774 | 0.323774 | 0.323774 | 0 | 0 | 0.245305 | 1,704 | 49 | 89 | 34.77551 | 0.840591 | 0.095657 | 0 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.175 | 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 |
890677bda388607e86ea366a026b23091e20c079 | 916 | py | Python | django_2fa/migrations/0005_mfarequest.py | neutron-sync/django-2fa | a646618a7f881ced0e478215e1ae01b666890ee5 | [
"MIT"
] | 5 | 2022-01-26T22:28:41.000Z | 2022-02-05T23:47:40.000Z | django_2fa/migrations/0005_mfarequest.py | neutron-sync/django-2fa | a646618a7f881ced0e478215e1ae01b666890ee5 | [
"MIT"
] | 2 | 2022-01-27T15:12:28.000Z | 2022-01-27T15:12:56.000Z | django_2fa/migrations/0005_mfarequest.py | neutron-sync/django-2fa | a646618a7f881ced0e478215e1ae01b666890ee5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-24 15:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('django_2fa', '0004_devic... | 33.925926 | 119 | 0.637555 | 99 | 916 | 5.737374 | 0.646465 | 0.042254 | 0.049296 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031609 | 0.240175 | 916 | 26 | 120 | 35.230769 | 0.784483 | 0.049127 | 0 | 0 | 1 | 0 | 0.086306 | 0.029919 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 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 |
890b39daf55532d9ff3ee9293f6a3e4494ffe14b | 1,003 | py | Python | app.py | kunal732/sgwebhook-to-google-spreadsheet | d0da9ea9e1c626db73bb3c629250407a442214f3 | [
"MIT"
] | 1 | 2015-04-22T01:05:24.000Z | 2015-04-22T01:05:24.000Z | app.py | kunal732/sgwebhook-to-google-spreadsheet | d0da9ea9e1c626db73bb3c629250407a442214f3 | [
"MIT"
] | null | null | null | app.py | kunal732/sgwebhook-to-google-spreadsheet | d0da9ea9e1c626db73bb3c629250407a442214f3 | [
"MIT"
] | null | null | null | from flask import Flask, request
import requests
import os
import gspread
app = Flask(__name__)
#Get environment variables
googleUser = os.environ['guser']
googlePass = os.environ['gpass']
gc = gspread.login(googleUser, googlePass)
wks = gc.add_worksheet(title="SendGrid Demo", rows="100", cols="20")
def getNextRow... | 22.795455 | 68 | 0.68993 | 129 | 1,003 | 5.193798 | 0.542636 | 0.040299 | 0.062687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008485 | 0.177468 | 1,003 | 43 | 69 | 23.325581 | 0.803636 | 0.055833 | 0 | 0 | 0 | 0 | 0.07105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.064516 | 0.129032 | 0 | 0.290323 | 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 |
890d13fcba43fddbc26818a056e10c132025ce50 | 13,433 | py | Python | spotifython/artist.py | Guptacos/spotifython | 9d42e903f29667906abd959b45b642a9645c60d1 | [
"MIT"
] | null | null | null | spotifython/artist.py | Guptacos/spotifython | 9d42e903f29667906abd959b45b642a9645c60d1 | [
"MIT"
] | 61 | 2020-04-25T20:17:05.000Z | 2020-09-20T20:41:24.000Z | spotifython/artist.py | Guptacos/spotifython | 9d42e903f29667906abd959b45b642a9645c60d1 | [
"MIT"
] | null | null | null | """ Artist class. """
# Local imports
import spotifython.constants as const
from spotifython.endpoints import Endpoints
import spotifython.utils as utils
# pylint: disable = pointless-string-statement, too-many-instance-attributes
# pylint: disable = too-many-branches
class Artist:
""" Represents an Artist objec... | 35.6313 | 80 | 0.576937 | 1,559 | 13,433 | 4.833868 | 0.183451 | 0.04087 | 0.020303 | 0.022691 | 0.414145 | 0.369029 | 0.325504 | 0.292065 | 0.235934 | 0.227176 | 0 | 0.006046 | 0.33507 | 13,433 | 376 | 81 | 35.726064 | 0.837662 | 0.408099 | 0 | 0.185185 | 0 | 0 | 0.076545 | 0.003039 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.118519 | false | 0 | 0.037037 | 0 | 0.288889 | 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 |
890dbb66ab2251e4bb5cc5ff7c85cc9590e22824 | 4,130 | py | Python | Archive/Classification/tsv/Helper/sklearn_c_generic.py | srp33/ShinyLearner | 680317ad59f338396ba82fc14c1fa653c0b2dcd0 | [
"MIT"
] | 15 | 2016-10-05T16:11:11.000Z | 2021-05-10T05:37:15.000Z | Archive/Classification/tsv/Helper/sklearn_c_generic.py | srp33/ShinyLearner | 680317ad59f338396ba82fc14c1fa653c0b2dcd0 | [
"MIT"
] | 9 | 2016-12-09T17:24:11.000Z | 2019-01-10T17:37:09.000Z | Archive/Classification/tsv/Helper/sklearn_c_generic.py | srp33/ShinyLearner | 680317ad59f338396ba82fc14c1fa653c0b2dcd0 | [
"MIT"
] | 9 | 2016-12-08T17:13:38.000Z | 2021-02-06T18:00:24.000Z | from pandas import read_csv
from numpy import array
from sys import argv
from sys import exit
from numpy import random
trainFile = argv[1]
testFile = argv[2]
classOptions = argv[3].split(",")
algorithm = argv[4]
def readData(inFilePath):
return read_csv(inFilePath, sep='\t', index_col=0)
def predict(algorithm, t... | 39.711538 | 99 | 0.704116 | 483 | 4,130 | 5.859213 | 0.271222 | 0.077739 | 0.063604 | 0.084806 | 0.314488 | 0.228975 | 0.162191 | 0.162191 | 0.138869 | 0.093286 | 0 | 0.006035 | 0.197579 | 4,130 | 103 | 100 | 40.097087 | 0.847918 | 0.20339 | 0 | 0.054795 | 0 | 0 | 0.05967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.260274 | null | null | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
890ddb7ff8413f4472b5d7381739761e099a9299 | 1,784 | py | Python | src/core/urls.py | CMSC495-G4/dominion | e783be6fff9883f51cdf9a4d402c2916f2bf8637 | [
"MIT"
] | null | null | null | src/core/urls.py | CMSC495-G4/dominion | e783be6fff9883f51cdf9a4d402c2916f2bf8637 | [
"MIT"
] | 8 | 2018-05-06T13:25:03.000Z | 2018-05-07T01:53:51.000Z | src/core/urls.py | CMSC495-G4/dominion | e783be6fff9883f51cdf9a4d402c2916f2bf8637 | [
"MIT"
] | 1 | 2018-05-04T02:08:17.000Z | 2018-05-04T02:08:17.000Z | from django.urls import path, include
from django.contrib.auth import views as auth_views
from . import forms, views
urlpatterns = [
path('', views.index, name='index'),
path('api/games/', views.api_games, name='api_games'),
path('api/player/<id>', views.api_player, name='api_player'),
path('rules/', ... | 43.512195 | 110 | 0.71861 | 234 | 1,784 | 5.269231 | 0.222222 | 0.179238 | 0.082725 | 0.071371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001283 | 0.126121 | 1,784 | 40 | 111 | 44.6 | 0.789609 | 0.191704 | 0 | 0 | 0 | 0 | 0.296581 | 0.069784 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.26087 | 0.130435 | 0 | 0.130435 | 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 |
89198028addbaa30a1b8b1c0cd9f39f197812b82 | 1,266 | py | Python | fedml_experiments/distributed/fedavg/debug.py | SlimFun/FL_pruning | 844790c49d870e45aab1982f1ab156bdacb6fa71 | [
"Apache-2.0"
] | null | null | null | fedml_experiments/distributed/fedavg/debug.py | SlimFun/FL_pruning | 844790c49d870e45aab1982f1ab156bdacb6fa71 | [
"Apache-2.0"
] | null | null | null | fedml_experiments/distributed/fedavg/debug.py | SlimFun/FL_pruning | 844790c49d870e45aab1982f1ab156bdacb6fa71 | [
"Apache-2.0"
] | null | null | null | import torch
import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "./../../../../")))
sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "./../../../")))
from fedml_api.model.cv.vgg import vgg11_bn, VGG_SNIP
from fedml_api.model.cv.resnet import resnet56
from fedml_api.model.cv.wrn.wrn ... | 32.461538 | 95 | 0.705371 | 200 | 1,266 | 4.21 | 0.265 | 0.0962 | 0.11639 | 0.135392 | 0.502375 | 0.434679 | 0.356295 | 0.199525 | 0.106888 | 0.106888 | 0 | 0.027853 | 0.120853 | 1,266 | 39 | 96 | 32.461538 | 0.728661 | 0.334123 | 0 | 0 | 0 | 0 | 0.073494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64e130fe900ee5b0904208866fc8daa8b50eaa69 | 881 | py | Python | sbirez/migrations/0004_auto_20150223_2159.py | kaitlin/afsbirez | 72fd39709adf8ba470151007739cc06e4d3d79dd | [
"CC0-1.0"
] | 8 | 2015-03-30T18:17:28.000Z | 2015-11-19T08:25:56.000Z | sbirez/migrations/0004_auto_20150223_2159.py | kaitlin/afsbirez | 72fd39709adf8ba470151007739cc06e4d3d79dd | [
"CC0-1.0"
] | 76 | 2015-01-16T18:23:16.000Z | 2017-07-07T19:36:41.000Z | sbirez/migrations/0004_auto_20150223_2159.py | kaitlin/afsbirez | 72fd39709adf8ba470151007739cc06e4d3d79dd | [
"CC0-1.0"
] | 16 | 2015-02-12T20:14:05.000Z | 2021-02-14T11:26:51.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import djorm_pgfulltext.fields
class Migration(migrations.Migration):
dependencies = [
('sbirez', '0003_auto_20150219_1959'),
]
operations = [
migrations.RunSQL("""ALTER TABLE sbirez... | 32.62963 | 114 | 0.6958 | 110 | 881 | 5.454545 | 0.590909 | 0.075 | 0.093333 | 0.105 | 0.221667 | 0.221667 | 0.221667 | 0.221667 | 0.156667 | 0 | 0 | 0.024496 | 0.212259 | 881 | 26 | 115 | 33.884615 | 0.840058 | 0.412032 | 0 | 0 | 0 | 0 | 0.344488 | 0.045276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
64e1950565bbf9f71af17af149c579bb5c0625db | 463 | py | Python | health_stats/reports/report.py | ex-nerd/health-stats | 78860fc3b7e6db91612ecc68fb634615a739c4c9 | [
"MIT"
] | 2 | 2016-04-14T18:47:14.000Z | 2017-03-14T15:23:25.000Z | health_stats/reports/report.py | ex-nerd/health-stats | 78860fc3b7e6db91612ecc68fb634615a739c4c9 | [
"MIT"
] | null | null | null | health_stats/reports/report.py | ex-nerd/health-stats | 78860fc3b7e6db91612ecc68fb634615a739c4c9 | [
"MIT"
] | null | null | null |
class Report(object):
""" Parent class for all reports """
__slots__ = (
'stats',
'start',
'end',
)
def __init__(self, start, end):
self.start = start
self.end = end
def render(self, output):
""" Render the report to the specified output file """
... | 22.047619 | 97 | 0.574514 | 52 | 463 | 4.942308 | 0.634615 | 0.062257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317495 | 463 | 20 | 98 | 23.15 | 0.813291 | 0.164147 | 0 | 0 | 0 | 0 | 0.196237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64e1952d0193eaedba5499ca7ca20dc31afa8b15 | 361 | py | Python | pandas/index-objects.py | LucasHelal/data-science | 9b243be1dea23a521e6ebb49dc358708a9b17dbd | [
"MIT"
] | null | null | null | pandas/index-objects.py | LucasHelal/data-science | 9b243be1dea23a521e6ebb49dc358708a9b17dbd | [
"MIT"
] | null | null | null | pandas/index-objects.py | LucasHelal/data-science | 9b243be1dea23a521e6ebb49dc358708a9b17dbd | [
"MIT"
] | null | null | null | import numpy as np
from pandas import Series, DataFrame
import pandas as pd
# Let's learn/review about Index Objects
my_ser = Series([1, 2, 3, 4], index=['A', 'B', 'C', 'D'])
# Get the index
my_index = my_ser.index
# Can grab index ranges
my_index[2:]
# What happens if we try to change an index value?
my_index[0]... | 19 | 57 | 0.686981 | 65 | 361 | 3.738462 | 0.707692 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020478 | 0.188366 | 361 | 18 | 58 | 20.055556 | 0.808874 | 0.429363 | 0 | 0 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
64ebded6c9298c84d8739e1efad80848975b06f3 | 759 | py | Python | setup.py | logachev/custom-azure-data-encryption | f00e45124f5c01ce3bc3dca1818ba5bb932bb4bc | [
"MIT"
] | 5 | 2018-07-09T02:16:56.000Z | 2019-04-02T16:06:03.000Z | setup.py | logachev/custom-azure-data-encryption | f00e45124f5c01ce3bc3dca1818ba5bb932bb4bc | [
"MIT"
] | 2 | 2018-07-05T16:53:24.000Z | 2019-03-18T23:27:07.000Z | setup.py | logachev/custom-azure-data-encryption | f00e45124f5c01ce3bc3dca1818ba5bb932bb4bc | [
"MIT"
] | 3 | 2020-06-30T15:08:34.000Z | 2020-08-05T14:40:37.000Z | from setuptools import setup, find_packages
requirements = [
"azure.common",
"azure.keyvault",
"cryptography"
]
setup(
name="azure-custom-data-encryption",
version="0.0.1",
description="",
long_description="",
url="",
packages=find_packages(include=["azure_encryption_helper"]),
... | 26.172414 | 64 | 0.623188 | 74 | 759 | 6.283784 | 0.635135 | 0.122581 | 0.16129 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015517 | 0.235837 | 759 | 28 | 65 | 27.107143 | 0.786207 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 0.067194 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 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 |
64ecbcba44559e7ab16d979e14ea6c9de4b6890e | 1,039 | py | Python | modules/dbnd/src/targets/marshalling/numpy.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 224 | 2020-01-02T10:46:37.000Z | 2022-03-02T13:54:08.000Z | modules/dbnd/src/targets/marshalling/numpy.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 16 | 2020-03-11T09:37:58.000Z | 2022-01-26T10:22:08.000Z | modules/dbnd/src/targets/marshalling/numpy.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 24 | 2020-03-24T13:53:50.000Z | 2022-03-22T11:55:18.000Z | from __future__ import absolute_import
import numpy as np
from targets.marshalling.marshaller import Marshaller
from targets.target_config import FileFormat
class NumpyArrayMarshaller(Marshaller):
type = np.ndarray
file_format = FileFormat.numpy
def target_to_value(self, target, **kwargs):
"""
... | 26.641026 | 64 | 0.649663 | 123 | 1,039 | 5.333333 | 0.341463 | 0.073171 | 0.060976 | 0.04878 | 0.314024 | 0.314024 | 0.314024 | 0.234756 | 0.131098 | 0 | 0 | 0 | 0.242541 | 1,039 | 38 | 65 | 27.342105 | 0.833545 | 0.072185 | 0 | 0.2 | 0 | 0 | 0.00444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.05 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
64f31852207cd15ec691db4a47c6e545af431add | 1,173 | py | Python | neighbourhood/migrations/0009_post_post_content_post_post_neighbourhood_and_more.py | JoyWambui/info-neighbourhood | 0a7a1735581cb0fac91284e8090cda1f081ea5d6 | [
"MIT"
] | null | null | null | neighbourhood/migrations/0009_post_post_content_post_post_neighbourhood_and_more.py | JoyWambui/info-neighbourhood | 0a7a1735581cb0fac91284e8090cda1f081ea5d6 | [
"MIT"
] | null | null | null | neighbourhood/migrations/0009_post_post_content_post_post_neighbourhood_and_more.py | JoyWambui/info-neighbourhood | 0a7a1735581cb0fac91284e8090cda1f081ea5d6 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-01-09 17:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('neighbourhood', '0008_alter_business_business_neighbourhood'),
... | 32.583333 | 161 | 0.623188 | 125 | 1,173 | 5.656 | 0.392 | 0.113154 | 0.130127 | 0.152758 | 0.407355 | 0.407355 | 0.407355 | 0.186704 | 0.186704 | 0.186704 | 0 | 0.027555 | 0.25746 | 1,173 | 35 | 162 | 33.514286 | 0.784156 | 0.036658 | 0 | 0.413793 | 1 | 0 | 0.200355 | 0.093972 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.172414 | 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 |
64f3bb265c93123ebe1825d1bf77bb1a371d722d | 810 | py | Python | rest_auth/urls.py | recamshak/django-rest-auth | 3a9e9b646e396b318319f9caa379099f8d5b67c6 | [
"MIT"
] | null | null | null | rest_auth/urls.py | recamshak/django-rest-auth | 3a9e9b646e396b318319f9caa379099f8d5b67c6 | [
"MIT"
] | null | null | null | rest_auth/urls.py | recamshak/django-rest-auth | 3a9e9b646e396b318319f9caa379099f8d5b67c6 | [
"MIT"
] | 1 | 2019-12-11T10:30:14.000Z | 2019-12-11T10:30:14.000Z | from django.conf.urls import patterns, url
from rest_auth.views import (Login, Logout, UserDetails, PasswordChange,
PasswordReset, PasswordResetConfirm)
urlpatterns = patterns('',
# URLs that do not require a session or valid token
url(r'^password/reset/$', PasswordReset.as_view(),
name='rest_passwo... | 42.631579 | 76 | 0.698765 | 107 | 810 | 5.121495 | 0.383178 | 0.043796 | 0.109489 | 0.153285 | 0.138686 | 0.09854 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151852 | 810 | 18 | 77 | 45 | 0.797671 | 0.148148 | 0 | 0 | 0 | 0 | 0.273654 | 0.075691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.571429 | 0.142857 | 0 | 0.142857 | 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 |
8f09fa9292283ffc92755a6d4ed3356c368f72fc | 874 | py | Python | mastering-flask/webapp/controllers/blog/forms.py | zhchnchn/flask-repo | 51aad8c9e80112d53a6455221bc94cc9a523e356 | [
"Apache-2.0"
] | null | null | null | mastering-flask/webapp/controllers/blog/forms.py | zhchnchn/flask-repo | 51aad8c9e80112d53a6455221bc94cc9a523e356 | [
"Apache-2.0"
] | null | null | null | mastering-flask/webapp/controllers/blog/forms.py | zhchnchn/flask-repo | 51aad8c9e80112d53a6455221bc94cc9a523e356 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SubmitField
from wtforms.validators import DataRequired, Length
class CommentForm(FlaskForm):
name = StringField('Name', validators=[DataRequired(), Length(max=255)])
text = TextAreaField('Comment', validat... | 34.96 | 78 | 0.724256 | 87 | 874 | 7.252874 | 0.425287 | 0.139461 | 0.060222 | 0.091918 | 0.161648 | 0.161648 | 0.161648 | 0 | 0 | 0 | 0 | 0.018592 | 0.138444 | 874 | 24 | 79 | 36.416667 | 0.819389 | 0.059497 | 0 | 0 | 0 | 0 | 0.090354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 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 |
8f0e94765e3ec156b1a6c6097003b9cd21d9c504 | 2,899 | py | Python | installation/config.py | kolorowestudio/critic | db3b4909e15835be2009395b1541dea896d249c9 | [
"Apache-2.0",
"MIT"
] | null | null | null | installation/config.py | kolorowestudio/critic | db3b4909e15835be2009395b1541dea896d249c9 | [
"Apache-2.0",
"MIT"
] | null | null | null | installation/config.py | kolorowestudio/critic | db3b4909e15835be2009395b1541dea896d249c9 | [
"Apache-2.0",
"MIT"
] | null | null | null | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2012 Jens Lindström, Opera Software ASA
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | 31.51087 | 90 | 0.651604 | 377 | 2,899 | 4.93634 | 0.474801 | 0.032241 | 0.021494 | 0.017195 | 0.080602 | 0.053735 | 0.053735 | 0.053735 | 0 | 0 | 0 | 0.010483 | 0.243187 | 2,899 | 91 | 91 | 31.857143 | 0.837739 | 0.229389 | 0 | 0.038462 | 0 | 0 | 0.300993 | 0.015794 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.076923 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f188aa5ca9b7d58ca8c1a763f0c060c9b21c78c | 3,484 | py | Python | core_spark.py | simoare/cloudera-spark-jobs-monitoring | fc4073a3d368200af191a3ecc13ec8c21ecb2dc1 | [
"MIT"
] | null | null | null | core_spark.py | simoare/cloudera-spark-jobs-monitoring | fc4073a3d368200af191a3ecc13ec8c21ecb2dc1 | [
"MIT"
] | null | null | null | core_spark.py | simoare/cloudera-spark-jobs-monitoring | fc4073a3d368200af191a3ecc13ec8c21ecb2dc1 | [
"MIT"
] | null | null | null | import requests
from requests.auth import HTTPBasicAuth
from requests.exceptions import HTTPError
import configparser
import json
import paramiko
# Load the configuration file
config = configparser.ConfigParser()
config.read('config.ini')
# Set the proxy to Call the Microsoft Teams WebHook
proxyDict = {
'http... | 45.246753 | 137 | 0.59271 | 393 | 3,484 | 5.10687 | 0.330789 | 0.024415 | 0.035874 | 0.032885 | 0.425511 | 0.376682 | 0.34579 | 0.310912 | 0.265072 | 0.265072 | 0 | 0.00406 | 0.293054 | 3,484 | 76 | 138 | 45.842105 | 0.8108 | 0.077497 | 0 | 0.258065 | 0 | 0 | 0.146958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.080645 | 0.096774 | 0 | 0.145161 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8f197ef253ff893445a788926afcb10b55118465 | 539 | py | Python | web/disqus/tests.py | haihua-sysu/onlinejudge | 41baebbf1630bd647009b7efe3ecd09de628387f | [
"MIT"
] | 2 | 2015-09-24T19:53:14.000Z | 2015-11-06T10:46:16.000Z | disqus/tests.py | dcramer/django-disqus | 51b38e22244381146b5c0a262823ca3991a17e76 | [
"BSD-3-Clause"
] | null | null | null | disqus/tests.py | dcramer/django-disqus | 51b38e22244381146b5c0a262823ca3991a17e76 | [
"BSD-3-Clause"
] | 1 | 2020-03-05T18:44:55.000Z | 2020-03-05T18:44:55.000Z | from django.conf import settings
from django.core.management.base import CommandError
from disqus.api import DisqusClient
__test__ = {'API_TESTS': """
First, we test if the DisqusClient class can be initialized
and parameters that were passed are set correctly.
>>> c = DisqusClient(foo='bar', bar='foo')
>>> c.foo
'... | 18.586207 | 67 | 0.716141 | 79 | 539 | 4.78481 | 0.658228 | 0.05291 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16141 | 539 | 28 | 68 | 19.25 | 0.836283 | 0 | 0 | 0 | 0 | 0 | 0.72119 | 0.042751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.15 | 0 | 0.15 | 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 |
8f1a318a431fc0efed010ece1babb9458ba434e8 | 2,593 | py | Python | twitchapi/krakenv5/channels.py | Amperture/twitch-sbc-integration | 71ee86688a7735e6bb3d18c9896c1b8c7a3662d7 | [
"MIT"
] | 10 | 2017-04-20T15:15:51.000Z | 2021-11-17T20:08:01.000Z | twitchapi/krakenv5/channels.py | Amperture/twitch-sbc-integration | 71ee86688a7735e6bb3d18c9896c1b8c7a3662d7 | [
"MIT"
] | null | null | null | twitchapi/krakenv5/channels.py | Amperture/twitch-sbc-integration | 71ee86688a7735e6bb3d18c9896c1b8c7a3662d7 | [
"MIT"
] | 2 | 2020-02-08T04:15:43.000Z | 2021-11-04T09:18:43.000Z | # -*- coding: utf-8 -*-
import basic as endpoints
import pprint
import ConfigParser
import json
from config import EDITOR_TOKEN, CLIENT_ID
def getChannelFollowers(channel):
endpoint_args = [
channel,
'follows'
]
followers = endpoints.endpoint_get("channels", CLIENT_ID,
... | 26.731959 | 67 | 0.599306 | 280 | 2,593 | 5.396429 | 0.278571 | 0.037062 | 0.042356 | 0.039709 | 0.432826 | 0.365321 | 0.365321 | 0.365321 | 0.301787 | 0.301787 | 0 | 0.004782 | 0.2742 | 2,593 | 96 | 68 | 27.010417 | 0.798087 | 0.008099 | 0 | 0.315789 | 0 | 0 | 0.182561 | 0.037369 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065789 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f236a32d0029f481e30374e41c2f875588fd0a1 | 1,828 | py | Python | aztk_cli/spark/endpoints/job/submit.py | Geims83/aztk | 8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6 | [
"MIT"
] | 161 | 2017-10-04T08:58:27.000Z | 2022-01-03T13:01:04.000Z | aztk_cli/spark/endpoints/job/submit.py | Geims83/aztk | 8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6 | [
"MIT"
] | 400 | 2017-09-29T21:52:08.000Z | 2021-01-08T02:48:56.000Z | aztk_cli/spark/endpoints/job/submit.py | isabella232/aztk | 6e04372d19661ead6744387edab7beda16e3d928 | [
"MIT"
] | 74 | 2017-10-13T04:41:26.000Z | 2021-12-20T15:56:42.000Z | import argparse
import typing
import aztk.spark
from aztk_cli import config
from aztk_cli.config import JobConfig
def setup_parser(parser: argparse.ArgumentParser):
parser.add_argument(
"--id",
dest="job_id",
required=False,
help="The unique id of your Spark Job. Defaults to the i... | 32.642857 | 91 | 0.718271 | 250 | 1,828 | 4.92 | 0.308 | 0.119512 | 0.039024 | 0.022764 | 0.095935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20186 | 1,828 | 55 | 92 | 33.236364 | 0.843043 | 0.079869 | 0 | 0.093023 | 0 | 0 | 0.105483 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.046512 | false | 0 | 0.116279 | 0 | 0.162791 | 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 |
8f2af9d417c8804444611c7b585c9a3bfe9192ba | 7,615 | py | Python | unet3D_keras_segmentation.py | visibilia/IA-for-fully-automatic-COVID-19-detection | fe2b01a8387c3d73c43519247ce6cfcc9551e28a | [
"MIT"
] | null | null | null | unet3D_keras_segmentation.py | visibilia/IA-for-fully-automatic-COVID-19-detection | fe2b01a8387c3d73c43519247ce6cfcc9551e28a | [
"MIT"
] | null | null | null | unet3D_keras_segmentation.py | visibilia/IA-for-fully-automatic-COVID-19-detection | fe2b01a8387c3d73c43519247ce6cfcc9551e28a | [
"MIT"
] | null | null | null | """
This piece of source code is part of FADCIL project from Visibilia
More details about this project at: http://visibilia.net.br/fadcil
Last updated: 11/17/2020
"""
from tensorflow.keras import Model
from tensorflow.keras.layers import Input, BatchNormalization, Conv3D, Concatenate, Cropping3... | 49.771242 | 126 | 0.655286 | 921 | 7,615 | 5.281216 | 0.233442 | 0.007401 | 0.046258 | 0.049959 | 0.495683 | 0.44963 | 0.369243 | 0.359375 | 0.352179 | 0.323396 | 0 | 0.048264 | 0.243598 | 7,615 | 152 | 127 | 50.098684 | 0.796181 | 0.037426 | 0 | 0.215054 | 0 | 0 | 0.018255 | 0.003523 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.182796 | 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 |
8f2bee7f227ea439906adb5b88c023b019f3e42e | 801 | py | Python | Multitask-CNN-RNN/options/test_options.py | wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels | e6df7ffc9b0318fdce405e40993c79785b47c785 | [
"MIT"
] | 74 | 2020-03-08T15:29:00.000Z | 2022-03-05T14:57:33.000Z | Multitask-CNN/options/test_options.py | HKUST-NISL/Multitask-Emotion-Recognition-with-Incomplete-Labels | ac5152b7a4b9c6c54d13c06c9302270350e8ce3f | [
"MIT"
] | 19 | 2020-03-06T08:56:51.000Z | 2022-03-27T05:07:35.000Z | Multitask-CNN/options/test_options.py | wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels | e6df7ffc9b0318fdce405e40993c79785b47c785 | [
"MIT"
] | 23 | 2020-03-20T08:19:55.000Z | 2022-03-16T17:40:09.000Z | from .base_options import BaseOptions
class TestOptions(BaseOptions):
def initialize(self):
BaseOptions.initialize(self)
self.is_train = False
self._parser.add_argument('--teacher_model_path',default = '', type=str, help='the model to be evaluated')
self._parser.add_argument("--ev... | 44.5 | 123 | 0.681648 | 100 | 801 | 5.23 | 0.5 | 0.114723 | 0.14914 | 0.240918 | 0.137667 | 0.137667 | 0.137667 | 0 | 0 | 0 | 0 | 0.001522 | 0.179775 | 801 | 17 | 124 | 47.117647 | 0.794521 | 0 | 0 | 0.153846 | 0 | 0 | 0.19625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f2c9be7b4a82ab7a54a783cea091afb38649cd3 | 1,636 | py | Python | apps/commutes/migrations/0001_initial.py | kk6/sebastian | f01445c74ee621c26593b3806341dbfb62a32ffa | [
"MIT"
] | 1 | 2020-10-21T18:57:04.000Z | 2020-10-21T18:57:04.000Z | apps/commutes/migrations/0001_initial.py | kk6/sebastian | f01445c74ee621c26593b3806341dbfb62a32ffa | [
"MIT"
] | null | null | null | apps/commutes/migrations/0001_initial.py | kk6/sebastian | f01445c74ee621c26593b3806341dbfb62a32ffa | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-11-04 09:11
import commutes.utils
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Commute",
fields=[
... | 30.867925 | 87 | 0.41198 | 121 | 1,636 | 5.404959 | 0.61157 | 0.117737 | 0.036697 | 0.055046 | 0.137615 | 0.137615 | 0.137615 | 0.137615 | 0 | 0 | 0 | 0.033373 | 0.487164 | 1,636 | 52 | 88 | 31.461538 | 0.746126 | 0.027506 | 0 | 0.173913 | 1 | 0 | 0.073002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.152174 | 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 |
8f3092b0706121810e288e902c50273468e947e7 | 1,068 | py | Python | test_exigente.py | clebercarmo/BancoImobiliario | ac28d7211699f223f0448306aa58e3742033190c | [
"MIT"
] | null | null | null | test_exigente.py | clebercarmo/BancoImobiliario | ac28d7211699f223f0448306aa58e3742033190c | [
"MIT"
] | null | null | null | test_exigente.py | clebercarmo/BancoImobiliario | ac28d7211699f223f0448306aa58e3742033190c | [
"MIT"
] | null | null | null | import unittest
from exigente import Exigente
from propriedade import Propriedade
class ImpulsivoTest(unittest.TestCase):
def setUp(self):
self.exigente = Exigente("Cleber Carmo")
self.propriedade = Propriedade("Pampulha", 260, 50)
def test_deve_poder_comprar_quando_houver_saldo(self):
deveComprar = ... | 29.666667 | 90 | 0.794007 | 131 | 1,068 | 6.10687 | 0.320611 | 0.15 | 0.08 | 0.11 | 0.6275 | 0.535 | 0.4625 | 0.4625 | 0.4625 | 0.275 | 0 | 0.016026 | 0.123596 | 1,068 | 36 | 91 | 29.666667 | 0.838675 | 0 | 0 | 0.347826 | 0 | 0 | 0.033676 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.217391 | false | 0 | 0.130435 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f31f5ca21204c51445f3a0f0d04013930c71ccb | 1,512 | py | Python | clase_3/listas.py | cerd0c0nej0/ingenieria | 6364aa9e73e2dd951b5835cf5918b70dc18e94ec | [
"Apache-2.0"
] | null | null | null | clase_3/listas.py | cerd0c0nej0/ingenieria | 6364aa9e73e2dd951b5835cf5918b70dc18e94ec | [
"Apache-2.0"
] | null | null | null | clase_3/listas.py | cerd0c0nej0/ingenieria | 6364aa9e73e2dd951b5835cf5918b70dc18e94ec | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 2 07:13:58 2022
@author: LENOVO
"""
#lista en blanco
lista = []
#lista con elementos
lista2 = [1,2,3,4,5]
#Acceder a elementos de una lista
listAlumnos = ["juan", "luis", "pablo"]
alumnospos_1 = listAlumnos[1] #Hay 3 elementos y solo se puede elegir pero en este meto... | 28 | 144 | 0.722884 | 236 | 1,512 | 4.614407 | 0.423729 | 0.009183 | 0.008264 | 0.034894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040977 | 0.160714 | 1,512 | 53 | 145 | 28.528302 | 0.817179 | 0.511243 | 0 | 0.111111 | 0 | 0 | 0.067133 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f33bc0c39759cdf60072d68920ffcfaab5d4016 | 1,093 | py | Python | extract-cdk-outputs.py | aws-samples/scanned-documents-to-speech | 85700667c76f4ed320f8db647ea24974407e537d | [
"MIT-0"
] | 3 | 2022-02-24T05:35:26.000Z | 2022-03-30T22:27:27.000Z | extract-cdk-outputs.py | aws-samples/scanned-documents-to-speech | 85700667c76f4ed320f8db647ea24974407e537d | [
"MIT-0"
] | null | null | null | extract-cdk-outputs.py | aws-samples/scanned-documents-to-speech | 85700667c76f4ed320f8db647ea24974407e537d | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python3
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import json
import sys
outputs_file = sys.argv[1]
with open(outputs_file) as fp:
outputs_json = json.load(fp)
amplify_app_id = outputs_json["image-reader-amplify-stack"]["ImageReader... | 43.72 | 228 | 0.748399 | 146 | 1,093 | 5.520548 | 0.547945 | 0.081886 | 0.099256 | 0.136476 | 0.312655 | 0.312655 | 0.228288 | 0.131514 | 0.131514 | 0.131514 | 0 | 0.008264 | 0.114364 | 1,093 | 24 | 229 | 45.541667 | 0.82438 | 0.108875 | 0 | 0 | 0 | 0.133333 | 0.805355 | 0.345005 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f34696ffb6ba3f182497655d63be194ece078a2 | 359 | py | Python | migrations/20211109_01_xKblp-change-comments-on-black-jack-record.py | zw-g/Funny-Nation | bcb72e802e0ff46b4a409c5d51fc8b10e0987463 | [
"MIT"
] | 126 | 2022-01-15T02:29:07.000Z | 2022-03-30T09:57:40.000Z | migrations/20211109_01_xKblp-change-comments-on-black-jack-record.py | zw-g/Funny-Nation | bcb72e802e0ff46b4a409c5d51fc8b10e0987463 | [
"MIT"
] | 18 | 2022-01-11T22:24:35.000Z | 2022-03-16T00:13:01.000Z | migrations/20211109_01_xKblp-change-comments-on-black-jack-record.py | zw-g/Funny-Nation | bcb72e802e0ff46b4a409c5d51fc8b10e0987463 | [
"MIT"
] | 25 | 2022-01-22T15:06:27.000Z | 2022-03-01T04:34:19.000Z | """
change comments on black jack record
"""
from yoyo import step
__depends__ = {'20211103_04_Y0xbO-remove-uuid-s-primary-key-on-black-jack-record'}
steps = [
step("ALTER TABLE `blackJackGameRecord` CHANGE `status` `status` INT NOT NULL COMMENT '0 represent in progress; 1 represent lose; 2 represent win; 3 repr... | 29.916667 | 193 | 0.738162 | 51 | 359 | 5.078431 | 0.784314 | 0.054054 | 0.084942 | 0.131274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0.147632 | 359 | 11 | 194 | 32.636364 | 0.794118 | 0.100279 | 0 | 0 | 0 | 0.2 | 0.777778 | 0.269841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
8f34ffc8241dd4965178106302cc3b9f8eb6b8e3 | 30,344 | py | Python | examples/spinnaker-bandit/test_pop.py | such-a-git/neat-spinnaker | 78294750568bb82c79f403986b2e1a948949a2b6 | [
"BSD-3-Clause"
] | null | null | null | examples/spinnaker-bandit/test_pop.py | such-a-git/neat-spinnaker | 78294750568bb82c79f403986b2e1a948949a2b6 | [
"BSD-3-Clause"
] | null | null | null | examples/spinnaker-bandit/test_pop.py | such-a-git/neat-spinnaker | 78294750568bb82c79f403986b2e1a948949a2b6 | [
"BSD-3-Clause"
] | null | null | null | import spynnaker8 as p
# from spynnaker.pyNN.connections. \
# spynnaker_live_spikes_connection import SpynnakerLiveSpikesConnection
# from spinn_front_end_common.utilities.globals_variables import get_simulator
#
# import pylab
# from spynnaker.pyNN.spynnaker_external_device_plugin_manager import \
# SpynnakerE... | 49.662848 | 164 | 0.510678 | 3,395 | 30,344 | 4.279823 | 0.117231 | 0.013765 | 0.034687 | 0.010117 | 0.566896 | 0.521198 | 0.478734 | 0.453544 | 0.427736 | 0.407158 | 0 | 0.022443 | 0.393554 | 30,344 | 611 | 165 | 49.662848 | 0.767145 | 0.10872 | 0 | 0.357853 | 0 | 0 | 0.03838 | 0.00178 | 0 | 0 | 0.001557 | 0 | 0 | 0 | null | null | 0 | 0.049702 | null | null | 0.059642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f3f4d42623548a67feeba3ec2583cd2f89b8836 | 4,222 | py | Python | toy_train/trainer_utils.py | stevedicristofaro/toy_trainer | 4f6366baf90f8111239be157f99459e4f023e425 | [
"MIT"
] | null | null | null | toy_train/trainer_utils.py | stevedicristofaro/toy_trainer | 4f6366baf90f8111239be157f99459e4f023e425 | [
"MIT"
] | null | null | null | toy_train/trainer_utils.py | stevedicristofaro/toy_trainer | 4f6366baf90f8111239be157f99459e4f023e425 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Utility functions used in the training of models.
"""
from time import time
from importlib import import_module
from sklearn.datasets import load_iris, load_boston, load_digits
from sklearn.svm import SVC, SVR
from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
from sklear... | 34.048387 | 126 | 0.719327 | 516 | 4,222 | 5.651163 | 0.228682 | 0.035665 | 0.039095 | 0.042867 | 0.205418 | 0.116255 | 0.061043 | 0.061043 | 0.039781 | 0.039781 | 0 | 0 | 0.207485 | 4,222 | 124 | 127 | 34.048387 | 0.871488 | 0.004737 | 0 | 0.191176 | 0 | 0 | 0.062301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014706 | 0.25 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f41408aefcf59e230c51b2f86859d00ed77a059 | 439 | py | Python | Python/Reals/river_in_brazil/is_anagram.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | Python/Reals/river_in_brazil/is_anagram.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | Python/Reals/river_in_brazil/is_anagram.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | class Solution(object):
def isAnagram(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
letters = [0 for i in range(256)]
for i in range(len(s)):
letters[ord(s[i])] += 1
for i in range(len(t)):
letters[ord(t[i])] -= 1
... | 25.823529 | 41 | 0.439636 | 59 | 439 | 3.271186 | 0.440678 | 0.082902 | 0.124352 | 0.227979 | 0.238342 | 0.165803 | 0.165803 | 0 | 0 | 0 | 0 | 0.027559 | 0.421412 | 439 | 16 | 42 | 27.4375 | 0.732283 | 0.08656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 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 |
8f41f943120450b779b2bd0a61674a3360dbb779 | 2,489 | py | Python | src/services/AuthService/server/controller.py | rafibayer/ShortCx | f8acc01f59274550ba7703b0889cba3817cc6972 | [
"MIT"
] | 1 | 2021-07-22T04:08:30.000Z | 2021-07-22T04:08:30.000Z | src/services/AuthService/server/controller.py | rafibayer/ShortCx | f8acc01f59274550ba7703b0889cba3817cc6972 | [
"MIT"
] | null | null | null | src/services/AuthService/server/controller.py | rafibayer/ShortCx | f8acc01f59274550ba7703b0889cba3817cc6972 | [
"MIT"
] | null | null | null | import bcrypt
import exceptions
import apiservice_pb2
import logging
# String encoding to convert between str and bytes
STR_ENCODING = 'utf-8'
class Controller:
def __init__(self, datastore: 'DataStore', sessionstore: 'SessionStore'):
"""Create a new Controller object
Args:
datastore... | 36.072464 | 116 | 0.691844 | 247 | 2,489 | 6.854251 | 0.340081 | 0.076787 | 0.033668 | 0.029533 | 0.033077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005789 | 0.236641 | 2,489 | 68 | 117 | 36.602941 | 0.885263 | 0.335074 | 0 | 0 | 0 | 0 | 0.017882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.16 | 0.16 | 0 | 0.56 | 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 |
8f4422ef13b9fb904b0a68424f7d679a46fc5da3 | 803 | py | Python | admin01/migrations/0007_connect.py | ckjh/shopping | 4c341645e55c718e02bbc50f42775ec756f49268 | [
"MIT"
] | null | null | null | admin01/migrations/0007_connect.py | ckjh/shopping | 4c341645e55c718e02bbc50f42775ec756f49268 | [
"MIT"
] | null | null | null | admin01/migrations/0007_connect.py | ckjh/shopping | 4c341645e55c718e02bbc50f42775ec756f49268 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-08-27 00:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('admin01', '0006_delete_connect'),
]
operations = [
migrations.CreateModel(
name='Connect',
... | 30.884615 | 122 | 0.594022 | 86 | 803 | 5.430233 | 0.523256 | 0.068522 | 0.089936 | 0.141328 | 0.197002 | 0.197002 | 0.197002 | 0.197002 | 0.197002 | 0 | 0 | 0.042662 | 0.270237 | 803 | 25 | 123 | 32.12 | 0.754266 | 0.05604 | 0 | 0 | 1 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
8f4a71d565f2c0f580866259c84e05e75ebebdce | 3,044 | py | Python | cli/kamonohashi/cli/account.py | yonetatuu/kamonohashi | dc5840e0bffce0d968b9ae3f25f775ed9562436a | [
"Apache-2.0"
] | null | null | null | cli/kamonohashi/cli/account.py | yonetatuu/kamonohashi | dc5840e0bffce0d968b9ae3f25f775ed9562436a | [
"Apache-2.0"
] | null | null | null | cli/kamonohashi/cli/account.py | yonetatuu/kamonohashi | dc5840e0bffce0d968b9ae3f25f775ed9562436a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, with_statement
import click
from kamonohashi.op import rest
from kamonohashi.cli import configuration
from kamonohashi.cli import pprint
@click.group()
def account():
"""Manage your KAMONOHASHI account"""
@account.command()
@clic... | 42.277778 | 124 | 0.721748 | 402 | 3,044 | 5.291045 | 0.251244 | 0.037612 | 0.030559 | 0.042313 | 0.459332 | 0.3874 | 0.294311 | 0.235073 | 0.235073 | 0.235073 | 0 | 0.004973 | 0.141262 | 3,044 | 71 | 125 | 42.873239 | 0.808722 | 0.045007 | 0 | 0.240741 | 0 | 0 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.074074 | 0.092593 | 0 | 0.166667 | 0.240741 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f554ecfe8f0785e3cccafa8e85c10e2bc9024a9 | 251 | py | Python | hitme/hitme_game/routing.py | jshan430/csc667 | 72cbbfbd6d98fbc7157695b12bcc7a585df24d21 | [
"MIT"
] | null | null | null | hitme/hitme_game/routing.py | jshan430/csc667 | 72cbbfbd6d98fbc7157695b12bcc7a585df24d21 | [
"MIT"
] | null | null | null | hitme/hitme_game/routing.py | jshan430/csc667 | 72cbbfbd6d98fbc7157695b12bcc7a585df24d21 | [
"MIT"
] | null | null | null | # hitme_game/routing.py
from django.conf.urls import url
from django.urls import path
from . import consumers
websocket_urlpatterns = [
url(r'^ws/lobby/$', consumers.LobbyConsumer),
path('ws/game/<game_url>/', consumers.GameRoomConsumer),
]
| 22.818182 | 60 | 0.741036 | 33 | 251 | 5.545455 | 0.575758 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12749 | 251 | 10 | 61 | 25.1 | 0.835616 | 0.083665 | 0 | 0 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8f576132c4e1ec49f9ddbc6caccf3843ad1e75be | 1,835 | py | Python | 001719StepPyStudyJr/StepPyStudyJr_lesson05_02_datetime_01_20210307.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001719StepPyStudyJr/StepPyStudyJr_lesson05_02_datetime_01_20210307.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001719StepPyStudyJr/StepPyStudyJr_lesson05_02_datetime_01_20210307.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | import datetime
print("---------------------------------------")
print("Enter 1 if you want to know about the year (365 or 366 days).")
print("Enter 2 if you want to know about the age group.")
print("Enter 3 if you want to know about the age in seconds.")
print("-------------------------------------")
birth_day = int... | 38.229167 | 112 | 0.544414 | 255 | 1,835 | 3.882353 | 0.290196 | 0.036364 | 0.027273 | 0.033333 | 0.075758 | 0.075758 | 0.075758 | 0.052525 | 0 | 0 | 0 | 0.046494 | 0.26158 | 1,835 | 47 | 113 | 39.042553 | 0.684133 | 0.039237 | 0 | 0.068182 | 0 | 0 | 0.317018 | 0.043256 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.022727 | 0.409091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f5e2521cb076164a984e273d7a5e10a6ee05673 | 326 | py | Python | tests/compound_test.py | cadia-lvl/lvl_tts_frontend | 5100cba30d77424899679044c90a0de9f9c1777a | [
"Apache-2.0"
] | null | null | null | tests/compound_test.py | cadia-lvl/lvl_tts_frontend | 5100cba30d77424899679044c90a0de9f9c1777a | [
"Apache-2.0"
] | 1 | 2021-06-01T11:56:52.000Z | 2021-06-01T11:56:52.000Z | tests/compound_test.py | cadia-lvl/lvl_tts_frontend | 5100cba30d77424899679044c90a0de9f9c1777a | [
"Apache-2.0"
] | 2 | 2019-11-11T10:15:36.000Z | 2019-12-05T10:43:59.000Z | import unittest
from pron_dict_quality_assurance import compound_analysis
class TestCompound(unittest.TestCase):
def test_compound_analysis(self):
comp_tree = compound_analysis.build_compound_tree('framhaldsskólanemendur')
elem_arr = []
comp_tree.preorder(elem_arr)
print(str(elem_... | 27.166667 | 83 | 0.754601 | 38 | 326 | 6.105263 | 0.631579 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174847 | 326 | 11 | 84 | 29.636364 | 0.862454 | 0 | 0 | 0 | 0 | 0 | 0.067485 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0.125 | 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 |
8f664c7d7e0c6fa6c619eea0bc4fde2365b6db6b | 2,985 | py | Python | interfaces/ATS_VM/python_apps/pypo/pypoliqqueue.py | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | interfaces/ATS_VM/python_apps/pypo/pypoliqqueue.py | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | interfaces/ATS_VM/python_apps/pypo/pypoliqqueue.py | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | from threading import Thread
from collections import deque
from datetime import datetime
import traceback
import sys
import time
from Queue import Empty
import signal
def keyboardInterruptHandler(signum, frame):
logger = logging.getLogger()
logger.info('\nKeyboard Interrupt\n')
sys.exit(0)
signal.signal... | 33.166667 | 93 | 0.556114 | 316 | 2,985 | 5.041139 | 0.338608 | 0.062147 | 0.081607 | 0.106717 | 0.175769 | 0.126805 | 0.095417 | 0.052731 | 0.052731 | 0 | 0 | 0.011141 | 0.368509 | 2,985 | 89 | 94 | 33.539326 | 0.833952 | 0.026466 | 0 | 0.107692 | 0 | 0 | 0.055677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.123077 | 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 |
56b0f26ea55f71b16393b4c29cc9934282b29647 | 1,264 | py | Python | hashtable/hashtable/hashtable.py | RichWhitehead/data-structures-and-algorithms_401 | 9dfce6b14b7117ab5b6c20c48521ce747d37132f | [
"MIT"
] | null | null | null | hashtable/hashtable/hashtable.py | RichWhitehead/data-structures-and-algorithms_401 | 9dfce6b14b7117ab5b6c20c48521ce747d37132f | [
"MIT"
] | null | null | null | hashtable/hashtable/hashtable.py | RichWhitehead/data-structures-and-algorithms_401 | 9dfce6b14b7117ab5b6c20c48521ce747d37132f | [
"MIT"
] | null | null | null | from linked_list import LinkedList:
class Hashtable:
def __init__(self, size=1024):
self.size = size
self._buckets = [None] * size
def add(self, key, value):
hashed_key = self._hash(key)
if not self._buckets[hashed_key]:
self._buckets[hashed_key] = LinkedList()... | 24.784314 | 115 | 0.570411 | 163 | 1,264 | 4.276074 | 0.429448 | 0.077475 | 0.097561 | 0.114778 | 0.057389 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013174 | 0.339399 | 1,264 | 50 | 116 | 25.28 | 0.821557 | 0.091772 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | 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 |
56b2073820927f0d2a66c6b4a63ecabfde51173c | 981 | py | Python | test/bankIT.py | JoslaTech/casba-web-master | c405cca76b8c1b0d3681242f837af9ca51f4f70d | [
"Apache-2.0"
] | null | null | null | test/bankIT.py | JoslaTech/casba-web-master | c405cca76b8c1b0d3681242f837af9ca51f4f70d | [
"Apache-2.0"
] | null | null | null | test/bankIT.py | JoslaTech/casba-web-master | c405cca76b8c1b0d3681242f837af9ca51f4f70d | [
"Apache-2.0"
] | 1 | 2019-01-16T08:35:42.000Z | 2019-01-16T08:35:42.000Z | import os
import time
from flask import Flask, request
import hashlib
import requests
app = Flask(__name__)
@app.route('/')
def index():
transId = ''.join(["JE", str(time.time()), "bankIT"])
print transId
terminalId = "0000000001"
amount = 1000
responseURL = request.base_url
print response... | 25.815789 | 223 | 0.688073 | 114 | 981 | 5.754386 | 0.508772 | 0.009146 | 0.009146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033007 | 0.166157 | 981 | 37 | 224 | 26.513514 | 0.768949 | 0.030581 | 0 | 0 | 0 | 0 | 0.172632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56b7059e2d30f783a512a89a2fe838ef6180bbc6 | 19,546 | py | Python | code/load_data.py | grgmiller/hourly_carbon_accounting | 45eabb78bb7616840c536acf1b9b8d8f4bd87e75 | [
"MIT"
] | null | null | null | code/load_data.py | grgmiller/hourly_carbon_accounting | 45eabb78bb7616840c536acf1b9b8d8f4bd87e75 | [
"MIT"
] | null | null | null | code/load_data.py | grgmiller/hourly_carbon_accounting | 45eabb78bb7616840c536acf1b9b8d8f4bd87e75 | [
"MIT"
] | null | null | null |
import pandas as pd
import numpy as np
import os
import re
def load_hourly_efs(ba_list, ef_year, ef_type):
for ba in ba_list:
# if this is the first item in the list
if ba_list.index(ba) == 0:
ef = pd.read_csv(f'../data/processed/singularity_efs/{ba}.csv', usecols=[
... | 49.862245 | 258 | 0.588663 | 2,597 | 19,546 | 4.250674 | 0.15826 | 0.020292 | 0.016306 | 0.013588 | 0.707039 | 0.684211 | 0.668267 | 0.660295 | 0.651327 | 0.646435 | 0 | 0.030458 | 0.29955 | 19,546 | 391 | 259 | 49.98977 | 0.775838 | 0.215441 | 0 | 0.429907 | 0 | 0.014019 | 0.309486 | 0.153593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0.004673 | 0.018692 | 0 | 0.051402 | 0.018692 | 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 |
56b9d6de93a35ffa772b6a434379d1c60fd4e7e7 | 1,010 | py | Python | build/lib/SkypeURI/SkypeURI.py | AlexNiculae/GOSH-FHIRworks2020-SkypeURI | ca7e1c9ca9446e6064d27590c57da30416fd04b9 | [
"Apache-2.0"
] | null | null | null | build/lib/SkypeURI/SkypeURI.py | AlexNiculae/GOSH-FHIRworks2020-SkypeURI | ca7e1c9ca9446e6064d27590c57da30416fd04b9 | [
"Apache-2.0"
] | null | null | null | build/lib/SkypeURI/SkypeURI.py | AlexNiculae/GOSH-FHIRworks2020-SkypeURI | ca7e1c9ca9446e6064d27590c57da30416fd04b9 | [
"Apache-2.0"
] | null | null | null | from fhir_parser import FHIR
from typing import List
class SkypeURI:
def __getSkypePrefixURI(self, patientUUIDs: List[str]):
url = "skype:"
for index, patientUUID in enumerate(patientUUIDs):
if index == 9:
break
patient = FHIR().get_patient(patientUUID)
... | 27.297297 | 74 | 0.572277 | 100 | 1,010 | 5.68 | 0.42 | 0.112676 | 0.140845 | 0.161972 | 0.387324 | 0.341549 | 0.341549 | 0.341549 | 0.341549 | 0.232394 | 0 | 0.01 | 0.306931 | 1,010 | 36 | 75 | 28.055556 | 0.801429 | 0 | 0 | 0.269231 | 0 | 0 | 0.063429 | 0.02775 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.423077 | 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 |
56ba4f5ad8ab4652a6c050fc6e78d6d1b2a9dd56 | 1,717 | py | Python | machine_learning_model.py | solo2002/PycharmProjects | 0613182756ed02f5292b4034f3dc9807cf3cc096 | [
"MIT"
] | null | null | null | machine_learning_model.py | solo2002/PycharmProjects | 0613182756ed02f5292b4034f3dc9807cf3cc096 | [
"MIT"
] | null | null | null | machine_learning_model.py | solo2002/PycharmProjects | 0613182756ed02f5292b4034f3dc9807cf3cc096 | [
"MIT"
] | null | null | null | from sklearn import datasets
from sklearn import svm
import numpy as np
iris = datasets.load_iris()
# SVM
clf = svm.LinearSVC()
print 'iris.data', type(iris.data)
print 'iris.target', type(iris.target)
target = [1,0,0,0,1,0,0]
data =[[ 5.1, 3.5, 1.4, 0.2],
[ 4.9, 3., 1.4, 0.2],
[ 4.7, 3.2, 1.3, 0.2],
[ 4... | 26.828125 | 78 | 0.683751 | 304 | 1,717 | 3.828947 | 0.292763 | 0.09622 | 0.056701 | 0.010309 | 0.158935 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0.066302 | 0.147932 | 1,717 | 64 | 79 | 26.828125 | 0.729323 | 0.138614 | 0 | 0.045455 | 0 | 0 | 0.056501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56bd2917da051ae54b7f5361ebd98eb7326b79c0 | 390 | py | Python | backend_rest/invoices/migrations/0002_auto_20200711_1437.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | backend_rest/invoices/migrations/0002_auto_20200711_1437.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | 33 | 2020-03-14T17:29:33.000Z | 2022-03-12T00:19:30.000Z | backend_rest/invoices/migrations/0002_auto_20200711_1437.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-07-11 11:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('invoices', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='invoicedoc',
name='file',
... | 20.526316 | 62 | 0.592308 | 41 | 390 | 5.560976 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0681 | 0.284615 | 390 | 18 | 63 | 21.666667 | 0.749104 | 0.115385 | 0 | 0 | 1 | 0 | 0.137026 | 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 |
56c357a1fe2bfdadd5142bf9065956af0a082cb8 | 1,524 | py | Python | blueprints/apiv1.py | VMAJSTER/openstreamingplatform | f002246db922dab9a3f019f46001f3901326feaf | [
"MIT"
] | 40 | 2020-07-15T16:17:16.000Z | 2022-03-14T12:25:40.000Z | blueprints/apiv1.py | VMAJSTER/openstreamingplatform | f002246db922dab9a3f019f46001f3901326feaf | [
"MIT"
] | 9 | 2020-05-13T17:22:49.000Z | 2022-03-12T00:29:41.000Z | blueprints/apiv1.py | VMAJSTER/openstreamingplatform | f002246db922dab9a3f019f46001f3901326feaf | [
"MIT"
] | 13 | 2020-10-01T05:31:00.000Z | 2022-02-09T07:40:57.000Z | import sys
from os import path, remove
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
from flask import Blueprint, url_for
from flask_restplus import Api, Resource, reqparse
from .apis.server_ns import api as serverNS
from .apis.channel_ns import api as channelNS
from .apis.stream_ns import api ... | 29.307692 | 199 | 0.734908 | 220 | 1,524 | 4.931818 | 0.418182 | 0.082949 | 0.091244 | 0.107834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.154856 | 1,524 | 51 | 200 | 29.882353 | 0.83618 | 0.099081 | 0 | 0 | 0 | 0 | 0.096197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.361111 | 0 | 0.444444 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56d0018d4880337b922b4437e4d5a1a472ed305d | 4,890 | py | Python | sources/VS/ThirdParty/wxWidgets/misc/languages/genlang.py | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | 86 | 2015-08-06T11:30:01.000Z | 2022-02-28T04:50:22.000Z | sources/VS/ThirdParty/wxWidgets/misc/languages/genlang.py | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | 14 | 2016-09-21T21:24:46.000Z | 2016-11-15T07:54:21.000Z | sources/VS/ThirdParty/wxWidgets/misc/languages/genlang.py | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | 22 | 2015-11-04T04:04:54.000Z | 2022-02-28T04:50:24.000Z | #!/usr/bin/env python
# Run this script from top-level wxWidgets directory to update the contents of
# include/wx/intl.h and src/common/intl.cpp using information from langtabl.txt
#
# Warning: error detection and reporting here is rudimentary, check if the
# files were updated correctly with "git diff" before committ... | 28.103448 | 90 | 0.596319 | 590 | 4,890 | 4.898305 | 0.364407 | 0.022491 | 0.021799 | 0.024913 | 0.163322 | 0.103806 | 0.06436 | 0.06436 | 0.06436 | 0.06436 | 0 | 0.01075 | 0.277096 | 4,890 | 173 | 91 | 28.265896 | 0.806789 | 0.064826 | 0 | 0.104839 | 0 | 0 | 0.45797 | 0.085472 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024194 | null | null | 0.040323 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56d6c1ac4fd14b81cf443578da8fe5ba0fdc31fb | 2,237 | py | Python | setup.py | lawrenae/gcp-variant-transforms | 47844f7f1d2d40948674d127037eb666ae552beb | [
"Apache-2.0"
] | null | null | null | setup.py | lawrenae/gcp-variant-transforms | 47844f7f1d2d40948674d127037eb666ae552beb | [
"Apache-2.0"
] | null | null | null | setup.py | lawrenae/gcp-variant-transforms | 47844f7f1d2d40948674d127037eb666ae552beb | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 34.953125 | 79 | 0.699598 | 283 | 2,237 | 5.487633 | 0.55477 | 0.038635 | 0.038635 | 0.020605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010734 | 0.208762 | 2,237 | 63 | 80 | 35.507937 | 0.866667 | 0.505141 | 0 | 0 | 0 | 0 | 0.507951 | 0.120674 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.068966 | 0 | 0.103448 | 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 |
56d7c1bdc7fe1e14b43b629b89c66419ec2e22f9 | 494 | py | Python | clothes/migrations/0002_auto_20210331_1054.py | daikikuchi/Personal-closet | 88cb67a2f9c1ff3e572ec22f4d217449f1c4c816 | [
"MIT"
] | null | null | null | clothes/migrations/0002_auto_20210331_1054.py | daikikuchi/Personal-closet | 88cb67a2f9c1ff3e572ec22f4d217449f1c4c816 | [
"MIT"
] | 3 | 2021-03-30T13:12:42.000Z | 2021-04-13T00:45:25.000Z | clothes/migrations/0002_auto_20210331_1054.py | daikikuchi/Personal-closet | 88cb67a2f9c1ff3e572ec22f4d217449f1c4c816 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-31 01:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clothes', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='tag',
options={'ordering': ['name']}... | 21.478261 | 59 | 0.550607 | 48 | 494 | 5.625 | 0.770833 | 0.051852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05638 | 0.317814 | 494 | 22 | 60 | 22.454545 | 0.744807 | 0.091093 | 0 | 0.125 | 1 | 0 | 0.091723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 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 |
56d9cf0d2f223ea4c655bd48a3da94040afe173b | 1,202 | py | Python | Example/Pluton/Plugins/Example/Example.py | EquiFox/Pluton | d5d6db7066e714b33ee5eafc8b3ff54e312ba989 | [
"MIT"
] | 1 | 2017-08-25T02:21:22.000Z | 2017-08-25T02:21:22.000Z | Example/Pluton/Plugins/Example/Example.py | EquiFox/Pluton | d5d6db7066e714b33ee5eafc8b3ff54e312ba989 | [
"MIT"
] | null | null | null | Example/Pluton/Plugins/Example/Example.py | EquiFox/Pluton | d5d6db7066e714b33ee5eafc8b3ff54e312ba989 | [
"MIT"
] | null | null | null | import clr
import sys
clr.AddReferenceByPartialName("UnityEngine")
clr.AddReferenceByPartialName("Pluton")
import UnityEngine
import Pluton
from Pluton import InvItem
from System import *
from UnityEngine import *
class Example:
def On_PlayerConnected(self, player):
for p in Server.ActivePlayers:
if(p.Name != p... | 33.388889 | 115 | 0.701331 | 170 | 1,202 | 4.947059 | 0.429412 | 0.049941 | 0.030916 | 0.033294 | 0.237812 | 0.237812 | 0.180737 | 0.180737 | 0.180737 | 0.180737 | 0 | 0.008815 | 0.150582 | 1,202 | 35 | 116 | 34.342857 | 0.813908 | 0 | 0 | 0.125 | 0 | 0 | 0.173189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.21875 | 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 |
56e9d62551f67ab2f29c45cb42b9c0dd588cae5a | 753 | py | Python | interpret/models/layers.py | ttumiel/interpret | aeecb00bf65376668a48895cb707beb6dd8fb7ab | [
"MIT"
] | 14 | 2019-10-28T18:49:31.000Z | 2021-03-25T12:13:35.000Z | interpret/models/layers.py | ttumiel/interpret | aeecb00bf65376668a48895cb707beb6dd8fb7ab | [
"MIT"
] | null | null | null | interpret/models/layers.py | ttumiel/interpret | aeecb00bf65376668a48895cb707beb6dd8fb7ab | [
"MIT"
] | null | null | null | import torch
from torch import nn
__all__ = ['Lambda', 'GeneralizedReLU']
class Lambda(nn.Module):
def __init__(self, fn):
super().__init__()
self.fn = fn
def forward(self, x):
return self.fn(x)
def __repr__(self):
return f"Lambda({self.fn.__name__})"
class GeneralizedReL... | 26.892857 | 85 | 0.616202 | 106 | 753 | 4.04717 | 0.330189 | 0.09324 | 0.083916 | 0.06993 | 0.088578 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001799 | 0.26162 | 753 | 27 | 86 | 27.888889 | 0.769784 | 0 | 0 | 0.181818 | 0 | 0 | 0.062417 | 0.034529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56eab58b18d6f88b22b518cd9ff5b747d457f041 | 493 | py | Python | main.py | estkungzc/cronjob-python | 386762220d7aa50e594f4866a45fb82c7855ab08 | [
"MIT"
] | null | null | null | main.py | estkungzc/cronjob-python | 386762220d7aa50e594f4866a45fb82c7855ab08 | [
"MIT"
] | null | null | null | main.py | estkungzc/cronjob-python | 386762220d7aa50e594f4866a45fb82c7855ab08 | [
"MIT"
] | null | null | null | import schedule
import time
import logging
from typing import Any, Callable, List
from jobs import job_1, job_2
from utils import setup_logging
setup_logging()
def main() -> None:
logging.info("[START] Running Cronjob...")
# Scheduling your tasks
my_jobs: List[Callable[..., Any]] = [job_1, job_2]
... | 17.607143 | 54 | 0.663286 | 69 | 493 | 4.492754 | 0.565217 | 0.025806 | 0.045161 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018277 | 0.223124 | 493 | 27 | 55 | 18.259259 | 0.791123 | 0.042596 | 0 | 0 | 0 | 0 | 0.07234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 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 |
56f98b897f232720f971622ad7968d82b9b7568e | 404 | py | Python | beatmap_collections/templatetags/round_up.py | Siraphop4Nene/beattosetto | 78911428092c9c157c835e70d8abd4a08c48da8b | [
"MIT"
] | null | null | null | beatmap_collections/templatetags/round_up.py | Siraphop4Nene/beattosetto | 78911428092c9c157c835e70d8abd4a08c48da8b | [
"MIT"
] | 14 | 2021-11-12T06:38:40.000Z | 2022-03-09T02:25:47.000Z | beatmap_collections/templatetags/round_up.py | Siraphop4Nene/beattosetto | 78911428092c9c157c835e70d8abd4a08c48da8b | [
"MIT"
] | null | null | null | from django import template
import math
register = template.Library()
def round_up(value):
"""
Rounds up a value to the nearest integer.
Arguments:
value (float): The value to round up.
Returns:
int: The rounded up value.
"""
try:
return int(math.ceil(float(value)))
... | 16.833333 | 45 | 0.633663 | 52 | 404 | 4.865385 | 0.538462 | 0.110672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274752 | 404 | 23 | 46 | 17.565217 | 0.863481 | 0.336634 | 0 | 0 | 0 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
56f99d28c7d424e0f351caefe90958d1a622f32a | 1,038 | py | Python | hubconf.py | alasdairtran/pytorch-transformers | 0220c878839634ea7057528e871544ae9c943a10 | [
"Apache-2.0"
] | null | null | null | hubconf.py | alasdairtran/pytorch-transformers | 0220c878839634ea7057528e871544ae9c943a10 | [
"Apache-2.0"
] | null | null | null | hubconf.py | alasdairtran/pytorch-transformers | 0220c878839634ea7057528e871544ae9c943a10 | [
"Apache-2.0"
] | null | null | null | from hubconfs.bert_hubconf import (bertForMaskedLM, bertForMultipleChoice,
bertForNextSentencePrediction,
bertForPreTraining,
bertForQuestionAnswering,
bertForSequenceClassificatio... | 57.666667 | 74 | 0.529865 | 47 | 1,038 | 11.595745 | 0.744681 | 0.088073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010084 | 0.426782 | 1,038 | 17 | 75 | 61.058824 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.026012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56fabac8f04a875b3de43d10b742e56d8d928e55 | 339 | py | Python | scrapy_statsd/tests/test_project/test_project/spiders/test.py | vinayan3/scrapy-statsd | 12d90c6ac8c20f3c26e24b603e8b3c732ee6d4fc | [
"MIT"
] | 8 | 2016-08-14T22:17:37.000Z | 2019-01-03T08:45:17.000Z | scrapy_statsd/tests/test_project/test_project/spiders/test.py | TeamHG-Memex/scrapy-statsd | 7bbf8c6aca71ee8a8481a560c63bead880d7843d | [
"MIT"
] | 2 | 2016-09-10T19:46:01.000Z | 2018-04-12T22:53:24.000Z | scrapy_statsd/tests/test_project/test_project/spiders/test.py | TeamHG-Memex/scrapy-statsd | 7bbf8c6aca71ee8a8481a560c63bead880d7843d | [
"MIT"
] | 6 | 2016-08-22T10:21:06.000Z | 2022-03-16T00:51:53.000Z | # -*- coding: utf-8 -*-
import scrapy
from scrapy_statsd.tests.test_project.test_project.items import TestProjectItem
class TestSpider(scrapy.Spider):
name = "test"
allowed_domains = ["github.com"]
start_urls = (
'https://github.com/scrapy/scrapy',
)
def parse(self, response):
yiel... | 26.076923 | 79 | 0.675516 | 39 | 339 | 5.74359 | 0.717949 | 0.098214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.19469 | 339 | 13 | 80 | 26.076923 | 0.81685 | 0.061947 | 0 | 0 | 0 | 0 | 0.14511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.7 | 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 |
56fe41312867715dfe6e29192a226ef70e343009 | 3,610 | py | Python | code/utils.py | yangfenglong/mAML1.0 | 8d68ecc22037d029174cac196969d1bbc4487a8f | [
"MIT"
] | 7 | 2020-07-22T02:42:20.000Z | 2022-03-25T08:56:08.000Z | code/utils.py | Chengyao-Peng/mAML1.0 | 8d68ecc22037d029174cac196969d1bbc4487a8f | [
"MIT"
] | 2 | 2019-11-27T11:06:35.000Z | 2021-02-09T03:53:12.000Z | code/utils.py | Chengyao-Peng/mAML1.0 | 8d68ecc22037d029174cac196969d1bbc4487a8f | [
"MIT"
] | 1 | 2022-01-07T16:03:57.000Z | 2022-01-07T16:03:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Yangfenglong
# @Date: 2019-05-20
"""
set of useful functions
usage: import useful_functions as uf
uf.create_dir(dir)
"""
import os
import hashlib
from datetime import datetime
import logging
import traceback
from functools import wraps
from sklearn.base i... | 29.112903 | 104 | 0.618837 | 429 | 3,610 | 5.079254 | 0.428904 | 0.033043 | 0.026159 | 0.031666 | 0.092703 | 0.078017 | 0.07251 | 0.07251 | 0.07251 | 0.07251 | 0 | 0.006313 | 0.254017 | 3,610 | 123 | 105 | 29.349594 | 0.802822 | 0.228532 | 0 | 0.051948 | 0 | 0 | 0.097806 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 1 | 0.194805 | false | 0.012987 | 0.12987 | 0.025974 | 0.506494 | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
71005ed1fd971636d35d42231a26cf2483018c2c | 2,573 | py | Python | ipfsApi/commands.py | rybalko/python-ipfs-api | 11717c31dd675e30c5d3ddb4bc9dc622a24ee421 | [
"MIT"
] | 1 | 2018-08-14T02:10:35.000Z | 2018-08-14T02:10:35.000Z | ipfsApi/commands.py | ipfs-client-libraries/python-ipfs-api | 841595f7d2b07db511eef34aa046163ee4a3020e | [
"MIT"
] | null | null | null | ipfsApi/commands.py | ipfs-client-libraries/python-ipfs-api | 841595f7d2b07db511eef34aa046163ee4a3020e | [
"MIT"
] | 1 | 2022-01-28T13:37:31.000Z | 2022-01-28T13:37:31.000Z | from __future__ import absolute_import
import os
import six
from . import multipart
from .exceptions import InvalidArguments
from .multipart import default_chunk_size
class Command(object):
def __init__(self, path):
self.path = path
def request(self, client, *args, **kwargs):
return clien... | 33.855263 | 78 | 0.597357 | 287 | 2,573 | 5.243902 | 0.327526 | 0.053156 | 0.037209 | 0.053156 | 0.322924 | 0.213953 | 0.152824 | 0.152824 | 0.09701 | 0.09701 | 0 | 0 | 0.304314 | 2,573 | 75 | 79 | 34.306667 | 0.840782 | 0.148465 | 0 | 0.162791 | 0 | 0 | 0.021541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.139535 | 0.046512 | 0.604651 | 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 |
710cf505f7642a6bf3805d8a358db62e2ae77495 | 1,524 | py | Python | MDRSREID/utils/data_utils/evaluations/PGFA/part_label.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 43 | 2020-09-20T09:40:04.000Z | 2022-03-29T11:25:22.000Z | MDRSREID/utils/data_utils/evaluations/PGFA/part_label.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 19 | 2020-10-05T05:35:38.000Z | 2021-12-10T03:17:31.000Z | MDRSREID/utils/data_utils/evaluations/PGFA/part_label.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 18 | 2020-10-01T14:41:53.000Z | 2021-09-02T06:57:57.000Z | import cv2 as cv
import numpy as np
import scipy
from PIL import Image
import os
import scipy
import json
def part_label_generate(imgname, part_num, imgh):
if not os.path.isfile(imgname): ##If there is no pose json file, part_label=1
final_label = np.ones(part_num)
else:
with open(imgname, 'r... | 33.130435 | 99 | 0.543963 | 216 | 1,524 | 3.662037 | 0.361111 | 0.106195 | 0.060683 | 0.088496 | 0.150442 | 0.150442 | 0.068268 | 0 | 0 | 0 | 0 | 0.017418 | 0.35958 | 1,524 | 45 | 100 | 33.866667 | 0.793033 | 0.084646 | 0 | 0.225 | 1 | 0 | 0.030347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.175 | 0 | 0.25 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7110f755b9b8846cb5034a42b5f8331cc54f5d04 | 1,868 | py | Python | app_new.py | Chandu2000/pra | 034b02b32f35601bd6bd6248e3c0233267cd65ee | [
"MIT"
] | null | null | null | app_new.py | Chandu2000/pra | 034b02b32f35601bd6bd6248e3c0233267cd65ee | [
"MIT"
] | null | null | null | app_new.py | Chandu2000/pra | 034b02b32f35601bd6bd6248e3c0233267cd65ee | [
"MIT"
] | null | null | null | from flask import Flask,request,render_template
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
import pandas as pd
import numpy as np
import pickle
#pip freeze > requirements.txt
app=Flask(__name__)
@app.route('/kidneydisease',methods=['GET','POST'])
def kidne... | 30.129032 | 85 | 0.747859 | 270 | 1,868 | 4.918519 | 0.281481 | 0.099398 | 0.105422 | 0.084337 | 0.695783 | 0.638554 | 0.638554 | 0.605422 | 0.605422 | 0.605422 | 0 | 0.005307 | 0.092077 | 1,868 | 61 | 86 | 30.622951 | 0.777712 | 0.051927 | 0 | 0.510638 | 0 | 0 | 0.185374 | 0.056689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.12766 | 0.042553 | 0.340426 | 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 |
7118318718afd470282dc63f33431fc033fe683e | 2,378 | py | Python | setup.py | artas728/panini | c7bfac4c80d105d0e78ea5afbabd9f2729fdf935 | [
"MIT"
] | 1 | 2021-03-29T16:10:27.000Z | 2021-03-29T16:10:27.000Z | setup.py | artas728/panini | c7bfac4c80d105d0e78ea5afbabd9f2729fdf935 | [
"MIT"
] | null | null | null | setup.py | artas728/panini | c7bfac4c80d105d0e78ea5afbabd9f2729fdf935 | [
"MIT"
] | null | null | null | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
long_description = """
Panini is a modern framework for quick development of streaming microservices.
Our goal is to create fastapi/aiohttp/flask-like solution but for NATS streaming.
The framework allows you to work with NATS featu... | 32.135135 | 105 | 0.622792 | 279 | 2,378 | 5.258065 | 0.555556 | 0.0409 | 0.02863 | 0.051125 | 0.063395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029589 | 0.232548 | 2,378 | 73 | 106 | 32.575342 | 0.774247 | 0.020185 | 0 | 0.044118 | 0 | 0 | 0.635582 | 0.054147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014706 | 0 | 0.014706 | 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 |
711c5ccaf19ff6a8f19500d52b4107c10d392fa5 | 690 | py | Python | dev/envir_def.py | karimtito/efficient-statistical | be6167cd7c213bc20baebea09b3e890eb1681b1f | [
"Apache-2.0"
] | null | null | null | dev/envir_def.py | karimtito/efficient-statistical | be6167cd7c213bc20baebea09b3e890eb1681b1f | [
"Apache-2.0"
] | null | null | null | dev/envir_def.py | karimtito/efficient-statistical | be6167cd7c213bc20baebea09b3e890eb1681b1f | [
"Apache-2.0"
] | null | null | null | import os
from pathlib import Path
local_path = Path(os.path.dirname(os.path.realpath(__file__)))
EFFICIENT_STAT_PATH = str(local_path.parent.absolute())+'/'
#from sys import platform
#import subprocess
# if 'EFFICIENT_STAT_HOME' in os.environ:
# EFFICIENT_STAT_PATH = os.environ['EFFICIENT_STAT_HOME']
# elif platfo... | 34.5 | 74 | 0.74058 | 94 | 690 | 5.170213 | 0.457447 | 0.213992 | 0.139918 | 0.090535 | 0.17284 | 0.17284 | 0.17284 | 0 | 0 | 0 | 0 | 0.00995 | 0.126087 | 690 | 19 | 75 | 36.315789 | 0.79602 | 0.542029 | 0 | 0 | 0 | 0 | 0.230263 | 0.138158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 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 |
711eba0623df94f2de397eaf8a969baf92da846a | 1,839 | py | Python | boats/migrations/0009_auto_20180503_1005.py | DonSelester/yachts | 53a01318d721c217183a2d40735e959f26ec17e8 | [
"Unlicense"
] | null | null | null | boats/migrations/0009_auto_20180503_1005.py | DonSelester/yachts | 53a01318d721c217183a2d40735e959f26ec17e8 | [
"Unlicense"
] | null | null | null | boats/migrations/0009_auto_20180503_1005.py | DonSelester/yachts | 53a01318d721c217183a2d40735e959f26ec17e8 | [
"Unlicense"
] | null | null | null | # Generated by Django 2.0.3 on 2018-05-03 07:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('boats', '0008_crew_recruited'),
]
operations = [
migrations.CreateModel(
name='Elling',
... | 36.78 | 114 | 0.571506 | 181 | 1,839 | 5.668508 | 0.392265 | 0.038986 | 0.054581 | 0.08577 | 0.426901 | 0.426901 | 0.339181 | 0.339181 | 0.339181 | 0.296296 | 0 | 0.025268 | 0.289831 | 1,839 | 49 | 115 | 37.530612 | 0.760337 | 0.02447 | 0 | 0.395349 | 1 | 0 | 0.116071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
712147b0ba8a7bb39c82f5967dac6a9164ec454a | 3,820 | py | Python | src/panaedra/msroot/msutil/logic/sc_environment.py | Panaedra/panaedra_py_platform_base | 3662c9d598e92870b0d409035336b94e6c195920 | [
"MIT"
] | 1 | 2017-11-10T07:12:18.000Z | 2017-11-10T07:12:18.000Z | src/panaedra/msroot/msutil/logic/sc_environment.py | Panaedra/panaedra_py_platform_base | 3662c9d598e92870b0d409035336b94e6c195920 | [
"MIT"
] | null | null | null | src/panaedra/msroot/msutil/logic/sc_environment.py | Panaedra/panaedra_py_platform_base | 3662c9d598e92870b0d409035336b94e6c195920 | [
"MIT"
] | null | null | null | import os
import ast
import sys
import json
import subprocess
import traceback
from panaedra.msroot.msutil.logic.sc_path import sc_path
class sc_environment:
"""Cross-platform environment and session information"""
_bInitialized=False
cEnv='(not-set)'
bLiveEnv=False
cUserID=''
cUserPasswo... | 32.10084 | 132 | 0.560209 | 356 | 3,820 | 5.921348 | 0.345506 | 0.033207 | 0.017078 | 0.02277 | 0.077799 | 0.05408 | 0 | 0 | 0 | 0 | 0 | 0.002323 | 0.323822 | 3,820 | 118 | 133 | 32.372881 | 0.813782 | 0.000785 | 0 | 0.144231 | 0 | 0 | 0.113313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009615 | 0.076923 | null | null | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
71235c48b3a936b28c4196dd62ad6fb860da2c16 | 978 | py | Python | code/comfortable_distance/sol_364.py | bhavinjawade/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 2 | 2020-07-16T08:16:32.000Z | 2020-10-01T07:16:48.000Z | code/comfortable_distance/sol_364.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | null | null | null | code/comfortable_distance/sol_364.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 1 | 2021-05-07T18:06:08.000Z | 2021-05-07T18:06:08.000Z |
# -*- coding: utf-8 -*-
'''
File name: code\comfortable_distance\sol_364.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #364 :: Comfortable distance
#
# For more information see:
# https://projecteuler.net/problem=364
# Problem Statemen... | 26.432432 | 134 | 0.717791 | 166 | 978 | 4.216867 | 0.590361 | 0.03 | 0.025714 | 0.04 | 0.102857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080873 | 0.203476 | 978 | 36 | 135 | 27.166667 | 0.817715 | 0.317996 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
712529c4377dfdb36fec1655c040c23e32ee0bc3 | 2,014 | py | Python | libs/gittle/push_git_repos.py | dnxbjyj/python-basic | 14cba06cd84715ebb8acc6dd3cef84789316d81e | [
"MIT"
] | 3 | 2018-03-19T07:57:10.000Z | 2021-07-05T08:55:14.000Z | libs/gittle/push_git_repos.py | dnxbjyj/python-basic | 14cba06cd84715ebb8acc6dd3cef84789316d81e | [
"MIT"
] | 6 | 2020-03-24T15:40:18.000Z | 2021-12-13T19:46:09.000Z | libs/gittle/update_local_git/push_git_repos.py | dnxbjyj/python-basic | 14cba06cd84715ebb8acc6dd3cef84789316d81e | [
"MIT"
] | 4 | 2018-03-29T21:59:55.000Z | 2019-12-16T14:56:38.000Z | # coding:utf-8
from gittle import Gittle
import os
from gevent.pool import Pool
def get_direct_sub_dirs(path):
'''
获取一个目录下的所有直接子目录的路径列表
:param path: 父目录
:return: 直接子目录列表
'''
walk = os.walk(path)
sub_dirs = []
for d in walk:
if d[0] in [path]:
for sub_d... | 25.493671 | 96 | 0.618669 | 277 | 2,014 | 4.288809 | 0.306859 | 0.053872 | 0.046296 | 0.058081 | 0.144781 | 0.112795 | 0.112795 | 0.085859 | 0.085859 | 0.085859 | 0 | 0.009537 | 0.271102 | 2,014 | 79 | 97 | 25.493671 | 0.799728 | 0.030785 | 0 | 0 | 0 | 0 | 0.17411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71361b35984358e60ab6e0207b848eb020489854 | 249 | py | Python | git_repo_master/app.py | mustafmst/git-repo-master | 039134d459a1ac63b21edecd8151291a4dbbf2e6 | [
"MIT"
] | null | null | null | git_repo_master/app.py | mustafmst/git-repo-master | 039134d459a1ac63b21edecd8151291a4dbbf2e6 | [
"MIT"
] | 3 | 2020-03-24T17:16:38.000Z | 2021-02-02T22:03:56.000Z | git_repo_master/app.py | mustafmst/git-repo-master | 039134d459a1ac63b21edecd8151291a4dbbf2e6 | [
"MIT"
] | null | null | null | from git_repo_master.azure_actions import ACTIONS
from git_repo_master.parser import startup_parser
def run():
args = startup_parser()
if args.action in ACTIONS:
ACTIONS[args.action](args)
else:
print('Nothing to do.')
| 22.636364 | 49 | 0.706827 | 35 | 249 | 4.828571 | 0.571429 | 0.08284 | 0.130178 | 0.201183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208835 | 249 | 10 | 50 | 24.9 | 0.857868 | 0 | 0 | 0 | 0 | 0 | 0.056225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0.125 | 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 |
71399e0d43e7dcff9b68093e5a8492472ac90c2e | 7,340 | py | Python | clients/python-flask/generated/openapi_server/models/metric.py | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 3 | 2020-06-23T05:31:52.000Z | 2020-11-26T05:34:57.000Z | clients/python-flask/generated/openapi_server/models/metric.py | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 2 | 2021-01-21T01:19:54.000Z | 2021-12-09T22:30:22.000Z | clients/python-flask/generated/openapi_server/models/metric.py | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 1 | 2020-11-18T11:48:13.000Z | 2020-11-18T11:48:13.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server import util
class Metric(Model):
"""NOTE: This class is auto generated by OpenAPI Generato... | 26.690909 | 158 | 0.578065 | 850 | 7,340 | 4.887059 | 0.123529 | 0.05922 | 0.11844 | 0.040924 | 0.535628 | 0.474242 | 0.451372 | 0.297063 | 0.280212 | 0.198363 | 0 | 0.019431 | 0.333924 | 7,340 | 274 | 159 | 26.788321 | 0.830231 | 0.432561 | 0 | 0.265306 | 0 | 0 | 0.103912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0.091837 | 0.061224 | 0 | 0.346939 | 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 |
7145393bbd2fd0355b162d8427b20939d046f49b | 753 | py | Python | abaqus_parse/materials/__init__.py | tjailin/abaqus-parse | bb582fdc6cd7df78d9836df4789eb4c7e40e78b5 | [
"MIT"
] | null | null | null | abaqus_parse/materials/__init__.py | tjailin/abaqus-parse | bb582fdc6cd7df78d9836df4789eb4c7e40e78b5 | [
"MIT"
] | null | null | null | abaqus_parse/materials/__init__.py | tjailin/abaqus-parse | bb582fdc6cd7df78d9836df4789eb4c7e40e78b5 | [
"MIT"
] | null | null | null | from abaqus_parse.materials import euromat_A
MATERIAL_MODEL_FUNCS = {
'euromat_A': euromat_A.get_euromat_A_material_definition,
}
def generate_material_models(materials_list):
material_models = {}
for material in materials_list:
mat_mod_i = {}
if 'func_name' in material:
... | 27.888889 | 72 | 0.621514 | 91 | 753 | 4.791209 | 0.351648 | 0.073395 | 0.06422 | 0.050459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286853 | 753 | 27 | 73 | 27.888889 | 0.811918 | 0 | 0 | 0 | 1 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
853495b6acacab0db302518e7333e30ad253ac3c | 2,148 | py | Python | pysnmp/CTRON-SSR-SMI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CTRON-SSR-SMI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CTRON-SSR-SMI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CTRON-SSR-SMI-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-SSR-SMI-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:15:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 89.5 | 477 | 0.77514 | 237 | 2,148 | 7.016878 | 0.459916 | 0.096813 | 0.050511 | 0.025256 | 0.359591 | 0.240529 | 0.240529 | 0.240529 | 0.233313 | 0.202045 | 0 | 0.066835 | 0.08054 | 2,148 | 23 | 478 | 93.391304 | 0.77519 | 0.1527 | 0 | 0 | 0 | 0 | 0.29873 | 0.024296 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 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 |
853af6edff30817f3627330ad904cde1dffaee97 | 1,724 | py | Python | webapi/views.py | dmitryhusev/diaryProject | 73f371b252b84aceac2619837546971946c85e97 | [
"MIT"
] | null | null | null | webapi/views.py | dmitryhusev/diaryProject | 73f371b252b84aceac2619837546971946c85e97 | [
"MIT"
] | 4 | 2017-12-14T05:05:04.000Z | 2021-03-19T21:54:30.000Z | webapi/views.py | dmitryhusev/lighttrack | 73f371b252b84aceac2619837546971946c85e97 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.http import Http404
from tracker.models import Tracker
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .serializers import TrackerSerializer
from d... | 31.345455 | 78 | 0.701276 | 206 | 1,724 | 5.752427 | 0.305825 | 0.0827 | 0.121519 | 0.094515 | 0.417722 | 0.365401 | 0.365401 | 0.365401 | 0.337553 | 0.337553 | 0 | 0.01559 | 0.218677 | 1,724 | 54 | 79 | 31.925926 | 0.864143 | 0 | 0 | 0.285714 | 0 | 0 | 0.008701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0 | 0.619048 | 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 |
853eced02c1e3f75c64b27a8e2d89013c5f36db5 | 337 | py | Python | climbing-stairs/solution.py | LYZhelloworld/Leetcode | 1ef3c8d3a75a20755e7474427224ed8757f97932 | [
"MIT"
] | null | null | null | climbing-stairs/solution.py | LYZhelloworld/Leetcode | 1ef3c8d3a75a20755e7474427224ed8757f97932 | [
"MIT"
] | null | null | null | climbing-stairs/solution.py | LYZhelloworld/Leetcode | 1ef3c8d3a75a20755e7474427224ed8757f97932 | [
"MIT"
] | null | null | null | class Solution(object):
def climbStairs(self, n):
"""
:type n: int
:rtype: int
"""
if n == 1:
return 1
if n == 2:
return 2
a = 1
b = 2
for i in range(3, n + 1):
c = a + b
a = b
b = c
... | 17.736842 | 33 | 0.320475 | 42 | 337 | 2.571429 | 0.52381 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.578635 | 337 | 18 | 34 | 18.722222 | 0.704225 | 0.071217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
854759ada8cc16317a01f31b8deb74864b613b56 | 637 | py | Python | mayan/apps/checkouts/events.py | eshbeata/open-paperless | 6b9ed1f21908116ad2795b3785b2dbd66713d66e | [
"Apache-2.0"
] | 2,743 | 2017-12-18T07:12:30.000Z | 2022-03-27T17:21:25.000Z | mayan/apps/checkouts/events.py | kyper999/mayan-edms | ca7b8301a1f68548e8e718d42a728a500d67286e | [
"Apache-2.0"
] | 15 | 2017-12-18T14:58:07.000Z | 2021-03-01T20:05:05.000Z | mayan/apps/checkouts/events.py | kyper999/mayan-edms | ca7b8301a1f68548e8e718d42a728a500d67286e | [
"Apache-2.0"
] | 257 | 2017-12-18T03:12:58.000Z | 2022-03-25T08:59:10.000Z | from __future__ import absolute_import, unicode_literals
from django.utils.translation import ugettext_lazy as _
from events.classes import Event
event_document_auto_check_in = Event(
name='checkouts_document_auto_check_in',
label=_('Document automatically checked in')
)
event_document_check_in = Event(
... | 30.333333 | 72 | 0.799058 | 82 | 637 | 5.719512 | 0.329268 | 0.089552 | 0.153518 | 0.221748 | 0.392324 | 0.211087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119309 | 637 | 20 | 73 | 31.85 | 0.836007 | 0 | 0 | 0 | 0 | 0 | 0.353218 | 0.193093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 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 |
8549a14444f55bb80521c911bc8dc9c9f5dbd412 | 2,874 | py | Python | src/OTLMOW/OTLModel/Classes/Ontvanger.py | davidvlaminck/OTLClassPython | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | 2 | 2022-02-01T08:58:11.000Z | 2022-02-08T13:35:17.000Z | src/OTLMOW/OTLModel/Classes/Ontvanger.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | src/OTLMOW/OTLModel/Classes/Ontvanger.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | # coding=utf-8
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Classes.ZenderOntvangerToegang import ZenderOntvangerToegang
from OTLMOW.OTLModel.Datatypes.KlOntvangerMerk import KlOntvangerMerk
from OTLMOW.OTLModel.Datatypes.KlOntvangerModelnaam import KlOntvangerModelnaam
from OT... | 43.545455 | 130 | 0.600209 | 261 | 2,874 | 6.521073 | 0.310345 | 0.031727 | 0.052879 | 0.077556 | 0.372503 | 0.3302 | 0.30611 | 0.221504 | 0.189189 | 0.076381 | 0 | 0.003035 | 0.312109 | 2,874 | 65 | 131 | 44.215385 | 0.857865 | 0.092902 | 0 | 0.133333 | 0 | 0 | 0.189793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0.222222 | 0.111111 | 0 | 0.377778 | 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 |
854feadf668820ae8e31f7cda6af93e2a89d4f98 | 7,384 | py | Python | src/yandex_tts.py | KaltakhchyanD/python_telegram_tts_bot | 7cf483b58654481da9245383affb965f0d1ac8bf | [
"MIT"
] | 6 | 2019-07-14T08:24:14.000Z | 2021-08-13T10:15:36.000Z | src/yandex_tts.py | ConnectionMaster/python_telegram_tts_bot | 7cf483b58654481da9245383affb965f0d1ac8bf | [
"MIT"
] | 1 | 2021-06-02T03:44:50.000Z | 2021-06-02T03:44:50.000Z | src/yandex_tts.py | ConnectionMaster/python_telegram_tts_bot | 7cf483b58654481da9245383affb965f0d1ac8bf | [
"MIT"
] | 5 | 2019-10-23T03:30:28.000Z | 2021-11-12T17:16:37.000Z | """
yandex_tts.py
-------------
This module contains provides ability to perform TTS and STT with Yandex TTS and STT services.
It contains these functions:
* generate_audio_file_from_text() - returns wav audio synthesized from input text
* generate_text_from_speech() - returns text generated from input ogg audio
* ch... | 30.138776 | 100 | 0.680525 | 998 | 7,384 | 4.706413 | 0.187375 | 0.034064 | 0.023845 | 0.015329 | 0.337237 | 0.219076 | 0.179476 | 0.140515 | 0.125186 | 0.111561 | 0 | 0.010455 | 0.222779 | 7,384 | 244 | 101 | 30.262295 | 0.80798 | 0.306744 | 0 | 0.229508 | 1 | 0 | 0.223452 | 0.02952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0.016393 | 0.07377 | 0 | 0.188525 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8551309e2225a9572371897d1fd0eec6a4158ca5 | 1,119 | py | Python | controllers/utils.py | rhaamo/camgear | 38200cc616120ac381892bfc1996a1e97dbbfc83 | [
"MIT"
] | null | null | null | controllers/utils.py | rhaamo/camgear | 38200cc616120ac381892bfc1996a1e97dbbfc83 | [
"MIT"
] | 37 | 2019-01-04T04:30:33.000Z | 2022-03-11T23:36:05.000Z | controllers/utils.py | rhaamo/camgear | 38200cc616120ac381892bfc1996a1e97dbbfc83 | [
"MIT"
] | null | null | null | import re
from django.core.exceptions import ImproperlyConfigured
from django.urls import re_path
from django.views.static import serve
def join_url(start, end):
if end.startswith("http://") or end.startswith("https://"):
# alread a full URL, joining makes no sense
return end
if start.endswit... | 31.083333 | 90 | 0.655943 | 146 | 1,119 | 4.986301 | 0.506849 | 0.054945 | 0.057692 | 0.065934 | 0.074176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001145 | 0.219839 | 1,119 | 35 | 91 | 31.971429 | 0.832761 | 0.333333 | 0 | 0 | 0 | 0 | 0.098731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.611111 | 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 |
8559fbb8712ee41822c852045c2784339805e9e8 | 9,093 | py | Python | genlib/bookstore/migrations/0001_initial.py | KushajveerSingh/genlib | c348c1e9d2de9e9f722e41b8a7c451557ce0338e | [
"Apache-2.0"
] | null | null | null | genlib/bookstore/migrations/0001_initial.py | KushajveerSingh/genlib | c348c1e9d2de9e9f722e41b8a7c451557ce0338e | [
"Apache-2.0"
] | null | null | null | genlib/bookstore/migrations/0001_initial.py | KushajveerSingh/genlib | c348c1e9d2de9e9f722e41b8a7c451557ce0338e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-08-02 21:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_cryptography.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_ma... | 59.822368 | 266 | 0.603871 | 955 | 9,093 | 5.584293 | 0.19267 | 0.086068 | 0.08438 | 0.112507 | 0.662854 | 0.558785 | 0.510782 | 0.481155 | 0.432215 | 0.338834 | 0 | 0.019953 | 0.250412 | 9,093 | 151 | 267 | 60.218543 | 0.762471 | 0.004949 | 0 | 0.333333 | 1 | 0 | 0.12757 | 0.00409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.006944 | 0.027778 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8567dad0a2795041d251f68bca75963a0ffcebe2 | 3,607 | py | Python | src/vfb/repository.py | VirtualFlyBrain/vfb-data-ingest-cedar | 2ffd64027ee15424a07b491c6eba639388331d42 | [
"Apache-2.0"
] | null | null | null | src/vfb/repository.py | VirtualFlyBrain/vfb-data-ingest-cedar | 2ffd64027ee15424a07b491c6eba639388331d42 | [
"Apache-2.0"
] | null | null | null | src/vfb/repository.py | VirtualFlyBrain/vfb-data-ingest-cedar | 2ffd64027ee15424a07b491c6eba639388331d42 | [
"Apache-2.0"
] | null | null | null | import os
from exception.crawler_exception import CrawlerException
from neo4jrestclient.client import GraphDatabase
from vfb_neo4j.vfb.uk.ac.ebi.vfb.neo4j.neo4j_tools import neo4j_connect
from vfb_neo4j.vfb.uk.ac.ebi.vfb.neo4j.KB_tools import KB_pattern_writer
from vfb_neo4j.vfb.uk.ac.ebi.vfb.neo4j.KB_tools import kb_o... | 35.019417 | 109 | 0.548101 | 445 | 3,607 | 4.249438 | 0.244944 | 0.028556 | 0.026441 | 0.023797 | 0.288207 | 0.222105 | 0.16605 | 0.145955 | 0.145955 | 0.093072 | 0 | 0.010382 | 0.332409 | 3,607 | 102 | 110 | 35.362745 | 0.774917 | 0.054339 | 0 | 0.2625 | 0 | 0 | 0.073411 | 0.006565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0875 | false | 0.075 | 0.075 | 0 | 0.275 | 0.0875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85709fea2742e1fa711688b8c7239b8dc849a290 | 6,519 | py | Python | pypeit/deprecated/waveimage.py | ykwang1/PypeIt | a96cff699f1284905ce7ef19d06a9027cd333c63 | [
"BSD-3-Clause"
] | 107 | 2018-08-06T07:07:20.000Z | 2022-02-28T14:33:42.000Z | pypeit/deprecated/waveimage.py | ykwang1/PypeIt | a96cff699f1284905ce7ef19d06a9027cd333c63 | [
"BSD-3-Clause"
] | 889 | 2018-07-26T12:14:33.000Z | 2022-03-18T22:49:42.000Z | pypeit/deprecated/waveimage.py | ykwang1/PypeIt | a96cff699f1284905ce7ef19d06a9027cd333c63 | [
"BSD-3-Clause"
] | 74 | 2018-09-25T17:03:07.000Z | 2022-03-10T23:59:24.000Z | """
Module for guiding construction of the Wavelength Image
.. include common links, assuming primary doc root is up one directory
.. include:: ../links.rst
"""
import inspect
import numpy as np
import os
from pypeit import msgs
from pypeit import utils
from pypeit import datamodel
from IPython import embed
class... | 36.216667 | 100 | 0.563583 | 728 | 6,519 | 4.892857 | 0.34478 | 0.035373 | 0.030882 | 0.031443 | 0.06457 | 0.043234 | 0.026951 | 0.026951 | 0.026951 | 0.026951 | 0 | 0.006708 | 0.336861 | 6,519 | 179 | 101 | 36.418994 | 0.817257 | 0.400675 | 0 | 0.085714 | 0 | 0 | 0.085032 | 0 | 0 | 0 | 0 | 0.011173 | 0 | 1 | 0.057143 | false | 0 | 0.1 | 0 | 0.314286 | 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 |
85741f4a908ca128e3fec3d872e8bdef6cfb7a4e | 401 | py | Python | wiki_test_0.py | andregtorres/luz | 888054f43de02fc8d190152b9c5d461f6c12709b | [
"MIT"
] | null | null | null | wiki_test_0.py | andregtorres/luz | 888054f43de02fc8d190152b9c5d461f6c12709b | [
"MIT"
] | null | null | null | wiki_test_0.py | andregtorres/luz | 888054f43de02fc8d190152b9c5d461f6c12709b | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import socketIO_client
class WikiNamespace(socketIO_client.BaseNamespace):
def on_change(self, change):
print('%(user)s edited %(title)s' % change)
def on_connect(self):
self.emit('subscribe', '*.wikipedia.org')
socketIO = socketIO_client.SocketIO('s... | 23.588235 | 63 | 0.690773 | 49 | 401 | 5.55102 | 0.653061 | 0.154412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008746 | 0.144638 | 401 | 16 | 64 | 25.0625 | 0.784257 | 0.094763 | 0 | 0 | 0 | 0 | 0.199446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.