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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f59f3c701ab243eb88e1a67234185ab43cc6f80 | 311 | py | Python | polling_stations/settings/constants/directions.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/settings/constants/directions.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/settings/constants/directions.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | import os
# Google maps settings used by directions helper
GOOGLE_API_KEY = os.environ.get('GOOGLE_API_KEY', "")
BASE_GOOGLE_URL = "https://maps.googleapis.com/maps/api/directions/json?units=imperial"
MAPZEN_API_KEY = os.environ.get('MAPZEN_API_KEY', "")
BASE_MAPZEN_URL = "https://valhalla.mapzen.com/route"
| 34.555556 | 87 | 0.77492 | 48 | 311 | 4.770833 | 0.5 | 0.104803 | 0.104803 | 0.131004 | 0.157205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083601 | 311 | 8 | 88 | 38.875 | 0.803509 | 0.14791 | 0 | 0 | 0 | 0 | 0.486692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f5d93e2d28a5de4cf6fa41739430454be4e6b0c | 1,051 | py | Python | musurgia/pdf/positioned.py | alexgorji/musurgia | 81d37afbf1ac70348002a93299db228b5ed4a591 | [
"MIT"
] | null | null | null | musurgia/pdf/positioned.py | alexgorji/musurgia | 81d37afbf1ac70348002a93299db228b5ed4a591 | [
"MIT"
] | 45 | 2020-02-24T19:37:00.000Z | 2021-04-06T16:13:56.000Z | musurgia/pdf/positioned.py | alexgorji/musurgia | 81d37afbf1ac70348002a93299db228b5ed4a591 | [
"MIT"
] | null | null | null | class PositionedObjectError(Exception):
def __init__(self, *args):
super().__init__(*args)
class RelativePositionNotSettableError(PositionedObjectError):
pass
class RelativeXNotSettableError(RelativePositionNotSettableError):
pass
class RelativeYNotSettableError(RelativePositionNotSettableErro... | 22.847826 | 74 | 0.673644 | 116 | 1,051 | 5.724138 | 0.224138 | 0.198795 | 0.11747 | 0.051205 | 0.189759 | 0.093373 | 0.093373 | 0 | 0 | 0 | 0 | 0.002522 | 0.24548 | 1,051 | 45 | 75 | 23.355556 | 0.834805 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.09375 | 0 | 0 | 0.46875 | 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 |
9f644e98975e32d005dc2455333ad920471bd382 | 2,788 | py | Python | theory/func/bardell/print_bardell_integrals_Cython.py | mrosemeier/compmech | f18f6d0471c72b26a3b014d2df41df3463505eae | [
"BSD-3-Clause"
] | 4 | 2019-02-05T06:12:12.000Z | 2022-03-25T14:41:18.000Z | theory/func/bardell/print_bardell_integrals_Cython.py | saullocastro/panels | 5387daab1ec656b065f7a9be820e2c234e53764e | [
"BSD-3-Clause"
] | null | null | null | theory/func/bardell/print_bardell_integrals_Cython.py | saullocastro/panels | 5387daab1ec656b065f7a9be820e2c234e53764e | [
"BSD-3-Clause"
] | 2 | 2019-06-05T07:19:35.000Z | 2020-12-29T00:22:18.000Z | import os
import glob
from ast import literal_eval
import numpy as np
import sympy
from sympy import pi, sin, cos, var
from compmech.conecyl.sympytools import mprint_as_sparse, pow2mult
var('x1t, x1r, x2t, x2r')
var('y1t, y1r, y2t, y2r')
var('xi1, xi2')
subs = {
}
def List(*e):
return list(e)
printstr_... | 36.684211 | 120 | 0.516141 | 333 | 2,788 | 4.219219 | 0.312312 | 0.068327 | 0.062633 | 0.051246 | 0.348043 | 0.259786 | 0.246975 | 0.123843 | 0.123843 | 0.071174 | 0 | 0.028381 | 0.355452 | 2,788 | 75 | 121 | 37.173333 | 0.753478 | 0.02726 | 0 | 0.125 | 0 | 0.015625 | 0.283395 | 0.071218 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.109375 | null | null | 0.34375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f72b619f23428fa2e1f41b08eacc842c59eafd7 | 849 | py | Python | event/eventapp/migrations/0016_contact.py | easywaytostudy123/eventhandler | 07d36c5e83c49016b50f901455a4088b8548da3c | [
"Apache-2.0"
] | null | null | null | event/eventapp/migrations/0016_contact.py | easywaytostudy123/eventhandler | 07d36c5e83c49016b50f901455a4088b8548da3c | [
"Apache-2.0"
] | 8 | 2020-02-12T00:25:27.000Z | 2022-02-10T11:21:11.000Z | event/eventapp/migrations/0016_contact.py | PushpinderSingh21/eventhandler | 4e7aafedf6bb171c9cd3fb6d44d9072e9fa537d6 | [
"Apache-2.0"
] | 1 | 2020-03-04T06:58:05.000Z | 2020-03-04T06:58:05.000Z | # Generated by Django 2.2 on 2019-05-08 07:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('eventapp', '0015_auto_20190508_0556'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | 30.321429 | 114 | 0.545347 | 83 | 849 | 5.445783 | 0.60241 | 0.070796 | 0.079646 | 0.106195 | 0.154867 | 0.154867 | 0.154867 | 0 | 0 | 0 | 0 | 0.067241 | 0.316843 | 849 | 27 | 115 | 31.444444 | 0.712069 | 0.050648 | 0 | 0 | 1 | 0 | 0.123134 | 0.028607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
9f83a5b5f3f6bcbb208a6cfa406458987f4a17ff | 4,107 | py | Python | python/raspberrypi/examples/gesture_password/gesture_password.py | qusvv/DFRobot_PAJ7620U2 | 97ad154309f64691cda5855bafdba1191da82cb2 | [
"MIT"
] | null | null | null | python/raspberrypi/examples/gesture_password/gesture_password.py | qusvv/DFRobot_PAJ7620U2 | 97ad154309f64691cda5855bafdba1191da82cb2 | [
"MIT"
] | null | null | null | python/raspberrypi/examples/gesture_password/gesture_password.py | qusvv/DFRobot_PAJ7620U2 | 97ad154309f64691cda5855bafdba1191da82cb2 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
'''
@file GesturePassword.py
@brief Write algorithms in fast mode to realize gesture password.
@n Input gesture password in 20sm, if correct, enter the system, otherwise, continue to wait for users to input password.
@n The timeout period can be adjusted via macro TIMEOUT, unit(mm).
... | 39.873786 | 146 | 0.711225 | 554 | 4,107 | 5.231047 | 0.391697 | 0.02588 | 0.022084 | 0.026225 | 0.112491 | 0.112491 | 0.097999 | 0.097999 | 0.075224 | 0.048999 | 0 | 0.021838 | 0.197224 | 4,107 | 102 | 147 | 40.264706 | 0.857143 | 0.268322 | 0 | 0.211538 | 0 | 0.019231 | 0.290948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.134615 | 0.057692 | 0 | 0.096154 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f8420883313a7da589eefaccfed9e4bb9f941e9 | 827 | py | Python | Easy/0804 Unique Morse Code Words.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | Easy/0804 Unique Morse Code Words.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | Easy/0804 Unique Morse Code Words.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | # https://leetcode.com/problems/unique-morse-code-words/
class Solution:
def uniqueMorseRepresentations(self, words: List[str]) -> int:
dictx = {"a": ".-", "b": "-...", "c": "-.-.", "d": "-..", "e": ".", "f": "..-.", "g": "--.",
"h": "....", "i": "..", "j": ".---", "k": "-... | 34.458333 | 108 | 0.288996 | 76 | 827 | 3.144737 | 0.736842 | 0.058577 | 0.066946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005629 | 0.355502 | 827 | 23 | 109 | 35.956522 | 0.442777 | 0.065296 | 0 | 0 | 0 | 0 | 0.140078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f871fed01a969ac7bd9a60814903015c265bf06 | 756 | py | Python | timone/errors.py | gstracquadanio/timone | 0733b799e440cfd47902133b5e34241b1796e0c7 | [
"MIT"
] | 3 | 2020-01-08T19:47:04.000Z | 2020-10-20T00:06:17.000Z | timone/errors.py | gstracquadanio/timone | 0733b799e440cfd47902133b5e34241b1796e0c7 | [
"MIT"
] | null | null | null | timone/errors.py | gstracquadanio/timone | 0733b799e440cfd47902133b5e34241b1796e0c7 | [
"MIT"
] | null | null | null | class BadBatchRequestException(Exception):
def __init__(self, org, repo, message=None):
super()
self.org = org
self.repo = repo
self.message = message
class UnknownBatchOperationException(Exception):
def __init__(self, org, repo, operation, message=None):
super()
... | 24.387097 | 64 | 0.626984 | 80 | 756 | 5.725 | 0.2 | 0.091703 | 0.139738 | 0.174672 | 0.491266 | 0.491266 | 0.31441 | 0.31441 | 0.31441 | 0.31441 | 0 | 0 | 0.279101 | 756 | 30 | 65 | 25.2 | 0.840367 | 0 | 0 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0 | 0 | 0.347826 | 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 |
9f8764ea7fec0a992e8eb51a5a0f5d3585473c7b | 599 | py | Python | ex004.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | 1 | 2021-11-23T21:41:25.000Z | 2021-11-23T21:41:25.000Z | ex004.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | null | null | null | ex004.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | null | null | null | # Faça um programa que leia algo e diga
# seu tipo primitivo e diga todas as informações
# possíveis dele do .is
num = input('Digite algo:')
print('='*40)
print('O tipo primitivo do valor {} é {}'.format(num, type(num)))#vamos mandar o pc mostra o tipo primitivo
print('*'*10)
print('({}) é um número? {}'.format(n... | 26.043478 | 107 | 0.641068 | 87 | 599 | 4.413793 | 0.517241 | 0.117188 | 0.125 | 0.067708 | 0.145833 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0.019569 | 0.146912 | 599 | 22 | 108 | 27.227273 | 0.731898 | 0.245409 | 0 | 0.363636 | 0 | 0 | 0.386517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.909091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f8baa7ae1cac11322e536a5e3e8f2d9bdc3adb6 | 414 | py | Python | tests/tests.py | nawafalqari/jsonwriter | 7de06c5e9a826f23665a467b1c9b0db4c7312aee | [
"MIT"
] | 3 | 2021-09-27T18:07:19.000Z | 2022-02-21T16:40:04.000Z | tests/tests.py | nawafalqari/jsonwriter | 7de06c5e9a826f23665a467b1c9b0db4c7312aee | [
"MIT"
] | null | null | null | tests/tests.py | nawafalqari/jsonwriter | 7de06c5e9a826f23665a467b1c9b0db4c7312aee | [
"MIT"
] | null | null | null | import __init__ as jsonWriter
db = jsonWriter.file('tests.json')
print(db.get('name')) # Nawaf
print(db.get('age')) # 10
db.set('age', 30, indent=None) # {"name": "Nawaf", "age": 30}
db.set('age', 30, indent=3)
'''
{
"name": "Nawaf",
"age": 30
}
'''
print(db.hasKey('name')) # True
print(db.... | 19.714286 | 62 | 0.574879 | 59 | 414 | 3.966102 | 0.389831 | 0.179487 | 0.141026 | 0.08547 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032544 | 0.183575 | 414 | 21 | 63 | 19.714286 | 0.659763 | 0.137681 | 0 | 0 | 0 | 0 | 0.144366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f8d29ebebc14b268dd0b3a05c2573dce4197e9f | 390 | py | Python | vinesF/migrations/0005_remove_video_vpath.py | ORC-1/vines | d57d87666e91d3c53aff461029dd5642c973bfa4 | [
"Unlicense",
"MIT"
] | 1 | 2019-02-12T08:39:11.000Z | 2019-02-12T08:39:11.000Z | vinesF/migrations/0005_remove_video_vpath.py | ORC-1/vines | d57d87666e91d3c53aff461029dd5642c973bfa4 | [
"Unlicense",
"MIT"
] | 3 | 2021-06-10T20:20:54.000Z | 2022-03-11T23:21:32.000Z | vinesF/migrations/0005_remove_video_vpath.py | ORC-1/vines | d57d87666e91d3c53aff461029dd5642c973bfa4 | [
"Unlicense",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-20 12:06
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vinesF', '0004_auto_20171215_1547'),
]
operations = [
migrations.RemoveField(
... | 19.5 | 48 | 0.610256 | 43 | 390 | 5.325581 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116197 | 0.271795 | 390 | 19 | 49 | 20.526316 | 0.690141 | 0.174359 | 0 | 0 | 1 | 0 | 0.122257 | 0.0721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
9f8fa0354ffde7113e3c15ea05a626c6aeb16166 | 1,862 | py | Python | tests/server.py | nickanna42/sprite.js | adec8072a29537b10e026757950e0d839b2919dd | [
"MIT"
] | 181 | 2015-01-01T13:31:55.000Z | 2021-06-27T00:20:14.000Z | tests/server.py | nickanna42/sprite.js | adec8072a29537b10e026757950e0d839b2919dd | [
"MIT"
] | 12 | 2015-05-10T15:08:22.000Z | 2020-10-15T23:05:14.000Z | tests/server.py | nickanna42/sprite.js | adec8072a29537b10e026757950e0d839b2919dd | [
"MIT"
] | 30 | 2015-01-29T14:10:42.000Z | 2021-05-03T20:40:59.000Z | import SimpleHTTPServer
import SocketServer
import os
PORT = 8000
class Allow(SimpleHTTPServer.SimpleHTTPRequestHandler):
def send_head(self):
"""Common code for GET and HEAD commands.
This sends the response code and MIME headers.
Return value is either a file obje... | 33.25 | 84 | 0.546187 | 210 | 1,862 | 4.780952 | 0.538095 | 0.039841 | 0.041833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011895 | 0.367884 | 1,862 | 55 | 85 | 33.854545 | 0.841122 | 0.008056 | 0 | 0.054054 | 0 | 0 | 0.089833 | 0.018802 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f94b219707cbb62f3ab51b712556eed0b3462a8 | 2,882 | py | Python | modules/pmg_tk/skins/normal/ColorMap.py | hryknkgw/pymolwin | 4a1335e90497dbcbfa789f1285a7c1ad84a051f8 | [
"CNRI-Python"
] | null | null | null | modules/pmg_tk/skins/normal/ColorMap.py | hryknkgw/pymolwin | 4a1335e90497dbcbfa789f1285a7c1ad84a051f8 | [
"CNRI-Python"
] | null | null | null | modules/pmg_tk/skins/normal/ColorMap.py | hryknkgw/pymolwin | 4a1335e90497dbcbfa789f1285a7c1ad84a051f8 | [
"CNRI-Python"
] | null | null | null |
from Tkinter import *
class ColorMap:
"""
A simple converter from a ColorRamp (a gradient of nColors) to
a ColorMap (a graph of data + visual way pts)
"""
def __init__(self,parent,ramp,width=None,height=None,data=None):
"""
just produces the canvas/image for
the ColorRamp
... | 29.71134 | 97 | 0.537127 | 350 | 2,882 | 4.36 | 0.34 | 0.072084 | 0.042595 | 0.024902 | 0.047182 | 0.047182 | 0.047182 | 0.047182 | 0.047182 | 0.047182 | 0 | 0.029915 | 0.350451 | 2,882 | 96 | 98 | 30.020833 | 0.785256 | 0.155448 | 0 | 0 | 0 | 0 | 0.049719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f9540752a10a2fa7794965e34072b25909c24cd | 248 | py | Python | problemsets/Codeforces/Python/A250.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/Python/A250.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/Python/A250.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | """
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
n=c=0;r=[]
for x in map(int,[*open(0)][1].split()):
if x<0:
if n==2:
r+=[c]
n=1
c=0
else:n+=1
c+=1
r+=[c]
print(len(r))
print(*r) | 13.777778 | 40 | 0.487903 | 46 | 248 | 2.630435 | 0.521739 | 0.214876 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048649 | 0.254032 | 248 | 18 | 41 | 13.777778 | 0.605405 | 0.302419 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f98724e8a7f6719a24aa63d14a543e6d427c84d | 4,819 | py | Python | src/models.py | ChristophAy/covid_case_forecasting | cb022b12eb0551e56a736e4803da4829f35426ae | [
"Apache-2.0"
] | 2 | 2020-03-26T15:29:57.000Z | 2020-06-23T19:49:31.000Z | src/models.py | ChristophAy/covid_case_forecasting | cb022b12eb0551e56a736e4803da4829f35426ae | [
"Apache-2.0"
] | null | null | null | src/models.py | ChristophAy/covid_case_forecasting | cb022b12eb0551e56a736e4803da4829f35426ae | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch as th
class EpidemicModel(th.nn.Module):
"""Score driven epidemic model."""
def __init__(self):
super(EpidemicModel, self).__init__()
self.alpha = th.nn.Parameter(th.tensor(0.0, requires_grad=True))
self.beta = th.nn.Parameter(th.tensor(0.0, requires_gr... | 28.017442 | 86 | 0.537248 | 590 | 4,819 | 4.247458 | 0.179661 | 0.038308 | 0.02514 | 0.029928 | 0.69593 | 0.69593 | 0.69593 | 0.668795 | 0.668795 | 0.668795 | 0 | 0.007849 | 0.339075 | 4,819 | 171 | 87 | 28.181287 | 0.778964 | 0.275783 | 0 | 0.61194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119403 | false | 0 | 0.029851 | 0 | 0.268657 | 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 |
9f9fc50fdf38e5cf2449655958edd390e7ff9c2c | 530 | py | Python | www/url.py | Yaoxin/improved_webpy | eeb47fe5105c8273211b982742fd03351ad4e672 | [
"MIT"
] | null | null | null | www/url.py | Yaoxin/improved_webpy | eeb47fe5105c8273211b982742fd03351ad4e672 | [
"MIT"
] | null | null | null | www/url.py | Yaoxin/improved_webpy | eeb47fe5105c8273211b982742fd03351ad4e672 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from base.log import logger
__author__ = 'cloudy'
urls = []
class HandleMetaClass(type):
'''
meta class for action handle
'''
def __new__(cls, name, base, attrs):
return type.__new__(cls, name, base, attrs)
def __init__(cls, name, base, att... | 23.043478 | 63 | 0.60566 | 67 | 530 | 4.432836 | 0.552239 | 0.107744 | 0.175084 | 0.161616 | 0.127946 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002445 | 0.228302 | 530 | 22 | 64 | 24.090909 | 0.723716 | 0.133962 | 0 | 0 | 0 | 0 | 0.067873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 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 |
9fa148995d19778dfc3be0d876adcea75e1558f5 | 7,199 | py | Python | xsoccer/eventstatistics/management/commands/build_eventstatistic_table_ALL_FILES.py | awyrough/xsoccer | 5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d | [
"MIT"
] | null | null | null | xsoccer/eventstatistics/management/commands/build_eventstatistic_table_ALL_FILES.py | awyrough/xsoccer | 5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d | [
"MIT"
] | null | null | null | xsoccer/eventstatistics/management/commands/build_eventstatistic_table_ALL_FILES.py | awyrough/xsoccer | 5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d | [
"MIT"
] | null | null | null | ### Read from F24 files and construct EventStatistic models
import utils.xmls as xml_utils
import datetime
import os
import time
from teams.models import Team
from games.models import Game
from players.models import Player
from eventstatistics.models import EventStatistic
from qualifiers.models import Qualifier
from ... | 31.436681 | 115 | 0.686901 | 1,063 | 7,199 | 4.342427 | 0.176858 | 0.043328 | 0.057192 | 0.073657 | 0.332756 | 0.291594 | 0.263648 | 0.222487 | 0.131499 | 0.077123 | 0 | 0.00493 | 0.21114 | 7,199 | 229 | 116 | 31.436681 | 0.807889 | 0.03181 | 0 | 0.226744 | 0 | 0.005814 | 0.132296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02907 | 0.063953 | null | null | 0.063953 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9fa176c8e8f8482fd2bf672f936d0ed8139aa216 | 1,559 | py | Python | crypto/daredevil/server/enc.py | NotCl0ne/foobarctf-22 | c947501c982c266c3546269640b920a650077510 | [
"MIT"
] | null | null | null | crypto/daredevil/server/enc.py | NotCl0ne/foobarctf-22 | c947501c982c266c3546269640b920a650077510 | [
"MIT"
] | null | null | null | crypto/daredevil/server/enc.py | NotCl0ne/foobarctf-22 | c947501c982c266c3546269640b920a650077510 | [
"MIT"
] | null | null | null | TOKEN = b'd4r3d3v!l'
def chall():
s = Sign()
while True:
choice = input("> ").rstrip()
if choice == 'P':
print("\nN : {}".format(hex(s.n)))
print("\ne : {}".format(hex(s.e)))
elif choice == 'S':
try:
msg = bytes.fromhex(input('msg to si... | 31.18 | 92 | 0.353432 | 146 | 1,559 | 3.732877 | 0.376712 | 0.066055 | 0.055046 | 0.066055 | 0.293578 | 0.238532 | 0.143119 | 0.143119 | 0 | 0 | 0 | 0.009021 | 0.502245 | 1,559 | 49 | 93 | 31.816327 | 0.693299 | 0.021809 | 0 | 0.3 | 0 | 0 | 0.149146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0 | 0 | 0.025 | 0.325 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fa1a9008e38afda27076329f9f4ed241cc9f73c | 12,495 | py | Python | ipkg/build.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | 3 | 2016-04-20T21:24:59.000Z | 2021-11-17T10:58:49.000Z | ipkg/build.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | null | null | null | ipkg/build.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | null | null | null | import os
import sys
import tempfile
import shutil
import logging
import hashlib
import time
import tarfile
import json
import imp
from socket import gethostname
from .environments import Environment
from .exceptions import IpkgException
from .packages import META_FILE, make_filename
from .files import vopen
from .mix... | 32.286822 | 84 | 0.591277 | 1,421 | 12,495 | 5.049261 | 0.216045 | 0.029268 | 0.008362 | 0.010871 | 0.063275 | 0.012822 | 0 | 0 | 0 | 0 | 0 | 0.010307 | 0.308924 | 12,495 | 386 | 85 | 32.370466 | 0.820614 | 0.04906 | 0 | 0.067511 | 0 | 0 | 0.073352 | 0.002476 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004219 | 0.088608 | 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 |
9fa7d6a86c7c2e292540eb1b9c9d98ea8fe325ef | 7,031 | py | Python | first.py | BillyLiggins/fitting | 6d2e50779281d4f30978e9edd26e75738dd38af5 | [
"MIT"
] | null | null | null | first.py | BillyLiggins/fitting | 6d2e50779281d4f30978e9edd26e75738dd38af5 | [
"MIT"
] | null | null | null | first.py | BillyLiggins/fitting | 6d2e50779281d4f30978e9edd26e75738dd38af5 | [
"MIT"
] | null | null | null | import copy
import echidna
import echidna.output.plot as plot
import echidna.core.spectra as spectra
from echidna.output import store
import matplotlib.pyplot as plt
import argparse
import glob
import numpy as np
import os
def convertor(path):
flist=np.array(glob.glob(path))
for ntuple in flist:
os.sy... | 35.155 | 208 | 0.610013 | 969 | 7,031 | 4.311662 | 0.199174 | 0.013404 | 0.023935 | 0.014361 | 0.605074 | 0.586884 | 0.53303 | 0.53303 | 0.501915 | 0.501915 | 0 | 0.042743 | 0.234675 | 7,031 | 199 | 209 | 35.331658 | 0.733693 | 0 | 0 | 0.528662 | 0 | 0.006369 | 0.167968 | 0.035362 | 0.006369 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063694 | null | null | 0.101911 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9fa9469fd8101af120148a4c68279a391a0eb46d | 1,110 | py | Python | tests/prod_db/test_us_city_index.py | Sheshank-s/litecoder-1 | 63f3a9cf46502319a620745d294412f9616205d1 | [
"MIT"
] | 5 | 2021-02-09T21:30:03.000Z | 2022-01-14T23:30:12.000Z | tests/prod_db/test_us_city_index.py | Sheshank-s/litecoder-1 | 63f3a9cf46502319a620745d294412f9616205d1 | [
"MIT"
] | 1 | 2021-01-14T06:41:04.000Z | 2021-01-14T06:46:42.000Z | tests/prod_db/test_us_city_index.py | Sheshank-s/litecoder-1 | 63f3a9cf46502319a620745d294412f9616205d1 | [
"MIT"
] | 3 | 2020-12-24T04:29:26.000Z | 2021-06-18T14:41:50.000Z |
import pytest
from litecoder.models import WOFLocality
from tests.utils import read_yaml
def yield_cases():
"""Generate cases from YAML file.
"""
cases = read_yaml(__file__, 'test_us_city_index.yml')
for group in cases:
queries = group['query']
xfail = group.get('xfail', False)
... | 20.555556 | 62 | 0.636937 | 154 | 1,110 | 4.422078 | 0.402597 | 0.041116 | 0.061674 | 0.026432 | 0.052863 | 0.052863 | 0.052863 | 0.052863 | 0 | 0 | 0 | 0.005889 | 0.235135 | 1,110 | 54 | 63 | 20.555556 | 0.796231 | 0.087387 | 0 | 0 | 1 | 0 | 0.07992 | 0.021978 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.111111 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fac2fda309e40f2aac38d61f9a37d0725d46441 | 406 | py | Python | HostASkier/host/migrations/0010_alter_host_name.py | RyanMower/HostASkier | 20553965da43979f69fb71a23654809c549bd259 | [
"MIT"
] | null | null | null | HostASkier/host/migrations/0010_alter_host_name.py | RyanMower/HostASkier | 20553965da43979f69fb71a23654809c549bd259 | [
"MIT"
] | 2 | 2021-06-22T01:34:18.000Z | 2021-06-22T01:40:28.000Z | HostASkier/host/migrations/0010_alter_host_name.py | RyanMower/HostASkier | 20553965da43979f69fb71a23654809c549bd259 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-25 20:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('host', '0009_auto_20210625_1949'),
]
operations = [
migrations.AlterField(
model_name='host',
name='name',
... | 21.368421 | 77 | 0.603448 | 46 | 406 | 5.195652 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116041 | 0.278325 | 406 | 18 | 78 | 22.555556 | 0.699659 | 0.110837 | 0 | 0 | 1 | 0 | 0.122563 | 0.064067 | 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 |
9fb1f526cfe26170727f284ab8d70e2728ceec06 | 2,100 | py | Python | app/forms.py | raptor419/AMRTrack-AIIMS | 7e917d208b407cc2fe4e129f8bc60b7cb315e00d | [
"MIT"
] | null | null | null | app/forms.py | raptor419/AMRTrack-AIIMS | 7e917d208b407cc2fe4e129f8bc60b7cb315e00d | [
"MIT"
] | null | null | null | app/forms.py | raptor419/AMRTrack-AIIMS | 7e917d208b407cc2fe4e129f8bc60b7cb315e00d | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from bootstrap_datepicker_plus import DatePickerInput
from app.variables import *
class InputForm2(forms.Form):
ams2 = forms.ChoiceField(widget=forms.RadioSelect, ... | 55.263158 | 114 | 0.682857 | 231 | 2,100 | 6.095238 | 0.341991 | 0.064631 | 0.03196 | 0.042614 | 0.497869 | 0.443892 | 0.40696 | 0.37642 | 0.37642 | 0.37642 | 0 | 0.001796 | 0.204762 | 2,100 | 37 | 115 | 56.756757 | 0.841317 | 0 | 0 | 0.193548 | 0 | 0 | 0.115238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.193548 | 0 | 0.580645 | 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 |
9fb27e8e5443cfd0f74eb34f62c356c1f859f2c5 | 5,145 | py | Python | apps/articles/views.py | luoyangC/luoyangc | a1e0d84e463d661fbd5e0333a4770d28048172ba | [
"MIT"
] | 1 | 2019-07-07T10:40:27.000Z | 2019-07-07T10:40:27.000Z | apps/articles/views.py | luoyangC/luoyangc_django | a1e0d84e463d661fbd5e0333a4770d28048172ba | [
"MIT"
] | null | null | null | apps/articles/views.py | luoyangC/luoyangc_django | a1e0d84e463d661fbd5e0333a4770d28048172ba | [
"MIT"
] | null | null | null | from datetime import datetime
from rest_framework import mixins, viewsets, permissions
from rest_framework.authentication import SessionAuthentication
from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response
from rest_framework.filters import OrderingFilter
from re... | 34.763514 | 120 | 0.696793 | 495 | 5,145 | 7.10101 | 0.30303 | 0.029587 | 0.033855 | 0.02845 | 0.269132 | 0.204267 | 0.204267 | 0.158179 | 0.158179 | 0.158179 | 0 | 0.001237 | 0.214189 | 5,145 | 147 | 121 | 35 | 0.868167 | 0.051506 | 0 | 0.290698 | 0 | 0 | 0.026333 | 0.005396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.162791 | 0 | 0.662791 | 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 |
9fb7c590d1589495d70317e6b3e3e00d5a40a67d | 2,764 | py | Python | uno.py | akrisrn/u-no | cb4fe3cb1868f0ed9bd4fe72f3dec6d01d29fa19 | [
"MIT"
] | null | null | null | uno.py | akrisrn/u-no | cb4fe3cb1868f0ed9bd4fe72f3dec6d01d29fa19 | [
"MIT"
] | null | null | null | uno.py | akrisrn/u-no | cb4fe3cb1868f0ed9bd4fe72f3dec6d01d29fa19 | [
"MIT"
] | null | null | null | from flask import Flask, render_template
from src.const import index_url_key, index_title_key, index_id_key, index_tags_key, index_date_key, index_notags_key, \
index_highlight_key, index_fixed_key, index_top_key, index_path_key, index_bereferenced_key, articles_url_name, \
attachments_url_name, tags_url_name,... | 45.311475 | 119 | 0.81259 | 447 | 2,764 | 4.599553 | 0.194631 | 0.108949 | 0.149805 | 0.227626 | 0.339008 | 0.269455 | 0.048152 | 0 | 0 | 0 | 0 | 0.001549 | 0.065847 | 2,764 | 60 | 120 | 46.066667 | 0.794733 | 0.024602 | 0 | 0 | 0 | 0 | 0.162202 | 0.016741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.108696 | 0.021739 | 0.152174 | 0.043478 | 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 |
9fbdad3425b9adf95f5fab9ab72b45aa9076397f | 2,082 | py | Python | doc/source/conf.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | doc/source/conf.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | doc/source/conf.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | # python-manilaclient documentation build configuration file
import os
import sys
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here... | 33.047619 | 79 | 0.711816 | 290 | 2,082 | 5.051724 | 0.548276 | 0.024573 | 0.035495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003935 | 0.145533 | 2,082 | 62 | 80 | 33.580645 | 0.819562 | 0.67243 | 0 | 0 | 0 | 0 | 0.247706 | 0.033639 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0 | 0.105263 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fc0b3c064dbf400df93ec01472bb84abffffcff | 504 | py | Python | python/ex0011.py | dife97/knowledge-base | 1c75569d57c4ab240432a4a391024997d64bab9b | [
"MIT"
] | null | null | null | python/ex0011.py | dife97/knowledge-base | 1c75569d57c4ab240432a4a391024997d64bab9b | [
"MIT"
] | null | null | null | python/ex0011.py | dife97/knowledge-base | 1c75569d57c4ab240432a4a391024997d64bab9b | [
"MIT"
] | null | null | null | # Write a program that tells you how many paint buckets you need to paint a wall
import math
print("This program tells you how many pain buckts you need to paint a wall")
width = float(
input("\nFirst, I need to know the size of this wall.\nType the width (m): "))
height = float(input("\nNow, type the height (m)... | 42 | 170 | 0.708333 | 89 | 504 | 4.011236 | 0.52809 | 0.05042 | 0.061625 | 0.084034 | 0.106443 | 0.106443 | 0 | 0 | 0 | 0 | 0 | 0.012255 | 0.190476 | 504 | 11 | 171 | 45.818182 | 0.862745 | 0.154762 | 0 | 0 | 0 | 0.142857 | 0.768868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 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 |
9fc211d52a0f09d004458439a228536f211165cc | 4,273 | py | Python | tests/integration_tests/reference_frame_test.py | moeyensj/adam_home | 7dbe661ed9a04e9621ec4f5c9a0a9682cc37c227 | [
"MIT"
] | 9 | 2019-05-24T06:01:18.000Z | 2020-12-12T22:05:38.000Z | tests/integration_tests/reference_frame_test.py | moeyensj/adam_home | 7dbe661ed9a04e9621ec4f5c9a0a9682cc37c227 | [
"MIT"
] | 90 | 2018-11-09T22:33:17.000Z | 2021-04-28T05:04:09.000Z | tests/integration_tests/reference_frame_test.py | moeyensj/adam_home | 7dbe661ed9a04e9621ec4f5c9a0a9682cc37c227 | [
"MIT"
] | 7 | 2019-03-22T04:41:31.000Z | 2021-03-31T23:29:33.000Z | from adam import Batch
from adam import PropagationParams
from adam import OpmParams
from adam import BatchRunManager
import numpy as np
import numpy.testing as npt
class TestReferenceFrame:
"""Integration test of using different reference frames.
"""
# This test and the following test are exactly the ... | 42.306931 | 99 | 0.635385 | 510 | 4,273 | 5.117647 | 0.341176 | 0.045977 | 0.036782 | 0.027586 | 0.619157 | 0.619157 | 0.619157 | 0.596935 | 0.596935 | 0.596935 | 0 | 0.194813 | 0.260005 | 4,273 | 100 | 100 | 42.73 | 0.630614 | 0.161245 | 0 | 0.742857 | 0 | 0 | 0.111485 | 0.026891 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.028571 | false | 0 | 0.085714 | 0 | 0.128571 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fc914f41699f8a8a676c19a5635e5b2147cc0a8 | 421 | py | Python | monitor/main.py | jh247247/Firefly | 903ddd19b1f4697a23d0518b148aa447ab83faab | [
"MIT"
] | null | null | null | monitor/main.py | jh247247/Firefly | 903ddd19b1f4697a23d0518b148aa447ab83faab | [
"MIT"
] | null | null | null | monitor/main.py | jh247247/Firefly | 903ddd19b1f4697a23d0518b148aa447ab83faab | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from flask import Flask
import flask_restful as fr
import core, mqtt
import threading
app = Flask(__name__)
api = fr.Api(app)
def flask_run():
app.run(debug=True,
host='0.0.0.0')
mqtt_thread = threading.Thread(target=mqtt.run, args = ())
if __name__ == '__main__':
core.api_set... | 20.047619 | 58 | 0.67696 | 65 | 421 | 4.107692 | 0.569231 | 0.022472 | 0.11985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014793 | 0.19715 | 421 | 20 | 59 | 21.05 | 0.775148 | 0.152019 | 0 | 0 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fcafc08a64786cea2fc342c4da23c176fb15d5a | 1,450 | py | Python | Flow-Control/ip_segment.py | carlosmertens/My-Python_Library | 03c5c0986a54001a38775e2ab8dc0cbcb20b152a | [
"MIT"
] | null | null | null | Flow-Control/ip_segment.py | carlosmertens/My-Python_Library | 03c5c0986a54001a38775e2ab8dc0cbcb20b152a | [
"MIT"
] | null | null | null | Flow-Control/ip_segment.py | carlosmertens/My-Python_Library | 03c5c0986a54001a38775e2ab8dc0cbcb20b152a | [
"MIT"
] | null | null | null | """ Challenge - Program Flow
# TODO: Create a program that takes an IP address entered at the keyboard and prints out the number of segments it contains, and the length of each segment.
An IP address consists of 4 numbers, separated from each other with a full stop.
But your program should just count however many ar... | 32.954545 | 203 | 0.695862 | 239 | 1,450 | 4.205021 | 0.531381 | 0.035821 | 0.032836 | 0.037811 | 0.171144 | 0.127363 | 0.127363 | 0.127363 | 0.127363 | 0.127363 | 0 | 0.084881 | 0.22 | 1,450 | 43 | 204 | 33.72093 | 0.803714 | 0.703448 | 0 | 0.142857 | 0 | 0 | 0.322275 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fcdde6e007d8fbf4d451b6ba31a51d3a8850464 | 1,398 | py | Python | tests/test_app.py | mxlysb/flask_simplelogin | d695e77d7f4918712686c0c1f0880222862bdfcf | [
"MIT"
] | null | null | null | tests/test_app.py | mxlysb/flask_simplelogin | d695e77d7f4918712686c0c1f0880222862bdfcf | [
"MIT"
] | null | null | null | tests/test_app.py | mxlysb/flask_simplelogin | d695e77d7f4918712686c0c1f0880222862bdfcf | [
"MIT"
] | 1 | 2022-02-02T05:29:55.000Z | 2022-02-02T05:29:55.000Z | from flask import url_for, session
# from flask_simplelogin import is_logged_in
def test_get_login(client):
response = client.get(url_for('simplelogin.login'))
assert response.status_code == 200
assert '<form action="/login/' in str(response.data)
def test_post_requires_token(client):
response = cli... | 27.96 | 75 | 0.613734 | 163 | 1,398 | 5.07362 | 0.257669 | 0.087062 | 0.082225 | 0.106409 | 0.683192 | 0.683192 | 0.643289 | 0.575574 | 0.575574 | 0.575574 | 0 | 0.034615 | 0.25608 | 1,398 | 49 | 76 | 28.530612 | 0.760577 | 0.32475 | 0 | 0.28 | 0 | 0 | 0.24838 | 0 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.12 | false | 0.08 | 0.04 | 0 | 0.16 | 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 |
9fce745bb6f96b425b797d626b99c180d0a04d6b | 1,233 | py | Python | vembrane/common.py | tedil/varfilter | 6b67fa888d6e092c614d660c351ee97851f2e871 | [
"MIT"
] | 17 | 2020-08-11T08:27:48.000Z | 2022-02-05T14:00:24.000Z | vembrane/common.py | tedil/varfilter | 6b67fa888d6e092c614d660c351ee97851f2e871 | [
"MIT"
] | 20 | 2020-07-09T16:26:32.000Z | 2022-03-21T14:20:12.000Z | vembrane/common.py | vembrane/vembrane | f09f1bd300a2b9f69810bc206c65c08da03d9044 | [
"MIT"
] | 2 | 2020-07-09T15:01:25.000Z | 2020-07-20T11:23:26.000Z | import ast
from typing import List
from vembrane.errors import InvalidExpression
from pysam.libcbcf import VariantHeader
def check_expression(
expression: str,
) -> str:
if ".__" in expression:
raise InvalidExpression(expression, "The expression must not contain '.__'")
try:
tree = ast.p... | 26.234043 | 85 | 0.578264 | 128 | 1,233 | 5.484375 | 0.5 | 0.062678 | 0.091168 | 0.099715 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001185 | 0.315491 | 1,233 | 46 | 86 | 26.804348 | 0.830569 | 0.040552 | 0 | 0.054054 | 0 | 0 | 0.094835 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.081081 | false | 0 | 0.108108 | 0.027027 | 0.324324 | 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 |
4c7e8663c85b49cecc1231afe1b46a3ed9da45f5 | 2,796 | py | Python | feeds/views.py | fiesensee/CompREST | f4de90635363a22873492bb13ac950f09419baf3 | [
"0BSD"
] | null | null | null | feeds/views.py | fiesensee/CompREST | f4de90635363a22873492bb13ac950f09419baf3 | [
"0BSD"
] | 2 | 2020-06-05T17:38:17.000Z | 2021-03-19T21:54:43.000Z | feeds/views.py | fiesensee/CompREST | f4de90635363a22873492bb13ac950f09419baf3 | [
"0BSD"
] | null | null | null | from django.shortcuts import render, HttpResponseRedirect
from django.contrib.auth.models import User
from django.http import HttpResponse
from django.views.generic import View
from .models import FeedSource, Label, FeedSourceLabel, RefreshService
from rest_framework import viewsets, permissions, generics, mixins
from ... | 34.95 | 112 | 0.734621 | 286 | 2,796 | 7.104895 | 0.328671 | 0.043307 | 0.044291 | 0.056102 | 0.20128 | 0.125492 | 0.125492 | 0.125492 | 0.125492 | 0.104331 | 0 | 0.003967 | 0.188484 | 2,796 | 79 | 113 | 35.392405 | 0.891582 | 0 | 0 | 0.233333 | 0 | 0 | 0.011445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c846239dbc5d2452a639492756aaa7f3994acff | 109,923 | py | Python | scripts/venv/lib/python2.7/site-packages/cogent/core/alignment.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | 3 | 2015-11-20T08:44:42.000Z | 2016-12-14T01:40:03.000Z | scripts/venv/lib/python2.7/site-packages/cogent/core/alignment.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | 1 | 2017-09-04T14:04:32.000Z | 2020-05-26T19:04:00.000Z | scripts/venv/lib/python2.7/site-packages/cogent/core/alignment.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Code for handling multiple sequence alignments. In particular:
- SequenceCollection handles both aligned and unaligned sequences.
- Alignment and its subclasses handle multiple sequence alignments, storing
the raw sequences and a gap map. Useful for very long alignments, e.g.
... | 41.40226 | 96 | 0.612065 | 13,737 | 109,923 | 4.790566 | 0.093325 | 0.009847 | 0.005516 | 0.004331 | 0.355838 | 0.311087 | 0.271244 | 0.242311 | 0.225216 | 0.213333 | 0 | 0.002732 | 0.314147 | 109,923 | 2,654 | 97 | 41.41786 | 0.870157 | 0.041001 | 0 | 0.323574 | 0 | 0 | 0.029038 | 0.000354 | 0 | 0 | 0 | 0 | 0.004505 | 0 | null | null | 0.003754 | 0.012763 | 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 |
4c84b8e01ee4583b0ac0c4264d8a06038d572959 | 696 | py | Python | home/views.py | Niviral/Django | 9a58449e05202ea6c30bb44e2d262841dba5e24a | [
"MIT"
] | null | null | null | home/views.py | Niviral/Django | 9a58449e05202ea6c30bb44e2d262841dba5e24a | [
"MIT"
] | 1 | 2020-11-16T10:19:44.000Z | 2020-11-16T10:19:44.000Z | home/views.py | Niviral/Django | 9a58449e05202ea6c30bb44e2d262841dba5e24a | [
"MIT"
] | null | null | null | from django.http import request
from django.shortcuts import redirect, render
from django.contrib.auth.forms import UserCreationForm
# Create your views here.
def home(request):
return render(request, 'home/welcome.html')
def register(request):
if request.user.is_authenticated:
return redirect('', u... | 27.84 | 71 | 0.673851 | 79 | 696 | 5.911392 | 0.518987 | 0.06424 | 0.08137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215517 | 696 | 25 | 72 | 27.84 | 0.855311 | 0.116379 | 0 | 0 | 0 | 0 | 0.092985 | 0.042414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4c84feb23fc28f11b61943ef9b486d21f95bed6d | 498 | py | Python | problems/A/NearlyLuckyNumber.py | deveshbajpai19/CodeForces | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | 55 | 2016-06-19T05:45:15.000Z | 2022-03-31T15:18:53.000Z | problems/A/NearlyLuckyNumber.py | farhadcu/CodeForces-2 | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | null | null | null | problems/A/NearlyLuckyNumber.py | farhadcu/CodeForces-2 | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | 25 | 2016-07-29T13:03:15.000Z | 2021-09-17T01:45:45.000Z | __author__ = 'Devesh Bajpai'
'''
http://codeforces.com/problemset/problem/110/A
Solution: Take number input as String. Build a digit-frequency map of it. Count the frequency
pf 4 and 7. If its either 4 or 7, print YES. Else, print NO.
'''
from collections import Counter
if __name__ == "__main__":
#take number as ... | 23.714286 | 93 | 0.658635 | 74 | 498 | 4.256757 | 0.608108 | 0.063492 | 0.057143 | 0.08254 | 0.126984 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0.028351 | 0.220884 | 498 | 20 | 94 | 24.9 | 0.783505 | 0.042169 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c85518273dbf1a4d68d52ac141df1a464310f9c | 1,071 | py | Python | members/urls.py | Moha369/vector | 8b3a407c2fe436a101f906559a083e36f243a603 | [
"MIT"
] | null | null | null | members/urls.py | Moha369/vector | 8b3a407c2fe436a101f906559a083e36f243a603 | [
"MIT"
] | null | null | null | members/urls.py | Moha369/vector | 8b3a407c2fe436a101f906559a083e36f243a603 | [
"MIT"
] | null | null | null |
from django.contrib import admin
from django.urls import path
from . import views
from django.conf.urls.static import static
from django.conf import settings
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth import views as auth_views
urlpatterns = [
path('', views.h... | 44.625 | 107 | 0.727358 | 140 | 1,071 | 5.435714 | 0.292857 | 0.078844 | 0.067017 | 0.047306 | 0.065703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12605 | 1,071 | 23 | 108 | 46.565217 | 0.813034 | 0 | 0 | 0 | 0 | 0 | 0.163551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 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 |
4c864943d8d2596e802adeffad53e41722a064ca | 3,722 | py | Python | src/quick_run.py | cocobear/alfred-quick-run | 83bfbb13cfe45f13e76eef993edb8598b30d2557 | [
"MIT"
] | 7 | 2019-11-22T12:00:03.000Z | 2021-01-28T10:16:16.000Z | src/quick_run.py | cocobear/alfred-quick-run | 83bfbb13cfe45f13e76eef993edb8598b30d2557 | [
"MIT"
] | null | null | null | src/quick_run.py | cocobear/alfred-quick-run | 83bfbb13cfe45f13e76eef993edb8598b30d2557 | [
"MIT"
] | 1 | 2020-10-01T21:03:55.000Z | 2020-10-01T21:03:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
from workflow.notify import notify
from workflow import Workflow
GITHUB_SLUG = 'cocobear/alfred-quick-run'
def main(wf):
import subprocess
import yaml
import os
from subprocess import Popen, PIPE, STDOUT
... | 31.277311 | 96 | 0.523643 | 447 | 3,722 | 4.270694 | 0.299776 | 0.029335 | 0.028287 | 0.044526 | 0.302252 | 0.298586 | 0.298586 | 0.239916 | 0.222106 | 0.222106 | 0 | 0.008016 | 0.329661 | 3,722 | 118 | 97 | 31.542373 | 0.757114 | 0.028479 | 0 | 0.268041 | 0 | 0 | 0.108804 | 0.006921 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092784 | null | null | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c8e2bcf4c077e4368baad25912bebb805a12227 | 785 | py | Python | Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithSlidesInPresentation/Hyperlinks.py | Aspose/Aspose.Slides-for-Java | c6afa392a708eb23941cad76e96d2fe65531c211 | [
"MIT"
] | 1 | 2021-08-12T01:17:00.000Z | 2021-08-12T01:17:00.000Z | Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithSlidesInPresentation/Hyperlinks.py | Aspose/Aspose.Slides-for-Java | c6afa392a708eb23941cad76e96d2fe65531c211 | [
"MIT"
] | null | null | null | Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithSlidesInPresentation/Hyperlinks.py | Aspose/Aspose.Slides-for-Java | c6afa392a708eb23941cad76e96d2fe65531c211 | [
"MIT"
] | 1 | 2021-04-08T13:55:07.000Z | 2021-04-08T13:55:07.000Z | from asposeslides import Settings
from com.aspose.slides import Presentation
from com.aspose.slides import SaveFormat
class Hyperlinks:
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithSlidesInPresentation/Hyperlinks/'
# Instantiate Presentation class that represe... | 34.130435 | 87 | 0.68535 | 74 | 785 | 7.081081 | 0.527027 | 0.026718 | 0.049618 | 0.072519 | 0.09542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248408 | 785 | 23 | 88 | 34.130435 | 0.888136 | 0.170701 | 0 | 0 | 0 | 0 | 0.21885 | 0.06869 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c937d6ed6ad09efc0f00217f97bedff0c6816e5 | 773 | py | Python | tools/resolve_env.py | rpatil524/COPO | cc54a6cfac61584cc97a17073d3837a5820a8b95 | [
"MIT"
] | 16 | 2017-02-20T16:20:02.000Z | 2021-08-30T04:35:30.000Z | tools/resolve_env.py | rpatil524/COPO | cc54a6cfac61584cc97a17073d3837a5820a8b95 | [
"MIT"
] | 29 | 2017-12-08T11:49:44.000Z | 2020-10-15T07:19:34.000Z | tools/resolve_env.py | rpatil524/COPO | cc54a6cfac61584cc97a17073d3837a5820a8b95 | [
"MIT"
] | 4 | 2015-10-22T19:06:37.000Z | 2020-08-13T20:00:52.000Z | __author__ = 'etuka'
import os
# function resolves environment variables: both direct variable and file assignments
# this provides a means of accommodating 'secrets'
# this module is inspired by the current direction recommended in:
# https://docs.docker.com/engine/swarm/secrets/#build-support-for-docker-secrets-in... | 29.730769 | 97 | 0.653299 | 105 | 773 | 4.647619 | 0.647619 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001715 | 0.245796 | 773 | 25 | 98 | 30.92 | 0.835334 | 0.412678 | 0 | 0 | 0 | 0 | 0.029083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4c942ac11ca199e1a4af54d86b7d005c1c28792c | 485 | py | Python | player/migrations/0010_auto_20160803_1545.py | paconte/tournaments | 525162bc9f0de245597f8aa33bf1f4088a087692 | [
"MIT"
] | null | null | null | player/migrations/0010_auto_20160803_1545.py | paconte/tournaments | 525162bc9f0de245597f8aa33bf1f4088a087692 | [
"MIT"
] | null | null | null | player/migrations/0010_auto_20160803_1545.py | paconte/tournaments | 525162bc9f0de245597f8aa33bf1f4088a087692 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-08-03 15:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('player', '0009_tournament_type'),
]
operations = [
migrations.AlterField(
... | 23.095238 | 77 | 0.630928 | 52 | 485 | 5.711538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 0.249485 | 485 | 20 | 78 | 24.25 | 0.760989 | 0.138144 | 0 | 0 | 1 | 0 | 0.161446 | 0 | 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 |
4c98fc8e1b90f8855f5f2e056b6eed5eb5e9bc6c | 1,224 | py | Python | anima/ui/scripts/nuke.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | null | null | null | anima/ui/scripts/nuke.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | null | null | null | anima/ui/scripts/nuke.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2013, Anima Istanbul
#
# This module is part of anima-tools and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
#import nuke
import nuke
from nukescripts import *
def set_qt_lib():
if nuke.NUKE_VERSION_MAJOR < 10 or (nuke.NUKE_VER... | 27.818182 | 73 | 0.706699 | 169 | 1,224 | 4.970414 | 0.414201 | 0.053571 | 0.130952 | 0.138095 | 0.25119 | 0.158333 | 0.107143 | 0 | 0 | 0 | 0 | 0.018109 | 0.187909 | 1,224 | 43 | 74 | 28.465116 | 0.826962 | 0.25817 | 0 | 0 | 0 | 0 | 0.057047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 |
4c9cf6f79165153eeb783496bc4a1be4077f33cf | 1,240 | py | Python | plot_metrics.py | wrongu/modularity | 9186744916aa4b2ef808e6ee542b18e73ba5c9e1 | [
"MIT"
] | null | null | null | plot_metrics.py | wrongu/modularity | 9186744916aa4b2ef808e6ee542b18e73ba5c9e1 | [
"MIT"
] | null | null | null | plot_metrics.py | wrongu/modularity | 9186744916aa4b2ef808e6ee542b18e73ba5c9e1 | [
"MIT"
] | null | null | null | import torch
import numpy as np
import pandas as pd
from analysis import generate_model_specs, load_data_as_table
from pathlib import Path
import matplotlib.pyplot as plt
LOGS_DIR = Path('logs')
DATA_DIR = Path('data')
FIG_SIZE = (6, 4)
def plot_by_hyper(df: pd.DataFrame, x_name, y_name, **kwargs):
fig = plt.fi... | 35.428571 | 107 | 0.648387 | 209 | 1,240 | 3.555024 | 0.449761 | 0.040377 | 0.036339 | 0.040377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025692 | 0.183871 | 1,240 | 34 | 108 | 36.470588 | 0.708498 | 0 | 0 | 0 | 1 | 0 | 0.078226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.230769 | 0 | 0.269231 | 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 |
4c9d3ae719a6224f568e01bf85f0dd0016c86b2b | 515 | py | Python | comparer/migrations/0012_auto_20210720_1922.py | dzejkobi/institution-comparisoner | 3f7ff16bd2b5065a95607bf895c9d28f8e9182a4 | [
"MIT"
] | null | null | null | comparer/migrations/0012_auto_20210720_1922.py | dzejkobi/institution-comparisoner | 3f7ff16bd2b5065a95607bf895c9d28f8e9182a4 | [
"MIT"
] | null | null | null | comparer/migrations/0012_auto_20210720_1922.py | dzejkobi/institution-comparisoner | 3f7ff16bd2b5065a95607bf895c9d28f8e9182a4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.12 on 2021-07-20 19:22
from autoslug.utils import slugify
from django.db import migrations
def slug_initial_values(apps, schema_editor):
Institution = apps.get_model('comparer', 'Institution')
for obj in Institution.objects.all():
obj.slug = slugify(obj.name)
obj.save... | 23.409091 | 59 | 0.687379 | 63 | 515 | 5.492063 | 0.68254 | 0.063584 | 0.098266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0489 | 0.205825 | 515 | 21 | 60 | 24.52381 | 0.797066 | 0.08932 | 0 | 0 | 1 | 0 | 0.102784 | 0.044968 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 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 |
4c9d94217940d965300d01ba0813caa5066de2a0 | 650 | py | Python | filter_3.py | Pasha62/refactoring-task-at-19 | 50e67e4c3004e255869e18bfdf1be7c059486ce1 | [
"MIT"
] | null | null | null | filter_3.py | Pasha62/refactoring-task-at-19 | 50e67e4c3004e255869e18bfdf1be7c059486ce1 | [
"MIT"
] | null | null | null | filter_3.py | Pasha62/refactoring-task-at-19 | 50e67e4c3004e255869e18bfdf1be7c059486ce1 | [
"MIT"
] | null | null | null | from PIL import Image
import numpy as np
img = Image.open("img2.jpg")
arr = np.array(img)
def pixelate(image_array, gradation_number=5, pixel_size=10):
height = len(image_array)
width = len(image_array[0])
grey_step = 256 // gradation_number
for i in range(0, height, pixel_size):
for j in rang... | 28.26087 | 88 | 0.650769 | 105 | 650 | 3.847619 | 0.4 | 0.200495 | 0.10396 | 0.059406 | 0.183168 | 0.183168 | 0.183168 | 0.183168 | 0.183168 | 0.183168 | 0 | 0.027613 | 0.22 | 650 | 22 | 89 | 29.545455 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ca0911ef936b85d43a9a3a2827d6fc365d854f2 | 5,014 | py | Python | tencentcloud/tts/v20190823/tts_client.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 465 | 2018-04-27T09:54:59.000Z | 2022-03-29T02:18:01.000Z | tencentcloud/tts/v20190823/tts_client.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 91 | 2018-04-27T09:48:11.000Z | 2022-03-12T08:04:04.000Z | tencentcloud/tts/v20190823/tts_client.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 232 | 2018-05-02T08:02:46.000Z | 2022-03-30T08:02:48.000Z | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | 41.098361 | 98 | 0.635221 | 475 | 5,014 | 6.677895 | 0.389474 | 0.075662 | 0.052963 | 0.054855 | 0.489281 | 0.479823 | 0.421816 | 0.343317 | 0.343317 | 0.343317 | 0 | 0.025176 | 0.263263 | 5,014 | 122 | 99 | 41.098361 | 0.833514 | 0.36797 | 0 | 0.738462 | 0 | 0 | 0.103413 | 0.01487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.061538 | 0 | 0.215385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ca41715052c52a306c7934350a3c6c1343b2051 | 1,267 | py | Python | PyMOTW/source/sqlite3/sqlite3_create_schema.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 1 | 2019-01-04T05:47:50.000Z | 2019-01-04T05:47:50.000Z | PyMOTW/source/sqlite3/sqlite3_create_schema.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 1 | 2020-07-18T03:52:03.000Z | 2020-07-18T04:18:01.000Z | PyMOTW/source/sqlite3/sqlite3_create_schema.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 2 | 2021-03-06T04:28:32.000Z | 2021-03-06T04:59:17.000Z | #!/usr/bin/env python3
# encoding: utf-8
#
# Copyright (c) 2010 Doug Hellmann. All rights reserved.
#
"""Creating the schema in an sqlite3 database.
"""
#end_pymotw_header
import os
import sqlite3
db_filename = 'todo.db'
schema_filename = 'todo_schema.sql'
db_is_new = not os.path.exists(db_filename)
with sqlite3.c... | 27.543478 | 62 | 0.607735 | 152 | 1,267 | 4.986842 | 0.559211 | 0.05277 | 0.055409 | 0.083113 | 0.245383 | 0.245383 | 0.245383 | 0.245383 | 0.245383 | 0.245383 | 0 | 0.04521 | 0.266772 | 1,267 | 45 | 63 | 28.155556 | 0.770721 | 0.121547 | 0 | 0.214286 | 0 | 0 | 0.645777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.107143 | 0 | 0 | 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 |
4ca47f3e5e423bb5a55952e78eefbf08bb401f32 | 3,444 | py | Python | test/functional/neutronless/testlib/bigip_client.py | minw9545/f5-openstack-agent | 90ab94bedf0b83ae077b145dfb888f2e9dbe5f79 | [
"Apache-2.0"
] | 15 | 2016-08-03T18:32:43.000Z | 2021-05-31T13:44:39.000Z | test/functional/neutronless/testlib/bigip_client.py | minw9545/f5-openstack-agent | 90ab94bedf0b83ae077b145dfb888f2e9dbe5f79 | [
"Apache-2.0"
] | 828 | 2016-01-21T16:54:52.000Z | 2021-12-02T03:14:13.000Z | test/functional/neutronless/testlib/bigip_client.py | minw9545/f5-openstack-agent | 90ab94bedf0b83ae077b145dfb888f2e9dbe5f79 | [
"Apache-2.0"
] | 48 | 2016-02-01T17:56:47.000Z | 2020-11-10T06:39:26.000Z | # coding=utf-8
# Copyright (c) 2016-2018, F5 Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 36.638298 | 78 | 0.690186 | 428 | 3,444 | 5.418224 | 0.331776 | 0.046572 | 0.047434 | 0.025873 | 0.279 | 0.19448 | 0.19448 | 0.165157 | 0.079345 | 0.079345 | 0 | 0.007874 | 0.22561 | 3,444 | 93 | 79 | 37.032258 | 0.861642 | 0.176539 | 0 | 0.067797 | 0 | 0 | 0.018794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186441 | false | 0.050847 | 0.101695 | 0.050847 | 0.457627 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ca4a838ea8392a62673d951d016f611bf7e15ce | 869 | py | Python | base_app/functional_tests/test_product_delete.py | andrewzweb/TiShop | 86155d2dd64217d6dffefcaba177b943d8fa8cba | [
"BSD-3-Clause"
] | null | null | null | base_app/functional_tests/test_product_delete.py | andrewzweb/TiShop | 86155d2dd64217d6dffefcaba177b943d8fa8cba | [
"BSD-3-Clause"
] | null | null | null | base_app/functional_tests/test_product_delete.py | andrewzweb/TiShop | 86155d2dd64217d6dffefcaba177b943d8fa8cba | [
"BSD-3-Clause"
] | null | null | null | ''' functional test to delete product '''
from django.urls import reverse
from mixer.backend.django import mixer
import pytest
from .base import FunctionalTest
pytestmark = pytest.mark.django_db
class ProductDeleteTest(FunctionalTest):
""" testcase product delete """
@pytest.mark.integration
def test_d... | 29.965517 | 89 | 0.678941 | 109 | 869 | 5.284404 | 0.46789 | 0.067708 | 0.038194 | 0.052083 | 0.170139 | 0.170139 | 0.170139 | 0.170139 | 0.170139 | 0.170139 | 0 | 0 | 0.220944 | 869 | 28 | 90 | 31.035714 | 0.850812 | 0.219793 | 0 | 0 | 0 | 0 | 0.102134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4ca6b081dda7a2e3b908441a28963f02c3e3f040 | 5,566 | py | Python | populator.py | amchiclet/loopgen | 1a9ed45764ebe7720e9c30a60bbc9525d712044a | [
"MIT"
] | null | null | null | populator.py | amchiclet/loopgen | 1a9ed45764ebe7720e9c30a60bbc9525d712044a | [
"MIT"
] | null | null | null | populator.py | amchiclet/loopgen | 1a9ed45764ebe7720e9c30a60bbc9525d712044a | [
"MIT"
] | 1 | 2021-04-26T16:22:09.000Z | 2021-04-26T16:22:09.000Z | import random
from skeleton_ast import Replacer, Const, Declaration, Node, replace, ExpressionHole, StatementHole, OpHole, NameHole
from math import prod
class IncrementalChoice:
def __init__(self):
self.index = 0
def choice(self, population):
self.index = self.index % len(population)
s... | 33.733333 | 117 | 0.676608 | 663 | 5,566 | 5.479638 | 0.190045 | 0.033031 | 0.021195 | 0.024773 | 0.335535 | 0.292596 | 0.263419 | 0.263419 | 0.198183 | 0.132122 | 0 | 0.004205 | 0.230866 | 5,566 | 164 | 118 | 33.939024 | 0.844429 | 0.059828 | 0 | 0.19697 | 0 | 0 | 0.016651 | 0.004785 | 0 | 0 | 0 | 0.006098 | 0.030303 | 1 | 0.219697 | false | 0 | 0.022727 | 0.05303 | 0.469697 | 0.007576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ca9d59e25bce56cbddbce62c7d9143d8c57058d | 4,816 | py | Python | deep_qa-master/deep_qa/data/instances/question_passage_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | 1 | 2017-04-11T13:03:55.000Z | 2017-04-11T13:03:55.000Z | deep_qa-master/deep_qa/data/instances/question_passage_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | null | null | null | deep_qa-master/deep_qa/data/instances/question_passage_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List, Any
import numpy as np
from overrides import overrides
from .instance import TextInstance, IndexedInstance
from ..data_indexer import DataIndexer
class QuestionPassageInstance(TextInstance):
"""
A QuestionPassageInstance is a base class for datasets that consist primarily of a... | 43.781818 | 98 | 0.667359 | 567 | 4,816 | 5.407407 | 0.229277 | 0.046967 | 0.02968 | 0.024788 | 0.207436 | 0.125245 | 0.069145 | 0.029354 | 0.029354 | 0.029354 | 0 | 0.001116 | 0.255606 | 4,816 | 109 | 99 | 44.183486 | 0.854114 | 0.209095 | 0 | 0.088235 | 0 | 0 | 0.07543 | 0.006559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.352941 | 0.073529 | 0.029412 | 0.338235 | 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 |
4cabfedeb1ba7da29f1351817310356180beca6e | 12,813 | py | Python | netbox/virtualization/views.py | jtague87/netbox | 8c4d4532a47e1b9fabe8b87b9a24e0eace6c30ca | [
"Apache-2.0"
] | 2 | 2021-06-02T03:00:05.000Z | 2021-07-30T18:52:32.000Z | netbox/virtualization/views.py | jtague87/netbox | 8c4d4532a47e1b9fabe8b87b9a24e0eace6c30ca | [
"Apache-2.0"
] | null | null | null | netbox/virtualization/views.py | jtague87/netbox | 8c4d4532a47e1b9fabe8b87b9a24e0eace6c30ca | [
"Apache-2.0"
] | null | null | null | from django.contrib import messages
from django.db import transaction
from django.db.models import Count, Prefetch
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from dcim.models import Device
from dcim.tables import DeviceTable
from extras.views import ObjectConfigCon... | 32.437975 | 120 | 0.709982 | 1,201 | 12,813 | 7.441299 | 0.200666 | 0.026855 | 0.018798 | 0.023386 | 0.383126 | 0.360412 | 0.320913 | 0.238783 | 0.206669 | 0.202529 | 0 | 0.002335 | 0.197768 | 12,813 | 394 | 121 | 32.520305 | 0.867108 | 0.025443 | 0 | 0.408397 | 0 | 0 | 0.086095 | 0.039477 | 0 | 0 | 0 | 0.002538 | 0 | 1 | 0.022901 | false | 0 | 0.076336 | 0 | 0.648855 | 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 |
4cacb5b2eff28bc4d1e4aac3a658612815ee33dc | 7,025 | py | Python | src/python/lib/ensembl/compara/db/dbconnection.py | msmanoj/ensembl-compara | 32b7cf0f0f00e51c3b2eb24961a2a2286a8bf685 | [
"Apache-2.0"
] | 40 | 2015-06-25T19:17:03.000Z | 2022-03-22T17:57:35.000Z | src/python/lib/ensembl/compara/db/dbconnection.py | msmanoj/ensembl-compara | 32b7cf0f0f00e51c3b2eb24961a2a2286a8bf685 | [
"Apache-2.0"
] | 343 | 2015-01-14T10:45:48.000Z | 2022-03-31T11:04:58.000Z | src/python/lib/ensembl/compara/db/dbconnection.py | msmanoj/ensembl-compara | 32b7cf0f0f00e51c3b2eb24961a2a2286a8bf685 | [
"Apache-2.0"
] | 102 | 2015-01-14T10:40:39.000Z | 2022-02-20T23:57:34.000Z | """
See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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/LICEN... | 37.169312 | 109 | 0.65395 | 864 | 7,025 | 5.261574 | 0.302083 | 0.031456 | 0.020018 | 0.018698 | 0.262648 | 0.233612 | 0.219974 | 0.202376 | 0.202376 | 0.202376 | 0 | 0.001147 | 0.255231 | 7,025 | 188 | 110 | 37.367021 | 0.867737 | 0.458221 | 0 | 0.25 | 0 | 0 | 0.025078 | 0.005985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.440476 | 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 |
4cb60cc0335c7ee65faff58596e1d19855568872 | 341 | py | Python | services/api/service.py | chiselko6/xogame | 1e6a2dc0d61baed55fcf8787bace8d6e21809fbc | [
"MIT"
] | null | null | null | services/api/service.py | chiselko6/xogame | 1e6a2dc0d61baed55fcf8787bace8d6e21809fbc | [
"MIT"
] | null | null | null | services/api/service.py | chiselko6/xogame | 1e6a2dc0d61baed55fcf8787bace8d6e21809fbc | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from endpoints.auth import app as auth_app
from endpoints.game import app as game_app
from endpoints.player import app as player_app
app = FastAPI()
@app.get("/healthcheck")
async def healthcheck():
return "OK"
app.mount("/players", player_app)
app.mount("/game", game_app)
app.moun... | 18.944444 | 46 | 0.747801 | 53 | 341 | 4.698113 | 0.320755 | 0.156627 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13783 | 341 | 17 | 47 | 20.058824 | 0.846939 | 0 | 0 | 0 | 0 | 0 | 0.093842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4cb88f94e6653713567035cafe8af0e2112dcc37 | 225 | py | Python | cartosky/instrument/camera.py | erykoff/cartosky | 5d14bc533e7a0d5d342308efe9c94ef573571a6b | [
"MIT"
] | 1 | 2021-06-19T02:37:47.000Z | 2021-06-19T02:37:47.000Z | cartosky/instrument/camera.py | erykoff/cartosky | 5d14bc533e7a0d5d342308efe9c94ef573571a6b | [
"MIT"
] | 7 | 2020-05-11T22:00:00.000Z | 2021-10-19T20:46:48.000Z | cartosky/instrument/camera.py | erykoff/cartosky | 5d14bc533e7a0d5d342308efe9c94ef573571a6b | [
"MIT"
] | 1 | 2021-12-15T21:28:04.000Z | 2021-12-15T21:28:04.000Z | #!/usr/bin/env python
"""
Generic python script.
"""
__author__ = "Alex Drlica-Wagner"
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description=__doc__)
args = parser.parse_args()
| 18.75 | 57 | 0.702222 | 25 | 225 | 5.64 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164444 | 225 | 11 | 58 | 20.454545 | 0.75 | 0.191111 | 0 | 0 | 0 | 0 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4cbf15b5e82e0334a02e7a2b33ef321f8a872fb0 | 3,572 | py | Python | application/api/nurse.py | MickeyPa/soen344 | a9632dc36d23a4eba5bb9c943c9ae75ecc4811bd | [
"MIT"
] | null | null | null | application/api/nurse.py | MickeyPa/soen344 | a9632dc36d23a4eba5bb9c943c9ae75ecc4811bd | [
"MIT"
] | null | null | null | application/api/nurse.py | MickeyPa/soen344 | a9632dc36d23a4eba5bb9c943c9ae75ecc4811bd | [
"MIT"
] | 2 | 2019-06-04T20:09:14.000Z | 2019-06-04T20:15:32.000Z | '''
This file documents the api routes for nurse related events
'''
from flask import Flask, Blueprint, redirect, render_template, url_for, session, request, logging
from index import app
from application.services import NurseService, DoctorService, DoctorScheduleService
from application.util import *
from passlib.ha... | 33.074074 | 133 | 0.716405 | 447 | 3,572 | 5.680089 | 0.319911 | 0.025207 | 0.03781 | 0.047263 | 0.323356 | 0.267034 | 0.215045 | 0.215045 | 0.215045 | 0.174084 | 0 | 0.001316 | 0.149216 | 3,572 | 108 | 134 | 33.074074 | 0.834156 | 0.234602 | 0 | 0.397059 | 0 | 0 | 0.209749 | 0.019941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.102941 | 0.014706 | 0.220588 | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4cc34766bd335092ee5f0ab98d77a5437164de51 | 730 | py | Python | backend/lib/utils/census.py | bayesimpact/tds-frontend | a4f47e384ef4fe4dc43c30423a1713c2c93dc87f | [
"Apache-2.0"
] | 15 | 2018-05-08T23:54:38.000Z | 2020-03-07T20:46:37.000Z | backend/lib/utils/census.py | akegan/encompass | 85852a91c646c62e8cd05f9c2b0c7cf0079ea7f2 | [
"Apache-2.0"
] | 297 | 2018-02-05T19:04:26.000Z | 2022-02-12T07:52:37.000Z | backend/lib/utils/census.py | bayesimpact/tds | a4f47e384ef4fe4dc43c30423a1713c2c93dc87f | [
"Apache-2.0"
] | 6 | 2018-05-21T19:51:15.000Z | 2019-03-21T19:20:27.000Z | """Tools to manage census tables."""
POSTGRES_COLUMN_NAME_LIMIT = 63
def _verified_column_name(column_name, limit=POSTGRES_COLUMN_NAME_LIMIT):
if len(column_name) > limit:
raise Exception('Column name {} is too long. Postgres limit is {}.'.format(
column_name, limit))
return column_name
... | 30.416667 | 83 | 0.676712 | 88 | 730 | 5.25 | 0.375 | 0.25974 | 0.162338 | 0.099567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003604 | 0.239726 | 730 | 23 | 84 | 31.73913 | 0.828829 | 0.041096 | 0 | 0 | 0 | 0 | 0.138329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cd0c9929441694a2f9de5211ebc9a814223ace1 | 1,193 | py | Python | custom-attacks/delete.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | null | null | null | custom-attacks/delete.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | null | null | null | custom-attacks/delete.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | 1 | 2022-03-17T18:06:25.000Z | 2022-03-17T18:06:25.000Z | embed
<drac2>
argv = &ARGS&
index = 2
saved_json = load_json(get("_customAttacks", "{}"))
monster_name = argv[0] if argv else None
monster_options = [key for key in saved_json.keys() if monster_name.lower() in key.lower()]
monster_name = monster_options[0] if monster_options else monster_name
attack_name ... | 32.243243 | 144 | 0.685666 | 172 | 1,193 | 4.575581 | 0.273256 | 0.111817 | 0.055909 | 0.040661 | 0.1169 | 0.068615 | 0.068615 | 0 | 0 | 0 | 0 | 0.012245 | 0.178541 | 1,193 | 37 | 145 | 32.243243 | 0.790816 | 0 | 0 | 0 | 0 | 0 | 0.130397 | 0.021589 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cd3f565adacfbe7d63f62452c6bb6957a2e7a5c | 357 | py | Python | gallery/migrations/0005_rename_location_name_location_name.py | mahan-noor/Gallery | 1b7aaeedef6b14fa1555d79c89a36556eb3e9414 | [
"MIT"
] | null | null | null | gallery/migrations/0005_rename_location_name_location_name.py | mahan-noor/Gallery | 1b7aaeedef6b14fa1555d79c89a36556eb3e9414 | [
"MIT"
] | null | null | null | gallery/migrations/0005_rename_location_name_location_name.py | mahan-noor/Gallery | 1b7aaeedef6b14fa1555d79c89a36556eb3e9414 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-17 20:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('gallery', '0004_image'),
]
operations = [
migrations.RenameField(
model_name='location',
old_name='location_name',
... | 18.789474 | 47 | 0.577031 | 38 | 357 | 5.289474 | 0.710526 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.308123 | 357 | 18 | 48 | 19.833333 | 0.736842 | 0.12605 | 0 | 0 | 1 | 0 | 0.135484 | 0 | 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 |
4cd7133892f06129187306e1623c2c9d99eb5b2d | 1,430 | py | Python | monopyly/cards/advance_to.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 4 | 2015-11-04T21:18:40.000Z | 2020-12-26T21:15:23.000Z | monopyly/cards/advance_to.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 2 | 2021-08-09T18:19:58.000Z | 2021-08-10T14:44:54.000Z | monopyly/cards/advance_to.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 6 | 2015-08-01T17:54:17.000Z | 2022-02-28T00:00:21.000Z | from .card import Card
from ..squares import Square
from ..utility import Logger
class AdvanceTo(Card):
'''
Represents an "Advance to..." card, including checking
whether the player passes go and collects £200.
'''
def __init__(self, square_name):
'''
The 'constructor'.
''... | 34.878049 | 115 | 0.671329 | 190 | 1,430 | 4.873684 | 0.342105 | 0.12851 | 0.107991 | 0.053996 | 0.155508 | 0.12095 | 0.077754 | 0 | 0 | 0 | 0 | 0.014884 | 0.248252 | 1,430 | 40 | 116 | 35.75 | 0.842791 | 0.305594 | 0 | 0 | 0 | 0 | 0.030735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4cd9088910028a0711758fb1f4db1cfd62e8c5f0 | 3,239 | py | Python | src/deep_rlsp/envs/gridworlds/basic_room.py | HumanCompatibleAI/deep-rlsp | 81941693aba2aa9157ca96e96567f4e3cb95fbc3 | [
"MIT"
] | 24 | 2021-04-17T21:32:43.000Z | 2021-08-07T17:20:15.000Z | src/deep_rlsp/envs/gridworlds/basic_room.py | HumanCompatibleAI/deep-rlsp | 81941693aba2aa9157ca96e96567f4e3cb95fbc3 | [
"MIT"
] | null | null | null | src/deep_rlsp/envs/gridworlds/basic_room.py | HumanCompatibleAI/deep-rlsp | 81941693aba2aa9157ca96e96567f4e3cb95fbc3 | [
"MIT"
] | 7 | 2021-04-17T21:32:48.000Z | 2022-02-09T04:18:39.000Z | import numpy as np
from itertools import product
from deep_rlsp.envs.gridworlds.env import Env, Direction, get_grid_representation
class BasicRoomEnv(Env):
"""
Basic empty room with stochastic transitions. Used for debugging.
"""
def __init__(self, prob, use_pixels_as_observations=True):
sel... | 31.754902 | 82 | 0.610374 | 440 | 3,239 | 4.252273 | 0.277273 | 0.037413 | 0.027793 | 0.036879 | 0.104757 | 0.08124 | 0.08124 | 0.053447 | 0 | 0 | 0 | 0.01331 | 0.280951 | 3,239 | 101 | 83 | 32.069307 | 0.790039 | 0.1908 | 0 | 0.071429 | 0 | 0 | 0.009675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.035714 | 0.071429 | 0.107143 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4ce9d3ef8e13b8485e453f3506c46436cbfffa26 | 144 | py | Python | src/Chapter 6/Exercise_3_6.py | group14BSE1/BSE-2021 | 72e15ce3ef90eb80f70df12904fba787d8b695af | [
"MIT"
] | null | null | null | src/Chapter 6/Exercise_3_6.py | group14BSE1/BSE-2021 | 72e15ce3ef90eb80f70df12904fba787d8b695af | [
"MIT"
] | null | null | null | src/Chapter 6/Exercise_3_6.py | group14BSE1/BSE-2021 | 72e15ce3ef90eb80f70df12904fba787d8b695af | [
"MIT"
] | null | null | null | def letter_counter(token, word):
count = 0
for letter in word:
if letter == token:
count = count + 1
else:
continue
return count
| 13.090909 | 32 | 0.652778 | 21 | 144 | 4.428571 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.263889 | 144 | 10 | 33 | 14.4 | 0.858491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 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 |
4ced9e77aea7e6758ef3d8cc7f2c99207cc4c37e | 20,080 | py | Python | riscvmodel/insn.py | mss10/riscv-python-model | b48786dd18f61a0a25cb0928bd592dc95f7fd80c | [
"MIT"
] | null | null | null | riscvmodel/insn.py | mss10/riscv-python-model | b48786dd18f61a0a25cb0928bd592dc95f7fd80c | [
"MIT"
] | null | null | null | riscvmodel/insn.py | mss10/riscv-python-model | b48786dd18f61a0a25cb0928bd592dc95f7fd80c | [
"MIT"
] | null | null | null | from random import randrange
from abc import ABCMeta, abstractmethod
from .variant import Variant, Extensions
from .model import State
from .types import Immediate
from .variant import RV32I
class Instruction(metaclass=ABCMeta):
"""
Base class for instructions
This is the abstract base class for all inst... | 33.026316 | 124 | 0.60239 | 2,468 | 20,080 | 4.751621 | 0.114668 | 0.03283 | 0.013644 | 0.026605 | 0.598619 | 0.552827 | 0.526051 | 0.513942 | 0.495779 | 0.476934 | 0 | 0.038373 | 0.282321 | 20,080 | 607 | 125 | 33.080725 | 0.77538 | 0.217629 | 0 | 0.620397 | 0 | 0 | 0.016992 | 0 | 0 | 0 | 0.011661 | 0 | 0.002833 | 1 | 0.21813 | false | 0.01983 | 0.016997 | 0.03966 | 0.456091 | 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 |
4cf09ce9b2215e7a35b2abf3a5f702ae5d1aa037 | 3,728 | py | Python | bootcamp/search/tests/test_views.py | ChowBu/bootcamp | 1e3a0d129785a54a0f85f4948a6adb01346fd3b3 | [
"MIT"
] | null | null | null | bootcamp/search/tests/test_views.py | ChowBu/bootcamp | 1e3a0d129785a54a0f85f4948a6adb01346fd3b3 | [
"MIT"
] | null | null | null | bootcamp/search/tests/test_views.py | ChowBu/bootcamp | 1e3a0d129785a54a0f85f4948a6adb01346fd3b3 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import Client, TestCase
from bootcamp.articles.models import Article
from bootcamp.questions.models import Question
class TestViews(TestCase):
"""
Includes tests for all the functionality
associated with Views
"""
def setUp(self):
... | 43.858824 | 77 | 0.628487 | 433 | 3,728 | 5.212471 | 0.249423 | 0.074435 | 0.058485 | 0.077093 | 0.636686 | 0.632255 | 0.543199 | 0.480284 | 0.443952 | 0.443952 | 0 | 0.002619 | 0.282994 | 3,728 | 84 | 78 | 44.380952 | 0.841751 | 0.016631 | 0 | 0.232877 | 0 | 0 | 0.291004 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 1 | 0.054795 | false | 0.054795 | 0.054795 | 0 | 0.123288 | 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 |
4cf30c7ffd0bb25fb1ce66fc62a50b6f135c04f4 | 3,341 | py | Python | axon/db/local/models.py | gitvipin/validation-app-engine | 5581c506bd9d7f1810edc9ae25faec0761f2c840 | [
"BSD-2-Clause"
] | null | null | null | axon/db/local/models.py | gitvipin/validation-app-engine | 5581c506bd9d7f1810edc9ae25faec0761f2c840 | [
"BSD-2-Clause"
] | null | null | null | axon/db/local/models.py | gitvipin/validation-app-engine | 5581c506bd9d7f1810edc9ae25faec0761f2c840 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2019 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2 License
# The full license information can be found in LICENSE.txt
# in the root directory of this project.
import pickle
from sqlalchemy.types import TypeDecorator, TEXT
from sqlalchemy.ext.declarative impor... | 26.515873 | 76 | 0.6088 | 375 | 3,341 | 5.277333 | 0.389333 | 0.048509 | 0.035371 | 0.01718 | 0.1238 | 0.090955 | 0.037393 | 0.037393 | 0.037393 | 0 | 0 | 0.008368 | 0.284645 | 3,341 | 125 | 77 | 26.728 | 0.819665 | 0.122718 | 0 | 0.104651 | 0 | 0 | 0.044955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.046512 | 0.046512 | 0.046512 | 0.534884 | 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 |
4cf7c94ef48a9ce7f34c9d1feace96d93044abd4 | 1,076 | py | Python | 3-Python-Advanced (May 2021)/05-Functions/01_Lab/04-Operate.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 3-Python-Advanced (May 2021)/05-Functions/01_Lab/04-Operate.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 3-Python-Advanced (May 2021)/05-Functions/01_Lab/04-Operate.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | # 4. Operate
# Write a function called operate that receives an operator ("+", "-", "*" or "/") as first argument and multiple
# numbers (integers) as additional arguments (*args). The function should return the result of the operator applied
# to all the numbers. For more clarification, see the examples below.
# Submi... | 32.606061 | 115 | 0.639405 | 146 | 1,076 | 4.712329 | 0.527397 | 0.020349 | 0.104651 | 0.110465 | 0.337209 | 0.30814 | 0.30814 | 0.30814 | 0.133721 | 0.133721 | 0 | 0.00729 | 0.23513 | 1,076 | 33 | 116 | 32.606061 | 0.828676 | 0.549257 | 0 | 0 | 0 | 0 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.066667 | 0 | 0.4 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9805b505625691623e6df2fac51e9950d312d55b | 586 | py | Python | setup.py | betisb/AdvDB-Prototype | 0de7f7f9a8f0deb57c21d84d73ebab826fc1d74a | [
"MIT"
] | null | null | null | setup.py | betisb/AdvDB-Prototype | 0de7f7f9a8f0deb57c21d84d73ebab826fc1d74a | [
"MIT"
] | null | null | null | setup.py | betisb/AdvDB-Prototype | 0de7f7f9a8f0deb57c21d84d73ebab826fc1d74a | [
"MIT"
] | null | null | null | # system
import setuptools
setuptools.setup(
name="union-prototype",
version="0.1.0",
author="?",
packages=[
"union_prototype"
],
include_package_date=False,
url="https://github.com/paulbry/AdvDB-Prototype",
description="Advance Database prototype project",
install_requires=... | 21.703704 | 61 | 0.580205 | 53 | 586 | 6.188679 | 0.773585 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.283276 | 586 | 27 | 62 | 21.703704 | 0.771429 | 0.010239 | 0 | 0.08 | 0 | 0 | 0.402418 | 0.050086 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 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 |
9807eb82151985c0d7bcd24a7d6fd9009a5ce69d | 1,992 | py | Python | Lecture8/streamlit_demo.py | Astro-330/Astro-330.github.io | e7ba5d1db0f369a110419e939d9ed2d29c9d7020 | [
"MIT"
] | 4 | 2021-08-28T23:26:14.000Z | 2022-03-27T14:35:17.000Z | Lecture8/streamlit_demo.py | mgebran/Astro-330.github.io | e7ba5d1db0f369a110419e939d9ed2d29c9d7020 | [
"MIT"
] | null | null | null | Lecture8/streamlit_demo.py | mgebran/Astro-330.github.io | e7ba5d1db0f369a110419e939d9ed2d29c9d7020 | [
"MIT"
] | 2 | 2021-12-18T00:53:51.000Z | 2022-03-21T14:53:12.000Z | import streamlit as st
import matplotlib.pyplot as plt
import numpy as np
from spectral_cube import SpectralCube
import astropy.units as u
import copy
st.title('FITS Cube Viewer')
st.header('Channel Viewer')
if 'channel' not in st.session_state:
st.session_state['channel'] = 0
if 'oldchannel' not in st.sessio... | 29.294118 | 127 | 0.709337 | 307 | 1,992 | 4.478827 | 0.315961 | 0.163636 | 0.254545 | 0.152727 | 0.325091 | 0.256 | 0.256 | 0.210909 | 0.114909 | 0.114909 | 0 | 0.026005 | 0.150602 | 1,992 | 67 | 128 | 29.731343 | 0.786643 | 0 | 0 | 0.085106 | 0 | 0 | 0.14508 | 0.015562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.12766 | 0 | 0.170213 | 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 |
980cfbf487670285bc018bac08cc5548af98b2d3 | 6,368 | py | Python | analytics_tools/scripts/stream_comparator.py | joshblum/chronology | d730355a5686ebba9f1c8e369ba26a3080d9fa26 | [
"MIT"
] | null | null | null | analytics_tools/scripts/stream_comparator.py | joshblum/chronology | d730355a5686ebba9f1c8e369ba26a3080d9fa26 | [
"MIT"
] | null | null | null | analytics_tools/scripts/stream_comparator.py | joshblum/chronology | d730355a5686ebba9f1c8e369ba26a3080d9fa26 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
"""
A script to compare two different streams (from potentially two different
Kronos servers).
example usage:
python scripts/stream_comparator.py --kronos-url1 http://your-kronos.instance1:port --kronos-url2 http://your-kronos.instance1:port --stream1 stream1_name --stream2 stre... | 34.797814 | 233 | 0.652324 | 796 | 6,368 | 5.062814 | 0.263819 | 0.032754 | 0.042184 | 0.029777 | 0.287841 | 0.12804 | 0.085856 | 0.041191 | 0.041191 | 0.017866 | 0 | 0.036155 | 0.248587 | 6,368 | 182 | 234 | 34.989011 | 0.806061 | 0.073492 | 0 | 0.147887 | 0 | 0.014085 | 0.163508 | 0.010106 | 0 | 0 | 0 | 0 | 0.014085 | 0 | null | null | 0 | 0.091549 | null | null | 0.049296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9811a3acebb4d7c8a727bf4de19812d48ad72e8e | 11,621 | py | Python | sorted_out/EVAL_SCRIPT.py | jgliss/aerocom_obs_props | 8c2824b2cdf558a74edc0f180a653e86faf9a442 | [
"MIT"
] | null | null | null | sorted_out/EVAL_SCRIPT.py | jgliss/aerocom_obs_props | 8c2824b2cdf558a74edc0f180a653e86faf9a442 | [
"MIT"
] | null | null | null | sorted_out/EVAL_SCRIPT.py | jgliss/aerocom_obs_props | 8c2824b2cdf558a74edc0f180a653e86faf9a442 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Script for intercomparison of optical properties between models and
"""
import helpers as helpers
import os
from collections import OrderedDict as od
import numpy as np
import matplotlib.pyplot as plt
import pyaerocom as pya
import logging
### GLOBAL SETTINGS
YEARS ... | 43.85283 | 88 | 0.408313 | 1,025 | 11,621 | 4.387317 | 0.238049 | 0.037358 | 0.013342 | 0.016011 | 0.353791 | 0.313765 | 0.283967 | 0.264398 | 0.264398 | 0.264398 | 0 | 0.022551 | 0.511574 | 11,621 | 265 | 89 | 43.85283 | 0.769732 | 0.033044 | 0 | 0.412371 | 0 | 0 | 0.095412 | 0.020082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015464 | false | 0 | 0.041237 | 0 | 0.06701 | 0.041237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
981589405a0005e895d2ce8257bb80f191d0c89f | 526 | py | Python | SRC/Chapter_05-When-To-Use-Object-Oriented-Programming/zipexample/inheritance/scalezip.py | eminemence/python3_OOPs | a61f2649cf9c68a782a3e90c1f667877597dfb1d | [
"MIT"
] | null | null | null | SRC/Chapter_05-When-To-Use-Object-Oriented-Programming/zipexample/inheritance/scalezip.py | eminemence/python3_OOPs | a61f2649cf9c68a782a3e90c1f667877597dfb1d | [
"MIT"
] | null | null | null | SRC/Chapter_05-When-To-Use-Object-Oriented-Programming/zipexample/inheritance/scalezip.py | eminemence/python3_OOPs | a61f2649cf9c68a782a3e90c1f667877597dfb1d | [
"MIT"
] | 1 | 2021-01-13T08:25:04.000Z | 2021-01-13T08:25:04.000Z | from zipprocessor import ZipProcessor
import os
import sys
from pygame import image
from pygame.transform import scale
class ScaleZip(ZipProcessor):
def process_files(self):
"""Scale each image in the directory to 640x480"""
for filename in os.listdir(self.temp_dir):
im = image.load(se... | 27.684211 | 61 | 0.686312 | 69 | 526 | 5.014493 | 0.57971 | 0.104046 | 0.092486 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033735 | 0.211027 | 526 | 18 | 62 | 29.222222 | 0.8 | 0.08365 | 0 | 0 | 0 | 0 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
e21f25a59b8b366ea09313536ba91388bd9945cb | 565 | py | Python | dashboard/migrations/0065_alter_questcomplete_category.py | theMetaHack/otis-web | b73aa6273db8d440bc734ad1c703f6eb6b5a6087 | [
"MIT"
] | 15 | 2021-08-28T18:18:37.000Z | 2022-03-13T07:48:15.000Z | dashboard/migrations/0065_alter_questcomplete_category.py | theMetaHack/otis-web | b73aa6273db8d440bc734ad1c703f6eb6b5a6087 | [
"MIT"
] | 65 | 2021-08-20T02:37:27.000Z | 2022-02-07T17:19:23.000Z | dashboard/migrations/0065_alter_questcomplete_category.py | theMetaHack/otis-web | b73aa6273db8d440bc734ad1c703f6eb6b5a6087 | [
"MIT"
] | 31 | 2020-01-09T02:35:29.000Z | 2022-03-13T07:48:18.000Z | # Generated by Django 3.2.8 on 2021-10-22 14:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0064_questcomplete_category'),
]
operations = [
migrations.AlterField(
model_name='questcomplete',
name... | 29.736842 | 214 | 0.59646 | 61 | 565 | 5.459016 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.228319 | 565 | 18 | 215 | 31.388889 | 0.71789 | 0.079646 | 0 | 0 | 1 | 0 | 0.27027 | 0.052124 | 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 |
e2208dd457fcb26b1e7bce74e9dd6cd683aeda7a | 1,765 | py | Python | RTRBM/rtrbm/p8/rnn_trbm/r/r_balls.py | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | 1 | 2019-04-04T09:25:03.000Z | 2019-04-04T09:25:03.000Z | RTRBM/rtrbm/p8/rnn_trbm/r/r_balls.py | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | null | null | null | RTRBM/rtrbm/p8/rnn_trbm/r/r_balls.py | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | null | null | null | import rbm
from mats.bias_mat import bias_mat
from mats.std_mat import std_mat
CD_n_sched = { 100 : 10, 1000 : 25 }
def weights_constraint_iter(W, i):
print 'W.CD_n = ', W.CD_n
try:
W.CD_n = CD_n_sched[i]
except KeyError:
pass
return W
import data.bouncing_balls as b
from p8.rnn_trbm.r... | 22.341772 | 70 | 0.570538 | 306 | 1,765 | 3.065359 | 0.29085 | 0.041578 | 0.017058 | 0.025586 | 0.083156 | 0.059701 | 0.029851 | 0 | 0 | 0 | 0 | 0.048007 | 0.303683 | 1,765 | 78 | 71 | 22.628205 | 0.715216 | 0 | 0 | 0 | 0 | 0 | 0.057354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 0.155172 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e22747f9facca62d219a41a8bb7c7bb3e04ad73c | 1,722 | py | Python | cron_descriptor/Exception.py | Davoodeh/cron-descriptor | b15f435d10e6497a0647fdaca51539931f2eddc5 | [
"MIT"
] | 98 | 2016-01-20T00:52:11.000Z | 2022-03-10T16:27:31.000Z | cron_descriptor/Exception.py | Davoodeh/cron-descriptor | b15f435d10e6497a0647fdaca51539931f2eddc5 | [
"MIT"
] | 37 | 2016-02-03T17:26:39.000Z | 2022-03-23T22:44:32.000Z | cron_descriptor/Exception.py | Davoodeh/cron-descriptor | b15f435d10e6497a0647fdaca51539931f2eddc5 | [
"MIT"
] | 26 | 2016-01-19T16:24:02.000Z | 2022-02-15T20:22:43.000Z | # The MIT License (MIT)
#
# Copyright (c) 2016 Adam Schubert
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mod... | 31.309091 | 80 | 0.724158 | 226 | 1,722 | 5.482301 | 0.535398 | 0.071025 | 0.050847 | 0.062954 | 0.087167 | 0.062954 | 0 | 0 | 0 | 0 | 0 | 0.002941 | 0.210221 | 1,722 | 54 | 81 | 31.888889 | 0.908088 | 0.753775 | 0 | 0.25 | 0 | 0 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.25 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e22aa095e60609b8bcd2b74b900c9233eed37c60 | 9,071 | py | Python | env/create_vec_env.py | matthiasgruber/supervisor | f7ab5f5ee67170256033e62e61a5be3410fcf6a8 | [
"MIT"
] | 3 | 2021-08-08T20:22:13.000Z | 2022-01-27T17:22:32.000Z | env/create_vec_env.py | matthiasgruber/supervisor | f7ab5f5ee67170256033e62e61a5be3410fcf6a8 | [
"MIT"
] | null | null | null | env/create_vec_env.py | matthiasgruber/supervisor | f7ab5f5ee67170256033e62e61a5be3410fcf6a8 | [
"MIT"
] | null | null | null | import os
import json
import warnings
import time
import random
import numpy as np
from gym_unity.envs import UnityEnv
from stable_baselines.common.vec_env import SubprocVecEnv
from supervisors.supervisor import Supervisor
def create_vec_env(visibility=2.5, safe_info=True, safe_states=True, supervisor=None, safety_di... | 59.677632 | 121 | 0.34704 | 1,032 | 9,071 | 2.932171 | 0.156008 | 0.016523 | 0.015863 | 0.019828 | 0.350628 | 0.259088 | 0.236286 | 0.197951 | 0.178453 | 0.141441 | 0 | 0.139446 | 0.450557 | 9,071 | 151 | 122 | 60.072848 | 0.467697 | 0.243523 | 0 | 0.140351 | 0 | 0 | 0.068541 | 0.003368 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.078947 | 0 | 0.114035 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e22e4ed8d0eb3f76ef6a7b8207acd394ba1de367 | 2,222 | py | Python | orchestrator/core/orc_server/device/migrations/0012_transportHTTP_polymorphic.py | oasis-open/openc2-oif | 9227d38cb53204b45641ac55aefd6a13d2aad563 | [
"Apache-2.0"
] | 2 | 2019-07-02T14:06:24.000Z | 2021-07-07T09:45:54.000Z | orchestrator/core/orc_server/device/migrations/0012_transportHTTP_polymorphic.py | oasis-open/openc2-oif-orchestrator | 9227d38cb53204b45641ac55aefd6a13d2aad563 | [
"Apache-2.0"
] | 22 | 2020-03-24T16:58:17.000Z | 2022-02-27T15:36:57.000Z | orchestrator/core/orc_server/device/migrations/0012_transportHTTP_polymorphic.py | oasis-open/openc2-oif | 9227d38cb53204b45641ac55aefd6a13d2aad563 | [
"Apache-2.0"
] | 10 | 2019-04-26T12:22:22.000Z | 2021-08-05T09:16:05.000Z | # Generated by Django 3.1.1 on 2020-10-15 16:29
from django.db import migrations, models
import django.db.models.deletion
HTTP_TRANSPORTS = []
def gather_http(apps, schema_editor):
baseModel = apps.get_model('device', 'transport')
protocol = apps.get_model('orchestrator', 'protocol').objects.get(name='HTTP'... | 33.666667 | 196 | 0.630963 | 246 | 2,222 | 5.528455 | 0.426829 | 0.025735 | 0.044118 | 0.039706 | 0.082353 | 0.082353 | 0.082353 | 0.082353 | 0.082353 | 0.082353 | 0 | 0.012493 | 0.243474 | 2,222 | 65 | 197 | 34.184615 | 0.79655 | 0.020252 | 0 | 0.038462 | 1 | 0 | 0.131494 | 0.012874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.134615 | 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 |
e23343d39271042700efe99ceb2f1a23388a5a3c | 1,388 | py | Python | display/views.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | 1 | 2015-03-17T04:13:47.000Z | 2015-03-17T04:13:47.000Z | display/views.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | 27 | 2015-04-14T20:18:24.000Z | 2015-06-16T20:01:06.000Z | display/views.py | liddiard/appletini | fa006e1b71ac60738bb5353e949676755530c781 | [
"MIT"
] | null | null | null | from rest_framework import viewsets, permissions
from . import serializers
from . import models
class CardSizeViewSet(viewsets.ModelViewSet):
permission_classes = (permissions.DjangoModelPermissionsOrAnonReadOnly,)
queryset = models.CardSize.objects.all()
serializer_class = serializers.CardSizeSerializer... | 33.853659 | 76 | 0.758646 | 118 | 1,388 | 8.610169 | 0.330508 | 0.07874 | 0.11811 | 0.145669 | 0.670276 | 0.528543 | 0.528543 | 0.492126 | 0.106299 | 0.106299 | 0 | 0 | 0.146254 | 1,388 | 40 | 77 | 34.7 | 0.857384 | 0 | 0 | 0.419355 | 0 | 0 | 0.058357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e23e5383410c1dad03f2adad73ff52f9f34e8720 | 2,026 | py | Python | darknet/python/darknet.py | jastion/darknet_ros | 39d21570b4e9f12205ae0ce1eada1bfddfc337b9 | [
"BSD-3-Clause"
] | 3 | 2018-06-25T01:58:48.000Z | 2019-07-24T02:11:33.000Z | darknet/python/darknet.py | jastion/darknet_ros | 39d21570b4e9f12205ae0ce1eada1bfddfc337b9 | [
"BSD-3-Clause"
] | 1 | 2018-04-17T12:09:57.000Z | 2018-04-17T12:09:57.000Z | darknet/python/darknet.py | zsll/darknet_ros_yolo3 | 4c190c2882ebdddc395ad9af83e1594ed4ce86f0 | [
"BSD-3-Clause"
] | 1 | 2019-03-12T17:54:42.000Z | 2019-03-12T17:54:42.000Z | from ctypes import *
class IMAGE(Structure):
_fields_ = [("w", c_int),
("h", c_int),
("c", c_int),
("data", POINTER(c_float))]
class METADATA(Structure):
_fields_ = [("classes", c_int),
("names", POINTER(c_char_p))]
lib = CDLL("/home/pjreddie/do... | 28.535211 | 84 | 0.65153 | 306 | 2,026 | 4.062092 | 0.251634 | 0.035398 | 0.024135 | 0.033789 | 0.241352 | 0.207562 | 0.168946 | 0.168946 | 0.168946 | 0.168946 | 0 | 0.006879 | 0.21076 | 2,026 | 70 | 85 | 28.942857 | 0.770482 | 0 | 0 | 0.206897 | 0 | 0 | 0.080494 | 0.043457 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017241 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e24dd13432521ba9a2a85fa76215cfa8e6458d59 | 346 | py | Python | fogmsg/master/config.py | mludolph/fogmsg | 9ecb4a309235b26503ee819288506fd30c3a6590 | [
"MIT"
] | null | null | null | fogmsg/master/config.py | mludolph/fogmsg | 9ecb4a309235b26503ee819288506fd30c3a6590 | [
"MIT"
] | null | null | null | fogmsg/master/config.py | mludolph/fogmsg | 9ecb4a309235b26503ee819288506fd30c3a6590 | [
"MIT"
] | 1 | 2021-09-26T16:23:29.000Z | 2021-09-26T16:23:29.000Z | class MasterConfig:
def __init__(self, args):
self.IP = args.ip
self.PORT = args.port
self.PERSISTENCE_DIR = args.persistence_dir
self.SENDER_QUEUE_LENGTH = args.sender_queue_length
self.SENDER_TIMEOUT = args.sender_timeout
self.UI_PORT = args.ui_port
self.CPU... | 34.6 | 59 | 0.676301 | 46 | 346 | 4.73913 | 0.434783 | 0.073395 | 0.155963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.248555 | 346 | 9 | 60 | 38.444444 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 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 |
e255652cd41bc33a52a74617b8b43e9becb9e939 | 49,766 | py | Python | bai2/constants.py | FundersClub/bai2 | 04a4efdeaa818e062a60fdaed3bfa610f330bd32 | [
"MIT"
] | null | null | null | bai2/constants.py | FundersClub/bai2 | 04a4efdeaa818e062a60fdaed3bfa610f330bd32 | [
"MIT"
] | null | null | null | bai2/constants.py | FundersClub/bai2 | 04a4efdeaa818e062a60fdaed3bfa610f330bd32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import namedtuple
from enum import Enum
CONTINUATION_CODE = '88'
class RecordCode(Enum):
file_header = '01'
group_header = '02'
account_identifier = '03'
transaction_detail = '16'
account_trailer = '49'
continuation = '88'
group_trailer = '98'
... | 94.253788 | 134 | 0.741771 | 5,009 | 49,766 | 7.371531 | 0.15572 | 0.132759 | 0.221265 | 0.158488 | 0.514489 | 0.270827 | 0.133815 | 0.060746 | 0.018958 | 0 | 0 | 0.064925 | 0.11329 | 49,766 | 527 | 135 | 94.432638 | 0.771007 | 0.000422 | 0 | 0 | 0 | 0 | 0.288041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003922 | 0 | 0.072549 | 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 |
e25761cba5890e779fe21197935764b043b6929f | 653 | py | Python | e2e/OrderHappyPathTest.py | ibm-cloud-architecture/vaccine-order-ms | c7581f8279c2c2e120f658586faae8e8b9bc6d79 | [
"Apache-2.0"
] | 3 | 2020-12-24T23:22:33.000Z | 2022-02-21T20:40:14.000Z | e2e/OrderHappyPathTest.py | ibm-cloud-architecture/vaccine-order-ms | c7581f8279c2c2e120f658586faae8e8b9bc6d79 | [
"Apache-2.0"
] | 3 | 2020-11-17T16:34:16.000Z | 2020-12-11T15:25:31.000Z | e2e/OrderHappyPathTest.py | ibm-cloud-architecture/vaccine-order-ms | c7581f8279c2c2e120f658586faae8e8b9bc6d79 | [
"Apache-2.0"
] | 3 | 2021-02-22T20:48:15.000Z | 2022-03-27T02:04:55.000Z | """
Given there is no order yet in the pool, the expected quantity is available
in at least two manufacturers:
when create an order via API
Verify order is in DB
Verify order is generated on kafka orders topic
Verify the fulfillment plan is updated with the new order
"""
import requests, unittest, os
try:
ORDER_... | 26.12 | 76 | 0.738132 | 98 | 653 | 4.72449 | 0.632653 | 0.086393 | 0.118791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009399 | 0.185299 | 653 | 25 | 77 | 26.12 | 0.860902 | 0.404288 | 0 | 0 | 1 | 0 | 0.196335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e258ccb6989e1430ab06453af7611cc130f3b060 | 1,209 | py | Python | tests/test016/__init__.py | marza-animation-planet/das | 1c7460dfdd5f138d8317c72900e90b23c0c28c7b | [
"MIT"
] | 4 | 2018-11-19T01:36:01.000Z | 2022-02-28T03:41:12.000Z | tests/test016/__init__.py | marza-animation-planet/das | 1c7460dfdd5f138d8317c72900e90b23c0c28c7b | [
"MIT"
] | 1 | 2021-12-26T11:57:07.000Z | 2022-03-16T07:18:01.000Z | tests/test016/__init__.py | marza-animation-planet/das | 1c7460dfdd5f138d8317c72900e90b23c0c28c7b | [
"MIT"
] | 2 | 2019-03-30T10:28:12.000Z | 2022-03-04T17:58:39.000Z | # -*- coding: utf8 -*-
import os
import unittest
import das # pylint: disable=import-error
class TestCase(unittest.TestCase):
TestDir = None
InputFile = None
OutputFile = None
@classmethod
def setUpClass(cls):
cls.TestDir = os.path.abspath(os.path.dirname(__file__))
cls.InputFile = cls.Test... | 25.1875 | 68 | 0.632754 | 149 | 1,209 | 5.073826 | 0.422819 | 0.05291 | 0.031746 | 0.047619 | 0.124339 | 0.066138 | 0 | 0 | 0 | 0 | 0 | 0.001064 | 0.222498 | 1,209 | 47 | 69 | 25.723404 | 0.803191 | 0.052936 | 0 | 0.114286 | 0 | 0 | 0.099036 | 0.019281 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.228571 | false | 0.028571 | 0.085714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e259c2ed0e894ffcb36effb7b108fb43e94cf19d | 3,059 | py | Python | mysql_tracer/cursor_provider.py | anthonyrichir/py-mysql-tracer | bd6623781d8af3ffc4fb0f7cbd4c7deffc55c8d0 | [
"MIT"
] | 1 | 2020-11-23T14:30:53.000Z | 2020-11-23T14:30:53.000Z | mysql_tracer/cursor_provider.py | anthonyrichir/py-mysql-tracer | bd6623781d8af3ffc4fb0f7cbd4c7deffc55c8d0 | [
"MIT"
] | 3 | 2019-03-11T08:35:26.000Z | 2021-02-04T16:01:45.000Z | mysql_tracer/cursor_provider.py | anthonyrichir/py-mysql-tracer | bd6623781d8af3ffc4fb0f7cbd4c7deffc55c8d0 | [
"MIT"
] | 1 | 2020-04-18T19:55:43.000Z | 2020-04-18T19:55:43.000Z | import logging
from getpass import getpass
import keyring
from mysql import connector
from mysql.connector.errors import ProgrammingError
log = logging.getLogger(__name__)
class CursorProvider:
instance = None
@classmethod
def get(cls):
if CursorProvider.instance is None:
raise Attr... | 44.333333 | 116 | 0.606407 | 330 | 3,059 | 5.457576 | 0.263636 | 0.057746 | 0.035536 | 0.04442 | 0.31538 | 0.31538 | 0.285397 | 0.285397 | 0.257635 | 0.257635 | 0 | 0.005155 | 0.302386 | 3,059 | 68 | 117 | 44.985294 | 0.8388 | 0 | 0 | 0.096154 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0.384615 | 0.096154 | 0 | 0.269231 | 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 |
e259e62e19aeadde7ed4841d39ed93ddbfc2a63f | 1,895 | py | Python | tests/unittests/test_spec.py | Scalr/pecha | 40525bfca9fe2bea319ac18ea454a24ead5c405a | [
"Apache-2.0"
] | 8 | 2016-07-21T13:03:22.000Z | 2020-07-18T13:34:09.000Z | tests/unittests/test_spec.py | Scalr/scalr-ctl | 40525bfca9fe2bea319ac18ea454a24ead5c405a | [
"Apache-2.0"
] | 18 | 2016-04-04T16:00:23.000Z | 2019-04-17T12:04:15.000Z | tests/unittests/test_spec.py | Scalr/pecha | 40525bfca9fe2bea319ac18ea454a24ead5c405a | [
"Apache-2.0"
] | 8 | 2017-01-03T00:13:18.000Z | 2019-05-14T17:53:40.000Z | __author__ = 'Dmitriy Korsakov'
from scalrctl import settings, spec
specs_dict = {}
count = 0
for path in settings.spec["paths"].keys():
methods = settings.spec["paths"][path].keys()
for method in methods:
if "parameters" != method:
if method not in specs_dict:
specs_dict[... | 29.153846 | 93 | 0.661741 | 257 | 1,895 | 4.688716 | 0.264591 | 0.059751 | 0.053112 | 0.06639 | 0.190041 | 0.098755 | 0.098755 | 0.06971 | 0 | 0 | 0 | 0.006684 | 0.210554 | 1,895 | 64 | 94 | 29.609375 | 0.798797 | 0 | 0 | 0 | 0 | 0 | 0.166067 | 0.031175 | 0 | 0 | 0 | 0 | 0.394737 | 0 | null | null | 0 | 0.026316 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e260f193c795e53a58bd61c01e742a0405319979 | 1,168 | py | Python | Scraping/Scraping_Instagram/insta_crawler/Post.py | ghassen1302/Interview_Code_Demonstration | fd9e2b313d3203e79e4f40bd52f82365508126d2 | [
"Apache-2.0"
] | null | null | null | Scraping/Scraping_Instagram/insta_crawler/Post.py | ghassen1302/Interview_Code_Demonstration | fd9e2b313d3203e79e4f40bd52f82365508126d2 | [
"Apache-2.0"
] | null | null | null | Scraping/Scraping_Instagram/insta_crawler/Post.py | ghassen1302/Interview_Code_Demonstration | fd9e2b313d3203e79e4f40bd52f82365508126d2 | [
"Apache-2.0"
] | null | null | null |
import os
import json
import time
from selenium import webdriver
# from .crawler.media import login
from .crawler.media import getpages
# from .crawler.media import getcomments
# from .crawler.crawler.spiders.profil import launch
# from webdriver_manager.chrome import ChromeDriverManager
username = 'jawherbouhouch75... | 33.371429 | 102 | 0.63613 | 132 | 1,168 | 5.424242 | 0.409091 | 0.083799 | 0.067039 | 0.092179 | 0.117318 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012776 | 0.262842 | 1,168 | 35 | 103 | 33.371429 | 0.818815 | 0.153253 | 0 | 0 | 0 | 0 | 0.068089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.083333 | 0.208333 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e261584c469036d1d2c1c831b9a7050bb045ba96 | 3,800 | py | Python | tests/jose/test_jws.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | 2 | 2021-02-22T22:12:23.000Z | 2021-02-22T22:48:33.000Z | tests/jose/test_jws.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | tests/jose/test_jws.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | import unittest
from psion.jose.exceptions import InvalidJWSHeader, UnsupportedAlgorithm
from psion.jose.jwk import JsonWebKey
from psion.jose.jws import JsonWebSignature, JsonWebSignatureHeader
from tests.jose.utils import load_json
class TestJsonWebSignatureHeader(unittest.TestCase):
def test_instantiate(self... | 33.928571 | 88 | 0.613421 | 312 | 3,800 | 7.400641 | 0.25641 | 0.051971 | 0.142919 | 0.210481 | 0.461672 | 0.378519 | 0.233867 | 0.164573 | 0.062365 | 0 | 0 | 0.041623 | 0.253947 | 3,800 | 111 | 89 | 34.234234 | 0.77284 | 0.013421 | 0 | 0.356322 | 0 | 0 | 0.171383 | 0.073679 | 0 | 0 | 0.002403 | 0.009009 | 0.229885 | 1 | 0.103448 | false | 0 | 0.08046 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e265174dc34a05e02af20e68788af5bc88fb098e | 774 | py | Python | Creational/SingletonPattern_With.Metaclass.py | javiermontenegro/Python_Design.Patterns | ab3643033ddba31cf41c920baae18648d8d15f14 | [
"MIT"
] | null | null | null | Creational/SingletonPattern_With.Metaclass.py | javiermontenegro/Python_Design.Patterns | ab3643033ddba31cf41c920baae18648d8d15f14 | [
"MIT"
] | null | null | null | Creational/SingletonPattern_With.Metaclass.py | javiermontenegro/Python_Design.Patterns | ab3643033ddba31cf41c920baae18648d8d15f14 | [
"MIT"
] | null | null | null | #********************************************************************
# Filename: SingletonPattern_With.Metaclass.py
# Author: Javier Montenegro (https://javiermontenegro.github.io/)
# Copyright:
# Details: This code is the implementation of the singleton pattern.
#************************************************... | 27.642857 | 85 | 0.554264 | 70 | 774 | 5.828571 | 0.671429 | 0.088235 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.173127 | 774 | 27 | 86 | 28.666667 | 0.63125 | 0.456072 | 0 | 0 | 0 | 0 | 0.019324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e2674f1069b98c8221f895781cbab2fb3be5a272 | 6,638 | py | Python | habitat_extensions/sensors.py | Felix2048/VLN-CE | 4ea21f2af0d869ae65dd6677a53e788233f93761 | [
"MIT"
] | 106 | 2020-05-11T00:47:23.000Z | 2022-03-31T13:15:18.000Z | habitat_extensions/sensors.py | Felix2048/VLN-CE | 4ea21f2af0d869ae65dd6677a53e788233f93761 | [
"MIT"
] | 30 | 2020-08-01T02:43:32.000Z | 2022-03-31T21:20:30.000Z | habitat_extensions/sensors.py | Felix2048/VLN-CE | 4ea21f2af0d869ae65dd6677a53e788233f93761 | [
"MIT"
] | 36 | 2020-06-16T01:18:20.000Z | 2022-03-09T17:15:48.000Z | from copy import deepcopy
from typing import Any
import numpy as np
from gym import Space, spaces
from habitat.config import Config
from habitat.core.registry import registry
from habitat.core.simulator import Sensor, SensorTypes, Simulator
from habitat.sims.habitat_simulator.actions import HabitatSimActions
from habi... | 33.695431 | 128 | 0.65125 | 816 | 6,638 | 5.101716 | 0.234069 | 0.042037 | 0.063416 | 0.069181 | 0.372568 | 0.367283 | 0.353831 | 0.350949 | 0.350949 | 0.332212 | 0 | 0.015917 | 0.233353 | 6,638 | 196 | 129 | 33.867347 | 0.802122 | 0.088732 | 0 | 0.357143 | 0 | 0 | 0.019176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.085714 | 0.114286 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e26c7e67e9591ea9cbc571de6d0a5c6afb53d3d1 | 4,396 | py | Python | blurr/modeling/core.py | bogdansalyp/blurr | 77351fb4585b2383ee1507cec9f6625787e4e368 | [
"Apache-2.0"
] | null | null | null | blurr/modeling/core.py | bogdansalyp/blurr | 77351fb4585b2383ee1507cec9f6625787e4e368 | [
"Apache-2.0"
] | null | null | null | blurr/modeling/core.py | bogdansalyp/blurr | 77351fb4585b2383ee1507cec9f6625787e4e368 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_modeling-core.ipynb (unless otherwise specified).
__all__ = ['hf_splitter', 'HF_BaseModelWrapper', 'HF_BaseModelCallback', 'blurr_module_summary']
# Cell
import torch, nlp
from transformers import *
from fastai.text.all import *
from fastai.callback.hook import _pri... | 37.896552 | 133 | 0.656506 | 718 | 4,396 | 3.809192 | 0.310585 | 0.028154 | 0.028154 | 0.006581 | 0.093236 | 0.062157 | 0.054845 | 0.036563 | 0 | 0 | 0 | 0.012157 | 0.195405 | 4,396 | 116 | 134 | 37.896552 | 0.761097 | 0.129208 | 0 | 0.073171 | 1 | 0.02439 | 0.177584 | 0.020215 | 0.012195 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.073171 | 0 | 0.268293 | 0.036585 | 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 |
e26ee88e6b5e68259fae2bf085bbbbf70bee2333 | 646 | py | Python | notebooks/inspect_images.py | shubhamagarwal92/visdial_conv | 237c853ebc72f5d4c072d581e919e1c434a2bf2e | [
"BSD-3-Clause"
] | 26 | 2020-05-20T08:52:03.000Z | 2022-03-24T07:38:17.000Z | notebooks/inspect_images.py | shubhamagarwal92/visdial_conv | 237c853ebc72f5d4c072d581e919e1c434a2bf2e | [
"BSD-3-Clause"
] | 21 | 2020-05-24T22:23:42.000Z | 2022-03-12T00:32:31.000Z | notebooks/inspect_images.py | shubhamagarwal92/visdial_conv | 237c853ebc72f5d4c072d581e919e1c434a2bf2e | [
"BSD-3-Clause"
] | 5 | 2020-09-26T17:54:53.000Z | 2021-12-04T15:11:41.000Z | import os
import glob
path_images_root = "/data/visdial/images/"
path_coco_train = os.path.join(path_images_root, "train2014")
path_coco_val = os.path.join(path_images_root, "val2014")
path_visdial_val = os.path.join(path_images_root, "VisualDialog_val2018")
path_visdial_test = os.path.join(path_images_root, "Visual... | 29.363636 | 75 | 0.766254 | 104 | 646 | 4.413462 | 0.182692 | 0.104575 | 0.174292 | 0.244009 | 0.62963 | 0.62963 | 0.577342 | 0.111111 | 0 | 0 | 0 | 0.026981 | 0.082043 | 646 | 21 | 76 | 30.761905 | 0.747049 | 0 | 0 | 0 | 0 | 0 | 0.126935 | 0.065015 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
e26f89b72a43df3f8af0c7df3d190a41dc3277c6 | 4,739 | py | Python | app.py | jcpowermac/flask-cap | 21eb8b2bb116b73372fe99195695f19100f875e3 | [
"Apache-2.0"
] | null | null | null | app.py | jcpowermac/flask-cap | 21eb8b2bb116b73372fe99195695f19100f875e3 | [
"Apache-2.0"
] | null | null | null | app.py | jcpowermac/flask-cap | 21eb8b2bb116b73372fe99195695f19100f875e3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from docker import Client
from flask import Flask, render_template, request, session, url_for, redirect, \
Response, abort
from flask_login import LoginManager, UserMixin, \
login_required, login_user, logout_user
from flask_socketio import SocketIO
import ps... | 27.235632 | 100 | 0.606035 | 549 | 4,739 | 5.067395 | 0.322404 | 0.050324 | 0.017254 | 0.018332 | 0.030194 | 0.030194 | 0.030194 | 0 | 0 | 0 | 0 | 0.004335 | 0.269888 | 4,739 | 173 | 101 | 27.393064 | 0.799711 | 0.053387 | 0 | 0.042735 | 0 | 0 | 0.110168 | 0.00581 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042735 | 0.068376 | null | null | 0.017094 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e27458419a7a1257a532e4d6f8ff9245db9cb4de | 414 | py | Python | products/migrations/0002_alter_product_thumbnail.py | akhtersoyeb/ECOMMERCE_API | 14384c2877d358b5a43d8bf995a13c0c2ec87ae9 | [
"MIT"
] | null | null | null | products/migrations/0002_alter_product_thumbnail.py | akhtersoyeb/ECOMMERCE_API | 14384c2877d358b5a43d8bf995a13c0c2ec87ae9 | [
"MIT"
] | null | null | null | products/migrations/0002_alter_product_thumbnail.py | akhtersoyeb/ECOMMERCE_API | 14384c2877d358b5a43d8bf995a13c0c2ec87ae9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-07 13:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='product',
name='thumbnail',
... | 21.789474 | 84 | 0.603865 | 44 | 414 | 5.613636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063123 | 0.272947 | 414 | 18 | 85 | 23 | 0.757475 | 0.108696 | 0 | 0 | 1 | 0 | 0.128065 | 0 | 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 |
e2748acb7dad7c6ae55782090390f17ed39ccf03 | 239 | py | Python | albow/input/FloatField.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | 6 | 2019-04-30T23:50:39.000Z | 2019-11-04T06:15:02.000Z | albow/input/FloatField.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | 73 | 2019-05-12T18:43:14.000Z | 2021-04-13T19:19:03.000Z | albow/input/FloatField.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | null | null | null |
from albow.input.Field import Field
class FloatField(Field):
"""
A control for editing values of type float.
"""
def __init__(self, width=None, **kwds):
self.type = float
super().__init__(width, **kwds)
| 18.384615 | 47 | 0.619247 | 30 | 239 | 4.666667 | 0.733333 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25523 | 239 | 12 | 48 | 19.916667 | 0.786517 | 0.179916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e2763de1660efe8b6bbe5f3abba9d7daa29c0bb5 | 11,678 | py | Python | sdk/python/pulumi_github/get_release.py | pulumi/pulumi-github | 303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2020-04-27T15:05:01.000Z | 2022-02-08T00:28:32.000Z | sdk/python/pulumi_github/get_release.py | pulumi/pulumi-github | 303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91 | [
"ECL-2.0",
"Apache-2.0"
] | 103 | 2020-05-01T17:36:32.000Z | 2022-03-31T15:26:35.000Z | sdk/python/pulumi_github/get_release.py | pulumi/pulumi-github | 303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-06-24T19:15:02.000Z | 2021-11-26T08:05:46.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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 ... | 34.652819 | 324 | 0.6323 | 1,408 | 11,678 | 4.989347 | 0.130682 | 0.02847 | 0.043274 | 0.081139 | 0.326263 | 0.23089 | 0.152313 | 0.112171 | 0.072171 | 0.059644 | 0 | 0.001048 | 0.264857 | 11,678 | 336 | 325 | 34.755952 | 0.817239 | 0.188902 | 0 | 0.130435 | 1 | 0 | 0.150078 | 0.006598 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.10628 | false | 0 | 0.024155 | 0.014493 | 0.241546 | 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 |
e27a52ed5d3a35f41bd9dded17d928144aaf7ce4 | 6,498 | py | Python | sdk/python/pulumi_google_native/compute/alpha/get_region_notification_endpoint.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/compute/alpha/get_region_notification_endpoint.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/compute/alpha/get_region_notification_endpoint.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 42.75 | 444 | 0.667282 | 715 | 6,498 | 5.841958 | 0.243357 | 0.052909 | 0.026814 | 0.050275 | 0.205889 | 0.110606 | 0.096241 | 0.045966 | 0.045966 | 0 | 0 | 0.003869 | 0.244229 | 6,498 | 151 | 445 | 43.033113 | 0.846671 | 0.20868 | 0 | 0.106796 | 1 | 0 | 0.150596 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106796 | false | 0 | 0.058252 | 0 | 0.271845 | 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 |
e27ba94b77268424a3203382556ad7b5b56b30ab | 555 | py | Python | Mundo 2_Estruturas de Controle/Desafio_42.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | Mundo 2_Estruturas de Controle/Desafio_42.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | Mundo 2_Estruturas de Controle/Desafio_42.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | a = float(input('Valor da primeira reta: '))
b = float(input('Valor da segunda reta: '))
c = float(input('Valor da terceira reta: '))
if (b - c) < a < b + c and (a - c) < b < a + c and (a - b) < c < a + b:
print('Com essas medidas o triangulo pode ser feito')
if a == b == c:
print('Este triangulo é EQU... | 37 | 71 | 0.562162 | 94 | 555 | 3.319149 | 0.319149 | 0.038462 | 0.048077 | 0.163462 | 0.346154 | 0.346154 | 0.153846 | 0.153846 | 0 | 0 | 0 | 0 | 0.281081 | 555 | 14 | 72 | 39.642857 | 0.781955 | 0 | 0 | 0 | 0 | 0 | 0.434234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 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 |
e27fa06265c81b4ddf54c9f91e1f53284ae8772e | 1,334 | py | Python | app/migrations/0004_auto_20200524_1603.py | sairamBikkina/sdp1 | e48cb01e8100259f95c16911f5fe6f843313464e | [
"MIT"
] | 5 | 2020-08-06T07:16:00.000Z | 2022-01-20T22:07:58.000Z | app/migrations/0004_auto_20200524_1603.py | sairamBikkina/sdp1 | e48cb01e8100259f95c16911f5fe6f843313464e | [
"MIT"
] | 2 | 2020-10-04T13:58:24.000Z | 2020-10-04T14:00:35.000Z | app/migrations/0004_auto_20200524_1603.py | sairamBikkina/sdp1 | e48cb01e8100259f95c16911f5fe6f843313464e | [
"MIT"
] | 3 | 2020-10-03T07:19:52.000Z | 2021-10-05T07:15:30.000Z | # Generated by Django 3.0.5 on 2020-05-24 10:33
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_auto_20200524_1557'),
]
operations = [
migrations.AlterField(
... | 29.644444 | 88 | 0.577211 | 131 | 1,334 | 5.748092 | 0.366412 | 0.063745 | 0.092961 | 0.146082 | 0.5166 | 0.5166 | 0.5166 | 0.5166 | 0.464807 | 0.464807 | 0 | 0.033991 | 0.316342 | 1,334 | 44 | 89 | 30.318182 | 0.791667 | 0.033733 | 0 | 0.552632 | 1 | 0 | 0.078477 | 0.017871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.157895 | 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 |
e2893d7c264b69a3989f9c7d1bbbe914ecb17762 | 381 | py | Python | AtCoder/AGC003/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 1 | 2018-11-25T04:15:45.000Z | 2018-11-25T04:15:45.000Z | AtCoder/AGC003/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | null | null | null | AtCoder/AGC003/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 2 | 2018-08-08T13:01:14.000Z | 2018-11-25T12:38:36.000Z | S = input()
n = S.count("N")
s = S.count("S")
e = S.count("E")
w = S.count("W")
home = False
if n and s:
if e and w:
print("Yes")
elif not e and not w:
print("Yes")
else:
print("No")
elif not n and not s:
if e and w:
print("Yes")
elif not e and not w:
print... | 14.111111 | 25 | 0.467192 | 67 | 381 | 2.656716 | 0.238806 | 0.134831 | 0.202247 | 0.078652 | 0.561798 | 0.561798 | 0.561798 | 0.561798 | 0.561798 | 0.561798 | 0 | 0 | 0.362205 | 381 | 26 | 26 | 14.653846 | 0.73251 | 0 | 0 | 0.636364 | 0 | 0 | 0.057743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.318182 | 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 |
e2897acaa87f989d417bc9f98f333f8ec70b1220 | 2,851 | py | Python | projects/ApproveDemo/apps/approve/helper.py | uliwebext/uliweb-redbreast-doc | dde0c1ad66ee454de2807a54b5273c51107d1997 | [
"MIT"
] | 1 | 2017-04-26T04:22:28.000Z | 2017-04-26T04:22:28.000Z | projects/ApproveDemo/apps/approve/helper.py | uliwebext/uliweb-redbreast-doc | dde0c1ad66ee454de2807a54b5273c51107d1997 | [
"MIT"
] | null | null | null | projects/ApproveDemo/apps/approve/helper.py | uliwebext/uliweb-redbreast-doc | dde0c1ad66ee454de2807a54b5273c51107d1997 | [
"MIT"
] | null | null | null |
from redbreast.serializable import Workflow, Task
WORKFLOW_SPEC_NAME = "ApproveWorkflow"
class ApproveHelper(object):
def __init__(self):
from uliweb import request
self.WORKFLOW_NAME = "ApproveWorkflow"
self._approve = None
self._workflow = None
self.operator = request.... | 29.697917 | 83 | 0.615223 | 327 | 2,851 | 5.085627 | 0.220183 | 0.072159 | 0.057727 | 0.027661 | 0.197234 | 0.16837 | 0.16837 | 0.16837 | 0.16837 | 0.16837 | 0 | 0.00101 | 0.305507 | 2,851 | 95 | 84 | 30.010526 | 0.838889 | 0.017187 | 0 | 0.242424 | 0 | 0 | 0.048676 | 0.020043 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106061 | 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 |
e28b2d46abb456d0f7b3d4c460da043fcf078784 | 1,312 | py | Python | Python/1. Python Basics/mit-6.00.1-python solutions/lec5prob9-semordnilap.py | okara83/Becoming-a-Data-Scientist | f09a15f7f239b96b77a2f080c403b2f3e95c9650 | [
"MIT"
] | null | null | null | Python/1. Python Basics/mit-6.00.1-python solutions/lec5prob9-semordnilap.py | okara83/Becoming-a-Data-Scientist | f09a15f7f239b96b77a2f080c403b2f3e95c9650 | [
"MIT"
] | null | null | null | Python/1. Python Basics/mit-6.00.1-python solutions/lec5prob9-semordnilap.py | okara83/Becoming-a-Data-Scientist | f09a15f7f239b96b77a2f080c403b2f3e95c9650 | [
"MIT"
] | 2 | 2022-02-09T15:41:33.000Z | 2022-02-11T07:47:40.000Z | # lec5prob9-semordnilap.py
# edX MITx 6.00.1x
# Introduction to Computer Science and Programming Using Python
# Lecture 5, problem 9
# A semordnilap is a word or a phrase that spells a different word when backwards
# ("semordnilap" is a semordnilap of "palindromes"). Here are some examples:
#
# nametag / gateman
# dog ... | 28.521739 | 81 | 0.678354 | 191 | 1,312 | 4.659686 | 0.518325 | 0.040449 | 0.033708 | 0.040449 | 0.038202 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030785 | 0.23247 | 1,312 | 45 | 82 | 29.155556 | 0.853029 | 0.696646 | 0 | 0 | 0 | 0 | 0.017291 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e28bba962bc8a259ce0a0ac1bd73bbe1af6428a0 | 148 | bzl | Python | test/com/facebook/buck/core/starlark/rule/testdata/print_works_in_impl/defs.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 8,027 | 2015-01-02T05:31:44.000Z | 2022-03-31T07:08:09.000Z | test/com/facebook/buck/core/starlark/rule/testdata/print_works_in_impl/defs.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 2,355 | 2015-01-01T15:30:53.000Z | 2022-03-30T20:21:16.000Z | test/com/facebook/buck/core/starlark/rule/testdata/print_works_in_impl/defs.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 1,280 | 2015-01-09T03:29:04.000Z | 2022-03-30T15:14:14.000Z | """ Module docstring """
def _impl(_ctx):
print("printing at debug level")
my_rule = rule(
attrs = {
},
implementation = _impl,
)
| 13.454545 | 36 | 0.587838 | 16 | 148 | 5.1875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263514 | 148 | 10 | 37 | 14.8 | 0.761468 | 0.108108 | 0 | 0 | 0 | 0 | 0.185484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.