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
a543b635a30f628934cc8f9195a488cc475f1ee1
7,295
py
Python
bqplot/traits.py
maartenbreddels/bqplot
cbd37f7acf94c8dddf929e9d2485d2b102ce49b9
[ "Apache-2.0" ]
4
2020-12-17T21:19:00.000Z
2021-09-22T04:09:11.000Z
bqplot/traits.py
maartenbreddels/bqplot
cbd37f7acf94c8dddf929e9d2485d2b102ce49b9
[ "Apache-2.0" ]
null
null
null
bqplot/traits.py
maartenbreddels/bqplot
cbd37f7acf94c8dddf929e9d2485d2b102ce49b9
[ "Apache-2.0" ]
1
2021-08-29T09:38:02.000Z
2021-08-29T09:38:02.000Z
# Copyright 2015 Bloomberg Finance L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
33.930233
127
0.619465
d09f12c7f4bd1063daf03277d1a09458697766e8
5,188
py
Python
Components/PostScreen.py
CMPUT-291-Miniproject/Miniproject-2
439d1e555117d1882c3ece37b04016ca06739100
[ "MIT" ]
null
null
null
Components/PostScreen.py
CMPUT-291-Miniproject/Miniproject-2
439d1e555117d1882c3ece37b04016ca06739100
[ "MIT" ]
null
null
null
Components/PostScreen.py
CMPUT-291-Miniproject/Miniproject-2
439d1e555117d1882c3ece37b04016ca06739100
[ "MIT" ]
null
null
null
from Components.Terminal import Terminal from Components.Post import Post class PostScreen: """ User interface for generating and posting a question. Uses the framework from PostQuestion.py to enter the question into the database, and Terminal for extra UI commands. """ def __init__(self, uid=None): """ C...
28.98324
177
0.660563
3a278cbca58e46a4e4b14ae2ccf04ef78af77a2e
2,828
py
Python
get_score/full_para.py
Spritea/pytorch-semseg-fp16-one-titan
33dcd61b1f703f52a5f7ba4ac758c3a1726e4273
[ "MIT" ]
null
null
null
get_score/full_para.py
Spritea/pytorch-semseg-fp16-one-titan
33dcd61b1f703f52a5f7ba4ac758c3a1726e4273
[ "MIT" ]
null
null
null
get_score/full_para.py
Spritea/pytorch-semseg-fp16-one-titan
33dcd61b1f703f52a5f7ba4ac758c3a1726e4273
[ "MIT" ]
null
null
null
import cv2 as cv from get_score import util import numpy as np import time from pathlib import Path import natsort from get_score.metrics_my import runningScore from tqdm import tqdm from multiprocessing.dummy import Pool as ThreadPool import itertools def load_image(path): image = cv.cvtColor(cv.imread(path, 1),...
30.408602
129
0.694837
0c8402d698ba06e390d5810e9c18f112b2da581d
16,485
py
Python
OLDER_MSEplots_metpy/MSEplots/plots.py
brianmapes/MSEplot
3f3da5019544eb89638dfb804528191eb5cb0879
[ "MIT" ]
3
2018-07-16T07:42:57.000Z
2020-05-30T23:11:05.000Z
OLDER_MSEplots_metpy/MSEplots/plots.py
brianmapes/MSEplot
3f3da5019544eb89638dfb804528191eb5cb0879
[ "MIT" ]
4
2018-11-10T22:04:18.000Z
2018-12-13T10:50:43.000Z
OLDER_MSEplots_metpy/MSEplots/plots.py
brianmapes/MSEplot
3f3da5019544eb89638dfb804528191eb5cb0879
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from datetime import datetime import metpy.calc as mpcalc from metpy.units import units from metpy.constants import Cp_d,Lv,Rd,g def find_nearest(array, value): array = np.asarray(array) idx = (np.abs(array - value)).argmin() # find minimum return (idx) ...
42.818182
134
0.616985
2d4b92f41083eb6fbedf6e63838805887c6f72bd
6,884
py
Python
treconomics_project/search/diversify.py
leifos/treconomics
28eeae533cbe92a717b1d552efe57485f301fa37
[ "MIT" ]
1
2021-07-20T01:58:22.000Z
2021-07-20T01:58:22.000Z
treconomics_project/search/diversify.py
leifos/treconomics
28eeae533cbe92a717b1d552efe57485f301fa37
[ "MIT" ]
null
null
null
treconomics_project/search/diversify.py
leifos/treconomics
28eeae533cbe92a717b1d552efe57485f301fa37
[ "MIT" ]
null
null
null
# # Diversification Algorithm with access to the diversity QRELs # Mark II -- More complex algorithm, not as rewarding as the first attempt. # Updated to work with the ifind search objects. # # Slightly updated to make it easier to drop into the treconomis environment. # # Author: David Maxwell and Leif Azzopardi # Da...
39.337143
230
0.68405
073918eda3deb30a7b61a402d8bd20ec3edeedec
38,925
py
Python
pandas/tests/groupby/aggregate/test_aggregate.py
mavismonica/pandas
dbdc55c9d59f25589d58cc60247af193f06c3c66
[ "BSD-3-Clause" ]
6
2019-12-21T21:15:54.000Z
2021-04-20T17:35:24.000Z
pandas/tests/groupby/aggregate/test_aggregate.py
mavismonica/pandas
dbdc55c9d59f25589d58cc60247af193f06c3c66
[ "BSD-3-Clause" ]
2
2021-04-06T18:35:49.000Z
2021-06-02T04:09:53.000Z
pandas/tests/groupby/aggregate/test_aggregate.py
mavismonica/pandas
dbdc55c9d59f25589d58cc60247af193f06c3c66
[ "BSD-3-Clause" ]
3
2021-01-31T16:40:52.000Z
2021-08-29T18:32:34.000Z
""" test .agg behavior / note that .apply is tested generally in test_groupby.py """ import datetime import functools from functools import partial import numpy as np import pytest from pandas.errors import PerformanceWarning from pandas.core.dtypes.common import is_integer_dtype import pandas as pd from pandas imp...
33.043294
87
0.548208
1371358c00a6864748d537bc0a5bbc9d562a707f
1,127
py
Python
pdm/formats/__init__.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
1
2022-02-21T05:55:21.000Z
2022-02-21T05:55:21.000Z
pdm/formats/__init__.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
null
null
null
pdm/formats/__init__.py
frafra/pdm
12c5c4f91bbb7260be7d93f3e3914ba708309032
[ "MIT" ]
null
null
null
from __future__ import annotations from argparse import Namespace from pathlib import Path from typing import Iterable, Mapping, TypeVar, cast from pdm._types import Protocol from pdm.formats import flit, legacy, pipfile, poetry, requirements, setup_py from pdm.models.candidates import Candidate from pdm.models.requi...
26.833333
87
0.675244
d1fd00c0c8af6ac829ea112bbd092b3c563d5a07
3,369
py
Python
profiles_project/settings.py
Choisj91/profiles-rest-api
1f4d9002476b869610d79c17cf4f2f7f2290989d
[ "MIT" ]
null
null
null
profiles_project/settings.py
Choisj91/profiles-rest-api
1f4d9002476b869610d79c17cf4f2f7f2290989d
[ "MIT" ]
null
null
null
profiles_project/settings.py
Choisj91/profiles-rest-api
1f4d9002476b869610d79c17cf4f2f7f2290989d
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.717557
91
0.696646
d99fac043390f654cbcd108c466af414edfc7b1d
11,722
py
Python
dirhunt/processors.py
TheRipperJhon/Dirhunt
056336cac3a44297d3a4bb294faccb855b511e9d
[ "MIT" ]
null
null
null
dirhunt/processors.py
TheRipperJhon/Dirhunt
056336cac3a44297d3a4bb294faccb855b511e9d
[ "MIT" ]
null
null
null
dirhunt/processors.py
TheRipperJhon/Dirhunt
056336cac3a44297d3a4bb294faccb855b511e9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from bs4 import Comment from colorama import Fore, Back from dirhunt.colors import status_code_colors from dirhunt.crawler_url import CrawlerUrl from dirhunt.url import Url from dirhunt.utils import colored INDEX_FILES = ['index.php', 'index.html', 'index.html'] ACCEPTED_PROTOCOLS =...
34.476471
120
0.612609
22e7de9bbd94a633a304bb75965763d4b9d91cca
341
py
Python
Crawler/eBookCrawl.py
zyphs21/myPythonPractise
7da984c98ee93e650ab2f9da4a2502340f1220b4
[ "MIT" ]
null
null
null
Crawler/eBookCrawl.py
zyphs21/myPythonPractise
7da984c98ee93e650ab2f9da4a2502340f1220b4
[ "MIT" ]
null
null
null
Crawler/eBookCrawl.py
zyphs21/myPythonPractise
7da984c98ee93e650ab2f9da4a2502340f1220b4
[ "MIT" ]
null
null
null
# -*- coding:UTF-8 -*- from bs4 import BeautifulSoup import requests if __name__ == "__main__": target = 'http://www.biqukan.com/1_1094/5403177.html' req = requests.get(url = target) html = req.text bf = BeautifulSoup(html) texts = bf.find_all('div', class_ = 'showtxt') print(texts[0].text.repl...
31
57
0.645161
c36aea22e9c375be0d8543ddc1eba0ff9f8acd15
258
py
Python
students/K33422/laboratory_works/Daria Plotskaya/lab_2/users/urls.py
olticher/ITMO_ICT_WebDevelopment_2021-2022
3de8728c29638d6733ad0664bf13e0d1eccae899
[ "MIT" ]
null
null
null
students/K33422/laboratory_works/Daria Plotskaya/lab_2/users/urls.py
olticher/ITMO_ICT_WebDevelopment_2021-2022
3de8728c29638d6733ad0664bf13e0d1eccae899
[ "MIT" ]
null
null
null
students/K33422/laboratory_works/Daria Plotskaya/lab_2/users/urls.py
olticher/ITMO_ICT_WebDevelopment_2021-2022
3de8728c29638d6733ad0664bf13e0d1eccae899
[ "MIT" ]
null
null
null
from django.urls import path from django.contrib.auth.views import LoginView from .views import UserCreateFormView urlpatterns = [ path("login/", LoginView.as_view(), name="login"), path("register/", UserCreateFormView.as_view(), name="register") ]
28.666667
68
0.744186
6448e378d60663edc53e4b5c6cf1b596d24eb54c
3,586
py
Python
wagtail/contrib/postgres_search/models.py
Immensa/wagtail
cb33259c0f2aefd2d6e6b605d3e9a14387dbd01e
[ "BSD-3-Clause" ]
null
null
null
wagtail/contrib/postgres_search/models.py
Immensa/wagtail
cb33259c0f2aefd2d6e6b605d3e9a14387dbd01e
[ "BSD-3-Clause" ]
null
null
null
wagtail/contrib/postgres_search/models.py
Immensa/wagtail
cb33259c0f2aefd2d6e6b605d3e9a14387dbd01e
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.contrib.postgres.indexes import GinIndex from django.contrib.postgres.search import SearchQuery, SearchVectorField from django.db.models i...
36.222222
84
0.660904
9183c21ef1799c5477bd6e8789d0e41442ef4233
9,552
py
Python
src/OCR/architecture/CharacterRecognizer.py
tsteffek/LicensePlateReconstructor
4930a080fbdf6e7d726e5282b2d75650566fd5d4
[ "MIT" ]
2
2020-12-21T02:02:13.000Z
2021-11-09T06:25:36.000Z
src/OCR/architecture/CharacterRecognizer.py
tsteffek/LicensePlateReconstructor
4930a080fbdf6e7d726e5282b2d75650566fd5d4
[ "MIT" ]
1
2021-11-09T06:25:36.000Z
2021-11-18T08:35:35.000Z
src/OCR/architecture/CharacterRecognizer.py
tsteffek/LicensePlateReconstructor
4930a080fbdf6e7d726e5282b2d75650566fd5d4
[ "MIT" ]
null
null
null
import logging from argparse import ArgumentParser from typing import Tuple, List, Union import pytorch_lightning as pl import pytorch_warmup as warmup import torch from torch import nn, Tensor, optim from src.base.model import Vocabulary from .mobilenetv3 import mobilenetv3_small, mobilenetv3_large from .util import...
45.703349
118
0.660385
9701987aecb544f9f2700dc8a2bfaf312a7c858d
11,719
py
Python
tests/integration/use_cases/test_clustering.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
2
2020-11-20T10:27:14.000Z
2021-02-21T13:57:56.000Z
tests/integration/use_cases/test_clustering.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
null
null
null
tests/integration/use_cases/test_clustering.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
null
null
null
import datetime as dt import threading from unittest import TestCase, mock from dimensigon.domain.entities import Server try: from unittest.mock import AsyncMock except ImportError: from tests.base import AsyncMock import dimensigon.web.network as ntwrk from dimensigon import defaults from dimensigon.use_cas...
43.403704
118
0.610718
d9c2a1abb00ef7976e540b4b5feff407ac5bd648
365
py
Python
profile_project/profile_app/urls.py
nitesh-01/django-backend-rest-api
06140200ab3a5ef5ab035f8f49c575e448df609b
[ "MIT" ]
null
null
null
profile_project/profile_app/urls.py
nitesh-01/django-backend-rest-api
06140200ab3a5ef5ab035f8f49c575e448df609b
[ "MIT" ]
null
null
null
profile_project/profile_app/urls.py
nitesh-01/django-backend-rest-api
06140200ab3a5ef5ab035f8f49c575e448df609b
[ "MIT" ]
null
null
null
from django.urls import path,include from rest_framework.routers import DefaultRouter from profile_app import views router = DefaultRouter() router.register('view_set', views.Helloviewset, basename='view_set') router.register('profile', views.UserProfileViewset) urlpatterns = [ path('hello/',views.helloview.as_v...
26.071429
68
0.769863
a053059619a6f407e7ce74f0abc14d7fd7593164
1,324
py
Python
docs/extensions/natbib/directives.py
mwibrow/vlnm
f3fc6ba1a207431bc12a457aab4ab847a584a66f
[ "AFL-3.0" ]
null
null
null
docs/extensions/natbib/directives.py
mwibrow/vlnm
f3fc6ba1a207431bc12a457aab4ab847a584a66f
[ "AFL-3.0" ]
4
2018-09-25T06:57:29.000Z
2019-09-09T13:22:00.000Z
docs/extensions/natbib/directives.py
mwibrow/vlnm
f3fc6ba1a207431bc12a457aab4ab847a584a66f
[ "AFL-3.0" ]
1
2020-10-20T05:42:45.000Z
2020-10-20T05:42:45.000Z
""" New Directives ~~~~~~~~~~~~~~ """ import os from pybtex.database.input import bibtex from docutils.parsers.rst import directives, Directive from .nodes import BibliographyNode class BibliographyDirective(Directive): """Class for processing the :rst:dir:`bibliography` directive. """ required_...
29.422222
74
0.620091
3a9e284ff7d956a7c8c6c8b828054ca1bc763b19
12,108
py
Python
txtrader/tcpserver.py
rstms/txTrader
3120eb47f10979e90c48cb66543378084bae624a
[ "MIT" ]
43
2015-03-30T15:20:00.000Z
2022-02-15T18:25:54.000Z
txtrader/tcpserver.py
rstms/txTrader
3120eb47f10979e90c48cb66543378084bae624a
[ "MIT" ]
12
2015-08-05T17:36:28.000Z
2020-05-03T23:23:42.000Z
txtrader/tcpserver.py
rstms/txTrader
3120eb47f10979e90c48cb66543378084bae624a
[ "MIT" ]
25
2015-11-04T03:08:57.000Z
2021-08-07T09:47:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ tcpserver.py ------------ TxTrader TCP server module - Implement ASCII line oriented event interface. Copyright (c) 2015 Reliance Systems Inc. <mkrueger@rstms.net> Licensed under the MIT license. See LICENSE for details. """ from txtrader import VERSION, ...
40.36
127
0.62149
ab8a8d93085679e127bdb0cf2a89ceedbd9a3445
2,465
py
Python
tests/test_get_session.py
py-steph/aiohttp-session
5c900766e5d4f63e9776ceac31537c6160b10513
[ "Apache-2.0" ]
169
2016-11-14T10:17:42.000Z
2022-03-08T16:19:00.000Z
tests/test_get_session.py
py-steph/aiohttp-session
5c900766e5d4f63e9776ceac31537c6160b10513
[ "Apache-2.0" ]
587
2016-10-24T11:43:37.000Z
2022-03-28T00:13:39.000Z
tests/test_get_session.py
py-steph/aiohttp-session
5c900766e5d4f63e9776ceac31537c6160b10513
[ "Apache-2.0" ]
82
2016-11-16T03:57:33.000Z
2022-01-21T07:12:41.000Z
import pytest from aiohttp import web from aiohttp.test_utils import make_mocked_request from aiohttp_session import (AbstractStorage, SESSION_KEY, STORAGE_KEY, Session, get_session, new_session) async def test_get_stored_session() -> None: req = make_mocked_request('GET', '/') se...
27.087912
91
0.639351
e9df6eeb91c6a4a02a65019c6726478498fad476
691
py
Python
gwlfe/Input/Animals/TotAEU.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
gwlfe/Input/Animals/TotAEU.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
gwlfe/Input/Animals/TotAEU.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
from numpy import sum def TotAEU(NumAnimals, AvgAnimalWt): result = 0 aeu1 = ((NumAnimals[2] / 2) * (AvgAnimalWt[2]) / 1000) + ((NumAnimals[3] / 2) * (AvgAnimalWt[3]) / 1000) aeu2 = (NumAnimals[7] * AvgAnimalWt[7]) / 1000 aeu3 = (NumAnimals[5] * AvgAnimalWt[5]) / 1000 aeu4 = (NumAnimals[4] * AvgAn...
32.904762
108
0.615051
03a3005069812583b8c84663185e334bc549a38a
2,113
py
Python
models.py
meet-projects/MEET-site-aj
9a68c1e759ac228fe0276cf89c24a840f8d5e687
[ "MIT" ]
null
null
null
models.py
meet-projects/MEET-site-aj
9a68c1e759ac228fe0276cf89c24a840f8d5e687
[ "MIT" ]
4
2021-02-08T20:33:03.000Z
2021-12-13T20:02:37.000Z
models.py
meet-projects/MEET-site-aj
9a68c1e759ac228fe0276cf89c24a840f8d5e687
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, ForeignKey, String, Enum, Boolean from sqlalchemy.types import DateTime from sqlalchemy.ext.declarative import declarative_base import time import enum from werkzeug.security import generate_password_hash, \ check_password_hash class Access(enum.Enum): YearOne = 1 ...
25.457831
73
0.69806
d99502cae623ed43382414708a5bb4518ff1eab0
6,104
py
Python
qa/rpc-tests/proxy_test.py
MOBInodecoin/Mobinode
c4d3f0c97c653b0d2b7a2f66f376d7ea85077001
[ "MIT" ]
3
2019-03-23T16:58:12.000Z
2019-11-13T08:46:52.000Z
qa/rpc-tests/proxy_test.py
MOBInodecoin/Mobinode
c4d3f0c97c653b0d2b7a2f66f376d7ea85077001
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
MOBInodecoin/Mobinode
c4d3f0c97c653b0d2b7a2f66f376d7ea85077001
[ "MIT" ]
3
2019-02-26T20:41:05.000Z
2019-04-01T12:07:37.000Z
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import socket import traceback, sys from binascii import hexlify import time, os from socks5 import Socks5Conf...
41.808219
145
0.653342
128a3711119bc71fefa4c8cbf3878083475f2e1f
28,947
py
Python
core/people/person.py
vsilent/smarty-bot
963cba05433be14494ba339343c9903ccab3c37d
[ "MIT" ]
1
2016-10-08T09:01:05.000Z
2016-10-08T09:01:05.000Z
core/people/person.py
vsilent/smarty-bot
963cba05433be14494ba339343c9903ccab3c37d
[ "MIT" ]
1
2019-09-24T09:56:52.000Z
2019-09-24T09:56:52.000Z
core/people/person.py
vsilent/smarty-bot
963cba05433be14494ba339343c9903ccab3c37d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from sqlalchemy import create_engine, Table from sqlalchemy import Column, Integer, String, DateTime, Date from sqlalchemy import MetaData, UnicodeText, text, Index from sqlalchemy.orm import mapper, sessionmaker, scoped_session #from sqlalchemy.sql import select import uui...
34.297393
74
0.643003
db115fbfdcc18b60caed595d87ea78a4a2a420f9
4,233
py
Python
tests/gcp/operators/test_text_to_speech.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2017-06-25T14:18:15.000Z
2017-06-25T14:18:15.000Z
tests/gcp/operators/test_text_to_speech.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
3
2020-07-07T20:39:24.000Z
2021-09-29T17:34:46.000Z
tests/gcp/operators/test_text_to_speech.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2020-11-04T03:17:51.000Z
2020-11-04T03:17:51.000Z
# -*- coding: utf-8 -*- # # 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 under the Apache License, Version 2.0 (the #...
40.701923
94
0.704465
e8b339bf3d4666cc1e7391727bbfbfd39ea24d5f
2,333
py
Python
tcpserver/socketserver/server2.py
baixuexue123/performance
154aed84ec7a098cb00ae64c996a128266dc56fc
[ "MIT" ]
1
2019-06-06T11:01:37.000Z
2019-06-06T11:01:37.000Z
tcpserver/socketserver/server2.py
baixuexue123/performance
154aed84ec7a098cb00ae64c996a128266dc56fc
[ "MIT" ]
null
null
null
tcpserver/socketserver/server2.py
baixuexue123/performance
154aed84ec7a098cb00ae64c996a128266dc56fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ nonblocking with select """ import errno import select import socket read_handlers = {} write_handlers = {} def call_handlers(handlers, fds): for fd in fds: try: handlers[fd]() except IOError as e: if e.errno in (errno.EAG...
23.09901
89
0.536219
119fd9a6ac00b72d016f99eeb2c58a76f614f760
11,309
py
Python
src/sima/riflex/blueprints/axisymmetriccrosssection.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/blueprints/axisymmetriccrosssection.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/blueprints/axisymmetriccrosssection.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# # Generated with AxisymmetricCrossSectionBlueprint from dmt.blueprint import Blueprint from dmt.dimension import Dimension from dmt.attribute import Attribute from dmt.enum_attribute import EnumAttribute from dmt.blueprint_attribute import BlueprintAttribute from .crosssection import CrossSectionBlueprint from .crsa...
113.09
190
0.762402
de53edab605204f988fd6f933d289c9b8571a011
2,965
py
Python
conpaas-services/src/conpaas/core/misc.py
bopopescu/conpaas-1
cea3c02f499a729464697de7cf98c2041febc0ab
[ "BSD-3-Clause" ]
1
2015-08-03T03:57:06.000Z
2015-08-03T03:57:06.000Z
conpaas-services/src/conpaas/core/misc.py
bopopescu/conpaas-1
cea3c02f499a729464697de7cf98c2041febc0ab
[ "BSD-3-Clause" ]
null
null
null
conpaas-services/src/conpaas/core/misc.py
bopopescu/conpaas-1
cea3c02f499a729464697de7cf98c2041febc0ab
[ "BSD-3-Clause" ]
2
2017-05-27T09:07:53.000Z
2020-07-26T03:15:55.000Z
import socket import fcntl import struct import zipfile import tarfile import readline from subprocess import Popen, PIPE def file_get_contents(filepath): f = open(filepath, 'r') filecontent = f.read() f.close() return filecontent def verify_port(port): '''Raise Type Error if port is not an integ...
29.65
87
0.657336
9a16d0b7cc347a3bc0ca4c2837594a3525a6a0ec
19,102
py
Python
hdl_cores/auto-fir/auto-fir.py
hyf6661669/CEP
704caf0fd5589de40f91cb1d7e7b169f741260c5
[ "BSD-2-Clause" ]
47
2017-10-25T17:35:29.000Z
2022-03-23T20:05:47.000Z
hdl_cores/auto-fir/auto-fir.py
hyf6661669/CEP
704caf0fd5589de40f91cb1d7e7b169f741260c5
[ "BSD-2-Clause" ]
13
2019-10-02T14:23:05.000Z
2022-03-31T17:12:49.000Z
hdl_cores/auto-fir/auto-fir.py
hyf6661669/CEP
704caf0fd5589de40f91cb1d7e7b169f741260c5
[ "BSD-2-Clause" ]
21
2018-04-10T17:14:30.000Z
2022-02-25T14:29:57.000Z
#!/usr/bin/python3 #//************************************************************************ #// Copyright 2021 Massachusetts Institute of Technology #// SPDX short identifier: BSD-2-Clause #// #// File Name: auto-fir.py #// Program: Common Evaluation Platform (CEP) #// Description: Peform a parameteri...
42.733781
140
0.525128
cc51e341f46cb74d07dff2c0d58a64966cd9661b
3,851
py
Python
tensorflow/python/autograph/utils/ag_logging.py
jeffdaily/tensorflow-upstream
2ac94cf58dafd29ddeb086a913a130711ae6712e
[ "Apache-2.0" ]
null
null
null
tensorflow/python/autograph/utils/ag_logging.py
jeffdaily/tensorflow-upstream
2ac94cf58dafd29ddeb086a913a130711ae6712e
[ "Apache-2.0" ]
null
null
null
tensorflow/python/autograph/utils/ag_logging.py
jeffdaily/tensorflow-upstream
2ac94cf58dafd29ddeb086a913a130711ae6712e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
28.316176
80
0.726824
f7592898a6060fa4986bb4d99efadd7f7bda97c3
3,061
py
Python
tests/test_utils_get_static_file.py
loonghao/dayu_widgets
42758872993197880f68d141ee1ce314f9b2cfea
[ "MIT" ]
null
null
null
tests/test_utils_get_static_file.py
loonghao/dayu_widgets
42758872993197880f68d141ee1ce314f9b2cfea
[ "MIT" ]
null
null
null
tests/test_utils_get_static_file.py
loonghao/dayu_widgets
42758872993197880f68d141ee1ce314f9b2cfea
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test get_static_file function. """ # Import future modules from __future__ import absolute_import from __future__ import division from __future__ import print_function # Import built-in modules import os # Import third-party modules from dayu_widgets import CUSTOM_STA...
31.885417
78
0.653055
8e9cc9de679f043e8843b980c44c52f5361c558e
1,769
py
Python
package/spack-xapian-core/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-xapian-core/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-xapian-core/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
44.225
78
0.688525
fccd228fc6b01f3a8f112f864173be5a7a5fbb39
731
py
Python
posts/migrations/0005_auto_20200601_0209.py
ChegeDaniella/Instagram
aaa8a965f10e06397d0faacb3791aef7c1e454c0
[ "MIT" ]
null
null
null
posts/migrations/0005_auto_20200601_0209.py
ChegeDaniella/Instagram
aaa8a965f10e06397d0faacb3791aef7c1e454c0
[ "MIT" ]
4
2020-06-06T01:57:02.000Z
2021-09-08T02:06:24.000Z
posts/migrations/0005_auto_20200601_0209.py
ChegeDaniella/Instagram
aaa8a965f10e06397d0faacb3791aef7c1e454c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-05-31 23:09 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
27.074074
124
0.644323
cd706b6af32770fdcdfb2ebb5e2312e3a2020093
1,403
py
Python
setup.py
jkapila/py-git-package
7f7faf88802f593e427ca42569591100f61212c4
[ "MIT" ]
null
null
null
setup.py
jkapila/py-git-package
7f7faf88802f593e427ca42569591100f61212c4
[ "MIT" ]
null
null
null
setup.py
jkapila/py-git-package
7f7faf88802f593e427ca42569591100f61212c4
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup # Note: # The Hitchiker's guide to python provides an excellent, standard, method for creating python packages: # http://docs.python-guide.org/en/latest/writing/structure/ # # To deploy on PYPI follow the instructions at the bottom of: # https://packaging.py...
33.404762
105
0.662865
3b0af25665229bf43688fae27105b83ba6f89c7e
808
py
Python
ig/plot_result.py
wangjunxiao/DLG
befd9c31d214098fdccf97794428a5550bbf8b1a
[ "MIT" ]
null
null
null
ig/plot_result.py
wangjunxiao/DLG
befd9c31d214098fdccf97794428a5550bbf8b1a
[ "MIT" ]
null
null
null
ig/plot_result.py
wangjunxiao/DLG
befd9c31d214098fdccf97794428a5550bbf8b1a
[ "MIT" ]
null
null
null
import os import math import matplotlib.pyplot as plt from PIL import Image num_images = 20 config_hash = '803521804a9a4c844495134db73291e4' if __name__ == "__main__": # plot the resulting image gt_name = 'ground_truth' rec_name = 'rec' col_num = 10 row_num = math.ceil(num_images/col_num) for im...
33.666667
102
0.69802
14626dfd6148ddfbab32b912c452a6d952ebe064
13,317
py
Python
plenum/test/view_change/helper.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/view_change/helper.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/view_change/helper.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
import types from stp_core.types import HA from plenum.test.delayers import delayNonPrimaries, delay_3pc_messages, reset_delays_and_process_delayeds, \ icDelay from plenum.test.helper import checkViewNoForNodes, sendRandomRequests, \ sendReqsToNodesAndVerifySuffReplies, send_reqs_to_nodes_and_verify_all_repli...
39.871257
116
0.674476
3a8622dd04aff228b6faaba351071af6c838ad1f
676
py
Python
manage.py
EHoggard/Price-Comparison-Group2-BE
03175b360fb20f682730cd7b7f3fc80e2696dc00
[ "MIT" ]
1
2021-07-24T14:43:02.000Z
2021-07-24T14:43:02.000Z
manage.py
EHoggard/Price-Comparison-Group2-BE
03175b360fb20f682730cd7b7f3fc80e2696dc00
[ "MIT" ]
null
null
null
manage.py
EHoggard/Price-Comparison-Group2-BE
03175b360fb20f682730cd7b7f3fc80e2696dc00
[ "MIT" ]
16
2021-07-15T06:16:25.000Z
2021-08-20T06:06:02.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'price_comparison_gp2.settings') try: from django.core.management import execute_from_command_line ...
29.391304
84
0.684911
c4f441e7840f2f88a458bed5be55d025c0ebd6a6
6,519
py
Python
test/functional/feature_nulldummy.py
pniwre/RavencoinLite
5bf2109408ba8128f3b08b7f94424f78891e9475
[ "MIT" ]
85
2018-01-28T11:36:04.000Z
2022-03-12T01:50:34.000Z
test/functional/feature_nulldummy.py
pniwre/RavencoinLite
5bf2109408ba8128f3b08b7f94424f78891e9475
[ "MIT" ]
42
2021-11-11T02:57:44.000Z
2022-03-27T21:31:38.000Z
test/functional/feature_nulldummy.py
pniwre/RavencoinLite
5bf2109408ba8128f3b08b7f94424f78891e9475
[ "MIT" ]
39
2018-02-24T21:01:54.000Z
2021-08-15T16:05:02.000Z
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Copyright (c) 2017-2018 The Raven Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test NULLDUMMY softfork. Connect to a single node. Gene...
49.015038
145
0.701488
1d5242613b0f7a66404dce27fa3f3ca8b5b6b43d
978
py
Python
projects/memnn_feedback/tasks/dbll_babi/build.py
mohan-chinnappan-n/ParlAI
ddf10373339390408c92d8765d7ff9ae00e4204e
[ "MIT" ]
258
2020-04-10T07:01:06.000Z
2022-03-26T11:49:30.000Z
projects/memnn_feedback/tasks/dbll_babi/build.py
jacklee20151/ParlAI
b4a442018d1a46f9374547ef0a9b8134b7bb4944
[ "MIT" ]
33
2020-04-10T04:28:51.000Z
2022-03-31T02:52:02.000Z
projects/memnn_feedback/tasks/dbll_babi/build.py
jacklee20151/ParlAI
b4a442018d1a46f9374547ef0a9b8134b7bb4944
[ "MIT" ]
43
2020-04-14T10:43:33.000Z
2022-03-13T02:27:54.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Download and build the data if it does not exist. import parlai.core.build_data as build_data import os def build(op...
31.548387
70
0.662577
2d8adf7cc2bcf10054f2f8879ebdce90e5036976
990
py
Python
djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/slack/provider.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
6,342
2015-01-01T07:40:30.000Z
2022-03-31T04:18:30.000Z
djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/slack/provider.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
2,198
2015-01-02T15:17:45.000Z
2022-03-28T10:20:43.000Z
djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/slack/provider.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
2,928
2015-01-01T10:44:13.000Z
2022-03-31T03:20:16.000Z
from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class SlackAccount(ProviderAccount): def get_avatar_url(self): return self.account.extra_data.get("user").get("image_192", None) def to_str(self): dflt =...
26.756757
75
0.616162
e4e945f018aabdec9b98d37ef2dcfd3ab4f803ba
1,188
py
Python
src/decode/app/web.py
emiel/decode-django
d887f1cbd78fabb632cc59955163d74ee659c695
[ "MIT" ]
null
null
null
src/decode/app/web.py
emiel/decode-django
d887f1cbd78fabb632cc59955163d74ee659c695
[ "MIT" ]
null
null
null
src/decode/app/web.py
emiel/decode-django
d887f1cbd78fabb632cc59955163d74ee659c695
[ "MIT" ]
null
null
null
import re from django import forms from django.contrib import messages from django.core.validators import RegexValidator from django.shortcuts import render from .api_client import ApiClient input_re = re.compile(r"^\d+$") class DecodeForm(forms.Form): input_str = forms.CharField( label="Input", max_...
23.294118
81
0.649832
bbdaeeafd6c5c3a74ea79536b50008502e8a7a94
17,597
py
Python
tests/client_connectivity/test_vlan_mode.py
brennerm/wlan-testing
ea99d5ab74177198324f4d7eddcdcff2844bbbf3
[ "BSD-3-Clause" ]
null
null
null
tests/client_connectivity/test_vlan_mode.py
brennerm/wlan-testing
ea99d5ab74177198324f4d7eddcdcff2844bbbf3
[ "BSD-3-Clause" ]
null
null
null
tests/client_connectivity/test_vlan_mode.py
brennerm/wlan-testing
ea99d5ab74177198324f4d7eddcdcff2844bbbf3
[ "BSD-3-Clause" ]
null
null
null
import pytest import sys for folder in 'py-json', 'py-scripts': if folder not in sys.path: sys.path.append(f'../lanforge/lanforge-scripts/{folder}') sys.path.append(f"../lanforge/lanforge-scripts/py-scripts/tip-cicd-something") sys.path.append(f'../libs') sys.path.append(f'../libs/lanforge/') from LANfo...
49.991477
136
0.623345
5d62cbc1522749605dad1c85645e8149bc6dabdf
3,657
py
Python
start_alphagoose_data_generators_numba.py
IsaiahPressman/Kaggle_Hungry_Geese
f4d9fcb0811704bd339ad5c7ff937dd0d9e25763
[ "MIT" ]
null
null
null
start_alphagoose_data_generators_numba.py
IsaiahPressman/Kaggle_Hungry_Geese
f4d9fcb0811704bd339ad5c7ff937dd0d9e25763
[ "MIT" ]
null
null
null
start_alphagoose_data_generators_numba.py
IsaiahPressman/Kaggle_Hungry_Geese
f4d9fcb0811704bd339ad5c7ff937dd0d9e25763
[ "MIT" ]
null
null
null
from pathlib import Path import torch from torch import nn from hungry_geese.training.alphagoose.alphagoose_data_generator import get_latest_weights_file from hungry_geese.training.alphagoose.alphagoose_data_generator_numba import start_selfplay_loop from hungry_geese.env import goose_env as ge from hungry_geese.nns i...
32.362832
118
0.567405
1980596c18d8619bf217274e6e710d4cf2438215
9,272
py
Python
tests/services/server_test.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
tests/services/server_test.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
tests/services/server_test.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Forseti Security 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 ap...
37.844898
86
0.662209
56dfc8cf5d608b930a08bce79192dee9aca79ca6
2,500
py
Python
Protheus_WebApp/Modules/SIGAPLS/PLSA269TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
17
2018-09-24T17:27:08.000Z
2021-09-16T19:09:46.000Z
Protheus_WebApp/Modules/SIGAPLS/PLSA269TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
4
2018-09-24T17:30:32.000Z
2022-01-03T11:39:30.000Z
Protheus_WebApp/Modules/SIGAPLS/PLSA269TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
18
2019-06-07T17:41:34.000Z
2022-01-31T18:17:31.000Z
from tir import Webapp import unittest from tir.technologies.apw_internal import ApwInternal import datetime import time DateSystem = datetime.datetime.today().strftime('%d/%m/%Y') DateVal = datetime.datetime(2120, 5, 17) """------------------------------------------------------------------- /*/{Protheus.doc} PLSA269T...
30.487805
79
0.6908
44a90007725d100700233aaa48e15e61addc1f3c
2,802
py
Python
homeassistant/components/bloomsky.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
null
null
null
homeassistant/components/bloomsky.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
null
null
null
homeassistant/components/bloomsky.py
davidedmundson/home-assistant
cd02563552ffc28239fa17c79a5d9bc0013bd5ac
[ "MIT" ]
1
2018-11-20T17:44:08.000Z
2018-11-20T17:44:08.000Z
""" homeassistant.components.bloomsky ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support for BloomSky weather station. For more details about this component, please refer to the documentation at https://home-assistant.io/components/bloomsky/ """ import logging from datetime import timedelta import requests from homeassistant....
30.791209
76
0.665239
b2bb99a3ccadc726e6f0782d81e1db1de70efd72
1,882
py
Python
Codebase/List/list_utils.py
ryderfang/LeetCode
be9470dee6175bab321f0549f173c0c682dddd77
[ "MIT" ]
1
2021-05-06T02:27:30.000Z
2021-05-06T02:27:30.000Z
Codebase/List/list_utils.py
ryderfang/LeetCode
be9470dee6175bab321f0549f173c0c682dddd77
[ "MIT" ]
null
null
null
Codebase/List/list_utils.py
ryderfang/LeetCode
be9470dee6175bab321f0549f173c0c682dddd77
[ "MIT" ]
null
null
null
#! /usr/local/bin/python3 from typing import List from functools import reduce import itertools def distinct_nested_list(nested_lst: List[List[int]]): # array = set(map(lambda x: tuple(x), array)) # array = map(lambda x: list(x), array) # return list(array) return [list(y) for y in set([tuple(x) for x...
26.507042
65
0.538789
3a30ac2099e6b02df160d43a48d947592c65928a
2,328
py
Python
cvat/apps/authentication/signals.py
syonekura/cvat
c579ba2319f967f09ab2bf080e357b2bde7180dd
[ "MIT" ]
null
null
null
cvat/apps/authentication/signals.py
syonekura/cvat
c579ba2319f967f09ab2bf080e357b2bde7180dd
[ "MIT" ]
null
null
null
cvat/apps/authentication/signals.py
syonekura/cvat
c579ba2319f967f09ab2bf080e357b2bde7180dd
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from .settings import authentication from django.contrib.auth.models import User, Group def setup_group_permissions(group): from cvat.apps.engine.models import Task from django.contrib.auth.models import Permission from django.contrib.contentty...
40.137931
109
0.705326
ed52a018299e87ca03331798b4ce7651140bdef4
4,186
py
Python
wrappers.py
haje01/impala
e40384cc5c6ff3a7bae00b4551290d3ffdbbe40a
[ "MIT" ]
18
2018-10-12T06:55:07.000Z
2021-11-03T01:26:54.000Z
wrappers.py
haje01/impala
e40384cc5c6ff3a7bae00b4551290d3ffdbbe40a
[ "MIT" ]
null
null
null
wrappers.py
haje01/impala
e40384cc5c6ff3a7bae00b4551290d3ffdbbe40a
[ "MIT" ]
2
2018-11-29T06:02:53.000Z
2019-07-13T10:55:08.000Z
"""Gym wrapper 모듈.""" # from https://github.com/Shmuma/ptan import cv2 import gym import gym.spaces import numpy as np import collections class FireResetEnv(gym.Wrapper): def __init__(self, env=None): """For environments where the user need to press FIRE for the game to start.""" super(FireResetE...
33.488
117
0.61419
60ec88b4c6c28fefbd8937b7bae592407728f4a5
2,459
py
Python
lisc/collect/citations.py
jasongfleischer/lisc
ed30be957d7ce13ccbac51092990869840e6f176
[ "Apache-2.0" ]
null
null
null
lisc/collect/citations.py
jasongfleischer/lisc
ed30be957d7ce13ccbac51092990869840e6f176
[ "Apache-2.0" ]
null
null
null
lisc/collect/citations.py
jasongfleischer/lisc
ed30be957d7ce13ccbac51092990869840e6f176
[ "Apache-2.0" ]
null
null
null
"""Collect citation data from OpenCitations.""" import json from lisc.requester import Requester from lisc.data.meta_data import MetaData from lisc.urls.open_citations import OpenCitations ################################################################################################### ############################...
30.7375
99
0.618137
c6048075b1320b0c840bfe72de9f147e032d9012
4,917
py
Python
image_ops_scratch.py
nifetency/python-builtin
fb0a10fcd2722f86f8ebb120b3fcedfe083096eb
[ "MIT" ]
null
null
null
image_ops_scratch.py
nifetency/python-builtin
fb0a10fcd2722f86f8ebb120b3fcedfe083096eb
[ "MIT" ]
null
null
null
image_ops_scratch.py
nifetency/python-builtin
fb0a10fcd2722f86f8ebb120b3fcedfe083096eb
[ "MIT" ]
null
null
null
import cv2 import numpy as np import json import base64 from matplotlib import pyplot as plt def read_image_string(contents): encoded_data = contents[0].split(',')[1] nparr = np.frombuffer(base64.b64decode(encoded_data), np.uint8) img = cv2.imdecode(nparr, cv2.IMREAD_COLOR) img = cv2.cvtColor(img, cv2.CO...
38.116279
119
0.649583
8e63b3f8e9c366ed51730bbefd84d6f991ecdb74
11,560
py
Python
venv/lib/python2.7/site-packages/ansible/modules/network/cnos/cnos_config.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/modules/network/cnos/cnos_config.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/modules/network/cnos/cnos_config.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) 2017 Red Hat Inc. # Copyright (C) 2017 Lenovo. # # GNU General Public License v3.0+ # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE...
36.352201
88
0.662284
9258cd96cfee2593f12b6129be488987622156ea
244
py
Python
src/test/data/pa3/sample/str_cmp.py
Leo-Enrique-Wu/chocopy_compiler_code_generation
4606be0531b3de77411572aae98f73169f46b3b9
[ "BSD-2-Clause" ]
7
2021-08-28T18:20:45.000Z
2022-02-01T07:35:59.000Z
src/test/data/pa3/sample/str_cmp.py
Leo-Enrique-Wu/chocopy_compiler_code_generation
4606be0531b3de77411572aae98f73169f46b3b9
[ "BSD-2-Clause" ]
4
2020-05-18T01:06:15.000Z
2020-06-12T19:33:14.000Z
src/test/data/pa3/sample/str_cmp.py
Leo-Enrique-Wu/chocopy_compiler_code_generation
4606be0531b3de77411572aae98f73169f46b3b9
[ "BSD-2-Clause" ]
5
2019-11-27T05:11:05.000Z
2021-06-29T14:31:14.000Z
a:str = "Hello" b:str = "World" c:str = "ChocoPy" def eq(a:str, b:str) -> bool: return a == b def neq(a:str, b:str) -> bool: return a != b print(eq(a,a)) print(eq(a,b)) print(neq(a,b)) print(neq(b,b)) print(eq(c,a)) print(neq(c,b))
13.555556
30
0.561475
aef440217473b11ff70ce38e5a327457587adc70
19,102
py
Python
src/serialbox-python/compare/compare.py
elsagermann/serialbox
c590561d0876f3ce9a07878e4862a46003a37879
[ "BSD-2-Clause" ]
null
null
null
src/serialbox-python/compare/compare.py
elsagermann/serialbox
c590561d0876f3ce9a07878e4862a46003a37879
[ "BSD-2-Clause" ]
null
null
null
src/serialbox-python/compare/compare.py
elsagermann/serialbox
c590561d0876f3ce9a07878e4862a46003a37879
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ##===-----------------------------------------------------------------------------*- Python -*-===## ## ## S E R I A L B O X ## ## This file is distributed under terms of BSD license. ## See LICENSE.txt for more information. ## ##===-----...
37.976143
104
0.584756
295e676da90513c1a432cf71261a2fbe9f393c9e
4,404
py
Python
lib/kubernetes/client/models/v2beta2_external_metric_source.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
lib/kubernetes/client/models/v2beta2_external_metric_source.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
lib/kubernetes/client/models/v2beta2_external_metric_source.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.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 iteri...
28.050955
106
0.556085
2f3b9e0a09485c4d0581cb2e100fe153f2d1b844
3,139
py
Python
proxypool/db.py
kingkap/ProxyPool
0908ed91dde8732d38971aa741a3d4e2254265c1
[ "Apache-2.0" ]
null
null
null
proxypool/db.py
kingkap/ProxyPool
0908ed91dde8732d38971aa741a3d4e2254265c1
[ "Apache-2.0" ]
null
null
null
proxypool/db.py
kingkap/ProxyPool
0908ed91dde8732d38971aa741a3d4e2254265c1
[ "Apache-2.0" ]
null
null
null
import redis from proxypool.error import PoolEmptyError from proxypool.setting import REDIS_HOST, REDIS_PORT, REDIS_PASSWORD, REDIS_KEY from proxypool.setting import MAX_SCORE, MIN_SCORE, INITIAL_SCORE from random import choice import re class RedisClient(object): def __init__(self, host=REDIS_HOST, port=REDIS_PO...
28.026786
99
0.549538
44ba3d71073424af58b696cad433f49ce93825f1
1,382
py
Python
konan_sdk/konan_service/routers.py
SynapseAnalytics/konan-sdk
b90f311d7e6e3f3a08ec8ef8ed03b78a33a586f9
[ "MIT" ]
null
null
null
konan_sdk/konan_service/routers.py
SynapseAnalytics/konan-sdk
b90f311d7e6e3f3a08ec8ef8ed03b78a33a586f9
[ "MIT" ]
6
2021-12-01T13:56:40.000Z
2022-03-28T10:06:05.000Z
konan_sdk/konan_service/routers.py
SynapseAnalytics/konan-sdk
b90f311d7e6e3f3a08ec8ef8ed03b78a33a586f9
[ "MIT" ]
null
null
null
from typing import Callable, Type from fastapi.types import DecoratedCallable from fastapi_utils.inferring_router import InferringRouter from konan_sdk.konan_service.serializers import ( KonanServiceBasePredictionResponse, KonanServiceBaseEvaluateResponse) class KonanServiceRouter(InferringRouter): def __in...
27.64
74
0.638205
3de437bc7256891e0d844d2ce2f038708283b601
10,060
py
Python
GM2AUTOSAR_MM/Properties/negative/Himesis/HTrivialFalseECUplusSystem1CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
GM2AUTOSAR_MM/Properties/negative/Himesis/HTrivialFalseECUplusSystem1CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
GM2AUTOSAR_MM/Properties/negative/Himesis/HTrivialFalseECUplusSystem1CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPatternLHS class HTrivialFalseECUplusSystem1CompleteLHS(HimesisPreConditionPatternLHS): def __init__(self): """ Creates the himesis graph representing the AToM3 model HTrivialFalseECUplusSystem1CompleteLHS. """ # Flag this insta...
47.45283
138
0.530318
0f38f930dfafa39cff3d01759e54cb748127ef98
1,201
py
Python
pypro/modulos/tests/test_aula_detalhes.py
taniodev/curso-django
aa5b0edd6ca55d2ea7f73220644d5c64a96c60df
[ "MIT" ]
null
null
null
pypro/modulos/tests/test_aula_detalhes.py
taniodev/curso-django
aa5b0edd6ca55d2ea7f73220644d5c64a96c60df
[ "MIT" ]
19
2019-11-26T20:38:55.000Z
2021-09-22T18:08:51.000Z
pypro/modulos/tests/test_aula_detalhes.py
taniodev/curso-django
aa5b0edd6ca55d2ea7f73220644d5c64a96c60df
[ "MIT" ]
null
null
null
import pytest from django.urls import reverse from model_bakery import baker from pypro.django_assertions import assert_contains from pypro.modulos.models import Aula, Modulo @pytest.fixture def modulo(db): return baker.make(Modulo) @pytest.fixture def aula(modulo): return baker.make(Aula, modulo=modulo) ...
26.108696
120
0.756037
cfac97f3dfe81a355f44aed249ece28a7c973c3e
6,245
py
Python
multinet/api/views/serializers.py
multinet-app/multinet-api
a658d787f0fb9ba415ed85a1e37c29953486287f
[ "Apache-2.0" ]
null
null
null
multinet/api/views/serializers.py
multinet-app/multinet-api
a658d787f0fb9ba415ed85a1e37c29953486287f
[ "Apache-2.0" ]
91
2021-03-15T19:00:15.000Z
2022-03-11T00:04:05.000Z
multinet/api/views/serializers.py
multinet-app/multinet-api
a658d787f0fb9ba415ed85a1e37c29953486287f
[ "Apache-2.0" ]
1
2022-02-05T15:53:04.000Z
2022-02-05T15:53:04.000Z
from django.contrib.auth.models import User from django.contrib.auth.validators import UnicodeUsernameValidator from rest_framework import serializers from multinet.api.models import AqlQuery, Network, Table, TableTypeAnnotation, Upload, Workspace # The default ModelSerializer for User fails if the user already exis...
27.390351
98
0.681986
ace2f8f30b5925e1e78f513b4a44b3aecf71f7c4
232
py
Python
zoomus/components/__init__.py
appfluence/zoomus
a14e1f08700b9dad89f00b0d5c2a73a24d421c78
[ "Apache-2.0" ]
2
2020-03-14T14:47:18.000Z
2020-04-06T23:20:54.000Z
zoomus/components/__init__.py
appfluence/zoomus
a14e1f08700b9dad89f00b0d5c2a73a24d421c78
[ "Apache-2.0" ]
null
null
null
zoomus/components/__init__.py
appfluence/zoomus
a14e1f08700b9dad89f00b0d5c2a73a24d421c78
[ "Apache-2.0" ]
1
2022-03-04T11:54:56.000Z
2022-03-04T11:54:56.000Z
"""Zoom.us REST API Python Client Components""" from __future__ import absolute_import from . import ( meeting, recording, report, user, webinar) __author__ = "Patrick R. Schmid" __email__ = "prschmid@act.md"
16.571429
47
0.685345
56b8309d77aa3f0e14658cb4753a0e198d03e4aa
4,921
py
Python
ioos_qc/argo.py
NOAA-PMEL/ioos_qc
bbe5a159275bd90f4b12b660776cf15557c10f0f
[ "Apache-2.0" ]
null
null
null
ioos_qc/argo.py
NOAA-PMEL/ioos_qc
bbe5a159275bd90f4b12b660776cf15557c10f0f
[ "Apache-2.0" ]
null
null
null
ioos_qc/argo.py
NOAA-PMEL/ioos_qc
bbe5a159275bd90f4b12b660776cf15557c10f0f
[ "Apache-2.0" ]
1
2021-01-20T23:20:06.000Z
2021-01-20T23:20:06.000Z
#!/usr/bin/env python # coding=utf-8 """Tests based on the ARGO QC manual.""" import logging import warnings from numbers import Real as N from typing import Sequence import numpy as np from ioos_qc.qartod import QartodFlags from ioos_qc.utils import add_flag_metadata from ioos_qc.utils import great_circle_distance f...
36.183824
115
0.68482
0224a1191b3ff7aed461165e00b432a3698b96bd
279
py
Python
autocomplete/__init__.py
larryworm1127/autocomplete
d628afc369aa98d15570315bdb662bdbbf3df2e8
[ "MIT" ]
null
null
null
autocomplete/__init__.py
larryworm1127/autocomplete
d628afc369aa98d15570315bdb662bdbbf3df2e8
[ "MIT" ]
null
null
null
autocomplete/__init__.py
larryworm1127/autocomplete
d628afc369aa98d15570315bdb662bdbbf3df2e8
[ "MIT" ]
null
null
null
from __future__ import absolute_import from autocomplete.engine import ( LetterAutocompleteEngine, SentenceAutocompleteEngine, MelodyAutocompleteEngine ) __all__ = [ 'LetterAutocompleteEngine', 'SentenceAutocompleteEngine', 'MelodyAutocompleteEngine' ]
19.928571
38
0.781362
9a75c0021fce3dba8971277438fc421eae460de6
20,737
py
Python
enaml/qt/docking/q_dock_title_bar.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
26
2016-04-01T18:49:31.000Z
2020-07-21T22:19:46.000Z
enaml/qt/docking/q_dock_title_bar.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
29
2016-02-22T17:40:55.000Z
2018-08-21T18:18:36.000Z
enaml/qt/docking/q_dock_title_bar.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
4
2016-08-29T13:07:19.000Z
2018-11-04T01:31:46.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
29.248237
79
0.579303
4618db6b0beaa3905a677303351dae3e2785a1e7
8,537
py
Python
locust/user/users.py
odidev/locust
34277aacd6b634b77cd3a12c786cda42da655c9d
[ "MIT" ]
null
null
null
locust/user/users.py
odidev/locust
34277aacd6b634b77cd3a12c786cda42da655c9d
[ "MIT" ]
11
2021-11-10T22:15:18.000Z
2022-03-28T22:20:23.000Z
locust/user/users.py
odidev/locust
34277aacd6b634b77cd3a12c786cda42da655c9d
[ "MIT" ]
null
null
null
from locust.user.wait_time import constant from typing import Any, Callable, Dict, List, TypeVar, Union from typing_extensions import final from gevent import GreenletExit, greenlet from gevent.pool import Group from locust.clients import HttpSession from locust.exception import LocustError, StopUser from locust.util i...
34.844898
145
0.655734
2d35d376295307c370aec37ad49a096a3f91b105
2,732
py
Python
src/OTLMOW/OTLModel/Datatypes/KlCabineStandaardtype.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Datatypes/KlCabineStandaardtype.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Datatypes/KlCabineStandaardtype.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde # Generated with OTLEnumerationCreator. To modify: extend, do not edit class KlCabineStandaardtype(KeuzelijstField): """Veel voorkomende types van cabines.""...
78.057143
196
0.610908
8ef0aa88df6a2365f0efe19db6006bd842ade7f3
2,567
py
Python
tempest/services/compute/xml/services_client.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
tempest/services/compute/xml/services_client.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
tempest/services/compute/xml/services_client.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 NEC Corporation # Copyright 2013 IBM Corp. # 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-...
35.652778
79
0.650954
fc8e7a7149542bee67819a7f82e753381d8b366e
9,061
py
Python
ryu/services/protocols/bgp/application.py
shiyanlou/ryu
cdd7084b941160f3b948d9c98fcc549784444b29
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/ryu/services/protocols/bgp/application.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/ryu/services/protocols/bgp/application.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2014 Nippon Telegraph and Telephone 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 appli...
38.888412
78
0.664938
586b214bb70b7ebe5c92c0096f2729499c92996c
4,639
py
Python
tests/traffic/test_ip_device_and_flow.py
albertovillarreal-keys/snappi-ixnetwork
c72673580f5a2c530f033469f542cbea36a49c2c
[ "MIT" ]
4
2020-11-03T06:03:48.000Z
2021-06-29T03:49:44.000Z
tests/traffic/test_ip_device_and_flow.py
albertovillarreal-keys/snappi-ixnetwork
c72673580f5a2c530f033469f542cbea36a49c2c
[ "MIT" ]
275
2020-09-23T15:19:09.000Z
2021-06-29T10:53:56.000Z
tests/traffic/test_ip_device_and_flow.py
albertovillarreal-keys/snappi-ixnetwork
c72673580f5a2c530f033469f542cbea36a49c2c
[ "MIT" ]
1
2020-10-12T19:33:46.000Z
2020-10-12T19:33:46.000Z
import pytest @pytest.mark.e2e def test_ip_device_and_flow(api, b2b_raw_config, utils): """ Configure the devices on Tx and Rx Port. Configure the flow with devices as end points. run the traffic Validation, - validate the port and flow statistics. """ size = 128 packets = 100000 ...
33.135714
78
0.610045
561bad3a1b7821e1e9f5aee592781d190d7ef5bb
8,905
py
Python
tests/03_tic_tac_toe.py
ephdtrg/eosfactory
721843707cb277618142c6d9518e3f231cae3b79
[ "MIT" ]
null
null
null
tests/03_tic_tac_toe.py
ephdtrg/eosfactory
721843707cb277618142c6d9518e3f231cae3b79
[ "MIT" ]
null
null
null
tests/03_tic_tac_toe.py
ephdtrg/eosfactory
721843707cb277618142c6d9518e3f231cae3b79
[ "MIT" ]
null
null
null
import unittest, argparse, sys, time from eosfactory.eosf import * verbosity([Verbosity.INFO, Verbosity.OUT, Verbosity.TRACE]) CONTRACT_WORKSPACE = "03_tic_tac_toe" INITIAL_RAM_KBYTES = 8 INITIAL_STAKE_NET = 3 INITIAL_STAKE_CPU = 3 class Test(unittest.TestCase): def stats(): print_stats( [m...
31.917563
86
0.516676
f225f37c2a76f130875945482344989c99c42737
7,048
py
Python
identity/tests/test_ajax_views.py
andressamagblr/vault
f37d61b93a96d91278b5d4163f336ada7209240f
[ "Apache-2.0" ]
null
null
null
identity/tests/test_ajax_views.py
andressamagblr/vault
f37d61b93a96d91278b5d4163f336ada7209240f
[ "Apache-2.0" ]
null
null
null
identity/tests/test_ajax_views.py
andressamagblr/vault
f37d61b93a96d91278b5d4163f336ada7209240f
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import json from unittest import TestCase from unittest.mock import patch from identity.views import ( ListUserRoleView, AddUserRoleView, DeleteUserRoleView) from identity.tests.fakes import FakeToken, FakeResource from vault.tests.fakes import fake_request, UserFactory class BaseAjaxTes...
31.891403
84
0.684875
9d1fbeecc7c354dc0d4e46dbed0f07b06d67f604
6,290
py
Python
models/deeplab/backbone/resnet.py
DLWK/CGRNet
a9a65fa192cc9888e7861755313b8b3ac80fa512
[ "MIT" ]
1
2022-03-29T06:32:34.000Z
2022-03-29T06:32:34.000Z
models/deeplab/backbone/resnet.py
DLWK/CGRNet
a9a65fa192cc9888e7861755313b8b3ac80fa512
[ "MIT" ]
null
null
null
models/deeplab/backbone/resnet.py
DLWK/CGRNet
a9a65fa192cc9888e7861755313b8b3ac80fa512
[ "MIT" ]
null
null
null
import math import torch.nn as nn import torch.utils.model_zoo as model_zoo from models.deeplab.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d class Bottleneck(nn.Module): expansion = 4 def __init__(self, inplanes, planes, stride=1, dilation=1, downsample=None, BatchNorm=None): super(Bottlene...
38.588957
130
0.603021
594b5ee880c3cdd827a4630da80f34d9ce69b160
3,221
py
Python
thespian/test/test_initmsgs.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
210
2015-08-31T19:39:34.000Z
2020-01-10T08:07:48.000Z
thespian/test/test_initmsgs.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
85
2017-04-08T19:28:42.000Z
2022-03-23T15:25:49.000Z
thespian/test/test_initmsgs.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
47
2015-09-01T19:24:20.000Z
2020-01-02T20:03:05.000Z
from time import sleep from datetime import timedelta from thespian.test import * from thespian.actors import * from thespian.transient import transient, transient_idle from thespian.initmsgs import initializing_messages from thespian.troupe import troupe max_ask_wait = timedelta(milliseconds=250) class Msg1(object):...
29.018018
70
0.629618
b2d11b56b33091986707bfae069602b462ba9da2
342
py
Python
froide_exam/migrations/0008_remove_curriculum_jurisdiction.py
okfde/froide-exam
f4033dc6a7a2687089931b217f4d4bcfa013ae7a
[ "MIT" ]
1
2018-11-28T15:34:29.000Z
2018-11-28T15:34:29.000Z
froide_exam/migrations/0008_remove_curriculum_jurisdiction.py
okfde/froide-exam
f4033dc6a7a2687089931b217f4d4bcfa013ae7a
[ "MIT" ]
2
2021-01-18T14:28:49.000Z
2021-03-16T11:55:55.000Z
froide_exam/migrations/0008_remove_curriculum_jurisdiction.py
okfde/froide-exam
f4033dc6a7a2687089931b217f4d4bcfa013ae7a
[ "MIT" ]
1
2019-05-01T12:34:55.000Z
2019-05-01T12:34:55.000Z
# Generated by Django 2.1.5 on 2019-02-08 11:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('froide_exam', '0007_auto_20190208_1158'), ] operations = [ migrations.RemoveField( model_name='curriculum', name='jurisdicti...
19
51
0.608187
124661b3adc5e1f7b7b960b71645dbb419466d53
520
py
Python
env/Lib/site-packages/plotly/validators/funnel/hoverlabel/_namelength.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/funnel/hoverlabel/_namelength.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/funnel/hoverlabel/_namelength.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name="namelength", parent_name="funnel.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, p...
32.5
81
0.636538
7209738e0aed65bab829a47e73824aa218c04729
4,840
py
Python
frappe/widgets/form/meta.py
cadencewatches/frappe
d9dcf132a10d68b2dcc80ef348e6d967f1e44084
[ "MIT" ]
null
null
null
frappe/widgets/form/meta.py
cadencewatches/frappe
d9dcf132a10d68b2dcc80ef348e6d967f1e44084
[ "MIT" ]
null
null
null
frappe/widgets/form/meta.py
cadencewatches/frappe
d9dcf132a10d68b2dcc80ef348e6d967f1e44084
[ "MIT" ]
1
2018-03-21T15:51:46.000Z
2018-03-21T15:51:46.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt # metadata from __future__ import unicode_literals import frappe, os from frappe.utils import cstr, cint from frappe.model.meta import Meta from frappe.modules import scrub, get_module_path from frappe.model.workflo...
32.483221
102
0.695455
da63617147e3d60a684d58fee8fef08b345b9e84
6,366
py
Python
voice_based_email_for_blind.py
vantage-ola/voice-based-email-for-blind
3764370b852fcd554ec2f4d033185d3e11cb21d1
[ "MIT" ]
1
2021-07-12T04:54:53.000Z
2021-07-12T04:54:53.000Z
voice_based_email_for_blind.py
vantage-ola/voice-based-email-for-blind
3764370b852fcd554ec2f4d033185d3e11cb21d1
[ "MIT" ]
null
null
null
voice_based_email_for_blind.py
vantage-ola/voice-based-email-for-blind
3764370b852fcd554ec2f4d033185d3e11cb21d1
[ "MIT" ]
null
null
null
import speech_recognition as sr import smtplib # import pyaudio # import platform # import sys from bs4 import BeautifulSoup import email import imaplib from gtts import gTTS import pyglet import os, time #pyglet.lib.load_library('avbin') #pyglet.have_avbin=True #project: :. Project: Voice based Email ...
36.170455
134
0.657713
5f7c1d82cfdc875958c6cb017467529c954e86ba
20,627
py
Python
erniekit/utils/util_helper.py
PaddlePaddle/LARK
94a2367ba7f0f83b48330233450ea095d8dc9382
[ "Apache-2.0" ]
1,552
2019-03-03T19:52:07.000Z
2019-07-19T06:47:57.000Z
erniekit/utils/util_helper.py
PaddlePaddle/LARK
94a2367ba7f0f83b48330233450ea095d8dc9382
[ "Apache-2.0" ]
154
2019-03-06T08:19:57.000Z
2019-07-19T02:52:22.000Z
erniekit/utils/util_helper.py
PaddlePaddle/LARK
94a2367ba7f0f83b48330233450ea095d8dc9382
[ "Apache-2.0" ]
382
2019-03-04T13:37:01.000Z
2019-07-19T06:33:44.000Z
# -*- coding: utf-8 -* """import""" import collections import json import unicodedata from collections import OrderedDict import six from ..common.rule import MaxTruncation from . import params import os, tarfile def append_name(name, postfix): """ append name with postfix """ if name is None: ret = N...
34.961017
105
0.61308
1251561b62d6537a68fef3caa1aae81e70162fba
8,766
py
Python
maha/parsers/functions/parse_fn.py
TRoboto/Maha
f229adbb1dcccb6bf8f84852723d24f97d511b24
[ "BSD-3-Clause" ]
152
2021-09-18T08:18:47.000Z
2022-03-14T13:23:17.000Z
maha/parsers/functions/parse_fn.py
TRoboto/Maha
f229adbb1dcccb6bf8f84852723d24f97d511b24
[ "BSD-3-Clause" ]
65
2021-09-20T06:00:41.000Z
2022-03-20T22:44:39.000Z
maha/parsers/functions/parse_fn.py
TRoboto/Maha
f229adbb1dcccb6bf8f84852723d24f97d511b24
[ "BSD-3-Clause" ]
10
2021-09-18T11:56:57.000Z
2021-11-20T09:05:16.000Z
"""Functions that extracts values from text""" from __future__ import annotations __all__ = ["parse", "parse_expression"] from maha.constants import ( ALL_HARAKAT, ARABIC, ARABIC_LETTERS, ARABIC_LIGATURES, ARABIC_NUMBERS, ARABIC_PUNCTUATIONS, EMPTY, ENGLISH, ENGLISH_CAPITAL_LETTER...
34.108949
94
0.670888
837528af63d281db62376d0ae9de14c493f773ed
1,786
py
Python
pkg_classes/led8x8prime.py
parttimehacker/clock
53ba721179951945058037b0c4bd8588c2bb1f95
[ "MIT" ]
null
null
null
pkg_classes/led8x8prime.py
parttimehacker/clock
53ba721179951945058037b0c4bd8588c2bb1f95
[ "MIT" ]
1
2019-02-24T17:29:11.000Z
2019-02-24T17:29:11.000Z
pkg_classes/led8x8prime.py
parttimehacker/clock
53ba721179951945058037b0c4bd8588c2bb1f95
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Test Bed for Diyhas System Status class """ import time BRIGHTNESS = 10 UPDATE_RATE_SECONDS = 0.2 PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167,...
29.278689
84
0.530795
905346c6480f4227e3ff33bb73a1ea2d5a8ff4ff
7,039
py
Python
service/app/modules/ModelManager.py
leifan89/video-analytics-serving
1327d650927fd78e55b7cbcb6d7238ca2b240028
[ "BSD-3-Clause" ]
null
null
null
service/app/modules/ModelManager.py
leifan89/video-analytics-serving
1327d650927fd78e55b7cbcb6d7238ca2b240028
[ "BSD-3-Clause" ]
null
null
null
service/app/modules/ModelManager.py
leifan89/video-analytics-serving
1327d650927fd78e55b7cbcb6d7238ca2b240028
[ "BSD-3-Clause" ]
null
null
null
''' * Copyright (C) 2019 Intel Corporation. * * SPDX-License-Identifier: BSD-3-Clause ''' import os import sys import json import fnmatch import string import common.settings # pylint: disable=import-error from common.utils import logging # pylint: disable=import-error logger = logging.get_logger('ModelManager', i...
41.405882
155
0.565137
7c8b9b048f01714609561cf7ef409739319e9ba2
5,303
py
Python
basetestcase/base_FormTestCase.py
Spleeding1/django-basetestcase
341bb0921c9eb3699f44ca59b6d0b1dbfa32bd00
[ "MIT" ]
1
2019-07-30T12:55:47.000Z
2019-07-30T12:55:47.000Z
basetestcase/base_FormTestCase.py
Spleeding1/django-basetestcase
341bb0921c9eb3699f44ca59b6d0b1dbfa32bd00
[ "MIT" ]
null
null
null
basetestcase/base_FormTestCase.py
Spleeding1/django-basetestcase
341bb0921c9eb3699f44ca59b6d0b1dbfa32bd00
[ "MIT" ]
null
null
null
from .base_UtilityTestCase import UtilityTestCase class FormTestCase(UtilityTestCase): def form_field_test(self, field, error_messages={}, help_text='', initial=None, label='', required=True, widget_attrs={}): form = self.form() try: form.fields[field] except KeyError: ...
37.878571
227
0.555912
2f8fe29cbc6484db407e926dae23407273f0b664
711
py
Python
src/compas/utilities/datetime.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas/utilities/datetime.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas/utilities/datetime.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import time import datetime __all__ = [ 'timestamp', 'now' ] def timestamp(): """Generate a timestamp using the current date and time. Returns ------- str The timestamp. ...
15.12766
80
0.582278
f812fad2ab1bdb3320a2efd7baa74c1e3517ae01
861
py
Python
prep/dia01/parser_test.py
pliba/garoa2018
8ba5d392b5d16223f93566bd46c26546669e9668
[ "BSD-3-Clause" ]
2
2018-11-22T14:49:38.000Z
2022-01-15T19:12:05.000Z
prep/dia01/parser_test.py
pliba/garoa2018
8ba5d392b5d16223f93566bd46c26546669e9668
[ "BSD-3-Clause" ]
null
null
null
prep/dia01/parser_test.py
pliba/garoa2018
8ba5d392b5d16223f93566bd46c26546669e9668
[ "BSD-3-Clause" ]
null
null
null
from pytest import mark from parser import tokenize, parse @mark.parametrize("source,want",[ ('a', ['a']), ('abs', ['abs']), ('(now)', ['(', 'now', ')']), ('()', ['(', ')']), ('(+ 2 3)', ['(', '+', '2', '3', ')']), ('(+ 2 (* 3 5))', ['(', '+', '2', '(', '*', '3', '5', ')',')']), ]) def test_...
24.6
74
0.380952
4686335ba402d0083d7da29190b97e3ce3edc1fa
169
py
Python
allauth/socialaccount/providers/doximity/urls.py
mina-gaid/scp-stock-forcasting
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2018-04-06T21:36:59.000Z
2018-04-06T21:36:59.000Z
allauth/socialaccount/providers/doximity/urls.py
mina-gaid/scp-stock-forcasting
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
allauth/socialaccount/providers/doximity/urls.py
mina-gaid/scp-stock-forcasting
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
null
null
null
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import DoximityProvider urlpatterns = default_urlpatterns(DoximityProvider)
28.166667
75
0.87574
6a61bcc265cbd0c95e415522643901d600455272
15,411
py
Python
smartcat/api.py
yakninja/evan-bot
8475a79a6369c78478eaca71cdc0e548f5853794
[ "BSD-2-Clause" ]
1
2020-11-23T02:54:55.000Z
2020-11-23T02:54:55.000Z
smartcat/api.py
yakninja/evan-bot
8475a79a6369c78478eaca71cdc0e548f5853794
[ "BSD-2-Clause" ]
null
null
null
smartcat/api.py
yakninja/evan-bot
8475a79a6369c78478eaca71cdc0e548f5853794
[ "BSD-2-Clause" ]
1
2021-11-10T19:52:23.000Z
2021-11-10T19:52:23.000Z
# -*- coding: utf-8 -*- """ smartcat.api ~~~~~~~~~~~~ This module contains classes that make http requests to SmartCAT `API Documentation <https://smartcat.ai/api/methods/>`_ Original project at https://github.com/gilyaev/smartcat-python-sdk Modified by Andrey Kravchuk https://github.com/yakninja (added account par...
35.104784
120
0.617416
eec77c7ecdb70944fb5989b063f2be4f39be43db
961
py
Python
app/sheet.py
vprnet/lyme-disease
a8d457d08c6ccd336d62d3ccb7063b875affc14c
[ "Apache-2.0" ]
1
2015-05-26T03:35:28.000Z
2015-05-26T03:35:28.000Z
app/sheet.py
vprnet/lyme-disease
a8d457d08c6ccd336d62d3ccb7063b875affc14c
[ "Apache-2.0" ]
null
null
null
app/sheet.py
vprnet/lyme-disease
a8d457d08c6ccd336d62d3ccb7063b875affc14c
[ "Apache-2.0" ]
null
null
null
from google_spreadsheet.api import SpreadsheetAPI from config import GOOGLE_SPREADSHEET def list_sheets(): """The API sheet_key is not the same as the key in the URL. This function just prints out all sheet keys""" api = SpreadsheetAPI(GOOGLE_SPREADSHEET['USER'], GOOGLE_SPREADSHEET['PASSWORD'], ...
30.03125
95
0.727367
27480df416e85ef2133108220137fc025a404743
796
py
Python
examples/AddressBook/server.py
novaweb-mobi/nova-api
2887118ff10d18f366ce661262bd25bb96648470
[ "MIT" ]
3
2020-09-08T23:33:41.000Z
2021-12-24T20:50:13.000Z
examples/AddressBook/server.py
novaweb-mobi/nova-api
2887118ff10d18f366ce661262bd25bb96648470
[ "MIT" ]
39
2020-07-29T12:34:14.000Z
2022-03-05T16:50:29.000Z
examples/AddressBook/server.py
novaweb-mobi/nova-api
2887118ff10d18f366ce661262bd25bb96648470
[ "MIT" ]
1
2021-03-05T19:41:58.000Z
2021-03-05T19:41:58.000Z
import connexion from flask_cors import CORS import nova_api nova_api.logger.info("Test") debug = True port = 8080 version = "1" # Import entity and dao mod = __import__("ContactDAO", fromlist=["ContactDAO"]) contact_dao = getattr(mod, "ContactDAO") mod = __import__("PhoneDAO", fromlist=["PhoneDAO"]) phone_dao = ge...
22.111111
56
0.741206
17ba068c034329824f6ff9658114f40c6d3a4cd4
2,739
py
Python
CIM16/IEC61970/Generation/Production/InflowForecast.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM16/IEC61970/Generation/Production/InflowForecast.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM16/IEC61970/Generation/Production/InflowForecast.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
1
2021-04-02T18:04:49.000Z
2021-04-02T18:04:49.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
44.901639
453
0.725447
7c09c1fea3f9a1b3fb9b255177fde3040dcfa7e7
47
py
Python
ssz/constants.py
Bhargavasomu/py-ssz
8ed62a3a22959f30acb4e20c58011389cd46638f
[ "MIT" ]
null
null
null
ssz/constants.py
Bhargavasomu/py-ssz
8ed62a3a22959f30acb4e20c58011389cd46638f
[ "MIT" ]
null
null
null
ssz/constants.py
Bhargavasomu/py-ssz
8ed62a3a22959f30acb4e20c58011389cd46638f
[ "MIT" ]
null
null
null
BYTES_PREFIX_LENGTH = 4 LIST_PREFIX_LENGTH = 4
15.666667
23
0.829787
447256fe0c17e970fc602df30f4a072958edfd14
1,317
py
Python
doc/charts/doughnut.py
ankitJoshi03/openpyxlzip
f3b8aa2f80f9d8bc31ce5fcf05c822d88d2ff647
[ "MIT" ]
null
null
null
doc/charts/doughnut.py
ankitJoshi03/openpyxlzip
f3b8aa2f80f9d8bc31ce5fcf05c822d88d2ff647
[ "MIT" ]
null
null
null
doc/charts/doughnut.py
ankitJoshi03/openpyxlzip
f3b8aa2f80f9d8bc31ce5fcf05c822d88d2ff647
[ "MIT" ]
null
null
null
from openpyxlzip import Workbook from openpyxlzip.chart import ( DoughnutChart, Reference, Series, ) from openpyxlzip.chart.series import DataPoint data = [ ['Pie', 2014, 2015], ['Plain', 40, 50], ['Jam', 2, 10], ['Lime', 20, 30], ['Chocolate', 30, 40], ] wb = Workbook() ws = wb.activ...
23.517857
55
0.725133
28379a75e888eab9e9a5afb9f14cd28535fca98d
493
py
Python
Class-2/Activities/03-Stu_KidInCandyStore-LoopsRecap/Solved/kid_in_candy_store.py
dillon-wright/Python-Week-3
97ef515862c2b07be5bc420f4574488eaf12de2b
[ "Unlicense" ]
null
null
null
Class-2/Activities/03-Stu_KidInCandyStore-LoopsRecap/Solved/kid_in_candy_store.py
dillon-wright/Python-Week-3
97ef515862c2b07be5bc420f4574488eaf12de2b
[ "Unlicense" ]
null
null
null
Class-2/Activities/03-Stu_KidInCandyStore-LoopsRecap/Solved/kid_in_candy_store.py
dillon-wright/Python-Week-3
97ef515862c2b07be5bc420f4574488eaf12de2b
[ "Unlicense" ]
null
null
null
# The list of candies to print to the screen candy_list = ["Snickers", "Kit Kat", "Sour Patch Kids", "Juicy Fruit", "Swedish Fish", "Skittles", "Hershey Bar", "Starbursts", "M&Ms"] # The amount of candy the user will be allowed to choose allowance = 5 # The list used to store all of the candies selected inside of can...
27.388889
135
0.663286
c76441fa48a275ba6092917c7e13ca741846aafc
996
py
Python
app/main/model/user_team.py
t2venture/room40-underground
5fb15ef046412961c8a0407a9b93b2684c819dc9
[ "MIT" ]
null
null
null
app/main/model/user_team.py
t2venture/room40-underground
5fb15ef046412961c8a0407a9b93b2684c819dc9
[ "MIT" ]
null
null
null
app/main/model/user_team.py
t2venture/room40-underground
5fb15ef046412961c8a0407a9b93b2684c819dc9
[ "MIT" ]
null
null
null
from .. import db, flask_bcrypt import datetime import jwt from app.main.model.blacklist import BlacklistToken from ..config import key class UserTeam(db.Model): """UserTeam Model is used to link users within a team""" __tablename__ = "user_team" id = db.Column(db.Integer, primary_key=True, autoincrement=...
47.428571
81
0.737952
f9be7e3662bdecca7cc62870887ebf9b5481cc12
6,128
py
Python
test/lint/check-rpc-mappings.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
test/lint/check-rpc-mappings.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
test/lint/check-rpc-mappings.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The TNGC Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Check RPC argument consistency.""" from collections import defaultdict import os import re import sys # ...
37.595092
157
0.581593
31a869df251b6d341e3235f73158ce4609ad2b0d
2,945
py
Python
S4/S4 Library/simulation/gsi_handlers/sim_timeline_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/gsi_handlers/sim_timeline_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/gsi_handlers/sim_timeline_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
import contextlib from gsi_handlers.gameplay_archiver import GameplayArchiver from sims4.gsi.schema import GsiGridSchema, GsiFieldVisualizers import services sim_timeline_archive_schema = GsiGridSchema(label='Sim Time Line', sim_specific=True) sim_timeline_archive_schema.add_field('game_time', label='GameTime', width=4...
60.102041
216
0.747708
0e0cd521f28daadf211d86aed469a20001b61797
12,731
py
Python
example/image-classification/common/fit.py
UNIXCODERS/incubator-mxnet
5c5a904209900e21b20ca206b043ea7a8252ebfc
[ "Apache-2.0" ]
1
2018-02-26T02:46:07.000Z
2018-02-26T02:46:07.000Z
example/image-classification/common/fit.py
UNIXCODERS/incubator-mxnet
5c5a904209900e21b20ca206b043ea7a8252ebfc
[ "Apache-2.0" ]
null
null
null
example/image-classification/common/fit.py
UNIXCODERS/incubator-mxnet
5c5a904209900e21b20ca206b043ea7a8252ebfc
[ "Apache-2.0" ]
null
null
null
# 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 under the Apache License, Version 2.0 (the # "License"); you may not u...
41.740984
132
0.615191
32ccae4a984901a46262a2da6ed606594f66dc5d
3,181
py
Python
services/discovery/jobs/periodic/uptime.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
services/discovery/jobs/periodic/uptime.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
services/discovery/jobs/periodic/uptime.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Uptime check # --------------------------------------------------------------------- # Copyright (C) 2007-2015 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Python modules imp...
33.840426
71
0.493555
487c8708edf435a4433939623877464249f87114
8,208
py
Python
lotka-volterra/VI_for_SDEs.py
kw-lee/VIforSDEs
dcba3832aaad0aebc921a3b0628c43046d651629
[ "MIT" ]
43
2018-03-07T16:46:08.000Z
2022-03-12T11:16:39.000Z
lotka-volterra/VI_for_SDEs.py
SourangshuGhosh/VIforSDEs
fd432ffeb9290ef2dc1e8a38638c55556738dc3d
[ "MIT" ]
1
2018-03-30T18:06:11.000Z
2018-03-30T18:06:39.000Z
lotka-volterra/VI_for_SDEs.py
SourangshuGhosh/VIforSDEs
fd432ffeb9290ef2dc1e8a38638c55556738dc3d
[ "MIT" ]
8
2018-09-12T10:36:00.000Z
2021-11-17T05:03:25.000Z
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf # python data types import numpy as np import scipy.stats as stats from datetime import datetime # model-specific imports from lotka_volterra_data_augmentation import * from lotka_volterra_loss import ELBO from network_utils import Weight, Bias ...
39.84466
166
0.585648
db309fceda54328839be585127ce4cdd9a19a565
5,137
py
Python
YieldCurveSurface/yieldCurveSurface.py
letsgoexploring/miscellaneous-python-code
20e0b4f87ec7cdbcd7a7b44f236ce9b71f7cf0ee
[ "MIT" ]
null
null
null
YieldCurveSurface/yieldCurveSurface.py
letsgoexploring/miscellaneous-python-code
20e0b4f87ec7cdbcd7a7b44f236ce9b71f7cf0ee
[ "MIT" ]
null
null
null
YieldCurveSurface/yieldCurveSurface.py
letsgoexploring/miscellaneous-python-code
20e0b4f87ec7cdbcd7a7b44f236ce9b71f7cf0ee
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm,rc import matplotlib.colors as colors import matplotlib.dates as mdates import numpy as np import pandas as pd from fredpy import series, window_equalize import collections # get_ipython().magi...
29.522989
130
0.687561
db9a9265a528295d1262373c8ea665c11701f58d
5,768
py
Python
tensorflow/python/data/kernel_tests/zip_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
8
2021-08-03T03:57:10.000Z
2021-12-13T01:19:02.000Z
tensorflow/python/data/kernel_tests/zip_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
17
2021-08-12T19:38:42.000Z
2022-01-27T14:39:35.000Z
tensorflow/python/data/kernel_tests/zip_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
3
2021-09-26T22:20:25.000Z
2021-09-26T23:07:13.000Z
# Copyright 2017 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...
36.05
80
0.682732
e84c616d690a210b314e314a0e2b6a856b4bd364
2,813
py
Python
setup.py
sjiekak/cvxpy
4c16ee865d7721160fe9bd41d432f95ee6fe80f8
[ "ECL-2.0", "Apache-2.0" ]
7
2015-06-03T01:33:46.000Z
2021-11-15T01:48:49.000Z
setup.py
zhm-real/cvxpy
370bdb24849014bf2fbd24980eaf98a133455b60
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-22T07:46:38.000Z
2020-10-22T07:46:38.000Z
setup.py
sjiekak/cvxpy
4c16ee865d7721160fe9bd41d432f95ee6fe80f8
[ "ECL-2.0", "Apache-2.0" ]
2
2020-10-22T01:35:58.000Z
2022-01-19T10:48:51.000Z
import distutils.sysconfig import distutils.version import os import platform import sys from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext # inject numpy headers class build_ext_cvxpy(build_ext): def finalize_options(self): build_ext.finalize_option...
35.607595
78
0.65695
1824c1694c81443e2f4b7f317de0dc166d1d52d5
4,635
py
Python
openstates/openstates-master/openstates/ri/events.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ri/events.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ri/events.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
import datetime as dt from billy.scrape import NoDataForPeriod from billy.scrape.events import Event, EventScraper from openstates.utils import LXMLMixin import lxml.html import pytz agenda_url = "http://status.rilin.state.ri.us/agendas.aspx" column_order = { "upper" : 1, "other" : 2, "lower" : 0 } all_...
30.097403
79
0.510464