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
d92522c94e17430f94254dced6800a868fcfd052
30,022
py
Python
transfer/trainers.py
0e4e6d01/non-parallel-text-style-transfer-using-self-attn-discriminator
c24a47cc96033cf960ed272810b9b7226f25e899
[ "Apache-2.0" ]
null
null
null
transfer/trainers.py
0e4e6d01/non-parallel-text-style-transfer-using-self-attn-discriminator
c24a47cc96033cf960ed272810b9b7226f25e899
[ "Apache-2.0" ]
null
null
null
transfer/trainers.py
0e4e6d01/non-parallel-text-style-transfer-using-self-attn-discriminator
c24a47cc96033cf960ed272810b9b7226f25e899
[ "Apache-2.0" ]
null
null
null
import os import time import csv import pickle import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data.dataloader import DataLoader from torch.nn.utils import clip_grad_norm_ as clip_grad_norm from sklearn.metrics import accuracy_score import matplotlib.pyplot as plt...
42.047619
112
0.558824
3,779
30,022
4.111934
0.082826
0.024712
0.020593
0.015316
0.595083
0.507047
0.433297
0.380784
0.368042
0.336122
0
0.011509
0.340117
30,022
713
113
42.106592
0.772853
0.05053
0
0.337413
0
0
0.087746
0.021303
0
0
0
0
0.003497
1
0.02972
false
0.001748
0.026224
0
0.08042
0.078671
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d925f20fe6fe0eccd5e8c08b7081757ad19c44be
3,414
py
Python
privatefsbot.py
l0k9j8/fstgbot
6b20d28466ecc97e09f0a3919d43a3c4d1a82357
[ "MIT" ]
null
null
null
privatefsbot.py
l0k9j8/fstgbot
6b20d28466ecc97e09f0a3919d43a3c4d1a82357
[ "MIT" ]
null
null
null
privatefsbot.py
l0k9j8/fstgbot
6b20d28466ecc97e09f0a3919d43a3c4d1a82357
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) from telegram import Updater from commands import history, cat, cd, get, ls, pwd, save from sett...
34.14
102
0.668131
425
3,414
5.174118
0.211765
0.147794
0.077308
0.086403
0.46703
0.387904
0.352433
0.318781
0.318781
0.295589
0
0.001826
0.198008
3,414
99
103
34.484848
0.801315
0.012302
0
0.273973
0
0
0.083383
0
0
0
0
0
0
1
0.136986
false
0
0.068493
0
0.205479
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9299b500db19594cc491478d54c215f25629150
670
py
Python
app/platform.py
edwarts/igenweb_supplier
90e03b7acdedf65ae6b338d39b067bd4d1c0eaad
[ "MIT" ]
null
null
null
app/platform.py
edwarts/igenweb_supplier
90e03b7acdedf65ae6b338d39b067bd4d1c0eaad
[ "MIT" ]
null
null
null
app/platform.py
edwarts/igenweb_supplier
90e03b7acdedf65ae6b338d39b067bd4d1c0eaad
[ "MIT" ]
null
null
null
import os from config import config def getpath(path): base_path = os.path.join(config.upload_path, 'app', 'static', 'upload') UPLOAD_LICENCE_FOLDER = os.path.join(base_path, 'licence') UPLOAD_COVER_FOLDER = os.path.join(base_path, 'cover') UPLOAD_PIECE_FOLDER = os.path.jo...
31.904762
65
0.658209
86
670
4.872093
0.244186
0.095465
0.119332
0.152745
0.229117
0.229117
0
0
0
0
0
0
0.237313
670
20
66
33.5
0.819961
0
0
0
0
0
0.097015
0
0
0
0
0
0
1
0.055556
false
0
0.111111
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
d92ba4c735d6a176f4e2696a38a3cab4031d7e30
5,551
py
Python
csvfit/fitpt.py
hanKo91/csvfit
0b07929235f0531ea3b21df2d550390f680edfcf
[ "MIT" ]
null
null
null
csvfit/fitpt.py
hanKo91/csvfit
0b07929235f0531ea3b21df2d550390f680edfcf
[ "MIT" ]
null
null
null
csvfit/fitpt.py
hanKo91/csvfit
0b07929235f0531ea3b21df2d550390f680edfcf
[ "MIT" ]
null
null
null
from click.exceptions import FileError from scipy.optimize import curve_fit import matplotlib.pyplot as plt from . import util import numpy as np import click import sys import csv import os def pt1(t, K, T): """ time-domain solution/formula for a first-order/pt1 system Args: t (float): time K (float): ...
27.755
110
0.611421
914
5,551
3.588621
0.175055
0.015854
0.017073
0.017073
0.568293
0.564329
0.532927
0.480488
0.480488
0.427439
0
0.014362
0.222302
5,551
199
111
27.894472
0.745425
0.233291
0
0.277778
0
0
0.102902
0.013655
0
0
0
0
0
1
0.074074
false
0
0.083333
0
0.231481
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d92e5de5ecf3982b6bb7d90e259217262a07f9b5
4,435
py
Python
wireless_emulator/cli.py
Melacon/OpenYuma_WE
f43a25cf99444c29d9fbadfe336182d60e1bc3f4
[ "Apache-2.0" ]
1
2017-02-24T09:30:21.000Z
2017-02-24T09:30:21.000Z
wireless_emulator/cli.py
Melacon/OpenYuma_WE
f43a25cf99444c29d9fbadfe336182d60e1bc3f4
[ "Apache-2.0" ]
null
null
null
wireless_emulator/cli.py
Melacon/OpenYuma_WE
f43a25cf99444c29d9fbadfe336182d60e1bc3f4
[ "Apache-2.0" ]
2
2018-06-21T13:23:08.000Z
2021-04-01T06:35:16.000Z
from cmd import Cmd import sys from select import poll, POLLIN import string from subprocess import call from wireless_emulator import * from wireless_emulator.clean import cleanup class CLI(Cmd): prompt = 'WirelessTransportEmulator>' identchars = string.ascii_letters + string.digits + '_' + '-' def __in...
39.247788
112
0.530778
460
4,435
5.05
0.358696
0.041326
0.032716
0.016358
0.291864
0.249247
0.193715
0.193715
0.193715
0.193715
0
0.002259
0.30124
4,435
112
113
39.598214
0.747338
0.140699
0
0.306818
0
0
0.272139
0.062687
0
0
0
0
0
1
0.113636
false
0.022727
0.079545
0
0.261364
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d931c71fea8c07e381405bd85803e56da95fcf53
755
py
Python
azulejo/test/key_binder.py
johnteslade/azulejo
3b1a35981360513b21f90d96afff10352b6363e6
[ "MIT" ]
3
2015-07-17T09:35:22.000Z
2015-11-15T00:13:32.000Z
azulejo/test/key_binder.py
johnteslade/azulejo
3b1a35981360513b21f90d96afff10352b6363e6
[ "MIT" ]
1
2015-07-17T09:36:45.000Z
2015-07-22T20:20:53.000Z
azulejo/test/key_binder.py
johnteslade/azulejo
3b1a35981360513b21f90d96afff10352b6363e6
[ "MIT" ]
null
null
null
class KeyBinderDummy(object): """Class used to allow keybindings to be caught and to be actioned.""" def __init__(self): self.bindings = [] self.saved_obj = None def bind(self, action, dispatcher, dispatcher_params): """ Bind a key press """ self.bindings.append({ ...
23.59375
74
0.593377
88
755
4.931818
0.465909
0.147465
0.119816
0.059908
0.105991
0
0
0
0
0
0
0.005597
0.290066
755
31
75
24.354839
0.804104
0.181457
0
0
0
0
0.111111
0
0
0
0
0
0.066667
1
0.2
false
0
0
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d93384ace79fad1a67f4aac86155075e4bc1666a
1,179
py
Python
code/at_offer/dynamic_programming/coding_interview47.py
zhangrong1722/interview
187a485de0774561eb843d8ee640236adda97b90
[ "Apache-2.0" ]
2
2020-01-05T07:46:20.000Z
2020-04-17T02:58:13.000Z
code/at_offer/dynamic_programming/coding_interview47.py
zhangrong1722/interview
187a485de0774561eb843d8ee640236adda97b90
[ "Apache-2.0" ]
1
2020-01-05T07:50:26.000Z
2020-04-28T03:50:08.000Z
code/at_offer/dynamic_programming/coding_interview47.py
zhangrong1722/interview
187a485de0774561eb843d8ee640236adda97b90
[ "Apache-2.0" ]
1
2020-04-18T03:58:26.000Z
2020-04-18T03:58:26.000Z
""" 题目:礼物的最大价值 在一个mxn的期盼的每一格都放有一个礼物 每个礼物有一定的价值(价值大于0) 你可以从棋盘的左上角开始拿格子里的礼物 并每次向右或者向下移动一格 直到达到棋盘的右下角 给定一个棋盘及其上面的礼物 请计算你最多能拿到多少价值的礼物 思路:动态规划 动态规划方程 dp[i][j]=max(dp[i-1][j],dp[i][j-1])+arr[i][j] """ class Solution: def GetGiftMaxValue(self, arr): if arr is None or len(arr) == 0: return ...
33.685714
89
0.47922
156
1,179
3.608974
0.346154
0.039076
0.079929
0.031972
0.25222
0.25222
0.152753
0.152753
0.152753
0.110124
0
0.051248
0.354538
1,179
34
90
34.676471
0.688568
0.167091
0
0.25
0
0
0
0
0
0
0
0
0
1
0.041667
false
0.041667
0
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d933e1e2f9d405d172ef31e50f4cff727e9bd7de
218
py
Python
doubanRequest.py
speedsnail99/PythonDouban
c4a556311632c547162589220433ec59a962a2d6
[ "MIT" ]
null
null
null
doubanRequest.py
speedsnail99/PythonDouban
c4a556311632c547162589220433ec59a962a2d6
[ "MIT" ]
null
null
null
doubanRequest.py
speedsnail99/PythonDouban
c4a556311632c547162589220433ec59a962a2d6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : doubanRequest.py # @Author: G # @Date : 2018/8/5 import requests url = 'https://movie.douban.com' doubanText = requests.get(url).text print(doubanText)
12.111111
35
0.642202
30
218
4.666667
0.866667
0
0
0
0
0
0
0
0
0
0
0.038674
0.169725
218
17
36
12.823529
0.734807
0.444954
0
0
0
0
0.206897
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d934ab92936dea1622b31e73b9513677a43d6b45
31,876
py
Python
tests/shop/test_shop_views.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
tests/shop/test_shop_views.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
93
2017-09-01T22:24:10.000Z
2021-12-22T14:07:06.000Z
tests/shop/test_shop_views.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
import json import unittest from flask_caching import Cache from app import app, db from apps.shop.models import ( ShopItems, ShopCategories, ShopItemsCategoriesMapping, ShopItemLogos, ShopItemsURLMapping ) from apps.users.models import Users, UsersAccessTokens, UsersAccessLevels, Use...
39.159705
99
0.513019
3,020
31,876
5.318874
0.103311
0.092448
0.033991
0.038847
0.704787
0.670983
0.621428
0.573679
0.550582
0.538442
0
0.019738
0.369024
31,876
813
100
39.207872
0.778899
0.080405
0
0.558952
0
0
0.141731
0.01389
0
0
0
0
0.165939
1
0.024745
false
0.001456
0.010189
0
0.03639
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d935132553f2baab50f6ba2b6d58b4003ca7df5b
3,728
py
Python
pyinsar/data_import/uavsar.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
8
2019-03-15T19:51:27.000Z
2022-02-16T07:27:36.000Z
pyinsar/data_import/uavsar.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
1
2022-02-08T03:48:56.000Z
2022-02-09T01:33:27.000Z
pyinsar/data_import/uavsar.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
2
2021-01-12T05:32:21.000Z
2021-01-13T08:35:26.000Z
# The MIT License (MIT) # Copyright (c) 2017 Massachusetts Institute of Technology # # Author: Cody Rude # This software has been created in projects supported by the US National # Science Foundation and NASA (PI: Pankratius) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this sof...
36.54902
89
0.635193
519
3,728
4.447013
0.39499
0.058492
0.038995
0.022097
0.118284
0.041594
0
0
0
0
0
0.009648
0.277092
3,728
101
90
36.910891
0.846753
0.489002
0
0.055556
0
0
0.070926
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d936d9d6566232424e349431594f08f1e023591e
1,964
py
Python
api/utils/responses.py
cakedan/files.gg
6d8fc06376a69809c0ae0a56ea2a842d6caddb98
[ "MIT" ]
8
2018-05-03T16:28:30.000Z
2020-02-02T12:22:36.000Z
api/utils/responses.py
cakedan/files.gg
6d8fc06376a69809c0ae0a56ea2a842d6caddb98
[ "MIT" ]
null
null
null
api/utils/responses.py
cakedan/files.gg
6d8fc06376a69809c0ae0a56ea2a842d6caddb98
[ "MIT" ]
1
2019-03-20T23:39:25.000Z
2019-03-20T23:39:25.000Z
import json from urllib.parse import urlencode from flask import Response from werkzeug.http import HTTP_STATUS_CODES class ApiResponse(Response): default_status = 200 default_mimetype = 'application/json' def __init__(self, data=None, status=None, **kwargs): if data is None: if kwa...
28.882353
104
0.59165
232
1,964
4.857759
0.293103
0.053239
0.031943
0.034605
0.030169
0
0
0
0
0
0
0.01796
0.291242
1,964
67
105
29.313433
0.791667
0
0
0.083333
0
0
0.095723
0
0
0
0
0
0
1
0.0625
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d937931645a0b4ee10a45ea07357635f954a0273
16,675
py
Python
example/samgraph/multi_gpu/train_gcn.py
SJTU-IPADS/fgnn-artifacts
c96e7ec8204d767152958dc63a764466e90424fd
[ "Apache-2.0" ]
23
2022-01-25T13:28:51.000Z
2022-03-23T07:05:47.000Z
example/samgraph/multi_gpu/train_gcn.py
SJTU-IPADS/gnnlab
5c73564e4a9bd5deeff7eed0b923c115ccba34d7
[ "Apache-2.0" ]
null
null
null
example/samgraph/multi_gpu/train_gcn.py
SJTU-IPADS/gnnlab
5c73564e4a9bd5deeff7eed0b923c115ccba34d7
[ "Apache-2.0" ]
1
2022-02-28T18:48:56.000Z
2022-02-28T18:48:56.000Z
import argparse import time import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np from dgl.nn.pytorch import GraphConv import dgl.multiprocessing as mp from torch.nn.parallel import DistributedDataParallel import os import sys import samgraph.torch as sam impo...
36.891593
138
0.64054
2,115
16,675
4.715839
0.134752
0.052336
0.048125
0.020453
0.495087
0.434831
0.33086
0.241929
0.177161
0.144676
0
0.009665
0.249175
16,675
451
139
36.973392
0.786981
0.043658
0
0.202381
0
0.008929
0.10284
0.025129
0
0
0
0
0.005952
1
0.020833
false
0
0.044643
0
0.077381
0.029762
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d93c3126662cf31eb885a0986f780983d532d782
3,453
py
Python
src/AIC2018_iamai/ReID/ReID_CNN/logger.py
gordonjun2/CenterTrack
358f94c36ef03b8ae7d15d8a48fbf70fff937e79
[ "MIT" ]
2
2020-04-13T14:06:23.000Z
2020-06-10T08:41:28.000Z
src/AIC2018_iamai/ReID/ReID_CNN/logger.py
gordonjun2/CenterTrack
358f94c36ef03b8ae7d15d8a48fbf70fff937e79
[ "MIT" ]
null
null
null
src/AIC2018_iamai/ReID/ReID_CNN/logger.py
gordonjun2/CenterTrack
358f94c36ef03b8ae7d15d8a48fbf70fff937e79
[ "MIT" ]
null
null
null
import os import pathlib import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.cm as cm import pandas as pd from collections import OrderedDict class Logger: def __init__(self, save_dir, prefix=''): #names = ['epoch', # 'loss', 'loss...
35.96875
94
0.56936
493
3,453
3.84787
0.194726
0.084871
0.056932
0.0369
0.491302
0.405377
0.373221
0.290986
0.290986
0.250923
0
0.011513
0.270489
3,453
95
95
36.347368
0.741564
0.044889
0
0.25974
0
0
0.144985
0
0
0
0
0
0
1
0.090909
false
0
0.103896
0
0.207792
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d93f8a137f8c8b7524ee61b15619bc1ddd81fbf9
1,401
py
Python
src/logistic/logistic_sklearn.py
wenfengand/machine_learning_tools
7233e14ccb2cc32198ee5d73ee2c5952b5947443
[ "MIT" ]
null
null
null
src/logistic/logistic_sklearn.py
wenfengand/machine_learning_tools
7233e14ccb2cc32198ee5d73ee2c5952b5947443
[ "MIT" ]
null
null
null
src/logistic/logistic_sklearn.py
wenfengand/machine_learning_tools
7233e14ccb2cc32198ee5d73ee2c5952b5947443
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.preprocessing import LabelBinarizer from sklearn.linear_model.logistic import LogisticRegression from sklearn.model_selection import train_test_split, cross_val_score from sklearn.metrics import classificat...
35.923077
95
0.797288
198
1,401
5.353535
0.368687
0.051887
0.036792
0.018868
0.066038
0
0
0
0
0
0
0.003167
0.098501
1,401
38
96
36.868421
0.836105
0
0
0
0
0
0.082857
0.016429
0
0
0
0
0
1
0
false
0
0.275862
0
0.275862
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d941561113d1d4744ab96a504558e7c214535b01
1,289
py
Python
code/curvature_and_offset.py
amoi9/advanced-lane-finding
334ebcee8a232e62aa54ed88190dd2333026112c
[ "MIT" ]
null
null
null
code/curvature_and_offset.py
amoi9/advanced-lane-finding
334ebcee8a232e62aa54ed88190dd2333026112c
[ "MIT" ]
null
null
null
code/curvature_and_offset.py
amoi9/advanced-lane-finding
334ebcee8a232e62aa54ed88190dd2333026112c
[ "MIT" ]
null
null
null
import numpy as np from lane_pixel_finder import find_lane_pixels ''' Calculates the curvature of polynomial functions in meters. ''' # Define conversions in x and y from pixels space to meters ym_per_pix = 30/720 # meters per pixel in y dimension xm_per_pix = 3.7/700 # meters per pixel in x dimension def measure_cur...
40.28125
101
0.699767
233
1,289
3.630901
0.364807
0.049645
0.037825
0.037825
0
0
0
0
0
0
0
0.034549
0.191621
1,289
32
102
40.28125
0.777351
0.297905
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
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
d941a0519c73ad134015de68bcfb2d050dd83e9d
816
py
Python
notes/23 - exceptions/basic-input-example.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
3
2022-02-10T19:06:28.000Z
2022-03-25T17:55:56.000Z
notes/23 - exceptions/basic-input-example.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
null
null
null
notes/23 - exceptions/basic-input-example.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
17
2020-09-15T16:40:23.000Z
2022-03-22T17:52:32.000Z
#----------------------------------------------------------------------------- # Name: Catching Exceptions (try-except.py) # Purpose: To provide example of a simple input loop using try-catch # # Author: Mr. Brooks # Created: 01-Oct-2020 # Updated: 01-March-2021 #--------------------------------...
32.64
92
0.502451
93
816
4.408602
0.709677
0.058537
0
0
0
0
0
0
0
0
0
0.029221
0.245098
816
25
93
32.64
0.636364
0.645833
0
0
0
0
0.231047
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d944f0a9c7214dc418886b1718145909d59eb408
2,791
py
Python
python_examples/example_truncated_normal.py
KristerSJakobsson/pygosolnp
5a890d67782ff04f521644daeaef2f7708959e79
[ "BSL-1.0" ]
null
null
null
python_examples/example_truncated_normal.py
KristerSJakobsson/pygosolnp
5a890d67782ff04f521644daeaef2f7708959e79
[ "BSL-1.0" ]
null
null
null
python_examples/example_truncated_normal.py
KristerSJakobsson/pygosolnp
5a890d67782ff04f521644daeaef2f7708959e79
[ "BSL-1.0" ]
null
null
null
############################ # This example shows how to run pygosolnp with Truncated Normal distribution using Numpy and Scipy ############################ from typing import List, Optional # Numpy random has the PCG64 generator which according to some research is better than Mersenne Twister from numpy.random impor...
36.723684
103
0.685776
348
2,791
5.272989
0.431034
0.061035
0.087193
0.039237
0.105722
0.105722
0
0
0
0
0
0.062384
0.230383
2,791
75
104
37.213333
0.791899
0.320315
0
0
0
0
0.004376
0
0
0
0
0
0
1
0.068182
false
0
0.090909
0.022727
0.227273
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d945b415451fdc9d37b82bd626b439e042bbaee1
11,757
py
Python
SAM/Classifiers/classifier_svm.py
lucaspuvis/SAM
159427d0b2a7fdd353b96c13085f926df096f309
[ "CC-BY-4.0" ]
3
2019-05-14T17:22:54.000Z
2020-07-05T15:39:11.000Z
SAM/Classifiers/classifier_svm.py
lucaspuvis/SAM
159427d0b2a7fdd353b96c13085f926df096f309
[ "CC-BY-4.0" ]
null
null
null
SAM/Classifiers/classifier_svm.py
lucaspuvis/SAM
159427d0b2a7fdd353b96c13085f926df096f309
[ "CC-BY-4.0" ]
null
null
null
import argparse, joblib, csv, sys, os import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mpatches import pandas as pd from mpl_toolkits.mplot3d import Axes3D from yellowbrick.text import TSNEVisualizer from sklearn.cluster import KMeans from sklearn.svm import SVC, LinearSVC from sklearn...
34.377193
155
0.623969
1,653
11,757
4.266788
0.238355
0.017865
0.016589
0.008507
0.346519
0.279314
0.243017
0.216929
0.207571
0.171558
0
0.015014
0.25219
11,757
341
156
34.478006
0.787193
0.316662
0
0.278689
0
0
0.054536
0.01614
0
0
0
0
0
1
0.043716
false
0
0.076503
0
0.147541
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d948e42d9fe9ba9b6716af9941792faae40da7f8
1,164
py
Python
build.py
2-propanol/BTF_extractor
0ec5358504ab51aff6256b98f51d29e540012ce8
[ "Zlib" ]
1
2022-02-16T14:53:26.000Z
2022-02-16T14:53:26.000Z
build.py
2-propanol/BTF_extractor
0ec5358504ab51aff6256b98f51d29e540012ce8
[ "Zlib" ]
1
2021-02-05T10:04:20.000Z
2021-04-11T13:45:01.000Z
build.py
2-propanol/BTF_extractor
0ec5358504ab51aff6256b98f51d29e540012ce8
[ "Zlib" ]
1
2021-02-04T04:22:19.000Z
2021-02-04T04:22:19.000Z
import platform from setuptools import Extension import numpy from Cython.Build import cythonize compile_args = [] link_args = [] pf = platform.system() if pf == "Windows": # for MSVC compile_args = ["/std:c++14", "/DNOMINMAX", "/O2", "/openmp"] elif pf == "Darwin": # for clang compile_args = ["-std=...
24.25
87
0.617698
139
1,164
4.899281
0.517986
0.096916
0.061674
0.066079
0.07489
0
0
0
0
0
0
0.019672
0.213918
1,164
47
88
24.765957
0.72459
0.075601
0
0
0
0
0.248582
0.043478
0
0
0
0
0
1
0.030303
false
0
0.121212
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d94b812ea86c3f0c6f03bfe005b3691242fb682f
1,871
py
Python
src/compas_plotters/artists/circleartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_plotters/artists/circleartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_plotters/artists/circleartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
from compas_plotters.artists import Artist from matplotlib.patches import Circle as CirclePatch # from matplotlib.transforms import ScaledTranslation __all__ = ['CircleArtist'] class CircleArtist(Artist): """""" zorder = 1000 def __init__(self, circle, linewidth=1.0, linestyle='solid', facecolor=(1.0, ...
30.672131
135
0.611438
217
1,871
5.119816
0.230415
0.135014
0.070207
0.091809
0.121512
0.061206
0.061206
0.061206
0.061206
0.061206
0
0.022794
0.273116
1,871
60
136
31.183333
0.794118
0.027258
0
0.122449
0
0
0.009382
0
0
0
0
0
0
1
0.102041
false
0
0.040816
0
0.204082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d94bae590f7b253620b6f2a82a919c8745ff9eb2
1,044
py
Python
SortedPriorityQueue.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
2
2019-05-01T04:32:07.000Z
2019-05-04T02:22:16.000Z
SortedPriorityQueue.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
null
null
null
SortedPriorityQueue.py
sidhu177/pythonprog
a75285e9e4d3cd6f1257b9a79dc39e49c68a695d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 18 21:06:14 2018 Taken from Data Structures and Algorithms using Python """ class SortedPriorityQueue(PriorityQueueBase): def __init__(self): self._data = PositionalList() def __len__(self): return len(self._data) def add(self,ke...
29
59
0.579502
131
1,044
4.412214
0.412214
0.124567
0.041522
0.044983
0.249135
0.17301
0.17301
0.17301
0.17301
0.17301
0
0.017956
0.306513
1,044
36
60
29
0.780387
0.109195
0
0.16
0
0
0.049837
0
0
0
0
0
0
1
0.2
false
0
0
0.04
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
d94bb0c3552420db1ae043fe4832aefa03e3c1f7
14,576
py
Python
f5/utils/test/test_iapp_parser.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
f5/utils/test/test_iapp_parser.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
f5/utils/test/test_iapp_parser.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
26.215827
79
0.64565
1,627
14,576
5.590658
0.110018
0.034301
0.05321
0.029244
0.748461
0.691953
0.657432
0.583773
0.557828
0.547713
0
0.001011
0.253224
14,576
555
80
26.263063
0.834635
0.03787
0
0.552017
0
0
0.551788
0.010208
0
0
0
0
0.048832
1
0.048832
false
0
0.004246
0
0.055202
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9514413b1dc12beee51ba849953b233bcf53932
6,217
py
Python
tests/test_redis.py
fedej/aio-rom
e84d55b84ca459b930d0cd86fd33f161cb26c7df
[ "MIT" ]
6
2021-03-22T22:12:34.000Z
2022-02-14T01:30:37.000Z
tests/test_redis.py
fedej/aio-rom
e84d55b84ca459b930d0cd86fd33f161cb26c7df
[ "MIT" ]
52
2021-02-22T16:38:27.000Z
2022-03-07T18:06:18.000Z
tests/test_redis.py
fedej/aio-rom
e84d55b84ca459b930d0cd86fd33f161cb26c7df
[ "MIT" ]
null
null
null
import os import sys from dataclasses import field from typing import List, Optional, Set, cast from unittest import skipUnless from aio_rom import Model from aio_rom.attributes import RedisModelSet if sys.version_info >= (3, 8): from unittest.async_case import IsolatedAsyncioTestCase as TestCase ASYNCTEST =...
33.605405
84
0.618144
821
6,217
4.550548
0.142509
0.044968
0.041756
0.050054
0.442987
0.415418
0.395343
0.327891
0.287473
0.269272
0
0.028646
0.264436
6,217
184
85
33.788043
0.788323
0.007882
0
0.378378
0
0
0.034874
0
0
0
0
0
0.168919
1
0
false
0
0.074324
0
0.155405
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d95365e9560d7743acef72009c98362dad09f3a4
1,514
py
Python
data/transcoder_evaluation_gfg/python/DYNAMIC_PROGRAMMING_SET_17_PALINDROME_PARTITIONING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/DYNAMIC_PROGRAMMING_SET_17_PALINDROME_PARTITIONING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/DYNAMIC_PROGRAMMING_SET_17_PALINDROME_PARTITIONING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( str ) : n = len ( str ) C = [ [ 0 for i in range ( n ) ] for i in range ( n ) ] P = [ [ False for i in ...
29.115385
97
0.402246
207
1,514
2.859903
0.328502
0.094595
0.060811
0.111486
0.165541
0.14527
0.118243
0.081081
0.081081
0.081081
0
0.086705
0.428666
1,514
52
98
29.115385
0.597688
0.122193
0
0.047619
0
0
0.067322
0
0
0
0
0
0
1
0.02381
false
0
0
0
0.047619
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d955de847bc6455510ab5fae7ec28c13dd87bbec
1,201
py
Python
Algorithms/0033_Search_in_Rotated_Sorted_Array/Python/Search_in_Rotated_Sorted_Array_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0033_Search_in_Rotated_Sorted_Array/Python/Search_in_Rotated_Sorted_Array_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0033_Search_in_Rotated_Sorted_Array/Python/Search_in_Rotated_Sorted_Array_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
# Space: O(1) # Time: O(logn) class Solution: def search(self, nums, target): length = len(nums) if length == 0: return -1 if length == 1: return 0 if nums[0] == target else -1 # First, find out the actual end point of sorted array left, right = 0, length - 1 whil...
27.930233
85
0.507077
150
1,201
4
0.28
0.075
0.093333
0.056667
0.153333
0.066667
0
0
0
0
0
0.026243
0.397169
1,201
42
86
28.595238
0.802486
0.111574
0
0.172414
0
0
0
0
0
0
0
0
0
1
0.068966
false
0
0
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d959215b82b03d107b269df9d66aba263c6dfe42
7,807
py
Python
nxs_libs/interface/workload_manager/simple_policy.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
5
2022-03-23T21:27:42.000Z
2022-03-24T19:57:27.000Z
nxs_libs/interface/workload_manager/simple_policy.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
null
null
null
nxs_libs/interface/workload_manager/simple_policy.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
1
2022-03-23T21:27:44.000Z
2022-03-23T21:27:44.000Z
import time import numpy as np from typing import Dict, List, Tuple from nxs_libs.interface.workload_manager import ( NxsBaseWorkloadManagerPolicy, ) from nxs_types.frontend import FrontendModelPipelineWorkloadReport from nxs_types.message import ( NxsMsgPinWorkload, NxsMsgType, NxsMsgReportInputWorkloa...
35.811927
140
0.608685
800
7,807
5.7525
0.13375
0.082573
0.049978
0.017384
0.562364
0.511082
0.473707
0.473707
0.473707
0.473707
0
0.011293
0.296785
7,807
217
141
35.976959
0.826958
0.103625
0
0.473333
0
0.006667
0.06594
0.040998
0
0
0
0
0
1
0.08
false
0
0.046667
0
0.173333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d95e1a45cff563a0bc7667c6cb86319a45a18004
23,258
py
Python
examples/grid_convergence.py
H0R5E/SNL-Delft3D-CEC-Verify
234c0acead13c74bad2979b300671733c7b184f7
[ "MIT" ]
null
null
null
examples/grid_convergence.py
H0R5E/SNL-Delft3D-CEC-Verify
234c0acead13c74bad2979b300671733c7b184f7
[ "MIT" ]
2
2021-12-10T17:17:21.000Z
2022-02-22T00:25:15.000Z
examples/grid_convergence.py
H0R5E/SNL-Delft3D-CEC-Verify
234c0acead13c74bad2979b300671733c7b184f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import uuid import platform import warnings from pathlib import Path from collections import defaultdict from dataclasses import replace import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt from convergence import Convergence from snl_d3d_cec_veri...
36.003096
79
0.551896
2,686
23,258
4.567386
0.160834
0.018585
0.027388
0.014998
0.473264
0.422563
0.359798
0.314232
0.304777
0.272742
0
0.0184
0.350374
23,258
645
80
36.058915
0.793567
0.046436
0
0.264706
0
0
0.20645
0.023802
0
0
0
0
0
1
0.024887
false
0
0.040724
0
0.08371
0.020362
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d95e400e7414be6bd28582167c1534a6fade0266
15,236
py
Python
GLM/GLM_Model/GLM_Model_GP.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
9
2020-11-20T17:43:36.000Z
2021-02-26T22:18:59.000Z
GLM/GLM_Model/GLM_Model_GP.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
1
2021-02-04T13:51:17.000Z
2021-02-04T23:56:07.000Z
GLM/GLM_Model/GLM_Model_GP.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
1
2020-11-22T19:36:35.000Z
2020-11-22T19:36:35.000Z
import numpy as np import matplotlib.pyplot as plt import torch import scipy from GLM.GLM_Model import GLM_Model, PyTorchObj from scipy.optimize import minimize, Bounds from tqdm import tqdm class GLM_Model_GP(GLM_Model.GLM_Model): def __init__(self, params): super().__init__(params) self.kernel...
46.169697
174
0.616894
1,959
15,236
4.509954
0.127106
0.044143
0.037351
0.049802
0.68987
0.617091
0.559932
0.535031
0.498585
0.485456
0
0.007089
0.277829
15,236
329
175
46.31003
0.795874
0.051523
0
0.448133
0
0
0.03686
0.004365
0
0
0
0.00304
0
1
0.091286
false
0
0.029046
0
0.161826
0.012448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d96094c005965d2c5403a91fbbccf6c6f031c21a
4,303
py
Python
src/coreclr/scripts/antigen_unique_issues.py
KirillOsenkov/runtime
11742903dcc40a55e8688a1c61291459215f8ed0
[ "MIT" ]
1
2021-06-18T04:59:29.000Z
2021-06-18T04:59:29.000Z
src/coreclr/scripts/antigen_unique_issues.py
KirillOsenkov/runtime
11742903dcc40a55e8688a1c61291459215f8ed0
[ "MIT" ]
1
2021-11-11T02:02:54.000Z
2021-11-13T00:05:50.000Z
src/coreclr/scripts/antigen_unique_issues.py
KirillOsenkov/runtime
11742903dcc40a55e8688a1c61291459215f8ed0
[ "MIT" ]
1
2021-12-03T00:19:45.000Z
2021-12-03T00:19:45.000Z
#!/usr/bin/env python3 # ## Licensed to the .NET Foundation under one or more agreements. ## The .NET Foundation licenses this file to you under the MIT license. # ## # Title: antigen_unique_issues.py # # Notes: # # Script to identify unique issues from all partitions and print them on console. # ######################...
36.466102
166
0.563096
455
4,303
5.087912
0.349451
0.067387
0.032829
0.032397
0.039741
0.033693
0
0
0
0
0
0.004225
0.284918
4,303
117
167
36.777778
0.748131
0.182198
0
0.033333
0
0.016667
0.152267
0.047488
0
0
0
0
0.116667
1
0.05
false
0
0.083333
0
0.183333
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d96292f6031d95ffe48e989555808517308f5c23
35,592
py
Python
titer_model/implementation-nextstrain-augur/base/process.py
blab/dengue
5eacc47fbd77c59e7342d5be4aa81f7d3b4ff0bf
[ "CC-BY-4.0", "MIT" ]
4
2019-03-31T22:03:48.000Z
2020-06-16T21:04:24.000Z
titer_model/implementation-nextstrain-augur/base/process.py
emmahodcroft/dengue-antigenic-dynamics
5eacc47fbd77c59e7342d5be4aa81f7d3b4ff0bf
[ "CC-BY-4.0", "MIT" ]
4
2018-10-12T02:13:10.000Z
2019-07-24T02:44:53.000Z
titer_model/implementation-nextstrain-augur/base/process.py
emmahodcroft/dengue-antigenic-dynamics
5eacc47fbd77c59e7342d5be4aa81f7d3b4ff0bf
[ "CC-BY-4.0", "MIT" ]
5
2018-09-10T23:14:09.000Z
2020-12-27T20:57:34.000Z
from __future__ import division, print_function import argparse import sys, os, time, gzip, glob from collections import defaultdict from base.config import combine_configs from base.io_util import make_dir, remove_dir, tree_to_json, write_json, myopen from base.sequences_process import sequence_set from base.utils imp...
46.464752
158
0.595274
4,243
35,592
4.841857
0.151544
0.021417
0.017718
0.006231
0.297849
0.210524
0.164768
0.138143
0.11692
0.106698
0
0.004458
0.300489
35,592
765
159
46.52549
0.820701
0.143515
0
0.19145
0
0
0.129098
0.009005
0
0
0
0
0.039033
1
0.04461
false
0.005576
0.042751
0.001859
0.130112
0.01487
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9629e18c5a751f1f05e83298b1aeab4711e6438
1,777
py
Python
nodux_contabilidad/nodux_contabilidad/doctype/nodux_item_price/nodux_item_price.py
jessica-tandazo/nodux_contabilidad
a9f853e167160b1d883b937d2edbf354fd14d144
[ "MIT" ]
null
null
null
nodux_contabilidad/nodux_contabilidad/doctype/nodux_item_price/nodux_item_price.py
jessica-tandazo/nodux_contabilidad
a9f853e167160b1d883b937d2edbf354fd14d144
[ "MIT" ]
null
null
null
nodux_contabilidad/nodux_contabilidad/doctype/nodux_item_price/nodux_item_price.py
jessica-tandazo/nodux_contabilidad
a9f853e167160b1d883b937d2edbf354fd14d144
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, nodux and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import throw, _ class NoduxItemPrice(Document): def validate(self): self.validate_ite...
36.265306
111
0.723692
253
1,777
4.869565
0.256917
0.138799
0.073864
0.064935
0.355519
0.293019
0.252435
0.228084
0.228084
0.228084
0
0.00712
0.130557
1,777
48
112
37.020833
0.790291
0.216657
0
0
0
0
0.204776
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d96823b574d707b8c5884043e9c5fc59a212d82c
1,900
py
Python
ebr_board/database/queries.py
eugene-davis/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
null
null
null
ebr_board/database/queries.py
eugene-davis/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
4
2019-08-02T09:35:51.000Z
2019-08-05T04:45:47.000Z
ebr_board/database/queries.py
LaudateCorpus1/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
1
2021-09-14T03:58:40.000Z
2021-09-14T03:58:40.000Z
""" Query functions to run against ElasticSearch """ # pylint: disable=invalid-name from ebr_connector.schema.build_results import BuildResults detailed_build_info = { "includes": [ "br_build_date_time", "br_job_name", "br_job_url_key", "br_source", "br_build_id_key", ...
31.666667
113
0.647895
238
1,900
4.962185
0.436975
0.047417
0.066046
0.050804
0.078747
0.04403
0
0
0
0
0
0.003487
0.245263
1,900
59
114
32.20339
0.820084
0.315789
0
0.102564
0
0
0.291801
0.124598
0
0
0
0
0
1
0.025641
false
0.025641
0.025641
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d96a378a19360aa836edef6494a1d0f976078638
4,714
py
Python
src/scripts/vnet/uri/dummy_app.py
amithbraj/vpp
edf1da94dc099c6e2ab1d455ce8652fada3cdb04
[ "Apache-2.0" ]
751
2017-07-13T06:16:46.000Z
2022-03-30T09:14:35.000Z
src/scripts/vnet/uri/dummy_app.py
amithbraj/vpp
edf1da94dc099c6e2ab1d455ce8652fada3cdb04
[ "Apache-2.0" ]
63
2018-06-11T09:48:35.000Z
2021-01-05T09:11:03.000Z
src/scripts/vnet/uri/dummy_app.py
amithbraj/vpp
edf1da94dc099c6e2ab1d455ce8652fada3cdb04
[ "Apache-2.0" ]
479
2017-07-13T06:17:26.000Z
2022-03-31T18:20:43.000Z
#!/usr/bin/env python3 import socket import sys import time import argparse # action can be reflect or drop action = "drop" test = 0 def test_data (data, n_rcvd): n_read = len (data); for i in range(n_read): expected = (n_rcvd + i) & 0xff byte_got = ord (data[i]) if (byte_got != expe...
33.197183
83
0.591854
635
4,714
4.234646
0.209449
0.027891
0.026776
0.040907
0.427296
0.257717
0.213834
0.195984
0.175902
0.159911
0
0.011491
0.261561
4,714
141
84
33.432624
0.760988
0.071065
0
0.291667
0
0
0.094966
0
0
0
0.001831
0
0
1
0.083333
false
0
0.033333
0
0.133333
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d96a84eccbdb4344152ec7775f2333ab5fdd6d60
2,806
py
Python
getData.py
siddsax/WD-GAN
c5f7d68394ea60760db3eacb5f059ebebef6060d
[ "BSD-3-Clause" ]
null
null
null
getData.py
siddsax/WD-GAN
c5f7d68394ea60760db3eacb5f059ebebef6060d
[ "BSD-3-Clause" ]
null
null
null
getData.py
siddsax/WD-GAN
c5f7d68394ea60760db3eacb5f059ebebef6060d
[ "BSD-3-Clause" ]
null
null
null
import torch from torch.utils import data import numpy as np import os import cv2 import torchvision.transforms as transforms from PIL import Image import random from PIL import ImageFile def get_transform(opt): transform_list = [] if opt.resize_or_crop == 'resize_and_crop': osize = [opt.loadSize_1, op...
35.075
104
0.63186
372
2,806
4.55914
0.268817
0.084316
0.089623
0.136792
0.322524
0.306604
0.288325
0.232901
0.232901
0.159198
0
0.020932
0.250891
2,806
79
105
35.518987
0.785918
0.106914
0
0.118644
0
0
0.071207
0
0
0
0
0
0
1
0.067797
false
0
0.152542
0
0.288136
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d96ff25d9d5722c19fe4236bed106b32c2d92cde
10,795
py
Python
nova/virt/powervm/tasks/network.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,874
2015-01-04T05:18:34.000Z
2022-03-31T03:30:28.000Z
nova/virt/powervm/tasks/network.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/virt/powervm/tasks/network.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
1,996
2015-01-04T15:11:51.000Z
2022-03-31T11:03:13.000Z
# Copyright 2015, 2017 IBM Corp. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
41.519231
79
0.631774
1,408
10,795
4.697443
0.224432
0.045358
0.034472
0.031297
0.310402
0.275627
0.239643
0.194436
0.178561
0.166163
0
0.002378
0.298749
10,795
259
80
41.679537
0.871334
0.313201
0
0.275362
0
0
0.112771
0
0
0
0
0
0
1
0.072464
false
0
0.072464
0
0.224638
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9733cb8ddf1ffbcfc514f4195c8b460a2b0fff8
560
py
Python
typer-cli-python/source_code_step_2/rptodo/cli.py
syberflea/materials
54f44725b40edf00c1b523d7a85b34a85014d7eb
[ "MIT" ]
3,682
2018-05-07T19:45:24.000Z
2022-03-31T15:19:10.000Z
typer-cli-python/source_code_step_2/rptodo/cli.py
sribarrow/materials
c17c4a4d6f8487e59eac1df8c88ca92b73d6d2a5
[ "MIT" ]
148
2018-05-15T21:18:49.000Z
2022-03-21T11:25:39.000Z
typer-cli-python/source_code_step_2/rptodo/cli.py
sribarrow/materials
c17c4a4d6f8487e59eac1df8c88ca92b73d6d2a5
[ "MIT" ]
5,535
2018-05-25T23:36:08.000Z
2022-03-31T16:55:52.000Z
"""This module provides the RP To-Do CLI.""" from typing import Optional import typer from rptodo import __app_name__, __version__ app = typer.Typer() def _version_callback(value: bool) -> None: if value: typer.echo(f"{__app_name__} v{__version__}") raise typer.Exit() @app.callback() def mai...
18.666667
56
0.623214
69
560
4.724638
0.565217
0.042945
0
0
0
0
0
0
0
0
0
0
0.255357
560
29
57
19.310345
0.781775
0.067857
0
0
0
0
0.155039
0
0
0
0
0
0
1
0.1
false
0
0.15
0.05
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
d97515b3fc95c50563dceea347d6cfbeb7c8f9bf
4,629
py
Python
surrortg/devices/relay.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
21
2020-11-03T23:41:56.000Z
2022-03-21T04:11:46.000Z
surrortg/devices/relay.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
5
2021-02-11T14:36:03.000Z
2021-07-20T11:45:07.000Z
surrortg/devices/relay.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
11
2020-11-13T11:14:33.000Z
2022-03-21T04:11:51.000Z
import asyncio import logging import pigpio class Relay: """Simple to use relay class implemented with pigpio :param pin: GPIO pin number :type pin: int :param on_level_low: Determines the logic level of the on-state. If set to True, the relay is on when the GPIO pin state is LOW. De...
28.054545
78
0.597969
639
4,629
4.13302
0.195618
0.054525
0.047709
0.054525
0.330178
0.274896
0.230973
0.10602
0.056797
0.056797
0
0.00314
0.311946
4,629
164
79
28.22561
0.82606
0.242817
0
0.280899
0
0
0.145531
0.008067
0
0
0
0
0.011236
1
0.101124
false
0
0.033708
0
0.179775
0.101124
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d976858493e0b3bdb11753531577c643cf5f3d49
8,322
py
Python
voice.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
null
null
null
voice.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
null
null
null
voice.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
1
2021-12-17T01:23:31.000Z
2021-12-17T01:23:31.000Z
""" MIT License Copyright (c) 2020 ValkyriaKing711 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
32.76378
95
0.577866
921
8,322
5.121607
0.32139
0.02756
0.016536
0.021624
0.226415
0.206063
0.199703
0.186559
0.160271
0.140343
0
0.005332
0.323961
8,322
253
96
32.893281
0.832741
0.131939
0
0.276243
0
0.005525
0.124946
0.017378
0
0
0.003447
0
0
1
0.016575
false
0.01105
0.066298
0.005525
0.127072
0.005525
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d977def1eab47165344401c96a3e6718cbc8e63f
689
py
Python
solutions/Bulls and Cows/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
3
2021-06-06T22:03:15.000Z
2021-06-08T08:49:04.000Z
solutions/Bulls and Cows/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
null
null
null
solutions/Bulls and Cows/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
null
null
null
class Solution: def getHint(self, secret: str, guess: str) -> str: bull = 0 cow = 0 values = dict() for i in range(len(secret)): if secret[i] == guess[i]: bull += 1 elif secret[i] in values: values[secret[i]] += 1 el...
31.318182
54
0.37881
77
689
3.38961
0.324675
0.1341
0.045977
0.084291
0.268199
0.268199
0.268199
0.268199
0.268199
0.268199
0
0.023188
0.499274
689
21
55
32.809524
0.733333
0
0
0.105263
0
0
0.002903
0
0
0
0
0
0
1
0.052632
false
0
0
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
d9789ea5dc5332d1b7a15a1afc6b61a382b8814b
2,392
py
Python
tap_parquet/streams.py
berenddeboer/tap-parquet
d9c50ea92a68b7777e31ca622468e1dadd86d9ce
[ "Apache-2.0" ]
null
null
null
tap_parquet/streams.py
berenddeboer/tap-parquet
d9c50ea92a68b7777e31ca622468e1dadd86d9ce
[ "Apache-2.0" ]
4
2021-04-02T16:32:14.000Z
2021-11-09T22:54:03.000Z
tap_parquet/streams.py
berenddeboer/tap-parquet
d9c50ea92a68b7777e31ca622468e1dadd86d9ce
[ "Apache-2.0" ]
2
2021-11-09T06:44:46.000Z
2021-12-01T12:28:29.000Z
"""Stream class for tap-parquet.""" import requests from copy import deepcopy from pathlib import Path from typing import Any, Dict, Optional, Union, List, Iterable from singer_sdk.streams import Stream from singer_sdk.typing import ( ArrayType, BooleanType, DateTimeType, IntegerType, NumberType,...
31.473684
86
0.637542
285
2,392
5.231579
0.417544
0.032193
0.026828
0.042924
0
0
0
0
0
0
0
0.000567
0.26296
2,392
75
87
31.893333
0.84515
0.134615
0
0.037037
0
0
0.066271
0
0
0
0
0
0
1
0.074074
false
0
0.12963
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d97defe4ab7d19c2df85621955ea08007777df4a
354
py
Python
test/test_format.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2019-07-17T14:38:52.000Z
2019-07-17T14:38:52.000Z
test/test_format.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
null
null
null
test/test_format.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2020-06-03T01:42:17.000Z
2020-06-03T01:42:17.000Z
import unittest from geopy.point import Point from geopy.format import format_degrees class TestFormat(unittest.TestCase): @unittest.skip("") def test_format(self): """ format_degrees """ self.assertEqual( format_degrees(Point.parse_degrees('-13', '19', 0)), ...
19.666667
64
0.584746
39
354
5.179487
0.487179
0.193069
0.049505
0
0
0
0
0
0
0
0
0.043651
0.288136
354
17
65
20.823529
0.757937
0.039548
0
0
0
0
0.057143
0
0
0
0
0
0.1
1
0.1
false
0
0.3
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
d97e9bfb4e01d1a5a972e104691a2c436b4de3ca
653
py
Python
Sorts.py
marinajacks/nowcoder
5fafb9b12f56f111737e56358016206023c8067c
[ "MIT" ]
null
null
null
Sorts.py
marinajacks/nowcoder
5fafb9b12f56f111737e56358016206023c8067c
[ "MIT" ]
null
null
null
Sorts.py
marinajacks/nowcoder
5fafb9b12f56f111737e56358016206023c8067c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Oct 20 20:52:56 2019 @author: 陈彪,版权所有 这个是一个排序算法的总结,将所有的排序算法都重新写一遍,然后我们首先会分析算法的时间 复杂度,然后简单介绍一下这些算法的原理,最后使用python实现,然后我们会使用测试案例 来进行测试。 """ import random '''首先映入眼帘的就是冒泡排序,这是一个让人理解起来最简单的排序算法,这个算法的时间复 杂度是O(N^2),从下面的程序中也能看出来这个算法的时间复杂度确实是O(N^2). ''' def bubble(a): for i in...
15.926829
44
0.580398
90
653
4.122222
0.577778
0.032345
0.024259
0.037736
0.06469
0
0
0
0
0
0
0.043478
0.260337
653
41
45
15.926829
0.724638
0.2634
0
0
0
0
0.052493
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d980d8c3ac914ab7b6744057703f0c8a2e3c1e3d
2,711
py
Python
nederlands.py
rec/neederlands
f5b71a768c9a51a06014a386ffafc8844943e4b2
[ "Unlicense" ]
1
2020-02-05T17:48:22.000Z
2020-02-05T17:48:22.000Z
nederlands.py
rec/nederlands
f5b71a768c9a51a06014a386ffafc8844943e4b2
[ "Unlicense" ]
null
null
null
nederlands.py
rec/nederlands
f5b71a768c9a51a06014a386ffafc8844943e4b2
[ "Unlicense" ]
null
null
null
import string WIKI_BESTAND = '/Users/tom/Downloads/\ nlwiktionary-20191020-pages-articles-multistream-index.txt' WOORD_BESTAND = 'woord-frequenties.txt' SLECHT_BESTAND = 'slechte-woorden.txt' BLACKLIST = {i.strip() for i in open(SLECHT_BESTAND)} AANTAL = 1000000000000000 MIN = 4 MIN_ACHTERVOEGSEL = 4 VOORVOEGSELS = ...
20.231343
75
0.54408
300
2,711
4.83
0.426667
0.008282
0.008282
0.017943
0.023464
0.023464
0
0
0
0
0
0.017186
0.313169
2,711
133
76
20.383459
0.76101
0
0
0.130841
0
0
0.082995
0.007746
0
0
0
0
0
1
0.046729
false
0
0.009346
0
0.065421
0.074766
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d984472a164601e55d0346ed01540ed2b20dc88d
832
py
Python
config/tortoise.py
nythonore/fastapi-async
82f34dd421e573f96af1953cc1f72be565743df8
[ "MIT" ]
null
null
null
config/tortoise.py
nythonore/fastapi-async
82f34dd421e573f96af1953cc1f72be565743df8
[ "MIT" ]
null
null
null
config/tortoise.py
nythonore/fastapi-async
82f34dd421e573f96af1953cc1f72be565743df8
[ "MIT" ]
null
null
null
from tortoise.contrib.fastapi import register_tortoise as config_tortoise from config.settings import settings DB_URL = f'postgres://{settings.DB_USERNAME}:{settings.DB_PASSWORD}@{settings.DB_HOST}:{settings.DB_PORT}/{settings.DB_DATABASE}' TORTOISE_MODULES = ['app.example.model'] TORTOISE_ORM_MODULES = TORTOISE_MOD...
24.470588
129
0.638221
87
832
5.793103
0.436782
0.119048
0.107143
0
0
0
0
0
0
0
0
0
0.251202
832
33
130
25.212121
0.808989
0
0
0
0
0.037037
0.254808
0.140625
0
0
0
0
0
1
0.037037
false
0.037037
0.074074
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d986985c57ee93c51e109add53b8920f894727ed
982
py
Python
setup.py
orange-kao/rpm-s3-mirror
4a08cdb47de33045c5e5bc8be1c5ee17bc169d56
[ "Apache-2.0" ]
null
null
null
setup.py
orange-kao/rpm-s3-mirror
4a08cdb47de33045c5e5bc8be1c5ee17bc169d56
[ "Apache-2.0" ]
4
2020-05-08T03:36:15.000Z
2022-03-31T10:51:18.000Z
setup.py
aiven/rpm-s3-mirror
55f049a92258eed3cc863135a964c10c25a3c25a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/ from setuptools import setup import version version = version.get_project_version("rpm_s3_mirror/version.py") setup( name="rpm_s3_mirror", packages=["rpm_s3_mirror"], version=version, description="Tool for syncing RPM repositories with ...
26.540541
65
0.619145
103
982
5.708738
0.621359
0.05102
0.112245
0.061224
0
0
0
0
0
0
0
0.021622
0.246436
982
36
66
27.277778
0.772973
0.063136
0
0.09375
0
0
0.479303
0.055556
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d987308ee279d5897c812d0ddad5761b6c09fe3e
8,668
py
Python
pendium/filesystem.py
LuRsT/Pendium
f71b3db987853df919c14f0be4238df00852a9a7
[ "Apache-2.0" ]
5
2015-05-07T21:26:06.000Z
2016-07-27T11:41:49.000Z
pendium/filesystem.py
LuRsT/Pendium
f71b3db987853df919c14f0be4238df00852a9a7
[ "Apache-2.0" ]
9
2017-12-21T20:22:16.000Z
2019-07-24T13:04:35.000Z
pendium/filesystem.py
LuRsT/Pendium
f71b3db987853df919c14f0be4238df00852a9a7
[ "Apache-2.0" ]
null
null
null
import codecs from logging import getLogger import os from pendium import app from pendium.plugins import IRenderPlugin from pendium.plugins import ISearchPlugin from yapsy.PluginManager import PluginManager log = getLogger(__name__) # Populate plugins lib_path = os.path.abspath(os.path.dirname(__file__)) manager =...
27.782051
82
0.578565
1,034
8,668
4.72147
0.190522
0.03728
0.040557
0.017206
0.193773
0.122081
0.094224
0.055715
0.032773
0.020074
0
0.002884
0.320028
8,668
311
83
27.871383
0.825416
0.043955
0
0.201794
0
0
0.033015
0
0
0
0
0
0
1
0.103139
false
0.017937
0.035874
0.008969
0.318386
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d988d23ea27ce8a2b5e3d30a08db96c282196fd0
3,957
py
Python
sabcom/helpers.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
6
2020-05-21T11:42:27.000Z
2020-10-20T03:00:22.000Z
sabcom/helpers.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
2
2020-04-08T17:45:37.000Z
2020-09-22T16:13:27.000Z
sabcom/helpers.py
blackrhinoabm/sabcom
ec0d9c37e11a8bd49352539f3f16ef322e1b5cf8
[ "MIT" ]
4
2020-04-10T14:18:34.000Z
2020-10-31T16:18:30.000Z
import random import numpy as np import pandas as pd import math from sklearn import preprocessing import scipy.stats as stats def edge_in_cliq(edge, nodes_in_cliq): if edge[0] in nodes_in_cliq: return True else: return False def edges_to_remove_neighbourhood(all_edges, neighbourhood_density...
39.57
120
0.645438
458
3,957
5.382096
0.312227
0.092495
0.028398
0.061663
0.091684
0.060041
0.060041
0.060041
0.060041
0.060041
0
0.004108
0.261815
3,957
99
121
39.969697
0.839781
0.16275
0
0.063492
0
0
0.116371
0.013745
0
0
0
0
0
1
0.111111
false
0
0.095238
0
0.349206
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d98cbe93e213130d35e4010a52b1592965b94b18
14,115
py
Python
src/matching/games/hospital_resident.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
src/matching/games/hospital_resident.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
src/matching/games/hospital_resident.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
""" The HR solver and algorithm. """ from matching import Game, Matching from matching import Player as Resident from matching.players import Hospital from .util import delete_pair, match_pair class HospitalResident(Game): """ A class for solving instances of the hospital-resident assignment problem (HR). ...
34.426829
80
0.616932
1,646
14,115
5.190765
0.136695
0.022823
0.009129
0.01264
0.384129
0.280197
0.20529
0.168539
0.149813
0.115871
0
0.001533
0.306624
14,115
409
81
34.511002
0.871462
0.365639
0
0.278049
0
0
0.064821
0.010882
0
0
0
0
0
1
0.097561
false
0
0.019512
0
0.209756
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d98e4516cf482bd1a8b30548c1119b56db7376b4
2,931
py
Python
solutions/rank-1/prepare_data.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
48
2020-03-18T11:34:49.000Z
2022-03-31T18:30:00.000Z
solutions/rank-1/prepare_data.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
40
2020-03-24T18:17:51.000Z
2022-03-12T00:30:30.000Z
solutions/rank-1/prepare_data.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
24
2020-04-18T02:52:47.000Z
2022-01-22T19:13:16.000Z
#!/usr/bin/env python # coding: utf-8 # based on public kernel https://www.kaggle.com/corochann/ashrae-feather-format-for-fast-loading import os import random import gc import tqdm import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns def prepare(root, output): train_df ...
40.708333
145
0.716479
445
2,931
4.460674
0.197753
0.095214
0.095718
0.111335
0.609068
0.561713
0.467003
0.416625
0.285139
0.117884
0
0.001974
0.13579
2,931
71
146
41.28169
0.781682
0.107813
0
0
0
0
0.189708
0.070661
0
0
0
0
0
1
0.022222
false
0
0.177778
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
d98fb88b15b7a7bd1330a40dd1ecdb89f69e5b99
23,531
py
Python
models/triangular_lattice.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
1
2020-07-29T06:06:12.000Z
2020-07-29T06:06:12.000Z
models/triangular_lattice.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
null
null
null
models/triangular_lattice.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
null
null
null
import copy import functools import os import numpy as np from scipy import sparse from spinsys import constructors, half, dmrg, exceptions from cffi import FFI class SiteVector(constructors.PeriodicBCSiteVector): def __init__(self, ordered_pair, Nx, Ny): super().__init__(ordered_pair, Nx, Ny) def a...
32.411846
88
0.537164
3,109
23,531
3.900289
0.116115
0.012865
0.011875
0.015834
0.614877
0.578921
0.541069
0.521854
0.507834
0.492495
0
0.013106
0.344992
23,531
725
89
32.456552
0.773633
0.33662
0
0.312694
0
0
0.012049
0.00738
0
0
0
0.001379
0
1
0.133127
false
0
0.021672
0.003096
0.287926
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d99179f5f0c295d6288591b72b99cc96a11e545c
5,223
py
Python
python/tvm/tensor_graph/core2/nn/functional/convolution.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
python/tvm/tensor_graph/core2/nn/functional/convolution.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
null
null
null
python/tvm/tensor_graph/core2/nn/functional/convolution.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
import tvm from tvm.tensor_graph.core2.graph.concrete import Compute, Tensor from .padding import zero_pad2d ###################################################################### # for functional, all states are inputs, data from inside functionals # can only be constants ##########################################...
45.815789
107
0.551216
645
5,223
4.193798
0.141085
0.055453
0.083179
0.041405
0.55268
0.531608
0.509427
0.509427
0.509427
0.502773
0
0.016996
0.301551
5,223
114
108
45.815789
0.724507
0.125407
0
0.7
0
0
0.016571
0
0
0
0
0
0.071429
1
0.185714
false
0
0.042857
0.057143
0.457143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
793f2b848c3758a8f7dae311e7d721594f8e8f09
3,424
py
Python
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
189
2019-05-27T08:20:10.000Z
2022-03-28T09:29:22.000Z
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
60
2019-06-11T15:07:48.000Z
2022-03-25T02:31:23.000Z
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
33
2019-07-03T13:14:24.000Z
2022-02-20T01:07:15.000Z
#! /usr/bin/env python import sys import os version_file = os.path.join( os.path.abspath(os.path.dirname(__file__)), "problog/version.py" ) version = {} with open(version_file) as fp: exec(fp.read(), version) version = version["version"] if __name__ == "__main__" and len(sys.argv) == 1: from problog im...
29.517241
88
0.561332
394
3,424
4.730964
0.388325
0.008584
0.053648
0.055794
0.151824
0.109442
0.109442
0.070815
0.070815
0.070815
0
0.015226
0.290304
3,424
115
89
29.773913
0.751852
0.006133
0
0.168421
0
0
0.313639
0.081717
0
0
0
0
0
1
0.052632
false
0
0.063158
0
0.147368
0.010526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79423433cdcc39041c7fd83b1754e656cc596c82
3,178
py
Python
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import uuid from django.conf import settings from django.contrib.gis.db import models from django.contrib.gis.geos import Point from django.contrib.postgres.fields import JSONField class Factory(models.Model): """Factories that are potential to be illegal.""" # List of fact_type & st...
30.854369
89
0.636249
406
3,178
4.866995
0.421182
0.036437
0.063765
0.08502
0.278846
0.236336
0.219636
0.219636
0.104251
0.060729
0
0.019192
0.22939
3,178
102
90
31.156863
0.787668
0.139711
0
0.226667
0
0
0.050483
0
0
0
0
0
0
1
0.013333
false
0
0.066667
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7943f595c674438a1cfec4698c62343f1a8c742b
656
py
Python
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
1
2020-02-18T00:38:16.000Z
2020-02-18T00:38:16.000Z
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
null
null
null
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
1
2020-02-18T00:39:12.000Z
2020-02-18T00:39:12.000Z
import json as _json import datetime as _datetime def parse_timestamp(dataset, time_format="%Y-%m-%dT%H:%M:%S.000Z"): for d in dataset: d["timestamp"] = _datetime.datetime.strptime(d["timestamp"], time_format) return dataset def load_json(filename, time_format="%Y-%m-%dT%H:%M:%S.000Z"): dictionary ...
29.818182
81
0.660061
91
656
4.56044
0.406593
0.096386
0.053012
0.057831
0.101205
0.101205
0.101205
0.101205
0.101205
0
0
0.015209
0.198171
656
21
82
31.238095
0.773764
0
0
0
0
0
0.14939
0.067073
0
0
0
0
0
1
0.166667
false
0
0.111111
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
79442688528877f19538302cd834c0bc231e8349
959
py
Python
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import copy class Solution(object): """ 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] """ def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ ...
21.795455
55
0.486966
127
959
3.574803
0.401575
0.013216
0.061674
0
0
0
0
0
0
0
0
0.040201
0.377477
959
43
56
22.302326
0.720268
0.168926
0
0.086957
0
0
0.010899
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.347826
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
794467ea5227d786240a4dc2c21fda99810bd1c3
1,162
py
Python
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
20
2017-04-25T21:07:24.000Z
2022-03-30T11:11:47.000Z
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
4
2016-04-06T01:19:27.000Z
2020-09-26T18:38:29.000Z
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
12
2017-04-02T23:10:46.000Z
2022-03-21T03:43:55.000Z
import numpy as np from .logger import log from .array_grid import get_next_grid_dims from .act_on_image import ActOnImage from .array_message import write_conjugated_message_grids from .bpcs_steg import arr_bpcs_complexity def remove_message_from_vessel(arr, alpha, grid_size): messages = [] nfound, nkept, nl...
33.2
101
0.692771
160
1,162
4.83125
0.4375
0.023286
0.028461
0.03881
0
0
0
0
0
0
0
0.016447
0.215146
1,162
34
102
34.176471
0.83114
0
0
0
0
0
0.04475
0
0
0
0
0
0.033333
1
0.1
false
0
0.2
0.033333
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7946dedb29967a5ff96a8d7cd312b2fd2bc51b15
6,859
py
Python
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
3
2020-12-07T04:07:04.000Z
2021-08-19T10:41:08.000Z
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
2
2020-12-10T19:12:02.000Z
2020-12-10T19:12:08.000Z
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
2
2021-04-14T14:32:39.000Z
2021-12-10T10:36:59.000Z
# # Exploration of the crash severity information in CAS data # # In this notebook, we will explore the severity of crashes, as it will be the # target of our predictive models. from pathlib import Path import numpy as np import pandas as pd import scipy.stats as st import matplotlib.pyplot as plt import seaborn as s...
30.896396
85
0.697478
1,064
6,859
4.446429
0.327068
0.018601
0.022194
0.010991
0.146269
0.113295
0.103149
0.103149
0.09089
0.059184
0
0.021118
0.178452
6,859
221
86
31.036199
0.818279
0.460417
0
0.245614
0
0
0.170799
0.006887
0
0
0
0
0
1
0
false
0
0.061404
0
0.061404
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
794737a97c176c9f701f94c89a9d3fa6ea1cba13
601
py
Python
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
import gym def cartpole(): environment = gym.make('CartPole-v1') environment.reset() for i in range(1000): # environment.render() action = environment.action_space.sample() observation, reward, done, info = environment.step(action) print("Step {}:".format(i)) print("...
28.619048
66
0.577371
61
601
5.540984
0.459016
0.065089
0
0
0
0
0
0
0
0
0
0.011161
0.254576
601
20
67
30.05
0.743304
0.033278
0
0
0
0
0.136442
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
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
794855d07b967464fa463b2ba9dd7683a00f2311
3,466
py
Python
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
6
2021-05-09T12:43:37.000Z
2021-12-07T01:56:02.000Z
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
null
null
null
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
null
null
null
# ------------------------------------------------------------ Imports ----------------------------------------------------------- # # System from typing import Optional # Pip from kw3 import WrappedContract, Web3 from kw3.constants import Constants as KW3Constants # Local from ._abi import pancakeswap_factory_abi ...
28.409836
132
0.467398
206
3,466
7.694175
0.291262
0.037855
0.039748
0.04164
0.126183
0.092114
0
0
0
0
0
0.012644
0.246971
3,466
122
133
28.409836
0.594636
0.265147
0
0.308642
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.074074
0.08642
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
794b0eee657db516c725d2d35f15819da5d490ca
17,648
py
Python
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
# The collection of functions for the Boston AirBnB dataset # import necessary libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from pandas.tseries.holiday import USFederalHolidayCalendar as calendar #To check holidays in the U.S import time import copy def load_b...
54.807453
501
0.716228
2,438
17,648
4.889664
0.183757
0.095126
0.099824
0.019126
0.383022
0.28714
0.233957
0.20812
0.178592
0.159718
0
0.016807
0.174014
17,648
321
502
54.978193
0.800988
0.301111
0
0.023529
0
0
0.189481
0.04878
0
0
0
0
0
1
0.041176
false
0
0.041176
0
0.123529
0.023529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
794b69e64ae775672890ac0f8ee3c75b24418261
2,898
py
Python
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
16
2020-04-28T07:03:26.000Z
2022-03-05T14:26:40.000Z
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
14
2020-03-19T04:32:18.000Z
2021-03-05T23:54:47.000Z
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
3
2021-01-19T18:39:00.000Z
2022-02-14T23:51:07.000Z
from typing import List, Any from markdown import Markdown from markdown.extensions import Extension from markdown.blockprocessors import BlockProcessor import re import xml.etree.ElementTree as etree class InfoPanelExtension(Extension): """Markdown extension for rendering the Confluence info panel macro. Only s...
32.931818
103
0.596963
301
2,898
5.644518
0.448505
0.037669
0.05415
0.072984
0.139494
0.10771
0.10771
0
0
0
0
0.046715
0.29089
2,898
87
104
33.310345
0.780049
0.138716
0
0.242424
0
0
0.129019
0.058608
0
0
0
0
0
1
0.075758
false
0
0.090909
0.030303
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
794c1314bf22e9986c1038e23ccfa6cf2ec03b66
5,096
py
Python
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
2
2020-06-27T11:44:19.000Z
2022-01-11T21:23:01.000Z
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
null
null
null
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright 2019 Abe Leite # Based on "Proximal Policy Optimization Algorithms", Schulman et al 2017 # For the benefit of my fellow CSCI-B 659 students # While I hope that this code is helpful I will not vouch for its total accuracy; # my primary aim here is to elucidate the ideas from the paper. i...
40.768
113
0.615385
687
5,096
4.36099
0.28821
0.028037
0.034713
0.036048
0.197597
0.122163
0.082777
0.082777
0.082777
0.082777
0
0.019325
0.279042
5,096
124
114
41.096774
0.796135
0.094388
0
0.05
0
0
0.029052
0.005679
0
0
0
0
0
1
0.06
false
0
0.03
0.01
0.12
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
794c7683b545a543ae42b9c3d18137a15b824634
2,620
py
Python
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
from pytube import YouTube from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from .serializers import YoutubeDLSerializer from .utils import make_time, make_size class YoutubeDL(APIView): serializer_class = YoutubeDLSerializer def post(se...
34.933333
111
0.500763
247
2,620
5.157895
0.327935
0.031397
0.040031
0.040816
0.051805
0
0
0
0
0
0
0.018831
0.412214
2,620
74
112
35.405405
0.808442
0
0
0.032787
0
0
0.083206
0
0
0
0
0
0
1
0.016393
false
0
0.098361
0
0.196721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
794d44a2cc74842f8b8d00f81d2ce675f076304a
5,043
py
Python
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
import json import pandas as pd import numpy as np from typing import Union, List from pathlib import Path from timeit import default_timer as timer from nntrainer import data as nn_data def _time_to_seconds(time_column): return pd.to_timedelta(time_column).dt.total_seconds() class HT100MBaseDataset: """...
37.917293
113
0.628594
646
5,043
4.673375
0.289474
0.036436
0.024843
0.017887
0.109308
0.094733
0.05631
0.05631
0.035773
0.035773
0
0.011463
0.273448
5,043
132
114
38.204545
0.8125
0.197303
0
0.051948
0
0
0.145417
0.012545
0
0
0
0
0
1
0.142857
false
0
0.090909
0.038961
0.376623
0.038961
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
794d94442dfccd9fb0860ed1722ed3107bbed462
1,244
py
Python
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
import sys import re import pandas as pd def combine_otu_tables(path_to_files): with open(path_to_files) as a: filenames = a.read().splitlines() separated = {re.search(r'ERR\d+?(?=_)',x).group(0):pd.read_table(x, sep = '\t', index_col = 1, header = None,engine='python') for x in file...
30.341463
129
0.639871
173
1,244
4.398844
0.445087
0.036794
0.043364
0.047306
0.060447
0
0
0
0
0
0
0.015228
0.208199
1,244
40
130
31.1
0.75736
0.040997
0
0
0
0
0.055462
0
0
0
0
0
0
1
0.068966
false
0
0.103448
0
0.172414
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
794f5243f54f0804ec162bec691a557c23883c30
773
py
Python
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
16
2022-02-11T14:49:04.000Z
2022-03-30T07:33:45.000Z
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
1
2022-02-16T15:23:50.000Z
2022-02-21T15:30:21.000Z
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
1
2022-03-24T10:52:28.000Z
2022-03-24T10:52:28.000Z
import sys sys.path.append("..") import time from charge_controller_tcp_driver.charge_controller_tcp_client_helper import * if __name__ == '__main__': helper = ChargeControllerTCPClientHelper("169.254.43.3", 12500) time.sleep(3) helper.set_pwm(100) print("PWM:", helper.get_pwm()) #time.sleep(10)...
24.15625
78
0.648124
111
773
4.234234
0.315315
0.134043
0.102128
0.144681
0.551064
0.551064
0.514894
0.514894
0.514894
0.417021
0
0.052133
0.181113
773
31
79
24.935484
0.690363
0.276843
0
0.388889
0
0
0.061818
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
794f8be8a7920197768cc08897059ca509f8735d
5,312
py
Python
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
83
2021-08-30T02:50:37.000Z
2022-02-22T09:37:36.000Z
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
2
2021-09-10T08:44:13.000Z
2022-01-23T17:33:35.000Z
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
6
2021-09-10T07:09:41.000Z
2021-11-07T14:31:33.000Z
import os from typing import Text import torch import unittest import torch.nn as nn import torch.optim as optim from allennlp.models import Model from allennlp.data.vocabulary import Vocabulary from zsl_kg.class_encoders.auto_gnn import AutoGNN from zsl_kg.example_encoders.text_encoder import TextEncoder from zsl_kg...
31.247059
77
0.573419
570
5,312
5.12807
0.301754
0.027711
0.015395
0.015737
0.139925
0.119398
0.093055
0.07116
0.07116
0.040369
0
0.012864
0.326807
5,312
169
78
31.431953
0.80453
0.01506
0
0.094891
0
0
0.081324
0.01416
0
0
0
0
0.007299
1
0.029197
false
0
0.116788
0
0.167883
0.021898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79509ae0de663c69b13b3aa40296a01c2a31c785
5,077
py
Python
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
import csv import json import logging import math import random as ran def distance(point1, point2): logging.debug("Args: {0}".format(locals())) if type(point1) != type(point2): logging.warning("Types of given arguments are different: {0} != {1}".format(point1, point2)) logging.debug("Returns: {0}...
32.33758
104
0.554855
670
5,077
4.044776
0.208955
0.038376
0.017712
0.031365
0.279705
0.221402
0.189299
0.135793
0.110701
0.067159
0
0.0234
0.301359
5,077
156
105
32.544872
0.740626
0.020288
0
0.058333
0
0
0.081304
0
0
0
0
0
0
1
0.116667
false
0
0.041667
0.025
0.225
0.008333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79509e0da59087724c7ad32862f4a10871238e6b
4,518
py
Python
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
1
2022-02-20T22:05:26.000Z
2022-02-20T22:05:26.000Z
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
null
null
null
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
null
null
null
import json import subprocess import asyncio from solana.rpc.async_api import AsyncClient from solana.publickey import PublicKey from anchorpy import Program, Provider, Wallet class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '\033[93m' F...
36.144
132
0.588092
477
4,518
5.404612
0.32914
0.046936
0.040341
0.032583
0.204034
0.192397
0.169123
0.134213
0.134213
0.102405
0
0.01275
0.236166
4,518
124
133
36.435484
0.73428
0.0529
0
0.196262
0
0.018692
0.337857
0.140384
0
0
0
0
0
1
0.028037
false
0.037383
0.056075
0
0.233645
0.158879
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
795164e9b019d5e0233e60502428b4c2cb401ddf
4,647
py
Python
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
8
2018-11-18T00:37:25.000Z
2020-12-06T13:17:53.000Z
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
8
2017-08-21T10:07:58.000Z
2020-03-29T18:23:37.000Z
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
1
2021-03-04T17:43:36.000Z
2021-03-04T17:43:36.000Z
import os import glob import shutil import zipfile from functions.game_name_functions import * if (os.getcwd().endswith('scripts')): os.chdir('..') from classes.scraper import * def scrape_csscgc(): # if os.path.exists('tosec\\CSSCGC Games'): # shutil.rmtree('tosec\\CSSCGC Games') s = Scraper() ...
49.967742
114
0.497095
483
4,647
4.641822
0.252588
0.068243
0.049955
0.032114
0.176628
0.135593
0.109723
0.109723
0.109723
0.042819
0
0.012375
0.374005
4,647
93
115
49.967742
0.758336
0.03314
0
0.174419
0
0
0.089329
0.004901
0
0
0
0
0
1
0.011628
false
0
0.069767
0
0.081395
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79526a360c29da4c2b5320e1dc30a9a350d4bff9
5,249
py
Python
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
4
2021-07-20T18:49:44.000Z
2021-10-15T00:58:12.000Z
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
null
null
null
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
2
2022-01-07T17:57:42.000Z
2022-01-13T21:00:20.000Z
# std from typing import Any, Dict, List, Optional, Union # external import pkg_resources import sqlalchemy from sqlalchemy.orm import aliased, Session # molar from molar.backend import schemas from molar.backend.database.utils import sqlalchemy_to_dict INFORMATION_QUERY = open( pkg_resources.resource_filename("...
30.34104
87
0.594589
615
5,249
4.889431
0.209756
0.082142
0.063186
0.034919
0.136016
0.111074
0.027935
0.027935
0.027935
0
0
0.003838
0.30501
5,249
172
88
30.517442
0.82045
0.016003
0
0.052632
0
0
0.040132
0.004847
0
0
0
0
0
1
0.030075
false
0.007519
0.045113
0
0.150376
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
795299febd0881f339bf75a4c01b525d81a4103e
1,089
py
Python
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Role models.""" from dataclasses import dataclass from array import array from .database import Column, Model, SurrogatePK, db, reference_col, relationship from sqlalchemy.dialects.postgresql import ARRAY @dataclass class Role(SurrogatePK, Model): """用户角色信息表""" __tablename__ = "role...
26.560976
81
0.673095
134
1,089
5.238806
0.537313
0.076923
0.039886
0
0
0
0
0
0
0
0
0.012821
0.212121
1,089
40
82
27.225
0.805361
0.176309
0
0
0
0
0.03555
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.916667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79540db7343cd37c04169f2c2a9534f0c0ea7d5c
1,187
py
Python
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
21
2018-01-05T09:24:49.000Z
2021-04-24T03:25:25.000Z
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
1
2019-11-11T18:34:53.000Z
2019-11-13T15:56:10.000Z
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
13
2018-01-05T10:26:47.000Z
2022-01-25T07:48:33.000Z
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm def draw_parabola(steps=50): x = np.linspace(-4, 4, steps) plt.plot(x, x ** 2) plt.axvline(x=0, color='b', linestyle='dashed') def draw_paraboloid(steps=50): fig = plt.figure(figsize=...
27.604651
118
0.57877
215
1,187
3.144186
0.274419
0.029586
0.022189
0.071006
0.43787
0.378698
0.357988
0.357988
0.357988
0.357988
0
0.065288
0.225779
1,187
43
119
27.604651
0.670294
0
0
0.30303
0
0
0.010943
0
0
0
0
0
0
1
0.121212
false
0
0.121212
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7954a7bbe8ccac9a9d76513832ed91b4c1c715ad
3,075
py
Python
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import onegov.core import onegov.org from tests.shared import utils def test_view_permissions(): utils.assert_explicit_permissions(onegov.org, onegov.org.OrgApp) def test_notfound(client): notfound_page = client.get('/foobar', expect_errors=True) assert "Seite nicht gefunden" in notfound_page assert...
27.212389
74
0.67935
392
3,075
5.170918
0.293367
0.057721
0.047361
0.054267
0.325111
0.23483
0.174642
0.091761
0.052294
0
0
0.009592
0.186341
3,075
112
75
27.455357
0.80056
0.023089
0
0.16
0
0
0.272909
0.061979
0
0
0
0
0.28
1
0.106667
false
0
0.04
0
0.146667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
795502273dc48fdf684fe2e0b8c17dbaab75cc3f
8,530
pyw
Python
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import filedialog from Solve_stages import * from Text_stages import * from Analysis_stages import * from Output import * root = tk.Tk() root.title("Cipher program") root.geometry("1500x500") root.state("zoomed") #apparently windows only def getOutputText(): text = "" for sta...
36.609442
149
0.710785
1,164
8,530
5.089347
0.215636
0.054862
0.045915
0.022957
0.292876
0.216577
0.16813
0.124578
0.113774
0.067016
0
0.015551
0.163189
8,530
232
150
36.767241
0.813953
0.095545
0
0.199005
0
0
0.034711
0
0
0
0
0
0
1
0.079602
false
0.00995
0.029851
0
0.114428
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7956dd9954a869adae25776f34d9cfad6f7f2ede
1,912
py
Python
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
from mp.data.pytorch.pytorch_dataset import PytorchDataset from mp.data.datasets.dataset import Instance import copy import torch class DomainPredictionDatasetWrapper(PytorchDataset): r"""Wraps a PytorchDataset to reuse its instances.x and replacing the labels""" def __init__(self, pytorch_ds, target_idx): ...
40.680851
97
0.671548
239
1,912
5.200837
0.41841
0.043443
0.01609
0.030571
0.049879
0.049879
0.049879
0
0
0
0
0.00278
0.247385
1,912
46
98
41.565217
0.861015
0.373954
0
0
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
795999b8a086d2a92c7c0d0019a508d781dcdb36
4,889
py
Python
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
1
2021-07-15T07:05:18.000Z
2021-07-15T07:05:18.000Z
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
2
2021-07-15T06:12:47.000Z
2021-07-16T10:05:36.000Z
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
null
null
null
import pathlib import pandas as pd from palmnet.visualization.utils import get_palminized_model_and_df, get_df import matplotlib.pyplot as plt import numpy as np import logging import plotly.graph_objects as go import plotly.express as px from pprint import pprint as pprint mpl_logger = logging.getLogger('matplotlib'...
40.07377
178
0.607895
617
4,889
4.473258
0.290113
0.071739
0.054348
0.036232
0.243478
0.190942
0.181884
0.131159
0.131159
0.106522
0
0.022867
0.266517
4,889
122
179
40.07377
0.746793
0.074044
0
0.022472
0
0
0.140867
0.072534
0
0
0
0
0
1
0.011236
false
0
0.101124
0
0.11236
0.05618
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
795b1f096f5aa18037e59346d95e4b832947c2de
8,209
py
Python
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import cmath import numpy as np from scipy import integrate from .. import polarization from ...utils import instance from ...patch import jsonpickle class test_polarization(unittest.TestCase): def _equal_params(self, params1, params2): for k, v in params1.items()...
35.081197
83
0.575466
997
8,209
4.564694
0.161484
0.053395
0.088991
0.136454
0.489563
0.383432
0.283894
0.165458
0.13909
0.13909
0
0.028132
0.302838
8,209
233
84
35.23176
0.76708
0.011085
0
0.233696
0
0
0.023921
0.003329
0
0
0
0
0.168478
1
0.081522
false
0
0.043478
0.016304
0.152174
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
795b834e229f484b2777e3dde64e6efd9b1ae8d7
1,166
py
Python
AlphaDDA1/Othello/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
11
2021-11-13T01:43:28.000Z
2021-12-19T06:40:34.000Z
AlphaZero/Othello66/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
null
null
null
AlphaZero/Othello66/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
null
null
null
#--------------------------------------- #Since : 2019/04/24 #Update: 2019/07/25 # -*- coding: utf-8 -*- #--------------------------------------- import numpy as np class RingBuffer: def __init__(self, buf_size): self.size = buf_size self.buf = [] for i in range(self.size): self...
26.5
53
0.482847
149
1,166
3.677852
0.261745
0.131387
0.094891
0.131387
0.498175
0.498175
0.419708
0.419708
0.419708
0.288321
0
0.028025
0.326758
1,166
43
54
27.116279
0.670064
0.116638
0
0.375
0
0
0
0
0
0
0
0
0
1
0.15625
false
0
0.03125
0
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
795f708e3eddaecd36d179568af03258f48e6ef1
8,202
py
Python
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
import itertools import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from scipy.stats import f from scipy.stats import norm class ANOVA: """Analyse DOE experiments using ANOVA. NB: n > 1 for the code to work, where n is the number of repeats. Model: y = y_average i....
42.278351
157
0.617045
1,036
8,202
4.766409
0.214286
0.04192
0.031592
0.020251
0.237141
0.170514
0.113609
0.076347
0.051235
0.051235
0
0.012161
0.268105
8,202
193
158
42.497409
0.810428
0.175933
0
0.136
0
0
0.059467
0
0
0
0
0
0
1
0.088
false
0
0.056
0
0.184
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
795f95b9ee59eba0d720fd1de7316678421773f4
6,010
py
Python
datmo/core/entity/snapshot.py
datmo/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
331
2018-03-30T14:33:59.000Z
2022-01-10T19:43:32.000Z
datmo/core/entity/snapshot.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
274
2018-04-08T17:12:44.000Z
2020-07-29T02:45:22.000Z
datmo/core/entity/snapshot.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
28
2018-05-03T21:57:22.000Z
2020-12-31T04:18:42.000Z
import os from datetime import datetime from datmo.core.util.json_store import JSONStore from datmo.core.util.misc_functions import prettify_datetime, printable_object, format_table class Snapshot(): """Snapshot is an entity object to represent a version of the model. These snapshots are the building blocks ...
38.280255
95
0.621631
747
6,010
4.840696
0.227577
0.033186
0.029038
0.026549
0.333518
0.311394
0.262721
0.235896
0.235896
0.219027
0
0.012829
0.286689
6,010
156
96
38.525641
0.830651
0.419468
0
0.030769
0
0
0.111007
0
0.030769
0
0
0
0
1
0.107692
false
0
0.061538
0.030769
0.276923
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7961d1af5a2c494ba659aefe30c177aba0152b99
3,895
py
Python
ranking/train_LM.py
yzhhome/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
1
2021-12-21T10:50:21.000Z
2021-12-21T10:50:21.000Z
ranking/train_LM.py
kalanile/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
null
null
null
ranking/train_LM.py
kalanile/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
1
2021-12-21T10:50:20.000Z
2021-12-21T10:50:20.000Z
''' @Author: dengzaiyong @Date: 2021-08-21 15:16:08 @LastEditTime: 2021-08-27 19:37:08 @LastEditors: dengzaiyong @Desciption: 训练tfidf, word2vec, fasttext语言模型 @FilePath: /JDQA/ranking/train_LM.py ''' import os from collections import defaultdict from gensim import models, corpora import config import pandas as pd impo...
32.458333
95
0.537869
416
3,895
4.920673
0.362981
0.058622
0.034196
0.046409
0.218368
0.175867
0.09575
0.09575
0.058622
0
0
0.030965
0.353273
3,895
120
96
32.458333
0.781659
0.077279
0
0.026316
0
0
0.098161
0.035078
0
0
0
0
0
1
0.065789
false
0
0.092105
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7962461ca47687b7819e6dc00edee38793e1d6d0
4,680
py
Python
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
null
null
null
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
null
null
null
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
1
2022-03-09T23:46:32.000Z
2022-03-09T23:46:32.000Z
import uuid import datetime import pymysql from tool.Config import Config from tool.Logger import Logger class ImageDAO(object): def __init__(self, connect_pool): self.connect_pool = connect_pool async def userImageExist(self, user_id: str): selectResult = None async with self.conn...
37.142857
115
0.519444
494
4,680
4.813765
0.192308
0.065601
0.023549
0.03238
0.643818
0.623633
0.594617
0.569386
0.513457
0.43524
0
0.003114
0.382479
4,680
125
116
37.44
0.819723
0
0
0.461538
0
0.009615
0.141239
0
0
0
0
0
0
1
0.009615
false
0
0.048077
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7962e2d4ed65e0f87126ca65657b5d805b1ac6cf
2,363
py
Python
profiletool.py
SimpleProxy/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
1
2020-10-21T21:32:42.000Z
2020-10-21T21:32:42.000Z
profiletool.py
kelvesc/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
null
null
null
profiletool.py
kelvesc/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
null
null
null
#!/bin/python3 # -*- coding: utf-8 -*- # file name: profiletool.py # standart libraries from time import sleep from time import process_time_ns as timer_ns # to call the respective routines import subprocess as ps # local imports import pyfactorial as pyf import mathfactorial as mtf def _vector(): return range(...
22.084112
59
0.611934
321
2,363
4.317757
0.29595
0.035354
0.02381
0.058442
0.555556
0.555556
0.477633
0.477633
0.477633
0.477633
0
0.017065
0.25603
2,363
106
60
22.292453
0.771331
0.060093
0
0.514286
0
0
0.216802
0.069106
0
0
0
0
0
1
0.114286
false
0
0.071429
0.042857
0.228571
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7964d5e0d6c5bbff30057dd541992a4595176f15
760
py
Python
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
# Author:Sunny Liu from django.shortcuts import HttpResponse from django.shortcuts import render from django.shortcuts import redirect from urmovie import models from django.views.decorators.csrf import csrf_exempt import hashlib,os """ 内容简介: 1.爬虫情况下,对电影封面的添加 """ @csrf_exempt def uploadImg(request): i...
24.516129
52
0.665789
93
760
5.365591
0.505376
0.08016
0.114228
0.150301
0
0
0
0
0
0
0
0.001684
0.218421
760
31
53
24.516129
0.838384
0.021053
0
0.086957
0
0
0.071429
0
0
0
0
0
0
1
0.086957
false
0
0.26087
0
0.434783
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7964ebe5d975dfd2d7d9cc2c69f05839abcd1197
2,983
py
Python
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
2
2021-05-12T13:36:46.000Z
2021-08-15T10:35:08.000Z
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
1
2021-12-28T12:49:49.000Z
2021-12-28T12:49:49.000Z
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torch.cuda.amp import custom_fwd class BatchReNorm2D(nn.Module): """Batch Re-Normalization Parameters num_features – C from an expected input of size (N, C, H, W) eps – a value added to the denominator for numerical stability. Default: 1e-5 momen...
41.430556
168
0.636272
448
2,983
4.09375
0.299107
0.041985
0.026172
0.028353
0.29771
0.29771
0.249727
0.217012
0.176663
0.134133
0
0.034035
0.251425
2,983
71
169
42.014085
0.78549
0.325176
0
0.05
0
0
0.01593
0
0
0
0
0
0
1
0.075
false
0
0.075
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
7966f849a29e53c40e0aa168b93b3cd8e669d4ec
3,191
py
Python
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
from collections import deque as LL class VM_Manager: def __init__(self): self.s_size = 9 self.p_size = 9 self.w_size = 9 self.PM = [None] * 2**19 # PM[524288] self.D = [[None] * 2**10] * 2**9 # D[1024][512] self.free_frames = LL([i for i in range(2**10)]) ...
27.991228
62
0.531808
506
3,191
3.12253
0.181818
0.055696
0.028481
0.020253
0.375949
0.327848
0.172152
0.060759
0.060759
0
0
0.032543
0.325917
3,191
114
63
27.991228
0.701999
0.007208
0
0.086957
0
0
0.024953
0
0
0
0
0
0
1
0.076087
false
0
0.01087
0
0.152174
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79671fc83f6656f30c6074c1b351a64eeeecad56
3,750
py
Python
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
8
2021-12-23T06:05:00.000Z
2021-12-26T05:39:00.000Z
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
null
null
null
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
2
2021-12-23T06:10:11.000Z
2021-12-23T07:24:28.000Z
import os from flask import session from src.utils.common.common_helper import load_project_encdoing, load_project_model, load_project_pca, \ load_project_scaler, read_config from loguru import logger from from_root import from_root from src.utils.databases.mysql_helper import MySqlHelper from src.preprocessing.pre...
43.604651
117
0.560533
414
3,750
4.89372
0.342995
0.043435
0.032577
0.015795
0.078973
0.026654
0.026654
0.026654
0
0
0
0.009259
0.3376
3,750
85
118
44.117647
0.806361
0.013333
0
0.058824
0
0.014706
0.161704
0.037695
0
0
0
0
0
1
0.014706
false
0.014706
0.147059
0
0.191176
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
796832284ec5beb0d93e3de2098cee7d04cbed89
18,718
py
Python
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
from computer_communication_framework.base_connection import Connection import subprocess import re import datetime class BasePbs(Connection): """ This is meant to be a template to create a connection object for a standard PBS/TORQUE cluster. This inherits from the base_connect.Connection class in base_connecti...
76.713115
884
0.678865
2,811
18,718
4.320527
0.165777
0.017456
0.029642
0.023055
0.497242
0.449238
0.397448
0.356608
0.339481
0.33133
0
0.003625
0.233732
18,718
243
885
77.028807
0.843129
0.737793
0
0
0
0.028571
0.228827
0.018132
0.028571
0
0
0
0
1
0.142857
false
0
0.114286
0
0.4
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
796b67b9479d04170cd02e4d71dc7ae51ab5fc75
13,795
py
Python
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
1
2017-12-01T03:30:34.000Z
2017-12-01T03:30:34.000Z
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
1
2017-11-13T18:46:39.000Z
2017-11-13T18:46:39.000Z
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
null
null
null
import random import re import json from combat import * from travel import * from pdb import set_trace def load_words(path): with open(path, 'r') as f: for line in f: clean_line = line.strip() if clean_line and not clean_line[0] == "#": yield clean_line class Mark...
35.01269
174
0.58137
1,748
13,795
4.497712
0.316362
0.009921
0.0435
0.010684
0.068685
0.022132
0.007123
0
0
0
0
0.002654
0.289888
13,795
393
175
35.101781
0.799918
0.003407
0
0.178161
0
0.048851
0.443288
0.025464
0
0
0
0
0
1
0.100575
false
0
0.020115
0.083333
0.218391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
796c208b5ef0105c3a346b49387aabac0584232a
5,937
py
Python
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
null
null
null
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
null
null
null
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
1
2020-01-25T08:55:41.000Z
2020-01-25T08:55:41.000Z
import csv import argparse import os class ReportSplitter: def __init__(self, values, columns, file, output_folder=None, verbose=False, case_insensitive=True, contains_value=False): self.values = values self.columns = columns self.file = file self.output_folder = o...
41.229167
120
0.561732
666
5,937
4.828829
0.225225
0.041045
0.041356
0.013682
0.174129
0.094527
0.044776
0.031095
0.031095
0
0
0
0.343945
5,937
143
121
41.517483
0.825674
0.024255
0
0.144068
0
0
0.172223
0
0
0
0
0
0
1
0.076271
false
0
0.025424
0
0.127119
0.110169
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
796dec29764e9116f7092158c4657486b2e11567
1,899
py
Python
go/guru.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
51
2019-08-18T18:18:42.000Z
2022-02-09T07:44:42.000Z
go/guru.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
28
2019-08-19T04:10:52.000Z
2020-12-09T16:39:26.000Z
go/guru.py
localhots/sublime-go
960e72dafdb6c69d78bb5cbd88052540342517b9
[ "MIT" ]
4
2019-11-12T20:39:54.000Z
2021-07-30T09:57:32.000Z
from . import decorators from . import exec from . import log import os.path as path import sublime import time import json @decorators.thread @decorators.trace def source(view): locate(view) def call(mode, filename, region): """ Call calls guru(1) with the given `<mode>` filename and point. """ file = "...
22.879518
68
0.636651
271
1,899
4.405904
0.365314
0.033501
0.040201
0.030151
0.083752
0
0
0
0
0
0
0.007266
0.202738
1,899
82
69
23.158537
0.781374
0.087941
0
0.135593
0
0
0.101765
0
0
0
0
0
0
1
0.101695
false
0
0.118644
0
0.338983
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
796f8ea384a7f05b46370bc3b9473a2242391c4a
357
py
Python
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/ class Solution: def removeDuplicates(self, s: str, k: int) -> str: res = '' for c in s: res += c if res[-k:] == c * k: res = res[:-k] return res s = Solution() print(s.re...
21
76
0.537815
45
357
4.266667
0.622222
0.041667
0
0
0
0
0
0
0
0
0
0.004065
0.310924
357
16
77
22.3125
0.776423
0.207283
0
0
0
0
0.049822
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
797130522e525a58e85e7b3f848947aed4b21310
2,150
py
Python
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
from .resnet_backbone import resnet18 from torch import nn import torch import torch.nn.functional as F from detro.networks.components import BiFPN, Center_layer, Offset_layer, Reg_layer, Heatmap_layer from detro.networks.losslib import center_loss, distance_loss class FeatureFusionNetwork(nn.Module): def __init_...
33.59375
97
0.649767
278
2,150
4.791367
0.276978
0.045045
0.051051
0.042793
0.135886
0.107357
0.107357
0.107357
0.076577
0.076577
0
0.029679
0.232093
2,150
63
98
34.126984
0.777105
0.14186
0
0.12766
0
0
0.02938
0
0
0
0
0
0
1
0.106383
false
0
0.12766
0
0.340426
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
79714648fe909d1ef23cf1429aeb6aaa8d22155b
2,938
py
Python
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
null
null
null
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
9
2021-03-19T00:17:56.000Z
2022-03-12T00:17:14.000Z
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
null
null
null
from django import forms from .models import MakerProfile,BuyerProfile,MstLang,MstSkill,Contact,Order,OrderMessage from register.models import User class UserForm(forms.ModelForm): class Meta: model = User fields = ('last_name', 'first_name') class MakerProfileForm(forms.ModelForm): clas...
29.676768
97
0.573179
292
2,938
5.657534
0.311644
0.072639
0.082324
0.106538
0.526029
0.389225
0.309322
0.256053
0.151332
0.151332
0
0.000465
0.267529
2,938
98
98
29.979592
0.767193
0.002042
0
0.415584
0
0
0.248464
0
0
0
0
0
0
1
0.038961
false
0
0.038961
0
0.233766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7975415464bdf9086363882be5e74bf46c4eaee1
5,362
py
Python
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
null
null
null
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
null
null
null
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
1
2022-01-11T04:26:48.000Z
2022-01-11T04:26:48.000Z
"""CSC110 final project, main module Descriptions =============================== This module contains all the functions we used to implement the simple linear regression model. Copyright and Usage Information =============================== All forms of distribution of this code, whether as given or with any chang...
31.356725
92
0.619172
795
5,362
4.047799
0.228931
0.00808
0.041019
0.014916
0.313238
0.27253
0.223741
0.223741
0.223741
0.201367
0
0.02797
0.24655
5,362
170
93
31.541176
0.768564
0.397426
0
0.181818
0
0
0.048271
0
0
0
0
0
0
1
0.106061
false
0
0.075758
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
797b83c4395d6b6acbe9c60dbd945372be2f9477
718
py
Python
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
2
2018-09-22T18:28:33.000Z
2021-08-28T17:44:30.000Z
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
null
null
null
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
1
2019-06-05T15:34:59.000Z
2019-06-05T15:34:59.000Z
from django.contrib import admin from django.urls import path, include from . import views from django.conf import settings app_name='recognition' urlpatterns = [ path('', views.Home.as_view(), name='home'), path('settings/', views.Home.as_view(), name='settings'), path('login/', views.UserLoginView.as_view()...
34.190476
86
0.71727
93
718
5.44086
0.365591
0.094862
0.158103
0.059289
0.075099
0
0
0
0
0
0
0
0.093315
718
20
87
35.9
0.777266
0
0
0
0
0
0.203626
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
797d78dc8a7e7f2b8677fa417daf060e2f5479f3
2,026
py
Python
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
7
2021-02-26T06:12:28.000Z
2022-03-27T17:06:41.000Z
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
21
2020-09-18T14:03:16.000Z
2022-02-14T10:48:40.000Z
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
5
2018-03-02T23:49:41.000Z
2020-04-17T05:35:19.000Z
"""Validate consistency of versions and dependencies. Validates consistency of setup.json and * environment.yml * version in aiida_lammps/__init__.py """ import json import os import sys import click FILENAME_SETUP_JSON = "setup.json" SCRIPT_PATH = os.path.split(os.path.realpath(__file__))[0] ROOT_DIR = os.path.j...
28.138889
118
0.661895
258
2,026
4.94186
0.418605
0.105882
0.053333
0.051765
0.123922
0.064314
0.064314
0
0
0
0
0.002541
0.2231
2,026
71
119
28.535211
0.807497
0.304541
0
0.075
0
0
0.139416
0
0
0
0
0
0
1
0.075
false
0.025
0.125
0
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
797dc34e814424ff0892e6ac9838f4607837049a
7,062
py
Python
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
import json import os import time from configparser import ConfigParser import discord from discord.ext import tasks, commands from dotenv import load_dotenv from datetime import datetime load_dotenv() TOKEN = os.getenv('TOKEN') CONFIG_FILE = 'config.ini' # Config config_parser = ConfigParser() config_parser.read(CO...
33.15493
125
0.717927
932
7,062
5.26824
0.177039
0.07332
0.04888
0.039104
0.468024
0.349287
0.298574
0.298574
0.136456
0.117312
0
0.004889
0.160011
7,062
212
126
33.311321
0.822825
0.017842
0
0.226667
0
0.006667
0.190215
0.006206
0
0
0
0
0
1
0.013333
false
0
0.053333
0
0.14
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
7981d5f5623d46312039f8e4c8cb2b8fbffad125
4,730
py
Python
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # # James Sandford, copyright BBC 2020 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
33.785714
79
0.65074
566
4,730
5.353357
0.256184
0.047525
0.025743
0.026403
0.364026
0.246205
0.176238
0.124752
0.104951
0.066667
0
0.017099
0.233404
4,730
139
80
34.028777
0.818533
0.12389
0
0.3125
0
0
0.014535
0
0
0
0
0
0.208333
1
0.166667
false
0
0.03125
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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