hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
5413aeed91b4fdedd9271bab080241f6ba750993
2,699
py
Python
Python-AWS/aws/assumerolesaml.py
badrogh/centrify-aws-cli-utilities
f05cca95b643a79925d732368909afff6bb779aa
[ "Apache-2.0" ]
2
2020-04-01T21:45:19.000Z
2020-08-26T15:34:08.000Z
Python-AWS/aws/assumerolesaml.py
badrogh/centrify-aws-cli-utilities
f05cca95b643a79925d732368909afff6bb779aa
[ "Apache-2.0" ]
1
2021-03-11T15:13:45.000Z
2021-03-11T15:13:45.000Z
Python-AWS/aws/assumerolesaml.py
badrogh/centrify-aws-cli-utilities
f05cca95b643a79925d732368909afff6bb779aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Centrify Corporation # # 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 agree...
38.557143
105
0.668766
782115e85aeb0236bde8bf82f997e9890b125466
5,291
py
Python
src/pysss/pysss.py
mohamed/pysss
f910e8e8f0ff7504155a80d43c5d2d3932682d77
[ "BSD-3-Clause" ]
null
null
null
src/pysss/pysss.py
mohamed/pysss
f910e8e8f0ff7504155a80d43c5d2d3932682d77
[ "BSD-3-Clause" ]
null
null
null
src/pysss/pysss.py
mohamed/pysss
f910e8e8f0ff7504155a80d43c5d2d3932682d77
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ pysss: Shamir's secret sharing algorithm in Python Provides two methods: - split_secret() - reconstruct_secret() """ import time import random class MInt: """ Represents an integer in Galois Field p """ def __init__(self, num, prime): """Construct a integer n ...
29.232044
79
0.602911
4702a759f52b511d5796f1ade69834ffb97ae3b2
5,293
py
Python
server/actor_libs/base_test.py
stevenHewl/ActorCloud
d6db92619058cf8c1bfdd752a222530103d635fb
[ "Apache-2.0" ]
3
2020-12-17T01:20:34.000Z
2022-01-18T07:39:23.000Z
server/actor_libs/base_test.py
stevenHewl/ActorCloud
d6db92619058cf8c1bfdd752a222530103d635fb
[ "Apache-2.0" ]
1
2020-12-17T01:20:22.000Z
2020-12-17T02:07:42.000Z
server/actor_libs/base_test.py
stevenHewl/ActorCloud
d6db92619058cf8c1bfdd752a222530103d635fb
[ "Apache-2.0" ]
1
2020-12-03T02:00:02.000Z
2020-12-03T02:00:02.000Z
from __future__ import division import math import uuid import random import string import hashlib import unittest from datetime import datetime, timedelta from random import choice, randint, randrange, uniform from string import ascii_letters, digits import requests from app import create_app from app.services.base...
31.319527
87
0.584735
e3a3bc739df83b181b25b326caaf97737c0dac17
3,012
py
Python
pig-relay/truffle.py
broadbent/TENNISON
16a375839f209ccad0d15165d1409d6a65124bb4
[ "Apache-2.0" ]
15
2018-03-14T16:56:42.000Z
2021-06-01T08:10:57.000Z
pig-relay/truffle.py
broadbent/TENNISON
16a375839f209ccad0d15165d1409d6a65124bb4
[ "Apache-2.0" ]
13
2019-09-12T06:38:59.000Z
2021-07-19T09:08:38.000Z
pig-relay/truffle.py
SDN-Security/TENNISON
e156e3d84543427a201fbc3cb67f050cff4ed764
[ "Apache-2.0" ]
7
2018-10-16T15:03:51.000Z
2021-06-01T08:10:58.000Z
import sys import time import logging import signal import requests import json import threading from flask import Flask, jsonify, request, abort, make_response, current_app class TruffleServer(threading.Thread): """Server for managing Snort alerts.""" app = Flask(__name__) log = logging.getLogger('werkz...
25.525424
80
0.572045
333ef69d5e3773024b969525a0a5b13c6aa357b7
1,865
py
Python
mlir_tests/lit.cfg.py
isabella232/runtime
1f99e08f7c6348f16bfb212bfe605f7d9ca88e22
[ "Apache-2.0" ]
null
null
null
mlir_tests/lit.cfg.py
isabella232/runtime
1f99e08f7c6348f16bfb212bfe605f7d9ca88e22
[ "Apache-2.0" ]
1
2021-02-24T00:50:40.000Z
2021-02-24T00:50:40.000Z
mlir_tests/lit.cfg.py
isabella232/runtime
1f99e08f7c6348f16bfb212bfe605f7d9ca88e22
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Runtime Authors # # 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 ag...
33.909091
77
0.780161
1c457ce30654b4e60fe6ac59186a1c9d26859b54
10,225
py
Python
glance_docker/glance/common/auth.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "Apache-2.0" ]
null
null
null
glance_docker/glance/common/auth.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "Apache-2.0" ]
null
null
null
glance_docker/glance/common/auth.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # 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 requ...
34.897611
79
0.603619
d4b8bf256fdf43a7197c04d09fc7a10d61db2dd7
5,747
py
Python
kitsune/community/tests/test_templates.py
erdal-pb/kitsune
c3ba0e8650bb0f33c16cefffb90cb348586aea68
[ "BSD-3-Clause" ]
929
2015-01-04T08:08:51.000Z
2022-03-31T06:20:44.000Z
kitsune/community/tests/test_templates.py
erdal-pb/kitsune
c3ba0e8650bb0f33c16cefffb90cb348586aea68
[ "BSD-3-Clause" ]
1,751
2015-01-02T00:04:37.000Z
2022-03-31T10:24:30.000Z
kitsune/community/tests/test_templates.py
erdal-pb/kitsune
c3ba0e8650bb0f33c16cefffb90cb348586aea68
[ "BSD-3-Clause" ]
605
2015-01-01T14:08:36.000Z
2022-03-28T15:39:45.000Z
from nose.tools import eq_ from pyquery import PyQuery as pq from kitsune.forums.tests import ThreadFactory from kitsune.questions.tests import AnswerFactory from kitsune.search.tests import Elastic7TestCase from kitsune.sumo.templatetags.jinja_helpers import urlparams from kitsune.sumo.tests import LocalizingClient f...
35.257669
99
0.655298
36e99dd9dc227292f0707bf3e87a5d5785a41445
7,599
py
Python
train.py
yingtaoer/2021-ccf-bdci_text_summarization
d1f3498b6888a12ca1e35b760cde4a01a4f2a266
[ "MIT" ]
1
2022-03-09T05:15:03.000Z
2022-03-09T05:15:03.000Z
train.py
yingtaoer/2021-ccf-bdci_text_summarization
d1f3498b6888a12ca1e35b760cde4a01a4f2a266
[ "MIT" ]
null
null
null
train.py
yingtaoer/2021-ccf-bdci_text_summarization
d1f3498b6888a12ca1e35b760cde4a01a4f2a266
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np from tqdm import tqdm from bert4keras.backend import keras, K from bert4keras.layers import Loss from bert4keras.models import build_transformer_model from bert4keras.tokenizers import Tokenizer, load_vocab from bert4keras.optimizers import Adam from bert4keras.s...
30.2749
94
0.612317
0eba6caf1c8169d7da8a1278bbbf16c791873eda
60
py
Python
lectures/02-ipython/mod.py
mitchnegus/stat159-f17
c7c3d604b2b816af1c57870d2c5578f65ba9ce94
[ "CC-BY-4.0" ]
25
2017-09-05T10:07:45.000Z
2021-12-17T15:47:13.000Z
lectures/02-ipython/mod.py
mitchnegus/stat159-f17
c7c3d604b2b816af1c57870d2c5578f65ba9ce94
[ "CC-BY-4.0" ]
1
2017-10-04T07:43:52.000Z
2017-10-04T07:43:52.000Z
lectures/02-ipython/mod.py
mitchnegus/stat159-f17
c7c3d604b2b816af1c57870d2c5578f65ba9ce94
[ "CC-BY-4.0" ]
21
2017-09-05T16:41:37.000Z
2021-05-23T03:00:27.000Z
def f(x): return 1.0/(x-1) def g(y): return f(y+1)
10
20
0.483333
12a56e870b7dd77ddf9b13d59ab864596d755913
4,762
py
Python
userbot/plugins/warnbun.py
royalchauhan/X-tra-Telegram
6b396da930398e25eafb85c70a73a4315a550c97
[ "MIT" ]
1
2020-01-23T08:36:45.000Z
2020-01-23T08:36:45.000Z
userbot/plugins/warnbun.py
royalchauhan/X-tra-Telegram
6b396da930398e25eafb85c70a73a4315a550c97
[ "MIT" ]
null
null
null
userbot/plugins/warnbun.py
royalchauhan/X-tra-Telegram
6b396da930398e25eafb85c70a73a4315a550c97
[ "MIT" ]
null
null
null
""".admin Plugin for @UniBorg""" import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from userbot.utils import admin_cmd @borg.on(admin_cmd("warn1")) async def _(event): if event.fwd_from: return mentions = "`You Have 1/3 warnings...\nWatch out!....\nRe...
32.175676
167
0.701806
fdc6365708e7d7f74f9513261bcdccb5a06ff365
9,313
py
Python
main.py
chrisHuxi/CarND-Semantic-Segmentation
395dc2e0efc7e3317632e6f0aac617c5fb1fd4d8
[ "MIT" ]
null
null
null
main.py
chrisHuxi/CarND-Semantic-Segmentation
395dc2e0efc7e3317632e6f0aac617c5fb1fd4d8
[ "MIT" ]
null
null
null
main.py
chrisHuxi/CarND-Semantic-Segmentation
395dc2e0efc7e3317632e6f0aac617c5fb1fd4d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os.path import tensorflow as tf import helper import warnings from distutils.version import LooseVersion import project_tests as tests # Check TensorFlow Version assert LooseVersion(tf.__version__) >= LooseVersion('1.0'), 'Please use TensorFlow version 1.0 or newer. You are using {}'.fo...
45.429268
166
0.704284
56a5e8de7eda81a8a71722105e8f77f57179e81c
2,570
py
Python
src/deliver_to_firehose/lambda_function_cross_account.py
nicor88/aws-python-lambdas
6c03e5fd39ccac31367180aee01611b6541fe92f
[ "MIT" ]
8
2018-01-04T12:42:18.000Z
2022-03-10T20:53:23.000Z
src/deliver_to_firehose/lambda_function_cross_account.py
laurahamilton/aws-python-lambdas
6c03e5fd39ccac31367180aee01611b6541fe92f
[ "MIT" ]
null
null
null
src/deliver_to_firehose/lambda_function_cross_account.py
laurahamilton/aws-python-lambdas
6c03e5fd39ccac31367180aee01611b6541fe92f
[ "MIT" ]
9
2018-04-20T02:46:38.000Z
2020-09-01T17:13:16.000Z
import base64 import botocore.exceptions import os import boto3 import logging import json logger = logging.getLogger() logger.setLevel(logging.INFO) def lambda_handler(event, context): # config lambda variables logger.info(event) add_newline = os.environ['ADD_NEWLINE'] cross_account_role_arn = os.en...
38.939394
99
0.602335
5194c6067e161b2551b173f8a4ebeeaab93d3a1a
179
py
Python
experiments/elisa_paper_relevant/norming_full/experimentAdd_less5/createPreloadList.py
thegricean/overinformativeness
d20b66148c13af473b57cc4d1736191a49660349
[ "MIT" ]
1
2016-10-27T18:41:57.000Z
2016-10-27T18:41:57.000Z
experiments/elisa_paper_relevant/norming_full/experiment/createPreloadList.py
thegricean/overinformativeness
d20b66148c13af473b57cc4d1736191a49660349
[ "MIT" ]
9
2015-11-30T21:44:31.000Z
2020-04-21T01:26:05.000Z
experiments/elisa_paper_relevant/norming_full/experiment/createPreloadList.py
thegricean/overinformativeness
d20b66148c13af473b57cc4d1736191a49660349
[ "MIT" ]
2
2015-11-25T09:53:20.000Z
2017-03-17T21:51:18.000Z
import os print("\",\"images/".join(os.listdir("/Users/elisakreiss/Documents/stanford/study/overinformativeness/experiments/29_complete_typicality_norming/experiment/images")))
35.8
166
0.815642
9665608fea6d31f25d11a80aaf0916485adf3189
3,358
py
Python
engine/createjsonreport.py
laranea/SocialExpressApp
66d0823c602ce447996a6e1ae7ad0058391f6384
[ "MIT" ]
null
null
null
engine/createjsonreport.py
laranea/SocialExpressApp
66d0823c602ce447996a6e1ae7ad0058391f6384
[ "MIT" ]
null
null
null
engine/createjsonreport.py
laranea/SocialExpressApp
66d0823c602ce447996a6e1ae7ad0058391f6384
[ "MIT" ]
null
null
null
#!/usr/bin/env python import urllib2 import base64 import zlib import threading from threading import Lock from cStringIO import StringIO import json import sys from pprint import pprint import time import datetime import general_settings from twython import Twython from klout import KloutInfluence import tweeql.extra...
24.333333
148
0.708755
4c794e9f12cc49e9a858446d991e9f6256a1e0ed
445
py
Python
mne/realtime/__init__.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
2
2015-09-27T20:33:49.000Z
2020-04-22T19:10:56.000Z
mne/realtime/__init__.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
null
null
null
mne/realtime/__init__.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
1
2018-09-15T09:45:38.000Z
2018-09-15T09:45:38.000Z
""" Module for realtime MEG data using mne_rt_server """ # Authors: Christoph Dinh <chdinh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Mainak Jas <mainak@neuro.hut.fi> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # # License: BSD (3-clause) from .client import RtCli...
31.785714
56
0.725843
6d5d438b243a8ea70e384185ffeeef54352ada91
1,551
py
Python
app.py
busilogic/app-template
3a8a963535fd084bbe21197e6b4b098723ff5db1
[ "MIT" ]
1
2021-03-15T03:14:02.000Z
2021-03-15T03:14:02.000Z
app.py
busilogic/app-template
3a8a963535fd084bbe21197e6b4b098723ff5db1
[ "MIT" ]
null
null
null
app.py
busilogic/app-template
3a8a963535fd084bbe21197e6b4b098723ff5db1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import argparse from flask import Flask, make_response, render_template import app_config from render_utils import make_context, smarty_filter, urlencode_filter import static app = Flask(__name__) app.add_template_filter(smarty_filter, name='smarty') app.add_template_filter(urlenc...
24.234375
79
0.700838
923f890fbcce8eb73366f2acae209c09cd6ceb67
16,896
py
Python
examples/FasterRCNN/data.py
kdatta/tensorpack
963e5100aa2f91d3a4b02f809b2cfbb50be9094e
[ "Apache-2.0" ]
5
2020-10-16T07:11:24.000Z
2021-07-19T06:48:23.000Z
examples/FasterRCNN/data.py
kdatta/tensorpack
963e5100aa2f91d3a4b02f809b2cfbb50be9094e
[ "Apache-2.0" ]
2
2021-02-07T03:22:09.000Z
2021-05-06T07:28:41.000Z
examples/FasterRCNN/data.py
kdatta/tensorpack
963e5100aa2f91d3a4b02f809b2cfbb50be9094e
[ "Apache-2.0" ]
4
2020-12-25T20:24:30.000Z
2021-08-31T14:10:10.000Z
# -*- coding: utf-8 -*- # File: data.py import copy import itertools import numpy as np import cv2 from tabulate import tabulate from termcolor import colored from tensorpack.dataflow import ( DataFromList, MapData, MapDataComponent, MultiProcessMapData, MultiThreadMapData, TestDataSpeed, imgaug, ) from tenso...
41.109489
119
0.632813
1446096ac3d4cf05e7aa36e54cb1e52840dbd197
5,277
py
Python
model.py
chandlerbing65nm/Onboard-Satellite-Image-Classification
48ae57464f60892c148ed5552bd2a77eda302044
[ "MIT" ]
1
2021-09-07T16:27:41.000Z
2021-09-07T16:27:41.000Z
model.py
chandlerbing65nm/Onboard-Satellite-Image-Classification
48ae57464f60892c148ed5552bd2a77eda302044
[ "MIT" ]
null
null
null
model.py
chandlerbing65nm/Onboard-Satellite-Image-Classification
48ae57464f60892c148ed5552bd2a77eda302044
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Import the important packages # In[1]: import numpy as np from PIL import Image import os import matplotlib.pylab as plt import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras.layers import Dense from tensorflow.kera...
25.248804
141
0.648285
0ee507eb2715543e453fc4ec357f842b8d76fadb
4,139
py
Python
forms.py
larrycameron80/goSecure
8d2b8179e63d26640a46aa6475c4e13300ade55f
[ "CC0-1.0" ]
790
2016-05-01T17:18:22.000Z
2018-04-26T18:16:02.000Z
forms.py
rev10d/goSecure
8d2b8179e63d26640a46aa6475c4e13300ade55f
[ "CC0-1.0" ]
6
2016-06-22T14:16:37.000Z
2017-10-23T16:33:20.000Z
forms.py
rev10d/goSecure
8d2b8179e63d26640a46aa6475c4e13300ade55f
[ "CC0-1.0" ]
140
2016-05-01T04:50:46.000Z
2018-04-21T19:51:26.000Z
from flask.ext.wtf import Form from wtforms import ( PasswordField, SelectField, SubmitField, StringField, validators) from scripts.rpi_network_conn import get_wifi_list class loginForm(Form): username = StringField("Username", [validators.DataRequired("Please enter the username."), validators.Length(min=2, ...
72.614035
283
0.74704
253dc1c537420e35a6dd24f93d101691b196f5df
7,034
py
Python
packages/vaex-core/vaex/samp.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
337
2016-02-11T07:36:35.000Z
2018-12-10T07:17:35.000Z
packages/vaex-core/vaex/samp.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
127
2016-07-06T15:43:14.000Z
2018-12-11T18:46:27.000Z
packages/vaex-core/vaex/samp.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
29
2016-10-05T14:15:28.000Z
2018-11-29T10:17:00.000Z
# -*- coding: utf-8 -*- # from sampy import * # from SocketServer import ThreadingMixIn # try: # import sampy # except ImportError: # import astropy.samp as sampy import logging import threading import time import astropy.samp import getpass import requests from requests.auth import HTTPBasicAuth import astropy.io.vota...
37.216931
131
0.627239
0da3c5038926caf147213d2555f6e883e55bdc48
47,039
py
Python
simpletransformers/seq2seq/seq2seq_model.py
taranais/simpletransformers
36b2519cad5d8beed1f1726fa9b1163eb52286f0
[ "Apache-2.0" ]
2
2020-09-14T07:40:14.000Z
2021-04-12T06:14:48.000Z
simpletransformers/seq2seq/seq2seq_model.py
taranais/simpletransformers
36b2519cad5d8beed1f1726fa9b1163eb52286f0
[ "Apache-2.0" ]
1
2020-05-31T22:54:58.000Z
2020-05-31T22:54:58.000Z
simpletransformers/seq2seq/seq2seq_model.py
taranais/simpletransformers
36b2519cad5d8beed1f1726fa9b1163eb52286f0
[ "Apache-2.0" ]
null
null
null
import json import logging import math import os import random import warnings from multiprocessing import cpu_count, Pool from pathlib import Path from dataclasses import asdict import numpy as np from tqdm.auto import tqdm, trange import pandas as pd import torch from simpletransformers.config.global_args import gl...
46.665675
227
0.584281
799f51a75c83c9b83d091dbe7e5acf3b79433c6b
19,469
py
Python
microsoft/testsuites/core/storage.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
48
2018-05-19T17:46:34.000Z
2020-09-28T21:09:06.000Z
microsoft/testsuites/core/storage.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
1,261
2018-05-17T04:32:22.000Z
2020-11-23T17:29:13.000Z
microsoft/testsuites/core/storage.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
133
2018-05-15T23:12:14.000Z
2020-11-13T10:37:49.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import re from pathlib import PurePosixPath from typing import Any, Pattern from assertpy.assertpy import assert_that from lisa import ( Logger, RemoteNode, TestCaseMetadata, TestSuite, TestSuiteMetadata, simple_requirem...
39.252016
88
0.637629
779ab358d097f0a740149e50cd27e47546fe025d
1,852
py
Python
effdet/factory.py
tezike/efficientdet-pytorch
4b88f3b6eb693643dfff74bb3df8b36b267c41bf
[ "Apache-2.0" ]
null
null
null
effdet/factory.py
tezike/efficientdet-pytorch
4b88f3b6eb693643dfff74bb3df8b36b267c41bf
[ "Apache-2.0" ]
null
null
null
effdet/factory.py
tezike/efficientdet-pytorch
4b88f3b6eb693643dfff74bb3df8b36b267c41bf
[ "Apache-2.0" ]
null
null
null
from .efficientdet import EfficientDet from .bench import DetBenchTrain, DetBenchPredict from .config import get_efficientdet_config from .helpers import load_pretrained, load_checkpoint def create_model(model_name, bench_task='', pretrained=False, checkpoint_path='', **kwargs): config = get_efficientdet_config(m...
35.615385
102
0.726242
c12f64305489e4a56ece755691d5313bd30d6f12
5,083
py
Python
cyclone/httpclient.py
shirk3y/cyclone
49eb634d36a3f5d3cbe430a043cb2e1255a82c30
[ "Apache-2.0" ]
2
2015-05-29T22:43:09.000Z
2017-04-07T07:51:27.000Z
cyclone/httpclient.py
shirk3y/cyclone
49eb634d36a3f5d3cbe430a043cb2e1255a82c30
[ "Apache-2.0" ]
null
null
null
cyclone/httpclient.py
shirk3y/cyclone
49eb634d36a3f5d3cbe430a043cb2e1255a82c30
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2010 Alexandre Fiori # based on the original Tornado by Facebook # # 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...
30.620482
79
0.598662
a72eb84379ae6f5f78f32b8028e7ef272f8312b9
5,171
py
Python
docs/conf.py
aberriel/clean_architecture_basic_classes
d46b7ae6f3e2e1139598f5b0d4b90956fd633691
[ "MIT" ]
null
null
null
docs/conf.py
aberriel/clean_architecture_basic_classes
d46b7ae6f3e2e1139598f5b0d4b90956fd633691
[ "MIT" ]
null
null
null
docs/conf.py
aberriel/clean_architecture_basic_classes
d46b7ae6f3e2e1139598f5b0d4b90956fd633691
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # clean_architecture_basic_classes documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
31.723926
85
0.704119
2f5009e68c8f1047ff250bb5c4212f4eee035862
2,253
py
Python
v1.0.0.test/toontown/catalog/CatalogSurfaceColors.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v1.0.0.test/toontown/catalog/CatalogSurfaceColors.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/catalog/CatalogSurfaceColors.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
CT_WHITE = (1.0, 1.0, 1.0, 1.0) CT_RED = (1.0, 0.5, 0.5, 1.0) CT_BROWN = (0.641, 0.355, 0.27, 1.0) CT_CANTELOPE = (0.839, 0.651, 0.549, 1.0) CT_TAN = (0.996, 0.695, 0.512, 1.0) CT_ORANGE = (0.992, 0.48, 0.168, 1.0) CT_CORAL = (0.832, 0.5, 0.297, 1.0) CT_PEACH = (1.0, 0.82, 0.7, 1.0) CT_BEIGE = (1.0, 0.8, 0.6, 1.0) CT_T...
30.04
46
0.613848
79bf8747ddc03295e37bfc7f18bdeff31aef061a
3,594
py
Python
bindings/python/ensmallen/datasets/string/mycobacteriumthermoresistibile.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/mycobacteriumthermoresistibile.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/mycobacteriumthermoresistibile.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Mycobacterium thermoresistibile. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein...
33.277778
223
0.681692
db339d2ba212cac267b45b3a317c95574e02ce2a
3,713
py
Python
library/shared/content_providers/source2_content_provider.py
BlenderAddonsArchive/SourceIO
7e29de15e7b9a3db538bcdf805547d1781fce3c9
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
library/shared/content_providers/source2_content_provider.py
BlenderAddonsArchive/SourceIO
7e29de15e7b9a3db538bcdf805547d1781fce3c9
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
library/shared/content_providers/source2_content_provider.py
BlenderAddonsArchive/SourceIO
7e29de15e7b9a3db538bcdf805547d1781fce3c9
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
from pathlib import Path from typing import List, Union from ...utils.s1_keyvalues import KVParser from .content_provider_base import ContentProviderBase class GameinfoContentProvider(ContentProviderBase): path_cache: List[Path] = [] @classmethod def add_new_path(cls, path): cls.path_cache.appen...
37.505051
106
0.597361
a1823a7b8221c6db6fa4ea2541fff30740bbc230
1,063
py
Python
src/libs/simple_bar.py
ChengShusss/mgp
e3aa62bbab5aa03a546a75a86edf386220dfd456
[ "MIT" ]
null
null
null
src/libs/simple_bar.py
ChengShusss/mgp
e3aa62bbab5aa03a546a75a86edf386220dfd456
[ "MIT" ]
null
null
null
src/libs/simple_bar.py
ChengShusss/mgp
e3aa62bbab5aa03a546a75a86edf386220dfd456
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # -*- coding: utf-8 -*- """ src: """ import matplotlib.pyplot as plt import random def plot_simple_bar(x, y, config): # 加载配置 width = config.get("width", 0.8) title = config.get("title", "default title") color_map = config.get("color_list", ['red' for _ in x]) y_lim = co...
19.327273
60
0.546566
d8dc954c50c9bee0d1e3ff1f88a3df23db658f7b
1,108
py
Python
CV/classification/COFFFEE_GROUP/Code/my_data.py
showmonki/learn_notes
8a416e0294170e242c40d16370e8f42ec9ae8582
[ "MIT" ]
null
null
null
CV/classification/COFFFEE_GROUP/Code/my_data.py
showmonki/learn_notes
8a416e0294170e242c40d16370e8f42ec9ae8582
[ "MIT" ]
null
null
null
CV/classification/COFFFEE_GROUP/Code/my_data.py
showmonki/learn_notes
8a416e0294170e242c40d16370e8f42ec9ae8582
[ "MIT" ]
null
null
null
import numpy as np from tensorflow.keras.utils import to_categorical def load_train_data(dim, image_path): from os import listdir imgs = listdir(image_path) if '.DS_Store' in imgs: imgs.remove('.DS_Store') ids_all = [] num_classes = len(imgs) label_dict = dict(zip(imgs, range(num_classes))) for label in imgs...
28.410256
124
0.730144
db4e6bd7b8a855d508ee1bffb8559a5c4cd2f076
312
py
Python
core/Singleton.py
salcho/Antares
dbd5fc1c13d020015fa432723ca3a66f1af8be1d
[ "MIT" ]
3
2016-09-07T15:09:23.000Z
2021-01-26T02:44:15.000Z
core/Singleton.py
salcho/Antares
dbd5fc1c13d020015fa432723ca3a66f1af8be1d
[ "MIT" ]
null
null
null
core/Singleton.py
salcho/Antares
dbd5fc1c13d020015fa432723ca3a66f1af8be1d
[ "MIT" ]
1
2016-09-01T02:15:41.000Z
2016-09-01T02:15:41.000Z
''' Created on Apr 7, 2014 @author: user ''' class Singleton(type): ''' Singleton interface ''' def __call__(cls, *args, **kwargs): if not hasattr(cls, 'instance'): cls.instance = super(Singleton, cls).__call__(*args, **kwargs) return cls.instance
18.352941
74
0.554487
d6dc72e77270a59acc586edcb2ff507e0b0747b5
403
py
Python
backend/ListenApiDemo/wsgi.py
arkadyark/ListenApiDemo-1
e1a5926fa13bc75214dc91bdd4c80392472b47fd
[ "Apache-2.0" ]
51
2018-10-13T02:33:21.000Z
2022-03-20T15:46:44.000Z
backend/ListenApiDemo/wsgi.py
arkadyark/ListenApiDemo-1
e1a5926fa13bc75214dc91bdd4c80392472b47fd
[ "Apache-2.0" ]
18
2019-12-28T04:33:27.000Z
2021-03-25T01:44:00.000Z
backend/ListenApiDemo/wsgi.py
arkadyark/ListenApiDemo-1
e1a5926fa13bc75214dc91bdd4c80392472b47fd
[ "Apache-2.0" ]
9
2018-10-03T15:56:33.000Z
2022-03-23T03:04:52.000Z
""" WSGI config for ListenApiDemo project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
e57017b1ecad93b2b5fa12a9d7ce381c3ba00d36
294
py
Python
node_debugger/commands/start_debugger.py
DeniSix/SublimeNodeStacktrace
381f10d77d0d45d79e4937ff2c8b715bbfbb3bac
[ "MIT" ]
1
2015-07-04T14:12:26.000Z
2015-07-04T14:12:26.000Z
node_debugger/commands/start_debugger.py
DeniSix/SublimeNodeStacktrace
381f10d77d0d45d79e4937ff2c8b715bbfbb3bac
[ "MIT" ]
null
null
null
node_debugger/commands/start_debugger.py
DeniSix/SublimeNodeStacktrace
381f10d77d0d45d79e4937ff2c8b715bbfbb3bac
[ "MIT" ]
null
null
null
import sublime, sublime_plugin from .. import logger log = logger.get('cmd_start_debugger') class NodeDebuggerStartCommand(sublime_plugin.WindowCommand): def run(self, shell_cmd): self.window.run_command('exec', {'shell_cmd': shell_cmd}) self.window.run_command('node_debugger_attach')
26.727273
61
0.789116
12ef5161480625008154c10acab64d93f50c68f5
201
py
Python
image_gallery/urls.py
AaganMaskey/NCIT
6f45f6210559ed97178b47000a570f25a9f71314
[ "MIT" ]
4
2020-04-22T16:39:07.000Z
2021-06-02T08:02:35.000Z
image_gallery/urls.py
AaganMaskey/NCIT
6f45f6210559ed97178b47000a570f25a9f71314
[ "MIT" ]
6
2021-03-30T13:04:08.000Z
2022-03-12T00:24:27.000Z
image_gallery/urls.py
AaganMaskey/NCIT
6f45f6210559ed97178b47000a570f25a9f71314
[ "MIT" ]
5
2020-05-16T12:08:46.000Z
2020-12-30T01:59:45.000Z
from django.urls import path from .views import gallery """ This module contains all the possible urls configured for image_gallery app. """ urlpatterns = [ path('', gallery, name='gallery') ]
16.75
77
0.716418
66a463b4a9bd5bdb3f56547613b573329968b2dd
1,666
py
Python
atlas/logger.py
GainiK/Atlas-1
e2015f67cb5b868289025058b48b102c02aba417
[ "Apache-2.0" ]
null
null
null
atlas/logger.py
GainiK/Atlas-1
e2015f67cb5b868289025058b48b102c02aba417
[ "Apache-2.0" ]
null
null
null
atlas/logger.py
GainiK/Atlas-1
e2015f67cb5b868289025058b48b102c02aba417
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Magic Leap, 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 required by applicable law or agreed to in writing...
31.433962
74
0.706483
9579af836c5ec42f6438c29cda86ff3991ca7a6a
6,486
py
Python
python/ray/tune/sync_client.py
bharatpn/ray
bac6f3b61e09c0647f0c6dcee18ff642e9958efc
[ "Apache-2.0" ]
1
2020-04-03T14:54:19.000Z
2020-04-03T14:54:19.000Z
python/ray/tune/sync_client.py
bharatpn/ray
bac6f3b61e09c0647f0c6dcee18ff642e9958efc
[ "Apache-2.0" ]
null
null
null
python/ray/tune/sync_client.py
bharatpn/ray
bac6f3b61e09c0647f0c6dcee18ff642e9958efc
[ "Apache-2.0" ]
1
2020-04-03T14:53:36.000Z
2020-04-03T14:53:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import distutils import distutils.spawn import logging import subprocess import tempfile import types try: # py3 from shlex import quote except ImportError: # py2 from pipes import quote from ray.tun...
31.485437
79
0.642152
852fce4bb201def9e9a23c029d4be475c7ad1c0c
37,949
py
Python
stagpy/stagyyparsers.py
ikason/StagPy
cd79a287e5c31a7704dbf01f1a3d8ea238c7e6b9
[ "Apache-2.0" ]
null
null
null
stagpy/stagyyparsers.py
ikason/StagPy
cd79a287e5c31a7704dbf01f1a3d8ea238c7e6b9
[ "Apache-2.0" ]
null
null
null
stagpy/stagyyparsers.py
ikason/StagPy
cd79a287e5c31a7704dbf01f1a3d8ea238c7e6b9
[ "Apache-2.0" ]
null
null
null
"""Parsers of StagYY output files. Note: These functions are low level utilities. You should not use these unless you know what you are doing. To access StagYY output data, use an instance of :class:`~stagpy.stagyydata.StagyyData`. """ from functools import partial from itertools import product from operat...
35.499532
86
0.559725
329c8491fa2e61e113631df5a97eeca0e45af5c7
182
py
Python
src/grokcore/component/tests/order/inter2.py
bielbienne/grokcore.component
575276af7ef7575698c497a21f4ae7732fdc61bd
[ "ZPL-2.1" ]
null
null
null
src/grokcore/component/tests/order/inter2.py
bielbienne/grokcore.component
575276af7ef7575698c497a21f4ae7732fdc61bd
[ "ZPL-2.1" ]
null
null
null
src/grokcore/component/tests/order/inter2.py
bielbienne/grokcore.component
575276af7ef7575698c497a21f4ae7732fdc61bd
[ "ZPL-2.1" ]
null
null
null
""" This module used by inter1 tests """ import grokcore.component as grok class Four(object): grok.order(1) class Five(object): pass class Six(object): grok.order()
12.133333
33
0.675824
a04c1f554e9ca91d58b54d1569383551c176c53c
264
py
Python
oauthlib_extras/oauth2/__init__.py
Innoactive/oauthlib-extras
158637c9c68bb7d77b967dc66e651681806f038b
[ "MIT" ]
null
null
null
oauthlib_extras/oauth2/__init__.py
Innoactive/oauthlib-extras
158637c9c68bb7d77b967dc66e651681806f038b
[ "MIT" ]
null
null
null
oauthlib_extras/oauth2/__init__.py
Innoactive/oauthlib-extras
158637c9c68bb7d77b967dc66e651681806f038b
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals from .extras.clients import WebApplicationPushClient from .extras.grant_types import AuthorizationCodePushGrant from .extras.endpoints import Server from .extras.errors import MalformedResponsePushCodeError
44
58
0.886364
0dee87d5c14af3ca64a4795c954ca7ea88907dfb
5,561
py
Python
worker/run.py
rantwijk/starthinker
fd2d70e39f05cb29afc65b8a78ea38441e1e2b9a
[ "Apache-2.0" ]
null
null
null
worker/run.py
rantwijk/starthinker
fd2d70e39f05cb29afc65b8a78ea38441e1e2b9a
[ "Apache-2.0" ]
204
2019-08-29T04:58:17.000Z
2021-07-30T04:27:07.000Z
worker/run.py
rantwijk/starthinker
fd2d70e39f05cb29afc65b8a78ea38441e1e2b9a
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2017 Google 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 # # https://www.apache.org/...
37.829932
133
0.664089
428e4e16ec163599b421acc10e382e1601665adf
2,526
py
Python
cern_access/indico_cern_access/models/access_requests.py
plourenco/indico-plugins-cern
5be71a552825afdd93a3bc7e7141335b8559c41a
[ "MIT" ]
null
null
null
cern_access/indico_cern_access/models/access_requests.py
plourenco/indico-plugins-cern
5be71a552825afdd93a3bc7e7141335b8559c41a
[ "MIT" ]
null
null
null
cern_access/indico_cern_access/models/access_requests.py
plourenco/indico-plugins-cern
5be71a552825afdd93a3bc7e7141335b8559c41a
[ "MIT" ]
null
null
null
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2020 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from sqlalchemy.ext.hybrid...
26.589474
101
0.671813
305bf461a5162bb3cef7c5169414d6109d529a1a
5,695
py
Python
swagger_client/models/private_trend_tabular_response_data.py
Investabit/investabit-python-sdk
ba274bc08e9bbbde213902da7ca343e1569833f6
[ "MIT" ]
null
null
null
swagger_client/models/private_trend_tabular_response_data.py
Investabit/investabit-python-sdk
ba274bc08e9bbbde213902da7ca343e1569833f6
[ "MIT" ]
null
null
null
swagger_client/models/private_trend_tabular_response_data.py
Investabit/investabit-python-sdk
ba274bc08e9bbbde213902da7ca343e1569833f6
[ "MIT" ]
null
null
null
# coding: utf-8 """ CryptoWeather The CryptoWeather API allows for access to all of the cryptocurrency data and market forecast services provided. There are two primary categories of routes, `public` and `private`, where `public` routes are accessible to the general public and do not require API authenticatio...
48.675214
2,234
0.646708
590fc4576522f5c8ed37049b5d5c894af6047db4
19,203
py
Python
test/with_dummyserver/test_connectionpool.py
dstufft/urllib3
4dcae8579994b171959590319a29f3ea8e0dc823
[ "MIT" ]
null
null
null
test/with_dummyserver/test_connectionpool.py
dstufft/urllib3
4dcae8579994b171959590319a29f3ea8e0dc823
[ "MIT" ]
null
null
null
test/with_dummyserver/test_connectionpool.py
dstufft/urllib3
4dcae8579994b171959590319a29f3ea8e0dc823
[ "MIT" ]
null
null
null
import logging import socket import sys import unittest import mock try: from urllib.parse import urlencode except: from urllib import urlencode from urllib3 import ( encode_multipart_formdata, HTTPConnectionPool, ) from urllib3.exceptions import ( ConnectTimeoutError, EmptyPoolError, Dec...
37.071429
111
0.607093
64279e125a9c2b13e7323be268c8d7bc8d2f8bbb
716
py
Python
tests/test_utils.py
ethanluoyc/statsnba-playbyplay
4f2b94f94eae0eb6ed7f08d40b0d198fba24909d
[ "MIT" ]
47
2016-03-09T15:56:20.000Z
2021-12-08T18:07:59.000Z
tests/test_utils.py
ethanluoyc/statsnba-playbyplay
4f2b94f94eae0eb6ed7f08d40b0d198fba24909d
[ "MIT" ]
6
2017-04-01T22:01:30.000Z
2021-03-25T21:40:21.000Z
tests/test_utils.py
ethanluoyc/statsnba-playbyplay
4f2b94f94eae0eb6ed7f08d40b0d198fba24909d
[ "MIT" ]
14
2016-03-09T15:56:23.000Z
2020-07-24T13:06:15.000Z
from os import path import pytest from statsnba.utils import make_season, convert_resultset SAMPLEDATA_DIR = path.join(path.dirname(__file__), 'sample_data/') @pytest.fixture() def gamelog_data(request): sample_data = open(path.join(SAMPLEDATA_DIR, 'leaguegamelog.json'), 'r') return sample_data def test_ma...
26.518519
76
0.731844
70574bb73a270be978366467dc632db98f9f0c65
4,681
py
Python
src/Settings.py
paulber/PereBlaiseBot
253b5850c4238bafae2f16816e9bec36a72bf439
[ "Apache-2.0" ]
1
2018-06-04T12:35:06.000Z
2018-06-04T12:35:06.000Z
src/Settings.py
paulber/PereBlaiseBot
253b5850c4238bafae2f16816e9bec36a72bf439
[ "Apache-2.0" ]
null
null
null
src/Settings.py
paulber/PereBlaiseBot
253b5850c4238bafae2f16816e9bec36a72bf439
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta from src.CharacterDBHandler import CharacterDBHandler from src.DbHandler import DbHandler class SettingsHandler: pattern = "%d/%m/%Y - %H:%M" key_start_time = "start_time" key_current_time = "current_time" key_players = "players" key_settings = 'settings' ...
35.462121
119
0.563555
f07553840dabf14ca3500856fc7d1fb6980b304f
2,426
py
Python
pyfacebook/api/facebook/resource/business.py
sns-sdks/python-facebook
9536d30393dee8b2a887b81f103d76262a677eee
[ "Apache-2.0" ]
181
2019-08-28T10:03:49.000Z
2022-03-26T19:36:05.000Z
pyfacebook/api/facebook/resource/business.py
sns-sdks/python-facebook
9536d30393dee8b2a887b81f103d76262a677eee
[ "Apache-2.0" ]
159
2019-08-28T10:07:43.000Z
2022-03-30T16:42:23.000Z
pyfacebook/api/facebook/resource/business.py
sns-sdks/python-facebook
9536d30393dee8b2a887b81f103d76262a677eee
[ "Apache-2.0" ]
40
2019-09-10T20:12:47.000Z
2022-03-12T16:16:46.000Z
""" Apis for business. """ from typing import Dict, Optional, Union import pyfacebook.utils.constant as const from pyfacebook.api.base_resource import BaseResource from pyfacebook.models.business import Business from pyfacebook.utils.params_utils import enf_comma_separated class FacebookBusiness(BaseResource): ...
32.783784
88
0.617065
589fd46f599b80c8252ecf39e4aebd4ea35eb4e0
1,353
py
Python
scripts/compile_mjml.py
rigrig/jfa-go
a1bbf13d6a5d2dd53988cd0a04b0f66e6dd9c003
[ "MIT" ]
null
null
null
scripts/compile_mjml.py
rigrig/jfa-go
a1bbf13d6a5d2dd53988cd0a04b0f66e6dd9c003
[ "MIT" ]
null
null
null
scripts/compile_mjml.py
rigrig/jfa-go
a1bbf13d6a5d2dd53988cd0a04b0f66e6dd9c003
[ "MIT" ]
null
null
null
import subprocess import shutil import os import argparse from pathlib import Path parser = argparse.ArgumentParser() parser.add_argument("-o", "--output", help="output directory for .html and .txt files") args = parser.parse_args() def runcmd(cmd): if os.name == "nt": return subprocess.check_output(cmd,...
30.75
98
0.658537
d89b37bd344abf1b5d2cd7795b7cdc818765355d
1,051
py
Python
conky/ascii-clock.py
vEnhance/dotfiles
a9464a59124e7b0e039265869713014c0d5c2efc
[ "BSL-1.0" ]
90
2016-04-14T15:25:14.000Z
2022-03-18T11:21:39.000Z
conky/ascii-clock.py
vEnhance/dotfiles
a9464a59124e7b0e039265869713014c0d5c2efc
[ "BSL-1.0" ]
null
null
null
conky/ascii-clock.py
vEnhance/dotfiles
a9464a59124e7b0e039265869713014c0d5c2efc
[ "BSL-1.0" ]
132
2016-01-25T00:12:42.000Z
2022-03-24T20:21:27.000Z
#!/bin/python import datetime from typing import Any, List now = datetime.datetime.now() hour = now.hour % 12 minute = now.minute second = now.second data: List[List[Any]] = [ [52.5, 55, 57.5, 0, 2.5, 5, 7.5], [50, None, 'E', '0', '1', None, 10], [47.5, 'T', None, None, None, '2', 12.5], [45, '9', None, None, N...
21.02
49
0.500476
00842c2feb22f5c2d02d3e15991315b3f524cea0
1,887
py
Python
session1/a_word_cloud.py
martagaldys/MACT20.21_Digital_tools_Big_Data_part_1
06acbaba5509f46bce2d5da5d987351f854c149a
[ "Apache-2.0" ]
null
null
null
session1/a_word_cloud.py
martagaldys/MACT20.21_Digital_tools_Big_Data_part_1
06acbaba5509f46bce2d5da5d987351f854c149a
[ "Apache-2.0" ]
null
null
null
session1/a_word_cloud.py
martagaldys/MACT20.21_Digital_tools_Big_Data_part_1
06acbaba5509f46bce2d5da5d987351f854c149a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ################################################## # This script summarises text variables by creating wordclouds. It uses a python library that needs to be installed # in the virtual environment beforehand through anaconda. This exercise aims to show the basic analysis tool # used for text as well a...
36.288462
320
0.694224
7a2a32ce4be39c7376f4793af8bbe3b3a2f109d4
8,251
py
Python
midi_ddsp/modules/ddsp_inference.py
AK391/midi-ddsp
199623e0e24e48417cf53caaa01a4097d102cb52
[ "Apache-2.0" ]
null
null
null
midi_ddsp/modules/ddsp_inference.py
AK391/midi-ddsp
199623e0e24e48417cf53caaa01a4097d102cb52
[ "Apache-2.0" ]
null
null
null
midi_ddsp/modules/ddsp_inference.py
AK391/midi-ddsp
199623e0e24e48417cf53caaa01a4097d102cb52
[ "Apache-2.0" ]
null
null
null
"""Model class for DDSP Inference module used in MIDI-DDSP.""" import tensorflow as tf import ddsp from midi_ddsp.utils.audio_io import tf_log_mel from midi_ddsp.data_handling.instrument_name_utils import NUM_INST from ddsp.training import nn from ddsp.spectral_ops import F0_RANGE, LD_RANGE tfk = tf.keras tfkl = tfk....
33.815574
78
0.662344
218fa1403c6a4a5b551f7273e2ded5b64319f17d
2,562
py
Python
api/questions/question_crud.py
KengoWada/stackoverflow-clone
b74be0d030cb1ab24b620702cc9901a23ea10915
[ "MIT" ]
2
2021-06-08T08:53:54.000Z
2021-06-08T09:27:13.000Z
api/questions/question_crud.py
KengoWada/stackoverflow-clone
b74be0d030cb1ab24b620702cc9901a23ea10915
[ "MIT" ]
null
null
null
api/questions/question_crud.py
KengoWada/stackoverflow-clone
b74be0d030cb1ab24b620702cc9901a23ea10915
[ "MIT" ]
null
null
null
from api import db from api.models import Question from flask import jsonify, request from flask_jwt_extended import current_user from .validators import validate_question def create(): data = request.get_json() result = validate_question(data) if not result['is_valid']: response = {'message': '...
28.153846
76
0.663934
c42ff685a9ec44bd81127a5d03668687b99137f4
8,124
py
Python
netharn/util/__init__.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
netharn/util/__init__.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
netharn/util/__init__.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
""" mkinit netharn.util """ from __future__ import absolute_import, division, print_function, unicode_literals __DYNAMIC__ = False if __DYNAMIC__: import mkinit exec(mkinit.dynamic_init(__name__)) else: # <AUTOGEN_INIT> from netharn.util import imutil from netharn.util import mplutil from netha...
61.082707
83
0.587149
8d073d4725fed1da898e58265c96b07b2f113da7
5,306
py
Python
rlbottraining/history/website/server.py
aydensutt/RLBotTraining
e98d7f09971bfd02012bad98e54b882dc059ec8a
[ "MIT" ]
9
2019-01-27T11:59:28.000Z
2022-03-21T10:20:17.000Z
rlbottraining/history/website/server.py
aydensutt/RLBotTraining
e98d7f09971bfd02012bad98e54b882dc059ec8a
[ "MIT" ]
8
2019-01-10T17:42:54.000Z
2020-02-25T02:19:58.000Z
rlbottraining/history/website/server.py
aydensutt/RLBotTraining
e98d7f09971bfd02012bad98e54b882dc059ec8a
[ "MIT" ]
7
2019-01-03T14:19:10.000Z
2021-06-30T04:27:59.000Z
import os import json from typing import List, Dict, Callable, Iterable from dataclasses import dataclass, field import shutil from pathlib import Path import inspect from rlbot.utils.class_importer import load_external_module from rlbottraining.history.exercise_result import ExerciseResultJson from rlbottraining.his...
39.597015
114
0.689031
6270c293a58ed5c1288a8382fd4ccf526c635dde
1,128
py
Python
beastx/modules/emojis.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
11
2021-11-07T12:04:20.000Z
2022-03-10T10:32:59.000Z
beastx/modules/emojis.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
null
null
null
beastx/modules/emojis.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
114
2021-11-07T13:11:19.000Z
2022-03-31T02:00:04.000Z
"""Emoji Available Commands: .emoji shrug .emoji apple .emoji :/ .emoji -_-""" import asyncio from . import * @beast.on(beastx_cmd(pattern="emoji (.*)")) async def _(event): if event.fwd_from: return animation_interval = 0.3 animation_ttl = range(0, 16) input_str = event.pattern_...
26.857143
53
0.560284
5ab78f37bcf6e7d17599b26b017933dc163160dd
504
py
Python
scripts/prune-host-json.py
astrocatalogs/tidaldisruptions
87558308b09c4d08a20dec141e438ccbcddb491b
[ "MIT" ]
2
2018-11-18T21:17:29.000Z
2022-01-25T18:29:10.000Z
scripts/prune-host-json.py
astrocatalogs/tidaldisruptions
87558308b09c4d08a20dec141e438ccbcddb491b
[ "MIT" ]
5
2016-11-01T13:31:06.000Z
2022-03-28T18:35:21.000Z
scripts/prune-host-json.py
astrocatalogs/tidaldisruptions
87558308b09c4d08a20dec141e438ccbcddb491b
[ "MIT" ]
1
2022-03-17T23:26:36.000Z
2022-03-17T23:26:36.000Z
import json # with open('../names', 'r') as f: # names = f.read().splitlines() with open('../hostimgs.json', 'r') as f: hostimgs = json.loads(f.read()) count = 0 newhostimgs = [] for ei, entry in enumerate(hostimgs): if entry[1] == 'SDSS': # if entry[0] not in names: count = count + 1 ...
21.913043
72
0.593254
61f66600b9a19f16a63136cba9542951a39f69be
382
py
Python
custom_components/templatebinarysensor/const.py
cameronkelley/templatebinarysensor
91e79e8b73d8074aea43568d22647e392672f66a
[ "MIT" ]
null
null
null
custom_components/templatebinarysensor/const.py
cameronkelley/templatebinarysensor
91e79e8b73d8074aea43568d22647e392672f66a
[ "MIT" ]
1
2021-11-11T12:35:19.000Z
2021-11-11T12:35:19.000Z
custom_components/templatebinarysensor/const.py
cameronkelley/templatebinarysensor
91e79e8b73d8074aea43568d22647e392672f66a
[ "MIT" ]
4
2020-04-16T09:48:24.000Z
2021-06-03T14:26:43.000Z
"""Constants for templatebinarysensor.""" # Base component constants DOMAIN = "templatebinarysensor" DOMAIN_DATA = f"{DOMAIN}_data" VERSION = "0.0.2" PLATFORMS = ["binary_sensor"] REQUIRED_FILES = [ ".translations/en.json", "const.py", "config_flow.py", "manifest.json", "binary_sensor.py", ] ISSUE_U...
25.466667
68
0.706806
ffab5b45e257c7c9c20f42f4cc9a041c9eb02d71
8,982
py
Python
currency/tests.py
Boring-Mind/bank-transactions
e537114c0dd1402c9beb579d78c31519cb6da64b
[ "MIT" ]
null
null
null
currency/tests.py
Boring-Mind/bank-transactions
e537114c0dd1402c9beb579d78c31519cb6da64b
[ "MIT" ]
3
2021-06-04T23:47:36.000Z
2021-09-22T19:30:21.000Z
currency/tests.py
Boring-Mind/bank-transactions
e537114c0dd1402c9beb579d78c31519cb6da64b
[ "MIT" ]
null
null
null
from contextlib import contextmanager from unittest import mock import pytest from django.conf import settings from django.test import TestCase from .exchange_rates import (convert_currencies, parse_currencies_to_params, retrieve_rates, update_rates) from .models import Currency from .set...
28.514286
76
0.579047
38a93c1ed79911fb9a36c66d0822522dbf658d48
3,918
py
Python
Data_preprocessing/score_stages.py
bereketeshete/DeepLearning
bc41249d729f9f6d70d8c1205fe87d512b890a74
[ "MIT" ]
22
2019-12-17T12:41:35.000Z
2022-03-04T03:31:19.000Z
Data_preprocessing/score_stages.py
bereketeshete/DeepLearning
bc41249d729f9f6d70d8c1205fe87d512b890a74
[ "MIT" ]
6
2020-06-12T09:30:03.000Z
2021-12-07T11:56:30.000Z
Data_preprocessing/score_stages.py
bereketeshete/DeepLearning
bc41249d729f9f6d70d8c1205fe87d512b890a74
[ "MIT" ]
7
2020-05-10T07:22:48.000Z
2022-03-21T08:22:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Sep 10 14:36:19 2019 @author: ruiyan """ import os import math import torch from torch.utils.data import DataLoader from skimage import transform,io from PIL import Image import numpy as np from skimage.measure import compare_ssim import warnings impor...
27.02069
78
0.607963
b084e0eddc5df6daf5ad873a38cc844992350301
950
py
Python
examples/quick_example_with_json.py
DMALab/open-box
675710ba9980933dd3dc697e4214e9724ca04e5a
[ "MIT" ]
8
2020-07-03T14:00:49.000Z
2021-03-27T11:55:27.000Z
examples/quick_example_with_json.py
ZongWei-HUST/open-box
011791aba4e44b20a6544020c73601638886d143
[ "MIT" ]
1
2021-03-16T08:27:14.000Z
2021-03-16T08:27:14.000Z
examples/quick_example_with_json.py
ZongWei-HUST/open-box
011791aba4e44b20a6544020c73601638886d143
[ "MIT" ]
10
2020-10-12T07:46:46.000Z
2021-03-27T11:55:31.000Z
# License: MIT import numpy as np import matplotlib.pyplot as plt from openbox import create_optimizer # Define Objective Function def branin(config): x1, x2 = config['x1'], config['x2'] y = (x2 - 5.1 / (4 * np.pi ** 2) * x1 ** 2 + 5 / np.pi * x1 - 6) ** 2 \ + 10 * (1 - 1 / (8 * np.pi)) * np.cos(x1) ...
21.590909
75
0.512632
4d1f6671ffb1b44da3c0fb9ec4553e1164e7d13f
15,955
py
Python
intersight/model/telemetry_druid_group_by_request.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/telemetry_druid_group_by_request.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/telemetry_druid_group_by_request.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
54.453925
1,678
0.662739
4ddf3cc5526a9291d6f97c2123d49aaf6a6edbe5
9,356
py
Python
TinGen.py
shinji257/TinGen
0ab4848bd3fbbbfcffe047b2b2b5786beb499eb9
[ "MIT" ]
18
2020-04-15T21:31:30.000Z
2020-12-27T14:55:34.000Z
TinGen.py
shinji257/TinGen
0ab4848bd3fbbbfcffe047b2b2b5786beb499eb9
[ "MIT" ]
17
2020-04-10T12:00:26.000Z
2020-12-30T09:40:19.000Z
TinGen.py
shinji257/TinGen
0ab4848bd3fbbbfcffe047b2b2b5786beb499eb9
[ "MIT" ]
16
2020-04-04T07:09:54.000Z
2020-12-10T01:11:04.000Z
#!/usr/bin/env python3 # -*- coding: utf8 -*- from google.auth.credentials import Credentials from TinGen.utils import create_tinfoil_index from TinGen.utils import CompressionFlag from argparse import ArgumentParser from TinGen import TinGen from pathlib import Path if __name__ == '__main__': parser = ArgumentPar...
31.083056
79
0.596943
bcd442d77aeae015e8b606944d685e689fcd630b
16,236
py
Python
manila/tests/compute/test_nova.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
159
2015-01-02T09:35:15.000Z
2022-01-04T11:51:34.000Z
manila/tests/compute/test_nova.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
5
2015-07-24T09:28:21.000Z
2020-11-20T04:33:51.000Z
manila/tests/compute/test_nova.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
128
2015-01-05T22:52:28.000Z
2021-12-29T14:00:58.000Z
# Copyright 2014 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 required by applicable law or a...
36.08
79
0.633222
e6278cefce0b271bb55ee4bc48e888a2304c0a2b
57
py
Python
climatetalk/__init__.py
kdschlosser/ClimateTalk
3b09a45c295cf5228283d7095834e8f133ed7de3
[ "MIT" ]
3
2021-04-30T20:12:16.000Z
2022-03-09T11:53:12.000Z
climatetalk/mdi/__init__.py
kdschlosser/ClimateTalk
3b09a45c295cf5228283d7095834e8f133ed7de3
[ "MIT" ]
null
null
null
climatetalk/mdi/__init__.py
kdschlosser/ClimateTalk
3b09a45c295cf5228283d7095834e8f133ed7de3
[ "MIT" ]
2
2021-04-08T18:29:39.000Z
2021-04-30T20:13:55.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Kevin Schlosser
19
32
0.649123
aed58f2e42c299c0f40314ad6e7d33f463482f2e
480
py
Python
parallelmediadownloader/exceptions.py
yukihiko-shinoda/parallel-media-downloader
0ace6973b87601e6b3f97bc2bbce8c911d6bb420
[ "MIT" ]
1
2020-05-28T01:03:40.000Z
2020-05-28T01:03:40.000Z
parallelmediadownloader/exceptions.py
yukihiko-shinoda/parallel-media-downloader
0ace6973b87601e6b3f97bc2bbce8c911d6bb420
[ "MIT" ]
4
2020-03-31T05:38:00.000Z
2020-08-09T12:07:26.000Z
parallelmediadownloader/exceptions.py
yukihiko-shinoda/parallel-media-downloader
0ace6973b87601e6b3f97bc2bbce8c911d6bb420
[ "MIT" ]
null
null
null
"""This module implements exceptions for this package.""" __all__ = ["Error", "HttpTimeoutError"] class Error(Exception): """ Base class for exceptions in this module. @see https://docs.python.org/3/tutorial/errors.html#user-defined-exceptions """ class HttpTimeoutError(Error): def __init__(sel...
24
79
0.654167
1c889081d3cc860bf2ac25b4c2da46f61ec2332e
359
py
Python
tasks.py
jefftriplett/trolley
6e440d491bc11c576b6d1470b439df82f667c19a
[ "BSD-3-Clause" ]
3
2015-05-25T13:20:38.000Z
2019-03-06T18:38:15.000Z
tasks.py
jefftriplett/trolley
6e440d491bc11c576b6d1470b439df82f667c19a
[ "BSD-3-Clause" ]
null
null
null
tasks.py
jefftriplett/trolley
6e440d491bc11c576b6d1470b439df82f667c19a
[ "BSD-3-Clause" ]
3
2016-07-15T07:31:48.000Z
2018-09-29T07:50:34.000Z
from invoke import run, task @task def build(): run('python setup.py build') run('python setup.py sdist') run('python setup.py bdist_wheel') @task def install(): run('python setup.py build') run('python setup.py install') @task def pypi_upload(): run('python setup.py sdist upload') run...
17.095238
45
0.668524
75bf313575be3f6107780b2d10e16a1154c1033c
1,993
py
Python
webapi/user/router.py
hollyhockberry/track-location
404a154531420f4d4653278703b0226d92ee4334
[ "MIT" ]
null
null
null
webapi/user/router.py
hollyhockberry/track-location
404a154531420f4d4653278703b0226d92ee4334
[ "MIT" ]
null
null
null
webapi/user/router.py
hollyhockberry/track-location
404a154531420f4d4653278703b0226d92ee4334
[ "MIT" ]
null
null
null
# user/router.py - API router for CRUD database # Copyright (c) 2021 Inaba # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php from fastapi import APIRouter, Depends, Response, HTTPException from sqlalchemy.exc import NoResultFound, IntegrityError from sqlalchemy.orm imp...
31.140625
85
0.729553
f246a7a6bfddd50c8429c6f2f5760e106ee1f9dc
4,159
py
Python
daiquiri/handlers.py
whuji/daiquiri
650de3da95221fc6dfad9aee2f8818fb208a39a9
[ "Apache-2.0" ]
null
null
null
daiquiri/handlers.py
whuji/daiquiri
650de3da95221fc6dfad9aee2f8818fb208a39a9
[ "Apache-2.0" ]
null
null
null
daiquiri/handlers.py
whuji/daiquiri
650de3da95221fc6dfad9aee2f8818fb208a39a9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.272
79
0.653282
6b2250dcc8b51ae8e21b91ae5fff92a512e9e504
3,227
py
Python
spyne/evmgr.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
786
2015-01-04T10:46:28.000Z
2022-03-31T19:24:35.000Z
spyne/evmgr.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
248
2015-01-01T21:52:47.000Z
2022-03-09T08:55:04.000Z
spyne/evmgr.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
210
2015-01-10T14:20:31.000Z
2022-03-09T08:38:43.000Z
# # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This libra...
38.416667
80
0.681748
24b340b2cd811020fcff4e0a710dca1086e961d8
3,046
py
Python
taskwarrior_syncall/cli.py
risjain/taskwarrior-syncall
7348c354844db3366f34c958e78e7795a507a879
[ "MIT" ]
null
null
null
taskwarrior_syncall/cli.py
risjain/taskwarrior-syncall
7348c354844db3366f34c958e78e7795a507a879
[ "MIT" ]
null
null
null
taskwarrior_syncall/cli.py
risjain/taskwarrior-syncall
7348c354844db3366f34c958e78e7795a507a879
[ "MIT" ]
null
null
null
"""CLI argument functions - reuse across your apps.""" import click from taskwarrior_syncall.app_utils import name_to_resolution_strategy # def opt_run_all_combinations(name_A: str, name_B: str): # return click.option( # "--all", # "run_all_combinations", # is_flag=True, # help=f"E...
24.174603
94
0.590282
d530a8227828d5fd0a9b662a06fb83efb8adedd5
1,732
py
Python
train_evm.py
ROBOTICSENGINEER/Automatic-Open-World-Reliability-Assessment
459d002e482791e1dc47be681d5c073b6e8fce6d
[ "BSD-4-Clause" ]
2
2021-06-18T07:55:54.000Z
2021-08-31T22:05:38.000Z
train_evm.py
ROBOTICSENGINEER/Automatic-Open-World-Reliability-Assessment
459d002e482791e1dc47be681d5c073b6e8fce6d
[ "BSD-4-Clause" ]
null
null
null
train_evm.py
ROBOTICSENGINEER/Automatic-Open-World-Reliability-Assessment
459d002e482791e1dc47be681d5c073b6e8fce6d
[ "BSD-4-Clause" ]
null
null
null
import numpy as np import MultipleEVM import h5py import torch import time data_path = './feature_train_efficient_b3_center_loss_fp16.npy' N_classes = 413 tailsize=33998 cover_threshold=0.7 distance_multiplier=0.45 distance_function='cosine' device='cuda' output_path = f'./EVM_{distance_function}_model_imagenet_b3...
27.492063
175
0.734988
e0d7d798035dfc6c1782c086a472e988a4309a75
234
py
Python
examples/get_user_info.py
SayHelloRoman/BetterMonitoring
a26af6a9ab01660c0445d92f25b8ed14f63aa03d
[ "MIT" ]
5
2022-03-26T17:19:23.000Z
2022-03-27T19:46:09.000Z
examples/get_user_info.py
SayHelloRoman/BetterMonitoring
a26af6a9ab01660c0445d92f25b8ed14f63aa03d
[ "MIT" ]
null
null
null
examples/get_user_info.py
SayHelloRoman/BetterMonitoring
a26af6a9ab01660c0445d92f25b8ed14f63aa03d
[ "MIT" ]
2
2022-03-26T17:19:31.000Z
2022-03-26T18:57:38.000Z
import asyncio import pprint from bettermonitoring import Client async def main(): client = Client() user_id = 389768884762312705 info = await client.get_user_info(user_id) pprint.pprint(info) asyncio.run(main())
16.714286
46
0.730769
431c61ce5fadb4b19e464e493ac20bd10031c00d
945
py
Python
alife/alife_hidden.py
flags/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
56
2015-04-20T08:31:29.000Z
2021-12-19T14:05:18.000Z
alife/alife_hidden.py
HexDecimal/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
2
2018-07-24T11:24:41.000Z
2021-05-16T03:04:53.000Z
alife/alife_hidden.py
HexDecimal/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
9
2015-11-03T02:56:20.000Z
2021-04-28T08:19:57.000Z
#This is intended to be an example of how the new ALife #system works. from globals import * import life as lfe import judgement import movement import combat import logging STATE = 'hidden' TIER = TIER_COMBAT-.3 def conditions(life, alife_seen, alife_not_seen, targets_seen, targets_not_seen, source_map): RETURN_...
23.625
93
0.751323
c6b45e9d1d595dbf137b508acd51bf44a1b77716
2,648
py
Python
src/MusicTheory/pitch/Degree.py
ytyaru/Python.MusicTheory.Pitch.201709132126
04b24a3302e9e60b380831fc6e58e3a0b50d5f90
[ "CC0-1.0" ]
null
null
null
src/MusicTheory/pitch/Degree.py
ytyaru/Python.MusicTheory.Pitch.201709132126
04b24a3302e9e60b380831fc6e58e3a0b50d5f90
[ "CC0-1.0" ]
null
null
null
src/MusicTheory/pitch/Degree.py
ytyaru/Python.MusicTheory.Pitch.201709132126
04b24a3302e9e60b380831fc6e58e3a0b50d5f90
[ "CC0-1.0" ]
null
null
null
import re #import MusicTheory.pitch.PitchClass #import MusicTheory.pitch.Accidental from MusicTheory.pitch.PitchClass import PitchClass from MusicTheory.pitch.Accidental import Accidental from Framework.ClassProperty import ClassProperty from Framework.ClassPropertyMeta import ClassPropertyMeta """ 音度から半音数を取得する。 """ cl...
37.295775
117
0.666918
b291fc324b9af26f3ba7466a94846bc19649b8a9
1,588
py
Python
ietf/doc/templatetags/managed_groups.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/doc/templatetags/managed_groups.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/doc/templatetags/managed_groups.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2016-2020, All Rights Reserved # -*- coding: utf-8 -*- from django import template import debug # pyflakes:ignore from ietf.group.models import Group from ietf.group.utils import group_features_group_filter register = template.Library() @register.filter def do...
31.137255
82
0.654282
6bad80225c1f7f48020c8d680486738879977a46
858
py
Python
tornadoweb/config.py
9wfox/tornadoweb
c1d8a5acb49b3af10b291feb1623e3bf6d36f52f
[ "Apache-2.0" ]
6
2015-08-27T05:46:43.000Z
2021-01-17T08:59:04.000Z
tornadoweb/config.py
9wfox/tornadoweb
c1d8a5acb49b3af10b291feb1623e3bf6d36f52f
[ "Apache-2.0" ]
1
2018-12-07T10:59:58.000Z
2018-12-07T10:59:58.000Z
tornadoweb/config.py
9wfox/tornadoweb
c1d8a5acb49b3af10b291feb1623e3bf6d36f52f
[ "Apache-2.0" ]
3
2018-12-07T10:33:02.000Z
2021-01-22T11:54:19.000Z
#-*- coding:utf-8 -*- import six if six.PY3: import builtins as __builtin__ else: import __builtin__ from os.path import exists from types import ModuleType from .utility import app_path, staticclass @staticclass class ConfigLoader(object): @staticmethod def load(config = Non...
20.428571
52
0.506993
2f165d6c189b8ba1e6231a3af30b59e325b02774
2,482
py
Python
pyblur/LinearMotionBlur.py
Sxela/pyblur
c71faf207ca84accc16d0f556e8e4c551bb10974
[ "MIT" ]
null
null
null
pyblur/LinearMotionBlur.py
Sxela/pyblur
c71faf207ca84accc16d0f556e8e4c551bb10974
[ "MIT" ]
null
null
null
pyblur/LinearMotionBlur.py
Sxela/pyblur
c71faf207ca84accc16d0f556e8e4c551bb10974
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import math import numpy as np from PIL import Image from scipy.signal import convolve2d from skimage.draw import line import cv2 from .LineDictionary import LineDictionary # lineLengths =[3,5,7,9] lineLengths =[3,5,7,9] lineTypes = ["full", "right", "left"] lineDict = LineDictionary() def L...
34.472222
92
0.709508
0c39b71d502cd1a0973ec2e26016e9e2ea3add9b
10,084
py
Python
mcpython/common/state/WorldListState.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
2
2019-11-02T05:26:11.000Z
2019-11-03T08:52:18.000Z
mcpython/common/state/WorldListState.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
25
2019-11-02T05:24:29.000Z
2022-02-09T14:09:08.000Z
mcpython/common/state/WorldListState.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
5
2019-11-09T05:36:06.000Z
2021-11-28T13:07:08.000Z
""" mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original game "minecraft" by Mojang Studios (www.m...
34.416382
103
0.579829
c92c30b2a9bad3e0f42f5d635d46a289cb33bd4b
27
py
Python
btd6_memory_info/generated/UnityEngine/Playables/PlayableBinding/playable_binding.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/Playables/PlayableBinding/playable_binding.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/Playables/PlayableBinding/playable_binding.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class PlayableBinding: pass
27
27
0.888889
9e990e013b0a1bfecf0d2d2b7ac69e5e31d33aa0
88,370
py
Python
e2e/tests/test_e2e.py
zalando-incubator/postgres-operator
7d4da928726b5029f72e9ab83ee9b6ff481e70c7
[ "MIT" ]
386
2017-05-12T17:29:16.000Z
2019-02-21T09:21:28.000Z
e2e/tests/test_e2e.py
zalando-incubator/postgres-operator
7d4da928726b5029f72e9ab83ee9b6ff481e70c7
[ "MIT" ]
483
2017-05-12T13:09:07.000Z
2019-02-21T15:37:12.000Z
e2e/tests/test_e2e.py
zalando-incubator/postgres-operator
7d4da928726b5029f72e9ab83ee9b6ff481e70c7
[ "MIT" ]
61
2017-05-12T14:48:54.000Z
2019-02-20T11:56:12.000Z
import json import unittest import time import timeout_decorator import os import yaml import base64 from datetime import datetime, date, timedelta from kubernetes import client from tests.k8s_api import K8s from kubernetes.client.rest import ApiException SPILO_CURRENT = "registry.opensource.zalan.do/acid/spilo-14-e...
45.271516
165
0.5951
b9ab80a176460afc3dcabee30bbad3f823d5ab5d
1,712
py
Python
setup.py
po2xel/mootdx
aaa7114891e77445f2acfaf76a71d66070a18177
[ "MIT" ]
null
null
null
setup.py
po2xel/mootdx
aaa7114891e77445f2acfaf76a71d66070a18177
[ "MIT" ]
null
null
null
setup.py
po2xel/mootdx
aaa7114891e77445f2acfaf76a71d66070a18177
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" try: from setuptools import find_packages, setup except ImportError: from distutils.core import find_packages, setup def parse_requirements(filename): line_iter = (line.strip() for line in open(filename)) return [line for line in line_iter if line and not...
29.016949
76
0.655374
c8888adbbd5d9cdc979b83c9522fa827fc9e6ca8
5,992
py
Python
homeassistant/generated/config_flows.py
GoNzCiD/home-assistant-core
c7f465ff3b0caf6162625d6e0d7b8d280a2a3189
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/generated/config_flows.py
GoNzCiD/home-assistant-core
c7f465ff3b0caf6162625d6e0d7b8d280a2a3189
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/generated/config_flows.py
iMicknl/home-assistant-core
fc1899987aae9edf1f91100bf4f22766732bc835
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Automatically generated by hassfest. To update, run python3 -m script.hassfest """ # fmt: off FLOWS = [ "abode", "accuweather", "acmeda", "adax", "adguard", "advantage_air", "aemet", "agent_dvr", "airly", "airnow", "airthings", "airtouch4", "airvisual", "ala...
16.326975
41
0.517523
ea286b290f421b3c5976a7befa0d50b4b601863f
6,325
py
Python
artificial-intelligence/optimal-path/main.py
YouriLieverdink/cITVB18SEN3
5c8e883f91981603276917a622d9ac7d6fd5d942
[ "MIT" ]
null
null
null
artificial-intelligence/optimal-path/main.py
YouriLieverdink/cITVB18SEN3
5c8e883f91981603276917a622d9ac7d6fd5d942
[ "MIT" ]
null
null
null
artificial-intelligence/optimal-path/main.py
YouriLieverdink/cITVB18SEN3
5c8e883f91981603276917a622d9ac7d6fd5d942
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import ttk import model as mo import config as cf # global var START_FLAG = True # do not redraw grid when pressing start the first time class MainApp(tk.Frame): # frame for the grid (subclass of tk.Frame) def __init__(self, root): tk.Frame.__init__(self) # ...
36.773256
94
0.578498
65b6fff18247ff757eb5249301c1993a7d804e28
28,747
py
Python
plaso/cli/image_export_tool.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
plaso/cli/image_export_tool.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
plaso/cli/image_export_tool.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """The image export CLI tool.""" from __future__ import unicode_literals import argparse import codecs import io import os import textwrap from dfvfs.helpers import file_system_searcher from dfvfs.lib import definitions as dfvfs_definitions from dfvfs.lib import errors as dfvfs_errors from df...
35.978723
80
0.702682
c373f34115c1a8ecde9826e7660fc868593fe2a6
546
py
Python
src/wallet/abstract_wallet.py
snikch/chia-blockchain
5f2000dbaf854deb7c0c7654d1ee6a84e06e233c
[ "Apache-2.0" ]
2
2019-12-06T01:03:24.000Z
2020-09-27T00:46:20.000Z
src/wallet/abstract_wallet.py
yllierop/chia-blockchain
301801993ca3d4cc5bf71952af29effae507b2ea
[ "Apache-2.0" ]
1
2022-03-25T19:10:51.000Z
2022-03-25T19:10:51.000Z
src/wallet/abstract_wallet.py
fakecoinbase/Chia-Networkslashchia-blockchain
84e6a4da18fb0a790a870cbd516f13c9bc7f0716
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod class AbstractWallet(ABC): def __init__(self): super().__init__() @abstractmethod def get_new_puzzle(self): pass @abstractmethod def puzzle_for_pk(self, pubkey: bytes): pass @abstractmethod def get_pending_change_balance(self):...
17.612903
43
0.652015
2c1a75711b6e31bbbd26d154805d03a4bb174c31
9,499
py
Python
rl_games/algos_torch/torch_ext.py
NikitaRdn/rl_games
50d9a460f8ba41de5dbac4abed04f8de9b849f4f
[ "MIT" ]
null
null
null
rl_games/algos_torch/torch_ext.py
NikitaRdn/rl_games
50d9a460f8ba41de5dbac4abed04f8de9b849f4f
[ "MIT" ]
null
null
null
rl_games/algos_torch/torch_ext.py
NikitaRdn/rl_games
50d9a460f8ba41de5dbac4abed04f8de9b849f4f
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.optim.optimizer import Optimizer def policy_kl(p0_mu, p0_sigma, p1_mu, p1_sigma, reduce=True): c1 = torch.log(p1_sigma/p0_sigma + 1e-5) c2 = (p0_sigma**2 + (p1_mu - p0_mu)**2)/(2.0 * (p1...
35.181481
130
0.63154
710e4a7bf6fd1ab62b97546782e92f3c6dcbc09f
4,907
py
Python
ByteSpinner/spinner.py
jarrodsinclair/byte-spinner
4a3392ffcd8816c7a5fe76a2593d60fac89e853e
[ "MIT" ]
null
null
null
ByteSpinner/spinner.py
jarrodsinclair/byte-spinner
4a3392ffcd8816c7a5fe76a2593d60fac89e853e
[ "MIT" ]
null
null
null
ByteSpinner/spinner.py
jarrodsinclair/byte-spinner
4a3392ffcd8816c7a5fe76a2593d60fac89e853e
[ "MIT" ]
null
null
null
import base64 from Crypto import Random import json class SpinnerException(Exception): pass class Spinner(object): def __init__(self, key_matrix): self._keys = key_matrix # check key matrix is well formed num_iterations = len(self._keys) assert num_iterations > 0 num...
31.455128
79
0.53332
33f7f96c34fc9ec6fd05df1ab9a5d98ada5b5c34
1,997
py
Python
setuptools/_distutils/tests/test_log.py
venthur/setuptools
254f8a969a542da0b221c178896f741238022fe4
[ "MIT" ]
1
2022-01-09T05:26:33.000Z
2022-01-09T05:26:33.000Z
setuptools/_distutils/tests/test_log.py
sthagen/pypa-setuptools
5516cd00e7721b9135a7833dd3be0a99eeb046a8
[ "MIT" ]
null
null
null
setuptools/_distutils/tests/test_log.py
sthagen/pypa-setuptools
5516cd00e7721b9135a7833dd3be0a99eeb046a8
[ "MIT" ]
null
null
null
"""Tests for distutils.log""" import io import sys import unittest from test.support import swap_attr, run_unittest from distutils import log class TestLog(unittest.TestCase): def test_non_ascii(self): # Issues #8663, #34421: test that non-encodable text is escaped with # backslashreplace error ...
32.209677
88
0.49324
630bd3fd4c76aafed5dfd8ca9193ccb695d69b79
19,602
py
Python
sunpy/image/transform.py
dgarciabriseno/sunpy
40f6d7d5ba9d63ac7ffd3ea8587642867caeae25
[ "BSD-2-Clause" ]
null
null
null
sunpy/image/transform.py
dgarciabriseno/sunpy
40f6d7d5ba9d63ac7ffd3ea8587642867caeae25
[ "BSD-2-Clause" ]
null
null
null
sunpy/image/transform.py
dgarciabriseno/sunpy
40f6d7d5ba9d63ac7ffd3ea8587642867caeae25
[ "BSD-2-Clause" ]
null
null
null
""" Functions for geometrical image transformation and warping. """ import sys import time import numbers from functools import wraps from collections import namedtuple import numpy as np import scipy.ndimage from scipy.signal import convolve2d from sunpy import log from sunpy.util.exceptions import warn_deprecated, ...
45.062069
108
0.65529
babe6bf8e3a57e3640c950ac7676f00d64e20039
1,051
py
Python
tensorbay/utility/itertools.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
73
2021-02-24T12:23:26.000Z
2022-03-12T13:00:31.000Z
tensorbay/utility/itertools.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
681
2021-02-25T07:34:17.000Z
2022-03-25T07:08:23.000Z
tensorbay/utility/itertools.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
35
2021-02-24T12:00:45.000Z
2022-03-30T06:43:13.000Z
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """The implementation of iteration tools.""" from itertools import islice from typing import Iterable, Iterator, Tuple, TypeVar _T = TypeVar("_T") def chunked(iterable: Iterable[_T], n: int) -> Iterator[Tuple[_T, ...]]: """Break a...
24.44186
96
0.603235
65f07e50149143aa13e70808817572c6caa25116
1,287
py
Python
nicos_mlz/nectar/devices/__init__.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/nectar/devices/__init__.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/nectar/devices/__init__.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2022 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
42.9
79
0.672106
f60d3414aea1c8d6d51dff2dd347664a8c14572a
1,993
py
Python
data_science_toolbox/pandas/text/filter.py
safurrier/data_science_utils
842b025ea3197e8a9946401257b2fa22ef1bf82d
[ "MIT" ]
3
2019-02-14T21:16:15.000Z
2020-05-05T20:20:42.000Z
data_science_toolbox/pandas/text/filter.py
safurrier/data_science_utils
842b025ea3197e8a9946401257b2fa22ef1bf82d
[ "MIT" ]
null
null
null
data_science_toolbox/pandas/text/filter.py
safurrier/data_science_utils
842b025ea3197e8a9946401257b2fa22ef1bf82d
[ "MIT" ]
1
2020-03-30T20:59:04.000Z
2020-03-30T20:59:04.000Z
import pandas as pd import numpy as np def filter_text_in_column(df, column=None, list_of_strings=None, include_or_exclude='exclude', case=True): """ Given a column and a list of strings, return a dataframe (or original column) where strings are filtered out or filtered to rows where strings are present. ...
40.673469
108
0.694431
f72d68fb62a2806074aca8a22832fda252b941ff
12,657
py
Python
seedminer/seedminer_launcher3.py
Marenthyu/seedminer
c46eb002e34cce4fe847d5b5ea59955ec9a69626
[ "MIT" ]
null
null
null
seedminer/seedminer_launcher3.py
Marenthyu/seedminer
c46eb002e34cce4fe847d5b5ea59955ec9a69626
[ "MIT" ]
null
null
null
seedminer/seedminer_launcher3.py
Marenthyu/seedminer
c46eb002e34cce4fe847d5b5ea59955ec9a69626
[ "MIT" ]
null
null
null
import os,sys,struct,glob import urllib.request from binascii import hexlify, unhexlify #don't change this mid brute force - can be different amount multiple computers - powers of two recommended for even distribution of workload 1 2 4 8 etc. process_count=4 offset_override=0 #for gpu options, this allows st...
31.174877
155
0.56372
fe598624941c6dd822f0c3d9c1282de41daa0311
223
py
Python
cep_to_coords/convert.py
millengustavo/cep-to-coords
7c68c9fb634f2ec33def8ba045d6b48ea0d842d7
[ "MIT" ]
4
2020-07-23T22:38:31.000Z
2021-08-10T06:50:05.000Z
cep_to_coords/convert.py
millengustavo/cep_to_coords
7c68c9fb634f2ec33def8ba045d6b48ea0d842d7
[ "MIT" ]
4
2021-01-13T16:51:48.000Z
2021-12-13T20:26:09.000Z
cep_to_coords/convert.py
millengustavo/cep_to_coords
7c68c9fb634f2ec33def8ba045d6b48ea0d842d7
[ "MIT" ]
3
2020-12-17T15:42:39.000Z
2021-08-11T12:23:22.000Z
from .base import CEPConverter from .strategies import CorreiosPhotonConverter def cep_to_coords(cep: str, factory: CEPConverter = CorreiosPhotonConverter) -> dict: coordinates = factory()(cep) return coordinates
27.875
85
0.784753
bf133b3741d467de4b29605f49caa4b01b77b71b
8,372
py
Python
src/mem/slicc/ast/MethodCallExprAST.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
31
2015-12-15T19:14:10.000Z
2021-12-31T17:40:21.000Z
src/mem/slicc/ast/MethodCallExprAST.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
5
2015-12-04T08:06:47.000Z
2020-08-09T21:49:46.000Z
src/mem/slicc/ast/MethodCallExprAST.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
21
2015-11-05T08:25:45.000Z
2021-06-19T02:24:50.000Z
# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood # Copyright (c) 2009 The Hewlett-Packard Development Company # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source co...
43.154639
87
0.611801
ef9d1223063b0a8fdfeeeb5360991ab85347c932
5,242
py
Python
virtual/lib/python3.8/site-packages/bootstrap3/forms.py
ShirQUillE-SandE/the-neighborhood-101
fda09cb0481d1cd902f5e13b7ed61ed96772121d
[ "MIT" ]
1,810
2015-01-01T02:04:55.000Z
2020-06-15T01:01:06.000Z
virtual/lib/python3.8/site-packages/bootstrap3/forms.py
ShirQUillE-SandE/the-neighborhood-101
fda09cb0481d1cd902f5e13b7ed61ed96772121d
[ "MIT" ]
288
2015-01-14T00:32:20.000Z
2020-06-08T05:35:45.000Z
virtual/lib/python3.8/site-packages/bootstrap3/forms.py
ShirQUillE-SandE/the-neighborhood-101
fda09cb0481d1cd902f5e13b7ed61ed96772121d
[ "MIT" ]
752
2015-01-05T01:27:20.000Z
2020-05-25T02:48:35.000Z
from django.contrib.admin.widgets import AdminFileWidget from django.forms import ( CheckboxSelectMultiple, EmailInput, FileInput, HiddenInput, NumberInput, PasswordInput, Textarea, TextInput, URLInput, ) from django.forms.widgets import CheckboxInput from django.utils.safestring imp...
32.358025
119
0.664823
ab91979c1005f62ad2b22354de03fc0f5a8f73b3
1,019
py
Python
share/doc/networkx-1.9.1/examples/pygraphviz/pygraphviz_attributes.py
nliolios24/textrank
845c0a46b9bd36c36773bf106c0e2fee3bdb61a5
[ "MIT" ]
4
2015-07-20T06:30:46.000Z
2015-07-22T11:17:25.000Z
share/doc/networkx-1.9.1/examples/pygraphviz/pygraphviz_attributes.py
nliolios24/textrank
845c0a46b9bd36c36773bf106c0e2fee3bdb61a5
[ "MIT" ]
null
null
null
share/doc/networkx-1.9.1/examples/pygraphviz/pygraphviz_attributes.py
nliolios24/textrank
845c0a46b9bd36c36773bf106c0e2fee3bdb61a5
[ "MIT" ]
7
2015-04-28T19:19:30.000Z
2022-02-06T11:46:29.000Z
#!/usr/bin/env python """ An example showing how to use the interface to the pygraphviz AGraph class to convert to and from graphviz. Also see the pygraphviz documentation and examples at https://networkx.lanl.gov/pygraphviz/ """ __author__ = """Aric Hagberg (hagberg@lanl.gov)""" # Copyright (C) 2006-2010 by # ...
23.159091
61
0.721295
2e8fec2f1743af135ec7959f46abdb77b06d9611
87,639
py
Python
ivy_tests/test_core/test_general.py
792370706/Ivy
d5d3d92443dfb590335554dd4ce834ea675189fe
[ "Apache-2.0" ]
null
null
null
ivy_tests/test_core/test_general.py
792370706/Ivy
d5d3d92443dfb590335554dd4ce834ea675189fe
[ "Apache-2.0" ]
null
null
null
ivy_tests/test_core/test_general.py
792370706/Ivy
d5d3d92443dfb590335554dd4ce834ea675189fe
[ "Apache-2.0" ]
null
null
null
""" Collection of tests for templated general functions """ # global import os import math import time import einops import pytest import threading import numpy as np from numbers import Number from collections.abc import Sequence import torch.multiprocessing as multiprocessing # local import ivy import ivy.numpy imp...
37.245644
120
0.632047
3be4908d5662ed08daf4f1409aa5ccdb329b6201
158
py
Python
Mailer.py
hassansalehe/deHunter
cf8de1b9bc843885f8b98e4fd8ea281da1e7b0d5
[ "BSD-2-Clause" ]
null
null
null
Mailer.py
hassansalehe/deHunter
cf8de1b9bc843885f8b98e4fd8ea281da1e7b0d5
[ "BSD-2-Clause" ]
null
null
null
Mailer.py
hassansalehe/deHunter
cf8de1b9bc843885f8b98e4fd8ea281da1e7b0d5
[ "BSD-2-Clause" ]
null
null
null
class Mailer: def __init__(self): pass def send(self, msg): print('Mailer: sending message') print(msg) pass
17.555556
41
0.512658
e1a71437ad70502a99961a3d76c9238f646e3859
31,165
py
Python
source/speech/manager.py
zstanecic/nvda
713cdc0bb34a8ef0a834feb9e3b7232e6bf7aeb6
[ "bzip2-1.0.6" ]
null
null
null
source/speech/manager.py
zstanecic/nvda
713cdc0bb34a8ef0a834feb9e3b7232e6bf7aeb6
[ "bzip2-1.0.6" ]
null
null
null
source/speech/manager.py
zstanecic/nvda
713cdc0bb34a8ef0a834feb9e3b7232e6bf7aeb6
[ "bzip2-1.0.6" ]
null
null
null
# -*- coding: UTF-8 -*- # A part of NonVisual Desktop Access (NVDA) # This file is covered by the GNU General Public License. # See the file COPYING for more details. # Copyright (C) 2006-2021 NV Access Limited import typing from languageHandler import normalizeLanguage import queueHandler import synthDriverHandler im...
41.169089
132
0.762265
39d75a080604e3a7ae93391652d4c03be9857218
78,947
py
Python
tensorflow/contrib/training/python/training/sequence_queueing_state_saver.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/training/python/training/sequence_queueing_state_saver.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/training/python/training/sequence_queueing_state_saver.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.037806
80
0.676276