hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
638027c0eadc956d2dd934c655aead93cd6a42bf
893
py
Python
setup.py
flych3r/producer-consumer-service
2b9d87a058f7ac82cee3d7767f772a3a2c1fe8db
[ "MIT" ]
1
2022-01-16T10:49:42.000Z
2022-01-16T10:49:42.000Z
setup.py
flych3r/producer-consumer-service
2b9d87a058f7ac82cee3d7767f772a3a2c1fe8db
[ "MIT" ]
null
null
null
setup.py
flych3r/producer-consumer-service
2b9d87a058f7ac82cee3d7767f772a3a2c1fe8db
[ "MIT" ]
1
2022-03-09T10:58:24.000Z
2022-03-09T10:58:24.000Z
from setuptools import find_packages, setup with open('requirements.txt') as f: DEPENDENCIES = [dep.strip() for dep in f.readlines()] LICENSE = 'MIT License' CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Programming Language :: Python :: 3', 'Operating System :: OS Independent', ] if LICENSE: ...
26.264706
63
0.692049
e5956e99bab59a9e13d23122cbc3b2093546e27b
1,098
py
Python
src/bobbit/modules/mock.py
sebmaster36/bobbit
7c9106a5c1d30f6ea64dc4ada2458f626f94b047
[ "MIT" ]
10
2020-05-20T20:28:01.000Z
2022-02-15T06:08:17.000Z
src/bobbit/modules/mock.py
sebmaster36/bobbit
7c9106a5c1d30f6ea64dc4ada2458f626f94b047
[ "MIT" ]
28
2020-05-20T20:39:32.000Z
2021-12-31T16:37:05.000Z
src/bobbit/modules/mock.py
sebmaster36/bobbit
7c9106a5c1d30f6ea64dc4ada2458f626f94b047
[ "MIT" ]
19
2020-05-27T23:47:11.000Z
2022-03-04T04:11:12.000Z
# mock.py # Metadata NAME = 'mock' ENABLE = True PATTERN = r'^!mock (?P<phrase>.*)' USAGE = '''Usage: !mock <phrase|nick> Given a phrase, this translates the phrase into a mocking spongebob phrase. Example: > !mock it should work on slack and irc iT ShOuLd wOrK On sLaCk aNd iRc Alternatively, given a n...
22.408163
93
0.631148
3d42ab9012bf1221c6bd0924b866dca98dc6e69c
565
py
Python
setup.py
conradbez/streamlit-node-graph
a29b8a28bc272c41d9a39dea5d57171615a6b43c
[ "MIT" ]
null
null
null
setup.py
conradbez/streamlit-node-graph
a29b8a28bc272c41d9a39dea5d57171615a6b43c
[ "MIT" ]
null
null
null
setup.py
conradbez/streamlit-node-graph
a29b8a28bc272c41d9a39dea5d57171615a6b43c
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="streamlit-node-graph", version="0.0.7", author="", author_email="", description="", long_description="", long_description_content_type="text/plain", url="", packages=setuptools.find_packages(), include_package_data=True, classifiers=...
24.565217
65
0.635398
7178756a0ee688001fb892fb1d48f2aed040bfcd
197
py
Python
mmpy_bot/plugins/ping.py
whoo/mmpy_bot
0ec39d44eff5cd474fcfc5a596910fd26c5c0a9d
[ "MIT" ]
1
2020-04-21T16:23:26.000Z
2020-04-21T16:23:26.000Z
mmpy_bot/plugins/ping.py
whoo/mmpy_bot
0ec39d44eff5cd474fcfc5a596910fd26c5c0a9d
[ "MIT" ]
6
2018-06-05T16:09:16.000Z
2018-08-26T00:26:04.000Z
mmpy_bot/plugins/ping.py
whoo/mmpy_bot
0ec39d44eff5cd474fcfc5a596910fd26c5c0a9d
[ "MIT" ]
1
2021-03-05T20:11:17.000Z
2021-03-05T20:11:17.000Z
# -*- coding: utf-8 -*- import re from mmpy_bot.bot import respond_to @respond_to('^ping$', re.IGNORECASE) def ping_reply(message): message.reply('pong') ping_reply.__doc__ = "Send pong"
14.071429
36
0.690355
676e179a69163d02a9250af2d7947529edd58239
240
py
Python
cultureplatform/forum/forms.py
michaelroudnitski/cultureplatform
38a68faa541cd1b043ec0c0f98323b2fb7623d14
[ "Apache-2.0" ]
null
null
null
cultureplatform/forum/forms.py
michaelroudnitski/cultureplatform
38a68faa541cd1b043ec0c0f98323b2fb7623d14
[ "Apache-2.0" ]
null
null
null
cultureplatform/forum/forms.py
michaelroudnitski/cultureplatform
38a68faa541cd1b043ec0c0f98323b2fb7623d14
[ "Apache-2.0" ]
null
null
null
from django import forms from django.forms import ModelForm from .models import Forum class NewForumForm(ModelForm): """ inherits the Forum model and casts as a form """ class Meta: model = Forum fields = ['title',]
26.666667
56
0.683333
6576ad21a81521db92f89009753b2c4420df2979
3,498
py
Python
dfetch/commands/update.py
jgeudens/dfetch
da9fb65a805a8eaf96ebde265b3f294080df3465
[ "MIT" ]
11
2020-10-14T14:51:02.000Z
2022-02-07T18:40:43.000Z
dfetch/commands/update.py
jgeudens/dfetch
da9fb65a805a8eaf96ebde265b3f294080df3465
[ "MIT" ]
138
2020-11-02T21:18:40.000Z
2022-03-31T20:44:08.000Z
dfetch/commands/update.py
jgeudens/dfetch
da9fb65a805a8eaf96ebde265b3f294080df3465
[ "MIT" ]
5
2020-10-31T12:35:04.000Z
2022-01-27T12:51:55.000Z
"""Update is the main functionality of dfetch. You can add Projects to your :ref:`Manifest` and update will fetch the version specified. It tries to determine what kind of vcs it is: git, svn or something else. .. uml:: /static/uml/update.puml Child-manifests ~~~~~~~~~~~~~~~ It is possible that projects have manife...
34.633663
96
0.644082
f15ac40822df80131972ca404d5acbe64a55fb1e
58,508
py
Python
tensorflow2/tf2cv/models/model_store.py
tucan9389/imgclsmob
cf01fc242ce466a425de7779076ea023bf0148bc
[ "MIT" ]
1
2020-04-10T16:02:19.000Z
2020-04-10T16:02:19.000Z
tensorflow2/tf2cv/models/model_store.py
tucan9389/imgclsmob
cf01fc242ce466a425de7779076ea023bf0148bc
[ "MIT" ]
null
null
null
tensorflow2/tf2cv/models/model_store.py
tucan9389/imgclsmob
cf01fc242ce466a425de7779076ea023bf0148bc
[ "MIT" ]
1
2020-12-10T18:44:27.000Z
2020-12-10T18:44:27.000Z
""" Model store which provides pretrained models. """ __all__ = ['get_model_file'] import os import zipfile import logging import hashlib _model_sha1 = {name: (error, checksum, repo_release_tag, ds, scale) for name, error, checksum, repo_release_tag, ds, scale in [ ('alexnet', '1789', 'ecc4bb4...
85.28863
140
0.693153
81ab95abbb5c997a4fc4ad2b394eef7b81910e12
919
py
Python
backend/app/app/api/api_v1/report/__init__.py
jimorsm/vue-element-admin-fastapi
3ffc7dc3d2be988e544f339af466538cb0708d25
[ "MIT" ]
null
null
null
backend/app/app/api/api_v1/report/__init__.py
jimorsm/vue-element-admin-fastapi
3ffc7dc3d2be988e544f339af466538cb0708d25
[ "MIT" ]
null
null
null
backend/app/app/api/api_v1/report/__init__.py
jimorsm/vue-element-admin-fastapi
3ffc7dc3d2be988e544f339af466538cb0708d25
[ "MIT" ]
null
null
null
from typing import Any from fastapi import APIRouter, Request, Depends from sqlalchemy.orm import Session from fastapi.responses import StreamingResponse from app.api import deps from app.api.api_v1.report.gen_report import Report router = APIRouter() @router.get("/report/excel_generate/{excel_name}", tags=["repor...
36.76
108
0.723613
583218c96f655d4e3f5d49c227591c356da50513
2,392
py
Python
Notebooks/test-gdxp.py
henrydambanemuya/gdelt-colombia
65f84912df6f7a1137b685fbc0a0cc9a3e124b41
[ "MIT" ]
null
null
null
Notebooks/test-gdxp.py
henrydambanemuya/gdelt-colombia
65f84912df6f7a1137b685fbc0a0cc9a3e124b41
[ "MIT" ]
null
null
null
Notebooks/test-gdxp.py
henrydambanemuya/gdelt-colombia
65f84912df6f7a1137b685fbc0a0cc9a3e124b41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 7 05:34:18 2017 @author: Administrator """ # Import useful libraries import gdeltxp import gdeltviz import operator import scipy as sp import pandas as pd import numpy as np import seaborn as sns import matplotlib.cm as cm import matplotlib.pyplot as plt...
36.8
255
0.738294
38ae7722bac6619235bc12b68ee36754a1686c15
9,853
py
Python
utils.py
statgen/bravo_data_prep
dd483f5e96566243f27769ecbfa41c055ab8d22b
[ "MIT" ]
null
null
null
utils.py
statgen/bravo_data_prep
dd483f5e96566243f27769ecbfa41c055ab8d22b
[ "MIT" ]
null
null
null
utils.py
statgen/bravo_data_prep
dd483f5e96566243f27769ecbfa41c055ab8d22b
[ "MIT" ]
null
null
null
import traceback from collections import OrderedDict from operator import itemgetter AF_BUCKETS = [0.0001, 0.0002, 0.0005, 0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1] METRICS = { 'BaseQRankSum': {}, 'ClippingRankSum': {}, 'DP': {'name': 'Total Depth'}, 'FS': {}, 'InbreedingCoeff': {}...
43.214912
153
0.639907
90f938d31f8d98b67f38e14438ad5a0ce83897ba
5,817
py
Python
examples/titanic/assets/algo_random_forest/algo.py
cupcicm/substra
19eeec1dda02cce0e10ef6ed285636e974a6e77a
[ "Apache-2.0" ]
null
null
null
examples/titanic/assets/algo_random_forest/algo.py
cupcicm/substra
19eeec1dda02cce0e10ef6ed285636e974a6e77a
[ "Apache-2.0" ]
null
null
null
examples/titanic/assets/algo_random_forest/algo.py
cupcicm/substra
19eeec1dda02cce0e10ef6ed285636e974a6e77a
[ "Apache-2.0" ]
null
null
null
import re import pandas as pd import pickle from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import GridSearchCV import numpy as np import substratools as tools class Algo(tools.algo.Algo): def _normalize_X(self, X): # Relatives X['relatives'] = X['SibSp'] + X['...
37.772727
105
0.480832
181ed57e3eb39153ad141aa8f03aeb15ee7f7127
510
py
Python
idManager/view/authentication_view.py
lgarciasbr/idm-api
3517d29d55eb2a06fb5b4b21359b6cf6d11529a0
[ "Apache-2.0" ]
2
2018-01-14T22:43:43.000Z
2018-01-14T22:43:48.000Z
idManager/view/authentication_view.py
lgarciasbr/idm-api
3517d29d55eb2a06fb5b4b21359b6cf6d11529a0
[ "Apache-2.0" ]
null
null
null
idManager/view/authentication_view.py
lgarciasbr/idm-api
3517d29d55eb2a06fb5b4b21359b6cf6d11529a0
[ "Apache-2.0" ]
null
null
null
from flask import jsonify def auth_login(http_status_code, message, token): view = jsonify({'status_code': http_status_code, 'message': message, '_token': token}) return view def auth_is_valid(http_status_code, message, token): view = jsonify({'status_code': http_status_code, 'message': message, '_toke...
25.5
90
0.721569
1f9ff1929c0bc02e2a5782ebe815a7b05d5833dc
7,176
py
Python
alephnull/sources/test_source.py
Python3pkg/AlephNull
70c522573fe1416c9f4972c9d0078a9b96de0c57
[ "Apache-2.0" ]
1
2021-05-16T21:10:41.000Z
2021-05-16T21:10:41.000Z
alephnull/sources/test_source.py
Python3pkg/AlephNull
70c522573fe1416c9f4972c9d0078a9b96de0c57
[ "Apache-2.0" ]
null
null
null
alephnull/sources/test_source.py
Python3pkg/AlephNull
70c522573fe1416c9f4972c9d0078a9b96de0c57
[ "Apache-2.0" ]
1
2021-04-02T19:01:11.000Z
2021-04-02T19:01:11.000Z
# # Copyright 2013 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
31.893333
77
0.60131
6b339f25d2315186b02e4e3cb9e27f2f8e930848
9,087
py
Python
bitbots_animation_server/src/bitbots_animation_server/animation_node.py
bit-bots/bitbots_motion
7bdf35eba88773cc71759b25fae201d2accd573d
[ "MIT" ]
3
2020-05-30T07:04:33.000Z
2021-08-07T07:41:27.000Z
bitbots_animation_server/src/bitbots_animation_server/animation_node.py
bit-bots/bitbots_motion
7bdf35eba88773cc71759b25fae201d2accd573d
[ "MIT" ]
149
2018-12-18T12:49:56.000Z
2022-01-06T10:51:32.000Z
bitbots_animation_server/src/bitbots_animation_server/animation_node.py
bit-bots/bitbots_motion
7bdf35eba88773cc71759b25fae201d2accd573d
[ "MIT" ]
4
2019-07-28T11:25:02.000Z
2021-12-06T19:04:18.000Z
#!/usr/bin/env python3 import json import time import actionlib import traceback import numpy as np import rospy from humanoid_league_msgs.msg import PlayAnimationResult, PlayAnimationFeedback from humanoid_league_msgs.msg import PlayAnimationAction as PlayAction from humanoid_league_msgs.msg import Animation as Ani...
44.985149
120
0.652801
57b97df33665a61498fde35d95241a5cc574e373
3,701
py
Python
samples/samplenetconf/cmds/show_ctrl_yangmodel.py
gaberger/pybvc
bf546c4595a1a6282fca084865c5a0e69194030f
[ "BSD-3-Clause" ]
null
null
null
samples/samplenetconf/cmds/show_ctrl_yangmodel.py
gaberger/pybvc
bf546c4595a1a6282fca084865c5a0e69194030f
[ "BSD-3-Clause" ]
1
2021-03-26T00:46:31.000Z
2021-03-26T00:46:31.000Z
samples/samplenetconf/cmds/show_ctrl_yangmodel.py
gaberger/pybvc
bf546c4595a1a6282fca084865c5a0e69194030f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """ Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, INC 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. Redistributions of source code must retain the above copyright notice,...
32.182609
82
0.673872
d3d82815a654bd2783a8710cd4e3980324a894be
7,829
py
Python
cmoon/src/detect.py
Cmoon-cyl/ros-module
f026bbdde1193fd96eb9c50e1602ca4a9de90310
[ "MIT" ]
3
2021-08-28T18:40:33.000Z
2021-12-13T02:19:47.000Z
cmoon/src/detect.py
Cmoon-cyl/ros-module
f026bbdde1193fd96eb9c50e1602ca4a9de90310
[ "MIT" ]
null
null
null
cmoon/src/detect.py
Cmoon-cyl/ros-module
f026bbdde1193fd96eb9c50e1602ca4a9de90310
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import sys sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages') import argparse import os import shutil import time from pathlib import Path import cv2 import torch import torch.backends.cudnn as cudnn from numpy import random from models.experimental import attempt_load from util...
43.73743
119
0.588325
06ae9a95a9f1648df551ab990f2b314f5f65ed91
1,332
py
Python
nonebot/default_config.py
Hieuzest/nonebot
7418c4ac174d3b4fa7078a528bff3283d6999ec5
[ "MIT" ]
1
2021-01-21T09:46:32.000Z
2021-01-21T09:46:32.000Z
nonebot/default_config.py
BillYang2016/nonebot
515b7dbf44ffa8326c9ae9948e4c261d89f699a0
[ "MIT" ]
null
null
null
nonebot/default_config.py
BillYang2016/nonebot
515b7dbf44ffa8326c9ae9948e4c261d89f699a0
[ "MIT" ]
1
2021-08-03T08:50:06.000Z
2021-08-03T08:50:06.000Z
""" Default configurations. Any derived configurations must import everything from this module at the very beginning of their code, and then set their own value to override the default one. For example: >>> from nonebot.default_config import * >>> PORT = 9090 >>> DEBUG = False >>> SUPERUSERS.add(123456) >>> NICKNAME...
27.183673
78
0.742492
f50436a5e84190fada4c96ee939bb0f6f56ef0c4
100
py
Python
venv/lib/python2.7/UserDict.py
IdeasBlockLT/emem
a3f6e1950e9a074fbb696728778b22d6f523c3df
[ "MIT" ]
null
null
null
venv/lib/python2.7/UserDict.py
IdeasBlockLT/emem
a3f6e1950e9a074fbb696728778b22d6f523c3df
[ "MIT" ]
9
2019-12-04T23:15:54.000Z
2022-02-10T11:05:43.000Z
venv/lib/python2.7/UserDict.py
edbolivar/perfectpair
c165cff40353c602fe0dc418375b90e9b25de674
[ "MIT" ]
null
null
null
/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py
100
100
0.81
187a148176437703af871944bf5e1b79df3d7f9c
21,771
py
Python
qlib/model/trainer.py
LogCreative/qlib
da48f42f3f35bbbbe9c00c23831a80409a4a13ab
[ "MIT" ]
2
2021-06-12T20:48:26.000Z
2021-06-25T02:26:09.000Z
qlib/model/trainer.py
LogCreative/qlib
da48f42f3f35bbbbe9c00c23831a80409a4a13ab
[ "MIT" ]
1
2022-03-10T03:57:50.000Z
2022-03-10T03:57:50.000Z
qlib/model/trainer.py
LogCreative/qlib
da48f42f3f35bbbbe9c00c23831a80409a4a13ab
[ "MIT" ]
1
2022-02-22T03:09:56.000Z
2022-02-22T03:09:56.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ The Trainer will train a list of tasks and return a list of model recorders. There are two steps in each Trainer including ``train``(make model recorder) and ``end_train``(modify model recorder). This is a concept called ``DelayTrainer``, wh...
37.02551
221
0.636167
e42d2a07a18171eec8c9a065e0e645a99d95aa7b
719
py
Python
osisoft/pidevclub/piwebapi/web_id/web_id_string_type.py
inselbuch/pwap2
4ded0a62b241d9354f39ce87f3411fe9708317e3
[ "Apache-2.0" ]
3
2019-05-16T15:44:09.000Z
2020-11-25T22:28:31.000Z
osisoft/pidevclub/piwebapi/web_id/web_id_string_type.py
inselbuch/pwap2
4ded0a62b241d9354f39ce87f3411fe9708317e3
[ "Apache-2.0" ]
null
null
null
osisoft/pidevclub/piwebapi/web_id/web_id_string_type.py
inselbuch/pwap2
4ded0a62b241d9354f39ce87f3411fe9708317e3
[ "Apache-2.0" ]
8
2019-03-15T10:20:57.000Z
2021-05-20T13:06:37.000Z
# coding: utf-8 """ Copyright 2018 OSIsoft, 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 ...
27.653846
74
0.721836
9fc4e4101b694e8f833d7d36f5f7268f75b9ff81
3,819
py
Python
lib/var_stack.py
hyche/openbmc-test-automation
1e656463b8db4fc55dc1a2bf7650d1bca845f958
[ "Apache-2.0" ]
null
null
null
lib/var_stack.py
hyche/openbmc-test-automation
1e656463b8db4fc55dc1a2bf7650d1bca845f958
[ "Apache-2.0" ]
null
null
null
lib/var_stack.py
hyche/openbmc-test-automation
1e656463b8db4fc55dc1a2bf7650d1bca845f958
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python r""" Define the var_stack class. """ import sys import collections try: from robot.utils import DotDict except ImportError: pass import gen_print as gp class var_stack: r""" Define the variable stack class. An object of this class can be used to push variable name/varia...
26.520833
78
0.547264
a1681cf073ec401205eb9645b9ce165c01168aff
1,893
py
Python
utils/writer.py
tony-rsa/Few-shot-Font-Generation-with-Localized-Style-Representations-and-Factorization-AAAI-2021-
33322e72fb5054ab5348f12d986059263a05d5ce
[ "MIT" ]
98
2020-09-24T01:05:19.000Z
2022-03-04T16:13:42.000Z
utils/writer.py
tony-rsa/Few-shot-Font-Generation-with-Localized-Style-Representations-and-Factorization-AAAI-2021-
33322e72fb5054ab5348f12d986059263a05d5ce
[ "MIT" ]
26
2020-09-24T07:36:37.000Z
2022-02-08T12:36:49.000Z
utils/writer.py
tony-rsa/Few-shot-Font-Generation-with-Localized-Style-Representations-and-Factorization-AAAI-2021-
33322e72fb5054ab5348f12d986059263a05d5ce
[ "MIT" ]
20
2020-09-24T02:29:42.000Z
2022-01-23T15:35:28.000Z
""" LF-Font Copyright (c) 2020-present NAVER Corp. MIT license """ from pathlib import Path import torch.nn.functional as F from . import save_tensor_to_image class Writer: def add_scalars(self, tag_scalar_dic, global_step): raise NotImplementedError() def add_image(self, tag, img_tensor, global_step...
31.55
82
0.683043
3406049335d99d644917125e8b716c8c4bbe412b
4,174
py
Python
tic-tac-toe.py
RuTh-git/Tic-tac-toe-project
8a7f7720b91ca7f519c5fd66925ef154aa938142
[ "MIT" ]
null
null
null
tic-tac-toe.py
RuTh-git/Tic-tac-toe-project
8a7f7720b91ca7f519c5fd66925ef154aa938142
[ "MIT" ]
null
null
null
tic-tac-toe.py
RuTh-git/Tic-tac-toe-project
8a7f7720b91ca7f519c5fd66925ef154aa938142
[ "MIT" ]
null
null
null
# -------Global Variables--------- # Game board board =["-","-","-", "-","-","-", "-","-","-",] # If game is still going game_still_going = True # Who won? Or tie? winner = None # Whos turn is it current_player = "X" # Display board def display_board(): print("\n") print(board[0] + " | " + boa...
20.766169
74
0.626977
7c1c9db0b17eae1fd6b696637fe2e3e7cb6f427f
6,234
py
Python
ongeza/main.py
reubano/bump
0473bc49cd3b58dd1f4b87ac63ea5184c99bd9d5
[ "MIT" ]
40
2015-12-31T17:00:01.000Z
2020-06-05T20:59:27.000Z
ongeza/main.py
reubano/bump
0473bc49cd3b58dd1f4b87ac63ea5184c99bd9d5
[ "MIT" ]
7
2016-01-12T13:51:59.000Z
2018-06-10T16:18:30.000Z
ongeza/main.py
reubano/bump
0473bc49cd3b58dd1f4b87ac63ea5184c99bd9d5
[ "MIT" ]
5
2016-02-05T01:45:01.000Z
2020-06-24T08:57:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: sw=4:ts=4:expandtab """ An automated way to follow the Semantic Versioning Specification """ from __future__ import ( absolute_import, division, print_function, with_statement, unicode_literals) import ongeza from sys import exit from os import getcwd, pa...
31.806122
78
0.659769
5abbf8e6ff8847971330035478442d874011f79f
1,410
py
Python
Medium/994. Rotting Oranges/solution (1).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
3
2020-05-09T12:55:09.000Z
2022-03-11T18:56:05.000Z
Medium/994. Rotting Oranges/solution (1).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
null
null
null
Medium/994. Rotting Oranges/solution (1).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
1
2022-03-11T18:56:16.000Z
2022-03-11T18:56:16.000Z
# 994. Rotting Oranges # Runtime: 56 ms, faster than 50.05% of Python3 online submissions for Rotting Oranges. # Memory Usage: 14.1 MB, less than 88.54% of Python3 online submissions for Rotting Oranges. from collections import deque class Solution: def orangesRotting(self, grid: list[list[int]]) -> int: ...
34.390244
108
0.473759
0b4d7dbdc379bdbacda4112d2aa6969ec796308e
1,837
py
Python
news/models.py
Avneet5/news_agg
20fd1715002209d6411ec1e05c05fc1ed4005afe
[ "MIT" ]
null
null
null
news/models.py
Avneet5/news_agg
20fd1715002209d6411ec1e05c05fc1ed4005afe
[ "MIT" ]
null
null
null
news/models.py
Avneet5/news_agg
20fd1715002209d6411ec1e05c05fc1ed4005afe
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User import datetime from users.models import Author class Topic(models.Model): name = models.CharField(max_length=100, unique=True) def __repr__(self): return self.name def __str__(self): ...
29.629032
70
0.732172
a5640507ff92353768feef4a4a298dac106f9f26
22,231
py
Python
test/functional/wallet_multiwallet.py
blinkhash/blinkhash-core
e05662019c2fa4cb2dc3736f38e48492712c23b1
[ "MIT" ]
3
2021-07-27T16:59:47.000Z
2021-12-31T20:55:46.000Z
test/functional/wallet_multiwallet.py
blinkhash/blinkhash-core
e05662019c2fa4cb2dc3736f38e48492712c23b1
[ "MIT" ]
null
null
null
test/functional/wallet_multiwallet.py
blinkhash/blinkhash-core
e05662019c2fa4cb2dc3736f38e48492712c23b1
[ "MIT" ]
1
2021-12-31T12:58:23.000Z
2021-12-31T12:58:23.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2021 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 multiwallet. Verify that a blinkhashd node can load multiple wallet files """ from decimal import...
51.820513
273
0.67154
abcf8eea5dd499f3501146abc9e504d059970d18
90,337
py
Python
myenv/lib/python3.7/site-packages/google/protobuf/unittest_custom_options_pb2.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
4,768
2015-01-08T04:45:33.000Z
2022-03-28T07:32:59.000Z
myenv/lib/python3.7/site-packages/google/protobuf/unittest_custom_options_pb2.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
2,599
2015-01-06T21:51:28.000Z
2022-03-30T12:40:09.000Z
venv/Lib/site-packages/google/protobuf/unittest_custom_options_pb2.py
Ammar-Raneez/Craigslist_Scraper
4d8ef7d65f6cb4bbc7a461828ab02ec9e3006f71
[ "MIT" ]
878
2015-01-10T00:03:30.000Z
2022-03-31T22:54:15.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/protobuf/unittest_custom_options.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf im...
47.59589
11,592
0.801012
cb2e0f0ccf935d5273651b23d7facc7c376e6711
3,347
py
Python
dist.py
kwadrat/s_dist
a0c8e6a0420bcc5f15fbbdf4ccbea9d9afd97902
[ "MIT" ]
null
null
null
dist.py
kwadrat/s_dist
a0c8e6a0420bcc5f15fbbdf4ccbea9d9afd97902
[ "MIT" ]
null
null
null
dist.py
kwadrat/s_dist
a0c8e6a0420bcc5f15fbbdf4ccbea9d9afd97902
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import sys import unittest def thresh(value): return (6 * (value + 100) / 50) class Box: def __init__(self): ''' Box: ''' self.ls = [] def add(self, value, tm=None): ''' Box: Dodaj kolejną wartość do...
22.165563
60
0.45115
834518c45369bd86c1419ef0546e1a751f74c5ec
6,868
py
Python
test/integration/ggrc/integrations/test_asmt_sync_job.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/integrations/test_asmt_sync_job.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/integrations/test_asmt_sync_job.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Integration test for Assessment object sync cron job.""" from datetime import datetime import ddt import mock from ggrc import settings from ggrc.models import all_models from ggrc.integrations.synchron...
38.155556
79
0.703698
078476690ad123517df847f294bf38e86d99b3a3
3,009
py
Python
modules/lex_bot_importer.py
adamhamden/lex-bot
3c21b8d60607950c707b97ff5ba8491d40e31592
[ "MIT" ]
null
null
null
modules/lex_bot_importer.py
adamhamden/lex-bot
3c21b8d60607950c707b97ff5ba8491d40e31592
[ "MIT" ]
null
null
null
modules/lex_bot_importer.py
adamhamden/lex-bot
3c21b8d60607950c707b97ff5ba8491d40e31592
[ "MIT" ]
null
null
null
import boto3 import pprint import json import os class LexBotImporter: def __init__(self): self.client = boto3.client('lex-models') def import_bot(self, bot_file=None, file_path=None): bot_data = self._parse_bot_file(bot_file, file_path) self._construct_bot(bot_data) @staticm...
27.605505
90
0.600199
09d98d61117490010bd9092f0a3d521efac6767e
793
py
Python
gen_locale.py
iida-hayato/factorio-not-included
4350c02bd301646245733a5cb37bb446f24950b9
[ "MIT" ]
3
2021-02-06T01:58:24.000Z
2021-12-23T03:51:44.000Z
gen_locale.py
iida-hayato/factorio-not-included
4350c02bd301646245733a5cb37bb446f24950b9
[ "MIT" ]
null
null
null
gen_locale.py
iida-hayato/factorio-not-included
4350c02bd301646245733a5cb37bb446f24950b9
[ "MIT" ]
null
null
null
import re def gen_with(type,path=''): if path == '': path = f'prototypes/{type}.lua' gen_from_file(type, path) def gen_from_file(type, path): with open(path) as f: lineList = f.readlines() for line in lineList: target = r'^ *name = ' if re.search(target, lin...
25.580645
60
0.596469
1716751a27d8f123957b12b8474c789ae4568729
115
py
Python
module1-web-application-development-with-flask/APP/__init__.py
lucguittard/DS-Unit-3-Sprint-3-Productization-and-Cloud
79c2c8ec02a673b135da1d012747fee82d50ce35
[ "MIT" ]
1
2020-05-28T21:56:57.000Z
2020-05-28T21:56:57.000Z
module1-web-application-development-with-flask/APP/__init__.py
lucguittard/DS-Unit-3-Sprint-3-Productization-and-Cloud
79c2c8ec02a673b135da1d012747fee82d50ce35
[ "MIT" ]
4
2021-06-02T00:41:19.000Z
2022-03-12T00:07:13.000Z
module1-web-application-development-with-flask/APP/__init__.py
lucguittard/DS-Unit-3-Sprint-3-Productization-and-Cloud
79c2c8ec02a673b135da1d012747fee82d50ce35
[ "MIT" ]
null
null
null
"""Entry point for twitoff flask app""" from .app import create_app APP = create_app #no relation to folder name
23
45
0.747826
612d37597f0f5c95f38a16dade99500c6223ed3d
2,689
py
Python
test/_utils/_common_utils_for_test.py
Nayef211/data
66b7ac07f75c45f1cc6aed71423fdb5d29a9648f
[ "BSD-3-Clause" ]
null
null
null
test/_utils/_common_utils_for_test.py
Nayef211/data
66b7ac07f75c45f1cc6aed71423fdb5d29a9648f
[ "BSD-3-Clause" ]
null
null
null
test/_utils/_common_utils_for_test.py
Nayef211/data
66b7ac07f75c45f1cc6aed71423fdb5d29a9648f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import os import tempfile from torch.utils.data import IterDataPipe from typing import Any, List, Tuple, TypeVar T_co = TypeVar("T_co", covariant=True) class IDP_NoLen(IterDataPipe): def __init__(self, input_dp): super().__init__() self.input_...
37.347222
107
0.708814
7c9ddf2c7258d54413713fd8792353fb1ae0f5d4
9,562
py
Python
heat/tests/test_sahara_cluster.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/tests/test_sahara_cluster.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/tests/test_sahara_cluster.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
42.123348
79
0.673395
8325bf8dc69d83238be966171dcdbe3035fdca9c
37,395
py
Python
tensorflow/targetDirectory/lib/python3.7/site-packages/tensorflow/python/ops/gen_state_ops.py
amyhxqin/heartbit
ebb67349e90654e275760d081b80b343bd2f45eb
[ "MIT" ]
null
null
null
tensorflow/targetDirectory/lib/python3.7/site-packages/tensorflow/python/ops/gen_state_ops.py
amyhxqin/heartbit
ebb67349e90654e275760d081b80b343bd2f45eb
[ "MIT" ]
null
null
null
tensorflow/targetDirectory/lib/python3.7/site-packages/tensorflow/python/ops/gen_state_ops.py
amyhxqin/heartbit
ebb67349e90654e275760d081b80b343bd2f45eb
[ "MIT" ]
null
null
null
"""Python wrappers around Brain. This file is MACHINE GENERATED! Do not edit. """ import collections from google.protobuf import text_format from tensorflow.core.framework import op_def_pb2 # Needed to trigger the call to _set_call_cpp_shape_fn. from tensorflow.python.framework import common_shapes from tensorflo...
26.844939
204
0.621955
450e327d6bbd23bfdb940bfaa4a7447da4eca54b
4,840
py
Python
monai/data/png_saver.py
RobinCamarasa/MONAI
8207e1e2a3555ddc3fe938e058552651900dc951
[ "Apache-2.0" ]
null
null
null
monai/data/png_saver.py
RobinCamarasa/MONAI
8207e1e2a3555ddc3fe938e058552651900dc951
[ "Apache-2.0" ]
null
null
null
monai/data/png_saver.py
RobinCamarasa/MONAI
8207e1e2a3555ddc3fe938e058552651900dc951
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
40.672269
113
0.633058
0cbaf33ea7ad3e657b9515399301c39989a2f22a
82,616
py
Python
test/sql/test_selectable.py
gujun4990/sqlalchemy
057bae2295feb86529a04f09cd2f3d4c2c6d88a8
[ "MIT" ]
1
2018-04-02T18:41:52.000Z
2018-04-02T18:41:52.000Z
test/sql/test_selectable.py
gujun4990/sqlalchemy
057bae2295feb86529a04f09cd2f3d4c2c6d88a8
[ "MIT" ]
null
null
null
test/sql/test_selectable.py
gujun4990/sqlalchemy
057bae2295feb86529a04f09cd2f3d4c2c6d88a8
[ "MIT" ]
3
2017-09-26T13:59:24.000Z
2020-12-04T17:51:54.000Z
"""Test various algorithmic properties of selectables.""" from sqlalchemy.testing import eq_, assert_raises, \ assert_raises_message, is_ from sqlalchemy import * from sqlalchemy.testing import fixtures, AssertsCompiledSQL, \ AssertsExecutionResults from sqlalchemy.sql import elements from sqlalchemy import te...
34.683459
79
0.545439
edd4b889aaca2071b7d1eff6a77d3d199ebb8ec3
4,925
py
Python
install/core/python/tank_vendor/shotgun_api3/lib/mockgun/schema.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/core/python/tank_vendor/shotgun_api3/lib/mockgun/schema.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/core/python/tank_vendor/shotgun_api3/lib/mockgun/schema.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
""" ----------------------------------------------------------------------------- Copyright (c) 2009-2017, Shotgun Software Inc Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must ret...
39.4
96
0.690355
83b67e5c4e02f696592fff9ac77e90d9986bdd00
271
py
Python
Python3/server.py
MatYoshr/Alibaba-FC-CustomRuntime-Sample
06c12d3547d660fa65b9966e2d8f42a3d7367932
[ "MIT" ]
null
null
null
Python3/server.py
MatYoshr/Alibaba-FC-CustomRuntime-Sample
06c12d3547d660fa65b9966e2d8f42a3d7367932
[ "MIT" ]
null
null
null
Python3/server.py
MatYoshr/Alibaba-FC-CustomRuntime-Sample
06c12d3547d660fa65b9966e2d8f42a3d7367932
[ "MIT" ]
null
null
null
from flask import Flask import os import sys app = Flask(__name__) @app.route('/invoke', methods=['GET','POST']) def hello_world(): return sys.version if __name__ == '__main__': app.run(debug=True, host='0.0.0.0', port=os.environ.get("FC_SERVER_PORT", "9000"))
22.583333
86
0.686347
c2f769e79df9d4280287b3a4c70aec83088110a2
399
py
Python
backend/ownly_29896/wsgi.py
crowdbotics-apps/ownly-29896
31f5f8da6607479c7931f69cdd7e3e29a6858719
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/ownly_29896/wsgi.py
crowdbotics-apps/ownly-29896
31f5f8da6607479c7931f69cdd7e3e29a6858719
[ "FTL", "AML", "RSA-MD" ]
18
2021-08-29T18:20:38.000Z
2022-01-09T17:44:40.000Z
backend/ownly_29896/wsgi.py
crowdbotics-apps/ownly-29896
31f5f8da6607479c7931f69cdd7e3e29a6858719
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for ownly_29896 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
1742d00e98016b7987bab1bdb32140ee303406f3
1,632
py
Python
socket/port_killer.py
robotx-school/eurobot-2022
c5a6bfba92191fe0643e1691175fd0facf9fbf99
[ "MIT" ]
1
2022-03-23T12:03:16.000Z
2022-03-23T12:03:16.000Z
socket/port_killer.py
robotx-school/eurobot-2022
c5a6bfba92191fe0643e1691175fd0facf9fbf99
[ "MIT" ]
null
null
null
socket/port_killer.py
robotx-school/eurobot-2022
c5a6bfba92191fe0643e1691175fd0facf9fbf99
[ "MIT" ]
null
null
null
import os import subprocess import sys def KillPort(port): try: port = int(port) cmd = 'lsof -t -i:{0}'.format(port) pid = None try: pid = subprocess.check_output(cmd, shell=True) except Exception as e: print("No process running on port {} by current ...
36.266667
121
0.553309
8c51da32a0619b8f4256c36fa1da731423738730
6,317
py
Python
utils/contour.py
euCanSHare/dicom2nitfi
1d036b4d197b63430a97f7ace19d00a771a599a3
[ "MIT" ]
null
null
null
utils/contour.py
euCanSHare/dicom2nitfi
1d036b4d197b63430a97f7ace19d00a771a599a3
[ "MIT" ]
null
null
null
utils/contour.py
euCanSHare/dicom2nitfi
1d036b4d197b63430a97f7ace19d00a771a599a3
[ "MIT" ]
null
null
null
import os import cv2 import glob import pickle import numpy as np from utils.parse_cvi42 import parse as parse_cvi def parseContours(patient_dir, new_dir): """ Find and parse contours from cvi42 files. Returns true if files were found and false otherwise. """ # Obtain cvi42wsx or cvi42ws file ...
44.485915
109
0.602343
92b97812e5d9a15a7d41e70452c013e92056a3d0
7,082
py
Python
p3/views/profile.py
malemburg/epcon
1edec493ac1258950dcabdc9f9ee8b97c24f96c5
[ "BSD-2-Clause" ]
null
null
null
p3/views/profile.py
malemburg/epcon
1edec493ac1258950dcabdc9f9ee8b97c24f96c5
[ "BSD-2-Clause" ]
null
null
null
p3/views/profile.py
malemburg/epcon
1edec493ac1258950dcabdc9f9ee8b97c24f96c5
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- import os.path import logging from assopy import models as amodels from assopy.views import render_to_json from conference import models as cmodels from conference.views import profile_access, json_dumps from django import http from django import forms from django.contrib.auth.decorators import ...
36.694301
107
0.641768
bd2162e1db4a0f5c9bc1322145d5cf37e9f20061
474
py
Python
lab03/tests/q5_4.py
ucsb-ds/ds1-f20-content
25f62c7a597b98da436ca39631761c1f3feccfdd
[ "MIT" ]
2
2020-10-14T12:43:18.000Z
2021-01-06T18:06:16.000Z
lab03/tests/q5_4.py
ucsb-int5/int5-f19-notebooks
5b3d1ee6964d9357f211f4706787403ec5a3079c
[ "MIT" ]
3
2019-12-14T06:20:14.000Z
2019-12-14T07:12:33.000Z
lab03/tests/q5_4.py
ucsb-int5/int5-f19-notebooks
5b3d1ee6964d9357f211f4706787403ec5a3079c
[ "MIT" ]
3
2019-10-02T18:36:06.000Z
2019-12-03T18:16:45.000Z
test = { 'name': '', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> abs(average_20th_century_rating - 8.2783625730994146) < 1e-5 True >>> abs(average_21st_century_rating - 8.2379746835443033) < 1e-5 True """, 'hidden...
18.96
74
0.411392
754615df952793c6737430ba77e8fb0443cd059f
5,276
py
Python
venv/Lib/site-packages/Token/generated/provider/models/proxy_create_payment_request.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
null
null
null
venv/Lib/site-packages/Token/generated/provider/models/proxy_create_payment_request.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
5
2020-06-06T00:40:42.000Z
2021-06-10T22:36:12.000Z
venv/Lib/site-packages/Token/generated/provider/models/proxy_create_payment_request.py
The-Fragment/FragmentFembot
bca0027b423753eb162590e8fd440a2c1e65d133
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
26.918367
86
0.582449
5d7e96b177e4541bf6724ee500a084cc1811ebd9
1,768
py
Python
brownian/wiener.py
rmorshea/quantfi
bb29364fe19c20ab2fe77263c474b147c795a058
[ "MIT" ]
null
null
null
brownian/wiener.py
rmorshea/quantfi
bb29364fe19c20ab2fe77263c474b147c795a058
[ "MIT" ]
null
null
null
brownian/wiener.py
rmorshea/quantfi
bb29364fe19c20ab2fe77263c474b147c795a058
[ "MIT" ]
null
null
null
import numpy as np from math import erfc from random import random from random import gauss def w_series(n, dt, t_init=0, w_init=0.0): """Returns one realization of a Wiener process with n steps of length dt. The time and Wiener series can be initialized using t_init and w_init respectively. """ n+=1 ...
33.358491
87
0.582579
d033b45df446d22c451833757c02cdcecc49c230
399
py
Python
lab_manager/wsgi.py
edilson/lab_manager
e0885d0b132b4e2e45b52510758a532128aa29ea
[ "MIT" ]
null
null
null
lab_manager/wsgi.py
edilson/lab_manager
e0885d0b132b4e2e45b52510758a532128aa29ea
[ "MIT" ]
5
2021-03-19T03:19:12.000Z
2021-06-10T19:21:38.000Z
lab_manager/wsgi.py
edilson/lab_manager
e0885d0b132b4e2e45b52510758a532128aa29ea
[ "MIT" ]
null
null
null
""" WSGI config for lab_manager project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
ac434f8aa69e24c120e0acf556b1efa746bc3c33
2,583
py
Python
sdk/edgegateway/azure-mgmt-edgegateway/setup.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/edgegateway/azure-mgmt-edgegateway/setup.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
null
null
null
sdk/edgegateway/azure-mgmt-edgegateway/setup.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
34.44
91
0.604336
e19cd40437838d24a1995a39a5891650832aae3a
1,051
py
Python
benchmark.py
alessiamarcolini/speech-to-text-benchmark
16962ee2391fc2725ae1fcfe91c197753d192ac8
[ "Apache-2.0" ]
null
null
null
benchmark.py
alessiamarcolini/speech-to-text-benchmark
16962ee2391fc2725ae1fcfe91c197753d192ac8
[ "Apache-2.0" ]
null
null
null
benchmark.py
alessiamarcolini/speech-to-text-benchmark
16962ee2391fc2725ae1fcfe91c197753d192ac8
[ "Apache-2.0" ]
null
null
null
import argparse import editdistance from dataset import * from engine import * from tqdm import tqdm if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--engine_type", type=str, required=True) args = parser.parse_args() dataset = Dataset.create("SpeechAccentArchive") ...
28.405405
85
0.663178
297eb3946d007c19017a09d690ddaeac3caebcec
4,154
py
Python
nicos/devices/notifiers/mattermost.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos/devices/notifiers/mattermost.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos/devices/notifiers/mattermost.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
41.128713
79
0.617236
a296f896f7f89db76b01f3b1738038ff9447eef0
25,797
py
Python
test/functional/p2p_sendheaders.py
ORO-mlm/ORO-Core
770e4728e1b67023f2f52da2850e058732e7583f
[ "MIT" ]
null
null
null
test/functional/p2p_sendheaders.py
ORO-mlm/ORO-Core
770e4728e1b67023f2f52da2850e058732e7583f
[ "MIT" ]
null
null
null
test/functional/p2p_sendheaders.py
ORO-mlm/ORO-Core
770e4728e1b67023f2f52da2850e058732e7583f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-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. from test_framework.mininode import * from test_framework.test_framework import OroTestFramework from tes...
42.429276
116
0.634066
f4d4ef0efcf86ddc89e38ea493a020e6d1dc4d7d
7,195
py
Python
airflow/jobs/local_task_job.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
7
2018-11-19T12:05:13.000Z
2020-01-17T08:30:38.000Z
airflow/jobs/local_task_job.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
14
2019-11-22T09:24:20.000Z
2021-07-09T06:06:59.000Z
airflow/jobs/local_task_job.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-05-01T21:54:37.000Z
2021-05-01T21:54:37.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 under the Apache License, Version 2.0 (the # "License"); you may not...
39.972222
109
0.622794
931779bb5bed9a51d76b040868ae4716fa6a109b
1,318
py
Python
huxley/api/mixins.py
srisainachuri/huxley
7166a1423e49b506d6d5f142c748eac4e5d2314c
[ "BSD-3-Clause" ]
18
2015-07-12T00:55:51.000Z
2021-12-13T15:41:06.000Z
huxley/api/mixins.py
srisainachuri/huxley
7166a1423e49b506d6d5f142c748eac4e5d2314c
[ "BSD-3-Clause" ]
288
2015-01-13T23:05:09.000Z
2022-03-25T17:35:36.000Z
huxley/api/mixins.py
srisainachuri/huxley
7166a1423e49b506d6d5f142c748eac4e5d2314c
[ "BSD-3-Clause" ]
47
2015-05-12T15:39:57.000Z
2022-03-30T09:12:48.000Z
# Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved. # Use of this source code is governed by a BSD License (see LICENSE). import json from django.db import transaction from rest_framework import status from rest_framework.response import Response from huxley.core.models import Delegate cl...
32.95
77
0.650228
3645da2ad5b34e11dbc50baba8b592b1fe09ecdd
6,770
py
Python
test/test_oneview_id_pools_ipv4_range_facts.py
LaudateCorpus1/oneview-ansible
a1befcab3ff8d23ab7f85844eeba0d2f2c6a21e2
[ "Apache-2.0" ]
108
2016-06-28T18:14:08.000Z
2022-02-21T09:16:06.000Z
test/test_oneview_id_pools_ipv4_range_facts.py
HPE-Japan-Presales/oneview-ansible
26eb13354333d862d9e80f07e3fe9bbe2eb59af3
[ "Apache-2.0" ]
248
2016-07-14T12:50:17.000Z
2022-02-06T18:57:16.000Z
test/test_oneview_id_pools_ipv4_range_facts.py
HPE-Japan-Presales/oneview-ansible
26eb13354333d862d9e80f07e3fe9bbe2eb59af3
[ "Apache-2.0" ]
88
2016-06-29T15:52:44.000Z
2022-03-10T12:34:41.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ### # Copyright (2016-2021) Hewlett Packard Enterprise Development LP # # 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/licen...
32.705314
91
0.706499
b5115e230109299bbe27f9d7c8e09b58d707310d
5,204
py
Python
stable_baselines/her/utils.py
johannes-dornheim/stable-baselines
b38b6d47daa119118104c63568edc4b255a0282e
[ "MIT" ]
null
null
null
stable_baselines/her/utils.py
johannes-dornheim/stable-baselines
b38b6d47daa119118104c63568edc4b255a0282e
[ "MIT" ]
null
null
null
stable_baselines/her/utils.py
johannes-dornheim/stable-baselines
b38b6d47daa119118104c63568edc4b255a0282e
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np from gym import spaces # Important: gym mixes up ordered and unordered keys # and the Dict space may return a different order of keys that the actual one KEY_ORDER = ['observation', 'achieved_goal', 'desired_goal'] class HERGoalEnvWrapper(object): """ A...
41.967742
147
0.610492
985c98390f7334a400ae670f14277845167e0aa9
178
py
Python
libs/__init__.py
SeanLee97/word2vec-test
68053556c7016cecc5e97dd25c28dd452b77f2e4
[ "MIT" ]
1
2019-01-20T08:39:25.000Z
2019-01-20T08:39:25.000Z
libs/__init__.py
SeanLee97/word2vec-test
68053556c7016cecc5e97dd25c28dd452b77f2e4
[ "MIT" ]
null
null
null
libs/__init__.py
SeanLee97/word2vec-test
68053556c7016cecc5e97dd25c28dd452b77f2e4
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- from .gensim_word_vector import GensimWordVector from .word_vector import WordVector __all__ = ('GensimWordVecotr', 'WordVector')
25.428571
48
0.747191
cb3d8abf07cc204799323aaec16d40aa299b15c6
5,584
py
Python
pydefect/core/tests/test_supercell_calc_results.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
1
2021-06-07T03:05:39.000Z
2021-06-07T03:05:39.000Z
pydefect/core/tests/test_supercell_calc_results.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
null
null
null
pydefect/core/tests/test_supercell_calc_results.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from copy import deepcopy import tempfile import numpy as np from pydefect.core.defect_entry import DefectEntry from pydefect.core.supercell_calc_results import ( ProcarDefectProperty, SupercellCalcResults) from pymatgen.io.vasp.outputs import Vasprun, Procar from pymatgen.electronic_struc...
45.032258
79
0.540294
036ce55119476fbe6301c7d070519569bdbad4a1
8,208
py
Python
pyartcd/pyartcd/pipelines/check_bugs.py
DennisPeriquet/aos-cd-jobs
d864953fd70b0828f74e0fe2a602a60ac6820ccb
[ "Apache-2.0" ]
null
null
null
pyartcd/pyartcd/pipelines/check_bugs.py
DennisPeriquet/aos-cd-jobs
d864953fd70b0828f74e0fe2a602a60ac6820ccb
[ "Apache-2.0" ]
null
null
null
pyartcd/pyartcd/pipelines/check_bugs.py
DennisPeriquet/aos-cd-jobs
d864953fd70b0828f74e0fe2a602a60ac6820ccb
[ "Apache-2.0" ]
null
null
null
import asyncio import subprocess import concurrent import click import aiohttp from pyartcd.cli import cli, click_coroutine, pass_runtime from pyartcd.runtime import Runtime BASE_URL = 'https://api.openshift.com/api/upgrades_info/v1/graph?arch=amd64&channel=fast' ELLIOTT_BIN = 'elliott' async def is_ga(version: st...
35.532468
108
0.601486
aecb3b2ae1460d8b77898e47bda5f36545a19365
3,181
py
Python
master/admin_migrations/0001_initial.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
1
2018-08-02T04:00:44.000Z
2018-08-02T04:00:44.000Z
master/admin_migrations/0001_initial.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
null
null
null
master/admin_migrations/0001_initial.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-03-05 06:41 from __future__ import unicode_literals from django.conf import settings import django.contrib.admin.models from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migrat...
48.19697
181
0.606413
24e8d560f2f515675e4ca9e01399df36c8142ba2
18,173
py
Python
src/mygrad/nnet/layers/gru.py
kw-0/MyGrad
307f1bb5f2391e7f4df49fe43a7acf9d1e8ea141
[ "MIT" ]
147
2018-07-14T01:37:35.000Z
2022-03-29T06:37:58.000Z
src/mygrad/nnet/layers/gru.py
kw-0/MyGrad
307f1bb5f2391e7f4df49fe43a7acf9d1e8ea141
[ "MIT" ]
223
2018-05-31T14:13:18.000Z
2022-02-27T18:53:49.000Z
src/mygrad/nnet/layers/gru.py
kw-0/MyGrad
307f1bb5f2391e7f4df49fe43a7acf9d1e8ea141
[ "MIT" ]
27
2018-06-17T14:42:05.000Z
2021-10-31T00:21:09.000Z
import weakref from numbers import Integral import numpy as np from mygrad._utils import SkipGradient from mygrad.operation_base import Operation from mygrad.tensor_base import Tensor try: from numba import njit, vectorize except ImportError: # pragma: no cover raise ImportError( "The package `numba...
31.715532
104
0.504595
488d142b11275fb4350573ecbb2695961f425671
2,690
py
Python
latextools/shortcuts.py
cduck/latextools
8161acc88d669951b2b5e1e3e6888b9fc918b49a
[ "MIT" ]
13
2020-06-02T22:57:13.000Z
2022-03-26T23:07:27.000Z
latextools/shortcuts.py
cduck/latextools
8161acc88d669951b2b5e1e3e6888b9fc918b49a
[ "MIT" ]
3
2021-06-03T14:38:17.000Z
2022-02-28T23:05:48.000Z
latextools/shortcuts.py
cduck/latextools
8161acc88d669951b2b5e1e3e6888b9fc918b49a
[ "MIT" ]
2
2020-08-19T05:44:23.000Z
2021-06-03T01:56:48.000Z
from .project import LatexProject from .content import BasicContent from .document import DocumentConfig, STANDALONE_CONFIG from .common_preamble import pkg def render_snippet(content=r'$Z\cdot Y=X$', *packages, commands=(), lpad=0, rpad=0, tpad=0, bpad=0, pad=None, config=STAND...
40.757576
78
0.580669
8665769f5e157ef85e4bfbc7513a2880671a301e
2,288
py
Python
lcm-types/python/vectornav_lcmt.py
FikkleG/gallopingFaster
2578980f0fbb3a2aa32054bc12cab6e156f1953f
[ "MIT" ]
null
null
null
lcm-types/python/vectornav_lcmt.py
FikkleG/gallopingFaster
2578980f0fbb3a2aa32054bc12cab6e156f1953f
[ "MIT" ]
null
null
null
lcm-types/python/vectornav_lcmt.py
FikkleG/gallopingFaster
2578980f0fbb3a2aa32054bc12cab6e156f1953f
[ "MIT" ]
null
null
null
"""LCM type definitions This file automatically generated by lcm. DO NOT MODIFY BY HAND!!!! """ try: import cStringIO.StringIO as BytesIO except ImportError: from io import BytesIO import struct class vectornav_lcmt(object): __slots__ = ["q", "w", "a"] __typenames__ = ["float", "float", "float"] ...
32.225352
106
0.63549
205a14f14d01200e512f8ca3e91d3ac4554cf899
6,698
py
Python
codes/gpt_query/Data/SubData_test.py
biswesh456/Simulated-Dialog-Generation
b1f12e09c3e0be274f03e66eb08402e0f681f97a
[ "Apache-2.0" ]
6
2021-12-12T00:11:25.000Z
2022-03-02T23:23:58.000Z
codes/gpt_query/Data/SubData_test.py
biswesh456/Simulated-Dialog-Generation
b1f12e09c3e0be274f03e66eb08402e0f681f97a
[ "Apache-2.0" ]
null
null
null
codes/gpt_query/Data/SubData_test.py
biswesh456/Simulated-Dialog-Generation
b1f12e09c3e0be274f03e66eb08402e0f681f97a
[ "Apache-2.0" ]
null
null
null
import pickle import json import random import torch import numpy as np import os from tokenizers import ByteLevelBPETokenizer class SubData_test(): def __init__(self, data_dir, vocab_size, bert_model_name, eot="EOT"): self.eot = eot with open(data_dir+"test.input.txt", "r") as f: ...
36.601093
108
0.513288
598caab27782b8dbd386a798d00cab6e5bad899e
1,529
py
Python
onlineShop/Library/models.py
alirezaryahi/django-onlineShop
b36c4a37ac98977862b83f646c2303ec4bb1a6ab
[ "MIT" ]
null
null
null
onlineShop/Library/models.py
alirezaryahi/django-onlineShop
b36c4a37ac98977862b83f646c2303ec4bb1a6ab
[ "MIT" ]
null
null
null
onlineShop/Library/models.py
alirezaryahi/django-onlineShop
b36c4a37ac98977862b83f646c2303ec4bb1a6ab
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Category(models.Model): title = models.CharField(max_length=200, verbose_name='عنوان') class Meta: verbose_name = 'موضوع' verbose_name_plural = 'موضوع ها' def __str__(self): return self.title class...
31.854167
95
0.676913
6202bb3207c3920803da072ff3262aa98dbdb0d5
624
py
Python
comments/migrations/0002_auto_20210531_2230.py
Stepan91/utk_api
f917afc9019711f8d8643ebea88eed84f33c449a
[ "MIT" ]
null
null
null
comments/migrations/0002_auto_20210531_2230.py
Stepan91/utk_api
f917afc9019711f8d8643ebea88eed84f33c449a
[ "MIT" ]
null
null
null
comments/migrations/0002_auto_20210531_2230.py
Stepan91/utk_api
f917afc9019711f8d8643ebea88eed84f33c449a
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-31 19:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comments', '0001_initial'), ] operations = [ migrations.AlterField( model_name='comment', name='email', ...
26
105
0.599359
0b2c6c537a9233c47ee653a0dbab586ac275bfbd
36,162
py
Python
operator/main.py
gnossen/kadalu
65af1ac86eb0d79f1589cbbfe82320800d6b357c
[ "Apache-2.0" ]
null
null
null
operator/main.py
gnossen/kadalu
65af1ac86eb0d79f1589cbbfe82320800d6b357c
[ "Apache-2.0" ]
null
null
null
operator/main.py
gnossen/kadalu
65af1ac86eb0d79f1589cbbfe82320800d6b357c
[ "Apache-2.0" ]
null
null
null
""" KaDalu Operator: Once started, deploys required CSI drivers, bootstraps the ConfigMap and waits for the CRD update to create Server pods """ import json import logging import os import re import time import uuid import urllib3 from jinja2 import Template from kadalulib import execute as lib_execute from kadalulib ...
35.108738
92
0.625187
b51bed45544a397abb8c24627599e8f655c7e754
1,989
py
Python
src/services/crud/room/api.py
b1team/trada
22ceaf4d50fe3a38ff402315c029e574773ca9e0
[ "MIT" ]
null
null
null
src/services/crud/room/api.py
b1team/trada
22ceaf4d50fe3a38ff402315c029e574773ca9e0
[ "MIT" ]
1
2021-03-12T15:16:03.000Z
2021-03-12T15:16:03.000Z
src/services/crud/room/api.py
b1team/trada
22ceaf4d50fe3a38ff402315c029e574773ca9e0
[ "MIT" ]
null
null
null
from . import logic from src.api.exceptions import room_errors, user_errors from src.services.crud.users.logic import get_user_by_id from src.services.crud.users.logic import get_user_id def create_room(room_name: str, user_id: str): if logic.get_room(room_name): raise room_errors.ExistingError(obj=f"Room...
25.5
70
0.69281
cdec89fd0bf04ac1e522b22d20cf1b5f60a13a18
1,180
py
Python
examples/httpbin/upload_test.py
qNone/HttpRunner
022b0920d235749b242ed9eee2e575bf04a56653
[ "Apache-2.0" ]
1
2021-06-21T11:17:01.000Z
2021-06-21T11:17:01.000Z
examples/httpbin/upload_test.py
qNone/HttpRunner
022b0920d235749b242ed9eee2e575bf04a56653
[ "Apache-2.0" ]
null
null
null
examples/httpbin/upload_test.py
qNone/HttpRunner
022b0920d235749b242ed9eee2e575bf04a56653
[ "Apache-2.0" ]
null
null
null
# NOTE: Generated By HttpRunner v3.1.2 # FROM: upload.yml from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase class TestCaseUpload(HttpRunner): config = Config("test upload file with httpbin").base_url("${get_httpbin_server()}") teststeps = [ Step( RunRequest("upload...
30.25641
88
0.534746
c58c97c721d9f83a5c1c1576d564800035d5b24b
1,068
py
Python
kubernetes/test/test_v1_service_port.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_service_port.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_service_port.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 <<<<<<< HEAD OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech ======= OpenAPI spec version: v1.5.3 Generated b...
23.217391
124
0.694757
c2854046229af13bd0f5223c9c0a6c6350659982
1,223
py
Python
strings/longest_substring_without_duplication.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
strings/longest_substring_without_duplication.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
strings/longest_substring_without_duplication.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
# # O(n) time | O(n) space def longestSubstringWithoutDuplication(string): currentChars = {} currentSubstring = [] longestSubstring = [] maxLongest = 0 i = 0 while i < len(string): if string[i] in currentChars: if maxLongest < len(currentSubstring): maxLongest...
32.184211
56
0.58054
5e4098ce87208a08c94609f13aba78d4b7963348
9,750
py
Python
behavior_regularized_offline_rl/brac/sac_agent.py
rmitra/google-research
ddc22300c4cb3223654c9a981f892dc0f6286e35
[ "Apache-2.0" ]
1
2020-03-05T09:34:44.000Z
2020-03-05T09:34:44.000Z
behavior_regularized_offline_rl/brac/sac_agent.py
robot-ai-machinelearning/google-research
88481d10a87947ffb9305dc7665682e008b27391
[ "Apache-2.0" ]
null
null
null
behavior_regularized_offline_rl/brac/sac_agent.py
robot-ai-machinelearning/google-research
88481d10a87947ffb9305dc7665682e008b27391
[ "Apache-2.0" ]
1
2020-03-05T09:24:01.000Z
2020-03-05T09:24:01.000Z
# coding=utf-8 # Copyright 2019 The Google Research 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 applicab...
29.36747
74
0.693436
d74af98820a660192e4f34ec99f7b86557d38f2d
152
py
Python
t14.py
mahendra1904/pythod-programs
d4d75dac65e9795ea5728f75d90aa0b39296b25e
[ "bzip2-1.0.6" ]
null
null
null
t14.py
mahendra1904/pythod-programs
d4d75dac65e9795ea5728f75d90aa0b39296b25e
[ "bzip2-1.0.6" ]
null
null
null
t14.py
mahendra1904/pythod-programs
d4d75dac65e9795ea5728f75d90aa0b39296b25e
[ "bzip2-1.0.6" ]
null
null
null
import statistics tup = eval(input("Enter a tuple :-")) sum = sum(tup) print("Average =", sum / len( tup )) print("Mean =", statistics.mean( tup ) )
19
40
0.625
2eda9878f981928e3eacf5ff3089d0654e08412c
33,496
py
Python
tests/jenkins.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2021-08-14T13:48:38.000Z
2021-08-14T13:48:38.000Z
tests/jenkins.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
3
2015-03-31T14:44:05.000Z
2015-06-18T19:02:24.000Z
tests/jenkins.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' This script is used to test Salt from a Jenkins server, specifically jenkins.saltstack.com. This script is intended to be shell-centric!! ''' # Import python libs from __future__ import absolute_import, print_function import glob import os import re import sys import ...
33.230159
119
0.588637
845bb9e3c3300d2c59867aa9fb3dc30d73c69554
632
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/survey_crm/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/survey_crm/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/survey_crm/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Survey CRM', 'version': '2.0', 'category': 'Marketing', 'complexity': 'easy', 'website': 'https://www.odoo.com/page/survey', 'description': """ Survey - CRM (bridge module) =============...
30.095238
92
0.53481
1800dcac9f0000fc4a4eb31610c510c91407390b
12,734
py
Python
pyglet/__init__.py
jmiller89/pyglet
311fe4a461e3c37a98fb1015af2a87533df58934
[ "BSD-3-Clause" ]
null
null
null
pyglet/__init__.py
jmiller89/pyglet
311fe4a461e3c37a98fb1015af2a87533df58934
[ "BSD-3-Clause" ]
null
null
null
pyglet/__init__.py
jmiller89/pyglet
311fe4a461e3c37a98fb1015af2a87533df58934
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2019 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follo...
33.335079
80
0.640647
dbcb5689c94aa07ef7ffa6a55ba3a528b9220dcf
7,122
py
Python
petra_camera/devices/dalsaproxy.py
yamedvedya/camera_viewer
9e4d213f1ffc5a32517f4cd4f67e7563819ea480
[ "MIT" ]
null
null
null
petra_camera/devices/dalsaproxy.py
yamedvedya/camera_viewer
9e4d213f1ffc5a32517f4cd4f67e7563819ea480
[ "MIT" ]
null
null
null
petra_camera/devices/dalsaproxy.py
yamedvedya/camera_viewer
9e4d213f1ffc5a32517f4cd4f67e7563819ea480
[ "MIT" ]
null
null
null
# Created by matveyev at 01.12.2020 # ---------------------------------------------------------------------- # Author: yury.matveev@desy.de # ---------------------------------------------------------------------- """Dalsa camera proxy """ import numpy as np import PyTango import logging from watchdog.observe...
33.753555
108
0.511654
bd8224cc12b9ca9f27ee5d178cd4bdb800490c38
15,556
py
Python
thermoplotting/kinetics/trajectories.py
Van-der-Ven-Group/thermoplotting
d826d728f406896b7a56207f3f4e9b4176de0e97
[ "MIT" ]
10
2015-04-28T18:53:00.000Z
2020-09-23T13:29:07.000Z
thermoplotting/kinetics/trajectories.py
Van-der-Ven-Group/thermoplotting
d826d728f406896b7a56207f3f4e9b4176de0e97
[ "MIT" ]
1
2019-05-20T19:20:24.000Z
2019-05-20T19:20:24.000Z
thermoplotting/kinetics/trajectories.py
goirijo/thermoplotting
d826d728f406896b7a56207f3f4e9b4176de0e97
[ "MIT" ]
4
2015-08-03T18:36:46.000Z
2022-03-30T23:13:04.000Z
from __future__ import print_function from __future__ import division from __future__ import absolute_import import pandas as pd import numpy as np class KineticTrajectory(object): """A trajectory is a list of x,y,z and time coordinates for a single atom in a kinetic Monte Carlo simulation, which has the val...
31.112
121
0.603304
2563c0dccf2c9040fca098bd58622dc6e5a18c9b
10,587
py
Python
flaskshop/dashboard/views/product.py
dedalgr/flask-shop
206c4ec75184d0bf2fbb0fe8014722a7e683b04b
[ "BSD-3-Clause" ]
null
null
null
flaskshop/dashboard/views/product.py
dedalgr/flask-shop
206c4ec75184d0bf2fbb0fe8014722a7e683b04b
[ "BSD-3-Clause" ]
null
null
null
flaskshop/dashboard/views/product.py
dedalgr/flask-shop
206c4ec75184d0bf2fbb0fe8014722a7e683b04b
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime from flask import request, render_template, redirect, url_for, current_app from flask_babel import lazy_gettext, gettext from flaskshop.product.models import ( ProductAttribute, ProductType, Collection, Product, Category, ProductType, ProductVariant, Attrib...
33.503165
112
0.648342
3cb2440d218ffc48aa2ada169e2f66a4d8683096
1,537
py
Python
10_Other/Python Assignments/Titanic Dataset/readme open in spyder.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
null
null
null
10_Other/Python Assignments/Titanic Dataset/readme open in spyder.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
1
2021-06-02T00:58:47.000Z
2021-06-02T00:58:47.000Z
10_Other/Python Assignments/Titanic Dataset/readme open in spyder.py
Arunken/PythonScripts
702d0a3af7a9be3311f9da0afc5285d453f15484
[ "Apache-2.0" ]
null
null
null
''' Column Description: ------------------ >> survival: Survival (0 = no; 1 = yes) >> class: Passenger class (1 = first; 2 = second; 3 = third) >> name: Name >> sex: Sex >> age: Age >> sibsp: Number of siblings/spouses aboard >> parch: Number of parents/children aboard >> ticket: Ticket number >> fare: Passenger fare...
41.540541
138
0.713077
645100d0a1372f7ed7dc1d346a17938d6eef5f0d
277
py
Python
client/utils/data_request_type.py
devhid/tnnl
72cf2b2fea8731ec01e4f17732a873539c8c367e
[ "MIT" ]
null
null
null
client/utils/data_request_type.py
devhid/tnnl
72cf2b2fea8731ec01e4f17732a873539c8c367e
[ "MIT" ]
null
null
null
client/utils/data_request_type.py
devhid/tnnl
72cf2b2fea8731ec01e4f17732a873539c8c367e
[ "MIT" ]
null
null
null
from enum import Enum class DataRequestType(Enum): """ Enum that represents the type of data request that is sent. """ HEAD = 0 # sent to signify beginning of data transfer NORMAL = 1 # contains actual file data TAIL = 2 # sent to signify end of data transfer
34.625
71
0.703971
8556e6ad2ec40638ce618c789778f5b1bf8e75f1
211
py
Python
src/boot.py
jsayles/Thing12
84a67ed735adfd46ffc2cb384e7a88585e81cb86
[ "Apache-2.0" ]
1
2020-03-29T17:06:16.000Z
2020-03-29T17:06:16.000Z
src/boot.py
jsayles/Thing12
84a67ed735adfd46ffc2cb384e7a88585e81cb86
[ "Apache-2.0" ]
null
null
null
src/boot.py
jsayles/Thing12
84a67ed735adfd46ffc2cb384e7a88585e81cb86
[ "Apache-2.0" ]
null
null
null
# This file is executed on every boot (including wake-boot from deepsleep) import gc # Disable the ESP debug statements #import esp #esp.osdebug(None) # Web REPL #import webrepl #webrepl.start() gc.collect()
16.230769
74
0.753555
16d23475f0797ecdd082e59427ee82f5af7de14e
4,793
py
Python
Python/klampt/model/create/moving_base_robot.py
joaomcm/Klampt
a184c885ad1d1f120511d95229e33b3da1908665
[ "BSD-3-Clause" ]
238
2015-01-09T15:21:27.000Z
2022-03-30T22:48:45.000Z
Python/klampt/model/create/moving_base_robot.py
tcrapse/Klampt
d5a334e73f1f24ba4c606e03f49915b353799a57
[ "BSD-3-Clause" ]
89
2015-08-26T16:56:42.000Z
2022-03-29T23:45:46.000Z
Python/klampt/model/create/moving_base_robot.py
tcrapse/Klampt
d5a334e73f1f24ba4c606e03f49915b353799a57
[ "BSD-3-Clause" ]
84
2015-01-10T18:41:52.000Z
2022-03-30T03:32:50.000Z
"""Common code for creating and moving free-floating moving bases. The way to do this is to add a "virtual linkage" of 3 translational DOFs and 3 revolute DOFs. Some tuning may need to be done to the motor drivers in order to make the controller stable. """ import os from klampt.math import vectorops,so3 def make(...
30.922581
256
0.665554
da98949abf49e2acb40829ac3fab1f07f172acd8
5,192
py
Python
examples/sardeshmukh_hoskins.py
njweber2/barotropy
2cbf9fcba82052e956c52c138f4bfefef77b6381
[ "MIT" ]
null
null
null
examples/sardeshmukh_hoskins.py
njweber2/barotropy
2cbf9fcba82052e956c52c138f4bfefef77b6381
[ "MIT" ]
null
null
null
examples/sardeshmukh_hoskins.py
njweber2/barotropy
2cbf9fcba82052e956c52c138f4bfefef77b6381
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from barotropy import ( LinearizedDynamics, LinearizedDiffusion, LinearizedDamping, Forcing, NonlinearDynamics, NonlinearDiffusion, NonlinearDamping, super_rotation, debug_plots, gaussian_blob_2d ) from sympl import (Leapfrog, PlotFunctionMonitor, NetCDFMonitor, g...
39.333333
116
0.654468
c9ce508dfdb05569f4f212137032a7dd16e86a55
2,549
py
Python
tensorflow/examples/learn/boston.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/examples/learn/boston.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/examples/learn/boston.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
35.402778
79
0.75206
207e0a773b8923441c1b288e9e18489069f138eb
37,694
py
Python
tensorflow/contrib/layers/python/layers/feature_column_ops.py
RMORIOKA/tensorflow
6886eb9c73940fd3b4dfadc3d6964ae9aa71eef6
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/layers/python/layers/feature_column_ops.py
RMORIOKA/tensorflow
6886eb9c73940fd3b4dfadc3d6964ae9aa71eef6
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/layers/python/layers/feature_column_ops.py
RMORIOKA/tensorflow
6886eb9c73940fd3b4dfadc3d6964ae9aa71eef6
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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...
40.1
109
0.687802
263d1b061f95f3c72d83f1cd1095e8510615b43c
6,080
py
Python
ros/src/twist_controller/dbw_node.py
marcin-sielski/CarND-Capstone
9d305fef9a908604809d5b0056a19ce8ff2e1edd
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
marcin-sielski/CarND-Capstone
9d305fef9a908604809d5b0056a19ce8ff2e1edd
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
marcin-sielski/CarND-Capstone
9d305fef9a908604809d5b0056a19ce8ff2e1edd
[ "MIT" ]
1
2020-01-13T20:02:31.000Z
2020-01-13T20:02:31.000Z
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport from geometry_msgs.msg import TwistStamped import math from twist_controller import Controller ''' You can build this node only after you have built (or partially built) th...
44.705882
101
0.592928
65d9d1824cabf585def706e2aa1ff3056d2bdccc
10,885
py
Python
preprocessing/preprocessor.py
saams4u/BIMODAL
0a52d4e6eef4ad244904fb51892e948ab4a4336e
[ "CC-BY-4.0" ]
null
null
null
preprocessing/preprocessor.py
saams4u/BIMODAL
0a52d4e6eef4ad244904fb51892e948ab4a4336e
[ "CC-BY-4.0" ]
null
null
null
preprocessing/preprocessor.py
saams4u/BIMODAL
0a52d4e6eef4ad244904fb51892e948ab4a4336e
[ "CC-BY-4.0" ]
null
null
null
""" Implementation of all preprocessing steps """ import pandas as pd import numpy as np from rdkit import Chem import sys import os np.random.seed(1) class Preprocessor: def __init__(self, name): # where name is the name of the file # List to store data self._data = [] ...
33.804348
123
0.56362
2056fd5bad150e3b004d922ba326fbdff9f38aa4
1,719
py
Python
codes/Lib/site-packages/openpyxl/charts/tests/test_reference.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
codes/Lib/site-packages/openpyxl/charts/tests/test_reference.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
codes/Lib/site-packages/openpyxl/charts/tests/test_reference.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2014 openpyxl import pytest @pytest.fixture def column_of_letters(sheet, Reference): for idx, l in enumerate("ABCDEFGHIJ", 1): sheet.cell(row=idx, column=2).value = l return Reference(sheet, (1, 2), (10, 2)) class TestReference: def test_single_cell_ctor(self, cell): ...
30.696429
72
0.602094
4d4d5c44ad6e2406914f4033f8d484c061a785c8
6,577
py
Python
rcnn/tools/test_rcnn.py
sjiang17/keypoint-maskrcnn
f78562d4701a57fe1b95ba56f946e33658d7d039
[ "Apache-2.0" ]
3
2018-12-13T09:00:01.000Z
2019-09-11T03:38:02.000Z
rcnn/tools/test_rcnn.py
sjiang17/keypoint-maskrcnn
f78562d4701a57fe1b95ba56f946e33658d7d039
[ "Apache-2.0" ]
null
null
null
rcnn/tools/test_rcnn.py
sjiang17/keypoint-maskrcnn
f78562d4701a57fe1b95ba56f946e33658d7d039
[ "Apache-2.0" ]
1
2019-12-01T09:22:36.000Z
2019-12-01T09:22:36.000Z
import os import cPickle import argparse import pprint from ..config import config, default, generate_config from ..symbol import * from ..dataset import * from ..core.loader import TestLoader, SequentialLoader from ..core.tester import Predictor, generate_proposals from ..utils.load_model import load_param def test...
43.846667
118
0.684355
83e6747f689b22297129a4eddfbe426c44e4d435
1,303
py
Python
python_modules/dagster/dagster/core/storage/alembic/versions/024_add_columns_start_time_and_end_time_postgres.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/alembic/versions/024_add_columns_start_time_and_end_time_postgres.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/alembic/versions/024_add_columns_start_time_and_end_time_postgres.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
"""Add columns start_time and end_time Revision ID: 42add02bf976 Revises: f78059038d01 Create Date: 2021-12-20 13:41:14.924529 """ import sqlalchemy as sa from alembic import op from sqlalchemy import inspect # revision identifiers, used by Alembic. revision = "42add02bf976" down_revision = "f78059038d01" branch_lab...
28.326087
72
0.663853
89d6ca37f625f101e7fcad5b257635540cd5dad3
2,908
py
Python
networkit/stopwatch.py
krzysztof-turowski/networkit
b0db9e30be1a7f7dcf74eaff2a013988a81973ce
[ "MIT" ]
null
null
null
networkit/stopwatch.py
krzysztof-turowski/networkit
b0db9e30be1a7f7dcf74eaff2a013988a81973ce
[ "MIT" ]
null
null
null
networkit/stopwatch.py
krzysztof-turowski/networkit
b0db9e30be1a7f7dcf74eaff2a013988a81973ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2008 John Paulett (john -at- 7oars.com) # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. import time """ stopwatch is a very simple Python module for measuring time. Great for...
19.006536
70
0.662311
20cd834b812b212144d1b798400c9517e6bf13e8
391
py
Python
backend/website/wsgi.py
Abhiram-Joshi/Projectsv2
73416697290161dd45eb3192ed7e6275201f81c9
[ "MIT" ]
13
2021-08-31T14:21:45.000Z
2021-11-08T13:14:59.000Z
backend/website/wsgi.py
Abhiram-Joshi/Projectsv2
73416697290161dd45eb3192ed7e6275201f81c9
[ "MIT" ]
11
2021-08-20T19:10:40.000Z
2022-03-30T13:28:49.000Z
backend/website/wsgi.py
Abhiram-Joshi/Projectsv2
73416697290161dd45eb3192ed7e6275201f81c9
[ "MIT" ]
3
2021-05-18T15:00:49.000Z
2021-08-10T06:59:28.000Z
""" WSGI config for website project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
23
78
0.785166
d1fa9a442f9fff7d44046eba89a7e7a6622c9414
10,385
py
Python
validator/tests/test_commands.py
s-scherrer/qa4sm
99fa62d5e42e5a2b81c5bad1553c8137fe4259e7
[ "MIT" ]
10
2019-02-27T15:05:15.000Z
2022-03-10T21:13:40.000Z
validator/tests/test_commands.py
s-scherrer/qa4sm
99fa62d5e42e5a2b81c5bad1553c8137fe4259e7
[ "MIT" ]
69
2019-07-04T23:20:17.000Z
2022-03-29T06:34:06.000Z
validator/tests/test_commands.py
s-scherrer/qa4sm
99fa62d5e42e5a2b81c5bad1553c8137fe4259e7
[ "MIT" ]
10
2019-03-14T11:46:58.000Z
2022-03-25T13:06:16.000Z
''' Test our custom django commands ''' from datetime import datetime, timedelta import logging from unittest.mock import patch from dateutil.tz.tz import tzlocal from django.conf import settings from django.core.management import call_command from django.test import TestCase from django.utils import timezone from v...
39.188679
136
0.651613
f7708d4af289e41a22fb7b11ca366ae649f96981
1,456
py
Python
tests/testInterference.py
KOLANICH/lazyImport.py
ee6574c10c941973de8f4ea3b67af3e94fc9668d
[ "Unlicense" ]
null
null
null
tests/testInterference.py
KOLANICH/lazyImport.py
ee6574c10c941973de8f4ea3b67af3e94fc9668d
[ "Unlicense" ]
null
null
null
tests/testInterference.py
KOLANICH/lazyImport.py
ee6574c10c941973de8f4ea3b67af3e94fc9668d
[ "Unlicense" ]
null
null
null
import sys from pathlib import Path import unittest thisDir = Path(__file__).parent.absolute() sys.path.insert(0, str(thisDir.parent)) sys.path.insert(0, str(thisDir)) from ImportTimeline import ImportTimelineTestCase class Tests(ImportTimelineTestCase): def testInterference(self): self.etalon = [ "from lazil...
27.471698
52
0.739698
d1a5657994555d96cc13ea302fd99341b8b9c6a2
30,644
py
Python
arignote/data/readers.py
stephen-hoover/Arignote
f438c929295558f3354ec07598a3a023fc4108e0
[ "MIT" ]
2
2016-01-18T02:12:13.000Z
2018-07-24T01:55:20.000Z
arignote/data/readers.py
stephen-hoover/Arignote
f438c929295558f3354ec07598a3a023fc4108e0
[ "MIT" ]
3
2015-07-08T13:30:33.000Z
2015-07-10T19:56:08.000Z
arignote/data/readers.py
stephen-hoover/Arignote
f438c929295558f3354ec07598a3a023fc4108e0
[ "MIT" ]
null
null
null
""" This module reads and iterates over data, making it available for training. """ from __future__ import division import abc import threading import numpy as np try: import pandas as pd except ImportError: # No pandas; we can't read HDF5 files. pd = None import six import theano from ..util import misc...
43.590327
126
0.597442
49815985a6d7f6697cb7354450e50e63a63d4e1a
3,187
py
Python
modeller.py
fuxes/jiminy-modeler
b584a2cd8e73ec825c256546eacd0556545e7c74
[ "Apache-2.0" ]
1
2018-06-02T03:37:20.000Z
2018-06-02T03:37:20.000Z
modeller.py
fuxes/jiminy-modeler
b584a2cd8e73ec825c256546eacd0556545e7c74
[ "Apache-2.0" ]
21
2017-11-10T21:25:02.000Z
2018-04-13T14:13:56.000Z
modeller.py
fuxes/jiminy-modeler
b584a2cd8e73ec825c256546eacd0556545e7c74
[ "Apache-2.0" ]
5
2017-10-19T09:46:32.000Z
2018-08-21T18:34:28.000Z
"""ALS Modeller for Project Jiminy.""" import itertools import math import operator import time import pyspark.mllib.recommendation as rec import logger loggers = logger.get_logger() class Estimator: """Estimator class for Project Jiminy. Used to determine Model parameters. """ def __init__(self, ...
35.808989
79
0.571698
9a919c5329c8a2cc391ef49a72b9b586787144cb
3,581
py
Python
source/SpotInterruptionTriggerFunction/app.py
horsfieldsa/ec2-spot-interruption-dashboard
27d25c3243beac82627d46aca0b6c9c06ca0feb0
[ "MIT-0" ]
27
2020-05-15T20:15:42.000Z
2022-03-16T04:13:46.000Z
source/SpotInterruptionTriggerFunction/app.py
horsfieldsa/ec2-spot-interruption-dashboard
27d25c3243beac82627d46aca0b6c9c06ca0feb0
[ "MIT-0" ]
5
2020-05-15T22:29:30.000Z
2021-04-14T19:55:48.000Z
source/SpotInterruptionTriggerFunction/app.py
horsfieldsa/ec2-spot-interruption-dashboard
27d25c3243beac82627d46aca0b6c9c06ca0feb0
[ "MIT-0" ]
10
2020-05-15T20:21:42.000Z
2022-01-25T10:27:55.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # 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 t...
41.16092
331
0.633343
bebd5bf8e72954dde3e59224030c1c2cff462e3a
18,128
py
Python
pyriemann/estimation.py
stonebig/pyRiemann
176e766f540bd4c7846f38573165fc3d27fc69ca
[ "BSD-3-Clause" ]
null
null
null
pyriemann/estimation.py
stonebig/pyRiemann
176e766f540bd4c7846f38573165fc3d27fc69ca
[ "BSD-3-Clause" ]
null
null
null
pyriemann/estimation.py
stonebig/pyRiemann
176e766f540bd4c7846f38573165fc3d27fc69ca
[ "BSD-3-Clause" ]
null
null
null
"""Estimation of covariance matrices.""" import numpy as np from .spatialfilters import Xdawn from .utils.covariance import (covariances, covariances_EP, cospectrum, coherence) from sklearn.base import BaseEstimator, TransformerMixin from sklearn.covariance import shrunk_covariance def...
29.963636
79
0.589365
4b885584ea2f63e286e80a8812a9ed659ffbfebf
354
py
Python
ssdcoin/simulator/simulator_constants.py
ZeDon-SP/ssdcoin-blockchain
310b461fa43e26305771322438206d9a5fc00f7a
[ "Apache-2.0" ]
7
2021-07-20T16:54:56.000Z
2021-11-05T10:05:07.000Z
ssdcoin/simulator/simulator_constants.py
ZeDon-SP/ssdcoin-blockchain
310b461fa43e26305771322438206d9a5fc00f7a
[ "Apache-2.0" ]
2
2021-07-23T15:26:36.000Z
2021-08-18T17:37:50.000Z
ssdcoin/simulator/simulator_constants.py
ZeDon-SP/ssdcoin-blockchain
310b461fa43e26305771322438206d9a5fc00f7a
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__": from tests.block_tools import BlockTools, test_constants from ssdcoin.util.default_root import DEFAULT_ROOT_PATH # TODO: mariano: fix this with new consensus bt = BlockTools(root_path=DEFAULT_ROOT_PATH) new_genesis_block = bt.create_genesis_block(test_constants, b"0") ...
35.4
69
0.768362