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
1052ecf57d72d8b57a828cc66b4f016867e53c8e
364
py
Python
backend/medico/urls.py
danizavtz/desafiodrf
769a6807e176d63419713562aa5962ed2d7f9587
[ "Apache-2.0" ]
null
null
null
backend/medico/urls.py
danizavtz/desafiodrf
769a6807e176d63419713562aa5962ed2d7f9587
[ "Apache-2.0" ]
6
2021-03-30T13:55:02.000Z
2022-03-02T09:27:53.000Z
backend/medico/urls.py
danizavtz/desafiodrf
769a6807e176d63419713562aa5962ed2d7f9587
[ "Apache-2.0" ]
null
null
null
from django.urls import include, path from rest_framework import routers from .views import MedicoViewSet, EspecialidadeViewSet router = routers.DefaultRouter() router.register(r'medicos', MedicoViewSet, basename='medicos') router.register(r'especialidades', EspecialidadeViewSet, basename='especialidades') urlpattern...
33.090909
83
0.796703
39
364
7.410256
0.512821
0.096886
0.103806
0
0
0
0
0
0
0
0
0
0.093407
364
11
84
33.090909
0.875758
0
0
0
0
0
0.115068
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1055906b426b429bf36f2309f898b8c381268003
2,973
py
Python
c/ethlib/other/plotPTPOffset.py
dza1/patmos
b2d8a38039b7d82931c02893b0aaac7b757f34ac
[ "BSD-2-Clause" ]
89
2015-05-08T13:55:23.000Z
2022-03-31T01:02:58.000Z
c/ethlib/other/plotPTPOffset.py
Dorteel/patmos
d6f3c2d65c49616e8c06538e0d8f135bb135235f
[ "BSD-2-Clause" ]
68
2016-05-30T11:49:07.000Z
2022-03-18T21:30:20.000Z
c/ethlib/other/plotPTPOffset.py
Dorteel/patmos
d6f3c2d65c49616e8c06538e0d8f135bb135235f
[ "BSD-2-Clause" ]
78
2015-02-25T14:39:50.000Z
2022-03-28T19:34:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys from pyqtgraph.Qt import QtGui, QtCore import numpy as np import pyqtgraph as pg from pyqtgraph.ptime import time import serial app = QtGui.QApplication(["Clock Synchronization Offset"]) pg.setConfigOption('background', 'w') pg.setConfigOption('foreground', 'b') pg...
30.030303
88
0.628994
356
2,973
5.213483
0.463483
0.023707
0.053879
0.056573
0.049569
0.03556
0
0
0
0
0
0.024186
0.235116
2,973
98
89
30.336735
0.791996
0.012782
0
0.121951
0
0
0.166042
0.029662
0
0
0
0
0
0
null
null
0
0.073171
null
null
0.097561
0
0
0
null
0
0
0
0
0
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
1058143f410ec76b65b6e59259a816fd8d42e1ac
4,370
py
Python
api.py
smihir/erail
c0d8c5630580ca3cf42c4f00445ceed60734ecaa
[ "MIT" ]
1
2018-08-02T12:56:17.000Z
2018-08-02T12:56:17.000Z
api.py
smihir/erail
c0d8c5630580ca3cf42c4f00445ceed60734ecaa
[ "MIT" ]
null
null
null
api.py
smihir/erail
c0d8c5630580ca3cf42c4f00445ceed60734ecaa
[ "MIT" ]
null
null
null
class client: import requests import datetime URL = "http://api.erail.in/{0}/" API_KEY = "" def __init__(self, apikey): self.API_KEY = apikey def __getdate(self, date): # erail API only expects first 3 characters # from the Month name (ex. sep, mar), but # this...
29.328859
66
0.559268
530
4,370
4.530189
0.254717
0.058309
0.070387
0.057476
0.28863
0.278217
0.252811
0.252811
0.235735
0.205748
0
0.005353
0.316018
4,370
148
67
29.527027
0.797926
0.149886
0
0.384615
0
0
0.092337
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.019231
0
0
0
null
0
0
0
0
0
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
105904657600a189b379e81f5e2fabb470f34ce1
892
py
Python
hy-data-analysis-with-python-spring-2020/part05-e12_coefficient_of_determination/test/test_coefficient_of_determination.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
hy-data-analysis-with-python-spring-2020/part05-e12_coefficient_of_determination/test/test_coefficient_of_determination.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
hy-data-analysis-with-python-spring-2020/part05-e12_coefficient_of_determination/test/test_coefficient_of_determination.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import unittest from tmc import points from tmc.utils import load, get_out coefficient_of_determination = load('src.coefficient_of_determination', 'coefficient_of_determination') class CoefficientOfDetermination(unittest.TestCase): @points('p05-12.1') def test_all_features(self): ...
27.875
103
0.692825
104
892
5.721154
0.471154
0.176471
0.262185
0.097479
0.147899
0.147899
0
0
0
0
0
0.101955
0.197309
892
31
104
28.774194
0.72905
0.019058
0
0.111111
0
0
0.199085
0.06865
0
0
0
0
0.111111
1
0.111111
false
0
0.166667
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
105a32fd88e12096750fdfe50708f9b3774b1b0b
6,394
py
Python
script.module.nanscrapers/lib/nanscrapers/scraperplugins/vumoo.py
TheWardoctor/BadWolf
a86184a0bd21ffbd255ae264e3f682eff58d2eef
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
script.module.nanscrapers/lib/nanscrapers/scraperplugins/vumoo.py
TheWardoctor/BadWolf
a86184a0bd21ffbd255ae264e3f682eff58d2eef
[ "Apache-2.0" ]
null
null
null
script.module.nanscrapers/lib/nanscrapers/scraperplugins/vumoo.py
TheWardoctor/BadWolf
a86184a0bd21ffbd255ae264e3f682eff58d2eef
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
import re import requests import xbmc import urlparse from ..scraper import Scraper from ..common import clean_title, random_agent, clean_search from nanscrapers.modules import cfscrape class vumoo(Scraper): domains = ['vumoo.li'] name = "Vumoo" sources = [] def __init__(self): self.base_link...
42.065789
150
0.449953
641
6,394
4.405616
0.234009
0.027266
0.029745
0.032578
0.386686
0.365085
0.310907
0.287535
0.258499
0.205382
0
0.015251
0.405224
6,394
151
151
42.344371
0.727321
0.07116
0
0.336283
0
0.017699
0.132827
0.037637
0
0
0
0
0
0
null
null
0.017699
0.061947
null
null
0.053097
0
0
0
null
0
0
0
0
0
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
10629933d3adf9dfb1c280c7a89c88422f162883
1,287
py
Python
services.py
olivierwitteman/s3-upload-portal
f8bd79f78067f43c6df168ec54cdec541429f56b
[ "MIT" ]
null
null
null
services.py
olivierwitteman/s3-upload-portal
f8bd79f78067f43c6df168ec54cdec541429f56b
[ "MIT" ]
null
null
null
services.py
olivierwitteman/s3-upload-portal
f8bd79f78067f43c6df168ec54cdec541429f56b
[ "MIT" ]
null
null
null
import string import random import boto3 from botocore.client import Config from settings import AWS_ACCESS_KEY_ID, AWS_SECRET_KEY, BUCKET_NAME, AWS_REGION def generate_random_string(stringLength=20): letters = string.ascii_lowercase return ''.join(random.choice(letters) for i in range(stringLength)) def upload...
30.642857
108
0.648019
161
1,287
4.913043
0.459627
0.045512
0.045512
0.053097
0.141593
0.058154
0
0
0
0
0
0.013347
0.243201
1,287
42
109
30.642857
0.798768
0
0
0.057143
1
0
0.142081
0.027174
0
0
0
0
0
1
0.057143
false
0.028571
0.142857
0
0.257143
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
1066b5693fbc95c58246b25e3e3541f45b19b58a
2,747
py
Python
provision/env/lib/python3.6/site-packages/ansible/module_utils/postgres.py
brightkan/tukole-frontend
45e1d82a4ae5a65e88e7434f67d4d1a88f462e96
[ "MIT" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/module_utils/postgres.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/module_utils/postgres.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2019-03-20T13:25:24.000Z
2019-03-20T13:25:24.000Z
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
44.306452
119
0.740444
385
2,747
5.223377
0.52987
0.02735
0.016907
0.022874
0.091497
0.067628
0.067628
0.067628
0.067628
0.067628
0
0.010272
0.184929
2,747
61
120
45.032787
0.887896
0.630506
0
0
0
0
0.205076
0
0
0
0
0
0
1
0.083333
false
0.083333
0.125
0.041667
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1071266946b4b691ad0e75ff3fc05bc1c62a8770
2,012
py
Python
exo/studio/users/urls.py
moas/sketchbadges
7c5be91a74f9edd759eaacd9a7b97aef873f7fcb
[ "MIT" ]
null
null
null
exo/studio/users/urls.py
moas/sketchbadges
7c5be91a74f9edd759eaacd9a7b97aef873f7fcb
[ "MIT" ]
null
null
null
exo/studio/users/urls.py
moas/sketchbadges
7c5be91a74f9edd759eaacd9a7b97aef873f7fcb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.conf.urls import url from django.contrib.auth.views import ( logout_then_login, login, password_change ) from django.core.urlresolvers import reverse_lazy from django.views import generic from . import views urlpatte...
24.240964
64
0.553678
216
2,012
5.018519
0.291667
0.088561
0.073801
0.062731
0.070111
0.070111
0.046125
0.046125
0.046125
0.046125
0
0.00347
0.283797
2,012
82
65
24.536585
0.748786
0.010437
0
0.320513
0
0
0.199598
0.059829
0
0
0
0
0
1
0
false
0.064103
0.076923
0
0.076923
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
107128e472fef35fcf2e98180945f4eab2ebfb4f
10,401
py
Python
compete_questions/world_cup.py
tianyuningmou/Algorithm
30b52da686cf037133488de0068a2d8739a210e2
[ "MIT" ]
1
2018-04-11T14:40:33.000Z
2018-04-11T14:40:33.000Z
compete_questions/world_cup.py
tianyuningmou/Algorithm
30b52da686cf037133488de0068a2d8739a210e2
[ "MIT" ]
null
null
null
compete_questions/world_cup.py
tianyuningmou/Algorithm
30b52da686cf037133488de0068a2d8739a210e2
[ "MIT" ]
1
2018-03-21T14:01:59.000Z
2018-03-21T14:01:59.000Z
# -*- coding: utf-8 -*- """ Copyright () 2018 All rights reserved FILE: world_cup.py AUTHOR: tianyuningmou DATE CREATED: @Time : 2018/5/29 上午10:11 DESCRIPTION: . VERSION: : #1 CHANGED By: : tianyuningmou CHANGE: : MODIFIED: : @Time : 2018/5/29 上午10:11 """ import sys total_list = list() for i in range(16): ...
83.208
166
0.588597
1,885
10,401
3.093369
0.047215
0.447608
0.044589
0.026754
0.688733
0.253473
0.197736
0.058309
0.058309
0.058309
0
0.152346
0.172003
10,401
124
167
83.879032
0.524733
0.029132
0
0.024096
0
0.012048
0.009605
0
0
0
0
0
0
1
0
false
0
0.012048
0
0.012048
0.012048
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
1071aa6730371ece5ca62881be49805f88a95fbb
3,303
py
Python
pypetrophysics/convert.py
andymcdgeo/PyPetrophysics
353de7d2b80a9f0200f3983732ed9e9944378e72
[ "Apache-2.0" ]
14
2020-06-19T07:46:18.000Z
2022-03-04T08:52:38.000Z
pypetrophysics/convert.py
andymcdgeo/PyPetrophysics
353de7d2b80a9f0200f3983732ed9e9944378e72
[ "Apache-2.0" ]
null
null
null
pypetrophysics/convert.py
andymcdgeo/PyPetrophysics
353de7d2b80a9f0200f3983732ed9e9944378e72
[ "Apache-2.0" ]
2
2020-06-19T07:47:11.000Z
2022-03-15T16:11:30.000Z
""" Conversion functions """ # Depth and length conversions def ft_to_m(inputvalue): """ Converts feet to metres. Parameters ---------- inputvalue : float Input value in feet. Returns ------- float Returns value in metres. """ return inputvalue * 0.3048 def m_...
21.448052
102
0.556161
334
3,303
5.461078
0.200599
0.04989
0.095943
0.115132
0.48739
0.435307
0.360746
0.316886
0.073465
0.073465
0
0.029161
0.325159
3,303
154
102
21.448052
0.789143
0.433243
0
0.324324
0
0
0.060241
0
0
0
0
0
0
1
0.189189
false
0
0
0
0.594595
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
1074ee660a46893e1ee2dec966c0cb1fac800ef7
640
py
Python
constants.py
ashesh-0/PdfFromImages
7bbf85a8a2dc8ac45eb97ff5a01889f64f043f73
[ "MIT" ]
null
null
null
constants.py
ashesh-0/PdfFromImages
7bbf85a8a2dc8ac45eb97ff5a01889f64f043f73
[ "MIT" ]
null
null
null
constants.py
ashesh-0/PdfFromImages
7bbf85a8a2dc8ac45eb97ff5a01889f64f043f73
[ "MIT" ]
null
null
null
import numpy as np def get_constants(): return { 'background_cleaning': { 'lower_white': np.array([0, 0, 0], dtype=np.uint8), 'upper_white': np.array([180, 10, 255], dtype=np.uint8), 'angles': list(range(-15, 15)), 'left_book_start_threshold': 800, ...
29.090909
68
0.5
76
640
3.973684
0.671053
0.046358
0.07947
0.139073
0
0
0
0
0
0
0
0.105263
0.346875
640
21
69
30.47619
0.617225
0
0
0
0
0
0.303125
0.121875
0
0
0
0
0
1
0.052632
true
0
0.052632
0.052632
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
1077a6d2f52e88b445e9d450db2af3b7ce47ac02
1,049
py
Python
bin/helpers.py
connordittmar/cturtle
8231c3f3016de4998d58b9315d19a9841d5defd8
[ "MIT" ]
null
null
null
bin/helpers.py
connordittmar/cturtle
8231c3f3016de4998d58b9315d19a9841d5defd8
[ "MIT" ]
null
null
null
bin/helpers.py
connordittmar/cturtle
8231c3f3016de4998d58b9315d19a9841d5defd8
[ "MIT" ]
null
null
null
from math import sqrt def force2pwm(force,motor): if force > 2: force = 2 if force < -2: force = -2 pwm = 0.8*abs(force)+0.35 if force < 0: pwm = -pwm if pwm > 1: pwm = 1 elif pwm < -1: pwm = -1 return pwm def get_speed(telemetry,telemetry_last): ...
31.787879
117
0.663489
163
1,049
4.07362
0.196319
0.215361
0.144578
0.14006
0.695783
0.653614
0.653614
0.584337
0.584337
0.584337
0
0.053381
0.196378
1,049
32
118
32.78125
0.734282
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.148148
false
0
0.037037
0
0.333333
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
107ab037135c4730f9f1d56a6ff2ddf3363ebecc
1,398
py
Python
pastepwn/analyzers/tests/privatekeyanalyzer_test.py
bajubullet/pastepwn
641afb3174c999a2f8a18d522791227a3a3b8189
[ "MIT" ]
null
null
null
pastepwn/analyzers/tests/privatekeyanalyzer_test.py
bajubullet/pastepwn
641afb3174c999a2f8a18d522791227a3a3b8189
[ "MIT" ]
null
null
null
pastepwn/analyzers/tests/privatekeyanalyzer_test.py
bajubullet/pastepwn
641afb3174c999a2f8a18d522791227a3a3b8189
[ "MIT" ]
1
2019-10-09T13:09:17.000Z
2019-10-09T13:09:17.000Z
# -*- coding: utf-8 -*- import unittest from unittest import mock from pastepwn.analyzers.privatekeyanalyzer import PrivateKeyAnalyzer class TestMailAnalyzer(unittest.TestCase): def setUp(self): self.analyzer = PrivateKeyAnalyzer(None) self.paste = mock.Mock() def test_match_positive(self): ...
35.846154
68
0.641631
160
1,398
5.53125
0.26875
0.172881
0.117514
0.189831
0.526554
0.526554
0.526554
0.480226
0.480226
0.418079
0
0.000899
0.204578
1,398
38
69
36.789474
0.794964
0.065808
0
0.296296
0
0
0.155212
0
0
0
0
0
0.296296
1
0.111111
false
0
0.111111
0
0.259259
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
108692f064d4206241f72cecd731c72446b87c0b
10,352
py
Python
apps/assistant_xmpp.py
daniele-athome/hass-conf
621708bd74b85570d22969346950aeece4f6c813
[ "CC-BY-4.0" ]
5
2020-11-04T10:38:55.000Z
2022-01-02T13:35:43.000Z
apps/assistant_xmpp.py
daniele-athome/hass-config
621708bd74b85570d22969346950aeece4f6c813
[ "CC-BY-4.0" ]
null
null
null
apps/assistant_xmpp.py
daniele-athome/hass-config
621708bd74b85570d22969346950aeece4f6c813
[ "CC-BY-4.0" ]
null
null
null
from slixmpp.plugins import xep_0066 import importer import hermes.constants as hermes_constants import hermes.hermesapi as hermes import os import cgi import tempfile import shutil import slixmpp import urllib3 from rhasspyhermes.dialogue import DialogueAction, DialogueSessionStarted from rhasspyhermes.tts import ...
40.124031
122
0.586264
1,165
10,352
5.028326
0.243777
0.048822
0.024411
0.020485
0.209286
0.166268
0.146808
0.116422
0.105667
0.078013
0
0.006141
0.323609
10,352
257
123
40.280156
0.830477
0.088196
0
0.162921
0
0
0.118123
0
0
0
0
0.015564
0
1
0.05618
false
0.033708
0.067416
0
0.162921
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
10873f17a79fbbaaeddbf604167201baccec25d3
8,429
py
Python
fhirbug/Fhir/Resources/communication.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
8
2019-01-06T18:11:20.000Z
2022-02-24T02:06:55.000Z
fhirbug/Fhir/Resources/communication.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
5
2019-01-25T14:15:35.000Z
2021-06-01T23:22:41.000Z
fhirbug/Fhir/Resources/communication.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
3
2020-10-14T23:09:29.000Z
2021-08-09T19:27:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Communication) on 2019-01-25. # 2019, SMART Health IT. ## from . import domainresource class Communication(domainresource.DomainResource): """ A record of information transmitted from...
38.313636
110
0.631866
834
8,429
6.335731
0.214628
0.037472
0.03785
0.068319
0.453255
0.319833
0.313967
0.279902
0.217827
0.217827
0
0.003321
0.249733
8,429
220
111
38.313636
0.832226
0.121604
0
0.226804
1
0
0.127633
0.008674
0
0
0
0
0
1
0.041237
false
0
0.154639
0
0.257732
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
1087b083dc3b5ed53846f1778d050fd79ae09a8a
1,422
py
Python
DSP Lab 6/Lab_6_Shuaiyu_Liang_sl5352/Lab6_Sec2_Ex3_sl5352.py
bubbledoodle/EL-GY-6183-Digital-Signal-Processing-LAB
fe8b00357f04a39806664d56eb4f9e9c681fb49e
[ "MIT" ]
null
null
null
DSP Lab 6/Lab_6_Shuaiyu_Liang_sl5352/Lab6_Sec2_Ex3_sl5352.py
bubbledoodle/EL-GY-6183-Digital-Signal-Processing-LAB
fe8b00357f04a39806664d56eb4f9e9c681fb49e
[ "MIT" ]
null
null
null
DSP Lab 6/Lab_6_Shuaiyu_Liang_sl5352/Lab6_Sec2_Ex3_sl5352.py
bubbledoodle/EL-GY-6183-Digital-Signal-Processing-LAB
fe8b00357f04a39806664d56eb4f9e9c681fb49e
[ "MIT" ]
null
null
null
import pyaudio import struct import numpy as np from matplotlib import pyplot as plt from scipy import signal # audio parameters WIDTH = 2 CHANNELS = 1 RATE = 16000 BLOCKSIZE = 1024 DURATION = 10 NumBlocks = int(DURATION * RATE / BLOCKSIZE) print 'the number of BLOCKSIZE = ', BLOCKSIZE print 'the sampling rate = ',...
23.311475
78
0.660338
225
1,422
4.075556
0.413333
0.030534
0.037077
0
0
0
0
0
0
0
0
0.039894
0.206751
1,422
60
79
23.7
0.77305
0.037271
0
0
0
0
0.068232
0
0
0
0
0
0
0
null
null
0
0.108696
null
null
0.108696
0
0
0
null
0
0
0
0
0
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
1087bf4616b7b0350cf9e8c9afcb3eb46a238835
1,348
py
Python
coreml/data/utils.py
core-ml/coreml
c983b919ec9041a9a8d71c03829158ed41da7890
[ "MIT" ]
11
2020-08-28T08:15:24.000Z
2021-08-13T04:50:03.000Z
coreml/data/utils.py
core-ml/coreml
c983b919ec9041a9a8d71c03829158ed41da7890
[ "MIT" ]
9
2020-12-21T18:03:55.000Z
2022-03-29T22:15:54.000Z
coreml/data/utils.py
core-ml/coreml
c983b919ec9041a9a8d71c03829158ed41da7890
[ "MIT" ]
2
2020-08-05T16:49:27.000Z
2020-08-20T01:40:07.000Z
from typing import Tuple from os.path import join import sys from coreml.utils.logger import color from coreml.utils.io import read_yml from coreml.utils.typing import DatasetConfigDict def read_dataset_from_config( data_root: str, dataset_config: DatasetConfigDict) -> dict: """ Loads and returns the ...
37.444444
78
0.706231
172
1,348
5.406977
0.354651
0.153763
0.048387
0.073118
0
0
0
0
0
0
0
0
0.197329
1,348
35
79
38.514286
0.859519
0.450297
0
0
0
0
0.141606
0
0
0
0
0
0
1
0.0625
false
0
0.375
0
0.5
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1088f0cf4fe8f58837847c8d44ed70a295f79b15
2,480
py
Python
src/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
11
2018-01-16T06:39:00.000Z
2021-11-28T11:46:41.000Z
src/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
null
null
null
src/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
2
2019-08-16T14:53:37.000Z
2019-08-17T02:01:22.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @Author:lch02 @Time: 2017/12/25 14:46 @Description: 处理xlxsw中的文本,将其中的数据(160w条)导出 """ import os import re import pickle from nltk import regexp_tokenize from nltk.corpus import stopwords from config import test_path from openpyxl import load_workbook from multiprocess...
29.879518
124
0.515726
310
2,480
4
0.425806
0.025806
0.035484
0.033871
0.275806
0.26129
0.195161
0.195161
0.195161
0.195161
0
0.020942
0.306855
2,480
82
125
30.243902
0.700407
0.02621
0
0.225806
0
0
0.110916
0
0
0
0
0
0
0
null
null
0
0.145161
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
108c68099c60cd18a69caad2c7b3905f9470fcf4
20,899
py
Python
MicropolisCore/src/pyMicropolis/micropolisEngine/micropolisdrawingarea.py
mura/micropolis
b0c5a3f495ebabbc51d5e45dac948d8e40fc53ee
[ "TCL" ]
775
2015-03-15T13:15:10.000Z
2022-03-27T01:35:59.000Z
MicropolisCore/src/pyMicropolis/micropolisEngine/micropolisdrawingarea.py
mura/micropolis
b0c5a3f495ebabbc51d5e45dac948d8e40fc53ee
[ "TCL" ]
16
2015-04-18T05:41:37.000Z
2021-06-30T19:03:28.000Z
MicropolisCore/src/pyMicropolis/micropolisEngine/micropolisdrawingarea.py
mura/micropolis
b0c5a3f495ebabbc51d5e45dac948d8e40fc53ee
[ "TCL" ]
192
2015-03-15T15:33:59.000Z
2022-03-25T05:15:56.000Z
# micropolisdrawingarea.py # # Micropolis, Unix Version. This game was released for the Unix platform # in or about 1990 and has been modified for inclusion in the One Laptop # Per Child program. Copyright (C) 1989 - 2007 Electronic Arts Inc. If # you need assistance with this program, you may contact: # http://wi...
23.994259
133
0.550888
2,087
20,899
5.471011
0.247724
0.016553
0.013137
0.00832
0.221492
0.19189
0.165265
0.155281
0.146698
0.129707
0
0.009573
0.330207
20,899
870
134
24.021839
0.806115
0.184459
0
0.436673
0
0
0.031656
0.002226
0
0
0
0.001149
0
0
null
null
0.022684
0.030246
null
null
0.00189
0
0
0
null
0
0
0
0
0
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
109255712e2b258f887920772b7b4bd2c51e7b1a
9,371
py
Python
src/sentry/similarity.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/similarity.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/similarity.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import math import random import struct def scale_to_total(value): """\ Convert a mapping of distinct quantities to a mapping of proportions of the total quantity. """ total = float(sum(value.values())) return {k: (v / total) for k, v in value.items()} ...
36.463035
113
0.558852
1,066
9,371
4.856473
0.283302
0.015646
0.010044
0.015453
0.091172
0.091172
0.08615
0.072629
0.072629
0.040178
0
0.005834
0.359834
9,371
256
114
36.605469
0.857143
0.047914
0
0.197279
0
0
0.022067
0
0
0
0
0
0.020408
0
null
null
0
0.027211
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
1096e6f2804f3bfa5766de710b9e596669ad1b26
2,355
py
Python
tests/utilities/test_encryptions.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
tests/utilities/test_encryptions.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
tests/utilities/test_encryptions.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
"""Tests for the encryption class""" # third party imports import pytest # utilities from api.utilities.encryption import Encryption from api.utilities.validations.custom_validations_error import \ (ValidationError as CustomError) # mocks from ..mocks.user_mock_data import USER_DATA, DECODED_TOKEN class TestEn...
29.810127
77
0.683652
269
2,355
5.776952
0.260223
0.07722
0.041184
0.054054
0.434363
0.416345
0.357786
0.301158
0.301158
0.196911
0
0.013572
0.217834
2,355
78
78
30.192308
0.830076
0.1431
0
0.263158
0
0
0.052497
0
0
0
0
0
0.289474
1
0.184211
false
0.315789
0.105263
0
0.342105
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
109dd7aaeac1c9c91acf4450f2ca9ea3d49ccaf5
7,465
py
Python
pipeline_sdk/api/project/create_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
pipeline_sdk/api/project/create_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
pipeline_sdk/api/project/create_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: create.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 impo...
39.08377
658
0.765707
918
7,465
5.894336
0.163399
0.039919
0.046572
0.023656
0.581039
0.551654
0.513583
0.505452
0.498429
0.441693
0
0.033924
0.115472
7,465
190
659
39.289474
0.785552
0.048359
0
0.598765
1
0.006173
0.191121
0.145173
0
0
0
0
0
1
0
false
0
0.04321
0
0.04321
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
10a5c4699a4bdc27df823266d0b9f0f354e75407
1,388
py
Python
tests/unit/ppr/schema_data.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
null
null
null
tests/unit/ppr/schema_data.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
10
2021-01-25T22:24:29.000Z
2021-12-17T21:40:15.000Z
tests/unit/ppr/schema_data.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
21
2021-01-25T22:27:45.000Z
2022-01-19T19:43:37.000Z
# Copyright © 2020 Province of British Columbia # # 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 agr...
33.853659
92
0.698847
167
1,388
5.802395
0.658683
0.06192
0.026832
0.033024
0
0
0
0
0
0
0
0.006969
0.172911
1,388
40
93
34.7
0.836237
0.553314
0
0
0
0
0.603333
0.31
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
10aa9e687ab2fe0199bddf3862d75060d0b463b1
829
py
Python
test/testDatabase.py
witrdotnet/gather2gether
42b12d16351c7311ae84b1f507c6e498882bc5c8
[ "MIT" ]
1
2020-02-22T22:54:05.000Z
2020-02-22T22:54:05.000Z
test/testDatabase.py
witrdotnet/gather2gether
42b12d16351c7311ae84b1f507c6e498882bc5c8
[ "MIT" ]
13
2020-02-29T05:53:57.000Z
2020-03-16T07:57:45.000Z
test/testDatabase.py
witrdotnet/gather2gether
42b12d16351c7311ae84b1f507c6e498882bc5c8
[ "MIT" ]
null
null
null
import unittest from mock import Mock from gather2gether.db import create_database, init_database, wait_for_db_connection import logging logging.disable(logging.INFO) class TestDatabase(unittest.TestCase): def test_init_database(self): # GIVEN database = create_database("gather2gether", "127.0.0....
33.16
92
0.683957
98
829
5.581633
0.459184
0.102377
0.032907
0.06947
0.149909
0
0
0
0
0
0
0.04
0.215923
829
25
93
33.16
0.801538
0.039807
0
0
0
0
0.08091
0
0
0
0
0
0.1875
1
0.125
false
0.0625
0.25
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
10b2afe65a5f5d2646265992f3e029dffe951235
1,441
py
Python
digihel/urls.py
HotStew/digihel
3a53f6542b41c64c818fa34cc0709cdbfb8055db
[ "MIT" ]
21
2016-08-22T10:15:24.000Z
2022-03-23T08:10:48.000Z
digihel/urls.py
HotStew/digihel
3a53f6542b41c64c818fa34cc0709cdbfb8055db
[ "MIT" ]
101
2016-08-08T07:52:44.000Z
2021-06-17T20:18:59.000Z
digihel/urls.py
HotStew/digihel
3a53f6542b41c64c818fa34cc0709cdbfb8055db
[ "MIT" ]
16
2016-08-02T11:45:26.000Z
2021-02-18T11:27:34.000Z
from django.conf import settings from django.urls import include, path, re_path from helusers import admin from wagtail.admin import urls as wagtailadmin_urls from wagtail.core import urls as wagtail_urls from wagtail.documents import urls as wagtaildocs_urls from digi.views import sitemap_view from events.views impor...
32.75
80
0.759889
202
1,441
5.252475
0.292079
0.05655
0.059378
0.04147
0
0
0
0
0
0
0
0
0.137405
1,441
43
81
33.511628
0.85358
0.063151
0
0
0
0
0.086117
0
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
10b3e15130670de25a977c3904ccc2d06895c41a
1,450
py
Python
rest_framework_sudo/expiration.py
Nekmo/djangorestframework-sudo
1a69e3170210b569e44c3034e5e2d176411559e4
[ "MIT" ]
1
2020-03-05T14:54:56.000Z
2020-03-05T14:54:56.000Z
rest_framework_sudo/expiration.py
Nekmo/djangorestframework-sudo
1a69e3170210b569e44c3034e5e2d176411559e4
[ "MIT" ]
null
null
null
rest_framework_sudo/expiration.py
Nekmo/djangorestframework-sudo
1a69e3170210b569e44c3034e5e2d176411559e4
[ "MIT" ]
null
null
null
import datetime from functools import wraps from rest_framework.exceptions import PermissionDenied from rest_framework_sudo import settings from django.contrib.auth.models import AbstractUser from django.utils import timezone from rest_framework_sudo.utils import get_request_argument def get_user_remaning_time(use...
29.591837
110
0.744138
188
1,450
5.510638
0.324468
0.062741
0.065637
0.073359
0.167954
0.119691
0
0
0
0
0
0.00253
0.182069
1,450
48
111
30.208333
0.870995
0
0
0.057143
0
0
0.053793
0
0
0
0
0
0
1
0.171429
false
0
0.2
0.028571
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
10b5fd99e1b15caaa12c2287175d86839278ccdf
1,716
py
Python
9.archive.py
MohanSha/EAMS
bf43a855c0a44da8e5aa76a30f6ac3f1e899bd00
[ "MIT" ]
null
null
null
9.archive.py
MohanSha/EAMS
bf43a855c0a44da8e5aa76a30f6ac3f1e899bd00
[ "MIT" ]
null
null
null
9.archive.py
MohanSha/EAMS
bf43a855c0a44da8e5aa76a30f6ac3f1e899bd00
[ "MIT" ]
null
null
null
#import libraries import MySQLdb import ConfigParser #reading config file Config = ConfigParser.ConfigParser() Config.read("config.ini") # Establish a MySQL connection database = MySQLdb.connect (host=Config.get("hradb","host"), port=int(Config.get("hradb","port")), user=Confi...
34.32
132
0.74359
250
1,716
4.908
0.292
0.08965
0.0978
0.117359
0.211084
0
0
0
0
0
0
0.002706
0.138695
1,716
50
133
34.32
0.82747
0.148601
0
0
0
0
0.409836
0
0
0
0
0
0
0
null
null
0.033333
0.066667
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
10b7a5ee77fa79c032fac2422058411907a0858d
1,315
py
Python
Protheus_WebApp/Modules/SIGAFAT/TRKXFUNTESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
17
2018-09-24T17:27:08.000Z
2021-09-16T19:09:46.000Z
Protheus_WebApp/Modules/SIGAFAT/TRKXFUNTESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
4
2018-09-24T17:30:32.000Z
2022-01-03T11:39:30.000Z
Protheus_WebApp/Modules/SIGAFAT/TRKXFUNTESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
18
2019-06-07T17:41:34.000Z
2022-01-31T18:17:31.000Z
from tir import Webapp import unittest from datetime import datetime DateSystem = datetime.today().strftime("%d/%m/%Y") class TRKXFUN(unittest.TestCase): @classmethod def setUpClass(self): self.oHelper = Webapp(autostart=False) self.oHelper.SetTIRConfig(config_name="User", value="telemarket...
35.540541
76
0.663878
144
1,315
5.972222
0.479167
0.243023
0.139535
0.067442
0.076744
0
0
0
0
0
0
0.026591
0.19924
1,315
37
77
35.540541
0.790123
0
0
0.064516
0
0
0.168693
0
0
0
0
0
0.032258
1
0.096774
false
0.032258
0.096774
0
0.225806
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
52a3082e57bff718b8d7a5f6e86269d6b1d9132b
539
py
Python
hub/views.py
Minifranger/raspberry_square
2c9dac138ef1bc75659aa00d797a59621876256a
[ "MIT" ]
null
null
null
hub/views.py
Minifranger/raspberry_square
2c9dac138ef1bc75659aa00d797a59621876256a
[ "MIT" ]
null
null
null
hub/views.py
Minifranger/raspberry_square
2c9dac138ef1bc75659aa00d797a59621876256a
[ "MIT" ]
null
null
null
from flask_socketio import SocketIO, emit from flask import Flask, render_template app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app) @app.route('/') def hub(): return render_template("hub.html") @app.route('/gps') def gps(): return render_template("gps.html") @socketio....
16.333333
41
0.695733
70
539
5.2
0.385714
0.115385
0.10989
0
0
0
0
0
0
0
0
0
0.141002
539
32
42
16.84375
0.786177
0
0
0
0
0
0.185529
0
0
0
0
0
0
1
0.25
false
0
0.1
0.1
0.45
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
0
1
0
0
0
0
0
0
0
1
52aff833351300dedcbe9310ecf8565c1aa2a9fa
3,001
py
Python
tests/test_coreir/test_coreir_tuple.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
tests/test_coreir/test_coreir_tuple.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
tests/test_coreir/test_coreir_tuple.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
import magma as m from magma.testing import check_files_equal def def_foo(): foo = m.DefineCircuit("Foo", "ifc", m.Tuple(I=m.In(m.Bit), O=m.Out(m.Bit))) m.wire(foo.ifc.I, foo.ifc.O) m.EndCircuit() return foo def test_multi_direction_tuple(): foo = def_foo() m.compile("build/test_multi_direct...
37.987342
94
0.626791
489
3,001
3.599182
0.147239
0.031818
0.132955
0.169886
0.715909
0.563636
0.528409
0.422727
0.404545
0.404545
0
0.00552
0.215262
3,001
78
95
38.474359
0.741826
0.022659
0
0.209677
0
0
0.203002
0.172296
0
0
0
0
0.112903
1
0.096774
false
0
0.032258
0
0.145161
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
52b0ed8c94bc58dcc11a828908716afcb5173b80
889
py
Python
tutorial/requests_demo.py
zfanai/scrapy-study
9db78e37e594166ecbf599a37771022a9c99e758
[ "Apache-2.0" ]
null
null
null
tutorial/requests_demo.py
zfanai/scrapy-study
9db78e37e594166ecbf599a37771022a9c99e758
[ "Apache-2.0" ]
null
null
null
tutorial/requests_demo.py
zfanai/scrapy-study
9db78e37e594166ecbf599a37771022a9c99e758
[ "Apache-2.0" ]
null
null
null
#encoding:utf8 import requests def func1(): r = requests.get(url='http://www.itwhy.org') # 最基本的GET请求 print(r.status_code) # 获取返回状态 r = requests.get(url='http://dict.baidu.com/s', params={'wd': 'python'}) # 带参数的GET请求 print(r.url) print type(r.text), len(r.text) #, r.text print (u'中国') wi...
29.633333
120
0.613048
142
889
3.746479
0.450704
0.056391
0.067669
0.084586
0.50188
0.430451
0.430451
0.430451
0.430451
0.379699
0
0.024759
0.182227
889
30
121
29.633333
0.707015
0.101237
0
0.318182
0
0.090909
0.328698
0
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.227273
0
0
0
null
0
0
0
0
0
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
52b30efde7c05501b50fca27fc556f8ad013bfad
1,973
py
Python
backend/swagger_server/controllers/auth.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
6
2019-01-29T05:58:37.000Z
2021-11-02T22:47:02.000Z
backend/swagger_server/controllers/auth.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
9
2020-09-09T04:53:01.000Z
2022-03-08T22:52:18.000Z
backend/swagger_server/controllers/auth.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
4
2019-01-29T07:38:55.000Z
2021-10-16T21:06:42.000Z
import uuid import urllib from flask import request from flask_jwt_extended import ( create_access_token ) from ..db import Session from ..mappings import * from ..jwt_claims import TokenObject from ..models import AuthResult, ErrorMessage def auth_post(username: str, password: str = None): """ Log in as a u...
25.623377
70
0.638621
232
1,973
5.314655
0.353448
0.038929
0.05515
0.064882
0.145174
0.107056
0.107056
0.107056
0.107056
0.107056
0
0.008368
0.273188
1,973
76
71
25.960526
0.851464
0.073492
0
0.290909
0
0
0.044036
0
0
0
0
0
0
1
0.036364
false
0.090909
0.163636
0
0.309091
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
52b4501744d5ddc13730c43a85f6109d647b661d
558
py
Python
PIRMotionDetect/ModularHAT/Samples/Python/pir_loop.py
Turta-io/Modular
ad0dbb07591a6ce89b93435c74830c12f48382f2
[ "MIT" ]
1
2019-11-20T18:01:50.000Z
2019-11-20T18:01:50.000Z
PIRMotionDetect/ModularHAT/Samples/Python/pir_loop.py
Turta-io/Modular
ad0dbb07591a6ce89b93435c74830c12f48382f2
[ "MIT" ]
null
null
null
PIRMotionDetect/ModularHAT/Samples/Python/pir_loop.py
Turta-io/Modular
ad0dbb07591a6ce89b93435c74830c12f48382f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #This sample demonstrates reading motion state in a loop. #Install Modular library with "pip3 install turta-modular" from time import sleep from turta_modular import Turta_PIR_Motion_Module #Initialize pir = Turta_PIR_Motion_Module.PIRMotion(slot = 1) try: while True: #Read PIR mo...
21.461538
75
0.677419
75
558
4.946667
0.653333
0.088949
0.075472
0.107817
0
0
0
0
0
0
0
0.011547
0.224014
558
25
76
22.32
0.845266
0.358423
0
0
0
0
0.105714
0
0
0
0
0
0
1
0
false
0.1
0.2
0
0.2
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
0
0
0
1
0
0
0
0
0
1
52b604a13ceecdf78a90ecc41aa92d406a613522
479
py
Python
auditor/migrations/0007_requester_email.py
anubrata/fairwork
735db0360dc29e26a67f28a6ee59831abe1172e2
[ "MIT" ]
10
2019-05-14T07:00:18.000Z
2021-03-24T16:34:18.000Z
auditor/migrations/0007_requester_email.py
anubrata/fairwork
735db0360dc29e26a67f28a6ee59831abe1172e2
[ "MIT" ]
17
2019-05-25T00:19:17.000Z
2021-06-24T20:13:42.000Z
auditor/migrations/0007_requester_email.py
anubrata/fairwork
735db0360dc29e26a67f28a6ee59831abe1172e2
[ "MIT" ]
3
2020-02-03T21:58:40.000Z
2021-01-26T21:10:47.000Z
# Generated by Django 2.0.5 on 2018-07-31 21:52 from django.db import migrations import fernet_fields.fields class Migration(migrations.Migration): dependencies = [ ('auditor', '0006_auto_20180724_2142'), ] operations = [ migrations.AddField( model_name='requester', ...
22.809524
87
0.63048
51
479
5.764706
0.784314
0.081633
0.122449
0
0
0
0
0
0
0
0
0.096317
0.263048
479
20
88
23.95
0.736544
0.093946
0
0
1
0
0.101852
0.053241
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
52b802fe85ef76d042d15b369fbdd1613aaa440a
652
py
Python
python/Stack/stack_python.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
51
2020-09-27T15:28:05.000Z
2021-09-29T02:07:25.000Z
python/Stack/stack_python.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
152
2020-09-27T12:12:12.000Z
2021-10-03T18:22:15.000Z
python/Stack/stack_python.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
453
2020-09-27T12:34:35.000Z
2021-10-16T08:33:33.000Z
# Building a stack using python list class Stack: def __init__(self): self.items = [] def is_empty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): if self.is_empty() == True: return None else: ...
18.111111
36
0.590491
88
652
4.272727
0.363636
0.119681
0.119681
0.143617
0
0
0
0
0
0
0
0.008457
0.27454
652
36
37
18.111111
0.786469
0.064417
0
0.083333
0
0
0.049342
0
0
0
0
0
0
1
0.208333
false
0
0
0.041667
0.416667
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
1
0
0
0
0
0
0
0
1
52bba4f3de7b6dbc5219680b37e8ef73c970ddb5
3,474
py
Python
tests/check_diffs.py
djangoliv/sphinxcontrib-jupyter
66781b009df8af5be999ce91ee3f1c093567d379
[ "BSD-3-Clause" ]
76
2017-10-12T06:51:29.000Z
2021-12-16T17:49:42.000Z
tests/check_diffs.py
djangoliv/sphinxcontrib-jupyter
66781b009df8af5be999ce91ee3f1c093567d379
[ "BSD-3-Clause" ]
260
2017-10-12T04:25:38.000Z
2022-02-08T11:20:31.000Z
tests/check_diffs.py
djangoliv/sphinxcontrib-jupyter
66781b009df8af5be999ce91ee3f1c093567d379
[ "BSD-3-Clause" ]
28
2017-12-13T01:25:20.000Z
2021-04-26T13:25:39.000Z
""" Check diffs for each test file Diff Configuration ------------------ Currently this is setup to ignore metadata as the extension will generate a minimal notebook. So opening a notebook and saving will add metadata that will cause the diff checker to fail. """ import nbformat import glob import os from nbdime.dif...
36.568421
147
0.63673
426
3,474
5.035211
0.309859
0.04662
0.062005
0.022378
0.203263
0.179953
0.147319
0.147319
0.147319
0.147319
0
0.009224
0.251007
3,474
94
148
36.957447
0.815142
0.139896
0
0.166667
1
0
0.119112
0.007739
0
0
0
0
0
1
0.027778
false
0
0.111111
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
52c1fb7cc5cf8ebf01ff575036f2c9ecfee33af6
1,483
py
Python
uaa-python/app/database/github_user_db.py
corner4world/cubeai
ffe3ded358a70cd0a512420f7df2bb931eaae1c9
[ "Apache-2.0" ]
null
null
null
uaa-python/app/database/github_user_db.py
corner4world/cubeai
ffe3ded358a70cd0a512420f7df2bb931eaae1c9
[ "Apache-2.0" ]
null
null
null
uaa-python/app/database/github_user_db.py
corner4world/cubeai
ffe3ded358a70cd0a512420f7df2bb931eaae1c9
[ "Apache-2.0" ]
null
null
null
from app.global_data.global_data import g from app.domain.github_user import GithubUser def create_github_user(github_user): sql = ''' INSERT INTO github_user ( github_login, user_login ) VALUES ("{}", "{}") '''.format( github_user.githubLogin, g...
24.716667
92
0.612947
183
1,483
4.748634
0.289617
0.241657
0.073648
0.037975
0.279632
0.226697
0.226697
0.226697
0.226697
0.226697
0
0.004669
0.277815
1,483
59
93
25.135593
0.806723
0
0
0.382979
0
0
0.217127
0
0
0
0
0
0
1
0.06383
false
0
0.042553
0
0.148936
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
52c3668c0db461f45eeaae12623ffc32eab36beb
716
py
Python
cpdb/data/migrations/0087_attachmentfile_add_source_type_alter_external_id.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/data/migrations/0087_attachmentfile_add_source_type_alter_external_id.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/data/migrations/0087_attachmentfile_add_source_type_alter_external_id.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-11-02 07:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0086_allegation_subjects'), ] operations = [ migrations.AddField( ...
26.518519
78
0.614525
76
716
5.578947
0.657895
0.042453
0.108491
0.127358
0.146226
0.146226
0
0
0
0
0
0.051724
0.27095
716
26
79
27.538462
0.760536
0.094972
0
0.105263
1
0
0.12093
0.037209
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
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
52c41b11afa14f6ad359f9bafa67832999b34e29
5,236
py
Python
TimeStamp.py
nygeek/ping-analyzer
ca6178008678def4058fb41d6237fe35dd43f851
[ "MIT" ]
1
2020-02-04T19:44:54.000Z
2020-02-04T19:44:54.000Z
TimeStamp.py
nygeek/ping-analyzer
ca6178008678def4058fb41d6237fe35dd43f851
[ "MIT" ]
null
null
null
TimeStamp.py
nygeek/ping-analyzer
ca6178008678def4058fb41d6237fe35dd43f851
[ "MIT" ]
null
null
null
""" TimeStamp Operations Written by Marc Donner Started 2017-12-25 The insert_timestamps.py intercalates standard timestamps into the logs. In order to work with these timestamps reasonably, we need some operators. This file contains a class TimeStamp that does that. """ # Roadmap # # 2017-12-25 [ ] Do the right...
29.75
71
0.567227
658
5,236
4.427052
0.279635
0.037762
0.027806
0.046344
0.301407
0.256437
0.252317
0.247511
0.236526
0.236526
0
0.037406
0.310733
5,236
175
72
29.92
0.769742
0.113636
0
0.307692
0
0
0.114383
0.039443
0
0
0
0
0
0
null
null
0
0.019231
null
null
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
1
0
0
0
0
0
0
0
0
1
52c7dbdb22b934c9f51c4b94a8b6f46e7a5cc548
7,890
py
Python
openapi-python-client/openapi_client/models/signal_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/signal_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/signal_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Camunda BPM REST API OpenApi Spec for Camunda BPM REST API. # noqa: E501 The version of the OpenAPI document: 7.13.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration clas...
33.717949
243
0.620532
999
7,890
4.764765
0.153153
0.062185
0.063025
0.059874
0.57437
0.52458
0.503782
0.415966
0.368697
0.319748
0
0.017099
0.295817
7,890
233
244
33.862661
0.839633
0.452218
0
0.09
1
0
0.058301
0
0
0
0
0
0
1
0.16
false
0
0.04
0
0.35
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
52d422ed057976b9823f29f3e9bb1dcd86d748d3
383
py
Python
graphite_feeder/handler/event/handler.py
majamassarini/automate-graphite-feeder
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
[ "MIT" ]
null
null
null
graphite_feeder/handler/event/handler.py
majamassarini/automate-graphite-feeder
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
[ "MIT" ]
null
null
null
graphite_feeder/handler/event/handler.py
majamassarini/automate-graphite-feeder
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
[ "MIT" ]
null
null
null
from graphite_feeder.handler.graph import Graph from graphite_feeder.handler.event.registry import Registry class Handler(Graph, metaclass=Registry): def __init__(self, home_resources, event, from_number=None, from_unit=None): self._home_resources = home_resources self._event = event self....
34.818182
80
0.754569
50
383
5.4
0.36
0.144444
0.133333
0.185185
0
0
0
0
0
0
0
0
0.174935
383
10
81
38.3
0.85443
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
52d9192831a9f87aaa6ae1848b28213b5b01b75f
1,938
py
Python
sensor-temperature/ky015.py
sahuyash/raspberrypi-examples
de5f20e6c20fe4eb713f34c7226c9d0d2249afc3
[ "MIT" ]
41
2015-06-08T13:15:11.000Z
2022-01-20T21:16:32.000Z
sensor-temperature/ky015.py
sahuyash/raspberrypi-examples
de5f20e6c20fe4eb713f34c7226c9d0d2249afc3
[ "MIT" ]
16
2016-04-24T14:17:19.000Z
2021-07-03T12:15:17.000Z
sensor-temperature/ky015.py
sahuyash/raspberrypi-examples
de5f20e6c20fe4eb713f34c7226c9d0d2249afc3
[ "MIT" ]
31
2016-04-24T13:03:36.000Z
2021-12-07T17:03:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ read temperature and humidity from KY-015 """ import RPi.GPIO as GPIO import time def bin2dec(string_num): return str(int(string_num, 2)) tempPin = 14 # S connected to D14 def read_data(pin): data = 0 for i in range(8): if (GPIO.input(pin) == GPI...
33.413793
126
0.624355
299
1,938
4.023411
0.397993
0.082294
0.0399
0.0532
0.226101
0.079801
0.079801
0
0
0
0
0.041781
0.246646
1,938
58
127
33.413793
0.782192
0.347781
0
0.2
0
0
0.041902
0
0
0
0
0
0
1
0.05
false
0.1
0.05
0.025
0.15
0.05
0
0
0
null
0
0
0
0
0
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
52dec45d787808c8ec6ffe075000d49ed0bf93ff
405
py
Python
DynamicProgramming/ScoreProblem.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
DynamicProgramming/ScoreProblem.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
DynamicProgramming/ScoreProblem.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
# coding=utf-8 """Score problem dynamic programming solution Python implementation.""" def sp(n): dp = [0] * (n + 1) dp[0] = 1 for i in range(3, n + 1): dp[i] += dp[i - 3] for i in range(5, n + 1): dp[i] += dp[i - 5] for i in range(10, n + 1): dp[i] += dp[i - 10] return...
20.25
71
0.488889
71
405
2.676056
0.422535
0.094737
0.084211
0.173684
0.126316
0.126316
0
0
0
0
0
0.069853
0.328395
405
19
72
21.315789
0.628676
0.195062
0
0
0
0
0.025
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
52dfecec794cffd6ad4f4bb6a1a6f6ad82261226
2,019
py
Python
Day2/environment-and-paths-python/python-advanced-functions/undefined_number_of_args.py
klimpie94/Python-training
7af210126cfe2e9386a8f22075ea0d7eff80daac
[ "RSA-MD" ]
null
null
null
Day2/environment-and-paths-python/python-advanced-functions/undefined_number_of_args.py
klimpie94/Python-training
7af210126cfe2e9386a8f22075ea0d7eff80daac
[ "RSA-MD" ]
1
2021-12-13T20:33:28.000Z
2021-12-13T20:33:28.000Z
Day2/environment-and-paths-python/python-advanced-functions/undefined_number_of_args.py
klimpie94/Python-training
7af210126cfe2e9386a8f22075ea0d7eff80daac
[ "RSA-MD" ]
9
2020-02-05T10:24:12.000Z
2020-02-10T13:08:50.000Z
# Write a word count example for an undefined arguments using words. # Example: # >>> some_text = """When you look at the increasing sophistication of malware, # it becomes apparent that you need to establish highly protected enclaves of # data. The only way to achieve that is through modern encryption, properly # imp...
44.866667
79
0.67162
274
2,019
4.883212
0.587591
0.020927
0.032885
0
0
0
0
0
0
0
0
0.013495
0.265973
2,019
44
80
45.886364
0.889339
0.197623
0
0
0
0
0.72236
0.013043
0
0
0
0
0
1
0.071429
false
0
0.035714
0
0.178571
0.035714
0
0
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
52e4c1ba40944e24f2673df454b1dddffdf97d80
4,487
py
Python
pyqt/pyqt5-master/src/designer/MainWinSizePolicy.py
Ding-zhenke/Dcount-s-notebook
16c29ac7d076c466e053f1b8db4a7f4e43f67a24
[ "MIT" ]
null
null
null
pyqt/pyqt5-master/src/designer/MainWinSizePolicy.py
Ding-zhenke/Dcount-s-notebook
16c29ac7d076c466e053f1b8db4a7f4e43f67a24
[ "MIT" ]
null
null
null
pyqt/pyqt5-master/src/designer/MainWinSizePolicy.py
Ding-zhenke/Dcount-s-notebook
16c29ac7d076c466e053f1b8db4a7f4e43f67a24
[ "MIT" ]
2
2019-06-18T05:53:26.000Z
2019-06-19T03:26:02.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'MainWinSizePolicy.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): ...
53.416667
108
0.731892
430
4,487
7.590698
0.253488
0.033088
0.051471
0.032169
0.29902
0.269608
0.091912
0.064338
0.064338
0.064338
0
0.018928
0.164029
4,487
83
109
54.060241
0.85124
0.042345
0
0.028169
1
0
0.051294
0.005129
0
0
0
0
0
1
0.028169
false
0
0.014085
0
0.056338
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
52ecc028bdbccd87559988713fa229cd40298800
552
py
Python
demo/httpserver/server.py
Sijiu/wind
5908bdcf78aaaa01e4dbbf83e9160d2ec96663c0
[ "Apache-2.0" ]
null
null
null
demo/httpserver/server.py
Sijiu/wind
5908bdcf78aaaa01e4dbbf83e9160d2ec96663c0
[ "Apache-2.0" ]
null
null
null
demo/httpserver/server.py
Sijiu/wind
5908bdcf78aaaa01e4dbbf83e9160d2ec96663c0
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import socket HOST, PORT = "", 8002 listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) listen_socket.bind((HOST, PORT)) listen_socket.listen(1) print "Serving HTTP on port %s" % PORT while True: client_co...
21.230769
67
0.719203
78
552
4.884615
0.512821
0.15748
0.094488
0
0
0
0
0
0
0
0
0.034115
0.150362
552
26
68
21.230769
0.778252
0.036232
0
0
0
0
0.116761
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.117647
0
0
0
null
0
0
0
0
0
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
52efb0f0a9778b4a33f61f6a6f9c6ca943d3fdee
19,890
py
Python
Examples/rwkmisc.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
2
2021-01-13T21:20:57.000Z
2021-08-18T17:53:53.000Z
Examples/rwkmisc.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
null
null
null
Examples/rwkmisc.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
1
2020-11-05T09:56:55.000Z
2020-11-05T09:56:55.000Z
# rwk misc module import scipy, numpy import time import os, glob, re, sys from numpy import * import copy #from IPython.core.debugger import Pdb #mytrace=Pdb().set_trace import cPickle def get_date_str(): date_str = time.strftime('%m_%d_%y') return date_str def clean_list(listin): """Remove blank ent...
28.053597
132
0.584263
2,475
19,890
4.605657
0.209697
0.012545
0.014036
0.011054
0.153435
0.13624
0.126415
0.115361
0.115361
0.099219
0
0.010309
0.27823
19,890
708
133
28.09322
0.783714
0.111362
0
0.230932
0
0.002119
0.015273
0
0
0
0
0
0.002119
0
null
null
0
0.016949
null
null
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
52f57eeb3ee97dce7a547ce9068a7435623ac25e
246
py
Python
baselines/deepq/experiments/atari/video_test.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
null
null
null
baselines/deepq/experiments/atari/video_test.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
null
null
null
baselines/deepq/experiments/atari/video_test.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
1
2021-04-26T13:55:47.000Z
2021-04-26T13:55:47.000Z
import cv2 import numpy as np writer = cv2.VideoWriter("output.avi", cv2.VideoWriter_fourcc(*"MJPG"), 30,(220,220)) image = np.random.randint(0, 255, (220,220,3)).astype('uint8') for frame in range(1000): writer.write(image) writer.release()
27.333333
62
0.715447
39
246
4.487179
0.717949
0.16
0
0
0
0
0
0
0
0
0
0.122727
0.105691
246
9
63
27.333333
0.672727
0
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
52f95cb3b3acf3043f6b0b8bccf24352b5f0afce
345
py
Python
project/lint/urls.py
yumike/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
4
2015-06-22T13:30:00.000Z
2020-03-19T07:17:12.000Z
project/lint/urls.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
3
2020-02-12T01:17:37.000Z
2021-06-10T20:37:44.000Z
project/lint/urls.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
1
2015-09-18T10:45:45.000Z
2015-09-18T10:45:45.000Z
from django.conf.urls.defaults import patterns, url urlpatterns = patterns('lint.views', url(r'^$', 'index', name='lint_create'), url(r'^create$', 'create', name='lint_report_create'), url(r'^get_status$', 'get_status', name='lint_report_get_status'), url(r'^results/(?P<hash>[a-f0-9]{40})$', 'results'...
38.333333
77
0.66087
50
345
4.38
0.5
0.073059
0.091324
0
0
0
0
0
0
0
0
0.013029
0.110145
345
9
78
38.333333
0.700326
0
0
0
0
0
0.447977
0.156069
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
52fcdcd031ad2df88f71c599d568ba33147363ea
4,373
py
Python
winton_kafka_streams/processor/_stream_task.py
szczeles/winton-kafka-streams
8034cdffe4bf2ac3fa4fdf7210101dc6cdb97ed6
[ "Apache-2.0" ]
null
null
null
winton_kafka_streams/processor/_stream_task.py
szczeles/winton-kafka-streams
8034cdffe4bf2ac3fa4fdf7210101dc6cdb97ed6
[ "Apache-2.0" ]
null
null
null
winton_kafka_streams/processor/_stream_task.py
szczeles/winton-kafka-streams
8034cdffe4bf2ac3fa4fdf7210101dc6cdb97ed6
[ "Apache-2.0" ]
1
2019-04-28T23:31:24.000Z
2019-04-28T23:31:24.000Z
import queue import logging from confluent_kafka import TopicPartition from ._record_collector import RecordCollector from .processor_context import ProcessorContext from ._punctuation_queue import PunctuationQueue from .wallclock_timestamp import WallClockTimeStampExtractor class DummyRecord: """ Dummy imp...
31.235714
105
0.668649
458
4,373
6.213974
0.29476
0.046381
0.038651
0.009838
0.080112
0.037948
0.037948
0.037948
0
0
0
0.000913
0.248342
4,373
139
106
31.460432
0.864922
0.023325
0
0.131868
0
0
0.018931
0
0
0
0
0
0
0
null
null
0
0.076923
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
52ff2ca04ae3c14a2b5f6538409a518b984088f4
423
py
Python
assembly/scaffold/views/views.py
chermed/assembly
4c993d19bc9d33c1641323e03231e9ecad711b38
[ "MIT" ]
176
2019-11-16T19:44:08.000Z
2021-09-10T22:16:04.000Z
assembly/scaffold/views/views.py
chermed/assembly
4c993d19bc9d33c1641323e03231e9ecad711b38
[ "MIT" ]
12
2019-11-21T02:02:07.000Z
2020-02-17T21:45:57.000Z
assembly/scaffold/views/views.py
chermed/assembly
4c993d19bc9d33c1641323e03231e9ecad711b38
[ "MIT" ]
12
2019-11-20T08:07:11.000Z
2021-02-27T09:52:06.000Z
# -*- coding: utf-8 -*- """ Assembly: %MODULE_NAME%.py """ from assembly import (Assembly, asm, models, request, response, HTTPError) # -----------------------------------------------------------------------...
20.142857
80
0.349882
27
423
5.407407
0.740741
0
0
0
0
0
0
0
0
0
0
0.003717
0.364066
423
20
81
21.15
0.539033
0.3026
0
0
0
0
0.048951
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5e017a9147d4eb50dcc765d6336d84faf3656310
3,194
py
Python
tools/make_hitsound_diff.py
zardoru/osutk
70158073fee99c7d1a22ced13c83f937ed06a2dc
[ "Unlicense" ]
1
2016-04-08T11:59:50.000Z
2016-04-08T11:59:50.000Z
tools/make_hitsound_diff.py
zardoru/osutk
70158073fee99c7d1a22ced13c83f937ed06a2dc
[ "Unlicense" ]
null
null
null
tools/make_hitsound_diff.py
zardoru/osutk
70158073fee99c7d1a22ced13c83f937ed06a2dc
[ "Unlicense" ]
null
null
null
from osutk.osufile.beatmap import read_from_file, write_to_file, Hitsound from osutk.objects.hitobject import HitObject, HitCircle import sys def main(filename): print("Reading beatmap...", file=sys.stderr) beatmap = read_from_file(filename) moments = beatmap.get_distinct_times() print("Analyzing..."...
31.94
114
0.611459
429
3,194
4.34965
0.289044
0.022508
0.041801
0.021436
0.063237
0.042872
0.042872
0.042872
0.042872
0.042872
0
0.010791
0.303694
3,194
99
115
32.262626
0.828237
0.115529
0
0.115942
0
0
0.072443
0
0
0
0
0.010101
0
1
0.014493
false
0
0.043478
0
0.057971
0.086957
0
0
0
null
0
0
0
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
5e0f7ee7ce75e0fdd473644819b3a3fd4b5e7ee8
408
py
Python
leetcode/check-if-n-and-its-double-exist.py
hg-pyun/algorithm
cf92483c399f05e488b6febc79c80620f115fadf
[ "MIT" ]
7
2018-09-15T13:57:37.000Z
2022-03-13T10:01:56.000Z
leetcode/check-if-n-and-its-double-exist.py
hg-pyun/algorithm
cf92483c399f05e488b6febc79c80620f115fadf
[ "MIT" ]
1
2019-04-26T07:02:28.000Z
2019-04-26T07:02:28.000Z
leetcode/check-if-n-and-its-double-exist.py
hg-pyun/algorithm
cf92483c399f05e488b6febc79c80620f115fadf
[ "MIT" ]
1
2020-05-03T23:43:38.000Z
2020-05-03T23:43:38.000Z
class Solution: def checkIfExist(self, arr: List[int]) -> bool: m = {} for n in arr: if n in m: m[n] += 1 else: m[n] = 1 for n in arr: if n * 2 in m and n is not 0: return True e...
22.666667
51
0.35049
53
408
2.698113
0.471698
0.062937
0.083916
0.125874
0.167832
0.167832
0
0
0
0
0
0.034483
0.573529
408
17
52
24
0.787356
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5e15b3e67a8d9ddfd271c13324833e72031118f4
13,094
py
Python
ori_model/acc_asserts.py
apanda/modeling
e032abd413bb3325ad6e5995abadeef74314f383
[ "BSD-3-Clause" ]
3
2017-08-30T05:24:11.000Z
2021-02-25T12:17:19.000Z
ori_model/acc_asserts.py
apanda/modeling
e032abd413bb3325ad6e5995abadeef74314f383
[ "BSD-3-Clause" ]
null
null
null
ori_model/acc_asserts.py
apanda/modeling
e032abd413bb3325ad6e5995abadeef74314f383
[ "BSD-3-Clause" ]
2
2017-11-15T07:00:48.000Z
2020-12-13T17:29:03.000Z
# coding=utf-8 import z3 def PrintInfo(m, e): print 'src: %s'%(m.eval(src(e))) print 'dst: %s'%(m.eval(dst(e))) print 'snd: %s'%(m.eval(snd(e))) print 'rcv: %s'%(m.eval(rcv(e))) print 'src_P: %s'%(m.eval(src_P(e))) print 'dst_P: %s'%(m.eval(dst_P(e))) print 't: %s'%(m.eval(t(e))) def Asse...
42.102894
158
0.611501
2,277
13,094
3.450593
0.079491
0.040983
0.084765
0.11302
0.644521
0.611302
0.549192
0.514828
0.508464
0.489882
0
0.052814
0.164197
13,094
310
159
42.23871
0.65826
0.196273
0
0.231884
0
0.048309
0.165471
0.016547
0
0
0
0
0.241546
0
null
null
0
0.004831
null
null
0.120773
0
0
0
null
0
0
0
0
0
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
5e171d7b95a9a7af975655dcddb979a50b8e80f7
5,230
py
Python
overlay/window.py
davidmaamoaix/Overlay
ebfba98729d77a91e77777a514039abdb86c3e5b
[ "MIT" ]
9
2020-02-06T11:37:43.000Z
2021-01-16T02:23:21.000Z
overlay/window.py
davidmaamoaix/Overlay
ebfba98729d77a91e77777a514039abdb86c3e5b
[ "MIT" ]
4
2020-06-08T05:51:22.000Z
2021-01-11T13:41:19.000Z
overlay/window.py
davidmaamoaix/Overlay
ebfba98729d77a91e77777a514039abdb86c3e5b
[ "MIT" ]
3
2020-06-03T13:38:14.000Z
2021-01-18T02:25:32.000Z
'''The main class for creating overlays.''' __author__ = 'David Ma' __all__ = [ 'Window', 'overlays', ] import tkinter as tk overlays = [] master = tk.Tk() master.withdraw() class Window: def __init__(self, **kwargs): '''Initiate an overlay window. All parameters of this method are cofiguration parameter...
25.2657
71
0.692352
726
5,230
4.838843
0.241047
0.075149
0.033305
0.028466
0.11187
0.089952
0.021634
0
0
0
0
0.005276
0.166539
5,230
206
72
25.38835
0.800642
0.22218
0
0.180328
0
0
0.064543
0
0
0
0
0
0
1
0.204918
false
0
0.008197
0.04918
0.270492
0.008197
0
0
0
null
0
0
0
0
0
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
5e187743ef36f2ca604fcd5019c0f771e4e3045f
761
py
Python
udacity/oop/inheritance.py
JuanBalceda/python-basics
65649f1b5619efb1a4bb56abc904f848eb42a986
[ "MIT" ]
null
null
null
udacity/oop/inheritance.py
JuanBalceda/python-basics
65649f1b5619efb1a4bb56abc904f848eb42a986
[ "MIT" ]
null
null
null
udacity/oop/inheritance.py
JuanBalceda/python-basics
65649f1b5619efb1a4bb56abc904f848eb42a986
[ "MIT" ]
null
null
null
class Parent: def __init__(self, last_name, eye_color): self.last_name = last_name self.eye_color = eye_color def show_info(self): print("Last name - "+self.last_name) print("Eye color - "+self.eye_color) class Child(Parent): def __init__(self, last_name, eye_color, number...
25.366667
58
0.649146
106
761
4.320755
0.226415
0.19214
0.157205
0.104803
0.497817
0.497817
0.497817
0.427948
0.283843
0.283843
0
0.001684
0.219448
761
29
59
26.241379
0.76936
0.060447
0
0.315789
0
0
0.122191
0
0
0
0
0
0
1
0.210526
false
0
0
0
0.315789
0.263158
0
0
0
null
0
0
0
0
0
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
5e1df6b1a2915f938aed544e65957e0e5ef316d6
4,872
py
Python
bloodhound_search/bhsearch/search_resources/changeset_search.py
HelionDevPlatform/bloodhound
206b0d9898159fa8297ad1e407d38484fa378354
[ "Apache-2.0" ]
null
null
null
bloodhound_search/bhsearch/search_resources/changeset_search.py
HelionDevPlatform/bloodhound
206b0d9898159fa8297ad1e407d38484fa378354
[ "Apache-2.0" ]
null
null
null
bloodhound_search/bhsearch/search_resources/changeset_search.py
HelionDevPlatform/bloodhound
206b0d9898159fa8297ad1e407d38484fa378354
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache L...
35.304348
78
0.675903
515
4,872
6.262136
0.365049
0.018605
0.026047
0.025116
0.097985
0.068217
0.04093
0.04093
0.04093
0.04093
0
0.001367
0.249179
4,872
137
79
35.562044
0.880262
0.196429
0
0.097826
0
0
0.094553
0
0
0
0
0
0
0
null
null
0
0.086957
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5e1e34ba423b14e982fc4ae667d3d4403d745d02
2,237
py
Python
parse/main/db/models/word.py
Tomazis/kioku
31fc433581dd63d9e973c48beb3232e99abb4ad8
[ "Apache-2.0" ]
null
null
null
parse/main/db/models/word.py
Tomazis/kioku
31fc433581dd63d9e973c48beb3232e99abb4ad8
[ "Apache-2.0" ]
null
null
null
parse/main/db/models/word.py
Tomazis/kioku
31fc433581dd63d9e973c48beb3232e99abb4ad8
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Column, String, Integer, Date, ForeignKey, Table, Float from sqlalchemy.orm import relationship from db.base import Base words_kanji = Table( 'word_kanji', Base.metadata, Column('word_id', Integer, ForeignKey('word.id')), Column('kanji_id', Integer, ForeignKey('kanji.id')) ) class ...
29.826667
79
0.668306
277
2,237
5.119134
0.173285
0.114245
0.095205
0.0811
0.511989
0.500705
0.480254
0.460508
0.460508
0.428773
0
0
0.209209
2,237
74
80
30.22973
0.801583
0
0
0.40678
0
0
0.079195
0
0
0
0
0
0
1
0.084746
false
0
0.050847
0
0.694915
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
5e20a2c829506a78265173834de5203ea38abb6b
2,813
py
Python
messaging/migrations/0006_slackuser.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
messaging/migrations/0006_slackuser.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
messaging/migrations/0006_slackuser.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2022-04-24 15:45 import app.storage from django.conf import settings from django.db import migrations, models, transaction import django.db.models.deletion import uuid import versatileimagefield.fields def create_slack_users(apps, schema_editor): SlackUser = apps.get_model("messag...
34.728395
84
0.500533
240
2,813
5.6875
0.404167
0.054945
0.043956
0.07033
0.169963
0.128938
0.128938
0.128938
0.128938
0
0
0.021467
0.403839
2,813
80
85
35.1625
0.792487
0.016353
0
0.15493
1
0
0.068716
0.010127
0
0
0
0
0
1
0.014085
false
0
0.084507
0
0.140845
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
5e2663fca9716ed1f677bf17742d7d293ce17fe5
425
py
Python
nwswx/exceptions.py
stacybrock/nws-wx-client
9d557ccf2291e1ebbdb483dcb4fa11b926d5ff94
[ "Apache-2.0" ]
1
2019-12-08T16:18:16.000Z
2019-12-08T16:18:16.000Z
nwswx/exceptions.py
stacybrock/nws-wx-client
9d557ccf2291e1ebbdb483dcb4fa11b926d5ff94
[ "Apache-2.0" ]
4
2020-03-24T16:44:22.000Z
2021-02-02T21:54:26.000Z
nwswx/exceptions.py
stacybrock/nws-wx-client
9d557ccf2291e1ebbdb483dcb4fa11b926d5ff94
[ "Apache-2.0" ]
1
2019-03-26T03:01:02.000Z
2019-03-26T03:01:02.000Z
""" WxAPI Exceptions """ class WxAPIException(Exception): """Base class for exceptions in this module""" def __init__(self, message): self.message = message class InvalidFormat(WxAPIException): """The format provided is invalid""" class FormatNotAllowed(WxAPIException): """The format provided...
23.611111
61
0.708235
47
425
6.319149
0.638298
0.171717
0.154882
0.208754
0.222222
0
0
0
0
0
0
0
0.178824
425
17
62
25
0.851003
0.390588
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.833333
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
5e2a1a1b36680052cb222d10e728dd5440d97d38
1,401
py
Python
Boton.py
fjavidcr/RaspiAlert
8eae5be41ebfbc31f67c9ee029ccafc270b817ce
[ "MIT" ]
null
null
null
Boton.py
fjavidcr/RaspiAlert
8eae5be41ebfbc31f67c9ee029ccafc270b817ce
[ "MIT" ]
null
null
null
Boton.py
fjavidcr/RaspiAlert
8eae5be41ebfbc31f67c9ee029ccafc270b817ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import RPi.GPIO as GPIO import commands import os BtnPin = 35 Gpin = 32 Rpin = 37 def setup(): GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by physical location GPIO.setup(Gpin, GPIO.OUT) # Set Green Led Pin mode to output GPI...
25.017857
119
0.620271
205
1,401
4.17561
0.482927
0.070093
0.049065
0.028037
0.063084
0.063084
0.063084
0
0
0
0
0.017367
0.219129
1,401
55
120
25.472727
0.764168
0.243398
0
0.093023
0
0
0.118321
0.043893
0
0
0
0
0
0
null
null
0.023256
0.069767
null
null
0.069767
0
0
0
null
0
0
0
0
0
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
5e2d1f61cfa577d2533d78f04dfb0c2039591ce5
1,745
py
Python
setup.py
bjoernricks/python-quilt
fae88237f601848cc34d073584d9dcb409f01777
[ "MIT" ]
4
2016-12-28T23:28:02.000Z
2022-03-15T02:46:10.000Z
setup.py
bjoernricks/python-quilt
fae88237f601848cc34d073584d9dcb409f01777
[ "MIT" ]
17
2017-02-24T09:16:14.000Z
2019-04-08T08:37:17.000Z
setup.py
bjoernricks/python-quilt
fae88237f601848cc34d073584d9dcb409f01777
[ "MIT" ]
2
2017-01-03T00:55:59.000Z
2019-03-28T15:42:12.000Z
#!/usr/bin/env python # vim: fileencoding=utf-8 et sw=4 ts=4 tw=80: # python-quilt - A Python implementation of the quilt patch system # # Copyright (C) 2012 - 2017 Björn Ricks <bjoern.ricks@gmail.com> # # See LICENSE comming with the source of python-quilt for details. from setuptools import setup from codecs impor...
31.160714
72
0.639542
207
1,745
5.323672
0.507246
0.137931
0.181488
0.141561
0
0
0
0
0
0
0
0.021277
0.218911
1,745
55
73
31.727273
0.787234
0.147278
0
0
0
0
0.52262
0.030385
0
0
0
0
0
1
0
false
0
0.1
0
0.1
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
5e2d8df8c48bd09ba69703a5a4a6a4cd71a29b86
113,382
py
Python
kerr/core.py
llondon6/kerr_public
455f2d50f1ba78d76ab939d7934b78916d1f8daf
[ "MIT" ]
8
2017-06-01T21:06:48.000Z
2021-07-15T04:08:44.000Z
kerr/core.py
llondon6/kerr_public
455f2d50f1ba78d76ab939d7934b78916d1f8daf
[ "MIT" ]
null
null
null
kerr/core.py
llondon6/kerr_public
455f2d50f1ba78d76ab939d7934b78916d1f8daf
[ "MIT" ]
null
null
null
# Import underlying basic modules from kerr.basics import * # import dill ''' Method to load tabulated QNM data, interpolate and then output for input final spin ''' def leaver( jf, # Dimensionless BH Spin l, # Polar Index m, # Azim...
42.608794
431
0.535173
15,183
113,382
3.875782
0.10413
0.009109
0.002039
0.002039
0.34716
0.303691
0.270384
0.247375
0.231842
0.222207
0
0.023469
0.323931
113,382
2,660
432
42.624812
0.744214
0.275749
0
0.26592
0
0.06788
0.080669
0.008034
0.0007
0
0
0
0
0
null
null
0.0007
0.072778
null
null
0.026592
0
0
0
null
0
0
0
0
0
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
5e3382f76621ef51ca2aa97ca3ae415e4d49f90f
1,113
py
Python
fastapi_users/db/__init__.py
jtv8/fastapi-users
d0d1a0dea1b8a9c95e5aae6cd82c196c06dc370f
[ "MIT" ]
null
null
null
fastapi_users/db/__init__.py
jtv8/fastapi-users
d0d1a0dea1b8a9c95e5aae6cd82c196c06dc370f
[ "MIT" ]
null
null
null
fastapi_users/db/__init__.py
jtv8/fastapi-users
d0d1a0dea1b8a9c95e5aae6cd82c196c06dc370f
[ "MIT" ]
null
null
null
from fastapi_users.db.base import BaseUserDatabase, UserDatabaseDependency __all__ = ["BaseUserDatabase", "UserDatabaseDependency"] try: # pragma: no cover from fastapi_users_db_sqlalchemy import ( # noqa: F401 SQLAlchemyBaseOAuthAccountTable, SQLAlchemyBaseOAuthAccountTableUUID, SQLAlc...
30.081081
74
0.734052
83
1,113
9.277108
0.361446
0.105195
0.067532
0.07013
0.176623
0.176623
0.088312
0.088312
0
0
0
0.006652
0.189578
1,113
36
75
30.916667
0.847007
0.079964
0
0.2
0
0
0.235005
0.157325
0
0
0
0
0
1
0
false
0.066667
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5e35ca0396028f5413d734155c3e6e6e732c66bf
1,879
py
Python
functions.py
Penaz91/npass
793dc2bd80da9097f2b47c6d000c64029a78884a
[ "MIT" ]
null
null
null
functions.py
Penaz91/npass
793dc2bd80da9097f2b47c6d000c64029a78884a
[ "MIT" ]
null
null
null
functions.py
Penaz91/npass
793dc2bd80da9097f2b47c6d000c64029a78884a
[ "MIT" ]
null
null
null
""" Npass: Yet Another NCurses UI for Pass List and Search Functions Copyright © 2014-2019, Daniele Penazzo. The use of this code is governed by the MIT license attached. See the LICENSE file for the full license. """ import re from os import walk from os.path import join, relpath, splitext, expanduser def FuzzyFil...
32.964912
73
0.656732
234
1,879
5.252137
0.465812
0.022783
0.029292
0.022783
0
0
0
0
0
0
0
0.006369
0.248004
1,879
56
74
33.553571
0.862703
0.393294
0
0
0
0
0.029991
0
0
0
0
0
0
1
0.08
false
0.12
0.12
0
0.28
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
5e36c21db1746a6b9669d343f20a22dbbed3134c
850
py
Python
tests/test_loader.py
jjbernard/BeagleAD
fac0c14a7164211a86b478d5d921580cbb7c6d1f
[ "MIT" ]
null
null
null
tests/test_loader.py
jjbernard/BeagleAD
fac0c14a7164211a86b478d5d921580cbb7c6d1f
[ "MIT" ]
null
null
null
tests/test_loader.py
jjbernard/BeagleAD
fac0c14a7164211a86b478d5d921580cbb7c6d1f
[ "MIT" ]
null
null
null
# Test file to ensure created DataLoaders (both train and valid) # are working properly import unittest from dataload import createTSDataLoader class DataLoadTests(unittest.TestCase): def setUp(self): self.train_size = 0.8 self.bs = 64 self.w = 20 self.p_w = 2 self.data_fi...
29.310345
87
0.462353
84
850
4.47619
0.52381
0.071809
0.069149
0
0
0
0
0
0
0
0
0.015419
0.465882
850
29
88
29.310345
0.812775
0.097647
0
0.1
0
0
0.031373
0
0
0
0
0
0
1
0.15
false
0.1
0.1
0
0.3
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
eab0107d8da8c88826c1bb1aa2cb4e10870e7137
773
py
Python
maths/average_median.py
KirilBangachev/Python
7ad45a46e02edda86a45969de8768f26ef44b306
[ "MIT" ]
3
2019-10-11T20:50:59.000Z
2020-01-21T02:10:10.000Z
maths/average_median.py
KirilBangachev/Python
7ad45a46e02edda86a45969de8768f26ef44b306
[ "MIT" ]
1
2019-09-01T06:43:06.000Z
2019-09-01T06:44:55.000Z
maths/average_median.py
KirilBangachev/Python
7ad45a46e02edda86a45969de8768f26ef44b306
[ "MIT" ]
3
2019-04-29T02:36:37.000Z
2019-10-05T12:17:59.000Z
def median(nums): """ Find median of a list of numbers. >>> median([0]) 0 >>> median([4,1,3,2]) 2.5 Args: nums: List of nums Returns: Median. """ sorted_list = sorted(nums) med = None if len(sorted_list) % 2 == 0: mid_index_1 = len(sorted_list) ...
22.085714
78
0.542044
115
773
3.417391
0.321739
0.203562
0.132316
0.10687
0.279898
0.173028
0.173028
0.173028
0.173028
0.173028
0
0.07037
0.301423
773
34
79
22.735294
0.657407
0.168176
0
0
0
0
0.089076
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.166667
0.222222
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
eab0bd70e2ba63a2ee10b8cc41304c39c47274cd
1,478
py
Python
code/food_source.py
KaroBe/bachelorthesis-bioinspired-optimisation
e4495951b3721a5da1599aa84b68627ccd9036fd
[ "MIT" ]
2
2021-12-31T13:26:01.000Z
2022-01-07T12:19:57.000Z
code/food_source.py
KaroBe/bachelorthesis-bioinspired-optimisation
e4495951b3721a5da1599aa84b68627ccd9036fd
[ "MIT" ]
null
null
null
code/food_source.py
KaroBe/bachelorthesis-bioinspired-optimisation
e4495951b3721a5da1599aa84b68627ccd9036fd
[ "MIT" ]
null
null
null
""" FoodSource Class for ABC Implements properties and functions of the candidate solutions in ABC. """ # ---------------------------------------------------------- from candidate_solution import CandidateSolution, random_tour, weight import numpy as np # --------------------------------------------------------- ...
26.872727
74
0.530447
158
1,478
4.816456
0.348101
0.105125
0.057819
0.055191
0.149803
0.0841
0.0841
0
0
0
0
0.005367
0.243572
1,478
54
75
27.37037
0.675313
0.315968
0
0.230769
0
0
0.105799
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0.076923
0.423077
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
eabe504a6bfb97df6c5534b63a0604a55e87f2fd
2,120
py
Python
days/day10.py
AttitudeL/adventofcode2017
c24f6d8ac8709a8bb82e9d80d081118901527ac7
[ "MIT" ]
null
null
null
days/day10.py
AttitudeL/adventofcode2017
c24f6d8ac8709a8bb82e9d80d081118901527ac7
[ "MIT" ]
null
null
null
days/day10.py
AttitudeL/adventofcode2017
c24f6d8ac8709a8bb82e9d80d081118901527ac7
[ "MIT" ]
null
null
null
import os INPUT_DIRECTORY = '../inputs/' INPUT_FILE_EXTENSION = '_input.txt' def load_input(input_file): relative_path = os.path.join(os.path.dirname(__file__), INPUT_DIRECTORY + input_file) with open(relative_path, 'r') as opened_file: content = opened_file.read() return content def get_list(siz...
25.238095
89
0.473113
292
2,120
3.277397
0.280822
0.050157
0.050157
0.045977
0.282132
0.250784
0.250784
0.250784
0.250784
0.250784
0
0.036576
0.393868
2,120
83
90
25.542169
0.708171
0
0
0.421053
0
0
0.015566
0
0
0
0
0
0
0
null
null
0
0.013158
null
null
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
eabf13c71c964a0cf07e1f346d97840f04b663b7
1,135
py
Python
assembly/hooks/post_gen_project.py
opsani/servo-templates
ea95203ef993fa08f6d88cab15a4360a39c5bf3c
[ "Apache-2.0" ]
null
null
null
assembly/hooks/post_gen_project.py
opsani/servo-templates
ea95203ef993fa08f6d88cab15a4360a39c5bf3c
[ "Apache-2.0" ]
null
null
null
assembly/hooks/post_gen_project.py
opsani/servo-templates
ea95203ef993fa08f6d88cab15a4360a39c5bf3c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import subprocess import shlex from pathlib import Path PROJECT_DIRECTORY = os.path.realpath(os.path.curdir) def remove_file(filepath): os.remove(os.path.join(PROJECT_DIRECTORY, filepath)) def run_command(command: str): process = subprocess.Popen(shlex.split(command), stdout=s...
28.375
117
0.684581
149
1,135
5.161074
0.57047
0.052016
0.046814
0.062419
0
0
0
0
0
0
0
0.002153
0.181498
1,135
39
118
29.102564
0.825619
0.140088
0
0.111111
0
0
0.128601
0.021605
0
0
0
0
0
0
null
null
0
0.148148
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
eac0cb6869cacd855d1661480a3c6a4c6d6b4f89
516
py
Python
keep_alive.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
1
2021-04-25T18:31:48.000Z
2021-04-25T18:31:48.000Z
keep_alive.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
6
2021-03-26T21:18:57.000Z
2021-05-03T18:04:37.000Z
keep_alive.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
4
2021-03-06T16:48:36.000Z
2021-05-23T00:54:09.000Z
'''from flask import Flask from threading import Thread app = Flask('') @app.route('/') def main(): return print("Your bot is alive!") def run(): app.run(host="0.0.0.0", port=8080) 4692 def keep_alive(): server = Thread(target=run) server.start()''' '''from flask import Flask from threading import Th...
17.793103
47
0.624031
81
516
3.950617
0.37037
0.0375
0.0375
0.125
0.58125
0.58125
0.58125
0.58125
0.58125
0.58125
0
0.066351
0.182171
516
29
48
17.793103
0.691943
0.503876
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
eac2563dacb1dfc29e85c81dbe44d627b54d0b11
1,073
py
Python
tests/test_generators.py
thanethomson/lipsum
0c127e77e0e1c2d1d9d21af6a2beb4ffbec5022b
[ "MIT" ]
8
2017-02-25T23:08:25.000Z
2022-03-23T10:13:16.000Z
tests/test_generators.py
thanethomson/lipsum
0c127e77e0e1c2d1d9d21af6a2beb4ffbec5022b
[ "MIT" ]
null
null
null
tests/test_generators.py
thanethomson/lipsum
0c127e77e0e1c2d1d9d21af6a2beb4ffbec5022b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unittest from lipsum import * class TestLipsumGenerators(unittest.TestCase): def test_generate_words(self): for i in range(5): desired_word_count = rnd(100, 500) print("Attempting to generate %d words..." % ...
37
117
0.700839
128
1,073
5.554688
0.320313
0.061885
0.090014
0.042194
0.206751
0.097046
0.097046
0
0
0
0
0.01771
0.210624
1,073
28
118
38.321429
0.821724
0.019571
0
0.157895
1
0
0.105714
0
0
0
0
0
0.157895
1
0.157895
false
0
0.157895
0
0.368421
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eac9a44f04fe9e281644a3542129f854003e5e5d
1,299
py
Python
sa/profiles/Qtech/QSW8200/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Qtech/QSW8200/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Qtech/QSW8200/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Vendor: Qtech # OS: QSW8200 # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- ...
32.475
92
0.506543
127
1,299
5.062992
0.708661
0.021773
0
0
0
0
0
0
0
0
0
0.026239
0.207852
1,299
39
93
33.307692
0.598639
0.377213
0
0
0
0
0.249367
0
0
0
0
0
0
1
0.043478
false
0
0.043478
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
ead6dd16eccf758be9556ad06af6057624a7c435
29,375
py
Python
ref/v1.1/rocksat_gui.py
vt-rocksat-2017/dashboard
e99a71edc74dd8b7f3eec023c381524561a7b6e4
[ "MIT" ]
1
2017-08-09T19:57:38.000Z
2017-08-09T19:57:38.000Z
ref/v1.1/rocksat_gui.py
vt-rocksat-2017/dashboard
e99a71edc74dd8b7f3eec023c381524561a7b6e4
[ "MIT" ]
null
null
null
ref/v1.1/rocksat_gui.py
vt-rocksat-2017/dashboard
e99a71edc74dd8b7f3eec023c381524561a7b6e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import sys from PyQt4 import QtGui from PyQt4 import QtCore from PyQt4 import Qt import PyQt4.Qwt5 as Qwt #from adsb_table import * from utilities import * from plot import * from mission_clock import * class main_widget(QtGui.QWidget): def __init__(self): super(...
41.607649
135
0.64834
3,750
29,375
4.887467
0.084267
0.043213
0.05156
0.056471
0.60885
0.51435
0.451277
0.421432
0.367634
0.286938
0
0.030203
0.227915
29,375
705
136
41.666667
0.77791
0.045243
0
0.202401
0
0.013722
0.095757
0.040932
0
0
0
0
0
0
null
null
0
0.015437
null
null
0.003431
0
0
0
null
0
0
0
0
0
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
eadc2c3deee6940da22f307dd72965baac533767
9,217
py
Python
nslsii/ad33.py
gwbischof/nslsii
6d5c4b98228b32a62e34cbd381012682c9c156f2
[ "BSD-3-Clause" ]
4
2020-08-17T15:42:46.000Z
2022-02-25T07:42:43.000Z
nslsii/ad33.py
gwbischof/nslsii
6d5c4b98228b32a62e34cbd381012682c9c156f2
[ "BSD-3-Clause" ]
111
2017-12-21T15:50:58.000Z
2022-01-26T00:01:12.000Z
nslsii/ad33.py
stuartcampbell/nslsii
d134b98d7e86343f84a41674427685f78a314446
[ "BSD-3-Clause" ]
22
2017-12-22T00:25:31.000Z
2021-08-25T11:00:03.000Z
"""Classes to help with supporting AreaDetector 33 (and the wait_for_plugins functionality) This is actually adding a mix of functionality from AD 2-2 to 3-3 and all of these names may change in the future. """ from ophyd import Device, Component as Cpt from ophyd.areadetector.base import (ADBase, ADComponent as AD...
37.930041
79
0.575458
936
9,217
5.430556
0.279915
0.050364
0.049577
0.046036
0.170569
0.133386
0.08853
0.060201
0
0
0
0.009023
0.302593
9,217
242
80
38.086777
0.781736
0.04828
0
0.129944
0
0
0.177912
0.004787
0
0
0
0.004132
0
1
0.033898
false
0
0.045198
0
0.508475
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
eae3d6b602a7eb9847e2f3d27f0e345b61464087
1,643
py
Python
common/udpovertcp.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
3
2021-02-04T09:18:45.000Z
2021-03-03T02:04:15.000Z
common/udpovertcp.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
null
null
null
common/udpovertcp.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
1
2022-02-03T09:29:45.000Z
2022-02-03T09:29:45.000Z
from socket import * from msgstruct import * #from fcntl import ioctl #from termios import TIOCOUTQ from zlib import compressobj, Z_SYNC_FLUSH import struct ZeroBuffer = struct.pack("i", 0) class SocketMarshaller: def __init__(self, tcpsock, mixer): self.tcpsock = tcpsock self.mixer = mixe...
34.957447
79
0.602556
193
1,643
4.974093
0.440415
0.05625
0.020833
0.03125
0.054167
0.054167
0
0
0
0
0
0.006233
0.316494
1,643
46
80
35.717391
0.84862
0.241023
0
0.137931
0
0
0.058347
0
0
0
0.003241
0
0
0
null
null
0
0.137931
null
null
0.068966
0
0
0
null
0
0
0
0
0
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
eaec4d8b6c6630ac466ba389489261093967872b
5,806
py
Python
tests/supportModule.py
nobeans/groovy-native-launcher
7a13d614052485287ff609229c6a10ffacc63f43
[ "Ruby" ]
null
null
null
tests/supportModule.py
nobeans/groovy-native-launcher
7a13d614052485287ff609229c6a10ffacc63f43
[ "Ruby" ]
null
null
null
tests/supportModule.py
nobeans/groovy-native-launcher
7a13d614052485287ff609229c6a10ffacc63f43
[ "Ruby" ]
null
null
null
# -*- mode:python; coding:utf-8; -*- # jedit: :mode=python: # Groovy -- A native launcher for Groovy # # Copyright © 2008-9 Russel Winder # # 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 # ...
38.706667
138
0.661385
713
5,806
5.345021
0.434783
0.015744
0.011021
0.008397
0.037261
0.037261
0
0
0
0
0
0.011999
0.239235
5,806
149
139
38.966443
0.850577
0.403376
0
0.126437
0
0
0.114068
0.006435
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.022989
0
0
0
null
0
0
0
0
0
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
eaed469473ad5e60d465145fa64d8696f3285a39
413
py
Python
reader.py
aarunishsinha/Text-File-Downloader
b597699462b649c820486fb009b4f93def0a3aeb
[ "MIT" ]
null
null
null
reader.py
aarunishsinha/Text-File-Downloader
b597699462b649c820486fb009b4f93def0a3aeb
[ "MIT" ]
null
null
null
reader.py
aarunishsinha/Text-File-Downloader
b597699462b649c820486fb009b4f93def0a3aeb
[ "MIT" ]
null
null
null
import sys import pandas as pd import numpy as np import subprocess inp = pd.read_csv(sys.argv[1], header = None) inputs = np.array(inp) for i in range(np.shape(inputs)[0]): url = inputs[i][0] num_threads = inputs[i][1] print ("For", url) host = url.split(':')[1].split('/')[0] file = url.split(':')...
27.533333
74
0.62954
67
413
3.835821
0.522388
0.070039
0.070039
0.108949
0
0
0
0
0
0
0
0.025937
0.159806
413
14
75
29.5
0.714697
0
0
0
0
0
0.065375
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
eaee4187ac8822208dbdba9062298834fc62340d
7,546
py
Python
plugins/_plugin_base.py
joemarshall/GIMP-ML
06595684c61045b3ebe8ad79f65e9402b2bbe811
[ "MIT" ]
null
null
null
plugins/_plugin_base.py
joemarshall/GIMP-ML
06595684c61045b3ebe8ad79f65e9402b2bbe811
[ "MIT" ]
null
null
null
plugins/_plugin_base.py
joemarshall/GIMP-ML
06595684c61045b3ebe8ad79f65e9402b2bbe811
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import, division import os import subprocess import sys import threading from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler from abc import ABCMeta, abstractmethod from xmlrpclib import Binary import gimpfu as gfu from gimpfu import gimp, pdb ...
31.181818
94
0.608269
938
7,546
4.704691
0.235608
0.03399
0.018128
0.016995
0.130297
0.111489
0.077952
0.053932
0.053932
0.053932
0
0.006993
0.279883
7,546
241
95
31.311203
0.805116
0.006759
0
0.058201
0
0
0.034051
0.002919
0
0
0
0
0.021164
0
null
null
0
0.058201
null
null
0.010582
0
0
0
null
0
0
0
0
0
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
eaf2ece7b2a2700d1ca6c0a0ae1fca590335648d
366
py
Python
datavis/migrations/0005_auto_20191121_0004.py
Workaholics-nitd/iot-hackathon
601bfd1f7b854bf949016dc093abbe6c6eaa7eeb
[ "MIT" ]
5
2018-11-04T19:00:20.000Z
2021-07-17T09:39:21.000Z
datavis/migrations/0005_auto_20191121_0004.py
ayan-b/iot-hackathon
601bfd1f7b854bf949016dc093abbe6c6eaa7eeb
[ "MIT" ]
4
2019-12-24T06:29:21.000Z
2021-06-10T20:57:37.000Z
datavis/migrations/0005_auto_20191121_0004.py
ayan-b/iot-hackathon
601bfd1f7b854bf949016dc093abbe6c6eaa7eeb
[ "MIT" ]
2
2018-12-05T16:20:15.000Z
2019-10-02T05:20:22.000Z
# Generated by Django 2.1.3 on 2019-11-20 18:34 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('datavis', '0004_remove_comment_dustbin'), ] operations = [ migrations.RenameField( model_name='comment', old_name='author', ...
19.263158
51
0.587432
39
366
5.358974
0.820513
0
0
0
0
0
0
0
0
0
0
0.074219
0.300546
366
18
52
20.333333
0.742188
0.122951
0
0
1
0
0.159875
0.08464
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
eaf3e200482b1a78a901fcf22563e02b6f07fcf2
2,397
py
Python
src/vidsortml/utilities/plot_utilities.py
m-rubik/VidSort-ML
24b4fea9877b2f6b90a13aa2bd816db18b697d8c
[ "MIT" ]
2
2020-05-12T00:34:43.000Z
2020-05-12T00:52:27.000Z
src/vidsortml/utilities/plot_utilities.py
m-rubik/VidSort-ML
24b4fea9877b2f6b90a13aa2bd816db18b697d8c
[ "MIT" ]
null
null
null
src/vidsortml/utilities/plot_utilities.py
m-rubik/VidSort-ML
24b4fea9877b2f6b90a13aa2bd816db18b697d8c
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from vidsortml.utilities.model_utilities import load_object def plot_encodings(names): fig, ax = plt.subplots() for name in names: encodings = load_object("./encodings/"+name) import numpy as np mean_array = np.mean(encodings, axis=0) ax.scatter(...
42.803571
169
0.613684
352
2,397
3.951705
0.386364
0.058231
0.037383
0.036664
0.135155
0.097771
0.097771
0.097771
0.04601
0.04601
0
0.036592
0.236128
2,397
56
170
42.803571
0.723102
0.209846
0
0.105263
0
0
0.025161
0
0
0
0
0.017857
0
1
0.052632
false
0
0.078947
0
0.131579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
eaf4bf8a728670a64efdec8740f4098ec359e130
348
py
Python
crypto/transactions/deserializers/delegate_resignation.py
Core-Archive/python-crypto
e0db6e26e6d41de2a9b40bb9459b90ae20343d2f
[ "MIT" ]
13
2018-06-15T06:12:09.000Z
2021-11-25T04:40:48.000Z
crypto/transactions/deserializers/delegate_resignation.py
Core-Archive/python-crypto
e0db6e26e6d41de2a9b40bb9459b90ae20343d2f
[ "MIT" ]
90
2018-06-17T14:35:04.000Z
2021-06-02T16:42:39.000Z
crypto/transactions/deserializers/delegate_resignation.py
Core-Archive/python-crypto
e0db6e26e6d41de2a9b40bb9459b90ae20343d2f
[ "MIT" ]
27
2018-06-14T17:47:16.000Z
2022-03-01T12:37:51.000Z
from binascii import hexlify from crypto.transactions.deserializers.base import BaseDeserializer class DelegateResignationDeserializer(BaseDeserializer): def deserialize(self): self.transaction.parse_signatures( hexlify(self.serialized).decode(), self.asset_offset ) ...
23.2
67
0.721264
31
348
8.032258
0.709677
0.120482
0
0
0
0
0
0
0
0
0
0
0.215517
348
14
68
24.857143
0.912088
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
eaf9e1d8cfb9351e9ccbf044b477f6a4504903f0
4,142
py
Python
user/tests.py
loictessier/purbeurre-app
bb0b69ec75cf5f3e0e26423d0c00a74d9666a017
[ "MIT" ]
null
null
null
user/tests.py
loictessier/purbeurre-app
bb0b69ec75cf5f3e0e26423d0c00a74d9666a017
[ "MIT" ]
13
2019-10-28T14:34:07.000Z
2022-03-11T23:41:01.000Z
user/tests.py
loictessier/purbeurre-app
bb0b69ec75cf5f3e0e26423d0c00a74d9666a017
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from model_mommy import mommy from django.urls import reverse from .models import Profile from .forms import AuthenticationForm, SignUpForm from django.contrib.auth.models import User # Test views class AuthenticationTest(TestCase): def setUp(self): self.client =...
32.873016
107
0.650652
462
4,142
5.683983
0.15368
0.054836
0.041127
0.058644
0.667555
0.633283
0.567784
0.479056
0.387662
0.256283
0
0.000925
0.217045
4,142
125
108
33.136
0.808819
0.02873
0
0.477273
0
0
0.143249
0
0
0
0
0
0.181818
1
0.193182
false
0.159091
0.068182
0
0.329545
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
d8030da6a6c5e3643e1dd6b031c544d4bfbbf607
1,775
py
Python
guidance_and_support/tests/test_zendesk.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
4
2019-03-28T06:42:17.000Z
2021-06-06T13:10:51.000Z
guidance_and_support/tests/test_zendesk.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
177
2018-09-28T14:21:56.000Z
2022-03-30T21:45:26.000Z
guidance_and_support/tests/test_zendesk.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
8
2018-10-25T20:43:10.000Z
2022-03-17T14:19:27.000Z
"""A module of unit tests for guidance and support.""" import pytest from django.http import HttpRequest from django import forms from guidance_and_support.zendeskhelper import generate_ticket LEGITIMATE_USER = {} LEGITIMATE_USER['request'] = HttpRequest() LEGITIMATE_USER['request'].META['SERVER_NAME'] = "iatistandar...
32.272727
86
0.662535
229
1,775
4.978166
0.28821
0.17193
0.073684
0.028947
0.259649
0.182456
0.080702
0.080702
0.080702
0.080702
0
0.005413
0.167324
1,775
54
87
32.87037
0.7659
0.054085
0
0.083333
1
0
0.346523
0
0
0
0
0
0.020833
1
0.020833
false
0
0.083333
0
0.104167
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
d80d7089e3817c14efbc839a5564d19b28468407
477
py
Python
proyectos/db.py
christophermontero/estima-tu-proyecto
19f533be203c9ac2c4383ded5a1664dd1d05d679
[ "MIT" ]
2
2021-05-29T16:57:17.000Z
2021-06-13T18:39:24.000Z
proyectos/db.py
christophermontero/estima-tu-proyecto
19f533be203c9ac2c4383ded5a1664dd1d05d679
[ "MIT" ]
22
2021-05-22T18:23:40.000Z
2021-12-18T21:09:59.000Z
proyectos/db.py
christophermontero/estima-tu-proyecto
19f533be203c9ac2c4383ded5a1664dd1d05d679
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.ext.declarative import declarative_base engine = create_engine("sqlite:////sqlite3/sqlite3/estima.db", convert_unicode=True) db_session = scoped_session( sessionmaker(autocommit=False, autoflush=False, bin...
25.105263
84
0.794549
61
477
6.016393
0.491803
0.114441
0.13624
0
0
0
0
0
0
0
0
0.004717
0.111111
477
18
85
26.5
0.860849
0
0
0
0
0
0.075472
0.075472
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d8219e1269738296c36729cbed3e11f71be2f4a0
404
py
Python
tests/test_parser.py
uranusjr/tomlkit
cad4e0a8aebe000d7009f103986d0f1b2dec7347
[ "MIT" ]
1
2022-03-20T19:31:30.000Z
2022-03-20T19:31:30.000Z
tests/test_parser.py
uranusjr/tomlkit
cad4e0a8aebe000d7009f103986d0f1b2dec7347
[ "MIT" ]
null
null
null
tests/test_parser.py
uranusjr/tomlkit
cad4e0a8aebe000d7009f103986d0f1b2dec7347
[ "MIT" ]
null
null
null
import pytest from tomlkit.exceptions import InternalParserError from tomlkit.items import StringType from tomlkit.parser import Parser def test_parser_should_raise_an_internal_error_if_parsing_wrong_type_of_string(): parser = Parser('"foo"') with pytest.raises(InternalParserError) as e: parser._par...
25.25
81
0.777228
55
404
5.454545
0.636364
0.11
0.08
0
0
0
0
0
0
0
0
0.005831
0.15099
404
15
82
26.933333
0.868805
0
0
0
0
0
0.012376
0
0
0
0
0
0.2
1
0.1
false
0
0.4
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d82e52004a064b8b8387f88b46b9e46e841a78b6
454
py
Python
success-rates/titles/goose/gen.py
OlivierBlanvillain/blogforever-crawler-publication
f168af4be18e5ba4225620a661f90dd6a084c9c6
[ "MIT" ]
4
2016-10-05T12:17:31.000Z
2019-08-28T21:20:07.000Z
success-rates/titles/goose/gen.py
OlivierBlanvillain/blogforever-crawler-publication
f168af4be18e5ba4225620a661f90dd6a084c9c6
[ "MIT" ]
null
null
null
success-rates/titles/goose/gen.py
OlivierBlanvillain/blogforever-crawler-publication
f168af4be18e5ba4225620a661f90dd6a084c9c6
[ "MIT" ]
null
null
null
import sys from goose import Goose from os import listdir import codecs def main(): contents = sys.argv[1] goose = Goose() for url in listdir(contents): print url with codecs.open(url, "w", encoding="utf-8") as out: try: extracted = goose.extract(url=url.replace("{", "/")) out.write...
21.619048
60
0.61674
59
454
4.610169
0.610169
0.058824
0
0
0
0
0
0
0
0
0
0.005831
0.244493
454
20
61
22.7
0.787172
0
0
0
0
0
0.046256
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d832378d43357838a2f0cb6d26d551d74fc1ebef
4,048
py
Python
angr/engines/pcode/arch/ArchPcode_PIC_17_LE_16_PIC_17C7xx.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/engines/pcode/arch/ArchPcode_PIC_17_LE_16_PIC_17C7xx.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/engines/pcode/arch/ArchPcode_PIC_17_LE_16_PIC_17C7xx.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
### ### This file was automatically generated ### from archinfo.arch import register_arch, Endness, Register from .common import ArchPcode class ArchPcode_PIC_17_LE_16_PIC_17C7xx(ArchPcode): name = 'PIC-17:LE:16:PIC-17C7xx' pcode_arch = 'PIC-17:LE:16:PIC-17C7xx' description = 'PIC-17C7xx' bits = 16 ...
34.016807
93
0.532609
467
4,048
4.569593
0.45182
0.025305
0.016401
0.021087
0.054358
0.054358
0.045923
0
0
0
0
0.175536
0.285079
4,048
118
94
34.305085
0.561852
0.00914
0
0
1
0
0.138965
0.017246
0
0
0.105224
0
0
1
0
false
0
0.018182
0
0.109091
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
d83af47d9f6bc64d130185919d912c0673e28215
387
py
Python
users/migrations/0004_auto_20200404_1117.py
snoop2head/exercise_curation_django
ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda
[ "MIT" ]
3
2020-09-30T04:44:39.000Z
2021-07-30T08:20:18.000Z
users/migrations/0004_auto_20200404_1117.py
snoop2head/exercise_curation_django
ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda
[ "MIT" ]
7
2021-03-30T13:09:55.000Z
2022-01-13T02:33:34.000Z
users/migrations/0004_auto_20200404_1117.py
snoop2head/exercise_curation_django
ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda
[ "MIT" ]
1
2022-03-31T12:01:38.000Z
2022-03-31T12:01:38.000Z
# Generated by Django 3.0.3 on 2020-04-04 11:17 import core.managers from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("users", "0003_user_register_login_method"), ] operations = [ migrations.AlterModelManagers( name="user", managers=[...
21.5
84
0.648579
41
387
6.02439
0.731707
0.097166
0
0
0
0
0
0
0
0
0
0.063545
0.22739
387
17
85
22.764706
0.762542
0.116279
0
0
1
0
0.138235
0.091176
0
0
0
0
0
1
0
false
0
0.181818
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dc26e8b73bb556379721ef52822806c309f3b7a0
1,022
py
Python
leetcode/arrays/remove_duplicate_2.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
5
2018-09-14T13:14:34.000Z
2021-12-29T11:07:35.000Z
leetcode/arrays/remove_duplicate_2.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
null
null
null
leetcode/arrays/remove_duplicate_2.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
null
null
null
# link: https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/submissions/ class Solution(object): def removeDuplicates(self, nums): """ :type nums: List[int] :rtype: int """ # we traverse the list ot know which element is which # since the array is so...
26.894737
89
0.472603
133
1,022
3.631579
0.43609
0.05176
0.078675
0.091097
0.285714
0.285714
0.285714
0.285714
0.285714
0.285714
0
0.025641
0.427593
1,022
38
90
26.894737
0.8
0
0
0.285714
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
dc29f4b5cae57be4a2aa6b2fed638fca27b0cb51
7,758
py
Python
MSR_HAL/circadia_hw_lamp.py
hooyah/Circadia
e2947725a6d0bb8843c3230c8dda901c25716640
[ "MIT" ]
25
2016-12-18T14:33:56.000Z
2022-02-01T15:37:17.000Z
MSR_HAL/circadia_hw_lamp.py
hooyah/Circadia
e2947725a6d0bb8843c3230c8dda901c25716640
[ "MIT" ]
null
null
null
MSR_HAL/circadia_hw_lamp.py
hooyah/Circadia
e2947725a6d0bb8843c3230c8dda901c25716640
[ "MIT" ]
5
2017-05-02T01:59:55.000Z
2020-12-15T08:37:53.000Z
""" Circadia Sunrise Lamp - the lamp HAL hardware abstraction layer running on the lamp Author: fhu """ import json import pygame import time import neopixel import RPi.GPIO as gpio from MSR_HAL import povserial import MSR_OS.floatCanvas as fc # neopixels # LED strip configuration: LED_COUNT = 5 ...
24.473186
135
0.636504
992
7,758
4.832661
0.337702
0.014602
0.012516
0.008761
0.043805
0.018356
0.018356
0.018356
0
0
0
0.020077
0.261665
7,758
317
136
24.473186
0.816865
0.134957
0
0.24026
0
0
0.064218
0
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.032468
0
0
0
null
0
0
0
0
0
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
dc323b4ae0b85da5b51c0d2f0842d9b2b65e7d9e
564
py
Python
tools/art/madry_model.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
tools/art/madry_model.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
tools/art/madry_model.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
from models.original_models import madry_model from tools.art.model import Model class MadryModel(Model): def __init__(self, checkpoint_path, image_width=28, image_height=28, n_channels=1, n_classes=10): super().__init__(image_height=image_height, image_width=image_width, n_channels=n_channels, n_classes=...
40.285714
120
0.73227
76
564
5.052632
0.407895
0.104167
0.083333
0
0
0
0
0
0
0
0
0.015119
0.179078
564
13
121
43.384615
0.814255
0
0
0
0
0
0.010638
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
dc3258740a2c709d464fb4b07b1c642bf6ff546d
585
py
Python
tests/test_empty_file.py
scanner-research/rs-intervalset
8903e4b9f3bd4a26146c4e712e353017a056647e
[ "BSD-3-Clause" ]
1
2020-02-04T00:09:24.000Z
2020-02-04T00:09:24.000Z
tests/test_empty_file.py
scanner-research/rs-intervalset
8903e4b9f3bd4a26146c4e712e353017a056647e
[ "BSD-3-Clause" ]
null
null
null
tests/test_empty_file.py
scanner-research/rs-intervalset
8903e4b9f3bd4a26146c4e712e353017a056647e
[ "BSD-3-Clause" ]
null
null
null
import os import pytest from rs_intervalset import MmapIntervalSetMapping, MmapIntervalListMapping CURRENT_DIR = os.path.abspath(os.path.dirname(__file__)) DATA_PATH = os.path.join(CURRENT_DIR, '.empty.bin') @pytest.fixture(scope='session', autouse=True) def dummy_data(): with open(DATA_PATH, 'w') as _: ...
21.666667
74
0.729915
76
585
5.381579
0.5
0.0978
0.05868
0
0
0
0
0
0
0
0
0.010163
0.158974
585
26
75
22.5
0.821138
0
0
0
0
0
0.030769
0
0
0
0
0
0.117647
1
0.176471
false
0.058824
0.176471
0
0.352941
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
dc3844fca2a16d7844a1b5a095ef60316eb73489
9,785
py
Python
args.py
Ugness/PointFlow
238489c70b0332526cb2d506ab3e076fae20685d
[ "MIT" ]
null
null
null
args.py
Ugness/PointFlow
238489c70b0332526cb2d506ab3e076fae20685d
[ "MIT" ]
null
null
null
args.py
Ugness/PointFlow
238489c70b0332526cb2d506ab3e076fae20685d
[ "MIT" ]
null
null
null
import argparse NONLINEARITIES = ["tanh", "relu", "softplus", "elu", "swish", "square", "identity"] SOLVERS = ["dopri5", "bdf", "rk4", "midpoint", 'adams', 'explicit_adams', 'fixed_adams'] LAYERS = ["ignore", "concat", "concat_v2", "squash", "concatsquash", "scale", "concatscale"] def add_args(parser): # model a...
58.592814
107
0.623812
1,175
9,785
5.046809
0.231489
0.110793
0.206408
0.044857
0.360371
0.267285
0.220742
0.186678
0.131535
0.086003
0
0.016874
0.242923
9,785
166
108
58.945783
0.783612
0.017476
0
0.028169
0
0
0.372865
0.028113
0
0
0
0
0
1
0.021127
false
0.007042
0.007042
0
0.049296
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
dc3a7c2ebd3ac53bd0407f755ce3374a4f54bbc9
398
py
Python
camera/migrations/0011_last_ping_blank.py
abraha2d/mirador
1bf34f7b7c2597ecf1fbdb7393f5b0bafe52ebd3
[ "MIT" ]
null
null
null
camera/migrations/0011_last_ping_blank.py
abraha2d/mirador
1bf34f7b7c2597ecf1fbdb7393f5b0bafe52ebd3
[ "MIT" ]
null
null
null
camera/migrations/0011_last_ping_blank.py
abraha2d/mirador
1bf34f7b7c2597ecf1fbdb7393f5b0bafe52ebd3
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-30 14:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('camera', '0010_stream_force_tcp'), ] operations = [ migrations.AlterField( model_name='camera', name='last_ping', ...
20.947368
62
0.603015
44
398
5.340909
0.818182
0
0
0
0
0
0
0
0
0
0
0.066434
0.281407
398
18
63
22.111111
0.755245
0.113065
0
0
1
0
0.119658
0.059829
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
dc3ce1762bfedf2e6b5323514ddfe3243d3dd547
1,477
py
Python
testtube/renderer.py
blaix/testtube
fa2cd3af6f7c9a3211d0630783e45e93c9c16253
[ "MIT" ]
null
null
null
testtube/renderer.py
blaix/testtube
fa2cd3af6f7c9a3211d0630783e45e93c9c16253
[ "MIT" ]
null
null
null
testtube/renderer.py
blaix/testtube
fa2cd3af6f7c9a3211d0630783e45e93c9c16253
[ "MIT" ]
null
null
null
"""Renderer that outputs formatted messaging for end users.""" import sys from termcolor import colored from testtube.conf import Settings # For python3 support, we must use print as a function rather than a statement class Renderer(object): """Utility that outputs formatted messages.""" def failure(self...
27.351852
78
0.593094
181
1,477
4.801105
0.436464
0.055236
0.055236
0.065593
0.115075
0.115075
0.078251
0
0
0
0
0.003697
0.267434
1,477
53
79
27.867925
0.799445
0.232227
0
0
0
0
0.05581
0
0
0
0
0
0
1
0.259259
false
0
0.111111
0
0.444444
0.148148
0
0
0
null
0
0
0
0
0
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
dc42035b79dec74bb969f904e7dc109414fa33df
1,023
py
Python
uliweb/contrib/datadict/commands.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
202
2015-01-12T08:10:48.000Z
2021-11-08T09:04:32.000Z
uliweb/contrib/datadict/commands.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
30
2015-01-01T09:07:17.000Z
2021-06-03T12:58:45.000Z
uliweb/contrib/datadict/commands.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
58
2015-01-12T03:28:54.000Z
2022-01-14T01:58:08.000Z
from uliweb.core.commands import Command, CommandManager, get_commands from optparse import make_option class DataDictCommand(CommandManager): #change the name to real command name, such as makeapp, makeproject, etc. name = 'datadict' #help information help = "Data dict tool, create index, validate mod...
37.888889
83
0.73607
142
1,023
5.225352
0.535211
0.026954
0.032345
0.040431
0.040431
0
0
0
0
0
0
0
0.213099
1,023
26
84
39.346154
0.921739
0.472141
0
0
0
0
0.135338
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.923077
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
dc4435d05e375cf095d3966ddf2f2077e10b0ec9
2,860
py
Python
flaskserver.py
milkey-mouse/SongRater
ac23bf5853f26faa0ac1190be7fced1d422572a3
[ "MIT" ]
null
null
null
flaskserver.py
milkey-mouse/SongRater
ac23bf5853f26faa0ac1190be7fced1d422572a3
[ "MIT" ]
null
null
null
flaskserver.py
milkey-mouse/SongRater
ac23bf5853f26faa0ac1190be7fced1d422572a3
[ "MIT" ]
null
null
null
# -*- coding: cp1252 -*- #Copyright Milkey Mouse 2015 from multiprocessing.managers import BaseManager from HTMLParser import HTMLParser from flask import render_template from flask.ext.gzip import Gzip from celery import Celery from celery import task from flask import request from celery.task.control import inspect i...
29.484536
150
0.646154
340
2,860
5.341176
0.5
0.019824
0.02478
0.029736
0.037445
0.037445
0
0
0
0
0
0.015851
0.227972
2,860
96
151
29.791667
0.806612
0.119231
0
0
0
0
0.132083
0
0
0
0
0
0
0
null
null
0.013699
0.273973
null
null
0.013699
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
dc469f452d616393d261e9a23f7233cfe4ff6d97
628
py
Python
queen-attack/queen_attack.py
rdlu/exercism-python
61e89f4969af5bcad028e843aaae6a8869b0187d
[ "MIT" ]
null
null
null
queen-attack/queen_attack.py
rdlu/exercism-python
61e89f4969af5bcad028e843aaae6a8869b0187d
[ "MIT" ]
null
null
null
queen-attack/queen_attack.py
rdlu/exercism-python
61e89f4969af5bcad028e843aaae6a8869b0187d
[ "MIT" ]
null
null
null
class Queen: def __init__(self, row: int, column: int): if row not in range(0, 8) or column not in range(0, 8): raise ValueError("Must be between 0 and 7") self.i = row self.j = column def can_attack(self, another_queen: 'Queen') -> bool: if self.i == another_queen....
44.857143
88
0.601911
100
628
3.66
0.37
0.229508
0.106557
0.060109
0.262295
0
0
0
0
0
0
0.013187
0.275478
628
13
89
48.307692
0.791209
0.038217
0
0
0
0
0.138103
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
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
dc4a69ffcc9080f457c7c12f63f60e7d37bac2f9
328
py
Python
Python_Exercise/list/append_suppliers_list.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
Python_Exercise/list/append_suppliers_list.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
Python_Exercise/list/append_suppliers_list.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
def append_suppliers_list(): suppliers = [] counter = 1 supply = "" while supply != "stop": supply = input(f'Enter first name and last name of suppliers {counter} \n') suppliers.append(supply) counter += 1 suppliers.pop() return suppliers append_supplier...
25.230769
84
0.594512
36
328
5.305556
0.555556
0.157068
0.198953
0
0
0
0
0
0
0
0
0.008772
0.304878
328
13
85
25.230769
0.828947
0
0
0
0
0
0.189274
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
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