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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d1d33e9f6672008346d29a0cd51ad3f280b455cd | 3,053 | py | Python | django_react_chat_example_project/django_react_chat_example_project/chat/consumers.py | codekiln/reasonable-django | a4cd7dd6613a5620821181cebb88d2e6c1af9b2a | [
"MIT"
] | 9 | 2018-08-29T02:54:05.000Z | 2021-12-31T09:25:27.000Z | django_react_chat_example_project/django_react_chat_example_project/chat/consumers.py | codekiln/reasonable-django | a4cd7dd6613a5620821181cebb88d2e6c1af9b2a | [
"MIT"
] | 32 | 2018-01-25T09:30:11.000Z | 2020-09-04T22:59:42.000Z | django_react_chat_example_project/django_react_chat_example_project/chat/consumers.py | codekiln/reasonable-django | a4cd7dd6613a5620821181cebb88d2e6c1af9b2a | [
"MIT"
] | 1 | 2019-09-02T03:27:49.000Z | 2019-09-02T03:27:49.000Z | from channels.generic.websockets import JsonWebsocketConsumer
from .schema import schema
class ArtificialRequestContext(object):
def __init__(self, user):
self.user = user
def get_context(self):
return {
'request': self
}
def get_channel_group_name_for_user(user_id):
... | 32.136842 | 96 | 0.602358 | 356 | 3,053 | 4.963483 | 0.323034 | 0.047538 | 0.045274 | 0.032258 | 0.101868 | 0.101868 | 0.101868 | 0.054329 | 0 | 0 | 0 | 0 | 0.305929 | 3,053 | 94 | 97 | 32.478723 | 0.833884 | 0.169014 | 0 | 0.072727 | 0 | 0 | 0.075574 | 0.009186 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.163636 | false | 0 | 0.036364 | 0.036364 | 0.309091 | 0.072727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d1d77d3e3565ee2d336b0c7070bb6a4ccdf4fea6 | 1,440 | py | Python | University-of-Toronto-Crafting-Quality-Code/pset1_unittest_test_cases/test_swap_k.py | Sam-Gao-Xin/Courses- | 122810e56024e6e72d378317b4f98c5a9d97e5f8 | [
"Apache-2.0"
] | 622 | 2018-07-17T09:05:41.000Z | 2022-03-29T02:57:02.000Z | University-of-Toronto-Crafting-Quality-Code/pset1_unittest_test_cases/test_swap_k.py | thientvse/Courses- | 263ff4680ed1dfd253be3652f7f13ad707af1a36 | [
"Apache-2.0"
] | 21 | 2019-11-10T02:06:09.000Z | 2022-01-22T23:54:11.000Z | University-of-Toronto-Crafting-Quality-Code/pset1_unittest_test_cases/test_swap_k.py | thientvse/Courses- | 263ff4680ed1dfd253be3652f7f13ad707af1a36 | [
"Apache-2.0"
] | 906 | 2018-07-17T09:05:43.000Z | 2022-03-31T12:55:49.000Z | import a1
import unittest
class TestSwapK(unittest.TestCase):
""" Test class for function a1.swap_k. """
# Add your test methods for a1.swap_k here.
def test_swap_k_example_1(self):
"""Test nswap_k with [] and 2."""
actual = a1.swap_k([], 2)
expected = []
self.assertEqual... | 27.169811 | 58 | 0.563889 | 237 | 1,440 | 3.232068 | 0.160338 | 0.091384 | 0.073107 | 0.093995 | 0.665796 | 0.579634 | 0.515666 | 0.463446 | 0.463446 | 0.263708 | 0 | 0.091691 | 0.272917 | 1,440 | 52 | 59 | 27.692308 | 0.639924 | 0.197222 | 0 | 0.206897 | 0 | 0 | 0.007149 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.310345 | 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 |
d1e4fa34e71fe716d27c3ac3c364876e7ea93474 | 7,511 | py | Python | tests/unit/app/api/test_base.py | datphan/moviecrab | e3bcff700b994388f1ded68d268a960b10d57a81 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/app/api/test_base.py | datphan/moviecrab | e3bcff700b994388f1ded68d268a960b10d57a81 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/app/api/test_base.py | datphan/moviecrab | e3bcff700b994388f1ded68d268a960b10d57a81 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""app.api.base tests"""
from mock import patch
from flask import make_response
from tests.unit import UnitTestCase
from tests.unit.app import CurrentAppMockMixin
class BaseTestCase(CurrentAppMockMixin, UnitTestCase):
@patch('app.api.base.auth_datastore')
def test_jwt_authenticate_n... | 36.285024 | 100 | 0.682466 | 884 | 7,511 | 5.5181 | 0.147059 | 0.03444 | 0.057401 | 0.04305 | 0.595531 | 0.519885 | 0.477655 | 0.441574 | 0.423944 | 0.390324 | 0 | 0.003936 | 0.221941 | 7,511 | 206 | 101 | 36.461165 | 0.830767 | 0.013713 | 0 | 0.345324 | 0 | 0 | 0.100676 | 0.041757 | 0 | 0 | 0 | 0.004854 | 0.251799 | 1 | 0.115108 | false | 0.093525 | 0.172662 | 0 | 0.316547 | 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 |
d1e8e5c7767afaa1b076b9769fe031ee3b9866f7 | 170 | py | Python | Chapter 9/Code/pi-camera-test.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | 17 | 2018-05-26T13:00:57.000Z | 2021-11-11T09:07:18.000Z | Chapter 9/Code/pi-camera-test.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | null | null | null | Chapter 9/Code/pi-camera-test.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | 16 | 2018-05-14T09:04:41.000Z | 2021-11-11T09:07:22.000Z | from picamera import PiCamera
from time import sleep
pi_cam = PiCamera()
pi_cam.start_preview()
sleep(5)
pi_cam.capture('/home/pi/myimage.png')
pi_cam.stop_preview()
| 14.166667 | 38 | 0.770588 | 28 | 170 | 4.464286 | 0.535714 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.111765 | 170 | 11 | 39 | 15.454545 | 0.821192 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1eefdeb08f54f076d2cef18716ade72d17b1355 | 432 | py | Python | reachme/complaint/migrations/0007_complaint_subcategory_servant_role.py | akshita-k06/Socialshout | ef45c7f4a2d73f613760f59d507554465ba19264 | [
"MIT"
] | 1 | 2021-06-28T08:20:25.000Z | 2021-06-28T08:20:25.000Z | reachme/complaint/migrations/0007_complaint_subcategory_servant_role.py | akshita-k06/SocialShout | ef45c7f4a2d73f613760f59d507554465ba19264 | [
"MIT"
] | null | null | null | reachme/complaint/migrations/0007_complaint_subcategory_servant_role.py | akshita-k06/SocialShout | ef45c7f4a2d73f613760f59d507554465ba19264 | [
"MIT"
] | 1 | 2021-06-27T14:45:59.000Z | 2021-06-27T14:45:59.000Z | # Generated by Django 3.2 on 2021-06-07 17:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('complaint', '0006_auto_20210605_1912'),
]
operations = [
migrations.AddField(
model_name='complaint_subcategory',
name... | 22.736842 | 77 | 0.62963 | 46 | 432 | 5.782609 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097179 | 0.261574 | 432 | 18 | 78 | 24 | 0.736677 | 0.099537 | 0 | 0 | 1 | 0 | 0.167959 | 0.113695 | 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 |
d1f275e2c8ef1494f0b2564c9ff3c222e9859d1f | 4,033 | py | Python | twirp/Account_pb2.py | timbrook-life/podcast | 9ce539aabcb5a5f3980772ecfb54c60c7d1672d9 | [
"MIT"
] | null | null | null | twirp/Account_pb2.py | timbrook-life/podcast | 9ce539aabcb5a5f3980772ecfb54c60c7d1672d9 | [
"MIT"
] | null | null | null | twirp/Account_pb2.py | timbrook-life/podcast | 9ce539aabcb5a5f3980772ecfb54c60c7d1672d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: Account.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf imp... | 28.602837 | 303 | 0.738408 | 498 | 4,033 | 5.696787 | 0.277108 | 0.031019 | 0.059217 | 0.033839 | 0.388438 | 0.368699 | 0.368699 | 0.368699 | 0.368699 | 0.332746 | 0 | 0.031936 | 0.130424 | 4,033 | 140 | 304 | 28.807143 | 0.777017 | 0.069923 | 0 | 0.530973 | 1 | 0.00885 | 0.155757 | 0.088966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044248 | 0 | 0.044248 | 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 |
d1f3bb00215a997702ca47e42f2740eccef8d2e9 | 4,669 | py | Python | asdctool/src/main/resources/es-resources/index_ops.py | aroundble/onap | d049ca05bbfb6fa6b86b2a093b09ffc1fc0a6e37 | [
"Apache-2.0"
] | 1 | 2019-07-31T08:16:40.000Z | 2019-07-31T08:16:40.000Z | asdctool/src/main/resources/es-resources/index_ops.py | aroundble/onap | d049ca05bbfb6fa6b86b2a093b09ffc1fc0a6e37 | [
"Apache-2.0"
] | null | null | null | asdctool/src/main/resources/es-resources/index_ops.py | aroundble/onap | d049ca05bbfb6fa6b86b2a093b09ffc1fc0a6e37 | [
"Apache-2.0"
] | null | null | null | import itertools
import string
import json
from datetime import datetime
from elasticsearch import Elasticsearch
import elasticsearch
import elasticsearch.helpers
from elasticsearch.client import IndicesClient, CatClient
import sys, os, getopt
from file_utils import readFileToJson
from config_properties import getGloba... | 30.717105 | 169 | 0.598843 | 498 | 4,669 | 5.582329 | 0.242972 | 0.035252 | 0.016187 | 0.018705 | 0.289928 | 0.246403 | 0.208993 | 0.170144 | 0.170144 | 0.080935 | 0 | 0.007674 | 0.274363 | 4,669 | 151 | 170 | 30.92053 | 0.812869 | 0.017991 | 0 | 0.396825 | 0 | 0.007937 | 0.199869 | 0.010048 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.087302 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1fcd00894d511ac0a7f791ef25404ddf22ea403 | 4,365 | py | Python | projects/file-repository/node_indexer.py | UFSCar-CS/computer-networks | 767b96fc492cf23c0a21cb2a0b4e763ee06b12e9 | [
"MIT"
] | null | null | null | projects/file-repository/node_indexer.py | UFSCar-CS/computer-networks | 767b96fc492cf23c0a21cb2a0b4e763ee06b12e9 | [
"MIT"
] | null | null | null | projects/file-repository/node_indexer.py | UFSCar-CS/computer-networks | 767b96fc492cf23c0a21cb2a0b4e763ee06b12e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
===== Implementação de p2p filesharing =====
Arquivo: node_indexer.py
Descrição: Realiza a indexação de supernós no anel hash e trata requisições dos supernós
Autores:
Raul Vieira Cioldin
Gabriel Lucius Pomin
Samuel Carlos Machado Rodrigues
... | 35.201613 | 103 | 0.561054 | 487 | 4,365 | 4.934292 | 0.416838 | 0.033292 | 0.053267 | 0.009988 | 0.03995 | 0.01831 | 0 | 0 | 0 | 0 | 0 | 0.008121 | 0.351203 | 4,365 | 124 | 104 | 35.201613 | 0.840395 | 0.173654 | 0 | 0.164384 | 0 | 0 | 0.058215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027397 | null | null | 0.082192 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0606c32b0d0bfc8b74d59b3b3fa0d221f7de7a60 | 581 | py | Python | build/__init__.py | jpludens/starrlabs | 615d1e5a27864dea05e386fc15ed1c9f0931df13 | [
"MIT"
] | null | null | null | build/__init__.py | jpludens/starrlabs | 615d1e5a27864dea05e386fc15ed1c9f0931df13 | [
"MIT"
] | null | null | null | build/__init__.py | jpludens/starrlabs | 615d1e5a27864dea05e386fc15ed1c9f0931df13 | [
"MIT"
] | null | null | null | import os
import errno
import inspect
here = os.path.dirname(os.path.abspath(inspect.stack()[0][1]))
source_root = os.path.join('..', 'src')
generation_root = os.path.join('..', 'gen')
distribution_root = os.path.join('..', 'dst')
source_path = os.path.abspath(os.path.join(here, source_root))
generation_path = os.pa... | 26.409091 | 74 | 0.686747 | 86 | 581 | 4.523256 | 0.348837 | 0.169666 | 0.154242 | 0.107969 | 0.239075 | 0.239075 | 0.239075 | 0.239075 | 0 | 0 | 0 | 0.004049 | 0.149742 | 581 | 21 | 75 | 27.666667 | 0.783401 | 0 | 0 | 0 | 0 | 0 | 0.025818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.1875 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
06076854564e9b78e6b84811b7f41bd5d52d3b51 | 657 | py | Python | setup.py | CD3/fspathtree | a1acc7e6ed21cc63dc24c6961a362d9b5634f867 | [
"MIT"
] | null | null | null | setup.py | CD3/fspathtree | a1acc7e6ed21cc63dc24c6961a362d9b5634f867 | [
"MIT"
] | null | null | null | setup.py | CD3/fspathtree | a1acc7e6ed21cc63dc24c6961a362d9b5634f867 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'fspathtree',
packages = ['fspathtree'],
version = '0.5',
license='MIT',
description = 'A small utility for wrapping trees (nested dict/list) that allows filesystem-like path access, including walking up with "../".',
author = 'CD Clark III',
author_email = '... | 32.85 | 146 | 0.651446 | 76 | 657 | 5.592105 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.190259 | 657 | 19 | 147 | 34.578947 | 0.787594 | 0 | 0 | 0 | 0 | 0.052632 | 0.541857 | 0.035008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 |
0614b05df7a9096aaa3b726cf0a824628d143e66 | 8,452 | py | Python | Algorithm/QTOpt/dis/Servers/ReplayBuffer/ReplayBuffer.py | franceOne/Qt-Opt-Framework | 9782ad47bfb987b2b0df07b96660870828072f8e | [
"MIT"
] | null | null | null | Algorithm/QTOpt/dis/Servers/ReplayBuffer/ReplayBuffer.py | franceOne/Qt-Opt-Framework | 9782ad47bfb987b2b0df07b96660870828072f8e | [
"MIT"
] | null | null | null | Algorithm/QTOpt/dis/Servers/ReplayBuffer/ReplayBuffer.py | franceOne/Qt-Opt-Framework | 9782ad47bfb987b2b0df07b96660870828072f8e | [
"MIT"
] | null | null | null | from tf_agents.trajectories import trajectory
from tf_agents.replay_buffers import tf_uniform_replay_buffer
import tensorflow as tf
import numpy as np
import random
import math
class ReplayBuffer:
def __init__(self, state_size= 4, action_size= 1, camerashape = (500,500,3)):
self._state_size = state_size
... | 42.686869 | 248 | 0.667416 | 952 | 8,452 | 5.72584 | 0.134454 | 0.054485 | 0.028619 | 0.020914 | 0.666116 | 0.649055 | 0.649055 | 0.649055 | 0.649055 | 0.649055 | 0 | 0.018926 | 0.224799 | 8,452 | 197 | 249 | 42.903553 | 0.813034 | 0.019167 | 0 | 0.535211 | 0 | 0 | 0.019807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.042254 | 0.021127 | 0.197183 | 0.007042 | 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 |
0617e50bf011e88b55bbe9716b6a8210b44d119b | 1,082 | py | Python | web/entrance.py | Dkner/six | 3ecabf47b38f7b49191679b63ae5744c04bd0411 | [
"BSD-2-Clause"
] | null | null | null | web/entrance.py | Dkner/six | 3ecabf47b38f7b49191679b63ae5744c04bd0411 | [
"BSD-2-Clause"
] | null | null | null | web/entrance.py | Dkner/six | 3ecabf47b38f7b49191679b63ae5744c04bd0411 | [
"BSD-2-Clause"
] | null | null | null | from flask import Flask, request, session, redirect, render_template, flash, url_for
from api.movie import movie_api
app = Flask(__name__)
app.config.update(dict(
SECRET_KEY='key',
USERNAME='liliang',
PASSWORD='rock'
))
@app.route('/')
def index():
return redirect(url_for('login'))
@app.route('/login... | 27.74359 | 84 | 0.641405 | 136 | 1,082 | 4.897059 | 0.419118 | 0.036036 | 0.076577 | 0.09009 | 0.084084 | 0.084084 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203327 | 1,082 | 39 | 85 | 27.74359 | 0.772622 | 0 | 0 | 0.0625 | 0 | 0 | 0.200369 | 0.023084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.09375 | 0.0625 | 0.03125 | 0.28125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae0829bf555f754dfa7b9758a9666dd0447b3a6e | 2,465 | py | Python | venv/notCheating.py | ethinallen/Ten-Fast-Fingers-Bot | dc04baf02fc7e48700e10d6a37c01ba41aff6e27 | [
"MIT"
] | null | null | null | venv/notCheating.py | ethinallen/Ten-Fast-Fingers-Bot | dc04baf02fc7e48700e10d6a37c01ba41aff6e27 | [
"MIT"
] | null | null | null | venv/notCheating.py | ethinallen/Ten-Fast-Fingers-Bot | dc04baf02fc7e48700e10d6a37c01ba41aff6e27 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.keys import Keys
import time
from PIL import Image
import os
import pytesseract
#url of the login page
url = 'https:... | 31.202532 | 117 | 0.71643 | 345 | 2,465 | 5.002899 | 0.42029 | 0.034762 | 0.059096 | 0.066049 | 0.128621 | 0.091541 | 0 | 0 | 0 | 0 | 0 | 0.013081 | 0.162677 | 2,465 | 78 | 118 | 31.602564 | 0.823159 | 0.163083 | 0 | 0.050847 | 0 | 0.016949 | 0.182571 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0.050847 | 0.152542 | 0 | 0.305085 | 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 |
ae0a23b9d08e78e6972f0701401bdc6766591a4c | 225 | py | Python | coPrime.py | prateekgulati/numberTheory | 1632ef019aaa96d71c9df1578b785c6b6a2a73d9 | [
"MIT"
] | null | null | null | coPrime.py | prateekgulati/numberTheory | 1632ef019aaa96d71c9df1578b785c6b6a2a73d9 | [
"MIT"
] | null | null | null | coPrime.py | prateekgulati/numberTheory | 1632ef019aaa96d71c9df1578b785c6b6a2a73d9 | [
"MIT"
] | null | null | null | __author__ = 'Prateek'
from sympy import gcd
def coPrime(n):
num = set()
for i in range(1, n):
if (gcd(i, n) == 1):
num.add(i)
return num
#if __author__ == 'Prateek':
# print coPrime(8)
| 15 | 28 | 0.537778 | 33 | 225 | 3.424242 | 0.636364 | 0.230089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.315556 | 225 | 14 | 29 | 16.071429 | 0.714286 | 0.208889 | 0 | 0 | 0 | 0 | 0.039773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae0cde16d8ef8c0f5648dae1b1217b16d1dcfa06 | 1,521 | py | Python | pypda/wavelets/waveform.py | taoyilee/pyPDA | faac9509b17d931c42a2d0b5ce7b2d19ab2e0a45 | [
"MIT"
] | 5 | 2020-02-20T21:38:29.000Z | 2022-01-19T02:59:41.000Z | pypda/wavelets/waveform.py | taoyilee/pyPDA | faac9509b17d931c42a2d0b5ce7b2d19ab2e0a45 | [
"MIT"
] | null | null | null | pypda/wavelets/waveform.py | taoyilee/pyPDA | faac9509b17d931c42a2d0b5ce7b2d19ab2e0a45 | [
"MIT"
] | 1 | 2021-11-06T07:15:47.000Z | 2021-11-06T07:15:47.000Z | import abc
import numpy as np
class Waveform(abc.ABC):
_waveform = None
@property
@abc.abstractmethod
def waveform(self) -> np.ndarray:
raise NotImplementedError
def __len__(self):
return len(self.waveform)
def shift(self, shift=0):
"""
:param shift: shift ... | 26.684211 | 99 | 0.594346 | 185 | 1,521 | 4.72973 | 0.275676 | 0.150857 | 0.08 | 0.038857 | 0.130286 | 0.075429 | 0.075429 | 0 | 0 | 0 | 0 | 0.018501 | 0.289283 | 1,521 | 56 | 100 | 27.160714 | 0.790934 | 0.065746 | 0 | 0.102564 | 0 | 0 | 0.023775 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.205128 | false | 0 | 0.051282 | 0.051282 | 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 |
ae16d6bf2e0c69fe0b41a6ab209e81af561b7f9d | 486 | py | Python | tickets/migrations/0003_alter_ticketlog_ticket.py | Tsatsubii/tsatsubii-helpdesk | baee05b4fd1aedfda8e4039c45f182f29e8db348 | [
"MIT"
] | null | null | null | tickets/migrations/0003_alter_ticketlog_ticket.py | Tsatsubii/tsatsubii-helpdesk | baee05b4fd1aedfda8e4039c45f182f29e8db348 | [
"MIT"
] | null | null | null | tickets/migrations/0003_alter_ticketlog_ticket.py | Tsatsubii/tsatsubii-helpdesk | baee05b4fd1aedfda8e4039c45f182f29e8db348 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-06-01 15:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tickets', '0002_ticketlog'),
]
operations = [
migrations.AlterField(
model_name='ticketlog',
... | 24.3 | 123 | 0.639918 | 55 | 486 | 5.581818 | 0.636364 | 0.078176 | 0.091205 | 0.143322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051213 | 0.236626 | 486 | 19 | 124 | 25.578947 | 0.77628 | 0.092593 | 0 | 0 | 1 | 0 | 0.123007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae18b1a7e4ee3ec56125bc7833e4d403a13b091f | 1,077 | py | Python | polls/tests.py | caizhenzhen2010/mysite | 0c2861b6210c628e8b1d8751a86077bc97a33859 | [
"Apache-2.0"
] | null | null | null | polls/tests.py | caizhenzhen2010/mysite | 0c2861b6210c628e8b1d8751a86077bc97a33859 | [
"Apache-2.0"
] | null | null | null | polls/tests.py | caizhenzhen2010/mysite | 0c2861b6210c628e8b1d8751a86077bc97a33859 | [
"Apache-2.0"
] | null | null | null | from django.test import TestCase
import datetime
from django.utils import timezone
from .models import Question
# Create your tests here.
class QuestionMethodTests(TestCase):
def test_was_published_recently_with_future_question(self):
time=timezone.now()+datetime.timedelta(days=30)
future_question=Question(pub_da... | 38.464286 | 67 | 0.790158 | 146 | 1,077 | 5.561644 | 0.349315 | 0.118227 | 0.197044 | 0.070197 | 0.599754 | 0.599754 | 0.514778 | 0.157635 | 0.157635 | 0.157635 | 0 | 0.006336 | 0.120706 | 1,077 | 27 | 68 | 39.888889 | 0.851109 | 0.203343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae21e0b85bd64b62e79ecc69a49b368fb9240123 | 751 | py | Python | lambdata_davidvollendroff/__init__.py | DavidVollendroff/lambdata | 4ffb65230ce3690c86b37433c550d115ca5c8645 | [
"MIT"
] | 1 | 2020-09-02T04:42:41.000Z | 2020-09-02T04:42:41.000Z | lambdata_davidvollendroff/__init__.py | DavidVollendroff/lambdata | 4ffb65230ce3690c86b37433c550d115ca5c8645 | [
"MIT"
] | null | null | null | lambdata_davidvollendroff/__init__.py | DavidVollendroff/lambdata | 4ffb65230ce3690c86b37433c550d115ca5c8645 | [
"MIT"
] | 1 | 2020-01-14T18:50:32.000Z | 2020-01-14T18:50:32.000Z | """
Collection of Data Science helper functions
"""
import pandas as pd
import numpy as np
from sklearn.metrics import confusion_matrix
from sklearn.utils.multiclass import unique_labels
import seaborn as sns
def confusion_plot(y_true, y_pred, cmap='viridis'):
"""
Plots a confusion matrix using the Seaborn ... | 25.896552 | 61 | 0.676431 | 104 | 751 | 4.788462 | 0.528846 | 0.090361 | 0.024096 | 0.040161 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.22237 | 751 | 28 | 62 | 26.821429 | 0.84589 | 0.125166 | 0 | 0 | 0 | 0 | 0.061514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ae2306e0be27da420b69610d6eb8771f06e98033 | 597 | py | Python | kaori/plugins/gacha/engine/test_engine.py | austinpray/kaori | b21c4146b9d0d27b87015cff0768138568a12e9c | [
"MIT"
] | 3 | 2020-05-04T03:43:20.000Z | 2020-12-03T22:34:47.000Z | kaori/plugins/gacha/engine/test_engine.py | austinpray/kaori | b21c4146b9d0d27b87015cff0768138568a12e9c | [
"MIT"
] | 287 | 2020-04-21T02:39:47.000Z | 2022-03-28T13:11:59.000Z | kaori/plugins/gacha/engine/test_engine.py | austinpray/kaori | b21c4146b9d0d27b87015cff0768138568a12e9c | [
"MIT"
] | 1 | 2020-10-22T00:20:43.000Z | 2020-10-22T00:20:43.000Z | from . import *
from .test.web_battle_simulator import run_web_battle_simulator
from .test.cards.hp_cards import low_hp, high_hp
def test_engine():
assert find_max_nature_value(rarities) == 11
assert int(combat_strat.calculate_stat(HP, low_hp.nature_values)) == 1
assert int(combat_strat.calculate_stat(HP... | 35.117647 | 79 | 0.750419 | 89 | 597 | 4.730337 | 0.393258 | 0.085511 | 0.171021 | 0.149644 | 0.522565 | 0.522565 | 0.380048 | 0.213777 | 0 | 0 | 0 | 0.042969 | 0.142379 | 597 | 16 | 80 | 37.3125 | 0.779297 | 0 | 0 | 0.166667 | 0 | 0 | 0.067002 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae323c1626e30ee81cda86b4dd057ba6f8f92b18 | 3,214 | py | Python | app/importers/git.py | OPEN-NEXT/import-export | db3e720f29cdc30846667f7cd6ba3cc653146fc4 | [
"MIT"
] | null | null | null | app/importers/git.py | OPEN-NEXT/import-export | db3e720f29cdc30846667f7cd6ba3cc653146fc4 | [
"MIT"
] | 25 | 2021-03-09T15:27:44.000Z | 2021-06-09T10:09:43.000Z | app/importers/git.py | wikifactory/import-export | f7775d52d23b06a47cdaad13ae48e7727bb850fd | [
"MIT"
] | null | null | null | import os
import re
import shutil
import subprocess
from sqlalchemy.orm import Session
from app import crud
from app.importers.base import BaseImporter
from app.models.job import Job, JobStatus
from app.schemas import ManifestInput
def clone_repository(url: str, path: str) -> None:
# Due to the use of core.syml... | 34.55914 | 89 | 0.63939 | 411 | 3,214 | 4.841849 | 0.372263 | 0.027638 | 0.022613 | 0.028643 | 0.139196 | 0.139196 | 0.139196 | 0.139196 | 0.11407 | 0.08593 | 0 | 0.000861 | 0.277536 | 3,214 | 92 | 90 | 34.934783 | 0.856158 | 0.170193 | 0 | 0.065574 | 0 | 0 | 0.02939 | 0 | 0 | 0 | 0 | 0.01087 | 0.016393 | 1 | 0.065574 | false | 0 | 0.262295 | 0 | 0.360656 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ae38594457868906fb5c0386e9091032eaf60724 | 1,805 | py | Python | wagtailseo/migrations/0001_initial.py | bestasholli/wagtail-seo | 9b86b19ef40c0e28c6101fa44f2031e2468c1310 | [
"BSD-3-Clause"
] | 37 | 2020-09-03T21:12:54.000Z | 2022-02-08T13:03:43.000Z | wagtailseo/migrations/0001_initial.py | bestasholli/wagtail-seo | 9b86b19ef40c0e28c6101fa44f2031e2468c1310 | [
"BSD-3-Clause"
] | 21 | 2020-09-28T12:35:33.000Z | 2022-01-21T15:50:00.000Z | wagtailseo/migrations/0001_initial.py | bestasholli/wagtail-seo | 9b86b19ef40c0e28c6101fa44f2031e2468c1310 | [
"BSD-3-Clause"
] | 7 | 2020-10-07T07:10:16.000Z | 2022-02-28T19:17:39.000Z | # Generated by Django 3.1.1 on 2020-09-04 02:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailcore', '0052_pagelogentry'),
]
operations = [
migrations.CreateMo... | 56.40625 | 248 | 0.655956 | 218 | 1,805 | 5.330275 | 0.541284 | 0.066265 | 0.051635 | 0.099828 | 0.177281 | 0.177281 | 0.105852 | 0 | 0 | 0 | 0 | 0.015 | 0.224377 | 1,805 | 31 | 249 | 58.225806 | 0.815 | 0.024931 | 0 | 0 | 1 | 0.083333 | 0.396063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 |
ae386def65bb2d5fb4e6d9355dd0fe7f7ee5d0fc | 407 | py | Python | kubernetes_typed/client/models/v2_hpa_scaling_rules.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | kubernetes_typed/client/models/v2_hpa_scaling_rules.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | kubernetes_typed/client/models/v2_hpa_scaling_rules.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V2HPAScalingRulesDict generated type."""
from typing import TypedDict, List
from kubernetes_typed.client import V2HPAScalingPolicyDict
V2HPAScalingRulesDict = TypedDict(
"V2HPAScalingRulesDict",
{
"policies": List[V2HPAScalingPolicyDict],
"se... | 25.4375 | 58 | 0.717445 | 33 | 407 | 8.818182 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015106 | 0.186732 | 407 | 15 | 59 | 27.133333 | 0.864048 | 0.208845 | 0 | 0 | 1 | 0 | 0.212025 | 0.148734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae447f1760543ea7215e4a4226006f54607ece0d | 6,954 | py | Python | vggface/system_main.py | Mr-KouZhe/liangzhangtupianduibi | 054c73395986e58d41b207af0d11187eec0a7f3e | [
"MIT"
] | null | null | null | vggface/system_main.py | Mr-KouZhe/liangzhangtupianduibi | 054c73395986e58d41b207af0d11187eec0a7f3e | [
"MIT"
] | null | null | null | vggface/system_main.py | Mr-KouZhe/liangzhangtupianduibi | 054c73395986e58d41b207af0d11187eec0a7f3e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#想要加中文注释就必须将字符编码格式设置为utf8
#作者:郭开
import numpy as np
import os
import cv2
import cv2.cv as cv
from skimage import transform as tf
from PIL import Image, ImageDraw
import threading
from time import ctime,sleep
import time
import sklearn
import matplotlib.pyplot as plt
import skimage
caffe_root =... | 28.735537 | 144 | 0.563273 | 921 | 6,954 | 4.157438 | 0.305103 | 0.040742 | 0.016715 | 0.021938 | 0.183338 | 0.165578 | 0.165578 | 0.123792 | 0.123792 | 0.123792 | 0 | 0.059205 | 0.290768 | 6,954 | 241 | 145 | 28.854772 | 0.717153 | 0.119643 | 0 | 0.216049 | 0 | 0 | 0.073195 | 0.037916 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092593 | null | null | 0.049383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ae47fe3eca11e4f41a6fcd797d752c7467bd79b3 | 7,767 | py | Python | weekly_challenge/week3/solution.py | WooJin1993/coding_test | ec9dc2dc768fe45700b4c0695b16535c0a824f6e | [
"MIT"
] | null | null | null | weekly_challenge/week3/solution.py | WooJin1993/coding_test | ec9dc2dc768fe45700b4c0695b16535c0a824f6e | [
"MIT"
] | null | null | null | weekly_challenge/week3/solution.py | WooJin1993/coding_test | ec9dc2dc768fe45700b4c0695b16535c0a824f6e | [
"MIT"
] | null | null | null | def get_rotated(matrix):
return [list(reversed(m)) for m in zip(*matrix)]
def get_expanded(game_board):
N = len(game_board)
expanded = [[1] * (N+2) for _ in range(N + 2)]
for x in range(N):
for y in range(N):
expanded[1 + x][1 + y] = game_board[x][y]
return expanded
... | 27.938849 | 107 | 0.501352 | 1,063 | 7,767 | 3.496707 | 0.124177 | 0.052731 | 0.034974 | 0.020716 | 0.282755 | 0.151466 | 0.128598 | 0.103309 | 0.075868 | 0.062954 | 0 | 0.019187 | 0.382645 | 7,767 | 278 | 108 | 27.938849 | 0.755996 | 0.020986 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020513 | 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 |
ae4ab9902b3e7758abb4bb57b4945170077cb37d | 5,976 | py | Python | avilla/onebot/message_parse.py | BlueGlassBlock/Avilla | fd6bf546b430f0f755af4f29ceca87cc5f14e742 | [
"MIT"
] | null | null | null | avilla/onebot/message_parse.py | BlueGlassBlock/Avilla | fd6bf546b430f0f755af4f29ceca87cc5f14e742 | [
"MIT"
] | null | null | null | avilla/onebot/message_parse.py | BlueGlassBlock/Avilla | fd6bf546b430f0f755af4f29ceca87cc5f14e742 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING, Any, Dict, Type
from avilla.core.elements import Audio, Image, Notice, NoticeAll, Text, Video
from avilla.core.message import Element
from avilla.core.selectors import entity as entity_selector
from avilla.core.selectors import resource as resource_selector
from avilla.core.utilles im... | 32.302703 | 108 | 0.629016 | 650 | 5,976 | 5.72 | 0.136923 | 0.064551 | 0.056482 | 0.161377 | 0.353416 | 0.337816 | 0.106509 | 0.084454 | 0.084454 | 0.084454 | 0 | 0 | 0.221553 | 5,976 | 184 | 109 | 32.478261 | 0.799226 | 0 | 0 | 0.164557 | 0 | 0 | 0.110944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006329 | false | 0 | 0.056962 | 0 | 0.234177 | 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 |
ae568b5278e1147bedc178ea7ba6c7e24b002810 | 632 | py | Python | day-02/python_alexlyttle/test.py | alan-turing-institute/advent-of-code-2021 | b5f3c163464f0d9403b66147ad7d833176ed59a8 | [
"MIT"
] | 12 | 2021-12-01T16:31:11.000Z | 2022-01-30T20:20:31.000Z | day-02/python_alexlyttle/test.py | alan-turing-institute/advent-of-code-2021 | b5f3c163464f0d9403b66147ad7d833176ed59a8 | [
"MIT"
] | null | null | null | day-02/python_alexlyttle/test.py | alan-turing-institute/advent-of-code-2021 | b5f3c163464f0d9403b66147ad7d833176ed59a8 | [
"MIT"
] | 2 | 2021-12-03T20:07:12.000Z | 2021-12-20T00:31:39.000Z | import unittest
from io import StringIO
from navigate import total_displacement
TESTINPUT = (
'forward 5\n' +
'down 5\n' +
'forward 8\n' +
'up 3\n' +
'down 8\n' +
'forward 2'
)
class TestNavigate(unittest.TestCase):
def test_total_displacement_1(self):
input_file = StringIO(TEST... | 21.066667 | 70 | 0.643987 | 77 | 632 | 5 | 0.467532 | 0.220779 | 0.062338 | 0.124675 | 0.368831 | 0.368831 | 0.368831 | 0.368831 | 0.368831 | 0.368831 | 0 | 0.033613 | 0.246835 | 632 | 29 | 71 | 21.793103 | 0.77521 | 0 | 0 | 0.095238 | 0 | 0 | 0.096519 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
ae59a25879321b19d1edba94b56ffd99e2024a97 | 1,606 | py | Python | urltools/tests/tymer_urltools.py | itzik-h/urltools | 6b9a508604d644814e86cc2d7cb5eb63d0ec949b | [
"MIT"
] | null | null | null | urltools/tests/tymer_urltools.py | itzik-h/urltools | 6b9a508604d644814e86cc2d7cb5eb63d0ec949b | [
"MIT"
] | null | null | null | urltools/tests/tymer_urltools.py | itzik-h/urltools | 6b9a508604d644814e86cc2d7cb5eb63d0ec949b | [
"MIT"
] | 1 | 2021-09-10T18:40:50.000Z | 2021-09-10T18:40:50.000Z | # -*- coding: utf-8 -*-
from tymer import t, skip
setup_tymer = """
import tldextract, posixpath, urlparse
from urltools.urltools import assemble, parse, extract, encode, split, split_netloc
from urltools.urltools import normalize, normalize_path, normalize_query, unquote
from urltools.urltools import _get_public_s... | 20.857143 | 83 | 0.651308 | 225 | 1,606 | 4.453333 | 0.24 | 0.10978 | 0.11976 | 0.05988 | 0.210579 | 0.125749 | 0.125749 | 0 | 0 | 0 | 0 | 0.018719 | 0.135118 | 1,606 | 76 | 84 | 21.131579 | 0.702664 | 0.013076 | 0 | 0.27451 | 0 | 0.039216 | 0.619709 | 0.218572 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196078 | false | 0 | 0.098039 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae59e13870dc4fed9cf4832f4e2f0366634dbb4f | 510 | py | Python | 01-introductory-problems/08-two-sets.py | hamza1886/cses | 11f50ed6b10b50da975087e0f21400f7f484600f | [
"MIT"
] | null | null | null | 01-introductory-problems/08-two-sets.py | hamza1886/cses | 11f50ed6b10b50da975087e0f21400f7f484600f | [
"MIT"
] | null | null | null | 01-introductory-problems/08-two-sets.py | hamza1886/cses | 11f50ed6b10b50da975087e0f21400f7f484600f | [
"MIT"
] | null | null | null | # https://cses.fi/problemset/task/1092
n = int(input())
if n % 4 in [1, 2]:
print('NO')
exit()
s1, s2 = '', ''
if n % 4 == 0:
x = n // 2 + 1
for i in range(1, x, 2):
s1 += str(i) + ' ' + str(n - i + 1) + ' '
s2 += str(i + 1) + ' ' + str(n - i) + ' '
else:
s1 = '1 2'
s2 = '3'
... | 20.4 | 49 | 0.378431 | 88 | 510 | 2.193182 | 0.318182 | 0.124352 | 0.041451 | 0.11399 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110092 | 0.358824 | 510 | 24 | 50 | 21.25 | 0.480122 | 0.070588 | 0 | 0 | 0 | 0 | 0.036017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae5fd52cd709b0c28c28d8527a89af55ce406175 | 394 | py | Python | interface/optools/migrations/0005_auto_20190928_1413.py | handyc/openphilology.eu | d0bded64ab616067abd0dd1859605f96a2d35548 | [
"MIT"
] | 1 | 2021-01-19T19:56:32.000Z | 2021-01-19T19:56:32.000Z | interface/optools/migrations/0005_auto_20190928_1413.py | handyc/openphilology.eu | d0bded64ab616067abd0dd1859605f96a2d35548 | [
"MIT"
] | null | null | null | interface/optools/migrations/0005_auto_20190928_1413.py | handyc/openphilology.eu | d0bded64ab616067abd0dd1859605f96a2d35548 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-09-28 14:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('optools', '0004_auto_20190928_1339'),
]
operations = [
migrations.AlterModelOptions(
name='section',
options={'ordering': ('... | 21.888889 | 91 | 0.609137 | 40 | 394 | 5.875 | 0.825 | 0.017021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105802 | 0.256345 | 394 | 17 | 92 | 23.176471 | 0.696246 | 0.114213 | 0 | 0 | 1 | 0 | 0.244957 | 0.066282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae629b2ff84d2c812fab08c7d09d368c73396740 | 267 | py | Python | api.py | arXiv/arxiv-funding | ee513ea778b7bcadc17744e8c4113150937b1edb | [
"MIT"
] | 3 | 2020-06-29T15:06:40.000Z | 2021-11-05T12:28:32.000Z | api.py | arXiv/arxiv-funding | ee513ea778b7bcadc17744e8c4113150937b1edb | [
"MIT"
] | 14 | 2019-06-21T20:01:02.000Z | 2021-06-02T00:01:50.000Z | api.py | arXiv/arxiv-funding | ee513ea778b7bcadc17744e8c4113150937b1edb | [
"MIT"
] | 2 | 2020-12-06T16:29:04.000Z | 2021-11-05T12:28:22.000Z | """
Development entry-point for the API application.
Intended for use with the Flask development server. Run like:
.. code-block:: bash
FLASK_APP=api.py FLASK_DEBUG=1 pipenv run flask run
"""
from funding.factory import create_api_app
app = create_api_app()
| 17.8 | 61 | 0.756554 | 42 | 267 | 4.666667 | 0.642857 | 0.091837 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.161049 | 267 | 14 | 62 | 19.071429 | 0.870536 | 0.707865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ae62f829ee9adb154a8e0be7e4fb6433d33ebfef | 782 | py | Python | django_generic/images.py | maledorak/django-generic | 938829724bc695d9e746aedf628ce277be75e8c8 | [
"MIT"
] | null | null | null | django_generic/images.py | maledorak/django-generic | 938829724bc695d9e746aedf628ce277be75e8c8 | [
"MIT"
] | 7 | 2020-02-11T23:02:55.000Z | 2022-01-13T00:49:46.000Z | django_generic/images.py | maledorak/django-generic | 938829724bc695d9e746aedf628ce277be75e8c8 | [
"MIT"
] | null | null | null | import requests
from django.core.files.uploadedfile import SimpleUploadedFile
from mimetypes import guess_extension
from uuid import uuid4
def get_image_from_url(url, name=None, ext=None):
"""
Get image source from url and create simple in memory file.
:param url: url file
:return: SimpleUploadedFile ... | 37.238095 | 86 | 0.726343 | 106 | 782 | 5.235849 | 0.424528 | 0.099099 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004623 | 0.170077 | 782 | 20 | 87 | 39.1 | 0.850539 | 0.154731 | 0 | 0 | 0 | 0 | 0.048666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ae6360be6acfdcffd48a15dbed515af3fd772770 | 228 | py | Python | APIS/speech/tts.py | vadim-ivlev/STUDY | 286675fcdf154ea605f50059c4a60b212b3ba4b9 | [
"MIT"
] | null | null | null | APIS/speech/tts.py | vadim-ivlev/STUDY | 286675fcdf154ea605f50059c4a60b212b3ba4b9 | [
"MIT"
] | null | null | null | APIS/speech/tts.py | vadim-ivlev/STUDY | 286675fcdf154ea605f50059c4a60b212b3ba4b9 | [
"MIT"
] | null | null | null | # https://pythonprogramminglanguage.com/text-to-speech/
#
from gtts import gTTS
import os
def say(s,l='en'):
tts = gTTS(text=s, lang=l)
tts.save("good.mp3")
os.system("afplay good.mp3")
#say("Good morning!",'en') | 19 | 55 | 0.653509 | 36 | 228 | 4.138889 | 0.638889 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.153509 | 228 | 12 | 56 | 19 | 0.761658 | 0.346491 | 0 | 0 | 0 | 0 | 0.171233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ae648a1c751d8be18bafafbe85d1961d35d1ff8f | 2,747 | py | Python | minions/views.py | sara/Assemble-the-Minions | e061c067e855fd54dffdc1b1b5a8be6db661a851 | [
"MIT"
] | null | null | null | minions/views.py | sara/Assemble-the-Minions | e061c067e855fd54dffdc1b1b5a8be6db661a851 | [
"MIT"
] | null | null | null | minions/views.py | sara/Assemble-the-Minions | e061c067e855fd54dffdc1b1b5a8be6db661a851 | [
"MIT"
] | null | null | null | #!venv/bin/python
from flask import request
from flask.ext.sqlalchemy import SQLAlchemy
from twilio.twiml.messaging_response import MessagingResponse
from twilio.rest import Client
from minions import app, db
from models import Ambassador, Schedule
@app.route("/sms", methods = ['GET', 'POST'])
def process_request():
... | 36.626667 | 152 | 0.704405 | 401 | 2,747 | 4.630923 | 0.314214 | 0.094777 | 0.029079 | 0.038772 | 0.117932 | 0.042003 | 0.030156 | 0 | 0 | 0 | 0 | 0.01398 | 0.166727 | 2,747 | 74 | 153 | 37.121622 | 0.797291 | 0.018566 | 0 | 0.046154 | 0 | 0.015385 | 0.115856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092308 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ae7076bb518b0d9b99498bb20d29855781814230 | 3,059 | py | Python | app.py | coleyon/chouseisan-webhook | 54033b1b7a1cc9413a85209eb78349f82cd2eafc | [
"MIT"
] | null | null | null | app.py | coleyon/chouseisan-webhook | 54033b1b7a1cc9413a85209eb78349f82cd2eafc | [
"MIT"
] | null | null | null | app.py | coleyon/chouseisan-webhook | 54033b1b7a1cc9413a85209eb78349f82cd2eafc | [
"MIT"
] | null | null | null | import os
import requests
import json
import pytz
from datetime import datetime as dt
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.desired... | 31.864583 | 84 | 0.650539 | 364 | 3,059 | 5.271978 | 0.406593 | 0.040125 | 0.044294 | 0.049505 | 0.07556 | 0.07556 | 0.048463 | 0 | 0 | 0 | 0 | 0.015164 | 0.202354 | 3,059 | 95 | 85 | 32.2 | 0.771311 | 0.034652 | 0 | 0.025974 | 0 | 0 | 0.166044 | 0.016299 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.038961 | false | 0 | 0.142857 | 0.025974 | 0.220779 | 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 |
ae77178c104e5144c75de9695eea372a8bb42abe | 3,114 | py | Python | assignments/assignment3/model.py | shaenblu/ods_dl_course | 57c46baa68f0f49df72902f03e5de117d4364de6 | [
"MIT"
] | null | null | null | assignments/assignment3/model.py | shaenblu/ods_dl_course | 57c46baa68f0f49df72902f03e5de117d4364de6 | [
"MIT"
] | null | null | null | assignments/assignment3/model.py | shaenblu/ods_dl_course | 57c46baa68f0f49df72902f03e5de117d4364de6 | [
"MIT"
] | null | null | null | import numpy as np
from layers import (
FullyConnectedLayer, ReLULayer,
ConvolutionalLayer, MaxPoolingLayer, Flattener,
softmax_with_cross_entropy, l2_regularization, softmax
)
class ConvNet:
"""
Implements a very simple conv net
Input -> Conv[3x3] -> Relu -> Maxpool[4x4] ->
Conv[3x3... | 31.77551 | 114 | 0.604689 | 362 | 3,114 | 5.008287 | 0.339779 | 0.033094 | 0.023166 | 0.025372 | 0.212907 | 0.189741 | 0.189741 | 0.114727 | 0.058467 | 0.058467 | 0 | 0.021405 | 0.309891 | 3,114 | 97 | 115 | 32.103093 | 0.822243 | 0.265896 | 0 | 0.163265 | 0 | 0 | 0.002342 | 0 | 0 | 0 | 0 | 0.010309 | 0.061224 | 1 | 0.081633 | false | 0 | 0.040816 | 0 | 0.204082 | 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 |
ae7a4f94aa501b8ccc6fb704fbb851edf61963fc | 3,210 | py | Python | tests/sps/test_article_ids.py | rafaelpezzuto/packtools | 5153ed128a877ba56c289f7904dea73081426750 | [
"BSD-2-Clause"
] | null | null | null | tests/sps/test_article_ids.py | rafaelpezzuto/packtools | 5153ed128a877ba56c289f7904dea73081426750 | [
"BSD-2-Clause"
] | null | null | null | tests/sps/test_article_ids.py | rafaelpezzuto/packtools | 5153ed128a877ba56c289f7904dea73081426750 | [
"BSD-2-Clause"
] | null | null | null | from unittest import TestCase, skip
from lxml import etree
from packtools.sps.models.article_ids import (
ArticleIds,
)
def _get_xmltree(xml=None):
xml = xml or ''
s = (
"<article>"
"<front>"
" <article-meta>"
f"{xml}"
" </article-meta>"
"</front>"
... | 32.755102 | 117 | 0.647664 | 385 | 3,210 | 5.197403 | 0.21039 | 0.143928 | 0.116942 | 0.057471 | 0.522239 | 0.437781 | 0.345327 | 0.292354 | 0.222389 | 0.222389 | 0 | 0.099476 | 0.22648 | 3,210 | 97 | 118 | 33.092784 | 0.706404 | 0.02866 | 0 | 0.09589 | 0 | 0.054795 | 0.266946 | 0.19787 | 0 | 0 | 0 | 0 | 0.205479 | 1 | 0.232877 | false | 0 | 0.041096 | 0 | 0.30137 | 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 |
ae8a21eff9f8f47acaaa577469d1c510b5eac899 | 1,217 | py | Python | 01-Lesson-Plans/02-Python/2/Activities/02-Stu_Lists/Solved/Core/grocery_list_core.py | tatianegercina/FinTech | b40687aa362d78674e223eb15ecf14bc59f90b62 | [
"ADSL"
] | 1 | 2021-04-13T07:14:34.000Z | 2021-04-13T07:14:34.000Z | 01-Lesson-Plans/02-Python/2/Activities/02-Stu_Lists/Solved/Core/grocery_list_core.py | tatianegercina/FinTech | b40687aa362d78674e223eb15ecf14bc59f90b62 | [
"ADSL"
] | 2 | 2021-06-02T03:14:19.000Z | 2022-02-11T23:21:24.000Z | 01-Lesson-Plans/02-Python/2/Activities/02-Stu_Lists/Solved/Core/grocery_list_core.py | tatianegercina/FinTech | b40687aa362d78674e223eb15ecf14bc59f90b62 | [
"ADSL"
] | 1 | 2021-05-07T13:26:50.000Z | 2021-05-07T13:26:50.000Z | # -*- coding: utf-8 -*-
"""
Student Do: Grocery List.
This script showcases basic operations of Python Lists to help Sally
organize her grocery shopping list.
"""
# Create a list of groceries
print("My list of groceries:")
groceries = ["water", "butter", "eggs", "apples", "cinnamon", "sugar", "milk"]
print(groceries)... | 26.456522 | 78 | 0.722268 | 199 | 1,217 | 4.417085 | 0.432161 | 0.071672 | 0.061433 | 0.063709 | 0.278726 | 0.278726 | 0.278726 | 0.195677 | 0.120592 | 0.120592 | 0 | 0.005888 | 0.162695 | 1,217 | 45 | 79 | 27.044444 | 0.856722 | 0.38373 | 0 | 0.416667 | 0 | 0 | 0.510204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae9076a90c87432d4bff7f590c9aaed97600b903 | 4,404 | py | Python | tools/fixtures/2D/generate_chain_fixture.py | ipc-sim/rigid-ipc | d839af457236e7363b14c2e482a01d8160fa447e | [
"MIT"
] | 71 | 2021-09-08T13:16:43.000Z | 2022-03-27T10:23:33.000Z | tools/fixtures/2D/generate_chain_fixture.py | ipc-sim/rigid-ipc | d839af457236e7363b14c2e482a01d8160fa447e | [
"MIT"
] | 4 | 2021-09-08T00:16:20.000Z | 2022-01-05T17:44:08.000Z | tools/fixtures/2D/generate_chain_fixture.py | ipc-sim/rigid-ipc | d839af457236e7363b14c2e482a01d8160fa447e | [
"MIT"
] | 2 | 2021-09-18T15:15:38.000Z | 2021-09-21T15:15:38.000Z | #!/usr/local/bin/python3
"""
Script to generate a fixture of a chain with N complex links.
Usage: python generate_complex_chainmail_fixture.py N
"""
import json
import pathlib
import numpy
import shapely.geometry
import shapely.ops
from fixture_utils import *
def generate_link_polygons() -> list:
"""Generate ... | 32.145985 | 79 | 0.574478 | 521 | 4,404 | 4.604607 | 0.287908 | 0.119216 | 0.040017 | 0.033347 | 0.204252 | 0.130471 | 0.115882 | 0.115882 | 0.115882 | 0.034181 | 0 | 0.021056 | 0.320618 | 4,404 | 136 | 80 | 32.382353 | 0.780749 | 0.082425 | 0 | 0.041667 | 1 | 0 | 0.055611 | 0.008479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.114583 | 0.010417 | 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 |
ae91ff0edaae52b9b830973e19b5f22551c74419 | 2,523 | py | Python | src/htsql_pgsql/core/connect.py | sirex/htsql | 52275f6a584b412c109822d2ed2a5e69ac522cdf | [
"Apache-2.0"
] | null | null | null | src/htsql_pgsql/core/connect.py | sirex/htsql | 52275f6a584b412c109822d2ed2a5e69ac522cdf | [
"Apache-2.0"
] | null | null | null | src/htsql_pgsql/core/connect.py | sirex/htsql | 52275f6a584b412c109822d2ed2a5e69ac522cdf | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2006-2013, Prometheus Research, LLC
#
from htsql.core.adapter import adapt
from htsql.core.domain import TextDomain, EnumDomain
from htsql.core.connect import (Connect, UnscrambleError, Unscramble,
Scramble)
from htsql.core.context import context
import psycopg2, psycopg2.extensions
class ... | 29 | 75 | 0.63694 | 265 | 2,523 | 6 | 0.377358 | 0.039623 | 0.028302 | 0.059748 | 0.208805 | 0.208805 | 0.148428 | 0.098113 | 0.098113 | 0.098113 | 0 | 0.012068 | 0.277447 | 2,523 | 86 | 76 | 29.337209 | 0.860121 | 0.158145 | 0 | 0.24 | 0 | 0 | 0.023844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.08 | 0.1 | 0 | 0.36 | 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 |
ae945af689f7c2b73675a477ef56bc2cb327d75c | 1,852 | py | Python | src/openlets/core/tests.py | dnephin/openLETS | e5d14de1c4483dc2c47900ce521151c39b881543 | [
"BSD-3-Clause"
] | 6 | 2015-10-30T08:08:42.000Z | 2021-07-26T17:12:08.000Z | src/openlets/core/tests.py | dnephin/openLETS | e5d14de1c4483dc2c47900ce521151c39b881543 | [
"BSD-3-Clause"
] | null | null | null | src/openlets/core/tests.py | dnephin/openLETS | e5d14de1c4483dc2c47900ce521151c39b881543 | [
"BSD-3-Clause"
] | 4 | 2017-09-21T20:07:07.000Z | 2020-10-18T02:32:14.000Z | """
Unittests!
"""
from decimal import Decimal
from django.test import TestCase
from core import db
from core import models
class DBTestCase(TestCase):
fixtures = ['testing/base.json']
def test_get_balance(self):
balance = db.get_balance(7, 10, 3)
self.assertEqual(balance.value, 62)
self.assertEqual(
s... | 21.788235 | 61 | 0.693305 | 268 | 1,852 | 4.597015 | 0.335821 | 0.073052 | 0.038961 | 0.029221 | 0.249188 | 0.113636 | 0.069805 | 0.069805 | 0.069805 | 0.069805 | 0 | 0.063858 | 0.179806 | 1,852 | 84 | 62 | 22.047619 | 0.747202 | 0.026998 | 0 | 0.121212 | 0 | 0 | 0.063652 | 0 | 0 | 0 | 0 | 0.011905 | 0.136364 | 1 | 0.106061 | false | 0 | 0.060606 | 0.015152 | 0.227273 | 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 |
881725bb891d251cac9a7819733ddd080c9d9abb | 1,438 | py | Python | muz/frontend/pygame/audio.py | Akaricchi/muz | 87c443ae26fc287dda38ca1066856048642295a6 | [
"WTFPL"
] | 9 | 2016-09-20T16:53:55.000Z | 2018-07-06T06:47:12.000Z | muz/frontend/pygame/audio.py | Akaricchi/muz | 87c443ae26fc287dda38ca1066856048642295a6 | [
"WTFPL"
] | null | null | null | muz/frontend/pygame/audio.py | Akaricchi/muz | 87c443ae26fc287dda38ca1066856048642295a6 | [
"WTFPL"
] | null | null | null |
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import muz.frontend
import pygame
class Sound(muz.frontend.Sound):
def __init__(self, node):
self._sound = pygame.mixer.Sound(node.openRealFile())
def ... | 23.193548 | 61 | 0.647427 | 177 | 1,438 | 5.039548 | 0.299435 | 0.110987 | 0.143498 | 0.057175 | 0.118834 | 0.118834 | 0.053812 | 0 | 0 | 0 | 0 | 0.011121 | 0.249652 | 1,438 | 61 | 62 | 23.57377 | 0.81557 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27907 | false | 0 | 0.139535 | 0.093023 | 0.651163 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
881af20cedb1b06231210c62f612172ff0ad7a1f | 5,394 | py | Python | app/FileViewer/FileServer/makeThumbs.py | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | app/FileViewer/FileServer/makeThumbs.py | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | app/FileViewer/FileServer/makeThumbs.py | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | 1 | 2021-07-02T10:31:03.000Z | 2021-07-02T10:31:03.000Z | import os, os.path, sys, wx, stat, shutil
import subprocess as sp
import traceback as tb
opj = os.path.join
global FILES_DIR, THUMB_DIR
MPLAYER_DIR = "mplayer" # change if needed
CONVERT_DIR = "convert" # imagemagick's convert
wx.InitAllImageHandlers()
def __GetThumbName(fullPath, fileType):
fileSize = os.... | 34.576923 | 100 | 0.606971 | 707 | 5,394 | 4.487977 | 0.27157 | 0.03971 | 0.066183 | 0.062402 | 0.297825 | 0.279546 | 0.241727 | 0.224078 | 0.224078 | 0.224078 | 0 | 0.022104 | 0.2703 | 5,394 | 155 | 101 | 34.8 | 0.784045 | 0.11828 | 0 | 0.324324 | 0 | 0 | 0.091485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036036 | null | null | 0.126126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
882849f9a1c3a476b0f9019e633e11ef96955c6c | 2,721 | py | Python | galleria/tests.py | Maryan23/Studio-Picturesque | f58f307f039762888c9aabbeda29cc7c8cd3fe37 | [
"MIT"
] | null | null | null | galleria/tests.py | Maryan23/Studio-Picturesque | f58f307f039762888c9aabbeda29cc7c8cd3fe37 | [
"MIT"
] | null | null | null | galleria/tests.py | Maryan23/Studio-Picturesque | f58f307f039762888c9aabbeda29cc7c8cd3fe37 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Pictures,Category,Location
# Create your tests here.
class LocationTestClass(TestCase):
def setUp(self):
self.montreal = Location(loc='Montreal')
def test_location_instance(self):
self.assertTrue(isinstance(self.montreal,Location))
def... | 32.783133 | 146 | 0.664094 | 322 | 2,721 | 5.481366 | 0.189441 | 0.058924 | 0.055524 | 0.067989 | 0.498584 | 0.380737 | 0.287819 | 0.287819 | 0.287819 | 0.145042 | 0 | 0.00469 | 0.216465 | 2,721 | 83 | 147 | 32.783133 | 0.823171 | 0.034179 | 0 | 0.344262 | 0 | 0 | 0.024184 | 0 | 0 | 0 | 0 | 0 | 0.213115 | 1 | 0.229508 | false | 0 | 0.032787 | 0 | 0.311475 | 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 |
882ce628143c964a19b605d17dac175d55e4870f | 1,689 | py | Python | core/darpdfurls.py | transparenciahackday/democratica | 246e79931c3e314a269469e67da00c12af3a5818 | [
"MIT"
] | 3 | 2016-01-10T16:00:10.000Z | 2018-03-13T09:21:33.000Z | core/darpdfurls.py | transparenciahackday/democratica | 246e79931c3e314a269469e67da00c12af3a5818 | [
"MIT"
] | null | null | null | core/darpdfurls.py | transparenciahackday/democratica | 246e79931c3e314a269469e67da00c12af3a5818 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import binascii
leg = 12
sess = 1
number = 13
BASE_URL_TEMPLATE = u'http://app.parlamento.pt/darpages/dardoc.aspx?doc=%s&nome=%s'
URL_TEMPLATES = {
12: u'http://arnet/sites/XIILeg/DARI/DARIArquivo/%dª%%20Sessão%%20Legislativa/DAR-I-%03d.pdf',
1... | 35.1875 | 102 | 0.66193 | 238 | 1,689 | 4.592437 | 0.365546 | 0.032022 | 0.054895 | 0.082342 | 0.254346 | 0.21043 | 0.175663 | 0.175663 | 0.175663 | 0 | 0 | 0.052632 | 0.167555 | 1,689 | 47 | 103 | 35.93617 | 0.724751 | 0.052102 | 0 | 0 | 0 | 0.194444 | 0.393237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
882e38d1c025b8547864dd6f7c5e0741d714b8b4 | 3,645 | py | Python | async_console/async_console.py | ppsirg/python-async-console | e19c398a4c98c632a2e8164ff99bd50aeddf82f3 | [
"MIT"
] | 1 | 2019-05-14T16:49:02.000Z | 2019-05-14T16:49:02.000Z | async_console/async_console.py | ppsirg/python-async-console | e19c398a4c98c632a2e8164ff99bd50aeddf82f3 | [
"MIT"
] | null | null | null | async_console/async_console.py | ppsirg/python-async-console | e19c398a4c98c632a2e8164ff99bd50aeddf82f3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Main module."""
import gi
import asyncio
import gbulb
from copy import deepcopy
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class async_console_window(Gtk.Window):
"""define console window"""
def __init__(self, async_loop, async_queue):
Gtk.Window.__ini... | 31.695652 | 95 | 0.63786 | 462 | 3,645 | 4.787879 | 0.290043 | 0.040687 | 0.029385 | 0.031193 | 0.153707 | 0.153707 | 0.107595 | 0.107595 | 0.107595 | 0.062387 | 0 | 0.007701 | 0.251852 | 3,645 | 114 | 96 | 31.973684 | 0.803447 | 0.040055 | 0 | 0.162791 | 0 | 0 | 0.042078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05814 | null | null | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
883073c4db3506a775acd25e4203fc2b009bc70c | 4,676 | py | Python | Python_Projects/Python_MySQL/Python_MySQL_OOP/python_mysql_oop_members.py | YangLiu928/NDP_Projects | d2ebfa7b95a0003481dde1361c6ab563ac94f2e6 | [
"MIT"
] | null | null | null | Python_Projects/Python_MySQL/Python_MySQL_OOP/python_mysql_oop_members.py | YangLiu928/NDP_Projects | d2ebfa7b95a0003481dde1361c6ab563ac94f2e6 | [
"MIT"
] | 12 | 2015-11-11T15:50:16.000Z | 2015-12-15T19:05:57.000Z | Python_Projects/Python_MySQL/Python_MySQL_OOP/python_mysql_oop_members.py | YangLiu928/NDP_Projects | d2ebfa7b95a0003481dde1361c6ab563ac94f2e6 | [
"MIT"
] | null | null | null | # ref: http://stackoverflow.com/questions/5687718/how-can-i-insert-data-into-a-mysql-database
import MySQLdb
import json
import time
from datetime import date
class Database:
host = 'localhost'
user = 'root'
password = '890928'
db = 'lr_v1'
def __init__(self):
self.connection = MySQLdb.c... | 33.640288 | 191 | 0.621899 | 614 | 4,676 | 4.537459 | 0.312704 | 0.043431 | 0.045226 | 0.043073 | 0.199928 | 0.113424 | 0.068916 | 0.068916 | 0.068916 | 0.068916 | 0 | 0.01944 | 0.273952 | 4,676 | 139 | 192 | 33.640288 | 0.801178 | 0.234175 | 0 | 0.06383 | 0 | 0.021277 | 0.358787 | 0.098259 | 0 | 0 | 0 | 0.007194 | 0 | 0 | null | null | 0.021277 | 0.042553 | null | null | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88327469183a4bd8325cd221b7175fa1821a371f | 2,863 | py | Python | babynames/babynames.py | colares/google-python-class | 170affc0a27587d9e3d224918efdb1d0e7fd7b54 | [
"Apache-2.0"
] | null | null | null | babynames/babynames.py | colares/google-python-class | 170affc0a27587d9e3d224918efdb1d0e7fd7b54 | [
"Apache-2.0"
] | null | null | null | babynames/babynames.py | colares/google-python-class | 170affc0a27587d9e3d224918efdb1d0e7fd7b54 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# coding=UTF-8
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import sys
import re
"""Baby Names exercise
Define the extract_names() funct... | 28.63 | 94 | 0.662941 | 470 | 2,863 | 3.987234 | 0.389362 | 0.017076 | 0.025614 | 0.029883 | 0.060832 | 0.025614 | 0.025614 | 0 | 0 | 0 | 0 | 0.021459 | 0.186168 | 2,863 | 99 | 95 | 28.919192 | 0.782833 | 0.218652 | 0 | 0 | 0 | 0.02381 | 0.139423 | 0.074519 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
883fb93e45418f793be5092cbbf0bf0e4630c9cc | 12,598 | py | Python | kubernetes_spawner/swagger_client/models/v1_service_spec.py | AdrianGPrado/k8s-jupyterhub-spawner | f3d28adf1d70102bc60ba57f5737a7ec864537d9 | [
"Apache-2.0"
] | 16 | 2016-09-18T21:20:49.000Z | 2020-02-15T06:28:03.000Z | kubernetes_spawner/swagger_client/models/v1_service_spec.py | AdrianGPrado/k8s-jupyterhub-spawner | f3d28adf1d70102bc60ba57f5737a7ec864537d9 | [
"Apache-2.0"
] | 2 | 2016-11-10T17:51:55.000Z | 2018-03-18T05:38:22.000Z | kubernetes_spawner/swagger_client/models/v1_service_spec.py | AdrianGPrado/k8s-jupyterhub-spawner | f3d28adf1d70102bc60ba57f5737a7ec864537d9 | [
"Apache-2.0"
] | 12 | 2016-09-28T20:48:56.000Z | 2020-01-17T04:50:59.000Z | # coding: utf-8
"""
Copyright 2015 SmartBear Software
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 applica... | 43.441379 | 494 | 0.668757 | 1,668 | 12,598 | 4.934053 | 0.167866 | 0.024787 | 0.073876 | 0.034629 | 0.72017 | 0.681166 | 0.656987 | 0.617254 | 0.594411 | 0.567922 | 0 | 0.007721 | 0.259803 | 12,598 | 289 | 495 | 43.591696 | 0.874853 | 0.640975 | 0 | 0.078431 | 0 | 0 | 0.095225 | 0.01236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215686 | false | 0 | 0.019608 | 0 | 0.372549 | 0.009804 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
884193abff18853a7f9f36c61588a6d4d0c4e36b | 30,612 | py | Python | _build/jupyter_execute/content/05-classes/classes.py | ShanEllis/pythonbook | 29cbf7045855c7fb281afe47bcbe31c0fce8543b | [
"MIT"
] | 1 | 2020-06-24T21:21:51.000Z | 2020-06-24T21:21:51.000Z | _build/jupyter_execute/content/05-classes/classes.py | ShanEllis/pythonbook | 29cbf7045855c7fb281afe47bcbe31c0fce8543b | [
"MIT"
] | 1 | 2020-03-31T01:04:16.000Z | 2020-03-31T01:04:16.000Z | _build/jupyter_execute/content/05-classes/classes.py | ShanEllis/pythonbook | 29cbf7045855c7fb281afe47bcbe31c0fce8543b | [
"MIT"
] | null | null | null | # Classes
Similar to functions where we introduced functions like `len()` and `type()` before discussing how to define your own functions, there are many available object types (either in the standard library or that can be imported - like `date`-type objects) *and* you can define your own objects and their associate... | 47.023041 | 666 | 0.7206 | 4,699 | 30,612 | 4.636944 | 0.141094 | 0.017624 | 0.006563 | 0.011015 | 0.184176 | 0.150351 | 0.1213 | 0.099087 | 0.089678 | 0.071963 | 0 | 0.006135 | 0.201294 | 30,612 | 651 | 667 | 47.023041 | 0.885031 | 0 | 0 | 0.354223 | 0 | 0.13079 | 0.06114 | 0 | 0 | 0 | 0 | 0 | 0.002725 | 0 | null | null | 0.010899 | 0.002725 | null | null | 0.087193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
884943029eddd98b124fa2df22ad9238c7681372 | 1,169 | py | Python | pgasync/format.py | jamwt/pgasync | 9e5ba24220ac906a17a91d4c524702b76cb7044a | [
"BSD-3-Clause"
] | 1 | 2018-11-15T16:21:12.000Z | 2018-11-15T16:21:12.000Z | pgasync/format.py | jamwt/pgasync | 9e5ba24220ac906a17a91d4c524702b76cb7044a | [
"BSD-3-Clause"
] | null | null | null | pgasync/format.py | jamwt/pgasync | 9e5ba24220ac906a17a91d4c524702b76cb7044a | [
"BSD-3-Clause"
] | null | null | null | """Formatting of pyparams style args to execute.
"""
import datetime
# Sibling Imports
from pgtypes import *
from errors import *
from registry import *
from decimal import Decimal
# Types that are already suitable for str() representation
donetypes = [STRING,UNICODE,BINARY,NUMBER,ROWID,DATETIME,BOOL,MONEY,int,float... | 20.875 | 95 | 0.706587 | 168 | 1,169 | 4.916667 | 0.553571 | 0.03632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002101 | 0.185629 | 1,169 | 55 | 96 | 21.254545 | 0.865546 | 0.088965 | 0 | 0.064516 | 0 | 0 | 0.073672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16129 | 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 |
88526b8925fca9d81ee1e85fe12df249042145ab | 3,374 | py | Python | src/main/python/monocyte/handler/__init__.py | claytonbrown/aws-monocyte | 8b029844781d7f1de929204f62c930345a5ecbf2 | [
"Apache-2.0"
] | 20 | 2015-02-17T15:08:44.000Z | 2018-06-13T11:20:50.000Z | src/main/python/monocyte/handler/__init__.py | Scout24/aws-monocyte | 8b029844781d7f1de929204f62c930345a5ecbf2 | [
"Apache-2.0"
] | 10 | 2015-04-28T12:00:33.000Z | 2017-09-12T12:27:59.000Z | src/main/python/monocyte/handler/__init__.py | Scout24/aws-monocyte | 8b029844781d7f1de929204f62c930345a5ecbf2 | [
"Apache-2.0"
] | 6 | 2015-05-17T22:37:17.000Z | 2018-02-28T17:20:06.000Z | # Monocyte - Monocyte - Search and Destroy unwanted AWS Resources relentlessly.
# Copyright 2015 Immobilien Scout GmbH
#
# 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... | 35.145833 | 121 | 0.683758 | 412 | 3,374 | 5.257282 | 0.32767 | 0.038781 | 0.036934 | 0.062789 | 0.190674 | 0.190674 | 0.190674 | 0.189289 | 0.036934 | 0.036934 | 0 | 0.003826 | 0.225252 | 3,374 | 95 | 122 | 35.515789 | 0.82479 | 0.188204 | 0 | 0.098361 | 0 | 0 | 0.095815 | 0.008811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229508 | false | 0 | 0.065574 | 0.081967 | 0.47541 | 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 |
88584b873f7d8c73db183741ad87d40de88f3dcb | 168 | py | Python | papermerge/core/signal_definitions.py | MinchinWeb/papermerge | 8a5f73207413a3ea8989d277e140d448baa35ca4 | [
"Apache-2.0"
] | 1 | 2021-01-24T14:59:52.000Z | 2021-01-24T14:59:52.000Z | papermerge/core/signal_definitions.py | MinchinWeb/papermerge | 8a5f73207413a3ea8989d277e140d448baa35ca4 | [
"Apache-2.0"
] | null | null | null | papermerge/core/signal_definitions.py | MinchinWeb/papermerge | 8a5f73207413a3ea8989d277e140d448baa35ca4 | [
"Apache-2.0"
] | null | null | null | from django.dispatch import Signal
page_hocr_ready = Signal(
providing_args=[
"user_id",
"document_id",
"page_num",
"lang"
]
)
| 15.272727 | 34 | 0.565476 | 18 | 168 | 4.944444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327381 | 168 | 10 | 35 | 16.8 | 0.787611 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
885c58dc584cc173a0671e9b4b0fc3d5b6bab365 | 14,472 | py | Python | comix/amz.py | noaione/comix-neo | 5e65159027c6ea9b7073afd4f64e92ea845d8fb8 | [
"MIT"
] | null | null | null | comix/amz.py | noaione/comix-neo | 5e65159027c6ea9b7073afd4f64e92ea845d8fb8 | [
"MIT"
] | null | null | null | comix/amz.py | noaione/comix-neo | 5e65159027c6ea9b7073afd4f64e92ea845d8fb8 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2022-present noaione
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... | 37.012788 | 466 | 0.599779 | 1,676 | 14,472 | 4.986277 | 0.263723 | 0.038172 | 0.010051 | 0.008376 | 0.148857 | 0.092617 | 0.092617 | 0.092617 | 0.076822 | 0.056719 | 0 | 0.020042 | 0.279436 | 14,472 | 390 | 467 | 37.107692 | 0.781358 | 0.090451 | 0 | 0.205882 | 0 | 0.013072 | 0.236491 | 0.076595 | 0 | 0 | 0 | 0.002564 | 0 | 1 | 0.04902 | false | 0.052288 | 0.081699 | 0.009804 | 0.183007 | 0.013072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
885f32f7708cb9d846d6c22933029fc77ad1fc05 | 554 | py | Python | gps/gpssess.py | x75/playground | 88a8e39b5d2010cc2a9302051fbb8bac9b0d4ed0 | [
"MIT"
] | null | null | null | gps/gpssess.py | x75/playground | 88a8e39b5d2010cc2a9302051fbb8bac9b0d4ed0 | [
"MIT"
] | null | null | null | gps/gpssess.py | x75/playground | 88a8e39b5d2010cc2a9302051fbb8bac9b0d4ed0 | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# df = pd.read_csv('~/schwanderberg-gigerhorn-1.csv', delimiter=' ')
df = pd.read_csv('~/schwanderberg-niederental-clean.csv', delimiter=' ')
# fig = plt.figure()
# ax = fig.add_subplot(111, projection='3d')
# ax.plot(df['lat'... | 29.157895 | 92 | 0.66787 | 85 | 554 | 4.282353 | 0.517647 | 0.021978 | 0.043956 | 0.06044 | 0.516484 | 0.384615 | 0.384615 | 0.384615 | 0.384615 | 0.384615 | 0 | 0.028283 | 0.106498 | 554 | 18 | 93 | 30.777778 | 0.707071 | 0.371841 | 0 | 0 | 0 | 0 | 0.178886 | 0.108504 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
887071de4960a84e41e71188f05583b6a2b43a00 | 409 | py | Python | h1st_contrib/iot_mgmt/data/migrations/0070_auto_20190516_2005.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | 1 | 2022-02-19T18:55:43.000Z | 2022-02-19T18:55:43.000Z | h1st_contrib/iot_mgmt/data/migrations/0070_auto_20190516_2005.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | null | null | null | h1st_contrib/iot_mgmt/data/migrations/0070_auto_20190516_2005.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-16 20:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('IoT_DataMgmt', '0069_auto_20190514_1740'),
]
operations = [
migrations.AlterModelOptions(
name='equipmentfacility',
options=... | 22.722222 | 91 | 0.630807 | 41 | 409 | 6.121951 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100324 | 0.244499 | 409 | 17 | 92 | 24.058824 | 0.711974 | 0.110024 | 0 | 0 | 1 | 0 | 0.28453 | 0.063536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
887c72abb8233436c152e239a7fee316ae15898e | 360 | py | Python | girder/sftp/setup.py | aronhelser/cumulus | 706687ff9b4c140272e26fb9b6543c0df5513a0f | [
"Apache-2.0"
] | 28 | 2015-12-04T19:43:17.000Z | 2021-12-17T02:32:21.000Z | girder/sftp/setup.py | aronhelser/cumulus | 706687ff9b4c140272e26fb9b6543c0df5513a0f | [
"Apache-2.0"
] | 212 | 2015-07-29T18:44:21.000Z | 2020-05-28T00:30:46.000Z | girder/sftp/setup.py | aronhelser/cumulus | 706687ff9b4c140272e26fb9b6543c0df5513a0f | [
"Apache-2.0"
] | 9 | 2016-08-10T21:49:00.000Z | 2021-02-06T15:47:46.000Z | from setuptools import setup, find_packages
setup(
name='cumulus-sftp',
version='0.1.0',
description='Import of files on remote host via SFTP',
packages=find_packages(),
install_requires=[
'girder>=3.0.0a5',
'cumulus-plugin'
],
entry_points={
'girder.plugin': [
'... | 20 | 58 | 0.594444 | 41 | 360 | 5.121951 | 0.682927 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026616 | 0.269444 | 360 | 17 | 59 | 21.176471 | 0.771863 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 |
887d439cddec599ae57299e9c4eea635b2acd39b | 2,925 | py | Python | SoloLearnPython3/Part_3/sketch_8a.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | SoloLearnPython3/Part_3/sketch_8a.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | SoloLearnPython3/Part_3/sketch_8a.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | import re
# raw:
print(r"I am \r\a\w!")
print("I am \r\a\w!")
# match, search, findall, sub:
pattern = r"spam"
print(re.match(pattern, "spamegg"))
print(re.match(pattern, "eggspam"))
print(re.search(pattern, "eggspamspam"))
print(re.search(pattern, "eggsp"))
print(re.findall(pattern, "eggspamsausagespam"))
matchsr... | 19.5 | 51 | 0.631453 | 448 | 2,925 | 4.122768 | 0.245536 | 0.151597 | 0.113698 | 0.103952 | 0.351381 | 0.344884 | 0.344884 | 0.139686 | 0.125609 | 0.096373 | 0 | 0.02439 | 0.172991 | 2,925 | 149 | 52 | 19.630872 | 0.739148 | 0.222222 | 0 | 0.388235 | 0 | 0 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011765 | 0 | 0.011765 | 0.564706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
888e0dea075ea3c0f3dc6bb4fa415be5d82d3581 | 344 | py | Python | LeetCode/Easy/valid_parentheses.py | CajetanP/programming-exercises | aee01ff3208ab14e7d0e0a7077798342123bc3e6 | [
"MIT"
] | 1 | 2017-06-23T16:39:17.000Z | 2017-06-23T16:39:17.000Z | LeetCode/Easy/valid_parentheses.py | CajetanP/coding-exercises | aee01ff3208ab14e7d0e0a7077798342123bc3e6 | [
"MIT"
] | 10 | 2021-05-09T00:06:22.000Z | 2021-09-02T12:07:41.000Z | LeetCode/Easy/valid_parentheses.py | mrkajetanp/programming-exercises | aee01ff3208ab14e7d0e0a7077798342123bc3e6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def is_valid(s: str) -> bool:
bracket_pairs = {')': '(', '}': '{', ']': '['}
stack = []
for c in s:
if c in bracket_pairs:
if not stack or stack.pop() != bracket_pairs[c]:
return False
else:
stack.append(... | 22.933333 | 60 | 0.47093 | 43 | 344 | 3.674419 | 0.627907 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.34593 | 344 | 14 | 61 | 24.571429 | 0.697778 | 0.122093 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 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 |
8895acf0b4bde3e06785fdd7e619077bdeda81f5 | 3,869 | py | Python | NA1/ota/SpectrographVariables.py | dxwayne/SAS_3DSpectrograps | 1158b78f3c3d809b73c9088d35bd92f1083e07ef | [
"MIT"
] | 1 | 2020-08-19T21:41:49.000Z | 2020-08-19T21:41:49.000Z | NA1/ota/SpectrographVariables.py | dxwayne/SAS_3DSpectrographs | 1158b78f3c3d809b73c9088d35bd92f1083e07ef | [
"MIT"
] | null | null | null | NA1/ota/SpectrographVariables.py | dxwayne/SAS_3DSpectrographs | 1158b78f3c3d809b73c9088d35bd92f1083e07ef | [
"MIT"
] | null | null | null | __init__ = ["SpectrographUI_savejsondict","SpectrographUI_loadjsondict"]
def SpectrographUI_savejsondict(self,jdict):
'''Autogenerated code from ui's make/awk trick.'''
jdict['compLampSwitch'] = self.compLampSwitch.isChecked()
jdict['flatLampSwitch'] = self.flatLampSwitch.isChecked()
jdict['heater1Switch'] ... | 50.907895 | 72 | 0.751874 | 367 | 3,869 | 7.899183 | 0.155313 | 0.068299 | 0.020007 | 0.017937 | 0.031045 | 0.031045 | 0.031045 | 0.031045 | 0.031045 | 0.031045 | 0 | 0.014832 | 0.093823 | 3,869 | 75 | 73 | 51.586667 | 0.812037 | 0.039804 | 0 | 0 | 1 | 0 | 0.231704 | 0.014583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0 | 0 | 0.028986 | 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 |
88a089456b89780c61d026219beba4d13f08fe81 | 487 | py | Python | TensorLayer/mnist1.py | AutuanLiu/Machine-Learning-on-docker | 00eb7211a3a40a9da02114923647dfd6ac24f138 | [
"Apache-2.0"
] | 11 | 2018-03-18T11:06:59.000Z | 2020-02-23T03:24:43.000Z | TensorLayer/mnist1.py | AutuanLiu/Machine-Learning-on-docker | 00eb7211a3a40a9da02114923647dfd6ac24f138 | [
"Apache-2.0"
] | null | null | null | TensorLayer/mnist1.py | AutuanLiu/Machine-Learning-on-docker | 00eb7211a3a40a9da02114923647dfd6ac24f138 | [
"Apache-2.0"
] | 4 | 2018-03-28T13:04:26.000Z | 2019-05-29T05:49:52.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name:mnist1
Description : mnist dataset exp
Email : autuanliu@163.com
Date:2018/3/12
"""
import tensorflow as tf
import tensorlayer as tl
# 定义 Session
# Session 允许计算图或者图的一部分,为这次计算分配资源并且保存中间结果的值和变量
se... | 25.631579 | 120 | 0.638604 | 65 | 487 | 4.661538 | 0.753846 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057007 | 0.135524 | 487 | 18 | 121 | 27.055556 | 0.662708 | 0.546201 | 0 | 0 | 0 | 0 | 0.086124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
88a134dddab71b3878af77844a52a45b75906ebf | 1,043 | py | Python | rfc5389stunserver/constants.py | y-i/rfc5389-stun-server-python | 804231ab8150fddaea7793a8f8c814c1d1a7ce09 | [
"MIT"
] | null | null | null | rfc5389stunserver/constants.py | y-i/rfc5389-stun-server-python | 804231ab8150fddaea7793a8f8c814c1d1a7ce09 | [
"MIT"
] | null | null | null | rfc5389stunserver/constants.py | y-i/rfc5389-stun-server-python | 804231ab8150fddaea7793a8f8c814c1d1a7ce09 | [
"MIT"
] | null | null | null | from enum import IntEnum
class MsgClass(IntEnum):
REQUEST = 0
INDICATION = 1
SUCCESS_RESPONSE = 2
FAILURE_RESPONSE = 3
class MethodType(IntEnum):
BINDING = 0x001
RESERVED_SHARED_SECRET = 0x002
class AttrType(IntEnum):
'''
Comprehension-required range (0x0000-0x7FFF)
Comprehens... | 20.86 | 48 | 0.707574 | 111 | 1,043 | 6.405405 | 0.738739 | 0.036568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15889 | 0.239693 | 1,043 | 49 | 49 | 21.285714 | 0.737705 | 0.085331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119914 | 0 | 0 | 1 | 0 | false | 0.029412 | 0.029412 | 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 |
88ab28e9044b0fab807cdbca13f3885ee422b200 | 1,475 | py | Python | misc/docdump.py | jackscott/python-statlib | 168d5b9c879cf64ce93862aadff4c9e0253f007c | [
"MIT"
] | null | null | null | misc/docdump.py | jackscott/python-statlib | 168d5b9c879cf64ce93862aadff4c9e0253f007c | [
"MIT"
] | null | null | null | misc/docdump.py | jackscott/python-statlib | 168d5b9c879cf64ce93862aadff4c9e0253f007c | [
"MIT"
] | 1 | 2019-12-19T14:31:52.000Z | 2019-12-19T14:31:52.000Z | # average.programmer@gmail.com - 12/15/07
def getDocStrings(module):
'''
getDocStrings(foo) - Takes in a module as an argument
Returns a dictionary of functions
and a dictionary of classes with tuples
of the respectful class methods and their... | 32.065217 | 97 | 0.503729 | 167 | 1,475 | 4.293413 | 0.42515 | 0.078103 | 0.041841 | 0.033473 | 0.058577 | 0.058577 | 0 | 0 | 0 | 0 | 0 | 0.01164 | 0.359322 | 1,475 | 45 | 98 | 32.777778 | 0.74709 | 0.351864 | 0 | 0 | 0 | 0 | 0.221616 | 0.022926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.083333 | 0 | 0 | 0.208333 | 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 |
88addf877cf30594ba131848f3607b5686019dbb | 7,147 | py | Python | core/python/kungfu/data/sqlite/models.py | OrangeKitty/kungfu | 6f81b790608fcb14b354e99dd1215818a9d80213 | [
"Apache-2.0"
] | 1 | 2020-06-16T01:19:49.000Z | 2020-06-16T01:19:49.000Z | core/python/kungfu/data/sqlite/models.py | OrangeKitty/kungfu | 6f81b790608fcb14b354e99dd1215818a9d80213 | [
"Apache-2.0"
] | null | null | null | core/python/kungfu/data/sqlite/models.py | OrangeKitty/kungfu | 6f81b790608fcb14b354e99dd1215818a9d80213 | [
"Apache-2.0"
] | null | null | null | from . import *
from sqlalchemy import Column, ForeignKey, Integer, String, Date, Float, Boolean, PrimaryKeyConstraint
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
Base = declarative_base()
class Account(Base):
__tablename__ = 'account_config'
account_id = ... | 29.290984 | 135 | 0.68966 | 808 | 7,147 | 5.77104 | 0.163366 | 0.123526 | 0.105083 | 0.031525 | 0.581814 | 0.562942 | 0.498821 | 0.467939 | 0.423333 | 0.384731 | 0 | 0 | 0.212117 | 7,147 | 243 | 136 | 29.411523 | 0.828094 | 0 | 0 | 0.5 | 0 | 0 | 0.049818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.020619 | 0 | 0.917526 | 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 |
88b6e68a7a16477ea167715687f3faedf797eb50 | 2,334 | py | Python | backend/tests/api/auth/test_logout.py | dmitriyvek/Tracker | b2903d0e980c8480e9c9cbecbfa3987997c7f04e | [
"MIT"
] | null | null | null | backend/tests/api/auth/test_logout.py | dmitriyvek/Tracker | b2903d0e980c8480e9c9cbecbfa3987997c7f04e | [
"MIT"
] | null | null | null | backend/tests/api/auth/test_logout.py | dmitriyvek/Tracker | b2903d0e980c8480e9c9cbecbfa3987997c7f04e | [
"MIT"
] | null | null | null | import json
from tracker.api.services.auth import (
generate_auth_token, generate_password_hash
)
from tracker.db.schema import users_table, blacklist_tokens_table
from tests.services import generate_user_data
async def test_logout_mutation(migrated_db_connection, client):
app = client.server.app
user =... | 27.139535 | 76 | 0.568552 | 239 | 2,334 | 5.376569 | 0.34728 | 0.042023 | 0.046693 | 0.042023 | 0.345525 | 0.345525 | 0.292607 | 0.292607 | 0.292607 | 0.292607 | 0 | 0.005693 | 0.322622 | 2,334 | 85 | 77 | 27.458824 | 0.807084 | 0.067695 | 0 | 0.318841 | 1 | 0 | 0.28361 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0 | false | 0.043478 | 0.057971 | 0 | 0.057971 | 0.028986 | 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 |
31f493606a445373470df24b47d716a143b86eba | 220 | py | Python | htsworkflow/settings/production.py | detrout/htsworkflow | 99d3300e2533d79428ad49aaf10b9429b175da2d | [
"BSD-3-Clause"
] | null | null | null | htsworkflow/settings/production.py | detrout/htsworkflow | 99d3300e2533d79428ad49aaf10b9429b175da2d | [
"BSD-3-Clause"
] | 1 | 2018-02-26T18:30:05.000Z | 2018-02-26T18:30:05.000Z | htsworkflow/settings/production.py | detrout/htsworkflow | 99d3300e2533d79428ad49aaf10b9429b175da2d | [
"BSD-3-Clause"
] | null | null | null | import os
from .base import *
ALLOWED_HOSTS = ['jumpgate.caltech.edu']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_ROOT, 'fctracker.db'),
}
}
| 18.333333 | 59 | 0.613636 | 25 | 220 | 5.32 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.213636 | 220 | 11 | 60 | 20 | 0.763006 | 0 | 0 | 0 | 0 | 0 | 0.340909 | 0.118182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31fb93f3152601c4730ce34e77415ebc6daf9fae | 7,300 | py | Python | LR/lr/lib/replacement_helper.py | LearningRegistry/LearningRegistry | d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2 | [
"Apache-2.0"
] | 26 | 2015-04-14T03:11:58.000Z | 2022-01-06T14:31:07.000Z | LR/lr/lib/replacement_helper.py | LearningRegistry/LearningRegistry | d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2 | [
"Apache-2.0"
] | 11 | 2015-04-03T21:54:03.000Z | 2017-05-02T17:20:03.000Z | LR/lr/lib/replacement_helper.py | LearningRegistry/LearningRegistry | d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2 | [
"Apache-2.0"
] | 16 | 2015-02-11T09:30:18.000Z | 2020-11-20T02:06:24.000Z | from pylons import config
from lr.lib import SpecValidationException
from lr.lib.signing import get_verification_info
from lr.lib.helpers import nowToISO8601Zformat
from lr.plugins import LRPluginManager, ITombstonePolicy, DoNotPublishError
from lr.lib.schema_helper import ResourceDataModelValidator, TombstoneValidator... | 38.421053 | 124 | 0.635342 | 780 | 7,300 | 5.685897 | 0.238462 | 0.048929 | 0.044645 | 0.063134 | 0.288839 | 0.266742 | 0.243968 | 0.216009 | 0.187148 | 0.140248 | 0 | 0.008718 | 0.292877 | 7,300 | 189 | 125 | 38.624339 | 0.850446 | 0.127397 | 0 | 0.228346 | 0 | 0 | 0.097999 | 0.010556 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015748 | 0.055118 | null | null | 0.015748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee00755540a444140ae56a1c69f491707161b057 | 691 | py | Python | data_structure/658_find_k_closest_elements.py | shawlu95/Algorithm-Toolbox | b6c7b2228d8e70e0842e0bad607533a2c8322cf0 | [
"MIT"
] | null | null | null | data_structure/658_find_k_closest_elements.py | shawlu95/Algorithm-Toolbox | b6c7b2228d8e70e0842e0bad607533a2c8322cf0 | [
"MIT"
] | null | null | null | data_structure/658_find_k_closest_elements.py | shawlu95/Algorithm-Toolbox | b6c7b2228d8e70e0842e0bad607533a2c8322cf0 | [
"MIT"
] | 2 | 2020-02-07T20:49:02.000Z | 2020-02-11T06:01:55.000Z | import heapq
class Solution(object):
def findClosestElements(self, arr, k, x):
"""
:type arr: List[int]
:type k: int
:type x: int
:rtype: List[int]
"""
nums = [(abs(num - x), num) for num in arr]
nums.sort(key = lambda pair : [pair[0], pair[1]])
... | 26.576923 | 57 | 0.493488 | 94 | 691 | 3.617021 | 0.361702 | 0.082353 | 0.070588 | 0.052941 | 0.423529 | 0.423529 | 0.423529 | 0.423529 | 0.3 | 0.3 | 0 | 0.011211 | 0.354559 | 691 | 26 | 58 | 26.576923 | 0.751121 | 0.186686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 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 |
ee03489cda56adcb98a50729c5a9f251f893bce1 | 529 | py | Python | 812-largest-triangle-area/812-largest-triangle-area.py | yuzhengcuhk/MyLeetcodeRecord | bd516c6f2946b922da53e587fc186935c6a8819c | [
"MIT"
] | 3 | 2022-02-07T12:47:43.000Z | 2022-03-13T16:40:12.000Z | 812-largest-triangle-area/812-largest-triangle-area.py | yuzhengcuhk/MyLeetcodeRecord | bd516c6f2946b922da53e587fc186935c6a8819c | [
"MIT"
] | null | null | null | 812-largest-triangle-area/812-largest-triangle-area.py | yuzhengcuhk/MyLeetcodeRecord | bd516c6f2946b922da53e587fc186935c6a8819c | [
"MIT"
] | null | null | null | class Solution:
def largestTriangleArea(self, points: List[List[int]]) -> float:
result = 0
lenList = len(points)
for i in range(lenList-2):
x1, y1 = points[i]
for j in range(lenList-1):
x2, y2 = points[j]
for k in range(lenList):
... | 37.785714 | 91 | 0.436673 | 66 | 529 | 3.5 | 0.515152 | 0.090909 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082508 | 0.427221 | 529 | 14 | 92 | 37.785714 | 0.679868 | 0.05482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee065566198a6aad518a00bf0a9fa3677577622c | 4,942 | py | Python | sandbox/lib/jumpscale/JumpscaleLibs/servers/mail/imap/bcdbmailbox.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/JumpscaleLibs/servers/mail/imap/bcdbmailbox.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/JumpscaleLibs/servers/mail/imap/bcdbmailbox.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | import mailbox
import io
import time
from gevent.lock import Semaphore
from collections import defaultdict
from ..handleMail import store_message, object_to_message
locks = defaultdict(Semaphore)
class BCDBMailbox(mailbox.Mailbox):
def __init__(self, models, obj, create=False):
self._models = models
... | 29.592814 | 104 | 0.617968 | 619 | 4,942 | 4.751212 | 0.187399 | 0.098606 | 0.070724 | 0.034002 | 0.281197 | 0.175451 | 0.113567 | 0.091125 | 0.036042 | 0.036042 | 0 | 0.001665 | 0.270741 | 4,942 | 166 | 105 | 29.771084 | 0.814373 | 0.008094 | 0 | 0.161538 | 0 | 0 | 0.047959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246154 | false | 0.015385 | 0.046154 | 0.053846 | 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 |
ee0c2008a37ce6720aacd720eb56a87d83e35714 | 2,902 | py | Python | scapula/writer/scapula_os.py | fengjixuchui/scapula | 0ca411d8571622a6f7411bf423c3b662030e550b | [
"MIT"
] | 7 | 2019-10-11T17:35:00.000Z | 2020-04-06T00:51:18.000Z | scapula/writer/scapula_os.py | fengjixuchui/scapula | 0ca411d8571622a6f7411bf423c3b662030e550b | [
"MIT"
] | null | null | null | scapula/writer/scapula_os.py | fengjixuchui/scapula | 0ca411d8571622a6f7411bf423c3b662030e550b | [
"MIT"
] | 3 | 2019-10-12T01:51:20.000Z | 2019-11-12T15:15:37.000Z | from typing import TextIO
from scapula.writer.formating import write_indent
def switch_to_el(outfile: TextIO, level: int, indent: int=0):
"""Writes a function to the given output file that changes the current
exception level that Scapula OS is executing at.
Args:
outfile: The output file to be wr... | 31.89011 | 77 | 0.667126 | 402 | 2,902 | 4.711443 | 0.199005 | 0.052798 | 0.058078 | 0.042239 | 0.718057 | 0.68849 | 0.650475 | 0.650475 | 0.614572 | 0.540655 | 0 | 0.008238 | 0.247071 | 2,902 | 90 | 78 | 32.244444 | 0.858581 | 0.657133 | 0 | 0.294118 | 0 | 0 | 0.137306 | 0.069948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee111ac4ddb91a49ad8c82564d6c59b73ce218d5 | 13,073 | py | Python | pylot/map/hd_map.py | alvkao58/pylot | ab49647236fcbc8aa08ec9650e0596e778e9ef85 | [
"Apache-2.0"
] | null | null | null | pylot/map/hd_map.py | alvkao58/pylot | ab49647236fcbc8aa08ec9650e0596e778e9ef85 | [
"Apache-2.0"
] | null | null | null | pylot/map/hd_map.py | alvkao58/pylot | ab49647236fcbc8aa08ec9650e0596e778e9ef85 | [
"Apache-2.0"
] | null | null | null | from collections import deque
import carla
# Import Planner from Carla codebase
from agents.navigation.global_route_planner import GlobalRoutePlanner
from agents.navigation.global_route_planner_dao import GlobalRoutePlannerDAO
from erdos.utils import setup_logging
import pylot.utils
class HDMap(object):
def __... | 42.862295 | 82 | 0.581963 | 1,501 | 13,073 | 4.84477 | 0.163891 | 0.017327 | 0.030391 | 0.049092 | 0.436606 | 0.384213 | 0.335396 | 0.308168 | 0.263201 | 0.252475 | 0 | 0.006887 | 0.355771 | 13,073 | 304 | 83 | 43.003289 | 0.856566 | 0.273158 | 0 | 0.449438 | 0 | 0 | 0.003738 | 0 | 0 | 0 | 0 | 0.013158 | 0.005618 | 1 | 0.089888 | false | 0 | 0.033708 | 0 | 0.308989 | 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 |
ee194065cd188981625a87e11887b95a365db2cf | 3,987 | py | Python | client/transmission.py | hdchina-org/CredentialChanger | 8c4ec7b26885e6b71400b04b2ac902b16680c487 | [
"MIT"
] | 1 | 2019-10-11T05:55:01.000Z | 2019-10-11T05:55:01.000Z | client/transmission.py | hdchina-org/CredentialChanger | 8c4ec7b26885e6b71400b04b2ac902b16680c487 | [
"MIT"
] | null | null | null | client/transmission.py | hdchina-org/CredentialChanger | 8c4ec7b26885e6b71400b04b2ac902b16680c487 | [
"MIT"
] | null | null | null | import json
import logging
import urllib.request
from itertools import islice
from urllib.error import HTTPError
from client.baseclient import BaseClient
class Transmission(BaseClient):
def __init__(self, host, port, username, password, passkey):
manager = urllib.request.HTTPPasswordMgrWithPriorAuth()
... | 46.360465 | 117 | 0.626787 | 448 | 3,987 | 5.363839 | 0.314732 | 0.048689 | 0.022888 | 0.024969 | 0.216396 | 0.172285 | 0.172285 | 0.146484 | 0.070745 | 0.070745 | 0 | 0.009603 | 0.242538 | 3,987 | 85 | 118 | 46.905882 | 0.786093 | 0.009029 | 0 | 0.112676 | 0 | 0 | 0.136525 | 0.019757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112676 | false | 0.084507 | 0.084507 | 0 | 0.253521 | 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 |
ee2ce7b50fefbddbb87f7497cc4fa641ec08b4d2 | 511 | py | Python | py3/nn/read_output.py | fr42k/gap-wgan-gp | 4e373c43d606a1b83f76893d93f9cf8be8cd460d | [
"MIT"
] | 2 | 2019-10-29T03:26:20.000Z | 2021-03-07T10:02:39.000Z | py3/nn/read_output.py | fr42k/gap-wgan-gp | 4e373c43d606a1b83f76893d93f9cf8be8cd460d | [
"MIT"
] | null | null | null | py3/nn/read_output.py | fr42k/gap-wgan-gp | 4e373c43d606a1b83f76893d93f9cf8be8cd460d | [
"MIT"
] | null | null | null | import json
import numpy as np
INTERVAL = 1000
LABELS = ['train cost', 'train kl1', 'train kl2']
for label in LABELS:
print "=============================="
print label
vals = []
with open('train_output.ndjson') as f:
for line in f:
line = json.loads(line[:-1])
if lab... | 25.55 | 92 | 0.53229 | 70 | 511 | 3.871429 | 0.5 | 0.051661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.264188 | 511 | 20 | 92 | 25.55 | 0.699468 | 0 | 0 | 0 | 0 | 0 | 0.167969 | 0.058594 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee3157634f1c5b6983a0cf89dbc2b53d1f75c836 | 671 | py | Python | liquid/golden/case.py | jg-rp/liquid | a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c | [
"MIT"
] | 19 | 2021-03-20T05:44:23.000Z | 2022-03-24T18:34:34.000Z | liquid/golden/case.py | jg-rp/liquid | a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c | [
"MIT"
] | 50 | 2020-12-07T15:30:56.000Z | 2022-03-25T17:10:10.000Z | liquid/golden/case.py | jg-rp/liquid | a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c | [
"MIT"
] | 3 | 2021-01-24T15:51:22.000Z | 2022-03-25T16:00:17.000Z | """Golden test case definition."""
from dataclasses import dataclass
from dataclasses import field
from typing import Any
from typing import Dict
# pylint: disable=too-many-instance-attributes
@dataclass
class Case:
"""Test case dataclass to help with table driven tests."""
description: str
template: st... | 22.366667 | 62 | 0.676602 | 83 | 671 | 5.421687 | 0.542169 | 0.08 | 0.093333 | 0.066667 | 0.146667 | 0.146667 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0.208644 | 671 | 29 | 63 | 23.137931 | 0.847458 | 0.18927 | 0 | 0 | 0 | 0 | 0.15197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.65 | 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 |
ee3bd61fe5656ea584096e05cdb5d77715ab4a6a | 1,612 | py | Python | dal/mysql/common.py | arrayexpress/ae_auto | 78e50cc31997cb5a69d0d74258b6b1a089ba387a | [
"Apache-2.0"
] | null | null | null | dal/mysql/common.py | arrayexpress/ae_auto | 78e50cc31997cb5a69d0d74258b6b1a089ba387a | [
"Apache-2.0"
] | 4 | 2020-06-05T19:26:42.000Z | 2022-03-29T21:55:14.000Z | dal/mysql/common.py | arrayexpress/ae_auto | 78e50cc31997cb5a69d0d74258b6b1a089ba387a | [
"Apache-2.0"
] | 1 | 2019-03-27T13:15:37.000Z | 2019-03-27T13:15:37.000Z | __author__ = 'Ahmed G. Ali'
import MySQLdb as mdb
def retrieve_connection(db):
"""
Retrieves Database connection object for a given connection parameters.
:param db: Json object containing connection parameters
:type db: dict
:return: MySQLDB.Connection object
"""
con = mdb.connect(host=... | 24.8 | 114 | 0.617866 | 211 | 1,612 | 4.63981 | 0.350711 | 0.057201 | 0.061287 | 0.052094 | 0.589377 | 0.556691 | 0.518897 | 0.518897 | 0.518897 | 0.518897 | 0 | 0.003401 | 0.270471 | 1,612 | 64 | 115 | 25.1875 | 0.829082 | 0 | 0 | 0.645161 | 0 | 0 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032258 | 0.032258 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee47c02939cd1066ba135180140e4edbf35eb432 | 1,984 | py | Python | Reddit-Bot/python/reddit/reply_post.py | Asdf11x/testy-boi | 27a88fcc52f3cba9f0bee0c8993b1a93793389d9 | [
"Apache-2.0"
] | null | null | null | Reddit-Bot/python/reddit/reply_post.py | Asdf11x/testy-boi | 27a88fcc52f3cba9f0bee0c8993b1a93793389d9 | [
"Apache-2.0"
] | null | null | null | Reddit-Bot/python/reddit/reply_post.py | Asdf11x/testy-boi | 27a88fcc52f3cba9f0bee0c8993b1a93793389d9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""reply_post.py: reply in reddit."""
import praw
import pdb
import re
import os
__author__ = "Asdf"
__copyright__ = "Copyright 2017, Planet Earth"
class Reply:
def reply(self, bot_name, subreddit_name, number_of_submissions):
reddit = praw.Reddit(bot_name)
subred... | 29.61194 | 84 | 0.592742 | 248 | 1,984 | 4.487903 | 0.326613 | 0.161725 | 0.238994 | 0.061096 | 0.243486 | 0.243486 | 0.221024 | 0.221024 | 0.221024 | 0.221024 | 0 | 0.004367 | 0.30746 | 1,984 | 66 | 85 | 30.060606 | 0.805677 | 0.111895 | 0 | 0.205128 | 0 | 0 | 0.106286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.102564 | 0 | 0.230769 | 0.102564 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee4a1b82d1b0249a6924a61ffcf0d07263b5892a | 3,658 | py | Python | tools/telemetry/telemetry/page/test_expectations_unittest.py | MIPS/external-chromium_org | e31b3128a419654fd14003d6117caa8da32697e7 | [
"BSD-3-Clause"
] | 2 | 2015-08-04T15:17:59.000Z | 2016-10-23T08:11:14.000Z | tools/telemetry/telemetry/page/test_expectations_unittest.py | carlosavignano/android_external_chromium_org | 2b5652f7889ccad0fbdb1d52b04bad4c23769547 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/page/test_expectations_unittest.py | carlosavignano/android_external_chromium_org | 2b5652f7889ccad0fbdb1d52b04bad4c23769547 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2017-07-31T19:09:52.000Z | 2019-01-04T18:48:50.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from telemetry.page import page as page_module
from telemetry.page import page_set
from telemetry.page import test_expectations
class StubPl... | 42.534884 | 77 | 0.734554 | 457 | 3,658 | 5.789934 | 0.256018 | 0.142857 | 0.047619 | 0.146259 | 0.492819 | 0.41232 | 0.345805 | 0.301965 | 0.301965 | 0.256992 | 0 | 0.010811 | 0.140241 | 3,658 | 85 | 78 | 43.035294 | 0.830525 | 0.173592 | 0 | 0.166667 | 0 | 0 | 0.140864 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.2 | false | 0.083333 | 0.066667 | 0.033333 | 0.35 | 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 |
ee4bea602f58ca4ecaf7a8310a2e75a408e9a1f0 | 492 | py | Python | corehq/ex-submodules/couchforms/migrations/0008_auto_20200701_0742.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/ex-submodules/couchforms/migrations/0008_auto_20200701_0742.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/ex-submodules/couchforms/migrations/0008_auto_20200701_0742.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-07-01 07:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('couchforms', '0007_auto_20191210_2206'),
]
operations = [
migrations.Alter... | 23.428571 | 73 | 0.642276 | 52 | 492 | 5.884615 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091644 | 0.245935 | 492 | 20 | 74 | 24.6 | 0.733154 | 0.140244 | 0 | 0 | 1 | 0 | 0.140476 | 0.111905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee4e82843e556111e7e9cd4fd3927af26e4cd6a1 | 5,519 | py | Python | tps/problems/forms/testcases.py | akmohtashami/tps-web | 9dab3ffe97c21f658be30ce2f2711dd93e4ba60f | [
"MIT"
] | 5 | 2019-02-26T06:10:43.000Z | 2021-07-24T17:11:45.000Z | tps/problems/forms/testcases.py | akmohtashami/tps-web | 9dab3ffe97c21f658be30ce2f2711dd93e4ba60f | [
"MIT"
] | 3 | 2019-08-15T13:56:03.000Z | 2021-06-10T18:43:16.000Z | tps/problems/forms/testcases.py | jonathanirvings/tps-web | 46519347d4fc8bdced9b5bceb6cdee5ea4e508f2 | [
"MIT"
] | 2 | 2018-12-28T13:12:59.000Z | 2020-12-25T18:42:13.000Z | from django import forms
from django.core.exceptions import ValidationError
from file_repository.models import FileModel
from .generic import ProblemObjectModelForm
from problems.models import TestCase, Solution, SourceFile, InputGenerator, Subtask
from django.utils.translation import ugettext as _
class TestCaseAdd... | 44.508065 | 112 | 0.664794 | 601 | 5,519 | 5.803661 | 0.181364 | 0.116972 | 0.09289 | 0.041284 | 0.680619 | 0.655677 | 0.639622 | 0.639622 | 0.639622 | 0.618406 | 0 | 0.000238 | 0.239174 | 5,519 | 123 | 113 | 44.869919 | 0.830436 | 0.019931 | 0 | 0.581633 | 0 | 0 | 0.173913 | 0.029417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.061224 | 0 | 0.27551 | 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 |
ee5e267e7e06fed3957e82fdb7b5346e21db843b | 872 | py | Python | tests/test_load_spec.py | rai-project/scope_plot | e7fc1629f89fc48f820a1bce45bcc552d259e290 | [
"Apache-2.0"
] | null | null | null | tests/test_load_spec.py | rai-project/scope_plot | e7fc1629f89fc48f820a1bce45bcc552d259e290 | [
"Apache-2.0"
] | 8 | 2018-08-13T20:27:48.000Z | 2018-08-30T11:40:32.000Z | tests/test_load_spec.py | c3sr/scope_plot | e7fc1629f89fc48f820a1bce45bcc552d259e290 | [
"Apache-2.0"
] | null | null | null | import os
from scope_plot.specification import Specification
FIXTURES_DIR = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "..", "__fixtures")
def test_bokeh_errorbar_spec():
figure_spec = Specification.load_yaml(
os.path.join(FIXTURES_DIR, "bokeh_errorbar.yml"))
assert figure_spec.ty... | 29.066667 | 68 | 0.71789 | 115 | 872 | 5.095652 | 0.252174 | 0.136519 | 0.085324 | 0.1843 | 0.515358 | 0.40785 | 0.40785 | 0.40785 | 0.40785 | 0.40785 | 0 | 0.001353 | 0.152523 | 872 | 29 | 69 | 30.068966 | 0.79161 | 0 | 0 | 0.2 | 0 | 0 | 0.125 | 0.025229 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee62fbad5cf9c83d696f7f4a67dba86b3c5b3dcd | 274 | py | Python | botogen/log.py | jbasko/autoboto | 0329afd4730d3d78bd021116857b10e6956dffb1 | [
"MIT"
] | 7 | 2018-08-27T21:53:24.000Z | 2019-12-25T22:43:09.000Z | botogen/log.py | jbasko/autoboto | 0329afd4730d3d78bd021116857b10e6956dffb1 | [
"MIT"
] | 6 | 2018-09-05T18:49:47.000Z | 2019-03-19T08:01:30.000Z | botogen/log.py | jbasko/autoboto | 0329afd4730d3d78bd021116857b10e6956dffb1 | [
"MIT"
] | null | null | null | import logging
import sys
log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(logging.Formatter("%(asctime)s [%(levelname)s] %(message)s"))
handler.setLevel(logging.DEBUG)
log.addHandler(handler)
| 22.833333 | 82 | 0.788321 | 34 | 274 | 6.235294 | 0.529412 | 0.141509 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069343 | 274 | 11 | 83 | 24.909091 | 0.831373 | 0 | 0 | 0 | 0 | 0 | 0.142336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee69695fca89d59310fb73402b2c2289f14ecc85 | 1,014 | py | Python | app.py | ea1het/trivial_musical | 092bdc87699b7c8ef8340b8c49784bcc5ebd1d8b | [
"MIT"
] | 1 | 2021-01-04T20:59:14.000Z | 2021-01-04T20:59:14.000Z | app.py | ea1het/trivial_musical | 092bdc87699b7c8ef8340b8c49784bcc5ebd1d8b | [
"MIT"
] | null | null | null | app.py | ea1het/trivial_musical | 092bdc87699b7c8ef8340b8c49784bcc5ebd1d8b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=locally-disabled, multiple-statements
# pylint: disable=fixme, line-too-long, invalid-name
# pylint: disable=W0703
""" Trivial Musical """
__author__ = 'EA1HET, EA1GIY'
__date__ = '12/09/2020'
from fastapi import FastAPI
import uvicorn
title = 'Trivial Musical'
description... | 18.436364 | 96 | 0.634122 | 121 | 1,014 | 5.14876 | 0.578512 | 0.0626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03598 | 0.205128 | 1,014 | 54 | 97 | 18.777778 | 0.736973 | 0.274162 | 0 | 0.083333 | 0 | 0 | 0.264664 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.291667 | 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 |
ee78d3b28baa7270c066299e17202be2852a4488 | 12,522 | py | Python | src/Placer.py | holla2040/pnp | a8e577229833a13ec9d05205530d25c4127a76b2 | [
"MIT"
] | 1 | 2018-01-12T09:34:23.000Z | 2018-01-12T09:34:23.000Z | src/Placer.py | holla2040/pnp | a8e577229833a13ec9d05205530d25c4127a76b2 | [
"MIT"
] | null | null | null | src/Placer.py | holla2040/pnp | a8e577229833a13ec9d05205530d25c4127a76b2 | [
"MIT"
] | 1 | 2021-01-07T12:52:57.000Z | 2021-01-07T12:52:57.000Z | #!/usr/bin/env python
from PartsManager import PartsManager
from MachinePNP import Machine
from getchar import getchar
import time, os, pickle, sys, math
# coordinate systems
# G53 machine
# G54 camera
# G55 paste
# G56 place
# G57 part tape 0
try:
import BeautifulSoup
except:
import ... | 32.273196 | 121 | 0.46007 | 1,512 | 12,522 | 3.796296 | 0.17791 | 0.0723 | 0.076829 | 0.047909 | 0.395819 | 0.335714 | 0.302091 | 0.274739 | 0.206098 | 0.162892 | 0 | 0.042904 | 0.389475 | 12,522 | 387 | 122 | 32.356589 | 0.707914 | 0.087606 | 0 | 0.281787 | 0 | 0 | 0.095103 | 0.00215 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020619 | null | null | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee7d946549ba45a9fcd91589896f229797607835 | 3,541 | py | Python | convert.py | atksh/convert_for_insta | 2c0799fd74b415a65c833613d6d822c121b76425 | [
"MIT"
] | null | null | null | convert.py | atksh/convert_for_insta | 2c0799fd74b415a65c833613d6d822c121b76425 | [
"MIT"
] | null | null | null | convert.py | atksh/convert_for_insta | 2c0799fd74b415a65c833613d6d822c121b76425 | [
"MIT"
] | null | null | null |
import logging
import tempfile
import os
import subprocess
import glob
import multiprocessing
from config import ConfigVP8, ConfigMP4
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
THREADS = min(16, multiprocessing.cpu_count())
def silentremove(filename):
try:
os.remove(fi... | 32.486239 | 81 | 0.601243 | 474 | 3,541 | 4.388186 | 0.236287 | 0.038942 | 0.028846 | 0.036538 | 0.504327 | 0.504327 | 0.4875 | 0.425 | 0.353846 | 0.309615 | 0 | 0.012602 | 0.238068 | 3,541 | 108 | 82 | 32.787037 | 0.75834 | 0 | 0 | 0.369565 | 0 | 0.032609 | 0.290395 | 0.019492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0.076087 | 0.076087 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ee7e15c72b05cadece412cf9eddfdb689f462f8f | 599 | py | Python | setup.py | nilsec/mtrack | 76652c468417c7e3ac9903586c0127b884d6b032 | [
"MIT"
] | null | null | null | setup.py | nilsec/mtrack | 76652c468417c7e3ac9903586c0127b884d6b032 | [
"MIT"
] | null | null | null | setup.py | nilsec/mtrack | 76652c468417c7e3ac9903586c0127b884d6b032 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='mtrack',
version='0.1',
description='ILP based tracking of microtubules in em image stacks',
url='https://github.com/nilsec/mtrack',
author='Nils Eckstein',
author_email='nilsec@ini.ethz.ch',
license='MIT',
packages=[
'mtrack',
'... | 22.185185 | 72 | 0.534224 | 60 | 599 | 5.283333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017157 | 0.318865 | 599 | 26 | 73 | 23.038462 | 0.759804 | 0 | 0 | 0.08 | 0 | 0 | 0.407346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 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 |
ee81af3ff5709bfc0921bdc446d7f775375283ae | 4,738 | py | Python | imgtools/pipeline.py | bhklab/med-imagetools | 0cce0ee6666d052d4f76a1b6dc5d088392d309f4 | [
"Apache-2.0"
] | 9 | 2021-12-14T19:53:57.000Z | 2022-01-18T18:45:26.000Z | imgtools/pipeline.py | bhklab/med-imagetools | 0cce0ee6666d052d4f76a1b6dc5d088392d309f4 | [
"Apache-2.0"
] | 4 | 2021-12-05T02:54:00.000Z | 2021-12-10T20:32:20.000Z | imgtools/pipeline.py | bhklab/med-imagetools | 0cce0ee6666d052d4f76a1b6dc5d088392d309f4 | [
"Apache-2.0"
] | 1 | 2022-01-04T17:43:39.000Z | 2022-01-04T17:43:39.000Z | import warnings
from itertools import chain
from joblib import Parallel, delayed
from .ops import BaseOp, BaseInput, BaseOutput
class Pipeline:
"""Base class for image processing pipelines.
A pipeline can be created by subclassing, instantiating the required
data loaders and operations from `ops` in th... | 38.836066 | 120 | 0.627691 | 606 | 4,738 | 4.668317 | 0.293729 | 0.04772 | 0.040297 | 0.011665 | 0.168611 | 0.127253 | 0.083422 | 0.060092 | 0.02333 | 0 | 0 | 0.002645 | 0.281764 | 4,738 | 121 | 121 | 39.157025 | 0.828681 | 0.193753 | 0 | 0.108108 | 0 | 0 | 0.147123 | 0.031759 | 0 | 0 | 0 | 0.008264 | 0 | 1 | 0.135135 | false | 0.054054 | 0.054054 | 0.013514 | 0.283784 | 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 |
ee833e4560a73cbc7ceb802134e790491365d41f | 1,531 | py | Python | PythonModulo1/ex045.py | BossNX/ExerciciosDePython | 27c79d284794f65f94d3a07de11429d665ec92da | [
"MIT"
] | null | null | null | PythonModulo1/ex045.py | BossNX/ExerciciosDePython | 27c79d284794f65f94d3a07de11429d665ec92da | [
"MIT"
] | null | null | null | PythonModulo1/ex045.py | BossNX/ExerciciosDePython | 27c79d284794f65f94d3a07de11429d665ec92da | [
"MIT"
] | null | null | null | from time import sleep
import random
print('\033[31;1m-=\033[m'*12)
print('\033[34;1m{:^24}\033[m'.format('JOKENPÔ'))
print('\033[31;1m-=\033[m'*12)
print('\033[32;1;4mSuas opções:\033[m ')
print('\033[33;1m[ 1 ] PEDRA\033[m')
print('\033[35;1m[ 2 ] PAPEL\033[m')
print('\033[36;1m[ 3 ] TESOURA\033[m')
jogador = int(inp... | 34.795455 | 81 | 0.621816 | 238 | 1,531 | 4 | 0.235294 | 0.096639 | 0.084034 | 0.033613 | 0.357143 | 0.323529 | 0.277311 | 0.239496 | 0.186975 | 0 | 0 | 0.179793 | 0.178968 | 1,531 | 43 | 82 | 35.604651 | 0.577566 | 0 | 0 | 0.255814 | 0 | 0 | 0.401698 | 0.042456 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 0.465116 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ee859b8b2c21bcc233b76c196f278a10bb36b583 | 15,907 | py | Python | ui/main.py | sk1LLb0X/renderb0x | 62d194e732dcfd00400dfa284da70c28be79a404 | [
"MIT"
] | null | null | null | ui/main.py | sk1LLb0X/renderb0x | 62d194e732dcfd00400dfa284da70c28be79a404 | [
"MIT"
] | null | null | null | ui/main.py | sk1LLb0X/renderb0x | 62d194e732dcfd00400dfa284da70c28be79a404 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/qt/main.ui'
#
# Created: Thu Jan 15 22:44:27 2015
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Att... | 57.425993 | 94 | 0.726221 | 1,872 | 15,907 | 5.928953 | 0.082799 | 0.059195 | 0.036039 | 0.019912 | 0.529147 | 0.392017 | 0.259933 | 0.104784 | 0.066943 | 0.058744 | 0 | 0.02737 | 0.161627 | 15,907 | 276 | 95 | 57.634058 | 0.804889 | 0.013516 | 0 | 0.068966 | 1 | 0 | 0.052668 | 0.001403 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019157 | false | 0 | 0.003831 | 0.011494 | 0.038314 | 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 |
ee89f1f71cfa1470cbb53af8fb828c3919644b47 | 4,760 | py | Python | mydea/users/tests/test_auth_users.py | AlvaroRubioGomez/mydea | 286bae9bc87f894b30fa3398ab1bf1f1cd8f1929 | [
"MIT"
] | null | null | null | mydea/users/tests/test_auth_users.py | AlvaroRubioGomez/mydea | 286bae9bc87f894b30fa3398ab1bf1f1cd8f1929 | [
"MIT"
] | null | null | null | mydea/users/tests/test_auth_users.py | AlvaroRubioGomez/mydea | 286bae9bc87f894b30fa3398ab1bf1f1cd8f1929 | [
"MIT"
] | null | null | null | """User unit tests"""
# Django
from django.contrib.auth import get_user_model
# Pytest
import pytest
# Mixer
from mixer.backend.django import mixer
# Graphene
from graphene.test import Client
# Graphql-jwt
from graphql_jwt.testcases import JSONWebTokenTestCase
# Models
from mydea.users.models import User
# Queri... | 30.909091 | 86 | 0.589286 | 445 | 4,760 | 6.155056 | 0.253933 | 0.040891 | 0.046002 | 0.027382 | 0.15042 | 0.124133 | 0.065717 | 0.040161 | 0 | 0 | 0 | 0.009332 | 0.302101 | 4,760 | 154 | 87 | 30.909091 | 0.815172 | 0.093067 | 0 | 0.255102 | 0 | 0 | 0.137494 | 0.004927 | 0 | 0 | 0 | 0 | 0.22449 | 1 | 0.061224 | false | 0.183673 | 0.071429 | 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 |
ee8bdfb4a5e611764605c440eea8091fb28e81ed | 417 | py | Python | setup.py | linron84/pygoodreads | 9cc2c54bc05599ebc5d608dc6891b91f324e596c | [
"MIT"
] | null | null | null | setup.py | linron84/pygoodreads | 9cc2c54bc05599ebc5d608dc6891b91f324e596c | [
"MIT"
] | null | null | null | setup.py | linron84/pygoodreads | 9cc2c54bc05599ebc5d608dc6891b91f324e596c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='PyGoodReads',
version='0.0.1',
description='A wrapper of the GoodReads API in Python.',
author='Dong Liu',
author_email='liu.dong66@gmail.com',
packages=['goodreads'],
package_dir={'goodreads': 'goodreads'},
install_requir... | 20.85 | 60 | 0.611511 | 45 | 417 | 5.6 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018927 | 0.239808 | 417 | 19 | 61 | 21.947368 | 0.776025 | 0.047962 | 0 | 0 | 0 | 0 | 0.376263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
ee917fb6006abb72f658d79c1107ce233336602b | 785 | py | Python | ShellyMQTT.indigoPlugin/Contents/Server Plugin/tests/mocking/IndigoDevice.py | AaronLionsheep/ShellyMQTT | 5530112976963eb8cb394c8eefc070edb34eb9eb | [
"MIT"
] | null | null | null | ShellyMQTT.indigoPlugin/Contents/Server Plugin/tests/mocking/IndigoDevice.py | AaronLionsheep/ShellyMQTT | 5530112976963eb8cb394c8eefc070edb34eb9eb | [
"MIT"
] | 91 | 2020-03-07T21:31:03.000Z | 2022-03-22T21:45:58.000Z | ShellyMQTT.indigoPlugin/Contents/Server Plugin/tests/mocking/IndigoDevice.py | HackintoshMan/ShellyMQTT | 39202116694386ca838f08f6d615aefbec9729f7 | [
"MIT"
] | null | null | null | class IndigoDevice:
def __init__(self, id, name):
self.id = id
self.name = name
self.states = {}
self.states_meta = {}
self.pluginProps = {}
self.image = None
self.brightness = 0
def updateStateOnServer(self, key, value, uiValue=None, decimalPlaces=0):
... | 28.035714 | 100 | 0.615287 | 77 | 785 | 6.194805 | 0.363636 | 0.083857 | 0.0587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.281529 | 785 | 27 | 101 | 29.074074 | 0.842199 | 0.038217 | 0 | 0 | 0 | 0 | 0.053121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.05 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c988034e7e00e5f1a2a5007c99cecfc782df5322 | 1,156 | py | Python | pose_format/tensorflow/representation/inner_angle.py | yairc2223/pose-format | 6556433193582f8a7ed80d58d19ec11749e8606b | [
"MIT"
] | 11 | 2020-09-02T02:58:23.000Z | 2022-01-20T09:17:26.000Z | pose_format/tensorflow/representation/inner_angle.py | yairc2223/pose-format | 6556433193582f8a7ed80d58d19ec11749e8606b | [
"MIT"
] | 5 | 2021-12-10T15:48:59.000Z | 2022-02-21T15:53:20.000Z | pose_format/tensorflow/representation/inner_angle.py | yairc2223/pose-format | 6556433193582f8a7ed80d58d19ec11749e8606b | [
"MIT"
] | 6 | 2020-09-21T02:21:26.000Z | 2022-02-05T17:18:44.000Z | import tensorflow as tf
def get_vectors_norm(vectors):
transposed = tf.transpose(vectors)
v_mag = tf.sqrt(tf.math.reduce_sum(transposed * transposed, axis=0))
return tf.transpose(tf.math.divide_no_nan(transposed, v_mag))
class InnerAngleRepresentation:
def __call__(self, p1s: tf.Tensor, p2s: tf.Tens... | 37.290323 | 99 | 0.638408 | 164 | 1,156 | 4.371951 | 0.390244 | 0.089261 | 0.117155 | 0.125523 | 0.211994 | 0.122734 | 0.086471 | 0 | 0 | 0 | 0 | 0.039728 | 0.237889 | 1,156 | 30 | 100 | 38.533333 | 0.77412 | 0.360727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c99e07e8144d214fb77210efb20aa5a4a6b0afd0 | 521 | py | Python | algorithms/python/leetcode/tests/test_SingleElementinaSortedArray.py | ytjia/coding-pratice | 6ddba1f3b86c40639a8203cbc3373d52301c1b1f | [
"MIT"
] | null | null | null | algorithms/python/leetcode/tests/test_SingleElementinaSortedArray.py | ytjia/coding-pratice | 6ddba1f3b86c40639a8203cbc3373d52301c1b1f | [
"MIT"
] | null | null | null | algorithms/python/leetcode/tests/test_SingleElementinaSortedArray.py | ytjia/coding-pratice | 6ddba1f3b86c40639a8203cbc3373d52301c1b1f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Authors: Y. Jia <ytjia.zju@gmail.com>
import unittest
from .. import SingleElementinaSortedArray
class test_SingleElementinaSortedArray(unittest.TestCase):
solution = SingleElementinaSortedArray.Solution()
def test_singleNonDuplicate(self):
self.assertEqual(self.solution.... | 27.421053 | 90 | 0.675624 | 60 | 521 | 5.7 | 0.483333 | 0.087719 | 0.111111 | 0.157895 | 0.280702 | 0.280702 | 0.280702 | 0.280702 | 0 | 0 | 0 | 0.044811 | 0.18618 | 521 | 18 | 91 | 28.944444 | 0.761792 | 0.113244 | 0 | 0 | 0 | 0 | 0.017429 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 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 |
c9a0acb203898c7e438a3bc22fa5c899a1f4705b | 1,482 | py | Python | Procedural Paradigm/practicum/lab-4-algorithmic-decomposition/empatinteger.py | morenzoe/IF1210_Dasar_Pemrograman | 6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015 | [
"BSD-3-Clause"
] | null | null | null | Procedural Paradigm/practicum/lab-4-algorithmic-decomposition/empatinteger.py | morenzoe/IF1210_Dasar_Pemrograman | 6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015 | [
"BSD-3-Clause"
] | null | null | null | Procedural Paradigm/practicum/lab-4-algorithmic-decomposition/empatinteger.py | morenzoe/IF1210_Dasar_Pemrograman | 6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015 | [
"BSD-3-Clause"
] | 1 | 2022-02-21T05:03:26.000Z | 2022-02-21T05:03:26.000Z | # Nama : Eraraya Morenzo Muten
# NIM : 16520002
# Tanggal : 26 Maret 2021
# Program EmpatInteger
# Input: 4 integer: A, B, C, D
# Output: Sifat integer dari A, B, C, D (positif/negatif/nol)
# Jika semua integer positif, tampilkan:
# nilai maksimum, minimum, dan mean olympic
# KAMUS
# variabel... | 25.118644 | 62 | 0.607287 | 247 | 1,482 | 3.643725 | 0.307692 | 0.037778 | 0.056667 | 0.075556 | 0.286667 | 0.102222 | 0.055556 | 0.055556 | 0 | 0 | 0 | 0.022401 | 0.246964 | 1,482 | 59 | 63 | 25.118644 | 0.78405 | 0.555331 | 0 | 0 | 0 | 0 | 0.033123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.115385 | 0.269231 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c9a2e00e0db95e4b8a25055ed95a508c3e66395d | 3,133 | py | Python | data_exchange.py | AndreMiras/nfc-experiments | 328098649ba885ee598514e01dac0c2af7fc5300 | [
"MIT"
] | 3 | 2017-01-17T15:48:11.000Z | 2020-06-22T12:43:57.000Z | data_exchange.py | AndreMiras/nfc-experiments | 328098649ba885ee598514e01dac0c2af7fc5300 | [
"MIT"
] | null | null | null | data_exchange.py | AndreMiras/nfc-experiments | 328098649ba885ee598514e01dac0c2af7fc5300 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""
InDataExchange (0x40) command example.
"""
from __future__ import print_function
from __future__ import unicode_literals
from smartcard.System import readers
from enum import Enum
from pn532_reader import Pn532Reader, Pn532Modulation
from list_targets import list_target
class MifareError(En... | 33.329787 | 76 | 0.716246 | 432 | 3,133 | 5 | 0.435185 | 0.061111 | 0.034722 | 0.040741 | 0.252315 | 0.2125 | 0.2125 | 0.17037 | 0.133333 | 0.133333 | 0 | 0.07765 | 0.223109 | 3,133 | 93 | 77 | 33.688172 | 0.809778 | 0.417491 | 0 | 0.153846 | 0 | 0 | 0.090655 | 0 | 0 | 0 | 0.047006 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.576923 | 0.134615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c9a95ffd5a2714badb9967521bf6587061327aab | 2,359 | py | Python | genast.py | rishiedupalli/vinculum | 6e8c7d6aa9216d889a7801bbe4a085f14a0b2be3 | [
"BSD-3-Clause"
] | 1 | 2022-03-09T20:09:15.000Z | 2022-03-09T20:09:15.000Z | genast.py | rishiedupalli/vinculum | 6e8c7d6aa9216d889a7801bbe4a085f14a0b2be3 | [
"BSD-3-Clause"
] | 4 | 2022-03-12T03:14:10.000Z | 2022-03-29T01:34:03.000Z | genast.py | rishiedupalli/vinculum | 6e8c7d6aa9216d889a7801bbe4a085f14a0b2be3 | [
"BSD-3-Clause"
] | 1 | 2022-03-13T20:53:22.000Z | 2022-03-13T20:53:22.000Z | from tokens import TokenType
from nodes import *
class Parser:
def __init__(self, tokens):
self.tokens = tokens
self.advance()
def raise_error(self):
raise Exception("Invalid Syntax")
def advance(self):
try:
self.current_token = next(self.tokens)
except... | 28.421687 | 126 | 0.554472 | 250 | 2,359 | 5.14 | 0.208 | 0.128405 | 0.18677 | 0.124514 | 0.389105 | 0.368872 | 0.20856 | 0.163424 | 0.163424 | 0.091829 | 0 | 0 | 0.345909 | 2,359 | 83 | 127 | 28.421687 | 0.832793 | 0 | 0 | 0.322581 | 0 | 0 | 0.005932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.032258 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9b040e08ed65b16d72996767bbf1921fdf4c6cb | 547 | py | Python | src/the_tale/the_tale/game/pvp/models.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/pvp/models.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/pvp/models.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class Battle1x1Result(django_models.Model):
created_at = django_models.DateTimeField(auto_now_add=True, null=False)
participant_1 = django_models.ForeignKey('accounts.Account', null=False, related_name='+', on_delete=django_models.CASCADE)
participant_2 = django... | 39.071429 | 127 | 0.802559 | 69 | 547 | 6.043478 | 0.57971 | 0.172662 | 0.105516 | 0.143885 | 0.402878 | 0.402878 | 0.402878 | 0.402878 | 0.402878 | 0.402878 | 0 | 0.012024 | 0.087751 | 547 | 13 | 128 | 42.076923 | 0.823647 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
c9b0b457eb0808e8c35013a52f3c8354c110cf05 | 324 | py | Python | patients/migrations/0014_remove_invoice_appointment.py | Curewell-Homeo-Clinic/admin-system | c8ce56a2bdbccfe1e6bec09068932f1943498b9f | [
"MIT"
] | 1 | 2021-11-29T15:24:41.000Z | 2021-11-29T15:24:41.000Z | patients/migrations/0014_remove_invoice_appointment.py | Curewell-Homeo-Clinic/admin-system | c8ce56a2bdbccfe1e6bec09068932f1943498b9f | [
"MIT"
] | 46 | 2021-11-29T16:05:55.000Z | 2022-03-01T13:04:45.000Z | patients/migrations/0014_remove_invoice_appointment.py | Curewell-Homeo-Clinic/admin-system | c8ce56a2bdbccfe1e6bec09068932f1943498b9f | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-24 09:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('patients', '0013_invoice'),
]
operations = [
migrations.RemoveField(
model_name='invoice',
name='appointment',
),
... | 18 | 47 | 0.58642 | 33 | 324 | 5.69697 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0837 | 0.299383 | 324 | 17 | 48 | 19.058824 | 0.744493 | 0.138889 | 0 | 0 | 1 | 0 | 0.137184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9bd9bb06c58c27113495b5d8e8345815061d448 | 2,717 | py | Python | php/chapter-4/alert_consumer.py | Vekaco/rabbitmq-in-action | 1a4afd73d4ec466b942192a2b289adf871b91600 | [
"BSD-2-Clause"
] | null | null | null | php/chapter-4/alert_consumer.py | Vekaco/rabbitmq-in-action | 1a4afd73d4ec466b942192a2b289adf871b91600 | [
"BSD-2-Clause"
] | null | null | null | php/chapter-4/alert_consumer.py | Vekaco/rabbitmq-in-action | 1a4afd73d4ec466b942192a2b289adf871b91600 | [
"BSD-2-Clause"
] | null | null | null | import json, smtplib
import pika
#before testing, please use commad:
#1.create user on defalut vhost /:
#rabbitmqctl add_user alert_user alertme
#2.set permission for user:
#rabbitmqctl set_permissions alert_user ".*" ".*",".*"
def send_mail(recipients,subject,message):
"""E-mail generator for received alerts."""
... | 41.166667 | 107 | 0.716231 | 362 | 2,717 | 5.157459 | 0.331492 | 0.038565 | 0.032137 | 0.035351 | 0.306909 | 0.269952 | 0.133905 | 0.094269 | 0.094269 | 0.094269 | 0 | 0.003049 | 0.15495 | 2,717 | 65 | 108 | 41.8 | 0.810105 | 0.114464 | 0 | 0.1 | 0 | 0 | 0.203034 | 0.039268 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.05 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c9c70e38b93267b034c21d4a4c7f12647a7a75b2 | 15,893 | py | Python | depimpact/tests/test_dependence.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | depimpact/tests/test_dependence.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | depimpact/tests/test_dependence.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | """Test of the dependence library.
TODO:
New tests to add:
- additive gaussian problem
* grid search with rand, lhs, fixed
* on several function of interest
* with bounds on the parameter
* with kendall or not
* same with the iterative
... | 32.769072 | 125 | 0.558611 | 1,955 | 15,893 | 4.338619 | 0.126343 | 0.023344 | 0.02688 | 0.015562 | 0.652794 | 0.62108 | 0.549635 | 0.542679 | 0.526173 | 0.499293 | 0 | 0.024439 | 0.333166 | 15,893 | 484 | 126 | 32.836777 | 0.775807 | 0.027748 | 0 | 0.580247 | 0 | 0 | 0.03922 | 0 | 0 | 0 | 0 | 0.002066 | 0.040123 | 0 | null | null | 0 | 0.024691 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.