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
da0cc012c8071ddd102f587a464226bdf7578158
1,381
py
Python
app.py
dhairyaostwal/bankingo
cc148940a9d4ae60d80acdc2e3c90a01a8a99c46
[ "MIT" ]
2
2021-12-11T02:32:35.000Z
2021-12-12T08:42:41.000Z
app.py
dhairyaostwal/bankingo
cc148940a9d4ae60d80acdc2e3c90a01a8a99c46
[ "MIT" ]
null
null
null
app.py
dhairyaostwal/bankingo
cc148940a9d4ae60d80acdc2e3c90a01a8a99c46
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import pickle app = Flask(__name__) userInput = [] @app.route("/", methods=["GET", "POST"]) def hello(): userInput.clear() if request.method == "POST": variance = request.form.get("variance") skewness = request.form.get("skewness") cu...
26.557692
54
0.620565
152
1,381
5.5
0.447368
0.100478
0.119617
0.07177
0.165072
0
0
0
0
0
0
0.002882
0.246198
1,381
52
55
26.557692
0.800192
0.041274
0
0.108108
0
0
0.145234
0
0
0
0
0
0
1
0.081081
false
0
0.054054
0.054054
0.27027
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da0d025051a5ed1885fbb8e49bb40af12912744c
3,210
py
Python
AlarmTimer.py
amjith/PyAlarmTimer
f664daa42d9ec70fc7ac512ce71868c703e8a011
[ "MIT" ]
2
2015-01-13T00:36:29.000Z
2015-04-12T19:17:32.000Z
AlarmTimer.py
amjith/PyAlarmTimer
f664daa42d9ec70fc7ac512ce71868c703e8a011
[ "MIT" ]
1
2015-01-12T23:02:28.000Z
2015-01-13T00:36:26.000Z
AlarmTimer.py
amjith/PyAlarmTimer
f664daa42d9ec70fc7ac512ce71868c703e8a011
[ "MIT" ]
null
null
null
import sys from PyQt4 import QtCore, QtGui from itertools import cycle from Resources.LcdNumber_ui import Ui_Form class AlarmTimer(QtGui.QMainWindow): def __init__(self, timer_values, parent=None): QtGui.QWidget.__init__(self, parent) QtGui.QMainWindow.__init__(self, None, QtCore.Qt.WindowStaysOn...
33.092784
121
0.610592
385
3,210
4.942857
0.348052
0.046243
0.063058
0.033631
0.20494
0.139254
0.119285
0.037835
0
0
0
0.014442
0.288162
3,210
96
122
33.4375
0.818381
0.098131
0
0.213333
0
0
0.03294
0
0
0
0
0
0
1
0.12
false
0
0.053333
0
0.226667
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
0
0
1
0
da0dfc1a5ddc1f3fd9cff38b3e12d87c2cfff865
3,200
py
Python
backend/handlers/graphql/resolvers/quota.py
al-indigo/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
null
null
null
backend/handlers/graphql/resolvers/quota.py
al-indigo/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
8
2017-10-11T13:26:10.000Z
2021-12-13T20:27:52.000Z
backend/handlers/graphql/resolvers/quota.py
ispras/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
4
2017-07-27T12:25:42.000Z
2018-01-28T02:06:26.000Z
from graphql import ResolveInfo from rethinkdb.errors import ReqlNonExistenceError from handlers.graphql.graphql_handler import ContextProtocol from handlers.graphql.types.pool import Quota from handlers.graphql.utils.query import resolve_from_root import constants.re as re from utils.quota import check_vdi_size, chec...
32
123
0.690938
446
3,200
4.748879
0.201794
0.037771
0.0661
0.054769
0.621341
0.556185
0.556185
0.556185
0.508026
0.429651
0
0.000792
0.210625
3,200
99
124
32.323232
0.837688
0
0
0.478873
0
0
0.101753
0
0
0
0
0
0
1
0.070423
false
0
0.140845
0
0.309859
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
0
0
1
0
da0e334dd350b538cbe6369f8de20266f08cd7ab
23,670
py
Python
webapp/creators/parse_eml.py
PASTAplus/umbra
25f179801ab86d6506759b19849de1f7a8bf9e8d
[ "Apache-2.0" ]
null
null
null
webapp/creators/parse_eml.py
PASTAplus/umbra
25f179801ab86d6506759b19849de1f7a8bf9e8d
[ "Apache-2.0" ]
null
null
null
webapp/creators/parse_eml.py
PASTAplus/umbra
25f179801ab86d6506759b19849de1f7a8bf9e8d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ :Mod: propagate_names :Synopsis: Parse EML files to collect information on the responsible parties, creating RESPONSIBLE_PARTIES_TEXT_FILE. :Author: ide :Created: 6/1/21 """ from enum import Enum, auto import glob import os import pickle import daiquiri fr...
35.170877
159
0.673722
2,855
23,670
5.239229
0.100525
0.041182
0.015644
0.020858
0.574007
0.518853
0.458484
0.391496
0.334336
0.324041
0
0.00245
0.241318
23,670
672
160
35.223214
0.830493
0.075792
0
0.323045
0
0
0.039316
0.021583
0
0
0
0
0
1
0.098765
false
0.004115
0.026749
0.018519
0.257202
0.00823
0
0
0
null
0
0
0
0
0
0
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
1
0
da0fb1e76df7bb263d04fdeb069e451fb04e547a
2,756
py
Python
pp/components/ring_single.py
flaport/gdsfactory
1f2e844c1fe27b9c6340e2d51500fd3358fa16e5
[ "MIT" ]
8
2020-08-25T11:25:18.000Z
2022-03-27T11:32:11.000Z
pp/components/ring_single.py
flaport/gdsfactory
1f2e844c1fe27b9c6340e2d51500fd3358fa16e5
[ "MIT" ]
null
null
null
pp/components/ring_single.py
flaport/gdsfactory
1f2e844c1fe27b9c6340e2d51500fd3358fa16e5
[ "MIT" ]
1
2022-03-04T07:03:29.000Z
2022-03-04T07:03:29.000Z
from typing import Callable from pp.cell import cell from pp.component import Component from pp.components.bend_circular import bend_circular from pp.components.coupler_ring import coupler_ring from pp.components.waveguide import waveguide as waveguide_function from pp.config import call_if_func from pp.drc import ass...
27.56
90
0.645501
400
2,756
4.2575
0.25
0.032883
0.023488
0.017616
0.086905
0.086905
0.050499
0.050499
0.050499
0
0
0.018634
0.240566
2,756
99
91
27.838384
0.795031
0.286647
0
0
0
0
0.021552
0
0
0
0
0
0.039216
1
0.019608
false
0
0.176471
0
0.215686
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
0
0
1
0
da1152e98be68574744964ed8c665a43ee954229
13,297
py
Python
src/services/db/oracle.py
daesnorey/PPRJ
f826eb194f895d13522f61a51a5100a5cdbead99
[ "Apache-2.0" ]
null
null
null
src/services/db/oracle.py
daesnorey/PPRJ
f826eb194f895d13522f61a51a5100a5cdbead99
[ "Apache-2.0" ]
null
null
null
src/services/db/oracle.py
daesnorey/PPRJ
f826eb194f895d13522f61a51a5100a5cdbead99
[ "Apache-2.0" ]
null
null
null
"""oracle.py. db_connection.py file will contain the connection behaviour to the database """ import traceback import random import copy import cx_Oracle import json from src.objects.third import Third from src.services.db.db_types import DbTypes class Oracle(object): """Oracle class will handle the conection to...
31.88729
137
0.518087
1,379
13,297
4.704859
0.166062
0.010789
0.012947
0.015413
0.183724
0.156134
0.120376
0.110512
0.083847
0.083847
0
0.009855
0.381891
13,297
416
138
31.963942
0.779535
0.106565
0
0.250883
0
0
0.063891
0
0
0
0
0
0
1
0.053004
false
0.010601
0.024735
0
0.137809
0.045936
0
0
0
null
0
0
0
0
0
0
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
1
0
da11fc5980e78cefaeb92357886c125f256182a0
439
py
Python
exercicio_py/ex0007_progressao_aritmetica/main_v1.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
exercicio_py/ex0007_progressao_aritmetica/main_v1.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
exercicio_py/ex0007_progressao_aritmetica/main_v1.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
######## # autora: danielle8farias@gmail.com # repositório: https://github.com/danielle8farias # Descrição: Usuário informa o 1º termo de uma PA e sua razão. O programa retorna os 10 primeiros termos dessa PA. ######## A1 = int(input('Primeiro termo: ')) r = int(input('Razão: ')) i = 1 An = A1 while i < 11: pri...
23.105263
114
0.610478
65
439
4.123077
0.676923
0.022388
0
0
0
0
0
0
0
0
0
0.037791
0.216401
439
18
115
24.388889
0.741279
0.537585
0
0
0
0
0.187845
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
0
0
0
null
0
0
0
0
0
0
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
1
0
da12532f996b1734f9456dcccabecc881b1e321b
2,165
py
Python
rns/viz.py
matwilso/relation-networks
66c67b342a90ae3699e576dcec883c329905b2e0
[ "MIT" ]
null
null
null
rns/viz.py
matwilso/relation-networks
66c67b342a90ae3699e576dcec883c329905b2e0
[ "MIT" ]
null
null
null
rns/viz.py
matwilso/relation-networks
66c67b342a90ae3699e576dcec883c329905b2e0
[ "MIT" ]
null
null
null
import io import os import matplotlib.pyplot as plt import matplotlib.patches as mpatches import seaborn as sns from rns.constant import W, H # Plotter functions PLOT_FUNCS = {} def register_plotter(func): PLOT_FUNCS[func.__name__] = func def func_wrapper(images, **conv_kwargs): return func(images, **...
27.0625
112
0.639261
332
2,165
4.03012
0.298193
0.041854
0.053812
0.038864
0.168161
0.129297
0.129297
0.068759
0.068759
0.068759
0
0.021155
0.192148
2,165
79
113
27.405063
0.743854
0.022633
0
0.109375
0
0
0.063003
0
0
0
0
0
0
1
0.125
false
0
0.09375
0.015625
0.3125
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
0
0
1
0
da160107a31d4d4dd133e4fba3b2b4c6286bd983
2,955
py
Python
pycurb/time_rule.py
azavea/PyCurb
9492ca40b0639680b73aa7bdfcf9f744f9e75727
[ "Apache-2.0" ]
null
null
null
pycurb/time_rule.py
azavea/PyCurb
9492ca40b0639680b73aa7bdfcf9f744f9e75727
[ "Apache-2.0" ]
8
2020-09-30T17:15:50.000Z
2020-10-23T21:00:53.000Z
pycurb/time_rule.py
azavea/PyCurb
9492ca40b0639680b73aa7bdfcf9f744f9e75727
[ "Apache-2.0" ]
null
null
null
from abc import ABC from pycurb.utils import (parse_date, parse_day_of_month, parse_day_of_week, parse_occurrence, parse_time) class TimeRule(ABC): pass class DaysOfWeek(TimeRule): def __init__(self, days, occurences_in_month=None): if isinstance(days, str): da...
26.863636
77
0.575973
394
2,955
4.068528
0.154822
0.044916
0.046787
0.059264
0.361822
0.25577
0.1335
0.1335
0.107299
0.107299
0
0.002844
0.285956
2,955
109
78
27.110092
0.756872
0
0
0.256098
0
0
0.042301
0
0
0
0
0
0
1
0.195122
false
0.012195
0.02439
0.097561
0.426829
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
0
0
1
0
da170ec47cebeb13d6c068d32835dcf9ac0425e1
2,653
py
Python
amrlib/models/parse_gsii/vocabs.py
plandes/amrlib
c31f92f05a265362367eea85f512e54030860147
[ "MIT" ]
103
2020-09-04T07:21:09.000Z
2022-03-31T23:06:41.000Z
amrlib/models/parse_gsii/vocabs.py
plandes/amrlib
c31f92f05a265362367eea85f512e54030860147
[ "MIT" ]
39
2020-09-03T14:26:22.000Z
2022-03-08T20:18:59.000Z
amrlib/models/parse_gsii/vocabs.py
plandes/amrlib
c31f92f05a265362367eea85f512e54030860147
[ "MIT" ]
19
2020-09-30T12:15:08.000Z
2022-02-18T18:15:31.000Z
import os PAD, UNK, DUM, NIL, END, CLS = '<PAD>', '<UNK>', '<DUMMY>', '<NULL>', '<END>', '<CLS>' # Note: for the function that saves the vocabs, see create_vocabs.py def get_vocabs(vocab_dir): vocabs = dict() vocabs['tok'] = Vocab(os.path.join(vocab_dir, 'tok_vocab'), 5, [CLS]) vocabs['l...
37.366197
110
0.574821
344
2,653
4.235465
0.264535
0.054907
0.067948
0.092656
0.289636
0.264928
0.156486
0.043926
0
0
0
0.017433
0.286468
2,653
70
111
37.9
0.752245
0.024878
0
0.087719
0
0
0.083172
0.009671
0
0
0
0
0
1
0.140351
false
0
0.017544
0.070175
0.333333
0.017544
0
0
0
null
0
0
0
0
0
0
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
1
0
da1752aa56e3a9f32b692a7cdcc8c12c9105eaac
1,139
py
Python
MAR2020/MakingChange.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
MAR2020/MakingChange.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
MAR2020/MakingChange.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
#Given a list of possible coins in cents, and an amount (in cents) n, # return the minimum number of coins needed to create the amount n. # If it is not possible to create the amount using the given coin denomination, return None. #Here's an example and some starter code: #ANalysis, sort the list of possible coins O(n...
28.475
92
0.603161
191
1,139
3.534031
0.445026
0.059259
0.066667
0.071111
0.140741
0.093333
0.093333
0
0
0
0
0.050971
0.276558
1,139
40
93
28.475
0.768204
0.510975
0
0
0
0
0.04059
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da1ae3572abdad23c9e302bb355fe093cb9ac8e8
1,981
py
Python
graphid/util/util_grabdata.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
4
2019-03-04T02:49:26.000Z
2021-10-06T00:51:13.000Z
graphid/util/util_grabdata.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
1
2019-02-15T23:42:26.000Z
2019-02-15T23:42:26.000Z
graphid/util/util_grabdata.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
null
null
null
import ubelt as ub from os.path import exists # NOQA TESTIMG_URL_DICT = { 'astro.png' : 'https://i.imgur.com/KXhKM72.png', # Use instead of 'carl.jpg' : 'http://i.imgur.com/flTHWFD.jpg', 'grace.jpg' : 'http://i.imgur.com/rgQyu7r.jpg', 'jeff.png' : 'http://i.imgur.com/l00rECD.png', 'ada2.jpg' :...
34.754386
86
0.627461
273
1,981
4.399267
0.432234
0.064946
0.097419
0.129892
0.159867
0
0
0
0
0
0
0.01297
0.221605
1,981
56
87
35.375
0.765888
0.218576
0
0
0
0
0.40268
0
0
0
0
0
0.03125
1
0.03125
false
0
0.09375
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da1d6a02eeb844897d0b4f2d15640a391973f96d
1,971
py
Python
ENotePadAlgorithm/strEncrypt/Morse.py
xioacd99/EnhancedNotePad
b95da1c4d957061ad60015f3b9ab5c445b5a1bc4
[ "MIT" ]
null
null
null
ENotePadAlgorithm/strEncrypt/Morse.py
xioacd99/EnhancedNotePad
b95da1c4d957061ad60015f3b9ab5c445b5a1bc4
[ "MIT" ]
null
null
null
ENotePadAlgorithm/strEncrypt/Morse.py
xioacd99/EnhancedNotePad
b95da1c4d957061ad60015f3b9ab5c445b5a1bc4
[ "MIT" ]
null
null
null
# encode时会将非ANSII字符变为空格 # decode时会跳过非ANSII字符 # 摩斯电码加密的字符只有字符,数字,标点,不区分大小写 class MorseCoder: def __init__(self): self.encode_alphabet = {"A": ".-", "B": "-...", "C": "-.-.", "D": "-..", # 加密对照表 "E": ".", "F": "..-.", "G": "--.", "H": "....", "...
41.0625
115
0.367326
152
1,971
4.611842
0.526316
0.071327
0.10271
0.051355
0.068474
0.068474
0
0
0
0
0
0.014377
0.364789
1,971
47
116
41.93617
0.545527
0.060883
0
0
0
0
0.124864
0
0
0
0
0
0
1
0.171429
false
0
0
0.085714
0.342857
0.028571
0
0
0
null
0
0
0
0
0
0
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
1
0
da1fedbc0ae28396d7b17794e490d8e258826958
4,800
py
Python
Yolov3_deepsort/Badminton_Service/player.py
Haosam/BadmintonAI
4a1e837109cd279fb7480b90b31003c259e063cf
[ "Apache-2.0" ]
null
null
null
Yolov3_deepsort/Badminton_Service/player.py
Haosam/BadmintonAI
4a1e837109cd279fb7480b90b31003c259e063cf
[ "Apache-2.0" ]
null
null
null
Yolov3_deepsort/Badminton_Service/player.py
Haosam/BadmintonAI
4a1e837109cd279fb7480b90b31003c259e063cf
[ "Apache-2.0" ]
null
null
null
from tkinter import * import cv2 # Global Variables, can be translated to database if it becomes production lcw = "Lee Chong Wei" swh = "Son Wan Ho" lyd = "Lee Yong Dae" kgj = "Kim Gi Jung" ksh = "Ko Sung Hyun" yys = "Yo Yeon Seong" csg = "Choi Sol Gyu" wcl = "Wang Chi-Lin" chl = "Chen Hung-Lin" lcw_hei...
33.103448
96
0.660417
692
4,800
4.453757
0.208092
0.034069
0.049319
0.019468
0.27255
0.209604
0.136924
0.100584
0.073978
0.073978
0
0.055221
0.17
4,800
145
97
33.103448
0.718373
0.043333
0
0.047244
0
0
0.15056
0
0
0
0
0
0
1
0.055118
false
0
0.015748
0
0.15748
0.03937
0
0
0
null
0
0
0
0
0
0
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
1
0
da2374aced1b72eebcc58d79ed22779475feb324
4,749
py
Python
scripts/install.py
discord-package-bot/discord-package-bot
109603c57a668d75f6939e3c97aae72f2691640e
[ "MIT" ]
1
2021-07-12T05:56:00.000Z
2021-07-12T05:56:00.000Z
scripts/install.py
discord-package-bot/discord-package-bot
109603c57a668d75f6939e3c97aae72f2691640e
[ "MIT" ]
null
null
null
scripts/install.py
discord-package-bot/discord-package-bot
109603c57a668d75f6939e3c97aae72f2691640e
[ "MIT" ]
null
null
null
""" syntax: | install <パッケージ> install update:<パッケージ> install file:<ファイル> syntax_description: | パッケージ: インストールするパッケージ。update:をつけると、パッケージが更新されます。 ファイル: エクスポートしたファイルのパス。 --- パッケージをインストールします。 """ import os import re import requests import shlex import shutil import subprocess import sys import yaml import zipfile ...
34.664234
116
0.579912
576
4,749
4.739583
0.28125
0.047619
0.028571
0.024908
0.18315
0.164469
0.106593
0.064469
0.064469
0
0
0.006683
0.243841
4,749
136
117
34.919118
0.752437
0.042114
0
0.159292
0
0.017699
0.299934
0.148646
0
0
0
0
0
1
0.026549
false
0.00885
0.097345
0
0.150442
0.106195
0
0
0
null
0
0
0
0
0
0
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
1
0
da24c7b3d7ea12e45a63e2df57343289b27d952a
1,565
py
Python
rlkeras/utils/memory.py
will-hcau/rlkeras
9cc36b238dae794197fcb8689a5a1ffa1c0a42c0
[ "MIT" ]
null
null
null
rlkeras/utils/memory.py
will-hcau/rlkeras
9cc36b238dae794197fcb8689a5a1ffa1c0a42c0
[ "MIT" ]
null
null
null
rlkeras/utils/memory.py
will-hcau/rlkeras
9cc36b238dae794197fcb8689a5a1ffa1c0a42c0
[ "MIT" ]
null
null
null
from collections import deque import numpy as np import random class RandomReplayBuffer(object): """Experience replay buffer that samples uniformly.""" def __init__(self, buffer_size): self.buffer_size = buffer_size self.buffer = deque(maxlen=buffer_size) def __len__(self): return...
28.454545
102
0.600639
207
1,565
4.318841
0.362319
0.0783
0.030201
0.044743
0.145414
0.145414
0.0783
0.0783
0.0783
0.0783
0
0.007353
0.304792
1,565
55
103
28.454545
0.814338
0.212141
0
0
0
0
0
0
0
0
0
0
0
1
0.137931
false
0
0.103448
0.034483
0.344828
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
0
0
1
0
da24d2c86b3410255d8a070349c1d9c6e890f449
6,335
py
Python
PathPlanning/RRTStar/rrt_star.py
cmuehlbacher/PythonRobotics
c66fccc71c681387ff61b59554694b25399ca790
[ "MIT" ]
38
2019-12-08T12:26:04.000Z
2022-03-06T11:29:08.000Z
PathPlanning/RRTStar/rrt_star.py
YoungGer/PythonRobotics
9b8f2bd88a3d516d8deb473693661c1aea59fe68
[ "MIT" ]
null
null
null
PathPlanning/RRTStar/rrt_star.py
YoungGer/PythonRobotics
9b8f2bd88a3d516d8deb473693661c1aea59fe68
[ "MIT" ]
15
2020-02-12T15:57:28.000Z
2021-08-28T07:39:18.000Z
""" Path planning Sample Code with RRT* author: Atsushi Sakai(@Atsushi_twi) """ import copy import math import os import sys import matplotlib.pyplot as plt sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../RRT/") try: from rrt import RRT except ImportError: raise show_an...
30.311005
99
0.572691
857
6,335
3.968495
0.199533
0.047339
0.056454
0.022934
0.206116
0.0788
0.051749
0.022346
0
0
0
0.011762
0.328966
6,335
208
100
30.456731
0.788285
0.06693
0
0.065693
0
0
0.020982
0
0
0
0
0
0
1
0.072993
false
0
0.051095
0
0.226277
0.036496
0
0
0
null
0
0
0
0
0
0
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
1
0
da2652bdef2ea0254c65e10f3f8343f49c9b32ff
745
py
Python
test/commentProcessor_test.py
ponder-lab/GitHub-Issue-Mining
5cff97bd2322894338c71f5ba7bd743e2e204a72
[ "MIT" ]
3
2021-04-18T04:07:35.000Z
2021-12-25T06:35:32.000Z
test/commentProcessor_test.py
ponder-lab/GitHub-Issue-Classifier
5cff97bd2322894338c71f5ba7bd743e2e204a72
[ "MIT" ]
4
2021-04-06T01:06:36.000Z
2021-08-06T00:34:53.000Z
test/commentProcessor_test.py
ponder-lab/GitHub-Issue-Mining
5cff97bd2322894338c71f5ba7bd743e2e204a72
[ "MIT" ]
null
null
null
from utils.commentProcessor import processComment TEST_CASES = [ { "test": "Hello this is a pre processed string", "expected_result": "hello pre processed string" }, { "test": "This string contains a screen name @y3pio tag", "expected_result": "this string contains screen na...
31.041667
77
0.628188
88
745
5.204545
0.431818
0.152838
0.078603
0
0
0
0
0
0
0
0
0.001808
0.257718
745
24
78
31.041667
0.826401
0
0
0
0
0
0.524129
0
0
0
0
0
0.045455
1
0.045455
false
0
0.045455
0
0.090909
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
0
0
1
0
da26ac275ef766fda1ea905a5a0277b1855e977b
7,275
py
Python
plus_reader/plus_highlighting.py
ShashkovS/plus_reader
e53a7af01ae480f7a63e33d01a0a99ea681e7fee
[ "MIT" ]
3
2017-11-27T10:01:42.000Z
2018-05-07T09:37:24.000Z
plus_reader/plus_highlighting.py
ShashkovS/plus_reader
e53a7af01ae480f7a63e33d01a0a99ea681e7fee
[ "MIT" ]
5
2017-09-28T09:53:13.000Z
2017-11-25T20:10:00.000Z
plus_reader/plus_highlighting.py
ShashkovS/plus_reader
e53a7af01ae480f7a63e33d01a0a99ea681e7fee
[ "MIT" ]
2
2017-09-14T11:56:07.000Z
2017-09-14T12:49:46.000Z
import logging import sys import traceback import numpy as np from PyQt5.QtGui import QPixmap, QPainter, QMouseEvent from PyQt5.QtWidgets import QApplication, QWidget, QGridLayout, QMenu, QSlider, QLabel from PyQt5.QtCore import Qt sys._excepthook = sys.excepthook def excepthook(excType, excValue, tracebackobj): ...
36.742424
134
0.650034
908
7,275
4.976872
0.227974
0.051339
0.066165
0.050454
0.315114
0.258022
0.193406
0.154016
0.147378
0.1341
0
0.007063
0.240962
7,275
197
135
36.928934
0.8113
0.011959
0
0.177914
0
0
0.038274
0
0
0
0
0.005076
0
1
0.104294
false
0.006135
0.042945
0
0.165644
0.006135
0
0
0
null
0
0
0
0
0
0
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
1
0
da27bfe1b6414a6b5de205fb3cd12650ba9370f4
22,206
py
Python
dlrnapi_client/shell.py
softwarefactory-project/dlrnapi_client
ad21fe759597968c0f691b37dc681232dcd8f2aa
[ "Apache-2.0" ]
1
2017-10-02T19:36:52.000Z
2017-10-02T19:36:52.000Z
dlrnapi_client/shell.py
softwarefactory-project/dlrnapi_client
ad21fe759597968c0f691b37dc681232dcd8f2aa
[ "Apache-2.0" ]
4
2018-07-16T20:14:58.000Z
2022-02-04T07:03:03.000Z
dlrnapi_client/shell.py
softwarefactory-project/dlrnapi_client
ad21fe759597968c0f691b37dc681232dcd8f2aa
[ "Apache-2.0" ]
1
2019-12-09T14:40:47.000Z
2019-12-09T14:40:47.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
45.880165
79
0.577141
2,483
22,206
4.996778
0.125654
0.043443
0.035061
0.024502
0.610623
0.556541
0.497139
0.455307
0.416136
0.400983
0
0.002111
0.338737
22,206
483
80
45.975155
0.842822
0.058453
0
0.313433
0
0
0.231219
0.005031
0
0
0
0
0
1
0.029851
false
0.012438
0.034826
0
0.099502
0.007463
0
0
0
null
0
0
0
0
0
0
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
1
0
da27fd506b778e15d02b14a496203d5d175a39c3
1,051
py
Python
python-mundo3/ex094.py
abm-astro/estudos-python
c0dcd71489e528d445efa25d4986bf2fd08f8fe6
[ "MIT" ]
1
2021-08-15T18:18:43.000Z
2021-08-15T18:18:43.000Z
python-mundo3/ex094.py
abm-astro/estudos-python
c0dcd71489e528d445efa25d4986bf2fd08f8fe6
[ "MIT" ]
null
null
null
python-mundo3/ex094.py
abm-astro/estudos-python
c0dcd71489e528d445efa25d4986bf2fd08f8fe6
[ "MIT" ]
null
null
null
cadastro = dict() pessoas = list() soma = 0 while True: cadastro.clear() cadastro['nome'] = str(input('Nome: ')).capitalize() while True: cadastro['sexo'] = str(input('Sexo [M/F]: ')).upper() if cadastro['sexo'] in 'MF': break print('ERRO! Digite apenas M ou F!') cadastro['idade'] = int(input(...
27.657895
61
0.586108
157
1,051
3.923567
0.407643
0.038961
0.055195
0.064935
0.084416
0
0
0
0
0
0
0.005988
0.205519
1,051
37
62
28.405405
0.731737
0
0
0.162162
0
0
0.32921
0
0
0
0
0
0
1
0
false
0
0
0
0
0.324324
0
0
0
null
0
0
0
0
0
0
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
1
0
da296592fb077c1bc7a27382f8604a31a8ab30e3
520
py
Python
task2C.py
jfs60/Group-147-PartIA-Flood-Warning-System
3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1
[ "MIT" ]
null
null
null
task2C.py
jfs60/Group-147-PartIA-Flood-Warning-System
3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1
[ "MIT" ]
null
null
null
task2C.py
jfs60/Group-147-PartIA-Flood-Warning-System
3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1
[ "MIT" ]
1
2022-02-06T06:45:15.000Z
2022-02-06T06:45:15.000Z
from floodsystem.station import MonitoringStation from floodsystem.stationdata import build_station_list, update_water_levels from floodsystem.flood import stations_highest_rel_level, stations_level_over_threshold def run (): stations = build_station_list() update_water_levels(stations) list = stations_h...
30.588235
87
0.775
67
520
5.58209
0.492537
0.120321
0.085562
0.117647
0.342246
0.176471
0
0
0
0
0
0.008989
0.144231
520
17
88
30.588235
0.831461
0
0
0
0
0
0.111324
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
0.153846
0
0
0
null
0
0
0
0
0
0
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
1
0
da2e43a4657d302992b18fd2e6651b3dd93dac4f
6,112
py
Python
docs/examples/viz_emwave_animation.py
iamansoni/fury
2e7971a176c2540e10a9a6da861097583d08cb4a
[ "BSD-3-Clause" ]
149
2018-09-20T18:36:16.000Z
2022-03-29T05:16:25.000Z
docs/examples/viz_emwave_animation.py
iamansoni/fury
2e7971a176c2540e10a9a6da861097583d08cb4a
[ "BSD-3-Clause" ]
523
2018-09-20T16:57:16.000Z
2022-03-31T18:52:41.000Z
docs/examples/viz_emwave_animation.py
iamansoni/fury
2e7971a176c2540e10a9a6da861097583d08cb4a
[ "BSD-3-Clause" ]
150
2018-10-10T07:21:27.000Z
2022-03-29T08:33:17.000Z
""" =============================================== Electromagnetic Wave Propagation Animation =============================================== A linearly polarized sinusoidal electromagnetic wave, propagating in the direction +x through a homogeneous, isotropic, dissipationless medium, such as vacuum. The electric fie...
34.925714
79
0.59375
786
6,112
4.507634
0.301527
0.006774
0.006774
0.006774
0.248095
0.186847
0.154107
0.154107
0.117979
0.078465
0
0.026153
0.155432
6,112
174
80
35.126437
0.659822
0.310046
0
0.146341
0
0
0.013872
0
0
0
0
0
0
1
0.02439
false
0
0.036585
0
0.073171
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
0
0
1
0
da2f601feb319bbef64c8038bd332c6cea544cb4
3,243
py
Python
report_templates.py
averlarque/l1-zabbix-reporter
5d8ea4d432b7b518f954d806a86fe5bcafca3f9d
[ "MIT" ]
1
2017-03-27T02:59:09.000Z
2017-03-27T02:59:09.000Z
report_templates.py
averlarque/l1-zabbix-reporter
5d8ea4d432b7b518f954d806a86fe5bcafca3f9d
[ "MIT" ]
1
2018-01-16T04:56:16.000Z
2018-01-16T04:56:16.000Z
report_templates.py
averlarque/l1-zabbix-reporter
5d8ea4d432b7b518f954d806a86fe5bcafca3f9d
[ "MIT" ]
2
2016-11-24T07:06:51.000Z
2019-11-16T15:12:54.000Z
from report_generator import * class PeriodReport: """ Parent class for time periods reports """ def __init__(self, since, till, report_format='count', report_type='txt'): # Define time limits self.since = since self.till = till self.report_type = report_type self.report_format = report_format # Gener...
38.152941
102
0.755782
442
3,243
5.266968
0.171946
0.128866
0.055842
0.065722
0.592354
0.583763
0.507732
0.383591
0.383591
0.289948
0
0
0.136602
3,243
84
103
38.607143
0.831429
0.127351
0
0.440678
0
0
0.043556
0
0
0
0
0
0
1
0.135593
false
0
0.016949
0
0.271186
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
0
0
1
0
da378e0eafeab07a79465181d9fc51e82389ac0a
6,674
py
Python
officevideo/officevideo.py
introp-software/xblock-officevideo
6e475df782a4b0a2d2d9f7e2e5b9bae441b56024
[ "MIT" ]
4
2020-02-09T09:39:06.000Z
2021-12-30T09:50:57.000Z
officevideo/officevideo.py
acidburn0zzz/xblock-officevideo
6e475df782a4b0a2d2d9f7e2e5b9bae441b56024
[ "MIT" ]
null
null
null
officevideo/officevideo.py
acidburn0zzz/xblock-officevideo
6e475df782a4b0a2d2d9f7e2e5b9bae441b56024
[ "MIT" ]
8
2019-11-02T21:34:20.000Z
2021-12-30T09:50:59.000Z
""" Copyright (c) Microsoft Corporation. All Rights Reserved. """ """ Licensed under the MIT license. See LICENSE file on the project webpage for details. """ import textwrap import pkg_resources import urllib2 import mimetypes import urlparse, requests, json import xml.etree.ElementTree as ET from xblock.core import...
38.578035
284
0.657177
791
6,674
5.384324
0.353982
0.042263
0.025358
0.033811
0.251702
0.239493
0.239493
0.179385
0.156844
0.156844
0
0.026491
0.23644
6,674
172
285
38.802326
0.809262
0.067726
0
0.125
0
0.008333
0.234288
0.045556
0
0
0
0
0
1
0.05
false
0
0.141667
0
0.308333
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
0
0
1
0
da37fa1cf8aa9ced7ef291cee98575d2cbc3ace4
4,594
py
Python
stn/task.py
anenriquez/STNU
a02a13730cc0f31521e01e186c158533479090f5
[ "Unlicense" ]
null
null
null
stn/task.py
anenriquez/STNU
a02a13730cc0f31521e01e186c158533479090f5
[ "Unlicense" ]
null
null
null
stn/task.py
anenriquez/STNU
a02a13730cc0f31521e01e186c158533479090f5
[ "Unlicense" ]
null
null
null
from stn.utils.as_dict import AsDictMixin class Edge(AsDictMixin): def __init__(self, name, mean, variance, **kwargs): self.name = name self.mean = round(mean, 3) self.variance = round(variance, 3) self.standard_dev = round(variance ** 0.5, 3) def __str__(self): to_pri...
34.80303
94
0.60579
581
4,594
4.538726
0.137694
0.039818
0.044369
0.021236
0.372014
0.28176
0.265074
0.212363
0.174441
0.174441
0
0.003706
0.295168
4,594
131
95
35.068702
0.810686
0.110797
0
0.360825
0
0
0.028557
0
0
0
0
0
0
1
0.14433
false
0
0.010309
0
0.278351
0.154639
0
0
0
null
0
0
0
0
0
0
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
1
0
da382dde5d81096600a758eea608666b31d3c7b7
2,959
py
Python
src/bxgateway/messages/btc/data_btc_message.py
blockchain-development-resources/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
1
2021-11-26T07:49:24.000Z
2021-11-26T07:49:24.000Z
src/bxgateway/messages/btc/data_btc_message.py
beepool/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
null
null
null
src/bxgateway/messages/btc/data_btc_message.py
beepool/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
1
2021-09-06T02:10:08.000Z
2021-09-06T02:10:08.000Z
import struct from bxgateway.btc_constants import BTC_HDR_COMMON_OFF, BTC_SHA_HASH_LEN from bxgateway.messages.btc.btc_message import BtcMessage from bxgateway.messages.btc.btc_message_type import BtcMessageType from bxgateway.messages.btc.btc_messages_util import btc_varint_to_int, pack_int_to_btc_varint from bxgatew...
36.9875
120
0.657993
396
2,959
4.580808
0.184343
0.026461
0.052922
0.066152
0.481257
0.292172
0.233738
0.233738
0.216648
0.180265
0
0.00857
0.25076
2,959
79
121
37.455696
0.809653
0.007435
0
0.254237
0
0
0.001363
0
0
0
0
0
0
1
0.118644
false
0
0.101695
0.016949
0.355932
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
0
0
1
0
da39df4b22e6c016cc25f0ba477072a025a6794f
8,188
py
Python
alexber/utils/_ymlparsers_extra.py
AndreyRub/AlexBerUtils
b2d79c98c083533534470b62632a36dfd730be48
[ "BSD-2-Clause" ]
null
null
null
alexber/utils/_ymlparsers_extra.py
AndreyRub/AlexBerUtils
b2d79c98c083533534470b62632a36dfd730be48
[ "BSD-2-Clause" ]
8
2019-12-15T05:13:27.000Z
2021-02-16T20:03:40.000Z
alexber/utils/_ymlparsers_extra.py
AndreyRub/AlexBerUtils
b2d79c98c083533534470b62632a36dfd730be48
[ "BSD-2-Clause" ]
2
2019-12-12T03:52:37.000Z
2021-05-21T21:14:34.000Z
""" This module adopts its behavior dependent on availability of Python packages. This module optionally depends on ymlparseser module. Method format_template() is used in emails module. Note: This module will work if you have only standard Python package. You just can't change delimiters values. Note: API and implem...
38.261682
120
0.69553
1,052
8,188
5.230989
0.173954
0.035435
0.05179
0.016355
0.491914
0.463747
0.396329
0.379793
0.343812
0.318735
0
0.014947
0.240107
8,188
213
121
38.441315
0.869495
0.447606
0
0.365385
0
0
0.080886
0.004895
0
0
0
0
0
1
0.048077
false
0
0.105769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da3cdf32ec5c491bbbd379b8659c9adccf3080ca
2,653
py
Python
models/house_water_drain.py
susundberg/python-freecad-3dparts
248e6f5eb4ce3d1921b3d4875e9c1d112f7b7498
[ "MIT" ]
null
null
null
models/house_water_drain.py
susundberg/python-freecad-3dparts
248e6f5eb4ce3d1921b3d4875e9c1d112f7b7498
[ "MIT" ]
null
null
null
models/house_water_drain.py
susundberg/python-freecad-3dparts
248e6f5eb4ce3d1921b3d4875e9c1d112f7b7498
[ "MIT" ]
null
null
null
import supalib TOLE=0.2 OUTSIZE=60.0 SIZE_CONST=25.0 SIZE_DROP=20.0 ANGLE_DROP=45.0 BASE_THICK=5.0 BASE_WIDE=20.0 PIPE_RAD=OUTSIZE/2.0 + TOLE hole = supalib.create_cyl( radius=PIPE_RAD , size_z = OUTSIZE, place=(0, PIPE_RAD + 1.0, -OUTSIZE/2.0) ) outer_hole = supalib.create_cyl( radius=PIPE_RAD + 5.0 , size_z = OUT...
35.851351
119
0.710516
449
2,653
3.973274
0.167038
0.167601
0.013453
0.049327
0.33296
0.275785
0.20852
0.106502
0.106502
0.053812
0
0.058185
0.131926
2,653
73
120
36.342466
0.716457
0.223897
0
0
0
0
0.022483
0
0
0
0
0
0
1
0
false
0
0.025
0
0.025
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
0
0
1
0
da3d5161d87de56a9bc36edca5bba5b60b08bd39
6,556
py
Python
dace/libraries/standard/nodes/gearbox.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
dace/libraries/standard/nodes/gearbox.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
dace/libraries/standard/nodes/gearbox.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import collections import copy import dace @dace.library.expansion class ExpandGearbox(dace.transformation.ExpandTransformation): environments = [] @staticmethod def expansion(node: "Gearbox", parent_state: dace.SDFGState, ...
39.257485
80
0.558115
783
6,556
4.466156
0.240102
0.027452
0.020589
0.020589
0.278524
0.212182
0.157278
0.117815
0.117815
0.117815
0
0.008975
0.354179
6,556
166
81
39.493976
0.816958
0.145363
0
0.130769
0
0
0.157703
0.007813
0
0
0
0
0
1
0.023077
false
0.007692
0.023077
0
0.107692
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
0
0
1
0
da3fd113ae5463775113a2aa795b9fc22645ae0c
5,662
py
Python
reprlearn/data/samplers/kshot_sampler.py
cocoaaa/ReprLearn
58dc682aa62dbd59201ccc55b9b26480ff3d6773
[ "MIT" ]
null
null
null
reprlearn/data/samplers/kshot_sampler.py
cocoaaa/ReprLearn
58dc682aa62dbd59201ccc55b9b26480ff3d6773
[ "MIT" ]
null
null
null
reprlearn/data/samplers/kshot_sampler.py
cocoaaa/ReprLearn
58dc682aa62dbd59201ccc55b9b26480ff3d6773
[ "MIT" ]
null
null
null
from reprlearn.data.datasets.base import ImageDataset from collections import defaultdict from typing import Iterable, Optional, Callable, List, Dict, Tuple import numpy as np # =============== # Returns a list of datapoints from the dataset so that # the list contains the same number of datapoints per class (if possi...
39.048276
112
0.598905
733
5,662
4.472033
0.210096
0.075656
0.04759
0.019829
0.397804
0.350519
0.316657
0.316657
0.274558
0.274558
0
0.000261
0.32409
5,662
144
113
39.319444
0.856284
0.347051
0
0.202532
0
0
0.01575
0
0
0
0
0
0
1
0.050633
false
0.012658
0.050633
0
0.151899
0.012658
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da40b32e1d6bf126d545d746d9c0416f4eb38e0a
7,117
py
Python
phaseprep/workflows/preprocess_phase_wf.py
ostanley/phaseprep
6e721ea43755f10eb8569b1f4d4461efa3d85a1a
[ "Apache-2.0" ]
1
2019-10-11T17:04:25.000Z
2019-10-11T17:04:25.000Z
phaseprep/workflows/preprocess_phase_wf.py
ostanley/phaseprep
6e721ea43755f10eb8569b1f4d4461efa3d85a1a
[ "Apache-2.0" ]
2
2019-10-16T13:13:52.000Z
2019-12-10T19:38:39.000Z
phaseprep/workflows/preprocess_phase_wf.py
ostanley/phaseprep
6e721ea43755f10eb8569b1f4d4461efa3d85a1a
[ "Apache-2.0" ]
2
2019-11-18T19:21:44.000Z
2021-10-19T18:01:03.000Z
import nipype.pipeline.engine as pe import nipype.interfaces.fsl as fsl import nipype.interfaces.afni as afni import phaseprep.interfaces as pp import nipype.interfaces.utility as ul def findscalingarg(in_file, bit_depth=12): import nibabel as nb import numpy as np img = nb.load(in_file) if img.dataob...
53.511278
153
0.559646
701
7,117
5.53067
0.28388
0.032499
0.05107
0.023472
0.269796
0.128966
0.038174
0.025277
0
0
0
0.015925
0.311789
7,117
132
154
53.916667
0.775623
0.159618
0
0.023256
0
0
0.179292
0.004406
0
0
0
0
0
1
0.023256
false
0
0.081395
0
0.127907
0.011628
0
0
0
null
0
0
0
0
0
0
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
1
0
da426e6fadffb074142a9d08e0b642ab357e46fc
2,514
py
Python
zorg/buildbot/builders/AnnotatedBuilder.py
DalavanCloud/zorg
d55f03740e589d504dbfe2d5dc9fbc5d551f31fb
[ "Apache-2.0" ]
1
2019-02-10T03:05:05.000Z
2019-02-10T03:05:05.000Z
zorg/buildbot/builders/AnnotatedBuilder.py
DalavanCloud/llvm-zorg
14d347a312d5a19bec421f553a3c1cbe1735b273
[ "Apache-2.0" ]
null
null
null
zorg/buildbot/builders/AnnotatedBuilder.py
DalavanCloud/llvm-zorg
14d347a312d5a19bec421f553a3c1cbe1735b273
[ "Apache-2.0" ]
null
null
null
import os import buildbot from buildbot.process.properties import WithProperties from buildbot.steps.shell import SetProperty, ShellCommand from buildbot.steps.source import SVN from zorg.buildbot.commands.AnnotatedCommand import AnnotatedCommand from zorg.buildbot.process.factory import LLVMBuildFactory def getAnno...
36.970588
78
0.622514
285
2,514
5.431579
0.477193
0.020672
0.032946
0.034884
0
0
0
0
0
0
0
0.00395
0.295147
2,514
67
79
37.522388
0.869639
0.280827
0
0
0
0
0.122817
0.030986
0
0
0
0
0
1
0.022727
false
0
0.159091
0
0.204545
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
0
0
1
0
da4804a69488cffc401e2be47069232bee7d172a
4,828
py
Python
train.py
yazar1993/TextBoxes-mxnet
89fbf4151473ab4575a032871683e76978deec0a
[ "MIT" ]
1
2019-02-04T19:03:27.000Z
2019-02-04T19:03:27.000Z
train.py
yazar1993/TextBoxes-mxnet
89fbf4151473ab4575a032871683e76978deec0a
[ "MIT" ]
null
null
null
train.py
yazar1993/TextBoxes-mxnet
89fbf4151473ab4575a032871683e76978deec0a
[ "MIT" ]
null
null
null
import time from matplotlib import pyplot as plt import numpy as np import mxnet as mx from mxnet import autograd, gluon import gluoncv as gcv from gluoncv.utils import download, viz from model import model_zoo import argparse def get_dataloader(net, train_dataset, data_shape, batch_size, num_workers): from gluon...
37.426357
101
0.665493
673
4,828
4.579495
0.283804
0.029202
0.055159
0.016548
0.095717
0.069111
0.040883
0.018819
0.018819
0
0
0.015178
0.167564
4,828
128
102
37.71875
0.75168
0.029619
0
0.037383
0
0
0.095948
0
0
0
0
0
0
1
0.009346
false
0
0.102804
0
0.121495
0.056075
0
0
0
null
0
0
0
0
0
0
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
1
0
da48925dd8d85e25b1591c7ad7324c1b91372e21
484
py
Python
aws/build_saint_features.py
fabien-vavrand/kaggle-riiid
3302955980e0d4bb2dbc72bcd369000b0724f1e7
[ "MIT" ]
null
null
null
aws/build_saint_features.py
fabien-vavrand/kaggle-riiid
3302955980e0d4bb2dbc72bcd369000b0724f1e7
[ "MIT" ]
null
null
null
aws/build_saint_features.py
fabien-vavrand/kaggle-riiid
3302955980e0d4bb2dbc72bcd369000b0724f1e7
[ "MIT" ]
null
null
null
from doppel import DoppelProject from riiid.utils import configure_console_logging from riiid.config import SRC_PATH from riiid.aws.config import CONTEXT, PACKAGES configure_console_logging() project = DoppelProject( name='riiid-saint-features', path=SRC_PATH, entry_point='-m riiid.aws.build_saint_featur...
22
52
0.743802
64
484
5.4375
0.578125
0.077586
0.132184
0
0
0
0
0
0
0
0
0.019512
0.152893
484
21
53
23.047619
0.829268
0
0
0
0
0
0.150826
0.061983
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
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
0
0
1
0
da4a7e68c0832aca421b9ec0a6a9d00a1f584040
1,933
py
Python
src/sentry/incidents/endpoints/organization_alert_rule_trigger_details.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
src/sentry/incidents/endpoints/organization_alert_rule_trigger_details.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
src/sentry/incidents/endpoints/organization_alert_rule_trigger_details.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from rest_framework import status from rest_framework.response import Response from sentry.api.serializers import serialize from sentry.api.serializers.models.alert_rule_trigger import DetailedAlertRuleTriggerSerializer from sentry.incidents.endpoints.bases import OrganizationAl...
39.44898
96
0.702535
188
1,933
6.989362
0.351064
0.10274
0.121766
0.079148
0.17656
0.153729
0.109589
0.109589
0
0
0
0.008
0.224004
1,933
48
97
40.270833
0.868
0.032592
0
0
0
0
0.035519
0
0
0
0
0
0
1
0.085714
false
0
0.228571
0
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da4c1af35b78bb185c69f2e2ce2c1d8ceee1a22d
667
py
Python
chapter03/knock25.py
m-star18/NLP100
e199814f81943f7fb693fd5fe87d6df21da07f5b
[ "MIT" ]
1
2020-07-15T17:21:13.000Z
2020-07-15T17:21:13.000Z
chapter03/knock25.py
m-star18/NLP100
e199814f81943f7fb693fd5fe87d6df21da07f5b
[ "MIT" ]
1
2021-05-04T01:04:57.000Z
2021-05-04T01:05:32.000Z
chapter03/knock25.py
m-star18/NLP100
e199814f81943f7fb693fd5fe87d6df21da07f5b
[ "MIT" ]
null
null
null
import re import pandas as pd df = pd.read_json('jawiki-country.json', lines=True) text = df.query('title=="イギリス"')['text'].values[0].split('\n') memo, flag = [], False template = '基礎情報' check = re.compile('\|(.+?)\s=\s(.+)') check1 = re.compile('\{\{' + template) check2 = re.compile('\}\}') check3 = re.compile('\|')...
23.821429
62
0.55922
98
667
3.795918
0.5
0.120968
0
0
0
0
0
0
0
0
0
0.020677
0.202399
667
27
63
24.703704
0.678571
0
0
0
0
0
0.136432
0.034483
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.043478
0
0
0
null
0
0
0
0
0
0
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
1
0
da4c202f2a4d50150a0f027ce75d19d6e0f3d28d
316
py
Python
constants.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
19
2018-06-08T05:33:47.000Z
2021-04-26T16:19:32.000Z
constants.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
null
null
null
constants.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
13
2018-09-24T21:52:06.000Z
2021-02-26T10:40:25.000Z
# Datasets TRAIN = 'trn' VAL = 'val' TEST = 'tst' FULL = 'full' # File extensions JPG = '.jpg' TIF = '.tif' PNG = '.png' GIF = '.gif' BCOLZ = '.bc' CSV = '.csv' # PyTorch MODEL_EXT = '.mdl' WEIGHTS_EXT = '.th' OPTIM_EXT = '.th' # Data Aug IMAGENET_MEAN = [0.485, 0.456, 0.406] IMAGENET_STD = [0.229, 0.224, 0.225]
14.363636
37
0.591772
51
316
3.568627
0.686275
0.054945
0
0
0
0
0
0
0
0
0
0.094118
0.193038
316
22
38
14.363636
0.619608
0.129747
0
0
0
0
0.169742
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da4d25bd823544d3dde8ed32e826fbbb55bcbd80
1,226
py
Python
a10sdk/core/maximum/maximum_paths.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/maximum/maximum_paths.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/maximum/maximum_paths.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class MaximumPaths(A10BaseClass): """Class Description:: Set maximum number of route multipaths installed into FIB. Class maximum-paths supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for thi...
32.263158
168
0.638662
145
1,226
5.344828
0.565517
0.061935
0.036129
0.049032
0
0
0
0
0
0
0
0.023037
0.221044
1,226
37
169
33.135135
0.788482
0.601958
0
0
0
0
0.084309
0.053864
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da4d50c0cd6f0dd5e191b086879be35c23707ff8
331
py
Python
ocun.py
jpcyrino/chunker_dm
1afde2400b81d0fbc351dcb4658546ef018d2640
[ "MIT" ]
1
2022-02-23T12:33:01.000Z
2022-02-23T12:33:01.000Z
ocun.py
jpcyrino/chunker_dm
1afde2400b81d0fbc351dcb4658546ef018d2640
[ "MIT" ]
null
null
null
ocun.py
jpcyrino/chunker_dm
1afde2400b81d0fbc351dcb4658546ef018d2640
[ "MIT" ]
null
null
null
import sys filename = sys.argv[1] fileout = sys.argv[2] with open(filename, encoding="utf-8", mode="r") as file: lines = file.read().split("\n") data_lines = [lines[i] for i in range(0,len(lines),3)] print(data_lines) with open(fileout, encoding="utf-8", mode="w") as file: for line in data_lines: file.write(lin...
20.6875
56
0.667674
59
331
3.694915
0.542373
0.123853
0.110092
0.146789
0
0
0
0
0
0
0
0.021127
0.141994
331
15
57
22.066667
0.746479
0
0
0
0
0
0.048485
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
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
0
0
0
1
0
da4f18d031bec1129d069479e75d9c035f860d1d
2,412
py
Python
galaxy/main/urls.py
changelox/galaxy
fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc
[ "Apache-2.0" ]
null
null
null
galaxy/main/urls.py
changelox/galaxy
fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc
[ "Apache-2.0" ]
null
null
null
galaxy/main/urls.py
changelox/galaxy
fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc
[ "Apache-2.0" ]
null
null
null
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
37.107692
76
0.681177
331
2,412
4.882175
0.380665
0.042079
0.029703
0.022277
0.032178
0.032178
0
0
0
0
0
0.004464
0.164179
2,412
64
77
37.6875
0.797123
0.285655
0
0.052632
0
0
0.250147
0.083969
0
0
0
0
0
1
0
false
0
0.184211
0
0.184211
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
0
0
1
0
da58277b5c2af60a518ecbd9a3ef1bdee746623d
1,306
py
Python
python3/ais_sdk/utils.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
python3/ais_sdk/utils.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
python3/ais_sdk/utils.py
MeekoI/ais-sdk
76240abc49795e914988f3cafb6d08f60dbdcb4c
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import os import base64 import urllib.request import ais_sdk.ais as ais _ENDPOINT = { 'image': { 'cn-north-1':'image.cn-north-1.myhuaweicloud.com', 'ap-southeast-1':'image.ap-southeast-1.myhuaweicloud.com' }, 'moderation': { 'cn-north-1':'moderation....
24.641509
70
0.666156
171
1,306
4.929825
0.350877
0.033215
0.03796
0.030842
0.151839
0.085409
0.085409
0.085409
0
0
0
0.035373
0.199081
1,306
52
71
25.115385
0.770554
0.123277
0
0
0
0
0.201275
0.140255
0
0
0
0
0
1
0.181818
false
0
0.121212
0.060606
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
0
0
0
1
0
da5863a5ec445793ea40d771aa319962f8ec9010
609
py
Python
GUI/dialogs/propulsion_dialogs/propulsion_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
7
2021-03-17T01:23:28.000Z
2021-05-06T20:41:21.000Z
GUI/dialogs/propulsion_dialogs/propulsion_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
null
null
null
GUI/dialogs/propulsion_dialogs/propulsion_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
null
null
null
from PyQt5.QtCore import * from PyQt5.QtWidgets import * from GUI.tabs.propulsion_tab.propulsion_tab import propulsion_tab class propulsion_dialog(QDialog): def __init__(self): super().__init__() self.tab = propulsion_tab() self.layout =self.tab.create_widget() self.buttons = QDia...
30.45
65
0.689655
68
609
5.970588
0.470588
0.128079
0.078818
0
0
0
0
0
0
0
0
0.004175
0.213465
609
19
66
32.052632
0.843424
0
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da58d75367a4513d4ada4db3e0cf52dc127dc010
726
py
Python
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
1
2020-09-20T03:55:00.000Z
2020-09-20T03:55:00.000Z
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
null
null
null
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
null
null
null
""" Dummy node, two pointers, swap nodes """ # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution(object): def removeNthFromEnd(self, head, n): """ :type head: ListNode :...
22
43
0.479339
77
726
4.467532
0.441558
0.116279
0.087209
0.110465
0
0
0
0
0
0
0
0.009547
0.422865
726
33
44
22
0.811456
0.326446
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da5d5dda91394d5fcd0bc5d32616b3e16dc5d436
875
py
Python
ethsential/__main__.py
1140251/Ethsential
1de423358f5a0ba8b84d80fa63bce09552bca9fd
[ "Apache-2.0" ]
7
2021-10-11T12:07:08.000Z
2022-01-10T01:19:36.000Z
ethsential/__main__.py
1140251/Ethsential
1de423358f5a0ba8b84d80fa63bce09552bca9fd
[ "Apache-2.0" ]
null
null
null
ethsential/__main__.py
1140251/Ethsential
1de423358f5a0ba8b84d80fa63bce09552bca9fd
[ "Apache-2.0" ]
null
null
null
import sys from .src.applications.server import ETHSENTIAL from .src.applications.cli import CLI from .src.parser import create_parser def main(): parser = create_parser() args = parser.parse_args() if args.action == 'cli': try: CLI.exec_cmd(args) except Exception as e: ...
24.305556
53
0.537143
101
875
4.514851
0.386139
0.070175
0.083333
0.078947
0.307018
0.307018
0.307018
0.307018
0.307018
0.307018
0
0.001742
0.344
875
35
54
25
0.792683
0
0
0.433333
0
0
0.056
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.166667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da5ea178b4528bc2e8ee17e0a8132d23a6388e83
2,322
py
Python
scripts/msig_prods_update_tag.py
xenbo/eosforce
f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f
[ "MIT" ]
117
2018-06-22T08:49:36.000Z
2022-01-30T17:08:29.000Z
scripts/msig_prods_update_tag.py
xenbo/eosforce
f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f
[ "MIT" ]
17
2018-07-05T04:06:47.000Z
2020-09-07T06:19:25.000Z
scripts/msig_prods_update_tag.py
xenbo/eosforce
f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f
[ "MIT" ]
42
2018-06-22T08:57:42.000Z
2022-03-28T13:08:02.000Z
#!/usr/bin/env python3 import argparse import json import os import re import subprocess import sys import time enable_push = True # True to push on chain cleos = '../build/programs/cleos/cleos --wallet-url http://127.0.0.1:6666 --url http://127.0.0.1:8001 ' wallet_password = '' wallet_name = 'testc' active_account =...
26.089888
103
0.615418
275
2,322
5.069091
0.443636
0.028694
0.027977
0.015782
0.086083
0.018651
0
0
0
0
0
0.027657
0.205857
2,322
88
104
26.386364
0.728308
0.093885
0
0.04918
0
0.016393
0.162136
0.013829
0
0
0
0
0
1
0.114754
false
0.032787
0.114754
0.032787
0.295082
0.065574
0
0
0
null
0
0
0
0
0
0
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
1
0
da5fc436cce22928bf1e7b8ba50df3169ca33055
7,027
py
Python
maskrcnn/preprocess/download_googlestaticmap.py
JBoshoff/Replicate-night-light
5bdfbb99fe38f98f61f733f4e847be2bb6f559ef
[ "MIT" ]
8
2020-08-26T21:05:32.000Z
2021-08-18T06:55:24.000Z
maskrcnn/preprocess/download_googlestaticmap.py
JBoshoff/Replicate-night-light
5bdfbb99fe38f98f61f733f4e847be2bb6f559ef
[ "MIT" ]
null
null
null
maskrcnn/preprocess/download_googlestaticmap.py
JBoshoff/Replicate-night-light
5bdfbb99fe38f98f61f733f4e847be2bb6f559ef
[ "MIT" ]
2
2021-10-20T12:43:00.000Z
2022-01-04T19:40:16.000Z
"""This downloader downloads satellite images from the Google Static Maps API. Usage: $ python download_googlestaticmap.py \ > --log LOG_FILE.csv \ > --initialize INIT_FILE.csv $ nohup python download_googlestaticmap.py \ > --log LOG_FILE.csv \ > --num 3 \ > --download-dir DIR \ ...
36.035897
84
0.565675
819
7,027
4.763126
0.295482
0.029992
0.021533
0.011536
0.10869
0.044091
0.044091
0.044091
0.021533
0
0
0.004203
0.322897
7,027
194
85
36.221649
0.815679
0.259713
0
0.076923
0
0
0.174419
0
0
0
0
0
0.019231
1
0.048077
false
0
0.048077
0
0.115385
0.067308
0
0
0
null
0
0
0
0
0
0
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
1
0
da60447f22ba4eba74abcb47b3cadec2e06136d2
9,826
py
Python
NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py
NeLy-EPFL/NeuroMechFly
69f9e2d86caac561a50e3e060d007dd50a20d481
[ "Apache-2.0" ]
12
2021-05-07T15:27:11.000Z
2022-01-29T04:26:36.000Z
NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py
NeLy-EPFL/NeuroMechFly
69f9e2d86caac561a50e3e060d007dd50a20d481
[ "Apache-2.0" ]
15
2021-05-07T14:58:04.000Z
2021-11-10T21:30:58.000Z
NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py
NeLy-EPFL/NeuroMechFly
69f9e2d86caac561a50e3e060d007dd50a20d481
[ "Apache-2.0" ]
1
2022-01-13T16:08:49.000Z
2022-01-13T16:08:49.000Z
""" Drosophila simulation class for kinematic replay without body support. """ import numpy as np import pandas as pd import pybullet as p from NeuroMechFly.sdf.units import SimulationUnitScaling from NeuroMechFly.simulation.bullet_simulation import BulletSimulation # Random number seed np.random.seed(seed=321) de...
36.258303
91
0.569408
1,096
9,826
4.958029
0.265511
0.010121
0.016562
0.016194
0.230217
0.179426
0.106551
0.088333
0.059257
0.059257
0
0.017509
0.343171
9,826
270
92
36.392593
0.82445
0.239161
0
0.15
0
0
0.0344
0.004793
0
0
0
0
0
1
0.05
false
0
0.03125
0
0.1
0.00625
0
0
0
null
0
0
0
0
0
0
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
1
0
da6071c120cc4c6108f42d5833b8ae67a673f55d
3,845
py
Python
hw/ip/otbn/dv/otbnsim/sim/isa.py
wxjstz/opentitan
6ff4397bac9c07373d735bd859c7ef8de39c2af8
[ "Apache-2.0" ]
null
null
null
hw/ip/otbn/dv/otbnsim/sim/isa.py
wxjstz/opentitan
6ff4397bac9c07373d735bd859c7ef8de39c2af8
[ "Apache-2.0" ]
null
null
null
hw/ip/otbn/dv/otbnsim/sim/isa.py
wxjstz/opentitan
6ff4397bac9c07373d735bd859c7ef8de39c2af8
[ "Apache-2.0" ]
null
null
null
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 from enum import IntEnum import sys from typing import Dict from riscvmodel.types import Immediate # type: ignore from shared.insn_yaml import Insn, load_insns_yaml fro...
31.008065
78
0.649935
537
3,845
4.500931
0.325885
0.047166
0.024824
0.021514
0.223004
0.213074
0.162598
0.135292
0.124121
0.124121
0
0.011431
0.249155
3,845
123
79
31.260163
0.825771
0.33238
0
0.242424
0
0
0.091275
0
0
0
0
0
0.015152
1
0.136364
false
0
0.090909
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
0
0
0
0
1
0
da63d798dfe9c2ea59c6459800d52786ae4db56c
2,668
py
Python
tests/features/steps/environment_steps.py
candango/pyclicksign
d709122867cfa5c6fce4322b55a033bc82126e1c
[ "Apache-2.0" ]
null
null
null
tests/features/steps/environment_steps.py
candango/pyclicksign
d709122867cfa5c6fce4322b55a033bc82126e1c
[ "Apache-2.0" ]
9
2022-01-15T19:43:46.000Z
2022-03-24T06:04:25.000Z
tests/features/steps/environment_steps.py
candango/pyclicksign
d709122867cfa5c6fce4322b55a033bc82126e1c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021-2022 Flávio Gonçalves Garcia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
33.35
74
0.737631
385
2,668
4.966234
0.34026
0.075314
0.072176
0.078452
0.393828
0.348849
0.281381
0.281381
0.259414
0.259414
0
0.007092
0.154423
2,668
79
75
33.772152
0.840426
0.211394
0
0.285714
0
0
0.108134
0
0
0
0
0
0.142857
1
0.163265
false
0
0.081633
0.020408
0.285714
0.020408
0
0
0
null
0
0
0
0
0
0
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
1
0
da648cdce4097a5f15c459cc9d3dc08716cd7f4a
2,967
py
Python
photo_album_src/models_bk.py
chrisjen83/k3s-labs
b283c2500b272be0de1025ef541a46d7c4591cc1
[ "MIT" ]
1
2020-04-01T22:05:28.000Z
2020-04-01T22:05:28.000Z
photo_album_src/models_bk.py
chrisjen83/k3s-labs
b283c2500b272be0de1025ef541a46d7c4591cc1
[ "MIT" ]
null
null
null
photo_album_src/models_bk.py
chrisjen83/k3s-labs
b283c2500b272be0de1025ef541a46d7c4591cc1
[ "MIT" ]
5
2020-02-21T22:47:35.000Z
2022-02-03T15:21:39.000Z
#!/usr/bin/env python3 # Import modules required for app import os import boto3 import json from pymongo import MongoClient from werkzeug import secure_filename from PIL import Image from config import ecs_test_drive #Get from K8s ConfigMap values for MongoDB Database MONGO_SERVER = os.environ.get( "MONGO_SERVER", Non...
34.905882
115
0.691271
405
2,967
4.859259
0.34321
0.032012
0.054878
0.060976
0.185976
0.177337
0.164634
0.086382
0.086382
0.086382
0
0.009583
0.191102
2,967
84
116
35.321429
0.810417
0.232895
0
0.042553
0
0
0.161647
0.022143
0
0
0
0
0
1
0.06383
false
0
0.148936
0.021277
0.234043
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
0
0
1
0
da67084ae53c45931e9876b1394dc1aa92e625de
12,051
py
Python
pymothoa/llvm_backend/backend.py
sklam/pymothoa
330bd70666ccf761f39c75f3acb70aa7e0a92ac6
[ "BSD-2-Clause" ]
2
2017-03-23T19:44:03.000Z
2020-11-28T17:01:49.000Z
pymothoa/llvm_backend/backend.py
sklam/pymothoa
330bd70666ccf761f39c75f3acb70aa7e0a92ac6
[ "BSD-2-Clause" ]
null
null
null
pymothoa/llvm_backend/backend.py
sklam/pymothoa
330bd70666ccf761f39c75f3acb70aa7e0a92ac6
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012, Siu Kwan Lam # All rights reserved. import logging import ast from contextlib import contextmanager from pymothoa.util.descriptor import Descriptor, instanceof from pymothoa import dialect from pymothoa.compiler_errors import * from pymothoa.backend import CodeGenerationBase from types import *...
35.759644
110
0.617127
1,450
12,051
4.938621
0.170345
0.147465
0.049155
0.045105
0.404552
0.286133
0.232789
0.207234
0.176512
0.168133
0
0.000933
0.288275
12,051
336
111
35.866071
0.833975
0.069538
0
0.322314
0
0
0.024257
0
0
0
0
0
0.012397
1
0.103306
false
0
0.045455
0.012397
0.247934
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
0
0
1
0
da687c22550da7202f3e33817124a03999dca63a
542
py
Python
cloud/single_stage_detector/pytorch/onnx_demo.py
mgoin/inference
ede5477a2aee72ceb435e9ecd599ffa052417c2a
[ "Apache-2.0" ]
4
2019-07-26T03:00:39.000Z
2021-01-29T16:12:21.000Z
cloud/single_stage_detector/pytorch/onnx_demo.py
mgoin/inference
ede5477a2aee72ceb435e9ecd599ffa052417c2a
[ "Apache-2.0" ]
null
null
null
cloud/single_stage_detector/pytorch/onnx_demo.py
mgoin/inference
ede5477a2aee72ceb435e9ecd599ffa052417c2a
[ "Apache-2.0" ]
2
2019-11-12T15:57:29.000Z
2022-03-02T21:26:58.000Z
import onnxruntime import onnx import os from onnx import numpy_helper onnx_model_dir = 'test_ssd_model' onnx_data_dir = 'test_data_set_0' sess = onnxruntime.InferenceSession(os.path.join(onnx_model_dir, 'model.onnx')) img_tensor = onnx.TensorProto() with open(os.path.join(onnx_model_dir, onnx_data_dir, 'input_0.pb')...
30.111111
80
0.778598
91
542
4.307692
0.461538
0.068878
0.091837
0.071429
0.112245
0.112245
0
0
0
0
0
0.006148
0.099631
542
18
81
30.111111
0.797131
0
0
0
0
0
0.093923
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.071429
0
0
0
null
0
0
0
0
0
0
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
1
0
da6a8272e09ed6bcdd72fe1fe0ed6ca276090222
3,519
py
Python
uat/test_uat_CLIParser.py
sorint-lab-us/aws-greengrass-gdk-cli
7508c7f62dcee1638cfc895ea38f3842e0072f0e
[ "Apache-2.0" ]
null
null
null
uat/test_uat_CLIParser.py
sorint-lab-us/aws-greengrass-gdk-cli
7508c7f62dcee1638cfc895ea38f3842e0072f0e
[ "Apache-2.0" ]
null
null
null
uat/test_uat_CLIParser.py
sorint-lab-us/aws-greengrass-gdk-cli
7508c7f62dcee1638cfc895ea38f3842e0072f0e
[ "Apache-2.0" ]
null
null
null
import json import os import subprocess as sp import tempfile from pathlib import Path import gdk.common.exceptions.error_messages as error_messages def test_list_template(): check_list_template = sp.run(["gdk", "component", "list", "--template"], check=True, stdout=sp.PIPE) assert "HelloWorld-python" in che...
40.918605
126
0.700199
443
3,519
5.410835
0.227991
0.045056
0.023363
0.049645
0.577388
0.483521
0.430955
0.396329
0.124322
0.124322
0
0.002002
0.148338
3,519
85
127
41.4
0.797798
0.06877
0
0.142857
0
0
0.189181
0.039731
0
0
0
0
0.285714
1
0.095238
false
0
0.095238
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da6b4c0eec1b1ed14670ffd508f05ac5d26c2b77
1,326
py
Python
mysite/image/forms.py
HelloTecXin/ZXBlog
60d1f95f541138aa56acbaf4dcfbfe208491d65b
[ "MIT" ]
1
2020-03-17T08:28:48.000Z
2020-03-17T08:28:48.000Z
mysite/image/forms.py
HelloTecXin/ZXBlog
60d1f95f541138aa56acbaf4dcfbfe208491d65b
[ "MIT" ]
null
null
null
mysite/image/forms.py
HelloTecXin/ZXBlog
60d1f95f541138aa56acbaf4dcfbfe208491d65b
[ "MIT" ]
null
null
null
from django import forms from django.core.files.base import ContentFile from slugify import slugify from urllib import request from .models import Image class ImageForm(forms.ModelForm): class Meta: model = Image fields = ('title','url','description') def clean_url(self): ...
41.4375
113
0.667421
150
1,326
5.82
0.5
0.024055
0.032073
0.041237
0.084765
0
0
0
0
0
0
0.005803
0.220211
1,326
31
114
42.774194
0.838491
0.159879
0
0
0
0
0.088372
0
0
0
0
0
0
1
0.08
false
0
0.2
0
0.44
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
0
0
1
0
da741a60b0b7e242baf0c8917409303691b189e3
1,110
py
Python
APP/__init__.py
jcyongqin/MerryChristmas2016
f1bfc0f9df33dad474f28bbefa21f320e4ee48e9
[ "MIT" ]
null
null
null
APP/__init__.py
jcyongqin/MerryChristmas2016
f1bfc0f9df33dad474f28bbefa21f320e4ee48e9
[ "MIT" ]
null
null
null
APP/__init__.py
jcyongqin/MerryChristmas2016
f1bfc0f9df33dad474f28bbefa21f320e4ee48e9
[ "MIT" ]
null
null
null
print('Merry Christmas!!!') import sys # # int main(int argc, char* argv[]) { # int n = argc > 1 ? atoi(argv[1]) : 4; # for (int j = 1; j <= n; j++) { # int s = 1 << j, k = (1 << n) - s, x; # for (int y = s - j; y >= 0; y--, putchar('\n')) { # for (x = 0; x < y + k; x++) printf(" "...
28.461538
83
0.351351
160
1,110
2.3625
0.23125
0.063492
0.047619
0.087302
0.301587
0.10582
0.10582
0.042328
0
0
0
0.032308
0.414414
1,110
38
84
29.210526
0.549231
0.430631
0
0
0
0
0.058252
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.095238
0.238095
0
0
0
null
0
0
0
0
0
0
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
1
0
da760162956fd30fc878df9712168c347b1cba4a
1,013
py
Python
pyday_night_funkin/enums.py
Square789/PydayNightFunkin
8d43daec947202566419a2d5ce63cc191b7b8e3c
[ "Apache-2.0" ]
null
null
null
pyday_night_funkin/enums.py
Square789/PydayNightFunkin
8d43daec947202566419a2d5ce63cc191b7b8e3c
[ "Apache-2.0" ]
34
2021-09-10T01:08:14.000Z
2022-03-25T18:10:08.000Z
pyday_night_funkin/enums.py
Square789/PydayNightFunkin
8d43daec947202566419a2d5ce63cc191b7b8e3c
[ "Apache-2.0" ]
null
null
null
""" Enums that aren't really too coupled to anything else. """ from enum import IntEnum class DIFFICULTY(IntEnum): EASY = 0 NORMAL = 1 HARD = 2 def to_song_json_suffix(self) -> str: if self is self.EASY: return "-easy" elif self is self.NORMAL: return "" elif self is self.HARD: return "-hard" r...
15.828125
78
0.672261
158
1,013
4.221519
0.512658
0.053973
0.089955
0.083958
0.278861
0.278861
0.278861
0.278861
0.176912
0.176912
0
0.039846
0.231984
1,013
63
79
16.079365
0.817481
0.110563
0
0.191489
0
0
0.026876
0
0
0
0
0
0
1
0.042553
false
0
0.021277
0
0.851064
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
0
0
1
0
da78a73d88c09570047fcaf5e2a501ef100b4dc0
28,780
py
Python
tools/check_cluster.py
jmatuskey/jupyterhub-deploy
6669bb0fa8e6da52f74d4ca015cea9dc96105a34
[ "Unlicense" ]
1
2021-06-02T18:35:05.000Z
2021-06-02T18:35:05.000Z
tools/check_cluster.py
jmatuskey/jupyterhub-deploy
6669bb0fa8e6da52f74d4ca015cea9dc96105a34
[ "Unlicense" ]
64
2020-05-11T12:35:26.000Z
2022-03-28T16:03:37.000Z
tools/check_cluster.py
jmatuskey/jupyterhub-deploy
6669bb0fa8e6da52f74d4ca015cea9dc96105a34
[ "Unlicense" ]
11
2020-04-07T13:32:07.000Z
2022-02-07T19:16:24.000Z
#! /usr/bin/env python """Check properties of Terraformed resources and/or JupyterHub to verify good deployment. ignore the hub since it may not be delpoyed on the cluster yet. check creation date check for global hammer """ import sys import os import subprocess import argparse import re import json from collection...
37.087629
243
0.618277
3,636
28,780
4.770627
0.162816
0.016603
0.012914
0.023982
0.2581
0.22276
0.18056
0.160613
0.127176
0.100254
0
0.011195
0.2582
28,780
775
244
37.135484
0.801302
0.202571
0
0.18705
0
0.053957
0.486507
0.083808
0
0
0
0
0.043165
1
0.064748
false
0
0.019784
0.008993
0.136691
0.052158
0
0
0
null
0
0
0
0
0
0
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
1
0
da78b0227ad76c6a1e8ba2489ed9c76d00da8725
791
py
Python
tests/in/test_application.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
90
2019-02-21T10:05:28.000Z
2022-03-19T01:53:41.000Z
tests/in/test_application.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
99
2019-05-21T08:29:12.000Z
2022-03-25T09:55:15.000Z
tests/in/test_application.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
26
2019-04-04T06:31:36.000Z
2022-03-30T07:24:47.000Z
#! /usr/bin/python3.6 from pycatia import catia from tests.source_files import cat_part_measurable def test_application(): caa = catia() assert 'Application(name="CNEXT")' in caa.__repr__() def test_refresh(): caa = catia() documents = caa.documents documents.open(cat_part_measurable) docum...
19.775
56
0.705436
102
791
5.27451
0.333333
0.081784
0.126394
0.074349
0.416357
0.32342
0.32342
0.32342
0.32342
0.32342
0
0.0032
0.209861
791
39
57
20.282051
0.8576
0.025284
0
0.44
0
0
0.032468
0.032468
0
0
0
0
0.2
1
0.12
false
0
0.08
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da7992586d3c2316d0ce8cb23cf3e01e30ae505b
4,632
py
Python
test/util.py
CarysT/xar
f476c05dec373fcdcd0e884d5a0201501555edb9
[ "BSD-2-Clause" ]
null
null
null
test/util.py
CarysT/xar
f476c05dec373fcdcd0e884d5a0201501555edb9
[ "BSD-2-Clause" ]
null
null
null
test/util.py
CarysT/xar
f476c05dec373fcdcd0e884d5a0201501555edb9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import contextlib import hashlib import os import os.path import shutil import stat import subprocess import sys import xattr class TestCaseSkipError(Exception): pass def skip_if_no_compression_support(type): """ Raises TestCaseSkipError if the type is "lzma" and the test is running on darw...
31.726027
193
0.708765
721
4,632
4.457698
0.305132
0.02178
0.015246
0.034848
0.064095
0.053516
0.024891
0.024891
0.024891
0.024891
0
0.032711
0.155225
4,632
145
194
31.944828
0.788653
0.247193
0
0.117021
0
0
0.1039
0
0
0
0
0
0.180851
1
0.074468
false
0.021277
0.095745
0
0.191489
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
0
0
1
0
da79b4fcd76b875d0455312cd540c29c3adde2c1
15,083
py
Python
run_game_with_python_arcade.py
LiorAvrahami/fishy-game
e13d71ad04625edffc1ff32f56c918166f6b0bb9
[ "MIT" ]
5
2021-04-24T18:13:36.000Z
2021-08-31T13:54:55.000Z
run_game_with_python_arcade.py
LiorAvrahami/fishy-game
e13d71ad04625edffc1ff32f56c918166f6b0bb9
[ "MIT" ]
null
null
null
run_game_with_python_arcade.py
LiorAvrahami/fishy-game
e13d71ad04625edffc1ff32f56c918166f6b0bb9
[ "MIT" ]
null
null
null
import arcade import arcade.gui from modifications_to_python_arcade.gui_manager import ModifiedUIManager from modifications_to_python_arcade.resizeable_window import ResizeableWindow from arcade.gui.ui_style import UIStyle import fish from controls import PlayerControlsObject from fish_generator import RandomFishGene...
39.381201
211
0.679772
2,039
15,083
4.712604
0.14615
0.054116
0.028411
0.018316
0.399521
0.284733
0.197003
0.11791
0.095848
0.083047
0
0.014509
0.22774
15,083
382
212
39.484293
0.81044
0.047471
0
0.16
0
0
0.017241
0
0
0
0
0
0
1
0.12
false
0
0.058182
0.018182
0.301818
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
0
0
1
0
da7b3bc161256bb5501fd5bd641192702f9a7738
2,306
py
Python
pebbles/views/sessions.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
4
2017-05-11T14:50:32.000Z
2020-01-10T09:02:27.000Z
pebbles/views/sessions.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
145
2017-04-07T11:01:58.000Z
2019-12-11T15:30:23.000Z
pebbles/views/sessions.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
3
2017-10-25T12:36:16.000Z
2018-04-26T08:49:34.000Z
from flask_restful import fields, marshal from flask import Blueprint as FlaskBlueprint import logging import json from pebbles.models import User from pebbles.forms import SessionCreateForm from pebbles.server import app, restful from pebbles.views.commons import is_group_manager, update_email # changed sessions =...
36.603175
98
0.624024
265
2,306
5.218868
0.358491
0.045553
0.050615
0.028923
0
0
0
0
0
0
0
0.005254
0.257155
2,306
62
99
37.193548
0.802102
0.030789
0
0
0
0
0.15905
0
0
0
0
0
0
1
0.019231
false
0.019231
0.153846
0
0.25
0.096154
0
0
0
null
0
0
0
0
0
0
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
1
0
da7bab95ad749f6149016b3bc152e246a371a757
6,138
py
Python
train_rrca.py
deepeshhada/ReXPlug
f6ba1e1707e04f82451fba8ada19c731c8f7c46e
[ "Apache-2.0" ]
6
2021-04-04T05:09:32.000Z
2022-01-21T10:59:20.000Z
train_rrca.py
deepeshhada/ReXPlug
f6ba1e1707e04f82451fba8ada19c731c8f7c46e
[ "Apache-2.0" ]
null
null
null
train_rrca.py
deepeshhada/ReXPlug
f6ba1e1707e04f82451fba8ada19c731c8f7c46e
[ "Apache-2.0" ]
1
2021-11-06T05:36:03.000Z
2021-11-06T05:36:03.000Z
import argparse import os import pickle from copy import deepcopy import pandas as pd import torch.optim as optim from torch.utils.data import DataLoader from collate import CollateTrain, CollateTest from models.RRCA import * from utils.rrca_utils import evaluate, train_one_epoch def get_embeddings(dataset_path): ...
33.540984
117
0.750244
920
6,138
4.693478
0.197826
0.045855
0.031264
0.035665
0.229968
0.173692
0.112552
0.087077
0.087077
0.064845
0
0.011473
0.119583
6,138
182
118
33.725275
0.787565
0.003258
0
0.102564
0
0.00641
0.145029
0.009647
0
0
0
0
0
1
0.025641
false
0
0.064103
0
0.115385
0.070513
0
0
0
null
0
0
0
0
0
0
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
1
0
da8173e404603548727bb332a693728554dd4658
3,927
py
Python
timekeeper/log.py
jmcph4/timekeeper
1ab850739c7071ebd8a4d1a63795d014bfa9c41b
[ "MIT" ]
null
null
null
timekeeper/log.py
jmcph4/timekeeper
1ab850739c7071ebd8a4d1a63795d014bfa9c41b
[ "MIT" ]
5
2017-07-19T10:09:32.000Z
2017-07-30T03:32:56.000Z
timekeeper/log.py
jmcph4/timekeeper
1ab850739c7071ebd8a4d1a63795d014bfa9c41b
[ "MIT" ]
null
null
null
from datetime import datetime import sqlite3 from . import slice class Log(object): """ Represents a series of slices, forming a log of how time was spent """ DT_FMT = "%Y-%m-%d %H:%M" _COL_WIDTH = 15 def __init__(self, slices): self._slices = {} for s in slices: ...
29.088889
164
0.507512
484
3,927
3.995868
0.272727
0.015512
0.018097
0.025336
0.333506
0.315926
0.297311
0.249741
0.212513
0.212513
0
0.011458
0.355488
3,927
134
165
29.30597
0.752667
0.152279
0
0.243243
0
0.013514
0.136219
0.028008
0
0
0
0
0
1
0.135135
false
0
0.040541
0
0.297297
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
0
0
1
0
da820a998854815eb9a984cf6f47297e37abd1fc
709
py
Python
tests/test_utils.py
leugimkm/codeseeker
f8a1f8668807a2b02cbaf5c596d26164ba75e366
[ "MIT" ]
1
2022-02-02T04:43:32.000Z
2022-02-02T04:43:32.000Z
tests/test_utils.py
leugimkm/codeseeker
f8a1f8668807a2b02cbaf5c596d26164ba75e366
[ "MIT" ]
7
2022-02-02T05:25:40.000Z
2022-03-23T17:16:19.000Z
tests/test_utils.py
leugimkm/codeseeker
f8a1f8668807a2b02cbaf5c596d26164ba75e366
[ "MIT" ]
null
null
null
import io import unittest from unittest.mock import patch from textwrap import dedent from codeseeker.utils import show class TestCodeSeekerUtils(unittest.TestCase): def test_show(self): data = [ {"path": "repository/path/to/file.py"}, {"path": "repository/path/to/file2.py"}, ...
24.448276
74
0.603667
83
709
5.012048
0.518072
0.134615
0.153846
0.096154
0.216346
0
0
0
0
0
0
0.011628
0.272214
709
28
75
25.321429
0.794574
0.014104
0
0
0
0
0.278336
0.15208
0
0
0
0
0.047619
1
0.047619
false
0
0.238095
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da828fe3ebcfe4b60891da48c991e49aa603a4a1
3,267
py
Python
cryptography/rail_fence_cipher/Python/rail_fence_cipher.py
avi-pal/al-go-rithms
5167a20f1db7b366ff19f2962c1746a02e4f5067
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
cryptography/rail_fence_cipher/Python/rail_fence_cipher.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
cryptography/rail_fence_cipher/Python/rail_fence_cipher.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
# used for decryption, take the second element for sorting def takeSecond(elem): return elem[1] def display_rail(lines): depth = len(lines) col = len(lines[0]) # depth is the number of rows of the grid # lines is a tuple where line[i] is the i-th line to print # col is the number of columns = number of charac...
27.923077
94
0.685644
520
3,267
4.280769
0.236538
0.049416
0.016173
0.02965
0.340072
0.323001
0.30009
0.287511
0.27044
0.237197
0
0.012864
0.191001
3,267
116
95
28.163793
0.829361
0.367309
0
0.457143
0
0
0.132713
0
0
0
0
0
0
1
0.057143
false
0
0
0.014286
0.1
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
0
0
0
0
0
0
0
1
0
da85a9841500fbd6e450901a3ca02828bbbeb03f
1,443
py
Python
selfdrive/can/tests/test_packer_chrysler.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
4
2019-02-12T03:06:31.000Z
2020-07-17T03:54:46.000Z
selfdrive/can/tests/test_packer_chrysler.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
3
2020-09-08T07:21:59.000Z
2020-09-08T07:22:07.000Z
selfdrive/can/tests/test_packer_chrysler.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
4
2019-05-21T19:02:46.000Z
2020-03-24T14:27:45.000Z
import unittest import random from selfdrive.can.tests.packer_old import CANPacker as CANPackerOld from selfdrive.can.packer import CANPacker import selfdrive.car.chrysler.chryslercan as chryslercan class TestPackerMethods(unittest.TestCase): def setUp(self): self.chrysler_cp_old = CANPackerOld("chrysler_pacif...
40.083333
120
0.726265
203
1,443
4.871921
0.315271
0.105157
0.113246
0.051567
0.435794
0.344793
0.293225
0.173913
0.173913
0.084934
0
0.039037
0.165627
1,443
35
121
41.228571
0.782392
0.02772
0
0.074074
0
0
0.057816
0.041399
0
0
0
0
0.074074
1
0.074074
false
0
0.185185
0
0.296296
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
0
0
1
0
da85c358f54be05780771410e2c91e3ce7581a8d
9,156
py
Python
kddg/api/layers.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
2
2016-06-14T00:32:02.000Z
2020-05-04T03:29:46.000Z
kddg/api/layers.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
null
null
null
kddg/api/layers.py
Kortemme-Lab/kddg
9fc09172abbefd4fef49261687c60a9bd9b6b29b
[ "MIT" ]
null
null
null
#!/usr/bin/python2.4 # encoding: utf-8 """ api_layers.py The definition of the layers of the database API and the generic user interface class. Created by Shane O'Connor 2015. Copyright (c) 2015 __UCSF__. All rights reserved. """ import inspect import functools from klab import colortext from kddg.api import settin...
34.292135
257
0.662844
1,152
9,156
4.978299
0.212674
0.056495
0.050218
0.020924
0.356582
0.33531
0.296774
0.207149
0.150654
0.122406
0
0.009556
0.245631
9,156
266
258
34.421053
0.820762
0.108126
0
0.302198
0
0
0.093132
0
0
0
0
0
0.005495
1
0.137363
false
0.021978
0.021978
0.010989
0.296703
0.010989
0
0
0
null
0
0
0
0
0
0
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
1
0
da8712cd2ff361045352f744da703fa2ec6f82df
3,142
py
Python
fb_api.py
wing3s/shop_bot
4c6a34538ac8de9999edae190f6269bc6a63c2cf
[ "BSD-3-Clause" ]
1
2016-04-11T01:18:53.000Z
2016-04-11T01:18:53.000Z
fb_api.py
wing3s/shop_bot
4c6a34538ac8de9999edae190f6269bc6a63c2cf
[ "BSD-3-Clause" ]
null
null
null
fb_api.py
wing3s/shop_bot
4c6a34538ac8de9999edae190f6269bc6a63c2cf
[ "BSD-3-Clause" ]
null
null
null
import os import requests import time import ConfigParser import logging import logging.config from requests.exceptions import RequestException from helper import get_logger, base_path config = ConfigParser.ConfigParser() config.read(os.path.join(base_path, 'config.ini')) logger = get_logger('fb_api', __file__) __au...
34.152174
70
0.510185
341
3,142
4.510264
0.316716
0.03186
0.029259
0.028609
0.287386
0.287386
0.287386
0.23407
0.23407
0.196359
0
0.013306
0.378103
3,142
92
71
34.152174
0.773797
0.001591
0
0.349398
0
0
0.103349
0
0
0
0
0
0
1
0.048193
false
0
0.096386
0
0.301205
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
0
0
1
0
da89128d24114037df1325dfa4587c3b0ac3e279
6,409
py
Python
examples/formula_library.py
bherbruck/plend
55271d79c983cc3b3307661833c5a7dcc11efc32
[ "MIT" ]
5
2020-02-21T09:22:58.000Z
2021-09-07T16:39:47.000Z
examples/formula_library.py
bherbruck/plend
55271d79c983cc3b3307661833c5a7dcc11efc32
[ "MIT" ]
null
null
null
examples/formula_library.py
bherbruck/plend
55271d79c983cc3b3307661833c5a7dcc11efc32
[ "MIT" ]
1
2022-01-26T20:00:47.000Z
2022-01-26T20:00:47.000Z
""" This example shows how to statically define formulas, add them to a formula library, optimize them, and output the results. "Statically in this context means we are manually setting the attribures (min and max) for each ingredient and nutrient rather defining them dynamically (which is where plend really shines) ...
60.462264
157
0.568575
656
6,409
5.478659
0.217988
0.054257
0.040067
0.045075
0.497496
0.458542
0.393434
0.217585
0.062883
0.031163
0
0.164482
0.345452
6,409
106
158
60.462264
0.692253
0.107037
0
0
0
0
0.036424
0.013907
0
0
0
0.009434
0
1
0
false
0
0.054054
0
0.054054
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da89cac67e3dd9455f993529126f6ea3e387def3
1,278
py
Python
sstmap/scripts/dtr_to_netcdf.py
ssabrii/SSTMap
f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9
[ "MIT" ]
23
2017-12-12T17:59:26.000Z
2022-02-01T20:19:56.000Z
sstmap/scripts/dtr_to_netcdf.py
ssabrii/SSTMap
f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9
[ "MIT" ]
45
2017-05-03T14:05:19.000Z
2022-03-02T07:28:39.000Z
sstmap/scripts/dtr_to_netcdf.py
ssabrii/SSTMap
f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9
[ "MIT" ]
24
2017-04-28T19:49:56.000Z
2021-11-05T17:57:02.000Z
from argparse import ArgumentParser import mdtraj as md def parse_args(): """Parse the command line arguments and perform some validation on the arguments Returns ------- args : argparse.Namespace The namespace containing the arguments """ parser = ArgumentParser( descripti...
29.045455
74
0.628326
152
1,278
5.098684
0.486842
0.034839
0.065806
0.051613
0.061935
0
0
0
0
0
0
0.002041
0.233177
1,278
43
75
29.72093
0.788776
0.126761
0
0
0
0
0.258986
0
0
0
0
0
0
1
0.111111
false
0
0.074074
0
0.222222
0.185185
0
0
0
null
0
0
0
0
0
0
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
1
0
da8e614ab7b081bdccebe5c0752328dc5769b689
11,303
py
Python
fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py
totuwei/corundum
e983ad519fb4523d0ffca32f5e436195bcfc945c
[ "BSD-2-Clause-FreeBSD" ]
544
2019-08-12T03:45:32.000Z
2022-03-19T14:17:20.000Z
fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py
akira2009999/corundum
cdc14769c33186c6d45fcd79b95c70889febff2b
[ "BSD-2-Clause-FreeBSD" ]
78
2020-08-20T20:06:33.000Z
2022-03-30T23:44:37.000Z
fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py
akira2009999/corundum
cdc14769c33186c6d45fcd79b95c70889febff2b
[ "BSD-2-Clause-FreeBSD" ]
142
2019-07-15T04:23:23.000Z
2022-03-29T01:25:33.000Z
#!/usr/bin/env python """ Copyright (c) 2019 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
35.211838
166
0.657348
1,674
11,303
4.038829
0.158303
0.101168
0.076912
0.066262
0.56042
0.4841
0.327171
0.308978
0.291229
0.221269
0
0.02679
0.253649
11,303
320
167
35.321875
0.774656
0.107228
0
0.244635
0
0
0.031867
0.002184
0
0
0.002581
0
0.038627
1
0.030043
false
0
0.017167
0
0.051502
0.034335
0
0
0
null
0
0
0
0
0
0
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
1
0
da8e6b5d27ab3ab699761ec5dcf3eadc2360c2c0
5,713
py
Python
scrape_votes.py
purrcat259/reddit-vote-grapher
0a0f1dccee7befc6e94e856d09eb61b546b34644
[ "MIT" ]
1
2016-05-18T06:30:26.000Z
2016-05-18T06:30:26.000Z
scrape_votes.py
purrcat259/reddit-vote-grapher
0a0f1dccee7befc6e94e856d09eb61b546b34644
[ "MIT" ]
null
null
null
scrape_votes.py
purrcat259/reddit-vote-grapher
0a0f1dccee7befc6e94e856d09eb61b546b34644
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import time import os import csv import praw import OAuth2Util from pprint import pprint class SubmissionCSV: def __init__(self, file_name='', csv_directory='data'): self.file_name = file_name + '.csv' self.file_path = os.path.join(os.getcwd(), csv_directory, self.file_name) ...
37.585526
114
0.593033
688
5,713
4.765988
0.252907
0.067399
0.070448
0.029277
0.165294
0.093626
0.031717
0.031717
0.031717
0
0
0.009512
0.300718
5,713
151
115
37.834437
0.811264
0.097322
0
0.10084
0
0.008403
0.075233
0.005638
0
0
0
0
0
1
0.117647
false
0.008403
0.05042
0
0.201681
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
da9203437dccc2b66c4d623067b94d8a0a97c3de
3,488
py
Python
DeleteBook.py
saurabhmaurya45/library-management-system
2e489728068cca87ed58f493ac2524b6586f66cf
[ "Apache-2.0" ]
null
null
null
DeleteBook.py
saurabhmaurya45/library-management-system
2e489728068cca87ed58f493ac2524b6586f66cf
[ "Apache-2.0" ]
null
null
null
DeleteBook.py
saurabhmaurya45/library-management-system
2e489728068cca87ed58f493ac2524b6586f66cf
[ "Apache-2.0" ]
null
null
null
from tkinter import * import pymysql as ms from tkinter import messagebox # Add your own database name and password here to reflect in the code mypass = "saurabh" mydatabase = "library" con = ms.connect(host="localhost", user="root", password=mypass, database=mydatabase) cur = con.cursor() # Enter Table...
35.591837
119
0.556479
443
3,488
4.376975
0.363431
0.041774
0.046416
0.03507
0.240846
0.22589
0.174317
0.174317
0.174317
0.114492
0
0.062041
0.297592
3,488
97
120
35.958763
0.729388
0.076261
0
0.149254
0
0
0.15061
0
0
0
0
0
0
1
0.029851
false
0.029851
0.044776
0
0.074627
0.104478
0
0
0
null
0
0
0
0
0
0
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
1
0
da920dcd51ae362c5f26a3360b65c16937f31fe7
8,474
py
Python
asdf/extension.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
asdf/extension.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
asdf/extension.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- import os import abc import warnings from pkg_resources import iter_entry_points import six import importlib from . import types from . import resolver from .util import get_class_name from .type_index import AsdfTypeIndex from ....
33.362205
80
0.623554
1,006
8,474
5.097416
0.269384
0.031201
0.023206
0.006435
0.205733
0.146451
0.115055
0.100234
0.081513
0.067473
0
0.001516
0.299504
8,474
253
81
33.494071
0.862365
0.345291
0
0.267176
0
0
0.070767
0.009462
0
0
0
0
0
1
0.152672
false
0.022901
0.091603
0.061069
0.381679
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
0
0
1
0
da923abab5b7e2cb6e8f37c23f2fa4cc9504aff5
2,153
py
Python
source/setup.py
Sylvain-Barde/mic-toolbox
10d9d930a1a359aaa831f2f917eff357a3d5282e
[ "BSD-3-Clause" ]
4
2019-06-28T20:36:33.000Z
2022-01-04T21:49:52.000Z
source/setup.py
Sylvain-Barde/mic-toolbox
10d9d930a1a359aaa831f2f917eff357a3d5282e
[ "BSD-3-Clause" ]
1
2019-06-27T14:52:52.000Z
2019-07-04T14:14:14.000Z
source/setup.py
Sylvain-Barde/mic-toolbox
10d9d930a1a359aaa831f2f917eff357a3d5282e
[ "BSD-3-Clause" ]
1
2019-06-27T13:33:42.000Z
2019-06-27T13:33:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Wed Sep 12 14:48:07 2018 @author: sb636 """ import os import sys from setuptools import setup, Extension, find_packages from distutils.errors import DistutilsModuleError # Check for cython installation try: from Cython.Distutils import b...
29.902778
85
0.625639
258
2,153
5.100775
0.472868
0.079027
0.021277
0.024316
0.051672
0.051672
0.051672
0.051672
0
0
0
0.013325
0.267998
2,153
71
86
30.323944
0.821701
0.099861
0
0.081633
0
0
0.132615
0
0
0
0
0
0
1
0.081633
false
0
0.183673
0
0.326531
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
0
0
1
0
da92ca41103ff60b1a50e24d1900c7aae0620a32
4,049
py
Python
api-reconstruction/ipython_analysis.py
eurecom-s3/syscall2api
2f2c72c759b0fd803fe1302c3b6717cda1906916
[ "MIT" ]
10
2019-09-24T13:36:15.000Z
2021-11-01T02:40:10.000Z
api-reconstruction/ipython_analysis.py
eurecom-s3/syscall2api
2f2c72c759b0fd803fe1302c3b6717cda1906916
[ "MIT" ]
2
2020-10-19T11:51:08.000Z
2021-04-17T01:08:23.000Z
api-reconstruction/ipython_analysis.py
eurecom-s3/syscall2api
2f2c72c759b0fd803fe1302c3b6717cda1906916
[ "MIT" ]
null
null
null
#!/usr/local/bin/ipython3 -i import sys from analysis import * import analysis.classes as classes import nwalign as nw kb = {} apis = {} syscalls = {} regexes = {} models = {} models2 = {} kb_file = 'kb_no_empties.pickle' regex_file = 'new_regex.pickle' models_file = 'models.pickle' models2_file = 'models2.pickle' ...
28.716312
79
0.678686
551
4,049
4.727768
0.185118
0.055278
0.029942
0.013052
0.127447
0.098273
0.087524
0.031478
0.031478
0
0
0.004456
0.224006
4,049
140
80
28.921429
0.824634
0.056557
0
0.160714
0
0
0.153987
0
0
0
0
0
0
1
0.017857
false
0
0.035714
0
0.053571
0.169643
0
0
0
null
0
0
0
0
0
0
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
1
0
16f0b6155221bd21f39e5a25133a8324a5286c72
3,785
py
Python
accessdata/api/extensions.py
AccessDataOps/FTK-API-SDK
34e689a55eadacc51e6ff585e9126799f80e269a
[ "MIT" ]
2
2021-12-10T10:20:08.000Z
2022-01-06T11:15:43.000Z
accessdata/api/extensions.py
AccessDataOps/FTK-API-SDK
34e689a55eadacc51e6ff585e9126799f80e269a
[ "MIT" ]
null
null
null
accessdata/api/extensions.py
AccessDataOps/FTK-API-SDK
34e689a55eadacc51e6ff585e9126799f80e269a
[ "MIT" ]
null
null
null
## /api/extensions.py """ Maintains the API endpoint URI extensions. """ ## Declaring __all__ __all__ = ( "status_check_ext", "site_server_status_check_ext", "case_create_ext", "case_list_ext", "case_create_portable_ext", "evidence_list_ext", "evidence_processed_list_ext", "evidence_process_ext", "object_pa...
33.495575
97
0.763804
476
3,785
5.638655
0.22479
0.086066
0.069672
0.088674
0.335693
0.259314
0.086811
0.029806
0.029806
0
0
0.000298
0.113606
3,785
113
98
33.495575
0.799702
0.090092
0
0
0
0
0.491501
0.382474
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
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
0
0
1
0
16f0f93ca79ae51931ef205e9c059a600e80445c
1,982
py
Python
evaluators/dialog/state/distinct.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
3
2021-01-12T05:43:20.000Z
2021-03-05T17:03:06.000Z
evaluators/dialog/state/distinct.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
null
null
null
evaluators/dialog/state/distinct.py
kaniblu/vhda
35941097ef552568c29f66cc55d8ce1927f34978
[ "MIT" ]
null
null
null
__all__ = ["DistinctStateEvaluator"] from dataclasses import dataclass from typing import Sequence, Optional import torch import utils from utils import TensorMap from datasets import VocabSet from ...evaluator import DialogEvaluator @dataclass class DistinctStateEvaluator(DialogEvaluator): vocabs: VocabSet ...
33.59322
79
0.584258
239
1,982
4.769874
0.309623
0.031579
0.023684
0.034211
0.173684
0.1
0.1
0.1
0.1
0.1
0
0.002952
0.316347
1,982
58
80
34.172414
0.838376
0
0
0.042553
0
0
0.028254
0.0111
0
0
0
0
0
1
0.12766
false
0
0.148936
0.06383
0.468085
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
0
0
1
0
16f2f95568be402c343f83e95bd816466c4a6dd1
1,788
py
Python
src/dataset/manually_labeled_bases.py
yullidias/AutomaticIronyDetection
3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9
[ "MIT" ]
null
null
null
src/dataset/manually_labeled_bases.py
yullidias/AutomaticIronyDetection
3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9
[ "MIT" ]
1
2020-12-05T14:22:03.000Z
2020-12-05T14:22:03.000Z
src/dataset/manually_labeled_bases.py
yullidias/AutomaticIronyDetection
3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9
[ "MIT" ]
null
null
null
import src.utils.constants as cns from src.utils.files import write_list import pandas as pd import glob import os def read_sheets(): manually_labeled_df = pd.DataFrame() for sheet in glob.glob(cns.PATH_LABELED + '*'): manually_labeled_df = manually_labeled_df.append( pd.read_excel(sh...
26.294118
77
0.644295
243
1,788
4.440329
0.325103
0.074143
0.063021
0.037071
0.222428
0.18721
0.087118
0
0
0
0
0.001461
0.23434
1,788
67
78
26.686567
0.786706
0
0
0
0
0
0.143736
0
0
0
0
0
0
1
0.145833
false
0
0.104167
0.041667
0.395833
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16f4d90e8a8de6335b4d40090aa8cb9b83b7e850
871
py
Python
Larry/preprocess.py
NCBI-Hackathons/ClusterDuck
1d5478500dffea973f96affd969783278193aa8a
[ "MIT" ]
7
2019-02-19T15:10:24.000Z
2020-05-31T00:41:13.000Z
Larry/preprocess.py
NCBI-Hackathons/ClusterDuck
1d5478500dffea973f96affd969783278193aa8a
[ "MIT" ]
11
2018-03-21T20:01:32.000Z
2022-03-11T23:19:40.000Z
Larry/preprocess.py
NCBI-Hackathons/DiseaseClusters
1d5478500dffea973f96affd969783278193aa8a
[ "MIT" ]
3
2018-03-19T13:14:23.000Z
2018-03-20T14:13:38.000Z
from nltk.corpus import stopwords from nltk.tokenize import RegexpTokenizer from nltk.stem import WordNetLemmatizer STOPWORDS = set(stopwords.words('english')) # Instantiate Lemmanizer WNL = WordNetLemmatizer() def preprocess(abstract, keywords=None): """ Convert an abstract to word tokens. This is done by...
26.393939
77
0.6969
102
871
5.95098
0.539216
0.039539
0
0
0
0
0
0
0
0
0
0
0.228473
871
32
78
27.21875
0.903274
0.394948
0
0
0
0
0.031513
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16f520db46f1b8b8a53e17ff7a93ac14fed25f00
16,848
py
Python
Codes/env.py
zongdaoming/Reinforcement-Learning
426b646b1184e96d8a0f6c6341e53b13ef89ea12
[ "Apache-2.0" ]
1
2021-04-20T13:49:55.000Z
2021-04-20T13:49:55.000Z
Codes/env.py
zongdaoming/Reinforcement-Learning
426b646b1184e96d8a0f6c6341e53b13ef89ea12
[ "Apache-2.0" ]
1
2021-04-18T18:27:49.000Z
2021-04-18T18:27:49.000Z
Codes/env.py
zongdaoming/Reinforcement-Learning
426b646b1184e96d8a0f6c6341e53b13ef89ea12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @author : naive dormin # @time : 2021/04/19 02:17:43 # @version : 1.0.0 import os import time import numpy as np import random from utils import * import pickle from ConvE import ConvE_double import torch import torch.autograd as autograd import torch.nn as ...
42.014963
107
0.553063
1,927
16,848
4.623249
0.149974
0.034572
0.038164
0.042429
0.393086
0.328656
0.275564
0.234706
0.196543
0.165563
0
0.032135
0.344314
16,848
400
108
42.12
0.774328
0.094611
0
0.237624
0
0
0.081437
0.063137
0
0
0
0
0
1
0.016502
false
0.006601
0.039604
0
0.079208
0.026403
0
0
0
null
0
0
0
0
0
0
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
1
0
16f718d511a624ff6bafcf060c184c7b35cb49f0
2,608
py
Python
txrtpengine/NGCPProxy.py
braams/txrtpengine
5511cf79d7fc338b28d927c19e5ff3b88e66a5be
[ "MIT" ]
null
null
null
txrtpengine/NGCPProxy.py
braams/txrtpengine
5511cf79d7fc338b28d927c19e5ff3b88e66a5be
[ "MIT" ]
null
null
null
txrtpengine/NGCPProxy.py
braams/txrtpengine
5511cf79d7fc338b28d927c19e5ff3b88e66a5be
[ "MIT" ]
null
null
null
import json from twisted.internet import reactor from twisted.python import log from twisted.web.resource import Resource from twisted.web.server import NOT_DONE_YET from twisted.web.server import Site from txrtpengine.NGCP import NGCPClient class NGCPProxy(Resource): def __init__(self, addr): self.c =...
33.435897
107
0.625383
321
2,608
4.965732
0.417445
0.041405
0.035132
0.016939
0.100376
0.032622
0
0
0
0
0
0.017792
0.267255
2,608
77
108
33.87013
0.816327
0.132285
0
0.039216
0
0
0.066933
0
0
0
0
0
0
1
0.137255
false
0
0.176471
0
0.45098
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
0
0
1
0
16f73a2d16ee1a1b4874c0d6207d250cd9f1609d
6,980
py
Python
ise_session_gui.py
ComtecSystem-dev/ise_session
299bf47b7584094c7722a27a5cbec704e8acc084
[ "Apache-2.0" ]
null
null
null
ise_session_gui.py
ComtecSystem-dev/ise_session
299bf47b7584094c7722a27a5cbec704e8acc084
[ "Apache-2.0" ]
null
null
null
ise_session_gui.py
ComtecSystem-dev/ise_session
299bf47b7584094c7722a27a5cbec704e8acc084
[ "Apache-2.0" ]
null
null
null
import sys import requests import xmltodict from functools import partial from PyQt5.QtWidgets import * from PyQt5.QtCore import Qt from PyQt5 import uic #Link : Qt5 UI File # - condition : The UI file should be located in the sam directory as the this file form_class = uic.loadUiType("./ise_session.ui")...
41.058824
109
0.570487
807
6,980
4.72119
0.22057
0.033071
0.018898
0.033596
0.298163
0.298163
0.275591
0.234646
0.234646
0.234646
0
0.013834
0.316476
6,980
170
110
41.058824
0.784741
0.039398
0
0.227273
0
0
0.13174
0
0
0
0
0
0
1
0.060606
false
0.007576
0.05303
0
0.166667
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16fa7014b2509e362e1a19500f13adaa6c41db09
1,109
py
Python
caption_generation/sub_json.py
Collapsar-G/clevr-dataset-gen
a09b0559b53891bf4f4771190e4ad361406c67fe
[ "BSD-3-Clause" ]
1
2021-05-23T13:48:59.000Z
2021-05-23T13:48:59.000Z
caption_generation/sub_json.py
Collapsar-G/clevr-dataset-gen
a09b0559b53891bf4f4771190e4ad361406c67fe
[ "BSD-3-Clause" ]
null
null
null
caption_generation/sub_json.py
Collapsar-G/clevr-dataset-gen
a09b0559b53891bf4f4771190e4ad361406c67fe
[ "BSD-3-Clause" ]
null
null
null
import argparse import json import os import ijson parser = argparse.ArgumentParser() # /questions/CLEVR_test_questions.json # Inputs parser.add_argument('--all_scene_paths', default='../data/CLEVR_v1.0/scenes', help="JSON file containing questions information for all images " + ...
34.65625
103
0.627592
140
1,109
4.728571
0.485714
0.036254
0.058912
0.054381
0.057402
0
0
0
0
0
0
0.017794
0.239856
1,109
31
104
35.774194
0.767497
0.055005
0
0
0
0
0.321839
0.084291
0
0
0
0
0
1
0
false
0
0.16
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e50054bcfcc58e68ad2fe236a5c12539ae5190f0
39,700
py
Python
det3d/models/bbox_heads/clear_mg_ohs_head.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
47
2022-03-21T02:41:39.000Z
2022-03-30T17:25:29.000Z
det3d/models/bbox_heads/clear_mg_ohs_head.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
1
2022-03-28T15:11:26.000Z
2022-03-28T16:27:40.000Z
det3d/models/bbox_heads/clear_mg_ohs_head.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
2
2022-03-23T12:56:14.000Z
2022-03-27T14:25:50.000Z
# Copyright (c) Gorilla-Lab. All rights reserved. import logging from functools import partial from collections import defaultdict from typing import Dict, List, Optional, Sequence import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from ..losses.ohs_loss_clear import OHSLossClear fr...
46.541618
133
0.540227
4,925
39,700
4.033503
0.096041
0.033828
0.038611
0.019935
0.420992
0.349711
0.26821
0.225925
0.169444
0.152882
0
0.015431
0.358463
39,700
852
134
46.596244
0.764537
0.093325
0
0.204511
0
0
0.036144
0.000615
0
0
0
0
0.009023
1
0.018045
false
0
0.02406
0
0.058647
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
0
0
1
0
e501d8d323b13656dcc8aa99310855c82f2554fb
4,267
py
Python
run_full_dataset.py
TimoK93/ApLift
732070175ab6bf76db5b0c793cdb4a1fb5d235d7
[ "MIT" ]
4
2021-09-23T17:44:01.000Z
2022-01-10T07:14:25.000Z
run_full_dataset.py
TimoK93/ApLift
732070175ab6bf76db5b0c793cdb4a1fb5d235d7
[ "MIT" ]
1
2021-10-18T07:41:31.000Z
2021-10-18T07:41:31.000Z
run_full_dataset.py
TimoK93/ApLift
732070175ab6bf76db5b0c793cdb4a1fb5d235d7
[ "MIT" ]
null
null
null
""" A script to run the main script with all sequences of a dataset. To use the script a config.yaml needs to be specified. Example usage: python3 main.py config/example_config.yaml if "pretrained_model_path" is passed as an argument in the config, training is skipped and pretrained models are used for the infer...
40.638095
117
0.588704
578
4,267
4.207612
0.261246
0.069079
0.059211
0.046875
0.362253
0.280839
0.263158
0.260691
0.260691
0.260691
0
0.028779
0.258964
4,267
104
118
41.028846
0.740354
0.093743
0
0.266667
0
0
0.172127
0.012084
0
0
0
0
0
1
0.026667
false
0
0.066667
0
0.093333
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
0
0
0
0
0
0
0
1
0
e5033a61e857baa0aed9b97b41edbcf668557962
298
py
Python
_Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
_Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
_Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/excluding-specific-characters/problem import re # Inputs standard_input = """think?""" Regex_Pattern = ( r"^[^\d][^aeiou][^bcDF][^\r\n\t\f\s][^AEIOU][^.,]$" ) # Do not delete 'r'. print(str(bool(re.search(Regex_Pattern, input()))).lower()) # true
18.625
77
0.64094
41
298
4.585366
0.829268
0.12766
0
0
0
0
0
0
0
0
0
0
0.114094
298
15
78
19.866667
0.712121
0.355705
0
0
0
0
0.28877
0.256684
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e503d96de70079ddac429727f7983b8a0fcdef59
354
py
Python
toroid/toroid/pairs.py
LeoTindall/corewar32
c29891ca67c01dd65d01d120364a010eb12eb255
[ "Apache-2.0" ]
null
null
null
toroid/toroid/pairs.py
LeoTindall/corewar32
c29891ca67c01dd65d01d120364a010eb12eb255
[ "Apache-2.0" ]
1
2016-08-06T23:20:56.000Z
2016-08-06T23:20:56.000Z
toroid/toroid/pairs.py
SilverWingedSeraph/corewar32
c29891ca67c01dd65d01d120364a010eb12eb255
[ "Apache-2.0" ]
null
null
null
def make_pairings(warriors): if len(warriors) == 0: return False, False pairings = [] for (warrior1, warrior2) in zip(warriors[0::2], warriors[1::2]): pairings.append((warrior1, warrior2)) if len(warriors) % 2 == 0: odd_one_out = False else: odd_one_out = warriors[-1]...
29.5
68
0.610169
47
354
4.446809
0.446809
0.086124
0.129187
0
0
0
0
0
0
0
0
0.045802
0.259887
354
11
69
32.181818
0.751908
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
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
0
0
0
0
0
0
0
0
0
0
1
0
e504a4528ab13dc7037b0bc87eb63a2bf6c3d4cb
2,550
py
Python
tests/test_deny_mime_type_validator.py
fastmonkeys/pontus
6542190aae896cd79c55f7f43e98a6bf3cbc613b
[ "MIT" ]
4
2017-04-24T10:17:28.000Z
2020-05-28T06:25:03.000Z
tests/test_deny_mime_type_validator.py
fastmonkeys/pontus
6542190aae896cd79c55f7f43e98a6bf3cbc613b
[ "MIT" ]
9
2015-02-23T14:27:37.000Z
2021-02-24T13:23:41.000Z
tests/test_deny_mime_type_validator.py
fastmonkeys/pontus
6542190aae896cd79c55f7f43e98a6bf3cbc613b
[ "MIT" ]
1
2017-08-14T16:40:44.000Z
2017-08-14T16:40:44.000Z
# -*- coding: utf-8 -*- import os import pytest import boto3 from pontus.exceptions import ValidationError from pontus.validators import DenyMimeType class TestDenyMimeTypeValidator(object): @pytest.fixture def jpeg_key(self, bucket): with open(os.path.join( os.path.dirname(__file__), ...
29.310345
78
0.608627
292
2,550
5.034247
0.25
0.061905
0.069388
0.081633
0.644218
0.57483
0.554422
0.554422
0.444218
0.385714
0
0.002221
0.293725
2,550
86
79
29.651163
0.813992
0.008235
0
0.432432
0
0
0.159478
0.009102
0
0
0
0
0.054054
1
0.108108
false
0
0.067568
0
0.202703
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
0
0
1
0
e50744ae0a91afd75f5121562b3f88c9fadcfea8
1,966
py
Python
MyModel/signLanguageTranslator.py
rahulmishra11/Sign-Language-Translator
83b6907f722324d01142ab25e9e9cf806c51b0d3
[ "Apache-2.0" ]
null
null
null
MyModel/signLanguageTranslator.py
rahulmishra11/Sign-Language-Translator
83b6907f722324d01142ab25e9e9cf806c51b0d3
[ "Apache-2.0" ]
null
null
null
MyModel/signLanguageTranslator.py
rahulmishra11/Sign-Language-Translator
83b6907f722324d01142ab25e9e9cf806c51b0d3
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import pandas as pd import numpy as np import tensorflow.keras as keras train = pd.read_csv("./sign_mnist_train/sign_mnist_train.csv") test = pd.read_csv("./sign_mnist_test/sign_mnist_test.csv") # put labels into y_train variable Y_train = train["label"] # Drop 'label' column X_train = train....
29.787879
87
0.715158
301
1,966
4.508306
0.269103
0.113486
0.062638
0.08843
0.537214
0.450258
0.422255
0.422255
0.422255
0.422255
0
0.041351
0.126653
1,966
65
88
30.246154
0.748981
0.066124
0
0.288889
0
0
0.143794
0.058502
0
0
0
0
0
1
0
false
0
0.088889
0
0.088889
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
0
0
0
0
0
0
0
0
1
0
e507533d51e8ae8cde7f283f5c299ebd345bec98
5,817
py
Python
gammapy/detect/tests/test_kernel.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
3
2019-01-28T12:21:14.000Z
2019-02-10T19:58:07.000Z
gammapy/detect/tests/test_kernel.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
gammapy/detect/tests/test_kernel.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from numpy.testing import assert_allclose from astropy.io import fits from astropy.units import Quantity from astropy.coordinates.angles import Angle from...
36.130435
97
0.677153
698
5,817
5.47851
0.302292
0.020136
0.013598
0.021967
0.317469
0.299425
0.275366
0.252877
0.234048
0.195607
0
0.026203
0.238955
5,817
160
98
36.35625
0.837588
0.223655
0
0.28866
0
0
0.020184
0
0
0
0
0
0.103093
1
0.061856
false
0
0.123711
0
0.195876
0.010309
0
0
0
null
0
0
0
0
0
0
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
1
0
e508b0cb043508fe01e3e1d06e6baa67a2130ba3
4,772
py
Python
morsesmale.py
scotthellman/discrete-topology
6182fe607868d88c462c185be8629a35ad2d7c37
[ "MIT" ]
null
null
null
morsesmale.py
scotthellman/discrete-topology
6182fe607868d88c462c185be8629a35ad2d7c37
[ "MIT" ]
null
null
null
morsesmale.py
scotthellman/discrete-topology
6182fe607868d88c462c185be8629a35ad2d7c37
[ "MIT" ]
null
null
null
import networkx as nx import numpy as np import scipy import graph import itertools from collections import defaultdict def calculate_persistence(crystal, other, minimum_value, G, function_vals): minimums = [] min_vertices = [] other = set(other) for vertex in crystal: neighbors = set(G.neighbo...
34.832117
91
0.615884
567
4,772
5.017637
0.241623
0.059051
0.029877
0.025308
0.165905
0.134622
0.047803
0
0
0
0
0.007136
0.295264
4,772
137
92
34.832117
0.838537
0.028709
0
0.059322
0
0
0.00259
0
0
0
0
0.007299
0
1
0.050847
false
0
0.059322
0
0.169492
0.025424
0
0
0
null
0
0
0
0
0
0
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
1
0
e50969a938fad964949586d116b12c2990a0ae87
2,054
py
Python
pyxll_jupyter/widget.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
1
2020-12-28T10:40:38.000Z
2020-12-28T10:40:38.000Z
pyxll_jupyter/widget.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
null
null
null
pyxll_jupyter/widget.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
null
null
null
""" JupyterQtWidget is the widget that gets embedded in Excel and hosts a tabbed browser widget containing the Jupyter notebook. """ from .kernel import start_kernel, launch_jupyter from .browser import Browser from .qtimports import QWidget, QVBoxLayout import subprocess import ctypes class JupyterQtWidget(QWidget):...
36.678571
95
0.619279
246
2,054
5.089431
0.47561
0.031949
0.028754
0
0
0
0
0
0
0
0
0.011096
0.297955
2,054
55
96
37.345455
0.857143
0.221519
0
0
0
0
0.011356
0
0
0
0
0
0
1
0.057143
false
0
0.142857
0
0.228571
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
0
0
1
0
e50c65e44676b2b7cbe06fd4c5deb5f102a8415d
621
py
Python
py/A Rule Of Divisibility By 13.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
3
2018-03-16T14:52:40.000Z
2020-12-04T10:12:07.000Z
py/A Rule Of Divisibility By 13.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
null
null
null
py/A Rule Of Divisibility By 13.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
5
2017-06-30T05:35:00.000Z
2019-07-13T08:05:30.000Z
""" https://www.codewars.com/kata/564057bc348c7200bd0000ff/train/python """ def thirt(n): seq = [1,10,9,12,3,4] n = list(int(i) for i in reversed(str(n))) if len(seq) < len(n): compute1 = [i for i in seq[0:len(n)-len(seq)]] seq.extend(compute1) compute1 = sum(i * j for i,j in zip(n,seq))...
34.5
67
0.602254
106
621
3.528302
0.339623
0.074866
0.053476
0.074866
0.42246
0.42246
0.42246
0.42246
0.315508
0.139037
0
0.082278
0.236715
621
17
68
36.529412
0.706751
0.107891
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
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
0
0
1
0
e50e8e3032d7d7837365ea7b6780cf4d9b0c82b7
5,722
py
Python
entityfactssheetsharvester/entityfactssheetsharvester.py
zazi/entityfactssheetsharvester
150e702a763d73356adba112c0e1c1141df4884c
[ "Apache-2.0" ]
1
2019-08-13T07:44:32.000Z
2019-08-13T07:44:32.000Z
entityfactssheetsharvester/entityfactssheetsharvester.py
zazi/entityfactssheetsharvester
150e702a763d73356adba112c0e1c1141df4884c
[ "Apache-2.0" ]
null
null
null
entityfactssheetsharvester/entityfactssheetsharvester.py
zazi/entityfactssheetsharvester
150e702a763d73356adba112c0e1c1141df4884c
[ "Apache-2.0" ]
1
2019-08-13T07:44:32.000Z
2019-08-13T07:44:32.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import json import os import socket import sys import requests from threading import current_thread from rx import create, of from rx import operators as op from rx.scheduler import ThreadPoolScheduler USER_AGENT_HTTP_HEADER_KEY = 'user-agent' USER_AGENT_PAT...
41.463768
178
0.67791
677
5,722
5.420975
0.243722
0.120436
0.049046
0.045777
0.320163
0.236785
0.145504
0.118529
0.101635
0.101635
0
0.009574
0.23331
5,722
137
179
41.766423
0.826989
0.009962
0
0.082474
0
0.030928
0.164959
0.022783
0
0
0
0
0
1
0.113402
false
0
0.103093
0.030928
0.329897
0.123711
0
0
0
null
0
0
0
0
0
0
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
1
0
e51032e8f05343cce31308455d21b22aca3ea53e
5,086
py
Python
pyner/util/optimizer.py
chantera/pyner
6de19713871e923c997495c07e2ec249bded8671
[ "MIT" ]
1
2019-06-16T00:52:26.000Z
2019-06-16T00:52:26.000Z
pyner/util/optimizer.py
chantera/pyner
6de19713871e923c997495c07e2ec249bded8671
[ "MIT" ]
null
null
null
pyner/util/optimizer.py
chantera/pyner
6de19713871e923c997495c07e2ec249bded8671
[ "MIT" ]
null
null
null
from chainer import optimizer_hooks from chainer import optimizers from chainer import training import numpy import logging logger = logging.getLogger(__name__) def create_optimizer(configs): """ :param optimizer_config: dict, 学習のパラメータを含む辞書 """ if 'optimizer' not in configs: raise Exception...
33.682119
83
0.621707
557
5,086
5.468582
0.278276
0.09455
0.038411
0.023638
0.282994
0.200263
0.200263
0.155614
0.133946
0.133946
0
0.008845
0.288635
5,086
150
84
33.906667
0.833057
0.220016
0
0.215909
0
0
0.101453
0.009081
0
0
0
0
0
1
0.090909
false
0
0.056818
0.011364
0.204545
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
0
0
1
0
e510c7426f5e3c38449cb80f147daf9524ba1a19
4,553
py
Python
5th_pipeline.py
Jose-Oton/airflow_project
1b65a83975be63ad15cab95ad2947f6526400368
[ "Apache-2.0" ]
1
2021-07-08T12:29:34.000Z
2021-07-08T12:29:34.000Z
5th_pipeline.py
Jose-Oton/airflow_project
1b65a83975be63ad15cab95ad2947f6526400368
[ "Apache-2.0" ]
null
null
null
5th_pipeline.py
Jose-Oton/airflow_project
1b65a83975be63ad15cab95ad2947f6526400368
[ "Apache-2.0" ]
null
null
null
#1. Documentación de un DAG """ ## PYSPARK DAG Este pipeline toma data de Covid compartida de forma pública por Google y calcula unos KPIs. """ from airflow import DAG from datetime import timedelta, datetime from airflow.utils.dates import days_ago from airflow.models import Variable from airflow.operat...
34.755725
123
0.656929
524
4,553
5.494275
0.385496
0.038208
0.029524
0.036124
0.234109
0.234109
0.172282
0.146579
0.071553
0.027787
0
0.009461
0.233912
4,553
130
124
35.023077
0.81594
0.175928
0
0.097826
0
0
0.317385
0.048679
0
0
0
0
0
1
0.01087
false
0
0.119565
0
0.152174
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
0
0
1
0
e5137ca9a23bdb8d2e99e6fe8d556b4318b8b2ca
9,531
py
Python
components/fatfs/fatfsgen_utils/fs_object.py
iPlon-org/esp-idf
a5227db2a75102ca1a17860188c3c352a529a01b
[ "Apache-2.0" ]
5
2021-11-22T06:47:54.000Z
2022-01-04T06:58:43.000Z
components/fatfs/fatfsgen_utils/fs_object.py
iPlon-org/esp-idf
a5227db2a75102ca1a17860188c3c352a529a01b
[ "Apache-2.0" ]
null
null
null
components/fatfs/fatfsgen_utils/fs_object.py
iPlon-org/esp-idf
a5227db2a75102ca1a17860188c3c352a529a01b
[ "Apache-2.0" ]
2
2022-01-05T05:09:13.000Z
2022-02-09T22:32:54.000Z
# SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import os from typing import List, Optional, Tuple from .entry import Entry from .exceptions import FatalError, WriteDirectoryException from .fat import FAT, Cluster from .fatfs_state import FATFSState from .utils...
42.172566
117
0.618193
1,129
9,531
4.977857
0.159433
0.057651
0.034164
0.013523
0.281139
0.21637
0.140569
0.140569
0.127046
0.112456
0
0.003474
0.305319
9,531
225
118
42.36
0.845341
0.135663
0
0.234568
0
0
0.013091
0.002841
0
0
0.001482
0
0
1
0.135802
false
0
0.04321
0.04321
0.314815
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
0
0
1
0
e514935f4c1b7392f48ec35e4356650b174def56
6,625
py
Python
addons14/calendar_base_booking/models/bookable_mixin.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/calendar_base_booking/models/bookable_mixin.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/calendar_base_booking/models/bookable_mixin.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
# Copyright 2020 Akretion (http://www.akretion.com). # @author Sébastien BEAU <sebastien.beau@akretion.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from collections import defaultdict from dateutil.relativedelta import relativedelta from odoo import _, fields, models from odoo.exceptions impo...
34.505208
84
0.570717
764
6,625
4.730366
0.205497
0.059768
0.032374
0.02352
0.306586
0.226065
0.144162
0.111787
0.111787
0.079137
0
0.003801
0.324981
6,625
191
85
34.685864
0.804338
0.135849
0
0.180556
0
0
0.068724
0
0
0
0
0
0
1
0.111111
false
0
0.034722
0.027778
0.270833
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
0
0
1
0