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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc215058644762a7827001d3dbe39c062c3bd0bf | 263 | py | Python | app/manage/forms.py | SheHuan/NiceBlog | 6ee6720bc035af62d4404c85c3b176484595e3aa | [
"Apache-2.0"
] | 9 | 2019-01-04T01:45:31.000Z | 2020-12-02T15:27:35.000Z | app/manage/forms.py | megitnet/NiceBlog | 6ee6720bc035af62d4404c85c3b176484595e3aa | [
"Apache-2.0"
] | 5 | 2019-01-03T13:15:23.000Z | 2021-02-02T21:41:58.000Z | app/manage/forms.py | wangqingshan/flaskwebBlog | 7cf2c838c2e8d0e0235d7ec630e5be655d6b65c7 | [
"Apache-2.0"
] | 18 | 2018-10-11T07:37:38.000Z | 2019-12-27T15:50:25.000Z | from flask_wtf import FlaskForm
from wtforms import BooleanField, SubmitField
class PermissionForm(FlaskForm):
"""
登录表单
"""
favourite = BooleanField('喜欢', default=False)
commit = BooleanField('评论', default=True)
save = SubmitField('确定')
| 21.916667 | 49 | 0.695817 | 27 | 263 | 6.740741 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193916 | 263 | 11 | 50 | 23.909091 | 0.858491 | 0.015209 | 0 | 0 | 0 | 0 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dc2729a87c93f092b9d8214d93e2d72c8da7028d | 23,843 | py | Python | complex/complex/client.py | hazmat345/example-plugins | 68551c5327bdbb45870a2a5c121ee99d2673682b | [
"MIT"
] | null | null | null | complex/complex/client.py | hazmat345/example-plugins | 68551c5327bdbb45870a2a5c121ee99d2673682b | [
"MIT"
] | null | null | null | complex/complex/client.py | hazmat345/example-plugins | 68551c5327bdbb45870a2a5c121ee99d2673682b | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import json
import logging
import os
import sys
from brewtils.decorators import command, system, parameter
from .model import MyModel, MyNestedModel, MyListModel, MyModelWithDefaults
@system
class ComplexClient:
"""Plugin that shows all the cool things beergarden can do"""... | 27.218037 | 93 | 0.572663 | 2,756 | 23,843 | 4.795718 | 0.07402 | 0.059923 | 0.067791 | 0.023833 | 0.793372 | 0.760157 | 0.703488 | 0.666793 | 0.644776 | 0.627147 | 0 | 0.00226 | 0.313216 | 23,843 | 875 | 94 | 27.249143 | 0.804886 | 0.008933 | 0 | 0.69455 | 0 | 0 | 0.136379 | 0.000974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082383 | false | 0.002535 | 0.008872 | 0.011407 | 0.17237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc374378ce2e224265d77ac71eb2dfc211772f0e | 1,915 | py | Python | contrib/browser/wpath.py | PiRSquared17/warc-tools | f200a5ed086159a1b1833f7361b35389b1ad1ef4 | [
"Apache-2.0"
] | null | null | null | contrib/browser/wpath.py | PiRSquared17/warc-tools | f200a5ed086159a1b1833f7361b35389b1ad1ef4 | [
"Apache-2.0"
] | null | null | null | contrib/browser/wpath.py | PiRSquared17/warc-tools | f200a5ed086159a1b1833f7361b35389b1ad1ef4 | [
"Apache-2.0"
] | null | null | null |
# ------------------------------------------------------------------- #
# Copyright (c) 2007-2008 Hanzo Archives Limited. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file... | 56.323529 | 72 | 0.370757 | 149 | 1,915 | 4.765101 | 0.610738 | 0.084507 | 0.05493 | 0.067606 | 0.084507 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0.014463 | 0.494517 | 1,915 | 33 | 73 | 58.030303 | 0.719008 | 0.89295 | 0 | 0 | 0 | 0 | 0.398693 | 0.398693 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dc42b5ee339bb8420293b0433c16f07759eb8b3c | 32 | py | Python | portfolio/Python/scrapy/hadrianequine/__init__.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/Python/scrapy/hadrianequine/__init__.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/Python/scrapy/hadrianequine/__init__.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | 5 | 2016-03-22T07:40:46.000Z | 2021-05-30T16:12:21.000Z | ACCOUNT_NAME = 'Hadrian Equine'
| 16 | 31 | 0.78125 | 4 | 32 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc42c9e944e7be87280450bc818954b40aa7c6d9 | 536 | py | Python | src/memory.py | Hiryugan/rl-demonstrations | fa8b22e2a5dcb44ae170d5e8480a297469373b2f | [
"MIT"
] | 3 | 2018-12-23T17:08:05.000Z | 2018-12-26T18:02:44.000Z | src/memory.py | gabriele-bani/rl-demonstrations | fa8b22e2a5dcb44ae170d5e8480a297469373b2f | [
"MIT"
] | 13 | 2018-12-23T08:49:35.000Z | 2018-12-23T08:49:36.000Z | src/memory.py | gabriele-bani/rl-demonstrations | fa8b22e2a5dcb44ae170d5e8480a297469373b2f | [
"MIT"
] | null | null | null | import random
class ReplayMemory:
def __init__(self, capacity):
self.capacity = capacity
self.memory = []
def push(self, transition):
self.memory.append(transition)
if len(self.memory) == self.capacity:
self.memory = self.memory[1:]
def sample(self, batch_siz... | 22.333333 | 55 | 0.593284 | 61 | 536 | 5.04918 | 0.344262 | 0.292208 | 0.136364 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002674 | 0.302239 | 536 | 24 | 56 | 22.333333 | 0.820856 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.058824 | 0.529412 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dc560d29527cd7a34a24a702d1f80ab42d82c629 | 2,183 | py | Python | melnor_bluetooth/constants.py | vanstinator/melnor-bluetooth | 44099318baa1ec1a5c1dcd5f74fee4ce00f6d7f2 | [
"MIT"
] | null | null | null | melnor_bluetooth/constants.py | vanstinator/melnor-bluetooth | 44099318baa1ec1a5c1dcd5f74fee4ce00f6d7f2 | [
"MIT"
] | 4 | 2022-03-25T14:30:01.000Z | 2022-03-28T02:01:52.000Z | melnor_bluetooth/constants.py | vanstinator/melnor-bluetooth | 44099318baa1ec1a5c1dcd5f74fee4ce00f6d7f2 | [
"MIT"
] | null | null | null | BATTERY_UUID = "0000ec08-0000-1000-8000-00805f9b34fb"
DEVICE_USER_NAME_UUID = "0000ec01-0000-1000-8000-00805f9b34fb"
UPDATED_AT_UUID = "0000ec09-0000-1000-8000-00805f9b34fb"
MODEL_NUMBER_UUID = "00002a24-0000-1000-8000-00805f9b34fb"
MANUFACTURER_UUID = "00002a29-0000-1000-8000-00805f9b34fb"
VALVE_MANUAL_SETTINGS_UUID ... | 20.790476 | 67 | 0.574897 | 263 | 2,183 | 4.627376 | 0.288973 | 0.078883 | 0.118324 | 0.236647 | 0.176664 | 0.057518 | 0 | 0 | 0 | 0 | 0 | 0.422711 | 0.229501 | 2,183 | 104 | 68 | 20.990385 | 0.300832 | 0.005955 | 0 | 0 | 0 | 0 | 0.378229 | 0.199262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
dc5d9ca6b8b16e7a6ee1d75153325bb36d5986c7 | 278 | py | Python | 01_virtualenv.py | Madhav2204/Python-vs-code | 6b845573f6e9f77cccf8f67913ad4de05da6593c | [
"Apache-2.0"
] | null | null | null | 01_virtualenv.py | Madhav2204/Python-vs-code | 6b845573f6e9f77cccf8f67913ad4de05da6593c | [
"Apache-2.0"
] | null | null | null | 01_virtualenv.py | Madhav2204/Python-vs-code | 6b845573f6e9f77cccf8f67913ad4de05da6593c | [
"Apache-2.0"
] | null | null | null | # For MacOS/linux users: source myprojectenv/bin/activate
# For windows powershell users: .\myprojectenv\Scripts\activate.ps1
# https://stackoverflow.com/questions/18713086/virtualenv-wont-activate-on-windows
import flask # flask - 0.5.2
import pandas as pd
import pygame | 39.714286 | 83 | 0.784173 | 38 | 278 | 5.736842 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.115108 | 278 | 7 | 84 | 39.714286 | 0.837398 | 0.776978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dc5e87745fb0ea853e6dcab5d387ddb1b95e175f | 258 | py | Python | pycpt/colors.py | rob-smallshire/pycpt | eab37052d611d34507d55b16b2ad644f1d79d816 | [
"MIT"
] | 2 | 2018-06-13T02:00:03.000Z | 2018-07-15T05:57:39.000Z | pycpt/colors.py | rob-smallshire/pycpt | eab37052d611d34507d55b16b2ad644f1d79d816 | [
"MIT"
] | null | null | null | pycpt/colors.py | rob-smallshire/pycpt | eab37052d611d34507d55b16b2ad644f1d79d816 | [
"MIT"
] | null | null | null | __author__ = 'rjs'
from collections import namedtuple
HSVColor = namedtuple('HSVColor', ['hue', 'saturation', 'value'])
RGBColor = namedtuple('RGBColor', ['red', 'green', 'blue'])
CMYKColor = namedtuple('CMYKColor', ['cyan', 'magenta', 'yellow', 'black'])
| 32.25 | 75 | 0.682171 | 25 | 258 | 6.88 | 0.76 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108527 | 258 | 7 | 76 | 36.857143 | 0.747826 | 0 | 0 | 0 | 0 | 0 | 0.310078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc84ad8a1c39442e1d8e6c45b803337eddc36961 | 1,401 | py | Python | tests/test_postgres_engine.py | fossabot/vial | 0e33a68f5e0dd6a9a9877163f263114fc9e5f774 | [
"MIT"
] | 4 | 2019-02-07T14:58:21.000Z | 2021-01-28T08:43:46.000Z | tests/test_postgres_engine.py | fossabot/vial | 0e33a68f5e0dd6a9a9877163f263114fc9e5f774 | [
"MIT"
] | 8 | 2018-12-29T14:08:48.000Z | 2021-03-19T07:54:54.000Z | tests/test_postgres_engine.py | fossabot/vial | 0e33a68f5e0dd6a9a9877163f263114fc9e5f774 | [
"MIT"
] | 3 | 2019-01-07T05:50:39.000Z | 2020-10-24T10:26:54.000Z | from nose.tools import assert_in
from vial.db.sql.postgresql import Postgresql
def test_create():
assert_in('id SERIAL PRIMARY KEY', Postgresql._create_query('test', serial=True))
assert_in(
'name varchar PRIMARY KEY NOT NULL',
Postgresql._create_query('test', fields={
'name': {'ty... | 40.028571 | 118 | 0.651677 | 190 | 1,401 | 4.578947 | 0.221053 | 0.11954 | 0.12069 | 0.143678 | 0.472414 | 0.32069 | 0.32069 | 0.151724 | 0.151724 | 0 | 0 | 0.012521 | 0.144897 | 1,401 | 34 | 119 | 41.205882 | 0.713689 | 0 | 0 | 0 | 0 | 0 | 0.265525 | 0 | 0 | 0 | 0 | 0 | 0.541667 | 1 | 0.208333 | true | 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 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dcae08e87bc0020c3383c1fc288d12765817d5a1 | 1,089 | py | Python | tech_project/lib/python2.7/site-packages/treebeard/tests/conftest.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 3 | 2020-08-03T18:28:24.000Z | 2021-09-07T02:59:29.000Z | tech_project/lib/python2.7/site-packages/treebeard/tests/conftest.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 10 | 2020-05-11T20:29:28.000Z | 2022-01-13T01:41:27.000Z | tech_project/lib/python2.7/site-packages/treebeard/tests/conftest.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 2 | 2021-01-06T19:25:07.000Z | 2021-05-14T02:00:19.000Z | """
Py.test configuration file
Maik says: There's some magic in here that I don't fully understand. Normally, one would
use pytest-django to run the tests, which takes care of all the Django-related testcase
set up and tear down. But that doesn't work because the current tests attempt to access the
database not just i... | 31.114286 | 91 | 0.786042 | 170 | 1,089 | 4.929412 | 0.582353 | 0.071599 | 0.026253 | 0.045346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001079 | 0.14876 | 1,089 | 34 | 92 | 32.029412 | 0.902913 | 0.529844 | 0 | 0 | 0 | 0 | 0.107143 | 0.09127 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f493ed576ce93ddb0a01150e7e72b3c394ba98fc | 122 | py | Python | back/taiga_contrib_fan/__init__.py | leblanc-simon/taiga-contrib-fan | 92e844c1fb1925a37b7eaf41d1fa2a44893b3206 | [
"MIT"
] | null | null | null | back/taiga_contrib_fan/__init__.py | leblanc-simon/taiga-contrib-fan | 92e844c1fb1925a37b7eaf41d1fa2a44893b3206 | [
"MIT"
] | 1 | 2019-04-12T12:42:03.000Z | 2019-04-12T16:01:45.000Z | back/taiga_contrib_fan/__init__.py | leblanc-simon/taiga-contrib-fan | 92e844c1fb1925a37b7eaf41d1fa2a44893b3206 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__version__ = (1, 0, 0)
default_app_config = "taiga_contrib_fan.apps.TaigaContribFanAppConfig"
| 17.428571 | 70 | 0.713115 | 15 | 122 | 5.266667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.131148 | 122 | 6 | 71 | 20.333333 | 0.707547 | 0.172131 | 0 | 0 | 0 | 0 | 0.479592 | 0.479592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f4959f22a3bcfbde996f5c8805e2ef4a910aefed | 445 | py | Python | nps/migrations/0005_auto_20180309_2017.py | jak0203/nps-dash | 9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f | [
"MIT"
] | null | null | null | nps/migrations/0005_auto_20180309_2017.py | jak0203/nps-dash | 9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f | [
"MIT"
] | 1 | 2018-03-19T04:08:10.000Z | 2018-03-19T04:08:10.000Z | nps/migrations/0005_auto_20180309_2017.py | jak0203/nps-dash | 9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-03-10 04:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('nps', '0004_auto_20180309_1635'),
]
operations = [
migrations.RemoveField(
model_name='comments',
name='question_name',
... | 20.227273 | 47 | 0.573034 | 44 | 445 | 5.636364 | 0.704545 | 0.169355 | 0.209677 | 0.241935 | 0.403226 | 0.403226 | 0.403226 | 0 | 0 | 0 | 0 | 0.101974 | 0.316854 | 445 | 21 | 48 | 21.190476 | 0.713816 | 0.101124 | 0 | 0.4 | 1 | 0 | 0.170854 | 0.057789 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f4a9f37a8ff822753c198b7ef24cc850765cec5a | 513 | py | Python | pychemia/crystal/__init__.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 67 | 2015-01-31T07:44:55.000Z | 2022-03-21T21:43:34.000Z | pychemia/crystal/__init__.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 13 | 2016-06-03T19:07:51.000Z | 2022-03-31T04:20:40.000Z | pychemia/crystal/__init__.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 37 | 2015-01-22T15:37:23.000Z | 2022-03-21T15:38:10.000Z | """
Module with classes for pure periodic systems (Crystals)
There are three main classes on this module: *KPoints* for describing a grid, list or path of points
in reciprocal space. Lattice for storing a manipulating cell vectors and computing the reciprocal lattice.
CrystalSymmetry for computing spacegroups, finding ... | 36.642857 | 106 | 0.791423 | 70 | 513 | 5.728571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146199 | 513 | 13 | 107 | 39.461538 | 0.915525 | 0.787524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f4b87df546a3d7b2901a03684f29e839c1aa19c9 | 518 | py | Python | power_cache/key.py | Coder-Spirit/power_cache | b67931e654d2e097a388765316edf9e77ccbcfc2 | [
"MIT"
] | 5 | 2021-10-03T14:15:19.000Z | 2021-12-02T01:35:19.000Z | power_cache/key.py | Coder-Spirit/power_cache | b67931e654d2e097a388765316edf9e77ccbcfc2 | [
"MIT"
] | 1 | 2021-10-04T06:36:19.000Z | 2021-10-04T07:30:22.000Z | power_cache/key.py | Coder-Spirit/power_cache | b67931e654d2e097a388765316edf9e77ccbcfc2 | [
"MIT"
] | null | null | null | from typing import Any, Dict, Tuple
class Key:
__slots__ = ("__args", "__kwargs")
def __init__(self, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> None:
self.__args = args
self.__kwargs = tuple(kwargs.items())
def __eq__(self, o: object) -> bool:
return (
isinstan... | 25.9 | 78 | 0.557915 | 61 | 518 | 4.147541 | 0.42623 | 0.126482 | 0.110672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293436 | 518 | 19 | 79 | 27.263158 | 0.691257 | 0 | 0 | 0 | 0 | 0 | 0.032819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f4e4d64bb907a786f79f568e9f975931143e2d3b | 142 | py | Python | django/app/infra/apps.py | iasql/ecs-fargate-examples | 55d880d2d60213366caa0609f2c2b3b4d85b9eec | [
"Apache-2.0"
] | 2 | 2021-12-17T00:19:02.000Z | 2021-12-17T09:40:35.000Z | django/app/infra/apps.py | iasql/quickstart | 7777537b0b2f465c246b103a66115e7b84b48ee2 | [
"Apache-2.0"
] | 2 | 2022-03-07T09:56:45.000Z | 2022-03-15T07:11:00.000Z | django/app/infra/apps.py | iasql/quickstart | 7777537b0b2f465c246b103a66115e7b84b48ee2 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class InfraConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'infra'
| 20.285714 | 56 | 0.753521 | 17 | 142 | 6.176471 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 142 | 6 | 57 | 23.666667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.239437 | 0.204225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f4f4c1142233303ce88dde366037dc7d2d9c3715 | 484 | py | Python | machine_learning/cluster_analysis/dbscan/python/Point.py | avi-pal/al-go-rithms | 5167a20f1db7b366ff19f2962c1746a02e4f5067 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | machine_learning/cluster_analysis/dbscan/python/Point.py | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | machine_learning/cluster_analysis/dbscan/python/Point.py | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z |
class Point:
def __init__(self, x, y):
self._cluster = 0 # Not classified yet
self._visited = False
self._x = x
self._y = y
def get_cluster(self):
return self._cluster
def set_cluster(self, cluster):
self._cluster = cluster
def get_values(... | 18.615385 | 46 | 0.561983 | 61 | 484 | 4.163934 | 0.360656 | 0.173228 | 0.165354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.347107 | 484 | 25 | 47 | 19.36 | 0.800633 | 0.055785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.1875 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
76038eaade3aa4ce23445e6112ac746ec44e96ec | 310 | py | Python | actuators/single_led/single_led.py | esp32-robotics/micropython-robotics-drivers | b8340e5d4e36c31669e626e59adda5018ed38dea | [
"BSD-3-Clause"
] | null | null | null | actuators/single_led/single_led.py | esp32-robotics/micropython-robotics-drivers | b8340e5d4e36c31669e626e59adda5018ed38dea | [
"BSD-3-Clause"
] | 3 | 2019-11-28T03:15:43.000Z | 2019-11-28T03:20:02.000Z | actuators/single_led/single_led.py | esp32-robotics/micropython-robotics-drivers | b8340e5d4e36c31669e626e59adda5018ed38dea | [
"BSD-3-Clause"
] | null | null | null |
class SingleLed(object):
"""Represents a single LED that is connected to the ESP32"""
def __init__(self, pin):
self.pin = pin
def write_on(self, is_on):
print("Setting LED on pin {} to {}".format(self.pin, is_on))
# TODO: Actually call MicroPython code to set the output
| 28.181818 | 68 | 0.63871 | 46 | 310 | 4.152174 | 0.630435 | 0.109948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.251613 | 310 | 10 | 69 | 31 | 0.814655 | 0.354839 | 0 | 0 | 0 | 0 | 0.139896 | 0 | 0 | 0 | 0 | 0.1 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
760415277568c05421f1be81a02cff194f2cc057 | 347 | py | Python | Dataset/Leetcode/valid/20/134.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/20/134.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/20/134.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, s: str) -> bool:
stack = []
for c in s:
if c == '(': stack.append(')')
elif c == '[': stack.append(']')
elif c == '{': stack.append('}')
elif not stack or c != stack.pop(): return False
if not stack: return True
... | 28.916667 | 60 | 0.455331 | 42 | 347 | 3.761905 | 0.52381 | 0.151899 | 0.227848 | 0.303797 | 0.303797 | 0.303797 | 0.303797 | 0.303797 | 0 | 0 | 0 | 0 | 0.383285 | 347 | 11 | 61 | 31.545455 | 0.738318 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7622fef5353790dbfa8042d9c4b6cc178c206950 | 419 | py | Python | spikeforest/spikesorters/__init__.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | null | null | null | spikeforest/spikesorters/__init__.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | null | null | null | spikeforest/spikesorters/__init__.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | null | null | null | from .mountainsort4 import MountainSort4, MountainSort4TestError
from .spyking_circus import SpykingCircus
from .yass import YASS
from .yass1 import YASS1
from .ironclust import IronClust
from .kilosort import KiloSort
from .kilosort2 import KiloSort2
from .herdingspikes2 import HerdingSpikes2
from .jrclust import JRCl... | 32.230769 | 64 | 0.852029 | 50 | 419 | 7.12 | 0.34 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024324 | 0.116945 | 419 | 12 | 65 | 34.916667 | 0.937838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7632244900d62ed35e7b8e0a4de0dfbb5aa868c5 | 284 | py | Python | py_hardway/SD1yet.py | missulmer/Pythonstudy | fc811570cafaa383ac98f489028583081932b3e5 | [
"CC0-1.0"
] | null | null | null | py_hardway/SD1yet.py | missulmer/Pythonstudy | fc811570cafaa383ac98f489028583081932b3e5 | [
"CC0-1.0"
] | null | null | null | py_hardway/SD1yet.py | missulmer/Pythonstudy | fc811570cafaa383ac98f489028583081932b3e5 | [
"CC0-1.0"
] | null | null | null | print "Is this what you meant by solving an SD1 problem?"
print "Print me the lable on the sugar packet with the correct spacing."
end1 = "Natural"
end2 = "Made"
end3 = "Sugar"
print end1, end2, end3
print "That seems too easy. You must have meant something more difficult. :)"
| 20.285714 | 77 | 0.721831 | 46 | 284 | 4.456522 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030702 | 0.197183 | 284 | 13 | 78 | 21.846154 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0.704626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.571429 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5216604d0f8c279b518ac46dae10b73e4b6f5142 | 1,110 | py | Python | suggestions/model.py | campagnucci/querido-diario-api | 6d44baa4b2d60b0762dc72cbf3ce7170298c11a8 | [
"MIT"
] | null | null | null | suggestions/model.py | campagnucci/querido-diario-api | 6d44baa4b2d60b0762dc72cbf3ce7170298c11a8 | [
"MIT"
] | null | null | null | suggestions/model.py | campagnucci/querido-diario-api | 6d44baa4b2d60b0762dc72cbf3ce7170298c11a8 | [
"MIT"
] | null | null | null | class Suggestion:
"""
Object containing the data to suggest
"""
def __init__(
self, email_address, name, content,
):
self.email_address = email_address
self.name = name
self.content = content
def __hash__(self):
return hash((self.email_address, self.name... | 24.130435 | 79 | 0.601802 | 123 | 1,110 | 5.113821 | 0.211382 | 0.133545 | 0.127186 | 0.09539 | 0.317965 | 0.260731 | 0.111288 | 0 | 0 | 0 | 0 | 0 | 0.287387 | 1,110 | 45 | 80 | 24.666667 | 0.795196 | 0.067568 | 0 | 0.344828 | 0 | 0 | 0.105578 | 0.061753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0 | 0.206897 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5225c3b80ec048046020f610a28fee8c2caa1c3d | 50 | py | Python | interface/__init__.py | DanilooSilva/Formats-text | 5050bd42522ecb0d819bd0946d85349cfd455572 | [
"MIT"
] | null | null | null | interface/__init__.py | DanilooSilva/Formats-text | 5050bd42522ecb0d819bd0946d85349cfd455572 | [
"MIT"
] | null | null | null | interface/__init__.py | DanilooSilva/Formats-text | 5050bd42522ecb0d819bd0946d85349cfd455572 | [
"MIT"
] | null | null | null | from .window import Windows
__all__ = ['Windows'] | 16.666667 | 27 | 0.74 | 6 | 50 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 3 | 28 | 16.666667 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
523386ca673e0df9644da554228ef00aa15e81e8 | 167 | py | Python | parser/team14/Instrucciones/Instruccion.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | parser/team14/Instrucciones/Instruccion.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | parser/team14/Instrucciones/Instruccion.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null |
from Nodo import Nodo
class Instruccion(Nodo):
'This is an abstract class'
def ejecutar(self):
'Metodo Abstracto para ejecutar la instruccion'
| 16.7 | 59 | 0.682635 | 21 | 167 | 5.428571 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257485 | 167 | 9 | 60 | 18.555556 | 0.919355 | 0.42515 | 0 | 0 | 0 | 0 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5239803f91365e2e3b18a24b50fc221a06391024 | 1,920 | py | Python | api/models/news.py | pokotsun/kyutechAppServer2018 | 9fe579c63e59ee585137e89d11c9cdccd58d3186 | [
"MIT"
] | 4 | 2018-08-09T15:19:06.000Z | 2021-04-03T12:24:57.000Z | api/models/news.py | pokotsun/kyutechAppServer2018 | 9fe579c63e59ee585137e89d11c9cdccd58d3186 | [
"MIT"
] | 2 | 2018-10-19T15:32:17.000Z | 2020-06-05T19:41:14.000Z | api/models/news.py | pokotsun/kyutechAppServer2018 | 9fe579c63e59ee585137e89d11c9cdccd58d3186 | [
"MIT"
] | null | null | null | from django.db import models
from ..const import YOKE_CODE, SCRAPE_NEWS_URL
from api.models.news_heading import NewsHeading
import re
# Create your models here.
# Newsモデル
class News(models.Model):
class Meta:
verbose_name_plural = 'News'
news_heading = models.ForeignKey(NewsHeading, on_delete=models.... | 40 | 227 | 0.714583 | 258 | 1,920 | 5.03876 | 0.356589 | 0.11 | 0.080769 | 0.073846 | 0.352308 | 0.26 | 0.210769 | 0.121538 | 0 | 0 | 0 | 0.014778 | 0.154167 | 1,920 | 47 | 228 | 40.851064 | 0.785714 | 0.090625 | 0 | 0 | 0 | 0.032258 | 0.115009 | 0.055779 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.129032 | 0.193548 | 0.83871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
524d0f7a940e0976401ad7566628297e7861e7be | 117 | py | Python | aiida_abinit/workflows/__init__.py | azadoks/aiida-abinit | 82c9f54e3d77152bd270dbfeb756f9cce4d327c7 | [
"MIT"
] | null | null | null | aiida_abinit/workflows/__init__.py | azadoks/aiida-abinit | 82c9f54e3d77152bd270dbfeb756f9cce4d327c7 | [
"MIT"
] | 5 | 2021-04-13T13:30:20.000Z | 2021-12-07T16:56:35.000Z | aiida_abinit/workflows/__init__.py | azadoks/aiida-abinit | 82c9f54e3d77152bd270dbfeb756f9cce4d327c7 | [
"MIT"
] | 2 | 2020-10-21T16:10:04.000Z | 2021-06-18T12:13:43.000Z | # -*- coding: utf-8 -*-
"""Workchains."""
from .base import AbinitBaseWorkChain
__all__ = ('AbinitBaseWorkChain',)
| 16.714286 | 37 | 0.675214 | 10 | 117 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.128205 | 117 | 6 | 38 | 19.5 | 0.72549 | 0.290598 | 0 | 0 | 0 | 0 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
525ed156e53a2f9694db409e21d217d9115ce33b | 2,716 | py | Python | app/models.py | JaredAhaza/Pitch- | 35b8dd871810287fb2f82dc942b2730040b0d626 | [
"MIT"
] | null | null | null | app/models.py | JaredAhaza/Pitch- | 35b8dd871810287fb2f82dc942b2730040b0d626 | [
"MIT"
] | null | null | null | app/models.py | JaredAhaza/Pitch- | 35b8dd871810287fb2f82dc942b2730040b0d626 | [
"MIT"
] | null | null | null | from . import db
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
class User(UserMixin, db.Model):
'''
defining subject
'''
__tablename__ = 'users'
id = db.Column(db.Integer, primar... | 26.368932 | 76 | 0.659794 | 344 | 2,716 | 5.031977 | 0.229651 | 0.078567 | 0.098209 | 0.083189 | 0.222992 | 0.190064 | 0.190064 | 0.190064 | 0.170999 | 0.170999 | 0 | 0.004298 | 0.229013 | 2,716 | 103 | 77 | 26.368932 | 0.82235 | 0.02025 | 0 | 0.219178 | 1 | 0 | 0.030963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164384 | false | 0.123288 | 0.068493 | 0.041096 | 0.657534 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5260bcecd7d1854cf028f3f86c4b9755903ca2f4 | 159 | py | Python | 003_Minecraft_introduction/2_midastouch.py | McrRaspJam/McrRaspJam | 29fb1f7ee54ad7b787b95be1b9795ecb29ba621e | [
"CC0-1.0"
] | null | null | null | 003_Minecraft_introduction/2_midastouch.py | McrRaspJam/McrRaspJam | 29fb1f7ee54ad7b787b95be1b9795ecb29ba621e | [
"CC0-1.0"
] | null | null | null | 003_Minecraft_introduction/2_midastouch.py | McrRaspJam/McrRaspJam | 29fb1f7ee54ad7b787b95be1b9795ecb29ba621e | [
"CC0-1.0"
] | 1 | 2017-03-07T16:06:32.000Z | 2017-03-07T16:06:32.000Z | #Load the picraft API
from picraft import World, Block, Vector
#Connect API to the world
world = World()
############ Write your program below #############
| 19.875 | 51 | 0.63522 | 21 | 159 | 4.809524 | 0.714286 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163522 | 159 | 7 | 52 | 22.714286 | 0.759399 | 0.433962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
526960b41e93f06fb133c66a1c50ee581d3a2140 | 169 | py | Python | app/throw-away-code/calc.py | aamjad/recipe-app-api | 0468601e14226389475c2c12c4074199481b17d9 | [
"MIT"
] | null | null | null | app/throw-away-code/calc.py | aamjad/recipe-app-api | 0468601e14226389475c2c12c4074199481b17d9 | [
"MIT"
] | null | null | null | app/throw-away-code/calc.py | aamjad/recipe-app-api | 0468601e14226389475c2c12c4074199481b17d9 | [
"MIT"
] | null | null | null | def add(x, y):
'''Add two given numbers together '''
return x+y
def subtract(x, y):
''' function to substrct x from y and return the remaining value'''
return y - x | 24.142857 | 68 | 0.668639 | 30 | 169 | 3.766667 | 0.6 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201183 | 169 | 7 | 69 | 24.142857 | 0.837037 | 0.544379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
527533d42c527d3446afb47a88badb8c9e60fa82 | 241 | py | Python | func/__init__.py | gajanlee/JumpMore | 93df00c669b9f7bffd5623b353fee39793859cca | [
"MIT"
] | null | null | null | func/__init__.py | gajanlee/JumpMore | 93df00c669b9f7bffd5623b353fee39793859cca | [
"MIT"
] | null | null | null | func/__init__.py | gajanlee/JumpMore | 93df00c669b9f7bffd5623b353fee39793859cca | [
"MIT"
] | null | null | null | from PIL import Image
from PIL import ImageDraw
import os
import sys
import functools
import math
import random
import time
from operator import add
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import numpy as np
| 18.538462 | 40 | 0.842324 | 38 | 241 | 5.342105 | 0.526316 | 0.068966 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149378 | 241 | 12 | 41 | 20.083333 | 0.990244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
527ecb11326d8a378bc1eeb19aaf54cbb9357550 | 248 | py | Python | app/utils/db_connection.py | Real-Music/airflow | 2f66c05ccbf1d851bd5182b3c2cfe6149b7bd925 | [
"MIT"
] | null | null | null | app/utils/db_connection.py | Real-Music/airflow | 2f66c05ccbf1d851bd5182b3c2cfe6149b7bd925 | [
"MIT"
] | null | null | null | app/utils/db_connection.py | Real-Music/airflow | 2f66c05ccbf1d851bd5182b3c2cfe6149b7bd925 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from config import config
engine = create_engine(config.SQLALCHEMY_DATABASE_URL)
SessionLocal: sessionmaker = sessionmaker(autoflush=True, autocommit=True, bind=engine)
| 31 | 87 | 0.850806 | 30 | 248 | 6.9 | 0.5 | 0.135266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092742 | 248 | 7 | 88 | 35.428571 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bfde1d2c82131c05c4ae5c4570ff940c57388645 | 549 | py | Python | cal.py | darkdebo/python_codes | 5644482b7a7cb4d775de0194bae84024e24bfcaf | [
"MIT"
] | null | null | null | cal.py | darkdebo/python_codes | 5644482b7a7cb4d775de0194bae84024e24bfcaf | [
"MIT"
] | 1 | 2019-09-03T10:15:36.000Z | 2019-09-03T10:15:36.000Z | cal.py | darkdebo/python_codes | 5644482b7a7cb4d775de0194bae84024e24bfcaf | [
"MIT"
] | null | null | null |
from functools import reduce
class simplecalculator:
def __init__(self, *args):
self.args=args
def add(self):
return sum(self.args)
def mul(self):
m=1
for i in self.args:
m*=i
return m
def div(self):
return reduce(lambda a,b:... | 21.115385 | 84 | 0.531876 | 75 | 549 | 3.84 | 0.4 | 0.166667 | 0.076389 | 0.152778 | 0.236111 | 0.236111 | 0.236111 | 0.236111 | 0.236111 | 0.236111 | 0 | 0.008174 | 0.331512 | 549 | 26 | 85 | 21.115385 | 0.776567 | 0 | 0 | 0 | 0 | 0 | 0.062977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.176471 | 0.647059 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bfdf32707e54eaaaf9fa6e40da7b6341b77d7726 | 623 | py | Python | tests/test_reader.py | f3anaro/pynghttp2 | c66a49cedb15124987ad76ad02dbd181bf09401c | [
"MIT"
] | 6 | 2019-01-23T09:36:18.000Z | 2021-02-02T11:47:59.000Z | tests/test_reader.py | f3anaro/pynghttp2 | c66a49cedb15124987ad76ad02dbd181bf09401c | [
"MIT"
] | 1 | 2019-03-17T17:38:11.000Z | 2020-02-10T08:11:31.000Z | tests/test_reader.py | f3anaro/pynghttp2 | c66a49cedb15124987ad76ad02dbd181bf09401c | [
"MIT"
] | 1 | 2019-01-23T20:43:44.000Z | 2019-01-23T20:43:44.000Z | from pynghttp2 import StreamReader
def test_streaming():
chunk = bytearray(1024)
reader = StreamReader()
reader.feed_data(chunk)
reader.feed_data(chunk)
assert len(reader.read_nowait(256)) == 256
assert len(reader.read_nowait(512)) == 512
assert len(reader.read_nowait(1024)) == 1024
... | 24.92 | 54 | 0.677368 | 85 | 623 | 4.8 | 0.305882 | 0.132353 | 0.220588 | 0.279412 | 0.490196 | 0.245098 | 0.245098 | 0.245098 | 0.245098 | 0.245098 | 0 | 0.091633 | 0.194222 | 623 | 25 | 55 | 24.92 | 0.721116 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfdf5adc54b46e2131c1c0317b04d0fd0a3cf697 | 1,442 | py | Python | transifex/api/jsonapi/utils.py | transifex/transifex-python | d467e82bba7f0d620a021cf9e7e58c987ba2fbb5 | [
"Apache-2.0"
] | 14 | 2020-04-10T20:54:59.000Z | 2022-03-07T16:13:22.000Z | transifex/api/jsonapi/utils.py | transifex/transifex-python | d467e82bba7f0d620a021cf9e7e58c987ba2fbb5 | [
"Apache-2.0"
] | 60 | 2020-04-14T12:41:06.000Z | 2022-03-29T06:38:09.000Z | transifex/api/jsonapi/utils.py | transifex/transifex-python | d467e82bba7f0d620a021cf9e7e58c987ba2fbb5 | [
"Apache-2.0"
] | 6 | 2021-01-01T10:28:11.000Z | 2021-06-10T09:50:26.000Z | from __future__ import absolute_import, unicode_literals
import six
from .compat import abc
def is_resource(value):
from .resources import Resource
return isinstance(value, Resource)
def is_collection(value):
from .collections import Collection
return isinstance(value, Collection)
def is_dict(va... | 21.522388 | 76 | 0.694175 | 199 | 1,442 | 4.844221 | 0.271357 | 0.051867 | 0.068465 | 0.070539 | 0.1639 | 0.103734 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208044 | 1,442 | 66 | 77 | 21.848485 | 0.844133 | 0.044383 | 0 | 0 | 0 | 0 | 0.023358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.324324 | false | 0 | 0.135135 | 0.216216 | 0.783784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bfedec43626501b48e278009dff40af6a392e7e6 | 499 | py | Python | app/Team.py | cabusto/nhlchampionshipbelt | 962bf44030d7bd9827ceb5791763f95c7bcfb74a | [
"MIT"
] | null | null | null | app/Team.py | cabusto/nhlchampionshipbelt | 962bf44030d7bd9827ceb5791763f95c7bcfb74a | [
"MIT"
] | 3 | 2021-11-08T08:23:29.000Z | 2022-03-31T08:29:52.000Z | app/Team.py | cabusto/nhlchampionshipbelt | 962bf44030d7bd9827ceb5791763f95c7bcfb74a | [
"MIT"
] | 1 | 2015-11-27T16:14:28.000Z | 2015-11-27T16:14:28.000Z | import Game
class Team:
id = ""
name = ""
alternativeNames = []
def __init__(self, id, name):
self.id = id
self.name = name
def getID(self):
return self.id;
def getName(self):
return self.name
def getAlternativeNames(self):
return self.alternativeNames
def isSame(self, team):
return self.getI... | 15.121212 | 39 | 0.669339 | 65 | 499 | 5.076923 | 0.323077 | 0.121212 | 0.127273 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198397 | 499 | 32 | 40 | 15.59375 | 0.825 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
870ebe0a4f24bcefd5baca7700893c3996575e4a | 1,919 | py | Python | codegen/staticcodegen/template/filetemplate.py | ncepu-iDealStudio/Flask_Sqlachemy_RESTfulAPI_Codegen | ed925a3318234061a5258fb15e68a27ddd64251b | [
"MIT"
] | 2 | 2021-11-07T07:55:41.000Z | 2022-03-14T03:38:21.000Z | codegen/staticcodegen/template/filetemplate.py | ncepu-iDealStudio/Flask_Sqlachemy_RESTfulAPI_Codegen | ed925a3318234061a5258fb15e68a27ddd64251b | [
"MIT"
] | null | null | null | codegen/staticcodegen/template/filetemplate.py | ncepu-iDealStudio/Flask_Sqlachemy_RESTfulAPI_Codegen | ed925a3318234061a5258fb15e68a27ddd64251b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# file:filetemplate.py
# author:Nathan
# datetime:2021/8/27 13:19
# software: PyCharm
"""
this is function description
"""
class FileTemplate(object):
app_setting = """#!/usr/bin/env python
# -*- coding:utf-8 -*-
\"\"\"
应用的配置加载项
\"\"\"
im... | 28.641791 | 118 | 0.627931 | 205 | 1,919 | 5.717073 | 0.453659 | 0.107509 | 0.025597 | 0.025597 | 0.098976 | 0.042662 | 0.042662 | 0 | 0 | 0 | 0 | 0.010526 | 0.207921 | 1,919 | 66 | 119 | 29.075758 | 0.760526 | 0.077124 | 0 | 0.051282 | 0 | 0.051282 | 0.962085 | 0.491114 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051282 | 0.051282 | 0 | 0.102564 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
871ca6fce05fb9ba2031ca9712385ad7e15724e9 | 81 | py | Python | graalpython/com.oracle.graal.python.test/testData/testFiles/FuncDefTests/functionDef12.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2019-05-28T13:04:32.000Z | 2019-05-28T13:04:32.000Z | graalpython/com.oracle.graal.python.test/testData/testFiles/FuncDefTests/functionDef12.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | graalpython/com.oracle.graal.python.test/testData/testFiles/FuncDefTests/functionDef12.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | def outer ():
def inner():
print(x )
x = 12
inner()
outer() | 10.125 | 17 | 0.432099 | 10 | 81 | 3.5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.407407 | 81 | 8 | 18 | 10.125 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87203eb55cee4ecd72efc1964cbaf2f3ad24f67a | 1,670 | py | Python | test_series.py | glasscharlie/math-series | 154dd0efbaabcbd13b78031452e5a12a40ff86e1 | [
"MIT"
] | null | null | null | test_series.py | glasscharlie/math-series | 154dd0efbaabcbd13b78031452e5a12a40ff86e1 | [
"MIT"
] | 1 | 2019-12-04T00:59:35.000Z | 2019-12-04T00:59:35.000Z | test_series.py | glasscharlie/math-series | 154dd0efbaabcbd13b78031452e5a12a40ff86e1 | [
"MIT"
] | null | null | null | from series import fibonacci, lucas, sum_series
# fibonacci tests
def test_one():
expected = 0
actual = fibonacci(1)
assert actual == expected
def test_two():
expected = 1
actual = fibonacci(2)
assert actual == expected
def test_three():
expected = 1
actual = fibonacci(3)
assert a... | 17.956989 | 47 | 0.628743 | 211 | 1,670 | 4.867299 | 0.180095 | 0.115871 | 0.331061 | 0.313535 | 0.410906 | 0.410906 | 0.081792 | 0 | 0 | 0 | 0 | 0.034596 | 0.273054 | 1,670 | 92 | 48 | 18.152174 | 0.811367 | 0.021557 | 0 | 0.463768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246377 | 1 | 0.246377 | false | 0 | 0.014493 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
873a7270d74d4ab0dd389899bb462f2367179911 | 415 | py | Python | urwim/header.py | Mrokkk/urwim | 85e125ff167a0b02d5167e7a03f104f1df5c2719 | [
"MIT"
] | 4 | 2019-04-07T06:17:09.000Z | 2020-09-23T11:41:25.000Z | urwim/header.py | Mrokkk/urwim | 85e125ff167a0b02d5167e7a03f104f1df5c2719 | [
"MIT"
] | 1 | 2019-12-30T14:20:30.000Z | 2019-12-30T14:20:30.000Z | urwim/header.py | Mrokkk/urwim | 85e125ff167a0b02d5167e7a03f104f1df5c2719 | [
"MIT"
] | 1 | 2020-03-30T12:21:07.000Z | 2020-03-30T12:21:07.000Z | #!/usr/bin/env python3
import urwid
class Header(urwid.WidgetWrap):
signals = []
def __init__(self, name):
self._name = name
super().__init__(urwid.AttrWrap(urwid.Text(self._name), 'head'))
@property
def text(self):
return self._name
@text.setter
def text(self, text... | 18.863636 | 72 | 0.609639 | 52 | 415 | 4.596154 | 0.423077 | 0.200837 | 0.150628 | 0.1841 | 0.284519 | 0.284519 | 0.284519 | 0 | 0 | 0 | 0 | 0.003215 | 0.250602 | 415 | 21 | 73 | 19.761905 | 0.765273 | 0.050602 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87470216a0a38831b9316ad81dd90045eed7fc96 | 6,930 | py | Python | back/popo/models.py | ptrwn/popoeshnick | 6712457c7167515c9f868bfa424d885a634a76e1 | [
"MIT"
] | null | null | null | back/popo/models.py | ptrwn/popoeshnick | 6712457c7167515c9f868bfa424d885a634a76e1 | [
"MIT"
] | 8 | 2019-03-14T15:48:49.000Z | 2020-08-30T16:30:52.000Z | back/popo/models.py | ptrwn/popoeshnick | 6712457c7167515c9f868bfa424d885a634a76e1 | [
"MIT"
] | 1 | 2020-07-04T06:33:29.000Z | 2020-07-04T06:33:29.000Z | from popo import db
from datetime import datetime
from werkzeug.security import generate_password_hash,check_password_hash
users_to_parties = db.Table('users_to_parties',
db.Column('user_id', db.Integer, db.ForeignKey('users.id'), nullable=False),
db.Column('party_id', db.Integer, db.ForeignKey('parties.id')... | 31.788991 | 114 | 0.615584 | 960 | 6,930 | 4.265625 | 0.172917 | 0.046886 | 0.04884 | 0.035165 | 0.408059 | 0.295482 | 0.234432 | 0.175092 | 0.114774 | 0.07326 | 0 | 0.010981 | 0.250938 | 6,930 | 217 | 115 | 31.935484 | 0.777885 | 0.095238 | 0 | 0.241379 | 1 | 0 | 0.202291 | 0 | 0 | 0 | 0 | 0.013825 | 0 | 1 | 0.144828 | false | 0.075862 | 0.02069 | 0.062069 | 0.496552 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
874bfa19bfbdc9662914a7fce229d40e308f6382 | 2,789 | py | Python | tests/test_msttr.py | notricenotsweet/GEM-metrics | 10d689891558862593cdf3ad56656bbbb6249cb8 | [
"MIT"
] | 1 | 2021-04-18T22:09:34.000Z | 2021-04-18T22:09:34.000Z | tests/test_msttr.py | maybay21/GEM-metrics | 2693f3439547a40897bc30c2ab70e27e992883c0 | [
"MIT"
] | null | null | null | tests/test_msttr.py | maybay21/GEM-metrics | 2693f3439547a40897bc30c2ab70e27e992883c0 | [
"MIT"
] | 1 | 2021-07-11T18:18:35.000Z | 2021-07-11T18:18:35.000Z | import unittest
import math
from gem_metrics.msttr import MSTTR
from gem_metrics.texts import Predictions
from tests.test_referenceless import TestReferenceLessMetric
from tests.inputs import TestData
from tests.utils import assertDeepAlmostEqual
# TODO: add multilingual tests
class TestMSTTR(TestReferenceLessMetric... | 35.303797 | 117 | 0.634995 | 321 | 2,789 | 5.364486 | 0.286604 | 0.168409 | 0.243902 | 0.313589 | 0.523229 | 0.491289 | 0.45993 | 0.384437 | 0.303136 | 0.26597 | 0 | 0.02381 | 0.27716 | 2,789 | 78 | 118 | 35.75641 | 0.830357 | 0.150592 | 0 | 0.27451 | 0 | 0 | 0.177615 | 0 | 0 | 0 | 0 | 0.012821 | 0.117647 | 1 | 0.098039 | false | 0 | 0.137255 | 0 | 0.254902 | 0.019608 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
874bfae6de7762294eefd687a0d3e1ed8824dda1 | 178 | py | Python | setup.py | theresearchai/rail_transport_rescheduling_rl | 0cd56d75bc73e1dd3b8e32170ddd9e56b37d609d | [
"MIT"
] | 1 | 2021-02-21T02:54:35.000Z | 2021-02-21T02:54:35.000Z | setup.py | theresearchai/rail_transport_rescheduling_rl | 0cd56d75bc73e1dd3b8e32170ddd9e56b37d609d | [
"MIT"
] | null | null | null | setup.py | theresearchai/rail_transport_rescheduling_rl | 0cd56d75bc73e1dd3b8e32170ddd9e56b37d609d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='rail_transport_rescheduling_rl',
version='0.0.1',
install_requires=['gym==0.14.0'] # And any other dependencies foo needs
) | 29.666667 | 78 | 0.719101 | 26 | 178 | 4.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046667 | 0.157303 | 178 | 6 | 79 | 29.666667 | 0.78 | 0.202247 | 0 | 0 | 0 | 0 | 0.326241 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
875ef8ea130b79fa836445a72254d0fc3dd73056 | 222 | py | Python | catnapping.py | pridator-coder/Project0 | 6d4311fc2564f5aed8d77d849f8fc6206d8a8168 | [
"MIT"
] | null | null | null | catnapping.py | pridator-coder/Project0 | 6d4311fc2564f5aed8d77d849f8fc6206d8a8168 | [
"MIT"
] | null | null | null | catnapping.py | pridator-coder/Project0 | 6d4311fc2564f5aed8d77d849f8fc6206d8a8168 | [
"MIT"
] | null | null | null | print('''Dear Alice,
Eve's cat has been arrested for catnapping, cat burglary, and extortion.
Sincerely,
Bob''')
def spam():
"""This is a multiline comment to help
explain what the spam() function does."""
print('Hello!') | 24.666667 | 72 | 0.720721 | 34 | 222 | 4.705882 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13964 | 222 | 9 | 73 | 24.666667 | 0.837696 | 0 | 0 | 0 | 0 | 0 | 0.734266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
876e697fcfe93a726f0b1a825a3f2836160458a8 | 140 | py | Python | src/music/music_actions.py | janbrrr/dndj | b0557481f301adf82cae74e5c619fff016402a36 | [
"MIT"
] | 8 | 2020-01-15T20:50:14.000Z | 2021-08-09T15:36:56.000Z | src/music/music_actions.py | janbrrr/dndj-discord | 078ce5a0367134117f6184b2612648e9a25bcf9f | [
"MIT"
] | null | null | null | src/music/music_actions.py | janbrrr/dndj-discord | 078ce5a0367134117f6184b2612648e9a25bcf9f | [
"MIT"
] | 2 | 2020-01-15T20:50:18.000Z | 2021-12-18T13:09:46.000Z | from enum import Enum
class MusicActions(Enum):
START = 1
STOP = 2
FINISH = 3
MASTER_VOLUME = 4
TRACK_LIST_VOLUME = 5
| 14 | 25 | 0.635714 | 20 | 140 | 4.3 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.307143 | 140 | 9 | 26 | 15.555556 | 0.835052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8779ce9749dbd517cfdd518d45926bed1f49b787 | 1,536 | py | Python | metax/__main__.py | yesimon/metax_bakeoff_2019 | e90da33a9d9407c6a804fee8d58333212148806c | [
"MIT"
] | 16 | 2019-08-08T16:00:15.000Z | 2021-01-22T00:13:05.000Z | metax/__main__.py | yesimon/metax_bakeoff_2019 | e90da33a9d9407c6a804fee8d58333212148806c | [
"MIT"
] | 4 | 2019-09-23T11:23:01.000Z | 2021-01-20T23:20:50.000Z | metax/__main__.py | yesimon/metax_bakeoff_2019 | e90da33a9d9407c6a804fee8d58333212148806c | [
"MIT"
] | 2 | 2019-10-24T14:50:59.000Z | 2019-12-31T02:57:56.000Z | #!/usr/bin/env python3
import argparse
import os
import csv
import collections
import re
import sys
import metax.blast_report
import metax.reporter
import metax.prophyle
import metax.metaothello
import metax.merge_jellyfish
import metax.mmseqs
import metax.taxid_report
import metax.readclass
import metax.db.prepare_ka... | 28.444444 | 79 | 0.791667 | 203 | 1,536 | 5.73399 | 0.280788 | 0.132302 | 0.24055 | 0.27921 | 0.339347 | 0.085052 | 0 | 0 | 0 | 0 | 0 | 0.000745 | 0.126302 | 1,536 | 53 | 80 | 28.981132 | 0.866617 | 0.013672 | 0 | 0 | 0 | 0 | 0.038309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.444444 | 0 | 0.466667 | 0.022222 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5e46e2e1a8782daba7ade8d2cfdbf56b4ca0a3c9 | 88 | py | Python | Goldeneye/ImageProcessor/SignalType.py | crzdg/TrainControlSystem | b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962 | [
"MIT"
] | 2 | 2020-08-13T09:16:25.000Z | 2020-08-13T16:41:46.000Z | Goldeneye/ImageProcessor/SignalType.py | crzdg/TrainControlSystem | b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962 | [
"MIT"
] | null | null | null | Goldeneye/ImageProcessor/SignalType.py | crzdg/TrainControlSystem | b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962 | [
"MIT"
] | null | null | null | from enum import Enum
class SignalType(Enum):
INFO = 0
STOP = 1
ROUND = 2
| 11 | 23 | 0.602273 | 13 | 88 | 4.076923 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.329545 | 88 | 7 | 24 | 12.571429 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5e52fd74ef390f4de521936600c34f45d9781a72 | 310 | py | Python | django_myob_odbc/creation.py | wilbuick/django-myob-odbc | 30b693d41f2f4084dc49ad73d2736ef747cb21cf | [
"BSD-4-Clause"
] | null | null | null | django_myob_odbc/creation.py | wilbuick/django-myob-odbc | 30b693d41f2f4084dc49ad73d2736ef747cb21cf | [
"BSD-4-Clause"
] | null | null | null | django_myob_odbc/creation.py | wilbuick/django-myob-odbc | 30b693d41f2f4084dc49ad73d2736ef747cb21cf | [
"BSD-4-Clause"
] | null | null | null | from django.db.backends.creation import BaseDatabaseCreation
from django.db.utils import DatabaseError
class DatabaseCreation(BaseDatabaseCreation):
"""
Prevent this driver from creating databases.
"""
def sql_create_model(self):
raise DatabaseError('Cannot create database for MYOB')
| 31 | 62 | 0.764516 | 34 | 310 | 6.911765 | 0.764706 | 0.085106 | 0.102128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164516 | 310 | 9 | 63 | 34.444444 | 0.907336 | 0.141935 | 0 | 0 | 0 | 0 | 0.124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5e65605cc29fda0082f941a0fd4eccf286c629e8 | 357 | py | Python | pymusement/parks/sixflags/SixFlagsDiscoveryKingdom.py | CNCTD/pymusement | 664fd31edad107c339816bb8909311e823261160 | [
"MIT"
] | null | null | null | pymusement/parks/sixflags/SixFlagsDiscoveryKingdom.py | CNCTD/pymusement | 664fd31edad107c339816bb8909311e823261160 | [
"MIT"
] | null | null | null | pymusement/parks/sixflags/SixFlagsDiscoveryKingdom.py | CNCTD/pymusement | 664fd31edad107c339816bb8909311e823261160 | [
"MIT"
] | 1 | 2021-06-02T19:56:12.000Z | 2021-06-02T19:56:12.000Z | from pymusement.parks.sixflags.SixFlagsPark import SixFlagsPark
class SixFlagsDiscoveryKingdom(SixFlagsPark):
def __init__(self):
super(SixFlagsDiscoveryKingdom, self).__init__()
def getId(self):
return 17
def getCity(self):
return 'Vallejo'
def getName(self):
retur... | 25.5 | 63 | 0.686275 | 35 | 357 | 6.771429 | 0.628571 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007326 | 0.235294 | 357 | 14 | 64 | 25.5 | 0.860806 | 0 | 0 | 0 | 0 | 0 | 0.094972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0.3 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5e78869f3d8176dcd5c001cd81d99e0c558827df | 66 | py | Python | magic_specs/__init__.py | MrThearMan/magic-specs | 01741c1fb2e23774b8f637db3d8d74a078238164 | [
"MIT"
] | null | null | null | magic_specs/__init__.py | MrThearMan/magic-specs | 01741c1fb2e23774b8f637db3d8d74a078238164 | [
"MIT"
] | null | null | null | magic_specs/__init__.py | MrThearMan/magic-specs | 01741c1fb2e23774b8f637db3d8d74a078238164 | [
"MIT"
] | null | null | null | from .definition import Definition
__all__ = ["Definition"]
| 13.2 | 35 | 0.712121 | 6 | 66 | 7.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 66 | 4 | 36 | 16.5 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5e813bc67f9c0e4c4eefe01677ebdf357d6f4859 | 260 | py | Python | lens/asgi.py | epm0dev/Lens-dev | 2f34718020ed15ee9a181181e02f62eb3fbadc3b | [
"MIT"
] | null | null | null | lens/asgi.py | epm0dev/Lens-dev | 2f34718020ed15ee9a181181e02f62eb3fbadc3b | [
"MIT"
] | null | null | null | lens/asgi.py | epm0dev/Lens-dev | 2f34718020ed15ee9a181181e02f62eb3fbadc3b | [
"MIT"
] | null | null | null | import os
from django.core.asgi import get_asgi_application
# Set the default settings module for the django asgi application.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lens.settings')
# Get the asgi application.
application = get_asgi_application()
| 26 | 66 | 0.811538 | 36 | 260 | 5.694444 | 0.472222 | 0.292683 | 0.17561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 260 | 9 | 67 | 28.888889 | 0.891304 | 0.346154 | 0 | 0 | 0 | 0 | 0.209581 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5e98aef8959c1277dbfedc6ce2929dc38ac65a88 | 1,192 | py | Python | ___Language___/Python/Arguments - Passing Values/args and kwargs _ Positional and Keyword Arguments.py | JUD210/Study-Note | 2add9db3f11d99370f49878f0c19e9caa60d2d02 | [
"MIT"
] | null | null | null | ___Language___/Python/Arguments - Passing Values/args and kwargs _ Positional and Keyword Arguments.py | JUD210/Study-Note | 2add9db3f11d99370f49878f0c19e9caa60d2d02 | [
"MIT"
] | null | null | null | ___Language___/Python/Arguments - Passing Values/args and kwargs _ Positional and Keyword Arguments.py | JUD210/Study-Note | 2add9db3f11d99370f49878f0c19e9caa60d2d02 | [
"MIT"
] | null | null | null | # https://www.codementor.io/moyosore/a-dive-into-python-closures-and-decorators-part-1-9mpr98pgr
def add_all_arguments(*args):
result = 0
for i in args:
result += i
return result
print(add_all_arguments(1, 5, 7, 9, 10)) # 32
print(add_all_arguments(1, 9)) # 10
print(add_all_arguments(1, 2, 3, ... | 20.912281 | 166 | 0.683725 | 180 | 1,192 | 4.361111 | 0.394444 | 0.04586 | 0.11465 | 0.127389 | 0.298089 | 0.191083 | 0.132484 | 0.132484 | 0 | 0 | 0 | 0.037298 | 0.167785 | 1,192 | 56 | 167 | 21.285714 | 0.754032 | 0.172819 | 0 | 0.12 | 0 | 0 | 0.065163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.12 | 0 | 0 | 0.28 | 0.52 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
5ea048128e1bf9025ad68ff4980601aa32baf12d | 1,810 | py | Python | Variado_GeekUniversity/guppe/geek/classes.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | Variado_GeekUniversity/guppe/geek/classes.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | Variado_GeekUniversity/guppe/geek/classes.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | """
POO - Classes
Em POO, Classes nada mais são do que modelos dos objetos do mundo real sendo representados
computacionalmente.
Imagine que você queira fazer um sistema para automatizar o controle das lâmpadas da sua casa.
Classes podem conter:
- Atributos -> Representam as características do objeto. Ou seja, ... | 26.617647 | 105 | 0.762431 | 266 | 1,810 | 5.18797 | 0.586466 | 0.026087 | 0.014493 | 0.02029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.19558 | 1,810 | 67 | 106 | 27.014925 | 0.942308 | 0.890055 | 0 | 0.384615 | 0 | 0 | 0.010526 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 1 | 0 | false | 0.384615 | 0 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5ea35b2389a5573837f27c15dba03b38ae79aade | 382 | py | Python | app/main/service/Despesa_service.py | amandapersampa/Franguinho | 940b6601a821ab4857de7f0a5a0ac53f6f54a564 | [
"MIT"
] | null | null | null | app/main/service/Despesa_service.py | amandapersampa/Franguinho | 940b6601a821ab4857de7f0a5a0ac53f6f54a564 | [
"MIT"
] | 8 | 2017-03-14T11:55:07.000Z | 2017-04-03T00:53:32.000Z | app/main/service/Despesa_service.py | amandapersampa/MicroGerencia | 940b6601a821ab4857de7f0a5a0ac53f6f54a564 | [
"MIT"
] | null | null | null | # coding=utf-8
from app.main.models.Despesa import Despesa_dao
from app import Produto_dao
class Despesa_service(object):
def salvar(self, despesa):
despesa.salvar()
return {'mensagem': 'Compra cadastrado com sucesso'}
def listar(self, id):
return Despesa_dao.listar(id)
@staticme... | 21.222222 | 60 | 0.680628 | 48 | 382 | 5.3125 | 0.5625 | 0.117647 | 0.12549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003367 | 0.222513 | 382 | 17 | 61 | 22.470588 | 0.855219 | 0.031414 | 0 | 0 | 0 | 0 | 0.100817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5ea3da8fa306306b9299a853dce67382b3d07188 | 140 | py | Python | backend/app/schema.py | nlopez99/ProjectIdeaManager | 3c2420ca2243b01891b3f401d64d521647238932 | [
"MIT"
] | null | null | null | backend/app/schema.py | nlopez99/ProjectIdeaManager | 3c2420ca2243b01891b3f401d64d521647238932 | [
"MIT"
] | null | null | null | backend/app/schema.py | nlopez99/ProjectIdeaManager | 3c2420ca2243b01891b3f401d64d521647238932 | [
"MIT"
] | null | null | null | import graphene
from app.queries import Query
from app.mutations import Mutation
schema = graphene.Schema(query=Query, mutation=Mutation)
| 20 | 56 | 0.821429 | 19 | 140 | 6.052632 | 0.473684 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 140 | 6 | 57 | 23.333333 | 0.927419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5eb5e5ccbc679dadd27944885cd70d7ac917f56d | 1,180 | py | Python | src/columns/stringcolumn.py | lidalei/clickhouse-driver | 261a0340c1dd2f3bf6bcefdf97f76fa5210db4fb | [
"MIT"
] | null | null | null | src/columns/stringcolumn.py | lidalei/clickhouse-driver | 261a0340c1dd2f3bf6bcefdf97f76fa5210db4fb | [
"MIT"
] | null | null | null | src/columns/stringcolumn.py | lidalei/clickhouse-driver | 261a0340c1dd2f3bf6bcefdf97f76fa5210db4fb | [
"MIT"
] | 1 | 2019-11-26T03:04:54.000Z | 2019-11-26T03:04:54.000Z |
from .. import errors
from ..reader import read_binary_str, read_binary_str_fixed_len
from ..writer import write_binary_str, write_binary_str_fixed_len
from ..util import compat
from .base import CustomItemColumn
class String(CustomItemColumn):
ch_type = 'String'
py_types = compat.string_types
# TODO: p... | 24.583333 | 65 | 0.64661 | 150 | 1,180 | 4.82 | 0.333333 | 0.099585 | 0.071923 | 0.094053 | 0.185339 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004556 | 0.255932 | 1,180 | 47 | 66 | 25.106383 | 0.818907 | 0.024576 | 0 | 0.121212 | 0 | 0 | 0.021777 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.212121 | false | 0 | 0.151515 | 0.030303 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5ecbf5e1010f871ff73bea538e8beb14b30776e8 | 265 | py | Python | apps/menu/serializers.py | ykyk1229/TurtleDove | 074ed03396d603a920bc382ee916fc0f3adab6ea | [
"MIT"
] | 1 | 2019-09-02T01:17:34.000Z | 2019-09-02T01:17:34.000Z | apps/menu/serializers.py | ykyk1229/TurtleDove | 074ed03396d603a920bc382ee916fc0f3adab6ea | [
"MIT"
] | null | null | null | apps/menu/serializers.py | ykyk1229/TurtleDove | 074ed03396d603a920bc382ee916fc0f3adab6ea | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Menu
class MenuSerializer(serializers.ModelSerializer):
"""
前端视图菜单序列化类
"""
class Meta:
model = Menu
fields = ("id", "path", "icon", "title", "show", "parent")
| 20.384615 | 67 | 0.6 | 25 | 265 | 6.32 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275472 | 265 | 12 | 68 | 22.083333 | 0.822917 | 0.037736 | 0 | 0 | 0 | 0 | 0.110132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0d7dc5ff69b0dc87dda2b7a73709106192da4a88 | 111 | py | Python | src/mattermostdriver/version.py | unode/python-mattermost-driver | 10a10a56de3b65150770c085f0bfb7b7040d327b | [
"MIT"
] | null | null | null | src/mattermostdriver/version.py | unode/python-mattermost-driver | 10a10a56de3b65150770c085f0bfb7b7040d327b | [
"MIT"
] | null | null | null | src/mattermostdriver/version.py | unode/python-mattermost-driver | 10a10a56de3b65150770c085f0bfb7b7040d327b | [
"MIT"
] | 2 | 2021-03-23T21:21:55.000Z | 2021-03-25T16:31:02.000Z | # pylint: disable=invalid-name
full_version = '7.3.0'
short_version = '.'.join(full_version.split('.', 2)[:2])
| 27.75 | 56 | 0.675676 | 17 | 111 | 4.235294 | 0.764706 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049505 | 0.09009 | 111 | 3 | 57 | 37 | 0.663366 | 0.252252 | 0 | 0 | 0 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d7f174d9db6844557f82609560fc145031f9a18 | 321 | py | Python | pycdo/model/__init__.py | aaronhackney/pycdo | 0c0b938b74dbc0ab45a1ed7926c2d5e2f8651e7a | [
"MIT"
] | null | null | null | pycdo/model/__init__.py | aaronhackney/pycdo | 0c0b938b74dbc0ab45a1ed7926c2d5e2f8651e7a | [
"MIT"
] | 1 | 2022-03-17T22:38:44.000Z | 2022-03-17T22:38:44.000Z | pycdo/model/__init__.py | aaronhackney/pycdo | 0c0b938b74dbc0ab45a1ed7926c2d5e2f8651e7a | [
"MIT"
] | null | null | null | # we do not want to import model classes here because that would create a circular reference
# do not import all models into this module because that uses a lot of memory and stack frames
# if you need the ability to import all models from one package, import them with
# from {{packageName}.models import ModelA, ModelB... | 64.2 | 94 | 0.788162 | 55 | 321 | 4.6 | 0.745455 | 0.039526 | 0.118577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180685 | 321 | 4 | 95 | 80.25 | 0.961977 | 0.971963 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d81d61955cc8fc02fa000eda5e929c6e1ef043e | 211 | py | Python | src/toml_parser.py | oonat/inverse-distance-weighted-trust-based-recommender | 3f559f3e7dbc565da373f6297362ddf307b2d0ec | [
"BSD-3-Clause"
] | null | null | null | src/toml_parser.py | oonat/inverse-distance-weighted-trust-based-recommender | 3f559f3e7dbc565da373f6297362ddf307b2d0ec | [
"BSD-3-Clause"
] | null | null | null | src/toml_parser.py | oonat/inverse-distance-weighted-trust-based-recommender | 3f559f3e7dbc565da373f6297362ddf307b2d0ec | [
"BSD-3-Clause"
] | null | null | null | import os
import toml
class Parser():
def __init__(self, config_file):
self._file = os.path.join(os.path.split(__file__)[0], config_file)
def load(self):
return toml.load(self._file) | 17.583333 | 74 | 0.658768 | 31 | 211 | 4.096774 | 0.516129 | 0.15748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.21327 | 211 | 12 | 75 | 17.583333 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0d87324782e5a52bf3e5d7bacc3c4b43500545a3 | 162 | py | Python | AI-Practice-Tensorflow-Notes-master/tf/tf3_2.py | foochane/Tensorflow-Learning | 54d210a1286051e9d60c98a62bd63eb070bc0a11 | [
"Apache-2.0"
] | 2 | 2019-01-23T14:23:17.000Z | 2019-01-23T14:23:49.000Z | AI-Practice-Tensorflow-Notes-master/tf/tf3_2.py | foochane/Tensorflow-Learning | 54d210a1286051e9d60c98a62bd63eb070bc0a11 | [
"Apache-2.0"
] | null | null | null | AI-Practice-Tensorflow-Notes-master/tf/tf3_2.py | foochane/Tensorflow-Learning | 54d210a1286051e9d60c98a62bd63eb070bc0a11 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
x = tf.constant([[1.0, 2.0]])
w = tf.constant([[3.0], [4.0]])
y=tf.matmul(x,w)
print y
with tf.Session() as sess:
print sess.run(y)
| 16.2 | 31 | 0.611111 | 34 | 162 | 2.911765 | 0.558824 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059259 | 0.166667 | 162 | 9 | 32 | 18 | 0.674074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.285714 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d8c3b5f0a9a0e10bed4886e9d3b233e68f93f91 | 430 | py | Python | automutualinformation/modelfitting/decay_functions.py | timsainb/automi | 430566fe7bdaaf7eb4f0efe6c2b28d32bfe4de2f | [
"MIT"
] | 3 | 2022-03-21T00:45:14.000Z | 2022-03-30T18:58:59.000Z | automutualinformation/modelfitting/decay_functions.py | timsainb/automi | 430566fe7bdaaf7eb4f0efe6c2b28d32bfe4de2f | [
"MIT"
] | null | null | null | automutualinformation/modelfitting/decay_functions.py | timsainb/automi | 430566fe7bdaaf7eb4f0efe6c2b28d32bfe4de2f | [
"MIT"
] | 1 | 2022-03-21T00:45:18.000Z | 2022-03-21T00:45:18.000Z | import numpy as np
# decay types
def powerlaw_decay(p, x):
return p["p_init"] * x ** (p["p_decay_const"]) + p["intercept"]
def exponential_decay(p, x):
return p["e_init"] * np.exp(-x * p["e_decay_const"]) + p["intercept"]
def pow_exp_decay(p, x):
powerlaw = p["p_init"] * x ** (p["p_decay_const"])
e... | 26.875 | 73 | 0.623256 | 71 | 430 | 3.549296 | 0.253521 | 0.031746 | 0.083333 | 0.103175 | 0.547619 | 0.34127 | 0.34127 | 0.34127 | 0.190476 | 0.190476 | 0 | 0 | 0.17907 | 430 | 15 | 74 | 28.666667 | 0.713881 | 0.025581 | 0 | 0 | 0 | 0 | 0.247002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0d924329b1fec2c17766d3e1ce70203f93aa2c26 | 292 | py | Python | nucleo/admin.py | karlosthadeu/rope | cb6eda9940ba43e314c1906ff109739384bed6b1 | [
"MIT"
] | 4 | 2019-07-31T19:11:09.000Z | 2019-12-02T13:56:23.000Z | nucleo/admin.py | karlosthadeu/rope | cb6eda9940ba43e314c1906ff109739384bed6b1 | [
"MIT"
] | 8 | 2021-03-19T03:12:59.000Z | 2022-03-12T00:05:38.000Z | nucleo/admin.py | karlosthadeu/rope | cb6eda9940ba43e314c1906ff109739384bed6b1 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Materia, PlanoDeEstudo, Publicacao, Historico, Chamado
# Registre seus models aqui
admin.site.register(Materia)
admin.site.register(Publicacao)
admin.site.register(PlanoDeEstudo)
admin.site.register(Historico)
admin.site.register(Chamado) | 32.444444 | 74 | 0.832192 | 37 | 292 | 6.567568 | 0.432432 | 0.185185 | 0.349794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075342 | 292 | 9 | 75 | 32.444444 | 0.9 | 0.085616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d9369c4ad7dd53e9f675d5064a3126ab36fb4f0 | 233 | py | Python | test.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | test.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | test.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | for number in range(1, 101):
if number % 3 == 0 and number % 5 == 0:
print(f"{number} FizzBuzz")
elif number % 3 == 0:
print(f"{number} Fizz")
elif number % 5 == 0:
print(f"{number} Buzz")
else:
print(number)
| 23.3 | 41 | 0.566524 | 37 | 233 | 3.567568 | 0.486486 | 0.136364 | 0.159091 | 0.295455 | 0.30303 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.261803 | 233 | 9 | 42 | 25.888889 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0.184549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0d9b8c8992551a72600dbf0bfc61f0456a5c073a | 8,467 | py | Python | realkd/legacy.py | realKD/realkd.py | 475d46fcfe6b4b5b7ca45b7701105b2072d633f0 | [
"MIT"
] | 2 | 2021-01-25T02:31:02.000Z | 2021-09-16T10:43:43.000Z | realkd/legacy.py | realKD/realkd.py | 475d46fcfe6b4b5b7ca45b7701105b2072d633f0 | [
"MIT"
] | null | null | null | realkd/legacy.py | realKD/realkd.py | 475d46fcfe6b4b5b7ca45b7701105b2072d633f0 | [
"MIT"
] | 3 | 2021-05-23T19:35:35.000Z | 2021-09-16T10:43:54.000Z | """
Contains early implementation of search objective functions
and bounds mainly for speed comparison and old tests.
"""
import pandas as pd
from math import inf
from realkd.logic import Conjunction, Constraint, KeyValueProposition
from realkd.search import Context
def cov_squared_dev(labels):
n = len(labels)... | 28.036424 | 115 | 0.578245 | 1,231 | 8,467 | 3.872461 | 0.192526 | 0.010489 | 0.010069 | 0.008391 | 0.328718 | 0.257395 | 0.215439 | 0.185861 | 0.16866 | 0.156073 | 0 | 0.045455 | 0.280265 | 8,467 | 301 | 116 | 28.129568 | 0.73679 | 0.432148 | 0 | 0.412698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.031746 | 0.103175 | 0.531746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0dadda43760b7704c23afcb1e5d5814f872c5757 | 1,483 | py | Python | src/metrics.py | rpatrik96/pytorch-lightning-wavenet | de1bd77ab459c7f06964b6bafe05b18c92d32699 | [
"MIT"
] | 13 | 2020-04-23T19:20:51.000Z | 2022-03-03T01:01:22.000Z | src/metrics.py | rpatrik96/pytorch-lightning-wavenet | de1bd77ab459c7f06964b6bafe05b18c92d32699 | [
"MIT"
] | 1 | 2020-07-03T02:03:31.000Z | 2020-07-03T07:24:37.000Z | src/metrics.py | rpatrik96/pytorch-lightning-wavenet | de1bd77ab459c7f06964b6bafe05b18c92d32699 | [
"MIT"
] | 3 | 2020-05-01T15:19:10.000Z | 2021-12-08T16:34:19.000Z | from pdb import set_trace
import torch
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score
class MetricsCalculator(object):
def __init__(self, metrics) -> None:
super().__init__()
self.metrics = metrics
def _format_tensor(self, tensor):
return tensor.c... | 40.081081 | 115 | 0.689144 | 199 | 1,483 | 4.874372 | 0.251256 | 0.11134 | 0.131959 | 0.074227 | 0.351546 | 0.351546 | 0.231959 | 0.231959 | 0.231959 | 0.185567 | 0 | 0.003273 | 0.175995 | 1,483 | 36 | 116 | 41.194444 | 0.790507 | 0 | 0 | 0 | 0 | 0 | 0.049899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.36 | false | 0 | 0.12 | 0.28 | 0.84 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0dbeb183325153e84e19795e3856c5491ff0f7ef | 346 | py | Python | bindings/python/easyre.py | feiss/meta | 646035e1dcdeeaa4ed841fef9cd3a19da189e0e5 | [
"MIT"
] | null | null | null | bindings/python/easyre.py | feiss/meta | 646035e1dcdeeaa4ed841fef9cd3a19da189e0e5 | [
"MIT"
] | null | null | null | bindings/python/easyre.py | feiss/meta | 646035e1dcdeeaa4ed841fef9cd3a19da189e0e5 | [
"MIT"
] | null | null | null | import re
def easyRE(expr):
expr = re.sub(r'\\v', '[aeiou]', expr, flags = re.IGNORECASE)
expr = re.sub(r'\\p', '\\w+', expr, flags = re.IGNORECASE)
expr = re.sub(r'\\#', '\\d+', expr, flags = re.IGNORECASE)
expr = re.sub(r'\\@', '\\d+[.,]\\d*', expr, flags = re.IGNORECASE) # TODO: fix this! no encaja con 3343 sin... | 34.6 | 118 | 0.589595 | 55 | 346 | 3.709091 | 0.436364 | 0.117647 | 0.176471 | 0.196078 | 0.573529 | 0.465686 | 0.465686 | 0.465686 | 0.313725 | 0 | 0 | 0.013746 | 0.15896 | 346 | 9 | 119 | 38.444444 | 0.687285 | 0.138728 | 0 | 0 | 0 | 0 | 0.132203 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0dc4678e9ef6aefdefb6ed7fb58ee950bc632404 | 584 | py | Python | config.py | bocheng0000/faucet | c225c25be854d3a4f154949412317662d8462094 | [
"MIT"
] | null | null | null | config.py | bocheng0000/faucet | c225c25be854d3a4f154949412317662d8462094 | [
"MIT"
] | null | null | null | config.py | bocheng0000/faucet | c225c25be854d3a4f154949412317662d8462094 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Bocheng.Zhang
@license: Apache Licence
@contact: bocheng0000@gmail.com
@file: config.py
@time: 2019/11/6 10:35
"""
# [environment]
ela_url = "coreservices-mainchain-privnet.elastos.org"
did_url = "coreservices-didsidechain-privnet.elastos.org"
# faucet account
fa... | 26.545455 | 92 | 0.760274 | 54 | 584 | 8.166667 | 0.888889 | 0.068027 | 0.077098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223301 | 0.118151 | 584 | 21 | 93 | 27.809524 | 0.63301 | 0.327055 | 0 | 0 | 0 | 0 | 0.727034 | 0.658793 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0dcef050f16d36cde7117704b43affcd330abb0a | 148 | py | Python | recepcao/apps.py | alantinoco/recepcao-edificio-comercial | dcbfa9fd93f71b2bec15681b947371f8af3e815f | [
"MIT"
] | null | null | null | recepcao/apps.py | alantinoco/recepcao-edificio-comercial | dcbfa9fd93f71b2bec15681b947371f8af3e815f | [
"MIT"
] | null | null | null | recepcao/apps.py | alantinoco/recepcao-edificio-comercial | dcbfa9fd93f71b2bec15681b947371f8af3e815f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RecepcaoConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'recepcao'
| 21.142857 | 56 | 0.763514 | 17 | 148 | 6.529412 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 148 | 6 | 57 | 24.666667 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.195946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2186e55767a613e672f3dc5eb56a9fd44d88a9a2 | 350 | py | Python | saleor/product/migrations/0013_auto_20161130_0608.py | elwoodxblues/saleor | 5e4e4a4259a011d24b04ebd24c77c689de843fa1 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/product/migrations/0013_auto_20161130_0608.py | elwoodxblues/saleor | 5e4e4a4259a011d24b04ebd24c77c689de843fa1 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/product/migrations/0013_auto_20161130_0608.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-30 12:08
from __future__ import unicode_literals
from django.contrib.postgres.operations import HStoreExtension
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("product", "0012_auto_20160218_0812")]
ope... | 25 | 62 | 0.757143 | 44 | 350 | 5.840909 | 0.772727 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108911 | 0.134286 | 350 | 13 | 63 | 26.923077 | 0.739274 | 0.194286 | 0 | 0 | 1 | 0 | 0.107527 | 0.082437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
218e42c110d9a7f6e6864c38b336a5742ebd314a | 444 | py | Python | surfactant_example/data/database_factory.py | force-h2020/force-bdss-plugin-surfactant-example | ba442f2b39919f7d071f4384f8eaba0d99f44b1f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | surfactant_example/data/database_factory.py | force-h2020/force-bdss-plugin-surfactant-example | ba442f2b39919f7d071f4384f8eaba0d99f44b1f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | surfactant_example/data/database_factory.py | force-h2020/force-bdss-plugin-surfactant-example | ba442f2b39919f7d071f4384f8eaba0d99f44b1f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | from force_bdss.api import BaseDataSourceFactory
from .database_model import DatabaseModel
from .database_data_source import DatabaseDataSource
class DatabaseFactory(BaseDataSourceFactory):
def get_identifier(self):
return "database"
def get_name(self):
return "Database Ingredient"
def ... | 23.368421 | 52 | 0.759009 | 48 | 444 | 6.791667 | 0.4375 | 0.07362 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191441 | 444 | 18 | 53 | 24.666667 | 0.908078 | 0 | 0 | 0 | 0 | 0 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.25 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
21a80fd9bc11caa54e11e01b67a9bee250a2d183 | 7,992 | py | Python | light.py | Kervball/lightcontrol-skill | 28d668de86a3a4d1f7b405b741eef451d4c3f6c0 | [
"Apache-2.0"
] | null | null | null | light.py | Kervball/lightcontrol-skill | 28d668de86a3a4d1f7b405b741eef451d4c3f6c0 | [
"Apache-2.0"
] | null | null | null | light.py | Kervball/lightcontrol-skill | 28d668de86a3a4d1f7b405b741eef451d4c3f6c0 | [
"Apache-2.0"
] | null | null | null | import wiringpi
#global variables to replace 0 and 1 where needed
ON = 100
OFF = 0
#Pin Array is the the state of the pins, we use it to reset the pins after we fade for startup or for wake word
#[front red, front blue, front green, back red, back blue, back green]
pinArray = [OFF,OFF,OFF,OFF,OFF,OFF]
#give pin num... | 34.899563 | 111 | 0.606857 | 1,011 | 7,992 | 4.654797 | 0.10089 | 0.131747 | 0.039737 | 0.054186 | 0.78878 | 0.71292 | 0.692095 | 0.671483 | 0.634509 | 0.58776 | 0 | 0.015993 | 0.272397 | 7,992 | 229 | 112 | 34.899563 | 0.793293 | 0 | 0 | 0.735294 | 0 | 0 | 0.022886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.004902 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
21aff4d4fc9db9c6320033ef18caf9a1f073b03f | 433 | py | Python | IceCertUtils/__init__.py | pepone/icecertutils | f75cb773c2a83ab43a4a66651c3742259bc524be | [
"BSD-3-Clause"
] | 7 | 2015-07-21T14:28:25.000Z | 2019-10-08T03:39:40.000Z | IceCertUtils/__init__.py | pepone/icecertutils | f75cb773c2a83ab43a4a66651c3742259bc524be | [
"BSD-3-Clause"
] | 4 | 2018-04-30T20:39:02.000Z | 2021-09-09T13:58:00.000Z | IceCertUtils/__init__.py | pepone/icecertutils | f75cb773c2a83ab43a4a66651c3742259bc524be | [
"BSD-3-Clause"
] | 10 | 2015-07-07T04:23:57.000Z | 2020-06-15T20:05:33.000Z | #
# Copyright (c) ZeroC, Inc. All rights reserved.
#
from IceCertUtils.PyOpenSSLCertificateUtils import PyOpenSSLCertificateFactory
from IceCertUtils.OpenSSLCertificateUtils import OpenSSLCertificateFactory
from IceCertUtils.KeyToolCertificateUtils import KeyToolCertificateFactory
from IceCertUtils.CertificateUtils im... | 39.363636 | 83 | 0.882217 | 32 | 433 | 11.9375 | 0.6875 | 0.167539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076212 | 433 | 10 | 84 | 43.3 | 0.955 | 0.106236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
21c3ef690caf33ab8dac90ec141d6db08c5cb11c | 73 | py | Python | code/abc115_b_05.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc115_b_05.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc115_b_05.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N=int(input())
p=[int(input()) for i in range(N)]
print(sum(p)-max(p)//2) | 24.333333 | 34 | 0.60274 | 17 | 73 | 2.588235 | 0.705882 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.082192 | 73 | 3 | 35 | 24.333333 | 0.641791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
21e12a69e9753a222ff4cb09fdfbc9fe6b7006e8 | 3,190 | py | Python | python/knight/value.py | jjatria/knight | f66038dd1f9ff9c26a7711805b0b3800e9027eea | [
"MIT"
] | null | null | null | python/knight/value.py | jjatria/knight | f66038dd1f9ff9c26a7711805b0b3800e9027eea | [
"MIT"
] | null | null | null | python/knight/value.py | jjatria/knight | f66038dd1f9ff9c26a7711805b0b3800e9027eea | [
"MIT"
] | null | null | null | import knight
class Value():
@classmethod
def parse(cls, stream):
if not isinstance(stream, knight.Stream):
stream = knight.Stream(stream)
while stream.matches(r'(?:#.*?(\n|\Z)|\A[\s()\[\]{}:])*'):
pass
for subcls in [Number, Text, Boolean, Identifier, Null, Ast]:
if None != (value := subcls.parse(s... | 22.152778 | 69 | 0.651097 | 467 | 3,190 | 4.269807 | 0.190578 | 0.038616 | 0.071715 | 0.052156 | 0.400702 | 0.357573 | 0.329488 | 0.294383 | 0.241725 | 0.136409 | 0 | 0.003785 | 0.171787 | 3,190 | 143 | 70 | 22.307692 | 0.750946 | 0.012853 | 0 | 0.305556 | 0 | 0.009259 | 0.074039 | 0.025421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.287037 | false | 0.009259 | 0.009259 | 0.194444 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
21ec3a79532555e73c8af0ff49459e82eec758bc | 900 | py | Python | common/views.py | Kingjmk/mlfaati | 12c0dcbe0389c2c1da0bde80509fb3374955e293 | [
"MIT"
] | 1 | 2021-01-04T07:34:34.000Z | 2021-01-04T07:34:34.000Z | common/views.py | Kingjmk/mlfaati | 12c0dcbe0389c2c1da0bde80509fb3374955e293 | [
"MIT"
] | null | null | null | common/views.py | Kingjmk/mlfaati | 12c0dcbe0389c2c1da0bde80509fb3374955e293 | [
"MIT"
] | null | null | null | from django.views.decorators.cache import cache_page
class BreadcrumbsMixin:
"""
This will handle building and passing breadcrumbs to view
"""
breadcrumbs = [] # List of tuples (title, href)
def get_breadcrumbs(self):
return self.breadcrumbs
def get_context_data(self, *args, **kwarg... | 25 | 61 | 0.667778 | 106 | 900 | 5.490566 | 0.396226 | 0.092784 | 0.09622 | 0.058419 | 0.254296 | 0.254296 | 0.254296 | 0.254296 | 0.254296 | 0.254296 | 0 | 0 | 0.232222 | 900 | 35 | 62 | 25.714286 | 0.842258 | 0.148889 | 0 | 0.421053 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.105263 | 0.789474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1d0d703404907e2eee21ad1c687ed6105e361c6f | 133 | py | Python | python-sc2/examples/zerg/__init__.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | 242 | 2019-06-26T22:03:36.000Z | 2022-03-28T19:32:04.000Z | python-sc2/examples/zerg/__init__.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | 85 | 2019-06-08T13:22:32.000Z | 2022-03-28T15:52:45.000Z | python-sc2/examples/zerg/__init__.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | 111 | 2019-09-13T14:37:13.000Z | 2022-03-31T22:35:14.000Z | from pathlib import Path
__all__ = [p.stem for p in Path().iterdir() if p.is_file() and p.suffix == ".py" and p.stem != "__init__"]
| 33.25 | 106 | 0.661654 | 24 | 133 | 3.291667 | 0.708333 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165414 | 133 | 3 | 107 | 44.333333 | 0.711712 | 0 | 0 | 0 | 0 | 0 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
df0077ba8dc866b3f46118817818d8d720ffe092 | 185 | py | Python | app/api/urls.py | kindweb223/React-Django-M3U8 | ee3edfabcf4e4423e96591df7cf42f8d89813292 | [
"Apache-2.0"
] | 1 | 2020-12-28T07:54:05.000Z | 2020-12-28T07:54:05.000Z | app/api/urls.py | kindweb223/React-Django-M3U8 | ee3edfabcf4e4423e96591df7cf42f8d89813292 | [
"Apache-2.0"
] | 11 | 2020-06-05T17:35:01.000Z | 2022-02-26T07:00:16.000Z | app/api/urls.py | kindweb223/React-Django-M3U8 | ee3edfabcf4e4423e96591df7cf42f8d89813292 | [
"Apache-2.0"
] | 1 | 2021-11-02T11:35:45.000Z | 2021-11-02T11:35:45.000Z | from django.urls import include, path
from app.api.routers import router
app_name = 'app' # Fix until DRF 3.8 will be released
urlpatterns = [
path('', include(router.urls)),
]
| 18.5 | 54 | 0.702703 | 28 | 185 | 4.607143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.183784 | 185 | 9 | 55 | 20.555556 | 0.84106 | 0.183784 | 0 | 0 | 0 | 0 | 0.020134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
df1abf51c2e9492889c57b4deee9958423d62eea | 1,832 | py | Python | BI-IOS/semester-project/webapp/beecon/campaigns/models.py | josefdolezal/fit-cvut | 6b6abea4232b946246d33290718d6c5007926b63 | [
"MIT"
] | 20 | 2016-05-15T10:39:53.000Z | 2022-03-29T00:06:06.000Z | BI-IOS/semester-project/webapp/beecon/campaigns/models.py | josefdolezal/fit-cvut | 6b6abea4232b946246d33290718d6c5007926b63 | [
"MIT"
] | 3 | 2017-05-27T16:44:01.000Z | 2019-01-02T21:02:59.000Z | BI-IOS/semester-project/webapp/beecon/campaigns/models.py | josefdolezal/fit-cvut | 6b6abea4232b946246d33290718d6c5007926b63 | [
"MIT"
] | 11 | 2018-08-22T21:16:32.000Z | 2021-04-10T22:42:34.000Z | from django.contrib.auth.models import User
from django.db import models
class App( models.Model ):
name = models.CharField( max_length=60 )
api_class = models.CharField( max_length=60 )
def __str__( self ):
return self.name
class AppConfig( models.Model ):
name = models.CharField( max_length=60 )
app... | 28.625 | 68 | 0.728712 | 236 | 1,832 | 5.444915 | 0.233051 | 0.151751 | 0.168093 | 0.224125 | 0.577432 | 0.456031 | 0.456031 | 0.410895 | 0.116732 | 0.116732 | 0 | 0.018917 | 0.16321 | 1,832 | 63 | 69 | 29.079365 | 0.819309 | 0 | 0 | 0.454545 | 0 | 0 | 0.007096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.045455 | 0.136364 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
df1e65593d3f144a18c51f1b528866bad826fc91 | 245 | py | Python | lib/__init__.py | vyahello/todo-task-manager | 3aa6f01559181a9d39421b923b460701321f58c0 | [
"Apache-2.0"
] | 1 | 2020-10-06T01:27:11.000Z | 2020-10-06T01:27:11.000Z | lib/__init__.py | vyahello/todo-task-manager | 3aa6f01559181a9d39421b923b460701321f58c0 | [
"Apache-2.0"
] | 5 | 2019-09-19T10:08:00.000Z | 2021-08-22T18:42:58.000Z | lib/__init__.py | vyahello/todo-task-manager | 3aa6f01559181a9d39421b923b460701321f58c0 | [
"Apache-2.0"
] | 1 | 2019-12-14T16:01:33.000Z | 2019-12-14T16:01:33.000Z | from lib.applications import Application, Todo, TodoRequest
from lib.databases import Database
todo_app: Application = Todo(TodoRequest())
todo_app.setup()
database = Database(todo_app)
master = todo_app()
from lib import routes # noqa: F401
| 24.5 | 59 | 0.787755 | 33 | 245 | 5.727273 | 0.454545 | 0.148148 | 0.275132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014019 | 0.126531 | 245 | 9 | 60 | 27.222222 | 0.869159 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
df2267d4b3b4bd66cbf73146d05422c63f158581 | 320 | py | Python | forms.py | Nelestya/baseapp | b5b429b8c31f05e0854bd1acab578d0736d53987 | [
"MIT"
] | null | null | null | forms.py | Nelestya/baseapp | b5b429b8c31f05e0854bd1acab578d0736d53987 | [
"MIT"
] | null | null | null | forms.py | Nelestya/baseapp | b5b429b8c31f05e0854bd1acab578d0736d53987 | [
"MIT"
] | null | null | null | from django import forms
from .models import BugReport, ContactUs
class BugReportForm(forms.ModelForm):
class Meta:
model = BugReport
fields = ['title', 'mail', 'message']
class ContactUsForm(forms.ModelForm):
class Meta:
model = ContactUs
fields = ['title', 'mail', 'message']
| 24.615385 | 45 | 0.653125 | 33 | 320 | 6.333333 | 0.515152 | 0.133971 | 0.181818 | 0.220096 | 0.267943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234375 | 320 | 12 | 46 | 26.666667 | 0.853061 | 0 | 0 | 0.4 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
df389154bf155637d2b74b1651e44a05b83922da | 8,927 | py | Python | src/POC/debug.py | yanivohayon8/CLMN7-DSC-PROJECT | 8ef50578cdc9dc0bd96ac95d4fc4ad538636d3fd | [
"MIT"
] | null | null | null | src/POC/debug.py | yanivohayon8/CLMN7-DSC-PROJECT | 8ef50578cdc9dc0bd96ac95d4fc4ad538636d3fd | [
"MIT"
] | 14 | 2020-05-13T09:29:38.000Z | 2020-05-13T15:33:11.000Z | src/POC/debug.py | yanivohayon8/CLMN7-DSC-PROJECT | 8ef50578cdc9dc0bd96ac95d4fc4ad538636d3fd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 16 23:06:01 2020
@author: yaniv
"""
import sys
sys.path.append('../../')
import json
from src.models.pipeline import pipeline
import ast
import os
from pytube import YouTube
import pandas as pd
groundbase = [22,87,207,270,319,370,450,558,602,671,756,930,978,1011]
... | 43.759804 | 191 | 0.631567 | 1,079 | 8,927 | 4.953661 | 0.209453 | 0.032928 | 0.028064 | 0.039289 | 0.724041 | 0.708887 | 0.700655 | 0.672591 | 0.631244 | 0.631244 | 0 | 0.045165 | 0.226168 | 8,927 | 204 | 192 | 43.759804 | 0.728576 | 0.247228 | 0 | 0 | 0 | 0 | 0.216234 | 0.065203 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.241379 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df3a19f07171c8319c83e4ffce0a67e22f5b1536 | 180 | py | Python | conteudo/forms.py | pedrohd21/Bloco-Notas-Django | 58e87deedcf0b789ca3127e16bc7d5d41b85147d | [
"MIT"
] | null | null | null | conteudo/forms.py | pedrohd21/Bloco-Notas-Django | 58e87deedcf0b789ca3127e16bc7d5d41b85147d | [
"MIT"
] | null | null | null | conteudo/forms.py | pedrohd21/Bloco-Notas-Django | 58e87deedcf0b789ca3127e16bc7d5d41b85147d | [
"MIT"
] | null | null | null | from django import forms
from .models import Conteudo
class ConteudoForm(forms.ModelForm):
class Meta:
model = Conteudo
fields = ('titulo', 'descricao') | 18 | 40 | 0.661111 | 19 | 180 | 6.263158 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255556 | 180 | 10 | 40 | 18 | 0.88806 | 0 | 0 | 0 | 0 | 0 | 0.082873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
df4292cc6af08fcced3017415ed8fe097ee3e3ab | 484 | py | Python | SDK/CPP/tests/test_load.py | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | SDK/CPP/tests/test_load.py | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | SDK/CPP/tests/test_load.py | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | import unittest
import os
class LoadLibrary(unittest.TestCase):
def test_import(self):
import voltu
def test_import_twice(self):
# verify that System instance is created just once, even if module
# imported multiple times
import voltu
import voltu
self.assertIs... | 22 | 74 | 0.661157 | 57 | 484 | 5.403509 | 0.561404 | 0.142857 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 484 | 21 | 75 | 23.047619 | 0.875 | 0.181818 | 0 | 0.285714 | 0 | 0 | 0.020356 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
df4e687a7bba92608721effa0062c2a430f8e9b4 | 4,762 | py | Python | source/PythonMath.activity/libraries/spyral/spyral/font.py | danShumway/python_math | 3726ae5a99f17734e8c10a0d1bb3b95d5f0eab5f | [
"MIT"
] | 2 | 2018-10-07T02:36:58.000Z | 2019-03-27T00:26:15.000Z | source/PythonMath.activity/libraries/spyral/spyral/font.py | danShumway/python_math | 3726ae5a99f17734e8c10a0d1bb3b95d5f0eab5f | [
"MIT"
] | null | null | null | source/PythonMath.activity/libraries/spyral/spyral/font.py | danShumway/python_math | 3726ae5a99f17734e8c10a0d1bb3b95d5f0eab5f | [
"MIT"
] | null | null | null | """
This module defines Font objects, used for rendering text into Images.
"""
import pygame
from spyral import Image, Vec2D
class _FontImage(Image):
"""
A wrapper for Images that came from rendering a font. This is necessary
since the rendering returns a surface, which the Image API is built to hide.
... | 39.683333 | 85 | 0.632507 | 656 | 4,762 | 4.506098 | 0.301829 | 0.032476 | 0.023681 | 0.028755 | 0.156631 | 0.087618 | 0.066306 | 0.066306 | 0.066306 | 0.066306 | 0 | 0.006482 | 0.287274 | 4,762 | 119 | 86 | 40.016807 | 0.864467 | 0.586518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.051282 | 0.102564 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
df4f57be326d9488dd9a1c3a26f461ca5223b20b | 242 | py | Python | signupto/__init__.py | spookylukey/signupto | 22a52d20b32983df9b70390d5f359f18e30b182e | [
"BSD-3-Clause"
] | null | null | null | signupto/__init__.py | spookylukey/signupto | 22a52d20b32983df9b70390d5f359f18e30b182e | [
"BSD-3-Clause"
] | null | null | null | signupto/__init__.py | spookylukey/signupto | 22a52d20b32983df9b70390d5f359f18e30b182e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
__author__ = 'Luke Plant'
__email__ = 'L.Plant.98@cantab.net'
__version__ = '0.1'
from .client import Client, HashAuthorization, TokenAuthorization, ClientError, ObjectNotFound
| 26.888889 | 94 | 0.764463 | 28 | 242 | 6 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023474 | 0.119835 | 242 | 8 | 95 | 30.25 | 0.765258 | 0.086777 | 0 | 0 | 0 | 0 | 0.155251 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
df6fd1fe9e81e19ad6e692db4f081fd70568902d | 688 | py | Python | bikeshed/commands/base.py | emulbreh/bikeshed | d28bc0ec66663c24c39c21797c31c5d79f57e262 | [
"BSD-3-Clause"
] | 2 | 2015-03-04T10:12:35.000Z | 2017-06-19T04:05:33.000Z | bikeshed/commands/base.py | emulbreh/bikeshed | d28bc0ec66663c24c39c21797c31c5d79f57e262 | [
"BSD-3-Clause"
] | 1 | 2020-02-02T22:04:31.000Z | 2020-02-02T22:04:31.000Z | bikeshed/commands/base.py | emulbreh/bikeshed | d28bc0ec66663c24c39c21797c31c5d79f57e262 | [
"BSD-3-Clause"
] | null | null | null | import elasticsearch
import redis
from bikeshed.storage.filesystem import FileSystemDocumentStore
from bikeshed import builtin_types
def get_store():
store = FileSystemDocumentStore(
es=elasticsearch.Elasticsearch(),
root_dir='./_documents',
redis=redis.StrictRedis(),
default_type... | 28.666667 | 63 | 0.747093 | 74 | 688 | 6.756757 | 0.391892 | 0.216 | 0.28 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167151 | 688 | 23 | 64 | 29.913043 | 0.8726 | 0 | 0 | 0 | 0 | 0 | 0.02907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df7e7d91424392645aa34f5de4cdbe66f99bfaa3 | 957 | py | Python | mab/base/base_mab.py | Fracappo87/RL | 4642bdfbdf4019e476be57c1b4cb8936b325f1bd | [
"BSD-3-Clause"
] | null | null | null | mab/base/base_mab.py | Fracappo87/RL | 4642bdfbdf4019e476be57c1b4cb8936b325f1bd | [
"BSD-3-Clause"
] | null | null | null | mab/base/base_mab.py | Fracappo87/RL | 4642bdfbdf4019e476be57c1b4cb8936b325f1bd | [
"BSD-3-Clause"
] | null | null | null | """
Base class describing multi armed bandit problems
"""
import numpy as np
from abc import ABC
from abc import abstractclassmethod
class MultiArmedBanditProblem(ABC):
def __init__(self,number_of_arms, number_of_trials):
self.number_of_arms = number_of_arms
self.number_of_trials = n... | 26.583333 | 109 | 0.675026 | 121 | 957 | 5.049587 | 0.404959 | 0.130933 | 0.11784 | 0.07856 | 0.238953 | 0.130933 | 0 | 0 | 0 | 0 | 0 | 0.001381 | 0.243469 | 957 | 36 | 109 | 26.583333 | 0.842541 | 0.051202 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.136364 | 0.136364 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
df868eb2b878d058cca5492c353722a7ac6ec000 | 518 | py | Python | app/models/order_product.py | luisfcofv/Superhero | dbda0287f0ceb858d7beb0f1c95d6744569a1359 | [
"MIT"
] | null | null | null | app/models/order_product.py | luisfcofv/Superhero | dbda0287f0ceb858d7beb0f1c95d6744569a1359 | [
"MIT"
] | null | null | null | app/models/order_product.py | luisfcofv/Superhero | dbda0287f0ceb858d7beb0f1c95d6744569a1359 | [
"MIT"
] | null | null | null | from app import db
class OrderProduct(db.Model):
__tablename__ = 'order_products'
id = db.Column(db.Integer, primary_key=True)
order_id = db.Column(db.Integer, db.ForeignKey('orders.id'))
product_id = db.Column(db.Integer, db.ForeignKey('products.id'))
quantity = db.Column(db.Integer)
def dic... | 25.9 | 68 | 0.638996 | 62 | 518 | 5.080645 | 0.403226 | 0.101587 | 0.126984 | 0.215873 | 0.257143 | 0.196825 | 0.196825 | 0 | 0 | 0 | 0 | 0 | 0.227799 | 518 | 19 | 69 | 27.263158 | 0.7875 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.142857 | 0.785714 | 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 | 1 | 1 | 0 | 0 | 3 |
10cb2f1450d0c8554d31657c72bf83e852ac9b64 | 106 | py | Python | ELAB01/01-06.py | tawanchaiii/01204111_63 | edf1174f287f5174d93729d9b5c940c74d3b6553 | [
"WTFPL"
] | null | null | null | ELAB01/01-06.py | tawanchaiii/01204111_63 | edf1174f287f5174d93729d9b5c940c74d3b6553 | [
"WTFPL"
] | null | null | null | ELAB01/01-06.py | tawanchaiii/01204111_63 | edf1174f287f5174d93729d9b5c940c74d3b6553 | [
"WTFPL"
] | null | null | null | p = int(input("Input p: "))
ans = 2*((p)**4) - 5*((p)**3) - 24*(p)**2 -7*p+10
print(f"Fraction = {ans}") | 35.333333 | 50 | 0.462264 | 22 | 106 | 2.227273 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 0.160377 | 106 | 3 | 51 | 35.333333 | 0.438202 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8005f7b21a5e76dd6d888f71d5d77958b10874f2 | 1,753 | py | Python | splunk_sdk/gateway/client.py | ahallur/splunk-cloud-sdk-python | 27914e4cb624bcc67788408688553cfb99f64aa1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | splunk_sdk/gateway/client.py | ahallur/splunk-cloud-sdk-python | 27914e4cb624bcc67788408688553cfb99f64aa1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | splunk_sdk/gateway/client.py | ahallur/splunk-cloud-sdk-python | 27914e4cb624bcc67788408688553cfb99f64aa1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright © 2019 Splunk, Inc.
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
... | 38.108696 | 75 | 0.681118 | 250 | 1,753 | 4.632 | 0.444 | 0.060449 | 0.060449 | 0.027634 | 0.037997 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007386 | 0.22761 | 1,753 | 45 | 76 | 38.955556 | 0.84712 | 0.401597 | 0 | 0 | 0 | 0 | 0.023553 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
80067224c38abbd5c048648f7d3b107a921b4279 | 343 | py | Python | {{cookiecutter.package_name}}/src/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}.py | saltastro/cookiecutter-python-package | 305fc88983ac35071e4b6bc2d5e3699114ec9cda | [
"MIT"
] | null | null | null | {{cookiecutter.package_name}}/src/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}.py | saltastro/cookiecutter-python-package | 305fc88983ac35071e4b6bc2d5e3699114ec9cda | [
"MIT"
] | null | null | null | {{cookiecutter.package_name}}/src/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}.py | saltastro/cookiecutter-python-package | 305fc88983ac35071e4b6bc2d5e3699114ec9cda | [
"MIT"
] | null | null | null | def hello(name):
"""Generate a friendly greeting.
Greeting is an important part of culture. This function takes a name and
generates a friendly greeting for it.
Parameters
----------
name : str
A name.
Returns
-------
str
A greeting.
"""
return 'Hello {na... | 17.15 | 76 | 0.574344 | 41 | 343 | 4.804878 | 0.609756 | 0.091371 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309038 | 343 | 19 | 77 | 18.052632 | 0.831224 | 0.653061 | 0 | 0 | 1 | 0 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
800a1904e3446a72defa8a516d88fa73837e5182 | 82 | py | Python | nlp.py | km1230/pykm | 7026a9188b801b0d1d532646f2003deeb0e4b654 | [
"Apache-2.0"
] | 1 | 2019-07-16T05:50:03.000Z | 2019-07-16T05:50:03.000Z | nlp.py | km1230/pykm | 7026a9188b801b0d1d532646f2003deeb0e4b654 | [
"Apache-2.0"
] | 7 | 2019-12-04T21:49:12.000Z | 2021-07-23T04:19:53.000Z | nlp.py | km1230/pykm | 7026a9188b801b0d1d532646f2003deeb0e4b654 | [
"Apache-2.0"
] | null | null | null | import nltk
syn = nltk.corpus.wordnet.synsets("hello")
print(syn[0].definition())
| 20.5 | 42 | 0.743902 | 12 | 82 | 5.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.073171 | 82 | 3 | 43 | 27.333333 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
801101238aad018db1bef2a93a988a9a918bf5a4 | 2,489 | py | Python | Algorithm.Python/stubs/QuantConnect/Storage.py | gaoxiaojun/Lean | 9dca43bccb720d0df91e4bfc1d363b71e3a36cb5 | [
"Apache-2.0"
] | 2 | 2020-12-08T11:27:20.000Z | 2021-04-06T13:21:15.000Z | Algorithm.Python/stubs/QuantConnect/Storage.py | gaoxiaojun/Lean | 9dca43bccb720d0df91e4bfc1d363b71e3a36cb5 | [
"Apache-2.0"
] | null | null | null | Algorithm.Python/stubs/QuantConnect/Storage.py | gaoxiaojun/Lean | 9dca43bccb720d0df91e4bfc1d363b71e3a36cb5 | [
"Apache-2.0"
] | 1 | 2020-12-08T11:27:21.000Z | 2020-12-08T11:27:21.000Z | # encoding: utf-8
# module QuantConnect.Storage calls itself Storage
# from QuantConnect.Common, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null
# by generator 1.145
# no doc
# imports
import datetime
import Newtonsoft.Json
import QuantConnect.Interfaces
import QuantConnect.Packets
import QuantConnect.Storage
im... | 31.1125 | 195 | 0.701888 | 291 | 2,489 | 5.989691 | 0.323024 | 0.064257 | 0.074584 | 0.119334 | 0.364314 | 0.333333 | 0.280551 | 0.247849 | 0.182444 | 0.182444 | 0 | 0.00446 | 0.189233 | 2,489 | 79 | 196 | 31.506329 | 0.859267 | 0.125753 | 0 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.386364 | false | 0.386364 | 0.181818 | 0 | 0.613636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
80110ffd306728fd1055d72c7b9f9fa9fc762a9b | 754 | py | Python | test/phonon/test_group_velocity.py | neukirchen-212/phonopy | e34588dcb32fb15aa2a6604ffd3e62ebb0927c0f | [
"BSD-3-Clause"
] | null | null | null | test/phonon/test_group_velocity.py | neukirchen-212/phonopy | e34588dcb32fb15aa2a6604ffd3e62ebb0927c0f | [
"BSD-3-Clause"
] | null | null | null | test/phonon/test_group_velocity.py | neukirchen-212/phonopy | e34588dcb32fb15aa2a6604ffd3e62ebb0927c0f | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from phonopy.phonon.group_velocity import GroupVelocity
def test_gv_nacl(ph_nacl):
gv_ref = [14.90162220, 14.90162220, 14.90162220,
14.90162220, 14.90162220, 14.90162220,
24.77046520, 24.77046520, 24.77046520,
-2.17239664, -2.17239664, -2.17239664,
... | 41.888889 | 59 | 0.606101 | 103 | 754 | 4.31068 | 0.446602 | 0.135135 | 0.135135 | 0.225225 | 0.256757 | 0.256757 | 0.256757 | 0.256757 | 0.256757 | 0.256757 | 0 | 0.323268 | 0.253316 | 754 | 17 | 60 | 44.352941 | 0.465364 | 0.111406 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
8018982c0e09b1d08beea3702d61bdefffcc8e6d | 1,773 | py | Python | cct/core2/commands/commandargument.py | awacha/cct | be1adbed2533df15c778051f3f4f9da0749c873a | [
"BSD-3-Clause"
] | 1 | 2015-11-04T16:37:39.000Z | 2015-11-04T16:37:39.000Z | cct/core2/commands/commandargument.py | awacha/cct | be1adbed2533df15c778051f3f4f9da0749c873a | [
"BSD-3-Clause"
] | null | null | null | cct/core2/commands/commandargument.py | awacha/cct | be1adbed2533df15c778051f3f4f9da0749c873a | [
"BSD-3-Clause"
] | 1 | 2020-03-05T02:50:43.000Z | 2020-03-05T02:50:43.000Z | from typing import Optional, Any, Sequence, List
class CommandArgument:
name: str
description: str
defaultvalue: Any
def __init__(self, name: str, description: str, defaultvalue: Optional[Any] = None):
self.name = name
self.description = description
self.defaultvalue = default... | 30.050847 | 111 | 0.662155 | 190 | 1,773 | 6.094737 | 0.268421 | 0.056995 | 0.07772 | 0.099309 | 0.284111 | 0.161485 | 0.055268 | 0 | 0 | 0 | 0 | 0 | 0.238015 | 1,773 | 58 | 112 | 30.568966 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.068246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.02439 | 0.121951 | 0.658537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
801b424ad0fa701ddcc2184138151c8a0f66e1e4 | 150 | py | Python | V1.0_ngix:apache_mosquitto_RESTful_Solr_LIRE/octo-ninja/rest-pandas/OctoNinja/app/models.py | smartkit/COVITAS | 93b5f33d40ba0fe3a6dd0a9b1c571c6a092452e4 | [
"Unlicense"
] | null | null | null | V1.0_ngix:apache_mosquitto_RESTful_Solr_LIRE/octo-ninja/rest-pandas/OctoNinja/app/models.py | smartkit/COVITAS | 93b5f33d40ba0fe3a6dd0a9b1c571c6a092452e4 | [
"Unlicense"
] | null | null | null | V1.0_ngix:apache_mosquitto_RESTful_Solr_LIRE/octo-ninja/rest-pandas/OctoNinja/app/models.py | smartkit/COVITAS | 93b5f33d40ba0fe3a6dd0a9b1c571c6a092452e4 | [
"Unlicense"
] | 1 | 2017-04-29T07:07:23.000Z | 2017-04-29T07:07:23.000Z | from django.db import models
# Create your models here.
class TimeSeries(models.Model):
date = models.DateField()
value = models.FloatField() | 25 | 31 | 0.733333 | 19 | 150 | 5.789474 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 150 | 6 | 32 | 25 | 0.88 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8022d83c576b47ba682b8dcc56a49b845adfbad1 | 193 | py | Python | blog/urls.py | FraL96/Monstera-MS4 | 42e8a17ea8ecde3c64a204c3e8b78adf5f8c96d6 | [
"W3C",
"PostgreSQL"
] | null | null | null | blog/urls.py | FraL96/Monstera-MS4 | 42e8a17ea8ecde3c64a204c3e8b78adf5f8c96d6 | [
"W3C",
"PostgreSQL"
] | null | null | null | blog/urls.py | FraL96/Monstera-MS4 | 42e8a17ea8ecde3c64a204c3e8b78adf5f8c96d6 | [
"W3C",
"PostgreSQL"
] | 1 | 2021-09-03T10:29:07.000Z | 2021-09-03T10:29:07.000Z | from . import views
from django.urls import path
urlpatterns = [
path('', views.ArticleList.as_view(), name='blog'),
path('<slug:slug>/', views.article_detail, name='article_detail')
] | 27.571429 | 69 | 0.694301 | 25 | 193 | 5.24 | 0.6 | 0.198473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134715 | 193 | 7 | 70 | 27.571429 | 0.784431 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
802cbec0670285124a989abc49113c6de82d6809 | 51 | py | Python | 10-UrsinaEngine/10-1-ursina_basico/0-.py | jonasht/Python | 2affe509ce9619f745ee645ff3a120485bf403bc | [
"MIT"
] | null | null | null | 10-UrsinaEngine/10-1-ursina_basico/0-.py | jonasht/Python | 2affe509ce9619f745ee645ff3a120485bf403bc | [
"MIT"
] | null | null | null | 10-UrsinaEngine/10-1-ursina_basico/0-.py | jonasht/Python | 2affe509ce9619f745ee645ff3a120485bf403bc | [
"MIT"
] | null | null | null | from ursina import *
app = Ursina()
app.run()
| 5.666667 | 20 | 0.607843 | 7 | 51 | 4.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254902 | 51 | 8 | 21 | 6.375 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
804c3868b446540de7ac8f66512c60ef888660eb | 249 | py | Python | mul.py | riya054/finalproj_calculator | 834c48fd6241d1683087fb3eb2302961f3fb8d70 | [
"Unlicense"
] | null | null | null | mul.py | riya054/finalproj_calculator | 834c48fd6241d1683087fb3eb2302961f3fb8d70 | [
"Unlicense"
] | null | null | null | mul.py | riya054/finalproj_calculator | 834c48fd6241d1683087fb3eb2302961f3fb8d70 | [
"Unlicense"
] | 1 | 2021-12-22T08:56:28.000Z | 2021-12-22T08:56:28.000Z | # -*- coding: utf-8 -*-
"""mul.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1fvc_bX8oobfbr_O2r1pCpgOd2CTckXe9
"""
def mul(num1, num2):
print('Result is: ', num1 * num2) | 22.636364 | 77 | 0.710843 | 32 | 249 | 5.46875 | 0.875 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051643 | 0.144578 | 249 | 11 | 78 | 22.636364 | 0.769953 | 0.726908 | 0 | 0 | 1 | 0 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8052452163482e7dbe1d4628edade8ff2016918f | 819 | py | Python | tests/pyposmat/engines/PyposmatIterativeConditioner/MgO.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 4 | 2018-01-18T19:59:56.000Z | 2020-08-25T11:56:52.000Z | tests/pyposmat/engines/PyposmatIterativeConditioner/MgO.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2018-04-22T23:02:13.000Z | 2018-04-22T23:02:13.000Z | tests/pyposmat/engines/PyposmatIterativeConditioner/MgO.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2019-09-14T07:04:42.000Z | 2019-09-14T07:04:42.000Z | from collections import OrderedDict
MgO_LewisCatlow = OrderedDict()
MgO_LewisCatlow['potential'] = OrderedDict()
MgO_LewisCatlow['potential']['potential_type'] = 'buckingham'
MgO_LewisCatlow['potential']['symbols'] = ['Mg','O']
MgO_LewisCatlow['parameters'] = OrderedDict()
MgO_LewisCatlow['parameters']['chrg_Mg'] = +2... | 43.105263 | 61 | 0.715507 | 104 | 819 | 5.365385 | 0.288462 | 0.401434 | 0.516129 | 0.224014 | 0.250896 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0.048518 | 0.094017 | 819 | 18 | 62 | 45.5 | 0.703504 | 0 | 0 | 0 | 0 | 0 | 0.299145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
337bbd1d2135c49fb22fb3c27ef4dd8c26fea28a | 2,442 | py | Python | mail_thread.py | vlad003/template-emailer | d796b8604b18bff9d495c93fe4b9fab5b36fc608 | [
"MIT"
] | null | null | null | mail_thread.py | vlad003/template-emailer | d796b8604b18bff9d495c93fe4b9fab5b36fc608 | [
"MIT"
] | null | null | null | mail_thread.py | vlad003/template-emailer | d796b8604b18bff9d495c93fe4b9fab5b36fc608 | [
"MIT"
] | 1 | 2018-01-23T05:22:33.000Z | 2018-01-23T05:22:33.000Z | import smtplib
import ConfigParser
from db_manager import DBManager
import time
import threading
config = ConfigParser.RawConfigParser()
config.read('config.ini')
db_loc = config.get('app', 'database')
interval = int(config.get('app', 'interval'))
print interval
username = config.get('server', 'username')
... | 27.438202 | 68 | 0.567158 | 280 | 2,442 | 4.867857 | 0.35 | 0.080704 | 0.041086 | 0.052825 | 0.17755 | 0.17755 | 0.17755 | 0.17755 | 0.118855 | 0.118855 | 0 | 0.004816 | 0.31982 | 2,442 | 88 | 69 | 27.75 | 0.815774 | 0.07371 | 0 | 0.242424 | 0 | 0 | 0.048893 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 0 | null | null | 0.060606 | 0.075758 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.