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
0f47a357985cff6f4eeac24a15d22f1bc05ba0d0
617
py
Python
leapvision/solpixelator.py
isai-solis/sync-week-austin-2018
ac2477aff4b2f78a9d7b7249fd0512c5bb1d1fc0
[ "MIT" ]
null
null
null
leapvision/solpixelator.py
isai-solis/sync-week-austin-2018
ac2477aff4b2f78a9d7b7249fd0512c5bb1d1fc0
[ "MIT" ]
null
null
null
leapvision/solpixelator.py
isai-solis/sync-week-austin-2018
ac2477aff4b2f78a9d7b7249fd0512c5bb1d1fc0
[ "MIT" ]
null
null
null
import cv2 class Pixelator(object): ''' Represents a tracker for a single object. The algorithm used depends on the tracker_type parameter passed to the constructor. ''' def __init__(self, shrinkRatio = None, growRatio = None): if not shrinkRatio: self.shrinkRatio = 0.1 ...
29.380952
99
0.612642
018938023755c5b57f218b90260956c183d7ccdb
105,451
py
Python
mavsdk/generated/telemetry.py
huynhthehainam/MAVSDK-Python
b68abc53d2b08086f75859565f5600044b68a0d2
[ "BSD-3-Clause" ]
null
null
null
mavsdk/generated/telemetry.py
huynhthehainam/MAVSDK-Python
b68abc53d2b08086f75859565f5600044b68a0d2
[ "BSD-3-Clause" ]
null
null
null
mavsdk/generated/telemetry.py
huynhthehainam/MAVSDK-Python
b68abc53d2b08086f75859565f5600044b68a0d2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .._base import AsyncBase from ..generated import telemetry_pb2, telemetry_pb2_grpc from enum import Enum class FixType(Enum): """ GPS fix type. Values ------ NO_GPS No GPS connected NO_FIX No position information, GPS is connected F...
26.935121
158
0.557178
9a8ff570b30caf63e530ae9382f589c51a00531a
11,260
py
Python
alf/utils/dist_utils_test.py
zhuboli/alf
b357565638c9336ebd88cecb9766a17d72d5d0c3
[ "Apache-2.0" ]
null
null
null
alf/utils/dist_utils_test.py
zhuboli/alf
b357565638c9336ebd88cecb9766a17d72d5d0c3
[ "Apache-2.0" ]
null
null
null
alf/utils/dist_utils_test.py
zhuboli/alf
b357565638c9336ebd88cecb9766a17d72d5d0c3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Horizon Robotics. 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 applicab...
40.503597
80
0.637567
d46d37ec27ed35c9a1d5822903b257152ebccfa8
2,945
py
Python
ownpaste/__init__.py
rafaelmartins/ownpaste
b9a2d8765173facfc778b4074853c7204e9f2d43
[ "BSD-3-Clause" ]
3
2016-12-08T18:40:33.000Z
2019-08-29T15:21:36.000Z
ownpaste/__init__.py
rafaelmartins/ownpaste
b9a2d8765173facfc778b4074853c7204e9f2d43
[ "BSD-3-Clause" ]
null
null
null
ownpaste/__init__.py
rafaelmartins/ownpaste
b9a2d8765173facfc778b4074853c7204e9f2d43
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ ownpaste ~~~~~~~~ Main package. :copyright: (c) 2012-2013 by Rafael Goncalves Martins :license: BSD, see LICENSE for more details. """ # ignore useless warnings about modules already imported. import warnings warnings.filterwarnings('ignore', r'module.*already imported...
33.089888
78
0.703226
97377439f481f5bde93225112dfffbc2644f45ee
7,944
py
Python
api/views.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
1
2019-06-29T15:24:24.000Z
2019-06-29T15:24:24.000Z
api/views.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2020-01-12T17:47:33.000Z
2020-01-12T17:47:45.000Z
api/views.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2019-06-29T15:24:26.000Z
2020-01-08T15:15:03.000Z
# Bep Marketplace ELE # Copyright (c) 2016-2021 Kolibri Solutions # License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE # from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.cache import cache from djan...
31.275591
116
0.67145
19ee001917f09312bbbc23f776c126a1d65e2eda
5,434
py
Python
mmflow/models/flow_estimators/flownet.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
481
2021-11-16T07:04:23.000Z
2022-03-31T22:21:21.000Z
mmflow/models/flow_estimators/flownet.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
72
2021-11-16T12:25:55.000Z
2022-03-28T13:10:45.000Z
mmflow/models/flow_estimators/flownet.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
48
2021-11-16T06:48:46.000Z
2022-03-30T12:46:40.000Z
# Copyright (c) OpenMMLab. All rights reserved. from typing import Dict, Optional, Sequence, Tuple, Union from mmcv.utils import Config from numpy import ndarray from torch import Tensor from ..builder import FLOW_ESTIMATORS, build_encoder from .pwcnet import PWCNet @FLOW_ESTIMATORS.register_module() class FlowNetS...
32.538922
79
0.586676
96d9af06f78769e7c79fe178aae4325d13461d17
6,564
py
Python
sib_api_v3_sdk/models/get_contact_campaign_stats_links.py
Kalesberg/APIv3-python-library
f65e7ea1ddd94a0c095a983dd40233fd8472c08a
[ "MIT" ]
null
null
null
sib_api_v3_sdk/models/get_contact_campaign_stats_links.py
Kalesberg/APIv3-python-library
f65e7ea1ddd94a0c095a983dd40233fd8472c08a
[ "MIT" ]
null
null
null
sib_api_v3_sdk/models/get_contact_campaign_stats_links.py
Kalesberg/APIv3-python-library
f65e7ea1ddd94a0c095a983dd40233fd8472c08a
[ "MIT" ]
null
null
null
# coding: utf-8 """ SendinBlue API SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at h...
32.334975
820
0.584857
f8004f59dcbfffbc586f0bebdad89400a7170a75
2,684
py
Python
setup.py
jpeyret/pynoorm
d6f7e0e102bb0eb4865beff75cf671b560ebc8b2
[ "MIT" ]
2
2016-04-14T23:11:06.000Z
2016-06-04T22:39:10.000Z
setup.py
jpeyret/pynoorm
d6f7e0e102bb0eb4865beff75cf671b560ebc8b2
[ "MIT" ]
null
null
null
setup.py
jpeyret/pynoorm
d6f7e0e102bb0eb4865beff75cf671b560ebc8b2
[ "MIT" ]
1
2022-01-16T15:19:16.000Z
2022-01-16T15:19:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import re if sys.version_info < (2, 7): raise Exception("PyNoORM requires Python 2.7 or higher.") if sys.version_info >= (3,): if sys.version_info < (3, 3): raise Exception("PyNoORM requires Python 3.3 or higher") try: from se...
26.313725
75
0.63152
e5249f1949f6091b0db785b8738bfcf51e426cb9
3,312
py
Python
rl_agent/qnetwork.py
juheyne/minesweeper
89cc07a2ce5f8b6699eebd32d4d4197483184299
[ "MIT" ]
1
2018-05-22T09:45:31.000Z
2018-05-22T09:45:31.000Z
rl_agent/qnetwork.py
juheyne/minesweeper
89cc07a2ce5f8b6699eebd32d4d4197483184299
[ "MIT" ]
null
null
null
rl_agent/qnetwork.py
juheyne/minesweeper
89cc07a2ce5f8b6699eebd32d4d4197483184299
[ "MIT" ]
null
null
null
import numpy as np import random import tensorflow as tf import tensorflow.contrib.slim as slim class QNetwork: def __init__(self, field_size, num_actions): # None shapes are for batch sizes size_final_layer = 256 self.input = tf.placeholder(shape=[None, field_size, field_size, 2], dtype=t...
41.4
123
0.580012
cba382737c1792c67c0a8796df9218d2306205b0
30,877
py
Python
services/core/Darksky/tests/test_darksky.py
craig8/volttron
2a954311d323effa3b79c2a53f6e8c3bb9664e1c
[ "Apache-2.0", "BSD-2-Clause" ]
1
2020-06-08T16:54:28.000Z
2020-06-08T16:54:28.000Z
services/core/Darksky/tests/test_darksky.py
craig8/volttron
2a954311d323effa3b79c2a53f6e8c3bb9664e1c
[ "Apache-2.0", "BSD-2-Clause" ]
8
2016-10-07T22:49:28.000Z
2022-02-23T00:57:58.000Z
services/core/Darksky/tests/test_darksky.py
craig8/volttron
2a954311d323effa3b79c2a53f6e8c3bb9664e1c
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2020, Battelle Memorial Institute. # # 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...
42.706777
118
0.661107
8cecb17ad9b6f53f7d3411c33eadbaa1010925f7
437
py
Python
primer/first_program.py
YunYouJun/python-learn
e41ce8ca289fbb6e1a14e07aee6d4b797e6d5d8c
[ "MIT" ]
null
null
null
primer/first_program.py
YunYouJun/python-learn
e41ce8ca289fbb6e1a14e07aee6d4b797e6d5d8c
[ "MIT" ]
null
null
null
primer/first_program.py
YunYouJun/python-learn
e41ce8ca289fbb6e1a14e07aee6d4b797e6d5d8c
[ "MIT" ]
null
null
null
def isEqual(num1, num2): if num1 < num2: print(str(num1) + ' is too small!') return False elif num1 > num2: print(str(num1) + ' is too big!') return False else: print('Bingo!') return True from random import randint num = randint(1, 100) print('Guess what I...
19
43
0.567506
31e1beeddbba1d9cfa87276d266b6f232e49a938
7,143
py
Python
app_config.py
nprapps/books16
59a15a09d903f1690d2dbe7d766e05e2c8256a7c
[ "MIT" ]
6
2016-12-08T07:29:23.000Z
2018-10-04T17:35:24.000Z
app_config.py
axiompiper/books16
59a15a09d903f1690d2dbe7d766e05e2c8256a7c
[ "MIT" ]
2
2016-12-09T15:15:16.000Z
2017-01-27T21:29:13.000Z
app_config.py
axiompiper/books16
59a15a09d903f1690d2dbe7d766e05e2c8256a7c
[ "MIT" ]
5
2016-12-27T16:27:23.000Z
2021-02-23T10:44:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Project-wide application configuration. DO NOT STORE SECRETS, PASSWORDS, ETC. IN THIS FILE. They will be exposed to users. Use environment variables instead. See get_secrets() below for a fast way to access them. """ import os import logging from authomatic.providers...
26.261029
109
0.692286
b3c8985caafd34e4798b11c67518d93ee70eab66
40
py
Python
tests/components/opnsense/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/opnsense/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/opnsense/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the opnsense component."""
20
39
0.7
1607ba4b44908747c7f65f0b07183fee755a3372
25,681
py
Python
src/encoders.py
jhunhwang/goldenretriever
08df451c2d726678d91bab372936e95b6cf88732
[ "Apache-2.0" ]
8
2020-03-06T02:22:24.000Z
2022-03-08T04:18:42.000Z
src/encoders.py
jhunhwang/goldenretriever
08df451c2d726678d91bab372936e95b6cf88732
[ "Apache-2.0" ]
7
2020-11-13T18:54:23.000Z
2022-02-10T02:29:15.000Z
src/encoders.py
jhunhwang/goldenretriever
08df451c2d726678d91bab372936e95b6cf88732
[ "Apache-2.0" ]
3
2020-11-12T13:18:13.000Z
2021-10-15T05:50:44.000Z
import logging import os import tensorflow as tf # import tensorflow_addons as tfa import tensorflow_hub as hub from abc import ABC, abstractmethod from transformers import AlbertTokenizer, TFAlbertModel from .loss_functions import triplet_loss from .tokenizers.bert_tokenization import FullTokenizer, preprocess_str ...
36.530583
207
0.586504
b517b6ee5854bb7f9ac4a6c845a73aeb5b209be8
64,857
py
Python
pybind/nos/v6_0_2c/rbridge_id/router/router_bgp/router_bgp_attributes/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v6_0_2c/rbridge_id/router/router_bgp/router_bgp_attributes/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v6_0_2c/rbridge_id/router/router_bgp/router_bgp_attributes/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
85.226018
910
0.740136
21721d6d9f54fe41aac45f4d7b2969f6c75fd76e
200
py
Python
models/account_validation.py
allengblack/pay-with-capture
6ce0036ec77b92d3c5bd201e3bdb0b3e07b53bb3
[ "MIT" ]
1
2017-03-23T20:25:57.000Z
2017-03-23T20:25:57.000Z
models/account_validation.py
allengblack/pay-with-capture
6ce0036ec77b92d3c5bd201e3bdb0b3e07b53bb3
[ "MIT" ]
null
null
null
models/account_validation.py
allengblack/pay-with-capture
6ce0036ec77b92d3c5bd201e3bdb0b3e07b53bb3
[ "MIT" ]
null
null
null
"""pay_with_capture.models""" import json class AccountValidation(): """default response model""" _type = "" data = None def getJson(self): return json.dumps(self.__dict__)
16.666667
40
0.64
3aecce8ec89d855deb53e57f3bbb78a3391186fc
3,501
py
Python
nltk_trainer/scripts/analyze_tagged_corpus.py
escherba/nltk-trainer
2c2964ea8948550f30e8a58e8e6d267833bcfa82
[ "Apache-2.0" ]
null
null
null
nltk_trainer/scripts/analyze_tagged_corpus.py
escherba/nltk-trainer
2c2964ea8948550f30e8a58e8e6d267833bcfa82
[ "Apache-2.0" ]
null
null
null
nltk_trainer/scripts/analyze_tagged_corpus.py
escherba/nltk-trainer
2c2964ea8948550f30e8a58e8e6d267833bcfa82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import collections from nltk_trainer import basestring, load_corpus_reader, simplify_wsj_tag ######################################## ## command options & argument parsing ## ######################################## parser = argparse.ArgumentParser(description='Analyze a part-of-...
32.119266
95
0.696658
979450b99196429e21e6d024523452793f61de4e
28,493
py
Python
clients/binance-client/binance_client/client.py
DanielLavinV/criptovidente
202140a03f63404fad7107edc3f0127323b82966
[ "Apache-2.0" ]
null
null
null
clients/binance-client/binance_client/client.py
DanielLavinV/criptovidente
202140a03f63404fad7107edc3f0127323b82966
[ "Apache-2.0" ]
null
null
null
clients/binance-client/binance_client/client.py
DanielLavinV/criptovidente
202140a03f63404fad7107edc3f0127323b82966
[ "Apache-2.0" ]
null
null
null
from requests import Request, Session, Response # noqa: F401 import json from . import constants from datetime import datetime as dtt import math from .signatures import sign from .endpoints import endpoints_config import logging from typing import Optional, List import time logger = logging.getLogger(__name__) logge...
36.389527
88
0.61387
a847afb63881e3aa45e9b98140bc8afe6fffb8e4
1,681
py
Python
app/main/views.py
JECINTA534521/Blog-project
1514b92a8999bd25f7304c004747bc9260d17387
[ "MIT" ]
null
null
null
app/main/views.py
JECINTA534521/Blog-project
1514b92a8999bd25f7304c004747bc9260d17387
[ "MIT" ]
null
null
null
app/main/views.py
JECINTA534521/Blog-project
1514b92a8999bd25f7304c004747bc9260d17387
[ "MIT" ]
null
null
null
from flask import render_template,url_for,request,abort,redirect from flask_login import login_required from . import main from .forms import Blog,Comment from .. import db from ..models import Users,Blogs,Comments @main.route('/',methods=['GET','POST']) def index(): blog_form=Blog() users = Users.query.filter...
35.765957
154
0.710291
8592dee179b06aec2418bf2dd832fded98294014
1,457
py
Python
synapse/__init__.py
ThiefMaster/synapse
f2af3e4fc550e7e93be1b0f425c3e9c484b96293
[ "Apache-2.0" ]
1
2020-07-21T17:51:02.000Z
2020-07-21T17:51:02.000Z
synapse/__init__.py
mjvaldez/synapse
de119063f248981510e961e83f1515a3add19a21
[ "Apache-2.0" ]
null
null
null
synapse/__init__.py
mjvaldez/synapse
de119063f248981510e961e83f1515a3add19a21
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # Copyright 2018-9 New Vector Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
31
74
0.741249
d7e70dae3bbd033490d8a8a568df72bda8ff71ec
915
py
Python
src/Modules/Communication/twitter.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2016-09-21T19:30:21.000Z
2016-09-21T19:30:21.000Z
src/Modules/Communication/twitter.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
null
null
null
src/Modules/Communication/twitter.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2020-07-23T11:13:36.000Z
2020-07-23T11:13:36.000Z
""" -*- test-case-name: PyHouse.src.Modules.Communications.test.test_twitter -*- @name: PyHouse/src/Modules/Communication/twitter.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2016-2016 by D. Brian Kimmel @license: MIT License @note: Created on May 27, 2016 @summary: ...
20.795455
82
0.664481
51fdbb16027ebe39e3576f6b7700c73f59196969
1,217
py
Python
hard-gists/8444323/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/8444323/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/8444323/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#!/usr/bin/python import random from struct import pack from struct import unpack from scipy import linalg def Str2matrix(s): #convert string to 4x4 matrix return [map(lambda x : ord(x), list(s[i:i+4])) for i in xrange(0, len(s), 4)] def Matrix2str(m): #convert matrix to string return ''.join(map(lambda x : ''.j...
24.34
78
0.639277
1925c6e4e4ea7d707f5cbe53202c790ff206a4bf
4,426
py
Python
tools/metrics/histograms/update_extension_functions.py
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
tools/metrics/histograms/update_extension_functions.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-02-14T21:55:58.000Z
2017-02-14T21:55:58.000Z
tools/metrics/histograms/update_extension_functions.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Updates ExtensionFunctions enum in histograms.xml file with values read from extension_function_histogram_value.h. If the file was pretty-printed, the up...
29.704698
80
0.719611
5e9f46e1a451c459ceb21393911588ca14527061
56,406
py
Python
test/dialect/oracle/test_compiler.py
bmacphee/sqlalchemy
c4fb058cae423e04e7131005c55c8826abda68e2
[ "MIT" ]
null
null
null
test/dialect/oracle/test_compiler.py
bmacphee/sqlalchemy
c4fb058cae423e04e7131005c55c8826abda68e2
[ "MIT" ]
null
null
null
test/dialect/oracle/test_compiler.py
bmacphee/sqlalchemy
c4fb058cae423e04e7131005c55c8826abda68e2
[ "MIT" ]
null
null
null
# coding: utf-8 from sqlalchemy import and_ from sqlalchemy import bindparam from sqlalchemy import Computed from sqlalchemy import exc from sqlalchemy import except_ from sqlalchemy import ForeignKey from sqlalchemy import func from sqlalchemy import Identity from sqlalchemy import Index from sqlalchemy import Integer...
36.963303
79
0.563398
577124376a449f2ae8c2498615882cd6c135f508
6,156
py
Python
examples/rz_geometry/steadystate_em-static.py
radiasoft/mcool
67f853093f2ff062b4271c77f52c0b146324a046
[ "Apache-2.0" ]
1
2017-11-03T18:03:08.000Z
2017-11-03T18:03:08.000Z
examples/rz_geometry/steadystate_em-static.py
radiasoft/mcool
67f853093f2ff062b4271c77f52c0b146324a046
[ "Apache-2.0" ]
1
2016-04-18T18:36:10.000Z
2016-04-18T21:32:03.000Z
examples/rz_geometry/steadystate_em-static.py
radiasoft/mcool
67f853093f2ff062b4271c77f52c0b146324a046
[ "Apache-2.0" ]
null
null
null
""" Test beam self-fields with RZ solver geometry """ from __future__ import division from warp_init_tools import * import numpy as np import os import random from scipy.optimize import newton from sys import exit import sys import pickle from datetime import datetime sys.path.append('/Users/chall/research/github...
27.72973
135
0.616147
2f36cf0b0400c6414f4290493575f0ceca28522e
1,699
py
Python
research/cv/faster_rcnn_dcn/src/lr_schedule.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/faster_rcnn_dcn/src/lr_schedule.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/faster_rcnn_dcn/src/lr_schedule.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.452381
107
0.699823
97dc7484600d7292c690e5b83f664bda56c80134
644
py
Python
eworkshop/services/views/sells_service.py
frankfern/eWorkshop-api
4c8a377e67e42c10ae1a762efca9af2c27a2a561
[ "MIT" ]
null
null
null
eworkshop/services/views/sells_service.py
frankfern/eWorkshop-api
4c8a377e67e42c10ae1a762efca9af2c27a2a561
[ "MIT" ]
null
null
null
eworkshop/services/views/sells_service.py
frankfern/eWorkshop-api
4c8a377e67e42c10ae1a762efca9af2c27a2a561
[ "MIT" ]
null
null
null
from rest_framework import viewsets, mixins from rest_framework.permissions import IsAuthenticated from ..models import SellService from ..serializers.sells_service import SellServiceSerializer class SellServiceViewSet(mixins.CreateModelMixin, mixins.RetrieveModelMixin, ...
32.2
61
0.678571
87661de03b49e2c8c7717b7e28891c6d8820781f
346
py
Python
ProjectApplication/project_core/migrations/0129_person_position_meta.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-07-29T10:00:11.000Z
2022-02-19T11:00:34.000Z
ProjectApplication/project_core/migrations/0129_person_position_meta.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
471
2019-09-20T14:37:28.000Z
2022-03-25T14:16:34.000Z
ProjectApplication/project_core/migrations/0129_person_position_meta.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-03-15T12:42:47.000Z
2022-02-15T18:06:52.000Z
# Generated by Django 3.0.5 on 2020-07-29 09:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('project_core', '0128_add_supervisor_for_project'), ] operations = [ migrations.AlterModelOptions( name='personposition', opt...
19.222222
60
0.612717
52aaf1a71f15e2230e4e86a7639c6c47a109a6b6
24,330
py
Python
src/snowflake/connector/auth.py
fermezz/snowflake-connector-python
bc9616ad568b23cb8a931d2d590041f6bac1cff9
[ "Apache-2.0" ]
null
null
null
src/snowflake/connector/auth.py
fermezz/snowflake-connector-python
bc9616ad568b23cb8a931d2d590041f6bac1cff9
[ "Apache-2.0" ]
null
null
null
src/snowflake/connector/auth.py
fermezz/snowflake-connector-python
bc9616ad568b23cb8a931d2d590041f6bac1cff9
[ "Apache-2.0" ]
1
2021-03-25T14:00:15.000Z
2021-03-25T14:00:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import codecs import copy import json import logging import tempfile import time import uuid from datetime import datetime from os import getenv, makedirs, mkdir, path, remove, removedirs, rmdir fro...
36.476762
106
0.573942
f6bf78736b51e03f33441bb36bfa767b00c3eff1
1,295
py
Python
modules/commands/unmonitor.py
FuelRats/FIDO
bc2e58a931e77c6e688ae5bdfe110c5e6be082e6
[ "BSD-3-Clause" ]
1
2020-01-21T13:32:53.000Z
2020-01-21T13:32:53.000Z
modules/commands/unmonitor.py
FuelRats/FIDO
bc2e58a931e77c6e688ae5bdfe110c5e6be082e6
[ "BSD-3-Clause" ]
null
null
null
modules/commands/unmonitor.py
FuelRats/FIDO
bc2e58a931e77c6e688ae5bdfe110c5e6be082e6
[ "BSD-3-Clause" ]
3
2019-12-03T21:08:52.000Z
2020-10-04T18:08:04.000Z
from typing import List from config import IRC import fido from modules.access import require_permission, Levels from models import SessionManager from models import monitor import logging log = logging.getLogger(__name__) @require_permission(level=Levels.OP, message='DENIED!') async def invoke(bot: fido, channel: ...
32.375
95
0.680309
54a39cae8d4d528e10ebdd2aea125c89d481da69
9,708
py
Python
lib/rucio/core/monitor.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
lib/rucio/core/monitor.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
lib/rucio/core/monitor.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright CERN since 2013 # # 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 ...
32.577181
142
0.68047
40ae4c9c131db48b0ad73f7fa9e6c637d62398a7
121
py
Python
wsgi.py
alberand/issmap
13a848df10497db764807305e87816f15b9bca50
[ "MIT" ]
null
null
null
wsgi.py
alberand/issmap
13a848df10497db764807305e87816f15b9bca50
[ "MIT" ]
6
2018-08-16T06:14:39.000Z
2020-08-02T16:56:10.000Z
wsgi.py
alberand/issmap
13a848df10497db764807305e87816f15b9bca50
[ "MIT" ]
null
null
null
import os from issmap import app application = app if __name__ == '__main__': app.run(host=os.environ['ISS_HOST'])
15.125
40
0.710744
76d7d8f021579257dedd5cd67eff536874cf80dd
47
py
Python
opensourcetest/httpmodel/Common/StringOption/__init__.py
chineseluo/opensourcetest
b0d222c8b29ff8f70a740ac2b1588a437d41b761
[ "Apache-2.0" ]
69
2020-10-20T14:25:49.000Z
2022-02-18T02:50:20.000Z
opensourcetest/uimodel/TestCases/__init__.py
aoozoo/opensourcetest
6eaff706c9397847834ef3eef7ad57d5b7f5c5a3
[ "Apache-2.0" ]
6
2020-11-23T06:56:09.000Z
2022-03-16T04:33:53.000Z
opensourcetest/uimodel/TestCases/__init__.py
aoozoo/opensourcetest
6eaff706c9397847834ef3eef7ad57d5b7f5c5a3
[ "Apache-2.0" ]
8
2021-02-01T03:23:20.000Z
2022-02-18T02:50:47.000Z
#!/user/bin/env python # -*- coding: utf-8 -*-
15.666667
23
0.553191
c6c5ce05827ad52f44fbbda1790752740b94f228
7,825
py
Python
cirq/protocols/qid_shape_protocol.py
matpompili/Cirq
b9ce387a7fc1f571b3d6e903c46543c3578677cb
[ "Apache-2.0" ]
3
2020-09-26T03:56:28.000Z
2020-09-27T13:21:04.000Z
cirq/protocols/qid_shape_protocol.py
matpompili/Cirq
b9ce387a7fc1f571b3d6e903c46543c3578677cb
[ "Apache-2.0" ]
1
2020-08-11T15:45:17.000Z
2020-08-11T15:45:17.000Z
cirq/protocols/qid_shape_protocol.py
matpompili/Cirq
b9ce387a7fc1f571b3d6e903c46543c3578677cb
[ "Apache-2.0" ]
1
2020-03-12T07:06:14.000Z
2020-03-12T07:06:14.000Z
# Copyright 2019 The Cirq Developers # # 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 ...
42.297297
80
0.678211
ef622f78caedf50dc394cd57b429f75d4c64207d
5,526
py
Python
src/spouts/iter_files_mails.py
fedelemantuano/spamscope
ffbfc53b9a3503ef3041cee94c6726c8b899118d
[ "Apache-2.0" ]
252
2016-08-29T06:40:31.000Z
2022-03-28T10:02:12.000Z
src/spouts/iter_files_mails.py
fedelemantuano/spamscope
ffbfc53b9a3503ef3041cee94c6726c8b899118d
[ "Apache-2.0" ]
19
2016-08-30T21:58:50.000Z
2021-05-24T10:30:55.000Z
src/spouts/iter_files_mails.py
fedelemantuano/spamscope
ffbfc53b9a3503ef3041cee94c6726c8b899118d
[ "Apache-2.0" ]
59
2016-10-18T06:02:10.000Z
2022-02-12T21:27:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2019 Fedele Mantuano (https://www.linkedin.com/in/fmantuano/) 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/...
32.892857
79
0.55067
87ec9f8ceb6a80693ab1d8713cafde297390ab7b
13,695
py
Python
sdk/lusid_asyncio/models/order_graph_placement.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/order_graph_placement.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/order_graph_placement.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3923 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
34.847328
220
0.639503
2c21d665c4b9385ec51cc661066c90b23591595f
460
py
Python
main.py
rodrigues-aline/sort
9d743125db94098e45fc7417ac18015f2aa5f8bf
[ "MIT" ]
null
null
null
main.py
rodrigues-aline/sort
9d743125db94098e45fc7417ac18015f2aa5f8bf
[ "MIT" ]
null
null
null
main.py
rodrigues-aline/sort
9d743125db94098e45fc7417ac18015f2aa5f8bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from time import sleep from context_sort import ContextSort if __name__=="__main__": """ Author: Aline Rodrigues Created: 20/10/2021 Run the context sort """ sort = ContextSort() try: #sort.init_sort() # while not sort....
20.909091
39
0.556522
1ff15ca445c9defb7726b77917f52f77cd9dd4db
1,195
py
Python
generalization/experiments/config_utils.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
330
2020-09-14T23:10:16.000Z
2022-03-30T19:49:19.000Z
generalization/experiments/config_utils.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
52
2020-09-30T06:10:51.000Z
2022-03-31T19:25:16.000Z
generalization/experiments/config_utils.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
119
2020-09-24T04:54:46.000Z
2022-03-31T21:46:57.000Z
# 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...
32.297297
74
0.729707
4e42dbd526bdeae5e630472ad73ef9693992ba3d
1,375
py
Python
tests/bugs/issue_79/test_ozone_missing_signal.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/bugs/issue_79/test_ozone_missing_signal.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/bugs/issue_79/test_ozone_missing_signal.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import pandas as pd import numpy as np import pyaf.ForecastEngine as autof csvfile_link = "https://raw.githubusercontent.com/antoinecarme/pyaf/master/data/ozone-la_missing_signal.csv" csvfile_link = "data/ozone-la_missing_signal.csv" df = pd.read_csv(csvfile_link); import dat...
26.960784
108
0.760727
878be1d66da4b53094c6a0d7291721285420cb6d
2,137
py
Python
GenerateGraph.py
MrPool702/TrabajoFinal
2aed36b928243cba7b8d1f1b17ecbef7ee02f8d6
[ "CC0-1.0" ]
2
2021-10-02T20:01:55.000Z
2021-10-02T20:01:58.000Z
GenerateGraph.py
MrPool702/TrabajoFinal
2aed36b928243cba7b8d1f1b17ecbef7ee02f8d6
[ "CC0-1.0" ]
34
2021-09-27T22:48:27.000Z
2021-11-27T19:33:17.000Z
GenerateGraph.py
MrPool702/TrabajoFinal
2aed36b928243cba7b8d1f1b17ecbef7ee02f8d6
[ "CC0-1.0" ]
null
null
null
class Point: def __init__(self,x,y,types,ide) -> None: self.x = x self.y = y self.type = types self.id = ide def getID(self): return self.id def getX(self): return self.x def getY(self): return self.y def getType(self): ret...
29.273973
109
0.500234
287b74d090343ead913378c65fdc37a44cf39cbf
876
py
Python
pwkit/environments/casa/cscript_setjy.py
pkgw/pwk
c5a2c25c9b42cb08bd9813e5b8c51c13163fa1f1
[ "MIT" ]
18
2016-03-21T20:06:02.000Z
2022-02-12T19:00:40.000Z
pwkit/environments/casa/cscript_setjy.py
pkgw/pwk
c5a2c25c9b42cb08bd9813e5b8c51c13163fa1f1
[ "MIT" ]
8
2016-08-06T19:12:00.000Z
2019-03-18T19:10:57.000Z
pwkit/environments/casa/cscript_setjy.py
pkgw/pwk
c5a2c25c9b42cb08bd9813e5b8c51c13163fa1f1
[ "MIT" ]
8
2015-01-05T19:23:31.000Z
2020-04-02T21:01:38.000Z
# -*- mode: python; coding: utf-8 -*- # Copyright 2016 Peter Williams <peter@newton.cx> and collaborators # Licensed under the MIT License """This file is a casapy script. Do not use it as a module. It is also not intended to be invoked directly through pkcasascript. See `pwkit.environments.casa.tasks:setjy`. We can...
35.04
75
0.746575
dd7f6929523cbb265fb7dce560b671487d10d825
306
py
Python
naughty_string_validator/utils/file_utils.py
shashikumarraja/naughty-string-validator-python
8b0fad299aa64e99b3f8dda9f3dad7f7bef8b9af
[ "MIT" ]
1
2021-11-25T03:43:56.000Z
2021-11-25T03:43:56.000Z
naughty_string_validator/utils/file_utils.py
shashikumarraja/naughty-string-validator-python
8b0fad299aa64e99b3f8dda9f3dad7f7bef8b9af
[ "MIT" ]
16
2018-09-02T18:04:09.000Z
2020-05-26T05:59:34.000Z
naughty_string_validator/utils/file_utils.py
shashikumarraja/naughty-string-validator-python
8b0fad299aa64e99b3f8dda9f3dad7f7bef8b9af
[ "MIT" ]
5
2018-09-04T08:03:31.000Z
2022-02-14T10:31:28.000Z
import json import io class FileUtils: def __init__(self): pass def read_file(self, path): try: with io.open(path, 'r', encoding='utf8') as f: content = json.loads(f.read()) return content except IOError as e: raise e
18
58
0.522876
be05e85923e01e8be65cfd648743e93314b2a780
10,285
py
Python
src/dddql_tictactoe_agent.py
InsaneMonster/TicTacToeRL
2c1a7da40f32d8ff8dbb5aaafcae5a4f16d20bf2
[ "BSD-3-Clause" ]
null
null
null
src/dddql_tictactoe_agent.py
InsaneMonster/TicTacToeRL
2c1a7da40f32d8ff8dbb5aaafcae5a4f16d20bf2
[ "BSD-3-Clause" ]
null
null
null
src/dddql_tictactoe_agent.py
InsaneMonster/TicTacToeRL
2c1a7da40f32d8ff8dbb5aaafcae5a4f16d20bf2
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (C) 2019 Luca Pasqualini # University of Siena - Artificial Intelligence Laboratory - SAILab # # # TicTacToeRL project is licensed under a BSD 3-Clause. # # You should have received a copy of the license along with this # work. If not, see <https://opensource.org/licenses/BSD-3-Clause>. # Import packages...
47.615741
164
0.601945
e601fc552bb332e867b17bbb67463edcef9146a7
10,364
py
Python
docker/sds-api/spine-directory-service/sds/request/tests/request_handler_test_base.py
NHSDigital/elecronic-prescriptions-service-api
41fb4b02cfdb674b2a787dd2d8dd698a8c7a59b0
[ "MIT" ]
2
2020-08-18T09:23:09.000Z
2020-11-23T11:43:27.000Z
docker/sds-api/spine-directory-service/sds/request/tests/request_handler_test_base.py
NHSDigital/elecronic-prescriptions-service-api
41fb4b02cfdb674b2a787dd2d8dd698a8c7a59b0
[ "MIT" ]
179
2020-07-01T08:53:50.000Z
2022-03-11T14:18:39.000Z
docker/sds-api/spine-directory-service/sds/request/tests/request_handler_test_base.py
NHSDigital/elecronic-prescriptions-service-api
41fb4b02cfdb674b2a787dd2d8dd698a8c7a59b0
[ "MIT" ]
3
2020-07-22T14:00:41.000Z
2021-12-15T15:15:06.000Z
import json import unittest.mock import uuid from abc import ABC from typing import Optional import tornado.testing import tornado.web from request import routing_reliability_handler, accredited_system_handler from request.http_headers import HttpHeaders from utilities import message_utilities ORG_CODE = "org" SPINE...
49.826923
192
0.690178
57ae140f0542b97b5e9d5be0ebce3d49c123602f
8,740
py
Python
frozen/uasyncio/__init__.py
joewez/FunWithMicroPython
11f36165376929bcfac15445034d1cd352734c44
[ "MIT" ]
null
null
null
frozen/uasyncio/__init__.py
joewez/FunWithMicroPython
11f36165376929bcfac15445034d1cd352734c44
[ "MIT" ]
null
null
null
frozen/uasyncio/__init__.py
joewez/FunWithMicroPython
11f36165376929bcfac15445034d1cd352734c44
[ "MIT" ]
null
null
null
import uerrno import uselect as select import usocket as _socket from uasyncio.core import * DEBUG = 0 log = None def set_debug(val): global DEBUG, log DEBUG = val if val: import logging log = logging.getLogger("uasyncio") class PollEventLoop(EventLoop): def __in...
33.615385
90
0.53833
de269554a2bcbe41b931f7b856c594e361798b6c
1,184
py
Python
src/template/TestCases.py
adityayedetore/LCRNN
7b6afaf6098fed584b90fe0196cfd26aa6a190c5
[ "MIT" ]
41
2018-08-30T10:29:21.000Z
2022-01-19T08:49:33.000Z
src/template/TestCases.py
billptw/FastTrees
776cf513a78b6941308f3e9781deeffa7c45a492
[ "BSD-3-Clause" ]
1
2021-12-09T06:14:45.000Z
2021-12-09T09:33:35.000Z
src/template/TestCases.py
billptw/FastTrees
776cf513a78b6941308f3e9781deeffa7c45a492
[ "BSD-3-Clause" ]
17
2018-09-10T19:11:26.000Z
2021-12-23T06:32:24.000Z
class TestCase(): def __init__(self): self.agrmt_cases = ['obj_rel_across_anim', 'obj_rel_within_anim', 'obj_rel_across_inanim', 'obj_rel_within_inanim', 'subj_rel', 'p...
42.285714
60
0.402027
2a2a766c5dd5617081098cfe36a49d2ec19d00d1
2,970
py
Python
examples/shorty/utils.py
adityavs/werkzeug
03bf010f239255049b62f41e37e2e53006ad2398
[ "BSD-3-Clause" ]
1
2020-08-08T21:54:22.000Z
2020-08-08T21:54:22.000Z
examples/shorty/utils.py
adityavs/werkzeug
03bf010f239255049b62f41e37e2e53006ad2398
[ "BSD-3-Clause" ]
null
null
null
examples/shorty/utils.py
adityavs/werkzeug
03bf010f239255049b62f41e37e2e53006ad2398
[ "BSD-3-Clause" ]
null
null
null
from os import path from random import randrange from random import sample from jinja2 import Environment from jinja2 import FileSystemLoader from sqlalchemy import MetaData from sqlalchemy.orm import create_session from sqlalchemy.orm import scoped_session from werkzeug.local import Local from werkzeug.local import L...
26.517857
80
0.688552
7c9c73b49d75e9519a015dcaa64a36d23af5b1c3
8,226
py
Python
src/amplitude/plugin.py
bohan-amplitude/Amplitude-Python
8eb6e5242d77a84d6516dce96e8b8411e6fc1247
[ "MIT" ]
null
null
null
src/amplitude/plugin.py
bohan-amplitude/Amplitude-Python
8eb6e5242d77a84d6516dce96e8b8411e6fc1247
[ "MIT" ]
null
null
null
src/amplitude/plugin.py
bohan-amplitude/Amplitude-Python
8eb6e5242d77a84d6516dce96e8b8411e6fc1247
[ "MIT" ]
null
null
null
"""Amplutide plugin module. Provide base class to implement customized plugin Classes: Plugin: Base class of all plugins. EventPlugin: Base class to implement plugins that modify and enrich events. DestinationPlugin: Base class to implement plugins that send events to customized destinations. Amplitude...
35.921397
117
0.682835
d61d7668e99a14c1b21c58a0fde624d6f2a526e9
2,036
py
Python
controllers/line_detection.py
luispmb/orc
28a8c19f7884b5235e7d1b1cdda3584ab83e09c1
[ "MIT" ]
null
null
null
controllers/line_detection.py
luispmb/orc
28a8c19f7884b5235e7d1b1cdda3584ab83e09c1
[ "MIT" ]
null
null
null
controllers/line_detection.py
luispmb/orc
28a8c19f7884b5235e7d1b1cdda3584ab83e09c1
[ "MIT" ]
null
null
null
#DEPENDENCIES ####################################################################################################################### import sys sys.path.insert(0, '..') import os import numpy as np from functions_line_detection import line_preprocessing, line_preprocessing_advanced, line_detector from line_brea...
36.357143
138
0.641454
bc2325da34534e9fdc648d3fd547cf81082c2b0a
1,950
py
Python
kt/keypoint/visualization.py
tkianai/tk-cv
b8b264b59e119396440071c3aa6cf9978c2fddad
[ "MIT" ]
2
2019-09-25T12:18:04.000Z
2020-04-25T05:30:56.000Z
kt/keypoint/visualization.py
tkianai/tk-cv
b8b264b59e119396440071c3aa6cf9978c2fddad
[ "MIT" ]
null
null
null
kt/keypoint/visualization.py
tkianai/tk-cv
b8b264b59e119396440071c3aa6cf9978c2fddad
[ "MIT" ]
null
null
null
"""This visualize the keypoints, including pose, face, hand and so on """ import os import cv2 import numpy as np def show_keypoints_over_image( img, points, skeletons=None, point_radius=3, point_color=(0, 255, 0), line_width=2, line_color=None, ): """Plot keypoints on image ...
30
95
0.549231
e9469ab68f2f1e7851c2ce45333d79fdf5af79fe
206
py
Python
eg1.py
thuyatun/python-exercise
fd411ff815012b461934277d5e8e0591270a09e4
[ "MIT" ]
null
null
null
eg1.py
thuyatun/python-exercise
fd411ff815012b461934277d5e8e0591270a09e4
[ "MIT" ]
null
null
null
eg1.py
thuyatun/python-exercise
fd411ff815012b461934277d5e8e0591270a09e4
[ "MIT" ]
null
null
null
class dog: legs = 4 def _init_(self, name, color): self.name = name self.color = color fido = dog("fido", "brown") print(fido.legs) print(dog.legs)
18.727273
35
0.495146
bf48b9a689cfcb45352e5a2f2833dae725f10bbf
8,043
py
Python
ucf101/evaluate_ucf101_rgb_ALSTM.py
QUVA-Lab/VideoLSTM
fcacf9be37cff634652ff4e08c694de91627900f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ucf101/evaluate_ucf101_rgb_ALSTM.py
QUVA-Lab/VideoLSTM
fcacf9be37cff634652ff4e08c694de91627900f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ucf101/evaluate_ucf101_rgb_ALSTM.py
QUVA-Lab/VideoLSTM
fcacf9be37cff634652ff4e08c694de91627900f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
__author__ = 'zhenyang' import theano import theano.tensor as TT import sys sys.path.append('../') import sparnn import sparnn.utils from sparnn.utils import * from sparnn.iterators import VideoDataIterator from sparnn.layers import InterfaceLayer from sparnn.layers import FeedForwardLayer from sparnn.layers import ...
37.409302
117
0.647395
a42daebe592d289f6bfeb3011d1d4800cc6f718b
9,922
py
Python
src/asm.py
dalehumby/d8
1b8e09270ddeccdad2aaa932f8085bb761e84cf6
[ "MIT" ]
null
null
null
src/asm.py
dalehumby/d8
1b8e09270ddeccdad2aaa932f8085bb761e84cf6
[ "MIT" ]
null
null
null
src/asm.py
dalehumby/d8
1b8e09270ddeccdad2aaa932f8085bb761e84cf6
[ "MIT" ]
1
2022-02-06T15:46:17.000Z
2022-02-06T15:46:17.000Z
#!/usr/local/bin/python3 """ Assembler for the D8 CPU Usage: $ python asm.py file.asm This generates - file.d8 - file.hex in the same folder as file.asm .asm files need to conform to the grammar as defined in grammar.lark Once assembled, the d8 file can be used by emulate.py to run the emulator, of in GUI mode ...
31.398734
109
0.63082
98347491ee00b66d2c2f8df69ddf663c1bffbd84
2,062
py
Python
youtube_dl/extractor/yourporn.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
66,635
2019-03-10T21:34:18.000Z
2022-03-31T23:50:31.000Z
youtube_dl/extractor/yourporn.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
10,936
2019-03-10T21:35:47.000Z
2022-03-31T23:46:52.000Z
youtube_dl/extractor/yourporn.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
15,194
2019-03-10T21:09:27.000Z
2022-03-31T22:13:49.000Z
from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( parse_duration, urljoin, ) class YourPornIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?sxyprn\.com/post/(?P<id>[^/?#&.]+)' _TESTS = [{ 'url': 'https://sxyprn....
30.323529
76
0.511154
a0461b6a541d3e470541ee898e1088456beeef13
686
py
Python
arbitrage/public_markets/brokercny.py
abaoj/bitcoin-arbitrage
cf19f3a388b34b3587c8fc0363254a72236451d7
[ "Unlicense" ]
126
2017-06-23T09:10:58.000Z
2021-12-21T19:06:35.000Z
arbitrage/public_markets/brokercny.py
lism/bitcoin-arbitrage
cf19f3a388b34b3587c8fc0363254a72236451d7
[ "Unlicense" ]
1
2020-06-04T11:05:45.000Z
2020-06-04T11:05:45.000Z
arbitrage/public_markets/brokercny.py
lism/bitcoin-arbitrage
cf19f3a388b34b3587c8fc0363254a72236451d7
[ "Unlicense" ]
65
2017-06-23T09:11:03.000Z
2021-11-20T04:11:20.000Z
# Copyright (C) 2017, JackYao <yaozihao@yaozihao.cn> import urllib.request import urllib.error import urllib.parse import json from .market import Market import lib.broker_api as exchange_api class BrokerCNY(Market): def __init__(self): super().__init__('CNY') self.update_rate = 1 exchange...
25.407407
55
0.623907
07c647ce69a7953844e2410038cdedb89e2ef82e
27,157
py
Python
Bio/AlignIO/StockholmIO.py
bioinf-mcb/biopython
1a1f4a7ee4e0efba517d3d607c56c27e72e399cc
[ "BSD-3-Clause" ]
1
2018-04-16T20:05:30.000Z
2018-04-16T20:05:30.000Z
Bio/AlignIO/StockholmIO.py
cosign070128/biopython
2f02e34ba76306e9c27eec9e051809bec2cece9b
[ "BSD-3-Clause" ]
9
2020-05-05T00:54:23.000Z
2020-06-09T17:10:45.000Z
Bio/AlignIO/StockholmIO.py
cosign070128/biopython
2f02e34ba76306e9c27eec9e051809bec2cece9b
[ "BSD-3-Clause" ]
3
2020-06-29T13:07:46.000Z
2021-06-14T20:11:55.000Z
# Copyright 2006-2016 by Peter Cock. All rights reserved. # Revisions copyright 2015 by Ben Woodcroft. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should ha...
42.366615
127
0.562249
ea1b3873ea7c932432efa1ad369f8963f7400c5e
68,175
py
Python
mindhome_alpha/erpnext/stock/doctype/stock_entry/stock_entry.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/stock/doctype/stock_entry/stock_entry.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/stock/doctype/stock_entry/stock_entry.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, erpnext import frappe.defaults from frappe import _ from frappe.utils import cstr, cint, flt, comma_or, getdate, nowdate, formatdate, for...
39.453125
166
0.729138
63e9569808a16bb20cfecdef8295a922bd868ed6
97
py
Python
data_structures/queue_/__init__.py
kirkirey/programming-for-linguists
d97c59738713fab725073e9c88c7321119a648fc
[ "Apache-2.0" ]
null
null
null
data_structures/queue_/__init__.py
kirkirey/programming-for-linguists
d97c59738713fab725073e9c88c7321119a648fc
[ "Apache-2.0" ]
null
null
null
data_structures/queue_/__init__.py
kirkirey/programming-for-linguists
d97c59738713fab725073e9c88c7321119a648fc
[ "Apache-2.0" ]
4
2021-02-09T12:00:34.000Z
2021-05-21T18:59:38.000Z
""" Programming for linguists Queue module """ from data_structures.queue_.queue_ import Queue_
13.857143
48
0.793814
e59a465795b7e36a311ab9412c93ca3d0b507bb6
147
py
Python
organization/tests.py
adborden/WeVoteBase
7fd612aee1d3638c8a74cc81873ce0687f62cf33
[ "MIT" ]
null
null
null
organization/tests.py
adborden/WeVoteBase
7fd612aee1d3638c8a74cc81873ce0687f62cf33
[ "MIT" ]
null
null
null
organization/tests.py
adborden/WeVoteBase
7fd612aee1d3638c8a74cc81873ce0687f62cf33
[ "MIT" ]
1
2020-03-04T00:22:39.000Z
2020-03-04T00:22:39.000Z
# organization/tests.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from django.test import TestCase # Create your tests here.
18.375
37
0.693878
75a179a5da29a1551f8341d7bd43bb0d603a8c45
3,242
py
Python
src/keras_models.py
pietrobarbiero/ghcore
f1d4dad55b44b26d416cb038650635a80d842f58
[ "Apache-2.0" ]
null
null
null
src/keras_models.py
pietrobarbiero/ghcore
f1d4dad55b44b26d416cb038650635a80d842f58
[ "Apache-2.0" ]
null
null
null
src/keras_models.py
pietrobarbiero/ghcore
f1d4dad55b44b26d416cb038650635a80d842f58
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 21 21:30:31 2018 @authors: Barbiero Pietro and Ciravegna Gabriele """ """Train a convnet on the MNIST database with ResNets. ResNets are a bit overkill for this problem, but this illustrates how to use the Residual wrapper on ConvNets. See: https://github.com/fchollet/k...
34.126316
88
0.708822
602de68499540ba188c620decb8737a7d1e2fbae
21,846
py
Python
tapiriik/services/Endomondo/endomondo.py
jjbrunton/tapiriik
e7669f0d97801545137ae020dc4ce1262def0620
[ "Apache-2.0" ]
11
2019-08-05T15:38:25.000Z
2022-03-12T09:50:02.000Z
tapiriik/services/Endomondo/endomondo.py
jjbrunton/tapiriik
e7669f0d97801545137ae020dc4ce1262def0620
[ "Apache-2.0" ]
31
2019-03-05T20:38:11.000Z
2022-03-21T09:41:23.000Z
tapiriik/services/Endomondo/endomondo.py
jjbrunton/tapiriik
e7669f0d97801545137ae020dc4ce1262def0620
[ "Apache-2.0" ]
8
2019-03-05T08:20:07.000Z
2021-08-18T08:20:17.000Z
from tapiriik.settings import WEB_ROOT, ENDOMONDO_CLIENT_KEY, ENDOMONDO_CLIENT_SECRET, SECRET_KEY from tapiriik.services.service_base import ServiceAuthenticationType, ServiceBase from tapiriik.services.interchange import UploadedActivity, ActivityType, ActivityStatistic, ActivityStatisticUnit, Waypoint, WaypointType, ...
47.491304
814
0.648448
bcdd1f7194133e20658dad27344d1d9dc2fc25a3
45,925
py
Python
neptune/experiments.py
pitercl/neptune-client
1e3e105bdaad7f7ea50500646e3fd1ad298f0b4a
[ "Apache-2.0" ]
null
null
null
neptune/experiments.py
pitercl/neptune-client
1e3e105bdaad7f7ea50500646e3fd1ad298f0b4a
[ "Apache-2.0" ]
null
null
null
neptune/experiments.py
pitercl/neptune-client
1e3e105bdaad7f7ea50500646e3fd1ad298f0b4a
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019, Neptune Labs Sp. z o.o. # # 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.79636
120
0.607795
19cc84f7bdff709ce60e418b0bb642225b767b69
6,408
py
Python
megnet/utils/descriptor.py
dgaines2/megnet
b2fd0903c743237646a1f5a9cfafc9614da182ed
[ "BSD-3-Clause" ]
1
2021-07-29T13:44:07.000Z
2021-07-29T13:44:07.000Z
megnet/utils/descriptor.py
dgaines2/megnet
b2fd0903c743237646a1f5a9cfafc9614da182ed
[ "BSD-3-Clause" ]
47
2021-08-16T13:24:24.000Z
2022-03-30T13:19:20.000Z
megnet/utils/descriptor.py
a-ws-m/megnet
25893c6b2b5d842d7662e6baf0c4f87bee94c22f
[ "BSD-3-Clause" ]
null
null
null
""" This module implements atom/bond/structure-wise descriptor calculated from pretrained megnet model """ import os from typing import Union, Dict import numpy as np from tensorflow.keras.models import Model from megnet.models import MEGNetModel, GraphModel from megnet.utils.typing import StructureOrMolecule DEFAU...
35.208791
118
0.618602
b68b9a1569d6f0883b58a1cdf73ef5c22d56a813
2,445
py
Python
ml_service/pipelines/run_train_pipeline.py
hmcdowelle/MLOps
927a412ae1b0d4412811a06df2cc4f97198ccd13
[ "MIT" ]
791
2019-05-07T06:45:51.000Z
2022-03-31T01:52:05.000Z
ml_service/pipelines/run_train_pipeline.py
hmcdowelle/MLOps
927a412ae1b0d4412811a06df2cc4f97198ccd13
[ "MIT" ]
254
2019-05-08T01:26:49.000Z
2022-03-25T01:51:30.000Z
ml_service/pipelines/run_train_pipeline.py
hmcdowelle/MLOps
927a412ae1b0d4412811a06df2cc4f97198ccd13
[ "MIT" ]
902
2019-05-06T21:24:07.000Z
2022-03-31T06:35:12.000Z
from azureml.pipeline.core import PublishedPipeline from azureml.core import Experiment, Workspace import argparse from ml_service.util.env_variables import Env def main(): parser = argparse.ArgumentParser("register") parser.add_argument( "--output_pipeline_id_file", type=str, default...
33.040541
105
0.631902
c56a1d7d6cb4c82b112e1bb9855378209aceda20
302
py
Python
digest/management/commands/mark_all_cls_off.py
PURNA-ROCK/pythondigest
ba21758a25a47de19800b208c420f16d6688a16b
[ "MIT" ]
124
2015-08-17T19:41:16.000Z
2022-01-12T00:25:52.000Z
digest/management/commands/mark_all_cls_off.py
PURNA-ROCK/pythondigest
ba21758a25a47de19800b208c420f16d6688a16b
[ "MIT" ]
62
2015-08-17T02:13:20.000Z
2020-04-17T19:07:40.000Z
digest/management/commands/mark_all_cls_off.py
PURNA-ROCK/pythondigest
ba21758a25a47de19800b208c420f16d6688a16b
[ "MIT" ]
73
2015-08-18T13:50:47.000Z
2021-09-27T14:09:47.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.management.base import BaseCommand from digest.models import ItemClsCheck class Command(BaseCommand): help = 'lala' def handle(self, *args, **options): ItemClsCheck.objects.all().update(status=False)
21.571429
55
0.725166
9e034e5c3bb7c3d714bcc33e8142d40f347187de
1,845
py
Python
FigureGeneration/makeFigure8.py
federatedcloud/Lake_Problem_DPS
07600c49ed543165ccdc642c1097b3bed87c28f0
[ "BSD-3-Clause" ]
null
null
null
FigureGeneration/makeFigure8.py
federatedcloud/Lake_Problem_DPS
07600c49ed543165ccdc642c1097b3bed87c28f0
[ "BSD-3-Clause" ]
3
2018-10-03T21:12:42.000Z
2019-07-08T21:32:43.000Z
FigureGeneration/makeFigure8.py
federatedcloud/Lake_Problem_DPS
07600c49ed543165ccdc642c1097b3bed87c28f0
[ "BSD-3-Clause" ]
2
2020-06-29T17:30:42.000Z
2020-06-30T22:01:49.000Z
import numpy as np import matplotlib.pyplot as plt def makeFigure8(): IT = 100*np.loadtxt('./../Re-evaluation/ITrobustness.txt',delimiter=' ') DPS = 100*np.loadtxt('./../Re-evaluation/DPSrobustness.txt',delimiter=' ') titles = ['a) Economic Benefits > 0.2','b) Reliability > 95%','c) Economic Be...
48.552632
123
0.592954
0a1874a2e1a5b3278153f8dba2acc3ee3c56bbbc
932
py
Python
tests/test_classify.py
Sunkist-Cherry/Spam-Filter
8246824e7b50b84be6697bb4cc2a6381ddcd0ca9
[ "MIT" ]
433
2019-07-23T06:51:05.000Z
2022-03-29T03:43:49.000Z
tests/test_classify.py
Sunkist-Cherry/Spam-Filter
8246824e7b50b84be6697bb4cc2a6381ddcd0ca9
[ "MIT" ]
7
2019-09-06T09:34:02.000Z
2022-01-19T07:16:04.000Z
tests/test_classify.py
Sunkist-Cherry/Spam-Filter
8246824e7b50b84be6697bb4cc2a6381ddcd0ca9
[ "MIT" ]
34
2019-08-27T09:50:29.000Z
2022-03-25T01:55:35.000Z
import os import unittest import cherry from unittest import mock from cherry import classify from sklearn.exceptions import NotFittedError class ClassifyTest(unittest.TestCase): def setUp(self): pass # __init__() @mock.patch('cherry.classifyer.Classify._classify') @mock.patch('cherry.class...
31.066667
75
0.717811
9b54a0cadf04ec19da55832b20293b2d87891e46
2,512
py
Python
examples/adxbuyer/v201502/basic_operations/get_third_party_redirect_ads.py
coxmediagroup/googleads-python-lib
f85d5d8ab771e93b03b616ef65e2d3082aeef484
[ "Apache-2.0" ]
1
2015-08-12T14:47:40.000Z
2015-08-12T14:47:40.000Z
examples/adxbuyer/v201502/basic_operations/get_third_party_redirect_ads.py
coxmediagroup/googleads-python-lib
f85d5d8ab771e93b03b616ef65e2d3082aeef484
[ "Apache-2.0" ]
1
2020-07-24T15:10:10.000Z
2020-07-24T15:10:10.000Z
examples/adxbuyer/v201502/basic_operations/get_third_party_redirect_ads.py
coxmediagroup/googleads-python-lib
f85d5d8ab771e93b03b616ef65e2d3082aeef484
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
29.904762
80
0.658041
65b6363837947ff3ae28563ca801c189d67e7f9b
5,652
py
Python
deep_staple/preprocessing/tools/VS_Seg/preprocessing/TCIA_data_convert_into_convenient_folder_structure.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
deep_staple/preprocessing/tools/VS_Seg/preprocessing/TCIA_data_convert_into_convenient_folder_structure.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
deep_staple/preprocessing/tools/VS_Seg/preprocessing/TCIA_data_convert_into_convenient_folder_structure.py
multimodallearning/deep_staple
a27ed9e214bbac96aeab122b05b59b0222cce5c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import os from glob import glob from natsort import natsorted import pydicom import shutil import re import argparse parser = argparse.ArgumentParser(description='Create a new folder that contains the whole TCIA dataset in a more convenient folder structure') parser.add_argument('...
33.642857
195
0.637473
e01b867ecad0758ba56f6a7671654e5318fd07f5
754
py
Python
apps/inventory/admin.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
null
null
null
apps/inventory/admin.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
6
2020-06-07T15:18:58.000Z
2021-09-22T19:07:33.000Z
apps/inventory/admin.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Stock, ReplenishLog @admin.register(Stock) class StockAdmin(admin.ModelAdmin): list_display = ( 'id', 'name', 'desc', 'nums', 'merchant', 'created_at', 'updated_at', ) list_filter = ('created_at',...
20.378378
46
0.566313
73b90773872f9e426fa66c8731a4cda42b3774fd
951
py
Python
GeeksforGeeks/Rotate by 90 degree.py
rayvantsahni/Competitive-Programming-Codes
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
1
2021-07-05T14:01:36.000Z
2021-07-05T14:01:36.000Z
GeeksforGeeks/Rotate by 90 degree.py
rayvantsahni/Competitive-Programming-and-Interview-Prep
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
null
null
null
GeeksforGeeks/Rotate by 90 degree.py
rayvantsahni/Competitive-Programming-and-Interview-Prep
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
null
null
null
#User function Template for python3 class Solution: #Function to rotate matrix anticlockwise by 90 degrees. def rotateby90(self,a, n): # code here for row in a: row.reverse() for i in range(n): for j in range(i, n): a[j][i], ...
23.775
59
0.477392
8ac3ef2bc842bbda05dd93214a82e64e39fd52bc
468
py
Python
resolwe/flow/migrations/0026_data_scheduled.py
zagm/resolwe
da371a3ec0260a45ccab848704c6a339a0de79cc
[ "Apache-2.0" ]
null
null
null
resolwe/flow/migrations/0026_data_scheduled.py
zagm/resolwe
da371a3ec0260a45ccab848704c6a339a0de79cc
[ "Apache-2.0" ]
null
null
null
resolwe/flow/migrations/0026_data_scheduled.py
zagm/resolwe
da371a3ec0260a45ccab848704c6a339a0de79cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2019-02-07 02:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flow', '0025_entity_type'), ] operations = [ migrations.AddField( ...
22.285714
77
0.617521
7ef499d250916f8848465134f10fae51f3b9c691
5,965
py
Python
ImageCaptioning/tools/hdf5_manager.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
2
2020-09-09T16:33:47.000Z
2021-02-27T17:58:52.000Z
ImageCaptioning/tools/hdf5_manager.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
1
2020-06-12T12:11:59.000Z
2020-06-12T12:11:59.000Z
ImageCaptioning/tools/hdf5_manager.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
1
2021-03-05T11:07:17.000Z
2021-03-05T11:07:17.000Z
import json import numpy as np import os import re import h5py import config _split_file_pattern = re.compile(r'.*?\.hdf5_[0-9]+$') _db_name_filter = re.compile(r'(.*?)\.hdf5[_0-9]*$') _db_index_filter = re.compile(r'.*?\.hdf5_([0-9]+)$') _use_float16 = True class Hdf5Manager: def __init__(self...
34.883041
110
0.543671
cc7aced628ea3b546a731726256ec6e038870717
5,680
py
Python
nova/tests/unit/test_test.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/test_test.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/tests/unit/test_test.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
3
2018-01-29T00:44:44.000Z
2020-07-24T01:19:20.000Z
# 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 may # not use this file except in compliance with the License. You may obtain # a ...
30.537634
79
0.530458
1096c470d6778d02afbd59de1d2fa9b6aca73749
12,119
py
Python
train.py
izzykayu/fairseq-py
7e86e30cc5b97db30403b738de2dbbb55f06a92b
[ "BSD-3-Clause" ]
3
2018-03-11T23:01:50.000Z
2021-07-17T05:58:03.000Z
train.py
sliedes/fairseq-py
b7993be19ce87f1d6e35aaa3d42aeceab04d6f94
[ "BSD-3-Clause" ]
null
null
null
train.py
sliedes/fairseq-py
b7993be19ce87f1d6e35aaa3d42aeceab04d6f94
[ "BSD-3-Clause" ]
1
2021-04-06T22:56:56.000Z
2021-04-06T22:56:56.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the 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. # import co...
41.081356
99
0.63124
f3521936a16f8972d4aa3c9a46ed4b4d79d9e902
7,103
py
Python
predict.py
Artamus/fpointnet-tiny
61d210193c58ccfd9db5a3af99f12bf2b7093783
[ "MIT" ]
1
2021-02-19T14:44:04.000Z
2021-02-19T14:44:04.000Z
predict.py
Artamus/fpointnet-tiny
61d210193c58ccfd9db5a3af99f12bf2b7093783
[ "MIT" ]
null
null
null
predict.py
Artamus/fpointnet-tiny
61d210193c58ccfd9db5a3af99f12bf2b7093783
[ "MIT" ]
1
2019-09-17T17:03:32.000Z
2019-09-17T17:03:32.000Z
import os import argparse import preprocessing import time import numpy as np import tensorflow as tf from fpointnet_tiny_functional import get_compiled_model from scipy import stats def read_raw_data(data_path, allowed_class, sample_limit=None): data_filenames = sorted(os.listdir(data_path)) data_filenames =...
32.884259
148
0.693651
04c17b1bdfc1d55d6054ac102d3abcb953c411e3
503
py
Python
Day1/hellopython.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
Day1/hellopython.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
Day1/hellopython.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
# 30 days of python # Day 1 print(2 + 3) print(3 - 2) print(-2 - 3) print(2 * 3) print(3 / 2) print(3 % 2) print(3 // 2) print(3 ** 2) print('Hafiz Muhammad') print('Azeem') print('Pakistan -> United Arab Emirates -> oo') print('30 days python') print(type(10)) print(type(9.8)) print(type(3.14)) print(type(4-4j)) pr...
17.964286
47
0.624254
68c5f295645fea5bdbb143d324ce91fc6e9101b7
8,160
py
Python
caffe2/python/parallel_workers.py
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
58
2019-01-03T02:20:41.000Z
2022-02-25T14:24:13.000Z
caffe2/python/parallel_workers.py
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
27
2018-04-14T06:44:22.000Z
2018-08-01T18:02:39.000Z
caffe2/python/parallel_workers.py
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
23
2018-04-13T10:47:31.000Z
2021-05-06T08:38:06.000Z
# Copyright (c) 2016-present, Facebook, 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...
27.29097
80
0.636152
d92249e728b743bce9764f30eab79800d5ad0fae
1,941
py
Python
main.py
yunzhe99/Hadoop_Scheduling
938afd0fa21f5c6a845e4f0d0a44a3b0355cd63b
[ "MIT" ]
null
null
null
main.py
yunzhe99/Hadoop_Scheduling
938afd0fa21f5c6a845e4f0d0a44a3b0355cd63b
[ "MIT" ]
null
null
null
main.py
yunzhe99/Hadoop_Scheduling
938afd0fa21f5c6a845e4f0d0a44a3b0355cd63b
[ "MIT" ]
null
null
null
from env import ResourceScheduler from sample_fun import sol_init, sample from tools import maxtf_job import numpy as np from SA import SAoptimizer import joblib rs = ResourceScheduler(taskType=1, caseID=2) b=rs.max_k block_size=rs.dataSize s_list=rs.Sc if rs.taskType==2: s_t=rs.St alpha=rs.alpha block_location=...
28.544118
109
0.66306
311abc1fc7388b2f9cd5fc18f98816c45bf4c455
1,120
py
Python
tests/iosxe/ogacl/configure/unconfigure_ipv6_object_group_service/test_api_unconfigure_ipv6_object_group_service.py
patrickboertje/genielibs
61c37aacf3dd0f499944555e4ff940f92f53dacb
[ "Apache-2.0" ]
1
2022-01-16T10:00:24.000Z
2022-01-16T10:00:24.000Z
tests/iosxe/ogacl/configure/unconfigure_ipv6_object_group_service/test_api_unconfigure_ipv6_object_group_service.py
patrickboertje/genielibs
61c37aacf3dd0f499944555e4ff940f92f53dacb
[ "Apache-2.0" ]
null
null
null
tests/iosxe/ogacl/configure/unconfigure_ipv6_object_group_service/test_api_unconfigure_ipv6_object_group_service.py
patrickboertje/genielibs
61c37aacf3dd0f499944555e4ff940f92f53dacb
[ "Apache-2.0" ]
null
null
null
import unittest from pyats.topology import loader from genie.libs.sdk.apis.iosxe.ogacl.configure import unconfigure_ipv6_object_group_service class TestUnconfigureIpv6ObjectGroupService(unittest.TestCase): @classmethod def setUpClass(self): testbed = """ devices: Intrepid-DUT-1: ...
32
97
0.625893
0838311e26678251e7dd30ffbd30606878e06a84
2,920
py
Python
solace/settings.py
burhan/solace
40d2bc025ac3a78e67602f374c32355badafb4d2
[ "BSD-3-Clause" ]
null
null
null
solace/settings.py
burhan/solace
40d2bc025ac3a78e67602f374c32355badafb4d2
[ "BSD-3-Clause" ]
null
null
null
solace/settings.py
burhan/solace
40d2bc025ac3a78e67602f374c32355badafb4d2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ solace.settings ~~~~~~~~~~~~~~~ This module just stores the solace settings. :copyright: (c) 2010 by the Solace Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import with_statement del with_statement # propagate ear...
32.087912
74
0.630137
322dda659558109f88d9fdc1b584c49ba748b072
722
py
Python
apps/medicamento/admin.py
alejandrobolivar/sist_inv_coesbicop
36a068f21adb28f1f711b540841786538dbf8411
[ "CC0-1.0" ]
null
null
null
apps/medicamento/admin.py
alejandrobolivar/sist_inv_coesbicop
36a068f21adb28f1f711b540841786538dbf8411
[ "CC0-1.0" ]
null
null
null
apps/medicamento/admin.py
alejandrobolivar/sist_inv_coesbicop
36a068f21adb28f1f711b540841786538dbf8411
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin # Register your models here. from apps.medicamento.models import Medicamento #admin.site.register(Medicamento) @admin.register(Medicamento) class PostAdmin(admin.ModelAdmin): list_display = ('cod_med', 'principio_activo_med', 'nombre_comercial_med', 'nombre_lab_med', 'grupo_med',...
45.125
150
0.760388
c7398dfa47738ab48740491b48f0b4a71fa3332a
4,003
py
Python
adaptive/learner/sequence_learner.py
basnijholt-test/adaptive
80a91bb44bc800b95b552642e9776fc7fd4aecef
[ "BSD-3-Clause" ]
null
null
null
adaptive/learner/sequence_learner.py
basnijholt-test/adaptive
80a91bb44bc800b95b552642e9776fc7fd4aecef
[ "BSD-3-Clause" ]
null
null
null
adaptive/learner/sequence_learner.py
basnijholt-test/adaptive
80a91bb44bc800b95b552642e9776fc7fd4aecef
[ "BSD-3-Clause" ]
null
null
null
from copy import copy from sortedcontainers import SortedDict, SortedSet from adaptive.learner.base_learner import BaseLearner class _IgnoreFirstArgument: """Remove the first argument from the call signature. The SequenceLearner's function receives a tuple ``(index, point)`` but the original function o...
30.557252
78
0.629028
450723fc0136c243ab32fee2770ed050fc254f08
3,148
py
Python
py/src/ai/h2o/sparkling/ml/params/H2OGBMParams.py
salliewalecka/sparkling-water
497306fbc7f4f374fe367f1303289db13be4ec48
[ "Apache-2.0" ]
null
null
null
py/src/ai/h2o/sparkling/ml/params/H2OGBMParams.py
salliewalecka/sparkling-water
497306fbc7f4f374fe367f1303289db13be4ec48
[ "Apache-2.0" ]
null
null
null
py/src/ai/h2o/sparkling/ml/params/H2OGBMParams.py
salliewalecka/sparkling-water
497306fbc7f4f374fe367f1303289db13be4ec48
[ "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 us...
32.791667
99
0.711245
30c7ce6aa3f59f399672445360e7e1cc45a67021
2,136
py
Python
elifinokuzu/dictionary/models.py
lyk2018-python/elifin-okuzu
8eb54e47ba013e403b0f0c939587df5fe47c743a
[ "MIT" ]
28
2018-07-22T16:55:26.000Z
2022-03-13T22:48:00.000Z
elifinokuzu/dictionary/models.py
iamnotagentleman/elifin-okuzu
8eb54e47ba013e403b0f0c939587df5fe47c743a
[ "MIT" ]
49
2018-07-23T13:57:51.000Z
2022-01-13T08:38:08.000Z
elifinokuzu/dictionary/models.py
iamnotagentleman/elifin-okuzu
8eb54e47ba013e403b0f0c939587df5fe47c743a
[ "MIT" ]
52
2018-07-22T13:14:25.000Z
2021-03-15T02:18:31.000Z
from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ LANGUAGE_CHOICES = ( ('tr', _('Turkish')), ('ar', _('Arabic')), ('gr', _('Greek')), ('fr', _('French')), ('en', _('English')), ('de', _('German')), ('pl', _('Polish')), ...
23.733333
56
0.560393
ab493d0856581dc4c87bcf8dcffe12309d6cca2f
1,842
py
Python
cli/tests/tests_env_vars/test_agent.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
null
null
null
cli/tests/tests_env_vars/test_agent.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
1
2022-01-24T11:26:47.000Z
2022-03-18T23:17:58.000Z
cli/tests/tests_env_vars/test_agent.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
34.754717
74
0.709555
8442df3bcc44c7902260d84d1b88e68071e96e9a
14,239
py
Python
PGCAltas/utils/StatExpr/StatProcessor/FeaturesProcessor/processors.py
IzayoiRin/PGCAltas
44d1ac826c64f0eb67d129861895fae37221a4a2
[ "MIT" ]
null
null
null
PGCAltas/utils/StatExpr/StatProcessor/FeaturesProcessor/processors.py
IzayoiRin/PGCAltas
44d1ac826c64f0eb67d129861895fae37221a4a2
[ "MIT" ]
5
2020-02-12T03:23:40.000Z
2020-08-06T00:50:15.000Z
PGCAltas/utils/StatExpr/StatProcessor/FeaturesProcessor/processors.py
IzayoiRin/PGCAltas
44d1ac826c64f0eb67d129861895fae37221a4a2
[ "MIT" ]
null
null
null
import copy import pickle import numpy as np import sklearn.preprocessing as pp import sklearn.impute as ipt import sklearn.ensemble as esb from sklearn.decomposition import PCA from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from sklearn.manifold import TSNE from sklearn.decomposition import Trun...
32.658257
105
0.59007
ad882d43321cb57134d71a5e4b1ea836e0e8c2c2
1,803
py
Python
generate_report.py
IsaacLuo/daily_trade_reporting_engine_practice
54947da71bcae23f6d5dfed9babc9a3f956c60de
[ "MIT" ]
null
null
null
generate_report.py
IsaacLuo/daily_trade_reporting_engine_practice
54947da71bcae23f6d5dfed9babc9a3f956c60de
[ "MIT" ]
null
null
null
generate_report.py
IsaacLuo/daily_trade_reporting_engine_practice
54947da71bcae23f6d5dfed9babc9a3f956c60de
[ "MIT" ]
null
null
null
"""generate report shows: Amount in USD settled incoming everyday Amount in USD settled outgoing everyday Ranking of entities based on incoming and outgoing amount. """ import sys def generate_report(data): """ Args: data: the sample_data dict """ #sort data by amount for item i...
35.352941
85
0.589018
bb8e93342d22ce0f95fa0c5b8d7c0eea58888822
10,412
py
Python
mkt/ratings/views.py
oremj/zamboni
a751dc6d22f7af947da327b0a091cbab0a999f49
[ "BSD-3-Clause" ]
null
null
null
mkt/ratings/views.py
oremj/zamboni
a751dc6d22f7af947da327b0a091cbab0a999f49
[ "BSD-3-Clause" ]
null
null
null
mkt/ratings/views.py
oremj/zamboni
a751dc6d22f7af947da327b0a091cbab0a999f49
[ "BSD-3-Clause" ]
null
null
null
from django import http from django.core.exceptions import PermissionDenied from django.shortcuts import get_object_or_404, redirect import commonware.log import jingo from tower import ugettext as _ from access import acl import amo import amo.log from amo.urlresolvers import reverse from addons.decorators import ad...
40.356589
79
0.596331
484164613fe2d5a49f8066285a4e743772357283
69
py
Python
miasma/__init__.py
bmcfee/miasma
4a98e7bb94006733f60d94db5b7ad43ff3f600c4
[ "BSD-3-Clause" ]
1
2018-10-16T10:32:02.000Z
2018-10-16T10:32:02.000Z
miasma/__init__.py
bmcfee/miasma
4a98e7bb94006733f60d94db5b7ad43ff3f600c4
[ "BSD-3-Clause" ]
null
null
null
miasma/__init__.py
bmcfee/miasma
4a98e7bb94006733f60d94db5b7ad43ff3f600c4
[ "BSD-3-Clause" ]
null
null
null
# CREATED: 2/20/17 19:02 by Justin Salamon <justin.salamon@nyu.edu>
23
67
0.724638
927d4759106a14aa8dacc06c6a3f6eaa47c53b19
3,523
py
Python
helpers/date_time_helper.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
31
2020-07-20T14:11:39.000Z
2022-03-17T03:18:33.000Z
helpers/date_time_helper.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
null
null
null
helpers/date_time_helper.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
11
2020-07-20T14:11:52.000Z
2022-03-14T04:20:19.000Z
from datetime import datetime, timedelta from dateutil import tz import pytz import calendar import math TIME_FORMAT = "%Y-%m-%dT%H:%M:%S" SHORT_DATE_TIME_FORMAT_START = "%d %b, %H:%M" SHORT_TIME_FORMAT_START = "%H:%M" DATE_TIME_FORMAT = "%d %b," def str_to_date_time(date_time_str, from_time_format=TIME_FORMAT): ...
28.642276
113
0.741981
912ab6d5f0731325af070ed6324ec22fe819bb95
534
py
Python
src/libs/common.py
spunkmars/django-spms
95ac193891f93da07c3a26feeaf846e6030f3466
[ "BSD-3-Clause" ]
23
2020-04-14T07:50:38.000Z
2022-01-27T09:07:19.000Z
src/libs/common.py
bjzhangyong/django-spms
95ac193891f93da07c3a26feeaf846e6030f3466
[ "BSD-3-Clause" ]
8
2021-03-19T09:01:16.000Z
2022-02-10T12:28:55.000Z
src/libs/common.py
bjzhangyong/django-spms
95ac193891f93da07c3a26feeaf846e6030f3466
[ "BSD-3-Clause" ]
6
2020-04-14T13:34:29.000Z
2022-01-25T04:05:16.000Z
# coding=utf-8 from hashlib import md5 import time def create_uuid(*args): id = md5() timestamp = time.time() m_str = None if args: m_str = '%s%f' % (''.join(args).encode('utf-8'), timestamp) else: m_str = '%f' % timestamp m_str = m_str.encode('utf-8') id.up...
19.777778
68
0.544944
d160492804f1233f74a2ec0f1d2362777e27ced6
8,838
py
Python
train_extract_model.py
ys10/GCIClassify
a66b1a257ac26b10732a68228721023b99f67a8e
[ "MIT" ]
null
null
null
train_extract_model.py
ys10/GCIClassify
a66b1a257ac26b10732a68228721023b99f67a8e
[ "MIT" ]
null
null
null
train_extract_model.py
ys10/GCIClassify
a66b1a257ac26b10732a68228721023b99f67a8e
[ "MIT" ]
null
null
null
# coding=utf-8 import argparse import os import tensorflow as tf import tqdm from feature_extraction.extract_model import ExtractModel from feature_extraction.data_set import get_testing_set from model_loader import load_model, save_model from data_set_args import get_rab_set_args, get_ked_set_args,\ get_bdl_set_...
60.122449
127
0.676171
d82f426c4f0aa7f954a9454d6c282f2fbc18f5d9
568
py
Python
depth_prediction/pytorch/encoding/nn/__init__.py
ygjwd12345/VISTA-Net
7b85ec10540eed03c93abcee1b0b41c3094bd578
[ "MIT" ]
13
2021-03-08T07:21:00.000Z
2021-12-13T07:52:52.000Z
depth_prediction/pytorch/encoding/nn/__init__.py
ygjwd12345/VISTA-Net
7b85ec10540eed03c93abcee1b0b41c3094bd578
[ "MIT" ]
null
null
null
depth_prediction/pytorch/encoding/nn/__init__.py
ygjwd12345/VISTA-Net
7b85ec10540eed03c93abcee1b0b41c3094bd578
[ "MIT" ]
2
2021-03-31T01:23:56.000Z
2021-04-13T15:57:26.000Z
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## ECE Department, Rutgers University ## Email: zhang.hang@rutgers.edu ## Copyright (c) 2017 ## ## This source code is licensed under the MIT-style license found in the ## LICENSE file in the root directory of this sou...
33.411765
75
0.547535
f2500ef16cbce4712be315a1a9d63401b9a716af
574
py
Python
kolibri/plugins/user_auth/views.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
545
2016-01-19T19:26:55.000Z
2022-03-20T00:13:04.000Z
kolibri/plugins/user_auth/views.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
8,329
2016-01-19T19:32:02.000Z
2022-03-31T21:23:12.000Z
kolibri/plugins/user_auth/views.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
493
2016-01-19T19:26:48.000Z
2022-03-28T14:35:05.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from django.views.generic.base import TemplateView from kolibri.core.views import RootURLRedirectView class UserAuthView(TemplateView): template_name = "user_auth/user_auth.html" def get(sel...
28.7
60
0.740418
cc8affc88025d82c500917a5cc8139fad12db775
3,832
py
Python
tests/test_query.py
cosadiz69/pytube
501cc62f1e6f23b47abecc634767307d89e48165
[ "MIT-0" ]
null
null
null
tests/test_query.py
cosadiz69/pytube
501cc62f1e6f23b47abecc634767307d89e48165
[ "MIT-0" ]
null
null
null
tests/test_query.py
cosadiz69/pytube
501cc62f1e6f23b47abecc634767307d89e48165
[ "MIT-0" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for the :class:`StreamQuery <StreamQuery>` class.""" import pytest def test_count(cipher_signature): """Ensure :meth:`~pytube.StreamQuery.count` returns an accurate amount.""" assert cipher_signature.streams.count() == 22 @pytest.mark.parametrize( 'test_input,expect...
32.474576
78
0.591075
14957a50105ca0a0c194a4e749e1d3e7b5530ce7
5,439
py
Python
AppServer/_python_runtime.py
echoi-appscale/appscale
bff3d6a9d42b0c2dd58796c4fc6aa1ddd2c00bcc
[ "Apache-2.0" ]
3
2016-06-12T01:18:49.000Z
2018-07-16T18:20:23.000Z
AppServer/_python_runtime.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
null
null
null
AppServer/_python_runtime.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1
2020-05-25T02:59:15.000Z
2020-05-25T02:59:15.000Z
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
29.559783
79
0.691487
9ee7968fe3c0186d9fe092c7871739afc7b39c27
8,036
py
Python
tests/ode_test.py
joshuagornall/jax
c97cd0a526c12ad81988fd58c1c66df4ddd71813
[ "ECL-2.0", "Apache-2.0" ]
14
2021-04-24T03:26:39.000Z
2022-01-28T14:25:13.000Z
tests/ode_test.py
joshuagornall/jax
c97cd0a526c12ad81988fd58c1c66df4ddd71813
[ "ECL-2.0", "Apache-2.0" ]
20
2021-08-17T20:31:56.000Z
2022-03-31T11:56:24.000Z
tests/ode_test.py
joshuagornall/jax
c97cd0a526c12ad81988fd58c1c66df4ddd71813
[ "ECL-2.0", "Apache-2.0" ]
2
2020-08-04T13:36:09.000Z
2020-11-04T02:58:55.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.513725
89
0.621578
90c3a62712c78bdd3a02f4e32897b46d96df8c6b
276
py
Python
tests/artificial/transf_Integration/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_Integration_ConstantTrend_7__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Integration/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_Integration_ConstantTrend_7__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Integration/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_Integration_ConstantTrend_7__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 7, transform = "Integration", sigma = 0.0, exog_count = 100, ar_order = 0);
39.428571
171
0.73913
2755eda48119f9d087571943619e9b66904f7715
17
py
Python
pyitm/__init__.py
tmd224/pyitm
2930765eb6cb5c9d0c02b10c64f62ec9f985ce2b
[ "MIT" ]
3
2020-05-29T18:02:17.000Z
2021-02-07T13:11:08.000Z
pyitm/__init__.py
tmd224/pyitm
2930765eb6cb5c9d0c02b10c64f62ec9f985ce2b
[ "MIT" ]
1
2022-03-29T08:57:24.000Z
2022-03-29T08:57:24.000Z
pyitm/__init__.py
tmd224/pyitm
2930765eb6cb5c9d0c02b10c64f62ec9f985ce2b
[ "MIT" ]
2
2021-08-30T13:20:20.000Z
2022-03-29T08:45:04.000Z
from . import itm
17
17
0.764706