hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
036bdff19889dd2649aeab0c71988896c0caa1cf
1,487
py
Python
tools/kbpy/adapters/analysis18/team_averages_nonzero.py
yuliu2016/knotbook
122488c0a71c69551dbdf3903634b9ca0a7e9fc1
[ "MIT" ]
null
null
null
tools/kbpy/adapters/analysis18/team_averages_nonzero.py
yuliu2016/knotbook
122488c0a71c69551dbdf3903634b9ca0a7e9fc1
[ "MIT" ]
16
2019-08-22T23:39:15.000Z
2019-10-28T20:27:02.000Z
tools/kbpy/adapters/analysis18/team_averages_nonzero.py
yuliu2016/knotbook
122488c0a71c69551dbdf3903634b9ca0a7e9fc1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd TITLE_NAME = "Team Averages NonZero" SOURCE_NAME = "team_averages_nonzero" LABELS = ["Team", "Average Scale", "Average Alliance Switch", "Average Opponent Switch", "Average Exchange"] def get_team_data(manager): teams_data = {} fo...
31.638298
96
0.562878
036c00d4300e9d9d92ea7b75c8c950b0277e17b0
45,700
py
Python
salt/utils/network.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/utils/network.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/utils/network.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Define some generic socket functions for network modules ''' # Import python libs from __future__ import absolute_import import os import re import socket import logging import platform from string import ascii_letters, digits # Import 3rd-party libs import salt.ext.six as six from salt.ex...
34.335086
134
0.547943
036c3402b0ea16270bafd73f45c54eea28df1f19
4,624
py
Python
xonsh/jupyter_kernel.py
jianlingzhong/xonsh
42e2d792117ceeb0ab7ec8f92fb1177b21388f84
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/jupyter_kernel.py
jianlingzhong/xonsh
42e2d792117ceeb0ab7ec8f92fb1177b21388f84
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/jupyter_kernel.py
jianlingzhong/xonsh
42e2d792117ceeb0ab7ec8f92fb1177b21388f84
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """Hooks for Jupyter Xonsh Kernel.""" import builtins from pprint import pformat from tempfile import SpooledTemporaryFile from ipykernel.kernelbase import Kernel from xonsh import __version__ as version from xonsh.main import main_context from xonsh.tools import redirect_stdout, redirect_stde...
38.214876
82
0.56596
036c37ba7733491da597a0c692d7bbefc50ea8e9
742
py
Python
src/interview/Solution04.10.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/interview/Solution04.10.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/interview/Solution04.10.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
import numpy as np # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def helper(self, root: TreeNode, dic: {}): if root != None: dic[str(root)] = [str(root.left), str(root.righ...
26.5
63
0.533693
036c4951ec16272887e7adb4877e3cb943792f35
9,559
py
Python
manage.py
ricoai/ricar_ryc
811aefaf9893f3fe9c61d2070d8dc3a949f36697
[ "MIT" ]
1
2018-12-03T21:55:19.000Z
2018-12-03T21:55:19.000Z
manage.py
ricoai/ricar_ryc
811aefaf9893f3fe9c61d2070d8dc3a949f36697
[ "MIT" ]
null
null
null
manage.py
ricoai/ricar_ryc
811aefaf9893f3fe9c61d2070d8dc3a949f36697
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Scripts to drive a donkey 2 car and train a model for it. Usage: manage.py drive [--model=<model>] [--web=<True/False>] [--throttle=<Throttle 0.0-1.0>] [--js] manage.py train (--tub=<tub>) (--model=<model>) manage.py calibrate manage.py (calibrate) manage.py (check) [--t...
31.863333
144
0.628413
036c563c244d0ecaa60409b6c8e40e977bdd747d
160
py
Python
dposlib/cfg.py
Moustikitos/dpos
3f53fb269c75a9b2dcc116590901131a38b2f5a3
[ "MIT" ]
5
2019-02-15T21:20:58.000Z
2022-02-08T22:01:54.000Z
dposlib/cfg.py
Moustikitos/dpos
3f53fb269c75a9b2dcc116590901131a38b2f5a3
[ "MIT" ]
1
2019-02-15T13:58:39.000Z
2019-02-20T21:38:21.000Z
dposlib/cfg.py
Moustikitos/dpos
3f53fb269c75a9b2dcc116590901131a38b2f5a3
[ "MIT" ]
5
2018-07-27T20:44:58.000Z
2022-03-22T05:59:03.000Z
# -*- coding: utf-8 -*- headers = { "Content-Type": "application/json", "User-Agent": "Python/dposlib" } timeout = 5 peers = [] txversion = 1
16
40
0.55
036c93b9e39190fbcaf35c853092c042ead2c725
2,262
py
Python
parse_ann_report.py
doctoryes/pii-goodbye
4dfa003814554306991ae7ad40a6273cd49cbea6
[ "MIT" ]
null
null
null
parse_ann_report.py
doctoryes/pii-goodbye
4dfa003814554306991ae7ad40a6273cd49cbea6
[ "MIT" ]
null
null
null
parse_ann_report.py
doctoryes/pii-goodbye
4dfa003814554306991ae7ad40a6273cd49cbea6
[ "MIT" ]
null
null
null
""" First stage in generating PII redactions. Parses an application's PII annotations and outputs YAML with enhanced versions of each annotation indicating PII is present. The output YAML is ready to be manually augmented with the db_table_name and pii_fields. """ import click from yaml import load, dump NO_PII_ANNO...
36.483871
91
0.636605
036ccdb1e46334953b63b2ce8d2b99e7225573e1
5,613
py
Python
collections/ansible_collections/theforeman/foreman/docs/conf.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/theforeman/foreman/docs/conf.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/theforeman/foreman/docs/conf.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
32.258621
132
0.657046
036d09e4c52a6fd395ee048516fdf1bb7d71b4cf
2,165
py
Python
scripts/update.py
rednafi/crusher
36240ee150d83e395f8cb5cad691ce7f0a21e16a
[ "MIT" ]
5
2021-02-07T20:26:57.000Z
2021-02-08T18:40:08.000Z
scripts/update.py
rednafi/crusher
36240ee150d83e395f8cb5cad691ce7f0a21e16a
[ "MIT" ]
null
null
null
scripts/update.py
rednafi/crusher
36240ee150d83e395f8cb5cad691ce7f0a21e16a
[ "MIT" ]
null
null
null
#!/bin/python3 from __future__ import annotations import subprocess import sys import toml class UpdateDeps: """Automatically updating the dependencies, and revert if the tests fail.""" def __init__( self, dep_file: str = "pyproject.toml", lock_file: str = "poetry.lock" ) -> None: self....
29.256757
87
0.571363
036d23aa135c399dee6c62008402381da7debcc3
1,514
py
Python
recipes/add_text_span_styles.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
18
2018-04-19T08:30:48.000Z
2022-02-14T11:00:27.000Z
recipes/add_text_span_styles.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
15
2018-04-22T00:52:41.000Z
2021-07-05T10:16:38.000Z
recipes/add_text_span_styles.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
6
2018-04-22T00:14:12.000Z
2021-12-06T01:42:07.000Z
#!/usr/bin/env python """ Transform a not styled document into a multi styled document, by changing size and color of each parts of words. """ import sys, os from random import randrange from odfdo import Document, Style def get_default_doc(): return "dormeur_notstyled.odt" def style_name(): "returns a ran...
27.527273
96
0.634742
036d49e36a8ac5a32fc210c37f55243c19512e67
23,125
py
Python
nova/tests/unit/volume/test_cinder.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/volume/test_cinder.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/volume/test_cinder.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Mirantis, Inc. # Copyright 2013 OpenStack Foundation # # 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 # # Un...
42.983271
79
0.613276
036d51716c2e3fec52bcc4ded7791f2da7954fa5
4,046
py
Python
alipay/aop/api/request/AlipayBossFncGfsettleprodBillinvoiceQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayBossFncGfsettleprodBillinvoiceQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayBossFncGfsettleprodBillinvoiceQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.AlipayBossFncGfsettleprodBillinvoiceQueryModel import AlipayBossFncGfsettleprodBillinvoiceQueryModel class AlipayBossFncGfsettleprod...
27.903448
148
0.651013
036d7f1c4cf5a7cbc1c9e985dedc8023e71b4076
647
py
Python
app/__init__.py
tmattoneill/flask_project_template
90c75f6769b0b09d608997ca62c598675cc7a3b4
[ "MIT" ]
null
null
null
app/__init__.py
tmattoneill/flask_project_template
90c75f6769b0b09d608997ca62c598675cc7a3b4
[ "MIT" ]
1
2021-06-02T00:01:17.000Z
2021-06-02T00:01:17.000Z
app/__init__.py
tmattoneill/flask_project_template
90c75f6769b0b09d608997ca62c598675cc7a3b4
[ "MIT" ]
null
null
null
""" This will serve as the main application package initialisation. Most key modules used in the application are imported and initialised here using the Config set up at the root. """ from flask import Flask, render_template from flask_bootstrap import Bootstrap from config import config bootstrap = Bootstrap() def...
25.88
108
0.76507
036dacd2d1dae6d59618aabe9eb6ad5d5674ab38
1,344
py
Python
trees/binary_trees.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
trees/binary_trees.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
trees/binary_trees.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
class BNode: def __init__(self, val=None, left=None, right=None): self.val = val self.left = left self.right = right def is_bst(root, min, max): if root == None: return True if root.val < min or root.val >= max: return False if not is_bst(root.left, min, root...
22.032787
56
0.579613
036ddb5000ddef747d8b71442ee0463f2e98067e
390
py
Python
ws_auth/types.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
ws_auth/types.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
ws_auth/types.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
from ssl import SSLSocket from typing import Optional, Tuple, Union from websockets.datastructures import Headers from websockets.uri import WebSocketURI StatusCode = int Body = bytes RequestHeaders = Headers Request = Tuple[WebSocketURI, RequestHeaders] ResponseHeaders = Headers Response = Tuple[StatusC...
30
94
0.794872
036de3d06eafe3478e517d409b4158a7157995cb
16,045
py
Python
src/falconpy/_util.py
mccbryan3/falconpy
ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f
[ "Unlicense" ]
null
null
null
src/falconpy/_util.py
mccbryan3/falconpy
ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f
[ "Unlicense" ]
null
null
null
src/falconpy/_util.py
mccbryan3/falconpy
ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f
[ "Unlicense" ]
null
null
null
""" _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | |: 1 | |::.. ...
42.90107
127
0.617451
036e3d3b118087349e55cf378ef5bf1f8c68df6a
7,632
py
Python
figure/s2/abcd.py
XinhuiLi/PipelineHarmonization
701f84841528d3e50c5538b2de244ee36eedd7d6
[ "Apache-2.0" ]
7
2021-11-11T19:18:19.000Z
2022-03-15T13:53:49.000Z
figure/s2/abcd.py
XinhuiLi/PipelineHarmonization
701f84841528d3e50c5538b2de244ee36eedd7d6
[ "Apache-2.0" ]
1
2021-11-18T05:23:30.000Z
2021-11-19T20:31:53.000Z
figure/s2/abcd.py
XinhuiLi/PipelineHarmonization
701f84841528d3e50c5538b2de244ee36eedd7d6
[ "Apache-2.0" ]
1
2022-01-06T06:29:56.000Z
2022-01-06T06:29:56.000Z
import os import glob import numpy as np import nibabel as nb import os import scipy.io as sio from scipy.stats import pearsonr PH_SERVER_ROOT = os.environ.get('PH_SERVER_ROOT') def zscore(data, axis): data -= data.mean(axis=axis, keepdims=True) data /= data.std(axis=axis, keepdims=True) return np.nan_to_...
51.567568
176
0.625131
036e43d6abf450aabdc4f1a9a0d7e431fd142a13
3,916
py
Python
simple_3dviz/behaviours/mouse.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
66
2020-03-31T14:33:20.000Z
2022-03-25T15:48:06.000Z
simple_3dviz/behaviours/mouse.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
6
2020-04-05T18:20:10.000Z
2021-12-17T19:54:54.000Z
simple_3dviz/behaviours/mouse.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
9
2020-04-03T14:31:28.000Z
2022-03-15T19:16:41.000Z
import numpy as np from pyrr import matrix33, vector from . import Behaviour from .trajectory import Circle class MouseRotate(Behaviour): """Rotate the camera based using the mouse when left button is pressed. We rotate the camera with the following convention. At any given point we consider a sphere wi...
36.259259
79
0.554392
036e57a2d4948580b1565914a8428803957a777c
18,782
py
Python
nnunet/evaluation/evaluator.py
ZXLam/nnUNet
0cf7c8a857c248d6be171e4945427b405f6ac258
[ "Apache-2.0" ]
null
null
null
nnunet/evaluation/evaluator.py
ZXLam/nnUNet
0cf7c8a857c248d6be171e4945427b405f6ac258
[ "Apache-2.0" ]
null
null
null
nnunet/evaluation/evaluator.py
ZXLam/nnUNet
0cf7c8a857c248d6be171e4945427b405f6ac258
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
38.725773
129
0.577628
036e9999b29ab44e7b3946289eb69ac31a5c772e
28,683
py
Python
ContrastivePruning/StructuredPruning/glue.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
15
2021-10-02T16:27:54.000Z
2022-03-13T13:48:38.000Z
ContrastivePruning/StructuredPruning/glue.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-10-04T04:02:33.000Z
2021-10-08T02:17:40.000Z
ContrastivePruning/StructuredPruning/glue.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
2
2021-10-02T16:27:56.000Z
2021-11-23T15:35:13.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets 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/LI...
45.746411
155
0.577276
036eac97b88b7df57773aac67fea5aa8e7357067
745
py
Python
baselines/pb_generate_experiment_csv.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
2
2020-08-01T18:19:05.000Z
2021-06-30T06:37:23.000Z
baselines/pb_generate_experiment_csv.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
null
null
null
baselines/pb_generate_experiment_csv.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
5
2018-11-24T16:29:39.000Z
2021-12-10T03:07:07.000Z
script = ['pbpomis/run'] env = ['rllab.acrobot'] policy = ['linear'] delta = [0.6] gamma = [1.] njobs = [1] seed = [749, 728, 524, 215, 455, 920, 635, 930, 402, 705, 938, 563, 925, 29, 173, 542, 899, 175, 152, 210] capacity = [1] num_episodes = [10] max_iters = [5000] iw_norm = ['all'] vars = dict(filter(lam...
18.170732
106
0.64698
036ed1aec01f2ed4dd16cbbd97ddd0b6529d03c2
1,645
py
Python
literacy/cell.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
6
2016-04-19T22:15:37.000Z
2019-08-26T02:31:15.000Z
literacy/cell.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
2
2016-04-28T18:15:51.000Z
2016-05-01T13:00:01.000Z
literacy/cell.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
4
2020-06-19T00:02:53.000Z
2021-02-23T07:01:47.000Z
from .tangle import ( Processor, ) from .environment import ( LiterateEnvironment, ) from IPython.display import ( HTML, ) from .query import ( PyQueryUTF, ) class Cell(Processor, HTML): """ Process the body of cell: Tangle the code into html and code blocks. Weave the code in either sta...
31.634615
140
0.621277
036efd2247dd8b9555ffd01576ae87802885054d
347
py
Python
gui/wm.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
gui/wm.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
gui/wm.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
import tkinter as tk class App(tk.Frame): def __init__(self, master=None): super().__init__(master) self.pack() # create the application myapp = App() # # here are method calls to the window manager class # myapp.master.title("My Do-Nothing Application") myapp.master.maxsize(1000, 400) # start t...
19.277778
51
0.70317
036f455656f7cab144725559eeeb52b23718432f
235
py
Python
setup.py
mknz/dsr-road-roughness-prediction
5f56b6ba5da70a09f2c967b7f32c740072e20ed1
[ "MIT" ]
7
2019-04-04T06:40:29.000Z
2020-11-12T10:53:30.000Z
setup.py
mknz/dsr-road-roughness-prediction
5f56b6ba5da70a09f2c967b7f32c740072e20ed1
[ "MIT" ]
1
2021-09-28T07:11:05.000Z
2021-09-28T07:11:05.000Z
setup.py
mknz/dsr-road-roughness-prediction
5f56b6ba5da70a09f2c967b7f32c740072e20ed1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from distutils.core import setup setup( name='road-roughness-prediction', version='0.1.0', url='https://github.com/mknz/dsr-road-roughness-prediction', packages=['road_roughness_prediction'], )
21.363636
64
0.706383
036f46c0a8570e3b5ecf6d9bb67a10625bf7308e
3,991
py
Python
alipay/aop/api/request/AlipayAccountInstfundAccountSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayAccountInstfundAccountSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayAccountInstfundAccountSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.AlipayAccountInstfundAccountSyncModel import AlipayAccountInstfundAccountSyncModel class AlipayAccountInstfundAccountSyncRequest(obj...
27.524138
148
0.646455
036f6b26c631d3bc39096d47d69630a340804810
1,025
py
Python
soccer-rl/pybullet/gym/pybullet_envs/ARS/shared_noise.py
luiscameroo/soccer-matlab
e6b0a0f722bda30b4b1c6298998508653be318e8
[ "BSD-2-Clause" ]
27
2018-05-21T14:28:10.000Z
2021-12-31T03:12:35.000Z
soccer-rl/pybullet/gym/pybullet_envs/ARS/shared_noise.py
luiscameroo/soccer-matlab
e6b0a0f722bda30b4b1c6298998508653be318e8
[ "BSD-2-Clause" ]
1
2019-05-28T15:27:52.000Z
2019-05-28T15:27:52.000Z
soccer-rl/pybullet/gym/pybullet_envs/ARS/shared_noise.py
luiscameroo/soccer-matlab
e6b0a0f722bda30b4b1c6298998508653be318e8
[ "BSD-2-Clause" ]
13
2019-11-08T12:48:44.000Z
2022-01-04T04:13:33.000Z
""" Code in this file is copied and adapted from https://github.com/ray-project/ray/tree/master/python/ray/rllib/es """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np def create_shared_noise(): """ Create a large array of noise ...
25
71
0.679024
036f8f8be95c9ed68fe6f955023f6bcf26da6861
247
py
Python
bflib/units/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/units/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/units/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib.units.distance import Feet from bflib.units.mass import Pound from bflib.units.speed import FeetPerGameTurn from bflib.units.time import CombatRound, GameTurn, Minute, Second, Year, Hour from bflib.units.volume import CubicFeet, Litre
35.285714
78
0.825911
036fb67ffb621d75b152f57386ebc6e4e3907846
4,097
py
Python
external/py3dpi/src/pydpi/protein/GetProteinFromUniprot.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
1
2020-08-20T07:49:10.000Z
2020-08-20T07:49:10.000Z
external/py3dpi/src/pydpi/protein/GetProteinFromUniprot.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
null
null
null
external/py3dpi/src/pydpi/protein/GetProteinFromUniprot.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ ################################################################################################ This module is used to download the protein sequence from the uniprot (http://www.uniprot.org/) website. You can only need input a protein ID or prepare a file (ID.txt) related to ID. You can ...
34.428571
98
0.440322
036fca7d477ddabfc363718e85d5cfc0fccf36cf
27,762
py
Python
tests/test_datasetclient.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tests/test_datasetclient.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tests/test_datasetclient.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """This file defines class TestDatasetClient""" import pytest from tensorbay import __version__ from tensorbay.client import GAS, GASSegmentError from tensorbay.client.struct import Draft from tensorbay.dataset import Data, Frame, Fusio...
39.547009
99
0.662812
036feb96e492521bcb651cbf33815ff222a1766a
17,105
py
Python
models/vip.py
kevin-ssy/ViP
dedc27616ab24e78685e21291d1e6ef9b56de889
[ "MIT" ]
107
2021-07-12T03:31:39.000Z
2022-03-31T10:11:57.000Z
models/vip.py
kevin-ssy/ViP
dedc27616ab24e78685e21291d1e6ef9b56de889
[ "MIT" ]
7
2021-07-20T03:32:59.000Z
2021-11-18T07:40:46.000Z
models/vip.py
kevin-ssy/ViP
dedc27616ab24e78685e21291d1e6ef9b56de889
[ "MIT" ]
10
2021-08-07T06:56:24.000Z
2022-01-20T01:03:59.000Z
""" ViP Architecture in PyTorch Copyright 2021 Shuyang Sun """ import math import torch.nn.init as init from timm.models.registry import register_model from timm.models.layers import DropPath from .vip_layers import * class PatchEmbed(nn.Module): def __init__(self, stride, has_mask=False, in_ch=0, out_ch=0): ...
42.339109
119
0.550307
036fec908de335b963323ff96a8616f8a8552c71
352
py
Python
tests/test_mantle/mothball/arith/sbc2.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/test_mantle/mothball/arith/sbc2.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/test_mantle/mothball/arith/sbc2.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
import sys from magma import * from mantle import * from loam.shields.megawing import MegaWing megawing = MegaWing() megawing.Switch.on(4) megawing.LED.on(3) main = megawing.main() A = main.SWITCH[0:2] B = main.SWITCH[2:4] O = main.LED[0:2] subc2 = SubC(2) subc2(A,B) wire( subc2.O, O ) wire(subc2.COUT, main.LED[2]...
14.08
42
0.693182
0370221b0da55971bcc31b110e1f7548629b44dc
5,403
py
Python
tests/test_datefns.py
ktr/datefns
0b9ac5f36578894705a0cf5bcd8dfd15c00e967b
[ "MIT" ]
null
null
null
tests/test_datefns.py
ktr/datefns
0b9ac5f36578894705a0cf5bcd8dfd15c00e967b
[ "MIT" ]
null
null
null
tests/test_datefns.py
ktr/datefns
0b9ac5f36578894705a0cf5bcd8dfd15c00e967b
[ "MIT" ]
null
null
null
""" test_datefns.py - test datefns library """ from datetime import date import os import unittest import sqlite3 from .context import datefns class TestWeekEndingFn(unittest.TestCase): def setUp(self): self.days = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun') def test_monday(self): d1...
32.353293
92
0.533778
037022d941f3e9b81b4b149e172dbb5f5cb6d49e
2,165
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_full_chat.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_full_chat.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_full_chat.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.069444
103
0.618476
037025b85881ed790d3e924cd0fd3c43ff4f0b7f
206
py
Python
smartva/utils/__init__.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
smartva/utils/__init__.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
smartva/utils/__init__.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
from .utils import ( find_dupes, get_item_count, get_item_count_for_file, shorten_path, status_notifier, intermediate_dir_path ) from .ldap_notation_parser import LdapNotationParser
20.6
52
0.76699
03702cff035bcd8a496a4364b60cabb4d578f74b
2,944
py
Python
venv/Lib/site-packages/pyrogram/raw/types/messages/chats.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/messages/chats.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/messages/chats.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
35.46988
113
0.636549
03704750b57c5f18c8fe93402600095d50995978
1,072
py
Python
src/structurizr/abstract_base.py
mrchrisadams/structurizr-python
a8c6958210892a13b94d5f64eb03273e7f2e398b
[ "Apache-2.0" ]
null
null
null
src/structurizr/abstract_base.py
mrchrisadams/structurizr-python
a8c6958210892a13b94d5f64eb03273e7f2e398b
[ "Apache-2.0" ]
null
null
null
src/structurizr/abstract_base.py
mrchrisadams/structurizr-python
a8c6958210892a13b94d5f64eb03273e7f2e398b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, Moritz E. Beber. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
30.628571
86
0.70709
0370d6f3461f80d94d02839608ad7fdda5e4eb2d
3,739
py
Python
influxdb_client/domain/test_statement.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/test_statement.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/test_statement.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Test...
26.51773
124
0.56352
037102647a904f1fbde3bcfc94b1889d5c92bfa9
4,314
py
Python
src/bio2bel/sources/biogrid.py
sophiakrix/bio2bel
0db93f0f130f6d746692cef2caa36b5c63185a7a
[ "MIT" ]
null
null
null
src/bio2bel/sources/biogrid.py
sophiakrix/bio2bel
0db93f0f130f6d746692cef2caa36b5c63185a7a
[ "MIT" ]
null
null
null
src/bio2bel/sources/biogrid.py
sophiakrix/bio2bel
0db93f0f130f6d746692cef2caa36b5c63185a7a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This script downloads and parses BioGRID data and maps the interaction types to BEL.""" import os import pandas as pd from bio2bel.utils import ensure_path import pybel.dsl from pybel import BELGraph SEP = '\t' BIOGRID2BEL_MAPPER = { # increases 'synthetic genetic interaction def...
28.012987
115
0.588781
03712d04b160cabd63a1650131f0fb52fe90e162
39,221
py
Python
Dashboard_Uber_Prize/submission.py
vgolfier/Dashboard_Uber_Prize
ff25a571a618edfef4300ba222549c19f8bb4495
[ "MIT" ]
null
null
null
Dashboard_Uber_Prize/submission.py
vgolfier/Dashboard_Uber_Prize
ff25a571a618edfef4300ba222549c19f8bb4495
[ "MIT" ]
null
null
null
Dashboard_Uber_Prize/submission.py
vgolfier/Dashboard_Uber_Prize
ff25a571a618edfef4300ba222549c19f8bb4495
[ "MIT" ]
null
null
null
import pdb import math import numpy as np from os import listdir from os.path import dirname, join import pandas as pd # import seaborn as sns from bokeh.models import ColumnDataSource from bokeh.palettes import Dark2, Category10, Category20, Plasma256, YlOrRd HOURS = [str(h) for h in range(24)] ROUTE_IDS = ['1340...
49.272613
153
0.610591
03716963869495f20075956fc4f2ac00435c38ba
22,724
py
Python
BlockServer/config/xml_converter.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
BlockServer/config/xml_converter.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
BlockServer/config/xml_converter.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
# This file is part of the ISIS IBEX application. # Copyright (C) 2012-2016 Science & Technology Facilities Council. # All rights reserved. # # This program is distributed in the hope that it will be useful. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License...
41.619048
135
0.62753
0371a8647e78bc1fe0bd76c5ee7dbdffe0f95fe2
125,298
py
Python
twisted/words/protocols/irc.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/words/protocols/irc.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/words/protocols/irc.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# -*- test-case-name: twisted.words.test.test_irc -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Internet Relay Chat protocol for client and server. Future Plans ============ The way the IRCClient class works here encourages people to implement IRC clients by subclassing the ephemera...
30.884397
112
0.58554
0371c44293b94a98f4b30292e8b34ded960eaa53
25,088
py
Python
st2api/tests/unit/controllers/v1/test_policies_rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2api/tests/unit/controllers/v1/test_policies_rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2api/tests/unit/controllers/v1/test_policies_rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
48.620155
100
0.67622
0371cbe7b687e5cece45203b1cd11a941393ef18
10,015
py
Python
loaner/web_app/backend/models/survey_models_test.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/models/survey_models_test.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/models/survey_models_test.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.429134
79
0.723215
0371e2226873308eb4a40f27f3795152f4c880e5
2,541
py
Python
epidose/common/daemon.py
dspinellis/reference_implementation
416cc0305141746d9fe39e3e8698cb152bb3124f
[ "Apache-2.0" ]
40
2020-05-08T17:22:15.000Z
2020-06-18T13:21:25.000Z
epidose/common/daemon.py
eellak/epidose
416cc0305141746d9fe39e3e8698cb152bb3124f
[ "Apache-2.0" ]
50
2020-06-27T08:34:13.000Z
2021-04-20T10:18:25.000Z
epidose/common/daemon.py
dspinellis/reference_implementation
416cc0305141746d9fe39e3e8698cb152bb3124f
[ "Apache-2.0" ]
10
2020-07-05T19:55:24.000Z
2021-02-04T14:55:46.000Z
#!/usr/bin/env python3 """Common daemon behavior""" __copyright__ = """ Copyright 2020 Diomidis Spinellis 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...
31.7625
86
0.652893
03720cd5e1d02238cfc6f487b2517e6cca23b43f
35,637
py
Python
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "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. # --------------------------------------------------------------------...
97.903846
347
0.762101
03723f9921093f6feb595a79039a22c3bcd74864
1,170
py
Python
examples/Cliner/download_model.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
examples/Cliner/download_model.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
examples/Cliner/download_model.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from forte.data.data_utils import maybe_download if __name__ == "__main__": model_path = Path("examples/Cliner/CliNER/models") pkg_path = Path("examples/Cliner/CliNER/tools") # create the model path if it doesn't exist model_path.mkdir(parents=True, exist_ok=True) # down...
33.428571
77
0.689744
03725c7035c06d61c9e6efd7d205ff501920eefc
1,395
py
Python
gym3/asynchronous_test.py
christopher-hesse/gym3
2ed9d344ede8bbd96b6280e9fbbbf55861ea33a9
[ "MIT" ]
null
null
null
gym3/asynchronous_test.py
christopher-hesse/gym3
2ed9d344ede8bbd96b6280e9fbbbf55861ea33a9
[ "MIT" ]
null
null
null
gym3/asynchronous_test.py
christopher-hesse/gym3
2ed9d344ede8bbd96b6280e9fbbbf55861ea33a9
[ "MIT" ]
null
null
null
import time import pytest from gym3 import AsynchronousWrapper, Wrapper from gym3.testing import IdentityEnv, TimingEnv class CustomException(Exception): pass class ExceptionOnAct(Wrapper): def act(self, ac): raise CustomException("oh no") class RecordActs(Wrapper): def __init__(self, env): ...
21.136364
50
0.648029
03725f4dbf77c334607f242dc61181f6323305e7
1,351
py
Python
kusanagi/utils/distributions.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
22
2018-08-04T04:51:27.000Z
2021-11-03T14:22:16.000Z
kusanagi/utils/distributions.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
1
2021-11-16T12:41:14.000Z
2021-11-16T12:41:14.000Z
kusanagi/utils/distributions.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
7
2018-08-04T04:51:29.000Z
2021-07-17T07:26:04.000Z
import numpy as np class Distribution(object): ''' Base class for distribution. Useful for estimating and sampling initial state distributions ''' def fit(data): raise NotImplementedError def sample(self, n_samples=1): raise NotImplementedError @property def d...
22.898305
71
0.591414
03726afa0deaf28b1670943b30190f14aac7ec17
1,224
py
Python
src/tasks/gqa_model.py
eltoto1219/multimodal-pretraining
c5ca38c4f22901b6a94280b973f4a49dce4a828f
[ "MIT" ]
795
2019-08-21T01:01:18.000Z
2022-03-29T12:42:33.000Z
src/tasks/gqa_model.py
eltoto1219/multimodal-pretraining
c5ca38c4f22901b6a94280b973f4a49dce4a828f
[ "MIT" ]
106
2019-08-22T06:52:51.000Z
2021-12-17T03:03:57.000Z
src/tasks/gqa_model.py
eltoto1219/multimodal-pretraining
c5ca38c4f22901b6a94280b973f4a49dce4a828f
[ "MIT" ]
166
2019-08-21T06:51:29.000Z
2022-03-29T03:17:33.000Z
# coding=utf-8 # Copyleft 2019 project LXRT. import torch.nn as nn from param import args from lxrt.entry import LXRTEncoder from lxrt.modeling import BertLayerNorm, GeLU # Max length including <bos> and <eos> MAX_GQA_LENGTH = 20 class GQAModel(nn.Module): def __init__(self, num_answers): super().__ini...
26.608696
70
0.594771
0372754ba183dcf0f802fba70a766fa616f761cc
359
py
Python
utils/weatherJson.py
falconsmilie/Raspberry-Pi-3-Weather
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
[ "MIT" ]
null
null
null
utils/weatherJson.py
falconsmilie/Raspberry-Pi-3-Weather
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
[ "MIT" ]
null
null
null
utils/weatherJson.py
falconsmilie/Raspberry-Pi-3-Weather
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
[ "MIT" ]
null
null
null
import json class WeatherJson(object): def fix_json_string(self, json_string): """ Response from server is a dict and cache is a string """ if isinstance(json_string, dict): json_string = json.dumps(json_string) weather = json_string.replace("'", '"') weather = json....
22.4375
68
0.629526
03728eb2fa970e7737a3c9ff58547fed34f1d38e
5,687
py
Python
commands/learner.py
CloudCIX/rolly
8fafd655cb82881ae2cf75a475904cddc39e2f9a
[ "Apache-2.0" ]
6
2019-12-09T16:13:21.000Z
2020-07-16T11:42:33.000Z
commands/learner.py
CloudCIX/rolly
8fafd655cb82881ae2cf75a475904cddc39e2f9a
[ "Apache-2.0" ]
null
null
null
commands/learner.py
CloudCIX/rolly
8fafd655cb82881ae2cf75a475904cddc39e2f9a
[ "Apache-2.0" ]
1
2021-01-02T09:44:39.000Z
2021-01-02T09:44:39.000Z
# stdlib import json # lib from jnpr.junos import Device from lxml import etree import xmltodict # local from bin import Hosts from bin.utils import ( colour_print, error, line_break, ) import settings class Learner(Hosts): """ Command: learner Desc: inherits hosts from Hosts and learns about...
31.076503
99
0.467382
0372a3645a732b71fdd35fc58659ace7f3bc5164
1,216
py
Python
photoshop/api/_layers.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
17
2019-03-01T12:09:37.000Z
2020-04-09T14:14:59.000Z
photoshop/api/_layers.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
7
2019-04-28T15:20:27.000Z
2020-04-07T19:14:47.000Z
photoshop/api/_layers.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
3
2020-02-28T14:27:11.000Z
2020-04-01T16:12:40.000Z
# Import local modules from photoshop.api._artlayer import ArtLayer from photoshop.api._core import Photoshop from photoshop.api.errors import PhotoshopPythonAPIError # pylint: disable=too-many-public-methods class Layers(Photoshop): """The layers collection in the document.""" def __init__(self, parent): ...
25.87234
77
0.637336
0372a434cb0f94274ad32c130b7a8fcd7b062375
23,614
py
Python
torch_util.py
binhna/ESIM
135894d13a14894111e826114596e2317008ccda
[ "MIT" ]
7
2019-05-28T08:12:36.000Z
2021-03-20T07:53:00.000Z
torch_util.py
binhna/ESIM
135894d13a14894111e826114596e2317008ccda
[ "MIT" ]
null
null
null
torch_util.py
binhna/ESIM
135894d13a14894111e826114596e2317008ccda
[ "MIT" ]
2
2019-10-27T04:41:12.000Z
2020-09-23T13:15:40.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np """ this code from https://github.com/easonnie/ResEncoder """ def pad_1d(t, pad_l): l = t.size(0) if l >= pad_l: return t else: pad_seq = Variable(t.data.new(pad_l - l, ...
32.040706
109
0.567418
0372abe7e91eb591a3113d2d3417ba2ce4a961d0
2,203
py
Python
models/common.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
models/common.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
models/common.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
import numpy as np from sklearn.preprocessing import StandardScaler import pickle import os def sample_and_split(raw_data, raw_data_test, train_percentage=10, dev_percentage=10, rescale=True, exp_dir="experiments"): split_indicator = f"{exp_dir}/.dataset_splitted" if os.path.isfile(split_...
40.054545
99
0.650931
0372c35c00b1d5cbba17bb11ea98b5f78be7fda1
669
py
Python
userbot/plugins/urlshortner.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/urlshortner.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/urlshortner.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
import pyshorteners from userbot.utils import lightning_cmd, sudo_cmd @borg.on(lightning_cmd(pattern="urlshort (.*)")) @borg.on(sudo_cmd(pattern="urlshort (.*)", allow_sudo=True)) async def vom(event): try: link = event.pattern_match.group(1) sed = pyshorteners.Shortener() kek = sed.tinyu...
33.45
87
0.608371
0372dfa8438aa3edc5c1a13afe8f30263afa0cc6
3,313
py
Python
specc/aquisition/nimydaq.py
jvdoorn/SpectrumAnalyzer
264afaa795bd7246da2967d49b176361c454746e
[ "MIT" ]
1
2020-12-29T18:02:04.000Z
2020-12-29T18:02:04.000Z
specc/aquisition/nimydaq.py
jvdoorn/SpectrumAnalyzer
264afaa795bd7246da2967d49b176361c454746e
[ "MIT" ]
5
2021-02-07T16:01:48.000Z
2022-03-12T00:51:26.000Z
specc/aquisition/nimydaq.py
jvdoorn/SpectrumAnalyzer
264afaa795bd7246da2967d49b176361c454746e
[ "MIT" ]
null
null
null
""" This file contains a class for interfacing with a NI MyDAQ. It has various methods to read and write signals. """ import time import nidaqmx as dx import numpy as np from specc.aquisition import CHANNEL_TYPE from specc.aquisition.daq import DataAcquisitionInterface class NIMyDAQInterface(DataAcquisitionInterfa...
40.402439
110
0.685783
0372eaa5778fdc10f5a937f63ed9b152a8efe429
2,983
py
Python
api/user.py
rjvanvoorhis/photomosaic-api
83aeaebda87bbaa80c133cf9ceee5ae9c597e39d
[ "MIT" ]
null
null
null
api/user.py
rjvanvoorhis/photomosaic-api
83aeaebda87bbaa80c133cf9ceee5ae9c597e39d
[ "MIT" ]
null
null
null
api/user.py
rjvanvoorhis/photomosaic-api
83aeaebda87bbaa80c133cf9ceee5ae9c597e39d
[ "MIT" ]
null
null
null
from resources import BaseResource from resources.user_resource import UserResource from flask import request from werkzeug.datastructures import FileStorage from documentation.namespaces import user_ns from documentation.models import gallery_item, message_model, message_post, upload_img, post_response upload_parser ...
32.075269
101
0.725444
03730cc34a6d1e95361304236d796df420fa796b
3,863
py
Python
tests/test_sphinx.py
chrispyles/fica
7c1739d0d5dae0e2f847b901b0968f484d6b097b
[ "MIT" ]
null
null
null
tests/test_sphinx.py
chrispyles/fica
7c1739d0d5dae0e2f847b901b0968f484d6b097b
[ "MIT" ]
null
null
null
tests/test_sphinx.py
chrispyles/fica
7c1739d0d5dae0e2f847b901b0968f484d6b097b
[ "MIT" ]
null
null
null
"""Tests for ``fica.sphinx``""" from unittest import mock from fica import Config, __version__ from fica.exporter import create_exporter from fica.sphinx import FicaDirective, import_and_get_config, setup as setup_sphinx def generate_export(config: Config, fmt: str) -> str: """ Generate a configuration expo...
36.443396
93
0.688066
037350f0b3f8e3367db18e97cc3fd7d1e000e6d8
2,753
py
Python
components/aws/sagemaker/tests/integration_tests/component_tests/test_train_component.py
Tomcli/kfp-tekton-backend
bd1b853d43aa82fd914c65a34d3f3502c38eabe2
[ "Apache-2.0" ]
6
2020-05-19T02:35:11.000Z
2020-05-29T17:58:42.000Z
components/aws/sagemaker/tests/integration_tests/component_tests/test_train_component.py
Tomcli/kfp-tekton-backend
bd1b853d43aa82fd914c65a34d3f3502c38eabe2
[ "Apache-2.0" ]
1,932
2021-01-25T11:23:37.000Z
2022-03-31T17:10:18.000Z
components/aws/sagemaker/tests/integration_tests/component_tests/test_train_component.py
ckadner/kfp-tekton-backend
53e0e68a79e67535443505d074e1524994efcd06
[ "Apache-2.0" ]
11
2020-05-19T22:26:41.000Z
2021-01-25T09:56:21.000Z
import pytest import os import json import utils from utils import kfp_client_utils from utils import minio_utils from utils import sagemaker_utils @pytest.mark.parametrize( "test_file_dir", [ pytest.param( "resources/config/simple-mnist-training", marks=pytest.mark.canary_test ) ...
33.168675
87
0.697058
03736bc7173c63a79d9a4f92d5daebf537bd536c
851
py
Python
network/simulation.py
HANhuiyu/SpikingStereoMatching
ef216701286e85e5df6691001299968f15bcede9
[ "MIT" ]
1
2016-09-08T12:45:41.000Z
2016-09-08T12:45:41.000Z
network/simulation.py
gdikov/StereoVision_HBPPlatform
ef216701286e85e5df6691001299968f15bcede9
[ "MIT" ]
null
null
null
network/simulation.py
gdikov/StereoVision_HBPPlatform
ef216701286e85e5df6691001299968f15bcede9
[ "MIT" ]
2
2019-04-11T15:04:01.000Z
2021-06-07T19:40:29.000Z
### # Date: August 2016 # Author: Georgi Dikov # email: gvdikov93@gmail.com ### import spynnaker.pyNN as ps class SNNSimulation(object): def __init__(self, simulation_time=1000, simulation_time_step=0.2, n_chips_required=48*6, threads_count=4): self.simulation_time = simulation_time self.time_step...
32.730769
111
0.673325
037388289f5ec1a5c3a1ec2df1d3059fb12e1bf4
2,091
py
Python
pywick/callbacks/LRScheduler.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/callbacks/LRScheduler.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/callbacks/LRScheduler.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
import warnings from . import Callback __all__ = ['LRScheduler'] class LRScheduler(Callback): """ Schedule the learning rate according to some function of the current epoch index, current learning rate, and current train/val loss. :param schedule: (callable): should return a number of learn...
38.018182
89
0.62506
0373b537bc563203119eec5a8a0f9a46188d654e
1,489
py
Python
setup.py
bdscharf/flake8_loopy
d508a5ba8f09b8814b9b49ba7fb0b5e838d094b0
[ "MIT" ]
null
null
null
setup.py
bdscharf/flake8_loopy
d508a5ba8f09b8814b9b49ba7fb0b5e838d094b0
[ "MIT" ]
null
null
null
setup.py
bdscharf/flake8_loopy
d508a5ba8f09b8814b9b49ba7fb0b5e838d094b0
[ "MIT" ]
null
null
null
# type: ignore from setuptools import setup __version__ = "1.1.0" setup( name="flake8_loopy", version=__version__, description="flake8 plugin to check code quality in loops", long_description=open("README.md").read(), long_description_content_type="text/markdown", license="MIT", author="B...
34.627907
101
0.650772
037400311202507340ce047682f3dbd66b2ebed4
39,011
py
Python
azure-devops/azext_devops/dev/repos/pull_request.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/dev/repos/pull_request.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/dev/repos/pull_request.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "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. # --------------------------------------------------------------------...
51.533686
134
0.64974
037400b26ec47276d247ddb76c50368819a181aa
7,735
py
Python
wmpl/Utils/AtmosphereDensity.py
gmke/WesternMeteorPyLib
f218ac5abc9c1a53fe3844039909f8efb929b50e
[ "MIT" ]
null
null
null
wmpl/Utils/AtmosphereDensity.py
gmke/WesternMeteorPyLib
f218ac5abc9c1a53fe3844039909f8efb929b50e
[ "MIT" ]
null
null
null
wmpl/Utils/AtmosphereDensity.py
gmke/WesternMeteorPyLib
f218ac5abc9c1a53fe3844039909f8efb929b50e
[ "MIT" ]
null
null
null
""" Plots NRL MSISE atmosphere density model. """ from __future__ import print_function, division, absolute_import import numpy as np import matplotlib.pyplot as plt import scipy.optimize from wmpl.PythonNRLMSISE00.nrlmsise_00_header import * from wmpl.PythonNRLMSISE00.nrlmsise_00 import * from wmpl.Utils.TrajConver...
27.52669
110
0.601939
0374148a799553b0a586a460620cf7a8a1200ea0
11,515
py
Python
volcasample/test/test_syro.py
actionless/volcasample
17f5a87592d5b68b55512bf473df3d9ce48be3b4
[ "BSD-3-Clause" ]
7
2017-08-02T09:46:59.000Z
2021-12-18T20:09:56.000Z
volcasample/test/test_syro.py
actionless/volcasample
17f5a87592d5b68b55512bf473df3d9ce48be3b4
[ "BSD-3-Clause" ]
null
null
null
volcasample/test/test_syro.py
actionless/volcasample
17f5a87592d5b68b55512bf473df3d9ce48be3b4
[ "BSD-3-Clause" ]
1
2021-12-18T21:32:03.000Z
2021-12-18T21:32:03.000Z
#!/usr/bin/env python3 # encoding: UTF-8 # This file is part of volcasample. # # volcasample 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 Foundation, either version 3 of the License, or # (at your option) any later ve...
32.528249
81
0.576726
037426e0fb02bc4d737f6d7608301a768db92ad2
3,823
py
Python
pycryptoki/ca_extensions/per_key_auth.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/ca_extensions/per_key_auth.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/ca_extensions/per_key_auth.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
""" Module to work with PKA / Per key authorization """ from ctypes import cast from _ctypes import POINTER from pycryptoki.attributes import to_byte_array from pycryptoki.cryptoki import ( CA_SetAuthorizationData, CA_ResetAuthorizationData, CA_AuthorizeKey, CA_AssignKey, CA_IncrementFailedAuthCount...
29.635659
88
0.750458
03743c37cfe3f2cbdc8586fb95030e96e5d6e66a
379
py
Python
products/migrations/0009_auto_20210704_1252.py
kevin-ci/janeric2
df07508a76ad8194a63be7786d8b84a905b3d2e9
[ "MIT" ]
1
2021-02-28T11:54:14.000Z
2021-02-28T11:54:14.000Z
products/migrations/0009_auto_20210704_1252.py
kevin-ci/janeric2
df07508a76ad8194a63be7786d8b84a905b3d2e9
[ "MIT" ]
6
2021-12-01T11:39:03.000Z
2021-12-04T22:28:57.000Z
products/migrations/0009_auto_20210704_1252.py
kevin-ci/janeric2
df07508a76ad8194a63be7786d8b84a905b3d2e9
[ "MIT" ]
1
2021-12-21T16:20:49.000Z
2021-12-21T16:20:49.000Z
# Generated by Django 3.1.5 on 2021-07-04 12:52 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('products', '0008_auto_20210703_2254'), ] operations = [ migrations.AlterModelOptions( name='product', options={'ordering': [...
21.055556
75
0.614776
037444258b4518a6b845544cd83ff0977e2d5101
11,262
py
Python
oscar/lib/python2.7/site-packages/faker/providers/person/es_MX/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/person/es_MX/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/person/es_MX/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- from __future__ import unicode_literals from .. import Provider as PersonProvider class Provider(PersonProvider): formats = ( '{{first_name}} {{last_name}} {{last_name}}', '{{first_name}} {{first_name}} {{last_name}}', '{{first_name}} {{first_name}} {{las...
63.988636
77
0.595365
037444410c19a53996358c05251bfc4d4b48134c
1,425
py
Python
credential.py
Mnubi/Locker
8a19d9aa6e97460f70500849c6a29cfe6757565d
[ "MIT" ]
null
null
null
credential.py
Mnubi/Locker
8a19d9aa6e97460f70500849c6a29cfe6757565d
[ "MIT" ]
null
null
null
credential.py
Mnubi/Locker
8a19d9aa6e97460f70500849c6a29cfe6757565d
[ "MIT" ]
null
null
null
import random import string class Credential(): user_credentials= [] def __init__(self, account_site, account_username, account_password): self.account_site = account_site self.account_username = account_username self.account_password = account_password def save_credentials(self):...
29.6875
108
0.643509
037455aa7b5ecd5fcbec9126522f1e176f4de71d
375
py
Python
multiple_of_3_5/solution.py
codejacktsu/projecteuler
04c76e09a2975ee5ecb73025e7813bee457bd569
[ "MIT" ]
null
null
null
multiple_of_3_5/solution.py
codejacktsu/projecteuler
04c76e09a2975ee5ecb73025e7813bee457bd569
[ "MIT" ]
null
null
null
multiple_of_3_5/solution.py
codejacktsu/projecteuler
04c76e09a2975ee5ecb73025e7813bee457bd569
[ "MIT" ]
null
null
null
""" If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. """ lst = [value for value in range(1000)] def sum(lst): count = 0 for value in lst: if value % 3 == 0 or value...
25
77
0.616
03746338bd39d0de4916306fc37fd2067f6dbdfd
633
py
Python
portPython/functions/normalizar.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
1
2021-02-13T07:42:04.000Z
2021-02-13T07:42:04.000Z
portPython/functions/normalizar.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
null
null
null
portPython/functions/normalizar.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
null
null
null
import pandas as pd def normalizarDados(data): for index, row in data.iterrows(): data.at[index, 'when'] = pd.Timestamp(row['when']).replace(minute=0, second=0, microsecond=0) def table2timetable(data): data = data.set_index(['when']) data.index = pd.to_datetime(data.index) data = dat...
31.65
102
0.64613
03749400b3d12cfae39efdf06d1c0d6ecae35474
88,127
py
Python
spyke/core.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
22
2015-06-01T03:31:00.000Z
2022-03-18T09:12:28.000Z
spyke/core.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
3
2017-03-24T19:16:02.000Z
2021-01-27T14:34:30.000Z
spyke/core.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
6
2015-07-10T15:28:08.000Z
2022-03-17T19:30:45.000Z
"""Core classes and functions used throughout spyke""" from __future__ import division from __future__ import print_function from __future__ import with_statement __authors__ = ['Martin Spacek', 'Reza Lotun'] import sys import os import hashlib import time import datetime from collections import OrderedDict as odict...
40.112426
95
0.619765
037496954b14b4811113e3d5f4214f9ffac4a988
1,604
py
Python
scripts/perf/generate-projects.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2017-07-31T23:13:58.000Z
2017-07-31T23:13:58.000Z
scripts/perf/generate-projects.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
scripts/perf/generate-projects.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
39.121951
69
0.667706
03749b888c2019104193cdae902618b4618b180e
3,619
py
Python
examples/timingPlan_simulation/Throughput/plots4pravin/tau_plots.py
ucbtrans/sumo-project
a1232cfa6705d79313733ae118777a276536b088
[ "BSD-2-Clause" ]
5
2017-10-26T23:18:45.000Z
2021-12-13T08:48:54.000Z
examples/timingPlan_simulation/Throughput/plots4pravin/tau_plots.py
ucbtrans/sumo-project
a1232cfa6705d79313733ae118777a276536b088
[ "BSD-2-Clause" ]
null
null
null
examples/timingPlan_simulation/Throughput/plots4pravin/tau_plots.py
ucbtrans/sumo-project
a1232cfa6705d79313733ae118777a276536b088
[ "BSD-2-Clause" ]
3
2016-06-14T19:33:22.000Z
2021-03-23T03:41:31.000Z
import sys import optparse import subprocess import random import pdb import matplotlib.pyplot as plt import math import numpy as np import scipy.io a2_10 = np.loadtxt('2min3RCT_taus_a1.0',dtype=int) t2_10 = np.loadtxt('2min3RCT_taus_time_a1.0',dtype=int) a2_15 = np.loadtxt('2min3RCT_taus_a1.5',dtype=int) t2_15 = np...
37.697917
131
0.696601
0374b405fd8b06990e7e9d2c1d201977aa9f0980
584
py
Python
test/python/LIM2Metrics/py3/base/common/Observer/Observer.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
20
2015-06-16T17:39:10.000Z
2022-03-20T22:39:40.000Z
test/python/LIM2Metrics/py3/base/common/Observer/Observer.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
29
2015-12-29T19:07:22.000Z
2022-03-22T10:39:02.000Z
test/python/LIM2Metrics/py3/base/common/Observer/Observer.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
12
2015-08-28T01:22:18.000Z
2021-09-25T08:17:31.000Z
from collections import defaultdict class Observable (defaultdict): def __init__ (self): defaultdict.__init__(self, object) def emit (self, *args): '''Pass parameters to all observers and update states.''' for subscriber in self: response = subscriber(*args) ...
29.2
67
0.619863
0374e8ddbec734fc653cae10074ecbd3dcd35d6e
6,146
py
Python
modules/solov2/solo_utils.py
praeclarumjj3/OLIE
c0a27e7409f7db51b190bfac114677cb7b5dd669
[ "BSD-2-Clause" ]
1
2021-04-10T19:43:47.000Z
2021-04-10T19:43:47.000Z
modules/solov2/solo_utils.py
praeclarumjj3/OLIE
c0a27e7409f7db51b190bfac114677cb7b5dd669
[ "BSD-2-Clause" ]
null
null
null
modules/solov2/solo_utils.py
praeclarumjj3/OLIE
c0a27e7409f7db51b190bfac114677cb7b5dd669
[ "BSD-2-Clause" ]
null
null
null
import torch import numpy as np import torch.nn.functional as F from PIL import Image import os from scipy.io import loadmat import matplotlib.pyplot as plt from torch.autograd import Variable import collections import torchvision.transforms as transforms def visualize_maps(maps, name): x = maps.cpu() dim = i...
31.84456
109
0.592092
0374ffe259bd45bba404e2d0dfde58970df724dc
31,916
py
Python
core/fs/fat.py
molejar/imxmi
1d59af80d3c5605b8b5c4d5734c05dfd9b75854d
[ "BSD-3-Clause" ]
null
null
null
core/fs/fat.py
molejar/imxmi
1d59af80d3c5605b8b5c4d5734c05dfd9b75854d
[ "BSD-3-Clause" ]
null
null
null
core/fs/fat.py
molejar/imxmi
1d59af80d3c5605b8b5c4d5734c05dfd9b75854d
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019 Martin Olejar # # SPDX-License-Identifier: BSD-3-Clause # The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution # or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText import os from zlib import crc32 from datetime import datetime, date, ti...
36.268182
120
0.555803
03751744b1120a9927fd1c16f8d5c6bc2714336a
2,512
py
Python
applications/hw4_3/controllers/api.py
ayeh9/ecommerce_site
0010dbc2f0d378c449772eb3ed2dfe0cce8b932e
[ "BSD-3-Clause" ]
null
null
null
applications/hw4_3/controllers/api.py
ayeh9/ecommerce_site
0010dbc2f0d378c449772eb3ed2dfe0cce8b932e
[ "BSD-3-Clause" ]
null
null
null
applications/hw4_3/controllers/api.py
ayeh9/ecommerce_site
0010dbc2f0d378c449772eb3ed2dfe0cce8b932e
[ "BSD-3-Clause" ]
null
null
null
def get_logged_in_user(): user = None if auth.user is None else auth.user.email return response.json(dict(user=user)) def get_all_products(): products = db(db.product).select() return response.json(dict(products=products)) @auth.requires_login() def get_your_review(): review = db((db.review.produc...
36.405797
134
0.693073
03752bc9b787bccde31d54e8d14f4068b36c1b26
6,295
py
Python
tests/trinity/core/peer_helpers.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
137
2017-03-17T11:37:51.000Z
2022-03-07T07:51:28.000Z
tests/trinity/core/peer_helpers.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
102
2017-04-07T10:43:03.000Z
2018-11-11T18:01:56.000Z
tests/trinity/core/peer_helpers.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
39
2017-03-17T11:38:52.000Z
2021-02-18T23:05:17.000Z
import asyncio import os from typing import ( List, ) from eth_hash.auto import keccak from cancel_token import CancelToken from eth.chains.mainnet import MAINNET_GENESIS_HEADER from eth.db.backends.memory import MemoryDB from eth.tools.logging import TraceLogger from p2p import auth from p2p import constants f...
34.027027
99
0.731692
03753d406324ae7998cad3ef8052abc286e40ad7
5,311
py
Python
py-polars/polars/internals/functions.py
g-logunov/polars
a4a8854cfd6aaa582719aca2e3874cdcf44a86ca
[ "MIT" ]
null
null
null
py-polars/polars/internals/functions.py
g-logunov/polars
a4a8854cfd6aaa582719aca2e3874cdcf44a86ca
[ "MIT" ]
null
null
null
py-polars/polars/internals/functions.py
g-logunov/polars
a4a8854cfd6aaa582719aca2e3874cdcf44a86ca
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from typing import Optional, Sequence, Union, overload from polars import internals as pli from polars.datatypes import py_type_to_dtype from polars.utils import _datetime_to_pl_timestamp, _timedelta_to_pl_duration try: from polars.polars import concat_df as _concat_df ...
25.657005
101
0.605347
037559e5e111659387334bf41a0c9d4aa184ecd1
1,890
py
Python
Fei_Yun_A04/client2.py
febycloud/PROG8420
147b4877a33221b93c9a74f90819c397179f7332
[ "MIT" ]
null
null
null
Fei_Yun_A04/client2.py
febycloud/PROG8420
147b4877a33221b93c9a74f90819c397179f7332
[ "MIT" ]
null
null
null
Fei_Yun_A04/client2.py
febycloud/PROG8420
147b4877a33221b93c9a74f90819c397179f7332
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Script for Tkinter GUI chat client.""" from socket import AF_INET, socket, SOCK_STREAM from threading import Thread import tkinter def receive(): """Handles receiving of messages.""" while True: try: msg = client_socket.recv(BUFSIZ).decode("utf8") msg_list.insert(tkinter.END, msg) ...
26.619718
93
0.732804
03755d6072f927c202202ac395ce155e3ad8fa43
1,313
py
Python
rlkit/samplers/data_collector/contextual_path_collector.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1,662
2018-01-25T05:23:56.000Z
2021-07-19T10:14:06.000Z
rlkit/samplers/data_collector/contextual_path_collector.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
121
2018-05-07T22:09:09.000Z
2021-07-08T16:33:37.000Z
rlkit/samplers/data_collector/contextual_path_collector.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
443
2018-03-04T17:53:25.000Z
2021-07-21T17:16:16.000Z
from functools import partial from rlkit.envs.contextual import ContextualEnv from rlkit.policies.base import Policy from rlkit.samplers.data_collector import MdpPathCollector from rlkit.samplers.rollout_functions import contextual_rollout class ContextualPathCollector(MdpPathCollector): def __init__( ...
32.02439
74
0.658797
037561f5921ff8e404c4427d70be1efb6efa3c7b
25,026
py
Python
sdk/network/azure-mgmt-network/tests/test_cli_mgmt_network_wan_hub.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/network/azure-mgmt-network/tests/test_cli_mgmt_network_wan_hub.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/tests/test_cli_mgmt_network_wan_hub.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------------...
43.751748
1,034
0.636098
0375635673273a7ad7b4c9141e40fde9d81e07c7
670
py
Python
python/__init__.py
JDzvonik/sling
3000f6ff7ae5c2d5ddcae13ad3599e35bf375ec5
[ "Apache-2.0" ]
2,023
2017-10-13T01:39:21.000Z
2022-03-27T14:24:09.000Z
python/__init__.py
JDzvonik/sling
3000f6ff7ae5c2d5ddcae13ad3599e35bf375ec5
[ "Apache-2.0" ]
166
2017-10-26T00:36:03.000Z
2021-10-08T13:32:32.000Z
python/__init__.py
JDzvonik/sling
3000f6ff7ae5c2d5ddcae13ad3599e35bf375ec5
[ "Apache-2.0" ]
316
2017-10-12T20:34:28.000Z
2022-02-02T16:03:45.000Z
import sling.pysling as api from sling.log import * from sling.nlp.document import * from sling.nlp.parser import * Store=api.Store Frame=api.Frame Array=api.Array RecordReader=api.RecordReader RecordDatabase=api.RecordDatabase RecordWriter=api.RecordWriter PhraseTable=api.PhraseTable Calendar=api.Calendar Date=api....
19.705882
39
0.850746
0375699c2bbbac7722a54b9d511b2d70984734c6
1,730
py
Python
stoq/utils.py
ytreister/stoq
8bfc78b226ee6500eb78e1bdf361fc83bc5005b7
[ "Apache-2.0" ]
385
2015-11-20T02:21:18.000Z
2022-03-24T09:38:24.000Z
stoq/utils.py
ytreister/stoq
8bfc78b226ee6500eb78e1bdf361fc83bc5005b7
[ "Apache-2.0" ]
127
2016-07-08T20:23:20.000Z
2022-02-23T13:52:19.000Z
stoq/utils.py
ytreister/stoq
8bfc78b226ee6500eb78e1bdf361fc83bc5005b7
[ "Apache-2.0" ]
68
2015-11-20T12:51:44.000Z
2022-01-25T04:35:54.000Z
#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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 # # Un...
27.903226
76
0.608671
0375786e80550040fa3f12aea769bee4416eefbd
13,611
py
Python
asv/plugins/regressions.py
ColCarroll/asv
5d86cc8dfcc28cbfee866f9a4d558c545aa90a21
[ "BSD-3-Clause" ]
null
null
null
asv/plugins/regressions.py
ColCarroll/asv
5d86cc8dfcc28cbfee866f9a4d558c545aa90a21
[ "BSD-3-Clause" ]
null
null
null
asv/plugins/regressions.py
ColCarroll/asv
5d86cc8dfcc28cbfee866f9a4d558c545aa90a21
[ "BSD-3-Clause" ]
1
2019-11-23T08:18:39.000Z
2019-11-23T08:18:39.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals, print_function import os import re import itertools import datetime import multiprocessing import time import traceback import six from six.moves.urllib.parse im...
38.777778
106
0.563147
037584fc3ee74e5961b3acc3456bc66948ac82f7
8,817
py
Python
tests/tests/test_update.py
spockfish/mender-integration
09441e4ec88c837605aa12d70db4faa8f1a16b59
[ "Apache-2.0" ]
null
null
null
tests/tests/test_update.py
spockfish/mender-integration
09441e4ec88c837605aa12d70db4faa8f1a16b59
[ "Apache-2.0" ]
null
null
null
tests/tests/test_update.py
spockfish/mender-integration
09441e4ec88c837605aa12d70db4faa8f1a16b59
[ "Apache-2.0" ]
1
2019-05-10T14:25:13.000Z
2019-05-10T14:25:13.000Z
#!/usr/bin/python # Copyright 2017 Northern.tech AS # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
42.186603
130
0.648633
03758e442a9b9c4ccb9f471bd62a5b4ea9715022
16,115
py
Python
scraping_manager/automate.py
DariHernandez/wonduu-csv-scraper
2de5c2814998a53bfc844088eedc0d91c0ba6ac1
[ "MIT" ]
null
null
null
scraping_manager/automate.py
DariHernandez/wonduu-csv-scraper
2de5c2814998a53bfc844088eedc0d91c0ba6ac1
[ "MIT" ]
null
null
null
scraping_manager/automate.py
DariHernandez/wonduu-csv-scraper
2de5c2814998a53bfc844088eedc0d91c0ba6ac1
[ "MIT" ]
null
null
null
import os import sys import time import logging import zipfile from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import TimeoutException from webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.utils import ChromeType from selenium.webd...
29.036036
154
0.526838
0375a97afefa57e40e3870cd7e140c6f387022f2
8,335
py
Python
build_validated_product.py
hysds/standard_product_completeness_evaluator
d05143eeb19dbc5215cd504f12d3e982eaf2a3b2
[ "Apache-2.0" ]
null
null
null
build_validated_product.py
hysds/standard_product_completeness_evaluator
d05143eeb19dbc5215cd504f12d3e982eaf2a3b2
[ "Apache-2.0" ]
2
2020-04-08T14:37:04.000Z
2021-01-05T00:16:41.000Z
build_validated_product.py
hysds/standard_product_completeness_evaluator
d05143eeb19dbc5215cd504f12d3e982eaf2a3b2
[ "Apache-2.0" ]
1
2019-05-08T17:07:28.000Z
2019-05-08T17:07:28.000Z
#!/usr/bin/env python ''' Builds s1-gunw-aoi-track and s1-gunw-aoi-track-merged products ''' from __future__ import print_function from builtins import str import os import json import pytz import shutil import pickle import hashlib import dateutil import dateutil.parser from shapely.geometry import shape, Polygon, M...
39.880383
193
0.64943
0376154d914249d16e3b2437861e433b50e23a0d
3,958
py
Python
models/base.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
9
2021-03-30T20:43:26.000Z
2021-12-28T06:25:17.000Z
models/base.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
null
null
null
models/base.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
2
2021-03-31T01:19:48.000Z
2021-08-02T13:41:32.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import abc import torch import typing from foundations import paths from foundations.step import Step import lottery.desc from platforms.platf...
31.664
106
0.711976
037624cd7774a4fe0ab3d1fa15a2970746abf77e
20,610
py
Python
trefoil/netcdf/variable.py
consbio/clover
f8da46fa67240cc3f1ef0460e3a249e57e5f7224
[ "BSD-3-Clause" ]
9
2016-03-11T03:38:06.000Z
2017-08-09T23:28:36.000Z
trefoil/netcdf/variable.py
consbio/clover
f8da46fa67240cc3f1ef0460e3a249e57e5f7224
[ "BSD-3-Clause" ]
47
2015-05-05T19:34:57.000Z
2018-04-19T00:44:09.000Z
trefoil/netcdf/variable.py
consbio/clover
f8da46fa67240cc3f1ef0460e3a249e57e5f7224
[ "BSD-3-Clause" ]
2
2016-11-17T06:27:30.000Z
2017-09-20T23:38:46.000Z
from bisect import bisect_left, bisect_right import numpy from datetime import date, datetime import pytz from affine import Affine from netCDF4 import num2date, date2num, Variable from pyproj import Proj import six from trefoil.geometry.bbox import BBox from trefoil.utilities.proj import is_latlong from trefoil.util...
37.955801
131
0.627948
03763daa667dd626642e8e4eaffd72d728028739
3,141
py
Python
tests/api_workflow/test_api_workflow.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
1
2021-06-23T07:31:26.000Z
2021-06-23T07:31:26.000Z
tests/api_workflow/test_api_workflow.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
null
null
null
tests/api_workflow/test_api_workflow.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
null
null
null
import os import tempfile import unittest import numpy as np import lightly from lightly.active_learning.agents.agent import ActiveLearningAgent from lightly.active_learning.config.sampler_config import SamplerConfig from lightly.active_learning.scorers.classification import ScorerClassification from lightly.openapi_...
44.239437
116
0.730659
03764135b43587bd950e549e5c52198cbdb54775
18,315
py
Python
app/enquiries/ref_data.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
3
2020-04-03T12:16:56.000Z
2020-12-09T18:18:49.000Z
app/enquiries/ref_data.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
173
2020-03-18T09:31:50.000Z
2022-03-26T04:19:41.000Z
app/enquiries/ref_data.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import gettext_lazy as _ class EnquiryStage(models.TextChoices): NEW = "NEW", _("New") AWAITING_RESPONSE = "AWAITING_RESPONSE", _("Awaiting response from Investor") ENGAGED = "ENGAGED", _("Engaged in dialogue") NON_RESPONSIVE = "NON_RESPONSIVE...
35.563107
99
0.595414
037642afa0c2d245e56032307a0d43a0c4a110c9
1,290
py
Python
optimization/test/test_ir_io_tac.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
optimization/test/test_ir_io_tac.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
optimization/test/test_ir_io_tac.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author : lzc80234@qq.com (liuzhaoci) # Created : 2017/5/24 ''' read .tac.txt and get instruction lists ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import optimization.BasicBlock.ConstructB...
30.714286
73
0.694574
0376491890a7e043d8cff5eb36400cb943278971
223
py
Python
algorithms/__init__.py
OliverS18/WiseBuyer
864641cf424ac10f4bb84589bc18affb9f1e2fbc
[ "MIT" ]
3
2019-11-30T15:46:19.000Z
2021-11-03T14:28:30.000Z
algorithms/__init__.py
OliverS18/CouponCalculator
864641cf424ac10f4bb84589bc18affb9f1e2fbc
[ "MIT" ]
null
null
null
algorithms/__init__.py
OliverS18/CouponCalculator
864641cf424ac10f4bb84589bc18affb9f1e2fbc
[ "MIT" ]
1
2020-01-09T02:29:18.000Z
2020-01-09T02:29:18.000Z
""" This package contains some basic algorithms to solve the strategy searching problem. """ from .mcts import mcts, TreeNode from .bs import beam_search algo_set = {'mcts': mcts, 'bs': beam_search}
18.583333
84
0.672646
037693859a80888dfd0932b60ef142be50b62c6c
465
py
Python
tests/fixtures/logging.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
tests/fixtures/logging.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
tests/fixtures/logging.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
import logging import pytest from loguru import logger @pytest.fixture() def _enable_logger(): logger.enable("botx") @pytest.fixture() def loguru_caplog(caplog, _enable_logger): class PropogateHandler(logging.Handler): def emit(self, record: logging.LogRecord) -> None: logging.getLogger...
22.142857
67
0.716129
0376a125f8b7a8c8cf5d773303def25611c45a60
3,640
py
Python
contrib/runners/remote_command_runner/remote_command_runner/remote_command_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
contrib/runners/remote_command_runner/remote_command_runner/remote_command_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
contrib/runners/remote_command_runner/remote_command_runner/remote_command_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
43.333333
94
0.633791
0376a4e84a6b3a5f3d18662de124035a368cbead
508
py
Python
examples/plotting/aia_example.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
examples/plotting/aia_example.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
examples/plotting/aia_example.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
""" ================ AIA Plot Example ================ This is a very simple way to plot a sample AIA image. """ import matplotlib.pyplot as plt import sunpy.map from sunpy.data.sample import AIA_171_IMAGE ############################################################################### # We now create the Map using t...
22.086957
79
0.458661
0376e54b770947e5a4f319673adc57866aecc21e
1,086
py
Python
deeptech/training/losses/multiloss.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
1
2020-10-10T10:11:54.000Z
2020-10-10T10:11:54.000Z
deeptech/training/losses/multiloss.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
deeptech/training/losses/multiloss.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
"""doc # deeptech.training.losses.multiloss > An implementation of the multiloss. """ from torch.nn import Module from torch import Tensor from deeptech.training import tensorboard class MultiLoss(Module): def __init__(self, model=None, **losses): """ Compute the multiloss on the given losses. ...
31.941176
193
0.642726
03771dbcb7dd8d5d96ecdfeffba7bf54a8fa706c
50,437
py
Python
pyfacebook/api/facebook.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
pyfacebook/api/facebook.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
pyfacebook/api/facebook.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
""" Facebook Graph Api impl """ import arrow from six import iteritems from typing import Optional, Union, List, Tuple, Set from pyfacebook.error import PyFacebookException, ErrorMessage, ErrorCode from pyfacebook.models import ( Page, Comment, CommentSummary, ProfilePictureSource, Post, Video, VideoC...
40.124901
129
0.545017