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
707d21848698395e5eae05dcc1a68fdfbc4b2084
314
py
Python
utils/copy_les_files.py
rtgunti/medicaldetectiontoolk
bac86b0aa5b9065a4bdb238f5c71e22d9c3f6b35
[ "Apache-2.0" ]
2
2020-08-28T06:39:58.000Z
2021-01-05T11:24:59.000Z
utils/copy_les_files.py
rtgunti/medicaldetectiontoolkit
bac86b0aa5b9065a4bdb238f5c71e22d9c3f6b35
[ "Apache-2.0" ]
null
null
null
utils/copy_les_files.py
rtgunti/medicaldetectiontoolkit
bac86b0aa5b9065a4bdb238f5c71e22d9c3f6b35
[ "Apache-2.0" ]
null
null
null
import os from shutil import copyfile exps_dir = '/home/rgunti/data/Thesis/experiments' target_dir = '/home/rgunti/data/Thesis/les_bkp' for dir in os.listdir(exps_dir): if not '6' in dir: continue copyfile(os.path.join(exps_dir, dir, 'les.pkl'), os.path.join(target_dir, dir + '.pkl')) # break
31.4
92
0.694268
51
314
4.156863
0.509804
0.099057
0.122642
0.160377
0.216981
0
0
0
0
0
0
0.003802
0.16242
314
10
93
31.4
0.802281
0.015924
0
0
0
0
0.25974
0.220779
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
707ec1482856d3c2a522e6429290dda0d79572ee
6,199
py
Python
src/merge/src/movieCodes.py
wyattpallen/IMDB
f0c56c209959d1bf350340fb46593beb0443dda4
[ "bzip2-1.0.6" ]
1
2019-09-20T04:38:37.000Z
2019-09-20T04:38:37.000Z
src/merge/src/movieCodes.py
wyattpallen/IMDB
f0c56c209959d1bf350340fb46593beb0443dda4
[ "bzip2-1.0.6" ]
1
2021-06-02T00:41:48.000Z
2021-06-02T00:41:48.000Z
src/merge/src/movieCodes.py
wyattpallen/IMDB
f0c56c209959d1bf350340fb46593beb0443dda4
[ "bzip2-1.0.6" ]
null
null
null
import pandas as pd import numpy as np import logging logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s - %(message)s') def read_csv_chunks_simple(file, passed_df=None, join_how='inner', sep=',', chunksize=10000, dtype=None, index_col=None): temp_df = pd.DataFrame() if passed_df i...
45.248175
121
0.628166
870
6,199
4.268966
0.165517
0.06462
0.048465
0.035003
0.577275
0.555735
0.52154
0.481691
0.43511
0.390415
0
0.01594
0.230844
6,199
137
122
45.248175
0.763003
0.047427
0
0.342342
0
0
0.131342
0.030205
0
0
0
0
0
1
0.063063
false
0.261261
0.027027
0
0.207207
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
708190c51bd3b0ef0eeab3cc0cd1e387095be5a4
1,695
py
Python
api/admin.py
enoch-prince/LocationTracker
8e20a3cdd24da828b459d3a14bc609faa3ccb12c
[ "MIT" ]
null
null
null
api/admin.py
enoch-prince/LocationTracker
8e20a3cdd24da828b459d3a14bc609faa3ccb12c
[ "MIT" ]
null
null
null
api/admin.py
enoch-prince/LocationTracker
8e20a3cdd24da828b459d3a14bc609faa3ccb12c
[ "MIT" ]
null
null
null
from django.contrib import admin from django.db.models.query import QuerySet from django.http.request import HttpRequest from .models import Courier, Device class CourierAdmin(admin.ModelAdmin): model = Courier list_display = ('user', 'get_email','company_token','created_at', 'updated_at') readonly_fields ...
33.235294
87
0.675516
195
1,695
5.671795
0.292308
0.05425
0.037975
0.051537
0.294756
0.245931
0.130199
0.130199
0.130199
0.130199
0
0
0.20354
1,695
51
88
33.235294
0.819259
0.056047
0
0.205128
0
0
0.16604
0
0
0
0
0
0
1
0.102564
false
0
0.102564
0.076923
0.615385
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
7083b9b6e16ef8599d85b8c7f06e3933a0d6188e
647
py
Python
textblob_fr/sentiments.py
sei-nicolas/textblob-fr
b26f768067d0ac495d0cbecdf68c38e73e42662b
[ "MIT" ]
54
2015-01-08T20:23:15.000Z
2022-02-09T09:28:49.000Z
textblob_fr/sentiments.py
sei-nicolas/textblob-fr
b26f768067d0ac495d0cbecdf68c38e73e42662b
[ "MIT" ]
4
2017-07-24T20:50:30.000Z
2020-06-25T09:11:52.000Z
textblob_fr/sentiments.py
sei-nicolas/textblob-fr
b26f768067d0ac495d0cbecdf68c38e73e42662b
[ "MIT" ]
23
2016-12-28T23:08:37.000Z
2022-01-28T12:33:12.000Z
# -*- coding: utf-8 -*- """French sentiment analysis implementations. """ from __future__ import absolute_import from textblob.base import BaseSentimentAnalyzer, CONTINUOUS from textblob_fr.fr import sentiment as pattern_sentiment class PatternAnalyzer(BaseSentimentAnalyzer): '''Sentiment analyzer that uses the ...
26.958333
66
0.707883
72
647
6.25
0.569444
0.053333
0.035556
0.044444
0.164444
0.164444
0.164444
0.164444
0
0
0
0.001938
0.202473
647
23
67
28.130435
0.870155
0.44204
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
708cbf7753cee3273ba23c245d3b7e420177bc53
319
py
Python
index/templatetags/is_response.py
scarey9/google-form-clone
03f9fe28b1675ae684083a8212388ee7904abaf7
[ "MIT" ]
99
2020-11-30T06:48:20.000Z
2022-03-29T11:15:39.000Z
index/templatetags/is_response.py
scarey9/google-form-clone
03f9fe28b1675ae684083a8212388ee7904abaf7
[ "MIT" ]
37
2021-10-01T17:14:52.000Z
2021-10-21T17:26:14.000Z
index/templatetags/is_response.py
scarey9/google-form-clone
03f9fe28b1675ae684083a8212388ee7904abaf7
[ "MIT" ]
52
2020-12-30T22:46:43.000Z
2022-03-23T01:46:46.000Z
from django import template register = template.Library() @register.filter def get_responses(responses, pk): return responses.response.filter(answer_to__pk = pk) @register.filter def is_response(responses, pk): for i in responses: if int(i.answer) == int(pk): return True return False
22.785714
56
0.702194
43
319
5.093023
0.534884
0.127854
0.155251
0
0
0
0
0
0
0
0
0
0.203762
319
13
57
24.538462
0.862205
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.090909
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7094ae8c4ae6117ce49ddba309430573ff140538
1,624
py
Python
3/CalcoloPasqua.py
GiacomoFerro/information-systems-analysis
b69e8f0d122b8d73b01857c3a0e71eab4dad557a
[ "MIT" ]
null
null
null
3/CalcoloPasqua.py
GiacomoFerro/information-systems-analysis
b69e8f0d122b8d73b01857c3a0e71eab4dad557a
[ "MIT" ]
null
null
null
3/CalcoloPasqua.py
GiacomoFerro/information-systems-analysis
b69e8f0d122b8d73b01857c3a0e71eab4dad557a
[ "MIT" ]
null
null
null
#coding=utf-8 import sys # usando il METODO ARITMETICO DI GAUSS per il calcolo della data della Pasqua #anno = anno di cui si vuole sapere la data della pasqua def pasqua(anno): #condizioni da verificare if anno<1583 or anno>2499: return None tabella={15:(22, 2), 16:(22, 2), 17:(23, 3), 18:(23, 4), 19:(24,...
34.553191
154
0.544951
249
1,624
3.522088
0.465863
0.04561
0.034208
0.031927
0.036488
0
0
0
0
0
0
0.089578
0.285099
1,624
46
155
35.304348
0.665805
0.392241
0
0.133333
0
0
0.20679
0.076132
0
0
0
0.021739
0
1
0.066667
false
0
0.033333
0
0.133333
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
1
0
0
0
0
0
0
0
0
0
0
1
70968ee646f1641abe323dceec0d173c3db5a5e0
515
py
Python
MPU-6050_ct-agent_integration/setup.py
faddey-w/daimon
ede369a5a9cbde24c73880632b0deb49c36a172e
[ "MIT" ]
null
null
null
MPU-6050_ct-agent_integration/setup.py
faddey-w/daimon
ede369a5a9cbde24c73880632b0deb49c36a172e
[ "MIT" ]
null
null
null
MPU-6050_ct-agent_integration/setup.py
faddey-w/daimon
ede369a5a9cbde24c73880632b0deb49c36a172e
[ "MIT" ]
null
null
null
import subprocess import zipfile import os for parent, dirs, files in os.walk('ct_addons'): for filename in files: if filename.endswith('.pyc'): filepath = os.path.join(parent, filename) print('removing: ' + filepath) os.remove(filepath) try: os.remove('ct_addons....
23.409091
67
0.656311
72
515
4.486111
0.527778
0.148607
0.102167
0
0
0
0
0
0
0
0
0
0.209709
515
21
68
24.52381
0.793612
0
0
0
0
0
0.217476
0.040777
0
0
0
0
0
1
0
false
0.0625
0.1875
0
0.1875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
709ee99fa1b1245af4a6043eee524bc356070ec8
1,273
py
Python
src/gdft.py
DogeMajor/GDFT
bd84a8cef8d68f88c3c80de9936ee65ce85fcb40
[ "MIT" ]
null
null
null
src/gdft.py
DogeMajor/GDFT
bd84a8cef8d68f88c3c80de9936ee65ce85fcb40
[ "MIT" ]
null
null
null
src/gdft.py
DogeMajor/GDFT
bd84a8cef8d68f88c3c80de9936ee65ce85fcb40
[ "MIT" ]
null
null
null
from cmath import exp import numpy as np from scipy.linalg import expm '''Collection of functions and classes to rapidly generate gdft, dft and permutation matrices.''' def dft_matrix(dim): W = exp(-1j * 2 * np.pi / dim) function = lambda i, j: np.power(W, np.multiply(i, j)) return np.fromfunction(functi...
27.085106
58
0.67557
200
1,273
4.185
0.355
0.075269
0.046595
0.031063
0.088411
0.088411
0.088411
0
0
0
0
0.019724
0.203456
1,273
46
59
27.673913
0.80572
0.01414
0
0
1
0
0
0
0
0
0
0
0
1
0.193548
false
0
0.096774
0
0.483871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
70a3e33f34e31e82b27f0bf07e107306ee46f14a
708
py
Python
kf_lib/happenings/encounters/_base_encounter.py
AlexeyMalafeev/kfw-the-game
7db98c00595ec0d87aa5ed0cc2886bd6b5d36381
[ "BSD-3-Clause" ]
3
2022-01-02T15:55:57.000Z
2022-01-13T06:33:24.000Z
kf_lib/happenings/encounters/_base_encounter.py
AlexeyMalafeev/kfw-the-game
7db98c00595ec0d87aa5ed0cc2886bd6b5d36381
[ "BSD-3-Clause" ]
4
2022-01-15T13:04:36.000Z
2022-02-19T13:08:59.000Z
kf_lib/happenings/encounters/_base_encounter.py
AlexeyMalafeev/kfw-the-game
7db98c00595ec0d87aa5ed0cc2886bd6b5d36381
[ "BSD-3-Clause" ]
null
null
null
class BaseEncounter(object): """Base encounter class.""" def __init__(self, player, check_if_happens=True): self.p = self.player = player if (check_if_happens and self.check_if_happens()) or not check_if_happens: enc_name = self.__class__.__name__ enc_dict = self.p.game....
26.222222
82
0.591808
90
708
4.266667
0.355556
0.109375
0.21875
0.072917
0.078125
0
0
0
0
0
0
0.004158
0.320621
708
26
83
27.230769
0.794179
0.029661
0
0.1
0
0
0
0
0
0
0
0
0
1
0.2
false
0.05
0
0.1
0.4
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
70a48de3f9424e7d2fc77db2bfde557fb06f2973
789
py
Python
python/whiteboards/append_in_place/tests/stack.py
beasleyDOTcom/data-structures-and-algorithms
2915ed9d9ad5f2e8c983d0711c9e2b52e0ed14ff
[ "MIT" ]
1
2021-09-01T01:39:22.000Z
2021-09-01T01:39:22.000Z
python/whiteboards/append_in_place/tests/stack.py
beasleyDOTcom/data-structures-and-algorithms
2915ed9d9ad5f2e8c983d0711c9e2b52e0ed14ff
[ "MIT" ]
47
2020-07-13T21:56:44.000Z
2021-03-06T03:53:25.000Z
python/whiteboards/append_in_place/tests/stack.py
beasleyDOTcom/data-structures-and-algorithms
2915ed9d9ad5f2e8c983d0711c9e2b52e0ed14ff
[ "MIT" ]
null
null
null
# create node class class Node: def __init__(self, value=None, next=None): self.value = value self.next = next # create stack class Stack: def __init__(self): self.top = None def isEmpty(self): if self.top == None: return True else: ...
23.205882
54
0.519645
93
789
4.322581
0.27957
0.139303
0.074627
0.084577
0.18408
0.18408
0.18408
0
0
0
0
0
0.390368
789
34
55
23.205882
0.835759
0.038023
0
0.259259
0
0
0.059445
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.481481
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
70a7fed4182475726ff24f32effb24112f2a83f1
688
py
Python
test_config.py
mc261670164/Local-Crowd-Counting
23e5e4e411dbc559725e8281200dd3e77abece3a
[ "MIT" ]
1
2021-05-24T07:00:35.000Z
2021-05-24T07:00:35.000Z
test_config.py
mc261670164/Local-Crowd-Counting
23e5e4e411dbc559725e8281200dd3e77abece3a
[ "MIT" ]
null
null
null
test_config.py
mc261670164/Local-Crowd-Counting
23e5e4e411dbc559725e8281200dd3e77abece3a
[ "MIT" ]
null
null
null
import os from easydict import EasyDict as edict import time import torch # init __C = edict() cfg = __C # ------------------------------TEST------------------------ # if train batch=1, use only one GPU!! __C.GPU_ID = [0] # sigle gpu: [0], [1] ...; multi gpus: [0,1] __C.NET = 'VGG16_LCM_REG' # net selection a...
26.461538
92
0.611919
107
688
3.570093
0.626168
0.010471
0
0
0
0
0
0
0
0
0
0.080146
0.202035
688
25
93
27.52
0.615665
0.340116
0
0
0
0
0.213483
0.164045
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
56060261dae34fc6e9269776de9e7f09fc10a57c
2,797
py
Python
geiger-counter/remote-analysis.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
2
2018-07-03T12:34:25.000Z
2019-02-22T14:44:59.000Z
geiger-counter/remote-analysis.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
null
null
null
geiger-counter/remote-analysis.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
null
null
null
import datetime, numpy, scipy, pandas import matplotlib.pyplot as plt print "Loading data" df = pandas.read_json("/Users/elee/Downloads/geiger.json", orient='records', dtype={'cpm' : 'int64', 'device_time' : 'datetime64[ns]', 'timestamp' : 'datetime64[ns]', 'pressure': 'float64', 'sea_level_pressure': 'float64'}) prin...
27.15534
223
0.659635
434
2,797
4.156682
0.271889
0.038803
0.026608
0.033259
0.293237
0.282705
0.182927
0.096452
0.074279
0.037694
0
0.073067
0.158384
2,797
102
224
27.421569
0.693288
0.265999
0
0.156863
0
0
0.197134
0.016304
0
0
0
0
0
0
null
null
0
0.039216
null
null
0.156863
0
0
0
null
0
0
0
0
0
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
56110475e5cc908d8abb087987992b8c80d7b5f6
3,033
bzl
Python
applications/graphviz.bzl
DraconicEnt/Third-Party
8d0ba00f9874588c1ea38d1be2859060ac8c8516
[ "MIT" ]
3
2021-03-01T13:16:39.000Z
2022-03-16T04:26:41.000Z
applications/graphviz.bzl
DraconicEnt/Third-Party
8d0ba00f9874588c1ea38d1be2859060ac8c8516
[ "MIT" ]
2
2020-12-26T10:46:13.000Z
2020-12-29T10:29:59.000Z
applications/graphviz.bzl
DraconicEnt/Third-Party
8d0ba00f9874588c1ea38d1be2859060ac8c8516
[ "MIT" ]
2
2021-02-27T18:57:11.000Z
2022-03-16T00:20:57.000Z
""" Copyright 2020 Robert MacGregor Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
42.125
161
0.642928
375
3,033
5.12
0.517333
0.045833
0.013542
0.019792
0.033333
0.033333
0.033333
0
0
0
0
0.018868
0.248599
3,033
71
162
42.71831
0.823607
0.466864
0
0.05
0
0
0.405732
0.170701
0
0
0
0.014085
0
1
0.05
false
0
0
0
0.05
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
561bc1f2033d84364260706f8913ed4995fd0b58
1,031
py
Python
src/server/Game.py
AThom0x7cc/SimpleMultiplayerGame
8d462eb50a6323260111a6d4224b4efbd07239cc
[ "MIT" ]
null
null
null
src/server/Game.py
AThom0x7cc/SimpleMultiplayerGame
8d462eb50a6323260111a6d4224b4efbd07239cc
[ "MIT" ]
null
null
null
src/server/Game.py
AThom0x7cc/SimpleMultiplayerGame
8d462eb50a6323260111a6d4224b4efbd07239cc
[ "MIT" ]
null
null
null
class Ball: def __init__(self): self.x, self.y = 320, 240 self.speed_x = -10 self.speed_y = 10 self.size = 8 def movement(self, player1, player2): self.x += self.speed_x self.y += self.speed_y if self.y <= 0: self.speed_y *= -1 elif s...
24.547619
43
0.42483
135
1,031
3.051852
0.222222
0.218447
0.121359
0.080097
0.279126
0.235437
0.235437
0.235437
0.235437
0.140777
0
0.069519
0.455868
1,031
41
44
25.146341
0.664884
0
0
0.470588
0
0
0
0
0
0
0
0
0
1
0.088235
false
0.029412
0
0
0.147059
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
561f746a9e390fe164699bd212b57989aff8742e
1,547
py
Python
script/get_entity_statement.py
rohe/fedservice
1460d21217b804cac0f38fa26ffa24bee7cf6dad
[ "Apache-2.0" ]
3
2018-11-28T12:01:31.000Z
2020-12-16T21:43:29.000Z
script/get_entity_statement.py
peppelinux/fedservice
0dc5fd0bd33e181b6a1a9bbef6835b2ce5d2f568
[ "Apache-2.0" ]
13
2020-02-10T15:33:37.000Z
2022-02-01T16:43:36.000Z
script/get_entity_statement.py
peppelinux/fedservice
0dc5fd0bd33e181b6a1a9bbef6835b2ce5d2f568
[ "Apache-2.0" ]
4
2019-05-29T10:04:48.000Z
2020-10-14T09:52:53.000Z
#!/usr/bin/env python3 import json import os import sys from cryptojwt import as_unicode from cryptojwt.jws.jws import factory from fedservice.entity_statement.collect import verify_self_signed_signature from fedservice.entity_statement.collect import Collector from pygments import highlight from pygments.formatters....
30.94
87
0.724628
192
1,547
5.557292
0.390625
0.050609
0.095595
0.059044
0.168697
0.168697
0
0
0
0
0
0.001548
0.164835
1,547
49
88
31.571429
0.824303
0.013575
0
0
0
0
0.087927
0
0
0
0
0
0
1
0
false
0
0.324324
0
0.324324
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
562074b2aa6caffa4557c99990216f5945d53a32
1,317
py
Python
DataGenerator/3rdYear/ODD13_14CO.py
atulac/KNIT-Training-And-Placement-Cell-Automation
628c67413acc3d4ad0b8d7be12caeb66a3484a41
[ "MIT" ]
null
null
null
DataGenerator/3rdYear/ODD13_14CO.py
atulac/KNIT-Training-And-Placement-Cell-Automation
628c67413acc3d4ad0b8d7be12caeb66a3484a41
[ "MIT" ]
null
null
null
DataGenerator/3rdYear/ODD13_14CO.py
atulac/KNIT-Training-And-Placement-Cell-Automation
628c67413acc3d4ad0b8d7be12caeb66a3484a41
[ "MIT" ]
3
2017-05-16T17:54:47.000Z
2021-06-17T06:10:19.000Z
from bs4 import BeautifulSoup from collections import defaultdict from prettytable import PrettyTable import urllib,URL,Range def execute(Details,url,rolls): t=PrettyTable(["ROLL","NAME","FATHER_NAME","SEM1","SEM2","PENDING1","STATUS1","SEM1_CO"]) for ROLL in Range.RollRange[rolls]: site=URL....
32.121951
217
0.573273
159
1,317
4.660377
0.433962
0.178138
0.101215
0.068826
0
0
0
0
0
0
0
0.028391
0.277904
1,317
40
218
32.925
0.750789
0.162491
0
0
0
0
0.146919
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5622119a1756c85800695dc8f22e7c86554e3080
5,147
gyp
Python
node_modules/protagonist/drafter/drafter.gyp
bootstraponline/swagger_poc
8ad0908e0ee17170910ddd9ea82971aebc453377
[ "Apache-2.0" ]
null
null
null
node_modules/protagonist/drafter/drafter.gyp
bootstraponline/swagger_poc
8ad0908e0ee17170910ddd9ea82971aebc453377
[ "Apache-2.0" ]
null
null
null
node_modules/protagonist/drafter/drafter.gyp
bootstraponline/swagger_poc
8ad0908e0ee17170910ddd9ea82971aebc453377
[ "Apache-2.0" ]
null
null
null
{ "includes": [ "ext/snowcrash/common.gypi" ], "targets" : [ # LIBSOS { 'target_name': 'libsos', 'type': 'static_library', 'direct_dependent_settings' : { 'include_dirs': [ 'ext/sos/src' ], }, 'sources': [ 'ext/sos/src/sos.cc', 'ext/sos/src/sos.h',...
27.089474
135
0.545949
464
5,147
5.984914
0.228448
0.050414
0.075261
0.028088
0.114512
0.090025
0.059777
0.059777
0.059777
0.059777
0
0
0.287546
5,147
189
136
27.232804
0.757295
0.023509
0
0.236686
0
0
0.59474
0.399083
0
0
0
0
0
1
0
true
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
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
562e23da8bfaa3ddd7daf20018c44fc49c9984a9
448
py
Python
amazon/model_api/migrations/0006_order_datetimecreated.py
gabrielkarras/SOEN341
da7241abd894bda4d5f7465b3de70e51afacf3f5
[ "MIT" ]
3
2022-01-16T19:12:37.000Z
2022-01-25T18:50:15.000Z
amazon/model_api/migrations/0006_order_datetimecreated.py
gabrielkarras/SOEN341
da7241abd894bda4d5f7465b3de70e51afacf3f5
[ "MIT" ]
83
2022-01-16T18:57:50.000Z
2022-03-30T00:44:35.000Z
amazon/model_api/migrations/0006_order_datetimecreated.py
gabrielkarras/SOEN341
da7241abd894bda4d5f7465b3de70e51afacf3f5
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-04-07 01:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('model_api', '0005_remove_order_datetimecreated_alter_order__id_and_more'), ] operations = [ migrations.AddField( model_name='ord...
23.578947
84
0.647321
51
448
5.431373
0.784314
0
0
0
0
0
0
0
0
0
0
0.056548
0.25
448
18
85
24.888889
0.767857
0.100446
0
0
1
0
0.216958
0.144638
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
5631749d04e5044c3e842cf63cd2e6150ea44422
925
py
Python
apiplatform/admin.py
shsmu/api-platform
ffe968243f32188db2040230bbfa9e1705498702
[ "Apache-2.0" ]
null
null
null
apiplatform/admin.py
shsmu/api-platform
ffe968243f32188db2040230bbfa9e1705498702
[ "Apache-2.0" ]
null
null
null
apiplatform/admin.py
shsmu/api-platform
ffe968243f32188db2040230bbfa9e1705498702
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import ApiCase, Api, Project, User from .forms import ApiForm class ProjectAdmin(admin.ModelAdmin): list_display = ('projectid', 'name') fields = ('projectid', 'name') class ApiCaseAdmin(admin.ModelAdmin): list_display = ('name', 'desc', 'content') clas...
28.90625
148
0.68973
107
925
5.869159
0.411215
0.071656
0.13535
0.124204
0.124204
0.124204
0.124204
0
0
0
0
0
0.144865
925
32
149
28.90625
0.793932
0.037838
0
0
0
0
0.219348
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0.052632
0.789474
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
5637957a0dece644a55a44be1914ff271ec5121e
6,351
py
Python
clickatell/__init__.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
2
2016-02-18T01:06:04.000Z
2016-02-18T03:53:37.000Z
clickatell/__init__.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
null
null
null
clickatell/__init__.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
null
null
null
""" python module which can be used to send SMS messages via the Clickatell HTTP/S API Interface on https://api.clickatell.com/ Changes by Arne Brodowski, 2008: * Removed dependency to pycurl * added an require_auth decorator * moved the api urls to kwargs with default values * changed the auth and curl methods ...
28.352679
162
0.568572
718
6,351
4.952646
0.32312
0.030371
0.035433
0.041339
0.199663
0.172666
0.093926
0.066929
0.058493
0.058493
0
0.016854
0.32735
6,351
223
163
28.479821
0.815543
0
0
0.381818
0
0
0.152855
0.005811
0
0
0
0
0.063636
0
null
null
0.036364
0.036364
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
56398b2096a158c69aad39dbc9049f6456d19b65
812
py
Python
test_dicecup.py
jckuhl/Python-Dice
3186e1a09986ecbd6aa5895e576a27bc5baf22e7
[ "MIT" ]
2
2019-05-02T03:40:05.000Z
2021-01-28T00:55:00.000Z
test_dicecup.py
RAVAN17/Python-Dice
3186e1a09986ecbd6aa5895e576a27bc5baf22e7
[ "MIT" ]
null
null
null
test_dicecup.py
RAVAN17/Python-Dice
3186e1a09986ecbd6aa5895e576a27bc5baf22e7
[ "MIT" ]
2
2021-01-28T00:52:09.000Z
2021-09-11T12:18:28.000Z
from dicecup import DiceCup import unittest class TestDiceCup(unittest.TestCase): dicecup = DiceCup('5d6') def test_dicecup_init(self): """ A 5d6 should make five six sided dice """ self.assertEqual(len(self.dicecup.dice), 5) for die in self.dicecup.dice: self.assertEqual(d...
31.230769
55
0.628079
108
812
4.657407
0.398148
0.178926
0.143141
0.131213
0.332008
0.274354
0
0
0
0
0
0.033501
0.264778
812
26
56
31.230769
0.809045
0.144089
0
0
0
0
0.010249
0
0
0
0
0
0.333333
1
0.166667
false
0.055556
0.111111
0
0.388889
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
563ea44203fcf8aa7eb19ab79fce8c271669942d
8,373
py
Python
tests/test_template.py
ruke47/squadron
311bd93f11502917ce4e479cb89bde6764c83f27
[ "MIT" ]
null
null
null
tests/test_template.py
ruke47/squadron
311bd93f11502917ce4e479cb89bde6764c83f27
[ "MIT" ]
null
null
null
tests/test_template.py
ruke47/squadron
311bd93f11502917ce4e479cb89bde6764c83f27
[ "MIT" ]
null
null
null
from __future__ import print_function from squadron import template from squadron.template import FileConfig, get_config, apply_config from squadron.exthandlers.extutils import get_filename from squadron.log import log, setup_log from tempfile import mkdtemp from shutil import rmtree import pytest from helper import ar...
36.246753
118
0.676221
1,177
8,373
4.663551
0.124894
0.032793
0.051011
0.038258
0.679177
0.587539
0.527965
0.444525
0.398798
0.337949
0
0.013058
0.167682
8,373
230
119
36.404348
0.774573
0.014929
0
0.302326
0
0
0.14778
0.005824
0
0
0
0
0.383721
0
null
null
0
0.063953
null
null
0.046512
0
0
0
null
0
0
0
0
0
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
564f8baf2b660113b2a85d34314e5e840c7131b1
1,954
py
Python
Exercicios/exercicio_cond11.py
paulodevelope/Estruturas-de-decisao-python
47de7e05529b26138179db8d9bce675a41c662a6
[ "MIT" ]
null
null
null
Exercicios/exercicio_cond11.py
paulodevelope/Estruturas-de-decisao-python
47de7e05529b26138179db8d9bce675a41c662a6
[ "MIT" ]
null
null
null
Exercicios/exercicio_cond11.py
paulodevelope/Estruturas-de-decisao-python
47de7e05529b26138179db8d9bce675a41c662a6
[ "MIT" ]
null
null
null
'''As Organizações Tabajara resolveram dar um aumento de salário aos seus colaboradores e lhe contraram para desenvolver o programa que calculará os reajustes. Faça um programa que recebe o salário de um colaborador e o reajuste segundo o seguinte critério, baseado no salário atual: salários até R$ 880,00 (incluindo)...
39.877551
98
0.68782
303
1,954
4.435644
0.244224
0.071429
0.059524
0.077381
0.531994
0.531994
0.531994
0.531994
0.531994
0.531994
0
0.067541
0.21955
1,954
48
99
40.708333
0.81377
0.33521
0
0.689655
0
0
0.40976
0
0
0
0
0
0
1
0
false
0
0
0
0
0.551724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
5657b29b6b5ec6e5cd3bab6981d4d756fcb4e282
3,086
py
Python
src/computer_vision/launch/tiago_spawn.launch.py
jmguerreroh/ros2_computer_vision
92abbc19121649d12881785f8dcc821ccfe6b1b0
[ "Apache-2.0" ]
null
null
null
src/computer_vision/launch/tiago_spawn.launch.py
jmguerreroh/ros2_computer_vision
92abbc19121649d12881785f8dcc821ccfe6b1b0
[ "Apache-2.0" ]
null
null
null
src/computer_vision/launch/tiago_spawn.launch.py
jmguerreroh/ros2_computer_vision
92abbc19121649d12881785f8dcc821ccfe6b1b0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PAL Robotics S.L. # Modified by José Miguel Guerrero Hernández # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
39.564103
90
0.607259
341
3,086
5.319648
0.469208
0.054024
0.059537
0.076075
0.133407
0
0
0
0
0
0
0.008364
0.302657
3,086
77
91
40.077922
0.834572
0.332469
0
0
0
0
0.186241
0.015233
0
0
0
0.012987
0
1
0.023256
false
0
0.186047
0
0.232558
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
565f74559a820dd04d6f2fa1b0338470dc2fc322
377
py
Python
hw/hw03/tests/q1_1.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
hw/hw03/tests/q1_1.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
hw/hw03/tests/q1_1.py
ds-modules/Colab-demo
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
[ "BSD-3-Clause" ]
null
null
null
test = { 'name': 'q1_1', 'points': 1, 'suites': [ { 'cases': [{'code': ">>> unemployment.select('Date', 'NEI', 'NEI-PTER').take(0).column(0).item(0) == '1994-01-01'\nTrue", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 't...
47.125
178
0.403183
35
377
4.314286
0.828571
0
0
0
0
0
0
0
0
0
0
0.057143
0.350133
377
7
179
53.857143
0.559184
0
0
0
0
0.142857
0.448276
0.169761
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
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
56640ea10dca8454daf05ea94b16d50d1b9dea7d
3,776
py
Python
pipeline/preprocessing/bow_gensim.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
null
null
null
pipeline/preprocessing/bow_gensim.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
8
2017-10-05T11:00:16.000Z
2017-11-13T22:37:30.000Z
pipeline/preprocessing/bow_gensim.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' This script just show the basic workflow to compute TF-IDF similarity matrix with Gensim OUTPUT : clemsos@miner $ python gensim_workflow.py How to use Gensim to compute TF-IDF similarity step by step ---------- Let's start with a raw corpus :<type 'list'> STEP 1 : Inde...
39.333333
102
0.729873
542
3,776
5.071956
0.267528
0.020007
0.013096
0.015278
0.405966
0.338305
0.338305
0.261186
0.185522
0.128047
0
0.008841
0.131356
3,776
95
103
39.747368
0.829268
0.471133
0
0.093023
0
0
0.470588
0.021298
0
0
0
0
0
1
0
false
0
0.046512
0
0.046512
0.44186
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
566a02b06424292628eba0b0b741f4523f7c2b45
283
py
Python
mundo1/parte4/ex032.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo1/parte4/ex032.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo1/parte4/ex032.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
from datetime import date ano = int(input("Qual ano quer analisar? 0 = atual: ")) ano_atual = date.today().year if ano == 0: ano = ano_atual if ano % 4 == 0 and ano % 100 != 0 or ano % 400 == 0: print(f"O ano {ano} é Bissesto") else: print(f"O ano {ano} NÃO é Bissesto")
28.3
55
0.618375
52
283
3.326923
0.519231
0.104046
0.080925
0.115607
0.150289
0
0
0
0
0
0
0.0553
0.233216
283
9
56
31.444444
0.741935
0
0
0
0
0
0.293286
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.222222
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
566be660c6aee0f4935cc604a83fc9a5aa0f1ea4
799
py
Python
myuw/views/photo.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
myuw/views/photo.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
myuw/views/photo.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from myuw.dao.pws import get_regid_for_url_key from myuw.dao.pws import get_idcard_photo from myuw.views.error import data_error, data_not_found from django.http import HttpResponse, StreamingHttpResponse from restclients_core.excep...
33.291667
63
0.748436
104
799
5.509615
0.548077
0.041885
0.038394
0.048866
0.13438
0.080279
0
0
0
0
0
0.009231
0.186483
799
23
64
34.73913
0.872308
0.102628
0
0
0
0
0.014006
0
0
0
0
0
0
1
0.058824
false
0
0.352941
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
566f8c79d5817d3c3c56fb84b49751585f68d111
2,589
py
Python
startup_mailer.py
istanbulhs/nfcdoor
9b6c886c245d235f2ffcd32afa41532f34f378b1
[ "Apache-2.0" ]
4
2016-02-01T21:39:19.000Z
2017-12-28T04:56:57.000Z
startup_mailer.py
istanbulhs/nfcdoor
9b6c886c245d235f2ffcd32afa41532f34f378b1
[ "Apache-2.0" ]
null
null
null
startup_mailer.py
istanbulhs/nfcdoor
9b6c886c245d235f2ffcd32afa41532f34f378b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import commands import ParsePy import serial import ftplib import os import sys import traceback import subprocess import smtplib import socket from email.mime.text import MIMEText import datetime import time from threading import Thread import httplib, urllib from constants import strings def OpenD...
22.710526
73
0.706064
353
2,589
5.110482
0.427762
0.017738
0.01663
0.019956
0.09867
0.09867
0.09867
0.09867
0.09867
0.043237
0
0.007644
0.140981
2,589
113
74
22.911504
0.803507
0.040556
0
0.215054
0
0
0.097217
0
0
0
0
0
0
0
null
null
0.032258
0.172043
null
null
0.053763
0
0
0
null
0
0
0
0
0
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
569a3a19169610da52687126a0bb75e93e2209d4
8,104
py
Python
traincyclefcnsequential.py
sanketloke/domain-adaptation
090b93c2866172de5522bef8127378c359a04cdb
[ "MIT" ]
null
null
null
traincyclefcnsequential.py
sanketloke/domain-adaptation
090b93c2866172de5522bef8127378c359a04cdb
[ "MIT" ]
null
null
null
traincyclefcnsequential.py
sanketloke/domain-adaptation
090b93c2866172de5522bef8127378c359a04cdb
[ "MIT" ]
null
null
null
import time from options.train_options import TrainOptions opt = TrainOptions().parse() # set CUDA_VISIBLE_DEVICES before import torch import pickle from data.custom_transforms import ToLabelTensor # with open("opt.obj",'wb') as f: # pickle.dump(opt,f) from data.segmentation import SegmentationDataset from models...
36.669683
136
0.657206
1,035
8,104
4.937198
0.170048
0.056751
0.033072
0.02818
0.638552
0.602544
0.568102
0.55362
0.530528
0.530528
0
0.009005
0.232601
8,104
221
137
36.669683
0.812671
0.016905
0
0.537634
0
0
0.098278
0
0
0
0
0
0
0
null
null
0
0.102151
null
null
0.166667
0
0
0
null
0
0
0
0
0
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
569c8dd6fd71f3254829bc4283d70c1b97d90665
1,089
py
Python
allaccess/context_processors.py
ngaurav/aadhaar
0792701010bdd2a17a2f101876e88bd388defcae
[ "MIT" ]
33
2015-01-06T14:23:23.000Z
2020-12-09T12:09:34.000Z
allaccess/context_processors.py
ngaurav/aadhaar
0792701010bdd2a17a2f101876e88bd388defcae
[ "MIT" ]
29
2015-01-02T14:34:48.000Z
2021-06-10T18:17:07.000Z
allaccess/context_processors.py
ngaurav/aadhaar
0792701010bdd2a17a2f101876e88bd388defcae
[ "MIT" ]
28
2015-01-16T20:51:04.000Z
2020-07-03T02:51:46.000Z
"Helpers to add provider and account access information to the template context." from __future__ import unicode_literals from django.utils.functional import SimpleLazyObject from .compat import APPENGINE from .models import Provider def _get_enabled(): """Wrapped function for filtering enabled providers.""" ...
38.892857
114
0.741965
141
1,089
5.588652
0.617021
0.01269
0
0
0
0
0
0
0
0
0
0.002242
0.1809
1,089
27
115
40.333333
0.881166
0.460973
0
0
0
0
0.209335
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.533333
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
569e641514655b1bb90ee75269566337db133e00
1,134
py
Python
broadcaster/config.py
dziaineka/parkun_deploy
5e0b0fa1ea718ab657c796ca0348cf9c92682ad5
[ "MIT" ]
null
null
null
broadcaster/config.py
dziaineka/parkun_deploy
5e0b0fa1ea718ab657c796ca0348cf9c92682ad5
[ "MIT" ]
null
null
null
broadcaster/config.py
dziaineka/parkun_deploy
5e0b0fa1ea718ab657c796ca0348cf9c92682ad5
[ "MIT" ]
null
null
null
# General TEMP_FILES_PATH = '/tmp/temp_files_parkun' PERSONAL_FOLDER = 'broadcaster' BOLD = 'bold' ITALIC = 'italic' MONO = 'mono' STRIKE = 'strike' POST_URL = 'post_url' # Twitter TWITTER_ENABLED = False CONSUMER_KEY = 'consumer_key' CONSUMER_SECRET = 'consumer_secret' ACCESS_TOKEN = 'access_token' ACCESS_TOKEN_SEC...
22.235294
79
0.767196
159
1,134
5.025157
0.433962
0.055069
0.047559
0.055069
0.102628
0.102628
0.102628
0
0
0
0
0.013
0.118166
1,134
50
80
22.68
0.786
0.060847
0
0
0
0
0.400756
0.119093
0
0
0
0
0
1
0
false
0.088235
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
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
56a748b3530e3772815ab6971ea1d369cdf09748
504
py
Python
tests/auth/test_device.py
de0xy/msiempy
a8aa8b30a3878f765854415c6d0313e2e930a975
[ "MIT" ]
null
null
null
tests/auth/test_device.py
de0xy/msiempy
a8aa8b30a3878f765854415c6d0313e2e930a975
[ "MIT" ]
null
null
null
tests/auth/test_device.py
de0xy/msiempy
a8aa8b30a3878f765854415c6d0313e2e930a975
[ "MIT" ]
null
null
null
import msiempy.device import unittest class T(unittest.TestCase): def test_print(self): #DevTree() instanciation can be very long due to repetitive calls to the same enpoints. #Tests are skipped for now in order to focus on other priorities... #devtree = msiempy.device.D...
28
95
0.621032
66
504
4.727273
0.651515
0.125
0.044872
0
0
0
0
0
0
0
0
0
0.255952
504
17
96
29.647059
0.832
0.446429
0
0
0
0
0.014545
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0.333333
0
0
0
null
0
0
0
0
0
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
3b0ca43f30bfa0d364aab9dae1f68588d2634180
7,115
py
Python
snoqtt-alpine-pcap/require/libs/snort_parser.py
ferryastika/MataElang-Platform
7e23dae86ff8c83c74616006f9939e433b7e1263
[ "MIT" ]
2
2020-09-08T03:12:33.000Z
2020-09-08T03:13:24.000Z
snoqtt-alpine-pcap/require/libs/snort_parser.py
ferryastika/MataElang-Platform
7e23dae86ff8c83c74616006f9939e433b7e1263
[ "MIT" ]
2
2019-12-26T17:30:42.000Z
2020-01-06T19:45:23.000Z
snoqtt-alpine-pcap/require/libs/snort_parser.py
ferryastika/MataElang-Platform
7e23dae86ff8c83c74616006f9939e433b7e1263
[ "MIT" ]
2
2019-08-19T04:05:32.000Z
2019-08-19T05:03:26.000Z
import dpkt import socket from snortunsock import snort_listener import paho.mqtt.client as mqtt import json import os import time MQTT = os.environ['ALERT_MQTT_SERVER'] topic = os.environ['ALERT_MQTT_TOPIC'] device_id = os.environ['DEVICE_ID'] company = os.environ['COMPANY'] snort_mqtt = mqtt.Client() ...
41.608187
1,317
0.580745
963
7,115
4.103842
0.35514
0.100202
0.01417
0.024292
0.216093
0.152581
0.109059
0.091346
0.091346
0.074646
0
0.013815
0.257344
7,115
170
1,318
41.852941
0.734103
0.140548
0
0.203704
0
0
0.233293
0.004444
0
0
0
0
0
1
0.037037
false
0
0.064815
0.009259
0.12963
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b11f2a8d36440a97314774bf1affd9dccfb1d3f
984
py
Python
djangobmf/numbering/validators.py
caputomarcos/django-bmf
0d07a7d3f6a3ecfaca6c9376e764add1715cfd33
[ "BSD-3-Clause" ]
1
2020-05-11T08:00:49.000Z
2020-05-11T08:00:49.000Z
djangobmf/numbering/validators.py
caputomarcos/django-bmf
0d07a7d3f6a3ecfaca6c9376e764add1715cfd33
[ "BSD-3-Clause" ]
null
null
null
djangobmf/numbering/validators.py
caputomarcos/django-bmf
0d07a7d3f6a3ecfaca6c9376e764add1715cfd33
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # ex:set fileencoding=utf-8: from __future__ import unicode_literals from django.core.exceptions import ValidationError import re match_y = r'{year}' match_m = r'{month}' match_c = r'{counter:0[1-9]+[0-9]*d}' def template_name_validator(value): y = re.findall(match_y, value) m = re.finda...
29.818182
82
0.653455
155
984
4.064516
0.393548
0.190476
0.2
0.08254
0.312698
0.214286
0.214286
0.179365
0.07619
0
0
0.027237
0.216463
984
32
83
30.75
0.789883
0.043699
0
0
0
0
0.254526
0.025559
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.166667
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
3b15bd377f5457c04f996c6276b1926fef812073
1,418
py
Python
budgetme/apps/types/views.py
poblouin/budgetme-rest-api
74d9237bc7b0a118255a659029637c5ed1a8b7a1
[ "MIT" ]
2
2018-03-07T09:43:07.000Z
2018-03-11T04:50:41.000Z
budgetme/apps/types/views.py
poblouin/budgetme-rest-api
74d9237bc7b0a118255a659029637c5ed1a8b7a1
[ "MIT" ]
13
2017-12-28T02:44:09.000Z
2020-06-05T21:13:13.000Z
budgetme/apps/types/views.py
poblouin/budgetme-rest-api
74d9237bc7b0a118255a659029637c5ed1a8b7a1
[ "MIT" ]
null
null
null
from django_filters.rest_framework import DjangoFilterBackend from rest_framework.permissions import IsAuthenticated from rest_framework.viewsets import ModelViewSet from budgetme.apps.types.filters import TransactionCategoryFilter from budgetme.apps.types.models import TransactionCategory, Budget from budgetme.apps.t...
38.324324
93
0.804654
135
1,418
8.311111
0.377778
0.042781
0.057041
0.074866
0.313725
0.313725
0.313725
0.313725
0.244207
0.117647
0
0
0.125529
1,418
36
94
39.388889
0.904839
0
0
0.296296
0
0
0.005642
0
0
0
0
0
0
1
0.148148
false
0
0.259259
0.074074
0.925926
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
3b1a628801f37a336a41892d08648e7b0f58d37e
745
py
Python
app.py
sandeepsarma/vRealize-Automation-Deployments
7975af63e6a54466edc60b62d42e72c1ed3c33bf
[ "MIT" ]
null
null
null
app.py
sandeepsarma/vRealize-Automation-Deployments
7975af63e6a54466edc60b62d42e72c1ed3c33bf
[ "MIT" ]
null
null
null
app.py
sandeepsarma/vRealize-Automation-Deployments
7975af63e6a54466edc60b62d42e72c1ed3c33bf
[ "MIT" ]
null
null
null
import vrealizeautomation.vra as vrealize_automation import appvars # Create an instance of the vraauthentication class. my_vra = vrealize_automation.vraauthentication(appvars.vra_prod_fqdn, appvars.vra_prod_tenant_name, app...
39.210526
100
0.657718
86
745
5.418605
0.55814
0.085837
0.120172
0.072961
0
0
0
0
0
0
0
0
0.289933
745
18
101
41.388889
0.880907
0.256376
0
0
0
0
0.158759
0
0
0
0
0
0
1
0
false
0.1
0.2
0
0.2
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
0
0
1
0
0
0
0
0
1
3b1a812f910c195eece279e039ecd5463cda5026
3,085
py
Python
sdk/python/pulumi_alicloud/drds/outputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/drds/outputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/drds/outputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
28.045455
99
0.579579
346
3,085
4.982659
0.231214
0.027842
0.069606
0.088167
0.289443
0.153132
0.097448
0.060325
0.060325
0.060325
0
0.00047
0.310211
3,085
109
100
28.302752
0.80968
0.283306
0
0.220339
1
0
0.089038
0.013381
0
0
0
0
0
1
0.152542
false
0
0.084746
0
0.389831
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
3b2b492ec51a39b97d75fe1d96aa9fd6d299c950
256
py
Python
catalog/bindings/gmd/vector.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/vector.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/vector.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.vector_type import VectorType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class Vector(VectorType): class Meta: name = "vector" namespace = "http://www.opengis.net/gml"
21.333333
48
0.714844
31
256
5.741935
0.580645
0.146067
0.179775
0.258427
0.325843
0.325843
0
0
0
0
0
0
0.175781
256
11
49
23.272727
0.843602
0
0
0
0
0
0.226563
0
0
0
0
0
0
1
0
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
3b2e07dfe9a9cd52efd8c8eb0124e0801f959f51
2,246
py
Python
danibraz/persons/models.py
CoutinhoElias/danibraz
b21f3ce3477ded74c901fa377a5b2ac5e68faf36
[ "MIT" ]
null
null
null
danibraz/persons/models.py
CoutinhoElias/danibraz
b21f3ce3477ded74c901fa377a5b2ac5e68faf36
[ "MIT" ]
1
2017-06-15T20:14:05.000Z
2017-06-15T20:14:05.000Z
danibraz/persons/models.py
CoutinhoElias/danibraz
b21f3ce3477ded74c901fa377a5b2ac5e68faf36
[ "MIT" ]
1
2017-06-15T20:07:41.000Z
2017-06-15T20:07:41.000Z
# from django.contrib.auth.models import User from django.db import models from django.urls import reverse class Person(models.Model): name = models.CharField('Nome',max_length=100) birthday = models.DateField('Aniversário') observation = models.CharField('Observações',max_length=100) purchase_limit =...
28.794872
92
0.673197
265
2,246
5.524528
0.422642
0.112705
0.040984
0.054645
0.162568
0.071038
0
0
0
0
0
0.018899
0.19902
2,246
78
93
28.794872
0.794886
0.036064
0
0.192308
0
0
0.135922
0.010171
0
0
0
0
0
1
0.115385
false
0
0.038462
0.076923
0.711538
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
3b551c6fb162eb45f828cee82c33cc81cebcdf39
16,446
py
Python
Mandelbrot ipywidget with cython and ipympl.py
fdobad/mandelbrot
c4ee5dcc390ab7968c0296825d8880dc40fb24e5
[ "BSD-3-Clause" ]
null
null
null
Mandelbrot ipywidget with cython and ipympl.py
fdobad/mandelbrot
c4ee5dcc390ab7968c0296825d8880dc40fb24e5
[ "BSD-3-Clause" ]
null
null
null
Mandelbrot ipywidget with cython and ipympl.py
fdobad/mandelbrot
c4ee5dcc390ab7968c0296825d8880dc40fb24e5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # **import** Mandelbrot Cython, ipywidget with ipympl matplotlib # In[1]: get_ipython().run_line_magic('load_ext', 'Cython') get_ipython().run_line_magic('matplotlib', 'widget') import numpy as np import ipywidgets as widgets from ipywidgets import Layout import matplotlib.py...
28.954225
552
0.61936
2,189
16,446
4.524897
0.172225
0.015447
0.023322
0.004846
0.486623
0.40737
0.352246
0.294599
0.234831
0.208077
0
0.022867
0.236836
16,446
567
553
29.005291
0.766313
0.137784
0
0.299674
0
0.009772
0.122644
0.001505
0
0
0
0
0
0
null
null
0
0.026059
null
null
0.032573
0
0
0
null
0
0
0
0
0
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
3b5da6cf5c0bb076d4e0514f27260a04f02ed7b7
787
py
Python
Unit 3 Reservoir Statics/functions/extrapolatepressure.py
datasolver/reservoir-engineering
82393cff19e700fe3c7ac5c1a32ba877a4e40750
[ "MIT" ]
139
2020-02-25T11:56:46.000Z
2022-02-19T02:16:24.000Z
Unit 3 Reservoir Statics/functions/extrapolatepressure.py
datasolver/reservoir-engineering
82393cff19e700fe3c7ac5c1a32ba877a4e40750
[ "MIT" ]
1
2020-03-03T06:32:06.000Z
2020-06-26T15:15:52.000Z
Unit 3 Reservoir Statics/functions/extrapolatepressure.py
datasolver/reservoir-engineering
82393cff19e700fe3c7ac5c1a32ba877a4e40750
[ "MIT" ]
69
2020-04-29T13:09:45.000Z
2021-11-29T13:19:35.000Z
def extrapolatepressure_gas(sg, pressure, temp, delta): import numpy as np R = 10.732 rhogas = (28.97 * sg * pressure) / (z * R * (temp + 459)) # temp convert to Rankine # gas density gradient rhogas_grad = rhogas / 144 # extrapolate using Eq 3.1 pressure_extrapolated_below = pressure + rhogas_grad *...
35.772727
126
0.715375
104
787
5.221154
0.413462
0.294659
0.060773
0.069982
0.173112
0.173112
0.173112
0.173112
0.173112
0.173112
0
0.063566
0.180432
787
21
127
37.47619
0.778295
0.163914
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
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
3b6179626f1db495c60757258eae766723574226
1,211
py
Python
PyInstaller/hooks/hook-cv2.py
ssantichaivekin/pyinstaller
d30785c9a46493fc84cd68fa29d1743219e95019
[ "Apache-2.0" ]
1
2020-08-16T14:34:51.000Z
2020-08-16T14:34:51.000Z
PyInstaller/hooks/hook-cv2.py
tisttsf/pyinstaller
d30785c9a46493fc84cd68fa29d1743219e95019
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-cv2.py
tisttsf/pyinstaller
d30785c9a46493fc84cd68fa29d1743219e95019
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2013-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
36.69697
78
0.631709
152
1,211
4.947368
0.572368
0.051862
0.075798
0.087766
0
0
0
0
0
0
0
0.012758
0.158547
1,211
32
79
37.84375
0.725221
0.592073
0
0
0
0
0.09375
0.054167
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3b63b16584a5413311ceaefbb4f20b4be2037f35
4,284
py
Python
python-flask/main.py
valtech/valtech-idp-test-clients
ee619d887fc51055b072f5477b8cee97f03a1bc6
[ "MIT" ]
null
null
null
python-flask/main.py
valtech/valtech-idp-test-clients
ee619d887fc51055b072f5477b8cee97f03a1bc6
[ "MIT" ]
2
2016-01-25T19:41:23.000Z
2019-09-21T14:46:22.000Z
python-flask/main.py
valtech/valtech-idp-test-clients
ee619d887fc51055b072f5477b8cee97f03a1bc6
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, session, redirect import os, sys, time import requests import jwt import uuid CLIENT_ID = 'valtech.idp.testclient.local' CLIENT_SECRET = os.environ.get('CLIENT_SECRET') if CLIENT_SECRET is None: print 'CLIENT_SECRET missing. Start using "CLIENT_SECRET=very_secret_s...
37.911504
174
0.720355
658
4,284
4.566869
0.325228
0.037271
0.019967
0.031614
0.114476
0.038602
0
0
0
0
0
0.002785
0.161765
4,284
112
175
38.25
0.83403
0.335668
0
0.028986
0
0.014493
0.340764
0.021585
0
0
0
0
0
0
null
null
0
0.072464
null
null
0.014493
0
0
0
null
0
0
0
0
0
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
3b6cd03362cf21c56557a7f2b550fc537b2eb119
1,647
py
Python
stock_price_alert/alerts/forms.py
vinyasmusic/price-alert
8781bb567898ee9a60164994ceedbcf4372d6357
[ "MIT" ]
5
2018-08-02T15:00:53.000Z
2022-01-15T07:56:27.000Z
stock_price_alert/alerts/forms.py
vinyasmusic/price-alert
8781bb567898ee9a60164994ceedbcf4372d6357
[ "MIT" ]
8
2018-08-06T18:45:30.000Z
2018-08-15T17:28:44.000Z
stock_price_alert/alerts/forms.py
vinyasmusic/price-alert
8781bb567898ee9a60164994ceedbcf4372d6357
[ "MIT" ]
null
null
null
import random from django.contrib.auth import get_user_model from django.forms import ModelForm, CharField, BooleanField, FloatField, Form from django.forms.widgets import TextInput from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from crispy_forms.helper import...
39.214286
111
0.684274
181
1,647
6.071823
0.513812
0.045496
0.072793
0.11283
0
0
0
0
0
0
0
0.00624
0.221615
1,647
41
112
40.170732
0.851014
0
0
0
0
0
0.15146
0
0
0
0
0
0
1
0.032258
false
0
0.290323
0
0.548387
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
3b717b2d72345f80c912cf3f3f9023e6c1b55d60
514
py
Python
Q46Permutation.py
ChenliangLi205/LeetCode
6c547c338eb05042cb68f57f737dce483964e2fd
[ "MIT" ]
null
null
null
Q46Permutation.py
ChenliangLi205/LeetCode
6c547c338eb05042cb68f57f737dce483964e2fd
[ "MIT" ]
null
null
null
Q46Permutation.py
ChenliangLi205/LeetCode
6c547c338eb05042cb68f57f737dce483964e2fd
[ "MIT" ]
null
null
null
class Solution: def permute(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ if len(nums) < 2: return [nums] def order(prefix, suffix): if len(suffix) == 1: return [prefix+suffix] results =...
28.555556
82
0.453307
54
514
4.314815
0.444444
0.154506
0.145923
0.120172
0
0
0
0
0
0
0
0.009868
0.40856
514
18
83
28.555556
0.756579
0.087549
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.583333
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
3b7e9a650868c60218bf06d42d8d6a956f9858b1
2,528
py
Python
muterl_clause.py
parsifal-47/muterl
99aaedf8040ee2d45ccee19e3b429043e1efeb8f
[ "MIT" ]
15
2017-01-02T16:51:10.000Z
2021-08-05T03:33:57.000Z
muterl_clause.py
parsifal-47/muterl
99aaedf8040ee2d45ccee19e3b429043e1efeb8f
[ "MIT" ]
1
2016-12-25T17:23:29.000Z
2016-12-26T22:06:06.000Z
muterl_clause.py
parsifal-47/muterl
99aaedf8040ee2d45ccee19e3b429043e1efeb8f
[ "MIT" ]
1
2017-09-14T22:34:15.000Z
2017-09-14T22:34:15.000Z
def clause_count(ast): if ast.expr_name[-6:] == "clause": return 1 if ast.children: return sum(map(clause_count, ast.children)) return 0 def clause_remove_count(ast): if ast.expr_name in ["function", "case", "trycatch", "lambda"]: clauses = sum(map(clause_count, ast.children)) ...
36.637681
88
0.581487
359
2,528
3.997214
0.139276
0.122648
0.094774
0.016725
0.618815
0.53101
0.519861
0.344948
0.344948
0.344948
0
0.015847
0.276108
2,528
68
89
37.176471
0.768306
0
0
0.440678
0
0
0.031262
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
3b80b51dc53d1f5f4dcbcd5bdd0d6a320bd0f937
1,208
py
Python
tick/python_scripts/diff.py
cocoa1231/tick
80a8462fd6f196fcab4359937fb597abd281fdf3
[ "Apache-2.0" ]
1
2020-09-06T21:16:31.000Z
2020-09-06T21:16:31.000Z
tick/python_scripts/diff.py
cocoa1231/tick
80a8462fd6f196fcab4359937fb597abd281fdf3
[ "Apache-2.0" ]
null
null
null
tick/python_scripts/diff.py
cocoa1231/tick
80a8462fd6f196fcab4359937fb597abd281fdf3
[ "Apache-2.0" ]
null
null
null
""" tick diff- couts the diffrence between last 2 commits. """ import os import shutil import zipfile from subprocess import call def tickDiff(): """ code for tick diff """ current = os.getcwd() os.chdir('.tick/commits') sorted_a = sorted( os.listdir('.'), key=os.path.getmtime) os.chdir...
23.230769
87
0.595199
157
1,208
4.490446
0.382166
0.10922
0.119149
0.12766
0.414184
0.337589
0.249645
0.141844
0.141844
0.141844
0
0.010881
0.239238
1,208
51
88
23.686275
0.756257
0.120861
0
0.28125
0
0
0.141063
0
0
0
0
0
0
1
0.03125
false
0.09375
0.125
0
0.15625
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
3b80d63b57173a76972ec0adfd8de8ddf8bfd8b0
1,672
py
Python
barcodes/dxfwrite/dxfwrite/algebra/__init__.py
sbarton272/AcousticBarcodes-Explorations
73f019228988727575af7d67d1b7c7119f6c49a6
[ "MIT" ]
null
null
null
barcodes/dxfwrite/dxfwrite/algebra/__init__.py
sbarton272/AcousticBarcodes-Explorations
73f019228988727575af7d67d1b7c7119f6c49a6
[ "MIT" ]
null
null
null
barcodes/dxfwrite/dxfwrite/algebra/__init__.py
sbarton272/AcousticBarcodes-Explorations
73f019228988727575af7d67d1b7c7119f6c49a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Purpose: algebra lib to calculate with geometric forms # Created: 27.03.2010 # License: MIT License import math from dxfwrite.algebra.base import * from dxfwrite.algebra.ray import Ray2D, ParallelRaysError from dxfwrite.algebra.clothoid import Clothoid from dxfwrite.algebra.cir...
34.122449
76
0.687799
222
1,672
5.054054
0.545045
0.064171
0.101604
0.050802
0.124777
0.049911
0
0
0
0
0
0.027292
0.145335
1,672
48
77
34.833333
0.757873
0.645335
0
0
0
0
0.230634
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
3b85be4fe3463ccb4ec402da6ac8a1e3672fa8f3
3,739
py
Python
Day5/lists.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
Day5/lists.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
Day5/lists.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
from countries import * lst = list() print('Length', len(lst)) lst = [] print('Length', len(lst)) lst = ['item1', 'item2', 'item3', 'item4', 'item5'] first_item, *remaining, last_item = lst print(first_item) print(last_item) print(remaining) print(lst[0:4]) print(lst[0:]) print(lst[0:1]) print(lst[::2]) fruits =...
23.664557
92
0.71463
570
3,739
4.491228
0.240351
0.171875
0.0875
0.060156
0.192188
0.076953
0.065625
0.065625
0.065625
0.065625
0
0.022748
0.106446
3,739
158
93
23.664557
0.74349
0.045467
0
0.225
0
0
0.145342
0
0
0
0
0
0
1
0
false
0
0.008333
0
0.008333
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
3b8651acf2d707bc89567986eae4d32e1abc6f53
242
py
Python
backend/base/urls.py
valerak2000/valera-k2000
70d9b8533e5ac911aad9115ef342abc507d349b8
[ "MIT" ]
2
2019-06-03T15:27:56.000Z
2020-04-03T07:48:48.000Z
backend/base/urls.py
valerak2000/valera-k2000
70d9b8533e5ac911aad9115ef342abc507d349b8
[ "MIT" ]
3
2018-12-03T20:13:52.000Z
2019-10-31T07:27:32.000Z
backend/base/urls.py
valerak2000/valera-k2000
70d9b8533e5ac911aad9115ef342abc507d349b8
[ "MIT" ]
null
null
null
from django.conf.urls import url from base import views as base_views from django.urls import re_path, path app_name = 'base' urlpatterns = [ re_path(r'', base_views.ProtectedDataView.as_view(), name='protected_data'), ]
22
47
0.710744
35
242
4.714286
0.542857
0.121212
0
0
0
0
0
0
0
0
0
0
0.190083
242
10
48
24.2
0.841837
0
0
0
0
0
0.07438
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
3b8bc578bfe3a4a0bb7f2d6cc16583046e4b5caa
392
py
Python
python3/demo.iterclass.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
python3/demo.iterclass.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
python3/demo.iterclass.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
''' https://docs.python.org/3/reference/datamodel.html#object.__getitem__ ''' class XXX(object): def __init__(self): self.data = {int(i): str(i) for i in range(3)} def __len__(self): return len(self.data) def __getitem__(self, index): if index >= len(self): raise IndexError r...
24.5
69
0.614796
59
392
3.813559
0.525424
0.106667
0
0
0
0
0
0
0
0
0
0.006623
0.229592
392
15
70
26.133333
0.738411
0.17602
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0
0.090909
0.545455
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3b9612c1930020527ffdbf4838691a7dd7157ab7
1,381
py
Python
02_fonctions/02_mentions.py
elemprog-python/elemprog-exercices-corriges
0b530312a9a92c17b61ef154e96d7d8d89eb54b7
[ "MIT" ]
null
null
null
02_fonctions/02_mentions.py
elemprog-python/elemprog-exercices-corriges
0b530312a9a92c17b61ef154e96d7d8d89eb54b7
[ "MIT" ]
null
null
null
02_fonctions/02_mentions.py
elemprog-python/elemprog-exercices-corriges
0b530312a9a92c17b61ef154e96d7d8d89eb54b7
[ "MIT" ]
null
null
null
# Exercice 2.2 : Calcul des mentions (corrigé) ## Question 1 def mention(note : float) -> str: """Précondition : (note>=0) and (note<=20) Retourne la mention correspondant à la note spécifiée. """ if note < 10: return 'Eliminé' elif note < 12: return 'Passable' elif note < 14:...
21.246154
130
0.542361
177
1,381
4.220339
0.355932
0.085676
0.048193
0.064257
0.294511
0.238286
0.238286
0.238286
0.16332
0.16332
0
0.055615
0.322954
1,381
64
131
21.578125
0.743316
0.284576
0
0.625
0
0
0.091291
0
0
0
0
0
0.15
1
0.075
false
0.1
0
0
0.45
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
3b997f041a588c873eb9e50b6b51a63388ddadd1
1,370
py
Python
Python3/327.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/327.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/327.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 148 ms submission from bisect import bisect_left, bisect_right, insort class Solution: def countRangeSum(self, nums: List[int], lower: int, upper: int) -> int: if(lower > upper): return 0 ...
42.8125
110
0.665693
135
1,370
4.466667
0.311111
0.058043
0.049751
0.096186
0.268657
0.208955
0.208955
0.208955
0.208955
0.208955
0
0.012795
0.258394
1,370
31
111
44.193548
0.580709
0.074453
0
0.321429
0
0
0
0
0
0
0
0
0
0
null
null
0
0.035714
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
8e58fd72363387e4e92e678ad996d21dba4beb0c
1,925
py
Python
myfunds/modules/txnfetcher/base.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
myfunds/modules/txnfetcher/base.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
myfunds/modules/txnfetcher/base.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
import json from datetime import datetime from typing import Any from typing import List from typing import Optional from myfunds.core.constants import FundsDirection class TransactionJSONEncoder(json.JSONEncoder): def default(self, o: Any) -> Any: if isinstance(o, datetime): return o.strftim...
26.369863
82
0.642078
207
1,925
5.811594
0.362319
0.037406
0.0399
0.0399
0.099751
0.099751
0.099751
0.099751
0
0
0
0
0.269091
1,925
72
83
26.736111
0.855011
0
0
0.037736
0
0
0.088312
0.012987
0
0
0
0
0
1
0.132075
false
0
0.113208
0.037736
0.54717
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
8e5d4d0f096f028f365fc5da34e1157ab2ea8fac
4,642
py
Python
dataapp/views.py
ZhiHaoSun/FaceBookHackthon
fec38910f1a0d7d03cb0e068859a02c7a6a7d4ab
[ "MIT" ]
1
2017-09-28T15:20:42.000Z
2017-09-28T15:20:42.000Z
dataapp/views.py
ZhiHaoSun/FaceBookHackthon
fec38910f1a0d7d03cb0e068859a02c7a6a7d4ab
[ "MIT" ]
null
null
null
dataapp/views.py
ZhiHaoSun/FaceBookHackthon
fec38910f1a0d7d03cb0e068859a02c7a6a7d4ab
[ "MIT" ]
null
null
null
from __future__ import absolute_import from django.db.models import Max from django.core.urlresolvers import reverse, NoReverseMatch from django.contrib import messages from django.http import Http404 from django.shortcuts import redirect, render, get_object_or_404, render_to_response from django.utils.translation impo...
32.013793
190
0.683542
531
4,642
5.887006
0.274953
0.067179
0.088292
0.09469
0.348369
0.269994
0.169226
0.169226
0.151951
0.151951
0
0.003554
0.211978
4,642
144
191
32.236111
0.851011
0
0
0.267857
0
0
0.087678
0.01034
0
0
0
0
0
1
0.044643
false
0.008929
0.303571
0.008929
0.482143
0.008929
0
0
0
null
0
0
0
0
0
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
8e611dd8c453b55439a75549194674cc4bbc382a
1,039
py
Python
old_code/app.1.py
LucasBiason/python521
ed418d5335f84fcbfdb1251bc571710c48b429bc
[ "MIT" ]
null
null
null
old_code/app.1.py
LucasBiason/python521
ed418d5335f84fcbfdb1251bc571710c48b429bc
[ "MIT" ]
2
2021-05-25T13:26:42.000Z
2021-05-25T13:26:43.000Z
old_code/app.1.py
LucasBiason/python521
ed418d5335f84fcbfdb1251bc571710c48b429bc
[ "MIT" ]
null
null
null
import flask import pymongo client = pymongo.MongoClient() db = client.users app = flask.Flask(__name__) IS_AUTH = False @app.route('users/sign-in', methods=['GET', 'POST']) def sign_in(): if flask.request.method == 'POST': form = flask.request.form user = db.usuarios.find({'email':form['email']...
24.738095
56
0.600577
130
1,039
4.661538
0.384615
0.039604
0.064356
0.084158
0.085809
0
0
0
0
0
0
0
0.237729
1,039
42
57
24.738095
0.765152
0
0
0.129032
0
0
0.180769
0
0
0
0
0
0
1
0.096774
false
0.096774
0.064516
0
0.322581
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
8e6344a0c9e30da0dcdc1dcbd9af8814ec6ae1da
1,179
py
Python
ScannerServer/ble_scanner.py
straylightlabs/hands-free-lock
eb7b917b4451f4fc8d9cff54701fd029fb3c214a
[ "MIT" ]
null
null
null
ScannerServer/ble_scanner.py
straylightlabs/hands-free-lock
eb7b917b4451f4fc8d9cff54701fd029fb3c214a
[ "MIT" ]
null
null
null
ScannerServer/ble_scanner.py
straylightlabs/hands-free-lock
eb7b917b4451f4fc8d9cff54701fd029fb3c214a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime import requests import sys import time from subprocess import PIPE, Popen from threading import Thread from Queue import Queue, Empty SCANNER_NAME = 'SCANNER0'; ON_POSIX = 'posix' in sys.builtin_module_names def enqueue_output(out, queue): for line in iter(out.readline, b'...
24.061224
91
0.648855
159
1,179
4.679245
0.584906
0.067204
0.02957
0.048387
0.075269
0.075269
0
0
0
0
0
0.010929
0.223919
1,179
48
92
24.5625
0.802186
0.041561
0
0
0
0
0.110914
0
0
0
0
0
0
0
null
null
0
0.179487
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
8e64e989d2c9fe3a9eae95df3c958f668caaa503
915
py
Python
q2_network/_transformer.py
shafferm/q2-network
c3d12e95f463c90b1ce635d57688e81031ea8e82
[ "BSD-3-Clause" ]
2
2018-05-12T22:38:47.000Z
2019-09-17T15:24:42.000Z
q2_network/_transformer.py
shafferm/q2-network
c3d12e95f463c90b1ce635d57688e81031ea8e82
[ "BSD-3-Clause" ]
null
null
null
q2_network/_transformer.py
shafferm/q2-network
c3d12e95f463c90b1ce635d57688e81031ea8e82
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import networkx as nx from .plugin_setup import plugin from ._format import PairwiseFeatureDataFormat, GraphModelingLanguageFormat @plugin.register_transformer def _1(data: pd.DataFrame) -> PairwiseFeatureDataFormat: ff = PairwiseFeatureDataFormat() with ff.open() as fh: data.to_c...
26.911765
75
0.722404
116
915
5.551724
0.37069
0.086957
0.15528
0.173913
0.223602
0.111801
0
0
0
0
0
0.010444
0.162842
915
33
76
27.727273
0.830287
0.052459
0
0.363636
0
0
0.023148
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.045455
0.545455
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
8e69462d73e746a3694ca9090e76033bc8bfd6fa
573
py
Python
index.py
Jeffreyo3/parse-custom-protocol
3bec3134e15dcf40af7de1ba213d282e8ddebf33
[ "MIT" ]
null
null
null
index.py
Jeffreyo3/parse-custom-protocol
3bec3134e15dcf40af7de1ba213d282e8ddebf33
[ "MIT" ]
null
null
null
index.py
Jeffreyo3/parse-custom-protocol
3bec3134e15dcf40af7de1ba213d282e8ddebf33
[ "MIT" ]
null
null
null
from mainframe import MainFrame with open("txnlog.dat", mode='rb') as file: # b is important -> binary fileContent = file.read() m = MainFrame(fileContent) print("Total amount of dollars in debits:", m.amountTotal(m.recordTypes[0x00])) print("Total amount of dollars in credits:", m.amountTotal(m.recordTypes[0x01...
40.928571
84
0.764398
73
573
6
0.561644
0.091324
0.073059
0.082192
0.123288
0.123288
0
0
0
0
0
0.096525
0.095986
573
14
85
40.928571
0.749035
0.041885
0
0
0
0
0.291971
0
0
0
0.029197
0
0
1
0
false
0
0.1
0
0.1
0.6
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8e6b3bc8eb03fa51cd80feb89bbd1c7cd714e4ae
283
py
Python
hackerrank/python3/challenges/diagonal-difference.py
lakscastro/algorithms
0a34527f0a5d68eced9e01d03dfa1a53e4f4200d
[ "MIT" ]
2
2022-01-10T23:37:10.000Z
2022-01-21T15:46:27.000Z
hackerrank/python3/prepare/algorithms/diagonal-difference.py
lakscastro/uri-online-solutions
81b8560d486c31b9785891971278140ddc26cf2e
[ "MIT" ]
1
2022-03-27T00:56:13.000Z
2022-03-27T00:56:13.000Z
hackerrank/python3/challenges/diagonal-difference.py
lakscastro/beecrowd-solutions
a0e5fcc81d002cd15c3d926613846e393985f257
[ "MIT" ]
null
null
null
def diagonalDifference(arr, n): mtotal = 0 stotal = 0 for i in range(n): mtotal += arr[i][i] stotal += arr[n - 1 - i][i] return abs(mtotal - stotal) n = int(input()) arr = [ list(map(int, input().split())) for _ in range(n) ] print(diagonalDifference(arr, n))
15.722222
51
0.590106
44
283
3.772727
0.454545
0.072289
0.26506
0
0
0
0
0
0
0
0
0.013761
0.229682
283
17
52
16.647059
0.747706
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.083333
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
8e708ea5fcd60099bfb853812a286461a07944a9
542
py
Python
25.py
vezril/ProjectEuler
ca4aeb68262dee0c26ea2c89276c646e8ab050b6
[ "MIT" ]
null
null
null
25.py
vezril/ProjectEuler
ca4aeb68262dee0c26ea2c89276c646e8ab050b6
[ "MIT" ]
null
null
null
25.py
vezril/ProjectEuler
ca4aeb68262dee0c26ea2c89276c646e8ab050b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python class fib: def __init__(self): self.n1 = 1 self.n = 2 self.f = 3 def NextN(self): self.tmp = self.n1 + self.n self.n1 = self.n self.n = self.tmp self.f = self.f + 1 def GetF(self): return self.f def GetN(self): return self.n def GetN1(self): return self.n1 ...
15.055556
34
0.575646
92
542
3.347826
0.326087
0.081169
0.087662
0.071429
0.084416
0
0
0
0
0
0
0.036765
0.247232
542
36
35
15.055556
0.718137
0.0369
0
0
0
0
0.019157
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
8e72bb603190b1e7c58d9037bd1c7e0207357801
5,242
py
Python
external/source/meterpreter/source/bionic/libc/kernel/tools/find_headers.py
truekonrads/mirv-metasploit
36bcc1f7f57d67636f4479afc75c2832f12ea466
[ "BSD-3-Clause" ]
264
2015-01-02T10:15:42.000Z
2022-03-31T06:59:13.000Z
external/source/meterpreter/source/bionic/libc/kernel/tools/find_headers.py
truekonrads/mirv-metasploit
36bcc1f7f57d67636f4479afc75c2832f12ea466
[ "BSD-3-Clause" ]
112
2015-01-02T01:26:38.000Z
2021-11-21T02:07:21.000Z
external/source/meterpreter/source/bionic/libc/kernel/tools/find_headers.py
truekonrads/mirv-metasploit
36bcc1f7f57d67636f4479afc75c2832f12ea466
[ "BSD-3-Clause" ]
130
2015-01-02T05:29:46.000Z
2022-03-18T19:50:39.000Z
#!/usr/bin/env python # # this program is used to find source code that includes linux kernel headers directly # (e.g. with #include <linux/...> or #include <asm/...>) # # then it lists import sys, cpp, glob, os, re, getopt, kernel from utils import * from defaults import * program_dir = find_program_dir() wanted_ar...
29.784091
118
0.638115
725
5,242
4.533793
0.284138
0.04746
0.042592
0.046243
0.195011
0.149985
0.084271
0.057803
0.041984
0.041984
0
0.005312
0.245899
5,242
175
119
29.954286
0.826208
0.169592
0
0.211864
0
0
0.305151
0.006237
0
0
0
0
0
0
null
null
0
0.025424
null
null
0.076271
0
0
0
null
0
0
0
0
0
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
8e7bea4839b68d4e325326bfe935beacefc3da94
4,948
py
Python
customwidgetdemo_support.py
thedesignatedgeek/ScrolledCheckbuttonListBox_Widget
8f868f804a0038464f3a9a7b722bfcabd5616d04
[ "MIT" ]
null
null
null
customwidgetdemo_support.py
thedesignatedgeek/ScrolledCheckbuttonListBox_Widget
8f868f804a0038464f3a9a7b722bfcabd5616d04
[ "MIT" ]
null
null
null
customwidgetdemo_support.py
thedesignatedgeek/ScrolledCheckbuttonListBox_Widget
8f868f804a0038464f3a9a7b722bfcabd5616d04
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Support module generated by PAGE version 4.15a # In conjunction with Tcl version 8.6 # Jun 16, 2018 10:56:46 AM # ====================================================== # customwidgetdemo_support.py # ------------------------------------------------------ # Cr...
30.732919
79
0.478981
483
4,948
4.830228
0.490683
0.027432
0.014145
0.02829
0.021432
0
0
0
0
0
0
0.018584
0.19523
4,948
160
80
30.925
0.567303
0.516572
0
0.084507
1
0
0.142367
0
0
0
0
0
0
1
0.140845
false
0
0.126761
0
0.267606
0.028169
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
8e7f514c2d99481e63eb0aec0f4ba0acd5afecd5
4,929
py
Python
ppmessage/scripts/min.py
augustand/ppmessage
73beac9c75f751d5026ff7defff23732c7419b43
[ "Apache-2.0" ]
6
2017-11-03T17:31:52.000Z
2020-06-14T09:14:36.000Z
ppmessage/scripts/min.py
sbilly/ppmessage
65c27e75c7aea1413a9c2cb6f3f90d94b59a6b44
[ "Apache-2.0" ]
null
null
null
ppmessage/scripts/min.py
sbilly/ppmessage
65c27e75c7aea1413a9c2cb6f3f90d94b59a6b44
[ "Apache-2.0" ]
16
2017-08-08T01:25:47.000Z
2019-09-17T16:32:06.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2010-2016 PPMessage. # Guijin Ding, dingguijin@gmail.com. # All rights are reserved. # # ppkefu/min/min.py # from buildconfig import build_config import os import json import scss import hashlib #from jsmin import jsmin #from slimit import minify from htmlmin import minify d...
28.005682
112
0.602962
643
4,929
4.143079
0.227061
0.045045
0.048799
0.048799
0.29542
0.26539
0.16479
0.124625
0.077327
0.052553
0
0.008069
0.245689
4,929
175
113
28.165714
0.708445
0.040779
0
0.186567
0
0
0.143554
0.063189
0
0
0
0
0
0
null
null
0
0.059701
null
null
0.022388
0
0
0
null
0
0
0
0
0
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
8e81b444804b04b6ea19f2b27a9a11d508351f78
987
py
Python
src/bin/huawei_server/collectInfoByCfg.py
Huawei/Server_Management_Plugin_Nagios
1f2099ae51ec3a0f5486ef9c30f42f6354ea422d
[ "MIT" ]
2
2021-06-16T08:50:03.000Z
2021-06-16T08:50:16.000Z
src/bin/huawei_server/collectInfoByCfg.py
Huawei/Server_Management_Plugin_Nagios
1f2099ae51ec3a0f5486ef9c30f42f6354ea422d
[ "MIT" ]
1
2020-01-15T03:33:45.000Z
2020-01-15T03:33:45.000Z
src/bin/huawei_server/collectInfoByCfg.py
Huawei/Server_Management_Plugin_Nagios
1f2099ae51ec3a0f5486ef9c30f42f6354ea422d
[ "MIT" ]
null
null
null
#coding=utf-8 import os import sys import commands import time import re def find_nagiosdir(): '''return nagios directory''' cmd = "source /etc/profile;echo $NAGIOSHOME" procs = commands.getoutput(cmd) return procs def getCfgfile(): nagios_home= find_nagiosdir() return nagios_home + "/etc/huaw...
27.416667
90
0.611955
114
987
5.201754
0.561404
0.067454
0.096121
0.126476
0.131535
0.131535
0.131535
0
0
0
0
0.00838
0.274569
987
36
91
27.416667
0.819832
0.012158
0
0.125
0
0
0.140592
0.033827
0
0
0
0
0
0
null
null
0
0.15625
null
null
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8e83e7b7096bcd8fe95f3cafe9ad46b1245b8812
2,902
py
Python
Tensorflow/mnist_deep.py
buntyke/DeepLearningMOOC
a48bc06d7cfb582ec6564450de210930e235dfa8
[ "MIT" ]
null
null
null
Tensorflow/mnist_deep.py
buntyke/DeepLearningMOOC
a48bc06d7cfb582ec6564450de210930e235dfa8
[ "MIT" ]
null
null
null
Tensorflow/mnist_deep.py
buntyke/DeepLearningMOOC
a48bc06d7cfb582ec6564450de210930e235dfa8
[ "MIT" ]
null
null
null
# import modules import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data # load the input data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) # create a session sess = tf.InteractiveSession() # train convolutional neural network model # functions to initialize weight parame...
30.547368
90
0.712267
474
2,902
4.154008
0.310127
0.01422
0.015236
0.03352
0.092941
0.06196
0.030472
0.030472
0.030472
0.030472
0
0.057448
0.160234
2,902
94
91
30.87234
0.750513
0.197795
0
0.041667
0
0
0.023407
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.041667
0
0
0
null
0
0
0
0
0
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
8e8eaaab28040f4a53e5879e34f5a16076d1795d
1,379
py
Python
getRefSeq.py
alex97751/KB-analysis
9384d1c2450963c9d1b0409dcde345760520af17
[ "MIT" ]
6
2021-09-20T06:30:34.000Z
2022-01-18T08:40:14.000Z
getRefSeq.py
alex97751/KB-analysis
9384d1c2450963c9d1b0409dcde345760520af17
[ "MIT" ]
null
null
null
getRefSeq.py
alex97751/KB-analysis
9384d1c2450963c9d1b0409dcde345760520af17
[ "MIT" ]
null
null
null
import mysql.connector # connect to homo sapiens DB 37 or 38 to get a valid RefSeq ID # Connect to local mysql DB for ENS->RefSeq mapping. def connect(variant): if variant.assembly == 37: variant.mydb = mysql.connector.connect(host="localhost", user="root", password="", database="homo_sapiens_core_75_37")...
40.558824
377
0.712835
187
1,379
5.080214
0.374332
0.047368
0.066316
0.052632
0.244211
0.176842
0.176842
0.176842
0.176842
0.176842
0
0.026502
0.179115
1,379
33
378
41.787879
0.812721
0.161711
0
0.210526
0
0.052632
0.361498
0.130662
0
0
0
0
0
1
0.105263
false
0.105263
0.052632
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8e933cd6273f52b73b5d910727e7cf197f3e8734
1,950
py
Python
src/ai_training/save_controller.py
hutomadotAI/qamatcher
0ece9bc354aea0c104cce7f3f372aa8e83a7601b
[ "Apache-2.0" ]
5
2019-07-01T17:48:47.000Z
2020-09-29T21:00:50.000Z
src/ai_training/save_controller.py
hutomadotAI/qamatcher
0ece9bc354aea0c104cce7f3f372aa8e83a7601b
[ "Apache-2.0" ]
null
null
null
src/ai_training/save_controller.py
hutomadotAI/qamatcher
0ece9bc354aea0c104cce7f3f372aa8e83a7601b
[ "Apache-2.0" ]
1
2019-09-17T08:08:45.000Z
2019-09-17T08:08:45.000Z
import logging import multiprocessing def _get_logger(): logger = logging.getLogger('hu.ai_training.save') return logger class SaveController: """A multiprocess aware class that can be passed into processes to keep shared state""" def __init__(self, manager: multiprocessing.Manager): self._...
34.821429
91
0.634359
273
1,950
4.227106
0.289377
0.048527
0.060659
0.097054
0.377816
0.306759
0.220104
0.17851
0.17851
0.133449
0
0
0.270769
1,950
55
92
35.454545
0.811533
0.239487
0
0.121212
0
0
0.072028
0
0
0
0
0
0
1
0.242424
false
0
0.060606
0
0.424242
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
8ea24106d8b9ecbdea0eb414c48d594389ca2e09
1,797
py
Python
redis/publish_solution.py
healthbridgeltd/zava-cop
9db0eb8b81f61c319f9fcb2b686d0cec1dd6a6c8
[ "Unlicense" ]
9
2017-09-15T08:05:55.000Z
2020-10-08T09:32:49.000Z
redis/publish_solution.py
healthbridgeltd/zava-cop
9db0eb8b81f61c319f9fcb2b686d0cec1dd6a6c8
[ "Unlicense" ]
2
2017-09-14T22:24:55.000Z
2017-11-08T21:39:44.000Z
redis/publish_solution.py
healthbridgeltd/zava-cop
9db0eb8b81f61c319f9fcb2b686d0cec1dd6a6c8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import json import random import redis import time from threading import Thread # Replaces with your configuration information redis_host = "192.168.11.161" redis_port = 6379 redis_password = "" event_channels = { 'login': 'user_event:login', 'view': 'user_event:view', 'logout': '...
24.616438
107
0.631608
217
1,797
5.087558
0.465438
0.035326
0.028986
0.032609
0.09058
0.09058
0.09058
0.09058
0
0
0
0.018797
0.259878
1,797
72
108
24.958333
0.811278
0.204229
0
0.054054
0
0
0.173295
0
0
0
0
0
0
1
0.054054
false
0.054054
0.135135
0
0.189189
0.108108
0
0
0
null
0
0
0
0
0
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
8ea9cd1aef98fcd2a57b0ffca50179959e6860d9
3,795
py
Python
server.py
ar2359/ibmhack
aafafac184be37a3e9eef8e4b617c277679bc60e
[ "MIT" ]
null
null
null
server.py
ar2359/ibmhack
aafafac184be37a3e9eef8e4b617c277679bc60e
[ "MIT" ]
null
null
null
server.py
ar2359/ibmhack
aafafac184be37a3e9eef8e4b617c277679bc60e
[ "MIT" ]
null
null
null
import flask from flask import request, jsonify import serial import RPi.GPIO as GPIO import time from cloudant.client import Cloudant from cloudant.error import CloudantException from cloudant.result import Result, ResultByKey app = flask.Flask(__name__) #1 Create some test data for our catalog in the form of a li...
29.648438
192
0.581028
417
3,795
5.247002
0.316547
0.032907
0.027422
0.032907
0.327697
0.327697
0.274223
0.238574
0.238574
0.238574
0
0.136037
0.265876
3,795
127
193
29.88189
0.649318
0.078261
0
0.38
0
0.01
0.268216
0.038726
0
0
0
0
0
0
null
null
0.02
0.08
null
null
0.06
0
0
0
null
0
0
0
0
0
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
8ead10cc3000e8fc44501b6e1933bad80e70c62e
431
py
Python
my_ip/migrations/0007_alter_project_project_image.py
OscarMugendi/Django-week3-IP
cae3770ebd5f3b4ffa75378869215fac06573c57
[ "MIT" ]
null
null
null
my_ip/migrations/0007_alter_project_project_image.py
OscarMugendi/Django-week3-IP
cae3770ebd5f3b4ffa75378869215fac06573c57
[ "MIT" ]
null
null
null
my_ip/migrations/0007_alter_project_project_image.py
OscarMugendi/Django-week3-IP
cae3770ebd5f3b4ffa75378869215fac06573c57
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-24 05:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('my_ip', '0006_auto_20210924_0111'), ] operations = [ migrations.AlterField( model_name='project', name='project_imag...
22.684211
89
0.617169
49
431
5.285714
0.857143
0.084942
0
0
0
0
0
0
0
0
0
0.100629
0.262181
431
18
90
23.944444
0.713836
0.104408
0
0
1
0
0.166667
0.059896
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
8eaf97c3f6d2ec997ea3ce007683aa9e166ea396
14,999
py
Python
applied_python/applied_python/lib/python2.7/site-packages/ansible/runner/connection_plugins/paramiko_ssh.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
1
2020-10-14T00:06:54.000Z
2020-10-14T00:06:54.000Z
applied_python/applied_python/lib/python2.7/site-packages/ansible/runner/connection_plugins/paramiko_ssh.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
null
null
null
applied_python/applied_python/lib/python2.7/site-packages/ansible/runner/connection_plugins/paramiko_ssh.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
2
2015-08-06T07:45:48.000Z
2017-01-04T17:47:16.000Z
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any lat...
35.711905
151
0.608441
1,877
14,999
4.697922
0.235482
0.027217
0.0313
0.008846
0.243252
0.202767
0.155137
0.143343
0.118848
0.108641
0
0.003365
0.306487
14,999
419
152
35.797136
0.844357
0.138743
0
0.193676
0
0.003953
0.097589
0.006643
0
0
0
0.002387
0
0
null
null
0.035573
0.075099
null
null
0.01581
0
0
0
null
0
0
0
0
0
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
8eb0b174067662ab0a549b37d9167d3016b03542
636
py
Python
src/browserist/browser/wait/until/url/equals.py
jakob-bagterp/browserist
76bd916dd217b7da3759fd6ec3374191002dc091
[ "Apache-2.0" ]
2
2022-02-20T10:03:19.000Z
2022-03-22T11:17:10.000Z
src/browserist/browser/wait/until/url/equals.py
jakob-bagterp/browserist
76bd916dd217b7da3759fd6ec3374191002dc091
[ "Apache-2.0" ]
null
null
null
src/browserist/browser/wait/until/url/equals.py
jakob-bagterp/browserist
76bd916dd217b7da3759fd6ec3374191002dc091
[ "Apache-2.0" ]
null
null
null
from selenium.common.exceptions import TimeoutException from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait # type: ignore from .....constant import timeout from .....exception.timeout import WaitForUrlTimeoutException from .....model.type.url impor...
39.75
92
0.768868
75
636
6.453333
0.48
0.07438
0.086777
0.115702
0
0
0
0
0
0
0
0
0.139937
636
15
93
42.4
0.884826
0.039308
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.5
0
0.583333
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
8eb2b378160a3f325f14888a05f81f0d02857fbb
221
py
Python
tablify/runner.py
ralphqq/tablify-csv
de9079fed1a0333a6cff0bf4af59f681f9a5d3d1
[ "MIT" ]
null
null
null
tablify/runner.py
ralphqq/tablify-csv
de9079fed1a0333a6cff0bf4af59f681f9a5d3d1
[ "MIT" ]
null
null
null
tablify/runner.py
ralphqq/tablify-csv
de9079fed1a0333a6cff0bf4af59f681f9a5d3d1
[ "MIT" ]
null
null
null
""" Script entry point """ import logging from .cli import app LOGLEVEL = "INFO" def main(): logging.basicConfig(format="%(message)s", level=getattr(logging, LOGLEVEL)) logging.debug("Initializing") app()
14.733333
79
0.678733
26
221
5.769231
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.167421
221
14
80
15.785714
0.815217
0.081448
0
0
0
0
0.138462
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8eb47b5385d87d76117aceff455f1bfb6cad216a
426
py
Python
ghostwriter/rolodex/migrations/0017_projectobjective_position.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
601
2019-07-30T17:06:37.000Z
2022-03-31T00:55:31.000Z
ghostwriter/rolodex/migrations/0017_projectobjective_position.py
chrismaddalena/Ghostwriter
5a938358450cd0e69a42883b1b18e067644744a8
[ "BSD-3-Clause" ]
150
2019-08-01T07:20:22.000Z
2022-03-29T19:18:02.000Z
ghostwriter/rolodex/migrations/0017_projectobjective_position.py
chrismaddalena/Ghostwriter
5a938358450cd0e69a42883b1b18e067644744a8
[ "BSD-3-Clause" ]
126
2019-07-30T17:42:49.000Z
2022-03-21T20:43:35.000Z
# Generated by Django 3.0.10 on 2021-02-27 00:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rolodex', '0016_auto_20210224_0645'), ] operations = [ migrations.AddField( model_name='projectobjective', name='po...
22.421053
79
0.622066
45
426
5.777778
0.822222
0
0
0
0
0
0
0
0
0
0
0.105431
0.265258
426
18
80
23.666667
0.72524
0.107981
0
0
1
0
0.177249
0.060847
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
8ecf79859162bb22e14c9469f282fc7a7ed4ad91
2,629
py
Python
news/views.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
news/views.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
news/views.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from braces.views import LoginRequiredMixin, PermissionRequiredMixin from django.contrib import messages from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.urls import reverse from .forms import NewsFo...
30.569767
123
0.772537
333
2,629
5.933934
0.372372
0.030364
0.04251
0.036437
0.079453
0.066802
0.066802
0.066802
0.066802
0
0
0.00435
0.125523
2,629
85
124
30.929412
0.855154
0.007988
0
0.061538
0
0
0.101305
0.008058
0
0
0
0
0
1
0.076923
false
0
0.169231
0.015385
0.615385
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
8ed210d093ae5a3b433bbe35d457baf8a0ab6141
354
py
Python
components/aws/sagemaker/tests/unit_tests/tests/deploy/test_deploy_spec.py
nostro-im/pipelines
39f5b6b74040abbf4b764cbd5b422d7548723d9e
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/aws/sagemaker/tests/unit_tests/tests/deploy/test_deploy_spec.py
nostro-im/pipelines
39f5b6b74040abbf4b764cbd5b422d7548723d9e
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/aws/sagemaker/tests/unit_tests/tests/deploy/test_deploy_spec.py
nostro-im/pipelines
39f5b6b74040abbf4b764cbd5b422d7548723d9e
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
from deploy.src.sagemaker_deploy_spec import SageMakerDeploySpec import unittest class DeploySpecTestCase(unittest.TestCase): REQUIRED_ARGS = ["--region", "us-west-2", "--model_name_1", "model-test"] def test_minimum_required_args(self): # Will raise if the inputs are incorrect spec = SageMa...
29.5
77
0.745763
43
354
5.930233
0.72093
0.141176
0
0
0
0
0
0
0
0
0
0.006689
0.155367
354
11
78
32.181818
0.846154
0.107345
0
0
0
0
0.130573
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
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
8eec1d1e58e6da46517e7e64c05f917609ceac96
1,080
py
Python
build/android/pylib/utils/decorators.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
build/android/pylib/utils/decorators.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
build/android/pylib/utils/decorators.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import functools import logging def Memoize(f): """Decorator to cache return values of function.""" memoize_dict = {} @functools.wraps(f) def wrapp...
28.421053
76
0.707407
141
1,080
5.326241
0.468085
0.066578
0.071904
0.047936
0.093209
0.093209
0.093209
0
0
0
0
0.00464
0.201852
1,080
37
77
29.189189
0.866589
0.396296
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0.090909
0
0.590909
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
8eed9594e152f1f640e1c31b5342ef4229ad765a
655
py
Python
python/django/force_login/middlewares.py
BugliL/DevelopersNotes
c7a47e0c8e648b55229ee676b65932086486738c
[ "MIT" ]
3
2018-07-03T18:22:36.000Z
2018-11-08T17:21:56.000Z
python/django/force_login/middlewares.py
BugliL/DevelopersNotes
c7a47e0c8e648b55229ee676b65932086486738c
[ "MIT" ]
null
null
null
python/django/force_login/middlewares.py
BugliL/DevelopersNotes
c7a47e0c8e648b55229ee676b65932086486738c
[ "MIT" ]
1
2018-11-08T15:29:32.000Z
2018-11-08T15:29:32.000Z
from django.core.handlers.wsgi import WSGIRequest from django.http import HttpResponseRedirect from django.urls import reverse class AuthRequiredMiddleware(object): def __init__(self, get_response): self.get_response = get_response def __call__(self, request: WSGIRequest): LOGIN_URL = reverse...
31.190476
85
0.729771
79
655
5.746835
0.417722
0.088106
0.099119
0.101322
0
0
0
0
0
0
0
0
0.2
655
20
86
32.75
0.866412
0
0
0
0
0
0.016794
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d6ff027c550b4a4979d7c380f551a47f779dedbc
3,247
py
Python
bin/04_transition_list.py
nusids/cofi
ad1a18df3d8e67a5f82a5341a7abcb1bef51d1cb
[ "AFL-3.0" ]
4
2021-03-05T10:54:22.000Z
2021-06-28T04:11:02.000Z
bin/04_transition_list.py
nusids/cofi
ad1a18df3d8e67a5f82a5341a7abcb1bef51d1cb
[ "AFL-3.0" ]
null
null
null
bin/04_transition_list.py
nusids/cofi
ad1a18df3d8e67a5f82a5341a7abcb1bef51d1cb
[ "AFL-3.0" ]
1
2021-03-07T12:00:01.000Z
2021-03-07T12:00:01.000Z
#!/bin/python # # TRANSITION LIST # =============== # # This executable produces the building transition list, mapping the # arrival and departure time of each user from each building. # # Arrival and departure times stands for the first session start and last # session end time from contiguous list of sessions that to...
34.542553
86
0.626732
419
3,247
4.713604
0.398568
0.041013
0.03038
0.025823
0.120506
0.074937
0.041519
0.041519
0.041519
0.041519
0
0.009941
0.318448
3,247
93
87
34.913978
0.882512
0.330459
0
0.278689
0
0
0.740242
0.05158
0
0
0
0
0
1
0.032787
false
0
0.065574
0
0.098361
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
d6fff45cf22c9cb8f950cd3e324d88862883a0b0
3,704
py
Python
src/cltoolkit/features/collection.py
cldf/cltoolkit
10c2692bd5370d042fc70494a0b948fea8e6a58d
[ "MIT" ]
2
2021-08-08T00:16:58.000Z
2021-12-31T19:55:40.000Z
src/cltoolkit/features/collection.py
cldf/cltoolkit
10c2692bd5370d042fc70494a0b948fea8e6a58d
[ "MIT" ]
6
2021-08-02T09:33:51.000Z
2022-03-22T19:46:14.000Z
src/cltoolkit/features/collection.py
cldf/cltoolkit
10c2692bd5370d042fc70494a0b948fea8e6a58d
[ "MIT" ]
null
null
null
import typing import textwrap import importlib import collections import attr from pycldf.util import DictTuple from clldutils import jsonlib __all__ = ['Feature', 'FeatureCollection', 'get_callable'] def get_callable(s: typing.Union[str, dict, typing.Callable]) -> typing.Callable: """ A "feature function" ...
32.208696
100
0.589633
463
3,704
4.557235
0.300216
0.051185
0.024645
0.032227
0.020853
0.020853
0
0
0
0
0
0.001506
0.282937
3,704
114
101
32.491228
0.792922
0.206533
0
0.027778
0
0
0.046148
0
0
0
0
0
0
1
0.152778
false
0
0.111111
0.055556
0.597222
0.013889
0
0
0
null
0
0
0
0
0
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
d900992dd7ba7816b32368426cf6c55030b2403d
321
py
Python
myscrumy/idowuscrumy/urls.py
Manuelkila/myscrumy
e60eee4c5d20e484c6a3a53fc352f3bd28f0a33a
[ "Apache-2.0" ]
null
null
null
myscrumy/idowuscrumy/urls.py
Manuelkila/myscrumy
e60eee4c5d20e484c6a3a53fc352f3bd28f0a33a
[ "Apache-2.0" ]
null
null
null
myscrumy/idowuscrumy/urls.py
Manuelkila/myscrumy
e60eee4c5d20e484c6a3a53fc352f3bd28f0a33a
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.urls import path, include from idowuscrumy import views urlpatterns= [ path('', views.index), path('movegoal/<int:goal_id>/', views.move_goal, name ='move_goal'), path('addgoal/', views.add_goal, name='addgoal'), path('home/', views.home, name='home'), ]...
29.181818
72
0.682243
43
321
5
0.488372
0.093023
0
0
0
0
0
0
0
0
0
0
0.152648
321
10
73
32.1
0.790441
0
0
0
0
0
0.174455
0.071651
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
d906523ced91fec163ff6ac42fabf7a6da423fec
3,376
py
Python
Flask/flogger/author/tests.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
null
null
null
Flask/flogger/author/tests.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
8
2020-06-06T01:02:06.000Z
2022-03-12T00:24:13.000Z
Flask/flogger/author/tests.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
null
null
null
import os import unittest import pathlib from flask import session from dotenv import load_dotenv env_dir = pathlib.Path(__file__).parents[1] load_dotenv(os.path.join(env_dir, '.flaskenv')) from author.models import Author from application import db from application import create_app as create_app_base from utils.tes...
35.536842
79
0.592121
432
3,376
4.490741
0.30787
0.050515
0.049485
0.090206
0.370619
0.301546
0.262371
0.231443
0.198454
0.153608
0
0.010688
0.307168
3,376
95
80
35.536842
0.818726
0.121446
0
0.253731
0
0
0.107989
0
0
0
0
0
0.119403
1
0.089552
false
0.074627
0.134328
0.029851
0.268657
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
d90766a4be4f8580ae171bdbe85352616578f72a
795
py
Python
examples/json/json_example.py
tomekwojcik/redcache
3d353dd9e4a988ede9edc0e1222d4d3e816af05a
[ "BSD-2-Clause-FreeBSD" ]
3
2015-10-17T16:41:42.000Z
2017-03-26T22:00:34.000Z
examples/json/json_example.py
tomekwojcik/redcache
3d353dd9e4a988ede9edc0e1222d4d3e816af05a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/json/json_example.py
tomekwojcik/redcache
3d353dd9e4a988ede9edc0e1222d4d3e816af05a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """Example of using JSON to serialize cached objects.""" import json from redcache import CacheManager, get_current_connection, use_connection class JsonCacheManager(CacheManager): def before_save(self, data, **kwargs): return json.dumps(data) def after_load(self, data, **kw...
22.714286
73
0.698113
97
795
5.453608
0.443299
0.075614
0.120983
0.075614
0.090737
0
0
0
0
0
0
0.001531
0.178616
795
34
74
23.382353
0.808576
0.026415
0
0
0
0
0.094972
0.061453
0
0
0
0
0
0
null
null
0
0.105263
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d90a00af9448b41a69073375279e13693e28e615
1,435
py
Python
Kwargs/Tracklist.py
chanchanchong/PYTHON-TRACK-IN-HYPERSKILL
462fe08ff4a2b183fd45a0235ab1ec7a788bd54c
[ "MIT" ]
null
null
null
Kwargs/Tracklist.py
chanchanchong/PYTHON-TRACK-IN-HYPERSKILL
462fe08ff4a2b183fd45a0235ab1ec7a788bd54c
[ "MIT" ]
null
null
null
Kwargs/Tracklist.py
chanchanchong/PYTHON-TRACK-IN-HYPERSKILL
462fe08ff4a2b183fd45a0235ab1ec7a788bd54c
[ "MIT" ]
null
null
null
# Joe defined a dictionary listing his favorite artists, their albums, # and the song from each of the albums. It looks as follows: #tracks = {"Woodkid": {"The Golden Age": "Run Boy Run", # "On the Other Side": "Samara"}, # "Cure": {"Disintegration": "Lovesong", # "Wish":...
38.783784
103
0.628571
196
1,435
4.591837
0.454082
0.044444
0.035556
0.042222
0.291111
0.173333
0.173333
0.115556
0.115556
0.115556
0
0
0.241115
1,435
37
104
38.783784
0.826446
0.471777
0
0.125
0
0
0.242953
0
0
0
0
0
0
1
0.1875
true
0
0
0
0.1875
0.3125
0
0
0
null
0
0
0
0
0
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
d915888ee54c831d2e390cc81494c0c43151bcc5
10,968
py
Python
util/gen_swig.py
scharlton2/iriclib_v4
c5b0547ae2a2adab452664d4e34e671067d1adb3
[ "MIT" ]
null
null
null
util/gen_swig.py
scharlton2/iriclib_v4
c5b0547ae2a2adab452664d4e34e671067d1adb3
[ "MIT" ]
15
2021-07-10T20:47:34.000Z
2022-01-27T21:30:36.000Z
util/gen_swig.py
scharlton2/iriclib_v4
c5b0547ae2a2adab452664d4e34e671067d1adb3
[ "MIT" ]
2
2021-07-06T04:33:56.000Z
2021-08-30T03:50:02.000Z
import copy import os import re from gen_code_util import build_call_line TARGET_FILES_SWIG = [ 'iriclib_bc.h', 'iriclib_cc.h', 'iriclib_complex.h', 'iriclib_geo.h', 'iriclib_geoutil.h', 'iriclib_grid.h', 'iriclib_grid_solverlib.h', 'iriclib_gui_coorp.h', 'iriclib_init.h', 'iriclib_not_withbaseid....
27.627204
98
0.620806
1,578
10,968
4.073511
0.116603
0.052271
0.085563
0.046204
0.741133
0.716241
0.691973
0.657436
0.625544
0.572651
0
0.013605
0.209245
10,968
396
99
27.69697
0.727545
0.009026
0
0.554054
0
0
0.307069
0.227264
0.02027
0
0
0
0
1
0.02027
false
0
0.013514
0
0.148649
0.003378
0
0
0
null
0
0
0
0
1
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
d9169a5985dd080388f7e6317baddc6ef8736356
3,553
py
Python
phenotype/Access/Iterable.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/Access/Iterable.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/Access/Iterable.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
from phenotype.Access import ( _item_access as __get_item__, _name_access as __get_name__, __INCREMENTER__ as Incrementer, _fn_head as Head, _fn_tail as Tail, _fn_reduce as Reduction, __drop_while__, __islice__, __zip_longest__, __filter_false__, __deque__,...
29.122951
105
0.535041
365
3,553
4.583562
0.249315
0.09205
0.025105
0.016736
0.073521
0.034668
0.034668
0.034668
0.034668
0.034668
0
0.002967
0.336054
3,553
121
106
29.363636
0.706231
0
0
0.260417
0
0
0.012137
0
0
0
0
0
0
1
0.25
false
0
0.010417
0.020833
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d91f69396de9c34afa517c11ebd7d1b3a48d7088
1,535
py
Python
keras_flops/flops_calculation.py
tokusumi/keras-flops
5c130bfe91d39eea39af89346b029e70c3351999
[ "MIT" ]
29
2020-09-18T15:55:08.000Z
2022-03-01T09:32:01.000Z
keras_flops/flops_calculation.py
james19930720-Tsai/keras-flops
5c130bfe91d39eea39af89346b029e70c3351999
[ "MIT" ]
4
2020-09-02T14:05:59.000Z
2021-11-08T05:12:12.000Z
keras_flops/flops_calculation.py
james19930720-Tsai/keras-flops
5c130bfe91d39eea39af89346b029e70c3351999
[ "MIT" ]
6
2020-10-14T14:07:23.000Z
2022-03-22T21:31:26.000Z
from typing import Optional, Union import tensorflow as tf from tensorflow.python.framework.convert_to_constants import ( convert_variables_to_constants_v2_as_graph, ) from tensorflow.keras import Sequential, Model import keras_flops.flops_registory def get_flops(model: Union[Model, Sequential], batch_size: Opt...
35.697674
96
0.72443
210
1,535
5.12381
0.438095
0.041822
0.033457
0.050186
0.124535
0.124535
0.124535
0
0
0
0
0.006452
0.192182
1,535
42
97
36.547619
0.86129
0.249511
0
0
0
0
0.066726
0
0
0
0
0.02381
0
1
0.04
false
0
0.2
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
1
0
0
0
0
0
0
0
0
0
0
1
d92013351ccdcfcb75d77d3e69e0b42268ab9c9c
407
py
Python
composite/serializers.py
Skydipper/Composite
5b44e0d773331cc586a02769d21fb7603fa4027d
[ "MIT" ]
null
null
null
composite/serializers.py
Skydipper/Composite
5b44e0d773331cc586a02769d21fb7603fa4027d
[ "MIT" ]
null
null
null
composite/serializers.py
Skydipper/Composite
5b44e0d773331cc586a02769d21fb7603fa4027d
[ "MIT" ]
null
null
null
"""Serializers""" import logging def serialize_composite_output(analysis, type): """.""" return { 'id': None, 'type': type, 'attributes': { 'thumb_url': analysis.get('thumb_url', None), 'tile_url':analysis.get('tile_url', None), 'dem':analysis.get('d...
25.4375
59
0.53317
41
407
5.097561
0.487805
0.210526
0.133971
0
0
0
0
0
0
0
0
0
0.292383
407
16
60
25.4375
0.725694
0.031941
0
0
0
0
0.203125
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
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
d9287856b3c69e9141f82f909340a7d113c48f77
9,126
py
Python
mqtt-all.py
CapnIain/rpi-enviro-mqtt-iain
5f1908c930914a0ea99bb9047187cb9e78eac2b3
[ "Unlicense" ]
null
null
null
mqtt-all.py
CapnIain/rpi-enviro-mqtt-iain
5f1908c930914a0ea99bb9047187cb9e78eac2b3
[ "Unlicense" ]
null
null
null
mqtt-all.py
CapnIain/rpi-enviro-mqtt-iain
5f1908c930914a0ea99bb9047187cb9e78eac2b3
[ "Unlicense" ]
null
null
null
""" Run mqtt broker on localhost: sudo apt-get install mosquitto mosquitto-clients Example run: python3 mqtt-all.py --broker 192.168.1.164 --topic enviro """ #!/usr/bin/env python3 import argparse import ST7735 import time import math from bme280 import BME280 from pms5003 import PMS5003, ReadTimeoutError, SerialTimeo...
30.624161
141
0.638505
1,243
9,126
4.555913
0.309735
0.019424
0.010595
0.012714
0.080523
0.075225
0.043087
0.043087
0.030019
0.030019
0
0.058772
0.24863
9,126
297
142
30.727273
0.767099
0.187596
0
0.163636
0
0
0.111188
0
0
0
0
0
0
0
null
null
0
0.086364
null
null
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
1
0
0
0
0
0
0
0
0
1
d9294b7038de6296b002e80cda37a76f77f9741c
1,503
py
Python
python/image_producer_nd.py
qiyuangong/image_classification_redis
a500a818a5a0736cc99d7149c647a8ca1d699840
[ "Apache-2.0" ]
8
2019-10-05T13:02:53.000Z
2021-09-25T07:42:23.000Z
python/image_producer_nd.py
qiyuangong/image_classification_redis
a500a818a5a0736cc99d7149c647a8ca1d699840
[ "Apache-2.0" ]
2
2019-06-25T03:15:22.000Z
2019-06-28T04:57:20.000Z
python/image_producer_nd.py
qiyuangong/image_classification_redis
a500a818a5a0736cc99d7149c647a8ca1d699840
[ "Apache-2.0" ]
2
2019-06-10T07:00:57.000Z
2019-12-09T23:06:37.000Z
import redis import settings import helpers import argparse import json import uuid import time import cv2 from os import listdir from os.path import isfile, join DB = redis.StrictRedis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB) def image_enqueue(image_path): ...
31.3125
82
0.679308
220
1,503
4.486364
0.431818
0.040527
0.048632
0.038501
0.048632
0
0
0
0
0
0
0.018425
0.205589
1,503
47
83
31.978723
0.808208
0.25682
0
0
0
0
0.077687
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.4
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d936c4dd7caa02c4b95311d8178ac14c5a6124e7
222
py
Python
numpy/mathFunction/numpyMathFunction03.py
slowy07/pythonApps
22f9766291dbccd8185035745950c5ee4ebd6a3e
[ "MIT" ]
10
2020-10-09T11:05:18.000Z
2022-02-13T03:22:10.000Z
numpy/mathFunction/numpyMathFunction03.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
null
null
null
numpy/mathFunction/numpyMathFunction03.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
6
2020-11-26T12:49:43.000Z
2022-03-06T06:46:43.000Z
# sinh() function import numpy as np import math in_array = [0, math.pi / 2, np.pi / 3, np.pi] print ("Input array : \n", in_array) Sinh_Values = np.sinh(in_array) print ("\nSine Hyperbolic values : \n", Sinh_Values)
22.2
52
0.671171
38
222
3.789474
0.5
0.145833
0
0
0
0
0
0
0
0
0
0.016484
0.18018
222
10
52
22.2
0.774725
0.067568
0
0
0
0
0.218447
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
0
0
0
0
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
d93a3044da780d111dc4e688412cda200cf6663d
3,450
py
Python
ServerChatApp.py
IMaresaLI/ChatApplication
2aeaa84a5771f307815624dc3332216d2bb5ab5f
[ "MIT" ]
null
null
null
ServerChatApp.py
IMaresaLI/ChatApplication
2aeaa84a5771f307815624dc3332216d2bb5ab5f
[ "MIT" ]
null
null
null
ServerChatApp.py
IMaresaLI/ChatApplication
2aeaa84a5771f307815624dc3332216d2bb5ab5f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'e:\Programlama\Programs\chatApp\ServerChatApp.ui' # # Coding by : Maresal Programming / Batuhan Olgaç # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know wh...
51.492537
104
0.70087
364
3,450
6.563187
0.296703
0.093763
0.087903
0.090414
0.231896
0.156551
0
0
0
0
0
0.024373
0.191304
3,450
66
105
52.272727
0.8319
0.091304
0
0
1
0
0.09082
0
0
0
0
0
0
1
0.038462
false
0
0.019231
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9439c97d902fed64b2e25cd57b678c6ed686603
3,038
py
Python
app/api/validate.py
faithngetich/Buckectlist
f7503d2de93d733a8ef44a8c36d9410d40fea4e3
[ "MIT" ]
null
null
null
app/api/validate.py
faithngetich/Buckectlist
f7503d2de93d733a8ef44a8c36d9410d40fea4e3
[ "MIT" ]
1
2017-05-27T19:52:14.000Z
2017-05-29T08:52:50.000Z
app/api/validate.py
faithngetich/Buckectlist
f7503d2de93d733a8ef44a8c36d9410d40fea4e3
[ "MIT" ]
null
null
null
import re from app.models.models import BucketList, Item class Validation: '''Class for returning validation results''' def __init__(self): self.status = None self.message = "" def validate_register(json): keys = ['username','password'] validation = Validation() for field in keys...
31.645833
79
0.586899
304
3,038
5.815789
0.269737
0.144796
0.142534
0.175339
0.494344
0.352376
0.329186
0.239819
0.195701
0.195701
0
0.006873
0.329493
3,038
95
80
31.978947
0.86107
0.012508
0
0.512195
0
0
0.149967
0
0
0
0
0
0
1
0.060976
false
0.036585
0.02439
0
0.256098
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
d94568afb5265bcd798e4882136afcf62aa0a89a
653
py
Python
Competitions/Skillenza/Blume Fellows Challenge/IntouchApp Recruitment Test/Merge Candidates.py
cnm06/Competitive-Programming
94242ae458570d503b8218f37624b88cc5020d23
[ "MIT" ]
994
2017-02-28T06:13:47.000Z
2022-03-31T10:49:00.000Z
Competitions/Skillenza/Blume Fellows Challenge/IntouchApp Recruitment Test/Merge Candidates.py
Quadrified/Competitive-Programming
bccb69952cc5260fb3647b3301ddac1023dacac8
[ "MIT" ]
16
2018-01-01T02:59:55.000Z
2021-11-22T12:49:16.000Z
Competitions/Skillenza/Blume Fellows Challenge/IntouchApp Recruitment Test/Merge Candidates.py
Quadrified/Competitive-Programming
bccb69952cc5260fb3647b3301ddac1023dacac8
[ "MIT" ]
325
2017-06-15T03:32:43.000Z
2022-03-28T22:43:42.000Z
contacts = [['p1', 'e1'],['p2', 'e2'],['p2', 'e3'],['e3', 'p4'],['e2', 'p5'],['p3', 'e4', 'p6'],['e4'],['p6', 'e5']] visited = [False]*len(contacts) contacts = map(set, contacts) def dfs(node,index, temp): visited[index] = True result = node for i,item in enumerate(contacts): if not visited[i] and not result.isdi...
26.12
116
0.607963
100
653
3.95
0.43
0.037975
0.096203
0.106329
0.222785
0.162025
0.162025
0
0
0
0
0.032727
0.157734
653
24
117
27.208333
0.685455
0
0
0
0
0
0.052067
0
0
0
0
0
0
0
null
null
0
0
null
null
0.045455
0
0
0
null
0
0
0
0
0
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
d94907b6735cb7d44bb6553286bb63c43a331706
500
py
Python
backend/apps/forms/signals.py
hovedstyret/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
3
2021-11-18T09:29:14.000Z
2022-01-13T20:12:11.000Z
backend/apps/forms/signals.py
rubberdok/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
277
2022-01-17T18:16:44.000Z
2022-03-31T19:44:04.000Z
backend/apps/forms/signals.py
hovedstyret/indok-web
598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from guardian.shortcuts import assign_perm from apps.forms.models import Form @receiver(post_save, sender=Form) def handle_new_form(sender, instance: Form, created: bool, **kwargs) -> None: if created: perms = ["forms.man...
33.333333
79
0.73
68
500
5.220588
0.529412
0.056338
0
0
0
0
0
0
0
0
0
0
0.174
500
14
80
35.714286
0.859564
0
0
0
0
0
0.102
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d94ee861113a4a9d1d33a5a6c95b4f15352aea7c
3,618
py
Python
cms/views.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
cms/views.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
cms/views.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.views.generic import TemplateView # Create your views here. from cms.models import TermsConditions from cms.models import WebsiteCookiesPolicy from cms.models import WebsitePolicy from cms.models import ReplacementCancellationPolicy from cms.models import About...
25.125
78
0.584854
363
3,618
5.702479
0.179063
0.069565
0.050725
0.055072
0.393237
0.393237
0.344928
0.314976
0.192271
0.156522
0
0.002432
0.318132
3,618
143
79
25.300699
0.836644
0.209232
0
0.298507
0
0
0.083494
0.008891
0
0
0
0
0
1
0.104478
false
0
0.119403
0
0.522388
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
d94f21c9f722282bb87e18c3c8240de6eb5e5572
1,541
py
Python
tests/trac/test-issue-0069.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
123
2015-01-12T06:43:22.000Z
2022-03-20T18:06:46.000Z
tests/trac/test-issue-0069.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
103
2015-01-08T18:35:57.000Z
2022-01-18T01:44:14.000Z
tests/trac/test-issue-0069.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
54
2015-02-15T17:12:00.000Z
2022-03-07T23:02:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging if __name__ == '__main__': logging.basicConfig() _log = logging.getLogger(__name__) import pyxb.binding.generate import pyxb.utils.domutils from xml.dom import Node import os.path xsd='''<?xml version="1.0" encoding="utf-8"?> <xs:schema...
28.018182
86
0.635951
186
1,541
5.112903
0.521505
0.047319
0.041009
0.037855
0
0
0
0
0
0
0
0.013788
0.19987
1,541
54
87
28.537037
0.757502
0.040883
0
0.090909
1
0.022727
0.458616
0.061737
0
0
0
0
0.045455
1
0.022727
false
0
0.181818
0
0.227273
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
d9512b8ff932cd1aedb64fc6a26bd2d6fb696dfb
68,354
py
Python
pyradmon/args.py
will-mccarty/pyradmon
983b3562f251b7ef30ad405152e8095c34db47a5
[ "Apache-2.0" ]
null
null
null
pyradmon/args.py
will-mccarty/pyradmon
983b3562f251b7ef30ad405152e8095c34db47a5
[ "Apache-2.0" ]
2
2021-08-03T19:31:23.000Z
2021-11-22T22:16:08.000Z
pyradmon/args.py
GEOS-ESM/pyradmon
c5e2dcaaa2ebf52e6c0bed9d2d5c91e44958ca72
[ "Apache-2.0" ]
2
2019-04-29T15:33:44.000Z
2020-07-16T16:08:21.000Z
#!/usr/bin/env python # PyRadmon - Python Radiance Monitoring Tool # Copyright 2014 Albert Huang. # # 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/LICENS...
47.766597
559
0.531629
7,648
68,354
4.588389
0.094535
0.013678
0.009689
0.017696
0.511342
0.423202
0.353585
0.283597
0.248005
0.218996
0
0.009004
0.37771
68,354
1,430
560
47.8
0.815991
0.080917
0
0.239961
0
0.028404
0.445193
0.025372
0
0
0
0
0
0
null
null
0
0.01763
null
null
0.011753
0
0
0
null
0
0
0
0
0
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