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
f8626522d55b3754f7c28ddbfd44245ded575b28
11,950
py
Python
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
41
2015-01-29T20:10:48.000Z
2022-01-26T10:04:28.000Z
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
null
null
null
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
46
2015-01-19T17:46:52.000Z
2021-12-19T01:22:47.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
33.194444
78
0.573138
1,159
11,950
5.771355
0.155306
0.087457
0.039468
0.041112
0.6418
0.561519
0.471221
0.433548
0.415159
0.415159
0
0.026983
0.283598
11,950
359
79
33.286908
0.754351
0.04569
0
0.493243
0
0
0.16033
0.050575
0
0
0
0
0.162162
1
0.064189
false
0
0.02027
0.003378
0.101351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8629eacf541222ae1970586720f609c2d762f08
1,105
py
Python
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
1
2015-07-17T19:20:45.000Z
2015-07-17T19:20:45.000Z
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
33
2015-07-18T02:31:51.000Z
2015-08-04T02:07:41.000Z
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
7
2015-07-17T16:29:18.000Z
2021-08-31T01:03:53.000Z
from flask import session, redirect, url_for from flask.json import jsonify from api import app, oauth from api import models @app.route("/api/v2/login") def _get_api_v2_login(): redirect_uri = url_for("_get_api_v2_redirect", _external=True) return oauth.google.authorize_redirect(redirect_uri) @app.route("/...
27.625
83
0.656109
148
1,105
4.668919
0.324324
0.072359
0.057887
0.075253
0
0
0
0
0
0
0
0.012182
0.182805
1,105
39
84
28.333333
0.753045
0
0
0
0
0
0.175566
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f863fdd49bdc9fc91c5a6863a1a6f2c9cb1fed2c
418
py
Python
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
1
2018-09-19T06:27:14.000Z
2018-09-19T06:27:14.000Z
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
def column_generator(): with open('columns.csv', encoding='utf-8') as f: for line in f: keyword = line.strip('\n') # <columnOverride column="tid" property="tid"/> # print(r'<columnOverride column="{}" property="{}"/>'.format(keyword,keyword)) print(r'<ignoreCo...
34.833333
91
0.586124
45
418
5.222222
0.622222
0.12766
0.170213
0
0
0
0
0
0
0
0
0.003106
0.229665
418
11
92
38
0.726708
0.294258
0
0
0
0
0.181507
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
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
f86413e599720995225d5a002a0228bfbc9b7ed7
22,250
py
Python
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
null
null
null
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
null
null
null
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
1
2019-02-25T10:27:41.000Z
2019-02-25T10:27:41.000Z
# -*- coding: utf-8 -*- """ This file contains language-specific implementation for an Afrikaans voice. The idea is that this file contains subclassed Voice and Phoneset implementations. This package ttslab/voices may then also contain speaker specific implementations e.g. "afrikaans_SPEAKER.py" """ fr...
52.352941
177
0.465573
2,048
22,250
4.884766
0.23291
0.034386
0.046381
0.056677
0.423531
0.367053
0.328669
0.30068
0.223011
0.162535
0
0.004858
0.389438
22,250
424
178
52.476415
0.731542
0.078876
0
0.119883
0
0
0.233684
0.011215
0
0
0
0.002358
0
1
0.046784
false
0.002924
0.020468
0.026316
0.204678
0.002924
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f865843e860d96b7840567719ae0919a197d73ae
144,813
py
Python
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
1
2020-01-14T21:40:29.000Z
2020-01-14T21:40:29.000Z
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
null
null
null
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module contains analysis done for the Ocean iodide (Oi!) project This includes presentation at conferences etc... """ import numpy as np import pandas as pd import sparse2spatial as s2s import sparse2spatial.utils as utils import matplotlib import matplotlib.pyplot...
38.048607
340
0.57818
19,545
144,813
4.102942
0.070811
0.008604
0.012557
0.018506
0.628404
0.593027
0.564059
0.539742
0.523469
0.501484
0
0.024791
0.28387
144,813
3,805
341
38.058607
0.748469
0.235414
0
0.539808
0
0.000417
0.122704
0.018779
0.000417
0
0
0.000526
0.001251
1
0.020008
false
0.000417
0.024177
0
0.047103
0.031263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f86cbd077218ced0fe45ca2c5ef698554acc3ecd
18,995
py
Python
server_code.py
johnr0/TaleBrush-backend
f7429e10f328087444647d5dc6bf1f3a22ccfcce
[ "BSD-3-Clause" ]
1
2022-02-25T18:36:16.000Z
2022-02-25T18:36:16.000Z
server_code.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
server_code.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
from flask import request, url_for from flask_api import FlaskAPI, status, exceptions from flask_cors import CORS, cross_origin import torch import json import numpy as np import torch from modeling_gptneo import GPTNeoForCausalLM from modeling_gpt2 import GPT2LMHeadModel from transformers import ( GPTNeoConfig...
41.025918
140
0.588944
2,080
18,995
5.128846
0.164423
0.04162
0.03712
0.016873
0.452006
0.376078
0.340082
0.322553
0.300244
0.283933
0
0.016006
0.319137
18,995
463
141
41.025918
0.808861
0.118189
0
0.354167
0
0
0.075836
0.029168
0
0
0
0.00216
0
1
0.02381
false
0
0.044643
0
0.095238
0.059524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f86db685725dd6affbd6d16efda49f2dd028eb93
1,735
py
Python
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
2
2017-11-21T10:00:47.000Z
2018-02-02T04:40:09.000Z
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
1
2018-10-31T06:56:22.000Z
2018-11-01T00:58:16.000Z
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
5
2017-12-14T01:07:21.000Z
2020-04-29T02:21:46.000Z
import json import unittest from buter.app.services import load_from_file, detect_app_name from buter.server import docker from buter.util.Utils import unzip from config import getConfig class AppServiceTest(unittest.TestCase): def setUp(self): """ 这里只需要初始化 server.docker 对象 :return: ...
30.982143
109
0.609222
227
1,735
4.488987
0.299559
0.041217
0.063788
0.047105
0.196271
0.170756
0.107949
0.107949
0.107949
0.107949
0
0.002996
0.230548
1,735
55
110
31.545455
0.7603
0.029971
0
0
0
0
0.145972
0.029679
0
0
0
0
0.078947
1
0.184211
false
0
0.157895
0
0.368421
0.131579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f871c0ad8b9204fef05550a10cc4ceb534586079
654
py
Python
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
# https://atcoder.jp/contests/joi2008yo/tasks/joi2008yo_e R, C = list(map(int, input().split())) senbei_pos = [] ans = 0 for _ in range(R): pos = list(map(int, input().split())) senbei_pos.append(pos) for bit in range(2**R): total = 0 copied_pos = senbei_pos[:] # Rの上限が10なので10桁の2進数になるように0で埋める fl...
29.727273
66
0.59633
100
654
3.74
0.42
0.074866
0.053476
0.080214
0.15508
0.15508
0.15508
0
0
0
0
0.045082
0.253823
654
21
67
31.142857
0.721311
0.12844
0
0
0
0
0.007055
0
0
0
0
0
0
1
0
false
0
0
0
0
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8724ce5a5705922dd55fcf91b7512b691dc8ab7
2,850
py
Python
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
1
2018-03-27T00:08:26.000Z
2018-03-27T00:08:26.000Z
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
null
null
null
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
1
2020-06-04T02:49:20.000Z
2020-06-04T02:49:20.000Z
#!/usr/env python3 import requests import os import glob import telegram from time import sleep token = "token" bot = telegram.Bot(token=token) # Боту шлется ссылка на ютуб, он загоняет ее в bash комманду youtube-dl -x --audio-format mp3 <link>, шлет загруженный mp3 обратно клиенту class BotHandler: def __init__...
30.978261
138
0.597895
371
2,850
4.334232
0.291105
0.052239
0.052239
0.034826
0.166045
0.116915
0.087065
0.087065
0.087065
0.06592
0
0.01122
0.280702
2,850
91
139
31.318681
0.773171
0.054035
0
0.157895
0
0
0.121752
0
0
0
0
0
0
1
0.092105
false
0
0.065789
0
0.223684
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f87cfb9c6282ebda75b44ea58b3afec144dcbcf4
448
py
Python
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2020-04-10T07:29:56.000Z
2020-05-27T03:45:21.000Z
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
null
null
null
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2018-11-24T08:16:59.000Z
2019-02-24T04:41:30.000Z
#!/usr/bin/env python3 # encoding: utf-8 # Douglas Crockford's idea for making generators # basically "why do you need a `yield` keyword when you can just maintain some state" # in my view, a class would be a better way to do this, and indeed, in python, # that's how Iterators are defined. def iter(list): i = 0 def ...
22.4
85
0.683036
81
448
3.765432
0.753086
0.032787
0
0
0
0
0
0
0
0
0
0.022535
0.207589
448
19
86
23.578947
0.83662
0.622768
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
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
f881c0e0b875dfcd895b81b936783f36c735935f
564
py
Python
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
import requests from api import config def get_docgen_token(): params = { "grant_type": "client_credentials", "client_id": config.COMMON_DOCGEN_CLIENT_ID, "client_secret": config.COMMON_DOCGEN_CLIENT_SECRET, "scope": "" } req = requests.post( config.COMMON_DOCGEN_S...
21.692308
64
0.615248
63
564
5.222222
0.587302
0.109422
0.164134
0.145897
0
0
0
0
0
0
0
0
0.269504
564
25
65
22.56
0.798544
0
0
0
0
0
0.198582
0.058511
0
0
0
0
0
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8825ad47b75cf630d4ad3f98bb97cd2847d852d
619
py
Python
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
''' Description: Problem 3 (rearrange the code) Version: 1.0.1.20210116 Author: Arvin Zhao Date: 2021-01-14 22:51:16 Last Editors: Arvin Zhao LastEditTime: 2021-01-16 04:11:18 ''' def get_data(): username = input('Enter your username: ') age = int(input('Enter your age: ')) data_tuple = (username, age) ...
20.633333
74
0.646204
88
619
4.409091
0.613636
0.141753
0.072165
0.103093
0
0
0
0
0
0
0
0.086957
0.219709
619
30
75
20.633333
0.716356
0.350565
0
0
0
0
0.131646
0
0
0
0
0
0
1
0.2
false
0
0
0
0.266667
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
f8825cac93ae51da9c9e342930c13e66cd5b1a63
1,046
py
Python
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
from tensorflow import keras # Make sure the tf_trees directory is in the search path. from tf_trees import TEL # The documentation of TEL can be accessed as follows print(TEL.__doc__) # We will fit TEL on the Boston Housing regression dataset. # First, load the dataset. from keras.datasets import boston_housing (x_t...
38.740741
82
0.772467
176
1,046
4.4375
0.511364
0.049936
0.057618
0.03073
0
0
0
0
0
0
0
0.012277
0.143403
1,046
26
83
40.230769
0.859375
0.515296
0
0
0
0
0.020161
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
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
f88367f68dcb96f708907ba780b8dfe0c11ecea5
725
py
Python
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
4
2015-01-26T17:56:05.000Z
2020-04-01T05:52:00.000Z
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
11
2015-01-06T10:34:36.000Z
2021-03-22T18:29:45.000Z
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
6
2015-01-02T15:02:27.000Z
2021-05-12T18:09:35.000Z
#!/usr/bin/env python # Core Library modules import argparse import os # Third party modules import pytest # First party modules import nntoolkit.utils as utils def test_is_valid_file(): parser = argparse.ArgumentParser() # Does exist path = os.path.realpath(__file__) assert utils.is_valid_file(pa...
20.714286
62
0.704828
93
725
5.301075
0.397849
0.085193
0.097363
0.103448
0.503043
0.288032
0.20284
0.20284
0.20284
0.20284
0
0
0.193103
725
34
63
21.323529
0.842735
0.183448
0
0.266667
0
0
0.083904
0.035959
0
0
0
0
0.133333
1
0.133333
false
0
0.266667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f88aa3fcd8cfa698889ea39a72ffe01decd8c2ea
6,279
py
Python
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
1
2021-07-22T14:06:08.000Z
2021-07-22T14:06:08.000Z
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
null
null
null
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # MIT License # # Copyright (c) 2021 gh0$t # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
34.5
218
0.645963
818
6,279
4.887531
0.380196
0.032516
0.036018
0.04002
0.311406
0.295398
0.284392
0.263382
0.253127
0.24062
0
0.006637
0.136168
6,279
181
219
34.690608
0.730457
0.316929
0
0.430233
0
0.023256
0.303942
0.104955
0
0
0
0
0
1
0.011628
false
0.023256
0.104651
0
0.116279
0.116279
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f88e5bdd49e9b79ee78760de491336a0c465e929
935
py
Python
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
import tensorflow as tf import keras import numpy as np def get_bias_major_weights(model): weights = model.get_weights() biasMajor = [] for arrI in range(0, len(weights), 2): inWeights = weights[arrI] biasWeights = weights[arrI+1].reshape((1,-2)) l = np.concatenate((biasWeights, inW...
32.241379
73
0.698396
126
935
5.055556
0.420635
0.037677
0.028257
0.047096
0.169545
0.10675
0
0
0
0
0
0.020861
0.179679
935
28
74
33.392857
0.809648
0
0
0
0
0
0
0
0
0
0
0
0
1
0.173913
false
0
0.130435
0.043478
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8900e5fac4e08162311478b3ed9cf017f5cb02c
10,047
py
Python
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
r''' perl_io - Opens a file or pipe in the Perl style Copyright (c) 2016 Yoichi Hariguchi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rig...
33.602007
78
0.54902
1,335
10,047
4.043446
0.214232
0.008151
0.009448
0.008892
0.373101
0.314931
0.264357
0.24435
0.231753
0.187662
0
0.013059
0.336916
10,047
298
79
33.714765
0.797208
0.364686
0
0.412791
0
0
0.082019
0.007886
0
0
0
0
0.046512
1
0.087209
false
0
0.052326
0.017442
0.19186
0.087209
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f89039eac3e7b46b0d707c6f7b3927ce103b2914
919
py
Python
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
152
2020-12-07T13:26:53.000Z
2022-03-23T02:00:04.000Z
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
16
2020-12-07T17:04:36.000Z
2022-03-10T11:12:52.000Z
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
36
2020-12-09T13:04:40.000Z
2022-03-12T18:14:36.000Z
from .. import bp from flask import request, render_template, flash, redirect, url_for from flask_login import current_user, login_required from app.lib.base.provider import Provider from app.lib.base.decorators import admin_required @bp.route('/logs/errors', methods=['GET']) @login_required @admin_required def logs_...
26.257143
68
0.688792
131
919
4.633588
0.358779
0.138386
0.069193
0.046129
0.128501
0
0
0
0
0
0
0.010944
0.20457
919
34
69
27.029412
0.819425
0
0
0
0
0
0.062024
0.032644
0
0
0
0
0
1
0.038462
false
0
0.192308
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f890b528c3dd1757b9098304393522baa32267a2
2,241
py
Python
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
1
2021-08-23T19:49:03.000Z
2021-08-23T19:49:03.000Z
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
null
null
null
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2017 reinforce.io. 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 applicable law or...
30.283784
96
0.622936
266
2,241
5.105263
0.458647
0.064801
0.050074
0.023564
0
0
0
0
0
0
0
0.008511
0.265953
2,241
73
97
30.69863
0.817021
0.358322
0
0.111111
0
0
0.018868
0
0
0
0
0
0
1
0.111111
false
0
0.138889
0
0.388889
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
f893a81b68249d96ab59017996d9f35493423f0f
8,644
py
Python
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
null
null
null
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
32
2021-03-17T13:17:22.000Z
2021-05-04T14:25:31.000Z
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
1
2021-03-24T13:47:44.000Z
2021-03-24T13:47:44.000Z
import os import tempfile import shutil import requests import sys import logging import json from src.server.dependency import ModelData import tensorflow as tf class StreamToLogger(object): """ Fake file-like stream object that redirects writes to a logger instance. Source: https://stackoverflow.com/a/3...
32.618868
117
0.614762
1,056
8,644
4.822917
0.221591
0.033576
0.021206
0.023365
0.255252
0.224426
0.211467
0.176713
0.161005
0.156686
0
0.005174
0.284475
8,644
264
118
32.742424
0.81827
0.157219
0
0.104046
0
0
0.125935
0.006234
0
0
0
0
0
1
0.040462
false
0.00578
0.052023
0
0.121387
0.00578
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f894286d87c8139bf9e7bda1448f050c5b02eb70
3,287
py
Python
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
1
2017-05-03T12:18:31.000Z
2017-05-03T12:18:31.000Z
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
null
null
null
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
1
2020-10-29T04:00:04.000Z
2020-10-29T04:00:04.000Z
from flask import Flask from flask import render_template from flask import request from model import MovieWebDAO import json from ml import Forcast app = Flask(__name__) @app.route('/') def hello_world(): return render_template('index.html') @app.route('/hello/') @app.route('/hello/<name>') def hello(name=None)...
31.009434
79
0.703377
403
3,287
5.672457
0.200993
0.052493
0.061242
0.052493
0.430009
0.430009
0.34252
0.34252
0.34252
0.34252
0
0.010172
0.132644
3,287
106
80
31.009434
0.791652
0.024947
0
0.220779
0
0
0.149189
0.015293
0
0
0
0
0
1
0.181818
false
0
0.077922
0.090909
0.454545
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f89c748dd51197d30a5af7af230eb9f70959fb01
894
py
Python
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import gast as ast from beniget import Ancestors, DefUseChains as DUC, UseDefChains from beniget.beniget import Def __all__ = ["Ancestors", "DefUseChains", "UseDefChains"] class DefUseChains(DUC): def visit_List(self, node): if isinstance(node.ctx, ast.Load): dnode = self.chains.setdefault...
29.8
64
0.659955
109
894
5.330275
0.513761
0.037866
0.05852
0.068847
0
0
0
0
0
0
0
0.004566
0.265101
894
29
65
30.827586
0.879756
0.187919
0
0
0
0
0.04577
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8a219513d5df677c7712f374a4d0f79bdc2f13b
2,401
py
Python
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
1
2021-12-29T09:32:08.000Z
2021-12-29T09:32:08.000Z
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
null
null
null
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
null
null
null
from collections import Counter def read_file(filepath): with open(filepath,'r') as f: a = [x for x in f.read().split('\n\n')] b = []; d = [] for x in [[x[0],x[1].split(' or ')] for x in [x.split(': ') for x in a[0].split('\n')]]: for y in x[1]: ...
24.752577
96
0.43107
332
2,401
3.045181
0.23494
0.043521
0.065282
0.041543
0.152324
0.06726
0.021761
0
0
0
0
0.024927
0.431903
2,401
96
97
25.010417
0.716276
0
0
0
0
0
0.015827
0
0
0
0
0
0
1
0.084746
false
0
0.016949
0
0.186441
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8a565676ba40410367b887bd52120b87f5a4d60
9,512
py
Python
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
2
2020-09-15T18:10:12.000Z
2021-01-25T21:54:04.000Z
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
null
null
null
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
null
null
null
# Author: Ibrahim Alhas - ID: 1533204. # MODEL 3: CNN with built-in tensorflow tokenizer. # This is the final version of the model (not the base). # Packages and libraries used for this model. # ** Install these if not installed already **. import numpy as np import pandas as pd import matplotlib.pyplot ...
37.746032
120
0.700694
1,349
9,512
4.842847
0.28762
0.012399
0.011021
0.014082
0.130874
0.087555
0.04041
0.04041
0.011021
0
0
0.017487
0.152334
9,512
251
121
37.896414
0.792757
0.312027
0
0.041379
0
0
0.107895
0.003684
0
0
0
0
0.006897
1
0
false
0
0.151724
0
0.151724
0.124138
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8a57061a44b4ce6c14481e8a79c00cddf4bc7c8
40,857
py
Python
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
6
2015-07-27T21:50:39.000Z
2020-06-25T14:32:35.000Z
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
89
2015-06-24T09:35:40.000Z
2022-02-13T14:40:31.000Z
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
12
2015-07-13T17:31:04.000Z
2021-08-06T06:50:21.000Z
#!/usr/bin/env python2 # -*- coding: utf8 -*- # # Copyright (c) 2017 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Richard Mahn <rich.mahn@unfoldingword.org> """ This script generates the HTML tN documents for each book of the Bible """ from __future_...
49.46368
254
0.548303
5,124
40,857
4.215457
0.097775
0.016667
0.015741
0.0175
0.412222
0.338333
0.260046
0.212546
0.18963
0.15912
0
0.014075
0.290501
40,857
825
255
49.523636
0.731061
0.051913
0
0.165951
0
0.010014
0.140736
0.04654
0.002861
0
0
0
0
1
0.050072
false
0
0.031474
0.001431
0.130186
0.021459
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8a59fce72ffcde75ac9e9b378c6906ab092d7dd
2,565
py
Python
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
1
2021-11-04T00:08:00.000Z
2021-11-04T00:08:00.000Z
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
null
null
null
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from tqdm import tqdm import argparse from pyscenic.aucell import aucell from .aucell import create_gene_signatures from .aucell import assign_bootstrap def main(): parser = argparse.ArgumentParser(description='AUcell Bootstrapping.') parser.add_argument( '-i', '-...
28.5
91
0.617934
325
2,565
4.701538
0.347692
0.04712
0.089005
0.041885
0.109948
0
0
0
0
0
0
0.006205
0.246004
2,565
89
92
28.820225
0.783868
0.021053
0
0.226667
0
0
0.2083
0
0
0
0
0
0
1
0.013333
false
0
0.093333
0
0.106667
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8a77e8060730c4c9bc76d9c5c083f084aed00b7
2,383
py
Python
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
from rule_condition import Condition from rule_action import Action from rule_template import RuleTemplate from rule_engine import RuleEngine from rule import Rule from rule_data import Data from rule_scope import Scope from action_handler_send_email import SendEmailHandler from action_handler_report_alarm import Repor...
29.419753
81
0.660512
283
2,383
5.367491
0.173145
0.131666
0.05135
0.052666
0.563529
0.563529
0.45293
0.45293
0.45293
0.45293
0
0.01849
0.182963
2,383
81
82
29.419753
0.761685
0
0
0.424242
0
0
0.192534
0.009648
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.227273
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8a96eee4517afeca4532922b8ea2f6d38dc101a
4,898
py
Python
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
import os import numpy as np import monai import math import torch import glob from skimage.morphology import remove_small_holes, remove_small_objects from monai.transforms import ( LoadImaged, AddChanneld, Orientationd, Spacingd, ScaleIntensityRanged, SpatialPadd, RandAffined, RandCropB...
39.5
111
0.669661
658
4,898
4.74772
0.232523
0.034571
0.017286
0.029449
0.477273
0.440781
0.412612
0.37484
0.302497
0.302497
0
0.020102
0.197632
4,898
123
112
39.821138
0.774809
0.078808
0
0.284404
0
0
0.079697
0.023598
0
0
0
0
0.009174
1
0.06422
false
0
0.073395
0
0.201835
0.018349
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8ab0286f449987129eeade795e566330ff36d18
867
py
Python
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
2
2019-12-09T10:19:36.000Z
2020-01-11T11:48:41.000Z
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
null
null
null
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
null
null
null
import json import pytest from unittest import TestCase from rest_framework.test import APIClient from ..models import Group, Prediction @pytest.mark.django_db class PredictionViewSetTest(TestCase): def setUp(self): self.client = APIClient() def test_prediction_list(self): response = self.cl...
27.967742
63
0.704729
103
867
5.805825
0.368932
0.06689
0.053512
0.060201
0.652174
0.575251
0.575251
0.575251
0.575251
0.575251
0
0.008584
0.193772
867
30
64
28.9
0.846924
0
0
0.521739
0
0
0.033449
0
0
0
0
0
0.173913
1
0.173913
false
0
0.217391
0
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8acaa7460d221225a0bd79d4a5ca48dc091b0af
2,873
py
Python
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
"""Specification for the RoboMaker delete. simulation application component.""" # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
32.280899
88
0.725374
264
2,873
7.818182
0.435606
0.061047
0.043605
0.037791
0.111434
0.059109
0.059109
0.059109
0.059109
0.059109
0
0.001767
0.211974
2,873
88
89
32.647727
0.909894
0.258615
0
0.135593
0
0
0.077947
0
0
0
0
0
0
1
0.067797
false
0
0.067797
0.050847
0.322034
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8b003880b2b0c817a1e02d7db8475b7ea56eada
2,624
py
Python
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import fnmatch import logging class sflow_sub_record: def __init__(self,scheme,app_id,app_ip,app_port,subscription_info,sub_info_filter): logging.debug("* Updating subscription_info ") self.scheme = scheme self.app_id = app_id self.ipaddress = app_ip self...
41
91
0.62843
326
2,624
4.751534
0.205521
0.092963
0.092963
0.046482
0.247902
0.113622
0.082634
0.051646
0
0
0
0
0.21875
2,624
63
92
41.650794
0.75561
0.006098
0
0.210526
0
0
0.210587
0.036824
0
0
0
0
0
1
0.087719
false
0
0.035088
0
0.22807
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8b2fa45ad6aa0b508fe2d6b2b81fce66e566e4c
3,148
py
Python
scripts/gcorr/run_xfaster.py
SPIDER-CMB/xfaster
1b8e56d775f2c3a8693d1372ae461392c21da7ca
[ "MIT" ]
1
2021-03-25T14:15:44.000Z
2021-03-25T14:15:44.000Z
scripts/gcorr/run_xfaster.py
annegambrel/xfaster
03d5a2971d3cc19ae360d78995e3575f3f678d6e
[ "MIT" ]
7
2021-04-20T23:34:38.000Z
2021-08-24T00:00:53.000Z
scripts/gcorr/run_xfaster.py
SPIDER-CMB/xfaster
1b8e56d775f2c3a8693d1372ae461392c21da7ca
[ "MIT" ]
1
2021-05-18T16:43:54.000Z
2021-05-18T16:43:54.000Z
""" A script to run XFaster for gcorr calculation. Called by iterate.py. """ import os import xfaster as xf import argparse as ap from configparser import ConfigParser # Change XFaster options here to suit your purposes opts = dict( likelihood=False, residual_fit=False, foreground_fit=False, # change o...
28.618182
88
0.661055
459
3,148
4.385621
0.339869
0.017884
0.053651
0.025832
0.130651
0.068058
0.044213
0.032787
0.032787
0
0
0.005475
0.187738
3,148
109
89
28.880734
0.781776
0.120394
0
0.104651
0
0
0.288203
0
0
0
0
0
0.011628
1
0
false
0
0.046512
0
0.046512
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8b5ae0ccaf93b252b0712f888f73a49ece568a6
23,824
py
Python
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
1
2021-03-29T22:09:47.000Z
2021-03-29T22:09:47.000Z
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
49
2021-03-29T20:13:28.000Z
2021-05-01T10:38:19.000Z
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "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 # distributed under the...
37.815873
80
0.580423
2,485
23,824
5.42495
0.126761
0.049774
0.025072
0.032639
0.546918
0.510496
0.478674
0.439137
0.410949
0.363029
0
0.000644
0.347759
23,824
629
81
37.875994
0.866916
0.331808
0
0.42522
0
0
0.207422
0.012573
0
0
0
0
0
1
0.035191
false
0.026393
0.017595
0
0.117302
0.002933
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8b88aa220e765ebad5849f646d7fa3f22e031df
1,316
py
Python
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
6
2021-05-21T01:10:42.000Z
2021-12-16T16:12:30.000Z
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
null
null
null
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
null
null
null
from typing import Callable class Solution: def sortArrayByParityII(self, nums: list[int]) -> list[int]: # Crucial lesson: 2 pointer approach doesn't necessarily mean # the pointers should start at opposite ends of the array. evens, odds = 0, 1 end = len(nums) while evens <...
24.830189
77
0.50152
161
1,316
4.062112
0.372671
0.06422
0.110092
0.119266
0.097859
0
0
0
0
0
0
0.055952
0.361702
1,316
52
78
25.307692
0.722619
0.088146
0
0.170732
0
0
0
0
0
0
0
0
0.04878
1
0.04878
false
0
0.02439
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8ba6e975ac143461562e6b418e4b0a0aee2b105
4,285
py
Python
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
2
2019-09-17T10:20:20.000Z
2020-02-10T11:46:33.000Z
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
null
null
null
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
null
null
null
import re UNITS_XML_FILE = 'poscUnits22.xml' UNITS_PICKLE_FILE = 'units.pickle' OUTPUT_DECIMALS = 6 SOURCE_PATTERN = r'^(?P<quantity>.*[\d.]+)\s*(?P<from>[^\d\s]([^\s]*|.+?))' SOURCE_RE = re.compile(SOURCE_PATTERN + '$', re.IGNORECASE | re.VERBOSE) FULL_PATTERN = r'(\s+as|\s+to|\s+in|\s*>|\s*=)\s(?P<to>[^\d\s][^\s...
22.792553
76
0.54189
499
4,285
4.559118
0.52505
0.008791
0.024176
0.015824
0.042637
0
0
0
0
0
0
0.019271
0.224971
4,285
187
77
22.914439
0.665763
0.094749
0
0
0
0.007092
0.335402
0.038014
0
0
0
0
0
1
0.014184
false
0
0.007092
0.007092
0.042553
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8bc9f66b7afd106a2727f0668012f3210c6ab27
1,548
py
Python
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
null
null
null
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
2
2020-07-19T21:03:34.000Z
2020-09-11T14:56:34.000Z
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
null
null
null
from enum import Enum from pathlib import Path import click from mbox.click import EnumChoice, ParsedDate, PathParam class AF(Enum): IPv4 = 4 IPv6 = 6 def test_enum_choice(runner): @click.command() @click.option("--af", type=EnumChoice(AF, int)) def cmd(af): click.echo(af) result ...
24.1875
72
0.623385
205
1,548
4.639024
0.287805
0.113565
0.094637
0.105152
0.396425
0.329127
0.300736
0.214511
0.132492
0.132492
0
0.033828
0.217054
1,548
63
73
24.571429
0.750825
0
0
0.195652
0
0
0.132429
0.015504
0
0
0
0
0.217391
1
0.152174
false
0
0.086957
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8bdfba3ce0bde25189979ebc289968a2512c766
1,400
py
Python
util/plot_pbt.py
Linus4world/3D-MRI-style-transfer
6747f0b235b8a6e773a941c222d594d9eedc6a35
[ "BSD-3-Clause" ]
1
2022-01-03T16:08:35.000Z
2022-01-03T16:08:35.000Z
util/plot_PBT.py
Linus4world/mrs-gan
64669251584a7421cce3a5173983a2275dcb438a
[ "BSD-2-Clause" ]
null
null
null
util/plot_PBT.py
Linus4world/mrs-gan
64669251584a7421cce3a5173983a2275dcb438a
[ "BSD-2-Clause" ]
1
2022-02-11T13:26:38.000Z
2022-02-11T13:26:38.000Z
import math import matplotlib.pyplot as plt import json import os import warnings warnings.filterwarnings("ignore") def make_dataset(dir, file_ext=[]): paths = [] assert os.path.exists(dir) and os.path.isdir(dir), '{} is not a valid directory'.format(dir) for root, _, fnames in sorted(os.walk(dir)): ...
31.111111
96
0.594286
198
1,400
4.090909
0.5
0.022222
0.02963
0
0
0
0
0
0
0
0
0.014164
0.243571
1,400
44
97
31.818182
0.750708
0
0
0
0
0
0.121429
0.032857
0
0
0
0
0.025641
1
0.051282
false
0
0.128205
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8c6f95465da9e6fd5b7017053c85eda97db68b6
802
py
Python
natasha/span.py
baltachev/natasha
b326631c510384b1ce3ac198bce8ed11818ec784
[ "MIT" ]
822
2017-09-05T08:38:42.000Z
2022-03-31T16:08:48.000Z
natasha/span.py
baltachev/natasha
b326631c510384b1ce3ac198bce8ed11818ec784
[ "MIT" ]
81
2017-09-12T12:49:00.000Z
2022-03-25T18:21:12.000Z
natasha/span.py
baltachev/natasha
b326631c510384b1ce3ac198bce8ed11818ec784
[ "MIT" ]
90
2017-09-05T08:38:49.000Z
2022-03-29T12:09:22.000Z
from .record import Record class Span(Record): __attributes__ = ['start', 'stop', 'type'] def adapt_spans(spans): for span in spans: yield Span(span.start, span.stop, span.type) def offset_spans(spans, offset): for span in spans: yield Span( offset + span.start, ...
21.105263
52
0.516209
87
802
4.678161
0.356322
0.051597
0.044226
0.068796
0.206388
0.113022
0
0
0
0
0
0.00616
0.392768
802
37
53
21.675676
0.829569
0
0
0.071429
0
0
0.01623
0
0
0
0
0
0
1
0.107143
false
0
0.035714
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
f8c7ce0b20cdca0b81d121ae696bffeb609cd523
7,297
py
Python
bingads/v13/bulk/entities/bulk_offline_conversion.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
86
2016-02-29T03:24:28.000Z
2022-03-29T09:30:21.000Z
bingads/v13/bulk/entities/bulk_offline_conversion.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
135
2016-04-12T13:31:28.000Z
2022-03-29T02:18:51.000Z
bingads/v13/bulk/entities/bulk_offline_conversion.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
154
2016-04-08T04:11:27.000Z
2022-03-29T21:21:07.000Z
from __future__ import print_function from bingads.service_client import _CAMPAIGN_OBJECT_FACTORY_V13 from bingads.v13.internal.bulk.string_table import _StringTable from bingads.v13.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity from bingads.v13.internal.bulk.mappings import _SimpleBul...
34.582938
139
0.628752
724
7,297
5.991713
0.180939
0.094053
0.086215
0.040572
0.389119
0.277547
0.258183
0.23006
0.170124
0.070309
0
0.003551
0.305331
7,297
210
140
34.747619
0.852239
0.084692
0
0.335329
0
0
0.036108
0.014957
0
0
0
0
0
1
0.107784
false
0
0.035928
0.035928
0.197605
0.005988
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8c98cbdffeb6bc1eca9320791dd78a1cefdb9cd
4,320
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/lti_provider/tests/test_tasks.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/lti_provider/tests/test_tasks.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/lti_provider/tests/test_tasks.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Tests for the LTI outcome service handlers, both in outcomes.py and in tasks.py """ from unittest.mock import MagicMock, patch import ddt from django.test import TestCase from opaque_keys.edx.locator import BlockUsageLocator, CourseLocator import lms.djangoapps.lti_provider.tasks as tasks from common.djangoapps...
31.532847
92
0.634491
506
4,320
5.195652
0.245059
0.041841
0.029669
0.045645
0.349563
0.261696
0.241917
0.241917
0.225941
0.190186
0
0.011727
0.269676
4,320
136
93
31.764706
0.821553
0.074537
0
0.27619
0
0
0.079806
0.039776
0
0
0
0
0.028571
1
0.057143
false
0
0.066667
0
0.161905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8c9d560d993e370d3b1363238c43807ccc5dfd5
1,954
py
Python
agents/dumbagent.py
dbelliss/Starcraft2AI
a3044f0eb3c1bb18084fa59265a430ddcdfab80b
[ "MIT" ]
2
2018-04-17T00:37:40.000Z
2018-04-30T03:04:20.000Z
agents/dumbagent.py
dbelliss/Starcraft2AI
a3044f0eb3c1bb18084fa59265a430ddcdfab80b
[ "MIT" ]
null
null
null
agents/dumbagent.py
dbelliss/Starcraft2AI
a3044f0eb3c1bb18084fa59265a430ddcdfab80b
[ "MIT" ]
null
null
null
from loser_agent import * class DumbAgent(LoserAgent): def __init__(self, is_logging = False, is_printing_to_console = False, isMainAgent = False, fileName = ""): super().__init__(is_logging, is_printing_to_console, isMainAgent) # For debugging self.is_logging = is_logging...
41.574468
129
0.666837
251
1,954
5.007968
0.438247
0.082737
0.038186
0.060461
0.163882
0.163882
0.163882
0.163882
0.10183
0.10183
0
0.006684
0.234391
1,954
46
130
42.478261
0.833556
0.308086
0
0
0
0
0.017177
0
0
0
0
0
0
1
0.08
false
0.04
0.04
0
0.16
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8cc12080c230a16858bbc18a05bcd5b93430fe7
317
py
Python
Python/mathematics/find_missing_number.py
RCubedClub/cp_algo
ec254055ef745224b0a1c766ef16709a3eea7087
[ "MIT" ]
null
null
null
Python/mathematics/find_missing_number.py
RCubedClub/cp_algo
ec254055ef745224b0a1c766ef16709a3eea7087
[ "MIT" ]
null
null
null
Python/mathematics/find_missing_number.py
RCubedClub/cp_algo
ec254055ef745224b0a1c766ef16709a3eea7087
[ "MIT" ]
null
null
null
import random def find(array): summation = sum(array) n = len(array) total = n*(n+1)//2 miss = total - summation return miss def main(): arr = [i for i in range(99)] print(arr) result = find(arr) print("The missing number is-", result) if __name__ == '__main__': main()
14.409091
43
0.577287
45
317
3.888889
0.644444
0
0
0
0
0
0
0
0
0
0
0.017621
0.283912
317
21
44
15.095238
0.753304
0
0
0
0
0
0.094637
0
0
0
0
0
0
1
0.142857
false
0
0.071429
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
f8cde62d3add298d347b197159cd3ef0fad71443
2,850
py
Python
brake.py
tensorpro/AutonomousBraking
9861e5c0423d8ca1a2f3f640003b3581a3074459
[ "MIT" ]
8
2017-05-04T22:04:48.000Z
2020-03-27T13:06:39.000Z
brake.py
tensorpro/AutonomousBraking
9861e5c0423d8ca1a2f3f640003b3581a3074459
[ "MIT" ]
null
null
null
brake.py
tensorpro/AutonomousBraking
9861e5c0423d8ca1a2f3f640003b3581a3074459
[ "MIT" ]
2
2019-07-22T02:19:57.000Z
2020-09-29T21:00:00.000Z
from __future__ import division import numpy as np import matplotlib.pyplot as plt m = 4 b = -.2 bl = -.1 br = -.1 sh = .13 def show_ped(image, bb): im = np.zeros(image.shape[:2]) [ymin, xmin, ymax, xmax] = bb im[ymin:ymax,xmin:xmax]=1 plt.imshow(im) plt.show() def in_region(x,y, m=0, b=0, ab...
26.635514
75
0.561404
472
2,850
3.258475
0.216102
0.014304
0.009753
0.026008
0.064369
0.057217
0.050715
0.050715
0
0
0
0.012291
0.286316
2,850
106
76
26.886792
0.743854
0.019298
0
0.076087
0
0
0.043338
0
0
0
0
0
0
1
0.119565
false
0
0.043478
0.01087
0.26087
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8d0d6ecca8d12cee0a53f9628644c363e8839b3
1,055
py
Python
python/smqtk/utils/simple_timer.py
jbeezley/SMQTK
e6b00f94be95f39bbca52a7983ac3d6d1f86f847
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
python/smqtk/utils/simple_timer.py
jbeezley/SMQTK
e6b00f94be95f39bbca52a7983ac3d6d1f86f847
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
python/smqtk/utils/simple_timer.py
DigitalCompanion/SMQTK
fc9404b69150ef44f24423844bc80735c0c2b669
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
import time from smqtk.utils import SmqtkObject class SimpleTimer (SmqtkObject): """ Little class to wrap the timing of things. To be use with the ``with`` statement. """ def __init__(self, msg, log_func=None, *args): """ Additional arguments are passed to the logging method ...
27.051282
74
0.525118
131
1,055
3.870229
0.328244
0.151874
0.108481
0.138067
0.315582
0.244576
0.244576
0.244576
0.134122
0.134122
0
0.002963
0.36019
1,055
38
75
27.763158
0.748148
0.176303
0
0.190476
0
0
0.025189
0
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8d1e3f53857745560685cc9254effe945b354f9
3,314
py
Python
portl.py
blackc8/portl
8be36d67db2041071d5169204902ec9fff6aabe9
[ "MIT" ]
null
null
null
portl.py
blackc8/portl
8be36d67db2041071d5169204902ec9fff6aabe9
[ "MIT" ]
1
2020-10-31T15:32:31.000Z
2020-10-31T15:33:11.000Z
portl.py
blackc8/portl
8be36d67db2041071d5169204902ec9fff6aabe9
[ "MIT" ]
null
null
null
import socket, time, sys import argparse __version__="0.1" min_port=0 #max_port=65535 max_port=10000 parser = argparse.ArgumentParser(description="a simple python port scanner",epilog="author: blackc8") parser.add_argument("hostname",metavar="<hostname>",help="host to scan") parser.add_argument("-dp","--ddport",help=...
30.971963
114
0.624925
427
3,314
4.662763
0.306792
0.024108
0.042692
0.031642
0.124561
0.124561
0.108488
0.071321
0.044199
0
0
0.012529
0.22933
3,314
106
115
31.264151
0.767032
0.011467
0
0.090909
0
0
0.161625
0
0
0
0
0
0
1
0.079545
false
0
0.022727
0
0.204545
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8d25c456ce1d78680f761522a288c787f746b68
4,730
py
Python
Python/MachineLearning_Ng/examples/ex2.py
Ritetsu/lizhe_Notes
4c465b5e23c1e520f9508314cfda7f26517d6dd3
[ "MIT" ]
null
null
null
Python/MachineLearning_Ng/examples/ex2.py
Ritetsu/lizhe_Notes
4c465b5e23c1e520f9508314cfda7f26517d6dd3
[ "MIT" ]
null
null
null
Python/MachineLearning_Ng/examples/ex2.py
Ritetsu/lizhe_Notes
4c465b5e23c1e520f9508314cfda7f26517d6dd3
[ "MIT" ]
1
2021-07-07T12:01:42.000Z
2021-07-07T12:01:42.000Z
# -*- coding: utf-8 -*- """ Created on Mon Sep 16 20:15:55 2019 @author: Shinelon """ import numpy as np import pandas as pd import matplotlib.pyplot as plt path='ex2data1.txt' data=pd.read_csv(path,header=None,names=['Exam1','Exam2','Admitted']) data.head() #两个分数的散点图,并用颜色编码可视化 positive=data[data['Admitted'].isin([1]...
31.533333
84
0.679281
790
4,730
4.048101
0.251899
0.035022
0.028455
0.030644
0.313321
0.298311
0.298311
0.265166
0.231395
0.212008
0
0.042553
0.115645
4,730
150
85
31.533333
0.72197
0.07907
0
0.325581
0
0
0.065604
0
0
0
0
0
0
1
0.046512
false
0
0.03876
0.007752
0.131783
0.015504
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ef9b4082cb1779ade1e3f88552ad789562c6383
2,776
py
Python
tests/selenium/auth/test_user.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
9
2019-05-15T11:33:43.000Z
2022-02-17T04:05:28.000Z
tests/selenium/auth/test_user.py
bodik/sner4
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
1
2019-03-01T11:48:13.000Z
2019-03-01T11:48:13.000Z
tests/selenium/auth/test_user.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
3
2020-03-03T21:06:37.000Z
2021-01-11T14:40:56.000Z
# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file. """ auth.views.user selenium tests """ from flask import url_for from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from sner.server.auth.models import User from sner.serve...
46.266667
139
0.747839
415
2,776
4.739759
0.284337
0.071174
0.044738
0.035587
0.616167
0.588205
0.588205
0.588205
0.588205
0.563803
0
0.001626
0.113833
2,776
59
140
47.050847
0.797967
0.177954
0
0.454545
0
0
0.237799
0.127329
0
0
0
0
0.090909
1
0.090909
false
0
0.181818
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
6efaa56371bdc91af714b2ef343d987547b208e3
936
py
Python
isobmff/media_file.py
kentoku24/isobmff
6877505a75915caf440bbb80b6024ba6bf9f3baa
[ "MIT" ]
6
2017-08-31T01:55:37.000Z
2018-12-26T03:03:24.000Z
isobmff/media_file.py
kentoku24/isobmff
6877505a75915caf440bbb80b6024ba6bf9f3baa
[ "MIT" ]
4
2017-08-29T03:47:16.000Z
2017-09-05T09:00:17.000Z
isobmff/media_file.py
m-hiki/isbmff
0724b9892884ae35bdd0796a97a9506098c4cd25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .box import indent from .box import read_box class MediaFile(object): def __init__(self): self.ftyp = None self.mdats = [] self.meta = None self.moov = None def __repr__(self): rep = self.ftyp.__repr__() + '\n' rep +...
26.742857
53
0.459402
101
936
3.960396
0.425743
0.05
0.065
0.06
0
0
0
0
0
0
0
0.001845
0.42094
936
34
54
27.529412
0.736162
0.022436
0
0
0
0
0.036405
0
0
0
0
0
0
1
0.107143
false
0
0.071429
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
6efc25feb8365613f08bcea149b9338afcb635e2
3,690
py
Python
mlw/build_database.py
imjoseangel/hacktheplanet2021
bffc4f9a4f821fcfe2215244f5b563effe6982e5
[ "MIT" ]
1
2021-02-24T12:05:06.000Z
2021-02-24T12:05:06.000Z
mlw/build_database.py
imjoseangel/hacktheplanet2021
bffc4f9a4f821fcfe2215244f5b563effe6982e5
[ "MIT" ]
null
null
null
mlw/build_database.py
imjoseangel/hacktheplanet2021
bffc4f9a4f821fcfe2215244f5b563effe6982e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals) from glob import glob import logging import os from os.path import abspath, dirname, normpath import re from shutil import rmtree import sqlite3 import sys import ...
31.810345
140
0.644986
494
3,690
4.710526
0.455466
0.037817
0.010314
0.015471
0.031801
0
0
0
0
0
0
0.021426
0.190515
3,690
115
141
32.086957
0.757616
0.090786
0
0
0
0
0.356373
0.101137
0
0
0
0
0
1
0
false
0
0.197531
0
0.197531
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6efcad9f388b05b3d7f79c0c4ad5c784bb1826e5
3,486
py
Python
domotica/configuration.py
jjmartinr01/gauss3
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
[ "MIT" ]
null
null
null
domotica/configuration.py
jjmartinr01/gauss3
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
[ "MIT" ]
null
null
null
domotica/configuration.py
jjmartinr01/gauss3
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals TIPO = 'selectable' # 'basic' or 'selectable'. 'basic': necesario para el funcionamiento del programa # 'selectable': No necesario. Añade nuevas funcionalidades al programa # Por ejemplo autenticar es 'basic', pero actas es pre...
41.011765
103
0.592943
322
3,486
6.164596
0.26087
0.075567
0.126952
0.151134
0.68262
0.587406
0.377834
0.35869
0.303275
0.13602
0
0.002848
0.294894
3,486
84
104
41.5
0.804719
0.106999
0
0.276316
0
0
0.580489
0.194784
0
0
0
0
0
1
0
false
0
0.013158
0
0.013158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6efceaaf9fe7bf6e6a3d8409b3f03d38e6342a11
5,944
py
Python
eval.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
eval.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
eval.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
import os import cv2 import fire import time import numpy as np import torch import torch.backends.cudnn as cudnn import torch.nn.functional as F from configs.common import config as cfg from hawkdet.models.build import build_detor from hawkdet.lib.numpy_nms import np_nms from hawkdet.lib.box_utils import decode, dec...
33.206704
105
0.57924
808
5,944
4.094059
0.27599
0.038694
0.012092
0.018138
0.125453
0.100665
0.100665
0.069528
0.069528
0.069528
0
0.023146
0.287685
5,944
178
106
33.393258
0.758148
0.063257
0
0.071429
0
0
0.044685
0.01027
0
0
0
0
0
1
0.035714
false
0.035714
0.092857
0
0.15
0.007143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e00ea020dca2ee0cd420f43a2015391aba2eabc
2,491
py
Python
src/keydra/providers/contentful.py
jangroth/keydra
9bab1b21e025ceb6ae074ea936d693e36efae5a4
[ "MIT" ]
12
2021-05-04T10:47:02.000Z
2022-03-10T13:25:04.000Z
src/keydra/providers/contentful.py
jangroth/keydra
9bab1b21e025ceb6ae074ea936d693e36efae5a4
[ "MIT" ]
17
2021-05-04T00:53:49.000Z
2022-01-18T10:01:49.000Z
src/keydra/providers/contentful.py
jangroth/keydra
9bab1b21e025ceb6ae074ea936d693e36efae5a4
[ "MIT" ]
9
2021-05-04T00:46:38.000Z
2022-02-16T02:55:50.000Z
from keydra.clients.contentful import ContentfulClient from keydra.providers.base import BaseProvider from keydra.providers.base import exponential_backoff_retry from keydra.exceptions import DistributionException from keydra.exceptions import RotationException from keydra.logging import get_logger LOGGER = get_log...
28.965116
79
0.566439
236
2,491
5.788136
0.355932
0.065886
0.057101
0.041728
0.174231
0.060029
0.060029
0.060029
0
0
0
0.00062
0.352469
2,491
85
80
29.305882
0.846249
0.020875
0
0.227273
0
0
0.128847
0
0
0
0
0
0
1
0.075758
false
0
0.090909
0.015152
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e035da887a72ca05d47f4e04f4fd021e19671d0
1,356
py
Python
sahyun_bot/utils_session.py
TheGoodlike13/sahyun-bot
8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb
[ "MIT" ]
1
2022-02-21T18:55:34.000Z
2022-02-21T18:55:34.000Z
sahyun_bot/utils_session.py
TheGoodlike13/sahyun-bot
8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb
[ "MIT" ]
null
null
null
sahyun_bot/utils_session.py
TheGoodlike13/sahyun-bot
8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb
[ "MIT" ]
null
null
null
from requests import Session from requests.adapters import HTTPAdapter from urllib3 import Retry from sahyun_bot.utils_logging import HttpDump DEFAULT_RETRY_COUNT = 3 RETRY_ON_METHOD = frozenset([ 'HEAD', 'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'TRACE' ]) RETRY_ON_STATUS = frozenset([ 403, 429, 500, 502,...
30.133333
117
0.668142
163
1,356
5.282209
0.490798
0.116144
0.081301
0
0
0
0
0
0
0
0
0.021256
0.236726
1,356
44
118
30.818182
0.810628
0.140118
0
0.066667
0
0
0.048161
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e03fc65e12b6935503f8e6630624fed1809bd0e
5,763
py
Python
EzLibrarianApplication/DAO/BookCirculationDAO.py
coregameHD/SmartLib_Librarian
31b58a4aab648ee9110ba6a78d5fcab942267380
[ "MIT" ]
null
null
null
EzLibrarianApplication/DAO/BookCirculationDAO.py
coregameHD/SmartLib_Librarian
31b58a4aab648ee9110ba6a78d5fcab942267380
[ "MIT" ]
null
null
null
EzLibrarianApplication/DAO/BookCirculationDAO.py
coregameHD/SmartLib_Librarian
31b58a4aab648ee9110ba6a78d5fcab942267380
[ "MIT" ]
2
2018-10-01T14:08:25.000Z
2020-09-30T03:02:15.000Z
import json import requests from datetime import datetime, timedelta from BookCirculation import BookCirculation from DAO.AbstractDAO import AbstractDAO from DAO.BookDAO import BookDAO from DAO.UserDAO import UserDAO from constant import * from datetime import datetime class BookCirculationDAO(AbstractDAO): def __...
39.472603
143
0.622245
587
5,763
5.930153
0.178876
0.027578
0.020684
0.027578
0.5237
0.511635
0.484631
0.484631
0.484631
0.456478
0
0.005366
0.288565
5,763
146
144
39.472603
0.843659
0.033837
0
0.5
0
0
0.04118
0
0
0
0
0
0
1
0.081967
false
0.008197
0.07377
0
0.270492
0.098361
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e0aba9a6fd99c2588436a872d706b50b1c4f2cd
1,612
py
Python
Server/server.py
mjbogusz/CCVR
65b11d39c1412134f8a695b30955368eb43c2518
[ "MIT" ]
null
null
null
Server/server.py
mjbogusz/CCVR
65b11d39c1412134f8a695b30955368eb43c2518
[ "MIT" ]
null
null
null
Server/server.py
mjbogusz/CCVR
65b11d39c1412134f8a695b30955368eb43c2518
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from http.server import SimpleHTTPRequestHandler, HTTPServer from urllib.parse import parse_qs import time class CCVRRequestHandler(SimpleHTTPRequestHandler): def do_GET(self): # Add 'files' prefix self.path = '/files' + self.path super().do_GET() def do_HEAD(self): # Add 'files' pre...
25.587302
66
0.673077
224
1,612
4.732143
0.415179
0.033019
0.060377
0.033962
0.171698
0.101887
0.101887
0.101887
0.101887
0.101887
0
0.019231
0.16129
1,612
62
67
26
0.764793
0.036601
0
0.163265
0
0
0.128387
0
0
0
0
0
0
1
0.081633
false
0.020408
0.081633
0
0.204082
0.061224
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e0adca23e72763263f72a46a3ff5aad270ff8c2
4,907
py
Python
dags/dag_update.py
alyildiz/btc_forecast
b1e70431c9f18bee0afda71b96805f6194072548
[ "MIT" ]
5
2021-09-06T08:42:02.000Z
2021-11-15T15:04:57.000Z
dags/dag_update.py
alyildiz/sncf_forecast
b1e70431c9f18bee0afda71b96805f6194072548
[ "MIT" ]
null
null
null
dags/dag_update.py
alyildiz/sncf_forecast
b1e70431c9f18bee0afda71b96805f6194072548
[ "MIT" ]
null
null
null
import os from datetime import datetime, timedelta from airflow import DAG from airflow.operators.docker_operator import DockerOperator from docker.types import Mount default_args = { "owner": "airflow", "description": "Use of the DockerOperator", "depend_on_past": False, "start_date": datetime(2021, ...
41.584746
109
0.651314
579
4,907
5.193437
0.193437
0.04423
0.08979
0.107749
0.699036
0.683073
0.636515
0.634187
0.604589
0.588294
0
0.003587
0.204606
4,907
117
110
41.940171
0.766846
0
0
0.518519
0
0
0.352558
0.144691
0
0
0
0
0
1
0
false
0.009259
0.046296
0
0.046296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e105c7bee23ddd23731ff6b0bc65a97faa40678
2,536
py
Python
examples/tutorial7.py
fangj99/gifmaze
fd0f7fbf592537a26b13359ccf87dab836d9b1b3
[ "MIT" ]
7
2018-04-28T17:25:25.000Z
2021-08-15T17:52:11.000Z
examples/tutorial7.py
fangj99/gifmaze
fd0f7fbf592537a26b13359ccf87dab836d9b1b3
[ "MIT" ]
null
null
null
examples/tutorial7.py
fangj99/gifmaze
fd0f7fbf592537a26b13359ccf87dab836d9b1b3
[ "MIT" ]
2
2019-10-30T03:40:50.000Z
2022-01-02T05:44:33.000Z
# -*- coding: utf-8 -*- """ This script shows how to embed the animation into a background image (it's also possible to embed the animation into another animation, but that's too complicated to implement in a simple program ...) """ from colorsys import hls_to_rgb import gifmaze as gm from gifmaze.algorithms import wil...
31.308642
86
0.714117
429
2,536
4.13986
0.414918
0.027027
0.027027
0.038288
0.127252
0
0
0
0
0
0
0.051841
0.18612
2,536
80
87
31.7
0.808624
0.473975
0
0.058824
0
0
0.029096
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e105caf515da97595cf131c9228511ab5a47c2b
313
py
Python
2-mouth02/socket/communnication.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
4
2021-02-01T10:28:11.000Z
2021-02-01T10:34:40.000Z
2-mouth02/socket/communnication.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
null
null
null
2-mouth02/socket/communnication.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
null
null
null
from socket import * a=input("请输入IP地址:") b=input("请输入端口:") ADDR = ("176.17.12.178", 31414) giao = socket(AF_INET, SOCK_DGRAM) while 1: m = input(":") if not m: break else: giao.sendto(m.encode(), ADDR) d, a = giao.recvfrom(1024) print("意思是", d.decode()) giao.close()
18.411765
37
0.5623
46
313
3.782609
0.76087
0
0
0
0
0
0
0
0
0
0
0.08547
0.252396
313
16
38
19.5625
0.65812
0
0
0
0
0
0.099042
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e11beb96e30d1e453934e9af1acf5d6478cd742
244
py
Python
nice_paintig.py
rushdi21-meet/meet2019y1lab6
e87c2f04593c8f7e3a5c1c66260c49a3690db90c
[ "MIT" ]
null
null
null
nice_paintig.py
rushdi21-meet/meet2019y1lab6
e87c2f04593c8f7e3a5c1c66260c49a3690db90c
[ "MIT" ]
null
null
null
nice_paintig.py
rushdi21-meet/meet2019y1lab6
e87c2f04593c8f7e3a5c1c66260c49a3690db90c
[ "MIT" ]
null
null
null
import turtle color=["green", "yellow",'orange','blue','pruple','red','pink'] x=10 y= 270 i=0 turtle.bgcolor("black") while True: turtle.color(color[0]) turtle.forward(x) turtle.left(y) x+=10 y-=1 i+=1 turtle.mainloop()
16.266667
63
0.614754
39
244
3.846154
0.615385
0.146667
0.053333
0
0
0
0
0
0
0
0
0.054455
0.172131
244
14
64
17.428571
0.688119
0
0
0
0
0
0.159836
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e1247da76756de4876b84765ac8609022ba7513
2,446
py
Python
enzynet/models.py
gdarkwah/enzynet
7367635ae73595822133577054743a4c4c327cf3
[ "MIT" ]
189
2017-07-20T22:16:22.000Z
2022-02-21T17:57:41.000Z
enzynet/models.py
gdarkwah/enzynet
7367635ae73595822133577054743a4c4c327cf3
[ "MIT" ]
16
2019-05-09T14:47:44.000Z
2021-09-19T00:25:59.000Z
enzynet/models.py
gdarkwah/enzynet
7367635ae73595822133577054743a4c4c327cf3
[ "MIT" ]
93
2017-07-20T22:55:41.000Z
2022-03-12T19:42:14.000Z
"""Model definitions.""" # Authors: Afshine Amidi <lastname@mit.edu> # Shervine Amidi <firstname@stanford.edu> # MIT License import numpy as np from enzynet import constants from keras import initializers from keras import layers from keras.layers import advanced_activations from keras import models from k...
28.114943
80
0.618561
278
2,446
5.316547
0.294964
0.064953
0.094723
0.110961
0.581867
0.512855
0.479026
0.479026
0.479026
0.479026
0
0.040314
0.269828
2,446
86
81
28.44186
0.787234
0.080131
0
0.5
0
0
0.016562
0
0
0
0
0
0
1
0.017241
false
0
0.12069
0
0.155172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e140c63bd33992dd5d90e07a79edb1db5f260ce
10,357
py
Python
FeatureCloud/api/cli/test/commands.py
FeatureCloud/FeatureCloud
3421bc9621201ae4a888192f09886122b0cb571a
[ "Apache-2.0" ]
null
null
null
FeatureCloud/api/cli/test/commands.py
FeatureCloud/FeatureCloud
3421bc9621201ae4a888192f09886122b0cb571a
[ "Apache-2.0" ]
null
null
null
FeatureCloud/api/cli/test/commands.py
FeatureCloud/FeatureCloud
3421bc9621201ae4a888192f09886122b0cb571a
[ "Apache-2.0" ]
null
null
null
import os import click import requests from FeatureCloud.api.imp.exceptions import FCException from FeatureCloud.api.imp.test import commands from FeatureCloud.api.cli.test.workflow.commands import workflow @click.group("test") def test() -> None: """Testbed related commands""" test.add_comma...
51.527363
220
0.663609
1,334
10,357
5.096702
0.134183
0.100897
0.038241
0.058244
0.624504
0.582144
0.564495
0.541697
0.518459
0.473746
0
0.00867
0.209327
10,357
200
221
51.785
0.82159
0.03949
0
0.464968
0
0.133758
0.46803
0.011466
0
0
0
0
0
1
0.057325
false
0
0.038217
0
0.095541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e14c4fe464f76c3e655c88c87bd66bc84933f25
4,188
py
Python
axi_plot/utils.py
zoso95/axi_plot
1a8c1f601c75e149d60377ccc4a437c33b3620bb
[ "MIT" ]
null
null
null
axi_plot/utils.py
zoso95/axi_plot
1a8c1f601c75e149d60377ccc4a437c33b3620bb
[ "MIT" ]
null
null
null
axi_plot/utils.py
zoso95/axi_plot
1a8c1f601c75e149d60377ccc4a437c33b3620bb
[ "MIT" ]
null
null
null
import subprocess import logging import os, time from pathlib import Path from shutil import copyfile import pandas as pd from datetime import datetime def estimate_time(filename, config, layer=None): base_commands = ['axicli', filename, '--config', config] end_command = ['-vTC'] if layer is None: ...
36.417391
138
0.680755
555
4,188
4.976577
0.252252
0.032585
0.036206
0.062998
0.433744
0.330558
0.260319
0.260319
0.260319
0.224113
0
0.001766
0.188634
4,188
114
139
36.736842
0.811065
0.10554
0
0.222222
0
0
0.093099
0
0
0
0
0
0
1
0.135802
false
0
0.08642
0
0.320988
0.061728
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e14f76f2adf0f315a94c191c5946f1de65d9fa9
5,258
py
Python
scripts/regions_optimize.py
jason-neal/Starfish
4ffa45e0190fb6f3262511d57d1a563e5ee711de
[ "BSD-3-Clause" ]
1
2017-07-10T00:06:36.000Z
2017-07-10T00:06:36.000Z
scripts/regions_optimize.py
jason-neal/Starfish
4ffa45e0190fb6f3262511d57d1a563e5ee711de
[ "BSD-3-Clause" ]
null
null
null
scripts/regions_optimize.py
jason-neal/Starfish
4ffa45e0190fb6f3262511d57d1a563e5ee711de
[ "BSD-3-Clause" ]
5
2016-06-11T09:48:16.000Z
2019-08-07T19:52:41.000Z
#!/usr/bin/env python import argparse parser = argparse.ArgumentParser(prog="region_optimize.py", description="Find the kernel parameters for Gaussian region zones.") parser.add_argument("spectrum", help="JSON file containing the data, model, and residual.") parser.add_argument("--sigma0", type=float, default=2, help=...
30.929412
135
0.659947
801
5,258
4.25593
0.292135
0.020534
0.019361
0.016427
0.424758
0.410678
0.379583
0.355529
0.355529
0.355529
0
0.014081
0.216622
5,258
169
136
31.112426
0.813547
0.288513
0
0.410526
0
0.010526
0.112259
0
0
0
0
0
0.021053
1
0.042105
false
0
0.105263
0
0.210526
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e15b565f2c5c8e4188c7106981c4468935c3719
2,261
py
Python
Bases/download_bases.py
lucas26xd/Estudo-Dados-COVID19-BR
cba0278e1cbd2464b4b4c7faa866d05d9968247d
[ "MIT" ]
null
null
null
Bases/download_bases.py
lucas26xd/Estudo-Dados-COVID19-BR
cba0278e1cbd2464b4b4c7faa866d05d9968247d
[ "MIT" ]
null
null
null
Bases/download_bases.py
lucas26xd/Estudo-Dados-COVID19-BR
cba0278e1cbd2464b4b4c7faa866d05d9968247d
[ "MIT" ]
null
null
null
import requests from urllib.request import urlopen from bs4 import BeautifulSoup def get_urls_and_last_updates(): # Pega a url e a ultima data de atualização das bases disponíveis no OpenDataSUS urls = list() last_ups = list() try: html = BeautifulSoup(urlopen('https://opendatasus.saude.gov.br/da...
39.666667
132
0.587793
310
2,261
4.154839
0.387097
0.034161
0.015528
0.021739
0.127329
0
0
0
0
0
0
0.024522
0.260504
2,261
56
133
40.375
0.745813
0.066342
0
0.122449
0
0.020408
0.236243
0.048387
0
0
0
0
0
1
0.040816
false
0
0.061224
0
0.122449
0.204082
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e16ddbf593ddf87a424ef3546058ed337f938d3
10,699
py
Python
rax/_src/utils_test.py
google/rax
d6370d574246db9fb0566317f7cac8cd331526d7
[ "Apache-2.0" ]
19
2022-01-25T12:37:51.000Z
2022-03-30T17:12:45.000Z
rax/_src/utils_test.py
google/rax
d6370d574246db9fb0566317f7cac8cd331526d7
[ "Apache-2.0" ]
1
2022-02-08T23:02:42.000Z
2022-02-08T23:02:42.000Z
rax/_src/utils_test.py
google/rax
d6370d574246db9fb0566317f7cac8cd331526d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google LLC. # # 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, ...
34.291667
79
0.639873
1,623
10,699
4.041898
0.126309
0.092988
0.096037
0.106707
0.619512
0.575305
0.495274
0.426829
0.331402
0.262805
0
0.058144
0.183382
10,699
311
80
34.401929
0.692686
0.056173
0
0.239024
0
0
0.001687
0
0
0
0
0
0.204878
1
0.121951
false
0
0.034146
0
0.190244
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e182689577a11bad1e8f7437a3d622ced715f94
427
py
Python
examples/decorators.py
FusionSid/FusionSidAPI.py
e1b50622bf4fcec8265f8fd4e9b3ac79b580d286
[ "MIT" ]
5
2022-03-05T23:29:33.000Z
2022-03-20T07:44:20.000Z
examples/decorators.py
FusionSid/FusionSidAPI.py
e1b50622bf4fcec8265f8fd4e9b3ac79b580d286
[ "MIT" ]
null
null
null
examples/decorators.py
FusionSid/FusionSidAPI.py
e1b50622bf4fcec8265f8fd4e9b3ac79b580d286
[ "MIT" ]
null
null
null
import asyncio from fusionsid import Decorators deco = Decorators do_roast = deco.roast @deco.compliment() # will give you a complement before the function is run @Decorators.fact() # you can just put the class name and use that instead of setting it to a var @do_roast() # you can set it to a variable and use th...
23.722222
97
0.744731
70
427
4.457143
0.657143
0.044872
0.064103
0
0
0
0
0
0
0
0
0
0.177986
427
17
98
25.117647
0.888889
0.400468
0
0
0
0
0.02381
0
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
3e188c93ed7a3552c4548ac6fc5970107dcdbcdb
2,303
py
Python
configs/raubtierv2b/centripetalnet_hourglass104_mstest_16x6_210e_coco_raubtierv2b_2gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
configs/raubtierv2b/centripetalnet_hourglass104_mstest_16x6_210e_coco_raubtierv2b_2gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
configs/raubtierv2b/centripetalnet_hourglass104_mstest_16x6_210e_coco_raubtierv2b_2gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
# Basiskonfigurationsfile _base_ = '../centripetalnet/centripetalnet_hourglass104_mstest_16x6_210e_coco.py' model = dict( type='CornerNet', backbone=dict( type='HourglassNet', downsample_times=5, num_stacks=2, stage_channels=[256, 256, 384, 384, 384, 512], stage_blocks=...
37.145161
191
0.691706
305
2,303
4.97377
0.409836
0.058009
0.105471
0.118655
0.452208
0.377719
0.333553
0.239947
0.239947
0.160844
0
0.101632
0.175423
2,303
61
192
37.754098
0.697209
0.190187
0
0.065217
0
0
0.307983
0.213053
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
3e1c92be5d3fa432577c6a625de6487e656413d6
3,175
py
Python
firecares/firestation/tests/test_feedback.py
FireCARES/firecares
aa708d441790263206dd3a0a480eb6ca9031439d
[ "MIT" ]
12
2016-01-30T02:28:35.000Z
2019-05-29T15:49:56.000Z
firecares/firestation/tests/test_feedback.py
FireCARES/firecares
aa708d441790263206dd3a0a480eb6ca9031439d
[ "MIT" ]
455
2015-07-27T20:21:56.000Z
2022-03-11T23:26:20.000Z
firecares/firestation/tests/test_feedback.py
FireCARES/firecares
aa708d441790263206dd3a0a480eb6ca9031439d
[ "MIT" ]
14
2015-07-29T09:45:53.000Z
2020-10-21T20:03:17.000Z
import json import mock import os from django.contrib.auth import get_user_model from django.core import mail from django.core.urlresolvers import reverse from django.test import Client from firecares.firestation.models import FireDepartment, FireStation, DataFeedback from firecares.firecares_core.tests.base import Bas...
42.333333
110
0.627402
381
3,175
5.065617
0.307087
0.036269
0.031088
0.033161
0.310881
0.277202
0.232642
0.194301
0.137306
0.095855
0
0.009032
0.267717
3,175
74
111
42.905405
0.821075
0.049449
0
0.245614
0
0
0.106689
0.029766
0
0
0
0
0.298246
1
0.017544
false
0
0.157895
0
0.192982
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e24e04ad5a6a1e6faafb25c71a578a2c2c42a6c
4,772
py
Python
api/api/endpoints/sensor_info.py
andschneider/ss_api
4ddf5cd60d5e0e87e7641e97c9fbe78965c4b522
[ "MIT" ]
null
null
null
api/api/endpoints/sensor_info.py
andschneider/ss_api
4ddf5cd60d5e0e87e7641e97c9fbe78965c4b522
[ "MIT" ]
2
2019-12-26T17:31:56.000Z
2020-01-06T19:45:05.000Z
api/api/endpoints/sensor_info.py
andschneider/soil_sense
4ddf5cd60d5e0e87e7641e97c9fbe78965c4b522
[ "MIT" ]
null
null
null
import datetime import json from flask import Response, request, Blueprint from flask_jwt_extended import jwt_required from flask_restplus import Api, Namespace, Resource, reqparse from sqlalchemy.exc import IntegrityError from api.core.db_execptions import bad_db_response from api.core.models import SensorInfoModel,...
33.843972
111
0.573135
513
4,772
5.177388
0.255361
0.069277
0.042169
0.042169
0.423946
0.360316
0.316642
0.240964
0.240964
0.240964
0
0.005625
0.329422
4,772
140
112
34.085714
0.824375
0.0614
0
0.292035
0
0
0.154505
0.006306
0
0
0
0.007143
0
1
0.035398
false
0
0.079646
0
0.212389
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e263e2d36efcfc4b3135f0a65636317114a2c8d
995
py
Python
hash calculator.py
Andrea1141/hash-calculator
182d2f9bcfa0227ad70f7fdb03dde4599717cafa
[ "MIT" ]
1
2021-10-02T12:48:25.000Z
2021-10-02T12:48:25.000Z
hash calculator.py
Andrea1141/hash-calculator
182d2f9bcfa0227ad70f7fdb03dde4599717cafa
[ "MIT" ]
null
null
null
hash calculator.py
Andrea1141/hash-calculator
182d2f9bcfa0227ad70f7fdb03dde4599717cafa
[ "MIT" ]
1
2021-10-18T12:34:26.000Z
2021-10-18T12:34:26.000Z
import tkinter, hashlib root = tkinter.Tk() root.title("Hash Calculator") label = tkinter.Label(text="Write the string to hash") label.pack() option = tkinter.StringVar() option.set("sha224") string = tkinter.StringVar() entry = tkinter.Entry(root, textvariable=string, width=150, justify="center") entr...
28.428571
139
0.684422
118
995
5.70339
0.466102
0.071322
0.044577
0.062407
0
0
0
0
0
0
0
0.048066
0.142714
995
34
140
29.264706
0.740914
0
0
0.08
0
0
0.183143
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e28e0f9797870a68b28678349b8f468bf2771ae
387
py
Python
src/tandlr/notifications/routing.py
shrmoud/schoolapp
7349ce18f56658d67daedf5e1abb352b5c15a029
[ "Apache-2.0" ]
null
null
null
src/tandlr/notifications/routing.py
shrmoud/schoolapp
7349ce18f56658d67daedf5e1abb352b5c15a029
[ "Apache-2.0" ]
null
null
null
src/tandlr/notifications/routing.py
shrmoud/schoolapp
7349ce18f56658d67daedf5e1abb352b5c15a029
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from channels.staticfiles import StaticFilesConsumer from tandlr.notifications import consumers channel_routing = { 'http.request': StaticFilesConsumer(), # Wire up websocket channels to our consumers: 'websocket.connect': consumers.ws_connect, 'websocket.receive': consumers....
25.8
52
0.74677
40
387
7.125
0.6
0.115789
0
0
0
0
0
0
0
0
0
0.00303
0.147287
387
14
53
27.642857
0.860606
0.170543
0
0
0
0
0.207547
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
3e297317547f88cd2d57145599c9dcd9b0299b5a
646
py
Python
2018/d03.py
m1el/advent-of-code
0944579fd58c586ce5a72b4152c5105ec07846a1
[ "MIT" ]
null
null
null
2018/d03.py
m1el/advent-of-code
0944579fd58c586ce5a72b4152c5105ec07846a1
[ "MIT" ]
null
null
null
2018/d03.py
m1el/advent-of-code
0944579fd58c586ce5a72b4152c5105ec07846a1
[ "MIT" ]
null
null
null
from collections import defaultdict, Counter from itertools import product import re with open('03.txt') as fd: inp = [] for l in fd.readlines(): groups = re.findall(r'\d+', l) inp.append(list(map(int, groups))) claims = defaultdict(int) for (id, l,t, w,h) in inp: for y in range(t,t+h): ...
20.1875
45
0.547988
118
646
3
0.398305
0.079096
0.033898
0.039548
0.237288
0.237288
0.237288
0.237288
0.158192
0.158192
0
0.015453
0.298762
646
31
46
20.83871
0.766004
0
0
0.222222
0
0
0.014634
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e2a44b8d417cc833a2bb62cb532d7fa7ff0e6b8
2,591
py
Python
files/lambda/tagger.py
mbasri/generic-spot-cluster
cccfbee4660ae26742e1442f495dc9f523d0a2fd
[ "MIT" ]
1
2019-12-24T18:53:34.000Z
2019-12-24T18:53:34.000Z
files/lambda/tagger.py
mbasri/generic-spot-cluster
cccfbee4660ae26742e1442f495dc9f523d0a2fd
[ "MIT" ]
null
null
null
files/lambda/tagger.py
mbasri/generic-spot-cluster
cccfbee4660ae26742e1442f495dc9f523d0a2fd
[ "MIT" ]
null
null
null
import os import sys import logging import boto3 def handler(event, context): logger = setup_logging(context.aws_request_id) logger.setLevel(logging.INFO) logger.info('## ENVIRONMENT VARIABLES') logger.info(os.environ) logger.info('## EVENT') logger.info(event) count = '1' CLUSTER_NAME = os.environ...
22.530435
81
0.582015
275
2,591
5.4
0.345455
0.06734
0.012121
0.012121
0.095623
0.095623
0.043098
0.043098
0
0
0
0.009028
0.273254
2,591
115
82
22.530435
0.779607
0.005017
0
0.114583
0
0
0.208689
0
0
0
0
0
0
1
0.020833
false
0
0.041667
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e2c4ce8c6ded9f25bc03ff3e20ecd6211356ad1
7,950
py
Python
addressbook/views.py
webskate101/django-polymer-addressbook
bf41b6a83e7b9228b383129958488f1c8075c728
[ "Apache-2.0" ]
null
null
null
addressbook/views.py
webskate101/django-polymer-addressbook
bf41b6a83e7b9228b383129958488f1c8075c728
[ "Apache-2.0" ]
null
null
null
addressbook/views.py
webskate101/django-polymer-addressbook
bf41b6a83e7b9228b383129958488f1c8075c728
[ "Apache-2.0" ]
null
null
null
"""Holds the HTTP handlers for the addressbook app.""" from django import db from django import http from django.views import generic import json from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from addressbook import models JSON_XSSI_PREFIX = ")]}'\n" ...
33.544304
80
0.684528
920
7,950
5.786957
0.181522
0.031555
0.028174
0.033058
0.579264
0.522164
0.48009
0.46882
0.46882
0.429564
0
0.000943
0.199748
7,950
236
81
33.686441
0.835901
0.18566
0
0.38
0
0
0.093931
0.0069
0
0
0
0.004237
0
1
0.113333
false
0
0.046667
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
3e2de9f463b88672a9f0881711bb0f7f45018e12
1,124
py
Python
Housing Price/HouseRegression.py
anupriyamranjit/machinelearning
5e1deef38d356fddcedfe0a23094571500c1c82d
[ "MIT" ]
null
null
null
Housing Price/HouseRegression.py
anupriyamranjit/machinelearning
5e1deef38d356fddcedfe0a23094571500c1c82d
[ "MIT" ]
null
null
null
Housing Price/HouseRegression.py
anupriyamranjit/machinelearning
5e1deef38d356fddcedfe0a23094571500c1c82d
[ "MIT" ]
null
null
null
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import tensorflow as tf import keras import os print(os.listdir("../input")) print("Success") # Any results you write to the current directory are saved as output. # importing models/layers from keras.models ...
22.039216
96
0.758897
165
1,124
5.060606
0.521212
0.086228
0.046707
0.033533
0.067066
0.067066
0
0
0
0
0
0.008955
0.105872
1,124
50
97
22.48
0.821891
0.186833
0
0.214286
0
0
0.133038
0.028825
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e2e001920079b806a3731784374226e2f26379a
1,194
py
Python
migrations/versions/29e48091912e_remove_unique_constraint_from_user_table.py
GitauHarrison/somasoma_V1
2d74ad3b58f7e4ea5334e240d5bd30938f615e24
[ "MIT" ]
null
null
null
migrations/versions/29e48091912e_remove_unique_constraint_from_user_table.py
GitauHarrison/somasoma_V1
2d74ad3b58f7e4ea5334e240d5bd30938f615e24
[ "MIT" ]
2
2021-11-11T19:04:10.000Z
2021-11-11T19:08:42.000Z
migrations/versions/29e48091912e_remove_unique_constraint_from_user_table.py
GitauHarrison/somasoma_V1
2d74ad3b58f7e4ea5334e240d5bd30938f615e24
[ "MIT" ]
1
2021-09-09T13:44:26.000Z
2021-09-09T13:44:26.000Z
"""remove unique constraint from user table Revision ID: 29e48091912e Revises: f73df8de1f1f Create Date: 2021-12-22 22:26:20.918461 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '29e48091912e' down_revision = 'f73df8de1f1f' branch_labels = None depends_on = N...
30.615385
83
0.69598
170
1,194
4.623529
0.323529
0.124682
0.05598
0.081425
0.592875
0.52799
0.492366
0.396947
0.396947
0.259542
0
0.052525
0.170854
1,194
38
84
31.421053
0.741414
0.269682
0
0.111111
0
0
0.179641
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e2e6a8e43d315af581125fc3cb4dc17b915f7a7
6,065
py
Python
VBx/models/resnet.py
Jamiroquai88/VBx
35e7954ac0042ea445dcec657130e2c3c0b94ee0
[ "Apache-2.0" ]
145
2020-02-13T09:08:59.000Z
2022-03-28T02:05:38.000Z
VBx/models/resnet.py
Jamiroquai88/VBx
35e7954ac0042ea445dcec657130e2c3c0b94ee0
[ "Apache-2.0" ]
39
2021-01-12T02:49:37.000Z
2022-02-17T18:49:54.000Z
VBx/models/resnet.py
Jamiroquai88/VBx
35e7954ac0042ea445dcec657130e2c3c0b94ee0
[ "Apache-2.0" ]
44
2020-02-13T03:57:35.000Z
2022-03-31T07:05:09.000Z
'''ResNet in PyTorch. For Pre-activation ResNet, see 'preact_resnet.py'. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 ''' import torch import torch.nn as nn import torch.nn.functional as F import math class BasicBlock(nn.Module...
40.433333
123
0.622754
832
6,065
4.365385
0.163462
0.039648
0.04185
0.039648
0.575991
0.522302
0.517621
0.493667
0.493667
0.493667
0
0.036352
0.251608
6,065
149
124
40.704698
0.763825
0.052102
0
0.380531
0
0
0.005402
0
0
0
0
0
0
1
0.088496
false
0
0.035398
0.00885
0.230089
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e345a0575b803502ed9bfed61051d0d9fb3fa57
5,159
py
Python
bc/recruitment/utils.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-02-27T07:27:17.000Z
2021-02-27T07:27:17.000Z
bc/recruitment/utils.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
null
null
null
bc/recruitment/utils.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-06-09T15:56:54.000Z
2021-06-09T15:56:54.000Z
import json from django import forms from django.contrib.postgres.search import SearchQuery, SearchRank, SearchVector from django.core.exceptions import ValidationError from django.db.models import F from django.db.models.functions import ACos, Cos, Radians, Sin import requests from bc.recruitment.constants import J...
34.393333
107
0.652064
569
5,159
5.6942
0.339192
0.064198
0.040123
0.04321
0.196914
0.127469
0.127469
0.103395
0.080247
0.045062
0
0.00338
0.254507
5,159
149
108
34.624161
0.839054
0.149641
0
0.153846
0
0
0.073675
0.006426
0
0
0
0.006711
0
1
0.048077
false
0
0.086538
0.009615
0.182692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e3c50b123745c81d1f91068db3b602d8d3f128d
5,966
py
Python
dynamo/preprocessing/dynast.py
xing-lab-pitt/dynamo-release
76c1f2a270dd6722b88f4700aac1a1a725a0c261
[ "BSD-3-Clause" ]
236
2019-07-09T22:06:21.000Z
2022-03-31T17:56:07.000Z
dynamo/preprocessing/dynast.py
xing-lab-pitt/dynamo-release
76c1f2a270dd6722b88f4700aac1a1a725a0c261
[ "BSD-3-Clause" ]
115
2019-07-12T19:06:21.000Z
2022-03-31T17:34:18.000Z
dynamo/preprocessing/dynast.py
xing-lab-pitt/dynamo-release
76c1f2a270dd6722b88f4700aac1a1a725a0c261
[ "BSD-3-Clause" ]
34
2019-07-10T03:34:04.000Z
2022-03-22T12:44:22.000Z
import numpy as np from scipy.sparse import issparse from sklearn.utils import sparsefuncs import anndata from typing import Union from ..dynamo_logger import LoggerManager, main_tqdm from ..utils import copy_adata def lambda_correction( adata: anndata.AnnData, lambda_key: str = "lambda", inplace: bool = ...
35.301775
120
0.578947
733
5,966
4.567531
0.253752
0.055854
0.038829
0.048387
0.257168
0.207288
0.180406
0.128435
0.103943
0.028674
0
0.003477
0.325008
5,966
168
121
35.511905
0.827912
0.192927
0
0.266667
0
0
0.179449
0.005127
0
0
0
0
0
1
0.019048
false
0
0.066667
0
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e3cee6ba011350960f8e52993ae0b2666144798
4,095
py
Python
tests/fullscale/poroelasticity/cryer/TestCryer.py
cehanagan/pylith
cf5c1c34040460a82f79b6eb54df894ed1b1ee93
[ "MIT" ]
93
2015-01-08T16:41:22.000Z
2022-02-25T13:40:02.000Z
tests/fullscale/poroelasticity/cryer/TestCryer.py
sloppyjuicy/pylith
ac2c1587f87e45c948638b19560813d4d5b6a9e3
[ "MIT" ]
277
2015-02-20T16:27:35.000Z
2022-03-30T21:13:09.000Z
tests/fullscale/poroelasticity/cryer/TestCryer.py
sloppyjuicy/pylith
ac2c1587f87e45c948638b19560813d4d5b6a9e3
[ "MIT" ]
71
2015-03-24T12:11:08.000Z
2022-03-03T04:26:02.000Z
#!/usr/bin/env nemesis # # ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University at Buffalo # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://g...
31.022727
99
0.477656
342
4,095
5.52924
0.435673
0.037017
0.04495
0.03596
0.356425
0.289265
0.289265
0.218403
0.218403
0.182443
0
0.004733
0.277656
4,095
131
100
31.259542
0.63455
0.298901
0
0.414634
0
0
0.158635
0.042912
0
0
0
0
0
1
0.060976
false
0
0.04878
0.012195
0.182927
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e3e8c87814094936e4351a80831e5bb8fce82f9
3,551
py
Python
util/data.py
pinaryazgan/GDN
469e63fa8c2dce596c6f7e99f2620ac6eec7dadf
[ "MIT" ]
156
2021-03-01T12:49:25.000Z
2022-03-28T08:27:33.000Z
util/data.py
pinaryazgan/GDN
469e63fa8c2dce596c6f7e99f2620ac6eec7dadf
[ "MIT" ]
24
2021-04-19T10:08:35.000Z
2022-03-28T11:42:54.000Z
util/data.py
pinaryazgan/GDN
469e63fa8c2dce596c6f7e99f2620ac6eec7dadf
[ "MIT" ]
54
2021-04-16T17:26:30.000Z
2022-03-28T06:08:43.000Z
# util functions about data from scipy.stats import rankdata, iqr, trim_mean from sklearn.metrics import f1_score, mean_squared_error import numpy as np from numpy import percentile def get_attack_interval(attack): heads = [] tails = [] for i in range(len(attack)): if attack[i] == 1: ...
28.18254
101
0.664602
506
3,551
4.420949
0.179842
0.035762
0.040232
0.017881
0.416629
0.327671
0.327671
0.327671
0.327671
0.291909
0
0.016535
0.216559
3,551
126
102
28.18254
0.787563
0.12757
0
0.235294
0
0
0.003245
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.308824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e41a3d23f1cd5e224926d0f23ef2a864d4c94cb
5,654
py
Python
rrl-sysadmin/sysadmin.py
HyeokjuJang/sr-drl
01fa8264c7b36f34f721303f455f37545dbce1fe
[ "MIT" ]
14
2020-10-02T17:14:04.000Z
2022-02-26T19:26:58.000Z
rrl-sysadmin/sysadmin.py
HyeokjuJang/sr-drl
01fa8264c7b36f34f721303f455f37545dbce1fe
[ "MIT" ]
1
2022-02-26T08:23:13.000Z
2022-02-26T08:23:13.000Z
rrl-sysadmin/sysadmin.py
jaromiru/sr-drl
01fa8264c7b36f34f721303f455f37545dbce1fe
[ "MIT" ]
6
2021-05-04T13:24:12.000Z
2021-12-06T12:51:30.000Z
import gym, random, copy, string, uuid import numpy as np rddl_template = string.Template(''' non-fluents nf_sysadmin_inst_$uid { domain = sysadmin_mdp; objects { computer : {$objects}; }; non-fluents { REBOOT-PROB = $reboot_prob; $connections }; } instance sysadmin_inst_$uid { domain = sysadmin_mdp; non...
25.241071
194
0.662363
842
5,654
4.266033
0.220903
0.054287
0.022272
0.011693
0.07461
0.054287
0.011693
0
0
0
0
0.014678
0.168553
5,654
223
195
25.35426
0.749415
0.105412
0
0.066225
0
0
0.113736
0.019849
0
0
0
0
0
1
0.05298
false
0
0.02649
0
0.145695
0.019868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e43d8b9a039af747051e4f38665ccd61353394f
3,974
py
Python
core/language_modelling.py
lkwate/e-greedy-lm
02e81fee93ee93faca0c1eb339b3c5ad55b4a639
[ "MIT" ]
1
2021-11-09T19:18:00.000Z
2021-11-09T19:18:00.000Z
core/language_modelling.py
lkwate/e-greedy-lm
02e81fee93ee93faca0c1eb339b3c5ad55b4a639
[ "MIT" ]
null
null
null
core/language_modelling.py
lkwate/e-greedy-lm
02e81fee93ee93faca0c1eb339b3c5ad55b4a639
[ "MIT" ]
null
null
null
import torch import torch.optim as optim from transformers import AutoTokenizer from .utils import epsilon_greedy_transform_label, uid_variance_fn, OPTIMIZER_DIC import pytorch_lightning as pl class RLLMLightningModule(pl.LightningModule): def __init__( self, model, action_table: torch.Lon...
32.842975
87
0.638903
445
3,974
5.373034
0.193258
0.097867
0.05688
0.070263
0.276872
0.256378
0.235466
0.235466
0.176495
0.138854
0
0
0.28158
3,974
120
88
33.116667
0.837478
0
0
0.105769
0
0
0.037997
0.011072
0
0
0
0
0
1
0.096154
false
0
0.048077
0.028846
0.240385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e49ee4375c4fdbca12777a89f48b0e9f1e01d7a
3,590
py
Python
tests/imperative_vs_reactive/test_get_daily_average.py
BastiTee/bastis-python-toolbox
c313cf12607a973a1a8b8a9fbd73b2c8a47a82d8
[ "Apache-2.0" ]
1
2016-04-06T14:09:43.000Z
2016-04-06T14:09:43.000Z
tests/imperative_vs_reactive/test_get_daily_average.py
BastiTee/bastis-python-toolbox
c313cf12607a973a1a8b8a9fbd73b2c8a47a82d8
[ "Apache-2.0" ]
null
null
null
tests/imperative_vs_reactive/test_get_daily_average.py
BastiTee/bastis-python-toolbox
c313cf12607a973a1a8b8a9fbd73b2c8a47a82d8
[ "Apache-2.0" ]
1
2022-03-19T04:21:40.000Z
2022-03-19T04:21:40.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Test suite for the daily average Toggl API process.""" from random import random from tempfile import NamedTemporaryFile from time import sleep, time from unittest import TestCase from recipes.imperative_vs_reactive.get_daily_average_imp import \ get_avg_daily_wor...
39.450549
79
0.620334
507
3,590
4.232742
0.327416
0.04753
0.044734
0.037279
0.237651
0.17987
0.162162
0.1137
0.070829
0.027959
0
0.184339
0.256546
3,590
90
80
39.888889
0.619708
0.217827
0
0.140351
0
0
0.266836
0.18139
0
0
0
0
0.035088
1
0.052632
false
0
0.105263
0
0.210526
0.087719
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e4a37d31db8b27c20ff44c3b6b28b18b2dd20b1
4,077
py
Python
pox/stats_monitor.py
nachtkatze/sdn-diagnosis
22b187d276bf302ef5811abc946b1af125dd17bc
[ "Apache-2.0" ]
null
null
null
pox/stats_monitor.py
nachtkatze/sdn-diagnosis
22b187d276bf302ef5811abc946b1af125dd17bc
[ "Apache-2.0" ]
null
null
null
pox/stats_monitor.py
nachtkatze/sdn-diagnosis
22b187d276bf302ef5811abc946b1af125dd17bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Oscar Araque # # 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 writin...
36.72973
81
0.709345
576
4,077
4.920139
0.401042
0.021171
0.017643
0.017996
0.179605
0.162668
0.162668
0.139379
0.12844
0.12844
0
0.003909
0.184204
4,077
110
82
37.063636
0.848166
0.382144
0
0.224138
0
0
0.133441
0
0
0
0
0
0
1
0.137931
false
0
0.172414
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
3e4a39484ed02c469223ab4065ec6d989a83a302
7,623
py
Python
tests/app_example.py
omarryhan/flask-stateless-auth
c6acefc55050d1a53235ead20cb7d5e9eb4bbf9a
[ "MIT" ]
3
2018-09-13T19:55:47.000Z
2018-09-15T18:31:22.000Z
tests/app_example.py
omarryhan/flask-stateless-auth
c6acefc55050d1a53235ead20cb7d5e9eb4bbf9a
[ "MIT" ]
null
null
null
tests/app_example.py
omarryhan/flask-stateless-auth
c6acefc55050d1a53235ead20cb7d5e9eb4bbf9a
[ "MIT" ]
null
null
null
import os import datetime import secrets import json from flask import Flask, abort, request, jsonify from flask_sqlalchemy import SQLAlchemy from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound from werkzeug.security import safe_str_cmp from flask_stateless_auth import ( StatelessAuthError, Sta...
30.987805
88
0.674406
934
7,623
5.251606
0.188437
0.04159
0.036697
0.017329
0.370438
0.333129
0.240367
0.232824
0.214883
0.185117
0
0.009845
0.213827
7,623
245
89
31.114286
0.80861
0.038436
0
0.255102
0
0
0.073831
0.010254
0
0
0
0
0
1
0.086735
false
0
0.045918
0.015306
0.336735
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e4e3e3f65d730e416b620ade003178d96c61532
920
py
Python
stereo/stereo.py
whaleygeek/microbit_python
1fa8e0f34cfa2a92d7c5c32fc5ee5287c5d5b105
[ "MIT" ]
8
2016-11-15T23:04:25.000Z
2021-05-17T17:42:47.000Z
stereo/stereo.py
whaleygeek/microbit_python
1fa8e0f34cfa2a92d7c5c32fc5ee5287c5d5b105
[ "MIT" ]
null
null
null
stereo/stereo.py
whaleygeek/microbit_python
1fa8e0f34cfa2a92d7c5c32fc5ee5287c5d5b105
[ "MIT" ]
null
null
null
from microbit import * import music A = False B = False PITCH = 440 # PIN2 read_analog() ACTION_VALUE = 50 VOLUMEUP_VALUE = 150 VOLUMEDOWN_VALUE = 350 #nothing: 944 prev_l = False prev_r = False l = False r = False while True: v = pin2.read_analog() if v < ACTION_VALUE: l,r = True, True elif v <...
18.77551
40
0.519565
130
920
3.538462
0.315385
0.052174
0.130435
0.047826
0.147826
0
0
0
0
0
0
0.056537
0.384783
920
48
41
19.166667
0.756184
0.032609
0
0.078947
0
0
0
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e50073943f2d59f2a64f9e25a36110605822852
1,062
py
Python
comments/migrations/0004_auto_20170531_1011.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
comments/migrations/0004_auto_20170531_1011.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
comments/migrations/0004_auto_20170531_1011.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('comments', '0003_comment_public'), ] ...
34.258065
114
0.615819
103
1,062
6.126214
0.563107
0.031696
0.050713
0.066561
0.091918
0
0
0
0
0
0
0.006297
0.252354
1,062
30
115
35.4
0.788413
0.019774
0
0.083333
0
0
0.130895
0
0
0
0
0
0
1
0
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e522957a432795bf32198db1cc68b1e2615e3f9
1,924
py
Python
Script/calculate_RMSD.py
dhruvsangamwar/Protein-structure-prediction
99364bfd62f8293ddbe8e2c9a86ca7850b270d44
[ "MIT" ]
1
2022-01-30T08:20:08.000Z
2022-01-30T08:20:08.000Z
Script/calculate_RMSD.py
dhruvsangamwar/ECS_129_Protein-structure-prediction
99364bfd62f8293ddbe8e2c9a86ca7850b270d44
[ "MIT" ]
null
null
null
Script/calculate_RMSD.py
dhruvsangamwar/ECS_129_Protein-structure-prediction
99364bfd62f8293ddbe8e2c9a86ca7850b270d44
[ "MIT" ]
null
null
null
import pdbCleanup as pc import fxndefinitions as f import numpy as np from numpy.linalg import eig pc.takeInput1() DataFrame1 = [] pc.CsvToDataframe(DataFrame1) pc.takeInput2() DataFrame2 = [] pc.CsvToDataframe(DataFrame2) xtil = [0, 0, 0] ytil = [0, 0, 0] x = np.array(DataFrame1) y = np.array(DataFrame2) # This f...
24.666667
67
0.613825
348
1,924
3.385057
0.316092
0.042445
0.03056
0.025467
0.160441
0.025467
0.025467
0
0
0
0
0.112517
0.219335
1,924
77
68
24.987013
0.671771
0.254158
0
0.043478
0
0
0
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
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
3e572d40ef88a1ec3058d9cc94eb6dce557f2d6d
4,728
py
Python
src/voicemaker/voicemaker.py
IAL32/voicemaker
66c9dd25749743d94bb9c3aac8ba2c858f327723
[ "MIT" ]
null
null
null
src/voicemaker/voicemaker.py
IAL32/voicemaker
66c9dd25749743d94bb9c3aac8ba2c858f327723
[ "MIT" ]
1
2022-03-04T14:52:16.000Z
2022-03-08T08:00:59.000Z
src/voicemaker/voicemaker.py
IAL32/voicemaker
66c9dd25749743d94bb9c3aac8ba2c858f327723
[ "MIT" ]
null
null
null
import requests LANGUAGES_LIST = [ 'en-US', 'en-GB', 'en-AU', 'en-HK', 'en-NZ', 'en-SG', 'en-ZA', 'de-DE', 'ar-XA', 'ar-SA', 'bn-IN', 'bg-BG', 'ca-ES', 'cmn-CN', 'zh-HK', 'cmn-TW', 'cy-GB', 'cs-CZ', 'da-DK', 'de-CH', 'es-AR', 'es-CO', 'es-US', 'ga-IE', 'gu-IN', 'hr-HR', 'mr-IN', 'ms-MY', 'mt-MT', 'nl-N...
39.4
164
0.597716
663
4,728
4.143288
0.334842
0.036403
0.012013
0.013105
0.123407
0.101565
0.101565
0.101565
0.065526
0.065526
0
0.019199
0.239848
4,728
119
165
39.731092
0.745131
0.356176
0
0.092308
0
0
0.223598
0
0
0
0
0
0
1
0.123077
false
0
0.015385
0
0.261538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e5810f45ee6abfb855c478735026a678b651dd9
1,365
py
Python
Lecture/Kapitel 9 - Seite 235 - Implementierung des Gradientenverfahrens.py
PhilippMatthes/tensorflow-playground
b5fee6e5f5044dc5cbcd54529d559388a3df7813
[ "MIT" ]
null
null
null
Lecture/Kapitel 9 - Seite 235 - Implementierung des Gradientenverfahrens.py
PhilippMatthes/tensorflow-playground
b5fee6e5f5044dc5cbcd54529d559388a3df7813
[ "MIT" ]
null
null
null
Lecture/Kapitel 9 - Seite 235 - Implementierung des Gradientenverfahrens.py
PhilippMatthes/tensorflow-playground
b5fee6e5f5044dc5cbcd54529d559388a3df7813
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from sklearn.datasets import fetch_california_housing housing = fetch_california_housing() m, n = housing.data.shape housing_data_plus_bias = np.c_[np.ones((m, 1)), housing.data] X = tf.constant(housing_data_plus_bias, dtype=tf.float32, name="X") y = tf.constant(housing.targ...
26.764706
81
0.69304
203
1,365
4.507389
0.384236
0.078689
0.048087
0.04153
0.072131
0.072131
0
0
0
0
0
0.024583
0.165568
1,365
51
82
26.764706
0.778753
0
0
0.171429
0
0
0.022694
0
0
0
0
0
0
1
0.028571
false
0
0.085714
0
0.114286
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e582f1280b1545b27d8bb65ef57684f484bd7bc
1,634
py
Python
python/Fluoroseq/obsolete/scripts/intrinsic_pr_bounds.py
erisyon/whatprot
176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c
[ "MIT" ]
null
null
null
python/Fluoroseq/obsolete/scripts/intrinsic_pr_bounds.py
erisyon/whatprot
176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c
[ "MIT" ]
1
2021-06-12T00:50:08.000Z
2021-06-15T17:59:12.000Z
python/Fluoroseq/obsolete/scripts/intrinsic_pr_bounds.py
erisyon/whatprot
176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c
[ "MIT" ]
1
2021-06-11T19:34:43.000Z
2021-06-11T19:34:43.000Z
# -*- coding: utf-8 -*- """ @author: Matthew Beauregard Smith (UT Austin) """ from common.peptide import Peptide from plotting.plot_pr_curve import plot_pr_curve from numpy import load from simulate.label_peptides import label_peptides TRUE_Y_FILE = 'C:/Users/Matthew/ICES/MarcotteLab/data/classification/c...
30.259259
105
0.676255
245
1,634
4.253061
0.35102
0.028791
0.03167
0.048944
0.128599
0.128599
0.128599
0.128599
0.128599
0.128599
0
0.01446
0.195838
1,634
53
106
30.830189
0.778539
0.056304
0
0.093023
0
0
0.120352
0.114943
0
0
0
0
0
1
0.046512
false
0
0.093023
0.023256
0.186047
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e5b857f8383e340919c32b08170a5b4cd5f70b7
820
py
Python
python-basic-project/unit08/myfinance.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
9
2020-10-25T15:13:32.000Z
2022-03-26T11:27:21.000Z
python-basic-project/unit08/myfinance.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
null
null
null
python-basic-project/unit08/myfinance.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
7
2021-03-01T11:06:45.000Z
2022-03-14T07:06:04.000Z
import requests from bs4 import BeautifulSoup def get_tickers(market=2): url = f"http://comp.fnguide.com/SVO2/common/lookup_data.asp?mkt_gb={market}&comp_gb=1" resp = requests.get(url) data = resp.json() codes = [] for comp in data: code = comp['cd'][-6:] codes.append(code) ret...
24.117647
90
0.603659
113
820
4.230089
0.522124
0.062762
0.100418
0.07113
0
0
0
0
0
0
0
0.026059
0.25122
820
34
91
24.117647
0.752443
0
0
0.071429
0
0.035714
0.19123
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e5c8076b3c080597643c7f2efec1d74b5c8f190
1,882
py
Python
elsie/draw.py
Kobzol/elsie
b7b784d8d04c9e0d545e18504cf4ad23b9e7e8c4
[ "MIT" ]
null
null
null
elsie/draw.py
Kobzol/elsie
b7b784d8d04c9e0d545e18504cf4ad23b9e7e8c4
[ "MIT" ]
null
null
null
elsie/draw.py
Kobzol/elsie
b7b784d8d04c9e0d545e18504cf4ad23b9e7e8c4
[ "MIT" ]
null
null
null
def set_font_from_style(xml, style): if "font" in style: xml.set("font-family", style["font"]) if "size" in style: xml.set("font-size", style["size"]) s = "" if "color" in style: s += "fill:{};".format(style["color"]) if style.get("bold", False): s += "font-weight: b...
26.885714
62
0.508502
238
1,882
3.89916
0.256303
0.071121
0.047414
0.068966
0.336207
0.299569
0.217672
0.217672
0.071121
0
0
0.000801
0.336344
1,882
69
63
27.275362
0.742194
0.002657
0
0.245614
0
0
0.148267
0
0
0
0
0
0
1
0.035088
false
0
0
0
0.035088
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e5e4207adc8922463d0a98148721a7ee4e6e6eb
1,428
py
Python
demos/cookie-clicker/cookie-clicker.py
Coding-Kakis/Automating-Shenanigans-in-Python
c8e00231468668fbe231e0b35e32b9e99d5bd458
[ "MIT" ]
1
2021-09-11T13:05:17.000Z
2021-09-11T13:05:17.000Z
demos/cookie-clicker/cookie-clicker.py
Coding-Kakis/Automating-Shenanigans-in-Python
c8e00231468668fbe231e0b35e32b9e99d5bd458
[ "MIT" ]
null
null
null
demos/cookie-clicker/cookie-clicker.py
Coding-Kakis/Automating-Shenanigans-in-Python
c8e00231468668fbe231e0b35e32b9e99d5bd458
[ "MIT" ]
null
null
null
# Cookie clicker auto-clicker # Works for the classic version here: https://orteil.dashnet.org/experiments/cookie/ import pyautogui def locate_cookie(): """ Returns the locations of the Big Cookie Does not return until the cookie is found """ loc = None while loc == None: loc = pyaut...
19.833333
84
0.573529
166
1,428
4.843373
0.481928
0.049751
0.080846
0
0
0
0
0
0
0
0
0.001026
0.317227
1,428
71
85
20.112676
0.82359
0.219188
0
0.162162
0
0
0.109953
0
0
0
0
0
0
1
0.081081
false
0
0.027027
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e5e941943139ba0623e31d497e78bf7beb9106d
1,485
py
Python
esupa/templatetags/esupa.py
Abando/esupa
84888ff7d7879437659fd06a8707ac033f25b8ab
[ "Apache-2.0" ]
null
null
null
esupa/templatetags/esupa.py
Abando/esupa
84888ff7d7879437659fd06a8707ac033f25b8ab
[ "Apache-2.0" ]
4
2015-11-09T02:01:15.000Z
2016-01-20T14:51:13.000Z
esupa/templatetags/esupa.py
ekevoo/esupa
84888ff7d7879437659fd06a8707ac033f25b8ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2015, Ekevoo.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 l...
37.125
107
0.703704
208
1,485
4.985577
0.548077
0.057859
0.043394
0.030858
0
0
0
0
0
0
0
0.011696
0.193939
1,485
39
108
38.076923
0.854637
0.400673
0
0
0
0
0.093714
0.045714
0
0
0
0
0
1
0.045455
false
0
0.272727
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e62b645957319fa784b6eef70fbe8c8812a5575
3,305
py
Python
ivy/pages.py
swsch/ivy
4932cf7541acff13815be613b0f3335b21c86670
[ "Unlicense" ]
null
null
null
ivy/pages.py
swsch/ivy
4932cf7541acff13815be613b0f3335b21c86670
[ "Unlicense" ]
null
null
null
ivy/pages.py
swsch/ivy
4932cf7541acff13815be613b0f3335b21c86670
[ "Unlicense" ]
null
null
null
# ------------------------------------------------------------------------------ # This module renders and writes HTML pages to disk. # ------------------------------------------------------------------------------ import re import os from . import site from . import events from . import filters from . import utils f...
35.537634
80
0.579728
407
3,305
4.619165
0.29484
0.034043
0.042553
0.046809
0.106915
0.054255
0.031915
0
0
0
0
0.002444
0.257186
3,305
92
81
35.923913
0.76334
0.291074
0
0.033333
0
0
0.107097
0
0
0
0
0
0
1
0.1
false
0
0.166667
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e64ce743607e76cfc572cc4ea2cfe77fba2b173
5,646
py
Python
mvyaml/mvyaml.py
gchiesa/mvyaml
6d4c580bc596d220b45e6a6ccf9b2c3ef582f554
[ "MIT" ]
null
null
null
mvyaml/mvyaml.py
gchiesa/mvyaml
6d4c580bc596d220b45e6a6ccf9b2c3ef582f554
[ "MIT" ]
null
null
null
mvyaml/mvyaml.py
gchiesa/mvyaml
6d4c580bc596d220b45e6a6ccf9b2c3ef582f554
[ "MIT" ]
null
null
null
"""Main module.""" from copy import deepcopy from datetime import datetime from difflib import Differ from io import StringIO from typing import IO, Iterable, AnyStr from datadiff.tools import assert_equal from ruamel.yaml import YAML from ruamel.yaml.comments import CommentedMap class MVYamlVersionNotFoundException...
32.079545
108
0.613355
686
5,646
4.801749
0.189504
0.051002
0.047359
0.019429
0.357316
0.346387
0.287189
0.255009
0.212508
0.212508
0
0.003248
0.29118
5,646
175
109
32.262857
0.81984
0.034006
0
0.3
0
0
0.058299
0
0
0
0
0
0.021429
1
0.128571
false
0.014286
0.092857
0.014286
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
3e6846fed01d2e5081085a1f9b9ca2203cbb1dad
1,137
py
Python
b2share/modules/deposit/search.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
null
null
null
b2share/modules/deposit/search.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
null
null
null
b2share/modules/deposit/search.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
1
2020-09-29T10:56:03.000Z
2020-09-29T10:56:03.000Z
from elasticsearch_dsl import Q, TermsFacet from flask import has_request_context from flask_login import current_user from invenio_search import RecordsSearch from invenio_search.api import DefaultFilter from .permissions import admin_permission_factory def deposits_filter(): """Filter list of deposits. ...
25.266667
74
0.664908
134
1,137
5.470149
0.537313
0.061392
0.090041
0
0
0
0
0
0
0
0
0.001164
0.244503
1,137
45
75
25.266667
0.852154
0.277045
0
0
0
0
0.066581
0
0
0
0
0
0
1
0.045455
false
0
0.272727
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e69d58aa5e27029fd5fb9a2126945c9c542b4c9
1,586
py
Python
code/find_nconfsources.py
fornax-navo/fornax-demo-notebooks
49525d5bed3440d0d1903c29b9a1af8e0ff7e975
[ "BSD-3-Clause" ]
1
2022-02-03T18:12:59.000Z
2022-02-03T18:12:59.000Z
code/find_nconfsources.py
fornax-navo/fornax-demo-notebooks
49525d5bed3440d0d1903c29b9a1af8e0ff7e975
[ "BSD-3-Clause" ]
1
2022-03-11T21:17:35.000Z
2022-03-11T22:28:46.000Z
code/find_nconfsources.py
fornax-navo/fornax-demo-notebooks
49525d5bed3440d0d1903c29b9a1af8e0ff7e975
[ "BSD-3-Clause" ]
2
2022-02-01T00:57:35.000Z
2022-02-13T22:20:55.000Z
import numpy as np from determine_source_type import determine_source_type #function to figure out how many sources are in cutout #and set up necessary tractor input for those sources def find_nconfsources(raval, decval, gal_type, fluxval, x1, y1, cutout_width, subimage_wcs, df): #setup to collect sources ...
38.682927
111
0.663934
239
1,586
4.276151
0.422594
0.029354
0.074364
0.035225
0.146771
0.086106
0.056751
0
0
0
0
0.024958
0.242119
1,586
40
112
39.65
0.825291
0.283102
0
0
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0