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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f239f097e9b19538c2da8b9e6eb10b642787d4e | 3,219 | py | Python | custom_components/tuneblade/tuneblade.py | spycle/tune_blade | bce9847531f410634765df7391565e2094549eb6 | [
"Apache-2.0"
] | null | null | null | custom_components/tuneblade/tuneblade.py | spycle/tune_blade | bce9847531f410634765df7391565e2094549eb6 | [
"Apache-2.0"
] | null | null | null | custom_components/tuneblade/tuneblade.py | spycle/tune_blade | bce9847531f410634765df7391565e2094549eb6 | [
"Apache-2.0"
] | null | null | null | """TuneBlade API Client."""
import logging
import asyncio
import socket
from typing import Optional
import aiohttp
import async_timeout
TIMEOUT = 10
_LOGGER: logging.Logger = logging.getLogger(__package__)
HEADERS = {"Content-type": "application/json; charset=UTF-8"}
class TuneBladeApiClient:
def __init__(
... | 36.579545 | 141 | 0.581858 | 355 | 3,219 | 5.123944 | 0.259155 | 0.039582 | 0.027488 | 0.030786 | 0.390874 | 0.319956 | 0.319956 | 0.234744 | 0.234744 | 0.134689 | 0 | 0.003979 | 0.297297 | 3,219 | 87 | 142 | 37 | 0.800177 | 0.021746 | 0 | 0.138462 | 0 | 0 | 0.10565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0.076923 | 0.092308 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4f23e71ddb8ee1ace14dbb8e3bd3439af093af7d | 1,607 | py | Python | train.py | RuiShu/fast-style-transfer | abea698668aa070375afa488e490b93ba5bb9563 | [
"MIT"
] | 16 | 2017-09-30T21:13:27.000Z | 2019-08-31T19:16:44.000Z | train.py | RuiShu/fast-style-transfer | abea698668aa070375afa488e490b93ba5bb9563 | [
"MIT"
] | null | null | null | train.py | RuiShu/fast-style-transfer | abea698668aa070375afa488e490b93ba5bb9563 | [
"MIT"
] | 1 | 2021-08-05T08:59:58.000Z | 2021-08-05T08:59:58.000Z | from config import args
from utils import delete_existing, get_img, get_img_files
import tensorbayes as tb
import tensorflow as tf
import numpy as np
import os
def push_to_buffer(buf, data_files):
files = np.random.choice(data_files, len(buf), replace=False)
for i, f in enumerate(files):
buf[i] = get_i... | 35.711111 | 76 | 0.627878 | 243 | 1,607 | 3.950617 | 0.378601 | 0.0375 | 0.034375 | 0.03125 | 0.129167 | 0.0625 | 0.0625 | 0 | 0 | 0 | 0 | 0.020661 | 0.247044 | 1,607 | 44 | 77 | 36.522727 | 0.772727 | 0 | 0 | 0.055556 | 0 | 0 | 0.023647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f2add3dfacdc457e8a021fc99bae54faa461b6f | 13,569 | py | Python | scripts/sg-toolbox/SG-Glyph-CopyLayer.py | tphinney/science-gothic | b5e8a73778fdb62c38a0ee81cbe923ae9e15fc9a | [
"Apache-2.0"
] | 104 | 2019-08-08T20:18:18.000Z | 2022-03-23T21:08:24.000Z | scripts/sg-toolbox/SG-Glyph-CopyLayer.py | tphinney/science-gothic | b5e8a73778fdb62c38a0ee81cbe923ae9e15fc9a | [
"Apache-2.0"
] | 269 | 2019-08-06T22:12:53.000Z | 2022-03-23T18:05:07.000Z | scripts/FontLab/sg-toolbox/SG-Glyph-CopyLayer.py | tphinney/bank-gothic | 5857f71c207ff9fd54899423304267339196ef21 | [
"Apache-2.0"
] | 5 | 2019-08-09T21:51:45.000Z | 2020-04-26T18:09:01.000Z | #FLM: Glyph: Copy Layer (TypeRig)
# ----------------------------------------
# (C) Vassil Kateliev, 2019 (http://www.kateliev.com)
# (C) Karandash Type Foundry (http://www.karandash.eu)
#-----------------------------------------
# www.typerig.com
# No warranties. By using this you agree
# that you use it at your own r... | 37.587258 | 191 | 0.67271 | 1,797 | 13,569 | 4.963272 | 0.176405 | 0.0259 | 0.051575 | 0.028254 | 0.330979 | 0.30037 | 0.226707 | 0.186344 | 0.122996 | 0.108869 | 0 | 0.01454 | 0.158597 | 13,569 | 361 | 192 | 37.587258 | 0.766664 | 0.091458 | 0 | 0.096525 | 0 | 0 | 0.118528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.015444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f355e9a0ec2580f7a7a369727ffb40554a5d73b | 1,108 | py | Python | morse_code.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | morse_code.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | morse_code.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | """
Morse Code Implementation to tell unique pattern
Example:
Input: words = ["gin", "zen", "gig", "msg"]
Output: 2
Explanation:
The transformation of each word is:
"gin" -> "--...-."
"zen" -> "--...-."
"gig" -> "--...--."
"msg" -> "--...--."
There are 2 different transformations, "--...-." and "--...--.".
Notes
Th... | 22.16 | 64 | 0.624549 | 142 | 1,108 | 4.753521 | 0.450704 | 0.106667 | 0.04 | 0.053333 | 0.05037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013921 | 0.222022 | 1,108 | 50 | 65 | 22.16 | 0.769142 | 0 | 0 | 0 | 0 | 0 | 0.01849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f35e5d4ae5344e336395cce9d435d980c9b8a4f | 1,771 | py | Python | src/genie/libs/parser/iosxr/tests/ShowOspfVrfAllInclusiveShamLinks/cli/equal/golden_output_1_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/ShowOspfVrfAllInclusiveShamLinks/cli/equal/golden_output_1_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/ShowOspfVrfAllInclusiveShamLinks/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z |
expected_output = {
"vrf": {
"VRF1": {
"address_family": {
"ipv4": {
"instance": {
"1": {
"areas": {
"0.0.0.1": {
"sham_links": {
... | 42.166667 | 74 | 0.197628 | 89 | 1,771 | 3.719101 | 0.651685 | 0.024169 | 0.018127 | 0.024169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131115 | 0.711462 | 1,771 | 41 | 75 | 43.195122 | 0.516634 | 0 | 0 | 0 | 0 | 0 | 0.195025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f41108bae3999d613b16bce6c5067e9321c891a | 262 | py | Python | backoffice/utils/constant.py | MedPy-C/backend | 262834adb1f4f5714c4bd490595fdfa1f49c9675 | [
"MIT"
] | null | null | null | backoffice/utils/constant.py | MedPy-C/backend | 262834adb1f4f5714c4bd490595fdfa1f49c9675 | [
"MIT"
] | 1 | 2021-05-20T16:08:35.000Z | 2021-05-20T16:08:35.000Z | backoffice/utils/constant.py | MedPy-C/backend | 262834adb1f4f5714c4bd490595fdfa1f49c9675 | [
"MIT"
] | null | null | null | from enum import Enum
class RoleLevel(Enum):
OWNER = 0
ADMIN = 1
USER = 3
class Status(Enum):
ACTIVE = 1
INACTIVE = 0
class AccessLevel(Enum):
ADMIN = 0
USER = 1
class URL():
ACTIVATION = '/backoffice/invitation/activate/'
| 12.47619 | 51 | 0.614504 | 33 | 262 | 4.878788 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037433 | 0.28626 | 262 | 20 | 52 | 13.1 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.122137 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4f41b185490551ba17dfbc19cca9e3a24ae60285 | 1,309 | py | Python | pages/migrations/0018_auto_20171102_1809.py | Vicarium/amy_site | eeb779aae74dc3af96f2837d876bafb8e13522d2 | [
"MIT"
] | null | null | null | pages/migrations/0018_auto_20171102_1809.py | Vicarium/amy_site | eeb779aae74dc3af96f2837d876bafb8e13522d2 | [
"MIT"
] | null | null | null | pages/migrations/0018_auto_20171102_1809.py | Vicarium/amy_site | eeb779aae74dc3af96f2837d876bafb8e13522d2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-02 18:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0019_del... | 35.378378 | 191 | 0.624905 | 131 | 1,309 | 6.068702 | 0.580153 | 0.040252 | 0.05283 | 0.083019 | 0.085535 | 0.085535 | 0.085535 | 0 | 0 | 0 | 0 | 0.029352 | 0.245225 | 1,309 | 36 | 192 | 36.361111 | 0.775304 | 0.051948 | 0 | 0.068966 | 1 | 0 | 0.176898 | 0.047658 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f4f6e6b80c56c5a27d1f21b5dbb08a35977376c | 362 | py | Python | nomad/images/migrations/0003_auto_20181218_2248.py | jss8882/nomad | 914fefe3a9bd47c6a252829f4cf5a30796ea4885 | [
"MIT"
] | null | null | null | nomad/images/migrations/0003_auto_20181218_2248.py | jss8882/nomad | 914fefe3a9bd47c6a252829f4cf5a30796ea4885 | [
"MIT"
] | 7 | 2021-05-07T23:17:55.000Z | 2022-02-26T14:37:28.000Z | nomad/images/migrations/0003_auto_20181218_2248.py | jss8882/nomad | 914fefe3a9bd47c6a252829f4cf5a30796ea4885 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.9 on 2018-12-18 13:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('images', '0002_auto_20181218_2029'),
]
operations = [
migrations.RenameField(
model_name='like',
old_name='message',
... | 19.052632 | 47 | 0.582873 | 39 | 362 | 5.25641 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123016 | 0.303867 | 362 | 18 | 48 | 20.111111 | 0.690476 | 0.124309 | 0 | 0 | 1 | 0 | 0.149206 | 0.073016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f514c4b037c5ec11c6ed2a7b923cc3c118b32f5 | 378 | py | Python | dcodex_lectionary/migrations/0031_auto_20201119_2140.py | rbturnbull/dcodex_lectionary | 9a4787eb353d09fef023cd82af8859a7ee041aee | [
"Apache-2.0"
] | null | null | null | dcodex_lectionary/migrations/0031_auto_20201119_2140.py | rbturnbull/dcodex_lectionary | 9a4787eb353d09fef023cd82af8859a7ee041aee | [
"Apache-2.0"
] | 2 | 2021-08-09T01:11:59.000Z | 2021-08-09T01:12:49.000Z | dcodex_lectionary/migrations/0031_auto_20201119_2140.py | rbturnbull/dcodex_lectionary | 9a4787eb353d09fef023cd82af8859a7ee041aee | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.11 on 2020-11-19 10:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dcodex_lectionary', '0030_auto_20201119_2131'),
]
operations = [
migrations.RenameField(
model_name='movableday',
old_name=... | 19.894737 | 57 | 0.600529 | 40 | 378 | 5.5 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 0.291005 | 378 | 18 | 58 | 21 | 0.701493 | 0.121693 | 0 | 0 | 1 | 0 | 0.187879 | 0.069697 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f5c288f9e0f093a2231fc27d8381b1980cd1226 | 566 | py | Python | pronotepy/ent/test_ent.py | Bapt5/pronotepy | 8787d3f6b3d3062e598c74a40df4a3ebf759201b | [
"MIT"
] | null | null | null | pronotepy/ent/test_ent.py | Bapt5/pronotepy | 8787d3f6b3d3062e598c74a40df4a3ebf759201b | [
"MIT"
] | null | null | null | pronotepy/ent/test_ent.py | Bapt5/pronotepy | 8787d3f6b3d3062e598c74a40df4a3ebf759201b | [
"MIT"
] | 3 | 2022-03-11T20:51:23.000Z | 2022-03-31T20:03:13.000Z | import unittest
from inspect import getmembers, isfunction
from functools import partial
import pronotepy
from pronotepy import ent
class TestENT(unittest.TestCase):
functions: list
@classmethod
def setUpClass(cls) -> None:
cls.functions = getmembers(
ent, lambda x: isfunction(x) or... | 21.769231 | 87 | 0.680212 | 63 | 566 | 5.968254 | 0.587302 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002294 | 0.229682 | 566 | 25 | 88 | 22.64 | 0.860092 | 0 | 0 | 0 | 0 | 0 | 0.042403 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.117647 | false | 0.058824 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4f5cb8549eb68a8c6eb2d4195211dbccec0f0258 | 214 | py | Python | examples/lolcode_rockstar.py | hoojaoh/rockstar | 2cb911be76fc93692c180d629f0b282d672ea8f7 | [
"MIT"
] | 4,603 | 2015-07-16T20:11:28.000Z | 2022-03-21T23:51:47.000Z | examples/lolcode_rockstar.py | hoojaoh/rockstar | 2cb911be76fc93692c180d629f0b282d672ea8f7 | [
"MIT"
] | 90 | 2015-07-18T11:51:33.000Z | 2021-05-10T02:45:58.000Z | examples/lolcode_rockstar.py | hoojaoh/rockstar | 2cb911be76fc93692c180d629f0b282d672ea8f7 | [
"MIT"
] | 436 | 2015-07-16T22:10:50.000Z | 2022-02-15T04:53:19.000Z | from rockstar import RockStar
lolcode_code = """HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE"""
rock_it_bro = RockStar(days=400, file_name='helloworld.lol', code=lolcode_code)
rock_it_bro.make_me_a_rockstar()
| 21.4 | 79 | 0.780374 | 34 | 214 | 4.617647 | 0.705882 | 0.140127 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.102804 | 214 | 9 | 80 | 23.777778 | 0.802083 | 0 | 0 | 0 | 0 | 0 | 0.285047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f5ff30ca61fd37831eb16f637a4b5ec27844a14 | 6,857 | py | Python | fca/algorithms/exploration/examples/bi_unars.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | 3 | 2015-09-07T00:16:16.000Z | 2019-01-11T20:27:56.000Z | fca/algorithms/exploration/examples/bi_unars.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | null | null | null | fca/algorithms/exploration/examples/bi_unars.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import copy
import itertools
import fca
from fca.algorithms.exploration.exploration import (AttributeExploration,
ExplorationDB)
from fca import Implication
# from fca.algorithms.closure_operators import simple_closure as clos... | 31.027149 | 100 | 0.530407 | 811 | 6,857 | 4.323058 | 0.176326 | 0.044495 | 0.010268 | 0.034227 | 0.185396 | 0.100114 | 0.023959 | 0.011409 | 0 | 0 | 0 | 0.003444 | 0.364883 | 6,857 | 220 | 101 | 31.168182 | 0.801607 | 0.085168 | 0 | 0.09589 | 0 | 0 | 0.03231 | 0 | 0 | 0 | 0 | 0.004545 | 0 | 0 | null | null | 0 | 0.034247 | null | null | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f639ad546becd053f95f292acd5d75f4f3f1148 | 1,270 | py | Python | Lexical_Semantics/Repositories/Word2Vec_and_Fasttext/word2vec-and-fasttext.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | Lexical_Semantics/Repositories/Word2Vec_and_Fasttext/word2vec-and-fasttext.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | Lexical_Semantics/Repositories/Word2Vec_and_Fasttext/word2vec-and-fasttext.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | import numpy as np
import os
import re
import urllib.request
import zipfile
import lxml.etree
from gensim.models import FastText
from random import shuffle
#download the data
urllib.request.urlretrieve(
"https://wit3.fbk.eu/get.php?path=XML_releases/xml/ted_en-20160408.zip&filename=ted_en-20160408.zip", filename=... | 32.564103 | 137 | 0.685827 | 189 | 1,270 | 4.465608 | 0.507937 | 0.029621 | 0.077014 | 0.075829 | 0.075829 | 0.075829 | 0.075829 | 0.075829 | 0.075829 | 0 | 0 | 0.048237 | 0.151181 | 1,270 | 38 | 138 | 33.421053 | 0.734694 | 0.088189 | 0 | 0 | 0 | 0.038462 | 0.234172 | 0.041631 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f63a170f475f21430256af0098ee8caf3ec6b78 | 2,453 | py | Python | Source Code/Python API/multivent_client.py | D-TACQ/acq400_lv | 684e06a294ceb865511a7568e5038b209bdc3374 | [
"MIT"
] | null | null | null | Source Code/Python API/multivent_client.py | D-TACQ/acq400_lv | 684e06a294ceb865511a7568e5038b209bdc3374 | [
"MIT"
] | 2 | 2018-04-23T16:37:19.000Z | 2018-07-11T10:51:19.000Z | Source Code/Python API/multivent_client.py | D-TACQ/acq400_lv | 684e06a294ceb865511a7568e5038b209bdc3374 | [
"MIT"
] | 3 | 2018-04-20T11:53:29.000Z | 2018-04-25T15:25:55.000Z | #!/usr/local/bin/python
# UUT is running continuous pre/post snapshots
# subscribe to the snapshots and save all the data.
import threading
import epics
import argparse
import time
import datetime
import os
NCHAN = 16
# WF record, raw binary (shorts)
WFNAME = ":1:AI:WF:{:02d}"
# alt WF record, VOLTS. Kindof harder t... | 31.448718 | 105 | 0.593151 | 338 | 2,453 | 4.213018 | 0.431953 | 0.038624 | 0.014045 | 0.025281 | 0.10323 | 0.051264 | 0.051264 | 0.037921 | 0.037921 | 0 | 0 | 0.022614 | 0.260905 | 2,453 | 77 | 106 | 31.857143 | 0.762824 | 0.157358 | 0 | 0 | 0 | 0 | 0.110355 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.137255 | false | 0 | 0.117647 | 0 | 0.313725 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f69fd9cc8113e6ef8df3f55cd4920361ce2a21d | 1,578 | py | Python | herramientas/zapador/zapador/zapadorapp.py | ZR-TECDI/Framework_ZR | 0fa994d4b3cbf19affab84695705d022adae872c | [
"MIT"
] | 4 | 2019-09-07T19:31:27.000Z | 2020-06-13T21:41:45.000Z | herramientas/zapador/zapador/zapadorapp.py | ZR-TECDI/Framework_ZR | 0fa994d4b3cbf19affab84695705d022adae872c | [
"MIT"
] | 21 | 2019-09-09T00:55:40.000Z | 2021-08-09T20:50:56.000Z | herramientas/zapador/zapador/zapadorapp.py | ZR-TECDI/Framework_ZR | 0fa994d4b3cbf19affab84695705d022adae872c | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.lang import Builder
from kivy.uix.gridlayout import GridLayout
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
import zapador.constantes as cons
from zapador.metodos import pre_run
from zapador.clases import *
from kivy.factory import Factory
ubicacion = con... | 27.684211 | 72 | 0.707858 | 211 | 1,578 | 5.184834 | 0.36019 | 0.036563 | 0.046618 | 0.068556 | 0.162706 | 0.162706 | 0.162706 | 0.162706 | 0.162706 | 0.162706 | 0 | 0.003817 | 0.169835 | 1,578 | 56 | 73 | 28.178571 | 0.831298 | 0.017744 | 0 | 0.121951 | 0 | 0 | 0.095917 | 0.019443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.04878 | 0.317073 | 0 | 0.609756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f701be6860630646ec1eab6b85fb174acb20f92 | 813 | py | Python | api/routers/fetch.py | ThisIsBrainDamage/OSC-API | af361ebe72cd282d1a3e69924dde1a215816f0bd | [
"MIT"
] | 2 | 2022-03-16T04:09:53.000Z | 2022-03-16T09:38:52.000Z | api/routers/fetch.py | ThisIsBrainDamage/OSC-API | af361ebe72cd282d1a3e69924dde1a215816f0bd | [
"MIT"
] | null | null | null | api/routers/fetch.py | ThisIsBrainDamage/OSC-API | af361ebe72cd282d1a3e69924dde1a215816f0bd | [
"MIT"
] | null | null | null | # Standard library imports
import os
# Third party imports
from fastapi import Depends, APIRouter, HTTPException
from dotenv import load_dotenv
# Local imports
from ..auth.classes import User
from ..auth.authenticate import get_current_active_user
from ..data import fetch_all, fetch_item
load_dotenv()
fetch = APIR... | 22.583333 | 89 | 0.719557 | 115 | 813 | 4.904348 | 0.417391 | 0.053191 | 0.085106 | 0.106383 | 0.237589 | 0.148936 | 0.148936 | 0.148936 | 0 | 0 | 0 | 0.004559 | 0.190652 | 813 | 36 | 90 | 22.583333 | 0.852584 | 0.071341 | 0 | 0.111111 | 0 | 0 | 0.041221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f71b59f7fa424504c4850aad52c0fb59243156e | 1,475 | py | Python | graphium/graph_management/model/access.py | graphium-project/graphium-qgis-plugin | 480e90dc874522b4d4d36b0d7b909ef3144da8b2 | [
"Apache-2.0"
] | 1 | 2020-07-11T10:28:33.000Z | 2020-07-11T10:28:33.000Z | graphium/graph_management/model/access.py | graphium-project/graphium-qgis-plugin | 480e90dc874522b4d4d36b0d7b909ef3144da8b2 | [
"Apache-2.0"
] | null | null | null | graphium/graph_management/model/access.py | graphium-project/graphium-qgis-plugin | 480e90dc874522b4d4d36b0d7b909ef3144da8b2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/***************************************************************************
QGIS plugin 'Graphium'
/***************************************************************************
*
* Copyright 2020 Simon Gröchenig @ Salzburg Research
* eMail graphium@salzburgresearch.at
*
* Licensed... | 27.314815 | 77 | 0.568814 | 173 | 1,475 | 4.757225 | 0.751445 | 0.072904 | 0.031592 | 0.038882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040693 | 0.216949 | 1,475 | 53 | 78 | 27.830189 | 0.671861 | 0.635932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4f746f8a5d2093a7b2129bda73802e19923f5043 | 851 | py | Python | ocean_utils/agreements/utils.py | oceanprotocol/common-utils-py | f577f4762841496584e114baaec0d476e73c700e | [
"Apache-2.0"
] | null | null | null | ocean_utils/agreements/utils.py | oceanprotocol/common-utils-py | f577f4762841496584e114baaec0d476e73c700e | [
"Apache-2.0"
] | 2 | 2019-12-16T11:26:21.000Z | 2021-03-18T13:06:31.000Z | ocean_utils/agreements/utils.py | oceanprotocol/common-utils-py | f577f4762841496584e114baaec0d476e73c700e | [
"Apache-2.0"
] | null | null | null | """Agreements module."""
# Copyright 2018 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
from ocean_utils.agreements.access_sla_template import ACCESS_SLA_TEMPLATE
from ocean_utils.agreements.compute_sla_template import COMPUTE_SLA_TEMPLATE
from ocean_utils.agreements.service_types import ServiceTy... | 35.458333 | 86 | 0.780259 | 100 | 851 | 6.38 | 0.46 | 0.12069 | 0.144201 | 0.112853 | 0.216301 | 0.109718 | 0 | 0 | 0 | 0 | 0 | 0.008219 | 0.142186 | 851 | 23 | 87 | 37 | 0.865753 | 0.225617 | 0 | 0 | 0 | 0 | 0.166932 | 0.076312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4f74e6b364f85cdca76783ea050b55c4b0e2bf27 | 1,750 | py | Python | mobilenetv1.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | mobilenetv1.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | mobilenetv1.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
class mobilenet(nn.Module):
def __init__(self):
super(mobilenet, self).__init__()
self.conv_1 = nn.Sequential(
nn.Conv2d(3, 64, kernel_size=3, stride=1, padding=1),
nn.BatchNorm2d(64),
nn.ReLU()
... | 30.701754 | 123 | 0.566286 | 254 | 1,750 | 3.704724 | 0.232283 | 0.221041 | 0.095643 | 0.104145 | 0.157279 | 0.157279 | 0.157279 | 0.157279 | 0 | 0 | 0 | 0.08126 | 0.310857 | 1,750 | 57 | 124 | 30.701754 | 0.699005 | 0 | 0 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0.021277 | 0.212766 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f80040acf6642b4b3a8529a3483b2576449af0d | 169 | py | Python | Test_cases/Generated_Python/loops.py | TY-Projects/Code-Converter | 9fee4e186e0be94741a38bb95abe32adb8957fde | [
"MIT"
] | null | null | null | Test_cases/Generated_Python/loops.py | TY-Projects/Code-Converter | 9fee4e186e0be94741a38bb95abe32adb8957fde | [
"MIT"
] | null | null | null | Test_cases/Generated_Python/loops.py | TY-Projects/Code-Converter | 9fee4e186e0be94741a38bb95abe32adb8957fde | [
"MIT"
] | null | null | null | def main () :
i = 1
fib = 1
target = 10
temp = 0
while (i < target) :
temp = fib
fib += temp
i+=1
print(fib)
return 0
if __name__ == '__main__':
main()
| 10.5625 | 26 | 0.538462 | 27 | 169 | 3.074074 | 0.518519 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060345 | 0.313609 | 169 | 15 | 27 | 11.266667 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0.047337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f80e45d4e32c8be3ef561b50ff2444d16c0afd8 | 1,790 | py | Python | xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | """Submit jobs to Sun Grid Engine."""
# pylint: disable=invalid-name
import os
import subprocess
from . import tracker
def submit(args):
"""Job submission script for SGE."""
if args.jobname is None:
args.jobname = ('dmlc%d.' % args.num_workers) + args.command[0].split('/')[-1]
if args.sge_log_dir... | 36.530612 | 92 | 0.581006 | 258 | 1,790 | 3.918605 | 0.426357 | 0.041543 | 0.062315 | 0.077151 | 0.035608 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002232 | 0.249162 | 1,790 | 48 | 93 | 37.291667 | 0.75 | 0.110056 | 0 | 0 | 0 | 0 | 0.19099 | 0.03236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.083333 | 0 | 0.138889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4f8d150b4ae88cb9a27ba7e46fc92e9ece8c3e04 | 11,435 | py | Python | 14_plot_target-list.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | 1 | 2021-07-30T09:59:41.000Z | 2021-07-30T09:59:41.000Z | 14_plot_target-list.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | null | null | null | 14_plot_target-list.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | 1 | 2021-07-30T10:38:54.000Z | 2021-07-30T10:38:54.000Z | ''' 14-plot_target-list.py
===============================================
AIM: Given a catalogue of objects, plots when the targets are visible according to their magnitude for a given period of time.
INPUT: files: - <orbit_id>_misc/orbits.dat
- <orbit_id>_flux/flux_*.dat
variables: see section PARAMETERS (below)... | 29.778646 | 224 | 0.689899 | 1,745 | 11,435 | 4.341547 | 0.25043 | 0.015708 | 0.017555 | 0.00924 | 0.231389 | 0.177138 | 0.103485 | 0.05161 | 0.024551 | 0.015312 | 0 | 0.019797 | 0.129777 | 11,435 | 383 | 225 | 29.856397 | 0.741534 | 0.143157 | 0 | 0.118483 | 0 | 0 | 0.074353 | 0.020046 | 0 | 0 | 0 | 0.002611 | 0 | 0 | null | null | 0 | 0.061611 | null | null | 0.018957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f900b835f7f2809af5aeab94956f59503ab79fe | 2,534 | py | Python | tests/test_lime.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 9 | 2021-11-16T09:53:47.000Z | 2022-03-02T13:28:53.000Z | tests/test_lime.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 340 | 2021-03-03T12:55:37.000Z | 2022-03-31T13:53:44.000Z | tests/test_lime.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 5 | 2021-08-19T08:14:35.000Z | 2022-03-17T21:12:46.000Z | from unittest import TestCase
import numpy as np
import dianna
import dianna.visualization
from dianna.methods import LIME
from tests.test_onnx_runner import generate_data
from tests.utils import ModelRunner
from tests.utils import run_model
class LimeOnImages(TestCase):
def test_lime_function(self):
np.... | 39.59375 | 130 | 0.685478 | 343 | 2,534 | 4.848397 | 0.317784 | 0.043295 | 0.039086 | 0.041491 | 0.21828 | 0.196633 | 0.196633 | 0.120265 | 0.120265 | 0.066146 | 0 | 0.031683 | 0.202841 | 2,534 | 63 | 131 | 40.222222 | 0.791584 | 0.038674 | 0 | 0.085106 | 1 | 0 | 0.103576 | 0.076038 | 0 | 0 | 0 | 0 | 0.148936 | 1 | 0.085106 | false | 0 | 0.170213 | 0.021277 | 0.297872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f90780c2a2a1ba5b699d89bbb0798c1c6453c81 | 1,361 | py | Python | backend/app.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 3 | 2020-06-13T02:47:29.000Z | 2020-06-20T17:34:15.000Z | backend/app.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 2 | 2020-06-14T20:29:26.000Z | 2020-06-14T20:29:34.000Z | backend/app.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 1 | 2020-09-04T01:45:39.000Z | 2020-09-04T01:45:39.000Z | # import app
from flask import Flask, render_template, make_response, send_file
from flask_cors import CORS
# import custom helpers
from maplib import generate_embed
import loyaltylib as ll
app = Flask(__name__)
CORS(app)
# import declared routes
import frontenddata
@app.route('/ll')
def llfn():
ll.create_loya... | 24.303571 | 66 | 0.653196 | 179 | 1,361 | 4.798883 | 0.547486 | 0.048894 | 0.039581 | 0.044237 | 0.088475 | 0.088475 | 0.088475 | 0.088475 | 0 | 0 | 0 | 0.049257 | 0.209405 | 1,361 | 56 | 67 | 24.303571 | 0.749071 | 0.259368 | 0 | 0 | 1 | 0 | 0.224798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.166667 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f926b4a8eb11004ae116e00ec4924740a1b7257 | 224 | py | Python | generators/UGATIT/dataset/day2rain/txt_gen.py | JW9MsjwjnpdRLFw/RMT | a877fd78639a8d4c534d0373b9d0ad023e0fa2dd | [
"MIT"
] | null | null | null | generators/UGATIT/dataset/day2rain/txt_gen.py | JW9MsjwjnpdRLFw/RMT | a877fd78639a8d4c534d0373b9d0ad023e0fa2dd | [
"MIT"
] | null | null | null | generators/UGATIT/dataset/day2rain/txt_gen.py | JW9MsjwjnpdRLFw/RMT | a877fd78639a8d4c534d0373b9d0ad023e0fa2dd | [
"MIT"
] | 3 | 2021-01-25T02:44:23.000Z | 2021-04-09T13:25:57.000Z | import os
dir = ['trainA', 'trainB', 'testA', 'testB']
for d in dir:
img_names = os.listdir(d)
f = open('list_' + d + '.txt', "w")
for img in img_names:
f.write('./' + img + '\n')
# print(img_names) | 22.4 | 44 | 0.522321 | 34 | 224 | 3.323529 | 0.617647 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263393 | 224 | 10 | 45 | 22.4 | 0.684848 | 0.071429 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f997b4422654e8ded613b50854c6295cfbecb26 | 2,437 | py | Python | functions/sentim-preprocess/main.py | gipfelen/Sentiment-Analysis | f852f9887310cdff90e115cc140a2f8ae3618087 | [
"MIT"
] | null | null | null | functions/sentim-preprocess/main.py | gipfelen/Sentiment-Analysis | f852f9887310cdff90e115cc140a2f8ae3618087 | [
"MIT"
] | 1 | 2022-01-04T22:47:06.000Z | 2022-01-04T22:47:06.000Z | functions/sentim-preprocess/main.py | gipfelen/Sentiment-Analysis | f852f9887310cdff90e115cc140a2f8ae3618087 | [
"MIT"
] | 3 | 2021-04-15T09:47:28.000Z | 2021-12-06T21:05:28.000Z | import json
import re
##################################################
########## Boilerplate wrapping code #############
##################################################
# IBM wrapper
def main(args):
res = sentim_preprocess(args)
return res
# AWS wrapper
def lambda_handler(event, context):
# read i... | 28.337209 | 86 | 0.587197 | 272 | 2,437 | 5.139706 | 0.356618 | 0.097282 | 0.027897 | 0.04721 | 0.148784 | 0.058655 | 0 | 0 | 0 | 0 | 0 | 0.00368 | 0.219532 | 2,437 | 86 | 87 | 28.337209 | 0.731335 | 0.220353 | 0 | 0.073171 | 0 | 0 | 0.073716 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.097561 | false | 0 | 0.04878 | 0 | 0.268293 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fa4d1534b1e2c6e2ca72fcf0d2aa45f72c2bfdf | 1,516 | py | Python | tests/test_settings.py | abahnihi/kn-defaults | 02517a76f14da8b519124af38a773a621b9a4041 | [
"MIT"
] | 2 | 2020-10-04T09:22:52.000Z | 2020-11-18T15:37:22.000Z | tests/test_settings.py | abahnihi/kn-defaults | 02517a76f14da8b519124af38a773a621b9a4041 | [
"MIT"
] | 2 | 2020-10-12T06:13:49.000Z | 2020-11-18T15:37:05.000Z | tests/test_settings.py | abahnihi/kn-defaults | 02517a76f14da8b519124af38a773a621b9a4041 | [
"MIT"
] | 1 | 2021-09-16T10:23:56.000Z | 2021-09-16T10:23:56.000Z | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'fake-key'
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'rav... | 25.694915 | 70 | 0.674142 | 151 | 1,516 | 6.582781 | 0.470199 | 0.143863 | 0.051308 | 0.030181 | 0.032193 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001622 | 0.186675 | 1,516 | 58 | 71 | 26.137931 | 0.804542 | 0 | 0 | 0 | 0 | 0 | 0.53496 | 0.412929 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.040816 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fb045ff192d656ea573c38eeb8da1f72e35f93e | 416 | py | Python | mysite/myapp/migrations/0004_auto_20191219_1946.py | Niyy/monsterpedia | fa43286a49c5c6098c79c33f55af00a867a43da2 | [
"MIT"
] | null | null | null | mysite/myapp/migrations/0004_auto_20191219_1946.py | Niyy/monsterpedia | fa43286a49c5c6098c79c33f55af00a867a43da2 | [
"MIT"
] | null | null | null | mysite/myapp/migrations/0004_auto_20191219_1946.py | Niyy/monsterpedia | fa43286a49c5c6098c79c33f55af00a867a43da2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2019-12-19 19:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_auto_20191218_0740'),
]
operations = [
migrations.AlterField(
model_name='monster',
name='monster_pict... | 21.894737 | 72 | 0.598558 | 48 | 416 | 5.0625 | 0.791667 | 0.090535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101639 | 0.266827 | 416 | 18 | 73 | 23.111111 | 0.695082 | 0.108173 | 0 | 0 | 1 | 0 | 0.195122 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96c5fae37373ce25e688f3df204cf57572673e1e | 53,086 | py | Python | diptera_track_ui.py | jmmelis/DipteraTrack | 1d267ccd4248635233147f2035b900a433dc4536 | [
"MIT"
] | 1 | 2019-06-14T10:19:19.000Z | 2019-06-14T10:19:19.000Z | diptera_track_ui.py | jmmelis/DipteraTrack | 1d267ccd4248635233147f2035b900a433dc4536 | [
"MIT"
] | null | null | null | diptera_track_ui.py | jmmelis/DipteraTrack | 1d267ccd4248635233147f2035b900a433dc4536 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'diptera_track.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Mai... | 63.047506 | 118 | 0.714878 | 6,892 | 53,086 | 5.23462 | 0.059199 | 0.054134 | 0.08504 | 0.042964 | 0.550517 | 0.447487 | 0.252709 | 0.072345 | 0.029631 | 0.011919 | 0 | 0.053389 | 0.165204 | 53,086 | 841 | 119 | 63.122473 | 0.760696 | 0.003504 | 0 | 0 | 1 | 0 | 0.097935 | 0.002987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002418 | false | 0 | 0.008464 | 0 | 0.012092 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96c88c858215a0c25dd7b0d7a56c86c6fc360ef4 | 263 | py | Python | tests/test_day5.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | 1 | 2020-12-05T09:25:03.000Z | 2020-12-05T09:25:03.000Z | tests/test_day5.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | null | null | null | tests/test_day5.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | null | null | null | from aoc_2020.day5 import part1, get_pos, part2
data = """BFFFBBFRRR
FFFBBBFRRR
BBFFBBFRLL
"""
def test_get_pos():
assert get_pos("FBFBBFFRLR") == (44, 5)
def test_part1():
assert part1(data) == 820
def test_part2():
assert part2(data) is None
| 13.842105 | 47 | 0.680608 | 38 | 263 | 4.526316 | 0.578947 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079812 | 0.190114 | 263 | 18 | 48 | 14.611111 | 0.7277 | 0 | 0 | 0 | 0 | 0 | 0.163498 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96ca626a4b0b422d3111b3bc01bab71f87bc23d8 | 944 | py | Python | inferencia/util/reader/reader_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | null | null | null | inferencia/util/reader/reader_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 5 | 2021-07-25T23:19:29.000Z | 2021-07-26T23:35:13.000Z | inferencia/util/reader/reader_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 1 | 2021-09-18T12:06:13.000Z | 2021-09-18T12:06:13.000Z | import os.path as osp
from .reader.video_reader import VideoReader
class ReaderFactory():
video_exts = [".mp4", ".avi", ".mov", ".MOV", ".mkv"]
def create(target_input, target_fps):
if osp.isfile(target_input):
ext = osp.splitext(target_input)[1]
if ext in ReaderFactory.video_... | 30.451613 | 70 | 0.581568 | 98 | 944 | 5.438776 | 0.489796 | 0.206379 | 0.123827 | 0.075047 | 0.116323 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.317797 | 944 | 30 | 71 | 31.466667 | 0.824534 | 0.262712 | 0 | 0.133333 | 0 | 0 | 0.084672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96d04e179f9f7c4579746fedd4c15e79b9631946 | 1,337 | py | Python | views/routes.py | macwille/python-chat-app | 95a5bc28c3daeb977e1a1c9e5801941389baeb21 | [
"CC0-1.0"
] | 1 | 2021-06-01T12:27:58.000Z | 2021-06-01T12:27:58.000Z | views/routes.py | macwille/python-chat-app | 95a5bc28c3daeb977e1a1c9e5801941389baeb21 | [
"CC0-1.0"
] | null | null | null | views/routes.py | macwille/python-chat-app | 95a5bc28c3daeb977e1a1c9e5801941389baeb21 | [
"CC0-1.0"
] | null | null | null | from app import app
from views import subject_routes, room_routes, user_routes, message_routes
from models import user_service
from flask import Flask, flash, render_template, request, session, abort
from db import db
# Rest of the routes are imported from /views
@app.route("/")
def index():
return render_templa... | 21.918033 | 74 | 0.689604 | 184 | 1,337 | 4.88587 | 0.402174 | 0.10901 | 0.133482 | 0.111235 | 0.193548 | 0.193548 | 0.157953 | 0.10901 | 0 | 0 | 0 | 0.012868 | 0.186238 | 1,337 | 60 | 75 | 22.283333 | 0.813419 | 0.038893 | 0 | 0.146341 | 0 | 0 | 0.166927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0.121951 | 0.073171 | 0.512195 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
96d2afcdf9b53f37c987f04d16fd91b999a57d2d | 2,818 | py | Python | test_autocorrelation.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | null | null | null | test_autocorrelation.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | 4 | 2017-08-22T03:15:22.000Z | 2017-12-19T17:55:31.000Z | test_autocorrelation.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Program:
This is a test program for autocorrelation
Usage:
test_autocorrelation.py
Editor:
Jacob975
20181127
#################################
update log
'''
import numpy as np
import time
import matplotlib.pyplot as plt
from uncertainties import unumpy, ufloat
# Convert flux to mag... | 28.755102 | 114 | 0.590845 | 379 | 2,818 | 4.290237 | 0.37467 | 0.02214 | 0.027675 | 0.02214 | 0.130381 | 0.130381 | 0.130381 | 0.097171 | 0.097171 | 0.097171 | 0 | 0.028276 | 0.209368 | 2,818 | 97 | 115 | 29.051546 | 0.701526 | 0.16643 | 0 | 0.180328 | 0 | 0 | 0.075139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065574 | null | null | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96d3857b0085dd30303fde36c9f088ee7b337a65 | 681 | py | Python | leetcode/ag_107.py | baobei813214232/common-alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | 4 | 2017-05-02T09:47:48.000Z | 2019-05-01T06:26:26.000Z | leetcode/ag_107.py | xiaolongnk/Alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | null | null | null | leetcode/ag_107.py | xiaolongnk/Alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | 1 | 2021-01-31T07:21:53.000Z | 2021-01-31T07:21:53.000Z | from ojlib.TreeLib import *
class Solution(object):
def levelOrderBottom(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
if not root:
return []
def slu(root, level, ans):
if not root: return []
if level >= len(ans... | 23.482759 | 54 | 0.484581 | 82 | 681 | 4.012195 | 0.463415 | 0.085106 | 0.054711 | 0.091185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011962 | 0.386197 | 681 | 28 | 55 | 24.321429 | 0.77512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96d5b41db8b7fcb7f3b93add103d8acc7fa5230e | 1,067 | py | Python | main.py | adelhult/please-plot | dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428 | [
"MIT"
] | null | null | null | main.py | adelhult/please-plot | dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428 | [
"MIT"
] | null | null | null | main.py | adelhult/please-plot | dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428 | [
"MIT"
] | null | null | null | from traceback import print_exc
from uuid import uuid4
from flask import Flask, request, send_from_directory
from function_plot import *
app = Flask(__name__)
max_simultaneous_requests = 8
simultaneous_requests = 0
@app.route('/generate/')
def generate():
global simultaneous_requests
simultaneous_requests +... | 26.675 | 88 | 0.670103 | 141 | 1,067 | 4.829787 | 0.382979 | 0.234949 | 0.10279 | 0.111601 | 0.135095 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014269 | 0.211809 | 1,067 | 39 | 89 | 27.358974 | 0.795482 | 0 | 0 | 0 | 0 | 0 | 0.091846 | 0.021556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0.034483 | 0.310345 | 0.068966 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96d6269877deb16ea1414529d7a4c8eeec745fe2 | 758 | py | Python | structmanager/optimization/genesis/utils.py | saullocastro/structmanager | 01e9677f201c9ef577fdf8a15833be7e364441ab | [
"BSD-3-Clause"
] | 1 | 2015-09-17T20:48:08.000Z | 2015-09-17T20:48:08.000Z | structmanager/optimization/genesis/utils.py | saullocastro/structmanager | 01e9677f201c9ef577fdf8a15833be7e364441ab | [
"BSD-3-Clause"
] | 1 | 2019-01-09T20:31:17.000Z | 2019-01-10T11:10:07.000Z | structmanager/optimization/genesis/utils.py | saullocastro/structmanager | 01e9677f201c9ef577fdf8a15833be7e364441ab | [
"BSD-3-Clause"
] | 1 | 2020-12-29T00:22:23.000Z | 2020-12-29T00:22:23.000Z | def format_float(x, size=8, lr):
"""Format a float number
Parameters
----------
x : float
The float number.
size : int, optional
Desired size of the output string.
lr : str ('<' or '>')
Indicates if it should be left or right aligned.
Returns
-------
out : s... | 22.294118 | 74 | 0.514512 | 100 | 758 | 3.83 | 0.51 | 0.086162 | 0.125326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002024 | 0.348285 | 758 | 33 | 75 | 22.969697 | 0.773279 | 0 | 0 | 0.133333 | 0 | 0 | 0.140878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96d86338e0559532f2558c6914fd242a57096663 | 239 | py | Python | src/chapter3/exercise1.py | group13bse1/BSE-2021 | edd715d06696e5993c2a5b458e31bd8b87f67ded | [
"MIT"
] | null | null | null | src/chapter3/exercise1.py | group13bse1/BSE-2021 | edd715d06696e5993c2a5b458e31bd8b87f67ded | [
"MIT"
] | null | null | null | src/chapter3/exercise1.py | group13bse1/BSE-2021 | edd715d06696e5993c2a5b458e31bd8b87f67ded | [
"MIT"
] | null | null | null | hours = input('Enter Hours \n')
rate = input('Enter Rate\n')
hours = int(hours)
rate = float(rate)
if (hours <= 40):
pay = rate*hours
else:
extra_time = hours - 40
pay = (rate*hours) + ((rate*extra_time)/2)
print('Pay: ', pay)
| 21.727273 | 46 | 0.610879 | 37 | 239 | 3.891892 | 0.405405 | 0.138889 | 0.138889 | 0.194444 | 0.263889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026178 | 0.200837 | 239 | 10 | 47 | 23.9 | 0.727749 | 0 | 0 | 0 | 0 | 0 | 0.129707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96d961e7c4273593f91da5aa4b4a9f9e0753b755 | 2,836 | py | Python | src/pytheas/tasks/schema.py | dcronkite/pytheas | 3cdd6a21bda488e762931cbf5975964d5e574abd | [
"MIT"
] | null | null | null | src/pytheas/tasks/schema.py | dcronkite/pytheas | 3cdd6a21bda488e762931cbf5975964d5e574abd | [
"MIT"
] | null | null | null | src/pytheas/tasks/schema.py | dcronkite/pytheas | 3cdd6a21bda488e762931cbf5975964d5e574abd | [
"MIT"
] | null | null | null | def get_schema():
return {
'type': 'object',
'properties': {
'connections': {
'type': 'array',
'items': {
'type': 'object',
'properties': {
'name': {'type': 'string'},
... | 41.705882 | 108 | 0.322285 | 164 | 2,836 | 5.518293 | 0.268293 | 0.198895 | 0.139227 | 0.099448 | 0.425414 | 0.367956 | 0.255249 | 0.106077 | 0.106077 | 0 | 0 | 0.004071 | 0.480254 | 2,836 | 68 | 109 | 41.705882 | 0.609905 | 0 | 0 | 0.338235 | 0 | 0 | 0.318999 | 0.023264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | true | 0 | 0 | 0.014706 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96de8cfd18855bd3db54e341bcf82c6193cb52f1 | 1,213 | py | Python | web-server/webserver/urls.py | ApLight/groenlandicus | 61d230d2b1de0674424c2ea00d2d256f7a68db2e | [
"MIT"
] | null | null | null | web-server/webserver/urls.py | ApLight/groenlandicus | 61d230d2b1de0674424c2ea00d2d256f7a68db2e | [
"MIT"
] | 14 | 2018-09-01T07:41:10.000Z | 2018-09-01T19:41:11.000Z | web-server/webserver/urls.py | ApLight/groenlandicus | 61d230d2b1de0674424c2ea00d2d256f7a68db2e | [
"MIT"
] | null | null | null | """webserver URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | 37.90625 | 80 | 0.718054 | 189 | 1,213 | 4.513228 | 0.349206 | 0.037515 | 0.07034 | 0.028136 | 0.200469 | 0.200469 | 0.087925 | 0.087925 | 0 | 0 | 0 | 0.008763 | 0.153339 | 1,213 | 31 | 81 | 39.129032 | 0.821811 | 0.566364 | 0 | 0 | 0 | 0 | 0.125241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
96dfc543c2de8dddb6e747e4e8c3935460f47a78 | 1,016 | py | Python | apps/core/views.py | InfinityLoopA-Z/BigBoxChallenge | eb1b70412af6859032d78d23edfb4c588c17b8cd | [
"MIT"
] | null | null | null | apps/core/views.py | InfinityLoopA-Z/BigBoxChallenge | eb1b70412af6859032d78d23edfb4c588c17b8cd | [
"MIT"
] | null | null | null | apps/core/views.py | InfinityLoopA-Z/BigBoxChallenge | eb1b70412af6859032d78d23edfb4c588c17b8cd | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from django_filters.rest_framework import DjangoFilterBackend
from . import models, serializers, filtersets, pagination
class ActivityViewSet(viewsets.ModelViewSet):
"""A viewset of Activity model"""
queryset = models.Activity.objects.all()
serializer_class = serialize... | 28.222222 | 61 | 0.744094 | 98 | 1,016 | 7.561224 | 0.418367 | 0.080972 | 0.08502 | 0.11336 | 0.353576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173228 | 1,016 | 35 | 62 | 29.028571 | 0.882143 | 0.076772 | 0 | 0.26087 | 0 | 0 | 0.013015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.913043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
96e0ca518913b396a050050562a88480c52f946d | 3,721 | py | Python | hearthbreaker/cards/spells/neutral.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 429 | 2015-01-01T16:07:20.000Z | 2022-03-16T22:30:50.000Z | hearthbreaker/cards/spells/neutral.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 47 | 2015-01-01T17:07:57.000Z | 2018-05-07T10:49:37.000Z | hearthbreaker/cards/spells/neutral.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 135 | 2015-01-12T21:52:17.000Z | 2022-02-25T21:18:08.000Z | from hearthbreaker.cards.base import SpellCard
from hearthbreaker.constants import CHARACTER_CLASS, CARD_RARITY
from hearthbreaker.tags.base import BuffUntil, Buff
from hearthbreaker.tags.event import TurnStarted
from hearthbreaker.tags.status import Stealth, Taunt, Frozen
import hearthbreaker.targeting
class TheCoin... | 34.775701 | 110 | 0.67025 | 430 | 3,721 | 5.476744 | 0.197674 | 0.076433 | 0.061147 | 0.076433 | 0.631847 | 0.631847 | 0.521019 | 0.521019 | 0.521019 | 0.521019 | 0 | 0.006196 | 0.219296 | 3,721 | 106 | 111 | 35.103774 | 0.804475 | 0 | 0 | 0.493506 | 0 | 0 | 0.033593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233766 | false | 0 | 0.077922 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96e3e6827970c8c66b107feb95851d4718ea2a5e | 6,159 | py | Python | wr_ks_reader.py | Kevin-Prichard/werobots-kickstarter-python | aa089f66dcd7defbfd7d06a1fb5821bb59ead10f | [
"BSD-2-Clause"
] | 1 | 2020-10-27T11:06:19.000Z | 2020-10-27T11:06:19.000Z | wr_ks_reader.py | Kevin-Prichard/werobots-kickstarter-python | aa089f66dcd7defbfd7d06a1fb5821bb59ead10f | [
"BSD-2-Clause"
] | null | null | null | wr_ks_reader.py | Kevin-Prichard/werobots-kickstarter-python | aa089f66dcd7defbfd7d06a1fb5821bb59ead10f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json, sys, copy, os, re
import pprint
import locale
import csv
locale.setlocale(locale.LC_ALL, 'en_US')
from collections import defaultdict
from operator import itemgetter
pp = pprint.PrettyPrinter(indent=4)
# For MacPorts ... need to eliminate TODO
sys.path.append... | 39.993506 | 139 | 0.599448 | 860 | 6,159 | 4.131395 | 0.254651 | 0.078525 | 0.040248 | 0.01351 | 0.300591 | 0.160991 | 0.135097 | 0.094849 | 0.094849 | 0.068393 | 0 | 0.017469 | 0.237863 | 6,159 | 153 | 140 | 40.254902 | 0.739455 | 0.106836 | 0 | 0.036036 | 0 | 0.018018 | 0.178395 | 0.0407 | 0 | 0 | 0 | 0.006536 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.045045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96e84b02847af097942827575530d900a0b5412e | 5,279 | py | Python | pysensors.py | zakrzem1/pysensors | bfbef5f1442d845e5fa5febf1de5a35a81e436ee | [
"Apache-2.0"
] | null | null | null | pysensors.py | zakrzem1/pysensors | bfbef5f1442d845e5fa5febf1de5a35a81e436ee | [
"Apache-2.0"
] | null | null | null | pysensors.py | zakrzem1/pysensors | bfbef5f1442d845e5fa5febf1de5a35a81e436ee | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Google Spreadsheet DHT Sensor Data-logging Example
# Depends on the 'gspread' package being installed. If you have pip installed
# execute:
# sudo pip install gspread
# Copyright (c) 2014 Adafruit Industries
# Author: Tony DiCola
# Permission is hereby granted, free of charge, to any person obt... | 37.176056 | 126 | 0.639326 | 641 | 5,279 | 5.180967 | 0.385335 | 0.026498 | 0.016862 | 0.01626 | 0.057212 | 0.036736 | 0.036736 | 0.036736 | 0.036736 | 0.036736 | 0 | 0.005905 | 0.262171 | 5,279 | 141 | 127 | 37.439716 | 0.846727 | 0.288691 | 0 | 0.116505 | 0 | 0 | 0.150711 | 0.011799 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.165049 | null | null | 0.019417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96e9083445d26a4f829c2bf35d90cd2813d1671b | 4,287 | py | Python | compare/utils.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | null | null | null | compare/utils.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | null | null | null | compare/utils.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | null | null | null | """
Random utilities this app needs
"""
import os
import re
from buzz import Corpus as BuzzCorpus
from buzz import Collection
from django.conf import settings
from explore.models import Corpus
from .models import OCRUpdate, PDF
# from django.core.exceptions import ObjectDoesNotExist
# when doing OCR, re.findall wi... | 31.291971 | 81 | 0.623513 | 588 | 4,287 | 4.489796 | 0.404762 | 0.022727 | 0.011364 | 0.012879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002544 | 0.266387 | 4,287 | 136 | 82 | 31.522059 | 0.836884 | 0.304175 | 0 | 0.025641 | 0 | 0 | 0.070157 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.064103 | false | 0.012821 | 0.089744 | 0 | 0.25641 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96ead76583647a3211d18d56e012be5c362ce02d | 1,399 | py | Python | extra_tests/snippets/stdlib_subprocess.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 11,058 | 2018-05-29T07:40:06.000Z | 2022-03-31T11:38:42.000Z | extra_tests/snippets/stdlib_subprocess.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 2,105 | 2018-06-01T10:07:16.000Z | 2022-03-31T14:56:42.000Z | extra_tests/snippets/stdlib_subprocess.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 914 | 2018-07-27T09:36:14.000Z | 2022-03-31T19:56:34.000Z | import subprocess
import time
import sys
import signal
from testutils import assert_raises
is_unix = not sys.platform.startswith("win")
if is_unix:
def echo(text):
return ["echo", text]
def sleep(secs):
return ["sleep", str(secs)]
else:
def echo(text):
return ["cmd", "/C", f"echo {... | 19.985714 | 82 | 0.686919 | 207 | 1,399 | 4.608696 | 0.299517 | 0.080713 | 0.1174 | 0.08805 | 0.516771 | 0.359539 | 0.350105 | 0.230608 | 0.075472 | 0 | 0 | 0.011064 | 0.160114 | 1,399 | 69 | 83 | 20.275362 | 0.800851 | 0.051465 | 0 | 0.54 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0.014493 | 0.3 | 1 | 0.08 | false | 0 | 0.1 | 0.08 | 0.26 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96ece3d883b91ffe8949433754af0502b5ee3b91 | 341 | py | Python | pythonProject1/chap2/demo8.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | pythonProject1/chap2/demo8.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | pythonProject1/chap2/demo8.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | # 公众号:MarkerJava
# 开发时间:2020/10/5 17:25
scores = {'kobe': 100, 'lebron': 99, 'AD': 88}
# 获取所有key
keys = scores.keys()
print(keys)
print(type(keys))
print(list(keys)) # 将所有key组成的视图转换层列表
# 获取所有的值
value = scores.values()
print(value)
print(type(value)) # 将所有value组成的视图转换层列表
# 获取所有键值对
items = scores.items()
print(items... | 17.05 | 46 | 0.695015 | 47 | 341 | 5.042553 | 0.574468 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.129032 | 341 | 19 | 47 | 17.947368 | 0.737374 | 0.27566 | 0 | 0 | 0 | 0 | 0.050209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
96f175f0b51602c5e97137cd52bc7e95509e5606 | 423 | py | Python | tests/test_matrix.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 8 | 2021-08-08T06:06:39.000Z | 2022-02-04T18:30:38.000Z | tests/test_matrix.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 1 | 2022-01-04T02:01:36.000Z | 2022-01-04T02:01:36.000Z | tests/test_matrix.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 2 | 2021-08-18T12:28:40.000Z | 2022-01-03T23:56:41.000Z | import os
import pytest
from dsplot.errors import InputException
from dsplot.matrix import Matrix
def test_matrix():
matrix = Matrix([[1, 2, 3], [4, 5, 6], [1, 2, 6]])
matrix.plot('tests/test_data/matrix.png')
assert 'matrix.png' in os.listdir('tests/test_data')
with pytest.raises(InputException) ... | 23.5 | 69 | 0.669031 | 64 | 423 | 4.375 | 0.578125 | 0.071429 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029155 | 0.189125 | 423 | 17 | 70 | 24.882353 | 0.787172 | 0 | 0 | 0 | 0 | 0 | 0.21513 | 0.061466 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
96f38ecfbeecd1933cbe011b730c71f4c32f4990 | 301 | py | Python | rtl/tests/test_log.py | kelceydamage/raspi-tasks | 18aa323e3e2428c998b7472c226d05a00c8ae8c2 | [
"Apache-2.0"
] | 1 | 2019-08-10T00:27:45.000Z | 2019-08-10T00:27:45.000Z | rtl/tests/test_log.py | kelceydamage/raspi-tasks | 18aa323e3e2428c998b7472c226d05a00c8ae8c2 | [
"Apache-2.0"
] | null | null | null | rtl/tests/test_log.py | kelceydamage/raspi-tasks | 18aa323e3e2428c998b7472c226d05a00c8ae8c2 | [
"Apache-2.0"
] | null | null | null | from rtl.tasks.log import log
from dummy_data import KWARGS, CONTENTS3
def test_log():
KWARGS = {
'operations': [
{
'a': 'b',
'column': 'c'
}
]
}
r = log(KWARGS, CONTENTS3)
assert r['c'][2] == 2.5649493574615367
| 20.066667 | 42 | 0.465116 | 31 | 301 | 4.451613 | 0.645161 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.401993 | 301 | 14 | 43 | 21.5 | 0.655556 | 0 | 0 | 0 | 0 | 0 | 0.066445 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96f41d0268d46bff1736443eb02dd162aabd3a36 | 2,784 | py | Python | sources/lectures.py | JhoLee/ecampus-manager | 9c56678ba06b3b92f539b746d7103798592ad1ac | [
"MIT"
] | 1 | 2021-09-05T06:34:01.000Z | 2021-09-05T06:34:01.000Z | sources/lectures.py | JhoLee/BBang-Shuttle | 9c56678ba06b3b92f539b746d7103798592ad1ac | [
"MIT"
] | null | null | null | sources/lectures.py | JhoLee/BBang-Shuttle | 9c56678ba06b3b92f539b746d7103798592ad1ac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/lectures.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.Qt import QMessageBox, QSize, QIcon
from PyQt5.QtWidgets import Q... | 37.12 | 105 | 0.674569 | 331 | 2,784 | 5.534743 | 0.383686 | 0.026201 | 0.03821 | 0.065502 | 0.126092 | 0.099891 | 0.099891 | 0.099891 | 0.099891 | 0.099891 | 0 | 0.029572 | 0.210489 | 2,784 | 74 | 106 | 37.621622 | 0.803913 | 0.122845 | 0 | 0.173077 | 1 | 0 | 0.08803 | 0.029206 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.096154 | 0 | 0.173077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96f856b12bdb1da37c38499de024996b5d7da12b | 411 | py | Python | python-advanced/webscrap/wlog.py | Rokon-Uz-Zaman/thinkdiff_python_django | 5010c5f1dd8a028fb9e5235319bb6bb434831e6c | [
"MIT"
] | 92 | 2018-04-03T20:53:07.000Z | 2022-03-04T05:53:10.000Z | python-language/python-advanced/webscrap/wlog.py | mostafijur-rahman299/thinkdiff | b0e0c01fe38c406f4dfa8cc80b2f0c5654017079 | [
"MIT"
] | 11 | 2018-10-01T15:35:33.000Z | 2021-09-01T04:59:56.000Z | python-language/python-advanced/webscrap/wlog.py | mostafijur-rahman299/thinkdiff | b0e0c01fe38c406f4dfa8cc80b2f0c5654017079 | [
"MIT"
] | 98 | 2018-03-13T08:03:54.000Z | 2022-03-22T08:11:44.000Z | # author: Mahmud Ahsan
# code: https://github.com/mahmudahsan/thinkdiff
# blog: http://thinkdiff.net
# http://pythonbangla.com
# MIT License
# --------------------------
# Reporting Logs in text file
# --------------------------
import logging
def set_custom_log_info(filename):
logging.basicConfig(filename=... | 21.631579 | 62 | 0.63017 | 46 | 411 | 5.565217 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136253 | 411 | 18 | 63 | 22.833333 | 0.721127 | 0.527981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96ff89e422270b31c5889bf32192c54fcd3d3495 | 817 | py | Python | 2019/08-kosen/rev-favorites/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 25 | 2019-03-06T11:55:56.000Z | 2021-05-21T22:07:14.000Z | 2019/08-kosen/rev-favorites/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 1 | 2020-06-25T07:27:15.000Z | 2020-06-25T07:27:15.000Z | 2019/08-kosen/rev-favorites/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 1 | 2019-02-14T00:42:28.000Z | 2019-02-14T00:42:28.000Z | def main():
seed = 0x1234
e = [0x62d5, 0x7b27, 0xc5d4, 0x11c4, 0x5d67, 0xa356, 0x5f84,
0xbd67, 0xad04, 0x9a64, 0xefa6, 0x94d6, 0x2434, 0x0178]
flag = ""
for index in range(14):
for i in range(0x7f-0x20):
c = chr(0x20+i)
res = encode(c, index, seed)
if... | 29.178571 | 120 | 0.440636 | 99 | 817 | 3.555556 | 0.515152 | 0.039773 | 0.068182 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20284 | 0.396573 | 817 | 27 | 121 | 30.259259 | 0.511156 | 0 | 0 | 0 | 0 | 0 | 0.020808 | 0 | 0 | 0 | 0.173807 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.130435 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c094ff4339e6253f78275942a72ff3cc8c9f8a5 | 1,724 | py | Python | venta/admin.py | darkdrei/Inventario | dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c | [
"MIT"
] | null | null | null | venta/admin.py | darkdrei/Inventario | dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c | [
"MIT"
] | null | null | null | venta/admin.py | darkdrei/Inventario | dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
import models
import forms
from inventario import models as inventario
# Register your models here.
class DetalleInline(admin.StackedInline):
model = models.Detalle
form = forms.DetalleForm
extra = 1
# end cla... | 32.528302 | 97 | 0.654872 | 196 | 1,724 | 5.683673 | 0.387755 | 0.032316 | 0.035907 | 0.046679 | 0.260323 | 0.166966 | 0.093357 | 0.093357 | 0 | 0 | 0 | 0.002217 | 0.215197 | 1,724 | 52 | 98 | 33.153846 | 0.821138 | 0.059745 | 0 | 0.114286 | 0 | 0 | 0.164494 | 0.044072 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.142857 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8c139b694a21d0428d056ef4776c840e99b1f37e | 10,727 | py | Python | util/legacypgsql.py | twonds/palaver | fcaa1884bc206e0aba7c88d9614e38b492c59285 | [
"MIT"
] | 4 | 2015-01-20T17:25:12.000Z | 2020-02-12T08:24:05.000Z | util/legacypgsql.py | twonds/palaver | fcaa1884bc206e0aba7c88d9614e38b492c59285 | [
"MIT"
] | 1 | 2016-01-27T16:13:18.000Z | 2016-01-27T19:11:21.000Z | util/legacypgsql.py | twonds/palaver | fcaa1884bc206e0aba7c88d9614e38b492c59285 | [
"MIT"
] | null | null | null | # Copyright (c) 2007 Christopher Zorn, OGG, LLC
# See LICENSE.txt for details
# Converts the legacy muc spool to the new dirDBM one
import sys
from twisted.words.xish import domish, xpath
from twisted.words.protocols.jabber import jid
from twisted.enterprise import adbapi
from palaver import palaver, pgsql_storage
f... | 34.38141 | 108 | 0.43535 | 1,008 | 10,727 | 4.578373 | 0.195437 | 0.046804 | 0.065005 | 0.014735 | 0.335211 | 0.313759 | 0.294475 | 0.253738 | 0.232286 | 0.232286 | 0 | 0.004188 | 0.44346 | 10,727 | 311 | 109 | 34.491961 | 0.768844 | 0.035891 | 0 | 0.232365 | 0 | 0.008299 | 0.255114 | 0 | 0 | 0 | 0 | 0.003215 | 0 | 0 | null | null | 0.024896 | 0.024896 | null | null | 0.012448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c16f46acf3c76645280b368240ee645781f645e | 248 | py | Python | Algorithms/2. Implementation/18 - Climbing the Leaderboard.py | rosiejh/HackerRank | bfb07b8add04d3f3b67a61754db483f88a79e5a5 | [
"Apache-2.0"
] | null | null | null | Algorithms/2. Implementation/18 - Climbing the Leaderboard.py | rosiejh/HackerRank | bfb07b8add04d3f3b67a61754db483f88a79e5a5 | [
"Apache-2.0"
] | null | null | null | Algorithms/2. Implementation/18 - Climbing the Leaderboard.py | rosiejh/HackerRank | bfb07b8add04d3f3b67a61754db483f88a79e5a5 | [
"Apache-2.0"
] | null | null | null | def climbingLeaderboard(scores, alice):
scores = list(reversed(sorted(set(scores))))
r, rank = len(scores), []
for a in alice:
while (r > 0) and (a >= scores[r - 1]):
r -= 1
rank.append(r + 1)
return rank | 31 | 48 | 0.540323 | 34 | 248 | 3.941176 | 0.588235 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.306452 | 248 | 8 | 49 | 31 | 0.755814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c16f8302199537857c9b354ec984440477f9e4f | 1,417 | py | Python | endsem/component_1/initial_parameters_estimator.py | maher460/cmu10601 | 108811a648aa5128a1e44e269a1e6e8802e3f100 | [
"MIT"
] | 1 | 2019-04-17T14:05:35.000Z | 2019-04-17T14:05:35.000Z | endsem/component_1/initial_parameters_estimator.py | maher460/cmu10601 | 108811a648aa5128a1e44e269a1e6e8802e3f100 | [
"MIT"
] | null | null | null | endsem/component_1/initial_parameters_estimator.py | maher460/cmu10601 | 108811a648aa5128a1e44e269a1e6e8802e3f100 | [
"MIT"
] | null | null | null | import kmeans
import json
import numpy as np
NUM_GAUSSIANS = 32
DO_KMEANS = False
DEBUG = True
mixture_weights = [1.0/NUM_GAUSSIANS] * NUM_GAUSSIANS
if DEBUG:
print ("mixture_weights: ", mixture_weights)
print("Loading parsed data...")
traindata_processed_file = open("parsed_data/data1.universalenrollparsed", "... | 27.784314 | 80 | 0.694425 | 168 | 1,417 | 5.613095 | 0.309524 | 0.171792 | 0.209968 | 0.082715 | 0.395546 | 0.33404 | 0.295864 | 0.165429 | 0.165429 | 0.165429 | 0 | 0.008757 | 0.194072 | 1,417 | 50 | 81 | 28.34 | 0.816988 | 0 | 0 | 0.128205 | 0 | 0 | 0.240649 | 0.080452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.205128 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c1b1007e7ce83e67bed0e618b9207e4eb8ea15f | 9,369 | py | Python | githubly.py | kumaranvpl/githubly | 0261af92f375ad06105e2969c5e62a0db6d4b095 | [
"MIT"
] | null | null | null | githubly.py | kumaranvpl/githubly | 0261af92f375ad06105e2969c5e62a0db6d4b095 | [
"MIT"
] | 4 | 2016-10-24T18:40:54.000Z | 2016-10-25T02:34:44.000Z | githubly.py | kumaranvpl/githubly | 0261af92f375ad06105e2969c5e62a0db6d4b095 | [
"MIT"
] | null | null | null | import csv
import getpass
import json
import requests
import sys
from requests.auth import HTTPBasicAuth
class GithublyException(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class Githubly:
def __init__(self, username, password):
... | 41.455752 | 132 | 0.582026 | 1,160 | 9,369 | 4.539655 | 0.149138 | 0.039309 | 0.022788 | 0.036081 | 0.428788 | 0.398975 | 0.376946 | 0.360425 | 0.335359 | 0.305545 | 0 | 0.002266 | 0.293308 | 9,369 | 225 | 133 | 41.64 | 0.793083 | 0.004163 | 0 | 0.26943 | 0 | 0 | 0.222818 | 0.006219 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046632 | 0.031088 | null | null | 0.316062 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c1dba83b34a1c4ed784910f891d161f756f6131 | 905 | py | Python | examples/accessing_variables.py | Rory-Sullivan/yrlocationforecast | 26b66834cac4569704daf0009a9d2bba39dbfb75 | [
"MIT"
] | 13 | 2020-07-28T17:47:42.000Z | 2022-03-30T13:35:12.000Z | examples/accessing_variables.py | Rory-Sullivan/yrlocationforecast | 26b66834cac4569704daf0009a9d2bba39dbfb75 | [
"MIT"
] | 5 | 2020-10-14T11:10:13.000Z | 2022-01-01T17:35:19.000Z | examples/accessing_variables.py | Rory-Sullivan/yrlocationforecast | 26b66834cac4569704daf0009a9d2bba39dbfb75 | [
"MIT"
] | 6 | 2020-10-16T12:30:07.000Z | 2022-02-18T07:13:21.000Z | """An example of accessing individual forecast variables."""
from metno_locationforecast import Place, Forecast
USER_AGENT = "metno_locationforecast/1.0 https://github.com/Rory-Sullivan/yrlocationforecast"
new_york = Place("New York", 40.7, -74.0, 10)
new_york_forecast = Forecast(new_york, USER_AGENT, "complete")
ne... | 30.166667 | 93 | 0.781215 | 127 | 905 | 5.425197 | 0.472441 | 0.060958 | 0.065312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013631 | 0.108287 | 905 | 29 | 94 | 31.206897 | 0.840149 | 0.320442 | 0 | 0 | 0 | 0 | 0.326159 | 0.084437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
8c2a807f43d6eef105689c63e12efd6dbb33bdcb | 2,099 | py | Python | backend_django/login_api/serializers.py | oereo/cau-lion-server | 58ae08bba739387796a814f03c193a1eeea1b8a6 | [
"MIT"
] | 2 | 2020-04-17T07:22:55.000Z | 2020-04-20T16:45:38.000Z | backend_django/login_api/serializers.py | oereo/cau-lion-server | 58ae08bba739387796a814f03c193a1eeea1b8a6 | [
"MIT"
] | 17 | 2020-04-25T12:01:16.000Z | 2022-03-12T00:32:42.000Z | backend_django/login_api/serializers.py | minseungseon/cau-lion-server | 705d892df4746f658f903bc30e1622da35e81e69 | [
"MIT"
] | 3 | 2020-04-16T06:20:53.000Z | 2020-04-19T01:47:20.000Z | #2020-04-20 minseung seon created.
#serializer는 모두 ModelSerializer로 간단히 처리함
from rest_framework import serializers
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from .models import Profile
#Sign Up 회원가입
class UserSerializer(serializers.ModelSerializer):
class meta:
... | 26.56962 | 72 | 0.613626 | 210 | 2,099 | 6.014286 | 0.438095 | 0.082344 | 0.055424 | 0.057007 | 0.212193 | 0.152019 | 0.152019 | 0.125099 | 0.125099 | 0.125099 | 0 | 0.005323 | 0.283945 | 2,099 | 79 | 73 | 26.56962 | 0.834997 | 0.322058 | 0 | 0.294118 | 0 | 0 | 0.079456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.117647 | 0.117647 | 0 | 0.558824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8c321b723875c29f1ae6ed62908243de66570a8e | 3,430 | py | Python | core/views.py | lcs-amorim/OPE-EasyParty | b3439bf21523d7f3fb19b12283c24f364bf54388 | [
"Apache-2.0"
] | null | null | null | core/views.py | lcs-amorim/OPE-EasyParty | b3439bf21523d7f3fb19b12283c24f364bf54388 | [
"Apache-2.0"
] | 4 | 2020-06-05T18:01:15.000Z | 2021-09-07T23:51:04.000Z | core/views.py | lcs-amorim/OPE-EasyParty | b3439bf21523d7f3fb19b12283c24f364bf54388 | [
"Apache-2.0"
] | 1 | 2018-10-02T23:45:15.000Z | 2018-10-02T23:45:15.000Z | from django.shortcuts import render, redirect , HttpResponseRedirect, get_object_or_404
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib.auth.forms import UserCreationForm, PasswordChangeForm
from django.views.generic import View, TemplateView, CreateView, UpdateView
from ... | 27.886179 | 121 | 0.625656 | 354 | 3,430 | 5.991525 | 0.313559 | 0.056577 | 0.08958 | 0.049033 | 0.224422 | 0.132485 | 0.06695 | 0.030174 | 0 | 0 | 0 | 0.003228 | 0.187172 | 3,430 | 123 | 122 | 27.886179 | 0.757532 | 0.199708 | 0 | 0.285714 | 0 | 0 | 0.069358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155844 | false | 0.077922 | 0.12987 | 0.051948 | 0.415584 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8c32b849026f787dad3dce205fac98d12cb8e86b | 478 | py | Python | adminlte_log/tests.py | beastbikes/django-only-admin | c89b782b92edbb1f75151e71163c0708afacd4f9 | [
"MIT"
] | 32 | 2016-11-24T08:33:10.000Z | 2017-12-18T00:25:00.000Z | adminlte_log/tests.py | beastbikes/django-only-admin | c89b782b92edbb1f75151e71163c0708afacd4f9 | [
"MIT"
] | 15 | 2016-11-30T08:28:56.000Z | 2017-09-20T15:54:18.000Z | adminlte_log/tests.py | beastbikes/django-only-admin | c89b782b92edbb1f75151e71163c0708afacd4f9 | [
"MIT"
] | 9 | 2016-11-25T02:14:24.000Z | 2017-12-06T13:22:51.000Z | from django.contrib.auth.models import User
from django.test import TestCase
from adminlte_log.models import AdminlteLogType, AdminlteLog
class AdminlteLogTest(TestCase):
def setUp(self):
AdminlteLogType.objects.create(name='test', code='test')
self.user = User.objects.create_user(username='boha... | 29.875 | 92 | 0.713389 | 64 | 478 | 5.265625 | 0.546875 | 0.059347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002513 | 0.167364 | 478 | 15 | 93 | 31.866667 | 0.844221 | 0 | 0 | 0 | 0 | 0 | 0.069038 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8c35b9a559288af50f129e1366cee6c00d138f00 | 621 | py | Python | citeyoursoftware/main.py | rodluger/citeyoursoftware | 8bccb33a268653a7267163ccdc67df72e191b388 | [
"MIT"
] | 3 | 2021-11-12T17:17:00.000Z | 2021-11-12T20:30:41.000Z | citeyoursoftware/main.py | rodluger/citeyoursoftware | 8bccb33a268653a7267163ccdc67df72e191b388 | [
"MIT"
] | null | null | null | citeyoursoftware/main.py | rodluger/citeyoursoftware | 8bccb33a268653a7267163ccdc67df72e191b388 | [
"MIT"
] | null | null | null | from .packages import get_packages
from .pypi import get_pypi_bib
def get_bibliography(
env_file="environment.yml", env_path=None, exclude=["python"]
):
# Get all user-listed packages w/ channels & exact versions
packages = get_packages(env_file=env_file, env_path=None)
# Try to find BibTeX entries ... | 27 | 65 | 0.652174 | 79 | 621 | 4.974684 | 0.455696 | 0.122137 | 0.050891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231884 | 621 | 23 | 66 | 27 | 0.823899 | 0.175523 | 0 | 0 | 0 | 0 | 0.088409 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c444c182cfcbcbf6fc1fbb3f34c210eb99835c2 | 476 | py | Python | python/large-class/1_extract-class.py | mario21ic/refactoring-guru | a28730ebbcf54363cb98e921820198b50fc3204f | [
"MIT"
] | 1 | 2020-03-31T00:57:39.000Z | 2020-03-31T00:57:39.000Z | python/large-class/1_extract-class.py | mario21ic/refactoring-guru | a28730ebbcf54363cb98e921820198b50fc3204f | [
"MIT"
] | null | null | null | python/large-class/1_extract-class.py | mario21ic/refactoring-guru | a28730ebbcf54363cb98e921820198b50fc3204f | [
"MIT"
] | null | null | null | # When one class does the work of two, awkwardness results.
class Person:
def __init__(self, name, office_area_code, office_number):
self.name = name
self.office_area_code = office_area_code
self.office_number = office_number
def telephone_number(self):
return "%d-%d" % (s... | 29.75 | 68 | 0.680672 | 65 | 476 | 4.584615 | 0.446154 | 0.134228 | 0.187919 | 0.134228 | 0.201342 | 0.201342 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.214286 | 476 | 16 | 69 | 29.75 | 0.76738 | 0.119748 | 0 | 0 | 0 | 0 | 0.043062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.090909 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c49da13dca709daa5a8e6c290b24925848f9676 | 1,790 | py | Python | database_replication/python/mock_ripper.py | ryland-e-atkins/complexa | fa5ce6227f45227cdd6b27b5d63edd000c760e84 | [
"MIT"
] | null | null | null | database_replication/python/mock_ripper.py | ryland-e-atkins/complexa | fa5ce6227f45227cdd6b27b5d63edd000c760e84 | [
"MIT"
] | null | null | null | database_replication/python/mock_ripper.py | ryland-e-atkins/complexa | fa5ce6227f45227cdd6b27b5d63edd000c760e84 | [
"MIT"
] | null | null | null | # This module is used to combine and remove duplicates from raw mockaroo data
from subprocess import call
from util import *
# def generateCleanFiles():
# """
# DEPRECATED
# """
# filePrefix = 'mockaroo/mock_data_raw/'
# fileNames = [
# filePrefix + 'brandName/brandName1.csv',
... | 30.862069 | 98 | 0.644693 | 176 | 1,790 | 6.454545 | 0.403409 | 0.052817 | 0.077465 | 0.036972 | 0.052817 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009339 | 0.222346 | 1,790 | 58 | 99 | 30.862069 | 0.806753 | 0.497207 | 0 | 0.095238 | 1 | 0 | 0.168109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.333333 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c54ad4c8119847e922beb1d17182b424e160a27 | 819 | py | Python | Pre-Interview Challenges/camelcase.py | Wryhder/solve-with-code | 0fd1ef4f1c46ad89d68a667b3aaa6b98c69da266 | [
"MIT"
] | null | null | null | Pre-Interview Challenges/camelcase.py | Wryhder/solve-with-code | 0fd1ef4f1c46ad89d68a667b3aaa6b98c69da266 | [
"MIT"
] | null | null | null | Pre-Interview Challenges/camelcase.py | Wryhder/solve-with-code | 0fd1ef4f1c46ad89d68a667b3aaa6b98c69da266 | [
"MIT"
] | null | null | null | # Andela
"""
Problem Statement:
Write a function called camelCase that takes a string containing a Python-like variable name,
e.g. is_prime and turns it into the corresponding Java-like camel-case variable name, i.e. isPrime.
"""
def camelCase(python_var_name):
"""
This function takes a string containing a... | 27.3 | 99 | 0.666667 | 114 | 819 | 4.640351 | 0.45614 | 0.090737 | 0.045369 | 0.083176 | 0.461248 | 0.461248 | 0.461248 | 0.461248 | 0.461248 | 0.461248 | 0 | 0.003252 | 0.249084 | 819 | 29 | 100 | 28.241379 | 0.856911 | 0.013431 | 0 | 0 | 0 | 0 | 0.033943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c5ec30a972f5c57beabebc879476a07e04ac93c | 3,213 | py | Python | lib/textwin.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 4 | 2020-07-21T09:47:52.000Z | 2022-01-05T21:43:36.000Z | lib/textwin.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 1 | 2020-09-23T20:46:33.000Z | 2020-09-23T20:59:57.000Z | lib/textwin.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 4 | 2020-07-13T00:45:24.000Z | 2021-09-04T14:50:46.000Z | # Module 'textwin'
# Text windows, a subclass of gwin
import stdwin
import stdwinsupport
import gwin
S = stdwinsupport # Shorthand
def fixsize(w):
docwidth, docheight = w.text.getrect()[1]
winheight = w.getwinsize()[1]
if winheight > docheight: docheight = winheight
... | 26.775 | 70 | 0.522876 | 418 | 3,213 | 3.990431 | 0.239234 | 0.053957 | 0.053957 | 0.035971 | 0.144484 | 0.118106 | 0.118106 | 0.104317 | 0.053957 | 0.053957 | 0 | 0.011639 | 0.358232 | 3,213 | 119 | 71 | 27 | 0.797284 | 0.103953 | 0 | 0.212766 | 0 | 0 | 0.006641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031915 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c6005532028b79259ef2ccbde6cb3de137f6931 | 13,037 | py | Python | nexthop_summary.py | dalekirkman1/SecureCRT-tools | fd2e60cb0ec561da5c900a6396993c114d925c5a | [
"Apache-2.0"
] | 2 | 2021-03-18T05:14:24.000Z | 2022-03-30T08:54:49.000Z | nexthop_summary.py | dalekirkman1/SecureCRT-tools | fd2e60cb0ec561da5c900a6396993c114d925c5a | [
"Apache-2.0"
] | null | null | null | nexthop_summary.py | dalekirkman1/SecureCRT-tools | fd2e60cb0ec561da5c900a6396993c114d925c5a | [
"Apache-2.0"
] | 1 | 2021-02-18T23:46:22.000Z | 2021-02-18T23:46:22.000Z | # $language = "python"
# $interface = "1.0"
# ################################################ SCRIPT INFO ###################################################
# Author: Jamie Caesar
# Email: jcaesar@presidio.com
#
# This script will grab the route table information from a Cisco IOS or NXOS device and export deta... | 43.312292 | 119 | 0.635192 | 1,616 | 13,037 | 4.992574 | 0.223391 | 0.019336 | 0.010412 | 0.008428 | 0.12593 | 0.083664 | 0.06532 | 0.040283 | 0.040283 | 0.040283 | 0 | 0.002481 | 0.227046 | 13,037 | 301 | 120 | 43.312292 | 0.798055 | 0.23487 | 0 | 0.143678 | 0 | 0 | 0.16022 | 0.0184 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045977 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c63a890e4c7c21d82ab4e450776446d2c1bea12 | 978 | py | Python | article/tests.py | AngleMAXIN/nomooc | 0c06b8af405b8254c242b34e85b7cba99c8f5737 | [
"MIT"
] | 1 | 2019-12-04T03:20:16.000Z | 2019-12-04T03:20:16.000Z | article/tests.py | AngleMAXIN/NoMooc | 0c06b8af405b8254c242b34e85b7cba99c8f5737 | [
"MIT"
] | null | null | null | article/tests.py | AngleMAXIN/NoMooc | 0c06b8af405b8254c242b34e85b7cba99c8f5737 | [
"MIT"
] | null | null | null |
# Create your tests here.
from article.db_manager.article_manager import create_article_db
from utils.api.tests import APIClient, APITestCase
from utils.constants import ArticleTypeChoice
from utils.shortcuts import rand_str
def mock_create_article(title=None, content=None, art_type=None, owner_id=None):
title =... | 34.928571 | 80 | 0.723926 | 133 | 978 | 5.12782 | 0.368421 | 0.095308 | 0.043988 | 0.038123 | 0.046921 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004884 | 0.162577 | 978 | 27 | 81 | 36.222222 | 0.827839 | 0.023517 | 0 | 0 | 0 | 0 | 0.070378 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.157895 | false | 0.052632 | 0.210526 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8c63e675baf1b7e7f373786c7af3c27f18480a82 | 756 | py | Python | util/geometry.py | c-ali/boomgan | 0fd1d13149d8d5719d12aa36f09f46461ca29dbb | [
"MIT"
] | 3 | 2022-03-14T12:41:16.000Z | 2022-03-19T01:11:43.000Z | util/geometry.py | c-ali/boomgan | 0fd1d13149d8d5719d12aa36f09f46461ca29dbb | [
"MIT"
] | null | null | null | util/geometry.py | c-ali/boomgan | 0fd1d13149d8d5719d12aa36f09f46461ca29dbb | [
"MIT"
] | 1 | 2022-03-14T12:41:18.000Z | 2022-03-14T12:41:18.000Z | import numpy as np
def orthogonalize(normal, non_ortho):
h = normal * non_ortho
return non_ortho - normal * h
def make_orthonormal_vector(normal, dims=512):
# random unit vector
rand_dir = np.random.randn(dims)
# make orthonormal
result = orthogonalize(normal, rand_dir)
return result / n... | 29.076923 | 178 | 0.665344 | 109 | 756 | 4.522936 | 0.366972 | 0.048682 | 0.056795 | 0.060852 | 0.089249 | 0.089249 | 0.089249 | 0 | 0 | 0 | 0 | 0.023102 | 0.198413 | 756 | 25 | 179 | 30.24 | 0.790429 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fb2d5f6091ab479c98c350959da092722caf376 | 287 | py | Python | Exercicios/matriz.py | beatrizflorenccio/Projects-Python | fc584167a2816dc89f22baef0fa0f780af796c98 | [
"MIT"
] | 1 | 2021-10-10T08:18:45.000Z | 2021-10-10T08:18:45.000Z | Exercicios/matriz.py | beatrizflorenccio/Projects-Python | fc584167a2816dc89f22baef0fa0f780af796c98 | [
"MIT"
] | null | null | null | Exercicios/matriz.py | beatrizflorenccio/Projects-Python | fc584167a2816dc89f22baef0fa0f780af796c98 | [
"MIT"
] | null | null | null | #MaBe
matriz = [[0, 0, 0], [0, 0, 0,], [0, 0, 0]]
for l in range(0, 3):
for c in range(0,3):
matriz[l][c] = int(input(f'Digite o valor da posição {(c, l)}: '))
for obj in range(0, 3):
for i in range(0, 3):
print(f'[{matriz[obj][i]}]', end=' ')
print()
| 22.076923 | 74 | 0.477352 | 55 | 287 | 2.490909 | 0.381818 | 0.116788 | 0.153285 | 0.175182 | 0.240876 | 0.065693 | 0.065693 | 0.065693 | 0 | 0 | 0 | 0.082126 | 0.278746 | 287 | 12 | 75 | 23.916667 | 0.57971 | 0.013937 | 0 | 0 | 0 | 0 | 0.195035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fb2debb7f9b472451fb47af6368ed89d51ef079 | 968 | py | Python | iminuit/__init__.py | danielbrener/iminuit | e6d1cbc3d4d51e3556dbf95b569b62d6d9c38ad1 | [
"MIT"
] | 1 | 2018-10-02T14:52:37.000Z | 2018-10-02T14:52:37.000Z | iminuit/__init__.py | danielbrener/iminuit | e6d1cbc3d4d51e3556dbf95b569b62d6d9c38ad1 | [
"MIT"
] | null | null | null | iminuit/__init__.py | danielbrener/iminuit | e6d1cbc3d4d51e3556dbf95b569b62d6d9c38ad1 | [
"MIT"
] | null | null | null | """MINUIT from Python - Fitting like a boss
Basic usage example::
from iminuit import Minuit
def f(x, y, z):
return (x - 2) ** 2 + (y - 3) ** 2 + (z - 4) ** 2
m = Minuit(f)
m.migrad()
print(m.values) # {'x': 2,'y': 3,'z': 4}
print(m.errors) # {'x': 1,'y': 1,'z': 1}
Further informati... | 20.595745 | 73 | 0.599174 | 129 | 968 | 4.387597 | 0.488372 | 0.035336 | 0.010601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016173 | 0.233471 | 968 | 46 | 74 | 21.043478 | 0.746631 | 0.606405 | 0 | 0 | 0 | 0 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4fba29d360396207764ed0558aa4154a354cbfed | 764 | py | Python | facegram/profiles/serializers/v1/serializers.py | mabdullahadeel/facegram | f0eaa42008e876ae892b50f9f621a25b17cc70d5 | [
"MIT"
] | 1 | 2021-09-26T13:37:22.000Z | 2021-09-26T13:37:22.000Z | facegram/profiles/serializers/v1/serializers.py | mabdullahadeel/facegram | f0eaa42008e876ae892b50f9f621a25b17cc70d5 | [
"MIT"
] | 1 | 2021-08-08T22:04:39.000Z | 2021-08-08T22:04:39.000Z | facegram/profiles/serializers/v1/serializers.py | mabdullahadeel/facegram | f0eaa42008e876ae892b50f9f621a25b17cc70d5 | [
"MIT"
] | null | null | null | from django.db.models import fields
from rest_framework import serializers
from facegram.profiles.models import Profile
from facegram.users.api.serializers import UserSerializer
class RetrieveUserProfileSerializerV1(serializers.ModelSerializer):
user = UserSerializer(read_only=True)
class Meta:
model ... | 38.2 | 96 | 0.719895 | 81 | 764 | 6.604938 | 0.506173 | 0.04486 | 0.052336 | 0.078505 | 0.160748 | 0.160748 | 0.160748 | 0.160748 | 0 | 0 | 0 | 0.004739 | 0.171466 | 764 | 20 | 97 | 38.2 | 0.840442 | 0 | 0 | 0.25 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4fbe12f19888e0666719f9bebc6d8719b923b7bc | 38,570 | py | Python | anchore/anchore_policy.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 401 | 2016-06-16T15:29:48.000Z | 2022-03-24T10:05:16.000Z | anchore/anchore_policy.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 63 | 2016-06-16T21:10:27.000Z | 2020-07-01T06:57:27.000Z | anchore/anchore_policy.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 64 | 2016-06-16T13:05:57.000Z | 2021-07-16T10:03:45.000Z | import os
import json
import re
import sys
import logging
import hashlib
import uuid
import jsonschema
import tempfile
import controller
import anchore_utils
import anchore_auth
from anchore.util import contexts
_logger = logging.getLogger(__name__)
default_policy_version = '1_0'
default_whitelist_version = '1_0'
de... | 37.482993 | 223 | 0.554524 | 4,052 | 38,570 | 5.138944 | 0.117226 | 0.019594 | 0.013879 | 0.016328 | 0.274312 | 0.222494 | 0.166979 | 0.115161 | 0.091293 | 0.079479 | 0 | 0.004995 | 0.330464 | 38,570 | 1,028 | 224 | 37.519455 | 0.801348 | 0.023153 | 0 | 0.264031 | 0 | 0.002551 | 0.137395 | 0.006041 | 0.005102 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007653 | 0.021684 | null | null | 0.006378 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fcbcca983a903be3e13de0bc766ff057f2460ae | 2,991 | py | Python | kitsune/gallery/models.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | kitsune/gallery/models.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | kitsune/gallery/models.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from kitsune.sumo.models import ModelBase, LocaleField
from kitsune.sumo.urlresolvers import reverse
from kitsune.sumo.utils import auto_delete_files
class Media(ModelBase):
""... | 41.541667 | 79 | 0.704112 | 366 | 2,991 | 5.516393 | 0.254098 | 0.040119 | 0.055473 | 0.079742 | 0.568598 | 0.568598 | 0.568598 | 0.480436 | 0.390292 | 0.285785 | 0 | 0.003351 | 0.201939 | 2,991 | 71 | 80 | 42.126761 | 0.84248 | 0.044467 | 0 | 0.259259 | 0 | 0 | 0.036946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.12963 | 0.055556 | 0.685185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4fd5295b29e4b31c48489377d517627d7c834a90 | 581 | py | Python | tanslate.py | Blues-star/bilibili-BV-conv | e53015fb7272e70945fbb6c35a59edef8ba0cb3f | [
"MIT"
] | null | null | null | tanslate.py | Blues-star/bilibili-BV-conv | e53015fb7272e70945fbb6c35a59edef8ba0cb3f | [
"MIT"
] | null | null | null | tanslate.py | Blues-star/bilibili-BV-conv | e53015fb7272e70945fbb6c35a59edef8ba0cb3f | [
"MIT"
] | null | null | null | table = 'fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF'
tr = {}
for i in range(58):
tr[table[i]] = i
s = [11, 10, 3, 8, 4, 6]
xor = 177451812
add = 8728348608
def dec(x):
r = 0
for i in range(6):
r += tr[x[s[i]]] * 58**i
return (r - add) ^ xor
def enc(x):
x = (x ^ xor) + add... | 19.366667 | 68 | 0.576592 | 91 | 581 | 3.681319 | 0.417582 | 0.035821 | 0.053731 | 0.098507 | 0.077612 | 0.077612 | 0 | 0 | 0 | 0 | 0 | 0.207207 | 0.2358 | 581 | 30 | 69 | 19.366667 | 0.547297 | 0 | 0 | 0.083333 | 0 | 0 | 0.182131 | 0.099656 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fd92af7e0206cf0333bb60a3ec9bad3624fcb60 | 845 | py | Python | kronos_executor/kronos_executor/execution_contexts/trivial.py | ecmwf/kronos | 4f8c896baa634fc937f866d2bd05b438106c1663 | [
"Apache-2.0"
] | 4 | 2020-09-15T15:16:17.000Z | 2021-08-17T14:02:28.000Z | kronos_executor/kronos_executor/execution_contexts/trivial.py | ecmwf/kronos | 4f8c896baa634fc937f866d2bd05b438106c1663 | [
"Apache-2.0"
] | 4 | 2020-09-12T07:22:35.000Z | 2020-10-13T17:08:35.000Z | kronos_executor/kronos_executor/execution_contexts/trivial.py | ecmwf/kronos | 4f8c896baa634fc937f866d2bd05b438106c1663 | [
"Apache-2.0"
] | null | null | null |
import pathlib
from kronos_executor.execution_context import ExecutionContext
run_script = pathlib.Path(__file__).parent / "trivial_run.sh"
class TrivialExecutionContext(ExecutionContext):
scheduler_directive_start = ""
scheduler_directive_params = {}
scheduler_use_params = []
scheduler_cancel_head... | 28.166667 | 67 | 0.695858 | 93 | 845 | 5.892473 | 0.548387 | 0.065693 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205917 | 845 | 29 | 68 | 29.137931 | 0.816692 | 0 | 0 | 0 | 0 | 0 | 0.14455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4fde8899e019b17ecbe9311227f7c8f58e1e998b | 1,021 | py | Python | split_dataset/split_dataset.py | si-you/tools | 7b050310bdf64483531b5b16045a457ab7bc2e14 | [
"Apache-2.0"
] | null | null | null | split_dataset/split_dataset.py | si-you/tools | 7b050310bdf64483531b5b16045a457ab7bc2e14 | [
"Apache-2.0"
] | null | null | null | split_dataset/split_dataset.py | si-you/tools | 7b050310bdf64483531b5b16045a457ab7bc2e14 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
from absl import app
from absl import flags
import pandas as pd
FLAGS = flags.FLAGS
flags.DEFINE_string('dataset', None, 'A path to the dataset.')
flags.DEFINE_float('test_fraction', 0.2, 'A sp... | 24.902439 | 79 | 0.664055 | 150 | 1,021 | 4.246667 | 0.406667 | 0.047096 | 0.075353 | 0.089482 | 0.10989 | 0.10989 | 0.10989 | 0.10989 | 0 | 0 | 0 | 0.013699 | 0.213516 | 1,021 | 40 | 80 | 25.525 | 0.779577 | 0.087169 | 0 | 0.086957 | 0 | 0 | 0.113147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4fdf1f2bc3691125407e6d9ef56d7aa3c6197b78 | 1,316 | py | Python | exercises/bssid-based/receive.py | ramonfontes/tutorials | 3335911512c14d90a1dddf425c3bc697c73e9581 | [
"Apache-2.0"
] | 3 | 2019-12-17T13:10:19.000Z | 2021-03-19T14:16:34.000Z | exercises/bssid-based/receive.py | ramonfontes/tutorials | 3335911512c14d90a1dddf425c3bc697c73e9581 | [
"Apache-2.0"
] | null | null | null | exercises/bssid-based/receive.py | ramonfontes/tutorials | 3335911512c14d90a1dddf425c3bc697c73e9581 | [
"Apache-2.0"
] | 4 | 2019-08-23T03:48:46.000Z | 2020-07-14T18:26:53.000Z | #!/usr/bin/env python
import sys
import os
from binascii import hexlify
from scapy.all import sniff
from scapy.all import TCP, Raw
allowed_bssids = ['020000000200']
reg_mac = []
def handle_pkt(pkt):
if TCP in pkt and pkt[TCP].dport == 1234 and Raw in pkt:
pkt = pkt.lastlayer()
pktHex = hexlify(st... | 28 | 73 | 0.56155 | 185 | 1,316 | 3.908108 | 0.383784 | 0.077455 | 0.029046 | 0.049793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026059 | 0.300152 | 1,316 | 46 | 74 | 28.608696 | 0.758958 | 0.066869 | 0 | 0.055556 | 0 | 0 | 0.163948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138889 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fe32257723f36117284934c831c406997cca99a | 807 | py | Python | dcapi/dcapi.py | lethargilistic/dcapi-wrap | cc8366eee68bc4354a9256dc571c0a889e27d1de | [
"MIT"
] | null | null | null | dcapi/dcapi.py | lethargilistic/dcapi-wrap | cc8366eee68bc4354a9256dc571c0a889e27d1de | [
"MIT"
] | null | null | null | dcapi/dcapi.py | lethargilistic/dcapi-wrap | cc8366eee68bc4354a9256dc571c0a889e27d1de | [
"MIT"
] | null | null | null | import requests
from urllib.parse import urlparse
from os.path import join
#TODO: Break into separate standard settings module
ROOT_URL = 'http://progdisc.club/~lethargilistic/proxy'
HEADERS = {'User-Agent': 'dcapi-wrap (https://github.com/lethargilistic/dcapi-wrap)'}
def set_url(url):
if urlparse(url):
R... | 29.888889 | 85 | 0.680297 | 102 | 807 | 5.22549 | 0.598039 | 0.0394 | 0.067542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006231 | 0.204461 | 807 | 26 | 86 | 31.038462 | 0.823988 | 0.061958 | 0 | 0 | 0 | 0 | 0.246032 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4feb1a147d8e50c42d794ec01fa85f89b90107e5 | 3,378 | py | Python | tests/dataframesource/sources/test_dataikusource.py | telia-oss/birgitta | e4d27465f54a1d4789741e19e15aec726149a735 | [
"MIT"
] | 8 | 2019-11-25T16:39:33.000Z | 2022-03-31T12:48:54.000Z | tests/dataframesource/sources/test_dataikusource.py | telia-oss/birgitta | e4d27465f54a1d4789741e19e15aec726149a735 | [
"MIT"
] | 218 | 2019-09-09T11:11:59.000Z | 2022-03-08T05:16:40.000Z | tests/dataframesource/sources/test_dataikusource.py | telia-oss/birgitta | e4d27465f54a1d4789741e19e15aec726149a735 | [
"MIT"
] | 4 | 2020-07-21T15:33:40.000Z | 2021-12-22T11:32:45.000Z | import sys
from unittest.mock import MagicMock, patch # noqa F401
import mock
import pytest # noqa F401
# TODO: Simplify the mocking of private (unavailable) dataiku lib.
# Current mocking is ugly and complex.
if 'dataiku.Dataset' in sys.modules:
del sys.modules['dataiku.Dataset']
if 'dataiku' in sys.modules:
... | 35.93617 | 85 | 0.718176 | 412 | 3,378 | 5.657767 | 0.211165 | 0.06435 | 0.058344 | 0.032175 | 0.651652 | 0.630202 | 0.519949 | 0.47619 | 0.47619 | 0.436722 | 0 | 0.01235 | 0.185021 | 3,378 | 93 | 86 | 36.322581 | 0.834363 | 0.100651 | 0 | 0.506667 | 0 | 0 | 0.153439 | 0.085648 | 0 | 0 | 0 | 0.010753 | 0.026667 | 1 | 0.053333 | false | 0 | 0.133333 | 0.026667 | 0.213333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fefddd3427c3502d85ef9985a5b9195f2336262 | 1,095 | py | Python | src/poker_now_log_converter/player.py | charlestudor/PokerNowLogConverter | f888a26d805546b2e470c1066552da4dfe9caf58 | [
"MIT"
] | 1 | 2022-01-18T18:14:41.000Z | 2022-01-18T18:14:41.000Z | src/poker_now_log_converter/player.py | charlestudor/PokerNowLogConverter | f888a26d805546b2e470c1066552da4dfe9caf58 | [
"MIT"
] | 4 | 2022-01-19T10:48:49.000Z | 2022-01-26T21:55:08.000Z | src/poker_now_log_converter/player.py | charlestudor/PokerNowLogConverter | f888a26d805546b2e470c1066552da4dfe9caf58 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" Provides the Player class as part of the PokerNowLogConverter data model"""
from dataclasses import dataclass
@dataclass
class Player:
""" The Player class represents a player in a particular hand of poker.
Players start without an alias, which can be set using a method once the ... | 37.758621 | 112 | 0.694064 | 171 | 1,095 | 4.333333 | 0.438596 | 0.094467 | 0.053981 | 0.064777 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001199 | 0.238356 | 1,095 | 28 | 113 | 39.107143 | 0.88729 | 0.725114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4ff270ae3740ae1c772d22e13e0d8d42fb7216e5 | 1,284 | py | Python | bg.py | Blue-IT-Marketing/sa-loans | ff574766f1ae8bc051e5ba07acc47418118a3704 | [
"MIT"
] | null | null | null | bg.py | Blue-IT-Marketing/sa-loans | ff574766f1ae8bc051e5ba07acc47418118a3704 | [
"MIT"
] | null | null | null | bg.py | Blue-IT-Marketing/sa-loans | ff574766f1ae8bc051e5ba07acc47418118a3704 | [
"MIT"
] | null | null | null | import os
import webapp2
import jinja2
from google.appengine.ext import ndb
from google.appengine.api import users
from google.appengine.api import mail
import datetime,random,string
from google.appengine.api import memcache
import logging
#Jinja Loader
template_env = jinja2.Environment(
loader=jinja2.FileSystemLoader... | 28.533333 | 83 | 0.753115 | 130 | 1,284 | 7.4 | 0.430769 | 0.04158 | 0.079002 | 0.068607 | 0.397089 | 0.309771 | 0.143451 | 0.143451 | 0.143451 | 0.143451 | 0 | 0.024635 | 0.146417 | 1,284 | 44 | 84 | 29.181818 | 0.853102 | 0.009346 | 0 | 0.133333 | 0 | 0 | 0.131496 | 0.116535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4ff3692a34dcb497bd8bcdf14990309f69e66f40 | 4,522 | py | Python | pystella/fit/fit_lc.py | baklanovp/pystella | 47a8b9c3dcd343bf80fba80c8468b803f0f842ce | [
"MIT"
] | 1 | 2019-08-08T13:11:57.000Z | 2019-08-08T13:11:57.000Z | pystella/fit/fit_lc.py | cradesto/pystella | f6f44ed12d9648585a52a09e15d494daa4c70c59 | [
"MIT"
] | 9 | 2015-07-11T16:39:57.000Z | 2021-11-23T07:31:49.000Z | pystella/fit/fit_lc.py | cradesto/pystella | f6f44ed12d9648585a52a09e15d494daa4c70c59 | [
"MIT"
] | 1 | 2019-08-08T13:08:55.000Z | 2019-08-08T13:08:55.000Z | import numpy as np
class FitLc:
def __init__(self, name):
self._name = name
self._par = {'is_info': False, 'is_debug': False, 'is_quiet': True}
def print_parameters(self):
print(f'Parmeters of {self.Name}')
for k, v in self._par.items():
print(f'{k:20s}: {v}')
... | 24.181818 | 95 | 0.542459 | 597 | 4,522 | 3.984925 | 0.167504 | 0.046238 | 0.058848 | 0.013451 | 0.360235 | 0.290879 | 0.290879 | 0.222783 | 0.192518 | 0.192518 | 0 | 0.016591 | 0.320212 | 4,522 | 186 | 96 | 24.311828 | 0.757319 | 0.004644 | 0 | 0.306122 | 0 | 0 | 0.058693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0.020408 | 0.006803 | 0.068027 | 0.435374 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ff807a48e43dab450062bab8fe414c8fa64a3d1 | 1,856 | py | Python | src/users/models/microsoftgraphteam_messaging_settings.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | src/users/models/microsoftgraphteam_messaging_settings.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | src/users/models/microsoftgraphteam_messaging_settings.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 45.268293 | 176 | 0.688039 | 196 | 1,856 | 6.066327 | 0.285714 | 0.090833 | 0.065601 | 0.105971 | 0.095879 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0.000631 | 0.146013 | 1,856 | 40 | 177 | 46.4 | 0.749527 | 0.362069 | 0 | 0 | 1 | 0 | 0.246454 | 0.14805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ff80844273cf854c1faf190a9b2ee85a3b36cae | 887 | py | Python | setup.py | shraman-rc/SecFS | a48f931a4f9270c607150ba5322230d2510d1236 | [
"MIT"
] | 2 | 2019-02-16T18:17:16.000Z | 2021-10-31T23:12:57.000Z | setup.py | nicola/security-project | 386f8baf808ca5d9db0c6e43647b9f1468e49f22 | [
"MIT"
] | null | null | null | setup.py | nicola/security-project | 386f8baf808ca5d9db0c6e43647b9f1468e49f22 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='SecFS',
version='0.1.0',
description='6.858 final project --- an encrypted and authenticated file system',
long_description= open('README.md', 'r').read(),
author='Jon Gjengset',
author_email='jon@thesquareplanet.com',
ma... | 31.678571 | 85 | 0.62345 | 101 | 887 | 5.435644 | 0.722772 | 0.014572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019774 | 0.201804 | 887 | 27 | 86 | 32.851852 | 0.75565 | 0.023675 | 0 | 0 | 0 | 0 | 0.508671 | 0.02659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ff824ddfbc7836ffecae20ead3372f3cce1509e | 1,532 | py | Python | eventkit_cloud/jobs/migrations/0011_add_file_data_providers.py | venicegeo/eventkit-cloud | 3a9a4fbfea54d48387f3f3b2ab6e71946af9ffb2 | [
"BSD-3-Clause"
] | 1 | 2018-03-30T21:01:15.000Z | 2018-03-30T21:01:15.000Z | eventkit_cloud/jobs/migrations/0011_add_file_data_providers.py | venicegeo/eventkit-cloud | 3a9a4fbfea54d48387f3f3b2ab6e71946af9ffb2 | [
"BSD-3-Clause"
] | 46 | 2017-06-27T03:12:57.000Z | 2018-12-28T19:48:35.000Z | eventkit_cloud/jobs/migrations/0011_add_file_data_providers.py | venicegeo/eventkit-cloud | 3a9a4fbfea54d48387f3f3b2ab6e71946af9ffb2 | [
"BSD-3-Clause"
] | 7 | 2017-07-28T18:16:34.000Z | 2019-01-18T04:41:55.000Z | # Generated by Django 3.1.2 on 2021-01-27 18:43
from django.db import migrations
class Migration(migrations.Migration):
def add_file_data_providers(apps, schema_editor):
DataProviderType = apps.get_model("jobs", "DataProviderType")
ExportFormat = apps.get_model("jobs", "ExportFormat")
# ... | 40.315789 | 71 | 0.693864 | 183 | 1,532 | 5.595628 | 0.371585 | 0.068359 | 0.107422 | 0.126953 | 0.230469 | 0.230469 | 0.183594 | 0.101563 | 0.101563 | 0 | 0 | 0.01569 | 0.20953 | 1,532 | 37 | 72 | 41.405405 | 0.829893 | 0.148825 | 0 | 0 | 1 | 0 | 0.100154 | 0.020801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b05523632c605c54e5d43969458520e01212a63 | 3,858 | py | Python | stdlib2-src/dist-packages/quodlibet/qltk/dbus_.py | ch1huizong/Scode | c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895 | [
"MIT"
] | null | null | null | stdlib2-src/dist-packages/quodlibet/qltk/dbus_.py | ch1huizong/Scode | c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895 | [
"MIT"
] | null | null | null | stdlib2-src/dist-packages/quodlibet/qltk/dbus_.py | ch1huizong/Scode | c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895 | [
"MIT"
] | null | null | null | # Copyright 2006 Federico Pelloni <federico.pelloni@gmail.com>
# 2013 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
import dbus
import dbus.service
f... | 31.365854 | 76 | 0.62027 | 444 | 3,858 | 5.281532 | 0.263514 | 0.072495 | 0.140725 | 0.127932 | 0.332196 | 0.332196 | 0.332196 | 0.187633 | 0.128785 | 0.081876 | 0 | 0.003209 | 0.272939 | 3,858 | 122 | 77 | 31.622951 | 0.832799 | 0.070762 | 0 | 0.333333 | 0 | 0 | 0.113471 | 0.100894 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177083 | false | 0.0625 | 0.072917 | 0.03125 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b0610b1c3104b500647289a378d78d363771d92 | 1,915 | py | Python | score/models.py | loric-/bcvscore | 2109ce2c4b747d98e1b4456d549d18ca2d7a2ff3 | [
"MIT"
] | 1 | 2018-01-09T21:47:43.000Z | 2018-01-09T21:47:43.000Z | score/models.py | loric-/bcvscore | 2109ce2c4b747d98e1b4456d549d18ca2d7a2ff3 | [
"MIT"
] | null | null | null | score/models.py | loric-/bcvscore | 2109ce2c4b747d98e1b4456d549d18ca2d7a2ff3 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from solo.models import SingletonModel
class Division(models.Model):
nom = models.CharField(max_length=30)
def __str__(self):
return self.nom
class Equipe(models.Model):
nom = models.CharField(max_length=100)
division ... | 24.240506 | 78 | 0.662663 | 202 | 1,915 | 6.108911 | 0.361386 | 0.106969 | 0.072934 | 0.097245 | 0.26094 | 0.061588 | 0.061588 | 0 | 0 | 0 | 0 | 0.006156 | 0.236554 | 1,915 | 78 | 79 | 24.551282 | 0.837893 | 0 | 0 | 0.2 | 0 | 0 | 0.103916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.016667 | 0.05 | 0.066667 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8b06973ff048f4917713726bfa5df01d91206315 | 6,178 | py | Python | GlueCustomConnectors/glueJobValidation/glue_job_validation_update.py | xy1m/aws-glue-samples | bf709caab5adc3a57415018899f3c573a8de13c8 | [
"MIT-0"
] | 925 | 2018-03-19T14:43:12.000Z | 2022-03-30T09:43:53.000Z | GlueCustomConnectors/glueJobValidation/glue_job_validation_update.py | xy1m/aws-glue-samples | bf709caab5adc3a57415018899f3c573a8de13c8 | [
"MIT-0"
] | 88 | 2018-03-22T18:00:10.000Z | 2022-03-23T22:43:18.000Z | GlueCustomConnectors/glueJobValidation/glue_job_validation_update.py | xy1m/aws-glue-samples | bf709caab5adc3a57415018899f3c573a8de13c8 | [
"MIT-0"
] | 555 | 2018-03-20T16:51:28.000Z | 2022-03-30T18:49:44.000Z | # Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import sys
from awsglue.utils import getResolvedOptions
from awsglue.transforms import *
from pyspark.context import SparkContext
from awsglue.context import GlueContext
from awsglue.job import Job
from pys... | 36.556213 | 141 | 0.674166 | 640 | 6,178 | 6.445313 | 0.296875 | 0.03103 | 0.038788 | 0.046545 | 0.423515 | 0.364606 | 0.307152 | 0.257939 | 0.257939 | 0.257939 | 0 | 0.004534 | 0.14325 | 6,178 | 169 | 142 | 36.556213 | 0.774797 | 0.239883 | 0 | 0.28125 | 0 | 0.010417 | 0.445019 | 0.191259 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0 | false | 0.083333 | 0.09375 | 0 | 0.09375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b0c8ae225961cb83cd1db54cd4ce50a488afe5b | 1,341 | py | Python | redbot/message/headers/date.py | jakub-g/redbot | 48f17bd01da929eecdfd233fdc0730e2f4189800 | [
"MIT"
] | 1 | 2018-08-04T23:10:59.000Z | 2018-08-04T23:10:59.000Z | redbot/message/headers/date.py | jakub-g/redbot | 48f17bd01da929eecdfd233fdc0730e2f4189800 | [
"MIT"
] | null | null | null | redbot/message/headers/date.py | jakub-g/redbot | 48f17bd01da929eecdfd233fdc0730e2f4189800 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from redbot.message import headers
from redbot.syntax import rfc7231
from redbot.type import AddNoteMethodType
class date(headers.HttpHeader):
canonical_name = "Date"
description = """\
The `Date` header represents the time when the message was generated, regardless of caching that
happ... | 28.531915 | 96 | 0.694258 | 171 | 1,341 | 5.304094 | 0.549708 | 0.035281 | 0.06946 | 0.08269 | 0.229327 | 0.229327 | 0.123484 | 0.123484 | 0.123484 | 0.123484 | 0 | 0.033333 | 0.217002 | 1,341 | 46 | 97 | 29.152174 | 0.830476 | 0.053691 | 0 | 0.194444 | 0 | 0 | 0.205696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.805556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8b0cbc1b20f2da92c734eeacd0b5fed2d3ab7ec8 | 6,490 | py | Python | padre/authorizers.py | krislindgren/padre | 56e3342a953fdc472adc11ce301acabf6c595760 | [
"MIT"
] | null | null | null | padre/authorizers.py | krislindgren/padre | 56e3342a953fdc472adc11ce301acabf6c595760 | [
"MIT"
] | null | null | null | padre/authorizers.py | krislindgren/padre | 56e3342a953fdc472adc11ce301acabf6c595760 | [
"MIT"
] | null | null | null | import abc
import itertools
from oslo_utils import reflection
import six
from padre import exceptions as excp
from padre import utils
@six.add_metaclass(abc.ABCMeta)
class auth_base(object):
"""Base of all authorizers."""
def __and__(self, other):
return all_must_pass(self, other)
def __or__(s... | 34.157895 | 78 | 0.575501 | 752 | 6,490 | 4.739362 | 0.206117 | 0.029461 | 0.035354 | 0.027497 | 0.406566 | 0.298541 | 0.285634 | 0.248036 | 0.204826 | 0.154321 | 0 | 0 | 0.333128 | 6,490 | 189 | 79 | 34.338624 | 0.823475 | 0.056703 | 0 | 0.356643 | 0 | 0 | 0.143773 | 0.012488 | 0 | 0 | 0 | 0.005291 | 0 | 1 | 0.153846 | false | 0.083916 | 0.041958 | 0.034965 | 0.314685 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b0fd83a4c7961ced4d8ed61e941473be809399f | 17,554 | py | Python | skspec/IO/gwu_interfaces.py | hugadams/scikit-spectra | c451be6d54080fbcc2a3bc5daf8846b83b7343ee | [
"BSD-3-Clause"
] | 83 | 2015-01-15T18:57:22.000Z | 2022-01-18T11:43:55.000Z | skspec/IO/gwu_interfaces.py | hugadams/scikit-spectra | c451be6d54080fbcc2a3bc5daf8846b83b7343ee | [
"BSD-3-Clause"
] | 18 | 2015-02-02T22:46:51.000Z | 2019-04-29T17:23:32.000Z | skspec/IO/gwu_interfaces.py | hugadams/scikit-spectra | c451be6d54080fbcc2a3bc5daf8846b83b7343ee | [
"BSD-3-Clause"
] | 43 | 2015-01-02T20:47:11.000Z | 2021-12-18T16:14:40.000Z | ''' Utilities for converting various file formats to a skspec TimeSpectra.
To convert a list of raw files, use from_spec_files()
To convert old-style timefile/spectral data file, use from_timefile_datafile()
To convert spectral datafiles from Ocean Optics USB2000 and USB650, pas file list in
from_spec_files.
Re... | 41.400943 | 129 | 0.660647 | 2,280 | 17,554 | 4.957018 | 0.25 | 0.00991 | 0.014865 | 0.004601 | 0.118829 | 0.10131 | 0.077243 | 0.051053 | 0.043975 | 0.035127 | 0 | 0.011611 | 0.23459 | 17,554 | 424 | 130 | 41.400943 | 0.829562 | 0.171015 | 0 | 0.188406 | 0 | 0 | 0.091083 | 0.021638 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004831 | 0.033816 | null | null | 0.009662 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b10e7a68c8af58225108e52b0f94e2ff22aadec | 996 | py | Python | setup.py | Feeeenng/flask-3auth | 806b43e5bfb50ba5ab1b9b002b160c199487c2a1 | [
"BSD-3-Clause"
] | 13 | 2017-08-09T07:49:27.000Z | 2021-11-08T08:42:45.000Z | setup.py | Feeeenng/flask-3auth | 806b43e5bfb50ba5ab1b9b002b160c199487c2a1 | [
"BSD-3-Clause"
] | null | null | null | setup.py | Feeeenng/flask-3auth | 806b43e5bfb50ba5ab1b9b002b160c199487c2a1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
'''
@author: 'FenG_Vnc'
@date: 2017-08-08 17:06
@file: setup.py
'''
from __future__ import unicode_literals
from setuptools import setup,find_packages
setup(
name='Flask-thridy',
version='0.0.3',
description='simple use thridy for login you web',
license='BSD',
author='Fee... | 26.210526 | 71 | 0.605422 | 110 | 996 | 5.381818 | 0.736364 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047556 | 0.23996 | 996 | 38 | 72 | 26.210526 | 0.734478 | 0.082329 | 0 | 0 | 0 | 0 | 0.491731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b11462a64d61bf53c381ed6c701a1bc757341a7 | 763 | py | Python | config/users/views.py | sitepoint-editors/Django-photo-app | b80f545aba9c73a0810b49941e8e6769a80958df | [
"MIT",
"Unlicense"
] | null | null | null | config/users/views.py | sitepoint-editors/Django-photo-app | b80f545aba9c73a0810b49941e8e6769a80958df | [
"MIT",
"Unlicense"
] | null | null | null | config/users/views.py | sitepoint-editors/Django-photo-app | b80f545aba9c73a0810b49941e8e6769a80958df | [
"MIT",
"Unlicense"
] | null | null | null | from django.views.generic import CreateView
from django.contrib.auth import authenticate, login
from django.contrib.auth.views import LoginView
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
class SignUpView(CreateView):
template_name = 'users/signup.html'
... | 23.121212 | 54 | 0.70118 | 88 | 763 | 5.943182 | 0.477273 | 0.095602 | 0.097514 | 0.120459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001664 | 0.21232 | 763 | 33 | 55 | 23.121212 | 0.868552 | 0 | 0 | 0 | 0 | 0 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.263158 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b1c4977beae7cf445ff432bf546dbe77ab73927 | 2,440 | py | Python | NeoML/Python/neoml/Dnn/RepeatSequence.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/Python/neoml/Dnn/RepeatSequence.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/Python/neoml/Dnn/RepeatSequence.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Copyright (c) 2017-2020 ABBYY Production LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 33.424658 | 112 | 0.657377 | 311 | 2,440 | 5.038585 | 0.450161 | 0.084237 | 0.035099 | 0.042119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009474 | 0.221311 | 2,440 | 72 | 113 | 33.888889 | 0.815263 | 0.629508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8b22096ffd13f82c182a40a63de2595a4a5e3bb5 | 3,626 | py | Python | Parsers/GFF.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | 10 | 2015-04-28T14:15:04.000Z | 2021-03-15T00:07:38.000Z | Parsers/GFF.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | null | null | null | Parsers/GFF.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | 6 | 2017-03-16T22:38:41.000Z | 2021-08-11T00:22:52.000Z | #!/usr/bin/env python
from RouToolPa.Parsers.Abstract import Record, Metadata, Collection
class MetadataGFF(Metadata):
# TODO: rewrite for general case
pass
class RecordGFF(Record):
def __init__(self, chrom, source, type, start, end, score, strand, quality, attributes):
self.chrom = chrom ... | 37 | 112 | 0.427744 | 400 | 3,626 | 3.8075 | 0.22 | 0.031517 | 0.027577 | 0.010506 | 0.466842 | 0.391989 | 0.382797 | 0.382797 | 0.382797 | 0.382797 | 0 | 0.02374 | 0.430778 | 3,626 | 97 | 113 | 37.381443 | 0.714147 | 0.053778 | 0 | 0.539474 | 0 | 0.013158 | 0.019315 | 0.00995 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.065789 | false | 0.013158 | 0.013158 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b2c96872756ada7578bae428920e05b419182c7 | 10,039 | py | Python | ddu_dirty_mnist/dirty_mnist.py | BlackHC/ddu_dirty_mnist | fdd4e0a4d5496bc3e3ba80359dd7cd67f564d955 | [
"Apache-2.0"
] | 3 | 2021-06-30T13:57:59.000Z | 2021-12-05T18:55:35.000Z | ddu_dirty_mnist/dirty_mnist.py | BlackHC/ddu_dirty_mnist | fdd4e0a4d5496bc3e3ba80359dd7cd67f564d955 | [
"Apache-2.0"
] | null | null | null | ddu_dirty_mnist/dirty_mnist.py | BlackHC/ddu_dirty_mnist | fdd4e0a4d5496bc3e3ba80359dd7cd67f564d955 | [
"Apache-2.0"
] | 1 | 2021-07-09T16:36:11.000Z | 2021-07-09T16:36:11.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_dataloader.ipynb (unless otherwise specified).
__all__ = ['MNIST_NORMALIZATION', 'AmbiguousMNIST', 'FastMNIST', 'DirtyMNIST']
# Cell
import os
from typing import IO, Any, Callable, Dict, List, Optional, Tuple, Union
from urllib.error import URLError
import torch
from t... | 35.725979 | 152 | 0.634227 | 1,190 | 10,039 | 5.24874 | 0.223529 | 0.029459 | 0.013449 | 0.017291 | 0.612712 | 0.595101 | 0.587416 | 0.57845 | 0.57845 | 0.57845 | 0 | 0.025129 | 0.26666 | 10,039 | 281 | 153 | 35.725979 | 0.823282 | 0.431916 | 0 | 0.4375 | 1 | 0.007813 | 0.058702 | 0.012041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0.054688 | 0.03125 | 0.226563 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b2d1c41fd7a85a14145e077860057b9c61a9bae | 571 | py | Python | python/qipkg/actions/build.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qipkg/actions/build.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qipkg/actions/build.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the COPYING file.
""" Build all the projects of the given pml file
"""
import qibuild.parsers
import qipkg.parsers
def configure_parser(parser):
"""Configure parse... | 27.190476 | 72 | 0.742557 | 85 | 571 | 4.870588 | 0.611765 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.162872 | 571 | 20 | 73 | 28.55 | 0.849372 | 0.450088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b31460e87326af480123834b4e021112e65e413 | 518 | py | Python | src/cuda_ai/mean.py | TRex22/dave-A-2048-AI | 6c2b97b960ef111b207d63e09f6644c1332e2c9b | [
"MIT"
] | null | null | null | src/cuda_ai/mean.py | TRex22/dave-A-2048-AI | 6c2b97b960ef111b207d63e09f6644c1332e2c9b | [
"MIT"
] | null | null | null | src/cuda_ai/mean.py | TRex22/dave-A-2048-AI | 6c2b97b960ef111b207d63e09f6644c1332e2c9b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun May 21 15:35:38 2017
@author: Liron
"""
import numpy as np
np.set_printoptions(threshold=np.nan)
data = np.genfromtxt("cuda_times.csv", delimiter=",", usecols=(0,1), max_rows=97, skip_header=96+96+96)
print data[0]
print data[data.shape[0]-1]
mean = np.zeros((16,2))
for i... | 21.583333 | 103 | 0.631274 | 97 | 518 | 3.319588 | 0.536082 | 0.024845 | 0.02795 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102975 | 0.156371 | 518 | 24 | 104 | 21.583333 | 0.633867 | 0.146718 | 0 | 0 | 0 | 0 | 0.03937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b31ef4de81790112ce464c5e4351de81b31c2e8 | 2,889 | py | Python | src/MemeEngine/meme_generator.py | svd-007/Meme-Generator | 09b3073bce11eb655d888a7ee789ba79a6f41862 | [
"BSD-3-Clause"
] | 1 | 2021-07-03T07:56:22.000Z | 2021-07-03T07:56:22.000Z | src/MemeEngine/meme_generator.py | svd-007/Meme-Generator | 09b3073bce11eb655d888a7ee789ba79a6f41862 | [
"BSD-3-Clause"
] | null | null | null | src/MemeEngine/meme_generator.py | svd-007/Meme-Generator | 09b3073bce11eb655d888a7ee789ba79a6f41862 | [
"BSD-3-Clause"
] | null | null | null | """Represent a class to generate a meme."""
from PIL import Image, ImageDraw, ImageFont
from os import makedirs
from random import randint
from textwrap import fill
class MemeGenerator:
"""
A class to generate a meme.
The following responsibilities are defined under this class:
- Loading of an image... | 28.323529 | 79 | 0.564209 | 350 | 2,889 | 4.591429 | 0.371429 | 0.05476 | 0.032358 | 0.037337 | 0.053516 | 0.026136 | 0 | 0 | 0 | 0 | 0 | 0.022691 | 0.344064 | 2,889 | 101 | 80 | 28.60396 | 0.82533 | 0.396677 | 0 | 0.055556 | 1 | 0 | 0.084861 | 0.035981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.111111 | 0 | 0.25 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b35a7c3678ed712b3ff354ea5d271f206795d53 | 221 | py | Python | UVa 11332 - Summing Digits/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 11332 - Summing Digits/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 11332 - Summing Digits/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | import sys
sys.stdin = open('input.txt')
while True:
N = int(input())
if not N:
break
strN = str(N)
while len(strN) > 1:
N = sum(int(i) for i in strN)
strN = str(N)
print strN
| 17 | 37 | 0.515837 | 36 | 221 | 3.166667 | 0.611111 | 0.122807 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.352941 | 221 | 12 | 38 | 18.416667 | 0.79021 | 0 | 0 | 0.181818 | 0 | 0 | 0.040724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.