hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
3e572d40ef88a1ec3058d9cc94eb6dce557f2d6d
4,728
py
Python
src/voicemaker/voicemaker.py
IAL32/voicemaker
66c9dd25749743d94bb9c3aac8ba2c858f327723
[ "MIT" ]
null
null
null
src/voicemaker/voicemaker.py
IAL32/voicemaker
66c9dd25749743d94bb9c3aac8ba2c858f327723
[ "MIT" ]
1
2022-03-04T14:52:16.000Z
2022-03-08T08:00:59.000Z
src/voicemaker/voicemaker.py
IAL32/voicemaker
66c9dd25749743d94bb9c3aac8ba2c858f327723
[ "MIT" ]
null
null
null
import requests LANGUAGES_LIST = [ 'en-US', 'en-GB', 'en-AU', 'en-HK', 'en-NZ', 'en-SG', 'en-ZA', 'de-DE', 'ar-XA', 'ar-SA', 'bn-IN', 'bg-BG', 'ca-ES', 'cmn-CN', 'zh-HK', 'cmn-TW', 'cy-GB', 'cs-CZ', 'da-DK', 'de-CH', 'es-AR', 'es-CO', 'es-US', 'ga-IE', 'gu-IN', 'hr-HR', 'mr-IN', 'ms-MY', 'mt-MT', 'nl-N...
39.4
164
0.597716
3,988
0.843486
0
0
0
0
0
0
2,675
0.565778
3e5810f45ee6abfb855c478735026a678b651dd9
1,365
py
Python
Lecture/Kapitel 9 - Seite 235 - Implementierung des Gradientenverfahrens.py
PhilippMatthes/tensorflow-playground
b5fee6e5f5044dc5cbcd54529d559388a3df7813
[ "MIT" ]
null
null
null
Lecture/Kapitel 9 - Seite 235 - Implementierung des Gradientenverfahrens.py
PhilippMatthes/tensorflow-playground
b5fee6e5f5044dc5cbcd54529d559388a3df7813
[ "MIT" ]
null
null
null
Lecture/Kapitel 9 - Seite 235 - Implementierung des Gradientenverfahrens.py
PhilippMatthes/tensorflow-playground
b5fee6e5f5044dc5cbcd54529d559388a3df7813
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from sklearn.datasets import fetch_california_housing housing = fetch_california_housing() m, n = housing.data.shape housing_data_plus_bias = np.c_[np.ones((m, 1)), housing.data] X = tf.constant(housing_data_plus_bias, dtype=tf.float32, name="X") y = tf.constant(housing.targ...
26.764706
81
0.69304
0
0
0
0
0
0
0
0
45
0.032967
3e582f1280b1545b27d8bb65ef57684f484bd7bc
1,634
py
Python
python/Fluoroseq/obsolete/scripts/intrinsic_pr_bounds.py
erisyon/whatprot
176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c
[ "MIT" ]
null
null
null
python/Fluoroseq/obsolete/scripts/intrinsic_pr_bounds.py
erisyon/whatprot
176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c
[ "MIT" ]
1
2021-06-12T00:50:08.000Z
2021-06-15T17:59:12.000Z
python/Fluoroseq/obsolete/scripts/intrinsic_pr_bounds.py
erisyon/whatprot
176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c
[ "MIT" ]
1
2021-06-11T19:34:43.000Z
2021-06-11T19:34:43.000Z
# -*- coding: utf-8 -*- """ @author: Matthew Beauregard Smith (UT Austin) """ from common.peptide import Peptide from plotting.plot_pr_curve import plot_pr_curve from numpy import load from simulate.label_peptides import label_peptides TRUE_Y_FILE = 'C:/Users/Matthew/ICES/MarcotteLab/data/classification/c...
30.259259
105
0.676255
133
0.081395
0
0
0
0
0
0
303
0.185435
3e5961792d37ca4a7091e59c1c74180b0cb0ef47
337,498
py
Python
fitparse/profile.py
vlcvboyer/python-fitparse
bef76231a1c8dddfafc23070b43684e7d0c6e916
[ "MIT" ]
null
null
null
fitparse/profile.py
vlcvboyer/python-fitparse
bef76231a1c8dddfafc23070b43684e7d0c6e916
[ "MIT" ]
1
2019-01-03T08:56:11.000Z
2019-06-05T09:24:13.000Z
fitparse/profile.py
vlcvboyer/python-fitparse
bef76231a1c8dddfafc23070b43684e7d0c6e916
[ "MIT" ]
1
2018-08-30T15:06:12.000Z
2018-08-30T15:06:12.000Z
################# BEGIN AUTOMATICALLY GENERATED FIT PROFILE ################## ########################### DO NOT EDIT THIS FILE ############################ ####### EXPORTED PROFILE FROM SDK VERSION 20.33 AT 2017-05-17 22:36:12 ####### ########## PARSED 118 TYPES (1699 VALUES), 76 MESSAGES (950 FIELDS) ########## fro...
33.844565
336
0.397916
0
0
0
0
0
0
0
0
88,433
0.262025
3e5b857f8383e340919c32b08170a5b4cd5f70b7
820
py
Python
python-basic-project/unit08/myfinance.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
9
2020-10-25T15:13:32.000Z
2022-03-26T11:27:21.000Z
python-basic-project/unit08/myfinance.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
null
null
null
python-basic-project/unit08/myfinance.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
7
2021-03-01T11:06:45.000Z
2022-03-14T07:06:04.000Z
import requests from bs4 import BeautifulSoup def get_tickers(market=2): url = f"http://comp.fnguide.com/SVO2/common/lookup_data.asp?mkt_gb={market}&comp_gb=1" resp = requests.get(url) data = resp.json() codes = [] for comp in data: code = comp['cd'][-6:] codes.append(code) ret...
24.117647
90
0.603659
0
0
0
0
0
0
0
0
173
0.210976
3e5c8076b3c080597643c7f2efec1d74b5c8f190
1,882
py
Python
elsie/draw.py
Kobzol/elsie
b7b784d8d04c9e0d545e18504cf4ad23b9e7e8c4
[ "MIT" ]
null
null
null
elsie/draw.py
Kobzol/elsie
b7b784d8d04c9e0d545e18504cf4ad23b9e7e8c4
[ "MIT" ]
null
null
null
elsie/draw.py
Kobzol/elsie
b7b784d8d04c9e0d545e18504cf4ad23b9e7e8c4
[ "MIT" ]
null
null
null
def set_font_from_style(xml, style): if "font" in style: xml.set("font-family", style["font"]) if "size" in style: xml.set("font-size", style["size"]) s = "" if "color" in style: s += "fill:{};".format(style["color"]) if style.get("bold", False): s += "font-weight: b...
26.885714
62
0.508502
0
0
0
0
0
0
0
0
379
0.201382
3e5d6df95ec953ae6051ebc8540af72617f83181
7,209
py
Python
TravelWebsite/travello/admin.py
DSAnup/Django
76025d181bafbb41783912577f80ec728884549d
[ "MIT" ]
1
2020-03-15T05:22:30.000Z
2020-03-15T05:22:30.000Z
TravelWebsite/travello/admin.py
DSAnup/Django
76025d181bafbb41783912577f80ec728884549d
[ "MIT" ]
null
null
null
TravelWebsite/travello/admin.py
DSAnup/Django
76025d181bafbb41783912577f80ec728884549d
[ "MIT" ]
null
null
null
from django.contrib import admin from django.utils.html import format_html from django.shortcuts import redirect from .models import * # Register your models here. admin.site.register(CategoryDes) class DestinationAdmin(admin.ModelAdmin): def edit(self, obj): return format_html('<a class="btn-primary" hr...
49.717241
164
0.659315
6,478
0.898599
0
0
0
0
0
0
1,835
0.254543
3e5e4207adc8922463d0a98148721a7ee4e6e6eb
1,428
py
Python
demos/cookie-clicker/cookie-clicker.py
Coding-Kakis/Automating-Shenanigans-in-Python
c8e00231468668fbe231e0b35e32b9e99d5bd458
[ "MIT" ]
1
2021-09-11T13:05:17.000Z
2021-09-11T13:05:17.000Z
demos/cookie-clicker/cookie-clicker.py
Coding-Kakis/Automating-Shenanigans-in-Python
c8e00231468668fbe231e0b35e32b9e99d5bd458
[ "MIT" ]
null
null
null
demos/cookie-clicker/cookie-clicker.py
Coding-Kakis/Automating-Shenanigans-in-Python
c8e00231468668fbe231e0b35e32b9e99d5bd458
[ "MIT" ]
null
null
null
# Cookie clicker auto-clicker # Works for the classic version here: https://orteil.dashnet.org/experiments/cookie/ import pyautogui def locate_cookie(): """ Returns the locations of the Big Cookie Does not return until the cookie is found """ loc = None while loc == None: loc = pyaut...
19.833333
84
0.573529
0
0
0
0
0
0
0
0
510
0.357143
3e5e941943139ba0623e31d497e78bf7beb9106d
1,485
py
Python
esupa/templatetags/esupa.py
Abando/esupa
84888ff7d7879437659fd06a8707ac033f25b8ab
[ "Apache-2.0" ]
null
null
null
esupa/templatetags/esupa.py
Abando/esupa
84888ff7d7879437659fd06a8707ac033f25b8ab
[ "Apache-2.0" ]
4
2015-11-09T02:01:15.000Z
2016-01-20T14:51:13.000Z
esupa/templatetags/esupa.py
ekevoo/esupa
84888ff7d7879437659fd06a8707ac033f25b8ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2015, Ekevoo.com. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in # compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
37.125
107
0.703704
0
0
0
0
596
0.401347
0
0
712
0.479461
3e62b645957319fa784b6eef70fbe8c8812a5575
3,305
py
Python
ivy/pages.py
swsch/ivy
4932cf7541acff13815be613b0f3335b21c86670
[ "Unlicense" ]
null
null
null
ivy/pages.py
swsch/ivy
4932cf7541acff13815be613b0f3335b21c86670
[ "Unlicense" ]
null
null
null
ivy/pages.py
swsch/ivy
4932cf7541acff13815be613b0f3335b21c86670
[ "Unlicense" ]
null
null
null
# ------------------------------------------------------------------------------ # This module renders and writes HTML pages to disk. # ------------------------------------------------------------------------------ import re import os from . import site from . import events from . import filters from . import utils f...
35.537634
80
0.579728
2,819
0.85295
0
0
0
0
0
0
1,303
0.394251
3e64ce743607e76cfc572cc4ea2cfe77fba2b173
5,646
py
Python
mvyaml/mvyaml.py
gchiesa/mvyaml
6d4c580bc596d220b45e6a6ccf9b2c3ef582f554
[ "MIT" ]
null
null
null
mvyaml/mvyaml.py
gchiesa/mvyaml
6d4c580bc596d220b45e6a6ccf9b2c3ef582f554
[ "MIT" ]
null
null
null
mvyaml/mvyaml.py
gchiesa/mvyaml
6d4c580bc596d220b45e6a6ccf9b2c3ef582f554
[ "MIT" ]
null
null
null
"""Main module.""" from copy import deepcopy from datetime import datetime from difflib import Differ from io import StringIO from typing import IO, Iterable, AnyStr from datadiff.tools import assert_equal from ruamel.yaml import YAML from ruamel.yaml.comments import CommentedMap class MVYamlVersionNotFoundException...
32.079545
108
0.613355
5,215
0.923663
0
0
905
0.16029
0
0
624
0.110521
3e667e1d0cd277296f1a4241baaa4af12a192a1e
1,889
py
Python
tests/test_monkeypatch.py
marcdemers/py_vollib_vectorized
0c2519ff58e3caf2caee37ca37d878e6e5e1eefd
[ "MIT" ]
40
2020-12-17T16:36:32.000Z
2022-02-07T20:11:26.000Z
tests/test_monkeypatch.py
marcdemers/py_vollib_vectorized
0c2519ff58e3caf2caee37ca37d878e6e5e1eefd
[ "MIT" ]
8
2021-01-20T04:17:50.000Z
2022-02-18T07:02:27.000Z
tests/test_monkeypatch.py
marcdemers/py_vollib_vectorized
0c2519ff58e3caf2caee37ca37d878e6e5e1eefd
[ "MIT" ]
13
2020-12-30T21:05:10.000Z
2022-03-27T12:30:26.000Z
import unittest from unittest import TestCase class Test(TestCase): def test_02_vectorized_imports(self): print("test02") import py_vollib.black.implied_volatility import py_vollib.black_scholes.implied_volatility import py_vollib.black_scholes_merton.implied_volatility imp...
42.931818
137
0.728957
1,840
0.97406
0
0
0
0
0
0
323
0.17099
3e6846fed01d2e5081085a1f9b9ca2203cbb1dad
1,137
py
Python
b2share/modules/deposit/search.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
null
null
null
b2share/modules/deposit/search.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
null
null
null
b2share/modules/deposit/search.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
1
2020-09-29T10:56:03.000Z
2020-09-29T10:56:03.000Z
from elasticsearch_dsl import Q, TermsFacet from flask import has_request_context from flask_login import current_user from invenio_search import RecordsSearch from invenio_search.api import DefaultFilter from .permissions import admin_permission_factory def deposits_filter(): """Filter list of deposits. ...
25.266667
74
0.664908
354
0.311346
0
0
0
0
0
0
422
0.371152
3e69d58aa5e27029fd5fb9a2126945c9c542b4c9
1,586
py
Python
code/find_nconfsources.py
fornax-navo/fornax-demo-notebooks
49525d5bed3440d0d1903c29b9a1af8e0ff7e975
[ "BSD-3-Clause" ]
1
2022-02-03T18:12:59.000Z
2022-02-03T18:12:59.000Z
code/find_nconfsources.py
fornax-navo/fornax-demo-notebooks
49525d5bed3440d0d1903c29b9a1af8e0ff7e975
[ "BSD-3-Clause" ]
1
2022-03-11T21:17:35.000Z
2022-03-11T22:28:46.000Z
code/find_nconfsources.py
fornax-navo/fornax-demo-notebooks
49525d5bed3440d0d1903c29b9a1af8e0ff7e975
[ "BSD-3-Clause" ]
2
2022-02-01T00:57:35.000Z
2022-02-13T22:20:55.000Z
import numpy as np from determine_source_type import determine_source_type #function to figure out how many sources are in cutout #and set up necessary tractor input for those sources def find_nconfsources(raval, decval, gal_type, fluxval, x1, y1, cutout_width, subimage_wcs, df): #setup to collect sources ...
38.682927
111
0.663934
0
0
0
0
0
0
0
0
470
0.296343
3e6ad0d35aefd868861d6a14144cf80665b8e7ea
274
py
Python
setup.py
dalejung/earthdragon
6fc9308288361bbe54d1d0107b4a77e3f27cd9be
[ "MIT" ]
1
2019-12-02T15:10:49.000Z
2019-12-02T15:10:49.000Z
setup.py
dalejung/earthdragon
6fc9308288361bbe54d1d0107b4a77e3f27cd9be
[ "MIT" ]
5
2015-08-13T16:00:04.000Z
2016-03-14T18:43:11.000Z
setup.py
dalejung/earthdragon
6fc9308288361bbe54d1d0107b4a77e3f27cd9be
[ "MIT" ]
null
null
null
from distutils.core import setup DISTNAME='earthdragon' FULLVERSION='0.1' setup( name=DISTNAME, version=FULLVERSION, packages=['earthdragon'], install_requires = [ 'asttools', 'toolz', 'typeguard', 'more_itertools', ] )
16.117647
32
0.605839
0
0
0
0
0
0
0
0
75
0.273723
3e6ad6e1c6ce978983b60511c62b60c613bacb9a
92
py
Python
script.py
juand1809/JuanVelasquez_Ejercicio23
40b20dc3db6e3a9a884265a950dd3ccac1f7a615
[ "MIT" ]
null
null
null
script.py
juand1809/JuanVelasquez_Ejercicio23
40b20dc3db6e3a9a884265a950dd3ccac1f7a615
[ "MIT" ]
null
null
null
script.py
juand1809/JuanVelasquez_Ejercicio23
40b20dc3db6e3a9a884265a950dd3ccac1f7a615
[ "MIT" ]
null
null
null
import os a = os.system("g++ sumatoria.cpp -o sumatoria.x") a = os.system("./sumatoria.x")
18.4
49
0.652174
0
0
0
0
0
0
0
0
49
0.532609
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
0
0
0
0
0
0
0
0
109
0.326347
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
0
0
0
0
0
0
0
0
1,034
0.524075
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
1,291
0.912367
0
0
1,194
0.843816
1,070
0.756184
557
0.39364
3e70d3317c13de0952315e701a55b920df03ec85
1,441
py
Python
20210607_fizzbuzz.py
sayloren/codechallenges
b31b64c176a1c03c937e915f3b60657669495681
[ "Apache-2.0" ]
null
null
null
20210607_fizzbuzz.py
sayloren/codechallenges
b31b64c176a1c03c937e915f3b60657669495681
[ "Apache-2.0" ]
null
null
null
20210607_fizzbuzz.py
sayloren/codechallenges
b31b64c176a1c03c937e915f3b60657669495681
[ "Apache-2.0" ]
null
null
null
# code golf challenge # https://code.golf/fizz-buzz#python # wren 20210607 # Print the numbers from 1 to 100 inclusive, each on their own line. # If, however, the number is a multiple of three then print Fizz instead, # and if the number is a multiple of five then print Buzz. # For numbers which are multiples of both ...
46.483871
92
0.725191
0
0
0
0
0
0
0
0
1,169
0.811242
3e730fa82d3520ad13dc948a854e1cd1df0331d4
275
py
Python
setup.py
grro/install-raspberry
f6db2d451c1277127a77fdc6b00ea55708f0bd17
[ "Apache-2.0" ]
null
null
null
setup.py
grro/install-raspberry
f6db2d451c1277127a77fdc6b00ea55708f0bd17
[ "Apache-2.0" ]
null
null
null
setup.py
grro/install-raspberry
f6db2d451c1277127a77fdc6b00ea55708f0bd17
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name='install-raspberry', version='', packages=[''], url='https://github.com/grro/httpstreamproxy', license='Apache Software License', author='grro', author_email='[email protected]', description='test' )
21.153846
50
0.658182
0
0
0
0
0
0
0
0
121
0.44
3e73f6fed18b11f2933d0b20530ca1d6b4de649e
2,701
py
Python
py_privatekonomi/tests/swedbank/test_swedbank_db.py
nilsFK/py-privatekonomi
9172dfa85e439e18558a60fdb3b69e956e70e783
[ "MIT" ]
2
2015-01-04T21:27:45.000Z
2015-01-05T13:31:52.000Z
py_privatekonomi/tests/swedbank/test_swedbank_db.py
nilsFK/py-privatekonomi
9172dfa85e439e18558a60fdb3b69e956e70e783
[ "MIT" ]
28
2015-01-04T22:13:24.000Z
2019-11-29T13:41:01.000Z
py_privatekonomi/tests/swedbank/test_swedbank_db.py
nilsFK/py-privatekonomi
9172dfa85e439e18558a60fdb3b69e956e70e783
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import unittest import inspect from py_privatekonomi.utilities import common from py_privatekonomi.tests.test_base import TestBase from py_privatekonomi.tes...
37
84
0.652721
2,017
0.74676
0
0
0
0
0
0
430
0.1592
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
0
0
0
0
0
0
0
0
166
0.166667
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
0
0
0
0
0
0
0
0
75
0.19084
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
0
0
0
0
0
0
0
0
1,056
0.47185
3e78c123f36641a6b522ac2d459248b01e28de60
1,204
py
Python
hello/hello_pil.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_pil.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_pil.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from PIL import Image, ImageDraw, ImageFont, ImageFilter import random im = Image.open('F:/workspace/python/data/backpink.jpg') im2 = im.filter(ImageFilter.BLUR) im2.save('F:/workspace/python/data/backpink_blur.png', 'png') im2.save('F:/workspace/python/data/backpink_blu...
24.571429
84
0.680233
0
0
0
0
0
0
0
0
386
0.304416
3e7a2d3d3d5314bdb0dff02d7d69496583791bdc
382
py
Python
terra_layer/migrations/0028_layergroup_exclusive.py
Terralego/terra-layer
6564a63d389503d3ae1f63ce46e674b228d6764b
[ "MIT" ]
1
2019-08-08T15:17:32.000Z
2019-08-08T15:17:32.000Z
terra_layer/migrations/0028_layergroup_exclusive.py
Terralego/terra-layer
6564a63d389503d3ae1f63ce46e674b228d6764b
[ "MIT" ]
65
2019-10-21T10:05:00.000Z
2022-03-08T14:08:27.000Z
terra_layer/migrations/0028_layergroup_exclusive.py
Terralego/terra-layer
6564a63d389503d3ae1f63ce46e674b228d6764b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.9 on 2019-07-16 10:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("terra_layer", "0027_auto_20190715_1631")] operations = [ migrations.AddField( model_name="layergroup", name="exclusive", ...
22.470588
63
0.636126
289
0.756545
0
0
0
0
0
0
108
0.282723
3e7a7495c3ea96af4211a7bee33396978138c459
605
py
Python
docs/examples/best_practices/dynamic_configuration/cdk_appconfig.py
ran-isenberg/aws-lambda-handler-cookbook
adfe58dacd87315151265818869bb842c7eb4971
[ "MIT" ]
61
2022-02-07T05:21:14.000Z
2022-03-27T14:11:30.000Z
docs/examples/best_practices/dynamic_configuration/cdk_appconfig.py
ran-isenberg/aws-lambda-handler-cookbook
adfe58dacd87315151265818869bb842c7eb4971
[ "MIT" ]
17
2022-02-26T05:25:31.000Z
2022-03-16T20:02:46.000Z
docs/examples/best_practices/dynamic_configuration/cdk_appconfig.py
ran-isenberg/aws-lambda-handler-cookbook
adfe58dacd87315151265818869bb842c7eb4971
[ "MIT" ]
4
2022-02-17T16:35:27.000Z
2022-03-07T03:13:07.000Z
from aws_cdk import Stack from aws_lambda_handler_cookbook.service_stack.configuration.configuration_construct import ConfigurationStore from aws_lambda_handler_cookbook.service_stack.constants import CONFIGURATION_NAME, ENVIRONMENT, SERVICE_NAME from constructs import Construct class CookBookConfigurationStack(Stack...
43.214286
124
0.809917
322
0.532231
0
0
0
0
0
0
49
0.080992
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
530
0.811639
0
0
0
0
0
0
46
0.070444
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
0
0
469
0.174414
0
0
0
0
420
0.156192
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
0
0
0
0
0
0
0
0
1,336
0.365727
3e7fe9149a1b5f7c3cd431d38f69f6e9b05ff08e
108
py
Python
loops_part2/sequence_2k+1.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
loops_part2/sequence_2k+1.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
loops_part2/sequence_2k+1.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
1
2022-01-14T17:12:44.000Z
2022-01-14T17:12:44.000Z
number = int(input()) counter = 1 while counter <= number: print(counter) counter = 2 * counter + 1
18
29
0.62963
0
0
0
0
0
0
0
0
0
0
3e82a49073596a4c986e7e70b3ddc02848ac39cb
385
py
Python
tests/fixtures.py
hdsr-mid/string_finder
64aa38afa562beddc897a0fcb84bf39e53b935fd
[ "MIT" ]
null
null
null
tests/fixtures.py
hdsr-mid/string_finder
64aa38afa562beddc897a0fcb84bf39e53b935fd
[ "MIT" ]
null
null
null
tests/fixtures.py
hdsr-mid/string_finder
64aa38afa562beddc897a0fcb84bf39e53b935fd
[ "MIT" ]
null
null
null
from pathlib import Path from string_finder.constants import TEST_DATA_DIR from typing import List import pytest @pytest.fixture def caw_xml_paths() -> List[Path]: xml_dir = TEST_DATA_DIR / "xmls" assert xml_dir.is_dir() _paths = [x for x in xml_dir.iterdir()] assert len(_paths) == 4, f"expected 4 xm...
25.666667
90
0.719481
0
0
0
0
268
0.696104
0
0
67
0.174026
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
1,378
0.962291
0
0
0
0
0
0
103
0.071927
3e869ea6160f40dc58804e7f852689a43590b0fc
516
py
Python
issues_list/migrations/0003_auto_20181106_1541.py
vmcggh18/bits_tracker
7c09aae321efb13979bed274d973c77319ce795e
[ "PostgreSQL" ]
null
null
null
issues_list/migrations/0003_auto_20181106_1541.py
vmcggh18/bits_tracker
7c09aae321efb13979bed274d973c77319ce795e
[ "PostgreSQL" ]
7
2020-06-05T19:50:41.000Z
2022-03-11T23:39:39.000Z
issues_list/migrations/0003_auto_20181106_1541.py
vmcggh18/bits_tracker
7c09aae321efb13979bed274d973c77319ce795e
[ "PostgreSQL" ]
1
2019-02-19T15:30:16.000Z
2019-02-19T15:30:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-11-06 15:41 from __future__ import unicode_literals from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), (...
23.454545
66
0.649225
332
0.643411
0
0
0
0
0
0
120
0.232558
3e87d53a9a7c9e621189fb9905a20df232be3db0
6,203
py
Python
sentiment_analysis.py
bernardomelo/projeto-final
f0207144282b04e1b781604bf96d69634ca68ee8
[ "MIT" ]
null
null
null
sentiment_analysis.py
bernardomelo/projeto-final
f0207144282b04e1b781604bf96d69634ca68ee8
[ "MIT" ]
null
null
null
sentiment_analysis.py
bernardomelo/projeto-final
f0207144282b04e1b781604bf96d69634ca68ee8
[ "MIT" ]
null
null
null
############################################################################### # Univesidade Federal de Pernambuco -- UFPE (http://www.ufpe.br) # Centro de Informatica -- CIn (http://www.cin.ufpe.br) # Bacharelado em Sistemas de Informacao # IF968 -- Programacao 1 # # Autor: Bernardo Gomes de Melo # ...
35.855491
107
0.563759
0
0
0
0
0
0
0
0
3,514
0.5665
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 <[email protected]>' __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
35,843
0.965338
0
0
1,748
0.047078
11,281
0.303824
22,113
0.595556
3e8b7eee7855784a75f5858aea2cd7099da89f3d
4,197
py
Python
gistsig/cli.py
derekmerck/check-hashes
aaa7d596281e41bbb5b73850c5d43113b7d0632b
[ "MIT" ]
1
2019-01-26T22:33:02.000Z
2019-01-26T22:33:02.000Z
gistsig/cli.py
derekmerck/check-hashes
aaa7d596281e41bbb5b73850c5d43113b7d0632b
[ "MIT" ]
null
null
null
gistsig/cli.py
derekmerck/check-hashes
aaa7d596281e41bbb5b73850c5d43113b7d0632b
[ "MIT" ]
null
null
null
""" gistsig Derek Merck Winter 2019 Sign and verify Python packages using public gists. """ import logging from pprint import pformat from datetime import datetime import click from . import get_gist, update_gist from . import get_pkg_info, get_pkg_gist @click.group() @click.option('--verbose', '-v', is_flag=True, ...
27.794702
99
0.646414
0
0
0
0
3,424
0.815821
0
0
1,210
0.288301
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
1,643
0.68544
0
0
0
0
0
0
1,088
0.453901
3e8fb96193b2244d64a924fa63c9c59dfafd9741
557
py
Python
Software_University/fundamentals/functions/lecture/orders.py
Ivanazzz/SoftUni-W3resource-Python
892321a290e22a91ff2ac2fef5316179a93f2f17
[ "MIT" ]
1
2022-01-26T07:38:11.000Z
2022-01-26T07:38:11.000Z
Software_University/fundamentals/functions/lecture/orders.py
Ivanazzz/SoftUni-W3resource-Python
892321a290e22a91ff2ac2fef5316179a93f2f17
[ "MIT" ]
null
null
null
Software_University/fundamentals/functions/lecture/orders.py
Ivanazzz/SoftUni-W3resource-Python
892321a290e22a91ff2ac2fef5316179a93f2f17
[ "MIT" ]
null
null
null
product_type = input("Enter the product type(coffee, water, coke, snacks): ") quantity = int(input("Enter the quantity: ")) def price(): if product_type == "coffee": total_price = quantity * 1.50 return total_price elif product_type == "water": total_price = quantity * 1.00 retu...
30.944444
77
0.626571
0
0
0
0
0
0
0
0
122
0.219031
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
1,342
0.269262
0
0
0
0
0
0
1,140
0.228732
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
2,211
0.498197
0
0
173
0.038982
0
0
979
0.220595
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
0
0
0
0
0
0
0
0
588
0.314944
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
0
0
0
0
0
0
0
0
276
0.13062
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
5,568
0.99982
0
0
0
0
0
0
887
0.159275
e41482448ad0c9a9ce2ec0102c5edc24cd4e69ff
11,339
py
Python
tests/test_views/test_memberships.py
freelancing-solutions/GCP-Based-Database-as-a-Service
7d6a12c33db238ca2f748bf4ddea6d2cf3c16da3
[ "MIT" ]
1
2021-04-15T19:45:04.000Z
2021-04-15T19:45:04.000Z
tests/test_views/test_memberships.py
freelancing-solutions/pinydesk
7d6a12c33db238ca2f748bf4ddea6d2cf3c16da3
[ "MIT" ]
516
2021-05-02T11:46:36.000Z
2022-03-29T06:09:49.000Z
tests/test_views/test_memberships.py
freelancing-solutions/pinydesk
7d6a12c33db238ca2f748bf4ddea6d2cf3c16da3
[ "MIT" ]
1
2021-09-04T22:40:14.000Z
2021-09-04T22:40:14.000Z
import random import typing from datetime import datetime, timedelta from random import randint from google.cloud import ndb from data_service.config.stocks import currency_symbols from data_service.store.mixins import AmountMixin from data_service.views.memberships import MembershipsView from data_service.store.member...
45.175299
115
0.71038
1,882
0.165976
0
0
77
0.006791
0
0
2,228
0.19649
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
0
0
0
0
0
0
0
0
795
0.203429
e415ae5887fb3b1c6bbb5eae6bf773f7d423747e
1,152
py
Python
8kyu/a-wolf-in-sheeps-clothing/solution.py
Morioki/Code-Katas
65bffc0675d3c0f68c60706e95e38ab1dcfc8636
[ "MIT" ]
null
null
null
8kyu/a-wolf-in-sheeps-clothing/solution.py
Morioki/Code-Katas
65bffc0675d3c0f68c60706e95e38ab1dcfc8636
[ "MIT" ]
null
null
null
8kyu/a-wolf-in-sheeps-clothing/solution.py
Morioki/Code-Katas
65bffc0675d3c0f68c60706e95e38ab1dcfc8636
[ "MIT" ]
null
null
null
import unittest def warn_the_sheep(queue): return 'Pls go away and stop eating my sheep' if queue[::-1].index('wolf') == 0 else f"Oi! Sheep number {queue[::-1].index('wolf')}! You are about to be eaten by a wolf!" class TestSolution(unittest.TestCase): def test_1(self): self.assertEquals(warn_the_she...
57.6
175
0.62934
931
0.80816
0
0
0
0
0
0
590
0.512153
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
0
0
0
0
0
0
0
0
159
0.35412
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
0
0
0
0
0
0
0
0
1,862
0.43627
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
1,784
0.689335
0
0
578
0.223338
0
0
469
0.181221
e41bb3e24e831bc6c9db543d89a47e06639cb0a0
355
py
Python
src/comments/migrations/0004_auto_20200209_1812.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
null
null
null
src/comments/migrations/0004_auto_20200209_1812.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
4
2021-03-30T12:35:36.000Z
2021-06-10T18:11:24.000Z
src/comments/migrations/0004_auto_20200209_1812.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
2
2021-02-07T16:16:36.000Z
2021-07-13T05:26:51.000Z
# Generated by Django 3.0.2 on 2020-02-09 18:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('comments', '0003_auto_20200208_0812'), ] operations = [ migrations.AlterModelOptions( name='comment', options={'ordering': [...
19.722222
51
0.6
270
0.760563
0
0
0
0
0
0
115
0.323944
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
0
0
0
0
0
0
0
0
328
0.427083
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
0
0
0
0
0
0
0
0
378
0.443662
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
10,642
0.946124
0
0
0
0
0
0
1,354
0.120377
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
2,183
0.93052
0
0
0
0
0
0
1,258
0.536232
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
4,038
0.941039
0
0
0
0
0
0
1,201
0.279888
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
0
0
0
0
0
0
0
0
145
0.097709
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
4,608
0.928097
0
0
0
0
0
0
695
0.13998
e42efd7b2e91e2b6ad55453d791a04774b95fe07
31
py
Python
swarm_tasks/utils/__init__.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
6
2021-03-13T12:54:18.000Z
2022-01-29T12:12:28.000Z
swarm_tasks/utils/__init__.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
null
null
null
swarm_tasks/utils/__init__.py
rmvanarse/swarm_tasks
3335297ba8fcdbff756ae519002bcce919d54a84
[ "MIT" ]
2
2021-08-06T15:02:15.000Z
2022-02-08T12:11:30.000Z
import swarm_tasks.utils.robot
15.5
30
0.870968
0
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
804
0.368132
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
0
0
0
0
982
0.873665
0
0
22
0.019573
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
369
0.241492
0
0
815
0.533377
0
0
425
0.278141
e43577db4ce37b9708732914de0c5a01c24639dc
311
py
Python
ctf/post.py
ntdgy/python_study
c3511846a89ea72418937de4cc3edf1595a46ec5
[ "MIT" ]
null
null
null
ctf/post.py
ntdgy/python_study
c3511846a89ea72418937de4cc3edf1595a46ec5
[ "MIT" ]
null
null
null
ctf/post.py
ntdgy/python_study
c3511846a89ea72418937de4cc3edf1595a46ec5
[ "MIT" ]
null
null
null
import requests def post(): url1 = "http://165.227.106.113/post.php" headers1 = { 'Host': '165.227.106.113' } data = { 'username': 'admin', 'password': '71urlkufpsdnlkadsf' } r1 = requests.post(url=url1, data=data, headers=headers1) print(r1.text) post()
17.277778
61
0.559486
0
0
0
0
0
0
0
0
103
0.33119
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
0
0
0
0
0
0
0
0
57
0.068841
e43608fd33081461199e20cc093779ca67fd8543
132
py
Python
pythonExercicios/ex014.py
Yhago-Carvalho/CursoPython
343ccabb1a61e16c6078de9672c78c56deed2589
[ "MIT" ]
null
null
null
pythonExercicios/ex014.py
Yhago-Carvalho/CursoPython
343ccabb1a61e16c6078de9672c78c56deed2589
[ "MIT" ]
null
null
null
pythonExercicios/ex014.py
Yhago-Carvalho/CursoPython
343ccabb1a61e16c6078de9672c78c56deed2589
[ "MIT" ]
null
null
null
c = float(input('Digite a temperatura em Ceusius: ')) f = (9*c + 160)/5 print(f'A temperatura de {c:.1f}ºC corresponde a {f:.1f}ºF')
44
60
0.659091
0
0
0
0
0
0
0
0
90
0.671642
e436ff03150d44e0196337e442c791322d057adb
95
py
Python
python/p287ex5.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
1
2022-01-23T16:02:14.000Z
2022-01-23T16:02:14.000Z
python/p287ex5.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
5
2022-01-23T00:16:49.000Z
2022-01-30T04:37:45.000Z
python/p287ex5.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
1
2022-01-23T00:03:47.000Z
2022-01-23T00:03:47.000Z
# not yet finished for _ in range(int(input())):print(len(list(set(input().replace("-", "")))))
47.5
76
0.631579
0
0
0
0
0
0
0
0
23
0.242105
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
798
0.880795
0
0
0
0
0
0
187
0.206402
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
0
0
0
0
0
0
0
0
1,470
0.363232
e43dfd916520e80acf562c6592c0e2124190ae44
2,066
py
Python
dibs/src/dibs_link.py
emin63/dibs
419b2fad041aee40647429d3c1faac52c92c25a3
[ "MIT" ]
null
null
null
dibs/src/dibs_link.py
emin63/dibs
419b2fad041aee40647429d3c1faac52c92c25a3
[ "MIT" ]
null
null
null
dibs/src/dibs_link.py
emin63/dibs
419b2fad041aee40647429d3c1faac52c92c25a3
[ "MIT" ]
null
null
null
import os if (os.name == 'nt' or os.name == 'dos'): try: from win32com.shell import shell import pythoncom except Exception, e: print 'WARNING: Received exception ' + `e` + ' in doing import.' print 'WARNING: Unable to import win32com.shell.shell, pythoncom.' ...
34.433333
80
0.57696
733
0.354792
0
0
0
0
0
0
335
0.162149
e43f5553851f44ad5911378e9d31bfdce168b90d
1,207
py
Python
rfid/eggplant/pigeon/migrations/0003_auto_20160328_0809.py
psiyan/rfid
401a093958ffafdcd10259cc9e19b7bd9f0c0e8c
[ "Apache-2.0" ]
null
null
null
rfid/eggplant/pigeon/migrations/0003_auto_20160328_0809.py
psiyan/rfid
401a093958ffafdcd10259cc9e19b7bd9f0c0e8c
[ "Apache-2.0" ]
null
null
null
rfid/eggplant/pigeon/migrations/0003_auto_20160328_0809.py
psiyan/rfid
401a093958ffafdcd10259cc9e19b7bd9f0c0e8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-28 08:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pigeon', '0002_auto_20160327_0723'), ] operations = [ migrations.AlterField(...
29.439024
93
0.584093
1,050
0.869925
0
0
0
0
0
0
240
0.19884
e43fd711dcd86e63949520216ee91e975352e431
10,839
py
Python
esp8266/main.py
0xSebin/SwimTime.github.io
e2d997464d1f4a36783638c81307a775cdfa7fcd
[ "MIT" ]
1
2021-03-28T16:24:23.000Z
2021-03-28T16:24:23.000Z
esp8266/main.py
5ebin-thomas/SwimTime.github.io
e2d997464d1f4a36783638c81307a775cdfa7fcd
[ "MIT" ]
null
null
null
esp8266/main.py
5ebin-thomas/SwimTime.github.io
e2d997464d1f4a36783638c81307a775cdfa7fcd
[ "MIT" ]
2
2018-02-15T17:27:34.000Z
2019-11-20T10:00:43.000Z
""" Group - SwimTime - Swim your way to success """ import ads1x15 import network import time import math import machine from umqtt.simple import MQTTClient import micropython from micropython import const from machine import Pin """ Define constant values """ run = False lapnr = 3 #default lap number temp = ...
28.448819
110
0.658456
0
0
0
0
0
0
0
0
3,863
0.356398
e44176bdde09e0e534875279d12d7f2e7e878bfb
40,102
py
Python
pyboto3/workdocs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/workdocs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/workdocs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
29.143895
310
0.573039
0
0
0
0
0
0
0
0
37,179
0.927111
e4423151d9e155eac596c2c27348cae0215b843a
983
py
Python
binding/python/ddls/feeder/feeder.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
3
2019-01-03T07:34:01.000Z
2020-02-13T19:53:35.000Z
binding/python/ddls/feeder/feeder.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
null
null
null
binding/python/ddls/feeder/feeder.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
1
2020-05-06T11:08:07.000Z
2020-05-06T11:08:07.000Z
""" Feeder for batch production""" from __future__ import absolute_import import ctypes from ddls.base import check_call, LIB, c_str, c_array from ddls.feeder.batch_iterator import BatchIterator class Feeder(object): """ The feeder """ def __init__(self): """ create a new Tensor instance "...
27.305556
84
0.580875
784
0.797558
0
0
0
0
0
0
274
0.278739
e44339ec7d8d98173878c5ddc15f39e511c628ec
258
py
Python
tests/test_example.py
akoul1/mvlearn
177d391bb12c6e94335720d9af3608bd719d8be1
[ "Apache-2.0" ]
null
null
null
tests/test_example.py
akoul1/mvlearn
177d391bb12c6e94335720d9af3608bd719d8be1
[ "Apache-2.0" ]
null
null
null
tests/test_example.py
akoul1/mvlearn
177d391bb12c6e94335720d9af3608bd719d8be1
[ "Apache-2.0" ]
null
null
null
import pytest from mvlearn.example.example import example_function def test_example_function(): """ Test that example function returns correct value. """ assert example_function() == "param" assert example_function("hello") == "hello"
21.5
53
0.713178
0
0
0
0
0
0
0
0
86
0.333333
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
1,948
0.903944
0
0
1,760
0.816705
0
0
543
0.251972
e445d667e0d2518eeb5e300fca8baeaa532b0501
427
py
Python
t_mongo.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
1
2018-03-01T02:42:52.000Z
2018-03-01T02:42:52.000Z
t_mongo.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
null
null
null
t_mongo.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
null
null
null
#!/bin/env python #coding: utf-8 import pymongo print [x for x in range(2)] con = pymongo.MongoClient("localhost", 27017) db = con.mars collection = db.users data = collection.find_one({"username":"hyr"}) print data data['age'] = 225 print collection.update({"_idd":data['_id']}, data) print collection.find_one({"u...
17.08
70
0.683841
0
0
0
0
0
0
0
0
171
0.400468
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
0
0
0
0
0
0
0
0
87
0.117251
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
0
0
0
0
0
0
0
0
625
0.194825
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
4,512
0.798725
0
0
0
0
0
0
777
0.137546
e450e0a78fcbebd70da772f87d262f552594b525
56
py
Python
FrontRunner.py
mmaist/FrontRunner
05095421b69a0a5ccf4ef53ae3dc35b8e8b926b7
[ "MIT" ]
1
2021-02-18T10:41:36.000Z
2021-02-18T10:41:36.000Z
FrontRunner.py
mmaist/FrontRunner
05095421b69a0a5ccf4ef53ae3dc35b8e8b926b7
[ "MIT" ]
null
null
null
FrontRunner.py
mmaist/FrontRunner
05095421b69a0a5ccf4ef53ae3dc35b8e8b926b7
[ "MIT" ]
null
null
null
import time import random import json import requests
8
15
0.821429
0
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
980
0.596833
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
1,276
0.958678
0
0
0
0
0
0
0
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
1,325
0.904437
0
0
0
0
0
0
443
0.302389
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
0
0
0
0
0
0
0
0
313
0.229472
e45875441dea1d18e8ce1f3858f85bde9799b868
281
py
Python
url_shortener/exceptions.py
alena-kono/simple-shortener
d1549b342e190ff70509ce5b442cb31376f2a07a
[ "MIT" ]
null
null
null
url_shortener/exceptions.py
alena-kono/simple-shortener
d1549b342e190ff70509ce5b442cb31376f2a07a
[ "MIT" ]
null
null
null
url_shortener/exceptions.py
alena-kono/simple-shortener
d1549b342e190ff70509ce5b442cb31376f2a07a
[ "MIT" ]
null
null
null
from core.exceptions import BaseProjectException class InvalidUrlError(BaseProjectException): """Exception raised when invalid url is passed.""" pass class MissingPrimaryKeyError(BaseProjectException): """Exception raised when primary key is missing.""" pass
20.071429
55
0.761566
226
0.80427
0
0
0
0
0
0
101
0.359431
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
0
0
0
0
0
0
0
0
564
0.374253
e45a47a7a23107da9b1e4e894dbe004e6d56eaf1
2,933
py
Python
Python Exercises/Exercise 8 - Functions/Functions- Decorators & Generators.py
mrankitgupta/PythonLessons
119efc58518c5b35c6647009c74ff96728f851fa
[ "MIT" ]
null
null
null
Python Exercises/Exercise 8 - Functions/Functions- Decorators & Generators.py
mrankitgupta/PythonLessons
119efc58518c5b35c6647009c74ff96728f851fa
[ "MIT" ]
null
null
null
Python Exercises/Exercise 8 - Functions/Functions- Decorators & Generators.py
mrankitgupta/PythonLessons
119efc58518c5b35c6647009c74ff96728f851fa
[ "MIT" ]
null
null
null
# defining a decorator def hello_decorator(func): # inner1 is a Wrapper function in which the argument is called inner function can access the outer local functions like in this case "func" def inner1(): print("Hello, this is before function execution") # calling the actual function now ins...
30.237113
144
0.691101
0
0
110
0.037504
306
0.10433
0
0
1,616
0.550972
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
15,751
0.638882
0
0
0
0
0
0
12,377
0.502028
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
14,838
0.983561
0
0
2,310
0.153122
0
0
5,958
0.394936
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
8,471
0.908808
0
0
0
0
0
0
675
0.072417
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
0
0
0
0
0
0
0
0
1,193
0.35047
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
0
0
0
0
0
0
0
0
26
0.062954
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
25,106
0.982392
0
0
0
0
0
0
7,704
0.301456
e45d9ac1d7f7347063075b259a658688aa945eb7
415
py
Python
category/urls.py
amin-bahiraei-75/shop_back
afcc5907fe33de2db1615f14df71443d1a35bbd0
[ "MIT" ]
1
2021-12-24T15:20:37.000Z
2021-12-24T15:20:37.000Z
category/urls.py
amin-bahiraei-75/shop_back
afcc5907fe33de2db1615f14df71443d1a35bbd0
[ "MIT" ]
null
null
null
category/urls.py
amin-bahiraei-75/shop_back
afcc5907fe33de2db1615f14df71443d1a35bbd0
[ "MIT" ]
null
null
null
from django.urls import path from category.views import List,Detail,Create,Delete,Update,Search,All urlpatterns = [ path('all',All.as_view()), path('list/<int:pk>',List.as_view()), path('search/<str:pk>',Search.as_view()), path('detail/<int:pk>',Detail.as_view()), path('create', Create.as_view()), ...
34.583333
70
0.653012
0
0
0
0
0
0
0
0
96
0.231325
e460d64b915b9a1607000858e70b226926b3124a
3,488
py
Python
led_motor_switch.py
scarmel/iot-demo
02c6d810098720803196bf32ee1780925011f57c
[ "Apache-2.0" ]
null
null
null
led_motor_switch.py
scarmel/iot-demo
02c6d810098720803196bf32ee1780925011f57c
[ "Apache-2.0" ]
null
null
null
led_motor_switch.py
scarmel/iot-demo
02c6d810098720803196bf32ee1780925011f57c
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------ # Description: This python script will update AWS Thing Shadow for a Device/Thing # ------------------------------------------ # Import package import paho.mqtt.client as mqtt import ssl, time, sys # ======================================================= # Set Following V...
32.90566
119
0.65539
0
0
0
0
0
0
0
0
1,755
0.503154
e462bb80e8e5cfe48f10d58ffcdefb6c7a4fc2ec
680
py
Python
test.py
jsayles/LPD8806
6f13b65ae92f3bd903df684459964b8f5f621942
[ "MIT" ]
null
null
null
test.py
jsayles/LPD8806
6f13b65ae92f3bd903df684459964b8f5f621942
[ "MIT" ]
null
null
null
test.py
jsayles/LPD8806
6f13b65ae92f3bd903df684459964b8f5f621942
[ "MIT" ]
null
null
null
import time from lightpi.hardware import strip, string1, string2 DELAY_SEC = 0.3 # Test the RGB Strip strip.red() time.sleep(DELAY_SEC) strip.green() time.sleep(DELAY_SEC) strip.blue() time.sleep(DELAY_SEC) strip.off() # Test the LED Strings string1.on() time.sleep(DELAY_SEC) string1.off() time.sleep(DELAY_SEC) st...
17.435897
80
0.535294
0
0
0
0
0
0
0
0
218
0.320588
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
2,166
0.689589
0
0
0
0
0
0
1,009
0.321235
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
3,117
0.804387
0
0
580
0.149677
0
0
1,515
0.390968
e466a39aa7123e6924bb036424ddce439a785489
2,572
py
Python
articulation_structure/nodes/process_bags.py
tum-vision/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
3
2017-03-15T16:50:05.000Z
2021-02-28T05:27:24.000Z
articulation_structure/nodes/process_bags.py
AbdelrahmanElsaid/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
null
null
null
articulation_structure/nodes/process_bags.py
AbdelrahmanElsaid/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
7
2015-07-14T14:47:51.000Z
2018-04-02T16:22:23.000Z
#!/usr/bin/python import rospy import rosbag import time def callback(topic, msg): global current_time try: header = getattr(msg, "header") if header.stamp < current_time: print "received old message, skipping '%s'" % topic return except AttributeError: pass global result result[topic] = msg def w...
25.72
84
0.66563
0
0
0
0
0
0
0
0
419
0.162908