hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
eacbb51236c58c13c95ec1f889b714733a550d0d
1,567
py
Python
setup.py
ajaniv/python-basic-utils
d8217e58030f8cc7d6a59a14e438eb700a2492f1
[ "MIT" ]
null
null
null
setup.py
ajaniv/python-basic-utils
d8217e58030f8cc7d6a59a14e438eb700a2492f1
[ "MIT" ]
4
2016-12-23T18:46:54.000Z
2018-08-30T19:31:31.000Z
setup.py
ajaniv/python-core-utils
d8217e58030f8cc7d6a59a14e438eb700a2492f1
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html """ from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_descrip...
29.566038
71
0.623484
eacbdadce424c8674d1462fffb1cb970c545200c
2,506
py
Python
emails/utils.py
jmhubbard/quote_of_the_day_custom_user
27024b2953c1c94fd2970563c3ab31ad444912b6
[ "Unlicense" ]
1
2020-11-25T04:57:16.000Z
2020-11-25T04:57:16.000Z
emails/utils.py
jmhubbard/quote_of_the_day_custom_user
27024b2953c1c94fd2970563c3ab31ad444912b6
[ "Unlicense" ]
null
null
null
emails/utils.py
jmhubbard/quote_of_the_day_custom_user
27024b2953c1c94fd2970563c3ab31ad444912b6
[ "Unlicense" ]
null
null
null
import os from django.core.mail import send_mail from django.urls import reverse from django.contrib.sites.models import Site from django.template.loader import render_to_string
30.560976
83
0.65842
eacc2257b27de8eb2645ec30a826a06701432acc
972
py
Python
addons/meme.py
916253/Kurisu-Reswitched
143c27e42049de8ccc8c5c76f503ea96e89c179c
[ "Apache-2.0" ]
13
2017-08-18T00:25:26.000Z
2020-12-06T00:59:47.000Z
addons/meme.py
916253/Kurisu-Reswitched
143c27e42049de8ccc8c5c76f503ea96e89c179c
[ "Apache-2.0" ]
11
2018-04-13T16:57:13.000Z
2018-12-23T11:52:19.000Z
addons/meme.py
916253/Kurisu-Reswitched
143c27e42049de8ccc8c5c76f503ea96e89c179c
[ "Apache-2.0" ]
21
2017-08-04T16:33:15.000Z
2019-03-11T17:01:48.000Z
import discord import random from discord.ext import commands
29.454545
108
0.622428
eacd933360da63672e942fa0e5cf98b6ea63add5
3,180
py
Python
google/cloud/recommender/v1beta1/recommender-v1beta1-py/google/cloud/recommender/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/recommender/v1beta1/recommender-v1beta1-py/google/cloud/recommender/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/recommender/v1beta1/recommender-v1beta1-py/google/cloud/recommender/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
49.6875
105
0.839308
eacf62541cfea44c5aa6f4ef694688addf50cbbc
232
py
Python
catsndogs/training.py
simonpf/catsndogs
36732a7c2c767b2bb6efa87a849598170c8026e8
[ "MIT" ]
1
2020-12-18T17:19:37.000Z
2020-12-18T17:19:37.000Z
catsndogs/training.py
simonpf/catsndogs
36732a7c2c767b2bb6efa87a849598170c8026e8
[ "MIT" ]
null
null
null
catsndogs/training.py
simonpf/catsndogs
36732a7c2c767b2bb6efa87a849598170c8026e8
[ "MIT" ]
null
null
null
import os import glob from catsndogs.data import get_training_data folder = get_training_data() cats = glob.glob(os.path.join(get_training_data(), "cat", "*.jpg")) dogs = glob.glob(os.path.join(get_training_data(), "dog", "*.jpg"))
33.142857
67
0.737069
eacf68a9a529d44fee079f8928813444594dc1f5
1,893
py
Python
models/ir_module.py
linjiyou/Odoo-UpgreadOnly
7a0ac5ebbdce66f945f129b7227e13c7dd8c8106
[ "Unlicense" ]
2
2022-03-05T10:37:27.000Z
2022-03-05T10:37:42.000Z
models/ir_module.py
linjiyou/Odoo-UpgreadOnly
7a0ac5ebbdce66f945f129b7227e13c7dd8c8106
[ "Unlicense" ]
1
2022-03-05T10:40:21.000Z
2022-03-05T10:40:21.000Z
models/ir_module.py
linjiyou/Odoo-UpgreadOnly
7a0ac5ebbdce66f945f129b7227e13c7dd8c8106
[ "Unlicense" ]
1
2022-03-05T10:37:21.000Z
2022-03-05T10:37:21.000Z
# -*- coding: utf-8 -*- # ======================================== # Author: wjh # Date2021/1/19 # FILE: ir_module # ======================================== from odoo import api, fields, models, _ from odoo.exceptions import UserError ACTION_DICT = { 'view_type': 'form', 'view_mode': 'form', ...
35.055556
146
0.529847
ead03442756f356eeb9a2afa9e9ac38d136649ee
4,978
py
Python
nullunit/MCP.py
pnhowe/MCP-agent
df6a7db3ae1c59907acde35968ba06eda333c19d
[ "Apache-2.0" ]
null
null
null
nullunit/MCP.py
pnhowe/MCP-agent
df6a7db3ae1c59907acde35968ba06eda333c19d
[ "Apache-2.0" ]
null
null
null
nullunit/MCP.py
pnhowe/MCP-agent
df6a7db3ae1c59907acde35968ba06eda333c19d
[ "Apache-2.0" ]
null
null
null
import logging from cinp import client MCP_API_VERSIONS = ( '0.10', '0.11', )
41.831933
196
0.659301
ead2a27fde0318e6470fc8deff78230ddd7bed04
803
py
Python
fitter.py
quantummind/quantum-rcs-boundaries
5c1da3378b72db061960f113dfed77b506f9acae
[ "MIT" ]
null
null
null
fitter.py
quantummind/quantum-rcs-boundaries
5c1da3378b72db061960f113dfed77b506f9acae
[ "MIT" ]
null
null
null
fitter.py
quantummind/quantum-rcs-boundaries
5c1da3378b72db061960f113dfed77b506f9acae
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit from sklearn.metrics import r2_score import datetime # calculate exponential fit for error rate extrapolation # report as annual decay (i.e. error rate decreases by fixed factor every year) errors = pd.read_csv(...
30.884615
102
0.697385
ead38cb655e5734b62dd667db5d5a633324f7aa3
1,546
py
Python
modules/misc.py
OpenXAIProject/dac
652776e21b56dcb68839363bb077d5c5ea28d81e
[ "MIT" ]
17
2020-07-28T18:41:45.000Z
2021-09-19T15:13:39.000Z
modules/misc.py
OpenXAIProject/dac
652776e21b56dcb68839363bb077d5c5ea28d81e
[ "MIT" ]
1
2021-11-15T00:42:48.000Z
2021-11-15T00:42:48.000Z
modules/misc.py
OpenXAIProject/dac
652776e21b56dcb68839363bb077d5c5ea28d81e
[ "MIT" ]
2
2021-09-27T17:31:23.000Z
2021-12-31T02:35:25.000Z
import torch import torch.nn as nn import torch.nn.functional as F
30.92
67
0.596378
ead73abff93c9ef507eee67a64d1ff0edc6aedeb
5,738
py
Python
env/Lib/site-packages/IPython/lib/tests/test_latextools.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2
2022-02-26T11:19:40.000Z
2022-03-28T08:23:25.000Z
env/Lib/site-packages/IPython/lib/tests/test_latextools.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
env/Lib/site-packages/IPython/lib/tests/test_latextools.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
1
2022-03-28T09:19:34.000Z
2022-03-28T09:19:34.000Z
"""Tests for IPython.utils.path.py""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from contextlib import contextmanager from unittest.mock import patch import pytest from IPython.lib import latextools from IPython.testing.decorators import ( onlyif_cmds_ex...
29.73057
97
0.686999
ead810e7aa0a5da8afdac88e5f50187918893a93
736
py
Python
crits/ips/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
738
2015-01-02T12:39:55.000Z
2022-03-23T11:05:51.000Z
crits/ips/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
605
2015-01-01T01:03:39.000Z
2021-11-17T18:51:07.000Z
crits/ips/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
316
2015-01-07T12:35:01.000Z
2022-03-30T04:44:30.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^search/$', views.ip_search, name='crits-ips-views-ip_search'), url(r'^search/(?P<ip_str>\S+)/$', views.ip_search, name='crits-ips-views-ip_search'), url(r'^details/(?P<ip>\S+)/$', views.ip_detail, name='crits-ips-views-ip_detail')...
49.066667
91
0.669837
ead9a8850641b407ccfaaf3b32efd4d1d2d9ec12
2,869
py
Python
notes/reference/moocs/udacity/cs50-introduction-to-computer-science/assignments/pset1/pennies/pennies.py
aav789/study-notes
34eca00cd48869ba7a79c0ea7d8948ee9bde72b9
[ "MIT" ]
43
2015-06-10T14:48:00.000Z
2020-11-29T16:22:28.000Z
notes/reference/moocs/udacity/cs50-introduction-to-computer-science/assignments/pset1/pennies/pennies.py
aav789/study-notes
34eca00cd48869ba7a79c0ea7d8948ee9bde72b9
[ "MIT" ]
1
2021-11-01T12:01:44.000Z
2021-11-01T12:01:44.000Z
notes/reference/moocs/udacity/cs50-introduction-to-computer-science/assignments/pset1/pennies/pennies.py
lextoumbourou/notes
5f94c59a467eb3eb387542bdce398abc0365e6a7
[ "MIT" ]
40
2015-03-02T10:33:59.000Z
2020-05-24T12:17:05.000Z
""" pennies.py Computer Science 50 in Python (Hacker Edition) Problem Set 1 Get num of days in month then works out how many $$ you'd have by end of the month if you received a penny on the first day, two on second, four on third and so on """ def get_input(question): """Get the days input from the user """ ...
27.586538
83
0.580342
ead9fd7d58e52453c9ee8498ed88b548dd31636b
266
py
Python
bcc-apps/python/hello_world.py
Huweicai/ebpf-apps
09847c44e9a823a331df0f30e2b5cf570a3aa29b
[ "Apache-2.0" ]
59
2022-01-17T11:59:14.000Z
2022-03-20T13:22:09.000Z
bcc-apps/python/hello_world.py
Huweicai/ebpf-apps
09847c44e9a823a331df0f30e2b5cf570a3aa29b
[ "Apache-2.0" ]
1
2022-02-20T09:18:25.000Z
2022-02-20T09:18:25.000Z
bcc-apps/python/hello_world.py
Huweicai/ebpf-apps
09847c44e9a823a331df0f30e2b5cf570a3aa29b
[ "Apache-2.0" ]
20
2022-01-19T01:47:29.000Z
2022-03-21T06:29:59.000Z
#!/usr/bin/python3 # # This is a Hello World example of BPF. from bcc import BPF # define BPF program prog = """ int kprobe__sys_clone(void *ctx) { bpf_trace_printk("Hello, World!\\n"); return 0; } """ # load BPF program b = BPF(text=prog) b.trace_print()
14.777778
41
0.665414
eadcff9016e474eb3c8f61f0826e29c9a4160b3b
159
py
Python
accounts/admin.py
kamel2700/Build-a-team-for-Startup
3955eb5a990e27f100981b7186f3593f7b821128
[ "MIT" ]
null
null
null
accounts/admin.py
kamel2700/Build-a-team-for-Startup
3955eb5a990e27f100981b7186f3593f7b821128
[ "MIT" ]
null
null
null
accounts/admin.py
kamel2700/Build-a-team-for-Startup
3955eb5a990e27f100981b7186f3593f7b821128
[ "MIT" ]
null
null
null
from django.contrib import admin from accounts.models import * admin.site.register(UserProfile) admin.site.register(ProjectPage) admin.site.register(Comment)
22.714286
32
0.830189
eadd7e5f3ab2c3c49e8117ccef42a626f10050df
697
py
Python
RandomScripts/FibonacciGenerator.py
AlexGatz/PythonFor100Days
84f7b8687b6e9ef6c5f4c92f525ea6d72cc364f8
[ "MIT" ]
2
2018-06-19T20:22:07.000Z
2018-06-28T23:08:46.000Z
RandomScripts/FibonacciGenerator.py
AlexGatz/PythonFor100Days
84f7b8687b6e9ef6c5f4c92f525ea6d72cc364f8
[ "MIT" ]
null
null
null
RandomScripts/FibonacciGenerator.py
AlexGatz/PythonFor100Days
84f7b8687b6e9ef6c5f4c92f525ea6d72cc364f8
[ "MIT" ]
null
null
null
""" Created By: Alex J. Gatz Date: 06/07/2018 This is some code playing with the usage of a python "Generator" which is really very cool. Another use case I want to play with is properly ordering installation of packages to ensure that if there are dependencies that they are installed in the proper order. Created a...
24.034483
95
0.654232
eaddd0f58ee1e0957f0264ad5e92e223afa6c673
2,753
py
Python
minotaur/_mask.py
trel/minotaur
608f13582e88677fc946c6cb84ec03459f29b4f9
[ "Apache-2.0" ]
null
null
null
minotaur/_mask.py
trel/minotaur
608f13582e88677fc946c6cb84ec03459f29b4f9
[ "Apache-2.0" ]
null
null
null
minotaur/_mask.py
trel/minotaur
608f13582e88677fc946c6cb84ec03459f29b4f9
[ "Apache-2.0" ]
null
null
null
from enum import IntFlag as _IntFlag from . import _inotify __all__ = ('Mask',)
39.328571
76
0.68834
eadee64286add827e7acf16d36f21a8972ee0cfb
4,991
py
Python
24_immune_system_simulator.py
KanegaeGabriel/advent-of-code-2018
b57f21901b731b4ffe6a2bf134d0bda28d326997
[ "MIT" ]
null
null
null
24_immune_system_simulator.py
KanegaeGabriel/advent-of-code-2018
b57f21901b731b4ffe6a2bf134d0bda28d326997
[ "MIT" ]
null
null
null
24_immune_system_simulator.py
KanegaeGabriel/advent-of-code-2018
b57f21901b731b4ffe6a2bf134d0bda28d326997
[ "MIT" ]
null
null
null
################################################ # --- Day 24: Immune System Simulator 20XX --- # ################################################ import AOCUtils ################################################ rawInput = [s for s in AOCUtils.loadInput(24) if s] immuneStart, infectionStart = 0, rawInput.index("Inf...
34.659722
116
0.60569
eadf7939143131af2b0df7b217b4c1285abd158c
2,552
py
Python
tasks.py
Egor4ik325/experiment-bot
5a10b1c4110707b8d6fac4b90d9f594f005566bf
[ "MIT" ]
null
null
null
tasks.py
Egor4ik325/experiment-bot
5a10b1c4110707b8d6fac4b90d9f594f005566bf
[ "MIT" ]
null
null
null
tasks.py
Egor4ik325/experiment-bot
5a10b1c4110707b8d6fac4b90d9f594f005566bf
[ "MIT" ]
null
null
null
from io import BytesIO import requests from celery import Celery from api import send_message, send_photo from imdb2_api import get_movie_by_imdb_id from imdb_api import IMDBAPIClient # celery -A tasks worker --log-level INFO app = Celery( "tasks", backend="redis://localhost:6379/0", broker="redis://localhost:63...
24.304762
88
0.648119
eae24d8c828bb6bb378412becf7ee1a02837535c
1,279
py
Python
Imap_append.py
satheesheppalapelli/imap
064ce69f9fdd63e3f7fbf402ef383c38b31fea14
[ "MIT" ]
null
null
null
Imap_append.py
satheesheppalapelli/imap
064ce69f9fdd63e3f7fbf402ef383c38b31fea14
[ "MIT" ]
null
null
null
Imap_append.py
satheesheppalapelli/imap
064ce69f9fdd63e3f7fbf402ef383c38b31fea14
[ "MIT" ]
null
null
null
import imaplib import email from email import message import time username = 'gmail_id' password = 'gmail_password' new_message = email.message.Message() new_message.set_unixfrom('satheesh') new_message['Subject'] = 'Sample Message' # from gmail id new_message['From'] = 'eppalapellisatheesh1@gmail.com' # to gmail id...
32.794872
115
0.723221
eae3be40aa24ad4b9655afb4fbddb913e8d4cb32
361
py
Python
autoflow/workflow/components/classification/lda.py
auto-flow/autoflow
f5903424ad8694d57741a0bd6dfeaba320ea6517
[ "BSD-3-Clause" ]
49
2020-04-16T11:17:28.000Z
2020-05-06T01:32:44.000Z
autoflow/workflow/components/classification/lda.py
auto-flow/auto-flow
f5903424ad8694d57741a0bd6dfeaba320ea6517
[ "BSD-3-Clause" ]
null
null
null
autoflow/workflow/components/classification/lda.py
auto-flow/auto-flow
f5903424ad8694d57741a0bd6dfeaba320ea6517
[ "BSD-3-Clause" ]
3
2021-04-10T13:58:39.000Z
2022-03-25T08:27:53.000Z
from copy import deepcopy from typing import Dict from autoflow.workflow.components.classification_base import AutoFlowClassificationAlgorithm __all__=["LinearDiscriminantAnalysis"]
25.785714
92
0.833795
eae5610490f4bff538d28053548c7a7377626c1f
4,362
py
Python
wradlib/georef/misc.py
ElmerJeanpierreLopez/wradlib
ae6aa24c68f431b735a742510cea3475fb55059d
[ "MIT" ]
null
null
null
wradlib/georef/misc.py
ElmerJeanpierreLopez/wradlib
ae6aa24c68f431b735a742510cea3475fb55059d
[ "MIT" ]
null
null
null
wradlib/georef/misc.py
ElmerJeanpierreLopez/wradlib
ae6aa24c68f431b735a742510cea3475fb55059d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2011-2019, wradlib developers. # Distributed under the MIT License. See LICENSE.txt for more info. """ Miscellaneous ^^^^^^^^^^^^^ .. autosummary:: :nosignatures: :toctree: generated/ bin_altitude bin_distance site_distance """ import numpy...
31.381295
77
0.631133
eae5f44f40b19ebe3bff78ee768e402bba9911ee
1,860
py
Python
notebooks/models/dnn.py
AFAgarap/dnn-trust
4e7ba13a30e61a12403181b60274289c1f340fc7
[ "Apache-2.0" ]
4
2019-12-31T06:11:41.000Z
2022-02-15T18:54:14.000Z
notebooks/models/dnn.py
AFAgarap/dnn-trust
4e7ba13a30e61a12403181b60274289c1f340fc7
[ "Apache-2.0" ]
2
2022-02-09T23:32:48.000Z
2022-02-10T01:21:09.000Z
notebooks/models/dnn.py
AFAgarap/dnn-trust
4e7ba13a30e61a12403181b60274289c1f340fc7
[ "Apache-2.0" ]
2
2019-09-30T08:46:33.000Z
2020-03-23T13:59:42.000Z
# Copyright 2019-2020 Abien Fred Agarap # # 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 i...
37.959184
83
0.702688
eae66dce66bcef404a3f5bf876e881287f4b4e44
1,985
py
Python
2D CNN/eval2dcnn.py
sarosijbose/A-Fusion-architecture-for-Human-Activity-Recognition
f55ee9a2297001088af2f9feb9cd61a2dcf28203
[ "Apache-2.0" ]
null
null
null
2D CNN/eval2dcnn.py
sarosijbose/A-Fusion-architecture-for-Human-Activity-Recognition
f55ee9a2297001088af2f9feb9cd61a2dcf28203
[ "Apache-2.0" ]
null
null
null
2D CNN/eval2dcnn.py
sarosijbose/A-Fusion-architecture-for-Human-Activity-Recognition
f55ee9a2297001088af2f9feb9cd61a2dcf28203
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import keras from keras.applications.xception import Xception import h5py import json import cv2 import math import logging from tensorflow.keras.preprocessing import image from tensorflow.keras.applications.xception import preprocess_input, decode_pr...
26.118421
88
0.693199
eae8b1571de983e30e5b62cbb49111d3bbe371a5
3,773
py
Python
tests/test_redis.py
arrrlo/python-transfer
653c74e8db8da0ff6ee37dff4534b52b4fc7a29c
[ "MIT" ]
null
null
null
tests/test_redis.py
arrrlo/python-transfer
653c74e8db8da0ff6ee37dff4534b52b4fc7a29c
[ "MIT" ]
null
null
null
tests/test_redis.py
arrrlo/python-transfer
653c74e8db8da0ff6ee37dff4534b52b4fc7a29c
[ "MIT" ]
1
2021-07-30T06:01:20.000Z
2021-07-30T06:01:20.000Z
import os import pytest import fakeredis from db_transfer.adapter_redis import Redis from db_transfer.transfer import Transfer, sent_env def test_redis_string(redis_transfer): redis_transfer['key_1'] = 'value' redis_transfer['key_2:key_3'] = 'value' with redis_transfer: redis_transfer['key_4']...
34.935185
95
0.642725
eaea558a7bb60d7e0462270ff2a5a8f1d8c33727
248
py
Python
tests/python-reference/bool/bool-isinstance.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
25
2015-04-16T04:31:49.000Z
2022-03-10T15:53:28.000Z
tests/python-reference/bool/bool-isinstance.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2018-11-21T22:40:02.000Z
2018-11-26T17:53:11.000Z
tests/python-reference/bool/bool-isinstance.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2021-03-26T03:36:19.000Z
2021-03-26T03:36:19.000Z
___assertIs(isinstance(True, bool), True) ___assertIs(isinstance(False, bool), True) ___assertIs(isinstance(True, int), True) ___assertIs(isinstance(False, int), True) ___assertIs(isinstance(1, bool), False) ___assertIs(isinstance(0, bool), False)
35.428571
42
0.782258
eaea8ef5c89fd0ec4d7cbbc57ba9faabf52111af
2,051
py
Python
sql_controller/crud.py
hp5441/chatbottest
da74a2fb58abbb48903336228055884304e3580b
[ "MIT" ]
null
null
null
sql_controller/crud.py
hp5441/chatbottest
da74a2fb58abbb48903336228055884304e3580b
[ "MIT" ]
null
null
null
sql_controller/crud.py
hp5441/chatbottest
da74a2fb58abbb48903336228055884304e3580b
[ "MIT" ]
null
null
null
from pydantic.types import Json import json from sqlalchemy.orm import Session from sqlalchemy import desc from . import models, schemas
31.553846
117
0.7255
eaeb3cdb20f9f64c42c6a45abbc350367d3fd2fa
3,044
py
Python
consult/api.py
project-sabai/Sabai-Backend
fbc25d6ec774900d2602f6f8cf57544d873f401a
[ "MIT" ]
null
null
null
consult/api.py
project-sabai/Sabai-Backend
fbc25d6ec774900d2602f6f8cf57544d873f401a
[ "MIT" ]
9
2020-06-05T22:10:47.000Z
2021-06-10T18:38:13.000Z
consult/api.py
project-sabai/Sabai-Backend
fbc25d6ec774900d2602f6f8cf57544d873f401a
[ "MIT" ]
1
2019-09-01T04:41:58.000Z
2019-09-01T04:41:58.000Z
from django.contrib.auth.models import User from django.core import serializers from django.core.exceptions import ObjectDoesNotExist from django.db import DataError from django.http import JsonResponse, HttpResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.decorators import api_view fr...
42.277778
101
0.688896
eaed09332cd7612e815a573ad8ab315253289352
11,295
py
Python
tgficbot/main.py
ufoptg/telegram-find-in-channel-bot
853853fb74c9bcaecece3d67b94725378b4c042e
[ "BSD-3-Clause" ]
1
2021-05-11T21:16:32.000Z
2021-05-11T21:16:32.000Z
tgficbot/main.py
ufoptg/telegram-find-in-channel-bot
853853fb74c9bcaecece3d67b94725378b4c042e
[ "BSD-3-Clause" ]
null
null
null
tgficbot/main.py
ufoptg/telegram-find-in-channel-bot
853853fb74c9bcaecece3d67b94725378b4c042e
[ "BSD-3-Clause" ]
null
null
null
from telethon import TelegramClient from telethon.events import NewMessage, CallbackQuery, MessageEdited from telethon.events import StopPropagation from telethon.tl import types, functions from telethon.tl.custom import Button from telethon.errors.rpcerrorlist import ChannelPrivateError import os import re import shl...
31.997167
91
0.66587
eaedb119b1aaac0cbb296953345e2a7e95e0dc48
339
py
Python
onadata/apps/fsforms/rceivers.py
awemulya/fieldsight-kobocat
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/apps/fsforms/rceivers.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/apps/fsforms/rceivers.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
# from django.db.models.signals import post_save # from django.dispatch import receiver # from onadata.apps.logger.models import XForm # # from onadata.apps.fsforms.models import FieldSightXF # # # @receiver(post_save, sender=XForm) # def save_to_fieldsight_form(sender, instance, **kwargs): # FieldSightXF.objects.c...
30.818182
58
0.781711
eaeeb3cbaa78604b0db2b05ad778edd4eb43aa98
2,383
py
Python
highlander/api/controllers/resource.py
StephenTao/stephen
06da7cbc93b40fcd089eeed2972adc1fe6bd3cb9
[ "Apache-2.0" ]
1
2020-01-21T11:31:39.000Z
2020-01-21T11:31:39.000Z
terracotta/api/controllers/resource.py
kvshamray/terracota
8f6419693a2add12c0cd27005e6f58f8295ad7e6
[ "Apache-2.0" ]
null
null
null
terracotta/api/controllers/resource.py
kvshamray/terracota
8f6419693a2add12c0cd27005e6f58f8295ad7e6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2013 - Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
25.084211
77
0.579522
eaf0021867e5f8655350350f668d136cce9a9e15
3,030
py
Python
LoadContracts.py
DZahar0v/DeployCheck
009900657eb4c02927383e50c8afcc3e343b903f
[ "MIT" ]
1
2021-12-24T12:09:06.000Z
2021-12-24T12:09:06.000Z
LoadContracts.py
DZahar0v/DeployCheck
009900657eb4c02927383e50c8afcc3e343b903f
[ "MIT" ]
null
null
null
LoadContracts.py
DZahar0v/DeployCheck
009900657eb4c02927383e50c8afcc3e343b903f
[ "MIT" ]
null
null
null
import json import requests import os import subprocess import platform HTTP = requests.session() if __name__ == "__main__": with open("Config.json") as jsonFile: jsonObject = json.load(jsonFile) jsonFile.close() dir = jsonObject['directory'] addresses = jsonObject['addresses'] ...
27.545455
99
0.560396
eaf2773ac6533f918328896eb209b664483d98ae
1,193
py
Python
oci/config.py
bennyz/oci
d7d0af782542c89b79b2af3858bae394a38aedde
[ "Apache-2.0" ]
null
null
null
oci/config.py
bennyz/oci
d7d0af782542c89b79b2af3858bae394a38aedde
[ "Apache-2.0" ]
null
null
null
oci/config.py
bennyz/oci
d7d0af782542c89b79b2af3858bae394a38aedde
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple import os from six.moves import configparser DEFAULT_CONFIG = { ('jenkins', 'host', 'jenkins.ovirt.org'), ('gerrit', 'host', 'gerrit.ovirt.org')} Jenkins = namedtuple('jenkins', 'host, user_id, api_token') Gerrit = namedtuple('gerrit', 'host') Config = namedtuple('config', '...
25.934783
59
0.605197
eaf350eaef15875b69577a0cc860781804858973
2,148
py
Python
config/site_setting.py
tiantaozhang/site-basics
e3245aeba689765862d399da8d239f6ad0d8f466
[ "MIT" ]
1
2018-03-12T11:47:32.000Z
2018-03-12T11:47:32.000Z
config/site_setting.py
tiantaozhang/ep_site
e3245aeba689765862d399da8d239f6ad0d8f466
[ "MIT" ]
null
null
null
config/site_setting.py
tiantaozhang/ep_site
e3245aeba689765862d399da8d239f6ad0d8f466
[ "MIT" ]
null
null
null
import os from datetime import timedelta UPLOAD_FOLDER = '' ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) MAX_CONTENT_LENGTH = 16 * 1024 * 1024 config = { "development": DevelopmentConfig, "testing": TestingConfig, "production": ProductionConfig, "default": DevelopmentCon...
34.095238
151
0.712756
eaf3f83969eefc20c915399632dfbe8f86dda3dd
8,087
py
Python
atlas/aws_utils/src/test/test_aws_bucket.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/aws_utils/src/test/test_aws_bucket.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/aws_utils/src/test/test_aws_bucket.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
import unittest from mock import Mock from foundations_spec import * from foundations_aws.aws_bucket import AWSBucket
37.267281
145
0.66712
eaf500661c99c51c47381cb5a31580af77de6e77
11,948
py
Python
psychrochartmaker/remote.py
azogue/psychrocam
d18d745362380c911320e3e336596c6d68b822c5
[ "MIT" ]
4
2019-02-22T04:15:33.000Z
2021-11-14T19:53:19.000Z
psychrochartmaker/remote.py
azogue/psychrocam
d18d745362380c911320e3e336596c6d68b822c5
[ "MIT" ]
null
null
null
psychrochartmaker/remote.py
azogue/psychrocam
d18d745362380c911320e3e336596c6d68b822c5
[ "MIT" ]
null
null
null
""" Support for an interface to work with a remote instance of Home Assistant. If a connection error occurs while communicating with the API a HomeAssistantError will be raised. For more details about the Python API, please refer to the documentation at https://home-assistant.io/developers/python_api/ """ import date...
30.953368
78
0.623452
eaf701263125585ba9578e0154162d4b8a98da01
4,305
py
Python
CIM14/ENTSOE/Dynamics/IEC61970/Dynamics/PowerSystemStabilizers/PowerSystemStabilizersPssIEEE2B.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM14/ENTSOE/Dynamics/IEC61970/Dynamics/PowerSystemStabilizers/PowerSystemStabilizersPssIEEE2B.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM14/ENTSOE/Dynamics/IEC61970/Dynamics/PowerSystemStabilizers/PowerSystemStabilizersPssIEEE2B.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # 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, publish...
26.574074
448
0.560046
eaf751a9a0bcab3d9157ea5ae5ba0acfa2a5324c
1,413
py
Python
molecular_computation/procedures/gel_electrophoresis.py
shakedmanes/molecular-computation
80d759c74288f99dfb7c3dab2a5d1e88b17e3171
[ "MIT" ]
null
null
null
molecular_computation/procedures/gel_electrophoresis.py
shakedmanes/molecular-computation
80d759c74288f99dfb7c3dab2a5d1e88b17e3171
[ "MIT" ]
null
null
null
molecular_computation/procedures/gel_electrophoresis.py
shakedmanes/molecular-computation
80d759c74288f99dfb7c3dab2a5d1e88b17e3171
[ "MIT" ]
null
null
null
from molecules.dna_molecule import DNAMolecule from molecules.dna_sequence import DNASequence if __name__ == '__main__': dna_sequences = [ DNASequence.create_random_sequence(size=20), DNASequence.create_random_sequence(size=10), DNASequence.create_random_sequence(size=30), DNASequ...
28.836735
83
0.690729
eaf89a6ffff99ef2e6291f264aa42721610c16ea
153
py
Python
stocks/__init__.py
jianyex/stocks
124ccbda452af2e2bebc76d6ee95997c0d2417f4
[ "BSD-3-Clause" ]
null
null
null
stocks/__init__.py
jianyex/stocks
124ccbda452af2e2bebc76d6ee95997c0d2417f4
[ "BSD-3-Clause" ]
null
null
null
stocks/__init__.py
jianyex/stocks
124ccbda452af2e2bebc76d6ee95997c0d2417f4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for stocks.""" __author__ = """Jianye Xu""" __email__ = 'jianye.xu.stats@gmail.com' __version__ = '0.1.0'
19.125
39
0.627451
eaf8d812f3b4c657aa0c2b65e78b3b540116a7eb
1,147
py
Python
2021/11/__init__.py
cascandaliato/Advent-of-Code
37d96cd6b02cfe1a1f78f83c9c01058ce8a07448
[ "MIT" ]
null
null
null
2021/11/__init__.py
cascandaliato/Advent-of-Code
37d96cd6b02cfe1a1f78f83c9c01058ce8a07448
[ "MIT" ]
11
2020-12-22T09:03:51.000Z
2021-12-03T19:56:08.000Z
2021/11/__init__.py
cascandaliato/advent-of-code
251ebe7ea122582e4349d0c7f5ce6565c0410f8e
[ "MIT" ]
null
null
null
from itertools import product from pyutils import *
22.490196
128
0.517001
eaf917474f89876f0657f27beb9e7f2cba71b85e
1,462
py
Python
test/test_02_expressions.py
jmeppley/py-metagenomics
0dbab073cb7e52c4826054e40eb802c9e0298e9a
[ "MIT" ]
7
2015-05-14T09:36:36.000Z
2022-03-30T14:32:21.000Z
test/test_02_expressions.py
jmeppley/py-metagenomics
0dbab073cb7e52c4826054e40eb802c9e0298e9a
[ "MIT" ]
1
2015-07-14T11:47:25.000Z
2015-07-17T01:45:26.000Z
test/test_02_expressions.py
jmeppley/py-metagenomics
0dbab073cb7e52c4826054e40eb802c9e0298e9a
[ "MIT" ]
7
2015-07-25T22:29:29.000Z
2022-03-01T21:26:14.000Z
from edl.expressions import *
28.666667
71
0.579343
eaf9a002328e5d19246bf0ad315b485aec268e7a
2,969
py
Python
.leetcode/230.kth-smallest-element-in-a-bst.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/230.kth-smallest-element-in-a-bst.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/230.kth-smallest-element-in-a-bst.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=230 lang=python3 # # [230] Kth Smallest Element in a BST # # https://leetcode.com/problems/kth-smallest-element-in-a-bst/description/ # # algorithms # Medium (63.45%) # Likes: 4133 # Dislikes: 90 # Total Accepted: 558.7K # Total Submissions: 876.8K # Testcase Example: '[3,1,4,null,2]\n1' # ...
23.377953
78
0.54227
eaf9b9336a7a5da3543fc406dd64b5100923c1bf
592
py
Python
python/solutions/kyu6_replace_with_alphabet_position.py
StefanAvra/codewars-katas
a2b11453eb6fe28ff56ffdcca956d8b9493dd879
[ "MIT" ]
null
null
null
python/solutions/kyu6_replace_with_alphabet_position.py
StefanAvra/codewars-katas
a2b11453eb6fe28ff56ffdcca956d8b9493dd879
[ "MIT" ]
null
null
null
python/solutions/kyu6_replace_with_alphabet_position.py
StefanAvra/codewars-katas
a2b11453eb6fe28ff56ffdcca956d8b9493dd879
[ "MIT" ]
null
null
null
""" Replace With Alphabet Position Welcome. In this kata you are required to, given a string, replace every letter with its position in the alphabet. If anything in the text isn't a letter, ignore it and don't return it. "a" = 1, "b" = 2, etc. Example alphabet_position("The sunset sets at twelve o' clock.") Should...
26.909091
105
0.709459
eafbcaee9d308410a952a5c6a4a7a59550910130
1,463
py
Python
pykafka/test/utils.py
Instamojo/pykafka
c8c3e445773beefc52039adf708295ed2b8394d2
[ "Apache-2.0" ]
1,174
2015-01-26T22:11:37.000Z
2022-03-22T14:42:18.000Z
pykafka/test/utils.py
Instamojo/pykafka
c8c3e445773beefc52039adf708295ed2b8394d2
[ "Apache-2.0" ]
845
2015-01-26T16:02:35.000Z
2021-03-23T11:07:12.000Z
pykafka/test/utils.py
Instamojo/pykafka
c8c3e445773beefc52039adf708295ed2b8394d2
[ "Apache-2.0" ]
295
2015-02-28T10:44:08.000Z
2021-12-04T23:05:18.000Z
import time import os from pykafka.test.kafka_instance import KafkaInstance, KafkaConnection def get_cluster(): """Gets a Kafka cluster for testing, using one already running is possible. An already-running cluster is determined by environment variables: BROKERS, ZOOKEEPER, KAFKA_BIN. This is used prim...
33.25
104
0.632946
eafd1adf2d0fafadc3e2004933f7da698a51fc56
2,107
py
Python
vca_cli/print_utils.py
KohliRocks/vca-cli-iot
22d32c287ab04214c3f273937628092623fbb7fe
[ "Apache-2.0" ]
null
null
null
vca_cli/print_utils.py
KohliRocks/vca-cli-iot
22d32c287ab04214c3f273937628092623fbb7fe
[ "Apache-2.0" ]
null
null
null
vca_cli/print_utils.py
KohliRocks/vca-cli-iot
22d32c287ab04214c3f273937628092623fbb7fe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 VMware. All rights reserved import prettytable import six import sys from oslo_utils import encodeutils
31.447761
77
0.572378
eafd2d7bd898465467b4a666339f624043e204d4
707
py
Python
references/web/test.py
flystarhe/cvtk
bcfea4c5b13269bdd63899020b9c70f2eb1f5b07
[ "MIT" ]
1
2021-06-29T07:12:45.000Z
2021-06-29T07:12:45.000Z
references/web/test.py
flystarhe/cvtk
bcfea4c5b13269bdd63899020b9c70f2eb1f5b07
[ "MIT" ]
null
null
null
references/web/test.py
flystarhe/cvtk
bcfea4c5b13269bdd63899020b9c70f2eb1f5b07
[ "MIT" ]
null
null
null
# python test.py 500 /workspace/images/test.png 7000 import sys import time import requests args = sys.argv[1:] command = " ".join(args) times = int(args[0]) data = {"image": [args[1]] * 2} url = f"http://localhost:{args[2]}/predict" headers = {"content-type": "application/x-www-form-urlencoded"} oks = 0 start_ti...
19.108108
63
0.636492
eafd8eec654916b6469e65277d4f8eb7cf7b961d
1,048
py
Python
api/app/core/config.py
logan-connolly/aita
7782910fd9c5161c7af489a288ee9d52aca91421
[ "MIT" ]
4
2020-10-31T15:57:06.000Z
2022-02-17T02:57:15.000Z
api/app/core/config.py
logan-connolly/aita
7782910fd9c5161c7af489a288ee9d52aca91421
[ "MIT" ]
9
2020-05-06T16:11:45.000Z
2021-12-26T22:58:17.000Z
api/app/core/config.py
logan-connolly/aita
7782910fd9c5161c7af489a288ee9d52aca91421
[ "MIT" ]
1
2021-12-01T11:43:04.000Z
2021-12-01T11:43:04.000Z
from typing import List from pydantic import BaseSettings settings = Settings()
18.068966
72
0.627863
eafe701e57f31e67fd3d9f0fc310e5ec69bd74c7
11,756
py
Python
src/sniffmypacketsv2/transforms/common/protocols/sip.py
SneakersInc/sniffmypacketsv2
55d8ff70eedb4dd948351425c25a1e904ea6d50e
[ "Apache-2.0" ]
11
2015-01-01T19:44:04.000Z
2020-03-26T07:30:26.000Z
src/sniffmypacketsv2/transforms/common/protocols/sip.py
SneakersInc/sniffmypacketsv2
55d8ff70eedb4dd948351425c25a1e904ea6d50e
[ "Apache-2.0" ]
8
2015-01-01T22:45:59.000Z
2015-12-12T10:37:50.000Z
src/sniffmypacketsv2/transforms/common/protocols/sip.py
SneakersInc/sniffmypacketsv2
55d8ff70eedb4dd948351425c25a1e904ea6d50e
[ "Apache-2.0" ]
3
2017-06-04T05:18:24.000Z
2020-03-26T07:30:27.000Z
import base64 from scapy.layers.inet import * from scapy.layers.dns import * import dissector bind_layers(TCP, SIP, sport=5060) bind_layers(TCP, SIP, dport=5060) bind_layers(UDP, SIP, sport=5060) bind_layers(UDP, SIP, dport=5060)
40.678201
76
0.451004
eaff872f4834bf2846f82c2e9bc383d651070c30
129
py
Python
starfish/image/_segmentation/__init__.py
ttung/starfish
1bd8abf55a335620e4b20abb041f478334714081
[ "MIT" ]
null
null
null
starfish/image/_segmentation/__init__.py
ttung/starfish
1bd8abf55a335620e4b20abb041f478334714081
[ "MIT" ]
null
null
null
starfish/image/_segmentation/__init__.py
ttung/starfish
1bd8abf55a335620e4b20abb041f478334714081
[ "MIT" ]
null
null
null
from starfish.pipeline import import_all_submodules from ._base import Segmentation import_all_submodules(__file__, __package__)
32.25
51
0.883721
d800cdce3e86b3fb748785cf5b0ccbdfe3714b0c
19,335
py
Python
scanpy/tools/paga.py
LuckyMD/scanpy
4b38130cb7a76f284058fb788c8279999389e3c5
[ "BSD-3-Clause" ]
null
null
null
scanpy/tools/paga.py
LuckyMD/scanpy
4b38130cb7a76f284058fb788c8279999389e3c5
[ "BSD-3-Clause" ]
null
null
null
scanpy/tools/paga.py
LuckyMD/scanpy
4b38130cb7a76f284058fb788c8279999389e3c5
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple import numpy as np import scipy as sp from scipy.sparse.csgraph import minimum_spanning_tree from .. import logging as logg from ..neighbors import Neighbors from .. import utils from .. import settings def paga( adata, groups='louvain', use_rna_velocity=Fals...
46.145585
121
0.617947
d802143b8c4b9b5183911d466a1c2053a64055aa
650
py
Python
sporting_webapp/nfl_package/migrations/0002_auto_20190807_1445.py
plopez9/chipy_sports_app_2.0
39b337238d0a55bfe842cb60ea9fe4724426fbf0
[ "MIT" ]
null
null
null
sporting_webapp/nfl_package/migrations/0002_auto_20190807_1445.py
plopez9/chipy_sports_app_2.0
39b337238d0a55bfe842cb60ea9fe4724426fbf0
[ "MIT" ]
null
null
null
sporting_webapp/nfl_package/migrations/0002_auto_20190807_1445.py
plopez9/chipy_sports_app_2.0
39b337238d0a55bfe842cb60ea9fe4724426fbf0
[ "MIT" ]
1
2019-10-08T17:39:08.000Z
2019-10-08T17:39:08.000Z
# Generated by Django 2.1.7 on 2019-08-07 19:45 from django.db import migrations
22.413793
47
0.543077
d802630c9349918a8c83b164182db24aea187fcd
982
py
Python
tests/test_player_PlayerList.py
basbloemsaat/dartsense
3114a3b73861baf9cf0019a9a2454d7f38e67af1
[ "MIT" ]
null
null
null
tests/test_player_PlayerList.py
basbloemsaat/dartsense
3114a3b73861baf9cf0019a9a2454d7f38e67af1
[ "MIT" ]
5
2018-03-16T09:59:05.000Z
2019-02-10T21:55:03.000Z
tests/test_player_PlayerList.py
basbloemsaat/dartsense
3114a3b73861baf9cf0019a9a2454d7f38e67af1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import pytest import sys sys.path.append(os.path.join(os.path.dirname(__file__), "../lib")) import dartsense.player player_list = None
22.318182
69
0.707739
d802a8d11f27acf3f75ca9383d9b728785c704c9
937
py
Python
tests/test_edit_first_contact.py
ksemish/KseniyaRepository
80f476c12c5d5412eed31f243fe4de84982eee46
[ "Apache-2.0" ]
null
null
null
tests/test_edit_first_contact.py
ksemish/KseniyaRepository
80f476c12c5d5412eed31f243fe4de84982eee46
[ "Apache-2.0" ]
null
null
null
tests/test_edit_first_contact.py
ksemish/KseniyaRepository
80f476c12c5d5412eed31f243fe4de84982eee46
[ "Apache-2.0" ]
null
null
null
from models.contact import Contacts import random
55.117647
142
0.766275
d802ce41072a86678bbadc7fc6f1d1a6a8d547c5
1,875
py
Python
examples/pcd8544_pillow_demo.py
sommersoft/Adafruit_CircuitPython_PCD8544
2ef409f9454461494a997d994c28d62735c5da88
[ "MIT" ]
null
null
null
examples/pcd8544_pillow_demo.py
sommersoft/Adafruit_CircuitPython_PCD8544
2ef409f9454461494a997d994c28d62735c5da88
[ "MIT" ]
null
null
null
examples/pcd8544_pillow_demo.py
sommersoft/Adafruit_CircuitPython_PCD8544
2ef409f9454461494a997d994c28d62735c5da88
[ "MIT" ]
null
null
null
""" This demo will fill the screen with white, draw a black box on top and then print Hello World! in the center of the display This example is for use on (Linux) computers that are using CPython with Adafruit Blinka to support CircuitPython libraries. CircuitPython does not support PIL/pillow (python imaging library)...
25.337838
86
0.737067
d80324dc01f020d815e622c10604165f52290b3e
75
py
Python
dummypy/packageA/__init__.py
brett-hosking/dummypy
07931382d55ffb9875fb0edab01ff5b33a6fa8a3
[ "MIT" ]
null
null
null
dummypy/packageA/__init__.py
brett-hosking/dummypy
07931382d55ffb9875fb0edab01ff5b33a6fa8a3
[ "MIT" ]
null
null
null
dummypy/packageA/__init__.py
brett-hosking/dummypy
07931382d55ffb9875fb0edab01ff5b33a6fa8a3
[ "MIT" ]
null
null
null
# Nested package modules from . import Atest __packageAname__ = 'packageA'
18.75
29
0.786667
d803412163b0b8022ac01ffa7da41a8470d148ab
1,205
py
Python
src/waldur_core/media/tests/test_utils.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_core/media/tests/test_utils.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_core/media/tests/test_utils.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
from freezegun import freeze_time from rest_framework import test from rest_framework.exceptions import ValidationError from waldur_core.core.tests.helpers import override_waldur_core_settings from waldur_core.media.utils import decode_attachment_token, encode_attachment_token from waldur_core.structure.tests.factorie...
43.035714
87
0.760166
d803e1c9556b3090e13cb8ecebad7e5377228653
19,620
py
Python
main.py
Salonee-Jain/Eden
5283118f75df433b40c649b0dabcd45b84d7ed70
[ "MIT" ]
9
2021-09-11T16:04:43.000Z
2022-02-19T06:30:07.000Z
main.py
Salonee-Jain/Eden
5283118f75df433b40c649b0dabcd45b84d7ed70
[ "MIT" ]
null
null
null
main.py
Salonee-Jain/Eden
5283118f75df433b40c649b0dabcd45b84d7ed70
[ "MIT" ]
3
2021-09-04T19:30:30.000Z
2022-01-07T17:25:08.000Z
from pygame import mixer import speech_recognition as sr import pyttsx3 import pyjokes import boto3 import pyglet import winsound import datetime import pywhatkit import datetime import time import os from PIL import Image import random import wikipedia import smtplib, ssl from mutagen.mp3 import MP3 import requests, ...
40.287474
200
0.528746
d80792f38036130fad8a47258da22e135acbe1f7
2,993
py
Python
tests/test_renderers/test_fixtures_docutils.py
ExecutableBookProject/myst_parser
4bf38aca204b9643ca5dc84b30bdcad209519428
[ "MIT" ]
9
2020-03-10T15:52:20.000Z
2020-04-15T20:55:26.000Z
tests/test_renderers/test_fixtures_docutils.py
ExecutableBookProject/myst_parser
4bf38aca204b9643ca5dc84b30bdcad209519428
[ "MIT" ]
58
2020-02-13T06:29:43.000Z
2020-02-23T18:59:54.000Z
tests/test_renderers/test_fixtures_docutils.py
ExecutableBookProject/MyST-Parser
75ef9cb7b65c98d969724fc6c096e8d6209c5ea0
[ "MIT" ]
6
2020-02-28T02:58:17.000Z
2020-04-22T22:26:56.000Z
"""Test fixture files, using the ``DocutilsRenderer``. Note, the output AST is before any transforms are applied. """ import shlex from io import StringIO from pathlib import Path import pytest from docutils.core import Publisher, publish_doctree from myst_parser.parsers.docutils_ import Parser FIXTURE_PATH = Path(...
30.85567
86
0.718009
d8087c350c4738b46d10a0e8fed4bf37a3d77723
6,095
py
Python
readthedocs/settings/environment.py
optimizely/readthedocs.org
d63aa9ffeea33e4ce6e7739767ee4378dee971b8
[ "MIT" ]
null
null
null
readthedocs/settings/environment.py
optimizely/readthedocs.org
d63aa9ffeea33e4ce6e7739767ee4378dee971b8
[ "MIT" ]
null
null
null
readthedocs/settings/environment.py
optimizely/readthedocs.org
d63aa9ffeea33e4ce6e7739767ee4378dee971b8
[ "MIT" ]
1
2018-10-12T22:15:39.000Z
2018-10-12T22:15:39.000Z
import os import json from .base import CommunityBaseSettings EnvironmentSettings.load_settings(__name__) if not os.environ.get('DJANGO_SETTINGS_SKIP_LOCAL', False): try: # pylint: disable=unused-wildcard-import from .local_settings import * # noqa except ImportError: pass
31.096939
80
0.528466
d80aded943ac31da1cf1d442bfacdc0c574d184b
583
py
Python
jobs/tests.py
dukedbgroup/BayesianTuner
e74dc61c846c3beab95ca2140c1aab1d5179e208
[ "Apache-2.0" ]
13
2018-03-10T23:32:16.000Z
2019-09-10T14:20:46.000Z
jobs/tests.py
dukedbgroup/BayesianTuner
e74dc61c846c3beab95ca2140c1aab1d5179e208
[ "Apache-2.0" ]
null
null
null
jobs/tests.py
dukedbgroup/BayesianTuner
e74dc61c846c3beab95ca2140c1aab1d5179e208
[ "Apache-2.0" ]
1
2018-12-12T22:17:51.000Z
2018-12-12T22:17:51.000Z
from unittest import TestCase from logger import get_logger from config import get_config from .runner import JobsRunner logger = get_logger(__name__, log_level=("TEST", "LOGLEVEL")) config = get_config()
25.347826
88
0.703259
d80bf67fed1d7c15d54f1dcaa8d2e1e4a8afca9b
220
py
Python
wekaScript.py
sebas1208/sentiment-analizer-bi
188383366373f6d20e04978cb9db520b367bde0a
[ "MIT" ]
null
null
null
wekaScript.py
sebas1208/sentiment-analizer-bi
188383366373f6d20e04978cb9db520b367bde0a
[ "MIT" ]
null
null
null
wekaScript.py
sebas1208/sentiment-analizer-bi
188383366373f6d20e04978cb9db520b367bde0a
[ "MIT" ]
null
null
null
import weka.core.jvm as jvm jvm.start() from weka.core.converters import Loader, Saver loader = Loader(classname="weka.core.converters.ArffLoader") data = loader.load_file("./Listas/train.arff") print data jvm.stop()
20
60
0.763636
d80ea4320731a7f5c8a15b5c673de800b94a36ed
463
py
Python
underscore/declaration.py
doboy/Underscore
d98273db3144cda79191d2c90f45d81b6d700b1f
[ "MIT" ]
7
2016-09-23T00:44:05.000Z
2021-10-04T21:19:12.000Z
underscore/declaration.py
jameswu1991/Underscore
d98273db3144cda79191d2c90f45d81b6d700b1f
[ "MIT" ]
1
2016-09-23T00:45:05.000Z
2019-02-16T19:05:37.000Z
underscore/declaration.py
jameswu1991/Underscore
d98273db3144cda79191d2c90f45d81b6d700b1f
[ "MIT" ]
3
2016-09-23T01:13:15.000Z
2018-07-20T21:22:17.000Z
# Copyright (c) 2013 Huan Do, http://huan.do
23.15
47
0.593952
d80fc11903913cd937faa887dc7d412f894ad87e
2,567
py
Python
mlcomp/contrib/model/video/resnext3d/r2plus1_util.py
megachester/mlcomp
8d30ba0a52e225144533e68295b71acb49e3c68a
[ "Apache-2.0" ]
166
2019-08-21T20:00:04.000Z
2020-05-14T16:13:57.000Z
mlcomp/contrib/model/video/resnext3d/r2plus1_util.py
megachester/mlcomp
8d30ba0a52e225144533e68295b71acb49e3c68a
[ "Apache-2.0" ]
14
2019-08-22T07:58:39.000Z
2020-04-13T13:59:07.000Z
mlcomp/contrib/model/video/resnext3d/r2plus1_util.py
megachester/mlcomp
8d30ba0a52e225144533e68295b71acb49e3c68a
[ "Apache-2.0" ]
22
2019-08-23T12:37:20.000Z
2020-04-20T10:06:29.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import torch.nn as nn def r2plus1_unit( dim_in, dim_out, temporal_stride, ...
34.226667
80
0.61979
d810e9e8b14b2edde01e890b4f74510b0b268466
312
py
Python
camara_con_kivy.py
Rocha117/Laboratorio_07
1d1b646f9665523962a7d8addf16b056f437bc27
[ "MIT" ]
null
null
null
camara_con_kivy.py
Rocha117/Laboratorio_07
1d1b646f9665523962a7d8addf16b056f437bc27
[ "MIT" ]
null
null
null
camara_con_kivy.py
Rocha117/Laboratorio_07
1d1b646f9665523962a7d8addf16b056f437bc27
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.uix.boxlayout import BoxLayout if __name__ == '__main__': CamaraApp().run()
22.285714
41
0.634615
d811f23940af1b60e6df0cb986906b761af79201
1,685
py
Python
test/test_record_count_use_case_interactor.py
takeoverjp/tsdraw
71e10082696df857c6fcd6fed41a434e33b8645e
[ "MIT" ]
null
null
null
test/test_record_count_use_case_interactor.py
takeoverjp/tsdraw
71e10082696df857c6fcd6fed41a434e33b8645e
[ "MIT" ]
null
null
null
test/test_record_count_use_case_interactor.py
takeoverjp/tsdraw
71e10082696df857c6fcd6fed41a434e33b8645e
[ "MIT" ]
null
null
null
import unittest from datetime import datetime, timezone from src.entity.count_entity import CountEntity from src.interface_adapter.in_memory_count_repository import \ InMemoryCountRepository from src.use_case.record_count_input_data import RecordCountInputData from src.use_case.record_count_use_case_interactor imp...
31.792453
69
0.678932
d81352042fe28274d48c972342192e4cd5a7987b
120
py
Python
net/gan/loss/__init__.py
bacTlink/caffe_tmpname
14f713ec782ec9d6757a55fa1bda0151fe6c0e33
[ "Intel", "BSD-2-Clause" ]
2
2018-02-02T07:35:08.000Z
2018-02-05T09:25:10.000Z
net/gan/loss/__init__.py
bacTlink/caffe_tmpname
14f713ec782ec9d6757a55fa1bda0151fe6c0e33
[ "Intel", "BSD-2-Clause" ]
null
null
null
net/gan/loss/__init__.py
bacTlink/caffe_tmpname
14f713ec782ec9d6757a55fa1bda0151fe6c0e33
[ "Intel", "BSD-2-Clause" ]
null
null
null
all = ['GeneratorLoss', 'ClassfierLoss'] from generator import GeneratorLoss from classfier import ClassfierLoss
24
35
0.775
d813cd01f5b9a14e68558e232020bb8ed1c59d28
972
py
Python
Curso-em-video-Python3-mundo2/ex070.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
Curso-em-video-Python3-mundo2/ex070.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
Curso-em-video-Python3-mundo2/ex070.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
line = '-' * 30 print(line) print('{:^30}'.format('LOJA SUPER BARATO')) print(line) total = more1000 = 0 productMaisBarato = '' priceMaisBarato = 0 primeiraVez = True while True: name = str(input('Nome do produto: ')) price = float(input('Preo: R$')) moreProducts = ' ' while moreProducts not in 'SN': ...
30.375
92
0.623457
d813fe7e8c53a4b341a427a7aa1d706dae039f16
310
py
Python
dockernd/python/ND/NostalgiaDrive/setup.py
mchellmer/DockerMongoFceuxPython
f7db8fc976d76046ca03f707f9845d348f9be651
[ "MIT" ]
null
null
null
dockernd/python/ND/NostalgiaDrive/setup.py
mchellmer/DockerMongoFceuxPython
f7db8fc976d76046ca03f707f9845d348f9be651
[ "MIT" ]
null
null
null
dockernd/python/ND/NostalgiaDrive/setup.py
mchellmer/DockerMongoFceuxPython
f7db8fc976d76046ca03f707f9845d348f9be651
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='nd', py_modules=['nd'], version='1.0.0', description='user friendly emulation game selection', license="MIT", author='Mark Hellmer', author_email='mchellmer@gmail.com', install_requires=['tkinter', 'nltk', 'pymongo'], scripts=[] )
22.142857
57
0.645161
d8146baed580c42319f8435585246c29dbec5fcd
703
py
Python
migrations/versions/f83defd9c5ed_add_class_of_delete.py
Nyirabazungu/blog-app
5461027a5d63445d2c3bf1908f119981bc1c49bf
[ "MIT" ]
null
null
null
migrations/versions/f83defd9c5ed_add_class_of_delete.py
Nyirabazungu/blog-app
5461027a5d63445d2c3bf1908f119981bc1c49bf
[ "MIT" ]
null
null
null
migrations/versions/f83defd9c5ed_add_class_of_delete.py
Nyirabazungu/blog-app
5461027a5d63445d2c3bf1908f119981bc1c49bf
[ "MIT" ]
null
null
null
"""add class of delete Revision ID: f83defd9c5ed Revises: 1060ee5817c7 Create Date: 2019-03-04 17:50:54.573744 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f83defd9c5ed' down_revision = '1060ee5817c7' branch_labels = None depends_on = None
24.241379
115
0.704125
d815e5a4deb18f61e7e650ac8ee688311cb0ebfc
57,497
py
Python
BioSTEAM 2.x.x/biorefineries/oilcane/_uncertainty_plots.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-03T21:04:41.000Z
2020-01-09T01:15:48.000Z
BioSTEAM 2.x.x/biorefineries/oilcane/_uncertainty_plots.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
6
2020-01-03T21:31:27.000Z
2020-02-28T13:53:56.000Z
BioSTEAM 2.x.x/biorefineries/oilcane/_uncertainty_plots.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-07T14:04:06.000Z
2020-01-08T23:05:25.000Z
# -*- coding: utf-8 -*- """ Created on Fri Nov 5 01:34:00 2021 @author: yrc2 """ import biosteam as bst import biorefineries.oilcane as oc from biosteam.utils import CABBI_colors, colors from thermosteam.utils import set_figure_size, set_font, roundsigfigs from thermosteam.units_of_measure import format_units from co...
40.778014
196
0.569404
d81681f0c3e8533953487db033ce07fd94815535
103
py
Python
custom_components/yoosee/const.py
shaonianzhentan/ha_yoosee_camera
63e75b1285c03da75f98264dfbab01280b20f3c0
[ "MIT" ]
null
null
null
custom_components/yoosee/const.py
shaonianzhentan/ha_yoosee_camera
63e75b1285c03da75f98264dfbab01280b20f3c0
[ "MIT" ]
null
null
null
custom_components/yoosee/const.py
shaonianzhentan/ha_yoosee_camera
63e75b1285c03da75f98264dfbab01280b20f3c0
[ "MIT" ]
null
null
null
DOMAIN = "yoosee" PLATFORMS = ["camera"] DEFAULT_NAME = "Yoosee" VERSION = "1.1" SERVICE_PTZ = 'ptz'
20.6
26
0.68932
d81683ba8142b60ee8046ff652ca3747377a9744
4,729
py
Python
generate_data.py
StanfordASL/Adaptive-Control-Oriented-Meta-Learning
093d2764314bbfccc3a804fb9e737a10d08a1eb5
[ "MIT" ]
24
2021-03-14T19:00:49.000Z
2022-03-23T14:31:33.000Z
generate_data.py
wuyou33/Adaptive-Control-Oriented-Meta-Learning
093d2764314bbfccc3a804fb9e737a10d08a1eb5
[ "MIT" ]
1
2021-06-07T09:57:26.000Z
2021-06-12T19:57:00.000Z
generate_data.py
wuyou33/Adaptive-Control-Oriented-Meta-Learning
093d2764314bbfccc3a804fb9e737a10d08a1eb5
[ "MIT" ]
3
2021-06-14T09:05:27.000Z
2021-12-22T19:31:15.000Z
""" TODO description. Author: Spencer M. Richards Autonomous Systems Lab (ASL), Stanford (GitHub: spenrich) """ if __name__ == "__main__": import pickle import jax import jax.numpy as jnp from jax.experimental.ode import odeint from utils import spline, random_ragged_spline fro...
33.06993
76
0.534574
d816ebec6670bc97c3cfcc6d198d67b571f9d900
674
py
Python
backend/model/views.py
princesinghtomar/BTP
44bf84db09637453b1e107bfdd305a47610b81f2
[ "MIT" ]
null
null
null
backend/model/views.py
princesinghtomar/BTP
44bf84db09637453b1e107bfdd305a47610b81f2
[ "MIT" ]
null
null
null
backend/model/views.py
princesinghtomar/BTP
44bf84db09637453b1e107bfdd305a47610b81f2
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt from rest_framework.parsers import JSONParser from django.http.response import JsonResponse import base64 from numpy import random # Create your views here.
35.473684
90
0.675074
d8189813d74db9ea651f07f400203fcf191b7cd7
1,024
py
Python
scvi/data/anndata/_constants.py
Semih-Kurt/scvi-tools
1bea2af8cc99e11d55a6925f09d978de5f6994fb
[ "BSD-3-Clause" ]
null
null
null
scvi/data/anndata/_constants.py
Semih-Kurt/scvi-tools
1bea2af8cc99e11d55a6925f09d978de5f6994fb
[ "BSD-3-Clause" ]
null
null
null
scvi/data/anndata/_constants.py
Semih-Kurt/scvi-tools
1bea2af8cc99e11d55a6925f09d978de5f6994fb
[ "BSD-3-Clause" ]
null
null
null
from typing import NamedTuple # scVI Manager Store Constants # ---------------------------- # Keys for UUIDs used for referencing model class manager stores. _SCVI_UUID_KEY = "_scvi_uuid" _SOURCE_SCVI_UUID_KEY = "_source_scvi_uuid" # scVI Registry Constants # ----------------------- # Keys used in the scVI registry....
23.272727
65
0.668945
d8195b25d16e501245f75d758ee63f9c330bba60
1,994
py
Python
hummingbot/connector/derivative/dydx_perpetual/dydx_perpetual_utils.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
11
2020-09-15T08:21:59.000Z
2022-03-19T05:06:59.000Z
hummingbot/connector/derivative/dydx_perpetual/dydx_perpetual_utils.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/derivative/dydx_perpetual/dydx_perpetual_utils.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
5
2020-09-18T12:59:31.000Z
2021-06-27T01:46:16.000Z
from hummingbot.client.config.config_var import ConfigVar from hummingbot.client.config.config_methods import using_exchange CENTRALIZED = True EXAMPLE_PAIR = "BTC-USD" DEFAULT_FEES = [0.05, 0.2] KEYS = { "dydx_perpetual_api_key": ConfigVar(key="dydx_perpetual_api_key", prompt="Ent...
38.346154
77
0.605817
d81a7d31cbd3b0514e3ad7982c9d385703974bfc
546
py
Python
sodp/reports/migrations/0017_auto_20210728_2110.py
ElHombreMorado8/sodp
e4a05620b633d261b22025af1d488cf767ba2e30
[ "Apache-2.0" ]
null
null
null
sodp/reports/migrations/0017_auto_20210728_2110.py
ElHombreMorado8/sodp
e4a05620b633d261b22025af1d488cf767ba2e30
[ "Apache-2.0" ]
2
2021-07-15T10:13:58.000Z
2022-03-30T14:20:03.000Z
sodp/reports/migrations/0017_auto_20210728_2110.py
ElHombreMorado8/sodp
e4a05620b633d261b22025af1d488cf767ba2e30
[ "Apache-2.0" ]
3
2021-07-03T07:13:48.000Z
2021-08-10T19:28:20.000Z
# Generated by Django 3.1.12 on 2021-07-28 21:10 from django.db import migrations, models
24.818182
89
0.600733
d81a9d62719f07472e189017fffe17520e8b2f77
150
py
Python
mfsapiapp/apps.py
lupamo3/django-points
7dc943521c73de1728c5f96d529b16ae51de98e5
[ "MIT" ]
null
null
null
mfsapiapp/apps.py
lupamo3/django-points
7dc943521c73de1728c5f96d529b16ae51de98e5
[ "MIT" ]
null
null
null
mfsapiapp/apps.py
lupamo3/django-points
7dc943521c73de1728c5f96d529b16ae51de98e5
[ "MIT" ]
1
2021-09-21T06:20:28.000Z
2021-09-21T06:20:28.000Z
from django.apps import AppConfig
21.428571
56
0.766667
d81bf2a69ea31df5d99253836392c80819c38099
5,633
py
Python
pkg/msgapi/mqtt/models/mqmsg.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
pkg/msgapi/mqtt/models/mqmsg.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
pkg/msgapi/mqtt/models/mqmsg.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
#-------------------------------------------------- # mqtt_control.py # MQTT_Control is a database model to control subscriptions # and publications # introduced in u8 # ToraNova #-------------------------------------------------- from pkg.resrc import res_import as r from pkg.system.database import dbms Base = dbms.m...
46.172131
110
0.607314
d81c2a498b63c4f8d2b42b07b7d7874f56faeea8
799
py
Python
Raspberry_Pi_Animated_Gif_Player/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
Raspberry_Pi_Animated_Gif_Player/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
Raspberry_Pi_Animated_Gif_Player/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries # # SPDX-License-Identifier: MIT import usb_cdc import rotaryio import board import digitalio serial = usb_cdc.data encoder = rotaryio.IncrementalEncoder(board.ROTA, board.ROTB) button = digitalio.DigitalInOut(board.SWITCH) button.switch_...
27.551724
79
0.737171
d81d21cec7557d8a1961e62b91b95e81583ae2fb
2,753
py
Python
test.py
bing1100/DeepLabV3Plus-Pytorch
8267a8f1f2cfbcb58b8884c1bc48d09b04ffd795
[ "MIT" ]
null
null
null
test.py
bing1100/DeepLabV3Plus-Pytorch
8267a8f1f2cfbcb58b8884c1bc48d09b04ffd795
[ "MIT" ]
null
null
null
test.py
bing1100/DeepLabV3Plus-Pytorch
8267a8f1f2cfbcb58b8884c1bc48d09b04ffd795
[ "MIT" ]
null
null
null
import fiona import rasterio import rasterio.plot import matplotlib as mpl import matplotlib.pyplot from descartes import PolygonPatch from shapely.geometry import LineString import numpy as np import sys from multiprocessing import Pool np.set_printoptions(threshold=np.inf) import matplotlib.pyplot as plt import matpl...
31.284091
82
0.645478
d81db9c64184b7bbb4f7d92a6d33f2986503acaf
5,895
py
Python
alveus/models/LayeredModel.py
levifussell/Alveus
730f06d39dfd3f761cfecc4cc2834d79a11f3845
[ "MIT" ]
2
2018-04-14T19:04:00.000Z
2019-03-22T23:11:32.000Z
alveus/models/LayeredModel.py
levifussell/alveus
730f06d39dfd3f761cfecc4cc2834d79a11f3845
[ "MIT" ]
null
null
null
alveus/models/LayeredModel.py
levifussell/alveus
730f06d39dfd3f761cfecc4cc2834d79a11f3845
[ "MIT" ]
null
null
null
import numpy as np from ..layers.Layer import LayerTrainable
36.165644
172
0.547074
d81df0fb17b9790a2714ea5d69265b8729cbc1bc
6,269
py
Python
sandbox/02_v4l2_common_feed_pipes.py
Zalewa/voyandz
e5da27ea073bd69055021454aa020fb8fa77775a
[ "MIT" ]
null
null
null
sandbox/02_v4l2_common_feed_pipes.py
Zalewa/voyandz
e5da27ea073bd69055021454aa020fb8fa77775a
[ "MIT" ]
null
null
null
sandbox/02_v4l2_common_feed_pipes.py
Zalewa/voyandz
e5da27ea073bd69055021454aa020fb8fa77775a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, send_file, make_response, Response, g, request, stream_with_context from io import BytesIO import atexit import errno import os import subprocess import threading INPUT = '/dev/video0' FFMPEG = "/home/test/ffmpeg-nvenc/ffmpeg" app = Flask(__name__) def _stream(cmd...
28.756881
128
0.525762
d81e111335bb2b0eceb3190733e973e3515afc1a
252
py
Python
code-ch02/test_ne.py
kcalvinalvin/editedProgrammingBitcoin
9680a92cbacdd226cd143fac46d935d00109c902
[ "MIT" ]
null
null
null
code-ch02/test_ne.py
kcalvinalvin/editedProgrammingBitcoin
9680a92cbacdd226cd143fac46d935d00109c902
[ "MIT" ]
null
null
null
code-ch02/test_ne.py
kcalvinalvin/editedProgrammingBitcoin
9680a92cbacdd226cd143fac46d935d00109c902
[ "MIT" ]
null
null
null
from unittest import TestCase from eccCh02 import Point
22.909091
39
0.583333
d81f398ba332a8ddc4a369fda6218312310af6ed
33
py
Python
test/regression/features/imports/fromImport.py
ppelleti/berp
30925288376a6464695341445688be64ac6b2600
[ "BSD-3-Clause" ]
90
2015-02-03T23:56:30.000Z
2022-02-10T03:55:32.000Z
test/regression/features/imports/fromImport.py
ppelleti/berp
30925288376a6464695341445688be64ac6b2600
[ "BSD-3-Clause" ]
4
2015-04-01T13:49:13.000Z
2019-07-09T19:28:56.000Z
test/regression/features/imports/fromImport.py
bjpop/berp
30925288376a6464695341445688be64ac6b2600
[ "BSD-3-Clause" ]
8
2015-04-25T03:47:52.000Z
2019-07-27T06:33:56.000Z
from DefinesX import x print(x)
8.25
22
0.757576
d81f6f0578f05c3ef2f5009ba322576a6f13de5b
220
py
Python
src/dht11.py
Brumawen/temperature
e8743c641961a5e5c512f24239ec4c7755db55be
[ "MIT" ]
null
null
null
src/dht11.py
Brumawen/temperature
e8743c641961a5e5c512f24239ec4c7755db55be
[ "MIT" ]
null
null
null
src/dht11.py
Brumawen/temperature
e8743c641961a5e5c512f24239ec4c7755db55be
[ "MIT" ]
null
null
null
import Adafruit_DHT humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.DHT11, 17) if humidity is not None and temperature is not None: print(str(temperature) + "," + str(humidity)) else: print('-1,-1')
31.428571
71
0.731818
d82025e227ac9b101a17b6ebb0619fb765a8ed84
3,067
py
Python
utils/losses/hybird.py
wufanyou/WRL-Agriculture-Vision
5e1617d9b8b39dbf9e2cfccb2987b1dbb7fbd43a
[ "MIT" ]
5
2021-06-15T06:06:20.000Z
2022-03-18T09:19:29.000Z
utils/losses/hybird.py
wufanyou/WRL-Agriculture-Vision
5e1617d9b8b39dbf9e2cfccb2987b1dbb7fbd43a
[ "MIT" ]
null
null
null
utils/losses/hybird.py
wufanyou/WRL-Agriculture-Vision
5e1617d9b8b39dbf9e2cfccb2987b1dbb7fbd43a
[ "MIT" ]
null
null
null
import torch.nn as nn from torch import Tensor from typing import Optional from .lovasz_loss import CustomizeLovaszLoss, LovaszLoss from .binary_cross_entropy import ( MaskBinaryCrossEntropyIgnoreIndex, MaskBinaryCrossEntropy, ) from .dice_loss import CustomizeDiceLoss from .jaccard import CustomiseJaccardLoss ...
35.662791
88
0.638735
d820b4f0770506dfe9510b1820590790869fb745
247
py
Python
apollo/embeds/__init__.py
rpetti/apollo
1304d8623e6dfe8c9b269b7e90611b3688c0c61e
[ "MIT" ]
null
null
null
apollo/embeds/__init__.py
rpetti/apollo
1304d8623e6dfe8c9b269b7e90611b3688c0c61e
[ "MIT" ]
null
null
null
apollo/embeds/__init__.py
rpetti/apollo
1304d8623e6dfe8c9b269b7e90611b3688c0c61e
[ "MIT" ]
null
null
null
from .about_embed import AboutEmbed from .event_embed import EventEmbed from .help_embed import HelpEmbed from .select_channel_embed import SelectChannelEmbed from .start_time_embed import StartTimeEmbed from .time_zone_embed import TimeZoneEmbed
35.285714
52
0.878543
d820d8a909532943b52458c6fb765ad9ddb0d579
4,180
py
Python
sapai/foods.py
clsandoval/sapai
7d27e35e6554c62d3e0fa5a0a6377d1838a061e6
[ "MIT" ]
null
null
null
sapai/foods.py
clsandoval/sapai
7d27e35e6554c62d3e0fa5a0a6377d1838a061e6
[ "MIT" ]
null
null
null
sapai/foods.py
clsandoval/sapai
7d27e35e6554c62d3e0fa5a0a6377d1838a061e6
[ "MIT" ]
null
null
null
#%% import numpy as np from sapai.data import data from sapai.rand import MockRandomState #%% # %%
30.071942
79
0.510048
d8215c6350572765b0f96735318eeda8369f7f6b
459
py
Python
git_lint_branch/single/__init__.py
juped/git-lint-branch
7b4a89d2f707025671ec642919f83b38094f9300
[ "0BSD" ]
2
2020-11-12T03:34:38.000Z
2021-02-20T01:34:00.000Z
git_lint_branch/single/__init__.py
juped/git-lint-branch
7b4a89d2f707025671ec642919f83b38094f9300
[ "0BSD" ]
11
2020-07-13T18:38:05.000Z
2020-07-17T14:44:52.000Z
git_lint_branch/single/__init__.py
MLH-Fellowship/git-lint-branch
7b4a89d2f707025671ec642919f83b38094f9300
[ "0BSD" ]
1
2020-07-30T11:10:04.000Z
2020-07-30T11:10:04.000Z
from pygit2 import Commit from git_lint_branch.linter_output import * from git_lint_branch.single.example_linter import * from git_lint_branch.single.regex_linter import * from git_lint_branch.single.diff_size_linter import diff_size_linter from git_lint_branch.single.tense_linter import * from git_lint_branch.single.b...
30.6
68
0.834423
d821891ab4fa48d558099ae464e5ae75e623dfe7
271
py
Python
src/pyNonin/pynonin/__init__.py
Hammit/wais-pop
fdf1a7da38759d5d082b95c82dd883aa56df6816
[ "MIT" ]
1
2020-12-30T03:25:13.000Z
2020-12-30T03:25:13.000Z
src/pyNonin/pynonin/__init__.py
Hammit/wais-pop
fdf1a7da38759d5d082b95c82dd883aa56df6816
[ "MIT" ]
null
null
null
src/pyNonin/pynonin/__init__.py
Hammit/wais-pop
fdf1a7da38759d5d082b95c82dd883aa56df6816
[ "MIT" ]
null
null
null
""" pyNonin package initalization file (c) Charles Fracchia 2013 charlesfracchia@gmail.com Permission granted for experimental and personal use; license for commercial sale available from the author. """ #Import main Device base class from pynonin.packet import Packet
22.583333
54
0.811808
d8224ebaa753522d6abba555327e1a47576b6f4d
6,004
py
Python
ltcl/modules/birnn.py
anonymous-authors-iclr2022-481/ltcl
0d8902228fa6c37f875bb60c4d16988462a9655a
[ "MIT" ]
8
2021-10-16T08:35:37.000Z
2022-02-10T09:25:50.000Z
leap/modules/birnn.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
null
null
null
leap/modules/birnn.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
1
2021-11-30T04:06:43.000Z
2021-11-30T04:06:43.000Z
# Require: input_dim, z_dim, hidden_dim, lag # Input: {f_i}_i=1^T: [BS, len=T, dim=8] # Output: {z_i}_i=1^T: [BS, len=T, dim=8] # Bidirectional GRU/LSTM (1 layer) # Sequential sampling & reparameterization import pyro import torch import ipdb as pdb import numpy as np import torch.nn as nn import torch.nn.init as init...
38.987013
93
0.485676
d823ea6e9ab0742d603b2efd793e728e192e4ac9
4,103
py
Python
examples/kalman/gnss_kf.py
karlamnordstrom/laika3
a3fc4d6a6292cd0862451f67ad3f8db8f9d701de
[ "MIT" ]
3
2019-01-03T04:44:05.000Z
2019-04-20T06:39:19.000Z
examples/kalman/gnss_kf.py
karlamnordstrom/laika3
a3fc4d6a6292cd0862451f67ad3f8db8f9d701de
[ "MIT" ]
null
null
null
examples/kalman/gnss_kf.py
karlamnordstrom/laika3
a3fc4d6a6292cd0862451f67ad3f8db8f9d701de
[ "MIT" ]
1
2018-12-23T18:01:37.000Z
2018-12-23T18:01:37.000Z
#!/usr/bin/env python import numpy as np from kalman_helpers import ObservationKind from ekf_sym import EKF_sym from laika.raw_gnss import GNSSMeasurement def rts_smooth(self, estimates): return self.filter.rts_smooth(estimates, norm_quats=False) def init_state(self, state, covs_diag=None, covs=None, filt...
33.909091
124
0.635632
d823f16bddcc63dc00f694bd5e520729549077ef
3,728
py
Python
lib/googlecloudsdk/api_lib/dataproc/poller/batch_poller.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/api_lib/dataproc/poller/batch_poller.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/dataproc/poller/batch_poller.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. 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 requir...
35.169811
77
0.7103
d82729ab5767decffbc8b4f001723f7af4528444
3,107
py
Python
3.1 Prim Minimum Spanning Tree using Brute Force.py
INOS-soft/MOmmentum-SECList
779db12933a5c351c3a5f3a3bc70d5f122033aba
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
3.1 Prim Minimum Spanning Tree using Brute Force.py
INOS-soft/MOmmentum-SECList
779db12933a5c351c3a5f3a3bc70d5f122033aba
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
3.1 Prim Minimum Spanning Tree using Brute Force.py
INOS-soft/MOmmentum-SECList
779db12933a5c351c3a5f3a3bc70d5f122033aba
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
1
2021-04-20T18:57:55.000Z
2021-04-20T18:57:55.000Z
""" 3.Question 3 In this programming problem you'll code up Prim's minimum spanning tree algorithm. This file (edges.txt) describes an undirected graph with integer edge costs. It has the format [number_of_nodes] [number_of_edges] [one_node_of_edge_1] [other_node_of_edge_1] [edge_1_cost] [one_node_of_edge...
34.142857
626
0.718378
d82a5e6a7cb6b7c55c3841490f1226e6b98ca874
2,108
py
Python
base/vulcan_management/vulcan_agent.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
base/vulcan_management/vulcan_agent.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
base/vulcan_management/vulcan_agent.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
from time import sleep from selenium.common.exceptions import NoSuchElementException from .vulcan_webdriver import VulcanWebdriver
36.982456
111
0.6537
d82a7fa6110039063eb64f8069818904b8242eea
695
py
Python
shmeppytools/imageconverter/progress_bar.py
essarrjay/ShmeppyImagetoJSON
45f12b817f2e9f0c162176493110a81a73cb327d
[ "MIT" ]
4
2020-08-04T09:46:36.000Z
2020-09-03T23:54:55.000Z
shmeppytools/imageconverter/progress_bar.py
essarrjay/ShmeppyImagetoJSON
45f12b817f2e9f0c162176493110a81a73cb327d
[ "MIT" ]
10
2020-08-04T03:03:46.000Z
2020-08-29T03:44:46.000Z
shmeppytools/imageconverter/progress_bar.py
essarrjay/ShmeppyImagetoJSON
45f12b817f2e9f0c162176493110a81a73cb327d
[ "MIT" ]
null
null
null
import sys
23.166667
72
0.516547
d82bde8f0fa19324bbaff372f3a7658cbcb864cb
136
py
Python
squarespiral.py
lstoomet/peeterscript
ef60163f6af98f8316c20a5fa55f3507f7ed895b
[ "Unlicense" ]
null
null
null
squarespiral.py
lstoomet/peeterscript
ef60163f6af98f8316c20a5fa55f3507f7ed895b
[ "Unlicense" ]
null
null
null
squarespiral.py
lstoomet/peeterscript
ef60163f6af98f8316c20a5fa55f3507f7ed895b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import turtle t = turtle.Pen() for x in range(400): t.forward(x) t.left(90) input("press enter to exit")
17
28
0.654412
d82c7d46da9c61535e8bf7de2dc34123809c1bd6
1,655
py
Python
gitlab/tests/common.py
tanner-bruce/integrations-core
36337b84fefb73e94d4f1ee28aaeb669dc12fb59
[ "BSD-3-Clause" ]
null
null
null
gitlab/tests/common.py
tanner-bruce/integrations-core
36337b84fefb73e94d4f1ee28aaeb669dc12fb59
[ "BSD-3-Clause" ]
null
null
null
gitlab/tests/common.py
tanner-bruce/integrations-core
36337b84fefb73e94d4f1ee28aaeb669dc12fb59
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from datadog_checks.utils.common import get_docker_hostname HERE = os.path.dirname(os.path.abspath(__file__)) # Networking HOST = get_docker_hostname() GITLAB_TEST_PASSWORD = "testroot" GITL...
28.534483
89
0.676133
d82d9570e54e2426ab28a57e0502bef49ce33260
8,248
py
Python
src/hyde/algorithm/analysis/satellite/hsaf/lib_ascat_analysis.py
c-hydro/hyde
3a3ff92d442077ce353b071d5afe726fc5465201
[ "MIT" ]
null
null
null
src/hyde/algorithm/analysis/satellite/hsaf/lib_ascat_analysis.py
c-hydro/hyde
3a3ff92d442077ce353b071d5afe726fc5465201
[ "MIT" ]
18
2020-04-07T16:34:59.000Z
2021-07-02T07:32:39.000Z
src/hyde/algorithm/analysis/satellite/hsaf/lib_ascat_analysis.py
c-hydro/fp-hyde
b0728397522aceebec3e7ff115aff160a10efede
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------- # Library import tempfile import rasterio import numpy as np from os import remove from os.path import join, exists from scipy.interpolate import griddata from src.hyde.algorithm.utils.satellite.hsaf.lib_ascat_generic import rando...
40.431373
115
0.534433
d83123081b0dcff8ed4a55f6cb8965f47011def8
515
py
Python
projects/golem_e2e/tests/test_builder/add_action_to_teardown.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_e2e/tests/test_builder/add_action_to_teardown.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_e2e/tests/test_builder/add_action_to_teardown.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
description = 'Verify the user can add an action to the teardown' pages = ['common', 'index', 'tests', 'test_builder']
25.75
65
0.683495
d831754b8008aa90041fdf1bbc4b0e2c5b12649d
9,829
py
Python
src/previous/scaterplot.py
miaoli-psy/Psychophysics_exps
f27ab7027bb4890624fe003bb9459fd74d0bdb9c
[ "BSD-2-Clause" ]
null
null
null
src/previous/scaterplot.py
miaoli-psy/Psychophysics_exps
f27ab7027bb4890624fe003bb9459fd74d0bdb9c
[ "BSD-2-Clause" ]
null
null
null
src/previous/scaterplot.py
miaoli-psy/Psychophysics_exps
f27ab7027bb4890624fe003bb9459fd74d0bdb9c
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 23 19:43:56 2019 @author: MiaoLi """ #%% import sys, os import pandas as pd # import seaborn as sns # from shapely.geometry import Polygon, Point sys.path.append('C:\\Users\\MiaoLi\\Desktop\\SCALab\\Programming\\crowdingnumerositygit\\GenerationAlgorithm\\VirtualEllipseF...
50.405128
152
0.665378