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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
43d6d8023e324b47bf94feb4256c77e7078c57d2 | 5,511 | py | Python | vantivsdk/utils.py | anmol-sakarda/vantiv-sdk-for-python | a9c2f353d6bd7173649c9d697432bc54e67b60c3 | [
"MIT"
] | 4 | 2017-11-16T16:02:06.000Z | 2021-05-04T14:40:08.000Z | vantivsdk/utils.py | anmol-sakarda/vantiv-sdk-for-python | a9c2f353d6bd7173649c9d697432bc54e67b60c3 | [
"MIT"
] | 7 | 2017-08-23T15:04:38.000Z | 2020-04-07T20:20:15.000Z | vantivsdk/utils.py | anmol-sakarda/vantiv-sdk-for-python | a9c2f353d6bd7173649c9d697432bc54e67b60c3 | [
"MIT"
] | 13 | 2017-10-17T22:07:57.000Z | 2022-03-29T17:33:42.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2017 Vantiv eCommerce
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, ... | 35.554839 | 114 | 0.631827 | 644 | 5,511 | 5.276398 | 0.39441 | 0.025898 | 0.022955 | 0.02472 | 0.089759 | 0.07063 | 0.055327 | 0.041789 | 0.041789 | 0.014715 | 0 | 0.006725 | 0.271457 | 5,511 | 154 | 115 | 35.785714 | 0.839601 | 0.40773 | 0 | 0.078947 | 0 | 0 | 0.250485 | 0.06755 | 0 | 0 | 0 | 0.006494 | 0 | 1 | 0.039474 | false | 0.092105 | 0.078947 | 0 | 0.223684 | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
43dcf8101dc9f4502311bc875f7ceb4f5b429892 | 893 | py | Python | py/py_0242_odd_triplets.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0242_odd_triplets.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0242_odd_triplets.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 242: Odd Triplets
# https://projecteuler.net/problem=242
#
# Given the set {1,2,. . . ,n}, we define f(n,k) as the number of its
# k-element subsets with an odd sum of elements. For example, f(5,3) = 4,
# since the set {1,2,3,4,5} has four 3-element subsets having an odd sum of... | 33.074074 | 77 | 0.613662 | 186 | 893 | 2.903226 | 0.430108 | 0.018519 | 0.016667 | 0.02963 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107193 | 0.206047 | 893 | 26 | 78 | 34.346154 | 0.651622 | 0.798432 | 0 | 0 | 0 | 0 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43dec7cdc0cba25bb298f47ddd3332bf0b192c23 | 5,592 | py | Python | tests/test_input_validation.py | jklymak/gcalcli | cd524ebe56140aaf92ea2d7d03bfa0624880e012 | [
"MIT"
] | null | null | null | tests/test_input_validation.py | jklymak/gcalcli | cd524ebe56140aaf92ea2d7d03bfa0624880e012 | [
"MIT"
] | null | null | null | tests/test_input_validation.py | jklymak/gcalcli | cd524ebe56140aaf92ea2d7d03bfa0624880e012 | [
"MIT"
] | null | null | null | import pytest
from gcalcli.validators import validate_input, ValidationError
from gcalcli.validators import (STR_NOT_EMPTY,
PARSABLE_DATE,
PARSABLE_DURATION,
STR_TO_INT,
STR_ALLOW_EMPTY,
... | 38.040816 | 76 | 0.662196 | 644 | 5,592 | 5.625776 | 0.186335 | 0.107922 | 0.138007 | 0.19321 | 0.686724 | 0.595087 | 0.553961 | 0.465084 | 0.350814 | 0.278498 | 0 | 0.011617 | 0.230329 | 5,592 | 146 | 77 | 38.30137 | 0.830158 | 0.139664 | 0 | 0.348315 | 0 | 0 | 0.184365 | 0 | 0 | 0 | 0 | 0 | 0.224719 | 1 | 0.078652 | false | 0 | 0.044944 | 0 | 0.123596 | 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 |
78d75aa51d69f386957bc2e3c61cc61b97341b4b | 6,807 | py | Python | mlearn/functional/layers.py | EequalsMCsquare/mlearn | bee79618fb80568b99bc2eefcd97dab33967ee12 | [
"MIT"
] | 2 | 2019-12-13T16:06:24.000Z | 2020-01-04T13:44:08.000Z | mlearn/functional/layers.py | EequalsMCsquare/mlearn | bee79618fb80568b99bc2eefcd97dab33967ee12 | [
"MIT"
] | null | null | null | mlearn/functional/layers.py | EequalsMCsquare/mlearn | bee79618fb80568b99bc2eefcd97dab33967ee12 | [
"MIT"
] | null | null | null | from typing import List
import numpy as np
from time import time
from numba import jit, njit, prange
from ..autograd.parameter import Parameter
from ..autograd.tensor import Dependency, Tensor, ensure_tensor, ones
from .c_func import c_func
"""
################### Layers #######################
"""
def dense(inpu... | 35.087629 | 100 | 0.603056 | 848 | 6,807 | 4.668632 | 0.17217 | 0.05759 | 0.022986 | 0.031574 | 0.331144 | 0.222026 | 0.185148 | 0.174286 | 0.12781 | 0.12781 | 0 | 0.019469 | 0.230351 | 6,807 | 193 | 101 | 35.26943 | 0.736209 | 0.114147 | 0 | 0.153846 | 0 | 0 | 0.034823 | 0.005385 | 0 | 0 | 0 | 0.010363 | 0.017094 | 1 | 0.111111 | false | 0 | 0.059829 | 0.034188 | 0.282051 | 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 |
78d7e148dba33c639c0a32039979d2202935d5d9 | 840 | py | Python | data/train/python/75a20d2193532ac7bdbf9183f059131652fa9920__init__.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/75a20d2193532ac7bdbf9183f059131652fa9920__init__.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/75a20d2193532ac7bdbf9183f059131652fa9920__init__.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z |
# zope
from AccessControl.Permissions import manage_users as ManageUsers
# cmf
from Products.PluggableAuthService.PluggableAuthService import \
registerMultiPlugin
from anz.casclient.casclient import AnzCASClient, \
manage_addAnzCASClient, addAnzCASClientForm
# register plugins with pas
try:
registerM... | 30 | 65 | 0.592857 | 60 | 840 | 8.216667 | 0.7 | 0.048682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.360714 | 840 | 27 | 66 | 31.111111 | 0.918063 | 0.070238 | 0 | 0 | 0 | 0 | 0.027097 | 0.027097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.166667 | 0 | 0.222222 | 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 |
78d7ee93bb6b908e20017898fc80fbbd5865bca4 | 626 | py | Python | cms/models/__init__.py | leonardbillywoodiii/glidden_app | 6629464cbeafcbab504814dc9147c5dd53c11be5 | [
"MIT"
] | null | null | null | cms/models/__init__.py | leonardbillywoodiii/glidden_app | 6629464cbeafcbab504814dc9147c5dd53c11be5 | [
"MIT"
] | null | null | null | cms/models/__init__.py | leonardbillywoodiii/glidden_app | 6629464cbeafcbab504814dc9147c5dd53c11be5 | [
"MIT"
] | null | null | null | from .Event import Event
from .EventTime import EventTime
from .GeneralAddress import GeneralAddress
from .MemberAddress import MemberAddress
from .Ministry import Ministry
from .MinistryLeader import MinistryLeader
from .MinistryTime import MinistryTime
from .PhoneNumber import PhoneNumber
from .UserProfile import Use... | 34.777778 | 62 | 0.752396 | 58 | 626 | 8.051724 | 0.258621 | 0.124197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167732 | 626 | 17 | 63 | 36.823529 | 0.896353 | 0 | 0 | 0 | 0 | 0 | 0.198083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6875 | 0 | 0.6875 | 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 |
78de56c95dc510c1a625ed07d079a0c56eb03519 | 1,051 | py | Python | field_permissions/api/rest_framework.py | Sleepy105/django-field-permissions | d5ce8a64cb95927a73368e80eb3251fb5ccfbca1 | [
"MIT"
] | null | null | null | field_permissions/api/rest_framework.py | Sleepy105/django-field-permissions | d5ce8a64cb95927a73368e80eb3251fb5ccfbca1 | [
"MIT"
] | null | null | null | field_permissions/api/rest_framework.py | Sleepy105/django-field-permissions | d5ce8a64cb95927a73368e80eb3251fb5ccfbca1 | [
"MIT"
] | 1 | 2020-05-14T14:24:30.000Z | 2020-05-14T14:24:30.000Z | """
API helpers for django-rest-framework.
"""
from rest_framework import serializers
class FieldPermissionSerializerMixin:
"""
ModelSerializer logic for marking fields as ``read_only=True`` when a user is found not to have
change permissions.
"""
def __init__(self, *args, **kwargs):
sup... | 33.903226 | 99 | 0.659372 | 121 | 1,051 | 5.553719 | 0.495868 | 0.044643 | 0.035714 | 0.050595 | 0.151786 | 0.151786 | 0.151786 | 0.151786 | 0.151786 | 0.151786 | 0 | 0 | 0.247383 | 1,051 | 30 | 100 | 35.033333 | 0.849558 | 0.170314 | 0 | 0 | 0 | 0 | 0.020118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
78defbccfae57649de529ae9b28f3836b1dc9a2d | 9,670 | py | Python | doc/examples/quic/test/test.py | hannesm/ivy | b4ef8f03de4a423b60a2578cbe2aa612d7cf30d5 | [
"MIT"
] | null | null | null | doc/examples/quic/test/test.py | hannesm/ivy | b4ef8f03de4a423b60a2578cbe2aa612d7cf30d5 | [
"MIT"
] | null | null | null | doc/examples/quic/test/test.py | hannesm/ivy | b4ef8f03de4a423b60a2578cbe2aa612d7cf30d5 | [
"MIT"
] | null | null | null | # This script runs a sequence of tests on the picoquicdemo server.
import pexpect
import os
import sys
import imp
import subprocess
import re
import time
import signal
import platform
# On Windows, pexpect doesn't implement 'spawn'.
if platform.system() == 'Windows':
from pexpect.popen_spawn import PopenSpawn
... | 30.504732 | 227 | 0.533195 | 1,081 | 9,670 | 4.66975 | 0.218316 | 0.015848 | 0.011094 | 0.012678 | 0.16878 | 0.119057 | 0.065967 | 0.018225 | 0.018225 | 0.018225 | 0 | 0.016946 | 0.340951 | 9,670 | 316 | 228 | 30.601266 | 0.775145 | 0.070734 | 0 | 0.258555 | 0 | 0.007605 | 0.170087 | 0.027214 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003802 | 0.04943 | null | null | 0.091255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
78e00e4a1da7788f236f1f71f5ad5adf03a59dfb | 1,118 | py | Python | TemplatePattern/Template.py | JiangKlijna/DesignPattern | 445411a106348d0b63c2252e9b604af8c63cb1b3 | [
"Apache-2.0"
] | 6 | 2016-04-08T11:10:28.000Z | 2016-07-27T12:12:51.000Z | TemplatePattern/Template.py | JiangKlijna/design-pattern | 445411a106348d0b63c2252e9b604af8c63cb1b3 | [
"Apache-2.0"
] | null | null | null | TemplatePattern/Template.py | JiangKlijna/design-pattern | 445411a106348d0b63c2252e9b604af8c63cb1b3 | [
"Apache-2.0"
] | null | null | null | # encoding = utf-8
ingredients = "spam eggs apple"
line = '-' * 10
# Skeletons
def iter_elements(getter, action):
"""Template skeleton that iterates items"""
for element in getter():
action(element)
print(line)
def rev_elements(getter, action):
"""Template skeleton that iterates items i... | 19.964286 | 64 | 0.651163 | 143 | 1,118 | 4.993007 | 0.363636 | 0.084034 | 0.056022 | 0.078431 | 0.148459 | 0.148459 | 0.148459 | 0.148459 | 0 | 0 | 0 | 0.005875 | 0.238819 | 1,118 | 55 | 65 | 20.327273 | 0.833137 | 0.221825 | 0 | 0.142857 | 0 | 0 | 0.018868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.071429 | 0.392857 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
78e14f2aba8d88de912b4001d34a221a42cbe5bc | 536 | py | Python | py/adafruit-circuitpython-bundle-7.x-mpy-20211104/examples/seesaw_analogin_test.py | ParentZap/micro-projects | b260ac09057935f44d3d00ff96670fabfd567aac | [
"Apache-2.0"
] | null | null | null | py/adafruit-circuitpython-bundle-7.x-mpy-20211104/examples/seesaw_analogin_test.py | ParentZap/micro-projects | b260ac09057935f44d3d00ff96670fabfd567aac | [
"Apache-2.0"
] | null | null | null | py/adafruit-circuitpython-bundle-7.x-mpy-20211104/examples/seesaw_analogin_test.py | ParentZap/micro-projects | b260ac09057935f44d3d00ff96670fabfd567aac | [
"Apache-2.0"
] | null | null | null | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
# Simple seesaw test reading analog value
# on SAMD09, analog in can be pins 2, 3, or 4
# on Attiny8x7, analog in can be pins 0, 1, 2, 3, 6, 7, 18, 19, 20
import time
import board
from adafruit_seesaw.seesaw import ... | 25.52381 | 67 | 0.723881 | 83 | 536 | 4.60241 | 0.566265 | 0.08377 | 0.057592 | 0.068063 | 0.089005 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062645 | 0.195896 | 536 | 20 | 68 | 26.8 | 0.823666 | 0.44403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
78e694c14112b9af564eaf7c006ee08145a0db3b | 4,387 | py | Python | scripts/IStatsSum.py | liuzikai/klc3 | 0c7c1504158f1cce3e6bff32f69b4cb3067cffff | [
"NCSA"
] | 26 | 2020-06-20T15:13:14.000Z | 2022-03-30T12:49:51.000Z | scripts/IStatsSum.py | liuzikai/klc3 | 0c7c1504158f1cce3e6bff32f69b4cb3067cffff | [
"NCSA"
] | null | null | null | scripts/IStatsSum.py | liuzikai/klc3 | 0c7c1504158f1cce3e6bff32f69b4cb3067cffff | [
"NCSA"
] | 8 | 2020-07-09T23:39:23.000Z | 2021-04-21T20:21:20.000Z | #!/usr/bin/env python
# ===-- IStatsSum.py ------------------------------------------------------===##
#
# The KLEE Symbolic Virtual Machine
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
# ===-------------------------------... | 31.561151 | 94 | 0.461819 | 486 | 4,387 | 4.141975 | 0.323045 | 0.04769 | 0.049677 | 0.01689 | 0.026826 | 0.026826 | 0.026826 | 0.026826 | 0.026826 | 0 | 0 | 0.008925 | 0.387053 | 4,387 | 138 | 95 | 31.789855 | 0.73968 | 0.097561 | 0 | 0.155963 | 0 | 0 | 0.096905 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0 | null | null | 0.018349 | 0.027523 | null | null | 0.036697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
78e7d56bd60a90046457dd2ee6b032e281b5a2c3 | 6,368 | py | Python | fhirclient/models/catalogentry.py | carolinarsm/client-py | db1b6e3e28036dee11da75412003c7d90e591c6d | [
"Apache-2.0"
] | 418 | 2015-07-01T08:23:16.000Z | 2022-03-31T14:02:30.000Z | fhirclient/models/catalogentry.py | carolinarsm/client-py | db1b6e3e28036dee11da75412003c7d90e591c6d | [
"Apache-2.0"
] | 312 | 2017-09-08T15:42:13.000Z | 2022-03-23T18:21:40.000Z | fhirclient/models/catalogentry.py | carolinarsm/client-py | db1b6e3e28036dee11da75412003c7d90e591c6d | [
"Apache-2.0"
] | 185 | 2015-03-30T20:23:16.000Z | 2022-03-30T14:39:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/CatalogEntry) on 2019-05-07.
# 2019, SMART Health IT.
from . import domainresource
class CatalogEntry(domainresource.DomainResource):
""" An entry in a catalog.
Catalog entri... | 39.308642 | 121 | 0.634265 | 638 | 6,368 | 6.27116 | 0.246082 | 0.03899 | 0.027493 | 0.047488 | 0.415146 | 0.326168 | 0.31942 | 0.311422 | 0.271432 | 0.252937 | 0 | 0.004476 | 0.263191 | 6,368 | 161 | 122 | 39.552795 | 0.848252 | 0.146043 | 0 | 0.28169 | 1 | 0 | 0.129402 | 0.033538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.183099 | 0 | 0.323944 | 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 |
78e7e1b8c3157ab33b0df444c228b4fa688602f7 | 6,459 | py | Python | cubes/namespace.py | devvmh/cubes | 6d83f04acb34eeb0b904dd1af0e97eda6621bf6c | [
"MIT"
] | 2 | 2021-07-20T10:26:06.000Z | 2021-07-21T01:40:12.000Z | cubes/namespace.py | zshwuhan/cubes | 6d83f04acb34eeb0b904dd1af0e97eda6621bf6c | [
"MIT"
] | null | null | null | cubes/namespace.py | zshwuhan/cubes | 6d83f04acb34eeb0b904dd1af0e97eda6621bf6c | [
"MIT"
] | 1 | 2021-07-21T01:40:27.000Z | 2021-07-21T01:40:27.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from .errors import NoSuchCubeError, NoSuchDimensionError
from .common import read_json_file
from . import compat
__all__ = [
"Namespace",
]
class Namespace(object):
def __init__(self, name=None, parent=None):
"""Creates a cubes namespac... | 32.295 | 78 | 0.574547 | 714 | 6,459 | 5.120448 | 0.257703 | 0.022976 | 0.009847 | 0.012035 | 0.014223 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001403 | 0.337978 | 6,459 | 199 | 79 | 32.457286 | 0.853368 | 0.281932 | 0 | 0.159664 | 0 | 0 | 0.021827 | 0 | 0 | 0 | 0 | 0.01005 | 0 | 1 | 0.07563 | false | 0.008403 | 0.033613 | 0 | 0.193277 | 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 |
78e9ee03913dde373291c719cceed2480d0f50fd | 2,343 | py | Python | tests/test_cache.py | anirudhrata/slixmpp | 1fcee0e80a212eeb274d2f560e69099d8a61bf7f | [
"BSD-3-Clause"
] | 86 | 2016-07-04T13:26:02.000Z | 2022-02-19T10:26:21.000Z | tests/test_cache.py | anirudhrata/slixmpp | 1fcee0e80a212eeb274d2f560e69099d8a61bf7f | [
"BSD-3-Clause"
] | 10 | 2016-09-30T18:55:41.000Z | 2020-05-01T14:22:47.000Z | tests/test_cache.py | anirudhrata/slixmpp | 1fcee0e80a212eeb274d2f560e69099d8a61bf7f | [
"BSD-3-Clause"
] | 45 | 2016-09-30T18:48:41.000Z | 2022-03-18T21:39:33.000Z | import unittest
from slixmpp.test import SlixTest
from slixmpp.util import (
MemoryCache, MemoryPerJidCache,
FileSystemCache, FileSystemPerJidCache
)
from tempfile import TemporaryDirectory
class TestCacheClass(SlixTest):
def testMemoryCache(self):
cache = MemoryCache()
cache.store("test"... | 31.24 | 74 | 0.572343 | 215 | 2,343 | 6.116279 | 0.223256 | 0.114068 | 0.152091 | 0.212928 | 0.574905 | 0.496578 | 0.461597 | 0.368061 | 0.368061 | 0.290494 | 0 | 0.001868 | 0.314554 | 2,343 | 74 | 75 | 31.662162 | 0.816936 | 0 | 0 | 0.47619 | 0 | 0 | 0.135297 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 1 | 0.079365 | false | 0 | 0.063492 | 0 | 0.174603 | 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 |
78eb74515b3178b8975fa8948dd9f0286d80c125 | 28,749 | py | Python | Stackless/unittests/test_miscell.py | Whosemario/stackless-python | 437aca219bbb82fb7f01d05a22d061cdb6f28ea1 | [
"PSF-2.0"
] | null | null | null | Stackless/unittests/test_miscell.py | Whosemario/stackless-python | 437aca219bbb82fb7f01d05a22d061cdb6f28ea1 | [
"PSF-2.0"
] | null | null | null | Stackless/unittests/test_miscell.py | Whosemario/stackless-python | 437aca219bbb82fb7f01d05a22d061cdb6f28ea1 | [
"PSF-2.0"
] | null | null | null | # import common
import pickle
import unittest
import stackless
import sys
import traceback
import contextlib
import weakref
import types
import contextlib
from support import StacklessTestCase, AsTaskletTestCase
def in_psyco():
try:
return __in_psyco__
except NameError:
return False
def is_s... | 30.486744 | 98 | 0.602004 | 3,225 | 28,749 | 5.270078 | 0.102636 | 0.025535 | 0.027006 | 0.023476 | 0.612379 | 0.562015 | 0.499706 | 0.456519 | 0.442104 | 0.393916 | 0 | 0.004094 | 0.28634 | 28,749 | 942 | 99 | 30.519108 | 0.824292 | 0.054158 | 0 | 0.616935 | 0 | 0 | 0.016612 | 0 | 0 | 0 | 0 | 0 | 0.255376 | 0 | null | null | 0.004032 | 0.017473 | 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 |
78f92fa9ebe823d89b118c4c623c139eedef5369 | 285 | py | Python | examples/historic data.py | fegarciad/BinanceTrading | 327028a541323a48c8f4adaa02c01659d0bdf113 | [
"MIT"
] | 2 | 2021-12-12T03:32:03.000Z | 2021-12-16T21:13:14.000Z | examples/historic data.py | fegarciad/BinanceTrading | 327028a541323a48c8f4adaa02c01659d0bdf113 | [
"MIT"
] | null | null | null | examples/historic data.py | fegarciad/BinanceTrading | 327028a541323a48c8f4adaa02c01659d0bdf113 | [
"MIT"
] | null | null | null | ######################################
# Example Historic Candle Stick Data #
######################################
from binancetrading import Exchange
COIN = 'BTC'
INTERVAL = '1m'
LOOKBACK = 10
exchange = Exchange()
data = exchange.kline_df(COIN, INTERVAL, LOOKBACK)
print(data)
| 19 | 50 | 0.540351 | 26 | 285 | 5.884615 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.122807 | 285 | 14 | 51 | 20.357143 | 0.6 | 0.119298 | 0 | 0 | 0 | 0 | 0.02924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
78faed73b9c13be8fa16e7602fd78445efa59e99 | 800 | py | Python | web/views.py | thinkAmi-sandbox/todolist_by_django | 810b445f0bff061f0f3fb5597c2b701700a9c510 | [
"Unlicense"
] | null | null | null | web/views.py | thinkAmi-sandbox/todolist_by_django | 810b445f0bff061f0f3fb5597c2b701700a9c510 | [
"Unlicense"
] | null | null | null | web/views.py | thinkAmi-sandbox/todolist_by_django | 810b445f0bff061f0f3fb5597c2b701700a9c510 | [
"Unlicense"
] | null | null | null | from django.views.generic import CreateView, UpdateView, DeleteView, ListView, DetailView
from web.models import ToDo
from web.forms import ToDoModelForm
from django.urls import reverse
class ToDoCreateView(CreateView):
model = ToDo
form_class = ToDoModelForm
def get_success_url(self):
return rev... | 21.621622 | 89 | 0.72 | 96 | 800 | 5.885417 | 0.385417 | 0.079646 | 0.069027 | 0.084956 | 0.417699 | 0.417699 | 0.417699 | 0.417699 | 0.417699 | 0.346903 | 0 | 0 | 0.18625 | 800 | 36 | 90 | 22.222222 | 0.867896 | 0 | 0 | 0.521739 | 0 | 0 | 0.0575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.173913 | 0.130435 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
600869d6d697c41aa8145d9fbdf8c450235f9f16 | 5,667 | py | Python | dj/main/management/commands/rework.py | kattekrab/veyepar | d7010e451b1b04e7eb7b5ee0239696958ada41d6 | [
"MIT"
] | null | null | null | dj/main/management/commands/rework.py | kattekrab/veyepar | d7010e451b1b04e7eb7b5ee0239696958ada41d6 | [
"MIT"
] | null | null | null | dj/main/management/commands/rework.py | kattekrab/veyepar | d7010e451b1b04e7eb7b5ee0239696958ada41d6 | [
"MIT"
] | null | null | null | # rework.py - looks up a public url,
# returns the edit page
# or if an email is passed to:
# sets state to edit,
# appends the email to the list of emails
# prints some text to send
import subprocess
import pprint
from django.core.management.base import BaseCommand, CommandError
from django.core.urlresolvers i... | 34.138554 | 123 | 0.442386 | 591 | 5,667 | 4.164129 | 0.275804 | 0.022755 | 0.048354 | 0.065421 | 0.381552 | 0.323852 | 0.222674 | 0.222674 | 0.203982 | 0.167412 | 0 | 0.019627 | 0.460561 | 5,667 | 165 | 124 | 34.345455 | 0.785411 | 0.088759 | 0 | 0.252874 | 0 | 0.022989 | 0.169547 | 0.015778 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057471 | null | null | 0.195402 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
600a6dac5f47fb75f9558a58a8f6be5fb26d5171 | 9,146 | py | Python | cloudera/qtest-driver-info.py | wmky/hive-1.1.1-cdh5.8.4 | 0952d6bc93867c82b2969f57c71f013dcb5c9cb9 | [
"Apache-2.0"
] | null | null | null | cloudera/qtest-driver-info.py | wmky/hive-1.1.1-cdh5.8.4 | 0952d6bc93867c82b2969f57c71f013dcb5c9cb9 | [
"Apache-2.0"
] | 2 | 2021-02-03T19:42:33.000Z | 2021-08-02T17:25:26.000Z | cloudera/qtest-driver-info.py | wmky/hive-1.1.1-cdh5.8.4 | 0952d6bc93867c82b2969f57c71f013dcb5c9cb9 | [
"Apache-2.0"
] | 3 | 2020-04-28T03:26:05.000Z | 2021-09-08T07:07:07.000Z | #!/usr/bin/python
#
# This script will search the required Test drivers into the '--pom' parameter file
# that need to be used to run the tests for the specified q-tests passed on '--paths'.
#
import argparse
import os
import re
import sys
import xml.etree.ElementTree as ET
PREFIX_XMLNS = "{http://maven.apache.org/P... | 37.483607 | 127 | 0.607588 | 1,096 | 9,146 | 4.985401 | 0.221715 | 0.016471 | 0.016471 | 0.018302 | 0.2403 | 0.189605 | 0.110542 | 0.098829 | 0.07284 | 0.035871 | 0 | 0.003212 | 0.285043 | 9,146 | 244 | 128 | 37.483607 | 0.83239 | 0.205882 | 0 | 0.126984 | 0 | 0 | 0.131665 | 0.015538 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039683 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6010c5b35e555e3f21ae9c985429bd2564fdc8e3 | 5,876 | py | Python | source/main.py | DingfanChen/RelaxLoss | d21c82dee7016cd0cb6688a408104eeb0d832790 | [
"MIT"
] | 4 | 2022-02-08T06:39:13.000Z | 2022-03-27T13:57:13.000Z | source/main.py | DingfanChen/RelaxLoss | d21c82dee7016cd0cb6688a408104eeb0d832790 | [
"MIT"
] | 1 | 2022-02-22T10:17:49.000Z | 2022-02-22T22:10:52.000Z | source/main.py | DingfanChen/RelaxLoss | d21c82dee7016cd0cb6688a408104eeb0d832790 | [
"MIT"
] | null | null | null | import os
import sys
import argparse
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
SAVE_ROOT_IMAGE = os.path.join(FILE_DIR, '../results/%s/%s/')
SAVE_ROOT_GENERAL = os.path.join(FILE_DIR, '../results/%s/')
def parse_arguments():
parser = argparse.ArgumentParser()
parser.add_argument('--dataset', type... | 47.008 | 150 | 0.636658 | 768 | 5,876 | 4.69401 | 0.135417 | 0.08294 | 0.036061 | 0.040777 | 0.689043 | 0.682108 | 0.667129 | 0.646325 | 0.646325 | 0.646325 | 0 | 0.004808 | 0.221239 | 5,876 | 124 | 151 | 47.387097 | 0.782998 | 0.044588 | 0 | 0.445652 | 0 | 0.065217 | 0.28978 | 0.043852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0 | 0.032609 | 0 | 0.097826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6013892a950789b5bf327ca7fa6108307b542367 | 1,431 | py | Python | tests/circuitpython-manual/audiopwmio/single_buffer_loop.py | Neradoc/circuitpython | 932131b4ff4b95066a872b5b299a84e80b7c45d3 | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | 3,010 | 2017-01-07T23:43:33.000Z | 2022-03-31T06:02:59.000Z | tests/circuitpython-manual/audiopwmio/single_buffer_loop.py | Neradoc/circuitpython | 932131b4ff4b95066a872b5b299a84e80b7c45d3 | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | 4,478 | 2017-01-06T01:35:02.000Z | 2022-03-31T23:03:27.000Z | tests/circuitpython-manual/audiopwmio/single_buffer_loop.py | Neradoc/circuitpython | 932131b4ff4b95066a872b5b299a84e80b7c45d3 | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | 1,149 | 2017-01-09T00:35:23.000Z | 2022-03-31T21:24:29.000Z | import audiocore
import audiopwmio
import board
import digitalio
import array
import time
import math
trigger = digitalio.DigitalInOut(board.D4)
trigger.switch_to_output(True)
# Generate one period of sine wav.
length = 8000 // 440
samples = []
sample_names = ["unsigned 8 bit", "signed 8 bit", "unsigned 16 bit", "si... | 23.459016 | 85 | 0.659679 | 226 | 1,431 | 4.141593 | 0.300885 | 0.017094 | 0.042735 | 0.047009 | 0.404915 | 0.404915 | 0.267094 | 0.267094 | 0.267094 | 0.267094 | 0 | 0.070759 | 0.180294 | 1,431 | 60 | 86 | 23.85 | 0.727195 | 0.062893 | 0 | 0.102564 | 1 | 0 | 0.046442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.179487 | 0 | 0.179487 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6017597813554b84cc30db559038e48666a5af3e | 22,226 | py | Python | pyechonest/song.py | storagebot/pyechonest | aa39f008e9ecdefedb3f37187596c6cf2b770e80 | [
"BSD-3-Clause"
] | null | null | null | pyechonest/song.py | storagebot/pyechonest | aa39f008e9ecdefedb3f37187596c6cf2b770e80 | [
"BSD-3-Clause"
] | null | null | null | pyechonest/song.py | storagebot/pyechonest | aa39f008e9ecdefedb3f37187596c6cf2b770e80 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
Copyright (c) 2010 The Echo Nest. All rights reserved.
Created by Tyler Williams on 2010-04-25.
The Song module loosely covers http://developer.echonest.com/docs/v4/song.html
Refer to the official api documentation if you are unsure about something.
"""
import os
import uti... | 39.831541 | 1,284 | 0.620445 | 2,560 | 22,226 | 5.270313 | 0.186328 | 0.022013 | 0.010599 | 0.015565 | 0.318782 | 0.2878 | 0.22858 | 0.222428 | 0.218796 | 0.206493 | 0 | 0.058418 | 0.282192 | 22,226 | 557 | 1,285 | 39.903052 | 0.787263 | 0.567848 | 0 | 0.118881 | 0 | 0 | 0.137464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.041958 | 0.013986 | 0.265734 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6017eba5123911ee8d11b2e1c2600643c110787d | 623 | py | Python | gin/deterministic/test/test_embed.py | choderalab/gin | 9082431d8b664699a898c1e2fa490a18737d6e2d | [
"MIT"
] | 24 | 2019-07-20T22:37:09.000Z | 2021-07-07T07:13:56.000Z | gin/deterministic/test/test_embed.py | choderalab/gin | 9082431d8b664699a898c1e2fa490a18737d6e2d | [
"MIT"
] | 3 | 2021-05-10T05:29:59.000Z | 2022-02-10T00:15:05.000Z | gin/deterministic/test/test_embed.py | kuano-ai/gimlet | 9082431d8b664699a898c1e2fa490a18737d6e2d | [
"MIT"
] | 8 | 2019-08-09T17:30:20.000Z | 2021-12-01T13:27:46.000Z | import gin
import pytest
import numpy.testing as npt
import tensorflow as tf
def test_embed():
ds = gin.i_o.from_sdf.to_ds('data/caffeine.sdf')
coordinates = list(ds)[0][2]
distance_matrix = gin.deterministic.md.get_distance_matrix(coordinates)
# TODO: d_o_2 unused
d_o_2 = tf.reduce_sum(
... | 25.958333 | 75 | 0.659711 | 85 | 623 | 4.611765 | 0.505882 | 0.178571 | 0.086735 | 0.153061 | 0.178571 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0.016771 | 0.23435 | 623 | 23 | 76 | 27.086957 | 0.805031 | 0.028892 | 0 | 0 | 0 | 0 | 0.028192 | 0 | 0 | 0 | 0 | 0.043478 | 0.055556 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 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 |
6018bafd34a6444bc5c4c6e93bd2d432c4374af1 | 1,366 | py | Python | suggest_lib.py | Ph3nX-Z/WebShell-C2 | d63c8e01caa691a730d80798423a7c7ccae200d5 | [
"MIT"
] | 3 | 2021-09-28T18:53:03.000Z | 2022-01-10T14:54:24.000Z | suggest_lib.py | Ph3nX-Z/WebShell-C2 | d63c8e01caa691a730d80798423a7c7ccae200d5 | [
"MIT"
] | null | null | null | suggest_lib.py | Ph3nX-Z/WebShell-C2 | d63c8e01caa691a730d80798423a7c7ccae200d5 | [
"MIT"
] | 3 | 2021-10-05T20:35:27.000Z | 2021-11-10T06:23:05.000Z | import random
class Suggested_pass:
def __init__(self,nombre,lettres,char):
self.password=None
self.nb_nombres=nombre
self.nb_lettres=lettres
self.nb_char=char
def generate(self):
liste_lettre=[]
liste_char=[]
liste_nombres=[]
lettres="abcdefghij... | 28.458333 | 56 | 0.574671 | 160 | 1,366 | 4.68125 | 0.275 | 0.048064 | 0.036048 | 0.056075 | 0.299065 | 0.299065 | 0.272363 | 0.160214 | 0 | 0 | 0 | 0.02537 | 0.307467 | 1,366 | 47 | 57 | 29.06383 | 0.766385 | 0 | 0 | 0.146341 | 0 | 0 | 0.078331 | 0.019034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.121951 | 0.02439 | 0 | 0.121951 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
601987938759741d82744026add3d7d754cf712f | 1,982 | py | Python | chain/consumers.py | 745184532/cmdb | e8e983f83ac4f5120be88983bbb73f447bd375c4 | [
"Apache-2.0"
] | 251 | 2018-03-19T15:41:50.000Z | 2022-02-24T03:28:44.000Z | chain/consumers.py | mrpal39/chain | 169f810551a8355579d3cef670ecf88942478a05 | [
"Apache-2.0"
] | 18 | 2018-04-20T06:31:16.000Z | 2022-03-11T23:28:33.000Z | chain/consumers.py | mrpal39/chain | 169f810551a8355579d3cef670ecf88942478a05 | [
"Apache-2.0"
] | 167 | 2018-03-20T02:04:00.000Z | 2021-08-05T07:30:34.000Z | from asgiref.sync import async_to_sync
from channels.generic.websocket import WebsocketConsumer
from channels.layers import get_channel_layer
channel_layer = get_channel_layer()
class EchoConsumer(WebsocketConsumer):
def connect(self):
# 创建channels group, 命名为:用户名,并使用channel_layer写入到redis
async_... | 32.491803 | 105 | 0.625126 | 232 | 1,982 | 5.133621 | 0.262931 | 0.092359 | 0.098237 | 0.123426 | 0.664987 | 0.664987 | 0.664987 | 0.611251 | 0.611251 | 0.611251 | 0 | 0 | 0.232593 | 1,982 | 61 | 105 | 32.491803 | 0.783037 | 0.535822 | 0 | 0 | 0 | 0 | 0.040449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6019a026719315127414d7dd4e3a9cec7866c2bf | 721 | py | Python | notebooks/util.py | tanxuezhi/cmip6hack-precip | 9e4f6a1ce33410b57fe52a4daf9eb7daf5d560a1 | [
"MIT"
] | 1 | 2021-11-18T08:29:17.000Z | 2021-11-18T08:29:17.000Z | notebooks/util.py | yyang9301/cmip6hack-precip | 9e4f6a1ce33410b57fe52a4daf9eb7daf5d560a1 | [
"MIT"
] | 30 | 2019-10-16T18:29:01.000Z | 2019-10-28T19:08:12.000Z | notebooks/util.py | yyang9301/cmip6hack-precip | 9e4f6a1ce33410b57fe52a4daf9eb7daf5d560a1 | [
"MIT"
] | 3 | 2020-03-24T23:57:33.000Z | 2021-11-18T08:29:19.000Z | """This is a general purpose module containing routines
(a) that are used in multiple notebooks; or
(b) that are complicated and would thus otherwise clutter notebook design.
"""
import re
import socket
import intake
def is_ncar_host():
"""Determine if host is an NCAR machine."""
hostname = socket.getfqdn()
... | 31.347826 | 74 | 0.683773 | 99 | 721 | 4.858586 | 0.606061 | 0.066528 | 0.04158 | 0.066528 | 0.137214 | 0.137214 | 0 | 0 | 0 | 0 | 0 | 0.003466 | 0.199723 | 721 | 23 | 75 | 31.347826 | 0.830156 | 0.352288 | 0 | 0 | 0 | 0 | 0.170732 | 0.126386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 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 |
601aad52061cac918a31e68d63e314dc52d5b944 | 2,703 | py | Python | sdk/python/feast/sdk/resources/storage.py | davidheryanto/feast | 72cc8bd2cd0040f7bc44df255f95bad00cacd720 | [
"Apache-2.0"
] | null | null | null | sdk/python/feast/sdk/resources/storage.py | davidheryanto/feast | 72cc8bd2cd0040f7bc44df255f95bad00cacd720 | [
"Apache-2.0"
] | null | null | null | sdk/python/feast/sdk/resources/storage.py | davidheryanto/feast | 72cc8bd2cd0040f7bc44df255f95bad00cacd720 | [
"Apache-2.0"
] | 2 | 2020-05-20T22:07:11.000Z | 2021-07-25T17:28:24.000Z | # Copyright 2018 The Feast Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 26.762376 | 74 | 0.617462 | 341 | 2,703 | 4.774194 | 0.381232 | 0.04914 | 0.034398 | 0.044226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004707 | 0.292638 | 2,703 | 100 | 75 | 27.03 | 0.846757 | 0.393637 | 0 | 0.086957 | 0 | 0 | 0.01227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23913 | false | 0 | 0.108696 | 0.086957 | 0.5 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
601cd1871eaedd4ce9af87e7c2b57caee230d2f5 | 4,226 | py | Python | scripts/evaluate.py | MichelML/ml-aging | b54470c00450da7d5b50e7be4a1f162f1c4b8531 | [
"Apache-2.0"
] | 7 | 2019-07-08T06:24:53.000Z | 2022-03-22T13:41:00.000Z | scripts/evaluate.py | MichelML/ml-aging | b54470c00450da7d5b50e7be4a1f162f1c4b8531 | [
"Apache-2.0"
] | null | null | null | scripts/evaluate.py | MichelML/ml-aging | b54470c00450da7d5b50e7be4a1f162f1c4b8531 | [
"Apache-2.0"
] | 2 | 2019-08-19T13:43:49.000Z | 2019-08-25T02:01:48.000Z | import numpy as np
import pandas as pd
from scipy import misc
import torch
from tqdm import tqdm_notebook
from collections import Counter
import gc
from sklearn.model_selection import train_test_split
def eval_model_per_cell(model, loader, file_path, path_data, sub_df, device='cuda', sub_file='/artifacts/submission.c... | 32.507692 | 130 | 0.551822 | 565 | 4,226 | 3.916814 | 0.162832 | 0.08676 | 0.045188 | 0.034343 | 0.727519 | 0.689562 | 0.646182 | 0.644374 | 0.602802 | 0.602802 | 0 | 0.030802 | 0.323947 | 4,226 | 129 | 131 | 32.75969 | 0.743787 | 0 | 0 | 0.631579 | 0 | 0 | 0.049219 | 0.017747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0 | 0.084211 | 0 | 0.157895 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
601d5923b48eab17e5dea61fbfd089bc9cf66e83 | 208 | py | Python | geminidr/f2/lookups/maskdb.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 19 | 2017-10-23T14:52:51.000Z | 2022-03-28T04:49:00.000Z | geminidr/f2/lookups/maskdb.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 194 | 2017-11-01T17:32:45.000Z | 2022-03-31T21:32:59.000Z | geminidr/f2/lookups/maskdb.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 16 | 2017-11-01T05:18:04.000Z | 2021-12-14T23:08:57.000Z | # f2/maskdb.py
#
# This file contains the bad pixel mask (BPMs), illumination mask,
# and mask definition file (MDF) lookup tables for F2
illumMask_dict = {
'F2_IMAGE_11': 'f2_image_illumination.fits',
} | 26 | 66 | 0.730769 | 31 | 208 | 4.741935 | 0.741935 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.163462 | 208 | 8 | 67 | 26 | 0.810345 | 0.620192 | 0 | 0 | 0 | 0 | 0.493333 | 0.346667 | 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 | 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 |
601de9b864b59e63ec2680b2c2609012b8e86b93 | 2,854 | py | Python | mfc_sec_etl/reports/cash_flow/etl.py | marwin-ko/mfc-sec-etl | 102d0979827322613fcabf872abd412a654705d1 | [
"Apache-2.0"
] | null | null | null | mfc_sec_etl/reports/cash_flow/etl.py | marwin-ko/mfc-sec-etl | 102d0979827322613fcabf872abd412a654705d1 | [
"Apache-2.0"
] | null | null | null | mfc_sec_etl/reports/cash_flow/etl.py | marwin-ko/mfc-sec-etl | 102d0979827322613fcabf872abd412a654705d1 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import re
def is_cashflow_sheet(sheet):
pattern = r'^(.*statement).*(cash)'
return bool(re.search(pattern, sheet.lower()))
def get_cashflow_col(cashflow_df):
pattern = r'(cash).*(flow)'
for col in cashflow_df.columns:
if re.search(pattern, col.lower()):
return... | 33.186047 | 94 | 0.703924 | 422 | 2,854 | 4.469194 | 0.263033 | 0.227996 | 0.076352 | 0.066808 | 0.42948 | 0.33298 | 0.297985 | 0.199364 | 0.115589 | 0.115589 | 0 | 0.00919 | 0.199369 | 2,854 | 86 | 95 | 33.186047 | 0.816193 | 0.078837 | 0 | 0.25 | 0 | 0 | 0.017537 | 0.008387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.033333 | 0.016667 | 0.416667 | 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 |
602be457cdfcfae80fe3b7e886d1cf7ef3f2ca1d | 4,167 | py | Python | env/lib64/python3.8/site-packages/openpyxl/chart/label.py | albixhafa/balance-sheet-integrity | bc7edef8ac7d7e57375a26f9edf9c7235722a2ac | [
"MIT"
] | 11 | 2020-06-28T04:30:26.000Z | 2022-03-26T08:40:47.000Z | env/lib64/python3.8/site-packages/openpyxl/chart/label.py | albixhafa/balance-sheet-integrity | bc7edef8ac7d7e57375a26f9edf9c7235722a2ac | [
"MIT"
] | 10 | 2020-09-30T12:49:45.000Z | 2020-10-04T10:26:33.000Z | venv/Lib/site-packages/openpyxl/chart/label.py | aklauritzen/bilago | 276b1c11e259dd77260c74fc013f59eb1eb42d2f | [
"MIT"
] | 1 | 2021-11-16T19:06:53.000Z | 2021-11-16T19:06:53.000Z | # Copyright (c) 2010-2020 openpyxl
from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
Sequence,
Alias,
Typed
)
from openpyxl.descriptors.excel import ExtensionList
from openpyxl.descriptors.nested import (
NestedNoneSet,
NestedBool,
NestedString,
N... | 32.554688 | 93 | 0.669786 | 358 | 4,167 | 7.547486 | 0.198324 | 0.046632 | 0.067358 | 0.068098 | 0.329386 | 0.305699 | 0.305699 | 0.305699 | 0.305699 | 0.305699 | 0 | 0.002855 | 0.243581 | 4,167 | 127 | 94 | 32.811024 | 0.854378 | 0.007679 | 0 | 0.247619 | 0 | 0 | 0.045971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.590476 | 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 |
602c767454ac2dea7e97192fb734f71273e49b48 | 3,721 | py | Python | mars/tensor/arithmetic/divide.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | 1 | 2022-02-02T03:03:48.000Z | 2022-02-02T03:03:48.000Z | mars/tensor/arithmetic/divide.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | null | null | null | mars/tensor/arithmetic/divide.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-... | 32.356522 | 106 | 0.640688 | 535 | 3,721 | 4.414953 | 0.416822 | 0.013548 | 0.023709 | 0.013548 | 0.08044 | 0.015241 | 0 | 0 | 0 | 0 | 0 | 0.02984 | 0.243483 | 3,721 | 114 | 107 | 32.640351 | 0.809236 | 0.692556 | 0 | 0.076923 | 0 | 0 | 0.040089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.192308 | 0 | 0.576923 | 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 |
602e67394bb42a8907c8d15b6e0c797687f1bd0a | 12,864 | py | Python | dynamic_preferences/types.py | calvin620707/django-dynamic-preferences | 09026f5aea085fba24df8ba961c629a133242c81 | [
"BSD-3-Clause"
] | null | null | null | dynamic_preferences/types.py | calvin620707/django-dynamic-preferences | 09026f5aea085fba24df8ba961c629a133242c81 | [
"BSD-3-Clause"
] | null | null | null | dynamic_preferences/types.py | calvin620707/django-dynamic-preferences | 09026f5aea085fba24df8ba961c629a133242c81 | [
"BSD-3-Clause"
] | null | null | null | """
You'll find here the final, concrete classes of preferences you can use
in your own project.
"""
from django import forms
from django.db.models.signals import pre_delete
from django.core.files.storage import default_storage
from .preferences import AbstractPreference, Section
from .exceptions import MissingModel... | 27.664516 | 81 | 0.634562 | 1,394 | 12,864 | 5.728121 | 0.215208 | 0.028929 | 0.024421 | 0.030933 | 0.246838 | 0.209142 | 0.139512 | 0.06913 | 0.046838 | 0.046838 | 0 | 0.001077 | 0.278374 | 12,864 | 464 | 82 | 27.724138 | 0.859097 | 0.332634 | 0 | 0.160714 | 0 | 0 | 0.036132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.041667 | 0.035714 | 0.636905 | 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 |
602ea7bf8c4bbfad2f4d56650cb098784bf80ec9 | 4,011 | py | Python | pysnmp-with-texts/IBMCPU-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/IBMCPU-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/IBMCPU-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module IBMCPU-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IBMCPU-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:51:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:... | 111.416667 | 505 | 0.778858 | 454 | 4,011 | 6.881057 | 0.325991 | 0.009603 | 0.010563 | 0.014085 | 0.366837 | 0.227913 | 0.197183 | 0.197183 | 0.177337 | 0.170615 | 0 | 0.063976 | 0.091997 | 4,011 | 35 | 506 | 114.6 | 0.793795 | 0.078285 | 0 | 0 | 0 | 0.035714 | 0.258677 | 0.018709 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60302110ebabf69c9358896a26142cb2f8e4003e | 2,815 | py | Python | plenum/common/keygen_utils.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | null | null | null | plenum/common/keygen_utils.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | null | null | null | plenum/common/keygen_utils.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | 2 | 2017-12-13T21:14:54.000Z | 2021-06-06T15:48:03.000Z | import os
from plenum.bls.bls_crypto_factory import create_default_bls_crypto_factory
from plenum.common.constants import CLIENT_STACK_SUFFIX
from plenum.common.stacks import nodeStackClass
from stp_core.crypto.util import randomSeed
def initLocalKeys(name, keys_dir, sigseed, *, use_bls, override=False):
# * for... | 38.561644 | 96 | 0.735702 | 351 | 2,815 | 5.709402 | 0.270655 | 0.059381 | 0.049401 | 0.04491 | 0.331337 | 0.241517 | 0.217565 | 0.188623 | 0 | 0 | 0 | 0 | 0.188988 | 2,815 | 72 | 97 | 39.097222 | 0.877792 | 0.077087 | 0 | 0.156863 | 0 | 0 | 0.067489 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.137255 | false | 0 | 0.098039 | 0.019608 | 0.313725 | 0.137255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
603ae288367ca4b88d9d5970e15c0efbe4a795e4 | 1,823 | py | Python | semtk3/nodegroupstoreclient.py | glguy/semtk-python3 | c3ea09f5cc68fe99753eca696591344fe9b89bba | [
"Apache-2.0"
] | 1 | 2020-04-30T16:48:05.000Z | 2020-04-30T16:48:05.000Z | semtk3/nodegroupstoreclient.py | glguy/semtk-python3 | c3ea09f5cc68fe99753eca696591344fe9b89bba | [
"Apache-2.0"
] | 7 | 2020-07-09T18:31:41.000Z | 2021-09-02T12:23:36.000Z | semtk3/nodegroupstoreclient.py | glguy/semtk-python3 | c3ea09f5cc68fe99753eca696591344fe9b89bba | [
"Apache-2.0"
] | 2 | 2020-07-17T22:35:41.000Z | 2020-07-28T16:16:09.000Z | #
# Copyright 2019-20 General Electric Company
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 29.885246 | 91 | 0.665387 | 202 | 1,823 | 5.836634 | 0.504951 | 0.050891 | 0.033927 | 0.027142 | 0.10687 | 0.071247 | 0.071247 | 0.071247 | 0 | 0 | 0 | 0.010189 | 0.246297 | 1,823 | 61 | 92 | 29.885246 | 0.847889 | 0.340647 | 0 | 0.333333 | 0 | 0 | 0.109229 | 0.035563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.458333 | 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 |
603b39d0a9bd41f483c173f794ea2ad735b4aaf1 | 834 | py | Python | test123/bbb.py | kane1997/locust_scrypt | 7adf051076afea94c5bb161e38d2180884930ea5 | [
"MIT"
] | null | null | null | test123/bbb.py | kane1997/locust_scrypt | 7adf051076afea94c5bb161e38d2180884930ea5 | [
"MIT"
] | null | null | null | test123/bbb.py | kane1997/locust_scrypt | 7adf051076afea94c5bb161e38d2180884930ea5 | [
"MIT"
] | null | null | null | from locust import HttpUser, TaskSet, task, between
UserName = [
("qamile1@gmail.com", "qamile"),
("qamile2@gmail.com", "qamile"),
("qamile3@gmail.com", "qamile"),
("qamile4@gmail.com", "qamile"),
("qamile5@gmail.com", "qamile")
]
class User(HttpUser):
wait_time = between(5, 10)
@task(1)... | 26.0625 | 92 | 0.581535 | 100 | 834 | 4.78 | 0.51 | 0.083682 | 0.146444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022082 | 0.239808 | 834 | 31 | 93 | 26.903226 | 0.731861 | 0 | 0 | 0 | 0 | 0 | 0.226619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.041667 | 0 | 0.291667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
603b68e13600c2487b40eed4d1c14d32bdb07909 | 1,825 | py | Python | strings.py | alexander-zou/pycheats | 558c4f65bfe4643c07fac09a292f01aebb3a6f16 | [
"MIT"
] | null | null | null | strings.py | alexander-zou/pycheats | 558c4f65bfe4643c07fac09a292f01aebb3a6f16 | [
"MIT"
] | null | null | null | strings.py | alexander-zou/pycheats | 558c4f65bfe4643c07fac09a292f01aebb3a6f16 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
'''
@File : strings.py
@Author : alexander.here@gmail.com
@Date : 2020-02-18 16:35
@Brief :
'''
# string literals:
s1 = "Hello, 'World\" !"
s2 = 'Hello, \'World" !'
print( id( s1))
print( id( s2))
long_string = '''
this is a very long string.
a long str... | 22.8125 | 81 | 0.579726 | 269 | 1,825 | 3.903346 | 0.457249 | 0.047619 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036388 | 0.186849 | 1,825 | 79 | 82 | 23.101266 | 0.671159 | 0.305753 | 0 | 0 | 0 | 0 | 0.264943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0.589744 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
603c681b859ff9f4e61c4caf1b29254fa0d7d96c | 1,147 | py | Python | logger/transforms/extract_field_transform.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | null | null | null | logger/transforms/extract_field_transform.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | null | null | null | logger/transforms/extract_field_transform.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
import logging
import sys
from os.path import dirname, realpath; sys.path.append(dirname(dirname(dirname(realpath(__file__)))))
from logger.utils.das_record import DASRecord
from logger.transforms.transform import Transform
#####################################################################... | 29.410256 | 101 | 0.627724 | 136 | 1,147 | 5.183824 | 0.360294 | 0.076596 | 0.092199 | 0.089362 | 0.221277 | 0.221277 | 0.147518 | 0.147518 | 0.147518 | 0.147518 | 0 | 0.001079 | 0.191805 | 1,147 | 38 | 102 | 30.184211 | 0.759439 | 0.180471 | 0 | 0.142857 | 0 | 0 | 0.076074 | 0.025767 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.238095 | 0 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
603f5d21c20eeb9230cbd9b5b5311933aec439cc | 1,770 | py | Python | check_installed_solvers.py | Giuseppe1992/mapping_distrinet-1 | d00490f8da8c9550e1de51ba64ed4033705a6a9b | [
"MIT"
] | 2 | 2020-01-31T16:18:38.000Z | 2021-07-19T07:44:13.000Z | check_installed_solvers.py | jdoe79250/jd_mapping_distrinet_1 | 7ccbf2fb09b619dc97d105d936d549ab9ac828fa | [
"MIT"
] | null | null | null | check_installed_solvers.py | jdoe79250/jd_mapping_distrinet_1 | 7ccbf2fb09b619dc97d105d936d549ab9ac828fa | [
"MIT"
] | 2 | 2020-01-31T16:18:43.000Z | 2020-02-03T10:14:19.000Z | import pulp
import pytest
@pytest.fixture
def ilp():
"""Generate a simple ILP with 5 as an optimal solution."""
prob = pulp.LpProblem("Example", pulp.LpMinimize)
x1 = pulp.LpVariable("x1", 0, 10, pulp.LpInteger)
x2 = pulp.LpVariable("x2", 5, 10, pulp.LpInteger)
prob += x1 + x2, "obj"
prob += x... | 31.052632 | 62 | 0.577401 | 218 | 1,770 | 4.66055 | 0.261468 | 0.034449 | 0.054134 | 0.083661 | 0.593504 | 0.495079 | 0.495079 | 0.495079 | 0.495079 | 0.495079 | 0 | 0.021412 | 0.287571 | 1,770 | 57 | 63 | 31.052632 | 0.784298 | 0.106215 | 0 | 0.487805 | 1 | 0 | 0.074984 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.146341 | false | 0 | 0.04878 | 0 | 0.243902 | 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 |
6050234fcc571e496d8e1c718e89384a2c42fc8f | 3,262 | py | Python | tests/test_renku.py | cchoirat/renku | 83a1d569e19f73f91605e58be4dd6ebeea009981 | [
"Apache-2.0"
] | null | null | null | tests/test_renku.py | cchoirat/renku | 83a1d569e19f73f91605e58be4dd6ebeea009981 | [
"Apache-2.0"
] | null | null | null | tests/test_renku.py | cchoirat/renku | 83a1d569e19f73f91605e58be4dd6ebeea009981 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2017-2018 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in c... | 32.62 | 81 | 0.703556 | 456 | 3,262 | 4.883772 | 0.372807 | 0.039515 | 0.033678 | 0.038168 | 0.273462 | 0.215986 | 0.155815 | 0.092501 | 0.057476 | 0.057476 | 0 | 0.012053 | 0.186082 | 3,262 | 99 | 82 | 32.949495 | 0.826742 | 0.401594 | 0 | 0.204082 | 0 | 0 | 0.166492 | 0.012605 | 0 | 0 | 0 | 0.010101 | 0.204082 | 1 | 0.040816 | false | 0.040816 | 0.122449 | 0 | 0.163265 | 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 |
60548b8b4027a64f1d742681bf8eeadfe5c4362c | 2,368 | py | Python | popbl_servicesapp/flask_app/machine/application/models.py | xetxezarreta/master-popbl1 | 253880b9ba358f63f666893cdbbffe7391fcd096 | [
"MIT"
] | null | null | null | popbl_servicesapp/flask_app/machine/application/models.py | xetxezarreta/master-popbl1 | 253880b9ba358f63f666893cdbbffe7391fcd096 | [
"MIT"
] | 1 | 2021-06-02T00:57:11.000Z | 2021-06-02T00:57:11.000Z | popbl_servicesapp/flask_app/machine/application/models.py | xetxezarreta/master-popbl1 | 253880b9ba358f63f666893cdbbffe7391fcd096 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, DateTime, Integer, String, TEXT, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.sql import func
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class BaseModel(Base):
__abstract__ = True
creation_date = Column(DateTime(timez... | 32.888889 | 98 | 0.679899 | 273 | 2,368 | 5.630037 | 0.307692 | 0.019519 | 0.035133 | 0.03123 | 0.269356 | 0.251789 | 0.165257 | 0 | 0 | 0 | 0 | 0.003155 | 0.196791 | 2,368 | 71 | 99 | 33.352113 | 0.804942 | 0 | 0 | 0.111111 | 0 | 0 | 0.093328 | 0.009291 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0.037037 | 0.814815 | 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 |
60559c6570e0f353d458e6a25fbbd915c2d9c649 | 875 | py | Python | examples/projections/misc/misc_mollweide.py | jbusecke/pygmt | 9ef6338dbb9bdd4c31dda94da6d4126852a6cd85 | [
"BSD-3-Clause"
] | 326 | 2019-02-13T09:33:39.000Z | 2022-03-25T17:24:05.000Z | examples/projections/misc/misc_mollweide.py | jbusecke/pygmt | 9ef6338dbb9bdd4c31dda94da6d4126852a6cd85 | [
"BSD-3-Clause"
] | 1,153 | 2019-01-22T19:14:32.000Z | 2022-03-31T22:07:03.000Z | examples/projections/misc/misc_mollweide.py | jbusecke/pygmt | 9ef6338dbb9bdd4c31dda94da6d4126852a6cd85 | [
"BSD-3-Clause"
] | 160 | 2019-02-10T15:24:19.000Z | 2022-03-31T09:07:41.000Z | r"""
Mollweide
=========
This pseudo-cylindrical, equal-area projection was developed by the German
mathematician and astronomer Karl Brandan Mollweide in 1805. Parallels are
unequally spaced straight lines with the meridians being equally spaced
elliptical arcs. The scale is only true along latitudes 40°44’ north and... | 38.043478 | 85 | 0.736 | 132 | 875 | 4.886364 | 0.651515 | 0.023256 | 0.04186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031957 | 0.141714 | 875 | 22 | 86 | 39.772727 | 0.825566 | 0.836571 | 0 | 0 | 0 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
605a4ab4e3fb5f825cac00bdfa155b82d056b5f2 | 925 | py | Python | Python/Image Pre-processing/imageCompression.py | Aliasghar1362/MSTAR-Classification | eb76e29fcee5d225f1c2560813236a09f1db8c40 | [
"MIT"
] | 1 | 2020-07-14T11:40:41.000Z | 2020-07-14T11:40:41.000Z | Python/Image Pre-processing/imageCompression.py | Aliasghar1362/MSTAR-Classification | eb76e29fcee5d225f1c2560813236a09f1db8c40 | [
"MIT"
] | null | null | null | Python/Image Pre-processing/imageCompression.py | Aliasghar1362/MSTAR-Classification | eb76e29fcee5d225f1c2560813236a09f1db8c40 | [
"MIT"
] | 1 | 2020-09-16T19:59:11.000Z | 2020-09-16T19:59:11.000Z | import cv2
import numpy as np
import os
from PIL import Image
def image_compression(folder):
"""Takes in the location of the folder containing the pictures and loads all the pictures from the folder
for pre-processing. Data pre-processing includes converting the image to gray scale"""
images = []
num_... | 29.83871 | 109 | 0.700541 | 124 | 925 | 5.08871 | 0.524194 | 0.228209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02961 | 0.196757 | 925 | 30 | 110 | 30.833333 | 0.81965 | 0.201081 | 0 | 0 | 0 | 0 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.25 | 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 |
605b18cf718cea22dddaeb5c65c4711de766cbc1 | 10,600 | py | Python | hw3/hw3_cheat/conv.py | miniTsl/Media_Cognition_hw | b1529fbe40d8052ad95715637cb57e3aa8a90626 | [
"MIT"
] | null | null | null | hw3/hw3_cheat/conv.py | miniTsl/Media_Cognition_hw | b1529fbe40d8052ad95715637cb57e3aa8a90626 | [
"MIT"
] | null | null | null | hw3/hw3_cheat/conv.py | miniTsl/Media_Cognition_hw | b1529fbe40d8052ad95715637cb57e3aa8a90626 | [
"MIT"
] | null | null | null | #========================================================
# Media and Cognition
# Homework 3 Convolutional Neural Network
# conv.py - 2D convolutional layer
# Student ID:
# Name:
# Tsinghua University
# (C) Copyright 2022
#============... | 57.923497 | 193 | 0.674057 | 1,614 | 10,600 | 4.240397 | 0.148079 | 0.06429 | 0.039889 | 0.042957 | 0.380918 | 0.342198 | 0.298656 | 0.283898 | 0.254091 | 0.238895 | 0 | 0.009379 | 0.225472 | 10,600 | 182 | 194 | 58.241758 | 0.824239 | 0.564245 | 0 | 0.136364 | 0 | 0 | 0.040923 | 0 | 0 | 0 | 0 | 0.016484 | 0.015152 | 1 | 0.060606 | false | 0 | 0.075758 | 0 | 0.212121 | 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 |
6064abd1ff19574af06240b7e1e19d1ebc5b4b35 | 517 | py | Python | chuck-pyth/code/urllink2.py | KaiserPhemi/python-101 | 703facf41f1b47c486e5044696ce87b6d28a9ab3 | [
"MIT"
] | 3 | 2019-12-04T07:04:33.000Z | 2021-08-24T02:21:37.000Z | chuck-pyth/code/urllink2.py | KaiserPhemi/python-101 | 703facf41f1b47c486e5044696ce87b6d28a9ab3 | [
"MIT"
] | null | null | null | chuck-pyth/code/urllink2.py | KaiserPhemi/python-101 | 703facf41f1b47c486e5044696ce87b6d28a9ab3 | [
"MIT"
] | 6 | 2017-04-08T06:44:18.000Z | 2022-03-22T19:22:01.000Z | # Note - this code must run in Python 2.x and you must download
# http://www.pythonlearn.com/code/BeautifulSoup.py
# Into the same folder as this program
import urllib
from BeautifulSoup import *
url = raw_input('Enter - ')
html = urllib.urlopen(url).read()
soup = BeautifulSoup(html)
# Retrieve all of the anchor ta... | 24.619048 | 63 | 0.690522 | 82 | 517 | 4.341463 | 0.646341 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004751 | 0.185687 | 517 | 20 | 64 | 25.85 | 0.840855 | 0.398453 | 0 | 0 | 0 | 0 | 0.118033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6068db4fa6dd2c2cd219a908aa5342798b6c8843 | 208 | py | Python | JarvisAI/JarvisAI/features/website_open/website_open.py | Akhandsaxena12/Jarvis_AI | 9158053ef10f9fa87b0d9aa406468f02990ddf7f | [
"MIT"
] | null | null | null | JarvisAI/JarvisAI/features/website_open/website_open.py | Akhandsaxena12/Jarvis_AI | 9158053ef10f9fa87b0d9aa406468f02990ddf7f | [
"MIT"
] | null | null | null | JarvisAI/JarvisAI/features/website_open/website_open.py | Akhandsaxena12/Jarvis_AI | 9158053ef10f9fa87b0d9aa406468f02990ddf7f | [
"MIT"
] | null | null | null | import webbrowser
def website_opener(domain):
try:
url = 'https://www.' + domain
webbrowser.open(url)
return True
except Exception as e:
print(e)
return False | 18.909091 | 37 | 0.581731 | 24 | 208 | 5 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.331731 | 208 | 11 | 38 | 18.909091 | 0.863309 | 0 | 0 | 0 | 0 | 0 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0.111111 | 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 |
606c55df63659b121a63f0cae9a792ebdd80691b | 455 | py | Python | ap/apps/users/migrations/0008_user_profile_edited.py | shacker/ap | 9059c5737b0dbef82e968cf8a9a6bf303c7a1688 | [
"BSD-3-Clause"
] | 1 | 2020-11-08T03:11:17.000Z | 2020-11-08T03:11:17.000Z | ap/apps/users/migrations/0008_user_profile_edited.py | shacker/ap | 9059c5737b0dbef82e968cf8a9a6bf303c7a1688 | [
"BSD-3-Clause"
] | null | null | null | ap/apps/users/migrations/0008_user_profile_edited.py | shacker/ap | 9059c5737b0dbef82e968cf8a9a6bf303c7a1688 | [
"BSD-3-Clause"
] | 1 | 2021-10-20T07:39:04.000Z | 2021-10-20T07:39:04.000Z | # Generated by Django 2.1.2 on 2018-10-21 17:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0007_auto_20181021_0043'),
]
operations = [
migrations.AddField(
model_name='user',
name='profile_edited',
... | 23.947368 | 117 | 0.628571 | 54 | 455 | 5.185185 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092814 | 0.265934 | 455 | 18 | 118 | 25.277778 | 0.745509 | 0.098901 | 0 | 0 | 1 | 0 | 0.235294 | 0.056373 | 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 |
606db518a52b77f026fce6048d761721454c8cd2 | 4,003 | gyp | Python | ion/port/port.gyp | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | ion/port/port.gyp | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | ion/port/port.gyp | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 26.163399 | 79 | 0.454909 | 356 | 4,003 | 5.039326 | 0.494382 | 0.033445 | 0.058528 | 0.017837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003292 | 0.392955 | 4,003 | 152 | 80 | 26.335526 | 0.734979 | 0.244567 | 0 | 0.338583 | 0 | 0 | 0.393464 | 0.044015 | 0 | 0 | 0 | 0 | 0.007874 | 1 | 0 | true | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60760a0b4cfdd01e7319192bfdc238ba0d551a61 | 4,757 | py | Python | sololink/flightcode/python/led_control.py | meee1/OpenSolo | 6f299639adbad1e8d573c8ae1135832711b600e4 | [
"Apache-2.0"
] | 68 | 2019-09-23T03:27:05.000Z | 2022-03-12T03:00:41.000Z | sololink/flightcode/python/led_control.py | meee1/OpenSolo | 6f299639adbad1e8d573c8ae1135832711b600e4 | [
"Apache-2.0"
] | 22 | 2019-10-26T20:15:56.000Z | 2022-02-12T05:41:56.000Z | sololink/flightcode/python/led_control.py | meee1/OpenSolo | 6f299639adbad1e8d573c8ae1135832711b600e4 | [
"Apache-2.0"
] | 33 | 2019-09-29T19:52:19.000Z | 2022-03-12T03:00:43.000Z | #!/usr/bin/python
'''
Copyright (C) 2017 Hugh Eaves
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This progra... | 43.642202 | 219 | 0.675005 | 590 | 4,757 | 5.394915 | 0.330508 | 0.025448 | 0.048068 | 0.075401 | 0.221489 | 0.160226 | 0.142633 | 0.090481 | 0.090481 | 0.064719 | 0 | 0.020446 | 0.198024 | 4,757 | 108 | 220 | 44.046296 | 0.813893 | 0.013664 | 0 | 0.064935 | 0 | 0 | 0.192873 | 0.011214 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038961 | null | null | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60766d1f05ea9c7813c17dcf213063cc79880c35 | 2,127 | py | Python | tests/test_dataclasses_support.py | scrapinghub/andi | 4047db3b347d387800464f8ba4aa4c187d21fce9 | [
"BSD-3-Clause"
] | 13 | 2019-08-28T23:08:38.000Z | 2022-03-10T14:32:21.000Z | tests/test_dataclasses_support.py | scrapinghub/andi | 4047db3b347d387800464f8ba4aa4c187d21fce9 | [
"BSD-3-Clause"
] | 21 | 2020-02-10T15:26:46.000Z | 2021-02-11T18:41:12.000Z | tests/test_dataclasses_support.py | scrapinghub/andi | 4047db3b347d387800464f8ba4aa4c187d21fce9 | [
"BSD-3-Clause"
] | 2 | 2020-04-27T22:08:29.000Z | 2021-04-24T02:18:25.000Z | import sys
import pytest
import andi
@pytest.mark.skipif(sys.version_info != (3, 6),
reason="Testing dataclasses backport for Python 3.6")
def test_dataclasses_py36():
from tests.py36 import ADC, BDC
assert andi.inspect(ADC.__init__) == {'b': [BDC]}
assert andi.inspect(BDC.__init__) ... | 40.132075 | 88 | 0.633286 | 290 | 2,127 | 4.417241 | 0.237931 | 0.062451 | 0.087432 | 0.093677 | 0.65808 | 0.617486 | 0.579235 | 0.489461 | 0.464481 | 0.350507 | 0 | 0.04582 | 0.240715 | 2,127 | 52 | 89 | 40.903846 | 0.747368 | 0.061589 | 0 | 0.263158 | 0 | 0 | 0.186492 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.131579 | true | 0 | 0.263158 | 0 | 0.394737 | 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 |
607782a8611d9330a27fe84848dc01ea28e02e57 | 2,894 | py | Python | mocha/matches.py | iepathos/lol_tornado_betting | 9f222ca0f476a1bd1f737cad35ae9cb26207c13f | [
"MIT"
] | null | null | null | mocha/matches.py | iepathos/lol_tornado_betting | 9f222ca0f476a1bd1f737cad35ae9cb26207c13f | [
"MIT"
] | null | null | null | mocha/matches.py | iepathos/lol_tornado_betting | 9f222ca0f476a1bd1f737cad35ae9cb26207c13f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from tornado.gen import coroutine
from .services import RethinkService, if_async
from datetime import datetime
from rethinkdb import r
class MatchesService(RethinkService):
table = 'matches'
# players
# score
# time
@if_async(coroutine)
def new(self, id, game):
... | 53.592593 | 165 | 0.614375 | 312 | 2,894 | 5.682692 | 0.413462 | 0.045121 | 0.078962 | 0.047941 | 0.275804 | 0.08009 | 0.054146 | 0.054146 | 0.054146 | 0 | 0 | 0.089438 | 0.188666 | 2,894 | 53 | 166 | 54.603774 | 0.665673 | 0.013822 | 0 | 0.111111 | 0 | 0 | 0.035429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | 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 |
607fbb18cb45967efa9ad543c4a37dcb82257e19 | 4,632 | py | Python | pet/classification_task.py | cmstroe/pet | 18b79ac744fd448bd4c6799296c3cb310e7a033c | [
"Apache-2.0"
] | null | null | null | pet/classification_task.py | cmstroe/pet | 18b79ac744fd448bd4c6799296c3cb310e7a033c | [
"Apache-2.0"
] | null | null | null | pet/classification_task.py | cmstroe/pet | 18b79ac744fd448bd4c6799296c3cb310e7a033c | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 39.589744 | 128 | 0.693221 | 642 | 4,632 | 4.901869 | 0.250779 | 0.027963 | 0.022879 | 0.026692 | 0.373371 | 0.357483 | 0.309819 | 0.303146 | 0.231331 | 0.199555 | 0 | 0.002822 | 0.234888 | 4,632 | 116 | 129 | 39.931034 | 0.885158 | 0.509283 | 0 | 0 | 0 | 0 | 0.033849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.146341 | 0 | 0.634146 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6084afdf801db597bd8937d01bda370a8da44e0d | 6,382 | py | Python | google/cloud/securitycenter_v1beta1/proto/run_asset_discovery_response_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter_v1beta1/proto/run_asset_discovery_response_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter_v1beta1/proto/run_asset_discovery_response_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/securitycenter_v1beta1/proto/run_asset_discovery_response.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from googl... | 36.678161 | 724 | 0.704481 | 643 | 6,382 | 6.667185 | 0.242613 | 0.037789 | 0.084908 | 0.082109 | 0.442734 | 0.428505 | 0.36669 | 0.291113 | 0.263121 | 0.221833 | 0 | 0.031818 | 0.207145 | 6,382 | 173 | 725 | 36.890173 | 0.815415 | 0.057819 | 0 | 0.476821 | 1 | 0.013245 | 0.254249 | 0.202599 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039735 | 0 | 0.039735 | 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 |
60872cae1c7ff6391494595bef529b1d684b935f | 13,546 | py | Python | ports/rp2/modules/matplotlib/pyplot.py | twhoekstra/micropython | cc032f73e6aab8430f1a20ab4fb9ab5f8f381f60 | [
"MIT"
] | null | null | null | ports/rp2/modules/matplotlib/pyplot.py | twhoekstra/micropython | cc032f73e6aab8430f1a20ab4fb9ab5f8f381f60 | [
"MIT"
] | null | null | null | ports/rp2/modules/matplotlib/pyplot.py | twhoekstra/micropython | cc032f73e6aab8430f1a20ab4fb9ab5f8f381f60 | [
"MIT"
] | null | null | null | # Format for plot is __PLOT_PREFIX{dictionary of settings}[[x axis], [y axis]]
# Format for attribute is __ATTRIBUTE_PREFIXattribute(parameters)
__PLOT_PREFIX = '%matplotlibdata --'
__ATTRIBUTE_PREFIX = '%matplotlib --' # Prefix to recognize attribute
from ulab import numpy as np
import binascii
def axhl... | 36.413978 | 136 | 0.625351 | 1,746 | 13,546 | 4.79496 | 0.15063 | 0.011945 | 0.06904 | 0.081223 | 0.675824 | 0.617535 | 0.54085 | 0.406116 | 0.343765 | 0.32752 | 0 | 0.006666 | 0.22479 | 13,546 | 372 | 137 | 36.413978 | 0.790591 | 0.456149 | 0 | 0.246032 | 0 | 0.007937 | 0.221685 | 0.063727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.015873 | 0 | 0.285714 | 0.126984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
60926316a9689c946b9f7940cdc578bb33a401ab | 5,846 | py | Python | Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/cnvt_rslts2TDXY.py | mahmoud-a-ali/Thesis_sample_codes | 02a912dd012291b00c89db195b4cba2ebb4d35fe | [
"MIT"
] | null | null | null | Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/cnvt_rslts2TDXY.py | mahmoud-a-ali/Thesis_sample_codes | 02a912dd012291b00c89db195b4cba2ebb4d35fe | [
"MIT"
] | null | null | null | Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/cnvt_rslts2TDXY.py | mahmoud-a-ali/Thesis_sample_codes | 02a912dd012291b00c89db195b4cba2ebb4d35fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 2 13:17:02 2018
@author: mali
"""
#import time
import pickle
import pyNN.utility.plotting as plot
import matplotlib.pyplot as plt
import comn_conversion as cnvrt
import prnt_plt_anmy as ppanmy
#=============================== load rslts files =... | 39.768707 | 179 | 0.592029 | 932 | 5,846 | 3.330472 | 0.158798 | 0.027062 | 0.024807 | 0.024807 | 0.500644 | 0.44491 | 0.275451 | 0.225515 | 0.212629 | 0.162371 | 0 | 0.013551 | 0.192097 | 5,846 | 146 | 180 | 40.041096 | 0.643659 | 0.3026 | 0 | 0.060976 | 0 | 0.012195 | 0.199442 | 0.011165 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060976 | null | null | 0.268293 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
60954f1942c053ba9b1edee3c141781f31f14a0e | 629 | py | Python | soft_renderer/functional/ambient_lighting.py | sh8/SoftRas-1 | ba8b309268161ac0ab0ecad4f487755d98f34d7e | [
"MIT"
] | 942 | 2019-04-04T06:17:22.000Z | 2022-03-29T14:12:34.000Z | soft_renderer/functional/ambient_lighting.py | mlej8/SoftRas | 07a24592a7b95ddeaa2fd3b7a23f721c76c7ab33 | [
"MIT"
] | 95 | 2019-05-08T21:26:20.000Z | 2022-03-27T03:10:45.000Z | soft_renderer/functional/ambient_lighting.py | mlej8/SoftRas | 07a24592a7b95ddeaa2fd3b7a23f721c76c7ab33 | [
"MIT"
] | 153 | 2019-04-04T08:17:43.000Z | 2022-03-25T00:28:22.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
def ambient_lighting(light, light_intensity=0.5, light_color=(1, 1, 1)):
device = light.device
if isinstance(light_color, tuple) or isinstance(light_color, list):
light_color = torch.tensor(light_color, dtype=torch.... | 33.105263 | 83 | 0.701113 | 90 | 629 | 4.722222 | 0.4 | 0.282353 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017476 | 0.18124 | 629 | 18 | 84 | 34.944444 | 0.807767 | 0.015898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
60965b898a2cfdc0ef1b598ea330bd35aba62688 | 1,013 | py | Python | module3/implement_itcc.py | jdahhan/Stem-Away-group-5 | 5a0c5e63f8dca184107de4f4fe2560059856cea5 | [
"MIT"
] | 1 | 2021-08-21T18:12:00.000Z | 2021-08-21T18:12:00.000Z | module3/implement_itcc.py | jdahhan/Stem-Away-group-5 | 5a0c5e63f8dca184107de4f4fe2560059856cea5 | [
"MIT"
] | null | null | null | module3/implement_itcc.py | jdahhan/Stem-Away-group-5 | 5a0c5e63f8dca184107de4f4fe2560059856cea5 | [
"MIT"
] | 1 | 2021-08-21T18:12:07.000Z | 2021-08-21T18:12:07.000Z | """
This script is to execute and consolidate the ITCC implementations into one clear interactive shell script.
[Useful article to overcome module import issues](https://towardsdatascience.com/how-to-fix-modulenotfounderror-and-importerror-248ce5b69b1c)
"""
#%%
import pandas as pd
from module3.itcc import ITCC
i =... | 16.079365 | 141 | 0.718657 | 140 | 1,013 | 5.071429 | 0.614286 | 0.016901 | 0.033803 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013652 | 0.13228 | 1,013 | 62 | 142 | 16.33871 | 0.794084 | 0.15696 | 0 | 0 | 0 | 0.058824 | 0.206239 | 0.154246 | 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 |
60995bfe5c2b22175e2e33934be613383526854d | 1,494 | py | Python | xchainpy/xchainpy_crypto/tests/test_crypto.py | tirinox/xchainpy-lib | e01f146993c45ca0dad3ca40f07e7b45ed65653e | [
"MIT"
] | 8 | 2021-02-16T23:14:14.000Z | 2022-03-22T09:35:58.000Z | xchainpy/xchainpy_crypto/tests/test_crypto.py | tirinox/xchainpy-lib | e01f146993c45ca0dad3ca40f07e7b45ed65653e | [
"MIT"
] | 12 | 2021-04-06T19:31:46.000Z | 2022-03-22T14:34:13.000Z | xchainpy/xchainpy_crypto/tests/test_crypto.py | tirinox/xchainpy-lib | e01f146993c45ca0dad3ca40f07e7b45ed65653e | [
"MIT"
] | 10 | 2021-03-04T05:45:31.000Z | 2022-03-31T14:44:01.000Z | from Crypto.Cipher import AES
import pytest
from xchainpy_crypto import crypto
class TestCrypto:
# Note: This phrase is created by https://iancoleman.io/bip39/ and will never been used in a real-world
phrase = 'rural bright ball negative already grass good grant nation screen model pizza'
phrase2 = 'flus... | 40.378378 | 107 | 0.709505 | 183 | 1,494 | 5.677596 | 0.491803 | 0.080847 | 0.076997 | 0.075072 | 0.25794 | 0.25794 | 0.13282 | 0.13282 | 0.13282 | 0.13282 | 0 | 0.016102 | 0.210174 | 1,494 | 37 | 108 | 40.378378 | 0.864407 | 0.067604 | 0 | 0.137931 | 0 | 0 | 0.165948 | 0 | 0 | 0 | 0 | 0 | 0.344828 | 1 | 0.103448 | false | 0.172414 | 0.137931 | 0 | 0.344828 | 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 |
609aac5290b8f2112c7ec96a47cd5669914c456d | 2,110 | py | Python | rodolpho-python/TravelingSalesman.py | FelipeLimaM/sa-traveling-salesman | 9d71db005922f812b5565ae92a8b56580136f8cf | [
"Apache-2.0"
] | null | null | null | rodolpho-python/TravelingSalesman.py | FelipeLimaM/sa-traveling-salesman | 9d71db005922f812b5565ae92a8b56580136f8cf | [
"Apache-2.0"
] | null | null | null | rodolpho-python/TravelingSalesman.py | FelipeLimaM/sa-traveling-salesman | 9d71db005922f812b5565ae92a8b56580136f8cf | [
"Apache-2.0"
] | null | null | null | import math
from random import random
import matplotlib.pyplot as plt
from City import City
from Tour import Tour
from TourManager import *
class TravelingSalesman:
def __init__(self):
for i in xrange(20):
city = City()
add_city(city)
temp = 10000
cooling_rate = 0... | 27.763158 | 94 | 0.619431 | 254 | 2,110 | 4.830709 | 0.287402 | 0.08965 | 0.08802 | 0.06357 | 0.263244 | 0.112469 | 0.06683 | 0.06683 | 0 | 0 | 0 | 0.016589 | 0.285782 | 2,110 | 75 | 95 | 28.133333 | 0.797611 | 0 | 0 | 0.039216 | 0 | 0 | 0.022749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | 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 |
609bae4ed1d9cfc9fd68841a66ec22d0e1d13d0f | 2,712 | py | Python | tests/test_cli.py | lucasb/BakerCM | b1939d132e0905b88f8edc31a53eb758edae4a84 | [
"BSD-3-Clause"
] | 1 | 2018-03-01T20:07:38.000Z | 2018-03-01T20:07:38.000Z | tests/test_cli.py | lucasb/BakerCM | b1939d132e0905b88f8edc31a53eb758edae4a84 | [
"BSD-3-Clause"
] | 12 | 2018-05-13T22:06:50.000Z | 2018-12-19T17:32:37.000Z | tests/test_cli.py | lucasb/BakerCM | b1939d132e0905b88f8edc31a53eb758edae4a84 | [
"BSD-3-Clause"
] | 1 | 2018-05-19T15:10:36.000Z | 2018-05-19T15:10:36.000Z | from unittest import TestCase
from subprocess import PIPE, Popen
from baker import __version__
class TestCLI(TestCase):
def test_show_version(self):
output = Popen(['baker', '--version'], stdout=PIPE).communicate()[0]
output = output.decode('utf-8')
self.assertEqual(output.strip(), 'baker... | 40.477612 | 97 | 0.634218 | 337 | 2,712 | 4.970326 | 0.148368 | 0.050149 | 0.107463 | 0.143284 | 0.656716 | 0.636418 | 0.531343 | 0.494328 | 0.494328 | 0.494328 | 0 | 0.019462 | 0.204277 | 2,712 | 66 | 98 | 41.090909 | 0.756719 | 0 | 0 | 0.269231 | 0 | 0 | 0.161136 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.057692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
609f2ef845e00d3093ab2917215365f9e57ce029 | 1,090 | py | Python | examples/textcnn.py | Jie-Yuan/1_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | 14 | 2019-06-25T13:46:32.000Z | 2020-10-27T02:04:59.000Z | examples/textcnn.py | Jie-Yuan/2_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | null | null | null | examples/textcnn.py | Jie-Yuan/2_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | 7 | 2019-06-25T13:26:16.000Z | 2020-10-27T02:05:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : tql-Python.
# @File : textcnn
# @Time : 2019-06-23 19:16
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description :
"""
https://m.imooc.com/article/30122读大数据
https://blog.csdn.net/lujiandong1... | 33.030303 | 82 | 0.702752 | 160 | 1,090 | 4.7125 | 0.64375 | 0.037135 | 0.043767 | 0.04244 | 0.106101 | 0.058355 | 0.058355 | 0 | 0 | 0 | 0 | 0.063224 | 0.129358 | 1,090 | 32 | 83 | 34.0625 | 0.731296 | 0.409174 | 0 | 0 | 0 | 0 | 0.108453 | 0.055821 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
609f759f83e2f781de1c20a5393997d38867e3d9 | 3,944 | py | Python | utils/shp.py | posm/osm-export-tool2 | 5a1f4096f1afbe7420363376e6e1e8d42e47e1d1 | [
"BSD-3-Clause"
] | 2 | 2018-08-31T18:30:28.000Z | 2018-11-27T01:50:06.000Z | utils/shp.py | posm/osm-export-tool2 | 5a1f4096f1afbe7420363376e6e1e8d42e47e1d1 | [
"BSD-3-Clause"
] | null | null | null | utils/shp.py | posm/osm-export-tool2 | 5a1f4096f1afbe7420363376e6e1e8d42e47e1d1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import with_statement
import argparse
import logging
import os
import shutil
import subprocess
from string import Template
logger = logging.getLogger(__name__)
class SQliteToShp(object):
"""
Convert sqlite to shapefile.
"""
def __init__(self, sqlite=None, sha... | 36.518519 | 124 | 0.60142 | 453 | 3,944 | 5.136865 | 0.291391 | 0.050279 | 0.029222 | 0.020627 | 0.183928 | 0.165019 | 0.136657 | 0.136657 | 0.136657 | 0.136657 | 0 | 0.005269 | 0.278144 | 3,944 | 107 | 125 | 36.859813 | 0.812083 | 0.021805 | 0 | 0.207792 | 0 | 0 | 0.178192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.038961 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
60bef59ff7196a0264b8f0ec87b23c7e5e1ebf01 | 619 | py | Python | source/util.py | Pilifer/roguelike | 215c0a4b05cc07ef1271443b751425a78400ffe6 | [
"MIT"
] | 25 | 2020-02-17T11:29:23.000Z | 2022-03-20T13:37:28.000Z | source/util.py | Pilifer/roguelike | 215c0a4b05cc07ef1271443b751425a78400ffe6 | [
"MIT"
] | 6 | 2020-02-23T14:29:22.000Z | 2020-12-05T23:20:51.000Z | source/util.py | Pilifer/roguelike | 215c0a4b05cc07ef1271443b751425a78400ffe6 | [
"MIT"
] | 10 | 2020-02-17T11:29:48.000Z | 2022-01-08T03:02:23.000Z | from constants import *
def char_to_pixel(char_x: int, char_y: int) -> (float, float):
px = char_x * SPRITE_WIDTH * SPRITE_SCALE + SPRITE_WIDTH / 2 * SPRITE_SCALE
py = (
char_y * SPRITE_HEIGHT * SPRITE_SCALE + SPRITE_HEIGHT / 2 * SPRITE_SCALE
) + STATUS_PANEL_HEIGHT
return px, py
def pixel_t... | 32.578947 | 80 | 0.676898 | 93 | 619 | 4.16129 | 0.236559 | 0.22739 | 0.124031 | 0.113695 | 0.330749 | 0.211886 | 0.211886 | 0.211886 | 0 | 0 | 0 | 0.008333 | 0.224556 | 619 | 18 | 81 | 34.388889 | 0.797917 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
60bf6f0cbe32157c6f1cf4502610193ce5e30a3b | 542 | py | Python | luizalabs/employee_manager/urls.py | dutradda/ll-employee-manager | 0b85e6824bc3d3c657c5155fbcf321314055ae39 | [
"MIT"
] | null | null | null | luizalabs/employee_manager/urls.py | dutradda/ll-employee-manager | 0b85e6824bc3d3c657c5155fbcf321314055ae39 | [
"MIT"
] | null | null | null | luizalabs/employee_manager/urls.py | dutradda/ll-employee-manager | 0b85e6824bc3d3c657c5155fbcf321314055ae39 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from rest_framework.routers import SimpleRouter
from . import views
class OptionalSlashRouter(SimpleRouter):
def __init__(self):
self.trailing_slash = '/?'
super(SimpleRouter, se... | 24.636364 | 67 | 0.756458 | 64 | 542 | 6.203125 | 0.46875 | 0.075567 | 0.105793 | 0.09068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138376 | 542 | 21 | 68 | 25.809524 | 0.850107 | 0 | 0 | 0 | 0 | 0 | 0.020295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
60bfacfef106c25d55465f7e70b895925a7e09c0 | 3,685 | py | Python | klearn/sensor.py | kanyuanzhi/kan_ML | 2ad9f36ff696479d38c1fea56099db9eb418d29f | [
"MIT"
] | null | null | null | klearn/sensor.py | kanyuanzhi/kan_ML | 2ad9f36ff696479d38c1fea56099db9eb418d29f | [
"MIT"
] | null | null | null | klearn/sensor.py | kanyuanzhi/kan_ML | 2ad9f36ff696479d38c1fea56099db9eb418d29f | [
"MIT"
] | null | null | null | # coding=utf-8
import numpy as np
import matplotlib.pyplot as plt
from random import choice
def sign(a):
a[a >= 0] = 1
a[a < 0] = -1
return a
class Sensor:
def __init__(self, x, y, eta=0.3, epoch=20, **args):
"""
初始化
:param x:
:param y:
:param eta: 学习速率
... | 27.706767 | 96 | 0.469471 | 531 | 3,685 | 3.107345 | 0.175141 | 0.051515 | 0.049091 | 0.048485 | 0.353939 | 0.28303 | 0.282424 | 0.282424 | 0.270303 | 0.270303 | 0 | 0.025675 | 0.386974 | 3,685 | 132 | 97 | 27.916667 | 0.704737 | 0.035007 | 0 | 0.316832 | 0 | 0 | 0.014864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029703 | null | null | 0.069307 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
60c7e28c8487db67766435a9425bc009bbff5fce | 922 | py | Python | input_pins.py | sapka12/frogbot_py | 7495e91f66d9e5db42a9bfa527a954429509a2e5 | [
"Apache-2.0"
] | null | null | null | input_pins.py | sapka12/frogbot_py | 7495e91f66d9e5db42a9bfa527a954429509a2e5 | [
"Apache-2.0"
] | null | null | null | input_pins.py | sapka12/frogbot_py | 7495e91f66d9e5db42a9bfa527a954429509a2e5 | [
"Apache-2.0"
] | null | null | null | import RPi.GPIO as GPIO
from MqttProxy import MqttProxy, commands
from actors import MotorActor, StateActor
from output_pins import go_one_step, light, bouncetime
def frog(buttons):
motor = MotorActor.start(action_with_direction=go_one_step)
state = StateActor.start(motor_actor_ref=motor, sign=light)
de... | 25.611111 | 92 | 0.669197 | 129 | 922 | 4.581395 | 0.434109 | 0.040609 | 0.030457 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001427 | 0.239696 | 922 | 35 | 93 | 26.342857 | 0.841655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.041667 | 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 |
60cedf00d22f07d52cbb1d4819725c2fa43a5db7 | 18,267 | py | Python | ferris/client.py | DistortedPumpkin/ferriswheel | e7faa49c0bfd72233c30c6cfe5d407a63c23acc7 | [
"MIT"
] | null | null | null | ferris/client.py | DistortedPumpkin/ferriswheel | e7faa49c0bfd72233c30c6cfe5d407a63c23acc7 | [
"MIT"
] | null | null | null | ferris/client.py | DistortedPumpkin/ferriswheel | e7faa49c0bfd72233c30c6cfe5d407a63c23acc7 | [
"MIT"
] | null | null | null | from __future__ import annotations
import asyncio
import logging
import signal
from collections import defaultdict
from typing import (
TYPE_CHECKING,
Any,
Awaitable,
Callable,
Dict,
List,
Optional,
overload,
)
from ferris.types import message
from .channel import C... | 28.189815 | 98 | 0.541632 | 2,007 | 18,267 | 4.824116 | 0.15147 | 0.047717 | 0.021586 | 0.022723 | 0.289196 | 0.229911 | 0.179715 | 0.145838 | 0.101219 | 0.074881 | 0 | 0.001525 | 0.353753 | 18,267 | 647 | 99 | 28.233385 | 0.818636 | 0.112717 | 0 | 0.221843 | 0 | 0 | 0.044314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075085 | false | 0.054608 | 0.05802 | 0 | 0.235495 | 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 |
60d0fb90dee280171ea0c8c5c9a30ccc69ef5f31 | 46,678 | py | Python | Task_6_Website_Testing/venv/Lib/site-packages/selenium/webdriver/common/devtools/v91/css.py | shwetathikekar/Sparks_Foundation_Task_6 | 20f8c9be4ab536c533af083015125eeb52bfdb73 | [
"BSD-3-Clause"
] | null | null | null | Task_6_Website_Testing/venv/Lib/site-packages/selenium/webdriver/common/devtools/v91/css.py | shwetathikekar/Sparks_Foundation_Task_6 | 20f8c9be4ab536c533af083015125eeb52bfdb73 | [
"BSD-3-Clause"
] | null | null | null | Task_6_Website_Testing/venv/Lib/site-packages/selenium/webdriver/common/devtools/v91/css.py | shwetathikekar/Sparks_Foundation_Task_6 | 20f8c9be4ab536c533af083015125eeb52bfdb73 | [
"BSD-3-Clause"
] | null | null | null | # DO NOT EDIT THIS FILE!
#
# This file is generated from the CDP specification. If you need to make
# changes, edit the generator and regenerate all of the modules.
#
# CDP domain: CSS (experimental)
from __future__ import annotations
from .util import event_class, T_JSON_DICT
from dataclasses import dataclass
import e... | 31.624661 | 460 | 0.648271 | 5,816 | 46,678 | 5.057428 | 0.102648 | 0.03291 | 0.030292 | 0.022098 | 0.477834 | 0.440131 | 0.39981 | 0.343272 | 0.311858 | 0.292072 | 0 | 0.001219 | 0.244248 | 46,678 | 1,475 | 461 | 31.646102 | 0.832582 | 0.279961 | 0 | 0.5 | 1 | 0 | 0.110394 | 0.013919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09229 | false | 0 | 0.017523 | 0.037383 | 0.350467 | 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 |
60d686d2d374d28c0100a1edc9e4237284dbfe81 | 4,303 | py | Python | mediagoblin/media_types/stl/model_loader.py | gnu-mirror-unofficial/mediagoblin | 522a61b24a1b7767682eaf7b29c59e40a0a9b73f | [
"CC0-1.0"
] | 1 | 2021-09-21T02:24:43.000Z | 2021-09-21T02:24:43.000Z | mediagoblin/media_types/stl/model_loader.py | jgarte/mediagoblin-mirror | c4599508b02f2e61df3a97ff314766a62a3e5934 | [
"CC0-1.0"
] | null | null | null | mediagoblin/media_types/stl/model_loader.py | jgarte/mediagoblin-mirror | c4599508b02f2e61df3a97ff314766a62a3e5934 | [
"CC0-1.0"
] | 1 | 2021-09-21T02:25:20.000Z | 2021-09-21T02:25:20.000Z | # GNU MediaGoblin -- federated, autonomous media hosting
# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either versio... | 31.181159 | 77 | 0.584708 | 551 | 4,303 | 4.540835 | 0.388385 | 0.022382 | 0.01279 | 0.022782 | 0.163869 | 0.127098 | 0.063949 | 0.036771 | 0.036771 | 0 | 0 | 0.015094 | 0.322566 | 4,303 | 137 | 78 | 31.408759 | 0.843225 | 0.375552 | 0 | 0.337838 | 0 | 0 | 0.025581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.108108 | 0.013514 | 0 | 0.202703 | 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 |
60d7370c2c270d50e5ba18800ac6c4cdad987f2c | 1,893 | py | Python | crichtonweb/jirarpc/models.py | bpluly/crichton | a2fa09c181ba1e44ee1aae7a57769e1778de7f3a | [
"Apache-2.0"
] | null | null | null | crichtonweb/jirarpc/models.py | bpluly/crichton | a2fa09c181ba1e44ee1aae7a57769e1778de7f3a | [
"Apache-2.0"
] | null | null | null | crichtonweb/jirarpc/models.py | bpluly/crichton | a2fa09c181ba1e44ee1aae7a57769e1778de7f3a | [
"Apache-2.0"
] | null | null | null | # Crichton, Admirable Source Configuration Management
# Copyright 2012 British Broadcasting Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licens... | 32.084746 | 85 | 0.706815 | 237 | 1,893 | 5.535865 | 0.535865 | 0.045732 | 0.068598 | 0.091463 | 0.283537 | 0.214939 | 0.214939 | 0.214939 | 0.214939 | 0.214939 | 0 | 0.011696 | 0.187005 | 1,893 | 58 | 86 | 32.637931 | 0.840806 | 0.332277 | 0 | 0.411765 | 0 | 0 | 0.072173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0.058824 | 0.676471 | 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 |
60daa0c84ba1401d4b7084385a4a9f5258c70df6 | 2,022 | py | Python | test/test_service.py | bcdev/xcube-server | d6fc4bef26ae1f6929904bad0f920b50ea6974f7 | [
"MIT"
] | null | null | null | test/test_service.py | bcdev/xcube-server | d6fc4bef26ae1f6929904bad0f920b50ea6974f7 | [
"MIT"
] | null | null | null | test/test_service.py | bcdev/xcube-server | d6fc4bef26ae1f6929904bad0f920b50ea6974f7 | [
"MIT"
] | null | null | null | import re
import unittest
from xcube_server import service
class UrlPatternTest(unittest.TestCase):
def test_url_pattern_works(self):
re_pattern = service.url_pattern('/open/{{id1}}ws/{{id2}}wf')
matcher = re.fullmatch(re_pattern, '/open/34ws/a66wf')
self.assertIsNotNone(matcher)
... | 47.023256 | 109 | 0.57913 | 236 | 2,022 | 4.822034 | 0.326271 | 0.105448 | 0.134446 | 0.092267 | 0.615114 | 0.461336 | 0.360281 | 0.26362 | 0.209139 | 0.119508 | 0 | 0.023573 | 0.20277 | 2,022 | 42 | 110 | 48.142857 | 0.682382 | 0 | 0 | 0.205882 | 0 | 0.029412 | 0.306627 | 0.173591 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.088235 | false | 0 | 0.088235 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60db4c57972fe656bb47b3adc411a88fb293fce4 | 8,951 | py | Python | neurokit/miscellaneous/data.py | sarathykousik/NeuroKit.py | 79c163a9453fa4416d3bfe0b8ddb4ce9bbc3c17b | [
"MIT"
] | 1 | 2020-03-11T18:38:56.000Z | 2020-03-11T18:38:56.000Z | neurokit/miscellaneous/data.py | pradeeps147/NeuroKit.py | 79c163a9453fa4416d3bfe0b8ddb4ce9bbc3c17b | [
"MIT"
] | null | null | null | neurokit/miscellaneous/data.py | pradeeps147/NeuroKit.py | 79c163a9453fa4416d3bfe0b8ddb4ce9bbc3c17b | [
"MIT"
] | 1 | 2020-03-11T18:20:32.000Z | 2020-03-11T18:20:32.000Z | # -*- coding: utf-8 -*-
import time as builtin_time
import pandas as pd
import numpy as np
import platform
import os
import pickle
import gzip
# ==============================================================================
# ==============================================================================
# ===========... | 32.787546 | 181 | 0.350464 | 639 | 8,951 | 4.838811 | 0.244131 | 0.017464 | 0.020699 | 0.027167 | 0.52652 | 0.434023 | 0.414618 | 0.414618 | 0.403299 | 0.351552 | 0 | 0.003484 | 0.198414 | 8,951 | 273 | 182 | 32.787546 | 0.427456 | 0.498492 | 0 | 0.388889 | 0 | 0.011111 | 0.133548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.077778 | 0 | 0.133333 | 0.1 | 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 |
60e655a3a9ac67f827b14d3a921a71597e239b9a | 5,349 | py | Python | pysnmp-with-texts/GSM7312-MGMT-SECURITY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/GSM7312-MGMT-SECURITY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/GSM7312-MGMT-SECURITY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module GSM7312-MGMT-SECURITY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GSM7312-MGMT-SECURITY-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:20:02 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 118.866667 | 477 | 0.783511 | 589 | 5,349 | 7.112054 | 0.269949 | 0.048699 | 0.085223 | 0.008594 | 0.450227 | 0.339938 | 0.317498 | 0.317498 | 0.294581 | 0.294581 | 0 | 0.072184 | 0.080576 | 5,349 | 44 | 478 | 121.568182 | 0.779585 | 0.064311 | 0 | 0 | 0 | 0 | 0.242794 | 0.013811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.194444 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60e6a6ff2850a2d11f82eb897bc3910d1e586339 | 11,435 | py | Python | src/Shared/GMAO_Shared/GMAO_pyobs/pyobs/cpl.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-12-02T14:23:30.000Z | 2021-12-31T15:39:30.000Z | GMAO_pyobs/pyobs/cpl.py | GEOS-ESM/GMAO_Shared | 022af23abbc7883891006b57379be96d9a50df23 | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 105 | 2019-07-08T19:27:23.000Z | 2022-03-22T02:12:16.000Z | src/Shared/GMAO_Shared/GMAO_pyobs/pyobs/cpl.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 10 | 2019-07-05T18:00:44.000Z | 2022-03-11T16:26:29.000Z | #!/bin/env python
"""
Implements Python interface to the CPL L2 data.
"""
import os
import h5py
from numpy import ones, zeros, interp, NaN, isnan, array, ma
from datetime import datetime, timedelta
from types import *
from matplotlib.pyplot import imshow, xlabel, ylabel, title, colorbar, \
... | 32.578348 | 108 | 0.45317 | 1,284 | 11,435 | 3.902648 | 0.316199 | 0.022351 | 0.019757 | 0.023349 | 0.127719 | 0.111355 | 0.108561 | 0.089403 | 0.049691 | 0.049691 | 0 | 0.05167 | 0.392392 | 11,435 | 350 | 109 | 32.671429 | 0.669545 | 0 | 0 | 0.028037 | 0 | 0.009346 | 0.1167 | 0.048762 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042056 | null | null | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
60f07fd0f9cec43febf0c808ceef50114478652f | 270 | py | Python | cursoemvideoPy/Mundo1/ex029.py | BrCarlini/exPython | 3bed986e5bfa5eae191b6b18306448926aed48fd | [
"MIT"
] | null | null | null | cursoemvideoPy/Mundo1/ex029.py | BrCarlini/exPython | 3bed986e5bfa5eae191b6b18306448926aed48fd | [
"MIT"
] | null | null | null | cursoemvideoPy/Mundo1/ex029.py | BrCarlini/exPython | 3bed986e5bfa5eae191b6b18306448926aed48fd | [
"MIT"
] | null | null | null | print('======= MULTA =======')
km = float(input('Kilometragem obtido no radar: '))
if km > 80.0:
multa = (km - 80) * 7
print(f'Você levou uma multa por velocidade.\nSua velocidade: {km:.1f}\nValor da multa: R${multa:.2f}')
else:
print('Não levou multa.')
| 24.545455 | 107 | 0.596296 | 40 | 270 | 4.025 | 0.675 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03653 | 0.188889 | 270 | 10 | 108 | 27 | 0.69863 | 0 | 0 | 0 | 0 | 0.142857 | 0.594796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
60f18428033bfa434b4fd5ffdf51089d7552f330 | 2,586 | py | Python | gs-data-structures/dataStructures/kdTree.py | Gertdor/genomic-signatures-data-structure | c5d872acd82116ca923fbb973d90b6fa8af0773b | [
"BSD-3-Clause"
] | null | null | null | gs-data-structures/dataStructures/kdTree.py | Gertdor/genomic-signatures-data-structure | c5d872acd82116ca923fbb973d90b6fa8af0773b | [
"BSD-3-Clause"
] | 8 | 2019-02-21T14:20:41.000Z | 2019-04-04T15:42:52.000Z | gs-data-structures/dataStructures/kdTree.py | Gertdor/genomic-signatures-data-structure | c5d872acd82116ca923fbb973d90b6fa8af0773b | [
"BSD-3-Clause"
] | null | null | null | from operator import itemgetter
# Create a class for the tree and one for the nodes
# Let the tree class contain meta data and a pointer to the root
class KdNode:
def __init__(self, value, depth, axis, leftChild, rightChild):
self.value = value
self.depth = depth
self.axis = axis
... | 34.945946 | 74 | 0.613689 | 286 | 2,586 | 5.534965 | 0.307692 | 0.070752 | 0.090967 | 0.054959 | 0.07391 | 0.053064 | 0.053064 | 0 | 0 | 0 | 0 | 0.006608 | 0.297757 | 2,586 | 73 | 75 | 35.424658 | 0.865088 | 0.134957 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.090909 | false | 0 | 0.018182 | 0 | 0.272727 | 0.072727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60f5e427558faeb69895d339a921575393c27c3f | 4,670 | py | Python | atm_projects(Live Currency)/AtmProjectV2/page3.py | Mens1s/simple_python_applications | f263e20ad3a849f88065cfe09bed6595f594baef | [
"MIT"
] | null | null | null | atm_projects(Live Currency)/AtmProjectV2/page3.py | Mens1s/simple_python_applications | f263e20ad3a849f88065cfe09bed6595f594baef | [
"MIT"
] | null | null | null | atm_projects(Live Currency)/AtmProjectV2/page3.py | Mens1s/simple_python_applications | f263e20ad3a849f88065cfe09bed6595f594baef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'screen/page3.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 impo... | 45.339806 | 78 | 0.663383 | 490 | 4,670 | 6.3 | 0.287755 | 0.071591 | 0.07483 | 0.029155 | 0.265954 | 0.123421 | 0.123421 | 0.111759 | 0.068999 | 0.068999 | 0 | 0.0486 | 0.220128 | 4,670 | 102 | 79 | 45.784314 | 0.799012 | 0.059315 | 0 | 0.170455 | 1 | 0 | 0.078683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.011364 | 0 | 0.045455 | 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 |
60f88cc74bd8b864837406cb9cd55da4617561aa | 1,797 | py | Python | app/behaviors/eventbehavior.py | Joeper214/barm | 77cd8ddcf73ceacf86b13ca819d8e56471e43574 | [
"MIT"
] | 2 | 2015-03-04T07:05:57.000Z | 2015-03-04T07:06:00.000Z | app/behaviors/eventbehavior.py | Joeper214/barm | 77cd8ddcf73ceacf86b13ca819d8e56471e43574 | [
"MIT"
] | null | null | null | app/behaviors/eventbehavior.py | Joeper214/barm | 77cd8ddcf73ceacf86b13ca819d8e56471e43574 | [
"MIT"
] | null | null | null | from ferris.core.ndb import Behavior
from app.models.allocation import Allocation
from plugins import calendar
from datetime import timedelta
import json
import datetime
class EventBehavior(Behavior):
def __init__(self, Model):
self.Model = Allocation
def after_delete(self, key):
pass
... | 34.557692 | 99 | 0.614357 | 193 | 1,797 | 5.512953 | 0.367876 | 0.075188 | 0.06391 | 0.06203 | 0.12782 | 0.071429 | 0.071429 | 0 | 0 | 0 | 0 | 0.003127 | 0.288258 | 1,797 | 51 | 100 | 35.235294 | 0.828772 | 0 | 0 | 0.05 | 0 | 0 | 0.054009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.15 | 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 |
60f9ad23b4ce536c59103e9926423f9c6073b9c3 | 2,502 | py | Python | Perceptron de uma Camada/Bonus.py | filipeaguiarrod/Redes-Neurais-Artificiais-em-Python | 11d3b27d1f456aae1412e2e333bad3dad6edcc03 | [
"MIT"
] | null | null | null | Perceptron de uma Camada/Bonus.py | filipeaguiarrod/Redes-Neurais-Artificiais-em-Python | 11d3b27d1f456aae1412e2e333bad3dad6edcc03 | [
"MIT"
] | null | null | null | Perceptron de uma Camada/Bonus.py | filipeaguiarrod/Redes-Neurais-Artificiais-em-Python | 11d3b27d1f456aae1412e2e333bad3dad6edcc03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 30 11:14:24 2020
@author: rodri
"""
import pandas as pd
import numpy as np
dataset = pd.read_csv("Credit2.csv",sep=";")
# Separar variaveis dependentes das independentes / Class
# Transformar dados qualitativos pra numérico
# Binarizar resultado de classe
X = dataset.... | 31.670886 | 116 | 0.785372 | 349 | 2,502 | 5.501433 | 0.530086 | 0.028646 | 0.027083 | 0.035938 | 0.064583 | 0.064583 | 0.064583 | 0.064583 | 0.064583 | 0.064583 | 0 | 0.020665 | 0.110312 | 2,502 | 79 | 117 | 31.670886 | 0.841869 | 0.305356 | 0 | 0.055556 | 0 | 0 | 0.054874 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0 | false | 0.027778 | 0.277778 | 0 | 0.277778 | 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 |
880283a0534046c7bb2eb1a5d91e4c641c3e9385 | 509 | py | Python | backend/api/migrations/0112_creditagreement_optional_agreement_id.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 3 | 2020-03-25T03:06:20.000Z | 2021-01-20T23:36:03.000Z | backend/api/migrations/0112_creditagreement_optional_agreement_id.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 740 | 2019-12-16T15:53:39.000Z | 2022-03-26T08:25:10.000Z | backend/api/migrations/0112_creditagreement_optional_agreement_id.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 11 | 2019-11-28T20:39:15.000Z | 2022-01-31T17:53:31.000Z | # Generated by Django 3.0.3 on 2021-07-15 17:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0111_creditagreement_creditagreementattachment_creditagreementcomment_creditagreementcontent_creditagreem'),
]
operations = [
migrati... | 26.789474 | 125 | 0.683694 | 50 | 509 | 6.78 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05303 | 0.222004 | 509 | 18 | 126 | 28.277778 | 0.80303 | 0.088409 | 0 | 0 | 1 | 0 | 0.311688 | 0.272727 | 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 |
8803b83fd36de0befc96111bd1eb51873ff6c6be | 1,884 | py | Python | face_locate.py | Satwaj-Dhavale/Sentiment-Analysis-of-Multimedia | 2f77dd755e405b3084f4d7768a4f85d9ae1d2157 | [
"MIT"
] | 2 | 2020-03-06T18:55:15.000Z | 2021-04-26T07:37:05.000Z | face_locate.py | Satwaj-Dhavale/Sentiment-Analysis-of-Multimedia | 2f77dd755e405b3084f4d7768a4f85d9ae1d2157 | [
"MIT"
] | 1 | 2020-04-08T02:35:22.000Z | 2020-04-13T08:39:58.000Z | face_locate.py | Satwaj-Dhavale/Sentiment-Analysis-of-Multimedia | 2f77dd755e405b3084f4d7768a4f85d9ae1d2157 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Face_detection.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1fonHY4Znd1qlLnKNGBbSQUVYTdmHuc2S
"""
#Just using an example image for now
from matplotlib import pyplot as plt
from mtcnn.mtcnn import MTCNN
from numpy imp... | 25.459459 | 77 | 0.678344 | 254 | 1,884 | 4.889764 | 0.397638 | 0.040258 | 0.038647 | 0.033816 | 0.144928 | 0.067633 | 0.067633 | 0 | 0 | 0 | 0 | 0.015152 | 0.229299 | 1,884 | 73 | 78 | 25.808219 | 0.84022 | 0.324841 | 0 | 0.257143 | 1 | 0 | 0.007194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.142857 | 0 | 0.285714 | 0.028571 | 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 |
8808c9854510b53d39aadb3ee29fa7ceed249ccb | 604 | py | Python | example/lb/addGslbService.py | seowjin1060/KT-Cloud-Toolkit | 5d4f23571679043540873d01317eaf065c053da8 | [
"Apache-2.0"
] | 1 | 2020-12-07T03:39:08.000Z | 2020-12-07T03:39:08.000Z | example/lb/addGslbService.py | seowjin1060/KT-Cloud-Toolkit | 5d4f23571679043540873d01317eaf065c053da8 | [
"Apache-2.0"
] | 1 | 2021-02-16T08:55:57.000Z | 2021-02-16T08:55:57.000Z | example/lb/addGslbService.py | seowjin1060/KT-Cloud-Toolkit | 5d4f23571679043540873d01317eaf065c053da8 | [
"Apache-2.0"
] | null | null | null | import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))))
import gslb
# ref : https://cloud.kt.com/portal/openapi-guide/computing_enterprise-Server-server_api_make
# Zone parameter : Mandatory
# 1) KR-CA : KOR-Central A Zone
# 2)... | 26.26087 | 111 | 0.647351 | 91 | 604 | 4.21978 | 0.582418 | 0.078125 | 0.101563 | 0.078125 | 0.169271 | 0.169271 | 0.169271 | 0.169271 | 0.169271 | 0 | 0 | 0.039337 | 0.200331 | 604 | 22 | 112 | 27.454545 | 0.755694 | 0.413907 | 0 | 0 | 0 | 0 | 0.108359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
880a903a525c7da5a0feea9597ba8c633d29ee0f | 11,329 | py | Python | libs/train_graph/train_graph/railnet/railnet.py | denglihong2007/Parsing_12306 | 55eaf93c281d0d0fc923199d3b9fe9df9be89d29 | [
"MIT"
] | 1 | 2022-03-11T16:24:39.000Z | 2022-03-11T16:24:39.000Z | libs/train_graph/train_graph/railnet/railnet.py | denglihong2007/Parsing_12306 | 55eaf93c281d0d0fc923199d3b9fe9df9be89d29 | [
"MIT"
] | null | null | null | libs/train_graph/train_graph/railnet/railnet.py | denglihong2007/Parsing_12306 | 55eaf93c281d0d0fc923199d3b9fe9df9be89d29 | [
"MIT"
] | null | null | null | """
此文件从train_graph_db项目迁移过来,并且以后以这个文件为主要文件。
初期暂不支持保存和读取文件。
列车运行图数据库系统基础数据类,基于networkX.digraph格式,按照OO要求进行封装。
有向边数据格式:dict
dict{
"name":str, //线路名称。2021.01.02新增
"length":float, //区间距离
"down":bool,//本区间是否属于下行区间
"rulers": dict<dict>{
str /*标尺名称*/:{
"interval":int, //区间运行秒数
... | 35.074303 | 102 | 0.545944 | 1,234 | 11,329 | 4.871961 | 0.205835 | 0.04491 | 0.02994 | 0.026946 | 0.435961 | 0.391883 | 0.378576 | 0.329341 | 0.315702 | 0.303726 | 0 | 0.010204 | 0.333922 | 11,329 | 322 | 103 | 35.18323 | 0.786509 | 0.128431 | 0 | 0.433962 | 0 | 0 | 0.058625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0.056604 | 0.018868 | 0.004717 | 0.146226 | 0.004717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
880bdc4a425019a0bb2ebad080276db1e554fec3 | 507 | py | Python | accounts/viewsets.py | sperea/LMS-Backend-Boilerplate-Django-REST | 39adb9f57fd720aaba0ba27559fce00f74df4e0d | [
"ECL-2.0"
] | null | null | null | accounts/viewsets.py | sperea/LMS-Backend-Boilerplate-Django-REST | 39adb9f57fd720aaba0ba27559fce00f74df4e0d | [
"ECL-2.0"
] | null | null | null | accounts/viewsets.py | sperea/LMS-Backend-Boilerplate-Django-REST | 39adb9f57fd720aaba0ba27559fce00f74df4e0d | [
"ECL-2.0"
] | null | null | null | from django.contrib.auth import get_user_model
from rest_framework import permissions, viewsets
from . import serializers
CustomUser = get_user_model()
class CustomUserModelViewSet(viewsets.ModelViewSet):
serializer_class = serializers.CustomUserSerializer
permission_classes = (permissions.AllowAny,)
qu... | 28.166667 | 55 | 0.767258 | 52 | 507 | 7.307692 | 0.634615 | 0.036842 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157791 | 507 | 17 | 56 | 29.823529 | 0.88993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
880dc1891d9714ce5aa41dfc546fc804694df2dc | 2,647 | py | Python | AlbotOnline/Connect4/Connect4Game.py | Albot-Online/Albot-Python-Library | 75f31b72b76d302aad46c31446f332a4f7119ae0 | [
"MIT"
] | 2 | 2018-09-27T19:38:21.000Z | 2019-02-20T16:41:57.000Z | AlbotOnline/Connect4/Connect4Game.py | Albot-Online/Albot-Python-Library | 75f31b72b76d302aad46c31446f332a4f7119ae0 | [
"MIT"
] | null | null | null | AlbotOnline/Connect4/Connect4Game.py | Albot-Online/Albot-Python-Library | 75f31b72b76d302aad46c31446f332a4f7119ae0 | [
"MIT"
] | null | null | null | from AlbotOnline import AlbotConnection as AO
import AlbotOnline.JsonProtocol as Prot
import AlbotOnline.Connect4.Connect4Board as Board
class Connect4Game:
def __init__(self, IP='127.0.0.1', Port=4000):
self.connection = AO.AlbotConnection(bufferSize=1024, IP=IP, Port=Port, gameOverObj=self)
... | 35.77027 | 98 | 0.652437 | 262 | 2,647 | 6.576336 | 0.28626 | 0.081254 | 0.052234 | 0.041788 | 0.351132 | 0.313987 | 0.293674 | 0.293674 | 0.2426 | 0.2426 | 0 | 0.010116 | 0.253117 | 2,647 | 73 | 99 | 36.260274 | 0.861406 | 0.009067 | 0 | 0.166667 | 0 | 0 | 0.003534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.037037 | 0.425926 | 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 |
880e30302b267bc92148ac38bce6ce73cef10d55 | 5,740 | py | Python | axfs.py | CelesteBlue-dev/grover | 620724cbecc4dc7e4875f3b55cff0883a2974005 | [
"WTFPL"
] | 1 | 2021-09-26T09:04:39.000Z | 2021-09-26T09:04:39.000Z | axfs.py | CelesteBlue-dev/grover | 620724cbecc4dc7e4875f3b55cff0883a2974005 | [
"WTFPL"
] | null | null | null | axfs.py | CelesteBlue-dev/grover | 620724cbecc4dc7e4875f3b55cff0883a2974005 | [
"WTFPL"
] | null | null | null | #!/usr/bin/python
import struct
import cStringIO
import zlib
import string
import stat
import os
import sys
outpath = os.path.join(os.getcwd(),sys.argv[2] + '_output')
os.mkdir(outpath)
def inode(region, regions):
data = []
for i in range(regions[region]['max_index']):
output = 0
for j in range(region... | 34.166667 | 122 | 0.613937 | 761 | 5,740 | 4.437582 | 0.194481 | 0.031981 | 0.012437 | 0.019544 | 0.267989 | 0.245188 | 0.159017 | 0.078176 | 0.05804 | 0.038496 | 0 | 0.010412 | 0.213589 | 5,740 | 167 | 123 | 34.371257 | 0.737705 | 0.035889 | 0 | 0.147059 | 0 | 0 | 0.216084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007353 | 0.051471 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8810e485de99db7acd11d73e5b8dd6af928ecb69 | 5,840 | py | Python | tests/test_class_import.py | FedericoCeratto/freezegun | d99329008fe2abe439b108068c026ade511f6ea3 | [
"Apache-2.0"
] | null | null | null | tests/test_class_import.py | FedericoCeratto/freezegun | d99329008fe2abe439b108068c026ade511f6ea3 | [
"Apache-2.0"
] | null | null | null | tests/test_class_import.py | FedericoCeratto/freezegun | d99329008fe2abe439b108068c026ade511f6ea3 | [
"Apache-2.0"
] | null | null | null | import time
import sys
from .fake_module import (
fake_date_function,
fake_datetime_function,
fake_gmtime_function,
fake_localtime_function,
fake_strftime_function,
fake_time_function,
)
from . import fake_module
from freezegun import freeze_time
from freezegun.api import (
FakeDatetime,
... | 33.181818 | 94 | 0.736644 | 764 | 5,840 | 5.311518 | 0.128272 | 0.121735 | 0.141942 | 0.140956 | 0.63997 | 0.592656 | 0.552489 | 0.528339 | 0.514046 | 0.514046 | 0 | 0.03419 | 0.17363 | 5,840 | 175 | 95 | 33.371429 | 0.806672 | 0.007705 | 0 | 0.37037 | 0 | 0 | 0.042156 | 0 | 0 | 0 | 0 | 0 | 0.474074 | 1 | 0.096296 | false | 0 | 0.103704 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
881147b8446b0ad2de1d3aa00ae4760c9302d583 | 2,935 | py | Python | python-local-projects/CurrentAssets_GUI/xxx.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | python-local-projects/CurrentAssets_GUI/xxx.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | python-local-projects/CurrentAssets_GUI/xxx.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null |
# Created with FarPy GUIE v0.5.5
import wx
import wx.calendar
class QAMonitorDialog(wx.Dialog):
def __init__(self, parent, title='Processing'):
wx.Dialog.__init__(self, parent, -1, title, wx.DefaultPosition, (700, 500), style=wx.CLOSE_BOX | wx.CAPTION | wx.SIMPLE_BORDER | wx.FRAME_NO_TASKBAR | w... | 38.116883 | 175 | 0.572743 | 341 | 2,935 | 4.821114 | 0.351906 | 0.071168 | 0.060827 | 0.047445 | 0.324818 | 0.324818 | 0.23601 | 0.23601 | 0.23601 | 0.23601 | 0 | 0.040855 | 0.282794 | 2,935 | 77 | 176 | 38.116883 | 0.740143 | 0.035775 | 0 | 0.072727 | 0 | 0 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072727 | 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 |
88125c0033c23fb4732525c1ac1a541d7d82c643 | 6,422 | py | Python | XMPPReceiver/test/test_xmpp_receiver.py | isabella232/scale-safe | 8b887726768106b6b67d7be6ea257bee5cd83f9a | [
"Apache-2.0"
] | null | null | null | XMPPReceiver/test/test_xmpp_receiver.py | isabella232/scale-safe | 8b887726768106b6b67d7be6ea257bee5cd83f9a | [
"Apache-2.0"
] | 1 | 2021-06-08T10:04:35.000Z | 2021-06-08T10:04:35.000Z | XMPPReceiver/test/test_xmpp_receiver.py | isabella232/scale-safe | 8b887726768106b6b67d7be6ea257bee5cd83f9a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Programmer: Chris Bunch (chris@appscale.com)
# General-purpose Python library imports
import httplib
import logging
import os
import re
import select
import sys
import types
import unittest
# Third party libraries
from flexmock import flexmock
import xmpp
# AppScale import, the library tha... | 36.908046 | 89 | 0.739178 | 884 | 6,422 | 5.115385 | 0.210407 | 0.08912 | 0.042459 | 0.04069 | 0.5272 | 0.492039 | 0.476338 | 0.464839 | 0.431225 | 0.413092 | 0 | 0.004037 | 0.151355 | 6,422 | 173 | 90 | 37.121387 | 0.825688 | 0.175491 | 0 | 0.366972 | 0 | 0 | 0.120994 | 0.014034 | 0 | 0 | 0 | 0 | 0.027523 | 1 | 0.055046 | false | 0.073395 | 0.100917 | 0 | 0.165138 | 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 |
88133a6b070513cc9c4c897a37d4b693e4b39a5a | 5,531 | py | Python | axelrod/tests/unit/test_filters.py | RomeroLaura/Axelrod | 5dd874de295a5796c365ce0bb3028f4a532f4377 | [
"MIT"
] | 1 | 2020-09-07T19:44:44.000Z | 2020-09-07T19:44:44.000Z | axelrod/tests/unit/test_filters.py | RomeroLaura/Axelrod | 5dd874de295a5796c365ce0bb3028f4a532f4377 | [
"MIT"
] | 10 | 2020-09-07T19:44:57.000Z | 2020-11-25T06:00:05.000Z | axelrod/tests/unit/test_filters.py | Nikoleta-v3/Axelrod | d535a7471ef4565495653d2cfc10e3c5ce04cfc6 | [
"MIT"
] | null | null | null | import unittest
import axelrod as axl
from axelrod.player import Player
from axelrod.strategies._filters import *
from hypothesis import example, given, settings
from hypothesis.strategies import integers
class TestFilters(unittest.TestCase):
class TestStrategy(Player):
classifier = {
"stocha... | 32.535294 | 88 | 0.589405 | 493 | 5,531 | 6.324544 | 0.150101 | 0.087235 | 0.041693 | 0.061578 | 0.663246 | 0.589801 | 0.568954 | 0.492623 | 0.492623 | 0.345093 | 0 | 0.007851 | 0.309167 | 5,531 | 169 | 89 | 32.727811 | 0.808165 | 0 | 0 | 0.425676 | 0 | 0 | 0.125475 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 1 | 0.033784 | false | 0.141892 | 0.040541 | 0 | 0.108108 | 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 |
881352ae92d003fd75ac384ce615c010bbe76443 | 1,155 | py | Python | tests/integration/mci/test_date_reference_ranges.py | uk-gov-mirror/ONSdigital.eq-survey-runner | b3a67a82347d024177f7fa6bf05499f47ece7ea5 | [
"MIT"
] | 27 | 2015-10-02T17:27:54.000Z | 2021-04-05T12:39:16.000Z | tests/integration/mci/test_date_reference_ranges.py | uk-gov-mirror/ONSdigital.eq-survey-runner | b3a67a82347d024177f7fa6bf05499f47ece7ea5 | [
"MIT"
] | 1,836 | 2015-09-16T09:59:03.000Z | 2022-03-30T14:27:06.000Z | tests/integration/mci/test_date_reference_ranges.py | uk-gov-mirror/ONSdigital.eq-survey-runner | b3a67a82347d024177f7fa6bf05499f47ece7ea5 | [
"MIT"
] | 20 | 2016-09-09T16:56:12.000Z | 2021-11-12T06:09:27.000Z | from freezegun import freeze_time
from tests.integration.integration_test_case import IntegrationTestCase
@freeze_time('2018-10-08')
class TestHappyPath(IntegrationTestCase):
def test_date_range(self):
self.launchSurvey('test',
'date_reference_ranges',
)... | 29.615385 | 105 | 0.623377 | 135 | 1,155 | 5.266667 | 0.503704 | 0.202532 | 0.092827 | 0.064698 | 0.132208 | 0.04782 | 0 | 0 | 0 | 0 | 0 | 0.035067 | 0.283983 | 1,155 | 38 | 106 | 30.394737 | 0.824667 | 0.072727 | 0 | 0.166667 | 0 | 0 | 0.324274 | 0.019681 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
88141746c4911a398c49cf763bad5cec39d83922 | 1,593 | py | Python | py/get_child_nodes.py | paulokuong/api-examples | 930af7b9d850ef4583d66388d6925dc9147a1e23 | [
"MIT"
] | null | null | null | py/get_child_nodes.py | paulokuong/api-examples | 930af7b9d850ef4583d66388d6925dc9147a1e23 | [
"MIT"
] | null | null | null | py/get_child_nodes.py | paulokuong/api-examples | 930af7b9d850ef4583d66388d6925dc9147a1e23 | [
"MIT"
] | null | null | null | '''
Please note that this file is an example, not an official Lotame-supported
tool. The Support team at Lotame does not provide support for this script,
as it's only meant to serve as a guide to help you use the Services API.
Filename: get_child_nodes.py
Author: Brett Coker
Python Version: 3.6... | 27 | 78 | 0.657878 | 217 | 1,593 | 4.695853 | 0.479263 | 0.048086 | 0.05103 | 0.029441 | 0.047105 | 0.047105 | 0 | 0 | 0 | 0 | 0 | 0.0058 | 0.24231 | 1,593 | 58 | 79 | 27.465517 | 0.838442 | 0.266164 | 0 | 0.121212 | 0 | 0 | 0.162441 | 0.037559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.121212 | 0.090909 | 0 | 0.151515 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
714e5c31634231a7c35b51df0aa40cf8a31c3b57 | 12,736 | py | Python | btform/__init__.py | talkincode/btform | bc13a71c1bd8f967cc523c8c1d688453b9a3ff5f | [
"MIT"
] | 1 | 2017-07-17T06:36:57.000Z | 2017-07-17T06:36:57.000Z | btform/__init__.py | talkincode/btform | bc13a71c1bd8f967cc523c8c1d688453b9a3ff5f | [
"MIT"
] | null | null | null | btform/__init__.py | talkincode/btform | bc13a71c1bd8f967cc523c8c1d688453b9a3ff5f | [
"MIT"
] | null | null | null | #coding:utf-8
import sys,os
import copy
import re
import itertools
import net
"""basic from web.py: makes web apps (http://webpy.org)"""
__version__ = "0.4"
__author__ = [
"Aaron Swartz <me@aaronsw.com>",
"Anand Chitipothu <anandology@gmail.com>"
"jamiesun.net@gmail.com"
]
__license__ = "public domain"
__... | 29.211009 | 197 | 0.539494 | 1,547 | 12,736 | 4.321913 | 0.173239 | 0.029614 | 0.014807 | 0.018845 | 0.296889 | 0.226742 | 0.19294 | 0.157942 | 0.146725 | 0.121298 | 0 | 0.0015 | 0.31941 | 12,736 | 435 | 198 | 29.278161 | 0.769843 | 0.020022 | 0 | 0.364179 | 0 | 0.014925 | 0.116069 | 0.030689 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008955 | 0.01791 | 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 |
71542fe9278625e912683b8c3fd62747c75f491c | 5,066 | py | Python | academicstoday_project/registrar/tests/test_enrolment.py | LeeDoona/EasyGrading | 8a3b7a95e328a5b710bd98934dcde7556731bd72 | [
"Apache-2.0"
] | 146 | 2017-02-04T11:14:50.000Z | 2021-12-30T20:54:50.000Z | academicstoday_project/registrar/tests/test_enrolment.py | LeeDoona/EasyGrading | 8a3b7a95e328a5b710bd98934dcde7556731bd72 | [
"Apache-2.0"
] | 139 | 2015-02-21T21:40:34.000Z | 2016-02-20T13:34:25.000Z | academicstoday_project/registrar/tests/test_enrolment.py | topsit143/acda | c2a20ffd1dcf8668d1fe401d114d32d9e686f1fd | [
"Apache-2.0"
] | 88 | 2017-01-20T20:32:44.000Z | 2022-02-07T05:32:44.000Z | from django.core.urlresolvers import resolve
from django.http import HttpRequest
from django.http import QueryDict
from django.test import TestCase
from django.test import Client
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators i... | 34.69863 | 67 | 0.637781 | 550 | 5,066 | 5.678182 | 0.216364 | 0.048671 | 0.035863 | 0.04611 | 0.532821 | 0.480948 | 0.45341 | 0.443164 | 0.376561 | 0.372398 | 0 | 0.007008 | 0.267667 | 5,066 | 145 | 68 | 34.937931 | 0.834771 | 0.015594 | 0 | 0.419355 | 0 | 0 | 0.089924 | 0.017463 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.080645 | false | 0.056452 | 0.112903 | 0 | 0.201613 | 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 |
715ae83a96b04b1a4425a0f0f320724cf6e41a91 | 1,658 | py | Python | tests/utils/shell_tests.py | LTD-Beget/cement | e885932583c14037599a2aa8a16d4d8a521364bd | [
"BSD-3-Clause"
] | null | null | null | tests/utils/shell_tests.py | LTD-Beget/cement | e885932583c14037599a2aa8a16d4d8a521364bd | [
"BSD-3-Clause"
] | null | null | null | tests/utils/shell_tests.py | LTD-Beget/cement | e885932583c14037599a2aa8a16d4d8a521364bd | [
"BSD-3-Clause"
] | null | null | null | """Tests for cement.utils.shell"""
import time
from cement.utils import shell, test
def add(a, b):
return a + b
class ShellUtilsTestCase(test.CementCoreTestCase):
def test_exec_cmd(self):
out, err, ret = shell.exec_cmd(['echo', 'KAPLA!'])
self.eq(ret, 0)
self.eq(out, b'KAPLA!\n')
... | 27.633333 | 67 | 0.553076 | 236 | 1,658 | 3.728814 | 0.233051 | 0.088636 | 0.075 | 0.045455 | 0.619318 | 0.5125 | 0.378409 | 0.252273 | 0.161364 | 0.084091 | 0 | 0.020961 | 0.309409 | 1,658 | 59 | 68 | 28.101695 | 0.747598 | 0.05187 | 0 | 0.365854 | 0 | 0 | 0.039617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.04878 | 0.02439 | 0.317073 | 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 |
7169f697751c14b85622a94a7f270d6c7407757a | 313 | py | Python | juriscraper/opinions/united_states/state/nebctapp.py | umeboshi2/juriscraper | 16abceb3747947593841b1c2708de84dcc85c59d | [
"BSD-2-Clause"
] | null | null | null | juriscraper/opinions/united_states/state/nebctapp.py | umeboshi2/juriscraper | 16abceb3747947593841b1c2708de84dcc85c59d | [
"BSD-2-Clause"
] | null | null | null | juriscraper/opinions/united_states/state/nebctapp.py | umeboshi2/juriscraper | 16abceb3747947593841b1c2708de84dcc85c59d | [
"BSD-2-Clause"
] | 1 | 2021-03-03T00:03:16.000Z | 2021-03-03T00:03:16.000Z | # Author: Michael Lissner
# Date created: 2013-06-21
from juriscraper.opinions.united_states.state import neb
class Site(neb.Site):
def __init__(self, *args, **kwargs):
super(Site, self).__init__(*args, **kwargs)
self.url = 'https://supremecourt.nebraska.gov/courts/court-appeals/opinions'
| 28.454545 | 84 | 0.709265 | 41 | 313 | 5.195122 | 0.780488 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.15016 | 313 | 10 | 85 | 31.3 | 0.770677 | 0.153355 | 0 | 0 | 0 | 0 | 0.240458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
716ad20295cac141507783ea6b13dd1017c1171c | 621 | py | Python | config.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | 3 | 2021-02-04T02:53:35.000Z | 2021-07-22T01:09:36.000Z | config.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | 17 | 2021-02-19T23:25:29.000Z | 2021-05-16T04:18:00.000Z | config.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
from setup import basedir
try:
load_dotenv()
except FileNotFoundError:
pass
class BaseConfig(object):
"""
Base Configuration for placeholder
"""
SECRET_KEY = "SO_SECURE"
DEBUG = True
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI_base')
SQ... | 22.178571 | 60 | 0.726248 | 72 | 621 | 5.972222 | 0.597222 | 0.102326 | 0.097674 | 0.106977 | 0.186047 | 0.186047 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0.201288 | 621 | 27 | 61 | 23 | 0.866935 | 0.098229 | 0 | 0.105263 | 0 | 0 | 0.079926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.157895 | 0 | 0.789474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
716e705f17e8fc12e2257c6477e8cae6bd4d6582 | 1,223 | py | Python | sso/tests/factories/oauth.py | uktrade/staff-sso | c23da74415befdaed60649a9a940b1ba8331581e | [
"MIT"
] | 7 | 2018-07-30T16:18:52.000Z | 2022-03-21T12:58:20.000Z | sso/tests/factories/oauth.py | uktrade/staff-sso | c23da74415befdaed60649a9a940b1ba8331581e | [
"MIT"
] | 55 | 2017-06-26T12:49:01.000Z | 2022-03-09T15:48:49.000Z | sso/tests/factories/oauth.py | uktrade/staff-sso | c23da74415befdaed60649a9a940b1ba8331581e | [
"MIT"
] | 1 | 2020-05-28T07:17:26.000Z | 2020-05-28T07:17:26.000Z | from datetime import timedelta
import factory
from django.utils import timezone
from oauth2_provider.models import AccessToken
from sso.oauth2.models import Application
from .user import UserFactory
class ApplicationFactory(factory.django.DjangoModelFactory):
client_type = Application.CLIENT_CONFIDENTIAL
a... | 27.795455 | 68 | 0.701554 | 140 | 1,223 | 6.042857 | 0.535714 | 0.028369 | 0.073286 | 0.052009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.215045 | 1,223 | 43 | 69 | 28.44186 | 0.877083 | 0.030253 | 0 | 0.064516 | 0 | 0 | 0.052542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.193548 | 0 | 0.774194 | 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 |
7170088008a8df4bfb15b943979eb1676ea34a3b | 123,264 | py | Python | choices/fr.py | dev-easyshares/company | 61842839121f308619c59a8f52ab76c8b9dcdd30 | [
"MIT"
] | null | null | null | choices/fr.py | dev-easyshares/company | 61842839121f308619c59a8f52ab76c8b9dcdd30 | [
"MIT"
] | null | null | null | choices/fr.py | dev-easyshares/company | 61842839121f308619c59a8f52ab76c8b9dcdd30 | [
"MIT"
] | null | null | null | from django.utils.translation import gettext_lazy as _
SLICE_EFFECTIVE = (
("00", _("0 salarié (n'ayant pas d'effectif au 31/12 mais ayant employé des salariés au cours de l'année de référence)")),
("01", _("1 ou 2 salariés")),
("02", _("3 à 5 salariés")),
("03", _("6 à 9 salariés")),
("11", _("10 à 19 salariés")),
("... | 60.216903 | 154 | 0.714905 | 14,685 | 123,264 | 5.862921 | 0.233435 | 0.037295 | 0.01561 | 0.010453 | 0.558963 | 0.460783 | 0.341382 | 0.26167 | 0.193967 | 0.139924 | 0 | 0.06945 | 0.113277 | 123,264 | 2,047 | 155 | 60.216903 | 0.718255 | 0 | 0 | 0 | 0 | 0.006866 | 0.781033 | 0.004446 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.004414 | 0.00049 | 0 | 0.00049 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.