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
e5929b9bda2ff9c8f8769b9ffeacb67e27e0e408
16,357
py
Python
tensorflow_probability/python/experimental/mcmc/with_reductions_test.py
NeelGhoshal/probability
45ed841e3cff6cdc7cd1b2d96dd874d9070318f7
[ "Apache-2.0" ]
2
2019-10-30T04:45:07.000Z
2019-10-30T04:45:08.000Z
tensorflow_probability/python/experimental/mcmc/with_reductions_test.py
gregorystrubel/probability
df96f3d56eff92c6b06fbac68dc58e095e28fed6
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/with_reductions_test.py
gregorystrubel/probability
df96f3d56eff92c6b06fbac68dc58e095e28fed6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability 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 o...
37.344749
82
0.710705
4858dde5039e0414cd836c7ff8a51957b1829f09
16,630
py
Python
qt_dialog/src/features.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
null
null
null
qt_dialog/src/features.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
null
null
null
qt_dialog/src/features.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
1
2018-07-24T09:15:06.000Z
2018-07-24T09:15:06.000Z
#!/usr/bin/env python import contextlib import constants as cst from random import randint, choice, shuffle from std_msgs.msg import String from motivational_component.srv import * import io import threading import datetime import calendar import json import datetime import rospy import time from abc import ABCMeta...
32.607843
159
0.634275
e5f317a5b7c807ddae53e69b57f6f7cc3580448c
2,740
py
Python
sagemaker-python-sdk/tensorflow-eager-script-mode/train_model/train.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
144
2019-02-05T21:03:30.000Z
2022-03-24T15:24:32.000Z
sagemaker-python-sdk/tensorflow-eager-script-mode/train_model/train.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
22
2019-03-04T04:18:02.000Z
2022-03-09T00:21:36.000Z
sagemaker-python-sdk/tensorflow-eager-script-mode/train_model/train.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
94
2019-02-05T21:03:33.000Z
2022-01-16T07:29:15.000Z
import argparse import numpy as np import os import tensorflow as tf from tensorflow.contrib.eager.python import tfe from model_def import get_model tf.enable_eager_execution() tf.set_random_seed(0) np.random.seed(0) os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' def parse_args(): parser = argparse.ArgumentPar...
31.860465
103
0.678832
7413ab20c32ce1c07888818cdfe745218a3fd670
35
py
Python
kite-go/client/internal/kitelocal/internal/signatures/internal/python/testdata/json.loads.1.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-go/client/internal/kitelocal/internal/signatures/internal/python/testdata/json.loads.1.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-go/client/internal/kitelocal/internal/signatures/internal/python/testdata/json.loads.1.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
import json json.loads(0,1<caret>)
11.666667
22
0.742857
207c04f5ea54797e732740b365fbe3ef6211dfd8
5,523
py
Python
youtube_dl/extractor/zingmp3.py
jonyg80/youtube-dl
ef3a87fb77891329de1d3dbebfee53bf50645261
[ "Unlicense" ]
66,635
2019-03-10T21:34:18.000Z
2022-03-31T23:50:31.000Z
youtube_dl/extractor/zingmp3.py
jonyg80/youtube-dl
ef3a87fb77891329de1d3dbebfee53bf50645261
[ "Unlicense" ]
10,936
2019-03-10T21:35:47.000Z
2022-03-31T23:46:52.000Z
youtube_dl/extractor/zingmp3.py
jonyg80/youtube-dl
ef3a87fb77891329de1d3dbebfee53bf50645261
[ "Unlicense" ]
15,194
2019-03-10T21:09:27.000Z
2022-03-31T22:13:49.000Z
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, ) class ZingMp3BaseIE(InfoExtractor): _VALID_URL_TMPL = r'https?://(?:mp3\.zing|zingmp3)\.vn/(?:%s)/[^/]+/(?P<id>\w+)\.html' _GEO_COUNTRIES = ['VN'] def _e...
34.092593
93
0.480536
a797d72a0063506d951532e7263be5e900ee5c56
1,244
py
Python
alembic/versions/3d541fc7d342_took_away_timezone_f.py
codeforamerica/bizfriendly-api
b3f3b9f83652ec67752d629baaf0bc1d4ec67695
[ "BSD-Source-Code" ]
13
2015-04-27T14:26:19.000Z
2021-11-21T16:11:17.000Z
alembic/versions/3d541fc7d342_took_away_timezone_f.py
codeforamerica/bizfriendly-api
b3f3b9f83652ec67752d629baaf0bc1d4ec67695
[ "BSD-Source-Code" ]
15
2015-04-25T22:29:50.000Z
2016-09-01T16:59:21.000Z
alembic/versions/3d541fc7d342_took_away_timezone_f.py
codeforamerica/bizfriendly-api
b3f3b9f83652ec67752d629baaf0bc1d4ec67695
[ "BSD-Source-Code" ]
9
2015-06-19T19:48:40.000Z
2021-04-16T10:27:29.000Z
"""Took away timezone from userLessons Revision ID: 3d541fc7d342 Revises: 316d9ed47db1 Create Date: 2013-12-17 16:13:20.988411 """ # revision identifiers, used by Alembic. revision = '3d541fc7d342' down_revision = '316d9ed47db1' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto g...
30.341463
63
0.635852
8031c69b5550f698927ac8fb5ccedd339f5bf247
2,697
py
Python
exercises/fit_gaussian_estimators.py
Tzory/IML.HUJI
95dd33a69f21c52025f5699ec73ce86e6a797c97
[ "MIT" ]
null
null
null
exercises/fit_gaussian_estimators.py
Tzory/IML.HUJI
95dd33a69f21c52025f5699ec73ce86e6a797c97
[ "MIT" ]
null
null
null
exercises/fit_gaussian_estimators.py
Tzory/IML.HUJI
95dd33a69f21c52025f5699ec73ce86e6a797c97
[ "MIT" ]
null
null
null
from IMLearn.learners import UnivariateGaussian, MultivariateGaussian import numpy as np import plotly.graph_objects as go import plotly.io as pio import plotly.express as ex pio.templates.default = "simple_white" def test_univariate_gaussian(): # Question 1 - Draw samples and print fitted model mu = 10 ...
31.729412
101
0.585836
2399baec1f7233efdd643bd7ea4c0be0d72c685d
9,677
py
Python
project5100/Project5100Logic.py
alexbers/alpha-zero-general
f44e79a9f7c9263ebb3263595bb94ab53f579e73
[ "MIT" ]
null
null
null
project5100/Project5100Logic.py
alexbers/alpha-zero-general
f44e79a9f7c9263ebb3263595bb94ab53f579e73
[ "MIT" ]
null
null
null
project5100/Project5100Logic.py
alexbers/alpha-zero-general
f44e79a9f7c9263ebb3263595bb94ab53f579e73
[ "MIT" ]
null
null
null
import random import numpy as np import math # bad code def itb(num: int, length: int): #print(num) """ Converts integer to bit array Someone fix this please :D - it's horrible :param num: number to convert to bits :param length: length of bits to convert to :return: bit array """ i...
34.560714
123
0.532913
d1069f104e554ec45aa52bd54e67f252cbdf4f34
5,231
py
Python
kubernetes/client/models/v1_se_linux_options.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
11
2020-10-13T05:27:59.000Z
2021-09-23T02:56:32.000Z
kubernetes/client/models/v1_se_linux_options.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
48
2020-10-15T09:53:36.000Z
2021-07-05T15:33:24.000Z
kubernetes/client/models/v1_se_linux_options.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
4
2020-12-04T08:51:35.000Z
2022-03-27T09:42:20.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
24.791469
105
0.543682
9f20c226ca505f4b5bd8639bb010e172c70b2f2f
92
py
Python
python/ligand/version.py
latchai/latch
f90bf1641224a8636471a2e15f46ed557ea227ce
[ "Apache-2.0" ]
5
2021-02-03T18:05:41.000Z
2021-03-27T21:19:32.000Z
python/ligand/version.py
latchai/ligand
f90bf1641224a8636471a2e15f46ed557ea227ce
[ "Apache-2.0" ]
null
null
null
python/ligand/version.py
latchai/ligand
f90bf1641224a8636471a2e15f46ed557ea227ce
[ "Apache-2.0" ]
null
null
null
# This file is auto-generated by the root Makefile. Do not edit manually. version = "0.0.2"
30.666667
73
0.728261
fc3362c55073aa887b456bac938c9e65dae252b8
828
py
Python
oscar/templatetags/form_tags.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
1
2015-11-07T12:37:50.000Z
2015-11-07T12:37:50.000Z
oscar/templatetags/form_tags.py
michaelBenin/django-oscar
f45d38b5d3ffa10756d95c625fb90a27185ce1e1
[ "BSD-3-Clause" ]
null
null
null
oscar/templatetags/form_tags.py
michaelBenin/django-oscar
f45d38b5d3ffa10756d95c625fb90a27185ce1e1
[ "BSD-3-Clause" ]
1
2019-07-10T06:32:14.000Z
2019-07-10T06:32:14.000Z
from django import template register = template.Library() @register.tag def annotate_form_field(parser, token): """ Set an attribute on a form field with the widget type This means templates can use the widget type to render things differently if they want to. Django doesn't make this available by ...
28.551724
77
0.695652
ae2194f49d19e4793222f9c0e122ed313bb1d100
1,702
py
Python
config/settings/test.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
null
null
null
config/settings/test.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
1
2020-07-19T11:19:22.000Z
2020-07-19T11:19:22.000Z
config/settings/test.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="HuLNXmgLz...
32.730769
80
0.49765
d6677be00c303d331d101418238ef9b7d422c4e3
1,910
py
Python
confu/exceptions.py
roysc/confu
3d0f5e7036f0c8f5502dd455f32e08202ce72a75
[ "Apache-2.0" ]
null
null
null
confu/exceptions.py
roysc/confu
3d0f5e7036f0c8f5502dd455f32e08202ce72a75
[ "Apache-2.0" ]
null
null
null
confu/exceptions.py
roysc/confu
3d0f5e7036f0c8f5502dd455f32e08202ce72a75
[ "Apache-2.0" ]
null
null
null
class SoftDependencyError(ImportError): """ Raised when a feature requires a dependency that is missing """ def __init__(self, dep_name): super(SoftDependencyError, self).__init__( "To use this feature this dependency is required: {}".format(dep_name) ) class ValidationErr...
24.177215
84
0.575916
ef652b2be9f862dde4d48caea48c53607ae59eeb
298
py
Python
tests/model/Vacancy.py
brunoplopes/web-screpper-bigdata
63b84154ae450acd9a568ae55caafad15f9acc60
[ "MIT" ]
null
null
null
tests/model/Vacancy.py
brunoplopes/web-screpper-bigdata
63b84154ae450acd9a568ae55caafad15f9acc60
[ "MIT" ]
null
null
null
tests/model/Vacancy.py
brunoplopes/web-screpper-bigdata
63b84154ae450acd9a568ae55caafad15f9acc60
[ "MIT" ]
null
null
null
class Vacancy(object): def __init__(self, title, city, company, link, description, info, date): self.title = title self.city = city self.company = company self.link = link self.description = description self.info = info self.date = date
27.090909
76
0.597315
173dbfe876dfaacdbba33ac9c73a553ee6c2db86
811
py
Python
basico/aula022/aula022.py
KaicPierre/Curso-de-Python3
6267ba92c298f0ffa103e374615f040b0db13339
[ "MIT" ]
1
2020-09-04T07:46:45.000Z
2020-09-04T07:46:45.000Z
basico/aula022/aula022.py
KaicPierre/Curso-de-Python3
6267ba92c298f0ffa103e374615f040b0db13339
[ "MIT" ]
null
null
null
basico/aula022/aula022.py
KaicPierre/Curso-de-Python3
6267ba92c298f0ffa103e374615f040b0db13339
[ "MIT" ]
null
null
null
""" Split, Join e Enumerate em Python - Split: Dividir uma # str - Join: Juntas uma lista # str - Enumerate: Enumerar elementos da lista # iteráveis - Pode-se colocar uma lista dentro de outa lista. """ string_teste = 'O Kaic Pierre é um programador em formação, Kaic estuda CCO.' lista_1 = string_teste.split(' ') list...
24.575758
85
0.70037
7cf31ab69dc4416001b9c7fe33b07dc7ded88c71
2,644
py
Python
mlab_api/data/server_asn_data.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
1
2017-09-05T14:52:11.000Z
2017-09-05T14:52:11.000Z
mlab_api/data/server_asn_data.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
9
2017-09-14T15:30:02.000Z
2019-03-05T18:35:20.000Z
mlab_api/data/server_asn_data.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
3
2017-06-01T16:01:37.000Z
2017-10-24T22:44:47.000Z
# -*- coding: utf-8 -*- ''' Data class for accessing data for API calls. ''' from mlab_api.data.table_config import get_table_config from mlab_api.constants import TABLE_KEYS from mlab_api.data.base_data import Data from mlab_api.decorators import add_ids, add_id import mlab_api.data.bigtable_utils as bt import mlab_ap...
33.05
80
0.655825
1a71a65f62fee1588b6e8714a675a224007cb5c8
3,844
py
Python
biorxiv/word_vector_experiment/04_biorxiv_visualize_embeddings_doc2vec.py
danich1/annorxiver
8fab17e1c3ebce7b9e3fc54ea64585b37d9b3825
[ "CC0-1.0", "BSD-3-Clause" ]
4
2020-05-13T23:44:57.000Z
2021-07-04T23:51:46.000Z
biorxiv/word_vector_experiment/04_biorxiv_visualize_embeddings_doc2vec.py
danich1/annorxiver
8fab17e1c3ebce7b9e3fc54ea64585b37d9b3825
[ "CC0-1.0", "BSD-3-Clause" ]
23
2020-03-23T18:35:25.000Z
2021-09-21T21:14:20.000Z
biorxiv/word_vector_experiment/04_biorxiv_visualize_embeddings_doc2vec.py
danich1/annorxiver
8fab17e1c3ebce7b9e3fc54ea64585b37d9b3825
[ "CC0-1.0", "BSD-3-Clause" ]
3
2020-01-31T18:27:55.000Z
2020-05-29T20:26:22.000Z
# --- # jupyter: # jupytext: # formats: ipynb,py # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.9.1+dev # kernelspec: # display_name: Python [conda env:annorxiver] # language: python # name: conda-env-annorxiver-...
27.457143
102
0.569979
a1d493943e36d357131cb930cd426ddb272dac5e
3,746
py
Python
ionoscloud_dbaas_postgres/models/postgres_version_list_data.py
ionos-cloud/sdk-python-dbaas-postgres
b261553041f99143acec39740bae0b3f08d15799
[ "Apache-2.0" ]
null
null
null
ionoscloud_dbaas_postgres/models/postgres_version_list_data.py
ionos-cloud/sdk-python-dbaas-postgres
b261553041f99143acec39740bae0b3f08d15799
[ "Apache-2.0" ]
null
null
null
ionoscloud_dbaas_postgres/models/postgres_version_list_data.py
ionos-cloud/sdk-python-dbaas-postgres
b261553041f99143acec39740bae0b3f08d15799
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ IONOS DBaaS REST API An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is d...
30.455285
494
0.600908
a3feeecc508c83bc31c8a6086e4543141edf6046
70,935
py
Python
core/controllers/reader_test.py
A-Yerkeshev/oppia
e8331ef39b6d07fde8212bc3ed203f1fc386eb46
[ "Apache-2.0" ]
null
null
null
core/controllers/reader_test.py
A-Yerkeshev/oppia
e8331ef39b6d07fde8212bc3ed203f1fc386eb46
[ "Apache-2.0" ]
null
null
null
core/controllers/reader_test.py
A-Yerkeshev/oppia
e8331ef39b6d07fde8212bc3ed203f1fc386eb46
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Oppia 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 applicable ...
42.680505
113
0.646832
93c968ac77787ed4289e37747ea479879d07aed6
3,288
py
Python
https/main.py
vikingUnet/BigQuery-integrations
fca4436c6c834e0aa59d7bb672fad8b69c966783
[ "MIT" ]
45
2018-09-21T11:32:07.000Z
2021-02-27T23:49:33.000Z
https/main.py
vikingUnet/BigQuery-integrations
fca4436c6c834e0aa59d7bb672fad8b69c966783
[ "MIT" ]
4
2019-09-30T14:14:53.000Z
2021-03-23T10:10:19.000Z
https/main.py
vikingUnet/BigQuery-integrations
fca4436c6c834e0aa59d7bb672fad8b69c966783
[ "MIT" ]
16
2018-09-24T13:58:11.000Z
2022-01-28T01:41:08.000Z
from google.cloud import bigquery import os import requests as rq # writeable part of the filesystem for Cloud Functions instance gc_write_dir = "/tmp" def get_file_https(path_to_file): """ Get an existing file from HTTP(S) via http(s)://*host*/*path_to_file* link to a home directory. The function...
38.232558
193
0.683698
32982e8cf0692a36a588111effcca7681aa82cd7
166
py
Python
problem0680.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0680.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0680.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #680 Yarra Gnisrever - Project Euler # https://projecteuler.net/problem=680 # # Code by Kevin Marciniak # ###########################
18.444444
38
0.475904
0ddd2dd877b18d87c72121faf50f681b4c6a9c10
3,650
py
Python
wepay/exceptions.py
wann100/Groomer
c290c00cebc453d71f32f45bff72653130add592
[ "MIT" ]
3
2015-03-04T19:13:02.000Z
2016-02-10T15:47:18.000Z
wepay/exceptions.py
lehins/python-wepay
414d25a1a8d0ecb22a3ddd1f16c60b805bb52a1f
[ "MIT" ]
null
null
null
wepay/exceptions.py
lehins/python-wepay
414d25a1a8d0ecb22a3ddd1f16c60b805bb52a1f
[ "MIT" ]
null
null
null
__all__ = [ 'WePayWarning', 'WePayError', 'WePayHTTPError', 'WePayClientError', 'WePayServerError', 'WePayConnectionError' ] class WePayWarning(UserWarning): pass class WePayError(Exception): """Raised whenever WePay API call was not successfull. `WePay API Errors Documentation <https://www.wepa...
29.674797
89
0.655616
7734e6a24bf8b4a765124722ee199ed9db3bd2b0
161
py
Python
src/mmw/apps/core/tests.py
lsetiawan/model-my-watershed
4646ebb486cb7902dce1b13c9ada32e80d22fcf0
[ "Apache-2.0" ]
45
2015-05-25T22:55:21.000Z
2022-02-27T14:51:52.000Z
src/mmw/apps/core/tests.py
lsetiawan/model-my-watershed
4646ebb486cb7902dce1b13c9ada32e80d22fcf0
[ "Apache-2.0" ]
3,213
2015-05-22T00:32:00.000Z
2022-03-31T15:05:08.000Z
src/mmw/apps/core/tests.py
lsetiawan/model-my-watershed
4646ebb486cb7902dce1b13c9ada32e80d22fcf0
[ "Apache-2.0" ]
37
2015-05-22T12:30:46.000Z
2021-09-10T02:13:44.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import division # Create your tests here.
23
39
0.78882
f247e4d5f1535f3268ccd1f411a282e13b7f2b7c
5,747
py
Python
semantic_segmentation_evaluation.py
KluvaDa/Chromosomes
4323c5239f4b933c38eebcd6c5b1bcf455002d2b
[ "MIT" ]
null
null
null
semantic_segmentation_evaluation.py
KluvaDa/Chromosomes
4323c5239f4b933c38eebcd6c5b1bcf455002d2b
[ "MIT" ]
null
null
null
semantic_segmentation_evaluation.py
KluvaDa/Chromosomes
4323c5239f4b933c38eebcd6c5b1bcf455002d2b
[ "MIT" ]
null
null
null
import torch import pytorch_lightning as pl import os import numpy as np import matplotlib.pyplot as plt import pandas as pd from typing import Dict from semantic_segmentation import ClassificationModule, ClassificationDataModule def interpret_dirname(dirname: str): dirname_parts = dirname.split('_') networ...
37.077419
109
0.674439
09aea85cc95c663140ebb020cfeed6a1c3642a52
19,848
py
Python
backend/developer.py
tangb/cleepos-developer
dc6df3590b424a10bda80eef0394f83df31c76fb
[ "MIT" ]
null
null
null
backend/developer.py
tangb/cleepos-developer
dc6df3590b424a10bda80eef0394f83df31c76fb
[ "MIT" ]
null
null
null
backend/developer.py
tangb/cleepos-developer
dc6df3590b424a10bda80eef0394f83df31c76fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import inspect import json from cleep.core import CleepModule from cleep.libs.internals.console import Console, EndlessConsole from cleep.exception import CommandError, MissingParameter, InvalidParameter from cleep.libs.internals import __all__ as internals_libs ...
36.960894
158
0.616788
972a8debf2879280dca6a77866fc6a62b2957ac9
2,259
py
Python
forte/data/common_entry_utils.py
bhaskar2443053/forte
95fabd94126d45c0db07cdcc197049ed1859d228
[ "Apache-2.0" ]
null
null
null
forte/data/common_entry_utils.py
bhaskar2443053/forte
95fabd94126d45c0db07cdcc197049ed1859d228
[ "Apache-2.0" ]
null
null
null
forte/data/common_entry_utils.py
bhaskar2443053/forte
95fabd94126d45c0db07cdcc197049ed1859d228
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Forte 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 applicable ...
31.375
78
0.703409
343c99879aafbe5c397ee66c6599113dd1068458
1,545
py
Python
napari_plugin_engine/_tracing.py
tlambert-forks/napari-plugin-engine
79ee20ff57061f3a4c592601a7bc3faae398cf7b
[ "MIT" ]
6
2021-01-04T10:43:34.000Z
2021-12-20T08:37:30.000Z
napari_plugin_engine/_tracing.py
tlambert-forks/napari-plugin-engine
79ee20ff57061f3a4c592601a7bc3faae398cf7b
[ "MIT" ]
47
2020-06-26T02:54:24.000Z
2022-03-21T19:54:51.000Z
napari_plugin_engine/_tracing.py
tlambert-forks/napari-plugin-engine
79ee20ff57061f3a4c592601a7bc3faae398cf7b
[ "MIT" ]
8
2020-04-26T23:10:06.000Z
2021-08-13T18:07:09.000Z
""" Tracing utils """ class TagTracer: def __init__(self): self._tags2proc = {} self._writer = None self.indent = 0 def get(self, name): return TagTracerSub(self, (name,)) def _format_message(self, tags, args): if isinstance(args[-1], dict): extra = ar...
24.52381
67
0.541748
f839b5375327fe0d384d3e54a8cc9698f9f0a37d
7,065
py
Python
tests/generic_views/views.py
denisenkom/django
db21cab162168d5b0ef271dd572f4332e0897c37
[ "BSD-3-Clause" ]
1
2019-03-14T03:06:49.000Z
2019-03-14T03:06:49.000Z
tests/generic_views/views.py
denisenkom/django
db21cab162168d5b0ef271dd572f4332e0897c37
[ "BSD-3-Clause" ]
null
null
null
tests/generic_views/views.py
denisenkom/django
db21cab162168d5b0ef271dd572f4332e0897c37
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator from django.core.urlresolvers import reverse, reverse_lazy from django.utils.decorators import method_decorator from django.views import generic from .test_forms import AuthorF...
25.690909
89
0.724699
0d10bbd1ff003b4f6f262564d57f954f9b74c9f6
6,098
py
Python
tests/test_format_packet.py
eerimoq/mqtttools
a28c86e89af0852249a5d6f33f9e67036c3eb8fe
[ "MIT" ]
43
2019-05-02T06:33:47.000Z
2022-03-26T19:39:06.000Z
tests/test_format_packet.py
eerimoq/mqtttools
a28c86e89af0852249a5d6f33f9e67036c3eb8fe
[ "MIT" ]
7
2020-07-22T11:07:49.000Z
2021-12-27T19:20:22.000Z
tests/test_format_packet.py
eerimoq/mqtttools
a28c86e89af0852249a5d6f33f9e67036c3eb8fe
[ "MIT" ]
9
2019-05-01T21:29:25.000Z
2021-07-15T20:50:15.000Z
import unittest import mqttools class FormatPacketTest(unittest.TestCase): maxDiff = None def test_format_packet(self): datas = [ ( b'\x10\x10\x00\x04MQTT\x05\x02\x00\x01\x00\x00\x03goo', [ 'Received CONNECT(1) packet of 18 byte(s)', ...
37.641975
79
0.406199
02c999763747e5297d1cb8b929d49f1706ba864c
2,212
py
Python
No_0048_Rotate Image/by_list_comprehension.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
32
2020-01-05T13:37:16.000Z
2022-03-26T07:27:09.000Z
No_0048_Rotate Image/by_list_comprehension.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
null
null
null
No_0048_Rotate Image/by_list_comprehension.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
8
2020-06-18T16:17:27.000Z
2022-03-15T23:58:18.000Z
''' Description: You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotation. Example 1: Input: matrix = [[1,2,3],[4,...
19.927928
154
0.580922
e5731b36a98af82f15464e714591a21ba045b5a0
2,354
py
Python
eventex/nucleo/tests/test_model_talk.py
wt3c/wttd
1964fff85550976ad1bf2790d243b542ed1b383b
[ "MIT" ]
null
null
null
eventex/nucleo/tests/test_model_talk.py
wt3c/wttd
1964fff85550976ad1bf2790d243b542ed1b383b
[ "MIT" ]
1
2022-02-03T19:14:31.000Z
2022-02-03T19:14:31.000Z
eventex/nucleo/tests/test_model_talk.py
wt3c/wttd
1964fff85550976ad1bf2790d243b542ed1b383b
[ "MIT" ]
null
null
null
from django.test import TestCase from eventex.nucleo.managers import PeriodManager from eventex.nucleo.models import Talk, Course class TalkModelTest(TestCase): def setUp(self): self.talk = Talk.objects.create( title='Título da Palestra', start='10:00', description='De...
30.571429
67
0.619371
f37bea33e3b269523c9ce06d765a32aef489392f
822
py
Python
test/triple_store.py
ROZBEH/rdflib
5b9da927714a92a8888407f42b46249002964e8e
[ "BSD-3-Clause" ]
1,424
2015-01-04T13:10:22.000Z
2022-03-29T15:12:38.000Z
test/triple_store.py
ROZBEH/rdflib
5b9da927714a92a8888407f42b46249002964e8e
[ "BSD-3-Clause" ]
1,148
2015-01-01T18:26:18.000Z
2022-03-31T21:51:53.000Z
test/triple_store.py
ROZBEH/rdflib
5b9da927714a92a8888407f42b46249002964e8e
[ "BSD-3-Clause" ]
459
2015-01-03T14:41:34.000Z
2022-03-14T22:06:47.000Z
import unittest from rdflib.term import BNode, Literal from rdflib.namespace import RDFS from rdflib.graph import Graph class GraphTest(unittest.TestCase): backend = "default" path = "store" def setUp(self): self.store = Graph(store=self.backend) self.store.open(self.path) self.r...
22.833333
68
0.631387
540f6047fd7ddf1efe4ba4b81ea07ffcfe4de847
1,790
py
Python
all_path_planning.py
govindak-umd/PlanningTkinter
a4a1a908a6b314f04d818f2430f63708e8472889
[ "MIT" ]
null
null
null
all_path_planning.py
govindak-umd/PlanningTkinter
a4a1a908a6b314f04d818f2430f63708e8472889
[ "MIT" ]
null
null
null
all_path_planning.py
govindak-umd/PlanningTkinter
a4a1a908a6b314f04d818f2430f63708e8472889
[ "MIT" ]
null
null
null
from tkinter import * from A_star import doAStarPathPlanning from Dijkstra import doDijkstra from BFS import doBFS from DFS import doDFS from RRT import doRRT from RRT_Star import doRRTStar # Call tkinter Window and display all options if __name__ == "__main__": # create a tkinter window root = Tk() # S...
24.520548
80
0.628492
c85a8b0c4d90bf1aa9a7c91c994626453742426e
3,547
py
Python
test11.py
isaiah1782-cmis/isaiah1782-cmis-cs2
ac6683888c9215bb697cfc771e3fc955043a1668
[ "CC0-1.0" ]
null
null
null
test11.py
isaiah1782-cmis/isaiah1782-cmis-cs2
ac6683888c9215bb697cfc771e3fc955043a1668
[ "CC0-1.0" ]
null
null
null
test11.py
isaiah1782-cmis/isaiah1782-cmis-cs2
ac6683888c9215bb697cfc771e3fc955043a1668
[ "CC0-1.0" ]
null
null
null
#---------------------------------------------- # Animated Banner Program # More programs at UsingPython.com/programs #---------------------------------------------- #---------------------------------------------------------------- # Challenges: # # 1. Change the display width to 5. Note what happens. # 2. Add more le...
32.245455
82
0.38596
7b14c32360d7138ac4eafc50b6280a5f83dff1cd
171
py
Python
tests/expr8.py
Smit-create/lpython
6a731170ba9628eadc0430815c52c175a8c2e767
[ "MIT" ]
null
null
null
tests/expr8.py
Smit-create/lpython
6a731170ba9628eadc0430815c52c175a8c2e767
[ "MIT" ]
null
null
null
tests/expr8.py
Smit-create/lpython
6a731170ba9628eadc0430815c52c175a8c2e767
[ "MIT" ]
null
null
null
def test_binop(): x: i32 x2: f32 x = 2**3 x = 2**3.5 x = 54 - 100 x2 = (3.454 - 765.43) + 534.6 x2 = 5346.565 * 3.45 x2 = 5346.565 ** 3.45
17.1
33
0.432749
b1ec49e29c9b9bc9cd24d3eb697488a7338f947a
25,020
py
Python
loewieec_sync_hk/sale.py
lester-lees/extra_addons_hk
edd2c2595146bc9c99b75a2d0831a93f940fa55c
[ "Apache-2.0" ]
null
null
null
loewieec_sync_hk/sale.py
lester-lees/extra_addons_hk
edd2c2595146bc9c99b75a2d0831a93f940fa55c
[ "Apache-2.0" ]
null
null
null
loewieec_sync_hk/sale.py
lester-lees/extra_addons_hk
edd2c2595146bc9c99b75a2d0831a93f940fa55c
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from openerp.osv import fields,osv from openpyxl.reader.excel import load_workbook from openerp import tools from openerp.tools.translate import _ import os import re import datetime import logging _logger = logging.getLogger(__name__) class product_tmalljd_gifts(osv.osv): _name = "prod...
46.419295
255
0.595204
24008d63d5f799a4cee54c5f70dacc4619139095
5,806
py
Python
Lib/glyphsLib/builder/masters.py
daltonmaag/glyphs2ufo
19b26b6af390702302795d9f747aea9fcfcafb5c
[ "Apache-2.0" ]
1
2021-06-03T20:50:24.000Z
2021-06-03T20:50:24.000Z
Lib/glyphsLib/builder/masters.py
daltonmaag/glyphs2ufo
19b26b6af390702302795d9f747aea9fcfcafb5c
[ "Apache-2.0" ]
null
null
null
Lib/glyphsLib/builder/masters.py
daltonmaag/glyphs2ufo
19b26b6af390702302795d9f747aea9fcfcafb5c
[ "Apache-2.0" ]
1
2015-11-23T19:28:17.000Z
2015-11-23T19:28:17.000Z
# Copyright 2015 Google Inc. 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 applicable law or a...
39.22973
87
0.710989
56b7c7f5310a30214596a4dc08d1202e7a7712da
9,590
py
Python
tests/components/landslides/test_landslide_probability.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
257
2015-01-13T16:01:21.000Z
2022-03-29T22:37:43.000Z
tests/components/landslides/test_landslide_probability.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
1,222
2015-02-05T21:36:53.000Z
2022-03-31T17:53:49.000Z
tests/components/landslides/test_landslide_probability.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
274
2015-02-11T19:56:08.000Z
2022-03-28T23:31:07.000Z
""" Unit tests for landlab.components.landslides.landslide_probability """ import numpy as np import pytest from numpy.testing import assert_array_almost_equal from landlab import RasterModelGrid from landlab.components import LandslideProbability (_SHAPE, _SPACING, _ORIGIN) = ((20, 20), (10e0, 10e0), (0.0, 0.0)) _AR...
38.36
83
0.704588
7a168f5b89af6260ff3e6ade2e5589542c80cb48
1,039
py
Python
manage.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
manage.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
manage.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from pathlib import Path if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some...
32.46875
77
0.658325
cc2f0e20b19ab56a57dbcba6be1fd0190502be52
8,080
py
Python
client/client_actions/admin_test.py
scudette/grr
d4257c5259af881e28a7d62e9837fa13352e2bf6
[ "Apache-2.0" ]
6
2015-04-03T02:25:28.000Z
2021-11-17T21:42:59.000Z
client/client_actions/admin_test.py
defaultnamehere/grr
ba1648b97a76f844ffb8e1891cc9e2680f9b1c6e
[ "Apache-2.0" ]
null
null
null
client/client_actions/admin_test.py
defaultnamehere/grr
ba1648b97a76f844ffb8e1891cc9e2680f9b1c6e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Tests client actions related to administrating the client.""" import os import StringIO import psutil from grr.client import comms from grr.lib import config_lib from grr.lib import rdfvalue from grr.lib import stats from grr.lib import test_lib class ConfigActionTest(test_lib.EmptyActio...
37.934272
79
0.698267
7279b6a892b7b6ab9f6479bb9f0aa376e87132aa
159
py
Python
modules/__init__.py
hargoniX/yoda
54099300f054e2fe1f27e048400266ba30760f51
[ "MIT" ]
null
null
null
modules/__init__.py
hargoniX/yoda
54099300f054e2fe1f27e048400266ba30760f51
[ "MIT" ]
null
null
null
modules/__init__.py
hargoniX/yoda
54099300f054e2fe1f27e048400266ba30760f51
[ "MIT" ]
1
2018-07-14T15:31:25.000Z
2018-07-14T15:31:25.000Z
__all__ = [ 'alias', 'chat', 'dev', 'love', 'diary', 'money', 'learn', 'setup', 'life', 'util', 'food', 'goals' ]
10.6
12
0.377358
f7ab5a645d4e77daf8cd0e1aa8f1fa998fb1c13f
30,211
py
Python
forum/migrations/0003_repute_changes.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2017-07-14T09:58:07.000Z
2017-07-14T09:58:07.000Z
forum/migrations/0003_repute_changes.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
forum/migrations/0003_repute_changes.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): for r in orm.Repute.objects.all(): r.value = r.positive + r.negative r.user_previous_rep = r.reputa...
84.86236
186
0.564496
8e97efb14608281d9db05f5e9c7df4c3273ff97a
8,944
py
Python
library/azure_rm_mysqlconfiguration.py
mc-corey50/Azure-Ansible
a05e2ea2b3f35919b32acef5f823056dbf27ed96
[ "MIT" ]
null
null
null
library/azure_rm_mysqlconfiguration.py
mc-corey50/Azure-Ansible
a05e2ea2b3f35919b32acef5f823056dbf27ed96
[ "MIT" ]
null
null
null
library/azure_rm_mysqlconfiguration.py
mc-corey50/Azure-Ansible
a05e2ea2b3f35919b32acef5f823056dbf27ed96
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2017 Zim Kalinowski, <zikalino@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
32.882353
157
0.577482
8d0e6d81263945222a654b6ac99f32d43827fd5c
610
py
Python
axformer/model/decoder.py
sytelus/axformer
2492582f0e37a1edaa21f3c9f88ce1bbee91c90f
[ "MIT" ]
null
null
null
axformer/model/decoder.py
sytelus/axformer
2492582f0e37a1edaa21f3c9f88ce1bbee91c90f
[ "MIT" ]
null
null
null
axformer/model/decoder.py
sytelus/axformer
2492582f0e37a1edaa21f3c9f88ce1bbee91c90f
[ "MIT" ]
null
null
null
from torch import nn from axformer.transformer_utils import clones from axformer.layer_norm import LayerNorm from axformer.model.decoder_layer import DecoderLayer class Decoder(nn.Module): "Generic n_layers decoder with masking." def __init__(self, layer:DecoderLayer, n_layers:int): super(Dec...
35.882353
58
0.691803
87fa8da332006e3491f4e7be02e2c51610676dd7
2,756
py
Python
commands/handlers/python_handler.py
Sveder/jfrog-cli-autosetup
0f9b1f67914fc47cfb4863bcf93efdc9da600120
[ "Apache-2.0" ]
null
null
null
commands/handlers/python_handler.py
Sveder/jfrog-cli-autosetup
0f9b1f67914fc47cfb4863bcf93efdc9da600120
[ "Apache-2.0" ]
null
null
null
commands/handlers/python_handler.py
Sveder/jfrog-cli-autosetup
0f9b1f67914fc47cfb4863bcf93efdc9da600120
[ "Apache-2.0" ]
null
null
null
import pathlib import configparser from handlers.base_handler import BaseHandler class PythonHandler(BaseHandler): type = 'pypi' def autosetup(self, repo_name): self.setup_deploy(repo_name) self.setup_resolve(repo_name) def setup_deploy(self, repo_name): pypirc_path = pathlib.Pa...
34.024691
93
0.624819
86290c24bb442620b02edc7c8ff9ce5b328fab13
11,363
py
Python
authorised_payees/ap_wallet.py
azyse/wallets
72d2056cd95ee817b7a4db58adff5423f554aa80
[ "Apache-2.0" ]
null
null
null
authorised_payees/ap_wallet.py
azyse/wallets
72d2056cd95ee817b7a4db58adff5423f554aa80
[ "Apache-2.0" ]
null
null
null
authorised_payees/ap_wallet.py
azyse/wallets
72d2056cd95ee817b7a4db58adff5423f554aa80
[ "Apache-2.0" ]
null
null
null
from standard_wallet.wallet import Wallet import clvm from chiasim.hashable import Program, ProgramHash, CoinSolution, SpendBundle, BLSPublicKey, BLSSignature from chiasim.hashable.Coin import Coin from chiasim.hashable.CoinSolution import CoinSolutionList from clvm_tools import binutils from chiasim.puzzles.p2_delegat...
48.76824
191
0.688639
cf032c2662197cb478849b3bb9780e8cc9005a6d
10,500
py
Python
homePage/cached_templates/templates/base.htm.py
bmackley/history
cddf1405f23c98702f2c5b4c02571b5cc20a449a
[ "Apache-2.0" ]
null
null
null
homePage/cached_templates/templates/base.htm.py
bmackley/history
cddf1405f23c98702f2c5b4c02571b5cc20a449a
[ "Apache-2.0" ]
null
null
null
homePage/cached_templates/templates/base.htm.py
bmackley/history
cddf1405f23c98702f2c5b4c02571b5cc20a449a
[ "Apache-2.0" ]
null
null
null
# -*- coding:ascii -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1455050976.627365 _enable_loop = True _template_filename = '/Users/benmackley/Projects/history/hom...
75
2,287
0.619905
c84e666ba5a06da84c014970f42c0b388d6a149a
6,677
py
Python
process/train_utils.py
AlbertiPot/nar
eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28
[ "BSD-3-Clause" ]
2
2022-02-08T06:45:41.000Z
2022-02-09T03:49:54.000Z
process/train_utils.py
AlbertiPot/nar
eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28
[ "BSD-3-Clause" ]
null
null
null
process/train_utils.py
AlbertiPot/nar
eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28
[ "BSD-3-Clause" ]
null
null
null
import torch from architecture import Bucket from sampler.prob_calculate import * def get_target(score, n_tier, batch_sz): assert batch_sz>= n_tier, 'batch_sz should be larger than n_tier' _, idx = score.sort(descending=True) step = int(batch_sz / n_tier) t_flag = [] target = torch.zeros(batch_s...
37.094444
112
0.653287
bc4d2d6046fcbda00d62a95d87078ece73286f93
5,736
py
Python
test/functional/p2p_eviction.py
pjhwa/dogecoin
4fc6d6360af09f203aff6c827551cae60eb319cc
[ "MIT" ]
14
2018-01-22T09:25:21.000Z
2022-02-05T00:41:30.000Z
test/functional/p2p_eviction.py
pjhwa/dogecoin
4fc6d6360af09f203aff6c827551cae60eb319cc
[ "MIT" ]
13
2015-08-07T13:32:37.000Z
2021-09-30T02:44:07.000Z
test/functional/p2p_eviction.py
pjhwa/dogecoin
4fc6d6360af09f203aff6c827551cae60eb319cc
[ "MIT" ]
3
2015-10-19T17:14:02.000Z
2021-05-26T17:51:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test node eviction logic When the number of peers has reached the limit of maximum connections, the next ...
44.123077
102
0.657427
cb786eca2fa967f50107bd01f1fc5743535790ba
261
py
Python
asreviewcontrib/models/__init__.py
JTeijema/ASReview-Model_Switcher
65077e08ba3de365fbcf4b8f18e04485c1c26427
[ "Apache-2.0" ]
10
2021-07-05T06:36:47.000Z
2021-07-06T21:30:10.000Z
asreviewcontrib/models/__init__.py
JTeijema/ASReview-Model_Switcher
65077e08ba3de365fbcf4b8f18e04485c1c26427
[ "Apache-2.0" ]
null
null
null
asreviewcontrib/models/__init__.py
JTeijema/ASReview-Model_Switcher
65077e08ba3de365fbcf4b8f18e04485c1c26427
[ "Apache-2.0" ]
1
2021-07-07T12:44:04.000Z
2021-07-07T12:44:04.000Z
from asreviewcontrib.models.model_switcher import base_switcher from asreviewcontrib.models.svm_cnn import SVM_CNN_Model from asreviewcontrib.models.svm_nn import SVM_NN_Model from asreviewcontrib.models.cnn import POWER_CNN import asreviewcontrib.models.config
52.2
63
0.896552
f187232b05ab0965c8e4f6fad85642a68c4b6ebd
8,616
py
Python
docs/source/conf.py
javrasya/watchdog
8122f1d60dbdda575db73ee565a0437cfad46ef2
[ "ECL-2.0", "Apache-2.0" ]
1
2015-06-30T11:59:44.000Z
2015-06-30T11:59:44.000Z
docs/source/conf.py
javrasya/watchdog
8122f1d60dbdda575db73ee565a0437cfad46ef2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/source/conf.py
javrasya/watchdog
8122f1d60dbdda575db73ee565a0437cfad46ef2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # watchdog documentation build configuration file, created by # sphinx-quickstart on Tue Nov 30 00:43:58 2010. # # 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 # autogenerated file. # # Al...
31.793358
123
0.721797
40f8fb12d483950dc455f70b4ab2d81636f4435e
654
py
Python
setup.py
prakashdanish/chromatic
f3a7e4f9ec9f4d9408c6a0e3e39c764e9ed60ca3
[ "MIT" ]
3
2018-08-14T20:18:53.000Z
2018-08-15T20:38:01.000Z
setup.py
danishprakash/chromatic
f3a7e4f9ec9f4d9408c6a0e3e39c764e9ed60ca3
[ "MIT" ]
null
null
null
setup.py
danishprakash/chromatic
f3a7e4f9ec9f4d9408c6a0e3e39c764e9ed60ca3
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md', 'r') as fh: long_description = fh.read() setup( name='chromatic', version='1.0.3', description='Generate monochromatic backgrounds instantly', long_description=long_description, author='Danish Prakash', author_email='danish...
24.222222
63
0.62844
fe85d8a95b8c5b2930e247504f6c68cbb22c2717
1,038
py
Python
whisk_python_ch0_randomtrigger/__main__.py
timwaizenegger/e-ink-display-esp8266-mqtt-openwhisk
d964151bfdebb54a0e0edccb7f5cfbbffa49ba0f
[ "MIT" ]
30
2018-02-16T21:10:34.000Z
2021-11-15T21:06:33.000Z
whisk_python_ch0_randomtrigger/__main__.py
timwaizenegger/e-ink-display-esp8266-mqtt-openwhisk
d964151bfdebb54a0e0edccb7f5cfbbffa49ba0f
[ "MIT" ]
1
2020-10-04T21:50:26.000Z
2020-10-04T21:50:26.000Z
whisk_python_ch0_randomtrigger/__main__.py
timwaizenegger/e-ink-display-esp8266-mqtt-openwhisk
d964151bfdebb54a0e0edccb7f5cfbbffa49ba0f
[ "MIT" ]
2
2020-10-04T21:51:30.000Z
2021-05-31T14:53:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Tim Waizenegger (c) 2018,2019 Used as an open whisk action on IBM cloud bx wsk action update displaychannel_ch0_trigger_random --kind python:3 --main main __main__.py """ import random import requests functions_apikey = "cloud functions CF API key" endpoints...
28.054054
106
0.751445
a92557d4a56958013d4e52a645a3c82e980d281d
3,654
py
Python
graphene_asgi/protocols/graphql_ws.py
ericls/graphene-asgi
4936d9dd3d06bbda7eb27fa0488eaf9dff9b107d
[ "MIT" ]
6
2019-09-06T14:56:03.000Z
2020-11-28T04:10:57.000Z
graphene_asgi/protocols/graphql_ws.py
fellowinsights/graphene-asgi
4936d9dd3d06bbda7eb27fa0488eaf9dff9b107d
[ "MIT" ]
null
null
null
graphene_asgi/protocols/graphql_ws.py
fellowinsights/graphene-asgi
4936d9dd3d06bbda7eb27fa0488eaf9dff9b107d
[ "MIT" ]
null
null
null
import asyncio import json from typing import AsyncIterator from graphql.execution.execute import ExecutionResult from .base import ProtocolBase GQL_CONNECTION_INIT = "connection_init" GQL_CONNECTION_ACK = "connection_ack" GQL_CONNECTION_ERROR = "connection_error" GQL_CONNECTION_KEEP_ALIVE = "ka" GQL_CONNECTION_TERM...
35.475728
88
0.590586
b045825dbdd4a846ff101b1d4711c93419f1c7be
1,628
py
Python
Programs/smaller_count_right.py
Subikesh/Data-Structures-and-algorithms
e7959779baed2e6fd4978d45325e3a036cfdfd43
[ "Apache-2.0" ]
3
2021-03-18T07:48:01.000Z
2021-04-27T16:10:08.000Z
Programs/smaller_count_right.py
Subikesh/Data-Structures-and-algorithms
e7959779baed2e6fd4978d45325e3a036cfdfd43
[ "Apache-2.0" ]
null
null
null
Programs/smaller_count_right.py
Subikesh/Data-Structures-and-algorithms
e7959779baed2e6fd4978d45325e3a036cfdfd43
[ "Apache-2.0" ]
null
null
null
""" You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elements to the right of nums[i]. Example: Input: [5,2,6,1] Output: [2,1,1,0] Explanation: To the right of 5 there are 2 smaller elements (2 and 1). To the ri...
28.561404
108
0.552826
eacc3b592857f2e86977d8770fa97eb9554537f3
5,411
py
Python
src/poetry/core/semver/version.py
marink/poetry-core
6f691649be99ff499cbf8f250d8e108b942b1a81
[ "MIT" ]
null
null
null
src/poetry/core/semver/version.py
marink/poetry-core
6f691649be99ff499cbf8f250d8e108b942b1a81
[ "MIT" ]
null
null
null
src/poetry/core/semver/version.py
marink/poetry-core
6f691649be99ff499cbf8f250d8e108b942b1a81
[ "MIT" ]
null
null
null
import dataclasses from typing import TYPE_CHECKING from typing import Optional from typing import Tuple from typing import Union from poetry.core.semver.empty_constraint import EmptyConstraint from poetry.core.semver.version_range_constraint import VersionRangeConstraint from poetry.core.semver.version_union import ...
28.182292
86
0.594345
fbe364dc8a943ebfdf8038d401c7935b14d711f2
2,277
py
Python
tools/scripts/download_hmi.py
helio-hfc/SDOSS
3d00d91473fef26679901045d9852b2337dba864
[ "MIT" ]
null
null
null
tools/scripts/download_hmi.py
helio-hfc/SDOSS
3d00d91473fef26679901045d9852b2337dba864
[ "MIT" ]
null
null
null
tools/scripts/download_hmi.py
helio-hfc/SDOSS
3d00d91473fef26679901045d9852b2337dba864
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: ASCII -*- """ Download a list of HMI files for a given timerange. @author: X.Bonnin (LESIA, CNRS) """ import os import sys import socket import subprocess import urllib2 import argparse from datetime import datetime, timedelta import time __version__ = "1.0" #__license__ = "" __au...
27.107143
77
0.613527
9a690246677fe64cf97ba555829660e4354c8838
841
py
Python
tastyworks/dough/stocks.py
danguyenwork/tastyworks_api
9f333f664020784c28fdc08c3375db13cf788094
[ "Apache-2.0" ]
null
null
null
tastyworks/dough/stocks.py
danguyenwork/tastyworks_api
9f333f664020784c28fdc08c3375db13cf788094
[ "Apache-2.0" ]
null
null
null
tastyworks/dough/stocks.py
danguyenwork/tastyworks_api
9f333f664020784c28fdc08c3375db13cf788094
[ "Apache-2.0" ]
null
null
null
import aiohttp from tastyworks.dough import BASE_URL def stock_search(symbols): """ Performs a stock search through the dough API. Args: symbols (list): The list of string symbols to search for. Returns: list (dict): A list of stock details including full name, implied volatility, l...
23.361111
100
0.609988
f702caa371c248da66937b8521efe91e4540f538
3,164
py
Python
tests/test_preprocessing.py
liuyigh/CITE-seq-Count
5d03e382468fb28187dc15ee1d612dacaac52246
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
liuyigh/CITE-seq-Count
5d03e382468fb28187dc15ee1d612dacaac52246
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
liuyigh/CITE-seq-Count
5d03e382468fb28187dc15ee1d612dacaac52246
[ "MIT" ]
null
null
null
import pytest import io from cite_seq_count import preprocessing @pytest.fixture def data(): from collections import OrderedDict from itertools import islice # Test file paths pytest.correct_whitelist_path = 'tests/test_data/whitelists/correct.csv' pytest.correct_tags_path = 'tests/test_data/...
43.342466
137
0.760114
46b4a2c9e62a466e8d48a9d259a720c04c39697d
1,916
py
Python
tests/lib/collectors/filesystem.py
moettle/dftimewolf
974c00c89a7aac4afa407a7b86c562e52091abb6
[ "Apache-2.0" ]
null
null
null
tests/lib/collectors/filesystem.py
moettle/dftimewolf
974c00c89a7aac4afa407a7b86c562e52091abb6
[ "Apache-2.0" ]
null
null
null
tests/lib/collectors/filesystem.py
moettle/dftimewolf
974c00c89a7aac4afa407a7b86c562e52091abb6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests the local filesystem collector.""" import unittest import mock from dftimewolf.lib import state from dftimewolf.lib import errors from dftimewolf.lib.collectors import filesystem from dftimewolf.lib.containers import containers from dftimewolf import config cl...
35.481481
86
0.747912
50d1d0977c1b0c32a02f9cd95e4c729652bc2c54
2,605
py
Python
packages/MolecularLiabilityBrowser/scripts/merge_ag_to_mlb.py
datagrok-ai/packages
809cbc28c4c81c707fb3b9549cb750d5f854f300
[ "MIT" ]
null
null
null
packages/MolecularLiabilityBrowser/scripts/merge_ag_to_mlb.py
datagrok-ai/packages
809cbc28c4c81c707fb3b9549cb750d5f854f300
[ "MIT" ]
null
null
null
packages/MolecularLiabilityBrowser/scripts/merge_ag_to_mlb.py
datagrok-ai/packages
809cbc28c4c81c707fb3b9549cb750d5f854f300
[ "MIT" ]
null
null
null
from types import SimpleNamespace import pandas as pd import orjson as json from tqdm import tqdm from numpy import nan, argmax from string import ascii_letters import re import click from click_default_group import DefaultGroup @click.group(cls=DefaultGroup, default='main') def cli(): pass @cli.command() @c...
34.276316
121
0.653743
fb12f0b2ad070914f545fe1d6106a0e64605abe1
18,370
py
Python
session2/complete/script.py
jimmysong/pw-exercises
8d7fc065e9fe01399fa240ff88a7b1557901defb
[ "MIT" ]
8
2019-02-21T04:22:48.000Z
2020-07-24T11:03:16.000Z
session4/complete/script.py
jimmysong/pw-exercises
8d7fc065e9fe01399fa240ff88a7b1557901defb
[ "MIT" ]
null
null
null
session4/complete/script.py
jimmysong/pw-exercises
8d7fc065e9fe01399fa240ff88a7b1557901defb
[ "MIT" ]
2
2020-01-23T16:24:16.000Z
2020-02-10T23:00:29.000Z
from io import BytesIO from unittest import TestCase from helper import ( byte_to_int, decode_base58, encode_base58_checksum, encode_bech32_checksum, encode_varstr, hash160, int_to_byte, int_to_little_endian, read_varint, sha256, ) from op import ( op_equal, op_hash160, ...
40.462555
264
0.613174
fc85918b1cf3cdbe98e370a3f40c0a6c75ecdc1c
169
py
Python
languages/python/flask-oso/flask_oso/__init__.py
iinuwa/oso
8b05b64e6b897adc3ce4238d52019ee899e54e8d
[ "Apache-2.0" ]
null
null
null
languages/python/flask-oso/flask_oso/__init__.py
iinuwa/oso
8b05b64e6b897adc3ce4238d52019ee899e54e8d
[ "Apache-2.0" ]
null
null
null
languages/python/flask-oso/flask_oso/__init__.py
iinuwa/oso
8b05b64e6b897adc3ce4238d52019ee899e54e8d
[ "Apache-2.0" ]
null
null
null
__version__ = "0.25.0" from .flask_oso import FlaskOso from .decorators import authorize, skip_authorization __all__ = ["FlaskOso", "authorize", "skip_authorization"]
24.142857
57
0.775148
d0ea08f95d83ee5a12c2d67c0fc8c8d807ab7484
7,867
py
Python
dataset/JointsDataset.py
foamliu/Human-Keypoints
36eb59bf587cea4e82730f03671363ff3d6d8393
[ "Apache-2.0" ]
16
2019-07-31T05:07:21.000Z
2022-02-27T19:07:54.000Z
dataset/JointsDataset.py
foamliu/Human-Keypoints
36eb59bf587cea4e82730f03671363ff3d6d8393
[ "Apache-2.0" ]
null
null
null
dataset/JointsDataset.py
foamliu/Human-Keypoints
36eb59bf587cea4e82730f03671363ff3d6d8393
[ "Apache-2.0" ]
5
2018-10-11T07:54:43.000Z
2020-08-16T05:25:49.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __futu...
35.436937
85
0.5293
74d3716a1717ff4c0179bfb61b89903b9c639df9
713
py
Python
crits/objects/urls.py
frbapolkosnik/crits
1278c034f2238e2fe34e65e32ce241128a014df2
[ "MIT" ]
22
2015-01-14T19:49:32.000Z
2022-01-26T12:18:52.000Z
crits/objects/urls.py
deadbits/crits
154097a1892e9d3960d6faaed4bd2e912a196a47
[ "MIT" ]
null
null
null
crits/objects/urls.py
deadbits/crits
154097a1892e9d3960d6faaed4bd2e912a196a47
[ "MIT" ]
6
2015-01-22T21:25:52.000Z
2021-04-12T23:24:14.000Z
from django.conf.urls import url urlpatterns = [ url(r'^add/$', 'add_new_object', prefix='crits.objects.views'), url(r'^delete/$', 'delete_this_object', prefix='crits.objects.views'), url(r'^get_dropdown/$', 'get_object_type_dropdown', prefix='crits.objects.views'), url(r'^update_objects_value/$', 'upd...
54.846154
92
0.71108
0ed4b42a650595b0c54cb95804b1a51c5ed920a6
3,551
py
Python
Constants/PacketIds.py
henriquelino/pyrelay
b448cca3accc9a566616b756a03958ba096a5ebf
[ "MIT" ]
null
null
null
Constants/PacketIds.py
henriquelino/pyrelay
b448cca3accc9a566616b756a03958ba096a5ebf
[ "MIT" ]
null
null
null
Constants/PacketIds.py
henriquelino/pyrelay
b448cca3accc9a566616b756a03958ba096a5ebf
[ "MIT" ]
null
null
null
idToType = {0: 'FAILURE', 1: 'HELLO', 3: 'CLAIMLOGINREWARDMSG', 4: 'DELETEPET', 5: 'REQUESTTRADE', 6: 'QUESTFETCHRESPONSE', 7: 'JOINGUILD', 8: 'PING', 9: 'NEWTICK', 10: 'PLAYERTEXT', 11: 'US...
31.705357
46
0.409462
97b0d4c8849a836bf40e4a3fb6ae750663591754
535
py
Python
src/htsql/tweak/filedb/introspect.py
sirex/htsql
52275f6a584b412c109822d2ed2a5e69ac522cdf
[ "Apache-2.0" ]
15
2020-02-11T11:24:34.000Z
2022-03-03T20:46:34.000Z
src/htsql/tweak/filedb/introspect.py
sirex/htsql
52275f6a584b412c109822d2ed2a5e69ac522cdf
[ "Apache-2.0" ]
1
2020-02-13T14:08:34.000Z
2020-02-13T14:16:04.000Z
src/htsql/tweak/filedb/introspect.py
sirex/htsql
52275f6a584b412c109822d2ed2a5e69ac522cdf
[ "Apache-2.0" ]
2
2020-02-13T14:10:06.000Z
2021-02-25T04:36:05.000Z
# # Copyright (c) 2006-2013, Prometheus Research, LLC # from htsql_sqlite.core.introspect import IntrospectSQLite from .connect import build_names class IntrospectFileDBCleanup(IntrospectSQLite): def __call__(self): catalog = super(IntrospectFileDBCleanup, self).__call__() table_names = set(nam...
24.318182
65
0.665421
e01802384b5bb94304b7ad8685d58c37f36c2331
4,432
py
Python
bootstrap/run.py
durandtibo/bootstrap.pytorch
d6cb7b846397f472570531c6292581f6e8ff5d99
[ "BSD-3-Clause" ]
1
2020-03-27T20:20:16.000Z
2020-03-27T20:20:16.000Z
bootstrap/run.py
durandtibo/bootstrap.pytorch
d6cb7b846397f472570531c6292581f6e8ff5d99
[ "BSD-3-Clause" ]
null
null
null
bootstrap/run.py
durandtibo/bootstrap.pytorch
d6cb7b846397f472570531c6292581f6e8ff5d99
[ "BSD-3-Clause" ]
null
null
null
import os import click import traceback import torch import torch.backends.cudnn as cudnn from .lib import utils from .lib.logger import Logger from .lib.options import Options from . import engines from . import datasets from . import models from . import optimizers from . import views def init_experiment_directory...
35.741935
113
0.665388
58868f257d340e5d29e2343e0cf4a7a549fbf06d
351
py
Python
tests/year_2021/test_day_22_2021.py
AntoineGanne/adventofcode
a30d6fcb8f573477f7113ec013a9b9b7159ab96c
[ "MIT" ]
null
null
null
tests/year_2021/test_day_22_2021.py
AntoineGanne/adventofcode
a30d6fcb8f573477f7113ec013a9b9b7159ab96c
[ "MIT" ]
null
null
null
tests/year_2021/test_day_22_2021.py
AntoineGanne/adventofcode
a30d6fcb8f573477f7113ec013a9b9b7159ab96c
[ "MIT" ]
null
null
null
from adventofcode.util.input_helpers import get_test_input_for_day from adventofcode.year_2021.day_22_2021 import part_two, part_one def test_part_one(): answer = part_one(get_test_input_for_day(2021, 22)) assert answer is not None def test_part_two(): answer = part_two(get_test_input_for_day(2021, 22))...
27
66
0.789174
9400a446045040f9488f3b38e6f49e6d310ac687
17,959
py
Python
PaddleOCR/ppocr/data/imaug/rec_img_aug.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
PaddleOCR/ppocr/data/imaug/rec_img_aug.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
PaddleOCR/ppocr/data/imaug/rec_img_aug.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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...
32.891941
94
0.542959
f72c517b8635ba9e8ee1d7ac3aac00b5ef74b266
475
py
Python
src/som/primitives/invokable_primitives.py
smarr/RPySOM
941e1fe08753d6e97dac24c3ba4d1e99a9c40160
[ "MIT" ]
12
2016-01-07T14:20:57.000Z
2019-10-13T06:56:20.000Z
src/som/primitives/invokable_primitives.py
smarr/RPySOM
941e1fe08753d6e97dac24c3ba4d1e99a9c40160
[ "MIT" ]
2
2016-05-26T06:53:33.000Z
2020-09-02T15:58:28.000Z
src/som/primitives/invokable_primitives.py
SOM-st/RPySOM
2dcfc71786a3bd5be5a842c649645f71d6c35f89
[ "MIT" ]
2
2016-05-25T06:07:52.000Z
2019-10-02T16:52:25.000Z
from som.primitives.primitives import Primitives from som.vmobjects.primitive import UnaryPrimitive def _holder(rcvr): return rcvr.get_holder() def _signature(rcvr): return rcvr.get_signature() class InvokablePrimitivesBase(Primitives): def install_primitives(self): self._install_instance_prim...
27.941176
97
0.785263
ea5fa26f88a141868f9371a8cecb3b0b9590c246
13,422
py
Python
docs/makeimages.py
gdmcbain/gdspy
704610ae51edc729da4213a455a8286ef93a3f32
[ "BSL-1.0" ]
239
2015-08-14T18:05:32.000Z
2022-03-20T01:16:46.000Z
docs/makeimages.py
gdmcbain/gdspy
704610ae51edc729da4213a455a8286ef93a3f32
[ "BSL-1.0" ]
201
2015-11-27T21:38:28.000Z
2022-03-02T13:38:48.000Z
docs/makeimages.py
gdmcbain/gdspy
704610ae51edc729da4213a455a8286ef93a3f32
[ "BSL-1.0" ]
132
2015-07-12T09:44:17.000Z
2022-03-08T13:47:56.000Z
import gdspy import numpy def draw(cell, name=None): bb = cell.get_bounding_box() scaling = 400 / (1.1 * (bb[1, 0] - bb[0, 0])) name = "docs/_static/" + (name or cell.name) + ".svg" print(f"Saving {name} (scaling {scaling})") cell.write_svg(name, scaling=scaling, precision=2, background="none", pa...
35.321053
88
0.581731
8f799f453724d21a0d64ee28d4396321bafc0768
796
py
Python
config.py
kitili/News-api
55329e5f5f2fc11ea3b94751e94312afe650265f
[ "Unlicense" ]
null
null
null
config.py
kitili/News-api
55329e5f5f2fc11ea3b94751e94312afe650265f
[ "Unlicense" ]
null
null
null
config.py
kitili/News-api
55329e5f5f2fc11ea3b94751e94312afe650265f
[ "Unlicense" ]
null
null
null
import os class Config: ''' general configuration parent class ''' NEWS_API_KEY = os.environ.get('NEWS_API_KEY') SECRET_KEY = os.environ.get('SECRET_KEY') SOURCES_API_URL = 'https://newsapi.org/v2/sources?category={}&apiKey={}' ARTICLES_API_URL = 'https://newsapi.org/v2/top-headlines?source...
25.677419
82
0.680905
42910b2a8410adaf7b798816d20a4355e813509a
2,433
py
Python
0x06-python-classes/101-square.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
0x06-python-classes/101-square.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
0x06-python-classes/101-square.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Define a Square class """ class Square: """ A class that defines a square """ def __init__(self, size=0, position=(0, 0)): """ Initializes the square Args: size: size of the square postion: position of the square ...
24.33
78
0.468968
78bf7abc687018a58320d02a4192265f25657645
7,234
py
Python
webStorm-APICloud/python_tools/Lib/lib2to3/fixes/fix_urllib.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
4
2015-12-07T13:37:48.000Z
2021-03-24T16:27:52.000Z
webStorm-APICloud/python_tools/Lib/lib2to3/fixes/fix_urllib.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
null
null
null
webStorm-APICloud/python_tools/Lib/lib2to3/fixes/fix_urllib.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
"""Fix changes imports of urllib which are now incompatible. This is rather similar to fix_imports, but because of the more complex nature of the fixing for urllib, it has its own fixer. """ # Author: Nick Edds # Local imports from .fix_imports import alternates, FixImports from .. import fixer_base from ..fixer...
41.102273
79
0.525988
50b299a6543b918b807afd31df0104d371b0496f
6,455
py
Python
fenetpp/ltr/dataset/eotb.py
Jee-King/FENet-
4c2230275acb0bb77e07a07606bc0ba5038ed39c
[ "MIT" ]
null
null
null
fenetpp/ltr/dataset/eotb.py
Jee-King/FENet-
4c2230275acb0bb77e07a07606bc0ba5038ed39c
[ "MIT" ]
null
null
null
fenetpp/ltr/dataset/eotb.py
Jee-King/FENet-
4c2230275acb0bb77e07a07606bc0ba5038ed39c
[ "MIT" ]
null
null
null
import os import os.path import numpy as np import torch import csv import pandas import random import string from collections import OrderedDict from .base_video_dataset import BaseVideoDataset from ltr.data.image_loader import jpeg4py_loader from ltr.admin.environment import env_settings cls = {'animal':['dove','be...
41.11465
130
0.626181
0eaa3c2ebf15fc2cb8296c36d25efabed08eed1e
1,165
py
Python
straxen/plugins/__init__.py
FaroutYLq/straxen
4741b8e61895da85b593903ea55dacdaeae65b2f
[ "BSD-3-Clause" ]
null
null
null
straxen/plugins/__init__.py
FaroutYLq/straxen
4741b8e61895da85b593903ea55dacdaeae65b2f
[ "BSD-3-Clause" ]
null
null
null
straxen/plugins/__init__.py
FaroutYLq/straxen
4741b8e61895da85b593903ea55dacdaeae65b2f
[ "BSD-3-Clause" ]
null
null
null
from . import daqreader from .daqreader import * from . import pax_interface from .pax_interface import * from . import pulse_processing from .pulse_processing import * from . import peaklet_processing from .peaklet_processing import * from . import peak_processing from .peak_processing import * from .position_rec...
20.803571
38
0.8103
78ff4eea3a95e0ba00bfb4dc9f0eb406d18115b7
1,072
py
Python
bcs-ui/backend/dashboard/constants.py
liuchenyiwork/bk-bcs
63b3b844e90bbd240e216cce94b5ba08c28d5282
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/dashboard/constants.py
liuchenyiwork/bk-bcs
63b3b844e90bbd240e216cce94b5ba08c28d5282
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/dashboard/constants.py
liuchenyiwork/bk-bcs
63b3b844e90bbd240e216cce94b5ba08c28d5282
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
42.88
115
0.755597
5152df22e8eba9d8abecf7e5e96a2274087959ae
15,055
py
Python
zombie rush.py
premph/zombie-rush
8fd8c8419a6f9fd9e4b42a208b1b3607e10f80fa
[ "Apache-2.0" ]
null
null
null
zombie rush.py
premph/zombie-rush
8fd8c8419a6f9fd9e4b42a208b1b3607e10f80fa
[ "Apache-2.0" ]
null
null
null
zombie rush.py
premph/zombie-rush
8fd8c8419a6f9fd9e4b42a208b1b3607e10f80fa
[ "Apache-2.0" ]
null
null
null
#Import Statements import pygame import random from os import path #Game display dimensions WIDTH = 1000 HEIGHT = 600 FPS = 200 #Number of enemy and leaves to start with ENEMY= 3 LEAVES = 6 #Define colors WHITE = (255, 255, 255) BLACK = (0, 0, 0) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 2...
33.907658
122
0.573099
af65fe79ca1b0acb2dad128c2d79c6756f3a7b58
6,769
py
Python
prove.py
fernandeslouro/logic-reasoner
5319ecf139b681827759d2afe8944680d13a9c96
[ "MIT" ]
3
2018-10-04T01:00:01.000Z
2021-05-29T16:51:11.000Z
prove.py
fernandeslouro/logic-reasoner
5319ecf139b681827759d2afe8944680d13a9c96
[ "MIT" ]
null
null
null
prove.py
fernandeslouro/logic-reasoner
5319ecf139b681827759d2afe8944680d13a9c96
[ "MIT" ]
1
2018-10-04T01:00:04.000Z
2018-10-04T01:00:04.000Z
# Trabalho realizado por: 66088 - Emanuel Fernandes - MEAer # 78450 - Joao Louro - MEAer # # Inteligencia Artifical e Sistemas de Decisao, 1.o Semestre 2017/2018 import sys from copy import copy # open file handling def file_open(): file = sys.stdin file_lines = file.readlin...
26.545098
81
0.490028
94c78fda774c6babe52cb3a67a49c1fb0a5b70ff
3,924
py
Python
tests/unit/test_index.py
thedrow/pip
1927dfce6a5f2b1d0a1cfd5c09e29c7422c769cd
[ "MIT" ]
null
null
null
tests/unit/test_index.py
thedrow/pip
1927dfce6a5f2b1d0a1cfd5c09e29c7422c769cd
[ "MIT" ]
1
2021-08-07T12:15:25.000Z
2021-08-07T12:15:25.000Z
tests/unit/test_index.py
thedrow/pip
1927dfce6a5f2b1d0a1cfd5c09e29c7422c769cd
[ "MIT" ]
1
2020-01-06T15:39:00.000Z
2020-01-06T15:39:00.000Z
import pytest from pip.download import PipSession from pip.index import HTMLPage from pip.index import PackageFinder, Link, INSTALLED_VERSION def test_html_page_should_be_able_to_scrap_rel_links(): """ Test scraping page looking for url in href """ page = HTMLPage( b""" <!-- The <th> elements...
28.852941
77
0.585117
91f9c283b89c488415c2829d049de0761972dcaf
2,175
py
Python
detector/losses.py
TropComplique/ExtremeNet
b2caa642cedf419104f1945ada445954885e3371
[ "MIT" ]
null
null
null
detector/losses.py
TropComplique/ExtremeNet
b2caa642cedf419104f1945ada445954885e3371
[ "MIT" ]
null
null
null
detector/losses.py
TropComplique/ExtremeNet
b2caa642cedf419104f1945ada445954885e3371
[ "MIT" ]
1
2021-05-24T11:06:18.000Z
2021-05-24T11:06:18.000Z
import torch import torch.nn as nn import torch.nn.functional as F def focal_loss(labels, predictions, alpha, beta): """ Arguments: labels: a dict with the following keys 'heatmaps': a float tensor with shape [b, c, h, w], 'num_boxes': a long tensor with shape [b]. pred...
30.633803
79
0.591264
6de3dca6795fc9ad702fcff9fef261e1ee3ff604
65,617
py
Python
test/functional/test_framework/mininode.py
jsheng08/trivechain-core
024b6c69436c39b16da69132f619f9a8d685cc1a
[ "MIT" ]
null
null
null
test/functional/test_framework/mininode.py
jsheng08/trivechain-core
024b6c69436c39b16da69132f619f9a8d685cc1a
[ "MIT" ]
null
null
null
test/functional/test_framework/mininode.py
jsheng08/trivechain-core
024b6c69436c39b16da69132f619f9a8d685cc1a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Trivechain P...
31.637898
262
0.602435
1350ffc40942dccbbcf6b6aac1496d67a885cb3e
1,968
py
Python
gateway/app/main/storage/warehouse.py
mlgruby/PyGrid
eee8ad047ef3b109dfc56179c735ad39e6aa56ce
[ "Apache-2.0" ]
1
2020-03-17T22:17:46.000Z
2020-03-17T22:17:46.000Z
gateway/app/main/storage/warehouse.py
mlgruby/PyGrid
eee8ad047ef3b109dfc56179c735ad39e6aa56ce
[ "Apache-2.0" ]
null
null
null
gateway/app/main/storage/warehouse.py
mlgruby/PyGrid
eee8ad047ef3b109dfc56179c735ad39e6aa56ce
[ "Apache-2.0" ]
null
null
null
from .models import db class Warehouse: def __init__(self, schema): self._schema = schema def register(self, **kwargs): """ Register e new object into the database. Args: parameters : List of object parameters. Returns: object: Database...
28.521739
68
0.535061
4ae72a7c7cc9638d6e965df0222c5311c4a75b88
701
py
Python
tqsdk/datetime_state.py
contropist/tqsdk-python
6d483544221045431565228fffbfea24eb914b97
[ "Apache-2.0" ]
3,208
2018-06-12T10:51:17.000Z
2022-03-30T14:40:50.000Z
tqsdk/datetime_state.py
YountMan/tqsdk-python
b766b45bb82c89a0401a6a84e0e42600fa10e6f4
[ "Apache-2.0" ]
297
2018-07-23T07:42:43.000Z
2021-10-13T05:19:05.000Z
tqsdk/datetime_state.py
YountMan/tqsdk-python
b766b45bb82c89a0401a6a84e0e42600fa10e6f4
[ "Apache-2.0" ]
656
2018-06-25T06:27:58.000Z
2022-03-31T08:01:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'mayanqiong' """ 时间帮助函数,根据回测/实盘获取不同的当前时间 模块内部创建使用 """ import time class TqDatetimeState: def __init__(self): self.data_ready = False # 是否收到了第一个 mdhis_more_data self.tqsdk_backtest = {} def get_current_dt(self): """返回当前 ...
21.242424
78
0.627675
7a5bad48135c3681c3476cbb928356176a79de58
5,838
py
Python
google/ads/googleads/v10/services/types/audience_service.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v10/services/types/audience_service.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v10/services/types/audience_service.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
36.26087
113
0.684995
2ef3a64ca50da739baae2f8172798fa53b67b6a7
3,370
py
Python
test/e2e/batcher/test_batcher.py
yuzisun/kserve
cac60806996256fed59133f9f8decfa1eab401d8
[ "Apache-2.0" ]
null
null
null
test/e2e/batcher/test_batcher.py
yuzisun/kserve
cac60806996256fed59133f9f8decfa1eab401d8
[ "Apache-2.0" ]
2
2022-02-07T07:47:33.000Z
2022-03-23T02:40:33.000Z
test/e2e/batcher/test_batcher.py
yuzisun/kserve
cac60806996256fed59133f9f8decfa1eab401d8
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
40.60241
119
0.636202
e66f48949a330c826eb9e3e21228e5a4d51e2c95
4,440
py
Python
data_preprocessing/setup.py
wangxizhe2017/nlp_project
058a2f31f0e042c8889b26678189ac024f3d5393
[ "MIT" ]
null
null
null
data_preprocessing/setup.py
wangxizhe2017/nlp_project
058a2f31f0e042c8889b26678189ac024f3d5393
[ "MIT" ]
null
null
null
data_preprocessing/setup.py
wangxizhe2017/nlp_project
058a2f31f0e042c8889b26678189ac024f3d5393
[ "MIT" ]
null
null
null
ALL_POS_TAGGER_SET = {"WP$", "ADVP", "PP", "RBR", "X", ",", "VBG", "JJR", "UCP", "IN", "$", "VBN", "SINV", "PDT", "JJ", "XX", "NP", "WHPP", "MD", "NNS", "CD", "WRB", "POS", "HYPH", "RBS", "SQ", "PRP$", "JJS", "VP", "CC", ".", "DT", "SYM", "WDT", "FW", "EX", "''", "SBAR", ":",...
18.893617
147
0.358333
19454be26151d4b5e330147ae03da300fbd68a6e
1,890
py
Python
src/main/python/systemds/operator/algorithm/builtin/csplineDS.py
mdbloice/systemds
d048d35869dfd6eaae9edbc35e43163a40642ce6
[ "Apache-2.0" ]
372
2017-06-09T01:02:53.000Z
2020-06-24T05:45:00.000Z
src/main/python/systemds/operator/algorithm/builtin/csplineDS.py
mdbloice/systemds
d048d35869dfd6eaae9edbc35e43163a40642ce6
[ "Apache-2.0" ]
418
2017-06-08T16:27:44.000Z
2020-06-25T12:15:54.000Z
src/main/python/systemds/operator/algorithm/builtin/csplineDS.py
mdbloice/systemds
d048d35869dfd6eaae9edbc35e43163a40642ce6
[ "Apache-2.0" ]
190
2017-06-08T19:32:54.000Z
2020-06-15T12:26:12.000Z
# ------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you unde...
36.346154
93
0.678836
78f4c68db757b8646d1bf27c5cc2f66ef31333d1
775
py
Python
src/cache/context.py
daboross/screeps-ai-v2
8bb49f59c8c745801d1aef54e1734e28414171e7
[ "MIT" ]
2
2020-08-28T01:26:05.000Z
2021-04-04T03:03:34.000Z
src/cache/context.py
daboross/screeps-ai-v2
8bb49f59c8c745801d1aef54e1734e28414171e7
[ "MIT" ]
null
null
null
src/cache/context.py
daboross/screeps-ai-v2
8bb49f59c8c745801d1aef54e1734e28414171e7
[ "MIT" ]
null
null
null
from typing import Optional, TYPE_CHECKING from jstools.screeps import * if TYPE_CHECKING: from empire.hive import HiveMind __pragma__('noalias', 'name') __pragma__('noalias', 'undefined') __pragma__('noalias', 'Infinity') __pragma__('noalias', 'keys') __pragma__('noalias', 'get') __pragma__('noalias', 'set') __...
20.945946
42
0.670968
f6dffe875fb055de54cca9107aa1fba7cd189f44
1,431
py
Python
src/application/forms.py
koorukuroo/flask_admin_appengine
825084a9bc73245191cd8d34e7f024ed52386ceb
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/application/forms.py
koorukuroo/flask_admin_appengine
825084a9bc73245191cd8d34e7f024ed52386ceb
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/application/forms.py
koorukuroo/flask_admin_appengine
825084a9bc73245191cd8d34e7f024ed52386ceb
[ "MIT", "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" forms.py Web forms based on Flask-WTForms See: http://flask.pocoo.org/docs/patterns/wtforms/ http://wtforms.simplecodes.com/ """ from flaskext import wtf from flaskext.wtf import validators from wtforms.ext.appengine.ndb import model_form from models import ExampleModel from models import PageModel clas...
34.071429
94
0.739343
9010a7cf5de037ba63b3474bce364210a08a4340
5,918
py
Python
tensorflow/datagen/gen_sim_3006.py
fabian57fabian/tempoGAN
5c288ba352a0bb817621e4c5998d9a890612898e
[ "Apache-2.0" ]
158
2018-06-24T17:42:13.000Z
2022-03-12T13:29:43.000Z
tensorflow/datagen/gen_sim_3006.py
greenty5/tempoGAN
6ad6c289aac11ffff5e73a8d398f6cd7d848b9cc
[ "Apache-2.0" ]
5
2018-09-05T07:30:48.000Z
2020-07-01T08:56:28.000Z
tensorflow/datagen/gen_sim_3006.py
greenty5/tempoGAN
6ad6c289aac11ffff5e73a8d398f6cd7d848b9cc
[ "Apache-2.0" ]
35
2018-06-13T04:05:42.000Z
2022-03-29T16:55:24.000Z
# # tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow # Copyright 2018 You Xie, Erik Franz, Mengyu Chu, Nils Thuerey # # Plume data generation, 3D # from manta import * import os, shutil, math, sys, time from datetime import datetime sys.path.append("../tools") import paramhelpers as ph i...
35.22619
170
0.706658
9d194b86c67bc877d806a71004a509e54f9d5152
207
py
Python
irTempSensor.py
shivaadusumilli/proj-v1.0
f7716c5271b52b63a18595a238540ca6854a2b82
[ "MIT" ]
null
null
null
irTempSensor.py
shivaadusumilli/proj-v1.0
f7716c5271b52b63a18595a238540ca6854a2b82
[ "MIT" ]
null
null
null
irTempSensor.py
shivaadusumilli/proj-v1.0
f7716c5271b52b63a18595a238540ca6854a2b82
[ "MIT" ]
null
null
null
#uses i2c like protocol from smbus2 import SMBus from mlx90614 import MLX90614 bus = SMBus(1) sensor = MLX90614(bus, address=0x5A) print sensor.get_amb_temp() print sensor.get_obj_temp() bus.close()
23
37
0.758454
55786a69a758645b6901357d7944de56c60c8519
3,691
py
Python
elearning/settings.py
Aga-Ma/django-projects-e-learning-portal
b565ded17947b54e96c73d249d6f9ad7a936ec7d
[ "MIT" ]
16
2020-03-27T12:43:58.000Z
2022-01-01T23:39:46.000Z
elearning/settings.py
Aga-Ma/django-projects-e-learning-portal
b565ded17947b54e96c73d249d6f9ad7a936ec7d
[ "MIT" ]
9
2020-02-02T20:49:10.000Z
2021-09-22T17:38:21.000Z
elearning/settings.py
Frank-hooder/elearn-educa
451aca1676836507cd5ca71d611ce9307872b348
[ "MIT" ]
16
2020-02-27T07:36:24.000Z
2021-09-08T08:35:42.000Z
""" Django settings for elearning project. """ import os import dj_database_url from decouple import config # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # ...
26.177305
91
0.702791
2e88f113a61f9bbec3c6e2d7fa0340b3d32f1a55
37,629
py
Python
second/pytorch/models/voxelnet.py
yukke42/SECOND
e4d52f590844c4c53c25ec1688fdc6a045ebbf13
[ "MIT" ]
null
null
null
second/pytorch/models/voxelnet.py
yukke42/SECOND
e4d52f590844c4c53c25ec1688fdc6a045ebbf13
[ "MIT" ]
null
null
null
second/pytorch/models/voxelnet.py
yukke42/SECOND
e4d52f590844c4c53c25ec1688fdc6a045ebbf13
[ "MIT" ]
null
null
null
import contextlib import time from enum import Enum import numpy as np import torch from torch import nn from torch.nn import functional as F import torchplus from second.pytorch.core import box_torch_ops from second.pytorch.core.losses import (WeightedSmoothL1LocalizationLoss, ...
44.321555
113
0.566478
77c07c36caaa881a80923565bf6be3d78a677a9f
2,335
py
Python
rl_bakery/example/cartpole_ddqn.py
curren/rl-bakery
caf565064b7129630233430af1828a0d727ed943
[ "Apache-2.0" ]
1
2022-01-07T21:13:21.000Z
2022-01-07T21:13:21.000Z
rl_bakery/example/cartpole_ddqn.py
curren/rl-bakery
caf565064b7129630233430af1828a0d727ed943
[ "Apache-2.0" ]
142
2021-06-17T22:03:18.000Z
2021-12-20T01:17:49.000Z
rl_bakery/example/cartpole_ddqn.py
jtimberlake/rl-bakery
d91469bc8923d4e9b3605580b1f374632d029ad0
[ "Apache-2.0" ]
null
null
null
from rl_bakery.applications import agent_application from rl_bakery.applications.simulation_runner import SimulationRunner, make_batch_tfenv from rl_bakery.agents.dqn import DDQNAgent, QConfig from rl_bakery.data_manager.builder import build_inmemory_data_manager from rl_bakery.spark_utilities import get_spark_session ...
35.923077
117
0.720771
df6e2493551a4136fbb20e5473cbb22b1954843a
9,168
py
Python
sympy/printing/printer.py
minrk/sympy
1cc6e3837b8ed20ba52ea97298f31aa08b43c508
[ "BSD-3-Clause" ]
2
2015-11-13T16:40:57.000Z
2017-09-15T15:37:19.000Z
openrave/sympy/printing/printer.py
jdsika/holy
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
1
2016-06-13T01:29:51.000Z
2016-06-14T00:38:27.000Z
openrave/sympy/printing/printer.py
jdsika/holy
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
null
null
null
"""Printing subsystem driver SymPy's printing system works the following way: Any expression can be passed to a designated Printer who then is responsible to return a adequate representation of that expression. The basic concept is the following: 1. Let the object print itself if it knows how. 2. Take the best fi...
34.859316
91
0.621728
dbf8732a6a1feb5473dcc2af09378be630cf7962
11,159
py
Python
pnnl/deprecated/AFDDAgent/afdd/Archive/agent_mt.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
null
null
null
pnnl/deprecated/AFDDAgent/afdd/Archive/agent_mt.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
4
2021-03-19T23:36:34.000Z
2021-12-13T19:45:54.000Z
pnnl/deprecated/AFDDAgent/afdd/Archive/agent_mt.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
1
2018-08-13T16:37:31.000Z
2018-08-13T16:37:31.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # Copyright (c) 2015, Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistri...
39.853571
82
0.64504
a0a042b8ee194dff03f7389565514891ae93a7a4
79
py
Python
tools/Sikuli/ClickButtonLoadFeatures.sikuli/ClickButtonLoadFeatures.py
marmyshev/vanessa-automation
9f87bd6df58b4c205104d3ae8e3643752d67eef7
[ "BSD-3-Clause" ]
296
2018-05-27T08:03:14.000Z
2022-03-19T08:36:11.000Z
tools/Sikuli/ClickButtonLoadFeatures.sikuli/ClickButtonLoadFeatures.py
marmyshev/vanessa-automation
9f87bd6df58b4c205104d3ae8e3643752d67eef7
[ "BSD-3-Clause" ]
1,562
2018-05-27T18:36:25.000Z
2022-03-31T07:35:11.000Z
tools/Sikuli/ClickButtonLoadFeatures.sikuli/ClickButtonLoadFeatures.py
marmyshev/vanessa-automation
9f87bd6df58b4c205104d3ae8e3643752d67eef7
[ "BSD-3-Clause" ]
299
2018-06-18T20:00:56.000Z
2022-03-29T12:29:55.000Z
click("Sarnvzsm.png") sleep(1.5) #click("EIlD3HTbUHHH.png") #sleep(1.5) exit(0)
15.8
26
0.696203
9cd9f2574eb04df543a62639a603f5aec5c74613
4,990
py
Python
yardstick/network_services/vnf_generic/vnf/tg_ping.py
kkltcjk/yardstick-moon
de48b16d1385cc26e83f8886d148d642c59e3d64
[ "Apache-2.0" ]
null
null
null
yardstick/network_services/vnf_generic/vnf/tg_ping.py
kkltcjk/yardstick-moon
de48b16d1385cc26e83f8886d148d642c59e3d64
[ "Apache-2.0" ]
null
null
null
yardstick/network_services/vnf_generic/vnf/tg_ping.py
kkltcjk/yardstick-moon
de48b16d1385cc26e83f8886d148d642c59e3d64
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016-2017 Intel 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 agreed...
33.489933
96
0.651503