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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
133f71c3b26f523dd1a2875a2f44115d5cf4294c | 1,361 | py | Python | apps/home.py | rmbeard/clustervision | 409390dd02ec36c8cd25acd20e971b670628d8a9 | [
"MIT"
] | null | null | null | apps/home.py | rmbeard/clustervision | 409390dd02ec36c8cd25acd20e971b670628d8a9 | [
"MIT"
] | null | null | null | apps/home.py | rmbeard/clustervision | 409390dd02ec36c8cd25acd20e971b670628d8a9 | [
"MIT"
] | null | null | null | import streamlit as st
import leafmap.foliumap as leafmap
def app():
st.title("Cluster Vision")
st.markdown(
"""
This web app demonstrates various interactive tasks for visual explorations to aid decision making in Public Health
"""
)
st.info("Click on the left sidebar menu... | 45.366667 | 302 | 0.698016 | 192 | 1,361 | 4.932292 | 0.609375 | 0.022175 | 0.038015 | 0.057022 | 0.127772 | 0.127772 | 0.099261 | 0.099261 | 0.099261 | 0.099261 | 0 | 0.039321 | 0.17781 | 1,361 | 30 | 303 | 45.366667 | 0.806971 | 0.364438 | 0 | 0.166667 | 0 | 0 | 0.495256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13413a1d66369e1949e6e2fb0d1bdc423ba6804e | 1,472 | py | Python | Course03/Controls-Project/C++/config/traj/MakePeriodicTrajectory.py | thhuang/notes-fcnd | c5b0ec7d99df3cb60a850308d16ccc6c096c7931 | [
"MIT"
] | 1 | 2021-12-14T09:34:36.000Z | 2021-12-14T09:34:36.000Z | Course03/Controls-Project/C++/config/traj/MakePeriodicTrajectory.py | thhuang/notes-fcnd | c5b0ec7d99df3cb60a850308d16ccc6c096c7931 | [
"MIT"
] | null | null | null | Course03/Controls-Project/C++/config/traj/MakePeriodicTrajectory.py | thhuang/notes-fcnd | c5b0ec7d99df3cb60a850308d16ccc6c096c7931 | [
"MIT"
] | 1 | 2018-10-26T04:06:23.000Z | 2018-10-26T04:06:23.000Z | import math
def fmt(value):
return "%.3f" % value
period = [4, 2, 4]
radius = 1.5
timestep = 0.02
maxtime = max(period)*3
timemult = [1, 1, 1]
phase=[0,0,0]
amp = [1,0.4,.5]
center = [0, 0, -2]
with open('FigureEightFF.txt', 'w') as the_file:
t=0
px = 0
py = 0
pz = 0
while t <= maxtime:
... | 32.711111 | 110 | 0.468071 | 227 | 1,472 | 3.013216 | 0.23348 | 0.065789 | 0.092105 | 0.171053 | 0.385965 | 0.245614 | 0.245614 | 0.184211 | 0 | 0 | 0 | 0.061825 | 0.307745 | 1,472 | 44 | 111 | 33.454545 | 0.609421 | 0.14538 | 0 | 0 | 0 | 0 | 0.02461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0.037037 | 0.111111 | 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 |
13419f28cb53f2c91fcf3235597a5f4cb341e2b0 | 777 | py | Python | xml/jython/read/xml_read.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | 3 | 2015-05-12T16:44:27.000Z | 2021-02-09T00:39:24.000Z | xml/jython/read/xml_read.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | xml/jython/read/xml_read.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | #! /usr/bin/jython
# -*- coding: utf-8 -*-
#
# jython/read/xml_read.py
#
# May/27/2015
#
# --------------------------------------------------------------------
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
sys.path.append ('/var/www/data_base/common/jython_common')
#
from jython_xml_manipulate import jyth... | 26.793103 | 70 | 0.541828 | 93 | 777 | 4.16129 | 0.419355 | 0.077519 | 0.056848 | 0.077519 | 0.098191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.083655 | 777 | 28 | 71 | 27.75 | 0.532303 | 0.369369 | 0 | 0 | 0 | 0 | 0.193684 | 0.141053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
134586ee0dc318e18310eab7b98a6bd678a170b2 | 1,051 | py | Python | example/example_app/views.py | akolpakov/django-paynova-api | 3de15859c25fb1f041fa9930a3bf072b016eb8ff | [
"MIT"
] | 2 | 2015-03-17T07:56:51.000Z | 2015-07-09T09:21:40.000Z | example/example_app/views.py | akolpakov/django-paynova | 3de15859c25fb1f041fa9930a3bf072b016eb8ff | [
"MIT"
] | null | null | null | example/example_app/views.py | akolpakov/django-paynova | 3de15859c25fb1f041fa9930a3bf072b016eb8ff | [
"MIT"
] | null | null | null | from django.http import HttpResponse, HttpResponseRedirect
from django.dispatch import receiver
from django_paynova import create_order, PaynovaException
from django_paynova.signals import paynova_payment
def payment(request):
try:
pp = create_order({
'orderNumber': '0005',
'curren... | 35.033333 | 122 | 0.676499 | 121 | 1,051 | 5.809917 | 0.479339 | 0.056899 | 0.048364 | 0.031294 | 0.059744 | 0.059744 | 0.059744 | 0 | 0 | 0 | 0 | 0.008464 | 0.21313 | 1,051 | 29 | 123 | 36.241379 | 0.841596 | 0.186489 | 0 | 0.095238 | 0 | 0.047619 | 0.143529 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.095238 | false | 0.047619 | 0.190476 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13475f98e30869386e92e21f7fc21cb59111038c | 785 | py | Python | stai/wallet/util/compute_hints.py | STATION-I/staicoin-blockchain | b8686c75dd5fe7883115d9613858c9c8cadfc4a7 | [
"Apache-2.0"
] | 10 | 2021-10-02T18:33:56.000Z | 2021-11-14T17:10:48.000Z | stai/wallet/util/compute_hints.py | STATION-I/staicoin-blockchain | b8686c75dd5fe7883115d9613858c9c8cadfc4a7 | [
"Apache-2.0"
] | 14 | 2021-10-07T22:10:15.000Z | 2021-12-21T09:13:49.000Z | stai/wallet/util/compute_hints.py | STATION-I/staicoin-blockchain | b8686c75dd5fe7883115d9613858c9c8cadfc4a7 | [
"Apache-2.0"
] | 6 | 2021-10-29T19:36:59.000Z | 2021-12-19T19:52:57.000Z | from typing import List
from stai.types.blockchain_format.sized_bytes import bytes32
from stai.types.condition_opcodes import ConditionOpcode
from stai.types.blockchain_format.program import INFINITE_COST
from stai.types.coin_spend import CoinSpend
def compute_coin_hints(cs: CoinSpend) -> List[bytes32]:
_, resul... | 37.380952 | 82 | 0.712102 | 106 | 785 | 5.056604 | 0.443396 | 0.059701 | 0.097015 | 0.085821 | 0.108209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.194904 | 785 | 20 | 83 | 39.25 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
13486e4383d62f5ca89786c12e210766fbbb6faa | 254 | py | Python | exercios/Mundo 1/2-Tratando dados e fazendo contas/ex010.py | DarkEyeBr/Python | f45239551d19f49eac35185e4f72b067d5820f3a | [
"MIT"
] | null | null | null | exercios/Mundo 1/2-Tratando dados e fazendo contas/ex010.py | DarkEyeBr/Python | f45239551d19f49eac35185e4f72b067d5820f3a | [
"MIT"
] | null | null | null | exercios/Mundo 1/2-Tratando dados e fazendo contas/ex010.py | DarkEyeBr/Python | f45239551d19f49eac35185e4f72b067d5820f3a | [
"MIT"
] | null | null | null | r = float(input('Digite quanto reais você tem: R$'))
d = r / 5.27
a = '\033[4;35m'
b = '\033[m'
print('{}{:.2f}{} reais são equivalentes a {}{:.2f}{} dólares'.format(a, r,b,
a, d, b))
| 36.285714 | 79 | 0.405512 | 35 | 254 | 2.942857 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.393701 | 254 | 6 | 80 | 42.333333 | 0.577922 | 0 | 0 | 0 | 0 | 0 | 0.401575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1348d6f8a0a9441edf423b4edf22c5ce3caedbab | 575 | py | Python | src/openbiolink/graph_creation/file_reader/postgresDumpReader.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | src/openbiolink/graph_creation/file_reader/postgresDumpReader.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | src/openbiolink/graph_creation/file_reader/postgresDumpReader.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | from openbiolink.graph_creation.file_reader.fileReader import FileReader
from openbiolink.graph_creation.file_reader.parser.postgresDumpParser import PostgresDumpParser as dcp
class PostgresDumpReader(FileReader):
def __init__(self, in_path, table_name, cols, readerType, dbType):
super().__init__(in_path... | 35.9375 | 102 | 0.733913 | 74 | 575 | 5.391892 | 0.418919 | 0.090226 | 0.100251 | 0.140351 | 0.190476 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187826 | 575 | 15 | 103 | 38.333333 | 0.85439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
134e81fa0c364f22458139c01772afcb72859f40 | 775 | py | Python | 31.py | hendrikjeb/Euler | a9e62babcec4e4faef15b8e2d3db86790c9d59b8 | [
"MIT"
] | 1 | 2015-12-19T14:33:08.000Z | 2015-12-19T14:33:08.000Z | 31.py | hendrikjeb/Euler | a9e62babcec4e4faef15b8e2d3db86790c9d59b8 | [
"MIT"
] | null | null | null | 31.py | hendrikjeb/Euler | a9e62babcec4e4faef15b8e2d3db86790c9d59b8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Problem 31: Coin sums
In England the currency is made up of pound, £, and pence, p, and there are
eight coins in general circulation:
1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).
It is possible to make £2 in the following way:
1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p
Ho... | 16.847826 | 76 | 0.593548 | 137 | 775 | 3.445255 | 0.540146 | 0.012712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17446 | 0.282581 | 775 | 45 | 77 | 17.222222 | 0.652878 | 0.027097 | 0 | 0 | 0 | 0 | 0.015424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
134f704aa77df740c4d2b4cfaa1a8fa5a145d34a | 24,062 | py | Python | examples/eidelyur/MCOOL/sources/src_1.py | radiasoft/rsdynfric | 0d905e1ef85063ec6fe93df64751f7b8c19da160 | [
"Apache-2.0"
] | null | null | null | examples/eidelyur/MCOOL/sources/src_1.py | radiasoft/rsdynfric | 0d905e1ef85063ec6fe93df64751f7b8c19da160 | [
"Apache-2.0"
] | 1 | 2022-03-23T22:53:10.000Z | 2022-03-28T19:02:40.000Z | examples/eidelyur/MCOOL/sources/src_1.py | radiasoft/rsdynfric | 0d905e1ef85063ec6fe93df64751f7b8c19da160 | [
"Apache-2.0"
] | 3 | 2017-01-06T04:24:29.000Z | 2020-02-16T01:17:20.000Z |
New Algorithms for Simulating Dynamical Friction
Dan T. Abell, David L. Bruhwiler, Stephen D. Webb — RadiaSoft, LLC
This notebook describes—and documents in code—algorithms for simulating
the dynamical friction experienced by ions in the presence of magnetized electrons.
The $\LaTeX$ preamble is here. $$ %% math tex... | 33.747546 | 858 | 0.610298 | 4,129 | 24,062 | 3.410511 | 0.157907 | 0.016333 | 0.009232 | 0.003977 | 0.395043 | 0.351513 | 0.311177 | 0.275955 | 0.24613 | 0.223832 | 0 | 0.070278 | 0.215859 | 24,062 | 712 | 859 | 33.794944 | 0.675906 | 0 | 0 | 0.274468 | 0 | 0.053191 | 0.01563 | 0.005489 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031915 | null | null | 0.040426 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13519fc2a0e848b489ad168294521953fc4cf6ae | 342 | py | Python | Examples/example3.py | MaksimSimanskiy/2.15 | 665c5e4da19de8d7251055fd50456460ef8d7281 | [
"MIT"
] | null | null | null | Examples/example3.py | MaksimSimanskiy/2.15 | 665c5e4da19de8d7251055fd50456460ef8d7281 | [
"MIT"
] | null | null | null | Examples/example3.py | MaksimSimanskiy/2.15 | 665c5e4da19de8d7251055fd50456460ef8d7281 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
if __name__ == "__main__":
with open("file2.txt", "w") as fileptr:
# appending the content to the file
fileptr.write(
"Python is the modern day language. It makes things so simple.\n"
"It is the fastest-growing programin... | 34.2 | 78 | 0.581871 | 44 | 342 | 4.340909 | 0.840909 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0.30117 | 342 | 10 | 79 | 34.2 | 0.786611 | 0.225146 | 0 | 0 | 0 | 0 | 0.496063 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1354a27044f90f9dd40001bfddc7c2bb9f4ccc13 | 681 | py | Python | aws_lambda_builders/workflows/go_modules/actions.py | ekmixon/aws-lambda-builders | 01031a52ea314217e1c373f6ab2edc0a265ce552 | [
"Apache-2.0"
] | 180 | 2018-11-09T04:51:19.000Z | 2020-08-06T21:43:20.000Z | aws_lambda_builders/workflows/go_modules/actions.py | ekmixon/aws-lambda-builders | 01031a52ea314217e1c373f6ab2edc0a265ce552 | [
"Apache-2.0"
] | 108 | 2018-11-08T18:34:51.000Z | 2020-08-12T17:59:41.000Z | aws_lambda_builders/workflows/go_modules/actions.py | ekmixon/aws-lambda-builders | 01031a52ea314217e1c373f6ab2edc0a265ce552 | [
"Apache-2.0"
] | 91 | 2018-11-08T22:58:00.000Z | 2020-08-17T21:15:31.000Z | """
Action to build a Go project using standard Go tooling
"""
from aws_lambda_builders.actions import BaseAction, Purpose, ActionFailedError
from .builder import BuilderError
class GoModulesBuildAction(BaseAction):
NAME = "Build"
DESCRIPTION = "Building Go package with Go Modules"
PURPOSE = Purpose.COM... | 27.24 | 78 | 0.703377 | 81 | 681 | 5.728395 | 0.530864 | 0.077586 | 0.084052 | 0.081897 | 0.099138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22467 | 681 | 24 | 79 | 28.375 | 0.878788 | 0.079295 | 0 | 0 | 0 | 0 | 0.06462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.533333 | 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 |
135578388d4dd3939e44eeb8bfd54ba02222c479 | 3,557 | py | Python | scripts/tracing/draw_functrace.py | tuxafgmur/OLD_Dhollmen_Kernel | 90ed4e2e3e6321de246fa193705ae40ede4e2d8e | [
"BSD-Source-Code"
] | null | null | null | scripts/tracing/draw_functrace.py | tuxafgmur/OLD_Dhollmen_Kernel | 90ed4e2e3e6321de246fa193705ae40ede4e2d8e | [
"BSD-Source-Code"
] | null | null | null | scripts/tracing/draw_functrace.py | tuxafgmur/OLD_Dhollmen_Kernel | 90ed4e2e3e6321de246fa193705ae40ede4e2d8e | [
"BSD-Source-Code"
] | null | null | null | #!/usr/bin/python
"""
Copyright 2008 (c) Frederic Weisbecker <fweisbec@gmail.com>
Licensed under the terms of the GNU GPL License version 2
This script parses a trace provided by the function tracer in
kernel/trace/trace_functions.c
The resulted trace is processed into a tree to produce a more human
view of the call ... | 28.007874 | 70 | 0.68822 | 529 | 3,557 | 4.529301 | 0.361059 | 0.040067 | 0.017529 | 0.017529 | 0.056761 | 0.039232 | 0.039232 | 0 | 0 | 0 | 0 | 0.004916 | 0.199325 | 3,557 | 126 | 71 | 28.230159 | 0.836376 | 0.004498 | 0 | 0.130435 | 0 | 0 | 0.053305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028986 | 0.014493 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13574e88d6691d16b21147e41453dcd090d2bc88 | 1,035 | py | Python | var/spack/repos/builtin/packages/py-lmodule/package.py | robertodr/spack | 9b809e01b47d48f01b3d257912fe1b752943cd3d | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/py-lmodule/package.py | robertodr/spack | 9b809e01b47d48f01b3d257912fe1b752943cd3d | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/py-lmodule/package.py | robertodr/spack | 9b809e01b47d48f01b3d257912fe1b752943cd3d | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyLmodule(PythonPackage):
"""Lmodule is a Python API for Lmod module system. It's primary ... | 39.807692 | 95 | 0.722705 | 141 | 1,035 | 5.283688 | 0.687943 | 0.036242 | 0.056376 | 0.075168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065517 | 0.15942 | 1,035 | 25 | 96 | 41.4 | 0.790805 | 0.458937 | 0 | 0 | 0 | 0.1 | 0.513915 | 0.118738 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 |
135ea67c68c70ea7ab1f3ce0fecdd4e75f04befe | 392 | py | Python | class.py | Mukulphougat/Python | 4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2 | [
"MIT"
] | null | null | null | class.py | Mukulphougat/Python | 4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2 | [
"MIT"
] | null | null | null | class.py | Mukulphougat/Python | 4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2 | [
"MIT"
] | null | null | null | class User:
pass
user1 = User()
user1.first_name = "Mike"
user1.last_name = "Wheeler"
print(user1.first_name)
user2 = User()
user2.first_name = "Eleven"
user2.last_name = "Hooper"
print(user1.first_name, user1.last_name)
print(user2.first_name, user2.last_name)
user1.age = 16
user2.age = 16
user2.favourite_food =... | 18.666667 | 40 | 0.75 | 61 | 392 | 4.639344 | 0.295082 | 0.159011 | 0.14841 | 0.134276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060519 | 0.114796 | 392 | 20 | 41 | 19.6 | 0.755043 | 0 | 0 | 0 | 0 | 0 | 0.071611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0 | 0 | 0.058824 | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13645844bbcac9e99705934a88a6e43c047ea6ab | 3,250 | py | Python | imageio/plugins/grab.py | jond01/imageio | e467b7a7b03d8d8843fe0c2cdbdb37fd6a48b331 | [
"BSD-2-Clause"
] | 11 | 2019-06-19T03:44:05.000Z | 2021-07-30T10:28:14.000Z | imageio/plugins/grab.py | jond01/imageio | e467b7a7b03d8d8843fe0c2cdbdb37fd6a48b331 | [
"BSD-2-Clause"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | imageio/plugins/grab.py | jond01/imageio | e467b7a7b03d8d8843fe0c2cdbdb37fd6a48b331 | [
"BSD-2-Clause"
] | 6 | 2019-10-25T17:11:06.000Z | 2021-12-02T16:05:20.000Z | """
PIL-based formats to take screenshots and grab from the clipboard.
"""
import threading
import numpy as np
from .. import formats
from ..core import Format
class BaseGrabFormat(Format):
""" Base format for grab formats.
"""
_pillow_imported = False
_ImageGrab = None
def __init__(self, *ar... | 26.209677 | 84 | 0.598769 | 367 | 3,250 | 5.147139 | 0.302452 | 0.015881 | 0.029645 | 0.022234 | 0.37639 | 0.319746 | 0.291159 | 0.265749 | 0.219164 | 0.219164 | 0 | 0.000881 | 0.301846 | 3,250 | 123 | 85 | 26.422764 | 0.831644 | 0.222154 | 0 | 0.366197 | 0 | 0 | 0.092547 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 1 | 0.140845 | false | 0.028169 | 0.15493 | 0.028169 | 0.549296 | 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 |
1366592b8ac2f4da2504ef84173d86a94479c1e5 | 3,287 | py | Python | pronto/pv.py | jiggylepcha/pronto | be019ab59253b7ee1d243d04445cfd41478cffcd | [
"MIT"
] | null | null | null | pronto/pv.py | jiggylepcha/pronto | be019ab59253b7ee1d243d04445cfd41478cffcd | [
"MIT"
] | null | null | null | pronto/pv.py | jiggylepcha/pronto | be019ab59253b7ee1d243d04445cfd41478cffcd | [
"MIT"
] | null | null | null | """Object hierarchy of property-value annotations in OBO files.
"""
import functools
import fastobo
from .utils.meta import roundrepr, typechecked
class PropertyValue(object):
"""A property-value, which adds annotations to an entity.
"""
property: str
__slots__ = ("__weakref__", "property")
@rou... | 31.304762 | 87 | 0.634013 | 333 | 3,287 | 6.108108 | 0.198198 | 0.070796 | 0.053097 | 0.033432 | 0.600295 | 0.553589 | 0.482793 | 0.446411 | 0.382498 | 0.377581 | 0 | 0 | 0.267113 | 3,287 | 104 | 88 | 31.605769 | 0.844334 | 0.224825 | 0 | 0.433333 | 0 | 0 | 0.021382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.05 | 0.033333 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
136980554bbeeb545a564596606582340e386353 | 1,597 | py | Python | tests/test_algos.py | thanhtu19392/SmileML | 735aa92a5ca8934a3e8b944bcac6fcee390926c6 | [
"MIT"
] | 2 | 2018-01-31T21:17:47.000Z | 2018-05-28T20:55:51.000Z | tests/test_algos.py | thanhtu19392/SmileML | 735aa92a5ca8934a3e8b944bcac6fcee390926c6 | [
"MIT"
] | 1 | 2018-01-31T19:11:45.000Z | 2018-01-31T21:52:20.000Z | tests/test_algos.py | thanhtu19392/SmileML | 735aa92a5ca8934a3e8b944bcac6fcee390926c6 | [
"MIT"
] | 1 | 2020-04-22T11:26:54.000Z | 2020-04-22T11:26:54.000Z | from smileml.ml import RandomBitFeatures, ContinuableXGBClassifier
from smileml.ml.preprocessing import simple_proc_for_linear_algoritms
from smileml.utils import DummyImport
import pandas as pd
from sklearn.pipeline import make_pipeline
from sklearn.model_selection import cross_val_score
from sklearn.linear_model impo... | 33.270833 | 76 | 0.721979 | 192 | 1,597 | 5.8125 | 0.427083 | 0.02957 | 0.034946 | 0.051075 | 0.238351 | 0.213262 | 0.213262 | 0.213262 | 0.213262 | 0.213262 | 0 | 0.004566 | 0.177207 | 1,597 | 47 | 77 | 33.978723 | 0.844749 | 0.035066 | 0 | 0.25641 | 0 | 0 | 0.091618 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.076923 | false | 0.025641 | 0.333333 | 0 | 0.410256 | 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 |
1369f473fbe45ba5ee15add9b9dbb6ab55b6a59e | 1,319 | py | Python | wrappers/python/pyximc-template.py | EPC-MSU/libximc | b0349721f57c8274b098a7b646d7ae67b8e70b9d | [
"BSD-2-Clause"
] | 3 | 2020-12-08T14:41:48.000Z | 2022-02-23T13:42:42.000Z | wrappers/python/pyximc-template.py | EPC-MSU/libximc | b0349721f57c8274b098a7b646d7ae67b8e70b9d | [
"BSD-2-Clause"
] | 4 | 2020-12-08T20:15:06.000Z | 2021-12-08T14:15:24.000Z | wrappers/python/pyximc-template.py | EPC-MSU/libximc | b0349721f57c8274b098a7b646d7ae67b8e70b9d | [
"BSD-2-Clause"
] | 2 | 2020-11-02T02:17:35.000Z | 2021-03-18T14:13:56.000Z | from ctypes import *
import os
import platform
# Load library
# use cdecl on unix and stdcall on windows
def ximc_shared_lib():
if platform.system() == "Linux":
return CDLL("libximc.so")
elif platform.system() == "FreeBSD":
return CDLL("libximc.so")
elif platform.system() == "Darwin":
... | 20.292308 | 61 | 0.637604 | 153 | 1,319 | 5.248366 | 0.588235 | 0.069738 | 0.063512 | 0.047323 | 0.174346 | 0.092154 | 0.092154 | 0 | 0 | 0 | 0 | 0.016016 | 0.242608 | 1,319 | 64 | 62 | 20.609375 | 0.787788 | 0.101592 | 0 | 0.146341 | 0 | 0 | 0.134126 | 0.021222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.02439 | 0.073171 | 0 | 0.536585 | 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 |
1378501a6e5f894a6b9cebe91a24cf575ca51d95 | 10,963 | py | Python | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/types/functions.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/types/functions.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | null | null | null | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/types/functions.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | from __future__ import print_function, division, absolute_import
from .abstract import *
from .common import *
class BaseFunction(Callable):
"""
Base type class for some function types.
"""
def __init__(self, template):
if isinstance(template, (list, tuple)):
self.templates = tupl... | 31.056657 | 82 | 0.60467 | 1,282 | 10,963 | 4.967239 | 0.177067 | 0.021985 | 0.018844 | 0.02544 | 0.328046 | 0.273555 | 0.234925 | 0.217337 | 0.179805 | 0.1462 | 0 | 0.000394 | 0.305391 | 10,963 | 352 | 83 | 31.144886 | 0.83585 | 0.164097 | 0 | 0.319249 | 0 | 0 | 0.027036 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 1 | 0.211268 | false | 0 | 0.032864 | 0.084507 | 0.474178 | 0.004695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
137f2bf64467ca391454151e69d163b2ebd4ac6c | 4,727 | py | Python | MobileNet.py | Mridul20/Face-Mask-Detector | 3cc9b42fb2ced83710814334308c258e1bb04770 | [
"MIT"
] | 1 | 2020-12-19T19:30:22.000Z | 2020-12-19T19:30:22.000Z | MobileNet.py | Mridul20/Face-Mask-Detector | 3cc9b42fb2ced83710814334308c258e1bb04770 | [
"MIT"
] | null | null | null | MobileNet.py | Mridul20/Face-Mask-Detector | 3cc9b42fb2ced83710814334308c258e1bb04770 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[40]:
import sys
import os
import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#get_ipython().run_line_magic('matplotlib', 'inline')
import seaborn as sns
# uncomment the following line if 'imutils' is not installed in your python kernel
# !{... | 21.197309 | 108 | 0.749312 | 659 | 4,727 | 5.259484 | 0.345979 | 0.033756 | 0.071264 | 0.050202 | 0.34824 | 0.208886 | 0.169648 | 0.13041 | 0.075014 | 0.075014 | 0 | 0.025198 | 0.143643 | 4,727 | 222 | 109 | 21.292793 | 0.831028 | 0.088217 | 0 | 0.192982 | 0 | 0 | 0.06936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008772 | false | 0 | 0.429825 | 0 | 0.438596 | 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 |
138107f64d301a6e8a9445a95266e310608d1135 | 1,209 | py | Python | Tools/python37/Lib/site-packages/tests/test_paths.py | xxroot/android_universal | af2d8627182f936383d792c1f775d87da50f2f6d | [
"MIT"
] | 207 | 2018-10-01T08:53:01.000Z | 2022-03-14T12:15:54.000Z | Tools/python37/Lib/site-packages/tests/test_paths.py | xxroot/android_universal | af2d8627182f936383d792c1f775d87da50f2f6d | [
"MIT"
] | 8 | 2019-06-29T14:18:51.000Z | 2022-02-19T07:30:27.000Z | Tools/python37/Lib/site-packages/tests/test_paths.py | xxroot/android_universal | af2d8627182f936383d792c1f775d87da50f2f6d | [
"MIT"
] | 53 | 2019-03-12T16:50:21.000Z | 2022-03-15T23:16:18.000Z | # coding: utf-8
import unittest
from normality.paths import MAX_LENGTH, safe_filename
class PathsTest(unittest.TestCase):
def test_safe_filename(self):
self.assertEqual(None, safe_filename(None))
self.assertEqual('test.txt', safe_filename('test.txt'))
self.assertEqual('test.txt', safe_fi... | 36.636364 | 76 | 0.684036 | 149 | 1,209 | 5.328859 | 0.208054 | 0.196474 | 0.143577 | 0.143577 | 0.700252 | 0.673804 | 0.673804 | 0.673804 | 0.649874 | 0.511335 | 0 | 0.004086 | 0.19024 | 1,209 | 32 | 77 | 37.78125 | 0.806946 | 0.010753 | 0 | 0.272727 | 0 | 0 | 0.11474 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1384fdc8342b919dea02c4201d399a91b10122e4 | 4,254 | py | Python | app/__init__.py | Aorjoa/aiyara-ceph-dash | 67a42c775fa03a26365f47ee4d97eeb820d8ceb1 | [
"BSD-2-Clause"
] | null | null | null | app/__init__.py | Aorjoa/aiyara-ceph-dash | 67a42c775fa03a26365f47ee4d97eeb820d8ceb1 | [
"BSD-2-Clause"
] | null | null | null | app/__init__.py | Aorjoa/aiyara-ceph-dash | 67a42c775fa03a26365f47ee4d97eeb820d8ceb1 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from os.path import dirname
from os.path import join
from flask import Flask
from rados import Rados
from influxdb import InfluxDBClient
from app.dashboard.views import CephClusterCommand
from app.dashboard.views import CephClusterProperties
from app.dashboa... | 36.358974 | 92 | 0.639633 | 507 | 4,254 | 5.155819 | 0.313609 | 0.024484 | 0.039786 | 0.058148 | 0.305662 | 0.253252 | 0.23948 | 0.202372 | 0.177888 | 0.136955 | 0 | 0.002833 | 0.253173 | 4,254 | 116 | 93 | 36.672414 | 0.819956 | 0.105783 | 0 | 0.097561 | 0 | 0 | 0.116685 | 0 | 0 | 0 | 0 | 0.008621 | 0.012195 | 0 | null | null | 0 | 0.195122 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
138a6e78b821052f036de10edb273f6492e3e964 | 18,388 | py | Python | container_service_extension/client/pks.py | arunmk/container-service-extension | 5e67df64fd5ed7fbb664d449356cb983cecbca12 | [
"BSD-3-Clause"
] | 81 | 2017-07-05T19:42:41.000Z | 2022-03-09T22:04:05.000Z | container_service_extension/client/pks.py | arunmk/container-service-extension | 5e67df64fd5ed7fbb664d449356cb983cecbca12 | [
"BSD-3-Clause"
] | 670 | 2017-07-05T16:48:02.000Z | 2022-03-31T13:40:53.000Z | container_service_extension/client/pks.py | arunmk/container-service-extension | 5e67df64fd5ed7fbb664d449356cb983cecbca12 | [
"BSD-3-Clause"
] | 64 | 2017-07-05T16:32:55.000Z | 2022-03-23T09:36:03.000Z | # container-service-extension
# Copyright (c) 2020 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
import os
import click
from vcd_cli.utils import stderr
from vcd_cli.utils import stdout
from container_service_extension.client.pks_cluster import PksCluster
from container_service_extension.... | 33.432727 | 122 | 0.636393 | 2,420 | 18,388 | 4.702066 | 0.116529 | 0.025222 | 0.02988 | 0.022849 | 0.68477 | 0.626241 | 0.584586 | 0.55207 | 0.532472 | 0.512347 | 0 | 0.00367 | 0.259028 | 18,388 | 549 | 123 | 33.493625 | 0.831486 | 0.221449 | 0 | 0.710145 | 0 | 0 | 0.23331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031401 | false | 0.036232 | 0.021739 | 0 | 0.05314 | 0.009662 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
138d86e8655610ca5368bb6d0d4aa21c3949a6c1 | 7,372 | py | Python | DXN/na.py | lovemybabyxuan/PythonLearning | 38eedeec72bb80c8497ab70970c429945ccdeb31 | [
"MulanPSL-1.0"
] | null | null | null | DXN/na.py | lovemybabyxuan/PythonLearning | 38eedeec72bb80c8497ab70970c429945ccdeb31 | [
"MulanPSL-1.0"
] | null | null | null | DXN/na.py | lovemybabyxuan/PythonLearning | 38eedeec72bb80c8497ab70970c429945ccdeb31 | [
"MulanPSL-1.0"
] | null | null | null | #print(sum(range (1,101)))
#def bubbleSort(arr):
# for i in range (1,len(arr)):
# for j in range(0,len(arr)-i):
# if arr[j]>arr[j+1]:
# arr[j],arr[j+1]=arr[j+1],arr[j]
# return arr
# a=['a','d','c','d','c','f','d']
# b=[]
# for i in a:
# if i in b:
# pass
# else:... | 15.618644 | 83 | 0.511123 | 1,086 | 7,372 | 3.456722 | 0.259669 | 0.026105 | 0.020778 | 0.023442 | 0.136121 | 0.099094 | 0.084177 | 0 | 0 | 0 | 0 | 0.053228 | 0.281335 | 7,372 | 472 | 84 | 15.618644 | 0.655342 | 0.788524 | 0 | 0 | 0 | 0 | 0.011945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | true | 0 | 0 | 0 | 0.181818 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
139500ac574fabaa37a1130778cf64b012207ce0 | 15,771 | py | Python | src/splash_screen_controller.py | ym-kaoru/splash_screen_controller_demo | c3afd12aecebe4b5717290428c3c530e2cc85b04 | [
"Apache-2.0"
] | null | null | null | src/splash_screen_controller.py | ym-kaoru/splash_screen_controller_demo | c3afd12aecebe4b5717290428c3c530e2cc85b04 | [
"Apache-2.0"
] | null | null | null | src/splash_screen_controller.py | ym-kaoru/splash_screen_controller_demo | c3afd12aecebe4b5717290428c3c530e2cc85b04 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
from assets.stub_android import stub_api_model
from assets.stub_android import stub_android
TAG="Controller"
class SplashScreenController(object):
def __init__(self, activity, model, pending_tasks, timer_tasks):
super(SplashScreenController, self).__init__()
... | 31.045276 | 150 | 0.610551 | 1,346 | 15,771 | 7.002229 | 0.144874 | 0.021645 | 0.050504 | 0.05061 | 0.53305 | 0.514801 | 0.464934 | 0.455172 | 0.43618 | 0.401485 | 0 | 0.005021 | 0.318052 | 15,771 | 507 | 151 | 31.106509 | 0.871316 | 0.033733 | 0 | 0.558739 | 0 | 0 | 0.061863 | 0.005522 | 0 | 0 | 0 | 0.001972 | 0 | 0 | null | null | 0.011461 | 0.011461 | null | null | 0.028653 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1395b9a5b6bf1f9fe1a94363cda6cf76a7d37631 | 1,093 | py | Python | oauth_provider/managers.py | TimSC/django-oauth10a-mod | 3b9786b33cbd3d2ab6de7a667f9737167b349db0 | [
"BSD-3-Clause"
] | null | null | null | oauth_provider/managers.py | TimSC/django-oauth10a-mod | 3b9786b33cbd3d2ab6de7a667f9737167b349db0 | [
"BSD-3-Clause"
] | null | null | null | oauth_provider/managers.py | TimSC/django-oauth10a-mod | 3b9786b33cbd3d2ab6de7a667f9737167b349db0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from django.db import models
from oauth_provider.compat import get_random_string
from oauth_provider.consts import SECRET_SIZE
import uuid
class TokenManager(models.Manager):
def create_token(self, consumer, toke... | 43.72 | 89 | 0.52333 | 98 | 1,093 | 5.581633 | 0.489796 | 0.04936 | 0.058501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00314 | 0.4172 | 1,093 | 24 | 90 | 45.541667 | 0.855573 | 0.066789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1399fc4598855f61c7c256c532341226e4823e94 | 2,986 | py | Python | scripts/ssh_vagrant.py | gavinln/fabric_vm | f3df07d6820d5230ea63cf98b06450256aa38019 | [
"Apache-2.0"
] | 2 | 2015-06-29T22:25:42.000Z | 2016-02-15T12:48:10.000Z | scripts/ssh_vagrant.py | gavinln/mesos-marathon | 9e2cadbabf3470a3ce48312daa25ddf7407be8e2 | [
"Apache-2.0"
] | 1 | 2015-02-09T00:33:04.000Z | 2015-02-09T00:33:04.000Z | scripts/ssh_vagrant.py | gavinln/fabric_vm | f3df07d6820d5230ea63cf98b06450256aa38019 | [
"Apache-2.0"
] | null | null | null | ''' This program connects to the vagrant virtual machine and should be
run from the root directory of the project. It assumes that Git has been
installed and uses the Git ssh executable to connect to the virtual machine
'''
import subprocess
import os
import _winreg
import sys
from collections import namedtuple
def h... | 30.783505 | 84 | 0.618888 | 339 | 2,986 | 5.371681 | 0.451327 | 0.016474 | 0.026359 | 0.023064 | 0.146074 | 0.118616 | 0.083471 | 0.083471 | 0.083471 | 0.083471 | 0 | 0.00363 | 0.261889 | 2,986 | 96 | 85 | 31.104167 | 0.822595 | 0.008707 | 0 | 0.149254 | 0 | 0 | 0.141254 | 0.027477 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014925 | 0.074627 | 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 |
139af63a1807946a82d994e4f647145a05b6bb47 | 1,088 | py | Python | grains/gce.py | damonzheng/salt-contrib | 8d1b18aee5f99e189002c1fc6025403bac4394b5 | [
"Apache-2.0"
] | null | null | null | grains/gce.py | damonzheng/salt-contrib | 8d1b18aee5f99e189002c1fc6025403bac4394b5 | [
"Apache-2.0"
] | null | null | null | grains/gce.py | damonzheng/salt-contrib | 8d1b18aee5f99e189002c1fc6025403bac4394b5 | [
"Apache-2.0"
] | null | null | null | # get info from gce metadata and put it into grains store
# Requires Python 2.6 or higher or the standalone json module
import httplib
import json
def gce_ext_ip():
"""
Fetch the public IP address for this instance from Google's metadata
servers.
"""
h = httplib.HTTPConnection('metadata')
h.re... | 30.222222 | 89 | 0.662684 | 148 | 1,088 | 4.763514 | 0.506757 | 0.017021 | 0.022695 | 0.053901 | 0.377305 | 0.303546 | 0.303546 | 0.303546 | 0.187234 | 0.187234 | 0 | 0.00814 | 0.209559 | 1,088 | 35 | 90 | 31.085714 | 0.811628 | 0.105699 | 0 | 0.315789 | 0 | 0.052632 | 0.33037 | 0.238519 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13a0bfc8182bd988f5f73e4061ffd09e1e4110f7 | 1,040 | py | Python | tqsdk/demo/ta_option.py | contropist/tqsdk-python | 6d483544221045431565228fffbfea24eb914b97 | [
"Apache-2.0"
] | 3,208 | 2018-06-12T10:51:17.000Z | 2022-03-30T14:40:50.000Z | tqsdk/demo/ta_option.py | YountMan/tqsdk-python | b766b45bb82c89a0401a6a84e0e42600fa10e6f4 | [
"Apache-2.0"
] | 297 | 2018-07-23T07:42:43.000Z | 2021-10-13T05:19:05.000Z | tqsdk/demo/ta_option.py | YountMan/tqsdk-python | b766b45bb82c89a0401a6a84e0e42600fa10e6f4 | [
"Apache-2.0"
] | 656 | 2018-06-25T06:27:58.000Z | 2022-03-31T08:01:14.000Z | #!usr/bin/env python3
#-*- coding:utf-8 -*-
from tqsdk import TqApi, TqAuth, tafunc
from tqsdk.ta import *
api = TqApi(auth=TqAuth("信易账户", "账户密码"))
underlying_quote = api.get_quote("SHFE.cu2009")
klines = api.get_kline_serial('SHFE.cu2009', 24 * 60 * 60, 20)
v = tafunc.get_his_volatility(klines, underlying_quote)
pr... | 28.888889 | 86 | 0.683654 | 154 | 1,040 | 4.506494 | 0.402597 | 0.072046 | 0.038905 | 0.04611 | 0.164265 | 0.051873 | 0 | 0 | 0 | 0 | 0 | 0.073639 | 0.099038 | 1,040 | 35 | 87 | 29.714286 | 0.667022 | 0.038462 | 0 | 0 | 0 | 0 | 0.177355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0.434783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13a0d6548fa856a87dc5f7d9d051892be1b186ec | 728 | py | Python | pontoon/sync/formats/base.py | foss4/pontoon | 0503cc78f00e1e9d23c1ca885fe74a627563fc82 | [
"BSD-3-Clause"
] | 1,145 | 2015-05-15T01:08:16.000Z | 2022-03-31T14:23:45.000Z | pontoon/sync/formats/base.py | foss4/pontoon | 0503cc78f00e1e9d23c1ca885fe74a627563fc82 | [
"BSD-3-Clause"
] | 1,365 | 2015-05-04T21:54:18.000Z | 2022-03-30T16:53:49.000Z | pontoon/sync/formats/base.py | foss4/pontoon | 0503cc78f00e1e9d23c1ca885fe74a627563fc82 | [
"BSD-3-Clause"
] | 667 | 2015-05-04T21:33:45.000Z | 2022-03-30T10:25:33.000Z | class ParsedResource:
"""
Parent class for parsed resources as returned by parse.
Each supported format parser should return an instance of a class
that inherits from this class.
"""
@property
def translations(self):
"""
Return a list of VCSTranslation instances or subclass... | 28 | 70 | 0.644231 | 81 | 728 | 5.790123 | 0.641975 | 0.102345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302198 | 728 | 25 | 71 | 29.12 | 0.923228 | 0.600275 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13a37949fd1d16d529427050e919be21a8287d3e | 6,106 | py | Python | sdk/python/pulumi_google_native/genomics/v1alpha2/get_pipeline.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/genomics/v1alpha2/get_pipeline.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/genomics/v1alpha2/get_pipeline.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 38.402516 | 313 | 0.669997 | 678 | 6,106 | 5.814159 | 0.225664 | 0.040589 | 0.032471 | 0.060883 | 0.232623 | 0.147641 | 0.125317 | 0.071537 | 0.033993 | 0.033993 | 0 | 0.000644 | 0.236652 | 6,106 | 158 | 314 | 38.64557 | 0.845098 | 0.182935 | 0 | 0.122642 | 1 | 0 | 0.16768 | 0.041501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.056604 | 0 | 0.283019 | 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 |
13a3e2a9d63b1d006e1bb5a7a7ca0e5a3cf39c1d | 3,575 | py | Python | tests/unit/core/test_loading.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 572 | 2015-04-10T06:15:43.000Z | 2022-03-30T06:40:25.000Z | tests/unit/core/test_loading.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 241 | 2015-10-26T22:23:59.000Z | 2022-03-25T12:30:56.000Z | tests/unit/core/test_loading.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 156 | 2015-10-02T19:32:08.000Z | 2022-03-30T06:40:11.000Z | import pytest
from django.conf import settings
from django.test.utils import override_settings
from machina.core.db.models import get_model
from machina.core.loading import AppNotFoundError, ClassNotFoundError, get_class, get_classes
class TestClassLoadingFunctions(object):
def test_can_load_a_single_class(self)... | 45.253165 | 99 | 0.719441 | 423 | 3,575 | 5.654846 | 0.21513 | 0.076087 | 0.053512 | 0.035117 | 0.487458 | 0.358696 | 0.301839 | 0.218227 | 0.15301 | 0.109532 | 0 | 0 | 0.185455 | 3,575 | 78 | 100 | 45.833333 | 0.821429 | 0.023776 | 0 | 0.178571 | 0 | 0 | 0.182524 | 0.107215 | 0 | 0 | 0 | 0 | 0.160714 | 1 | 0.214286 | false | 0 | 0.160714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13a5cf0ab89090cd1b4c2002fe7570e15f29cf4a | 2,498 | py | Python | scripts/draw_on_images_additive.py | phillipsm/surbar | 0ddcaa2c8f7d82bece608395e17859bb29141e1e | [
"Unlicense",
"MIT"
] | null | null | null | scripts/draw_on_images_additive.py | phillipsm/surbar | 0ddcaa2c8f7d82bece608395e17859bb29141e1e | [
"Unlicense",
"MIT"
] | null | null | null | scripts/draw_on_images_additive.py | phillipsm/surbar | 0ddcaa2c8f7d82bece608395e17859bb29141e1e | [
"Unlicense",
"MIT"
] | null | null | null | import math, json, os, random, glob
from PIL import Image, ImageDraw
# draw censor bars on images, but make them sticky
# that is, they stick, or add, to the subsequent
# frames
colors = [(255,87,136),(212,54,63),(176,255,30),(78,68,232),(18,255,199)]
#colors = [(255,87,222),(0,54,63)]
resize_factor = 2
path_to_sou... | 29.738095 | 85 | 0.678943 | 395 | 2,498 | 4.16962 | 0.364557 | 0.065574 | 0.055859 | 0.021858 | 0.071645 | 0.071645 | 0.071645 | 0.071645 | 0.071645 | 0.071645 | 0 | 0.039729 | 0.173739 | 2,498 | 84 | 86 | 29.738095 | 0.758236 | 0.220977 | 0 | 0.041667 | 0 | 0 | 0.141006 | 0.054432 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13a78a6ee79edb3e672ce7ba96671e829bebbcc5 | 2,154 | py | Python | kitsune/sumo/migrations/0002_initial_data.py | turtleloveshoes/kitsune | 7e5524644eab7f608a44c44c63d242cda3aef7f0 | [
"BSD-3-Clause"
] | 1 | 2015-03-09T05:48:58.000Z | 2015-03-09T05:48:58.000Z | kitsune/sumo/migrations/0002_initial_data.py | rlr/kitsune | 591e996a3a115a7b235cbca19f5dec58fc9b6249 | [
"BSD-3-Clause"
] | 1 | 2021-04-30T20:33:35.000Z | 2021-04-30T20:33:35.000Z | kitsune/sumo/migrations/0002_initial_data.py | rlr/kitsune | 591e996a3a115a7b235cbca19f5dec58fc9b6249 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def create_ratelimit_bypass_perm(apps, schema_editor):
# First we get or create the content type.
ContentType = apps.get_model('contenttypes', 'ContentType')
global_permission_ct, created = ContentTyp... | 32.636364 | 89 | 0.709842 | 252 | 2,154 | 5.801587 | 0.309524 | 0.033516 | 0.057456 | 0.049248 | 0.354993 | 0.329685 | 0.281806 | 0.281806 | 0.281806 | 0.20383 | 0 | 0.011249 | 0.174559 | 2,154 | 65 | 90 | 33.138462 | 0.811024 | 0.056175 | 0 | 0.136364 | 0 | 0 | 0.18827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.136364 | 0.045455 | 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 |
13a816a5e3804d7bdc219b9c52f1adce3d5d82b8 | 4,143 | py | Python | gpvdm_gui/gui/scan_human_labels.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 12 | 2016-09-13T08:58:13.000Z | 2022-01-17T07:04:52.000Z | gpvdm_gui/gui/scan_human_labels.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 3 | 2017-11-11T12:33:02.000Z | 2019-03-08T00:48:08.000Z | gpvdm_gui/gui/scan_human_labels.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 6 | 2019-01-03T06:17:12.000Z | 2022-01-01T15:59:00.000Z | #
# General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall
# model for 1st, 2nd and 3rd generation solar cells.
# Copyright (C) 2008-2022 Roderick C. I. MacKenzie r.c.i.mackenzie at googlemail.com
#
# https://www.gpvdm.com
#
# This program is free software; you can redist... | 21.246154 | 89 | 0.689356 | 631 | 4,143 | 4.361331 | 0.267829 | 0.055596 | 0.05814 | 0.034884 | 0.554142 | 0.544695 | 0.499273 | 0.486919 | 0.486919 | 0.486919 | 0 | 0.007326 | 0.209269 | 4,143 | 194 | 90 | 21.35567 | 0.832723 | 0.250784 | 0 | 0.777778 | 0 | 0 | 0.025432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.022222 | 0.037037 | 0 | 0.162963 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13aafdeff851817e632ddc3da652b34987eebadd | 1,835 | py | Python | recipe_scrapers/bettycrocker.py | chrisbubernak/recipe-scrapers | 1617a542f6e728552886aebd29f14e97feeb8f5c | [
"MIT"
] | 2 | 2020-07-28T15:12:10.000Z | 2020-07-30T18:10:33.000Z | recipe_scrapers/bettycrocker.py | chrisbubernak/recipe-scrapers | 1617a542f6e728552886aebd29f14e97feeb8f5c | [
"MIT"
] | null | null | null | recipe_scrapers/bettycrocker.py | chrisbubernak/recipe-scrapers | 1617a542f6e728552886aebd29f14e97feeb8f5c | [
"MIT"
] | null | null | null | # BettyCrocker.com scraper
# Written by G.D. Wallters
# Freely released the code to recipe_scraper group
# 18 January, 2020
# =======================================================
from ._abstract import AbstractScraper
from ._utils import normalize_string
class BettyCrocker(AbstractScraper):
@classmethod
de... | 29.126984 | 83 | 0.515531 | 162 | 1,835 | 5.783951 | 0.475309 | 0.042689 | 0.059765 | 0.085379 | 0.106724 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005738 | 0.33515 | 1,835 | 62 | 84 | 29.596774 | 0.762295 | 0.093188 | 0 | 0.085106 | 0 | 0 | 0.130277 | 0.030157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0 | 0.042553 | 0.106383 | 0.425532 | 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 |
13ab3a284d81f5bcb0e9ad4892f114e3c6e5de4d | 457 | py | Python | doc/examples/selector.py | andrewbest-tri/py_trees | 8d08e625878ea801a09083f9ec8c3b47d7c3d8d1 | [
"BSD-3-Clause"
] | 201 | 2019-02-27T08:42:11.000Z | 2022-03-19T10:09:04.000Z | doc/examples/selector.py | andrewbest-tri/py_trees | 8d08e625878ea801a09083f9ec8c3b47d7c3d8d1 | [
"BSD-3-Clause"
] | 119 | 2019-02-25T10:21:29.000Z | 2022-03-08T18:04:05.000Z | doc/examples/selector.py | andrewbest-tri/py_trees | 8d08e625878ea801a09083f9ec8c3b47d7c3d8d1 | [
"BSD-3-Clause"
] | 59 | 2019-03-20T08:31:11.000Z | 2022-03-03T08:22:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import py_trees
if __name__ == '__main__':
root = py_trees.composites.Selector("Selector")
high = py_trees.behaviours.Success(name="High Priority")
med = py_trees.behaviours.Success(name="Med Priority")
low = py_trees.behaviours.Success(name="Low Priority... | 35.153846 | 93 | 0.722101 | 64 | 457 | 4.828125 | 0.53125 | 0.158576 | 0.165049 | 0.23301 | 0.271845 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.129103 | 457 | 12 | 94 | 38.083333 | 0.771357 | 0.094092 | 0 | 0 | 0 | 0 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
13b6b93644c31460c00eee1effd92f524144d06a | 3,327 | py | Python | beamlines/fzp/fzp_beamline.py | Lexelius/contrast | 175a289e33775bc5b7a6a2a65c6b13761c618272 | [
"MIT"
] | 3 | 2021-05-20T07:49:53.000Z | 2021-07-12T11:27:39.000Z | beamlines/fzp/fzp_beamline.py | alexbjorling/contrast | ef7d6d8c51fb922e89c1c46db734e3c09f88a9fc | [
"MIT"
] | 1 | 2021-04-20T10:09:17.000Z | 2021-04-20T10:09:17.000Z | beamlines/fzp/fzp_beamline.py | alexbjorling/contrast | ef7d6d8c51fb922e89c1c46db734e3c09f88a9fc | [
"MIT"
] | 2 | 2021-08-03T15:13:06.000Z | 2021-09-02T09:47:37.000Z | """
Sets up a some actual nanomax hardware.
"""
# need this main guard here because Process.start() (so our recorders)
# import __main__, and we don't want the subprocess to start new sub-
# processes etc.
if __name__=='__main__':
import contrast
from contrast.environment import env, runCommand
from contr... | 40.573171 | 118 | 0.713255 | 436 | 3,327 | 5.362385 | 0.389908 | 0.061591 | 0.124038 | 0.132592 | 0.188195 | 0.188195 | 0.188195 | 0.188195 | 0 | 0 | 0 | 0.039517 | 0.178539 | 3,327 | 81 | 119 | 41.074074 | 0.815953 | 0.229336 | 0 | 0.044444 | 0 | 0 | 0.130126 | 0.022476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.4 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
13c5c7c89b2fec721fd7b8313b430922a352bef6 | 1,849 | py | Python | ghostwriter/rolodex/admin.py | wwong99/Ghostwriter | 110d97dad9ab3161149dc8d96d999745ecb94710 | [
"BSD-3-Clause"
] | 1 | 2021-09-09T17:24:31.000Z | 2021-09-09T17:24:31.000Z | ghostwriter/rolodex/admin.py | C-Sto/Ghostwriter | 625352e594c6d7f6378487a0883bd79c719e0dd6 | [
"BSD-3-Clause"
] | null | null | null | ghostwriter/rolodex/admin.py | C-Sto/Ghostwriter | 625352e594c6d7f6378487a0883bd79c719e0dd6 | [
"BSD-3-Clause"
] | 1 | 2021-04-20T12:46:37.000Z | 2021-04-20T12:46:37.000Z | """This contains customizations for the models in the Django admin panel."""
from django.contrib import admin
from .models import (Client, Project, ProjectType, ClientContact,
ProjectAssignment, ProjectRole, ClientNote, ProjectNote)
# Define the admin classes and register models
@admin.register(Client)
class Cli... | 23.705128 | 76 | 0.605733 | 167 | 1,849 | 6.60479 | 0.353293 | 0.094288 | 0.086129 | 0.087035 | 0.293744 | 0.074343 | 0.074343 | 0 | 0 | 0 | 0 | 0 | 0.244456 | 1,849 | 77 | 77 | 24.012987 | 0.789549 | 0.062737 | 0 | 0.431034 | 0 | 0 | 0.167921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086207 | 0.034483 | 0 | 0.327586 | 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 |
13c95b3b090b526d829565086e348c4a55289a82 | 1,307 | py | Python | htmlgen/htmlgen.py | antavelos/htmlgen | a5af23468a8a770417c44684bd5cdaba5386d618 | [
"BSD-3-Clause"
] | null | null | null | htmlgen/htmlgen.py | antavelos/htmlgen | a5af23468a8a770417c44684bd5cdaba5386d618 | [
"BSD-3-Clause"
] | null | null | null | htmlgen/htmlgen.py | antavelos/htmlgen | a5af23468a8a770417c44684bd5cdaba5386d618 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import cgi
from config import ALLOWED_TAGS
class Element(object):
def __init__(self, tag, klass=None, eid=None, attrs=None, escape=True):
assert type(tag) == str, "tag should be a string"
assert tag in ALLOWED_TAGS, "Invalid tag: %s" % tag
if attrs:
ass... | 31.119048 | 80 | 0.558531 | 168 | 1,307 | 4.196429 | 0.309524 | 0.039716 | 0.038298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001104 | 0.306809 | 1,307 | 41 | 81 | 31.878049 | 0.777042 | 0.016067 | 0 | 0 | 0 | 0 | 0.101246 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.193548 | false | 0 | 0.064516 | 0.129032 | 0.451613 | 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 |
13cccbd5e6e27e511ef70af70ab67ba0e48acecc | 643 | py | Python | 004_largest_palindrome_product.py | fbcom/project-euler | 3c2194f797d54a0cc04031cd0be153f6a6f849ad | [
"MIT"
] | null | null | null | 004_largest_palindrome_product.py | fbcom/project-euler | 3c2194f797d54a0cc04031cd0be153f6a6f849ad | [
"MIT"
] | null | null | null | 004_largest_palindrome_product.py | fbcom/project-euler | 3c2194f797d54a0cc04031cd0be153f6a6f849ad | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# A Solution to "Largest Palindrome Product" – Project Euler Problem No. 4
# by Florian Buetow
#
# Sourcecode: https://github.com/fbcom/project-euler
# Problem statement: https://projecteuler.net/problem=4
#
def findpalin(digits):
result = []
from_n = 10**(digit... | 24.730769 | 74 | 0.586314 | 95 | 643 | 3.926316 | 0.589474 | 0.024129 | 0.101877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023305 | 0.265941 | 643 | 25 | 75 | 25.72 | 0.764831 | 0.424572 | 0 | 0 | 0 | 0 | 0.02507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13d016460e38d4b7147b93f9c1c8b4373026e39f | 4,479 | py | Python | helper-scripts/dpi/maketable.py | crucio-io/PROX | 72031d219a735030a60acf3382a86739c640c2e0 | [
"Intel",
"Unlicense"
] | 7 | 2016-08-23T18:02:27.000Z | 2021-08-23T10:35:57.000Z | helper-scripts/dpi/maketable.py | crucio-io/PROX | 72031d219a735030a60acf3382a86739c640c2e0 | [
"Intel",
"Unlicense"
] | 1 | 2017-11-10T06:43:30.000Z | 2017-11-14T14:43:38.000Z | helper-scripts/dpi/maketable.py | nvf-crucio/PROX | 72031d219a735030a60acf3382a86739c640c2e0 | [
"Intel",
"Unlicense"
] | 10 | 2016-08-23T17:50:16.000Z | 2019-05-26T05:05:16.000Z | #!/bin/env python
##
# Copyright(c) 2010-2015 Intel Corporation.
# Copyright(c) 2016-2018 Viosoft Corporation.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source ... | 28.528662 | 71 | 0.671578 | 549 | 4,479 | 5.457195 | 0.375228 | 0.006676 | 0.008011 | 0.015354 | 0.080774 | 0.064753 | 0.064753 | 0.045394 | 0.045394 | 0.045394 | 0 | 0.007916 | 0.210315 | 4,479 | 156 | 72 | 28.711538 | 0.839129 | 0.350525 | 0 | 0.06383 | 0 | 0 | 0.060522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053191 | null | null | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13d77b249c7a3a13fce90e0a24ee59cee8765493 | 8,174 | py | Python | views/window_config.py | life-game-player/Hephaestus | 0c695193d8d2d8c70061e2e26ec8c718544342c6 | [
"MIT"
] | null | null | null | views/window_config.py | life-game-player/Hephaestus | 0c695193d8d2d8c70061e2e26ec8c718544342c6 | [
"MIT"
] | null | null | null | views/window_config.py | life-game-player/Hephaestus | 0c695193d8d2d8c70061e2e26ec8c718544342c6 | [
"MIT"
] | null | null | null | from PyQt5 import QtWidgets
from PyQt5 import QtCore
from views.window_dragable import WindowDragable
from qss.qss_setter import QSSSetter
class WindowConfig(WindowDragable):
def __init__(self, main_window):
super().__init__()
self.main_window = main_window
# 设置窗口无边框
self.setWin... | 37.495413 | 74 | 0.639344 | 913 | 8,174 | 5.429354 | 0.171961 | 0.065362 | 0.053661 | 0.02905 | 0.325802 | 0.213234 | 0.141013 | 0.113173 | 0.090982 | 0.074238 | 0 | 0.015268 | 0.270859 | 8,174 | 217 | 75 | 37.668203 | 0.816443 | 0.021042 | 0 | 0.105556 | 0 | 0 | 0.022915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.088889 | 0.022222 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
13d842e3b0d94ad23110846c12e93455a4071dd3 | 2,351 | py | Python | examples/events.py | oksumoron/locust | fddfefe7ef1082bc5284cd2dd8477221484dfb0c | [
"MIT"
] | 2 | 2020-10-06T04:03:19.000Z | 2020-11-17T07:05:04.000Z | examples/events.py | oksumoron/locust | fddfefe7ef1082bc5284cd2dd8477221484dfb0c | [
"MIT"
] | 1 | 2021-01-16T17:56:48.000Z | 2021-01-16T17:56:48.000Z | examples/events.py | oksumoron/locust | fddfefe7ef1082bc5284cd2dd8477221484dfb0c | [
"MIT"
] | 1 | 2019-10-18T20:36:13.000Z | 2019-10-18T20:36:13.000Z | # -*- coding: utf-8 -*-
"""
This is an example of a locustfile that uses Locust's built in event hooks to
track the sum of the content-length header in all successful HTTP responses
"""
from locust import HttpUser, TaskSet, task, web, between
from locust import events
class MyTaskSet(TaskSet):
@task(2)
def ... | 30.532468 | 97 | 0.687367 | 350 | 2,351 | 4.537143 | 0.365714 | 0.122796 | 0.06801 | 0.030227 | 0.120277 | 0.0466 | 0.0466 | 0.0466 | 0.0466 | 0 | 0 | 0.009259 | 0.219056 | 2,351 | 76 | 98 | 30.934211 | 0.855664 | 0.449596 | 0 | 0 | 0 | 0 | 0.168954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.066667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13db54aff3ceaba8923e51cff987145738bfa564 | 1,114 | py | Python | ABC151/D.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | ABC151/D.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | ABC151/D.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | def main():
h,w = map(int,input().split())
maze = []
for _ in range(h):
s = list(input())
maze.append(s)
ans = 0
dx = [ 1, 0,-1, 0]
dy = [ 0, 1, 0,-1]
key = 0
for sx in range(h):
for sy in range(w):
if maze[sx][sy] == '#':
continue... | 29.315789 | 113 | 0.315978 | 145 | 1,114 | 2.351724 | 0.282759 | 0.123167 | 0.087977 | 0.052786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042065 | 0.530521 | 1,114 | 38 | 114 | 29.315789 | 0.609943 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.028571 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13e5510c45a8cccc1a95da8d072d1756eb8c2a5e | 200 | py | Python | POO/POO_39/main.py | miguelsrrobo/JS-Public_ | 1f4f661fdf2d3c157a21f0cc91f125f88f066759 | [
"MIT"
] | null | null | null | POO/POO_39/main.py | miguelsrrobo/JS-Public_ | 1f4f661fdf2d3c157a21f0cc91f125f88f066759 | [
"MIT"
] | null | null | null | POO/POO_39/main.py | miguelsrrobo/JS-Public_ | 1f4f661fdf2d3c157a21f0cc91f125f88f066759 | [
"MIT"
] | null | null | null | class A:
vc = 123
def __init(self):
self.vc = 321
a1 = A()
a2 = A()
'''
a1.vc = 321
print(a1.__dict__)
print(a2.__dict__)
print(A.__dict__)
'''
print(a1.vc)
print(a2.vc)
print(A.vc)
| 11.111111 | 21 | 0.58 | 35 | 200 | 2.914286 | 0.342857 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103226 | 0.225 | 200 | 17 | 22 | 11.764706 | 0.554839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 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 |
13e63cdc7a71d416befb1078d46b03ea9d2b0140 | 891 | py | Python | madox_ws/src/ros2_rtimulib/ros2_rtimulib/__init__.py | Cap-n-Proud/scrap | 25109e96e4a3c30ca525cb65ffc02e28e6e05b94 | [
"Apache-2.0"
] | 1 | 2021-06-06T12:32:43.000Z | 2021-06-06T12:32:43.000Z | madox_ws/src/ros2_rtimulib/ros2_rtimulib/__init__.py | Cap-n-Proud/scrap | 25109e96e4a3c30ca525cb65ffc02e28e6e05b94 | [
"Apache-2.0"
] | null | null | null | madox_ws/src/ros2_rtimulib/ros2_rtimulib/__init__.py | Cap-n-Proud/scrap | 25109e96e4a3c30ca525cb65ffc02e28e6e05b94 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import rclpy
from rclpy.node import Node
from rclpy.parameter import Parameter
def better_get_parameter_or(self: Node,
name: str,
alternative_value: Optional[Parameter]=None) -> Parameter:
"""fix the method that is usually on a Node so that it always returns a parameter Type
... | 29.7 | 90 | 0.675645 | 109 | 891 | 5.431193 | 0.40367 | 0.135135 | 0.081081 | 0.111486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243547 | 891 | 29 | 91 | 30.724138 | 0.878338 | 0.395062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
13eb508dce5f36273507caa4c714e647d3591291 | 1,726 | py | Python | blobxfer/__init__.py | amishra-dev/blobxfer | ce226392f0ede609a0a82d7b9c0e3a959e1e089f | [
"MIT"
] | 147 | 2016-07-27T06:24:38.000Z | 2022-03-12T05:43:30.000Z | blobxfer/__init__.py | amishra-dev/blobxfer | ce226392f0ede609a0a82d7b9c0e3a959e1e089f | [
"MIT"
] | 127 | 2016-09-01T08:06:51.000Z | 2022-02-18T02:52:42.000Z | blobxfer/__init__.py | amishra-dev/blobxfer | ce226392f0ede609a0a82d7b9c0e3a959e1e089f | [
"MIT"
] | 47 | 2016-07-25T16:19:01.000Z | 2022-01-25T17:59:49.000Z | # Copyright (c) Microsoft Corporation
#
# All rights reserved.
#
# MIT License
#
# 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... | 37.521739 | 77 | 0.743917 | 248 | 1,726 | 5.104839 | 0.532258 | 0.06951 | 0.035545 | 0.042654 | 0.075829 | 0.075829 | 0.075829 | 0.075829 | 0 | 0 | 0 | 0.002853 | 0.187717 | 1,726 | 45 | 78 | 38.355556 | 0.900143 | 0.687717 | 0 | 0 | 0 | 0 | 0.037328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 |
13f4670e09ff547dc904d79ad58ba066eeb9bbb7 | 2,008 | py | Python | aggregables/captures/matplotlib/line.py | nevesnunes/aggregables | 8fb7ea1f97ceeb16c719312d0075294b19d098b3 | [
"MIT"
] | null | null | null | aggregables/captures/matplotlib/line.py | nevesnunes/aggregables | 8fb7ea1f97ceeb16c719312d0075294b19d098b3 | [
"MIT"
] | null | null | null | aggregables/captures/matplotlib/line.py | nevesnunes/aggregables | 8fb7ea1f97ceeb16c719312d0075294b19d098b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import numpy as np
import io
import re
import sys
@ticker.FuncFormatter
def hex_major_formatter(x, pos):
return hex(int(x))
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_... | 28.685714 | 87 | 0.606574 | 245 | 2,008 | 4.82449 | 0.489796 | 0.030457 | 0.047377 | 0.045685 | 0.186125 | 0.162437 | 0.162437 | 0.120135 | 0.120135 | 0.120135 | 0 | 0.010135 | 0.262948 | 2,008 | 69 | 88 | 29.101449 | 0.788514 | 0.059761 | 0 | 0.305085 | 0 | 0 | 0.075902 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.016949 | false | 0 | 0.118644 | 0.016949 | 0.152542 | 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 |
b9127a1b99823ea33a61dc23f8f4b3800a0a6295 | 4,717 | py | Python | systemvm/patches/debian/config/opt/cloud/bin/vmdata.py | serbaut/cloudstack | 9513053f4256375e892df27d0c26644d1fe41725 | [
"Apache-2.0"
] | 1 | 2021-04-24T08:16:40.000Z | 2021-04-24T08:16:40.000Z | systemvm/patches/debian/config/opt/cloud/bin/vmdata.py | serbaut/cloudstack | 9513053f4256375e892df27d0c26644d1fe41725 | [
"Apache-2.0"
] | 1 | 2022-02-01T01:08:02.000Z | 2022-02-01T01:08:02.000Z | systemvm/patches/debian/config/opt/cloud/bin/vmdata.py | serbaut/cloudstack | 9513053f4256375e892df27d0c26644d1fe41725 | [
"Apache-2.0"
] | 2 | 2017-07-07T21:45:38.000Z | 2019-10-12T06:45:11.000Z | #!/usr/bin/python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Licens... | 27.911243 | 96 | 0.571974 | 595 | 4,717 | 4.505882 | 0.309244 | 0.020888 | 0.026856 | 0.023872 | 0.261097 | 0.166356 | 0.149944 | 0.133532 | 0.112645 | 0.112645 | 0 | 0.019118 | 0.312487 | 4,717 | 168 | 97 | 28.077381 | 0.807586 | 0.200975 | 0 | 0.372881 | 0 | 0 | 0.116062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050847 | null | null | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b913ece03dfa7113bafcb209afba5d3405f4c277 | 2,049 | py | Python | fluid/text_matching_on_quora/models/match_layers.py | phlrain/models | 59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea | [
"Apache-2.0"
] | 1 | 2018-11-23T10:29:49.000Z | 2018-11-23T10:29:49.000Z | fluid/PaddleNLP/text_matching_on_quora/models/match_layers.py | ThinkPeace/models | 5d25e00c94943e50e64780a244136f88f13c0a88 | [
"Apache-2.0"
] | null | null | null | fluid/PaddleNLP/text_matching_on_quora/models/match_layers.py | ThinkPeace/models | 5d25e00c94943e50e64780a244136f88f13c0a88 | [
"Apache-2.0"
] | 2 | 2018-06-14T13:59:36.000Z | 2018-11-14T12:34:47.000Z | # Copyright (c) 2016 PaddlePaddle Authors. 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 applic... | 34.15 | 145 | 0.690093 | 270 | 2,049 | 5.1 | 0.466667 | 0.071895 | 0.063907 | 0.069717 | 0.191721 | 0.16122 | 0.16122 | 0.05374 | 0 | 0 | 0 | 0.025016 | 0.219619 | 2,049 | 59 | 146 | 34.728814 | 0.836148 | 0.408004 | 0 | 0.086957 | 0 | 0 | 0.048908 | 0.048908 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.304348 | 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 |
b915672c7ab8e9f04c842c3509df5d3b26a950c7 | 1,825 | py | Python | code/vectorize.py | tushar-nitave/fake-new-classification | 67569131b93242483d6749983638e4c174eaa33e | [
"MIT"
] | null | null | null | code/vectorize.py | tushar-nitave/fake-new-classification | 67569131b93242483d6749983638e4c174eaa33e | [
"MIT"
] | null | null | null | code/vectorize.py | tushar-nitave/fake-new-classification | 67569131b93242483d6749983638e4c174eaa33e | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import tensorflow
import tensorflow_hub as hub
from tensorflow.keras.layers import Conv1D
from tensorflow.keras.layers import LSTM, Bidirectional
from tensorflow.keras.layers import Dense, Flatten, MaxPooling1D, Input, Activation
from tensorflow.ke... | 34.433962 | 95 | 0.723288 | 259 | 1,825 | 5.034749 | 0.312741 | 0.064417 | 0.087423 | 0.076687 | 0.346626 | 0.203988 | 0.157975 | 0.157975 | 0.157975 | 0.102761 | 0 | 0.050196 | 0.159452 | 1,825 | 52 | 96 | 35.096154 | 0.79987 | 0 | 0 | 0.195122 | 0 | 0 | 0.060822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.365854 | 0 | 0.365854 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b918fc4d5e19ee3a649003822adbc3348be03613 | 3,467 | py | Python | plotting/plot_website_ranking_results/plot_prec.py | kienpt/site_discovery_public | 61440a8400bcc018c4dd9f8d2a810971ef548d8e | [
"Apache-1.1"
] | 4 | 2020-10-12T14:26:36.000Z | 2021-08-19T17:26:00.000Z | plotting/plot_website_ranking_results/plot_prec.py | kienpt/site_discovery_public | 61440a8400bcc018c4dd9f8d2a810971ef548d8e | [
"Apache-1.1"
] | null | null | null | plotting/plot_website_ranking_results/plot_prec.py | kienpt/site_discovery_public | 61440a8400bcc018c4dd9f8d2a810971ef548d8e | [
"Apache-1.1"
] | null | null | null | import matplotlib.pyplot as plt
import argparse
import numpy as np
def get_precision_values(input_file):
prec_values = []
means = []
medians = []
methods = []
with open(input_file) as lines:
for line in lines:
if "RESULTS_AGGREGATION" in line:
tokens = line.strip... | 33.019048 | 99 | 0.639746 | 507 | 3,467 | 4.218935 | 0.207101 | 0.02805 | 0.042076 | 0.043011 | 0.665732 | 0.619448 | 0.602151 | 0.602151 | 0.602151 | 0.495091 | 0 | 0.020879 | 0.212576 | 3,467 | 104 | 100 | 33.336538 | 0.762637 | 0.014133 | 0 | 0.418605 | 0 | 0 | 0.081453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034884 | null | null | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b91d3bc4d78f59fe160baafd51a513315558fe47 | 2,500 | py | Python | app/cruds/Servidor.py | Orion-Hunter/SaladoEmpreendedor | 358b32886959f406d656c7bccec48575d42b9e0e | [
"MIT"
] | null | null | null | app/cruds/Servidor.py | Orion-Hunter/SaladoEmpreendedor | 358b32886959f406d656c7bccec48575d42b9e0e | [
"MIT"
] | null | null | null | app/cruds/Servidor.py | Orion-Hunter/SaladoEmpreendedor | 358b32886959f406d656c7bccec48575d42b9e0e | [
"MIT"
] | null | null | null | '''
Operações de escrita e leitura no banco de dados referente à entidade Servidor
'''
from fastapi import HTTPException
from sqlalchemy.orm import Session
from sqlalchemy.exc import IntegrityError
from models import model
from schemas import schema
import bcrypt
def login(db: Session, matricula: str, senha: str):
... | 41.666667 | 145 | 0.672 | 299 | 2,500 | 5.528428 | 0.347826 | 0.072595 | 0.043557 | 0.036298 | 0.343013 | 0.252874 | 0.186328 | 0.186328 | 0.186328 | 0.186328 | 0 | 0.006263 | 0.2336 | 2,500 | 60 | 146 | 41.666667 | 0.856472 | 0.092 | 0 | 0.25 | 0 | 0 | 0.092519 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.136364 | false | 0.045455 | 0.136364 | 0.045455 | 0.454545 | 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 |
b91f2f218e0256d66e985f5aba8b4396eff439ba | 3,630 | py | Python | scibot/cli.py | bandrow/scibot | 2ce92d83bbf928f8c5d29bf90768d48ba1d4dd90 | [
"Apache-2.0"
] | null | null | null | scibot/cli.py | bandrow/scibot | 2ce92d83bbf928f8c5d29bf90768d48ba1d4dd90 | [
"Apache-2.0"
] | null | null | null | scibot/cli.py | bandrow/scibot | 2ce92d83bbf928f8c5d29bf90768d48ba1d4dd90 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3.6
"""SciBot command line utilities
Usage:
scibot db-init [options] [<database>]
scibot api-sync [options] [<database>]
scibot ws-sync [options] [<database>]
scibot debug [options] [<database>]
Options:
-h --help show this
-d --debug enable echo an... | 36.666667 | 91 | 0.598072 | 456 | 3,630 | 4.638158 | 0.344298 | 0.01513 | 0.022695 | 0.029787 | 0.310638 | 0.25721 | 0.244917 | 0.183924 | 0.147045 | 0.122931 | 0 | 0.008222 | 0.296419 | 3,630 | 98 | 92 | 37.040816 | 0.81989 | 0.285124 | 0 | 0.175439 | 0 | 0 | 0.050097 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.017544 | false | 0 | 0.175439 | 0 | 0.210526 | 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 |
b9227770effea6c3d51eb2326ebf6cb03d4dc850 | 2,012 | py | Python | know_your_ip/examples/example.py | themains/know_your_ip | c4f94ef49c037a80740e4880418b1ba8ce4be5b2 | [
"MIT"
] | 16 | 2018-01-24T01:14:20.000Z | 2021-06-19T14:26:09.000Z | know_your_ip/examples/example.py | themains/know_your_ip | c4f94ef49c037a80740e4880418b1ba8ce4be5b2 | [
"MIT"
] | 4 | 2018-05-28T20:18:47.000Z | 2020-10-30T03:52:25.000Z | know_your_ip/examples/example.py | themains/know_your_ip | c4f94ef49c037a80740e4880418b1ba8ce4be5b2 | [
"MIT"
] | 1 | 2019-08-08T10:44:19.000Z | 2019-08-08T10:44:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pprint import pprint
from know_your_ip import (load_config,
maxmind_geocode_ip,
geonames_timezone,
tzwhere_timezone,
ipvoid_scan,
abuseipd... | 23.952381 | 64 | 0.540755 | 205 | 2,012 | 5.141463 | 0.273171 | 0.125237 | 0.102467 | 0.1537 | 0.136622 | 0.056926 | 0 | 0 | 0 | 0 | 0 | 0.008346 | 0.34493 | 2,012 | 83 | 65 | 24.240964 | 0.791351 | 0.143638 | 0 | 0.211538 | 0 | 0 | 0.123609 | 0.029877 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.442308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9234daf16c49709e042ede8fa7892368995b1ec | 1,687 | py | Python | app/auth/views.py | audreynjiraini/personal-blog | 0dd2bbc8da56eedca77ee5c20e6434eac6ae7604 | [
"MIT"
] | null | null | null | app/auth/views.py | audreynjiraini/personal-blog | 0dd2bbc8da56eedca77ee5c20e6434eac6ae7604 | [
"MIT"
] | null | null | null | app/auth/views.py | audreynjiraini/personal-blog | 0dd2bbc8da56eedca77ee5c20e6434eac6ae7604 | [
"MIT"
] | 1 | 2019-09-24T08:45:18.000Z | 2019-09-24T08:45:18.000Z | from flask import Flask, render_template, redirect, url_for, flash, request
from .forms import RegistrationForm, LoginForm
from flask_sqlalchemy import SQLAlchemy
from flask import Blueprint
from flask_login import LoginManager, login_required, login_user, logout_user
from . import auth
from ..models import User
from .... | 33.078431 | 105 | 0.70243 | 219 | 1,687 | 5.292237 | 0.365297 | 0.034513 | 0.036238 | 0.029336 | 0.051769 | 0.051769 | 0.051769 | 0 | 0 | 0 | 0 | 0 | 0.17783 | 1,687 | 50 | 106 | 33.74 | 0.835616 | 0.046236 | 0 | 0.055556 | 0 | 0 | 0.11201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.111111 | 0.277778 | 0 | 0.5 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b923995d4eb9002f2624c071d02defc1dde7e984 | 22,652 | py | Python | optiburb.py | jgc234/optiburb | 39b2f8d7b654e83feb3adec6137d3e12b8d72fcd | [
"MIT"
] | 31 | 2020-07-28T12:11:26.000Z | 2021-12-22T09:58:22.000Z | optiburb.py | jgc234/optiburb | 39b2f8d7b654e83feb3adec6137d3e12b8d72fcd | [
"MIT"
] | 12 | 2020-07-29T15:08:40.000Z | 2021-08-30T11:04:05.000Z | optiburb.py | jgc234/optiburb | 39b2f8d7b654e83feb3adec6137d3e12b8d72fcd | [
"MIT"
] | 6 | 2020-07-28T16:06:31.000Z | 2021-08-16T09:15:37.000Z | #!/usr/bin/env python3.9
# this is a undirected graph version.. one-way streets and multi-edges
# are reduced, which means:
# WARNING - the resulting paths are not guaranteed to be rideable or
# safe. You must confirm the path yourself.
import math
import time
import os
import sys
import re
import shapely
import lo... | 29.078306 | 233 | 0.584452 | 2,849 | 22,652 | 4.515971 | 0.210249 | 0.01982 | 0.017177 | 0.005596 | 0.194311 | 0.149775 | 0.127701 | 0.100886 | 0.078657 | 0.056894 | 0 | 0.005083 | 0.296442 | 22,652 | 778 | 234 | 29.115681 | 0.802159 | 0.117164 | 0 | 0.26253 | 0 | 0.011933 | 0.190872 | 0.030862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059666 | false | 0.088305 | 0.038186 | 0.002387 | 0.167064 | 0.00716 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b92460de406db7b3e92df36e6832421c486313c1 | 2,028 | py | Python | computing_scripts/avg_est_dfs_score.py | damansc/NBA_DFS | 493ca62e47311b05dc0dba2739823e7c9f785671 | [
"MIT"
] | 2 | 2020-04-29T00:02:45.000Z | 2021-10-05T07:32:02.000Z | computing_scripts/avg_est_dfs_score.py | damansc/NBA_DFS | 493ca62e47311b05dc0dba2739823e7c9f785671 | [
"MIT"
] | null | null | null | computing_scripts/avg_est_dfs_score.py | damansc/NBA_DFS | 493ca62e47311b05dc0dba2739823e7c9f785671 | [
"MIT"
] | null | null | null | import pandas as pd
from bs4 import BeautifulSoup
import requests
import os
# scrapes and saves average player stats when imported.
from scraping_scripts.player_per_game_scrape import player_per_game_std
def avg_dfs_score():
# read in data that was scraped via import statment
df = pd.read_csv('scraped_da... | 35.578947 | 97 | 0.56213 | 265 | 2,028 | 4.158491 | 0.430189 | 0.058076 | 0.049909 | 0.029038 | 0.030853 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023758 | 0.315089 | 2,028 | 57 | 98 | 35.578947 | 0.769618 | 0.328895 | 0 | 0 | 0 | 0 | 0.187174 | 0.063386 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.241379 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b926610d61cc1fb371333946887dc3d62b0e8b34 | 428 | py | Python | __manifest__.py | hedra-digital/payment_iugu | 88fbd8efe7659ef5eb64f3cac6ab112371d94850 | [
"MIT"
] | 1 | 2018-07-26T01:18:34.000Z | 2018-07-26T01:18:34.000Z | __manifest__.py | hedra-digital/payment_iugu | 88fbd8efe7659ef5eb64f3cac6ab112371d94850 | [
"MIT"
] | null | null | null | __manifest__.py | hedra-digital/payment_iugu | 88fbd8efe7659ef5eb64f3cac6ab112371d94850 | [
"MIT"
] | 1 | 2019-11-19T21:48:32.000Z | 2019-11-19T21:48:32.000Z | # -*- coding: utf-8 -*-
{
'name': "Método de Pagamento Iugu",
'summary': "Payment Acquirer: Iugu Implementation",
'description': """Iugu payment gateway for Odoo.""",
'author': "Romaque Máximo",
'category': 'Accounting',
'version': '11.0',
'depends': ['account', 'payment'],
'data': [
... | 25.176471 | 56 | 0.553738 | 42 | 428 | 5.619048 | 0.785714 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.238318 | 428 | 16 | 57 | 26.75 | 0.711656 | 0.049065 | 0 | 0 | 0 | 0 | 0.585185 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9270e996a994afa3f30adfead3aa474b0c69906 | 4,777 | py | Python | market/core.py | dpsommer/market | 36df4527fcf4f0ef99207c8b8e63172429cfd226 | [
"MIT"
] | null | null | null | market/core.py | dpsommer/market | 36df4527fcf4f0ef99207c8b8e63172429cfd226 | [
"MIT"
] | null | null | null | market/core.py | dpsommer/market | 36df4527fcf4f0ef99207c8b8e63172429cfd226 | [
"MIT"
] | null | null | null | import io
import os
import pickle
# TODO: pickle random
# TODO: switch to JSON?
# TODO: it might be better to simply pickle the simulation state itself?
class Data(object):
simulation_state = {}
def __init__(self):
raise TypeError('Non-instantiable type')
@staticmethod
def save():
... | 30.234177 | 111 | 0.638895 | 587 | 4,777 | 4.892675 | 0.303237 | 0.094011 | 0.099234 | 0.043872 | 0.233983 | 0.162953 | 0.139276 | 0.115599 | 0.06337 | 0.034123 | 0 | 0.000287 | 0.269625 | 4,777 | 157 | 112 | 30.426752 | 0.822872 | 0.208918 | 0 | 0.25 | 0 | 0 | 0.028085 | 0 | 0 | 0 | 0 | 0.006369 | 0 | 1 | 0.229167 | false | 0.020833 | 0.03125 | 0.072917 | 0.458333 | 0.010417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b92c9b97ecb90c8859f75d45d0de16a5a2320f8a | 624 | py | Python | config/urls.py | mnemchinov/joint-expenses | 4a1380e21fbaa7debe86819f2f7350533a19231e | [
"MIT"
] | null | null | null | config/urls.py | mnemchinov/joint-expenses | 4a1380e21fbaa7debe86819f2f7350533a19231e | [
"MIT"
] | null | null | null | config/urls.py | mnemchinov/joint-expenses | 4a1380e21fbaa7debe86819f2f7350533a19231e | [
"MIT"
] | null | null | null | import re
from django.conf import settings
from django.contrib import admin
from django.urls import re_path
from django.views.generic import RedirectView
from django.views.static import serve
admin.site.site_title = 'Заказы на кофе'
admin.site.site_header = 'Кофе в офис'
admin.site.index_title = 'Заказы на кофе в оф... | 24 | 69 | 0.717949 | 93 | 624 | 4.677419 | 0.397849 | 0.114943 | 0.048276 | 0.078161 | 0.078161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 624 | 25 | 70 | 24.96 | 0.811567 | 0 | 0 | 0 | 0 | 0 | 0.168269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 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 |
b93013fc4c52f52721e2e015d4934a5e01ea7afe | 5,902 | py | Python | pysnmp-with-texts/ZXR10-MPLS-L3VPN-STATIS.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/ZXR10-MPLS-L3VPN-STATIS.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/ZXR10-MPLS-L3VPN-STATIS.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 ZXR10-MPLS-L3VPN-STATIS (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZXR10-MPLS-L3VPN-STATIS
# Produced by pysmi-0.3.4 at Wed May 1 15:48:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 ... | 100.033898 | 639 | 0.794307 | 621 | 5,902 | 7.545894 | 0.322061 | 0.01067 | 0.09411 | 0.008536 | 0.29236 | 0.169441 | 0.126761 | 0.126761 | 0.126761 | 0.126761 | 0 | 0.094665 | 0.085395 | 5,902 | 58 | 640 | 101.758621 | 0.773435 | 0.057608 | 0 | 0 | 0 | 0.041667 | 0.232847 | 0.019989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020833 | 0.145833 | 0 | 0.270833 | 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 |
b933a83b44fea70b34238ce8bd7ba3a227e31447 | 7,773 | py | Python | src/vesper/data/replication.py | onecommons/vesper | 818c09350b8fe53ea484aaff24deb1002a67f471 | [
"Apache-2.0"
] | null | null | null | src/vesper/data/replication.py | onecommons/vesper | 818c09350b8fe53ea484aaff24deb1002a67f471 | [
"Apache-2.0"
] | null | null | null | src/vesper/data/replication.py | onecommons/vesper | 818c09350b8fe53ea484aaff24deb1002a67f471 | [
"Apache-2.0"
] | null | null | null | #:copyright: Copyright 2009-2010 by the Vesper team, see AUTHORS.
#:license: Dual licenced under the GPL or Apache2 licences, see LICENSE.
import logging
import time
from datetime import datetime
import stomp
from vesper.backports import *
from vesper.utils import Worker
class ChangesetListener(object):
"""
... | 38.671642 | 119 | 0.583816 | 858 | 7,773 | 5.201632 | 0.264569 | 0.087833 | 0.030473 | 0.018821 | 0.123235 | 0.071477 | 0.04078 | 0.04078 | 0.04078 | 0.04078 | 0 | 0.007354 | 0.317767 | 7,773 | 200 | 120 | 38.865 | 0.834245 | 0.071272 | 0 | 0.120567 | 0 | 0 | 0.115433 | 0.003921 | 0 | 0 | 0 | 0 | 0.007092 | 0 | null | null | 0 | 0.042553 | 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 |
b933e4daa5b50ea9ffcdf5cf67eb098b0e427882 | 3,555 | py | Python | cornflow/endpoints/login.py | pchtsp/corn | 2811ad400f3f3681a159984eabf4fee1fc99b433 | [
"MIT"
] | 5 | 2021-11-24T02:43:22.000Z | 2021-12-10T09:28:32.000Z | cornflow/endpoints/login.py | pchtsp/corn | 2811ad400f3f3681a159984eabf4fee1fc99b433 | [
"MIT"
] | 125 | 2021-09-01T12:06:48.000Z | 2022-03-30T11:32:57.000Z | cornflow/endpoints/login.py | pchtsp/corn | 2811ad400f3f3681a159984eabf4fee1fc99b433 | [
"MIT"
] | 1 | 2022-03-23T17:57:59.000Z | 2022-03-23T17:57:59.000Z | """
External endpoint for the user to login to the cornflow webserver
"""
# Import from libraries
from flask import g, current_app
from flask_apispec import use_kwargs, doc
from flask_apispec.views import MethodResource
import logging as log
# Import from internal modules
from .meta_resource import MetaResource
from ... | 34.514563 | 119 | 0.646976 | 433 | 3,555 | 5.196305 | 0.351039 | 0.042667 | 0.062222 | 0.016 | 0.130667 | 0.044444 | 0.044444 | 0.044444 | 0.044444 | 0.044444 | 0 | 0.002326 | 0.274262 | 3,555 | 102 | 120 | 34.852941 | 0.869767 | 0.195218 | 0 | 0.203125 | 0 | 0 | 0.070787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0.109375 | 0.1875 | 0 | 0.296875 | 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 |
b9347cb9e57b24ab8b6504e5cc211c2f2a74cac4 | 3,737 | py | Python | {{cookiecutter.project_slug}}/backend/app/app/utils.py | tiangolo/full-stack-flask-couchbase | d79d4c2159632dfac47051ff65119b6a6b73b2cd | [
"MIT"
] | 51 | 2018-10-22T14:14:49.000Z | 2021-12-02T07:07:50.000Z | {{cookiecutter.project_slug}}/backend/app/app/utils.py | blockchain-Bobby/full-stack-flask-couchbase | d79ed8d6cd1f610fd68a7cd234a0104deb874933 | [
"MIT"
] | 11 | 2018-11-02T21:50:22.000Z | 2020-02-07T18:48:48.000Z | {{cookiecutter.project_slug}}/backend/app/app/utils.py | blockchain-Bobby/full-stack-flask-couchbase | d79ed8d6cd1f610fd68a7cd234a0104deb874933 | [
"MIT"
] | 9 | 2019-03-29T09:26:18.000Z | 2021-07-09T09:37:45.000Z | import logging
from datetime import datetime, timedelta
from pathlib import Path
from typing import Union
import emails
import jwt
from emails.template import JinjaTemplate
from jwt.exceptions import InvalidTokenError
from app.core.config import (
EMAIL_RESET_TOKEN_EXPIRE_HOURS,
EMAIL_TEMPLATES_DIR,
EMAIL... | 29.425197 | 85 | 0.655071 | 444 | 3,737 | 5.213964 | 0.220721 | 0.042333 | 0.051836 | 0.027646 | 0.351188 | 0.274298 | 0.212527 | 0.182721 | 0.182721 | 0.144708 | 0 | 0.002128 | 0.245384 | 3,737 | 126 | 86 | 29.65873 | 0.818794 | 0 | 0 | 0.252252 | 0 | 0 | 0.128445 | 0.012309 | 0 | 0 | 0 | 0 | 0.018018 | 1 | 0.054054 | false | 0.126126 | 0.081081 | 0 | 0.162162 | 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 |
b939048007f9751feea17b161ff5512915ebad24 | 5,310 | py | Python | server/utils.py | joeyac/JudgeServer | 44a7e6cf4b4968a5239b2dfeeb40705f8a0c736a | [
"MIT"
] | null | null | null | server/utils.py | joeyac/JudgeServer | 44a7e6cf4b4968a5239b2dfeeb40705f8a0c736a | [
"MIT"
] | null | null | null | server/utils.py | joeyac/JudgeServer | 44a7e6cf4b4968a5239b2dfeeb40705f8a0c736a | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import unicode_literals, with_statement
import commands
import hashlib
import logging
import os
import shutil
import signal
import socket
from contextlib import contextmanager
from logging.handlers import RotatingFileHandler
import psutil
from config import REMOTE_DEBUG
from config imp... | 30.170455 | 113 | 0.620527 | 644 | 5,310 | 4.978261 | 0.354037 | 0.024953 | 0.016843 | 0.045228 | 0.179663 | 0.168434 | 0.156581 | 0.106675 | 0.085465 | 0.085465 | 0 | 0.008241 | 0.268738 | 5,310 | 175 | 114 | 30.342857 | 0.817409 | 0.081168 | 0 | 0.212121 | 0 | 0.015152 | 0.133936 | 0.020131 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007576 | 0.113636 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9392433eec9e084bb7bbb98c03fb18490e6ea31 | 1,161 | py | Python | benchmark/btb_benchmark/tuning_functions/__init__.py | dataronio/BTB | 5053ed705cf2542e320e8a7605642f5b01db8272 | [
"MIT"
] | 161 | 2017-12-20T00:17:35.000Z | 2020-11-25T18:18:15.000Z | benchmark/btb_benchmark/tuning_functions/__init__.py | dataronio/BTB | 5053ed705cf2542e320e8a7605642f5b01db8272 | [
"MIT"
] | 162 | 2017-12-26T18:44:38.000Z | 2020-11-19T15:53:03.000Z | benchmark/btb_benchmark/tuning_functions/__init__.py | dataronio/BTB | 5053ed705cf2542e320e8a7605642f5b01db8272 | [
"MIT"
] | 37 | 2018-01-03T09:28:08.000Z | 2020-09-23T10:23:46.000Z | # -*- coding: utf-8 -*-
from btb_benchmark.tuning_functions.ax import ax_optimize
from btb_benchmark.tuning_functions.btb import (
gcpeituner, gcptuner, gpeituner, gptuner, uniformtuner)
from btb_benchmark.tuning_functions.hyperopt import hyperopt_tpe
from btb_benchmark.tuning_functions.skopt import skopt_EI, skop... | 37.451613 | 94 | 0.702842 | 146 | 1,161 | 5.280822 | 0.246575 | 0.140078 | 0.103761 | 0.142672 | 0.472114 | 0.271077 | 0.14786 | 0.106355 | 0 | 0 | 0 | 0.013889 | 0.193798 | 1,161 | 30 | 95 | 38.7 | 0.809829 | 0.07149 | 0 | 0 | 0 | 0 | 0.17444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | true | 0 | 0.2 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b93e0e533cbe32ed51a6a7136309dbaa6270cfda | 1,719 | py | Python | Binary Search/074. Search a 2D Matrix.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Binary Search/074. Search a 2D Matrix.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Binary Search/074. Search a 2D Matrix.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | """
74. Search a 2D Matrix
"""
class Solution:
def searchMatrix(self, matrix, target):
"""
:type matrix: List[List[int]]
:type target: int
:rtype: bool
"""
if len(matrix)==0 or len(matrix[0])==0: return False
m, n = len(matrix), len(matrix[0])
... | 35.8125 | 193 | 0.583479 | 244 | 1,719 | 4.07377 | 0.217213 | 0.120724 | 0.096579 | 0.140845 | 0.45674 | 0.418511 | 0.418511 | 0.255533 | 0.255533 | 0.255533 | 0 | 0.028823 | 0.273415 | 1,719 | 48 | 194 | 35.8125 | 0.767014 | 0.13438 | 0 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0 | 0.032258 | 0.516129 | 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 |
b93ef7b2378e92e7fad4009da613236ef9b48076 | 367 | py | Python | lesson3_2.py | Same555/Lesson2 | 6005d06e6d52cb4ff5039bf17faaaba7f4d854ba | [
"MIT"
] | null | null | null | lesson3_2.py | Same555/Lesson2 | 6005d06e6d52cb4ff5039bf17faaaba7f4d854ba | [
"MIT"
] | null | null | null | lesson3_2.py | Same555/Lesson2 | 6005d06e6d52cb4ff5039bf17faaaba7f4d854ba | [
"MIT"
] | null | null | null | #!/usr/bin/python
def listsum(numbers):
sum = 0
for i in numbers:
sum = sum + i
return sum
def getlistsum():
numbers = []
while True:
inp = int(input("Please enter numbers: \n"))
numbers.append(inp)
if listsum(numbers) > 30 or inp > 10:
r... | 19.315789 | 53 | 0.536785 | 44 | 367 | 4.477273 | 0.613636 | 0.213198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020921 | 0.348774 | 367 | 19 | 54 | 19.315789 | 0.803347 | 0.043597 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.307692 | 0.076923 | 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 |
b93fcf70ac4820c68289b036afe530db2927784a | 2,509 | py | Python | mlir/test/python/ir/context_managers.py | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | mlir/test/python/ir/context_managers.py | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | mlir/test/python/ir/context_managers.py | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | # RUN: %PYTHON %s | FileCheck %s
import gc
from mlir.ir import *
def run(f):
print("\nTEST:", f.__name__)
f()
gc.collect()
assert Context._get_live_count() == 0
# CHECK-LABEL: TEST: testContextEnterExit
def testContextEnterExit():
with Context() as ctx:
assert Context.current is ctx
try:
_ = Con... | 25.09 | 67 | 0.691909 | 298 | 2,509 | 5.781879 | 0.228188 | 0.067905 | 0.069646 | 0.076611 | 0.648868 | 0.578642 | 0.543819 | 0.445734 | 0.304701 | 0.270459 | 0 | 0.010932 | 0.234356 | 2,509 | 99 | 68 | 25.343434 | 0.885997 | 0.232363 | 0 | 0.707692 | 0 | 0 | 0.060241 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.061538 | false | 0.046154 | 0.030769 | 0 | 0.092308 | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b940f1a1bbde4514e1afc587d8fa4d13fb6b618d | 737 | py | Python | sortListOfDictItemGetter.py | universekavish/pythonTraining | 731da95d3fbd5b1a42116e5dad8ecedb557b71e1 | [
"Apache-2.0"
] | null | null | null | sortListOfDictItemGetter.py | universekavish/pythonTraining | 731da95d3fbd5b1a42116e5dad8ecedb557b71e1 | [
"Apache-2.0"
] | null | null | null | sortListOfDictItemGetter.py | universekavish/pythonTraining | 731da95d3fbd5b1a42116e5dad8ecedb557b71e1 | [
"Apache-2.0"
] | null | null | null | #ways to sort list of dictionaries by values in Python - using itemgetter
from operator import itemgetter
lis = [{'name' : 'Nandini', 'age' : 20}, {'name' : 'Manjeet', 'age' : 20}, {'name' : 'Nikhil', 'age' : 19}]
#Using sorted and itemgetter to print list sorted by age
print('the list printed sorting by age : ')
pr... | 32.043478 | 107 | 0.701493 | 111 | 737 | 4.657658 | 0.315315 | 0.038685 | 0.081238 | 0.139265 | 0.62089 | 0.62089 | 0.562863 | 0.261122 | 0.261122 | 0.17795 | 0 | 0.009836 | 0.17232 | 737 | 22 | 108 | 33.5 | 0.837705 | 0.367707 | 0 | 0 | 0 | 0 | 0.384279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9451bca573532c3c40b5266cc4c98723ad20517 | 8,362 | py | Python | main.py | TG-KRISH/Discord-Bot | 5d1a40e4282f960d7ff3844f5dc759b5ee21d5ff | [
"MIT"
] | null | null | null | main.py | TG-KRISH/Discord-Bot | 5d1a40e4282f960d7ff3844f5dc759b5ee21d5ff | [
"MIT"
] | null | null | null | main.py | TG-KRISH/Discord-Bot | 5d1a40e4282f960d7ff3844f5dc759b5ee21d5ff | [
"MIT"
] | 1 | 2021-10-15T12:40:19.000Z | 2021-10-15T12:40:19.000Z | import discord
import random
import datetime
from urllib import parse, request
import re
import choice
import termcolor
import colorama
import os
import requests
from asyncio import sleep
from keep_alive import keep_alive
from discord.ext import commands
from discord.ext.commands import has_permissions
client = co... | 27.966555 | 143 | 0.676393 | 1,181 | 8,362 | 4.745131 | 0.298899 | 0.097074 | 0.11349 | 0.111884 | 0.326909 | 0.287295 | 0.269807 | 0.260528 | 0.245182 | 0.227516 | 0 | 0.005048 | 0.147094 | 8,362 | 298 | 144 | 28.060403 | 0.779024 | 0 | 0 | 0.269841 | 0 | 0 | 0.373116 | 0.024516 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007937 | 0.055556 | null | null | 0.019841 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b946ff8dde4a3d6ae0aecbac3b11df6527ee700b | 26,208 | py | Python | autotest/gcore/gdal_stats.py | Symena/gdal | 8f98f340b676b37fc681f08138557be81fd47470 | [
"MIT"
] | null | null | null | autotest/gcore/gdal_stats.py | Symena/gdal | 8f98f340b676b37fc681f08138557be81fd47470 | [
"MIT"
] | null | null | null | autotest/gcore/gdal_stats.py | Symena/gdal | 8f98f340b676b37fc681f08138557be81fd47470 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: Test core numeric operations and statistics calculations
# Author: Mateusz Loskot <mateusz@loskot.net>
#
##################################... | 33.904269 | 146 | 0.605235 | 3,407 | 26,208 | 4.546228 | 0.114764 | 0.074569 | 0.07954 | 0.050165 | 0.752018 | 0.721092 | 0.685712 | 0.625476 | 0.592743 | 0.568984 | 0 | 0.087957 | 0.202228 | 26,208 | 772 | 147 | 33.948187 | 0.65286 | 0.098481 | 0 | 0.64 | 0 | 0 | 0.178777 | 0.068897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046 | false | 0.01 | 0.012 | 0.008 | 0.198 | 0.09 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 |
b94d31579dd88b68935fb0eb17b404c1ceb0e722 | 2,921 | py | Python | tests/test_geometry.py | girotobial/pytire | c146aec0e07ce3c0d506b2dd19528bfa694ab06b | [
"MIT"
] | null | null | null | tests/test_geometry.py | girotobial/pytire | c146aec0e07ce3c0d506b2dd19528bfa694ab06b | [
"MIT"
] | 30 | 2021-03-01T12:35:17.000Z | 2022-02-17T13:05:59.000Z | tests/test_geometry.py | girotobial/pytire | c146aec0e07ce3c0d506b2dd19528bfa694ab06b | [
"MIT"
] | 1 | 2021-02-25T10:52:40.000Z | 2021-02-25T10:52:40.000Z | """
Utility function unit tests
:author: Alex Robinson <girotobial@gmail.com>
:copyright: Copyright (c) Alex Robinson, 2021-2021.
:license: MIT
"""
import math
import pytest
from pytire.enums import Unit
from pytire.geometry import (
Cuboid,
Cylinder,
NoneShape,
SquareToroid,
ThreeDimensionalSha... | 21.637037 | 81 | 0.68367 | 388 | 2,921 | 4.930412 | 0.283505 | 0.054888 | 0.027182 | 0.02666 | 0.033455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047841 | 0.191373 | 2,921 | 134 | 82 | 21.798507 | 0.762066 | 0.047929 | 0 | 0.117647 | 0 | 0 | 0.021637 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 1 | 0.223529 | false | 0 | 0.047059 | 0.047059 | 0.341176 | 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 |
b94deb0e7d89f70d3677899a9405cf3fb5842b7d | 5,227 | py | Python | elijah/provisioning/tool.py | susanwab/elijah-provisioning | 6364f1e6c6c802033df71999435d7f7dc03ad2b6 | [
"Apache-2.0"
] | 19 | 2015-01-18T23:37:18.000Z | 2019-10-16T15:53:29.000Z | elijah/provisioning/tool.py | susanwab/elijah-provisioning | 6364f1e6c6c802033df71999435d7f7dc03ad2b6 | [
"Apache-2.0"
] | 5 | 2016-06-09T15:08:51.000Z | 2018-05-07T17:45:01.000Z | elijah/provisioning/tool.py | susanwab/elijah-provisioning | 6364f1e6c6c802033df71999435d7f7dc03ad2b6 | [
"Apache-2.0"
] | 15 | 2015-02-02T11:08:14.000Z | 2020-03-24T14:22:50.000Z | #!/usr/bin/env python
#
# Cloudlet Infrastructure for Mobile Computing
#
# Author: Kiryong Ha <krha@cmu.edu>
#
# Copyright (C) 2011-2013 Carnegie Mellon University
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obt... | 29.201117 | 76 | 0.631146 | 672 | 5,227 | 4.763393 | 0.311012 | 0.049984 | 0.03249 | 0.028116 | 0.401125 | 0.373633 | 0.373633 | 0.373633 | 0.371134 | 0.348016 | 0 | 0.021594 | 0.255787 | 5,227 | 178 | 77 | 29.365169 | 0.801285 | 0.134111 | 0 | 0.436508 | 0 | 0 | 0.082779 | 0 | 0 | 0 | 0.004439 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9504856a6060ea16d769b68c8897cecdbd10ea5 | 321 | py | Python | backend/posts/migrations/0004_remove_post_comments.py | solitariaa/CMPUT404-project-socialdistribution | f9e23a10e209f8bf7ed062e105f44038751f7c74 | [
"W3C-20150513"
] | 1 | 2022-03-01T03:03:40.000Z | 2022-03-01T03:03:40.000Z | backend/posts/migrations/0004_remove_post_comments.py | solitariaa/CMPUT404-project-socialdistribution | f9e23a10e209f8bf7ed062e105f44038751f7c74 | [
"W3C-20150513"
] | 51 | 2022-02-09T06:18:27.000Z | 2022-03-28T19:01:54.000Z | backend/posts/migrations/0004_remove_post_comments.py | solitariaa/CMPUT404-project-socialdistribution | f9e23a10e209f8bf7ed062e105f44038751f7c74 | [
"W3C-20150513"
] | 2 | 2022-03-13T20:58:10.000Z | 2022-03-19T06:29:56.000Z | # Generated by Django 4.0.2 on 2022-03-22 19:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_post_comments'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='comments',
),
]... | 17.833333 | 47 | 0.582555 | 34 | 321 | 5.411765 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084821 | 0.302181 | 321 | 17 | 48 | 18.882353 | 0.736607 | 0.140187 | 0 | 0 | 1 | 0 | 0.127737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9535ea14b73d4b1e9fda918002fac3a7ab3579e | 14,943 | py | Python | pinocchio/spec.py | mkwiatkowski/pinocchio | 1281aa42a8f1f950c8987cde6df16570d353ee2f | [
"MIT"
] | 10 | 2015-01-23T18:53:23.000Z | 2022-03-26T06:09:27.000Z | pinocchio/spec.py | mkwiatkowski/pinocchio | 1281aa42a8f1f950c8987cde6df16570d353ee2f | [
"MIT"
] | 7 | 2015-01-18T17:28:38.000Z | 2021-05-18T10:29:24.000Z | pinocchio/spec.py | mkwiatkowski/pinocchio | 1281aa42a8f1f950c8987cde6df16570d353ee2f | [
"MIT"
] | 2 | 2015-01-23T18:58:54.000Z | 2015-09-14T10:09:51.000Z | """
spec -- generate test description from test class/method names
---------------------------------------------------------------
spec lets you generate a "specification" similar to testdox_ . The spec plugin
can generate simple documentation directly from class and method names of test
cases. For example, a test cas... | 32.555556 | 101 | 0.62116 | 1,717 | 14,943 | 5.269656 | 0.237041 | 0.017683 | 0.009394 | 0.007626 | 0.141799 | 0.063882 | 0.043988 | 0.035809 | 0.035809 | 0.035809 | 0 | 0.005168 | 0.23603 | 14,943 | 458 | 102 | 32.626638 | 0.787404 | 0.27906 | 0 | 0.077236 | 1 | 0 | 0.061411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186992 | false | 0.004065 | 0.056911 | 0.036585 | 0.414634 | 0.093496 | 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 |
b953ef96e3b34d56141e230ef672d9ced580a1ce | 1,267 | py | Python | DL/AutoEncoder/autoencoder/model.py | kimbyeolhee/ML-DL-Algorithms-Study | c8fb919083707dc43d400da35a4d176cc3af56fe | [
"MIT"
] | null | null | null | DL/AutoEncoder/autoencoder/model.py | kimbyeolhee/ML-DL-Algorithms-Study | c8fb919083707dc43d400da35a4d176cc3af56fe | [
"MIT"
] | null | null | null | DL/AutoEncoder/autoencoder/model.py | kimbyeolhee/ML-DL-Algorithms-Study | c8fb919083707dc43d400da35a4d176cc3af56fe | [
"MIT"
] | null | null | null | import torch.nn as nn
class Autoencoder(nn.Module):
def __init__(self, btl_size=2):
self.btl_size = btl_size
super().__init__()
self.encoder = nn.Sequential(
nn.Linear(28*28, 500),
nn.ReLU(),
nn.BatchNorm1d(500),
nn.Linear(500, 200),
nn.ReLU(),
nn.Bat... | 21.844828 | 34 | 0.509866 | 164 | 1,267 | 3.859756 | 0.195122 | 0.176935 | 0.151659 | 0.36019 | 0.654028 | 0.654028 | 0.654028 | 0.654028 | 0.654028 | 0 | 0 | 0.130282 | 0.327545 | 1,267 | 58 | 35 | 21.844828 | 0.612676 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.019608 | 0 | 0.098039 | 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 |
b958c53c39ad79ab38c67a06a833c9df367ee7f4 | 2,208 | py | Python | Maths Perfect Root Calculator.py | vivek07kumar/Maths-Perfect-Root-Calculator | 536524af90c28151bbebca6b8b9c11e29bbc0372 | [
"MIT"
] | null | null | null | Maths Perfect Root Calculator.py | vivek07kumar/Maths-Perfect-Root-Calculator | 536524af90c28151bbebca6b8b9c11e29bbc0372 | [
"MIT"
] | null | null | null | Maths Perfect Root Calculator.py | vivek07kumar/Maths-Perfect-Root-Calculator | 536524af90c28151bbebca6b8b9c11e29bbc0372 | [
"MIT"
] | null | null | null | done3 = True
print()
print(' >>>>>>>>>>>>>>>>>>>>> MATHS PERFECT ROOT CALCULATOR <<<<<<<<<<<<<<<<<<<<<')
print()
print()
while done3 :
done = True
done2 = True
answer = 1
done4 = True
radicand = int(input('>> Please enter Radicand : '))
index = int(input('>> Please enter Index : ')... | 35.612903 | 99 | 0.380435 | 200 | 2,208 | 4.2 | 0.245 | 0.066667 | 0.083333 | 0.052381 | 0.242857 | 0.242857 | 0.192857 | 0.192857 | 0.192857 | 0.192857 | 0 | 0.023659 | 0.425725 | 2,208 | 61 | 100 | 36.196721 | 0.638801 | 0 | 0 | 0.52459 | 0 | 0 | 0.25524 | 0.055426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.42623 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9590934167c57fdb17ada0d82ed081df6f763b3 | 2,782 | py | Python | tests/test_project/models.py | Aryamanz29/openwisp-utils | c5558fc14a22316e49e9144d39216de348e19b05 | [
"BSD-3-Clause"
] | null | null | null | tests/test_project/models.py | Aryamanz29/openwisp-utils | c5558fc14a22316e49e9144d39216de348e19b05 | [
"BSD-3-Clause"
] | 1 | 2022-01-25T17:46:52.000Z | 2022-01-25T17:46:52.000Z | tests/test_project/models.py | Aryamanz29/openwisp-utils | c5558fc14a22316e49e9144d39216de348e19b05 | [
"BSD-3-Clause"
] | null | null | null | from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import gettext_lazy as _
from openwisp_utils.base import KeyField, TimeStampedEditableModel, UUIDModel
class Shelf(TimeStampedEditableModel):
TYPES = (
('HORROR', 'HORROR'),
('FANTASY', 'F... | 30.911111 | 87 | 0.655643 | 311 | 2,782 | 5.652733 | 0.337621 | 0.076792 | 0.037543 | 0.03868 | 0.215586 | 0.17008 | 0.154152 | 0.098976 | 0.052332 | 0.052332 | 0 | 0.008732 | 0.217829 | 2,782 | 89 | 88 | 31.258427 | 0.799173 | 0 | 0 | 0.180556 | 0 | 0 | 0.15816 | 0.015097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0 | 0.055556 | 0.055556 | 0.541667 | 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 |
b95caf111c36a7ad9ae8f11ec7cb696ac1523ce6 | 5,147 | py | Python | web/project/main/models.py | CornellProjects/cancercare | 0f41bde1e6f3a2773c03847b0bd7aa2cfb653c48 | [
"Apache-2.0"
] | 1 | 2017-06-09T04:58:46.000Z | 2017-06-09T04:58:46.000Z | web/project/main/models.py | CornellProjects/cancercare | 0f41bde1e6f3a2773c03847b0bd7aa2cfb653c48 | [
"Apache-2.0"
] | 58 | 2017-08-31T02:18:04.000Z | 2022-03-03T21:57:20.000Z | web/project/main/models.py | CornellProjects/cancercare | 0f41bde1e6f3a2773c03847b0bd7aa2cfb653c48 | [
"Apache-2.0"
] | 3 | 2017-06-12T21:41:04.000Z | 2018-02-01T00:47:04.000Z | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.contrib.auth.models import User
from django.utils import timezone
# Model to determine where a doctor is from
class Entity(models.Model):
name = models.CharField(max_length=100)
... | 38.992424 | 120 | 0.698465 | 664 | 5,147 | 5.275602 | 0.222892 | 0.098487 | 0.118184 | 0.157579 | 0.475878 | 0.379389 | 0.244933 | 0.224379 | 0.187839 | 0.063374 | 0 | 0.015341 | 0.176802 | 5,147 | 131 | 121 | 39.290076 | 0.811423 | 0.230814 | 0 | 0.101266 | 0 | 0 | 0.103377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.063291 | 0.050633 | 0.810127 | 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 |
b968288cdbe3f8af27f1344dd37d854682fcd728 | 6,408 | py | Python | lib/torch_utils/solver/optimize.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 33 | 2021-12-15T07:11:47.000Z | 2022-03-29T08:58:32.000Z | lib/torch_utils/solver/optimize.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 3 | 2021-12-15T11:39:54.000Z | 2022-03-29T07:24:23.000Z | lib/torch_utils/solver/optimize.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | null | null | null | import re
import torch
from torch.nn.utils import clip_grad
import mmcv
from mmcv.runner import obj_from_dict
from lib.utils import logger
from lib.utils.utils import msg
def _get_optimizer(params, optimizer_cfg, use_hvd=False):
# cfg.optimizer = dict(type='RMSprop', lr=1e-4, weight_decay=0)
# cfg.optimizer =... | 41.076923 | 114 | 0.631866 | 854 | 6,408 | 4.508197 | 0.215457 | 0.065455 | 0.023377 | 0.028052 | 0.298442 | 0.208312 | 0.179221 | 0.112727 | 0.112727 | 0.112727 | 0 | 0.009736 | 0.278714 | 6,408 | 155 | 115 | 41.341935 | 0.823237 | 0.27965 | 0 | 0.130435 | 0 | 0 | 0.085485 | 0.006011 | 0 | 0 | 0 | 0.012903 | 0.021739 | 1 | 0.054348 | false | 0 | 0.119565 | 0 | 0.228261 | 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 |
b9787fb89b58b9f6ff495e4cfc2bbd1b29882d81 | 2,178 | py | Python | phd/shared/database.py | ic4f/phd-code | fe9d20d576992173d0c13ed21e61bee4990cd2c9 | [
"MIT"
] | null | null | null | phd/shared/database.py | ic4f/phd-code | fe9d20d576992173d0c13ed21e61bee4990cd2c9 | [
"MIT"
] | null | null | null | phd/shared/database.py | ic4f/phd-code | fe9d20d576992173d0c13ed21e61bee4990cd2c9 | [
"MIT"
] | null | null | null | import os.path
import sys
import MySQLdb
from config import ConfigReader
class DbTool(object):
def open(self):
cnf = ConfigReader()
self._connect = MySQLdb.connect(
host=cnf.get('DB_HOST'), user=cnf.get('DB_USER'),
passwd=cnf.get('DB_PASSWORD'), db=cnf.get('DB_NAME'))
... | 30.676056 | 97 | 0.619835 | 270 | 2,178 | 4.681481 | 0.248148 | 0.118671 | 0.05538 | 0.110759 | 0.424051 | 0.424051 | 0.359177 | 0.352848 | 0.287975 | 0.253165 | 0 | 0.0012 | 0.235078 | 2,178 | 70 | 98 | 31.114286 | 0.757503 | 0 | 0 | 0.235294 | 0 | 0 | 0.04496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019608 | 0.078431 | 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 |
b97993f9afa8f5f38df7a9878164f77725aa2058 | 5,037 | py | Python | homeassistant/components/device_tracker/luci.py | gwendalg/home-assistant | fb94aaa5a1a1e125dafb681e50c18be45dfe1b19 | [
"MIT"
] | 2 | 2016-04-22T22:49:16.000Z | 2018-09-16T11:59:30.000Z | homeassistant/components/device_tracker/luci.py | gwendalg/home-assistant | fb94aaa5a1a1e125dafb681e50c18be45dfe1b19 | [
"MIT"
] | null | null | null | homeassistant/components/device_tracker/luci.py | gwendalg/home-assistant | fb94aaa5a1a1e125dafb681e50c18be45dfe1b19 | [
"MIT"
] | 1 | 2016-04-22T22:49:23.000Z | 2016-04-22T22:49:23.000Z | """
Support for OpenWRT (luci) routers.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.luci/
"""
import json
import logging
import re
import threading
from datetime import timedelta
import requests
import voluptuous as vol
import homeass... | 33.58 | 79 | 0.6081 | 605 | 5,037 | 4.927273 | 0.363636 | 0.014089 | 0.016773 | 0.017444 | 0.094599 | 0.060382 | 0.02214 | 0.02214 | 0 | 0 | 0 | 0.005062 | 0.294024 | 5,037 | 149 | 80 | 33.805369 | 0.83324 | 0.190987 | 0 | 0.189474 | 0 | 0 | 0.104631 | 0 | 0 | 0 | 0.000751 | 0 | 0 | 1 | 0.073684 | false | 0.073684 | 0.115789 | 0 | 0.326316 | 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 |
b97b125d1ca628e2741a9737d9f1bc51146091cd | 757 | py | Python | intermol/forces/atom_c_type.py | ctk3b/intermol | 5224b0a01e6db02ecb9dc1e6996a6df5e9bf630d | [
"MIT"
] | null | null | null | intermol/forces/atom_c_type.py | ctk3b/intermol | 5224b0a01e6db02ecb9dc1e6996a6df5e9bf630d | [
"MIT"
] | 5 | 2015-01-06T13:21:51.000Z | 2015-01-20T21:39:11.000Z | intermol/forces/atom_c_type.py | ctk3b/intermol | 5224b0a01e6db02ecb9dc1e6996a6df5e9bf630d | [
"MIT"
] | null | null | null | import simtk.unit as units
from intermol.decorators import accepts_compatible_units
from intermol.forces.abstract_atom_type import AbstractAtomType
class AtomCType(AbstractAtomType):
@accepts_compatible_units(None, None, None, units.amu,
units.elementary_charge, None,
units.kilojoules_... | 37.85 | 78 | 0.668428 | 86 | 757 | 5.639535 | 0.546512 | 0.037113 | 0.070103 | 0.090722 | 0.263918 | 0.152577 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.254954 | 757 | 19 | 79 | 39.842105 | 0.838652 | 0.075297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 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 |
b97bf3d4cd9754915275383cd952b952b7ded9a7 | 1,201 | py | Python | test_system_preferences.py | katiekeel/macprefs | 1d8e7cd3ebf2be43db34bd2cb9daec62a7ade321 | [
"MIT"
] | null | null | null | test_system_preferences.py | katiekeel/macprefs | 1d8e7cd3ebf2be43db34bd2cb9daec62a7ade321 | [
"MIT"
] | null | null | null | test_system_preferences.py | katiekeel/macprefs | 1d8e7cd3ebf2be43db34bd2cb9daec62a7ade321 | [
"MIT"
] | null | null | null | from os import path
import system_preferences
from config import get_sys_preferences_backup_dir
from mock import patch
@patch('system_preferences.copy_dir')
def test_backup(copy_dir_mock):
source = system_preferences.get_pm_path()
dest = system_preferences.get_pm_backup_path()
system_preferences.backup()
... | 31.605263 | 97 | 0.772689 | 165 | 1,201 | 5.175758 | 0.260606 | 0.278689 | 0.140515 | 0.154567 | 0.482436 | 0.372365 | 0.17096 | 0.086651 | 0 | 0 | 0 | 0.00291 | 0.141549 | 1,201 | 37 | 98 | 32.459459 | 0.825412 | 0 | 0 | 0.125 | 0 | 0 | 0.134055 | 0.10741 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.125 | false | 0 | 0.125 | 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 |
b97c67f4c12500da50cdb2a0f672593a0f301389 | 22,170 | py | Python | sfm/ui/migrations/0001_initial.py | AramZS/sfm-ui | accfa59bf203e5dee7db46c8072256700278b462 | [
"MIT"
] | 1 | 2021-01-09T04:58:17.000Z | 2021-01-09T04:58:17.000Z | sfm/ui/migrations/0001_initial.py | AramZS/sfm-ui | accfa59bf203e5dee7db46c8072256700278b462 | [
"MIT"
] | null | null | null | sfm/ui/migrations/0001_initial.py | AramZS/sfm-ui | accfa59bf203e5dee7db46c8072256700278b462 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import jsonfield.fields
import django.contrib.auth.models
import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
import django.core.validators
import ui.models
class Migrat... | 66.978852 | 432 | 0.603879 | 2,322 | 22,170 | 5.601637 | 0.121447 | 0.044284 | 0.03229 | 0.038748 | 0.742216 | 0.702622 | 0.673637 | 0.631583 | 0.603752 | 0.586838 | 0 | 0.009969 | 0.239829 | 22,170 | 330 | 433 | 67.181818 | 0.761823 | 0.000947 | 0 | 0.601852 | 0 | 0 | 0.221339 | 0.008263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003086 | 0.027778 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 |
b9804f51e2a82644ddd3a7395cfe64465842d3c6 | 1,189 | py | Python | contrib/marat/python/myvector3.py | dinisAbranches/nwchem | 21cb07ff634475600ab687882652b823cad8c0cd | [
"ECL-2.0"
] | 317 | 2017-11-20T21:29:11.000Z | 2022-03-28T11:48:24.000Z | contrib/marat/python/myvector3.py | dinisAbranches/nwchem | 21cb07ff634475600ab687882652b823cad8c0cd | [
"ECL-2.0"
] | 356 | 2017-12-05T01:38:12.000Z | 2022-03-31T02:28:21.000Z | contrib/marat/python/myvector3.py | dinisAbranches/nwchem | 21cb07ff634475600ab687882652b823cad8c0cd | [
"ECL-2.0"
] | 135 | 2017-11-19T18:36:44.000Z | 2022-03-31T02:28:49.000Z | '''
Created on Feb 4, 2012
@author: marat
'''
import math
class Vector(object):
'''
classdocs
'''
def __init__(self,x=0.0,y=0.0,z=0.0):
'''
Constructor
'''
self.coords=[x,y,z]
self.x=x
self.y=y
self.z=z
def length(self):
dr = 0... | 20.5 | 86 | 0.486123 | 179 | 1,189 | 3.072626 | 0.268156 | 0.218182 | 0.021818 | 0.029091 | 0.472727 | 0.472727 | 0.472727 | 0.429091 | 0.429091 | 0.429091 | 0 | 0.052767 | 0.34651 | 1,189 | 57 | 87 | 20.859649 | 0.655084 | 0.050463 | 0 | 0.222222 | 0 | 0 | 0.047091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.027778 | 0 | 0.361111 | 0.083333 | 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 |
b986b06e0af36d5dbf93d1e522b9527b24974b35 | 1,588 | py | Python | src/waldur_rancher/urls.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 26 | 2017-10-18T13:49:58.000Z | 2021-09-19T04:44:09.000Z | src/waldur_rancher/urls.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 14 | 2018-12-10T14:14:51.000Z | 2021-06-07T10:33:39.000Z | src/waldur_rancher/urls.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 32 | 2017-09-24T03:10:45.000Z | 2021-10-16T16:41:09.000Z | from django.conf.urls import url
from . import views
def register_in(router):
router.register(
r'rancher-clusters', views.ClusterViewSet, basename='rancher-cluster'
)
router.register(r'rancher-nodes', views.NodeViewSet, basename='rancher-node')
router.register(
r'rancher-catalogs', vi... | 33.083333 | 94 | 0.685139 | 166 | 1,588 | 6.536145 | 0.385542 | 0.167742 | 0.179724 | 0.263594 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003058 | 0.176322 | 1,588 | 47 | 95 | 33.787234 | 0.826453 | 0 | 0 | 0.214286 | 0 | 0.02381 | 0.304786 | 0.082494 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.047619 | 0 | 0.071429 | 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 |
b98a5b66a44154006d11ab688fe131abc8ed30c1 | 1,932 | py | Python | novaclient/v1_1/floating_ips_bulk.py | CiscoSystems/python-novaclient | df8db07495984c6158e4c1e1d218c10594439c5e | [
"Apache-1.1"
] | null | null | null | novaclient/v1_1/floating_ips_bulk.py | CiscoSystems/python-novaclient | df8db07495984c6158e4c1e1d218c10594439c5e | [
"Apache-1.1"
] | null | null | null | novaclient/v1_1/floating_ips_bulk.py | CiscoSystems/python-novaclient | df8db07495984c6158e4c1e1d218c10594439c5e | [
"Apache-1.1"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 IBM
# 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/LI... | 31.672131 | 78 | 0.632505 | 245 | 1,932 | 4.861224 | 0.420408 | 0.110831 | 0.100756 | 0.057095 | 0.184719 | 0.109152 | 0.109152 | 0.057095 | 0 | 0 | 0 | 0.007763 | 0.266563 | 1,932 | 60 | 79 | 32.2 | 0.832745 | 0.383023 | 0 | 0 | 0 | 0 | 0.242507 | 0.17257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.043478 | 0.565217 | 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 |
b9942d96e924354f15ea7e1889809eaeb4f1cb73 | 4,103 | py | Python | nixui/graphics/main_window.py | Lillecarl/nix-gui | 7286ccbd7851cb3cef84ecaeb036bfdd8b906527 | [
"MIT"
] | 254 | 2021-07-08T19:40:12.000Z | 2022-03-30T23:21:19.000Z | nixui/graphics/main_window.py | Lillecarl/nix-gui | 7286ccbd7851cb3cef84ecaeb036bfdd8b906527 | [
"MIT"
] | 166 | 2021-07-07T19:39:08.000Z | 2022-03-16T19:24:08.000Z | nixui/graphics/main_window.py | Lillecarl/nix-gui | 7286ccbd7851cb3cef84ecaeb036bfdd8b906527 | [
"MIT"
] | 10 | 2021-07-09T11:20:31.000Z | 2022-01-04T20:46:39.000Z | import os
from PyQt5 import QtWidgets, QtCore, QtGui
from nixui.graphics import nav_interface, icon, diff_widget
class NixGuiMainWindow(QtWidgets.QMainWindow):
def __init__(self, statemodel, parent=None):
super().__init__(parent)
self.statemodel = statemodel
config_path = os.environ['C... | 42.739583 | 125 | 0.697051 | 466 | 4,103 | 5.922747 | 0.225322 | 0.11558 | 0.065217 | 0.041667 | 0.352174 | 0.094565 | 0.074638 | 0.074638 | 0.044203 | 0.044203 | 0 | 0.000292 | 0.165976 | 4,103 | 95 | 126 | 43.189474 | 0.806254 | 0.005362 | 0 | 0 | 0 | 0 | 0.126011 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.115942 | false | 0 | 0.043478 | 0 | 0.188406 | 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 |
b9977aae2993a715e3070f109cc809fe60fea0ab | 2,800 | py | Python | tests/test_migrate_flaskcli.py | Nibblecomm/Customersite-Migrate | 499816364e9256a70e794a6aadf0170bc8cbe5ae | [
"MIT"
] | 1 | 2022-03-31T03:23:24.000Z | 2022-03-31T03:23:24.000Z | tests/test_migrate_flaskcli.py | Nibblecomm/Customersite-Migrate | 499816364e9256a70e794a6aadf0170bc8cbe5ae | [
"MIT"
] | null | null | null | tests/test_migrate_flaskcli.py | Nibblecomm/Customersite-Migrate | 499816364e9256a70e794a6aadf0170bc8cbe5ae | [
"MIT"
] | null | null | null | import os
import shutil
import unittest
import subprocess
import shlex
def run_cmd(app, cmd):
"""Run a command and return a tuple with (stdout, stderr, exit_code)"""
os.environ['FLASK_APP'] = app
process = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE,
stderr=sub... | 31.818182 | 75 | 0.571071 | 362 | 2,800 | 4.287293 | 0.245856 | 0.108247 | 0.063789 | 0.03866 | 0.580541 | 0.580541 | 0.580541 | 0.572809 | 0.54768 | 0.539948 | 0 | 0.01072 | 0.300357 | 2,800 | 87 | 76 | 32.183908 | 0.781521 | 0.023214 | 0 | 0.506667 | 0 | 0 | 0.166728 | 0.025284 | 0 | 0 | 0 | 0 | 0.173333 | 1 | 0.093333 | false | 0.08 | 0.106667 | 0 | 0.226667 | 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 |
b9991a73a1cf1c9b991298a5cacbe91a0fa600ca | 9,237 | py | Python | flask_discord_interactions/tests/test_context.py | etrotta/flask-discord-interactions | b7e81d8919b26e7b2852c874b4943e45b8d6613a | [
"MIT"
] | 24 | 2021-01-03T22:36:51.000Z | 2022-03-13T23:19:25.000Z | flask_discord_interactions/tests/test_context.py | etrotta/flask-discord-interactions | b7e81d8919b26e7b2852c874b4943e45b8d6613a | [
"MIT"
] | 48 | 2021-01-11T00:30:42.000Z | 2022-03-25T10:25:14.000Z | flask_discord_interactions/tests/test_context.py | etrotta/flask-discord-interactions | b7e81d8919b26e7b2852c874b4943e45b8d6613a | [
"MIT"
] | 12 | 2021-04-11T23:31:52.000Z | 2022-02-10T08:15:44.000Z | import json
from flask_discord_interactions import Context, Member, Message, ApplicationCommandType
def test_context_parsing():
# Test data taken from
# https://discord.com/developers/docs/interactions/application-commands#slash-commands-example-interaction
data = json.loads("""
{
"ty... | 35.664093 | 112 | 0.473747 | 717 | 9,237 | 5.987448 | 0.232915 | 0.042395 | 0.02772 | 0.039133 | 0.491032 | 0.449336 | 0.379222 | 0.370137 | 0.360121 | 0.360121 | 0 | 0.166546 | 0.400022 | 9,237 | 258 | 113 | 35.802326 | 0.608084 | 0.040598 | 0 | 0.412037 | 0 | 0 | 0.719272 | 0.118617 | 0 | 0 | 0 | 0 | 0.087963 | 1 | 0.060185 | false | 0 | 0.009259 | 0.023148 | 0.092593 | 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 |
b9a19b599d4e92feb5dc30865fe8613cf7cc3a52 | 5,972 | py | Python | bikeshare/models.py | rit-bikeshare/backend | 5d3371ef4f673c6cad846b6ce403348f944202ad | [
"MIT"
] | 1 | 2020-01-22T23:50:34.000Z | 2020-01-22T23:50:34.000Z | bikeshare/models.py | rit-bikeshare/backend | 5d3371ef4f673c6cad846b6ce403348f944202ad | [
"MIT"
] | 3 | 2017-11-13T02:15:32.000Z | 2018-12-01T00:32:26.000Z | bikeshare/models.py | rit-bikeshare/backend | 5d3371ef4f673c6cad846b6ce403348f944202ad | [
"MIT"
] | null | null | null | from django.conf import settings
from django.contrib.gis.db import models
from django.db.models import Q
from django.utils import timezone
from datetime import timedelta
from constance import config
class BikeRack(models.Model):
id = models.SlugField(primary_key=True, help_text='The ID for this bike rack. This shoul... | 42.35461 | 193 | 0.769257 | 893 | 5,972 | 4.974244 | 0.207167 | 0.055831 | 0.032418 | 0.021612 | 0.418505 | 0.347141 | 0.282756 | 0.270824 | 0.201486 | 0.179424 | 0 | 0.002296 | 0.124749 | 5,972 | 140 | 194 | 42.657143 | 0.847522 | 0.007033 | 0 | 0.254902 | 0 | 0 | 0.249536 | 0.00439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.078431 | 0.705882 | 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 |
b9a27e898e055a046ab0bc6649a21087cdd3ee8a | 6,493 | py | Python | shop/addressmodel/migrations/0001_initial.py | dwx9/test | a74e38369de40b9e5f481f6ac9dda6d5eb161da0 | [
"BSD-3-Clause"
] | 1 | 2019-09-21T01:56:09.000Z | 2019-09-21T01:56:09.000Z | shop/addressmodel/migrations/0001_initial.py | bmihelac/django-shop | 1bf58d013c8cb14090a8d0278878e279699c84aa | [
"BSD-3-Clause"
] | null | null | null | shop/addressmodel/migrations/0001_initial.py | bmihelac/django-shop | 1bf58d013c8cb14090a8d0278878e279699c84aa | [
"BSD-3-Clause"
] | 1 | 2021-06-29T16:51:06.000Z | 2021-06-29T16:51:06.000Z | # flake8: noqa
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Country'
db.create_table('addressmodel_country', (
('id', self.gf('djan... | 64.93 | 200 | 0.585092 | 688 | 6,493 | 5.393895 | 0.151163 | 0.10132 | 0.173538 | 0.247912 | 0.699811 | 0.683643 | 0.673134 | 0.637564 | 0.547561 | 0.455403 | 0 | 0.012119 | 0.186663 | 6,493 | 99 | 201 | 65.585859 | 0.690589 | 0.019097 | 0 | 0.121951 | 0 | 0 | 0.538667 | 0.297234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.012195 | 0.04878 | 0 | 0.109756 | 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 |
b9a8b86c5ef8472f604884a358d89aac3a9403fd | 8,731 | py | Python | ansatz/qls_ansatz.py | Quantum-Software-Tools/dqva-and-circuit-cutting | ad21493c6ea550651af8d16addf1cca1183612dc | [
"MIT"
] | 1 | 2021-06-15T20:24:20.000Z | 2021-06-15T20:24:20.000Z | ansatz/qls_ansatz.py | Quantum-Software-Tools/dqva-and-circuit-cutting | ad21493c6ea550651af8d16addf1cca1183612dc | [
"MIT"
] | null | null | null | ansatz/qls_ansatz.py | Quantum-Software-Tools/dqva-and-circuit-cutting | ad21493c6ea550651af8d16addf1cca1183612dc | [
"MIT"
] | 1 | 2021-06-15T20:24:34.000Z | 2021-06-15T20:24:34.000Z | """
01/30/2021 - Teague Tomesh
The functions in the file are used to generate the Quantum
Local Search Ansatz (QLSA)
"""
from qiskit import QuantumCircuit, AncillaRegister
from qiskit.circuit import ControlledGate
from qiskit.circuit.library.standard_gates import XGate
from qiskit.transpiler.passes import Unroller
fro... | 36.684874 | 107 | 0.626389 | 1,199 | 8,731 | 4.432027 | 0.216013 | 0.030109 | 0.023711 | 0.016936 | 0.372224 | 0.342868 | 0.323297 | 0.300715 | 0.300715 | 0.281521 | 0 | 0.013126 | 0.293208 | 8,731 | 237 | 108 | 36.839662 | 0.847999 | 0.394457 | 0 | 0.333333 | 1 | 0 | 0.033654 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 1 | 0.025641 | false | 0.034188 | 0.059829 | 0 | 0.094017 | 0.042735 | 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 |
b9ac4ed60e9424aef379f580a7116dd94c830ff9 | 2,293 | py | Python | main.py | frencrs/CNDTproject | 78707eb6d83797a56d8d22a5ed4b50bf25050abb | [
"MIT"
] | null | null | null | main.py | frencrs/CNDTproject | 78707eb6d83797a56d8d22a5ed4b50bf25050abb | [
"MIT"
] | null | null | null | main.py | frencrs/CNDTproject | 78707eb6d83797a56d8d22a5ed4b50bf25050abb | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import math as m
import matplotlib.pyplot as plt
from collections import Counter
from scapy.all import *
count = 0
reader1 = PcapReader("TestCap1.pcapng")
stats_of_pcap = {
'packet_count': 0,
'avg_len': 0,
'len_sum': 0,
'port_list': [], 'unique_port_count': 0... | 36.983871 | 78 | 0.716092 | 356 | 2,293 | 4.143258 | 0.157303 | 0.175593 | 0.275932 | 0.115254 | 0.630508 | 0.381695 | 0.037966 | 0.037966 | 0 | 0 | 0 | 0.009073 | 0.134758 | 2,293 | 61 | 79 | 37.590164 | 0.734375 | 0 | 0 | 0 | 0 | 0 | 0.314871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019608 | 0.117647 | 0 | 0.117647 | 0.058824 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9ad400ce497bf12586b43ae282629d63f879f0f | 6,748 | py | Python | src/collectors/puppetdb/puppetdb.py | skbkontur/Diamond | f2bece462577a7c557be8a9f90f6b9340c3db571 | [
"MIT"
] | 5 | 2015-10-30T08:37:40.000Z | 2021-06-15T15:02:40.000Z | src/collectors/puppetdb/puppetdb.py | skbkontur/Diamond | f2bece462577a7c557be8a9f90f6b9340c3db571 | [
"MIT"
] | 18 | 2016-01-16T02:20:40.000Z | 2016-08-02T18:58:04.000Z | src/collectors/puppetdb/puppetdb.py | skbkontur/Diamond | f2bece462577a7c557be8a9f90f6b9340c3db571 | [
"MIT"
] | 3 | 2016-03-30T00:23:30.000Z | 2017-05-05T02:48:34.000Z | # coding=utf-8
"""
Collect metrics from Puppet DB Dashboard
#### Dependencies
* urllib2
* json
"""
import urllib2
import diamond.collector
from diamond.convertor import time as time_convertor
try:
import json
except ImportError:
import simplejson as json
class PuppetDBCollector(diamond.collector.Colle... | 39.694118 | 80 | 0.571725 | 604 | 6,748 | 6.294702 | 0.215232 | 0.069437 | 0.07575 | 0.053656 | 0.322725 | 0.280116 | 0.216465 | 0.190689 | 0.190689 | 0.190689 | 0 | 0.006714 | 0.293717 | 6,748 | 169 | 81 | 39.928994 | 0.79102 | 0.001778 | 0 | 0.197183 | 0 | 0 | 0.382442 | 0.231166 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042254 | 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 |
b9ae79b51e4ebbab6dd1f815d0e472922308dd4e | 450 | py | Python | tvdb/models/mixins.py | mikejarrett/tvdb-api | ab6a2b12cdccbd10be8028d9030d023cfbb1f712 | [
"MIT"
] | null | null | null | tvdb/models/mixins.py | mikejarrett/tvdb-api | ab6a2b12cdccbd10be8028d9030d023cfbb1f712 | [
"MIT"
] | null | null | null | tvdb/models/mixins.py | mikejarrett/tvdb-api | ab6a2b12cdccbd10be8028d9030d023cfbb1f712 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from tvdb import settings
class ThumbnailMixin(object):
@property
def thumbnail(self):
if 'filename' in self:
thumbnail = settings.THUMBNAILS_URL.format(thumbnail=self.filename)
elif 'banner' in self:
thu... | 23.684211 | 79 | 0.646667 | 47 | 450 | 6.042553 | 0.574468 | 0.137324 | 0.105634 | 0.161972 | 0.387324 | 0.387324 | 0.387324 | 0.387324 | 0.387324 | 0 | 0 | 0.003021 | 0.264444 | 450 | 18 | 80 | 25 | 0.854985 | 0.046667 | 0 | 0 | 0 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.