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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e51813cf90869e9e478904329040a48b9d0a1c3 | 269 | py | Python | Virus Project/Key Logger/KeyLog/Keylogger/Keylogger.py | nickh671/CS216-Cyber-Security | 6c372986831b7d1d1de799c2c6c29408466693d5 | [
"MIT"
] | 1 | 2020-01-30T03:25:31.000Z | 2020-01-30T03:25:31.000Z | Virus Project/Key Logger/KeyLog/Keylogger/Keylogger.py | nickh671/CS216-Cyber-Security | 6c372986831b7d1d1de799c2c6c29408466693d5 | [
"MIT"
] | null | null | null | Virus Project/Key Logger/KeyLog/Keylogger/Keylogger.py | nickh671/CS216-Cyber-Security | 6c372986831b7d1d1de799c2c6c29408466693d5 | [
"MIT"
] | null | null | null | import pynput
from pynput.keyboard import Key, Listener
def on_press(key):
print(key + " was pressed")
def on_release(key):
if key == key.esc:
return False
with Listener(on_press=on_press, on_release=on_release) as listener:
listener.join() | 19.214286 | 68 | 0.695167 | 40 | 269 | 4.525 | 0.5 | 0.116022 | 0.099448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208178 | 269 | 14 | 69 | 19.214286 | 0.849765 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f3cc995e55bc61f143ee1d25d6145d478ce825c4 | 975 | py | Python | py2/ex20.py | iamovrhere/lpthw | 6ad12dd14bbece75331b98fb20bcb37335727d52 | [
"MIT"
] | null | null | null | py2/ex20.py | iamovrhere/lpthw | 6ad12dd14bbece75331b98fb20bcb37335727d52 | [
"MIT"
] | null | null | null | py2/ex20.py | iamovrhere/lpthw | 6ad12dd14bbece75331b98fb20bcb37335727d52 | [
"MIT"
] | null | null | null | from sys import argv
script, input_file = argv
def print_all(f):
print f.read()
def rewind(f):
f.seek(0)
def print_a_line(line_count, f):
print line_count, f.readline()
def seek_a_line(seek, f):
f.seek(seek)
print seek, f.readline()
current_file = open(input_file)
print "First let's print the... | 20.3125 | 57 | 0.74359 | 170 | 975 | 4.035294 | 0.335294 | 0.16035 | 0.058309 | 0.074344 | 0.3207 | 0.19242 | 0.19242 | 0.19242 | 0.19242 | 0.19242 | 0 | 0.008485 | 0.153846 | 975 | 47 | 58 | 20.744681 | 0.82303 | 0.164103 | 0 | 0.241379 | 0 | 0 | 0.160494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034483 | null | null | 0.517241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
f3cf06856dd843c9bc2c06977c531049ba077738 | 210 | py | Python | code_source/script_frame.py | zeddo123/voidgame | 4d247af542bf646c073c9445f36456e5a18c72e9 | [
"MIT"
] | 7 | 2019-02-12T15:37:44.000Z | 2020-04-19T01:19:06.000Z | code_source/script_frame.py | zeddo123/voidgame | 4d247af542bf646c073c9445f36456e5a18c72e9 | [
"MIT"
] | null | null | null | code_source/script_frame.py | zeddo123/voidgame | 4d247af542bf646c073c9445f36456e5a18c72e9 | [
"MIT"
] | 3 | 2019-03-29T18:12:09.000Z | 2019-05-05T22:21:57.000Z | import sys
import os
import re
f = open(sys.argv[1]+"/frames.txt","w");
regex = re.compile(r"png$")
for i in sorted(os.listdir(sys.argv[1])):
if regex.search(i):
f.write(sys.argv[1]+"/"+i+'\n')
f.close() | 16.153846 | 41 | 0.62381 | 41 | 210 | 3.195122 | 0.609756 | 0.160305 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.12381 | 210 | 13 | 42 | 16.153846 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.090047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f3d22d96146bb149a9d37d0000e6b97b6775fed2 | 742 | py | Python | pythpy/state/core.py | johnstonematt/pythpy | e1459ceae3e7edd4e79bfd86ad5df43caa7b0317 | [
"MIT"
] | 1 | 2021-11-29T22:45:49.000Z | 2021-11-29T22:45:49.000Z | pythpy/state/core.py | johnstonematt/pythpy | e1459ceae3e7edd4e79bfd86ad5df43caa7b0317 | [
"MIT"
] | null | null | null | pythpy/state/core.py | johnstonematt/pythpy | e1459ceae3e7edd4e79bfd86ad5df43caa7b0317 | [
"MIT"
] | 1 | 2021-12-11T17:58:20.000Z | 2021-12-11T17:58:20.000Z | import json
from abc import ABC, abstractmethod
from construct import Struct, Container
class StateCore(ABC):
layout: Struct = None
@classmethod
@abstractmethod
def from_container(cls, container: Container):
pass
@classmethod
def parse(cls, bytes_data: bytes, factor: int):
co... | 23.935484 | 61 | 0.66442 | 89 | 742 | 5.370787 | 0.393258 | 0.106695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001799 | 0.250674 | 742 | 31 | 61 | 23.935484 | 0.857914 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f3d9c66fba4bc89341f37fb0054f5f6e77ebc4f1 | 2,990 | py | Python | shadowfiend/conductor/handlers/account_api.py | RogerYuQian/shadowfiend | beb99b523bd9941e9920e4f8305c9a1d9fc610e7 | [
"Apache-2.0"
] | 1 | 2019-03-07T04:34:43.000Z | 2019-03-07T04:34:43.000Z | shadowfiend/conductor/handlers/account_api.py | RogerYuQian/shadowfiend | beb99b523bd9941e9920e4f8305c9a1d9fc610e7 | [
"Apache-2.0"
] | null | null | null | shadowfiend/conductor/handlers/account_api.py | RogerYuQian/shadowfiend | beb99b523bd9941e9920e4f8305c9a1d9fc610e7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2014 Objectif Libre
#
# 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 ... | 38.333333 | 78 | 0.656856 | 374 | 2,990 | 5.112299 | 0.28877 | 0.129184 | 0.083682 | 0.099372 | 0.491632 | 0.406904 | 0.319038 | 0.222803 | 0.183054 | 0.083682 | 0 | 0.003981 | 0.243813 | 2,990 | 77 | 79 | 38.831169 | 0.841663 | 0.201003 | 0 | 0.173913 | 0 | 0 | 0.189132 | 0.011794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23913 | false | 0 | 0.065217 | 0 | 0.543478 | 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 | 1 | 0 | 0 | 2 |
f3fc907269919ea58efdcc699ee2085da711639e | 19,605 | py | Python | scuole/stats/schemas/tapr/schema_v2.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | 1 | 2019-03-12T04:30:02.000Z | 2019-03-12T04:30:02.000Z | scuole/stats/schemas/tapr/schema_v2.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | 616 | 2017-08-18T21:15:39.000Z | 2022-03-25T11:17:10.000Z | scuole/stats/schemas/tapr/schema_v2.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | null | null | null | SCHEMA = {
# staff-and-student-information
"all_students_count": "{short_code}PETALLC",
"african_american_count": "{short_code}PETBLAC",
"african_american_percent": "{short_code}PETBLAP",
"american_indian_count": "{short_code}PETINDC",
"american_indian_percent": "{short_code}PETINDP",
"asian... | 61.265625 | 100 | 0.762153 | 2,485 | 19,605 | 5.433803 | 0.137223 | 0.13397 | 0.113753 | 0.040287 | 0.607198 | 0.463082 | 0.280826 | 0.218914 | 0.197734 | 0.142931 | 0 | 0.023412 | 0.104565 | 19,605 | 319 | 101 | 61.45768 | 0.74577 | 0.306401 | 0 | 0 | 0 | 0 | 0.776729 | 0.57025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d09293ff75f6a47c63abbde7ef20019d664ac9e | 1,447 | py | Python | users/migrations/0013_auto_20190516_1528.py | JianaXu/productivity | f7478ce2f154538185f071d58a0e4a2cc0b17ee8 | [
"bzip2-1.0.6"
] | null | null | null | users/migrations/0013_auto_20190516_1528.py | JianaXu/productivity | f7478ce2f154538185f071d58a0e4a2cc0b17ee8 | [
"bzip2-1.0.6"
] | 10 | 2019-05-15T06:25:36.000Z | 2022-02-10T08:46:38.000Z | users/migrations/0013_auto_20190516_1528.py | JianaXu/productivity | f7478ce2f154538185f071d58a0e4a2cc0b17ee8 | [
"bzip2-1.0.6"
] | 1 | 2019-05-21T03:01:48.000Z | 2019-05-21T03:01:48.000Z | # Generated by Django 2.1.1 on 2019-05-16 07:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('users', '0012... | 28.372549 | 153 | 0.545957 | 134 | 1,447 | 5.716418 | 0.402985 | 0.093995 | 0.146214 | 0.18799 | 0.469974 | 0.399478 | 0 | 0 | 0 | 0 | 0 | 0.032735 | 0.345543 | 1,447 | 50 | 154 | 28.94 | 0.776135 | 0.031099 | 0 | 0.590909 | 1 | 0 | 0.093333 | 0.017037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.136364 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d0abc1979057205543e071fcc6933f213509abc | 890 | py | Python | modules/dbnd-airflow-monitor/src/airflow_monitor/shared/base_server_monitor_config.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | null | null | null | modules/dbnd-airflow-monitor/src/airflow_monitor/shared/base_server_monitor_config.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | null | null | null | modules/dbnd-airflow-monitor/src/airflow_monitor/shared/base_server_monitor_config.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from uuid import UUID
import attr
from airflow_monitor.shared.base_monitor_config import BaseMonitorConfig
@attr.s
class BaseServerConfig(object):
source_name: str = attr.ib()
source_type: str = attr.ib()
tracking_source_uid: UUID = attr.ib()
sync_interval: int = attr.ib... | 25.428571 | 84 | 0.705618 | 118 | 890 | 5.186441 | 0.449153 | 0.117647 | 0.169935 | 0.166667 | 0.119281 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0.002789 | 0.194382 | 890 | 34 | 85 | 26.176471 | 0.850767 | 0.049438 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.04 | 0.16 | 0 | 0.76 | 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 | 1 | 0 | 0 | 2 |
6d1cc7830a743e72f8e4afa75122aae3870fb6d8 | 142 | py | Python | Code/htmlfileread.py | coolvikas/pythonHTTPWebServer | 2b89be729380473a24d5089717c1890128861828 | [
"Apache-2.0"
] | null | null | null | Code/htmlfileread.py | coolvikas/pythonHTTPWebServer | 2b89be729380473a24d5089717c1890128861828 | [
"Apache-2.0"
] | null | null | null | Code/htmlfileread.py | coolvikas/pythonHTTPWebServer | 2b89be729380473a24d5089717c1890128861828 | [
"Apache-2.0"
] | null | null | null | def file_html(fname):
fptr=open(fname,"r")
to_send = ""
for lines in fptr:
to_send += lines;
return to_send
#file_html("myfile.html");
| 15.777778 | 26 | 0.676056 | 24 | 142 | 3.791667 | 0.583333 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161972 | 142 | 8 | 27 | 17.75 | 0.764706 | 0.176056 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d231af20a05018c0a6b1e05a8b4da554a3d0312 | 6,672 | py | Python | cs15211/CombinationSum.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/CombinationSum.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/CombinationSum.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/combination-sum/description/'
# https://github.com/kamyu104/LeetCode/blob/master/Python/combination-sum.py
# Time: O(n^m)
# Space: O(m)
#
# Description: Leetcode # 39. Combination Sum
#
# Given a set of candidate numbers (C) and a target number (T),
# find all unique combina... | 35.301587 | 138 | 0.578537 | 789 | 6,672 | 4.875792 | 0.230672 | 0.048609 | 0.050689 | 0.034312 | 0.198856 | 0.160905 | 0.145308 | 0.145308 | 0.145308 | 0.145308 | 0 | 0.017793 | 0.292416 | 6,672 | 188 | 139 | 35.489362 | 0.797077 | 0.179856 | 0 | 0.125926 | 0 | 0.051852 | 0.711418 | 0.075875 | 0 | 0 | 0 | 0 | 0.007407 | 0 | null | null | 0 | 0.007407 | null | null | 0.014815 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d2a99fecde31a6a4af9bf695cbcd53620a95d2a | 1,066 | py | Python | ax/benchmark/benchmark_method.py | sparks-baird/Ax | 57ba8714902ac218eb87dc2f90090678aa307a43 | [
"MIT"
] | null | null | null | ax/benchmark/benchmark_method.py | sparks-baird/Ax | 57ba8714902ac218eb87dc2f90090678aa307a43 | [
"MIT"
] | null | null | null | ax/benchmark/benchmark_method.py | sparks-baird/Ax | 57ba8714902ac218eb87dc2f90090678aa307a43 | [
"MIT"
] | null | null | null | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from dataclasses import dataclass
from ax.exceptions.core import UserInputError
from ax.modelbridge.generation_strategy import GenerationSt... | 35.533333 | 87 | 0.757974 | 132 | 1,066 | 6.030303 | 0.621212 | 0.030151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187617 | 1,066 | 29 | 88 | 36.758621 | 0.919169 | 0.379925 | 0 | 0 | 0 | 0 | 0.101721 | 0.045383 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6d374b34660addae6755625188158494a9832526 | 182 | py | Python | scripts/python/do_nothing.py | catforward/batch-launcher | 35fe0c67ba30f34bba781a5e9efeece3d34bf505 | [
"MIT"
] | null | null | null | scripts/python/do_nothing.py | catforward/batch-launcher | 35fe0c67ba30f34bba781a5e9efeece3d34bf505 | [
"MIT"
] | null | null | null | scripts/python/do_nothing.py | catforward/batch-launcher | 35fe0c67ba30f34bba781a5e9efeece3d34bf505 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os, sys
print("my id is %s. wrote by %s." % \
(sys.argv[1], os.getenv("PROC_TYPE", default = "unknown")))
sys.exit(0) | 20.222222 | 60 | 0.571429 | 30 | 182 | 3.433333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.192308 | 182 | 9 | 61 | 20.222222 | 0.673469 | 0.236264 | 0 | 0 | 0 | 0 | 0.315385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d395494c821bd0b349fbd6c23a637634a0b0583 | 279 | py | Python | examples/usage/expressionsB.py | rmorshea/viewdom | 24c528642e9ef0179999936b2e6f3b8a9d770df8 | [
"MIT"
] | null | null | null | examples/usage/expressionsB.py | rmorshea/viewdom | 24c528642e9ef0179999936b2e6f3b8a9d770df8 | [
"MIT"
] | null | null | null | examples/usage/expressionsB.py | rmorshea/viewdom | 24c528642e9ef0179999936b2e6f3b8a9d770df8 | [
"MIT"
] | null | null | null | from viewdom import html, render
def make_bigly(name: str) -> str:
return f'BIGLY: {name.upper()}'
name = 'viewdom'
result = render(html('<div>Hello {make_bigly(name)}</div>'))
# '<div>Hello BIGLY: VIEWDOM</div>'
# end-before
expected = '<div>Hello BIGLY: VIEWDOM</div>'
| 21.461538 | 60 | 0.666667 | 40 | 279 | 4.6 | 0.475 | 0.146739 | 0.141304 | 0.217391 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 279 | 12 | 61 | 23.25 | 0.766667 | 0.157706 | 0 | 0 | 0 | 0 | 0.405172 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
6d3b68e07d86851fe5e0a884e7544b6d16b3b476 | 206 | py | Python | faketests/slowtests/test_3.py | Djailla/pytest-sugar | 6ac4a1fa18a51e67c7a759bc11a9264cb78619e4 | [
"BSD-3-Clause"
] | 418 | 2019-08-30T00:41:51.000Z | 2022-03-21T09:31:54.000Z | faketests/slowtests/test_3.py | Djailla/pytest-sugar | 6ac4a1fa18a51e67c7a759bc11a9264cb78619e4 | [
"BSD-3-Clause"
] | 62 | 2019-08-27T16:50:36.000Z | 2022-03-11T07:03:32.000Z | faketests/slowtests/test_3.py | Djailla/pytest-sugar | 6ac4a1fa18a51e67c7a759bc11a9264cb78619e4 | [
"BSD-3-Clause"
] | 25 | 2019-11-27T15:58:16.000Z | 2022-03-21T09:31:56.000Z | import time
import pytest
@pytest.mark.parametrize("index", range(7))
def test_cat(index):
"""Perform several tests with varying execution times."""
time.sleep(0.2 + (index * 0.1))
assert True
| 22.888889 | 61 | 0.68932 | 30 | 206 | 4.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02924 | 0.169903 | 206 | 8 | 62 | 25.75 | 0.795322 | 0.247573 | 0 | 0 | 0 | 0 | 0.033557 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6d4e1c612f0259f7f3638caf74ccb8db92fe0856 | 7,093 | py | Python | src/lava/lib/dl/slayer/neuron/norm.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 37 | 2021-09-30T16:47:15.000Z | 2022-03-07T22:29:21.000Z | src/lava/lib/dl/slayer/neuron/norm.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 36 | 2021-11-04T16:54:55.000Z | 2022-03-31T02:26:29.000Z | src/lava/lib/dl/slayer/neuron/norm.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 20 | 2021-10-29T22:55:58.000Z | 2022-03-22T17:27:16.000Z | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
"""Neuron normalization methods."""
import torch
class MeanOnlyBatchNorm(torch.nn.Module):
"""Implements mean only batch norm with optional user defined quantization
using pre-hook-function. The mean of batchnorm translates to n... | 30.705628 | 79 | 0.565064 | 897 | 7,093 | 4.32107 | 0.179487 | 0.01548 | 0.055728 | 0.046956 | 0.736326 | 0.700722 | 0.699948 | 0.699948 | 0.699174 | 0.699174 | 0 | 0.019405 | 0.331595 | 7,093 | 230 | 80 | 30.83913 | 0.798144 | 0.29367 | 0 | 0.608 | 0 | 0 | 0.028031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.008 | 0 | 0.152 | 0.016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d4ed1f29076811117c1ee8af17b2c9fb71cec92 | 2,596 | py | Python | domonic/constants/keyboard.py | Jordan-Cottle/domonic | 05d70af0d1564d3ba80c860bb5f5bfe089293b18 | [
"MIT"
] | 1 | 2022-03-09T03:39:04.000Z | 2022-03-09T03:39:04.000Z | domonic/constants/keyboard.py | Jordan-Cottle/domonic | 05d70af0d1564d3ba80c860bb5f5bfe089293b18 | [
"MIT"
] | null | null | null | domonic/constants/keyboard.py | Jordan-Cottle/domonic | 05d70af0d1564d3ba80c860bb5f5bfe089293b18 | [
"MIT"
] | null | null | null | """
domonic.constants.keyboard
====================================
"""
class KeyCode():
A = '65' #:
ALTERNATE = '18' #:
B = '66' #:
BACKQUOTE = '192' #:
BACKSLASH = '220' #:
BACKSPACE = '8' #:
C = '67' #:
CAPS_LOCK = '20' #:
COMMA = '188' #:
COMMAND = '15' ... | 20.768 | 54 | 0.373267 | 275 | 2,596 | 3.385455 | 0.785455 | 0.027927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178179 | 0.403313 | 2,596 | 124 | 55 | 20.935484 | 0.422853 | 0.160247 | 0 | 0 | 0 | 0 | 0.114578 | 0 | 0 | 0 | 0 | 0.008065 | 0 | 1 | 0.009709 | false | 0.009709 | 0 | 0 | 0.990291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6d5062c8e3235dd5b1d309a37505fc11bcdff8b7 | 370 | py | Python | setup.py | jeffFranklin/linkbot | 8696061bb03d80ff70a5436a967be02df0e7a938 | [
"Apache-2.0"
] | 1 | 2018-10-11T16:48:19.000Z | 2018-10-11T16:48:19.000Z | setup.py | jeffFranklin/linkbot | 8696061bb03d80ff70a5436a967be02df0e7a938 | [
"Apache-2.0"
] | null | null | null | setup.py | jeffFranklin/linkbot | 8696061bb03d80ff70a5436a967be02df0e7a938 | [
"Apache-2.0"
] | 1 | 2018-03-30T16:32:30.000Z | 2018-03-30T16:32:30.000Z | from setuptools import setup
install_requires = ['beautifulsoup4',
'simplejson',
'slacker',
'jira',
'requests',
'websocket-client']
setup(name='linkbot',
install_requires=install_requires,
description='slac... | 28.461538 | 72 | 0.543243 | 29 | 370 | 6.827586 | 0.793103 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.367568 | 370 | 12 | 73 | 30.833333 | 0.84188 | 0 | 0 | 0 | 0 | 0 | 0.316216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 1 | 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 | 2 |
6d5f77bccd5162155079b37338363a35a130b2e2 | 901 | py | Python | service/src/service/edit_distance.py | xuqiongkai/ALTER | a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7 | [
"MIT"
] | 8 | 2019-09-18T01:14:07.000Z | 2022-02-05T03:43:24.000Z | service/src/service/edit_distance.py | xuqiongkai/ALTER | a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7 | [
"MIT"
] | 4 | 2019-11-15T03:09:52.000Z | 2022-03-24T15:01:55.000Z | service/src/service/edit_distance.py | xuqiongkai/ALTER | a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7 | [
"MIT"
] | 4 | 2019-09-17T22:17:30.000Z | 2022-02-05T03:43:28.000Z | import editdistance
class EditDistanceService:
INSTACE = None
@classmethod
def create(cls):
if cls.INSTACE is None:
cls.INSTACE = EditDistanceService()
@classmethod
def instance(cls):
if cls.INSTACE is None:
cls.create()
return cls.INSTACE
def... | 26.5 | 100 | 0.521643 | 95 | 901 | 4.894737 | 0.368421 | 0.086022 | 0.034409 | 0.064516 | 0.103226 | 0.103226 | 0.103226 | 0 | 0 | 0 | 0 | 0.050788 | 0.36626 | 901 | 33 | 101 | 27.30303 | 0.763573 | 0.418424 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ed8e6ab269e092f762ee8df541cc82f929c9e8fd | 283 | py | Python | molecule/default/tests/test_default.py | tottoto/ansible-role-kubectl | a6df49ffa401b4bde930feda75fb28abc484cb16 | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | tottoto/ansible-role-kubectl | a6df49ffa401b4bde930feda75fb28abc484cb16 | [
"MIT"
] | 4 | 2020-02-26T20:19:31.000Z | 2021-09-23T23:33:14.000Z | molecule/default/tests/test_default.py | tottoto/ansible-role-kubectl | a6df49ffa401b4bde930feda75fb28abc484cb16 | [
"MIT"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_kubectl_is_installed(host):
kubectl = host.package('kubectl')
assert kubectl.is_installed
| 23.583333 | 63 | 0.791519 | 36 | 283 | 5.944444 | 0.611111 | 0.130841 | 0.196262 | 0.252336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109541 | 283 | 11 | 64 | 25.727273 | 0.849206 | 0 | 0 | 0 | 0 | 0 | 0.116608 | 0.081272 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ed9138a01663758b17298e639488cbf64b28b95b | 1,247 | py | Python | core/screen/screenshot_image.py | echim/pySteps | c33ac3446593b545aece475062d140527dcb443c | [
"MIT"
] | 8 | 2018-05-15T21:20:40.000Z | 2021-08-19T00:25:18.000Z | core/screen/screenshot_image.py | echim/pySteps | c33ac3446593b545aece475062d140527dcb443c | [
"MIT"
] | null | null | null | core/screen/screenshot_image.py | echim/pySteps | c33ac3446593b545aece475062d140527dcb443c | [
"MIT"
] | 2 | 2018-09-12T01:33:54.000Z | 2021-01-25T02:21:58.000Z | import cv2
import numpy as np
from pyautogui import screenshot
from pyautogui import size as get_screen_size
from core.screen.screen_rectangle import ScreenRectangle
class ScreenshotImage:
def __init__(self, in_region: ScreenRectangle = None):
screen_width, screen_height = get_screen_size()
regio... | 31.974359 | 119 | 0.709703 | 166 | 1,247 | 5.024096 | 0.349398 | 0.057554 | 0.077938 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024341 | 0.209302 | 1,247 | 38 | 120 | 32.815789 | 0.821501 | 0.08741 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.185185 | 0.148148 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
eda0102bee225153a9a9c699f2932d3638a5b5ac | 192 | py | Python | Test.py | pgDora56/MakeVirtualBlogArticle | 17de05ace2dfc85566563796553cde212b647749 | [
"MIT"
] | null | null | null | Test.py | pgDora56/MakeVirtualBlogArticle | 17de05ace2dfc85566563796553cde212b647749 | [
"MIT"
] | null | null | null | Test.py | pgDora56/MakeVirtualBlogArticle | 17de05ace2dfc85566563796553cde212b647749 | [
"MIT"
] | null | null | null | import MeCab
with open(r"output\417\001.txt", encoding="utf-8") as f:
s = f.read()
m = MeCab.Tagger().parse(s)
print(m)
m = MeCab.Tagger().parse("[NEWLINE]")
print(m)
| 17.454545 | 57 | 0.572917 | 31 | 192 | 3.548387 | 0.677419 | 0.109091 | 0.218182 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04698 | 0.223958 | 192 | 10 | 58 | 19.2 | 0.691275 | 0 | 0 | 0.285714 | 0 | 0 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eda65be31fd3ddf73831bba093f8142205944ce0 | 6,629 | py | Python | scripts/extract_coll_format.py | therosko/Thesis-NER-in-English-novels | 7988c3aa4f904e91b1e674090dbdc6487b4ad042 | [
"Apache-2.0"
] | null | null | null | scripts/extract_coll_format.py | therosko/Thesis-NER-in-English-novels | 7988c3aa4f904e91b1e674090dbdc6487b4ad042 | [
"Apache-2.0"
] | null | null | null | scripts/extract_coll_format.py | therosko/Thesis-NER-in-English-novels | 7988c3aa4f904e91b1e674090dbdc6487b4ad042 | [
"Apache-2.0"
] | null | null | null |
####################################################################################################################################################
# Flair Dekker
import pandas as pd
import os
import csv
# import own script
from hyphens import *
from patch_flair_parsing import *
from calculate_metrics import *
de... | 53.459677 | 292 | 0.610348 | 871 | 6,629 | 4.43054 | 0.222732 | 0.079813 | 0.066079 | 0.088106 | 0.73957 | 0.710288 | 0.664421 | 0.623478 | 0.570096 | 0.545219 | 0 | 0.010763 | 0.187057 | 6,629 | 123 | 293 | 53.894309 | 0.70514 | 0.098808 | 0 | 0.456522 | 0 | 0.043478 | 0.246996 | 0.051943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.097826 | 0.130435 | 0 | 0.152174 | 0.130435 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
edaa2e6e59e705770a65843fb484ab08934862e0 | 148 | py | Python | ml_model_evaluation/__init__.py | nkaenzig/ml_model_evaluation | 0064a223b3a6362b7e281d9241cb9ffe97247bb0 | [
"MIT"
] | null | null | null | ml_model_evaluation/__init__.py | nkaenzig/ml_model_evaluation | 0064a223b3a6362b7e281d9241cb9ffe97247bb0 | [
"MIT"
] | null | null | null | ml_model_evaluation/__init__.py | nkaenzig/ml_model_evaluation | 0064a223b3a6362b7e281d9241cb9ffe97247bb0 | [
"MIT"
] | null | null | null | """Top-level package for ML Model Evaluation Toolkit."""
__author__ = """Nicolas Kaenzig"""
__email__ = "nkaenzig@gmail.com"
__version__ = "0.1.0"
| 24.666667 | 56 | 0.709459 | 19 | 148 | 4.894737 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.121622 | 148 | 5 | 57 | 29.6 | 0.692308 | 0.337838 | 0 | 0 | 0 | 0 | 0.413043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
edc129a8cacd43a8eb75eac16b6fa359f8e35f39 | 3,241 | py | Python | python/Generate_Employee_Codes_Data.py | jdglaser/census-dw | 8d6eabf7e5c9fc5c16eb93a1ce6077fa49c8482b | [
"MIT"
] | null | null | null | python/Generate_Employee_Codes_Data.py | jdglaser/census-dw | 8d6eabf7e5c9fc5c16eb93a1ce6077fa49c8482b | [
"MIT"
] | null | null | null | python/Generate_Employee_Codes_Data.py | jdglaser/census-dw | 8d6eabf7e5c9fc5c16eb93a1ce6077fa49c8482b | [
"MIT"
] | null | null | null | '''
The functions in this script are used to fill data in the census data warehouse.
These functions are used to fill dbo.DIM_CBP_Employee_Sizes
'''
__author__ = "Jarred Glaser"
__last_updated__ = "2019-11-08"
import pandas as pd
from sqlalchemy import create_engine
values = {
"001": "All establishments",
... | 47.661765 | 129 | 0.676952 | 422 | 3,241 | 5.113744 | 0.350711 | 0.358665 | 0.048656 | 0.048193 | 0.052827 | 0.030584 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 0.203024 | 3,241 | 67 | 130 | 48.373134 | 0.713511 | 0.043505 | 0 | 0 | 0 | 0 | 0.661061 | 0.01423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.035088 | 0 | 0.052632 | 0.017544 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
edc2c3d1d08a03106229f701c423aadb58f2f336 | 171 | py | Python | template/python/base-class.py | hiroebe/sonictemplate-vim | 55288245b005076c424da33f15b3f2301af24f3a | [
"MIT"
] | 130 | 2020-01-29T11:49:38.000Z | 2022-03-18T11:31:47.000Z | template/python/base-class.py | hiroebe/sonictemplate-vim | 55288245b005076c424da33f15b3f2301af24f3a | [
"MIT"
] | 17 | 2020-03-16T07:16:43.000Z | 2022-02-05T02:13:39.000Z | template/python/base-class.py | hiroebe/sonictemplate-vim | 55288245b005076c424da33f15b3f2301af24f3a | [
"MIT"
] | 14 | 2018-11-24T01:47:14.000Z | 2020-09-11T04:29:35.000Z | """
{{_name_}}
"""
class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(object):
def __init__(self{{_cursor_}}):
def __repr__(self):
return
| 15.545455 | 76 | 0.532164 | 18 | 171 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.169591 | 171 | 10 | 77 | 17.1 | 0.521127 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
edcbd1b459fd418223a16b044ad6e4114c07aee2 | 3,296 | py | Python | antioch/test/test_permissions.py | philchristensen/antioch | 7fe27c961ae81b7655c6428038c85eefad27e980 | [
"MIT"
] | 15 | 2015-10-07T06:30:22.000Z | 2022-03-07T19:44:55.000Z | antioch/test/test_permissions.py | philchristensen/antioch | 7fe27c961ae81b7655c6428038c85eefad27e980 | [
"MIT"
] | 2 | 2016-10-17T05:04:58.000Z | 2018-09-10T02:36:15.000Z | antioch/test/test_permissions.py | philchristensen/antioch | 7fe27c961ae81b7655c6428038c85eefad27e980 | [
"MIT"
] | 2 | 2018-07-30T12:58:33.000Z | 2018-11-26T03:17:34.000Z | # antioch
# Copyright (c) 1999-2019 Phil Christensen
#
# See LICENSE for details
import sys, os, os.path, time
from django.test import TestCase
from django.db import connection
from antioch import test
from antioch.core import errors, exchange
# sys.setrecursionlimit(100)
class PermissionsTestCase(TestCase):
f... | 41.721519 | 79 | 0.67233 | 401 | 3,296 | 5.411471 | 0.167082 | 0.128571 | 0.132719 | 0.125346 | 0.747926 | 0.732719 | 0.606452 | 0.281106 | 0.247926 | 0.176959 | 0 | 0.004106 | 0.187197 | 3,296 | 78 | 80 | 42.25641 | 0.805898 | 0.030036 | 0 | 0.206897 | 0 | 0 | 0.091507 | 0 | 0 | 0 | 0 | 0 | 0.517241 | 1 | 0.103448 | false | 0.017241 | 0.086207 | 0 | 0.224138 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eddbe83e48db8fef41ac38d6e5ca40fd5e8b0743 | 1,024 | py | Python | sxml/utils.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | sxml/utils.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | sxml/utils.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | import re
import importlib.util
import sys
from .options import Option
def clean_spaces(text: str) -> str:
return re.sub(r'\s+', ' ', text).strip()
def patch_options(options, kwargs):
return {
k: options[v.key] if isinstance(v, Option) else v
for k, v in kwargs.items()
}
def wrap_globa... | 25.6 | 76 | 0.657227 | 133 | 1,024 | 4.902256 | 0.443609 | 0.079755 | 0.058282 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001253 | 0.220703 | 1,024 | 39 | 77 | 26.25641 | 0.815789 | 0.071289 | 0 | 0 | 0 | 0 | 0.011603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0.071429 | 0.714286 | 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 | 1 | 0 | 0 | 2 |
ede60152664399f915e6a4e1c0d2aab4aa9ad6f4 | 3,889 | py | Python | quantsbin/derivativepricing/namesnmapper.py | quantsbin/Quantsbin | 362522653b4b8ebcf14461e3f44fe22dea465adc | [
"MIT"
] | 132 | 2018-06-20T08:40:48.000Z | 2022-03-24T11:34:22.000Z | quantsbin/derivativepricing/namesnmapper.py | williamjiamin/Quantsbin | 14a135174d9f08a70e36ed55279fbd7458e1ad48 | [
"MIT"
] | 5 | 2018-07-08T06:23:53.000Z | 2021-08-08T06:30:43.000Z | quantsbin/derivativepricing/namesnmapper.py | williamjiamin/Quantsbin | 14a135174d9f08a70e36ed55279fbd7458e1ad48 | [
"MIT"
] | 35 | 2018-07-12T10:07:30.000Z | 2022-03-01T04:00:17.000Z | """
developed by Quantsbin - Jun'18
"""
from enum import Enum
class AssetClass(Enum):
EQOPTION = 'EqOption'
FXOPTION = 'FXOption'
FUTOPTION = 'FutOption'
COMOPTION = 'ComOption'
class DerivativeType(Enum):
VANILLA_OPTION = 'Vanilla Option'
class PricingModel(Enum):
BLACKSCHOLESMERTON... | 32.408333 | 118 | 0.643096 | 369 | 3,889 | 6.674797 | 0.211382 | 0.220869 | 0.131953 | 0.146163 | 0.584653 | 0.584653 | 0.584653 | 0.517255 | 0.465692 | 0.34389 | 0 | 0.006522 | 0.250964 | 3,889 | 119 | 119 | 32.680672 | 0.838998 | 0.007971 | 0 | 0.157303 | 0 | 0 | 0.068921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022472 | 0 | 0.539326 | 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 | 1 | 0 | 0 | 2 |
edebda6cc858b9f96203506817b64f8c7df83a73 | 123 | py | Python | user_messages/__init__.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 21 | 2018-04-18T17:58:12.000Z | 2022-01-19T12:41:01.000Z | user_messages/__init__.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 4 | 2018-04-24T11:04:15.000Z | 2022-02-03T18:35:21.000Z | user_messages/__init__.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 7 | 2018-03-04T16:03:44.000Z | 2022-02-03T15:50:39.000Z | VERSION = (0, 7, 0)
__version__ = ".".join(map(str, VERSION))
default_app_config = "user_messages.apps.UserMessagesConfig"
| 30.75 | 60 | 0.739837 | 16 | 123 | 5.25 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.097561 | 123 | 3 | 61 | 41 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.308943 | 0.300813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
edf01de9776603359ad97ab421c5a8408e19e47b | 164 | py | Python | setup.py | cdominik/optool | da0ba3a8d4913c60f35020293ab656f3f5c52000 | [
"MIT"
] | 11 | 2020-10-13T13:24:44.000Z | 2021-12-17T09:46:00.000Z | setup.py | cdominik/optool | da0ba3a8d4913c60f35020293ab656f3f5c52000 | [
"MIT"
] | 2 | 2021-08-28T15:11:09.000Z | 2022-01-26T10:14:58.000Z | setup.py | cdominik/optool | da0ba3a8d4913c60f35020293ab656f3f5c52000 | [
"MIT"
] | 1 | 2022-03-17T20:33:36.000Z | 2022-03-17T20:33:36.000Z | from setuptools import setup
setup(
name='optool',
version='1.9.4',
py_modules=['optool'],
install_requires=[
'numpy','matplotlib'
]
)
| 14.909091 | 28 | 0.591463 | 18 | 164 | 5.277778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.25 | 164 | 10 | 29 | 16.4 | 0.747967 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
edfb80cf8ed104501c31146fad7007f0df5f648f | 13,879 | py | Python | chained/functions/lambded.py | andrewsonin/chained | 77788acae642d9553d9d454d4fc6086856b52425 | [
"MIT"
] | null | null | null | chained/functions/lambded.py | andrewsonin/chained | 77788acae642d9553d9d454d4fc6086856b52425 | [
"MIT"
] | null | null | null | chained/functions/lambded.py | andrewsonin/chained | 77788acae642d9553d9d454d4fc6086856b52425 | [
"MIT"
] | null | null | null | from functools import partial
from keyword import iskeyword
from typing import Tuple, Final, Callable, Any, List, Generator, NoReturn, Dict
from chained.type_utils.meta import ChainedMeta
def _call_monkey_patcher(self, *args, **kwargs):
"""LambdaExpr.__call__ monkey patcher"""
return self.eval()(*args, **kwa... | 29.529787 | 107 | 0.541393 | 1,444 | 13,879 | 4.880194 | 0.175208 | 0.081737 | 0.053924 | 0.062012 | 0.318433 | 0.266638 | 0.217256 | 0.175394 | 0.071378 | 0.06556 | 0 | 0.009651 | 0.290727 | 13,879 | 469 | 108 | 29.592751 | 0.706217 | 0.217955 | 0 | 0.125 | 0 | 0 | 0.101386 | 0.007577 | 0 | 0 | 0 | 0 | 0 | 1 | 0.293103 | false | 0.00431 | 0.017241 | 0.181034 | 0.633621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
edfe065eb3de09fc44af52b386a14934e51092ab | 494 | py | Python | speckle/schemas/Line.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 24 | 2018-11-16T03:17:58.000Z | 2021-11-19T11:32:01.000Z | speckle/schemas/Line.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 43 | 2019-01-15T17:48:24.000Z | 2020-12-02T19:09:55.000Z | speckle/schemas/Line.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 12 | 2019-02-06T20:54:17.000Z | 2020-12-01T21:49:06.000Z | import json
import json
import hashlib
from pydantic import BaseModel, validator
from typing import List, Optional
from speckle.base.resource import ResourceBaseSchema
from speckle.resources.objects import SpeckleObject
from speckle.schemas import Interval
NAME = 'line'
class Schema(SpeckleObject):
type: Optional... | 24.7 | 52 | 0.755061 | 58 | 494 | 6.413793 | 0.568966 | 0.08871 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165992 | 494 | 19 | 53 | 26 | 0.902913 | 0 | 0 | 0.125 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.875 | 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 | 1 | 0 | 0 | 2 |
61199627024d137c74ab6e479ac4de2d438e5357 | 1,014 | py | Python | Autocoders/Python/utils/NoseTests/src/Config.py | chrisdonlan/fprime | 0cab90e238cff1b50c20f1e148a44cf8827a5bf8 | [
"Apache-2.0"
] | 5 | 2019-10-22T03:41:02.000Z | 2022-01-16T12:48:31.000Z | Autocoders/Python/utils/NoseTests/src/Config.py | chrisdonlan/fprime | 0cab90e238cff1b50c20f1e148a44cf8827a5bf8 | [
"Apache-2.0"
] | 27 | 2019-02-07T17:58:58.000Z | 2019-08-13T00:46:24.000Z | Autocoders/Python/utils/NoseTests/src/Config.py | chrisdonlan/fprime | 0cab90e238cff1b50c20f1e148a44cf8827a5bf8 | [
"Apache-2.0"
] | 3 | 2019-01-01T18:44:37.000Z | 2019-08-01T01:19:39.000Z | import sys
from . import BuildConstants
class Config(object):
__instance = None
system = None
cCompiler = None
includes = None
libs = None
def __init__(self):
self.system = sys.platform
self.cCompiler = None
self.includes = None
self.libs = None
self.B... | 22.533333 | 72 | 0.628205 | 108 | 1,014 | 5.787037 | 0.296296 | 0.096 | 0.0672 | 0.1296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278107 | 1,014 | 44 | 73 | 23.045455 | 0.853825 | 0 | 0 | 0 | 0 | 0 | 0.030572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.064516 | 0.096774 | 0.645161 | 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 | 1 | 0 | 0 | 2 |
611cf37b69aa1de32e5e2eeaf63ef45b0b9c1091 | 1,912 | py | Python | src/pyqtschema/widgets/base.py | amsico/pyqtschema | 27fdc3c56bcef6975f6cd2624859e43f446320a1 | [
"MIT"
] | 1 | 2022-02-17T09:04:13.000Z | 2022-02-17T09:04:13.000Z | src/pyqtschema/widgets/base.py | amsico/pyqtschema | 27fdc3c56bcef6975f6cd2624859e43f446320a1 | [
"MIT"
] | 12 | 2022-01-28T22:31:46.000Z | 2022-02-09T23:06:07.000Z | src/pyqtschema/widgets/base.py | amsico/pyqtschema | 27fdc3c56bcef6975f6cd2624859e43f446320a1 | [
"MIT"
] | null | null | null | from functools import wraps
from typing import Tuple
from PyQt5.QtGui import QColor
from .signal import Signal
class StateProperty(property):
def setter(self, fset):
@wraps(fset)
def _setter(*args):
*head, value = args
if value is not None:
fset(*head, va... | 26.191781 | 92 | 0.648013 | 228 | 1,912 | 5.175439 | 0.359649 | 0.030508 | 0.033051 | 0.049153 | 0.101695 | 0.072881 | 0.072881 | 0 | 0 | 0 | 0 | 0.003494 | 0.251569 | 1,912 | 72 | 93 | 26.555556 | 0.821104 | 0.023536 | 0 | 0.041667 | 0 | 0 | 0.07043 | 0.033333 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.208333 | false | 0.020833 | 0.083333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
612084590d1479f82fcaff1c57d19d0b25438539 | 375 | py | Python | kili/queries/issue/queries.py | ASonay/kili-playground | 9624073703b5e6151cf496f44f17f531576875b7 | [
"Apache-2.0"
] | 214 | 2019-08-05T14:55:01.000Z | 2022-03-28T21:02:22.000Z | kili/queries/issue/queries.py | x213212/kili-playground | dfb94c2d54bedfd7fec452b91f811587a2156c13 | [
"Apache-2.0"
] | 10 | 2020-05-14T10:44:16.000Z | 2022-03-08T09:39:24.000Z | kili/queries/issue/queries.py | x213212/kili-playground | dfb94c2d54bedfd7fec452b91f811587a2156c13 | [
"Apache-2.0"
] | 19 | 2019-11-26T22:41:09.000Z | 2022-01-16T19:17:38.000Z | """
Queries of issue queries
"""
def gql_issues(fragment):
"""
Return the GraphQL issues query
"""
return f'''
query ($where: IssueWhere!, $first: PageSize!, $skip: Int!) {{
data: issues(where: $where, first: $first, skip: $skip) {{
{fragment}
}}
}}
'''
GQL_ISSUES_COUNT = '''
query($where: I... | 15.625 | 62 | 0.594667 | 41 | 375 | 5.365854 | 0.512195 | 0.081818 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208 | 375 | 23 | 63 | 16.304348 | 0.740741 | 0.149333 | 0 | 0.307692 | 0 | 0 | 0.726351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6124cc91aa35fe91816d7742ae48f2a71bd859b7 | 2,083 | py | Python | mautrix/client/state_store/sqlalchemy/mx_room_state.py | tulir/mautrix-appservice-python | d180603445bb0bc465a7b2ff918c4ac28a5dbfc2 | [
"MIT"
] | 1 | 2018-08-24T13:33:30.000Z | 2018-08-24T13:33:30.000Z | mautrix/client/state_store/sqlalchemy/mx_room_state.py | tulir/mautrix-appservice-python | d180603445bb0bc465a7b2ff918c4ac28a5dbfc2 | [
"MIT"
] | 4 | 2018-07-10T11:43:46.000Z | 2018-09-03T22:08:02.000Z | mautrix/client/state_store/sqlalchemy/mx_room_state.py | tulir/mautrix-appservice-python | d180603445bb0bc465a7b2ff918c4ac28a5dbfc2 | [
"MIT"
] | 2 | 2018-07-03T04:07:08.000Z | 2018-09-10T03:13:59.000Z | # Copyright (c) 2022 Tulir Asokan
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import annotations
from typing import Type
import json
from sqlalch... | 31.089552 | 88 | 0.708113 | 266 | 2,083 | 5.349624 | 0.417293 | 0.042164 | 0.039353 | 0.02811 | 0.077301 | 0.036543 | 0.036543 | 0 | 0 | 0 | 0 | 0.004825 | 0.204033 | 2,083 | 66 | 89 | 31.560606 | 0.853438 | 0.107537 | 0 | 0.155556 | 0 | 0 | 0.007016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.133333 | 0.111111 | 0.711111 | 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 | 1 | 0 | 0 | 2 |
b61c4cafdf5a3278da20f6b8bf7ced09fb26ca7b | 1,300 | py | Python | warp/tests/test_import.py | NVIDIA/warp | fc7d3255435fc2fe6b54300e689f74e6d67418ca | [
"CNRI-Python-GPL-Compatible",
"Unlicense",
"0BSD",
"Apache-2.0",
"MIT"
] | 306 | 2022-03-21T23:24:13.000Z | 2022-03-31T21:11:28.000Z | warp/tests/test_import.py | NVIDIA/warp | fc7d3255435fc2fe6b54300e689f74e6d67418ca | [
"CNRI-Python-GPL-Compatible",
"Unlicense",
"0BSD",
"Apache-2.0",
"MIT"
] | 11 | 2022-03-23T06:23:25.000Z | 2022-03-31T22:17:18.000Z | warp/tests/test_import.py | NVIDIA/warp | fc7d3255435fc2fe6b54300e689f74e6d67418ca | [
"CNRI-Python-GPL-Compatible",
"Unlicense",
"0BSD",
"Apache-2.0",
"MIT"
] | 18 | 2022-03-22T16:27:21.000Z | 2022-03-30T20:07:47.000Z | # Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved.
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and relate... | 24.528302 | 105 | 0.743846 | 181 | 1,300 | 5.198895 | 0.530387 | 0.042508 | 0.044633 | 0.023379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013121 | 0.179231 | 1,300 | 53 | 106 | 24.528302 | 0.868791 | 0.416923 | 0 | 0 | 0 | 0 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.04 | 0.4 | 0 | 0.56 | 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 | 1 | 0 | 0 | 2 |
b6209c445497bea1ab0c7570c19a91057e31a667 | 1,111 | py | Python | Webpage/arbeitsstunden/migrations/0015_auto_20210718_1006.py | ASV-Aachen/Website | bbfc02d71dde67fdf89a4b819b795a73435da7cf | [
"Apache-2.0"
] | null | null | null | Webpage/arbeitsstunden/migrations/0015_auto_20210718_1006.py | ASV-Aachen/Website | bbfc02d71dde67fdf89a4b819b795a73435da7cf | [
"Apache-2.0"
] | 46 | 2022-01-08T12:03:24.000Z | 2022-03-30T08:51:05.000Z | Webpage/arbeitsstunden/migrations/0015_auto_20210718_1006.py | ASV-Aachen/Website | bbfc02d71dde67fdf89a4b819b795a73435da7cf | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-18 10:06
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('arbeitsstunden', '0014_auto_20210705_1948'),
]
operations = [
migrations.AlterField(
... | 30.861111 | 123 | 0.616562 | 112 | 1,111 | 6.026786 | 0.473214 | 0.047407 | 0.148148 | 0.171852 | 0.422222 | 0.422222 | 0.219259 | 0.219259 | 0.219259 | 0.219259 | 0 | 0.046455 | 0.263726 | 1,111 | 35 | 124 | 31.742857 | 0.778729 | 0.040504 | 0 | 0.344828 | 1 | 0 | 0.152256 | 0.06203 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b62746ea549f4b55c3d583736d4f4533db5b42da | 572 | py | Python | ReLERNN/imports.py | peterdfields/ReLERNN | 9187dca7f9068caa0b6490d389581084da3c0a1d | [
"MIT"
] | 14 | 2020-06-18T03:22:56.000Z | 2022-03-14T08:17:55.000Z | ReLERNN/imports.py | peterdfields/ReLERNN | 9187dca7f9068caa0b6490d389581084da3c0a1d | [
"MIT"
] | 10 | 2020-07-06T07:53:55.000Z | 2021-08-17T13:45:23.000Z | ReLERNN/imports.py | peterdfields/ReLERNN | 9187dca7f9068caa0b6490d389581084da3c0a1d | [
"MIT"
] | 5 | 2019-06-11T14:37:52.000Z | 2020-03-25T07:54:24.000Z | import glob
import pickle
import sys
import msprime as msp
import numpy as np
import os
import multiprocessing as mp
import shutil
import random
import copy
import argparse
import h5py
import allel
import time
from sklearn.neighbors import NearestNeighbors
from sklearn.utils import resample
import matplotlib as mpl
m... | 21.185185 | 85 | 0.844406 | 82 | 572 | 5.865854 | 0.512195 | 0.087318 | 0.118503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002004 | 0.127622 | 572 | 26 | 86 | 22 | 0.961924 | 0 | 0 | 0 | 0 | 0 | 0.005245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.956522 | 0 | 0.956522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b630ab4753b0be00f46c81db30f53c9e533bb3f2 | 28,223 | py | Python | members_ownership/Rishav/data_prep_1.py | TeamEpicProjects/Customer-Prioritization-for-Marketing | 88dfbca68759394200b2c4ec042d3293591a567a | [
"MIT"
] | 2 | 2021-09-09T11:49:06.000Z | 2021-09-12T17:02:59.000Z | members_ownership/Rishav/data_prep_1.py | TeamEpicProjects/Customer-Prioritization-for-Marketing | 88dfbca68759394200b2c4ec042d3293591a567a | [
"MIT"
] | null | null | null | members_ownership/Rishav/data_prep_1.py | TeamEpicProjects/Customer-Prioritization-for-Marketing | 88dfbca68759394200b2c4ec042d3293591a567a | [
"MIT"
] | 2 | 2021-09-10T04:20:10.000Z | 2021-09-11T11:26:03.000Z | # This script merges and consolidates the beacons and sessions datasets into 1 dataset
from pandarallel import pandarallel
import pandas as pd
import datetime
import sys
import os
pandarallel.initialize(progress_bar=False, nb_workers=4)
base_path = os.path.dirname(os.path.realpath(__file__))
def df_in... | 70.734336 | 215 | 0.570563 | 4,092 | 28,223 | 3.713832 | 0.090176 | 0.04264 | 0.040798 | 0.032243 | 0.777719 | 0.735343 | 0.693755 | 0.624268 | 0.602948 | 0.588932 | 0 | 0.122404 | 0.30383 | 28,223 | 398 | 216 | 70.91206 | 0.651059 | 0.542395 | 0 | 0.356589 | 0 | 0.015504 | 0.279528 | 0.026394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007752 | false | 0 | 0.03876 | 0 | 0.054264 | 0.496124 | 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 | 1 | 0 | 2 |
b64517ec4f6d43ec7b9cf51a4bfdace68382f169 | 1,684 | py | Python | tests/graphql/objects/and_or_not_permissions/objects.py | karlosss/simple_api | 03f87035c648f161d5e7a59b24f4e04bd34399f1 | [
"MIT"
] | 2 | 2020-11-13T14:00:06.000Z | 2020-12-19T11:50:22.000Z | tests/graphql/objects/and_or_not_permissions/objects.py | karlosss/simple_api | 03f87035c648f161d5e7a59b24f4e04bd34399f1 | [
"MIT"
] | 5 | 2021-02-04T14:27:43.000Z | 2021-06-04T23:22:24.000Z | tests/graphql/objects/and_or_not_permissions/objects.py | karlosss/simple_api | 03f87035c648f161d5e7a59b24f4e04bd34399f1 | [
"MIT"
] | 1 | 2021-01-06T13:54:38.000Z | 2021-01-06T13:54:38.000Z | from simple_api.adapters.graphql.graphql import GraphQLAdapter
from simple_api.adapters.utils import generate
from simple_api.object.actions import Action
from simple_api.object.datatypes import BooleanType
from simple_api.object.permissions import AllowNone, Not, AllowAll, Or, And
from tests.graphql.graphql_test_util... | 62.37037 | 117 | 0.748812 | 202 | 1,684 | 6.09901 | 0.207921 | 0.097403 | 0.137987 | 0.227273 | 0.525162 | 0.525162 | 0.525162 | 0.525162 | 0.525162 | 0.525162 | 0 | 0.006711 | 0.115202 | 1,684 | 26 | 118 | 64.769231 | 0.820134 | 0 | 0 | 0 | 1 | 0 | 0.03266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6493add2b6c73278cf7ee4ca1cf5048f5519767 | 4,433 | py | Python | climetlab/arguments/transformers.py | pmaciel/climetlab | faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c | [
"Apache-2.0"
] | null | null | null | climetlab/arguments/transformers.py | pmaciel/climetlab | faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c | [
"Apache-2.0"
] | null | null | null | climetlab/arguments/transformers.py | pmaciel/climetlab | faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c | [
"Apache-2.0"
] | null | null | null | # (C) Copyright 2021 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmenta... | 27.880503 | 78 | 0.626438 | 523 | 4,433 | 5.116635 | 0.25239 | 0.043722 | 0.024664 | 0.026158 | 0.201794 | 0.146487 | 0.084454 | 0.065022 | 0.044096 | 0.044096 | 0 | 0.002488 | 0.274532 | 4,433 | 158 | 79 | 28.056962 | 0.829602 | 0.097 | 0 | 0.256881 | 0 | 0 | 0.067903 | 0.038587 | 0 | 0 | 0 | 0.006329 | 0.009174 | 1 | 0.220183 | false | 0.018349 | 0.027523 | 0.055046 | 0.550459 | 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 | 1 | 0 | 0 | 2 |
b64af0874db7513a282cd648f069e473670a402f | 996 | py | Python | account/views/user.py | NTUSA/fudez-app | 91c8d85238fb642488ef5616be441e4417f21d0a | [
"MIT"
] | 2 | 2017-04-13T08:52:19.000Z | 2018-05-07T12:14:34.000Z | account/views/user.py | NTUSA/fudez-app | 91c8d85238fb642488ef5616be441e4417f21d0a | [
"MIT"
] | null | null | null | account/views/user.py | NTUSA/fudez-app | 91c8d85238fb642488ef5616be441e4417f21d0a | [
"MIT"
] | 1 | 2018-07-28T16:09:59.000Z | 2018-07-28T16:09:59.000Z | from django.shortcuts import get_object_or_404
from rest_framework import viewsets, permissions
from rest_framework.decorators import detail_route, list_route
from rest_framework.response import Response
from account.models import User
from account.serializers import UserSerializer, SimpleUserSerializer, FullUserSeria... | 34.344828 | 113 | 0.7249 | 96 | 996 | 7.385417 | 0.541667 | 0.03385 | 0.071932 | 0.053597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003866 | 0.220884 | 996 | 28 | 114 | 35.571429 | 0.909794 | 0 | 0 | 0.136364 | 0 | 0 | 0.016064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b64ea61e9feea2c4b2afa6eb14912a58e6654b6f | 130 | py | Python | vendor/tango_tree/config.py | marehr/veb-data-structures | 4f21f1d78bb270ff89bafb27177388f5999ea3ad | [
"MIT"
] | null | null | null | vendor/tango_tree/config.py | marehr/veb-data-structures | 4f21f1d78bb270ff89bafb27177388f5999ea3ad | [
"MIT"
] | null | null | null | vendor/tango_tree/config.py | marehr/veb-data-structures | 4f21f1d78bb270ff89bafb27177388f5999ea3ad | [
"MIT"
] | null | null | null | import os
import sys
# load binary_tree
path = os.path.abspath('..')
if path not in sys.path:
sys.path.append(path)
del path
| 11.818182 | 28 | 0.7 | 23 | 130 | 3.913043 | 0.565217 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176923 | 130 | 10 | 29 | 13 | 0.841122 | 0.123077 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b64fa0d4c1acd16b3d5af8656c560a61ce7f686a | 620 | py | Python | Firmware/adctest.py | sanielfishawy/ODrive | 6b77a17bda88f2d709ae4d3d26a81c7aed50d384 | [
"MIT"
] | 1,068 | 2016-05-31T22:39:08.000Z | 2020-12-20T22:13:01.000Z | Firmware/adctest.py | sanielfishawy/ODrive | 6b77a17bda88f2d709ae4d3d26a81c7aed50d384 | [
"MIT"
] | 389 | 2017-10-16T09:44:20.000Z | 2020-12-21T14:19:38.000Z | Firmware/adctest.py | sanielfishawy/ODrive | 6b77a17bda88f2d709ae4d3d26a81c7aed50d384 | [
"MIT"
] | 681 | 2016-06-12T01:41:00.000Z | 2020-12-21T12:49:32.000Z |
import numpy as np
import matplotlib.pyplot as plt
adchist = [(0, 137477),
(1, 98524),
(2, 71744),
(3, 60967),
(4, 44372),
(5, 46348),
(6, 19944),
(7, 10092),
(8, 13713),
(9, 11182),
(10, 6903),
(11, 4072),
(12, 2642),
(13, 968),
(14, 296),
(15, 166),
(16, 17),
(17, 2),
(-1, 39662),
(-2, 43502),
(-3, 57596),
(-4, 339... | 12.653061 | 35 | 0.530645 | 100 | 620 | 3.29 | 0.68 | 0.048632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.40458 | 0.154839 | 620 | 49 | 36 | 12.653061 | 0.223282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6676df32798e39afffcc6ddaceea2dd644ae976 | 18,646 | py | Python | dlkit/json_/relationship/objects.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 2 | 2018-02-23T12:16:11.000Z | 2020-10-08T17:54:24.000Z | dlkit/json_/relationship/objects.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 87 | 2017-04-21T18:57:15.000Z | 2021-12-13T19:43:57.000Z | dlkit/json_/relationship/objects.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 1 | 2018-03-01T16:44:25.000Z | 2018-03-01T16:44:25.000Z | """JSON implementations of relationship objects."""
# pylint: disable=no-init
# Numerous classes don't require __init__.
# pylint: disable=too-many-public-methods,too-few-public-methods
# Number of methods are defined in specification
# pylint: disable=protected-access
# Access to protected methods allowed... | 39.420719 | 158 | 0.669527 | 2,160 | 18,646 | 5.581944 | 0.118519 | 0.028199 | 0.028614 | 0.036079 | 0.675126 | 0.638633 | 0.592934 | 0.523762 | 0.486191 | 0.470432 | 0 | 0 | 0.241124 | 18,646 | 472 | 159 | 39.504237 | 0.852085 | 0.542744 | 0 | 0.376812 | 0 | 0 | 0.044915 | 0.007062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202899 | false | 0 | 0.086957 | 0.021739 | 0.57971 | 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 | 1 | 0 | 0 | 2 |
b673221ee8b609b02be959fb23bbc76db4c129ac | 3,732 | py | Python | backend/api/models/user_model.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | null | null | null | backend/api/models/user_model.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | 1 | 2020-06-21T18:38:14.000Z | 2020-06-21T21:57:09.000Z | backend/api/models/user_model.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | null | null | null | from uuid import uuid4
from django.contrib.auth.base_user import BaseUserManager, AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from .location_state_model import LocationSta... | 38.081633 | 111 | 0.692122 | 467 | 3,732 | 5.383298 | 0.299786 | 0.038186 | 0.02864 | 0.033413 | 0.322593 | 0.208831 | 0.133254 | 0.098648 | 0.069212 | 0 | 0 | 0.004795 | 0.217578 | 3,732 | 97 | 112 | 38.474227 | 0.856164 | 0.082797 | 0 | 0 | 0 | 0 | 0.072372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0.086957 | 0.115942 | 0.014493 | 0.623188 | 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 | 1 | 0 | 0 | 2 |
b684ea846bdcddff0f795f27f74230ffc1d9b10e | 438 | py | Python | Testing/03_use_type_hint/type_hint_classes.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | 18 | 2016-08-15T00:24:44.000Z | 2020-11-30T15:11:52.000Z | Testing/03_use_type_hint/type_hint_classes.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | null | null | null | Testing/03_use_type_hint/type_hint_classes.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | 6 | 2016-09-28T10:47:03.000Z | 2020-10-14T10:20:06.000Z | # -*- coding: utf-8 -*-
class MyClass:
# The __init__ method doesn't return anything, so it gets return
# type None just like any other method that doesn't return anything.
def __init__(self) -> None:
...
# For instance methods, omit `self`.
def my_class_method(self, num: int, str1: str) -> str:
... | 31.285714 | 71 | 0.664384 | 64 | 438 | 4.390625 | 0.671875 | 0.042705 | 0.085409 | 0.142349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008876 | 0.228311 | 438 | 13 | 72 | 33.692308 | 0.822485 | 0.593607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b6892bdce8585559ff0c5db21e9464b1c3caadc2 | 5,391 | py | Python | src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainBrief/cli/equal/golden1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainBrief/cli/equal/golden1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainBrief/cli/equal/golden1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"bridge_group": {
"D": {
"bridge_domain": {
"D-w": {
"ac": {
"num_ac": 1,
"num_ac_up": 1
},
"id": 0,
"pbb": {
... | 28.675532 | 45 | 0.171026 | 320 | 5,391 | 2.55625 | 0.14375 | 0.07335 | 0.06846 | 0.07824 | 0.694377 | 0.669927 | 0.669927 | 0.669927 | 0.646699 | 0.55868 | 0 | 0.057667 | 0.716936 | 5,391 | 188 | 46 | 28.675532 | 0.478375 | 0 | 0 | 0.537234 | 0 | 0 | 0.157085 | 0.004451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6ac6373bcde0d0084efd2d2ae066e71a618c49d | 975 | py | Python | back.py | ikenichaa/thai_soundex | 093d0b98d628bb82e1b62a40a309783e6ef672fe | [
"Apache-2.0"
] | null | null | null | back.py | ikenichaa/thai_soundex | 093d0b98d628bb82e1b62a40a309783e6ef672fe | [
"Apache-2.0"
] | null | null | null | back.py | ikenichaa/thai_soundex | 093d0b98d628bb82e1b62a40a309783e6ef672fe | [
"Apache-2.0"
] | null | null | null | def main(input):
myDict = {}
myDict['ก']='k'
for key in ['ข','ค', 'ฆ']:
myDict[key] = 'k'
myDict['ง']='ng'
myDict['จ']='t'
for key in ['ฉ','ฌ', 'ช']:
myDict[key] = 't'
for key in ['ซ','ศ', 'ษ','ส']:
myDict[key] = 't'
for key in ['ย']:
myDict[key] = 'j'
... | 23.780488 | 42 | 0.389744 | 148 | 975 | 2.567568 | 0.425676 | 0.205263 | 0.273684 | 0.142105 | 0.236842 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 975 | 40 | 43 | 24.375 | 0.584615 | 0 | 0 | 0.230769 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
b6b6c2ee5a358ae1677029fe17230741b104b351 | 432 | py | Python | secondtest/2013/1gaussjacobi.py | JoaoCostaIFG/MNUM | 6e042d8a6f64feb9eae9c79afec2fbab51f46fbd | [
"MIT"
] | 1 | 2019-12-07T10:34:30.000Z | 2019-12-07T10:34:30.000Z | secondtest/2013/1gaussjacobi.py | JoaoCostaIFG/MNUM | 6e042d8a6f64feb9eae9c79afec2fbab51f46fbd | [
"MIT"
] | null | null | null | secondtest/2013/1gaussjacobi.py | JoaoCostaIFG/MNUM | 6e042d8a6f64feb9eae9c79afec2fbab51f46fbd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# CHECKED
A = [[4.5, -1, -1, 1], [-1, 4.5, 1, -1], [-1, 2, 4.5, -1], [2, -1, -1, 4.5]]
b = [1, -1, -1, 0]
x = [0.25, 0.25, 0.25, 0.25]
x_new = [0, 0, 0, 0]
for k in range(2):
for i in range(4):
x_new[i] = b[i]
for j in range(4):
if j != i:
x_new[... | 19.636364 | 76 | 0.381944 | 94 | 432 | 1.691489 | 0.276596 | 0.100629 | 0.075472 | 0.113208 | 0.138365 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0.157343 | 0.337963 | 432 | 21 | 77 | 20.571429 | 0.398601 | 0.06713 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcae020ff699888941770fffb83bc3aac4b2dcd5 | 294 | py | Python | Modulo_2/semana4/tarea/presentacion/presentacion.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_2/semana4/tarea/presentacion/presentacion.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_2/semana4/tarea/presentacion/presentacion.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | 1 | 2022-03-04T00:57:18.000Z | 2022-03-04T00:57:18.000Z |
def presentacion_inicial():
print("*"*20)
print("Que accion desea realizar : ")
print("1) Insertar Persona : ")
print("2) Insertar Empleado : ")
print("3) Consultar las personas : ")
print("4) Consultar por empleados : ")
return int(input("Opcion necesitas : "))
| 24.5 | 44 | 0.619048 | 33 | 294 | 5.484848 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026432 | 0.227891 | 294 | 11 | 45 | 26.727273 | 0.770925 | 0 | 0 | 0 | 0 | 0 | 0.515464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
fcb05bfd43a1234321c1726697ae47be1b3693d7 | 1,300 | py | Python | release/stubs.min/System/Runtime/InteropServices/__init___parts/SEHException.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/Runtime/InteropServices/__init___parts/SEHException.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/Runtime/InteropServices/__init___parts/SEHException.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | class SEHException(ExternalException):
"""
Represents structured exception handling (SEH) errors.
SEHException()
SEHException(message: str)
SEHException(message: str,inner: Exception)
"""
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return SEHException()
instance=ZZZ()
"""har... | 32.5 | 215 | 0.707692 | 155 | 1,300 | 5.490323 | 0.445161 | 0.047004 | 0.047004 | 0.06698 | 0.179788 | 0.132785 | 0.132785 | 0.132785 | 0.132785 | 0.132785 | 0 | 0 | 0.178462 | 1,300 | 39 | 216 | 33.333333 | 0.796816 | 0.626154 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.3125 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fcb8cf21b29a5f272a7d618c6ac9079ebfc14c39 | 271 | py | Python | pythran/tests/cython/setup_tax.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,647 | 2015-01-13T01:45:38.000Z | 2022-03-28T01:23:41.000Z | pythran/tests/cython/setup_tax.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,116 | 2015-01-01T09:52:05.000Z | 2022-03-18T21:06:40.000Z | pythran/tests/cython/setup_tax.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 180 | 2015-02-12T02:47:28.000Z | 2022-03-14T10:28:18.000Z | from distutils.core import setup
from Cython.Build import cythonize
setup(
name = "tax",
ext_modules = cythonize('tax.pyx'),
script_name = 'setup.py',
script_args = ['build_ext', '--inplace']
)
import tax
import numpy as np
print(tax.tax(np.ones(10)))
| 18.066667 | 44 | 0.678967 | 39 | 271 | 4.615385 | 0.589744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.180812 | 271 | 14 | 45 | 19.357143 | 0.801802 | 0 | 0 | 0 | 0 | 0 | 0.133829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fcbfc073469b07dd98a14e4c9164c0fd8b5cd461 | 75 | py | Python | stackstrap/__init__.py | movermeyer/stackstrap | daa942ba83c2f3183628a4dc84e8ea221ff49eb6 | [
"Apache-2.0"
] | 3 | 2015-04-19T09:36:49.000Z | 2017-02-08T23:41:22.000Z | stackstrap/__init__.py | movermeyer/stackstrap | daa942ba83c2f3183628a4dc84e8ea221ff49eb6 | [
"Apache-2.0"
] | 1 | 2021-03-25T21:27:19.000Z | 2021-03-25T21:27:19.000Z | stackstrap/__init__.py | movermeyer/stackstrap | daa942ba83c2f3183628a4dc84e8ea221ff49eb6 | [
"Apache-2.0"
] | 2 | 2015-05-22T08:25:54.000Z | 2018-03-05T00:33:25.000Z | __version__ = '0.2.2'
__url__ = 'https://github.com/stackstrap/stackstrap'
| 25 | 52 | 0.733333 | 10 | 75 | 4.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.08 | 75 | 2 | 53 | 37.5 | 0.637681 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcc4a1cf356c4e727ef86d0eb7b9efb497dc75cc | 155 | py | Python | urls.py | bellachp/DashTut | 3ff19d52f34aea14a5e0c332fd18878cbf04279a | [
"MIT"
] | null | null | null | urls.py | bellachp/DashTut | 3ff19d52f34aea14a5e0c332fd18878cbf04279a | [
"MIT"
] | null | null | null | urls.py | bellachp/DashTut | 3ff19d52f34aea14a5e0c332fd18878cbf04279a | [
"MIT"
] | null | null | null | # urls.py
# urls for dash app
url_paths = {
"index": '/',
"home": '/home',
"scatter": '/apps/scatter-test',
"combo": '/apps/combo-test'
}
| 15.5 | 36 | 0.529032 | 19 | 155 | 4.263158 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232258 | 155 | 9 | 37 | 17.222222 | 0.680672 | 0.16129 | 0 | 0 | 0 | 0 | 0.480315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcc9a18b1053b307181376309f390c8f485eb322 | 603 | py | Python | DEFCON_Debugging.py | tlear/DEFCON | 6f24c1585a877e8668157a93a8153502b3ddc246 | [
"MIT"
] | null | null | null | DEFCON_Debugging.py | tlear/DEFCON | 6f24c1585a877e8668157a93a8153502b3ddc246 | [
"MIT"
] | null | null | null | DEFCON_Debugging.py | tlear/DEFCON | 6f24c1585a877e8668157a93a8153502b3ddc246 | [
"MIT"
] | null | null | null | ################################################################
# DEFCON_Debugging
# (C) Tom Moore 2017
################################################################
################################################################
# IMPORTS
################################################################
import DE... | 28.714286 | 64 | 0.227197 | 30 | 603 | 4.466667 | 0.633333 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007286 | 0.089552 | 603 | 21 | 65 | 28.714286 | 0.236794 | 0.07131 | 0 | 0 | 0 | 0 | 0.011561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcd03d8b6056bce23b5cd7fc66bae1e46820e9b4 | 645 | py | Python | gather/upload_poster_rooms.py | stephenfreund/PLDI-2021-Mini-Conf | 3d529d32a8563682ea69eb1e3b1742b447b71f42 | [
"MIT"
] | null | null | null | gather/upload_poster_rooms.py | stephenfreund/PLDI-2021-Mini-Conf | 3d529d32a8563682ea69eb1e3b1742b447b71f42 | [
"MIT"
] | null | null | null | gather/upload_poster_rooms.py | stephenfreund/PLDI-2021-Mini-Conf | 3d529d32a8563682ea69eb1e3b1742b447b71f42 | [
"MIT"
] | null | null | null | import csv
import io
import json
import time
import zlib
import sys
import os
import requests
import yaml
from libgather import Gather
if __name__ == "__main__":
config = yaml.load(open("../admin/config.yml").read(), Loader=yaml.SafeLoader) | yaml.load(open("config.yml").read(), Loader=yaml.SafeLoader)
rooms... | 29.318182 | 145 | 0.697674 | 89 | 645 | 4.921348 | 0.438202 | 0.073059 | 0.082192 | 0.116438 | 0.212329 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148837 | 645 | 21 | 146 | 30.714286 | 0.797814 | 0 | 0 | 0 | 0 | 0 | 0.19845 | 0.043411 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fcd127df2257bc5264c56c5910c76287e8e09b8a | 588 | py | Python | Aulas Python/m03/aula18a.py | joaquimjfernandes/Curso-de-Python | 3356211248d355eaa67098cebe5cdb8cf6badc75 | [
"MIT"
] | null | null | null | Aulas Python/m03/aula18a.py | joaquimjfernandes/Curso-de-Python | 3356211248d355eaa67098cebe5cdb8cf6badc75 | [
"MIT"
] | null | null | null | Aulas Python/m03/aula18a.py | joaquimjfernandes/Curso-de-Python | 3356211248d355eaa67098cebe5cdb8cf6badc75 | [
"MIT"
] | null | null | null | print('=' * 15, '\033[1;35mAULA 18 - Listas[Part #2]\033[m', '=' * 15)
# --------------------------------------------------------------------
dados = []
pessoas = []
galera = [['Miguel', 25], ['Berta', 59], ['Joaquim', 20]]
# --------------------------------------------------------------------
dados.append('Joaquim')
d... | 30.947368 | 70 | 0.477891 | 65 | 588 | 4.323077 | 0.384615 | 0.234875 | 0.092527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073308 | 0.095238 | 588 | 18 | 71 | 32.666667 | 0.454887 | 0.326531 | 0 | 0 | 0 | 0 | 0.208763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fce34b6c81c35a8f9834ee5de2cc8e7f75af13c9 | 1,711 | py | Python | jobs/models.py | shifat151/portfolio | de025dd345232385e31f1e9741ddcbfe1ca33f93 | [
"MIT"
] | null | null | null | jobs/models.py | shifat151/portfolio | de025dd345232385e31f1e9741ddcbfe1ca33f93 | [
"MIT"
] | 6 | 2021-06-09T17:58:42.000Z | 2021-09-25T14:39:22.000Z | jobs/models.py | shifat151/portfolio | de025dd345232385e31f1e9741ddcbfe1ca33f93 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Profile(models.Model):
pic=models.ImageField(upload_to='images/')
pub_date=models.DateTimeField(auto_now=True)
obj=models.TextField(blank=True)
# ctime() method is for converting datetime string into a string
def __str__(self):
... | 29.5 | 68 | 0.700175 | 227 | 1,711 | 5.017621 | 0.378855 | 0.057946 | 0.052678 | 0.126427 | 0.279192 | 0.105356 | 0 | 0 | 0 | 0 | 0 | 0.011388 | 0.178843 | 1,711 | 58 | 69 | 29.5 | 0.799288 | 0.184687 | 0 | 0.138889 | 0 | 0 | 0.010823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.027778 | 0.111111 | 0.944444 | 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 | 1 | 0 | 0 | 2 |
fcfada5ca785383cf0f56e4e1dc9cd5953621980 | 7,449 | py | Python | temboo/core/Library/Dropbox/FilesAndMetadata/ListFolderContents.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/Dropbox/FilesAndMetadata/ListFolderContents.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/Dropbox/FilesAndMetadata/ListFolderContents.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# ListFolderContents
# Retrieves metadata (including folder contents) for a folder or file in Dropbox.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Versi... | 50.331081 | 278 | 0.694053 | 918 | 7,449 | 5.561002 | 0.264706 | 0.015671 | 0.027424 | 0.038198 | 0.343781 | 0.201763 | 0.159843 | 0.061508 | 0.046621 | 0.028599 | 0 | 0.003713 | 0.204591 | 7,449 | 147 | 279 | 50.673469 | 0.85789 | 0.52893 | 0 | 0 | 0 | 0 | 0.06518 | 0.017839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0 | 0.098039 | 0.098039 | 0.72549 | 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 | 1 | 0 | 0 | 2 |
1e16e212df58abc55b333c32adf7bad6f18c87d3 | 240 | py | Python | generate_videos.py | weiqiao/pydrake_kuka | 2f1c9a5bb3946cd8a51be93e4225ec099a6427de | [
"MIT"
] | 5 | 2018-11-21T22:36:25.000Z | 2021-05-30T19:05:07.000Z | generate_videos.py | weiqiao/pydrake_kuka | 2f1c9a5bb3946cd8a51be93e4225ec099a6427de | [
"MIT"
] | 7 | 2018-10-19T20:33:51.000Z | 2018-11-15T23:22:01.000Z | generate_videos.py | weiqiao/pydrake_kuka | 2f1c9a5bb3946cd8a51be93e4225ec099a6427de | [
"MIT"
] | 5 | 2018-08-17T22:42:45.000Z | 2021-04-01T14:21:45.000Z | import os
import random
# Fullscreen meshlab on right monitor for this to work
for k in range(100, 200):
n_objects = random.randint(5, 10)
os.system("python kuka_pydrake_sim.py -T 60 --seed %d --hacky_save_video -N %d" % (k, n_objects))
| 30 | 98 | 0.725 | 44 | 240 | 3.818182 | 0.795455 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054455 | 0.158333 | 240 | 7 | 99 | 34.285714 | 0.777228 | 0.216667 | 0 | 0 | 0 | 0 | 0.360215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1e2483e1d54d7612f075a68d1c2fadeaa1f2c2d9 | 3,194 | py | Python | gui/main_password.py | FrCln/password-manager | 7e5aca609846e38db634de754be4e7c35a5f21a2 | [
"MIT"
] | null | null | null | gui/main_password.py | FrCln/password-manager | 7e5aca609846e38db634de754be4e7c35a5f21a2 | [
"MIT"
] | null | null | null | gui/main_password.py | FrCln/password-manager | 7e5aca609846e38db634de754be4e7c35a5f21a2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainpassword.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
import os
from PyQt5 impor... | 43.162162 | 92 | 0.705698 | 327 | 3,194 | 6.779817 | 0.425076 | 0.075778 | 0.050519 | 0.041949 | 0.043302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01051 | 0.195679 | 3,194 | 73 | 93 | 43.753425 | 0.852472 | 0.086725 | 0 | 0.036364 | 1 | 0 | 0.079409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.2 | 0.036364 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1e504a5b5c5d4acfa54f1f3b5a915886ad803336 | 510 | py | Python | app.py | andrequeiroz2/api-tags | ccc84c6b1ca5a6f907ea4c36db49a763c7d50445 | [
"MIT"
] | null | null | null | app.py | andrequeiroz2/api-tags | ccc84c6b1ca5a6f907ea4c36db49a763c7d50445 | [
"MIT"
] | null | null | null | app.py | andrequeiroz2/api-tags | ccc84c6b1ca5a6f907ea4c36db49a763c7d50445 | [
"MIT"
] | null | null | null | import os
from flask import Flask
from tags import database
from tags.api.tags.tags_route import init_tags_api
from flask_restful import Api
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'todo-api/api-tags:1.0'
app.config['MONGODB_SETTINGS'] = {
'db': 'tags',
'... | 19.615385 | 87 | 0.647059 | 69 | 510 | 4.57971 | 0.434783 | 0.066456 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023136 | 0.237255 | 510 | 25 | 88 | 20.4 | 0.789203 | 0 | 0 | 0 | 0 | 0 | 0.243137 | 0.172549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
1e54324c83d7632c21e244fadff2630d67738ec7 | 652 | py | Python | tests/_utils/uniqueue.py | ssfdust/smorest-sfs | 139f6817989ab041c81761d183169de20a26597e | [
"Apache-2.0"
] | 8 | 2020-05-11T07:11:03.000Z | 2022-03-25T01:58:18.000Z | tests/_utils/uniqueue.py | ssfdust/smorest-sfs | 139f6817989ab041c81761d183169de20a26597e | [
"Apache-2.0"
] | null | null | null | tests/_utils/uniqueue.py | ssfdust/smorest-sfs | 139f6817989ab041c81761d183169de20a26597e | [
"Apache-2.0"
] | 2 | 2020-05-11T03:53:38.000Z | 2021-03-25T01:11:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import annotations
import queue
from typing import TYPE_CHECKING, TypeVar
T = TypeVar("T")
if TYPE_CHECKING:
SimpleQueue = queue.SimpleQueue
else:
class FakeGenericMeta(type):
def __getitem__(self, item):
return self
clas... | 20.375 | 68 | 0.654908 | 74 | 652 | 5.472973 | 0.486486 | 0.059259 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00202 | 0.240798 | 652 | 31 | 69 | 21.032258 | 0.816162 | 0.064417 | 0 | 0 | 0 | 0 | 0.011513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.157895 | 0.052632 | 0.578947 | 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 | 1 | 0 | 0 | 2 |
1e645c13a0829341024ad7a9c2cc7fd0efc82650 | 556 | py | Python | src/transitions/sudden.py | Addono/TekniBridge | 5411f6ae7903ac9383e11e9e3e42895862dbe955 | [
"BSD-2-Clause"
] | null | null | null | src/transitions/sudden.py | Addono/TekniBridge | 5411f6ae7903ac9383e11e9e3e42895862dbe955 | [
"BSD-2-Clause"
] | null | null | null | src/transitions/sudden.py | Addono/TekniBridge | 5411f6ae7903ac9383e11e9e3e42895862dbe955 | [
"BSD-2-Clause"
] | null | null | null | from typing import List
from led import Led
from transitions import AbstractTransition
class Sudden(AbstractTransition):
def __init__(self, red: float, green: float, blue: float) -> None:
super().__init__()
self.target = Led(red, green, blue)
@AbstractTransition.brightness.setter
def b... | 26.47619 | 70 | 0.697842 | 63 | 556 | 6.015873 | 0.428571 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205036 | 556 | 20 | 71 | 27.8 | 0.857466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1e64ce0f434fa8c4560c935663521ee4a611d5c4 | 51 | py | Python | ktrain/graph/stellargraph/version.py | happy-machine/ktrain | 221e7ce91f8cfdc280fc733083e901fcedb9f7e5 | [
"MIT"
] | null | null | null | ktrain/graph/stellargraph/version.py | happy-machine/ktrain | 221e7ce91f8cfdc280fc733083e901fcedb9f7e5 | [
"MIT"
] | null | null | null | ktrain/graph/stellargraph/version.py | happy-machine/ktrain | 221e7ce91f8cfdc280fc733083e901fcedb9f7e5 | [
"MIT"
] | null | null | null | # Global version information
__version__ = "0.7.2"
| 17 | 28 | 0.745098 | 7 | 51 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.137255 | 51 | 2 | 29 | 25.5 | 0.704545 | 0.509804 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e698dcbf8b39e78eb99dae57a10881a374d2261 | 10,371 | py | Python | yamtbx/dataproc/xds/xds_inp.py | harumome/kamo | 060e6fbd9c5a30f86065cec7807ad3449027607e | [
"BSD-3-Clause"
] | null | null | null | yamtbx/dataproc/xds/xds_inp.py | harumome/kamo | 060e6fbd9c5a30f86065cec7807ad3449027607e | [
"BSD-3-Clause"
] | null | null | null | yamtbx/dataproc/xds/xds_inp.py | harumome/kamo | 060e6fbd9c5a30f86065cec7807ad3449027607e | [
"BSD-3-Clause"
] | null | null | null | """
(c) RIKEN 2015. All rights reserved.
Author: Keitaro Yamashita
This software is released under the new BSD License; see LICENSE.
"""
import os
from yamtbx.dataproc import XIO
from yamtbx.dataproc import cbf
from yamtbx.dataproc.dataset import group_img_files_template
def sensor_thickness_from_minicbf(img):
... | 41.650602 | 101 | 0.686819 | 1,514 | 10,371 | 4.540951 | 0.301849 | 0.089018 | 0.069091 | 0.046836 | 0.265309 | 0.158109 | 0.083491 | 0.083491 | 0.083491 | 0.083491 | 0 | 0.086385 | 0.215312 | 10,371 | 248 | 102 | 41.818548 | 0.758417 | 0.042715 | 0 | 0.165094 | 0 | 0.018868 | 0.606628 | 0.109747 | 0 | 0 | 0 | 0.004032 | 0.009434 | 0 | null | null | 0 | 0.018868 | null | null | 0.004717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e6b0d9235d8b1a1193601cbf06d5bfb7871ca2e | 3,009 | py | Python | fbssdc/ast.py | Eijebong/binjs-ref | 52ba3ec9e9e2c439febc6a25f5f7952bd35dc539 | [
"MIT"
] | 391 | 2017-12-18T12:33:29.000Z | 2022-03-09T10:11:57.000Z | fbssdc/ast.py | Eijebong/binjs-ref | 52ba3ec9e9e2c439febc6a25f5f7952bd35dc539 | [
"MIT"
] | 297 | 2018-02-04T13:31:14.000Z | 2021-01-03T21:06:50.000Z | fbssdc/ast.py | Eijebong/binjs-ref | 52ba3ec9e9e2c439febc6a25f5f7952bd35dc539 | [
"MIT"
] | 31 | 2018-02-12T16:57:50.000Z | 2020-12-26T16:28:53.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import doctest
import json
import os
import subprocess
import idl
BINJS_SIGNATURE = b'BINJS\x02'
def load_ast(filen... | 27.605505 | 81 | 0.689598 | 441 | 3,009 | 4.575964 | 0.417234 | 0.02775 | 0.016353 | 0.015857 | 0.049554 | 0.049554 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.192423 | 3,009 | 108 | 82 | 27.861111 | 0.82428 | 0.41675 | 0 | 0.122449 | 0 | 0 | 0.033215 | 0 | 0 | 0 | 0 | 0.027778 | 0.040816 | 1 | 0.22449 | false | 0.040816 | 0.102041 | 0.020408 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e7511d443f59d368f6c1b20379fd9fed48d9b34 | 7,491 | py | Python | vapor/fn.py | xiaket/vapor | 1c2c5dc85ac0c84571f8903733d3eadaf0a05d3c | [
"MIT"
] | null | null | null | vapor/fn.py | xiaket/vapor | 1c2c5dc85ac0c84571f8903733d3eadaf0a05d3c | [
"MIT"
] | null | null | null | vapor/fn.py | xiaket/vapor | 1c2c5dc85ac0c84571f8903733d3eadaf0a05d3c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Models that maps to Cloudformation functions.
"""
def replace_fn(node):
"""Iteratively replace all Fn/Ref in the node"""
if isinstance(node, list):
return [replace_fn(item) for item in node]
if isinstance(node, dict):
return {name: replace_fn(value) for name, val... | 23.409375 | 85 | 0.579762 | 880 | 7,491 | 4.784091 | 0.138636 | 0.070546 | 0.092637 | 0.084798 | 0.380998 | 0.354632 | 0.354632 | 0.24038 | 0.126841 | 0.069834 | 0 | 0.017426 | 0.287545 | 7,491 | 319 | 86 | 23.482759 | 0.771407 | 0.223602 | 0 | 0.223602 | 0 | 0 | 0.058539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.018634 | 0 | 0.590062 | 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 | 1 | 0 | 0 | 2 |
1e8b7a87cd18bdcc0ff56d000a8a800cceb9a789 | 476 | py | Python | setup.py | uofuseismo/shakemap-aqms | 228dc31fa987c71e48c70896946c54677497ce4a | [
"CC0-1.0"
] | null | null | null | setup.py | uofuseismo/shakemap-aqms | 228dc31fa987c71e48c70896946c54677497ce4a | [
"CC0-1.0"
] | null | null | null | setup.py | uofuseismo/shakemap-aqms | 228dc31fa987c71e48c70896946c54677497ce4a | [
"CC0-1.0"
] | null | null | null | from distutils.core import setup
import os.path
setup(name='shakemap_aqms',
version='1.0',
description='AQMS Modules for ShakeMap',
author='Bruce Worden',
author_email='cbworden@usgs.gov',
url='http://github.com/cbworden/shakemap-aqms',
packages=['shakemap_aqms',
's... | 25.052632 | 56 | 0.57563 | 50 | 476 | 5.36 | 0.68 | 0.223881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.273109 | 476 | 18 | 57 | 26.444444 | 0.768786 | 0 | 0 | 0 | 0 | 0 | 0.346639 | 0.046218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e8e9df20ccdcd4d2401718bd824b567efdf4520 | 1,583 | py | Python | external/lemonade/dist/examples/calc/calc.py | almartin82/bayeslite | a27f243b5f16cc6a01e84336a829e5b65d665b7b | [
"Apache-2.0"
] | 964 | 2015-09-24T15:02:05.000Z | 2022-03-29T21:41:21.000Z | external/lemonade/dist/examples/calc/calc.py | almartin82/bayeslite | a27f243b5f16cc6a01e84336a829e5b65d665b7b | [
"Apache-2.0"
] | 435 | 2015-09-23T16:46:58.000Z | 2020-04-19T12:32:03.000Z | external/lemonade/dist/examples/calc/calc.py | almartin82/bayeslite | a27f243b5f16cc6a01e84336a829e5b65d665b7b | [
"Apache-2.0"
] | 86 | 2015-10-24T20:08:30.000Z | 2021-08-09T13:53:00.000Z |
import sys
def generateGrammar():
from lemonade.main import generate
from os.path import join, dirname
from StringIO import StringIO
inputFile = join(dirname(__file__), "gram.y")
outputStream = StringIO()
generate(inputFile, outputStream)
return outputStream.getvalue()
# generate and i... | 18.195402 | 64 | 0.576121 | 196 | 1,583 | 4.617347 | 0.459184 | 0.01768 | 0.026519 | 0.053039 | 0.075138 | 0.075138 | 0.075138 | 0 | 0 | 0 | 0 | 0.002703 | 0.2988 | 1,583 | 86 | 65 | 18.406977 | 0.812613 | 0.058749 | 0 | 0.117647 | 1 | 0 | 0.064407 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | null | null | 0 | 0.098039 | null | null | 0.078431 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e9379e5b3b2bc4ac79a3648f31470e66c317df6 | 376 | py | Python | weeby/overlays.py | asheeeshh/weeby.py | 3da48e55bd1f824902bb7b2f7d31675cdeb080b6 | [
"MIT"
] | 5 | 2021-10-19T11:46:47.000Z | 2022-02-28T03:29:16.000Z | weeby/overlays.py | asheeeshh/weeby.py | 3da48e55bd1f824902bb7b2f7d31675cdeb080b6 | [
"MIT"
] | null | null | null | weeby/overlays.py | asheeeshh/weeby.py | 3da48e55bd1f824902bb7b2f7d31675cdeb080b6 | [
"MIT"
] | 1 | 2021-12-09T08:53:43.000Z | 2021-12-09T08:53:43.000Z | from . import config
from .util import make_request, image_request
class Overlay:
def __init__(self, token: str) -> None:
self.token = token
def overlay(self, type: str, image_url: str):
url = config.api_url + f"overlays/{type}?image={image_url}"
headers= {"Authorization" : f"Bearer {s... | 34.181818 | 67 | 0.662234 | 50 | 376 | 4.78 | 0.48 | 0.112971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210106 | 376 | 11 | 68 | 34.181818 | 0.804714 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 0.087533 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1eaab01b62d068e6b6e85924d9d72b4eac38dad8 | 235 | py | Python | src/preprocess/setup.py | CyberAgentAILab/canvas-vae | a39a48ad9ae6217123e971cb4c5cf54c672eca74 | [
"Apache-2.0"
] | 12 | 2021-08-30T06:40:06.000Z | 2022-03-26T10:38:08.000Z | src/preprocess/setup.py | CyberAgentAILab/canvas-vae | a39a48ad9ae6217123e971cb4c5cf54c672eca74 | [
"Apache-2.0"
] | 1 | 2022-03-22T04:57:34.000Z | 2022-03-22T04:57:34.000Z | src/preprocess/setup.py | CyberAgentAILab/canvas-vae | a39a48ad9ae6217123e971cb4c5cf54c672eca74 | [
"Apache-2.0"
] | 5 | 2021-10-30T09:19:09.000Z | 2022-02-02T02:06:39.000Z | """Packager for cloud environment."""
from setuptools import setup, find_packages
setup(
name='preprocess',
version='1.0.0',
packages=find_packages(),
install_requires=[
'tensorflow',
'numpy',
],
)
| 18.076923 | 43 | 0.621277 | 24 | 235 | 5.958333 | 0.791667 | 0.167832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.234043 | 235 | 12 | 44 | 19.583333 | 0.777778 | 0.131915 | 0 | 0 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ead5d3e79d4e71898dd29a86d16aaccdbe4ddbc | 1,089 | py | Python | 14_funcoes/a124_todos_parametros.py | smartao/estudos_python | 252a2e592ff929dfc6c06fc09b42cb7063ad0b5a | [
"MIT"
] | null | null | null | 14_funcoes/a124_todos_parametros.py | smartao/estudos_python | 252a2e592ff929dfc6c06fc09b42cb7063ad0b5a | [
"MIT"
] | 9 | 2019-11-15T14:21:43.000Z | 2020-03-15T14:37:13.000Z | 14_funcoes/a124_todos_parametros.py | smartao/estudos_python | 252a2e592ff929dfc6c06fc09b42cb7063ad0b5a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''
Pegando todos os parametros
Um argumento pocisional sempre deve estar antes de parametros nomeados
def todos_params(*args, **kwargs):
Significa que quer pegar os argumentos de uma forma genérica
tanto pocisionais quanto os nomeados
'''
def todos_params(*args, **kwargs):
print(f'ar... | 31.114286 | 70 | 0.701561 | 146 | 1,089 | 5.123288 | 0.568493 | 0.117647 | 0.101604 | 0.058824 | 0.085562 | 0.085562 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.179063 | 1,089 | 34 | 71 | 32.029412 | 0.809843 | 0.606061 | 0 | 0 | 0 | 0 | 0.148418 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 1 | 0.111111 | true | 0 | 0 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ebe52eedc566dc315d1fdcd8dd171eaf6d35325 | 439 | py | Python | webapp/dataaccess/plotlydash/__init__.py | Dataplate/dataplate | dc05f30570d20008add7325f14c33e730f253ced | [
"BSD-3-Clause"
] | 13 | 2020-12-29T06:11:39.000Z | 2022-03-24T22:23:02.000Z | webapp/dataaccess/plotlydash/__init__.py | rafael-gumiero/dataplate | f748bf658e2a5d1921d8c989dcd843caf8a062ca | [
"BSD-3-Clause"
] | null | null | null | webapp/dataaccess/plotlydash/__init__.py | rafael-gumiero/dataplate | f748bf658e2a5d1921d8c989dcd843caf8a062ca | [
"BSD-3-Clause"
] | 1 | 2022-03-24T22:22:08.000Z | 2022-03-24T22:22:08.000Z | from flask import Blueprint
from flask_login import login_required
bp_dash = Blueprint('dashboard', __name__, template_folder='../templates', url_prefix='/admin/dashboard/')
def _protect_dashviews(dashapp):
for view_func in dashapp.server.view_functions:
if view_func.startswith(dashapp.config.url_base_pat... | 48.777778 | 111 | 0.788155 | 57 | 439 | 5.701754 | 0.54386 | 0.098462 | 0.156923 | 0.24 | 0.209231 | 0.209231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113895 | 439 | 9 | 111 | 48.777778 | 0.835476 | 0 | 0 | 0 | 0 | 0 | 0.086364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ec004a846fd164c978f762c473a34b9f2cb0e55 | 235 | py | Python | test/test_util.py | jeffw-github/autoprotocol-python | df87a07846b28fe433bb49f2c0c8054e2f197e89 | [
"BSD-3-Clause"
] | 113 | 2015-01-29T05:12:21.000Z | 2022-03-18T01:39:14.000Z | test/test_util.py | jeffw-github/autoprotocol-python | df87a07846b28fe433bb49f2c0c8054e2f197e89 | [
"BSD-3-Clause"
] | 131 | 2015-02-24T23:12:14.000Z | 2022-01-11T17:16:41.000Z | test/test_util.py | jeffw-github/autoprotocol-python | df87a07846b28fe433bb49f2c0c8054e2f197e89 | [
"BSD-3-Clause"
] | 45 | 2015-01-25T03:47:16.000Z | 2021-05-29T03:55:28.000Z | import json
class TestUtils:
@staticmethod
def read_json_file(file_path: str):
file = open("./test/data/{0}".format(file_path))
data = json.load(file)
return json.dumps(data, indent=2, sort_keys=True)
| 23.5 | 57 | 0.646809 | 33 | 235 | 4.454545 | 0.69697 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.221277 | 235 | 9 | 58 | 26.111111 | 0.79235 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1ec13ef63116630aba73dd39abdff816ffab65db | 692 | py | Python | jacked/matchers/_type.py | ramonhagenaars/jacked | 5cd31eb0fde46f31732529addda93f55d4dee55c | [
"MIT"
] | 4 | 2019-06-11T11:53:42.000Z | 2019-10-29T08:57:41.000Z | jacked/matchers/_type.py | ramonhagenaars/jacked | 5cd31eb0fde46f31732529addda93f55d4dee55c | [
"MIT"
] | 3 | 2019-06-19T20:54:28.000Z | 2019-06-21T12:57:59.000Z | jacked/matchers/_type.py | ramonhagenaars/jacked | 5cd31eb0fde46f31732529addda93f55d4dee55c | [
"MIT"
] | null | null | null | """
PRIVATE MODULE: do not import (from) it directly.
This module contains the ``TypeMatcher``class.
"""
import inspect
from jacked._injectable import Injectable
from jacked._container import Container
from jacked.matchers._base_matcher import BaseMatcher
class TypeMatcher(BaseMatcher):
def match(
s... | 23.862069 | 57 | 0.657514 | 73 | 692 | 6.09589 | 0.534247 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.265896 | 692 | 28 | 58 | 24.714286 | 0.86811 | 0.140173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0.111111 | 0.611111 | 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 | 1 | 0 | 0 | 2 |
1ecf459877e93b77d15aa389ffd7f71974f99eea | 420 | py | Python | code/get_ordinals.py | lebronlambert/Information_Extraction_DeepRL | 0463cde18edd77e00e6efd7b57fe937024ac56ef | [
"MIT"
] | 251 | 2016-06-15T15:01:59.000Z | 2021-11-29T09:23:30.000Z | code/get_ordinals.py | lebronlambert/Information_Extraction_DeepRL | 0463cde18edd77e00e6efd7b57fe937024ac56ef | [
"MIT"
] | 5 | 2017-01-04T21:50:38.000Z | 2018-06-06T01:42:07.000Z | code/get_ordinals.py | lebronlambert/Information_Extraction_DeepRL | 0463cde18edd77e00e6efd7b57fe937024ac56ef | [
"MIT"
] | 87 | 2016-06-14T17:27:05.000Z | 2021-11-09T08:43:09.000Z | import pickle
import inflect
p = inflect.engine()
words = set(['first','second','third','fourth','fifth','sixth','seventh','eighth','ninth','tenth','eleventh','twelfth','thirteenth','fourteenth','fifteenth',
'sixteenth','seventeenth','eighteenth','nineteenth','twentieth','twenty-first','twenty-second','twenty-third','... | 60 | 157 | 0.714286 | 49 | 420 | 6.102041 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 420 | 7 | 158 | 60 | 0.738272 | 0 | 0 | 0 | 0 | 0 | 0.581948 | 0.078385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1ed66bc0d99f35be3eb38f391314fbb25a48d280 | 219 | py | Python | softmax.py | maomran/softmax | 330a16712d44a0195011710e24b65e7732e784b0 | [
"Apache-2.0"
] | 14 | 2018-06-19T01:58:18.000Z | 2022-03-23T18:27:45.000Z | softmax.py | MohammadHashemi-ai/softmax | 330a16712d44a0195011710e24b65e7732e784b0 | [
"Apache-2.0"
] | 3 | 2019-04-11T15:45:18.000Z | 2021-10-02T02:22:38.000Z | softmax.py | MohammadHashemi-ai/softmax | 330a16712d44a0195011710e24b65e7732e784b0 | [
"Apache-2.0"
] | 10 | 2018-10-31T06:46:51.000Z | 2022-03-23T18:27:35.000Z |
import math
z = [1.0,1 ,1, 1.0]
z_exp = [math.exp(i) for i in z]
print([round(i, 2) for i in z_exp])
sum_z_exp = sum(z_exp)
print(round(sum_z_exp, 2))
softmax = [round(i / sum_z_exp, 3) for i in z_exp]
print(softmax)
| 19.909091 | 50 | 0.652968 | 53 | 219 | 2.509434 | 0.283019 | 0.210526 | 0.210526 | 0.157895 | 0.255639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049724 | 0.173516 | 219 | 10 | 51 | 21.9 | 0.685083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.375 | 0 | 0 | 0 | null | 1 | 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 | 2 |
1ee0cd00d8489da58d377eeb5afb082ee1712314 | 243 | py | Python | src/Dialog/HelpDialog.py | jtrfid/tkzgeom | b3b1baf33b89e7b670bc736d28818456ac4547ad | [
"MIT"
] | null | null | null | src/Dialog/HelpDialog.py | jtrfid/tkzgeom | b3b1baf33b89e7b670bc736d28818456ac4547ad | [
"MIT"
] | null | null | null | src/Dialog/HelpDialog.py | jtrfid/tkzgeom | b3b1baf33b89e7b670bc736d28818456ac4547ad | [
"MIT"
] | null | null | null | from PyQt5 import QtCore, QtWidgets, QtGui, uic
class HelpDialog(QtWidgets.QDialog):
def __init__(self):
super(HelpDialog, self).__init__()
self.ui = uic.loadUi('layouts/help.ui', self)
self.setWindowTitle("Help")
| 30.375 | 53 | 0.679012 | 29 | 243 | 5.413793 | 0.655172 | 0.101911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.193416 | 243 | 7 | 54 | 34.714286 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.078189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
94b4086538bb9962754c3bd9f36ec1aa28af101a | 1,665 | py | Python | gallery/models.py | vsidera/PhotoAlbum | 1a6dbf7129e22e18be5de5648e488c4e9ccecbee | [
"MIT"
] | null | null | null | gallery/models.py | vsidera/PhotoAlbum | 1a6dbf7129e22e18be5de5648e488c4e9ccecbee | [
"MIT"
] | null | null | null | gallery/models.py | vsidera/PhotoAlbum | 1a6dbf7129e22e18be5de5648e488c4e9ccecbee | [
"MIT"
] | null | null | null | from django.db import models
from cloudinary.models import CloudinaryField
# Create your models here.
class Images(models.Model):
image_link = CloudinaryField('image')
title = models.CharField(max_length=80)
description = models.TextField()
category = models.ForeignKey('Categories', on_delete=models.CA... | 25.615385 | 94 | 0.657057 | 194 | 1,665 | 5.443299 | 0.309278 | 0.045455 | 0.068182 | 0.090909 | 0.315341 | 0.212121 | 0.157197 | 0.157197 | 0.087121 | 0.087121 | 0 | 0.007987 | 0.248048 | 1,665 | 65 | 95 | 25.615385 | 0.835463 | 0.039039 | 0 | 0.361702 | 0 | 0 | 0.015028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.276596 | false | 0 | 0.042553 | 0.06383 | 0.702128 | 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 | 1 | 0 | 0 | 2 |
94c45a2bfafb15399fad02cc3b4cd9d86f79d7e8 | 1,297 | py | Python | 06_advanced_python_topics/decorator.py | iwanbolzern/python-course | a4e9088adab09b4e92710eb350392578c0977a71 | [
"MIT"
] | null | null | null | 06_advanced_python_topics/decorator.py | iwanbolzern/python-course | a4e9088adab09b4e92710eb350392578c0977a71 | [
"MIT"
] | null | null | null | 06_advanced_python_topics/decorator.py | iwanbolzern/python-course | a4e9088adab09b4e92710eb350392578c0977a71 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Callable
def add(a: int, b: int) -> int:
return a + b
def subtract(a: int, b: int) -> int:
return a - b
def calculate(operation: Callable[[int, int], int],
a: int, b: int) -> int:
"""Demonstration of first class citizen"""
return opera... | 23.581818 | 76 | 0.613724 | 180 | 1,297 | 4.311111 | 0.355556 | 0.020619 | 0.025773 | 0.041237 | 0.278351 | 0.171392 | 0.081186 | 0.081186 | 0.056701 | 0 | 0 | 0.023859 | 0.256746 | 1,297 | 54 | 77 | 24.018519 | 0.78112 | 0.08404 | 0 | 0.1875 | 0 | 0 | 0.239831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.09375 | 0.5625 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
94c9b5188d932c4b2ed200b6b817f43f0d634bb4 | 907 | py | Python | iqoptionapi/http/changebalance.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 3 | 2021-02-24T00:29:55.000Z | 2021-08-13T12:21:13.000Z | iqoptionapi/http/changebalance.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 5 | 2022-01-20T00:32:49.000Z | 2022-02-16T23:12:10.000Z | iqoptionapi/http/changebalance.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 2 | 2020-11-10T19:03:38.000Z | 2020-12-07T10:42:36.000Z | """Module for IQ option changebalance resource."""
from iqoptionapi.http.resource import Resource
from iqoptionapi.http.profile import Profile
class Changebalance(Resource):
"""Class for IQ option changebalance resource."""
# pylint: disable=too-few-public-methods
url = "/".join((Profile.url, "changebal... | 31.275862 | 74 | 0.676957 | 109 | 907 | 5.522936 | 0.412844 | 0.053156 | 0.054817 | 0.079734 | 0.335548 | 0.136213 | 0.136213 | 0 | 0 | 0 | 0 | 0 | 0.210584 | 907 | 28 | 75 | 32.392857 | 0.840782 | 0.44763 | 0 | 0 | 0 | 0 | 0.063927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.888889 | 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 | 1 | 0 | 0 | 2 |
a207ed19f70c2abb92a14c67d1bb7ebb192f8c4b | 3,796 | py | Python | lhzexploit_send.py | LiHongzhuo/wxBot | 98c7acee5a076332c8de2bac091e04d7f661edb6 | [
"Apache-2.0"
] | null | null | null | lhzexploit_send.py | LiHongzhuo/wxBot | 98c7acee5a076332c8de2bac091e04d7f661edb6 | [
"Apache-2.0"
] | null | null | null | lhzexploit_send.py | LiHongzhuo/wxBot | 98c7acee5a076332c8de2bac091e04d7f661edb6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from wxbot import *
import os
import ConfigParser
import lhz_mysql
import MySQLdb
import sys
import lhzoss
import lhzhttp
import lhzasr
import thread
import lhzconf
import lhzutil
import requests
import lhzimg
class MyWXBot(WXBot):
def makelove(self):
print '中华人民共和... | 39.541667 | 166 | 0.513172 | 419 | 3,796 | 4.520286 | 0.355609 | 0.014784 | 0.031679 | 0.042239 | 0.195354 | 0.108237 | 0.098205 | 0.059134 | 0 | 0 | 0 | 0.039863 | 0.385406 | 3,796 | 95 | 167 | 39.957895 | 0.771967 | 0.145416 | 0 | 0.115385 | 0 | 0.012821 | 0.080908 | 0.010233 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.051282 | 0.179487 | null | null | 0.089744 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a2298083ce23c56c820c746c853d5f1e55a1c6d8 | 461 | py | Python | Python/pyworkout/files/ex18.py | honchardev/Fun | ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc | [
"MIT"
] | null | null | null | Python/pyworkout/files/ex18.py | honchardev/Fun | ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc | [
"MIT"
] | 3 | 2020-03-24T16:26:35.000Z | 2020-04-15T19:40:41.000Z | Python/pyworkout/files/ex18.py | honchardev/Fun | ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc | [
"MIT"
] | null | null | null | def get_final_line(
filepath: str
) -> str:
with open(filepath) as fs_r:
for line in fs_r:
pass
return line
def get_final_line__readlines(
filepath: str
) -> str:
with open(filepath) as fs_r:
return fs_r.readlines()[-1]
def main():
filepath = 'file.txt'
fi... | 18.44 | 56 | 0.624729 | 64 | 461 | 4.125 | 0.390625 | 0.204545 | 0.136364 | 0.113636 | 0.265152 | 0.265152 | 0.265152 | 0.265152 | 0.265152 | 0 | 0 | 0.00295 | 0.264642 | 461 | 24 | 57 | 19.208333 | 0.775811 | 0 | 0 | 0.333333 | 0 | 0 | 0.125813 | 0.047722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0 | 0 | 0.277778 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
bf3ff739f5d2991ad3d76f833bf7356a90d392e0 | 861 | py | Python | gunnery/account/backend.py | dholdaway/gunnery | 87664986cd8bf1a17a9cbfb98fb1012cef9adaec | [
"Apache-2.0"
] | null | null | null | gunnery/account/backend.py | dholdaway/gunnery | 87664986cd8bf1a17a9cbfb98fb1012cef9adaec | [
"Apache-2.0"
] | 1 | 2021-06-10T23:55:50.000Z | 2021-06-10T23:55:50.000Z | gunnery/account/backend.py | dholdaway/gunnery | 87664986cd8bf1a17a9cbfb98fb1012cef9adaec | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.models import check_password
from django.contrib.auth import get_user_model
_user = get_user_model()
class EmailAuthBackend(object):
"""
Email Authentication Backend
Allows a user to sign in using an email/password pair rather than
a username/password pair.
"""
... | 30.75 | 76 | 0.637631 | 107 | 861 | 4.981308 | 0.429907 | 0.0394 | 0.06379 | 0.078799 | 0.120075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 861 | 28 | 77 | 30.75 | 0.866667 | 0.255517 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.1875 | 0.125 | 0 | 0.5625 | 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 | 1 | 0 | 0 | 2 |
bf4fb6bd0129319ecf0305a17ab66e72508012dc | 659 | py | Python | BS01-flask-bootstrap-table-demo/app/models.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 3 | 2020-06-17T05:44:48.000Z | 2021-09-11T02:49:38.000Z | BS01-flask-bootstrap-table-demo/app/models.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 3 | 2021-06-08T20:57:03.000Z | 2022-02-23T14:54:59.000Z | BS01-flask-bootstrap-table-demo/app/models.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 6 | 2020-06-17T05:44:56.000Z | 2022-03-29T12:53:05.000Z | from sqlalchemy_mptt.mixins import BaseNestedSets
from .extensions import db
class Tree(db.Model, BaseNestedSets):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64))
# parent_id = db.Column(db.Integer, db.ForeignKey('tree.id'))
# parent = db.relationship('Tree', remote_side=... | 27.458333 | 76 | 0.590288 | 82 | 659 | 4.585366 | 0.439024 | 0.06383 | 0.079787 | 0.06383 | 0.101064 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.265554 | 659 | 23 | 77 | 28.652174 | 0.772727 | 0.197269 | 0 | 0 | 0 | 0 | 0.062738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.5625 | 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 | 1 | 0 | 0 | 2 |
bf53ef3d918d4715c6704f2df580b7658e51cdbf | 159 | py | Python | pythonProject/ex012.py | aknowxd/python_cursoemvideo_1 | 826a7df2c813c209a68193d4f03638e60ca2eb4a | [
"MIT"
] | null | null | null | pythonProject/ex012.py | aknowxd/python_cursoemvideo_1 | 826a7df2c813c209a68193d4f03638e60ca2eb4a | [
"MIT"
] | null | null | null | pythonProject/ex012.py | aknowxd/python_cursoemvideo_1 | 826a7df2c813c209a68193d4f03638e60ca2eb4a | [
"MIT"
] | null | null | null | price = float(input("Digite o preco do produto: "))
discount = (5/100) * price
total = price - discount
print("O valor com desconto eh: {:.2f}".format(total)) | 31.8 | 54 | 0.679245 | 24 | 159 | 4.5 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.150943 | 159 | 5 | 54 | 31.8 | 0.762963 | 0 | 0 | 0 | 0 | 0 | 0.3625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bf55c375383410b68471e4aaaea5cbb22ffb9121 | 1,661 | py | Python | accounts/migrations/0004_auto_20210202_0653.py | MattatPath/Path-backend | c8fde0f39162ff020c475badc76b191f9fec600c | [
"Apache-2.0"
] | null | null | null | accounts/migrations/0004_auto_20210202_0653.py | MattatPath/Path-backend | c8fde0f39162ff020c475badc76b191f9fec600c | [
"Apache-2.0"
] | null | null | null | accounts/migrations/0004_auto_20210202_0653.py | MattatPath/Path-backend | c8fde0f39162ff020c475badc76b191f9fec600c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.12 on 2021-02-02 06:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20210202_0503'),
]
operations = [
migrations.AddField(
model_name='account',
name='email',
... | 30.759259 | 82 | 0.560506 | 163 | 1,661 | 5.570552 | 0.349693 | 0.079295 | 0.176211 | 0.237885 | 0.60793 | 0.577093 | 0.435022 | 0.314978 | 0.229075 | 0 | 0 | 0.049296 | 0.316075 | 1,661 | 53 | 83 | 31.339623 | 0.75 | 0.027694 | 0 | 0.510638 | 1 | 0 | 0.148791 | 0.014259 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bf77938f692240f0c7e1c8436d0758c664f12b9f | 979 | py | Python | swap_user/__init__.py | artinnok/django-swap-user | f2c02b9fc5829651a6dab9c6d053dfe2425e2266 | [
"MIT"
] | null | null | null | swap_user/__init__.py | artinnok/django-swap-user | f2c02b9fc5829651a6dab9c6d053dfe2425e2266 | [
"MIT"
] | null | null | null | swap_user/__init__.py | artinnok/django-swap-user | f2c02b9fc5829651a6dab9c6d053dfe2425e2266 | [
"MIT"
] | null | null | null | """
________ ___ __ ________ ________ ___ ___ ________ _______ ________
|\ ____\|\ \ |\ \|\ __ \|\ __ \ |\ \|\ \|\ ____\|\ ___ \ |\ __ \
\ \ \___|\ \ \ \ \ \ \ \|\ \ \ \|\ \ \ \ \\\ \ \ \___|\ \ __/|\ \ \|\ \
\ \_____ \ \ \ __\ \ \ \ __ \ \ ... | 44.5 | 95 | 0.427988 | 28 | 979 | 5.571429 | 0.75 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010938 | 0.346272 | 979 | 21 | 96 | 46.619048 | 0.23125 | 0.733401 | 0 | 0 | 0 | 0 | 0.436975 | 0.121849 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bfa0ea90fc49fb1ca4300d442097a204d2777368 | 662 | py | Python | emencia_paste_djangocms_3/django_buildout/project/mods_available/filebrowser/__init__.py | emencia/emencia_paste_djangocms_3 | 29eabbcb17e21996a6e1d99592fc719dc8833b59 | [
"MIT"
] | 1 | 2015-01-17T21:38:50.000Z | 2015-01-17T21:38:50.000Z | emencia_paste_djangocms_3/django_buildout/project/mods_available/filebrowser/__init__.py | emencia/emencia_paste_djangocms_3 | 29eabbcb17e21996a6e1d99592fc719dc8833b59 | [
"MIT"
] | 5 | 2015-01-28T15:51:02.000Z | 2015-03-16T15:51:15.000Z | emencia_paste_djangocms_3/django_buildout/project/mods_available/filebrowser/__init__.py | emencia/emencia_paste_djangocms_3 | 29eabbcb17e21996a6e1d99592fc719dc8833b59 | [
"MIT"
] | null | null | null | """
Add `Django Filebrowser`_ to your project so you can use a centralized interface to manage the uploaded files to be used with other components (`cms`_, `zinnia`_, etc.).
The version used is a special version called *no grappelli* that can be used outside of the *django-grapelli* environment.
Filebrowser manage fi... | 66.2 | 200 | 0.765861 | 104 | 662 | 4.846154 | 0.663462 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170695 | 662 | 10 | 201 | 66.2 | 0.918033 | 0.987915 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bfadd469cad5706d4a73cff7e85fb26ba6227888 | 734 | py | Python | inf.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | inf.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | inf.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- Coding: UTF-8 -*-
# infinity test case
# The port seems to differ from the original code here
# the original code will madly clip this string
# while this code seems to ignore the infinity and just produces a normal wave
# unsure of which behavior is desireable at this time
# or how... | 43.176471 | 143 | 0.756131 | 115 | 734 | 4.826087 | 0.730435 | 0.059459 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040584 | 0.160763 | 734 | 16 | 144 | 45.875 | 0.86039 | 0.645777 | 0 | 0 | 0 | 0 | 0.602564 | 0.564103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bfb93d0cad239247bcffb88a0a11566cfbf6e76a | 407 | py | Python | poop/hfdp/factory/challenge/pacific_calendar.py | cassiobotaro/poop | fc218fbf638c50da8ea98dab7de26ad2a52e83f5 | [
"MIT"
] | 37 | 2020-12-27T00:13:07.000Z | 2022-01-31T19:30:18.000Z | poop/hfdp/factory/challenge/pacific_calendar.py | cassiobotaro/poop | fc218fbf638c50da8ea98dab7de26ad2a52e83f5 | [
"MIT"
] | null | null | null | poop/hfdp/factory/challenge/pacific_calendar.py | cassiobotaro/poop | fc218fbf638c50da8ea98dab7de26ad2a52e83f5 | [
"MIT"
] | 7 | 2020-12-26T22:33:47.000Z | 2021-11-07T01:29:59.000Z | from poop.hfdp.factory.challenge.calendar import Calendar
from poop.hfdp.factory.challenge.zone_factory import ZoneFactory
class PacificCalendar(Calendar):
def __init__(self, zone_factory: ZoneFactory) -> None:
self._zone = zone_factory.create_zone("US/Pacific")
def create_calendar(self, appointments... | 37 | 64 | 0.7543 | 51 | 407 | 5.823529 | 0.529412 | 0.111111 | 0.080808 | 0.127946 | 0.188552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142506 | 407 | 10 | 65 | 40.7 | 0.851003 | 0 | 0 | 0 | 0 | 0 | 0.137592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
bfc6d536bd00d6d52359bd4df423a1f22afad57a | 183 | py | Python | 01_Language/01_Functions/python/mail.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 3 | 2020-06-28T07:42:51.000Z | 2021-01-15T10:32:11.000Z | 01_Language/01_Functions/python/mail.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 9 | 2021-03-10T22:45:40.000Z | 2022-02-27T06:53:20.000Z | 01_Language/01_Functions/python/mail.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 1 | 2021-01-15T10:51:24.000Z | 2021-01-15T10:51:24.000Z | # coding: utf-8
import smtplib
msg = "Line 1\nLine 2\nLine 3"
server = smtplib.SMTP('localhost')
server.sendmail('sender@example.com', 'caffeinated@example.com', msg)
server.quit()
| 20.333333 | 69 | 0.726776 | 27 | 183 | 4.925926 | 0.740741 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02454 | 0.10929 | 183 | 8 | 70 | 22.875 | 0.791411 | 0.071038 | 0 | 0 | 0 | 0 | 0.428571 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bfc7e34ff6a0e29781c1e28e5ff06849303db0af | 818 | py | Python | setup.py | swharden/webinspect | 432674b61666d66e5be330b61f9fad0b46dac84e | [
"MIT"
] | 3 | 2019-02-28T18:07:02.000Z | 2020-03-26T06:58:16.000Z | setup.py | swharden/webinspect | 432674b61666d66e5be330b61f9fad0b46dac84e | [
"MIT"
] | null | null | null | setup.py | swharden/webinspect | 432674b61666d66e5be330b61f9fad0b46dac84e | [
"MIT"
] | 2 | 2017-07-02T00:55:17.000Z | 2020-03-26T06:58:17.000Z | from distutils.core import setup
import webinspect
setup(
name='webinspect',
version=webinspect.__version__,
author='Scott W Harden',
author_email='SWHarden@gmail.com',
packages=['webinspect'],
url='https://github.com/swharden/webinspect',
license='MIT License',
description... | 54.533333 | 450 | 0.755501 | 108 | 818 | 5.666667 | 0.703704 | 0.019608 | 0.053922 | 0.042484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168704 | 818 | 15 | 451 | 54.533333 | 0.9 | 0 | 0 | 0 | 0 | 0.076923 | 0.698137 | 0.036025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
44a3b7ef00e06d7c272e92b08ddb7119a66bf685 | 3,205 | py | Python | edb/common/binwrapper.py | aaronbrighton/edgedb | 4aacd1d4e248ae0d483c075ba93fc462da291ef4 | [
"Apache-2.0"
] | 7,302 | 2018-05-10T18:36:31.000Z | 2022-03-31T17:49:36.000Z | edb/common/binwrapper.py | aaronbrighton/edgedb | 4aacd1d4e248ae0d483c075ba93fc462da291ef4 | [
"Apache-2.0"
] | 1,602 | 2018-05-10T17:45:38.000Z | 2022-03-31T23:46:19.000Z | edb/common/binwrapper.py | aaronbrighton/edgedb | 4aacd1d4e248ae0d483c075ba93fc462da291ef4 | [
"Apache-2.0"
] | 236 | 2018-05-13T14:15:29.000Z | 2022-03-29T19:39:19.000Z | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2019-present MagicStack Inc. and the EdgeDB authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... | 28.114035 | 74 | 0.626209 | 480 | 3,205 | 4.108333 | 0.25625 | 0.074544 | 0.055781 | 0.073022 | 0.370183 | 0.280933 | 0.255578 | 0.255578 | 0.133874 | 0 | 0 | 0.04182 | 0.239002 | 3,205 | 113 | 75 | 28.362832 | 0.766708 | 0.219969 | 0 | 0.149254 | 0 | 0 | 0.019774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.313433 | false | 0 | 0.044776 | 0 | 0.641791 | 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 | 1 | 0 | 0 | 2 |
44a6007d691a4403a60198e26a7de946aa966052 | 376 | py | Python | tests/test_blog.py | Mzazi25/blogposts | b4673737171caa660d7f1296c741870ab07dc693 | [
"Unlicense"
] | null | null | null | tests/test_blog.py | Mzazi25/blogposts | b4673737171caa660d7f1296c741870ab07dc693 | [
"Unlicense"
] | null | null | null | tests/test_blog.py | Mzazi25/blogposts | b4673737171caa660d7f1296c741870ab07dc693 | [
"Unlicense"
] | null | null | null | import unittest
from app .models import Blog
class BlogModelTest(unittest.TestCase):
'''
Test Class to test the behavior of the Blog Model
'''
def setUp(self):
'''
setup method that runs before every test
'''
self.new_blog = Blog(Blog= 'checki man')
def test_blog(se... | 26.857143 | 53 | 0.632979 | 50 | 376 | 4.7 | 0.6 | 0.068085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 376 | 14 | 54 | 26.857143 | 0.863971 | 0.239362 | 0 | 0 | 0 | 0 | 0.040323 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 2 |
44ae3590b20cfb4480211cdbd4a0c557865bce64 | 176 | py | Python | backend/users/views.py | hearot/pycon | 9a722c4803d8583ae8168066c7b710ce96d659a5 | [
"MIT"
] | null | null | null | backend/users/views.py | hearot/pycon | 9a722c4803d8583ae8168066c7b710ce96d659a5 | [
"MIT"
] | null | null | null | backend/users/views.py | hearot/pycon | 9a722c4803d8583ae8168066c7b710ce96d659a5 | [
"MIT"
] | null | null | null | from django.shortcuts import render
def post_login_view(request):
user = request.user
return render(request, 'users/post-login.html', {
'user': user,
})
| 17.6 | 53 | 0.659091 | 22 | 176 | 5.181818 | 0.636364 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221591 | 176 | 9 | 54 | 19.555556 | 0.832117 | 0 | 0 | 0 | 0 | 0 | 0.142045 | 0.119318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
44b3097b60b69d9b29158f0327f88b4045eeb0d5 | 353 | py | Python | spacebar/astro/bodies.py | brandon-sexton/spacebar | f53d6f12341baa7ec4902b65899b848d9a46c1b1 | [
"MIT"
] | null | null | null | spacebar/astro/bodies.py | brandon-sexton/spacebar | f53d6f12341baa7ec4902b65899b848d9a46c1b1 | [
"MIT"
] | null | null | null | spacebar/astro/bodies.py | brandon-sexton/spacebar | f53d6f12341baa7ec4902b65899b848d9a46c1b1 | [
"MIT"
] | null | null | null | class Earth:
"""
Class used to represent Earth. Values are defined using EGM96 geopotential
model. Constant naming convention is intentionally not used since the
values defined here may be updated in the future by introducing other
geopotential models
"""
mu = 3.986004415e5 #km^3/s^2
... | 39.222222 | 79 | 0.719547 | 49 | 353 | 5.163265 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084559 | 0.229462 | 353 | 9 | 80 | 39.222222 | 0.845588 | 0.70255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.