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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9706338f0eb798ba9532324312cadf808092d542 | 433 | py | Python | examples/bamboo/bamboo_plan_directory_info.py | Kudesnick/atlassian-python-api | 0ff7cf4ef39d8374e948d8c7ad467944159a3b8b | [
"Apache-2.0"
] | 779 | 2018-10-05T02:45:01.000Z | 2022-03-31T22:30:42.000Z | examples/bamboo/bamboo_plan_directory_info.py | Kudesnick/atlassian-python-api | 0ff7cf4ef39d8374e948d8c7ad467944159a3b8b | [
"Apache-2.0"
] | 659 | 2018-10-05T09:58:15.000Z | 2022-03-29T13:20:00.000Z | examples/bamboo/bamboo_plan_directory_info.py | Kudesnick/atlassian-python-api | 0ff7cf4ef39d8374e948d8c7ad467944159a3b8b | [
"Apache-2.0"
] | 502 | 2018-10-08T16:08:32.000Z | 2022-03-31T08:24:13.000Z | # coding=utf-8
import os
from atlassian import Bamboo
BAMBOO_URL = os.environ.get("BAMBOO_URL", "http://localhost:8085")
ATLASSIAN_USER = os.environ.get("ATLASSIAN_USER", "admin")
ATLASSIAN_PASSWORD = os.environ.get("ATLASSIAN_PASSWORD", "admin")
bamboo = Bamboo(url=BAMBOO_URL, username=ATLASSIAN_USER, password=ATLA... | 28.866667 | 85 | 0.796767 | 59 | 433 | 5.59322 | 0.423729 | 0.109091 | 0.109091 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012531 | 0.078522 | 433 | 14 | 86 | 30.928571 | 0.814536 | 0.027714 | 0 | 0 | 0 | 0 | 0.195704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
970ad238df6266f3eda76de7f16ad770694a0057 | 1,438 | py | Python | config.py | hugomd/site | edd214ee97fe9695b8555b3282c6d0cd3ba16fe2 | [
"MIT"
] | null | null | null | config.py | hugomd/site | edd214ee97fe9695b8555b3282c6d0cd3ba16fe2 | [
"MIT"
] | null | null | null | config.py | hugomd/site | edd214ee97fe9695b8555b3282c6d0cd3ba16fe2 | [
"MIT"
] | null | null | null | # config.py - Vite's configuration script
title = "icyphox"
author = ""
header = """<a href="/"><- back</a>"""
# actually the sidebar
footer = f"""
<img class="logo" src="/static/white.svg" alt="icyphox's avatar" style="width: 55%"/>
<p>
<span class="sidebar-link">email</span>
<br>
<a href="mail... | 25.22807 | 89 | 0.56815 | 206 | 1,438 | 3.946602 | 0.446602 | 0.0492 | 0.0492 | 0.083641 | 0.135301 | 0.109471 | 0.109471 | 0.081181 | 0.081181 | 0.081181 | 0 | 0.016637 | 0.205841 | 1,438 | 56 | 90 | 25.678571 | 0.695271 | 0.057024 | 0 | 0.4 | 0 | 0.066667 | 0.907544 | 0.215976 | 0 | 0 | 0.013314 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
971485c542b485af87a81711b45c61d7853a713f | 3,175 | py | Python | Python/Data Structure/LinkedLists /LinkedQueue.py | MCParab/Algorithms | d8787b9ef2167a3be84f20b676ed62a52f327cec | [
"Apache-2.0"
] | 1 | 2017-01-01T19:10:15.000Z | 2017-01-01T19:10:15.000Z | Python/Data Structure/LinkedLists /LinkedQueue.py | MithileshCParab/Algorithms | d8787b9ef2167a3be84f20b676ed62a52f327cec | [
"Apache-2.0"
] | null | null | null | Python/Data Structure/LinkedLists /LinkedQueue.py | MithileshCParab/Algorithms | d8787b9ef2167a3be84f20b676ed62a52f327cec | [
"Apache-2.0"
] | null | null | null | class LinkedQueue:
""" FIFO queue implementation using a sigle linked list for storage """
#--------------------------------------------------------------------------------
class _Node:
""" LightWeight, non public class for storing a singly linked node """
__slots__ = '_element', '_next'
def __init__(self,... | 31.127451 | 88 | 0.364724 | 267 | 3,175 | 4.089888 | 0.307116 | 0.051282 | 0.029304 | 0.047619 | 0.095238 | 0.064103 | 0.064103 | 0.064103 | 0.064103 | 0 | 0 | 0.010538 | 0.133228 | 3,175 | 101 | 89 | 31.435644 | 0.386265 | 0.556535 | 0 | 0.150943 | 0 | 0 | 0.091129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0 | 0 | 0 | 0.245283 | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9722afe3cc1b60cce97fe5d7c5f90080209a5d40 | 12,143 | py | Python | notegame/games/nonogram/solver/simpson.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | notegame/games/nonogram/solver/simpson.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | notegame/games/nonogram/solver/simpson.py | notechats/notegame | 3d9538b98cb6b0b240956b1271e028b22458fc54 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Simple algorithm to solve nonograms using left and right overlaps
See details:
http://www.lancaster.ac.uk/~simpsons/nonogram/ls-fast
"""
from notetool.tool.log import logger
from six.moves import range
from ..core.common import BOX, SPACE, UNKNOWN, NonogramError
from .base import BaseLine... | 37.363077 | 95 | 0.483159 | 1,343 | 12,143 | 4.201787 | 0.14892 | 0.20202 | 0.064505 | 0.031189 | 0.561226 | 0.496722 | 0.423179 | 0.347156 | 0.283714 | 0.260677 | 0 | 0.009197 | 0.426913 | 12,143 | 324 | 96 | 37.478395 | 0.801696 | 0.190233 | 0 | 0.45 | 0 | 0 | 0.044124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015 | false | 0 | 0.02 | 0 | 0.055 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9725de578a80f681b57bed67bf32b534d737de09 | 3,323 | py | Python | tests/dmpt/test_positioning.py | hmpf/easydmp | 650b241fedd839635335c1044f2d695f9c076e4c | [
"MIT"
] | 5 | 2018-09-25T15:48:39.000Z | 2020-06-04T11:56:36.000Z | tests/dmpt/test_positioning.py | hmpf/easydmp | 650b241fedd839635335c1044f2d695f9c076e4c | [
"MIT"
] | 233 | 2018-01-10T17:28:41.000Z | 2022-03-30T09:38:03.000Z | tests/dmpt/test_positioning.py | hmpf/easydmp | 650b241fedd839635335c1044f2d695f9c076e4c | [
"MIT"
] | 2 | 2019-02-07T10:34:09.000Z | 2019-03-12T07:25:09.000Z | import unittest
from easydmp.dmpt.positioning import Move, get_new_index, flat_reorder
class TestGetNewIndex(unittest.TestCase):
def test_raise_exception_on_empty_order(self):
with self.assertRaises(ValueError) as e:
get_new_index(Move.UP, [], None)
self.assertEqual('Empty list', str... | 36.516484 | 70 | 0.644297 | 459 | 3,323 | 4.3878 | 0.174292 | 0.075472 | 0.054618 | 0.0715 | 0.718967 | 0.6857 | 0.649454 | 0.622642 | 0.538729 | 0.434955 | 0 | 0.015038 | 0.239543 | 3,323 | 90 | 71 | 36.922222 | 0.781955 | 0.025278 | 0 | 0.391304 | 0 | 0 | 0.034611 | 0 | 0 | 0 | 0 | 0 | 0.362319 | 1 | 0.202899 | false | 0 | 0.028986 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9729808e0293ba8bf8d54966e584f3dc2294945d | 3,858 | py | Python | migrations/versions/3d6c688278ae_tables_for_user_password_comments_.py | fwoie/DAT250-Assignment-1 | cb12ba2a24de2a7774913eef495a2365d3473c35 | [
"MIT"
] | null | null | null | migrations/versions/3d6c688278ae_tables_for_user_password_comments_.py | fwoie/DAT250-Assignment-1 | cb12ba2a24de2a7774913eef495a2365d3473c35 | [
"MIT"
] | null | null | null | migrations/versions/3d6c688278ae_tables_for_user_password_comments_.py | fwoie/DAT250-Assignment-1 | cb12ba2a24de2a7774913eef495a2365d3473c35 | [
"MIT"
] | null | null | null | """Tables for User, Password, Comments, Friends and Posts
Revision ID: 3d6c688278ae
Revises:
Create Date: 2019-10-08 15:19:44.799296
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3d6c688278ae'
down_revision = None
branch_labels = None
depends_on = None
de... | 42.395604 | 99 | 0.674184 | 521 | 3,858 | 4.850288 | 0.176583 | 0.094974 | 0.127424 | 0.150376 | 0.694895 | 0.661654 | 0.61021 | 0.505342 | 0.373961 | 0.261971 | 0 | 0.018868 | 0.134526 | 3,858 | 90 | 100 | 42.866667 | 0.737945 | 0.083981 | 0 | 0.236111 | 0 | 0 | 0.182442 | 0.02688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.097222 | 0.027778 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
972a3d2736ffc939ddf5e1a6ade767fea2658445 | 1,781 | py | Python | get_data.py | done1892/Square-Images-Colorization | c08aad9776e7acd7911a30dec63043dc265cd1f5 | [
"MIT"
] | 1 | 2020-04-13T14:22:53.000Z | 2020-04-13T14:22:53.000Z | get_data.py | done1892/Square-Images-Colorization | c08aad9776e7acd7911a30dec63043dc265cd1f5 | [
"MIT"
] | null | null | null | get_data.py | done1892/Square-Images-Colorization | c08aad9776e7acd7911a30dec63043dc265cd1f5 | [
"MIT"
] | null | null | null | import numpy as np
import os
import shutil
import re
from requests import get
from bs4 import BeautifulSoup
from io import BytesIO
from PIL import Image
import cv2 as cv
def scrape_google_image(url, name_folder):
"""This function scrapes images from an URL coming from google
images and save them into a spe... | 33.603774 | 124 | 0.655811 | 247 | 1,781 | 4.582996 | 0.449393 | 0.070671 | 0.034452 | 0.035336 | 0.068905 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007337 | 0.2347 | 1,781 | 53 | 125 | 33.603774 | 0.823184 | 0.174621 | 0 | 0.055556 | 0 | 0 | 0.080532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.305556 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
972efa2da284d65e5b138ba71fc1c32be7dc27ba | 938 | py | Python | VSCode_work/chapter5/chapter5_5_2.py | yangyahu-1994/Python-Crash-Course | 6f8ef7fe8466d88931a0d3cc423ba5d966663b9d | [
"MIT"
] | 12 | 2020-10-22T14:03:27.000Z | 2022-03-28T08:14:22.000Z | VSCode_work/chapter5/chapter5_5_2.py | yangyahu-1994/Python-Crash-Course | 6f8ef7fe8466d88931a0d3cc423ba5d966663b9d | [
"MIT"
] | null | null | null | VSCode_work/chapter5/chapter5_5_2.py | yangyahu-1994/Python-Crash-Course | 6f8ef7fe8466d88931a0d3cc423ba5d966663b9d | [
"MIT"
] | 9 | 2020-12-22T10:22:12.000Z | 2022-03-28T08:14:53.000Z | # 检查两个字符串相等和不等
car_1 = 'audi'
car_2 = 'bwm'
if car_1 == car_2:
print("不执行")
if car_1 != car_2:
print('执行')
# 使用函数lower()的测试
car = 'audi'
if car.lower() == 'audi':
print('执行')
if car.lower() != 'audi':
print('不执行')
# 检查两个数相等、不等、小于、大于等于和小于等于
number_1 = 416
number_2 = 504
if number_1 == number_2:
pr... | 18.76 | 48 | 0.617271 | 157 | 938 | 3.471338 | 0.267516 | 0.110092 | 0.13211 | 0.220183 | 0.546789 | 0.418349 | 0 | 0 | 0 | 0 | 0 | 0.062583 | 0.19936 | 938 | 49 | 49 | 19.142857 | 0.663116 | 0.086354 | 0 | 0.157895 | 0 | 0 | 0.151586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.368421 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
973151e7cc5a73fa4ed48ba8a97fb405be862c53 | 679 | py | Python | sikr/db/syncdb.py | sikrvault/sikr | f76d99d27fd7ad5984d9e9fd41ca375e2e9043db | [
"MIT"
] | 32 | 2016-01-12T20:31:09.000Z | 2022-03-05T16:17:55.000Z | sikr/db/syncdb.py | clione/sikre | f76d99d27fd7ad5984d9e9fd41ca375e2e9043db | [
"MIT"
] | 8 | 2015-02-11T22:33:58.000Z | 2015-12-14T16:50:19.000Z | sikr/db/syncdb.py | sikrvault/sikr | f76d99d27fd7ad5984d9e9fd41ca375e2e9043db | [
"MIT"
] | 5 | 2016-05-17T14:56:51.000Z | 2022-03-05T16:17:59.000Z | from sikr.db.connector import Base, engine
from sikr.models.users import UserGroup, User
from sikr.models.entries import Group, Entry
from sikr.utils.logs import logger
def generate_schema():
"""Generate the initial schema for the database."""
start_msg = "Creating database schema..."
end_msg = "Database ... | 30.863636 | 55 | 0.658321 | 93 | 679 | 4.688172 | 0.483871 | 0.073395 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001898 | 0.223859 | 679 | 21 | 56 | 32.333333 | 0.825427 | 0.066274 | 0 | 0 | 1 | 0 | 0.208599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9731987d8f1dd9c8ab9cc61d589e843befea721d | 631 | py | Python | text_importer/importers/lux/helpers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | text_importer/importers/lux/helpers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | text_importer/importers/lux/helpers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | def convert_coordinates(hpos, vpos, width, height, x_res, y_res):
"""
x = (coordinate['xResolution']/254.0) * coordinate['hpos']
y = (coordinate['yResolution']/254.0) * coordinate['vpos']
w = (coordinate['xResolution']/254.0) * coordinate['width']
h = (coordinate['yResolution']/254.0) * coo... | 30.047619 | 65 | 0.584786 | 83 | 631 | 4.349398 | 0.349398 | 0.044321 | 0.155125 | 0.138504 | 0.387812 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058704 | 0.217116 | 631 | 20 | 66 | 31.55 | 0.672065 | 0.477021 | 0 | 0 | 0 | 0 | 0.013468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
973709be0d656dcefc259f0c4c7f30f1e6527ea8 | 367 | py | Python | week3/problem0.py | jgathogo/python_level_1 | 129411fe42aa5ef0e32d9d3d9cf2ad90e182e455 | [
"Apache-2.0"
] | 1 | 2021-06-13T09:06:24.000Z | 2021-06-13T09:06:24.000Z | week3/problem0.py | jgathogo/python_level_1 | 129411fe42aa5ef0e32d9d3d9cf2ad90e182e455 | [
"Apache-2.0"
] | null | null | null | week3/problem0.py | jgathogo/python_level_1 | 129411fe42aa5ef0e32d9d3d9cf2ad90e182e455 | [
"Apache-2.0"
] | null | null | null | import os
import sys
def main():
# no need for int_* in the variable name
start = int(input("Enter the start digit: "))
stop = int(input("Enter the stop number: "))
step = int(input("Enter the step number: "))
print(f"Generated integers: {list(range(start, stop, step))}")
return os.EX_OK
i... | 20.388889 | 66 | 0.632153 | 54 | 367 | 4.111111 | 0.574074 | 0.108108 | 0.175676 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223433 | 367 | 17 | 67 | 21.588235 | 0.778947 | 0.103542 | 0 | 0 | 0 | 0 | 0.394495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97376308491892ebcbfb88a230d06d74a38e4be1 | 431 | py | Python | responce_initial.py | nnn112358/python-control_test | 58e1b5e6feec0477fd4bad3683fb8af470faed4f | [
"MIT"
] | null | null | null | responce_initial.py | nnn112358/python-control_test | 58e1b5e6feec0477fd4bad3683fb8af470faed4f | [
"MIT"
] | null | null | null | responce_initial.py | nnn112358/python-control_test | 58e1b5e6feec0477fd4bad3683fb8af470faed4f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from control.matlab import *
from matplotlib import pyplot as plt
from scipy import arange
def main():
k=1.0
m=0.1
c=0.1
num = [0, 0,1]
den = [m, c, k]
sys1 = tf(num, den)
print sys1
(y1a, T1a) = initial(sys1,X0 = [0, 1],T = arange(0, 10, 0.01))
plt.axhline(... | 18.73913 | 66 | 0.559165 | 72 | 431 | 3.236111 | 0.569444 | 0.034335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082278 | 0.266821 | 431 | 22 | 67 | 19.590909 | 0.655063 | 0.046404 | 0 | 0 | 0 | 0 | 0.026961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97377fdd09ce71e629bdc6ca895eacc4d740bb0b | 460 | py | Python | data/cifar/download.py | AliJahan/DNNMark | 3ee0abe24767c339b77dcc945c7c9efc71ea2e74 | [
"MIT"
] | 1 | 2022-01-04T03:41:23.000Z | 2022-01-04T03:41:23.000Z | data/cifar/download.py | AliJahan/DNNMark | 3ee0abe24767c339b77dcc945c7c9efc71ea2e74 | [
"MIT"
] | null | null | null | data/cifar/download.py | AliJahan/DNNMark | 3ee0abe24767c339b77dcc945c7c9efc71ea2e74 | [
"MIT"
] | 5 | 2020-12-23T15:14:01.000Z | 2022-03-11T15:26:47.000Z | #! /usr/bin/env python
import urllib
import tarfile
import os
print("Downloading...")
testfile = urllib.URLopener()
testfile.retrieve("http://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz", "cifar-10-binary.tar.gz")
print("Unzipping...")
tar = tarfile.open("cifar-10-binary.tar.gz")
tar.extractall()
tar.close()
... | 20 | 101 | 0.702174 | 73 | 460 | 4.424658 | 0.479452 | 0.130031 | 0.160991 | 0.198142 | 0.22291 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028436 | 0.082609 | 460 | 22 | 102 | 20.909091 | 0.736967 | 0.045652 | 0 | 0 | 0 | 0.071429 | 0.481735 | 0.200913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9738a0067d091dfdf317fd6efab18ef09626fc58 | 1,184 | py | Python | backend/src/util/database/redis_util.py | tonyBen/rcmg | fabfe378b7a85d90018e1798bb253603ac9d05f5 | [
"MIT"
] | null | null | null | backend/src/util/database/redis_util.py | tonyBen/rcmg | fabfe378b7a85d90018e1798bb253603ac9d05f5 | [
"MIT"
] | 1 | 2021-12-03T02:37:13.000Z | 2021-12-03T02:37:13.000Z | backend/src/util/database/redis_util.py | tonyBen/rcmg | fabfe378b7a85d90018e1798bb253603ac9d05f5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
------------------------------------------------
rcmg.util.database.redis_util
------------------------------------------------
Author: Tony Ben (email: nanjinghhu@vip.qq.com)
Create: 2020-07-03
------------------------------------------------
ChangeLog
-----------------------------... | 33.828571 | 79 | 0.402027 | 90 | 1,184 | 5.088889 | 0.688889 | 0.052402 | 0.052402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010551 | 0.279561 | 1,184 | 34 | 80 | 34.823529 | 0.526377 | 0.389358 | 0 | 0 | 0 | 0 | 0.132548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.1875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
973f3535a038a8ec098a619f056bd5ce2fcbcb82 | 21,973 | py | Python | modules/viz/misc/python/test/test_viz_simple.py | ptelang/opencv_contrib | dd68e396c76f1db4d82e5aa7a6545580939f9b9d | [
"Apache-2.0"
] | 7,158 | 2016-07-04T22:19:27.000Z | 2022-03-31T07:54:32.000Z | modules/viz/misc/python/test/test_viz_simple.py | ptelang/opencv_contrib | dd68e396c76f1db4d82e5aa7a6545580939f9b9d | [
"Apache-2.0"
] | 2,184 | 2016-07-05T12:04:14.000Z | 2022-03-30T19:10:12.000Z | modules/viz/misc/python/test/test_viz_simple.py | ptelang/opencv_contrib | dd68e396c76f1db4d82e5aa7a6545580939f9b9d | [
"Apache-2.0"
] | 5,535 | 2016-07-06T12:01:10.000Z | 2022-03-31T03:13:24.000Z | import os
import numpy as np
import cv2 as cv
from tests_common import NewOpenCVTests
def generate_test_trajectory():
result = []
angle_i = np.arange(0, 271, 3)
angle_j = np.arange(0, 1200, 10)
for i, j in zip(angle_i, angle_j):
x = 2 * np.cos(i * 3 * np.pi/180.0) * (1.0 + 0.5 * np.cos(1.2 + ... | 49.938636 | 149 | 0.608702 | 3,380 | 21,973 | 3.819822 | 0.102959 | 0.087522 | 0.018356 | 0.013012 | 0.593835 | 0.549764 | 0.483928 | 0.439238 | 0.375881 | 0.339013 | 0 | 0.077196 | 0.204114 | 21,973 | 439 | 150 | 50.052392 | 0.661082 | 0.003277 | 0 | 0.277457 | 1 | 0 | 0.078333 | 0.008154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072254 | false | 0 | 0.011561 | 0 | 0.089595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9741add91590600b38145770b0ba03c5f64d0c37 | 268 | py | Python | client.py | qhduan/ocr-web | f7a0830545064178ed3b12a7d94c3bb0e46d4423 | [
"Apache-2.0"
] | null | null | null | client.py | qhduan/ocr-web | f7a0830545064178ed3b12a7d94c3bb0e46d4423 | [
"Apache-2.0"
] | 5 | 2021-03-10T07:08:10.000Z | 2022-02-26T23:28:13.000Z | client.py | qhduan/ocr-web | f7a0830545064178ed3b12a7d94c3bb0e46d4423 | [
"Apache-2.0"
] | null | null | null |
import requests
import base64
with open('../tr/imgs/web.png', 'rb') as image:
image_string = base64.b64encode(image.read()).decode('UTF-8')
r = requests.post('http://localhost:8080/api/ocr/base64', json={'image': image_string, 'ext': '.png'})
print(r.json())
| 22.333333 | 102 | 0.671642 | 40 | 268 | 4.45 | 0.7 | 0.11236 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054393 | 0.108209 | 268 | 11 | 103 | 24.363636 | 0.690377 | 0 | 0 | 0 | 0 | 0 | 0.274436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
974596ba6918f18cebae0fdbaae96f3f0d52c9cc | 1,560 | py | Python | coralinedb/coraline_mssql.py | thananstr/coralinedb | fb1c3068a086759345733935e0fffedf29410201 | [
"MIT"
] | 2 | 2019-12-29T04:06:37.000Z | 2019-12-29T04:06:40.000Z | coralinedb/coraline_mssql.py | thananstr/coralinedb | fb1c3068a086759345733935e0fffedf29410201 | [
"MIT"
] | 3 | 2019-10-29T08:04:24.000Z | 2020-04-06T14:47:34.000Z | coralinedb/coraline_mssql.py | thananstr/coralinedb | fb1c3068a086759345733935e0fffedf29410201 | [
"MIT"
] | 3 | 2019-10-29T06:42:20.000Z | 2020-02-19T08:12:09.000Z | import pandas as pd
from coralinedb import BaseDB
class MSSQLDB(BaseDB):
"""
Class for MS SQL Server
"""
def get_engine_url(self, db_name: str) -> str:
"""Get Engine URL for MS SQL Server
Parameters
----------
db_name : str
database name
Returns
... | 24.375 | 113 | 0.569872 | 176 | 1,560 | 4.943182 | 0.392045 | 0.041379 | 0.018391 | 0.032184 | 0.209195 | 0.209195 | 0.209195 | 0.098851 | 0.098851 | 0 | 0 | 0.006679 | 0.328205 | 1,560 | 63 | 114 | 24.761905 | 0.823473 | 0.275641 | 0 | 0.210526 | 0 | 0.052632 | 0.194995 | 0.148071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.105263 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9747e9f0563f6d89b2b3a3b0fa941ed9838feb2d | 463 | py | Python | vtune/run_th.py | ContinuumIO/intel_hpc_2016_numba_tutorial | 99576db03a06931c9390064c76121317e452632b | [
"CC-BY-4.0"
] | 8 | 2016-11-12T22:56:30.000Z | 2022-03-15T12:59:49.000Z | vtune/run_th.py | Kang-Zhang/intel_hpc_2016_numba_tutorial | 99576db03a06931c9390064c76121317e452632b | [
"CC-BY-4.0"
] | null | null | null | vtune/run_th.py | Kang-Zhang/intel_hpc_2016_numba_tutorial | 99576db03a06931c9390064c76121317e452632b | [
"CC-BY-4.0"
] | 7 | 2016-11-12T22:56:35.000Z | 2021-04-07T12:19:38.000Z | import demo
import time
import threading
def slow_encode(input):
return demo.Encoder(input).process_slow()
def fast_encode(input):
return demo.Encoder(input).process_fast()
if __name__ == '__main__':
input = 'a' * 10000000 # 10 millions of 'a'
th1 = threading.Thread(target=slow_encode, ar... | 24.368421 | 62 | 0.656587 | 60 | 463 | 4.833333 | 0.45 | 0.068966 | 0.117241 | 0.144828 | 0.275862 | 0.275862 | 0.275862 | 0 | 0 | 0 | 0 | 0.043716 | 0.209503 | 463 | 18 | 63 | 25.722222 | 0.748634 | 0.038877 | 0 | 0 | 0 | 0 | 0.021176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.133333 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
97487efa5fdd50a560317b7618c5f8555b8222d3 | 1,970 | py | Python | MPI/BFS-MPI/graph500/generator/get_perf_new.py | felidsche/BigDataBench_V5.0_BigData_ComponentBenchmark | c65c3df033b84dfb6d229f74e564d69cfe624556 | [
"Apache-2.0"
] | null | null | null | MPI/BFS-MPI/graph500/generator/get_perf_new.py | felidsche/BigDataBench_V5.0_BigData_ComponentBenchmark | c65c3df033b84dfb6d229f74e564d69cfe624556 | [
"Apache-2.0"
] | null | null | null | MPI/BFS-MPI/graph500/generator/get_perf_new.py | felidsche/BigDataBench_V5.0_BigData_ComponentBenchmark | c65c3df033b84dfb6d229f74e564d69cfe624556 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2
import sys
import subprocess
import os, os.path
import exceptions
import re, string
import time
path=sys.argv[1]
interval=float(sys.argv[2])
def popen(cmd):
p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate(... | 40.204082 | 310 | 0.644162 | 307 | 1,970 | 4.022801 | 0.495114 | 0.019433 | 0.014575 | 0.016194 | 0.047773 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051165 | 0.107107 | 1,970 | 48 | 311 | 41.041667 | 0.650938 | 0.290863 | 0 | 0.216216 | 0 | 0 | 0.193525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.162162 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
975329800f17037ef2173edf4455c38e4421f349 | 4,604 | py | Python | arguments.py | Louiealbp/ContrastiveLearningGoalReaching | 4ef3e22cb8276a8c2f4f313e2b27138b9cd361b3 | [
"MIT"
] | null | null | null | arguments.py | Louiealbp/ContrastiveLearningGoalReaching | 4ef3e22cb8276a8c2f4f313e2b27138b9cd361b3 | [
"MIT"
] | null | null | null | arguments.py | Louiealbp/ContrastiveLearningGoalReaching | 4ef3e22cb8276a8c2f4f313e2b27138b9cd361b3 | [
"MIT"
] | null | null | null | import argparse
"""
Here are the param for the training
"""
def get_args():
parser = argparse.ArgumentParser()
# the environment setting
parser.add_argument('--env-name', type=str, default='FetchReach-v1', help='the environment name')
parser.add_argument('--n-epochs', type=int, default=50, help='the ... | 66.724638 | 109 | 0.707646 | 661 | 4,604 | 4.770045 | 0.249622 | 0.14843 | 0.280368 | 0.065652 | 0.307009 | 0.200761 | 0.17634 | 0.17634 | 0.14843 | 0.098953 | 0 | 0.019891 | 0.126412 | 4,604 | 68 | 110 | 67.705882 | 0.764048 | 0.007819 | 0 | 0 | 0 | 0 | 0.318805 | 0.025442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.017544 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97607816c9b57ab60b06d97ae57a2377cad581d8 | 1,546 | py | Python | app-packages/hbase/get-hbase-site.py | pramodthangali/incubator-slider | 8434b8971af93fe316e4b4c9f6d4a2a917caedd0 | [
"Apache-2.0"
] | 1 | 2019-01-18T21:00:19.000Z | 2019-01-18T21:00:19.000Z | app-packages/hbase/get-hbase-site.py | pramodthangali/incubator-slider | 8434b8971af93fe316e4b4c9f6d4a2a917caedd0 | [
"Apache-2.0"
] | null | null | null | app-packages/hbase/get-hbase-site.py | pramodthangali/incubator-slider | 8434b8971af93fe316e4b4c9f6d4a2a917caedd0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License,... | 31.55102 | 91 | 0.710867 | 239 | 1,546 | 4.598326 | 0.552301 | 0.054595 | 0.032757 | 0.029117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012618 | 0.179819 | 1,546 | 48 | 92 | 32.208333 | 0.854101 | 0.51423 | 0 | 0 | 0 | 0 | 0.202212 | 0.07109 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97623d584a0abd635d8864c706013ccae4b54f9a | 1,238 | py | Python | client/client.py | SantaSpeen/BotClient.Python | 4b989982ccbe3f8f31470a01909fc1dd27f76f9a | [
"MIT"
] | 1 | 2020-08-04T23:48:12.000Z | 2020-08-04T23:48:12.000Z | client/client.py | SantaSpeen/BotClient.Python | 4b989982ccbe3f8f31470a01909fc1dd27f76f9a | [
"MIT"
] | null | null | null | client/client.py | SantaSpeen/BotClient.Python | 4b989982ccbe3f8f31470a01909fc1dd27f76f9a | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter import ttk
from .tab0 import job
from .tab1 import stattistics
from .bar_menu import BarMenu
from .json_access import save_global_vars
save_global_vars() # Устанавливаем значения по умолчанию
root = Tk() # Основной класс
root.title("Клиент состояния бота.") # Задаём название дл... | 25.791667 | 76 | 0.756866 | 166 | 1,238 | 5.5 | 0.481928 | 0.07667 | 0.03724 | 0.03943 | 0.061336 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019793 | 0.142973 | 1,238 | 47 | 77 | 26.340426 | 0.840716 | 0.391761 | 0 | 0 | 0 | 0 | 0.077975 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.04 | false | 0 | 0.24 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9765f9796c68a31362deb43dea08410cb84c0dcd | 771 | py | Python | setup.py | kozzztik/aiomailserver | 95d1aaa956bb6154971440afb06bdcc500701983 | [
"MIT"
] | 1 | 2018-02-05T21:44:18.000Z | 2018-02-05T21:44:18.000Z | setup.py | kozzztik/aiomailserver | 95d1aaa956bb6154971440afb06bdcc500701983 | [
"MIT"
] | null | null | null | setup.py | kozzztik/aiomailserver | 95d1aaa956bb6154971440afb06bdcc500701983 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
__version__ = '0.0.1'
setup(
name='aiomailserver',
version=__version__,
description='aiomailserver - asyncio based simple mail server',
long_description="",
author='https://github.com/kozzztik',
url='https://github.com/kozzztik/aiomailserver',
... | 26.586207 | 69 | 0.623865 | 74 | 771 | 6.310811 | 0.716216 | 0.051392 | 0.059957 | 0.094218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011925 | 0.238651 | 771 | 28 | 70 | 27.535714 | 0.783646 | 0.005188 | 0 | 0.083333 | 0 | 0 | 0.448366 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
977d0af5a6197ca3f1bf4562c3ac0936e09d6097 | 770 | py | Python | pubmed_parser/__init__.py | nicford/pubmed_parser | 4644946d3b9e9c13968e30ec4129a8f43a56d1ff | [
"MIT"
] | null | null | null | pubmed_parser/__init__.py | nicford/pubmed_parser | 4644946d3b9e9c13968e30ec4129a8f43a56d1ff | [
"MIT"
] | null | null | null | pubmed_parser/__init__.py | nicford/pubmed_parser | 4644946d3b9e9c13968e30ec4129a8f43a56d1ff | [
"MIT"
] | null | null | null | """
Pubmed Parser: A Python Parser for PubMed Open-Access XML Subset and MEDLINE XML Dataset
Author: Titipat Achakulvisut, Daniel E. Acuna
"""
__version__ = '0.2.1'
from .pubmed_oa_parser import list_xml_path, \
parse_pubmed_xml, \
parse_pubmed_references, \
... | 42.777778 | 88 | 0.567532 | 79 | 770 | 5.101266 | 0.506329 | 0.136476 | 0.084367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006342 | 0.385714 | 770 | 18 | 89 | 42.777778 | 0.845666 | 0.175325 | 0 | 0 | 0 | 0 | 0.007962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
978e07962b0c24de8c5af7b938111d1053223538 | 3,273 | py | Python | ansible_enroll/generate_inventory.py | brtknr/arcus-terraform-idrac | 091c2c14165ac4a51150ae6d2763c9c3fcc93aac | [
"Apache-2.0"
] | null | null | null | ansible_enroll/generate_inventory.py | brtknr/arcus-terraform-idrac | 091c2c14165ac4a51150ae6d2763c9c3fcc93aac | [
"Apache-2.0"
] | null | null | null | ansible_enroll/generate_inventory.py | brtknr/arcus-terraform-idrac | 091c2c14165ac4a51150ae6d2763c9c3fcc93aac | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
Generates inventory from neutron iDRAC ports
If you have created ports in Neutron to provide iDRAC
with their IPs via DHCP, we can use that information
to build an inventory file.
Note: we provide a terraform script to create those
ports using
Its also possible you have built an inventory ... | 28.964602 | 104 | 0.616865 | 432 | 3,273 | 4.527778 | 0.393519 | 0.025051 | 0.015337 | 0.01636 | 0.079755 | 0.054192 | 0.02454 | 0.02454 | 0 | 0 | 0 | 0.017143 | 0.251451 | 3,273 | 112 | 105 | 29.223214 | 0.781224 | 0.145432 | 0 | 0 | 1 | 0.012821 | 0.292578 | 0.030118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.012821 | 0.064103 | 0 | 0.179487 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
978fe3bba6dc4ed793da4506f9d55164169f1243 | 1,460 | py | Python | server/content_app/models.py | AzamatKomaev/social_site | 4db54c593e6315aa9a767b4db75f43a0cd7f2683 | [
"MIT"
] | 2 | 2021-11-16T04:46:47.000Z | 2022-02-15T12:06:08.000Z | server/content_app/models.py | AzamatKomaev/social_site | 4db54c593e6315aa9a767b4db75f43a0cd7f2683 | [
"MIT"
] | null | null | null | server/content_app/models.py | AzamatKomaev/social_site | 4db54c593e6315aa9a767b4db75f43a0cd7f2683 | [
"MIT"
] | null | null | null | from django.db import models
from server.settings import AUTH_USER_MODEL
def post_file_path(instance, filename):
return f'user_{instance.user.id}/posts/{filename}'
class Category(models.Model):
name = models.CharField(max_length=255)
avatar = models.ImageField(default="", upload_to="category_images")
... | 27.54717 | 78 | 0.70137 | 181 | 1,460 | 5.38674 | 0.359116 | 0.067692 | 0.057436 | 0.086154 | 0.356923 | 0.33641 | 0.33641 | 0.33641 | 0.260513 | 0.260513 | 0 | 0.005102 | 0.194521 | 1,460 | 52 | 79 | 28.076923 | 0.82398 | 0 | 0 | 0.333333 | 0 | 0 | 0.086361 | 0.027416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9790712616382f8475c83be611ae67cbfa8e9a34 | 721 | py | Python | research_/research/migrations/0003_auto_20190707_0909.py | yadavshani67/research_paper | 61c22140dff309e4b5d7aee9147cd8547adf7ed2 | [
"Apache-2.0"
] | null | null | null | research_/research/migrations/0003_auto_20190707_0909.py | yadavshani67/research_paper | 61c22140dff309e4b5d7aee9147cd8547adf7ed2 | [
"Apache-2.0"
] | null | null | null | research_/research/migrations/0003_auto_20190707_0909.py | yadavshani67/research_paper | 61c22140dff309e4b5d7aee9147cd8547adf7ed2 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.2 on 2019-07-07 09:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('research', '0002_auto_20... | 26.703704 | 121 | 0.635229 | 81 | 721 | 5.493827 | 0.54321 | 0.053933 | 0.062921 | 0.098876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057836 | 0.256588 | 721 | 26 | 122 | 27.730769 | 0.772388 | 0.062413 | 0 | 0.2 | 1 | 0 | 0.081602 | 0.034125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
979890115fc76e1e60b5e3a082709a8328309f62 | 556 | py | Python | zauberer_game/zauber_pak/act2.py | fwalterjames/zauberer | 3bc4ad4401f27900e009d4d20efaa3a438fe8017 | [
"MIT"
] | null | null | null | zauberer_game/zauber_pak/act2.py | fwalterjames/zauberer | 3bc4ad4401f27900e009d4d20efaa3a438fe8017 | [
"MIT"
] | null | null | null | zauberer_game/zauber_pak/act2.py | fwalterjames/zauberer | 3bc4ad4401f27900e009d4d20efaa3a438fe8017 | [
"MIT"
] | null | null | null | import pygame
from pygame import mixer
def act_two_intro():
welcome = mixer.Sound("Welcome.mp3")
welcome.play()
input("\n👹 Hello and welcome to Zauberer 👹: Press Enter to continue")
print("==================================")
print("Zauberer is a text-based fantasy adventure game, in wh... | 46.333333 | 116 | 0.636691 | 85 | 556 | 4.235294 | 0.741176 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002247 | 0.19964 | 556 | 12 | 116 | 46.333333 | 0.788764 | 0 | 0 | 0 | 0 | 0.1 | 0.668498 | 0.062271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
979a27694bc3654d8053063b7de020d957c0016b | 611 | py | Python | setup.py | forgi86/pytorch-ident | fad75f6d44f81bf9f368750bf6bc0954709c6275 | [
"MIT"
] | 2 | 2021-07-19T17:10:27.000Z | 2021-07-20T06:47:41.000Z | setup.py | forgi86/pytorch-ident | fad75f6d44f81bf9f368750bf6bc0954709c6275 | [
"MIT"
] | null | null | null | setup.py | forgi86/pytorch-ident | fad75f6d44f81bf9f368750bf6bc0954709c6275 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='pytorch-ident',
version='0.1.1',
url='https://github.com/forgi86/pytorch-ident.git',
author='Marco Forgione',
author_email='marco.forgione1986@gmail.com',
description='System identification with pytorch package',
packages=find_package... | 32.157895 | 80 | 0.654664 | 64 | 611 | 6.171875 | 0.8125 | 0.060759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018145 | 0.188216 | 611 | 18 | 81 | 33.944444 | 0.778226 | 0.021277 | 0 | 0 | 0 | 0 | 0.463087 | 0.04698 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97a04acc8a166d839829a78e99ef342791aee1ef | 914 | py | Python | udptesting/src/udpclient.py | quhxuxm/ppaass-rust | ad2873b95860e43746187d2706b1fea8340657c2 | [
"Apache-2.0"
] | 1 | 2021-09-07T07:57:35.000Z | 2021-09-07T07:57:35.000Z | udptesting/src/udpclient.py | quhxuxm/ppaass-rust | ad2873b95860e43746187d2706b1fea8340657c2 | [
"Apache-2.0"
] | null | null | null | udptesting/src/udpclient.py | quhxuxm/ppaass-rust | ad2873b95860e43746187d2706b1fea8340657c2 | [
"Apache-2.0"
] | null | null | null | import socket
import socks
if __name__ == "__main__":
client_udp_socket = socks.socksocket(socket.AF_INET, socket.SOCK_DGRAM)
client_udp_socket.set_proxy(socks.SOCKS5, "192.168.31.200", 10080)
# client_udp_socket.set_proxy(socks.SOCKS5, "10.175.4.220", 10081)
# client_udp_socket.bind(("0.0.0.0", 9999)... | 41.545455 | 88 | 0.669584 | 133 | 914 | 4.360902 | 0.458647 | 0.139655 | 0.232759 | 0.062069 | 0.213793 | 0.117241 | 0.117241 | 0 | 0 | 0 | 0 | 0.104478 | 0.193654 | 914 | 21 | 89 | 43.52381 | 0.682497 | 0.172867 | 0 | 0 | 0 | 0 | 0.277926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97a9e035a8f7ebd3724dcbcdd5fcea071c09be35 | 654 | py | Python | instag/forms.py | michael760odhiambo/instagrame-clone | 716261fee88ef000a47a58cb5d33fe5bd3c309b3 | [
"Unlicense"
] | null | null | null | instag/forms.py | michael760odhiambo/instagrame-clone | 716261fee88ef000a47a58cb5d33fe5bd3c309b3 | [
"Unlicense"
] | 5 | 2020-02-12T03:14:42.000Z | 2021-09-08T01:23:34.000Z | instag/forms.py | michael760odhiambo/instagrame-clone | 716261fee88ef000a47a58cb5d33fe5bd3c309b3 | [
"Unlicense"
] | null | null | null | from django import forms
from .models import Comment,Profile ,Pic
class ProfileForm(forms.ModelForm):
model = Profile
username = forms.CharField(label='Username', max_length=40)
bio = forms.CharField(label='Image Caption', max_length=500)
profile_pic = forms.ImageField(label='Image Field')
class Pr... | 10.548387 | 64 | 0.617737 | 69 | 654 | 5.811594 | 0.449275 | 0.104738 | 0.104738 | 0.114713 | 0.139651 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010684 | 0.284404 | 654 | 61 | 65 | 10.721311 | 0.846154 | 0 | 0 | 0.277778 | 0 | 0 | 0.069243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
97abfe75337a43d2c2450512d6d1b914c92601a1 | 594 | py | Python | Pwannar/urls.py | skh03089/Pwannar | c1112ac8001fa71f33633e61ccd2ce1ab726e31f | [
"MIT"
] | null | null | null | Pwannar/urls.py | skh03089/Pwannar | c1112ac8001fa71f33633e61ccd2ce1ab726e31f | [
"MIT"
] | null | null | null | Pwannar/urls.py | skh03089/Pwannar | c1112ac8001fa71f33633e61ccd2ce1ab726e31f | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('core.urls', namespace='core')),
path('accounts/', include('accounts.urls', namespace=... | 39.6 | 83 | 0.722222 | 72 | 594 | 5.875 | 0.333333 | 0.094563 | 0.066194 | 0.108747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 594 | 15 | 84 | 39.6 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97af46737e309c7efe1886e959e3b1250294c8f1 | 3,977 | py | Python | tests/unitTests/scripts/remoteView.py | declarativitydotnet/p2 | 59fa258b222a5ff0e6930da4f08acd6155cd378e | [
"BSD-3-Clause"
] | 3 | 2016-01-26T22:19:12.000Z | 2019-07-10T02:12:38.000Z | tests/unitTests/scripts/remoteView.py | declarativitydotnet/p2 | 59fa258b222a5ff0e6930da4f08acd6155cd378e | [
"BSD-3-Clause"
] | null | null | null | tests/unitTests/scripts/remoteView.py | declarativitydotnet/p2 | 59fa258b222a5ff0e6930da4f08acd6155cd378e | [
"BSD-3-Clause"
] | null | null | null | #
# * This file is distributed under the terms in the attached LICENSE file.
# * If you do not find this file, copies can be found by writing to:
# * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300,
# * Berkeley, CA, 94704. Attention: Intel License Inquiry.
# * Or
# * UC Berkeley EECS Computer Science Divis... | 28.407143 | 121 | 0.591903 | 527 | 3,977 | 4.383302 | 0.335863 | 0.020779 | 0.01039 | 0.028571 | 0.292641 | 0.257143 | 0.227706 | 0.192208 | 0.170563 | 0.170563 | 0 | 0.082673 | 0.270053 | 3,977 | 139 | 122 | 28.611511 | 0.713055 | 0.289917 | 0 | 0.21519 | 0 | 0.012658 | 0.19897 | 0.008459 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012658 | 0.088608 | null | null | 0.126582 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97af6ea5045ff50c9c8bec28e2f61e84e53de207 | 1,038 | py | Python | src/pairs/ir/assign.py | rafaelravedutti/pairs | 7023107ec4e2a3a6a2a3c21f4114e8178d61ca88 | [
"MIT"
] | null | null | null | src/pairs/ir/assign.py | rafaelravedutti/pairs | 7023107ec4e2a3a6a2a3c21f4114e8178d61ca88 | [
"MIT"
] | null | null | null | src/pairs/ir/assign.py | rafaelravedutti/pairs | 7023107ec4e2a3a6a2a3c21f4114e8178d61ca88 | [
"MIT"
] | null | null | null | from functools import reduce
from pairs.ir.ast_node import ASTNode
from pairs.ir.data_types import Type_Vector
from pairs.ir.lit import as_lit_ast
from pairs.ir.vector_expr import VectorExpression
class Assign(ASTNode):
def __init__(self, sim, dest, src):
super().__init__(sim)
self.type = dest.typ... | 30.529412 | 111 | 0.621387 | 147 | 1,038 | 4.22449 | 0.346939 | 0.169082 | 0.070853 | 0.048309 | 0.117552 | 0.117552 | 0.074074 | 0 | 0 | 0 | 0 | 0.00651 | 0.260116 | 1,038 | 33 | 112 | 31.454545 | 0.802083 | 0 | 0 | 0 | 0 | 0 | 0.025048 | 0.025048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.16 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
97af82ac4d82cbae3560626530f44ac84dcedfb0 | 4,818 | py | Python | output.py | mrsamuelbarnes/Blockchain-Ballot | 73fea5927f496280a5c6339e817e11c9bb68415a | [
"MIT"
] | 3 | 2016-10-27T13:51:36.000Z | 2017-10-13T06:41:34.000Z | output.py | mrsamuelbarnes/Blockchain-Ballot | 73fea5927f496280a5c6339e817e11c9bb68415a | [
"MIT"
] | null | null | null | output.py | mrsamuelbarnes/Blockchain-Ballot | 73fea5927f496280a5c6339e817e11c9bb68415a | [
"MIT"
] | 5 | 2017-04-27T11:20:29.000Z | 2019-12-28T03:03:52.000Z | # Import custom modules
import ballot
import keys
import geth
# Output a list of all the saved ballots
def allBallots(showIndexes=False, showBallotDetail=True):
# Get the saved ballots
savedBallots = ballot.savedBallots();
# Check if there are any saved ballots
if len(savedBallots) < 1:
# No... | 25.903226 | 82 | 0.579909 | 542 | 4,818 | 5.154982 | 0.178967 | 0.03257 | 0.017895 | 0.022906 | 0.357552 | 0.266643 | 0.199714 | 0.168933 | 0.123837 | 0.102362 | 0 | 0.002582 | 0.356995 | 4,818 | 186 | 83 | 25.903226 | 0.89929 | 0.355127 | 0 | 0.362319 | 0 | 0 | 0.044918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.231884 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97c7a2eb3e1dfb847f62413e89d2dd1deb509c6d | 296 | py | Python | altair_saver/types.py | RoyalTS/altair_saver | 31febb5faf7c3d6d27c2f5fe4045635099143042 | [
"BSD-3-Clause"
] | 6 | 2020-01-02T21:39:56.000Z | 2021-02-04T20:58:02.000Z | altair_saver/_types.py | jakevdp/altair_saver | 98813667f911be7f4e46851854e2ed8c8f7dedd6 | [
"BSD-3-Clause"
] | null | null | null | altair_saver/_types.py | jakevdp/altair_saver | 98813667f911be7f4e46851854e2ed8c8f7dedd6 | [
"BSD-3-Clause"
] | null | null | null | __all__ = ["JSON", "JSONDict", "MimebundleContent", "Mimebundle"]
from typing import Any, Dict, List, Union
JSON = Union[str, int, float, bool, None, Dict[str, Any], List[Any]]
JSONDict = Dict[str, JSON]
MimebundleContent = Union[str, bytes, JSONDict]
Mimebundle = Dict[str, MimebundleContent]
| 32.888889 | 68 | 0.722973 | 37 | 296 | 5.675676 | 0.486486 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128378 | 296 | 8 | 69 | 37 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.131757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97c893ab6a451142bf98b92a0415a39062f5ed0b | 2,706 | py | Python | 23_Basic_testbench_1.0/testbench.py | raysalemi/python4uvm_examples | b0897e4603c1e7417e5f30984ad59217f13ce017 | [
"MIT"
] | 1 | 2022-01-10T02:00:35.000Z | 2022-01-10T02:00:35.000Z | 23_Basic_testbench_1.0/testbench.py | raysalemi/python4uvm_examples | b0897e4603c1e7417e5f30984ad59217f13ce017 | [
"MIT"
] | null | null | null | 23_Basic_testbench_1.0/testbench.py | raysalemi/python4uvm_examples | b0897e4603c1e7417e5f30984ad59217f13ce017 | [
"MIT"
] | 1 | 2022-01-11T16:12:02.000Z | 2022-01-11T16:12:02.000Z | # ## Importing modules
# Figure 3: Importing needed resources
import cocotb
from cocotb.triggers import FallingEdge
import random
# ### The tinyalu_utils module
# All testbenches use tinyalu_utils, so store it in a central
# place and add its path to the sys path so we can import it
from pathlib import Path
parent_... | 31.835294 | 76 | 0.602735 | 384 | 2,706 | 4.190104 | 0.375 | 0.014916 | 0.035426 | 0.041019 | 0.087011 | 0.06215 | 0.044748 | 0.044748 | 0 | 0 | 0 | 0.031069 | 0.298226 | 2,706 | 84 | 77 | 32.214286 | 0.816219 | 0.304139 | 0 | 0.160714 | 0 | 0.017857 | 0.123913 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0 | false | 0.089286 | 0.107143 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8ad774aa343b1e08a8b3e4cb886c4dbf2346596d | 4,253 | py | Python | DecryptLogin/modules/core/stackoverflow.py | hedou/DecryptLogin | ff86a5d378c8a42d1caebbb7482658a95053f716 | [
"Apache-2.0"
] | null | null | null | DecryptLogin/modules/core/stackoverflow.py | hedou/DecryptLogin | ff86a5d378c8a42d1caebbb7482658a95053f716 | [
"Apache-2.0"
] | null | null | null | DecryptLogin/modules/core/stackoverflow.py | hedou/DecryptLogin | ff86a5d378c8a42d1caebbb7482658a95053f716 | [
"Apache-2.0"
] | null | null | null | '''
Function:
stackoverflow模拟登录
Author:
Charles
微信公众号:
Charles的皮卡丘
更新日期:
2022-03-10
'''
import re
import requests
'''PC端登录stackoverflow'''
class stackoverflowPC():
is_callable = True
def __init__(self, **kwargs):
for key, value in kwargs.items(): setattr(self, key, value)
self.... | 34.024 | 144 | 0.58735 | 441 | 4,253 | 5.530612 | 0.346939 | 0.03157 | 0.0328 | 0.02788 | 0.271013 | 0.224682 | 0.174662 | 0.174662 | 0.174662 | 0.174662 | 0 | 0.013004 | 0.276746 | 4,253 | 125 | 145 | 34.024 | 0.779909 | 0.028921 | 0 | 0.2125 | 0 | 0.0125 | 0.246285 | 0.012933 | 0 | 0 | 0 | 0 | 0.0125 | 1 | 0.1 | false | 0.0625 | 0.025 | 0 | 0.25 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8ad938dff0ef82673ce71b5ae2f13adeb72dd4f6 | 311 | py | Python | recipes/Python/114579_remotely_exit_XMLRPC_Server/recipe-114579.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/114579_remotely_exit_XMLRPC_Server/recipe-114579.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/114579_remotely_exit_XMLRPC_Server/recipe-114579.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | from SimpleXMLRPCServer import *
class MyServer(SimpleXMLRPCServer):
def serve_forever(self):
self.quit = 0
while not self.quit:
self.handle_request()
def kill():
server.quit = 1
return 1
server = MyServer(('127.0.0.1', 8000))
server.register_function(kill)
server.serve_forever()
| 15.55 | 38 | 0.697749 | 41 | 311 | 5.195122 | 0.560976 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051383 | 0.186495 | 311 | 19 | 39 | 16.368421 | 0.790514 | 0 | 0 | 0 | 0 | 0 | 0.028939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ada78307d6e51d0001575fe78147503a5443e07 | 449 | py | Python | Cadastro de Produtos/clientes/migrations/0006_auto_20220224_2036.py | Drack112/Treina-Web-Django | 555ecce1c351769240eefd4340b63e547f3bd2a9 | [
"MIT"
] | null | null | null | Cadastro de Produtos/clientes/migrations/0006_auto_20220224_2036.py | Drack112/Treina-Web-Django | 555ecce1c351769240eefd4340b63e547f3bd2a9 | [
"MIT"
] | null | null | null | Cadastro de Produtos/clientes/migrations/0006_auto_20220224_2036.py | Drack112/Treina-Web-Django | 555ecce1c351769240eefd4340b63e547f3bd2a9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2022-02-24 20:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("clientes", "0005_auto_20190408_1309")]
operations = [
migrations.AlterModelOptions(
name="cliente",
options={"verbose_name": "Cliente", "... | 26.411765 | 83 | 0.657016 | 47 | 449 | 6.12766 | 0.723404 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087819 | 0.213808 | 449 | 16 | 84 | 28.0625 | 0.728045 | 0.100223 | 0 | 0 | 1 | 0 | 0.263682 | 0.057214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ae1f0a561ddfa3f1478ae38f958edbace3f6b90 | 665 | py | Python | main.py | haydenshively/Tezos-Prediction | 0718fb45b0f9e12e388110394d251a7d9794d3c0 | [
"MIT"
] | 1 | 2020-07-19T14:30:29.000Z | 2020-07-19T14:30:29.000Z | main.py | haydenshively/Tezos-Prediction | 0718fb45b0f9e12e388110394d251a7d9794d3c0 | [
"MIT"
] | null | null | null | main.py | haydenshively/Tezos-Prediction | 0718fb45b0f9e12e388110394d251a7d9794d3c0 | [
"MIT"
] | 1 | 2021-07-12T22:43:46.000Z | 2021-07-12T22:43:46.000Z | from training.train_cnn_timeseries import main as train_cnn_timeseries
from training.train_lstm import main as train_lstm
from testing.test_cnn_timeseries import main as test_cnn_timeseries
from testing.test_lstm import main as test_lstm
if __name__ == '__main__':
# train_cnn_timeseries('dataset/train')
# tra... | 41.5625 | 91 | 0.747368 | 103 | 665 | 4.456311 | 0.262136 | 0.198257 | 0.104575 | 0.100218 | 0.213508 | 0.104575 | 0.104575 | 0 | 0 | 0 | 0 | 0.02551 | 0.115789 | 665 | 15 | 92 | 44.333333 | 0.755102 | 0.097744 | 0 | 0 | 0 | 0 | 0.274707 | 0.093802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8ae2c5921512f4a48df5b7f8d021e1e428d20264 | 545 | py | Python | ai_haste/loss/log_squared_loss.py | aidotse/Team-Haste | b8e074d396be31c0b5c292053aff160c55b75786 | [
"MIT"
] | null | null | null | ai_haste/loss/log_squared_loss.py | aidotse/Team-Haste | b8e074d396be31c0b5c292053aff160c55b75786 | [
"MIT"
] | null | null | null | ai_haste/loss/log_squared_loss.py | aidotse/Team-Haste | b8e074d396be31c0b5c292053aff160c55b75786 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
class LogSquaredLoss(nn.Module):
def __init__(self,):
super(LogSquaredLoss, self).__init__()
self.l1 = nn.L1Loss()
self.eps = 1e-8
def forward(self, output, target):
# output = torch.log((output) + self.eps)
... | 28.684211 | 81 | 0.590826 | 71 | 545 | 4.422535 | 0.380282 | 0.111465 | 0.082803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014851 | 0.258716 | 545 | 18 | 82 | 30.277778 | 0.762376 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8ae823aadfd5ae3a6537740416b4b0f6c4fad6b9 | 6,203 | py | Python | django-row-tracker.py | shearichard/django-row-tracker | b5aa09a48610c190a0aa4a790c4e6f98e27ef075 | [
"BSD-3-Clause"
] | null | null | null | django-row-tracker.py | shearichard/django-row-tracker | b5aa09a48610c190a0aa4a790c4e6f98e27ef075 | [
"BSD-3-Clause"
] | null | null | null | django-row-tracker.py | shearichard/django-row-tracker | b5aa09a48610c190a0aa4a790c4e6f98e27ef075 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import sys
import os
import datetime
import sqlite3
def create_tables_if_necessary(conn):
'''
Creates the tables within an empty database
'''
lst_sql = []
lst_sql.append('''
CREATE TABLE IF NOT EXISTS [DRC_PROJECT] ( \
[PRO_ID] INTEGER NOT NULL PRIMARY KEY AUTOIN... | 35.244318 | 158 | 0.634048 | 828 | 6,203 | 4.507246 | 0.235507 | 0.014737 | 0.012862 | 0.019293 | 0.289121 | 0.257503 | 0.242497 | 0.182744 | 0.14791 | 0.111736 | 0 | 0.004305 | 0.251008 | 6,203 | 175 | 159 | 35.445714 | 0.798967 | 0.012897 | 0 | 0.206897 | 0 | 0.008621 | 0.406167 | 0.018075 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077586 | null | null | 0.025862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8af2c0bd73ad68ff7f6cb4c0caf716f497394bda | 5,037 | py | Python | modules/SOM_F1.[Scatter Changes in Temp and GDP Sulfate].py | YixuanZheng/Aerosol_Inequality_2019 | 029b198311f192dbb98b96053ce0fbc55a3ab392 | [
"MIT"
] | 3 | 2020-02-19T12:27:38.000Z | 2020-03-11T12:19:47.000Z | modules/SOM_F1.[Scatter Changes in Temp and GDP Sulfate].py | YixuanZheng/Aerosol_Inequality_2019 | 029b198311f192dbb98b96053ce0fbc55a3ab392 | [
"MIT"
] | null | null | null | modules/SOM_F1.[Scatter Changes in Temp and GDP Sulfate].py | YixuanZheng/Aerosol_Inequality_2019 | 029b198311f192dbb98b96053ce0fbc55a3ab392 | [
"MIT"
] | 2 | 2020-04-19T22:19:10.000Z | 2021-03-04T15:04:28.000Z | # -*- coding: utf-8 -*-
'''
This code generates Fig. S11
Country-level temperature changes and the associated GDP increment induced by anthropogenic SULFATE aerosols
by Yixuan Zheng (yxzheng@carnegiescience.edu)
'''
import _env
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotl... | 39.351563 | 185 | 0.674409 | 802 | 5,037 | 4.041147 | 0.302993 | 0.027769 | 0.018513 | 0.020056 | 0.528232 | 0.502314 | 0.483801 | 0.482876 | 0.434125 | 0.434125 | 0 | 0.059484 | 0.098868 | 5,037 | 127 | 186 | 39.661417 | 0.654549 | 0.082986 | 0 | 0.25641 | 1 | 0 | 0.236745 | 0.076302 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0 | 0.102564 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8af5b9ee7f5ec05b15aba0d1109f5756e7aecc7f | 4,583 | py | Python | tests/test_organism_label_classifier.py | kubic71/bachelors-thesis | f17a85e4e144972034f1d2174b51e63c68b39ff7 | [
"MIT"
] | null | null | null | tests/test_organism_label_classifier.py | kubic71/bachelors-thesis | f17a85e4e144972034f1d2174b51e63c68b39ff7 | [
"MIT"
] | null | null | null | tests/test_organism_label_classifier.py | kubic71/bachelors-thesis | f17a85e4e144972034f1d2174b51e63c68b39ff7 | [
"MIT"
] | null | null | null | # mypy: allow-untyped-defs, no-strict-optional
import pytest
from advpipe.language_model.label_classification import OrganismLabelClassifier
@pytest.fixture
def organism_label_classifier():
return OrganismLabelClassifier()
organism_labels = [
'Arctic Wolf',
'Basilisk',
'Black panther',
'Bobolin... | 31.390411 | 93 | 0.674449 | 506 | 4,583 | 5.91502 | 0.719368 | 0.060809 | 0.069161 | 0.038757 | 0.125292 | 0.095556 | 0.095556 | 0.095556 | 0.062813 | 0.062813 | 0 | 0.204031 | 0.209688 | 4,583 | 146 | 94 | 31.390411 | 0.622308 | 0.30635 | 0 | 0 | 0 | 0 | 0.345472 | 0 | 0 | 0 | 0 | 0 | 0.032 | 1 | 0.04 | false | 0 | 0.016 | 0.008 | 0.064 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8af964d831a5198fdf49266182d5899d52eaea5a | 5,166 | py | Python | python2/prac/pracmodules/obj_recognition/src/obj.py | danielnyga/prac-dev | 107855cb9ddc294467098334725065b3937af150 | [
"BSD-2-Clause"
] | 3 | 2018-10-04T05:13:02.000Z | 2022-01-18T15:06:05.000Z | python2/prac/pracmodules/obj_recognition/src/obj.py | danielnyga/prac-dev | 107855cb9ddc294467098334725065b3937af150 | [
"BSD-2-Clause"
] | 2 | 2017-03-01T07:17:14.000Z | 2019-06-26T14:28:57.000Z | python2/prac/pracmodules/obj_recognition/src/obj.py | danielnyga/prac-dev | 107855cb9ddc294467098334725065b3937af150 | [
"BSD-2-Clause"
] | 2 | 2018-12-18T23:01:11.000Z | 2020-12-15T08:57:19.000Z | # PROBABILISTIC ROBOT ACTION CORES
#
# (C) 2014 by Mareike Picklum (mareikep@cs.uni-bremen.de)
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limi... | 38.842105 | 107 | 0.646729 | 571 | 5,166 | 5.793345 | 0.457093 | 0.026602 | 0.031439 | 0.019952 | 0.017533 | 0.017533 | 0 | 0 | 0 | 0 | 0 | 0.003966 | 0.267906 | 5,166 | 132 | 108 | 39.136364 | 0.870703 | 0.258808 | 0 | 0.027027 | 0 | 0 | 0.080485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8afa161e7b9ca1a174d9aacaec39c9d733e584ad | 460 | py | Python | Chapter04_code/ch04_r09_related/models/library_book.py | PacktPublishing/Odoo-Development-Cookbook | 5553110c0bc352c4541f11904e236cad3c443b8b | [
"MIT"
] | 55 | 2016-05-23T16:05:50.000Z | 2021-07-19T00:16:46.000Z | Chapter04_code/ch04_r09_related/models/library_book.py | kogkog098/Odoo-Development-Cookbook | 166c9b98efbc9108b30d719213689afb1f1c294d | [
"MIT"
] | 1 | 2016-12-09T02:14:21.000Z | 2018-07-02T09:02:20.000Z | Chapter04_code/ch04_r09_related/models/library_book.py | kogkog098/Odoo-Development-Cookbook | 166c9b98efbc9108b30d719213689afb1f1c294d | [
"MIT"
] | 52 | 2016-06-01T20:03:59.000Z | 2020-10-31T23:58:25.000Z | # -*- coding: utf-8 -*-
from openerp import models, fields
class LibraryBook(models.Model):
_name = 'library.book'
name = fields.Char('Title', required=True)
date_release = fields.Date('Release Date')
author_ids = fields.Many2many('res.partner', string='Authors')
publisher_id = fields.Many2one(
... | 27.058824 | 66 | 0.663043 | 53 | 460 | 5.641509 | 0.603774 | 0.06689 | 0.107023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008108 | 0.195652 | 460 | 16 | 67 | 28.75 | 0.8 | 0.045652 | 0 | 0 | 0 | 0 | 0.224256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8affb1802ee8c98d592915b0322d25669e207a07 | 450 | py | Python | ClassWorks/Lessons3/Tuples.py | PhantomMind/FamousTeamDream | 1268950a2f18236f0fda364a5484b478280f39f7 | [
"Apache-2.0"
] | 1 | 2020-01-10T14:00:45.000Z | 2020-01-10T14:00:45.000Z | ClassWorks/Lessons3/Tuples.py | PhantomMind/FamousTeamDream | 1268950a2f18236f0fda364a5484b478280f39f7 | [
"Apache-2.0"
] | null | null | null | ClassWorks/Lessons3/Tuples.py | PhantomMind/FamousTeamDream | 1268950a2f18236f0fda364a5484b478280f39f7 | [
"Apache-2.0"
] | null | null | null |
a = (1, 2, 3, 4, 5)
print(a, type(a))
b = (6, 7, [10, 20, 30])
print(b, type(b))
b[2].append(100)
print(b, type(b))
print(len(a))
print(2 in a or 5 in a and 3 in a)
print(a + b, b + a)
print(sum(a))
print(a.index(2))
a.count(4)
print(a.__sizeof__())
# you can't change tuple after init
# but you can make ch... | 12.5 | 54 | 0.613333 | 96 | 450 | 2.833333 | 0.416667 | 0.110294 | 0.073529 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080111 | 0.195556 | 450 | 35 | 55 | 12.857143 | 0.671271 | 0.191111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.611111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
c111718482cf42276d2d78d17b74ce21fa098da6 | 1,322 | py | Python | experiments/ashvin/icml2020/data_management/stats.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | experiments/ashvin/icml2020/data_management/stats.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | experiments/ashvin/icml2020/data_management/stats.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | """Load and print summary statistics of the given trajectories"""
import pickle
import numpy as np
import argparse
def print_stat(array, name):
print(name)
print("min", np.min(array))
print("max", np.max(array))
print("mean", np.mean(array))
print("std", np.std(array))
def print_stats(args):
... | 28.12766 | 75 | 0.657337 | 174 | 1,322 | 4.856322 | 0.373563 | 0.053254 | 0.049704 | 0.063905 | 0.170414 | 0.170414 | 0.170414 | 0.170414 | 0.170414 | 0.115976 | 0 | 0.015873 | 0.189864 | 1,322 | 46 | 76 | 28.73913 | 0.773109 | 0.22466 | 0 | 0 | 0 | 0 | 0.124016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.166667 | 0.433333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
c114c13b98ba21486d45a04db9332037df946ec1 | 6,920 | py | Python | src/EKF.py | noskill/JRMOT_ROS | 2a95d858818a77e8488e4a8dfb9f8030134210d9 | [
"MIT"
] | 112 | 2020-04-06T04:20:36.000Z | 2022-03-21T07:56:37.000Z | src/EKF.py | chisyliu/JRMOT_ROS | ca1e87e51ecfeb14f2b652d613f3b02c592afb38 | [
"MIT"
] | 18 | 2020-04-13T08:39:12.000Z | 2022-02-01T17:28:42.000Z | src/EKF.py | chisyliu/JRMOT_ROS | ca1e87e51ecfeb14f2b652d613f3b02c592afb38 | [
"MIT"
] | 31 | 2020-03-29T04:05:36.000Z | 2022-03-31T09:33:20.000Z | # vim: expandtab:ts=4:sw=4
import numpy as np
import scipy.linalg
import pdb
"""
Table for the 0.95 quantile of the chi-square distribution with N degrees of
freedom (contains values for N=1, ..., 9). Taken from MATLAB/Octave's chi2inv
function and used as Mahalanobis gating threshold.
"""
chi2inv95 = {
1: 3.8415,... | 27.244094 | 106 | 0.577601 | 852 | 6,920 | 4.586854 | 0.298122 | 0.039406 | 0.027636 | 0.016377 | 0.250256 | 0.167861 | 0.143296 | 0.100819 | 0.082907 | 0.063971 | 0 | 0.070573 | 0.324277 | 6,920 | 253 | 107 | 27.351779 | 0.765184 | 0.345087 | 0 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099174 | false | 0.066116 | 0.024793 | 0 | 0.165289 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c119801156d9e8ce2578444d4d75f9dabd3144cc | 1,316 | py | Python | source/kmeans.py | alex-turantsev/Misoi_lr1 | 5f09dfaaa12b3cbe3f16cc386512061d3313a4fc | [
"MIT"
] | null | null | null | source/kmeans.py | alex-turantsev/Misoi_lr1 | 5f09dfaaa12b3cbe3f16cc386512061d3313a4fc | [
"MIT"
] | null | null | null | source/kmeans.py | alex-turantsev/Misoi_lr1 | 5f09dfaaa12b3cbe3f16cc386512061d3313a4fc | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
from collections import namedtuple
from math import sqrt
import random
Cluster = namedtuple('Cluster', ('points', 'center', 'n'))
def calculate_center(points):
vals = [0,0]
if len(points) < 1:
return vals
plen = 0
for p in points:
plen += ... | 26.32 | 60 | 0.529635 | 174 | 1,316 | 3.948276 | 0.316092 | 0.021834 | 0.026201 | 0.048035 | 0.052402 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04023 | 0.338906 | 1,316 | 49 | 61 | 26.857143 | 0.749425 | 0.032675 | 0 | 0.097561 | 0 | 0 | 0.040913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c11c1a2d87bf981edafb47af843fa26028ddf1b3 | 162 | py | Python | Parte 1/Semana 4/PrimeirosImpares.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | Parte 1/Semana 4/PrimeirosImpares.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | Parte 1/Semana 4/PrimeirosImpares.py | GabrielReira/Computer-Science-USP | 47a3cb68ccaa08f7302fbd9d9905ca80cee432cb | [
"MIT"
] | null | null | null | n = int(input('Digite o valor de n: '))
i = 1
número = 0
while i <= n:
número = número + 1
if (número % 2 != 0):
i = i + 1
print(número) | 16.2 | 39 | 0.475309 | 27 | 162 | 2.851852 | 0.555556 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.37037 | 162 | 10 | 40 | 16.2 | 0.696078 | 0 | 0 | 0 | 0 | 0 | 0.128834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c11d4aa2cbf7ae233c377ab56204b9cf696af5d5 | 419 | py | Python | test/test_enum.py | sylar233/de-identification | 44731e9c22de647063bd82a19936b4c5a144ea6e | [
"Apache-2.0"
] | 5 | 2016-11-07T12:54:51.000Z | 2018-12-15T00:20:26.000Z | test/test_enum.py | sylar233/de-identification | 44731e9c22de647063bd82a19936b4c5a144ea6e | [
"Apache-2.0"
] | 5 | 2016-07-05T06:06:31.000Z | 2016-07-27T05:21:36.000Z | test/test_enum.py | sylar233/de-identification | 44731e9c22de647063bd82a19936b4c5a144ea6e | [
"Apache-2.0"
] | 3 | 2018-07-18T07:32:43.000Z | 2021-11-05T05:25:55.000Z | from django.test import TestCase
from common.enums import *
class TestEnum(TestCase):
def test_eval_method_enum_names(self):
self.assertEqual(isinstance(EvalMethodEnums.get_names(), dict), True)
def test_ml_algorithm_enum_names(self):
self.assertEqual(isinstance(MLAlgorithmEnums.get_names(), dict), True)
def ... | 34.916667 | 72 | 0.806683 | 56 | 419 | 5.785714 | 0.464286 | 0.064815 | 0.12037 | 0.157407 | 0.493827 | 0.493827 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085919 | 419 | 12 | 73 | 34.916667 | 0.845953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 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 | 0 | 0 | 0 | 0 | 1 |
c120fd74634f4010fc513a986c0cb4531ad35fc8 | 589 | py | Python | zesco_football_club/news/migrations/0004_auto_20161219_2150.py | h3zTr0n/zfc | be91c55478b6c1ee83aa8c1de127b7e7665550a8 | [
"MIT"
] | null | null | null | zesco_football_club/news/migrations/0004_auto_20161219_2150.py | h3zTr0n/zfc | be91c55478b6c1ee83aa8c1de127b7e7665550a8 | [
"MIT"
] | null | null | null | zesco_football_club/news/migrations/0004_auto_20161219_2150.py | h3zTr0n/zfc | be91c55478b6c1ee83aa8c1de127b7e7665550a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-20 05:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('news', '0003_sponsers'),
]
operations = [
migr... | 22.653846 | 70 | 0.602716 | 61 | 589 | 5.688525 | 0.721311 | 0.063401 | 0.10951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0.281834 | 589 | 25 | 71 | 23.56 | 0.770686 | 0.11545 | 0 | 0.111111 | 1 | 0 | 0.063707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1263c0e9280e8a961dd4e4a0da7fc2e61ad3f08 | 1,913 | py | Python | ReportState.py | DaTiC0/smart-google | d38ddc38cbdc92cb5e8fae367a8b00c64ecb8b2d | [
"Apache-2.0"
] | 3 | 2021-05-13T09:08:05.000Z | 2022-02-28T12:06:05.000Z | ReportState.py | DaTiC0/smart-google | d38ddc38cbdc92cb5e8fae367a8b00c64ecb8b2d | [
"Apache-2.0"
] | 25 | 2021-04-15T20:00:47.000Z | 2022-03-31T08:12:40.000Z | ReportState.py | DaTiC0/smart-google | d38ddc38cbdc92cb5e8fae367a8b00c64ecb8b2d | [
"Apache-2.0"
] | null | null | null | import time
import json
from flask import current_app
from google.auth import crypt, jwt
import requests
def generate_jwt(service_account):
signer = crypt.RSASigner.from_string(service_account['private_key'])
now = int(time.time())
payload = {
'iat': now,
'exp': now + 3600,
'aud': ... | 31.883333 | 101 | 0.695243 | 242 | 1,913 | 5.31405 | 0.438017 | 0.068429 | 0.046656 | 0.03888 | 0.255054 | 0.219285 | 0.11042 | 0 | 0 | 0 | 0 | 0.008307 | 0.181913 | 1,913 | 59 | 102 | 32.423729 | 0.813419 | 0.003136 | 0 | 0 | 1 | 0 | 0.28399 | 0.056693 | 0 | 0 | 0 | 0 | 0.021739 | 1 | 0.086957 | false | 0 | 0.108696 | 0 | 0.282609 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1287b7197b367119ccd62e6bdbe1a67ce3abd66 | 2,153 | py | Python | esl/models.py | calpha12/django-project | 1ecbf0186101c56bb8d6e1b254b00c3efecb507e | [
"MIT"
] | null | null | null | esl/models.py | calpha12/django-project | 1ecbf0186101c56bb8d6e1b254b00c3efecb507e | [
"MIT"
] | null | null | null | esl/models.py | calpha12/django-project | 1ecbf0186101c56bb8d6e1b254b00c3efecb507e | [
"MIT"
] | null | null | null | from datetime import datetime
from django.db import models
from django.contrib.auth.models import User
from django.db.models.deletion import DO_NOTHING
from django.db.models.fields.reverse_related import ManyToOneRel
from django.db.models.signals import post_save
from django.dispatch import receiver
class Tournament... | 40.622642 | 159 | 0.760799 | 291 | 2,153 | 5.512027 | 0.357388 | 0.039277 | 0.067332 | 0.089776 | 0.263092 | 0.247506 | 0.122818 | 0.057357 | 0 | 0 | 0 | 0.011853 | 0.137947 | 2,153 | 53 | 160 | 40.622642 | 0.852371 | 0.091965 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.170732 | 0 | 0.756098 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c137d99e362df0c0f2c73a956b192bbdf04fcc85 | 858 | py | Python | fiesta-back/Notebook.py | alelouis/web-fiesta | 23652a9325bad5e1261227af3d65655194987a5b | [
"MIT"
] | 1 | 2021-09-01T09:52:14.000Z | 2021-09-01T09:52:14.000Z | fiesta-back/Notebook.py | alelouis/web-fiesta | 23652a9325bad5e1261227af3d65655194987a5b | [
"MIT"
] | 7 | 2020-11-28T22:47:31.000Z | 2021-10-12T20:42:46.000Z | fiesta-back/Notebook.py | alelouis/web-fiesta | 23652a9325bad5e1261227af3d65655194987a5b | [
"MIT"
] | null | null | null | import random
class Notebook():
"""Notebook of Fiesta game.
The Notebook class emulates a physical notebook belonging to a player.
Attributes
----------
player
owner of the notebook
words
list of rounds words
round
current round of the notebook
"""
def __i... | 23.189189 | 74 | 0.578089 | 97 | 858 | 5.030928 | 0.525773 | 0.090164 | 0.053279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.32634 | 858 | 36 | 75 | 23.833333 | 0.84083 | 0.414918 | 0 | 0 | 0 | 0 | 0.034568 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c13c9452b2ee4a982bdb64f39b9e6108e33d09b6 | 1,233 | py | Python | beers/migrations/0031_auto_20180218_1527.py | nvembar/onehundredbeers | 96af46ad946e63736f9924cb3b966b0d597254f5 | [
"CC0-1.0"
] | 1 | 2017-07-23T22:44:29.000Z | 2017-07-23T22:44:29.000Z | beers/migrations/0031_auto_20180218_1527.py | nvembar/onehundredbeers | 96af46ad946e63736f9924cb3b966b0d597254f5 | [
"CC0-1.0"
] | 25 | 2017-07-23T21:04:17.000Z | 2021-06-10T18:06:50.000Z | beers/migrations/0031_auto_20180218_1527.py | nvembar/onehundredbeers | 96af46ad946e63736f9924cb3b966b0d597254f5 | [
"CC0-1.0"
] | 1 | 2019-02-24T01:16:08.000Z | 2019-02-24T01:16:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-18 20:27
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('beers', '0030_auto_20180218_1311'),
]
operations = [... | 38.53125 | 183 | 0.622871 | 133 | 1,233 | 5.616541 | 0.62406 | 0.032129 | 0.037483 | 0.058902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043897 | 0.242498 | 1,233 | 31 | 184 | 39.774194 | 0.755889 | 0.053528 | 0 | 0.083333 | 1 | 0 | 0.186426 | 0.019759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c144c3b2ec51e9da609d0dde29e6dff888c591f2 | 1,804 | py | Python | helpcenter/utils.py | smalls12/django_helpcenter | e0118447871abad701056bc137d63e6fcd8abde6 | [
"MIT"
] | 4 | 2017-07-30T17:43:36.000Z | 2021-09-14T04:26:37.000Z | helpcenter/utils.py | cdriehuys/django_helpcenter | e0118447871abad701056bc137d63e6fcd8abde6 | [
"MIT"
] | 20 | 2016-06-30T04:52:26.000Z | 2016-09-30T04:52:15.000Z | helpcenter/utils.py | cdriehuys/django_helpcenter | e0118447871abad701056bc137d63e6fcd8abde6 | [
"MIT"
] | null | null | null | """A collection of utility functions."""
import importlib
import logging
def string_to_class(class_string):
"""Convert a string to a python class.
The string is first split into a module and a class name. For
example, 'dummy.package.FakeClass' would be split into
'dummy.package' and 'FakeClass'. The... | 29.096774 | 75 | 0.642461 | 228 | 1,804 | 4.942982 | 0.364035 | 0.087844 | 0.037267 | 0.019521 | 0.051464 | 0.051464 | 0 | 0 | 0 | 0 | 0 | 0.000756 | 0.26663 | 1,804 | 61 | 76 | 29.57377 | 0.851096 | 0.417406 | 0 | 0.16 | 0 | 0 | 0.180227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c14fd385f086f428fd7277728d64cd65aaae1b61 | 8,385 | py | Python | djangoForum/forum/views.py | AlexxHr/django-forum | b21720c4ee5e836216df1b18970f7d523904b4d4 | [
"MIT"
] | null | null | null | djangoForum/forum/views.py | AlexxHr/django-forum | b21720c4ee5e836216df1b18970f7d523904b4d4 | [
"MIT"
] | null | null | null | djangoForum/forum/views.py | AlexxHr/django-forum | b21720c4ee5e836216df1b18970f7d523904b4d4 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.shortcuts import get_object_or_404, render
from django.urls import reverse_lazy
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateVie... | 32.753906 | 102 | 0.689565 | 1,034 | 8,385 | 5.423598 | 0.117988 | 0.057061 | 0.045471 | 0.028887 | 0.712375 | 0.620899 | 0.610735 | 0.588623 | 0.526391 | 0.477175 | 0 | 0.007414 | 0.195707 | 8,385 | 255 | 103 | 32.882353 | 0.82414 | 0 | 0 | 0.586022 | 0 | 0 | 0.080024 | 0.036852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182796 | false | 0.032258 | 0.043011 | 0.048387 | 0.672043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c164f8411c612d2ac3ec33a22cc17eae5352aa21 | 1,351 | py | Python | tor_worker/context.py | GrafeasGroup/tor_worker | b17981f45323c182c2526749250018450d034ef7 | [
"MIT"
] | 1 | 2018-03-22T17:10:00.000Z | 2018-03-22T17:10:00.000Z | tor_worker/context.py | GrafeasGroup/tor_worker | b17981f45323c182c2526749250018450d034ef7 | [
"MIT"
] | null | null | null | tor_worker/context.py | GrafeasGroup/tor_worker | b17981f45323c182c2526749250018450d034ef7 | [
"MIT"
] | null | null | null | import youtube
from praw.models import Comment
"""
These methods are used for detecting the current state of a post (e.g., claimed,
unclaimed, done) and the surrounding context based on the specific comment data
given.
This helps reduce the amount of data we _have_ to store in Redis.
"""
class InvalidState(Exceptio... | 21.444444 | 80 | 0.698742 | 195 | 1,351 | 4.738462 | 0.435897 | 0.095238 | 0.064935 | 0.090909 | 0.277056 | 0.229437 | 0.229437 | 0.227273 | 0.227273 | 0.136364 | 0 | 0.007656 | 0.226499 | 1,351 | 62 | 81 | 21.790323 | 0.876555 | 0.07624 | 0 | 0.419355 | 0 | 0 | 0.079761 | 0.03988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.032258 | 0.064516 | 0 | 0.677419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c165de5a1c6537aba623c9474d660eb05e9cf4f1 | 7,342 | py | Python | Classification/train.py | AhmedBadar512/Badr_AI_Repo | 33921e539ecd787e065db2a9a832e40511fd2ce5 | [
"Apache-2.0"
] | 2 | 2020-07-27T12:54:23.000Z | 2021-02-04T09:38:43.000Z | Classification/train.py | AhmedBadar512/Badr_AI_Repo | 33921e539ecd787e065db2a9a832e40511fd2ce5 | [
"Apache-2.0"
] | null | null | null | Classification/train.py | AhmedBadar512/Badr_AI_Repo | 33921e539ecd787e065db2a9a832e40511fd2ce5 | [
"Apache-2.0"
] | 2 | 2021-09-26T06:23:42.000Z | 2022-01-13T09:02:30.000Z | from models import get_model
import tensorflow.keras as K
import tensorflow_datasets as tfds
import losses
import argparse
import os
import tensorflow as tf
physical_devices = tf.config.experimental.list_physical_devices("GPU")
tf.config.experimental.set_memory_growth(physical_devices[0], True)
args = argparse.Argume... | 49.275168 | 126 | 0.666167 | 957 | 7,342 | 4.899687 | 0.244514 | 0.016421 | 0.035189 | 0.014502 | 0.260823 | 0.179569 | 0.13393 | 0.108552 | 0.063553 | 0.041373 | 0 | 0.013906 | 0.206619 | 7,342 | 148 | 127 | 49.608108 | 0.791073 | 0.079951 | 0 | 0.080357 | 0 | 0 | 0.116296 | 0.005218 | 0 | 0 | 0 | 0.013514 | 0.017857 | 1 | 0.008929 | false | 0 | 0.0625 | 0 | 0.080357 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c17e2f984533bd91818811364c0cc60d5e3f997f | 2,163 | py | Python | LeetCode/10-Regular-Expression-Matching☆☆☆☆/Regular-Expression-Matching.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | 10 | 2020-07-06T11:00:58.000Z | 2022-01-29T09:25:24.000Z | LeetCode/10-Regular-Expression-Matching☆☆☆☆/Regular-Expression-Matching.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | null | null | null | LeetCode/10-Regular-Expression-Matching☆☆☆☆/Regular-Expression-Matching.py | hscspring/TheAlgorithms-Python | 5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f | [
"MIT"
] | 3 | 2020-07-13T06:39:23.000Z | 2020-08-15T16:29:48.000Z | # A foolish try.
def splitp(p: str):
res = []
tmp = ""
for i in range(len(p)):
if p[i] != "*" and p[i] != ".":
tmp += p[i]
elif p[i] == ".":
res.append(tmp)
res.append(p[i])
tmp = ""
else:
if len(res) > 0 and res[-1] == "."... | 25.447059 | 70 | 0.34258 | 270 | 2,163 | 2.744444 | 0.214815 | 0.016194 | 0.064777 | 0.02969 | 0.110661 | 0.037787 | 0 | 0 | 0 | 0 | 0 | 0.021596 | 0.507628 | 2,163 | 85 | 71 | 25.447059 | 0.674178 | 0.006472 | 0 | 0.275 | 0 | 0 | 0.00838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0 | 0 | 0.1 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c182e65133c4929d5178c6b22b44c7bb8304cd58 | 2,456 | py | Python | p6/reducer.py | FuSkrN/P6 | 3df92fad639705a154faa962cfe4571fd8c91301 | [
"MIT"
] | 2 | 2022-02-23T08:48:25.000Z | 2022-03-22T08:53:04.000Z | p6/reducer.py | FuSkrN/P6 | 3df92fad639705a154faa962cfe4571fd8c91301 | [
"MIT"
] | null | null | null | p6/reducer.py | FuSkrN/P6 | 3df92fad639705a154faa962cfe4571fd8c91301 | [
"MIT"
] | null | null | null | #TODO: delete imports after
import generator
import python_reader
class reducer:
"""A collection (class) of methods used in graph reduction."""
def __init__(self, stateArray):
self.stateArray = stateArray
def reduce_sequence(self):
"""Implements the function link_ingoing_outgoing using... | 36.117647 | 116 | 0.6307 | 297 | 2,456 | 5.114478 | 0.340067 | 0.073733 | 0.0316 | 0.044766 | 0.226465 | 0.194865 | 0.194865 | 0.194865 | 0.194865 | 0.194865 | 0 | 0.005014 | 0.269137 | 2,456 | 67 | 117 | 36.656716 | 0.841226 | 0.44829 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1863a4ea824692da31838f520f800f1295706f6 | 4,806 | py | Python | versus/models.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | null | null | null | versus/models.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | 13 | 2021-02-13T20:15:18.000Z | 2022-03-11T23:57:07.000Z | versus/models.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | null | null | null | from autoslug import AutoSlugField
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.functional import cached_property
from base.models import Profil
class Joueur(models.Model):
nom = models.CharField(max_length=100)
slug = AutoSlugField(unique=T... | 35.080292 | 112 | 0.648564 | 588 | 4,806 | 5.151361 | 0.294218 | 0.04754 | 0.043909 | 0.016837 | 0.297458 | 0.297458 | 0.284252 | 0.271377 | 0.240343 | 0.210631 | 0 | 0.00559 | 0.255514 | 4,806 | 136 | 113 | 35.338235 | 0.840973 | 0.077611 | 0 | 0.194175 | 0 | 0 | 0.07248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097087 | false | 0 | 0.058252 | 0.048544 | 0.553398 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c187f4145552c6ff2ec80311be60b6bae544b292 | 19,642 | py | Python | qt4x/jsonrpc.py | qtacore/QT4X | 483b6d68d8ed65cc8cc65431973041da4f900375 | [
"BSD-3-Clause"
] | null | null | null | qt4x/jsonrpc.py | qtacore/QT4X | 483b6d68d8ed65cc8cc65431973041da4f900375 | [
"BSD-3-Clause"
] | null | null | null | qt4x/jsonrpc.py | qtacore/QT4X | 483b6d68d8ed65cc8cc65431973041da4f900375 | [
"BSD-3-Clause"
] | 1 | 2019-07-04T10:15:39.000Z | 2019-07-04T10:15:39.000Z | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making QTA available.
# Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the BSD 3-Clause License (the "License"); you may not use this
# file except in compliance with the License. You may... | 33.982699 | 142 | 0.568119 | 1,973 | 19,642 | 5.455651 | 0.216929 | 0.01858 | 0.014307 | 0.020067 | 0.2801 | 0.240338 | 0.235879 | 0.218506 | 0.163694 | 0.146042 | 0 | 0.009859 | 0.32349 | 19,642 | 577 | 143 | 34.041594 | 0.800196 | 0.04806 | 0 | 0.24 | 0 | 0 | 0.080815 | 0.006475 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005333 | 0.045333 | null | null | 0.002667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1883c0ff604e64bc564867177fbd74ab519bc41 | 649 | py | Python | scripts/migrations/versions/45c7c3141a21_add_proto_type_settings_for_dial_vpn.py | lenz-li/FlexGW-1 | e4d53a586d383044ab75406f71a5c07c74d1856e | [
"BSD-3-Clause"
] | 212 | 2015-08-27T06:38:13.000Z | 2022-01-25T01:54:26.000Z | scripts/migrations/versions/45c7c3141a21_add_proto_type_settings_for_dial_vpn.py | vincent1016/FlexGW2.0 | 16f7ffe7b261bddebc96c0f87ff0c62dc22157dc | [
"BSD-3-Clause"
] | 10 | 2016-09-19T07:15:16.000Z | 2022-03-03T07:00:43.000Z | scripts/migrations/versions/45c7c3141a21_add_proto_type_settings_for_dial_vpn.py | vincent1016/FlexGW2.0 | 16f7ffe7b261bddebc96c0f87ff0c62dc22157dc | [
"BSD-3-Clause"
] | 121 | 2015-08-28T07:06:00.000Z | 2022-03-22T00:51:18.000Z | """add proto type settings for dial vpn.
Revision ID: 45c7c3141a21
Revises: 313c830f061c
Create Date: 2014-10-10 10:22:23.395475
"""
# revision identifiers, used by Alembic.
revision = '45c7c3141a21'
down_revision = '313c830f061c'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto... | 24.037037 | 91 | 0.702619 | 83 | 649 | 5.433735 | 0.554217 | 0.059867 | 0.093126 | 0.101996 | 0.195122 | 0.195122 | 0.195122 | 0.195122 | 0 | 0 | 0 | 0.107407 | 0.167951 | 649 | 26 | 92 | 24.961538 | 0.727778 | 0.485362 | 0 | 0 | 0 | 0 | 0.199336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c18ad8dfbebaf45f8fcaa647254fe315efd86b0c | 89,870 | py | Python | tools/blender/blenderman.py | syoyo/lucille | ff81b332ae78181dbbdc1ec3c3b0f59992e7c0fa | [
"BSD-3-Clause"
] | 77 | 2015-01-29T21:02:10.000Z | 2022-03-04T11:23:12.000Z | tools/blender/blenderman.py | chiyama/lucille | 37f5e0cf7bda12b146808289053b902050553338 | [
"BSD-3-Clause"
] | 1 | 2018-11-08T02:11:24.000Z | 2018-11-08T04:31:17.000Z | tools/blender/blenderman.py | chiyama/lucille | 37f5e0cf7bda12b146808289053b902050553338 | [
"BSD-3-Clause"
] | 13 | 2015-04-20T08:17:29.000Z | 2020-06-17T18:35:06.000Z | # RenderMan export script by Christoffer Green and Goran Kocov
# version 0.1 Beta9.0
# the script needs Blender 2.28a and Python 2.2 installed
# to run the script press alt+p in the text window
import Blender
import string
import os
import sys
from os import P_NOWAIT
from Blender.Draw import *
from Blender.BGL import ... | 41.205869 | 431 | 0.640959 | 12,035 | 89,870 | 4.777565 | 0.093477 | 0.006539 | 0.004644 | 0.017218 | 0.421997 | 0.367526 | 0.316168 | 0.274497 | 0.242565 | 0.219051 | 0 | 0.054992 | 0.196094 | 89,870 | 2,180 | 432 | 41.224771 | 0.740861 | 0.02586 | 0 | 0.4 | 0 | 0.01957 | 0.21041 | 0.003499 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009547 | 0.004773 | null | null | 0.005251 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c18b04707ffd3557fb0ad9c448220b6441e8e6e7 | 2,683 | py | Python | day5.py | itay20-meet/meet2018y1final-proj | 4d82a0264bced1e6de0aa961791ed759cc5cf680 | [
"MIT"
] | null | null | null | day5.py | itay20-meet/meet2018y1final-proj | 4d82a0264bced1e6de0aa961791ed759cc5cf680 | [
"MIT"
] | null | null | null | day5.py | itay20-meet/meet2018y1final-proj | 4d82a0264bced1e6de0aa961791ed759cc5cf680 | [
"MIT"
] | null | null | null | Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "copyright", "credits" or "license()" for more information.
>>> a = ['she','sells','sea','shells','by','the','sea','shore']
>>> b = "selfish shelfish"
>>> c = [1,1,2,3,5,8,13]
>>> b[3:4]
'f'
>>> c[5]
8
>>> c[:-2]
[1, 1, 2, 3, 5]
>>> a[2]
'sea'
>>>... | 21.813008 | 186 | 0.535594 | 458 | 2,683 | 3.124454 | 0.220524 | 0.02376 | 0.031447 | 0.033543 | 0.584906 | 0.496157 | 0.479385 | 0.373166 | 0.328442 | 0.328442 | 0 | 0.079351 | 0.173313 | 2,683 | 122 | 187 | 21.991803 | 0.565825 | 0 | 0 | 0.319672 | 0 | 0 | 0.160268 | 0.019381 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.07377 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c18b6d6c493d5f08e6137b7c81c53d93909eadc6 | 686 | py | Python | tools/intogen/runtime/pyenv/lib/python2.7/site-packages/bgcore/mtabix/parser.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | 1 | 2021-02-05T13:19:58.000Z | 2021-02-05T13:19:58.000Z | tools/intogen/runtime/pyenv/lib/python2.7/site-packages/bgcore/mtabix/parser.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null | tools/intogen/runtime/pyenv/lib/python2.7/site-packages/bgcore/mtabix/parser.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null |
class KeyParser:
def __init__(self, separator='\t', row=1, column=0):
"""
:param separator: Field separator to split one line in several values
:param row: The position in a line of the row identifier (starting at zero)
:param column: The position in a line of the column identifie... | 28.583333 | 89 | 0.600583 | 87 | 686 | 4.689655 | 0.37931 | 0.095588 | 0.063725 | 0.068627 | 0.112745 | 0.112745 | 0.112745 | 0 | 0 | 0 | 0 | 0.004228 | 0.310496 | 686 | 24 | 90 | 28.583333 | 0.858351 | 0.438776 | 0 | 0 | 0 | 0 | 0.006601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c18d95c759976f8ee4870ffd757578f4d572aaab | 776 | py | Python | school_sdk/utils.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | 9 | 2021-09-03T11:55:08.000Z | 2022-01-29T04:42:01.000Z | school_sdk/utils.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | 15 | 2022-01-06T08:45:47.000Z | 2022-03-31T13:45:07.000Z | school_sdk/utils.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | 6 | 2021-12-01T04:52:06.000Z | 2022-01-29T04:42:04.000Z | # -*- coding: utf-8 -*-
'''
:file: utils.py
:author: -Farmer
:url: https://blog.farmer233.top
:date: 2021/09/04 23:45:40
'''
class ObjectDict(dict):
""":copyright: (c) 2014 by messense.
Makes a dictionary behave like an object, with attribute-style access.
"""
def __getattr__(self, key... | 20.421053 | 74 | 0.585052 | 96 | 776 | 4.53125 | 0.677083 | 0.064368 | 0.089655 | 0.073563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039427 | 0.280928 | 776 | 37 | 75 | 20.972973 | 0.740143 | 0.398196 | 0 | 0.153846 | 0 | 0 | 0.037221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c190024a8080b6282060eed71f7d60199f5ab3d7 | 219 | py | Python | aoc8.py | UnrelatedString/advent-of-code-2021 | f802240ce01dc9e31f152915456aff2644b281e2 | [
"MIT"
] | null | null | null | aoc8.py | UnrelatedString/advent-of-code-2021 | f802240ce01dc9e31f152915456aff2644b281e2 | [
"MIT"
] | 1 | 2021-12-10T07:24:13.000Z | 2021-12-11T05:10:50.000Z | aoc8.py | UnrelatedString/advent-of-code-2021 | f802240ce01dc9e31f152915456aff2644b281e2 | [
"MIT"
] | null | null | null | import sys
ls = [[x.split() for x in l.split(' | ')] for l in iter(input,'')]
ps = "abcefg cf acdeg acdfg bcdf abdfg abdefg acf abcdefg abcdfg".split()
print(sum(sum(len(d) in (2,4,3,7) for d in v) for (_,v) in ls))
| 27.375 | 73 | 0.625571 | 45 | 219 | 3.022222 | 0.666667 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.187215 | 219 | 7 | 74 | 31.285714 | 0.741573 | 0 | 0 | 0 | 0 | 0 | 0.278539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1943cbcba074177183e02df8012cd4ca3a7c6f7 | 576 | py | Python | model/utils.py | Louis-He/transit-signal-priority-with-spatial-info | 9d3ec58094a43936104b3e62aa76f7725621202c | [
"MIT"
] | 1 | 2021-02-21T02:47:30.000Z | 2021-02-21T02:47:30.000Z | model/utils.py | Louis-He/transit-signal-priority-with-spatial-info | 9d3ec58094a43936104b3e62aa76f7725621202c | [
"MIT"
] | 2 | 2021-01-07T00:19:44.000Z | 2021-01-07T00:55:39.000Z | model/utils.py | Louis-He/transit-signal-priority-with-spatial-info | 9d3ec58094a43936104b3e62aa76f7725621202c | [
"MIT"
] | 2 | 2021-01-28T18:58:40.000Z | 2021-03-07T18:08:43.000Z | from collections import namedtuple
Transition = namedtuple('Transition',
('state', 'action', 'next_state', 'reward'))
class DotDict(dict):
"""dot.notation access to dictionary attributes
Refer: https://stackoverflow.com/questions/2352181/how-to-use-a-dot-to-access-members-of-dictiona... | 28.8 | 121 | 0.680556 | 59 | 576 | 6.152542 | 0.745763 | 0.110193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050109 | 0.203125 | 576 | 19 | 122 | 30.315789 | 0.740741 | 0.291667 | 0 | 0 | 0 | 0 | 0.094148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c19637acde828c78547fd741331cc33772e8d96b | 504 | py | Python | ethaergo_bridge_operator/validator/eth_signer.py | sunpuyo/eth-merkle-bridge | 68904315fcb05f663a41d0d651536fb09ab96c40 | [
"MIT"
] | null | null | null | ethaergo_bridge_operator/validator/eth_signer.py | sunpuyo/eth-merkle-bridge | 68904315fcb05f663a41d0d651536fb09ab96c40 | [
"MIT"
] | null | null | null | ethaergo_bridge_operator/validator/eth_signer.py | sunpuyo/eth-merkle-bridge | 68904315fcb05f663a41d0d651536fb09ab96c40 | [
"MIT"
] | 3 | 2019-08-03T10:59:33.000Z | 2021-05-07T15:22:36.000Z | from web3 import (
Web3,
)
class EthSigner():
def __init__(
self,
keystore: str,
privkey_name: str,
privkey_pwd: str
) -> None:
self.web3 = Web3()
self.eth_privkey = self.web3.eth.account.decrypt(
keystore, privkey_pwd)
acct = self.web3.e... | 24 | 78 | 0.605159 | 63 | 504 | 4.650794 | 0.412698 | 0.109215 | 0.143345 | 0.1843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019444 | 0.285714 | 504 | 20 | 79 | 25.2 | 0.794444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.058824 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1a9cc8a5b71f097bba38de7e17d8d378004fece | 1,007 | py | Python | modules/pretrain_options.py | PengJingchao/DFNet | 49e83501f81515aebca211351e315896da7afc54 | [
"MIT"
] | null | null | null | modules/pretrain_options.py | PengJingchao/DFNet | 49e83501f81515aebca211351e315896da7afc54 | [
"MIT"
] | null | null | null | modules/pretrain_options.py | PengJingchao/DFNet | 49e83501f81515aebca211351e315896da7afc54 | [
"MIT"
] | null | null | null | from collections import OrderedDict
pretrain_opts = OrderedDict()
pretrain_opts['use_gpu'] = True
pretrain_opts['init_model_path'] = './models/imagenet-vgg-m.mat'
pretrain_opts['model_path'] = './models/rt_mdnet.pth'
pretrain_opts['log_dir'] = './log'
pretrain_opts['batch_frames'] = 8
pretrain_opts['batch_pos'] = 64... | 31.46875 | 98 | 0.671301 | 138 | 1,007 | 4.557971 | 0.456522 | 0.45787 | 0.081081 | 0.060413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041304 | 0.086395 | 1,007 | 31 | 99 | 32.483871 | 0.642391 | 0.008937 | 0 | 0 | 0 | 0 | 0.306346 | 0.052516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1b351882ccd072582ce1489c5d4f2fc772177ca | 11,961 | py | Python | plugin.py | jflory7/MeetBot | d5299e4d620419249de77b38f6744eb8bcd103a3 | [
"BSD-3-Clause"
] | null | null | null | plugin.py | jflory7/MeetBot | d5299e4d620419249de77b38f6744eb8bcd103a3 | [
"BSD-3-Clause"
] | null | null | null | plugin.py | jflory7/MeetBot | d5299e4d620419249de77b38f6744eb8bcd103a3 | [
"BSD-3-Clause"
] | null | null | null | ###
# Copyright (c) 2009, Richard Darst
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions... | 40.003344 | 159 | 0.610986 | 1,472 | 11,961 | 4.91712 | 0.298234 | 0.015474 | 0.012434 | 0.01354 | 0.149074 | 0.106936 | 0.081791 | 0.081791 | 0.068527 | 0.046974 | 0 | 0.003483 | 0.303904 | 11,961 | 298 | 160 | 40.137584 | 0.865842 | 0.302149 | 0 | 0.2875 | 0 | 0.00625 | 0.088239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00625 | 0.075 | null | null | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1b3c800b778dd452d9b06d98e1d5c3e7cb28f28 | 508 | py | Python | prettyqt/widgets/graphicscolorizeeffect.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 7 | 2019-05-01T01:34:36.000Z | 2022-03-08T02:24:14.000Z | prettyqt/widgets/graphicscolorizeeffect.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 141 | 2019-04-16T11:22:01.000Z | 2021-04-14T15:12:36.000Z | prettyqt/widgets/graphicscolorizeeffect.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 5 | 2019-04-17T11:48:19.000Z | 2021-11-21T10:30:19.000Z | from __future__ import annotations
from prettyqt import gui, widgets
from prettyqt.qt import QtWidgets
QtWidgets.QGraphicsColorizeEffect.__bases__ = (widgets.GraphicsEffect,)
class GraphicsColorizeEffect(QtWidgets.QGraphicsColorizeEffect):
def serialize_fields(self):
return dict(strength=self.strength(... | 28.222222 | 76 | 0.748031 | 52 | 508 | 6.980769 | 0.519231 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147638 | 508 | 17 | 77 | 29.882353 | 0.838337 | 0 | 0 | 0 | 0 | 0 | 0.025591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c1b440aa2cbc45d92b5a1bd8b8cce2b5ab730e95 | 360 | py | Python | CAPITULO 6/Exercicio M.py | LarmIg/Algoritmos-Python | f2c9889705cacac007833f6ab9a413b06213f882 | [
"MIT"
] | 4 | 2020-04-29T14:25:11.000Z | 2021-05-01T15:23:23.000Z | CAPITULO 6/Exercicio M.py | LarmIg/Algoritmos-Python | f2c9889705cacac007833f6ab9a413b06213f882 | [
"MIT"
] | null | null | null | CAPITULO 6/Exercicio M.py | LarmIg/Algoritmos-Python | f2c9889705cacac007833f6ab9a413b06213f882 | [
"MIT"
] | 1 | 2020-07-25T12:08:13.000Z | 2020-07-25T12:08:13.000Z | # Construir um programa que calcule a tabuada de um valor qualquer de 1 até 10 e armazene os resultados em uma matriz A de uma dimensão. Apresentar os elementos da matriz A.
A = []
tabuada = int(input('Informe uma Tabuada: '))
for i in range(0, 11):
A.append(i * tabuada)
for i in range(0, 11):
print('{}... | 51.428571 | 176 | 0.658333 | 63 | 360 | 3.761905 | 0.587302 | 0.067511 | 0.092827 | 0.109705 | 0.177215 | 0.177215 | 0.177215 | 0 | 0 | 0 | 0 | 0.031802 | 0.213889 | 360 | 7 | 177 | 51.428571 | 0.805654 | 0.475 | 0 | 0.333333 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1bcb1094d00a8889fd4ad9d6b609e1b2dd13205 | 5,651 | py | Python | scripts/env/set-eth.py | backstop-protocol/contractsV2 | 89de51f78e907764af10d7cc5ccfd8ebaead6049 | [
"Apache-2.0"
] | null | null | null | scripts/env/set-eth.py | backstop-protocol/contractsV2 | 89de51f78e907764af10d7cc5ccfd8ebaead6049 | [
"Apache-2.0"
] | null | null | null | scripts/env/set-eth.py | backstop-protocol/contractsV2 | 89de51f78e907764af10d7cc5ccfd8ebaead6049 | [
"Apache-2.0"
] | null | null | null | BZX = Contract.from_abi("BZX", "0xD8Ee69652E4e4838f2531732a46d1f7F584F0b7f", interface.IBZx.abi)
TOKEN_REGISTRY = Contract.from_abi("TOKEN_REGISTRY", "0xf0E474592B455579Fe580D610b846BdBb529C6F7", TokenRegistry.abi)
list = TOKEN_REGISTRY.getTokens(0, 100)
for l in list:
iTokenTemp = Contract.from_abi("iTokenTemp", ... | 55.950495 | 134 | 0.769952 | 470 | 5,651 | 9.157447 | 0.280851 | 0.055762 | 0.069703 | 0.01882 | 0.109665 | 0.08434 | 0.078996 | 0.078996 | 0 | 0 | 0 | 0.270169 | 0.10069 | 5,651 | 100 | 135 | 56.51 | 0.576741 | 0.105999 | 0 | 0.131148 | 0 | 0 | 0.402868 | 0.360713 | 0 | 0 | 0.355932 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1bea31a8436967f99bb977134ab538acddf1e7a | 6,379 | py | Python | test_install.py | vondrejc/sfepy | 8e427af699c4b2858eb096510057abb3ae7e28e8 | [
"BSD-3-Clause"
] | null | null | null | test_install.py | vondrejc/sfepy | 8e427af699c4b2858eb096510057abb3ae7e28e8 | [
"BSD-3-Clause"
] | null | null | null | test_install.py | vondrejc/sfepy | 8e427af699c4b2858eb096510057abb3ae7e28e8 | [
"BSD-3-Clause"
] | 2 | 2019-01-14T03:12:34.000Z | 2021-05-25T11:44:50.000Z | #!/usr/bin/env python
"""
Simple script for testing various SfePy functionality, examples not
covered by tests, and running the tests.
The script just runs the commands specified in its main() using the
`subprocess` module, captures the output and compares one or more key
words to the expected ones.
The output of fai... | 34.112299 | 163 | 0.594607 | 885 | 6,379 | 4.189831 | 0.265537 | 0.072816 | 0.090615 | 0.114617 | 0.410194 | 0.368932 | 0.336839 | 0.288565 | 0.251618 | 0.234088 | 0 | 0.062737 | 0.215394 | 6,379 | 186 | 164 | 34.295699 | 0.678122 | 0.003135 | 0 | 0.175439 | 0 | 0.026316 | 0.358438 | 0.160565 | 0.008772 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035088 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1c34fb7fafb8d1bfdc6c13cf80c4020a7e87524 | 907 | py | Python | www/tests/templates/test_personslist.py | octopusinvitro/team-directory | 7a8cc16fab8c7fad87e97d2f322a4cb94aa464de | [
"MIT"
] | null | null | null | www/tests/templates/test_personslist.py | octopusinvitro/team-directory | 7a8cc16fab8c7fad87e97d2f322a4cb94aa464de | [
"MIT"
] | null | null | null | www/tests/templates/test_personslist.py | octopusinvitro/team-directory | 7a8cc16fab8c7fad87e97d2f322a4cb94aa464de | [
"MIT"
] | null | null | null | from django.test import Client, TestCase
from www.models import Person
class PersonsListTest(TestCase):
def setUp(self):
self.client = Client()
Person.objects.create(
name='name1', email='email1', title='title1', image='image1')
Person.objects.create(
name='name2', ... | 37.791667 | 73 | 0.665932 | 110 | 907 | 5.381818 | 0.4 | 0.141892 | 0.131757 | 0.202703 | 0.378378 | 0.378378 | 0.263514 | 0.263514 | 0.263514 | 0.263514 | 0 | 0.01931 | 0.200662 | 907 | 23 | 74 | 39.434783 | 0.797241 | 0 | 0 | 0.315789 | 0 | 0 | 0.089305 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1c3833c56278321e13d121ec04795ff06eb4887 | 2,484 | py | Python | src/genie/libs/parser/iosxe/tests/ShowMplsForwardingTable/cli/equal/golden_output_expected.py | jacobgarder/genieparser | cc19fcd2f6248d3b08ca8cb35e77c9a6dca50d68 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowMplsForwardingTable/cli/equal/golden_output_expected.py | jacobgarder/genieparser | cc19fcd2f6248d3b08ca8cb35e77c9a6dca50d68 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowMplsForwardingTable/cli/equal/golden_output_expected.py | jacobgarder/genieparser | cc19fcd2f6248d3b08ca8cb35e77c9a6dca50d68 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
'vrf': {
'default': {
'local_label': {
201: {
'outgoing_label_or_vc': {
'Pop tag': {
'prefix_or_tunnel_id': {
'10.18.18.18/32': {
... | 80.129032 | 179 | 0.189614 | 104 | 2,484 | 4.182692 | 0.336538 | 0.073563 | 0.128736 | 0.147126 | 0.634483 | 0.593103 | 0.593103 | 0.593103 | 0.593103 | 0.475862 | 0 | 0.085457 | 0.731481 | 2,484 | 30 | 180 | 82.8 | 0.566717 | 0 | 0 | 0.5 | 0 | 0 | 0.190419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1c91fb4b4a1cc5c6ed8665879c9b1dab88ef348 | 1,012 | py | Python | src/test_mcmc.py | bryanwhiting/bayes-python | 4c2a9a65b070812e1499e9ec4e26f55a552b8ded | [
"MIT"
] | 1 | 2019-09-27T01:29:53.000Z | 2019-09-27T01:29:53.000Z | src/test_mcmc.py | bryanwhiting/bayes-python | 4c2a9a65b070812e1499e9ec4e26f55a552b8ded | [
"MIT"
] | null | null | null | src/test_mcmc.py | bryanwhiting/bayes-python | 4c2a9a65b070812e1499e9ec4e26f55a552b8ded | [
"MIT"
] | 1 | 2019-10-30T06:26:53.000Z | 2019-10-30T06:26:53.000Z | import sys
sys.path.append('/Users/bryanwhiting/Dropbox/interviews/downstream/DataScienceInterview-Bryan/src')
import numpy as np
import plotnine as g
import pandas as pd
from bryan.mcmc import MCMC
# TODO: Placeholder for unit tests
# Testing the code (would do unit tests w/more time)
k = 26
n_fake_datapoints = 10... | 22 | 99 | 0.699605 | 187 | 1,012 | 3.636364 | 0.427807 | 0.051471 | 0.035294 | 0.030882 | 0.026471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062791 | 0.150198 | 1,012 | 45 | 100 | 22.488889 | 0.727907 | 0.194664 | 0 | 0 | 0 | 0 | 0.110012 | 0.098888 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0 | false | 0 | 0.178571 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1cde55e367da5a95de0e7338cbef449e340f6a8 | 3,898 | py | Python | DP/Server/SimulationTstat.py | apanagopoulos/XBOS-DR | 80e186d691bf17c244b1e87ccb5c2356155748e5 | [
"Apache-2.0"
] | null | null | null | DP/Server/SimulationTstat.py | apanagopoulos/XBOS-DR | 80e186d691bf17c244b1e87ccb5c2356155748e5 | [
"Apache-2.0"
] | 25 | 2018-05-11T19:15:16.000Z | 2018-08-09T03:11:28.000Z | DP/Server/SimulationTstat.py | apanagopoulos/XBOS-DR | 80e186d691bf17c244b1e87ccb5c2356155748e5 | [
"Apache-2.0"
] | 3 | 2017-10-23T18:47:15.000Z | 2018-08-20T16:41:18.000Z | import sys
sys.path.append("./MPC/ThermalModels")
sys.path.append("..")
import numpy as np
import utils
# TODO distinguish between actions and add different noise correspondingly.
class SimulationTstat:
def __init__(self, mpc_thermal_model, curr_temperature):
self.mpc_thermal_model = mpc_thermal_model
... | 48.725 | 119 | 0.702925 | 516 | 3,898 | 5.065891 | 0.281008 | 0.087223 | 0.074598 | 0.072686 | 0.366106 | 0.239097 | 0.200842 | 0.125861 | 0.125861 | 0.125861 | 0 | 0.001328 | 0.227296 | 3,898 | 79 | 120 | 49.341772 | 0.866534 | 0.301693 | 0 | 0 | 0 | 0 | 0.026014 | 0 | 0 | 0 | 0 | 0.025316 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1d053195e9b1556683be1f9b4c7aaa4194c8b34 | 5,394 | py | Python | ui_modules/Nav.py | wanghao923/saltadmin2.0 | aed384460da4977547c4f819e8160ad9f46adffb | [
"MIT"
] | null | null | null | ui_modules/Nav.py | wanghao923/saltadmin2.0 | aed384460da4977547c4f819e8160ad9f46adffb | [
"MIT"
] | null | null | null | ui_modules/Nav.py | wanghao923/saltadmin2.0 | aed384460da4977547c4f819e8160ad9f46adffb | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
# Powered By KK Studio
# 导航Nav
class Nav:
url_none = 'javascript:void(0);'
nav = [
{
'url': '/',
'name': u'控制中心',
'icon': 'icon-wrench',
'sub': []
},
{
'url': url_none,
'n... | 28.84492 | 98 | 0.283834 | 433 | 5,394 | 3.494226 | 0.247113 | 0.072703 | 0.0423 | 0.055519 | 0.341705 | 0.217449 | 0.145406 | 0.145406 | 0.100463 | 0.100463 | 0 | 0.003213 | 0.538376 | 5,394 | 187 | 99 | 28.84492 | 0.604418 | 0.041713 | 0 | 0.266272 | 0 | 0 | 0.240209 | 0.035867 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011834 | false | 0 | 0 | 0 | 0.047337 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1ed3058803ef346c6da93e4af65976dc4784175 | 359 | py | Python | examplecms/urls.py | nacady/django-publish | a9b0b0b0ce0a2cd664d256edc4c819180dc882df | [
"BSD-3-Clause"
] | null | null | null | examplecms/urls.py | nacady/django-publish | a9b0b0b0ce0a2cd664d256edc4c819180dc882df | [
"BSD-3-Clause"
] | null | null | null | examplecms/urls.py | nacady/django-publish | a9b0b0b0ce0a2cd664d256edc4c819180dc882df | [
"BSD-3-Clause"
] | 1 | 2021-06-28T03:59:45.000Z | 2021-06-28T03:59:45.000Z | from django.conf.urls import include, url
from django.conf import settings
from django.contrib import admin
from django.views import static
urlpatterns = [
url('^admin/', include(admin.site.urls)),
url(r'^media/(?P<path>.*)$', static.serve, {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
... | 27.615385 | 109 | 0.690808 | 48 | 359 | 5.104167 | 0.520833 | 0.163265 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139276 | 359 | 12 | 110 | 29.916667 | 0.79288 | 0 | 0 | 0 | 0 | 0 | 0.178273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c1f7de574243452872f77e5f443fa158758814af | 289 | py | Python | setup.py | lucian1900/lsp | 26fd0e34fd8df97f92ffd7ddceed688b87e321bc | [
"MIT"
] | null | null | null | setup.py | lucian1900/lsp | 26fd0e34fd8df97f92ffd7ddceed688b87e321bc | [
"MIT"
] | null | null | null | setup.py | lucian1900/lsp | 26fd0e34fd8df97f92ffd7ddceed688b87e321bc | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='lsp',
version='0.1',
description='A little lisp in python',
license='MIT',
author='Lucian Branescu Mihaila',
package='lsp',
entry_points=dict(
console_scripts= [
'lsp = lsp:main',
]
)
)
| 18.0625 | 42 | 0.567474 | 32 | 289 | 5.0625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.301038 | 289 | 15 | 43 | 19.266667 | 0.792079 | 0 | 0 | 0 | 0 | 0 | 0.249135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1fae76c4f4dbf8df4559c296531064ad41fbf3d | 11,682 | py | Python | scripts/robik_ai.py | slesinger/robik | e62c4210f5d031b040f95c60dcdd8fb282452208 | [
"MIT"
] | 1 | 2016-01-13T07:34:31.000Z | 2016-01-13T07:34:31.000Z | scripts/robik_ai.py | slesinger/robik | e62c4210f5d031b040f95c60dcdd8fb282452208 | [
"MIT"
] | null | null | null | scripts/robik_ai.py | slesinger/robik | e62c4210f5d031b040f95c60dcdd8fb282452208 | [
"MIT"
] | 1 | 2021-02-21T15:03:26.000Z | 2021-02-21T15:03:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Robik AI.
parameters:
~none - none
publications:
~goal (std_msgs/String) - action goals
services:
"""
import roslib; roslib.load_manifest('sound_play')
import roslib; roslib.load_manifest('robik')
import robik
import robik.msg
import rospy, os, sys
import actio... | 26.855172 | 181 | 0.658106 | 1,582 | 11,682 | 4.716182 | 0.264855 | 0.030961 | 0.029487 | 0.04557 | 0.352902 | 0.311486 | 0.30264 | 0.296475 | 0.289237 | 0.273556 | 0 | 0.021838 | 0.212121 | 11,682 | 434 | 182 | 26.917051 | 0.788787 | 0.029533 | 0 | 0.361635 | 0 | 0 | 0.139375 | 0.010346 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006289 | 0.062893 | null | null | 0.015723 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1fcdc41d125ad0b57f05fc0ffcc7f1b5f4a0e54 | 4,393 | py | Python | services/web/project/models.py | brienen/GGM-API-generator | 8e6939db7a67f7f5c0db5bb0d046ff1d699d5c90 | [
"MIT"
] | 1 | 2022-03-30T18:43:42.000Z | 2022-03-30T18:43:42.000Z | services/web/project/models.py | brienen/GGM-API-generator | 8e6939db7a67f7f5c0db5bb0d046ff1d699d5c90 | [
"MIT"
] | null | null | null | services/web/project/models.py | brienen/GGM-API-generator | 8e6939db7a67f7f5c0db5bb0d046ff1d699d5c90 | [
"MIT"
] | null | null | null |
from project.database import Base
from sqlalchemy import Column, DateTime, ForeignKey, Integer, String, func, Boolean, Date, Enum, Table
from sqlalchemy.orm import backref, relationship
import enum
class onderwijstypeEnum(enum.Enum):
Vmbo_T = "Vmbo_T"
Vmbo_K = "Vmbo_K"
Vmbo_B = "Vmbo_B"
Havo = "Havo... | 31.833333 | 117 | 0.711587 | 442 | 4,393 | 6.866516 | 0.165158 | 0.052718 | 0.073806 | 0.086985 | 0.420428 | 0.388138 | 0.272817 | 0.272817 | 0.272817 | 0.2257 | 0 | 0 | 0.175962 | 4,393 | 137 | 118 | 32.065693 | 0.838398 | 0 | 0 | 0.274725 | 0 | 0 | 0.147086 | 0.012978 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043956 | 0 | 0.912088 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c1ff83292af3b1f9ea44838035cc8cd08141fb03 | 1,976 | py | Python | backend/app/utils/get_param.py | btaguinod/purple-politics | 70cd184ad7803908fd2b3f667d8bfa8ad1f93808 | [
"MIT"
] | 1 | 2021-07-25T04:57:43.000Z | 2021-07-25T04:57:43.000Z | backend/app/utils/get_param.py | btaguinod/purple-politics | 70cd184ad7803908fd2b3f667d8bfa8ad1f93808 | [
"MIT"
] | null | null | null | backend/app/utils/get_param.py | btaguinod/purple-politics | 70cd184ad7803908fd2b3f667d8bfa8ad1f93808 | [
"MIT"
] | null | null | null | from flask_restful import request, abort
def get_param(param_name, default, is_valid, to_value, error_message):
param_string = request.args.get(param_name)
if param_string is None:
param_string = default
elif not is_valid(param_string):
abort(400, message=error_message)
return to_value... | 31.870968 | 76 | 0.675101 | 277 | 1,976 | 4.563177 | 0.184116 | 0.099684 | 0.077532 | 0.053797 | 0.621044 | 0.556171 | 0.463608 | 0.272152 | 0.181962 | 0.181962 | 0 | 0.001965 | 0.227227 | 1,976 | 62 | 77 | 31.870968 | 0.825802 | 0.230769 | 0 | 0.166667 | 0 | 0 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.033333 | 0.1 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de01614402374ea27bfa1400ded9799aafd1e7e1 | 29,642 | py | Python | mrl/combichem.py | DarkMatterAI/mrl | e000c3570d4461c3054c882697cce55217ede552 | [
"MIT"
] | 4 | 2021-11-16T09:29:55.000Z | 2021-12-27T17:55:32.000Z | mrl/combichem.py | DarkMatterAI/mrl | e000c3570d4461c3054c882697cce55217ede552 | [
"MIT"
] | null | null | null | mrl/combichem.py | DarkMatterAI/mrl | e000c3570d4461c3054c882697cce55217ede552 | [
"MIT"
] | 3 | 2021-11-16T09:41:41.000Z | 2021-12-27T17:55:33.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/23_combichem.ipynb (unless otherwise specified).
__all__ = ['Crossover', 'FragmentCrossover', 'Mutator', 'SmartsMutator', 'ChangeAtom', 'AppendAtomSingle',
'AppendAtomsDouble', 'AppendAtomsTriple', 'AppendAtom', 'DeleteAtom', 'ChangeBond', 'InsertAtomSingle',
... | 28.419942 | 114 | 0.581573 | 3,511 | 29,642 | 4.765024 | 0.12589 | 0.021518 | 0.017753 | 0.006276 | 0.341064 | 0.287986 | 0.26055 | 0.219068 | 0.18153 | 0.164734 | 0 | 0.01222 | 0.285001 | 29,642 | 1,043 | 115 | 28.419942 | 0.777154 | 0.226638 | 0 | 0.309478 | 1 | 0.011605 | 0.092502 | 0.039565 | 0 | 0 | 0 | 0 | 0.001934 | 1 | 0.123791 | false | 0.003868 | 0.01354 | 0.001934 | 0.243714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de119a88745c9f39a511040fdc62c6d174d4a6c0 | 3,535 | py | Python | Leak #5 - Lost In Translation/windows/Resources/ScRe/PyScripts/Lib/scre/mca/scre/cmd/sql/types.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Leak #5 - Lost In Translation/windows/Resources/ScRe/PyScripts/Lib/scre/mca/scre/cmd/sql/types.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | null | null | null | Leak #5 - Lost In Translation/windows/Resources/ScRe/PyScripts/Lib/scre/mca/scre/cmd/sql/types.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: types.py
from types import *
SQL_ACCESS_TYPE_READ_ONLY = 0
SQL_ACCESS_TYPE_READ_WRITE = 1
SQL_CONNECT_TYPE_DATA_SOURCE = 0
SQL_CONNECT_TYPE_DRIVER = ... | 36.443299 | 67 | 0.877511 | 590 | 3,535 | 4.627119 | 0.30678 | 0.136264 | 0.206593 | 0.062271 | 0.189011 | 0.017582 | 0 | 0 | 0 | 0 | 0 | 0.136223 | 0.08628 | 3,535 | 97 | 68 | 36.443299 | 0.708978 | 0.047808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.01087 | 0 | 0.01087 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de144b59bf4971c13cf5865f395cb740599b2c82 | 6,262 | py | Python | aps/aps_io/get_forecasts.py | kmunve/APS | 4c2f254ede83a3a311cbedc90c76db9ee367a000 | [
"MIT"
] | null | null | null | aps/aps_io/get_forecasts.py | kmunve/APS | 4c2f254ede83a3a311cbedc90c76db9ee367a000 | [
"MIT"
] | 1 | 2018-12-14T14:47:13.000Z | 2018-12-14T14:47:13.000Z | aps/aps_io/get_forecasts.py | kmunve/APS | 4c2f254ede83a3a311cbedc90c76db9ee367a000 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'raek'
__updated__ = 'kmu'
import requests
# import datetime
# import getdangers as gd
# import makelogs as md
# import types
def get_warnings_as_json(region_ids, start_date, end_date, lang_key=1, simple=False, recursive_count=5):
"""Selects warnings and returns the json stru... | 41.470199 | 134 | 0.660652 | 879 | 6,262 | 4.50967 | 0.260523 | 0.052977 | 0.026236 | 0.034309 | 0.292381 | 0.258577 | 0.232341 | 0.219223 | 0.20005 | 0.156912 | 0 | 0.033987 | 0.234111 | 6,262 | 151 | 135 | 41.470199 | 0.792535 | 0.373842 | 0 | 0 | 0 | 0.022727 | 0.115621 | 0 | 0 | 0 | 0 | 0.013245 | 0 | 1 | 0.045455 | false | 0 | 0.068182 | 0 | 0.159091 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9a7a052f58a1e0d5944634ce280250abd5a9d11 | 2,828 | py | Python | pgoapi/protos/pogoprotos/data/quests/quest_goal_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | 1 | 2017-12-12T10:05:57.000Z | 2017-12-12T10:05:57.000Z | pgoapi/protos/pogoprotos/data/quests/quest_goal_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | null | null | null | pgoapi/protos/pogoprotos/data/quests/quest_goal_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/data/quests/quest_goal.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | 35.35 | 294 | 0.778996 | 364 | 2,828 | 5.739011 | 0.326923 | 0.062231 | 0.114888 | 0.059837 | 0.340833 | 0.294399 | 0.1618 | 0.1618 | 0.1618 | 0.13978 | 0 | 0.02618 | 0.108557 | 2,828 | 79 | 295 | 35.797468 | 0.802459 | 0.087694 | 0 | 0.233333 | 1 | 0 | 0.109946 | 0.081974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.116667 | 0 | 0.116667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9add5c63d28379bc3d30b09c6d4cd8ad63bab59 | 11,658 | py | Python | examples/BrentExamples/EnvSolfreq.py | bford26/py-orbit | f6ed215e2f3a0a58cbe354de94bfacd2753e34c6 | [
"MIT"
] | null | null | null | examples/BrentExamples/EnvSolfreq.py | bford26/py-orbit | f6ed215e2f3a0a58cbe354de94bfacd2753e34c6 | [
"MIT"
] | null | null | null | examples/BrentExamples/EnvSolfreq.py | bford26/py-orbit | f6ed215e2f3a0a58cbe354de94bfacd2753e34c6 | [
"MIT"
] | null | null | null | print "Start."
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
import math
import random
import sys
import os
import numpy as np
import matplotlib.pyplot as plt
# Lattice Requirements
from orbit.tea... | 29.588832 | 119 | 0.549237 | 1,219 | 11,658 | 5.196883 | 0.250205 | 0.01989 | 0.011365 | 0.01547 | 0.344278 | 0.305446 | 0.239937 | 0.205525 | 0.205525 | 0.199526 | 0 | 0.019985 | 0.188797 | 11,658 | 393 | 120 | 29.664122 | 0.649889 | 0.364299 | 0 | 0.26601 | 0 | 0 | 0.053648 | 0.006254 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1133 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9b6354e3ee0809a18fb29ba82e1e3553ac6b3df | 813 | py | Python | novel/crawler/novelcrawler/spiders/jianke.py | East196/hello-py | a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21 | [
"Apache-2.0"
] | 1 | 2017-10-23T14:58:47.000Z | 2017-10-23T14:58:47.000Z | novel/crawler/novelcrawler/spiders/jianke.py | East196/hello-py | a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21 | [
"Apache-2.0"
] | null | null | null | novel/crawler/novelcrawler/spiders/jianke.py | East196/hello-py | a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21 | [
"Apache-2.0"
] | 1 | 2018-04-06T07:49:18.000Z | 2018-04-06T07:49:18.000Z | # -*- coding: utf-8 -*-
import scrapy
class JiankeItem(scrapy.Item):
title = scrapy.Field()
link = scrapy.Field()
desc = scrapy.Field()
class JiankeSpider(scrapy.Spider):
name = 'jianke'
allowed_domains = ['www.xxbiquge.com']
start_urls = ['http://www.xxbiquge.com/2_2327/']
def parse(se... | 29.035714 | 79 | 0.619926 | 97 | 813 | 5.103093 | 0.556701 | 0.066667 | 0.056566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011076 | 0.222632 | 813 | 27 | 80 | 30.111111 | 0.772152 | 0.02583 | 0 | 0 | 0 | 0 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a9c1c2fcd1c6ee30521dd1c0ed6912f515626036 | 423 | py | Python | app/payments/migrations/0002_auto_20181219_2206.py | zanielyene/krabacus3 | de985874b4034b13564cfd4af5e58e312fe5d438 | [
"MIT"
] | 2 | 2020-01-24T14:15:04.000Z | 2020-04-10T21:49:18.000Z | app/payments/migrations/0002_auto_20181219_2206.py | zanielyene/krabacus3 | de985874b4034b13564cfd4af5e58e312fe5d438 | [
"MIT"
] | 3 | 2020-02-12T00:31:59.000Z | 2021-06-10T21:33:49.000Z | app/payments/migrations/0002_auto_20181219_2206.py | zanielyene/krabacus3 | de985874b4034b13564cfd4af5e58e312fe5d438 | [
"MIT"
] | 3 | 2020-01-04T19:02:34.000Z | 2020-09-13T20:42:43.000Z | # Generated by Django 2.1.2 on 2018-12-19 22:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payments', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='subscriptionpayment',
name='journal_... | 22.263158 | 80 | 0.619385 | 45 | 423 | 5.733333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.267139 | 423 | 18 | 81 | 23.5 | 0.767742 | 0.106383 | 0 | 0 | 1 | 0 | 0.130319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9cc5cdb8295412d4fc14c315be868d4cb85b7ee | 928 | py | Python | chakin/commands/organism/get_organisms.py | DivSeek-Canada/python-chado | 68648a10fcf26b73cf05e9a403c67e48e6b2f66f | [
"MIT"
] | null | null | null | chakin/commands/organism/get_organisms.py | DivSeek-Canada/python-chado | 68648a10fcf26b73cf05e9a403c67e48e6b2f66f | [
"MIT"
] | null | null | null | chakin/commands/organism/get_organisms.py | DivSeek-Canada/python-chado | 68648a10fcf26b73cf05e9a403c67e48e6b2f66f | [
"MIT"
] | 1 | 2021-05-02T14:49:57.000Z | 2021-05-02T14:49:57.000Z | import click
from chakin.cli import pass_context
from chakin.decorators import custom_exception, list_output
@click.command('get_organisms')
@click.option(
"--organism_id",
help="organism_id filter",
type=int
)
@click.option(
"--genus",
help="genus filter",
type=str
)
@click.option(
"--spe... | 19.333333 | 138 | 0.662716 | 114 | 928 | 5.280702 | 0.315789 | 0.109635 | 0.107973 | 0.119601 | 0.159468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179957 | 928 | 47 | 139 | 19.744681 | 0.791064 | 0.065733 | 0 | 0.282051 | 0 | 0 | 0.171729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.076923 | 0 | 0.128205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a9ceaa3ef6cc59f4e410896597b1eb3b4a9303da | 924 | py | Python | scripts/sim_setup/kuramoto/frequency_constant/sim_physics_numba.py | icemtel/carpet | 5905e02ab0e44822829a672955dccad3e09eea07 | [
"MIT"
] | null | null | null | scripts/sim_setup/kuramoto/frequency_constant/sim_physics_numba.py | icemtel/carpet | 5905e02ab0e44822829a672955dccad3e09eea07 | [
"MIT"
] | null | null | null | scripts/sim_setup/kuramoto/frequency_constant/sim_physics_numba.py | icemtel/carpet | 5905e02ab0e44822829a672955dccad3e09eea07 | [
"MIT"
] | null | null | null | '''
TODO: Test
'''
from sim_geometry import *
import carpet.physics.kuramoto_numba as physics
# Physics
period = 31.25 # [ms] period of cilia beat
freq = 2 * np.pi / period # [rad/ms] angular frequency
freq_vec = freq * np.ones(N)
sin_str = 0.0016 * freq # coupling strength
# Load frequencies
period = 2... | 36.96 | 100 | 0.742424 | 148 | 924 | 4.297297 | 0.466216 | 0.070755 | 0.086478 | 0.110063 | 0.320755 | 0.320755 | 0.320755 | 0.242138 | 0.125786 | 0.125786 | 0 | 0.015727 | 0.174242 | 924 | 25 | 101 | 36.96 | 0.817824 | 0.219697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9cf295ed4b97d3e785ee35afdeffe5d6193e98e | 780 | py | Python | examples/groupby_on_array.py | igordertigor/python-notes | c46933f00dce08c9a9976a17a2afe466c3cb2dad | [
"MIT"
] | 1 | 2016-08-04T11:51:01.000Z | 2016-08-04T11:51:01.000Z | examples/groupby_on_array.py | igordertigor/python-notes | c46933f00dce08c9a9976a17a2afe466c3cb2dad | [
"MIT"
] | null | null | null | examples/groupby_on_array.py | igordertigor/python-notes | c46933f00dce08c9a9976a17a2afe466c3cb2dad | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function, absolute_import, unicode_literals, division
import functools
import itertools
import numpy as np
def groupby(A, keyfunc):
return itertools.groupby(sorted(A, key=keyfunc), keyfunc)
def keyfromcols(row, columns):
return tuple(row[i] for i in column... | 26 | 82 | 0.674359 | 120 | 780 | 4.258333 | 0.516667 | 0.046967 | 0.035225 | 0.039139 | 0.191781 | 0.191781 | 0.191781 | 0.191781 | 0.191781 | 0.191781 | 0 | 0.026984 | 0.192308 | 780 | 29 | 83 | 26.896552 | 0.784127 | 0 | 0 | 0.117647 | 0 | 0 | 0.127223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.235294 | null | null | 0.294118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.