hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0721455cc0a7bbad4ef3dc27a41e21d464b9bd
241
py
Python
example/foo/generators.py
pydanny/django-oauth-toolkit
bf9ce2837f9ae2be939ac00a23f348266b91325d
[ "BSD-2-Clause-FreeBSD" ]
1
2019-07-25T23:15:39.000Z
2019-07-25T23:15:39.000Z
example/foo/generators.py
pydanny/django-oauth-toolkit
bf9ce2837f9ae2be939ac00a23f348266b91325d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
example/foo/generators.py
pydanny/django-oauth-toolkit
bf9ce2837f9ae2be939ac00a23f348266b91325d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import random import string from oauth2_provider.generators import BaseHashGenerator class ClientIdGenerator(BaseHashGenerator): def hash(self): return ''.join(random.choice(string.letters + string.digits) for i in range(100))
26.777778
89
0.775934
4a07215ae21ec3e4f595ce1be8fc4dcdc6452607
6,310
py
Python
app/main/views.py
dandud/dabl
4e5e3c5b0e8ec582b2c2b17fe25e0bbe83c26c2f
[ "MIT" ]
2
2022-01-10T00:16:39.000Z
2022-01-23T20:55:59.000Z
app/main/views.py
dandud/dabl
4e5e3c5b0e8ec582b2c2b17fe25e0bbe83c26c2f
[ "MIT" ]
null
null
null
app/main/views.py
dandud/dabl
4e5e3c5b0e8ec582b2c2b17fe25e0bbe83c26c2f
[ "MIT" ]
null
null
null
from flask import render_template, session, redirect, url_for, current_app, flash from .. import db from ..models import Measurement, User, Batch, Action, Brewtype, Brewstyle, Status, Container, Containertype, Vessel from ..email import send_email from . import main, batches from .forms import NameForm, BatchAddForm, B...
38.242424
141
0.633281
4a07222a3e200db07f24baaead11589968c670fe
683
py
Python
Leetcode/1000-2000/1057. Campus Bikes/1057.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/1000-2000/1057. Campus Bikes/1057.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/1000-2000/1057. Campus Bikes/1057.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def assignBikes(self, workers: List[List[int]], bikes: List[List[int]]) -> List[int]: ans = [-1] * len(workers) usedBikes = [False] * len(bikes) # buckets[k] := (i, j), where k = dist(workers[i], bikes[j]) buckets = [[] for _ in range(2001)] def dist(p1: List[int], p2: List[int]) ...
31.045455
87
0.553441
4a0722b57621463399fea877dfa44d0f58ee557f
968
py
Python
leetcode/704_binary_search.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
leetcode/704_binary_search.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
leetcode/704_binary_search.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
import unittest from typing import List class Solution: """ This solution is a standard iterative binary search implementation. """ def search(self, nums: List[int], target: int) -> int: low = 0 high = len(nums) - 1 while low <= high: mid = low + (high - low) //...
21.511111
71
0.544421
4a072357514d9d9051d41b5bbe52837743f3dd4d
1,455
py
Python
S4/S4 Library/simulation/tag.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/tag.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/tag.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
import functools from sims4.tuning.dynamic_enum import DynamicEnumLocked from sims4.tuning.tunable import TunableSet, TunableEnumEntry, TunableEnumWithFilter from sims4.tuning.tunable_base import ExportModes import singletons PORTAL_DISALLOWANCE_PREFIX = ('PortalDisallowance',) INTERACTION_PREFIX = ('interaction',) SPA...
50.172414
182
0.785567
4a0723c93479a8bbc5ca71dc3546fad9ba304db8
68
py
Python
astprint/__init__.py
fjarri-attic/astprint
b6f5113ed0dd2af0a7ba8b0445fc25ba6d970321
[ "MIT" ]
2
2016-12-25T08:13:36.000Z
2020-05-11T01:40:00.000Z
astprint/__init__.py
fjarri-attic/astprint
b6f5113ed0dd2af0a7ba8b0445fc25ba6d970321
[ "MIT" ]
null
null
null
astprint/__init__.py
fjarri-attic/astprint
b6f5113ed0dd2af0a7ba8b0445fc25ba6d970321
[ "MIT" ]
3
2016-12-27T07:06:47.000Z
2021-01-20T03:22:35.000Z
from astprint.code import as_code from astprint.tree import as_tree
22.666667
33
0.852941
4a0723f059a07099f0c493d4e32cf531d29075ff
6,551
py
Python
telethon/client/messageparse.py
rotem443/Telethon
35ba9848d9126462b6d51a35d3e16762b18660a9
[ "MIT" ]
1
2019-05-31T10:20:06.000Z
2019-05-31T10:20:06.000Z
telethon/client/messageparse.py
exceloo/Telethon
30a0e390603072d3ec57a2f0eef0a297a9b0321b
[ "MIT" ]
5
2021-04-30T21:14:18.000Z
2022-03-12T00:21:58.000Z
telethon/client/messageparse.py
exceloo/Telethon
30a0e390603072d3ec57a2f0eef0a297a9b0321b
[ "MIT" ]
null
null
null
import itertools import re import typing from .users import UserMethods from .. import utils from ..tl import types if typing.TYPE_CHECKING: from .telegramclient import TelegramClient class MessageParseMethods(UserMethods): # region Public properties @property def parse_mode(self: 'TelegramClient'...
37.649425
89
0.591665
4a07240eaac8910e8e0da98651bde283eab96bf4
1,083
py
Python
tests/test_orbiter.py
michaelaye/pytelescope
8e02fd790b1265c91faa786d9bd16131a869dcca
[ "ISC" ]
null
null
null
tests/test_orbiter.py
michaelaye/pytelescope
8e02fd790b1265c91faa786d9bd16131a869dcca
[ "ISC" ]
null
null
null
tests/test_orbiter.py
michaelaye/pytelescope
8e02fd790b1265c91faa786d9bd16131a869dcca
[ "ISC" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `pytelescope` package.""" import pytest from pytelescope import orbiter @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests # return requests.get('ht...
24.066667
87
0.746076
4a0726eab2fc58c775bad85922fdf8c04bcd3559
805
py
Python
PythonExercicios/ex038.py
VitorFRodrigues/Python-curso
af75ff4a7ca14bc7e67b4f3362af837d355b1746
[ "MIT" ]
null
null
null
PythonExercicios/ex038.py
VitorFRodrigues/Python-curso
af75ff4a7ca14bc7e67b4f3362af837d355b1746
[ "MIT" ]
null
null
null
PythonExercicios/ex038.py
VitorFRodrigues/Python-curso
af75ff4a7ca14bc7e67b4f3362af837d355b1746
[ "MIT" ]
null
null
null
cores = {'limpa':'\033[m', 'branco':'\033[30m', 'vermelho':'\033[31m', 'verde':'\033[32m', 'amarelo':'\033[33m', 'azul':'\033[34m', 'roxo':'\033[35m', 'azulclaro':'\033[36m', 'cinza':'\033[37m', 'pretoebranco':'\033[7;30m'} a = int(input(...
40.25
136
0.542857
4a0727482a67cd242892bf70bf888536887db905
385
py
Python
testing/issspace.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
testing/issspace.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
testing/issspace.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """TPatrick | Alta3 Research Script to interact with Astros API""" import requests def astros(): r = requests.get("http://api.open-notify.org/astros.json") if r.status_code == 200: return r.json() else: return None def main(): print("Right now in space we have...
20.263158
62
0.620779
4a0728388715df412a03e56b9fb75aa1759671ea
470
py
Python
applitools/__init__.py
applitools/eyes.selenium.python
3a09a3372a3a8915b3c97ee54fc223580c45c0a3
[ "Apache-2.0" ]
11
2016-04-20T21:21:37.000Z
2020-04-27T19:46:56.000Z
applitools/__init__.py
applitools/eyes.selenium.python
3a09a3372a3a8915b3c97ee54fc223580c45c0a3
[ "Apache-2.0" ]
15
2017-01-11T04:58:31.000Z
2019-09-13T18:00:35.000Z
applitools/__init__.py
applitools/eyes.selenium.python
3a09a3372a3a8915b3c97ee54fc223580c45c0a3
[ "Apache-2.0" ]
15
2016-03-23T22:06:39.000Z
2020-06-14T09:11:58.000Z
from .__version__ import __version__ from .core import * # noqa from .selenium import * # noqa from .utils import * # noqa # for backward compatibility from .core import errors, geometry # noqa from .selenium import eyes, target # noqa __all__ = ( core.__all__ + # noqa selenium.__all__ + # noqa...
24.736842
62
0.66383
4a07294d7861727ce8121fda41f9b9abda97394b
21,094
py
Python
frites/simulations/sim_local_mi.py
adam2392/frites
4a6afa6dd0a2d559f5ae81d455c77210f018450c
[ "BSD-3-Clause" ]
null
null
null
frites/simulations/sim_local_mi.py
adam2392/frites
4a6afa6dd0a2d559f5ae81d455c77210f018450c
[ "BSD-3-Clause" ]
null
null
null
frites/simulations/sim_local_mi.py
adam2392/frites
4a6afa6dd0a2d559f5ae81d455c77210f018450c
[ "BSD-3-Clause" ]
null
null
null
"""Simulate local representation of mutual information.""" import numpy as np import xarray as xr from frites.io import logger, set_log_level """ ############################################################################### I(C; C) ##################################################...
37.938849
79
0.563762
4a0729a272f747903f93e3d962dd1aee9c958c07
613
py
Python
emlo-edit-php-helper/exporter/export_sophiahedwig.py
culturesofknowledge/site-editor
9a74580d2567755ab068a2d8761df8f81718910e
[ "MIT" ]
null
null
null
emlo-edit-php-helper/exporter/export_sophiahedwig.py
culturesofknowledge/site-editor
9a74580d2567755ab068a2d8761df8f81718910e
[ "MIT" ]
null
null
null
emlo-edit-php-helper/exporter/export_sophiahedwig.py
culturesofknowledge/site-editor
9a74580d2567755ab068a2d8761df8f81718910e
[ "MIT" ]
1
2021-11-15T13:19:28.000Z
2021-11-15T13:19:28.000Z
__author__ = 'matthew' from exporter.exporter import Exporter from config import config debug_on = True postgres_connection = "dbname='" + config["dbname"] + "'" \ + " host='" + config["host"] + "' port='" + config["port"] + "'" \ + " user='" + config["user"] + "' password=...
32.263158
94
0.62969
4a072abc44dd785a50e77db3cc409167467578ba
5,685
py
Python
Port 11211 - MemcacheD (bonus seeding scripts)/memcached-seeder.py
racompton/AMP-Research
aabc1bb3f08ed960d8466bd1e53408d2977db1fe
[ "MIT" ]
183
2019-09-30T09:22:44.000Z
2022-03-30T20:39:30.000Z
Port 11211 - MemcacheD (bonus seeding scripts)/memcached-seeder.py
racompton/AMP-Research
aabc1bb3f08ed960d8466bd1e53408d2977db1fe
[ "MIT" ]
5
2020-03-25T11:21:52.000Z
2022-03-09T01:43:07.000Z
Port 11211 - MemcacheD (bonus seeding scripts)/memcached-seeder.py
racompton/AMP-Research
aabc1bb3f08ed960d8466bd1e53408d2977db1fe
[ "MIT" ]
72
2019-09-28T19:12:39.000Z
2022-03-27T20:08:07.000Z
# Meme-cacheD seeder by Phenomite 2020 import os import sys import socket import re import time import requests import memcache import concurrent.futures exit = False memcachePort = 11211 def getseed(url): seed_content = requests.get(url).text # Force into memory if not seed_content: print("Seede...
39.206897
185
0.612665
4a072b429d9fcbf5fcaf9a0458bc80936d48b556
69,847
py
Python
resources/lib/KodiHelper.py
db10bo/plugin.video.netflix
f9e0ac4512836807435cc992ddf90b3cd6c52c17
[ "MIT" ]
1
2018-03-08T22:44:59.000Z
2018-03-08T22:44:59.000Z
resources/lib/KodiHelper.py
db10bo/plugin.video.netflix
f9e0ac4512836807435cc992ddf90b3cd6c52c17
[ "MIT" ]
null
null
null
resources/lib/KodiHelper.py
db10bo/plugin.video.netflix
f9e0ac4512836807435cc992ddf90b3cd6c52c17
[ "MIT" ]
null
null
null
# pylint: skip-file # -*- coding: utf-8 -*- # Module: KodiHelper # Created on: 13.01.2017 import re import json import base64 import hashlib from os import remove from uuid import uuid4 from urllib import urlencode import copy from Cryptodome import Random from os.path import join, isfile from Cryptodome.Cipher import...
37.91911
965
0.560296
4a072ca7487f0f685df28cbbb1047de2dccadd6e
365
py
Python
findram/users/urls.py
RamParameswaran/findram.dev
ed44c0ef9287906117ba9ee48e447cd8d6a62a7f
[ "MIT" ]
1
2020-11-12T00:41:16.000Z
2020-11-12T00:41:16.000Z
findram/users/urls.py
RamParameswaran/findram.dev
ed44c0ef9287906117ba9ee48e447cd8d6a62a7f
[ "MIT" ]
null
null
null
findram/users/urls.py
RamParameswaran/findram.dev
ed44c0ef9287906117ba9ee48e447cd8d6a62a7f
[ "MIT" ]
null
null
null
from django.urls import path from findram.users.views import ( user_redirect_view, user_update_view, user_detail_view, ) app_name = "users" urlpatterns = [ path("~redirect/", view=user_redirect_view, name="redirect"), path("~update/", view=user_update_view, name="update"), path("<str:username>...
24.333333
66
0.70137
4a072d2484be413220438cc91080d8ef22edf2e6
9,884
py
Python
openclean/function/eval/datatype.py
remram44/openclean-core
8c09c8302cadbb3bb02c959907f91a3ae343f939
[ "BSD-3-Clause" ]
4
2021-04-20T09:06:26.000Z
2021-11-20T20:31:28.000Z
openclean/function/eval/datatype.py
remram44/openclean-core
8c09c8302cadbb3bb02c959907f91a3ae343f939
[ "BSD-3-Clause" ]
14
2021-01-19T19:23:16.000Z
2021-04-28T14:31:03.000Z
openclean/function/eval/datatype.py
remram44/openclean-core
8c09c8302cadbb3bb02c959907f91a3ae343f939
[ "BSD-3-Clause" ]
5
2021-08-24T11:57:21.000Z
2022-03-17T04:39:04.000Z
# This file is part of the Data Cleaning Library (openclean). # # Copyright (C) 2018-2021 New York University. # # openclean is released under the Revised BSD License. See file LICENSE for # full license details. """Predicates that test whether a given value (or list of values) matches a given data type constraint. ""...
39.222222
83
0.640631
4a072d801321f871b5d04dc607b3a5e8752b60d3
454
py
Python
src/training_data/createCSVFile.py
Airthee/faciale_recognition
a045d93747543696e3908604febd87c80a67136a
[ "Unlicense" ]
1
2021-08-08T14:17:44.000Z
2021-08-08T14:17:44.000Z
src/training_data/createCSVFile.py
Airthee/faciale_recognition
a045d93747543696e3908604febd87c80a67136a
[ "Unlicense" ]
null
null
null
src/training_data/createCSVFile.py
Airthee/faciale_recognition
a045d93747543696e3908604febd87c80a67136a
[ "Unlicense" ]
null
null
null
#!/bin/env python3 import os, re, sys # Recover args if len(sys.argv) < 2: raise Exception("Wrong parameters : 1 expected") root = sys.argv[1] # Collect data for (dirpath, dirnames, filenames) in os.walk(root): for filename in filenames: path = os.path.join(dirpath, filename) match = re.search(r'\/s([0-9...
26.705882
87
0.634361
4a072f8aefb0353da2d979aa7f84bcec8a1c0819
21,277
py
Python
event.py
jdthorpe/MCPH
c431bd5d9320d1165cabcba9e201a29f016fa362
[ "MIT" ]
null
null
null
event.py
jdthorpe/MCPH
c431bd5d9320d1165cabcba9e201a29f016fa362
[ "MIT" ]
null
null
null
event.py
jdthorpe/MCPH
c431bd5d9320d1165cabcba9e201a29f016fa362
[ "MIT" ]
null
null
null
""" because timelines have this nice property of keeping track of nested timelines, we need to prevent timline instances from duplicating this calculation. Hence, we need to freeze the timeline when it has been accessed as a child timeline. ============================================== Exa...
33.507087
147
0.536025
4a0730ebeb6cc7e7c4e03ddc2142c918c1281a20
4,449
py
Python
pyclient/zeroos/orchestrator/client/ImageImport.py
5l1v3r1/0-orchestrator
9373a4acb1517ff001df526925c224a7a93b3274
[ "Apache-2.0" ]
3
2017-07-04T14:02:02.000Z
2019-07-06T23:34:08.000Z
pyclient/zeroos/orchestrator/client/ImageImport.py
5l1v3r1/0-orchestrator
9373a4acb1517ff001df526925c224a7a93b3274
[ "Apache-2.0" ]
497
2017-05-31T07:55:40.000Z
2018-01-03T12:10:43.000Z
pyclient/zeroos/orchestrator/client/ImageImport.py
zero-os/0-orchestrator
9373a4acb1517ff001df526925c224a7a93b3274
[ "Apache-2.0" ]
8
2017-06-14T09:45:56.000Z
2021-02-01T18:12:55.000Z
""" Auto-generated class for ImageImport """ from . import client_support class ImageImport(object): """ auto-generated. don't touch. """ @staticmethod def create(diskBlockSize, exportName, imageName, url, encryptionKey=None, exportSnapshot=None, overwrite=None): """ :type diskBl...
35.592
115
0.606428
4a07311883152753983d4b62af0e117bb776345e
4,680
py
Python
exps/example/yolox_pdfall_s.py
johnson7788/YOLOX
0c22a08951f5564122959390f959996517c9a15d
[ "Apache-2.0" ]
null
null
null
exps/example/yolox_pdfall_s.py
johnson7788/YOLOX
0c22a08951f5564122959390f959996517c9a15d
[ "Apache-2.0" ]
null
null
null
exps/example/yolox_pdfall_s.py
johnson7788/YOLOX
0c22a08951f5564122959390f959996517c9a15d
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import os import random import torch import torch.nn as nn import torch.distributed as dist from yolox.exp import Exp as MyExp from yolox.data import get_yolox_datadir class Exp(MyExp): def __init__(self): super(Exp, self).__init__() # 7分类 self.num_classes = 7 se...
32.054795
86
0.561752
4a07314b46fdf68fb9e2706137e2523cbd35448b
13,548
py
Python
taste_fn.py
ekremozturk/collabus
a9aee9414dd1216b560fdb59613fe5b1253d3b98
[ "Apache-2.0" ]
2
2018-04-29T07:53:06.000Z
2019-04-05T07:29:23.000Z
taste_fn.py
ekremozturk/collabus
a9aee9414dd1216b560fdb59613fe5b1253d3b98
[ "Apache-2.0" ]
10
2018-03-14T11:18:35.000Z
2018-04-25T10:48:58.000Z
taste_fn.py
ekremozturk/collabus
a9aee9414dd1216b560fdb59613fe5b1253d3b98
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue May 1 17:12:17 2018 @author: ekrem """ import numpy as np import pandas as pd from collections import defaultdict from math import log, exp n_list = [20, 50, 200] agg_fns = ['avg', 'normalized_avg', 'least_misery', 'median', 'weighted_avg'] #=======...
31.433875
123
0.585105
4a073195b8097ce8952ade9e75696d376835a761
14,259
py
Python
protoattend/main_protoattend.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-02-25T05:34:44.000Z
2022-02-25T05:34:44.000Z
protoattend/main_protoattend.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
protoattend/main_protoattend.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
41.330435
121
0.72193
4a0731d52f20749535f839bab1b163a61ac0653f
3,485
py
Python
organize/filters/created.py
awesome-archive/organize
911eeda7aa0c116a042deee2dadee04353459ed2
[ "MIT" ]
1
2020-10-01T05:51:33.000Z
2020-10-01T05:51:33.000Z
organize/filters/created.py
davidolrik/organize
b6581531bcdbdb6c0833472b683cbbeaa513f595
[ "MIT" ]
null
null
null
organize/filters/created.py
davidolrik/organize
b6581531bcdbdb6c0833472b683cbbeaa513f595
[ "MIT" ]
null
null
null
import sys from datetime import datetime, timedelta from .filter import Filter class Created(Filter): """ Matches files by created date :param int days: specify number of days :param int hours: specify number of hours :param int minutes: specify number of minutes :...
31.681818
86
0.537446
4a07328c29c609059c1378df9753d571f86a9c50
111
py
Python
09_slurm/python_example/matrix_inverse.py
quantumiracle/hpc_beginning_workshop
1bd456611611beafe7bd360306a92467b0397737
[ "MIT" ]
96
2017-04-12T18:09:23.000Z
2022-02-15T17:57:54.000Z
09_slurm/python_example/matrix_inverse.py
quantumiracle/hpc_beginning_workshop
1bd456611611beafe7bd360306a92467b0397737
[ "MIT" ]
1
2019-11-07T19:42:52.000Z
2019-11-07T22:01:14.000Z
09_slurm/python_example/matrix_inverse.py
quantumiracle/hpc_beginning_workshop
1bd456611611beafe7bd360306a92467b0397737
[ "MIT" ]
39
2019-09-16T21:10:59.000Z
2022-02-15T18:00:29.000Z
import numpy as np N = 3 X = np.random.randn(N, N) print("X =\n", X) print("Inverse(X) =\n", np.linalg.inv(X))
18.5
41
0.603604
4a0733018049df7ff6e1a029a7730ac995321a01
12,143
py
Python
test/forward_backward_compatibility/check_forward_backward_compatibility.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
test/forward_backward_compatibility/check_forward_backward_compatibility.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
test/forward_backward_compatibility/check_forward_backward_compatibility.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
import argparse import datetime import re import sys import warnings from collections import defaultdict import torch from torch._C import parse_schema # The date specifies how long the allowlist exclusion should apply to. # # - If we NEVER give BC guarantee for an operator, you can put the # date arbitrarily ...
40.61204
102
0.641851
4a073366ecf8c575bdd0d2d9fd1b7c93121fc876
455
py
Python
TimeWrapper_JE/venv/Lib/site-packages/requests/__version__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
227
2021-01-20T05:34:32.000Z
2022-03-29T12:43:05.000Z
TimeWrapper_JE/venv/Lib/site-packages/requests/__version__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
55
2020-09-07T02:12:51.000Z
2022-03-23T02:37:42.000Z
TimeWrapper_JE/venv/Lib/site-packages/requests/__version__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
239
2021-01-28T02:59:53.000Z
2022-03-29T08:02:17.000Z
# .-. .-. .-. . . .-. .-. .-. .-. # |( |- |.| | | |- `-. | `-. # ' ' `-' `-`.`-' `-' `-' ' `-' __title__ = 'requests' __description__ = 'Python HTTP for Humans.' __url__ = 'https://requests.readthedocs.io' __version__ = '2.25.1' __build__ = 0x022501 __author__ = 'Kenneth Reitz' __author_email__ = 'me@...
30.333333
47
0.562637
4a0733a07d206794eb8eca2795fe6638b4cacf06
1,429
py
Python
sa/migrations/0003_task_schedule.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
sa/migrations/0003_task_schedule.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
sa/migrations/0003_task_schedule.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # task schedule # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ----------------------------------------------------------------...
42.029412
97
0.522743
4a0733bd9f95c6858b8cf018a52a31505b0363f7
1,181
py
Python
py_cord_components/ext/filters.py
spacedev-official/discord.py-components
14a3ccc727a332ea37147f5278f28209c699e3d2
[ "MIT" ]
3
2021-12-05T08:39:26.000Z
2022-02-17T23:54:53.000Z
py_cord_components/ext/filters.py
spacedev-official/discord.py-components
14a3ccc727a332ea37147f5278f28209c699e3d2
[ "MIT" ]
null
null
null
py_cord_components/ext/filters.py
spacedev-official/discord.py-components
14a3ccc727a332ea37147f5278f28209c699e3d2
[ "MIT" ]
2
2022-01-11T23:27:26.000Z
2022-02-22T22:29:08.000Z
from discord import Message, Guild, TextChannel, User from py_cord_components.interaction import Interaction from py_cord_components.component import Component, Button, SelectOption __all__ = ( "message_filter", "component_filter", "guild_filter", "channel_filter", "user_filter", ) def message_...
22.711538
72
0.719729
4a0735c1199fb4345ee2686ed963b1e61f4c3bff
2,627
py
Python
mastercardmoneysend/cardeligibility.py
candeias/mastercard_moneysend_py3
c7b52b406b02a1d4fd98ce2dbd6ce44a9e668492
[ "MIT" ]
1
2019-02-06T22:06:16.000Z
2019-02-06T22:06:16.000Z
mastercardmoneysend/cardeligibility.py
candeias/mastercard_moneysend_py3
c7b52b406b02a1d4fd98ce2dbd6ce44a9e668492
[ "MIT" ]
null
null
null
mastercardmoneysend/cardeligibility.py
candeias/mastercard_moneysend_py3
c7b52b406b02a1d4fd98ce2dbd6ce44a9e668492
[ "MIT" ]
null
null
null
# # Copyright (c) 2016 MasterCard International Incorporated # 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 code must retain the above copyright notice, this list of...
37
152
0.790636
4a0738613bb73203a19360408dc8af7525e7c8cf
2,132
py
Python
Secao 10 - Redes neurais artificiais/keras_census.py
flaviofontes29/Machine-Learning-e-Data-Science-com-Python
7b8188b6e7003426ae3a6d46d91d61494135a2b7
[ "MIT" ]
null
null
null
Secao 10 - Redes neurais artificiais/keras_census.py
flaviofontes29/Machine-Learning-e-Data-Science-com-Python
7b8188b6e7003426ae3a6d46d91d61494135a2b7
[ "MIT" ]
null
null
null
Secao 10 - Redes neurais artificiais/keras_census.py
flaviofontes29/Machine-Learning-e-Data-Science-com-Python
7b8188b6e7003426ae3a6d46d91d61494135a2b7
[ "MIT" ]
null
null
null
import pandas as pd base = pd.read_csv('census.csv') previsores = base.iloc[:, 0:14].values classe = base.iloc[:, 14].values from sklearn.preprocessing import LabelEncoder, OneHotEncoder labelencoder_previsores = LabelEncoder() previsores[:, 1] = labelencoder_previsores.fit_transform(previsores[:, 1]...
45.361702
145
0.789869
4a07388dba409f6b03e711cb1f7e33d18c3a65b1
8,612
py
Python
test/test_images.py
g--o/Lavinder
a31092c452be769b7aeb6a1a80a6e57cc4625829
[ "MIT" ]
1
2019-06-18T07:44:04.000Z
2019-06-18T07:44:04.000Z
test/test_images.py
g--o/Lavinder
a31092c452be769b7aeb6a1a80a6e57cc4625829
[ "MIT" ]
22
2019-02-23T23:56:05.000Z
2019-09-04T21:35:24.000Z
test/test_images.py
g--o/Lavinder
a31092c452be769b7aeb6a1a80a6e57cc4625829
[ "MIT" ]
4
2019-02-22T23:26:00.000Z
2022-01-03T17:46:54.000Z
""" test_images.py contains unittests for liblavinder.images.Img and its supporting code. """ import pytest import liblavinder.images as images import cairocffi import os from os import path from glob import glob from collections import OrderedDict TEST_DIR = path.dirname(os.path.abspath(__file__)) DATA_DIR = path.joi...
32.37594
71
0.639921
4a0738a624b479ef3a5fe1d150426f95a30a5156
800
py
Python
benchmarks/versionedhdf5file.py
asmeurer/versioned-hdf5
c5c661b920a2d38e440da4c5ff0a6148379d93d2
[ "BSD-3-Clause" ]
46
2020-06-12T21:44:17.000Z
2022-02-28T15:26:19.000Z
benchmarks/versionedhdf5file.py
asmeurer/versioned-hdf5
c5c661b920a2d38e440da4c5ff0a6148379d93d2
[ "BSD-3-Clause" ]
135
2020-06-12T15:48:05.000Z
2022-03-29T21:54:45.000Z
benchmarks/versionedhdf5file.py
asmeurer/versioned-hdf5
c5c661b920a2d38e440da4c5ff0a6148379d93d2
[ "BSD-3-Clause" ]
9
2021-04-23T03:58:13.000Z
2022-03-19T19:30:50.000Z
import h5py import numpy as np from versioned_hdf5 import VersionedHDF5File class TimeDatetimeAccess: def setup(self): with h5py.File('foo.h5', 'w') as f: vf = VersionedHDF5File(f) with vf.stage_version('0') as sv: sv.create_dataset('bar', data=np.random.rand(10)) ...
33.333333
70
0.5625
4a073928d9941f359edd22cf84083a110eec0789
12,067
py
Python
searchlight-6.0.0/searchlight/common/policies/resource.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
searchlight-6.0.0/searchlight/common/policies/resource.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
searchlight-6.0.0/searchlight/common/policies/resource.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
27.425
78
0.391978
4a07396ab932e4250a64e367bc840016a9a408f1
1,381
py
Python
scripts/camera.py
Irvingao/paddle_inference_ros
926b1f2e16c2cd3b00ad8b9928f04297887befc0
[ "MIT" ]
2
2021-08-14T06:15:09.000Z
2021-12-29T11:20:27.000Z
scripts/camera.py
Irvingao/paddle_inference_ros
926b1f2e16c2cd3b00ad8b9928f04297887befc0
[ "MIT" ]
2
2021-08-15T11:39:17.000Z
2021-09-04T15:44:30.000Z
scripts/camera.py
Irvingao/paddle_inference_ros
926b1f2e16c2cd3b00ad8b9928f04297887befc0
[ "MIT" ]
1
2021-08-15T13:02:07.000Z
2021-08-15T13:02:07.000Z
#!/usr/bin/env python3 # coding:utf-8 import cv2 import numpy as np import rospy from std_msgs.msg import Header from sensor_msgs.msg import Image from cv_bridge import CvBridge , CvBridgeError import time if __name__=="__main__": import sys print(sys.version) # 查看python版本 capture = cv2.VideoCapture(0) #...
32.880952
83
0.614772
4a0739ab428e6584fe19555f36d3bf35b2ed13fe
1,511
py
Python
mimicro/views.py
pokidovea/py-mimicro
f80db25e15170bfa6bf58e96d978043205b3a423
[ "Apache-2.0" ]
null
null
null
mimicro/views.py
pokidovea/py-mimicro
f80db25e15170bfa6bf58e96d978043205b3a423
[ "Apache-2.0" ]
null
null
null
mimicro/views.py
pokidovea/py-mimicro
f80db25e15170bfa6bf58e96d978043205b3a423
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Callable from aiohttp import web from .store import overrides_storage, requests_storage async def add_override(request): data = await request.json() await overrides_storage.add(**data) return web.json_response('OK') async def remove_override(request): data = await reques...
24.770492
98
0.630046
4a073a9d3f11e74966e99c9401bb3915b6d673fc
5,387
py
Python
yt/visualization/volume_rendering/utils.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/visualization/volume_rendering/utils.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/visualization/volume_rendering/utils.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
import numpy as np from yt.data_objects.data_containers import YTSelectionContainer3D from yt.data_objects.static_output import Dataset from yt.utilities.lib import bounding_volume_hierarchy from yt.utilities.lib.image_samplers import ( InterpolatedProjectionSampler, ProjectionSampler, VolumeRenderSampler,...
34.094937
79
0.641173
4a073b36a55d86b4c4f501eb9b6ce83f9000ecab
7,651
py
Python
scrips/porphyrin/porphyrin_library.py
lonelu/Metalprot
e51bee472c975aa171bdb6ee426a07ca69f110ee
[ "MIT" ]
null
null
null
scrips/porphyrin/porphyrin_library.py
lonelu/Metalprot
e51bee472c975aa171bdb6ee426a07ca69f110ee
[ "MIT" ]
null
null
null
scrips/porphyrin/porphyrin_library.py
lonelu/Metalprot
e51bee472c975aa171bdb6ee426a07ca69f110ee
[ "MIT" ]
null
null
null
import prody as pr import numpy as np import os from metalprot import ligand_database ### Default selection ligands = ['HEM', 'HNI', 'COH', 'HEB', 'FDE', 'ZNH', 'HEC', 'HEA', 'HAS', 'MNH', 'MNR'] ligand_sel = 'resname ' + ' '.join(ligands) metal_sel = 'name NI MN ZN CO CU MG FE' def extract_core(pdb, extend ...
31.101626
158
0.62567
4a073ba84b8d2c5ef58afc4d7633092fafe9203b
239
py
Python
GUI/main.py
JasonJarvan/EAFT
5e252e2d70b76f7a8a015fea4d8840de85d78b88
[ "MIT" ]
1
2021-02-02T09:18:20.000Z
2021-02-02T09:18:20.000Z
GUI/main.py
JasonJarvan/EAFT
5e252e2d70b76f7a8a015fea4d8840de85d78b88
[ "MIT" ]
null
null
null
GUI/main.py
JasonJarvan/EAFT
5e252e2d70b76f7a8a015fea4d8840de85d78b88
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication from GUI import Window if __name__=='__main__': app = QApplication(sys.argv) window = Window() window.show()#transfer the window in the GUI sys.exit(app.exec_())
14.058824
48
0.694561
4a073bae956a33e6e55d903524f2bbd7ca9c777f
1,112
py
Python
backend/apps/api/v1/about/views.py
skiv23/portfolio
3c1a7b0cf0fb67148ce4b0491132e3a01375c9b0
[ "MIT" ]
null
null
null
backend/apps/api/v1/about/views.py
skiv23/portfolio
3c1a7b0cf0fb67148ce4b0491132e3a01375c9b0
[ "MIT" ]
null
null
null
backend/apps/api/v1/about/views.py
skiv23/portfolio
3c1a7b0cf0fb67148ce4b0491132e3a01375c9b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework import viewsets from rest_framework import response from apps.about import models from . import serializers class AboutViewSet(viewsets.ModelViewSet): queryset = models.About.objects.all() serializer_class = serializers.AboutSerializer def list(self, *args, ...
27.121951
64
0.763489
4a073be8e2ce9b703d9bc6e22e7d1e44e61548db
1,833
py
Python
riker/permission/simple.py
A-UNDERSCORE-D/riker
5257d6113a614e54696068b758275e59f71ddf51
[ "0BSD" ]
null
null
null
riker/permission/simple.py
A-UNDERSCORE-D/riker
5257d6113a614e54696068b758275e59f71ddf51
[ "0BSD" ]
null
null
null
riker/permission/simple.py
A-UNDERSCORE-D/riker
5257d6113a614e54696068b758275e59f71ddf51
[ "0BSD" ]
null
null
null
from __future__ import annotations from fnmatch import fnmatch from irctokens.line import Line from .base import BasePermissionHandler # spell-checker: words oper class SimplePermissionHandler(BasePermissionHandler): """SimplePermissionHandler implements a mask and oper based permission handler.""" def _...
28.640625
86
0.612111
4a073c4f9ebc2a167dff93d7740b930ef91ce28f
964
py
Python
aysa_cli/__init__.py
alejandrobernardis/aysa-cli
20163ea91b837d06be829617f1a0334748edbe64
[ "MIT" ]
1
2019-10-30T16:41:21.000Z
2019-10-30T16:41:21.000Z
aysa_cli/__init__.py
alejandrobernardis/aysa-cli
20163ea91b837d06be829617f1a0334748edbe64
[ "MIT" ]
null
null
null
aysa_cli/__init__.py
alejandrobernardis/aysa-cli
20163ea91b837d06be829617f1a0334748edbe64
[ "MIT" ]
1
2021-06-09T03:58:23.000Z
2021-06-09T03:58:23.000Z
# Author: Alejandro M. Bernardis # Email: alejandro.bernardis at gmail.com # Created: 2019/10/12 # ~ __all__ = [ '__title__', '__summary__', '__uri__', '__version__', '__author__', '__email__', '__license__', '__copyright__', '__commands__', 'SEGMENT', 'VERSION' ] # version...
27.542857
78
0.686722
4a073c6156db5e9c8cba76e5d20317e5fa208011
34,710
py
Python
datasets/irs_990/irs_990_2014/irs_990_2014_dag.py
shanecglass/public-datasets-pipelines
b02f47a6d617a6864c78f56ce8247ccaceee8695
[ "Apache-2.0" ]
2
2022-02-27T02:31:35.000Z
2022-02-27T02:32:49.000Z
datasets/irs_990/irs_990_2014/irs_990_2014_dag.py
shanecglass/public-datasets-pipelines
b02f47a6d617a6864c78f56ce8247ccaceee8695
[ "Apache-2.0" ]
null
null
null
datasets/irs_990/irs_990_2014/irs_990_2014_dag.py
shanecglass/public-datasets-pipelines
b02f47a6d617a6864c78f56ce8247ccaceee8695
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
104.548193
8,442
0.625209
4a073d6b462e27a8f91570c55f5687eea3e8dc55
660
py
Python
dev/Tools/Python/2.7.12/windows/Scripts/rst2html.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Tools/Python/2.7.12/windows/Scripts/rst2html.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
null
null
null
dev/Tools/Python/2.7.12/windows/Scripts/rst2html.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
#!C:\workspace\lyengine\branches\testtech\dev\Tools\Python\2.7.12\windows\python.exe # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML. """...
27.5
84
0.742424
4a073ebbe3524db31f6832b3c16b904302e89b76
21,445
py
Python
lib/unparse.py
GRAYgoose124/mushishi
6dd4512908e39bf6506be023d1834611f58e894b
[ "MIT" ]
2
2018-10-19T07:47:19.000Z
2020-02-11T05:03:11.000Z
lib/unparse.py
GRAYgoose124/mushishi
6dd4512908e39bf6506be023d1834611f58e894b
[ "MIT" ]
null
null
null
lib/unparse.py
GRAYgoose124/mushishi
6dd4512908e39bf6506be023d1834611f58e894b
[ "MIT" ]
null
null
null
# modified from unparse from cpython from ast import NodeVisitor, Name, Constant, Module, Tuple import sys from contextlib import contextmanager, nullcontext from _ast import * # Large float and imaginary literals get turned into infinities in the AST. # We unparse those infinities to INFSTR. _INFSTR = "1e" + repr(sys....
30.811782
90
0.521753
4a073fbaa39a93365ae9c9b53ddf528439e53f98
648
py
Python
python/group/send_group_message.py
StevenMcguffin/examples
8ed7cd80c2b70280b274803dd84e9f99403dac9f
[ "MIT" ]
1
2019-09-25T08:48:46.000Z
2019-09-25T08:48:46.000Z
python/group/send_group_message.py
StevenMcguffin/examples
8ed7cd80c2b70280b274803dd84e9f99403dac9f
[ "MIT" ]
4
2019-09-25T02:21:32.000Z
2022-02-16T06:52:15.000Z
python/group/send_group_message.py
StevenMcguffin/examples
8ed7cd80c2b70280b274803dd84e9f99403dac9f
[ "MIT" ]
9
2019-05-23T06:46:51.000Z
2020-12-23T08:21:49.000Z
import requests import configparser import json import sys import os.path libdir = os.path.dirname(__file__) sys.path.append(os.path.split(libdir)[0]) from auth import auth config = configparser.ConfigParser() config.read('config.ini') apiKey = config['AUTH']['ApiKey'] apiSecret = config['AUTH']['ApiSecret'] if __n...
28.173913
81
0.71142
4a0740052bfc706a694329fc27f934dc3140e47f
5,192
py
Python
mayan/apps/events/views/subscription_views.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/events/views/subscription_views.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/events/views/subscription_views.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
114
2015-01-08T20:21:05.000Z
2018-12-10T19:07:53.000Z
from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.db import models from django.http import Http404 from django.shortcuts import get_object_or_404 from django.utils.translation import ugettext_lazy as _ from mayan.apps.acls.models import AccessControlList from ma...
31.08982
78
0.601888
4a0741e48e2f44532d800e8fcef2db9bc5151c71
211
py
Python
nipype/utils/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/utils/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/utils/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from .config import NUMPY_MMAP from .onetime import OneTimeProperty, setattr_on_read from .tmpdirs import TemporaryDirectory, InTemporaryDirectory
30.142857
61
0.819905
4a0741ed06f83ab3883b440c1cc6fec1e19d41e7
5,239
py
Python
ACME-oneM2M-CSE-master/tests/testCIN.py
Romsi-Occi/Trash-tracker
4490fe181b4e3bdaa8575e83b87ac2d12472a9c7
[ "BSD-3-Clause" ]
null
null
null
ACME-oneM2M-CSE-master/tests/testCIN.py
Romsi-Occi/Trash-tracker
4490fe181b4e3bdaa8575e83b87ac2d12472a9c7
[ "BSD-3-Clause" ]
null
null
null
ACME-oneM2M-CSE-master/tests/testCIN.py
Romsi-Occi/Trash-tracker
4490fe181b4e3bdaa8575e83b87ac2d12472a9c7
[ "BSD-3-Clause" ]
null
null
null
# # testCIN.py # # (c) 2020 by Andreas Kraft # License: BSD 3-Clause License. See the LICENSE file for further details. # # Unit tests for CIN functionality # import unittest, sys sys.path.append('../acme') from typing import Tuple from Constants import Constants as C from Types import ResourceTypes as T, ResponseCode...
31
108
0.675511
4a07425e938ebb62b10d4051454fc600bd43395f
1,227
py
Python
messagebox/tests/test_models.py
HelloMelanieC/FiveUp
ab97d311f163b09146fe330e4360d8e75d769f95
[ "MIT" ]
12
2017-09-10T01:43:42.000Z
2020-09-20T01:17:20.000Z
messagebox/tests/test_models.py
HelloMelanieC/FiveUp
ab97d311f163b09146fe330e4360d8e75d769f95
[ "MIT" ]
22
2016-12-26T21:46:10.000Z
2022-02-10T08:01:52.000Z
messagebox/tests/test_models.py
HelloMelanieC/FiveUp
ab97d311f163b09146fe330e4360d8e75d769f95
[ "MIT" ]
4
2017-08-24T16:01:37.000Z
2019-02-14T23:50:17.000Z
import datetime from django.test import TestCase from freezegun import freeze_time from fuauth.models import User from ..models import Message class TestMessageBox(TestCase): """ Basic tests for the message box. """ @freeze_time("2019-12-28 12:31") def setUp(self): self.noof = User.obj...
27.886364
88
0.624287
4a0743924ed227b6a10b8b7181cb9500864bad84
358
py
Python
CellCulturePy/Plotting/__init__.py
Douwe-Spaanderman/Broad_DJ_AI
d151b35d2c05b7ca12653abca4f73cf438399b0f
[ "MIT" ]
null
null
null
CellCulturePy/Plotting/__init__.py
Douwe-Spaanderman/Broad_DJ_AI
d151b35d2c05b7ca12653abca4f73cf438399b0f
[ "MIT" ]
null
null
null
CellCulturePy/Plotting/__init__.py
Douwe-Spaanderman/Broad_DJ_AI
d151b35d2c05b7ca12653abca4f73cf438399b0f
[ "MIT" ]
1
2022-03-14T20:07:15.000Z
2022-03-14T20:07:15.000Z
#from .Feature_importance import NOG NIKS from .heatmap_media_matrix import heatmap_media_matrix from .maf_info import maf_info from .Prediction_plotting import Prediction_plotting # if somebody does "from somepackage import *", this is what they will # be able to access: __all__ = [ 'heatmap_media_matrix', 'm...
29.833333
70
0.782123
4a07479471734dbfc5ffc559c5d3fe01d657874d
946
py
Python
thefuck/rules/gradle_no_task.py
Ishaanahuja7/thefuck
c719712b6256f4add4e65e8d4369b36d73342b48
[ "MIT" ]
75,504
2015-04-08T18:22:19.000Z
2022-03-31T23:59:52.000Z
thefuck/rules/gradle_no_task.py
Ishaanahuja7/thefuck
c719712b6256f4add4e65e8d4369b36d73342b48
[ "MIT" ]
1,160
2015-04-17T18:47:12.000Z
2022-03-30T20:42:26.000Z
thefuck/rules/gradle_no_task.py
Ishaanahuja7/thefuck
c719712b6256f4add4e65e8d4369b36d73342b48
[ "MIT" ]
4,399
2015-04-17T18:36:04.000Z
2022-03-31T07:01:03.000Z
import re from subprocess import Popen, PIPE from thefuck.utils import for_app, eager, replace_command regex = re.compile(r"Task '(.*)' (is ambiguous|not found)") @for_app('gradle', 'gradlew') def match(command): return regex.findall(command.output) @eager def _get_all_tasks(gradle): proc = Popen([gradle, ...
27.028571
88
0.658562
4a0747bbf3e2fbe152a310b5e641c1abc0c63176
246
py
Python
goodtechgigs/profiles/urls.py
aschn/goodtechgigs
f2f74e28a5a21e826ded0f09a6029fe6a24d228b
[ "Apache-2.0" ]
null
null
null
goodtechgigs/profiles/urls.py
aschn/goodtechgigs
f2f74e28a5a21e826ded0f09a6029fe6a24d228b
[ "Apache-2.0" ]
null
null
null
goodtechgigs/profiles/urls.py
aschn/goodtechgigs
f2f74e28a5a21e826ded0f09a6029fe6a24d228b
[ "Apache-2.0" ]
null
null
null
from rest_framework import routers from profiles.views import GigSeekerViewSet, GigPosterViewSet router = routers.DefaultRouter() router.register('orgs', GigPosterViewSet) router.register('helpers', GigSeekerViewSet) urlpatterns = router.urls
24.6
61
0.829268
4a0748dea7f67bf0f6d7a42a0b3100cd97779db9
16,176
py
Python
src/devapp/spec/fs_components.py
AXGKl/devapps
249ff369de512dcde5fdc83e6d461f82ad6c667f
[ "BSD-2-Clause" ]
null
null
null
src/devapp/spec/fs_components.py
AXGKl/devapps
249ff369de512dcde5fdc83e6d461f82ad6c667f
[ "BSD-2-Clause" ]
null
null
null
src/devapp/spec/fs_components.py
AXGKl/devapps
249ff369de512dcde5fdc83e6d461f82ad6c667f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ # Spec Building ## Dev ### Frequent abbrs: - rt: runtime (e.g. systemd, docker, k8s,) - cls: A class in a spec python file, denoting a config entity - fid: Full id of an item (path in the spec : ['Wifi', 'NB01', 'Redis'] """ # stream of specs - from anywhere, we will run as daemon some day: ...
32.095238
92
0.542223
4a0749299dfe22089797241ace12d544de46c8e1
32,735
py
Python
payment_system/models.py
OlexandrTopuzov/Data_converter
0ac2319ccaae790af35ab2202724c65d83d32ecc
[ "MIT" ]
null
null
null
payment_system/models.py
OlexandrTopuzov/Data_converter
0ac2319ccaae790af35ab2202724c65d83d32ecc
[ "MIT" ]
null
null
null
payment_system/models.py
OlexandrTopuzov/Data_converter
0ac2319ccaae790af35ab2202724c65d83d32ecc
[ "MIT" ]
null
null
null
import io import os import uuid from calendar import monthrange from django.conf import settings from django.core.exceptions import ValidationError from django.db import models from django.template.loader import render_to_string from django.urls import reverse from django.utils import timezone, translation from django...
36.988701
121
0.634092
4a074a13308b6162ce83bbbbb038a478dd4a44ac
5,943
py
Python
data_vn.py
HariWu1995/WaveNet4Vietnamese
151b29f553cf8b17585f1d7c8374a035e9e958e3
[ "Apache-2.0" ]
null
null
null
data_vn.py
HariWu1995/WaveNet4Vietnamese
151b29f553cf8b17585f1d7c8374a035e9e958e3
[ "Apache-2.0" ]
null
null
null
data_vn.py
HariWu1995/WaveNet4Vietnamese
151b29f553cf8b17585f1d7c8374a035e9e958e3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2 # -*- coding: utf-8 -*- import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import sugartensor as tf import numpy as np import re as regex # REGular EXpression import csv, string, codecs, random, librosa, time from collections import Counter from six.moves import cPickle, reduce, map import sys tr...
24.557851
117
0.590443
4a074a679c554390585d0307ad19621a1d2bbeb2
2,129
py
Python
bitmovin_api_sdk/notifications/webhooks/encoding/encodings/encodings_api.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/notifications/webhooks/encoding/encodings/encodings_api.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/notifications/webhooks/encoding/encodings/encodings_api.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
# coding: utf-8 from __future__ import absolute_import from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase from bitmovin_api_sdk.common.poscheck import poscheck_except from bitmovin_api_sdk.notifications.webhooks.encoding.encodings.finished.finished_api import FinishedApi from bitmovin_api_sdk.notifica...
35.483333
152
0.699389
4a074abe9db7bb216ce1ba36f59967adc84ddf85
752
py
Python
test/vanilla/Expected/AcceptanceTests/Header/header/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/Expected/AcceptanceTests/Header/header/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/Expected/AcceptanceTests/Header/header/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "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 ...
35.809524
94
0.628989
4a074bfef11b57f08b8b25039833407d70aac910
630
py
Python
nerpy/__init__.py
ConstantineLignos/nerpy
cfc5b0f76c3f7105f2b881204c10a53c063c9d14
[ "MIT" ]
1
2020-05-12T15:19:10.000Z
2020-05-12T15:19:10.000Z
nerpy/__init__.py
ConstantineLignos/nerpy
cfc5b0f76c3f7105f2b881204c10a53c063c9d14
[ "MIT" ]
null
null
null
nerpy/__init__.py
ConstantineLignos/nerpy
cfc5b0f76c3f7105f2b881204c10a53c063c9d14
[ "MIT" ]
null
null
null
from nerpy.annotator import MentionAnnotator, SequenceMentionAnnotator, Trainable from nerpy.document import ( Document, DocumentBuilder, EntityType, Mention, MentionType, Sentence, Token, ) from nerpy.encoding import ( BILOU, BIO, BIOES, BIOU, BMES, IO, IOB, ...
23.333333
81
0.747619
4a074e26e72641cb9f633ca38b240e32a3f7565e
1,738
py
Python
src/main/python/docs.py
bosea/outbrain-click-prediction
f6e46f31c8dc7294edacafcecba1ba4824272353
[ "Apache-2.0" ]
null
null
null
src/main/python/docs.py
bosea/outbrain-click-prediction
f6e46f31c8dc7294edacafcecba1ba4824272353
[ "Apache-2.0" ]
null
null
null
src/main/python/docs.py
bosea/outbrain-click-prediction
f6e46f31c8dc7294edacafcecba1ba4824272353
[ "Apache-2.0" ]
null
null
null
#/bin/python f1_in = 'promoted_content.csv' f2_in = 'documents_meta.csv' f3_in = 'documents_categories.csv' f4_in = 'documents_topics.csv' f5_in = 'documents_entities.csv' f1 = open(f1_in, 'r') f2 = open(f2_in, 'r') f3 = open(f1_in, 'r') f4 = open(f1_in, 'r') f5 = open(f1_in, 'r') doc_id_f1 = {} doc_id_f2 = {} doc_i...
24.138889
60
0.640391
4a074e59b7a64d86da935acd5d2cf7c78f566381
39,138
py
Python
codalab/lib/worksheet_util.py
Matt-F-Wu/codalab_cl
e08e82afbc3d478c52a811065701cf53c9d3891e
[ "Apache-2.0" ]
null
null
null
codalab/lib/worksheet_util.py
Matt-F-Wu/codalab_cl
e08e82afbc3d478c52a811065701cf53c9d3891e
[ "Apache-2.0" ]
null
null
null
codalab/lib/worksheet_util.py
Matt-F-Wu/codalab_cl
e08e82afbc3d478c52a811065701cf53c9d3891e
[ "Apache-2.0" ]
null
null
null
""" worksheet_util contains the following public functions: - request_lines: pops up an editor to allow for full-text editing of a worksheet. - parse_worksheet_form: takes those lines and generates a set of items (triples) - interpret_items: takes those triples and returns a structure that interprets all the directives...
38.673913
120
0.557847
4a074f00ef256ecd533157b2779898086093e0a6
3,400
py
Python
cinder/scheduler/driver.py
cloudbau/cinder
3179f2f42ae940a08b910e326a809556689864d8
[ "Apache-2.0" ]
null
null
null
cinder/scheduler/driver.py
cloudbau/cinder
3179f2f42ae940a08b910e326a809556689864d8
[ "Apache-2.0" ]
null
null
null
cinder/scheduler/driver.py
cloudbau/cinder
3179f2f42ae940a08b910e326a809556689864d8
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 OpenStack Foundation # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you m...
38.202247
79
0.694706
4a07510d24fd3b86d4c008667e314b5471238c0e
2,515
py
Python
magz/uroot2d.py
bru32/magz
541e0a5774d51251ce25bf326cdce0c615f347c3
[ "MIT" ]
null
null
null
magz/uroot2d.py
bru32/magz
541e0a5774d51251ce25bf326cdce0c615f347c3
[ "MIT" ]
null
null
null
magz/uroot2d.py
bru32/magz
541e0a5774d51251ce25bf326cdce0c615f347c3
[ "MIT" ]
null
null
null
""" 2D Root Finder. Function f(x,y) must return tuple of 2 error. Bruce Wernick 10 June 2021 """ import sys from const import EPS, TINY class RootFinder(object): maxi = 96 tol = 1e-6 def __init__(self, f): self.f = f self.its = 0 def djac(self, x, y): 'jacobian' h = 3.4...
25.663265
81
0.47833
4a07515b8729ea054599b384f31a45be4062bd7a
20,173
py
Python
aiohttp/web_request.py
Mariatta/aiohttp
78d08ce8f629f6ce3d1b3f0758b797c085be944c
[ "Apache-2.0" ]
1
2021-01-03T00:58:07.000Z
2021-01-03T00:58:07.000Z
aiohttp/web_request.py
Mariatta/aiohttp
78d08ce8f629f6ce3d1b3f0758b797c085be944c
[ "Apache-2.0" ]
null
null
null
aiohttp/web_request.py
Mariatta/aiohttp
78d08ce8f629f6ce3d1b3f0758b797c085be944c
[ "Apache-2.0" ]
null
null
null
import asyncio import collections import datetime import json import re import socket import string import tempfile import types import warnings from email.utils import parsedate from http.cookies import SimpleCookie from types import MappingProxyType from urllib.parse import parse_qsl from multidict import CIMultiDic...
32.020635
79
0.554801
4a0751d39869a0f1b15eb964d0b5b9ed433f6300
7,027
py
Python
setigen/voltage/polyphase_filterbank.py
bbrzycki/setigen
3106c32a629c76c71768ea02b7661474e1cf7ff6
[ "MIT" ]
21
2019-01-25T20:44:56.000Z
2022-03-16T23:30:26.000Z
setigen/voltage/polyphase_filterbank.py
bbrzycki/setigen
3106c32a629c76c71768ea02b7661474e1cf7ff6
[ "MIT" ]
7
2020-07-15T08:54:27.000Z
2021-09-24T03:57:30.000Z
setigen/voltage/polyphase_filterbank.py
bbrzycki/setigen
3106c32a629c76c71768ea02b7661474e1cf7ff6
[ "MIT" ]
10
2020-03-17T17:59:26.000Z
2022-02-01T08:33:11.000Z
import os GPU_FLAG = os.getenv('SETIGEN_ENABLE_GPU', '0') if GPU_FLAG == '1': try: import cupy as xp except ImportError: import numpy as xp else: import numpy as xp import numpy as np import scipy.signal import time class PolyphaseFilterbank(object): """ Implement a polyphase...
34.446078
99
0.616052
4a0752779d53d553966c524543bf7caba54d12c6
2,413
py
Python
lib/training/schemes/molhiv/scheme.py
shamim-hussain/egt_pytorch
1e243d6c94c572bde6c5d1456c2152e5852091e7
[ "MIT" ]
10
2022-02-02T05:30:17.000Z
2022-03-31T12:33:57.000Z
lib/training/schemes/molhiv/scheme.py
shamim-hussain/egt_pytorch
1e243d6c94c572bde6c5d1456c2152e5852091e7
[ "MIT" ]
1
2022-03-30T16:11:22.000Z
2022-03-31T13:35:41.000Z
lib/training/schemes/molhiv/scheme.py
shamim-hussain/egt_pytorch
1e243d6c94c572bde6c5d1456c2152e5852091e7
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from lib.training.training import cached_property from ..egt_mol_training import EGT_MOL_Training from lib.models.molhiv import EGT_MOLHIV from lib.data.molhiv import MOLHIVStructuralSVDGraphDataset class MOLHIV_Training(EGT_MOL_Training): def get_default_config(self)...
34.471429
87
0.630336
4a0753f99f81c3c1f07cedc5b0394aa5c57b4830
1,389
py
Python
ecg_classification/__init__.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
3
2021-12-07T17:08:00.000Z
2021-12-08T23:16:57.000Z
ecg_classification/__init__.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
1
2021-12-09T00:33:41.000Z
2021-12-09T15:59:48.000Z
ecg_classification/__init__.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
1
2021-07-30T14:53:48.000Z
2021-07-30T14:53:48.000Z
# Import dataset class from ecg_classification.dataset import PhysioNetDataset, Icentia11kDataset, icentia11k_dataset_collate_fn # Import loss functions from ecg_classification.loss import SoftmaxFocalLoss, SoftmaxCrossEntropyLoss # Import models from ecg_classification.model import ECGCNN, ECGAttNet # Import model con...
53.423077
117
0.87185
4a0755fb333db62c8ae03b95106e967117bb6e8e
10,150
py
Python
All_convet/ConvPool_c.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
3
2017-08-20T08:47:18.000Z
2019-06-21T06:09:27.000Z
All_convet/ConvPool_c.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
null
null
null
All_convet/ConvPool_c.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
null
null
null
from __future__ import division import os import sys import time import csv import yaml from keras.models import Sequential from keras.layers import Dense, Dropout from keras.layers.convolutional import Conv2D, ZeroPadding2D from keras.layers.pooling import MaxPooling2D, GlobalAveragePooling2D from keras....
37.043796
104
0.543153
4a07569bc21af9ce642c6e98d449dc86911a2cbf
1,056
py
Python
pyleecan/Methods/Mesh/SolutionVector/get_axes_list.py
tobsen2code/pyleecan
5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Methods/Mesh/SolutionVector/get_axes_list.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Methods/Mesh/SolutionVector/get_axes_list.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
# -*- coding: utf-8 -*- import numpy as np from pyleecan.Functions.make_ndarray_equal import make_ndarray_equal def get_axes_list(self, *args): """Get the axis of variables stored in Solution. Parameters ---------- self : SolutionVector an SolutionVector object field_name : str n...
22.468085
86
0.621212
4a0759beec9d83b4d4486e161ac446cde2b58853
362
py
Python
torchpack/runner/hooks/timer.py
hellock/torchpack
8d7363ff683c8aec5af57e5d53518a22c7e0a807
[ "MIT" ]
25
2017-12-16T09:53:14.000Z
2021-11-26T14:19:38.000Z
torchpack/runner/hooks/timer.py
nd1511/torchpack
8d7363ff683c8aec5af57e5d53518a22c7e0a807
[ "MIT" ]
null
null
null
torchpack/runner/hooks/timer.py
nd1511/torchpack
8d7363ff683c8aec5af57e5d53518a22c7e0a807
[ "MIT" ]
9
2018-01-17T14:08:05.000Z
2021-08-31T14:48:25.000Z
import time from .hook import Hook class TimerHook(Hook): def before_epoch(self, runner): self.t = time.time() def before_iter(self, runner): runner.log_buffer.update({'data_time': time.time() - self.t}) def after_iter(self, runner): runner.log_buffer.update({'time': time.time(...
21.294118
69
0.627072
4a0759ff68bf99fa5fe0eec64158731c0d0079c5
387
py
Python
jsmdc/asgi.py
Freiza/jsmdc
22db7975d7b6d52889e334ad7b8af09d2206f506
[ "Apache-2.0" ]
null
null
null
jsmdc/asgi.py
Freiza/jsmdc
22db7975d7b6d52889e334ad7b8af09d2206f506
[ "Apache-2.0" ]
null
null
null
jsmdc/asgi.py
Freiza/jsmdc
22db7975d7b6d52889e334ad7b8af09d2206f506
[ "Apache-2.0" ]
null
null
null
""" ASGI config for jsmdc project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
4a075a09568109eb23763b3c7516c5ff3bf65351
155,791
py
Python
dice/bottle.py
manor/OpenSlice
e5f3bba181000801060f5ae67f88337ad0c63695
[ "MIT" ]
null
null
null
dice/bottle.py
manor/OpenSlice
e5f3bba181000801060f5ae67f88337ad0c63695
[ "MIT" ]
null
null
null
dice/bottle.py
manor/OpenSlice
e5f3bba181000801060f5ae67f88337ad0c63695
[ "MIT" ]
2
2016-12-10T19:50:22.000Z
2018-02-06T21:23:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with URL parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single f...
39.03558
104
0.565752
4a075a69a752e4871ff49100500cd903a22f7955
287
py
Python
pythondesafios/desafio049.py
matheus-rosario/curso-python
ac9ccf7fc4b3f708821e44787a1bdc231d9426ac
[ "MIT" ]
null
null
null
pythondesafios/desafio049.py
matheus-rosario/curso-python
ac9ccf7fc4b3f708821e44787a1bdc231d9426ac
[ "MIT" ]
null
null
null
pythondesafios/desafio049.py
matheus-rosario/curso-python
ac9ccf7fc4b3f708821e44787a1bdc231d9426ac
[ "MIT" ]
null
null
null
#Refaça o DESAFIO 009, mostrando a tabuada de um número que o usuário escolher, #só que agora utilizando um laço for. n = int(input('Digite um número: ')) print('-='*10) print(f'A tabuada do número {n} é a seguinte:') for c in range(0, 11): print(f'{n} * {c} = {n * c}') print('-='*10)
35.875
79
0.648084
4a075b15d5ebaef6e02b6d9ddf1f157a8db3dab4
215
py
Python
8192_Section 1_code/grab4.py
PacktPublishing/Basic-and-low-level-Python-Network-Attacks
8d400f70e3570f60844a3d6cb3486bec00fd4c03
[ "MIT" ]
8
2018-07-23T20:30:04.000Z
2021-11-08T13:10:39.000Z
8192_Section 1_code/grab4.py
w0x12ef/Basic-and-low-level-Python-Network-Attacks
82d7acc2ea4ec0df9e435421adcdc9d5e9897ad6
[ "MIT" ]
null
null
null
8192_Section 1_code/grab4.py
w0x12ef/Basic-and-low-level-Python-Network-Attacks
82d7acc2ea4ec0df9e435421adcdc9d5e9897ad6
[ "MIT" ]
11
2018-01-23T01:52:22.000Z
2020-12-12T07:51:05.000Z
import socket s = socket.socket() s.settimeout(2) port = raw_input("Port number: ") try: s.connect(("packtpub.samsclass.info", int(port))) print s.recv(1024) s.close() except socket.error as err: print err
13.4375
50
0.693023
4a075ee0ec1803809b40d968c6220da9c0c79530
180
py
Python
src/Kale/CodeAnalysis/Exceptions/illegalcharacter.py
billyeatcookies/Kale
b9f1b42291c3aefd012e92a28eb1d38df2122796
[ "MIT" ]
8
2021-09-10T20:11:20.000Z
2021-11-16T12:54:15.000Z
src/Kale/CodeAnalysis/Exceptions/illegalcharacter.py
billyeatcookies/Kale
b9f1b42291c3aefd012e92a28eb1d38df2122796
[ "MIT" ]
4
2021-09-13T15:27:56.000Z
2021-09-13T17:11:27.000Z
src/Kale/CodeAnalysis/Exceptions/illegalcharacter.py
billyeatcookies/Kale
b9f1b42291c3aefd012e92a28eb1d38df2122796
[ "MIT" ]
null
null
null
from CodeAnalysis.Exceptions.error import Error class IllegalCharacterException(Error): def __init__(self, char): self.char = char super().__init__(self.char)
25.714286
47
0.716667
4a075efc59437257dbc181b230509aff3b7542ac
23,067
py
Python
exporting/export_objects.py
AssaSch/ExportImportPolicyPackage
a2e1a272e0692e375600895d569758fa022a0244
[ "Apache-2.0" ]
null
null
null
exporting/export_objects.py
AssaSch/ExportImportPolicyPackage
a2e1a272e0692e375600895d569758fa022a0244
[ "Apache-2.0" ]
null
null
null
exporting/export_objects.py
AssaSch/ExportImportPolicyPackage
a2e1a272e0692e375600895d569758fa022a0244
[ "Apache-2.0" ]
null
null
null
from exporting.special_treatment_objects import handle_fields from lists_and_dictionaries import no_export_fields_and_subfields, \ singular_to_plural_dictionary, group_objects_field, placeholder_type_by_obj_type, \ no_export_fields_by_api_type, special_treatment_types, no_export_fields from utils import deb...
48.664557
141
0.613387
4a0760bed2db1239112837265380781db21af2a5
616
py
Python
social/migrations/0002_friend.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
null
null
null
social/migrations/0002_friend.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
9
2019-12-04T23:48:54.000Z
2021-06-10T18:31:57.000Z
social/migrations/0002_friend.py
zhongmei57485/SwiperPro
b00dde5af05f158d7cd2c649e8a07a2c19623b69
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.1 on 2019-07-20 10:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('social', '0001_initial'), ] operations = [ migrations.CreateModel( name='Friend', fields=[ ('id', mo...
24.64
114
0.519481
4a07611d6e577bf17f8307012c93ebe0193f7604
958
py
Python
algorithms/python/bad_anagrams.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
1
2017-02-20T21:04:47.000Z
2017-02-20T21:04:47.000Z
algorithms/python/bad_anagrams.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
null
null
null
algorithms/python/bad_anagrams.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
2
2017-02-20T21:04:49.000Z
2021-05-18T11:29:16.000Z
import os import sys import itertools as it import wordlists import timeit import time import math from anagrams import words_iterable def yield_anagrams(dictionary, word): return [word for word in (''.join(candidate) for candidate in it.permutations(word)) if word in dictio...
24.564103
78
0.639875
4a07611f4742de059ad72ba990ce0ad64d6447a0
515
py
Python
PythonToJavascript/converters/TupleConverter.py
stoogoff/python-to-javascript
4349b09b15ada544501e7091c7ff1574487e7598
[ "MIT" ]
1
2021-11-19T09:56:41.000Z
2021-11-19T09:56:41.000Z
PythonToJavascript/converters/TupleConverter.py
stoogoff/python-to-javascript
4349b09b15ada544501e7091c7ff1574487e7598
[ "MIT" ]
2
2022-02-25T23:11:27.000Z
2022-03-04T10:22:14.000Z
PythonToJavascript/converters/TupleConverter.py
stoogoff/python-to-javascript
4349b09b15ada544501e7091c7ff1574487e7598
[ "MIT" ]
4
2021-05-06T19:03:19.000Z
2022-03-06T13:52:30.000Z
from Converter import Converter from helpers import Treeverser, makeLeaf class TupleConverter( Converter ): PATTERN = """ atom< lpar='(' contents=testlist_gexp rpar=')' > """ def gather( self, node ): tv = Treeverser( node ) matches = tv.gatherMatches( self.PATTERN ) ret...
25.75
72
0.617476
4a0761e2e8140ae7126d8e7ad30c76df9d446fcb
2,879
py
Python
ote_sdk/ote_sdk/tests/configuration/test_configurable_parameters.py
vraoresearch/openvino_training_extensions
5cdade68a1ec25f694efddc40913fe2527e00e82
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/tests/configuration/test_configurable_parameters.py
vraoresearch/openvino_training_extensions
5cdade68a1ec25f694efddc40913fe2527e00e82
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/tests/configuration/test_configurable_parameters.py
vraoresearch/openvino_training_extensions
5cdade68a1ec25f694efddc40913fe2527e00e82
[ "Apache-2.0" ]
1
2020-12-13T22:13:51.000Z
2020-12-13T22:13:51.000Z
# Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # import pytest from ote_sdk.configuration.configurable_parameters import ConfigurableParameters from ote_sdk.configuration.enums.config_element_type import ConfigElementType from ote_sdk.entities.id import ID from ote_sdk.tests.constan...
39.438356
108
0.689823
4a07627a1233c7cb69827e010b64b4cde684456a
3,235
py
Python
profiles_project/profiles_project/settings.py
chaturvedishruti/profiles-rest-api
9518fd0fffc160c7c75cec204d2e10edd2a3af6f
[ "MIT" ]
null
null
null
profiles_project/profiles_project/settings.py
chaturvedishruti/profiles-rest-api
9518fd0fffc160c7c75cec204d2e10edd2a3af6f
[ "MIT" ]
6
2020-06-06T01:52:34.000Z
2022-02-10T14:40:03.000Z
profiles_project/profiles_project/settings.py
chaturvedishruti/profiles-rest-api
9518fd0fffc160c7c75cec204d2e10edd2a3af6f
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.674603
91
0.699845
4a07629cfd5b59d9602b1a2e7b9b877696f6dade
32,823
py
Python
sympy/printing/tests/test_fcode.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/tests/test_fcode.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/tests/test_fcode.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
1
2018-10-21T06:32:46.000Z
2018-10-21T06:32:46.000Z
from sympy import (sin, cos, atan2, log, exp, gamma, conjugate, sqrt, factorial, Integral, Piecewise, Add, diff, symbols, S, Float, Dummy, Eq, Range, Catalan, EulerGamma, E, GoldenRatio, I, pi, Function, Rational, Integer, Lambda, sign, Mod) f...
41.91954
116
0.517016
4a07640f818648cc11e8d8744af854c1bc0074a9
5,700
py
Python
docs/source/conf.py
0k/sact.epoch
6b0a47068992ff6a73f0f1da36090affad7c8be0
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
0k/sact.epoch
6b0a47068992ff6a73f0f1da36090affad7c8be0
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
0k/sact.epoch
6b0a47068992ff6a73f0f1da36090affad7c8be0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # NSS documentation build configuration file, created by sphinx-quickstart. # This file is execfile()d with the current directory set to its containing dir. # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleable (module imports are okay, they're re...
32.758621
82
0.730877
4a0764af5766883b021bdbc700bc33355c2891dc
6,688
py
Python
eod/data/datasets/transforms.py
scott-mao/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
1
2022-01-12T01:51:39.000Z
2022-01-12T01:51:39.000Z
eod/data/datasets/transforms.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
null
null
null
eod/data/datasets/transforms.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
null
null
null
from __future__ import division import torch from abc import ABC, abstractmethod from collections import defaultdict import numpy as np from torchvision.transforms import Compose, Normalize from torchvision.transforms import functional as TF from eod.utils.general.registry_factory import AUGMENTATION_REGISTRY import co...
30.538813
117
0.652213
4a07654e1a495ee6c39c5bef595ff42902f73813
6,848
py
Python
multimodelity/datasets/builders/visual_genome/dataset.py
hahaxun/mmf
6d32c3925ed9bf938e19a071aaa5e72a5cf01ee1
[ "BSD-3-Clause" ]
null
null
null
multimodelity/datasets/builders/visual_genome/dataset.py
hahaxun/mmf
6d32c3925ed9bf938e19a071aaa5e72a5cf01ee1
[ "BSD-3-Clause" ]
null
null
null
multimodelity/datasets/builders/visual_genome/dataset.py
hahaxun/mmf
6d32c3925ed9bf938e19a071aaa5e72a5cf01ee1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import copy import json import torch from multimodelity.common.sample import Sample, SampleList from multimodelity.datasets.builders.vqa2 import VQA2Dataset from multimodelity.datasets.databases.scene_graph_database import SceneGraphDatabase _CONSTANTS = {"image_id_...
34.938776
88
0.609375
4a07662554b903b949869d486c49f7c0ddcabc98
16,768
py
Python
tests/python/relay/test_op_level1.py
byungchul/tvm
ce72e9b552c14e9636e43782ccb3732d00fa0b6b
[ "Apache-2.0" ]
null
null
null
tests/python/relay/test_op_level1.py
byungchul/tvm
ce72e9b552c14e9636e43782ccb3732d00fa0b6b
[ "Apache-2.0" ]
null
null
null
tests/python/relay/test_op_level1.py
byungchul/tvm
ce72e9b552c14e9636e43782ccb3732d00fa0b6b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
41.098039
106
0.574487
4a0767b4b5d97bc4b4b633240f6928170286ebda
4,254
py
Python
backend/src/model/Room.py
MNI1996/TIP-Jara-Ibarra-MasDespacioCerebrito
45775384382e7069f45e1a5ce932e742eae6629e
[ "MIT" ]
null
null
null
backend/src/model/Room.py
MNI1996/TIP-Jara-Ibarra-MasDespacioCerebrito
45775384382e7069f45e1a5ce932e742eae6629e
[ "MIT" ]
5
2020-10-03T12:14:57.000Z
2020-11-28T13:23:58.000Z
backend/src/model/Room.py
MNI1996/TIP-Jara-Ibarra-MasDespacioCerebrito
45775384382e7069f45e1a5ce932e742eae6629e
[ "MIT" ]
null
null
null
import random from itertools import chain from mongoengine import Document, ReferenceField, ListField, QuerySet, StringField, EmbeddedDocumentListField, IntField from backend.src.model.Category import Category from backend.src.model.Player import Player from backend.src.model.Question import Question from backend.src...
40.514286
121
0.686413
4a0767d1c1fae04b4318e234f84432d5173e061d
4,899
py
Python
yandex/cloud/mdb/mysql/v1/database_service_pb2_grpc.py
kbespalov/python-sdk
e86563ee850e46a35b4c84053ecd4affdf66a963
[ "MIT" ]
null
null
null
yandex/cloud/mdb/mysql/v1/database_service_pb2_grpc.py
kbespalov/python-sdk
e86563ee850e46a35b4c84053ecd4affdf66a963
[ "MIT" ]
null
null
null
yandex/cloud/mdb/mysql/v1/database_service_pb2_grpc.py
kbespalov/python-sdk
e86563ee850e46a35b4c84053ecd4affdf66a963
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from yandex.cloud.mdb.mysql.v1 import database_pb2 as yandex_dot_cloud_dot_mdb_dot_mysql_dot_v1_dot_database__pb2 from yandex.cloud.mdb.mysql.v1 import database_service_pb2 as yandex_dot_cloud_dot_mdb_dot_mysql_dot_v1_dot_database__servi...
48.029412
139
0.789753
4a07680265426feba99be7217bee3800ba801b09
4,045
py
Python
samples/client/petstore/python/petstore_api/models/animal.py
FantasyTeddy/openapi-generator
866dc03f4fda48800ba52e428f2f1010de8540c0
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python/petstore_api/models/animal.py
FantasyTeddy/openapi-generator
866dc03f4fda48800ba52e428f2f1010de8540c0
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python/petstore_api/models/animal.py
FantasyTeddy/openapi-generator
866dc03f4fda48800ba52e428f2f1010de8540c0
[ "Apache-2.0" ]
1
2019-11-25T15:03:05.000Z
2019-11-25T15:03:05.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://openapi-generator.tech """ import pprint ...
26.966667
174
0.564648
4a076842aa86f03a17cd351ce0471870dc2f4d2d
32
py
Python
python/testData/inspections/PyTypeCheckerInspection/StrFormat.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyTypeCheckerInspection/StrFormat.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/PyTypeCheckerInspection/StrFormat.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
b'{}'.format(0) u'{}'.format(0)
10.666667
15
0.5
4a0768c36cb620ada06aa9135c09a4fa13aef73f
70,553
py
Python
sympy/core/tests/test_expr.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
null
null
null
sympy/core/tests/test_expr.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
null
null
null
sympy/core/tests/test_expr.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
null
null
null
from sympy import (Add, Basic, Expr, S, Symbol, Wild, Float, Integer, Rational, I, sin, cos, tan, exp, log, nan, oo, sqrt, symbols, Integral, sympify, WildFunction, Poly, Function, Derivative, Number, pi, NumberSymbol, zoo, Piecewise, Mul, Pow, nsimplify, ratsimp...
33.469165
92
0.557808
4a07690c1655c2d3f46da713d0eff86e1fbe7e9b
1,267
py
Python
home/Alessandruino/Tracking.faceDetection.py
sola1993/inmoov
34e7bb6e214bd9bf3eee808c19f0ab09ec79345f
[ "Apache-2.0" ]
1
2021-02-24T17:05:52.000Z
2021-02-24T17:05:52.000Z
home/Alessandruino/Tracking.faceDetection.py
kwatters/pyrobotlab
87ef8975638c3d0f8e2d842ac2abe03da465fd51
[ "Apache-2.0" ]
null
null
null
home/Alessandruino/Tracking.faceDetection.py
kwatters/pyrobotlab
87ef8975638c3d0f8e2d842ac2abe03da465fd51
[ "Apache-2.0" ]
1
2021-02-24T17:05:56.000Z
2021-02-24T17:05:56.000Z
# a minimal tracking script - this will start all peer # services and attach everything appropriately # change parameters depending on your pan tilt, pins and # Arduino details # all commented code is not necessary but allows custom # options port = "COM15" xServoPin = 13 yServoPin = 12 tracker = Runtime.createAndSta...
23.462963
56
0.751381
4a076958bede620f626036ec4c79c754c347e681
788
py
Python
blog/migrations/0003_blogpage_body.py
StratoBallooning/website
dad8db401279674d03355fdf5557c73074ff851f
[ "MIT" ]
null
null
null
blog/migrations/0003_blogpage_body.py
StratoBallooning/website
dad8db401279674d03355fdf5557c73074ff851f
[ "MIT" ]
19
2016-02-17T03:41:17.000Z
2016-02-24T03:01:18.000Z
blog/migrations/0003_blogpage_body.py
StratoBallooning/website
dad8db401279674d03355fdf5557c73074ff851f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-13 22:26 from __future__ import unicode_literals from django.db import migrations import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtailimages.blocks class Migration(migrations.Migration): dependencies = [ ...
31.52
266
0.686548
4a076a3dd6870c220e39bb67ee7bf8ad3b00b05e
3,976
py
Python
airflow/sensors/named_hive_partition_sensor.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
4
2019-01-17T06:21:45.000Z
2020-06-20T01:59:57.000Z
airflow/sensors/named_hive_partition_sensor.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
14
2018-10-24T03:15:11.000Z
2019-01-02T19:02:58.000Z
airflow/sensors/named_hive_partition_sensor.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
6
2018-12-04T12:15:23.000Z
2020-11-23T03:51:41.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
37.866667
74
0.657948
4a076ab4bdef701809ba3db11cb8e429bd5cfee3
11,848
py
Python
padertorch/contrib/examples/source_separation/tasnet/train.py
boeddeker/padertorch
2298a4e6cb1368e50add0b78bc751fd6a13129a8
[ "MIT" ]
null
null
null
padertorch/contrib/examples/source_separation/tasnet/train.py
boeddeker/padertorch
2298a4e6cb1368e50add0b78bc751fd6a13129a8
[ "MIT" ]
null
null
null
padertorch/contrib/examples/source_separation/tasnet/train.py
boeddeker/padertorch
2298a4e6cb1368e50add0b78bc751fd6a13129a8
[ "MIT" ]
null
null
null
""" Example call on NT infrastructure: export STORAGE_ROOT=<your desired storage root> export OMP_NUM_THREADS=1 export MKL_NUM_THREADS=1 python -m padertorch.contrib.examples.source_separation.tasnet.train with database_json=${paths to your JSON} """ import os import numpy as np import paderbox as pb import sacred.co...
29.039216
109
0.636394
4a076baca299c44d17519e6070b87df62ea14d13
9,726
py
Python
train.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
1
2020-12-03T03:07:15.000Z
2020-12-03T03:07:15.000Z
train.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
1
2019-08-23T09:27:33.000Z
2019-08-29T01:46:12.000Z
train.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import json import torch import numpy as np import queue import pprint import random import argparse import importlib import threading import traceback import torch.distributed as dist import torch.multiprocessing as mp from tqdm import tqdm from torch.multiprocessing import Process, Q...
37.264368
128
0.681061
4a076c10b651b98fcdc4d7e18b2ef341ef786c56
316
py
Python
projects/migrations/0002_remove_project_image.py
jimmybutton/portfolio
c5e20fa9c3198e73b8f8434659d2a67704c62d06
[ "MIT" ]
1
2021-03-26T11:12:40.000Z
2021-03-26T11:12:40.000Z
projects/migrations/0002_remove_project_image.py
jimmybutton/rp_portfolio
c5e20fa9c3198e73b8f8434659d2a67704c62d06
[ "MIT" ]
null
null
null
projects/migrations/0002_remove_project_image.py
jimmybutton/rp_portfolio
c5e20fa9c3198e73b8f8434659d2a67704c62d06
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-21 16:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('projects', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='project', name='image', ), ]
17.555556
45
0.579114
4a076d496c08da29fb65a95b366a4f03bad417a6
848
py
Python
Snapchat/find_all_anagrams.py
mohamedsugal/Leetcode-solutions
539c4a70ab0fd23b7e5a9d450ae5ac2270325f77
[ "MIT" ]
3
2020-11-12T06:51:44.000Z
2021-09-19T00:26:33.000Z
Snapchat/find_all_anagrams.py
mohamedsugal/Leetcode-solutions
539c4a70ab0fd23b7e5a9d450ae5ac2270325f77
[ "MIT" ]
null
null
null
Snapchat/find_all_anagrams.py
mohamedsugal/Leetcode-solutions
539c4a70ab0fd23b7e5a9d450ae5ac2270325f77
[ "MIT" ]
null
null
null
from typing import List from collections import defaultdict class Solution: def findAnagrams(self, s: str, p: str) -> List[int]: if len(s) < len(p): return [] p_count, s_count = {}, {} for letter in p: p_count[letter] = p_count.get(letter, 0) + 1 left = ri...
30.285714
60
0.459906
4a076e3bbf5426bbf1ef0522938e3457b8e428c0
151,858
py
Python
Lib/test/test_os.py
marcoramirezmx/cpython
8b31a11a698cb5aa9b439b349c8de4e388846f73
[ "CNRI-Python-GPL-Compatible" ]
5
2018-07-02T19:10:39.000Z
2021-09-27T04:05:10.000Z
Lib/test/test_os.py
marcoramirezmx/cpython
8b31a11a698cb5aa9b439b349c8de4e388846f73
[ "CNRI-Python-GPL-Compatible" ]
3
2018-06-10T06:28:06.000Z
2021-09-24T13:54:19.000Z
Lib/test/test_os.py
marcoramirezmx/cpython
8b31a11a698cb5aa9b439b349c8de4e388846f73
[ "CNRI-Python-GPL-Compatible" ]
1
2020-10-09T12:23:55.000Z
2020-10-09T12:23:55.000Z
# As a test suite for the os module, this is woefully inadequate, but this # does add tests for a few functions which have been determined to be more # portable than they had been thought to be. import asynchat import asyncore import codecs import contextlib import decimal import errno import fnmatch import fractions ...
37.505063
101
0.595023
4a076e8d7a97457db02c8b8523c05992112be651
1,340
py
Python
setup.py
THAVASIGTI/india_covid
800e2786094438b3f8e298eafed0fbfd6f9c5910
[ "MIT" ]
2
2021-07-09T16:34:03.000Z
2021-08-03T16:46:54.000Z
setup.py
THAVASIGTI/india_covid
800e2786094438b3f8e298eafed0fbfd6f9c5910
[ "MIT" ]
null
null
null
setup.py
THAVASIGTI/india_covid
800e2786094438b3f8e298eafed0fbfd6f9c5910
[ "MIT" ]
1
2021-07-09T16:34:03.000Z
2021-07-09T16:34:03.000Z
import setuptools from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setuptools.setup( name="pycovid_india", version="0.0.8", author="T.THAVASI GTI", license="MIT", auth...
37.222222
99
0.679851