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
2ce42bd089add000f1bf009b2b4d8086ed73d55b
111
py
Python
pridesport_work/sportgoods/apps.py
Trifon87/pridesport_work
9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c
[ "MIT" ]
null
null
null
pridesport_work/sportgoods/apps.py
Trifon87/pridesport_work
9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c
[ "MIT" ]
null
null
null
pridesport_work/sportgoods/apps.py
Trifon87/pridesport_work
9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SportgoodsConfig(AppConfig): name = 'pridesport_work.sportgoods'
18.5
39
0.792793
7683ed7eba9e244c164f87ca60fc0d12b9da8dba
412
py
Python
phrase_pattern.py
junquera/my-crypto-works
8ef1b207a97fd5ee7eb53f985edc73813a0f8fc0
[ "MIT" ]
null
null
null
phrase_pattern.py
junquera/my-crypto-works
8ef1b207a97fd5ee7eb53f985edc73813a0f8fc0
[ "MIT" ]
null
null
null
phrase_pattern.py
junquera/my-crypto-works
8ef1b207a97fd5ee7eb53f985edc73813a0f8fc0
[ "MIT" ]
1
2018-07-16T22:03:44.000Z
2018-07-16T22:03:44.000Z
phrase = 'en un lugar de la mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivia un hidalgo de los de lanaa en astillero, adarga antigua, rocin flaco y galgo corredor. una olla de algo mas vaca que carnero, salpicon' bad_chars = [' ', ',', '.', ';'] res = '' for i in phrase: if i in bad_chars: ...
31.692308
236
0.660194
37f837a89d73e9448dd67e60e563e02b98b19b86
611
py
Python
tts.py
kunalchandiramani/InControl
83505da1e29cb29e312c99909aaf83a9c1122340
[ "MIT" ]
1
2018-10-15T18:03:39.000Z
2018-10-15T18:03:39.000Z
tts.py
kunalchandiramani/InControl
83505da1e29cb29e312c99909aaf83a9c1122340
[ "MIT" ]
null
null
null
tts.py
kunalchandiramani/InControl
83505da1e29cb29e312c99909aaf83a9c1122340
[ "MIT" ]
null
null
null
def texttospeech1(string, voice, audio_config, hello=None): # Set the text input to be synthesized sample=hello+string synthesis_input = texttospeech.types.SynthesisInput(text=sample) response = client.synthesize_speech(synthesis_input, voice, audio_config) # The response's audio_content ...
35.941176
78
0.685761
4c04f968c543f8867251c332388d1be3d6a442a0
2,494
py
Python
webpage/apps/ml/predict_race_winners/logistic_regression.py
Hrrsmjd/predict_race_winners
4373767835ba893a7fff77d1bcec2e9e4430f8d9
[ "MIT" ]
null
null
null
webpage/apps/ml/predict_race_winners/logistic_regression.py
Hrrsmjd/predict_race_winners
4373767835ba893a7fff77d1bcec2e9e4430f8d9
[ "MIT" ]
null
null
null
webpage/apps/ml/predict_race_winners/logistic_regression.py
Hrrsmjd/predict_race_winners
4373767835ba893a7fff77d1bcec2e9e4430f8d9
[ "MIT" ]
null
null
null
import joblib import numpy as np import pandas as pd class LinearRegression: pass class LogisticRegression: def __init__(self): path_to_artifacts = '..\\..\\predict_race_winners\\' self.values_fill_missing = joblib.load(path_to_artifacts + 'train_mean.joblib') self.scaler = joblib.lo...
40.885246
182
0.634322
d522536430320dbc496aa324603e765e4df3b56e
1,163
py
Python
Server/app/views/account/signup/signup.py
TblMaker/TableMaker-Backend
ebad59b2c8831626c11730ac53d721deb39080e3
[ "MIT" ]
null
null
null
Server/app/views/account/signup/signup.py
TblMaker/TableMaker-Backend
ebad59b2c8831626c11730ac53d721deb39080e3
[ "MIT" ]
null
null
null
Server/app/views/account/signup/signup.py
TblMaker/TableMaker-Backend
ebad59b2c8831626c11730ac53d721deb39080e3
[ "MIT" ]
null
null
null
from flask import Blueprint, Response, abort, request from flask_jwt_extended import get_jwt_identity from flask_restful import Api from flasgger import swag_from from app.views import BaseResource, json_required api = Api(Blueprint('signup-api', __name__)) @api.resource('/signup/sns') class SNSSignup(BaseResource)...
19.711864
54
0.61049
0d6ca1c2b063feee62b776f5a83d2fffe7eca63b
379
py
Python
URI/mes.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
URI/mes.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
URI/mes.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
''' Leia um valor inteiro entre 1 e 12, inclusive. Correspondente a este valor, deve ser apresentado como resposta o mรชs do ano por extenso, em inglรชs, com a primeira letra maiรบscula. ''' index = int(input()) lista = {1:'January',2:'February',3:'March',4:'April',5:'May',6:'June',7:'July',8:'August',9:'September',10:...
34.454545
146
0.699208
413d5238fec82f4e5541ef02148061587a1029dd
25,717
py
Python
src/core/Gaze_Detection.py
funkfuzz/GP-E
29e66f92d81a293d818563098511b151685a8132
[ "MIT" ]
1
2021-04-22T12:29:41.000Z
2021-04-22T12:29:41.000Z
src/core/Gaze_Detection.py
funkfuzz/GP-E
29e66f92d81a293d818563098511b151685a8132
[ "MIT" ]
1
2022-01-06T08:51:39.000Z
2022-01-06T08:51:39.000Z
src/core/Gaze_Detection.py
funkfuzz/GP-E
29e66f92d81a293d818563098511b151685a8132
[ "MIT" ]
null
null
null
import os import cv2 as cv import tensorflow as tf import glob import numpy as np import scipy from scipy import optimize class Gaze_Detection: """ The class that performs the gaze estimation. This class uses a pre-trained neural network model called GazeML to estimate 18 eye landmarks. These are needed ...
43.662139
194
0.59136
06be2bd19a13f5b781fa0bd84848b7eeed2cb105
1,939
py
Python
python/asyncio/http_async_server.py
kskumgk63/trace-examples
1de45b351aa03367c745933b4923f07d436aea3e
[ "BSD-3-Clause" ]
75
2017-03-20T12:17:14.000Z
2022-03-24T02:55:53.000Z
python/asyncio/http_async_server.py
kskumgk63/trace-examples
1de45b351aa03367c745933b4923f07d436aea3e
[ "BSD-3-Clause" ]
25
2017-05-10T18:21:20.000Z
2022-01-28T18:36:52.000Z
python/asyncio/http_async_server.py
kskumgk63/trace-examples
1de45b351aa03367c745933b4923f07d436aea3e
[ "BSD-3-Clause" ]
54
2017-05-10T18:13:52.000Z
2022-01-11T21:04:42.000Z
import os import asyncio import ddtrace import redis from ddtrace import tracer, Pin, patch from ddtrace.contrib.asyncio import context_provider, helpers DATADOG_TRACER = os.getenv('DATADOG_TRACER', 'localhost') tracer.configure(hostname=DATADOG_TRACER, context_provider=context_provider) # patch redis patch(redis=...
27.7
97
0.696751
d8f83089937e3f51de5c158e9f433620e1d3d26f
61,923
py
Python
python/ccxt/kraken.py
aegonplatform/ccxt
c136c8a881b5d65aa68602500e4cf70f0edd5861
[ "MIT" ]
1
2019-07-03T23:12:42.000Z
2019-07-03T23:12:42.000Z
python/ccxt/kraken.py
aegonplatform/ccxt
c136c8a881b5d65aa68602500e4cf70f0edd5861
[ "MIT" ]
null
null
null
python/ccxt/kraken.py
aegonplatform/ccxt
c136c8a881b5d65aa68602500e4cf70f0edd5861
[ "MIT" ]
1
2019-06-04T00:13:06.000Z
2019-06-04T00:13:06.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestri...
41.062997
285
0.495438
d1dc077f423982a21e0d751833ffe7f7560b2060
3,726
py
Python
AP/Python/appSoket2bu.py
BismitRevolution/MonitoringICCU
e86fac7caafdb58462288b98884e72a845b0191f
[ "Apache-2.0" ]
null
null
null
AP/Python/appSoket2bu.py
BismitRevolution/MonitoringICCU
e86fac7caafdb58462288b98884e72a845b0191f
[ "Apache-2.0" ]
null
null
null
AP/Python/appSoket2bu.py
BismitRevolution/MonitoringICCU
e86fac7caafdb58462288b98884e72a845b0191f
[ "Apache-2.0" ]
null
null
null
import os, time import time import socket import sys import MySQLdb from time import gmtime, strftime #from time import localtime, strftime from random import randint from time import sleep from datetime import datetime from pytz import timezone import pytz #from pytz import timezone #WIB = pytz.WIB #utc = pytz...
26.425532
212
0.554214
6192d63a944ec006e4254eaac7c83fafdad9f081
5,919
py
Python
mailchimp3/entities/storecustomers.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
9
2018-05-15T06:49:26.000Z
2020-12-20T13:43:56.000Z
mailchimp3/entities/storecustomers.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
null
null
null
mailchimp3/entities/storecustomers.py
MyMusicTaste/async-python-mailchimp
10a53dc6f1406fa23abca89da142a51e123dd966
[ "MIT" ]
null
null
null
# coding=utf-8 """ The E-commerce Store Customers API endpoint Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/customers/ Schema: https://api.mailchimp.com/schema/3.0/Ecommerce/Stores/Customers/Instance.json """ from __future__ import unicode_literals from mailchimp3.b...
36.763975
114
0.625612
b294db6e68dfbe11ad5f6fb5710917cbf17dbb0d
2,450
py
Python
examples/unstable/Duelling_DQN_train.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
23
2019-04-04T17:34:56.000Z
2021-12-14T19:34:10.000Z
examples/unstable/Duelling_DQN_train.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
5
2020-11-13T17:40:40.000Z
2022-03-12T00:11:33.000Z
examples/unstable/Duelling_DQN_train.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
3
2019-07-17T23:56:36.000Z
2022-03-13T03:55:21.000Z
import argparse import gym import tensorflow as tf import os import numpy as np from tf_rl.common.memory import ReplayBuffer from tf_rl.common.utils import AnnealingSchedule from tf_rl.common.wrappers import make_atari, wrap_deepmind, MyWrapper from tf_rl.common.policy import EpsilonGreedyPolicy, BoltzmannQPolicy from ...
44.545455
119
0.75102
9b8635d09890a25a19123ddd274a9ac16bda2a46
858
py
Python
app/startup.py
owlvey/falcon_notifications
f4729d5a25c50c0f3653c3fc84bdee41f6483811
[ "Apache-2.0" ]
null
null
null
app/startup.py
owlvey/falcon_notifications
f4729d5a25c50c0f3653c3fc84bdee41f6483811
[ "Apache-2.0" ]
null
null
null
app/startup.py
owlvey/falcon_notifications
f4729d5a25c50c0f3653c3fc84bdee41f6483811
[ "Apache-2.0" ]
1
2020-01-03T14:28:30.000Z
2020-01-03T14:28:30.000Z
import json import os import sys path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(os.path.abspath(path)) from app.components.ConfigurationComponent import ConfigurationComponent from app.controllers.NotificationsController import api as notification_api from app.controllers.Availabi...
26.8125
75
0.783217
32d404ff243ecb7d7e666e8b10a0405b1f7472df
607
py
Python
setup.py
Jay184/articlestudy
48a2ffb8d72baaa1ee28ece1e91fc7b45d8158b9
[ "MIT" ]
null
null
null
setup.py
Jay184/articlestudy
48a2ffb8d72baaa1ee28ece1e91fc7b45d8158b9
[ "MIT" ]
1
2021-07-03T14:11:54.000Z
2021-07-03T17:39:06.000Z
setup.py
Jay184/articlestudy
48a2ffb8d72baaa1ee28ece1e91fc7b45d8158b9
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='articlestudy', version='0.1', packages=find_packages(), include_package_data=True, entry_points=''' [console_scripts] articlestudy=articlestudy:entry_point ''', install_requires=[ 'click<8.0,>=5.1', 'fl...
22.481481
45
0.565074
130d16b7c168238871fee41e035d896e77d8a3e8
1,880
py
Python
surface/pakfront/CVhandles.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
9
2017-09-21T22:00:46.000Z
2018-12-26T15:46:40.000Z
surface/pakfront/CVhandles.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
25
2017-10-06T17:25:51.000Z
2018-04-19T00:51:50.000Z
surface/pakfront/CVhandles.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
2
2017-10-19T22:41:37.000Z
2018-05-10T20:33:45.000Z
import subprocess import io import cv2 import numpy as np from signal import signal, SIGPIPE, SIG_DFL from multiprocessing import Process, Pool from json import dumps import time signal(SIGPIPE, SIG_DFL) MJPGPORT=8080 ROVIP="localhost" def get_image(camnum): port = MJPGPORT imreq = subprocess.check_output(["t...
28.484848
83
0.642021
5c0b80f7c3a26fcb2fecf8ec5bb9a9fdaf442c61
4,851
py
Python
setup.py
msuozzo/python-bigquery
dcb8728c12f5ab0d7809a1b6cf72755dff973772
[ "Apache-2.0" ]
384
2020-02-07T06:39:26.000Z
2022-03-30T18:25:50.000Z
setup.py
msuozzo/python-bigquery
dcb8728c12f5ab0d7809a1b6cf72755dff973772
[ "Apache-2.0" ]
770
2020-02-04T10:46:40.000Z
2022-03-31T15:12:19.000Z
setup.py
msuozzo/python-bigquery
dcb8728c12f5ab0d7809a1b6cf72755dff973772
[ "Apache-2.0" ]
177
2020-02-06T05:24:31.000Z
2022-03-25T18:51:36.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.923077
93
0.665224
20221142635d6f2b157f77c57099dff2962eff4a
45,094
py
Python
google/cloud/gaming_v1/services/game_server_deployments_service/client.py
Yingxin-Jiang/python-game-servers
7b897b44024a8f06467ad8433bfe900feaee4b04
[ "Apache-2.0" ]
null
null
null
google/cloud/gaming_v1/services/game_server_deployments_service/client.py
Yingxin-Jiang/python-game-servers
7b897b44024a8f06467ad8433bfe900feaee4b04
[ "Apache-2.0" ]
null
null
null
google/cloud/gaming_v1/services/game_server_deployments_service/client.py
Yingxin-Jiang/python-game-servers
7b897b44024a8f06467ad8433bfe900feaee4b04
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
42.421449
121
0.635606
e2f754296147bb22b822668fc046ebd3d78fa3bd
5,601
py
Python
src/presence_analyzer/tests.py
stxnext-kindergarten/presence-analyzer-tmuszczyk
14e8f62ba5f680a177f1af40df9db615977723a6
[ "MIT" ]
null
null
null
src/presence_analyzer/tests.py
stxnext-kindergarten/presence-analyzer-tmuszczyk
14e8f62ba5f680a177f1af40df9db615977723a6
[ "MIT" ]
1
2019-09-18T09:06:52.000Z
2019-09-18T09:06:52.000Z
src/presence_analyzer/tests.py
stxnext-kindergarten/presence-analyzer-tmuszczyk
14e8f62ba5f680a177f1af40df9db615977723a6
[ "MIT" ]
1
2019-09-17T10:30:46.000Z
2019-09-17T10:30:46.000Z
# -*- coding: utf-8 -*- """ Presence analyzer unit tests. """ from __future__ import unicode_literals import os.path import json import datetime import unittest from presence_analyzer import main, views, utils TEST_DATA_CSV = os.path.join( os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'test_data.csv'...
29.324607
88
0.594358
4f0004f33aa8d8a181225f06e95a28916ee73285
38,868
py
Python
cxphasing/CXPhasing2.py
jbgastineau/cxphasing
a9847a0afb9a981d81f027e75c06c9bb2b531d33
[ "MIT" ]
3
2018-05-11T16:05:55.000Z
2021-12-20T08:52:02.000Z
cxphasing/CXPhasing2.py
jbgastineau/cxphasing
a9847a0afb9a981d81f027e75c06c9bb2b531d33
[ "MIT" ]
null
null
null
cxphasing/CXPhasing2.py
jbgastineau/cxphasing
a9847a0afb9a981d81f027e75c06c9bb2b531d33
[ "MIT" ]
2
2018-11-14T08:57:10.000Z
2021-12-20T08:52:06.000Z
""" .. module:: CXPhasing2.py :platform: Unix :synopsis: Implements phase retrieval algorithms. .. moduleauthor:: David Vine <djvine@gmail.com> """ import os import numpy as np import scipy as sp import pylab import time import math import pdb from numpy.random import uniform import multiprocessing as mp imp...
43.234705
168
0.578291
198e241a126765301ecdb794dbf87aee2b01b725
2,982
py
Python
appqos/power_common.py
rjablonx/intel-cmt-cat
b127e2636608260dbd8547fa8444331981b1f636
[ "BSD-3-Clause" ]
1
2019-04-25T23:21:50.000Z
2019-04-25T23:21:50.000Z
appqos/power_common.py
rjablonx/intel-cmt-cat
b127e2636608260dbd8547fa8444331981b1f636
[ "BSD-3-Clause" ]
null
null
null
appqos/power_common.py
rjablonx/intel-cmt-cat
b127e2636608260dbd8547fa8444331981b1f636
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # BSD LICENSE # # Copyright(c) 2019-2020 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condit...
26.864865
80
0.659624
49150d6a30ad3d106c804702fb575e02fdd12f3a
13,142
py
Python
tests/test_main_model.py
jfkcooper/SScanSS-2
ae50c1d065732a7742eaf1a7b9a9349907c29f8a
[ "BSD-3-Clause" ]
null
null
null
tests/test_main_model.py
jfkcooper/SScanSS-2
ae50c1d065732a7742eaf1a7b9a9349907c29f8a
[ "BSD-3-Clause" ]
null
null
null
tests/test_main_model.py
jfkcooper/SScanSS-2
ae50c1d065732a7742eaf1a7b9a9349907c29f8a
[ "BSD-3-Clause" ]
null
null
null
import os import shutil import tempfile import unittest import unittest.mock as mock import numpy as np from sscanss.app.window.model import MainWindowModel, IDF from sscanss.core.geometry import Mesh from sscanss.core.instrument import Instrument from sscanss.core.util import PointType, POINT_DTYPE, LoadVector from te...
46.112281
118
0.633617
f402be4d7b51b07800e9de8ebf62d13fe3a0139e
2,364
py
Python
annotator_supreme/views/webapp/annotation_view.py
meerkat-cv/annotator-supreme
36f32834078b3c8b0ae5e59985848248265ac802
[ "MIT" ]
5
2017-06-26T21:30:32.000Z
2017-09-20T16:12:57.000Z
annotator_supreme/views/webapp/annotation_view.py
meerkat-cv/annotator-supreme
36f32834078b3c8b0ae5e59985848248265ac802
[ "MIT" ]
17
2017-12-01T14:21:33.000Z
2018-01-18T21:09:50.000Z
annotator_supreme/views/webapp/annotation_view.py
meerkat-cv/annotator-supreme
36f32834078b3c8b0ae5e59985848248265ac802
[ "MIT" ]
1
2017-11-28T17:56:41.000Z
2017-11-28T17:56:41.000Z
import flask from flask.ext.classy import FlaskView, route, request from annotator_supreme.views.view_tools import * from annotator_supreme import app from annotator_supreme.controllers.dataset_controller import DatasetController from flask import render_template from annotator_supreme.controllers.color_utils import Co...
42.214286
155
0.681895
683d5fa2af36c7029a518debd8422d63cd02f32f
873
py
Python
analysis/plot_return.py
kenjyoung/dreamerv2
1b8303af16caadd5ffa7763ef3d32c249cf72fc7
[ "MIT" ]
null
null
null
analysis/plot_return.py
kenjyoung/dreamerv2
1b8303af16caadd5ffa7763ef3d32c249cf72fc7
[ "MIT" ]
null
null
null
analysis/plot_return.py
kenjyoung/dreamerv2
1b8303af16caadd5ffa7763ef3d32c249cf72fc7
[ "MIT" ]
null
null
null
import argparse import pickle as pkl import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns timescale = 1000000 parser = argparse.ArgumentParser() parser.add_argument("--output", "-o", type=str, default="dreamer.out") parser.add_argument("--window", "-w", type=int, default=10) a...
26.454545
107
0.728522
f6c175da7dec3acea8c30b75709c277675668de1
3,042
py
Python
tests/test_ansible.py
f500/prometheus_server-role
20b7606578d8acfa26c5df8bdc52889eb1f887d1
[ "Apache-2.0" ]
null
null
null
tests/test_ansible.py
f500/prometheus_server-role
20b7606578d8acfa26c5df8bdc52889eb1f887d1
[ "Apache-2.0" ]
null
null
null
tests/test_ansible.py
f500/prometheus_server-role
20b7606578d8acfa26c5df8bdc52889eb1f887d1
[ "Apache-2.0" ]
null
null
null
import pytest @pytest.fixture() def AnsibleDefaults(Ansible): return Ansible("include_vars", "defaults/main.yml")["ansible_facts"] @pytest.fixture() def AnsibleVars(Ansible): return Ansible("include_vars", "tests/group_vars/group01.yml")["ansible_facts"] @pytest.fixture() def AnsibleVars2(Ansible): re...
37.555556
96
0.745891
09349190257bb1fb4ff2a8b8a51b9884bd13a8ab
17,000
py
Python
TL_2_Stages_MADCAT_SpecificAdaptation/Structure_006_TL_2_Stages_1.py
sanakhamekhem/HTR-Adaptation
8cec1aa9fd487b322bbad336f838af6d6202b591
[ "MIT" ]
null
null
null
TL_2_Stages_MADCAT_SpecificAdaptation/Structure_006_TL_2_Stages_1.py
sanakhamekhem/HTR-Adaptation
8cec1aa9fd487b322bbad336f838af6d6202b591
[ "MIT" ]
null
null
null
TL_2_Stages_MADCAT_SpecificAdaptation/Structure_006_TL_2_Stages_1.py
sanakhamekhem/HTR-Adaptation
8cec1aa9fd487b322bbad336f838af6d6202b591
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 7 11:43:59 2017 @author: aradillas """ import tensorflow as tf import numpy as np import sys sys.path.append('/home/ahmed/Desktop/sana/RCNN/HTRTF/Modules') from utils import load_dataset, initialize_log, check_valid_and_test_sets, seconds_to_days_...
49.562682
243
0.665
6cdaa1204037c7e349cf870b51265f9a2ec99360
883
py
Python
src/schemas.py
Gholtes/reccomendation-engine-app-dummy
66b006dbbcd54d4445f862b62a7f837ba66e2a32
[ "MIT" ]
null
null
null
src/schemas.py
Gholtes/reccomendation-engine-app-dummy
66b006dbbcd54d4445f862b62a7f837ba66e2a32
[ "MIT" ]
null
null
null
src/schemas.py
Gholtes/reccomendation-engine-app-dummy
66b006dbbcd54d4445f862b62a7f837ba66e2a32
[ "MIT" ]
null
null
null
from typing import List, Optional, Any, Dict, AnyStr, Union from pydantic import BaseModel #Define Request Schemas class productRequest(BaseModel): '''Defines a train request''' product_id: str recommendation_count: Optional[int] = 10 user_id: Optional[str] = None location_id: Optional[str] = None class userRequ...
25.970588
59
0.761042
e7b6f4fcaf893e8e16f0e8c965d3eaa6ba2b3d0e
8,850
py
Python
LibRadar/lib_tagging.py
chubbymaggie/LibRadar
54ecdde5ec54cfb0fce5f1ab816380ec36756434
[ "Apache-2.0" ]
196
2015-09-04T09:23:49.000Z
2022-03-21T10:19:36.000Z
LibRadar/lib_tagging.py
chubbymaggie/LibRadar
54ecdde5ec54cfb0fce5f1ab816380ec36756434
[ "Apache-2.0" ]
56
2016-07-29T12:11:55.000Z
2021-11-09T12:14:39.000Z
LibRadar/lib_tagging.py
chubbymaggie/LibRadar
54ecdde5ec54cfb0fce5f1ab816380ec36756434
[ "Apache-2.0" ]
49
2016-01-18T09:05:49.000Z
2022-02-07T17:26:04.000Z
# -*- coding: utf-8 -*- # Copyright 2017 Zachary Marv (้ฉฌๅญๆ˜‚) # # 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...
40.410959
118
0.579209
19a46fac649a5525090465c0b5413fc25a783735
564
py
Python
sacred/config/__init__.py
RickardSjogren/sacred
93a0df32ddb22e7634790bda08b530bf7bc45d61
[ "MIT" ]
null
null
null
sacred/config/__init__.py
RickardSjogren/sacred
93a0df32ddb22e7634790bda08b530bf7bc45d61
[ "MIT" ]
null
null
null
sacred/config/__init__.py
RickardSjogren/sacred
93a0df32ddb22e7634790bda08b530bf7bc45d61
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from sacred.config.config_dict import ConfigDict from sacred.config.config_scope import ConfigScope from sacred.config.config_files import load_config_file, save_config_file from sacred.config.captured_function import create_captured_function from sacred.config.utils import ( c...
40.285714
79
0.796099
2e954e0415aa2916ab0245d76d3916fddc1a4b0f
9,818
py
Python
transformerlm/model.py
hongyuanmei/transformer-lm
66e3e9e4a2fee7d2caa32e445f7652519a17a310
[ "MIT" ]
null
null
null
transformerlm/model.py
hongyuanmei/transformer-lm
66e3e9e4a2fee7d2caa32e445f7652519a17a310
[ "MIT" ]
null
null
null
transformerlm/model.py
hongyuanmei/transformer-lm
66e3e9e4a2fee7d2caa32e445f7652519a17a310
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.utils import torch.utils.checkpoint import math from utils import clones, attention from adasoftmax import AdaptiveSoftmax from adaptiveinput import AdaptiveInput # in-house implementation of Transformer # largely reply on Susha Rush anno...
35.064286
139
0.610409
ca9ef2172af27575eb6a5d6274254ffb4348538f
14,199
py
Python
recipes/recipe_modules/gerrit/api.py
xmake-mirror/depot_tools
8a6d00f116d6de9d5c4e92acb519fd0859c6449a
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/gerrit/api.py
xmake-mirror/depot_tools
8a6d00f116d6de9d5c4e92acb519fd0859c6449a
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/gerrit/api.py
xmake-mirror/depot_tools
8a6d00f116d6de9d5c4e92acb519fd0859c6449a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from recipe_engine import recipe_api class GerritApi(recipe_api.RecipeApi): """Module for interact with Gerrit endpoints""" def __init__(self, *args, *...
32.868056
105
0.563561
6e9c6f9675bca46018a792469fb23e6ebee07651
189
py
Python
contests_atcoder/panasonic2020/panasonic2020_d.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
contests_atcoder/panasonic2020/panasonic2020_d.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
1
2021-01-02T06:36:51.000Z
2021-01-02T06:36:51.000Z
contests_atcoder/panasonic2020/panasonic2020_d.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
n = int(input()) def make(m, l): if len(m) == n: print(m) return 0 for next in range(97, l): make(m + chr(next), l) make(m + chr(l), l + 1) make("", 97)
18.9
30
0.449735
29617d5e719298354b2c6f81de96804fb546ebe1
8,155
py
Python
code/tmp_rtrip/test/test_file_eintr.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/test/test_file_eintr.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/test/test_file_eintr.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
import os import select import signal import subprocess import sys import time import unittest import _io import _pyio @unittest.skipUnless(os.name == 'posix', 'tests requires a posix system.') class TestFileIOSignalInterrupt: def setUp(self): self._process = None def tearDown(self): if self...
40.371287
185
0.645739
3b0cdc26ba5e9a12289855d895adee11f46a6acd
4,506
py
Python
edbdeploy/spec/reference_architecture.py
richyen/postgres-deployment
40796bbe543046403036c5e9b801fb36beefcff7
[ "BSD-3-Clause" ]
58
2020-02-24T21:02:50.000Z
2022-03-28T14:51:56.000Z
edbdeploy/spec/reference_architecture.py
vibhorkum/postgres-deployment
b0213fc2e30f2f4f2930b61dd90516fe0f15c004
[ "BSD-3-Clause" ]
108
2020-09-18T12:53:44.000Z
2022-02-02T09:02:31.000Z
edbdeploy/spec/reference_architecture.py
vibhorkum/postgres-deployment
b0213fc2e30f2f4f2930b61dd90516fe0f15c004
[ "BSD-3-Clause" ]
47
2020-03-04T15:51:01.000Z
2022-02-27T13:48:05.000Z
ReferenceArchitectureSpec = { 'EDB-RA-1': { 'pg_count': 1, 'pem_server': True, 'barman': True, 'barman_server_count': 1, 'bdr_server_count': 0, 'bdr_witness_count': 0, 'pooler_count': 0, 'pooler_type': None, 'pooler_local': False, 'efm'...
27.644172
42
0.515757
b3d3e0ea285fdbb87e3ade0a7f872af49813417a
3,463
py
Python
homeassistant/components/mfi/switch.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/mfi/switch.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/components/mfi/switch.py
winterscar/core
5a55d508791aae65f16396691d014c73fb2095f0
[ "Apache-2.0" ]
1
2020-02-17T07:44:24.000Z
2020-02-17T07:44:24.000Z
"""Support for Ubiquiti mFi switches.""" import logging from mficlient.client import FailedToLogin, MFiClient import requests import voluptuous as vol from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_PORT, CONF_S...
28.619835
84
0.648571
1e84fd0c9d19a77209449160a19f578a7465e362
140
py
Python
python/rpgmd/p2e_npcs.py
dwugofski/rpgmd
e6c9ed21254654587d265dc1fffbe18a92942424
[ "Apache-2.0" ]
null
null
null
python/rpgmd/p2e_npcs.py
dwugofski/rpgmd
e6c9ed21254654587d265dc1fffbe18a92942424
[ "Apache-2.0" ]
null
null
null
python/rpgmd/p2e_npcs.py
dwugofski/rpgmd
e6c9ed21254654587d265dc1fffbe18a92942424
[ "Apache-2.0" ]
null
null
null
# Macros to handle displaying special objects import re from pathlib import Path from .core import * from .display import StatblockMacro
15.555556
45
0.8
effbb3f3e11aee2aba205b801d63e79e1fbdf81c
1,086
py
Python
Wavetech001/alt-kamera.py
kantrveysel/UnderwaterVehicle
cde8b7942848b7c59b8d063ff605c505f3b1fdc2
[ "Apache-2.0" ]
2
2021-03-12T13:59:31.000Z
2021-05-13T17:43:33.000Z
Wavetech001/alt-kamera.py
kantrveysel/UnderwaterVehicle
cde8b7942848b7c59b8d063ff605c505f3b1fdc2
[ "Apache-2.0" ]
null
null
null
Wavetech001/alt-kamera.py
kantrveysel/UnderwaterVehicle
cde8b7942848b7c59b8d063ff605c505f3b1fdc2
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import socket import sys import pickle import struct from picamera import PiCamera from picamera.array import PiRGBArray from time import sleep from datetime import datetime import time camera = PiCamera() camera.resolution = (1080,566) #camera.start_recording() rawCapture ...
25.857143
71
0.733886
519c817e9aa91562ef0406344031f67c65c72fa7
9,509
py
Python
iaso/tests/api/test_groups.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
iaso/tests/api/test_groups.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
iaso/tests/api/test_groups.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
import typing from django.test import tag from django.utils.timezone import now from iaso import models as m from iaso.test import APITestCase class GroupsAPITestCase(APITestCase): @classmethod def setUpTestData(cls): cls.now = now() cls.data_source = m.DataSource.objects.create(name="Defau...
42.833333
118
0.684615
4e2fe1accd45330eead4ba9c92754d713c361885
16,757
py
Python
maskrcnn_benchmark/config/defaults.py
vfonov/maskrcnn-benchmark
13e2ff6216a9ee50cba0b0d9d7def59c0ab99552
[ "MIT" ]
null
null
null
maskrcnn_benchmark/config/defaults.py
vfonov/maskrcnn-benchmark
13e2ff6216a9ee50cba0b0d9d7def59c0ab99552
[ "MIT" ]
null
null
null
maskrcnn_benchmark/config/defaults.py
vfonov/maskrcnn-benchmark
13e2ff6216a9ee50cba0b0d9d7def59c0ab99552
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os from yacs.config import CfgNode as CN # ----------------------------------------------------------------------------- # Convention about Training / Test specific parameters # ------------------------------------------------------------...
37.740991
83
0.644805
2d1d67e021714b3f71b7cdb3e7f1986b5893338f
5,573
py
Python
arts-main/arts_api/settings.py
conix-center/arts
3ee48a4de49be3c6df744673581720d3eeaa9923
[ "BSD-3-Clause" ]
3
2022-01-25T16:36:19.000Z
2022-03-04T06:00:16.000Z
arts-main/arts_api/settings.py
conix-center/arts
3ee48a4de49be3c6df744673581720d3eeaa9923
[ "BSD-3-Clause" ]
8
2020-09-17T18:13:47.000Z
2022-02-23T20:55:59.000Z
arts-main/arts_api/settings.py
conix-center/arts
3ee48a4de49be3c6df744673581720d3eeaa9923
[ "BSD-3-Clause" ]
1
2020-11-12T09:34:14.000Z
2020-11-12T09:34:14.000Z
''' Django settings for arts_api project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ ''' import os i...
28.28934
104
0.700879
aea5e654b8e758b485425a4597eb2accd6c385e1
669
py
Python
src/orders/migrations/0015_auto_20160802_0047.py
GonzaloAvilez/site
10866c826fa0df89f7f25e7392fd0fc8e395f54d
[ "MIT" ]
null
null
null
src/orders/migrations/0015_auto_20160802_0047.py
GonzaloAvilez/site
10866c826fa0df89f7f25e7392fd0fc8e395f54d
[ "MIT" ]
12
2019-10-02T17:18:09.000Z
2022-03-11T23:54:53.000Z
src/orders/migrations/0015_auto_20160802_0047.py
GonzaloAvilez/site
10866c826fa0df89f7f25e7392fd0fc8e395f54d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-08-02 05:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0014_auto_20160731_1505'), ] operations = [ migrations.AlterField(...
25.730769
83
0.609865
baebfd031a70c8f5911731ee086ff46e5eabb413
3,794
py
Python
demisto_sdk/tests/integration_tests/run_integration_test.py
kfirstri/demisto-sdk
59d99cf4b5016be8a4a333c2541418e1612549e1
[ "MIT" ]
null
null
null
demisto_sdk/tests/integration_tests/run_integration_test.py
kfirstri/demisto-sdk
59d99cf4b5016be8a4a333c2541418e1612549e1
[ "MIT" ]
null
null
null
demisto_sdk/tests/integration_tests/run_integration_test.py
kfirstri/demisto-sdk
59d99cf4b5016be8a4a333c2541418e1612549e1
[ "MIT" ]
null
null
null
import pytest from click.testing import CliRunner from demisto_client.demisto_api import DefaultApi from demisto_sdk.__main__ import main from demisto_sdk.commands.common.legacy_git_tools import git_path from demisto_sdk.commands.run_cmd.runner import Runner DEBUG_FILE_PATH = f'{git_path()}/demisto_sdk/commands/run_cm...
36.133333
128
0.721139
bf1c905a9b71f34be14d993c10383e5e418a16ed
13,955
py
Python
test_errorguimonitor.py
imalkevich/errorguimonitor
73280bd81027949a11e3facd60a2fb41c2c4a1d1
[ "MIT" ]
null
null
null
test_errorguimonitor.py
imalkevich/errorguimonitor
73280bd81027949a11e3facd60a2fb41c2c4a1d1
[ "MIT" ]
null
null
null
test_errorguimonitor.py
imalkevich/errorguimonitor
73280bd81027949a11e3facd60a2fb41c2c4a1d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Tests for errorguimonitor. """ import inspect import os import re import sys import unittest import unittest.mock as mock from datetime import datetime, timedelta from pyquery import PyQuery as pq from errorguimonitor import reporter, report_builder, report_retriever class ErrorCompareRep...
38.024523
148
0.630742
665c2008108e5593bfe7670b5152a0cf2dd4395a
4,125
py
Python
tests/test_Pdfs.py
xin-huang/dadi-cli
d403e9dced19c3a71dc134a8993ad0ceba592c51
[ "Apache-2.0" ]
5
2021-12-07T23:27:40.000Z
2022-03-15T08:59:33.000Z
tests/test_Pdfs.py
xin-huang/dadi-cli
d403e9dced19c3a71dc134a8993ad0ceba592c51
[ "Apache-2.0" ]
2
2022-01-15T09:27:12.000Z
2022-03-25T16:08:52.000Z
tests/test_Pdfs.py
xin-huang/dadi-cli
d403e9dced19c3a71dc134a8993ad0ceba592c51
[ "Apache-2.0" ]
5
2021-03-31T19:22:23.000Z
2021-12-07T18:24:59.000Z
import dadi import dadi.DFE as DFE import pytest import numpy as np from src.Pdfs import get_dadi_pdf, get_dadi_pdf_params, print_available_pdfs, print_pdf_details def test_get_dadi_pdf(): assert get_dadi_pdf('beta') == DFE.PDFs.beta assert get_dadi_pdf('biv_ind_gamma') == DFE.PDFs.biv_ind_gamma assert get...
57.291667
388
0.667394
f88ebc24a80997a454ec051d4cede8238541ddb5
10,630
py
Python
cytoviz/app.py
hubertau/zkviz
a3913c81c37c0c27609605498dd864d5250a03f7
[ "MIT" ]
null
null
null
cytoviz/app.py
hubertau/zkviz
a3913c81c37c0c27609605498dd864d5250a03f7
[ "MIT" ]
null
null
null
cytoviz/app.py
hubertau/zkviz
a3913c81c37c0c27609605498dd864d5250a03f7
[ "MIT" ]
null
null
null
import json import dash from dash.dependencies import Input, Output, State import dash_core_components as dcc import dash_html_components as html import dash_cytoscape as cyto cyto.load_extra_layouts() import dash_reusable_components as drc import os import zkextract external_stylesheets = ['https://codepen.io/chri...
29.123288
90
0.452023
b88cc806a57add3a45769e940214e4bd55865b4f
1,605
py
Python
mars/core/operand/fetch.py
haijohn/mars
672b3a33a70565f01b1a3f508908445491d85acf
[ "Apache-2.0" ]
1
2021-11-30T12:07:21.000Z
2021-11-30T12:07:21.000Z
mars/core/operand/fetch.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/core/operand/fetch.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.1
83
0.725857
070daa01c8e0962a7ff4c86fec2d5e2c168b7fe3
10,568
py
Python
batse5bp/persistant.py
tloredo/batse5bp
c039a8e5394da4764881cdee1e17c6b1c0ecc088
[ "BSD-2-Clause" ]
1
2019-07-15T13:46:55.000Z
2019-07-15T13:46:55.000Z
batse5bp/persistant.py
tloredo/batse5bp
c039a8e5394da4764881cdee1e17c6b1c0ecc088
[ "BSD-2-Clause" ]
null
null
null
batse5bp/persistant.py
tloredo/batse5bp
c039a8e5394da4764881cdee1e17c6b1c0ecc088
[ "BSD-2-Clause" ]
null
null
null
""" Utility classes for simple object persistance. More sophisticated alternatives include atpy, h5py, and PyTables. This simple approach is adopted for now to reduce dependencies. *** MODULE NOT YET USED *** Based on ioutils.py from the Inference package. Created 2012-10-22 by Tom Loredo """ import cPickle as pk...
38.151625
83
0.603804
b6efa49d29b91f11b233fd12b45f2243c29fd4e2
32,857
py
Python
frontend/amundsen_application/api/metadata/v0.py
jer-k/amundsen
a7bbe8031db41c61c531933f1dbda3e9ce652c91
[ "Apache-2.0" ]
268
2019-02-06T21:12:09.000Z
2020-08-06T12:55:35.000Z
frontend/amundsen_application/api/metadata/v0.py
jer-k/amundsen
a7bbe8031db41c61c531933f1dbda3e9ce652c91
[ "Apache-2.0" ]
476
2019-02-07T01:00:11.000Z
2020-08-10T22:58:40.000Z
frontend/amundsen_application/api/metadata/v0.py
jer-k/amundsen
a7bbe8031db41c61c531933f1dbda3e9ce652c91
[ "Apache-2.0" ]
110
2019-02-11T20:04:50.000Z
2020-08-10T10:18:01.000Z
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint...
38.976275
118
0.66342
c94bee7ac2bb5bf94f2619a37d2df91b060284ae
5,314
py
Python
tests/test_auth.py
ajmyyra/netvisor-api-client
b12f90606b8f66580873a1ff16737fa614aee5ef
[ "MIT" ]
null
null
null
tests/test_auth.py
ajmyyra/netvisor-api-client
b12f90606b8f66580873a1ff16737fa614aee5ef
[ "MIT" ]
null
null
null
tests/test_auth.py
ajmyyra/netvisor-api-client
b12f90606b8f66580873a1ff16737fa614aee5ef
[ "MIT" ]
null
null
null
import uuid import pytest from flexmock import flexmock from freezegun import freeze_time def make_auth( sender='Testiclient', partner_id='xxx_yyy', partner_key='07f94228d149a96b2f25e3edad55096e', customer_id='Integraatiokayttajan tunnus', customer_key='7cd680e89e880553358bc07...
31.443787
82
0.605194
85869eda0c37cdc5a69b72122eb2914423517eea
984
py
Python
tests/test_core.py
JelleAalbers/fastubl
1f61ae17957a3a51de1abb10588100439e0d81ea
[ "BSD-3-Clause" ]
null
null
null
tests/test_core.py
JelleAalbers/fastubl
1f61ae17957a3a51de1abb10588100439e0d81ea
[ "BSD-3-Clause" ]
null
null
null
tests/test_core.py
JelleAalbers/fastubl
1f61ae17957a3a51de1abb10588100439e0d81ea
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy import stats from fastubl import * def test_basics(): max_bg_sigma = 5 fu = FastUnbinned( true_mu=[5, 10], dists=[stats.norm(), stats.uniform(loc=-max_bg_sigma, scale=2 * max_bg_sigma)]) n_toys = 1000 (bf, res...
22.363636
65
0.613821
bbcd7558a2a29fb2f6da746e3c383e60a68d37c4
10,846
py
Python
autokeras/utils.py
shiibashi/myautokeras
4d4d9d9fff58f2f1c88f16d4972b61f46250dcb6
[ "MIT" ]
null
null
null
autokeras/utils.py
shiibashi/myautokeras
4d4d9d9fff58f2f1c88f16d4972b61f46250dcb6
[ "MIT" ]
null
null
null
autokeras/utils.py
shiibashi/myautokeras
4d4d9d9fff58f2f1c88f16d4972b61f46250dcb6
[ "MIT" ]
null
null
null
import csv import os import pickle import sys import tempfile import zipfile import logging import itertools import warnings import imageio import numpy as np import requests import torch import subprocess import string import random from autokeras.constant import Constant from scipy.ndimage import zoom class NoIm...
35.214286
119
0.644293
6de1bbda095f6b85a1e268003267d18747b1bb83
7,847
py
Python
ppln/hooks/lr_scheduler.py
Mikhail-M/ppln
11bacc40ec6808c0b7bae0f9fb6b36b860294417
[ "MIT" ]
null
null
null
ppln/hooks/lr_scheduler.py
Mikhail-M/ppln
11bacc40ec6808c0b7bae0f9fb6b36b860294417
[ "MIT" ]
null
null
null
ppln/hooks/lr_scheduler.py
Mikhail-M/ppln
11bacc40ec6808c0b7bae0f9fb6b36b860294417
[ "MIT" ]
null
null
null
from math import cos, pi from torch.optim.lr_scheduler import ReduceLROnPlateau from .base import BaseHook from .registry import HOOKS class WarmupLrScheduler: def __init__(self, warmup=None, warmup_iters=0, warmup_ratio=0.1): # validate the "warmup" argument if warmup is not None: i...
36.668224
118
0.637568
d1813f345fb35864f7ca0de5e49851eac1924e46
3,004
py
Python
bmediacenter/src/renderer/LizWatches.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
2
2020-09-02T18:25:39.000Z
2020-09-02T18:39:07.000Z
bmediacenter/src/renderer/LizWatches.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
null
null
null
bmediacenter/src/renderer/LizWatches.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
11
2015-02-26T20:59:14.000Z
2021-09-20T08:23:03.000Z
####################################################################### # # Renderer for Dreambox-Enigma2 # Coded by shamann (c)2010 # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundati...
28.074766
71
0.611851
f03d60ffeb7351406c144f113527988745358eab
13,454
py
Python
gelweb/gel2mdt/forms.py
moka-guys/GeL2MDT
09bf25b8452e2e887dbf74b1cd4771d234c6166c
[ "MIT" ]
null
null
null
gelweb/gel2mdt/forms.py
moka-guys/GeL2MDT
09bf25b8452e2e887dbf74b1cd4771d234c6166c
[ "MIT" ]
null
null
null
gelweb/gel2mdt/forms.py
moka-guys/GeL2MDT
09bf25b8452e2e887dbf74b1cd4771d234c6166c
[ "MIT" ]
null
null
null
"""Copyright (c) 2018 Great Ormond Street Hospital for Children NHS Foundation Trust & Birmingham Women's and Children's NHS Foundation Trust 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 withou...
33.219753
116
0.625762
3aea008d64e2b20941fc692844695cbcda11f62c
3,974
py
Python
Ui_weather.py
billma007/weatherGUI2
85d6d60bb64192dc9af6cc1db83ad0801a0bc8b3
[ "MIT" ]
1
2022-03-09T05:34:43.000Z
2022-03-09T05:34:43.000Z
Ui_weather.py
billma007/weatherGUI2
85d6d60bb64192dc9af6cc1db83ad0801a0bc8b3
[ "MIT" ]
null
null
null
Ui_weather.py
billma007/weatherGUI2
85d6d60bb64192dc9af6cc1db83ad0801a0bc8b3
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(599, 468) self.textEdit = QtWidgets.QTextEdit(Form) self.textEdit.setGeometry(QtCore.QRect(160, 140, 261, 141)) font = QtGui.QFont() fon...
39.74
82
0.698541
064f5abaca72c36eb35a6687d7af1a0f5849ba43
1,456
py
Python
run.py
zendamacf/episode-renamer
cca83d6ca5279e59c816a5cb55011cf74e87ee53
[ "MIT" ]
null
null
null
run.py
zendamacf/episode-renamer
cca83d6ca5279e59c816a5cb55011cf74e87ee53
[ "MIT" ]
null
null
null
run.py
zendamacf/episode-renamer
cca83d6ca5279e59c816a5cb55011cf74e87ee53
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import file_io as io import moviedb def main(): """ Main function """ print('Running renamer...') config = io.read_config('config.json') found = io.find_files(config['HOME']) if len(found) == 0: print('No files found') return matches = {} for f in found: if f['name'] in match...
19.945205
75
0.617445
99ed523ab7065931a1804a347415a0b80ff0468e
2,659
py
Python
scripts/integration/runIntegration.py
simonmfr/scib-pipeline
dbda638d290a66bc1f50987e064e8bec149dca5f
[ "MIT" ]
null
null
null
scripts/integration/runIntegration.py
simonmfr/scib-pipeline
dbda638d290a66bc1f50987e064e8bec149dca5f
[ "MIT" ]
null
null
null
scripts/integration/runIntegration.py
simonmfr/scib-pipeline
dbda638d290a66bc1f50987e064e8bec149dca5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import scanpy as sc import scib import warnings warnings.filterwarnings('ignore') def runIntegration(inPath, outPath, method, hvg, batch, celltype=None): """ params: method: name of method batch: name of `adata.obs` column of the batch max_genes_h...
32.82716
108
0.635201
dcd90deaf0fe7e36f8a6b5da3d3d7db55df0b015
1,928
py
Python
Technical_Indicator_MACD.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
Technical_Indicator_MACD.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
Technical_Indicator_MACD.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
# ============================================================================= # Import OHLCV data and calculate MACD technical indicator # Author : Mayank Rasu # Please report bug/issues in the Q&A section # ============================================================================= # Import necesary libra...
32.133333
134
0.615145
e724adebf8a37192c86da18d606a1ae2b2f6cfe4
932
py
Python
tests/location_parser_test.py
islanderman/PokemonGo-Bot
3c9806b3de71b5c2c38ba92f22ed662901ee700d
[ "MIT" ]
2
2018-11-27T06:02:24.000Z
2019-12-31T19:10:32.000Z
tests/location_parser_test.py
0x2400/PokemonGo-Bot
3c9806b3de71b5c2c38ba92f22ed662901ee700d
[ "MIT" ]
1
2018-10-28T04:50:46.000Z
2018-10-28T04:50:46.000Z
tests/location_parser_test.py
0x2400/PokemonGo-Bot
3c9806b3de71b5c2c38ba92f22ed662901ee700d
[ "MIT" ]
1
2017-10-29T18:59:07.000Z
2017-10-29T18:59:07.000Z
# coding: utf-8 import unittest from mock import MagicMock from geopy.exc import GeocoderQueryError from tests import FakeBot class TestLocationParser(unittest.TestCase): def setUp(self): self.bot = FakeBot() config = dict( test=False, location='Paris', locati...
27.411765
67
0.652361
fd67b34faab9964315b237cec49c288af99c7d5d
2,255
py
Python
style_transfer_app/server.py
pkorobov/style_transfer_app
4c31ef9cf84d9c4e48c0f316f4a972b47a1fd9f1
[ "MIT" ]
null
null
null
style_transfer_app/server.py
pkorobov/style_transfer_app
4c31ef9cf84d9c4e48c0f316f4a972b47a1fd9f1
[ "MIT" ]
null
null
null
style_transfer_app/server.py
pkorobov/style_transfer_app
4c31ef9cf84d9c4e48c0f316f4a972b47a1fd9f1
[ "MIT" ]
null
null
null
"""server.py is a script that runs FastAPI server with a neural network.""" import os import tempfile import torch from PIL import Image from fastapi import FastAPI, UploadFile from fastapi.responses import FileResponse from torchvision import transforms from torchvision.utils import save_image from style_transfer_a...
28.544304
75
0.691796
0d2f02a28de1563f0c25080ff7a50bdc365b01a4
43,981
py
Python
sdks/python/apache_beam/runners/worker/operations.py
amoght/beam
4cdafbb9a33265427970a5a1539dac1b09aaa7c0
[ "Apache-2.0" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
sdks/python/apache_beam/runners/worker/operations.py
axbaretto/presto
f137d2709db42b5c3e4d43a631832a8f74853065
[ "Apache-2.0" ]
15
2020-03-05T00:32:48.000Z
2022-02-16T00:55:24.000Z
sdks/python/apache_beam/runners/worker/operations.py
axbaretto/presto
f137d2709db42b5c3e4d43a631832a8f74853065
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.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 us...
37.494459
124
0.693027
5fc2c7c7cd422c1aa6fefdbf14631b60c8f89ff0
17,380
py
Python
common/xrd-ui-tests-python/tests/xroad_member_ss_client_deletion_request/del_management.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
3
2018-03-15T14:22:50.000Z
2021-11-08T10:30:35.000Z
common/xrd-ui-tests-python/tests/xroad_member_ss_client_deletion_request/del_management.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
11
2017-04-06T09:25:41.000Z
2018-06-04T09:08:48.000Z
common/xrd-ui-tests-python/tests/xroad_member_ss_client_deletion_request/del_management.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
20
2017-03-14T07:21:58.000Z
2019-05-21T09:26:30.000Z
# coding=utf-8 from selenium.webdriver.common.by import By from helpers import auditchecker from view_models import sidebar, messages, cs_security_servers, members_table, popups, log_constants, clients_table_vm, popups import time from selenium.webdriver.support.select import Select def test_add_subsystem_to_member...
44.793814
197
0.670138
3a3b6f61d5123f5a460ca8d0ee61a14e2c5f7453
98
py
Python
coindigo_v0/coindigo_app/apps.py
Coindigo/Coindigo_V0.0
b6a1cf1ecb214a5864928b43712a90efc8950007
[ "MIT" ]
null
null
null
coindigo_v0/coindigo_app/apps.py
Coindigo/Coindigo_V0.0
b6a1cf1ecb214a5864928b43712a90efc8950007
[ "MIT" ]
null
null
null
coindigo_v0/coindigo_app/apps.py
Coindigo/Coindigo_V0.0
b6a1cf1ecb214a5864928b43712a90efc8950007
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CoindigoAppConfig(AppConfig): name = 'coindigo_app'
16.333333
35
0.77551
625ec5e6b98b6f75f8228660455c07581f9a7994
514
py
Python
django_remote_submission/apps.py
YeemBoi/django-remote-submission
665daa0701b7da5ac653115712d0c0f0aae041c6
[ "ISC" ]
null
null
null
django_remote_submission/apps.py
YeemBoi/django-remote-submission
665daa0701b7da5ac653115712d0c0f0aae041c6
[ "ISC" ]
null
null
null
django_remote_submission/apps.py
YeemBoi/django-remote-submission
665daa0701b7da5ac653115712d0c0f0aae041c6
[ "ISC" ]
null
null
null
"""Provide default config when installing the application.""" # -*- coding: utf-8 -*- from django.apps import AppConfig import logging logger = logging.getLogger(__name__) # pylint: disable=C0103 class DjangoRemoteSubmissionConfig(AppConfig): """Provide basic configuration of this app.""" name = 'django_r...
27.052632
61
0.737354
144e4e16c8ff6f8788d34ea4fa52b4b11f1917b9
18,527
py
Python
userspace/py/bin/help-browser.py
monday-lesley/ponyos
aec744f0a2740d8bb6b8e59c53b135a49e297603
[ "CC-BY-3.0" ]
null
null
null
userspace/py/bin/help-browser.py
monday-lesley/ponyos
aec744f0a2740d8bb6b8e59c53b135a49e297603
[ "CC-BY-3.0" ]
null
null
null
userspace/py/bin/help-browser.py
monday-lesley/ponyos
aec744f0a2740d8bb6b8e59c53b135a49e297603
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/python3 """ Help Documentation Browser """ import os import sys import subprocess import cairo import yutani import toaru_fonts import text_region from menu_bar import MenuBarWidget, MenuEntryAction, MenuEntrySubmenu, MenuEntryDivider, MenuWindow from about_applet import AboutAppletWindow from dialog impo...
36.185547
188
0.556755
32f95d08d2a75d2acae96f3a9eaa3077988629b8
1,827
py
Python
data_load.py
Kyubyong/h2h_converter
4ea8761cf4c3aa216395b7b122a306233950ebed
[ "MIT" ]
26
2016-12-06T11:18:54.000Z
2021-11-17T15:08:27.000Z
data_load.py
Kyubyong/h2h_converter
4ea8761cf4c3aa216395b7b122a306233950ebed
[ "MIT" ]
null
null
null
data_load.py
Kyubyong/h2h_converter
4ea8761cf4c3aa216395b7b122a306233950ebed
[ "MIT" ]
4
2017-03-14T07:14:37.000Z
2021-11-04T16:46:24.000Z
#/usr/bin/python2 # coding: utf-8 import numpy as np import codecs from hyperparams import Hyperparams as hp def load_vocab(): hanguls, hanjas = set(), set() for line in codecs.open('data/bible_ko.tsv', 'r', 'utf-8'): hangul_sent, hanja_sent = line.strip().split("\t") for hangul, ha...
34.471698
70
0.587849
145924a5a4ef690d5a740590314f820969e942d8
323
py
Python
backend/usuario/views.py
cruznicollas/Medicar
50733191056cffd76b12db804d9aaaea4a5ef8c8
[ "MIT" ]
1
2021-08-16T12:16:07.000Z
2021-08-16T12:16:07.000Z
backend/usuario/views.py
cruznicollas/Medicar
50733191056cffd76b12db804d9aaaea4a5ef8c8
[ "MIT" ]
null
null
null
backend/usuario/views.py
cruznicollas/Medicar
50733191056cffd76b12db804d9aaaea4a5ef8c8
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import viewsets from .serializers import UserSerializer from rest_framework.permissions import AllowAny class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.all() serializer_class = UserSerializer permission_classes = (AllowAny,...
26.916667
47
0.80805
13140f59e0cab8efc6cfbe0d649588320b4f8086
3,027
py
Python
test.py
Jo-wang/ProDA
58910b1fe2bdbf79d0e12708b77b6df4f386bb49
[ "MIT" ]
193
2021-03-25T07:29:56.000Z
2022-03-30T08:56:44.000Z
caco_proda_finetune/test.py
jxhuang0508/CaCo
0106d93fd6277ca843572a6aa01bdf2d1caca117
[ "MIT" ]
43
2021-04-13T02:13:18.000Z
2022-03-31T11:14:58.000Z
caco_proda_finetune/test.py
jxhuang0508/CaCo
0106d93fd6277ca843572a6aa01bdf2d1caca117
[ "MIT" ]
35
2021-03-26T09:29:58.000Z
2022-01-20T17:40:08.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import os import logging import random import argparse import numpy as np import torch import torch.nn.functional as F from parser_train import parser_, relative_path_to_absolute_path from tqdm import tqdm from data import create_dataset from mo...
31.206186
114
0.689462
194ba657ec08ee4ddcbf464cd2e552a1f1a0fe0b
828
py
Python
placissimo/lib/handlers/base_handler.py
nitaro/placissimo
0b1f03852cc41c98ce06d9e9e70fdaf8c2de4c20
[ "MIT" ]
null
null
null
placissimo/lib/handlers/base_handler.py
nitaro/placissimo
0b1f03852cc41c98ce06d9e9e70fdaf8c2de4c20
[ "MIT" ]
null
null
null
placissimo/lib/handlers/base_handler.py
nitaro/placissimo
0b1f03852cc41c98ce06d9e9e70fdaf8c2de4c20
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ This module contains a generic tornado.web.RequestHandler class. """ # import modules. import logging from tornado import web class BaseHandler(web.RequestHandler): """ This class is a generic tornado.web.RequestHandler. Args: - server_locals (dict): The public attributes of ...
24.352941
75
0.655797
00e28573fd499f73596bfde5043d8a33c5d36871
18,590
py
Python
spotpy/algorithms/sceua.py
arthur-e/spotpy
d689678a98fcd26769d581218024d5f058f0d027
[ "MIT" ]
null
null
null
spotpy/algorithms/sceua.py
arthur-e/spotpy
d689678a98fcd26769d581218024d5f058f0d027
[ "MIT" ]
null
null
null
spotpy/algorithms/sceua.py
arthur-e/spotpy
d689678a98fcd26769d581218024d5f058f0d027
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Copyright (c) 2018 by Tobias Houska This file is part of Statistical Parameter Optimization Tool for Python(SPOTPY). :author: Tobias Houska and Stijn Van Hoey ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ imp...
40.413043
182
0.553523
b520c0066691b4aed2da1d758a670724461498ec
91,550
py
Python
awx/main/tests/unit/test_tasks.py
soniya20/awx
104480d9854d1c2685fe6b635c960764c5282a06
[ "Apache-2.0" ]
null
null
null
awx/main/tests/unit/test_tasks.py
soniya20/awx
104480d9854d1c2685fe6b635c960764c5282a06
[ "Apache-2.0" ]
1
2021-01-06T07:49:01.000Z
2021-01-06T07:49:01.000Z
awx/main/tests/unit/test_tasks.py
dkelosky/awx
44223003aa87b6580dfb99595f5898b9a88f6e73
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import configparser import json import os import shutil import tempfile from backports.tempfile import TemporaryDirectory import fcntl from unittest import mock import pytest import yaml import jinja2 from django.conf import settings from awx.main.models import ( AdHocCommand, Creden...
38.401846
153
0.60379
b1473ccb622f404637e01a7bbb1cf8b0515fd8c1
779
py
Python
adventofcode2021/main.py
DigiDuncan/AdventOfCode2021
ac965666991a5f263af9e1ea9baa21faaaf1e2a3
[ "MIT" ]
null
null
null
adventofcode2021/main.py
DigiDuncan/AdventOfCode2021
ac965666991a5f263af9e1ea9baa21faaaf1e2a3
[ "MIT" ]
null
null
null
adventofcode2021/main.py
DigiDuncan/AdventOfCode2021
ac965666991a5f263af9e1ea9baa21faaaf1e2a3
[ "MIT" ]
null
null
null
import importlib import pkgutil import re import adventofcode2021.days as day_modules from adventofcode2021.lib.advent_utils import DayTemplate days: dict[int, DayTemplate] = {} def load_days(): # https://stackoverflow.com/a/1708706 daynames = [name for _, name, _ in pkgutil.walk_packages(day_modules.__path...
22.257143
118
0.63543
f233b47f8d7a7afed4e5a8d2eaeabbe2f8f6e675
4,028
py
Python
alipay/aop/api/request/AlipayOpenAppLingqierwuLingqierquQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenAppLingqierwuLingqierquQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenAppLingqierwuLingqierquQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenAppLingqierwuLingqierquQueryModel import AlipayOpenAppLingqierwuLingqierquQueryModel class AlipayOpenAppLingqierwuLingqier...
27.77931
148
0.649454
72e62d5453527b9a7c1a80cd88dfaf9755cd9b69
1,379
py
Python
src/nfldata/stats.py
hsharrison/nfldata
3993016b83e5f223a065c191a7966e0137466ceb
[ "MIT" ]
1
2015-11-12T19:52:16.000Z
2015-11-12T19:52:16.000Z
src/nfldata/stats.py
hsharrison/nfldata
3993016b83e5f223a065c191a7966e0137466ceb
[ "MIT" ]
null
null
null
src/nfldata/stats.py
hsharrison/nfldata
3993016b83e5f223a065c191a7966e0137466ceb
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def same_team_corrs(data): return data.corr() def cross_team_corrs(data): unstacked = data.unstack('home').reset_index(drop=True) unstacked.columns = pd.MultiIndex.from_tuples( [(stat, home) for stat, home in unstacked.columns], names=['stat', 'home...
31.340909
88
0.666425
33e8e0bca06ba9c0841a1f690e53292021d3fd9a
4,566
py
Python
nonebot/utils.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
nonebot/utils.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
nonebot/utils.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
"""ๆœฌๆจกๅ—ๅŒ…ๅซไบ† NoneBot ็š„ไธ€ไบ›ๅทฅๅ…ทๅ‡ฝๆ•ฐ FrontMatter: sidebar_position: 8 description: nonebot.utils ๆจกๅ— """ import re import json import asyncio import inspect import dataclasses from functools import wraps, partial from contextlib import asynccontextmanager from typing_extensions import ParamSpec, get_args, get_origin from...
25.087912
95
0.634034
aada6337256b2df6a24c9ab37c33a9ca5f9a30cb
6,904
py
Python
src/python/nimbusml/internal/core/linear_model/sgdbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
134
2018-11-01T22:15:24.000Z
2019-05-04T11:30:08.000Z
src/python/nimbusml/internal/core/linear_model/sgdbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
226
2019-05-07T19:00:44.000Z
2021-01-06T07:59:48.000Z
src/python/nimbusml/internal/core/linear_model/sgdbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
43
2019-05-15T20:19:42.000Z
2022-03-30T10:26:07.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------------------------- # - Generated by tools/entrypoint_co...
38.143646
94
0.652086
221a703b7261ce508cb28dd1ec257edb86460ebd
460
py
Python
coinbase-trans.py
nToken/ntoken-core
f17fea2c91f72d0bfe80818b5a9211234df5ae67
[ "MIT" ]
5
2018-01-09T05:53:54.000Z
2018-08-13T02:11:23.000Z
coinbase-trans.py
nToken/ntoken-core
f17fea2c91f72d0bfe80818b5a9211234df5ae67
[ "MIT" ]
null
null
null
coinbase-trans.py
nToken/ntoken-core
f17fea2c91f72d0bfe80818b5a9211234df5ae67
[ "MIT" ]
2
2018-01-09T05:53:55.000Z
2018-11-14T17:24:53.000Z
import hashlib def dblsha(data): return hashlib.sha256(hashlib.sha256(data).digest()).digest() txnlist = [coinbase] + [binascii.a2b_hex(a['data']) for a in template['transactions']] merklehashes = [dblsha(t) for t in txnlist] while len(merklehashes) > 1: if len(merklehashes) % 2: merklehashes.append(merklehashes...
38.333333
104
0.723913
16cbe0db0a83e72a016f83bb0e6054865acd8fb1
7,555
py
Python
databuilder/databuilder/extractor/pandas_profiling_column_stats_extractor.py
astrohsy/amundsen
c9e1a12d995dd91423fb3c83cc734f67537ac94b
[ "Apache-2.0" ]
null
null
null
databuilder/databuilder/extractor/pandas_profiling_column_stats_extractor.py
astrohsy/amundsen
c9e1a12d995dd91423fb3c83cc734f67537ac94b
[ "Apache-2.0" ]
null
null
null
databuilder/databuilder/extractor/pandas_profiling_column_stats_extractor.py
astrohsy/amundsen
c9e1a12d995dd91423fb3c83cc734f67537ac94b
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import json from typing import ( Any, Dict, Tuple, ) import dateutil.parser from pyhocon import ConfigFactory, ConfigTree from databuilder.extractor.base_extractor import Extractor from databuilder.models.table_stats import T...
38.943299
119
0.598809
e5df853d6542b3730a1639fa334340c5a7236bb0
9,075
py
Python
reconcile/status_page_components.py
BumbleFeng/qontract-reconcile
a9f5bb221df5f92727d0582c5aa1a99822883782
[ "Apache-2.0" ]
null
null
null
reconcile/status_page_components.py
BumbleFeng/qontract-reconcile
a9f5bb221df5f92727d0582c5aa1a99822883782
[ "Apache-2.0" ]
null
null
null
reconcile/status_page_components.py
BumbleFeng/qontract-reconcile
a9f5bb221df5f92727d0582c5aa1a99822883782
[ "Apache-2.0" ]
null
null
null
from abc import abstractmethod import logging from typing import Optional, Any from collections.abc import Iterable import sys from pydantic import BaseModel, Field from pydantic.networks import HttpUrl import statuspageio # type: ignore from reconcile import queries from reconcile.utils.semver_helper import make_se...
34.770115
79
0.631736
5d1f506e8124c58f8e4ec2ffc50a1b686b091c5e
4,341
py
Python
src/templates/template-vision-segmentation/vis.py
rwiteshbera/code-generator
2cbc24b3908bc0b84088c4c272b8f5cb848410fd
[ "BSD-3-Clause" ]
28
2021-04-20T13:33:12.000Z
2022-01-01T11:53:52.000Z
src/templates/template-vision-segmentation/vis.py
rwiteshbera/code-generator
2cbc24b3908bc0b84088c4c272b8f5cb848410fd
[ "BSD-3-Clause" ]
112
2021-04-22T02:07:43.000Z
2022-03-28T01:28:05.000Z
src/templates/template-vision-segmentation/vis.py
rwiteshbera/code-generator
2cbc24b3908bc0b84088c4c272b8f5cb848410fd
[ "BSD-3-Clause" ]
21
2021-04-21T07:48:29.000Z
2022-02-04T19:40:54.000Z
import numpy as np import torch from PIL import Image try: from image_dataset_viz import render_datapoint except ImportError: raise RuntimeError( "Install it via pip install --upgrade git+https://github.com/vfdev-5/ImageDatasetViz.git" ) def _getvocpallete(num_cls): n = num_cls pallete = ...
29.937931
97
0.555632
fce172dd5a602025bc553a9f05de27b815be1716
4,813
py
Python
tracker.py
ayhy/TrackCharacterCount
96473dbcc1957dff5b0c14a4ac3b3452ae524672
[ "MIT" ]
null
null
null
tracker.py
ayhy/TrackCharacterCount
96473dbcc1957dff5b0c14a4ac3b3452ae524672
[ "MIT" ]
null
null
null
tracker.py
ayhy/TrackCharacterCount
96473dbcc1957dff5b0c14a4ac3b3452ae524672
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #Logger import sys import re from datetime import datetime from functools import reduce import math def getCurrentCharacterCount(targetFileName): totalchar=0 totalmainchar=0 with open(targetFileName, 'r', encoding='utf-8') as readfile: text=readfile.read().strip("/n") ...
42.219298
119
0.572616
1bcf6e3114bf9c36a57c75df915ded5f8f93a02c
20,160
py
Python
tests/test_register_constructor.py
tmk-org/fruit
49c47a7f45b6473254c8880d3862b2780c0f366a
[ "Apache-2.0" ]
1,666
2015-01-04T08:52:43.000Z
2022-03-28T11:06:19.000Z
tests/test_register_constructor.py
tmk-org/fruit
49c47a7f45b6473254c8880d3862b2780c0f366a
[ "Apache-2.0" ]
135
2015-02-19T11:35:07.000Z
2022-03-29T05:00:42.000Z
tests/test_register_constructor.py
tmk-org/fruit
49c47a7f45b6473254c8880d3862b2780c0f366a
[ "Apache-2.0" ]
253
2015-01-14T08:15:10.000Z
2022-03-24T07:49:53.000Z
#!/usr/bin/env python3 # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
31.798107
159
0.513442
0a85a27ee01731fe420ee2e968e9c8ad5db3bcbb
13,236
py
Python
dds_cli/base.py
ewels/dds_cli
7654a511495527ed192a92e68e6275978724bf7f
[ "MIT" ]
null
null
null
dds_cli/base.py
ewels/dds_cli
7654a511495527ed192a92e68e6275978724bf7f
[ "MIT" ]
null
null
null
dds_cli/base.py
ewels/dds_cli
7654a511495527ed192a92e68e6275978724bf7f
[ "MIT" ]
null
null
null
"""Base class for the DDS CLI. Verifies the users access to the DDS.""" ############################################################################### # IMPORTS ########################################################### IMPORTS # ############################################################################### # Stan...
35.485255
112
0.531732
6aac12388a8c86d4bca0186d1c410935474d2297
2,767
py
Python
catalog/bindings/wfs/abstract_reference_base_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/wfs/abstract_reference_base_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/wfs/abstract_reference_base_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from bindings.wfs.actuate_type import ActuateType from bindings.wfs.show_type import ShowType __NAMESPACE__ = "http://www.opengis.net/ows/1.1" @dataclass class AbstractReferenceBaseType: """Base for a reference to a remote or local resource. ...
31.804598
71
0.594145
d0981367b4a5382d198188c103c4127772614734
2,851
py
Python
parse_rev_output.py
sarojaerabelli/appapella
03f4778a4232a41f49140972e3fd475052a4ea2f
[ "MIT" ]
null
null
null
parse_rev_output.py
sarojaerabelli/appapella
03f4778a4232a41f49140972e3fd475052a4ea2f
[ "MIT" ]
null
null
null
parse_rev_output.py
sarojaerabelli/appapella
03f4778a4232a41f49140972e3fd475052a4ea2f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Sep 15 14:07:33 2018 @author: samyu """ import pyphen import requests import time API_KEY = "Bearer 01s3z3zuFg7UIPaZD6chbx-L7XDanknk-dK95e0ARlIRG5q1Gj2qZICGXeCj1hKlKq0-Rpytz3WJdRloLIEyJ37Ige2sM" HEADERS = {'Authorization': API_KEY} def submit_job(med...
27.95098
112
0.602245
d6f2e74500cd8d49c6aa4ee517234e4e54aa10c0
59,566
py
Python
mne/utils.py
matthew-tucker/mne-python
ce320f5ad5e60b82eec7ea70fef7dc78036be109
[ "BSD-3-Clause" ]
null
null
null
mne/utils.py
matthew-tucker/mne-python
ce320f5ad5e60b82eec7ea70fef7dc78036be109
[ "BSD-3-Clause" ]
null
null
null
mne/utils.py
matthew-tucker/mne-python
ce320f5ad5e60b82eec7ea70fef7dc78036be109
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Some utility functions""" from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # # License: BSD (3-clause) import warnings import logging import time from distutils.version import LooseVersion import os import os.path as op from funct...
33.464045
79
0.603633
1c36bde0449b4db12177a90b53aa97e67068eccf
1,476
py
Python
tests/test_main.py
flamusdiu/flask-mistune
03ca85e652c40afc77017c9856488b3a9aff9611
[ "MIT" ]
2
2021-04-12T22:54:51.000Z
2021-04-13T01:48:56.000Z
tests/test_main.py
flamusdiu/flask-mistune
03ca85e652c40afc77017c9856488b3a9aff9611
[ "MIT" ]
null
null
null
tests/test_main.py
flamusdiu/flask-mistune
03ca85e652c40afc77017c9856488b3a9aff9611
[ "MIT" ]
null
null
null
"""Run all pytests for application.""" import pytest from flask import Flask, Markup, render_template_string from flask_mistune import Mistune, markdown @pytest.fixture() def client(): """Configure Flask App. Flask app is a dummy application to test filters for this module. """ app = Flask(__name__)...
27.333333
71
0.636179
64a15df04b5742c61a2b5a1b4785446c59c9904d
40,568
py
Python
notebook/mimetypes_test.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/mimetypes_test.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/mimetypes_test.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import mimetypes print(mimetypes.guess_type('test.jpg')) # ('image/jpeg', None) print(type(mimetypes.guess_type('test.jpg'))) # <class 'tuple'> print(mimetypes.guess_type('test.jpg')[0]) # image/jpeg print(type(mimetypes.guess_type('test.jpg')[0])) # <class 'str'> print(mimetypes.guess_type('test.tar.gz')) # ('app...
37.808015
95
0.627687
99416d358f005b379308d0134c76c4878cd86e5b
44
py
Python
resolvers/queries/__init__.py
mikewk/fridge_api
8265f29cc2b9055b00f3245da9643b84f22639bc
[ "MIT" ]
null
null
null
resolvers/queries/__init__.py
mikewk/fridge_api
8265f29cc2b9055b00f3245da9643b84f22639bc
[ "MIT" ]
null
null
null
resolvers/queries/__init__.py
mikewk/fridge_api
8265f29cc2b9055b00f3245da9643b84f22639bc
[ "MIT" ]
null
null
null
from .misc import query as m queries = [m]
11
28
0.681818
84742facbea48028dd6342af20e83b4034dd6066
3,291
py
Python
venv/lib/python3.9/site-packages/py2app/recipes/virtualenv.py
dequeb/asmbattle
27e8b209de5787836e288a2f2f9b7644ce07563e
[ "MIT" ]
193
2020-01-15T09:34:20.000Z
2022-03-18T19:14:16.000Z
.eggs/py2app-0.21-py3.7.egg/py2app/recipes/virtualenv.py
mdanisurrahmanrony/Covid-Doctor
1e0e854d01325c1a18dd52f33064aed4c21b8161
[ "Apache-2.0" ]
185
2020-01-15T08:38:27.000Z
2022-03-27T17:29:29.000Z
.eggs/py2app-0.21-py3.7.egg/py2app/recipes/virtualenv.py
mdanisurrahmanrony/Covid-Doctor
1e0e854d01325c1a18dd52f33064aed4c21b8161
[ "Apache-2.0" ]
23
2020-01-24T14:47:18.000Z
2022-02-22T17:19:47.000Z
""" virtualenv installs a wrapper for the real distutils into the virtual environment. Ignore that wrapper, but go for the real distutils instead This recipe is rather compilicated and definitely not a good model for other recipes!!! """ from __future__ import absolute_import import imp import os import sys from mod...
28.128205
83
0.595868
89ed38f3005fa5bbcd5684035f773a74ee3d3279
1,327
py
Python
scripts/dev_setup.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
scripts/dev_setup.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
scripts/dev_setup.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
31.595238
94
0.622457
ec7aa72402eec253687c0fddc3497bd2285ecdd9
804
py
Python
09.PPO/Net.py
TaoHuang13/DeepRL
03102d1522a9f69e65d65a0d94556f1a575374c5
[ "MIT" ]
2
2021-11-09T13:55:23.000Z
2021-11-28T11:40:40.000Z
09.PPO/Net.py
TaoHuang13/DeepRL
03102d1522a9f69e65d65a0d94556f1a575374c5
[ "MIT" ]
null
null
null
09.PPO/Net.py
TaoHuang13/DeepRL
03102d1522a9f69e65d65a0d94556f1a575374c5
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions import MultivariateNormal class ActorCritic(nn.Module): def __init__(self, state_dim, action_dim, action_std): super(ActorCritic, self).__init__() self.fc1_shared = nn.Linear(state_dim, 64) self.fc2_...
32.16
76
0.65796
00bd685a2cb64a74178d2cea4bf155ceb7c83584
547
py
Python
manage.py
burdagay/my-steemit-portal
47e542056dec3e97524da695e6f7ae6f26757057
[ "MIT" ]
null
null
null
manage.py
burdagay/my-steemit-portal
47e542056dec3e97524da695e6f7ae6f26757057
[ "MIT" ]
1
2020-06-05T17:32:08.000Z
2020-06-05T17:32:08.000Z
manage.py
burdagay/my-steemit-portal
47e542056dec3e97524da695e6f7ae6f26757057
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_steem_portal.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Djan...
34.1875
79
0.691042
ecf4f3bb0f85652306fa76083ae6af440b6ef8b5
29,141
py
Python
model/efficientnet.py
Dogy06/COVID-Efficientnet-Pytorch-1
3c1f7d9513abe59783152efca28dc886bf4afc2f
[ "MIT" ]
4
2020-06-10T06:23:13.000Z
2022-03-30T13:18:37.000Z
model/efficientnet.py
Weichen-Huang/COVID-Efficientnet-Pytorch
56bfc2022d1d9edf181fa04693b359d01c565489
[ "MIT" ]
2
2021-06-08T21:37:28.000Z
2021-09-08T02:03:55.000Z
model/efficientnet.py
Weichen-Huang/COVID-Efficientnet-Pytorch
56bfc2022d1d9edf181fa04693b359d01c565489
[ "MIT" ]
1
2020-07-09T18:35:06.000Z
2020-07-09T18:35:06.000Z
"""Efficientnet code implemented from the official Tensorflow implementation""" from math import ceil import torch import torch.nn as nn import torch.nn.functional as F from torch._six import container_abcs from torch.utils import model_zoo def _pair(x): if isinstance(x, container_abcs.Iterable): return ...
37.845455
114
0.564325
42c70b2031f9dd49975ca9e659113293547dba4c
5,265
py
Python
packages/fetchai/skills/tac_participation/dialogues.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
packages/fetchai/skills/tac_participation/dialogues.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
packages/fetchai/skills/tac_participation/dialogues.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
36.061644
104
0.679392
c5eaa3f90e0f4d6860db18a27ff44313707f2683
248
py
Python
loadlamb/contrib/db/loading.py
babyhuey/loadlamb
b06a4259bd4f2bae6b35ff838de62a11a5305a1f
[ "BSD-3-Clause" ]
null
null
null
loadlamb/contrib/db/loading.py
babyhuey/loadlamb
b06a4259bd4f2bae6b35ff838de62a11a5305a1f
[ "BSD-3-Clause" ]
null
null
null
loadlamb/contrib/db/loading.py
babyhuey/loadlamb
b06a4259bd4f2bae6b35ff838de62a11a5305a1f
[ "BSD-3-Clause" ]
null
null
null
from docb.loading import DocbHandler from envs import env docb_handler = DocbHandler({ 'dynamodb': { 'backend': 'docb.backends.dynamodb.db.DynamoDB', 'connection': { 'table': env('DYNAMODB_TABLE') } } })
22.545455
56
0.600806
cb687570e4fafa51669430cc49cec28af5eedecf
543
py
Python
entertainment.py
shubhamjain0897/Python-Scripts
ce1d3ffab5d94767ca1c6e939c46c0bbb0dfe116
[ "MIT" ]
null
null
null
entertainment.py
shubhamjain0897/Python-Scripts
ce1d3ffab5d94767ca1c6e939c46c0bbb0dfe116
[ "MIT" ]
null
null
null
entertainment.py
shubhamjain0897/Python-Scripts
ce1d3ffab5d94767ca1c6e939c46c0bbb0dfe116
[ "MIT" ]
1
2018-10-21T18:47:36.000Z
2018-10-21T18:47:36.000Z
import media import fresh_tomatoes toy_story = media.Movie( 'Toy Story' , 'Toys come to life' , 'https://upload.wikimedia.org/wikipedia/en/5/5c/Avatar_picture.jpg' , 'https://www.youtube.com/watch?v=KYz2wyBy3kc' ) #print(toy_story.storyline) avatar = media.Movie( 'Avatar' , 'Story about capturing alien territory' , 'ht...
60.333333
192
0.769797
635ba1cedaa27e5af39a372599cd47267c840492
853
py
Python
var/spack/repos/builtin/packages/py-unittest2/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/py-unittest2/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/py-unittest2/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyUnittest2(PythonPackage): """unittest2 is a backport of the new features added to the un...
37.086957
83
0.691676
ace1c4e300505879c28e54a4a914fc58dfd0b51a
19,293
py
Python
bundle/vim-python-mode/pymode/libs/pylama/lint/pylama_pylint/astroid/as_string.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
null
null
null
bundle/vim-python-mode/pymode/libs/pylama/lint/pylama_pylint/astroid/as_string.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
null
null
null
bundle/vim-python-mode/pymode/libs/pylama/lint/pylama_pylint/astroid/as_string.py
ninegrid/dotfiles-vim
4604f8a2e114cb2e98d5d79f2f41048c4f564b02
[ "Unlicense" ]
1
2020-10-01T18:51:49.000Z
2020-10-01T18:51:49.000Z
# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of astroid. # # astroid is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by the #...
38.818913
90
0.554139
6ad93ab6738e3e1325924a415186e0c34b1631f0
2,149
py
Python
yt/data_objects/tests/test_extract_regions.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2021-11-29T21:59:06.000Z
2021-11-29T21:59:06.000Z
yt/data_objects/tests/test_extract_regions.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/data_objects/tests/test_extract_regions.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
import numpy as np from yt.testing import \ fake_random_ds, \ assert_equal, \ assert_almost_equal def setup(): from yt.config import ytcfg ytcfg["yt","__withintesting"] = "True" def test_cut_region(): # We decompose in different ways for nprocs in [1, 2, 4, 8]: ds = fake_random_d...
42.137255
86
0.555142
f85dbab239f1218a1fa27504ec50a7ab95b9de1f
1,835
py
Python
1224/slu.py
matrixjoeq/timus_solutions
8f5f33099bd51f5a40e342a18600b988f4ea31db
[ "MIT" ]
null
null
null
1224/slu.py
matrixjoeq/timus_solutions
8f5f33099bd51f5a40e342a18600b988f4ea31db
[ "MIT" ]
null
null
null
1224/slu.py
matrixjoeq/timus_solutions
8f5f33099bd51f5a40e342a18600b988f4ea31db
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' 1224. Spiral Time limit: 1.0 second Memory limit: 64 MB [Description] A brand new sapper robot is able to neutralize mines in a rectangular region having integer height and width (N and M respectively). Before the robot begins its work it is placed near the top leftmost c...
23.831169
88
0.582561