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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d072278c0e5d9c057176c6c0833e3722c24d6dd | 387 | py | Python | cap-2/programa/tipos_xlrd.py | igoradriano/manipulacao-dados-python-bd | e3e47f15529d98e5c5887ebbb93c48924fceb665 | [
"MIT"
] | null | null | null | cap-2/programa/tipos_xlrd.py | igoradriano/manipulacao-dados-python-bd | e3e47f15529d98e5c5887ebbb93c48924fceb665 | [
"MIT"
] | null | null | null | cap-2/programa/tipos_xlrd.py | igoradriano/manipulacao-dados-python-bd | e3e47f15529d98e5c5887ebbb93c48924fceb665 | [
"MIT"
] | null | null | null | (
XL_CELL_EMPTY, #0
XL_CELL_TEXT, #1
XL_CELL_NUMBER, #2
XL_CELl_DATE, #3
XL_CELL_BOOLEAN,#4
XL_CELL_ERROR, #5
XL_CELL_BLANK, #6
) = range(7)
ctype_text = {
XL_CELL_EMPTY: 'empty',
XL_CELL_TEXT:'text',
XL_CELL_NUMBER:'number',
XL_CELl_DATE:'date',
XL_CELL_BOOLEAN:'... | 18.428571 | 30 | 0.627907 | 60 | 387 | 3.566667 | 0.316667 | 0.392523 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027304 | 0.242894 | 387 | 20 | 31 | 19.35 | 0.703072 | 0.018088 | 0 | 0 | 0 | 0 | 0.096515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
9d0cae5715acc827fc2e91417d8e747cc5dfa20c | 468 | py | Python | autodo/migrations/0002_auto_20210302_2155.py | baylessj/autodo | f37cfc47e29de8c7ed7d0b29e19e38b6ca344b21 | [
"Apache-2.0"
] | 46 | 2019-12-27T22:35:37.000Z | 2022-01-20T17:29:12.000Z | autodo/migrations/0002_auto_20210302_2155.py | baylessj/autodo | f37cfc47e29de8c7ed7d0b29e19e38b6ca344b21 | [
"Apache-2.0"
] | 300 | 2019-10-19T18:17:56.000Z | 2021-10-31T17:06:49.000Z | autodo/migrations/0002_auto_20210302_2155.py | baylessj/autodo | f37cfc47e29de8c7ed7d0b29e19e38b6ca344b21 | [
"Apache-2.0"
] | 5 | 2020-02-11T01:02:29.000Z | 2022-01-20T17:29:17.000Z | # Generated by Django 3.1.7 on 2021-03-02 21:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('autodo', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='car',
name='image',
),
... | 20.347826 | 49 | 0.549145 | 47 | 468 | 5.382979 | 0.744681 | 0.071146 | 0.094862 | 0.126482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063898 | 0.331197 | 468 | 22 | 50 | 21.272727 | 0.744409 | 0.096154 | 0 | 0.25 | 1 | 0 | 0.08076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d1241ddc1ab028b6f5f538a17967b31d97c2fff | 309 | py | Python | home/migrations/0018_delete_sectionrecommendation.py | Fourmeta/iogt | b21dd114ed1e708c9b25dcb17c57270d3c74b765 | [
"BSD-2-Clause"
] | null | null | null | home/migrations/0018_delete_sectionrecommendation.py | Fourmeta/iogt | b21dd114ed1e708c9b25dcb17c57270d3c74b765 | [
"BSD-2-Clause"
] | null | null | null | home/migrations/0018_delete_sectionrecommendation.py | Fourmeta/iogt | b21dd114ed1e708c9b25dcb17c57270d3c74b765 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 3.1.12 on 2021-06-25 12:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0017_merge_20210624_1913'),
]
operations = [
migrations.DeleteModel(
name='SectionRecommendation',
),
]
| 18.176471 | 48 | 0.621359 | 32 | 309 | 5.90625 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142222 | 0.271845 | 309 | 16 | 49 | 19.3125 | 0.697778 | 0.148867 | 0 | 0 | 1 | 0 | 0.187739 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d265538255adbe0a85782b061d23830ffc36f1f | 5,027 | py | Python | rfcx_species_audio_detection/spectrogram_processor.py | WNoxchi/rfcx_species_audio_detection | e17fdad0880e5975f0ddd735d140ef5365a7e287 | [
"Apache-2.0"
] | null | null | null | rfcx_species_audio_detection/spectrogram_processor.py | WNoxchi/rfcx_species_audio_detection | e17fdad0880e5975f0ddd735d140ef5365a7e287 | [
"Apache-2.0"
] | null | null | null | rfcx_species_audio_detection/spectrogram_processor.py | WNoxchi/rfcx_species_audio_detection | e17fdad0880e5975f0ddd735d140ef5365a7e287 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_spectrogram_processor.ipynb (unless otherwise specified).
__all__ = ['parser', 'args', 'fpath', 'num_cpus', 'serial', 'n_fft', 'hop_length', 'n_mels', 'mel_n_fft',
'mel_hop_length', 'frq', 'mel', 'compute_spectrogram', 'compute_mel_spectrogram', 'write_spectrog... | 38.669231 | 126 | 0.713149 | 776 | 5,027 | 4.373711 | 0.243557 | 0.032999 | 0.018562 | 0.034473 | 0.283736 | 0.225398 | 0.197702 | 0.18739 | 0.169711 | 0.161461 | 0 | 0.009727 | 0.141038 | 5,027 | 130 | 127 | 38.669231 | 0.775822 | 0.115377 | 0 | 0.071429 | 1 | 0.02381 | 0.245236 | 0.08235 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.047619 | false | 0 | 0.142857 | 0.02381 | 0.214286 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d26ec8651bf7c4fd493eae313dfa96a8857e12e | 285 | py | Python | Python-Programs/medium.py | Manasranjanpati/Intern_training | 28a1ef3f55cbf85d6525b76e98ed3fdb1663d5e6 | [
"MIT"
] | null | null | null | Python-Programs/medium.py | Manasranjanpati/Intern_training | 28a1ef3f55cbf85d6525b76e98ed3fdb1663d5e6 | [
"MIT"
] | null | null | null | Python-Programs/medium.py | Manasranjanpati/Intern_training | 28a1ef3f55cbf85d6525b76e98ed3fdb1663d5e6 | [
"MIT"
] | null | null | null | def bigger(a,b):
if a>b:
return a
else:
return b
def biggest(a,b,c):
return bigger(a,bigger(b,c))
def medium(a,b,c):
big=biggest(a,b,c)
if big == a:
return bigger(b,c)
if big == b:
return bigger(a,c)
else:
return bigger(a,b)
print medium(7,8,4)
| 14.25 | 31 | 0.575439 | 57 | 285 | 2.877193 | 0.263158 | 0.073171 | 0.054878 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.25614 | 285 | 19 | 32 | 15 | 0.759434 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d2d20f044f4c038bee200e26a87a413ab88ca0d | 570 | py | Python | Level2/find_prime_number.py | chae-heechan/Programmers_Python_Algorithm_Study | c61af0b1b97d790e2332581eb0b7da42c3e510fa | [
"MIT"
] | null | null | null | Level2/find_prime_number.py | chae-heechan/Programmers_Python_Algorithm_Study | c61af0b1b97d790e2332581eb0b7da42c3e510fa | [
"MIT"
] | null | null | null | Level2/find_prime_number.py | chae-heechan/Programmers_Python_Algorithm_Study | c61af0b1b97d790e2332581eb0b7da42c3e510fa | [
"MIT"
] | null | null | null | import itertools
def solution(numbers):
prime_number = []
for length in range(1, len(numbers)+1):
for number in itertools.permutations(numbers, length):
number = int(''.join(number))
for i in range(2, int(number**0.5)+1):
if number % i == 0:
... | 25.909091 | 62 | 0.568421 | 73 | 570 | 4.315068 | 0.369863 | 0.314286 | 0.161905 | 0.114286 | 0.190476 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0.028871 | 0.331579 | 570 | 21 | 63 | 27.142857 | 0.7979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 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 |
9d31348688b40837a08559a83a7840995b40905e | 1,335 | py | Python | migrations/normalize_user_course_ratings.py | noryb009/rmc | 2c9c6368b6cd5c4996645eb1c318aaddc7b401f3 | [
"MIT"
] | 164 | 2015-01-14T00:20:02.000Z | 2022-03-10T19:55:02.000Z | migrations/normalize_user_course_ratings.py | noryb009/rmc | 2c9c6368b6cd5c4996645eb1c318aaddc7b401f3 | [
"MIT"
] | 142 | 2015-01-01T02:49:13.000Z | 2022-03-11T23:18:17.000Z | migrations/normalize_user_course_ratings.py | noryb009/rmc | 2c9c6368b6cd5c4996645eb1c318aaddc7b401f3 | [
"MIT"
] | 79 | 2015-01-19T03:32:31.000Z | 2021-08-09T22:53:10.000Z | import rmc.models as m
import rmc.shared.constants as c
import mongoengine as me
def normalize_user_course_ratings():
"""Normalize user course ratings to be 0/1 for Yes/No. Before it was
0.2,0.4,0.6,0.8.1.0 OR possible 0.0,0.25,0.5,0.75,1.0"""
num_changes = [0]
def normalize(value):
# Range... | 24.722222 | 72 | 0.600749 | 198 | 1,335 | 3.89899 | 0.434343 | 0.062176 | 0.073834 | 0.101036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045113 | 0.302622 | 1,335 | 53 | 73 | 25.188679 | 0.784103 | 0.065918 | 0 | 0.060606 | 0 | 0 | 0.039462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.090909 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d332dbfbb886487be91b8ff69ee06cfbc02a7b4 | 1,546 | py | Python | weather.py | Lee-Kevin/VoiceAssistant | da37dc6b2bb57d7def5595d515502a37786ff853 | [
"MIT"
] | null | null | null | weather.py | Lee-Kevin/VoiceAssistant | da37dc6b2bb57d7def5595d515502a37786ff853 | [
"MIT"
] | null | null | null | weather.py | Lee-Kevin/VoiceAssistant | da37dc6b2bb57d7def5595d515502a37786ff853 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import urllib
import logging
import time
logging.basicConfig(level='INFO')
class weatherReport():
def __init__(self,city):
self.Flag = False
self.weather_desc = None
self.temperature = None
self.pressure = None... | 33.608696 | 140 | 0.580207 | 175 | 1,546 | 5.022857 | 0.422857 | 0.045506 | 0.029579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030658 | 0.282665 | 1,546 | 46 | 141 | 33.608696 | 0.761948 | 0.027167 | 0 | 0.051282 | 0 | 0 | 0.155689 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | 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 |
9d357fceb22be874c7466b3c46bff4ae0265e941 | 6,782 | py | Python | ESMF/src/addon/ESMPy/src/ESMF/fragments/extras.py | joeylamcy/gchp | 0e1676300fc91000ecb43539cabf1f342d718fb3 | [
"NCSA",
"Apache-2.0",
"MIT"
] | 1 | 2018-07-05T16:48:58.000Z | 2018-07-05T16:48:58.000Z | ESMF/src/addon/ESMPy/src/ESMF/fragments/extras.py | joeylamcy/gchp | 0e1676300fc91000ecb43539cabf1f342d718fb3 | [
"NCSA",
"Apache-2.0",
"MIT"
] | 1 | 2022-03-04T16:12:02.000Z | 2022-03-04T16:12:02.000Z | ESMF/src/addon/ESMPy/src/ESMF/fragments/extras.py | joeylamcy/gchp | 0e1676300fc91000ecb43539cabf1f342d718fb3 | [
"NCSA",
"Apache-2.0",
"MIT"
] | null | null | null | # $Id$
"""
utilities module - most of these routines are not yet implemented.
"""
#### IMPORT LIBRARIES #########################################################
import ctypes as ct
import numpy as np
from constants import *
from loadESMF import _ESMF
#### CLASS DEFINITIONS ########################################... | 35.322917 | 86 | 0.611472 | 797 | 6,782 | 4.998745 | 0.180678 | 0.027108 | 0.02761 | 0.026355 | 0.421938 | 0.353665 | 0.255773 | 0.191516 | 0.167169 | 0.115964 | 0 | 0.002353 | 0.248157 | 6,782 | 191 | 87 | 35.507853 | 0.778976 | 0.031112 | 0 | 0.117021 | 0 | 0 | 0.080877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.053191 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d41d53f165e238b28505bc46aaa12a1ef16ab0a | 2,825 | py | Python | pywren_ibm_cloud/__init__.py | gerardparis/pywren-ibm-cloud | ca69bed54f5bd5157bcda961b86dbfcfecf3c54a | [
"Apache-2.0"
] | null | null | null | pywren_ibm_cloud/__init__.py | gerardparis/pywren-ibm-cloud | ca69bed54f5bd5157bcda961b86dbfcfecf3c54a | [
"Apache-2.0"
] | null | null | null | pywren_ibm_cloud/__init__.py | gerardparis/pywren-ibm-cloud | ca69bed54f5bd5157bcda961b86dbfcfecf3c54a | [
"Apache-2.0"
] | null | null | null | #
# (C) Copyright IBM Corp. 2019
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 36.688312 | 74 | 0.710088 | 328 | 2,825 | 5.823171 | 0.27439 | 0.131937 | 0.094241 | 0.087958 | 0.659162 | 0.659162 | 0.659162 | 0.659162 | 0.659162 | 0.659162 | 0 | 0.003653 | 0.224779 | 2,825 | 76 | 75 | 37.171053 | 0.868493 | 0.229735 | 0 | 0.681818 | 0 | 0 | 0.013705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
9d4423d5b878e7d311a57ffe0167eacad5b03a19 | 4,642 | py | Python | receiver/parse/data/carbon_pb2.py | dvanders/go-carbon | 9458c7e54ec6e43bf9cc3336a5d37dfe9ec82416 | [
"MIT"
] | 722 | 2015-02-16T09:16:57.000Z | 2020-07-01T08:45:01.000Z | receiver/parse/data/carbon_pb2.py | dvanders/go-carbon | 9458c7e54ec6e43bf9cc3336a5d37dfe9ec82416 | [
"MIT"
] | 232 | 2015-02-26T22:17:40.000Z | 2020-07-03T09:51:00.000Z | receiver/parse/data/carbon_pb2.py | dvanders/go-carbon | 9458c7e54ec6e43bf9cc3336a5d37dfe9ec82416 | [
"MIT"
] | 151 | 2015-02-26T18:06:34.000Z | 2020-06-29T07:56:14.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: carbon.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflec... | 28.304878 | 316 | 0.724903 | 586 | 4,642 | 5.452218 | 0.225256 | 0.04507 | 0.04507 | 0.037559 | 0.533646 | 0.465728 | 0.444444 | 0.444444 | 0.36651 | 0.36651 | 0 | 0.035374 | 0.141318 | 4,642 | 163 | 317 | 28.478528 | 0.766182 | 0.061396 | 0 | 0.566176 | 1 | 0.007353 | 0.127845 | 0.066452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044118 | 0 | 0.044118 | 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 |
9d4b0536787b9d6b695de223457820586f6c9054 | 1,292 | py | Python | across/clients.py | qiwihui/across-py | 7017c49d34ad79200cba72ab4be82b5d8f7f3c80 | [
"MIT"
] | 2 | 2022-02-21T17:19:14.000Z | 2022-02-23T01:35:29.000Z | across/clients.py | qiwihui/across-py | 7017c49d34ad79200cba72ab4be82b5d8f7f3c80 | [
"MIT"
] | null | null | null | across/clients.py | qiwihui/across-py | 7017c49d34ad79200cba72ab4be82b5d8f7f3c80 | [
"MIT"
] | null | null | null | import typing
import json
from pathlib import Path
from web3 import Web3
from web3.providers import BaseProvider
from web3.contract import Contract
class BridgePool:
"""
A class for interacting with the bridge pool contract.
"""
@staticmethod
def connect(address: str, provider: BaseProvider) -> ... | 27.489362 | 73 | 0.642415 | 148 | 1,292 | 5.445946 | 0.351351 | 0.034739 | 0.022333 | 0.049628 | 0.598015 | 0.598015 | 0.531017 | 0.531017 | 0.531017 | 0.531017 | 0 | 0.035069 | 0.271672 | 1,292 | 46 | 74 | 28.086957 | 0.821467 | 0.102167 | 0 | 0.516129 | 0 | 0 | 0.087688 | 0.085917 | 0 | 0 | 0.037201 | 0.021739 | 0 | 1 | 0.096774 | false | 0 | 0.193548 | 0 | 0.483871 | 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 |
9d4b517f4bcf60669ac7c78e98e8e1a5f5682105 | 630 | py | Python | bin/all_profiles.py | pauldoomgov/aws-admin | f5ad97a72b3e72f3c1364b57ff93b45098d1e979 | [
"CC0-1.0"
] | null | null | null | bin/all_profiles.py | pauldoomgov/aws-admin | f5ad97a72b3e72f3c1364b57ff93b45098d1e979 | [
"CC0-1.0"
] | null | null | null | bin/all_profiles.py | pauldoomgov/aws-admin | f5ad97a72b3e72f3c1364b57ff93b45098d1e979 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# Runs an AWS CLI subcommand across all profiles in your AWS configuration file by replacing `aws` with `./all_profiles.py`.
#
# ./all_profiles.py [subcommand] [args]
#
# Useful in conjunction with the config file created by Terraform.
#
# https://github.com/18F/aws-admin#locally
#
# Example us... | 24.230769 | 124 | 0.719048 | 89 | 630 | 5.022472 | 0.629213 | 0.098434 | 0.087248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013109 | 0.152381 | 630 | 25 | 125 | 25.2 | 0.82397 | 0.598413 | 0 | 0 | 0 | 0 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d5395aa27b80dddff8032344b3b3aec1223e4e8 | 1,858 | py | Python | main.py | minihays/AndisBookClub | 418607904b4ef17f42ebfcea61b8d135904666f0 | [
"Apache-2.0"
] | null | null | null | main.py | minihays/AndisBookClub | 418607904b4ef17f42ebfcea61b8d135904666f0 | [
"Apache-2.0"
] | null | null | null | main.py | minihays/AndisBookClub | 418607904b4ef17f42ebfcea61b8d135904666f0 | [
"Apache-2.0"
] | null | null | null | from flask import Flask,request,render_template
from google.appengine.ext import ndb
app = Flask(__name__)
app.config['DEBUG'] = True
# Note: We don't need to call run() since our application is embedded within
# the App Engine WSGI application server.
class Poll(ndb.Model):
content = ndb.StringProperty()
@cl... | 23.225 | 76 | 0.677072 | 261 | 1,858 | 4.750958 | 0.452107 | 0.062097 | 0.022581 | 0.027419 | 0.164516 | 0.116129 | 0.116129 | 0.116129 | 0.116129 | 0.116129 | 0 | 0.01616 | 0.167384 | 1,858 | 79 | 77 | 23.518987 | 0.785391 | 0.282024 | 0 | 0.2 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d556e6a499a591e0a44ee66e08c672e6a46c5cf | 1,124 | py | Python | aaaaa/test01.py | manlucas/atom | 94963fc6fdfd0568473ee68e9d1631f421265359 | [
"Apache-2.0"
] | null | null | null | aaaaa/test01.py | manlucas/atom | 94963fc6fdfd0568473ee68e9d1631f421265359 | [
"Apache-2.0"
] | 8 | 2020-06-06T00:34:57.000Z | 2021-06-10T22:30:24.000Z | aaaaa/test01.py | manlucas/atom | 94963fc6fdfd0568473ee68e9d1631f421265359 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from Crypto.Cipher import AES
from Crypto import Random
import logging
logger = logging.getLogger("root")
AES_KEY = '73f40f2c57eae727a4be171009cecf89'
def aes_encrypt(data):
if data:
bs = AES.block_size
pad = lambda s: s + (bs - len(s) % bs) * chr(bs - len(s) % bs)
... | 23.914894 | 70 | 0.58363 | 148 | 1,124 | 4.297297 | 0.378378 | 0.037736 | 0.031447 | 0.044025 | 0.176101 | 0.113208 | 0.113208 | 0.113208 | 0.113208 | 0.113208 | 0 | 0.037267 | 0.283808 | 1,124 | 47 | 71 | 23.914894 | 0.752795 | 0.018683 | 0 | 0.228571 | 0 | 0 | 0.068058 | 0.029038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.114286 | 0.085714 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9d56130f60e245189f546002f925a6de7c43ed1f | 2,440 | py | Python | lsassy/dumpmethod/mirrordump.py | scopedsecurity/lsassy | 43763dd593ac176f5fbd1e774fc5412c30c352af | [
"MIT"
] | 1,212 | 2019-12-03T15:10:35.000Z | 2022-03-27T03:17:53.000Z | lsassy/dumpmethod/mirrordump.py | scopedsecurity/lsassy | 43763dd593ac176f5fbd1e774fc5412c30c352af | [
"MIT"
] | 41 | 2019-12-12T14:08:53.000Z | 2022-03-03T08:15:18.000Z | lsassy/dumpmethod/mirrordump.py | scopedsecurity/lsassy | 43763dd593ac176f5fbd1e774fc5412c30c352af | [
"MIT"
] | 170 | 2019-12-03T20:04:14.000Z | 2022-03-13T09:05:31.000Z | import logging
import os
import time
import base64
import random
import string
from lsassy.impacketfile import ImpacketFile
from lsassy.dumpmethod import IDumpMethod
class DumpMethod(IDumpMethod):
def __init__(self, session, timeout):
super().__init__(session, timeout)
self.mirrordump = "MirrorD... | 38.125 | 134 | 0.658607 | 274 | 2,440 | 5.627737 | 0.310219 | 0.254215 | 0.142672 | 0.108949 | 0.254864 | 0.184825 | 0.063554 | 0.063554 | 0 | 0 | 0 | 0.001626 | 0.243852 | 2,440 | 63 | 135 | 38.730159 | 0.834146 | 0.006967 | 0 | 0.058824 | 0 | 0 | 0.100372 | 0.018587 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.156863 | 0 | 0.352941 | 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 |
9d606bc58b436b44d159a2d4a2bfa6fd8143c76e | 871 | py | Python | savageml/utility/loss_functions.py | savagewil/SavageML | d5aa9a5305b5de088e3bf32778252c877faec41d | [
"MIT"
] | null | null | null | savageml/utility/loss_functions.py | savagewil/SavageML | d5aa9a5305b5de088e3bf32778252c877faec41d | [
"MIT"
] | null | null | null | savageml/utility/loss_functions.py | savagewil/SavageML | d5aa9a5305b5de088e3bf32778252c877faec41d | [
"MIT"
] | null | null | null | from enum import Enum
import numpy as np
def mean_squared_error(observed_value: np.ndarray, predicted_value: np.ndarray, axis: tuple = None) -> np.ndarray:
if axis is None:
return np.mean(np.square(np.subtract(observed_value, predicted_value)))
else:
return np.mean(np.square(np.subtract(obser... | 33.5 | 125 | 0.746269 | 123 | 871 | 5.097561 | 0.268293 | 0.124402 | 0.102073 | 0.14673 | 0.685805 | 0.685805 | 0.685805 | 0.685805 | 0.685805 | 0.685805 | 0 | 0.00542 | 0.152698 | 871 | 25 | 126 | 34.84 | 0.844173 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.75 | 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 |
19ba27cb468f682f3d47fbaa2e0aea7dafe9f274 | 977 | py | Python | src/haro/plugins/create_models.py | beproud/beproudbot | 3b6bf0516c543e0667eb117a1114e1f994aa82fb | [
"MIT"
] | 12 | 2017-11-21T06:01:44.000Z | 2021-04-10T16:30:11.000Z | src/haro/plugins/create_models.py | beproud/beproudbot | 3b6bf0516c543e0667eb117a1114e1f994aa82fb | [
"MIT"
] | 181 | 2016-10-18T04:11:22.000Z | 2021-12-16T02:56:26.000Z | src/haro/plugins/create_models.py | beproud/beproudbot | 3b6bf0516c543e0667eb117a1114e1f994aa82fb | [
"MIT"
] | 4 | 2017-11-22T04:34:31.000Z | 2018-07-23T13:14:10.000Z | import datetime
from sqlalchemy import Column, Integer, Unicode, DateTime, ForeignKey
from sqlalchemy.orm import relation
from db import Base
class CreateCommand(Base):
"""語録を登録するコマンドを管理するModel
"""
__tablename__ = 'create_command'
id = Column(Integer, primary_key=True)
name = Column(Unicode(100)... | 29.606061 | 75 | 0.707267 | 106 | 977 | 6.386792 | 0.386792 | 0.115214 | 0.070901 | 0.106352 | 0.406204 | 0.363368 | 0.277696 | 0.277696 | 0.277696 | 0.277696 | 0 | 0.016169 | 0.177073 | 977 | 32 | 76 | 30.53125 | 0.825871 | 0.053224 | 0 | 0.285714 | 0 | 0 | 0.074807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
19cb85ab7eb1fa63a777e7048149427af18e4270 | 948 | py | Python | test/app/fake_client/fake_client.py | abuhabuh/flask-datadog-monitor | 8edf4872027fe609638a5aa4decb6125a335ae6d | [
"MIT"
] | 1 | 2021-05-26T14:56:30.000Z | 2021-05-26T14:56:30.000Z | test/app/fake_client/fake_client.py | abuhabuh/flask-datadog | 8edf4872027fe609638a5aa4decb6125a335ae6d | [
"MIT"
] | null | null | null | test/app/fake_client/fake_client.py | abuhabuh/flask-datadog | 8edf4872027fe609638a5aa4decb6125a335ae6d | [
"MIT"
] | null | null | null | """Fake client that polls different API endpoints
"""
import datetime
import logging
import time
import requests
logging.basicConfig(level=logging.DEBUG)
def run_requests():
host = 'http://test-app:5000'
paths = [
'/',
'/',
'/base-test?resp=200',
'/base-test?resp=500',
... | 20.608696 | 83 | 0.57384 | 122 | 948 | 4.319672 | 0.459016 | 0.187856 | 0.204934 | 0.144213 | 0.208729 | 0.208729 | 0.136622 | 0.136622 | 0.136622 | 0 | 0 | 0.023513 | 0.237342 | 948 | 45 | 84 | 21.066667 | 0.705394 | 0.048523 | 0 | 0.3125 | 0 | 0 | 0.311732 | 0.027933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.15625 | 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 |
19cd3e5eae6993e02dc0701f127d1ef2daa8453e | 2,099 | py | Python | Lab 02/180123019_Jay_Sabale_q2.py | ElProfesor18/MA-323_Monte_Carlo_Simulation | 24efd6ba1d50b00100d15ec2ef5d3fc5217f93a7 | [
"MIT"
] | null | null | null | Lab 02/180123019_Jay_Sabale_q2.py | ElProfesor18/MA-323_Monte_Carlo_Simulation | 24efd6ba1d50b00100d15ec2ef5d3fc5217f93a7 | [
"MIT"
] | null | null | null | Lab 02/180123019_Jay_Sabale_q2.py | ElProfesor18/MA-323_Monte_Carlo_Simulation | 24efd6ba1d50b00100d15ec2ef5d3fc5217f93a7 | [
"MIT"
] | null | null | null | from numpy import random
import numpy as np
import matplotlib.pyplot as plt
import math
### Defining theta
theta = math.pi/4
### Generates count number of random values in the range [0, 1]
def getU(count):
u = []
for i in range(count):
key = random.rand()
u.append(key)
return u
def getX(u):
x = []
for t in... | 17.788136 | 89 | 0.628871 | 335 | 2,099 | 3.889552 | 0.355224 | 0.004605 | 0.013814 | 0.010744 | 0.066002 | 0.015349 | 0 | 0 | 0 | 0 | 0 | 0.034503 | 0.185326 | 2,099 | 117 | 90 | 17.940171 | 0.727485 | 0.088137 | 0 | 0.053333 | 1 | 0 | 0.099736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0 | 0.053333 | 0 | 0.186667 | 0.08 | 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 |
19d2969a7be2503854f3b559659af4951288eb2d | 1,358 | py | Python | src/distriblists/migrations/0003_auto_20210630_1516.py | PhaseDMS/phase | 4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e | [
"MIT"
] | 2 | 2021-09-10T19:40:30.000Z | 2022-01-31T07:15:51.000Z | src/distriblists/migrations/0003_auto_20210630_1516.py | PhaseDMS/phase | 4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e | [
"MIT"
] | null | null | null | src/distriblists/migrations/0003_auto_20210630_1516.py | PhaseDMS/phase | 4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e | [
"MIT"
] | 1 | 2021-09-10T19:40:42.000Z | 2021-09-10T19:40:42.000Z | # Generated by Django 3.2.4 on 2021-06-30 13:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('distriblists', '0002_cop... | 42.4375 | 241 | 0.696613 | 156 | 1,358 | 5.801282 | 0.371795 | 0.035359 | 0.070718 | 0.092818 | 0.555801 | 0.528177 | 0.333702 | 0.220994 | 0.137017 | 0.137017 | 0 | 0.017257 | 0.189249 | 1,358 | 31 | 242 | 43.806452 | 0.804723 | 0.033137 | 0 | 0.36 | 1 | 0 | 0.176964 | 0.055683 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 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 |
19d2ff71e7242e96b7f6300dd37200e20530769b | 507 | py | Python | blog/migrations/0003_auto_20200111_2220.py | dushyant1singh1/blog-applicaion | b058a89c23897918f38f4dd22650af3d65c0e3ec | [
"MIT"
] | 3 | 2020-01-11T13:43:04.000Z | 2021-06-05T14:42:51.000Z | blog/migrations/0003_auto_20200111_2220.py | dushyant1singh1/blog-applicaion | b058a89c23897918f38f4dd22650af3d65c0e3ec | [
"MIT"
] | null | null | null | blog/migrations/0003_auto_20200111_2220.py | dushyant1singh1/blog-applicaion | b058a89c23897918f38f4dd22650af3d65c0e3ec | [
"MIT"
] | 2 | 2020-01-11T13:39:33.000Z | 2020-10-10T12:50:32.000Z | # Generated by Django 2.2.6 on 2020-01-11 16:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_post_category'),
]
operations = [
migrations.AlterField(
model_name='post',
name='category',
... | 26.684211 | 179 | 0.595661 | 54 | 507 | 5.518519 | 0.722222 | 0.100671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.240631 | 507 | 18 | 180 | 28.166667 | 0.719481 | 0.088757 | 0 | 0 | 1 | 0 | 0.219565 | 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 |
19d30f28367ad451dc0e2e8bd09520d7c92d67e8 | 2,473 | py | Python | boxcut.py | peterwinter/boxcluster | 079452dd029a45390f0347e22df3fce048210389 | [
"MIT"
] | 1 | 2016-11-14T22:23:25.000Z | 2016-11-14T22:23:25.000Z | boxcut.py | peterwinter/boxcluster | 079452dd029a45390f0347e22df3fce048210389 | [
"MIT"
] | null | null | null | boxcut.py | peterwinter/boxcluster | 079452dd029a45390f0347e22df3fce048210389 | [
"MIT"
] | null | null | null | import numpy as np
from itertools import count
from .boxlist import BoxList
from .anneal import Annealer
class BoxCut(Annealer):
maximize = False
def __init__(self, matrix):
self.matrix_size = len(matrix)
self.matrix = matrix
self._since_last_move = 0
self._moves_this_temp = 0... | 28.755814 | 64 | 0.593207 | 278 | 2,473 | 5.05036 | 0.302158 | 0.049858 | 0.045584 | 0.036325 | 0.250712 | 0.250712 | 0.250712 | 0.250712 | 0.250712 | 0.250712 | 0 | 0.017042 | 0.335625 | 2,473 | 85 | 65 | 29.094118 | 0.837492 | 0.058229 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.109375 | false | 0 | 0.0625 | 0 | 0.265625 | 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 |
19d8cc6d8b499b9a8fc2b3e4ecf4a5be82dd0ed8 | 1,596 | py | Python | V0.5 Password-Generator.py | horizonger/Password-Generator | 159d01ff0fb9820c0f0af2138f1e6e0d7c67cbe1 | [
"MIT"
] | 1 | 2020-09-06T11:02:08.000Z | 2020-09-06T11:02:08.000Z | V0.5 Password-Generator.py | horizonger/Password-Generator | 159d01ff0fb9820c0f0af2138f1e6e0d7c67cbe1 | [
"MIT"
] | null | null | null | V0.5 Password-Generator.py | horizonger/Password-Generator | 159d01ff0fb9820c0f0af2138f1e6e0d7c67cbe1 | [
"MIT"
] | 1 | 2020-09-02T08:46:00.000Z | 2020-09-02T08:46:00.000Z | #This version can take note of passwords to the text file
# Modules.
import string
import random
# I just wanted to do it this way.
# I know there are a lot of solution for this
# Write to csv file part
def file_write(out_file, name):
with open("passwords.txt", "a") as pass_file:
pass_file.write("\n")
... | 29.555556 | 79 | 0.635965 | 224 | 1,596 | 4.392857 | 0.4375 | 0.035569 | 0.028455 | 0.036585 | 0.093496 | 0.093496 | 0.093496 | 0.093496 | 0.093496 | 0.093496 | 0 | 0.003422 | 0.267544 | 1,596 | 53 | 80 | 30.113208 | 0.838323 | 0.22995 | 0 | 0.114286 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.514286 | 0.057143 | 0 | 0.085714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
19e077f67f01647c1bda4bfdb561840b99533086 | 5,725 | py | Python | xsoccer/analysis/management/commands/analysis5.py | awyrough/xsoccer | 5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d | [
"MIT"
] | null | null | null | xsoccer/analysis/management/commands/analysis5.py | awyrough/xsoccer | 5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d | [
"MIT"
] | null | null | null | xsoccer/analysis/management/commands/analysis5.py | awyrough/xsoccer | 5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d | [
"MIT"
] | null | null | null | """
Objectives / Roadmap:
Types of analysis possible:
- Compare player to past version of himself:
PoI = player
Interest Period = current Date range
Comparison Player Pool = player
Comparison period = past date range
- Compare player to players of similar "cost":
PoI = player
interest period = date range
compar... | 26.382488 | 104 | 0.699039 | 813 | 5,725 | 4.787208 | 0.269373 | 0.033916 | 0.015416 | 0.028777 | 0.232528 | 0.14851 | 0.132066 | 0.075026 | 0.060123 | 0.060123 | 0 | 0.029515 | 0.201048 | 5,725 | 216 | 105 | 26.50463 | 0.821382 | 0.174847 | 0 | 0.052632 | 0 | 0 | 0.14712 | 0.007634 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013158 | 0.263158 | null | null | 0.289474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
19edce7460122afae0b2fe48f1d68b1b8a7dde4a | 947 | py | Python | src/api-service/__app__/onefuzzlib/versions.py | tonybaloney/onefuzz | e0f2e9ed5aae006e0054387de7a0ff8c83c8f722 | [
"MIT"
] | 2,692 | 2020-09-15T17:54:21.000Z | 2022-03-31T11:58:57.000Z | src/api-service/__app__/onefuzzlib/versions.py | tonybaloney/onefuzz | e0f2e9ed5aae006e0054387de7a0ff8c83c8f722 | [
"MIT"
] | 980 | 2020-09-18T18:23:01.000Z | 2022-03-30T22:20:43.000Z | src/api-service/__app__/onefuzzlib/versions.py | nharper285/onefuzz | 1de2cc841d6fc885f8bcb6d032bf5b96ddb52493 | [
"MIT"
] | 177 | 2020-09-16T00:10:56.000Z | 2022-03-30T21:18:10.000Z | #!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import os
from typing import Dict
import semver
from memoization import cached
from onefuzztypes.responses import Version
from .__version__ import __version__
@cached
def read_local_file(filename: str) -> str:
path... | 24.921053 | 78 | 0.685322 | 124 | 947 | 5.040323 | 0.516129 | 0.0384 | 0.0624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001316 | 0.197466 | 947 | 37 | 79 | 25.594595 | 0.821053 | 0.151003 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.26087 | 0.043478 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
19f43174580f981c46668312ddb9b528479cb0f3 | 1,825 | py | Python | iot_zmq_publishers/iot_zmq_publishers/sensors/BNO055.py | jagrafft/iot-data-stream-utils | 822fff97554173c64b64bd0815d2c2a59f69d73e | [
"0BSD"
] | null | null | null | iot_zmq_publishers/iot_zmq_publishers/sensors/BNO055.py | jagrafft/iot-data-stream-utils | 822fff97554173c64b64bd0815d2c2a59f69d73e | [
"0BSD"
] | null | null | null | iot_zmq_publishers/iot_zmq_publishers/sensors/BNO055.py | jagrafft/iot-data-stream-utils | 822fff97554173c64b64bd0815d2c2a59f69d73e | [
"0BSD"
] | null | null | null | from ..abstract.IoTSensor import IoTSensor
from json import dumps
from time import sleep, time_ns
# TODO temperature omitted, need to verify accuracy of reading
'''
# for Raspberry Pi
last_val = 0xFFFF
def temperature(self):
global last_val # pylint: disable=global... | 27.651515 | 71 | 0.512877 | 162 | 1,825 | 5.635802 | 0.450617 | 0.098576 | 0.042716 | 0.059146 | 0.105148 | 0.105148 | 0.105148 | 0.105148 | 0.105148 | 0.105148 | 0 | 0.019031 | 0.366575 | 1,825 | 65 | 72 | 28.076923 | 0.770761 | 0.032877 | 0 | 0.117647 | 0 | 0 | 0.177382 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.117647 | false | 0 | 0.088235 | 0 | 0.294118 | 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 |
c204b6ed43d52964f774ea22ea9f1a180bf19415 | 732 | py | Python | dc/catcher/catcher.py | adWharf/dc | 29a8d9257f14a80595984ecf416ab00f612f90d1 | [
"MIT"
] | null | null | null | dc/catcher/catcher.py | adWharf/dc | 29a8d9257f14a80595984ecf416ab00f612f90d1 | [
"MIT"
] | null | null | null | dc/catcher/catcher.py | adWharf/dc | 29a8d9257f14a80595984ecf416ab00f612f90d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
@author: william
@contact: 1342247033@qq.com
@site: http://www.xiaolewei.com
@file: catcher.py
@time: 12/04/2018 18:32
"""
from dc.core import db, config
import influxdb
class Catcher(object):
def __init__(self):
self._db = db.get_mysql_client(config.get('app... | 28.153846 | 74 | 0.497268 | 77 | 732 | 4.623377 | 0.649351 | 0.050562 | 0.067416 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049892 | 0.370219 | 732 | 25 | 75 | 29.28 | 0.722343 | 0.211749 | 0 | 0 | 0 | 0 | 0.096831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c208abe3d336b0316e80dc79a87b813714fb7795 | 4,630 | py | Python | trace-viewer/build/generate_about_tracing_contents.py | yinquan529/platform-external-chromium-trace | 8252ae6b83ea65cf871e7981e981da07379f5a0f | [
"BSD-3-Clause"
] | 1 | 2019-01-22T02:36:35.000Z | 2019-01-22T02:36:35.000Z | trace-viewer/build/generate_about_tracing_contents.py | yinquan529/platform-external-chromium-trace | 8252ae6b83ea65cf871e7981e981da07379f5a0f | [
"BSD-3-Clause"
] | null | null | null | trace-viewer/build/generate_about_tracing_contents.py | yinquan529/platform-external-chromium-trace | 8252ae6b83ea65cf871e7981e981da07379f5a0f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import errno
import optparse
import parse_deps
import sys
import os
import generate_template_contents as template_generator
from g... | 31.496599 | 95 | 0.682505 | 603 | 4,630 | 5.004975 | 0.245439 | 0.023857 | 0.023194 | 0.018555 | 0.534791 | 0.489066 | 0.424785 | 0.424785 | 0.424785 | 0.294897 | 0 | 0.004618 | 0.158099 | 4,630 | 146 | 96 | 31.712329 | 0.769625 | 0.038877 | 0 | 0.278846 | 0 | 0 | 0.325686 | 0.180837 | 0 | 0 | 0 | 0 | 0.048077 | 0 | null | null | 0 | 0.076923 | null | null | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c2144ca1fda2cab0f42e8e999c24212c1b4d6968 | 6,128 | py | Python | app.py | MonkeyLeeT/TalkyFoodie | 2b499a2f7fa71986befbdf29ac8e9831344d7407 | [
"Apache-2.0"
] | 1 | 2015-12-23T02:25:46.000Z | 2015-12-23T02:25:46.000Z | app.py | Sapphirine/TalkyFoodie | 2b499a2f7fa71986befbdf29ac8e9831344d7407 | [
"Apache-2.0"
] | null | null | null | app.py | Sapphirine/TalkyFoodie | 2b499a2f7fa71986befbdf29ac8e9831344d7407 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template, session
from flask.ext.socketio import join_room, leave_room
from flask.ext.socketio import SocketIO, emit
import names
import random
import numpy as np
from pyspark.mllib.recommendation import ALS, MatrixFactorizationModel, Rating
import recommend
app = Flask(__name__)
app.co... | 34.234637 | 109 | 0.588936 | 764 | 6,128 | 4.539267 | 0.208115 | 0.036909 | 0.031719 | 0.034602 | 0.274221 | 0.242791 | 0.16955 | 0.16955 | 0.146482 | 0.146482 | 0 | 0.012823 | 0.287369 | 6,128 | 178 | 110 | 34.426966 | 0.781314 | 0.038185 | 0 | 0.163121 | 0 | 0 | 0.079993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056738 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c21892f6609d6e89f05e6e15372ca6f2942bfaea | 1,642 | py | Python | nowonline/events.py | fixator10/Red-Administrator | fb67feb64f06979b27106a561e785b267096e1eb | [
"MIT"
] | 1 | 2022-02-03T17:40:44.000Z | 2022-02-03T17:40:44.000Z | nowonline/events.py | fixator10/Red-Administrator | fb67feb64f06979b27106a561e785b267096e1eb | [
"MIT"
] | null | null | null | nowonline/events.py | fixator10/Red-Administrator | fb67feb64f06979b27106a561e785b267096e1eb | [
"MIT"
] | null | null | null | from redbot.core.commands import Cog
from .abc import ABCMeta, MixinMeta
from .no_class import EVENT_TYPE, Event
class Events(MixinMeta, metaclass=ABCMeta):
# Listener: On Connect/Ready
@Cog.listener()
async def on_connect(self):
event = Event(EVENT_TYPE.ON_CONNECT, self.bot)
await self... | 30.407407 | 82 | 0.693666 | 231 | 1,642 | 4.69697 | 0.138528 | 0.221198 | 0.117972 | 0.140092 | 0.726267 | 0.668203 | 0.576037 | 0.576037 | 0.576037 | 0.576037 | 0 | 0 | 0.206456 | 1,642 | 53 | 83 | 30.981132 | 0.832694 | 0.053593 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.111111 | 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 |
c21e65f3beeb418aa28cfc9df37c22947af6507f | 3,103 | py | Python | Sentiment Analysis/sentiment_analysis_av.py | vedant-bit/hackathon-projects | 6aa043031cd7d925bd6e41c0b6ce23fe96d6e1d9 | [
"MIT"
] | null | null | null | Sentiment Analysis/sentiment_analysis_av.py | vedant-bit/hackathon-projects | 6aa043031cd7d925bd6e41c0b6ce23fe96d6e1d9 | [
"MIT"
] | null | null | null | Sentiment Analysis/sentiment_analysis_av.py | vedant-bit/hackathon-projects | 6aa043031cd7d925bd6e41c0b6ce23fe96d6e1d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Sentiment_analysis_AV.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Ep8s9eK5ycdFRKuw94zljbVuAFGxYN8G
"""
import re
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
impor... | 30.126214 | 122 | 0.754109 | 463 | 3,103 | 4.855292 | 0.38013 | 0.074733 | 0.049822 | 0.037367 | 0.238434 | 0.207295 | 0.207295 | 0.207295 | 0.207295 | 0.175267 | 0 | 0.023904 | 0.110216 | 3,103 | 103 | 123 | 30.126214 | 0.790293 | 0.11505 | 0 | 0.184615 | 1 | 0 | 0.087751 | 0.018647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0 | 0.2 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c21eb3a70f153b478773726663c7281033f396c0 | 5,003 | py | Python | openloop/api.py | Ow1e/OpenLoop | 8edb4e46dcef2bc6a5202e8ca4e22c94c0dc51f0 | [
"CC0-1.0"
] | 1 | 2022-03-24T13:56:38.000Z | 2022-03-24T13:56:38.000Z | openloop/api.py | Ow1e/OpenLoop | 8edb4e46dcef2bc6a5202e8ca4e22c94c0dc51f0 | [
"CC0-1.0"
] | 3 | 2022-02-14T03:19:07.000Z | 2022-02-25T21:35:49.000Z | openloop/api.py | Ow1e/OpenLoop | 8edb4e46dcef2bc6a5202e8ca4e22c94c0dc51f0 | [
"CC0-1.0"
] | 1 | 2022-02-27T01:33:36.000Z | 2022-02-27T01:33:36.000Z | """
Includes backend api and CrossWeb code
"""
from openloop.crossweb import *
from flask import Blueprint, render_template, request
from openloop.names import generate
from flask_httpauth import HTTPBasicAuth
import secrets
import datetime
def api_render():
p = Page()
p.append(Heading("Programming Interface... | 31.664557 | 105 | 0.544473 | 552 | 5,003 | 4.775362 | 0.253623 | 0.037557 | 0.0478 | 0.061457 | 0.201442 | 0.157436 | 0.125569 | 0.109256 | 0.08346 | 0.08346 | 0 | 0.005093 | 0.3328 | 5,003 | 157 | 106 | 31.866242 | 0.784602 | 0.007595 | 0 | 0.155039 | 1 | 0 | 0.100061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062016 | false | 0.023256 | 0.046512 | 0.007752 | 0.162791 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c220d6a13ae62055992c2a1ce7fadb92cac6d3fd | 5,858 | py | Python | autoencoder/Simple_Autoencoder.py | iratao/deep-learning | 4099c096623318669286cb555c2ffa7d8f3a8354 | [
"MIT"
] | null | null | null | autoencoder/Simple_Autoencoder.py | iratao/deep-learning | 4099c096623318669286cb555c2ffa7d8f3a8354 | [
"MIT"
] | null | null | null | autoencoder/Simple_Autoencoder.py | iratao/deep-learning | 4099c096623318669286cb555c2ffa7d8f3a8354 | [
"MIT"
] | null | null | null |
# coding: utf-8
# # A Simple Autoencoder
#
# We'll start off by building a simple autoencoder to compress the MNIST dataset. With autoencoders, we pass input data through an encoder that makes a compressed representation of the input. Then, this representation is passed through a decoder to reconstruct the input dat... | 44.378788 | 977 | 0.75367 | 928 | 5,858 | 4.686422 | 0.335129 | 0.016096 | 0.012647 | 0.014716 | 0.162106 | 0.140492 | 0.091055 | 0.046447 | 0.016096 | 0 | 0 | 0.016912 | 0.1521 | 5,858 | 131 | 978 | 44.717557 | 0.858667 | 0.663537 | 0 | 0.04878 | 0 | 0 | 0.040188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2232f16df7c95530b6dc81ce5a55f672b47e7e0 | 961 | py | Python | configuration.py | Chris-Schnaufer/ex1 | fa0d986433ccd358839b50c75e8c9769623c8291 | [
"BSD-3-Clause"
] | null | null | null | configuration.py | Chris-Schnaufer/ex1 | fa0d986433ccd358839b50c75e8c9769623c8291 | [
"BSD-3-Clause"
] | null | null | null | configuration.py | Chris-Schnaufer/ex1 | fa0d986433ccd358839b50c75e8c9769623c8291 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""Contains extractor configuration information
"""
# Setup the name of our extractor.
EXTRACTOR_NAME = ""
# Name of scientific method for this extractor. Leave commented out if it's unknown
#METHOD_NAME = ""
# The version number of the extractor
VERSION = "1.0"
# The extractor description
DE... | 28.264706 | 100 | 0.75026 | 146 | 961 | 4.90411 | 0.59589 | 0.034916 | 0.058659 | 0.036313 | 0.086592 | 0.086592 | 0.086592 | 0 | 0 | 0 | 0 | 0.005063 | 0.17794 | 961 | 33 | 101 | 29.121212 | 0.901266 | 0.823101 | 0 | 0 | 0 | 0 | 0.020134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c229522dc053d74292a0c4ec93dea590533edbed | 1,444 | py | Python | metallurgy/valence.py | Robert-Forrest/metallurgy | 169d8b3152cf1f152b5b0573ba16a6a0e617d29e | [
"BSD-3-Clause"
] | null | null | null | metallurgy/valence.py | Robert-Forrest/metallurgy | 169d8b3152cf1f152b5b0573ba16a6a0e617d29e | [
"BSD-3-Clause"
] | null | null | null | metallurgy/valence.py | Robert-Forrest/metallurgy | 169d8b3152cf1f152b5b0573ba16a6a0e617d29e | [
"BSD-3-Clause"
] | null | null | null | from collections.abc import Iterable
import metallurgy as mg
from . import linear_mixture
from .alloy import Alloy
def valence_proportion(alloy, orbital):
if isinstance(alloy, Iterable) and not isinstance(alloy, (str, dict)):
return [valence_proportion(a, orbital) for a in alloy]
elif not isinstance(... | 26.254545 | 84 | 0.65097 | 169 | 1,444 | 5.43787 | 0.260355 | 0.11099 | 0.119695 | 0.108814 | 0.293798 | 0.174102 | 0 | 0 | 0 | 0 | 0 | 0.010092 | 0.245152 | 1,444 | 54 | 85 | 26.740741 | 0.833028 | 0 | 0 | 0.054054 | 0 | 0 | 0.049169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.108108 | 0.108108 | 0.432432 | 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 |
c22df3cd8498789e53245642e657c1c8a7401444 | 2,414 | py | Python | Task2G.py | cel61/95_flood_warning_system | a224077922848e5b5c9b33fe37aef5cb144d2ca0 | [
"MIT"
] | null | null | null | Task2G.py | cel61/95_flood_warning_system | a224077922848e5b5c9b33fe37aef5cb144d2ca0 | [
"MIT"
] | null | null | null | Task2G.py | cel61/95_flood_warning_system | a224077922848e5b5c9b33fe37aef5cb144d2ca0 | [
"MIT"
] | 1 | 2022-01-31T11:29:44.000Z | 2022-01-31T11:29:44.000Z | from floodsystem.flood import stations_level_over_threshold, stations_highest_rel_level
from floodsystem.datafetcher import *
from floodsystem.plot import plot_water_level_with_fit
from floodsystem.stationdata import build_station_list, update_water_levels
from floodsystem.utils import sorted_by_key
from floodsystem.st... | 28.4 | 87 | 0.584921 | 331 | 2,414 | 4.069486 | 0.226586 | 0.044543 | 0.063103 | 0.096511 | 0.336303 | 0.247216 | 0.198218 | 0.085375 | 0.063846 | 0.063846 | 0 | 0.012433 | 0.300331 | 2,414 | 85 | 88 | 28.4 | 0.78508 | 0 | 0 | 0.240964 | 0 | 0 | 0.065839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0.096386 | 0.072289 | 0 | 0.084337 | 0.204819 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c22e8b09bd20aa54a51dfe49ae838573c381aba0 | 896 | py | Python | geocoder_test.py | reed-sandberg/geocoder | 2d300ce5172a5d53e065240251a26e6e69ab58f2 | [
"Apache-2.0"
] | null | null | null | geocoder_test.py | reed-sandberg/geocoder | 2d300ce5172a5d53e065240251a26e6e69ab58f2 | [
"Apache-2.0"
] | null | null | null | geocoder_test.py | reed-sandberg/geocoder | 2d300ce5172a5d53e065240251a26e6e69ab58f2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import geocoder
import unittest
import tempfile
class GeocoderTestCase(unittest.TestCase):
def setUp(self):
geocoder.app.testing = True
self.app = geocoder.app.test_client()
def test_invalid_latlng_missing(self):
rv = self.app.get('/addresses')
assert b'... | 28.903226 | 68 | 0.685268 | 126 | 896 | 4.706349 | 0.388889 | 0.059022 | 0.094435 | 0.134907 | 0.382799 | 0.382799 | 0.340641 | 0.198988 | 0.198988 | 0.134907 | 0 | 0.051748 | 0.202009 | 896 | 30 | 69 | 29.866667 | 0.777622 | 0.022321 | 0 | 0 | 0 | 0 | 0.252571 | 0.128 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.238095 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c22ea06bfad6c57bb26b2d1de835ea183d5fc123 | 754 | py | Python | Menel/functions/imperialbin_upload.py | 05xapresses/Menel | 7b79cdb51e613d8b4b1bdaa972338381c2936fa7 | [
"MIT"
] | null | null | null | Menel/functions/imperialbin_upload.py | 05xapresses/Menel | 7b79cdb51e613d8b4b1bdaa972338381c2936fa7 | [
"MIT"
] | null | null | null | Menel/functions/imperialbin_upload.py | 05xapresses/Menel | 7b79cdb51e613d8b4b1bdaa972338381c2936fa7 | [
"MIT"
] | null | null | null | from os import getenv
import aiohttp
async def imperialbin_upload(
text: str, *, longer_urls: bool, instant_delete: bool, image_embed: bool, expiration: int
) -> dict:
async with aiohttp.request(
'POST', 'https://imperialb.in/api/postCode/',
json={
'code': text,
... | 34.272727 | 97 | 0.566313 | 74 | 754 | 5.662162 | 0.716216 | 0.047733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.312997 | 754 | 22 | 98 | 34.272727 | 0.805019 | 0 | 0 | 0 | 0 | 0 | 0.231788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.105263 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c23310589fe1f40e1d5e1d245e6340a00bfbe49c | 1,171 | py | Python | checkov/kubernetes/checks/resource/k8s/KubeControllerManagerTerminatedPods.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | checkov/kubernetes/checks/resource/k8s/KubeControllerManagerTerminatedPods.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | checkov/kubernetes/checks/resource/k8s/KubeControllerManagerTerminatedPods.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | from typing import Any, Dict
from checkov.common.models.enums import CheckResult
from checkov.kubernetes.checks.resource.base_container_check import BaseK8sContainerCheck
class KubeControllerManagerTerminatedPods(BaseK8sContainerCheck):
def __init__(self) -> None:
id = "CKV_K8S_106"
name = "Ensur... | 40.37931 | 97 | 0.623399 | 117 | 1,171 | 6.102564 | 0.547009 | 0.095238 | 0.042017 | 0.067227 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009547 | 0.284372 | 1,171 | 28 | 98 | 41.821429 | 0.842482 | 0 | 0 | 0.181818 | 0 | 0 | 0.143467 | 0.069172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.136364 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c236f8ee429bbaa744f3b7fe03345fd7aea11974 | 2,684 | py | Python | remap-raster.py | emj/nmd-osm-tools | c8accfb182ef010b14c8d989eacabf5f4a088036 | [
"BSD-2-Clause"
] | null | null | null | remap-raster.py | emj/nmd-osm-tools | c8accfb182ef010b14c8d989eacabf5f4a088036 | [
"BSD-2-Clause"
] | null | null | null | remap-raster.py | emj/nmd-osm-tools | c8accfb182ef010b14c8d989eacabf5f4a088036 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
# Remap pixel values in a paletted GeoTiff from NMD
# Compared to stock GDAL tools, this script tries to transfer all metadata
# and color table from the first band of the input file into the output file.
# Input data is a TIFF file available at:
# - http://www.naturvardsverket.se/Sa-mar-miljon/Kart... | 30.850575 | 85 | 0.70082 | 374 | 2,684 | 4.887701 | 0.481283 | 0.054705 | 0.014223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026963 | 0.21237 | 2,684 | 86 | 86 | 31.209302 | 0.837748 | 0.355812 | 0 | 0 | 0 | 0 | 0.035652 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.041667 | false | 0 | 0.0625 | 0 | 0.104167 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c23ce9556187b81a15bd7efd319f9f425e42af5d | 2,542 | py | Python | my_code/torque_plotter.py | rojas70/parse_rcbht_data | 8113e120e5953febbcabb99ab168a7d6f2147737 | [
"BSD-3-Clause"
] | null | null | null | my_code/torque_plotter.py | rojas70/parse_rcbht_data | 8113e120e5953febbcabb99ab168a7d6f2147737 | [
"BSD-3-Clause"
] | null | null | null | my_code/torque_plotter.py | rojas70/parse_rcbht_data | 8113e120e5953febbcabb99ab168a7d6f2147737 | [
"BSD-3-Clause"
] | null | null | null | import os
import numpy as np
def torque_file_plotter(file_handle, output_signature, output_dir):
rows = []
for l in file_handle.readlines():
items = l.strip().split('\t')
if len(items) != 7:
continue
rows.append([float(i) for i in items])
mat = np.array(rows)
... | 27.934066 | 90 | 0.651456 | 365 | 2,542 | 4.252055 | 0.353425 | 0.109536 | 0.045103 | 0.054124 | 0.243557 | 0.115979 | 0.078608 | 0.056701 | 0.056701 | 0 | 0 | 0.01631 | 0.228167 | 2,542 | 90 | 91 | 28.244444 | 0.77472 | 0.036979 | 0 | 0.032258 | 0 | 0 | 0.070405 | 0.031519 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048387 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c2434738c69aba3791de9fad99e6e3c84047cb4d | 1,614 | py | Python | us_pls/_variables/fy2018/outlet_data_vars.py | drawjk705/us-pls | 6b9a696b18c18de81b279862f182fb990604b998 | [
"MIT"
] | null | null | null | us_pls/_variables/fy2018/outlet_data_vars.py | drawjk705/us-pls | 6b9a696b18c18de81b279862f182fb990604b998 | [
"MIT"
] | null | null | null | us_pls/_variables/fy2018/outlet_data_vars.py | drawjk705/us-pls | 6b9a696b18c18de81b279862f182fb990604b998 | [
"MIT"
] | null | null | null | from us_pls._variables.models import Variables
OUTLET_DATA_VARIABLES = Variables(
STABR="State",
LibraryIdCode=Variables(
FSCSKEY="FromIMLS",
FSCS_SEQ="Suffix",
LIBID="FromState",
),
C_FSCS="MeetsDefinitionOfPublicLibrary",
LIBNAME="Name",
StreetAddress=Variables(
... | 32.28 | 87 | 0.713755 | 111 | 1,614 | 10.18018 | 0.828829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001515 | 0.182156 | 1,614 | 49 | 88 | 32.938776 | 0.854545 | 0 | 0 | 0.0625 | 0 | 0 | 0.463445 | 0.326518 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.020833 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c24902581e2424968c67adea8244cb23fdcb1964 | 937 | py | Python | RAISoft/scripts-old/DummyTest.py | daveraees/EMA_Test_Lab | a3073c5ec205d6ee327a993b38e92698c12cb0a6 | [
"MIT"
] | null | null | null | RAISoft/scripts-old/DummyTest.py | daveraees/EMA_Test_Lab | a3073c5ec205d6ee327a993b38e92698c12cb0a6 | [
"MIT"
] | null | null | null | RAISoft/scripts-old/DummyTest.py | daveraees/EMA_Test_Lab | a3073c5ec205d6ee327a993b38e92698c12cb0a6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# this is script meant to be executable file
# allowing to perform measurments
# EXAMPLE file
# project libraries imports:
# instruments:
from instruments.DummyMeter import GeneratorLine
from instruments.TimeMeter import MainTimerClass
# file-output libraries
from Output.Output import OutputHandler
... | 24.025641 | 73 | 0.773746 | 117 | 937 | 6.153846 | 0.564103 | 0.066667 | 0.061111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00609 | 0.123799 | 937 | 38 | 74 | 24.657895 | 0.870889 | 0.378869 | 0 | 0 | 0 | 0 | 0.038664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c249268b57306c340c26b39dfe0f1723a7cf118b | 370 | py | Python | Python/AI_Environment/subProcessTest/subprocessA.py | TheMadDuck/neural_neophyte | da804b9364144d26e2be47c01f7fa7bc360a3d3b | [
"BSD-3-Clause"
] | null | null | null | Python/AI_Environment/subProcessTest/subprocessA.py | TheMadDuck/neural_neophyte | da804b9364144d26e2be47c01f7fa7bc360a3d3b | [
"BSD-3-Clause"
] | null | null | null | Python/AI_Environment/subProcessTest/subprocessA.py | TheMadDuck/neural_neophyte | da804b9364144d26e2be47c01f7fa7bc360a3d3b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
import numpy as np
def getNumber():
print("i am the get Number function")
print("how are you?")
return 1337
def setNumber():
number = input("set new Number")
# print (" ")
print(number)
# jo = input("an other input")
return number
'''
for i in range(2)... | 16.086957 | 41 | 0.608108 | 53 | 370 | 4.245283 | 0.679245 | 0.053333 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017986 | 0.248649 | 370 | 22 | 42 | 16.818182 | 0.791367 | 0.17027 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
df99d95cf185fbd304808481d375ce18c4918394 | 380 | py | Python | Mundo3/Tuplas/Desafio#77.py | kaio358/Python | 16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1 | [
"MIT"
] | null | null | null | Mundo3/Tuplas/Desafio#77.py | kaio358/Python | 16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1 | [
"MIT"
] | null | null | null | Mundo3/Tuplas/Desafio#77.py | kaio358/Python | 16f55e6ff056d97b2f28e68f95eafc9ab7d4e2b1 | [
"MIT"
] | null | null | null | listaDePalavras = ('Aprender','Programar','Linguagem','Python','Curso','Gratis',
'Estudar','Praticar','Trabalhar','Mercado','Programador',
'Futuro')
for palavras in listaDePalavras:
print(f'\n A palavra {palavras} temos', end=' ')
for letras in palavras:
if letras.l... | 47.5 | 80 | 0.586842 | 38 | 380 | 5.868421 | 0.710526 | 0.098655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239474 | 380 | 8 | 81 | 47.5 | 0.771626 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfa19265846d1679ac62789bed1e2750506b8e2c | 4,961 | py | Python | Functions/CollisionCheck.py | anniexen/Field-Robotics-Experiment-and-Research | 66373c75354b003f5b50c58add8054d09aee8036 | [
"MIT"
] | 1 | 2021-08-07T07:38:02.000Z | 2021-08-07T07:38:02.000Z | Functions/CollisionCheck.py | anniexen/Field-Robotics-Experiment-and-Research | 66373c75354b003f5b50c58add8054d09aee8036 | [
"MIT"
] | null | null | null | Functions/CollisionCheck.py | anniexen/Field-Robotics-Experiment-and-Research | 66373c75354b003f5b50c58add8054d09aee8036 | [
"MIT"
] | 1 | 2020-12-02T16:17:48.000Z | 2020-12-02T16:17:48.000Z | #To create a path planning algorith based on the MoveToPoint function,
#including a collision check function, as well as a PID controller (spead check).
#The obstacles are defined manually.
#Define obstacles
obstacles = ( )
#Simple circular obstacle
class Obstacle:
def __init__(self, name, center, radiu... | 36.477941 | 127 | 0.486797 | 656 | 4,961 | 3.60061 | 0.272866 | 0.018628 | 0.011431 | 0.008467 | 0.031753 | 0.011008 | 0.005927 | 0 | 0 | 0 | 0 | 0.076555 | 0.368071 | 4,961 | 136 | 128 | 36.477941 | 0.676874 | 0.170127 | 0 | 0.02439 | 0 | 0 | 0.010905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfaaf65c142c6efc4c3a5d05426059f979f9b07b | 418 | py | Python | practice.py | narayanants/python-mega-course | 2ba2980ab21dfbed5f86f00695559f7831b5c566 | [
"MIT"
] | null | null | null | practice.py | narayanants/python-mega-course | 2ba2980ab21dfbed5f86f00695559f7831b5c566 | [
"MIT"
] | null | null | null | practice.py | narayanants/python-mega-course | 2ba2980ab21dfbed5f86f00695559f7831b5c566 | [
"MIT"
] | null | null | null | x = 1
y = 'Hello'
z = 10.123
d = x + z
print(d)
print(type(x))
print(type(y))
print(y.upper())
print(y.lower())
print(type(z))
a = [1,2,3,4,5,6,6,7,8]
print(len(a))
print(a.count(6))
b = list(range(10,100,10))
print(b)
stud_marks = {"Madhan":90, "Raj":25,"Mani":80}
print(stud_marks.keys())
print(stud_marks.va... | 11.611111 | 46 | 0.617225 | 87 | 418 | 2.931034 | 0.471264 | 0.105882 | 0.086275 | 0.109804 | 0.12549 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129121 | 0.129187 | 418 | 36 | 47 | 11.611111 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.042959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dfb9bd8cf0300590d8aeb18bc6bf14caa49ba182 | 1,030 | py | Python | ProjectApplication/project_core/migrations/0175_auto_20211203_1224.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | null | null | null | ProjectApplication/project_core/migrations/0175_auto_20211203_1224.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | null | null | null | ProjectApplication/project_core/migrations/0175_auto_20211203_1224.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-03 11:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('project_core', '0174_spi... | 32.1875 | 133 | 0.643689 | 116 | 1,030 | 5.577586 | 0.439655 | 0.037094 | 0.11592 | 0.134467 | 0.386399 | 0.386399 | 0.386399 | 0.25966 | 0.25966 | 0.25966 | 0 | 0.024516 | 0.247573 | 1,030 | 31 | 134 | 33.225806 | 0.810323 | 0.043689 | 0 | 0.48 | 1 | 0 | 0.138352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 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 |
dfbbfe1480cec1e7ab6a75c44d1944dbf6a94970 | 3,554 | py | Python | app.py | NSBum/AnkiStatsServer | 3473b9e9c6a3e207faf8f012ec0a4ff1fa458c1b | [
"MIT"
] | 3 | 2017-07-17T23:33:00.000Z | 2020-07-11T21:48:42.000Z | app.py | NSBum/AnkiStatsServer | 3473b9e9c6a3e207faf8f012ec0a4ff1fa458c1b | [
"MIT"
] | null | null | null | app.py | NSBum/AnkiStatsServer | 3473b9e9c6a3e207faf8f012ec0a4ff1fa458c1b | [
"MIT"
] | null | null | null | from flask import Flask, Response
from flask import request, jsonify, session
from flask import render_template
from flask.ext.sqlalchemy import SQLAlchemy
import os
import json
import pygal
from pygal.style import DarkSolarizedStyle
from datetime import date, datetime, timedelta
app = Flask(__name__)
app.config.from... | 29.616667 | 84 | 0.693866 | 482 | 3,554 | 5.020747 | 0.340249 | 0.026446 | 0.012397 | 0.028926 | 0.179752 | 0.129339 | 0.091736 | 0.091736 | 0.061983 | 0.061983 | 0 | 0.024448 | 0.171356 | 3,554 | 119 | 85 | 29.865546 | 0.797284 | 0.025605 | 0 | 0.044944 | 0 | 0 | 0.107897 | 0.012728 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157303 | null | null | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfbec6fa80df21483bc803bdb2d960e848f3ddb4 | 6,076 | py | Python | uhmarketplace/views.py | EE491F-Revengers/UH-Marketplace | b677ef8c5309f4c3d55301f6bf9afb0b41b82e4a | [
"MIT"
] | null | null | null | uhmarketplace/views.py | EE491F-Revengers/UH-Marketplace | b677ef8c5309f4c3d55301f6bf9afb0b41b82e4a | [
"MIT"
] | 13 | 2021-06-29T10:05:13.000Z | 2021-07-03T10:00:40.000Z | uhmarketplace/views.py | EE491F-Revengers/UH-Marketplace | b677ef8c5309f4c3d55301f6bf9afb0b41b82e4a | [
"MIT"
] | 2 | 2021-06-22T02:41:06.000Z | 2021-06-24T08:13:52.000Z | from django.views import generic
from django.urls import reverse_lazy
from .models import Textbook, Uhmarketplace, Courses
from django.utils import timezone
from .filters import TextbookFilter, CoursesFilter
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.urls.base ... | 37.04878 | 164 | 0.692232 | 632 | 6,076 | 6.488924 | 0.199367 | 0.055596 | 0.115825 | 0.051207 | 0.743477 | 0.636674 | 0.565716 | 0.50256 | 0.476957 | 0.455011 | 0 | 0 | 0.163759 | 6,076 | 163 | 165 | 37.276074 | 0.807125 | 0.144503 | 0 | 0.447619 | 0 | 0 | 0.214685 | 0.148294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.07619 | 0 | 0.942857 | 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 |
dfc9a688aad9931983a5952cf7d562953fc161c5 | 1,805 | py | Python | contacts/views.py | dmitry-brezgunov/client-service | bffbad250c16c7599c70ab757d90e10de6a3b094 | [
"MIT"
] | null | null | null | contacts/views.py | dmitry-brezgunov/client-service | bffbad250c16c7599c70ab757d90e10de6a3b094 | [
"MIT"
] | null | null | null | contacts/views.py | dmitry-brezgunov/client-service | bffbad250c16c7599c70ab757d90e10de6a3b094 | [
"MIT"
] | null | null | null | from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.generics import ListAPIView
from rest_framework.response import Response
from rest_framework.settings import api_settings
from rest_framework.viewsets import M... | 34.711538 | 70 | 0.731856 | 179 | 1,805 | 7.240223 | 0.49162 | 0.070216 | 0.078704 | 0.05787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002053 | 0.190582 | 1,805 | 51 | 71 | 35.392157 | 0.88501 | 0.080332 | 0 | 0 | 0 | 0 | 0.009762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.297297 | 0 | 0.72973 | 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 |
dfca53517dbe599d18dd48cdb853cce1764e9add | 1,606 | py | Python | scripts/model_stats.py | pagreene/emmaa | 809a7ecc024a5d618e3133f429d611ef3b420520 | [
"BSD-2-Clause"
] | 6 | 2018-11-29T09:33:07.000Z | 2021-02-10T04:21:47.000Z | scripts/model_stats.py | pagreene/emmaa | 809a7ecc024a5d618e3133f429d611ef3b420520 | [
"BSD-2-Clause"
] | 53 | 2019-02-01T14:44:57.000Z | 2021-09-17T16:13:28.000Z | scripts/model_stats.py | pagreene/emmaa | 809a7ecc024a5d618e3133f429d611ef3b420520 | [
"BSD-2-Clause"
] | 8 | 2018-11-22T02:41:56.000Z | 2021-03-26T19:54:41.000Z | import numpy
import pickle
from emmaa.model import get_model_stats
import matplotlib.pyplot as plt
models = {'disease': ['aml', 'brca', 'skcm', 'prad', 'paad', 'luad'],
'pathway': ['rasmachine'],
'manual': ['rasmodel', 'marm_model'],
'wm': ['food_insecurity']}
if __name__ == '__main__':... | 30.884615 | 79 | 0.599004 | 197 | 1,606 | 4.690355 | 0.406091 | 0.054113 | 0.055195 | 0.068182 | 0.25 | 0.0671 | 0 | 0 | 0 | 0 | 0 | 0.009068 | 0.244707 | 1,606 | 51 | 80 | 31.490196 | 0.752679 | 0.051681 | 0 | 0.121951 | 0 | 0 | 0.245395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.146341 | 0.097561 | 0 | 0.097561 | 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 |
dfd05514cb885501b4c4c40e2f380a8cf182628f | 797 | py | Python | terra/logging.py | seyuboglu/terra | 7d5f8d8cdfbf819b52fb997b5b9746746d86b295 | [
"Apache-2.0"
] | 1 | 2022-03-15T00:13:58.000Z | 2022-03-15T00:13:58.000Z | terra/logging.py | seyuboglu/terra | 7d5f8d8cdfbf819b52fb997b5b9746746d86b295 | [
"Apache-2.0"
] | 2 | 2021-09-16T05:00:30.000Z | 2021-11-19T21:37:09.000Z | terra/logging.py | seyuboglu/terra | 7d5f8d8cdfbf819b52fb997b5b9746746d86b295 | [
"Apache-2.0"
] | null | null | null | import sys
from datetime import datetime
def init_logging(path="process.log"):
logger = Logger(path=path)
sys.stdout = logger
return logger
class Logger(object):
"""Logger that writes all of stdout and stderr to the file passed in as `path`.
Known limitations:
- Doesn't log stderr in Jupyter... | 24.151515 | 83 | 0.621079 | 103 | 797 | 4.718447 | 0.456311 | 0.057613 | 0.057613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262233 | 797 | 32 | 84 | 24.90625 | 0.826531 | 0.204517 | 0 | 0 | 0 | 0 | 0.07856 | 0.03928 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.052632 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfd0e495f9bb888d300ade173ab1886db1fd37c2 | 14,306 | py | Python | phow_caltech101.py | thomasklau/pixy | 0d026ea4b04c4b955b4f76aced8bbe7632b3127d | [
"MIT"
] | null | null | null | phow_caltech101.py | thomasklau/pixy | 0d026ea4b04c4b955b4f76aced8bbe7632b3127d | [
"MIT"
] | null | null | null | phow_caltech101.py | thomasklau/pixy | 0d026ea4b04c4b955b4f76aced8bbe7632b3127d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Python rewrite of http: //www.vlfeat.org/applications/caltech-101-code.html
"""
from os.path import exists, isdir, basename, join, splitext
from os import makedirs
from glob import glob
from random import sample, seed
from scipy import ones, mod, arange, array, where, ndarray, hstack, linspac... | 35.587065 | 154 | 0.634279 | 1,712 | 14,306 | 5.183411 | 0.234813 | 0.028398 | 0.017354 | 0.020284 | 0.179739 | 0.116407 | 0.074037 | 0.052062 | 0.030651 | 0.022989 | 0 | 0.012087 | 0.248218 | 14,306 | 401 | 155 | 35.67581 | 0.813017 | 0.068992 | 0 | 0.063123 | 0 | 0 | 0.065593 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0 | null | null | 0 | 0.07309 | null | null | 0.059801 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfdfb5589cc1a65ae8be7643d0ab49d7e265277e | 7,088 | py | Python | artifact/storm/travis/generate_travis.py | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/travis/generate_travis.py | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/travis/generate_travis.py | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | # Generate .travis.yml automatically
# Configuration for Linux
configs = [
# OS, OS version, compiler, build type, task
("ubuntu", "18.04", "gcc", "DefaultDebug", "Test"),
("ubuntu", "18.04", "gcc", "DefaultRelease", "Test"),
("debian", "9", "gcc", "DefaultDebug", "Test"),
("debian", "9", "gcc", "D... | 45.435897 | 713 | 0.525536 | 689 | 7,088 | 5.312046 | 0.25254 | 0.022951 | 0.010656 | 0.010929 | 0.37541 | 0.338525 | 0.318852 | 0.285246 | 0.27459 | 0.27459 | 0 | 0.031965 | 0.315886 | 7,088 | 155 | 714 | 45.729032 | 0.722829 | 0.049802 | 0 | 0.37594 | 1 | 0.030075 | 0.455749 | 0.122267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007519 | false | 0 | 0.015038 | 0 | 0.037594 | 0.015038 | 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 |
dfe3a491693247547d0e73cef0a85c8bb9e5afd9 | 539 | py | Python | [Kaleido-subs]/Other/Gundam Build Divers Creditless OP&ED/DiversOP1.py | tuilakhanh/Encoding-Projects | 8b254913457cb28e7d0890ad6b974d0d8f0cbecc | [
"MIT"
] | 57 | 2019-01-31T17:32:46.000Z | 2022-03-23T05:46:51.000Z | [Kaleido-subs]/Other/Gundam Build Divers Creditless OP&ED/DiversOP1.py | tuilakhanh/Encoding-Projects | 8b254913457cb28e7d0890ad6b974d0d8f0cbecc | [
"MIT"
] | null | null | null | [Kaleido-subs]/Other/Gundam Build Divers Creditless OP&ED/DiversOP1.py | tuilakhanh/Encoding-Projects | 8b254913457cb28e7d0890ad6b974d0d8f0cbecc | [
"MIT"
] | 12 | 2019-04-30T06:16:13.000Z | 2022-03-14T16:15:07.000Z | #!/usr/bin/env python3
import vapoursynth as vs
import audiocutter
from subprocess import call
import shutil
import os
core = vs.core
ts_in = r"F:\Convert\[BDMV][180926][Gundam Build Divers][BD-BOX1]\GUNDAM_BUILD_DIVERS_BDBOX1_D3\BDMV\STREAM\00011.m2ts"
src = core.lsmas.LWLibavSource(ts_in)
ac = audiocutter.AudioCut... | 24.5 | 119 | 0.753247 | 88 | 539 | 4.352273 | 0.681818 | 0.020888 | 0.088773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058333 | 0.109462 | 539 | 21 | 120 | 25.666667 | 0.739583 | 0.038961 | 0 | 0 | 0 | 0.071429 | 0.332689 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dfe5831e4017886835c14f5755fdcda78edac399 | 660 | py | Python | wolfdvd/models.py | Montmorency/wolfdvd | 9ece2bb2ac7ce77e2009657385b4c55b39906bf4 | [
"MIT"
] | null | null | null | wolfdvd/models.py | Montmorency/wolfdvd | 9ece2bb2ac7ce77e2009657385b4c55b39906bf4 | [
"MIT"
] | 1 | 2016-02-28T15:09:47.000Z | 2016-02-29T12:00:42.000Z | wolfdvd/models.py | Montmorency/wolfdvd | 9ece2bb2ac7ce77e2009657385b4c55b39906bf4 | [
"MIT"
] | null | null | null | import pickle
import sys
def update_plot():
#pass wolfloc and the plot as a txt file with the plot
#written in to it
wolfloc = sys.argv[1]
plot_string = open(sys.argv[2],'r').read()
print plot_string
with open('./static/tits_protected.pckl', 'r') as db:
gdb = pickle.load(db)
for title in gdb:
if title['wo... | 25.384615 | 54 | 0.677273 | 108 | 660 | 3.990741 | 0.37963 | 0.048724 | 0.097448 | 0.12529 | 0.512761 | 0.512761 | 0.512761 | 0.512761 | 0.236659 | 0.236659 | 0 | 0.005464 | 0.168182 | 660 | 25 | 55 | 26.4 | 0.779599 | 0.125758 | 0 | 0.5 | 0 | 0 | 0.198606 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfe70031451095382422eebdaebc2b53f5d05342 | 2,336 | py | Python | academic_helper/views/courses.py | idosavion/coursist | a2a000c1b970323ff31d33f8225008c8799c7506 | [
"MIT"
] | 1 | 2020-06-26T12:09:00.000Z | 2020-06-26T12:09:00.000Z | academic_helper/views/courses.py | idosavion/coursist | a2a000c1b970323ff31d33f8225008c8799c7506 | [
"MIT"
] | null | null | null | academic_helper/views/courses.py | idosavion/coursist | a2a000c1b970323ff31d33f8225008c8799c7506 | [
"MIT"
] | null | null | null | from django.core.handlers.wsgi import WSGIRequest
from django.http import JsonResponse
from django.shortcuts import get_object_or_404
from django.urls import reverse
from django.views.generic import DetailView, ListView
from academic_helper.models import Course, floatformat
from academic_helper.utils.logger import log... | 37.677419 | 115 | 0.681079 | 283 | 2,336 | 5.4947 | 0.402827 | 0.032154 | 0.034727 | 0.018006 | 0.099035 | 0.042444 | 0.042444 | 0 | 0 | 0 | 0 | 0.008588 | 0.202483 | 2,336 | 61 | 116 | 38.295082 | 0.826087 | 0 | 0 | 0.16 | 0 | 0 | 0.233733 | 0.074486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.16 | 0.06 | 0.52 | 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 |
dff3640e4522b94bd0b006e173fa5353f2efefd9 | 1,522 | py | Python | python/exercism/robot-simulator/robot_simulator.py | lmregus/Portfolio | 9a751443edbfe5ff2b47cdeacca86761ed03e81f | [
"MIT"
] | null | null | null | python/exercism/robot-simulator/robot_simulator.py | lmregus/Portfolio | 9a751443edbfe5ff2b47cdeacca86761ed03e81f | [
"MIT"
] | 1 | 2021-11-15T17:46:44.000Z | 2021-11-15T17:46:44.000Z | python/exercism/robot-simulator/robot_simulator.py | lmregus/Portfolio | 9a751443edbfe5ff2b47cdeacca86761ed03e81f | [
"MIT"
] | null | null | null | #########################
# #
# Developer: Luis Regus #
# Date: 11/24/15 #
# #
#########################
NORTH = "north"
EAST = "east"
SOUTH = "south"
WEST = "west"
class Robot:
'''
Custom object used to represent a robot
'''
def __init__(self, ... | 27.672727 | 70 | 0.471091 | 153 | 1,522 | 4.607843 | 0.300654 | 0.234043 | 0.09078 | 0.051064 | 0.397163 | 0.397163 | 0.397163 | 0.121986 | 0 | 0 | 0 | 0.021186 | 0.379763 | 1,522 | 54 | 71 | 28.185185 | 0.725636 | 0.06636 | 0 | 0.108108 | 0 | 0 | 0.015994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0 | 0 | 0.162162 | 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 |
dff5f5d42454abc2954ccaf50ecc14c428f08e9d | 1,626 | py | Python | datawinners/main/management/commands/delprjs.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | 1 | 2015-11-02T09:11:12.000Z | 2015-11-02T09:11:12.000Z | datawinners/main/management/commands/delprjs.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | datawinners/main/management/commands/delprjs.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.models import User
from django.core.management import BaseCommand
from datawinners.alldata.helper import get_all_project_for_user
from datawinners.main.database import get_database_manager
from datawinners.project import helper
from mangrove.form_model.project import Project
class Command(Ba... | 41.692308 | 129 | 0.691882 | 223 | 1,626 | 4.816144 | 0.331839 | 0.046555 | 0.063315 | 0.074488 | 0.148976 | 0.085661 | 0.085661 | 0.085661 | 0.085661 | 0 | 0 | 0.007722 | 0.203567 | 1,626 | 39 | 130 | 41.692308 | 0.821622 | 0 | 0 | 0.066667 | 0 | 0.033333 | 0.138906 | 0.013522 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.2 | 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 |
dff8692dfab9fc2d00d3689f8c80ce45bfdee9c7 | 1,927 | py | Python | squandered/account/models.py | kzborisov/squandered | df46d54d5388f9f30c89cfa912b034c1b1c93219 | [
"MIT"
] | null | null | null | squandered/account/models.py | kzborisov/squandered | df46d54d5388f9f30c89cfa912b034c1b1c93219 | [
"MIT"
] | null | null | null | squandered/account/models.py | kzborisov/squandered | df46d54d5388f9f30c89cfa912b034c1b1c93219 | [
"MIT"
] | null | null | null | from django.contrib.auth import models as auth_models
from django.contrib.auth import validators as auth_validators
from django.contrib.auth.models import User
from django.core.validators import MinLengthValidator
from django.db import models
class CustomUser(auth_models.AbstractBaseUser, auth_models.PermissionsMixin... | 27.140845 | 84 | 0.663207 | 212 | 1,927 | 5.745283 | 0.40566 | 0.066502 | 0.042693 | 0.051724 | 0.157635 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009736 | 0.253762 | 1,927 | 70 | 85 | 27.528571 | 0.837274 | 0.026466 | 0 | 0.067797 | 0 | 0 | 0.093917 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.016949 | false | 0 | 0.084746 | 0.016949 | 0.440678 | 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 |
5f00fbe7a3e05cccbfeee2ff64e8c82b8ffbe4ea | 213 | py | Python | Python Basics Part Two/Iterables.py | elipopovadev/Tournament-Tracker | 5b0acbd460257869438e27d3db770ff269ac6d40 | [
"MIT"
] | null | null | null | Python Basics Part Two/Iterables.py | elipopovadev/Tournament-Tracker | 5b0acbd460257869438e27d3db770ff269ac6d40 | [
"MIT"
] | 1 | 2022-02-21T12:40:21.000Z | 2022-02-21T12:40:21.000Z | Python Basics Part Two/Iterables.py | elipopovadev/Complete-Python-Developer | 5b0acbd460257869438e27d3db770ff269ac6d40 | [
"MIT"
] | null | null | null | users = {
'name': 'Elena',
'age': 100,
'town': 'Varna'
}
for key, value in users.items():
print(key, value)
for key in users.keys():
print(key)
for value in users.values():
print(value)
| 14.2 | 32 | 0.568075 | 30 | 213 | 4.033333 | 0.5 | 0.173554 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.253521 | 213 | 14 | 33 | 15.214286 | 0.742138 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 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 |
5f04c54446a882081146a44a64253e1745aa0871 | 3,096 | py | Python | main/QRcodecamera.py | acao2002/SmartBin-CV-and-Server | a1eea8ee97c8051e6d91ca75bca21aa6f22aed67 | [
"MIT"
] | null | null | null | main/QRcodecamera.py | acao2002/SmartBin-CV-and-Server | a1eea8ee97c8051e6d91ca75bca21aa6f22aed67 | [
"MIT"
] | null | null | null | main/QRcodecamera.py | acao2002/SmartBin-CV-and-Server | a1eea8ee97c8051e6d91ca75bca21aa6f22aed67 | [
"MIT"
] | null | null | null | import pyzbar.pyzbar as pyzbar
import cv2
import math
global image
class VideoCamera(object):
def __init__(self):
# Using OpenCV to capture from device 0. If you have trouble capturing
# from a webcam, comment the line below out and use a video file
# instead.
self.video ... | 38.222222 | 80 | 0.385013 | 302 | 3,096 | 3.910596 | 0.374172 | 0.038103 | 0.020322 | 0.040644 | 0.113463 | 0.094835 | 0.094835 | 0.094835 | 0.094835 | 0.094835 | 0 | 0.048365 | 0.52584 | 3,096 | 80 | 81 | 38.7 | 0.756131 | 0.13469 | 0 | 0.2 | 0 | 0 | 0.006566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.05 | 0 | 0.166667 | 0.083333 | 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 |
5f07b70cfadae2af087e9b91e16461cfa283d903 | 36,886 | py | Python | americangut/make_phyla_plots.py | JWDebelius/American-Gut | ed2479a5951946ed977a5916444b51c34c48e60c | [
"BSD-3-Clause-Clear"
] | 92 | 2015-02-25T18:33:56.000Z | 2021-12-10T07:47:40.000Z | americangut/make_phyla_plots.py | JWDebelius/American-Gut | ed2479a5951946ed977a5916444b51c34c48e60c | [
"BSD-3-Clause-Clear"
] | 96 | 2015-02-24T17:21:58.000Z | 2018-12-10T19:40:53.000Z | americangut/make_phyla_plots.py | JWDebelius/American-Gut | ed2479a5951946ed977a5916444b51c34c48e60c | [
"BSD-3-Clause-Clear"
] | 67 | 2015-02-25T20:53:16.000Z | 2022-03-11T14:02:16.000Z | #!/usr/bin/env python
from __future__ import division
from os.path import isfile
from matplotlib import use
use('Agg') # noqa
from biom.parse import parse_biom_table
from biom.util import biom_open
from numpy import (array, zeros, mean, ones, vstack, arange, ndarray)
import matplotlib.pyplot as plt
from matplotlib.... | 37.485772 | 79 | 0.604728 | 4,816 | 36,886 | 4.49211 | 0.125208 | 0.009245 | 0.008875 | 0.01322 | 0.427938 | 0.385458 | 0.361653 | 0.340991 | 0.325044 | 0.311269 | 0 | 0.010232 | 0.327008 | 36,886 | 983 | 80 | 37.523906 | 0.861263 | 0.061893 | 0 | 0.260982 | 0 | 0 | 0.102514 | 0.001672 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031008 | null | null | 0.002584 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5f0a77bcf37c3f12d4e7648d669ad0943b16948e | 6,702 | py | Python | bin/beautify_git_hash.py | jtolio/dotfiles | 9780fff7fc022572473ffb1e1963439dc4cdbfcc | [
"MIT"
] | 2 | 2020-07-16T06:34:38.000Z | 2020-07-16T06:38:06.000Z | bin/beautify_git_hash.py | jtolio/dotfiles | 9780fff7fc022572473ffb1e1963439dc4cdbfcc | [
"MIT"
] | 2 | 2019-11-16T23:48:17.000Z | 2020-01-20T21:51:20.000Z | bin/beautify_git_hash.py | jtolds/dotfiles | 9780fff7fc022572473ffb1e1963439dc4cdbfcc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Beautify the Git commit hash!
This is a little useless toy inspired by BitCoin's "proof of work"
concept. It enables you to modify your Git commit to enforce a
certain prefix on the Git commit hash.
Start this script from within your Git repository, and specify
the prefix you want your last ... | 38.965116 | 126 | 0.700686 | 924 | 6,702 | 4.900433 | 0.329004 | 0.043065 | 0.021201 | 0.022085 | 0.17447 | 0.141784 | 0.10424 | 0.053004 | 0.02076 | 0 | 0 | 0.016972 | 0.208744 | 6,702 | 171 | 127 | 39.192982 | 0.836885 | 0.007013 | 0 | 0.068966 | 0 | 0 | 0.167406 | 0.072978 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045977 | null | null | 0.057471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5f0b3b5e4e26addc5ce990bf49cc9438f5ac3348 | 10,557 | py | Python | IRC-BOT/bot.py | jamtot/PyProjects | ddfbefd311736e1cbb910983f5b2377e08d35bf3 | [
"MIT"
] | null | null | null | IRC-BOT/bot.py | jamtot/PyProjects | ddfbefd311736e1cbb910983f5b2377e08d35bf3 | [
"MIT"
] | null | null | null | IRC-BOT/bot.py | jamtot/PyProjects | ddfbefd311736e1cbb910983f5b2377e08d35bf3 | [
"MIT"
] | null | null | null | input = """chat.freenode.net:6667
knook
knook
knook
#rdpPONG,#gg
Hi, I'm a bot."""
#,#reddit-dailyprogrammer,#rdp,#botters-test
import socket
import threading
from funcs import *
# connection class
#-------------------------------------------------------------------
class Connection(object):
def __init__(self, s... | 35.426174 | 84 | 0.500142 | 1,186 | 10,557 | 4.347386 | 0.177909 | 0.061676 | 0.029868 | 0.023274 | 0.363654 | 0.233708 | 0.169705 | 0.126843 | 0.126843 | 0.126843 | 0 | 0.01226 | 0.343279 | 10,557 | 297 | 85 | 35.545455 | 0.731429 | 0.108838 | 0 | 0.24424 | 0 | 0 | 0.069919 | 0.002348 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004608 | 0.013825 | null | null | 0.073733 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5f12716c6cafd15330dbaec89ba386fad5980ba8 | 292 | py | Python | FUSS/heloise@athena/test_envellope.py | HeloiseS/FUSS | c7d5bbe6821eccb2a15d952a8899108098626474 | [
"MIT"
] | null | null | null | FUSS/heloise@athena/test_envellope.py | HeloiseS/FUSS | c7d5bbe6821eccb2a15d952a8899108098626474 | [
"MIT"
] | null | null | null | FUSS/heloise@athena/test_envellope.py | HeloiseS/FUSS | c7d5bbe6821eccb2a15d952a8899108098626474 | [
"MIT"
] | null | null | null | import envellope as env
import os
def test_pickle_phot():
env.pickle_phot(2, 100, [0.99, 0.99])
os.remove("*.pkl")
def test_avg_pol():
test_phot = env.Envellope(0.99, 0.99, 100, 100)
test_phot.avg_pol()
assert test_phot.avg_q is not None and test_phot.avg_u is not None
| 24.333333 | 70 | 0.688356 | 56 | 292 | 3.375 | 0.428571 | 0.063492 | 0.174603 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092437 | 0.184932 | 292 | 11 | 71 | 26.545455 | 0.701681 | 0 | 0 | 0 | 0 | 0 | 0.017123 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f1389f9c0f3afa68632700d824d5861cd71fc38 | 2,399 | py | Python | catalog/models.py | AdilYessim/project_footstats | 2fad72168c307687d4adb89f0391a7c3e8b686cc | [
"MIT"
] | null | null | null | catalog/models.py | AdilYessim/project_footstats | 2fad72168c307687d4adb89f0391a7c3e8b686cc | [
"MIT"
] | null | null | null | catalog/models.py | AdilYessim/project_footstats | 2fad72168c307687d4adb89f0391a7c3e8b686cc | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Position(models.Model):
"""
Model representing the position of player (e.g. Science Fiction, Non Fiction).
"""
name = models.CharField(max_length=200, help_text="Enter the position of player (e.g.... | 34.271429 | 134 | 0.656107 | 308 | 2,399 | 4.974026 | 0.314935 | 0.08812 | 0.082245 | 0.109661 | 0.522846 | 0.353786 | 0.303525 | 0.20953 | 0.157311 | 0.127937 | 0 | 0.015847 | 0.237182 | 2,399 | 70 | 135 | 34.271429 | 0.821311 | 0.197582 | 0 | 0.151515 | 0 | 0 | 0.141965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.030303 | 0.939394 | 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 |
5f144d3c1123cd3419faf813167cd696bc3d2196 | 2,214 | py | Python | src/django/pfb_analysis/migrations/0015_add_neighborhood_geoms.py | PeopleForBikes/pfb-network-connectivity | fe2140ee0e491312aae15f547fee0d7ac4036167 | [
"Apache-2.0"
] | 35 | 2017-01-17T15:14:59.000Z | 2021-07-26T18:59:33.000Z | src/django/pfb_analysis/migrations/0015_add_neighborhood_geoms.py | PeopleForBikes/pfb-network-connectivity | fe2140ee0e491312aae15f547fee0d7ac4036167 | [
"Apache-2.0"
] | 675 | 2017-01-16T13:46:39.000Z | 2022-03-31T15:59:11.000Z | src/django/pfb_analysis/migrations/0015_add_neighborhood_geoms.py | PeopleForBikes/pfb-network-connectivity | fe2140ee0e491312aae15f547fee0d7ac4036167 | [
"Apache-2.0"
] | 10 | 2017-01-17T15:15:02.000Z | 2021-08-18T21:59:19.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-04-12 14:03
from __future__ import unicode_literals
from builtins import next
from builtins import str
import json
import logging
import os
import shutil
import tempfile
import zipfile
import fiona
from django.contrib.gis.geos import GEOSGeometry, MultiPol... | 29.918919 | 92 | 0.69196 | 288 | 2,214 | 5.15625 | 0.496528 | 0.064646 | 0.032323 | 0.040404 | 0.026936 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012754 | 0.220867 | 2,214 | 73 | 93 | 30.328767 | 0.848116 | 0.204607 | 0 | 0.042553 | 1 | 0 | 0.06094 | 0.012768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.255319 | 0 | 0.382979 | 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 |
5f192a67054859b4a918935e6531539cd40112c9 | 764 | py | Python | upd_script/spivsspi/SpyvsSpy_Startup.py | DexterInd/Raspbian_For_Robots | 85809cb33a1b655890c54d8d9e6c4865cf0e395d | [
"MIT"
] | 34 | 2015-12-20T06:43:59.000Z | 2022-01-17T13:56:01.000Z | upd_script/spivsspi/SpyvsSpy_Startup.py | DexterInd/Raspbian_For_Robots | 85809cb33a1b655890c54d8d9e6c4865cf0e395d | [
"MIT"
] | 87 | 2015-11-15T13:30:30.000Z | 2020-12-16T20:40:12.000Z | upd_script/spivsspi/SpyvsSpy_Startup.py | DexterInd/Raspbian_For_Robots | 85809cb33a1b655890c54d8d9e6c4865cf0e395d | [
"MIT"
] | 25 | 2015-11-03T07:02:39.000Z | 2021-12-04T09:32:00.000Z | #!/usr/bin/python
import os
from time import sleep # Allows us to call the sleep function to slow down our loop
import RPi.GPIO as GPIO # Allows us to call our GPIO pins and names it just GPIO
sleep(30)
try:
GPIO.setmode(GPIO.BCM) # Set's GPIO pins to BCM GPIO numbering
INPUT_PIN_0 = 9 # GPI09
INPUT_PIN_1 = ... | 29.384615 | 84 | 0.685864 | 134 | 764 | 3.813433 | 0.477612 | 0.125245 | 0.052838 | 0.054795 | 0.121331 | 0.121331 | 0.121331 | 0.121331 | 0.121331 | 0.121331 | 0 | 0.028053 | 0.206806 | 764 | 25 | 85 | 30.56 | 0.815182 | 0.365183 | 0 | 0 | 0 | 0 | 0.130802 | 0.065401 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5f24481f3a5b9ab2a3284e7d721a0d27d6ebb798 | 391 | py | Python | ljordan/hpotter_api/__main__.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 1 | 2021-02-06T12:29:00.000Z | 2021-02-06T12:29:00.000Z | ljordan/hpotter_api/__main__.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 1 | 2020-03-07T16:05:21.000Z | 2020-03-07T16:05:21.000Z | ljordan/hpotter_api/__main__.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 4 | 2020-02-02T23:28:47.000Z | 2021-02-10T10:38:54.000Z | import logging
from os.path import dirname, abspath
from os import chdir
moduleDir = dirname(abspath(__file__)) + '/'
chdir(moduleDir)
if __name__ == '__main__':
from .config import logging_format
from .hp_server import serve_forever
logging.basicConfig(format=logging_format, level=logging.DEBUG)
... | 26.066667 | 67 | 0.741688 | 50 | 391 | 5.46 | 0.54 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16624 | 391 | 15 | 68 | 26.066667 | 0.837423 | 0 | 0 | 0 | 0 | 0 | 0.076531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 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 |
5f249ca8bcd31d090e2a6633f18d66c2c830fe05 | 964 | py | Python | pipsi/scripts/find_scripts.py | mitsuhiko/pipsi | db3e3fccbe4f8f9ed1104ed7293ec8fec6579efc | [
"BSD-3-Clause"
] | 1,841 | 2015-01-01T19:53:54.000Z | 2022-02-28T21:59:55.000Z | pipsi/scripts/find_scripts.py | mitsuhiko/pipsi | db3e3fccbe4f8f9ed1104ed7293ec8fec6579efc | [
"BSD-3-Clause"
] | 163 | 2015-01-09T21:42:11.000Z | 2021-05-02T16:49:46.000Z | pipsi/scripts/find_scripts.py | mitsuhiko/pipsi | db3e3fccbe4f8f9ed1104ed7293ec8fec6579efc | [
"BSD-3-Clause"
] | 192 | 2015-01-11T10:33:58.000Z | 2021-04-06T09:18:52.000Z | import os
import sys
import pkg_resources
pkg = sys.argv[1]
prefix = sys.argv[2]
dist = pkg_resources.get_distribution(pkg)
if dist.has_metadata('RECORD'):
for line in dist.get_metadata_lines('RECORD'):
print(os.path.join(dist.location, line.split(',')[0]))
elif dist.has_metadata('installed-files.txt'):
... | 37.076923 | 64 | 0.698133 | 129 | 964 | 5.069767 | 0.387597 | 0.03211 | 0.068807 | 0.091743 | 0.363914 | 0.17737 | 0.17737 | 0 | 0 | 0 | 0 | 0.005038 | 0.176349 | 964 | 25 | 65 | 38.56 | 0.81864 | 0 | 0 | 0 | 0 | 0 | 0.120332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.32 | 0 | 0.32 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5f282503a7ef9f2ef64b2725bf56f646b966823c | 567 | py | Python | github_leaderboard/app/migrations/0006_auto_20210401_0122.py | f0lie/github-leaderboard | b632e55311d0920ca0d1d1768758667e0459310a | [
"Apache-2.0"
] | 2 | 2021-03-01T18:28:59.000Z | 2021-03-08T18:05:55.000Z | github_leaderboard/app/migrations/0006_auto_20210401_0122.py | f0lie/github-leaderboard | b632e55311d0920ca0d1d1768758667e0459310a | [
"Apache-2.0"
] | 34 | 2021-02-17T18:03:56.000Z | 2022-03-01T20:09:59.000Z | github_leaderboard/app/migrations/0006_auto_20210401_0122.py | f0lie/github-leaderboard | b632e55311d0920ca0d1d1768758667e0459310a | [
"Apache-2.0"
] | 3 | 2021-02-17T19:52:06.000Z | 2021-08-01T12:53:48.000Z | # Generated by Django 3.1.7 on 2021-04-01 06:22
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app', '0005_auto_20210401_0121'),
]
operations =... | 27 | 124 | 0.677249 | 62 | 567 | 6.016129 | 0.725806 | 0.053619 | 0.085791 | 0.112601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070295 | 0.222222 | 567 | 20 | 125 | 28.35 | 0.77551 | 0.079365 | 0 | 0 | 1 | 0 | 0.142308 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f2c57921e87ba1dc8041c96ee511c7e90c11bb0 | 381 | py | Python | venv/lib/python3.8/site-packages/rest_friendship/urls.py | DOY2021/whiskynote | cbee0e15fadfc382302670954b50399f83e5b28c | [
"MIT"
] | 11 | 2017-05-05T11:55:59.000Z | 2022-01-21T23:53:48.000Z | venv/lib/python3.8/site-packages/rest_friendship/urls.py | DOY2021/whiskynote | cbee0e15fadfc382302670954b50399f83e5b28c | [
"MIT"
] | 4 | 2019-08-28T17:17:46.000Z | 2022-01-25T22:03:38.000Z | venv/lib/python3.8/site-packages/rest_friendship/urls.py | DOY2021/whiskynote | cbee0e15fadfc382302670954b50399f83e5b28c | [
"MIT"
] | 9 | 2017-12-27T16:10:33.000Z | 2022-03-22T04:40:38.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .views import FriendViewSet, FriendshipRequestViewSet
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'friends', FriendViewSet, base_name='friends')
router.register(r'friendrequests', FriendshipRequestVi... | 27.214286 | 88 | 0.811024 | 40 | 381 | 7.525 | 0.6 | 0.126246 | 0.099668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.091864 | 381 | 13 | 89 | 29.307692 | 0.867052 | 0.055118 | 0 | 0 | 0 | 0 | 0.117318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5f39273c41bed1282d697ab5a50d2f8cbea2dc82 | 8,897 | py | Python | sql_queries.py | mmfarrington/songplay_data_warehouse | 7404c4b265aa92c7791e16e161356a59489057e5 | [
"MIT"
] | null | null | null | sql_queries.py | mmfarrington/songplay_data_warehouse | 7404c4b265aa92c7791e16e161356a59489057e5 | [
"MIT"
] | null | null | null | sql_queries.py | mmfarrington/songplay_data_warehouse | 7404c4b265aa92c7791e16e161356a59489057e5 | [
"MIT"
] | null | null | null | import configparser
# CONFIG
config = configparser.ConfigParser()
config.read('dwh.cfg')
# DISTRIBUTION SCHEMA
schema = ("""CREATE SCHEMA IF NOT EXISTS public;
SET search_path TO public;""")
# DROP TABLES
staging_events_table_drop = ("DROP TABLE IF EXISTS staging_events;")
staging_songs_table_drop = ... | 45.860825 | 125 | 0.441385 | 739 | 8,897 | 5.051421 | 0.17862 | 0.033753 | 0.024377 | 0.033753 | 0.163407 | 0.106617 | 0.071792 | 0.027324 | 0.027324 | 0.027324 | 0 | 0.009156 | 0.496684 | 8,897 | 194 | 126 | 45.860825 | 0.824475 | 0.030572 | 0 | 0.288591 | 0 | 0 | 0.817274 | 0.011145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006711 | 0 | 0.006711 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f39900faa1f3d1e0a6aa65d2f15fc291a88b447 | 4,373 | py | Python | pack_test.py | ZCW-Data1dot2/python-basic-stats-sumalathakonjeti | 286cd4695410dc169d51f6b9f76c28d9d16f2d03 | [
"MIT"
] | null | null | null | pack_test.py | ZCW-Data1dot2/python-basic-stats-sumalathakonjeti | 286cd4695410dc169d51f6b9f76c28d9d16f2d03 | [
"MIT"
] | null | null | null | pack_test.py | ZCW-Data1dot2/python-basic-stats-sumalathakonjeti | 286cd4695410dc169d51f6b9f76c28d9d16f2d03 | [
"MIT"
] | null | null | null | from statzcw import zcount,zmed,zmean,zmode,zvariance,zstdev,zcorr,zstderr
file_path ='dataZero.csv'
file_path1 ='dataOne.csv'
file_path2 ='dataTwo.csv'
file_path3='dataThree.csv'
list_x = zcount.get_csv(file_path,'x')
list_x1 = zcount.get_csv(file_path1,'x')
list_x2 = zcount.get_csv(file_path2,'x')
list_x3 = zcount.... | 63.376812 | 217 | 0.795106 | 755 | 4,373 | 4.319205 | 0.074172 | 0.071757 | 0.073597 | 0.098129 | 0.741797 | 0.509046 | 0.262496 | 0.212205 | 0.190126 | 0 | 0 | 0.032481 | 0.042534 | 4,373 | 68 | 218 | 64.308824 | 0.746358 | 0.469472 | 0 | 0.266667 | 0 | 0 | 0.082641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.566667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a02baa912e330b235602873c140fcbd8f8130dd5 | 460 | py | Python | aleph/migrate/versions/33228b8da578_digest_timestamp_on_role.py | jalmquist/aleph | 28a56bc7edd77dbd7910c94dac40916032edc177 | [
"MIT"
] | 7 | 2020-02-18T14:35:10.000Z | 2020-03-09T22:53:10.000Z | aleph/migrate/versions/33228b8da578_digest_timestamp_on_role.py | heartofstone/aleph | d66b6615d2bfa10c291c63754f53b468de8bebde | [
"MIT"
] | 4 | 2021-09-08T02:07:35.000Z | 2022-03-12T00:33:46.000Z | aleph/migrate/versions/33228b8da578_digest_timestamp_on_role.py | heartofstone/aleph | d66b6615d2bfa10c291c63754f53b468de8bebde | [
"MIT"
] | null | null | null | """Add digest notification timestamp on role.
Revision ID: 33228b8da578
Revises: 21d0abc7c2a7
Create Date: 2018-04-26 13:45:06.436799
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '33228b8da578'
down_revision = '21d0abc7c2a7'
def upgrade():
col = sa.Colu... | 20 | 64 | 0.730435 | 62 | 460 | 5.33871 | 0.677419 | 0.060423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127551 | 0.147826 | 460 | 22 | 65 | 20.909091 | 0.716837 | 0.371739 | 0 | 0 | 0 | 0 | 0.192171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a02bbd52f31f77c8451c1e0cf340973efefdbbef | 2,498 | py | Python | Voicelab/pipeline/NodeFactory.py | KorewaLidesu/VoiceLab | afae638b94fd6bb52d6269122636a6f125651f13 | [
"MIT"
] | 27 | 2020-06-11T11:51:55.000Z | 2022-03-29T20:21:36.000Z | Voicelab/pipeline/NodeFactory.py | KorewaLidesu/VoiceLab | afae638b94fd6bb52d6269122636a6f125651f13 | [
"MIT"
] | 4 | 2020-07-01T13:17:26.000Z | 2022-03-14T15:07:31.000Z | Voicelab/pipeline/NodeFactory.py | KorewaLidesu/VoiceLab | afae638b94fd6bb52d6269122636a6f125651f13 | [
"MIT"
] | 6 | 2021-07-01T09:35:22.000Z | 2022-03-18T00:34:32.000Z | import importlib
# Task Factories know about all types of tasks that can be created and creates the appropriate instance when called
# Abstracts the creation logic, and all of the library importing away from the user
###################################################################################################
#... | 41.633333 | 115 | 0.441553 | 226 | 2,498 | 4.721239 | 0.331858 | 0.073102 | 0.029991 | 0.042174 | 0.112465 | 0.044986 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205765 | 2,498 | 59 | 116 | 42.338983 | 0.537802 | 0.331065 | 0 | 0.176471 | 0 | 0 | 0.013004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.588235 | 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 |
a038b7911a63684aeba0c6d045022e28a496c7ac | 45,727 | py | Python | geo.py | andrewdyates/geo_api | 3c60afcdeab8af472e0c03587ee52c39101bfcef | [
"Unlicense"
] | 1 | 2020-04-29T18:55:56.000Z | 2020-04-29T18:55:56.000Z | geo.py | andrewdyates/geo_api | 3c60afcdeab8af472e0c03587ee52c39101bfcef | [
"Unlicense"
] | null | null | null | geo.py | andrewdyates/geo_api | 3c60afcdeab8af472e0c03587ee52c39101bfcef | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
"""GEO (Genetic Expression Omnibus) self-contained objects.
Andrew D. Yates
"""
import re
import csv
import sys
from download import Download
# patched, local version of gzip from Python 3 to handle http streams, stream closes
from download import Gzipper
from logger import Log
RECOGNIZED_STUDY_TY... | 34.720577 | 113 | 0.625014 | 6,518 | 45,727 | 4.261276 | 0.106935 | 0.009721 | 0.005185 | 0.004608 | 0.223042 | 0.164969 | 0.132313 | 0.119784 | 0.099514 | 0.074347 | 0 | 0.00493 | 0.254751 | 45,727 | 1,316 | 114 | 34.74696 | 0.810112 | 0.181425 | 0 | 0.303112 | 0 | 0.008119 | 0.18101 | 0.007548 | 0 | 0 | 0 | 0.00228 | 0.002706 | 0 | null | null | 0.008119 | 0.008119 | 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 |
a03a306e70c9c05ce401ce1077d0a6b9e44e2551 | 3,003 | py | Python | hamonize-admin/plugins/webapi/python/tests/test_veyon_webapi.py | bsairline/hamonize | 6632d93b0149ed300d12c4eeb06cfc4fb01fce92 | [
"Apache-2.0"
] | null | null | null | hamonize-admin/plugins/webapi/python/tests/test_veyon_webapi.py | bsairline/hamonize | 6632d93b0149ed300d12c4eeb06cfc4fb01fce92 | [
"Apache-2.0"
] | 1 | 2022-03-25T19:24:44.000Z | 2022-03-25T19:24:44.000Z | hamonize-admin/plugins/webapi/python/tests/test_veyon_webapi.py | gon1942/hamonize | 0456d934569ad664e9f71c6355424426654caabf | [
"Apache-2.0",
"MIT"
] | null | null | null | #!/usr/bin/python3
import io
import json
import unittest
import time
from PIL import Image
from veyon import WebAPIClient
class Test_VeyonWebAPI(unittest.TestCase):
def setUp(self):
self.client = WebAPIClient('http://localhost:11080/api/v1/', 'localhost')
assert self.client.authenticate_with_key_file('teacher')... | 39.513158 | 137 | 0.756577 | 431 | 3,003 | 5.111369 | 0.320186 | 0.054471 | 0.090785 | 0.07626 | 0.374035 | 0.275533 | 0.238311 | 0.238311 | 0.238311 | 0.155243 | 0 | 0.035646 | 0.131202 | 3,003 | 75 | 138 | 40.04 | 0.808739 | 0.042957 | 0 | 0.070175 | 0 | 0 | 0.166783 | 0 | 0 | 0 | 0.012535 | 0 | 0.45614 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.22807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0458fd9503ef7d69b613540318d7cf1d6b3ef4d | 5,881 | py | Python | main.py | vasujain/wfh-ninja | 066c078c1b0df8b2b20881d64515f65ca8fb5b12 | [
"MIT"
] | 196 | 2015-05-17T02:15:21.000Z | 2021-09-26T00:07:08.000Z | main.py | vasujain/wfh-ninja | 066c078c1b0df8b2b20881d64515f65ca8fb5b12 | [
"MIT"
] | 5 | 2015-07-27T13:24:18.000Z | 2019-05-16T20:31:38.000Z | main.py | christinang89/wfh-ninja | 7138f5d21d1e4828803b5180468a75569fdf959a | [
"MIT"
] | 50 | 2015-07-27T12:53:42.000Z | 2018-10-02T11:15:32.000Z | from flask import *
from flask.json import JSONEncoder
from flask.ext.cors import CORS
from flask.ext.login import LoginManager, login_user , logout_user , current_user , login_required
from werkzeug.contrib.fixers import ProxyFix
import simplejson as json
import os, sys
import datetime
app = Flask(__name__, static_u... | 29.113861 | 163 | 0.669614 | 822 | 5,881 | 4.666667 | 0.206813 | 0.039885 | 0.035193 | 0.032847 | 0.3256 | 0.209854 | 0.176486 | 0.143639 | 0.100626 | 0.057873 | 0 | 0.004155 | 0.181432 | 5,881 | 201 | 164 | 29.258706 | 0.792688 | 0.074647 | 0 | 0.27027 | 0 | 0 | 0.113385 | 0.022677 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.040541 | 0.060811 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a045a5f8430015bad7a53b44b6ad8c354b8c7b2d | 1,520 | py | Python | setup.py | adarnimrod/yamltool | aec2edbc00e31e49071621278be8cafb20ea89fd | [
"MIT"
] | null | null | null | setup.py | adarnimrod/yamltool | aec2edbc00e31e49071621278be8cafb20ea89fd | [
"MIT"
] | null | null | null | setup.py | adarnimrod/yamltool | aec2edbc00e31e49071621278be8cafb20ea89fd | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import yamltool
with open("README.rst", "r", encoding="utf-8") as readme:
long_description = readme.read()
setup(
name="yamltool",
version=yamltool.__version__,
description=yamltool.__doc__.splitlines()[0],
long_description=long_description,
long_des... | 35.348837 | 68 | 0.625 | 155 | 1,520 | 5.974194 | 0.541935 | 0.12311 | 0.161987 | 0.168467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016156 | 0.226316 | 1,520 | 42 | 69 | 36.190476 | 0.771259 | 0 | 0 | 0.05 | 0 | 0 | 0.5125 | 0.016447 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 |
a051253f2dbabbfef4b367fd40e2c81c7eb8025f | 621 | py | Python | djangobmf/contrib/accounting/workflows.py | dmatthes/django-bmf | 3a97167de7841b13f1ddd23b33ae65e98dc49dfd | [
"BSD-3-Clause"
] | 1 | 2020-05-11T08:00:49.000Z | 2020-05-11T08:00:49.000Z | djangobmf/contrib/accounting/workflows.py | dmatthes/django-bmf | 3a97167de7841b13f1ddd23b33ae65e98dc49dfd | [
"BSD-3-Clause"
] | null | null | null | djangobmf/contrib/accounting/workflows.py | dmatthes/django-bmf | 3a97167de7841b13f1ddd23b33ae65e98dc49dfd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# ex:set fileencoding=utf-8:
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from djangobmf.workflows import Workflow, State, Transition
class TransactionWorkflow(Workflow):
class States:
open = State(_(u"Open"), True, delete=False)
... | 31.05 | 77 | 0.700483 | 70 | 621 | 6.042857 | 0.557143 | 0.042553 | 0.080378 | 0.104019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001942 | 0.170692 | 621 | 19 | 78 | 32.684211 | 0.819417 | 0.069243 | 0 | 0 | 0 | 0 | 0.102431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a05866e1ed411cd9b1cf34f1afa1b65cb702d970 | 3,324 | py | Python | mocat/src/tests/test_core.py | SamDuffield/mocat | 60d38ed8a6f01a4f23cd1c0ebe21905442e0af8f | [
"MIT"
] | 13 | 2020-06-16T19:18:12.000Z | 2022-03-01T15:53:26.000Z | mocat/src/tests/test_core.py | SamDuffield/mocat | 60d38ed8a6f01a4f23cd1c0ebe21905442e0af8f | [
"MIT"
] | null | null | null | mocat/src/tests/test_core.py | SamDuffield/mocat | 60d38ed8a6f01a4f23cd1c0ebe21905442e0af8f | [
"MIT"
] | null | null | null | ########################################################################################################################
# Module: tests/test_core.py
# Description: Tests for core and Sampler
#
# Web: https://github.com/SamDuffield/mocat
##################################################################################... | 32.910891 | 120 | 0.611011 | 423 | 3,324 | 4.574468 | 0.163121 | 0.144186 | 0.062016 | 0.088372 | 0.608786 | 0.522481 | 0.348837 | 0.269251 | 0.222739 | 0.176227 | 0 | 0.023666 | 0.199158 | 3,324 | 100 | 121 | 33.24 | 0.703231 | 0.032491 | 0 | 0.222222 | 0 | 0 | 0.017839 | 0 | 0 | 0 | 0 | 0 | 0.492063 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.253968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0598cb0dc5e541b2fd6b5811a22760701441fb7 | 2,250 | py | Python | module2-sql-for-analysis/assignment.py | skredenmathias/DS-Unit-3-Sprint-2-SQL-and-Databases | 59592ed5fbdbdd73b22fa6cd491a50d89ee6752d | [
"MIT"
] | 1 | 2020-01-20T13:56:35.000Z | 2020-01-20T13:56:35.000Z | module2-sql-for-analysis/assignment.py | skredenmathias/DS-Unit-3-Sprint-2-SQL-and-Databases | 59592ed5fbdbdd73b22fa6cd491a50d89ee6752d | [
"MIT"
] | null | null | null | module2-sql-for-analysis/assignment.py | skredenmathias/DS-Unit-3-Sprint-2-SQL-and-Databases | 59592ed5fbdbdd73b22fa6cd491a50d89ee6752d | [
"MIT"
] | null | null | null | pip install psycopg2-binary
import psycopg2
dbname = 'jzdtgbzn'
user = 'jzdtgbzn'
password = 'cw63FpnYdYoEO4Ih1WNiDLdCPXadK0RP'
host = 'balarama.db.elephantsql.com'
pg_conn = psycopg2.connect(dbname=dbname, user=user, password=password,
host=host)
pg_curs = pg_conn.cursor()
create_table_... | 22.959184 | 137 | 0.727111 | 296 | 2,250 | 5.324324 | 0.371622 | 0.045685 | 0.057741 | 0.022843 | 0.060914 | 0.036802 | 0 | 0 | 0 | 0 | 0 | 0.013014 | 0.146222 | 2,250 | 98 | 138 | 22.959184 | 0.807392 | 0.010667 | 0 | 0.164557 | 0 | 0.012658 | 0.465618 | 0.122247 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025316 | 0.025316 | null | null | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a05acbe6a3266cf36cb75db59bfd1b7cdf1c462d | 2,929 | py | Python | openbrewerydb_api_tests/tests/test_api_sorting.py | vshagur/openbrewerydb-api-tests | dfe1f7f0aa3cc00c60cf55e82be0e4a4726125b2 | [
"MIT"
] | null | null | null | openbrewerydb_api_tests/tests/test_api_sorting.py | vshagur/openbrewerydb-api-tests | dfe1f7f0aa3cc00c60cf55e82be0e4a4726125b2 | [
"MIT"
] | null | null | null | openbrewerydb_api_tests/tests/test_api_sorting.py | vshagur/openbrewerydb-api-tests | dfe1f7f0aa3cc00c60cf55e82be0e4a4726125b2 | [
"MIT"
] | null | null | null | from itertools import product
import pytest
from openbrewerydb_api_tests import configuration as CONF
TEST_DATA = {
'endpoints': [
# city endpoints
'breweries?by_city=portland',
'breweries?by_city=san%20diego',
'breweries?by_city=san_diego',
# name endpoints
'brewe... | 34.458824 | 90 | 0.631956 | 342 | 2,929 | 5.274854 | 0.365497 | 0.097561 | 0.055432 | 0.036585 | 0.205654 | 0.108647 | 0.04878 | 0.04878 | 0 | 0 | 0 | 0.015062 | 0.251963 | 2,929 | 84 | 91 | 34.869048 | 0.808307 | 0.152953 | 0 | 0 | 0 | 0 | 0.261224 | 0.182449 | 0 | 0 | 0 | 0.02381 | 0.038462 | 1 | 0.057692 | false | 0 | 0.057692 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0629b49bb54d82cf7d09d3ba6aec8fb20d6431a | 9,742 | py | Python | software/gpscv/common/bin/gnssreport.py | openttp/openttp | 34c7641ddace2bfaa13175367d4f5dfc4861d2dc | [
"MIT"
] | 4 | 2016-08-15T03:15:35.000Z | 2019-07-16T09:32:40.000Z | software/gpscv/common/bin/gnssreport.py | openttp/openttp | 34c7641ddace2bfaa13175367d4f5dfc4861d2dc | [
"MIT"
] | 12 | 2016-03-24T04:02:50.000Z | 2019-05-12T01:15:00.000Z | software/gpscv/common/bin/gnssreport.py | openttp/openttp | 34c7641ddace2bfaa13175367d4f5dfc4861d2dc | [
"MIT"
] | 5 | 2016-06-18T19:48:55.000Z | 2021-01-28T05:54:48.000Z | #!/usr/bin/python
#
#
# The MIT License (MIT)
#
# Copyright (c) 2018 Michael J. Wouters
#
# 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 t... | 28.074928 | 174 | 0.637857 | 1,406 | 9,742 | 4.407539 | 0.283073 | 0.00355 | 0.021946 | 0.003873 | 0.134581 | 0.09198 | 0.066161 | 0.033242 | 0.026787 | 0.006132 | 0 | 0.020833 | 0.167317 | 9,742 | 347 | 175 | 28.074928 | 0.743097 | 0.243584 | 0 | 0.283186 | 0 | 0.017699 | 0.217248 | 0.037782 | 0 | 0 | 0 | 0.002882 | 0 | 0 | null | null | 0 | 0.039823 | null | null | 0.026549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a064a946ff31e7f1e0462c4e3ba4b5469f60d0e5 | 3,778 | py | Python | 2019/notebooks/01 Performance Tuning ETL.py | marcelfranke/sqlserverkonferenz | 4a784edfc6014ed189f44301ec8aea948d500f8f | [
"MIT"
] | null | null | null | 2019/notebooks/01 Performance Tuning ETL.py | marcelfranke/sqlserverkonferenz | 4a784edfc6014ed189f44301ec8aea948d500f8f | [
"MIT"
] | null | null | null | 2019/notebooks/01 Performance Tuning ETL.py | marcelfranke/sqlserverkonferenz | 4a784edfc6014ed189f44301ec8aea948d500f8f | [
"MIT"
] | null | null | null | # Databricks notebook source
# MAGIC %md <h2>Create widget to choose source data folder<h2>
# COMMAND ----------
dbutils.widgets.dropdown("SF", "10", [str(x) for x in (10, 100)])
dbutils.widgets.dropdown("Source", "Blob", [str(x) for x in ("Blob", "DataLake")])
# COMMAND ----------
#create a parameter for the widge... | 29.515625 | 159 | 0.708047 | 418 | 3,778 | 6.358852 | 0.34689 | 0.037622 | 0.081264 | 0.079007 | 0.428894 | 0.421369 | 0.405944 | 0.405944 | 0.344996 | 0.344996 | 0 | 0.013318 | 0.08576 | 3,778 | 128 | 160 | 29.515625 | 0.756225 | 0.317628 | 0 | 0.177778 | 0 | 0 | 0.236801 | 0.062648 | 0 | 0 | 0 | 0.007813 | 0 | 0 | null | null | 0 | 0 | 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 |
a06c9e834809a2540610ad814eb6a80b73623db7 | 1,559 | py | Python | src/exploratory/figure_peaks.py | MezerLab/age-pred-r1 | 5e72fa3ede6306f779a262ded4e2c10d932df038 | [
"Apache-2.0"
] | null | null | null | src/exploratory/figure_peaks.py | MezerLab/age-pred-r1 | 5e72fa3ede6306f779a262ded4e2c10d932df038 | [
"Apache-2.0"
] | null | null | null | src/exploratory/figure_peaks.py | MezerLab/age-pred-r1 | 5e72fa3ede6306f779a262ded4e2c10d932df038 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 10 09:53:30 2019
@author: asier.erramuzpe
"""
NUM_AREAS = 148
areas = load_cort_areas()
data_t1, y_t1, subs_t1 = load_cort(measure='r1', cort='midgray')
data_ct, y_ct, subs_ct = load_cort(measure = 't1', cort='volume')
ctx_rh_G_occipital_middle... | 25.983333 | 75 | 0.694676 | 282 | 1,559 | 3.617021 | 0.382979 | 0.088235 | 0.062745 | 0.05098 | 0.495098 | 0.397059 | 0.37549 | 0.277451 | 0.189216 | 0.189216 | 0 | 0.087591 | 0.121232 | 1,559 | 60 | 76 | 25.983333 | 0.656934 | 0.200128 | 0 | 0.266667 | 0 | 0 | 0.114065 | 0.042882 | 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 |
a0871dd58d48defd2f19c8015b936516c21adb94 | 771 | py | Python | 05 - Dictionary and Sets/Python_Operation_sets.py | VasudevJaiswal/Python | e47aa0f24b0394d2036a34da18b9ef22a1beb457 | [
"Apache-2.0"
] | 4 | 2021-07-25T11:58:46.000Z | 2021-09-15T03:37:36.000Z | 05 - Dictionary and Sets/Python_Operation_sets.py | VasudevJaiswal/Python | e47aa0f24b0394d2036a34da18b9ef22a1beb457 | [
"Apache-2.0"
] | null | null | null | 05 - Dictionary and Sets/Python_Operation_sets.py | VasudevJaiswal/Python | e47aa0f24b0394d2036a34da18b9ef22a1beb457 | [
"Apache-2.0"
] | null | null | null | # Operations on Sets ?
# Consider the following set:
S = {1,8,2,3}
# Len(s) : Returns 4, the length of the set
S = {1,8,2,3}
print(len(S)) #Length of the Set
# remove(8) : Updates the set S and removes 8 from S
S = {1,8,2,3}
S.remove(8) #Remove of the Set
print(S)
# pop() : Removes an arbitrary element fro... | 19.275 | 84 | 0.634241 | 153 | 771 | 3.196078 | 0.320261 | 0.03272 | 0.04908 | 0.06544 | 0.147239 | 0.147239 | 0.08998 | 0 | 0 | 0 | 0 | 0.073529 | 0.206226 | 771 | 40 | 85 | 19.275 | 0.72549 | 0.670558 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a08d613d6e35f1719f0b12931dafa24e7c5560ef | 698 | py | Python | sitegate/toolbox.py | imposeren/django-sitegate | f25049b5d8c6541e4775f12e3df455376669674b | [
"BSD-3-Clause"
] | null | null | null | sitegate/toolbox.py | imposeren/django-sitegate | f25049b5d8c6541e4775f12e3df455376669674b | [
"BSD-3-Clause"
] | null | null | null | sitegate/toolbox.py | imposeren/django-sitegate | f25049b5d8c6541e4775f12e3df455376669674b | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, url
def get_sitegate_urls():
"""Returns sitegate urlpatterns, that can be attached
to urlpatterns of a project:
# Example from urls.py.
from sitegate.toolbox import get_sitegate_urls
urlpatterns = patterns('',
...
url(r'... | 29.083333 | 125 | 0.588825 | 80 | 698 | 4.9875 | 0.4875 | 0.082707 | 0.112782 | 0.070175 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243553 | 698 | 23 | 126 | 30.347826 | 0.755682 | 0.451289 | 0 | 0 | 0 | 0 | 0.483776 | 0.389381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a08fead935e5b6133599a621abb32ec2a8893692 | 4,840 | py | Python | video_streamer/views.py | Michaelzhouisnotwhite/motion-detection-dashboard-restfulapi | 772064e9d2a53855488ad66b34abc2fd9edb1f7c | [
"MIT"
] | null | null | null | video_streamer/views.py | Michaelzhouisnotwhite/motion-detection-dashboard-restfulapi | 772064e9d2a53855488ad66b34abc2fd9edb1f7c | [
"MIT"
] | null | null | null | video_streamer/views.py | Michaelzhouisnotwhite/motion-detection-dashboard-restfulapi | 772064e9d2a53855488ad66b34abc2fd9edb1f7c | [
"MIT"
] | null | null | null | import os
from rest_framework.decorators import api_view
from rest_framework.response import Response
from django.http import HttpResponse, StreamingHttpResponse
import cv2 as cv
from dashboard.settings import MEDIA_ROOT
import time
from dashboard.settings import BASE_DIR
from video_streamer.obj_detection import ObjDe... | 30.062112 | 114 | 0.600826 | 601 | 4,840 | 4.66223 | 0.28619 | 0.008565 | 0.037116 | 0.019986 | 0.198073 | 0.143112 | 0.121699 | 0.102427 | 0.069593 | 0.069593 | 0 | 0.031395 | 0.289256 | 4,840 | 160 | 115 | 30.25 | 0.78314 | 0.029959 | 0 | 0.324786 | 0 | 0 | 0.145096 | 0.042713 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.08547 | false | 0.008547 | 0.08547 | 0.008547 | 0.239316 | 0.008547 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a091fa218da92ec0ff69aee30f0545fd224e4f75 | 970 | py | Python | zhubi/script/dump.py | happy6666/stockStrategies | 01ac608d1f69a7318d168036e8e6f77aa95c649c | [
"Apache-2.0"
] | null | null | null | zhubi/script/dump.py | happy6666/stockStrategies | 01ac608d1f69a7318d168036e8e6f77aa95c649c | [
"Apache-2.0"
] | 1 | 2019-11-04T07:56:09.000Z | 2019-11-04T07:56:09.000Z | zhubi/script/dump.py | happy6666/stockStrategies | 01ac608d1f69a7318d168036e8e6f77aa95c649c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import urllib2
import sys
import time
import socket
maxRetry=1
def dump(code,dstr):
if str(code).startswith('6'):
code=('sh%s'%code).strip()
else:
code=('sz%s'%code).strip()
t=0
retry=0
while True:
try:
req=urllib2.Request('http://market.finance.sina.com.cn/downxls.php?date=%s&symbol=%... | 23.658537 | 139 | 0.66701 | 159 | 970 | 4 | 0.597484 | 0.023585 | 0.04717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067146 | 0.140206 | 970 | 40 | 140 | 24.25 | 0.695444 | 0.016495 | 0 | 0.138889 | 0 | 0.055556 | 0.272823 | 0.049318 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0924c99703a70e7c6ee0a52ba62aed7428275aa | 308 | py | Python | oldplugins/execos.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | 1 | 2019-06-27T08:45:23.000Z | 2019-06-27T08:45:23.000Z | oldplugins/execos.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | oldplugins/execos.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | import commands
helpstring = "execos <command>"
arguments = ["self", "info", "args", "conf"]
minlevel = 5
def main(connection, info, args, conf) :
"""Executes a command in the terminal"""
if info["sender"] == conf.owner : connection.msg(info["channel"], commands.getoutput(" ".join(args[1:])))
| 38.5 | 110 | 0.649351 | 38 | 308 | 5.263158 | 0.736842 | 0.08 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.159091 | 308 | 7 | 111 | 44 | 0.764479 | 0.11039 | 0 | 0 | 0 | 0 | 0.175573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a09ab3311e5b21a31537ac985dea3d1e6644bb43 | 848 | py | Python | tests/test_i18n.py | nnseva/starlette-i18n | 8702507ae0e78616f66cb02de77cc1f4c1c65da6 | [
"Apache-2.0"
] | 7 | 2021-05-02T00:03:33.000Z | 2022-01-18T22:06:50.000Z | tests/test_i18n.py | nnseva/starlette-i18n | 8702507ae0e78616f66cb02de77cc1f4c1c65da6 | [
"Apache-2.0"
] | 8 | 2021-05-10T23:29:19.000Z | 2022-02-06T15:19:27.000Z | tests/test_i18n.py | nnseva/starlette-i18n | 8702507ae0e78616f66cb02de77cc1f4c1c65da6 | [
"Apache-2.0"
] | 4 | 2021-05-12T06:16:12.000Z | 2021-07-27T17:09:45.000Z | from starlette_i18n import constants
from starlette_i18n import gettext_lazy as _
from starlette_i18n.i18n import _language_ctx, get_locale_code, set_locale
from starlette_i18n.locale import Locale
def test_ctx_locale():
assert isinstance(_language_ctx.get(), Locale)
def test_ctx_locale_language():
locale =... | 25.69697 | 74 | 0.75 | 114 | 848 | 5.140351 | 0.263158 | 0.107509 | 0.116041 | 0.127986 | 0.266212 | 0.129693 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.145047 | 848 | 32 | 75 | 26.5 | 0.794483 | 0 | 0 | 0 | 0 | 0 | 0.058962 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.238095 | false | 0 | 0.190476 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0a74054803efb4f83c26004b5b90ff5bf3201d0 | 247 | py | Python | SE-1/OSA/python/debug.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | 1 | 2017-02-22T18:22:39.000Z | 2017-02-22T18:22:39.000Z | SE-1/OSA/python/debug.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | null | null | null | SE-1/OSA/python/debug.py | Adityajn/College-Codes | f40e1eee53b951f2101981230fc72201081fd5f7 | [
"Unlicense"
] | null | null | null | import sys
import pdb
pdb.set_trace();
print("\n Enter the numbers:");
a=input();
b=input();
c=int(a)+int(b);
print("\n the first number:");
print(a);
print("\n the second number:");
print(b);
print("\n The addition of two numbers:");
print(c);
| 15.4375 | 41 | 0.647773 | 44 | 247 | 3.613636 | 0.477273 | 0.150943 | 0.169811 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125506 | 247 | 15 | 42 | 16.466667 | 0.736111 | 0 | 0 | 0 | 0 | 0 | 0.379592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a0ad3917f9f937520116ecfc43bbec96d04d942f | 2,439 | py | Python | tb/stim_gen.py | nimish15shah/Runtime-precision-scalable-POSIT-RTL | 643fdc5970b3ebf53adb6d3ecaf7c7ce39e83e62 | [
"MIT"
] | null | null | null | tb/stim_gen.py | nimish15shah/Runtime-precision-scalable-POSIT-RTL | 643fdc5970b3ebf53adb6d3ecaf7c7ce39e83e62 | [
"MIT"
] | null | null | null | tb/stim_gen.py | nimish15shah/Runtime-precision-scalable-POSIT-RTL | 643fdc5970b3ebf53adb6d3ecaf7c7ce39e83e62 | [
"MIT"
] | null | null | null |
import sys
import random
import math
path_to_repo= Enter a path to posit software model that you have. I used PySigmoid https://github.com/mightymercado/PySigmoid
sys.path.insert(0, path_to_repo)
import FixedPointImplementation as lib
def stim_gen(file_name, n_samples, operation, L = 32, ES= 6):
assert operation ... | 23.009434 | 125 | 0.584256 | 399 | 2,439 | 3.350877 | 0.258145 | 0.024682 | 0.017951 | 0.022438 | 0.147345 | 0.046372 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.264453 | 2,439 | 105 | 126 | 23.228571 | 0.69398 | 0.0492 | 0 | 0 | 0 | 0 | 0.050173 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0 | null | null | 0 | 0.058824 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
39fca91f196fa71b9f142e0fa4d96aae61a84738 | 1,322 | py | Python | little_finger/router/router.py | yromeMfOtuO/little-finger | 6474366e6f8f9072584aa7f113a7f425544a7708 | [
"Apache-2.0"
] | null | null | null | little_finger/router/router.py | yromeMfOtuO/little-finger | 6474366e6f8f9072584aa7f113a7f425544a7708 | [
"Apache-2.0"
] | null | null | null | little_finger/router/router.py | yromeMfOtuO/little-finger | 6474366e6f8f9072584aa7f113a7f425544a7708 | [
"Apache-2.0"
] | null | null | null | """
用于减少编码中的多个简单条件if分支,
实现类似 java spring 中通过 application context 生命周期回调实现的工厂路由
实例见下方test
"""
import functools
def router(func):
"""
入口方法装饰器
:param func: 入口方法
:return: 装饰后的方法
"""
# 路由表
route_table = {}
@functools.wraps(func)
def wrapper(arg0, *args, **kwargs):
"""获取分支方法,... | 19.731343 | 78 | 0.553707 | 153 | 1,322 | 4.633987 | 0.431373 | 0.084626 | 0.059238 | 0.050776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019058 | 0.325265 | 1,322 | 66 | 79 | 20.030303 | 0.775785 | 0.158094 | 0 | 0 | 0 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.027027 | 0.027027 | 0.081081 | 0.459459 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2611d2c192e6eb066e2bce3e138beffa48c8cc55 | 331 | py | Python | tworaven_apps/solver_interfaces/admin.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 20 | 2017-12-11T07:26:06.000Z | 2021-11-22T16:16:20.000Z | tworaven_apps/solver_interfaces/admin.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 849 | 2017-10-20T18:21:18.000Z | 2022-02-18T02:45:44.000Z | tworaven_apps/solver_interfaces/admin.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 1 | 2020-05-18T06:02:13.000Z | 2020-05-18T06:02:13.000Z | from django.contrib import admin
from tworaven_apps.solver_interfaces.models import StatisticalModel
class StatisticalModelAdmin(admin.ModelAdmin):
list_display = ('model_id',
'created_on',
'user')
save_on_top = True
admin.site.register(StatisticalModel, StatisticalM... | 23.642857 | 67 | 0.706949 | 33 | 331 | 6.878788 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220544 | 331 | 13 | 68 | 25.461538 | 0.879845 | 0 | 0 | 0 | 0 | 0 | 0.066465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.