hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b7b4bd12d12da5aaa7958a660877dcc1ccadd5d8
5,149
py
Python
setuptools/glob.py
c-jo/setuptools
dfc820fddf157842b3e19a77b78c6f046ba0929a
[ "MIT" ]
null
null
null
setuptools/glob.py
c-jo/setuptools
dfc820fddf157842b3e19a77b78c6f046ba0929a
[ "MIT" ]
null
null
null
setuptools/glob.py
c-jo/setuptools
dfc820fddf157842b3e19a77b78c6f046ba0929a
[ "MIT" ]
null
null
null
""" Filename globbing utility. Mostly a copy of `glob` from Python 3.5. Changes include: * `yield from` and PEP3102 `*` removed. * Hidden files are not ignored. """ import os import re import fnmatch __all__ = ["glob", "iglob", "escape"] def glob(pathname, recursive=False): """Return a list of paths matching...
29.255682
78
0.633521
a254edbc00c7f99d3514b064268a65d150fe8600
1,081
py
Python
src/cobra_component_models/io/components_model.py
opencobra/cobra-component-models
bfffb2baf9b0d99abe4af5dcbd36595c39de1f7e
[ "Apache-2.0" ]
3
2020-06-28T16:38:42.000Z
2021-04-06T14:57:30.000Z
src/cobra_component_models/io/components_model.py
opencobra/cobra-component-models
bfffb2baf9b0d99abe4af5dcbd36595c39de1f7e
[ "Apache-2.0" ]
null
null
null
src/cobra_component_models/io/components_model.py
opencobra/cobra-component-models
bfffb2baf9b0d99abe4af5dcbd36595c39de1f7e
[ "Apache-2.0" ]
1
2020-10-26T15:07:37.000Z
2020-10-26T15:07:37.000Z
# Copyright (c) 2019, 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 in...
32.757576
74
0.755782
ed21c27a6f6538cc63aa9f4cc63a1e8272cca09c
1,063
py
Python
guacamol_baselines/frag_gt/frag_gt/tests/src/test_gene_type_utils.py
GT4SD/guacamol_baselines
1dbaa68b8972778a13a8372befeff9df207654a9
[ "MIT" ]
null
null
null
guacamol_baselines/frag_gt/frag_gt/tests/src/test_gene_type_utils.py
GT4SD/guacamol_baselines
1dbaa68b8972778a13a8372befeff9df207654a9
[ "MIT" ]
1
2022-03-09T10:56:36.000Z
2022-03-09T11:52:09.000Z
guacamol_baselines/frag_gt/frag_gt/tests/src/test_gene_type_utils.py
GT4SD/guacamol_baselines
1dbaa68b8972778a13a8372befeff9df207654a9
[ "MIT" ]
null
null
null
from .src.gene_type_utils import get_species, get_gene_type, get_haplotype_from_gene_frag from rdkit import Chem def test_get_species(): # Given # parent: "CCCC(=O)NNC(=O)Nc1ccccc1" mol_frags = [Chem.MolFromSmiles(x) for x in ["[1*]C(=O)NNC(=O)CCC", "[5*]N[5*]", "[16*]c1ccccc1"]] # When species =...
25.926829
102
0.64064
bb4fc4dd8f05aedefbe8c4dfe5a31c08c04c44e5
614
py
Python
travelling/migrations/0040_auto_20190224_1043.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
travelling/migrations/0040_auto_20190224_1043.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
travelling/migrations/0040_auto_20190224_1043.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-24 09:43 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('travelling', '0039_auto_2...
26.695652
145
0.675896
3f96093ff16432fd07cf0667ceda1b89662aa1e4
2,707
py
Python
django101/django101/settings.py
Nikolay1982Nikolaev/python-web-2020-09
1f3fa8f7188c0a63647e4224a82d04f3f97cd455
[ "MIT" ]
null
null
null
django101/django101/settings.py
Nikolay1982Nikolaev/python-web-2020-09
1f3fa8f7188c0a63647e4224a82d04f3f97cd455
[ "MIT" ]
null
null
null
django101/django101/settings.py
Nikolay1982Nikolaev/python-web-2020-09
1f3fa8f7188c0a63647e4224a82d04f3f97cd455
[ "MIT" ]
null
null
null
from os.path import join from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'yiamnr83kv$okon9j)d58t)(wr&_hb4f(yr#reec4$ae6s_t62' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib....
26.028846
92
0.652752
33c400fb8f3e19d04dce9e332374f59d2b64ae3d
48,745
py
Python
rllib/policy/policy.py
bveeramani/ray
ac620aeec0c0f68c92328ace0b2a5835f5b14b26
[ "Apache-2.0" ]
1
2019-06-19T02:23:43.000Z
2019-06-19T02:23:43.000Z
rllib/policy/policy.py
XinYao1994/ray
65d863d3495165fd0dbed32d51946a9b8ca48a5b
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
rllib/policy/policy.py
bveeramani/ray
ac620aeec0c0f68c92328ace0b2a5835f5b14b26
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod from collections import namedtuple import gym from gym.spaces import Box import logging import numpy as np import platform import tree # pip install dm_tree from typing import ( Any, Callable, Dict, List, Optional, Tuple, Type, TYPE_CHECKING, ...
40.756689
88
0.606093
674ef35978cc47ca5bee4b38edb5e55ae0cb16d8
4,339
py
Python
scripts/studies/dmsp_saps.py
gregstarr/ttools
fc8dcbf094370e9885311126724697830167d931
[ "MIT" ]
null
null
null
scripts/studies/dmsp_saps.py
gregstarr/ttools
fc8dcbf094370e9885311126724697830167d931
[ "MIT" ]
null
null
null
scripts/studies/dmsp_saps.py
gregstarr/ttools
fc8dcbf094370e9885311126724697830167d931
[ "MIT" ]
null
null
null
""" Create trough dataset: 0: No trough 1: Non-SAPS trough 2: SAPS trough 3: unknown trough Create plots: (low, medium, high Kp) x (SAPS, no SAPS) """ import numpy as np import matplotlib.pyplot as plt import apexpy from scipy.stats import binned_statistic_dd import bottleneck as bn import pandas ...
45.673684
160
0.649458
d8e573a730a186fb16fb2c139a0bcee1a5875564
4,590
py
Python
django/core/serializers/__init__.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
1
2015-11-08T11:42:08.000Z
2015-11-08T11:42:08.000Z
django/core/serializers/__init__.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
null
null
null
django/core/serializers/__init__.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
null
null
null
""" Interfaces for serializing Django objects. Usage:: from django.core import serializers json = serializers.serialize("json", some_queryset) objects = list(serializers.deserialize("json", json)) To add your own serializers, use the SERIALIZATION_MODULES setting:: SERIALIZATION_MODULES = { ...
30.6
92
0.70719
dc0662f74ce5a84d59aa94333ee14d56a592cda2
5,350
py
Python
youtube_dl/extractor/foxnews.py
imnx/youtube-dl_rg3-src
e7bfe83e3a000b3cb37bf39a0ab5aaf9e08fc858
[ "Unlicense" ]
24
2017-03-17T10:27:12.000Z
2022-02-16T05:55:50.000Z
youtube_dl/extractor/foxnews.py
imnx/youtube-dl_rg3-src
e7bfe83e3a000b3cb37bf39a0ab5aaf9e08fc858
[ "Unlicense" ]
8
2017-12-05T23:45:54.000Z
2022-02-09T23:28:51.000Z
youtube_dl/extractor/foxnews.py
imnx/youtube-dl_rg3-src
e7bfe83e3a000b3cb37bf39a0ab5aaf9e08fc858
[ "Unlicense" ]
6
2017-09-09T12:22:53.000Z
2019-12-17T07:54:18.000Z
from __future__ import unicode_literals import re from .amp import AMPIE from .common import InfoExtractor class FoxNewsIE(AMPIE): IE_NAME = 'foxnews' IE_DESC = 'Fox News and Fox Business Video' _VALID_URL = r'https?://(?P<host>video\.(?:insider\.)?fox(?:news|business)\.com)/v/(?:video-embed\.html\?vide...
37.943262
347
0.556636
7ff436e9722ba5b763c66650c007cfb09dd7872c
1,602
py
Python
example/chunked_dataset_anomaly_pandas.py
baasman/qualipy
e246a44ea3a5dcc92291983c52a89189338f808f
[ "Apache-2.0" ]
1
2019-07-15T15:16:44.000Z
2019-07-15T15:16:44.000Z
example/chunked_dataset_anomaly_pandas.py
baasman/qualipy
e246a44ea3a5dcc92291983c52a89189338f808f
[ "Apache-2.0" ]
null
null
null
example/chunked_dataset_anomaly_pandas.py
baasman/qualipy
e246a44ea3a5dcc92291983c52a89189338f808f
[ "Apache-2.0" ]
null
null
null
import subprocess from qualipy.backends.pandas_backend.pandas_types import FloatType, ObjectType import qualipy as qpy def qualipy_pipeline(configuration_directory="~/stocks"): # generate config, can also be done through "qualipy generate-config" qpy.generate_config(configuration_directory) # load data...
32.693878
86
0.729713
e664f9a9401ee73255f4d40d1d0ec691788c9bf8
6,795
py
Python
testing/MLDB-1452-like-operator.py
kstepanmpmg/mldb
f78791cd34d01796705c0f173a14359ec1b2e021
[ "Apache-2.0" ]
665
2015-12-09T17:00:14.000Z
2022-03-25T07:46:46.000Z
testing/MLDB-1452-like-operator.py
tomzhang/mldb
a09cf2d9ca454d1966b9e49ae69f2fe6bf571494
[ "Apache-2.0" ]
797
2015-12-09T19:48:19.000Z
2022-03-07T02:19:47.000Z
testing/MLDB-1452-like-operator.py
matebestek/mldb
f78791cd34d01796705c0f173a14359ec1b2e021
[ "Apache-2.0" ]
103
2015-12-25T04:39:29.000Z
2022-02-03T02:55:22.000Z
# # MLDB-1452-like-operator # 2016-03-16 # This file is part of MLDB. Copyright 2016 mldb.ai inc. All rights reserved. # from mldb import mldb, MldbUnitTest, ResponseException class LikeTest(MldbUnitTest): # noqa def test_like_select(self): ds = mldb.create_dataset({ "id": "sample", "type": "sparse.mut...
28.55042
89
0.462104
efb3748dd0eec238a2b396727c4539713c305b33
858
py
Python
0105. Construct Binary Tree from Preorder and Inorder Traversal/solution.py
furutuki/LeetCodeSolution
db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53
[ "MIT" ]
null
null
null
0105. Construct Binary Tree from Preorder and Inorder Traversal/solution.py
furutuki/LeetCodeSolution
db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53
[ "MIT" ]
null
null
null
0105. Construct Binary Tree from Preorder and Inorder Traversal/solution.py
furutuki/LeetCodeSolution
db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # from typing import List # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def solve(self, preorder: List[int], inorder: List[int]) -> TreeNode: if not preorder: r...
30.642857
92
0.613054
44ab0f8d2e2b33700b12fb64b397633347e08da5
639
py
Python
frappe/patches/v5_0/v4_to_v5.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
2
2021-08-28T06:08:17.000Z
2021-09-06T10:41:43.000Z
frappe/patches/v5_0/v4_to_v5.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
11
2018-04-01T18:36:05.000Z
2018-10-04T07:56:07.000Z
frappe/patches/v5_0/v4_to_v5.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
3
2018-01-16T17:59:55.000Z
2019-09-24T16:02:10.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe def execute(): changed = ( ("desk", ("feed", "event", "todo", "note")), ("custom", ("custom_field", "custom_script", "customize_form", "customize_form_fiel...
33.631579
87
0.685446
72648a654a736405280212963187a0d5619de344
2,012
py
Python
tests/fixtures.py
pedrooa/pydash
1b4b425cecca275b8ba4c0584b40f9adae1cc097
[ "MIT" ]
null
null
null
tests/fixtures.py
pedrooa/pydash
1b4b425cecca275b8ba4c0584b40f9adae1cc097
[ "MIT" ]
null
null
null
tests/fixtures.py
pedrooa/pydash
1b4b425cecca275b8ba4c0584b40f9adae1cc097
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import mock from pydash._compat import iteritems # pytest.mark is a generator so create alias for convenience parametrize = pytest.mark.parametrize class Object(object): def __init__(self, **attrs): for key, value in iteritems(attrs): setattr(self, key,...
20.530612
70
0.620775
5f0c57efef3c1a0b0248e40138fe1b1f8fd62a81
6,139
py
Python
kartothek/core/factory.py
ilia-zaitcev-by/kartothek
c7c0008014b23116825f2f7a03389cc7774ab0ad
[ "MIT" ]
171
2019-05-02T15:47:20.000Z
2022-02-17T15:12:15.000Z
kartothek/core/factory.py
ilia-zaitcev-by/kartothek
c7c0008014b23116825f2f7a03389cc7774ab0ad
[ "MIT" ]
414
2019-05-03T09:24:26.000Z
2022-03-30T21:02:40.000Z
kartothek/core/factory.py
mlondschien/kartothek
94f560ee3e7e9415780a63f57972316b722479b5
[ "MIT" ]
57
2019-05-03T08:00:18.000Z
2022-02-16T18:38:22.000Z
# -*- coding: utf-8 -*- import copy from typing import TYPE_CHECKING, Any, Optional, TypeVar, cast from kartothek.core.dataset import DatasetMetadata, DatasetMetadataBase from kartothek.core.typing import StoreInput from kartothek.core.utils import lazy_store if TYPE_CHECKING: from simplekv import KeyValueStore ...
33.005376
139
0.640495
fcccf87298cb6715fcd0b6c03ce7d3e92a68de75
6,069
py
Python
python/main.py
lduf/nas-netwk-gen
d0e0990d90165a49a79fb09d383e634211368f38
[ "MIT" ]
null
null
null
python/main.py
lduf/nas-netwk-gen
d0e0990d90165a49a79fb09d383e634211368f38
[ "MIT" ]
1
2022-01-26T11:57:45.000Z
2022-01-26T11:57:45.000Z
python/main.py
lduf/nas-netwk-gen
d0e0990d90165a49a79fb09d383e634211368f38
[ "MIT" ]
null
null
null
import ip_generator import config import json import re import socket import sys import time import os import argparse #TODO : gns3fy pour start le projet au début de l'éxec #TODO : lance aussi topo, ip gen puis cli et une fois save on exec main (on tout gérer dans le menu cli) #TODO : parser = argparse.ArgumentPars...
43.042553
153
0.6754
4af089f274e25e14fe0d05d00650b408d9d4f01b
4,123
py
Python
reagan/gcp.py
schustda1/reagan
204e13b4690d829135b6472520d5c6d2e44c5548
[ "MIT" ]
null
null
null
reagan/gcp.py
schustda1/reagan
204e13b4690d829135b6472520d5c6d2e44c5548
[ "MIT" ]
null
null
null
reagan/gcp.py
schustda1/reagan
204e13b4690d829135b6472520d5c6d2e44c5548
[ "MIT" ]
null
null
null
from reagan.subclass import Subclass from googleapiclient import discovery from google.oauth2 import service_account class GCP(Subclass): def __init__(self, verbose=0): super().__init__(verbose=verbose) self.service_account_filepath = self.get_parameter("gcp").get_parameter('service_account_path')...
38.53271
141
0.541111
43b562d421244a3f4ef14939b150cf4c2a701f6e
118,722
py
Python
cogs/factoids_execution.py
asher-the-thrasher/command-bot
2d1bdf3c17de9e42d59a8c1778107f14741b9685
[ "Intel" ]
null
null
null
cogs/factoids_execution.py
asher-the-thrasher/command-bot
2d1bdf3c17de9e42d59a8c1778107f14741b9685
[ "Intel" ]
null
null
null
cogs/factoids_execution.py
asher-the-thrasher/command-bot
2d1bdf3c17de9e42d59a8c1778107f14741b9685
[ "Intel" ]
2
2021-06-26T17:29:10.000Z
2022-01-20T14:33:50.000Z
import discord from discord.ext import commands from discord_slash.utils.manage_components import create_button, create_actionrow from discord_slash.model import ButtonStyle class factoids_execution(commands.Cog): @commands.command(hidden=True) async def remote(self,message,*,extra_text=""): factoid...
82.445833
1,051
0.745186
d7c242a69cb8afcc6d7fb499ffb6f453280a68ed
5,919
py
Python
bin/fapswitchd.py
tdaff/fapswitch
af04e1e969e768dad9541cd6e15abf6868f3cbbe
[ "BSD-3-Clause" ]
null
null
null
bin/fapswitchd.py
tdaff/fapswitch
af04e1e969e768dad9541cd6e15abf6868f3cbbe
[ "BSD-3-Clause" ]
null
null
null
bin/fapswitchd.py
tdaff/fapswitch
af04e1e969e768dad9541cd6e15abf6868f3cbbe
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ fapswitchd.py A socket server for functionalisation of MOF structures. Will start up a server that accepts incoming socket connections and responds to """ import re import socket import sys from os.path import dirname, realpath sys.path.insert(1, dirname(dirname(realpath(__file__)))) imp...
34.017241
81
0.63727
c16126fe92c1d9ba1ba349b0d796090b7fe8b944
598
py
Python
api/migrations/0040_auto_20190427_2028.py
pythonkr/pyconkr-api
077e122a0af37122c5b424870cf91b8fca91a9f5
[ "Apache-2.0" ]
25
2018-12-09T07:56:16.000Z
2020-12-24T08:20:41.000Z
api/migrations/0040_auto_20190427_2028.py
mingrammer/pyconkr-api
3c9fc70ed26008a50d3b4c296a4da84a8f93babb
[ "Apache-2.0" ]
100
2018-12-13T02:01:42.000Z
2022-03-11T23:40:25.000Z
api/migrations/0040_auto_20190427_2028.py
mingrammer/pyconkr-api
3c9fc70ed26008a50d3b4c296a4da84a8f93babb
[ "Apache-2.0" ]
8
2019-01-05T05:02:27.000Z
2019-08-09T08:14:49.000Z
# Generated by Django 2.2 on 2019-04-27 11:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0039_remove_program_price'), ] operations = [ migrations.RemoveField( model_name='presentationproposal', name='coc_agre...
23
46
0.590301
fe214931ac472dd6da92605b08c4b1f44bcf029c
833
py
Python
mjutt/urls.py
kangsanChang/mjutt
e8c668d1fc23e1932d6c88d01f4263aac85c7fcb
[ "Apache-2.0" ]
null
null
null
mjutt/urls.py
kangsanChang/mjutt
e8c668d1fc23e1932d6c88d01f4263aac85c7fcb
[ "Apache-2.0" ]
null
null
null
mjutt/urls.py
kangsanChang/mjutt
e8c668d1fc23e1932d6c88d01f4263aac85c7fcb
[ "Apache-2.0" ]
null
null
null
"""mjutt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/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-base...
34.708333
79
0.69988
998744046d6f9e3bcfe719bb54203fccd6223a86
645
py
Python
ftp.py
PatrickG123/Bruteforce-Password-Craker
2bba9aaf183bcc20bebf1d707f8346f876cfb973
[ "Apache-2.0" ]
1
2019-11-24T15:08:15.000Z
2019-11-24T15:08:15.000Z
ftp.py
PatrickG123/Bruteforce-Password-Craker
2bba9aaf183bcc20bebf1d707f8346f876cfb973
[ "Apache-2.0" ]
null
null
null
ftp.py
PatrickG123/Bruteforce-Password-Craker
2bba9aaf183bcc20bebf1d707f8346f876cfb973
[ "Apache-2.0" ]
null
null
null
import socket import re import sys def connection(ip,user,passw): sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) print('Trying'+ ip+ ':' + user + ":" +passw) sock.connect(('192.168.1.25',111)) data = sock.recv(1024) sock.send('User' + user * '\r\n') data = sock.recv(1024) so...
19.545455
88
0.615504
5fdf3b6a8773f44bbbb8e46daf43a70bce47f1d2
2,639
py
Python
mezzanine/accounts/admin.py
arundalal/mezzanine-blog
116f3c2595098a83757f1c6b00ceb7f65ef30d51
[ "BSD-2-Clause" ]
3
2019-05-14T13:43:26.000Z
2021-11-09T11:27:16.000Z
mezzanine/accounts/admin.py
arundalal/mezzanine-blog
116f3c2595098a83757f1c6b00ceb7f65ef30d51
[ "BSD-2-Clause" ]
9
2020-03-24T16:20:31.000Z
2022-03-11T23:32:38.000Z
mezzanine/accounts/admin.py
arundalal/mezzanine-blog
116f3c2595098a83757f1c6b00ceb7f65ef30d51
[ "BSD-2-Clause" ]
19
2017-01-12T09:20:03.000Z
2019-06-18T14:53:32.000Z
from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth import get_user_model from mezzanine.accounts import get_profile_model, ProfileNotConfigured from mezzanine.core.admin import SitePermissionUserAdmin from mezzanine.conf import settings from mezzanine.utils.email import ...
38.246377
77
0.687003
c6e710d18f51eb7366da7b67cc31f4d716811402
15,119
py
Python
respx/router.py
flaeppe/respx
c76f632690cdfb2c878fe8fea999df0a26083eb3
[ "BSD-3-Clause" ]
null
null
null
respx/router.py
flaeppe/respx
c76f632690cdfb2c878fe8fea999df0a26083eb3
[ "BSD-3-Clause" ]
null
null
null
respx/router.py
flaeppe/respx
c76f632690cdfb2c878fe8fea999df0a26083eb3
[ "BSD-3-Clause" ]
null
null
null
import inspect from contextlib import contextmanager from functools import update_wrapper from types import TracebackType from typing import ( Any, Callable, Dict, Generator, List, NewType, Optional, Tuple, Type, Union, cast, overload, ) import httpx from .mocks import ...
31.109053
88
0.575038
0457e120ccaab4b2071e14b30b3fa809695c2f37
14,056
py
Python
numpy/lib/scimath.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
numpy/lib/scimath.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
numpy/lib/scimath.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
""" Wrapper functions to more user-friendly calling of certain math functions whose output data-type is different than the input data-type in certain domains of the input. For example, for functions like `log` with branch cuts, the versions in this module provide the mathematically valid answers in the complex plane::...
25.055258
79
0.568441
5f80eecb056c1560df17419d20f2142cba055512
15,557
py
Python
rasa/core/featurizers/tracker_featurizers.py
joeriess/rasa
c1bdfd0934578f515a8bf3ab708c294b809300f8
[ "Apache-2.0" ]
null
null
null
rasa/core/featurizers/tracker_featurizers.py
joeriess/rasa
c1bdfd0934578f515a8bf3ab708c294b809300f8
[ "Apache-2.0" ]
null
null
null
rasa/core/featurizers/tracker_featurizers.py
joeriess/rasa
c1bdfd0934578f515a8bf3ab708c294b809300f8
[ "Apache-2.0" ]
null
null
null
import jsonpickle import logging import os from rasa.shared.nlu.constants import TEXT from tqdm import tqdm from typing import Tuple, List, Optional, Dict, Text import numpy as np import rasa.utils.io as io_utils from rasa.core.featurizers.single_state_featurizer import SingleStateFeaturizer from rasa.shared.core.dom...
34.116228
92
0.609693
0a92b2633062b2a7e330a9da53286f4820a32959
4,384
py
Python
pyasn1/codec/cer/decoder.py
therve/pyasn1
1de0d168bc3a5d7ddf39002d7433743490aed047
[ "BSD-2-Clause" ]
null
null
null
pyasn1/codec/cer/decoder.py
therve/pyasn1
1de0d168bc3a5d7ddf39002d7433743490aed047
[ "BSD-2-Clause" ]
null
null
null
pyasn1/codec/cer/decoder.py
therve/pyasn1
1de0d168bc3a5d7ddf39002d7433743490aed047
[ "BSD-2-Clause" ]
null
null
null
# # This file is part of pyasn1 software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # from pyasn1 import error from pyasn1.codec.streaming import readFromStream from pyasn1.codec.ber import decoder from pyasn1.compat.octets import oct2int from pyasn...
30.657343
114
0.682938
e37984a839aa4ee46f5aafccd93bf85d374298b6
2,209
py
Python
willie/modules/ipython.py
kmaglione/cfc
aee12bc7165a3bb3d061d729b3984a54b4ff9d74
[ "EFL-2.0" ]
null
null
null
willie/modules/ipython.py
kmaglione/cfc
aee12bc7165a3bb3d061d729b3984a54b4ff9d74
[ "EFL-2.0" ]
null
null
null
willie/modules/ipython.py
kmaglione/cfc
aee12bc7165a3bb3d061d729b3984a54b4ff9d74
[ "EFL-2.0" ]
null
null
null
# coding=utf8 """ ipython.py - willie ipython console! Copyright © 2014, Elad Alfassa <elad@fedoraproject.org> Licensed under the Eiffel Forum License 2. Willie: http://willie.dftba.net/ """ from __future__ import unicode_literals import willie import sys if sys.version_info.major >= 3: # Backup stderr/stdout wrap...
29.453333
79
0.684473
8a5b1159079cb8060ce81e25a543bf52628e3711
2,958
py
Python
finitewave/cpuwave3D/tracker/period_3d_tracker.py
TiNezlobinsky/Finitewave
b29621f56cada26256be120b2fbbe84970758683
[ "MIT" ]
null
null
null
finitewave/cpuwave3D/tracker/period_3d_tracker.py
TiNezlobinsky/Finitewave
b29621f56cada26256be120b2fbbe84970758683
[ "MIT" ]
null
null
null
finitewave/cpuwave3D/tracker/period_3d_tracker.py
TiNezlobinsky/Finitewave
b29621f56cada26256be120b2fbbe84970758683
[ "MIT" ]
2
2021-10-05T13:38:56.000Z
2022-03-05T15:58:08.000Z
import numpy as np from numba import njit import json from finitewave.core.tracker.tracker import Tracker @njit def _track_detectors_period(periods, detectors, detectors_state, u, t, threshold, step): n_i, n_j, n_k = u.shape for i in range(n_i): for j in range(n_j): for k in range(n_k): ...
33.613636
101
0.555105
8a37644a7ee74d2bc316fe1f528f302d02bc9d48
3,388
py
Python
examples/dbn_example.py
xgenpanda/keras_extension
99384d96025d9ef29bb6a757fbeda942a3610a11
[ "MIT" ]
225
2015-08-05T21:37:11.000Z
2021-09-12T11:12:38.000Z
examples/dbn_example.py
xgenpanda/keras_extension
99384d96025d9ef29bb6a757fbeda942a3610a11
[ "MIT" ]
16
2015-12-07T04:08:46.000Z
2019-05-04T20:49:23.000Z
examples/dbn_example.py
xgenpanda/keras_extension
99384d96025d9ef29bb6a757fbeda942a3610a11
[ "MIT" ]
113
2015-11-30T08:29:09.000Z
2021-04-21T18:18:15.000Z
from __future__ import division import time import numpy as np np.random.seed(1234) # seed random number generator srng_seed = np.random.randint(2**30) from keras.models import Sequential from keras.optimizers import SGD from keras_extensions.logging import log_to_file from keras_extensions.rbm import GBRBM, RBM fr...
32.266667
108
0.698642
c004be267e39b4375a3c3ea8c41d8b38b24868d4
7,127
py
Python
Dragon/python/dragon/core/gradient_maker.py
neopenx/Dragon
0e639a7319035ddc81918bd3df059230436ee0a1
[ "BSD-2-Clause" ]
212
2015-07-05T07:57:17.000Z
2022-02-27T01:55:35.000Z
Dragon/python/dragon/core/gradient_maker.py
neopenx/Dragon
0e639a7319035ddc81918bd3df059230436ee0a1
[ "BSD-2-Clause" ]
6
2016-07-07T14:31:56.000Z
2017-12-12T02:21:15.000Z
Dragon/python/dragon/core/gradient_maker.py
neopenx/Dragon
0e639a7319035ddc81918bd3df059230436ee0a1
[ "BSD-2-Clause" ]
71
2016-03-24T09:02:41.000Z
2021-06-03T01:52:41.000Z
# -------------------------------------------------------------------------------------------------- # Dragon # Copyright(c) 2017 SeetaTech # Written by Ting Pan # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import prin...
37.909574
102
0.548478
802ee9452ce29f41eec00f10cbf52e74f46b75f6
779
py
Python
ControlUpdater.py
BatyaGG/BCI-controlled-UR-manipulator
e19d79b29ea63977bf780de5597537654ab40717
[ "MIT" ]
10
2018-06-23T12:18:34.000Z
2021-03-11T07:04:21.000Z
ControlUpdater.py
BatyaGG/BCI-controlled-UR-manipulator
e19d79b29ea63977bf780de5597537654ab40717
[ "MIT" ]
null
null
null
ControlUpdater.py
BatyaGG/BCI-controlled-UR-manipulator
e19d79b29ea63977bf780de5597537654ab40717
[ "MIT" ]
4
2018-08-13T07:43:00.000Z
2020-12-24T01:30:21.000Z
import time class ControlUpdater: def __init__(self, variants, delay=3): self.variants = variants self.length = len(variants) self.index = -1 self.asc = True self.delay = delay self.last_access = time.time() - delay def get_next(self): if time.time() - ...
28.851852
88
0.585366
5b389c70723f1bdf720597a44d6cbc4865b4655a
2,792
py
Python
tools/executor_test.py
akraino-edge-stack/ta-build-tools
3cd5d26766d410f7d8775a54ea673ae8b3668e20
[ "Apache-2.0" ]
null
null
null
tools/executor_test.py
akraino-edge-stack/ta-build-tools
3cd5d26766d410f7d8775a54ea673ae8b3668e20
[ "Apache-2.0" ]
null
null
null
tools/executor_test.py
akraino-edge-stack/ta-build-tools
3cd5d26766d410f7d8775a54ea673ae8b3668e20
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Nokia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
34.04878
75
0.700573
84c2a601e720deefe01be71574b3d561d942877f
6,150
py
Python
InternalPythonModules/android/browserlocation.py
bk1411389/autopsy
f95fe55484a53061885c6743a5891f75b5d54d9d
[ "Apache-2.0" ]
1
2019-11-20T02:32:05.000Z
2019-11-20T02:32:05.000Z
InternalPythonModules/android/browserlocation.py
dkarpo/autopsy
4b9e444d77692c15cc3a1830872144eeb6d961d0
[ "Apache-2.0" ]
95
2019-11-20T02:27:26.000Z
2019-12-07T23:42:40.000Z
InternalPythonModules/android/browserlocation.py
dkarpo/autopsy
4b9e444d77692c15cc3a1830872144eeb6d961d0
[ "Apache-2.0" ]
11
2019-11-06T04:37:45.000Z
2019-12-01T06:37:48.000Z
""" Autopsy Forensic Browser Copyright 2016-2018 Basis Technology Corp. Contact: carrier <at> sleuthkit <dot> org 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...
46.946565
150
0.693496
760c161cf9aa34d12d168595ec00b3b94afb54bd
13,299
py
Python
onmt/translate/beam_search.py
QAQ-v/HeterGTransformer
8f29ffa86a40b09261092726b87608661139eec0
[ "MIT" ]
36
2020-05-04T13:53:30.000Z
2022-03-22T09:42:53.000Z
onmt/translate/beam_search.py
QAQ-v/HeterGTransformer
8f29ffa86a40b09261092726b87608661139eec0
[ "MIT" ]
3
2020-11-06T02:07:03.000Z
2022-03-11T21:35:57.000Z
onmt/translate/beam_search.py
QAQ-v/HeterGTransformer
8f29ffa86a40b09261092726b87608661139eec0
[ "MIT" ]
7
2020-07-29T06:06:07.000Z
2021-05-20T04:25:11.000Z
import torch from onmt.translate.decode_strategy import DecodeStrategy class BeamSearch(DecodeStrategy): """Generation beam search. Note that the attributes list is not exhaustive. Rather, it highlights tensors to document their shape. (Since the state variables' "batch" size decreases as ...
46.337979
80
0.584104
1f8d1d3105268c2958546e5f3aeeaefb6219e13f
5,540
py
Python
gdsfactory/routing/get_bundle_from_steps.py
gdsfactory/gdsfactory
ee761ae0b4429fbec7035bbea5d1e5206c66bea7
[ "MIT" ]
42
2020-05-25T09:33:45.000Z
2022-03-29T03:41:19.000Z
gdsfactory/routing/get_bundle_from_steps.py
gdsfactory/gdsfactory
e53b1f3415a81862d465e0443fc09fb35d14d1e0
[ "MIT" ]
133
2020-05-28T18:29:04.000Z
2022-03-31T22:21:42.000Z
gdsfactory/routing/get_bundle_from_steps.py
gdsfactory/gdsfactory
e53b1f3415a81862d465e0443fc09fb35d14d1e0
[ "MIT" ]
17
2020-06-30T07:07:50.000Z
2022-03-17T15:45:27.000Z
from typing import Dict, List, Optional import numpy as np import gdsfactory as gf from gdsfactory.components.bend_euler import bend_euler from gdsfactory.components.straight import straight as straight_function from gdsfactory.components.taper import taper as taper_function from gdsfactory.components.wire import wir...
27.7
88
0.620939
1334eb8dbf32b0c0b4eafe3f1f2aff0e1e855b0e
6,309
py
Python
lib/sqlalchemy/testing/suite/test_unicode_ddl.py
drecover/sqlalchemy
6206f0ff74e95c9339dc0f0e26caab55e9bcda45
[ "MIT" ]
1
2021-11-03T21:48:10.000Z
2021-11-03T21:48:10.000Z
lib/sqlalchemy/testing/suite/test_unicode_ddl.py
drecover/sqlalchemy
6206f0ff74e95c9339dc0f0e26caab55e9bcda45
[ "MIT" ]
1
2020-08-07T16:50:16.000Z
2020-08-07T16:50:16.000Z
lib/sqlalchemy/testing/suite/test_unicode_ddl.py
drecover/sqlalchemy
6206f0ff74e95c9339dc0f0e26caab55e9bcda45
[ "MIT" ]
null
null
null
# coding: utf-8 """verrrrry basic unicode column name testing""" from sqlalchemy import desc from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import testing from sqlalchemy.testing import eq_ from sqlalchemy.testing import fixtures from sqlalchemy.testing...
32.520619
79
0.469647
9cf8d3a898df19315a8ec75f9a1a7c95915c7f42
1,398
py
Python
life360.indigoPlugin/Contents/Server Plugin/geopy/util.py
ryanbuckner/life360-plugin
3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe
[ "MIT" ]
1
2021-09-25T15:43:00.000Z
2021-09-25T15:43:00.000Z
life360.indigoPlugin/Contents/Server Plugin/geopy/util.py
ryanbuckner/life360-plugin
3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe
[ "MIT" ]
null
null
null
life360.indigoPlugin/Contents/Server Plugin/geopy/util.py
ryanbuckner/life360-plugin
3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe
[ "MIT" ]
null
null
null
import logging from geopy.compat import py3k, text_type if not py3k: # pragma: no cover NUMBER_TYPES = (int, long, float) # noqa else: # pragma: no cover NUMBER_TYPES = (int, float) # long -> int in Py3k try: from decimal import Decimal NUMBER_TYPES = NUMBER_TYPES + (Decimal, ) except ImportError:...
24.526316
68
0.616595
1a843b8f18d647e03337dd435a1ec003acbd3f54
5,400
py
Python
services/offers_service.py
MorbidMiyako/RankingBot
c89d8814ef94ab8e024f9ec439287d72455b6913
[ "MIT" ]
null
null
null
services/offers_service.py
MorbidMiyako/RankingBot
c89d8814ef94ab8e024f9ec439287d72455b6913
[ "MIT" ]
null
null
null
services/offers_service.py
MorbidMiyako/RankingBot
c89d8814ef94ab8e024f9ec439287d72455b6913
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta from matplotlib import pyplot as plt, dates as mdates from matplotlib.ticker import MaxNLocator from helpers import programmes_helper filename = 'offers.png' class OffersService: def __init__(self, db_conn): self.db_conn = db_conn async def generate_gra...
41.221374
114
0.583889
174d8a0b10e5e8e301b0d8fdbc7daffd6df7af5a
2,144
py
Python
Contiki/GccApplication1/contiki/tools/stm32w/stm32w_flasher/py_files/file_utils.py
Mfrielink/Project-Domotica-PowerModule
e311e8f4a5c1e3ca4e2377c27c789ace4ee92710
[ "MIT" ]
9
2017-10-25T12:41:50.000Z
2020-09-01T19:54:15.000Z
Contiki/GccApplication1/contiki/tools/stm32w/stm32w_flasher/py_files/file_utils.py
Mfrielink/Project-Domotica-PowerModule
e311e8f4a5c1e3ca4e2377c27c789ace4ee92710
[ "MIT" ]
null
null
null
Contiki/GccApplication1/contiki/tools/stm32w/stm32w_flasher/py_files/file_utils.py
Mfrielink/Project-Domotica-PowerModule
e311e8f4a5c1e3ca4e2377c27c789ace4ee92710
[ "MIT" ]
6
2017-10-25T12:41:22.000Z
2019-06-18T12:18:35.000Z
# See comment in stm32w_flasher.py. # Extraction and little adaptation performed by E.Duble (CNRS, LIG). import struct class Error(Exception): """Base class for exceptions in this module.""" args = None message = None class FileFormatError(Error): """ Exception raised for errors in the file format Attrib...
25.52381
87
0.629664
54280120610a1741fb4b228207954868b4613c8e
16,684
py
Python
launcher/control.py
MoonShineVFX/launcher
2f728535774e7d53d094a1b1b4cc02bd094ad55f
[ "MIT" ]
3
2017-09-13T19:36:55.000Z
2017-09-13T20:22:31.000Z
launcher/control.py
MoonShineVFX/launcher
2f728535774e7d53d094a1b1b4cc02bd094ad55f
[ "MIT" ]
1
2020-03-02T11:22:37.000Z
2020-03-02T11:22:37.000Z
launcher/control.py
MoonShineVFX/launcher
2f728535774e7d53d094a1b1b4cc02bd094ad55f
[ "MIT" ]
null
null
null
import os import sys import copy import traceback import contextlib import getpass from PyQt5 import QtCore from avalon import api, io from avalon.vendor import six from . import lib, model, terminal from . import _SESSION_STEPS, _PLACEHOLDER PY2 = sys.version_info[0] == 2 @contextlib.contextmanager def stdout(): ...
29.634103
96
0.53824
f9accf0185672edab98da0816005b9615b99845e
1,147
py
Python
ElectronicCommerce/test_case/models/driver.py
Pactortester/JingDongTestProject
b30bb987db9357f0812be64170c31b10a4cceee0
[ "MIT" ]
null
null
null
ElectronicCommerce/test_case/models/driver.py
Pactortester/JingDongTestProject
b30bb987db9357f0812be64170c31b10a4cceee0
[ "MIT" ]
null
null
null
ElectronicCommerce/test_case/models/driver.py
Pactortester/JingDongTestProject
b30bb987db9357f0812be64170c31b10a4cceee0
[ "MIT" ]
1
2021-09-07T02:06:01.000Z
2021-09-07T02:06:01.000Z
from threading import Thread from selenium.webdriver import Remote from selenium import webdriver # start browser def browser(): # browser (chrome, firefox, ie ...) driver = webdriver.Chrome() # driver = webdriver.Ie() # driver = webdriver.Firefox() # dc = {'platform': 'ANY', 'browserName': 'chrom...
27.97561
97
0.62075
1b68a27e3586caf7198d2da043794c5f62fab6e6
3,191
py
Python
users/admin.py
gafderks/dbase
4089cf220740afd7fcc0ae68fcd6185829a60eae
[ "Apache-2.0" ]
null
null
null
users/admin.py
gafderks/dbase
4089cf220740afd7fcc0ae68fcd6185829a60eae
[ "Apache-2.0" ]
281
2020-04-03T15:22:46.000Z
2022-03-31T20:53:28.000Z
users/admin.py
gafderks/dbase
4089cf220740afd7fcc0ae68fcd6185829a60eae
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin from django.contrib.auth.admin import GroupAdmin as DjangoGroupAdmin from django.contrib.auth.models import Group as DjangoGroup, Permission from django.db.models import Count from django.utils.translation import gettext...
30.682692
79
0.592604
0e263ef1e6c50554a19cd44e6b34585eb71485c4
16,771
py
Python
MCMC/MCMC.py
ukurumba/MCMC
f234648578044ed880c3feecd6c0ce21e74ed585
[ "MIT" ]
null
null
null
MCMC/MCMC.py
ukurumba/MCMC
f234648578044ed880c3feecd6c0ce21e74ed585
[ "MIT" ]
null
null
null
MCMC/MCMC.py
ukurumba/MCMC
f234648578044ed880c3feecd6c0ce21e74ed585
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import networkx as nx def initialization(grid): """This function takes in the 2-D grid given as input and returns an initial graph. Example ------- grid = [(1,2),(3,4),(5,6)] initial_graph = initialization(grid) Parameters ---------- grid :...
29.578483
142
0.646831
a9265f60cbeb9305c33bc155d9529b82856056a7
714
py
Python
examples/02_packages/02_compas_fofin/compas_fofin/examples/compute_shell_equilibrium.py
compas-Workshops/WS_chalmers
5eeb14f2eed6780064c0b1c30f51f66068689e07
[ "MIT" ]
null
null
null
examples/02_packages/02_compas_fofin/compas_fofin/examples/compute_shell_equilibrium.py
compas-Workshops/WS_chalmers
5eeb14f2eed6780064c0b1c30f51f66068689e07
[ "MIT" ]
null
null
null
examples/02_packages/02_compas_fofin/compas_fofin/examples/compute_shell_equilibrium.py
compas-Workshops/WS_chalmers
5eeb14f2eed6780064c0b1c30f51f66068689e07
[ "MIT" ]
1
2019-05-14T12:05:33.000Z
2019-05-14T12:05:33.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from compas_fofin.datastructures import Shell from compas_fofin.fofin import shell_update_xyz_numpy from compas_plotters import MeshPlotter HERE = os.path.dirname(__file__) FILE = os.path.join(HER...
23.032258
102
0.79972
25d6bcec4eadfeb02f2320e960af64c4a5e23980
118
py
Python
python/testData/inspections/PyAbstractClassInspection/HiddenForAbstractSubclassWithABCSuperclass/a.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyAbstractClassInspection/HiddenForAbstractSubclassWithABCSuperclass/a.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyAbstractClassInspection/HiddenForAbstractSubclassWithABCSuperclass/a.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
import abc class A1(abc.ABC): @abc.abstractmethod def m1(self): pass class A2(A1, abc.ABC): pass
13.111111
23
0.601695
daf97099e398734e2bb9e18521c6effe2702a809
1,292
py
Python
migrations/versions/39c5679fd9e6_initial_migration.py
Samfan01/Blogs
a04648f71a5d0894609da300d3a71013b2828e0d
[ "MIT" ]
null
null
null
migrations/versions/39c5679fd9e6_initial_migration.py
Samfan01/Blogs
a04648f71a5d0894609da300d3a71013b2828e0d
[ "MIT" ]
null
null
null
migrations/versions/39c5679fd9e6_initial_migration.py
Samfan01/Blogs
a04648f71a5d0894609da300d3a71013b2828e0d
[ "MIT" ]
null
null
null
"""Initial Migration Revision ID: 39c5679fd9e6 Revises: 6ba71166af3e Create Date: 2021-03-11 14:17:03.600701 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '39c5679fd9e6' down_revision = '6ba71166af3e' branch_labels = None depends_on = None def upgrade(): ...
31.512195
83
0.686533
1f44a799ecc99606e1981dee2c54cbefd42e289e
38,974
py
Python
gerrit_util.py
iteksoft/depot_tools
b508ecd932fd2653b4d3e9bccd80b3b7ac98c36a
[ "BSD-3-Clause" ]
null
null
null
gerrit_util.py
iteksoft/depot_tools
b508ecd932fd2653b4d3e9bccd80b3b7ac98c36a
[ "BSD-3-Clause" ]
null
null
null
gerrit_util.py
iteksoft/depot_tools
b508ecd932fd2653b4d3e9bccd80b3b7ac98c36a
[ "BSD-3-Clause" ]
1
2021-06-29T00:41:44.000Z
2021-06-29T00:41:44.000Z
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Utilities for requesting information for a Gerrit server via HTTPS. https://gerrit-review.googlesource.com/Documentation/rest-api.html """ from ...
34.398941
95
0.6774
eba81b3a12e21a89de476c8698f7c1102bda51c2
1,132
py
Python
parlai/tasks/simplequestions/build.py
markr-fu-berlin/ParlAI
23f014c38ee502091fdd8623f5c8a6f2c3216e92
[ "BSD-3-Clause" ]
2
2020-03-22T10:18:09.000Z
2020-05-06T21:48:47.000Z
parlai/tasks/simplequestions/build.py
urvishdesai/dialogue-encoding-tasks-parlai
29743cc7b47c413c2181f68c0b7ef40a6f06a40f
[ "BSD-3-Clause" ]
1
2018-09-27T17:11:24.000Z
2018-09-27T17:11:24.000Z
parlai/tasks/simplequestions/build.py
urvishdesai/dialogue-encoding-tasks-parlai
29743cc7b47c413c2181f68c0b7ef40a6f06a40f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. # D...
34.30303
77
0.684629
697d0ae3cfe46625297239f888be7150d69d4ce3
49,298
py
Python
plugins/auto_filter.py
Judson-web/DonLee-Robot-V2
61012df1ad3e8afb628b8764f3e07abb20661852
[ "MIT" ]
null
null
null
plugins/auto_filter.py
Judson-web/DonLee-Robot-V2
61012df1ad3e8afb628b8764f3e07abb20661852
[ "MIT" ]
null
null
null
plugins/auto_filter.py
Judson-web/DonLee-Robot-V2
61012df1ad3e8afb628b8764f3e07abb20661852
[ "MIT" ]
null
null
null
import re, time, asyncio from pyrogram import Client, filters from pyrogram.errors import FloodWait, UserNotParticipant from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery, ReplyKeyboardMarkup from donlee_robot.donlee_robot import DonLee_Robot from donlee_robot.logger import VERIFY from...
31.723295
190
0.551118
b14a66a0813f85451b5967f285e2dd72661a0c91
101
py
Python
documentaries/apps.py
MrCrawdaddy/humans
785f7355d7d3a1de9d76d4715933b18fe12dc2c2
[ "MIT" ]
null
null
null
documentaries/apps.py
MrCrawdaddy/humans
785f7355d7d3a1de9d76d4715933b18fe12dc2c2
[ "MIT" ]
null
null
null
documentaries/apps.py
MrCrawdaddy/humans
785f7355d7d3a1de9d76d4715933b18fe12dc2c2
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DocumentariesConfig(AppConfig): name = 'documentaries'
16.833333
37
0.782178
9a143847f7c93c58af9cb2785bac106c058aaff4
9,522
py
Python
swagger_client/models/get_universe_graphics_graphic_id_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
swagger_client/models/get_universe_graphics_graphic_id_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
swagger_client/models/get_universe_graphics_graphic_id_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online # noqa: E501 OpenAPI spec version: 0.8.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GetUniverseGraphicsGraphicIdOk(object): """NOTE: This...
30.519231
188
0.627074
43562d4c4d2458a6847e6a886bba06edf9235aeb
2,605
py
Python
dateparser/data/date_translation_data/gv.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/gv.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/gv.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
info = { "name": "gv", "date_order": "YMD", "january": [ "j-guer", "jerrey-geuree" ], "february": [ "t-arree", "toshiaght-arree" ], "march": [ "mayrnt" ], "april": [ "averil", "avrril" ], "may": [ "boaldyn" ]...
15.598802
26
0.284069
3bfd8d3384295366a344a7508f18603c7f25039c
1,653
py
Python
scout/build/acmg.py
gmc-norr/scout
ea8eaaa079c63e4033af6216ec08da4a314f9b5c
[ "BSD-3-Clause" ]
111
2015-01-15T11:53:20.000Z
2022-03-26T19:55:24.000Z
scout/build/acmg.py
gmc-norr/scout
ea8eaaa079c63e4033af6216ec08da4a314f9b5c
[ "BSD-3-Clause" ]
2,995
2015-01-15T16:14:20.000Z
2022-03-31T13:36:32.000Z
scout/build/acmg.py
gmc-norr/scout
ea8eaaa079c63e4033af6216ec08da4a314f9b5c
[ "BSD-3-Clause" ]
55
2015-05-31T19:09:49.000Z
2021-11-01T10:50:31.000Z
import logging import datetime LOG = logging.getLogger(__name__) def build_evaluation( variant_specific, variant_id, user_id, user_name, institute_id, case_id, classification, criteria, ): """Build a evaluation object ready to be inserted to database Args: variant_spe...
27.55
86
0.647308
ff62fb29d02fe35af1cdc7309a1899775c1ece89
2,461
py
Python
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/batch_update_user_status_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/batch_update_user_status_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/batch_update_user_status_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class BatchUpdateUserStatusResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
28.616279
80
0.555872
1c9c8769637075428dfcc0c9f40ea0d70224c9db
303
py
Python
data/multilingual/Latn.MXV/Mono_16/pdf_to_json_test_Latn.MXV_Mono_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.MXV/Mono_16/pdf_to_json_test_Latn.MXV_Mono_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.MXV/Mono_16/pdf_to_json_test_Latn.MXV_Mono_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.MXV/Mono_16/udhr_Latn.MXV_Mono_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
b48eeb6fdad5ae824bd567569488142ee22de1e6
689
py
Python
tbx/services/migrations/0016_auto_20190207_1630.py
arush15june/wagtail-torchbox
c4d06e096c72bd8007975dc016133024f9d27fab
[ "MIT" ]
null
null
null
tbx/services/migrations/0016_auto_20190207_1630.py
arush15june/wagtail-torchbox
c4d06e096c72bd8007975dc016133024f9d27fab
[ "MIT" ]
null
null
null
tbx/services/migrations/0016_auto_20190207_1630.py
arush15june/wagtail-torchbox
c4d06e096c72bd8007975dc016133024f9d27fab
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-07 16:30 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('services', '0015_auto_20190207_1625'), ] operations = [ migrations.AlterField( model_name='serv...
27.56
127
0.63135
005298b5e77f2bcbae010a94156aefb1f659c551
2,895
py
Python
candlestick.py
zyairelai/bybit-longterm
3041d122007da8001e2d7b8a1e96796166f207d1
[ "Apache-2.0" ]
11
2021-06-12T08:54:06.000Z
2022-03-15T11:55:08.000Z
candlestick.py
zyairelai/bybit-longterm
3041d122007da8001e2d7b8a1e96796166f207d1
[ "Apache-2.0" ]
null
null
null
candlestick.py
zyairelai/bybit-longterm
3041d122007da8001e2d7b8a1e96796166f207d1
[ "Apache-2.0" ]
8
2021-09-12T20:57:10.000Z
2022-02-28T22:30:51.000Z
import ccxt import pandas query = 40 ccxt_client = ccxt.binance() tohlcv_colume = ['timestamp', 'open', 'high', 'low', 'close', 'volume'] def get_klines(pair, interval): return pandas.DataFrame(ccxt_client.fetch_ohlcv(pair, interval, limit=query), columns=tohlcv_colume) def candlestick(klines): # Create a ne...
46.693548
172
0.578584
db3b1648b571c7d54a5f952ff92bba47874b6fbb
625
py
Python
abcddb2vcard.py
relikd/abcddb2vcard
59f862d0e7688dd76b49e6e2ca6c84d6b0b12010
[ "MIT" ]
1
2021-11-07T21:27:59.000Z
2021-11-07T21:27:59.000Z
abcddb2vcard.py
relikd/abcddb2vcard
59f862d0e7688dd76b49e6e2ca6c84d6b0b12010
[ "MIT" ]
null
null
null
abcddb2vcard.py
relikd/abcddb2vcard
59f862d0e7688dd76b49e6e2ca6c84d6b0b12010
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from ABCDDB import ABCDDB from pathlib import Path if len(sys.argv) != 2: print(' Usage:', Path(__file__).name, 'outfile.vcf') exit(0) outfile = Path(sys.argv[1]) if not outfile.parent.exists(): print('Output directory does not exist.', file=sys.stderr) exit(1) cont...
28.409091
70
0.6848
e44af6421e8e85b9c93d62addd63d9f0f46b9375
686
py
Python
13/first.py
cam-coding/AdventOfCode2020
47eb52242edb674365a7a53c4c2f0239e4166159
[ "MIT" ]
1
2020-12-02T03:35:30.000Z
2020-12-02T03:35:30.000Z
13/first.py
cam-coding/AdventOfCode2020
47eb52242edb674365a7a53c4c2f0239e4166159
[ "MIT" ]
null
null
null
13/first.py
cam-coding/AdventOfCode2020
47eb52242edb674365a7a53c4c2f0239e4166159
[ "MIT" ]
null
null
null
from collections import deque import math def get_lines(): with open("input.txt") as f: return [line.strip() for line in f.readlines() if line.strip()] LINES = get_lines() Leaving = int(LINES[0]) WIDTH = len(LINES[0]) Height = len(LINES) def logic(): times = [] things = LINES[1].split(",") fo...
22.129032
71
0.555394
69153a321c9d7e3d2582a93c646058276a9f8051
18,620
py
Python
saleor/core/utils/random_data.py
tanjibpa/alrawaa
c28fbe7becd43b9de1575346fe8c29cee5f36de1
[ "BSD-3-Clause" ]
null
null
null
saleor/core/utils/random_data.py
tanjibpa/alrawaa
c28fbe7becd43b9de1575346fe8c29cee5f36de1
[ "BSD-3-Clause" ]
1
2022-02-10T08:53:52.000Z
2022-02-10T08:53:52.000Z
saleor/core/utils/random_data.py
BiaoLiu/saleor
d3de4d8ee69208d73539194b71449498f8e5e81f
[ "BSD-3-Clause" ]
1
2020-09-29T14:21:31.000Z
2020-09-29T14:21:31.000Z
import itertools import os import random import unicodedata from collections import defaultdict from django.conf import settings from django.contrib.auth.models import Group, Permission from django.core.files import File from django.template.defaultfilters import slugify from faker import Factory from faker.providers ...
33.978102
80
0.660311
3a70b0961b8fcb93182b45bf13393029ce026920
11,532
py
Python
geodesic.py
stannielson/c3m_3d
a146f0c9f43d1f23653631e319d144d807a3380f
[ "MIT" ]
null
null
null
geodesic.py
stannielson/c3m_3d
a146f0c9f43d1f23653631e319d144d807a3380f
[ "MIT" ]
null
null
null
geodesic.py
stannielson/c3m_3d
a146f0c9f43d1f23653631e319d144d807a3380f
[ "MIT" ]
null
null
null
""" Cadastral Measurement Management and Maintenance in Three Dimensions ------------------------------------------------------------------------------- Title: geodesic Author: Stanton K. Nielson, GIS Specialist BLM Wyoming High Desert District/Elmhurst College Date: Apr...
44.697674
80
0.467135
f708bf57521f7d9481aa81d8b11d1bb1fd26633a
2,945
py
Python
form_designer/views.py
LUKKIEN/django-form-designer
009e0870cae19e8570b9a480b6b64aee1dd38dfe
[ "BSD-3-Clause" ]
1
2015-03-03T20:37:07.000Z
2015-03-03T20:37:07.000Z
form_designer/views.py
piquadrat/django-form-designer
5ae7c3b00e538ada23d830d15424b557cac73017
[ "BSD-3-Clause" ]
null
null
null
form_designer/views.py
piquadrat/django-form-designer
5ae7c3b00e538ada23d830d15424b557cac73017
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.utils.translation import ugettext as _ from django.http import HttpResponseRedirect from django.conf import settings from django.contrib import messages from django.core.context_processors import cs...
40.902778
109
0.70017
0799e3256784ea29dada581700e35cd483a047d2
80
py
Python
vmaig_blog/uwsgi-2.0.14/plugins/logzmq/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
1
2018-11-24T16:10:49.000Z
2018-11-24T16:10:49.000Z
vmaig_blog/uwsgi-2.0.14/plugins/logzmq/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
vmaig_blog/uwsgi-2.0.14/plugins/logzmq/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
NAME='logzmq' CFLAGS = [] LDFLAGS = [] LIBS = ['-lzmq'] GCC_LIST = ['plugin']
10
21
0.5625
c9e03bfda4d1154d9634c9c81d89259ffeebcdfa
1,178
py
Python
ROAR/agent_module/forward_only_agent.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
1
2021-08-03T02:06:51.000Z
2021-08-03T02:06:51.000Z
ROAR/agent_module/forward_only_agent.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
1
2021-08-29T20:32:09.000Z
2021-08-29T20:32:09.000Z
ROAR/agent_module/forward_only_agent.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
null
null
null
from ROAR.agent_module.agent import Agent from ROAR.utilities_module.data_structures_models import SensorsData from ROAR.utilities_module.vehicle_models import Vehicle, VehicleControl from ROAR.configurations.configuration import Configuration as AgentConfig import cv2 from collections import deque class ForwardOnlyA...
42.071429
86
0.708829
d4767cb4b55c5b5ec9ab9af9a8893371e88e64f3
2,110
py
Python
supports/pyload/src/pyload/plugins/downloaders/BasketbuildCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/downloaders/BasketbuildCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/downloaders/BasketbuildCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -* # # Test links: # https://s.basketbuild.com/filedl/devs?dev=pacman&dl=pacman/falcon/RC-3/pac_falcon-RC-3-20141103.zip # https://s.basketbuild.com/filedl/gapps?dl=gapps-gb-20110828-signed.zip import re from ..base.simple_downloader import SimpleDownloader class BasketbuildCom(SimpleDownlo...
31.492537
103
0.591469
bd6fcebeff7379de140730466e503886f646b226
392
py
Python
impacta/wsgi.py
SpaceTheArcher/TecWeb_Azure
e40990f3d64b6918147957000fa458c94c32bfd7
[ "Apache-2.0" ]
null
null
null
impacta/wsgi.py
SpaceTheArcher/TecWeb_Azure
e40990f3d64b6918147957000fa458c94c32bfd7
[ "Apache-2.0" ]
null
null
null
impacta/wsgi.py
SpaceTheArcher/TecWeb_Azure
e40990f3d64b6918147957000fa458c94c32bfd7
[ "Apache-2.0" ]
null
null
null
""" WSGI config for impacta 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.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
23.058824
78
0.785714
c7a7c16eee125c8be7b9091e6ed1e831164a383b
10,615
py
Python
xos/synchronizer/pull_steps/pull_olts.py
iecedge/olt-service
0aac847ca228f2c20a2b57c783a414f185a0116c
[ "Apache-2.0" ]
null
null
null
xos/synchronizer/pull_steps/pull_olts.py
iecedge/olt-service
0aac847ca228f2c20a2b57c783a414f185a0116c
[ "Apache-2.0" ]
null
null
null
xos/synchronizer/pull_steps/pull_olts.py
iecedge/olt-service
0aac847ca228f2c20a2b57c783a414f185a0116c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-present Open Networking 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 # # Unless required by applicable law or agr...
39.460967
188
0.608573
4ce9ebcc2d3ca0f25744d8eb4d87e190bf471c07
11,183
py
Python
scirpy/_tools/_clonotype_imbalance.py
zktuong/scirpy
f0599abecc93c7db9ae1b0db268018d534ffe6da
[ "BSD-3-Clause" ]
null
null
null
scirpy/_tools/_clonotype_imbalance.py
zktuong/scirpy
f0599abecc93c7db9ae1b0db268018d534ffe6da
[ "BSD-3-Clause" ]
1
2022-01-29T03:41:32.000Z
2022-01-29T03:41:32.000Z
scirpy/_tools/_clonotype_imbalance.py
zktuong/scirpy
f0599abecc93c7db9ae1b0db268018d534ffe6da
[ "BSD-3-Clause" ]
null
null
null
from anndata import AnnData from typing import Union, Tuple, List, Sequence from scipy.stats import fisher_exact import numpy as np import pandas as pd import scanpy as sc from ._repertoire_overlap import repertoire_overlap from ..io._util import _check_upgrade_schema @_check_upgrade_schema() def clonotype_imbalance(...
34.838006
100
0.652687
e6a27f502aa22bc6fae3952e87db626abc9d9474
7,691
py
Python
fffw/encoding/inputs.py
tumb1er/fffw
6e0e51c22aecfdb12044ef51521857a790c1fc16
[ "MIT" ]
4
2020-10-30T03:16:57.000Z
2021-09-13T12:55:27.000Z
fffw/encoding/inputs.py
tumb1er/fffw
6e0e51c22aecfdb12044ef51521857a790c1fc16
[ "MIT" ]
108
2020-02-09T07:55:09.000Z
2022-03-28T00:54:19.000Z
fffw/encoding/inputs.py
tumb1er/fffw
6e0e51c22aecfdb12044ef51521857a790c1fc16
[ "MIT" ]
3
2020-02-09T07:51:28.000Z
2021-02-17T16:29:19.000Z
from dataclasses import dataclass from typing import Optional, List, Tuple, cast, Iterable, Union, Any from fffw.encoding import filters, outputs from fffw.graph import base from fffw.graph.meta import * from fffw.wrapper import BaseWrapper, param __all__ = [ 'Input', 'InputList', 'Stream', 'input_fil...
31.520492
80
0.600442
8425ce18f3f59128fcf9a72d2a6589fa85719702
4,841
py
Python
databricks/koalas/missing/frame.py
AishwaryaKalloli/koalas
8d35a74508c1319996c8c27e2a5e24af52b9ee31
[ "Apache-2.0" ]
null
null
null
databricks/koalas/missing/frame.py
AishwaryaKalloli/koalas
8d35a74508c1319996c8c27e2a5e24af52b9ee31
[ "Apache-2.0" ]
null
null
null
databricks/koalas/missing/frame.py
AishwaryaKalloli/koalas
8d35a74508c1319996c8c27e2a5e24af52b9ee31
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
44.824074
100
0.75377
f4b6c02dcfbc548455114275361d86af69bfc3c2
8,207
py
Python
dynamixel_controllers/dynamixel_controllers/joint_torque_controller.py
hirokiyokoyama/dynamixel_motor
00e523faf4d15542e3efb6828b588298c478930a
[ "BSD-3-Clause" ]
null
null
null
dynamixel_controllers/dynamixel_controllers/joint_torque_controller.py
hirokiyokoyama/dynamixel_motor
00e523faf4d15542e3efb6828b588298c478930a
[ "BSD-3-Clause" ]
null
null
null
dynamixel_controllers/dynamixel_controllers/joint_torque_controller.py
hirokiyokoyama/dynamixel_motor
00e523faf4d15542e3efb6828b588298c478930a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Software License Agreement (BSD License) # # Copyright (c) 2010-2011, Antons Rebguns. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source...
47.439306
150
0.7111
2d2f5624cc71de8d3a4cd5845f1377bb50484b37
6,235
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/subnet.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/subnet.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/subnet.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
52.394958
119
0.69591
61ff06832fadd2165ec1b48ffb49267d894453c6
5,997
py
Python
TSP/tsp_tests_v2.py
machine-reasoning-ufrgs/graph-nn
7489b7b3d6a4750245e3f506982d98b56a74b6bb
[ "MIT" ]
1
2019-11-04T15:56:00.000Z
2019-11-04T15:56:00.000Z
TSP/tsp_tests_v2.py
machine-reasoning-ufrgs/graph-nn
7489b7b3d6a4750245e3f506982d98b56a74b6bb
[ "MIT" ]
null
null
null
TSP/tsp_tests_v2.py
machine-reasoning-ufrgs/graph-nn
7489b7b3d6a4750245e3f506982d98b56a74b6bb
[ "MIT" ]
2
2019-09-21T12:10:56.000Z
2021-04-17T13:55:32.000Z
import sys, os # Add the parent folder path to the sys.path list for importing sys.path.insert(1, os.path.join(sys.path[0], '..')) import tensorflow as tf import numpy as np from numpy import linalg as LA from matplotlib import pyplot as plt from graphnn_refactored import GraphNN from tsp import build_network_v2, ens...
34.66474
186
0.623812
43c8452cefd9f6c421c933e79a18ed81683740a7
41
py
Python
external/models/TransH_USE_h2/__init__.py
swapUniba/Elliot_refactor-tesi-Ventrella
3ddffc041696c90a6f6d3e8906c212fc4f55f842
[ "Apache-2.0" ]
null
null
null
external/models/TransH_USE_h2/__init__.py
swapUniba/Elliot_refactor-tesi-Ventrella
3ddffc041696c90a6f6d3e8906c212fc4f55f842
[ "Apache-2.0" ]
null
null
null
external/models/TransH_USE_h2/__init__.py
swapUniba/Elliot_refactor-tesi-Ventrella
3ddffc041696c90a6f6d3e8906c212fc4f55f842
[ "Apache-2.0" ]
null
null
null
from .TransH_USE_h2 import TransH_USE_h2
20.5
40
0.878049
a9ef322ea9f9c8fdede18dd4986be0cdf3fdf0c7
2,886
py
Python
generate.py
ivoryRabbit/mvae-pytorch
d19848c44997d650b6f44ad6c4822bfe1213a579
[ "MIT" ]
null
null
null
generate.py
ivoryRabbit/mvae-pytorch
d19848c44997d650b6f44ad6c4822bfe1213a579
[ "MIT" ]
null
null
null
generate.py
ivoryRabbit/mvae-pytorch
d19848c44997d650b6f44ad6c4822bfe1213a579
[ "MIT" ]
null
null
null
import json import logging import os import torch import pandas as pd import numpy as np from typing import Dict, Any from src.model import MVAE from src.dataset import OneHotEncoding, Dataset JSON_CONTENT_TYPE = "application/json" logger = logging.getLogger(__name__) def model_fn(model_dir): device = torch.d...
31.369565
91
0.69404
d544c9c2e096dfba7548cc023aab1d656e12dbc6
3,638
py
Python
Assignment/Assignment2/word2vec_최혜빈/sgd.py
Tobigs-team/Text-Seminar
5db6e28e3345f276973113608fd0532480123fc7
[ "MIT" ]
7
2021-01-07T16:28:39.000Z
2022-03-06T00:34:48.000Z
Assignment/Assignment2/word2vec_최혜빈/sgd.py
jinseock95/Text-Seminar
5db6e28e3345f276973113608fd0532480123fc7
[ "MIT" ]
2
2020-11-05T07:19:25.000Z
2020-12-30T03:09:44.000Z
Assignment/Assignment2/word2vec_최혜빈/sgd.py
Tobigs-team/Text-Seminar
5db6e28e3345f276973113608fd0532480123fc7
[ "MIT" ]
18
2020-10-07T12:10:45.000Z
2020-12-30T10:55:25.000Z
#!/usr/bin/env python # Save parameters every a few SGD iterations as fail-safe SAVE_PARAMS_EVERY = 5000 import pickle import glob import random import numpy as np import os.path as op def load_saved_params(): """ A helper function that loads previously saved parameters and resets iteration start. ""...
26.362319
75
0.586036
854d6400e9a86195d0e7a9e5e23f3f3a4be22805
12,928
py
Python
tests/applications/auth_tests.py
varajala/flask-blog
534ec49abee86b49c2c08d12ca3e473550f02e77
[ "BSD-3-Clause" ]
null
null
null
tests/applications/auth_tests.py
varajala/flask-blog
534ec49abee86b49c2c08d12ca3e473550f02e77
[ "BSD-3-Clause" ]
null
null
null
tests/applications/auth_tests.py
varajala/flask-blog
534ec49abee86b49c2c08d12ca3e473550f02e77
[ "BSD-3-Clause" ]
null
null
null
import microtest import flask import tempfile from threading import Lock import flask_blog.security.sessions as sessions import flask_blog.notifications as notifications import flask_blog.security.auth as auth from flask_blog.security import generate_password_hash from flask_blog.common import Timestamp mutex = Lock...
27.447983
87
0.625619
85ab4ef227d21832f03135489dc9026bac3d437a
498
py
Python
core/__init__.py
ivansu995/virtual-speech-assistant-app
cf2fadd38064bdd5b44568417ccf82470eb986fb
[ "MIT" ]
null
null
null
core/__init__.py
ivansu995/virtual-speech-assistant-app
cf2fadd38064bdd5b44568417ccf82470eb986fb
[ "MIT" ]
null
null
null
core/__init__.py
ivansu995/virtual-speech-assistant-app
cf2fadd38064bdd5b44568417ccf82470eb986fb
[ "MIT" ]
null
null
null
import datetime import arrow class SystemInfo: def __init__(self): pass @staticmethod def get_time(): speak = 'The time is {}'.format(datetime.datetime.now().strftime("%H %M")) return speak @staticmethod def get_date(): utc = arrow.utcnow() local = utc....
27.666667
135
0.594378
537b98af14b66de2edaba84dce5ece41995cc546
674
py
Python
poseidon/core/version_types.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2019-12-27T09:14:38.000Z
2019-12-27T09:16:29.000Z
poseidon/core/version_types.py
CodeMonkey4Fun/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2021-03-31T20:06:21.000Z
2021-12-13T20:48:16.000Z
poseidon/core/version_types.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
1
2020-11-13T07:37:01.000Z
2020-11-13T07:37:01.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Author: kangliang date: 2019-12-25 """ from enum import Enum class Types(Enum): # 采取 GNU 风格版本号 Major = "Major", # 主版本号 Minor = "Minor", # 次版本号 Revision = "Revision", # 修订版本号 Build = "Build", # 内部版本号 Alpha = "Alpha", #...
24.962963
81
0.58457
38a382d399ce3f63f7dcd00181e33c6f0fea7a66
936
py
Python
tests/mowgli_etl_test/pipeline/rpi_combined/rpi_combined_pipeline_test.py
tetherless-world/mowgli
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
4
2021-01-15T15:36:23.000Z
2021-09-01T06:52:05.000Z
tests/mowgli_etl_test/pipeline/rpi_combined/rpi_combined_pipeline_test.py
tetherless-world/mowgli
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
63
2020-05-04T13:48:04.000Z
2020-06-06T02:32:58.000Z
tests/mowgli_etl_test/pipeline/rpi_combined/rpi_combined_pipeline_test.py
tetherless-world/mowgli-etl
28c19eba41e03e053ae4addff56a313d926e18d7
[ "MIT" ]
null
null
null
from itertools import islice from mowgli_etl.pipeline.rpi_combined.rpi_combined_pipeline import RpiCombinedPipeline from mowgli_etl.pipeline_wrapper import PipelineWrapper from tests.mowgli_etl_test.etl_mocks import MockTransformer, MockPipeline def test_rpi_combined_pipeline(pipeline_storage, graph_generator): ...
36
100
0.758547
a95b8a5ccd861c85ae54529a9ba12e9dbc8af247
466
py
Python
ex7.py
Tobijoe/LPTHW
12f3e412c339f51828c909a94fd55ef6e7eb8b5b
[ "MIT" ]
null
null
null
ex7.py
Tobijoe/LPTHW
12f3e412c339f51828c909a94fd55ef6e7eb8b5b
[ "MIT" ]
null
null
null
ex7.py
Tobijoe/LPTHW
12f3e412c339f51828c909a94fd55ef6e7eb8b5b
[ "MIT" ]
null
null
null
print("Mary had a little lamb,") print("Its fleece was white as{}.".format('snow')) print("And everywhere that Mary went,") print("." * 10) # what'd that do? end1 = 'C' end2 = "h" end3 = "e" end4 = "e" end5 = "s" end6 = "e" end7 = "B" end8 = "u" end9 = "r" end10 = "g" end11 = "e" end12 = "r" #watch that comma at the ...
21.181818
66
0.609442
d94de3a903cb2decd005a76775245dd4d8f2f77c
1,171
py
Python
Latest/venv/Lib/site-packages/envisage/tests/plugins/orange/orange_plugin.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/envisage/tests/plugins/orange/orange_plugin.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/envisage/tests/plugins/orange/orange_plugin.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2007-2019 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only # under the conditions described in the aforementioned license. The license # is also available online a...
25.456522
80
0.553373
c1254a53c8252d0dce3496e4ef94cc8469661efe
431
py
Python
SimpleArraySum/solution.py
randiapr/hackerrank-solver
c1def481f97bd020572023f538d3bb279ec3b644
[ "MIT" ]
null
null
null
SimpleArraySum/solution.py
randiapr/hackerrank-solver
c1def481f97bd020572023f538d3bb279ec3b644
[ "MIT" ]
null
null
null
SimpleArraySum/solution.py
randiapr/hackerrank-solver
c1def481f97bd020572023f538d3bb279ec3b644
[ "MIT" ]
null
null
null
#!/bin/python3 import os import sys # # Complete the simpleArraySum function below. # def simpleArraySum(ar): result = 0 for item in ar: result += item return result if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') ar_count = int(input()) ar = list(map(int, inp...
15.962963
49
0.614849
33ec3ae2411bfece570a83a4cad94cabce8eab4a
179
py
Python
u3dunpack/export/KtxConverter.py
smalls0098/u3d-studio
b5fb9875afdebaf457ee75c3ab42e4e828a88680
[ "MIT" ]
1
2020-07-27T03:43:47.000Z
2020-07-27T03:43:47.000Z
u3dunpack/export/KtxConverter.py
smalls0098/u3d-assets-tools
b5fb9875afdebaf457ee75c3ab42e4e828a88680
[ "MIT" ]
null
null
null
u3dunpack/export/KtxConverter.py
smalls0098/u3d-assets-tools
b5fb9875afdebaf457ee75c3ab42e4e828a88680
[ "MIT" ]
1
2021-10-03T11:23:14.000Z
2021-10-03T11:23:14.000Z
from ..utils import KtxUtils def makeKtx(texture2d): return KtxUtils.header(texture2d.m_Width, texture2d.m_Height, texture2d.m_CompleteImageSize) + texture2d.imageData
29.833333
119
0.787709
3bae42d85c20c90b7c38072ddefdffe9a54bd115
5,788
py
Python
trunk/VyPy/parallel/MultiTask.py
aerialhedgehog/VyPy
3a7644717c03c6b7a71f7b67f93a03b30b5450b1
[ "BSD-3-Clause" ]
3
2015-01-22T02:03:14.000Z
2022-03-15T21:50:50.000Z
trunk/VyPy/parallel/MultiTask.py
aerialhedgehog/VyPy
3a7644717c03c6b7a71f7b67f93a03b30b5450b1
[ "BSD-3-Clause" ]
3
2015-02-06T19:12:04.000Z
2015-05-01T10:04:12.000Z
trunk/VyPy/parallel/MultiTask.py
aerialhedgehog/VyPy
3a7644717c03c6b7a71f7b67f93a03b30b5450b1
[ "BSD-3-Clause" ]
1
2020-09-25T13:26:54.000Z
2020-09-25T13:26:54.000Z
# ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- import os, sys, shutil import multiprocessing as mp from Service import Service from Remember import Remember from Object import Object from W...
29.085427
87
0.474084
d6275c6e9b810372282d97fbac65533ff8712c63
1,035
py
Python
service/util/selenium_service.py
haruspring-jokt/tenkibot
7de0846d267cb813adadb003294f5275f3cfe81a
[ "MIT" ]
null
null
null
service/util/selenium_service.py
haruspring-jokt/tenkibot
7de0846d267cb813adadb003294f5275f3cfe81a
[ "MIT" ]
4
2018-08-27T04:49:01.000Z
2018-11-28T15:54:13.000Z
service/util/selenium_service.py
haruspring-jokt/tenkibot
7de0846d267cb813adadb003294f5275f3cfe81a
[ "MIT" ]
null
null
null
# coding: utf-8 from selenium import webdriver from selenium.webdriver.chrome.options import Options import slackbot_settings as settings def setup_webdriver(is_headless=True, is_mobile=False): options = Options() options.binary_location = settings.CHROME_BINARY_LOCATION # headlessにする場合は以下の2行についてコメントアウ...
29.571429
76
0.740097
3ef7cead162d8606b06591a499c1d00e7670adc6
13,646
py
Python
Lib/site-packages/stripe/test/test_http_client.py
JulioCantu/IndiStore
723c4ced800d43ffbfd34dc0ff7649b628008416
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/stripe/test/test_http_client.py
JulioCantu/IndiStore
723c4ced800d43ffbfd34dc0ff7649b628008416
[ "bzip2-1.0.6" ]
4
2020-06-06T00:04:23.000Z
2021-09-08T01:26:23.000Z
Lib/site-packages/stripe/test/test_http_client.py
JulioCantu/IndiStore
723c4ced800d43ffbfd34dc0ff7649b628008416
[ "bzip2-1.0.6" ]
null
null
null
import sys import unittest2 from mock import MagicMock, Mock, patch import stripe from stripe.test.helper import StripeUnitTestCase VALID_API_METHODS = ('get', 'post', 'delete') class HttpClientTests(StripeUnitTestCase): def setUp(self): super(HttpClientTests, self).setUp() self.original_fil...
34.546835
77
0.616518
4e56f6d024b99004b1f8d8f367660d01b3a4e67e
4,377
py
Python
hello/asyncio.py
Supremeyh/python
062374bc7dc4bbb3f9b331d8c2ea0fb2d16d6d4c
[ "MIT" ]
null
null
null
hello/asyncio.py
Supremeyh/python
062374bc7dc4bbb3f9b331d8c2ea0fb2d16d6d4c
[ "MIT" ]
null
null
null
hello/asyncio.py
Supremeyh/python
062374bc7dc4bbb3f9b331d8c2ea0fb2d16d6d4c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # 异步IO # 当代码需要执行一个耗时的IO操作时,它只发出IO指令,并不等待IO结果,然后就去执行其他代码了。一段时间后,当IO返回结果时,再通知CPU进行处理。 # 异步IO模型需要一个消息循环,在消息循环中,主线程不断地重复“读取消息-处理消息”这一过程 # 当遇到IO操作时,代码只负责发出IO请求,不等待IO结果,然后直接结束本轮消息处理,进入下一轮消息处理过程。当IO操作完成后,将收到一条“IO完成”的消息, # 处理该消息时就可以直接获取IO操作结果。在“发出IO请求”到收到“IO完成”的这段时间里,同步IO模型下,主线程只...
26.36747
109
0.744574
e146f5f62650f7fbce091e482c53f6e1e3a88f28
61,150
py
Python
mesonbuild/compilers/mixins/clike.py
kvark/meson
dff40ca259c396568eeb4d05c534781ca148f8e7
[ "Apache-2.0" ]
null
null
null
mesonbuild/compilers/mixins/clike.py
kvark/meson
dff40ca259c396568eeb4d05c534781ca148f8e7
[ "Apache-2.0" ]
null
null
null
mesonbuild/compilers/mixins/clike.py
kvark/meson
dff40ca259c396568eeb4d05c534781ca148f8e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2017 The Meson development team # 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 agree...
45.805243
150
0.583238
856ea1bfab21f737ae00b60a1d448c0eee011914
214
py
Python
moyu_engine/config/global_config.py
MoYuStudio/MoYuEngine
7d9ab5c9cb268de0071e798a3288f0bbb651795e
[ "Apache-2.0" ]
2
2022-03-22T02:32:34.000Z
2022-03-22T02:32:43.000Z
moyu_engine/config/global_config.py
MoYuStudio/MoYuEngine
7d9ab5c9cb268de0071e798a3288f0bbb651795e
[ "Apache-2.0" ]
null
null
null
moyu_engine/config/global_config.py
MoYuStudio/MoYuEngine
7d9ab5c9cb268de0071e798a3288f0bbb651795e
[ "Apache-2.0" ]
null
null
null
window_size = [320,180] movement = [0,0] mouse_motion_pos = [0,0] mouse_click_pos = [0,0] item_name_timer = 0 item_collision = { 'item':[], 'player':[], }
16.461538
32
0.476636
df996c3deb5a1482f7515a60554bf73cd471fa42
399,791
py
Python
ExtraModules/phonenumbers/geodata/data3.py
chirantana-trust/web-chirantana
18e2fb105fc5a9f55586c55096780c062ad9f2bc
[ "Unlicense" ]
null
null
null
ExtraModules/phonenumbers/geodata/data3.py
chirantana-trust/web-chirantana
18e2fb105fc5a9f55586c55096780c062ad9f2bc
[ "Unlicense" ]
null
null
null
ExtraModules/phonenumbers/geodata/data3.py
chirantana-trust/web-chirantana
18e2fb105fc5a9f55586c55096780c062ad9f2bc
[ "Unlicense" ]
null
null
null
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from ..util import u # Copyright (C) 2011-2016 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
39.887359
221
0.562324
74813f743e5771b5f1dd5e66b70e52c02c44e50f
699
py
Python
noxfile.py
SethMichaelLarson/rfc6555
b63778b5b5553e9848d7f26916618d755240c0ff
[ "Apache-2.0" ]
4
2019-05-14T04:43:15.000Z
2022-02-05T06:59:58.000Z
noxfile.py
SethMichaelLarson/rfc6555
b63778b5b5553e9848d7f26916618d755240c0ff
[ "Apache-2.0" ]
4
2019-02-13T10:34:22.000Z
2022-03-29T22:25:22.000Z
noxfile.py
SethMichaelLarson/rfc6555
b63778b5b5553e9848d7f26916618d755240c0ff
[ "Apache-2.0" ]
5
2019-02-14T15:10:27.000Z
2022-03-01T04:35:37.000Z
import nox SOURCE_FILES = [ "rfc6555.py", "tests/", "noxfile.py", "setup.py", ] @nox.session() def test(session): session.install("pytest", "pytest-cov") session.run("pytest", "--cov-config=.coveragerc", "tests/") @nox.session() def format(session): session.install("black", "isort") ...
19.971429
69
0.62804
af601fdc35af5dcb934a1984c7b530d540f41496
1,529
py
Python
python/arepl_user_error.py
Almenon/AREPL-backend
e29effa4bc3975b3cec220e29cbe8209f33b8614
[ "MIT" ]
10
2019-04-28T00:17:49.000Z
2021-05-13T06:01:38.000Z
python/arepl_user_error.py
Almenon/AREPL-backend
e29effa4bc3975b3cec220e29cbe8209f33b8614
[ "MIT" ]
157
2017-12-24T06:55:29.000Z
2022-01-08T17:53:56.000Z
python/arepl_user_error.py
Almenon/AREPL-backend
e29effa4bc3975b3cec220e29cbe8209f33b8614
[ "MIT" ]
7
2019-03-22T12:30:05.000Z
2021-05-13T06:01:35.000Z
from arepl_pickler import pickle_user_vars from traceback import TracebackException, FrameSummary from types import TracebackType from arepl_settings import get_settings class UserError(Exception): """ user errors should be caught and re-thrown with this Be warned that this exception can throw an exceptio...
47.78125
135
0.724003
9631597ff1ed7b94189643853f77e2b4dc041fa8
23,318
py
Python
seerpy/seerpy.py
matias-seer/seer-py
fbb018e683817d108f2e1ee3162680de06ce110c
[ "MIT" ]
null
null
null
seerpy/seerpy.py
matias-seer/seer-py
fbb018e683817d108f2e1ee3162680de06ce110c
[ "MIT" ]
null
null
null
seerpy/seerpy.py
matias-seer/seer-py
fbb018e683817d108f2e1ee3162680de06ce110c
[ "MIT" ]
null
null
null
# Copyright 2017 Seer Medical Pty Ltd, Inc. or its affiliates. All Rights Reserved. import math import time from gql import gql, Client as GQLClient from gql.transport.requests import RequestsHTTPTransport import pandas as pd from pandas.io.json import json_normalize import requests from .auth import SeerAuth from ....
40.065292
100
0.605884
0a5ebb72957d1761e1fc034cfc2bffa609fe1865
263
py
Python
config.py
laashub-soa/laas-soa-monitor
5c86d8b45f42e03e166e8a3dc13008b208e6e6a4
[ "Apache-2.0" ]
2
2021-03-04T04:11:29.000Z
2021-03-04T05:06:49.000Z
config.py
laashub-soa/laas-soa-monitor
5c86d8b45f42e03e166e8a3dc13008b208e6e6a4
[ "Apache-2.0" ]
null
null
null
config.py
laashub-soa/laas-soa-monitor
5c86d8b45f42e03e166e8a3dc13008b208e6e6a4
[ "Apache-2.0" ]
1
2021-04-29T15:06:19.000Z
2021-04-29T15:06:19.000Z
import os import yaml import config project_root_path = os.getcwd() app_conf = None if not app_conf: app_conf = {} with open(r'configs/application.yaml', encoding='utf-8') as f: config.app_conf = yaml.safe_load(f.read()) def init(): pass
15.470588
66
0.673004
90eda2b261ed724a549a05f6790f825dbe232015
160
py
Python
handler.py
dexter-private/MBO-Line-Bot
2d94c2a412ce981e08a189518df928a64478d15c
[ "MIT" ]
null
null
null
handler.py
dexter-private/MBO-Line-Bot
2d94c2a412ce981e08a189518df928a64478d15c
[ "MIT" ]
null
null
null
handler.py
dexter-private/MBO-Line-Bot
2d94c2a412ce981e08a189518df928a64478d15c
[ "MIT" ]
null
null
null
import json def webhook(event, context): response = { "statusCode": 200, "body": json.dumps({"message": 'ok'}) } return response
14.545455
45
0.55625
be8b8d2161299fff6489f6c51f0d37a56f332982
1,373
py
Python
RealEstateAnalysis/Data/DataJson.py
clbrem/RealEstateAnalysis
b61582d1399ab8f02d678e00d35774bd68318ad1
[ "MIT" ]
null
null
null
RealEstateAnalysis/Data/DataJson.py
clbrem/RealEstateAnalysis
b61582d1399ab8f02d678e00d35774bd68318ad1
[ "MIT" ]
6
2020-01-28T22:10:56.000Z
2020-11-18T21:12:30.000Z
RealEstateAnalysis/Data/DataJson.py
clbrem/RealEstateAnalysis
b61582d1399ab8f02d678e00d35774bd68318ad1
[ "MIT" ]
1
2018-03-15T14:38:36.000Z
2018-03-15T14:38:36.000Z
import json import os from RealEstateAnalysis.Data.DataModel import DataSource def new(file, dataPath=[], encoding=None): return DataJson(file, dataPath, encoding) class DataJson(DataSource): @property def description(self): return "JSON data from {0}".format(self.file) def __iter__(sel...
26.921569
77
0.573197
0a45e91b611bdaf19d31ed31d727a63d15117a8e
6,309
py
Python
generate_p4a_recipe.py
david-fischer/generate-p4a-recipe
393520b28be47994da8f1c5851dbe5316d88e136
[ "MIT" ]
1
2021-09-02T18:15:39.000Z
2021-09-02T18:15:39.000Z
generate_p4a_recipe.py
david-fischer/generate-p4a-recipe
393520b28be47994da8f1c5851dbe5316d88e136
[ "MIT" ]
null
null
null
generate_p4a_recipe.py
david-fischer/generate-p4a-recipe
393520b28be47994da8f1c5851dbe5316d88e136
[ "MIT" ]
null
null
null
import os import re import subprocess import sys import attr import fire import pystache import requests from simple_term_menu import TerminalMenu STACHE_TEMPLATE_PATH = f"{os.path.dirname(__file__)}/recipe_template.stache" RECIPES = [ "PythonRecipe", "CythonRecipe", "TargetPythonRecipe", "CompiledCom...
36.468208
92
0.617055
523d11e318705ac0d1c3d2718d1ec06b2009b286
265
py
Python
app/models/articles.py
UMUTONIRitha/News_API
f5087c2b0564bbbcb06764e0478fac5380e66dda
[ "MIT" ]
null
null
null
app/models/articles.py
UMUTONIRitha/News_API
f5087c2b0564bbbcb06764e0478fac5380e66dda
[ "MIT" ]
null
null
null
app/models/articles.py
UMUTONIRitha/News_API
f5087c2b0564bbbcb06764e0478fac5380e66dda
[ "MIT" ]
null
null
null
class Artcle: def __init__ (self,title,description,url,urlToImage,publishedAt): self.title = title self.description = description self.url = url self.urlToImage = urlToImage self.publishedAt = publishedAt
24.090909
69
0.626415