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
93da02d271aa49766a2f3678b451125987b609e3
2,775
py
Python
burrolib/policies/categorical_policy.py
kosmitive/burro
cc6662bef8693a1c160e80d9482371620deb5304
[ "MIT" ]
5
2020-06-25T23:00:26.000Z
2020-08-28T02:51:28.000Z
burrolib/policies/categorical_policy.py
kosmitive/burrolib
2b1d690ec9c9371f5b455dd98439dce51d270909
[ "MIT" ]
5
2020-11-09T11:43:42.000Z
2021-01-09T13:15:09.000Z
burrolib/policies/categorical_policy.py
kosmitive/burrolib
2b1d690ec9c9371f5b455dd98439dce51d270909
[ "MIT" ]
null
null
null
from typing import Tuple import torch import torch.nn.functional as F from torch import distributions, nn from burrolib.policies.base_policy import BasePolicyModel from burrolib.util.nn import MLP class GumbelPolicy(torch.nn.Module): def __init__( self, in_dim: int, out_dim: int, ...
28.608247
87
0.584865
93da1e9cbbfb11fc724597c5651f57edf830a203
1,865
py
Python
highscores/btwins.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
highscores/btwins.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
highscores/btwins.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
import sqlite3 from typing import List import highscores from highscores.highscore import Highscore from pathmanager import PathManager class Btwins(Highscore): def __init__(self): LAYOUT = ["Rank", "Username", "Wins", "Win Streak"] NAME = "btwins" LINK = "https://pokemon-planet.com/btWins...
35.865385
113
0.586059
93da3e2491012ecc9d5ad863359104a6839f00fb
703
py
Python
tests/data/expected/main/main_pattern/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/main_pattern/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/main_pattern/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: pattern.json # timestamp: 2019-07-26T00:00:00+00:00 from __future__ import annotations from typing import Optional from pydantic import BaseModel, constr class Info(BaseModel): hostName: Optional[ constr( regex=r'^(([a-zA-Z0-9]|[a-zA-Z0-9][...
30.565217
139
0.530583
93da6cf8bb51c3de9e7850010e57c36ddf431965
4,671
py
Python
lreid/data/datasets/image/grid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
63
2021-03-20T15:33:11.000Z
2022-03-30T03:04:14.000Z
lreid/data/datasets/image/grid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
5
2021-03-23T08:04:21.000Z
2022-03-10T02:28:43.000Z
lreid/data/datasets/image/grid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
10
2021-04-30T11:14:10.000Z
2022-03-18T16:44:55.000Z
from __future__ import division, print_function, absolute_import import glob import os.path as osp from scipy.io import loadmat from lreid.utils import read_json, write_json from ..dataset import ImageDataset class GRID(ImageDataset): """GRID. Reference: Loy et al. Multi-camera activity correlation...
35.386364
93
0.527938
93db01d70457bf7449a7fcbf55cec6a2508cc3eb
1,279
py
Python
BootIntegrityValidator/package_meta_data.py
mjavaid/BootIntegrityValidator
bc0735cc8f53393087dc1db0612796ad16b0367a
[ "MIT" ]
null
null
null
BootIntegrityValidator/package_meta_data.py
mjavaid/BootIntegrityValidator
bc0735cc8f53393087dc1db0612796ad16b0367a
[ "MIT" ]
null
null
null
BootIntegrityValidator/package_meta_data.py
mjavaid/BootIntegrityValidator
bc0735cc8f53393087dc1db0612796ad16b0367a
[ "MIT" ]
null
null
null
__title__ = "BootIntegrityValidator" __version__ = "2.1.1" __author__ = "Jay Young" __author_email__ = "jyoungta@cisco.com" __copyright__ = "Copyright 2021, Cisco Systems, Inc" __license__ = "MIT" __description__ = "A Python module to validate the Boot Integrity Visibility Output in Cisco Products." __all__ = ["BootInt...
71.055556
231
0.811572
93db054988efdd57efce36e5a4cb4410de9569a2
10,147
py
Python
uclahedp/load/hrr.py
uclahedp/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
2
2019-04-30T22:21:44.000Z
2021-06-09T02:35:37.000Z
uclahedp/load/hrr.py
phyzicist/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
23
2019-02-11T23:05:02.000Z
2020-09-18T01:17:19.000Z
uclahedp/load/hrr.py
phyzicist/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Peter Heuer hrrtools.py: HEDP group High Rep Rate Program tools --> readRunPobe(run, probe, data_dir, dest, verbose=False) Reads an HDF5 file from the labview HRR program """ import numpy as np from astropy import units as u import os from uclahedp.t...
35.232639
114
0.538681
93db0d06bbdbb68983bcefdb8fee6e9302450c9e
1,628
py
Python
src/CompartmentalSystems/Cache.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
src/CompartmentalSystems/Cache.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
src/CompartmentalSystems/Cache.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
from . import picklegzip import numpy as np # Fixme: mm 03-30-2020 # At the moment this class is not used since we do all # the caching in the lru cache at runtime. We might reuse it if we decide # to persist the lru cache in the future class Cache: def __init__(self, keys, values, smr_hash): self.keys ...
28.068966
75
0.584767
93db2af5908a366ec981f95e5ce4f8db1456efb7
1,118
py
Python
klepro/urls.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
klepro/urls.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
klepro/urls.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from django.views.generic import TemplateView, RedirectView from producten.views import ProductenListView, NaTeKijkenProductenListView, downloadPrijslijst admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r...
25.409091
94
0.613596
93db662ed55ba2ffdd2321d9fad553ae5a0cebc7
149
py
Python
UAT_scripts/English_letters2.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
1
2020-01-15T11:04:16.000Z
2020-01-15T11:04:16.000Z
UAT_scripts/English_letters2.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
2
2021-03-31T19:36:19.000Z
2021-06-10T22:29:26.000Z
UAT_scripts/English_letters2.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
null
null
null
#!/usr/bin/python3 import string for letter in string.ascii_lowercase: with open(letter + ".txt", "w") as newfile: newfile.write(letter)
24.833333
47
0.684564
93dba93c935340e8072b0dee000943f4d7eb6cbe
27,252
py
Python
hermes.py
HugoSoaresFontes/robotic-arm-control-lynxmotion
9c6b54d5d38d5f2993f95fee3847cd59f2760e0c
[ "MIT" ]
2
2017-09-25T18:31:11.000Z
2017-09-26T14:02:36.000Z
hermes.py
HugoSoaresFontes/robotic-arm-control-lynxmotion
9c6b54d5d38d5f2993f95fee3847cd59f2760e0c
[ "MIT" ]
null
null
null
hermes.py
HugoSoaresFontes/robotic-arm-control-lynxmotion
9c6b54d5d38d5f2993f95fee3847cd59f2760e0c
[ "MIT" ]
null
null
null
import functools import glob import re import sys import serial import yaml from typing import Callable from abc import ABCMeta, abstractmethod, abstractproperty import numpy as np import math from time import sleep class Servo(object): def __init__(self, nome: str, porta: int, angulo_minimo: flo...
31.911007
222
0.56572
93dbb024856faec59a316ea6fb67202d1b014dff
7,180
py
Python
sparv/modules/xml_export/xml_utils.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
sparv/modules/xml_export/xml_utils.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
sparv/modules/xml_export/xml_utils.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
"""Util functions for XML export.""" import bz2 import io import logging import os import re import xml.etree.ElementTree as etree from typing import Optional import sparv.util as util log = logging.getLogger(__name__) INDENTATION = " " def make_pretty_xml(span_positions, annotation_dict, export_names, token_nam...
39.888889
118
0.623259
93dbb376efdfa49cddaedf8ab059558af4c91760
3,611
py
Python
20_Valid-Parentheses.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
20_Valid-Parentheses.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
20_Valid-Parentheses.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
class Solution: def isValid(self, s): """ :type s: str :rtype: bool """ if not s: return True s = list(s) my_stack = [] if s[0] in [')', ']', '}']: return False for i in range(len(s)): if s[i] in ['(', '[', '...
28.65873
162
0.330933
93dbbcef0984a4436546a5a832456f0cec5b0f44
7,887
py
Python
tests/test_car.py
av1m/cars
efa09e2e61e1398996b2b22328e959d03b67170f
[ "MIT" ]
null
null
null
tests/test_car.py
av1m/cars
efa09e2e61e1398996b2b22328e959d03b67170f
[ "MIT" ]
null
null
null
tests/test_car.py
av1m/cars
efa09e2e61e1398996b2b22328e959d03b67170f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import copy import unittest from cars.car import Car from cars.motor import Motor, TypeMotor from cars.wheel import Wheel class TestCar(unittest.TestCase): def setUp(self) -> None: self.car0: Car = Car() self.car1: Car = Car(max_speed=100, horsepower=150) self.car...
42.403226
106
0.643718
93dbce975ebdec505cec346b2c33b1b402aebfbf
68,287
py
Python
versioneer.py
yapweiyih/amazon-sagemaker-entrypoint-utilities
5c01bf0717cd6dbe9ba0114c21cffb84fbf9136b
[ "MIT-0" ]
5
2020-11-02T02:11:08.000Z
2021-07-28T02:53:56.000Z
versioneer.py
yapweiyih/amazon-sagemaker-entrypoint-utilities
5c01bf0717cd6dbe9ba0114c21cffb84fbf9136b
[ "MIT-0" ]
11
2021-02-05T09:14:20.000Z
2021-10-03T07:14:35.000Z
versioneer.py
yapweiyih/amazon-sagemaker-entrypoint-utilities
5c01bf0717cd6dbe9ba0114c21cffb84fbf9136b
[ "MIT-0" ]
4
2020-11-10T06:30:34.000Z
2021-07-21T08:29:51.000Z
# Version: 0.18 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy * [![Latest Version] (...
36.971846
119
0.627133
93dc0ed62580dde51f97495d850dd43d37f508e9
1,287
py
Python
tests/test_json.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
null
null
null
tests/test_json.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
null
null
null
tests/test_json.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2018 CERN. # # KPIit is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Utility function tests.""" import pytest from kpiit.json import metric_dumps, metric_loads from kpiit.metrics.records i...
27.382979
72
0.732712
93dc2812d800a95e2483681ad6818b477cb84299
7,406
py
Python
bookworm/platform_services/_win32/updater.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
18
2019-07-19T22:12:15.000Z
2020-08-26T17:45:19.000Z
bookworm/platform_services/_win32/updater.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
44
2019-07-15T10:17:00.000Z
2020-07-26T11:22:53.000Z
bookworm/platform_services/_win32/updater.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
9
2019-09-03T13:13:31.000Z
2020-08-25T13:55:27.000Z
# coding: utf-8 import sys import os import shutil import zipfile import tempfile import wx import win32api from functools import partial from hashlib import sha1 from pathlib import Path from System.Diagnostics import Process from requests.exceptions import RequestException from bookworm import app from bookworm impo...
37.40404
105
0.668782
93dc2dcd03765c72677e9326fb6cc5085d91838d
2,961
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.544118
99
0.682877
93dc4cec45a25b1bdbaacb8cbe537ad39426c384
971
py
Python
qradar/urls.py
vermamanoj/soc_2017Jul
18a1b1a72dbff727a4859f0590a44a4fc3fd5348
[ "MIT" ]
null
null
null
qradar/urls.py
vermamanoj/soc_2017Jul
18a1b1a72dbff727a4859f0590a44a4fc3fd5348
[ "MIT" ]
1
2017-07-22T09:21:42.000Z
2017-07-22T09:21:42.000Z
qradar/urls.py
vermamanoj/soc_2017Jul
18a1b1a72dbff727a4859f0590a44a4fc3fd5348
[ "MIT" ]
null
null
null
"""gentelella URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
35.962963
79
0.69413
93dc670b670ab2134916c546d627d2ed7da91c27
3,179
py
Python
Python/train.py
JTBridge/ME-COVID19
b453455eab94797e1f405dd20d219ddfbd4064d2
[ "Apache-2.0" ]
null
null
null
Python/train.py
JTBridge/ME-COVID19
b453455eab94797e1f405dd20d219ddfbd4064d2
[ "Apache-2.0" ]
null
null
null
Python/train.py
JTBridge/ME-COVID19
b453455eab94797e1f405dd20d219ddfbd4064d2
[ "Apache-2.0" ]
null
null
null
''' Code for training proposed and comparison models. Please cite: Development and External Validation of a Mixed-Effects Deep Learning Model to Diagnose COVID-19 from CT Imaging Joshua Bridge, Yanda Meng, Wenyue Zhu, Thomas Fitzmaurice, Caroline McCann, Cliff Addison, Manhui Wang, Cristin Merritt, Stu Franks, Maria ...
29.71028
111
0.700849
93dc7854c2e51dd32ab2499d866cc3d8f268a1e9
6,340
py
Python
fnat_testset/testcase/testcategory_1/testgroup_2.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
fnat_testset/testcase/testcategory_1/testgroup_2.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
fnat_testset/testcase/testcategory_1/testgroup_2.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
from fnat_dev import FnatDevice from switch import Switch import time import sys import os from gateway import Gateway from dhcp import DHCP from dns import DNS from nistnet import Nistnet from demo import UITest import serial import pymongo from pymongo import MongoClient from selenium import webdriver from wifi impor...
41.710526
120
0.722871
93dcc4fae9a78b79965e29b0fcaae9afb3b28632
1,420
py
Python
dali/utils/throttled.py
JonathanRaiman/dali-cython-stub
e258469aeb1d4cb3e4cdf5c07e8948f461a038f1
[ "MIT" ]
7
2016-06-20T17:50:06.000Z
2019-12-13T17:27:46.000Z
dali/utils/throttled.py
JonathanRaiman/dali-cython
e258469aeb1d4cb3e4cdf5c07e8948f461a038f1
[ "MIT" ]
6
2015-08-04T07:25:38.000Z
2015-08-13T22:06:22.000Z
dali/utils/throttled.py
JonathanRaiman/dali-cython
e258469aeb1d4cb3e4cdf5c07e8948f461a038f1
[ "MIT" ]
2
2016-07-04T21:38:14.000Z
2016-08-31T02:53:19.000Z
import time class Throttled(object): def __init__(self, min_time_since_last_run_s=5): """Used for simple throttled execution. Here's a simple example: @Throttled(1) def lol(i): print('epoch %d' % (i,), flush=True) for i in range(100000000): ...
26.792453
95
0.58662
93dcd7086bf6ee7b8fc5b4f2462c35922ff5f0b4
1,695
py
Python
data/level/level10022.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level10022.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level10022.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = {'level_index': 10022, 'move_count': '100', 'board_info': {(0, 8): {}, (0, 7): {}, (0, 6): {}, (0, 5): {}, (0, 4): {}, (1, 9): {}, (1, 8): {}, (1, 7): {}, (1, 6): {}, (1, 5): {}, (1, 4): {'bg_number': 41}, (1, 3): {'bg_number': 41}, (2, 9): {}, (2, 8): {}, (2...
94.166667
120
0.277876
93dcead27b8ec01f5cf3bde5eba43d76d5f656d2
2,096
py
Python
agents_playground/core/event_based_simulation.py
sholloway/agents-playground
f4da7acf9b410b4c01c5afc1aa45233960bea861
[ "MIT" ]
null
null
null
agents_playground/core/event_based_simulation.py
sholloway/agents-playground
f4da7acf9b410b4c01c5afc1aa45233960bea861
[ "MIT" ]
37
2021-11-25T14:40:49.000Z
2022-02-23T23:09:28.000Z
agents_playground/core/event_based_simulation.py
sholloway/agents-playground
f4da7acf9b410b4c01c5afc1aa45233960bea861
[ "MIT" ]
null
null
null
from time import sleep import dearpygui.dearpygui as dpg from agents_playground.core.simulation import Simulation, SimulationState from agents_playground.core.scheduler import JobScheduler from agents_playground.core.time_utilities import MS_PER_SEC, UPDATE_BUDGET, TimeInMS, TimeInSecs, TimeUtilities class EventBase...
38.109091
112
0.730439
93dd23239dd942b1e86b932fce5b4537987bf9e2
2,534
py
Python
alipay/aop/api/domain/ImageTextItem.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/domain/ImageTextItem.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/domain/ImageTextItem.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.constant.ParamConstants import * class ImageTextItem(object): def __init__(self): self._desc = None self._image_url = None self._msg_id = None self._title = None self._url = None @property ...
25.089109
69
0.528808
93dd304ef05cafd974c5af4d196d44f538305650
1,357
py
Python
init.py
JairGF05/identificador_relaciones
7b785ef4c9d0d0378948006956eac1145067c676
[ "MIT" ]
null
null
null
init.py
JairGF05/identificador_relaciones
7b785ef4c9d0d0378948006956eac1145067c676
[ "MIT" ]
null
null
null
init.py
JairGF05/identificador_relaciones
7b785ef4c9d0d0378948006956eac1145067c676
[ "MIT" ]
null
null
null
from functions import * ##El conjunto a analizar es: #Conjunto = [2,4,6,9,12,18,27,36,48,60,72] #Prueba de que no cumple ningun orden #Conjunto = [0,1,2,3] #Relación =[(0,0),(0,1),(0,2),(0,3),(1,0),(1,1),(1,2),(1,3),(2,0),(2,2),(3,3)] #Prueba relacion de equivalencia #Conjunto =['a','b','c','d'] #Relación =[('a','a...
39.911765
109
0.539425
93dd5b588fd8c383b7918f02f51aeec7224e2f4c
393
py
Python
config/wsgi.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
1
2018-04-02T09:01:41.000Z
2018-04-02T09:01:41.000Z
config/wsgi.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
null
null
null
config/wsgi.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
null
null
null
""" WSGI config for s3backups project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "s3backups.settings") from django.co...
26.2
78
0.791349
93dd705352e86ab65c5aa7a735941df4270d6a29
5,858
py
Python
oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/tracking.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/tracking.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/tracking.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, unicode_literals import json from threading import local from time import time from django.utils import six from django.utils.encoding import force_text from debug_toolbar import settings as dt_settings from debug_toolbar.utils import get_stack, get_template_info, ti...
32.544444
94
0.576989
93dd7842b978da43502fe62471df9bb48df12e77
10,597
py
Python
app.py
UnitedIncome/SLACKBOT-DESTROYER
a38900136cea8adf71bd29fadaa2788c52f3f9be
[ "MIT" ]
32
2018-11-01T15:44:50.000Z
2021-08-10T07:30:50.000Z
app.py
UnitedIncome/SLACKBOT-DESTROYER
a38900136cea8adf71bd29fadaa2788c52f3f9be
[ "MIT" ]
4
2018-10-30T20:44:19.000Z
2021-06-04T00:06:30.000Z
app.py
isabella232/slackbot-destroyer
a38900136cea8adf71bd29fadaa2788c52f3f9be
[ "MIT" ]
2
2021-06-25T15:59:15.000Z
2021-08-05T18:09:22.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import time import requests import random from slackclient import SlackClient from constants import * from global_store import GlobalStore slack_client = SlackClient(SLACK_BOT_TOKEN) def handle_command(command, channel): """ Handles any generic command that is poi...
36.795139
154
0.562329
93dd9cad81709f49dc6ea9c5cae2afeed00cac5a
791
py
Python
LC/86.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/86.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/86.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def partition(self, head, x): """ :type head: ListNode :type x: int :rtype: ListNode """ res1=ListNod...
24.71875
36
0.469027
93dd9f20f2ca43d738297c8dd6c0970a40f57fa0
28,527
py
Python
src/learning.py
meixiazhi/RINS-W
35fa92c14e8e5076ed9f0c9b860b165a260eeb62
[ "MIT" ]
1
2021-11-29T08:36:59.000Z
2021-11-29T08:36:59.000Z
src/learning.py
capriciousZihao/RINS-W
35fa92c14e8e5076ed9f0c9b860b165a260eeb62
[ "MIT" ]
null
null
null
src/learning.py
capriciousZihao/RINS-W
35fa92c14e8e5076ed9f0c9b860b165a260eeb62
[ "MIT" ]
null
null
null
import torch import time import matplotlib.pyplot as plt plt.rcParams["legend.loc"] = "upper right" plt.rcParams['axes.titlesize'] = 'xx-large' plt.rcParams['axes.labelsize'] = 'x-large' plt.rcParams['legend.fontsize'] = 'xx-large' plt.rcParams['xtick.labelsize'] = 'x-large' plt.rcParams['ytick.labelsize'] = 'x-large'...
40.349364
107
0.560206
93ddb147f871d1d7bdd63d2cc2307ccf369ba882
1,683
py
Python
development/scripts/prepro/download_chunks.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
7
2021-04-07T06:31:58.000Z
2022-01-27T09:49:51.000Z
development/scripts/prepro/download_chunks.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
null
null
null
development/scripts/prepro/download_chunks.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
2
2021-05-19T03:39:04.000Z
2021-08-12T08:20:19.000Z
import os, os.path from pathlib import Path import argparse def downloadChunk(chunk, chunkType, datasetRoot): typeRoot = os.path.join(datasetRoot, chunkType) Path(typeRoot).mkdir(parents=True, exist_ok=True) url, filename = chunk.split() dstPath = os.path.join(typeRoot,filename) if (not os.path.e...
34.346939
122
0.670826
93ddcbf5d573747fe31e2c17047e92e10185a368
1,323
py
Python
ncclient/devices/hpcomware.py
mikiec84/ncclient
7662666aac957fcf6aeb50c05f6b9816179cfd23
[ "Apache-2.0" ]
498
2015-10-21T18:43:23.000Z
2022-03-29T17:27:59.000Z
ncclient/devices/hpcomware.py
mikiec84/ncclient
7662666aac957fcf6aeb50c05f6b9816179cfd23
[ "Apache-2.0" ]
440
2015-09-07T23:43:01.000Z
2022-03-17T11:43:16.000Z
ncclient/devices/hpcomware.py
mikiec84/ncclient
7662666aac957fcf6aeb50c05f6b9816179cfd23
[ "Apache-2.0" ]
330
2015-09-10T16:53:50.000Z
2022-03-31T12:24:53.000Z
from ncclient.xml_ import BASE_NS_1_0 from .default import DefaultDeviceHandler from ncclient.operations.third_party.hpcomware.rpc import DisplayCommand, ConfigCommand, Action, Rollback, Save class HpcomwareDeviceHandler(DefaultDeviceHandler): def __init__(self, device_params): super(HpcomwareDeviceHandle...
30.767442
111
0.634921
93ddd56d63bdcaaa27af0d113496f86b18dd60a0
1,132
py
Python
helpcenter/migrations/0010_auto_20160929_2247.py
smalls12/django_helpcenter
e0118447871abad701056bc137d63e6fcd8abde6
[ "MIT" ]
4
2017-07-30T17:43:36.000Z
2021-09-14T04:26:37.000Z
helpcenter/migrations/0010_auto_20160929_2247.py
cdriehuys/django_helpcenter
e0118447871abad701056bc137d63e6fcd8abde6
[ "MIT" ]
20
2016-06-30T04:52:26.000Z
2016-09-30T04:52:15.000Z
helpcenter/migrations/0010_auto_20160929_2247.py
cdriehuys/django_helpcenter
e0118447871abad701056bc137d63e6fcd8abde6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-09-29 22:47 from __future__ import unicode_literals from django.db import migrations, models from django.utils.text import slugify def create_article_slugs(apps, schema_editor): """Create slugs for existing articles.""" Article = apps.get_model("hel...
27.609756
79
0.631625
93ddde2e679901b24ef3ac9d6c5370cc104684a1
2,448
py
Python
alipay/aop/api/domain/AlipayPayAppTradeArrearSyncModel.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/domain/AlipayPayAppTradeArrearSyncModel.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/domain/AlipayPayAppTradeArrearSyncModel.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.constant.ParamConstants import * class AlipayPayAppTradeArrearSyncModel(object): def __init__(self): self._biz_scene = None self._goods_digest = None self._merchant_name = None self._trade_no = None ...
28.465116
77
0.597222
93dded4a14b5aef28c06e914f29f6a1b450ed560
3,157
py
Python
vwo/constants/constants.py
wingify/vwo-python-sdk
8b8e798a16c43012ca2c6c6c85dde66f4f3cb6a5
[ "Apache-2.0" ]
14
2019-08-06T06:57:46.000Z
2022-01-05T13:27:50.000Z
vwo/constants/constants.py
wingify/vwo-python-sdk
8b8e798a16c43012ca2c6c6c85dde66f4f3cb6a5
[ "Apache-2.0" ]
3
2019-08-19T10:29:17.000Z
2021-09-16T15:59:38.000Z
vwo/constants/constants.py
wingify/vwo-python-sdk
8b8e798a16c43012ca2c6c6c85dde66f4f3cb6a5
[ "Apache-2.0" ]
10
2019-08-08T12:38:50.000Z
2021-09-14T11:35:00.000Z
# Copyright 2019-2021 Wingify Software Pvt. 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 agr...
25.666667
99
0.723155
93de1ef44dc7cd185b9268bcbf00c68ee860c51e
1,607
py
Python
pytree/data/packed_tree.py
AntoineSimoulin/pytree
9408799c4b8d4d59b1103e2205ffe7b250614f92
[ "Apache-2.0" ]
18
2021-11-10T13:34:02.000Z
2021-12-17T13:28:00.000Z
pytree/data/packed_tree.py
AntoineSimoulin/pytree
9408799c4b8d4d59b1103e2205ffe7b250614f92
[ "Apache-2.0" ]
null
null
null
pytree/data/packed_tree.py
AntoineSimoulin/pytree
9408799c4b8d4d59b1103e2205ffe7b250614f92
[ "Apache-2.0" ]
null
null
null
from .utils import get_root, get_childrens, get_tree_depth, get_nodes_detph, get_step_length import numpy as np def pack_tree(inputs, head_idx): node_depth = get_nodes_detph(head_idx) depth = get_tree_depth(head_idx) step_length = get_step_length(node_depth) # packed_inputs = np.zeros((depth, step_len...
34.934783
112
0.660236
93de4fe4ae75e14772c8246e6c4497b7b21fffbe
629
py
Python
test/test_datehelper.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
7
2015-02-26T15:22:55.000Z
2021-02-12T13:45:34.000Z
test/test_datehelper.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
2
2015-07-21T19:41:59.000Z
2022-03-15T15:49:08.000Z
test/test_datehelper.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
3
2015-03-16T18:15:39.000Z
2016-05-03T07:07:31.000Z
# Monary - Copyright 2011-2014 David J. C. Beach # Please see the included LICENSE.TXT and NOTICE.TXT for licensing information. import datetime from monary.datehelper import datetime_to_mongodate, mongodate_to_datetime DT = datetime.datetime DATES = [ (DT(1970, 1, 1), 0), (DT(1970, 1, 1, 0, ...
27.347826
79
0.643879
93de61e3c13e898ff0af6504011f9e6c5ad790b3
677
py
Python
src/ggrc_workflows/migrations/versions/20150812104803_1a4241cfd4cd_make_task_group_id_nullable.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-01-03T02:49:23.000Z
2018-01-03T02:49:23.000Z
src/ggrc_workflows/migrations/versions/20150812104803_1a4241cfd4cd_make_task_group_id_nullable.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_workflows/migrations/versions/20150812104803_1a4241cfd4cd_make_task_group_id_nullable.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Make task_group_id nullable Revision ID: 1a4241cfd4cd Revises: 44047daa31a9 Create Date: 2015-08-12 10:48:03.112117 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by ...
18.297297
78
0.700148
93de7636c12885fa665a832701da0de2be5a9372
299
py
Python
asyncpraw/const.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
asyncpraw/const.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
asyncpraw/const.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
"""Async PRAW constants.""" from .endpoints import API_PATH # noqa: F401 __version__ = "7.4.1.dev0" USER_AGENT_FORMAT = f"{{}} Async PRAW/{__version__}" MAX_IMAGE_SIZE = 512000 MIN_JPEG_SIZE = 128 MIN_PNG_SIZE = 67 JPEG_HEADER = b"\xff\xd8\xff" PNG_HEADER = b"\x89\x50\x4e\x47\x0d\x0a\x1a\x0a"
21.357143
52
0.719064
93de7d074e898bd696238978bf62d54090ddcd5d
2,281
py
Python
alipay/aop/api/response/AlipayOpenMiniAliminiabilityprodJsapiQueryResponse.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/response/AlipayOpenMiniAliminiabilityprodJsapiQueryResponse.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/response/AlipayOpenMiniAliminiabilityprodJsapiQueryResponse.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.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.ErrorCodeDTO import ErrorCodeDTO from alipay.aop.api.domain.JsApiBaseDTO import JsApiBaseDTO class AlipayOpenMiniAliminiabilityprodJsapiQueryResponse(AlipayResponse):...
34.044776
123
0.683472
93de9aa0412958bb28abc5dfc79acee2a7ad3808
19,729
py
Python
collections/ansible_collections/community/general/plugins/modules/source_control/gitlab/gitlab_group_members.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
collections/ansible_collections/community/general/plugins/modules/source_control/gitlab/gitlab_group_members.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
collections/ansible_collections/community/general/plugins/modules/source_control/gitlab/gitlab_group_members.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2020, Zainab Alsaffar <Zainab.Alsaffar@mail.rit.edu> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- m...
43.842222
148
0.613665
93deaa3d2fd21c728b295c0db1c87bf06b58251a
81,245
py
Python
mathics/builtin/inout.py
rebcabin/Mathics
b9d9bb750c5a04bcf34428f08196f2a233c27cdf
[ "Apache-2.0" ]
2
2019-06-01T12:51:00.000Z
2019-06-02T05:17:15.000Z
mathics/builtin/inout.py
rebcabin/Mathics
b9d9bb750c5a04bcf34428f08196f2a233c27cdf
[ "Apache-2.0" ]
3
2018-09-06T17:50:01.000Z
2018-09-14T14:05:34.000Z
mathics/builtin/inout.py
suhr/Mathics
dcdf81a70d617ce460f45cbdcddcb16846ef50dc
[ "Apache-2.0" ]
1
2018-09-05T05:09:47.000Z
2018-09-05T05:09:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Input and Output """ import re import mpmath import typing from typing import Any from mathics.builtin.base import ( Builtin, BinaryOperator, BoxConstruct, BoxConstructError, Operator, Predefined) from mathics.builtin.tensors import get_dimensions from mat...
31.563714
182
0.547123
93debf1cc4c964e21563700880559c331151cfd8
3,486
py
Python
test_sink_accretion.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:30.000Z
2022-02-05T19:43:30.000Z
test_sink_accretion.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
null
null
null
test_sink_accretion.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:38.000Z
2022-02-05T19:43:38.000Z
from amuse.test.amusetest import TestWithMPI from amuse.datamodel.particles import Particle from amuse.units import (nbody_system, units) from amuse.ic.gasplummer import new_plummer_gas_model from sinks_class import should_a_sink_form from plotting_class import temperature_to_u class TestSinkAccretion(TestWithMPI):...
33.519231
77
0.608721
93dee34e023691e24d099fbc6a08e500555a1db5
4,431
py
Python
InferenceInterfaces/Karlsson_FastSpeech2.py
Flux9665/IMS-Toucan
dca76d37c5ea35bcdb35f979efd533fec75ed855
[ "Apache-2.0" ]
null
null
null
InferenceInterfaces/Karlsson_FastSpeech2.py
Flux9665/IMS-Toucan
dca76d37c5ea35bcdb35f979efd533fec75ed855
[ "Apache-2.0" ]
null
null
null
InferenceInterfaces/Karlsson_FastSpeech2.py
Flux9665/IMS-Toucan
dca76d37c5ea35bcdb35f979efd533fec75ed855
[ "Apache-2.0" ]
null
null
null
import os import librosa.display as lbd import matplotlib.pyplot as plt import sounddevice import soundfile import torch from InferenceInterfaces.InferenceArchitectures.InferenceFastSpeech2 import FastSpeech2 from InferenceInterfaces.InferenceArchitectures.InferenceHiFiGAN import HiFiGANGenerator from Preprocessing.A...
47.138298
136
0.628978
93deed9a6e48a0a650cd69b8944f407f23590dfd
1,499
py
Python
venv/lib/python3.8/site-packages/mplfinance/_styledata/default.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/mplfinance/_styledata/default.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2020-04-21T02:42:32.000Z
2020-04-21T02:42:32.000Z
venv/lib/python3.7/site-packages/mplfinance/_styledata/default.py
CatTiger/vnpy
7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b
[ "MIT" ]
null
null
null
style = dict(style_name = 'default', base_mpl_style= 'seaborn-darkgrid', marketcolors = {'candle' : {'up':'w', 'down':'k'}, 'edge' : {'up':'k', 'down':'k'}, 'wick' : {'up':'k', 'down':'k'}, 'o...
53.535714
90
0.30954
93df3aeac698dc957e33628b5c59610205c1bb3c
888
py
Python
how-to-print-file-trees-on-the-command-line/snippet.py
wcarhart/willcarh.art-snippets
0a72a87a6b81951410dfbbf7d0d42c19811bb28b
[ "MIT" ]
null
null
null
how-to-print-file-trees-on-the-command-line/snippet.py
wcarhart/willcarh.art-snippets
0a72a87a6b81951410dfbbf7d0d42c19811bb28b
[ "MIT" ]
null
null
null
how-to-print-file-trees-on-the-command-line/snippet.py
wcarhart/willcarh.art-snippets
0a72a87a6b81951410dfbbf7d0d42c19811bb28b
[ "MIT" ]
null
null
null
import os def build_tree(entity, indent, is_head, is_tail, result): # determine if entity is a directory or file files = [] if os.path.isdir(entity): files = os.listdir(entity) # keep track of line prefixes entity_prefix = '└── ' if is_tail else '├── ' content_prefix = ' ' if is_tail else '| ' if is_hea...
31.714286
104
0.69482
93df40bee97dee744b7585dba1fe9a3f26d3e9b5
1,295
py
Python
model/utils.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
1
2022-03-14T13:06:48.000Z
2022-03-14T13:06:48.000Z
model/utils.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
null
null
null
model/utils.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
null
null
null
""" from https://github.com/jaywalnut310/glow-tts """ import torch def sequence_mask(length, max_length=None): if max_length is None: max_length = length.max() x = torch.arange(int(max_length), dtype=length.dtype, device=length.device) return x.unsqueeze(0) < length.unsqueeze(1) def fix_len_com...
28.777778
79
0.644788
93df43629e10651bde1f8d9b4be9df869df02848
37
py
Python
docker_zabbix_sender/version.py
tristan0x/zabbix-containers-sender
517cfb3bc20fa197fc01c025699f4860ffc7b792
[ "Apache-2.0" ]
11
2015-02-26T04:50:04.000Z
2017-04-03T08:30:49.000Z
docker_zabbix_sender/version.py
tristan0x/zabbix-containers-sender
517cfb3bc20fa197fc01c025699f4860ffc7b792
[ "Apache-2.0" ]
9
2015-03-05T06:23:46.000Z
2015-12-02T22:02:21.000Z
docker_zabbix_sender/version.py
tristan0x/docker-zabbix-sender
517cfb3bc20fa197fc01c025699f4860ffc7b792
[ "Apache-2.0" ]
11
2015-03-12T02:06:54.000Z
2017-04-27T21:15:32.000Z
# encoding: utf-8 version = "0.3.3"
9.25
17
0.594595
93dfe29aeedb062b4e114166a3d9a4c860d8f1bd
13,340
py
Python
nova/objects/fixed_ip.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/objects/fixed_ip.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/objects/fixed_ip.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2014 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
44.615385
79
0.607796
93e005cdec1ad4201916c73fb2dcda2b3df79b0a
3,097
py
Python
libraries/mathy_python/mathy/cli.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
95
2020-01-02T23:02:34.000Z
2022-03-08T18:57:24.000Z
libraries/mathy_python/mathy/cli.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
44
2020-01-05T03:07:45.000Z
2021-08-11T20:45:53.000Z
libraries/mathy_python/mathy/cli.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
5
2020-04-04T16:46:36.000Z
2022-03-30T08:10:02.000Z
"""Mathy CLI --- Command line application for interacting with Mathy agents and environments. """ import click from wasabi import msg @click.group() @click.version_option() def cli(): """ Mathy - https://mathy.ai Command line app for training and evaluating agents that transform expression trees us...
28.154545
87
0.645463
93e034ce7df44ef08e7544c0231aaa9fff9f5435
2,739
py
Python
website/frontend/migrations/0002_auto__add_field_version_diff_json.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
1
2015-05-14T20:05:24.000Z
2015-05-14T20:05:24.000Z
website/frontend/migrations/0002_auto__add_field_version_diff_json.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
null
null
null
website/frontend/migrations/0002_auto__add_field_version_diff_json.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Version.diff_json' db.add_column('version', 'diff_json', self.gf('django.db.models.fields....
51.679245
138
0.568456
93e03853e79622196cd9e6006c1cc432957ead57
7,792
py
Python
oscar/lib/python2.7/site-packages/IPython/extensions/storemagic.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/extensions/storemagic.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/extensions/storemagic.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ %store magic for lightweight persistence. Stores variables, aliases and macros in IPython's database. To automatically restore stored variables at startup, add this to your :file:`ipython_config.py` file:: c.StoreMagics.autorestore = True """ from __future__ import print_func...
34.026201
101
0.496535
93e057cb7afd16b6148d727a171f0bed7f0808dc
3,327
py
Python
src/crawl/unicrawl/settings.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
5
2020-10-28T15:22:40.000Z
2021-06-08T18:50:24.000Z
src/crawl/unicrawl/settings.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
23
2021-08-02T07:38:47.000Z
2022-02-11T14:16:56.000Z
src/crawl/unicrawl/settings.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
3
2021-11-20T06:06:44.000Z
2022-03-11T07:44:43.000Z
# -*- coding: utf-8 -*- # Scrapy settings for unicrawl project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/to...
34.65625
103
0.770664
93e0a4cb2d49ce0f54d3617d5c65d403bd9c13e8
2,773
py
Python
mtp_bank_admin/apps/bank_admin/tests/test_functional.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
3
2016-01-05T12:21:44.000Z
2016-12-22T15:57:49.000Z
mtp_bank_admin/apps/bank_admin/tests/test_functional.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
60
2015-08-13T12:44:38.000Z
2022-02-01T17:36:05.000Z
mtp_bank_admin/apps/bank_admin/tests/test_functional.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
2
2018-12-17T03:17:41.000Z
2021-04-11T06:23:54.000Z
from mtp_common.test_utils.functional_tests import FunctionalTestCase class BankAdminTestCase(FunctionalTestCase): """ Base class for all bank-admin functional tests """ accessibility_scope_selector = '#content' def login(self, *args, **kwargs): kwargs['url'] = self.live_server_url + '/en...
35.551282
86
0.676884
93e0aa40c4b15582e94c6a5e2ece4457002f4f74
2,547
py
Python
rest_api/db.py
mvallebr/url-shortener
3c29f9f320dc0f24cdde35df47d7f846178e259b
[ "Apache-2.0" ]
null
null
null
rest_api/db.py
mvallebr/url-shortener
3c29f9f320dc0f24cdde35df47d7f846178e259b
[ "Apache-2.0" ]
null
null
null
rest_api/db.py
mvallebr/url-shortener
3c29f9f320dc0f24cdde35df47d7f846178e259b
[ "Apache-2.0" ]
1
2021-11-25T21:40:24.000Z
2021-11-25T21:40:24.000Z
import click import logging from cassandra.cluster import Cluster from cassandra.policies import TokenAwarePolicy, DCAwareRoundRobinPolicy from flask import current_app, g from flask.cli import with_appcontext LOAD_BALANCING_POLICY = TokenAwarePolicy(DCAwareRoundRobinPolicy()) def get_cassandra_session(): if 'ca...
33.077922
117
0.706321
93e0dec6b2cc921688e7ee583731a8282a8ac661
12,101
py
Python
improver/utilities/pad_spatial.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver/utilities/pad_spatial.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver/utilities/pad_spatial.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
37.006116
86
0.673415
93e0f82487b953af68280a40e52a150a7a54698a
366
py
Python
terrascript/provider/ad.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/ad.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/ad.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/ad.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:10:57 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.provider.ad # # instead of # # >>> import terrascript.provider.hashicorp.ad # # This is only available for 'official' and 'partner' providers. fr...
24.4
73
0.734973
93e109d556caebb91ab2a1c09850fc028b8eba57
2,638
py
Python
nova/tests/functional/api_sample_tests/test_simple_tenant_usage.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_simple_tenant_usage.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_simple_tenant_usage.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2014 IBM Corp. # # 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 t...
36.638889
78
0.662244
93e157ac7e10b6e991848f2aa08b971c1849b2a8
5,746
py
Python
numba/__init__.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
numba/__init__.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
numba/__init__.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
""" Expose top-level symbols that are safe for import * """ from __future__ import print_function, division, absolute_import import platform import re import sys import warnings from . import config, errors, _runtests as runtests, types # Re-export typeof from .special import typeof, prange, pndindex, gdb, gdb_break...
32.280899
81
0.641316
93e16b410d3e3b5fefe6aa8e02446a01c1586de9
586
py
Python
disassembler/formats/helpers/flags.py
jchristman/PyDA
25a1091bfff369736e534424ddbdc426ba32a3a0
[ "BSD-3-Clause" ]
12
2015-11-24T22:43:14.000Z
2021-03-24T05:01:43.000Z
disassembler/formats/helpers/flags.py
jchristman/PyDA
25a1091bfff369736e534424ddbdc426ba32a3a0
[ "BSD-3-Clause" ]
1
2015-04-22T17:26:31.000Z
2015-04-22T17:48:38.000Z
disassembler/formats/helpers/flags.py
jchristman/PyDA
25a1091bfff369736e534424ddbdc426ba32a3a0
[ "BSD-3-Clause" ]
9
2015-03-05T17:43:47.000Z
2021-03-19T14:29:49.000Z
''' Author: Frank Adkins This is a very simple standardized format for the flags associated with different parts of an executable (ex. Sections). ''' class Flags: def __init__(self, flags): self.read = "r" in flags.lower() self.write = "w" in flags.lower() self.execute = "x" i...
24.416667
65
0.604096
93e16fddc764782396647b5e008eb2fd1070592e
9,168
py
Python
hw2/cs285/agents/pg_agent.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
1
2020-08-16T13:01:27.000Z
2020-08-16T13:01:27.000Z
hw2/cs285/agents/pg_agent.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
null
null
null
hw2/cs285/agents/pg_agent.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
3
2020-12-16T15:24:39.000Z
2022-01-27T21:29:34.000Z
import numpy as np from .base_agent import BaseAgent from cs285.policies.MLP_policy import MLPPolicyPG from cs285.infrastructure.replay_buffer import ReplayBuffer from cs285.infrastructure.utils import * class PGAgent(BaseAgent): def __init__(self, sess, env, agent_params): super(PGAgent, self).__init__...
43.450237
131
0.568608
93e17853d9a29c55ec974a01bbd9c1eed4904fc8
901
py
Python
adapters/pox/ext/debugger/elt/interaction/instantiate.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
1
2016-07-14T14:45:56.000Z
2016-07-14T14:45:56.000Z
server/ext/debugger/elt/interaction/instantiate.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
server/ext/debugger/elt/interaction/instantiate.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
import sys from ..util import app_logging log = app_logging.getLogger("Instantiate") class Instantiator(object): """ Store module and attribure to instantiate objects. """ def __init__(self, module=__name__, cls_param='_name'): self.module = module self.cls_param = cls_param de...
22.525
59
0.609323
93e1926bfa9f4b2534d711d17a9e9e2e45826b9c
3,989
py
Python
st2tests/integration/mistral/base.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2tests/integration/mistral/base.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2tests/integration/mistral/base.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...
41.552083
98
0.697669
93e2010538ab41f28d0a492c018ef90b77a975d6
2,191
py
Python
nova/tests/objects/test_ec2.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/objects/test_ec2.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/objects/test_ec2.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
1
2020-07-24T06:47:54.000Z
2020-07-24T06:47:54.000Z
# Copyright (C) 2014, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
31.3
78
0.660429
93e233c910c4d72324d61ad20078b77dc63a5c57
19,965
py
Python
applications/tensorflow/cnns/models/optimize_for_infer.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/models/optimize_for_infer.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/models/optimize_for_infer.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# This file is modified from tensorflow.python.tools.optimize_for_inference_lib.py # Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License ...
41.080247
107
0.660055
93e24621097d05dd2237dfb22f6e12e961c93d51
533
py
Python
game020201/models.py
born2code4u/game
2290c2f48034e8cce6c037b5bff1934e3710a6c5
[ "Apache-2.0" ]
null
null
null
game020201/models.py
born2code4u/game
2290c2f48034e8cce6c037b5bff1934e3710a6c5
[ "Apache-2.0" ]
null
null
null
game020201/models.py
born2code4u/game
2290c2f48034e8cce6c037b5bff1934e3710a6c5
[ "Apache-2.0" ]
null
null
null
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Eddi' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'Game020201' players_per_group = None num_rounds = 1 region_number = ...
19.035714
74
0.714822
93e2497108605920654304e621efb9d1e02a80bd
4,046
py
Python
alipay/aop/api/request/AlipayUserCertifyCustomerRelativenumApplyRequest.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/AlipayUserCertifyCustomerRelativenumApplyRequest.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/AlipayUserCertifyCustomerRelativenumApplyRequest.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.AlipayUserCertifyCustomerRelativenumApplyModel import AlipayUserCertifyCustomerRelativenumApplyModel class AlipayUserCertifyCustomer...
27.903448
148
0.651013
93e24a852839b9e5fa47eaec5308862a59523ebe
702
py
Python
app/emails.py
KageniJK/blog
6ee3557bbad53198efbab1ccd02a82f3fa3b9864
[ "MIT" ]
null
null
null
app/emails.py
KageniJK/blog
6ee3557bbad53198efbab1ccd02a82f3fa3b9864
[ "MIT" ]
null
null
null
app/emails.py
KageniJK/blog
6ee3557bbad53198efbab1ccd02a82f3fa3b9864
[ "MIT" ]
null
null
null
from flask_mail import Message from flask import render_template from . import mail def mail_message(subject, template, to, **kwargs): sender_email='messagesmoringa@gmail.com' email= Message(subject, sender=sender_email, recipients=[to]) email.body=render_template(template + '.txt', **kwargs) email....
33.428571
65
0.722222
93e250ed1616bb7f55c032e263c630c5b0bfb185
17,938
py
Python
alipay/aop/api/domain/CompleteVoucherInfo.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/domain/CompleteVoucherInfo.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/domain/CompleteVoucherInfo.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.constant.ParamConstants import * from alipay.aop.api.domain.InvoiceContentInfo import InvoiceContentInfo class CompleteVoucherInfo(object): def __init__(self): self._anti_fake_code = None self._check_sum = None ...
35.662028
93
0.616457
93e2669ea94e5cdc14aead959de7c03b779417d3
4,587
py
Python
msdsl/expr/svreal.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
15
2019-05-14T10:12:23.000Z
2022-03-29T15:29:52.000Z
msdsl/expr/svreal.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
19
2020-01-22T21:44:33.000Z
2021-06-05T02:10:41.000Z
msdsl/expr/svreal.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
5
2019-10-21T09:53:17.000Z
2021-08-10T17:32:20.000Z
from numbers import Number # Handling symbolic exponents class ExponentExpr: pass class ExponentOf(ExponentExpr): def __init__(self, name): self.name = name def __str__(self): return 'ExponentOf(' + self.name + ')' # Handling symbolic widths class WidthExpr: pass ...
24.529412
88
0.604971
93e268940ef75f58287c035b5e02587e9955fdb7
213,784
py
Python
tests/test_potential.py
turnergarrow/galpy
7132eddbf2dab491fe137790e31eacdc604b0534
[ "BSD-3-Clause" ]
null
null
null
tests/test_potential.py
turnergarrow/galpy
7132eddbf2dab491fe137790e31eacdc604b0534
[ "BSD-3-Clause" ]
null
null
null
tests/test_potential.py
turnergarrow/galpy
7132eddbf2dab491fe137790e31eacdc604b0534
[ "BSD-3-Clause" ]
null
null
null
############################TESTS ON POTENTIALS################################ from __future__ import print_function, division import os import sys PY3= sys.version > '3' import pytest import numpy from galpy.util.bovy_conversion import velocity_in_kpcGyr try: import pynbody _PYNBODY_LOADED= True except Import...
56.229353
355
0.653678
93e272aa016a4ea676dc62ddd77040ce549ba328
18,576
py
Python
utils/constants.py
allenai/interactron
2be41b34adf6917348cb2440cded9975ec4f5d0d
[ "Apache-2.0" ]
4
2022-03-30T06:07:32.000Z
2022-03-31T02:05:18.000Z
utils/constants.py
allenai/interactron
2be41b34adf6917348cb2440cded9975ec4f5d0d
[ "Apache-2.0" ]
null
null
null
utils/constants.py
allenai/interactron
2be41b34adf6917348cb2440cded9975ec4f5d0d
[ "Apache-2.0" ]
2
2022-03-30T10:05:42.000Z
2022-03-31T02:05:23.000Z
import json ACTIONS = ["MoveAhead", "MoveBack", "RotateLeft", "RotateRight"] tlvis_classes= [ 'aerosol_can', 'air_conditioner', 'airplane', 'alarm_clock', 'alcohol', 'alligator', 'almond', 'ambulance', 'amplifier', 'anklet', 'antenna', 'apple', 'applesauce', 'apricot', 'apron', 'aquarium', 'arctic_(type_of_...
106.758621
120
0.649117
93e29b6b6c2d5eec3dc636ee75890c24d2dd957e
831
py
Python
models/template.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
models/template.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
models/template.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.db import models from django.template import engines from django.template.loader import render_to_string from mighty.fields import JSONField template_engine = engines['django'] class Template(Base): template = models.ForeignKey('self', on_delete=models.SET_NULL, null=True, blank=True) title = mod...
33.24
90
0.741276
93e30175e24963af9ee34dca42b94662342c77f6
6,768
py
Python
our_policy.py
lyf44/CS4278-5478-Project-Materials
685419c65847e72450e99586e9e0f3794369b4a3
[ "MIT" ]
null
null
null
our_policy.py
lyf44/CS4278-5478-Project-Materials
685419c65847e72450e99586e9e0f3794369b4a3
[ "MIT" ]
null
null
null
our_policy.py
lyf44/CS4278-5478-Project-Materials
685419c65847e72450e99586e9e0f3794369b4a3
[ "MIT" ]
null
null
null
import argparse import numpy as np from gym_duckietown.envs import DuckietownEnv import torch import os import sys import cv2 import math sys.path.append(os.path.join(os.path.dirname(__file__), "./gym-duckietown/learning/")) sys.path.append(os.path.join(os.path.dirname(__file__), "./gym-duckietown/learning/reinforceme...
33.671642
150
0.632535
93e30bdfafed6ddc113f41acedd73452092c0cf7
491
py
Python
python/q1490/q1490.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q1490/q1490.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q1490/q1490.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
# Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children if children is not None else [] class Solution: def cloneTree(self, root: 'Node') -> 'Node': def build(node): if node is None: return N...
25.842105
64
0.549898
93e319e17d806810d458dbea22f594921f4ea10e
11,222
py
Python
salt/modules/systemd.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/modules/systemd.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/systemd.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Provide the service module for systemd ''' # Import python libs import logging import os import re log = logging.getLogger(__name__) __func_alias__ = { 'reload_': 'reload' } LOCAL_CONFIG_PATH = '/etc/systemd/system' VALID_UNIT_TYPES = ['service', 'socket', 'device', 'mount', 'automoun...
24.772627
81
0.613794
93e32482b58fff9e653b20ea4935be1c2ff04587
1,916
py
Python
m2-modified/ims/common/agentless-system-crawler/crawler/plugins/systems/package_container_crawler.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/crawler/plugins/systems/package_container_crawler.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/crawler/plugins/systems/package_container_crawler.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
import logging from icrawl_plugin import IContainerCrawler from utils.crawler_exceptions import CrawlError from utils.dockerutils import (exec_dockerinspect, get_docker_container_rootfs_path) from utils.misc import join_abs_paths from utils.namespace import run_as_another_namespace, ALL_...
38.32
77
0.584551
93e33bb263ff89bd7bcf89f7046ed239019922a9
4,480
py
Python
src/engine/game.py
Plonq/liero-clone
7b8db63e34de1b470cdb1d70874e20eab7319a29
[ "MIT" ]
1
2022-02-14T19:09:31.000Z
2022-02-14T19:09:31.000Z
src/engine/game.py
Plonq/liero-clone
7b8db63e34de1b470cdb1d70874e20eab7319a29
[ "MIT" ]
null
null
null
src/engine/game.py
Plonq/liero-clone
7b8db63e34de1b470cdb1d70874e20eab7319a29
[ "MIT" ]
null
null
null
import time import pygame as pg from pygame.math import Vector2 from .input import process_input_events, update_input_states clock = pg.time.Clock() FPS = 60 class Game: def __init__(self, window_size, display_size, title): pg.mixer.pre_init(44100, -16, 2, 2048) pg.init() pg.display.se...
32.463768
93
0.601563
93e35afd18026e2e27a647b50581a8c4bef8c511
53,871
py
Python
Tools/scons/scons-local/SCons/Script/Main.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Script/Main.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Script/Main.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""SCons.Script This file implements the main() function used by the scons script. Architecturally, this *is* the scons script, and will likely only be called from the external "scons" wrapper. Consequently, anything here should not be, or be considered, part of the build engine. If it's something that we ex...
37.593161
119
0.607878
93e3a9aaeee6caac916653bb08969e625ea8aeb0
1,985
py
Python
pex/network_configuration.py
tdyas/pex
e2d6bab09f8e9245f608402a904421268223ee58
[ "Apache-2.0" ]
1
2020-06-27T23:28:35.000Z
2020-06-27T23:28:35.000Z
pex/network_configuration.py
tdyas/pex
e2d6bab09f8e9245f608402a904421268223ee58
[ "Apache-2.0" ]
null
null
null
pex/network_configuration.py
tdyas/pex
e2d6bab09f8e9245f608402a904421268223ee58
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import from collections import namedtuple class NetworkConfiguration(namedtuple('NetworkConfiguration', [ 'cache_ttl', 'retries', 't...
33.644068
98
0.684635
93e3eebec2201cb00c97511b9ea195ff2eae8a60
1,078
py
Python
arch/vqa_extended.py
frkl/SOBERT-XVQA-demo
c99d2f36d9ed275dfd3ba25c200019bbde197d4f
[ "Apache-2.0" ]
2
2021-07-25T12:44:29.000Z
2021-07-27T08:55:48.000Z
arch/vqa_extended.py
frkl/SOBERT-XVQA-demo
c99d2f36d9ed275dfd3ba25c200019bbde197d4f
[ "Apache-2.0" ]
null
null
null
arch/vqa_extended.py
frkl/SOBERT-XVQA-demo
c99d2f36d9ed275dfd3ba25c200019bbde197d4f
[ "Apache-2.0" ]
1
2021-07-25T12:44:30.000Z
2021-07-25T12:44:30.000Z
import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import util.basic_layers as basic import util.language import nltk #import nltk.word_tokenize class new(nn.Module): def __init__(self,vqa_core,resnet,question_dictionary,answer_dictionary): super(new,self).__init_...
28.368421
74
0.77551
93e43af349b642b611b0b5f14dcc6b912a3ffb3e
1,112
py
Python
tests/test_estimator.py
iglpdc/dmrg_helpers
df27ff06395c0a4779c2d2723d57524da55cc14a
[ "MIT" ]
1
2019-09-26T13:06:04.000Z
2019-09-26T13:06:04.000Z
tests/test_estimator.py
iglpdc/dmrg_helpers
df27ff06395c0a4779c2d2723d57524da55cc14a
[ "MIT" ]
null
null
null
tests/test_estimator.py
iglpdc/dmrg_helpers
df27ff06395c0a4779c2d2723d57524da55cc14a
[ "MIT" ]
null
null
null
''' Test for the database class. ''' import os from nose.tools import with_setup from dmrg_helpers.extract.database import Database def setup_function(): pass def teardown_function(): os.remove('tests/db_test.sqlite3') @with_setup(setup_function, teardown_function) def test_members(): db = Database('test...
30.054054
79
0.715827
93e497f4a1e5131b81c9849d264c91a1a3677eaa
10,575
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_managed_instance_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_managed_instance_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_managed_instance_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.581897
210
0.683972
93e4abd4eaeb443d66c9f2ac53f17c270e5cf056
7,583
py
Python
Improving Deep Neural Networks/opt_utils.py
lankuohsing/Coursera-Deep-Learning-Specialization
64f34c862c8ef2cdf97379d82d31d47b8c6d6dcd
[ "MIT" ]
null
null
null
Improving Deep Neural Networks/opt_utils.py
lankuohsing/Coursera-Deep-Learning-Specialization
64f34c862c8ef2cdf97379d82d31d47b8c6d6dcd
[ "MIT" ]
null
null
null
Improving Deep Neural Networks/opt_utils.py
lankuohsing/Coursera-Deep-Learning-Specialization
64f34c862c8ef2cdf97379d82d31d47b8c6d6dcd
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import h5py import scipy.io import sklearn import sklearn.datasets def sigmoid(x): """ Compute the sigmoid of x Arguments: x -- A scalar or numpy array of any size. Return: s -- sigmoid(x) """ s = 1/(1+np.exp(-x)) return s def re...
29.165385
120
0.589872
93e4b8fbe521794764b9462d98f30ac08c4f64a0
3,586
py
Python
tests/test_passes.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
tests/test_passes.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
tests/test_passes.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
from pytest import fixture @fixture def run_date(run): run("space clock set-date 2018-11-01T09:00:00.000000") return run def test_simple(run_date): r = run_date("space passes TLS ISS --csv") lines = r.stdout.strip().splitlines() assert len(lines) == 26 assert lines[1].split(',')[1] == "AOS ...
29.393443
95
0.614055
93e4cb0287ff578ad1080628fed038305efc48b9
26
py
Python
cloudmesh/provisioner/__init__.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh/provisioner/__init__.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh/provisioner/__init__.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
__all__ = ['provisioner']
13
25
0.692308
93e4cf689bc4a7079a1fa9da41509d57be69e026
1,203
py
Python
tests/test_config.py
csabatini/nflstatsbot
760e51fd699477e4feb45bfa20b5887cafd17651
[ "Apache-2.0" ]
null
null
null
tests/test_config.py
csabatini/nflstatsbot
760e51fd699477e4feb45bfa20b5887cafd17651
[ "Apache-2.0" ]
4
2017-12-17T22:01:55.000Z
2017-12-19T06:18:09.000Z
tests/test_config.py
csabatini/nflstatsbot
760e51fd699477e4feb45bfa20b5887cafd17651
[ "Apache-2.0" ]
null
null
null
import os from os.path import dirname, join import nflstatsbot from nflstatsbot import load_config EXPECTED_LOG_HANDLERS = { 'console': { 'class': 'logging.StreamHandler', 'level': 'DEBUG', 'formatter': 'simple', 'stream': 'ext://sys.stdout' } } EXPECTED_POSTGRES_CONFIG = { ...
24.06
73
0.67581
93e4dc24fcca1370d4bbaa2a8bc2b9f7efc1db74
9,830
py
Python
proj1_3/meam620-2020/flightsim/world.py
yuchensun97/MEAM620-Advanced-Robotics
9b2ed4bc4b6d295830fd00b6e155fe58939208c4
[ "MIT" ]
3
2020-06-06T03:11:09.000Z
2022-03-14T18:11:21.000Z
proj1_3/meam620-2020/flightsim/world.py
yuchensun97/Quadrotor
9b2ed4bc4b6d295830fd00b6e155fe58939208c4
[ "MIT" ]
null
null
null
proj1_3/meam620-2020/flightsim/world.py
yuchensun97/Quadrotor
9b2ed4bc4b6d295830fd00b6e155fe58939208c4
[ "MIT" ]
1
2021-06-18T02:36:15.000Z
2021-06-18T02:36:15.000Z
import json import numpy as np from flightsim.shapes import Cuboid from flightsim.numpy_encoding import NumpyJSONEncoder, to_ndarray def interp_path(path, res): cumdist = np.cumsum(np.linalg.norm(np.diff(path, axis=0),axis=1)) if cumdist[-1] > 0: t = np.insert(cumdist,0,0) ts = np.arange(0, cu...
35.745455
132
0.595524
93e4ef022d3d76d9b60173af2b3df0f5203ff94d
3,251
py
Python
tests/docker/web_server/kdr_test_server/settings.py
PyUnchained/kdr_server
7485d6a549b0458438c5c9aa882de87084c43c76
[ "MIT" ]
null
null
null
tests/docker/web_server/kdr_test_server/settings.py
PyUnchained/kdr_server
7485d6a549b0458438c5c9aa882de87084c43c76
[ "MIT" ]
null
null
null
tests/docker/web_server/kdr_test_server/settings.py
PyUnchained/kdr_server
7485d6a549b0458438c5c9aa882de87084c43c76
[ "MIT" ]
null
null
null
""" Django settings for kdr_test_server project. Generated by 'django-admin startproject' using Django 4.0.2. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ from...
26.217742
91
0.700707
93e5168fa7792d66a905d86d6b1c7b60e7249445
455
py
Python
binarysearch.io/305_palindromic_tree.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/305_palindromic_tree.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/305_palindromic_tree.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
# class Tree: # def __init__(self, val, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def solve(self, root): order = [] def inorder(root): if root is None: return inorder(...
26.764706
53
0.49011
93e52f36967db410d46df2820e0d56f9b5ca9451
7,102
py
Python
src/azure-cli-core/azure/cli/core/commands/template_create.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/commands/template_create.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/azure-cli-core/azure/cli/core/commands/template_create.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. # --------------------------------------------------------------------...
47.986486
119
0.655168
93e53ce30ac1a9b77b9ab1674e3c1975cefeb211
149
py
Python
violas_client/lbrtypes/account_config/events/__init__.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/lbrtypes/account_config/events/__init__.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/lbrtypes/account_config/events/__init__.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from .burn import * from .cancel_burn import * from .mint import * from .preburn import * from .received_payment import * from .sent_payment import *
24.833333
31
0.765101
93e55ad2767e2f36843ba09ea9e24f8d01d2e2f1
259
py
Python
source/deepest_node/binaryTree.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
source/deepest_node/binaryTree.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
source/deepest_node/binaryTree.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
class binaryTree: def __init__(self, nodeData, left=None, right=None): self.nodeData = nodeData self.left = left self.right = right self.visited = False def __str__(self): return str(self.nodeData)
25.9
56
0.586873
93e55d02bc4bcc870a265bdf5c5552941298df23
531
py
Python
tarakania_rpg/commands/debug/command_command.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
tarakania_rpg/commands/debug/command_command.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
tarakania_rpg/commands/debug/command_command.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
from time import time from handler import BaseCommand, Context, Arguments, CommandResult from utils.formatting import codeblock class Command(BaseCommand): async def run(self, ctx: Context, args: Arguments) -> CommandResult: info = { "time": time(), "prefix": ctx.prefix, ...
26.55
73
0.576271
93e56f7c645206e6e9f572b827c26b2e5257edae
193
py
Python
rl-toolkit/rlf/il/__init__.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
rl-toolkit/rlf/il/__init__.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
rl-toolkit/rlf/il/__init__.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
from rlf.il.traj_dataset import TrajDataset from rlf.il.il_dataset import ImitationLearningDataset from rlf.il.transition_dataset import TransitionDataset from rlf.il.traj_mgr import TrajSaver
38.6
55
0.875648
93e57bcc2323bbe0510a142e97b421cd0a2e827a
7,109
py
Python
TRAIN/work_dirs/posec3d/3HL/3HL_test.py
EquipoVandV/mmactionVandV
a807d9e258d67b7b2d0fabe98da97a801d63ae7d
[ "Apache-2.0" ]
null
null
null
TRAIN/work_dirs/posec3d/3HL/3HL_test.py
EquipoVandV/mmactionVandV
a807d9e258d67b7b2d0fabe98da97a801d63ae7d
[ "Apache-2.0" ]
null
null
null
TRAIN/work_dirs/posec3d/3HL/3HL_test.py
EquipoVandV/mmactionVandV
a807d9e258d67b7b2d0fabe98da97a801d63ae7d
[ "Apache-2.0" ]
null
null
null
model = dict( type='Recognizer3D', backbone=dict( type='ResNet3dSlowOnly', depth=50, pretrained=None, in_channels=17, base_channels=32, num_stages=3, out_indices=(2, ), stage_blocks=(4, 6, 3), conv1_stride_s=1, pool1_stride_s=1, ...
36.64433
167
0.570404
93e58e5142b71f4cd39e58c94693a1a68741ff26
242
py
Python
Recursion/fibonacci.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Recursion/fibonacci.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Recursion/fibonacci.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
n = 10 cache = [None] * (n + 1) def fib(n): if n == 0 or n == 1: return n if cache[n] != None: return cache[n] cache[n] = fib(n - 1) + fib(n - 2) return cache[n] if __name__ == "__main__": print(fib(10))
17.285714
38
0.479339
93e597b859d60264b5832995c9eb525705b108ca
993
py
Python
geocoding/location-service/test/test_suggestions.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
5
2020-04-16T13:54:24.000Z
2020-07-06T13:42:10.000Z
geocoding/location-service/test/test_suggestions.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
487
2020-04-16T00:56:09.000Z
2020-07-27T09:09:29.000Z
geocoding/location-service/test/test_suggestions.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
null
null
null
import unittest from src.app import main class SuggestionsTest(unittest.TestCase): def setUp(self): main.app.config['TESTING'] = True self.client = main.app.test_client() self.lyon = { 'administrativeAreaLevel1': 'Rhône', 'country': 'FR', 'geometry': { ...
33.1
94
0.609265
93e598aa733988051f7f9c4c29a2b22e6a403ac6
70,577
py
Python
sample_mods/bfb/bfb_abs_cons4.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
sample_mods/bfb/bfb_abs_cons4.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
sample_mods/bfb/bfb_abs_cons4.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
from __future__ import division from pyomo.core.base import Constraint, sqrt, exp, Expression from nmpc_mhe.aux.cpoinsc import collptsgen from nmpc_mhe.aux.lagrange_f import lgr, lgry, lgrdot, lgrydot """ Version Note that the reformulation kind of works, i.e. dvar for vg. Stopped development on this one """ __aut...
34.062259
279
0.473639
93e5da0263a0692deefca03e00dcf0d14f46d805
2,598
py
Python
tests/filters/test_filters_filters.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
tests/filters/test_filters_filters.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
tests/filters/test_filters_filters.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import atom3d.datasets as da import atom3d.filters.filters as filters dataset = da.load_dataset('tests/test_data/lmdb', 'lmdb') standard_amino_acids = ['THR', 'TYR', 'ARG', 'GLN', 'ILE', 'GLY', 'ALA', 'LYS', 'ASN', 'LEU', 'GLU',...
37.652174
99
0.601232