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
b4c3f575779f7064a720c9bf3a692ed14d2aabe7
269
py
Python
template/mako/hello_world/hello4.py
dineshkumar2509/learning-python
e8af11ff0b396da4c3f2cfe21d14131bae4b2adb
[ "MIT" ]
86
2015-06-13T16:53:55.000Z
2022-03-24T20:56:42.000Z
template/mako/hello_world/hello4.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
9
2015-05-27T07:52:44.000Z
2022-03-29T21:52:40.000Z
template/mako/hello_world/hello4.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
124
2015-12-10T01:17:18.000Z
2021-11-08T04:03:38.000Z
#!/usr/bin/env python from mako.template import Template from mako.runtime import Context from StringIO import StringIO mytemplate = Template("hello, ${name}!") buf = StringIO() ctx = Context(buf, name="Akagi201") mytemplate.render_context(ctx) print(buf.getvalue())
22.416667
40
0.762082
36
269
5.666667
0.555556
0.078431
0
0
0
0
0
0
0
0
0
0.0125
0.107807
269
11
41
24.454545
0.8375
0.074349
0
0
0
0
0.092742
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b4c4174d32b71a89cc7e71ae24ddbce7cfd16eb1
999
py
Python
RNAPuzzles/rnapuzzles/views/resources/delete.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
null
null
null
RNAPuzzles/rnapuzzles/views/resources/delete.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
26
2019-10-08T11:11:25.000Z
2022-03-12T00:52:30.000Z
RNAPuzzles/rnapuzzles/views/resources/delete.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
1
2020-05-11T18:51:04.000Z
2020-05-11T18:51:04.000Z
from django.contrib.messages.views import SuccessMessageMixin from django.http import HttpResponseRedirect from django.urls import reverse from django.views.generic import DeleteView from guardian.mixins import PermissionRequiredMixin from rnapuzzles.models import ResourcesModel class Delete(PermissionRequiredMixin,...
28.542857
71
0.708709
108
999
6.444444
0.453704
0.057471
0.048851
0
0
0
0
0
0
0
0
0
0.208208
999
34
72
29.382353
0.879899
0
0
0
0
0
0.086086
0.032032
0
0
0
0
0
1
0.086957
false
0
0.26087
0
0.73913
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
b4c59a3b00b88238a2ffd65ec988030f66ec04d6
3,410
py
Python
related_word/wordnet.py
yu-su-ke/easily_language_processing
820d0d8faccd2d87246a2e0951868f435c6dcdfb
[ "MIT" ]
null
null
null
related_word/wordnet.py
yu-su-ke/easily_language_processing
820d0d8faccd2d87246a2e0951868f435c6dcdfb
[ "MIT" ]
4
2019-12-16T12:33:08.000Z
2022-01-13T01:56:56.000Z
related_word/wordnet.py
yu-su-ke/easily_language_processing
820d0d8faccd2d87246a2e0951868f435c6dcdfb
[ "MIT" ]
null
null
null
import re import sqlite3 import pandas as pd class SimilarWord: def __init__(self): self.connection = sqlite3.connect("./wnjpn.db") # データベース # 確認用 普段は使わない def confirm_database(self): # 含まれるテーブルの要素の確認 confirm_table = self.connection.execute("select name from sqlite_m...
36.666667
138
0.54956
379
3,410
4.746702
0.298153
0.070039
0.093385
0.120067
0.102835
0.080044
0
0
0
0
0
0.021114
0.347214
3,410
92
139
37.065217
0.787062
0.142522
0
0.071429
0
0
0.16536
0.010691
0
0
0
0
0
1
0.089286
false
0.071429
0.053571
0
0.178571
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
b4ca54a49182812283b71fedf184448c772802b4
7,474
py
Python
src/wrapper_3d.py
t47io/django-Primerize-server
232677c6798f18eee403c7da4718b727ed90b646
[ "BSD-Source-Code" ]
null
null
null
src/wrapper_3d.py
t47io/django-Primerize-server
232677c6798f18eee403c7da4718b727ed90b646
[ "BSD-Source-Code" ]
null
null
null
src/wrapper_3d.py
t47io/django-Primerize-server
232677c6798f18eee403c7da4718b727ed90b646
[ "BSD-Source-Code" ]
null
null
null
from django.http import HttpResponseRedirect, HttpResponse #, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseServerError from django.shortcuts import render from datetime import datetime import simplejson import sys import threading import time import traceback from src.helper import * from src.helper_form...
51.191781
512
0.678485
1,066
7,474
4.485929
0.197936
0.036596
0.020703
0.02844
0.379967
0.316813
0.303639
0.265788
0.236094
0.223128
0
0.02575
0.179021
7,474
145
513
51.544828
0.753585
0.014584
0
0.280992
0
0.008264
0.154191
0.041842
0
0
0
0
0
0
null
null
0
0.107438
null
null
0.033058
0
0
0
null
0
0
0
0
0
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
b4d12fb777416b8bb3b2984cc6549dc94c3a3416
1,420
py
Python
flattenList.py
Zafara1/MITx-6.00.1x
7ab0e5e188fae86685033954e774dfe07e03a639
[ "MIT" ]
null
null
null
flattenList.py
Zafara1/MITx-6.00.1x
7ab0e5e188fae86685033954e774dfe07e03a639
[ "MIT" ]
null
null
null
flattenList.py
Zafara1/MITx-6.00.1x
7ab0e5e188fae86685033954e774dfe07e03a639
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 14 19:55:42 2017 @author: Zachary """ aList = [[1,'a',['cat'],2],[[[3]],'dog'],4,5] def flatten(aList): flattenedList = [] for i in range(len(aList)): listOne = aList[i] if type(listOne) == list: for k in range...
30.869565
71
0.351408
103
1,420
4.84466
0.436893
0.190381
0.08016
0.124249
0.162325
0.162325
0
0
0
0
0
0.0288
0.559859
1,420
46
72
30.869565
0.7696
0.053521
0
0.230769
0
0
0.005418
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.076923
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b4d1ba4d14f9bef5c8fc7c174c02198790629892
478
py
Python
Text2Speech/t2s.py
MathewAaron/portal-for-competitive-exams-for-blind-students
3ad24be54830d83cda01514102e185a44686b752
[ "MIT" ]
null
null
null
Text2Speech/t2s.py
MathewAaron/portal-for-competitive-exams-for-blind-students
3ad24be54830d83cda01514102e185a44686b752
[ "MIT" ]
null
null
null
Text2Speech/t2s.py
MathewAaron/portal-for-competitive-exams-for-blind-students
3ad24be54830d83cda01514102e185a44686b752
[ "MIT" ]
null
null
null
from gtts import gTTS from time import sleep import os import pygame import sys tts=gTTS(text=str(sys.argv[1]), lang='en', slow = False) filename="audio.mp3" tts.save(filename) pygame.mixer.init() pygame.mixer.music.load("C:/Users/Master/Desktop/onlinequiz-master - Copy/audio.mp3") pygame.mixer.music.play...
25.157895
86
0.709205
75
478
4.506667
0.56
0.162722
0.142012
0
0
0
0
0
0
0
0
0.016787
0.127615
478
18
87
26.555556
0.793765
0.039749
0
0
0
0
0.163636
0.093182
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b4d4ff6f0e11df9a2de00312bb9bd46f1815c833
543
py
Python
Chapter08/qt08_animation02.py
csy1993/PythonQt
c100cd9e1327fc7731bf04c7754cafb8dd578fa5
[ "Apache-2.0" ]
null
null
null
Chapter08/qt08_animation02.py
csy1993/PythonQt
c100cd9e1327fc7731bf04c7754cafb8dd578fa5
[ "Apache-2.0" ]
null
null
null
Chapter08/qt08_animation02.py
csy1993/PythonQt
c100cd9e1327fc7731bf04c7754cafb8dd578fa5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ 【简介】 """ from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * import sys app = QApplication(sys.argv) window = QMainWindow() window.show() animation = QPropertyAnimation(window, b"geometry") animation.setDuration(10000) animation.setStartVa...
19.392857
56
0.709024
67
543
5.731343
0.58209
0.070313
0.109375
0
0
0
0
0
0
0
0
0.085288
0.13628
543
27
57
20.111111
0.733475
0.241252
0
0
0
0
0.020833
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
b4d7e1b7944ccd4df50ceddff763f1dec0c3f425
2,782
py
Python
tests/test_basic.py
henrich/sphinx-intl
c50a7dc64bdc389c8189fbd22adfbbb81e98e967
[ "BSD-2-Clause" ]
null
null
null
tests/test_basic.py
henrich/sphinx-intl
c50a7dc64bdc389c8189fbd22adfbbb81e98e967
[ "BSD-2-Clause" ]
null
null
null
tests/test_basic.py
henrich/sphinx-intl
c50a7dc64bdc389c8189fbd22adfbbb81e98e967
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ test_basic ~~~~~~~~~~ Test functions that implements pot related features. :copyright: Copyright 2015 by Takayuki SHIMIZUKAWA. :license: BSD, see LICENSE for details. """ import mock from sphinx_intl import basic def test_update_simple(temp): basic.update('locale...
36.12987
102
0.63156
391
2,782
4.329923
0.214834
0.090963
0.090372
0.116952
0.744832
0.722386
0.682812
0.591849
0.481985
0.481985
0
0.026462
0.1578
2,782
76
103
36.605263
0.696116
0.068656
0
0.3
0
0
0.329302
0.119391
0
0
0
0
0.28
1
0.12
false
0
0.04
0
0.16
0
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
b4daa3dc018a7d627e295e9fd1f453c87e0ce37d
324
py
Python
seminar/topics/recursion/class.py
lee-edu/materials
529f13aee01bfe96e3d0b4dc84e07f68b7dd3f22
[ "MIT" ]
null
null
null
seminar/topics/recursion/class.py
lee-edu/materials
529f13aee01bfe96e3d0b4dc84e07f68b7dd3f22
[ "MIT" ]
null
null
null
seminar/topics/recursion/class.py
lee-edu/materials
529f13aee01bfe96e3d0b4dc84e07f68b7dd3f22
[ "MIT" ]
null
null
null
def look(x,y): check in 4 directions # Base case When you see the E Return yes solution # Base case When you only see 1s Return no solution # Recursive When you see a 0 look(that direction) if look returned Yes solution: Return the path / there's a solution else: No path look(sx,...
18
40
0.66358
55
324
3.909091
0.618182
0.097674
0.111628
0.139535
0
0
0
0
0
0
0
0.012987
0.287037
324
18
41
18
0.917749
0.089506
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b4df7960591321ef3c5aa624ee117d1e04ca5ab9
3,074
py
Python
flow/turbulenceIntensity.py
BeneStrahm/cfdPostProcessing
093c86c4f9241e3e5c5f1647c93fa8e49e086445
[ "MIT" ]
null
null
null
flow/turbulenceIntensity.py
BeneStrahm/cfdPostProcessing
093c86c4f9241e3e5c5f1647c93fa8e49e086445
[ "MIT" ]
null
null
null
flow/turbulenceIntensity.py
BeneStrahm/cfdPostProcessing
093c86c4f9241e3e5c5f1647c93fa8e49e086445
[ "MIT" ]
1
2021-03-22T12:37:30.000Z
2021-03-22T12:37:30.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Description: Asses the Turbulence Intensity # Author: benedikt.strahm@ilek.uni-stuttgart.de # Created: 2018-12-06 # Execution: Import functions / collections (from cfdPostProcessing.flow import util...
29.84466
88
0.493819
335
3,074
4.420896
0.480597
0.040513
0.036462
0.048616
0.089129
0.089129
0.089129
0.025658
0
0
0
0.015886
0.201366
3,074
102
89
30.137255
0.587373
0.512687
0
0.04878
0
0
0.062457
0.016472
0
0
0
0
0
0
null
null
0
0.073171
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
b4e809d41577772e5b060075b0dc56581e5cd5bb
1,293
py
Python
backend/crud.py
gfoo/EcoPart-demo
d358df3187c442a0dacf455d49e274e2e9184a48
[ "Unlicense" ]
null
null
null
backend/crud.py
gfoo/EcoPart-demo
d358df3187c442a0dacf455d49e274e2e9184a48
[ "Unlicense" ]
null
null
null
backend/crud.py
gfoo/EcoPart-demo
d358df3187c442a0dacf455d49e274e2e9184a48
[ "Unlicense" ]
null
null
null
from operator import and_ from sqlalchemy import and_, func from sqlalchemy.orm import Session from models import DBEcoPartProject, DBSample def get_sample(db: Session, sample_id: int): return db.query(DBSample).filter(DBSample.id == sample_id).first() def get_samples_from_box(db: Session, north_east_lat: fl...
27.510638
130
0.651972
160
1,293
5.05
0.28125
0.037129
0.080446
0.107673
0.262376
0
0
0
0
0
0
0.007114
0.238979
1,293
46
131
28.108696
0.814024
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.151515
false
0
0.121212
0.151515
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
0
0
0
0
1
0
0
0
1
b4ea0a7da8c256dba284ad5a83148ca867d7071f
227
py
Python
tests/test1.py
elmoiv/goco
d03f1245eadd70d6dc561789db6d71b25f233828
[ "MIT" ]
17
2019-09-10T16:14:50.000Z
2020-08-13T23:07:50.000Z
tests/test1.py
elmoiv/goco
d03f1245eadd70d6dc561789db6d71b25f233828
[ "MIT" ]
null
null
null
tests/test1.py
elmoiv/goco
d03f1245eadd70d6dc561789db6d71b25f233828
[ "MIT" ]
null
null
null
from goco import Goco GoogleApi = Goco('client_secret.json') MyDrive = GoogleApi.connect(scope='drive.readonly', service_name='drive', version='v3') Files = MyDrive.files().list() print(Files.execute()) input()
18.916667
88
0.696035
28
227
5.571429
0.75
0
0
0
0
0
0
0
0
0
0
0.005155
0.145374
227
11
89
20.636364
0.798969
0
0
0
0
0
0.180556
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
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
b4ed1f9c08b3d97636868474b48c6b33ed05f66c
560
py
Python
main.py
Nukesor/ilswach-bot
2e3e9dfa8f43b07caab79f2e94686557dc808731
[ "MIT" ]
null
null
null
main.py
Nukesor/ilswach-bot
2e3e9dfa8f43b07caab79f2e94686557dc808731
[ "MIT" ]
null
null
null
main.py
Nukesor/ilswach-bot
2e3e9dfa8f43b07caab79f2e94686557dc808731
[ "MIT" ]
null
null
null
#!/bin/env python """Start the bot.""" from ilswbot.ilswbot import updater from ilswbot.config import config if config['webhook']['enabled']: updater.start_webhook( listen='127.0.0.1', port=config['webhook']['port'], url_path=config['webhook']['token'], ) domain = config['webhook'...
26.666667
83
0.610714
66
560
5.106061
0.484848
0.231454
0.106825
0
0
0
0
0
0
0
0
0.013483
0.205357
560
20
84
28
0.74382
0.055357
0
0
0
0
0.198853
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
b4f0a699dd0dbdfb0513864d7cc09114a160afc4
307
py
Python
modules/log.py
bayu2309/line-chatbot-boilerplate
9322a08bec0a0516b93131d35664b734d197db6a
[ "MIT" ]
38
2018-03-18T14:25:20.000Z
2022-02-01T03:48:21.000Z
modules/log.py
bayu2309/line-chatbot-boilerplate
9322a08bec0a0516b93131d35664b734d197db6a
[ "MIT" ]
2
2021-06-25T12:57:32.000Z
2021-06-25T12:57:32.000Z
modules/log.py
bayu2309/line-chatbot-boilerplate
9322a08bec0a0516b93131d35664b734d197db6a
[ "MIT" ]
13
2018-03-18T14:25:22.000Z
2021-06-25T03:33:03.000Z
from linebot.models import TextSendMessage from lib import StandardClient from model import Log client = StandardClient(__name__) @client.on_command() def action_logging(): """Save message to MongoDB """ message = client.event.message Log(message_id=message.id, text=message.text).save()
21.928571
56
0.749186
39
307
5.717949
0.589744
0.080717
0
0
0
0
0
0
0
0
0
0
0.153094
307
13
57
23.615385
0.857692
0.074919
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b4f270595fd82a4b68633b94ec20565045fc3fbb
1,292
py
Python
src/pypendency/exceptions.py
Feverup/pypendency
91965de881d76769292f2e9234f2d1ab47d0f39a
[ "MIT" ]
6
2020-05-13T17:35:16.000Z
2021-10-05T19:00:56.000Z
src/pypendency/exceptions.py
Feverup/pypendency
91965de881d76769292f2e9234f2d1ab47d0f39a
[ "MIT" ]
3
2020-09-25T04:50:01.000Z
2021-06-25T15:35:02.000Z
src/pypendency/exceptions.py
Feverup/pypendency
91965de881d76769292f2e9234f2d1ab47d0f39a
[ "MIT" ]
null
null
null
class ContainerAlreadyResolved(Exception): def __init__(self): super().__init__("Container already resolved can't be resolved again") class ForbiddenChangeOnResolvedContainer(Exception): def __init__(self): super().__init__("Container can't be modified once resolved") class ServiceAlreadyDef...
33.128205
91
0.70356
138
1,292
6.152174
0.311594
0.084806
0.113074
0.141343
0.393404
0.3298
0.3298
0.240283
0.240283
0.240283
0
0
0.213622
1,292
38
92
34
0.83563
0
0
0.321429
0
0
0.274768
0.017028
0
0
0
0
0
1
0.214286
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b4f3b5881af6aea0e6bad5a49a52818f89f57e95
1,032
py
Python
atmosphy/__init__.py
wkerzendorf/atmosphy
3a83013dfd740fd91df5ef24aa8a6c0e368e04de
[ "BSD-3-Clause" ]
null
null
null
atmosphy/__init__.py
wkerzendorf/atmosphy
3a83013dfd740fd91df5ef24aa8a6c0e368e04de
[ "BSD-3-Clause" ]
null
null
null
atmosphy/__init__.py
wkerzendorf/atmosphy
3a83013dfd740fd91df5ef24aa8a6c0e368e04de
[ "BSD-3-Clause" ]
1
2021-04-08T20:50:24.000Z
2021-04-08T20:50:24.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This is an Astropy affiliated package. """ # Affiliated packages may add whatever they like to this file, but # should keep this content at the top. # ---------------------------------------------------------------------------- from ._astropy_init im...
31.272727
89
0.628876
119
1,032
5.403361
0.563025
0.07465
0.046656
0.034215
0.167963
0.115086
0
0
0
0
0
0.006623
0.122093
1,032
32
90
32.25
0.703091
0.427326
0
0
0
0
0.097222
0
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
b4f6dba030a1e1a3c42b58ac0f7dd305d38f31ac
3,850
py
Python
illinikey/illinikey.py
Evidlo/illinikey
ed8ec1c61e20394ed443c26c6331851aff026f38
[ "WTFPL" ]
1
2019-06-17T19:35:43.000Z
2019-06-17T19:35:43.000Z
illinikey/illinikey.py
Evidlo/illinikey
ed8ec1c61e20394ed443c26c6331851aff026f38
[ "WTFPL" ]
null
null
null
illinikey/illinikey.py
Evidlo/illinikey
ed8ec1c61e20394ed443c26c6331851aff026f38
[ "WTFPL" ]
null
null
null
import base64 import json import os import sys import requests import pyotp import re CONFIG_PATH = os.path.expanduser('~/.cache/illinikey.json') COUNTER_PATH = os.path.expanduser('~/.cache/illinikey_counter.json') __license__ = "WTFPL" __author__ = "Evan Widloski, Elnard Utiushev" def getActivationData(code): ...
23.913043
79
0.619221
461
3,850
5.095445
0.45987
0.017029
0.008514
0.017029
0.062154
0.062154
0.019583
0.019583
0
0
0
0.01492
0.251429
3,850
160
80
24.0625
0.800139
0
0
0.058824
0
0
0.224279
0.04862
0
0
0
0
0.029412
1
0.088235
false
0.058824
0.068627
0
0.215686
0.098039
0
0
0
null
0
0
0
0
0
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
b4fb3a0c250a8ffdeda5294cfd8d92c7b6aad6c1
3,095
py
Python
opencxr/utils/rotate_flip_invert.py
DIAGNijmegen/OpenCXR
a66d0795f11f9436ed8b930c8431e71250d13260
[ "Apache-2.0" ]
10
2021-11-08T07:42:51.000Z
2022-01-27T15:49:55.000Z
opencxr/utils/rotate_flip_invert.py
DIAGNijmegen/OpenCXR
a66d0795f11f9436ed8b930c8431e71250d13260
[ "Apache-2.0" ]
null
null
null
opencxr/utils/rotate_flip_invert.py
DIAGNijmegen/OpenCXR
a66d0795f11f9436ed8b930c8431e71250d13260
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 21 11:28:21 2019 @author: keelin """ from numpy import fliplr, flipud from opencxr.utils.resize_rescale import rescale_to_min_max from skimage import util from skimage.transform import rotate def invert_grayscale(np_array_in, preserve_dtype=True): """ A method ...
34.388889
88
0.710178
476
3,095
4.432773
0.203782
0.1109
0.068246
0.035545
0.671564
0.65545
0.62654
0.62654
0.62654
0.609953
0
0.005469
0.231987
3,095
89
89
34.775281
0.882204
0.554766
0
0.129032
0
0
0
0
0
0
0
0
0
1
0.129032
false
0
0.129032
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b4fe159b4dd58cc6a5301970283fe2fc177f93c5
521
py
Python
hypha/apply/projects/migrations/0042_delete_project_approval_form.py
slifty/hypha
93313933c26589858beb9a861e33431658cd3b24
[ "BSD-3-Clause" ]
20
2021-04-08T16:38:49.000Z
2022-02-09T20:05:57.000Z
hypha/apply/projects/migrations/0042_delete_project_approval_form.py
OpenTechFund/WebApp
d6e2bb21a39d1fa7566cb60fe19f372dabfa5f0f
[ "BSD-3-Clause" ]
1,098
2017-12-15T11:23:03.000Z
2020-01-24T07:58:07.000Z
hypha/apply/projects/migrations/0042_delete_project_approval_form.py
OpenTechFund/WebApp
d6e2bb21a39d1fa7566cb60fe19f372dabfa5f0f
[ "BSD-3-Clause" ]
10
2021-02-23T12:00:26.000Z
2022-03-24T13:03:37.000Z
# Generated by Django 2.2.24 on 2021-11-22 07:11 from django.db import migrations def migrate_label_and_relations(apps, schema_editor): ProjectApprovalForm = apps.get_model("application_projects", "ProjectApprovalForm") ProjectApprovalForm.objects.all().delete() class Migration(migrations.Migration): ...
26.05
87
0.746641
57
521
6.596491
0.701754
0.06383
0.079787
0.12766
0
0
0
0
0
0
0
0.045455
0.15547
521
19
88
27.421053
0.809091
0.088292
0
0
1
0
0.186047
0.061311
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b4ff4ba81a394513e7f6a3b3a0b19a7e55f2e801
2,320
py
Python
RestPy/SampleScripts/connectToExistingConfig.py
ANISH-GOTTAPU/IxNetwork
b18ead9a31dcc050985ca9238990749bdf6c2277
[ "MIT" ]
null
null
null
RestPy/SampleScripts/connectToExistingConfig.py
ANISH-GOTTAPU/IxNetwork
b18ead9a31dcc050985ca9238990749bdf6c2277
[ "MIT" ]
null
null
null
RestPy/SampleScripts/connectToExistingConfig.py
ANISH-GOTTAPU/IxNetwork
b18ead9a31dcc050985ca9238990749bdf6c2277
[ "MIT" ]
1
2021-02-11T21:14:50.000Z
2021-02-11T21:14:50.000Z
""" connectToExistingConfig.py Connecting to an existing session. - For Windows, the default session ID=1. - For Windows Connection Mgr, session ID=? - For Linux, there are two ways to login: 1> Login with username/password 2> Use the API-Key instead. - Then provide ...
30.526316
103
0.707759
296
2,320
5.506757
0.462838
0.027607
0.016564
0.057055
0.11227
0.068712
0
0
0
0
0
0.030022
0.210345
2,320
75
104
30.933333
0.859716
0.564655
0
0
0
0
0.116162
0
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.181818
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
0
0
1
0
0
0
0
0
1
370315f9f6180109ca58016c533d9e1c79b8775f
2,350
py
Python
anyconfig/backend/yaml_.py
kamilchm/python-anyconfig
bb74df460e0d1823048cbb3e09ce882e519167c5
[ "MIT" ]
null
null
null
anyconfig/backend/yaml_.py
kamilchm/python-anyconfig
bb74df460e0d1823048cbb3e09ce882e519167c5
[ "MIT" ]
null
null
null
anyconfig/backend/yaml_.py
kamilchm/python-anyconfig
bb74df460e0d1823048cbb3e09ce882e519167c5
[ "MIT" ]
null
null
null
# # Copyright (C) 2011 - 2013 Satoru SATOH <ssato @ redhat.com> # License: MIT # from anyconfig.globals import LOGGER as logging import anyconfig.backend.base as Base SUPPORTED = False try: import yaml SUPPORTED = True except ImportError: logging.warn("YAML module is not available. Disabled its support.")...
28.658537
77
0.614894
289
2,350
4.868512
0.346021
0.049751
0.034115
0.055437
0.379531
0.325515
0.325515
0.325515
0.241649
0.15494
0
0.00577
0.262553
2,350
81
78
29.012346
0.806117
0.231064
0
0.227273
0
0
0.096736
0
0
0
0
0
0
1
0.159091
false
0
0.090909
0.022727
0.568182
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
3707a2281bf7788d7fe806185e390007c993bda0
622
py
Python
Logistic Regression Multiclass Classification/main.py
Shubbair/machine-learning
93292911dd9fa526106b355e7c220153af263535
[ "MIT" ]
null
null
null
Logistic Regression Multiclass Classification/main.py
Shubbair/machine-learning
93292911dd9fa526106b355e7c220153af263535
[ "MIT" ]
null
null
null
Logistic Regression Multiclass Classification/main.py
Shubbair/machine-learning
93292911dd9fa526106b355e7c220153af263535
[ "MIT" ]
null
null
null
""" *** Hussain Salih Mahdi *** _________Shubbair__________ TODO Multiclass Logistic Regression with Iris Flowers dataset """ from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split import seaborn as sn data = sn.load_dataset("iris") # this dir() to show the con...
21.448276
72
0.76045
93
622
4.655914
0.516129
0.034642
0.064665
0
0
0
0
0
0
0
0
0.003697
0.130225
622
28
73
22.214286
0.796673
0.276527
0
0
0
0
0.114155
0
0
0
0
0.035714
0
1
0
false
0
0.272727
0
0.272727
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
370a4daa3bde2dc6cd99398aed6689c5803a9df8
246
py
Python
hooks/post_gen_project.py
davehadley/monorepo-python
0df9e6aa3bea449c69ecdf9c980bca56a63e66a9
[ "MIT" ]
1
2021-08-25T14:38:35.000Z
2021-08-25T14:38:35.000Z
hooks/post_gen_project.py
davehadley/monorepo-python
0df9e6aa3bea449c69ecdf9c980bca56a63e66a9
[ "MIT" ]
4
2021-09-15T19:29:47.000Z
2022-02-21T18:25:23.000Z
hooks/post_gen_project.py
davehadley/monorepo-python
0df9e6aa3bea449c69ecdf9c980bca56a63e66a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pathlib import Path def _main(): directory = Path.cwd().resolve() if "{{ cookiecutter.use_conda }}" != "y": (directory / "environment.yml").unlink() return if __name__ == "__main__": _main()
17.571429
48
0.605691
28
246
4.928571
0.821429
0
0
0
0
0
0
0
0
0
0
0
0.219512
246
13
49
18.923077
0.71875
0.081301
0
0
0
0
0.231111
0.097778
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
370ee8ec18d663b586d8afa0375970210cf143e3
303
py
Python
config.py
Evergreenies/alembic-sqlalchemy-example
3fa0d4fd1b770eb499e10d9466ac756180b9f6f2
[ "Apache-2.0" ]
1
2022-01-09T13:37:34.000Z
2022-01-09T13:37:34.000Z
config.py
Evergreenies/alembic-sqlalchemy-example
3fa0d4fd1b770eb499e10d9466ac756180b9f6f2
[ "Apache-2.0" ]
null
null
null
config.py
Evergreenies/alembic-sqlalchemy-example
3fa0d4fd1b770eb499e10d9466ac756180b9f6f2
[ "Apache-2.0" ]
null
null
null
import os # Database configurations username = os.getenv("PGUSER", "postgres") password = os.getenv("PGPASSWORD", "root") host = os.getenv("PGHOST", "localhost") port = os.getenv("PGPORT", "5432") database = os.getenv("BID_DB_NAME", "bidding_db") connection_timeout = 10 database_engine = "postgresql"
27.545455
49
0.729373
38
303
5.684211
0.684211
0.185185
0
0
0
0
0
0
0
0
0
0.02214
0.105611
303
10
50
30.3
0.774908
0.075908
0
0
0
0
0.302158
0
0
0
0
0
0
1
0
false
0.125
0.125
0
0.125
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
371101dff1606d461fd984a8897ad7870f5e05fe
954
py
Python
callgraph/ast_tree/helpers.py
burlog/py-callgraph
85250f17d6b3a8a7c5fe4cf46599195e9a7921bc
[ "MIT" ]
null
null
null
callgraph/ast_tree/helpers.py
burlog/py-callgraph
85250f17d6b3a8a7c5fe4cf46599195e9a7921bc
[ "MIT" ]
null
null
null
callgraph/ast_tree/helpers.py
burlog/py-callgraph
85250f17d6b3a8a7c5fe4cf46599195e9a7921bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # LICENCE MIT # # DESCRIPTION Callgraph helpers for ast nodes. # # AUTHOR Michal Bukovsky <michal.bukovsky@trilogic.cz> # class VariablesScope(object): def __init__(self, ctx): self.ctx, self.var_names = ctx, ctx.var_names.copy() def __enter__(self): re...
25.783784
74
0.66457
123
954
4.869919
0.422764
0.1202
0.0601
0.050083
0.155259
0.113523
0.113523
0.113523
0
0
0
0.006702
0.218029
954
36
75
26.5
0.796247
0.184486
0
0
0
0
0.045872
0
0
0
0
0
0
1
0.352941
false
0
0
0.058824
0.647059
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
3713fdc6c54bb47a92d8b38bdcb93a30eb56c0b6
6,646
py
Python
fireant/tests/slicer/widgets/test_csv.py
vladaspasic/fireant
2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334
[ "Apache-2.0" ]
null
null
null
fireant/tests/slicer/widgets/test_csv.py
vladaspasic/fireant
2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334
[ "Apache-2.0" ]
null
null
null
fireant/tests/slicer/widgets/test_csv.py
vladaspasic/fireant
2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import pandas as pd from fireant.slicer.widgets import CSV from fireant.tests.slicer.mocks import ( CumSum, ElectionOverElection, cat_dim_df, cont_cat_dim_df, cont_dim_df, cont_dim_operation_df, cont_uni_dim_df, cont_uni_dim_ref_df, multi_metric_df, ...
36.718232
117
0.627144
753
6,646
5.289509
0.118194
0.030128
0.026111
0.081597
0.747176
0.709264
0.641727
0.585488
0.513683
0.47527
0
0.000393
0.233975
6,646
180
118
36.922222
0.781968
0
0
0.407407
0
0
0.066205
0
0
0
0
0
0.096296
1
0.096296
false
0
0.044444
0
0.155556
0
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
37155fbda694d75f8afe612cdc5d09f6e3a7d3ab
1,025
py
Python
airflow_server/dags/cbs.py
carmelp16/anyway-etl
5f9073be25212740f2e95e28c5b52cfc1ca03c0b
[ "MIT" ]
null
null
null
airflow_server/dags/cbs.py
carmelp16/anyway-etl
5f9073be25212740f2e95e28c5b52cfc1ca03c0b
[ "MIT" ]
null
null
null
airflow_server/dags/cbs.py
carmelp16/anyway-etl
5f9073be25212740f2e95e28c5b52cfc1ca03c0b
[ "MIT" ]
null
null
null
from airflow import DAG from airflow.utils.dates import days_ago from anyway_etl_airflow.operators.cli_bash_operator import CliBashOperator dag_kwargs = dict( default_args={ 'owner': 'airflow', }, schedule_interval='@daily', catchup=False, start_date=days_ago(2), ) with DAG('cbs', **dag...
33.064516
98
0.686829
127
1,025
5.401575
0.425197
0.104956
0.122449
0.236152
0.236152
0
0
0
0
0
0
0.001214
0.196098
1,025
30
99
34.166667
0.831311
0.112195
0
0
0
0
0.316428
0
0
0
0
0
0
1
0
false
0
0.217391
0
0.217391
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
371f2956156bc9259c4ec2670b6205837bc9a5eb
2,834
py
Python
fluentcheck/tests/tests_check/test_sequences.py
jstoebel/fluentcheck
9258dab4f46776b5df50528f5028ce2d11a443c5
[ "MIT" ]
83
2018-05-31T13:21:06.000Z
2022-03-20T14:27:49.000Z
fluentcheck/tests/tests_check/test_sequences.py
jstoebel/fluentcheck
9258dab4f46776b5df50528f5028ce2d11a443c5
[ "MIT" ]
20
2019-02-10T15:07:44.000Z
2021-04-02T13:18:52.000Z
fluentcheck/tests/tests_check/test_sequences.py
jstoebel/fluentcheck
9258dab4f46776b5df50528f5028ce2d11a443c5
[ "MIT" ]
11
2019-02-16T21:33:11.000Z
2022-03-25T03:39:52.000Z
import unittest from fluentcheck.classes import Check from fluentcheck.exceptions import CheckError class TestSequencesAssertions(unittest.TestCase): def test_is_empty(self): res = Check('').is_empty() self.assertIsInstance(res, Check) res2 = Check([]).is_empty() self.assertIsInsta...
33.738095
59
0.597389
344
2,834
4.767442
0.136628
0.102439
0.154268
0.187805
0.621341
0.530488
0.487195
0.370732
0.323171
0.205488
0
0.032443
0.260409
2,834
83
60
34.144578
0.75
0
0
0.366197
0
0
0.004942
0
0
0
0
0
0.394366
1
0.140845
false
0
0.042254
0
0.197183
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
371fefcbfea2b136f5b80ac86b1384875cd9dfb4
1,110
py
Python
mobile_pos/tests.py
LuchaComics/comicscantina-django
78e630000fb1e1f6299f80655c8f57a496236ab1
[ "BSD-2-Clause" ]
null
null
null
mobile_pos/tests.py
LuchaComics/comicscantina-django
78e630000fb1e1f6299f80655c8f57a496236ab1
[ "BSD-2-Clause" ]
5
2021-03-19T02:58:32.000Z
2022-03-11T23:57:30.000Z
mobile_pos/tests.py
lendierickx/comics-django
3f5c6e85c89ff157dbf67179ea3b9007d7de446c
[ "BSD-2-Clause" ]
null
null
null
import json from django.core.urlresolvers import resolve from django.http import HttpRequest from django.http import QueryDict from django.test import TestCase from django.test import Client from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth...
28.461538
59
0.717117
137
1,110
5.635037
0.408759
0.103627
0.066062
0.081606
0
0
0
0
0
0
0
0.003386
0.201802
1,110
38
60
29.210526
0.867946
0
0
0.066667
0
0
0.04955
0
0
0
0
0
0.133333
1
0.133333
false
0.133333
0.3
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
1
0
0
0
0
0
1
372048499f7820583f74b8ee72f8a455d7c6af60
5,196
py
Python
tests/bytes_ack_nack/ack_com_mngr.py
justengel/ipc_mngr
3883857e701600105cba93473dd7731ff55d1bad
[ "MIT" ]
null
null
null
tests/bytes_ack_nack/ack_com_mngr.py
justengel/ipc_mngr
3883857e701600105cba93473dd7731ff55d1bad
[ "MIT" ]
null
null
null
tests/bytes_ack_nack/ack_com_mngr.py
justengel/ipc_mngr
3883857e701600105cba93473dd7731ff55d1bad
[ "MIT" ]
null
null
null
"""This module is meant for message passing using bytes instead of pickling.""" import socket from ipc_mngr.com_mngr import IPCError, Listener, Client from ipc_mngr.cmd_parser import CommandParser, CommandInterface __all__ = ['ACK', 'NACK', 'AckListener', 'AckClient', 'AckListenerMixin', 'AckClientMixin'] @CommandP...
30.385965
120
0.585643
613
5,196
4.862969
0.270799
0.018786
0.014089
0.015431
0.1684
0.135525
0.135525
0.135525
0.135525
0.111372
0
0.003681
0.320246
5,196
170
121
30.564706
0.840317
0.305812
0
0.298969
0
0
0.052585
0
0
0
0.00235
0
0
1
0.14433
false
0.051546
0.030928
0.020619
0.329897
0.020619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
37206955316e5562d4293cc75e5eee8cda82d9d3
1,759
py
Python
hummingbot/core/web_assistant/connections/data_types.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
5
2021-06-24T11:21:32.000Z
2022-03-07T11:17:49.000Z
hummingbot/core/web_assistant/connections/data_types.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
17
2022-01-28T14:19:30.000Z
2022-03-31T08:54:28.000Z
hummingbot/core/web_assistant/connections/data_types.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
2
2021-12-24T14:58:00.000Z
2022-03-28T09:16:28.000Z
from dataclasses import dataclass from enum import Enum from typing import Any, Mapping, Optional import aiohttp class RESTMethod(Enum): GET = "GET" POST = "POST" PUT = "PUT" DELETE = "DELETE" def __str__(self): obj_str = repr(self) return obj_str def __repr__(self): ...
21.716049
67
0.65776
207
1,759
5.357488
0.256039
0.121731
0.13706
0.075744
0.148783
0.072137
0.072137
0
0
0
0
0
0.250711
1,759
80
68
21.9875
0.841426
0
0
0.183333
0
0
0.009096
0
0
0
0
0
0
1
0.116667
false
0
0.066667
0.016667
0.7
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
3721eb2600a279cdaaf10c70cadad047d5cb54a1
2,781
py
Python
osc_models.py
joshinils/upload-scripts
e7aa25ef7498f9269ebdf38a8fb9e9d1fa6b5210
[ "MIT" ]
12
2020-11-26T16:05:29.000Z
2022-03-27T02:45:59.000Z
osc_models.py
joshinils/upload-scripts
e7aa25ef7498f9269ebdf38a8fb9e9d1fa6b5210
[ "MIT" ]
26
2020-12-03T21:29:08.000Z
2022-03-14T12:07:12.000Z
osc_models.py
joshinils/upload-scripts
e7aa25ef7498f9269ebdf38a8fb9e9d1fa6b5210
[ "MIT" ]
8
2021-01-28T18:45:14.000Z
2022-03-27T19:35:11.000Z
"""osc_models module contains all the application level models""" from typing import Optional class Sequence: """Sequence is a model class containing a list of visual items""" def __init__(self): self.path: str = "" self.online_id: str = "" self.progress: [str] = [] self.visua...
30.228261
73
0.602661
333
2,781
4.825826
0.222222
0.05476
0.080896
0.034848
0.382078
0.313006
0.285625
0.266335
0.200373
0.116988
0
0
0.296296
2,781
91
74
30.56044
0.821155
0.140956
0
0.3125
0
0
0
0
0
0
0
0
0
1
0.203125
false
0.015625
0.015625
0.0625
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
3722ea11db53ae4b39c1f46fb09a0131bcb904cf
661
py
Python
backend/jobs/migrations/0003_auto_20211031_1719.py
hibare/Moni
83f63205c0b348d3c1bc05208122779b8fe1d117
[ "MIT" ]
1
2020-06-02T09:53:01.000Z
2020-06-02T09:53:01.000Z
backend/jobs/migrations/0003_auto_20211031_1719.py
hibare/Moni
83f63205c0b348d3c1bc05208122779b8fe1d117
[ "MIT" ]
78
2021-05-18T11:29:33.000Z
2022-03-28T05:21:45.000Z
backend/jobs/migrations/0003_auto_20211031_1719.py
hibare/Moni
83f63205c0b348d3c1bc05208122779b8fe1d117
[ "MIT" ]
2
2019-12-13T04:51:12.000Z
2021-03-26T18:40:40.000Z
# Generated by Django 3.2.7 on 2021-10-31 17:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notifiers', '0003_notifiers_title'), ('jobs', '0002_alter_jobs_notifiers'), ] operations = [ migrations.AlterField( mode...
26.44
128
0.600605
68
661
5.676471
0.617647
0.062176
0.129534
0.150259
0.19171
0.19171
0
0
0
0
0
0.052083
0.273828
661
24
129
27.541667
0.752083
0.068079
0
0.333333
1
0
0.190554
0.040717
0
0
0
0
0
1
0
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
37236707e4196ed4750eb26eff310a3db4d5dda3
219
py
Python
plugins/hanlp_demo/hanlp_demo/en/demo_amr.py
yatwql/HanLP
584ce7e5ed1b8f2209e14f32c44a55bb5a822e31
[ "Apache-2.0" ]
3
2022-03-07T08:33:16.000Z
2022-03-07T08:38:08.000Z
plugins/hanlp_demo/hanlp_demo/en/demo_amr.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
null
null
null
plugins/hanlp_demo/hanlp_demo/en/demo_amr.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2022-01-25 19:09 import hanlp amr_parser = hanlp.load(hanlp.pretrained.amr.AMR3_SEQ2SEQ_BART_LARGE) amr = amr_parser('The boy wants the girl to believe him.') print(amr)
24.333333
69
0.730594
37
219
4.189189
0.783784
0.116129
0
0
0
0
0
0
0
0
0
0.078534
0.127854
219
8
70
27.375
0.732984
0.26484
0
0
0
0
0.242038
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3728608ed23e9e0a8a3b47bba0a7f5fd01d72f27
615
py
Python
api/utils/general_utils.py
MarcDonald/mtg-deck-builder
bfd01379e9bb3726f860921e223c5d1bc6998866
[ "MIT" ]
null
null
null
api/utils/general_utils.py
MarcDonald/mtg-deck-builder
bfd01379e9bb3726f860921e223c5d1bc6998866
[ "MIT" ]
null
null
null
api/utils/general_utils.py
MarcDonald/mtg-deck-builder
bfd01379e9bb3726f860921e223c5d1bc6998866
[ "MIT" ]
null
null
null
from bson import ObjectId from utils.exceptions import InvalidIdError def validate_id(id_to_check, name): if not ObjectId.is_valid(id_to_check): raise InvalidIdError("{} is not valid".format(name)) def stringify_id(item): item_id = str(item['_id']) del item['_id'] item['id'] = item_id def...
23.653846
60
0.713821
99
615
4.10101
0.30303
0.147783
0.066502
0.064039
0.128079
0
0
0
0
0
0
0
0.177236
615
25
61
24.6
0.802372
0
0
0
0
0
0.037398
0
0
0
0
0
0
1
0.235294
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
372e2baa1597595efbaa62f2fa7253dc540e1744
751
py
Python
spikeinterface/toolkit/qualitymetrics/quality_metric_list.py
khl02007/spikeinterface
a29739a2ecc1d27af0fdb7adfed895aa9fdd0be4
[ "MIT" ]
116
2019-07-12T14:33:43.000Z
2022-03-29T01:10:00.000Z
spikeinterface/toolkit/qualitymetrics/quality_metric_list.py
khl02007/spikeinterface
a29739a2ecc1d27af0fdb7adfed895aa9fdd0be4
[ "MIT" ]
424
2019-07-15T13:29:34.000Z
2022-03-30T13:30:45.000Z
spikeinterface/toolkit/qualitymetrics/quality_metric_list.py
khl02007/spikeinterface
a29739a2ecc1d27af0fdb7adfed895aa9fdd0be4
[ "MIT" ]
60
2019-08-26T11:59:07.000Z
2022-03-24T20:05:38.000Z
from .misc_metrics import ( compute_num_spikes, compute_firing_rate, compute_presence_ratio, compute_snrs, compute_isi_violations, compute_amplitudes_cutoff, ) from .pca_metrics import calculate_pc_metrics, _possible_pc_metric_names # based on PCA # "isolation_distance", "l_ratio", "d_prime", ...
23.46875
77
0.747004
94
751
5.425532
0.531915
0.052941
0.062745
0
0
0
0
0
0
0
0
0
0.150466
751
31
78
24.225806
0.799373
0.263648
0
0
0
0
0.123389
0
0
0
0
0.032258
0
1
0
false
0
0.117647
0
0.117647
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
372e55eaf815d4d7b5529ff300cac379e4f6a0a7
1,541
py
Python
activity/migrations/0001_initial.py
intherenzone/CRM
d0f3cffed01e5fddfc39c2281b26b2f376b71152
[ "MIT" ]
2
2018-02-15T15:33:00.000Z
2018-02-15T16:29:12.000Z
activity/migrations/0001_initial.py
intherenzone/CRM
d0f3cffed01e5fddfc39c2281b26b2f376b71152
[ "MIT" ]
1
2018-08-31T08:54:22.000Z
2018-08-31T08:54:22.000Z
activity/migrations/0001_initial.py
intherenzone/CRM
d0f3cffed01e5fddfc39c2281b26b2f376b71152
[ "MIT" ]
12
2017-11-02T22:32:32.000Z
2018-04-12T05:13:25.000Z
# Generated by Django 2.0.2 on 2018-03-23 19:46 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ ...
49.709677
258
0.616483
162
1,541
5.728395
0.469136
0.071121
0.038793
0.051724
0.184267
0.117457
0.117457
0.084052
0
0
0
0.022727
0.229072
1,541
30
259
51.366667
0.758418
0.029202
0
0
1
0
0.194672
0.01571
0
0
0
0
0
1
0
false
0
0.086957
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
373236f6bef3fe250e87b92d220f5bb76f67ff1e
12,778
py
Python
src/redhat_support_tool/plugins/search.py
karmab/redhat-support-tool
fc03adffe8aea4d6b14436dece14a06b4f491221
[ "Apache-2.0" ]
3
2018-04-04T23:09:13.000Z
2020-10-15T11:09:18.000Z
src/redhat_support_tool/plugins/search.py
redhataccess/redhat-support-tool
fc03adffe8aea4d6b14436dece14a06b4f491221
[ "Apache-2.0" ]
null
null
null
src/redhat_support_tool/plugins/search.py
redhataccess/redhat-support-tool
fc03adffe8aea4d6b14436dece14a06b4f491221
[ "Apache-2.0" ]
3
2015-05-14T09:02:32.000Z
2021-08-05T19:43:27.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2012 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
39.316923
79
0.546486
1,387
12,778
4.876712
0.286229
0.010645
0.025133
0.024837
0.178593
0.130396
0.082791
0.06919
0.038587
0.018628
0
0.009235
0.364455
12,778
325
80
39.316923
0.823667
0.118876
0
0.231111
0
0
0.165564
0.007286
0
0
0
0.003077
0
0
null
null
0
0.066667
null
null
0.048889
0
0
0
null
0
0
0
0
0
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
2e9452c5666c3695e90d4c1ce08d51f1aa5ae5e3
2,070
py
Python
Python/Design_Hit_Counter.py
treethree/LeetCode
4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761
[ "Unlicense" ]
null
null
null
Python/Design_Hit_Counter.py
treethree/LeetCode
4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761
[ "Unlicense" ]
null
null
null
Python/Design_Hit_Counter.py
treethree/LeetCode
4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761
[ "Unlicense" ]
null
null
null
# Design a hit counter which counts the number of hits received in the past 5 minutes. # # Each function accepts a timestamp parameter (in seconds granularity) and you may assume that calls are being made to the system in chronological order (ie, the timestamp is monotonically increasing). You may assume that the earli...
29.15493
257
0.633333
281
2,070
4.647687
0.384342
0.05513
0.042879
0.034456
0.212864
0.113323
0.113323
0.113323
0.113323
0.113323
0
0.03127
0.258454
2,070
70
258
29.571429
0.819544
0.657971
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0
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
1
0
0
0
0
0
0
0
1
2e95dc3bd1a819d0c092182ab41c57edca63bbbb
571
py
Python
43-Latihan Membuat Program Untuk Menampilkan Belah Ketupat/Script.py
dikyindrah/Python-Pemrograman-Dasar
0dbac8b28a47e67015abcc3656c309cea274f87b
[ "MIT" ]
null
null
null
43-Latihan Membuat Program Untuk Menampilkan Belah Ketupat/Script.py
dikyindrah/Python-Pemrograman-Dasar
0dbac8b28a47e67015abcc3656c309cea274f87b
[ "MIT" ]
null
null
null
43-Latihan Membuat Program Untuk Menampilkan Belah Ketupat/Script.py
dikyindrah/Python-Pemrograman-Dasar
0dbac8b28a47e67015abcc3656c309cea274f87b
[ "MIT" ]
null
null
null
# Program untuk menampilkan belah ketupat print('\n==========Belah Ketupat==========\n') obj_1 = 1 for row_1 in range(6, 0, -1): for col_1 in range(row_1): print(' ', end='') for print_obj_1 in range(obj_1): print('#', end='') obj_1+=2 if row_1 == 1: obj_2 = 9 print('')...
25.954545
46
0.458844
84
571
2.916667
0.238095
0.171429
0.097959
0.130612
0.155102
0
0
0
0
0
0
0.07337
0.355517
571
22
47
25.954545
0.592391
0.068301
0
0.368421
0
0
0.077213
0
0
0
0
0
0
1
0
false
0
0
0
0
0.526316
0
0
0
null
0
0
0
0
0
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
2e9ca4b57157dc58506f23498cf3d288b004e575
1,314
py
Python
apps/devices/admin.py
dimastbk/infodev_test
78680c53768f118dbcb0e1df63cd8b76963c2dfc
[ "MIT" ]
null
null
null
apps/devices/admin.py
dimastbk/infodev_test
78680c53768f118dbcb0e1df63cd8b76963c2dfc
[ "MIT" ]
null
null
null
apps/devices/admin.py
dimastbk/infodev_test
78680c53768f118dbcb0e1df63cd8b76963c2dfc
[ "MIT" ]
null
null
null
"""Регистрация в админке.""" from django.contrib import admin from django.db import models from .models import Device class RadiusListFilter(admin.SimpleListFilter): """Фильтр для радиуса зны покрытия с шагом 100 м.""" title = "Радиус больше чем" parameter_name = "radius__gt" def lookups(self, requ...
28.565217
79
0.617199
151
1,314
5.278146
0.596026
0.033877
0
0
0
0
0
0
0
0
0
0.008299
0.266362
1,314
45
80
29.2
0.818465
0.21309
0
0.074074
0
0
0.09434
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2e9df781f944dabbde60ab14786e26ba66163cc3
520
py
Python
db/settings.py
liuansen/python-utils-class
7f5371ab09b433f555f732dd35350581701e16f0
[ "Apache-2.0" ]
3
2019-05-09T08:15:29.000Z
2021-10-12T06:24:49.000Z
db/settings.py
liuansen/python-utils-class
7f5371ab09b433f555f732dd35350581701e16f0
[ "Apache-2.0" ]
3
2020-03-24T06:22:02.000Z
2021-06-10T21:28:35.000Z
db/settings.py
liuansen/python-utils-class
7f5371ab09b433f555f732dd35350581701e16f0
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # author:Anson from __future__ import unicode_literals MYSQL_DATABASES = { 'default': { 'ENGINE': 'mysql', 'NAME': '', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '3306', 'STORAGE_ENGINE': 'INNODB', } } REDIS_...
16.774194
40
0.434615
40
520
5.425
0.825
0.073733
0
0
0
0
0
0
0
0
0
0.01875
0.384615
520
30
41
17.333333
0.659375
0.063462
0
0.166667
0
0
0.196035
0
0
0
0
0
0
1
0
false
0.125
0.125
0
0.125
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
2e9e41b8c86c218ea81be8a8514f7410d4d391d4
1,320
py
Python
sounds/audioplayer.py
unwisegeek/twitch-buttonbox
8dd1a0a300147d6b3196d0d97c7c866ccf53d6ed
[ "Apache-2.0" ]
null
null
null
sounds/audioplayer.py
unwisegeek/twitch-buttonbox
8dd1a0a300147d6b3196d0d97c7c866ccf53d6ed
[ "Apache-2.0" ]
null
null
null
sounds/audioplayer.py
unwisegeek/twitch-buttonbox
8dd1a0a300147d6b3196d0d97c7c866ccf53d6ed
[ "Apache-2.0" ]
null
null
null
import paho.mqtt.client as mqtt from pydub import AudioSegment from pydub.playback import play import json from config import ( MQTT_HOST, MQTT_PORT, MQTT_AUTH, ) SOUNDS_DIR = "." SOUNDS = { "horn": {"name": "horn.wav", "ext": "wav"}, } def on_connect(client, userdata, flags, rc): print(f"Connecte...
25.384615
72
0.639394
168
1,320
4.85119
0.392857
0.110429
0.029448
0.039264
0.076074
0.076074
0
0
0
0
0
0.002938
0.226515
1,320
51
73
25.882353
0.795299
0
0
0.044444
0
0
0.163636
0.034091
0
0
0
0
0
1
0.044444
false
0.066667
0.111111
0
0.155556
0.044444
0
0
0
null
0
0
0
0
0
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
2ea3f07710f060176262b2f7a7b408445dd79eed
10,767
py
Python
RpgPiratesAndFishers/Control_game.py
LucasRR94/RPG_Pirates_and_Fishers
75bbb57e916f7a878de34676b1d988e5d2506121
[ "Apache-2.0" ]
null
null
null
RpgPiratesAndFishers/Control_game.py
LucasRR94/RPG_Pirates_and_Fishers
75bbb57e916f7a878de34676b1d988e5d2506121
[ "Apache-2.0" ]
null
null
null
RpgPiratesAndFishers/Control_game.py
LucasRR94/RPG_Pirates_and_Fishers
75bbb57e916f7a878de34676b1d988e5d2506121
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from gen_map import genenerateItemsToIsland from gen_map import genMap from Island import * from Fisher import Fisher from Weapon import Weapon from Defense import Defense import threading import hashlib import random """ This file provide all infrastructure to service of gam...
34.180952
189
0.728708
1,539
10,767
5.011046
0.195582
0.027101
0.0118
0.012448
0.194372
0.152619
0.137578
0.114238
0.114238
0.106846
0
0.019013
0.16467
10,767
315
190
34.180952
0.838448
0.096591
0
0.340426
0
0
0.06594
0
0
0
0
0
0.031915
0
null
null
0
0.047872
null
null
0.06383
0
0
0
null
0
0
0
0
0
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
2ea415c7d140056225c96cfff04b7382e6efd1e4
411
py
Python
revs/util.py
jsdelivrbot/revs
22fdd136c3d26828c3f4fde64f400a0cd6fac3a6
[ "MIT" ]
2
2017-10-23T05:29:47.000Z
2018-03-08T05:57:02.000Z
revs/util.py
jsdelivrbot/revs
22fdd136c3d26828c3f4fde64f400a0cd6fac3a6
[ "MIT" ]
null
null
null
revs/util.py
jsdelivrbot/revs
22fdd136c3d26828c3f4fde64f400a0cd6fac3a6
[ "MIT" ]
3
2017-10-15T07:57:02.000Z
2019-01-31T22:23:07.000Z
class Util: def __init__(self): pass @staticmethod def compress_uri(uri, base_uri, prefix_map): uri = uri.strip('<>') if uri.startswith(base_uri): return '<' + uri[len(base_uri):] + '>' for prefix, prefix_uri in prefix_map.items(): if uri.startswith(p...
29.357143
59
0.554745
49
411
4.387755
0.408163
0.167442
0.139535
0
0
0
0
0
0
0
0
0
0.313869
411
13
60
31.615385
0.762411
0
0
0
0
0
0.012165
0
0
0
0
0
0
1
0.166667
false
0.083333
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2ea6a3f646f8a34b29d3ba53f9f27cb8524daca5
741
py
Python
awscrt/checksums.py
eXhumer/aws-crt-python
2a8070fa6c7a8ac81d4262d550689d94f35098f8
[ "Apache-2.0" ]
48
2018-12-07T21:47:25.000Z
2022-03-20T05:49:57.000Z
awscrt/checksums.py
eXhumer/aws-crt-python
2a8070fa6c7a8ac81d4262d550689d94f35098f8
[ "Apache-2.0" ]
99
2018-12-11T19:03:30.000Z
2022-03-27T07:03:32.000Z
awscrt/checksums.py
eXhumer/aws-crt-python
2a8070fa6c7a8ac81d4262d550689d94f35098f8
[ "Apache-2.0" ]
27
2019-05-20T18:46:11.000Z
2022-03-24T07:53:55.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0. import _awscrt def crc32(input: bytes, previous_crc32: int = 0) -> int: """ Perform a CRC32 (Ethernet, gzip) computation. If continuing to update a running CRC, pass its value into `previous_crc32...
30.875
81
0.712551
100
741
5.17
0.49
0.075435
0.069633
0.054159
0.50677
0.448743
0.448743
0.448743
0.448743
0.255319
0
0.053512
0.192982
741
23
82
32.217391
0.811037
0.576248
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
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
1
0
0
0
0
0
0
0
1
2ea8dd83d622a70d3d6de27bb563c48f78eaed0d
4,726
py
Python
net/joomla_smash.py
csuttles/ctlfish
a07cf5c050126c426e92bedd8328cd9dc0896e2c
[ "MIT" ]
null
null
null
net/joomla_smash.py
csuttles/ctlfish
a07cf5c050126c426e92bedd8328cd9dc0896e2c
[ "MIT" ]
null
null
null
net/joomla_smash.py
csuttles/ctlfish
a07cf5c050126c426e92bedd8328cd9dc0896e2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import psutil import queue import requests import requests.cookies import threading import time from html.parser import HTMLParser ''' IANAL but: At the time of writing, this website allows testing tools and manual hacking against this intentionally vulnerable app. ...
36.076336
119
0.620398
613
4,726
4.66721
0.386623
0.025166
0.02971
0.015379
0.016777
0
0
0
0
0
0
0.003807
0.277402
4,726
130
120
36.353846
0.833968
0.135844
0
0
0
0.011364
0.180761
0.020613
0
0
0
0
0
1
0.079545
false
0.147727
0.102273
0
0.215909
0.068182
0
0
0
null
0
0
0
0
0
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
2eae610d8e889a9fc546e3907e4d0cf9dace7301
11,728
py
Python
src/Python/Stage_1/run_hydra.py
ananthsridharan/vtol_sizing
3f754e1bd3cebdb5b5c68c8a2d84c47be1df2f02
[ "MIT" ]
10
2020-03-24T10:20:52.000Z
2021-11-22T18:49:25.000Z
src/Python/Stage_1/run_hydra.py
ananthsridharan/vtol_sizing
3f754e1bd3cebdb5b5c68c8a2d84c47be1df2f02
[ "MIT" ]
4
2020-12-08T10:26:41.000Z
2021-10-04T18:19:59.000Z
src/Python/Stage_1/run_hydra.py
ananthsridharan/vtol_sizing
3f754e1bd3cebdb5b5c68c8a2d84c47be1df2f02
[ "MIT" ]
5
2018-11-27T21:21:19.000Z
2021-04-20T15:44:18.000Z
#====================================================================== # Main driver file for the design code # Original version in fortran by Bharath Govindarajan # new version in python by Ananth Sridharan #====================================================================== import os, shutil, numpy import fea fr...
38.706271
99
0.382759
923
11,728
4.761647
0.338028
0.01843
0.015017
0.015472
0.166553
0.125597
0.084187
0.084187
0.055973
0.055973
0
0.005853
0.242411
11,728
303
100
38.706271
0.488801
0.497868
0
0.293233
0
0
0.053979
0
0
0
0
0
0
1
0.022556
false
0
0.030075
0
0.082707
0.015038
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2eb32c49a4bb07d811e429f467715e2c2d91dd07
1,084
py
Python
RobotScript.py
Panos68/Text-Recognition-using-ROS-and-extract_text
ce547c8e30c6ef2e8c5ab44518f964c45ac81f7c
[ "MIT" ]
1
2018-11-09T16:45:27.000Z
2018-11-09T16:45:27.000Z
RobotScript.py
Panos68/Text-Recognition-using-ROS-and-extract_text
ce547c8e30c6ef2e8c5ab44518f964c45ac81f7c
[ "MIT" ]
null
null
null
RobotScript.py
Panos68/Text-Recognition-using-ROS-and-extract_text
ce547c8e30c6ef2e8c5ab44518f964c45ac81f7c
[ "MIT" ]
2
2018-09-27T19:03:02.000Z
2018-10-03T12:56:00.000Z
import os import sys import difflib looking_word="" if len(sys.argv) < 2: print "%s looking_word" % (sys.argv[0]) sys.exit() else: for x in range (1,len(sys.argv)): looking_word = looking_word+sys.argv[x] #on another terminal pointing on the same folder write “rosrun image_view image_view #image:=/camera/rgb/im...
27.794872
84
0.717712
171
1,084
4.415205
0.479532
0.072848
0.02649
0.047682
0
0
0
0
0
0
0
0.011677
0.130996
1,084
38
85
28.526316
0.789809
0.170664
0
0
0
0
0.293855
0.040223
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2eb5822638131b9a5f6e04e5f4cf52c9c0c1fb38
2,936
py
Python
examples/metricq_rpc_test.py
Daddelhai/metricq-python
ed3d4fdf7d7e3ea2326df79b62a1b5f0e9684bcf
[ "BSD-3-Clause" ]
null
null
null
examples/metricq_rpc_test.py
Daddelhai/metricq-python
ed3d4fdf7d7e3ea2326df79b62a1b5f0e9684bcf
[ "BSD-3-Clause" ]
null
null
null
examples/metricq_rpc_test.py
Daddelhai/metricq-python
ed3d4fdf7d7e3ea2326df79b62a1b5f0e9684bcf
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, ZIH, # Technische Universitaet Dresden, # Federal Republic of Germany # # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain t...
34.541176
82
0.696866
389
2,936
5.205656
0.424165
0.059259
0.023704
0.035556
0.208395
0.10963
0.10963
0.10963
0.10963
0.06716
0
0.005199
0.213896
2,936
84
83
34.952381
0.872184
0.529632
0
0.1
0
0
0.049593
0
0
0
0
0
0.225
1
0.25
false
0
0.05
0.1
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
2eb75eff7a7981a7d9ea50c9ab9599d1ed97cc59
776
py
Python
test_project/testapp/view_class.py
sjquant/drf-typed-views
7346da312879ce6e7d386beebdaca987831d3a56
[ "MIT" ]
null
null
null
test_project/testapp/view_class.py
sjquant/drf-typed-views
7346da312879ce6e7d386beebdaca987831d3a56
[ "MIT" ]
null
null
null
test_project/testapp/view_class.py
sjquant/drf-typed-views
7346da312879ce6e7d386beebdaca987831d3a56
[ "MIT" ]
null
null
null
from typing import List from pydantic import BaseModel from rest_framework.response import Response from rest_typed_views import TypedAPIView, Query, Path class MusicSchema(BaseModel): id: int title: str rating: int = None genre: str class MusicAPIView(TypedAPIView): def get( self, ...
21.555556
65
0.576031
86
776
5.139535
0.511628
0.036199
0.081448
0
0
0
0
0
0
0
0
0.020833
0.319588
776
35
66
22.171429
0.816288
0
0
0.074074
0
0
0.042526
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0.074074
0.518519
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
2ec2e92953272861318bda2a5210966257830b7e
525
py
Python
angr/procedures/libc/vsnprintf.py
macdaliot/angr
bda03546af86e072aa7c92f6e3e520d0f5418590
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/libc/vsnprintf.py
macdaliot/angr
bda03546af86e072aa7c92f6e3e520d0f5418590
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/libc/vsnprintf.py
macdaliot/angr
bda03546af86e072aa7c92f6e3e520d0f5418590
[ "BSD-2-Clause" ]
null
null
null
import angr ###################################### # __vsnprintf ###################################### class vsnprintf(angr.SimProcedure): #pylint:disable=arguments-differ def run(self, str_ptr, size, fmt, ap): #pylint:disable=unused-argument # This function returns # Add another exit to the...
26.25
79
0.531429
61
525
4.491803
0.754098
0.094891
0
0
0
0
0
0
0
0
0
0.010127
0.247619
525
19
80
27.631579
0.683544
0.312381
0
0
0
0
0.014337
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.714286
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2ec8c3d035c371f29cd6f7a6f80f251559dc5bb2
1,337
py
Python
custom/_legacy/mvp/management/commands/mvp_archive_forms.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
custom/_legacy/mvp/management/commands/mvp_archive_forms.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
custom/_legacy/mvp/management/commands/mvp_archive_forms.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
import csv import logging from dimagi.utils.couch.database import iter_docs from django.core.management.base import LabelCommand from couchforms.models import XFormInstance class Command(LabelCommand): help = "Archive MVP Forms" args = "filepath archiving_user" def handle(self, *args, **options): ...
31.833333
70
0.566941
161
1,337
4.602484
0.447205
0.070175
0.068826
0.072874
0.174089
0.102564
0.102564
0.102564
0.102564
0
0
0.00463
0.353777
1,337
41
71
32.609756
0.853009
0
0
0.257143
0
0
0.182498
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2ecea78528266600d6870448ef270fef406655dc
3,388
py
Python
apps/accounts/forms.py
SidSajan/ENP
2aec6484de5b80d3a2f246343270049fa208b9e3
[ "MIT" ]
null
null
null
apps/accounts/forms.py
SidSajan/ENP
2aec6484de5b80d3a2f246343270049fa208b9e3
[ "MIT" ]
null
null
null
apps/accounts/forms.py
SidSajan/ENP
2aec6484de5b80d3a2f246343270049fa208b9e3
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.utils.translation import gettext, gettext_lazy as _ from apps.accounts.models import NormalLogin import hashlib from Crypto import Random from Crypto.Cipher import AES class UserForm(forms.ModelForm): password = forms.CharField(widget...
34.222222
99
0.626328
370
3,388
5.6
0.340541
0.042471
0.036197
0.026062
0.141892
0.072394
0
0
0
0
0
0.010736
0.257674
3,388
99
100
34.222222
0.813121
0.243211
0
0.177419
0
0
0.149489
0
0
0
0
0
0
1
0.032258
false
0.354839
0.112903
0
0.387097
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2ed85e22c810b308171f255aad5ea26ce51ca353
5,690
py
Python
obfuscators/obfuscator_indirections.py
breakpad/aamo
c93516addb94e6970f3eed4795169b428aca446b
[ "MIT" ]
115
2015-09-16T11:30:38.000Z
2021-12-25T23:42:14.000Z
obfuscators/obfuscator_indirections.py
breakpad/aamo
c93516addb94e6970f3eed4795169b428aca446b
[ "MIT" ]
5
2017-02-28T22:39:41.000Z
2020-01-06T08:23:51.000Z
obfuscators/obfuscator_indirections.py
breakpad/aamo
c93516addb94e6970f3eed4795169b428aca446b
[ "MIT" ]
55
2015-09-16T11:30:44.000Z
2022-03-16T11:17:07.000Z
import util as u import re import StringIO def get_reg(invoke_param): """Return the parameter registry list""" if invoke_param == '': return reg_list = re.finditer(r'(v|p)\d{1,3}', invoke_param) for reg_value in reg_list: yield reg_value.group() def is_range(invoke_type): """Rang...
34.484848
280
0.638664
786
5,690
4.330789
0.152672
0.060811
0.057579
0.039659
0.366921
0.318155
0.244418
0.19624
0.103995
0.053467
0
0.005463
0.227944
5,690
164
281
34.695122
0.769406
0.05536
0
0.308333
0
0.008333
0.12926
0.045437
0
0
0
0
0
0
null
null
0.05
0.025
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
2ee2c7b16cb48161c1a41e51113853bd3eb1359f
389
py
Python
flitton_fib_py/cmd/fib_numb.py
harupy/flitton-fib-py
07c9d3f558833211c6fc625faff522f4f9d30601
[ "MIT" ]
null
null
null
flitton_fib_py/cmd/fib_numb.py
harupy/flitton-fib-py
07c9d3f558833211c6fc625faff522f4f9d30601
[ "MIT" ]
null
null
null
flitton_fib_py/cmd/fib_numb.py
harupy/flitton-fib-py
07c9d3f558833211c6fc625faff522f4f9d30601
[ "MIT" ]
null
null
null
import argparse from flitton_fib_py.fib_calcs.fib_number import recurring_fibonacci_number def fib_numb() -> None: parser = argparse.ArgumentParser() parser.add_argument( "--number", action="store", type=int, required=True, ) args = parser.parse_args() print("num...
21.611111
82
0.66838
45
389
5.533333
0.622222
0.144578
0.192771
0
0
0
0
0
0
0
0
0
0.213368
389
17
83
22.882353
0.813725
0
0
0
0
0
0.061697
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.25
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
2ee84b5c16496dc5e664e9c38b32e4f2adb24f2b
3,856
py
Python
TecData.py
arakcheev/python-data-plotter
d38e18e2f2b712c941eeea52a77c188d41895e77
[ "MIT" ]
null
null
null
TecData.py
arakcheev/python-data-plotter
d38e18e2f2b712c941eeea52a77c188d41895e77
[ "MIT" ]
null
null
null
TecData.py
arakcheev/python-data-plotter
d38e18e2f2b712c941eeea52a77c188d41895e77
[ "MIT" ]
null
null
null
__author__ = 'artem' import numpy as np import re from spacepy import dmarray from Model import Model import Parameters params = Parameters.Parameters class TecData(Model): def sub_title(self): return ' time = ' + "{:.2}".format(self['time']) + " " def get_name(self): name_groups = re.searc...
34.123894
91
0.490664
504
3,856
3.583333
0.204365
0.101883
0.044297
0.046512
0.254707
0.186047
0.123477
0.123477
0.111849
0.111849
0
0.022918
0.321058
3,856
112
92
34.428571
0.666921
0.040975
0
0.178571
0
0
0.076361
0
0
0
0
0
0
0
null
null
0
0.059524
null
null
0.011905
0
0
0
null
0
0
0
0
0
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
2ee978633d0781802c1da32c74bbd85432ac01aa
974
py
Python
tests/steps/dashboard.py
omkarkhatavkar/python-selenium-bdd
cf7bff6f291158bc2fe6c17a7e17e480170d0969
[ "MIT" ]
49
2018-05-26T16:51:08.000Z
2021-10-06T08:45:27.000Z
tests/steps/dashboard.py
omkarkhatavkar/python-selenium-bdd
cf7bff6f291158bc2fe6c17a7e17e480170d0969
[ "MIT" ]
null
null
null
tests/steps/dashboard.py
omkarkhatavkar/python-selenium-bdd
cf7bff6f291158bc2fe6c17a7e17e480170d0969
[ "MIT" ]
42
2018-07-08T14:02:02.000Z
2022-03-03T23:49:14.000Z
from behave import given, when, then from pages.dashboard import dashboard @then(u'Dashboard Status shows correct values for row "{row}"') def step_impl_dashboard_status(context, row): dashboard.verify_status(row) @then(u'Clicking on Status Refresh should refresh status component') def step_impl_status_refresh(...
29.515152
74
0.791581
138
974
5.384058
0.26087
0.040377
0.088829
0.084791
0.153432
0.153432
0.153432
0.153432
0.153432
0
0
0
0.12115
974
32
75
30.4375
0.867991
0
0
0
0
0
0.356263
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2eedf4daafef015fd3d9bcf801ad848b5766bc34
715
py
Python
pythonizame/apps/website/migrations/0003_auto_20161029_2238.py
kiubtech/pythonizame
6483aa90859fc1bfbc01540efe4ffcf6fe87e450
[ "MIT" ]
6
2017-08-17T22:11:28.000Z
2021-12-23T13:31:28.000Z
pythonizame/apps/website/migrations/0003_auto_20161029_2238.py
kiubtech/pythonizame
6483aa90859fc1bfbc01540efe4ffcf6fe87e450
[ "MIT" ]
4
2018-04-04T21:02:52.000Z
2021-06-10T20:38:56.000Z
pythonizame/apps/website/migrations/0003_auto_20161029_2238.py
kiubtech/pythonizame
6483aa90859fc1bfbc01540efe4ffcf6fe87e450
[ "MIT" ]
3
2017-10-27T22:21:41.000Z
2019-09-27T17:38:58.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-30 03:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('website', '0002_auto_20160326_1912'), ] operations = [ migrations.AddField(...
27.5
123
0.633566
74
715
5.932432
0.716216
0.082005
0.104784
0.123007
0.218679
0.218679
0
0
0
0
0
0.069549
0.255944
715
25
124
28.6
0.755639
0.095105
0
0.333333
1
0
0.197205
0.035714
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2efbb3e4df4555d47f797546fbf06a440144c208
11,365
py
Python
pdb2pqr-1.9.0/pdb2pka/inputgen_pKa.py
Acpharis/protein_prep
8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8
[ "BSD-3-Clause" ]
null
null
null
pdb2pqr-1.9.0/pdb2pka/inputgen_pKa.py
Acpharis/protein_prep
8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8
[ "BSD-3-Clause" ]
null
null
null
pdb2pqr-1.9.0/pdb2pka/inputgen_pKa.py
Acpharis/protein_prep
8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8
[ "BSD-3-Clause" ]
null
null
null
#!/bin/env python # # $Id$ # class inputGen: # # Creating input files for the pKa calculations # def __init__(self, pqrpath): """ Initialize the inputGen class Parameters pqrpath: The full path to the PQR file (string) c...
33.824405
112
0.454465
1,357
11,365
3.77524
0.183493
0.055631
0.010541
0.016397
0.458911
0.424556
0.396447
0.36951
0.36951
0.36951
0
0.045794
0.410119
11,365
335
113
33.925373
0.718377
0.088429
0
0.442857
0
0
0.193495
0
0
0
0
0
0
0
null
null
0
0.019048
null
null
0.009524
0
0
0
null
0
0
0
0
0
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
2efc33cbd568693dd8f9c842eea2353c04aced03
2,911
py
Python
displacement_field/displacement_field.py
emassara/Quijote-simulations
9f1b76eec4c024deaabae66d126e8c46b822fe84
[ "MIT" ]
null
null
null
displacement_field/displacement_field.py
emassara/Quijote-simulations
9f1b76eec4c024deaabae66d126e8c46b822fe84
[ "MIT" ]
null
null
null
displacement_field/displacement_field.py
emassara/Quijote-simulations
9f1b76eec4c024deaabae66d126e8c46b822fe84
[ "MIT" ]
1
2021-04-02T10:38:31.000Z
2021-04-02T10:38:31.000Z
from mpi4py import MPI import numpy as np import sys,os import readgadget ###### MPI DEFINITIONS ###### comm = MPI.COMM_WORLD nprocs = comm.Get_size() myrank = comm.Get_rank() ##################################### INPUT ############################################# root ...
34.654762
89
0.607695
423
2,911
4.080378
0.321513
0.062572
0.044032
0.032445
0.237543
0.192352
0.135574
0.035921
0
0
0
0.029181
0.211268
2,911
83
90
35.072289
0.722561
0.242872
0
0
0
0
0.131
0.0885
0
0
0
0
0
0
null
null
0
0.088889
null
null
0.022222
0
0
0
null
0
0
0
0
0
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
2efec50bf73e94c66ccfbffbf1d21dd34b15d92b
706
py
Python
node/blockchain/models/pending_block.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
18
2021-11-30T04:02:13.000Z
2022-03-24T12:33:57.000Z
node/blockchain/models/pending_block.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
1
2022-02-04T17:07:38.000Z
2022-02-04T17:07:38.000Z
node/blockchain/models/pending_block.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
5
2022-01-31T05:28:13.000Z
2022-03-08T17:25:31.000Z
import uuid from djongo import models from node.blockchain.inner_models import Block as PydanticBlock from node.core.models import CustomModel class PendingBlock(CustomModel): _id = models.UUIDField(primary_key=True, default=uuid.uuid4) number = models.PositiveBigIntegerField() hash = models.CharField(...
27.153846
64
0.719547
85
706
5.811765
0.552941
0.032389
0.072874
0.097166
0
0
0
0
0
0
0
0.015625
0.184136
706
25
65
28.24
0.842014
0.014164
0
0
0
0
0.080692
0.038905
0
0
0
0
0
1
0.117647
false
0
0.235294
0.117647
0.882353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
2c0b083293acf7079bba5c793a9ec98deca38440
4,288
py
Python
llvm-external-projects/iree-dialects/python/iree/compiler/dialects/iree_pydm/rtl/modules/macros.py
nick-furry/iree
5c4478401fbed50f1256a59d4c7eb3f71b6230f5
[ "Apache-2.0" ]
null
null
null
llvm-external-projects/iree-dialects/python/iree/compiler/dialects/iree_pydm/rtl/modules/macros.py
nick-furry/iree
5c4478401fbed50f1256a59d4c7eb3f71b6230f5
[ "Apache-2.0" ]
null
null
null
llvm-external-projects/iree-dialects/python/iree/compiler/dialects/iree_pydm/rtl/modules/macros.py
nick-furry/iree
5c4478401fbed50f1256a59d4c7eb3f71b6230f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The IREE Authors # # Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """Macros that can be used freely when building RTL modules.""" from ...importer import ( def_ir_m...
35.147541
80
0.692397
582
4,288
4.943299
0.231959
0.075426
0.087591
0.092457
0.614181
0.589155
0.569691
0.561349
0.514772
0.40285
0
0.0023
0.188666
4,288
121
81
35.438017
0.824662
0.233442
0
0.358209
0
0
0.025938
0
0
0
0
0
0
1
0.19403
false
0
0.253731
0
0.641791
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
2c120010995237d31aae4ab0acca770a9a14fc70
365
py
Python
utilities/file_utilitites.py
mpentek/GraphicStatics
9f42ee8e196a76ff41005584c50a08ab23d062a1
[ "BSD-3-Clause" ]
null
null
null
utilities/file_utilitites.py
mpentek/GraphicStatics
9f42ee8e196a76ff41005584c50a08ab23d062a1
[ "BSD-3-Clause" ]
null
null
null
utilities/file_utilitites.py
mpentek/GraphicStatics
9f42ee8e196a76ff41005584c50a08ab23d062a1
[ "BSD-3-Clause" ]
null
null
null
""" Created on Tuesday Dec 26 11:00 2018 @author: mate.pentek@tum.de """ import jsonpickle jsonpickle.set_encoder_options('simplejson', sort_keys=True, indent=4) jsonpickle.set_encoder_options('demjson', compactly=False) def json_dump_model(model, file_path): with open(file_path + '.json', 'w') as outfile: ...
22.8125
70
0.742466
52
365
5.038462
0.769231
0.099237
0.152672
0.206107
0
0
0
0
0
0
0
0.034483
0.126027
365
15
71
24.333333
0.786834
0.178082
0
0
0
0
0.079038
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c15754780f903e35c7bd2ea76be5e306a7140dd
12,832
py
Python
python/dynamic_graph/sot/torque_control/identification/identify_motor_with_current.py
jviereck/sot-torque-control
90409a656e5b5be4dd4ff937724154579861c20f
[ "BSD-2-Clause" ]
null
null
null
python/dynamic_graph/sot/torque_control/identification/identify_motor_with_current.py
jviereck/sot-torque-control
90409a656e5b5be4dd4ff937724154579861c20f
[ "BSD-2-Clause" ]
null
null
null
python/dynamic_graph/sot/torque_control/identification/identify_motor_with_current.py
jviereck/sot-torque-control
90409a656e5b5be4dd4ff937724154579861c20f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import sys #import dynamic_graph.sot.torque_control.utils.plot_utils as plot_utils import matplotlib as mpl mpl.rcParams['lines.linewidth'] = 4; import matplotlib.pyplot as plt from motor_model import Motor_model from dynamic_graph.sot.torque_control.hrp2.control_manager_c...
46.158273
137
0.647522
1,730
12,832
4.445087
0.145665
0.087126
0.043693
0.037191
0.435501
0.346294
0.239272
0.097529
0.06554
0.041873
0
0.069533
0.218828
12,832
277
138
46.32491
0.697626
0.118064
0
0.102439
0
0
0.185026
0.092155
0
0
0
0
0
0
null
null
0
0.058537
null
null
0.078049
0
0
0
null
0
0
0
0
0
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
2c26e923a2b840c3a204c73ada8ddf71421ab028
6,233
py
Python
data/script-to-match-neighborhood-to-district.py
Johnny-Fung/toronto-housing-market-map-visualization
06d2e0b2ef521c883546c364c4b14236e01c5d51
[ "MIT" ]
1
2020-12-24T00:16:13.000Z
2020-12-24T00:16:13.000Z
data/script-to-match-neighborhood-to-district.py
Johnny-Fung/toronto-housing-market-map-visualization
06d2e0b2ef521c883546c364c4b14236e01c5d51
[ "MIT" ]
null
null
null
data/script-to-match-neighborhood-to-district.py
Johnny-Fung/toronto-housing-market-map-visualization
06d2e0b2ef521c883546c364c4b14236e01c5d51
[ "MIT" ]
null
null
null
districts = { 'C01':("Downtown", "Harbourfront", "King West Village", "Little Italy"), 'C02':("The Annex", "Yorkville", "Summerhill", "Wychwood Park", "Deer Park (Yonge-St. Clair)", "South Hill"), 'C03':("Corso Italia", "Forest Hill South", "Oakwood-Vaughan", "Cedarvale"), 'C04':("Bedford Park", "Lawrence Manor", "Nort...
89.042857
191
0.69485
700
6,233
6.187143
0.432857
0.009236
0.005541
0.012006
0.01801
0.01801
0
0
0
0
0
0.012608
0.109257
6,233
69
192
90.333333
0.767471
0.017808
0
0
0
0
0.741391
0.024762
0
0
0
0
0
1
0
false
0
0
0
0
0.005587
0
0
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
2c2abe3e83bdc4881b437f3d532a2994db3cee76
3,027
py
Python
Bets.py
CloudsWeight/Casino
119c433c9c8dc11fb66cd40e582833a458863e06
[ "Unlicense" ]
null
null
null
Bets.py
CloudsWeight/Casino
119c433c9c8dc11fb66cd40e582833a458863e06
[ "Unlicense" ]
null
null
null
Bets.py
CloudsWeight/Casino
119c433c9c8dc11fb66cd40e582833a458863e06
[ "Unlicense" ]
null
null
null
'''Bet.py ''' class Bets: def __init__(self): self.win = 0 self.info = {"dealer":self.dealer, "player":self.player} def dealer(self, dealer): self.dealer = dealer def player(self, player): self.player = player def win(self): self.win = self.od...
27.27027
98
0.487611
365
3,027
3.917808
0.243836
0.062937
0.053846
0.041958
0.182517
0.082517
0.082517
0.048951
0.048951
0
0
0.015292
0.395111
3,027
110
99
27.518182
0.765702
0.010572
0
0.215909
0
0.011364
0.147079
0.00904
0
0
0
0
0
1
0.136364
false
0.068182
0
0.011364
0.204545
0.136364
0
0
0
null
0
0
0
0
0
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
2c301a310ee6372c5659461703485db8cb1ef802
1,481
py
Python
Exc_/ex094_Dicionario_Listas.py
ronisioxavierjr/_cursoemvideo
66beb03a14165e52f9359797f3625c2b04211d83
[ "MIT" ]
null
null
null
Exc_/ex094_Dicionario_Listas.py
ronisioxavierjr/_cursoemvideo
66beb03a14165e52f9359797f3625c2b04211d83
[ "MIT" ]
null
null
null
Exc_/ex094_Dicionario_Listas.py
ronisioxavierjr/_cursoemvideo
66beb03a14165e52f9359797f3625c2b04211d83
[ "MIT" ]
null
null
null
"""Exercício Python 094: Crie um programa que leia nome, sexo e idade de várias pessoas, guardando os dados de cada pessoa em um dicionário e todos os dicionários em uma lista. No final, mostre: A) Quantas pessoas foram cadastradas B) A média de idade C) Uma lista com as mulheres D) Uma lista de pessoas com idade acima...
32.911111
88
0.608373
226
1,481
3.986726
0.380531
0.026637
0.019978
0.046615
0.157603
0.157603
0.097669
0.053274
0
0
0
0.00531
0.237002
1,481
44
89
33.659091
0.792035
0.220122
0
0.314286
0
0
0.337685
0
0
0
0
0.022727
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
258237e3972f3ef22e0724841dd663a3e304251f
1,010
py
Python
util/authentication_plugin.py
jidaqqa/mqtt_with_encryption
a427060c8ba927afae4e6f3639cac0e68aa0f918
[ "MIT" ]
null
null
null
util/authentication_plugin.py
jidaqqa/mqtt_with_encryption
a427060c8ba927afae4e6f3639cac0e68aa0f918
[ "MIT" ]
null
null
null
util/authentication_plugin.py
jidaqqa/mqtt_with_encryption
a427060c8ba927afae4e6f3639cac0e68aa0f918
[ "MIT" ]
null
null
null
import util.logger as logger class Authentication(object): @staticmethod def read_password_file(password_file, username, password): authenticated = False users = dict() try: with open(password_file) as f: for l in f: line = l.strip() ...
36.071429
89
0.518812
100
1,010
5.19
0.53
0.115607
0.104046
0.084778
0.096339
0.096339
0
0
0
0
0
0.00165
0.4
1,010
27
90
37.407407
0.854785
0.022772
0
0.086957
0
0
0.111675
0
0
0
0
0
0
1
0.043478
false
0.217391
0.043478
0
0.173913
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
258444d1abdcf8409e13b5c1f365822516406c2a
781
py
Python
src/pawn/game.py
barraponto/python-pawn
23418526e02765ef531f5e19b760770f36c06003
[ "BSD-2-Clause" ]
null
null
null
src/pawn/game.py
barraponto/python-pawn
23418526e02765ef531f5e19b760770f36c06003
[ "BSD-2-Clause" ]
null
null
null
src/pawn/game.py
barraponto/python-pawn
23418526e02765ef531f5e19b760770f36c06003
[ "BSD-2-Clause" ]
null
null
null
from pawn.player import Player class Game(object): """Creates an N-players game. :param number_of_players: the number of players for the current game. """ player_class = Player supported_number_of_players = [2, 4] def __init__(self, number_of_players=2): if number_of_players not in ...
31.24
76
0.633803
100
781
4.67
0.38
0.171306
0.321199
0.102784
0
0
0
0
0
0
0
0.008726
0.266325
781
24
77
32.541667
0.806283
0.1242
0
0
0
0
0.133034
0.050822
0
0
0
0
0
1
0.133333
false
0
0.066667
0.066667
0.466667
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
25a3d03a7cd030e56bf789db4c71c4da658294c4
9,991
py
Python
apps/sections/m_takeaway.py
jRicciL/Poster-ProteinsCNN-webApp
9cded78fa589ae323537f0d0c4f714a4e26aeb05
[ "MIT" ]
null
null
null
apps/sections/m_takeaway.py
jRicciL/Poster-ProteinsCNN-webApp
9cded78fa589ae323537f0d0c4f714a4e26aeb05
[ "MIT" ]
null
null
null
apps/sections/m_takeaway.py
jRicciL/Poster-ProteinsCNN-webApp
9cded78fa589ae323537f0d0c4f714a4e26aeb05
[ "MIT" ]
null
null
null
import dash.html as html import dash.dcc as dcc from dash.html.Mark import Mark import dash_bootstrap_components as dbc from dash.dependencies import Input, Output, ClientsideFunction from app import app # Titles row_titles = dbc.Row( className='row-title-content', children= [ # Title html.H2([...
30.83642
127
0.320088
677
9,991
4.695716
0.322009
0.040264
0.039635
0.048128
0.401384
0.383139
0.366153
0.348537
0.323372
0.323372
0
0.019081
0.575118
9,991
324
128
30.83642
0.7298
0.06656
0
0.507143
0
0
0.168137
0.023559
0
0
0
0
0
1
0
false
0
0.021429
0
0.021429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25a8a186e2607a16f241a01a294eb9ec7c269b25
309
py
Python
benchmark/path_selection_benchmark.py
pthevenet/lightnion
c9e842d3c269d0d39fa62d68f7f83ffb17c5161e
[ "BSD-3-Clause" ]
120
2019-02-24T20:34:17.000Z
2021-11-24T16:03:43.000Z
benchmark/path_selection_benchmark.py
pthevenet/lightnion
c9e842d3c269d0d39fa62d68f7f83ffb17c5161e
[ "BSD-3-Clause" ]
5
2020-01-20T11:45:41.000Z
2020-03-03T12:22:42.000Z
benchmark/path_selection_benchmark.py
pthevenet/lightnion
c9e842d3c269d0d39fa62d68f7f83ffb17c5161e
[ "BSD-3-Clause" ]
3
2019-03-18T21:24:43.000Z
2020-10-09T02:53:00.000Z
import lightnion as lnn from lightnion import path_selection import cProfile lnn.cache.purge() link = lnn.link.initiate(port=5000) state = lnn.create.fast(link) state, cons = lnn.consensus.download(state, flavor='unflavored') cProfile.run("path_selection.select_path(cons['routers'], state, testing=True)")
28.090909
80
0.783172
44
309
5.431818
0.613636
0.108787
0
0
0
0
0
0
0
0
0
0.014184
0.087379
309
10
81
30.9
0.833333
0
0
0
0
0
0.239482
0.139159
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
25ae2a9aff73b9fbbd17e893ae77cc3cc06248cf
172
py
Python
store/stripeAPI/card.py
luckdeluxe/hardware-store
a48f3ee4d60f2a695fb7741fa30002e8b29ad7d3
[ "MIT" ]
null
null
null
store/stripeAPI/card.py
luckdeluxe/hardware-store
a48f3ee4d60f2a695fb7741fa30002e8b29ad7d3
[ "MIT" ]
null
null
null
store/stripeAPI/card.py
luckdeluxe/hardware-store
a48f3ee4d60f2a695fb7741fa30002e8b29ad7d3
[ "MIT" ]
null
null
null
from . import stripe def create_card(user, token): source = stripe.Customer.create_source( user.customer_id, source = token ) return source
15.636364
43
0.639535
20
172
5.35
0.6
0
0
0
0
0
0
0
0
0
0
0
0.284884
172
10
44
17.2
0.869919
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
25afbca83762106b6c75f67f1ad5f029ee766970
1,136
py
Python
tasks/tests/unit/test_item.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
null
null
null
tasks/tests/unit/test_item.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
11
2019-11-12T23:26:45.000Z
2021-06-10T17:37:23.000Z
tasks/tests/unit/test_item.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
null
null
null
import pytest from tasks.models import ( Task, Item, ItemTemplate ) @pytest.mark.django_db def test_items(task_with_items): assert Task.objects.count() == 1 task = Task.objects.first() assert task.items.count() == 4 assert Item.objects.count() == 4 for item in task.items.all(): asser...
23.183673
71
0.652289
156
1,136
4.647436
0.24359
0.137931
0.132414
0.182069
0.457931
0.413793
0.113103
0.113103
0.113103
0
0
0.013438
0.213908
1,136
48
72
23.666667
0.798432
0
0
0.4
0
0
0.017606
0
0
0
0
0
0.4
1
0.057143
false
0
0.057143
0
0.114286
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
25b78ff50eef27b85fa89d728d8428d3f94abe01
11,932
py
Python
cnn_cort/nets.py
sergivalverde/sub-cortical_segmentation
1b2721d5270ffd6210e5a34685c161c8bf9d11eb
[ "BSD-3-Clause" ]
14
2017-02-15T14:33:19.000Z
2022-03-29T11:41:41.000Z
cnn_cort/nets.py
NIC-VICOROB/sub-cortical_segmentation
324b8f998a666cee6ef94944acd85e2bcd503701
[ "BSD-3-Clause" ]
4
2017-09-21T14:14:20.000Z
2021-03-24T12:42:09.000Z
cnn_cort/nets.py
sergivalverde/sub-cortical_segmentation
1b2721d5270ffd6210e5a34685c161c8bf9d11eb
[ "BSD-3-Clause" ]
7
2017-09-21T13:00:44.000Z
2020-11-03T11:31:05.000Z
import os, argparse, cPickle from shutil import copyfile import numpy as np import cPickle from nibabel import load as load_nii import nibabel as nib from scipy import ndimage from nolearn.lasagne import NeuralNet, BatchIterator, TrainSplit from nolearn_utils.hooks import SaveTrainingHistory, PlotTrainingHistory, Early...
46.609375
209
0.622947
1,504
11,932
4.662234
0.176197
0.031945
0.02567
0.034227
0.481033
0.467342
0.444524
0.444524
0.439817
0.314604
0
0.044105
0.232316
11,932
255
210
46.792157
0.721397
0.100905
0
0.171975
0
0
0.094319
0
0
0
0
0
0
0
null
null
0.012739
0.10828
null
null
0.006369
0
0
0
null
0
0
0
0
0
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
25b8184d042244cb71ed787cccef18ccf938b91c
875
py
Python
poseidon/dags/cip/cip_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
poseidon/dags/cip/cip_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
poseidon/dags/cip/cip_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
import os import pandas as pd import requests from datetime import datetime, timedelta import logging import cx_Oracle from trident.util import general conf = general.config fiscal_yr = general.get_FY_year() credentials = general.source['cip'] prod_file = conf['prod_data_dir'] + '/cip_{0}_datasd_v1.csv'.format(fisc...
22.435897
78
0.739429
134
875
4.58209
0.447761
0.039088
0.04886
0.045603
0
0
0
0
0
0
0
0.004027
0.148571
875
38
79
23.026316
0.820134
0.044571
0
0
0
0
0.219542
0.026538
0
0
0
0
0
1
0.045455
false
0
0.318182
0
0.409091
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
25bd118208181ec24e3871f8963af4b491e92caa
1,945
py
Python
fooltrader/api/event.py
beaquant/fooltrader
95cb6def89511e8e7a29aac5f04c01ee2cbfc20b
[ "MIT" ]
1,103
2017-12-04T03:09:50.000Z
2022-03-29T06:29:07.000Z
fooltrader/api/event.py
beaquant/fooltrader
95cb6def89511e8e7a29aac5f04c01ee2cbfc20b
[ "MIT" ]
23
2018-02-12T03:53:35.000Z
2020-01-18T06:34:38.000Z
fooltrader/api/event.py
beaquant/fooltrader
95cb6def89511e8e7a29aac5f04c01ee2cbfc20b
[ "MIT" ]
343
2018-01-25T08:53:49.000Z
2022-03-25T05:52:56.000Z
# -*- coding: utf-8 -*- import os import pandas as pd from fooltrader.api.technical import to_security_item from fooltrader.contract.files_contract import get_event_path from fooltrader.utils import pd_utils from fooltrader.utils.pd_utils import df_for_date_range def get_event(security_item, event_type='finance_fo...
29.923077
119
0.728021
278
1,945
4.766187
0.215827
0.126792
0.076981
0.063396
0.332075
0.332075
0.275472
0.218113
0.152453
0.152453
0
0.00126
0.184062
1,945
64
120
30.390625
0.833648
0.186632
0
0.071429
0
0
0.05618
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0.071429
0.535714
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
25cacf5fd9590f8a7a1a47ef5582268294619e18
2,026
py
Python
dpyj/texts.py
beatbox4108/dpyj
ad380a877c83a22d4193a5042a1142d541c4ae37
[ "MIT" ]
null
null
null
dpyj/texts.py
beatbox4108/dpyj
ad380a877c83a22d4193a5042a1142d541c4ae37
[ "MIT" ]
null
null
null
dpyj/texts.py
beatbox4108/dpyj
ad380a877c83a22d4193a5042a1142d541c4ae37
[ "MIT" ]
null
null
null
class text: def __init__(self,text,*,thin=False,cancel=False,underline=False,bold=False,Italic=False,hide=False,Bg="black",Txt="white"): self.__color={ "black":30, "red":31, "green":32, "yellow":33, "blue":34, "mazenta":35, ...
25.64557
128
0.555775
295
2,026
3.677966
0.261017
0.103226
0.081106
0.088479
0.110599
0.086636
0.035023
0
0
0
0
0.070019
0.22458
2,026
78
129
25.974359
0.620624
0.055281
0
0
0
0
0.124542
0
0
0
0
0
0
1
0.228571
false
0
0
0
0.257143
0.214286
0
0
0
null
0
0
0
0
0
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
25d1e74e1aacb5694dc05931aca29cb62eab8d2a
5,911
py
Python
src/niweb/apps/noclook/forms/nordunet.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
2
2018-12-21T09:35:27.000Z
2019-07-31T18:51:58.000Z
src/niweb/apps/noclook/forms/nordunet.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
6
2019-07-25T07:10:23.000Z
2021-02-08T09:58:57.000Z
src/niweb/apps/noclook/forms/nordunet.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
5
2019-02-06T12:00:26.000Z
2021-11-19T14:48:06.000Z
# -*- coding: utf-8 -*- __author__ = 'lundberg' from django import forms from django.db import IntegrityError from apps.noclook.models import UniqueIdGenerator, NordunetUniqueId, NodeHandle from apps.noclook.helpers import get_provider_id from .. import unique_ids from . import common class NewCableForm(common.NewCa...
41.048611
136
0.69413
690
5,911
5.708696
0.22029
0.069815
0.078192
0.095963
0.413049
0.364306
0.272404
0.230769
0.230769
0.205382
0
0.001063
0.204365
5,911
143
137
41.335664
0.836487
0.055151
0
0.322917
0
0
0.132947
0.023909
0
0
0
0
0
1
0.104167
false
0
0.0625
0
0.53125
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
25d643bebf03b43b81d4b8f516b6cd9f37d06893
1,292
py
Python
conftest.py
v-lubomski/traning_api_test
e607ef8d953dde09393d49436f3deb8f4000223a
[ "Apache-2.0" ]
2
2020-05-04T04:41:02.000Z
2020-05-04T16:18:48.000Z
conftest.py
v-lubomski/traning_api_test
e607ef8d953dde09393d49436f3deb8f4000223a
[ "Apache-2.0" ]
3
2020-07-16T16:33:42.000Z
2020-07-17T04:51:26.000Z
conftest.py
v-lubomski/traning_api_test
e607ef8d953dde09393d49436f3deb8f4000223a
[ "Apache-2.0" ]
9
2020-07-12T06:06:19.000Z
2020-07-17T04:53:44.000Z
import pytest import logging from api.client import Client from common.logging import setup from model.booking import BookingData from model.login import UserData logger = logging.getLogger() @pytest.fixture(scope="session") def client(request): setup() logger.setLevel('INFO') url = req...
23.071429
56
0.609907
132
1,292
5.939394
0.409091
0.049745
0.084184
0
0
0
0
0
0
0
0
0.003151
0.263158
1,292
55
57
23.490909
0.820378
0.044892
0
0.214286
0
0
0.155306
0
0
0
0
0
0
1
0.071429
false
0.119048
0.142857
0
0.261905
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
25d705bf6d046f246946a74b301463bb83ce59f6
1,232
py
Python
src/tts_preparation/app/__init__.py
stefantaubert/tts-preparation
dad7bb4c0f5093ff63736ae9d6553c7cfe916734
[ "MIT" ]
null
null
null
src/tts_preparation/app/__init__.py
stefantaubert/tts-preparation
dad7bb4c0f5093ff63736ae9d6553c7cfe916734
[ "MIT" ]
null
null
null
src/tts_preparation/app/__init__.py
stefantaubert/tts-preparation
dad7bb4c0f5093ff63736ae9d6553c7cfe916734
[ "MIT" ]
null
null
null
from tts_preparation.app.inference import (add_text, apply_mapping_table, change_ipa_text, get_text_dir, ipa_convert_text, load_utterances, map_text, normalize_text, ...
61.6
78
0.658279
149
1,232
4.838926
0.389262
0.083218
0.124827
0.145631
0
0
0
0
0
0
0
0
0.303571
1,232
19
79
64.842105
0.840326
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.263158
0
0.263158
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
25d7976879a548d93631d96656f409936b5a7a1c
257
py
Python
ps0/ps0.py
huxiaoyanghfut/MIT6.0001-Problem-Sets-MySoulution
a2eef08fc02bdf00977127a5073aabd0ef9ed7e6
[ "MIT" ]
null
null
null
ps0/ps0.py
huxiaoyanghfut/MIT6.0001-Problem-Sets-MySoulution
a2eef08fc02bdf00977127a5073aabd0ef9ed7e6
[ "MIT" ]
null
null
null
ps0/ps0.py
huxiaoyanghfut/MIT6.0001-Problem-Sets-MySoulution
a2eef08fc02bdf00977127a5073aabd0ef9ed7e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat May 4 21:43:19 2019 @author: asus """ """ The first step in python """ import math x = int(input("Enter number x:")) y = int(input("Enter number y: ")) print("x**y = ", x**y) print("log2(x) = ", math.log2(x))
14.277778
35
0.568093
44
257
3.318182
0.659091
0.041096
0.178082
0.260274
0
0
0
0
0
0
0
0.067308
0.190661
257
17
36
15.117647
0.634615
0.284047
0
0
0
0
0.340426
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
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
25dd5c6bf6a85461b319e0a8d42fd4892b4859e9
586
py
Python
pizzas/io_files/__init__.py
corderop/hashcode-2022-traning
b62286eee0a477b6548591e4607c7eaacb00e0ec
[ "MIT" ]
null
null
null
pizzas/io_files/__init__.py
corderop/hashcode-2022-traning
b62286eee0a477b6548591e4607c7eaacb00e0ec
[ "MIT" ]
null
null
null
pizzas/io_files/__init__.py
corderop/hashcode-2022-traning
b62286eee0a477b6548591e4607c7eaacb00e0ec
[ "MIT" ]
null
null
null
from io_files.dataclass import ProblemData, SolutionData def user_has_not_provided_arguments(args): return len(args) <= 2 def read_file(filename: str) -> ProblemData: file_content = open(filename, 'r').read() lines = file_content.split("\n") line_1 = lines[0].split(" ") line_2 = [ int(el) for el ...
29.3
60
0.656997
84
586
4.357143
0.52381
0.040984
0.043716
0
0
0
0
0
0
0
0
0.021186
0.194539
586
20
60
29.3
0.754237
0
0
0
0
0
0.086882
0.044293
0
0
0
0
0
1
0.2
false
0
0.066667
0.133333
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
0
1
0
0
0
1
25dfd8647572a9a99a1bbc83d98364151ef44751
1,882
py
Python
democracylab/migrations/0003_auto_20180911_0124.py
DemocracyLab/DemocracyLab-CivicTechExchange
eec4715373679259318ff6c384c815acebf0831f
[ "MIT" ]
64
2017-09-30T16:23:43.000Z
2022-03-30T23:26:50.000Z
democracylab/migrations/0003_auto_20180911_0124.py
DemocracyLab/DemocracyLab-CivicTechExchange
eec4715373679259318ff6c384c815acebf0831f
[ "MIT" ]
339
2017-10-26T06:59:14.000Z
2022-03-10T22:34:29.000Z
democracylab/migrations/0003_auto_20180911_0124.py
DemocracyLab/DemocracyLab-CivicTechExchange
eec4715373679259318ff6c384c815acebf0831f
[ "MIT" ]
58
2017-09-16T17:25:10.000Z
2022-03-04T18:14:02.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2018-09-11 01:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0002_auto_20150616_2121'),...
35.509434
192
0.61796
180
1,882
6.288889
0.483333
0.039753
0.081272
0.095406
0.337456
0.337456
0.169611
0.102474
0.102474
0.102474
0
0.028881
0.264081
1,882
52
193
36.192308
0.788448
0.036132
0
0.333333
1
0
0.215351
0.12148
0
0
0
0
0
1
0
false
0
0.088889
0
0.155556
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
25e0e5ef25a06368bb1a2d35a7cf4ae5e85406f2
1,699
py
Python
STT/STT_DeepSpeech/DataProcessingComponents/input_validator.py
SRFG-MAT/RoboGen-DeepSpeechServices
eab5ee4bf8b9a4bc0758c6173447f2c5bb15d171
[ "MIT" ]
null
null
null
STT/STT_DeepSpeech/DataProcessingComponents/input_validator.py
SRFG-MAT/RoboGen-DeepSpeechServices
eab5ee4bf8b9a4bc0758c6173447f2c5bb15d171
[ "MIT" ]
null
null
null
STT/STT_DeepSpeech/DataProcessingComponents/input_validator.py
SRFG-MAT/RoboGen-DeepSpeechServices
eab5ee4bf8b9a4bc0758c6173447f2c5bb15d171
[ "MIT" ]
null
null
null
import fuzzy import Levenshtein from STT_DeepSpeech.DataProcessingComponents.data_processing_result import DataProcessingResult class Validator: soundex = fuzzy.Soundex(4) def __init__(self, key_sentences : dict): self.key_sentences = key_sentences def validate_phonetic_similarities(self, in...
34.673469
121
0.716892
210
1,699
5.471429
0.261905
0.086162
0.069626
0.041775
0.326371
0.24282
0.24282
0.24282
0.167972
0.13403
0
0.002965
0.206004
1,699
48
122
35.395833
0.848777
0.043555
0
0
0
0
0.021578
0
0
0
0
0
0
1
0.142857
false
0
0.107143
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
25e4ffd3a82d09edcc383debc02d5adc57bf9590
1,446
py
Python
backend/libs/expiry_token_authentication.py
AurelienGasser/substra-backend
c963f9b0521c7ebd878ea42fd9be9acfddf9f61d
[ "Apache-2.0" ]
37
2019-10-25T13:31:20.000Z
2021-05-29T05:27:50.000Z
backend/libs/expiry_token_authentication.py
AurelienGasser/substra-backend
c963f9b0521c7ebd878ea42fd9be9acfddf9f61d
[ "Apache-2.0" ]
217
2019-10-29T16:01:03.000Z
2021-05-25T13:06:29.000Z
backend/libs/expiry_token_authentication.py
AurelienGasser/substra-backend
c963f9b0521c7ebd878ea42fd9be9acfddf9f61d
[ "Apache-2.0" ]
13
2019-10-25T13:46:36.000Z
2021-03-16T16:59:04.000Z
from django.conf import settings from rest_framework.authentication import TokenAuthentication from rest_framework.authtoken.models import Token from rest_framework.exceptions import AuthenticationFailed from datetime import timedelta from django.utils import timezone # this return left time def expires_at(token): ...
29.510204
87
0.737898
186
1,446
5.591398
0.349462
0.077885
0.067308
0.054808
0.242308
0.242308
0.242308
0.242308
0.242308
0.242308
0
0.000866
0.201245
1,446
48
88
30.125
0.899567
0.201936
0
0.230769
0
0
0.036673
0.018784
0
0
0
0
0
1
0.153846
false
0
0.230769
0.038462
0.576923
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
25f0ae64ce94e627d7a11b595f70966f2b322ca1
8,602
py
Python
buildbot_ros_cfg/ros_deb.py
ipa-led/buildbot-ros
bb2ef9be35dfa518cfe6f46d188df173749b3316
[ "Apache-2.0" ]
null
null
null
buildbot_ros_cfg/ros_deb.py
ipa-led/buildbot-ros
bb2ef9be35dfa518cfe6f46d188df173749b3316
[ "Apache-2.0" ]
null
null
null
buildbot_ros_cfg/ros_deb.py
ipa-led/buildbot-ros
bb2ef9be35dfa518cfe6f46d188df173749b3316
[ "Apache-2.0" ]
1
2019-10-07T12:01:21.000Z
2019-10-07T12:01:21.000Z
from buildbot.config import BuilderConfig from buildbot.process.factory import BuildFactory from buildbot.process.properties import Interpolate from buildbot.steps.source.git import Git from buildbot.steps.shell import ShellCommand, SetPropertyFromCommand from buildbot.steps.transfer import FileUpload, FileDownload fro...
42.584158
139
0.570332
841
8,602
5.744352
0.286564
0.026496
0.029601
0.049679
0.289795
0.196647
0.162906
0.086939
0.017802
0
0
0.003738
0.315857
8,602
201
140
42.79602
0.817162
0.197163
0
0.255952
0
0
0.180134
0.079492
0
0
0
0
0
0
null
null
0
0.065476
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
25f150432da3cedaf901b1672663d109131a3cfe
1,811
py
Python
examples/network/Pool.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/network/Pool.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/network/Pool.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python # coding=utf-8 import sys from openstack import connection from openstack import utils # utils.enable_logging(debug=True, stream=sys.stdout) username = "xxxxxxxxxxx" password = "xxxxxxxxxxx" projectId = "xxxxxxxxxxx" userDomainId = "xxxxxxxxxx" auth_url = "xxxxxxxxxx" conn = conne...
27.029851
83
0.588073
212
1,811
4.721698
0.377358
0.071928
0.08991
0.047952
0.203796
0.04995
0
0
0
0
0
0.019624
0.324683
1,811
67
84
27.029851
0.798855
0.069023
0
0
0
0
0.131107
0.022263
0
0
0
0
0
0
null
null
0.043478
0.065217
null
null
0.065217
0
0
0
null
0
0
0
0
0
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
25f93b7e940c179811e1c06b052507b19a909c5a
2,065
py
Python
src/datapane/__init__.py
datapane/datapane
859c3cc76eb8da123139ba2bba09da81983ffd75
[ "Apache-2.0" ]
481
2020-04-25T05:40:21.000Z
2022-03-30T22:04:35.000Z
src/datapane/__init__.py
datapane/datapane
859c3cc76eb8da123139ba2bba09da81983ffd75
[ "Apache-2.0" ]
74
2020-04-28T10:47:35.000Z
2022-03-14T15:50:55.000Z
src/datapane/__init__.py
datapane/datapane
859c3cc76eb8da123139ba2bba09da81983ffd75
[ "Apache-2.0" ]
41
2020-07-21T16:30:21.000Z
2022-02-21T22:50:27.000Z
# Copyright 2020 StackHut Limited (trading as Datapane) # SPDX-License-Identifier: Apache-2.0 # flake8: noqa F401 import os import sys from pathlib import Path try: from ._version import __rev__ except ImportError: # NOTE - could use subprocess to get from git? __rev__ = "local" __version__ = "0.12.3" _T...
23.202247
82
0.692978
286
2,065
4.804196
0.517483
0.026201
0.026201
0.032751
0
0
0
0
0
0
0
0.010455
0.212591
2,065
88
83
23.465909
0.834563
0.237288
0
0.029412
0
0
0.055058
0
0
0
0
0.011364
0
1
0
false
0
0.161765
0
0.161765
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
25f9ac4f07adc34c5e05873e6458bb486b54634e
577
py
Python
local/local/models.py
pf12345/Local-application
129570fedcf24c7e16b15c78f9dc26148d8dbcac
[ "MIT" ]
null
null
null
local/local/models.py
pf12345/Local-application
129570fedcf24c7e16b15c78f9dc26148d8dbcac
[ "MIT" ]
null
null
null
local/local/models.py
pf12345/Local-application
129570fedcf24c7e16b15c78f9dc26148d8dbcac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pymongo import MongoClient import settings import datetime #连接 client=MongoClient('mongodb://127.0.0.1:27017/') db = client[settings.DBNAME] def getCollection(collection): if(collection): return db[collection] else: return None def saveWeibo(article): articleCollection = getCo...
20.607143
62
0.712305
68
577
5.941176
0.617647
0.034653
0
0
0
0
0
0
0
0
0
0.023857
0.12825
577
27
63
21.37037
0.779324
0.039861
0
0
0
0
0.165154
0.047187
0
0
0
0
0
0
null
null
0
0.1875
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d31484d1b2976146e8009d7ef5e367d7548822dd
394
py
Python
taesko/fast_tasks/ft/__init__.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
taesko/fast_tasks/ft/__init__.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
taesko/fast_tasks/ft/__init__.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template from ft.api import API app = Flask(__name__) app.register_blueprint(API, url_prefix='/api') @app.route('/') def index(): return render_template('index.html', fast_tasks=[{'name': 'labyrinth', 'url': "/interactive/labyrinth"}]) @app.route('/interactive/:task_name:') de...
21.888889
109
0.718274
52
394
5.192308
0.442308
0.155556
0.148148
0
0
0
0
0
0
0
0
0
0.114213
394
17
110
23.176471
0.773639
0
0
0
0
0
0.208122
0.116751
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
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
0
0
1
0
0
0
1
d31541fcb53a35cdbf32c55c072da6e8ae5437fe
232
py
Python
ch9/wave_simulator.py
PacktPublishing/Learn-Quantum-Computing-with-Python
e74caf12609ce848de2636019dd15f90d1f3189f
[ "MIT" ]
1
2020-07-09T15:38:59.000Z
2020-07-09T15:38:59.000Z
ch9/wave_simulator.py
PacktPublishing/Learn-Quantum-Computing-with-Python
e74caf12609ce848de2636019dd15f90d1f3189f
[ "MIT" ]
null
null
null
ch9/wave_simulator.py
PacktPublishing/Learn-Quantum-Computing-with-Python
e74caf12609ce848de2636019dd15f90d1f3189f
[ "MIT" ]
2
2019-04-05T14:42:23.000Z
2019-04-19T16:09:27.000Z
from pyquil.api import WavefunctionSimulator from pyquil import Program from pyquil.gates import * prog = Program( H(0), CNOT(0, 1), ) print(prog) wavefunction = WavefunctionSimulator().wavefunction(prog) print(wavefunction)
23.2
57
0.767241
28
232
6.357143
0.5
0.168539
0
0
0
0
0
0
0
0
0
0.014925
0.133621
232
10
58
23.2
0.870647
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.2
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
d32b28226a49ae4e822045ffc3a69fa37ef6488d
1,152
py
Python
go/decorators.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
51
2019-08-18T18:18:42.000Z
2022-02-09T07:44:42.000Z
go/decorators.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
28
2019-08-19T04:10:52.000Z
2020-12-09T16:39:26.000Z
go/decorators.py
localhots/sublime-go
960e72dafdb6c69d78bb5cbd88052540342517b9
[ "MIT" ]
4
2019-11-12T20:39:54.000Z
2021-07-30T09:57:32.000Z
import sublime import time from . import log def trace(func): def tracer(*args, **kwargs): start = now() name = nameof(func) if log.TRACE: print('(go trace) {}'.format(name)) resp = func(*args, **kwargs) if log.TRACE: print('(go trace) {} ({}ms)'.format( name, now() -...
19.2
47
0.577257
153
1,152
4.254902
0.326797
0.138249
0.107527
0.046083
0.067588
0.067588
0
0
0
0
0
0.003513
0.258681
1,152
59
48
19.525424
0.758782
0
0
0.04
0
0
0.039096
0
0
0
0
0
0
1
0.22
false
0
0.06
0.06
0.46
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d330017fa18033e5817468b98828a9565be5c733
1,540
py
Python
simple_cb/simple_cb.py
zbelateche/ee272_cgra
4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2
[ "BSD-3-Clause" ]
1
2020-07-23T02:57:12.000Z
2020-07-23T02:57:12.000Z
simple_cb/simple_cb.py
zbelateche/ee272_cgra
4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2
[ "BSD-3-Clause" ]
null
null
null
simple_cb/simple_cb.py
zbelateche/ee272_cgra
4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2
[ "BSD-3-Clause" ]
1
2021-04-27T23:13:43.000Z
2021-04-27T23:13:43.000Z
import math from bit_vector import BitVector from common.configurable_model import ConfigurableModel import fault def gen_simple_cb(width: int, num_tracks: int): CONFIG_ADDR_WIDTH = 32 CONFIG_DATA_WIDTH = 32 CONFIG_ADDR = BitVector(0, CONFIG_ADDR_WIDTH) sel_bits = math.ceil(math.log...
30.8
79
0.62987
190
1,540
4.836842
0.384211
0.097933
0.052231
0.043526
0
0
0
0
0
0
0
0.011916
0.291558
1,540
49
80
31.428571
0.830431
0.114935
0
0
0
0
0
0
0
0
0
0.020408
0.057143
1
0.171429
false
0
0.114286
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d34498902332618c426192d0605c3c8ba28ab80a
1,315
py
Python
stream_framework/feeds/cassandra.py
amitpatra/Stream-Framework
2c40d537fc5a8b3d721060f33b817fb0ca5ec2ee
[ "BSD-3-Clause" ]
null
null
null
stream_framework/feeds/cassandra.py
amitpatra/Stream-Framework
2c40d537fc5a8b3d721060f33b817fb0ca5ec2ee
[ "BSD-3-Clause" ]
null
null
null
stream_framework/feeds/cassandra.py
amitpatra/Stream-Framework
2c40d537fc5a8b3d721060f33b817fb0ca5ec2ee
[ "BSD-3-Clause" ]
null
null
null
from stream_framework import settings from stream_framework.feeds.base import BaseFeed from stream_framework.storage.cassandra.activity_storage import CassandraActivityStorage from stream_framework.storage.cassandra.timeline_storage import CassandraTimelineStorage from stream_framework.serializers.cassandra.activity_se...
32.875
98
0.774144
137
1,315
7.218978
0.430657
0.091001
0.096057
0.052578
0.070779
0
0
0
0
0
0
0
0.179468
1,315
39
99
33.717949
0.916589
0.229658
0
0
0
0
0.03125
0
0
0
0
0
0
1
0.055556
false
0
0.277778
0
0.777778
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
d345865d118ab5c08209a9370cd3096c2ce126fd
1,699
py
Python
python/tests/avro/test_file.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
1
2021-11-18T02:27:29.000Z
2021-11-18T02:27:29.000Z
python/tests/avro/test_file.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
null
null
null
python/tests/avro/test_file.py
felixYyu/iceberg
120cbe9a5db4cedec76d2a7f097ec67de9c25c96
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
34.673469
75
0.736904
236
1,699
5.237288
0.449153
0.048544
0.080906
0.084142
0.262945
0.235437
0.150485
0.07767
0.07767
0.07767
0
0.011372
0.171866
1,699
48
76
35.395833
0.867093
0.450265
0
0.105263
0
0
0.120087
0
0
0
0
0
0.210526
1
0.210526
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d345b10b3e21bc4dca03aa99a685953d499c5d2c
872
py
Python
Diccionarios/ejercicio3.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
Diccionarios/ejercicio3.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
Diccionarios/ejercicio3.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
usuarios={ "iperurena": { "nombre": "Iñaki", "apellido": "Perurena", "password": "123123" }, "fmuguruza": { "nombre": "Fermín", "apellido": "Muguruza", "password": "654321" }, "aolaizola": { ...
24.914286
49
0.459862
74
872
5.418919
0.567568
0.05985
0.084788
0
0
0
0
0
0
0
0
0.039474
0.389908
872
35
50
24.914286
0.714286
0
0
0.060606
0
0
0.264605
0
0
0
0
0
0
1
0
false
0.090909
0
0
0
0.121212
0
0
0
null
0
0
0
0
0
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
d345e29ddde326ce0807da7514f7c35908402aa9
898
py
Python
src/templates/pyDataVizDay.py
WaylonWalker/pyDataVizDay
3441570a5adf7322d4c1ad74ecc2ac73dc306d46
[ "MIT" ]
1
2017-07-04T12:26:06.000Z
2017-07-04T12:26:06.000Z
src/templates/pyDataVizDay.py
WaylonWalker/pyDataVizDay
3441570a5adf7322d4c1ad74ecc2ac73dc306d46
[ "MIT" ]
null
null
null
src/templates/pyDataVizDay.py
WaylonWalker/pyDataVizDay
3441570a5adf7322d4c1ad74ecc2ac73dc306d46
[ "MIT" ]
null
null
null
""" PyDataVizDay A python implementation of the Data Viz Day visualization built from the Kaggle IMDB 5000 Movie Dataset. """ from flask import Flask from flask import request, render_template, make_response, jsonify app = Flask(__name__): @app.route('/') def index(): return render_template('index.html', bod...
28.0625
80
0.700445
113
898
5.362832
0.575221
0.044554
0.084158
0.066007
0.082508
0
0
0
0
0
0
0.01043
0.14588
898
32
81
28.0625
0.779661
0.069042
0
0
0
0
0.132956
0
0
0
0
0
0
0
null
null
0
0.1875
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
d3474c5a21e684a8f1d68c581f9c46fe1f2d33c2
2,800
py
Python
host-discovery-icmp.py
rudissaar/arsenal
22ca6c93446f9c732bda2dcf9282a84628d8db99
[ "MIT" ]
null
null
null
host-discovery-icmp.py
rudissaar/arsenal
22ca6c93446f9c732bda2dcf9282a84628d8db99
[ "MIT" ]
null
null
null
host-discovery-icmp.py
rudissaar/arsenal
22ca6c93446f9c732bda2dcf9282a84628d8db99
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=anomalous-backslash-in-string # pylint: disable=invalid-name # pylint: disable=line-too-long # pylint: disable=redefined-builtin # pylint: disable=undefined-variable # pylint: disable=unused-wildcard-import # pylint: disable=wildcard-import # pylint: disab...
30.107527
233
0.638929
481
2,800
3.60499
0.297297
0.023068
0.036332
0.009227
0.239331
0.188005
0.076125
0.046136
0.046136
0.046136
0
0.057232
0.195
2,800
92
234
30.434783
0.712067
0.116071
0
0.153846
0
0.019231
0.31606
0.097106
0
0
0
0
0
0
null
null
0.019231
0.076923
null
null
0.269231
0
0
0
null
0
0
0
0
0
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
d34c97e064c545a7628e8c2e147091879d3ca400
2,372
py
Python
datasets.py
RandallBalestriero/DNN
37df842a9fb8c69c49c3f55a7b6008ea3039cb65
[ "MIT" ]
null
null
null
datasets.py
RandallBalestriero/DNN
37df842a9fb8c69c49c3f55a7b6008ea3039cb65
[ "MIT" ]
null
null
null
datasets.py
RandallBalestriero/DNN
37df842a9fb8c69c49c3f55a7b6008ea3039cb65
[ "MIT" ]
null
null
null
from pylab import * execfile('lasagne_tf.py') from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.datasets import make_moons, make_circles, make_classification from sklearn.neural_network import MLPClassifier from sklearn.neighbors import KNeighborsClassi...
33.885714
98
0.702782
375
2,372
4.261333
0.32
0.082603
0.025031
0.041302
0.227159
0.220275
0.190238
0.190238
0.190238
0.190238
0
0.020761
0.147133
2,372
69
99
34.376812
0.769155
0.008853
0
0.150943
0
0
0.008951
0
0
0
0
0
0
0
null
null
0
0.245283
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