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
437c42fd9708572ca32db3dd04de75e0b264c088
1,361
py
Python
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2021-01-08T04:26:54.000Z
2022-02-04T22:22:27.000Z
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
null
null
null
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2019-06-06T19:36:17.000Z
2020-05-20T12:37:08.000Z
from .calculator import Calculator # noinspection PyTypeChecker class CreditCardCalculator(Calculator): def __init__(self, **kwargs): super(CreditCardCalculator, self).__init__(**kwargs) self.cc_debt = self.get_float(kwargs.get("cc_debt", 0)) self.add_c = self.get_float(kwargs.ge...
30.244444
70
0.543718
186
1,361
3.688172
0.22043
0.058309
0.087464
0.131195
0.167638
0.106414
0.072886
0
0
0
0
0.021135
0.339456
1,361
44
71
30.931818
0.741935
0.019104
0
0
0
0
0.024825
0
0
0
0
0
0
1
0.090909
false
0
0.030303
0.030303
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43826b793ab889bf34bea8a88631da20426a6acb
3,880
py
Python
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
""" Service Availability and Commitment Module This package contains the shipping methods defined by Fedex's ValidationAvailabilityAndCommitmentService WSDL file. Each is encapsulated in a class for easy access. For more details on each, refer to the respective class's documentation. """ import datetime from ..base...
38.039216
111
0.643557
413
3,880
5.970944
0.435835
0.021898
0.024331
0.030819
0.027575
0.027575
0
0
0
0
0
0.003884
0.270103
3,880
101
112
38.415842
0.866879
0.334794
0
0.046512
0
0
0.059883
0.02483
0
0
0
0
0
1
0.069767
false
0
0.046512
0
0.162791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4385a715a45f63ba193550d4819fe3bbd3dc2013
7,908
py
Python
cupy/linalg/product.py
okapies/cupy
4e8394e5e0c4e420295cbc36819e8e0f7de90e9d
[ "MIT" ]
1
2021-10-04T21:57:09.000Z
2021-10-04T21:57:09.000Z
cupy/linalg/product.py
hephaex/cupy
5cf50a93bbdebe825337ed7996c464e84b1495ba
[ "MIT" ]
1
2019-08-05T09:36:13.000Z
2019-08-06T12:03:01.000Z
cupy/linalg/product.py
hephaex/cupy
5cf50a93bbdebe825337ed7996c464e84b1495ba
[ "MIT" ]
1
2022-03-24T13:19:55.000Z
2022-03-24T13:19:55.000Z
import numpy import six import cupy from cupy import core from cupy import internal from cupy.linalg.solve import inv from cupy.util import collections_abc matmul = core.matmul def dot(a, b, out=None): """Returns a dot product of two arrays. For arrays with more than one axis, it computes the dot product...
27.175258
79
0.592059
1,232
7,908
3.715909
0.157468
0.052862
0.045872
0.027523
0.37156
0.286588
0.263652
0.227829
0.20817
0.186326
0
0.009655
0.292742
7,908
290
80
27.268966
0.808868
0.397319
0
0.1875
0
0
0.057788
0
0
0
0
0.003448
0
1
0.0625
false
0
0.054688
0
0.257813
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4387549ca0c49a838b5d253586eefe17b1221bbf
9,050
py
Python
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, NVIDIA CORPORATION. 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 required by appl...
42.890995
189
0.650276
1,162
9,050
4.889845
0.223752
0.025343
0.016895
0.015839
0.429602
0.38226
0.336501
0.31503
0.293559
0.293559
0
0.014899
0.258343
9,050
210
190
43.095238
0.831645
0.259116
0
0.32
0
0
0.087002
0
0
0
0
0
0.016
1
0.08
false
0
0.056
0.016
0.24
0.104
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4388c3265a288b272ad7c01a54a34148e2ab938e
2,506
py
Python
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
1
2020-03-18T11:40:56.000Z
2020-03-18T11:40:56.000Z
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
null
null
null
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8-*- import tkinter.messagebox from tkinter import Button, Label, Tk from utils.functions import set_window_center from utils.sqlite_helper import DBHelper from inpanel import App class InitWindow(Tk): """初始化窗口""" def __init__(self): Tk.__init__(self) ...
29.482353
83
0.57901
309
2,506
4.469256
0.375405
0.050688
0.101376
0.026068
0.110065
0.075308
0.075308
0.075308
0.075308
0.053584
0
0.021253
0.286512
2,506
84
84
29.833333
0.751119
0.036712
0
0.032258
0
0
0.073109
0
0
0
0
0
0
1
0.096774
false
0
0.080645
0
0.193548
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4389f5cc4e8592cb8c9777c1297c9ec965389eb9
1,947
py
Python
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- from zwechathihu.mypdf import GenPdf from db.mysqlite import simpleToolSql data=[{"url": "http://mp.weixin.qq.com/s?__biz=MzAxODQxMDM0Mw==&mid=2247484852&idx=1&sn=85b50b8b0470bb4897e517955f4e5002&chksm=9bd7fbbcaca072aa75e2a241064a403fde1e579d57ab846cd8537a54253ceb2c8b93cc3bf38e&scene=21#wechat_...
29.059701
257
0.634309
252
1,947
4.845238
0.392857
0.058968
0.054054
0.083538
0.396396
0.357903
0.312039
0.312039
0.283374
0.173628
0
0.083851
0.173087
1,947
67
258
29.059701
0.674534
0.336415
0
0.542857
0
0.028571
0.410418
0.038674
0
0
0
0
0
1
0.114286
false
0
0.057143
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
438f17abc40a90f956704fbac8d28a04a5de63c3
2,409
py
Python
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The channel model UI module Copyright 2017-2018, Leo Moll and Dominik Schlösser SPDX-License-Identifier: MIT """ # pylint: disable=import-error import os import xbmcgui import xbmcplugin import resources.lib.mvutils as mvutils from resources.lib.channel import Channel class ChannelUI(C...
26.766667
74
0.584475
249
2,409
5.574297
0.457831
0.028818
0.021614
0.036023
0
0
0
0
0
0
0
0.006699
0.318389
2,409
89
75
27.067416
0.838611
0.253217
0
0
0
0
0.043375
0
0
0
0
0
0
1
0.083333
false
0
0.104167
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
438f4c0d3f4d94dad9a093f3100bc1608c38e26a
6,838
py
Python
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
3
2019-01-06T08:00:11.000Z
2019-03-13T13:24:23.000Z
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
1
2018-11-27T17:16:57.000Z
2018-12-15T07:51:26.000Z
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
2
2018-12-15T14:03:41.000Z
2019-01-26T14:22:07.000Z
#!/usr/bin/env python3 #Credit to @Alright for the RPCs import re import os import requests import json import platform # define function that fetchs rpc creds from .conf def def_credentials(chain): operating_system = platform.system() if operating_system == 'Darwin': ac_dir = os.environ['HOME'] + '/...
32.254717
90
0.620942
691
6,838
5.960926
0.222865
0.054382
0.073804
0.054382
0.27968
0.246176
0.150036
0.062637
0.062637
0.033018
0
0.007203
0.248757
6,838
211
91
32.407583
0.794627
0.069903
0
0.278409
0
0
0.144816
0
0
0
0
0
0
1
0.096591
false
0.028409
0.028409
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43918d07649e9b1f2f91c59a28e777ac9f008513
46,128
py
Python
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
37
2015-04-21T15:33:53.000Z
2022-02-07T00:02:29.000Z
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
86
2015-02-01T22:26:02.000Z
2021-07-09T08:49:36.000Z
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
27
2015-01-26T16:01:09.000Z
2021-11-08T23:53:55.000Z
# -*- coding: utf-8 -*- from cwr.acknowledgement import AcknowledgementRecord, MessageRecord from cwr.agreement import AgreementRecord, AgreementTerritoryRecord, \ InterestedPartyForAgreementRecord from cwr.group import Group, GroupHeader, GroupTrailer from cwr.info import AdditionalRelatedInfoRecord from cwr.pars...
45.223529
96
0.560701
3,822
46,128
6.316327
0.099686
0.042873
0.031233
0.032807
0.450064
0.386728
0.367632
0.30297
0.301189
0.276749
0
0.001561
0.361039
46,128
1,019
97
45.26791
0.8175
0.000455
0
0.382927
0
0
0.125914
0.036876
0
0
0
0
0
1
0.107317
false
0
0.014634
0.029268
0.229268
0.002439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43924097832cb6270f8da8544d56269f7551b02e
6,651
py
Python
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
95
2018-10-31T12:12:01.000Z
2022-03-20T21:30:48.000Z
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
34
2018-10-22T11:01:15.000Z
2021-11-21T14:10:26.000Z
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
81
2018-10-23T08:37:20.000Z
2022-03-20T00:27:08.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import codecs,os,gzip,ctypes,ctypes.util,sys from struct import * from PIL import Image, ImageDraw, ImageFont # ====== Python script to convert TrueTypeFonts to TWRP's .dat format ====== # This script was originally made by https://github.com/suky for his chinese version of...
33.422111
106
0.537062
915
6,651
3.839344
0.30929
0.013664
0.005693
0.009394
0.054085
0.035867
0.00797
0.00797
0.00797
0
0
0.032258
0.324162
6,651
198
107
33.590909
0.749277
0.228236
0
0.181159
0
0.021739
0.180428
0
0
0
0
0.005051
0
1
0.036232
false
0
0.021739
0.007246
0.072464
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
4393bd0d5f4f1245ce5fd0c8893a7351e5ec7276
3,589
py
Python
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
null
null
null
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
null
null
null
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
1
2020-07-25T13:59:25.000Z
2020-07-25T13:59:25.000Z
"""Automated speech recognition tests.""" import os import sys import unittest from pathlib import Path import requests from rhasspyhermes.asr import AsrTextCaptured from rhasspyhermes.nlu import NluIntent class AsrEnglishTests(unittest.TestCase): """Test automated speech recognition (English)""" def setUp...
35.534653
87
0.655893
445
3,589
5.110112
0.208989
0.092348
0.055409
0.046174
0.582674
0.551891
0.488127
0.423043
0.35708
0.35708
0
0.002848
0.217331
3,589
100
88
35.89
0.806693
0.067428
0
0.304348
0
0
0.182475
0.011743
0
0
0
0
0.231884
1
0.115942
false
0
0.101449
0.014493
0.246377
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4393be2aca5a25d561f41614d1c61c91497bb77e
775
py
Python
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
213
2020-05-21T12:37:37.000Z
2022-03-28T16:36:07.000Z
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
36
2020-08-14T08:23:34.000Z
2022-02-07T11:26:17.000Z
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
38
2020-05-21T20:03:30.000Z
2022-01-19T16:31:15.000Z
import torch import torch.nn as nn import torch.nn.functional as F from .discriminator import Discriminator from .identity import Identity class MultiScaleDiscriminator(nn.Module): def __init__(self): super(MultiScaleDiscriminator, self).__init__() self.discriminators = nn.ModuleList( ...
25.833333
83
0.602581
90
775
5.066667
0.466667
0.072368
0.057018
0.078947
0
0
0
0
0
0
0
0.012613
0.283871
775
29
84
26.724138
0.809009
0.058065
0
0
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0.238095
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4393d8ec0408fae06ace653dd14db15c556ea5c5
2,516
py
Python
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
10
2020-12-24T01:40:54.000Z
2021-06-03T01:22:34.000Z
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
4
2020-12-26T15:09:05.000Z
2021-10-01T13:36:16.000Z
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
3
2021-05-14T20:20:02.000Z
2021-08-09T19:10:12.000Z
from game import about_button, start_button, play_sound, center_pos import pygame WHITE = (255,255,255) BLACK = (0,0,0) GREEN = (0, 255, 0) pygame.init() pygame.font.init() pygame.mixer.init() FONT = pygame.font.Font("assets/font.ttf", 70) FONT_MIN = pygame.font.Font("assets/font.ttf", 30) window = pygame.display.s...
31.45
95
0.591017
322
2,516
4.453416
0.326087
0.037657
0.029289
0.031381
0.104603
0.037657
0
0
0
0
0
0.040975
0.282194
2,516
80
96
31.45
0.753045
0
0
0.129032
0
0
0.059197
0
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43952014f41c3fec2a8b86f2f567eb906cd4cf2f
1,463
py
Python
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
from django.shortcuts import render, redirect from .models import Post from .forms import ScheduleForm from django.core.paginator import Paginator # Create your views here. def view_schedule(request): all_posts = Post.objects.all().order_by('pub_date') page = int(request.GET.get('p', 1)) pagenator = Pagina...
34.833333
75
0.6473
186
1,463
4.967742
0.38172
0.051948
0.064935
0.087662
0.170996
0.170996
0.114719
0.114719
0.114719
0
0
0.001776
0.230349
1,463
42
76
34.833333
0.818828
0.140123
0
0.071429
0
0
0.124
0.0832
0
0
0
0
0
1
0.107143
false
0
0.142857
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43985e0c9aab5f6373fb70168960c90190116e6d
4,005
py
Python
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
1
2021-12-20T12:03:49.000Z
2021-12-20T12:03:49.000Z
# Monte Carlo tree search for TicTacToe import numpy as np from tictactoe import Tictactoe import copy from random import choice from tree import Node import time class MCTS: ''' Class defining a simple monte carlo tree search algorithm. Attributes: - game: instance of TicTacToe game - cu...
35.131579
104
0.640949
491
4,005
5.075356
0.281059
0.099117
0.032103
0.016051
0.159711
0.110754
0.089888
0.089888
0.056982
0.056982
0
0.003825
0.281898
4,005
113
105
35.442478
0.862656
0.241698
0
0.131148
0
0
0.041465
0
0
0
0
0
0
1
0.081967
false
0
0.098361
0
0.262295
0.147541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4399aded5ee5a7bbfaba489cfa6e1bbdb4b8689f
3,911
py
Python
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
5
2021-06-24T03:19:47.000Z
2021-12-18T22:33:04.000Z
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
1
2022-02-04T14:52:40.000Z
2022-03-07T10:04:54.000Z
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
null
null
null
import pandas as pd from pandas.api.types import is_numeric_dtype from grimer.utils import print_log class Metadata: valid_types = ["categorical", "numeric"] default_type = "categorical" def __init__(self, metadata_file, samples: list=[]): # Read metadata and let pandas guess dtypes, index as str...
38.722772
136
0.628995
525
3,911
4.56
0.266667
0.110276
0.065163
0.06015
0.181287
0.131997
0.101921
0.101921
0.070175
0.070175
0
0.004075
0.246996
3,911
100
137
39.11
0.808829
0.158527
0
0.04918
0
0
0.075183
0
0
0
0
0
0
1
0.163934
false
0
0.04918
0.081967
0.42623
0.065574
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439a75ca9b8d0ab554205540e1b91cb943b0c4ba
5,162
py
Python
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
from typing import Optional, Dict, Any, List, Union from allennlp.common.checks import ConfigurationError class MetricTracker: """ This class tracks a metric during training for the dual purposes of early stopping and for knowing whether the current value is the best so far. It mimics the PyTorch `st...
38.522388
93
0.629407
681
5,162
4.51395
0.255507
0.040989
0.061483
0.035784
0.298959
0.140208
0.097918
0.097918
0.097918
0.097918
0
0.003814
0.288842
5,162
133
94
38.81203
0.83356
0.293103
0
0.142857
0
0
0.098136
0.015143
0
0
0
0
0
1
0.103896
false
0
0.025974
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
439abf267a321356c428ab3774898fb305a07e4a
956
py
Python
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
import json from deepdiff import DeepDiff import pprint def get_json(file_name): with open(file_name) as json_file: json_data = json.load(json_file) return json_data def compare_json(Hostname, Command, Data1, Data2): if (Data1 == Data2): print ("%s - %s output is same" % (Hostname, Com...
30.83871
94
0.669456
129
956
4.782946
0.379845
0.06483
0.084279
0.084279
0.171799
0.123177
0.123177
0
0
0
0
0.018642
0.214435
956
30
95
31.866667
0.802929
0.095188
0
0
0
0
0.177289
0
0
0
0
0
0
1
0.130435
false
0
0.130435
0
0.304348
0.173913
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439b48ead1b5b023fe47fbce88acf0d32181f26a
9,437
py
Python
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
null
null
null
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
88
2015-07-21T22:13:23.000Z
2016-11-15T21:28:56.000Z
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
2
2015-08-12T11:19:55.000Z
2018-05-25T19:04:43.000Z
#!/usr/bin/env python # -- encoding: utf-8 -- # # Copyright 2015-2016 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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...
35.212687
79
0.586097
1,086
9,437
4.997238
0.296501
0.041275
0.012161
0.017505
0.13009
0.090105
0.046434
0.046434
0.046434
0.029851
0
0.005191
0.326375
9,437
267
80
35.344569
0.848513
0.24192
0
0.246988
0
0
0.109652
0.009667
0
0
0
0
0
1
0.042169
false
0
0.048193
0
0.096386
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439b5da067d8952a4649cfcbc1a2148086951365
2,224
py
Python
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
### This file is originally from: [mlcommons repo](https://github.com/mlcommons/training/tree/9947bdf21ee3f2488fa4b362eec2ce7deb2ec4dd/single_stage_detector/ssd/mlperf_logger.py) # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may ...
35.870968
178
0.721223
304
2,224
5.171053
0.490132
0.038168
0.034351
0.038168
0.05916
0
0
0
0
0
0
0.017496
0.177608
2,224
61
179
36.459016
0.84199
0.447392
0
0.09375
0
0
0.062979
0.017872
0
0
0
0
0
1
0.125
false
0
0.15625
0
0.34375
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439cc020be352b363d0141cede18e92d0b0f339f
5,910
py
Python
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
import datetime import os import pymongo import requests from urllib import parse from urllib.parse import quote_plus import json from retry import retry from bs4 import BeautifulSoup import math from project.server.main.logger import get_logger from project.server.main.utils_swift import upload_object from project.s...
36.708075
184
0.694755
862
5,910
4.488399
0.207657
0.044197
0.024813
0.024813
0.34505
0.283019
0.182735
0.182735
0.15482
0.124063
0
0.015648
0.178173
5,910
160
185
36.9375
0.780935
0.069036
0
0.123894
0
0.00885
0.216187
0.066533
0
0
0
0.00625
0
1
0.061947
false
0
0.168142
0
0.256637
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
439e62c4d6bd84f9f57f7073032cb6f2eab27d1b
15,524
py
Python
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
11
2020-05-18T17:33:25.000Z
2022-01-28T18:42:31.000Z
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
null
null
null
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
1
2020-12-10T19:57:20.000Z
2020-12-10T19:57:20.000Z
""" General all-purpose utilities """ import sys import torch import torch.nn.functional as F import numpy as np import gurobipy as gb import matplotlib.pyplot as plt import io import contextlib import tempfile import time import re import pickle import inspect import glob import os COMPLETED_JOB_DIR = os.path.join(...
28.021661
81
0.659237
2,249
15,524
4.389506
0.200089
0.007901
0.005673
0.006483
0.154072
0.118922
0.091167
0.08671
0.075162
0.075162
0
0.005188
0.192863
15,524
553
82
28.072333
0.782682
0.397256
0
0.228296
0
0
0.038807
0.006709
0
0
0
0
0.057878
1
0.154341
false
0.003215
0.048232
0.016077
0.369775
0.003215
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a00c0b5646519c438692fcd0610b44be3beb14
1,340
py
Python
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 6 14:51:24 2021 @author: laukkara This script is run first to fetch results data from university's network drive """ import os import pickle input_folder_for_Delphin_data = r'S:\91202_Rakfys_Mallinnus\RAMI\simulations' output_folder = os.path.join(r'C:\Local\laukkar...
20
81
0.630597
185
1,340
4.389189
0.481081
0.059113
0.078818
0.077586
0.16133
0
0
0
0
0
0
0.023976
0.252985
1,340
66
82
20.30303
0.787213
0.15597
0
0.066667
0
0
0.166517
0.10351
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a04a876b69a7d204627f4d6e2351f7e07cdf98
518
py
Python
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
6
2015-06-05T03:34:06.000Z
2022-01-25T09:07:10.000Z
import matplotlib.patches as mpatch import matplotlib.pyplot as plt styles = mpatch.BoxStyle.get_styles() figheight = (len(styles)+.5) fig1 = plt.figure(1, (4/1.5, figheight/1.5)) fontsize = 0.3 * 72 for i, (stylename, styleclass) in enumerate(styles.items()): fig1.text(0.5, (float(len(styles)) - 0.5 - i)/fighei...
27.263158
71
0.629344
72
518
4.513889
0.597222
0.098462
0
0
0
0
0
0
0
0
0
0.04401
0.210425
518
18
72
28.777778
0.750611
0
0
0
0
0
0.015474
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a39cbdc284d3d48cf14614c751040caf06e2f0
3,018
py
Python
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
null
null
null
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
2
2020-05-04T09:40:32.000Z
2021-08-03T17:34:00.000Z
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
null
null
null
#! usr/bin/python3 # code: utf-8 """Download data from Open Food Facts API.""" import json import requests from src.purchoice.constants import CATEGORY_SELECTED from src.purchoice.purchoice_database import PurchoiceDatabase class ImportOff: """ImportOff class downloads data from Open Food Facts API.""" de...
32.804348
79
0.594102
351
3,018
4.977208
0.404558
0.020607
0.037207
0.036634
0.100744
0.100744
0.032055
0
0
0
0
0.005778
0.311796
3,018
91
80
33.164835
0.835339
0.288602
0
0
0
0
0.143511
0
0
0
0
0
0
1
0.085106
false
0.021277
0.191489
0
0.340426
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a51f00be6eeff0b67bd7aa629b9ff21c09189f
503
py
Python
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
import discord from discord import Embed @commands.Cog.listener() async def on_message_delete(self, message): channel = "xxxxxxxxxxxxxxxxxxxxx" deleted = Embed( description=f"Message deleted in {message.channel.mention}", color=0x4040EC ).set_author(name=message.author, url=Embed.Empty,...
33.533333
91
0.735586
62
503
5.854839
0.612903
0.077135
0
0
0
0
0
0
0
0
0
0.011848
0.161034
503
15
92
33.533333
0.848341
0
0
0
0
0
0.146939
0.093878
0
0
0.016327
0
0
1
0
false
0
0.181818
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
43a5f6e07158fad4d7bfe9f3af12b2b23116e364
22,646
py
Python
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
320
2017-07-22T12:14:19.000Z
2022-03-24T14:00:32.000Z
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
272
2017-07-22T12:30:48.000Z
2022-03-30T07:14:50.000Z
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
36
2017-07-22T12:45:03.000Z
2021-05-18T12:20:11.000Z
import copy import inspect import json import logging import pytest import re import os import shutil import subprocess import time from datetime import datetime, timedelta from configparser import ConfigParser, ExtendedInterpolation from typing import Dict, List, Optional from pyhttpd.certs import CertificateSpec f...
37.806344
125
0.597457
2,920
22,646
4.414726
0.136644
0.03421
0.029788
0.026065
0.394616
0.338376
0.283841
0.241331
0.194709
0.169265
0
0.011539
0.280579
22,646
599
126
37.806344
0.779708
0.027025
0
0.253579
0
0
0.089703
0.007585
0
0
0
0
0.06953
1
0.147239
false
0
0.034765
0.06135
0.343558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a66e0d4848430d37cecb21387fa89ddac71ea8
1,949
py
Python
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
import datetime import json import random import string from typing import Dict from sms_counter import SMSCounter class CreateMessageResponse: def __init__(self, request): self.id = self.generate_id() self.owner = request['from'] self.applicationId = request['applicationId'] sel...
30.936508
91
0.578758
214
1,949
5.186916
0.28972
0.075676
0.046847
0.027027
0
0
0
0
0
0
0
0.021152
0.296562
1,949
62
92
31.435484
0.788476
0
0
0
0
0
0.086711
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a74cac582bdf300bc81daa9bedf7b376e2c024
906
py
Python
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
def decimal_to_binary_fraction(x=0.5): """ Input: x, a float between 0 and 1 Returns binary representation of x """ p = 0 while ((2 ** p) * x) % 1 != 0: # print('Remainder = ' + str((2**p)*x - int((2**p)*x))) p += 1 num = int(x * (2 ** p)) result = '' if num == 0: ...
27.454545
97
0.566225
144
906
3.541667
0.493056
0.019608
0.017647
0
0
0
0
0
0
0
0
0.037559
0.294702
906
32
98
28.3125
0.760563
0.512141
0
0
0
0
0.007212
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43a79fa3a61473b076f77344a5a402f9d3ac1f06
3,091
py
Python
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. import datetime import logging import os import pathlib import time from composer.utils import dist log = logging.getLogger(__name__) _RUN_DIRECTORY_KEY = "COMPOSER_RUN_DIRECTORY" _start_time_str = datetime.datetime.now().isoformat() def get_node_run_directory() ->...
35.125
102
0.697185
418
3,091
4.937799
0.320574
0.174419
0.069767
0.018411
0.271318
0.248062
0.217054
0.217054
0.126938
0.085271
0
0.002067
0.217405
3,091
87
103
35.528736
0.851178
0.339696
0
0.136364
0
0
0.065319
0.026439
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43aa177b05dce3f050fe11c02d43b9d799f954d6
3,509
py
Python
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
5
2018-12-19T02:37:18.000Z
2022-01-26T02:52:50.000Z
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
null
null
null
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
null
null
null
from typing import (Any, Union, Type) # noqa: F401 from ..keys.datatypes import ( LazyBackend, PublicKey, PrivateKey, Signature, ) from eth_keys.exceptions import ( ValidationError, ) from eth_keys.validation import ( validate_message_hash, ) # These must be aliased due to a scoping issue in...
35.444444
90
0.61613
370
3,509
5.648649
0.245946
0.060287
0.050239
0.053589
0.563636
0.487081
0.475598
0.432057
0.326794
0.300478
0
0.002901
0.31234
3,509
98
91
35.806122
0.863241
0.15503
0
0.373333
0
0
0.205032
0.072084
0
0
0
0
0
1
0.053333
false
0
0.053333
0
0.213333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43aab220da0c6298d29ad8922e374d3b90af61e0
16,406
py
Python
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
1
2021-10-05T11:56:53.000Z
2021-10-05T11:56:53.000Z
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
24
2021-01-27T08:20:27.000Z
2021-07-06T09:42:28.000Z
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
4
2021-10-05T12:07:27.000Z
2022-01-28T18:37:28.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
40.210784
99
0.643911
1,860
16,406
5.544624
0.198387
0.022108
0.027732
0.014254
0.215165
0.15718
0.141181
0.130515
0.098613
0.087172
0
0.004114
0.288797
16,406
407
100
40.309582
0.879757
0.351518
0
0.205263
0
0
0.075953
0.005517
0
0
0
0.002457
0
1
0.068421
false
0
0.052632
0.005263
0.194737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43abfef786fc99686d3027b89832f4ac4ffeea43
7,885
py
Python
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import re import time from lxml import etree import select import socket import logging import sys from lxml.builder import E from lxml.etree import XMLSyntaxError from datetime import datetime, timedelta from ncclient.operations.rpc import RPCReply, RPCError from ncclient.xml_ import to_ele import six from ncclient.t...
35.200893
83
0.49182
839
7,885
4.468415
0.278903
0.037343
0.025607
0.022406
0.17418
0.13817
0.102427
0.102427
0.102427
0.102427
0
0.00569
0.309068
7,885
223
84
35.358744
0.682452
0.250983
0
0.27027
0
0
0.0566
0.003831
0
0
0
0
0
1
0.060811
false
0
0.094595
0
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43ad02233acb1702dc2da7147208eb71f07d888f
409
py
Python
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
2
2022-01-06T02:21:16.000Z
2022-03-08T07:55:43.000Z
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
2
2021-12-10T15:56:52.000Z
2022-02-19T23:45:24.000Z
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
3
2021-07-30T11:16:55.000Z
2022-01-05T18:19:55.000Z
from pymodbus.client.sync import ModbusTcpClient as ModbusClient import logging FORMAT = ('%(asctime)-15s %(threadName)-15s ' '%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s') logging.basicConfig(format=FORMAT) log = logging.getLogger() log.setLevel(logging.DEBUG) client = ModbusClient('192.168.178.61...
37.181818
67
0.743276
54
409
5.592593
0.703704
0
0
0
0
0
0
0
0
0
0
0.07027
0.095355
409
11
68
37.181818
0.745946
0
0
0
0
0
0.246341
0.063415
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43ae1b68e450c7cd53ba9d214198e618977b86cc
1,297
py
Python
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
12,004
2018-06-17T23:56:29.000Z
2022-03-31T18:00:09.000Z
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
6,263
2018-06-17T23:27:24.000Z
2022-03-31T19:20:35.000Z
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
706
2018-06-17T23:56:50.000Z
2022-03-31T11:20:23.000Z
# Copyright 2016-2018, Pulumi Corporation. # # 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 t...
36.027778
87
0.739399
194
1,297
4.809278
0.561856
0.064309
0.028939
0.03537
0.064309
0
0
0
0
0
0
0.012138
0.174248
1,297
35
88
37.057143
0.85901
0.529684
0
0
0
0
0.102694
0.038721
0
0
0
0
0.2
1
0.133333
false
0
0.133333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43af456bb12d9242e1f8878ab32c7792bb2310ac
2,108
py
Python
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
import copy import json from ghcl.models.pull_request import PullRequest class PRData: def __init__(self, data: dict = None): if data is None: with open('./tests/models/empty_pr_data.json') as file: self._data = json.load(file) else: self._data = data ...
31.939394
76
0.597723
275
2,108
4.298182
0.236364
0.081218
0.07445
0.118443
0.349408
0.192893
0.192893
0.192893
0.067682
0.067682
0
0.009677
0.264706
2,108
65
77
32.430769
0.752903
0
0
0.307692
0
0
0.136622
0.015655
0
0
0
0
0
1
0.192308
false
0
0.057692
0.038462
0.442308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43af80522808363696ca10665012f09669723d2f
609
py
Python
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
2
2020-10-26T18:40:32.000Z
2021-04-10T16:33:25.000Z
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30
2015-11-04T11:42:27.000Z
2021-12-01T07:56:34.000Z
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
8
2016-03-25T07:17:43.000Z
2021-07-08T17:11:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer basicGenParticleValidation = DQMEDAnalyzer('BasicGenParticleValidation', hepmcCollection = cms.InputTag("generatorSmeared"), genparticleCollection = cms.InputTag("genParticles",""), genjetsCollection = cms.Inp...
40.6
94
0.784893
50
609
9.56
0.64
0.069038
0
0
0
0
0
0
0
0
0
0.014787
0.111658
609
14
95
43.5
0.868762
0
0
0
0
0
0.10509
0.042693
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43b219f1675072d8c1034bc153a5f05238d1fdf2
639
py
Python
AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
"""Fix bound method attributes (method.im_? -> method.__?__). """ # Author: Christian Heimes # Local imports from .. import fixer_base from ..fixer_util import Name MAP = { "im_func" : "__func__", "im_self" : "__self__", "im_class" : "__self__.__class__" } class FixMethodattrs(fixer_bas...
25.56
80
0.596244
73
639
4.794521
0.547945
0.051429
0.057143
0
0
0
0
0
0
0
0
0.002075
0.245696
639
24
81
26.625
0.724066
0.153365
0
0
0
0.0625
0.284872
0
0
0
0
0
0
1
0.0625
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
43b28c13174a1c70f27d43e88e2fd455da590fcc
4,764
py
Python
models/TextCNN/cnn2d.py
Renovamen/Text-Classification
4a4aa4001c402ed4371ebaabe1393b27794e5992
[ "MIT" ]
72
2020-06-23T18:26:47.000Z
2022-03-26T13:33:30.000Z
models/TextCNN/cnn2d.py
Renovamen/Text-Classification
4a4aa4001c402ed4371ebaabe1393b27794e5992
[ "MIT" ]
5
2020-12-04T13:31:09.000Z
2021-08-03T14:11:52.000Z
models/TextCNN/cnn2d.py
Renovamen/Text-Classification
4a4aa4001c402ed4371ebaabe1393b27794e5992
[ "MIT" ]
15
2020-06-24T16:08:39.000Z
2022-02-04T06:53:38.000Z
import torch import torch.nn as nn import torch.nn.functional as F from typing import List class TextCNN2D(nn.Module): """ Implementation of 2D version of TextCNN proposed in paper [1]. `Here <https://github.com/yoonkim/CNN_sentence>`_ is the official implementation of TextCNN. Parameters ---...
30.538462
145
0.588161
557
4,764
4.874327
0.276481
0.040516
0.018416
0.022099
0.222099
0.195948
0.195948
0.178269
0.12523
0.12523
0
0.018781
0.31822
4,764
155
146
30.735484
0.817118
0.407221
0
0.193548
0
0
0
0
0
0
0
0
0
1
0.048387
false
0
0.064516
0
0.145161
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43b37687b876abf43457859ada796360f659fa78
2,595
py
Python
heat/tests/convergence/framework/testutils.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
heat/tests/convergence/framework/testutils.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
heat/tests/convergence/framework/testutils.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
36.549296
79
0.649326
308
2,595
5.292208
0.38961
0.068712
0.044172
0.06135
0.191411
0.15092
0.062577
0.062577
0.062577
0.062577
0
0.004204
0.266667
2,595
70
80
37.071429
0.852338
0.210405
0
0.04878
0
0
0.043286
0
0
0
0
0
0.146341
1
0.04878
false
0
0.097561
0.02439
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43b56590cfbfa648aa925a4f729f3fc4fe304008
2,605
py
Python
nova/tests/servicegroup/test_zk_driver.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
7
2017-06-19T19:37:00.000Z
2019-06-16T02:06:14.000Z
nova/tests/servicegroup/test_zk_driver.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/tests/servicegroup/test_zk_driver.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright (c) AT&T 2012-2013 Yun Mao <yunmao@gmail.com> # Copyright 2012 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENS...
39.469697
78
0.700576
345
2,605
5.185507
0.434783
0.100615
0.095584
0.058133
0.286752
0.286752
0.27166
0.27166
0.27166
0.27166
0
0.012615
0.208829
2,605
65
79
40.076923
0.85541
0.416891
0
0.322581
0
0
0.094126
0
0
0
0
0
0.129032
1
0.096774
false
0
0.16129
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43b6084ad6323124af0ef6d980f927d5cab21334
780
py
Python
tests/test_misc.py
lordmauve/chopsticks
87c6a5d0049a45db1477a21510cba650f470a8ac
[ "Apache-2.0" ]
171
2016-07-14T11:29:15.000Z
2022-03-12T07:39:12.000Z
tests/test_misc.py
moreati/chopsticks
87c6a5d0049a45db1477a21510cba650f470a8ac
[ "Apache-2.0" ]
59
2016-07-23T14:05:58.000Z
2020-06-26T15:49:07.000Z
tests/test_misc.py
moreati/chopsticks
87c6a5d0049a45db1477a21510cba650f470a8ac
[ "Apache-2.0" ]
17
2016-08-01T06:46:27.000Z
2018-03-25T14:46:15.000Z
"""Tests for miscellaneous properties, such as debuggability.""" import time from chopsticks.tunnel import Docker from chopsticks.group import Group def test_tunnel_repr(): """Tunnels have a usable repr.""" tun = Docker('py36', image='python:3.6') assert repr(tun) == "Docker('py36')" def test_group_repr...
25.16129
65
0.601282
105
780
4.409524
0.371429
0.107991
0.12959
0.136069
0.468683
0.326134
0.326134
0.326134
0.233261
0.233261
0
0.042553
0.216667
780
30
66
26
0.715221
0.174359
0
0.5
0
0
0.197432
0.035313
0
0
0
0
0.1
1
0.15
false
0
0.15
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43b62d9d4c35cd12677417d9abccab4b3568c545
3,028
py
Python
Evaluation/PostProcesing.py
AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion
366ac5073cea96b662b934c3657446c9f1aa2f65
[ "MIT" ]
null
null
null
Evaluation/PostProcesing.py
AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion
366ac5073cea96b662b934c3657446c9f1aa2f65
[ "MIT" ]
3
2022-03-12T17:16:36.000Z
2022-03-17T12:14:56.000Z
Evaluation/PostProcesing.py
AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion
366ac5073cea96b662b934c3657446c9f1aa2f65
[ "MIT" ]
1
2022-03-12T11:56:43.000Z
2022-03-12T11:56:43.000Z
import pandas as pd import re import glob def rebuild_counts_from_csv(path,n_dims, shots): df = pd.read_csv(path) return rebuild_counts_from_dataframe(dataframe=df, n_dims=n_dims, shots=shots) def rebuild_counts_from_dataframe(dataframe,n_dims,shots): dimension_counts = {} for dimension in range(n_d...
33.274725
89
0.691546
404
3,028
4.873762
0.180693
0.033012
0.051803
0.036567
0.34129
0.187913
0.134078
0.077197
0.077197
0.077197
0
0.005668
0.18428
3,028
90
90
33.644444
0.791498
0.019815
0
0.111111
0
0
0.047233
0
0
0
0
0
0.015873
1
0.142857
false
0
0.047619
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
43b693bbc83efef69f13c3a5a3bab32c542470ab
2,276
py
Python
app/wirecard/tasks.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
app/wirecard/tasks.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
app/wirecard/tasks.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
from sentry_sdk import capture_exception from dateutil.parser import parse from project_configuration.celery import app from orders.models import Charge from request_shoutout.domain.models import Charge as DomainCharge from .models import WirecardTransactionData CROSS_SYSTEMS_STATUS_MAPPING = { 'WAITING': Domai...
38.576271
93
0.784271
249
2,276
6.799197
0.37751
0.085056
0.111636
0.119905
0.357354
0.295924
0.251034
0.217956
0.217956
0
0
0
0.146749
2,276
58
94
39.241379
0.871782
0.075571
0
0
0
0
0.064731
0
0
0
0
0
0
1
0.090909
false
0
0.136364
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
43b93580a409ca7d715e6c81e1d0f3517269cec7
4,277
py
Python
dygraph/alexnet/network.py
Sunyingbin/models
30a7f1757bfad79935aa865f4362a7b38e63a415
[ "Apache-2.0" ]
null
null
null
dygraph/alexnet/network.py
Sunyingbin/models
30a7f1757bfad79935aa865f4362a7b38e63a415
[ "Apache-2.0" ]
null
null
null
dygraph/alexnet/network.py
Sunyingbin/models
30a7f1757bfad79935aa865f4362a7b38e63a415
[ "Apache-2.0" ]
null
null
null
""" 动态图构建 AlexNet """ import paddle.fluid as fluid import numpy as np class Conv2D(fluid.dygraph.Layer): def __init__(self, name_scope, num_channels, num_filters, filter_size, stride=1, padding=0, ...
32.9
118
0.53098
503
4,277
4.240557
0.184891
0.061885
0.045007
0.039381
0.498359
0.474449
0.46226
0.37459
0.357243
0.357243
0
0.046546
0.36708
4,277
129
119
33.155039
0.741411
0.00304
0
0.394495
0
0
0.014788
0
0
0
0
0
0
1
0.055046
false
0
0.018349
0
0.137615
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43bbbe3418d6d5e2da95d398c3928141e4b68eab
905
py
Python
turtlegameproject/turtlegame.py
Ayon134/code_for_Kids
d90698bb38efe5e26c31f02bd129bfdadea158e2
[ "MIT" ]
null
null
null
turtlegameproject/turtlegame.py
Ayon134/code_for_Kids
d90698bb38efe5e26c31f02bd129bfdadea158e2
[ "MIT" ]
null
null
null
turtlegameproject/turtlegame.py
Ayon134/code_for_Kids
d90698bb38efe5e26c31f02bd129bfdadea158e2
[ "MIT" ]
2
2021-01-08T03:52:46.000Z
2021-04-01T19:16:12.000Z
import turtle import random p1=turtle.Turtle() p1.color("green") p1.shape("turtle") p1.penup() p1.goto(-200,100) p2=p1.clone() p2.color("blue") p2.penup() p2.goto(-200,-100) p1.goto(300,60) p1.pendown() p1.circle(40) p1.penup() p1.goto(-200,100) p2.goto(300,-140) p2.pendown() p2.circle(40) p2.penup() p2.goto(-200,-...
17.745098
49
0.571271
148
905
3.452703
0.371622
0.054795
0.078278
0.050881
0.340509
0.258317
0.082192
0
0
0
0
0.139738
0.240884
905
51
50
17.745098
0.604076
0
0
0.243902
0
0
0.140177
0
0
0
0
0
0
1
0
false
0
0.04878
0
0.04878
0.146341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43be862a8ae3652cfbde5c9e9ea45da257901956
1,633
py
Python
app.py
thliang01/nba-s
660d0e830989916b7b9f3123eb809d143b714186
[ "BSD-2-Clause" ]
null
null
null
app.py
thliang01/nba-s
660d0e830989916b7b9f3123eb809d143b714186
[ "BSD-2-Clause" ]
null
null
null
app.py
thliang01/nba-s
660d0e830989916b7b9f3123eb809d143b714186
[ "BSD-2-Clause" ]
null
null
null
import streamlit as st import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # -------------------------------------------------------------- # Import and clean data game_details = pd.read_csv('games_details.csv') # print(game_details.head(5)) game_details.drop(['GAME_ID', 'TEAM_...
32.019608
110
0.647887
234
1,633
4.380342
0.487179
0.150244
0.027317
0.027317
0.039024
0.039024
0
0
0
0
0
0.018569
0.109614
1,633
50
111
32.66
0.686382
0.131047
0
0
0
0
0.259207
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43bfd11896f962234020d5d611ad3cb21b537df7
19,228
py
Python
python/craftassist/voxel_models/geoscorer/geoscorer_util.py
kepolol/craftassist
f60a7edd0b4ea72b774cca45ba468d2e275445c2
[ "MIT" ]
null
null
null
python/craftassist/voxel_models/geoscorer/geoscorer_util.py
kepolol/craftassist
f60a7edd0b4ea72b774cca45ba468d2e275445c2
[ "MIT" ]
null
null
null
python/craftassist/voxel_models/geoscorer/geoscorer_util.py
kepolol/craftassist
f60a7edd0b4ea72b774cca45ba468d2e275445c2
[ "MIT" ]
1
2020-03-29T20:04:11.000Z
2020-03-29T20:04:11.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. """ import numpy as np import random from datetime import datetime import sys import argparse import torch import os from inspect import currentframe, getframeinfo GEOSCORER_DIR = os.path.dirname(os.path.realpath(__file__)) CRAFTASSIST_DIR = os.path.join(GEOSCORER_...
34.27451
99
0.63808
3,103
19,228
3.775701
0.145343
0.023045
0.04353
0.019461
0.253158
0.196142
0.16661
0.127859
0.089962
0.078696
0
0.023307
0.225713
19,228
560
100
34.335714
0.763635
0.136364
0
0.121294
0
0
0.079521
0.007369
0
0
0
0.001786
0
1
0.115903
false
0
0.024259
0.018868
0.245283
0.002695
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43c0a7c7b3cc424327d10e1b990bf63c250e8eb4
4,907
py
Python
CryptoAttacks/tests/Block/test_gcm.py
akbarszcz/CryptoAttacks
ae675d016b314414a3dc9b23c7d8a32da4c62457
[ "MIT" ]
54
2017-03-28T23:46:58.000Z
2022-02-23T01:53:38.000Z
CryptoAttacks/tests/Block/test_gcm.py
maximmasiutin/CryptoAttacks
d1d47d3cb2ce38738a60b728bc35ce80bfe64374
[ "MIT" ]
null
null
null
CryptoAttacks/tests/Block/test_gcm.py
maximmasiutin/CryptoAttacks
d1d47d3cb2ce38738a60b728bc35ce80bfe64374
[ "MIT" ]
13
2017-03-31T06:07:23.000Z
2021-11-20T19:01:30.000Z
#!/usr/bin/python from __future__ import absolute_import, division, print_function import subprocess from builtins import bytes, range from os.path import abspath, dirname from os.path import join as join_path from random import randint from CryptoAttacks.Block.gcm import * from CryptoAttacks.Utils import log def...
31.254777
144
0.678419
604
4,907
5.304636
0.246689
0.021848
0.008739
0.011236
0.248127
0.172285
0.149189
0.105493
0.06804
0.031211
0
0.10718
0.210923
4,907
156
145
31.455128
0.7203
0.019156
0
0.237705
0
0
0.04432
0
0
0
0
0
0.07377
1
0.04918
false
0
0.065574
0
0.122951
0.221311
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43c1a9b70d766525944aa92cfc1043f3d5e3bc1b
17,842
py
Python
owscapable/swe/common.py
b-cube/OwsCapable
a01815418fe982434503d6542cb18e1ac8989684
[ "BSD-3-Clause" ]
1
2016-02-01T12:55:13.000Z
2016-02-01T12:55:13.000Z
owscapable/swe/common.py
b-cube/OwsCapable
a01815418fe982434503d6542cb18e1ac8989684
[ "BSD-3-Clause" ]
1
2015-06-23T14:07:50.000Z
2015-06-23T14:07:50.000Z
owscapable/swe/common.py
b-cube/OwsCapable
a01815418fe982434503d6542cb18e1ac8989684
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function) from owscapable.util import nspath_eval from owscapable.namespaces import Namespaces from owscapable.util import testXMLAttribute, testXMLValue, InfiniteDateTime, NegativeInfiniteDateTime from dateutil import parser from datetime import timedelta fro...
43.200969
172
0.619325
1,838
17,842
5.84494
0.121872
0.04105
0.054454
0.072605
0.567067
0.496789
0.380434
0.3459
0.314717
0.314717
0
0.015447
0.267066
17,842
412
173
43.305825
0.806072
0.081045
0
0.417476
0
0
0.0886
0.021916
0
0
0
0
0
1
0.152104
false
0.003236
0.022654
0.016181
0.372168
0.006472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43c2d697bacb0820c4e842d6861cb1732909d8a0
11,386
py
Python
main_fed.py
gao969/scaffold-dgc-clustering
9f259dfdf0897dcb1dece2e1197268f585f54a69
[ "MIT" ]
null
null
null
main_fed.py
gao969/scaffold-dgc-clustering
9f259dfdf0897dcb1dece2e1197268f585f54a69
[ "MIT" ]
null
null
null
main_fed.py
gao969/scaffold-dgc-clustering
9f259dfdf0897dcb1dece2e1197268f585f54a69
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import copy import numpy as np from torchvision import datasets, transforms import torch import os import torch.distributed as dist from utils.sampling import mnist_iid, mnist_non...
35.033846
136
0.584578
1,505
11,386
4.2
0.168771
0.021041
0.022781
0.016137
0.528239
0.469862
0.399462
0.347888
0.313083
0.304224
0
0.014306
0.25101
11,386
324
137
35.141975
0.7269
0.14711
0
0.357513
0
0
0.065379
0.006985
0
0
0
0
0
1
0
false
0
0.093264
0
0.093264
0.056995
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43c3bca28b83f4b20caa188f5ac7f59f03173404
2,085
py
Python
b_lambda_layer_common_test/integration/infrastructure/function_with_unit_tests.py
gkazla/B.LambdaLayerCommon
1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980
[ "Apache-2.0" ]
null
null
null
b_lambda_layer_common_test/integration/infrastructure/function_with_unit_tests.py
gkazla/B.LambdaLayerCommon
1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980
[ "Apache-2.0" ]
null
null
null
b_lambda_layer_common_test/integration/infrastructure/function_with_unit_tests.py
gkazla/B.LambdaLayerCommon
1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980
[ "Apache-2.0" ]
null
null
null
from aws_cdk.aws_lambda import Function, Code, Runtime from aws_cdk.core import Stack, Duration from b_aws_testing_framework.tools.cdk_testing.testing_stack import TestingStack from b_cfn_lambda_layer.package_version import PackageVersion from b_lambda_layer_common.layer import Layer from b_lambda_layer_common_test.un...
47.386364
129
0.601918
230
2,085
5.278261
0.513043
0.074135
0.079077
0.102142
0.088962
0
0
0
0
0
0
0.013533
0.326619
2,085
43
130
48.488372
0.85114
0.268585
0
0.068966
0
0
0.122081
0.070714
0
0
0
0
0
1
0.034483
false
0
0.241379
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43c657c522f9cb22a9a0ca2bb0912e5da035332c
7,309
py
Python
slow_tests/boot_test.py
rdturnermtl/mlpaper
5da5cb7b3a56d3cfdc7162d01fac2679c9050e76
[ "Apache-2.0" ]
9
2020-07-23T02:12:48.000Z
2021-06-24T08:19:08.000Z
slow_tests/boot_test.py
rdturnermtl/benchmark_tools
5da5cb7b3a56d3cfdc7162d01fac2679c9050e76
[ "Apache-2.0" ]
14
2017-11-29T04:17:04.000Z
2018-03-07T00:35:00.000Z
slow_tests/boot_test.py
rdturnermtl/mlpaper
5da5cb7b3a56d3cfdc7162d01fac2679c9050e76
[ "Apache-2.0" ]
1
2017-12-29T01:46:31.000Z
2017-12-29T01:46:31.000Z
# Ryan Turner (turnerry@iro.umontreal.ca) from __future__ import division, print_function from builtins import range import numpy as np import scipy.stats as ss import mlpaper.constants as cc import mlpaper.mlpaper as bt import mlpaper.perf_curves as pc from mlpaper.classification import DEFAULT_NGRID, curve_boot fr...
35.480583
118
0.623341
1,176
7,309
3.614796
0.182823
0.035286
0.027523
0.031757
0.516349
0.478946
0.401553
0.320866
0.283227
0.207245
0
0.031711
0.257901
7,309
205
119
35.653659
0.752028
0.0877
0
0.194969
0
0
0.011128
0
0
0
0
0
0.062893
1
0.037736
false
0.006289
0.062893
0
0.113208
0.062893
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43c90a0a29279010bde058050d6af3ae4d07f61d
3,047
py
Python
core/test/test_timeseries_study.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
core/test/test_timeseries_study.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
core/test/test_timeseries_study.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
from typing import Any, Dict import numpy as np import pandas as pd import core.artificial_signal_generators as sig_gen import core.statistics as stats import core.timeseries_study as tss import helpers.unit_test as hut class TestTimeSeriesDailyStudy(hut.TestCase): def test_usual_case(self) -> None: idx...
33.855556
72
0.628159
393
3,047
4.56743
0.307888
0.050139
0.020056
0.033426
0.547632
0.547632
0.547632
0.547632
0.547632
0.547632
0
0.02815
0.265507
3,047
89
73
34.235955
0.773905
0
0
0.441558
0
0
0.04168
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.246753
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43cc95eb28ba86bd35c1811cb4456f10d8f69c56
380
py
Python
forecasting_algorithms/Multiple_Timeseries/VAR/var.py
ans682/SafePredict_and_Forecasting
30ac5a0b665fce090567476bc07b54489b2f3d0f
[ "BSD-3-Clause" ]
1
2021-08-05T23:01:47.000Z
2021-08-05T23:01:47.000Z
forecasting_algorithms/Multiple_Timeseries/VAR/var.py
ans682/SafePredict_and_Forecasting
30ac5a0b665fce090567476bc07b54489b2f3d0f
[ "BSD-3-Clause" ]
1
2021-12-22T08:26:13.000Z
2021-12-22T08:26:13.000Z
forecasting_algorithms/Multiple_Timeseries/VAR/var.py
ans682/SafePredict_and_Forecasting
30ac5a0b665fce090567476bc07b54489b2f3d0f
[ "BSD-3-Clause" ]
null
null
null
# VAR example from statsmodels.tsa.vector_ar.var_model import VAR from random import random # contrived dataset with dependency data = list() for i in range(100): v1 = i + random() v2 = v1 + random() row = [v1, v2] data.append(row) # fit model model = VAR(data) model_fit = model.fit() # make prediction ...
22.352941
51
0.697368
60
380
4.333333
0.566667
0.123077
0
0
0
0
0
0
0
0
0
0.029126
0.186842
380
16
52
23.75
0.812298
0.186842
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43ccba90b50389b99008103e1fcff4ea674ca290
2,140
py
Python
candidate-scrape.py
jonykarki/hamroscraper
a7e34a9cdca89be10422d045f1ed34e9956bd75f
[ "MIT" ]
2
2019-09-23T23:41:44.000Z
2019-10-06T03:13:17.000Z
candidate-scrape.py
jonykarki/hamroscraper
a7e34a9cdca89be10422d045f1ed34e9956bd75f
[ "MIT" ]
null
null
null
candidate-scrape.py
jonykarki/hamroscraper
a7e34a9cdca89be10422d045f1ed34e9956bd75f
[ "MIT" ]
4
2019-11-26T18:29:20.000Z
2021-01-22T06:30:20.000Z
import json import urllib.request import MySQLdb db = MySQLdb.connect(host="localhost", # your host, usually localhost user="root", # your username passwd="", # your password db="election") cur = db.cursor() # user_agent for sending headers w...
27.792208
105
0.619159
267
2,140
4.913858
0.441948
0.027439
0.036585
0.019817
0.07622
0.041159
0
0
0
0
0
0.020744
0.234112
2,140
76
106
28.157895
0.779744
0.120093
0
0
0
0.051282
0.322562
0
0
0
0
0
0
1
0
false
0.025641
0.076923
0
0.076923
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43cde366d5fb7850e5493e9384c566462676fb5d
3,101
py
Python
sangita/hindi/lemmatizer.py
ashiscs/sangita
b90c49859339147137db1c2bdb60a1039a00c706
[ "Apache-2.0" ]
36
2017-05-30T04:41:06.000Z
2019-02-17T08:41:10.000Z
sangita/hindi/lemmatizer.py
07kshitij/sangita
b90c49859339147137db1c2bdb60a1039a00c706
[ "Apache-2.0" ]
13
2018-06-25T11:14:48.000Z
2021-05-15T17:57:47.000Z
sangita/hindi/lemmatizer.py
07kshitij/sangita
b90c49859339147137db1c2bdb60a1039a00c706
[ "Apache-2.0" ]
33
2018-06-23T21:46:39.000Z
2022-03-01T15:55:37.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 9 23:28:21 2017 @author: samriddhi """ import re import sangita.hindi.tokenizer as tok import sangita.hindi.corpora.lemmata as lt def numericLemmatizer(instr): lst = type([1,2,3]) tup = type(("Hello", "Hi")) string = type("Hello") ...
27.936937
209
0.507256
436
3,101
3.713303
0.302752
0.080296
0.064855
0.086473
0.510191
0.48672
0.413836
0.413836
0.339716
0.26189
0
0.03134
0.331183
3,101
111
210
27.936937
0.719383
0.031925
0
0.564103
0
0.012821
0.118904
0.026052
0
0
0
0
0
1
0.051282
false
0
0.038462
0
0.089744
0.089744
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43cfdd42faa2065cb7d2cefc439413b4ed53c719
4,471
py
Python
markdown_editing/tests/test_extension.py
makyo/markdown-editing
ecbc8970f4d416038f9d2c46fae22d4dbb79c647
[ "MIT" ]
null
null
null
markdown_editing/tests/test_extension.py
makyo/markdown-editing
ecbc8970f4d416038f9d2c46fae22d4dbb79c647
[ "MIT" ]
null
null
null
markdown_editing/tests/test_extension.py
makyo/markdown-editing
ecbc8970f4d416038f9d2c46fae22d4dbb79c647
[ "MIT" ]
null
null
null
from markdown import markdown from unittest import TestCase from markdown_editing.extension import EditingExtension class TestExtension(TestCase): def test_substitution(self): source = '~{out with the old}{in with the new}' expected = '<p><span class="substitution"><del>out with the old</del><in...
39.566372
224
0.636547
612
4,471
4.633987
0.150327
0.049365
0.059591
0.045839
0.605078
0.575811
0.520099
0.494711
0.47708
0.47708
0
0.008738
0.180944
4,471
112
225
39.919643
0.765702
0.006263
0
0.440476
0
0.190476
0.593018
0.177252
0
0
0
0
0.107143
1
0.095238
false
0
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43cffed323ab5de7f6be36b25de0a210ece3af09
15,477
py
Python
apps/siren/test_handlers.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
15
2019-02-12T23:26:09.000Z
2021-12-21T08:53:58.000Z
apps/siren/test_handlers.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
2
2019-01-23T21:13:12.000Z
2019-06-28T15:45:51.000Z
apps/siren/test_handlers.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
6
2019-01-23T20:22:50.000Z
2022-02-03T03:27:04.000Z
""" SIREN/DIANA basic functionality testing framework Requires env vars: - GMAIL_USER - GMAIL_APP_PASSWORD - GMAIL_BASE_NAME -- ie, abc -> abc+hobitduke@gmail.com These env vars are set to default: - ORTHANC_PASSWORD - SPLUNK_PASSWORD - SPLUNK_HEC_TOKEN TODO: Move stuff to archive after collected TODO: Write data i...
27.588235
151
0.648511
1,917
15,477
5.063641
0.18049
0.016689
0.022767
0.026785
0.461523
0.419594
0.382301
0.347687
0.315752
0.30648
0
0.006187
0.237708
15,477
560
152
27.6375
0.816579
0.116625
0
0.453039
0
0.002762
0.1091
0.010152
0
0
0
0.005357
0.099448
1
0.041436
false
0.035912
0.071823
0
0.146409
0.110497
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d0fea901e478a41a7213fecbddf4d86fc4b79e
6,735
py
Python
deptree.py
jeking3/boost-deptree
27eda54df2d022af17347df4ba4892c39392e474
[ "BSL-1.0" ]
null
null
null
deptree.py
jeking3/boost-deptree
27eda54df2d022af17347df4ba4892c39392e474
[ "BSL-1.0" ]
null
null
null
deptree.py
jeking3/boost-deptree
27eda54df2d022af17347df4ba4892c39392e474
[ "BSL-1.0" ]
null
null
null
# # Copyright (c) 2019 James E. King III # # Use, modification, and distribution are subject to the # Boost Software License, Version 1.0. (See accompanying file # LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) # import json import networkx import re from pathlib import Path class BoostDependencyT...
40.572289
111
0.515367
754
6,735
4.519894
0.287798
0.032864
0.028169
0.015845
0.17723
0.163732
0.139671
0.139671
0.139671
0.139671
0
0.011604
0.360208
6,735
165
112
40.818182
0.779299
0.120267
0
0.162602
0
0
0.158221
0.011548
0
0
0
0
0.01626
1
0.04878
false
0
0.04065
0
0.113821
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d13fbbdf77afe2138ccc76bfc3468760cf2d47
7,357
py
Python
uberbackend.py
adiHusky/uber_backend
adc78882c081f7636b809d6e1889ba3297309e20
[ "MIT" ]
null
null
null
uberbackend.py
adiHusky/uber_backend
adc78882c081f7636b809d6e1889ba3297309e20
[ "MIT" ]
null
null
null
uberbackend.py
adiHusky/uber_backend
adc78882c081f7636b809d6e1889ba3297309e20
[ "MIT" ]
null
null
null
from flask import Flask, flash, request, jsonify, render_template, redirect, url_for, g, session, send_from_directory, abort from flask_cors import CORS # from flask import status from datetime import date, datetime, timedelta from calendar import monthrange from dateutil.parser import parse import pytz import os impor...
29.079051
124
0.652984
857
7,357
5.472579
0.33839
0.03049
0.012793
0.014499
0.196802
0.196802
0.180597
0.166311
0.155224
0.155224
0
0.014393
0.206742
7,357
252
125
29.194444
0.789239
0.221286
0
0.27027
0
0.013514
0.1195
0.026073
0
0
0
0
0
1
0.101351
false
0
0.135135
0.013514
0.310811
0.060811
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d2040db0a01d747e5d0a9ffdc2859f95f69610
6,359
py
Python
sppas/sppas/src/models/acm/htkscripts.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/models/acm/htkscripts.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/models/acm/htkscripts.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
""" .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ analysis ___/...
32.610256
80
0.492845
703
6,359
4.375533
0.268848
0.054616
0.046814
0.03316
0.421326
0.380364
0.352731
0.290312
0.265605
0.265605
0
0.008132
0.284479
6,359
194
81
32.778351
0.667912
0.465797
0
0.453333
0
0
0.150391
0.009115
0
0
0
0
0
1
0.106667
false
0
0.04
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d3b50d90e2618726a0619c25ddcb995a36172f
2,961
py
Python
icekit/plugins/map/tests.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit/plugins/map/tests.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit/plugins/map/tests.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
from mock import patch from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from django.core import exceptions from django_dynamic_fixture import G from django_webtest import WebTest from icekit.models import Layout from...
38.960526
381
0.67207
375
2,961
5.106667
0.341333
0.058486
0.065796
0.031332
0.315405
0.267363
0.240209
0.240209
0.240209
0.240209
0
0.12706
0.221209
2,961
75
382
39.48
0.703382
0
0
0.031746
0
0.031746
0.306991
0.009119
0
0
0
0
0.015873
1
0.047619
false
0
0.174603
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d619ff813d6467445c26ac811f7e5c110c5dd3
729
py
Python
terminalone/models/concept.py
amehta1/t1-python
4f7eb0bec7671b29baf3105b8cafafb373107e7b
[ "Apache-2.0" ]
24
2015-07-09T18:49:10.000Z
2021-06-07T18:36:58.000Z
terminalone/models/concept.py
amehta1/t1-python
4f7eb0bec7671b29baf3105b8cafafb373107e7b
[ "Apache-2.0" ]
100
2015-07-13T20:24:50.000Z
2020-08-10T11:16:39.000Z
terminalone/models/concept.py
amehta1/t1-python
4f7eb0bec7671b29baf3105b8cafafb373107e7b
[ "Apache-2.0" ]
36
2015-07-09T18:51:48.000Z
2022-02-14T22:44:37.000Z
# -*- coding: utf-8 -*- """Provides concept object.""" from __future__ import absolute_import from .. import t1types from ..entity import Entity class Concept(Entity): """Concept entity.""" collection = 'concepts' resource = 'concept' _relations = { 'advertiser', } _pull = { '...
22.78125
68
0.581619
73
729
5.493151
0.561644
0.064838
0.069825
0
0
0
0
0
0
0
0
0.009399
0.270233
729
31
69
23.516129
0.744361
0.08642
0
0
0
0
0.126718
0
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d690157e44125280f30cea5097fb9b835832b6
932
py
Python
videofeed.py
dmeklund/asyncdemo
956f193c0fa38744965362966ac7f8ef224409b4
[ "MIT" ]
null
null
null
videofeed.py
dmeklund/asyncdemo
956f193c0fa38744965362966ac7f8ef224409b4
[ "MIT" ]
null
null
null
videofeed.py
dmeklund/asyncdemo
956f193c0fa38744965362966ac7f8ef224409b4
[ "MIT" ]
null
null
null
""" Mock up a video feed pipeline """ import asyncio import logging import sys import cv2 logging.basicConfig(format="[%(thread)-5d]%(asctime)s: %(message)s") logger = logging.getLogger('async') logger.setLevel(logging.INFO) async def process_video(filename): cap = cv2.VideoCapture(filename) tasks = list() ...
22.731707
76
0.687768
123
932
5.02439
0.471545
0.07767
0.048544
0.071197
0.174757
0
0
0
0
0
0
0.013021
0.175966
932
40
77
23.3
0.791667
0.031116
0
0
0
0
0.119553
0.02905
0
0
0
0
0
1
0.037037
false
0
0.148148
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d763b4860a448a07b1ac979d461dd9025028b9
11,807
py
Python
parsers/read_lspci_and_glxinfo.py
mikeus9908/peracotta
c54c351acae8afec250185f4bc714a2f86c47c90
[ "MIT" ]
3
2019-04-01T17:28:20.000Z
2020-11-19T17:25:32.000Z
parsers/read_lspci_and_glxinfo.py
mikeus9908/peracotta
c54c351acae8afec250185f4bc714a2f86c47c90
[ "MIT" ]
142
2018-11-05T18:13:13.000Z
2022-03-12T17:43:40.000Z
parsers/read_lspci_and_glxinfo.py
mikeus9908/peracotta
c54c351acae8afec250185f4bc714a2f86c47c90
[ "MIT" ]
10
2019-10-25T12:28:37.000Z
2021-05-17T17:32:56.000Z
#!/usr/bin/python3 """ Read "lspci -v" and "glxinfo" outputs """ import re from dataclasses import dataclass from InputFileNotFoundError import InputFileNotFoundError @dataclass class VideoCard: type = "graphics-card" manufacturer_brand = "" reseller_brand = "" internal_name = "" model = "" ...
40.023729
121
0.510206
1,249
11,807
4.670136
0.224179
0.042345
0.049374
0.04286
0.318704
0.271901
0.223727
0.143151
0.083319
0.083319
0
0.011693
0.348099
11,807
294
122
40.159864
0.746135
0.187008
0
0.21659
0
0.009217
0.11644
0.007749
0
0
0
0
0
1
0.018433
false
0.004608
0.023041
0
0.096774
0.018433
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d87b5ab1e5e10305ebbe366e85481beb47273f
2,637
py
Python
chapter2/intogen-arrays/src/mrna/mrna_comb_gene_classif.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter2/intogen-arrays/src/mrna/mrna_comb_gene_classif.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/intogen-arrays/src/mrna/mrna_comb_gene_classif.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """ Classify oncodrive gene results and prepare for combination * Configuration parameters: - The ones required by intogen.data.entity.EntityManagerFactory * Input: - oncodrive_ids: The mrna.oncodrive_genes to process * Output: - combinations: The mrna.combination prepared to be calculated ...
21.975
115
0.680319
365
2,637
4.753425
0.334247
0.031124
0.051873
0.039769
0.079539
0.079539
0.044957
0.044957
0.044957
0.044957
0
0.006306
0.158134
2,637
119
116
22.159664
0.775225
0.14562
0
0.03125
0
0
0.22247
0
0
0
0
0
0
1
0.015625
false
0
0.09375
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43d983edaa81a2f049c07647c3d3908b2dea574f
1,605
py
Python
configs/utils/config_generator.py
user-wu/SOD_eval_metrics
d5b8804580cb52a4237c8e613818d10591dc6597
[ "MIT" ]
null
null
null
configs/utils/config_generator.py
user-wu/SOD_eval_metrics
d5b8804580cb52a4237c8e613818d10591dc6597
[ "MIT" ]
null
null
null
configs/utils/config_generator.py
user-wu/SOD_eval_metrics
d5b8804580cb52a4237c8e613818d10591dc6597
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from matplotlib import colors # max = 148 _COLOR_Genarator = iter( sorted( [ color for name, color in colors.cnames.items() if name not in ["red", "white"] or not name.startswith("light") or "gray" in name ] ) ) def curve_info_gener...
29.181818
93
0.598754
186
1,605
4.806452
0.284946
0.090604
0.10179
0.107383
0.479866
0.448546
0.246085
0.105145
0.105145
0
0
0.0045
0.307788
1,605
54
94
29.722222
0.80018
0.042991
0
0.146341
0
0
0.078329
0
0
0
0
0
0
1
0.097561
false
0
0.02439
0
0.219512
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43db9748cf12932e64e00e512404058350f2661e
1,151
py
Python
core/sms_service.py
kartik1000/jcc-registration-portal
053eade1122fa760ae112a8599a396d68dfb16b8
[ "MIT" ]
null
null
null
core/sms_service.py
kartik1000/jcc-registration-portal
053eade1122fa760ae112a8599a396d68dfb16b8
[ "MIT" ]
null
null
null
core/sms_service.py
kartik1000/jcc-registration-portal
053eade1122fa760ae112a8599a396d68dfb16b8
[ "MIT" ]
null
null
null
from urllib.parse import urlencode from decouple import config import hashlib import requests BASE = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" auth_key = config('AUTH_KEY') url = 'http://sms.globehost.com/api/sendhttp.php?' def encode_base(num, array=BASE): if(num == 0): return arr...
23.979167
72
0.644657
140
1,151
5.214286
0.578571
0.028767
0
0
0
0
0
0
0
0
0
0.022676
0.23371
1,151
47
73
24.489362
0.804989
0
0
0
0
0
0.241739
0.053913
0
0
0
0
0
1
0.083333
false
0
0.111111
0
0.305556
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43dc511c1276023b6e01df3b43e2f8d7dd243462
1,522
py
Python
scripts/fetch_images.py
Protagonistss/sanic-for-v3
ba7e94273b77914b8d85d67cf513041ada00780d
[ "MIT" ]
null
null
null
scripts/fetch_images.py
Protagonistss/sanic-for-v3
ba7e94273b77914b8d85d67cf513041ada00780d
[ "MIT" ]
null
null
null
scripts/fetch_images.py
Protagonistss/sanic-for-v3
ba7e94273b77914b8d85d67cf513041ada00780d
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.pardir) import random import time import requests from contextlib import closing from help import utils from threading import Thread def get_train_set_path(path: str): create_path = utils.join_root_path(path) return create_path def create_train_set_dir(path='auth-se...
24.15873
79
0.660972
223
1,522
4.286996
0.408072
0.041841
0.066946
0.047071
0.103556
0
0
0
0
0
0
0.025726
0.208279
1,522
62
80
24.548387
0.767635
0
0
0
0
0
0.074901
0
0
0
0
0
0
1
0.130435
false
0
0.173913
0
0.369565
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
43dd49ec321203c525ba8f13879673eb4d300e9f
3,912
py
Python
GeneralStats/example.py
haoruilee/statslibrary
01494043bc7fb82d4aa6d7d550a4e7dc2ac0503a
[ "MIT" ]
58
2019-02-04T13:53:16.000Z
2022-02-24T02:59:55.000Z
GeneralStats/example.py
haoruilee/statslibrary
01494043bc7fb82d4aa6d7d550a4e7dc2ac0503a
[ "MIT" ]
null
null
null
GeneralStats/example.py
haoruilee/statslibrary
01494043bc7fb82d4aa6d7d550a4e7dc2ac0503a
[ "MIT" ]
19
2019-03-21T01:54:55.000Z
2021-12-03T13:55:16.000Z
import GeneralStats as gs import numpy as np from scipy.stats import skew from scipy.stats import kurtosistest import pandas as pd if __name__ == "__main__": gen=gs.GeneralStats() data=np.array([[1, 1, 2, 2, 3],[2, 2, 3, 3, 5],[1, 4, 3, 3, 3],[2, 4, 5, 5, 3]]) data1=np.array([1,2,3,4,5]) ...
36.222222
109
0.576431
666
3,912
3.358859
0.129129
0.024139
0.024139
0.048279
0.49173
0.39249
0.323201
0.289227
0.267769
0.223961
0
0.114954
0.201687
3,912
107
110
36.560748
0.601345
0.018149
0
0.197674
0
0
0.123357
0
0
0
0
0
0
1
0
false
0
0.05814
0
0.05814
0.348837
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43de15a64fd73557d8ace8fe63e08534f03c9747
400
py
Python
intro/matplotlib/examples/plot_good.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
2,538
2015-01-01T04:58:41.000Z
2022-03-31T21:06:05.000Z
intro/matplotlib/examples/plot_good.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
362
2015-01-18T14:16:23.000Z
2021-11-18T16:24:34.000Z
intro/matplotlib/examples/plot_good.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
1,127
2015-01-05T14:39:29.000Z
2022-03-25T08:38:39.000Z
""" A simple, good-looking plot =========================== Demoing some simple features of matplotlib """ import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig = plt.figure(figsize=(5, 4), dpi=72) axes = fig.add_axes([0.01, 0.01, .98, 0.98]) X = np.linspace(0, 2, 200) Y = np...
18.181818
44
0.625
73
400
3.410959
0.575342
0.024096
0.024096
0
0
0
0
0
0
0
0
0.075145
0.135
400
21
45
19.047619
0.644509
0.2475
0
0
0
0
0.010239
0
0
0
0
0
0
1
0
false
0
0.25
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
43de29ccab29a96dd8a22a7b82fb926f80943d99
4,087
py
Python
pfio/_context.py
HiroakiMikami/pfio
1ac997dcba7babd5d91dd8c4f2793d27a6bab69b
[ "MIT" ]
24
2020-05-23T13:00:27.000Z
2022-02-17T05:20:51.000Z
pfio/_context.py
HiroakiMikami/pfio
1ac997dcba7babd5d91dd8c4f2793d27a6bab69b
[ "MIT" ]
88
2020-05-01T06:56:50.000Z
2022-03-16T07:15:34.000Z
pfio/_context.py
HiroakiMikami/pfio
1ac997dcba7babd5d91dd8c4f2793d27a6bab69b
[ "MIT" ]
9
2020-05-07T05:47:35.000Z
2022-02-09T05:42:56.000Z
import os import re from typing import Tuple from pfio._typing import Union from pfio.container import Container from pfio.io import IO, create_fs_handler class FileSystemDriverList(object): def __init__(self): # TODO(tianqi): dynamically create this list # as well as the patterns upon loading th...
35.232759
79
0.614387
528
4,087
4.445076
0.168561
0.025565
0.040903
0.04346
0.325522
0.261184
0.220281
0.163613
0.13464
0.097997
0
0.000342
0.284805
4,087
115
80
35.53913
0.8026
0.031563
0
0.306818
0
0
0.029084
0.010622
0
0
0
0.008696
0.011364
1
0.147727
false
0
0.068182
0.045455
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43e09c3343b0c13466ea8190e66d19dfafb80ae6
9,330
py
Python
parser/fase2/team19/Analisis_Ascendente/Instrucciones/PLPGSQL/Ifpl.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team19/Analisis_Ascendente/Instrucciones/PLPGSQL/Ifpl.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team19/Analisis_Ascendente/Instrucciones/PLPGSQL/Ifpl.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
import Analisis_Ascendente.Instrucciones.PLPGSQL.EjecutarFuncion as EjecutarFuncion from Analisis_Ascendente.Instrucciones.PLPGSQL.plasignacion import Plasignacion from Analisis_Ascendente.Instrucciones.instruccion import Instruccion from Analisis_Ascendente.Instrucciones.Create.createTable import CreateTable from ...
47.121212
111
0.653805
977
9,330
6.116684
0.138178
0.048193
0.10174
0.152276
0.479418
0.309739
0.271921
0.24247
0.11178
0.077644
0
0.006305
0.251983
9,330
197
112
47.360406
0.849979
0.028296
0
0.148571
0
0
0.040158
0.005656
0
0
0
0
0
1
0.028571
false
0.005714
0.188571
0
0.24
0.005714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43e232a6058aefed0715e6e5fea4ed4fd550c388
6,067
py
Python
pyhwpscan/hwp_scan.py
orca-eaa5a/dokkaebi_scanner
756314376e2cbbce6c03fd908ebd0b8cc27aa7fc
[ "MIT" ]
null
null
null
pyhwpscan/hwp_scan.py
orca-eaa5a/dokkaebi_scanner
756314376e2cbbce6c03fd908ebd0b8cc27aa7fc
[ "MIT" ]
1
2022-02-17T15:01:29.000Z
2022-02-20T07:15:31.000Z
pyhwpscan/hwp_scan.py
orca-eaa5a/dokkaebi_scanner
756314376e2cbbce6c03fd908ebd0b8cc27aa7fc
[ "MIT" ]
null
null
null
from threading import current_thread from jsbeautifier.javascript.beautifier import remove_redundant_indentation from pyparser.oleparser import OleParser from pyparser.hwp_parser import HwpParser from scan.init_scan import init_hwp5_scan from scan.bindata_scanner import BinData_Scanner from scan.jscript_scanner import...
29.309179
102
0.543926
696
6,067
4.512931
0.201149
0.031519
0.037249
0.017829
0.247692
0.215855
0.187838
0.187838
0.187838
0.187838
0
0.007782
0.364595
6,067
207
103
29.309179
0.807004
0.000659
0
0.246988
0
0
0.077004
0
0
0
0
0
0
1
0.036145
false
0.012048
0.084337
0
0.192771
0.114458
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43e2e7854a4f56963d0c0900b0d6355f030a3675
339
py
Python
commands/source.py
Open-Source-eUdeC/UdeCursos-bot
f900073044e1c74532af532618672501c0a43a13
[ "MIT" ]
3
2022-03-01T17:14:06.000Z
2022-03-15T21:15:44.000Z
commands/source.py
Open-Source-eUdeC/UdeCursos-bot
f900073044e1c74532af532618672501c0a43a13
[ "MIT" ]
1
2022-03-07T20:59:20.000Z
2022-03-07T20:59:20.000Z
commands/source.py
Open-Source-eUdeC/UdeCursos-bot
f900073044e1c74532af532618672501c0a43a13
[ "MIT" ]
2
2022-02-28T19:32:54.000Z
2022-03-12T20:19:39.000Z
async def source(update, context): source_code = "https://github.com/Open-Source-eUdeC/UdeCursos-bot" await context.bot.send_message( chat_id=update.effective_chat.id, text=( "*UdeCursos bot v2.0*\n\n" f"Código fuente: [GitHub]({source_code})" ), parse_mod...
30.818182
70
0.60177
42
339
4.714286
0.690476
0.10101
0
0
0
0
0
0
0
0
0
0.007968
0.259587
339
10
71
33.9
0.780876
0
0
0
0
0
0.353982
0.067847
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43e3929f6d656cd5f3e6cf6054493ace5b92bd70
1,255
py
Python
history/tests.py
MPIB/Lagerregal
3c950dffcf4fa164008c5a304c4839bc282a3388
[ "BSD-3-Clause" ]
24
2017-03-19T16:17:37.000Z
2021-11-07T15:35:33.000Z
history/tests.py
MPIB/Lagerregal
3c950dffcf4fa164008c5a304c4839bc282a3388
[ "BSD-3-Clause" ]
117
2016-04-19T12:35:10.000Z
2022-02-22T13:19:05.000Z
history/tests.py
MPIB/Lagerregal
3c950dffcf4fa164008c5a304c4839bc282a3388
[ "BSD-3-Clause" ]
11
2017-08-08T12:11:39.000Z
2021-12-08T05:34:06.000Z
from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django.test.client import Client from model_mommy import mommy from devices.models import Device from users.models import Lageruser class HistoryTests(TestCase): def setUp(self): self.client = Client() ...
34.861111
88
0.67251
155
1,255
5.354839
0.341935
0.072289
0.086747
0.139759
0.36506
0.285542
0.19759
0.103614
0
0
0
0.012948
0.2
1,255
35
89
35.857143
0.813745
0
0
0.178571
0
0
0.093227
0
0
0
0
0
0.142857
1
0.142857
false
0.035714
0.214286
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78db3efa5c77dd290cf1467f8ac973b8fc19949b
13,168
py
Python
watcher_metering/tests/agent/test_agent.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
2
2015-10-22T19:44:57.000Z
2017-06-15T15:01:07.000Z
watcher_metering/tests/agent/test_agent.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
1
2015-10-26T13:52:58.000Z
2015-10-26T13:52:58.000Z
watcher_metering/tests/agent/test_agent.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
4
2015-10-10T13:59:39.000Z
2020-05-29T11:47:07.000Z
# -*- encoding: utf-8 -*- # Copyright (c) 2015 b<>com # # 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 o...
40.024316
79
0.659478
1,546
13,168
5.329884
0.192756
0.052427
0.020631
0.024272
0.471238
0.450364
0.403884
0.365413
0.330461
0.309223
0
0.007855
0.255544
13,168
328
80
40.146341
0.832704
0.128645
0
0.359504
0
0
0.121215
0.080606
0
0
0
0
0.169421
1
0.061983
false
0
0.082645
0.008264
0.161157
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78dce9aa3f78b6fd58cffc69a08166742b99da9b
31,044
py
Python
mmtbx/bulk_solvent/mosaic.py
ndevenish/cctbx_project
1f1a2627ae20d01d403f367948e7269cef0f0217
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/bulk_solvent/mosaic.py
ndevenish/cctbx_project
1f1a2627ae20d01d403f367948e7269cef0f0217
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/bulk_solvent/mosaic.py
ndevenish/cctbx_project
1f1a2627ae20d01d403f367948e7269cef0f0217
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function from cctbx.array_family import flex from scitbx import matrix import math from libtbx import adopt_init_args import scitbx.lbfgs from mmtbx.bulk_solvent import kbu_refinery from cctbx import maptbx import mmtbx.masks import boost_adaptbx.boost.python as b...
36.266355
107
0.60862
4,735
31,044
3.726716
0.099683
0.020118
0.009521
0.00714
0.469738
0.3938
0.346537
0.311119
0.27077
0.257792
0
0.017564
0.251739
31,044
855
108
36.308772
0.74209
0.161996
0
0.261755
0
0
0.01066
0.00093
0
0
0
0
0.010972
1
0.043887
false
0
0.03605
0.007837
0.111285
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78de98de938be5cc3ac224e5095778425f0adabc
14,828
py
Python
members_abundances_in_out_uncertainties.py
kcotar/Gaia_clusters_potential
aee2658c40446891d31528f8dec3cec899b63c68
[ "MIT" ]
null
null
null
members_abundances_in_out_uncertainties.py
kcotar/Gaia_clusters_potential
aee2658c40446891d31528f8dec3cec899b63c68
[ "MIT" ]
null
null
null
members_abundances_in_out_uncertainties.py
kcotar/Gaia_clusters_potential
aee2658c40446891d31528f8dec3cec899b63c68
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt from glob import glob from astropy.table import Table, join from os import chdir, system from scipy.stats import norm as gauss_norm from sys import argv from getopt import getopt # turn off polyfit ranking warnings import warnin...
43.740413
215
0.55874
2,191
14,828
3.502054
0.160201
0.070377
0.028151
0.011729
0.486641
0.447934
0.397889
0.372214
0.343151
0.324645
0
0.030922
0.293364
14,828
338
216
43.869822
0.701374
0.069059
0
0.279528
0
0
0.092328
0.022792
0
0
0
0
0
1
0.019685
false
0.003937
0.03937
0
0.082677
0.035433
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78e3235c058d0f0d01fe78bcda45b0e5210cc956
3,798
py
Python
modules/pygsm/devicewrapper.py
whanderley/eden
08ced3be3d52352c54cbd412ed86128fbb68b1d2
[ "MIT" ]
205
2015-01-20T08:26:09.000Z
2022-03-27T19:59:33.000Z
modules/pygsm/devicewrapper.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
249
2015-02-10T09:56:35.000Z
2022-03-23T19:54:36.000Z
modules/pygsm/devicewrapper.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
231
2015-02-10T09:33:17.000Z
2022-02-18T19:56:05.000Z
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 # arch: pacman -S python-pyserial # debian/ubuntu: apt-get install python-serial import serial import re import errors class DeviceWrapper(object): def __init__(self, logger, *args, **kwargs): self.device = serial.Serial(*args, **kwarg...
35.166667
84
0.561611
472
3,798
4.419492
0.402542
0.034516
0.012943
0.01534
0.073826
0.073826
0.052733
0.052733
0.052733
0.052733
0
0.002014
0.346235
3,798
108
85
35.166667
0.838099
0.386256
0
0.185185
0
0
0.022636
0
0
0
0
0
0
1
0.148148
false
0
0.055556
0.018519
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78e6e9a7d73aab5ad3ba5822b10f0996d16afd5b
1,762
py
Python
examples/sim_tfidf.py
sunyilgdx/CwVW-SIF
85ef56d80512e2f6bff1266e030552075566b240
[ "MIT" ]
12
2019-05-14T10:31:53.000Z
2022-01-20T17:16:59.000Z
examples/sim_tfidf.py
sunyilgdx/CwVW-SIF
85ef56d80512e2f6bff1266e030552075566b240
[ "MIT" ]
null
null
null
examples/sim_tfidf.py
sunyilgdx/CwVW-SIF
85ef56d80512e2f6bff1266e030552075566b240
[ "MIT" ]
1
2020-12-21T09:16:51.000Z
2020-12-21T09:16:51.000Z
import pickle, sys sys.path.append('../src') import data_io, sim_algo, eval, params ## run # wordfiles = [#'../data/paragram_sl999_small.txt', # need to download it from John Wieting's github (https://github.com/jwieting/iclr2016) # '../data/glove.840B.300d.txt' # need to download it first # ] wordfiles = [#...
39.155556
139
0.685585
236
1,762
5.012712
0.427966
0.030431
0.030431
0.057481
0.380389
0.316145
0.275571
0.275571
0.275571
0.275571
0
0.028189
0.194665
1,762
44
140
40.045455
0.805497
0.377412
0
0
0
0
0.186803
0.04368
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78e74ab110d94c6516104012ed887badd152a66c
1,602
py
Python
theano-rfnn/mnist_loader.py
jhja/RFNN
a63641d6e584df743a5e0a9efaf41911f057a977
[ "MIT" ]
55
2016-05-11T18:53:30.000Z
2022-02-22T12:31:08.000Z
theano-rfnn/mnist_loader.py
jhja/RFNN
a63641d6e584df743a5e0a9efaf41911f057a977
[ "MIT" ]
null
null
null
theano-rfnn/mnist_loader.py
jhja/RFNN
a63641d6e584df743a5e0a9efaf41911f057a977
[ "MIT" ]
14
2016-08-16T02:00:47.000Z
2022-03-08T13:16:00.000Z
import numpy as np import os from random import shuffle datasets_dir = './../data/' def one_hot(x,n): if type(x) == list: x = np.array(x) x = x.flatten() o_h = np.zeros((len(x),n)) o_h[np.arange(len(x)),x] = 1 return o_h def mnist(ntrain=60000,ntest=10000,onehot=True): ntrain=np.array(ntrain).astype(int).s...
26.262295
63
0.624844
255
1,602
3.839216
0.290196
0.035751
0.051073
0.04903
0.343207
0.343207
0.343207
0.343207
0.277835
0.277835
0
0.052467
0.202871
1,602
60
64
26.7
0.714174
0
0
0.083333
0
0
0.066167
0.05618
0
0
0
0
0
1
0.041667
false
0
0.0625
0
0.145833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78e7d5ba18b9d335d132f7d6ec0d73b6ca3d020d
686
py
Python
Ejercicio 2.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
Ejercicio 2.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
Ejercicio 2.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
import math import os import random import re import sys def compareTriplets(a, b): puntosA=0 puntosB=0 for i in range (0,3): if a[i]<b[i]: puntosB+=1 elif a[i]>b[i]: puntosA+=1 puntosTotales=[puntosA, puntosB] return puntosTotales if __name__ == '__mai...
21.4375
65
0.580175
96
686
4.052083
0.520833
0.082262
0.087404
0.020566
0.246787
0.133676
0
0
0
0
0
0.01378
0.259475
686
32
66
21.4375
0.751969
0
0
0
0
0
0.116448
0
0
0
0
0
0
1
0.04
false
0
0.2
0
0.28
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78f03cf1af94e18c9a855dfd8bbdda1565566674
17,569
py
Python
autokeras/hypermodel/graph.py
Sette/autokeras
c5a83607a899ad545916b3794561d6908d9cdbac
[ "MIT" ]
null
null
null
autokeras/hypermodel/graph.py
Sette/autokeras
c5a83607a899ad545916b3794561d6908d9cdbac
[ "MIT" ]
null
null
null
autokeras/hypermodel/graph.py
Sette/autokeras
c5a83607a899ad545916b3794561d6908d9cdbac
[ "MIT" ]
null
null
null
import functools import pickle import kerastuner import tensorflow as tf from tensorflow.python.util import nest from autokeras.hypermodel import base from autokeras.hypermodel import compiler class Graph(kerastuner.engine.stateful.Stateful): """A graph consists of connected Blocks, HyperBlocks, Preprocessors o...
37.620985
85
0.594001
2,178
17,569
4.557851
0.12213
0.049864
0.025184
0.030221
0.348242
0.26715
0.199557
0.154931
0.117155
0.077667
0
0.000763
0.32859
17,569
466
86
37.701717
0.840793
0.194263
0
0.224359
0
0
0.013887
0
0
0
0
0.002146
0
1
0.099359
false
0
0.022436
0.00641
0.195513
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78f06ac9567797f0104f062bd9b9ac12e57cffa6
474
py
Python
Python/longest-valid-parentheses.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
388
2020-06-29T08:41:27.000Z
2022-03-31T22:55:05.000Z
Python/longest-valid-parentheses.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
178
2020-07-16T17:15:28.000Z
2022-03-09T21:01:50.000Z
Python/longest-valid-parentheses.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
263
2020-07-13T18:33:20.000Z
2022-03-28T13:54:10.000Z
''' Speed: 95.97% Memory: 24.96% Time complexity: O(n) Space complexity: O(n) ''' class Solution(object): def longestValidParentheses(self, s): ans=0 stack=[-1] for i in range(len(s)): if(s[i]=='('): stack.append(i) else: stack.pop() ...
23.7
44
0.436709
56
474
3.696429
0.589286
0.10628
0.115942
0.154589
0
0
0
0
0
0
0
0.043165
0.413502
474
20
45
23.7
0.701439
0.154008
0
0.285714
0
0
0.002538
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78f17ff49e114c184b6a1474d4e3188bcdc4d56c
447
py
Python
setup.py
i25ffz/openaes
a0dbde40d4ce0e4186ea14c4dc9519fe152c018c
[ "BSD-2-Clause" ]
null
null
null
setup.py
i25ffz/openaes
a0dbde40d4ce0e4186ea14c4dc9519fe152c018c
[ "BSD-2-Clause" ]
null
null
null
setup.py
i25ffz/openaes
a0dbde40d4ce0e4186ea14c4dc9519fe152c018c
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup, Extension import os.path kw = { 'name':"PyOpenAES", 'version':"0.10.0", 'description':"OpenAES cryptographic library for Python.", 'ext_modules':[ Extension( 'openaes', include_dirs = ['inc', 'src/isaac'], # define_macros=[('ENABLE_PYTHON', '1')], sources = [ os....
20.318182
59
0.624161
60
447
4.55
0.633333
0.087912
0.10989
0.142857
0.179487
0
0
0
0
0
0
0.013441
0.167785
447
22
60
20.318182
0.72043
0.087248
0
0
0
0
0.371007
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78f2293017d6edca3048eb7b10371f7d73e4c830
967
py
Python
examples/isosurface_demo2.py
jayvdb/scitools
8df53a3a3bc95377f9fa85c04f3a329a0ec33e67
[ "BSD-3-Clause" ]
62
2015-03-28T18:07:51.000Z
2022-02-12T20:32:36.000Z
examples/isosurface_demo2.py
jayvdb/scitools
8df53a3a3bc95377f9fa85c04f3a329a0ec33e67
[ "BSD-3-Clause" ]
7
2015-06-09T09:56:03.000Z
2021-05-20T17:53:15.000Z
examples/isosurface_demo2.py
jayvdb/scitools
8df53a3a3bc95377f9fa85c04f3a329a0ec33e67
[ "BSD-3-Clause" ]
29
2015-04-16T03:48:57.000Z
2022-02-03T22:06:52.000Z
#!/usr/bin/env python # Example taken from: # http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f5-3371.html from scitools.easyviz import * from time import sleep from scipy import io setp(interactive=False) # Displaying an Isosurface: mri = io.loadmat('mri_matlab_v6.mat') D = mri['D'] #Ds = smooth3(D...
20.574468
78
0.701138
138
967
4.876812
0.717391
0.005944
0.056464
0
0
0
0
0
0
0
0
0.036782
0.10031
967
46
79
21.021739
0.736782
0.644261
0
0
0
0
0.177019
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78f2658f7e058410b484a9d45fd69949bca2813c
4,099
py
Python
structural_model/util_morphology.py
zibneuro/udvary-et-al-2022
8b456c41e72958677cb6035028d9c23013cb7c7e
[ "MIT" ]
1
2022-03-11T13:43:50.000Z
2022-03-11T13:43:50.000Z
structural_model/util_morphology.py
zibneuro/udvary-et-al-2022
8b456c41e72958677cb6035028d9c23013cb7c7e
[ "MIT" ]
null
null
null
structural_model/util_morphology.py
zibneuro/udvary-et-al-2022
8b456c41e72958677cb6035028d9c23013cb7c7e
[ "MIT" ]
null
null
null
import os import numpy as np import json import util_amira def getEdgeLabelName(label): if(label == 6): return "axon" elif(label == 4): return "apical" elif(label == 5): return "basal" elif(label == 7): return "soma" else: return "other" def getSomaPositio...
32.275591
138
0.613808
424
4,099
5.867925
0.257075
0.040193
0.060289
0.043408
0.35209
0.343248
0.27492
0.250804
0.250804
0.156752
0
0.003871
0.243718
4,099
127
139
32.275591
0.79871
0
0
0.156863
0
0
0.12878
0.012195
0
0
0
0
0
1
0.088235
false
0
0.039216
0
0.245098
0.009804
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78f3cd314838c8b00373f5ff15a91db4a0e4e749
1,427
py
Python
scripts/Interfacing/encoder_class.py
noshluk2/Wifi-Signal-Robot-localization
538e6c4e7a63486f22ab708908c476cd808f720c
[ "MIT" ]
null
null
null
scripts/Interfacing/encoder_class.py
noshluk2/Wifi-Signal-Robot-localization
538e6c4e7a63486f22ab708908c476cd808f720c
[ "MIT" ]
null
null
null
scripts/Interfacing/encoder_class.py
noshluk2/Wifi-Signal-Robot-localization
538e6c4e7a63486f22ab708908c476cd808f720c
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import threading class Encoder(object): def __init__(self, r_en_a,r_en_b,l_en_a,l_en_b): GPIO.setmode(GPIO.BCM) GPIO.setup(r_en_a, GPIO.IN) GPIO.setup(r_en_b, GPIO.IN) GPIO.setup(l_en_a, GPIO.IN) GPIO.setup(l_en_b, GPIO.IN) self.l_en_a=l_en_a;...
26.425926
75
0.618781
255
1,427
3.117647
0.192157
0.169811
0.100629
0.030189
0.548428
0.396226
0.233962
0.055346
0
0
0
0.019981
0.26349
1,427
54
76
26.425926
0.736441
0.130343
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.060606
0.060606
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78f527fe8104b4c467eef06ba01999f8a1c7339e
2,286
py
Python
systori/apps/equipment/urls.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
12
2018-01-30T00:44:06.000Z
2020-07-13T05:20:48.000Z
systori/apps/equipment/urls.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
36
2018-03-06T17:49:50.000Z
2020-06-23T19:26:00.000Z
systori/apps/equipment/urls.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
3
2018-08-03T07:03:09.000Z
2020-07-09T20:21:10.000Z
from django.conf.urls import url from django.urls import path, include from systori.apps.user.authorization import office_auth from systori.apps.equipment.views import EquipmentListView, EquipmentView, EquipmentCreate, EquipmentDelete, EquipmentUpdate, RefuelingStopCreate, RefuelingStopDelete, RefuelingStopUpdate, Mai...
33.130435
244
0.624672
248
2,286
5.620968
0.21371
0.093257
0.086083
0.10043
0.408895
0.355093
0.271162
0.271162
0.212339
0.212339
0
0
0.208224
2,286
68
245
33.617647
0.770166
0.024497
0
0.375
0
0.015625
0.313734
0.236535
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
78f57ad1256f2c324b8101344d3e6ef85566b84c
632
py
Python
40_3.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
40_3.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
40_3.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
1
2019-12-03T01:34:19.000Z
2019-12-03T01:34:19.000Z
from numpy import zeros # Define ab2 function def ab2(f,t0,tf,y0,n): h = (tf - t0)/n t = zeros(n+1) y = zeros(n+1) t[0] = t0 y[0] = y0 y[1] = y[0] + h * f(t[0],y[0]) t[1] = t[0] + h for i in range(1,n): y[i+1] = y[i] + (3.0/2.0) * h * f(t[i],y[i])-1.0/2.0 * h * f(t[i-1]...
18.588235
83
0.463608
144
632
2.034722
0.263889
0.03413
0.030717
0.040956
0.122867
0.122867
0.047782
0
0
0
0
0.116592
0.294304
632
33
84
19.151515
0.540359
0.136076
0
0
0
0
0.037037
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0.043478
0.217391
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
78f5d63c04bc9e40555fc089be45ac3e10cbd62a
40,331
py
Python
test/test_parse_cs.py
NeonDaniel/lingua-franca
eee95702016b4013b0d81dc74da98cd2d2f53358
[ "Apache-2.0" ]
null
null
null
test/test_parse_cs.py
NeonDaniel/lingua-franca
eee95702016b4013b0d81dc74da98cd2d2f53358
[ "Apache-2.0" ]
null
null
null
test/test_parse_cs.py
NeonDaniel/lingua-franca
eee95702016b4013b0d81dc74da98cd2d2f53358
[ "Apache-2.0" ]
1
2020-09-22T12:39:17.000Z
2020-09-22T12:39:17.000Z
# # Copyright 2017 Mycroft AI 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 writ...
54.208333
114
0.564851
5,157
40,331
4.375218
0.110529
0.033861
0.117006
0.089704
0.702522
0.618535
0.551256
0.475646
0.384701
0.353233
0
0.119882
0.321192
40,331
743
115
54.281292
0.704277
0.084203
0
0.207516
0
0
0.38263
0
0
0
0
0.001346
0.240196
1
0.026144
false
0
0.01634
0
0.04902
0.004902
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78fa9f898e64c035eed240732e89631cf36a87b3
18,049
py
Python
exhale/deploy.py
florianhumblot/exhale
d6fa84fa32ee079c6b70898a1b0863a38e703591
[ "BSD-3-Clause" ]
null
null
null
exhale/deploy.py
florianhumblot/exhale
d6fa84fa32ee079c6b70898a1b0863a38e703591
[ "BSD-3-Clause" ]
null
null
null
exhale/deploy.py
florianhumblot/exhale
d6fa84fa32ee079c6b70898a1b0863a38e703591
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf8 -*- ######################################################################################## # This file is part of exhale. Copyright (c) 2017-2022, Stephen McDowell. # # Full BSD 3-Clause license available here: # # ...
42.468235
106
0.588066
2,054
18,049
5.07741
0.275073
0.014958
0.005753
0.012273
0.143159
0.092147
0.076422
0.066641
0.054847
0.049477
0
0.00512
0.307441
18,049
424
107
42.568396
0.8292
0.364231
0
0.190698
0
0
0.389342
0.019926
0
0
0
0.002358
0
1
0.018605
false
0
0.060465
0
0.134884
0.004651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78fb0646e467b92a38f001788a56ced3c1f8a48d
3,816
py
Python
src/bayesian_reliability_comparison.py
rloganiv/bayesian-blackbox
6a111553200b6aa755149e08174abe1a61d37198
[ "MIT" ]
8
2019-12-23T13:27:15.000Z
2021-12-01T13:33:34.000Z
src/bayesian_reliability_comparison.py
rloganiv/bayesian-blackbox
6a111553200b6aa755149e08174abe1a61d37198
[ "MIT" ]
11
2020-03-31T11:06:55.000Z
2022-02-10T00:39:33.000Z
src/bayesian_reliability_comparison.py
disiji/bayesian-blackbox
6a111553200b6aa755149e08174abe1a61d37198
[ "MIT" ]
2
2020-01-24T10:21:57.000Z
2020-02-22T04:41:14.000Z
import argparse import multiprocessing import os import random import numpy as np from data_utils import DATAFILE_LIST, DATASET_LIST, prepare_data, RESULTS_DIR from models import SumOfBetaEce random.seed(2020) num_cores = multiprocessing.cpu_count() NUM_BINS = 10 NUM_RUNS = 100 N_list = [100, 200, 500, 1000, 2000, 5...
41.032258
120
0.70152
509
3,816
5.003929
0.275049
0.060463
0.040047
0.02552
0.292108
0.262269
0.262269
0.24735
0.225363
0.225363
0
0.017487
0.190776
3,816
92
121
41.478261
0.807319
0.010482
0
0.058824
0
0
0.184469
0.071031
0
0
0
0
0
1
0.014706
false
0
0.102941
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78fbbb7e97d40f03f6fe9dcf3d1d397ff5d9dbb9
29,044
py
Python
psyneulink/core/components/functions/statefulfunctions/statefulfunction.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
null
null
null
psyneulink/core/components/functions/statefulfunctions/statefulfunction.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
77
2020-10-01T06:27:19.000Z
2022-03-31T02:03:33.000Z
psyneulink/core/components/functions/statefulfunctions/statefulfunction.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
null
null
null
# # Princeton University licenses this file to You 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 writ...
48.895623
168
0.596302
3,226
29,044
5.263174
0.149411
0.009423
0.024736
0.020025
0.301313
0.229519
0.192532
0.174627
0.156546
0.131162
0
0.004486
0.324542
29,044
593
169
48.978078
0.860995
0.398189
0
0.249158
0
0.003367
0.101476
0.004959
0
0
0
0.001686
0.006734
1
0.047138
false
0.013468
0.047138
0
0.124579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78fe8574d8b2d8646e13f689bf2f902a5d2ca204
2,637
py
Python
shdw/tools/welford.py
wbrandenburger/ShadowDetection
2a58df93e32e8baf99806555655a7daf7e68735a
[ "MIT" ]
2
2020-09-06T16:45:37.000Z
2021-04-25T15:16:20.000Z
dl_multi/utils/welford.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
null
null
null
dl_multi/utils/welford.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
1
2020-04-30T03:08:56.000Z
2020-04-30T03:08:56.000Z
import math import numpy as np # plt.style.use('seaborn') # plt.rcParams['figure.figsize'] = (12, 8) def welford(x_array): k = 0 M = 0 S = 0 for x in x_array: k += 1 Mnext = M + (x - M) / k S = S + (x - M)*(x - Mnext) M = Mnext return (M, S/(k-1)) class Welford(...
23.972727
67
0.525597
336
2,637
3.96131
0.28869
0.054095
0.041322
0.045079
0.066116
0.066116
0
0
0
0
0
0.076112
0.352294
2,637
109
68
24.192661
0.703162
0.267728
0
0.215385
0
0
0.018013
0
0
0
0
0
0
1
0.184615
false
0
0.030769
0.076923
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
78feca6a377149a92c2667955b4f314e64f31df6
819
py
Python
day3/functions.py
lilbond/bitis
58e5eeebade6cea99fbf86fdf285721fb602e4ef
[ "MIT" ]
null
null
null
day3/functions.py
lilbond/bitis
58e5eeebade6cea99fbf86fdf285721fb602e4ef
[ "MIT" ]
null
null
null
day3/functions.py
lilbond/bitis
58e5eeebade6cea99fbf86fdf285721fb602e4ef
[ "MIT" ]
null
null
null
def greet(): print("Hi") def greet_again(message): print(message) def greet_again_with_type(message): print(type(message)) print(message) greet() greet_again("Hello Again") greet_again_with_type("One Last Time") greet_again_with_type(1234) # multiple types def multiple_types(x): if x < 0: ...
14.625
73
0.664225
120
819
4.366667
0.416667
0.09542
0.080153
0.103053
0
0
0
0
0
0
0
0.023112
0.20757
819
56
74
14.625
0.784284
0.108669
0
0.064516
0
0
0.096552
0
0
0
0
0
0
1
0.193548
false
0
0
0
0.258065
0.258065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6001e3cd1b64684fad98768a1d1677fc7dbf592e
1,043
py
Python
filehandler.py
miciux/telegram-bot-admin
feb267ba6ce715b734b1a5911487c1080410a4a9
[ "MIT" ]
1
2017-04-30T13:12:32.000Z
2017-04-30T13:12:32.000Z
filehandler.py
miciux/telegram-bot-admin
feb267ba6ce715b734b1a5911487c1080410a4a9
[ "MIT" ]
null
null
null
filehandler.py
miciux/telegram-bot-admin
feb267ba6ce715b734b1a5911487c1080410a4a9
[ "MIT" ]
null
null
null
import logging import abstracthandler import os class FileHandler(abstracthandler.AbstractHandler): def __init__(self, conf, bot): abstracthandler.AbstractHandler.__init__(self, 'file', conf, bot) self.log = logging.getLogger(__name__) self.commands={} self.commands['list'] = self....
32.59375
92
0.637584
127
1,043
4.976378
0.393701
0.050633
0.080696
0.113924
0.150316
0.107595
0.107595
0
0
0
0
0.001274
0.247363
1,043
31
93
33.645161
0.803822
0
0
0
0
0
0.081574
0
0
0
0
0
0
1
0.16
false
0
0.12
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6001f3dc9b3e815ad90ab2f8d8d4027fbf828f6c
6,276
py
Python
tensorflow_federated/python/learning/federated_evaluation.py
Tensorflow-Devs/federated
5df96d42d72fa43a050df6465271a38175a5fd7a
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/federated_evaluation.py
Tensorflow-Devs/federated
5df96d42d72fa43a050df6465271a38175a5fd7a
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/federated_evaluation.py
Tensorflow-Devs/federated
5df96d42d72fa43a050df6465271a38175a5fd7a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, The TensorFlow Federated Authors. # # 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 o...
47.18797
80
0.755736
802
6,276
5.719451
0.306733
0.045346
0.045128
0.0569
0.141923
0.10944
0.081535
0
0
0
0
0.006392
0.177342
6,276
132
81
47.545455
0.882045
0.364404
0
0.08
0
0
0.06001
0.020429
0
0
0
0.007576
0
1
0.053333
false
0.013333
0.16
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0