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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f6e29211a571566029f7938e9e602b90a32f2b5b | 648 | py | Python | flask_value_checker/restrictions/rtypes/file.py | therealadityashankar/flask-value-checker | b4a351f6e33cc42aa5fe1e12e846638a7174ad10 | [
"MIT"
] | 1 | 2020-04-08T21:00:57.000Z | 2020-04-08T21:00:57.000Z | flask_value_checker/restrictions/rtypes/file.py | therealadityashankar/flask-value-checker | b4a351f6e33cc42aa5fe1e12e846638a7174ad10 | [
"MIT"
] | 4 | 2020-03-24T10:14:45.000Z | 2020-12-16T22:58:19.000Z | flask_value_checker/restrictions/rtypes/file.py | therealadityashankar/flask-value-checker | b4a351f6e33cc42aa5fe1e12e846638a7174ad10 | [
"MIT"
] | 1 | 2020-03-22T23:59:07.000Z | 2020-03-22T23:59:07.000Z | from ..generic_restriction import GenericRestriction
from flask import request
class FileRestriction(GenericRestriction):
type_keyword = "file"
attributes = {
"optional": {},
"number": {"parameters": [{"type": int}]},
}
def __init_restriction__(self):
self.optional = False
... | 25.92 | 69 | 0.612654 | 68 | 648 | 5.691176 | 0.573529 | 0.093023 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 648 | 24 | 70 | 27 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.117284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f6ef56b60cc4ce191f5898913d6e371971bb5690 | 1,243 | py | Python | defender/middleware.py | Korred/django-defender | 6ac051880e2df6a6975a1c299440cc354e5ed012 | [
"Apache-2.0"
] | 1 | 2020-03-03T08:55:43.000Z | 2020-03-03T08:55:43.000Z | defender/middleware.py | Korred/django-defender | 6ac051880e2df6a6975a1c299440cc354e5ed012 | [
"Apache-2.0"
] | null | null | null | defender/middleware.py | Korred/django-defender | 6ac051880e2df6a6975a1c299440cc354e5ed012 | [
"Apache-2.0"
] | null | null | null | try:
from django.utils.deprecation import MiddlewareMixin as MIDDLEWARE_BASE_CLASS
except ImportError:
MIDDLEWARE_BASE_CLASS = object
from django.contrib.auth import views as auth_views
from django.utils.decorators import method_decorator
from .decorators import watch_login
class FailedLoginMiddleware(MIDDLE... | 36.558824 | 81 | 0.680611 | 136 | 1,243 | 6.014706 | 0.426471 | 0.061125 | 0.069682 | 0.051345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006459 | 0.252615 | 1,243 | 33 | 82 | 37.666667 | 0.874058 | 0.18745 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 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 |
f6fa21a9ae70798f74518cbd18890c5c7d569256 | 3,747 | py | Python | python/advent_of_code/y2020/day02.py | stonecharioteer/advent-of-code | c18e47e378e82f82b77558a114e7d7c3a43c8429 | [
"MIT"
] | null | null | null | python/advent_of_code/y2020/day02.py | stonecharioteer/advent-of-code | c18e47e378e82f82b77558a114e7d7c3a43c8429 | [
"MIT"
] | null | null | null | python/advent_of_code/y2020/day02.py | stonecharioteer/advent-of-code | c18e47e378e82f82b77558a114e7d7c3a43c8429 | [
"MIT"
] | null | null | null | """--- Day 2: Password Philosophy ---
Your flight departs in a few days from the coastal airport; the easiest way
down to the coast from here is via toboggan.
The shopkeeper at the North Pole Toboggan Rental Shop is having a bad day.
"Something's wrong with our computers; we can't log in!" You ask if you can
take a l... | 38.628866 | 79 | 0.736589 | 594 | 3,747 | 4.575758 | 0.367003 | 0.02833 | 0.025018 | 0.030905 | 0.072112 | 0.025754 | 0.025754 | 0 | 0 | 0 | 0 | 0.016784 | 0.204964 | 3,747 | 96 | 80 | 39.03125 | 0.895603 | 0.703496 | 0 | 0 | 0 | 0 | 0.004579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.259259 | 0.074074 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f6fa3caf2d9dc6c00f2a747bb9ea17ed079bf382 | 1,041 | py | Python | 674. Longest Continuous Increasing Subsequence.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | 674. Longest Continuous Increasing Subsequence.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | 674. Longest Continuous Increasing Subsequence.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | # Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray).
# Example 1:
# Input: [1,3,5,4,7]
# Output: 3
# Explanation: The longest continuous increasing subsequence is [1,3,5], its length is 3.
# Even though [1,3,5,7] is also an increasing subsequence, it's not a ... | 29.742857 | 119 | 0.552354 | 148 | 1,041 | 3.885135 | 0.459459 | 0.146087 | 0.14087 | 0.198261 | 0.187826 | 0.187826 | 0.187826 | 0 | 0 | 0 | 0 | 0.058309 | 0.341018 | 1,041 | 34 | 120 | 30.617647 | 0.779883 | 0.543708 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
100250c15afbb29cd86fc8572550efdb60a2a3cd | 400 | py | Python | graphene_django_pagination/objects_type.py | daniel2101/graphene-django-pagination | dad0ad5a2d3ad03612aec1a6b9ca1948e6abcc4b | [
"MIT"
] | 1 | 2022-02-24T08:26:28.000Z | 2022-02-24T08:26:28.000Z | graphene_django_pagination/objects_type.py | richardnas/graphene-django-pagination | e44c33c58dde1a61877c06ee404cdd099a12fca2 | [
"MIT"
] | 1 | 2021-09-08T21:34:24.000Z | 2021-09-08T22:08:45.000Z | graphene_django_pagination/objects_type.py | eva-tech/graphene-django-pagination | 40195ac264a1afc4965de7c9973422ec4d4456fd | [
"MIT"
] | 1 | 2021-06-18T15:41:45.000Z | 2021-06-18T15:41:45.000Z | from graphene import ObjectType, Boolean
class PageInfoExtra(ObjectType):
has_next_page = Boolean(
required=True,
name="hasNextPage",
description="When paginating forwards, are there more items?",
)
has_previous_page = Boolean(
required=True,
name="hasPreviousPage"... | 25 | 71 | 0.665 | 40 | 400 | 6.55 | 0.625 | 0.083969 | 0.145038 | 0.175573 | 0.206107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 400 | 15 | 72 | 26.666667 | 0.873333 | 0 | 0 | 0.166667 | 0 | 0 | 0.3025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1003a805fbfd668f0e7456faf35385de96e1e807 | 1,015 | py | Python | tests/test_Crypto.py | sondreod/pysj | e3bdfbf8990edd298b39eb144426139643a0edde | [
"MIT"
] | 1 | 2021-12-15T14:10:48.000Z | 2021-12-15T14:10:48.000Z | tests/test_Crypto.py | sondreod/pysj | e3bdfbf8990edd298b39eb144426139643a0edde | [
"MIT"
] | null | null | null | tests/test_Crypto.py | sondreod/pysj | e3bdfbf8990edd298b39eb144426139643a0edde | [
"MIT"
] | null | null | null | import string
import pytest
from pysj import md5, sha1, sha256, uuid
from pysj.crypto import ALPHABET
@pytest.mark.parametrize(
"hash_algorithm, digest",
[
("sha256", "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"),
("sha1", "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3"),
... | 25.375 | 87 | 0.693596 | 124 | 1,015 | 5.5 | 0.427419 | 0.061584 | 0.048387 | 0.039589 | 0.043988 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136418 | 0.169458 | 1,015 | 39 | 88 | 26.025641 | 0.672598 | 0 | 0 | 0 | 0 | 0 | 0.214778 | 0.157635 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.24 | false | 0 | 0.16 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1004ed34f18b31b16ea5a8a2bb2d447d6c77cb05 | 2,497 | py | Python | main.py | if1live/rpi-mpd-controller | 1beca32795a837d2b59267228434c409ed50440d | [
"Unlicense"
] | 1 | 2022-02-25T02:05:14.000Z | 2022-02-25T02:05:14.000Z | main.py | if1live/rpi-mpd-controller | 1beca32795a837d2b59267228434c409ed50440d | [
"Unlicense"
] | null | null | null | main.py | if1live/rpi-mpd-controller | 1beca32795a837d2b59267228434c409ed50440d | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
#-*- coding: utf-8 -*-
u'''
http://www.rpiblog.com/2012/09/using-gpio-of-raspberry-pi-to-blink-led.html
'''
import RPi.GPIO as GPIO
import time
import commands
import re
PIN_STATUS = 3
PIN_PREV_BTN = 8
PIN_PLAY_BTN = 10
PIN_NEXT_BTN = 12
class Player(object):
def __init__(self):
self.p... | 24.009615 | 75 | 0.592311 | 325 | 2,497 | 4.356923 | 0.286154 | 0.03178 | 0.036723 | 0.073446 | 0.110876 | 0.05226 | 0.05226 | 0.05226 | 0.05226 | 0.05226 | 0 | 0.014723 | 0.292751 | 2,497 | 103 | 76 | 24.242718 | 0.787089 | 0.014818 | 0 | 0.177215 | 0 | 0 | 0.024842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050633 | null | null | 0.037975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1008d2abbd0d99debe3a696c9805b1018242c945 | 709 | py | Python | lintcode/586.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/586.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/586.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
586. Sqrt(x) II
Implement double sqrt(double x) and x >= 0.
Compute and return the square root of x.
You do not care about the accuracy of the result, we will help you to output results.
binary search?
by result?
"""
class Solution:
"""
@param x: a double
@return: the square root of x
"""
de... | 19.694444 | 85 | 0.509168 | 105 | 709 | 3.438095 | 0.504762 | 0.016621 | 0.083102 | 0.105263 | 0.121884 | 0.121884 | 0 | 0 | 0 | 0 | 0 | 0.041379 | 0.38646 | 709 | 35 | 86 | 20.257143 | 0.788506 | 0.403385 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
100e9009c583020eb5ad858a4f4dc0e89c180866 | 1,152 | py | Python | mp3treesim/__main__.py | michelezoncheddu/mp3treesim | 9ab39e4a480e5db01d0714397bf46bf5c815e1ca | [
"MIT"
] | 1 | 2021-04-30T12:14:00.000Z | 2021-04-30T12:14:00.000Z | mp3treesim/__main__.py | michelezoncheddu/mp3treesim | 9ab39e4a480e5db01d0714397bf46bf5c815e1ca | [
"MIT"
] | null | null | null | mp3treesim/__main__.py | michelezoncheddu/mp3treesim | 9ab39e4a480e5db01d0714397bf46bf5c815e1ca | [
"MIT"
] | null | null | null | import mp3treesim as mp3
import argparse
def main():
parser = argparse.ArgumentParser(
description='mp3treesim', # TODO: fix this
add_help=True)
parser.add_argument('trees', metavar='TREE', nargs=2,
help='Paths to the trees')
group_mode = parser.add_mutually_excl... | 28.097561 | 73 | 0.599826 | 139 | 1,152 | 4.784173 | 0.417266 | 0.066165 | 0.054135 | 0.090226 | 0.348872 | 0.207519 | 0.207519 | 0.207519 | 0.207519 | 0.207519 | 0 | 0.019254 | 0.278646 | 1,152 | 40 | 74 | 28.8 | 0.780987 | 0.012153 | 0 | 0 | 0 | 0 | 0.189261 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1010f7424961cb0ce8bd6413c0607bae2a3c508b | 650 | py | Python | RestAdm/apps/system/migrations/0019_auto_20200704_0022.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | null | null | null | RestAdm/apps/system/migrations/0019_auto_20200704_0022.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | 54 | 2020-06-24T07:12:19.000Z | 2022-03-12T00:43:57.000Z | RestAdm/apps/system/migrations/0019_auto_20200704_0022.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-07-04 00:22
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('system', '0018_auto_20200703_2354'),
]
operations = [
migrations.AddField(
model_name='role',
name='code... | 26 | 134 | 0.609231 | 70 | 650 | 5.528571 | 0.7 | 0.046512 | 0.103359 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0.266154 | 650 | 24 | 135 | 27.083333 | 0.698113 | 0.069231 | 0 | 0.111111 | 1 | 0 | 0.169154 | 0.097844 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10161658877ba6c0f78fd6cb25d3eb5cf186df1c | 827 | py | Python | buildVars.py | bingen13/unspokenPy3 | 7c8ea64145e30e80475bda0c94b4b3af9ae97f48 | [
"MIT"
] | 2 | 2020-04-24T22:49:52.000Z | 2021-07-14T16:07:41.000Z | buildVars.py | bingen13/unspokenPy3 | 7c8ea64145e30e80475bda0c94b4b3af9ae97f48 | [
"MIT"
] | 3 | 2020-08-31T14:56:02.000Z | 2020-09-05T20:38:50.000Z | buildVars.py | bingen13/unspokenPy3 | 7c8ea64145e30e80475bda0c94b4b3af9ae97f48 | [
"MIT"
] | 3 | 2020-08-31T04:47:26.000Z | 2021-07-12T21:32:34.000Z | from pathlib import Path
_ = lambda x : x
addon_info = {
"addon_name" : "unspokenPy3",
"addon_summary" : _("Unspoken"),
"addon_description" : _("""Removes names label from object like, link, button. It plays different sounds instead of labels."""),
"addon_version" : "0.4",
"addon_author" : u", Sean (ported py... | 30.62963 | 139 | 0.714631 | 95 | 827 | 6.073684 | 0.757895 | 0.02773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026207 | 0.123337 | 827 | 26 | 140 | 31.807692 | 0.769655 | 0 | 0 | 0 | 0 | 0.058824 | 0.628779 | 0.118501 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63dbb3d8e0e00d3fa8528463588dbcb7a7ddd260 | 2,060 | py | Python | rest_auth/__init__.py | lordpeara/django-rest-auth | 793696cee6c17764af695c94cc84332f56e3a512 | [
"MIT"
] | 1 | 2019-07-06T13:15:11.000Z | 2019-07-06T13:15:11.000Z | rest_auth/__init__.py | lordpeara/django-rest-auth | 793696cee6c17764af695c94cc84332f56e3a512 | [
"MIT"
] | 7 | 2019-06-19T15:46:12.000Z | 2020-06-24T16:40:28.000Z | rest_auth/__init__.py | lordpeara/django-rest-auth | 793696cee6c17764af695c94cc84332f56e3a512 | [
"MIT"
] | null | null | null | """
Django Rest Framework Auth provides very simple & quick way to adopt
authentication APIs' to your django project.
Rationale
---------
django-rest-framework's `Serializer` is nice idea for detaching
business logic from view functions. It's very similar to django's
``Form``, but serializer is not obligible for ren... | 22.888889 | 76 | 0.713592 | 292 | 2,060 | 4.965753 | 0.534247 | 0.035862 | 0.03931 | 0.030345 | 0.066207 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005478 | 0.202427 | 2,060 | 89 | 77 | 23.146067 | 0.877054 | 0.960194 | 0 | 0 | 0 | 0 | 0.39726 | 0.328767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63e53a964a6fe835c0c7fc90acc06a96fcf549bd | 1,818 | py | Python | bumblebee_status/modules/contrib/http_status.py | rosalogia/bumblebee-status | 19c3975301d8700743df745ecd5ca2c05ecf5cf0 | [
"MIT"
] | 1,089 | 2016-11-06T10:02:53.000Z | 2022-03-26T12:53:30.000Z | bumblebee_status/modules/contrib/http_status.py | rosalogia/bumblebee-status | 19c3975301d8700743df745ecd5ca2c05ecf5cf0 | [
"MIT"
] | 817 | 2016-11-05T05:42:39.000Z | 2022-03-25T19:43:52.000Z | bumblebee_status/modules/contrib/http_status.py | rosalogia/bumblebee-status | 19c3975301d8700743df745ecd5ca2c05ecf5cf0 | [
"MIT"
] | 317 | 2016-11-05T00:35:06.000Z | 2022-03-24T13:35:03.000Z | # pylint: disable=C0111,R0903
"""Display HTTP status code
Parameters:
* http__status.label: Prefix label (optional)
* http__status.target: Target to retrieve the HTTP status from
* http__status.expect: Expected HTTP status
contributed by `valkheim <https://github.com/valkheim>`_ - many thanks!
"""
from ... | 25.605634 | 72 | 0.617712 | 210 | 1,818 | 5.1 | 0.37619 | 0.056022 | 0.052288 | 0.044818 | 0.089636 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0.012039 | 0.268977 | 1,818 | 70 | 73 | 25.971429 | 0.79383 | 0.19582 | 0 | 0.093023 | 0 | 0 | 0.037139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.116279 | 0.023256 | 0.55814 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
63e72157427a076ff480e6853ea04045cc46e53e | 965 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/service_layer.py | gbozee/api-scaffold | 6e4f75f0fe26e4f567158ce2d8dde0abbd6b1063 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/service_layer.py | gbozee/api-scaffold | 6e4f75f0fe26e4f567158ce2d8dde0abbd6b1063 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/service_layer.py | gbozee/api-scaffold | 6e4f75f0fe26e4f567158ce2d8dde0abbd6b1063 | [
"MIT"
] | null | null | null | import jwt
from {{cookiecutter.project_slug}} import types, settings
async def verify_access_token(bearer_token, **kwargs) -> types.AuthorizedUser:
init = jwt.decode(bearer_token, verify=False)
if "aud" in init:
decoded_value = decode_access_token(bearer_token, audience=init["aud"][0])
else:... | 34.464286 | 83 | 0.682902 | 113 | 965 | 5.59292 | 0.477876 | 0.121835 | 0.107595 | 0.10443 | 0.126582 | 0.126582 | 0.126582 | 0 | 0 | 0 | 0 | 0.005141 | 0.193782 | 965 | 28 | 84 | 34.464286 | 0.807198 | 0 | 0 | 0 | 0 | 0 | 0.068158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | 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 |
63efea07d6308b8e2506082daa62265dc5ee10e1 | 1,791 | py | Python | src_old/tests/scripts/inprogress/itertools/ex3.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | src_old/tests/scripts/inprogress/itertools/ex3.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | src_old/tests/scripts/inprogress/itertools/ex3.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | # coding: utf-8
from pyccel.stdlib.parallel.openmp import omp_get_thread_num
#$ header class StopIteration(public, hide)
#$ header method __init__(StopIteration)
#$ header method __del__(StopIteration)
class StopIteration(object):
def __init__(self):
pass
def __del__(self):
pass
#$ header c... | 26.731343 | 117 | 0.59129 | 211 | 1,791 | 4.720379 | 0.308057 | 0.072289 | 0.027108 | 0.03012 | 0.016064 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006998 | 0.281965 | 1,791 | 66 | 118 | 27.136364 | 0.767496 | 0.261865 | 0 | 0.105263 | 0 | 0 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.026316 | 0 | 0.236842 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
63fb58024854a57c06e8db4c40a5801e52816576 | 208 | py | Python | python_fishc/48.0.py | iisdd/Courses | a47d202e0d7e1ba85a38c6fe3dd9619eceb1045c | [
"MIT"
] | 1 | 2020-11-29T14:42:01.000Z | 2020-11-29T14:42:01.000Z | python_fishc/48.0.py | iisdd/Courses | a47d202e0d7e1ba85a38c6fe3dd9619eceb1045c | [
"MIT"
] | null | null | null | python_fishc/48.0.py | iisdd/Courses | a47d202e0d7e1ba85a38c6fe3dd9619eceb1045c | [
"MIT"
] | null | null | null | '''
0. 用 while 语句实现与以下 for 语句相同的功能:
for each in range(5):
print(each)
'''
r = iter(range(5))
while 1:
try:
each = next(r)
except StopIteration:
break
print(each)
| 14.857143 | 32 | 0.528846 | 28 | 208 | 3.928571 | 0.678571 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.346154 | 208 | 13 | 33 | 16 | 0.779412 | 0.331731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1202b069a2665c0b22a9640953b9d7e079c7c377 | 4,569 | py | Python | MT_2018_PPGIA/AULA_05_06/LE_04/resolutions/k-nn/pre-processing-001.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | MT_2018_PPGIA/AULA_05_06/LE_04/resolutions/k-nn/pre-processing-001.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | MT_2018_PPGIA/AULA_05_06/LE_04/resolutions/k-nn/pre-processing-001.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Software: Pre-Processing-01
Description:
- Processa todos arquivos, dos diretórios neg_ e pos_ do dataset que contem os registros
já separados em arquivos .TXT;
- Converte todos para caracteres minusculos;
- Remove carac... | 24.564516 | 109 | 0.633837 | 551 | 4,569 | 5.107078 | 0.350272 | 0.051173 | 0.017058 | 0.013504 | 0.03909 | 0.022743 | 0 | 0 | 0 | 0 | 0 | 0.011114 | 0.231998 | 4,569 | 185 | 110 | 24.697297 | 0.790824 | 0.235062 | 0 | 0.022222 | 0 | 0.022222 | 0.164347 | 0.052117 | 0 | 0 | 0 | 0.016216 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.233333 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1205c53239647340e368aa05c765adbe03a06995 | 316 | py | Python | widget.py | wangzqzero/calculator | 94bf0c454672b88262ed87d090908a5ed1518fd3 | [
"MIT"
] | null | null | null | widget.py | wangzqzero/calculator | 94bf0c454672b88262ed87d090908a5ed1518fd3 | [
"MIT"
] | null | null | null | widget.py | wangzqzero/calculator | 94bf0c454672b88262ed87d090908a5ed1518fd3 | [
"MIT"
] | null | null | null | ## This Python file uses the following encoding: utf-8
from PyQt5.QtWidgets import *
from mainwindow import MainWindow
from call_standard import StandardPageWindow
import sys
if __name__ == '__main__':
app = QApplication(sys.argv)
mainWindow = MainWindow()
mainWindow.show()
sys.exit(app.exec_())
| 22.571429 | 54 | 0.743671 | 39 | 316 | 5.769231 | 0.692308 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.170886 | 316 | 13 | 55 | 24.307692 | 0.851145 | 0.161392 | 0 | 0 | 0 | 0 | 0.030651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1206c2fdbf2532a1267286dee5b23a5498f33d18 | 1,235 | py | Python | moi/menu/migrations/0001_initial.py | Ecotrust/F2S-MOI | aeb38942d6539c50f252ea3ff6fbff07aabc5088 | [
"Apache-2.0"
] | null | null | null | moi/menu/migrations/0001_initial.py | Ecotrust/F2S-MOI | aeb38942d6539c50f252ea3ff6fbff07aabc5088 | [
"Apache-2.0"
] | 33 | 2015-05-06T00:47:20.000Z | 2016-11-08T21:13:44.000Z | moi/menu/migrations/0001_initial.py | Ecotrust/F2S-MOI | aeb38942d6539c50f252ea3ff6fbff07aabc5088 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-21 06:31
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailcore', '0023_alter_page_revision_... | 38.59375 | 196 | 0.62915 | 140 | 1,235 | 5.407143 | 0.635714 | 0.031704 | 0.036988 | 0.058124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025696 | 0.243725 | 1,235 | 31 | 197 | 39.83871 | 0.784797 | 0.054251 | 0 | 0 | 1 | 0 | 0.241202 | 0.037768 | 0.043478 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12088194e9edb87bfd9e2a1d0bfd98b913f5d631 | 5,462 | py | Python | test/integration/src/py/test_ebrelayer_restart.py | salahgapr5/snif | fde05f68d8c6898f1826f6de6b24dcec71ea4e18 | [
"Apache-2.0"
] | null | null | null | test/integration/src/py/test_ebrelayer_restart.py | salahgapr5/snif | fde05f68d8c6898f1826f6de6b24dcec71ea4e18 | [
"Apache-2.0"
] | null | null | null | test/integration/src/py/test_ebrelayer_restart.py | salahgapr5/snif | fde05f68d8c6898f1826f6de6b24dcec71ea4e18 | [
"Apache-2.0"
] | null | null | null | import copy
import json
import logging
import time
import pytest
import test_utilities
from pytest_utilities import create_new_sifaddr
from pytest_utilities import generate_test_account, generate_minimal_test_account
from test_utilities import EthereumToSifchainTransferRequest
def test_ebrelayer_restart(
ba... | 41.694656 | 118 | 0.729586 | 617 | 5,462 | 6.071313 | 0.199352 | 0.083289 | 0.058729 | 0.02803 | 0.557128 | 0.513881 | 0.439135 | 0.439135 | 0.369194 | 0.369194 | 0 | 0.007726 | 0.194251 | 5,462 | 130 | 119 | 42.015385 | 0.843445 | 0 | 0 | 0.368421 | 1 | 0 | 0.183632 | 0.051813 | 0 | 0 | 0 | 0 | 0.008772 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.105263 | 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 |
12088cefe416aeb8f95a36d7e7d9fc98dedce7fc | 346 | py | Python | iwg_blog/taskapp/__init__.py | razortheory/who-iwg-webapp | e2318d286cd9ab87d4d8103bc7b3072cfb99bf76 | [
"MIT"
] | null | null | null | iwg_blog/taskapp/__init__.py | razortheory/who-iwg-webapp | e2318d286cd9ab87d4d8103bc7b3072cfb99bf76 | [
"MIT"
] | null | null | null | iwg_blog/taskapp/__init__.py | razortheory/who-iwg-webapp | e2318d286cd9ab87d4d8103bc7b3072cfb99bf76 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
if not settings.configured:
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.dev')
app = Celery('iwg_blog')
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda:... | 20.352941 | 74 | 0.806358 | 47 | 346 | 5.680851 | 0.553191 | 0.074906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104046 | 346 | 16 | 75 | 21.625 | 0.86129 | 0 | 0 | 0 | 0 | 0 | 0.199422 | 0.063584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
120b579129a0743e0f4395a9647c376c72191a31 | 12,095 | py | Python | resources/Wireshark/WiresharkDissectorFoo/tools/generate-nl80211-fields.py | joshis1/C_Programming | 4a8003321251448a167bfca0b595c5eeab88608d | [
"MIT"
] | 2 | 2020-09-11T05:51:42.000Z | 2020-12-31T11:42:02.000Z | resources/Wireshark/WiresharkDissectorFoo/tools/generate-nl80211-fields.py | joshis1/C_Programming | 4a8003321251448a167bfca0b595c5eeab88608d | [
"MIT"
] | null | null | null | resources/Wireshark/WiresharkDissectorFoo/tools/generate-nl80211-fields.py | joshis1/C_Programming | 4a8003321251448a167bfca0b595c5eeab88608d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Parses the nl80211.h interface and generate appropriate enums and fields
# (value_string) for packet-netlink-nl80211.c
#
# Copyright (c) 2017, Peter Wu <peter@lekensteyn.nl>
# Copyright (c) 2018, Mikael Kanstrup <mikael.kanstrup@sony.com>
#
# Wireshark - Network traffic analyzer
# By Gerald Comb... | 37.215385 | 109 | 0.61943 | 1,578 | 12,095 | 4.518378 | 0.223067 | 0.080785 | 0.060589 | 0.095933 | 0.34446 | 0.17223 | 0.087237 | 0.034783 | 0.034783 | 0.034783 | 0 | 0.050804 | 0.233485 | 12,095 | 324 | 110 | 37.330247 | 0.718261 | 0.107813 | 0 | 0.115226 | 1 | 0.004115 | 0.290855 | 0.084739 | 0 | 0 | 0.000373 | 0 | 0.004115 | 1 | 0.049383 | false | 0 | 0.016461 | 0.004115 | 0.115226 | 0.012346 | 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 |
1212fc5bb4dedfc047209adc1704808925ab39bf | 1,245 | py | Python | app/core/migrations/0002_auto_20200610_1443.py | Amirh-zahmatkesh/acc-back | 77e693c743977eacf6b9ed5c3bcf5b1ae918a9d5 | [
"MIT"
] | null | null | null | app/core/migrations/0002_auto_20200610_1443.py | Amirh-zahmatkesh/acc-back | 77e693c743977eacf6b9ed5c3bcf5b1ae918a9d5 | [
"MIT"
] | null | null | null | app/core/migrations/0002_auto_20200610_1443.py | Amirh-zahmatkesh/acc-back | 77e693c743977eacf6b9ed5c3bcf5b1ae918a9d5 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-10 14:43
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0001_initial'),
... | 35.571429 | 160 | 0.604016 | 129 | 1,245 | 5.682171 | 0.550388 | 0.043656 | 0.057299 | 0.090041 | 0.103683 | 0.103683 | 0.103683 | 0.103683 | 0 | 0 | 0 | 0.023991 | 0.263454 | 1,245 | 34 | 161 | 36.617647 | 0.775354 | 0.036145 | 0 | 0.071429 | 1 | 0 | 0.1202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1213bad0e32d5217944a9f56d69375b9f2bb9c24 | 301 | py | Python | server.py | theSage21/evo-site | 70bd23ef5abea7b1eaa283d92dbe29db0f6e5bcd | [
"BSD-3-Clause"
] | 2 | 2017-10-01T19:01:42.000Z | 2017-10-02T02:22:50.000Z | server.py | theSage21/evo-site | 70bd23ef5abea7b1eaa283d92dbe29db0f6e5bcd | [
"BSD-3-Clause"
] | null | null | null | server.py | theSage21/evo-site | 70bd23ef5abea7b1eaa283d92dbe29db0f6e5bcd | [
"BSD-3-Clause"
] | null | null | null | import bottle
from genetic import GA
ga = GA()
app = bottle.Bottle()
@app.get('/')
def home():
data = ga.get_data()
return bottle.template('home.html', **data)
@app.get('/mark-hit/<ident>')
def mark_hit(ident):
ga.mark_hit(ident)
if __name__ == '__main__':
app.run(debug=True)
| 13.681818 | 47 | 0.634551 | 45 | 301 | 4 | 0.488889 | 0.116667 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179402 | 301 | 21 | 48 | 14.333333 | 0.728745 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
121dfadd63db78a1945849971e6a9c89e0fd4994 | 1,779 | py | Python | files/p2_metodo_nuevo.py | ce-box/CE3102-CALC_FX | 4a85f2df11d36e480097fc527937007c40d0db46 | [
"MIT"
] | null | null | null | files/p2_metodo_nuevo.py | ce-box/CE3102-CALC_FX | 4a85f2df11d36e480097fc527937007c40d0db46 | [
"MIT"
] | null | null | null | files/p2_metodo_nuevo.py | ce-box/CE3102-CALC_FX | 4a85f2df11d36e480097fc527937007c40d0db46 | [
"MIT"
] | null | null | null | from sympy import sympify, Symbol
x = Symbol('x') #Se comvierte la variable a simbolico
#Funcion principal del metodo
def metodo_nuevo(x_0, f, tol, iter_max):
if tol <= 0:
raise ValueError('Tolerancia no debe ser cero.') #Error al ingresar una tolerancia con las condiones no aptas
f = sympify(f)
... | 26.552239 | 118 | 0.606521 | 334 | 1,779 | 3.062874 | 0.305389 | 0.035191 | 0.029326 | 0.047898 | 0.219941 | 0.14174 | 0.119257 | 0.070381 | 0.070381 | 0.070381 | 0 | 0.028941 | 0.261945 | 1,779 | 66 | 119 | 26.954545 | 0.75019 | 0.296234 | 0 | 0.2 | 0 | 0 | 0.063813 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.1 | false | 0 | 0.025 | 0.025 | 0.225 | 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 |
121f831c4adb402e75bad3d9cdc736be2b7d0e45 | 479 | py | Python | looking_for_group/gamer_profiles/migrations/0005_auto_20180705_1559.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | looking_for_group/gamer_profiles/migrations/0005_auto_20180705_1559.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | looking_for_group/gamer_profiles/migrations/0005_auto_20180705_1559.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.7 on 2018-07-05 19:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gamer_profiles', '0004_gamerprofile_private'),
]
operations = [
migrations.AlterField(
model_name='gamerprofile',
na... | 25.210526 | 127 | 0.643006 | 54 | 479 | 5.611111 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053073 | 0.25261 | 479 | 18 | 128 | 26.611111 | 0.793296 | 0.093946 | 0 | 0 | 1 | 0 | 0.275463 | 0.05787 | 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 |
121ffd7f21ad5e49393dc991a61d407993525afb | 1,908 | py | Python | test/python/TestRFileWrites.py | BuildJet/sharkbite | a8355be6e4879ea7648ea045537d6720538b00b8 | [
"Apache-2.0"
] | 30 | 2017-01-23T10:42:29.000Z | 2022-02-04T18:06:08.000Z | test/python/TestRFileWrites.py | BuildJet/sharkbite | a8355be6e4879ea7648ea045537d6720538b00b8 | [
"Apache-2.0"
] | 55 | 2017-01-29T13:15:52.000Z | 2022-02-05T17:49:51.000Z | test/python/TestRFileWrites.py | BuildJet/sharkbite | a8355be6e4879ea7648ea045537d6720538b00b8 | [
"Apache-2.0"
] | 5 | 2017-01-23T10:42:34.000Z | 2021-09-07T19:11:00.000Z | from testmodule import *
class TestRFileWrites(TestRunner):
def __init__(self):
parser = ArgumentParser(description="This is an Apache Accummulo Python connector")
parser.add_argument("-i", "--instance", dest="instance",
help="Apache Accumulo Instance Name", required=True)
parser.add_argument("-z", "... | 26.5 | 91 | 0.695493 | 222 | 1,908 | 5.927928 | 0.472973 | 0.041033 | 0.077508 | 0.047872 | 0.066109 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006281 | 0.165618 | 1,908 | 71 | 92 | 26.873239 | 0.820352 | 0 | 0 | 0.06 | 0 | 0 | 0.21174 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.06 | false | 0.06 | 0.08 | 0 | 0.16 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1221093efddb268d721554c6762cb80be582dd1e | 1,859 | py | Python | smorest_crud/test/test_crud.py | jetbridge/smorest-crud | 9dddaf5698b3ceb31f956bc7f9e23ae93e095454 | [
"MIT"
] | 9 | 2020-04-21T06:20:39.000Z | 2022-02-14T13:36:40.000Z | smorest_crud/test/test_crud.py | jetbridge/smorest-crud | 9dddaf5698b3ceb31f956bc7f9e23ae93e095454 | [
"MIT"
] | 2 | 2020-04-21T07:44:41.000Z | 2021-01-20T08:17:46.000Z | smorest_crud/test/test_crud.py | jetbridge/smorest-crud | 9dddaf5698b3ceb31f956bc7f9e23ae93e095454 | [
"MIT"
] | 1 | 2021-03-23T16:03:26.000Z | 2021-03-23T16:03:26.000Z | from flask.testing import FlaskClient
from smorest_crud.test.app import USER_NAME
def test_list(client: FlaskClient, pets):
res = client.get("/human")
assert res.status_code == 200
res = res.json
assert len(res) == 10
assert res[0]["pets"][0]
assert res[0]["pets"][0]["genus"]
def test_get(... | 27.746269 | 70 | 0.655191 | 260 | 1,859 | 4.603846 | 0.269231 | 0.091896 | 0.105263 | 0.095238 | 0.285714 | 0.159566 | 0.113617 | 0.113617 | 0.113617 | 0 | 0 | 0.033356 | 0.193653 | 1,859 | 66 | 71 | 28.166667 | 0.765177 | 0.046799 | 0 | 0.159091 | 0 | 0 | 0.178268 | 0 | 0 | 0 | 0 | 0 | 0.431818 | 1 | 0.136364 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12274b384b5fd43f9b4f97bd99de1ffe3a670cca | 376 | py | Python | day4/part1.py | rockybulwinkle/advent-of-code-2020 | 385a11c510b3f9b0a6400a5432ed5885eeb457ec | [
"MIT"
] | null | null | null | day4/part1.py | rockybulwinkle/advent-of-code-2020 | 385a11c510b3f9b0a6400a5432ed5885eeb457ec | [
"MIT"
] | null | null | null | day4/part1.py | rockybulwinkle/advent-of-code-2020 | 385a11c510b3f9b0a6400a5432ed5885eeb457ec | [
"MIT"
] | null | null | null | import sys
import common
if len(sys.argv) != 2:
print(f"Usage: {sys.argv[0]} file")
passports = common.load_passports(sys.argv[1])
count_p1 = 0
count_p2 = 0
for idx,i in enumerate(passports):
if i.valid_p1():
count_p1+=1
valid = i.valid_p2()
if valid:
count_p2+=1
print(idx, vali... | 15.04 | 46 | 0.62234 | 62 | 376 | 3.629032 | 0.387097 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052448 | 0.239362 | 376 | 24 | 47 | 15.666667 | 0.734266 | 0 | 0 | 0 | 0 | 0 | 0.066489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.117647 | 0 | 0.117647 | 0.294118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1227696fd82148edf842e6d81d859e91be9867e7 | 4,274 | py | Python | python/GafferImageUI/ResampleUI.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 561 | 2016-10-18T04:30:48.000Z | 2022-03-30T06:52:04.000Z | python/GafferImageUI/ResampleUI.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 1,828 | 2016-10-14T19:01:46.000Z | 2022-03-30T16:07:19.000Z | python/GafferImageUI/ResampleUI.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 120 | 2016-10-18T15:19:13.000Z | 2021-12-20T16:28:23.000Z | ##########################################################################
#
# Copyright (c) 2015, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | 29.273973 | 85 | 0.688582 | 519 | 4,274 | 5.67052 | 0.472062 | 0.015291 | 0.027523 | 0.049949 | 0.062521 | 0.046211 | 0.046211 | 0.046211 | 0.046211 | 0.046211 | 0 | 0.001469 | 0.20379 | 4,274 | 145 | 86 | 29.475862 | 0.863356 | 0.370613 | 0 | 0.333333 | 0 | 0 | 0.340827 | 0.102518 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.044444 | 0.066667 | 0 | 0.066667 | 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 |
12288d0fd251979d0d2b214a24db7e5d9da81443 | 4,454 | py | Python | config/default.py | sartography/cr-connect-workflow | e0d1f63c082e9f4e6e3593c45d615afe04f42729 | [
"MIT"
] | 2 | 2019-12-02T12:39:21.000Z | 2022-01-10T23:31:36.000Z | config/default.py | sartography/cr-connect-workflow | e0d1f63c082e9f4e6e3593c45d615afe04f42729 | [
"MIT"
] | 341 | 2019-12-11T15:23:59.000Z | 2022-03-22T19:36:37.000Z | config/default.py | sartography/cr-connect-workflow | e0d1f63c082e9f4e6e3593c45d615afe04f42729 | [
"MIT"
] | 4 | 2021-03-23T19:17:14.000Z | 2022-03-10T03:12:10.000Z | import os
import re
from os import environ
basedir = os.path.abspath(os.path.dirname(__file__))
JSON_SORT_KEYS = False # CRITICAL. Do not sort the data when returning values to the front end.
# The API_TOKEN is used to ensure that the
# workflow synch can work without a lot of
# back and forth.
# you may want to c... | 49.488889 | 123 | 0.754603 | 665 | 4,454 | 4.786466 | 0.317293 | 0.144518 | 0.03393 | 0.0377 | 0.053723 | 0.011938 | 0 | 0 | 0 | 0 | 0 | 0.016663 | 0.097216 | 4,454 | 89 | 124 | 50.044944 | 0.774932 | 0.128424 | 0 | 0 | 0 | 0 | 0.311772 | 0.06727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.061538 | 0.046154 | 0 | 0.046154 | 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 |
122f2871864456892bcd4367b7ceae9cad38c5ce | 647 | py | Python | python/dcp027_balanced_parenthesis.py | iapurba/Daily-Coding-Problem | 4a9805a57e77ada4f1aeef6e27cbabec2623b7e2 | [
"MIT"
] | 1 | 2021-07-11T17:26:26.000Z | 2021-07-11T17:26:26.000Z | python/dcp027_balanced_parenthesis.py | iapurba/Daily-Coding-Problem | 4a9805a57e77ada4f1aeef6e27cbabec2623b7e2 | [
"MIT"
] | null | null | null | python/dcp027_balanced_parenthesis.py | iapurba/Daily-Coding-Problem | 4a9805a57e77ada4f1aeef6e27cbabec2623b7e2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def isBalanced(s: str) -> bool:
stack = []
pair = {'(': ')', '{': '}', '[': ']'}
for ch in s:
# For left brackets push right brackets
if (ch in pair.keys()):
stack.append(pair[ch])
else:
# Unmatch right char
if len(stack) =... | 22.310345 | 47 | 0.448223 | 67 | 647 | 4.208955 | 0.552239 | 0.159574 | 0.06383 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.378671 | 647 | 28 | 48 | 23.107143 | 0.691542 | 0.16847 | 0 | 0.117647 | 0 | 0 | 0.046904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.235294 | 0.176471 | 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 |
1239f971428ceea2cecc6f8e01bbd06887e28788 | 2,439 | py | Python | pyglet-hg/tests/window/WINDOW_FULLSCREEN_SIZE.py | sangh/LaserShow | abc95e465e3455dc220cc602dd58358c84666f29 | [
"BSD-3-Clause"
] | 21 | 2015-11-03T03:15:36.000Z | 2021-03-15T22:00:47.000Z | tests/window/WINDOW_FULLSCREEN_SIZE.py | seeminglee/pyglet64 | 3dd167b5b0d3ad132a157e404586e53c2bb21736 | [
"BSD-3-Clause"
] | 3 | 2017-09-14T14:08:28.000Z | 2019-05-20T04:38:15.000Z | tests/window/WINDOW_FULLSCREEN_SIZE.py | seeminglee/pyglet64 | 3dd167b5b0d3ad132a157e404586e53c2bb21736 | [
"BSD-3-Clause"
] | 23 | 2017-04-15T19:23:08.000Z | 2020-09-08T11:55:29.000Z | #!/usr/bin/env python
'''Test that window can be set to and from various fullscreen sizes.
Expected behaviour:
One window will be opened. Press a number to switch to the corresponding
fullscreen size; hold control and press a number to switch back
to the corresponding window size:
0 - Default si... | 28.694118 | 77 | 0.608856 | 312 | 2,439 | 4.615385 | 0.451923 | 0.061111 | 0.054167 | 0.019444 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064688 | 0.309143 | 2,439 | 84 | 78 | 29.035714 | 0.789911 | 0.03403 | 0 | 0.04 | 0 | 0 | 0.051432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02 | 0.12 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
123a26f5eb167c773e7639dfc41eeba8282cb494 | 878 | py | Python | tripp/knn.py | mjamesruggiero/tripp | 52600bf37349161343fd643caa0a14ef246fd469 | [
"BSD-3-Clause"
] | 1 | 2017-06-29T13:35:08.000Z | 2017-06-29T13:35:08.000Z | tripp/knn.py | mjamesruggiero/tripp | 52600bf37349161343fd643caa0a14ef246fd469 | [
"BSD-3-Clause"
] | null | null | null | tripp/knn.py | mjamesruggiero/tripp | 52600bf37349161343fd643caa0a14ef246fd469 | [
"BSD-3-Clause"
] | null | null | null | from collections import Counter
import algebra
def majority_vote(labels):
"""assumes that labels are ordered from nearest to farthest"""
vote_counts = Counter(labels)
winner, winner_count = vote_counts.most_common(1)[0]
num_winners = len([count
for count in vote_counts.values()
... | 32.518519 | 76 | 0.603645 | 104 | 878 | 4.865385 | 0.480769 | 0.071146 | 0.071146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006612 | 0.310934 | 878 | 26 | 77 | 33.769231 | 0.829752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | 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 |
123be1b38cf1c3b10ca3d6a9145929beb7cca86d | 2,729 | py | Python | src/tabu_list.py | AHalic/tabu-search | 7f543dbb112b6d1cce6be01c4a0e8541bb904156 | [
"MIT"
] | null | null | null | src/tabu_list.py | AHalic/tabu-search | 7f543dbb112b6d1cce6be01c4a0e8541bb904156 | [
"MIT"
] | null | null | null | src/tabu_list.py | AHalic/tabu-search | 7f543dbb112b6d1cce6be01c4a0e8541bb904156 | [
"MIT"
] | null | null | null | from typing import List, Tuple
import time
import pandas as pd
from initial_solution import *
from local_search import *
from graph import *
def algorithm(nodes: List[dict], vehicles: int, clients: int, vehicle_capacity: int, tenure: int, file_writer, iter_max:int=1000, savings:bool=True) -> None:
"""
Aplica ... | 39.550725 | 241 | 0.709784 | 367 | 2,729 | 4.93733 | 0.286104 | 0.057947 | 0.048565 | 0.044702 | 0.215784 | 0.209713 | 0.146799 | 0.146799 | 0.078366 | 0.078366 | 0 | 0.006095 | 0.218395 | 2,729 | 69 | 242 | 39.550725 | 0.843413 | 0.106266 | 0 | 0.136364 | 0 | 0 | 0.036823 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.022727 | false | 0 | 0.136364 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12407cd42b3bc1fbf29788e1cde7796769298b6c | 276 | py | Python | website/migrations/0055_merge_20210119_2125.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | null | null | null | website/migrations/0055_merge_20210119_2125.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | 1 | 2022-01-23T21:08:12.000Z | 2022-01-23T21:08:12.000Z | website/migrations/0055_merge_20210119_2125.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | 1 | 2021-10-17T17:11:42.000Z | 2021-10-17T17:11:42.000Z | # Generated by Django 3.1.5 on 2021-01-20 02:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0052_auto_20210114_2228'),
('website', '0054_task_grader_data_file'),
]
operations = [
]
| 18.4 | 50 | 0.652174 | 34 | 276 | 5.088235 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164319 | 0.228261 | 276 | 14 | 51 | 19.714286 | 0.647887 | 0.163043 | 0 | 0 | 1 | 0 | 0.275109 | 0.213974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12426e46b7d81796ec062ccfd889fe427809b91b | 14,516 | py | Python | For_Cluster/Temp/letshpc_folder/main_script_without_perf.py | yatin2410/HPC_N_QUEENS | df629ac4ebc678815953370c8ae97c6d276819ff | [
"MIT"
] | 2 | 2019-05-10T09:09:07.000Z | 2022-02-07T05:46:57.000Z | For_Cluster/Temp/letshpc_folder/main_script_without_perf.py | yatin2410/HPC_N_QUEENS | df629ac4ebc678815953370c8ae97c6d276819ff | [
"MIT"
] | null | null | null | For_Cluster/Temp/letshpc_folder/main_script_without_perf.py | yatin2410/HPC_N_QUEENS | df629ac4ebc678815953370c8ae97c6d276819ff | [
"MIT"
] | null | null | null | #!/bin/python
import subprocess
import os
import sys
import maps
import time
import logging
def line(n):
print('-'*n)
logging.basicConfig(filename = "LetsHPC_Team_CodeRunner.log", level = logging.INFO)
logger = logging.getLogger(__name__)
#####################################################################... | 44.527607 | 489 | 0.588523 | 1,871 | 14,516 | 4.39551 | 0.125067 | 0.009971 | 0.010944 | 0.009241 | 0.572714 | 0.553502 | 0.501946 | 0.481518 | 0.443823 | 0.442485 | 0 | 0.01019 | 0.263089 | 14,516 | 325 | 490 | 44.664615 | 0.758624 | 0.045949 | 0 | 0.277778 | 0 | 0.051282 | 0.286248 | 0.065246 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.106838 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1244f318eaffea1bd827b3f9be113dbbc224a78e | 690 | py | Python | r2k/cli/config/config_show.py | mcouthon/rss-to-kindle | 93d6b1142418efd0ee430bb365a2c646052d4c30 | [
"MIT"
] | 11 | 2020-05-15T12:39:54.000Z | 2020-07-21T10:26:48.000Z | r2k/cli/config/config_show.py | mcouthon/r2k | 17e658769b26a23b284118f5bcf8ed5edc066a13 | [
"MIT"
] | null | null | null | r2k/cli/config/config_show.py | mcouthon/r2k | 17e658769b26a23b284118f5bcf8ed5edc066a13 | [
"MIT"
] | null | null | null | import click
import orjson as json
import yaml
from r2k.cli import cli_utils, logger
from r2k.config import config as _config
@click.command("show")
@cli_utils.config_path_option()
@click.option(
"-j",
"--json",
"is_json",
is_flag=True,
help="When passed the output will be in JSON format (e.g. fo... | 24.642857 | 82 | 0.663768 | 103 | 690 | 4.320388 | 0.543689 | 0.040449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00367 | 0.210145 | 690 | 27 | 83 | 25.555556 | 0.812844 | 0.053623 | 0 | 0 | 0 | 0 | 0.242658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.130435 | 0.217391 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
124a8d68d1bac75ada44bb1b1197bbd8934e6031 | 2,764 | py | Python | ScienceCruiseDataManagement/data_storage_management/management/commands/importfromstaging.py | Swiss-Polar-Institute/science-cruise-data-management | 67721a0f4a1255b8ac43e530ed95a8c324239c7c | [
"MIT"
] | 6 | 2017-10-06T09:18:04.000Z | 2022-02-10T08:54:56.000Z | ScienceCruiseDataManagement/data_storage_management/management/commands/importfromstaging.py | Swiss-Polar-Institute/science-cruise-data-management | 67721a0f4a1255b8ac43e530ed95a8c324239c7c | [
"MIT"
] | 12 | 2020-02-27T09:24:50.000Z | 2021-09-22T17:39:55.000Z | ScienceCruiseDataManagement/data_storage_management/management/commands/importfromstaging.py | Swiss-Polar-Institute/science-cruise-data-management | 67721a0f4a1255b8ac43e530ed95a8c324239c7c | [
"MIT"
] | 1 | 2017-10-16T13:49:33.000Z | 2017-10-16T13:49:33.000Z | from django.core.management.base import BaseCommand, CommandError
from data_storage_management import cifs_utils
from data_storage_management.models import Directory, NASResource
from django.conf import settings
import os
# This file is part of https://github.com/cpina/science-cruise-data-management
#
# This project ... | 43.873016 | 111 | 0.656295 | 336 | 2,764 | 5.184524 | 0.470238 | 0.04822 | 0.027555 | 0.028703 | 0.078071 | 0.050517 | 0.050517 | 0 | 0 | 0 | 0 | 0.006948 | 0.270984 | 2,764 | 62 | 112 | 44.580645 | 0.857568 | 0.204414 | 0 | 0 | 0 | 0 | 0.088249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.324324 | 0 | 0.459459 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
124c89f3528f9ac13a573ea26203a45a332875bf | 232 | py | Python | tests/debug.py | theiviaxx/unhandled | 5bec3037060053d602e208d144e5893232ba869d | [
"MIT"
] | null | null | null | tests/debug.py | theiviaxx/unhandled | 5bec3037060053d602e208d144e5893232ba869d | [
"MIT"
] | null | null | null | tests/debug.py | theiviaxx/unhandled | 5bec3037060053d602e208d144e5893232ba869d | [
"MIT"
] | null | null | null | import unhandled
conf = {
'handlers': [
unhandled.VerboseExceptionHandler,
unhandled.SimpleExceptionHandler
]
}
unhandled.init()
def foo():
f = 1
print(f)
1/0
# with unhandled.pause():
foo()
| 11.6 | 42 | 0.603448 | 22 | 232 | 6.363636 | 0.681818 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.275862 | 232 | 19 | 43 | 12.210526 | 0.815476 | 0.099138 | 0 | 0 | 0 | 0 | 0.038647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 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 |
12525ba88cf103fcd7ef1631cdba11ae921af856 | 3,569 | py | Python | python-packages/order_utils/src/zero_ex/order_utils/signature_utils.py | TheOceanTrade/0x-monorepo | f6abc007ffb249e4bbf85b8a7a77309d43e0a147 | [
"Apache-2.0"
] | null | null | null | python-packages/order_utils/src/zero_ex/order_utils/signature_utils.py | TheOceanTrade/0x-monorepo | f6abc007ffb249e4bbf85b8a7a77309d43e0a147 | [
"Apache-2.0"
] | null | null | null | python-packages/order_utils/src/zero_ex/order_utils/signature_utils.py | TheOceanTrade/0x-monorepo | f6abc007ffb249e4bbf85b8a7a77309d43e0a147 | [
"Apache-2.0"
] | null | null | null | """Signature utilities."""
from typing import Dict, Tuple
import json
from pkg_resources import resource_string
from eth_utils import is_address, to_checksum_address
from web3 import Web3
import web3.exceptions
from web3.utils import datatypes
from zero_ex.dev_utils.type_assertions import assert_is_hex_string
# pr... | 40.101124 | 149 | 0.722331 | 390 | 3,569 | 6.417949 | 0.382051 | 0.04155 | 0.017579 | 0.027167 | 0.061526 | 0.061526 | 0.030364 | 0 | 0 | 0 | 0 | 0.120457 | 0.19053 | 3,569 | 88 | 150 | 40.556818 | 0.745933 | 0.374335 | 0 | 0 | 0 | 0 | 0.206977 | 0.124651 | 0 | 0 | 0.07814 | 0.011364 | 0.078431 | 1 | 0.019608 | false | 0 | 0.156863 | 0 | 0.235294 | 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 |
125a14ca55864b8f7d587a7434d007f3b2a9262a | 176 | py | Python | salinization/prod/salinization/config.py | elbertsoftware/SpringboardAIC | 54278548c94d1a7a61ab977ecb47d96f73f94060 | [
"Unlicense"
] | 3 | 2019-04-06T12:37:55.000Z | 2021-01-28T01:38:45.000Z | salinization/web/utils/config.py | elbertsoftware/SpringboardAIC | 54278548c94d1a7a61ab977ecb47d96f73f94060 | [
"Unlicense"
] | 16 | 2020-03-24T18:22:38.000Z | 2022-01-13T02:24:27.000Z | salinization/prod/salinization/config.py | elbertsoftware/SpringboardAIC | 54278548c94d1a7a61ab977ecb47d96f73f94060 | [
"Unlicense"
] | 1 | 2019-11-30T09:06:46.000Z | 2019-11-30T09:06:46.000Z | import confuse
config = None
def get_config():
global config
if config == None:
config = confuse.Configuration('salinization', __name__)
return config | 13.538462 | 64 | 0.670455 | 19 | 176 | 5.947368 | 0.631579 | 0.176991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 176 | 13 | 65 | 13.538462 | 0.856061 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
125d8c498c44e61af6966e1c6641d24cb6ed3011 | 730 | py | Python | pi_mqtt_gpio/modules/rc522.py | BitStab/pi-mqtt-gpio | 736fd1bda5ba6e03c99269ca7ab62d078baa4aa1 | [
"MIT"
] | null | null | null | pi_mqtt_gpio/modules/rc522.py | BitStab/pi-mqtt-gpio | 736fd1bda5ba6e03c99269ca7ab62d078baa4aa1 | [
"MIT"
] | null | null | null | pi_mqtt_gpio/modules/rc522.py | BitStab/pi-mqtt-gpio | 736fd1bda5ba6e03c99269ca7ab62d078baa4aa1 | [
"MIT"
] | null | null | null | from pi_mqtt_gpio.modules import GenericSensor
import logging
REQUIREMENTS = ("spidev","mfrc522")
CONFIG_SCHEMA = {
"rc522": {"type": "integer", "required": True, "empty": False},
}
_LOG = logging.getLogger("mqtt_gpio")
class Sensor(GenericSensor):
"""
Implementation of RC255 NFC/RFID sensor.
"""
... | 23.548387 | 67 | 0.628767 | 84 | 730 | 5.321429 | 0.595238 | 0.067114 | 0.049217 | 0.067114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.252055 | 730 | 31 | 68 | 23.548387 | 0.78022 | 0.050685 | 0 | 0 | 0 | 0 | 0.124409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
126219c43e3696ae8f6aad969dd7957ee8370f30 | 51,785 | py | Python | paper code/solveCrossTime.py | PKandarp/TICC | 6d380ec45720027080f59857991bb33337058977 | [
"BSD-2-Clause"
] | 393 | 2017-04-21T18:18:16.000Z | 2022-03-30T10:55:34.000Z | paper code/solveCrossTime.py | PKandarp/TICC | 6d380ec45720027080f59857991bb33337058977 | [
"BSD-2-Clause"
] | 70 | 2017-05-01T13:21:00.000Z | 2022-03-24T03:02:26.000Z | paper code/solveCrossTime.py | PKandarp/TICC | 6d380ec45720027080f59857991bb33337058977 | [
"BSD-2-Clause"
] | 150 | 2017-03-04T00:07:16.000Z | 2022-03-23T23:59:03.000Z | from snap import *
from cvxpy import *
import math
import multiprocessing
import numpy
from scipy.sparse import lil_matrix
import sys
import time
import __builtin__
import code
# File format: One edge per line, written as "srcID dstID"
# Commented lines that start with '#' are ignored
# Returns a TGraphVX... | 45.827434 | 117 | 0.548305 | 5,845 | 51,785 | 4.734816 | 0.111548 | 0.012719 | 0.009828 | 0.009395 | 0.426558 | 0.380524 | 0.341752 | 0.311509 | 0.284444 | 0.254237 | 0 | 0.008614 | 0.363348 | 51,785 | 1,129 | 118 | 45.868025 | 0.830811 | 0.214232 | 0 | 0.380299 | 0 | 0 | 0.008378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012469 | null | null | 0.009975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
126bc0059bd69b7a2a1de03f7b752a5512dae04e | 1,165 | py | Python | acnportal/acnsim/tests/test_base.py | gazzayeah/acnportal | a16730139faa94e46cc9e065115b7fa43fe38936 | [
"BSD-3-Clause"
] | null | null | null | acnportal/acnsim/tests/test_base.py | gazzayeah/acnportal | a16730139faa94e46cc9e065115b7fa43fe38936 | [
"BSD-3-Clause"
] | null | null | null | acnportal/acnsim/tests/test_base.py | gazzayeah/acnportal | a16730139faa94e46cc9e065115b7fa43fe38936 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import numpy as np
from .. import ChargingNetwork
from ..base import ErrorAllWrapper
class TestErrorAllWrapper(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.builtin_data = 2
cls.builtin_wrapper = ErrorAllWrapper(cls.builtin_data)
cls.network_data = Chargin... | 29.871795 | 70 | 0.71073 | 133 | 1,165 | 5.879699 | 0.330827 | 0.089514 | 0.092072 | 0.065217 | 0.273657 | 0.196931 | 0.196931 | 0.143223 | 0.143223 | 0 | 0 | 0.003205 | 0.196567 | 1,165 | 38 | 71 | 30.657895 | 0.832265 | 0 | 0 | 0.111111 | 0 | 0 | 0.011159 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.148148 | 0 | 0.407407 | 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 |
126fd78ceb16f92eb8c2a76815aea8cdcef1ed2f | 1,874 | py | Python | PinEstate/adverts/migrations/0001_initial.py | ohouens/Real_Estates_Recommender_System | f642aab07053a90d56867cb7405156ed222d611b | [
"MIT"
] | 1 | 2021-11-19T16:09:05.000Z | 2021-11-19T16:09:05.000Z | PinEstate/adverts/migrations/0001_initial.py | ohouens/Real_Estates_Recommender_System | f642aab07053a90d56867cb7405156ed222d611b | [
"MIT"
] | null | null | null | PinEstate/adverts/migrations/0001_initial.py | ohouens/Real_Estates_Recommender_System | f642aab07053a90d56867cb7405156ed222d611b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-07-30 16:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Estate',
fields=[
... | 39.041667 | 117 | 0.565101 | 184 | 1,874 | 5.646739 | 0.38587 | 0.086622 | 0.103946 | 0.138595 | 0.408085 | 0.356112 | 0.356112 | 0.356112 | 0.356112 | 0.356112 | 0 | 0.027047 | 0.289755 | 1,874 | 47 | 118 | 39.87234 | 0.753569 | 0.024013 | 0 | 0.375 | 1 | 0 | 0.07827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025 | 0.05 | 0 | 0.15 | 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 |
1272a327353c734ea850770c4920bd41c51fcbad | 8,104 | py | Python | benchmark.py | frawi/mptcp-tests | 475605ed9edc6166098d7e3514b82c808d59149e | [
"MIT"
] | 2 | 2018-08-21T09:12:31.000Z | 2019-07-01T09:54:00.000Z | benchmark.py | frawi/mptcp-tests | 475605ed9edc6166098d7e3514b82c808d59149e | [
"MIT"
] | 1 | 2020-01-07T02:56:53.000Z | 2020-01-07T02:56:53.000Z | benchmark.py | frawi/mptcp-tests | 475605ed9edc6166098d7e3514b82c808d59149e | [
"MIT"
] | 3 | 2016-07-27T09:10:24.000Z | 2019-07-01T09:54:02.000Z | #!/usr/bin/env python2
def create_network(paths, bw, loss, latency):
from mininet.net import Mininet
from mininet.link import TCLink
from mininet.node import CPULimitedHost, Controller
from mininet.log import info
net = Mininet(controller=Controller, link=TCLink)
# since we need a switch we a... | 35.388646 | 134 | 0.61266 | 1,166 | 8,104 | 4.187822 | 0.225557 | 0.035019 | 0.066148 | 0.028671 | 0.29531 | 0.236535 | 0.156461 | 0.105263 | 0.052427 | 0.023756 | 0 | 0.020749 | 0.238771 | 8,104 | 228 | 135 | 35.54386 | 0.770789 | 0.019743 | 0 | 0.129944 | 0 | 0 | 0.26455 | 0.028219 | 0 | 0 | 0.000504 | 0 | 0 | 0 | null | null | 0 | 0.073446 | null | null | 0.00565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
89c0e563f5b136502e7d473d5dffbc0a274f8c68 | 451 | py | Python | docs/migrations/0003_documentation_language.py | lnxpy/docket | 49da9b46c0289e30cda98a1d82170bbaed285702 | [
"MIT"
] | 3 | 2020-03-29T09:26:14.000Z | 2020-09-07T09:50:59.000Z | docs/migrations/0003_documentation_language.py | lnxpy/docket | 49da9b46c0289e30cda98a1d82170bbaed285702 | [
"MIT"
] | 4 | 2021-03-30T12:59:01.000Z | 2021-09-22T18:47:51.000Z | docs/migrations/0003_documentation_language.py | lnxpy/docket | 49da9b46c0289e30cda98a1d82170bbaed285702 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-04-04 13:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('docs', '0002_auto_20200404_1326'),
]
operations = [
migrations.AddField(
model_name='documentation',
name='language'... | 23.736842 | 111 | 0.594235 | 49 | 451 | 5.367347 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095522 | 0.257206 | 451 | 18 | 112 | 25.055556 | 0.689552 | 0.099778 | 0 | 0 | 1 | 0 | 0.168317 | 0.056931 | 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 |
89c57c38d2cf6820223df731c013ece987afa6e7 | 1,384 | py | Python | Lib/site-packages/jupyterlab_server/process_app.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/jupyterlab_server/process_app.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/jupyterlab_server/process_app.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | """A lab app that runs a sub process for a demo or a test."""
import sys
from jupyter_server.extension.application import ExtensionApp, ExtensionAppJinjaMixin
from tornado.ioloop import IOLoop
from .handlers import LabConfig, add_handlers
from .process import Process
class ProcessApp(ExtensionAppJinjaMixin, LabConf... | 30.755556 | 85 | 0.668353 | 169 | 1,384 | 5.349112 | 0.491124 | 0.043142 | 0.024336 | 0.026549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000942 | 0.232659 | 1,384 | 44 | 86 | 31.454545 | 0.850282 | 0.197977 | 0 | 0 | 0 | 0 | 0.01959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.192308 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
89ca8d0e3a346011f1afd92871bc13adb7d38119 | 611 | py | Python | matlab_ext/code-miners/projects/prepro/src_2/hided/tmp.py | zaqwes8811/coordinator-tasks | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | null | null | null | matlab_ext/code-miners/projects/prepro/src_2/hided/tmp.py | zaqwes8811/coordinator-tasks | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | 15 | 2015-03-07T12:46:41.000Z | 2015-04-11T09:08:36.000Z | matlab_ext/code-miners/projects/prepro/src_2/tmp.py | zaqwes8811/micro-apps | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | null | null | null | ''' удаляем комментаии '''
def purgeFromComments( fname ):
# читаем в список
linesFromInc = file2ListLines( fname )
# ищем закомментированные строки и пишем незак. в файл
try:
f = io.open( fname, "wt")#, encoding='utf-8' ) # пусть так и остается
try:
for at in linesFromInc:
if not ';' in at:
f.wri... | 27.772727 | 71 | 0.607201 | 82 | 611 | 4.47561 | 0.658537 | 0.054496 | 0.043597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006522 | 0.247136 | 611 | 22 | 72 | 27.772727 | 0.791304 | 0.283142 | 0 | 0.222222 | 0 | 0 | 0.041975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
89cfbf379d8d88d62c4f59cd1fed547ed5d19f17 | 1,813 | py | Python | qarc-gym/qarc-innovation.py | kasimte/QARC | 0aec7ea3331a912e36ea8003a7f92cee148ed913 | [
"BSD-3-Clause"
] | 40 | 2018-12-03T01:49:15.000Z | 2022-03-20T03:57:03.000Z | qarc-gym/qarc-innovation.py | kasimte/QARC | 0aec7ea3331a912e36ea8003a7f92cee148ed913 | [
"BSD-3-Clause"
] | 7 | 2020-03-11T09:36:40.000Z | 2021-12-14T01:53:22.000Z | qarc-gym/qarc-innovation.py | kasimte/QARC | 0aec7ea3331a912e36ea8003a7f92cee148ed913 | [
"BSD-3-Clause"
] | 19 | 2018-11-02T08:07:25.000Z | 2021-09-23T09:57:13.000Z | import gym
import gym_qarc
import numpy as np
from inet import InnovationNetwork
import os
import tensorflow as tf
VIDEO_BIT_RATE = [0.01, 0.3, 0.5, 0.8, 1.1, 1.4]
A_DIM = len(VIDEO_BIT_RATE)
S_INFO = 6
S_LEN = 10 # take how many frames in the past
LR_RATE = 1e-4
RAND_RANGE = 1000
env = gym.make('QARC-v0')
total_ste... | 32.963636 | 81 | 0.624379 | 238 | 1,813 | 4.457983 | 0.420168 | 0.03016 | 0.05278 | 0.047125 | 0.06032 | 0.06032 | 0 | 0 | 0 | 0 | 0 | 0.031298 | 0.277441 | 1,813 | 54 | 82 | 33.574074 | 0.778626 | 0.024821 | 0 | 0 | 0 | 0 | 0.018697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12766 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
89d13d818435defa84499242796d83ff2fd3a8ba | 3,187 | py | Python | tests/unit/test_resultlib.py | boxingbeetle/softfab | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | [
"BSD-3-Clause"
] | 20 | 2019-02-07T17:03:04.000Z | 2020-03-16T20:45:19.000Z | tests/unit/test_resultlib.py | boxingbeetle/softfab | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | [
"BSD-3-Clause"
] | 36 | 2019-02-11T08:57:16.000Z | 2020-09-29T05:32:08.000Z | tests/unit/test_resultlib.py | boxingbeetle/softfab | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
"""Test result storage and processing functionality."""
from pytest import fixture, raises
from softfab.resultlib import ResultStorage
@fixture
def resultStorage(tmp_path):
return ResultStorage(tmp_path)
# Test data that can be used by various test cases:
TASK_NAME = 't... | 32.191919 | 73 | 0.653593 | 397 | 3,187 | 5.156171 | 0.309824 | 0.066439 | 0.048363 | 0.057157 | 0.412311 | 0.309722 | 0.197362 | 0.17489 | 0.17489 | 0.17489 | 0 | 0.010138 | 0.226232 | 3,187 | 98 | 74 | 32.520408 | 0.819951 | 0.182303 | 0 | 0.123077 | 0 | 0 | 0.058457 | 0 | 0 | 0 | 0 | 0.010204 | 0.153846 | 1 | 0.123077 | false | 0 | 0.030769 | 0.030769 | 0.184615 | 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 |
89d281e02c0818cd47a99f79ef9fb133ff1e384a | 18,314 | py | Python | hyperlinker/app/CNYCNCleaner.py | JAckleyLSNYC/GitPython | 93fa78346e85ec6b8d00c5b362d6b498598a0444 | [
"bzip2-1.0.6"
] | null | null | null | hyperlinker/app/CNYCNCleaner.py | JAckleyLSNYC/GitPython | 93fa78346e85ec6b8d00c5b362d6b498598a0444 | [
"bzip2-1.0.6"
] | null | null | null | hyperlinker/app/CNYCNCleaner.py | JAckleyLSNYC/GitPython | 93fa78346e85ec6b8d00c5b362d6b498598a0444 | [
"bzip2-1.0.6"
] | null | null | null | #some of these imports are extraneous and left over from the flask megatutorial
from flask import render_template, flash, redirect, url_for, request, Flask, jsonify, send_from_directory
from app import app, db, DataWizardTools
from app.models import User, Post
from app.forms import PostForm
from werkzeug.urls imp... | 46.482234 | 1,100 | 0.545157 | 1,821 | 18,314 | 5.451949 | 0.27732 | 0.013396 | 0.024879 | 0.026793 | 0.202458 | 0.126914 | 0.075443 | 0.049557 | 0.033038 | 0.009267 | 0 | 0.012258 | 0.318445 | 18,314 | 393 | 1,101 | 46.600509 | 0.783128 | 0.055859 | 0 | 0.129964 | 0 | 0.00361 | 0.33497 | 0.009569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046931 | false | 0 | 0.028881 | 0 | 0.205776 | 0.032491 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89d43de9f2afc92d7cb2eb65ff46f6b297491404 | 27,502 | py | Python | pypeit/pypeit.py | joshwalawender/PypeIt | f952cbb2aaee640b5c585be823884a237b441e8e | [
"BSD-3-Clause"
] | null | null | null | pypeit/pypeit.py | joshwalawender/PypeIt | f952cbb2aaee640b5c585be823884a237b441e8e | [
"BSD-3-Clause"
] | null | null | null | pypeit/pypeit.py | joshwalawender/PypeIt | f952cbb2aaee640b5c585be823884a237b441e8e | [
"BSD-3-Clause"
] | null | null | null | """
Main driver class for PypeIt run
"""
import time
import os
import numpy as np
from collections import OrderedDict
from astropy.io import fits
from pypeit import msgs
from pypeit import calibrations
from pypeit.images import scienceimage
from pypeit import ginga
from pypeit import reduce
from pypeit.core import qa
f... | 41.796353 | 122 | 0.586066 | 3,287 | 27,502 | 4.788865 | 0.16976 | 0.028651 | 0.007687 | 0.007115 | 0.204371 | 0.161362 | 0.142621 | 0.124452 | 0.113716 | 0.098977 | 0 | 0.005803 | 0.317068 | 27,502 | 657 | 123 | 41.85997 | 0.832286 | 0.340339 | 0 | 0.106762 | 0 | 0.003559 | 0.086967 | 0.001303 | 0 | 0 | 0 | 0.015221 | 0 | 1 | 0.064057 | false | 0 | 0.074733 | 0.003559 | 0.185053 | 0.010676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
89daa00be940fde693386633d20eeb2a17fda929 | 1,926 | py | Python | scripts/update_package_mapping.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2022-03-30T22:39:15.000Z | 2022-03-30T22:39:15.000Z | scripts/update_package_mapping.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 54 | 2016-03-25T17:25:01.000Z | 2018-10-22T17:27:54.000Z | scripts/update_package_mapping.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2017-01-20T18:25:46.000Z | 2017-05-12T21:31:47.000Z | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | 32.644068 | 94 | 0.614226 | 204 | 1,926 | 5.504902 | 0.45098 | 0.099733 | 0.149599 | 0.048085 | 0.146037 | 0.09439 | 0.09439 | 0.09439 | 0 | 0 | 0 | 0.001295 | 0.197819 | 1,926 | 59 | 95 | 32.644068 | 0.725566 | 0.188474 | 0 | 0 | 0 | 0 | 0.152118 | 0.035944 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.046512 | false | 0 | 0.186047 | 0 | 0.255814 | 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 |
89eeae6a76d0077200f6a10c279fed0b2a4e4cb9 | 424 | py | Python | setup.py | hashimom/grpcping | fe4b30392ebc55eab805f31d93acf294f7037472 | [
"MIT"
] | null | null | null | setup.py | hashimom/grpcping | fe4b30392ebc55eab805f31d93acf294f7037472 | [
"MIT"
] | null | null | null | setup.py | hashimom/grpcping | fe4b30392ebc55eab805f31d93acf294f7037472 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='grpcping',
version='0.1.0',
packages=find_packages(),
include_package_data=True,
url='https://github.com/hashimom/grpcping',
entry_points={
"console_scripts": [
"grpcping = grpcping.ping:main",
]
},
lic... | 22.315789 | 47 | 0.625 | 45 | 424 | 5.733333 | 0.777778 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.231132 | 424 | 18 | 48 | 23.555556 | 0.782209 | 0 | 0 | 0 | 0 | 0 | 0.308962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89f15d1843fdd32fe701d69b1e5ef9e9d140e500 | 3,237 | py | Python | src/companion-software/PiLED/matrix/matrix.py | LongMetal-Robotics/ShowBot | 0b9dabb17b1203c2f054d16652101a521e903d3d | [
"MIT"
] | null | null | null | src/companion-software/PiLED/matrix/matrix.py | LongMetal-Robotics/ShowBot | 0b9dabb17b1203c2f054d16652101a521e903d3d | [
"MIT"
] | 14 | 2019-10-30T11:38:34.000Z | 2020-01-12T15:15:17.000Z | src/companion-software/PiLED/matrix/matrix.py | LongMetal-Robotics/ShowBot | 0b9dabb17b1203c2f054d16652101a521e903d3d | [
"MIT"
] | null | null | null | from rgbmatrix import RGBMatrix, RGBMatrixOptions
from video import playVideo, loopVideo
from image import displayImage
import logging
import threading
import re
class Matrix:
currentThread = None
threadStop = False
def __init__(self):
print("Matrix initialized")
options = RGBMatrixOption... | 40.974684 | 139 | 0.530429 | 313 | 3,237 | 5.472843 | 0.332268 | 0.029189 | 0.035026 | 0.029189 | 0.20432 | 0.20432 | 0.20432 | 0.107414 | 0.107414 | 0 | 0 | 0.004323 | 0.356812 | 3,237 | 78 | 140 | 41.5 | 0.818444 | 0.04603 | 0 | 0.173913 | 0 | 0 | 0.168397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.289855 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d604099bd1d0cb8bf4aa655452fe249a0399a374 | 3,064 | py | Python | tests/test_optim_loss.py | naokishibuya/simple_transformer | 80ec1da8d14f69c90448b06e2c1c26e95d9ac723 | [
"MIT"
] | 5 | 2022-01-10T01:57:59.000Z | 2022-01-20T12:15:47.000Z | tests/test_optim_loss.py | naokishibuya/simple_transformer | 80ec1da8d14f69c90448b06e2c1c26e95d9ac723 | [
"MIT"
] | null | null | null | tests/test_optim_loss.py | naokishibuya/simple_transformer | 80ec1da8d14f69c90448b06e2c1c26e95d9ac723 | [
"MIT"
] | null | null | null | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from simple_transformer.optim import TranslationLoss
from simple_transformer.data import PAD_IDX, EOS_IDX
def loss_calc(lo... | 28.110092 | 83 | 0.648825 | 453 | 3,064 | 4.128035 | 0.174393 | 0.048128 | 0.029947 | 0.038503 | 0.641711 | 0.632086 | 0.632086 | 0.61123 | 0.61123 | 0.61123 | 0 | 0.032948 | 0.237272 | 3,064 | 109 | 84 | 28.110092 | 0.767223 | 0.049608 | 0 | 0.7 | 0 | 0 | 0.000688 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.0625 | false | 0 | 0.1125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d605fc5aded462bf882bd8a951ee27d0a439d682 | 3,168 | py | Python | presto/migrations/0035_auto_20180327_0753.py | pwgbots/presto | 49622bdfb6c597c3451d9f5c589d9a1797143d4f | [
"MIT"
] | null | null | null | presto/migrations/0035_auto_20180327_0753.py | pwgbots/presto | 49622bdfb6c597c3451d9f5c589d9a1797143d4f | [
"MIT"
] | 8 | 2020-07-28T07:59:09.000Z | 2022-03-11T23:43:01.000Z | presto/migrations/0035_auto_20180327_0753.py | pwgbots/presto | 49622bdfb6c597c3451d9f5c589d9a1797143d4f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-03-27 05:53
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | 39.111111 | 154 | 0.595013 | 304 | 3,168 | 6.006579 | 0.328947 | 0.034502 | 0.043812 | 0.057503 | 0.516977 | 0.502191 | 0.502191 | 0.38609 | 0.375137 | 0.263417 | 0 | 0.021444 | 0.278725 | 3,168 | 80 | 155 | 39.6 | 0.777681 | 0.021465 | 0 | 0.534247 | 1 | 0 | 0.125928 | 0.028092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054795 | 0 | 0.09589 | 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 |
d6099629712fdc57e7b5707df42677d06539554b | 7,288 | py | Python | visualSHARK/models.py | benjaminLedel/visualSHARK_topicShark | 0b2455224e092f2dcba32951e29e70efa8de9cfd | [
"Apache-2.0"
] | null | null | null | visualSHARK/models.py | benjaminLedel/visualSHARK_topicShark | 0b2455224e092f2dcba32951e29e70efa8de9cfd | [
"Apache-2.0"
] | null | null | null | visualSHARK/models.py | benjaminLedel/visualSHARK_topicShark | 0b2455224e092f2dcba32951e29e70efa8de9cfd | [
"Apache-2.0"
] | null | null | null | ##!/usr/bin/env python
# -*- coding: utf-8 -*-
import copy
import json
import uuid
from django.conf import settings
from django.db.models.signals import post_save
from django.db import models, transaction
from django.dispatch import receiver
from django.contrib.auth.models import User
from rest_framework.authtoken.mo... | 38.357895 | 215 | 0.707464 | 919 | 7,288 | 5.447225 | 0.300326 | 0.035158 | 0.044946 | 0.03356 | 0.217938 | 0.15002 | 0.106272 | 0.106272 | 0.106272 | 0.090691 | 0 | 0.005201 | 0.182217 | 7,288 | 189 | 216 | 38.560847 | 0.834732 | 0.171652 | 0 | 0.070866 | 0 | 0 | 0.071057 | 0.007039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086614 | false | 0.007874 | 0.094488 | 0.047244 | 0.598425 | 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 |
d61b53b75d3e7437489b0ab728309539da51833e | 2,539 | py | Python | tests/test_model_serializer_deserialize.py | aswinkp/swampdragon | ef8dedd191b7b3a7a11d49f5190699ed0b00bcb2 | [
"BSD-3-Clause"
] | 366 | 2015-01-03T12:32:40.000Z | 2018-04-19T19:30:44.000Z | tests/test_model_serializer_deserialize.py | aswinkp/swampdragon | ef8dedd191b7b3a7a11d49f5190699ed0b00bcb2 | [
"BSD-3-Clause"
] | 175 | 2015-01-04T17:14:19.000Z | 2017-04-04T09:21:28.000Z | tests/test_model_serializer_deserialize.py | aswinkp/swampdragon | ef8dedd191b7b3a7a11d49f5190699ed0b00bcb2 | [
"BSD-3-Clause"
] | 122 | 2015-01-07T18:07:33.000Z | 2017-10-17T01:41:13.000Z | from swampdragon.serializers.model_serializer import ModelSerializer
from swampdragon.testing.dragon_testcase import DragonTestCase
from .models import TextModel, SDModel
from datetime import datetime
from django.db import models
# to make sure none of the ModelSerializer variables are clobbering the data
MODEL_KEYWO... | 31.345679 | 103 | 0.685703 | 264 | 2,539 | 6.443182 | 0.310606 | 0.053498 | 0.037037 | 0.051146 | 0.162258 | 0.162258 | 0.096414 | 0.096414 | 0.055262 | 0 | 0 | 0.001005 | 0.216227 | 2,539 | 80 | 104 | 31.7375 | 0.853769 | 0.176447 | 0 | 0.173077 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0.0125 | 0.096154 | 1 | 0.096154 | false | 0.019231 | 0.096154 | 0 | 0.403846 | 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 |
d629ae950399143525702265cd334a2e16f32bed | 9,350 | py | Python | movies/entertainment_center.py | MANOJPATRA1991/fresh_tomatoes | 0ef732cc5a9f4ca5b9d6820948621916e2382f86 | [
"MIT"
] | null | null | null | movies/entertainment_center.py | MANOJPATRA1991/fresh_tomatoes | 0ef732cc5a9f4ca5b9d6820948621916e2382f86 | [
"MIT"
] | null | null | null | movies/entertainment_center.py | MANOJPATRA1991/fresh_tomatoes | 0ef732cc5a9f4ca5b9d6820948621916e2382f86 | [
"MIT"
] | null | null | null | """This module opens the fresh_tomatoes.html in a web browser"""
import media
import my_movies
# creating instances of the Movie class
# INTERSTELLAR
interstellar = media.Movie(
"Interstellar",
"In the future, Earth is slowly becoming uninhabitable. Ex"
"Ex-NASA pilot Cooper, along with a team o... | 37.250996 | 77 | 0.608235 | 1,162 | 9,350 | 4.851979 | 0.489673 | 0.058531 | 0.055871 | 0.074495 | 0.164597 | 0.152182 | 0.130897 | 0.116531 | 0.104824 | 0.097552 | 0 | 0.016359 | 0.28738 | 9,350 | 250 | 78 | 37.4 | 0.829806 | 0.01861 | 0 | 0.188841 | 0 | 0 | 0.640229 | 0.031187 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008584 | 0 | 0.008584 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d62f8828aa69c8ffc14b7f23198ebf7774584d0c | 5,301 | py | Python | pyavreceiver/command.py | JPHutchins/pyavreceiver | 2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f | [
"Apache-2.0"
] | 2 | 2020-12-28T06:09:18.000Z | 2021-01-09T22:36:57.000Z | pyavreceiver/command.py | JPHutchins/pyavreceiver | 2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f | [
"Apache-2.0"
] | 1 | 2021-02-03T22:59:49.000Z | 2021-02-03T22:59:49.000Z | pyavreceiver/command.py | JPHutchins/pyavreceiver | 2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f | [
"Apache-2.0"
] | null | null | null | """Define commands."""
from abc import ABC, abstractmethod
from typing import Callable, List, Sequence, Tuple, Union
from pyavreceiver import const
from pyavreceiver.error import AVReceiverInvalidArgumentError
from pyavreceiver.functions import identity
class CommandValues:
"""Possible values for a command."""
... | 27.466321 | 88 | 0.568949 | 620 | 5,301 | 4.63871 | 0.180645 | 0.097357 | 0.038943 | 0.022253 | 0.136648 | 0.107093 | 0.107093 | 0.088317 | 0.071627 | 0.071627 | 0 | 0.00163 | 0.305414 | 5,301 | 192 | 89 | 27.609375 | 0.779468 | 0.139596 | 0 | 0.151515 | 0 | 0.007576 | 0.053543 | 0.005849 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.037879 | 0.022727 | 0.431818 | 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 |
d63199eef8dd518733d32b431bcc76e36acfb7f3 | 399 | py | Python | app/accounts/admin.py | bladewing/bahnplan-next | c51d5c3e42f67a590c8588be2664d7a2192000d1 | [
"MIT"
] | null | null | null | app/accounts/admin.py | bladewing/bahnplan-next | c51d5c3e42f67a590c8588be2664d7a2192000d1 | [
"MIT"
] | 2 | 2020-11-15T19:14:06.000Z | 2021-07-19T10:50:04.000Z | app/accounts/admin.py | bladewing/bahnplan-next | c51d5c3e42f67a590c8588be2664d7a2192000d1 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from accounts.models import Player
class PlayerInline(admin.StackedInline):
model = Player
class UserAdmin(BaseUserAdmin):
inlines = (PlayerInline,)
admin.site.unr... | 21 | 64 | 0.799499 | 50 | 399 | 6.38 | 0.42 | 0.094044 | 0.159875 | 0.131661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117794 | 399 | 18 | 65 | 22.166667 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d6327cf1b145c1b28b9a5bee01e157b5c363bae4 | 268 | py | Python | workalendar/usa/pennsylvania.py | taiyeoguns/workalendar | 35ef15b0fe166ab2e73e419c83ad45738a62ac8d | [
"MIT"
] | 405 | 2017-11-21T14:33:58.000Z | 2021-06-03T01:58:55.000Z | workalendar/usa/pennsylvania.py | taiyeoguns/workalendar | 35ef15b0fe166ab2e73e419c83ad45738a62ac8d | [
"MIT"
] | 236 | 2017-11-20T16:11:50.000Z | 2021-05-28T08:02:53.000Z | workalendar/usa/pennsylvania.py | taiyeoguns/workalendar | 35ef15b0fe166ab2e73e419c83ad45738a62ac8d | [
"MIT"
] | 126 | 2017-12-12T14:04:25.000Z | 2021-05-29T14:27:11.000Z | from ..registry_tools import iso_register
from .core import UnitedStates
@iso_register('US-PA')
class Pennsylvania(UnitedStates):
"""Pennsylvania"""
include_good_friday = True
include_thanksgiving_friday = True
include_election_day_every_year = True
| 24.363636 | 42 | 0.776119 | 32 | 268 | 6.15625 | 0.65625 | 0.111675 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145522 | 268 | 10 | 43 | 26.8 | 0.860262 | 0.044776 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 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 |
d63484bbc0cac172a726805b0be29b8d4566cb13 | 10,805 | py | Python | sdk/python/pulumi_aws_native/pinpointemail/configuration_set.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/pinpointemail/configuration_set.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/pinpointemail/configuration_set.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 47.599119 | 202 | 0.686719 | 1,080 | 10,805 | 6.575926 | 0.141667 | 0.058857 | 0.080259 | 0.043931 | 0.636159 | 0.551394 | 0.437905 | 0.373838 | 0.332723 | 0.252182 | 0 | 0.000117 | 0.210921 | 10,805 | 226 | 203 | 47.809735 | 0.832864 | 0.095326 | 0 | 0.39521 | 1 | 0.017964 | 0.236182 | 0.109399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143713 | false | 0.005988 | 0.041916 | 0.071856 | 0.275449 | 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 |
d63d2a18395d3ad658da5ad0d9d004cc8d62d626 | 42,670 | py | Python | apps/vision/trials.py | dlooto/driver-vision | 676256891971df1d5eee990be54fb31f485d0ae3 | [
"MIT"
] | 2 | 2020-06-16T01:52:47.000Z | 2021-03-24T08:34:23.000Z | apps/vision/trials.py | dlooto/driver-vision | 676256891971df1d5eee990be54fb31f485d0ae3 | [
"MIT"
] | 2 | 2020-02-12T03:09:54.000Z | 2020-06-05T22:47:17.000Z | apps/vision/trials.py | dlooto/driver-vision | 676256891971df1d5eee990be54fb31f485d0ae3 | [
"MIT"
] | null | null | null | # coding=utf-8
# !/usr/bin/env python
#
# Copyright (C) 2014 NianNian TECH Co., Ltd. All rights reserved.
# Created on Oct 22, 2015, by Junn
#
# import Queue
import random
import maths
from config import *
from vision.models import RoadModel
import copy
cached_real_roads = RoadModel.objects.get_all_roads(is_real=Tr... | 33.545597 | 100 | 0.575768 | 5,181 | 42,670 | 4.476163 | 0.141671 | 0.024147 | 0.016817 | 0.007244 | 0.438187 | 0.353585 | 0.265879 | 0.226165 | 0.185891 | 0.164848 | 0 | 0.011812 | 0.317506 | 42,670 | 1,271 | 101 | 33.571991 | 0.784527 | 0.089407 | 0 | 0.341326 | 0 | 0 | 0.011541 | 0 | 0 | 0 | 0 | 0.001574 | 0 | 0 | null | null | 0.005642 | 0.007052 | null | null | 0.005642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d63f982960811787eb55006607645290c7931d7f | 304 | py | Python | tests/endpoints/test_transactions.py | tmnhat2001/yelp-fusion-api | 91e9e2b763efd96f12fd926484e1a32921421f1c | [
"MIT"
] | null | null | null | tests/endpoints/test_transactions.py | tmnhat2001/yelp-fusion-api | 91e9e2b763efd96f12fd926484e1a32921421f1c | [
"MIT"
] | null | null | null | tests/endpoints/test_transactions.py | tmnhat2001/yelp-fusion-api | 91e9e2b763efd96f12fd926484e1a32921421f1c | [
"MIT"
] | null | null | null | from yelpfusion.endpoints.transactions import Transactions
def test_transaction_search(requests_mock):
mock_api = requests_mock.get("https://api.yelp.com/v3/transactions/pickup/search", json={})
Transactions("test-key").search("pickup", location="Markham")
assert mock_api.called is True
| 30.4 | 95 | 0.766447 | 39 | 304 | 5.820513 | 0.666667 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.105263 | 304 | 9 | 96 | 33.777778 | 0.830882 | 0 | 0 | 0 | 0 | 0 | 0.233553 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d641f4fd59b6f779bab3b8c62dae3c41da3d9a07 | 2,612 | py | Python | add_jira_label.py | shnax0210/add-jira-label | 258cebcba4d21dc9ef9f1aa395db5c9da897b654 | [
"MIT"
] | null | null | null | add_jira_label.py | shnax0210/add-jira-label | 258cebcba4d21dc9ef9f1aa395db5c9da897b654 | [
"MIT"
] | null | null | null | add_jira_label.py | shnax0210/add-jira-label | 258cebcba4d21dc9ef9f1aa395db5c9da897b654 | [
"MIT"
] | null | null | null | import requests
class JiraLabelAdder:
def __init__(self, login, password, jira_base_url, batch_size=50):
self.login = login
self.password = password
self.jira_base_url = jira_base_url
self.batch_size = batch_size
def add_label(self, jql, label):
with requests.Session()... | 41.460317 | 124 | 0.647397 | 318 | 2,612 | 4.918239 | 0.27044 | 0.040921 | 0.044757 | 0.067136 | 0.328005 | 0.266624 | 0.183504 | 0.146419 | 0.120205 | 0.061381 | 0 | 0.001547 | 0.257657 | 2,612 | 62 | 125 | 42.129032 | 0.805054 | 0 | 0 | 0.0625 | 0 | 0 | 0.100689 | 0.017611 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.0625 | 0.020833 | 0.041667 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d6511b6b1df1c40b39302492ac2a3b26674156f0 | 3,264 | py | Python | SchoolApp/apps/classes/models.py | Ceres445/Team-10-Python-Project | 8a97642f019548d137dff564f9fdcc8f92761cc8 | [
"MIT"
] | 4 | 2021-06-25T04:17:08.000Z | 2022-02-13T14:48:38.000Z | SchoolApp/apps/classes/models.py | Ceres445/Team-10-Python-Project | 8a97642f019548d137dff564f9fdcc8f92761cc8 | [
"MIT"
] | 20 | 2021-07-05T08:59:41.000Z | 2022-02-07T02:06:33.000Z | SchoolApp/apps/classes/models.py | Ceres445/Team-10-Python-Project | 8a97642f019548d137dff564f9fdcc8f92761cc8 | [
"MIT"
] | 1 | 2021-07-22T07:38:00.000Z | 2021-07-22T07:38:00.000Z | from datetime import timedelta
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.crypto import get_random_string
from invitations.adapters import get_invitations_adapt... | 34 | 97 | 0.649203 | 371 | 3,264 | 5.512129 | 0.318059 | 0.02934 | 0.027384 | 0.041076 | 0.177017 | 0.151589 | 0.099756 | 0.099756 | 0.05868 | 0.05868 | 0 | 0.005304 | 0.249081 | 3,264 | 95 | 98 | 34.357895 | 0.829049 | 0 | 0 | 0.115385 | 0 | 0 | 0.081801 | 0.015012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089744 | false | 0 | 0.128205 | 0.038462 | 0.525641 | 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 |
d6527bab1736d55be4f095aa37a86a1ade44a07c | 648 | py | Python | color_tools.py | SheffieldCao/BoYuanRodeLaneDetection | 178625fd984e643997c33cbabf35ca3295486cf9 | [
"MIT"
] | null | null | null | color_tools.py | SheffieldCao/BoYuanRodeLaneDetection | 178625fd984e643997c33cbabf35ca3295486cf9 | [
"MIT"
] | null | null | null | color_tools.py | SheffieldCao/BoYuanRodeLaneDetection | 178625fd984e643997c33cbabf35ca3295486cf9 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
def select_yellow(image):
'''
Generate mask of specified color(yellow)
Attributes:
Input:
- image: RGB image
'''
hsv = cv2.cvtColor(image, cv2.COLOR_RGB2HSV)
lower = np.array([20,60,60])
upper = np.array([38,174, 250])
mask = cv2.inRange... | 20.903226 | 48 | 0.58642 | 83 | 648 | 4.542169 | 0.39759 | 0.074271 | 0.090186 | 0.100796 | 0.355438 | 0.355438 | 0.355438 | 0.355438 | 0.355438 | 0.355438 | 0 | 0.082609 | 0.290123 | 648 | 30 | 49 | 21.6 | 0.736957 | 0.279321 | 0 | 0.153846 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6560c0ca1f08027ebce600a905a3467fe2870ce | 2,385 | py | Python | app/api/atleta/tests.py | gahhhenrikk/gerenciador-de-equipes | 1418a9ebae6e9b636b4597af9596206aa6cf75c2 | [
"MIT"
] | 1 | 2020-08-13T20:59:33.000Z | 2020-08-13T20:59:33.000Z | app/api/atleta/tests.py | AlbericoD/gerenciador-de-equipes | e6e7d084e5980c4ef05a46e0bfa4b70b13fcca4e | [
"MIT"
] | 19 | 2019-09-03T22:49:45.000Z | 2022-02-26T20:06:12.000Z | app/api/atleta/tests.py | gahhhenrikk/gerenciador-de-equipes | 1418a9ebae6e9b636b4597af9596206aa6cf75c2 | [
"MIT"
] | 2 | 2019-09-03T20:16:34.000Z | 2019-09-09T12:35:14.000Z | from django.urls import reverse
from rest_framework.test import APITestCase, APIClient
from rest_framework.views import status
from .models import Atleta
from .serializers import AtletaSerializer
from django.utils import timezone
class BaseViewTest(APITestCase):
client = APIClient()
@staticmethod
def cria... | 66.25 | 253 | 0.692662 | 297 | 2,385 | 5.488215 | 0.397306 | 0.047239 | 0.046012 | 0.058282 | 0.044172 | 0.044172 | 0.044172 | 0.044172 | 0 | 0 | 0 | 0.045181 | 0.16478 | 2,385 | 36 | 254 | 66.25 | 0.773092 | 0.050734 | 0 | 0 | 0 | 0 | 0.19054 | 0.009817 | 0 | 0 | 0 | 0.027778 | 0.074074 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c387963f0f8c32fbb98e04d64d353ff61e85d756 | 392 | py | Python | tests/test_api.py | marcidy/meetup-api | d2e99b057ebd56554d5f1f08f9fffffabefdbf0f | [
"MIT"
] | 52 | 2016-02-05T19:26:01.000Z | 2021-06-02T22:55:40.000Z | tests/test_api.py | marcidy/meetup-api | d2e99b057ebd56554d5f1f08f9fffffabefdbf0f | [
"MIT"
] | 13 | 2016-02-05T04:06:48.000Z | 2019-12-28T03:16:12.000Z | tests/test_api.py | marcidy/meetup-api | d2e99b057ebd56554d5f1f08f9fffffabefdbf0f | [
"MIT"
] | 25 | 2016-02-05T19:32:01.000Z | 2021-04-08T17:37:55.000Z | import pytest
from meetup.api import Client, MeetupObject, MeetupObjectList
@pytest.fixture
def api_client():
return Client()
def test_get_find_groups(api_client):
find_group_info = api_client.GetFindGroups()
assert isinstance(find_group_info, MeetupObjectList)
assert isinstance(find_group_info[0],... | 24.5 | 61 | 0.788265 | 49 | 392 | 6.020408 | 0.44898 | 0.122034 | 0.176271 | 0.254237 | 0.294915 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.132653 | 392 | 15 | 62 | 26.133333 | 0.861765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c389008c8d1cdd80b8f396abcd53db5dff193ba2 | 2,350 | py | Python | concat_frames.py | dellacortelab/refinement | 14919b790f43d249f86e07b5fab51f5a36bcd869 | [
"MIT"
] | 2 | 2022-01-06T17:48:38.000Z | 2022-01-06T18:12:54.000Z | concat_frames.py | dellacortelab/refinement | 14919b790f43d249f86e07b5fab51f5a36bcd869 | [
"MIT"
] | 2 | 2022-01-11T19:38:37.000Z | 2022-01-11T19:39:25.000Z | concat_frames.py | dellacortelab/refinement | 14919b790f43d249f86e07b5fab51f5a36bcd869 | [
"MIT"
] | null | null | null | import pandas as pd
import argparse
import os
import mdtraj
import numpy as np
parser = argparse.ArgumentParser(description='Script to generate trajectories containing only top scoring frames as scored by RWPlus. These top scoring trajectories can then be averaged with Gromacs to produce an averaged structure.')
pars... | 44.339623 | 234 | 0.689362 | 354 | 2,350 | 4.403955 | 0.355932 | 0.03592 | 0.025657 | 0.033355 | 0.20526 | 0.188582 | 0.103913 | 0.103913 | 0.064144 | 0.064144 | 0 | 0.008138 | 0.163404 | 2,350 | 52 | 235 | 45.192308 | 0.784842 | 0 | 0 | 0.086957 | 1 | 0.021739 | 0.252766 | 0.028936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.108696 | 0 | 0.108696 | 0.130435 | 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 |
c38a1fc2cc6a26c524dd2a2c2283530dbb2fe205 | 517 | py | Python | authentication_service/migrations/0007_auto_20180502_0905.py | hedleyroos/core-authentication-service | 4a59430cddf23c58322230dd1fe70998fcc46736 | [
"BSD-3-Clause"
] | 1 | 2018-03-15T12:49:05.000Z | 2018-03-15T12:49:05.000Z | authentication_service/migrations/0007_auto_20180502_0905.py | hedleyroos/core-authentication-service | 4a59430cddf23c58322230dd1fe70998fcc46736 | [
"BSD-3-Clause"
] | 215 | 2017-12-07T09:11:52.000Z | 2022-03-11T23:19:59.000Z | authentication_service/migrations/0007_auto_20180502_0905.py | hedleyroos/core-authentication-service | 4a59430cddf23c58322230dd1fe70998fcc46736 | [
"BSD-3-Clause"
] | 1 | 2021-08-17T12:05:32.000Z | 2021-08-17T12:05:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-05-02 09:05
from __future__ import unicode_literals
import authentication_service.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('authentication_service', '0006_auto_20180424_0848'),
]
... | 23.5 | 74 | 0.661509 | 55 | 517 | 6 | 0.745455 | 0.190909 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085859 | 0.234043 | 517 | 21 | 75 | 24.619048 | 0.747475 | 0.133462 | 0 | 0 | 1 | 0 | 0.121348 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c39260f90daced5901f858b2182854e74c62c848 | 14,295 | py | Python | go.py | cwbooth5/f5go | 11cfa9fdafeac390cd4d3cb5200668dd93c329b0 | [
"MIT"
] | null | null | null | go.py | cwbooth5/f5go | 11cfa9fdafeac390cd4d3cb5200668dd93c329b0 | [
"MIT"
] | null | null | null | go.py | cwbooth5/f5go | 11cfa9fdafeac390cd4d3cb5200668dd93c329b0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This is the Go Redirector. It uses short mnemonics as redirects to otherwise
long URLs. Few remember how to write in cursive, most people don't remember
common phone numbers, and just about everyone needs a way around bookmarks.
"""
import os
import os.path
import pwd
... | 33.874408 | 130 | 0.606086 | 1,635 | 14,295 | 5.209174 | 0.24526 | 0.032875 | 0.039451 | 0.030527 | 0.170952 | 0.122931 | 0.101796 | 0.086415 | 0.074557 | 0.036163 | 0 | 0.006713 | 0.270584 | 14,295 | 421 | 131 | 33.954869 | 0.810108 | 0.084925 | 0 | 0.182131 | 0 | 0 | 0.095575 | 0.002279 | 0 | 0 | 0 | 0.002375 | 0 | 0 | null | null | 0 | 0.058419 | null | null | 0.003436 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c39412daf85843776efef2982cb71938ec93c620 | 1,773 | py | Python | tinysqlbuilder/builder.py | koichirock/tinysqlbuilder | 91f4d96942ff5ef908fff3efe5cf337cd35ba886 | [
"MIT"
] | null | null | null | tinysqlbuilder/builder.py | koichirock/tinysqlbuilder | 91f4d96942ff5ef908fff3efe5cf337cd35ba886 | [
"MIT"
] | null | null | null | tinysqlbuilder/builder.py | koichirock/tinysqlbuilder | 91f4d96942ff5ef908fff3efe5cf337cd35ba886 | [
"MIT"
] | null | null | null | from typing import Union
from .sql import Condition, Query, full_outer_join, inner_join, left_outer_join, right_outer_join
all = ["Query", "QueryBuilder"]
class QueryBuilder:
"""Query builder."""
def __init__(self, table: str) -> None:
self._query = Query(table)
def select(self, *columns: str)... | 30.568966 | 97 | 0.620981 | 202 | 1,773 | 5.287129 | 0.168317 | 0.101124 | 0.085206 | 0.121723 | 0.537453 | 0.514981 | 0.366105 | 0.264981 | 0.264981 | 0.264981 | 0 | 0 | 0.245347 | 1,773 | 57 | 98 | 31.105263 | 0.798206 | 0.083474 | 0 | 0.371429 | 0 | 0 | 0.063965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.057143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c395ec0889da09a741960e13424ebf3b526f62b9 | 876 | py | Python | bench/dj/hello/views.py | edilio/PyWebPerf | 9813de72831d8b07ec572c6876cffeb32ae1cec7 | [
"Apache-2.0"
] | null | null | null | bench/dj/hello/views.py | edilio/PyWebPerf | 9813de72831d8b07ec572c6876cffeb32ae1cec7 | [
"Apache-2.0"
] | null | null | null | bench/dj/hello/views.py | edilio/PyWebPerf | 9813de72831d8b07ec572c6876cffeb32ae1cec7 | [
"Apache-2.0"
] | null | null | null | import django
from django.http import HttpResponse
import random
def rand_string(min, max):
"""Returns a randomly-generated string, of a random length.
Args:
min (int): Minimum string length to return, inclusive
max (int): Maximum string length to return, inclusive
"""
int_gen = ra... | 23.675676 | 63 | 0.651826 | 114 | 876 | 4.859649 | 0.5 | 0.086643 | 0.050542 | 0.072202 | 0.104693 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019174 | 0.226027 | 876 | 36 | 64 | 24.333333 | 0.797935 | 0.222603 | 0 | 0 | 1 | 0 | 0.073282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 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 |
c39bc266f7c31ab6653c3235d677283300f748c1 | 177 | py | Python | counting.py | comicdipesh99/Python-basics | d2e4a7652391409d59a63c2eee41c93533a90bea | [
"MIT"
] | 3 | 2019-05-09T12:26:56.000Z | 2019-05-16T11:40:19.000Z | counting.py | comicdipesh99/Python-basics | d2e4a7652391409d59a63c2eee41c93533a90bea | [
"MIT"
] | null | null | null | counting.py | comicdipesh99/Python-basics | d2e4a7652391409d59a63c2eee41c93533a90bea | [
"MIT"
] | null | null | null | numbers=[56,87,6,17,45,21]
i=0
var=0
while i<len(numbers):
num=numbers[i]
if num>20 and num<60:
var=var+1
i+=1
else:
i+=1
else:
print var | 14.75 | 26 | 0.525424 | 35 | 177 | 2.657143 | 0.571429 | 0.043011 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165289 | 0.316384 | 177 | 12 | 27 | 14.75 | 0.603306 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
c39d1d3fff623c277eb0357776143d57b5314b9c | 1,952 | py | Python | users/forms.py | Daniel-Alba15/TodoApp | 86c6e2c7043262ba5dba001932b814123787efc4 | [
"MIT"
] | null | null | null | users/forms.py | Daniel-Alba15/TodoApp | 86c6e2c7043262ba5dba001932b814123787efc4 | [
"MIT"
] | null | null | null | users/forms.py | Daniel-Alba15/TodoApp | 86c6e2c7043262ba5dba001932b814123787efc4 | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import PasswordChangeForm
from django import forms
from django.core.exceptions import ValidationError
from .models import MyUser
class UserForm(forms.Form):
email = forms.EmailField(max_length=200)
name = forms.CharField(max_length=100)
lastname = forms.CharField(max_length=... | 32.533333 | 75 | 0.630123 | 206 | 1,952 | 5.834951 | 0.330097 | 0.062396 | 0.049917 | 0.044925 | 0.195507 | 0.071547 | 0.071547 | 0.071547 | 0 | 0 | 0 | 0.018207 | 0.268443 | 1,952 | 59 | 76 | 33.084746 | 0.823529 | 0 | 0 | 0.085106 | 0 | 0 | 0.119365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.489362 | 0.085106 | 0 | 0.404255 | 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 |
c3a04ee0ffdf8a8d042f37ae07639a15b917dcce | 1,166 | py | Python | src/mp_api/routes/_user_settings.py | rkingsbury/api | 14d82c44fe911de19555f6f434d9dfb37bbc0c6f | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/mp_api/routes/_user_settings.py | rkingsbury/api | 14d82c44fe911de19555f6f434d9dfb37bbc0c6f | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/mp_api/routes/_user_settings.py | rkingsbury/api | 14d82c44fe911de19555f6f434d9dfb37bbc0c6f | [
"BSD-3-Clause-LBNL"
] | null | null | null | from emmet.core._user_settings import UserSettingsDoc
from mp_api.core.client import BaseRester
class UserSettingsRester(BaseRester[UserSettingsDoc]): # pragma: no cover
suffix = "_user_settings"
document_model = UserSettingsDoc # type: ignore
primary_key = "consumer_id"
monty_decode = False
us... | 29.897436 | 75 | 0.628645 | 128 | 1,166 | 5.5 | 0.398438 | 0.170455 | 0.068182 | 0.085227 | 0.301136 | 0.227273 | 0.130682 | 0.130682 | 0.130682 | 0.130682 | 0 | 0 | 0.303602 | 1,166 | 38 | 76 | 30.684211 | 0.866995 | 0.346484 | 0 | 0 | 0 | 0 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.857143 | 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 |
c3a19543f3ff6e8bff69b47943b674d4983b431f | 458 | py | Python | tests/jardin_conf_mysql.py | tommyh/jardin | 4e0e1e9b27ff415edcd5d743db8848770176ea41 | [
"MIT"
] | null | null | null | tests/jardin_conf_mysql.py | tommyh/jardin | 4e0e1e9b27ff415edcd5d743db8848770176ea41 | [
"MIT"
] | null | null | null | tests/jardin_conf_mysql.py | tommyh/jardin | 4e0e1e9b27ff415edcd5d743db8848770176ea41 | [
"MIT"
] | null | null | null | import logging
DATABASES = {
'jardin_test': 'mysql://root:@localhost:3306/jardin_test',
# a db with multiple replica URLs. The 1st url refers to an active server. The 2nd url will fail to connect.
'multi_url_test': 'mysql://root:@localhost:3306/jardin_test mysql://root:@localhost:3333/jardin_test',
}
CAC... | 24.105263 | 112 | 0.650655 | 61 | 458 | 4.754098 | 0.655738 | 0.137931 | 0.134483 | 0.227586 | 0.331034 | 0.248276 | 0.248276 | 0 | 0 | 0 | 0 | 0.052055 | 0.203057 | 458 | 18 | 113 | 25.444444 | 0.742466 | 0.231441 | 0 | 0 | 0 | 0 | 0.534286 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3a834cdec94f1bb1c56d888d7e356e57a249b6c | 587 | py | Python | calls/migrations/0007_auto_20180906_2104.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 4 | 2017-01-29T00:38:41.000Z | 2019-09-04T14:30:24.000Z | calls/migrations/0007_auto_20180906_2104.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 74 | 2017-10-02T04:42:54.000Z | 2022-01-13T00:44:16.000Z | calls/migrations/0007_auto_20180906_2104.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 3 | 2017-03-24T23:26:46.000Z | 2019-10-21T01:16:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-09-06 21:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('calls', '0006_auto_20180906_0430'),
]
operations = [
migrations.AlterField... | 27.952381 | 181 | 0.603066 | 65 | 587 | 5.307692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 0.229983 | 587 | 20 | 182 | 29.35 | 0.65708 | 0.117547 | 0 | 0 | 1 | 0 | 0.192233 | 0.04466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3ab448f10baa35dc38240407c5383284d827062 | 593 | py | Python | tests/test_scheduler.py | orkiguazio/mlrun | dea41441f77e47f87edf316e972b042e46bfa22c | [
"Apache-2.0"
] | null | null | null | tests/test_scheduler.py | orkiguazio/mlrun | dea41441f77e47f87edf316e972b042e46bfa22c | [
"Apache-2.0"
] | null | null | null | tests/test_scheduler.py | orkiguazio/mlrun | dea41441f77e47f87edf316e972b042e46bfa22c | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
import pytest
from croniter import CroniterBadCronError
from mlrun import scheduler
class Runtime(list):
def run(self, *args, **kw):
self.append((datetime.now(), args, kw))
def test_scheduler():
sched = scheduler.Scheduler()
rt = Runtime()
sched.add('* * * * *... | 22.807692 | 58 | 0.637437 | 76 | 593 | 4.934211 | 0.592105 | 0.074667 | 0.122667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010776 | 0.217538 | 593 | 25 | 59 | 23.72 | 0.797414 | 0.08769 | 0 | 0.125 | 0 | 0 | 0.048237 | 0 | 0 | 0 | 0 | 0.04 | 0.0625 | 1 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3c3e51bafe0574b44aa8506e06f8dd6aadabda8 | 319 | py | Python | 1/DayOne.py | samhallam18/aoc-2019 | cdefa5db1325069616ccb4ee6a45fb4ffa9b1efa | [
"MIT"
] | 1 | 2019-12-03T13:51:39.000Z | 2019-12-03T13:51:39.000Z | 1/DayOne.py | samhallam18/aoc-2019 | cdefa5db1325069616ccb4ee6a45fb4ffa9b1efa | [
"MIT"
] | null | null | null | 1/DayOne.py | samhallam18/aoc-2019 | cdefa5db1325069616ccb4ee6a45fb4ffa9b1efa | [
"MIT"
] | null | null | null | import math
total = 0
file = open("fuel.txt")
for line in file:
calc = math.floor(int(line) / 3) - 2
temp_total = calc
while calc > 0:
calc = math.floor(int(calc) / 3) - 2
if calc > 0:
temp_total += calc
total += temp_total
print(total)
file.close()
| 17.722222 | 45 | 0.523511 | 45 | 319 | 3.644444 | 0.466667 | 0.164634 | 0.158537 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034146 | 0.357367 | 319 | 17 | 46 | 18.764706 | 0.765854 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 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 |
c3c8a470b8499f5debd942c4a97e273734f7759d | 720 | py | Python | Wisapp/app/migrations/0036_auto_20181104_0033.py | AliVillegas/Wisapp | e7e021461eea0e2da7e20ec2070ca24c432c8468 | [
"Apache-2.0"
] | null | null | null | Wisapp/app/migrations/0036_auto_20181104_0033.py | AliVillegas/Wisapp | e7e021461eea0e2da7e20ec2070ca24c432c8468 | [
"Apache-2.0"
] | null | null | null | Wisapp/app/migrations/0036_auto_20181104_0033.py | AliVillegas/Wisapp | e7e021461eea0e2da7e20ec2070ca24c432c8468 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2018-11-04 06:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0035_userwithprofile_followedcategories'),
]
operations = [
migrations.AddField(
model_name='story',
name='im... | 30 | 135 | 0.631944 | 75 | 720 | 5.946667 | 0.666667 | 0.040359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034862 | 0.243056 | 720 | 23 | 136 | 31.304348 | 0.783486 | 0.0625 | 0 | 0.117647 | 1 | 0 | 0.236256 | 0.096582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
c3cbe6fe676df68dad8eff93d790250b08ddccf1 | 320 | py | Python | data/plot.py | ZiyangTian/tsp | b198a358d95389b34b04b694a6c7883cf21b53f0 | [
"MIT"
] | null | null | null | data/plot.py | ZiyangTian/tsp | b198a358d95389b34b04b694a6c7883cf21b53f0 | [
"MIT"
] | null | null | null | data/plot.py | ZiyangTian/tsp | b198a358d95389b34b04b694a6c7883cf21b53f0 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def plot_tsp(parameters, rank):
rank = np.concatenate([rank, rank[0:1]], axis=0)
plt.figure()
plt.plot(parameters[:, 0], parameters[:, 1], 'ro', color='red')
plt.plot(parameters[:, 0][rank], parameters[:, 1][rank], 'r-', color='blue')
plt.show()
| 26.666667 | 80 | 0.628125 | 47 | 320 | 4.255319 | 0.489362 | 0.08 | 0.17 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026217 | 0.165625 | 320 | 11 | 81 | 29.090909 | 0.722846 | 0 | 0 | 0 | 0 | 0 | 0.034375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3d09973bc2a7fa38f81719d9813f6041ad117e9 | 3,749 | py | Python | tables/table-alter/parse-turk-info.py | yash-srivastava19/sempre | b27c06906da33e345c645ff9470132bf6d1c26dc | [
"Apache-2.0"
] | 812 | 2015-01-08T01:58:39.000Z | 2022-03-24T02:43:05.000Z | tables/table-alter/parse-turk-info.py | yash-srivastava19/sempre | b27c06906da33e345c645ff9470132bf6d1c26dc | [
"Apache-2.0"
] | 181 | 2015-01-26T21:54:04.000Z | 2022-03-09T17:52:04.000Z | tables/table-alter/parse-turk-info.py | yash-srivastava19/sempre | b27c06906da33e345c645ff9470132bf6d1c26dc | [
"Apache-2.0"
] | 314 | 2015-01-14T11:23:08.000Z | 2022-03-07T02:36:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os, shutil, re, argparse, json
from codecs import open
from itertools import izip
from collections import defaultdict
def main():
parser = argparse.ArgumentParser()
parser.add_argument('infile')
parser.add_argument('-p', '--plot', action='store_tru... | 36.754902 | 86 | 0.600427 | 433 | 3,749 | 5.036952 | 0.321016 | 0.083448 | 0.029344 | 0.053187 | 0.184319 | 0.155433 | 0.106832 | 0.05227 | 0.05227 | 0 | 0 | 0.006223 | 0.271272 | 3,749 | 101 | 87 | 37.118812 | 0.792094 | 0.070686 | 0 | 0.08642 | 0 | 0 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | null | null | 0 | 0.061728 | null | null | 0.135802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c3da09723e1ca14242b0cb8d3b4d5b6a4a3440a9 | 2,265 | py | Python | examples/adspygoogle/dfa/v1_20/create_spotlight_activity.py | cherry-wb/googleads-python-lib | 24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04 | [
"Apache-2.0"
] | null | null | null | examples/adspygoogle/dfa/v1_20/create_spotlight_activity.py | cherry-wb/googleads-python-lib | 24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04 | [
"Apache-2.0"
] | null | null | null | examples/adspygoogle/dfa/v1_20/create_spotlight_activity.py | cherry-wb/googleads-python-lib | 24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04 | [
"Apache-2.0"
] | 2 | 2020-04-02T19:00:31.000Z | 2020-08-06T03:28:38.000Z | #!/usr/bin/python
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 33.80597 | 78 | 0.749669 | 307 | 2,265 | 5.289902 | 0.449511 | 0.036946 | 0.046182 | 0.046182 | 0.084975 | 0.084975 | 0.084975 | 0.084975 | 0.084975 | 0.084975 | 0 | 0.006753 | 0.15011 | 2,265 | 66 | 79 | 34.318182 | 0.836883 | 0.33245 | 0 | 0 | 0 | 0 | 0.288557 | 0.131012 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c3da95c66ce3ced808ab03ad6841f813235556de | 2,654 | py | Python | appengine/src/greenday_core/models/event.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 6 | 2018-07-31T16:48:07.000Z | 2020-02-01T03:17:51.000Z | appengine/src/greenday_core/models/event.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 41 | 2018-08-07T16:43:07.000Z | 2020-06-05T18:54:50.000Z | appengine/src/greenday_core/models/event.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 1 | 2018-08-07T16:40:18.000Z | 2018-08-07T16:40:18.000Z | """
Defines the model to hold application events
"""
from django.conf import settings
from django.db import models
from django.forms.models import model_to_dict
from ..constants import EventKind, EventModel, EventCommonCodes, CODES_PER_MODEL
from .user import get_sentinel_user
class Event(models.Model):
"""... | 29.820225 | 101 | 0.62321 | 309 | 2,654 | 5.171521 | 0.300971 | 0.067584 | 0.032541 | 0.045056 | 0.168335 | 0.051314 | 0.051314 | 0.051314 | 0 | 0 | 0 | 0 | 0.274303 | 2,654 | 88 | 102 | 30.159091 | 0.829699 | 0.16202 | 0 | 0.035714 | 0 | 0 | 0.022804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.089286 | 0.035714 | 0.517857 | 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 |
c3e1b0d9fe5cdcd42324c98ba6e5f559c0b114c8 | 2,313 | py | Python | gSed/WordSplitter.py | elfgirl/gSed | 7b72d8cbbcded26f3e4dc4bcef69e5b2d664fba3 | [
"MIT"
] | null | null | null | gSed/WordSplitter.py | elfgirl/gSed | 7b72d8cbbcded26f3e4dc4bcef69e5b2d664fba3 | [
"MIT"
] | null | null | null | gSed/WordSplitter.py | elfgirl/gSed | 7b72d8cbbcded26f3e4dc4bcef69e5b2d664fba3 | [
"MIT"
] | null | null | null | import re
import wordMaps
class WordSplitter:
def __init__(self):
self.word_mapper = wordMaps.WordMaps()
self.word_breaker = re.compile(r"([^\W\d]*)", re.MULTILINE)
self.sentence_breaker = re.compile(r"((?!=|\!|\.|\?).)+.\b", re.MULTILINE)
self.swaps = {}
self.contexts =... | 38.55 | 98 | 0.596195 | 263 | 2,313 | 4.927757 | 0.224335 | 0.076389 | 0.102623 | 0.046296 | 0.256944 | 0.158179 | 0.070988 | 0.070988 | 0.070988 | 0 | 0 | 0.009357 | 0.306961 | 2,313 | 59 | 99 | 39.20339 | 0.799127 | 0.096412 | 0 | 0 | 0 | 0 | 0.019683 | 0.010082 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3ef8769420da5580378ba824b66d7be5ab30af7 | 1,993 | py | Python | 7_snmp/code/discover.py | lluxury/P_U_S_A | 1eb9d1fef74f9ce3618ae950f5223f598510be84 | [
"MIT"
] | null | null | null | 7_snmp/code/discover.py | lluxury/P_U_S_A | 1eb9d1fef74f9ce3618ae950f5223f598510be84 | [
"MIT"
] | null | null | null | 7_snmp/code/discover.py | lluxury/P_U_S_A | 1eb9d1fef74f9ce3618ae950f5223f598510be84 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from processing import Process, Queue, Pool
import time
import subprocess
from IPy import IP
import sys
from snmp import Snmp
q = Queue()
oq = Queue()
#ips = IP("10.0.1.0/24")
ips = ["192.19.101.250", "192.19.101.251", "192.19.101.252","192.19.101.253",
"192.168.1.1"]
num_workers = 10
class Host... | 25.227848 | 79 | 0.510788 | 271 | 1,993 | 3.690037 | 0.376384 | 0.06 | 0.032 | 0.076 | 0.167 | 0.146 | 0.062 | 0 | 0 | 0 | 0 | 0.050116 | 0.349222 | 1,993 | 78 | 80 | 25.551282 | 0.720894 | 0.047667 | 0 | 0.15873 | 0 | 0 | 0.152941 | 0.012299 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015873 | 0.095238 | null | null | 0.126984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3f2358d7009cb1953cda211c084973d690319bb | 304 | py | Python | t_10_brief_tour_of_the_standard_library/t_10_8_dates_and_times/main.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | t_10_brief_tour_of_the_standard_library/t_10_8_dates_and_times/main.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | t_10_brief_tour_of_the_standard_library/t_10_8_dates_and_times/main.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | from datetime import date
now = date.today()
print(now)
print(now.strftime("%m-%d-%y. %d %b %Y is a %A on the %d day of %B"))
past = date(2003, 12, 2)
print(past)
print(past.strftime("%m-%d-%y. %d %b %Y is a %A on the %d day of %B"))
birthday = date(1964, 7, 31)
age = now - birthday
print(age.days)
| 20.266667 | 70 | 0.618421 | 63 | 304 | 2.984127 | 0.444444 | 0.085106 | 0.106383 | 0.117021 | 0.319149 | 0.319149 | 0.319149 | 0.319149 | 0.319149 | 0.319149 | 0 | 0.056225 | 0.180921 | 304 | 14 | 71 | 21.714286 | 0.698795 | 0 | 0 | 0 | 0 | 0.2 | 0.30363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
c3f29322730de405e1645af695cba34d9cbbdc19 | 4,883 | py | Python | intern/bale_mkt.py | zaqwes8811/smart-vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | null | null | null | intern/bale_mkt.py | zaqwes8811/smart-vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | 11 | 2015-01-25T14:22:52.000Z | 2015-09-08T09:59:38.000Z | intern/bale_mkt.py | zaqwes8811/vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | null | null | null | # type-mkt: interfaces
"""
TODO(zaqwes): Move from here
Словарь макетов:
String - абстрактная строка
Int(int) - целое число
! Комментарии расставлять как показано
под именами классов и интерфейсов. Это используется при разборе
макета
Делемма:
Для Python тип не важен, для Java важен, как быть с ... | 38.148438 | 132 | 0.726398 | 572 | 4,883 | 6.164336 | 0.545455 | 0.070051 | 0.076574 | 0.068066 | 0.153999 | 0.149461 | 0.049915 | 0.035167 | 0.035167 | 0 | 0 | 0.001315 | 0.221585 | 4,883 | 127 | 133 | 38.448819 | 0.926335 | 0.175916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 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 |
c3f44cea1351d44eec6208369ee14b9769bf1275 | 667 | py | Python | tests/communities/test_cli.py | lhenze/invenio-communities | 471abcf6b4429306ab39cc0c334cd78911a2dfb2 | [
"MIT"
] | null | null | null | tests/communities/test_cli.py | lhenze/invenio-communities | 471abcf6b4429306ab39cc0c334cd78911a2dfb2 | [
"MIT"
] | null | null | null | tests/communities/test_cli.py | lhenze/invenio-communities | 471abcf6b4429306ab39cc0c334cd78911a2dfb2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2021 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Tests for the CLI."""
from faker import Faker
from invenio_communities.fixtures.... | 29 | 72 | 0.763118 | 96 | 667 | 5.125 | 0.614583 | 0.105691 | 0.089431 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015929 | 0.152924 | 667 | 22 | 73 | 30.318182 | 0.854867 | 0.446777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 |
c3f5130627f69e1afabd65c5e87715853975afeb | 462 | py | Python | microblog/accounts/migrations/0008_auto_20200929_2146.py | ShrayankM/Django-MicroBlog | 54b9b8663b124baec31dfc5a9e8733822853ea7c | [
"MIT"
] | null | null | null | microblog/accounts/migrations/0008_auto_20200929_2146.py | ShrayankM/Django-MicroBlog | 54b9b8663b124baec31dfc5a9e8733822853ea7c | [
"MIT"
] | null | null | null | microblog/accounts/migrations/0008_auto_20200929_2146.py | ShrayankM/Django-MicroBlog | 54b9b8663b124baec31dfc5a9e8733822853ea7c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-29 16:16
from django.db import migrations
import smartfields.fields
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_auto_20200927_0603'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
... | 23.1 | 97 | 0.640693 | 50 | 462 | 5.8 | 0.78 | 0.117241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08908 | 0.246753 | 462 | 19 | 98 | 24.315789 | 0.744253 | 0.097403 | 0 | 0 | 1 | 0 | 0.156627 | 0.055422 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3fec7dd04333d5bdc0f9585daea39094f3198f5 | 1,968 | py | Python | myo.py | hassanyf/myo-emg-python | 9edd7838b2e28edb90e9708d13f8ed12255c5df1 | [
"MIT"
] | 4 | 2018-08-16T10:51:45.000Z | 2020-04-08T14:48:26.000Z | myo.py | hassanyf/myo-emg-python | 9edd7838b2e28edb90e9708d13f8ed12255c5df1 | [
"MIT"
] | 1 | 2020-08-26T09:47:24.000Z | 2020-08-26T09:47:24.000Z | myo.py | hassanyf/myo-emg-python | 9edd7838b2e28edb90e9708d13f8ed12255c5df1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 7 15:21:26 2018
@author: hassanyf and nabeelyousfi
"""
import pandas as pd
import keras
# Training and predicting EMG's from dataset
dataset = pd.read_csv('dataset.csv')
X = dataset.iloc[:, [0,1,2,3,4,5,6,7]].values
y = dataset.iloc[:, 8].values
# Encoding categorical... | 29.818182 | 100 | 0.762195 | 296 | 1,968 | 4.932432 | 0.405405 | 0.030137 | 0.036986 | 0.04726 | 0.119178 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0 | 0.023474 | 0.134146 | 1,968 | 65 | 101 | 30.276923 | 0.833333 | 0.299289 | 0 | 0 | 0 | 0 | 0.061209 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.321429 | 0 | 0.321429 | 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 |
7f0050616338c1e4ddae13757e68d7d76c183fc6 | 1,166 | py | Python | src/main/migrations/0017_auto_20170625_1622.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | 1 | 2018-08-13T09:11:27.000Z | 2018-08-13T09:11:27.000Z | src/main/migrations/0017_auto_20170625_1622.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | null | null | null | src/main/migrations/0017_auto_20170625_1622.py | shashankmohabia/gymkhana-master | a0d399d781797a2f63fb81a1ae287714213d068b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-25 10:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('oauth', '0002_auto_20170612_1258'),
('main', '0016_... | 34.294118 | 182 | 0.637221 | 133 | 1,166 | 5.421053 | 0.518797 | 0.055479 | 0.07767 | 0.122053 | 0.260749 | 0.174757 | 0.133148 | 0.133148 | 0.133148 | 0 | 0 | 0.056117 | 0.235849 | 1,166 | 33 | 183 | 35.333333 | 0.753086 | 0.058319 | 0 | 0.346154 | 1 | 0 | 0.176256 | 0.042009 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f0809a9bcfa5cd9b0681289216e64a9ba371b9e | 481 | py | Python | app/core/tests/utils.py | NhatHox23/nhat-recipe-backend | 9a6bb84f43ceea94671b9a5a6318f7df648d597f | [
"MIT"
] | null | null | null | app/core/tests/utils.py | NhatHox23/nhat-recipe-backend | 9a6bb84f43ceea94671b9a5a6318f7df648d597f | [
"MIT"
] | null | null | null | app/core/tests/utils.py | NhatHox23/nhat-recipe-backend | 9a6bb84f43ceea94671b9a5a6318f7df648d597f | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from recipe.models import Tag
def sample_user(email='test@nhat.com', password='123'):
"""Helper function to help create user"""
user = get_user_model().objects.create_user(email=email, password=password)
return user
def sample_tag(user=None, name="Unit Test... | 28.294118 | 79 | 0.704782 | 71 | 481 | 4.661972 | 0.43662 | 0.090634 | 0.072508 | 0.120846 | 0.1571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.176715 | 481 | 16 | 80 | 30.0625 | 0.828283 | 0.14553 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7f0acca7afc9136e7428764428459ae0caed0256 | 3,593 | py | Python | lib/timetype.py | nicciniamh/timelywall | d259f607ade424ad89bc8b9503a4476e202f18fc | [
"Apache-2.0"
] | 1 | 2021-07-15T20:38:35.000Z | 2021-07-15T20:38:35.000Z | lib/timetype.py | nicciniamh/timelywall | d259f607ade424ad89bc8b9503a4476e202f18fc | [
"Apache-2.0"
] | null | null | null | lib/timetype.py | nicciniamh/timelywall | d259f607ade424ad89bc8b9503a4476e202f18fc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Timely Wallpaper Changer
# Copyright 2017 Nicole Stevens
#
# 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
#
# Unle... | 43.289157 | 118 | 0.674645 | 496 | 3,593 | 4.864919 | 0.419355 | 0.024865 | 0.013262 | 0.023622 | 0.072524 | 0.067551 | 0.019892 | 0 | 0 | 0 | 0 | 0.047602 | 0.222377 | 3,593 | 82 | 119 | 43.817073 | 0.814961 | 0.166156 | 0 | 0.186047 | 0 | 0 | 0.16396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.