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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f9097e8cca24bce434e03574b731725e7a9679f5 | 285 | py | Python | arithmetics/calculate.py | SabeloX/Arithmetics-X | 79d91ad6bbbc4cea1684f17d5402f95e5c08aa5b | [
"MIT"
] | null | null | null | arithmetics/calculate.py | SabeloX/Arithmetics-X | 79d91ad6bbbc4cea1684f17d5402f95e5c08aa5b | [
"MIT"
] | null | null | null | arithmetics/calculate.py | SabeloX/Arithmetics-X | 79d91ad6bbbc4cea1684f17d5402f95e5c08aa5b | [
"MIT"
] | null | null | null | # Subtract numbers module
| 14.25 | 30 | 0.585965 |
f90a63e090dfc5e07483171a1b2114c6fd453602 | 379 | py | Python | froide/campaign/listeners.py | xenein/froide | 59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa | [
"MIT"
] | 198 | 2016-12-03T22:42:55.000Z | 2022-03-25T15:08:36.000Z | froide/campaign/listeners.py | xenein/froide | 59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa | [
"MIT"
] | 264 | 2016-11-30T18:53:17.000Z | 2022-03-17T11:34:18.000Z | froide/campaign/listeners.py | xenein/froide | 59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa | [
"MIT"
] | 42 | 2016-12-22T04:08:27.000Z | 2022-02-26T08:30:38.000Z | from .utils import connect_foirequest
| 22.294118 | 41 | 0.614776 |
f90a9b4868041fb25e10604a527826e1702846a5 | 10,422 | py | Python | rayleigh/searchable_collection.py | mgsh/rayleigh | 54835d20345f0fb05cc626ac627b56371ba9bd42 | [
"MIT"
] | 185 | 2015-02-02T08:03:15.000Z | 2022-02-23T07:48:15.000Z | rayleigh/searchable_collection.py | mgsh/rayleigh | 54835d20345f0fb05cc626ac627b56371ba9bd42 | [
"MIT"
] | 2 | 2015-04-24T21:18:23.000Z | 2018-06-21T12:07:57.000Z | rayleigh/searchable_collection.py | mgsh/rayleigh | 54835d20345f0fb05cc626ac627b56371ba9bd42 | [
"MIT"
] | 34 | 2015-03-22T21:51:40.000Z | 2022-01-02T10:20:02.000Z | """
Methods to search an ImageCollection with brute force, exhaustive search.
"""
import cgi
import abc
import cPickle
import numpy as np
from sklearn.decomposition import PCA
from sklearn.metrics.pairwise import \
manhattan_distances, euclidean_distances, additive_chi2_kernel
import pyflann
from scipy.spatial imp... | 33.191083 | 88 | 0.632604 |
f90b203ec4c7e85f01d14f890abe264c1e434796 | 1,716 | py | Python | Code/coupon_collector.py | PacktPublishing/Modern-Python-Cookbook | 40ff656c64421ddf6c288e058bb99a929f6d4c39 | [
"MIT"
] | 107 | 2016-11-30T02:13:39.000Z | 2022-03-31T06:38:59.000Z | Code/coupon_collector.py | fengfanzhiwu/Modern-Python-Cookbook | 8eff962f6eae514d531beca9051aefa34941ef4d | [
"MIT"
] | 2 | 2017-04-19T04:08:21.000Z | 2019-03-09T16:18:33.000Z | Code/coupon_collector.py | fengfanzhiwu/Modern-Python-Cookbook | 8eff962f6eae514d531beca9051aefa34941ef4d | [
"MIT"
] | 71 | 2017-01-16T06:35:17.000Z | 2022-03-01T21:25:54.000Z | """Python Cookbook
See
http://www.brynmawr.edu/math/people/anmyers/PAPERS/SIGEST_Coupons.pdf
and
https://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind
and
https://en.wikipedia.org/wiki/Binomial_coefficient
"""
from math import factorial
def expected(n, population=8):
"""
What is the probabil... | 23.833333 | 126 | 0.617133 |
f90beb2c215d893adc92dbd991ff199c881a7e70 | 8,857 | py | Python | escsim/simulator.py | Edlward/foc_esc | 58425c0ce5865c077ce313bd672b971380f2edad | [
"MIT"
] | 67 | 2015-07-12T18:08:43.000Z | 2022-03-05T07:05:01.000Z | escsim/simulator.py | Edlward/foc_esc | 58425c0ce5865c077ce313bd672b971380f2edad | [
"MIT"
] | 1 | 2015-09-08T14:01:46.000Z | 2015-09-09T01:36:22.000Z | escsim/simulator.py | gtoonstra/foc_esc | 58425c0ce5865c077ce313bd672b971380f2edad | [
"MIT"
] | 44 | 2015-07-17T14:59:07.000Z | 2021-02-20T13:55:14.000Z | import math
import constants
| 36.004065 | 142 | 0.554815 |
f90cb5f7a480d9914c915d133bb6998e9ffcf543 | 544 | py | Python | src/second-lesson/neuron.py | daveomri/neural-network-tutorial | 22737af8c39fc36eac65b6a8db1baacfc7e52df1 | [
"Unlicense"
] | null | null | null | src/second-lesson/neuron.py | daveomri/neural-network-tutorial | 22737af8c39fc36eac65b6a8db1baacfc7e52df1 | [
"Unlicense"
] | null | null | null | src/second-lesson/neuron.py | daveomri/neural-network-tutorial | 22737af8c39fc36eac65b6a8db1baacfc7e52df1 | [
"Unlicense"
] | null | null | null | inputs = [1, 2, 3, 2.5]
weights1 = [0.2, 0.8, -0.5, 1.0]
weights2 = [0.5, -0.91, 0.26, -0.5]
weights3 = [-0.26, -0.27, 0.17, 0.87]
bias1 = 2
bias2 = 3
bias3 = 0.5
output = [ inputs[0]*weights1[0] + inputs[1]*weights1[1] + inputs[2]*weights1[2] + inputs[3]*weights1[3] + bias1,
inputs[0]*weights... | 30.222222 | 114 | 0.566176 |
f90cbcecedc6eda63c34624621d2b2d5d9a2e112 | 643 | py | Python | 50/26.py | ElyKar/Euler | 38744b553b22565ac30ece06e2e3fbf3408068e2 | [
"MIT"
] | null | null | null | 50/26.py | ElyKar/Euler | 38744b553b22565ac30ece06e2e3fbf3408068e2 | [
"MIT"
] | null | null | null | 50/26.py | ElyKar/Euler | 38744b553b22565ac30ece06e2e3fbf3408068e2 | [
"MIT"
] | null | null | null | #!/bin/python
from decimal import *
import re
maxi = 0
maxidx = 0
getcontext().prec = 10000
#frac = str(Decimal(1)/Decimal(2)).replace('0.','').rstrip('0').lstrip('0')
#print longest(frac)
for d in range(2,1000):
frac = str(Decimal(1)/Decimal(d)).replace('0.','').rstrip('0').lstrip('0')
count = longest(frac)
... | 20.09375 | 75 | 0.595645 |
f90cc0604730602a4aaae583a2f8ead38f06e506 | 6,108 | py | Python | ghiblister.py | mcscope/NoisebrigePythonDebuggingTalk | af2156376671694afd94bd6158ffa27a00022924 | [
"Unlicense"
] | 46 | 2017-09-27T20:19:36.000Z | 2020-12-08T10:07:19.000Z | ghiblister.py | mcscope/NoisebridgePythonDebuggingTalk | af2156376671694afd94bd6158ffa27a00022924 | [
"Unlicense"
] | 6 | 2018-01-09T08:07:37.000Z | 2020-09-07T12:25:13.000Z | ghiblister.py | mcscope/NoisebridgePythonDebuggingTalk | af2156376671694afd94bd6158ffa27a00022924 | [
"Unlicense"
] | 18 | 2017-10-10T02:06:51.000Z | 2019-12-01T10:18:13.000Z | # Christopher Beacham May 5, 2017
# Created for Noisebridge Python class, distribute and use freely
# This is an example program that is a client for Studio Ghibli's API.
# (https://ghibliapi.herokuapp.com/#section/Studio-Ghibli-API)
# It downloads all the resources available in the API, and cross links some of them,
... | 35.719298 | 108 | 0.540439 |
f90d57e2cd7f5b043d612b167bb4e99ce1b2923f | 2,460 | py | Python | nn/nn.py | jiangdaniel/dl-papers | ca85708b5629dc1ba22ec1dfc023d3a6267b0d34 | [
"MIT"
] | 1 | 2019-03-26T12:19:59.000Z | 2019-03-26T12:19:59.000Z | nn/nn.py | jiangdaniel/ml-implementations | ca85708b5629dc1ba22ec1dfc023d3a6267b0d34 | [
"MIT"
] | 5 | 2018-11-26T05:48:52.000Z | 2018-11-26T05:50:45.000Z | nn/nn.py | jiangdaniel/ml-implementations | ca85708b5629dc1ba22ec1dfc023d3a6267b0d34 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import argparse
import numpy as np
from sklearn import preprocessing
from sklearn import datasets
from tqdm import tqdm
def softmax(X):
"""https://deepnotes.io/softmax-crossentropy"""
exps = np.exp(X - np.max(X))
return exps / np.sum(exps)
def cross_entropy(X, y):
... | 24.117647 | 76 | 0.617073 |
f90f5045a0b512a13b2d5b8b38bd5a3c73ba9ac5 | 9,697 | py | Python | Examples/HuginnAirCal2.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | 7 | 2019-03-15T17:28:35.000Z | 2022-02-11T07:27:40.000Z | Examples/HuginnAirCal2.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | null | null | null | Examples/HuginnAirCal2.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | 2 | 2021-05-15T06:23:50.000Z | 2022-03-04T19:38:39.000Z | """
University of Minnesota
Aerospace Engineering and Mechanics - UAV Lab
Copyright 2019 Regents of the University of Minnesota
See: LICENSE.md for complete license details
Author: Chris Regan
Analysis for Huginn (mAEWing2) FLT03 and FLT04
"""
#%%
# Import Libraries
import numpy as np
import matplotlib.pyplot as plt... | 38.328063 | 136 | 0.606064 |
f910a5f28de024a8e1b81f1fe8b9b533460b80ff | 474 | py | Python | setup.py | jkkwoen/things3-wrapper | 0bd75f88b05a3dcaf10ba517bb4aafe2ca4765f9 | [
"MIT"
] | null | null | null | setup.py | jkkwoen/things3-wrapper | 0bd75f88b05a3dcaf10ba517bb4aafe2ca4765f9 | [
"MIT"
] | null | null | null | setup.py | jkkwoen/things3-wrapper | 0bd75f88b05a3dcaf10ba517bb4aafe2ca4765f9 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup_requires = [
]
install_requires = [
]
dependency_links = [
]
setup(
name='things3-wrapper',
version='0.1',
description='Things 3 app python wrapper using URL scheme',
author='jkkwoen',
author_email='jk.kwoen@gmail.com',
packages=f... | 19.75 | 63 | 0.689873 |
f910aba9281480f82e13d077280efed0a98dee09 | 156 | py | Python | kaldi/base/__init__.py | mxmpl/pykaldi | 0570307138c5391cc47b019450d08bcb9686dd98 | [
"Apache-2.0"
] | 916 | 2017-11-22T19:33:36.000Z | 2022-03-31T11:51:58.000Z | kaldi/base/__init__.py | mxmpl/pykaldi | 0570307138c5391cc47b019450d08bcb9686dd98 | [
"Apache-2.0"
] | 268 | 2018-01-16T22:06:45.000Z | 2022-03-29T03:24:41.000Z | kaldi/base/__init__.py | mxmpl/pykaldi | 0570307138c5391cc47b019450d08bcb9686dd98 | [
"Apache-2.0"
] | 260 | 2018-01-23T18:39:40.000Z | 2022-03-24T08:17:39.000Z | from ._kaldi_error import *
from ._timer import *
__all__ = [name for name in dir()
if name[0] != '_'
and not name.endswith('Base')]
| 22.285714 | 41 | 0.583333 |
f912619400af35ddcfb350826e39f99938321fc6 | 1,206 | py | Python | CellCycle/ChainModule/ProdCons.py | AQuadroTeam/server_cellsCycle | 4a07ef62928e87256350dd0c501ddeb19bc89462 | [
"MIT"
] | 3 | 2016-08-11T15:46:16.000Z | 2016-11-18T09:19:03.000Z | CellCycle/ChainModule/ProdCons.py | AQuadroTeam/server_cellsCycle | 4a07ef62928e87256350dd0c501ddeb19bc89462 | [
"MIT"
] | 3 | 2016-08-15T12:32:28.000Z | 2016-12-09T11:11:51.000Z | CellCycle/ChainModule/ProdCons.py | AQuadroTeam/CellsCycle | 4a07ef62928e87256350dd0c501ddeb19bc89462 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import Queue
from Queue import Empty
from ListThread import ListThread
BUF_SIZE = 10
q = Queue.Queue(BUF_SIZE)
| 28.714286 | 114 | 0.661692 |
f9126358d61df370d227966bc582f5dec5b1d759 | 1,423 | py | Python | auto-cite/plugins/orcid.py | msuefishlab/efishlabwebsite21 | ecaeae05702aae90df899973639498ffdc8079c0 | [
"BSD-3-Clause"
] | 70 | 2020-11-17T21:36:38.000Z | 2022-03-21T22:56:00.000Z | auto-cite/plugins/orcid.py | msuefishlab/efishlabwebsite21 | ecaeae05702aae90df899973639498ffdc8079c0 | [
"BSD-3-Clause"
] | 109 | 2020-08-11T20:03:49.000Z | 2022-03-31T13:09:13.000Z | auto-cite/plugins/orcid.py | msuefishlab/efishlabwebsite21 | ecaeae05702aae90df899973639498ffdc8079c0 | [
"BSD-3-Clause"
] | 82 | 2020-11-06T21:14:46.000Z | 2022-03-19T19:50:32.000Z | from urllib.request import Request, urlopen
import json
from util import *
# orcid api
endpoint = "https://pub.orcid.org/v2.0/$ORCID/works"
headers = {"Accept": "application/json"}
| 28.46 | 76 | 0.542516 |
f912958761cdea444b68a6478c7cb29eec685f6f | 27,233 | py | Python | tests/test_compute.py | cruncher/python-exoscale | b74dcb2fa02ece53dcccc089267e2c69cbed2e31 | [
"0BSD"
] | null | null | null | tests/test_compute.py | cruncher/python-exoscale | b74dcb2fa02ece53dcccc089267e2c69cbed2e31 | [
"0BSD"
] | null | null | null | tests/test_compute.py | cruncher/python-exoscale | b74dcb2fa02ece53dcccc089267e2c69cbed2e31 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest
from base64 import b64decode
from cs import CloudStackApiException
from datetime import datetime, timedelta
from time import sleep
from exoscale.api import ResourceNotFoundError
from exoscale.api.compute import *
from .conftest import _random_str
| 39.931085 | 91 | 0.659274 |
f91499d14b7bce288249f31a2488edcf1ea44f12 | 874 | py | Python | contest/abc113/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc113/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc113/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
main()
| 26.484848 | 50 | 0.503432 |
f91abf0584c41eee3c43995b13acae675cae9c4d | 32 | py | Python | pybrain/__init__.py | metabacchi/FuzzyClassificator | f59c10364b872edce342403db6ef26e30d7f69b8 | [
"MIT"
] | 28 | 2017-03-28T07:47:41.000Z | 2022-03-22T13:45:03.000Z | pybrain/__init__.py | metabacchi/FuzzyClassificator | f59c10364b872edce342403db6ef26e30d7f69b8 | [
"MIT"
] | 23 | 2017-03-28T09:17:33.000Z | 2020-03-17T08:46:02.000Z | pybrain/__init__.py | metabacchi/FuzzyClassificator | f59c10364b872edce342403db6ef26e30d7f69b8 | [
"MIT"
] | 10 | 2018-12-03T15:20:15.000Z | 2021-04-29T06:39:26.000Z | from pybrain.structure import *
| 16 | 31 | 0.8125 |
f91bedac14fe13a22bfb82edb11d867f9395e611 | 17,601 | py | Python | Classes.py | SamVarney/Robinhood | 8dc517f86957138a543cef186997a18371ca1e9b | [
"MIT"
] | null | null | null | Classes.py | SamVarney/Robinhood | 8dc517f86957138a543cef186997a18371ca1e9b | [
"MIT"
] | null | null | null | Classes.py | SamVarney/Robinhood | 8dc517f86957138a543cef186997a18371ca1e9b | [
"MIT"
] | null | null | null |
from Robinhood import Robinhood
import config
import pandas as pd
from datetime import time, datetime
from bokeh.plotting import figure, output_file, show
#my_trader = Robinhood()
if __name__ == "__main__":
#Setup
my_trader = Robinhood()
#login
my_trader.login(username=config.USERNAME, p... | 36.66875 | 171 | 0.602807 |
f91d774d8418b73c0df6843208a96ce220b0f168 | 3,753 | py | Python | vendor/github.com/elastic/beats/libbeat/tests/system/test_template.py | N0mansky/countbeat | fa80242cf1ea46f036a3a4920eea3e00554f777e | [
"Apache-2.0"
] | 16 | 2018-08-22T03:29:31.000Z | 2021-09-05T14:01:10.000Z | vendor/github.com/elastic/beats/libbeat/tests/system/test_template.py | railroadmanuk/rubrikbeat | af012076d68f64e12092d885257aa5a706453695 | [
"MIT"
] | 3 | 2020-05-29T13:53:51.000Z | 2021-06-01T22:19:56.000Z | libbeat/tests/system/test_template.py | sure0000/beats | 1690690b3fcbe4a46aedc1121f9aa128497ed22d | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2018-10-31T06:55:01.000Z | 2021-02-06T18:50:04.000Z | from base import BaseTest
import os
from elasticsearch import Elasticsearch, TransportError
from nose.plugins.attrib import attr
import unittest
INTEGRATION_TESTS = os.environ.get('INTEGRATION_TESTS', False)
| 32.921053 | 111 | 0.632294 |
f91e42103d2c1859585030f9f680e4ff2f4e698a | 690 | py | Python | corehq/apps/accounting/management/commands/generate_invoices.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | corehq/apps/accounting/management/commands/generate_invoices.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/accounting/management/commands/generate_invoices.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from optparse import make_option
import datetime
from django.core.management import BaseCommand
from corehq.apps.accounting.tasks import generate_invoices
| 31.363636 | 78 | 0.652174 |
f91e77f81799f057320d41ed5c0898b9104a8573 | 668 | py | Python | src/solutions/solution_7.py | mannickutd/project_euler | 3e042773cc8628b19fa4d341e56ab8cecd2ea642 | [
"Apache-2.0"
] | null | null | null | src/solutions/solution_7.py | mannickutd/project_euler | 3e042773cc8628b19fa4d341e56ab8cecd2ea642 | [
"Apache-2.0"
] | null | null | null | src/solutions/solution_7.py | mannickutd/project_euler | 3e042773cc8628b19fa4d341e56ab8cecd2ea642 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Solution to question 7
Nicholas Staples
2014-04-15
"""
from utils.include_decorator import include_decorator
# Generator for primes.
# Not a particulary quick one but for small primes it is fine.
# If you are consistently looking for prime numbers you would probably
# generate them once ... | 20.875 | 70 | 0.703593 |
f91e89b79a693264b82b884deb5cb11bd160ae3d | 1,459 | py | Python | scripts/plots.py | haohao11/AMENet | ea43734482962ee88a73dc3957b555ae27baedeb | [
"MIT"
] | 4 | 2021-01-13T15:46:05.000Z | 2021-12-15T03:43:23.000Z | scripts/plots.py | Yangzhouzhou/AMENet | ea43734482962ee88a73dc3957b555ae27baedeb | [
"MIT"
] | 1 | 2022-01-18T01:56:54.000Z | 2022-01-18T01:56:54.000Z | scripts/plots.py | Yangzhouzhou/AMENet | ea43734482962ee88a73dc3957b555ae27baedeb | [
"MIT"
] | 1 | 2020-12-17T01:38:14.000Z | 2020-12-17T01:38:14.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 13 15:49:28 2020
@author: cheng
"""
import numpy as np
import matplotlib.pyplot as plt
def plot_pred(xy, y_prime, N=10, groundtruth=True):
"""
This is the plot function to plot the first scene
"""
fig,ax = plt.subplots()
pred_seq = y_pri... | 33.930233 | 96 | 0.498286 |
f91ee372be1fdd1807328b94fe20416353da5a26 | 970 | py | Python | examples/usage.py | jamesholcombe/dash-auth-external | cab0b49b236223d037e22a09473597bd28f67ecd | [
"MIT"
] | 9 | 2022-01-04T23:00:07.000Z | 2022-01-18T18:56:37.000Z | examples/usage.py | jamesholcombe/dash-auth-external | cab0b49b236223d037e22a09473597bd28f67ecd | [
"MIT"
] | null | null | null | examples/usage.py | jamesholcombe/dash-auth-external | cab0b49b236223d037e22a09473597bd28f67ecd | [
"MIT"
] | null | null | null | from dash_auth_external import DashAuthExternal
from dash import Dash, Input, Output, html, dcc
# using spotify as an example
AUTH_URL = "https://accounts.spotify.com/authorize"
TOKEN_URL = "https://accounts.spotify.com/api/token"
CLIENT_ID = "YOUR_CLIENT_ID"
# creating the instance of our auth class
auth = DashAuthE... | 30.3125 | 85 | 0.73299 |
f920a341583ba0552d2d24741d13184d533dc057 | 173 | py | Python | app/main.py | PythonBiellaGroup/ModernDataEngineering | 369fcb89d119ccd1d73882e492cf7c5331087d20 | [
"MIT"
] | 12 | 2021-12-12T22:19:52.000Z | 2022-03-18T11:45:17.000Z | app/main.py | PythonBiellaGroup/ModernDataEngineering | 369fcb89d119ccd1d73882e492cf7c5331087d20 | [
"MIT"
] | 1 | 2021-02-02T09:21:23.000Z | 2021-02-02T09:21:23.000Z | app/main.py | PythonBiellaGroup/ModernDataEngineering | 369fcb89d119ccd1d73882e492cf7c5331087d20 | [
"MIT"
] | 7 | 2021-02-01T22:09:14.000Z | 2021-06-22T08:30:16.000Z | # import streamlit.cli
from app.src.launch import app
if __name__ == "__main__":
# streamlit.cli._main_run_clExplicit("./src/launch.py", "streamlit run")
app.run()
| 24.714286 | 76 | 0.705202 |
f9215c75703c23dde5e4fa67bed97e08eca42978 | 921 | py | Python | scraper/storage_spiders/diegoshoecom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/diegoshoecom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/diegoshoecom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='product-info']/form/h1",
'price' : "//div[@class='price-wrap clearfix']/p[@class='actual-price']/span/span/span",
'c... | 34.111111 | 92 | 0.648208 |
f92176fcfed459724255da05dd0a20c9a92df0d0 | 1,081 | py | Python | form.py | KOHE11/SAProgEX-server | 30d7bc7443a0b5717e6ba23cc941d2c60aa68f79 | [
"MIT"
] | 1 | 2021-02-02T05:11:05.000Z | 2021-02-02T05:11:05.000Z | form.py | KOHE11/SAProgEX-server | 30d7bc7443a0b5717e6ba23cc941d2c60aa68f79 | [
"MIT"
] | null | null | null | form.py | KOHE11/SAProgEX-server | 30d7bc7443a0b5717e6ba23cc941d2c60aa68f79 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import cgi
import sys
import io
import csv
import os
import psycopg2
if __name__=='__main__':
print(select_book("java"))
| 22.061224 | 120 | 0.555967 |
f921c3a89334e89a55cafce30c8c725c09974e8e | 6,599 | py | Python | fdia_simulation/filters/radar_filter_model.py | QDucasse/FDIA_simulation | bdd0cb072f07b9a96fd82df581c9c7493ae66cbc | [
"MIT"
] | 7 | 2020-12-11T16:20:59.000Z | 2022-01-11T21:18:25.000Z | fdia_simulation/filters/radar_filter_model.py | QDucasse/FDIA_simulation | bdd0cb072f07b9a96fd82df581c9c7493ae66cbc | [
"MIT"
] | 2 | 2020-09-25T06:56:56.000Z | 2021-06-25T15:40:38.000Z | fdia_simulation/filters/radar_filter_model.py | QDucasse/FDIA_simulation | bdd0cb072f07b9a96fd82df581c9c7493ae66cbc | [
"MIT"
] | 5 | 2019-08-27T11:13:31.000Z | 2021-11-26T12:52:19.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 28 14:50:36 2019
@author: qde
"""
import numpy as np
from math import sqrt, atan2
from abc import abstractmethod, ABC
from filterpy.kalman import ExtendedKalmanFilter
from filterpy.common ... | 30.270642 | 176 | 0.516896 |
f923a5fbd964dbf16966cd0f142119498e714034 | 36,361 | py | Python | 2017/aoc_12.py | justanotherdot/advent-linguist | 4dfd4ef483ddbd40fb8cf7a1719705186d4ed823 | [
"MIT"
] | null | null | null | 2017/aoc_12.py | justanotherdot/advent-linguist | 4dfd4ef483ddbd40fb8cf7a1719705186d4ed823 | [
"MIT"
] | 4 | 2016-12-06T03:23:27.000Z | 2019-04-07T21:50:04.000Z | 2017/aoc_12.py | justanotherdot/advent-linguist | 4dfd4ef483ddbd40fb8cf7a1719705186d4ed823 | [
"MIT"
] | null | null | null | from collections import defaultdict
s = """
0 <-> 2
1 <-> 1
2 <-> 0, 3, 4
3 <-> 2, 4
4 <-> 2, 3, 6
5 <-> 6
6 <-> 4, 5
"""
s = """
0 <-> 659, 737
1 <-> 1, 1433
2 <-> 982, 1869
3 <-> 306, 380, 1462, 1827
4 <-> 1076
5 <-> 794, 1451
6 <-> 146, 1055
7 <-> 834, 1557
8 <-> 1333
9 <-> 849, 906, 1863
10 <-> 362, 505
11 <-> 33... | 17.728425 | 64 | 0.559226 |
f92418c9a9ee88d443081957c827b2cf66e6d52b | 435 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/migrations/0015_add_courseware_stats_index.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/migrations/0015_add_courseware_stats_index.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/migrations/0015_add_courseware_stats_index.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | # Generated by Django 2.2.18 on 2021-02-18 17:35
from django.db import migrations, models
| 24.166667 | 105 | 0.643678 |
f924443256d91abd882927f0c2bb90dc099120f0 | 1,041 | py | Python | setup.py | AliyevH/elasticfeed | 15613ef5f545982c1e018e82fa9f47d1cf0f2684 | [
"MIT"
] | 3 | 2020-09-10T13:56:17.000Z | 2020-11-23T22:32:02.000Z | setup.py | AliyevH/elk_feeder | 15613ef5f545982c1e018e82fa9f47d1cf0f2684 | [
"MIT"
] | null | null | null | setup.py | AliyevH/elk_feeder | 15613ef5f545982c1e018e82fa9f47d1cf0f2684 | [
"MIT"
] | 1 | 2020-09-17T12:04:39.000Z | 2020-09-17T12:04:39.000Z | from setuptools import setup, find_packages
setup(
name="elasticfeed",
version="0.1.1",
include_package_data=True,
packages=find_packages(),
author="Hasan Aliyev",
author_email="hasan.aliyev.555@gmail.com",
description="Export csv data into Elasticsearch",
license="MIT",
url="https:... | 35.896552 | 83 | 0.632085 |
f924d6fad4f7d417fea258f035cce178d2da1bc8 | 2,321 | py | Python | core/views.py | pfaion/vocabulearn-django | 42c8274a1e23755725d752c3a36b226dc025b96a | [
"MIT"
] | null | null | null | core/views.py | pfaion/vocabulearn-django | 42c8274a1e23755725d752c3a36b226dc025b96a | [
"MIT"
] | null | null | null | core/views.py | pfaion/vocabulearn-django | 42c8274a1e23755725d752c3a36b226dc025b96a | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login
from django.contrib.auth.decorators import login_required
from .models import Folder, CardSet, FlashCard
# Create your views here.
def login(request):
if request.method == 'GET':
return render(req... | 30.142857 | 89 | 0.61913 |
f92538fc2b7784c83c2fb8a696ed36d394f74a8b | 94 | py | Python | test/conftest.py | atztogo/aiida-donothing | 1bd4c8c07213147e82fa32e38e9508c925d87507 | [
"MIT"
] | null | null | null | test/conftest.py | atztogo/aiida-donothing | 1bd4c8c07213147e82fa32e38e9508c925d87507 | [
"MIT"
] | null | null | null | test/conftest.py | atztogo/aiida-donothing | 1bd4c8c07213147e82fa32e38e9508c925d87507 | [
"MIT"
] | null | null | null | """pytest fixtures."""
import pytest
pytest_plugins = ["aiida.manage.tests.pytest_fixtures"]
| 18.8 | 55 | 0.755319 |
f925678191b707a90f520b823a88f06012e7d065 | 148 | py | Python | problem/10000~19999/11948/11948.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/10000~19999/11948/11948.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/10000~19999/11948/11948.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | x=[]
for i in range(4):
x.append(int(input()))
x.sort()
ans=sum(x[1:])
x=[]
for i in range(2):
x.append(int(input()))
ans+=max(x)
print(ans) | 14.8 | 26 | 0.567568 |
f92658159c7aaf34b01673f5fd0a458a6bb6b075 | 5,211 | py | Python | src/e_modelTesting/modelTesting.py | JacobSal/Generalized-Sklearn-ML-Pipeline | fafb9e577445c0b33afe4e4fd69fd60d28fb3eb2 | [
"MIT"
] | null | null | null | src/e_modelTesting/modelTesting.py | JacobSal/Generalized-Sklearn-ML-Pipeline | fafb9e577445c0b33afe4e4fd69fd60d28fb3eb2 | [
"MIT"
] | null | null | null | src/e_modelTesting/modelTesting.py | JacobSal/Generalized-Sklearn-ML-Pipeline | fafb9e577445c0b33afe4e4fd69fd60d28fb3eb2 | [
"MIT"
] | 1 | 2021-10-11T21:48:45.000Z | 2021-10-11T21:48:45.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 13 19:02:19 2021
@author: Jacob Salminen
@version: 1.0.0
"""
#%% IMPORTS
import os
import sys
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(SCRIPT_DIR))
from sklearn.pipeline import Pipeline
import multiprocessing as mp
import nu... | 31.77439 | 101 | 0.720399 |
f9266faf68fa36a9589fb79b34766458759c7e10 | 268 | py | Python | Codeforces/588A - Duff and Meat.py | a3X3k/Competitive-programing-hacktoberfest-2021 | bc3997997318af4c5eafad7348abdd9bf5067b4f | [
"Unlicense"
] | 12 | 2021-06-05T09:40:10.000Z | 2021-10-07T17:59:51.000Z | Codeforces/588A - Duff and Meat.py | a3X3k/Competitive-programing-hacktoberfest-2021 | bc3997997318af4c5eafad7348abdd9bf5067b4f | [
"Unlicense"
] | 21 | 2020-10-10T10:41:03.000Z | 2020-10-31T10:41:23.000Z | Codeforces/588A - Duff and Meat.py | a3X3k/Competitive-programing-hacktoberfest-2021 | bc3997997318af4c5eafad7348abdd9bf5067b4f | [
"Unlicense"
] | 67 | 2021-08-01T10:04:52.000Z | 2021-10-10T00:25:04.000Z | #https://codeforces.com/problemset/problem/588/A
n = int(input())
a, p = map(int, input().split(" "))
mm = a * p # minimum money
mp = p # minimum price
for i in range(n - 1):
a, p = map(int, input().split(" "))
if p < mp:
mp = p
mm += a * mp
print(mm)
| 14.888889 | 48 | 0.552239 |
f9268aeb58281141610970f8e216e6cdeda51607 | 461 | py | Python | instagram_api/response/model/phone_verification_settings.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/phone_verification_settings.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/phone_verification_settings.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
__all__ = ['PhoneVerificationSettings', 'PhoneVerificationSettingsInterface']
| 28.8125 | 84 | 0.828633 |
f926af6496049e7c9e88d6030f7d6842224bd386 | 791 | py | Python | tests/submodules/test_always_on_task.py | MatiCG/pyaww | fa93184d96963b5ca2cb0330cec3a34a4fe423f7 | [
"MIT"
] | null | null | null | tests/submodules/test_always_on_task.py | MatiCG/pyaww | fa93184d96963b5ca2cb0330cec3a34a4fe423f7 | [
"MIT"
] | null | null | null | tests/submodules/test_always_on_task.py | MatiCG/pyaww | fa93184d96963b5ca2cb0330cec3a34a4fe423f7 | [
"MIT"
] | null | null | null | # Standard library imports
from typing import TYPE_CHECKING
# Related third party imports
import pytest
# Local application/library specific imports
if TYPE_CHECKING:
from pyaww import AlwaysOnTask, User
| 24.71875 | 85 | 0.774968 |
f926e4b4d495797807abf91c8bfa7da02a68b80a | 733 | py | Python | mytutor/urls.py | adityapandadev/FindMyTutor | 7c153824355cd53c82d20fd4208b7091b84967d7 | [
"MIT"
] | 1 | 2021-07-26T16:06:53.000Z | 2021-07-26T16:06:53.000Z | mytutor/urls.py | adityapandadev/Findmytutor | 7c153824355cd53c82d20fd4208b7091b84967d7 | [
"MIT"
] | null | null | null | mytutor/urls.py | adityapandadev/Findmytutor | 7c153824355cd53c82d20fd4208b7091b84967d7 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from django.urls.conf import include
from mytutor import views
from django.views.generic.base import RedirectView
urlpatterns = [
path('home/', views.HomeView.as_view()),
path('tutor/', views.TutorListView.as_view()),
path('contact/', views.Cont... | 38.578947 | 92 | 0.699864 |
f9284ae0ed060eed8944ff4b814eee1e48057630 | 717 | py | Python | django/publicmapping/publicmapping/celery.py | PublicMapping/districtbuilder-classic | 6e4b9d644043082eb0499f5aa77e777fff73a67c | [
"Apache-2.0"
] | 2 | 2020-06-15T00:37:15.000Z | 2021-09-23T00:05:25.000Z | django/publicmapping/publicmapping/celery.py | PublicMapping/districtbuilder-classic | 6e4b9d644043082eb0499f5aa77e777fff73a67c | [
"Apache-2.0"
] | 2 | 2020-05-11T20:54:54.000Z | 2020-06-05T17:16:13.000Z | django/publicmapping/publicmapping/celery.py | PublicMapping/districtbuilder-classic | 6e4b9d644043082eb0499f5aa77e777fff73a67c | [
"Apache-2.0"
] | 1 | 2021-09-23T00:06:08.000Z | 2021-09-23T00:06:08.000Z | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
from . import REDIS_URL
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "publicmapping.settings")
# Configure Celery app to use Redis as both the results backend and the message broker.
app = Celery('publicmapping', backend=R... | 37.736842 | 87 | 0.800558 |
f9287840c293ef92915f8adb3680e4ea5c0c0cba | 115,871 | py | Python | CodeEntropy/FunctionCollection/EntropyFunctions.py | DonaldChung-HK/CodeEntropy | 96162239babfbac2b386ab0c6979fee9689c60d2 | [
"MIT"
] | null | null | null | CodeEntropy/FunctionCollection/EntropyFunctions.py | DonaldChung-HK/CodeEntropy | 96162239babfbac2b386ab0c6979fee9689c60d2 | [
"MIT"
] | null | null | null | CodeEntropy/FunctionCollection/EntropyFunctions.py | DonaldChung-HK/CodeEntropy | 96162239babfbac2b386ab0c6979fee9689c60d2 | [
"MIT"
] | null | null | null | from ast import arg
import sys, os
import numpy as nmp
from CodeEntropy.ClassCollection import BeadClasses as BC
from CodeEntropy.ClassCollection import ConformationEntity as CONF
from CodeEntropy.ClassCollection import ModeClasses
from CodeEntropy.ClassCollection import CustomDataTypes
from CodeEntropy.FunctionCollec... | 46.385508 | 280 | 0.647125 |
f9295958301faa8702c77e2cdd7dfa0b65ab3fcb | 171 | py | Python | src/morpheus/__init__.py | eliavw/morpheus | 01c6d15416188254cfdcc7fe9461069cbf8dbe63 | [
"MIT"
] | null | null | null | src/morpheus/__init__.py | eliavw/morpheus | 01c6d15416188254cfdcc7fe9461069cbf8dbe63 | [
"MIT"
] | null | null | null | src/morpheus/__init__.py | eliavw/morpheus | 01c6d15416188254cfdcc7fe9461069cbf8dbe63 | [
"MIT"
] | null | null | null | from .composition.ParallelComposition import ParallelComposition
from .composition.SequentialComposition import SequentialComposition
from .core.Morpheus import Morpheus
| 34.2 | 68 | 0.888889 |
f92a8f43ecd9e1e671dce33154f8149ca6f7088a | 18,465 | py | Python | cgcnn/data.py | skrsna/cgcnn | 23b7a76f11df0d6dd1b2d00f3ec6546f13f955d2 | [
"MIT"
] | 1 | 2020-04-16T17:56:45.000Z | 2020-04-16T17:56:45.000Z | cgcnn/data.py | skrsna/cgcnn | 23b7a76f11df0d6dd1b2d00f3ec6546f13f955d2 | [
"MIT"
] | null | null | null | cgcnn/data.py | skrsna/cgcnn | 23b7a76f11df0d6dd1b2d00f3ec6546f13f955d2 | [
"MIT"
] | null | null | null | from __future__ import print_function, division
import os
import csv
import re
import json
import functools
import random
import warnings
import torch
import numpy as np
from torch.utils.data import Dataset, DataLoader
from torch.utils.data.dataloader import default_collate
from torch.utils.data.sampler import SubsetR... | 39.539615 | 247 | 0.613756 |
f92b376e5545f8e82b7fda9529eda535d818f3bc | 11,496 | py | Python | generate.py | murnanedaniel/3d-maze-generator | 9984c0a37e94849d10b7d69623e704cd6ebccea5 | [
"Unlicense"
] | null | null | null | generate.py | murnanedaniel/3d-maze-generator | 9984c0a37e94849d10b7d69623e704cd6ebccea5 | [
"Unlicense"
] | null | null | null | generate.py | murnanedaniel/3d-maze-generator | 9984c0a37e94849d10b7d69623e704cd6ebccea5 | [
"Unlicense"
] | null | null | null |
from solid import *
from math import *
from functools import reduce
from random import randint
import operator
# Copyright (c) 2017 Conor Patrick
# 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 Sof... | 32.292135 | 214 | 0.574548 |
f92b6b4fadb3ff08ff50008fabfc5374c47c9147 | 688 | py | Python | speedydeploy/providers/linode.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null | speedydeploy/providers/linode.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null | speedydeploy/providers/linode.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null | from fabric import api as fab
from ..base import Ubuntu, Ubuntu104
from ..deployment import _
from ..project.cron import CronTab
from ..project import LogRotate
from .base import Provider
| 16.380952 | 49 | 0.651163 |
f92c3ddef01bd06b4fa574e22117773f52c66815 | 893 | py | Python | saas/dataops/api/dataset/APP-META-PRIVATE/postrun/00_init_job.py | iuskye/SREWorks | a2a7446767d97ec5f6d15bd00189c42150d6c894 | [
"Apache-2.0"
] | 407 | 2022-03-16T08:09:38.000Z | 2022-03-31T12:27:10.000Z | saas/dataops/api/dataset/APP-META-PRIVATE/postrun/00_init_job.py | iuskye/SREWorks | a2a7446767d97ec5f6d15bd00189c42150d6c894 | [
"Apache-2.0"
] | 25 | 2022-03-22T04:27:31.000Z | 2022-03-30T08:47:28.000Z | saas/dataops/api/dataset/APP-META-PRIVATE/postrun/00_init_job.py | iuskye/SREWorks | a2a7446767d97ec5f6d15bd00189c42150d6c894 | [
"Apache-2.0"
] | 109 | 2022-03-21T17:30:44.000Z | 2022-03-31T09:36:28.000Z | # coding: utf-8
from common import checker
from warehouse import entry as warehouse_entry
from pmdb import entry as pmdb_entry
from dataset import entry as dataset_entry
from health import entry as health_entry
from job import entry as job_entry
from es import entry as es_entry
checker.check_sreworks_data_service_re... | 24.135135 | 46 | 0.651736 |
f92cef77139ea8064b596a73f936a9a1cd5b8f66 | 19,501 | py | Python | CaseConverter/test.py | SylannBin/Utils | b4caa6366f7e6a8fcb70ec7a4b3f180b18418689 | [
"MIT"
] | null | null | null | CaseConverter/test.py | SylannBin/Utils | b4caa6366f7e6a8fcb70ec7a4b3f180b18418689 | [
"MIT"
] | null | null | null | CaseConverter/test.py | SylannBin/Utils | b4caa6366f7e6a8fcb70ec7a4b3f180b18418689 | [
"MIT"
] | null | null | null | from printer import Color, danger, success, info, format_table
from converter import *
values = [
'ThisWasPascal',
'thisWasCamel',
'this_was_snake',
'THIS_WAS_COBOL',
'This_Was_Weird',
'this-was-kebab',
'THIS-WAS-TRAIN',
'This-Was-Weird',
'this has spaces',
'this-IsInvalid',
... | 48.50995 | 75 | 0.68376 |
0054ba2d43533ad49392c07910fef919c68d4430 | 18,625 | py | Python | babilim/training/losses.py | penguinmenac3/babilim | d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27 | [
"MIT"
] | 1 | 2020-05-04T15:20:55.000Z | 2020-05-04T15:20:55.000Z | babilim/training/losses.py | penguinmenac3/babilim | d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27 | [
"MIT"
] | 1 | 2019-11-28T09:03:20.000Z | 2019-11-28T09:03:20.000Z | babilim/training/losses.py | penguinmenac3/babilim | d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27 | [
"MIT"
] | 1 | 2019-11-28T08:30:13.000Z | 2019-11-28T08:30:13.000Z | # AUTOGENERATED FROM: babilim/training/losses.ipynb
# Cell: 0
"""doc
# babilim.training.losses
> A package containing all losses.
"""
# Cell: 1
from collections import defaultdict
from typing import Any
import json
import numpy as np
import babilim
from babilim.core.itensor import ITensor
from babilim.core.logging i... | 45.874384 | 286 | 0.628617 |
005679bdea0a8649885adb6dc4c4c8e3de105a75 | 2,369 | py | Python | robot_framework/visualization/balboa_visualization.py | abarcis/robot-framework | a2cef7850784ae4c12b47fc7fb297f3772c2e2fe | [
"MIT"
] | null | null | null | robot_framework/visualization/balboa_visualization.py | abarcis/robot-framework | a2cef7850784ae4c12b47fc7fb297f3772c2e2fe | [
"MIT"
] | null | null | null | robot_framework/visualization/balboa_visualization.py | abarcis/robot-framework | a2cef7850784ae4c12b47fc7fb297f3772c2e2fe | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import colorsys
import time
import random
from rclpy.qos import (
QoSProfile,
QoSDurabilityPolicy,
QoSHistoryPolicy,
QoSReliabilityPolicy,
)
from rclpy.node import Node
from std_msgs.msg import Header, Char, ColorRGBA, Float32, String
from geometry_msgs.msg import TwistStamped, ... | 28.890244 | 73 | 0.601942 |
0056cfea888ded8b62827db2e30f504b6efb3feb | 2,243 | py | Python | AART_project/src/config/devConfig.py | ambersun1234/AART | 2d329958c6e272eebc5d56f5cbeae93c8e75172d | [
"FTL",
"RSA-MD"
] | 14 | 2019-12-26T16:02:20.000Z | 2022-01-11T23:17:10.000Z | AART_project/src/config/devConfig.py | ambersun1234/AART | 2d329958c6e272eebc5d56f5cbeae93c8e75172d | [
"FTL",
"RSA-MD"
] | null | null | null | AART_project/src/config/devConfig.py | ambersun1234/AART | 2d329958c6e272eebc5d56f5cbeae93c8e75172d | [
"FTL",
"RSA-MD"
] | 2 | 2020-08-17T14:33:13.000Z | 2021-04-11T12:59:29.000Z | import os
import configparser
import sys
| 22.656566 | 77 | 0.627285 |
00573c549df2f7162056e919b9a823effa6b19f7 | 1,535 | py | Python | Examples/digits/NN/runNN.py | longtengz/pyml | fa65d4274afe6ef60b31cd2a006a142c350c577d | [
"MIT"
] | 4 | 2017-04-09T16:25:14.000Z | 2018-03-28T15:41:55.000Z | Examples/digits/NN/runNN.py | longtengz/pyml | fa65d4274afe6ef60b31cd2a006a142c350c577d | [
"MIT"
] | null | null | null | Examples/digits/NN/runNN.py | longtengz/pyml | fa65d4274afe6ef60b31cd2a006a142c350c577d | [
"MIT"
] | null | null | null | import sys
# TODO
# need to normalize this path for Windows users
sys.path.insert(0, '../../../NeuralNet')
from NeuralNet import NN
from ActivationFunction.AF import *
trainingPairs = list()
testPairs = list()
with open('../data/trainingDigits.data', 'r') as trainingDigitsFile:
for line in list(trainingDigitsFi... | 30.7 | 152 | 0.695765 |
0057597e9c2ae77cdfafd50adb16cd2649b86ee6 | 3,100 | py | Python | cbcPaddingAttack.py | danielverd/crypto-projects | d7ab2689a7eaf11f15a6b615251f86a0f43f50d0 | [
"MIT"
] | null | null | null | cbcPaddingAttack.py | danielverd/crypto-projects | d7ab2689a7eaf11f15a6b615251f86a0f43f50d0 | [
"MIT"
] | null | null | null | cbcPaddingAttack.py | danielverd/crypto-projects | d7ab2689a7eaf11f15a6b615251f86a0f43f50d0 | [
"MIT"
] | null | null | null | from modesOfOperation import CBCCipher
import sys
BLOCK_SIZE = 16
if __name__ == "__main__":
key = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15'
text = bytearray('go canes','utf-8')
cbc = CBCCipher(key)
ciphertext = cbc.encrypt(text)
#print(ciphertext)
broken = attack(cb... | 30.693069 | 82 | 0.555161 |
0058e528a9414b34383684f5a6d8237fd15a00b5 | 4,222 | py | Python | tests/util_test.py | gurpradeep/securitybot | 8cc4846602011db396df621d2e84e5808a6f3441 | [
"Apache-2.0"
] | 1,053 | 2017-02-22T17:48:25.000Z | 2021-12-13T12:06:11.000Z | tests/util_test.py | gurpradeep/securitybot | 8cc4846602011db396df621d2e84e5808a6f3441 | [
"Apache-2.0"
] | 19 | 2017-02-22T21:04:46.000Z | 2018-10-30T18:45:13.000Z | tests/util_test.py | gurpradeep/securitybot | 8cc4846602011db396df621d2e84e5808a6f3441 | [
"Apache-2.0"
] | 133 | 2017-02-22T20:47:20.000Z | 2021-12-28T14:47:05.000Z | from unittest2 import TestCase
from datetime import datetime, timedelta
import securitybot.util as util
| 46.911111 | 97 | 0.627191 |
005979070b486066d7809dca59a690745bde7f09 | 3,576 | py | Python | examples/resummator_dipole.py | MarcelBalsiger/ngl_resum | 982139b18d1d6a3d0dff5c803761de067ea1c5a3 | [
"MIT"
] | null | null | null | examples/resummator_dipole.py | MarcelBalsiger/ngl_resum | 982139b18d1d6a3d0dff5c803761de067ea1c5a3 | [
"MIT"
] | null | null | null | examples/resummator_dipole.py | MarcelBalsiger/ngl_resum | 982139b18d1d6a3d0dff5c803761de067ea1c5a3 | [
"MIT"
] | 1 | 2021-06-17T17:46:25.000Z | 2021-06-17T17:46:25.000Z | #! /usr/bin/env python
########################################################################
# #
# Resums the non-global logarithms, needs ngl_resum.py #
# #
# If... | 34.384615 | 72 | 0.552852 |
00598c2daee80da81e11b29c14b4a24630b9dc0c | 4,933 | py | Python | candle/estimator.py | paiforsyth/candle | 831da9f92ee6e2bdb86cb0ddc7faedd4ff9d12d9 | [
"MIT"
] | null | null | null | candle/estimator.py | paiforsyth/candle | 831da9f92ee6e2bdb86cb0ddc7faedd4ff9d12d9 | [
"MIT"
] | null | null | null | candle/estimator.py | paiforsyth/candle | 831da9f92ee6e2bdb86cb0ddc7faedd4ff9d12d9 | [
"MIT"
] | null | null | null | import gc
from torch.autograd import Variable
import torch
import torch.autograd as ag
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from .context import Context
from .nested import *
"""
REINFORCE with Importance Sampling Estimator
"""
"""
Implements RELAX estimator from "Backpropagation... | 29.89697 | 110 | 0.612204 |
005ac9b14b94b52e2743e4397f8aed64e361559e | 1,507 | py | Python | observations/r/swahili.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/swahili.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/swahili.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def swahili(path):
"""Swahili
Attitudes towards the Swahili language a... | 23.184615 | 71 | 0.684141 |
005af9e5e3528740b1db537624256bb20a83bb20 | 85,688 | py | Python | Iconolatry.py | SystemRage/Iconolatry | 231dbed9992dcb3d53d6bf1e029c079f5056d842 | [
"MIT"
] | 9 | 2018-11-16T01:58:23.000Z | 2022-02-09T10:38:08.000Z | Iconolatry.py | SystemRage/Iconolatry | 231dbed9992dcb3d53d6bf1e029c079f5056d842 | [
"MIT"
] | null | null | null | Iconolatry.py | SystemRage/Iconolatry | 231dbed9992dcb3d53d6bf1e029c079f5056d842 | [
"MIT"
] | 1 | 2019-11-18T10:34:28.000Z | 2019-11-18T10:34:28.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from struct import unpack_from, pack, calcsize
from PIL import Image, ImageCms
from tempfile import mkstemp
from os.path import isfile, splitext, abspath, isdir, join, basename
from os import listdir
from io import BytesIO
import sys
import argparse
from functools import ... | 59.095172 | 166 | 0.414597 |
005bacdde9dfe7d2f249be1a724d289ebd153f3b | 19,504 | py | Python | qubits/cl_utils.py | thespacedoctor/qubits | 3c02ace7226389841c6bb838d045c11bed61a3c2 | [
"MIT"
] | 3 | 2018-09-25T09:32:55.000Z | 2021-11-17T11:35:17.000Z | qubits/cl_utils.py | thespacedoctor/qubits | 3c02ace7226389841c6bb838d045c11bed61a3c2 | [
"MIT"
] | 1 | 2018-03-16T16:04:52.000Z | 2018-03-16T16:04:52.000Z | qubits/cl_utils.py | thespacedoctor/qubits | 3c02ace7226389841c6bb838d045c11bed61a3c2 | [
"MIT"
] | 2 | 2017-07-16T08:23:41.000Z | 2021-02-23T12:49:17.000Z | #!/usr/local/bin/python
# encoding: utf-8
"""
*Documentation for qubits can be found here: https://github.com/thespacedoctor/qubits*
Usage:
qubits init <pathToWorkspace>
qubits run -s <pathToSettingsFile> -o <pathToOutputDirectory> -d <pathToSpectralDatabase>
COMMANDS
--------
init setu... | 40.46473 | 485 | 0.656429 |
005d4049ba7daae149d1b544ebfbcc3fc73316c9 | 7,392 | py | Python | datasets/detection.py | kaylode/self-driving-car-sim | dc0e991dcf201de7c355917be2dd8c6fce396950 | [
"MIT"
] | 5 | 2021-07-10T14:46:05.000Z | 2021-12-13T01:33:08.000Z | datasets/detection.py | kaylode/self-driving-car-sim | dc0e991dcf201de7c355917be2dd8c6fce396950 | [
"MIT"
] | null | null | null | datasets/detection.py | kaylode/self-driving-car-sim | dc0e991dcf201de7c355917be2dd8c6fce396950 | [
"MIT"
] | null | null | null | import os
import torch
import torch.nn as nn
import torch.utils.data as data
import random
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import json
import numpy as np
from PIL import Image
from augmentations.transforms import Compose, Normalize
from utils.utils import change_box_order | 32.853333 | 136 | 0.545049 |
005d9dc6ae37f5b10913ce9c03586c12d86b11b7 | 1,205 | py | Python | safetorch/utils/instructions_converter.py | MNayer/SAFEtorch | 76e6b135d9910c7886344c8154619cbdec3e6b82 | [
"MIT"
] | 35 | 2020-02-25T01:10:53.000Z | 2022-03-15T01:51:35.000Z | safetorch/utils/instructions_converter.py | MNayer/SAFEtorch | 76e6b135d9910c7886344c8154619cbdec3e6b82 | [
"MIT"
] | 3 | 2020-06-17T06:07:11.000Z | 2021-08-05T09:06:11.000Z | safetorch/utils/instructions_converter.py | MNayer/SAFEtorch | 76e6b135d9910c7886344c8154619cbdec3e6b82 | [
"MIT"
] | 14 | 2020-03-29T11:47:27.000Z | 2022-03-15T01:51:42.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import json
| 33.472222 | 74 | 0.570124 |
00603629eb004f9787cdbd9d31855418006e15bc | 2,734 | py | Python | examples/projects/LGL/LGL-simulation.py | JamesPino/booleannet | dc7324ca6756a80de74551bb24bb6ce23b1a762d | [
"MIT"
] | null | null | null | examples/projects/LGL/LGL-simulation.py | JamesPino/booleannet | dc7324ca6756a80de74551bb24bb6ce23b1a762d | [
"MIT"
] | null | null | null | examples/projects/LGL/LGL-simulation.py | JamesPino/booleannet | dc7324ca6756a80de74551bb24bb6ce23b1a762d | [
"MIT"
] | 1 | 2019-03-13T14:52:51.000Z | 2019-03-13T14:52:51.000Z | """
LGL simulator
It is also a demonstration on how the collector works
"""
import boolean2
from boolean2 import Model, util
from random import choice
# ocasionally randomized nodes
TARGETS = set( "PDGF IL15".split() )
def new_getvalue( state, name, p):
"""
Called every time a node value is used in an expr... | 30.377778 | 81 | 0.653621 |
0060798351f2adc51d90410368cc8b3ab076963b | 1,036 | py | Python | problem_042.py | arboreus/project_euler | 796173e8e72fcbfc15bbb3def7a36349639fafcf | [
"MIT"
] | null | null | null | problem_042.py | arboreus/project_euler | 796173e8e72fcbfc15bbb3def7a36349639fafcf | [
"MIT"
] | null | null | null | problem_042.py | arboreus/project_euler | 796173e8e72fcbfc15bbb3def7a36349639fafcf | [
"MIT"
] | null | null | null | #42) Coded triangle numbers
#The nth term of the sequence of triangle numbers is given by, tn = (1/2)*n*(n+1); so the first ten triangle numbers are:
#1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
#By converting each letter in a word to a number corresponding to its alphabetical position and adding these values we form a wo... | 51.8 | 285 | 0.686293 |
0061ada1e233426ec1e125d95f06d1814c4034ca | 4,968 | py | Python | idtidy.py | PdomGenomeProject/genome-annotation | 1bc7cefccb3668713e9d1a789627e4d9c079894d | [
"CC-BY-4.0"
] | null | null | null | idtidy.py | PdomGenomeProject/genome-annotation | 1bc7cefccb3668713e9d1a789627e4d9c079894d | [
"CC-BY-4.0"
] | null | null | null | idtidy.py | PdomGenomeProject/genome-annotation | 1bc7cefccb3668713e9d1a789627e4d9c079894d | [
"CC-BY-4.0"
] | null | null | null | import re, sys
# Sequence parsing
def parse_fasta(fp):
"""
Stolen shamelessly from http://stackoverflow.com/a/7655072/459780.
"""
name, seq = None, []
for line in fp:
line = line.rstrip()
if line.startswith(">"):
if name: yield (name, ''.join(seq))
name, seq = line, []
else:
... | 29.571429 | 85 | 0.599235 |
00634def53d18cebf9381211f8cd7f84620637bf | 3,494 | py | Python | imsearchtools/engines/google_old_web.py | carandraug/imsearch-tools | 9e6af18d63ffa43cef033bf5d75d32f62a8efcc7 | [
"BSD-2-Clause"
] | 57 | 2015-01-12T01:21:36.000Z | 2021-04-11T19:36:23.000Z | imsearchtools/engines/google_old_web.py | carandraug/imsearch-tools | 9e6af18d63ffa43cef033bf5d75d32f62a8efcc7 | [
"BSD-2-Clause"
] | 6 | 2015-04-22T09:30:36.000Z | 2016-10-12T22:46:05.000Z | imsearchtools/engines/google_old_web.py | carandraug/imsearch-tools | 9e6af18d63ffa43cef033bf5d75d32f62a8efcc7 | [
"BSD-2-Clause"
] | 20 | 2015-10-12T17:03:35.000Z | 2021-08-17T22:51:06.000Z | #!/usr/bin/env python
import requests
import re
from hashlib import md5
from search_client import *
from api_credentials import *
## API Configuration
# --------------------------------------------
GOOGLE_WEB_ENTRY = 'http://www.google.com/'
GOOGLE_WEB_FUNC = 'images'
## Search Class
# --------------------------... | 34.254902 | 103 | 0.529479 |
00646f075a36206f708e4585f25c0a0bcf2de3e2 | 484 | py | Python | Exercises/Riemann.py | JoeyDeSmet/Algorithm-intro | dd897c8ed33c6233450fe4fa3eacd474ede0aec1 | [
"Apache-2.0"
] | null | null | null | Exercises/Riemann.py | JoeyDeSmet/Algorithm-intro | dd897c8ed33c6233450fe4fa3eacd474ede0aec1 | [
"Apache-2.0"
] | null | null | null | Exercises/Riemann.py | JoeyDeSmet/Algorithm-intro | dd897c8ed33c6233450fe4fa3eacd474ede0aec1 | [
"Apache-2.0"
] | 1 | 2021-10-14T08:03:41.000Z | 2021-10-14T08:03:41.000Z | import math
print(riemannIntegral([0, 5], 5))
print(riemannIntegral([0, 5], 8))
print(riemannIntegral([0, 5], 1_000_000)) | 19.36 | 42 | 0.553719 |
0064bb087634d0130957dd1b1951bdc934badfa8 | 8,541 | py | Python | tasks/views.py | marcphilippebeaujean-abertay/recur-notion | d09e03b35a2ea75c446025a6fe76781100bfd3bf | [
"MIT"
] | 2 | 2022-03-29T06:20:34.000Z | 2022-03-29T19:42:00.000Z | tasks/views.py | marcphilippebeaujean-abertay/recur-notion | d09e03b35a2ea75c446025a6fe76781100bfd3bf | [
"MIT"
] | null | null | null | tasks/views.py | marcphilippebeaujean-abertay/recur-notion | d09e03b35a2ea75c446025a6fe76781100bfd3bf | [
"MIT"
] | null | null | null | import datetime
import logging
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.shortcuts import redirect, render
from django.urls import reverse
from django.utils.timezone import now
from django.views.decorators.http import ... | 36.190678 | 104 | 0.702728 |
0064c1c168be86ba2877ec423e5c14079b1f1976 | 4,437 | py | Python | src/milestones.py | notprash/Bluey | 0bde812d6e4714139649ba83efbda39f910dbd35 | [
"MIT"
] | 1 | 2021-07-30T15:09:01.000Z | 2021-07-30T15:09:01.000Z | src/milestones.py | notprash/Bluey | 0bde812d6e4714139649ba83efbda39f910dbd35 | [
"MIT"
] | null | null | null | src/milestones.py | notprash/Bluey | 0bde812d6e4714139649ba83efbda39f910dbd35 | [
"MIT"
] | 1 | 2021-06-09T08:39:26.000Z | 2021-06-09T08:39:26.000Z | from discord.ext import commands
from discord.ext.tasks import loop
import discord
from utilities import help_embed, read_database, update_database, has_admin_permissions
import sqlite3
| 48.228261 | 187 | 0.595898 |
00654e5c267059b1488e01e337a829cabd284849 | 136 | py | Python | 100 Curso aulapharos/008 BibliotecasModulos/005 Spyder scikit-learn/scikit-learn001.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | 100 Curso aulapharos/008 BibliotecasModulos/005 Spyder scikit-learn/scikit-learn001.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | 100 Curso aulapharos/008 BibliotecasModulos/005 Spyder scikit-learn/scikit-learn001.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
USAhousing = pd.read_csv('USA_Housing.csv')
print(USAhousing.head())
print(USAhousing.tail()) | 27.2 | 44 | 0.757353 |
00661fa4f414cd5fe172df6b547a1d2686ec5d3d | 1,239 | py | Python | plugins/odbc_group_plugin.py | stillinsecure/acl_audit | 07cdeba10ffb4cf6595b602c973de9e0f278bb13 | [
"MIT"
] | null | null | null | plugins/odbc_group_plugin.py | stillinsecure/acl_audit | 07cdeba10ffb4cf6595b602c973de9e0f278bb13 | [
"MIT"
] | null | null | null | plugins/odbc_group_plugin.py | stillinsecure/acl_audit | 07cdeba10ffb4cf6595b602c973de9e0f278bb13 | [
"MIT"
] | null | null | null | import pypyodbc
from group_plugin import GroupPlugin, Group
| 30.975 | 83 | 0.606134 |
0066a97d1120a09b9055e61b5c4459d6c38fa43a | 450 | py | Python | book/migrations/0011_auto_20170603_1526.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | null | null | null | book/migrations/0011_auto_20170603_1526.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | 144 | 2015-10-18T17:19:03.000Z | 2021-06-27T07:05:56.000Z | book/migrations/0011_auto_20170603_1526.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | 1 | 2015-10-18T17:04:39.000Z | 2015-10-18T17:04:39.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-03 09:26
from __future__ import unicode_literals
from django.db import migrations, models
| 21.428571 | 58 | 0.611111 |
0066bd654ca50a5cf8cc1ea7d009557f728957ee | 267 | py | Python | code_snippets/api-events-stream.py | brettlangdon/documentation | 87c23cb1d5e3e877bb37a19f7231b5d9239509dc | [
"BSD-3-Clause"
] | null | null | null | code_snippets/api-events-stream.py | brettlangdon/documentation | 87c23cb1d5e3e877bb37a19f7231b5d9239509dc | [
"BSD-3-Clause"
] | null | null | null | code_snippets/api-events-stream.py | brettlangdon/documentation | 87c23cb1d5e3e877bb37a19f7231b5d9239509dc | [
"BSD-3-Clause"
] | null | null | null | from datadog import initialize, api
options = {
'api_key': 'api_key',
'app_key': 'app_key'
}
initialize(**options)
start_time = 1419436850
end_time = 1419436870
api.Event.query(start=start_time, end=end_time, priority="normal", tags=["application:web"])
| 17.8 | 92 | 0.715356 |
00699542cc449b9b486195e5efc81fd89479ea73 | 2,311 | py | Python | bullet_op3/util/action_file_parser.py | AdvAiLab/bullet_op3 | 6564a4a1bac7a41038e7170f1d47d79809c5c395 | [
"MIT"
] | null | null | null | bullet_op3/util/action_file_parser.py | AdvAiLab/bullet_op3 | 6564a4a1bac7a41038e7170f1d47d79809c5c395 | [
"MIT"
] | null | null | null | bullet_op3/util/action_file_parser.py | AdvAiLab/bullet_op3 | 6564a4a1bac7a41038e7170f1d47d79809c5c395 | [
"MIT"
] | 2 | 2020-10-20T08:18:42.000Z | 2021-04-06T12:54:50.000Z | import os
import time
from ctypes import *
from math import pi
from .. import __file__
module_path = os.path.dirname(__file__)
action_joints = [
'r_sho_pitch',
'l_sho_pitch',
'r_sho_roll',
'l_sho_roll',
'r_el',
'l_el',
'r_hip_yaw',
'l_hip_yaw',
'r_hip_roll',
'l_hip_roll',
'r... | 25.395604 | 76 | 0.528343 |
006d0843df79e99d1485cba1772e2c666e0a4621 | 1,830 | py | Python | sandbox/python/worker_threads.py | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 2 | 2021-12-12T13:26:06.000Z | 2022-03-03T16:14:53.000Z | sandbox/python/worker_threads.py | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 5 | 2019-03-01T07:08:46.000Z | 2019-04-28T07:32:42.000Z | sandbox/python/worker_threads.py | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 2 | 2017-12-13T13:13:52.000Z | 2019-03-13T20:08:15.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2017 Romain Boman
#
# 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
#
... | 25.068493 | 76 | 0.61694 |
006d2bd37393d488bbb07b02ea884ebe8d2bc933 | 874 | py | Python | tests/test_logging.py | dfint/changetextpy_script | 0481ab9225e070bfb17cfa0d194e1ed6c6c15e4d | [
"MIT"
] | null | null | null | tests/test_logging.py | dfint/changetextpy_script | 0481ab9225e070bfb17cfa0d194e1ed6c6c15e4d | [
"MIT"
] | 1 | 2021-11-03T06:53:22.000Z | 2021-11-03T06:53:22.000Z | tests/test_logging.py | dfint/changetextpy_script | 0481ab9225e070bfb17cfa0d194e1ed6c6c15e4d | [
"MIT"
] | null | null | null | import contextlib
import io
from changetext.logging_tools import get_logger, log_exceptions
| 23.621622 | 76 | 0.655606 |
006e887513b8d73d7f7d031b3053ea43b36204e5 | 83 | py | Python | TorchProteinLibrary/FullAtomModel/PDB2Coords/__init__.py | dendisuhubdy/TorchProteinLibrary | 89f0f6c311658b9313484cd92804682a251b1b97 | [
"MIT"
] | null | null | null | TorchProteinLibrary/FullAtomModel/PDB2Coords/__init__.py | dendisuhubdy/TorchProteinLibrary | 89f0f6c311658b9313484cd92804682a251b1b97 | [
"MIT"
] | null | null | null | TorchProteinLibrary/FullAtomModel/PDB2Coords/__init__.py | dendisuhubdy/TorchProteinLibrary | 89f0f6c311658b9313484cd92804682a251b1b97 | [
"MIT"
] | null | null | null | from .PDB2Coords import PDB2CoordsBiopython, PDB2CoordsOrdered, PDB2CoordsUnordered | 83 | 83 | 0.903614 |
006ee3e2ef1a3988d91ee06eb6d35d6cdd103113 | 840 | py | Python | Aula 18 – Listas (Parte 2)/pratica_01.py | Guilherme-Artigas/Python-avancado | 287e23ac3df181ff84bf5fae8ab925a4433dceb0 | [
"MIT"
] | null | null | null | Aula 18 – Listas (Parte 2)/pratica_01.py | Guilherme-Artigas/Python-avancado | 287e23ac3df181ff84bf5fae8ab925a4433dceb0 | [
"MIT"
] | null | null | null | Aula 18 – Listas (Parte 2)/pratica_01.py | Guilherme-Artigas/Python-avancado | 287e23ac3df181ff84bf5fae8ab925a4433dceb0 | [
"MIT"
] | null | null | null | """lista = []
lista.append('Guilherme')
lista.append(28)
#print(lista)
lista2 = []
lista2.append(lista[:])
lista[0] = 'Bryan'
lista[1] = 6
lista2.append(lista[:])
print(lista2)
"""
"""lista = [['Joo', 61], ['Guilherme', 28], ['Julia', 1], ['Bryan', 6]]
# [ [ 0 ],[ 1]], [ 0 ], [1], [ 0 ], [1], [ 0 ], [1... | 28 | 72 | 0.510714 |
0070e3db28342011ad26dad5be9905665020e271 | 3,282 | py | Python | external_functions/pyef/template.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 44 | 2016-03-18T22:05:31.000Z | 2021-12-23T01:50:09.000Z | external_functions/pyef/template.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 88 | 2016-08-19T08:05:37.000Z | 2022-03-28T23:29:21.000Z | external_functions/pyef/template.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 24 | 2016-02-07T18:12:06.000Z | 2022-02-19T09:06:17.000Z | '''
Template for creating a PyFerret Python External Function (PyEF).
The names of the functions provided should not be changed. By
default, PyFerret uses the name of the module as the function name.
Copy this file using a name that you would like to be the function
name, then modify the contents of these functions ... | 37.724138 | 75 | 0.694089 |
007298692df19398518ae8da5915d8ae332a86b0 | 26,155 | py | Python | dev/createClasses.py | h4yn0nnym0u5e/OSCAudio | f67a49d6298af68882ee2d0999c804e48f52fbda | [
"MIT"
] | 1 | 2021-12-12T17:44:28.000Z | 2021-12-12T17:44:28.000Z | dev/createClasses.py | h4yn0nnym0u5e/OSCAudio | f67a49d6298af68882ee2d0999c804e48f52fbda | [
"MIT"
] | 7 | 2021-12-15T21:46:22.000Z | 2022-01-31T19:53:42.000Z | dev/createClasses.py | h4yn0nnym0u5e/OSCAudio | f67a49d6298af68882ee2d0999c804e48f52fbda | [
"MIT"
] | null | null | null | import re
import fileinput
import os
import json
##############################################################################################
# User settings
dynamic = True
ftrl = ['play_wav' # files to reject
]
limit = 1000
rp = '../../Audio'
idxf = '../../Audio/gui/index.html'
# USB audio is in co... | 32.816813 | 215 | 0.493749 |
0072ca442e737b8e11066610d1ed02add4b4a830 | 920 | py | Python | pocketthrone/managers/eventmanager.py | herrschr/pocket-throne | 819ebae250f45b0a4b15a8320e2836c0b5113528 | [
"BSD-2-Clause"
] | 4 | 2016-06-05T16:48:04.000Z | 2020-03-23T20:06:06.000Z | pocketthrone/managers/eventmanager.py | herrschr/pocket-throne | 819ebae250f45b0a4b15a8320e2836c0b5113528 | [
"BSD-2-Clause"
] | null | null | null | pocketthrone/managers/eventmanager.py | herrschr/pocket-throne | 819ebae250f45b0a4b15a8320e2836c0b5113528 | [
"BSD-2-Clause"
] | null | null | null | from pocketthrone.entities.event import *
from weakref import WeakKeyDictionary
| 31.724138 | 85 | 0.727174 |
007359d6f4fe41fab2deb027ae3755154c77c8ec | 425 | py | Python | spikes/saveraw.py | 1082sqnatc/missionspacelab2019 | 439753c8e309ece98963f58c9bb443217e75364e | [
"Apache-2.0"
] | null | null | null | spikes/saveraw.py | 1082sqnatc/missionspacelab2019 | 439753c8e309ece98963f58c9bb443217e75364e | [
"Apache-2.0"
] | 12 | 2019-12-01T15:52:08.000Z | 2020-02-02T13:52:36.000Z | spikes/saveraw.py | 1082sqnatc/missionspacelab2019 | 439753c8e309ece98963f58c9bb443217e75364e | [
"Apache-2.0"
] | null | null | null | import time
import picamera
import numpy as np
import cv2
with picamera.PiCamera() as camera:
camera.resolution = (3280, 2464)
camera. start_preview()
time. sleep(2)
camera.capture('image.data', 'yuv')
##################################################
fd = open('image.data', 'rb')
f=np.fromfile(fd, dty... | 28.333333 | 50 | 0.614118 |
00738c81acf3d21f96cf5541abd3f0a6c48b917d | 420 | py | Python | 875. Koko Eating Bananas.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null | 875. Koko Eating Bananas.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null | 875. Koko Eating Bananas.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null |
Time: O(NlogW), where N is the number of piles, and W is the maximum size of a pile.
Space:O(1) | 30 | 84 | 0.464286 |
0073a2d3f1f2b71f89c97783bdb0cc8db8312923 | 2,711 | py | Python | code/0-input/create_hdf5/pair_generation.py | AvinWangZH/3D-convolutional-speaker-recognition | 61969eb2dba6004bdecb4f7100047015ca665348 | [
"Apache-2.0"
] | 1 | 2021-04-04T17:08:05.000Z | 2021-04-04T17:08:05.000Z | code/0-input/create_hdf5/pair_generation.py | subvin/3D-convolutional-speaker-recognition | 61969eb2dba6004bdecb4f7100047015ca665348 | [
"Apache-2.0"
] | null | null | null | code/0-input/create_hdf5/pair_generation.py | subvin/3D-convolutional-speaker-recognition | 61969eb2dba6004bdecb4f7100047015ca665348 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
import numpy as np
import scipy.io.wavfile as wav
import random
import tables
import pickle
def feed_to_hdf5(feature_vector, subject_num, utterance_train_storage, utterance_test_storage, ... | 45.949153 | 125 | 0.669864 |
0073b0003e3ebb1ae040dc6019c2244dd1bfce9f | 562 | py | Python | cli/setup.py | Stanford-IoT-Lab/thingengine-platform-cloud | de8610ab21198edb16d215d611e0c0b1df302e2c | [
"Apache-2.0"
] | 63 | 2018-07-14T12:01:45.000Z | 2019-04-09T05:47:50.000Z | cli/setup.py | Stanford-Mobisocial-IoT-Lab/almond-cloud | de8610ab21198edb16d215d611e0c0b1df302e2c | [
"Apache-2.0"
] | 227 | 2018-06-04T16:29:48.000Z | 2019-04-10T18:22:22.000Z | cli/setup.py | Stanford-IoT-Lab/thingengine-platform-cloud | de8610ab21198edb16d215d611e0c0b1df302e2c | [
"Apache-2.0"
] | 6 | 2021-11-25T13:43:57.000Z | 2022-03-03T16:38:19.000Z | import setuptools
setuptools.setup(
name="almond-cloud-cli",
version="0.0.0",
author="Stanford OVAL",
author_email="thingpedia-admins@lists.stanford.edu",
description="Command Line Interface (CLI) for Almond Cloud development and deployment",
url="https://github.com/stanford-oval/almond-cloud",... | 26.761905 | 91 | 0.633452 |
007574ef7bc27f676f0b0e293c0e52ec02dc719c | 397 | py | Python | sydler/data/db_connection.py | mikiTesf/Sydler-py | b7f461f4128549d8f9c75934de8b869b93ca2916 | [
"MIT"
] | null | null | null | sydler/data/db_connection.py | mikiTesf/Sydler-py | b7f461f4128549d8f9c75934de8b869b93ca2916 | [
"MIT"
] | null | null | null | sydler/data/db_connection.py | mikiTesf/Sydler-py | b7f461f4128549d8f9c75934de8b869b93ca2916 | [
"MIT"
] | null | null | null | from os import path, environ, makedirs
from peewee import SqliteDatabase
CACHE_FOLDER_NAME = '.sydler'
DB_FILE_NAME = 'member.db'
# create the cache folder before connecting to the data store
path_to_db = path.join(environ.get('HOME'), CACHE_FOLDER_NAME)
makedirs(path_to_db, exist_ok=True)
# create and connect to data... | 33.083333 | 62 | 0.793451 |
0075ba2d53f549e8da14f8c6eee4219b60ac7604 | 2,752 | py | Python | scoreengine/checks/ssh.py | ubnetdef/scoreengine2 | b68287ace21665f11004bbc423cc183aba710522 | [
"MIT"
] | 3 | 2019-05-03T05:19:18.000Z | 2020-05-04T15:27:32.000Z | scoreengine/checks/ssh.py | ubnetdef/scoreengine2 | b68287ace21665f11004bbc423cc183aba710522 | [
"MIT"
] | null | null | null | scoreengine/checks/ssh.py | ubnetdef/scoreengine2 | b68287ace21665f11004bbc423cc183aba710522 | [
"MIT"
] | null | null | null | import paramiko
import time
from . import check_function, config
# DEFAULTS
ssh_config = {
'timeout': 10,
}
# /DEFAULTS
# CONFIG
if 'ssh' in config['checks']:
ssh_config.update(config['checks']['ssh'])
# /CONFIG
| 34.4 | 92 | 0.610828 |
00788a183beee27d3333a0479326dea42035d48a | 4,309 | py | Python | src/main.py | JeyKip/autoinfo-scrapper | ca0cb87b1d9486b71928fb08df734fc1413b7967 | [
"MIT"
] | null | null | null | src/main.py | JeyKip/autoinfo-scrapper | ca0cb87b1d9486b71928fb08df734fc1413b7967 | [
"MIT"
] | null | null | null | src/main.py | JeyKip/autoinfo-scrapper | ca0cb87b1d9486b71928fb08df734fc1413b7967 | [
"MIT"
] | null | null | null | import os
from dotenv import dotenv_values
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
from twisted.internet.defer import inlineCallbacks
from autoinfo.cookie import CookieProvider
from autoinfo.data.mongo import MongoConnector, MongoConnectionSettings, MongoMakerSt... | 47.351648 | 116 | 0.71896 |
0078a79651ad4a37ba07af625d7f0ed91de39f9f | 650 | py | Python | setup.py | JoshPiper/Python-InterWorkshop | 1148b927afe27273f7daf25b09a3c55977c641be | [
"MIT"
] | null | null | null | setup.py | JoshPiper/Python-InterWorkshop | 1148b927afe27273f7daf25b09a3c55977c641be | [
"MIT"
] | null | null | null | setup.py | JoshPiper/Python-InterWorkshop | 1148b927afe27273f7daf25b09a3c55977c641be | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='InterWorkshop',
version='1.0.0.dev1',
packages=['gmad', 'workshop'],
url='doctor-internet.dev',
license='MIT',
author='John Internet',
author_email='jonjon1234.github@gmail.com',
description='A Python binding for the Steam Workshop API',
ins... | 25 | 62 | 0.550769 |
0078e9a2bbbfb98a836d222a2905e72f7c4d3aa2 | 1,196 | py | Python | test/test_cfg/test_table.py | wannaphong/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 8 | 2017-12-18T08:51:27.000Z | 2020-11-26T02:21:06.000Z | test/test_cfg/test_table.py | bdusell/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 1 | 2020-03-25T11:42:47.000Z | 2020-03-29T02:17:34.000Z | test/test_cfg/test_table.py | wannaphong/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 6 | 2017-06-12T16:58:40.000Z | 2019-11-27T06:55:07.000Z | from cfg.table import *
from read_grammar import *
from glob import glob
import unittest
table_test_cases = get_test_cases('tables')
grammar_test_cases = get_test_cases('grammars')
if __name__ == '__main__':
unittest.main()
| 34.171429 | 89 | 0.685619 |
007a8edfc846a98e483e4891372a960be5678750 | 13,468 | py | Python | ratbag/parser.py | whot/ratbag-python | f1c74df2202007dd1ab5d59620d169318c0e1284 | [
"MIT"
] | 6 | 2021-12-10T02:51:35.000Z | 2022-03-30T12:20:17.000Z | ratbag/parser.py | whot/ratbag-python | f1c74df2202007dd1ab5d59620d169318c0e1284 | [
"MIT"
] | 6 | 2021-12-27T03:20:25.000Z | 2022-02-07T02:21:58.000Z | ratbag/parser.py | whot/ratbag-python | f1c74df2202007dd1ab5d59620d169318c0e1284 | [
"MIT"
] | 3 | 2021-12-15T09:11:54.000Z | 2022-01-31T21:46:41.000Z | #!/usr/bin/env python3
#
# SPDX-License-Identifier: MIT
#
# This file is formatted with Python Black
"""
A Parser helper function to convert a byte array to a Python object and the
other way around. The conversion is specified in a list of :class:`Spec`
instances, for example:
>>> data = bytes(range(16))
>>> ... | 37.938028 | 119 | 0.56534 |
007ba1bf5a666fb7df1eecfd14e17724e4531589 | 20,018 | py | Python | balsam/launcher/mpi_ensemble.py | Larofeticus/balsam | 6d646ebe87a21bca5934bbd0b5fdc68a1baea09b | [
"BSD-3-Clause"
] | null | null | null | balsam/launcher/mpi_ensemble.py | Larofeticus/balsam | 6d646ebe87a21bca5934bbd0b5fdc68a1baea09b | [
"BSD-3-Clause"
] | null | null | null | balsam/launcher/mpi_ensemble.py | Larofeticus/balsam | 6d646ebe87a21bca5934bbd0b5fdc68a1baea09b | [
"BSD-3-Clause"
] | null | null | null | '''mpi4py wrapper that allows an ensemble of serial applications to run in
parallel across ranks on the computing resource'''
import argparse
from collections import defaultdict
import os
import sys
import logging
import random
from subprocess import Popen, STDOUT, TimeoutExpired
import shlex
import signal
import time
... | 36.396364 | 117 | 0.587022 |
007e4dff95a85a34ae18115aba2405eea01f19e6 | 371 | py | Python | {{cookiecutter.project}}/{{cookiecutter.project_slug}}/__init__.py | jhinAza/python-flask-microservice-template | 8c399f81dfbb61903c7090fde7ea3acbe5a1d133 | [
"MIT"
] | 2 | 2018-05-11T10:34:19.000Z | 2018-05-11T15:38:40.000Z | {{cookiecutter.project}}/{{cookiecutter.project_slug}}/__init__.py | jhinAza/python-flask-microservice-template | 8c399f81dfbb61903c7090fde7ea3acbe5a1d133 | [
"MIT"
] | 1 | 2019-07-23T19:17:13.000Z | 2019-07-23T19:17:13.000Z | {{cookiecutter.project}}/{{cookiecutter.project_slug}}/__init__.py | jhinAza/python-flask-microservice-template | 8c399f81dfbb61903c7090fde7ea3acbe5a1d133 | [
"MIT"
] | null | null | null | from flask import Flask
from {{cookiecutter.project_slug}}.{{cookiecutter.project_slug}}_root import {{cookiecutter.project_slug}}
__author__ = """{{cookiecutter.mantainer_name}}"""
__email__ = '{{cookiecutter.mantainer_email}}'
__version__ = '0.1.0'
| 28.538462 | 106 | 0.743935 |
007e64d3156c8811db860f453664bed935464066 | 2,349 | py | Python | ForFinance/Examples/Video2_SimulatingTrades.py | enriqueescobar-askida/Kinito.Finance | 5308748b64829ac798a858161f9b4a9e5829db44 | [
"MIT"
] | 2 | 2020-03-04T11:18:38.000Z | 2020-05-10T15:36:42.000Z | ForFinance/Examples/Video2_SimulatingTrades.py | enriqueescobar-askida/Kinito.Finance | 5308748b64829ac798a858161f9b4a9e5829db44 | [
"MIT"
] | 6 | 2020-03-30T16:42:47.000Z | 2021-12-13T20:37:21.000Z | ForFinance/Examples/Video2_SimulatingTrades.py | enriqueescobar-askida/Kinito.Finance | 5308748b64829ac798a858161f9b4a9e5829db44 | [
"MIT"
] | 1 | 2020-04-14T11:26:16.000Z | 2020-04-14T11:26:16.000Z | import pandas as pd
import numpy as np
import yfinance as yf
import datetime as dt
from pandas_datareader import data as pdr
yf.pdr_override()
stock=input("Enter a stock ticker symbol: ")
print(stock)
startyear=2018
startmonth=1
startday=1
start=dt.datetime(startyear,startmonth,startday)
now=dt.datetime.now()
df=... | 18.209302 | 107 | 0.655172 |
007f1319c215a0a9f6bb98007dca7db6093b432e | 1,378 | py | Python | poppler_wrap/pop.py | dannguyen/poppler_wrap | abd23dbd273e10cb34ceeb4b6a078faa525c3bb4 | [
"MIT"
] | null | null | null | poppler_wrap/pop.py | dannguyen/poppler_wrap | abd23dbd273e10cb34ceeb4b6a078faa525c3bb4 | [
"MIT"
] | null | null | null | poppler_wrap/pop.py | dannguyen/poppler_wrap | abd23dbd273e10cb34ceeb4b6a078faa525c3bb4 | [
"MIT"
] | null | null | null | import subprocess as sb
| 31.318182 | 98 | 0.570392 |
007f7892f939a5b3a80cf3186418fe6879158fa3 | 1,336 | py | Python | dialogs/treasure.py | tonningp/pirate-game | 77070b1c2252c1b42b5763a27a057801998627af | [
"MIT"
] | null | null | null | dialogs/treasure.py | tonningp/pirate-game | 77070b1c2252c1b42b5763a27a057801998627af | [
"MIT"
] | null | null | null | dialogs/treasure.py | tonningp/pirate-game | 77070b1c2252c1b42b5763a27a057801998627af | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from PyQt5.QtWidgets import (
QDialog, QPushButton,
QHBoxLayout, QVBoxLayout,
QLabel
)
| 30.363636 | 105 | 0.64521 |
007fa4b70ac7624e3608c0a073fcc87313e5b3b2 | 2,352 | py | Python | image-editor/data_editor/image/image_view.py | flegac/deep-experiments | e1b12e724f2c8340cbe9c51396cf3f42e3b4e934 | [
"MIT"
] | null | null | null | image-editor/data_editor/image/image_view.py | flegac/deep-experiments | e1b12e724f2c8340cbe9c51396cf3f42e3b4e934 | [
"MIT"
] | null | null | null | image-editor/data_editor/image/image_view.py | flegac/deep-experiments | e1b12e724f2c8340cbe9c51396cf3f42e3b4e934 | [
"MIT"
] | null | null | null | import tkinter as tk
import rx.operators as ops
from PIL import ImageTk, Image
from rx.subject import Subject
from data_editor.image.view_controller import ViewController
from data_toolbox.data.data_source import DataSource
from data_toolbox.image.buffer_factory import ImageFactory
if __name__ == '__main__':
r... | 33.6 | 95 | 0.677296 |
00808056ceccb600a210a1900ce0e7388b85a37e | 1,797 | py | Python | perplexity_lenses/perplexity_lenses/visualization.py | raineydavid/data_tooling | 3b58756bf0f7f60e8ff3bd7b2efadd4e8587358d | [
"Apache-2.0"
] | null | null | null | perplexity_lenses/perplexity_lenses/visualization.py | raineydavid/data_tooling | 3b58756bf0f7f60e8ff3bd7b2efadd4e8587358d | [
"Apache-2.0"
] | null | null | null | perplexity_lenses/perplexity_lenses/visualization.py | raineydavid/data_tooling | 3b58756bf0f7f60e8ff3bd7b2efadd4e8587358d | [
"Apache-2.0"
] | null | null | null | import numpy as np
from bokeh.models import ColumnDataSource, HoverTool
from bokeh.palettes import Cividis256 as Pallete
from bokeh.plotting import Figure, figure
from bokeh.transform import factor_cmap
| 30.982759 | 105 | 0.649972 |
0084357193a4b6b1663a56822a2584b81b55bed0 | 591 | py | Python | Chapter_3/try_3.2.py | charliealpha094/Python_Crash_Course_2nd_edition | 9d1548b775c861fd63890ccee19a9101eb0c5c6b | [
"MIT"
] | null | null | null | Chapter_3/try_3.2.py | charliealpha094/Python_Crash_Course_2nd_edition | 9d1548b775c861fd63890ccee19a9101eb0c5c6b | [
"MIT"
] | null | null | null | Chapter_3/try_3.2.py | charliealpha094/Python_Crash_Course_2nd_edition | 9d1548b775c861fd63890ccee19a9101eb0c5c6b | [
"MIT"
] | null | null | null | #Done by Carlos Amaral on 12/06/2020
"""
Start with the list you used in Exercise 3-1, but instead of just
printing each persons name, print a message to them. The text of each mes-
sage should be the same, but each message should be personalized with the
persons name.
"""
friends = ['Rita', 'Catarina', 'Emilia', 'Pa... | 25.695652 | 75 | 0.658206 |
00849d43ffb9410704093ba002078f834f37dcb6 | 8,052 | py | Python | analysis/drift_velocity/plots.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2017-09-21T14:58:23.000Z | 2017-09-21T14:58:23.000Z | analysis/drift_velocity/plots.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2020-09-09T08:52:43.000Z | 2020-09-09T08:52:43.000Z | analysis/drift_velocity/plots.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2019-01-21T10:57:41.000Z | 2019-01-21T10:57:41.000Z | def plot_power_spectra(kbins, deltab_2, deltac_2, deltac_2_nodeconv, tf, ax=None):
'''
Plot density and velocity power spectra and compare with CAMB
'''
import numpy as np
import matplotlib.pylab as plt
from seren3.cosmology.transfer_function import TF
if ax is None:
ax = plt.gca()
... | 38.526316 | 111 | 0.620964 |
00893facdc3d2c83d1a71c5d906c4971f966df85 | 9,928 | py | Python | scripts/Ours/stage1_train_GAN.py | IamWangYunKai/DG-TrajGen | 0a8aab7e1c05111a5afe43d53801c55942e9ff56 | [
"MIT"
] | 31 | 2021-09-15T00:43:43.000Z | 2022-03-27T22:57:21.000Z | scripts/Ours/stage1_train_GAN.py | IamWangYunKai/DG-TrajGen | 0a8aab7e1c05111a5afe43d53801c55942e9ff56 | [
"MIT"
] | 1 | 2021-12-09T03:08:13.000Z | 2021-12-15T07:08:31.000Z | scripts/Ours/stage1_train_GAN.py | IamWangYunKai/DG-TrajGen | 0a8aab7e1c05111a5afe43d53801c55942e9ff56 | [
"MIT"
] | 2 | 2021-11-26T05:45:18.000Z | 2022-01-19T12:46:41.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from os.path import join, dirname
sys.path.insert(0, join(dirname(__file__), '../../'))
import os
import random
import argparse
from datetime import datetime
import matplotlib.pyplot as plt
plt.rcParams.update({'figure.max_open_warning': 0})
import torch
impor... | 42.609442 | 230 | 0.701652 |
008a818651448e80ede7444c904ec64b41cdf9dc | 2,763 | py | Python | tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/backend.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/backend.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/backend.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | import logging
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from keystoneclient import exceptions as keystone_exceptions
from .exceptions import KeystoneAuthException
from .user import Token
from .user import AuthUser
from .utils import get_keystone_client
from .utils impor... | 36.355263 | 82 | 0.626855 |
008a94b66bc880792cadcf97f6f2be20449badcd | 2,221 | py | Python | src/ham/util/path_manager.py | n2qzshce/ham_radio_sync | ffe95a4ef88375b5d5e4503cf770e884644536cd | [
"CNRI-Python",
"RSA-MD"
] | 8 | 2021-03-01T17:28:45.000Z | 2022-02-10T02:19:41.000Z | src/ham/util/path_manager.py | n2qzshce/ham_radio_sync | ffe95a4ef88375b5d5e4503cf770e884644536cd | [
"CNRI-Python",
"RSA-MD"
] | 7 | 2021-03-31T03:37:12.000Z | 2021-06-12T20:30:05.000Z | src/ham/util/path_manager.py | n2qzshce/ham_radio_sync | ffe95a4ef88375b5d5e4503cf770e884644536cd | [
"CNRI-Python",
"RSA-MD"
] | 1 | 2021-02-24T21:39:51.000Z | 2021-02-24T21:39:51.000Z | import os
| 25.528736 | 77 | 0.767672 |