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
3e6b0a9948d6ab9ae3bf82cdb88963f7746825d0
334
py
Python
consultas/urls.py
Valarr/django-app
2faac602ce5f36dc9007d4af7a3acd38504f4f95
[ "MIT" ]
null
null
null
consultas/urls.py
Valarr/django-app
2faac602ce5f36dc9007d4af7a3acd38504f4f95
[ "MIT" ]
null
null
null
consultas/urls.py
Valarr/django-app
2faac602ce5f36dc9007d4af7a3acd38504f4f95
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('consultaticket', views.consultaticket, name='consultaticket'), path('consultadecredito', views.consultadecredito, name='consultadecredito'), path('mostrarticket', views.mostrarticket, name='most...
33.4
81
0.730539
32
334
7.625
0.375
0
0
0
0
0
0
0
0
0
0
0
0.122754
334
10
82
33.4
0.832765
0
0
0
0
0
0.277612
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
3e6c1c6b5fbe5a4ffcca63260b56292216d80f44
1,973
py
Python
order_history.py
zylizy/DBMS_Project
d6ff25d566a362495e3b4eb68d48d8400f2f20e6
[ "MIT" ]
null
null
null
order_history.py
zylizy/DBMS_Project
d6ff25d566a362495e3b4eb68d48d8400f2f20e6
[ "MIT" ]
null
null
null
order_history.py
zylizy/DBMS_Project
d6ff25d566a362495e3b4eb68d48d8400f2f20e6
[ "MIT" ]
null
null
null
import streamlit as st from db_functions import * def order_history(): st.title("Order History") sorts = ['None','category','time'] sql_userids = f"select pk_user_id from Users" user_ids = query_db(sql_userids)['pk_user_id'].tolist() user_id = st.selectbox("Please select your userid", user_ids) ...
51.921053
115
0.611759
313
1,973
3.613419
0.217252
0.058355
0.035367
0.044209
0.342175
0.322723
0.322723
0.322723
0.262599
0.262599
0
0.000706
0.281804
1,973
38
116
51.921053
0.797459
0.017739
0
0.15625
0
0.125
0.469008
0.071281
0
0
0
0
0
1
0.03125
false
0
0.0625
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e6d175a2c46fd4c086a5aa6dbda506eabe35fd4
1,415
py
Python
cogs/commands/utility/8ball.py
teSill/temflix
31d40265fa71695966c6178145a1057cd2aeda27
[ "MIT" ]
3
2020-12-21T20:51:56.000Z
2022-01-04T11:55:45.000Z
cogs/commands/utility/8ball.py
teSill/temflix
31d40265fa71695966c6178145a1057cd2aeda27
[ "MIT" ]
null
null
null
cogs/commands/utility/8ball.py
teSill/temflix
31d40265fa71695966c6178145a1057cd2aeda27
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import random class EightBall(commands.Cog): def __init__(self, client): self.client = client @commands.command(aliases=["8ball", "8-ball"], description="Have the magic 8-ball answer your most burning questions.") async def eight_ball(self, ctx): ...
36.282051
123
0.466431
150
1,415
4.36
0.566667
0.030581
0.015291
0.027523
0.12844
0.12844
0.12844
0.12844
0.12844
0.12844
0
0.003741
0.433216
1,415
38
124
37.236842
0.811721
0
0
0
0
0
0.359717
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e74eb605f50a2789671592734f1dea5fd163012
918
py
Python
gharchive/parse_json.py
IAMABOY/Mining-Github
cf11c94e72b11f3ce9d638b562df438c8e56d149
[ "MIT" ]
8
2019-12-08T11:57:59.000Z
2022-01-24T06:26:56.000Z
gharchive/parse_json.py
IAMABOY/Mining-Github
cf11c94e72b11f3ce9d638b562df438c8e56d149
[ "MIT" ]
null
null
null
gharchive/parse_json.py
IAMABOY/Mining-Github
cf11c94e72b11f3ce9d638b562df438c8e56d149
[ "MIT" ]
2
2019-12-17T02:38:55.000Z
2021-12-16T01:53:11.000Z
import sys import os import json import gzip def jsonReader(inputJsonFilePath,pos): flag = False with gzip.open(inputJsonFilePath, 'r') as jsonContent: for rowNumber, line in enumerate(jsonContent, start=1): try: #此处加上flag的目的在于,当程序挂掉时候,可以根据域名从指定位置开始,不必重头开始跑 ...
24.157895
63
0.484749
85
918
5.141176
0.623529
0.032037
0
0
0
0
0
0
0
0
0
0.025
0.433551
918
38
64
24.157895
0.815385
0.046841
0
0.12
0
0
0.038857
0.024
0
0
0
0
0
1
0.04
false
0
0.16
0
0.2
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e753e4b76a7bccde83190218fa4e3ea302764fe
393
py
Python
iotalib/check_roof.py
WWGolay/iota
f3e67502d7f96bb836b45b7eca4ebb9fe5490e6d
[ "MIT" ]
null
null
null
iotalib/check_roof.py
WWGolay/iota
f3e67502d7f96bb836b45b7eca4ebb9fe5490e6d
[ "MIT" ]
null
null
null
iotalib/check_roof.py
WWGolay/iota
f3e67502d7f96bb836b45b7eca4ebb9fe5490e6d
[ "MIT" ]
null
null
null
#!/usr/bin/python import pycurl from io import BytesIO def checkOpen(): isOpen = False buffer = BytesIO() c = pycurl.Curl() c.setopt(c.URL, 'https://www.winer.org/Site/Roof.php') c.setopt(c.WRITEDATA, buffer) c.perform() c.close() body = buffer.getvalue() if body.fi...
21.833333
59
0.592875
52
393
4.480769
0.711538
0.060086
0.06867
0
0
0
0
0
0
0
0
0.003436
0.259542
393
18
60
21.833333
0.797251
0.040712
0
0
0
0
0.144444
0
0
0
0
0
0
1
0.071429
false
0
0.142857
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
3e7863d676fdd4741e30575b304165077d18541c
2,238
py
Python
egg/app.py
eanorambuena/Driver
3cb14f5d741c6bae364326305ae0ded04e10e9d4
[ "MIT" ]
null
null
null
egg/app.py
eanorambuena/Driver
3cb14f5d741c6bae364326305ae0ded04e10e9d4
[ "MIT" ]
null
null
null
egg/app.py
eanorambuena/Driver
3cb14f5d741c6bae364326305ae0ded04e10e9d4
[ "MIT" ]
null
null
null
# Imports from egg.resources.console import get, clearConsole from egg.resources.constants import * from egg.resources.modules import install, upgrade, Repo from egg.resources.help import help from egg.resources.auth import login, register """ FUNCTION eggConsole(condition: bool = True) Display the Egg Console Curren...
32.434783
113
0.605004
271
2,238
4.99262
0.357934
0.033259
0.059128
0.039911
0.075388
0.039911
0
0
0
0
0
0.000637
0.298034
2,238
69
114
32.434783
0.860598
0.00983
0
0.136364
0
0
0.115357
0
0
0
0
0
0
1
0.022727
false
0.022727
0.159091
0
0.204545
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e7d231b81300bc8be65b86f6758957fdbb26baa
653
py
Python
backend-project/small_eod/users/models.py
merito/small_eod
ab19b82f374cd7c4b21d8f9412657dbe7f7f03e2
[ "MIT" ]
64
2019-12-30T11:24:03.000Z
2021-06-24T01:04:56.000Z
backend-project/small_eod/users/models.py
merito/small_eod
ab19b82f374cd7c4b21d8f9412657dbe7f7f03e2
[ "MIT" ]
465
2018-06-13T21:43:43.000Z
2022-01-04T23:33:56.000Z
backend-project/small_eod/users/models.py
merito/small_eod
ab19b82f374cd7c4b21d8f9412657dbe7f7f03e2
[ "MIT" ]
72
2018-12-02T19:47:03.000Z
2022-01-04T22:54:49.000Z
from django.contrib.auth.models import AbstractUser from ..notifications.utils import TemplateKey, TemplateMailManager class User(AbstractUser): def notify(self, **kwargs): kwargs["user"] = self enabled = self.get_enabled_notifications() key = getattr( TemplateKey, f"{kwargs['...
29.681818
79
0.658499
67
653
6.298507
0.58209
0.047393
0.109005
0
0
0
0
0
0
0
0
0
0.240429
653
21
80
31.095238
0.850806
0
0
0
0
0
0.062787
0.056662
0
0
0
0
0
1
0.125
false
0
0.125
0.0625
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
3e7efc62df24d3372d57ba9f3602f16dfbfbeff6
2,689
py
Python
rtlsdr_sstv/utils.py
martinber/rtlsdr_sstv
f59ca523408e949f98c4b81b09b2d46232111f4a
[ "MIT" ]
3
2019-03-16T01:20:09.000Z
2020-12-31T12:31:17.000Z
rtlsdr_sstv/utils.py
martinber/rtlsdr_sstv
f59ca523408e949f98c4b81b09b2d46232111f4a
[ "MIT" ]
null
null
null
rtlsdr_sstv/utils.py
martinber/rtlsdr_sstv
f59ca523408e949f98c4b81b09b2d46232111f4a
[ "MIT" ]
1
2020-12-27T02:31:18.000Z
2020-12-27T02:31:18.000Z
import collections import math import numpy as np def mapeadora(value): valor_mapeado = int((value-1500)/800*255) return valor_mapeado def escribir_pixel(img, columna, linea, canal, valor): '''funcion encargada de escribir pixel por pixel la imagen''' if linea >= img.height: return if can...
29.549451
80
0.581629
368
2,689
4.19837
0.296196
0.100971
0.058252
0.085437
0.368932
0.311974
0.272492
0.272492
0.262783
0.262783
0
0.039115
0.277427
2,689
90
81
29.877778
0.756047
0.132391
0
0.262295
0
0
0.006111
0
0
0
0
0
0
1
0.065574
false
0.032787
0.04918
0
0.163934
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e7f9f610ed95d40e15a8580e0dd70e9219fb93d
3,653
py
Python
Pong.py
Mishkanian/pong_game
5a04b4b5fc36af2159e60fb85941034a2325996c
[ "MIT" ]
null
null
null
Pong.py
Mishkanian/pong_game
5a04b4b5fc36af2159e60fb85941034a2325996c
[ "MIT" ]
null
null
null
Pong.py
Mishkanian/pong_game
5a04b4b5fc36af2159e60fb85941034a2325996c
[ "MIT" ]
1
2021-11-15T20:21:53.000Z
2021-11-15T20:21:53.000Z
""" Pong game by Michael Mishkanian """ import turtle wn = turtle.Screen() wn.title("Pong by Michael Mishkanian") wn.bgcolor("black") wn.setup(width=800, height=600) wn.tracer(0) # Paddle A paddle_a = turtle.Turtle() paddle_a.speed(0) paddle_a.shape("square") paddle_a.color("white") paddle_a.shapesize(stretch_wid=5, ...
26.280576
120
0.611005
565
3,653
3.854867
0.215929
0.067493
0.031221
0.034894
0.583563
0.55877
0.506887
0.455464
0.402204
0.402204
0
0.043952
0.246373
3,653
138
121
26.471014
0.747185
0.266083
0
0.284091
0
0
0.081522
0
0
0
0
0
0
1
0.045455
false
0
0.011364
0
0.056818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e83c39b04f2c10f748cc83b7509198a99b52216
1,432
py
Python
clean.py
glqstrauss/oopsgenie
d1984e332b11f972db2008867f1aba0917457b9b
[ "MIT" ]
5
2020-01-02T21:15:31.000Z
2020-07-29T18:01:51.000Z
clean.py
glqstrauss/oopsgenie
d1984e332b11f972db2008867f1aba0917457b9b
[ "MIT" ]
2
2020-01-07T15:36:44.000Z
2020-01-13T20:38:45.000Z
clean.py
glqstrauss/oopsgenie
d1984e332b11f972db2008867f1aba0917457b9b
[ "MIT" ]
1
2020-07-29T17:10:32.000Z
2020-07-29T17:10:32.000Z
import csv from utils import get_valid_colum_indices class Cleaner(): def clean(file, clean_columns, remove): print ("Cleaning {}".format(file)) print ("For columns {}".format(clean_columns)) new_file = file[0:-7] + "clean.csv" with open(file, 'r') as raw_file: reader...
34.926829
73
0.48743
143
1,432
4.72028
0.398601
0.106667
0.038519
0.059259
0
0
0
0
0
0
0
0.003641
0.424581
1,432
41
74
34.926829
0.815534
0
0
0.060606
0
0
0.05792
0
0
0
0
0
0
1
0.030303
false
0
0.060606
0
0.151515
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
3e8a5b0b6fc0612db9638f1736e52adef498431d
37,129
py
Python
morm/db.py
neurobin/python-morm
2b6dcedc7090a9e642331300a24dfcca41ea1afe
[ "BSD-3-Clause" ]
4
2021-03-12T16:36:24.000Z
2022-03-06T09:26:14.000Z
morm/db.py
neurobin/python-morm
2b6dcedc7090a9e642331300a24dfcca41ea1afe
[ "BSD-3-Clause" ]
null
null
null
morm/db.py
neurobin/python-morm
2b6dcedc7090a9e642331300a24dfcca41ea1afe
[ "BSD-3-Clause" ]
null
null
null
"""DB utilities. """ __author__ = 'Md Jahidul Hamid <jahidulhamid@yahoo.com>' __copyright__ = 'Copyright © Md Jahidul Hamid <https://github.com/neurobin/>' __license__ = '[BSD](http://www.opensource.org/licenses/bsd-license.php)' __version__ = '0.1.0' import collections import re import asyncio import nest_asyncio #...
33.969808
267
0.577177
4,602
37,129
4.538027
0.125815
0.017717
0.014078
0.011061
0.351992
0.292521
0.262354
0.231134
0.189667
0.171854
0
0.005954
0.321474
37,129
1,092
268
34.000916
0.822967
0.348299
0
0.239691
0
0.005155
0.08693
0.025129
0
0
0
0.000916
0
1
0.095361
false
0.002577
0.033505
0.005155
0.268041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3e8c2e49f52c5a966e053c091e7e268d680d58d4
2,397
py
Python
cvxpy/reductions/solvers/conic_solvers/super_scs_conif.py
mostafaelaraby/cvxpy
078e025be8b8315b5f579bd0209e8e3a1e2a2a19
[ "ECL-2.0", "Apache-2.0" ]
2
2021-09-24T12:59:45.000Z
2021-09-24T13:00:08.000Z
cvxpy/reductions/solvers/conic_solvers/super_scs_conif.py
mostafaelaraby/cvxpy
078e025be8b8315b5f579bd0209e8e3a1e2a2a19
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/reductions/solvers/conic_solvers/super_scs_conif.py
mostafaelaraby/cvxpy
078e025be8b8315b5f579bd0209e8e3a1e2a2a19
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-12T05:17:18.000Z
2020-04-12T05:17:18.000Z
""" Copyright 2018 Riley Murray 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.291667
88
0.635378
318
2,397
4.669811
0.399371
0.059259
0.040404
0.051178
0.078114
0.051178
0
0
0
0
0
0.009159
0.271172
2,397
71
89
33.760563
0.84087
0.377138
0
0.064516
0
0
0.024158
0
0
0
0
0
0
1
0.096774
false
0
0.193548
0.032258
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e40f115d7100a36cb4b801ec2f9f1a7a1eb33d05
4,984
py
Python
linear_model.py
gavb222/flatpanel-localize
6504eb94379f5df268ae280f996c7dd66f063e4e
[ "MIT" ]
1
2021-02-01T18:17:11.000Z
2021-02-01T18:17:11.000Z
linear_model.py
gavb222/flatpanel-localize
6504eb94379f5df268ae280f996c7dd66f063e4e
[ "MIT" ]
null
null
null
linear_model.py
gavb222/flatpanel-localize
6504eb94379f5df268ae280f996c7dd66f063e4e
[ "MIT" ]
1
2021-02-01T18:07:12.000Z
2021-02-01T18:07:12.000Z
import torch import torch.nn as nn import torch.nn.functional as F import math import time import random import matlab.engine def gaussian(spread): #spread controls the size of the array linspace = torch.linspace(-2.5,2.5,spread) # gaussian = e^((-x)^2/2) when standard dev is 1 and height is 1 ...
33.006623
131
0.647673
765
4,984
4.040523
0.249673
0.029117
0.032028
0.03494
0.213847
0.162731
0.052734
0.025558
0.018764
0
0
0.041967
0.220706
4,984
150
132
33.226667
0.753862
0.215891
0
0.068182
0
0
0.00268
0
0
0
0
0.006667
0
1
0.068182
false
0
0.079545
0
0.238636
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e40f68af3b51a18af4106a68a0e2666e5541b720
4,438
py
Python
client/client.py
s-ball/remo_serv
66accbd77183db0628a9618cf258656ec2d81316
[ "MIT" ]
null
null
null
client/client.py
s-ball/remo_serv
66accbd77183db0628a9618cf258656ec2d81316
[ "MIT" ]
null
null
null
client/client.py
s-ball/remo_serv
66accbd77183db0628a9618cf258656ec2d81316
[ "MIT" ]
null
null
null
# Copyright (c) 2020 SBA- MIT License import getpass import argparse import sys import cmd import shlex from urllib.error import HTTPError from cryptography.hazmat.primitives import serialization from client.clientlib import login, Connection from client import smartcard def parse2(arg): args = list(shlex.sp...
30.190476
83
0.570077
555
4,438
4.45045
0.275676
0.018219
0.048178
0.043725
0.255061
0.255061
0.209717
0.209717
0.209717
0.181377
0
0.008157
0.309374
4,438
146
84
30.39726
0.797716
0.1032
0
0.318182
0
0
0.102238
0
0
0
0
0
0
1
0.118182
false
0.018182
0.081818
0
0.254545
0.109091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e410307635af99e3b3cc52fdda648a0910806c95
1,867
py
Python
unfollower.py
Sam-F90/unfollower
feee9815f440d3a654f77a21ec84680ac92022c1
[ "MIT" ]
null
null
null
unfollower.py
Sam-F90/unfollower
feee9815f440d3a654f77a21ec84680ac92022c1
[ "MIT" ]
null
null
null
unfollower.py
Sam-F90/unfollower
feee9815f440d3a654f77a21ec84680ac92022c1
[ "MIT" ]
null
null
null
import tweepy import datetime import os # get keys from evironment variable "TWITTER_KEYS" TWITTER_API_KEYS = (os.environ.get("TWITTER_KEYS").split(",")) consumer_key,consumer_secret,access_token_key,access_token_secret = TWITTER_API_KEYS # Authenticate to Twitter auth = tweepy.OAuthHandler(consumer_key, consumer_se...
27.455882
139
0.719336
285
1,867
4.536842
0.364912
0.042537
0.020882
0.03867
0.098995
0.098995
0.051044
0.051044
0.051044
0.051044
0
0
0.149438
1,867
68
140
27.455882
0.814232
0.225495
0
0
0
0
0.084438
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
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
e4129e9fa1ffc789238869830a16a81f822bb51c
2,113
py
Python
alpha/NN/autoencoders/charlie.py
DanielBerns/keras-effective-adventure
d9bc8c08f769f0c07379d2a3756d040ca14239f2
[ "MIT" ]
null
null
null
alpha/NN/autoencoders/charlie.py
DanielBerns/keras-effective-adventure
d9bc8c08f769f0c07379d2a3756d040ca14239f2
[ "MIT" ]
null
null
null
alpha/NN/autoencoders/charlie.py
DanielBerns/keras-effective-adventure
d9bc8c08f769f0c07379d2a3756d040ca14239f2
[ "MIT" ]
null
null
null
# https://medium.com/datadriveninvestor/deep-autoencoder-using-keras-b77cd3e8be95 from keras.datasets import mnist from keras.layers import Input, Dense from keras.models import Model import numpy as np import pandas as pd import matplotlib.pyplot as plt (X_train, _), (X_test, _) = mnist.load_data() X_train = X_trai...
27.802632
87
0.69664
310
2,113
4.596774
0.329032
0.045614
0.063158
0.025263
0.317895
0.271579
0.178947
0.178947
0.146667
0.146667
0
0.040851
0.154283
2,113
75
88
28.173333
0.756575
0.073355
0
0.173077
0
0
0.046107
0
0
0
0
0
0
1
0
false
0
0.115385
0
0.115385
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4137613cb4a7761df5564e9e723f2867c6f080e
5,569
py
Python
tests/pages/alert_box_page.py
nairraghav/selenium-example
88e4316a75bcd7feced65489c0ffe1b8c2b8487b
[ "MIT" ]
null
null
null
tests/pages/alert_box_page.py
nairraghav/selenium-example
88e4316a75bcd7feced65489c0ffe1b8c2b8487b
[ "MIT" ]
null
null
null
tests/pages/alert_box_page.py
nairraghav/selenium-example
88e4316a75bcd7feced65489c0ffe1b8c2b8487b
[ "MIT" ]
null
null
null
class AlertBoxPage: def __init__(self, driver): self.driver = driver self.title_css = "h1" self.title_text = "Alert Box Examples" self.explanation_css = "div.explanation > p" self.explanation_text = ( "There are three main JavaScript methods " "which ...
40.355072
88
0.644101
690
5,569
4.831884
0.146377
0.071986
0.071386
0.10078
0.64847
0.444811
0.440912
0.377325
0.358428
0.311638
0
0.000989
0.274017
5,569
137
89
40.649635
0.823646
0
0
0.309524
0
0
0.147064
0.014186
0
0
0
0
0.095238
1
0.047619
false
0
0
0
0.079365
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e414c3ce91122f63e50497c6f5b8998f2cc88f9e
3,893
py
Python
padmini/prakarana/dvitva.py
sanskrit/padmini
8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0
[ "MIT" ]
1
2022-03-01T05:05:04.000Z
2022-03-01T05:05:04.000Z
padmini/prakarana/dvitva.py
sanskrit/padmini
8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0
[ "MIT" ]
null
null
null
padmini/prakarana/dvitva.py
sanskrit/padmini
8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0
[ "MIT" ]
null
null
null
from padmini import filters as f from padmini import operations as op from padmini.constants import Tag as T from padmini.sounds import s from padmini.prakriya import Term, Prakriya from padmini.term_views import TermView from padmini.prakarana.utils import eka_ac def _double(rule: str, p: Prakriya, dhatu: Term, i: i...
31.144
81
0.554585
610
3,893
3.47541
0.247541
0.013208
0.049057
0.075472
0.396226
0.315094
0.242453
0.172642
0.149057
0.062264
0
0.025173
0.295916
3,893
124
82
31.395161
0.748267
0.12972
0
0.255814
0
0
0.048961
0
0
0
0
0.008065
0
1
0.034884
false
0
0.081395
0
0.127907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4160c8bd63d807a761f9c2eb1581d092fef5ff0
449
py
Python
modules/dbnd-airflow/src/dbnd_airflow/scheduler/dags/dbnd_dropin_scheduler.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow/src/dbnd_airflow/scheduler/dags/dbnd_dropin_scheduler.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow/src/dbnd_airflow/scheduler/dags/dbnd_dropin_scheduler.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger("dbnd-scheduler") try: from dbnd_airflow.scheduler.scheduler_dags_provider import get_dags # airflow will only scan files containing the text DAG or airflow. This comment performs this function dags = get_dags() if dags: for dag in dags: ...
24.944444
106
0.710468
63
449
4.968254
0.634921
0.067093
0
0
0
0
0
0
0
0
0
0
0.224944
449
17
107
26.411765
0.899425
0.222717
0
0
0
0
0.152738
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e41914e68f6a31dadb107fe8bb9eaf841bed6173
4,268
py
Python
tanacompendium/utils/modelmanagers.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
tanacompendium/utils/modelmanagers.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
tanacompendium/utils/modelmanagers.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
import datetime from django.contrib.contenttypes.models import ContentType from django.db.models import FieldDoesNotExist from django.db.models.base import ObjectDoesNotExist def create_model_type(instance, model_type, key, slugify, **kwargs): """ Create object by model type :param instance: Model manager...
34.419355
112
0.684161
561
4,268
5.016043
0.194296
0.072495
0.037313
0.049751
0.366382
0.341507
0.290334
0.261905
0.246979
0.246979
0
0.001856
0.242502
4,268
123
113
34.699187
0.868543
0.376054
0
0.172414
0
0
0.013508
0
0
0
0
0
0
1
0.12069
false
0
0.068966
0
0.396552
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4193bf7c1b3cd811dde985083067c06d301bbfb
2,588
py
Python
deletion_test.py
tjake/cassandra-dtest
df49e4f16b2ed8b9c38f767fffd796ae3d9cc6f3
[ "Apache-2.0" ]
null
null
null
deletion_test.py
tjake/cassandra-dtest
df49e4f16b2ed8b9c38f767fffd796ae3d9cc6f3
[ "Apache-2.0" ]
null
null
null
deletion_test.py
tjake/cassandra-dtest
df49e4f16b2ed8b9c38f767fffd796ae3d9cc6f3
[ "Apache-2.0" ]
null
null
null
from dtest import Tester import os, sys, time from ccmlib.cluster import Cluster from tools import require, since from jmxutils import make_mbean, JolokiaAgent class TestDeletion(Tester): def gc_test(self): """ Test that tombstone are fully purge after gc_grace """ cluster = self.cluster ...
34.052632
91
0.632921
336
2,588
4.785714
0.324405
0.064677
0.037313
0.046642
0.304726
0.295398
0.198383
0.198383
0.126866
0.069652
0
0.027806
0.235703
2,588
75
92
34.506667
0.785137
0.031685
0
0.226415
0
0
0.131253
0
0
0
0
0
0.09434
1
0.09434
false
0
0.09434
0.018868
0.264151
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e41c425d0ed1f3d737beeff6b6c0f31113fafb62
768
py
Python
multicasting_test_scripts/sender.py
sandwichdoge/libmulticastudp
735a3a6242d5444f9a5a070322a7033296707cdf
[ "MIT" ]
null
null
null
multicasting_test_scripts/sender.py
sandwichdoge/libmulticastudp
735a3a6242d5444f9a5a070322a7033296707cdf
[ "MIT" ]
null
null
null
multicasting_test_scripts/sender.py
sandwichdoge/libmulticastudp
735a3a6242d5444f9a5a070322a7033296707cdf
[ "MIT" ]
null
null
null
# # mostly copied from # http://bioportal.weizmann.ac.il/course/python/PyMOTW/PyMOTW/docs/socket/multicast.html # import socket import struct import sys import time message = 'data worth repeating' multicast_group = ('226.1.1.1', 4321) # Create the datagram socket sock = socket.socket(socket.AF_INET, socket.SOCK_D...
20.756757
90
0.670573
105
768
4.866667
0.628571
0.082192
0.054795
0
0
0
0
0
0
0
0
0.025042
0.220052
768
36
91
21.333333
0.828047
0.328125
0
0
0
0
0.116371
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e42510b046e5ad727d96dec824908363abd5654f
852
py
Python
python/chol_factor_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
2
2020-05-03T17:02:44.000Z
2022-02-21T04:09:34.000Z
python/chol_factor_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
null
null
null
python/chol_factor_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
null
null
null
import numpy as np from chol_factor import chol_factor from triangular import triangular # TEST: Cholesky factorization (LL') # Symmetric positive definite matrix A = np.matrix('5 1.2 0.3 -0.6;' '1.2 6 -0.4 0.9;' '0.3 -0.4 8 1.7;' '-0.6 0.9 1.7 10'); print('A = ...
23.027027
53
0.580986
150
852
3.28
0.373333
0.060976
0.012195
0
0
0
0
0
0
0
0
0.064815
0.239437
852
36
54
23.666667
0.694444
0.190141
0
0
0
0
0.264706
0
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4257523a5f56faf33e09f713fd3a02e93109a4b
11,245
py
Python
PSO_system/GUI/gui_root.py
daniel4lee/PSO-car-simulator
b4aebca0fed614e33acc3e7d665085d55a67b82a
[ "MIT" ]
1
2022-03-23T21:51:59.000Z
2022-03-23T21:51:59.000Z
PSO_system/GUI/gui_root.py
daniel4lee/PSO-car-simulator
b4aebca0fed614e33acc3e7d665085d55a67b82a
[ "MIT" ]
1
2018-10-08T12:53:42.000Z
2018-10-08T13:46:13.000Z
PSO_system/GUI/gui_root.py
daniel4lee/PSO-car-simulator
b4aebca0fed614e33acc3e7d665085d55a67b82a
[ "MIT" ]
2
2020-04-26T08:22:53.000Z
2021-05-18T09:51:24.000Z
"""Build the tkinter gui root""" import math from PyQt5.QtWidgets import *#(QWidget, QToolTip, QDesktopWidget, QPushButton, QApplication) from PyQt5.QtGui import QFont from PyQt5.QtCore import QCoreApplication, QObject, QRunnable, QThread, QThreadPool, pyqtSignal, pyqtSlot from PyQt5.QtGui import QIntValidator, QDoubl...
41.494465
139
0.649355
1,396
11,245
4.984241
0.161175
0.049583
0.035499
0.024432
0.237281
0.136677
0.088675
0.088675
0.08307
0.08307
0
0.020826
0.23566
11,245
270
140
41.648148
0.788714
0.052557
0
0.076596
0
0
0.061251
0.015266
0
0
0
0
0
1
0.051064
false
0
0.042553
0
0.097872
0.004255
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e425b8c86c1c0699016fdb4cfc8b01eea833c4f2
2,346
py
Python
qsrlib/src/qsrlib_qsrs/qsr_cardinal_direction.py
alexiatoumpa/QSR_Detector
ff92a128dddb613690a49a7b4130afeac0dd4381
[ "MIT" ]
15
2015-06-15T16:50:37.000Z
2022-03-27T09:25:56.000Z
qsrlib/src/qsrlib_qsrs/qsr_cardinal_direction.py
alexiatoumpa/QSR_Detector
ff92a128dddb613690a49a7b4130afeac0dd4381
[ "MIT" ]
205
2015-01-22T12:02:59.000Z
2022-03-29T11:59:55.000Z
qsrlib/src/qsrlib_qsrs/qsr_cardinal_direction.py
alexiatoumpa/QSR_Detector
ff92a128dddb613690a49a7b4130afeac0dd4381
[ "MIT" ]
16
2015-02-04T23:13:18.000Z
2022-03-08T13:45:53.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division from qsrlib_qsrs.qsr_dyadic_abstractclass import QSR_Dyadic_1t_Abstractclass import math class QSR_Cardinal_Direction(QSR_Dyadic_1t_Abstractclass): """Cardinal direction relations. Values of the abstract properties * **_unique_id*...
31.28
118
0.561381
307
2,346
4.123779
0.439739
0.015798
0.047393
0.037915
0.131122
0.091627
0.091627
0.053712
0.053712
0.053712
0
0.036992
0.297101
2,346
74
119
31.702703
0.730746
0.373402
0
0
0
0
0.043257
0
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.448276
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4287373cf648c93ed322e508af33deff1f8e862
4,291
py
Python
clustering/GMM.py
peasant98/NBA-Stats-Clustering
57ff7e70a8cbb0c609d6a6720134a37695e2a860
[ "MIT" ]
null
null
null
clustering/GMM.py
peasant98/NBA-Stats-Clustering
57ff7e70a8cbb0c609d6a6720134a37695e2a860
[ "MIT" ]
null
null
null
clustering/GMM.py
peasant98/NBA-Stats-Clustering
57ff7e70a8cbb0c609d6a6720134a37695e2a860
[ "MIT" ]
null
null
null
# NBA Stats Clustering # Copyright Matthew Strong, 2019 # gaussian mixture models with em algorithm import numpy as np from scipy import stats from clustering.Cluster import NBACluster # nba gmm class # gmm from scratch as well, more explained below class NBAGMM(NBACluster): def fit(self): self.method = '...
40.102804
120
0.554649
597
4,291
3.891122
0.286432
0.028412
0.034438
0.028412
0.093844
0.066294
0.033577
0.019802
0.019802
0
0
0.014255
0.346073
4,291
106
121
40.481132
0.813614
0.271265
0
0.057143
0
0
0.000969
0
0
0
0
0
0
1
0.057143
false
0
0.042857
0.014286
0.157143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e428f454d7dceb480c84f33f264e2ac819a010fd
1,484
py
Python
ML/eval.py
Data-Science-Community-SRM/Fashion-Generation
fa062e2b31b4fba8945820d911dfa41de45b1333
[ "MIT" ]
1
2021-04-27T09:13:09.000Z
2021-04-27T09:13:09.000Z
ML/eval.py
Aradhya-Tripathi/Fashion-Generation
fa062e2b31b4fba8945820d911dfa41de45b1333
[ "MIT" ]
null
null
null
ML/eval.py
Aradhya-Tripathi/Fashion-Generation
fa062e2b31b4fba8945820d911dfa41de45b1333
[ "MIT" ]
1
2021-03-12T13:15:08.000Z
2021-03-12T13:15:08.000Z
import torch from torch.utils.data import DataLoader import matplotlib.pyplot as plt import sys sys.path.append("./ML") import Definitions.models as models from Definitions.dataset import Data def main(imgpath="Data", noise_dim=100, vec_shape=100, root="./ModelWeights/"): netG = models.Generator...
26.981818
94
0.617925
213
1,484
4.178404
0.431925
0.035955
0.04382
0.060674
0.141573
0.141573
0.053933
0.053933
0.053933
0.053933
0
0.033943
0.225741
1,484
54
95
27.481481
0.740644
0.045822
0
0
0
0
0.038348
0
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e42935051444daddcd5cee33f9a2daa9cde6e823
4,965
py
Python
app/screens/authorize.py
jimkutter/rpi_lcars
f5ae0891f26d3494ad77f894c4f7733deaf063ee
[ "MIT" ]
null
null
null
app/screens/authorize.py
jimkutter/rpi_lcars
f5ae0891f26d3494ad77f894c4f7733deaf063ee
[ "MIT" ]
null
null
null
app/screens/authorize.py
jimkutter/rpi_lcars
f5ae0891f26d3494ad77f894c4f7733deaf063ee
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import pygame from pygame.mixer import Sound from screens.base_screen import BaseScreen from ui import colours from ui.widgets.background import LcarsBackgroundImage from ui.widgets.gifimage import LcarsGifImage from ui.widgets.lcars_widgets import LcarsButton from ui.widgets....
31.03125
118
0.557301
568
4,965
4.723592
0.323944
0.033545
0.041744
0.020872
0.166232
0.135296
0.07678
0
0
0
0
0.023974
0.327895
4,965
159
119
31.226415
0.780042
0.022357
0
0.066116
0
0
0.096841
0.052577
0
0
0
0
0
1
0.07438
false
0
0.082645
0
0.181818
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4324e2ffd9d0f0cc445c08f1b32895fbc79b0d2
2,178
py
Python
Problems/P0010 - Soma de primos.py
clasenback/EulerProject
775d9774fcdfbbcc579e3c4ec0bb2d4a941764ad
[ "CC0-1.0" ]
null
null
null
Problems/P0010 - Soma de primos.py
clasenback/EulerProject
775d9774fcdfbbcc579e3c4ec0bb2d4a941764ad
[ "CC0-1.0" ]
null
null
null
Problems/P0010 - Soma de primos.py
clasenback/EulerProject
775d9774fcdfbbcc579e3c4ec0bb2d4a941764ad
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 7 17:11:12 2021 @author: User SUMMATION OF PRIMES The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 21min19s to find. """ from datetime import datetime as date def nextPrime(n, primes): is...
26.888889
82
0.539027
290
2,178
4.041379
0.451724
0.029863
0.013652
0.006826
0.049488
0
0
0
0
0
0
0.045706
0.337006
2,178
80
83
27.225
0.765928
0.192837
0
0.16
0
0
0.179024
0.031947
0
0
0
0
0
1
0.02
false
0
0.02
0
0.06
0.18
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4348a8c3eadb9042a4b4b0ebb7cd499d99a7b46
1,124
py
Python
l5kit/l5kit/tests/rasterization/render_context_test.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
1
2021-12-04T17:48:53.000Z
2021-12-04T17:48:53.000Z
l5kit/l5kit/tests/rasterization/render_context_test.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
null
null
null
l5kit/l5kit/tests/rasterization/render_context_test.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
1
2021-11-19T08:13:46.000Z
2021-11-19T08:13:46.000Z
import numpy as np import pytest from l5kit.geometry import transform_points from l5kit.rasterization.render_context import RenderContext @pytest.mark.parametrize("set_origin_to_bottom", [False, True]) def test_transform_points_to_raster(set_origin_to_bottom: bool) -> None: image_shape_px = np.asarray((200, 200)...
35.125
77
0.715302
168
1,124
4.422619
0.375
0.060565
0.074024
0.114401
0.080754
0.080754
0
0
0
0
0
0.065032
0.16548
1,124
31
78
36.258065
0.727079
0
0
0
0
0
0.017794
0
0
0
0
0
0.041667
1
0.041667
false
0
0.166667
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e434cb20e1bb4b89d1f4687abbe31af32ff3e3b8
1,528
py
Python
plugin/fcitx.py
bigshans/fcitx.vim
228a51c6c95997439feddff6c38d62ce014e6d59
[ "MIT" ]
null
null
null
plugin/fcitx.py
bigshans/fcitx.vim
228a51c6c95997439feddff6c38d62ce014e6d59
[ "MIT" ]
null
null
null
plugin/fcitx.py
bigshans/fcitx.vim
228a51c6c95997439feddff6c38d62ce014e6d59
[ "MIT" ]
null
null
null
import vim import functools import dbus class FcitxComm(): def __init__(self): bus = dbus.SessionBus() obj = bus.get_object('org.fcitx.Fcitx5', '/controller') self.fcitx = dbus.Interface(obj, dbus_interface='org.fcitx.Fcitx.Controller1') def status(self): return self.fcitx.State() == 2 def act...
25.466667
106
0.656414
205
1,528
4.765854
0.35122
0.061412
0.036847
0.058342
0.249744
0.200614
0.14739
0.067554
0.067554
0
0
0.011429
0.198298
1,528
59
107
25.898305
0.786122
0
0
0.24
0
0
0.254581
0.085733
0
0
0
0
0
1
0.16
false
0
0.06
0.02
0.34
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e435bc6759728f66c9ba58ab0f9f30b4d9e6d31b
828
py
Python
avioclient/controller.py
HermenegildoK/AvioClient
9cad3a89bbf10d7212561cf15b3ad453060c9434
[ "MIT" ]
null
null
null
avioclient/controller.py
HermenegildoK/AvioClient
9cad3a89bbf10d7212561cf15b3ad453060c9434
[ "MIT" ]
null
null
null
avioclient/controller.py
HermenegildoK/AvioClient
9cad3a89bbf10d7212561cf15b3ad453060c9434
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from avioclient.send_data import SendControls from avioclient import config def send_data(): data_sender = SendControls(config.SERVER_URL) connections_done = 0 while True: connections_done += 1 print( data_sender.get_data( config.GET_ENDP...
23.657143
50
0.48913
71
828
5.338028
0.507042
0.197889
0.079156
0.137203
0.216359
0.216359
0
0
0
0
0
0.019231
0.434783
828
34
51
24.352941
0.790598
0.025362
0
0.137931
0
0
0.032298
0
0
0
0
0
0
1
0.034483
false
0
0.068966
0
0.103448
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e43c4d5552c855523479c4f6f4237cbc56d53955
906
py
Python
tests/test_fitsutils.py
lsst-dm/despyfitsutils
7fb96869077712eb20a1cb0f5c132e1cc85424ec
[ "NCSA" ]
null
null
null
tests/test_fitsutils.py
lsst-dm/despyfitsutils
7fb96869077712eb20a1cb0f5c132e1cc85424ec
[ "NCSA" ]
null
null
null
tests/test_fitsutils.py
lsst-dm/despyfitsutils
7fb96869077712eb20a1cb0f5c132e1cc85424ec
[ "NCSA" ]
null
null
null
import os import unittest import despyfitsutils.fitsutils as utils TESTDIR = os.path.dirname(__file__) class MefTest(unittest.TestCase): """Tests for a MEF object. """ def setUp(self): inputs = [os.path.join(TESTDIR, 'data/input.fits.fz')] output = os.path.join(TESTDIR, 'data/output.fit...
25.885714
72
0.611479
111
906
4.918919
0.54955
0.076923
0.03663
0.062271
0.076923
0
0
0
0
0
0
0.00152
0.273731
906
34
73
26.647059
0.828267
0.153422
0
0
0
0
0.048684
0
0
0
0
0
0.095238
1
0.190476
false
0.047619
0.142857
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e43dacaa5bafcd52f175484e3b1f257816fb14b1
4,047
py
Python
applications/MensajeriaMasiva/models/db.py
chitohugo/MassiveSMS
05b528de146498531c967aff1ee4fe72720febb3
[ "BSD-3-Clause" ]
null
null
null
applications/MensajeriaMasiva/models/db.py
chitohugo/MassiveSMS
05b528de146498531c967aff1ee4fe72720febb3
[ "BSD-3-Clause" ]
null
null
null
applications/MensajeriaMasiva/models/db.py
chitohugo/MassiveSMS
05b528de146498531c967aff1ee4fe72720febb3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from time import gmtime, strftime from gluon.custom_import import track_changes track_changes(True) from gluon import current from pydal import * import sys reload(sys) sys.setdefaultencoding('utf-8') if request.global_settings.web2py_version < "2.14.1": raise HTTP...
45.988636
165
0.560909
420
4,047
5.280952
0.354762
0.059513
0.059964
0.072588
0.306132
0.288097
0.260144
0.260144
0.260144
0.223625
0
0.010264
0.205584
4,047
87
166
46.517241
0.679627
0.190511
0
0.155172
0
0
0.180564
0.013489
0
0
0
0
0
1
0
false
0.017241
0.12069
0
0.12069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e443a35a02a890811a35899fe38cc7d3bb4c7d5c
2,155
py
Python
api/resources/resources.py
arkhn/fhirball-server
b4d1a1c29dfff5ba60bfbb6b291f6bdb6e6ccd6e
[ "Apache-2.0" ]
5
2018-12-21T13:20:12.000Z
2019-11-20T23:58:06.000Z
api/resources/resources.py
arkhn/fhir-ball-server
b4d1a1c29dfff5ba60bfbb6b291f6bdb6e6ccd6e
[ "Apache-2.0" ]
null
null
null
api/resources/resources.py
arkhn/fhir-ball-server
b4d1a1c29dfff5ba60bfbb6b291f6bdb6e6ccd6e
[ "Apache-2.0" ]
null
null
null
from flask_restful import Resource import requests from api.common.utils import file_response ENCODING = 'utf-8' SCHEMA_URL = 'http://127.0.0.1:8422' STORE_URL = 'http://127.0.0.1:8423' class FhirDatatypes(Resource): @staticmethod def get(): """Returns CSV list of available database schemas.""" ...
24.770115
87
0.624594
228
2,155
5.802632
0.236842
0.063492
0.104308
0.117914
0.773243
0.697657
0.620559
0.620559
0.620559
0.578987
0
0.013109
0.256613
2,155
86
88
25.05814
0.812734
0.152204
0
0.54717
0
0
0.087973
0.025056
0
0
0
0
0
1
0.113208
false
0
0.056604
0
0.396226
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4466c3b9ecc29dbb105b55c4d10907897f3d25c
742
py
Python
ArtificialData/RhoAndBeta.py
AlfLobos/DSP
1e1073c6b0da562b0aea3dec9d62bc563a3b46f5
[ "CNRI-Python" ]
null
null
null
ArtificialData/RhoAndBeta.py
AlfLobos/DSP
1e1073c6b0da562b0aea3dec9d62bc563a3b46f5
[ "CNRI-Python" ]
null
null
null
ArtificialData/RhoAndBeta.py
AlfLobos/DSP
1e1073c6b0da562b0aea3dec9d62bc563a3b46f5
[ "CNRI-Python" ]
null
null
null
import numpy as np def CalcRhoAndBetaVectors(bid_vec, UB_bid, num_edges, index_Imps, adverPerImp, firstPrice): ## I will assume I want to evaluate the full vector. rhoBetaMat=np.zeros((num_edges,2)) for edge_num,impType in enumerate(index_Imps): rhoBetaMat[edge_num,:]=RhoBetaValue(bid_vec[edge_num]...
35.333333
91
0.677898
106
742
4.59434
0.433962
0.043121
0.024641
0
0
0
0
0
0
0
0
0.011725
0.195418
742
21
92
35.333333
0.80402
0.110512
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.0625
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
e44985df33485739c9a738d44c1ed72af3c01cd0
3,208
py
Python
src/utils/greedy.py
vmgabriel/tabu-base
615c45e4d6b6fdb1c85c8fbaa316a1e6ce829fcd
[ "Apache-2.0" ]
null
null
null
src/utils/greedy.py
vmgabriel/tabu-base
615c45e4d6b6fdb1c85c8fbaa316a1e6ce829fcd
[ "Apache-2.0" ]
null
null
null
src/utils/greedy.py
vmgabriel/tabu-base
615c45e4d6b6fdb1c85c8fbaa316a1e6ce829fcd
[ "Apache-2.0" ]
null
null
null
""" Greedy Module Solution for Utils control """ # Libraries from typing import List from functools import reduce # Modules from src.utils.math import ( list_negative, invert_positions, evaluate_fo ) # Constants COMPARE_VALUE = 99999999 def worst_solution(distance_matrix: List[List[float]]) -> List[in...
25.870968
73
0.5798
378
3,208
4.714286
0.246032
0.06734
0.043771
0.049383
0.208193
0.138608
0.129068
0.102132
0.054994
0
0
0.017193
0.329177
3,208
123
74
26.081301
0.810874
0.163653
0
0.120482
0
0
0
0
0
0
0
0
0
1
0.060241
false
0
0.036145
0
0.156627
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e45010e55211f1d8b353af0fb64ccf62757ae1c3
5,649
py
Python
codes/models/modules/Inv_arch.py
lin-zhao-resoLve/Symmetric-Enhancement
11c1a662020582d1333d11cf5f9c99556ec0f427
[ "Apache-2.0" ]
14
2021-09-30T07:05:04.000Z
2022-03-31T08:22:39.000Z
codes/models/modules/Inv_arch.py
lin-zhao-resoLve/Symmetric-Enhancement
11c1a662020582d1333d11cf5f9c99556ec0f427
[ "Apache-2.0" ]
3
2021-11-09T06:52:13.000Z
2021-11-20T08:00:46.000Z
codes/models/modules/Inv_arch.py
lin-zhao-resoLve/Symmetric-Enhancement
11c1a662020582d1333d11cf5f9c99556ec0f427
[ "Apache-2.0" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from models.modules.model.vgg16 import Vgg16 import os vgg = Vgg16() vgg.load_state_dict(torch.load(os.path.join(os.path.abspath('.'), 'models/modules/model/', 'vgg16.weight'))) params = list(vgg.named_parameters()) encodi...
36.211538
108
0.615861
761
5,649
4.388962
0.156373
0.057485
0.057485
0.040419
0.588922
0.530539
0.512575
0.482036
0.417964
0.387425
0
0.034858
0.26872
5,649
155
109
36.445161
0.773663
0.127456
0
0.508929
0
0
0.006923
0.004276
0
0
0
0
0
1
0.098214
false
0
0.0625
0.017857
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
e4520356b6e60cb7ea00f5353a2466e715bcd995
1,642
py
Python
py_algo/dynamic_programming/introduction/equal_array.py
Sk0uF/Algorithms
236cc5b056ce2637d5d947c5fc1e3367cde886bf
[ "MIT" ]
1
2021-07-05T15:39:04.000Z
2021-07-05T15:39:04.000Z
py_algo/dynamic_programming/introduction/equal_array.py
Sk0uF/Algorithms
236cc5b056ce2637d5d947c5fc1e3367cde886bf
[ "MIT" ]
null
null
null
py_algo/dynamic_programming/introduction/equal_array.py
Sk0uF/Algorithms
236cc5b056ce2637d5d947c5fc1e3367cde886bf
[ "MIT" ]
1
2021-09-02T21:31:34.000Z
2021-09-02T21:31:34.000Z
""" Codemonk link: https://www.hackerearth.com/practice/algorithms/dynamic-programming/introduction-to-dynamic-programming-1/practice-problems/algorithm/equal-array-84cf6c5f/ You are given an array A of size N. Find the minimum non negative number X such that there exists an index j that when you can replace Aj by Aj+...
30.407407
170
0.658343
273
1,642
3.915751
0.428571
0.12348
0.067353
0.02058
0.071094
0.071094
0.071094
0.071094
0.071094
0.071094
0
0.022508
0.242387
1,642
53
171
30.981132
0.836817
0.483557
0
0
0
0
0.008942
0
0
0
0
0
0
1
0
false
0
0
0
0
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4526af2d705bb3c47b1ba3a6b79144d1876aeeb
1,331
py
Python
model.py
mollikka/Penrose
6d9870f54e9810f7e2f4ea82bb619424785a65db
[ "MIT" ]
1
2019-07-17T02:46:45.000Z
2019-07-17T02:46:45.000Z
model.py
mollikka/Penrose
6d9870f54e9810f7e2f4ea82bb619424785a65db
[ "MIT" ]
null
null
null
model.py
mollikka/Penrose
6d9870f54e9810f7e2f4ea82bb619424785a65db
[ "MIT" ]
null
null
null
from itertools import chain phi = 1.61803398875 class PenroseModel: def __init__(self, start_state): self.tiles = start_state self.history = [] def split(self): self.history.append(list(self.tiles)) self.tiles = list(chain(*[tile.split() for tile in self.tiles])) def desp...
22.183333
72
0.480841
205
1,331
3.04878
0.219512
0.08
0.0384
0.0448
0.2272
0.2272
0.2272
0.2272
0.2272
0.2272
0
0.023364
0.356875
1,331
59
73
22.559322
0.706776
0
0
0.413043
0
0
0
0
0
0
0
0
0
1
0.173913
false
0
0.021739
0.021739
0.326087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e45397111350f9273e2cc86843e6973c134d6e85
1,465
py
Python
src/tests/unittests/configuration_helper/adapters/test_keysight_e8267d_instrument_adapter.py
QuTech-Delft/qilib
a87892f8a9977ed338c36e8fb1e262b47449cf44
[ "MIT" ]
1
2019-02-20T16:56:30.000Z
2019-02-20T16:56:30.000Z
src/tests/unittests/configuration_helper/adapters/test_keysight_e8267d_instrument_adapter.py
QuTech-Delft/qilib
a87892f8a9977ed338c36e8fb1e262b47449cf44
[ "MIT" ]
22
2019-02-16T06:10:55.000Z
2022-02-15T18:52:34.000Z
src/tests/unittests/configuration_helper/adapters/test_keysight_e8267d_instrument_adapter.py
QuTech-Delft/qilib
a87892f8a9977ed338c36e8fb1e262b47449cf44
[ "MIT" ]
2
2020-02-04T08:46:21.000Z
2020-10-18T16:31:58.000Z
import unittest from unittest.mock import call, patch, Mock, MagicMock from qilib.configuration_helper import InstrumentAdapterFactory class TestKeysightE8267DInstrumentAdapter(unittest.TestCase): def test_read_filter_out_val_mapping(self): with patch('qilib.configuration_helper.adapters.keysight_e8267d...
47.258065
112
0.661433
143
1,465
6.461538
0.384615
0.11039
0.099567
0.064935
0
0
0
0
0
0
0
0.026432
0.225256
1,465
30
113
48.833333
0.787665
0
0
0
0
0
0.264344
0.079918
0
0
0
0
0.2
1
0.04
false
0
0.12
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
e455b64eee36fc129ded8331905ce5976719baa2
1,364
py
Python
scripts/mint.py
tomazmm/artsyapes-contract
95b10e1c73aa4e0712ff8d5162271e84aec91810
[ "Apache-2.0" ]
null
null
null
scripts/mint.py
tomazmm/artsyapes-contract
95b10e1c73aa4e0712ff8d5162271e84aec91810
[ "Apache-2.0" ]
null
null
null
scripts/mint.py
tomazmm/artsyapes-contract
95b10e1c73aa4e0712ff8d5162271e84aec91810
[ "Apache-2.0" ]
null
null
null
import json import pprint import random from terra_sdk.core import AccAddress, Coins from terra_sdk.core.auth import StdFee from terra_sdk.core.broadcast import BlockTxBroadcastResult from scripts.deploy import owner, lt from terra_sdk.core.wasm import MsgExecuteContract def mint(contract_address: str): mint_ms...
28.416667
98
0.662023
173
1,364
4.99422
0.445087
0.074074
0.055556
0.074074
0
0
0
0
0
0
0
0.021657
0.221408
1,364
47
99
29.021277
0.791902
0.022727
0
0
0
0
0.18858
0.027799
0
0
0
0
0
1
0.083333
false
0
0.222222
0
0.305556
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4589a7ec39dfb446ef1fe4c8fd01bbb42b8704d
1,507
py
Python
enbios/processing/indicators/__init__.py
ENVIRO-Module/enbios
10e93df9a168627833eca6d04e4e2b864de8e8d9
[ "BSD-3-Clause" ]
2
2022-01-28T09:38:28.000Z
2022-01-28T09:38:32.000Z
enbios/processing/indicators/__init__.py
ENVIRO-Module/enbios
10e93df9a168627833eca6d04e4e2b864de8e8d9
[ "BSD-3-Clause" ]
1
2022-01-27T21:42:42.000Z
2022-01-27T21:42:42.000Z
enbios/processing/indicators/__init__.py
ENVIRO-Module/enbios
10e93df9a168627833eca6d04e4e2b864de8e8d9
[ "BSD-3-Clause" ]
null
null
null
import math from nexinfosys.model_services import State materials = { "Aluminium", "Antimony", "Arsenic", "Baryte", "Beryllium", "Borates", "Cadmium", "Cerium", "Chromium", "Cobalt", "Copper", "Diatomite", "Dysprosium", "Europium", "Fluorspar", "Gadolini...
17.125
43
0.50564
153
1,507
4.915033
0.588235
0.053191
0.035904
0.018617
0.106383
0.106383
0.106383
0.106383
0.106383
0.106383
0
0.007042
0.340411
1,507
87
44
17.321839
0.749497
0
0
0.074074
0
0
0.295289
0
0
0
0
0
0
1
0.024691
false
0
0.024691
0
0.08642
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e45a7bbe70e7b8614eb0c9109018644cf05fb490
24,654
py
Python
src/1-topicmodeling.py
sofieditmer/topic_modeling
edfff3c4d45c932562f796cc81e9ce9fe35f8e4b
[ "MIT" ]
null
null
null
src/1-topicmodeling.py
sofieditmer/topic_modeling
edfff3c4d45c932562f796cc81e9ce9fe35f8e4b
[ "MIT" ]
null
null
null
src/1-topicmodeling.py
sofieditmer/topic_modeling
edfff3c4d45c932562f796cc81e9ce9fe35f8e4b
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Info: This script performs topic modeling on the clean tweets by Donald Trump. The number of topics is estimated by computing coherence values for different number of topics, and an LDA model is constructed with the number of topics with the highest coherence value. Visualizations of the topic...
46.693182
402
0.626511
3,010
24,654
4.998339
0.19701
0.014357
0.020472
0.012762
0.235161
0.179129
0.140844
0.119375
0.099036
0.075773
0
0.008627
0.299465
24,654
528
403
46.693182
0.862486
0.360672
0
0.098291
0
0.025641
0.17481
0.004616
0
0
0
0
0
1
0.055556
false
0.025641
0.068376
0
0.15812
0.068376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e45a8dc57b1450e18797d47ff570959f3d7e2d31
15,086
py
Python
EEG_Lightning/dassl/data/datasets/ProcessDataBase_v1.py
mcd4874/NeurIPS_competition
4df1f222929e9824a55c9c4ae6634743391b0fe9
[ "MIT" ]
23
2021-10-14T02:31:06.000Z
2022-01-25T16:26:44.000Z
EEG_Lightning/dassl/data/datasets/ProcessDataBase_v1.py
mcd4874/NeurIPS_competition
4df1f222929e9824a55c9c4ae6634743391b0fe9
[ "MIT" ]
null
null
null
EEG_Lightning/dassl/data/datasets/ProcessDataBase_v1.py
mcd4874/NeurIPS_competition
4df1f222929e9824a55c9c4ae6634743391b0fe9
[ "MIT" ]
1
2022-03-05T06:54:11.000Z
2022-03-05T06:54:11.000Z
""" William DUong """ import os.path as osp import os import errno from .build import DATASET_REGISTRY from .base_dataset import Datum, DatasetBase,EEGDatum from scipy.io import loadmat import numpy as np from collections import defaultdict class ProcessDataBase(DatasetBase): dataset_dir = None file_name =...
45.032836
166
0.65173
1,963
15,086
4.67244
0.098828
0.028783
0.022242
0.027802
0.411252
0.322067
0.276276
0.26232
0.248583
0.234518
0
0.004439
0.253414
15,086
334
167
45.167665
0.809909
0.353507
0
0.108974
0
0
0.038194
0
0
0
0
0
0
1
0.089744
false
0
0.051282
0.012821
0.24359
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e45ad99677d6577af2671852ef4f62636067fd15
9,321
py
Python
pywolf3d/level_editor/app.py
jammers-ach/pywolf3d
3e305d7bdb9aa4f38ae5cf460ed22c54efe8980c
[ "MIT" ]
null
null
null
pywolf3d/level_editor/app.py
jammers-ach/pywolf3d
3e305d7bdb9aa4f38ae5cf460ed22c54efe8980c
[ "MIT" ]
null
null
null
pywolf3d/level_editor/app.py
jammers-ach/pywolf3d
3e305d7bdb9aa4f38ae5cf460ed22c54efe8980c
[ "MIT" ]
null
null
null
import argparse import json from ursina import load_texture, Ursina, Entity, color, camera, Quad, mouse, time, window, invoke, WindowPanel, \ Text, InputField, Space, scene, Button, Draggable, Tooltip, Scrollable from pywolf3d.games.wolf3d import WALL_DEFS, WallDef, OBJECT_DEFS Z_GRID = 0 Z_OBJECT = 2 Z_WALL = 3...
29.590476
122
0.55037
1,190
9,321
4.137815
0.158824
0.026401
0.020309
0.028432
0.342201
0.248375
0.195167
0.164703
0.164703
0.15658
0
0.010718
0.329364
9,321
314
123
29.684713
0.776996
0.00397
0
0.177686
0
0
0.055615
0
0
0
0
0
0
1
0.095041
false
0
0.016529
0
0.14876
0.020661
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e45ba78572ce87d65bc9fa965f1a8af3685baf94
3,404
py
Python
code/data_mgmt.py
TomDonoghue/EEGparam
a3e747094617479122900688643fa396ecbf8bab
[ "MIT" ]
8
2021-08-17T05:22:40.000Z
2022-03-23T02:03:48.000Z
code/data_mgmt.py
TomDonoghue/EEGparam
a3e747094617479122900688643fa396ecbf8bab
[ "MIT" ]
1
2020-12-09T13:22:03.000Z
2021-01-27T01:56:09.000Z
code/data_mgmt.py
TomDonoghue/EEGparam
a3e747094617479122900688643fa396ecbf8bab
[ "MIT" ]
4
2021-06-20T14:44:38.000Z
2021-12-11T11:21:26.000Z
"""Functions for loading and data management for EEG-FOOOF.""" from os.path import join as pjoin import numpy as np from fooof import FOOOFGroup from fooof.analysis import get_band_peak_fg from settings import BANDS, YNG_INDS, OLD_INDS, N_LOADS, N_SUBJS, N_TIMES ####################################################...
35.831579
99
0.623384
472
3,404
4.28178
0.216102
0.047501
0.047501
0.035626
0.549233
0.502227
0.445324
0.369619
0.369619
0.3429
0
0.006917
0.193008
3,404
94
100
36.212766
0.728795
0.205934
0
0.219512
0
0
0.071166
0
0
0
0
0
0
1
0.121951
false
0
0.121951
0
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e45c0f05cdc7fe7a2e45a2f57230877bc9ba6968
413
py
Python
match_shapes.py
KyojiOsada/Python-Library
b06e50454c56c84c2abb96e6f68d35117ea5f4b5
[ "Apache-2.0" ]
null
null
null
match_shapes.py
KyojiOsada/Python-Library
b06e50454c56c84c2abb96e6f68d35117ea5f4b5
[ "Apache-2.0" ]
null
null
null
match_shapes.py
KyojiOsada/Python-Library
b06e50454c56c84c2abb96e6f68d35117ea5f4b5
[ "Apache-2.0" ]
null
null
null
import sys import cv2 import numpy as np img1 = cv2.imread('source1.jpg',0) img2 = cv2.imread('source2.jpg',0) ret, thresh = cv2.threshold(img1, 127, 255,0) ret, thresh2 = cv2.threshold(img2, 127, 255,0) contours,hierarchy,a = cv2.findContours(thresh,2,1) cnt1 = contours[0] contours,hierarchy,a = cv2.findContours(th...
20.65
52
0.72155
70
413
4.257143
0.428571
0.040268
0.04698
0.127517
0.228188
0.228188
0
0
0
0
0
0.123288
0.116223
413
19
53
21.736842
0.693151
0
0
0
0
0
0.053269
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
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
e45c3482ede83aa24d104869dacc8d42f601273f
25,556
py
Python
SlicerModules/SegmentConnectedParzenPDF/SegmentConnectedParzenPDF.py
jcfr/TubeTK
3791790e206b5627a35c46f86eeb9671c8d4190f
[ "Apache-2.0" ]
1
2019-07-19T09:27:37.000Z
2019-07-19T09:27:37.000Z
SlicerModules/SegmentConnectedParzenPDF/SegmentConnectedParzenPDF.py
jcfr/TubeTK
3791790e206b5627a35c46f86eeb9671c8d4190f
[ "Apache-2.0" ]
null
null
null
SlicerModules/SegmentConnectedParzenPDF/SegmentConnectedParzenPDF.py
jcfr/TubeTK
3791790e206b5627a35c46f86eeb9671c8d4190f
[ "Apache-2.0" ]
1
2019-07-19T09:28:56.000Z
2019-07-19T09:28:56.000Z
import os from __main__ import vtk, qt, ctk, slicer import EditorLib from EditorLib.EditOptions import HelpButton from EditorLib.EditOptions import EditOptions from EditorLib import EditUtil from EditorLib import LabelEffect class InteractiveConnectedComponentsUsingParzenPDFsOptions(EditorLib.LabelEffectOptions): "...
44.138169
292
0.755204
2,326
25,556
8.27687
0.236028
0.017453
0.01418
0.015583
0.073343
0.057345
0.03797
0.033036
0.012466
0.003013
0
0.005943
0.157223
25,556
578
293
44.214533
0.887919
0.136211
0
0.083117
0
0.002597
0.169865
0.04121
0
0
0.000548
0.00173
0
1
0.075325
false
0.012987
0.018182
0.007792
0.132468
0.002597
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4634c0a0adb3cc0d16bbbb61f40f718de94ef2b
3,141
py
Python
wind_direction.py
simseve/weatherstation
68196a032a2cd39062f3924ce6d386f5f54af393
[ "MIT" ]
null
null
null
wind_direction.py
simseve/weatherstation
68196a032a2cd39062f3924ce6d386f5f54af393
[ "MIT" ]
null
null
null
wind_direction.py
simseve/weatherstation
68196a032a2cd39062f3924ce6d386f5f54af393
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # wind_direction.py # # Copyright 2020 <Simone Severini> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Licen...
27.313043
71
0.561605
403
3,141
4.349876
0.478908
0.112949
0.022248
0.032516
0.046777
0.031945
0
0
0
0
0
0.114217
0.339382
3,141
114
72
27.552632
0.730602
0.286533
0
0
0
0
0.022142
0
0
0
0
0
0
1
0.03125
false
0
0.078125
0
0.140625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4639c8948f8a93b0256a4c34b5d407b8adc42bc
3,875
py
Python
oswin_tempest_plugin/tests/_mixins/migrate.py
openstack/oswin-tempest-plugin
59e6a14d01dda304c7d11fda1d35198f25799d6c
[ "Apache-2.0" ]
6
2017-10-31T10:40:24.000Z
2019-01-28T22:08:15.000Z
oswin_tempest_plugin/tests/_mixins/migrate.py
openstack/oswin-tempest-plugin
59e6a14d01dda304c7d11fda1d35198f25799d6c
[ "Apache-2.0" ]
null
null
null
oswin_tempest_plugin/tests/_mixins/migrate.py
openstack/oswin-tempest-plugin
59e6a14d01dda304c7d11fda1d35198f25799d6c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Cloudbase Solutions SRL # 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 r...
35.87963
79
0.659613
462
3,875
5.298701
0.37013
0.044935
0.02451
0.026961
0.288399
0.245098
0.245098
0.183824
0.09232
0.049837
0
0.00455
0.26271
3,875
107
80
36.214953
0.852293
0.303484
0
0.150943
0
0
0.085431
0
0
0
0
0.009346
0.037736
1
0.075472
false
0
0.056604
0
0.188679
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e468b2b5e8f04b80c414c4137b991f429ffae653
2,508
py
Python
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
2,047
2022-01-10T15:22:12.000Z
2022-03-31T13:38:56.000Z
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
170
2022-01-10T12:44:31.000Z
2022-03-31T17:01:24.000Z
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
112
2022-01-10T19:15:24.000Z
2022-03-30T11:20:52.000Z
"""A logging handler class which produces coloured logs.""" import logging import click class ColorHandler(logging.StreamHandler): """A color log handler. You can use this handler by incorporating the example below into your logging configuration: ``conf/project/logging.yml``: :: for...
26.125
74
0.548644
261
2,508
5.226054
0.360153
0.043988
0.057185
0.032991
0.094575
0.059384
0
0
0
0
0
0
0.342903
2,508
95
75
26.4
0.82767
0.447767
0
0
0
0
0.093777
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e46b6c69ae3a4c3f1fee528d4d729291bff4cf8d
1,468
py
Python
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtCore import numpy as np from matplotlib.figure import Figure import time import matplotlib matplotlib.use("Qt5Agg") # 声明使用QT5 from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas class QtFigure(FigureCanvas): def __init__(self, width=5, he...
32.622222
83
0.636921
201
1,468
4.537313
0.462687
0.052632
0.078947
0.035088
0.149123
0.111842
0
0
0
0
0
0.038529
0.222071
1,468
44
84
33.363636
0.76007
0.11921
0
0.064516
0
0
0.015576
0
0
0
0
0
0
1
0.129032
false
0
0.193548
0.032258
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4705f3acb58336e0e7ad1a046d3910433815d04
1,488
py
Python
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
""" Data terrain model (DTM). Examples:: >>> from worldmap import DTM >>> dtm = DTM() >>> print(dtm["NOR"]) Location('Norway') """ from typing import Dict, List, Tuple, Set, Optional from bokeh.models import Model from bokeh.models import ColumnDataSource, Patches, LabelSet import logging import num...
25.220339
74
0.638441
169
1,488
5.455621
0.39645
0.070499
0.073753
0.045553
0.101952
0.101952
0.101952
0.101952
0.101952
0
0
0
0.266801
1,488
58
75
25.655172
0.845096
0.174059
0
0.066667
0
0
0.042869
0
0
0
0
0
0
1
0.1
false
0
0.266667
0.033333
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
e472ad25bd9133e0e1fe623219e0826f24f2f7ef
365
py
Python
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
8
2018-03-21T12:26:44.000Z
2019-10-05T08:46:20.000Z
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
null
null
null
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def mandelbrot(threshold, density): atlas = np.empty((density, density)) with open('set', 'r') as f: for line in f.readlines(): i, j, val = line.split(",") atlas[int(i), int(j)] = val plt.imshow(atlas.T, interpolation="ne...
22.8125
48
0.60274
51
365
4.313725
0.666667
0.036364
0
0
0
0
0
0
0
0
0
0.025455
0.246575
365
16
49
22.8125
0.774545
0
0
0
0
0
0.032787
0
0
0
0
0
0
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
e47311462a03c6a7eb9b40addcc16befdf99f631
2,133
py
Python
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v2.model_utils import ( ModelNormal, cached_property, ...
30.042254
108
0.61369
225
2,133
5.635556
0.453333
0.033123
0.047319
0.031546
0.102524
0.102524
0.061514
0.061514
0
0
0
0.004516
0.273324
2,133
70
109
30.471429
0.813548
0.426629
0
0.055556
0
0
0.176944
0
0
0
0
0
0
1
0.083333
false
0
0.027778
0.027778
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4813380bf2daa72d111c3321e1a0890661d1b92
5,475
py
Python
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
""" Network class is in charge of: 1. Storing M - User Cache Size, N - Number of Files, K - Number of Users 2. Storing User instances, Server instance, and attacker instance """ import numpy as np from scipy import special import itertools from Server import Server from User import User from tabulate import tabulate ...
36.993243
140
0.592146
687
5,475
4.672489
0.213974
0.023364
0.027414
0.004984
0.14486
0.134579
0.120249
0.047352
0.034891
0.034891
0
0.01125
0.285662
5,475
147
141
37.244898
0.809512
0.156164
0
0.090909
0
0
0.03437
0.010442
0
0
0
0
0
1
0.070707
false
0
0.060606
0
0.181818
0.171717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e48ba9fc67c09776260edc71cd67600e98eb63a9
1,885
py
Python
2017/day07/code.py
Fadi88/AoC
8b24f2f2cc7b4e1c63758e81e63d8670a261cc7c
[ "Unlicense" ]
12
2019-12-15T21:53:19.000Z
2021-12-24T17:03:41.000Z
2017/day07/code.py
Fadi88/adventofcode19
dd2456bdd163beb02dbfe9dcea2b021061c7671e
[ "Unlicense" ]
1
2021-12-15T20:40:51.000Z
2021-12-15T22:19:48.000Z
2017/day07/code.py
Fadi88/adventofcode19
dd2456bdd163beb02dbfe9dcea2b021061c7671e
[ "Unlicense" ]
5
2020-12-11T06:00:24.000Z
2021-12-20T21:37:46.000Z
import time from collections import defaultdict def profiler(method): def wrapper_method(*arg, **kw): t = time.time() method(*arg, **kw) print('Method ' + method.__name__ + ' took : ' + "{:2.5f}".format(time.time()-t) + ' sec') return wrapper_method @profiler def part1(...
22.176471
83
0.490716
241
1,885
3.767635
0.26556
0.052863
0.035242
0.061674
0.295154
0.295154
0.295154
0.295154
0.295154
0.295154
0
0.01642
0.353846
1,885
84
84
22.440476
0.729064
0
0
0.5
0
0
0.033952
0
0
0
0
0
0
1
0.075758
false
0
0.030303
0
0.151515
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e48e53ba04ff99bdd6227e182235f811ae1dc4ee
403
py
Python
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
from microbit import * import struct from time import sleep SENSORS = 2 def spi_read(sensor): pin16.write_digital(0) # Chip select ibuffer = struct.pack('<B', sensor) spi.write(ibuffer) result = spi.read(1) pin16.write_digital(1) # Chip select off return result spi.init(baudrate=100000) whi...
21.210526
45
0.652605
62
403
4.177419
0.564516
0.081081
0.131274
0
0
0
0
0
0
0
0
0.058065
0.230769
403
19
46
21.210526
0.777419
0.066998
0
0
0
0
0.005348
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e48f98c85bda6baa0cc86d71b689b55e8122a390
16,653
py
Python
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
null
null
null
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
1
2021-04-19T10:20:43.000Z
2021-04-19T10:20:43.000Z
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import datetime import typing as t import json from dataclasses import dataclass, field from mypy_boto3_dynamodb.service_resource import Table from boto3.dynamodb.conditions import Attr, Key """ Data transfer object classes to be used with dynamod...
32.273256
110
0.623311
1,984
16,653
5.020665
0.147177
0.030117
0.015661
0.008031
0.52314
0.477562
0.399157
0.384098
0.327377
0.300371
0
0.000912
0.275986
16,653
515
111
32.335922
0.825247
0.1461
0
0.527624
0
0
0.085471
0.018143
0
0
0
0.003884
0
1
0.107735
false
0
0.016575
0.049724
0.328729
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e494747ad6589e1234241f26ac62dacfe6cecd8c
998
py
Python
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
1
2020-01-27T12:03:47.000Z
2020-01-27T12:03:47.000Z
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
null
null
null
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
null
null
null
import numpy as np import pytest from ddtruss import Truss, DataDrivenSolver points = np.array([[0, 0], [1, 0], [0.5, 0.5], [2, 1]]) lines = np.array([[0, 2], [1, 2], [1, 3], [2, 3]], dtype=int) truss = Truss(points, lines) E = 1.962e11 A = [2e-4, 2e-4, 1e-4, 1e-4] U_dict = {0: [0, 0], 1: [0, 0]} F_dict = {3: [0, -...
24.95
77
0.621242
185
998
3.194595
0.318919
0.027073
0.060914
0.030457
0.155668
0.138748
0.138748
0.138748
0.138748
0.138748
0
0.129743
0.181363
998
39
78
25.589744
0.593635
0
0
0
0
0
0.006012
0
0
0
0
0
0.071429
1
0.071429
false
0
0.107143
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e49516ca8ad700f85017d9325736d77d5ccd8a3d
2,326
py
Python
PTO-yelp/Modules/attention_classifier.py
LegendTianjin/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
50
2019-06-06T05:30:32.000Z
2021-11-18T07:24:36.000Z
PTO-yelp/Modules/attention_classifier.py
lancopku/Point-Then-Operate
1c04ec326b52fc65f97f5610a6f16f6e938d583e
[ "Apache-2.0" ]
2
2019-08-30T09:49:26.000Z
2020-01-17T04:20:53.000Z
PTO-yelp/Modules/attention_classifier.py
ChenWu98/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
7
2019-06-17T06:20:47.000Z
2020-10-26T03:19:44.000Z
import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from utils.utils import gpu_wrapper from Modules.subModules.attention import AttentionUnit from torch.nn.utils.rnn import pack_padded_sequence as pack from torch.nn.utils.rnn import pad_pa...
41.535714
136
0.564488
328
2,326
3.759146
0.256098
0.045418
0.045418
0.040552
0.148418
0.136253
0.060016
0.029197
0.029197
0.029197
0
0.014715
0.328031
2,326
55
137
42.290909
0.774152
0.141445
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.238095
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4954d56f09841ccf54e7784967df8b418345b0e
569
py
Python
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
49
2016-03-07T06:42:40.000Z
2021-03-06T02:43:02.000Z
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
16
2016-03-08T07:20:52.000Z
2017-04-21T18:15:12.000Z
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
9
2016-03-29T22:08:52.000Z
2021-06-16T16:29:30.000Z
""" `minion-ci` is a minimalist, decentralized, flexible Continuous Integration Server for hackers. This module contains the parser to parse the `minion.yml` file. :copyright: (c) by Timo Furrer :license: MIT, see LICENSE for details """ import yaml from .errors import MinionError def parse(path):...
24.73913
99
0.681898
75
569
5.146667
0.693333
0.069948
0.067358
0
0
0
0
0
0
0
0
0
0.233743
569
22
100
25.863636
0.885321
0.462214
0
0
0
0
0.162455
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e49b044e4f3bdfef09e6426d0ff3c5f755aa63ae
1,464
py
Python
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
null
null
null
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
null
null
null
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
1
2021-02-08T12:53:43.000Z
2021-02-08T12:53:43.000Z
import structlog import logging import sys import os from structlog.processors import JSONRenderer from structlog.stdlib import filter_by_level from structlog.stdlib import add_log_level_number from .datadog import tracer_injection def rename_message_key(_, __, event_dict): event_dict["message"] = event_dict["e...
24.4
57
0.705601
165
1,464
5.945455
0.363636
0.091743
0.042813
0.050968
0
0
0
0
0
0
0
0.00258
0.205601
1,464
59
58
24.813559
0.840929
0
0
0.045455
0
0
0.047814
0
0
0
0
0
0
1
0.068182
false
0
0.181818
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e49cb572bd1c712b03397fca3826c3ed98801ce6
990
py
Python
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
""" templator.py reads in an excel file and a template and outputs a file for each row in the excel file, by substituting the template variables with the values in the columns. This technique uses pandas to read the excel file into a DataFrame and the python format operator ``%``` to apply the values. """ import sys ...
34.137931
104
0.706061
150
990
4.486667
0.42
0.106984
0.053492
0.062407
0.166419
0.092125
0.092125
0.092125
0
0
0
0
0.19899
990
29
105
34.137931
0.848676
0.417172
0
0
0
0
0.075571
0
0
0
0
0
0
1
0.071429
false
0
0.214286
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
e4a3bd3abdfaed582c987ca4af954c061d659067
24,952
py
Python
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
2
2021-07-02T19:49:24.000Z
2021-07-08T02:59:25.000Z
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
null
null
null
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
null
null
null
from objects.user.User import User from objects.interface.dbconn import DB from objects.user.Currency import get_currency_symbol from objects.threads.UploadThread import UploadThread import utils.globals as _globals from utils.print import print_message, print_error from utils.enums import Months, SettingsSelection, is...
42.726027
142
0.631412
3,134
24,952
4.835992
0.108807
0.020586
0.03299
0.008709
0.56763
0.512338
0.474927
0.442531
0.424584
0.402481
0
0.00406
0.299094
24,952
583
143
42.799314
0.862542
0.27084
0
0.431755
0
0
0.121734
0.036176
0
0
0
0.001715
0
1
0.050139
false
0
0.041783
0
0.178273
0.147632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4a69e3428e588c7d00739ddb17751edb51f6451
1,717
py
Python
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import base64 from functools import wraps import pyaes from flask import request from werkzeug.utils import redirect from website.domain.UserVO import UserVO class CookieHelper(object): def init_app(self, app): self.app = app self.app.cookie_helper = self def SetCook...
28.616667
90
0.594059
196
1,717
5.122449
0.367347
0.048805
0.051793
0.065737
0.241036
0.195219
0.195219
0.195219
0.093626
0
0
0.009362
0.315667
1,717
60
91
28.616667
0.845106
0.033197
0
0.23913
0
0
0.025966
0
0
0
0
0
0
1
0.152174
false
0
0.130435
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
e4a6e1bb797c7875ed388c77bf15d0c26b3189cb
3,652
py
Python
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
4
2016-08-03T18:20:59.000Z
2020-05-24T04:38:47.000Z
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
null
null
null
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
2
2017-10-23T08:23:36.000Z
2020-05-24T04:38:57.000Z
#!/usr/bin/env python """ export_resized_ios_images Gimp plugin to export image to icon files usable on iOS. Author: ------- Tobias Blom, Techne Development AB <tobias.blom@techne-dev.se> Installation: ------------- Under Mac OS X, copy this file to ~/Library/Application Support/GIMP/x.x/plug-ins and make it exec...
33.504587
85
0.659639
529
3,652
4.478261
0.404537
0.020262
0.032081
0.030393
0.124947
0.124947
0.124947
0.065851
0.037991
0.037991
0
0.045833
0.211391
3,652
108
86
33.814815
0.776736
0.597207
0
0.057143
0
0.057143
0.235978
0.0171
0
0
0
0
0
1
0.085714
false
0
0.057143
0
0.171429
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4a93421928eb84ea60e2492daf9f320c6c9d564
8,417
py
Python
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
19
2020-01-12T23:57:22.000Z
2022-03-30T16:35:17.000Z
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
59
2020-01-13T00:45:27.000Z
2022-02-20T04:10:05.000Z
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
7
2020-01-21T21:12:03.000Z
2021-10-24T01:15:50.000Z
import datetime from django.utils.functional import cached_property from django.utils.safestring import mark_safe from office.offices import Office, OfficeSection from psalter.utils import get_psalms class Compline(Office): name = "Compline" office = "compline" def __init__(self, *args, **kwargs): ...
43.386598
345
0.640489
1,088
8,417
4.89614
0.305147
0.046555
0.027032
0.028909
0.337526
0.327389
0.267881
0.171766
0.074338
0.047306
0
0.012604
0.255317
8,417
193
346
43.611399
0.837269
0.006653
0
0.271523
0
0.072848
0.412546
0.033042
0
0
0
0
0
1
0.092715
false
0
0.033113
0.072848
0.364238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4a98810c99783995caf35d9ff70ccf375552008
1,735
py
Python
src/tide_constituents/water_level_prediction.py
slawler/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
1
2020-03-13T07:51:44.000Z
2020-03-13T07:51:44.000Z
src/tide_constituents/water_level_prediction.py
cheginit/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
null
null
null
src/tide_constituents/water_level_prediction.py
cheginit/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
1
2020-03-13T14:44:57.000Z
2020-03-13T14:44:57.000Z
import tide_constituents as tc from py_noaa import coops import pandas as pd import numpy as np import tappy start = '20180201' end = '20180228' interval = 1 start = pd.to_datetime(start) end = pd.to_datetime(end) d = start w, t, p, r = [], [], [], [] while d < end: start_ = d end_ = start_ + pd.DateOffs...
30.438596
93
0.663977
251
1,735
4.394422
0.386454
0.081596
0.035358
0.054397
0.107888
0.045331
0
0
0
0
0
0.037324
0.181556
1,735
57
94
30.438596
0.739437
0
0
0
0
0
0.077189
0
0
0
0
0
0
1
0.023256
false
0
0.116279
0.023256
0.162791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4ae21080507e35b553b7b372118c5c586495e00
7,867
py
Python
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse, os, sys, pickle import numpy as np, pathos.multiprocessing as mp, torch import gym_util.common_util as cou, polnet as pn, util_bwopt as u from collections import defaultdict from poleval_pytorch import get_rpi_s, get_Ppi_ss, get_ppisteady_s, get_Qsa def main(): arg = parse_a...
45.473988
109
0.645862
1,116
7,867
4.341398
0.253584
0.016512
0.01548
0.010733
0.175439
0.105263
0.096594
0.071827
0.063158
0.063158
0
0.002568
0.208084
7,867
172
110
45.738372
0.77512
0.096479
0
0.066176
0
0
0.097754
0.01568
0
0
0
0
0.029412
1
0.022059
false
0
0.036765
0
0.073529
0.044118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4b72c3c2f5a5bbfee4b0bb9f47cf02969cbd82b
31,394
py
Python
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
307
2019-04-03T10:51:41.000Z
2022-03-28T05:35:09.000Z
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
27
2019-05-11T08:53:32.000Z
2022-02-07T22:43:21.000Z
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
21
2019-08-29T21:50:23.000Z
2022-03-03T05:21:15.000Z
""" Tkinter UI for PlotOptiX raytracer. https://github.com/rnd-team-dev/plotoptix/blob/master/LICENSE.txt Have a look at examples on GitHub: https://github.com/rnd-team-dev/plotoptix. """ import logging import numpy as np import tkinter as tk from PIL import Image, ImageTk from ctypes import byref, c_float, c_uint ...
46.099853
183
0.580334
4,036
31,394
4.198464
0.117939
0.048864
0.03051
0.035409
0.514724
0.47483
0.434287
0.399056
0.336205
0.316022
0
0.008039
0.306587
31,394
680
184
46.167647
0.770362
0.168949
0
0.385965
0
0.008772
0.075247
0
0
0
0.001204
0
0.008772
1
0.059211
false
0
0.019737
0
0.10307
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4ba683b1acdb8fa2966f9142fd6e41d884299cc
4,144
py
Python
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
null
null
null
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
null
null
null
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
1
2020-09-30T02:56:29.000Z
2020-09-30T02:56:29.000Z
import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func import os import requests import urllib.parse # API key introduction # API_KEY = os.environ.get('API_KEY', '') finnhub_API_Key = os.environ.get('finnhub_API_Key', '') from...
36.034783
341
0.707288
586
4,144
4.798635
0.290102
0.046942
0.027383
0.032361
0.455903
0.394737
0.354196
0.354196
0.354196
0.354196
0
0.009017
0.143581
4,144
114
342
36.350877
0.783319
0.127172
0
0.171429
0
0.014286
0.327586
0.042547
0
0
0
0
0
1
0.128571
false
0
0.114286
0.014286
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4ba6ef688aa37560a69eb7860a151045a256156
1,156
py
Python
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
import json from difflib import get_close_matches data = json.load(open("data.json")) word = input("Enter a word: ") try: def translate(word): word = word.lower() if word in data: return data[word] elif word.title() in data: return data[word.title()] ...
28.195122
85
0.50519
135
1,156
4.296296
0.392593
0.068966
0.062069
0.082759
0.322414
0.218966
0.218966
0.218966
0.218966
0.151724
0
0.00137
0.368512
1,156
40
86
28.9
0.793151
0
0
0.151515
0
0
0.182796
0
0
0
0
0
0
1
0.030303
false
0
0.060606
0
0.272727
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
e4c31aee7bfbc8595d53ad5906b60459c10165ee
3,472
py
Python
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
null
null
null
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
6
2018-09-27T07:12:28.000Z
2019-08-14T10:13:13.000Z
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
null
null
null
import config import recv_db import node_rpc_helper import threading from time import sleep, time setup_check_background_result = {"msg": "(uninitialized)"} config = config.readConfig() last_check_time = time() - 10000 def get_setup_check_background(): global setup_check_background_result return setup_check_...
32.754717
93
0.616647
497
3,472
4.036217
0.160966
0.053838
0.089731
0.103689
0.367398
0.199402
0.105683
0
0
0
0
0.005878
0.264977
3,472
105
94
33.066667
0.780172
0.140841
0
0.064103
0
0
0.154806
0.024283
0
0
0
0
0
1
0.051282
false
0
0.064103
0
0.141026
0.141026
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c4f544669d2e4b222ccb9bd7786787ddb72fee
784
py
Python
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os dir_path = os.path.dirname(os.path.realpath(__file__)) file = open(dir_path + "/input.txt", "r") lines = file.readlines() lines = [line.strip() for line in lines] # lines = ["2x3x4", "1x1x10"] total = 0 for line in lines: l, w, h = [int(v) for v in line.split('x')] side1 = ...
21.777778
54
0.598214
134
784
3.425373
0.335821
0.017429
0.058824
0.091503
0.344227
0.344227
0.344227
0.20915
0.20915
0.20915
0
0.060201
0.237245
784
35
55
22.4
0.707358
0.0625
0
0.32
0
0
0.055935
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c67370682280607f52d85bc867fcf1b22bcd29
2,611
py
Python
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
from creeps.scheduled_action import ScheduledAction def part_count(creep, of_type): count = 0 for part in creep.body: if part['type'] == of_type: count += 1 return count def get_first_spawn(room): for s in room.find(FIND_MY_STRUCTURES): if s.structureType == STRUCTURE_SPAWN...
23.522523
91
0.550747
339
2,611
4.061947
0.289086
0.011619
0.015251
0.011619
0.156137
0.129267
0.076979
0.023239
0.023239
0.023239
0
0.029512
0.325163
2,611
110
92
23.736364
0.751986
0.044044
0
0.076923
0
0
0.004013
0
0
0
0
0.009091
0
1
0.10989
false
0
0.010989
0.010989
0.241758
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c8185a2c9690234bd9c6872e272faa663e2d58
2,419
py
Python
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import logging import os from sockjs.tornado import SockJSRouter, SockJSConnection from tornado.web import RequestHandler, StaticFileHandler from tornado.web import Application from tornado.ioloop import IOLoop from sidecar.utils import log class WebHandler(RequestHandler): d...
26.582418
76
0.613477
285
2,419
5.126316
0.319298
0.032854
0.043806
0.028747
0.087611
0.032854
0
0
0
0
0
0.002795
0.260438
2,419
90
77
26.877778
0.813862
0.008681
0
0.121212
0
0
0.038815
0
0
0
0
0
0
1
0.181818
false
0
0.121212
0
0.393939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c821a03a137cb22747cf95a778dd8018d7963b
1,210
py
Python
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
class Solution(object): def nextPermutation(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ flag = False for i in range(len(nums)-2, -1, -1): if nums[i] < nums[i+1]: flag = True...
30.25
74
0.400826
145
1,210
3.344828
0.248276
0.134021
0.11134
0.049485
0.529897
0.470103
0.358763
0.243299
0.243299
0
0
0.029231
0.46281
1,210
40
75
30.25
0.716923
0.146281
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c9e7db24e7faa2d384c8fed0def5b98126bad5
4,584
py
Python
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
import time from z3 import Solver, Implies, sat, Const, Function, IntSort, ForAll, DeclareSort from recognizer.pddl.pddl_planner import applicable from recognizer.pddl.sat_planner import SATPlanner from recognizer.plan_recognizer import PlanRecognizer class SATPlanRecognizer(PlanRecognizer): name = "sat" ...
43.245283
123
0.610384
556
4,584
4.899281
0.246403
0.04442
0.028634
0.044053
0.290015
0.210352
0.122981
0.098752
0.062775
0.062775
0
0.007207
0.27356
4,584
105
124
43.657143
0.810811
0.095113
0
0.101266
0
0
0.041818
0
0
0
0
0
0
1
0.063291
false
0
0.063291
0.012658
0.189873
0.075949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4cbdc38c4ab5669908483516a67bda51e21ba7f
1,431
py
Python
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
2
2019-06-03T21:09:24.000Z
2020-05-29T20:53:22.000Z
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
null
null
null
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
4
2019-07-14T02:44:40.000Z
2020-05-28T18:05:26.000Z
import os.path as op import numpy as np import matplotlib.pyplot as plt import mne from nilearn.plotting import plot_anat from config import fname, subject_id, n_jobs report = mne.open_report(fname.report) epochs = mne.read_epochs(fname.epochs) noise_cov = mne.compute_covariance(epochs, tmin=-0.2, tmax=0, method='s...
36.692308
91
0.750524
240
1,431
4.283333
0.433333
0.026265
0.036965
0.044747
0.05642
0
0
0
0
0
0
0.018268
0.120196
1,431
38
92
37.657895
0.798253
0.061495
0
0
0
0
0.050746
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4cbe718ce99cfda8db68cebd8b2f70d40be2a56
299
py
Python
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
# Faça um programa que verifique se uma letra digitada é vogal ou consoante. vogais = ['A', 'E', 'I', 'O', 'U'] letra = input('Digite uma letra: ').strip() letra = letra.capitalize() if letra in vogais: print(f'A letra {letra} é uma vogal') else: print(f'A letra {letra} é uma consoante')
27.181818
76
0.655518
49
299
4
0.571429
0.153061
0.071429
0.122449
0.214286
0.214286
0.214286
0
0
0
0
0
0.190635
299
11
77
27.181818
0.809917
0.247492
0
0
0
0
0.361607
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4cc48259575ae3ff337d2ba3e8068256382c270
21,443
py
Python
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
5
2021-12-13T18:21:35.000Z
2022-03-27T17:18:09.000Z
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
null
null
null
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
null
null
null
import ast import hashlib import json import os from collections import defaultdict from typing import Tuple, Sequence, Dict, Optional, Union, Any, Set import compress_pickle import matplotlib.pyplot as plt import numpy as np import pandas import pandas as pd from filelock import FileLock from allenact.utils.misc_uti...
36.221284
88
0.533834
2,539
21,443
4.157936
0.155179
0.018945
0.006062
0.024249
0.417732
0.345458
0.275173
0.220422
0.177039
0.162167
0
0.012613
0.375134
21,443
591
89
36.282572
0.775282
0.018934
0
0.19802
0
0
0.058644
0.017136
0
0
0
0
0.013861
1
0.015842
false
0
0.033663
0
0.065347
0.015842
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d249940b5e4b94dccb108c35a99b6f1dfb8b25
899
py
Python
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
import datetime def format_time(t): return f'{t.seconds:2}.{t.microseconds:06}' def log(message): ''' prints a line with: elapsed time since this function was first called elapsed time since this function was previously called message Elapsed times are shown in seconds with mi...
24.972222
66
0.694105
124
899
4.717742
0.403226
0.082051
0.075214
0.102564
0.307692
0.191453
0
0
0
0
0
0.004464
0.252503
899
35
67
25.685714
0.866071
0.285873
0
0.1
0
0
0.054455
0.054455
0
0
0
0
0
1
0.1
false
0
0.05
0.05
0.2
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d4b64f36bac32559212d9f09ad4caa0d9bfce2
286
py
Python
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
11
2021-05-07T16:34:52.000Z
2022-03-17T07:54:56.000Z
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
10
2021-10-08T20:03:59.000Z
2022-03-18T18:28:09.000Z
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
6
2021-07-09T18:23:09.000Z
2022-03-19T09:23:19.000Z
"""Configuration for tests""" import tempfile DEBUG = True TESTING = True WTF_CSRF_ENABLED = False # APP CONFIG # Creating a tempfile SQLALCHEMY_DATABASE_URI = f"sqlite://{tempfile.mkdtemp()}/test.db" # WEBSERVER SUPERSET_WEBSERVER_ADDRESS = "0.0.0.0" SUPERSET_WEBSERVER_PORT = 8080
19.066667
66
0.765734
39
286
5.410256
0.769231
0.028436
0.028436
0
0
0
0
0
0
0
0
0.031873
0.122378
286
14
67
20.428571
0.808765
0.227273
0
0
0
0
0.206573
0.173709
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d7188d1126cf74926c3e66a423812722a2540a
22,051
py
Python
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-present Kensho Technologies, LLC. from datetime import datetime import glob import os import time from unittest.mock import Mock import funcy import gpg import pytest from . import _UNSAFE_KEY_PASSPHRASE, FAKE_KEYS_DIR, TESTING_ENVVAR, TRUSTED_DIR_ENVVAR from ..check_gpg_keys import ( _verify_tru...
42.984405
100
0.655072
2,576
22,051
5.320264
0.157997
0.027581
0.033564
0.027362
0.63174
0.586428
0.563809
0.539511
0.509814
0.495586
0
0.02523
0.275634
22,051
512
101
43.068359
0.83278
0.15378
0
0.584416
0
0
0.196385
0.103168
0
0
0
0.001953
0.101299
1
0.036364
false
0.049351
0.041558
0
0.090909
0.067532
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d7953efcb7408bce5180ef4d3341f1a6b7b1ad
4,603
py
Python
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
1
2021-08-19T15:21:50.000Z
2021-08-19T15:21:50.000Z
import argparse from torch.utils.data import DataLoader from .model import BERT from .trainer import BERTTrainer from .dataset import DataReader, UnitedVocab, CORALDataset, my_collate, key_lib import pdb import os import json import torch class Session(): def __init__(self, dataset, mod...
38.358333
142
0.582663
543
4,603
4.637201
0.198895
0.030977
0.056791
0.035743
0.262907
0.245433
0.245433
0.235107
0.235107
0.235107
0
0.016999
0.335433
4,603
120
143
38.358333
0.806146
0.000652
0
0.021053
0
0
0.03893
0
0
0
0
0
0
1
0.021053
false
0.010526
0.094737
0
0.126316
0.115789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d9a9c56221ae7e0e31c377fd09796258aef2bc
532
py
Python
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
9
2020-10-23T14:39:45.000Z
2021-11-16T10:37:11.000Z
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
12
2020-10-07T08:07:51.000Z
2020-10-22T14:20:19.000Z
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
null
null
null
from haystack import Pipeline from haystack.retriever.anserini import DenseAnseriniRetriever # LOAD COMPONENTS retriever = DenseAnseriniRetriever(prebuilt_index_name="wikipedia-bpr-single-nq-hash", binary=True, query_encoder="castorini/bpr-nq-questi...
31.294118
86
0.682331
60
532
5.983333
0.666667
0.066852
0
0
0
0
0
0
0
0
0
0
0.208647
532
17
87
31.294118
0.852732
0.078947
0
0
0
0
0.221766
0.125257
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4da6f2e214530239d7254ffdc625a7c298a5b02
854
py
Python
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
7
2016-12-15T22:24:04.000Z
2018-12-27T05:48:45.000Z
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
null
null
null
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String, Float32 import time import subprocess def voltage_monitor(): rospy.init_node('voltage_monitor') info_pub = rospy.Publisher('bus_comm', String, queue_size=1) voltage_pub = rospy.Publisher('voltage', Float32, queue_size=1) while True:...
27.548387
124
0.661593
113
854
4.743363
0.557522
0.078358
0.063433
0.063433
0
0
0
0
0
0
0
0.033824
0.203747
854
30
125
28.466667
0.754412
0.023419
0
0.095238
0
0
0.148014
0.067389
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4de733e5c0ae2e4678e9cda8d9bbc096dd360a5
594
py
Python
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
53
2021-07-20T04:01:57.000Z
2022-03-13T17:31:08.000Z
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
58
2021-08-20T02:22:16.000Z
2021-12-13T10:38:58.000Z
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
13
2021-08-23T20:16:14.000Z
2022-01-31T23:59:21.000Z
import logging import time # import the original example.py from handler import DigitalBeing as DB logger = logging.getLogger('server_logger') logger.setLevel(logging.DEBUG) # create file handler which logs even debug messages fh = logging.FileHandler('grpc_server.log') fh.setLevel(logging.DEBUG) logger.addHandler(f...
22.846154
61
0.754209
79
594
5.556962
0.632911
0.068337
0.091116
0
0
0
0
0
0
0
0
0.013972
0.156566
594
26
62
22.846154
0.862275
0.355219
0
0
0
0
0.074271
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4debd4280513f51ffae81a74e479547f07c0088
2,679
py
Python
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
30
2017-09-14T20:25:43.000Z
2022-03-12T09:55:35.000Z
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
59
2018-01-12T18:29:24.000Z
2019-03-08T21:08:40.000Z
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
8
2017-12-01T18:36:04.000Z
2020-11-22T00:36:15.000Z
import logging from json import loads from time import time from flask import request, abort from telebot.apihelper import ApiException from telebot.types import Update from app import db, new_functions as nf from app.constants import ( webhook_url_base, webhook_url_path, ids, other_error_answer ) from app.models...
28.806452
75
0.591639
333
2,679
4.564565
0.348348
0.051316
0.076974
0.0625
0.280921
0.176316
0.107895
0.107895
0.107895
0.107895
0
0.008588
0.304591
2,679
92
76
29.119565
0.8073
0.014184
0
0.2375
0
0
0.069723
0
0
0
0
0
0
1
0.05
false
0
0.1375
0
0.225
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4df95cc2cdc1f1463a8b2b8946b91a69dbe5207
7,391
py
Python
prysm/segmented.py
deisenroth/prysm
53a400ef89697041f67192e879e61ad28c451318
[ "MIT" ]
110
2017-09-28T05:24:22.000Z
2022-03-17T17:34:08.000Z
prysm/segmented.py
mjhoptics/prysm
5dea335e068d04d1006741d8eb02278181751f73
[ "MIT" ]
82
2018-01-03T03:52:42.000Z
2022-02-02T02:30:19.000Z
prysm/segmented.py
mjhoptics/prysm
5dea335e068d04d1006741d8eb02278181751f73
[ "MIT" ]
28
2017-12-28T02:47:55.000Z
2022-03-29T02:10:11.000Z
"""Tools for working with segmented systems.""" from collections import namedtuple import numpy as truenp from .geometry import regular_polygon from .mathops import np Hex = namedtuple('Hex', ['q', 'r', 's']) def add_hex(h1, h2): """Add two hex coordinates together.""" q = h1.q + h2.q r = h1.r + h2.r ...
32.134783
117
0.613043
1,115
7,391
3.912108
0.232287
0.022925
0.029803
0.017194
0.222834
0.146722
0.120816
0.107978
0.092847
0.092847
0
0.02385
0.279529
7,391
229
118
32.275109
0.795305
0.278717
0
0.022556
0
0
0.016116
0
0
0
0
0
0
1
0.082707
false
0
0.030075
0
0.195489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4dfb95f04467bee0420411aa09bbdd150a3b575
1,156
py
Python
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from scipy.optimize import curve_fit import random as rd import plotter def model_function(X, a, b, c): """ - the analytical expression for the model that aims at describing the experimental data - the X argument is an array of tuples of the form X=...
23.12
91
0.624567
201
1,156
3.363184
0.393035
0.066568
0.057692
0.065089
0.053254
0
0
0
0
0
0
0.043628
0.24654
1,156
49
92
23.591837
0.732491
0.141003
0
0
0
0
0.008222
0
0
0
0
0
0
1
0.142857
false
0
0.178571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4e259912dc8fab0fc123e2bde02cc765fe32ec1
3,740
py
Python
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
2
2022-03-27T19:24:30.000Z
2022-03-29T16:15:31.000Z
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
1
2021-04-23T21:03:45.000Z
2021-04-23T21:03:45.000Z
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Simple script to compute correlations for inserted and removed tokens import numpy as np import pandas as pd from tqdm import tqdm import os import sqlite3 from datetime import datetime import scipy.stats import scipy.sparse def create_array(token_index, db, total=9584147): token_indicat...
46.17284
191
0.699465
542
3,740
4.51107
0.273063
0.055215
0.074438
0.02454
0.391411
0.343558
0.265849
0.222495
0.198773
0.198773
0
0.02053
0.192513
3,740
80
192
46.75
0.789073
0.024332
0
0
0
0
0.186729
0.094598
0
0
0
0
0
1
0.03125
false
0
0.125
0
0.171875
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4efdb84b5f54430d099fe1b59a9b2291a76ef7a
1,400
py
Python
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
""" Defines caching before for user preferences """ import jwt import time from cachetools import TTLCache from typing import Optional class CredentialCache(TTLCache): """ Subclass of TTLCache that temporarily stores and retreives user login credentials Arguments: TTLCache {TTLCache} -- A TTLCac...
27.45098
102
0.534286
146
1,400
5.054795
0.479452
0.134146
0.142276
0.054201
0
0
0
0
0
0
0
0
0.379286
1,400
50
103
28
0.849252
0.24
0
0.083333
0
0
0.212876
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4fbf9c4787bd6c823e79265ebbbdf508f8294f4
4,200
py
Python
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
Peshal1067/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
3
2015-04-23T09:09:04.000Z
2020-02-26T17:40:19.000Z
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
arthur-e/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
null
null
null
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
arthur-e/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
2
2017-05-30T10:27:36.000Z
2020-11-09T13:52:58.000Z
import io import zipfile import csv from util.ncconv.experimental.ocg_converter.subocg_converter import SubOcgConverter class CsvConverter(SubOcgConverter): # __headers__ = ['OCGID','GID','TIME','LEVEL','VALUE','AREA_M2','WKT','WKB'] def __init__(self,*args,**kwds): self.as_wkt = kwds.pop('as_wkt'...
37.837838
97
0.553095
492
4,200
4.534553
0.247967
0.039444
0.019722
0.028238
0.231286
0.195876
0.15688
0.15688
0.086957
0.086957
0
0.004759
0.299524
4,200
111
98
37.837838
0.753569
0.358095
0
0.112903
0
0
0.047493
0
0
0
0
0
0
1
0.080645
false
0
0.064516
0
0.177419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9003b0f6d049c9acbb898890fc3e7195ecd16b28
1,634
py
Python
arcade/gui/examples/anchor_widgets.py
akapkotel/arcade
6e43ec53e7bfa3dee1aa574404794e3695aad381
[ "MIT" ]
null
null
null
arcade/gui/examples/anchor_widgets.py
akapkotel/arcade
6e43ec53e7bfa3dee1aa574404794e3695aad381
[ "MIT" ]
1
2022-03-21T06:24:29.000Z
2022-03-21T06:24:29.000Z
arcade/gui/examples/anchor_widgets.py
Ibrahim2750mi/arcade
bf3229e64117931bffb8e50926a996a7a8fc9b8b
[ "MIT" ]
null
null
null
""" Example shows how to use UIAnchorWidget to position widgets on screen. Dummy widgets indicate hovered, pressed and clicked. """ import arcade from arcade.gui import UIManager from arcade.gui.widgets import UIDummy from arcade.gui.widgets.layout import UIAnchorLayout class UIMockup(arcade.Window): def __init_...
24.38806
70
0.570991
184
1,634
4.891304
0.353261
0.085556
0.124444
0.14
0.361111
0.361111
0.322222
0.24
0.24
0.24
0
0.010743
0.316401
1,634
66
71
24.757576
0.794987
0.075275
0
0.387755
0
0
0.054558
0
0
0
0
0
0
1
0.040816
false
0
0.081633
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
90041b2eae192a57fb04bf6a09bec2f9aae7dce1
3,897
py
Python
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
null
null
null
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
2
2021-09-23T12:59:27.000Z
2021-11-01T12:21:51.000Z
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
null
null
null
import os import glob import pickle import sys import tensorflow as tf from numba import cuda from python_tools.OSUtils import ensure_dir from offline_predict import get_boxes_from_detection_predictions_data, convert_boxes_to_bboxes, predict_on_image_list, load_skeleton_model DETECTION_RESEARCH_FOLDER = os.path.expand...
45.847059
138
0.744419
483
3,897
5.569358
0.271222
0.111524
0.036431
0.039033
0.271004
0.240149
0.139777
0.055019
0
0
0
0.00342
0.17475
3,897
84
139
46.392857
0.833022
0.020272
0
0
0
0
0.155865
0.101023
0
0
0
0
0
1
0.048387
false
0
0.145161
0
0.225806
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9007054fb0674671d547ac9d0adee85e1c24f33c
1,234
py
Python
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import csv import time from datetime import datetime import requests from bs4 import BeautifulSoup url = 'https://www.fundsexplorer.com.br/ranking' # Data Cleansing # 'R$' => '' # '%' => '' # '.0' => '' # '.' => '' # ',' => '.' # 'N/A' => '' print("Starting...{}".format(datetime.now())...
20.915254
147
0.627229
177
1,234
4.299435
0.435028
0.036794
0.04205
0.031537
0.204993
0.204993
0.204993
0.204993
0.204993
0.204993
0
0.003784
0.143436
1,234
58
148
21.275862
0.716178
0.077796
0
0.125
0
0
0.117699
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9009e3424db2d10a8ac51689c842cea2498a6040
14,546
py
Python
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2020-08-28T16:34:10.000Z
2020-08-28T16:34:10.000Z
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
null
null
null
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2021-04-25T06:59:36.000Z
2021-04-25T06:59:36.000Z
""" Module 3D Point Selector Provides functionality view slices and to select points in multiplanar reconstructions. """ import os, time, sys import numpy as np import visvis as vv from visvis.utils.pypoints import Point, Pointset, Aarray import OpenGL.GL as gl import OpenGL.GLU as glu class VolViewer: ...
36.732323
110
0.564691
1,735
14,546
4.639769
0.192507
0.016522
0.01677
0.017888
0.257267
0.178137
0.157516
0.136894
0.136894
0.096398
0
0.034052
0.323663
14,546
395
111
36.825316
0.784204
0.120033
0
0.173432
0
0
0.01731
0
0
0
0
0
0
1
0.066421
false
0
0.02214
0.00369
0.121771
0.01476
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0