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
59d815953d3974c813c0ea240136e075037f3a4c
2,032
py
Python
.SpaceVim/bundle/fcitx.vim/plugin/fcitx.py
LimeIncOfficial/Black-Box
2361e5a9683aaa90bad26e58b80df55675de88a6
[ "MIT" ]
2
2022-03-26T09:14:20.000Z
2022-03-26T17:04:43.000Z
.SpaceVim/bundle/fcitx.vim/plugin/fcitx.py
LimeIncOfficial/Black-Box
2361e5a9683aaa90bad26e58b80df55675de88a6
[ "MIT" ]
null
null
null
.SpaceVim/bundle/fcitx.vim/plugin/fcitx.py
LimeIncOfficial/Black-Box
2361e5a9683aaa90bad26e58b80df55675de88a6
[ "MIT" ]
null
null
null
# vim:fileencoding=utf-8 import os import vim import socket import struct import contextlib fcitxsocketfile = vim.eval('s:fcitxsocketfile') class FcitxComm(object): STATUS = struct.pack('i', 0) ACTIVATE = struct.pack('i', 1 | (1 << 16)) DEACTIVATE = struct.pack('i', 1) INT_SIZE = struct.calcsize('i')...
25.721519
105
0.645669
269
2,032
4.784387
0.304833
0.037296
0.043512
0.041958
0.177933
0.091686
0.051282
0
0
0
0
0.013572
0.202264
2,032
78
106
26.051282
0.780382
0.037894
0
0.1
0
0
0.105074
0.011789
0
0
0
0
0
1
0.183333
false
0
0.083333
0.016667
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
59d8eb391e49f53fa6bd3a0f7066dcb0749c813d
4,373
py
Python
app/check.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
app/check.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
app/check.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "R. Bauer" __copyright__ = "MedPhyDO - Machbarkeitsstudien des Instituts für Medizinische Strahlenphysik und Strahlenschutz am Klinikum Dortmund im Rahmen von Bachelor und Masterarbeiten an der TU-Dortmund / FH-Dortmund" __credits__ = ["R.Bauer", "K.Loot"] __license__ = "MIT" __ver...
31.460432
209
0.552938
459
4,373
5.198257
0.400871
0.049036
0.029338
0.015088
0.086756
0.064543
0.064543
0.064543
0.064543
0.033529
0
0.026477
0.326321
4,373
139
210
31.460432
0.783435
0.333638
0
0
0
0.029412
0.149683
0
0
0
0
0
0
1
0.117647
false
0
0.088235
0
0.264706
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
59de4c7689c2768a33575c05886260864bed92d5
4,354
py
Python
src/services/weixin.py
jizhouli/ladder-tournament
0ecc072e79416f91f344a184d54ba4e5cf1a3167
[ "MIT" ]
null
null
null
src/services/weixin.py
jizhouli/ladder-tournament
0ecc072e79416f91f344a184d54ba4e5cf1a3167
[ "MIT" ]
null
null
null
src/services/weixin.py
jizhouli/ladder-tournament
0ecc072e79416f91f344a184d54ba4e5cf1a3167
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import hashlib import base64 from Crypto.Cipher import AES import json from src.services.utils import Request class WXAPPError(Exception): def __init__(self, code, description): self.code = code self.description = description def __str__(self): return '%s: %s' ...
34.015625
85
0.590492
475
4,354
5.275789
0.24
0.059856
0.067837
0.071828
0.505986
0.474062
0.437749
0.437749
0.437749
0.437749
0
0.018549
0.294212
4,354
127
86
34.283465
0.796941
0.025494
0
0.464646
0
0
0.082153
0.027384
0
0
0
0
0
1
0.131313
false
0
0.050505
0.040404
0.353535
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
59de4f9a0481ba9dea9ad73ed402abe9cfca87bf
15,265
py
Python
Aplicacao/app.py
JuniorB5/App-desktop-caderno-de-contas
7f57656012e70a8641945d9b4caeb81adf6d25b2
[ "MIT" ]
null
null
null
Aplicacao/app.py
JuniorB5/App-desktop-caderno-de-contas
7f57656012e70a8641945d9b4caeb81adf6d25b2
[ "MIT" ]
null
null
null
Aplicacao/app.py
JuniorB5/App-desktop-caderno-de-contas
7f57656012e70a8641945d9b4caeb81adf6d25b2
[ "MIT" ]
null
null
null
from tkinter import * from placeholder import EntPlaceHold from gradiente import GradientFrame from tkinter import ttk, messagebox from funcoes_sqlite import FuncsSqlite from funcoes_txt import ArquivosTexto import os class Front(FuncsSqlite, ArquivosTexto): def __init__(self): self.window = Tk() ...
42.402778
151
0.634261
1,913
15,265
4.936226
0.195504
0.038123
0.029652
0.023404
0.366727
0.288256
0.255851
0.21095
0.182993
0.126761
0
0.026393
0.260334
15,265
359
152
42.520891
0.809937
0.117458
0
0.164444
0
0.004444
0.127362
0.015939
0
0
0
0.008357
0
1
0.102222
false
0
0.031111
0
0.137778
0.008889
0
0
0
null
0
0
0
0
0
0
0
0
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
59e68f6b671a9c6215090e86777cb82fbf2376fb
586
py
Python
app/api/mock_server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
1
2021-07-23T03:43:19.000Z
2021-07-23T03:43:19.000Z
app/api/mock_server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
null
null
null
app/api/mock_server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
null
null
null
import json import os.path import falcon from app.__root__ import __path__ class MockServerResource: def __init__(self): self.__root_path__ = __path__() async def on_get(self, req, resp, route: str): if not route.endswith(".json"): route += ".json" filepath = os.path.joi...
26.636364
75
0.633106
74
586
4.648649
0.554054
0.052326
0.069767
0
0
0
0
0
0
0
0
0
0.257679
586
21
76
27.904762
0.790805
0
0
0
0
0
0.076792
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
59e991030ccd113468742884f239af378d4fd07a
703
py
Python
modules/duckduckgo.py
skinatro/discord-bot
b9b717c61c1d83cc420d5b8be62534d56a3bca50
[ "MIT" ]
null
null
null
modules/duckduckgo.py
skinatro/discord-bot
b9b717c61c1d83cc420d5b8be62534d56a3bca50
[ "MIT" ]
null
null
null
modules/duckduckgo.py
skinatro/discord-bot
b9b717c61c1d83cc420d5b8be62534d56a3bca50
[ "MIT" ]
null
null
null
import asyncio import aiohttp async def duck_search(search_term): search_term = "+".join(search_term.split()) url = f"https://api.duckduckgo.com/?q={search_term}&format=json" async with aiohttp.ClientSession() as session: async with session.get(url) as r: if r.status == 200: ...
33.47619
79
0.611664
81
703
5.074074
0.592593
0.097324
0
0
0
0
0
0
0
0
0
0.007648
0.256046
703
20
80
35.15
0.778203
0
0
0
0
0
0.186344
0.034139
0
0
0
0
0
1
0
false
0
0.125
0
0.1875
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
59ebe1657d09ae546bdf3ca41d37de806404c083
1,709
py
Python
prettyqt/widgets/statusbar.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/widgets/statusbar.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/widgets/statusbar.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
from __future__ import annotations from prettyqt import widgets from prettyqt.qt import QtWidgets QtWidgets.QStatusBar.__bases__ = (widgets.Widget,) class StatusBar(QtWidgets.QStatusBar): def __init__(self, *args, **kwargs) -> None: super().__init__(*args, **kwargs) self.progress_bar = widgets....
29.982456
85
0.657695
193
1,709
5.57513
0.38342
0.066915
0.083643
0
0
0
0
0
0
0
0
0.00614
0.237566
1,709
56
86
30.517857
0.819647
0.017554
0
0.093023
0
0
0.010137
0
0
0
0
0
0
1
0.139535
false
0
0.069767
0
0.27907
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
ab6476dc8c8370931ed198d29dc49fb830793195
670
py
Python
utils/clear.py
kenjiflores/annotations_list
ab86ac0c9a6f739db9b3d1eda66b7791dbb2f774
[ "MIT" ]
null
null
null
utils/clear.py
kenjiflores/annotations_list
ab86ac0c9a6f739db9b3d1eda66b7791dbb2f774
[ "MIT" ]
null
null
null
utils/clear.py
kenjiflores/annotations_list
ab86ac0c9a6f739db9b3d1eda66b7791dbb2f774
[ "MIT" ]
null
null
null
# Function to clear data in instances folder before new run import os import shutil def clear_instances(directory): instances_folder = directory folders = os.listdir(instances_folder) for folder in folders: shutil.rmtree(instances_folder + folder) print('\nInstances folder cleared\n') def clear_all(): img_...
21.612903
59
0.737313
99
670
4.828283
0.343434
0.125523
0.066946
0
0
0
0
0
0
0
0
0
0.156716
670
31
60
21.612903
0.846018
0.085075
0
0
0
0
0.127451
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.190476
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab6578fa2d97ee82b7eac9fdd3a1cc27f58b5616
1,535
py
Python
app/museolib/libs/py14443a.py
urbanlab/museotouch-educatouch
9ad8f4329a84ba69147ffef57dc564082153bf02
[ "MIT" ]
1
2018-02-09T12:56:01.000Z
2018-02-09T12:56:01.000Z
app/museolib/libs/py14443a.py
urbanlab/museotouch-educatouch
9ad8f4329a84ba69147ffef57dc564082153bf02
[ "MIT" ]
null
null
null
app/museolib/libs/py14443a.py
urbanlab/museotouch-educatouch
9ad8f4329a84ba69147ffef57dc564082153bf02
[ "MIT" ]
null
null
null
"""Python functions to handle the ISO-14443-A protocol basics (parity and CRC)""" # Pynfc is a python wrapper for the libnfc library # Copyright (C) 2009 Mike Auty # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published...
36.547619
83
0.628664
220
1,535
4.386364
0.527273
0.034197
0.040415
0.059067
0.084974
0.058031
0
0
0
0
0
0.042934
0.271661
1,535
41
84
37.439024
0.820215
0.584365
0
0.117647
0
0
0
0
0
0
0.058304
0
0
1
0.117647
false
0
0
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
ab672b40a2a078bded1e28db2d0f65c585f16827
4,294
py
Python
test_attrs_sqlalchemy.py
GoodRx/attrs_sqlalchemy
907eb269f1a0a1e4647ede5b44eb7a9210d954ae
[ "MIT" ]
3
2016-09-27T01:02:08.000Z
2021-11-06T17:07:25.000Z
test_attrs_sqlalchemy.py
GoodRx/attrs_sqlalchemy
907eb269f1a0a1e4647ede5b44eb7a9210d954ae
[ "MIT" ]
5
2017-01-16T01:44:45.000Z
2018-03-07T23:16:16.000Z
test_attrs_sqlalchemy.py
GoodRx/attrs_sqlalchemy
907eb269f1a0a1e4647ede5b44eb7a9210d954ae
[ "MIT" ]
4
2017-05-11T00:53:52.000Z
2021-11-06T17:07:12.000Z
import pytest import sqlalchemy as sa from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.hybrid import hybrid_property from attrs_sqlalchemy import attrs_sqlalchemy class TestAttrsSqlalchemy: def test_deprecation(self): with pytest.warns(UserWarning, match='attrs_sqlalchemy is d...
32.778626
84
0.598742
470
4,294
5.17234
0.251064
0.111065
0.049362
0.048951
0.381736
0.348828
0.275195
0.275195
0.194981
0.194981
0
0.001992
0.298556
4,294
130
85
33.030769
0.805113
0.166279
0
0.307692
0
0
0.089166
0
0
0
0
0
0.115385
1
0.076923
false
0
0.064103
0.012821
0.25641
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
ab6bef72589cc503d05f80a672c71bbfadb1fbde
1,001
py
Python
toolkit/controller/audit/page_audit.py
salonimalhotra-ui/seo-audits-toolkit
99af8b53dffad45f679eaf06b4a8080df75fcd72
[ "MIT" ]
1
2020-12-21T18:21:34.000Z
2020-12-21T18:21:34.000Z
toolkit/controller/audit/page_audit.py
x0rzkov/seo-audits-toolkit
29994cbab51bd0697c717b675df3c176096e4f03
[ "MIT" ]
null
null
null
toolkit/controller/audit/page_audit.py
x0rzkov/seo-audits-toolkit
29994cbab51bd0697c717b675df3c176096e4f03
[ "MIT" ]
null
null
null
from urllib.parse import urlparse from toolkit.lib.http_tools import request_page from bs4 import BeautifulSoup class AuditPage(): def __init__(self, url): parsed_url = urlparse(url) self.domain = parsed_url.netloc self.scheme = parsed_url.scheme self.path = parsed_url.path ...
27.805556
70
0.563437
120
1,001
4.533333
0.325
0.018382
0.055147
0
0
0
0
0
0
0
0
0.001395
0.283716
1,001
36
71
27.805556
0.757322
0
0
0
0
0
0.090818
0.021956
0
0
0
0
0
1
0.130435
false
0
0.130435
0.043478
0.391304
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
ab6c9a0f2f081341d061a42592f2a778f4f62494
2,968
py
Python
tests/test_autoupdate.py
cmu-cs-academy/cpython-cmu-graphics
04622a80642156ad646a00203899a8f3726f5b73
[ "BSD-3-Clause" ]
3
2020-02-01T22:24:24.000Z
2020-04-20T16:59:08.000Z
tests/test_autoupdate.py
cmu-cs-academy/cpython-cmu-graphics
04622a80642156ad646a00203899a8f3726f5b73
[ "BSD-3-Clause" ]
5
2020-11-03T21:47:36.000Z
2021-02-23T22:18:14.000Z
tests/test_autoupdate.py
cmu-cs-academy/cpython-cmu-graphics
04622a80642156ad646a00203899a8f3726f5b73
[ "BSD-3-Clause" ]
1
2020-06-11T21:03:50.000Z
2020-06-11T21:03:50.000Z
import os import shutil import zipfile from http.server import HTTPServer, CGIHTTPRequestHandler import threading import subprocess import sys import traceback PORT = 3000 os.chdir('autoupdate') def create_folder_and_zip(): def zipdir(path, ziph): for root, dirs, files in os.walk(path): for f...
27.738318
107
0.647574
392
2,968
4.681122
0.308673
0.149864
0.13079
0.075204
0.26703
0.117711
0.117711
0.087193
0.087193
0.063215
0
0.007749
0.217318
2,968
106
108
28
0.782178
0.015162
0
0.047619
0
0.02381
0.272354
0.136691
0
0
0
0
0.047619
1
0.119048
false
0
0.095238
0
0.214286
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab6e4e87d4f9d0f3716debd3c918f62dc6e778c5
8,202
py
Python
xy_stage/axis.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
null
null
null
xy_stage/axis.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
2
2021-04-09T15:57:41.000Z
2021-09-27T15:50:56.000Z
xy_stage/axis.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
1
2021-04-23T18:29:43.000Z
2021-04-23T18:29:43.000Z
import RPi.GPIO as GPIO import time import os class Axis: """ Base Class for one of the XY gantry axes All move commands are written to be called in threads self.position and/or self.step position can safely be queried while the axis is moving. """ def __init__(self, name, pin_li...
31.068182
111
0.554743
1,108
8,202
3.962094
0.200361
0.017084
0.025057
0.019134
0.274943
0.208428
0.172665
0.163098
0.151253
0.151253
0
0.019416
0.340649
8,202
263
112
31.186312
0.792345
0.19922
0
0.263514
0
0
0.039059
0
0
0
0
0
0
1
0.108108
false
0
0.027027
0.006757
0.216216
0.040541
0
0
0
null
0
0
0
0
0
0
0
0
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
ab6ee2ca9fb46ff0a520d9cacda3106f74ee51ad
2,788
py
Python
slacklogs2mongo.py
lbn/slacklogs2mongo
38069cac094cf745f54702c5f8ebbca847e95bdc
[ "MIT" ]
null
null
null
slacklogs2mongo.py
lbn/slacklogs2mongo
38069cac094cf745f54702c5f8ebbca847e95bdc
[ "MIT" ]
null
null
null
slacklogs2mongo.py
lbn/slacklogs2mongo
38069cac094cf745f54702c5f8ebbca847e95bdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import os import json from pymongo import MongoClient class LogImporter(object): def __init__(self, data, constring): self.data_dir = data self.db = MongoClient(constring).get_default_database() self.messages = self.db.messages ...
32.045977
121
0.588594
351
2,788
4.507123
0.293447
0.034134
0.041719
0.035398
0.152339
0.084703
0.031606
0
0
0
0
0.00101
0.289455
2,788
86
122
32.418605
0.797577
0.015065
0
0.046154
0
0
0.107143
0
0
0
0
0
0
1
0.123077
false
0
0.123077
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab70efcd3dba1a5b5892d70293ed4be2b4a82829
973
py
Python
moai/parameters/optimization/swa.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
10
2021-04-02T11:21:33.000Z
2022-01-18T18:32:32.000Z
moai/parameters/optimization/swa.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
1
2022-03-22T20:10:55.000Z
2022-03-24T13:11:02.000Z
moai/parameters/optimization/swa.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
3
2021-05-16T20:47:40.000Z
2021-12-01T21:15:36.000Z
from moai.parameters.optimization.optimizers.swa import SWA as Outer import torch import omegaconf.omegaconf import hydra.utils as hyu import typing __all__ = ['SWA'] #NOTE: modified from https://github.com/alphadl/lookahead.pytorch class SWA(object): """Implements Stochastic Weight Averaging (SWA). - ...
30.40625
126
0.654676
111
973
5.585586
0.567568
0.03871
0.045161
0
0
0
0
0
0
0
0
0.013405
0.233299
973
31
127
31.387097
0.817694
0.341213
0
0
0
0
0.004894
0
0
0
0
0
0
1
0.05
false
0
0.25
0
0.35
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
ab74b112917c353df9f1d1d587360e07a209c98f
4,500
py
Python
src/gui/droDisplayWidget.py
SnailAF/SimpleFOCStudio
01199a82e6ab8b6461e9eca3b6a10d19756549f7
[ "MIT" ]
null
null
null
src/gui/droDisplayWidget.py
SnailAF/SimpleFOCStudio
01199a82e6ab8b6461e9eca3b6a10d19756549f7
[ "MIT" ]
null
null
null
src/gui/droDisplayWidget.py
SnailAF/SimpleFOCStudio
01199a82e6ab8b6461e9eca3b6a10d19756549f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from PyQt5 import QtGui, QtWidgets, QtCore from sharedcomponets import GUIToolKit import logging from simpleFOCConnector import SimpleFOCDevice class DROGroupBox(QtWidgets.QGroupBox): def __init__(self, parent=None, simpleFocConn=None): """Constructor for Tool...
37.5
92
0.691111
421
4,500
7.36342
0.280285
0.028387
0.061935
0.069677
0.066452
0.048387
0
0
0
0
0
0.022254
0.211111
4,500
120
93
37.5
0.850986
0.029556
0
0.05618
0
0
0.048887
0.005049
0
0
0
0
0
1
0.123596
false
0
0.044944
0
0.191011
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
ab7778c7769a430660818d3ba21a31e9b8a869e3
7,157
py
Python
coredump/pycore/take_core.py
fooofei/c_cpp
83b780fd48cd3c03fd3850fb297576d5fc907955
[ "MIT" ]
null
null
null
coredump/pycore/take_core.py
fooofei/c_cpp
83b780fd48cd3c03fd3850fb297576d5fc907955
[ "MIT" ]
null
null
null
coredump/pycore/take_core.py
fooofei/c_cpp
83b780fd48cd3c03fd3850fb297576d5fc907955
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 ''' ### 这个文件用来接管 控制 coredump 的存储 ### 需手动 echo "|/usr/bin/python /docker_host/1.py" > /proc/sys/kernel/core_pattern ### sys.stdin 如果没有数据 返回 '',不是 None ### 容器里对 core 对操作会持久化到 image 里 预期在 container 中对 /proc/sys/kernel/core_pattern 做的修改 如果不 commit , 下次从相同到 image 进入 containe...
29.331967
115
0.606958
938
7,157
4.452026
0.263326
0.024425
0.021791
0.019157
0.264368
0.218391
0.204023
0.189176
0.168582
0.135536
0
0.011591
0.25262
7,157
243
116
29.452675
0.769116
0.125472
0
0.184211
0
0.006579
0.172833
0.02664
0
0
0
0
0
1
0.065789
false
0
0.052632
0
0.164474
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
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
ab7783e06fb3be6a597351468894053b80c2161f
595
py
Python
docs/source/examples/errorbars.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
4
2015-02-24T06:50:08.000Z
2020-08-08T03:23:32.000Z
docs/source/examples/errorbars.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
13
2017-07-17T15:52:09.000Z
2017-07-17T15:52:09.000Z
docs/source/examples/errorbars.py
alexras/boomslang
62b6dc3a183fd8686b165c4abdb55d10d537b4ab
[ "BSD-3-Clause" ]
null
null
null
plot = Plot() # Uneven error bars line = Line() line.xValues = range(6) line.yValues = [25, 21, 30, 23, 10, 30] line.yMins = [10, 18, 10, 10, 5, 20] line.yMaxes = [30, 50, 40, 30, 20, 45] line.label = "Asymmetric Errors" line.color = "red" line.xValues = range(len(line.yValues)) # Even error bars line2 = Line() line...
21.25
40
0.653782
100
595
3.89
0.46
0.092545
0.082262
0
0
0
0
0
0
0
0
0.124249
0.161345
595
27
41
22.037037
0.655311
0.055462
0
0
0
0
0.119857
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
ab7ab117b9f5f218dd655ac6fdbc592e4f1c7636
59,134
py
Python
futura_image/mendoza_beltran_utilities.py
pjamesjoyce/futura_image
09b46575ff19eef5da9164b8c57cfd691790ad7e
[ "BSD-3-Clause" ]
null
null
null
futura_image/mendoza_beltran_utilities.py
pjamesjoyce/futura_image
09b46575ff19eef5da9164b8c57cfd691790ad7e
[ "BSD-3-Clause" ]
null
null
null
futura_image/mendoza_beltran_utilities.py
pjamesjoyce/futura_image
09b46575ff19eef5da9164b8c57cfd691790ad7e
[ "BSD-3-Clause" ]
1
2020-11-02T13:49:55.000Z
2020-11-02T13:49:55.000Z
#!/usr/bin/env python from wurst import * from wurst.searching import * from wurst.transformations.activity import change_exchanges_by_constant_factor from wurst.transformations.uncertainty import rescale_exchange from wurst.IMAGE.io import * from wurst.IMAGE import * from wurst.ecoinvent.electricity_markets import ...
47.193935
249
0.644266
7,503
59,134
4.954685
0.100493
0.021789
0.028083
0.035884
0.649011
0.606052
0.55766
0.51228
0.483739
0.464129
0
0.026126
0.247218
59,134
1,252
250
47.231629
0.808739
0.21891
0
0.35514
0
0.014686
0.306347
0.00466
0
0
0
0
0
1
0.049399
false
0.006676
0.021362
0.00534
0.12283
0.024032
0
0
0
null
0
0
0
0
0
0
0
0
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
ab7b5b063411a5951884f02b5ca7d911a992e189
6,996
py
Python
FJTYFilt_estimator.py
openeventdata/FJTY-Filter
32937407c798c14118d6956ce44c6ce48aa69fae
[ "MIT" ]
null
null
null
FJTYFilt_estimator.py
openeventdata/FJTY-Filter
32937407c798c14118d6956ce44c6ce48aa69fae
[ "MIT" ]
null
null
null
FJTYFilt_estimator.py
openeventdata/FJTY-Filter
32937407c798c14118d6956ce44c6ce48aa69fae
[ "MIT" ]
null
null
null
""" FJTYFilt_estimator.py Creates a vectorizer and estimated an SVM model from the files in FILE_NAMES; run a TRAIN_PROP train/test on these then saves these TO RUN PROGRAM: python3 SVM_filter_estimate.py PROGRAMMING NOTES: 1. There are no summary statistics across the experiments, as these are currently jus...
33.156398
139
0.592767
955
6,996
4.258639
0.300524
0.042046
0.017703
0.022129
0.388001
0.357512
0.288173
0.279813
0.253012
0.211212
0
0.03244
0.237707
6,996
210
140
33.314286
0.730171
0.194969
0
0.442857
0
0
0.171223
0.023827
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.128571
0
0
0
null
0
0
0
0
0
0
0
0
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
ab7bd35e838333316b3f6cced216348f59d4567c
658
py
Python
026_comprehension/list.py
rafael-torraca/python-100-days-of-code
3a5b3e32c5a3fd66a4fd726d378e0d2f746a3f30
[ "MIT" ]
null
null
null
026_comprehension/list.py
rafael-torraca/python-100-days-of-code
3a5b3e32c5a3fd66a4fd726d378e0d2f746a3f30
[ "MIT" ]
null
null
null
026_comprehension/list.py
rafael-torraca/python-100-days-of-code
3a5b3e32c5a3fd66a4fd726d378e0d2f746a3f30
[ "MIT" ]
null
null
null
# for loop numbers = [1, 2, 3, 4, 5] new_list = [] for n in numbers: add_1 = n + 1 new_list.append(add_1) print(new_list) # List Comprehension new_list_comprehension = [n + 1 for n in numbers] print(new_list_comprehension) # Rang List Comprehension range_list = [n * 2 for n in range(1, 5)] print(range_list) ...
25.307692
67
0.693009
112
658
3.919643
0.321429
0.079727
0.05467
0.059226
0.186788
0.132118
0.132118
0.132118
0.132118
0
0
0.034991
0.174772
658
26
68
25.307692
0.773481
0.12462
0
0
0
0
0.059441
0
0
0
0
0
0
1
0
false
0
0
0
0
0.352941
0
0
0
null
0
0
0
0
0
0
0
0
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
ab7d6681715869d89f5a128f73238e9596f37fcc
2,673
py
Python
tests/test_everywhere.py
b3b/herethere
0a9e667553bea4e7700b2b1af2827d08dded6ca5
[ "MIT" ]
null
null
null
tests/test_everywhere.py
b3b/herethere
0a9e667553bea4e7700b2b1af2827d08dded6ca5
[ "MIT" ]
null
null
null
tests/test_everywhere.py
b3b/herethere
0a9e667553bea4e7700b2b1af2827d08dded6ca5
[ "MIT" ]
null
null
null
from io import StringIO import os from pathlib import Path import pytest from herethere.everywhere import ConnectionConfig, runcode from herethere.everywhere import config code_with_definition = """ def foo(a, b): return a + b print(foo(1, 2)) """ @pytest.mark.parametrize( "code, expected", [ ...
25.216981
86
0.626263
299
2,673
5.438127
0.257525
0.063961
0.078721
0.051661
0.390529
0.295203
0.202952
0.137761
0
0
0
0.020388
0.22933
2,673
105
87
25.457143
0.768932
0
0
0.222222
0
0
0.205013
0.061728
0
0
0
0
0.135802
1
0.08642
false
0.012346
0.074074
0
0.17284
0.098765
0
0
0
null
0
0
0
0
0
0
0
0
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
ab7dc38ed8951fa7685f47dd886c5e04e6fb81b4
1,879
py
Python
src/predict.py
alphasea-dapp/alphasea-example-model
9d14072425a8e38cbef49de752fb4bd8bab0ad18
[ "CC0-1.0" ]
8
2022-01-25T14:28:09.000Z
2022-03-31T04:35:27.000Z
src/predict.py
yuzi-ziyu/alphasea-example-model
9d14072425a8e38cbef49de752fb4bd8bab0ad18
[ "CC0-1.0" ]
null
null
null
src/predict.py
yuzi-ziyu/alphasea-example-model
9d14072425a8e38cbef49de752fb4bd8bab0ad18
[ "CC0-1.0" ]
8
2022-01-26T14:31:26.000Z
2022-03-23T16:11:06.000Z
import os import re import joblib import numpy as np import pandas as pd import traceback from .logger import create_logger from .ml_utils import fetch_ohlcv, normalize_position from .agent_api import submit_prediction agent_base_url = os.getenv('ALPHASEA_AGENT_BASE_URL') model_id = os.getenv('ALPHASEA_MODEL_ID') mode...
31.316667
128
0.668973
267
1,879
4.453184
0.374532
0.035324
0.067283
0.037847
0.174937
0.095879
0.070648
0
0
0
0
0.01355
0.214476
1,879
59
129
31.847458
0.792005
0.036722
0
0
0
0
0.143016
0.050998
0
0
0
0
0
1
0.022222
false
0
0.2
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab7dde0847107e7eb65decc348198fe2bd6560c4
545
py
Python
lesson8/lesson8.py
arsalanses/opencv-python
2ef56589559e44a7fea351cde513ef0320cb591e
[ "MIT" ]
2
2019-01-05T12:40:32.000Z
2019-02-21T22:54:45.000Z
lesson8/lesson8.py
arsalanses/opencv-python
2ef56589559e44a7fea351cde513ef0320cb591e
[ "MIT" ]
null
null
null
lesson8/lesson8.py
arsalanses/opencv-python
2ef56589559e44a7fea351cde513ef0320cb591e
[ "MIT" ]
null
null
null
import cv2 import numpy as np img1 = cv2.imread('image.tif') img2 = cv2.imread('imglogo.png') rows, cols, channels = img2.shape roi = img1[0:rows, 0:cols] img2gray = cv2.cvtColor(img2, cv2.COLOR_BGR2GRAY) ret, mask = cv2.threshold(img2gray, 230, 255, cv2.THRESH_BINARY_INV) mask_inv = cv2.bitwise_not(mask) img1_bg...
20.185185
68
0.722936
92
545
4.152174
0.445652
0.078534
0.04712
0.052356
0.073298
0
0
0
0
0
0
0.086498
0.130275
545
26
69
20.961538
0.719409
0
0
0
0
0
0.045872
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab7f5e28b56225a5e29228c37b55b000fd5d2d90
2,378
py
Python
firmware_flash/forms.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
114
2017-03-19T22:51:45.000Z
2022-01-18T06:00:23.000Z
firmware_flash/forms.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
392
2017-03-12T17:09:16.000Z
2022-03-31T22:08:45.000Z
firmware_flash/forms.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
67
2017-03-19T18:11:54.000Z
2022-01-31T12:12:17.000Z
from django.contrib.auth.models import User from django import forms from constance import config #from constance.admin import ConstanceForm from django.conf import settings from .models import DeviceFamily, Firmware, Board ##############################################################################################...
40.305085
115
0.547519
220
2,378
5.754545
0.318182
0.094787
0.090047
0.066351
0.328594
0.299368
0.299368
0.299368
0.299368
0.299368
0
0
0.261564
2,378
58
116
41
0.720957
0.272918
0
0
0
0
0.088156
0
0
0
0
0
0
1
0.074074
false
0
0.185185
0
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab8344d8efbd20dfefa546d6c2aa1f9f9ddae6c5
664
py
Python
sallyforth/inliner.py
russolsen/sallyforth
480f6df6a5e2678829bc86b73f89c88565e28696
[ "Apache-2.0" ]
13
2020-04-14T16:48:10.000Z
2022-02-04T22:18:00.000Z
sallyforth/inliner.py
russolsen/sallyforth
480f6df6a5e2678829bc86b73f89c88565e28696
[ "Apache-2.0" ]
1
2020-06-13T12:56:14.000Z
2020-06-28T19:52:46.000Z
sallyforth/inliner.py
russolsen/sallyforth
480f6df6a5e2678829bc86b73f89c88565e28696
[ "Apache-2.0" ]
1
2021-09-11T09:36:29.000Z
2021-09-11T09:36:29.000Z
from wrappers import inner_f def compile_f(contents, attributes, doc, name): new_contents = [] for f in contents: sub_contents = getattr(f, "contents", None) if sub_contents: new_contents.extend(sub_contents) else: new_contents.append(f) new_func = inner_f(ne...
28.869565
63
0.653614
90
664
4.444444
0.322222
0.0875
0.08
0.12
0.15
0.15
0
0
0
0
0
0.00202
0.254518
664
22
64
30.181818
0.806061
0
0
0
0
0
0.024096
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab84ef6014bf90d094474b93c555171e51108d19
540
py
Python
bin/newick_reformat.py
mooninrain/viral-mutation
328182ca2acfe5d30bc149e0c95d919123db24cf
[ "MIT" ]
79
2020-07-10T05:11:27.000Z
2022-03-30T14:16:07.000Z
bin/newick_reformat.py
mooninrain/viral-mutation
328182ca2acfe5d30bc149e0c95d919123db24cf
[ "MIT" ]
7
2020-07-09T01:34:26.000Z
2022-03-09T05:36:44.000Z
bin/newick_reformat.py
mooninrain/viral-mutation
328182ca2acfe5d30bc149e0c95d919123db24cf
[ "MIT" ]
35
2020-09-29T19:23:56.000Z
2022-03-13T04:59:57.000Z
import sys newick = '' with open(sys.argv[1]) as f: orig = f.read().rstrip() orig = orig.replace('(', '(\n').replace(',', '\n,\n').replace(')', ')\n') for line in orig.split('\n'): fields = line.rstrip().split(':') if len(fields) == 0: continue elif len(fields) == 1: newick += fields...
21.6
73
0.492593
69
540
3.855072
0.463768
0.090226
0.082707
0.112782
0
0
0
0
0
0
0
0.018229
0.288889
540
24
74
22.5
0.674479
0
0
0
0
0
0.038889
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
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
ab861edeb3c8fda08cffdf8b9b6039df511fe550
1,830
py
Python
src/logging_with_motion_commander/logging_with_motion_commander.py
MarkAkbashev/crazyflie-dataset
819c476776ebc8b1c4b9a9139390ec3f1b0138e0
[ "MIT" ]
null
null
null
src/logging_with_motion_commander/logging_with_motion_commander.py
MarkAkbashev/crazyflie-dataset
819c476776ebc8b1c4b9a9139390ec3f1b0138e0
[ "MIT" ]
null
null
null
src/logging_with_motion_commander/logging_with_motion_commander.py
MarkAkbashev/crazyflie-dataset
819c476776ebc8b1c4b9a9139390ec3f1b0138e0
[ "MIT" ]
1
2022-03-12T12:12:24.000Z
2022-03-12T12:12:24.000Z
# -*- coding: utf-8 -*- # # Based on bitcraze example project: # https://github.com/bitcraze/crazyflie-lib-python/blob/master/examples/step-by-step/sbs_motion_commander.py import logging import sys import time from threading import Event import cflib.crtp from cflib.crazyflie import Crazyflie from cflib.crazyflie.log...
27.313433
108
0.712022
246
1,830
5.097561
0.418699
0.035885
0.031898
0.028708
0.153908
0.153908
0.153908
0.153908
0.153908
0.153908
0
0.02452
0.17541
1,830
66
109
27.727273
0.806494
0.102732
0
0.177778
0
0
0.072872
0.015922
0
0
0
0
0
1
0.066667
false
0
0.222222
0
0.288889
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab8801ccef53e30715caf216a3164da6aa09d611
2,745
py
Python
discordbot/src/commands/track.py
knabb215/discord-masz
a1b8434ca8e6e31cb61a8a6069338fdd34698ea2
[ "MIT" ]
null
null
null
discordbot/src/commands/track.py
knabb215/discord-masz
a1b8434ca8e6e31cb61a8a6069338fdd34698ea2
[ "MIT" ]
null
null
null
discordbot/src/commands/track.py
knabb215/discord-masz
a1b8434ca8e6e31cb61a8a6069338fdd34698ea2
[ "MIT" ]
null
null
null
from datetime import datetime from discord.errors import NotFound from discord import Embed from discord_slash.utils.manage_commands import create_option, SlashCommandOptionType from data import get_invites_by_guild_and_code from .infrastructure import record_usage, CommandDefinition, registered_guild_and_admin_or_mo...
40.367647
202
0.655373
367
2,745
4.760218
0.318801
0.082427
0.022896
0.025186
0.28277
0.212936
0.185461
0.148827
0.148827
0.098454
0
0.005495
0.204372
2,745
67
203
40.970149
0.794414
0.01275
0
0.125
0
0.089286
0.340842
0.123338
0
0
0
0
0
1
0
false
0
0.107143
0
0.142857
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
ab8c19a59433d9a86423eb4aa00bb2f9b0bfb25f
285
py
Python
temp/teste.py
Aquino21/Pereira
accddd90bf6178060a448803489da3358ee94ba2
[ "MIT" ]
1
2021-09-04T18:50:49.000Z
2021-09-04T18:50:49.000Z
temp/teste.py
Aquino21/Pereira
accddd90bf6178060a448803489da3358ee94ba2
[ "MIT" ]
null
null
null
temp/teste.py
Aquino21/Pereira
accddd90bf6178060a448803489da3358ee94ba2
[ "MIT" ]
3
2020-10-05T01:53:57.000Z
2021-09-14T23:57:47.000Z
list = ['Tiago','Ivan','Henrique', 'Paulo'] nome = 'teste' nome = input('Digite um nome: ') # Python input prompt print(nome) for i in range(len(list)): if list[i] == nome: print(nome,'is number',i + 1,'on the list') break else: print(nome,'is not on the list')
28.5
54
0.6
45
285
3.8
0.6
0.157895
0.128655
0
0
0
0
0
0
0
0
0.004484
0.217544
285
10
55
28.5
0.762332
0.066667
0
0
0
0
0.30566
0
0
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab8c74faa97d91935186d109db588267fe9dc817
3,221
py
Python
game_ai.py
arafat-ar13/Kivy-App
535de0a4f440a6ed97d08bd0b7d6f26e41af8bdb
[ "MIT" ]
3
2021-01-03T05:27:31.000Z
2022-01-18T02:59:36.000Z
game_ai.py
arafat-ar13/Kivy-App
535de0a4f440a6ed97d08bd0b7d6f26e41af8bdb
[ "MIT" ]
null
null
null
game_ai.py
arafat-ar13/Kivy-App
535de0a4f440a6ed97d08bd0b7d6f26e41af8bdb
[ "MIT" ]
3
2020-12-06T08:33:04.000Z
2021-10-01T11:08:15.000Z
import numpy as np import math import random class Ai(): def __init__(self, resolution, all_pos: list, all_ids, options: list): self.board_resolution = resolution self.all_pos = all_pos self.player_option, self.ai_option = options self.available_tiles = self.all_pos[:] self...
43.527027
120
0.555107
484
3,221
3.469008
0.18595
0.096486
0.176891
0.057177
0.329958
0.223347
0.19059
0.148898
0.104824
0
0
0.05146
0.330332
3,221
74
121
43.527027
0.726936
0.167029
0
0
0
0
0.005257
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ab8fb94a81717790890513a389148cc7842737d4
3,063
py
Python
contrib/python/podman/libs/__init__.py
mavit/libpod
3f0e2367c222fe362031f806f002fb8a62be6360
[ "Apache-2.0" ]
null
null
null
contrib/python/podman/libs/__init__.py
mavit/libpod
3f0e2367c222fe362031f806f002fb8a62be6360
[ "Apache-2.0" ]
null
null
null
contrib/python/podman/libs/__init__.py
mavit/libpod
3f0e2367c222fe362031f806f002fb8a62be6360
[ "Apache-2.0" ]
null
null
null
"""Support files for podman API implementation.""" import datetime import re import threading __all__ = [ 'cached_property', 'datetime_parse', 'datetime_format', ] class cached_property(object): """cached_property() - computed once per instance, cached as attribute. Maybe this will make a future...
31.57732
78
0.595168
393
3,063
4.501272
0.506361
0.02035
0.024873
0.014698
0.016959
0
0
0
0
0
0
0.051477
0.27065
3,063
96
79
31.90625
0.740376
0.366961
0
0
0
0
0.145109
0.01413
0
0
0
0
0
1
0.075472
false
0
0.056604
0
0.245283
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
ab9374dbdafd3eac8aaf116c21970aab394c9fbe
7,421
py
Python
girder_histogram/__init__.py
abcsFrederick/histogram
88eda7366e5d7a38272dbc3c2f919d7c207c870a
[ "Apache-2.0" ]
null
null
null
girder_histogram/__init__.py
abcsFrederick/histogram
88eda7366e5d7a38272dbc3c2f919d7c207c870a
[ "Apache-2.0" ]
1
2019-09-11T17:50:04.000Z
2019-09-11T17:50:04.000Z
girder_histogram/__init__.py
abcsFrederick/histogram
88eda7366e5d7a38272dbc3c2f919d7c207c870a
[ "Apache-2.0" ]
1
2019-06-18T17:55:45.000Z
2019-06-18T17:55:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Girder plugin framework and tests adapted from Kitware Inc. source and # documentation by the Imaging and Visualization Group, Advanced Biomedical # Computational Science, Frederick Nation...
34.67757
80
0.622558
823
7,421
5.566221
0.320778
0.021829
0.01921
0.015717
0.153678
0.1253
0.080332
0.025322
0.025322
0
0
0.003573
0.245789
7,421
213
81
34.840376
0.814901
0.211966
0
0.2
0
0
0.160194
0.012585
0
0
0
0
0
1
0.042857
false
0
0.121429
0
0.242857
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
ab938679789678606b7ac691201fd8e915036076
5,325
py
Python
app_run.py
michaellengyel/sheep_environment
6a272155b0d03597efc63097da2a96297b4345b3
[ "Apache-2.0" ]
null
null
null
app_run.py
michaellengyel/sheep_environment
6a272155b0d03597efc63097da2a96297b4345b3
[ "Apache-2.0" ]
null
null
null
app_run.py
michaellengyel/sheep_environment
6a272155b0d03597efc63097da2a96297b4345b3
[ "Apache-2.0" ]
null
null
null
from keras.models import Sequential, load_model from keras.layers import Dense, Dropout, Conv2D, MaxPooling2D, Activation, Flatten from keras.optimizers import Adam from keras.callbacks import TensorBoard import tensorflow as tf from tqdm import tqdm from collections import deque from gym.bug_env.environment import ...
29.91573
107
0.634554
687
5,325
4.684134
0.317322
0.03729
0.019888
0.028589
0.110006
0.029832
0.029832
0.029832
0.029832
0.029832
0
0.03013
0.276995
5,325
177
108
30.084746
0.805714
0.140469
0
0.063636
0
0
0.064807
0.024165
0
0
0
0
0
1
0.054545
false
0
0.109091
0.009091
0.2
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
ab94442244cf942959905073e49c32e22155b473
1,701
py
Python
languages/python/sort_algorithms/qsort.py
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
34
2016-10-29T19:50:34.000Z
2022-02-12T21:27:43.000Z
languages/python/sort_algorithms/qsort.py
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
null
null
null
languages/python/sort_algorithms/qsort.py
sergev/vak-opensource
e1912b83dabdbfab2baee5e7a9a40c3077349381
[ "Apache-2.0" ]
19
2017-06-19T23:04:00.000Z
2021-11-13T15:00:41.000Z
# -*- coding: utf-8 -*- ''' Быстрая сортировка ''' from typing import MutableSequence, Callable def _qsort(data: MutableSequence, start: int, end: int, process_func: Callable[[MutableSequence, int, int], int]) -> None: if start < end: pivot_index = process_func(data, start...
22.381579
77
0.519694
226
1,701
3.769912
0.146018
0.152582
0.046948
0.09507
0.453052
0.360329
0.321596
0.274648
0.274648
0.171362
0
0.017447
0.359788
1,701
75
78
22.68
0.764922
0.024103
0
0.367347
0
0
0
0
0
0
0
0
0
1
0.102041
false
0
0.020408
0
0.163265
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
ab998ab0fd8ce78db72dba56f4ec48316662f98c
3,834
py
Python
app.py
sandeshk06/Latency_analysis
24c3d39eb53b1438ac3916963b6853f95d7e7a8a
[ "MIT" ]
null
null
null
app.py
sandeshk06/Latency_analysis
24c3d39eb53b1438ac3916963b6853f95d7e7a8a
[ "MIT" ]
null
null
null
app.py
sandeshk06/Latency_analysis
24c3d39eb53b1438ac3916963b6853f95d7e7a8a
[ "MIT" ]
1
2022-03-25T23:54:15.000Z
2022-03-25T23:54:15.000Z
from flask import Flask,render_template,request from flask_wtf.csrf import CSRFProtect from check_domain_result import compute from check_traceroute import get_traceroute_result from check_mtr import get_mtr_result from check_ping import get_ping_result from geo_latency_info import * import folium import os import logg...
30.188976
171
0.637454
476
3,834
4.911765
0.285714
0.065868
0.085543
0.051326
0.180496
0.102652
0.102652
0.082121
0.082121
0.082121
0
0.007516
0.236568
3,834
126
172
30.428571
0.791254
0.035472
0
0.216867
0
0
0.118874
0.020309
0
0
0
0
0
1
0.048193
false
0
0.13253
0.012048
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
ab9ab7577f2c53a3e653bf436c3fb0f234794685
2,111
py
Python
third_party/pixels/pixels_aiy_v1.py
wangpy/archspee
97855f903106fba567ffda8cdc25b061cd8bdf5e
[ "MIT" ]
8
2019-01-22T13:03:40.000Z
2021-12-30T22:11:12.000Z
third_party/pixels/pixels_aiy_v1.py
wangpy/archspee
97855f903106fba567ffda8cdc25b061cd8bdf5e
[ "MIT" ]
null
null
null
third_party/pixels/pixels_aiy_v1.py
wangpy/archspee
97855f903106fba567ffda8cdc25b061cd8bdf5e
[ "MIT" ]
null
null
null
import time import queue import threading import RPi.GPIO as GPIO _GPIO_PIN = 25 class Pixels: def __init__(self): self.is_light_on = 1 self.count_down = 0 self.light_on_count = 0 self.light_off_count = 0 GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO...
23.988636
78
0.516817
263
2,111
3.931559
0.235741
0.074468
0.088008
0.075435
0.094778
0
0
0
0
0
0
0.024465
0.380388
2,111
87
79
24.264368
0.766055
0
0
0.191176
0
0
0.00379
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.191176
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
ab9c4d7e47d9e31946148c6e5a43e198f83c9fd5
40,231
py
Python
edexOsgi/com.raytheon.uf.common.aviation/utility/common_static/base/aviation/python/TAMPGenerator.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.uf.common.aviation/utility/common_static/base/aviation/python/TAMPGenerator.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.uf.common.aviation/utility/common_static/base/aviation/python/TAMPGenerator.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
35.166958
116
0.504313
4,297
40,231
4.682104
0.188271
0.020279
0.01521
0.002436
0.206273
0.185795
0.151002
0.145733
0.132909
0.116209
0
0.025348
0.377321
40,231
1,143
117
35.197725
0.777773
0.193458
0
0.390244
0
0
0.050736
0.000965
0
0
0
0
0
1
0.04878
false
0.03794
0.004065
0.00271
0.126016
0.00271
0
0
0
null
0
0
0
0
0
0
0
0
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
ab9caf6fe468bbb3e4d5427518d3f44ab50ebfdb
6,154
py
Python
Documentation/utilities/opal_stats.py
OPAL-Project/OPAL-Docker
c88ccd199efd63358589ceea914ce8de519221a7
[ "MIT" ]
2
2020-03-04T15:38:35.000Z
2021-06-26T12:12:03.000Z
Documentation/utilities/opal_stats.py
OPAL-Project/OPAL-Docker
c88ccd199efd63358589ceea914ce8de519221a7
[ "MIT" ]
20
2018-06-14T10:28:02.000Z
2020-02-19T11:28:29.000Z
Documentation/utilities/opal_stats.py
OPAL-Project/OPAL-Docker
c88ccd199efd63358589ceea914ce8de519221a7
[ "MIT" ]
1
2018-08-21T21:57:28.000Z
2018-08-21T21:57:28.000Z
from __future__ import division, print_function import time import os import configargparse import bz2 import csv import json import sys from datetime import datetime from os import listdir from os.path import isfile, join import multiprocessing as mp def process_file(records_reader, file): core_fields = {"file":...
37.072289
120
0.619922
743
6,154
5.010767
0.306864
0.032232
0.016116
0.010475
0.138061
0.124362
0.052646
0.052646
0.052646
0
0
0.009743
0.266168
6,154
165
121
37.29697
0.814659
0.159571
0
0.174603
0
0
0.182768
0.082413
0
0
0
0
0
1
0.031746
false
0
0.095238
0
0.142857
0.039683
0
0
0
null
0
0
0
0
0
0
0
0
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
ab9dd6f296e330b5dfe57858dfcb987488e38617
1,677
py
Python
api/tests/test_category.py
KamilJakubczak/budget-api
b1c602b38183b46d09b267a3b848d3dcf5d293c6
[ "MIT" ]
null
null
null
api/tests/test_category.py
KamilJakubczak/budget-api
b1c602b38183b46d09b267a3b848d3dcf5d293c6
[ "MIT" ]
3
2020-08-25T18:19:42.000Z
2022-02-13T19:39:19.000Z
api/tests/test_category.py
KamilJakubczak/budget-api
b1c602b38183b46d09b267a3b848d3dcf5d293c6
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django.contrib.auth import get_user_model from rest_framework import status from rest_framework.test import APIClient from api.models import Category category_URL = reverse('api:category-list') class PublicTestCase(TestCase): """ Test fo...
27.048387
71
0.618366
166
1,677
6.054217
0.355422
0.059701
0.062687
0.074627
0.103483
0
0
0
0
0
0
0.021997
0.29517
1,677
61
72
27.491803
0.828257
0.054264
0
0.171429
0
0
0.080155
0
0
0
0
0
0.114286
1
0.114286
false
0
0.171429
0
0.342857
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
aba0d165ccc8910e46a4f5ec4ae38db5c9961875
26,044
py
Python
python/imprinting_analysis/imprinting_analysis.py
jonassibbesen/hamster-project-scripts
2d470dd028be77c9d866d67d16adc0c17d5ba819
[ "MIT" ]
3
2021-03-25T08:26:18.000Z
2022-01-05T08:45:42.000Z
python/imprinting_analysis/imprinting_analysis.py
jonassibbesen/hamster-project-scripts
2d470dd028be77c9d866d67d16adc0c17d5ba819
[ "MIT" ]
null
null
null
python/imprinting_analysis/imprinting_analysis.py
jonassibbesen/hamster-project-scripts
2d470dd028be77c9d866d67d16adc0c17d5ba819
[ "MIT" ]
1
2021-05-14T21:28:42.000Z
2021-05-14T21:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu May 13 12:12:25 2021 @author: Jordan """ import sys import os import numpy as np import pandas as pd import seaborn as sns import tempfile import gc import re import collections import gzip import bisect import pickle import itertools import math sns....
35.05249
128
0.507986
3,077
26,044
4.080598
0.123497
0.017203
0.014495
0.007885
0.323829
0.24777
0.217267
0.159366
0.109908
0.087528
0
0.013072
0.386116
26,044
742
129
35.09973
0.772267
0.086123
0
0.208171
0
0.019455
0.033411
0.007714
0
0
0
0
0.027237
1
0.009728
false
0
0.027237
0
0.046693
0.01751
0
0
0
null
0
0
0
0
0
0
0
0
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
aba5a20bb67be074c4810bf3da7c2a271409d71b
2,146
py
Python
encdecpy/base64.py
IronVenom/encdecpy
cca838765e55af846484eebb71f1f49645d147c6
[ "MIT" ]
9
2019-04-16T18:50:48.000Z
2022-03-15T11:57:02.000Z
encdecpy/base64.py
IronVenom/encdecpy
cca838765e55af846484eebb71f1f49645d147c6
[ "MIT" ]
null
null
null
encdecpy/base64.py
IronVenom/encdecpy
cca838765e55af846484eebb71f1f49645d147c6
[ "MIT" ]
1
2021-08-13T16:00:28.000Z
2021-08-13T16:00:28.000Z
# Dictionaries for base64 encoding and decoding. encode_dict = {0:'A',1:'B',2:'C',3:'D',4:'E',5:'F',6:'G',7:'H',8:'I',9:'J',10:'K',11:'L',12:'M',13:'N',14:'O',15:'P',16:'Q',17:'R',18:'S',19:'T',20:'U',21:'V',22:'W', 23:'X',24:'Y',25:'Z',26:'a',27:'b',28:'c',29:'d',30:'e',31:'f',32:'g',33:'h',34:'i',35:'j',36:'k',...
34.612903
166
0.567102
412
2,146
2.859223
0.291262
0.142615
0.04584
0.061121
0.456706
0.429542
0.429542
0.414261
0.414261
0.414261
0
0.10483
0.150979
2,146
62
167
34.612903
0.541712
0.021435
0
0.358491
0
0
0.096713
0
0
0
0
0
0
1
0.037736
false
0
0
0
0.132075
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
aba69264e1ac48abb0bcfe70f1af9670b4edc6a2
590
py
Python
views/windows/basewindow.py
RamonWill/portfolio-management-project
ac8ce313f8d62f09810fc1da19d6b252f193871b
[ "MIT" ]
14
2020-01-01T04:59:06.000Z
2022-02-08T06:48:21.000Z
views/windows/basewindow.py
linhvien/portfolio-management-project
ac8ce313f8d62f09810fc1da19d6b252f193871b
[ "MIT" ]
null
null
null
views/windows/basewindow.py
linhvien/portfolio-management-project
ac8ce313f8d62f09810fc1da19d6b252f193871b
[ "MIT" ]
8
2020-10-15T06:52:37.000Z
2021-10-04T06:44:36.000Z
import tkinter as tk class BaseWindow(tk.Toplevel): def __init__(self): super().__init__() self.base_frame = tk.Frame(self) self.base_frame.pack(fill="both", expand="true") self.base_frame.pack_propagate(0) self.frame_styles = { "relief": "groove", ...
24.583333
56
0.476271
58
590
4.603448
0.689655
0.089888
0.146067
0.127341
0
0
0
0
0
0
0
0.042105
0.355932
590
23
57
25.652174
0.660526
0
0
0
0
0
0.166102
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
aba82608b365c3add79167593a64438d0fe2fb8a
963
py
Python
sync/auth.py
tstodden/google-sheets-sync
d3b73b9a2b76da1fabc6d0b1db43fc6b71fd0d23
[ "MIT" ]
null
null
null
sync/auth.py
tstodden/google-sheets-sync
d3b73b9a2b76da1fabc6d0b1db43fc6b71fd0d23
[ "MIT" ]
null
null
null
sync/auth.py
tstodden/google-sheets-sync
d3b73b9a2b76da1fabc6d0b1db43fc6b71fd0d23
[ "MIT" ]
null
null
null
import os from typing import NamedTuple from google.oauth2.service_account import Credentials as OAuthCredentials from .constants import OAUTH_CONFIG_PATH, OAUTH_SCOPES class PostgresCredentials: def __init__(self): self.host = os.environ.get("SYNC_DB_HOST") self.dbname = os.environ.get("SYNC_DB...
28.323529
79
0.718588
106
963
6.245283
0.339623
0.054381
0.072508
0.096677
0.108761
0
0
0
0
0
0
0.001307
0.205607
963
33
80
29.181818
0.864052
0
0
0.083333
0
0
0.053998
0
0
0
0
0
0
1
0.125
false
0.041667
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
abab9d30016bdfbdb016a1d0c85da2a580756ebd
5,970
py
Python
accounts.py
SurajOliver/tradense
9f14b6114be1b5753f0252f081e6efb7c26abf19
[ "MIT" ]
null
null
null
accounts.py
SurajOliver/tradense
9f14b6114be1b5753f0252f081e6efb7c26abf19
[ "MIT" ]
null
null
null
accounts.py
SurajOliver/tradense
9f14b6114be1b5753f0252f081e6efb7c26abf19
[ "MIT" ]
null
null
null
import datetime import numpy as np import pandas as pd from google.oauth2 import service_account from googleapiclient import discovery SPREADSHEET_ID = "1otVI0JgfuBDJw8jlW_l8vHXyfo5ufJiXOqshDixazZA" # ALL-IN-ONE-LOG-2021 class Spreadsheet: def __init__(self, spreadsheetId): self.spreadsheetId = spreads...
27.638889
123
0.574372
708
5,970
4.679379
0.264124
0.031391
0.047087
0.056142
0.245095
0.198008
0.174464
0.174464
0.158165
0.121944
0
0.017074
0.274037
5,970
215
124
27.767442
0.747347
0.011893
0
0.175141
0
0.016949
0.2095
0.049194
0
0
0
0
0
1
0.079096
false
0
0.028249
0.016949
0.19209
0.096045
0
0
0
null
0
0
0
0
0
0
0
0
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
abac1a3c955f1251fb90f89726bf46a055cf6faa
1,513
py
Python
bot.py
googlewaitme/picture-bot
ecdbb7b925f11c073e654a403aca4c91d7cbde6d
[ "MIT" ]
null
null
null
bot.py
googlewaitme/picture-bot
ecdbb7b925f11c073e654a403aca4c91d7cbde6d
[ "MIT" ]
null
null
null
bot.py
googlewaitme/picture-bot
ecdbb7b925f11c073e654a403aca4c91d7cbde6d
[ "MIT" ]
null
null
null
import telebot import settings import helpers from models import User bot = telebot.TeleBot(settings.token, parse_mode=None) users = dict() @bot.message_handler(commands=['start', 'help']) def send_help(message): if not message.chat.id in users: users[message.chat.id] = User() bot.reply_to(message, settings.help...
28.54717
94
0.777925
230
1,513
4.930435
0.265217
0.116402
0.137566
0.095238
0.512346
0.441799
0.392416
0.179894
0.179894
0.179894
0
0
0.09121
1,513
52
95
29.096154
0.824727
0
0
0.230769
0
0
0.078652
0
0
0
0
0
0
1
0.153846
false
0
0.102564
0
0.25641
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
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
abb2466001716bd862791946936f478b4e0f91ce
787
py
Python
tests/test_measuring_from_threads.py
tqsd/EQSN_python
823a315b1c2f5658cded19d8c97e579ce7285c42
[ "MIT" ]
3
2020-05-03T15:09:41.000Z
2021-12-17T11:26:34.000Z
tests/test_measuring_from_threads.py
tqsd/EQSN_python
823a315b1c2f5658cded19d8c97e579ce7285c42
[ "MIT" ]
5
2020-03-13T10:03:39.000Z
2020-07-09T12:56:04.000Z
tests/test_measuring_from_threads.py
tqsd/EQSN_python
823a315b1c2f5658cded19d8c97e579ce7285c42
[ "MIT" ]
1
2020-05-03T15:06:24.000Z
2020-05-03T15:06:24.000Z
import threading import random import time from eqsn import EQSN def test_measure_from_threads(): q_sim = EQSN() def measure_or_hadamard(_id): n = random.randrange(10, 20, 1) for _ in range(n): time.sleep(0.1) q_sim.H_gate(_id) nr_threads = 10 ids = [str(x) f...
19.195122
69
0.584498
120
787
3.508333
0.416667
0.047506
0.071259
0.104513
0
0
0
0
0
0
0
0.025735
0.308767
787
40
70
19.675
0.748162
0
0
0.066667
0
0
0.010165
0
0
0
0
0
0
1
0.066667
false
0
0.133333
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
abb2d80690576788c51726bbb153b052e20309fe
1,464
py
Python
_tests/test_permute_columns.py
allisonCYWu/utility_functions
d2c6246c96b9cd5e8c01292dd38ab0d572971698
[ "Apache-2.0" ]
null
null
null
_tests/test_permute_columns.py
allisonCYWu/utility_functions
d2c6246c96b9cd5e8c01292dd38ab0d572971698
[ "Apache-2.0" ]
4
2019-11-18T13:24:08.000Z
2020-02-05T19:49:59.000Z
_tests/test_permute_columns.py
allisonCYWu/utility_functions
d2c6246c96b9cd5e8c01292dd38ab0d572971698
[ "Apache-2.0" ]
null
null
null
import unittest from unittest import TestCase from utility_functions.stats_functions import permute_columns from utility_functions.databricks_uf import has_column from connect2Databricks.spark_init import spark_init if 'spark' not in locals(): spark, sqlContext, setting = spark_init() sc = spark.sparkContext cla...
40.666667
114
0.555328
147
1,464
5.238095
0.394558
0.14026
0.093506
0.08961
0.280519
0.280519
0.151948
0
0
0
0
0.016194
0.325137
1,464
35
115
41.828571
0.763158
0
0
0
0
0
0.067623
0
0
0
0
0
0.178571
1
0.035714
false
0
0.178571
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
abb442950c4d7f407a450c76baca3bbbde03c64f
24,857
py
Python
cogs/fun.py
ZetDude/KalevBot
fcf8c1502d3d9c85917ca151f9fb2cf4f3713086
[ "MIT" ]
3
2017-10-28T21:07:58.000Z
2018-05-05T12:14:05.000Z
cogs/fun.py
ZetDude/KalevBot
fcf8c1502d3d9c85917ca151f9fb2cf4f3713086
[ "MIT" ]
4
2017-09-08T17:44:31.000Z
2017-10-09T15:10:23.000Z
cogs/fun.py
ZetDude/KalevBot
fcf8c1502d3d9c85917ca151f9fb2cf4f3713086
[ "MIT" ]
4
2017-09-03T15:37:47.000Z
2017-11-15T20:15:59.000Z
"""Fun commands that don't do anything really productive night, thank, shipname, shipcount, ship, hug, pecan, fortune""" # -*- coding: utf-8 -*- import pickle import random import sqlite3 as lite import subprocess import discord from discord.ext import commands from lib import shipname_module as improved_shipname, ...
53.80303
100
0.544796
3,133
24,857
4.285988
0.179381
0.022639
0.032172
0.024203
0.366994
0.323429
0.284182
0.246127
0.216265
0.203902
0
0.010554
0.352014
24,857
461
101
53.91974
0.818526
0.211691
0
0.26284
0
0.003021
0.213555
0.025659
0
0
0
0.002169
0
1
0.012085
false
0
0.024169
0
0.081571
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
abb5b6a5115ed18e2c351f8835ee0c1d15acd865
3,151
py
Python
kross/base_push.py
pcorbel/kross
b7c282ecefc24066c3623257407b2f4ad02964bf
[ "Apache-2.0" ]
7
2019-07-16T19:10:57.000Z
2019-07-29T07:50:39.000Z
kross/base_push.py
pcorbel/kross
b7c282ecefc24066c3623257407b2f4ad02964bf
[ "Apache-2.0" ]
null
null
null
kross/base_push.py
pcorbel/kross
b7c282ecefc24066c3623257407b2f4ad02964bf
[ "Apache-2.0" ]
null
null
null
import os import re import shutil import attr import click import subprocess32 as subprocess import yaml from kross.utils import echo, get_std @attr.s class BasePush(object): push_args = attr.ib(type=tuple) registry_target = attr.ib() manifest_directory = attr.ib() qemu_archs = attr...
33.521277
83
0.597271
341
3,151
5.284457
0.319648
0.132075
0.066593
0.031632
0.193119
0.157603
0.157603
0.119867
0.119867
0.119867
0
0.001333
0.285624
3,151
93
84
33.88172
0.7992
0.039987
0
0.106667
0
0
0.169289
0.05472
0
0
0
0
0
1
0.093333
false
0.013333
0.106667
0
0.36
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
abb63be3752095ce741f646a1eeb76e388b01a69
5,655
py
Python
pylogue/menu_driver.py
tirinox/pylogue
35b85f93a0d91b60a0d1640126b54d427b60712a
[ "MIT" ]
null
null
null
pylogue/menu_driver.py
tirinox/pylogue
35b85f93a0d91b60a0d1640126b54d427b60712a
[ "MIT" ]
null
null
null
pylogue/menu_driver.py
tirinox/pylogue
35b85f93a0d91b60a0d1640126b54d427b60712a
[ "MIT" ]
null
null
null
from comm.telegram import TelegramCommunicationBot from telegram import Message from util.misc import wlog, die, enumerate_2d_array import traceback class MessageResponse: def __init__(self, text, user_id): self.user_id = user_id self.text = str(text).strip() class MessageRequest: pass cla...
32.687861
105
0.561804
671
5,655
4.530551
0.233979
0.035526
0.019737
0.013816
0.090789
0.055263
0.055263
0.025658
0.025658
0
0
0.002698
0.344651
5,655
173
106
32.687861
0.815704
0.00336
0
0.171429
0
0
0.086779
0
0
0
0
0
0
1
0.128571
false
0.007143
0.028571
0
0.25
0.007143
0
0
0
null
0
0
0
0
0
0
0
0
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
abb674cdfb0957870cdb52790ce97f51c0c2b5eb
10,358
py
Python
hiburn/actions.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
8
2020-04-06T08:47:26.000Z
2021-02-23T17:10:12.000Z
hiburn/actions.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
2
2020-05-14T16:59:33.000Z
2021-06-19T23:48:35.000Z
hiburn/actions.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
2
2020-05-02T22:49:01.000Z
2020-05-12T02:39:26.000Z
import logging import ipaddress import os from . import utils from . import ymodem # ------------------------------------------------------------------------------------------------- class Action: @classmethod def _run(cls, client, config, args): return cls(client, config).run(args) def __init__(...
41.266932
127
0.577621
1,217
10,358
4.756779
0.179129
0.045604
0.055795
0.019347
0.427017
0.379858
0.325272
0.263258
0.236828
0.18967
0
0.0042
0.218382
10,358
250
128
41.432
0.710845
0.139216
0
0.223464
0
0.005587
0.195483
0.026426
0
0
0
0
0
1
0.134078
false
0.011173
0.027933
0.022346
0.240223
0.03352
0
0
0
null
0
0
0
0
0
0
0
0
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
abb837a9e83e5c81cca4c68f2584b6bea603d190
955
py
Python
tree/inorder_traversal.py
vandesa003/leetcode_algo
8ebefef685cd25d8e149592f24e3552c8903504a
[ "MIT" ]
1
2022-03-23T01:33:42.000Z
2022-03-23T01:33:42.000Z
tree/inorder_traversal.py
vandesa003/leetcode_algo
8ebefef685cd25d8e149592f24e3552c8903504a
[ "MIT" ]
null
null
null
tree/inorder_traversal.py
vandesa003/leetcode_algo
8ebefef685cd25d8e149592f24e3552c8903504a
[ "MIT" ]
1
2020-07-24T03:32:30.000Z
2020-07-24T03:32:30.000Z
""" 中序遍历:DFS或者栈来实现。 leetcode No.94 """ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: # dfs 递归实现 def inorderTraversal(self, root: TreeNode) -> List[in...
22.738095
60
0.517277
113
955
4.327434
0.40708
0.042945
0
0
0
0
0
0
0
0
0
0.006734
0.37801
955
41
61
23.292683
0.816498
0.275393
0
0.16
0
0
0
0
0
0
0
0
0
1
0.12
false
0
0
0
0.32
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
abc5a6e1c8eb95e21a2424169d41cb33a6c8f98e
1,199
py
Python
rasa-rest-explode-brain.py
nprovotorov/rasa-rest-api-loadtest
31ee3308d9b11ff98e56172801943c3016c5bf93
[ "MIT" ]
6
2021-01-05T02:53:23.000Z
2022-02-17T07:53:36.000Z
rasa-rest-explode-brain.py
nprovotorov/rasa-rest-api-loadtest
31ee3308d9b11ff98e56172801943c3016c5bf93
[ "MIT" ]
null
null
null
rasa-rest-explode-brain.py
nprovotorov/rasa-rest-api-loadtest
31ee3308d9b11ff98e56172801943c3016c5bf93
[ "MIT" ]
1
2021-01-26T01:08:57.000Z
2021-01-26T01:08:57.000Z
import random import uuid from locust import HttpUser, task, between apiUrl = "/webhooks/rest/webhook" # Rasa Core REST API endpoint # apiUrl = "/core/webhooks/rest/webhook" # Rasa X REST API endpoint class RasaRestExplodeBrainUser(HttpUser): wait_time = between(3, 10) def on_start(self): self.nam...
29.975
67
0.633862
141
1,199
5.375887
0.397163
0.042216
0.067282
0.083113
0.299472
0.133245
0.092348
0
0
0
0
0.012022
0.236864
1,199
39
68
30.74359
0.816393
0.076731
0
0.068966
0
0
0.083409
0.019946
0
0
0
0
0
1
0.137931
false
0
0.103448
0
0.310345
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
abcb48c4f2cf0da6f255272f48b3091be08733b7
2,545
py
Python
celery_project/daily_quote/quotes.py
engineervix/django-celery-sample
9bb92a129bdd66d6c2259a41c690436c5c8316dc
[ "BSD-3-Clause" ]
null
null
null
celery_project/daily_quote/quotes.py
engineervix/django-celery-sample
9bb92a129bdd66d6c2259a41c690436c5c8316dc
[ "BSD-3-Clause" ]
194
2021-03-01T01:08:33.000Z
2021-12-07T22:55:41.000Z
celery_project/daily_quote/quotes.py
engineervix/django-celery-sample
9bb92a129bdd66d6c2259a41c690436c5c8316dc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """quotery.py This script is part of a daily celery task to fetch a quote from a JSON file and save it to the database. There should only be one quote at a time in the database. On the template, we simply retrieve the quote and display it on the website as "Quote of the Day". The idea is to ...
26.510417
72
0.666012
387
2,545
4.237726
0.452196
0.019512
0.02439
0.031707
0
0
0
0
0
0
0
0.008831
0.243615
2,545
95
73
26.789474
0.843117
0.418861
0
0
0
0
0.032999
0
0
0
0
0
0
1
0.071429
false
0
0.166667
0
0.285714
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
abcccf0a171f8f65a41202cdaec0c176a6cff770
7,718
py
Python
backend/flask_app/server.py
aPorousRock/Angular2Flask
bac2fd68207bcfa6c33b85abddac8737375d407d
[ "MIT" ]
null
null
null
backend/flask_app/server.py
aPorousRock/Angular2Flask
bac2fd68207bcfa6c33b85abddac8737375d407d
[ "MIT" ]
null
null
null
backend/flask_app/server.py
aPorousRock/Angular2Flask
bac2fd68207bcfa6c33b85abddac8737375d407d
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- """Entry point for the server application.""" import json import logging import traceback from datetime import datetime from flask import Response, request, jsonify, current_app from gevent.wsgi import WSGIServer from flask_jwt_simple import ( JWTManager, jwt_required...
31.246964
123
0.651075
998
7,718
4.941884
0.318637
0.047445
0.016423
0.036496
0.305758
0.237632
0.214315
0.194242
0.194242
0.166261
0
0.024814
0.216766
7,718
246
124
31.373984
0.791067
0.083053
0
0.209677
0
0.005376
0.122278
0.022491
0
0
0
0.004065
0
1
0.043011
false
0.032258
0.145161
0
0.241935
0.037634
0
0
0
null
0
0
0
0
0
0
0
0
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
abce73ab5ea7484cda032b4a04d06bfbe7876a23
16,481
py
Python
pyfarm/agent/http/api/assign.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
pyfarm/agent/http/api/assign.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
pyfarm/agent/http/api/assign.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
# No shebang line, this module is meant to be imported # # Copyright 2014 Oliver Palmer # Copyright 2014 Ambient Entertainment GmbH & Co. KG # # 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 # ...
44.663957
81
0.564225
1,747
16,481
5.170006
0.207785
0.018601
0.026572
0.011625
0.294287
0.24535
0.207042
0.16818
0.119132
0.10031
0
0.002147
0.349857
16,481
368
82
44.785326
0.840784
0.118075
0
0.264286
0
0
0.174408
0.002485
0
0
0
0.002717
0
1
0.042857
false
0
0.071429
0
0.167857
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
abcf771bb1eef36b8475fbd6b6801cc8c8d640fe
1,387
py
Python
examples/multi_agent.py
spMohanty/marlo
6ca3dc449fba58413b1797b28bb3e2374d62751f
[ "MIT" ]
214
2018-07-26T13:48:36.000Z
2022-03-25T11:34:53.000Z
examples/multi_agent.py
spMohanty/marlo
6ca3dc449fba58413b1797b28bb3e2374d62751f
[ "MIT" ]
47
2018-08-01T16:03:07.000Z
2022-02-12T12:46:09.000Z
examples/multi_agent.py
spMohanty/marLo
6ca3dc449fba58413b1797b28bb3e2374d62751f
[ "MIT" ]
48
2018-07-27T15:49:01.000Z
2021-07-18T13:55:56.000Z
#!/usr/bin/env python # Please ensure that you have two Minecraft clients running on port 10000 and # port 10001 by doing : # $MALMO_MINECRAFT_ROOT/launchClient.sh -port 10000 # $MALMO_MINECRAFT_ROOT/launchClient.sh -port 10001 import marlo client_pool = [('127.0.0.1', 10000),('127.0.0.1', 10001)] join_tokens = marl...
30.152174
78
0.579668
173
1,387
4.473988
0.468208
0.064599
0.046512
0.077519
0.093023
0.093023
0
0
0
0
0
0.057592
0.311464
1,387
45
79
30.822222
0.75288
0.256669
0
0
0
0
0.118511
0
0
0
0
0
0.033333
1
0.033333
false
0
0.033333
0
0.066667
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
abd6eef90ad96992e821c7e62a12d3098278c5bf
1,191
py
Python
pyraminxolver/setup.py
Odder/PyraminXolver
f497a3936e63a51bb9de4d445db0a1399ae4b85c
[ "MIT" ]
1
2020-02-16T11:11:35.000Z
2020-02-16T11:11:35.000Z
pyraminxolver/setup.py
Odder/PyraminXolver
f497a3936e63a51bb9de4d445db0a1399ae4b85c
[ "MIT" ]
1
2019-10-06T07:19:56.000Z
2019-10-26T20:39:19.000Z
pyraminxolver/setup.py
Odder/PyraminXolver
f497a3936e63a51bb9de4d445db0a1399ae4b85c
[ "MIT" ]
1
2019-11-22T15:53:29.000Z
2019-11-22T15:53:29.000Z
from collections import deque import pickle from . import Pyraminx, PYRAMINX_CASE_PATH from multiprocessing import Pool, cpu_count def setup(): graph = create_graph() with open(PYRAMINX_CASE_PATH, 'wb') as f: pickle.dump(graph, f, pickle.HIGHEST_PROTOCOL) def create_graph(): with Pool(cpu_count...
24.8125
63
0.618808
167
1,191
4.209581
0.347305
0.02276
0.029872
0.034139
0.012802
0.012802
0.012802
0.012802
0
0
0
0.031818
0.261125
1,191
47
64
25.340426
0.767045
0
0
0.055556
0
0
0.008396
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.305556
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
abdc66f427d245a23a8cd8f7219011f041e2e90d
2,321
py
Python
APIFunctions/replace_resources.py
cul/archivesspace
9c088d4495cf1006c7d02ed2850224a9d28b35c1
[ "MIT" ]
4
2018-12-13T16:18:30.000Z
2020-02-14T14:01:28.000Z
APIFunctions/replace_resources.py
cul/archivesspace
9c088d4495cf1006c7d02ed2850224a9d28b35c1
[ "MIT" ]
null
null
null
APIFunctions/replace_resources.py
cul/archivesspace
9c088d4495cf1006c7d02ed2850224a9d28b35c1
[ "MIT" ]
2
2019-09-03T19:15:24.000Z
2020-12-01T20:27:14.000Z
# Script to replace text in a designated field in a resource and post the resource back to API. # Requirements: # - ASFunctions.py # - A csv of format repo,asid # - sheetFeeder (optional, for reporting purposes) import ASFunctions as asf import json from pprint import pprint import re import csv from sheetFeeder impor...
22.980198
129
0.637225
325
2,321
4.289231
0.344615
0.032281
0.060976
0.064562
0.131277
0.090387
0
0
0
0
0
0.015927
0.242568
2,321
100
130
23.21
0.777019
0.196036
0
0
0
0
0.188445
0.052376
0
0
0
0
0
1
0.022222
false
0
0.133333
0
0.155556
0.088889
0
0
0
null
0
0
0
0
0
0
0
0
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
abde3c4b3322bc497127bee1536c6ca6039746ca
852
py
Python
packages/sia/datetime.py
varunsrivatsa/Sia
c5fc99f357138cfbcf050277f1aa201048cd26f4
[ "MIT" ]
3
2022-01-28T17:51:05.000Z
2022-03-25T14:57:52.000Z
packages/sia/datetime.py
varunsrivatsa/Sia
c5fc99f357138cfbcf050277f1aa201048cd26f4
[ "MIT" ]
19
2022-01-16T08:23:52.000Z
2022-03-18T22:27:02.000Z
packages/sia/datetime.py
varunsrivatsa/Sia
c5fc99f357138cfbcf050277f1aa201048cd26f4
[ "MIT" ]
1
2022-03-09T06:23:42.000Z
2022-03-09T06:23:42.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import utils from datetime import datetime import calendar def run(string, entities): """Sia tells time and date""" string = string.lower() now = datetime.now() day = datetime.today() if string.find("time") != -1 and string.find("date") == -1: ...
37.043478
116
0.593897
122
852
4.139344
0.352459
0.138614
0.09505
0.142574
0.376238
0.376238
0.318812
0.241584
0.241584
0.241584
0
0.011645
0.193662
852
22
117
38.727273
0.723435
0.076291
0
0
0
0
0.194872
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
abdf820c98b1659e30fa822be8c125f87ed89cc6
1,477
py
Python
python/rl_agent/model.py
iShohei220/Grounded-Language-Learning-in-Pytorch
75859829258dd33d4a75f79dc9348a1671a68b81
[ "CC-BY-4.0" ]
null
null
null
python/rl_agent/model.py
iShohei220/Grounded-Language-Learning-in-Pytorch
75859829258dd33d4a75f79dc9348a1671a68b81
[ "CC-BY-4.0" ]
null
null
null
python/rl_agent/model.py
iShohei220/Grounded-Language-Learning-in-Pytorch
75859829258dd33d4a75f79dc9348a1671a68b81
[ "CC-BY-4.0" ]
1
2021-01-16T19:53:55.000Z
2021-01-16T19:53:55.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torch.optim as optim import numpy as np from collections import namedtuple from network_modules import * State = namedtuple('State', ('visual', 'instruction')) class Model(nn.Module): def __init__(self, ...
31.425532
94
0.641842
181
1,477
4.98895
0.353591
0.03876
0.048726
0.063123
0.108527
0
0
0
0
0
0
0.00466
0.273527
1,477
47
95
31.425532
0.836906
0.134733
0
0
0
0
0.017901
0
0
0
0
0
0
1
0.074074
false
0
0.296296
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
abe24ac8d4f36a5234b583961dedd7e2bc567ce6
2,298
py
Python
convlab/modules/e2e/multiwoz/Mem2Seq/Mem2Seq.py
ngduyanhece/ConvLab
a04582a77537c1a706fbf64715baa9ad0be1301a
[ "MIT" ]
405
2019-06-17T05:38:47.000Z
2022-03-29T15:16:51.000Z
convlab/modules/e2e/multiwoz/Mem2Seq/Mem2Seq.py
ngduyanhece/ConvLab
a04582a77537c1a706fbf64715baa9ad0be1301a
[ "MIT" ]
69
2019-06-20T22:57:41.000Z
2022-03-04T12:12:07.000Z
convlab/modules/e2e/multiwoz/Mem2Seq/Mem2Seq.py
ngduyanhece/ConvLab
a04582a77537c1a706fbf64715baa9ad0be1301a
[ "MIT" ]
124
2019-06-17T05:11:23.000Z
2021-12-31T05:58:18.000Z
# -*- coding: utf-8 -*- # Modified by Microsoft Corporation. # Licensed under the MIT license. """ """ import numpy as np import torch from nltk import word_tokenize from .models.Mem2Seq import Mem2Seq from .utils.config import args, USE_CUDA, UNK_token from .utils.utils_woz_mem2seq import prepare_data_seq, generate...
33.304348
130
0.597476
313
2,298
4.230032
0.345048
0.031722
0.033988
0.02719
0
0
0
0
0
0
0
0.020266
0.248477
2,298
68
131
33.794118
0.746381
0.062663
0
0
0
0
0.043884
0
0
0
0
0
0
1
0.096154
false
0
0.115385
0
0.288462
0.057692
0
0
0
null
0
0
0
0
0
0
0
0
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
abe581f27ace8a8b0cd1d152b02ba112d26b24bc
21,754
py
Python
wwwhisper_admin/tests/tests_views.py
wrr/wwwhisper
38a55dd9c828fbb1b5a8234ea3ddf2242e684983
[ "MIT" ]
54
2015-01-19T23:49:39.000Z
2021-02-18T01:14:51.000Z
wwwhisper_admin/tests/tests_views.py
wrr/wwwhisper
38a55dd9c828fbb1b5a8234ea3ddf2242e684983
[ "MIT" ]
13
2015-01-26T14:51:10.000Z
2020-11-10T04:15:36.000Z
wwwhisper_admin/tests/tests_views.py
wrr/wwwhisper
38a55dd9c828fbb1b5a8234ea3ddf2242e684983
[ "MIT" ]
11
2015-07-25T02:13:12.000Z
2021-07-10T14:11:46.000Z
# wwwhisper - web access control. # Copyright (C) 2012-2018 Jan Wrobel <jan@mixedbit.org> from wwwhisper_auth.models import Site from wwwhisper_auth.tests.utils import HttpTestCase from wwwhisper_auth.tests.utils import TEST_SITE import json FAKE_UUID = '41be0192-0fcc-4a9c-935d-69243b75533c' TEST_USER_EMAIL = 'foo@b...
44.036437
80
0.635699
2,487
21,754
5.319662
0.072376
0.104308
0.058503
0.036584
0.744822
0.697506
0.638549
0.589267
0.54452
0.498866
0
0.015899
0.242484
21,754
493
81
44.125761
0.786941
0.016549
0
0.465296
0
0
0.130951
0.053129
0
0
0
0
0.341902
1
0.113111
false
0
0.010283
0.005141
0.154242
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
abe6448fcecf9dc6bfc75f1868f21902baa70a7a
2,139
py
Python
text_plistlib/plistlib.py
Artoria2e5/text-plistlib
5f8c868341bc7e933c8c6e2587dbd75ad0dc93b0
[ "MIT" ]
null
null
null
text_plistlib/plistlib.py
Artoria2e5/text-plistlib
5f8c868341bc7e933c8c6e2587dbd75ad0dc93b0
[ "MIT" ]
null
null
null
text_plistlib/plistlib.py
Artoria2e5/text-plistlib
5f8c868341bc7e933c8c6e2587dbd75ad0dc93b0
[ "MIT" ]
null
null
null
""" Wrapper providing a plistlib interface. Better than a patch? """ __all__ = [ "InvalidFileException", "FMT_XML", "FMT_BINARY", "FMT_TEXT", "load", "dump", "loads", "dumps", "UID", ] import plistlib as pl from enum import Enum from io import BytesIO from typing i...
25.771084
86
0.586255
287
2,139
4.219512
0.348432
0.063584
0.012386
0.039637
0.115607
0.092486
0
0
0
0
0
0.011897
0.253389
2,139
82
87
26.085366
0.7464
0.240767
0
0.08
0
0
0.086008
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.3
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
abe683c77717a86c75c2669b78ad1d9d8749390b
3,992
py
Python
treat/moc/kinf/make_kinf.py
tjlaboss/tasty_treat
5a137b49c6648eda6500025de8bab9c8dcc78d45
[ "MIT" ]
3
2019-03-04T22:52:07.000Z
2022-01-23T12:28:58.000Z
treat/moc/kinf/make_kinf.py
tjlaboss/tasty_treat
5a137b49c6648eda6500025de8bab9c8dcc78d45
[ "MIT" ]
3
2021-07-23T17:30:35.000Z
2021-09-17T16:25:57.000Z
treat/moc/kinf/make_kinf.py
tjlaboss/tasty_treat
5a137b49c6648eda6500025de8bab9c8dcc78d45
[ "MIT" ]
null
null
null
# Make kinf # # Analyze the fuel materials from different libraries import numpy as np import openmc from openmc import mgxs import os import sys; sys.path.append("..") import materials import energy_groups def _get_fuel(library): try: fuel = library.get_material("fuel") except KeyError: fuel = library.get_mat...
29.352941
75
0.717435
601
3,992
4.584027
0.301165
0.021779
0.03049
0.047913
0.147731
0.090744
0.078403
0
0
0
0
0.014109
0.147796
3,992
135
76
29.57037
0.795708
0.062876
0
0
0
0
0.091615
0
0
0
0
0
0.045455
1
0.072727
false
0
0.063636
0
0.190909
0.009091
0
0
0
null
0
0
0
0
0
0
0
0
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
abe704d6ccddf0e4852958c0661a8661be5aca37
1,775
py
Python
Configuration/Skimming/test/tier1_hi/hiHighPt_PromptSkim2011_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Skimming/test/tier1_hi/hiHighPt_PromptSkim2011_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Skimming/test/tier1_hi/hiHighPt_PromptSkim2011_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("HIGHPTSKIM") process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContentHeavyIons_cff') process.source = cms.Source("PoolSource", fileNames ...
41.27907
165
0.774085
198
1,775
6.833333
0.520202
0.088692
0.047302
0.050259
0
0
0
0
0
0
0
0.028536
0.091831
1,775
42
166
42.261905
0.810794
0.107606
0
0
0
0.032258
0.268865
0.211795
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
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
abf5a5efa1eec3c81e55b4c7175e48f263de13b1
16,929
py
Python
tests/continual/test_container.py
LukasHedegaard/continual-inference
99a01f1360c56e2578231edd8fecb0dbadbf44d0
[ "Apache-2.0" ]
7
2021-09-22T14:42:59.000Z
2022-03-28T20:43:25.000Z
tests/continual/test_container.py
LukasHedegaard/continual-inference
99a01f1360c56e2578231edd8fecb0dbadbf44d0
[ "Apache-2.0" ]
29
2021-08-11T06:58:21.000Z
2022-03-29T07:19:37.000Z
tests/continual/test_container.py
LukasHedegaard/continual-inference
99a01f1360c56e2578231edd8fecb0dbadbf44d0
[ "Apache-2.0" ]
2
2021-10-03T20:03:09.000Z
2021-12-03T17:31:48.000Z
import math from collections import OrderedDict import pytest import torch from torch import nn import continual as co from continual.module import TensorPlaceholder torch.manual_seed(42) def test_sequential(): S = 3 long_example_clip = torch.normal(mean=torch.zeros(10 * 3 * 3)).reshape( (1, 1, 10...
31.52514
143
0.624845
2,518
16,929
4.046068
0.090945
0.061543
0.047114
0.020612
0.660777
0.616608
0.542992
0.521692
0.471731
0.426875
0
0.047065
0.218087
16,929
536
144
31.583955
0.722596
0.06037
0
0.378378
0
0.005405
0.024773
0.00145
0
0
0
0
0.3
1
0.054054
false
0
0.018919
0.005405
0.078378
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
abfd898f1fd7a927dd38c972caa71877640b65cc
2,728
py
Python
quotatron.py
ItsPonks/DiscordBots
062c4e6b33835fc3cde391011125d4cfd7ae1c6a
[ "MIT" ]
null
null
null
quotatron.py
ItsPonks/DiscordBots
062c4e6b33835fc3cde391011125d4cfd7ae1c6a
[ "MIT" ]
null
null
null
quotatron.py
ItsPonks/DiscordBots
062c4e6b33835fc3cde391011125d4cfd7ae1c6a
[ "MIT" ]
null
null
null
from app import SlashBot from async_timeout import timeout from asyncio import TimeoutError from datetime import datetime, timedelta, timezone from hikari import ButtonStyle, CacheSettings, Member, UNDEFINED from random import choice, sample, uniform bot = SlashBot(cache_settings=CacheSettings(max_messages=1000...
50.518519
181
0.606305
319
2,728
5.141066
0.420063
0.02439
0.013415
0.026829
0.02561
0
0
0
0
0
0
0.011622
0.27456
2,728
53
182
51.471698
0.817079
0
0
0
0
0
0.10729
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
abff8a668f2d6433edc42fc8d0de063e6d1e1a69
2,745
py
Python
hpotter/src/one_way_thread.py
LarsenClose/dr.hpotter
ef6199ab563a92f3e4916277dbde9217126f36a9
[ "MIT" ]
1
2021-08-15T09:24:20.000Z
2021-08-15T09:24:20.000Z
hpotter/src/one_way_thread.py
LarsenClose/dr.hpotter
ef6199ab563a92f3e4916277dbde9217126f36a9
[ "MIT" ]
18
2021-02-01T21:58:20.000Z
2021-05-24T17:10:25.000Z
hpotter/src/one_way_thread.py
LarsenClose/dr.hpotter
ef6199ab563a92f3e4916277dbde9217126f36a9
[ "MIT" ]
1
2021-06-19T12:49:54.000Z
2021-06-19T12:49:54.000Z
''' Threads that go to/from containers, limit data and lines, and insert data into the Data table. ''' import threading from src import tables from src.logger import logger from src.lazy_init import lazy_init class OneWayThread(threading.Thread): ''' One thread to/from container. ''' # pylint: disable=E1101, ...
33.072289
102
0.579964
320
2,745
4.8875
0.29375
0.091432
0.038363
0.054348
0.137468
0.028133
0
0
0
0
0
0.012099
0.307468
2,745
82
103
33.47561
0.810626
0.077596
0
0.081967
0
0
0.056108
0
0
0
0
0
0
1
0.098361
false
0
0.065574
0
0.229508
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
2804d5dc2b4f1fcfefbc0acd3532b59ffc96d9f6
1,827
py
Python
util/levels.py
Xetera/IreneBot
e768bb3a0d2517ecb00d50da89d66ac0dd1498d0
[ "MIT" ]
1
2021-10-02T16:05:11.000Z
2021-10-02T16:05:11.000Z
util/levels.py
Xetera/IreneBot
e768bb3a0d2517ecb00d50da89d66ac0dd1498d0
[ "MIT" ]
null
null
null
util/levels.py
Xetera/IreneBot
e768bb3a0d2517ecb00d50da89d66ac0dd1498d0
[ "MIT" ]
null
null
null
from Utility import resources as ex # noinspection PyPep8 class Levels: @staticmethod async def get_level(user_id, command): """Get the level of a command (rob/beg/daily).""" count = ex.first_result( await ex.conn.fetchrow(f"SELECT COUNT(*) FROM currency.Levels WHERE UserID = $1 AN...
38.87234
123
0.586207
242
1,827
4.35124
0.318182
0.039886
0.052232
0.065527
0.226971
0.226971
0.226971
0.226971
0.187085
0.150047
0
0.029874
0.303777
1,827
46
124
39.717391
0.797956
0.04543
0
0.294118
0
0
0.210208
0
0
0
0
0
0
1
0
false
0
0.029412
0
0.176471
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
f9eaf3d0c02077230ba993a6dcd5aeadb2b3f5df
1,533
py
Python
Hydraslayer/Utility.py
Jorisvansteenbrugge/GapFiller
ff879935765ed47eafcc0f38e47042694657d961
[ "MIT" ]
null
null
null
Hydraslayer/Utility.py
Jorisvansteenbrugge/GapFiller
ff879935765ed47eafcc0f38e47042694657d961
[ "MIT" ]
null
null
null
Hydraslayer/Utility.py
Jorisvansteenbrugge/GapFiller
ff879935765ed47eafcc0f38e47042694657d961
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger("Hydraslayer") def get_consensusbase(bases, mincov=3): """ :param mincov: :type bases: list """ bases = "".join(bases) a = bases.count('A') t = bases.count('T') c = bases.count('C') g = bases.count('G') n = bases.count("N") + bases.c...
23.227273
92
0.613177
208
1,533
4.408654
0.355769
0.065431
0.045802
0.058888
0.052345
0.052345
0.052345
0
0
0
0
0.006009
0.240052
1,533
65
93
23.584615
0.781116
0.145466
0
0.055556
0
0
0.018883
0
0
0
0
0
0
1
0.138889
false
0
0.027778
0.027778
0.305556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9eb5ae0a2f921af7f1e7867be9f3e3a70e3a5d2
5,094
py
Python
src/student/student_model.py
YoshikiKubotani/RLTutor
17d7cd274d0ea5ef69a4590b01ab905a4ed58463
[ "MIT" ]
3
2021-08-10T09:57:42.000Z
2022-03-10T12:52:56.000Z
src/student/student_model.py
YoshikiKubotani/rltutor
17d7cd274d0ea5ef69a4590b01ab905a4ed58463
[ "MIT" ]
1
2021-04-17T03:35:33.000Z
2021-04-23T15:58:02.000Z
src/student/student_model.py
YoshikiKubotani/rltutor
17d7cd274d0ea5ef69a4590b01ab905a4ed58463
[ "MIT" ]
null
null
null
import copy import numpy as np from collections import defaultdict import utils class DAS3HStudent: def __init__(self, time_weight, n_items, n_skills, seed): np.random.seed(seed) self.alpha = np.random.normal(loc=-1.5, scale=0.3, size=1) self.delta = np.random.normal(loc=-1.0, scale=0.5, ...
35.622378
88
0.611504
745
5,094
3.916779
0.154362
0.044551
0.037697
0.033585
0.428376
0.383139
0.332762
0.270391
0.224812
0.204249
0
0.015102
0.272085
5,094
143
89
35.622378
0.771845
0
0
0.211864
0
0
0.005103
0
0
0
0
0
0
1
0.09322
false
0
0.033898
0
0.20339
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
f9ef1102a1c613bcb45da31777d89452e59168b6
2,625
py
Python
conversion_tools/misc_functions.py
xiaoping-yang/ms2pip_c
061fcd8aa8c315b775ac64f5c1f7dfe0a09bdea9
[ "Apache-2.0" ]
14
2018-08-21T04:58:22.000Z
2022-03-21T11:40:12.000Z
conversion_tools/misc_functions.py
xiaoping-yang/ms2pip_c
061fcd8aa8c315b775ac64f5c1f7dfe0a09bdea9
[ "Apache-2.0" ]
69
2018-05-23T12:52:16.000Z
2022-03-14T20:42:49.000Z
conversion_tools/misc_functions.py
xiaoping-yang/ms2pip_c
061fcd8aa8c315b775ac64f5c1f7dfe0a09bdea9
[ "Apache-2.0" ]
10
2019-04-28T01:24:10.000Z
2022-03-04T18:37:47.000Z
""" Miscellaneous functions regarding MS2PIP file conversions. """ import re import pandas as pd def add_fixed_mods(peprec, fixed_mods=None, n_term=None, c_term=None): """ Add 'fixed' modifications to all peptides in an MS2PIP PEPREC file. Return list with MS2PIP modifications with fixed mods added. ...
30.882353
100
0.613333
359
2,625
4.350975
0.334262
0.077465
0.009603
0.013444
0.060179
0.060179
0.048656
0.048656
0.048656
0.048656
0
0.009375
0.268571
2,625
85
101
30.882353
0.804167
0.215619
0
0.043478
0
0
0.087437
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.173913
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9f160c2036c4a9de666283011c042c949cb5728
2,518
py
Python
docs/conf.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
2
2020-08-26T11:24:43.000Z
2021-07-28T09:46:40.000Z
docs/conf.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
153
2020-08-26T10:45:35.000Z
2021-12-10T17:33:16.000Z
docs/conf.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- import o...
29.97619
78
0.673153
326
2,518
5.088957
0.533742
0.007233
0.022905
0.018083
0.086799
0
0
0
0
0
0
0.002336
0.150119
2,518
83
79
30.337349
0.772897
0.651311
0
0
0
0
0.27929
0.028402
0
0
0
0
0
1
0
false
0
0.151515
0
0.151515
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
f9f1a4c66877c2a359160ca92cd9a1a5bd503f2e
1,547
py
Python
tests/test_preprocessing.py
mitchelllisle/leonard
09f2f72d1f103813233c19950189a502868ce60a
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
mitchelllisle/leonard
09f2f72d1f103813233c19950189a502868ce60a
[ "MIT" ]
27
2018-04-05T22:32:11.000Z
2018-12-09T21:04:12.000Z
tests/test_preprocessing.py
mitchelllisle/leonard
09f2f72d1f103813233c19950189a502868ce60a
[ "MIT" ]
null
null
null
import pytest from martha import negabs from martha import normalise from martha import labelEncoder from martha import cleanUpString from martha import medianFrequency from martha import gini import numpy as np import pandas as pd import json from sklearn.preprocessing import LabelEncoder # import os # os.chdir("/Use...
31.571429
93
0.716225
194
1,547
5.623711
0.335052
0.054995
0.087993
0.047663
0.148488
0.148488
0.148488
0.087993
0.087993
0.087993
0
0.020658
0.155139
1,547
48
94
32.229167
0.814078
0.040724
0
0.108108
0
0
0.119514
0.058069
0
0
0
0
0.162162
1
0.162162
false
0
0.297297
0
0.459459
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
f9f1e55a1cfe8220ba10d8a734bbe623347c9690
7,806
py
Python
Recommendation_System/Research_Recommender/Research_Recommender_Clustering.py
quangnguyendang/Reinforcement_Learning
2551ce95068561c553500838ee6b976f001ba667
[ "MIT" ]
null
null
null
Recommendation_System/Research_Recommender/Research_Recommender_Clustering.py
quangnguyendang/Reinforcement_Learning
2551ce95068561c553500838ee6b976f001ba667
[ "MIT" ]
null
null
null
Recommendation_System/Research_Recommender/Research_Recommender_Clustering.py
quangnguyendang/Reinforcement_Learning
2551ce95068561c553500838ee6b976f001ba667
[ "MIT" ]
null
null
null
# Example of CBF for research-paper domain # Nguyen Dang Quang from nltk.stem.snowball import SnowballStemmer import pandas as pd from nltk.corpus import stopwords # -------------------------------------------------------- user_input_data = "It is known that the performance of an optimal control strategy obtained fro...
38.264706
158
0.668204
984
7,806
5.151423
0.255081
0.029592
0.024857
0.018741
0.330834
0.29927
0.260801
0.24857
0.21957
0.189978
0
0.00661
0.166667
7,806
203
159
38.453202
0.772636
0.195491
0
0.213675
0
0
0.272494
0.008966
0
0
0
0
0
1
0.076923
false
0
0.068376
0.008547
0.230769
0.094017
0
0
0
null
0
0
0
0
0
0
0
0
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
f9f282edbab72aad8652828b7e20e00859536805
5,625
py
Python
extract_from_stata/model/regressions.py
gn0/extract-from-stata
52f94f65d28aee257c2a46ca82149e14ab74fbda
[ "CC-BY-4.0" ]
null
null
null
extract_from_stata/model/regressions.py
gn0/extract-from-stata
52f94f65d28aee257c2a46ca82149e14ab74fbda
[ "CC-BY-4.0" ]
null
null
null
extract_from_stata/model/regressions.py
gn0/extract-from-stata
52f94f65d28aee257c2a46ca82149e14ab74fbda
[ "CC-BY-4.0" ]
null
null
null
import re import collections import extract_from_stata.model.common def is_beginning_of_table(line): return (line.startswith("Linear regression") or re.match(r"^ +Source \| +SS +df +MS", line) is not None or line.startswith("Negative binomial regression") or line.startswith("H...
29.450262
105
0.592889
645
5,625
4.937985
0.209302
0.089796
0.02763
0.037363
0.515856
0.344741
0.232339
0.164521
0.136264
0.095447
0
0.009891
0.299022
5,625
190
106
29.605263
0.79787
0.011022
0
0.307087
0
0.007874
0.118568
0.012594
0
0
0
0
0.023622
1
0.110236
false
0
0.023622
0.031496
0.283465
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
f9f39222109d35dd54c9520459d1d2c222c58e13
1,173
py
Python
master/master/doctype/add_rate/add_rate.py
reddymeghraj/master
1f93748fb951e52edc28c1b8c150d1acacff1687
[ "MIT" ]
null
null
null
master/master/doctype/add_rate/add_rate.py
reddymeghraj/master
1f93748fb951e52edc28c1b8c150d1acacff1687
[ "MIT" ]
null
null
null
master/master/doctype/add_rate/add_rate.py
reddymeghraj/master
1f93748fb951e52edc28c1b8c150d1acacff1687
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Wayzon and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class AddRate(Document): def validate(self): b=self.brand; bt=self.brand_type; r=self.rate; q=frappe.db.sql("""selec...
35.545455
107
0.72208
203
1,173
4.073892
0.374384
0.097944
0.053204
0.043531
0.304716
0.28295
0.28295
0.25393
0.183797
0.183797
0
0.008824
0.130435
1,173
33
108
35.545455
0.801961
0.077579
0
0.310345
0
0.034483
0.485185
0.059259
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.241379
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
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
f9f6b1140ade48b9437ab03cfc7f614535b44fee
1,267
py
Python
oxe-api/resource/private/get_my_companies.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/resource/private/get_my_companies.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/resource/private/get_my_companies.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
from flask_apispec import MethodResource from flask_apispec import doc from flask_jwt_extended import jwt_required, get_jwt_identity from flask_restful import Resource from db.db import DB from decorator.catch_exception import catch_exception from decorator.log_request import log_request from utils.serializer import S...
30.902439
97
0.649566
144
1,267
5.541667
0.388889
0.075188
0.090226
0.12406
0.075188
0.075188
0.075188
0
0
0
0
0.006309
0.249408
1,267
40
98
31.675
0.832808
0
0
0
0
0
0.134964
0.049724
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9f91708559004c1587db8bf5fbe2a059ca12bc6
9,693
py
Python
src/recommendation/main_inference.py
AntoninJoly/book
257c641fd52d0e9499093247727b135ed361d7c4
[ "Apache-2.0" ]
null
null
null
src/recommendation/main_inference.py
AntoninJoly/book
257c641fd52d0e9499093247727b135ed361d7c4
[ "Apache-2.0" ]
null
null
null
src/recommendation/main_inference.py
AntoninJoly/book
257c641fd52d0e9499093247727b135ed361d7c4
[ "Apache-2.0" ]
null
null
null
import math import click import dgl import numpy as np import torch from src.builder import create_graph from src.model import ConvModel from src.utils_data import DataPaths, DataLoader, FixedParameters, assign_graph_features from src.utils_inference import read_graph, fetch_uids, postprocess_recs from src.train.run ...
42.327511
120
0.573816
1,126
9,693
4.711368
0.219361
0.063713
0.022055
0.02771
0.196041
0.147408
0.11574
0.077851
0.025825
0.018096
0
0.004078
0.342309
9,693
228
121
42.513158
0.828078
0.175487
0
0.082353
0
0.005882
0.185449
0.009031
0
0
0
0
0
1
0.011765
false
0
0.076471
0
0.094118
0.005882
0
0
0
null
0
0
0
0
0
0
0
0
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
f9ff014150d49d6aa831781d7f5630eb634ba2c0
5,328
py
Python
evolutron/tools/data_tools.py
thrakar9/Evolutron
1b9b4c364fe531e5001fd9010898b96e0f5907d7
[ "MIT" ]
10
2017-11-30T20:30:12.000Z
2021-04-10T21:45:12.000Z
evolutron/tools/data_tools.py
thrakar9/Evolutron
1b9b4c364fe531e5001fd9010898b96e0f5907d7
[ "MIT" ]
null
null
null
evolutron/tools/data_tools.py
thrakar9/Evolutron
1b9b4c364fe531e5001fd9010898b96e0f5907d7
[ "MIT" ]
3
2019-06-20T15:13:42.000Z
2020-03-24T11:44:07.000Z
# coding=utf-8 from functools import partial import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from .seq_tools import aa2hot from ..tools import io_tools as io def data_it(dataset, block_size, multi_data=False): """ Iterates through a large array, yielding chunks of blo...
31.714286
115
0.593844
847
5,328
3.515939
0.24085
0.043653
0.030222
0.030222
0.283076
0.232371
0.192075
0.165212
0.165212
0.152451
0
0.037668
0.272523
5,328
167
116
31.904192
0.73065
0.106419
0
0.196262
0
0
0.037403
0
0
0
0
0
0.018692
1
0.074766
false
0.009346
0.056075
0
0.233645
0.018692
0
0
0
null
0
0
0
0
0
0
0
0
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
f9ff05579682158568bfec5a2b8abe73eaf5622f
1,894
py
Python
magic_timer/format_seconds.py
sradc/magic-timer
02e95ae7e96787871bd243a2a6a3e14d8615560e
[ "MIT" ]
2
2020-09-10T15:43:28.000Z
2020-09-11T08:14:36.000Z
magic_timer/format_seconds.py
sradc/magic-timer
02e95ae7e96787871bd243a2a6a3e14d8615560e
[ "MIT" ]
1
2020-09-10T10:55:04.000Z
2020-09-10T12:40:15.000Z
magic_timer/format_seconds.py
sradc/magic-timer
02e95ae7e96787871bd243a2a6a3e14d8615560e
[ "MIT" ]
1
2020-03-06T09:07:54.000Z
2020-03-06T09:07:54.000Z
"""Turn time in seconds into a readable string. """ import math from typing import Union, Tuple TIME_UNITS = ( # Order matters ("days", 24 * 60 * 60), ("hours", 60 * 60), ("minutes", 60), ("seconds", 1), ("milliseconds", 1 / 1000), ("microseconds", 1 / 1000_000), ) def format_seconds(seconds...
31.566667
82
0.637276
255
1,894
4.560784
0.368627
0.046432
0.060189
0.081685
0.135856
0.135856
0.049871
0
0
0
0
0.039106
0.243928
1,894
59
83
32.101695
0.773045
0.2434
0
0.135135
0
0
0.135802
0
0
0
0
0
0
1
0.081081
false
0
0.054054
0
0.351351
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
f9ff74d919dcc09d02f35b81da80d879d34feb93
6,458
py
Python
lookmlgen/view.py
jimmyshah/lookml-gen2
7814d2ea6cf302ef7b937e3365d047b09a9878b4
[ "Apache-2.0" ]
31
2017-04-18T03:40:38.000Z
2022-02-14T23:06:02.000Z
lookmlgen/view.py
jimmyshah/lookml-gen2
7814d2ea6cf302ef7b937e3365d047b09a9878b4
[ "Apache-2.0" ]
368
2017-05-15T07:43:38.000Z
2022-03-28T08:55:21.000Z
lookmlgen/view.py
jimmyshah/lookml-gen2
7814d2ea6cf302ef7b937e3365d047b09a9878b4
[ "Apache-2.0" ]
10
2017-05-23T03:45:23.000Z
2021-08-10T20:19:55.000Z
""" File name: view.py Author: joeschmid Date created: 4/8/17 """ import json from collections import OrderedDict try: from textwrap import indent except ImportError: from .util import indent from .base_generator import BaseGenerator from .field import FieldType class View(BaseGenerator): """...
38.670659
81
0.623877
833
6,458
4.67587
0.170468
0.046727
0.024647
0.019512
0.486008
0.450578
0.391784
0.34095
0.34095
0.306033
0
0.001932
0.278569
6,458
166
82
38.903614
0.834085
0.312945
0
0.238636
0
0
0.10572
0.027999
0
0
0
0
0
1
0.079545
false
0
0.079545
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
e6032655721c54e66ad4bd1357c8c09c9c05f5d4
1,788
py
Python
setup.py
vikingco/django-smsgateway
91675e599a147f4d7e64ff4c4455dbf75ed753d3
[ "BSD-3-Clause" ]
13
2015-03-11T06:55:50.000Z
2022-02-08T16:50:16.000Z
setup.py
vikingco/django-smsgateway
91675e599a147f4d7e64ff4c4455dbf75ed753d3
[ "BSD-3-Clause" ]
17
2015-03-19T12:27:41.000Z
2019-12-09T14:21:21.000Z
setup.py
vikingco/django-smsgateway
91675e599a147f4d7e64ff4c4455dbf75ed753d3
[ "BSD-3-Clause" ]
7
2015-05-15T00:14:49.000Z
2019-06-27T02:46:09.000Z
from setuptools import setup, find_packages from pip._internal.req.req_file import parse_requirements from pip._internal.download import PipSession from os import path from smsgateway import __version__ # Lists of requirements and dependency links which are needed during runtime, testing and setup install_requires =...
33.735849
122
0.73434
212
1,788
5.985849
0.448113
0.070922
0.037825
0.042553
0.340426
0.340426
0.340426
0.193853
0.193853
0.193853
0
0
0.157718
1,788
52
123
34.384615
0.842629
0.125839
0
0.095238
0
0
0.231559
0.028223
0
0
0
0
0
1
0
false
0
0.119048
0
0.119048
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
e603924130bfa4f0b3913ce47ce5a8e5befed2ec
2,394
py
Python
querier/queries/filtr.py
Techtonique/querier
47288fc78273f248199fc67b50e96eaa7dd5441a
[ "BSD-3-Clause-Clear" ]
2
2020-09-18T14:58:28.000Z
2021-07-14T11:57:14.000Z
querier/queries/filtr.py
Techtonique/querier
47288fc78273f248199fc67b50e96eaa7dd5441a
[ "BSD-3-Clause-Clear" ]
null
null
null
querier/queries/filtr.py
Techtonique/querier
47288fc78273f248199fc67b50e96eaa7dd5441a
[ "BSD-3-Clause-Clear" ]
null
null
null
# Authors: Thierry Moudiki # # License: BSD 3 import numpy as np from ..utils import parse_request from ..utils import memoize # filtr(df, 'tip > 5') # req = "(time == 'Dinner') & (day == 'Sun') & (tip>1.5)" # filtr(df, req, limit=3, random=False) # filtr(df, req, limit=4, random=True) # # req = "(tip>1.5)" # filtr...
25.2
110
0.543442
294
2,394
4.394558
0.37415
0.05418
0.069659
0.092879
0.402477
0.402477
0.357585
0.278638
0.278638
0.221362
0
0.014603
0.342105
2,394
94
111
25.468085
0.805714
0.430242
0
0.333333
0
0
0.228029
0
0
0
0
0
0.027778
1
0.027778
false
0
0.083333
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e605177b0e5e0389026fb9fd1bf99e17303d4553
3,310
py
Python
apps/jobs/dota_parse_curated/insights/skill_insights.py
ajkdrag/Dota-2-Pyspark-EDA
aa64cd06248143703792ad668288518804679735
[ "MIT" ]
null
null
null
apps/jobs/dota_parse_curated/insights/skill_insights.py
ajkdrag/Dota-2-Pyspark-EDA
aa64cd06248143703792ad668288518804679735
[ "MIT" ]
null
null
null
apps/jobs/dota_parse_curated/insights/skill_insights.py
ajkdrag/Dota-2-Pyspark-EDA
aa64cd06248143703792ad668288518804679735
[ "MIT" ]
null
null
null
import pyspark.sql.functions as F def top_k_most_picked_skills(match_hero_names_df, ohe_heroes_df, k=5): skills_df = match_hero_names_df.join( ohe_heroes_df, on=[match_hero_names_df.hero == ohe_heroes_df.name] ).select(ohe_heroes_df.columns[3:]) skills = skills_df.columns skills_df_agg = skill...
31.52381
88
0.652266
482
3,310
4.008299
0.149378
0.083851
0.130435
0.140787
0.614907
0.576605
0.468427
0.417184
0.385093
0.374741
0
0.004322
0.231118
3,310
104
89
31.826923
0.754813
0
0
0.159091
0
0
0.08852
0.025076
0
0
0
0
0
1
0.045455
false
0
0.011364
0.011364
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
e6056330329bc68abb7e5b76c93b9c6288226754
9,217
py
Python
expert/layers/divisive_normalisation.py
alexhepburn/expert
546f7452ced2213ef91e5ce6e7456a1668dd9f95
[ "BSD-3-Clause" ]
1
2021-04-10T11:34:22.000Z
2021-04-10T11:34:22.000Z
expert/layers/divisive_normalisation.py
alexhepburn/expert
546f7452ced2213ef91e5ce6e7456a1668dd9f95
[ "BSD-3-Clause" ]
null
null
null
expert/layers/divisive_normalisation.py
alexhepburn/expert
546f7452ced2213ef91e5ce6e7456a1668dd9f95
[ "BSD-3-Clause" ]
null
null
null
""" The :mod:`expert.layers.divisive_normalisation` module holds classes of layers for a network that use divisive normalisation. This includes generalised divisive normalisation. """ # Author: Alex Hepburn <alex.hepburn@bristol.ac.uk> # License: new BSD import torch import torch.nn as nn import torch.nn.functional as...
39.728448
79
0.605946
1,127
9,217
4.853594
0.216504
0.040402
0.021938
0.014625
0.193053
0.143693
0.086472
0.064534
0.052102
0.027971
0
0.012658
0.314311
9,217
231
80
39.900433
0.852848
0.45926
0
0.065934
0
0
0.098309
0
0
0
0
0
0.010989
1
0.043956
false
0
0.032967
0
0.10989
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
e606b4f2c79395b331203078985352a2c129c2b0
3,231
py
Python
05/solution.py
Hegemege/advent-of-code-2019
01c2a84fb205069867453f6ba652813a0005fd88
[ "MIT" ]
null
null
null
05/solution.py
Hegemege/advent-of-code-2019
01c2a84fb205069867453f6ba652813a0005fd88
[ "MIT" ]
null
null
null
05/solution.py
Hegemege/advent-of-code-2019
01c2a84fb205069867453f6ba652813a0005fd88
[ "MIT" ]
null
null
null
MAX_INST_PARAM_COUNT = 3 def run_program(memory, input_buffer): pc = 0 while True: result_code, pc_offset = execute_instruction(memory, pc, input_buffer) if result_code == -1: # Halt instruction return if result_code == 0: # Non-jump instructions pc += pc_offs...
31.368932
111
0.647478
427
3,231
4.604215
0.215457
0.106816
0.032553
0.105799
0.354018
0.287386
0.256867
0.236012
0.19532
0.19532
0
0.029943
0.245435
3,231
102
112
31.676471
0.776456
0.056329
0
0.231884
0
0
0.019092
0
0
0
0
0
0
1
0.086957
false
0
0
0.028986
0.231884
0.072464
0
0
0
null
0
0
0
0
0
0
0
0
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
e609e4bd2d6607c75f66f23c28efe8a4fdb25c1b
1,080
py
Python
xxmodularsynth/midi/clock_external.py
xavierxeon-music/MusicTools
05c74218df18c4ee385895b721c7ad24ea0df552
[ "MIT" ]
null
null
null
xxmodularsynth/midi/clock_external.py
xavierxeon-music/MusicTools
05c74218df18c4ee385895b721c7ad24ea0df552
[ "MIT" ]
null
null
null
xxmodularsynth/midi/clock_external.py
xavierxeon-music/MusicTools
05c74218df18c4ee385895b721c7ad24ea0df552
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from rtmidi.midiconstants import SONG_POSITION_POINTER, TIMING_CLOCK, SONG_START, SONG_CONTINUE, SONG_STOP from .clock_abstract import ClockAbstract from .midi_input import MidiInput class ClockExternal(ClockAbstract, MidiInput): def __init__(self, name=None, port=None): ClockAb...
30.857143
106
0.659259
115
1,080
5.886957
0.426087
0.076809
0.075332
0.132939
0
0
0
0
0
0
0
0.009926
0.253704
1,080
34
107
31.764706
0.830025
0.019444
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.125
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
e60bf0fffa5d03c3b96086eba8b1615a72a54c3f
15,002
py
Python
fhir/resources/DSTU2/careplan.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/DSTU2/careplan.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/DSTU2/careplan.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/CarePlan Release: DSTU2 Version: 1.0.2 Revision: 7202 """ from typing import Any, Dict from typing import List as ListType from pydantic import Field, root_validator from . import fhirtypes from .backboneelement import BackboneElement from ....
33.190265
95
0.611318
1,528
15,002
5.965314
0.22644
0.039495
0.061437
0.077126
0.444981
0.357323
0.281404
0.239495
0.229622
0.181349
0
0.001303
0.284029
15,002
451
96
33.263858
0.847314
0.121984
0
0.33526
0
0
0.375916
0.017192
0
0
0
0
0.00289
1
0.00289
false
0
0.017341
0
0.17341
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
e60f46b99d8c8cc0e5235381e1f3fff24068c1ab
19,993
py
Python
cogen/core/sockets.py
ionelmc/cogen
83b0edb88425eba6e5bfda9f1dcd34642517e2a8
[ "MIT" ]
6
2016-01-22T09:42:45.000Z
2020-11-28T14:00:25.000Z
cogen/core/sockets.py
ionelmc/cogen
83b0edb88425eba6e5bfda9f1dcd34642517e2a8
[ "MIT" ]
1
2017-02-16T15:20:11.000Z
2017-02-16T22:50:41.000Z
cogen/core/sockets.py
ionelmc/python-cogen
83b0edb88425eba6e5bfda9f1dcd34642517e2a8
[ "MIT" ]
null
null
null
""" Socket-only coroutine operations and `Socket` wrapper. Really - the only thing you need to know for most stuff is the :class:`~cogen.core.sockets.Socket` class. """ #TODO: how to deal with requets that have unicode params __all__ = [ 'getdefaulttimeout', 'setdefaulttimeout', 'Socket', 'SendFile', 'Re...
32.991749
92
0.553644
2,294
19,993
4.687446
0.178727
0.017112
0.009207
0.009765
0.317865
0.274156
0.254069
0.206175
0.149912
0.149912
0
0.005374
0.348472
19,993
605
93
33.046281
0.820129
0.278447
0
0.415301
0
0
0.041717
0
0
0
0
0.001653
0.008197
1
0.15847
false
0.002732
0.008197
0.021858
0.327869
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
e6170d2f693f08c4d21d708512f6fdcb2389cdda
1,183
py
Python
scripts/update_readme_metrics.py
ygormutti/executor-exporter
4b985fdf03cbf0515b912aa9631c3c8f0c81a461
[ "Apache-2.0" ]
1
2022-02-24T02:21:14.000Z
2022-02-24T02:21:14.000Z
scripts/update_readme_metrics.py
ygormutti/executor-exporter
4b985fdf03cbf0515b912aa9631c3c8f0c81a461
[ "Apache-2.0" ]
null
null
null
scripts/update_readme_metrics.py
ygormutti/executor-exporter
4b985fdf03cbf0515b912aa9631c3c8f0c81a461
[ "Apache-2.0" ]
null
null
null
from sys import argv from executor_exporter.exporter import metrics def update_readme_metrics(readme_path): columns = ("Name", "Type", "Labels", "Description") sep = " | " table_lines = [sep.join(columns), sep.join(["---"] * len(columns))] for metric in metrics: table_lines.append( ...
26.288889
71
0.540997
123
1,183
4.918699
0.357724
0.109091
0.06281
0.082645
0.095868
0
0
0
0
0
0
0.002581
0.344886
1,183
44
72
26.886364
0.778065
0
0
0
0
0
0.059172
0
0
0
0
0
0
1
0.028571
false
0
0.057143
0
0.085714
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
e61732e97bfa8fdbdf35bca08255c56c7737afe4
1,717
py
Python
accounts/migrations/0002_auto_20160226_1548.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
15
2015-02-10T21:16:31.000Z
2021-03-25T16:46:20.000Z
accounts/migrations/0002_auto_20160226_1548.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
4
2021-02-10T15:42:08.000Z
2022-03-11T23:20:38.000Z
accounts/migrations/0002_auto_20160226_1548.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
6
2016-07-10T14:20:48.000Z
2022-01-19T18:34:02.000Z
import accounts.models import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AlterModelManagers( name='hierarchicuser', managers=[ ...
42.925
409
0.630169
173
1,717
6.132948
0.49711
0.084826
0.094251
0.109331
0.177191
0.177191
0
0
0
0
0
0.008449
0.241701
1,717
39
410
44.025641
0.806452
0
0
0.371429
0
0
0.293535
0
0
0
0
0
0
1
0
false
0
0.085714
0
0.171429
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
e618960b87b4b729b558ed9c9d5f90f4d0854b6a
8,575
py
Python
danceschool/private_lessons/forms.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
32
2017-09-12T04:25:25.000Z
2022-03-21T10:48:07.000Z
danceschool/private_lessons/forms.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
97
2017-09-01T02:43:08.000Z
2022-01-03T18:20:34.000Z
danceschool/private_lessons/forms.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
19
2017-09-26T13:34:46.000Z
2022-03-21T10:48:10.000Z
from django import forms from django.utils.translation import gettext_lazy as _ from django.conf import settings from django.core.exceptions import ValidationError from datetime import datetime, timedelta from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit from danceschool.c...
38.977273
102
0.661574
901
8,575
6.169811
0.310766
0.021587
0.037417
0.004317
0.251124
0.229897
0.216226
0.216226
0.216226
0.216226
0
0.000455
0.23137
8,575
219
103
39.155251
0.842968
0.056443
0
0.204545
0
0
0.201319
0.025134
0
0
0
0
0
1
0.028409
false
0
0.068182
0.011364
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
e61a46397ce546d99911d246529ba90ca1cf69a8
32,292
py
Python
engine/modules.py
scofield7419/HeSyFu
cc06a644918d65aa898f65348077f3d9a3e5252b
[ "Apache-2.0" ]
1
2021-11-04T02:31:39.000Z
2021-11-04T02:31:39.000Z
engine/modules.py
scofield7419/HeSyFu
cc06a644918d65aa898f65348077f3d9a3e5252b
[ "Apache-2.0" ]
null
null
null
engine/modules.py
scofield7419/HeSyFu
cc06a644918d65aa898f65348077f3d9a3e5252b
[ "Apache-2.0" ]
2
2021-12-28T03:38:37.000Z
2021-12-29T12:56:41.000Z
import torch import torch.nn as nn from torch.nn.parameter import Parameter from typing import List, Tuple, Dict import numpy as np from torch.autograd import Variable class DepGCN(nn.Module): """ Label-aware Dependency Convolutional Neural Network Layer """ def __init__(self, dep_num, dep_dim, in_fe...
38.488677
120
0.580515
4,207
32,292
4.180414
0.091752
0.005572
0.009154
0.011145
0.428328
0.352419
0.312674
0.241769
0.206004
0.188662
0
0.015848
0.306299
32,292
838
121
38.534606
0.769251
0.097021
0
0.170178
0
0
0.015336
0
0
0
0
0
0
1
0.047002
false
0.003241
0.009724
0.001621
0.121556
0.001621
0
0
0
null
0
0
0
0
0
0
0
0
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
e61d028876011792c07b86f917e40c7cc75e894b
2,293
py
Python
src/ScreenCapLibrary/utils.py
davesliu/ScreenCapLibrary
b5537c44c740e0f43e424fb0028dbcfd0e5b0557
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ScreenCapLibrary/utils.py
davesliu/ScreenCapLibrary
b5537c44c740e0f43e424fb0028dbcfd0e5b0557
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ScreenCapLibrary/utils.py
davesliu/ScreenCapLibrary
b5537c44c740e0f43e424fb0028dbcfd0e5b0557
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
31.410959
81
0.647187
331
2,293
4.39577
0.416918
0.049485
0.027491
0.057732
0.190378
0.190378
0.190378
0.131959
0.131959
0.131959
0
0.038439
0.262538
2,293
72
82
31.847222
0.821999
0.418229
0
0.242424
0
0
0.144871
0
0
0
0
0
0
1
0.181818
false
0
0.030303
0
0.424242
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6230fc750b387220c642ab851a058153bb25082
7,206
py
Python
pybilt/common/gaussian.py
blakeaw/ORBILT
ed402dd496534dccd00f3e75b57007d944c58c1d
[ "MIT" ]
11
2019-07-29T16:21:53.000Z
2022-02-02T11:44:57.000Z
pybilt/common/gaussian.py
blakeaw/ORBILT
ed402dd496534dccd00f3e75b57007d944c58c1d
[ "MIT" ]
11
2019-05-15T09:30:05.000Z
2021-07-19T16:49:59.000Z
pybilt/common/gaussian.py
blakeaw/ORBILT
ed402dd496534dccd00f3e75b57007d944c58c1d
[ "MIT" ]
9
2019-08-12T11:14:45.000Z
2020-12-22T18:22:55.000Z
"""Define Gaussian function objects. This module defines the Gaussian class and the GaussianRange class. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from builtins import object import numpy as np from six.moves import range class Gaussian(object...
30.927039
79
0.592007
972
7,206
4.305556
0.159465
0.073596
0.046595
0.032497
0.598088
0.564636
0.510155
0.45902
0.437276
0.393787
0
0.008871
0.327366
7,206
232
80
31.060345
0.854549
0.503469
0
0.659091
0
0
0
0
0
0
0
0
0
1
0.113636
false
0
0.068182
0
0.318182
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
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
e6257ae02757a301799ad06a407d32569d49a6d5
1,352
py
Python
django_forms/forms_project/forms_project/urls.py
joyliao07/django_review
e4311d2ccbb96646a6867e5fc426ca67a122d7ed
[ "MIT" ]
null
null
null
django_forms/forms_project/forms_project/urls.py
joyliao07/django_review
e4311d2ccbb96646a6867e5fc426ca67a122d7ed
[ "MIT" ]
8
2020-02-12T00:30:10.000Z
2021-06-10T18:16:37.000Z
django_forms/forms_project/forms_project/urls.py
joyliao07/django_review
e4311d2ccbb96646a6867e5fc426ca67a122d7ed
[ "MIT" ]
null
null
null
"""forms_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
39.764706
77
0.697485
193
1,352
4.803109
0.352332
0.05178
0.016181
0.02589
0.126214
0.126214
0.080906
0
0
0
0
0.006987
0.153107
1,352
33
78
40.969697
0.80262
0.465237
0
0
0
0
0.208101
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
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
e625df758f3e2fdaeb576f8377536aeeebd5b8b3
635
py
Python
extractors/folha_news_extractor.py
LorhanSohaky/POOA
c604f03f9b7bbfccecb75a982cc76fe428c36433
[ "MIT" ]
1
2020-12-05T21:01:10.000Z
2020-12-05T21:01:10.000Z
extractors/folha_news_extractor.py
LorhanSohaky/POOA
c604f03f9b7bbfccecb75a982cc76fe428c36433
[ "MIT" ]
null
null
null
extractors/folha_news_extractor.py
LorhanSohaky/POOA
c604f03f9b7bbfccecb75a982cc76fe428c36433
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup from news import News from .abstract_news_extractor import AbstractNewsExtractor class FolhaNewsExtractor(AbstractNewsExtractor): def __init__(self): super().__init__('https://www.folha.uol.com.br') def extract_news(self): news = [] html_...
27.608696
62
0.661417
78
635
5.179487
0.551282
0.039604
0.054455
0.094059
0
0
0
0
0
0
0
0.002028
0.223622
635
23
63
27.608696
0.817444
0
0
0
0
0
0.149371
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0