hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b6de8abddf7d5e259b6503a613b0a68263ccb8d2
1,196
py
Python
src/gsyslyzer_cli.py
hanxuzjuckc/gsyslyzer
ddd061c0914a7d6fc73dc8e5f07069e7740ca928
[ "Apache-2.0" ]
1
2020-07-24T20:56:15.000Z
2020-07-24T20:56:15.000Z
src/gsyslyzer_cli.py
hanxuzjuckc/gsyslyzer
ddd061c0914a7d6fc73dc8e5f07069e7740ca928
[ "Apache-2.0" ]
2
2020-08-04T20:49:02.000Z
2020-08-06T16:24:19.000Z
src/gsyslyzer_cli.py
hanxuzjuckc/gsyslyzer
ddd061c0914a7d6fc73dc8e5f07069e7740ca928
[ "Apache-2.0" ]
1
2021-03-01T18:54:21.000Z
2021-03-01T18:54:21.000Z
""" Module for defining the CLI usage. """ import argparse class Gsyslyzer: """ Object for building and running a complete sifting pipeline Attributes ---------- builder: SifterBuilder object for bulding the LogSifter flags: object storing attributes given as cli flags""" ...
38.580645
93
0.576923
2c865207902af4fa5a64b0bf7cae6b57f9b5fa47
49,650
py
Python
lib/antlr3/recognizers.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
6
2015-09-19T18:22:33.000Z
2020-11-29T15:21:17.000Z
lib/antlr3/recognizers.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2015-08-04T08:03:46.000Z
2015-08-04T08:03:46.000Z
lib/antlr3/recognizers.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2019-12-09T08:27:09.000Z
2019-12-09T08:27:09.000Z
"""ANTLR3 runtime package""" # begin[licence] # # [The "BSD licence"] # Copyright (c) 2005-2006 Terence Parr # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code ...
34.842105
84
0.609507
c005aaac6515d0b281c170f61dcaac050b225fa8
3,359
py
Python
chainspotter/chain.py
uSasha/chainspotter
102753ff32e4181586ce7302bc31658f5ab8e536
[ "BSD-2-Clause" ]
null
null
null
chainspotter/chain.py
uSasha/chainspotter
102753ff32e4181586ce7302bc31658f5ab8e536
[ "BSD-2-Clause" ]
null
null
null
chainspotter/chain.py
uSasha/chainspotter
102753ff32e4181586ce7302bc31658f5ab8e536
[ "BSD-2-Clause" ]
null
null
null
import inspect import logging import time from typing import List import redis logger = logging.getLogger('drainpipe') class ClickChain: """ Redis Streams wrapper to track, store and query by count or time user-item interactions history """ def __init__(self, prefix: str, redis_connection: redis.cli...
37.741573
107
0.615064
e441c3a79d1f5cdf2451bbe11db39dff013a1a00
5,266
py
Python
deep_sort.py
absallh/A_yolov3
550ec41de42b8efe638e887c51a568189947e049
[ "Apache-2.0" ]
6
2019-12-30T14:26:23.000Z
2021-09-14T04:48:20.000Z
deep_sort.py
absallh/A_yolov3
550ec41de42b8efe638e887c51a568189947e049
[ "Apache-2.0" ]
1
2020-01-13T10:44:30.000Z
2020-12-08T10:54:10.000Z
deep_sort.py
absallh/A_yolov3
550ec41de42b8efe638e887c51a568189947e049
[ "Apache-2.0" ]
3
2020-04-01T06:10:32.000Z
2020-10-18T05:02:16.000Z
import os import cv2 import time import argparse import torch import numpy as np from predict import InferYOLOv3 from utils.utils import xyxy2xywh from deep_sort import DeepSort from utils.utils_sort import COLORS_10, draw_bboxes os.environ["CUDA_VISIBLE_DEVICES"] = "0" class Detector(object): def __init__(self,...
36.825175
78
0.539878
4e3199120c6ceb1b294ec53f6a7d114bb59926a9
4,496
py
Python
src/conda_package_handling/conda_fmt.py
leej3/conda-package-handling
75b15b506d9f4ebfc5f3657077814dc0e4c33eb2
[ "BSD-3-Clause" ]
null
null
null
src/conda_package_handling/conda_fmt.py
leej3/conda-package-handling
75b15b506d9f4ebfc5f3657077814dc0e4c33eb2
[ "BSD-3-Clause" ]
1
2021-08-23T05:41:14.000Z
2021-08-23T05:41:14.000Z
src/conda_package_handling/conda_fmt.py
leej3/conda-package-handling
75b15b506d9f4ebfc5f3657077814dc0e4c33eb2
[ "BSD-3-Clause" ]
1
2019-09-18T08:08:07.000Z
2019-09-18T08:08:07.000Z
"""The 'new' conda format, introduced in late 2018/early 2019. Spec at https://anaconda.atlassian.net/wiki/spaces/AD/pages/90210540/Conda+package+format+v2""" import json import os from tempfile import NamedTemporaryFile try: from zipfile import ZipFile, BadZipFile, ZIP_STORED except ImportError: # py27 compa...
43.650485
99
0.643016
d9af5c50ebc758ce23967ceeae4676133fe937bb
1,443
py
Python
chia_tea/watchdog/collection/api/update_from_wallet.py
Tea-n-Tech/chia-tea
a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96
[ "BSD-3-Clause" ]
6
2021-08-05T21:31:15.000Z
2021-11-15T20:54:25.000Z
chia_tea/watchdog/collection/api/update_from_wallet.py
Tea-n-Tech/chia-tea
a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96
[ "BSD-3-Clause" ]
49
2021-08-05T19:33:08.000Z
2022-03-30T19:33:38.000Z
chia_tea/watchdog/collection/api/update_from_wallet.py
Tea-n-Tech/chia-tea
a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96
[ "BSD-3-Clause" ]
1
2022-01-09T17:08:32.000Z
2022-01-09T17:08:32.000Z
from chia.rpc.wallet_rpc_client import WalletRpcClient from chia.util.config import load_config from chia.util.default_root import DEFAULT_ROOT_PATH from chia.util.ints import uint16 from ....models.ChiaWatchdog import ChiaWatchdog from .shared_settings import API_EXCEPTIONS async def update_from_wallet(chia_dog: Ch...
34.357143
86
0.71587
4c6366e958f30ced5fc8c6c5a75b4e95867a4f29
4,079
py
Python
tests/test_google_lifesciences.py
cokelaer/snakemake
d030443548a9851a82bcce618b24a9e24a8b545d
[ "MIT" ]
null
null
null
tests/test_google_lifesciences.py
cokelaer/snakemake
d030443548a9851a82bcce618b24a9e24a8b545d
[ "MIT" ]
null
null
null
tests/test_google_lifesciences.py
cokelaer/snakemake
d030443548a9851a82bcce618b24a9e24a8b545d
[ "MIT" ]
null
null
null
import os import sys import tempfile from google.cloud import storage sys.path.insert(0, os.path.dirname(__file__)) from common import * def has_google_credentials(): return "GOOGLE_APPLICATION_CREDENTIALS" in os.environ google_credentials = pytest.mark.skipif( not has_google_credentials(), reason="S...
31.620155
96
0.690856
e2a9863d763d20b90a83b8fccf54a1db4e1d1970
603
py
Python
RankingSystem.py
PapaDoraemon/marina-AI
9f9281b5decf889a55d6c1bdbfe3a62adadd47f9
[ "Apache-2.0" ]
1
2020-09-04T12:42:54.000Z
2020-09-04T12:42:54.000Z
RankingSystem.py
PapaDoraemon/marina-AI
9f9281b5decf889a55d6c1bdbfe3a62adadd47f9
[ "Apache-2.0" ]
null
null
null
RankingSystem.py
PapaDoraemon/marina-AI
9f9281b5decf889a55d6c1bdbfe3a62adadd47f9
[ "Apache-2.0" ]
null
null
null
class RankingSystem(): def __init__(self, scoring_system, **kwargs): self.scoring_system = scoring_system self.setup(**kwargs) def setup(self, **kwargs): """ This has to be implemented to setup specific ranking system """ pass def scoreCandidates(self)...
23.192308
79
0.610282
22af828b83b93d22ce0795dc1a646b22e682f6bb
2,664
py
Python
snII_cosmo_tools/style.py
chvogl/snII_cosmo_tools
b688a4be96ce82a25f71964a9cbdbc7460dd140f
[ "BSD-3-Clause" ]
null
null
null
snII_cosmo_tools/style.py
chvogl/snII_cosmo_tools
b688a4be96ce82a25f71964a9cbdbc7460dd140f
[ "BSD-3-Clause" ]
null
null
null
snII_cosmo_tools/style.py
chvogl/snII_cosmo_tools
b688a4be96ce82a25f71964a9cbdbc7460dd140f
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from snII_cosmo_tools.tns_downloader import TNSDownloader survey_link_dict = { 'ALeRCE': 'http://alerce.online/vue/object/', 'ZTF': 'http://alerce.online/vue/object/', 'ATLAS': 'https://star.pst.qub.ac.uk/sne/atlas4/', 'Pan-STARRS1': 'https://star.pst.qub.ac.uk/sne/ps13pi/psdb/', ...
29.932584
77
0.584084
023412d3ace383dfe637364d7db942b5fcae29fa
17,317
py
Python
src/ralph/discovery/admin.py
fossabot/ralph
9ceeec52e3fc85a589c2e5766597a7c67c4e4aa2
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/admin.py
fossabot/ralph
9ceeec52e3fc85a589c2e5766597a7c67c4e4aa2
[ "Apache-2.0" ]
1
2019-08-14T10:03:45.000Z
2019-08-14T10:03:45.000Z
src/ralph/discovery/admin.py
fossabot/ralph
9ceeec52e3fc85a589c2e5766597a7c67c4e4aa2
[ "Apache-2.0" ]
1
2019-08-14T09:59:42.000Z
2019-08-14T09:59:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import re import logging from django import forms from django.conf import settings from django.contrib import admin from d...
28.43514
123
0.629035
34f8c0676ad136d2b9a8b0237fc7f33640a9bba0
4,087
py
Python
src/flashpolicies/views.py
ubernostrum/django-flashpolicies
f24fb80907a82c6894d08c58e25d085a18b11155
[ "BSD-3-Clause" ]
7
2015-04-07T22:18:02.000Z
2022-01-26T16:02:14.000Z
src/flashpolicies/views.py
ubernostrum/django-flashpolicies
f24fb80907a82c6894d08c58e25d085a18b11155
[ "BSD-3-Clause" ]
1
2017-06-05T01:41:10.000Z
2017-10-23T10:14:23.000Z
src/flashpolicies/views.py
ubernostrum/django-flashpolicies
f24fb80907a82c6894d08c58e25d085a18b11155
[ "BSD-3-Clause" ]
2
2016-09-24T18:36:17.000Z
2017-08-07T14:26:49.000Z
""" Views for generating and serving policy files. """ import warnings from typing import Iterable, Optional from django.http import HttpRequest, HttpResponse from . import policies def serve(request: HttpRequest, policy: policies.Policy) -> HttpResponse: """ Given a ``flashpolicies.policies.Policy`` inst...
30.051471
84
0.684854
20ce4e5f5d513192def8efe9845cc866f2290a37
3,203
py
Python
torchvision/datasets/semeion.py
iselic/vision
6651ac9265af1929cbc1f931a775f574ef71b8d8
[ "BSD-3-Clause" ]
21
2021-10-08T02:47:56.000Z
2022-03-29T14:17:04.000Z
torchvision/datasets/semeion.py
iselic/vision
6651ac9265af1929cbc1f931a775f574ef71b8d8
[ "BSD-3-Clause" ]
46
2020-10-20T09:52:53.000Z
2021-08-15T09:29:27.000Z
torchvision/datasets/semeion.py
iselic/vision
6651ac9265af1929cbc1f931a775f574ef71b8d8
[ "BSD-3-Clause" ]
9
2021-11-11T11:17:16.000Z
2022-03-08T04:26:10.000Z
from PIL import Image import os import os.path import numpy as np from typing import Any, Callable, Optional, Tuple from .vision import VisionDataset from .utils import download_url, check_integrity class SEMEION(VisionDataset): r"""`SEMEION <http://archive.ics.uci.edu/ml/datasets/semeion+handwritten+digit>`_ Dat...
34.44086
94
0.611926
9f63c20b910153b74d42185a82336bef3d689589
6,591
py
Python
JudgerServer/main.py
eetze/LPOJ
785f96e067a6ea376d03a982aede6fa2a2ea3613
[ "MIT" ]
1
2020-03-16T03:47:13.000Z
2020-03-16T03:47:13.000Z
JudgerServer/main.py
eetze/LPOJ
785f96e067a6ea376d03a982aede6fa2a2ea3613
[ "MIT" ]
null
null
null
JudgerServer/main.py
eetze/LPOJ
785f96e067a6ea376d03a982aede6fa2a2ea3613
[ "MIT" ]
null
null
null
# coding=utf-8 import MySQLdb from queue import Queue import socket import json from time import sleep import threading import os mutex = threading.Lock() # queue mutex queue = Queue() # 全局判题列表 myjsonfile = open("./setting.json", 'r') judgerjson = json.loads(myjsonfile.read()) if os.environ.get("DB_USER"): ju...
34.873016
186
0.5066
4384f3ec27c35fe736b6aad6c9e2601e86eae93e
5,876
py
Python
alipay/aop/api/domain/BatchSettleDetail.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/BatchSettleDetail.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/BatchSettleDetail.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class BatchSettleDetail(object): def __init__(self): self._amount = None self._currency = None self._error_code = None self._error_desc = None self...
33.386364
95
0.619469
a697aac7a8e404b0eaa92207ff02acec4924c664
6,637
py
Python
data_preprocess/linear_regression_with_drop_features.py
ColorOfLight/ML-term-project
047b22fcdd8df7a18abd224ccbf23ae5d981fc97
[ "MIT" ]
null
null
null
data_preprocess/linear_regression_with_drop_features.py
ColorOfLight/ML-term-project
047b22fcdd8df7a18abd224ccbf23ae5d981fc97
[ "MIT" ]
null
null
null
data_preprocess/linear_regression_with_drop_features.py
ColorOfLight/ML-term-project
047b22fcdd8df7a18abd224ccbf23ae5d981fc97
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn import preprocessing from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split class Linear_Regression_with_drop_features(object): def __init__(self): self.lm = None self.apartment_map = ...
45.14966
150
0.549043
83c499f8c16cda46c67caec67e7804d79177e0e3
6,186
py
Python
src/cmdtree/tests/unittest/test_parser.py
winkidney/cmdtree
8558be856f4c3044cf13d2d07a86b69877bb6491
[ "MIT" ]
63
2016-07-29T10:55:20.000Z
2021-06-28T09:11:48.000Z
src/cmdtree/tests/unittest/test_parser.py
winkidney/cmdtree
8558be856f4c3044cf13d2d07a86b69877bb6491
[ "MIT" ]
3
2016-09-22T08:42:18.000Z
2016-12-10T12:02:01.000Z
src/cmdtree/tests/unittest/test_parser.py
winkidney/cmdtree
8558be856f4c3044cf13d2d07a86b69877bb6491
[ "MIT" ]
3
2016-07-30T23:53:29.000Z
2016-08-30T11:03:39.000Z
import mock import pytest import six from cmdtree import parser from cmdtree.exceptions import ArgumentParseError def mk_obj(property_dict): class TestObject(object): pass obj = TestObject() for key, value in six.iteritems(property_dict): setattr(obj, key, value) return obj @pytest....
31.242424
101
0.575655
8ed26ff58b10a8a8bdd59f9146bb14e44647a4b2
170
py
Python
tags/models.py
nikita03565/projects_fair
e4a6095f804f500a0285332a5fab051b2b61acc1
[ "Apache-2.0" ]
null
null
null
tags/models.py
nikita03565/projects_fair
e4a6095f804f500a0285332a5fab051b2b61acc1
[ "Apache-2.0" ]
null
null
null
tags/models.py
nikita03565/projects_fair
e4a6095f804f500a0285332a5fab051b2b61acc1
[ "Apache-2.0" ]
null
null
null
from django.db import models class Tag(models.Model): name = models.CharField(max_length=50, help_text="Tag name") def __str__(self): return self.name
18.888889
64
0.694118
413a061fda8e652333a6c6bd5210473574aa0cc0
1,006
py
Python
data/train/python/413a061fda8e652333a6c6bd5210473574aa0cc0petfinder.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/413a061fda8e652333a6c6bd5210473574aa0cc0petfinder.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/413a061fda8e652333a6c6bd5210473574aa0cc0petfinder.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
""" This module takes the petfinder API and makes it python friendly. """" import pprint import requests import config API_BASE = "http://api.petfinder.com/" API_gettoken = API_BASE + "auth.getToken" API_getRandomPet = API_BASE + "pet.getRandom" API_getPet = API_BASE + "pet.get" API_findPet = API_BASE + "pet.find" A...
22.863636
65
0.701789
8f973e653d123f317558f78d0e838ce3720e9bb6
4,997
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_portgroup_facts.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_portgroup_facts.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_portgroup_facts.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata...
31.828025
131
0.647188
99ba37e03fe6baa42d22c06e7a1ed1e790b7e648
2,535
py
Python
factory/hooks.py
vineet79/factory
101a8985683b6d316ae281f03749786b884ff650
[ "MIT" ]
null
null
null
factory/hooks.py
vineet79/factory
101a8985683b6d316ae281f03749786b884ff650
[ "MIT" ]
null
null
null
factory/hooks.py
vineet79/factory
101a8985683b6d316ae281f03749786b884ff650
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "factory" app_title = "Factory" app_publisher = "Mayur" app_description = "MCPL" app_icon = "octicon octicon-beaker" app_color = "grey" app_email = "mayur@mittalclothing.com" app_license = "MIT" # Inclu...
21.125
84
0.658383
7f072ebb56b855f61e8c70cf6c11122faef0e28b
1,412
py
Python
main.py
marcelo-nugatti/bot-form
662a0d9b1b7673536f9189c007a3475617e12ba6
[ "MIT" ]
1
2020-04-15T20:00:26.000Z
2020-04-15T20:00:26.000Z
main.py
marcelo-nugatti/bot-form
662a0d9b1b7673536f9189c007a3475617e12ba6
[ "MIT" ]
null
null
null
main.py
marcelo-nugatti/bot-form
662a0d9b1b7673536f9189c007a3475617e12ba6
[ "MIT" ]
1
2020-06-05T05:08:38.000Z
2020-06-05T05:08:38.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- # BotForm from selenium import webdriver from selenium.webdriver.common.keys import Keys import time class BotForm(): def __init__(self): self.driver = webdriver.Chrome() def setUp(self): self.driver.get("https://ibo.pe/contacto") time.sleep(...
32.837209
133
0.626062
66c2adffaf27582f7a211da2f14fc61e6f502b60
184
py
Python
thecut/publishing/settings.py
exemplarysoftware/thecut-publishing
b4c9374870e07ddab1fef477da4b3aeb151fee04
[ "Apache-2.0" ]
null
null
null
thecut/publishing/settings.py
exemplarysoftware/thecut-publishing
b4c9374870e07ddab1fef477da4b3aeb151fee04
[ "Apache-2.0" ]
null
null
null
thecut/publishing/settings.py
exemplarysoftware/thecut-publishing
b4c9374870e07ddab1fef477da4b3aeb151fee04
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.conf import settings AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User')
26.285714
67
0.771739
2912e75eb8b68c190fb39a013c743d78ca16d7b8
393
py
Python
authors/wsgi.py
andela/ah-backend-odin
0e9ef1a10c8a3f6736999a5111736f7bd7236689
[ "BSD-3-Clause" ]
null
null
null
authors/wsgi.py
andela/ah-backend-odin
0e9ef1a10c8a3f6736999a5111736f7bd7236689
[ "BSD-3-Clause" ]
43
2018-10-25T10:14:52.000Z
2022-03-11T23:33:46.000Z
authors/wsgi.py
andela/ah-backend-odin
0e9ef1a10c8a3f6736999a5111736f7bd7236689
[ "BSD-3-Clause" ]
4
2018-10-29T07:04:58.000Z
2020-04-02T14:15:10.000Z
""" WSGI config for authors project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
21.833333
78
0.783715
6304e7aa60ea30a83c941aad7c12c965894f5e44
315
py
Python
planet_custom/tasks.py
PrinceofMath/planet-custom
43d17e6f8d49ca52edc2bb703244fb3f5cc62b8c
[ "MIT" ]
null
null
null
planet_custom/tasks.py
PrinceofMath/planet-custom
43d17e6f8d49ca52edc2bb703244fb3f5cc62b8c
[ "MIT" ]
null
null
null
planet_custom/tasks.py
PrinceofMath/planet-custom
43d17e6f8d49ca52edc2bb703244fb3f5cc62b8c
[ "MIT" ]
null
null
null
from planet import api import sys import os import requests import time import frappe apikey = '92e11e515ad344b386c19f0a4dce232c' client = api.ClientV1(api_key=apikey) item_type = ["PSScene4Band"] asset_type = 'visual' def create_daily_image(): locations = frappe.db.get_list("Location") print(locations)
19.6875
46
0.777778
569bba5b7e52f5eb6fe5763dddea3f9daa069647
6,319
py
Python
main.py
NedoProgrammer/InvertexIndex
5d918953d75cf9af334c4f6d3bf02116524b40b1
[ "MIT" ]
1
2021-05-01T21:54:34.000Z
2021-05-01T21:54:34.000Z
main.py
NedoProgrammer/InvertexIndex
5d918953d75cf9af334c4f6d3bf02116524b40b1
[ "MIT" ]
null
null
null
main.py
NedoProgrammer/InvertexIndex
5d918953d75cf9af334c4f6d3bf02116524b40b1
[ "MIT" ]
null
null
null
""" The main file where the inverted index could be created, or be opened for searching/editing. """ # Imports import argparse import inverted_index import time """ The function for create a new inverted index, based on the --dataset, --stop-words and --dump-to arguments from the argu...
43.881944
210
0.655167
32b675b350c83d1fabd76f225883a67d8580f693
87,614
py
Python
purity_fb/purity_fb_1dot11/apis/policies_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot11/apis/policies_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot11/apis/policies_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.11 Python SDK Pure Storage FlashBlade REST 1.11 Python SDK. Compatible with REST API versions 1.0 - 1.11. Developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/...
51.811946
253
0.617116
3ac6fbcd1d67c4961b8b51fe1ef7b211ad04d25c
4,171
py
Python
qa/rpc-tests/high_priority_transaction.py
jonspock/maza
0d857c3206691a7958f65d91527b6a689506e222
[ "MIT" ]
null
null
null
qa/rpc-tests/high_priority_transaction.py
jonspock/maza
0d857c3206691a7958f65d91527b6a689506e222
[ "MIT" ]
null
null
null
qa/rpc-tests/high_priority_transaction.py
jonspock/maza
0d857c3206691a7958f65d91527b6a689506e222
[ "MIT" ]
1
2020-08-31T04:49:06.000Z
2020-08-31T04:49:06.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test HighPriorityTransaction code # from test_framework.test_framework import BitcoinTestFramework from test_f...
38.981308
96
0.649964
0158c0532a9976cb2441237ee5a14e3871cbadaa
3,493
py
Python
app/api/utils/elevenST.py
semicolondsm/DDYZD_ERP_V2_Crawling_API
5dc25ddbfafd3fa32a116e6a9a73a073b3af3012
[ "MIT" ]
1
2021-03-31T06:37:56.000Z
2021-03-31T06:37:56.000Z
app/api/utils/elevenST.py
semicolonDSM/DDYZD_ERP_V2_Crawling_API
5dc25ddbfafd3fa32a116e6a9a73a073b3af3012
[ "MIT" ]
12
2021-05-13T07:05:55.000Z
2021-10-07T06:12:14.000Z
app/api/utils/elevenST.py
semicolonDSM/DDYZD_ERP_V2_Crawling_API
5dc25ddbfafd3fa32a116e6a9a73a073b3af3012
[ "MIT" ]
null
null
null
from .crawler import Crawler import requests import json import re class ElevenST(Crawler): def __init__(self, url): super().__init__(url) self.first_option_api = 'http://www.11st.co.kr/product/SellerProductDetailAjax.tmall?method=getTopOptionInfoJson&prdNo='+self.get_prd_no() self.sub_opti...
45.960526
146
0.591755
1db79a7460a8368a503fd89e2a4924fcacd78f99
25,184
py
Python
examples/pytorch/text-classification/run_glue.py
jecoz/transformers
47a1ebc9d83ecb030814cdd1ed4bef2be6c8ca09
[ "Apache-2.0" ]
1
2020-07-03T21:49:22.000Z
2020-07-03T21:49:22.000Z
examples/pytorch/text-classification/run_glue.py
amitness/transformers
cbfda413389830fc2788f82f49279c4c566b4194
[ "Apache-2.0" ]
5
2021-10-05T21:43:16.000Z
2021-12-15T15:20:32.000Z
examples/pytorch/text-classification/run_glue.py
amitness/transformers
cbfda413389830fc2788f82f49279c4c566b4194
[ "Apache-2.0" ]
1
2021-12-27T17:22:52.000Z
2021-12-27T17:22:52.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. 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/LI...
44.260105
119
0.667884
72f038764ddb0914afd9df9af347869985d7a8e5
5,366
py
Python
df_resources/callbacks.py
jtmahoney/segmentation_pipeline
284b43706f2ac8a179c9d7c122569a550cea0fb6
[ "MIT" ]
null
null
null
df_resources/callbacks.py
jtmahoney/segmentation_pipeline
284b43706f2ac8a179c9d7c122569a550cea0fb6
[ "MIT" ]
null
null
null
df_resources/callbacks.py
jtmahoney/segmentation_pipeline
284b43706f2ac8a179c9d7c122569a550cea0fb6
[ "MIT" ]
null
null
null
# From https://github.com/bckenstler/CLR from keras.callbacks import * class CyclicLR(Callback): """This callback implements a cyclical learning rate policy (CLR). The method cycles the learning rate between two boundaries with some constant frequency, as detailed in this paper (https://arxiv.org/abs/1506....
40.651515
116
0.58852
8d398afc75cad9e2a1a43e4c8b29afb125db0679
617
py
Python
setup.py
lozuponelab/q2-SCNIC
f8566e777557eecbdbffdabef10a15fa1622bd18
[ "BSD-3-Clause" ]
2
2021-02-22T03:25:19.000Z
2021-03-17T01:01:36.000Z
setup.py
lozuponelab/q2-SCNIC
f8566e777557eecbdbffdabef10a15fa1622bd18
[ "BSD-3-Clause" ]
null
null
null
setup.py
lozuponelab/q2-SCNIC
f8566e777557eecbdbffdabef10a15fa1622bd18
[ "BSD-3-Clause" ]
3
2020-10-05T22:57:28.000Z
2022-02-04T11:01:55.000Z
from setuptools import find_packages, setup import versioneer setup( name='q2-SCNIC', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), license='BSD-3-Clause', packages=find_packages(), author="Michael Shaffer, Kumar Thurimella", author_email="lozuponelab.dev@olucdenver....
26.826087
62
0.667747
d6fcb937a17428e164e2c2e17c38dc19ba62fc3c
319
py
Python
codes_/1217_Minimum_Cost_to_Move_Chips_to_The_Same_Position.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/1217_Minimum_Cost_to_Move_Chips_to_The_Same_Position.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/1217_Minimum_Cost_to_Move_Chips_to_The_Same_Position.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
# %% [1217. Minimum Cost to Move Chips to The Same Position](https://leetcode.com/problems/minimum-cost-to-move-chips-to-the-same-position/) class Solution: def minCostToMoveChips(self, position: List[int]) -> int: res = [0, 0] for i in position: res[i % 2] += 1 return min(res)
39.875
140
0.623824
d70fde8537ea031cd240baf770bb5a67556e8974
4,263
py
Python
aim/artifacts/utils.py
jaekyeom/aim
5b87b55ff7732f006a713878edec4608006b7dbb
[ "Apache-2.0" ]
null
null
null
aim/artifacts/utils.py
jaekyeom/aim
5b87b55ff7732f006a713878edec4608006b7dbb
[ "Apache-2.0" ]
2
2021-08-25T16:17:16.000Z
2022-02-10T05:49:55.000Z
aim/artifacts/utils.py
paulmchen/aim
53212cdce7a80cb8dadfaf7869a31fbf4ee6ce5b
[ "Apache-2.0" ]
1
2021-01-29T02:10:14.000Z
2021-01-29T02:10:14.000Z
from typing import Tuple, Any from aim.engine.utils import get_module def get_pt_tensor(t): if hasattr(t, 'is_cuda') and t.is_cuda: return t.cpu() return t def get_unique(a): np = get_module('numpy') s = set() unique = [] for element in a: if element not in s: u...
33.304688
78
0.585972
30f5fc716de67f91b67ebb1226172311bfe8748e
78
py
Python
lunch/vegetable.py
maruf212000/Python_Assignment_3
dfedb06ea5f73475c51467577622cb63f8f3888e
[ "MIT" ]
null
null
null
lunch/vegetable.py
maruf212000/Python_Assignment_3
dfedb06ea5f73475c51467577622cb63f8f3888e
[ "MIT" ]
null
null
null
lunch/vegetable.py
maruf212000/Python_Assignment_3
dfedb06ea5f73475c51467577622cb63f8f3888e
[ "MIT" ]
null
null
null
def potato(): print("I am Potato") def tomato(): print("I am Tomato")
15.6
24
0.589744
e42ebd888d124077de05faf77d5b9db8983d936c
2,520
py
Python
src/transformers/convert_gpt2_original_tf_checkpoint_to_pytorch.py
WERimagin/transformers
cc7d14511c647f8147494df72f8b0575015e37ab
[ "Apache-2.0" ]
47
2021-04-16T22:29:25.000Z
2022-02-11T08:19:13.000Z
src/transformers/convert_gpt2_original_tf_checkpoint_to_pytorch.py
WERimagin/transformers
cc7d14511c647f8147494df72f8b0575015e37ab
[ "Apache-2.0" ]
15
2021-03-16T08:13:25.000Z
2022-02-01T12:22:33.000Z
src/transformers/convert_gpt2_original_tf_checkpoint_to_pytorch.py
WERimagin/transformers
cc7d14511c647f8147494df72f8b0575015e37ab
[ "Apache-2.0" ]
7
2021-08-24T09:50:44.000Z
2022-02-23T13:55:28.000Z
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
37.058824
119
0.739683
7a5756ff1d6f81a2ab5b48f2099991ab08cd00e5
6,965
py
Python
third-party-synthetic/third-party-tester/reporting/resultsreporter.py
dlopes7/dynatrace-api
5ed061b5542eea9cee8cfd5dab81d91fc891f2f5
[ "BSD-3-Clause" ]
80
2016-09-19T21:06:50.000Z
2022-03-31T06:34:29.000Z
third-party-synthetic/third-party-tester/reporting/resultsreporter.py
dlopes7/dynatrace-api
5ed061b5542eea9cee8cfd5dab81d91fc891f2f5
[ "BSD-3-Clause" ]
36
2018-01-29T06:33:10.000Z
2022-03-07T08:05:56.000Z
third-party-synthetic/third-party-tester/reporting/resultsreporter.py
dlopes7/dynatrace-api
5ed061b5542eea9cee8cfd5dab81d91fc891f2f5
[ "BSD-3-Clause" ]
70
2017-01-30T09:42:18.000Z
2022-03-24T18:57:35.000Z
from reporting.api_constants import ApiConstants from datetime import datetime import requests import logging import hashlib class ResultsReporter: """A class responsible for sending test results to Dynatrace.""" def __init__(self, api_url, api_token, schedule_interval, location_id, locatio...
37.446237
114
0.655276
6635a8c202d46b58db3f36f1973eab2a165707db
64,749
py
Python
sdk/python/pulumi_artifactory/local_ivy_repository.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_artifactory/local_ivy_repository.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_artifactory/local_ivy_repository.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
54.779188
181
0.68798
6c29e2ff3c30e4725a019309dc9ba67e3d7b4f6b
1,895
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/usage_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/usage_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/usage_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
34.454545
82
0.594195
4974cbafbce3780c9329dd4cfd3fbb7928fa45b4
4,470
py
Python
src/SeleniumLibrary/keywords/javascript.py
ponkar/robotframework-selenium2library
e41b6ea6664fe80f469ac7c5dfd9717819b97d18
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/SeleniumLibrary/keywords/javascript.py
ponkar/robotframework-selenium2library
e41b6ea6664fe80f469ac7c5dfd9717819b97d18
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/SeleniumLibrary/keywords/javascript.py
ponkar/robotframework-selenium2library
e41b6ea6664fe80f469ac7c5dfd9717819b97d18
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2011 Nokia Networks # Copyright 2011-2016 Ryan Tomac, Ed Manlove and contributors # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Licens...
47.553191
123
0.589485
604970e7dfe0212eac41207e9e227f7607e10f55
31,303
py
Python
lib/libvcc/generate.py
Dridi/varnish-cache
e44ef53c2ff0663e0dfa00d15794d2c5d3bdece7
[ "BSD-2-Clause" ]
null
null
null
lib/libvcc/generate.py
Dridi/varnish-cache
e44ef53c2ff0663e0dfa00d15794d2c5d3bdece7
[ "BSD-2-Clause" ]
null
null
null
lib/libvcc/generate.py
Dridi/varnish-cache
e44ef53c2ff0663e0dfa00d15794d2c5d3bdece7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #- # Copyright (c) 2006 Verdens Gang AS # Copyright (c) 2006-2015 Varnish Software AS # All rights reserved. # # Author: Poul-Henning Kamp <phk@phk.freebsd.dk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condition...
21.920868
76
0.563652
43557fd7742f2677a16788aa7d452a905529433d
69,659
py
Python
arelle/FunctionXfi.py
ardenliu/Arelle
02486d4021d21dd5d40e9c59be79b03e08cedc2b
[ "Apache-2.0" ]
null
null
null
arelle/FunctionXfi.py
ardenliu/Arelle
02486d4021d21dd5d40e9c59be79b03e08cedc2b
[ "Apache-2.0" ]
null
null
null
arelle/FunctionXfi.py
ardenliu/Arelle
02486d4021d21dd5d40e9c59be79b03e08cedc2b
[ "Apache-2.0" ]
null
null
null
''' Created on Dec 20, 2010 @author: Mark V Systems Limited (c) Copyright 2010 Mark V Systems Limited, All rights reserved. ''' import xml.dom, datetime, re from arelle import XPathContext, XbrlConst, XbrlUtil, XmlUtil from arelle.ModelObject import ModelObject, ModelAttribute from arelle.ModelValue import qname, QNam...
46.719651
211
0.678792
588ddce853fa27e8176799597f0f1cfbd4037702
4,017
py
Python
lib/spack/spack/cmd/python.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
lib/spack/spack/cmd/python.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2021-07-20T01:04:53.000Z
2022-03-02T01:08:36.000Z
lib/spack/spack/cmd/python.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from __future__ import print_function import os import sys import code import argparse import platform import runpy impo...
34.042373
75
0.655713
64d1f4b82cb8f60302d25c9b8eda09449ce3f4d0
4,726
py
Python
var/spack/repos/builtin/packages/rocm-debug-agent/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rocm-debug-agent/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rocm-debug-agent/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import re from spack.package import * class RocmDebugAgent(CMakePackage): """Radeon Open Compute (ROCm) debug agent...
46.333333
123
0.641134
1221f2169747a158ac12e5595635b11d4eafd1ee
638
py
Python
main/email.py
MugeraH/Awwards
75b7695a855150098239d022524522800e24348e
[ "MIT" ]
null
null
null
main/email.py
MugeraH/Awwards
75b7695a855150098239d022524522800e24348e
[ "MIT" ]
null
null
null
main/email.py
MugeraH/Awwards
75b7695a855150098239d022524522800e24348e
[ "MIT" ]
null
null
null
from django.core.mail import EmailMultiAlternatives from django.template.loader import render_to_string def send_welcome_email(name,receiver,date): # Creating message subject and sender subject = 'Welcome to the Awwwards clone' sender = 'testmugera@gmail.com' ctx= { "name": name, "date":...
30.380952
72
0.727273
0f8550022fddc3c41486d0c7dcbf08248a29f61e
1,840
py
Python
networking_nec/nwa/l3/rpc/nwa_l3_server_callback.py
nec-openstack/networking-nec-nwa
0c5a4a9fb74b6dc78b773d78755c758ed67ed777
[ "Apache-2.0" ]
null
null
null
networking_nec/nwa/l3/rpc/nwa_l3_server_callback.py
nec-openstack/networking-nec-nwa
0c5a4a9fb74b6dc78b773d78755c758ed67ed777
[ "Apache-2.0" ]
null
null
null
networking_nec/nwa/l3/rpc/nwa_l3_server_callback.py
nec-openstack/networking-nec-nwa
0c5a4a9fb74b6dc78b773d78755c758ed67ed777
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 NEC Corporation. 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 requ...
39.148936
78
0.64837
a3366a843d68c4465229fd9c3eadf21883a22385
543
py
Python
arvestust/views/tag_list.py
lehvitus/arvestust
2d508317b744eaf12a643a398ff95723893a046a
[ "BSD-3-Clause" ]
1
2021-09-17T23:45:27.000Z
2021-09-17T23:45:27.000Z
arvestust/views/tag_list.py
lehvitus/arvestust
2d508317b744eaf12a643a398ff95723893a046a
[ "BSD-3-Clause" ]
3
2020-07-25T05:40:54.000Z
2020-08-11T04:01:19.000Z
arvestust/views/tag_list.py
lehvitus/arvestust
2d508317b744eaf12a643a398ff95723893a046a
[ "BSD-3-Clause" ]
null
null
null
from django.views.generic import ListView from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import path from .urls import urlpatterns from ..models import Tag class TagListView(LoginRequiredMixin, ListView): model = Tag context_object_name = 'tags' template_name = 'tag_list.html' ...
24.681818
57
0.731123
da87da12fd56f63550f87e3cec7e32bbb1bfcee8
3,251
py
Python
pygame_gui/core/ui_window_stack.py
halfninja/pygame_gui
71b1150cb0c789339a9f8d781da15bdfad604f6c
[ "MIT" ]
null
null
null
pygame_gui/core/ui_window_stack.py
halfninja/pygame_gui
71b1150cb0c789339a9f8d781da15bdfad604f6c
[ "MIT" ]
null
null
null
pygame_gui/core/ui_window_stack.py
halfninja/pygame_gui
71b1150cb0c789339a9f8d781da15bdfad604f6c
[ "MIT" ]
null
null
null
from typing import Union from pygame_gui.core import ui_window class UIWindowStack: """ A class for managing a stack of GUI windows so that only one is 'in front' at a time and the rest are sorted based on the last time they were interacted with/created. """ def __init__(self, window_resolution):...
33.864583
118
0.611504
9196561f50ee897eb57210dc39a682a1508f0871
2,224
py
Python
login/urls.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
login/urls.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
login/urls.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from django.contrib.admin.views.decorators import staff_member_required from login import views app_name = 'login' urlpatterns = [ # login/logout url(r'^login/$', views.LoginView.as_view(), name='login'), url(r'^logout/$', views.LogoutView.as_view(...
25.860465
71
0.59982
5282ab53bed6984dfd146c24be2e074cd819411d
1,415
py
Python
tests/conftest.py
JocelynDelalande/dockerspawner
d1f27e2855d2cefbdb25b29cc069b9ca69d564e3
[ "BSD-3-Clause" ]
1
2021-01-28T17:22:25.000Z
2021-01-28T17:22:25.000Z
tests/conftest.py
JocelynDelalande/dockerspawner
d1f27e2855d2cefbdb25b29cc069b9ca69d564e3
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
JocelynDelalande/dockerspawner
d1f27e2855d2cefbdb25b29cc069b9ca69d564e3
[ "BSD-3-Clause" ]
1
2018-07-25T16:11:06.000Z
2018-07-25T16:11:06.000Z
"""pytest config for dockerspawner tests""" from unittest import mock from docker import from_env as docker_from_env from docker.errors import APIError import pytest from jupyterhub.tests.mocking import MockHub # import base jupyterhub fixtures from jupyterhub.tests.conftest import app, io_loop # noqa from dockers...
26.698113
81
0.653004
6ee0efaa3a1319febebf9fb8bccfc989db711011
557
py
Python
hood/migrations/0003_auto_20181022_1003.py
KageniJK/watchi
50268615169096bc6302057103bf22b4e8377a1b
[ "MIT" ]
null
null
null
hood/migrations/0003_auto_20181022_1003.py
KageniJK/watchi
50268615169096bc6302057103bf22b4e8377a1b
[ "MIT" ]
2
2020-06-05T19:24:19.000Z
2021-06-10T20:56:18.000Z
hood/migrations/0003_auto_20181022_1003.py
KageniJK/watchi
50268615169096bc6302057103bf22b4e8377a1b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-10-22 07:03 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hood', '0002_auto_20181022_0923'), ] operations =...
25.318182
117
0.657092
697d283d830fdbde80784d3d6cbdb443627a76d7
2,053
py
Python
Code/SSDV2/faceRecognition.py
swapnil96/BTP
fda254a8d83297698808857a78e2b9d091c195e3
[ "MIT" ]
null
null
null
Code/SSDV2/faceRecognition.py
swapnil96/BTP
fda254a8d83297698808857a78e2b9d091c195e3
[ "MIT" ]
null
null
null
Code/SSDV2/faceRecognition.py
swapnil96/BTP
fda254a8d83297698808857a78e2b9d091c195e3
[ "MIT" ]
null
null
null
#! /usr/bin/env python from mvnc import mvncapi as mvnc import numpy, cv2 import sys, os import cPickle as pickle import utilities import argparse def setup(args): utilities.setup(args) model = None with open(args.testModel, 'rb') as mod: model = pickle.load(mod) return model def run(model, ...
23.597701
63
0.640039
dff29d84d0ddbb3665ec2bf8c2c7bc1a8439afe8
26,478
py
Python
autosklearn/smbo.py
psaks/auto-sklearn
e21047aa7b52e762a58992e33ffcebb420586e67
[ "BSD-3-Clause" ]
6,390
2015-07-11T07:59:51.000Z
2022-03-31T16:45:15.000Z
autosklearn/smbo.py
psaks/auto-sklearn
e21047aa7b52e762a58992e33ffcebb420586e67
[ "BSD-3-Clause" ]
1,276
2015-07-29T02:11:29.000Z
2022-03-31T17:31:34.000Z
autosklearn/smbo.py
psaks/auto-sklearn
e21047aa7b52e762a58992e33ffcebb420586e67
[ "BSD-3-Clause" ]
1,313
2015-07-20T14:11:39.000Z
2022-03-25T18:22:48.000Z
import copy import json import logging import multiprocessing import os import time import traceback import typing import warnings import dask.distributed import pynisher from smac.facade.smac_ac_facade import SMAC4AC from smac.intensification.simple_intensifier import SimpleIntensifier from smac.intensification.inte...
41.307332
93
0.601292
5185ba8033a121577bab4d6849d10189ac408ef6
2,892
py
Python
ipyvol3.py
chrisjsewell/ipyvol_html_ci
8bd4304c0d17a26bc07970416ebf4b146a92d715
[ "MIT" ]
null
null
null
ipyvol3.py
chrisjsewell/ipyvol_html_ci
8bd4304c0d17a26bc07970416ebf4b146a92d715
[ "MIT" ]
null
null
null
ipyvol3.py
chrisjsewell/ipyvol_html_ci
8bd4304c0d17a26bc07970416ebf4b146a92d715
[ "MIT" ]
null
null
null
import os import sys import glob import json import http.server import socketserver import multiprocessing import pytest from selenium import webdriver # from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import W...
37.076923
115
0.672891
e69a724225dd2772719e85c272c172bd34dd68ae
5,041
py
Python
cirq-ionq/cirq_ionq/ionq_devices.py
peterse/Cirq
31daa9410a0e1e1ac3da38109aa8ce3a15aed17b
[ "Apache-2.0" ]
3,326
2018-07-18T23:17:21.000Z
2022-03-29T22:28:24.000Z
cirq-ionq/cirq_ionq/ionq_devices.py
peterse/Cirq
31daa9410a0e1e1ac3da38109aa8ce3a15aed17b
[ "Apache-2.0" ]
3,443
2018-07-18T21:07:28.000Z
2022-03-31T20:23:21.000Z
cirq-ionq/cirq_ionq/ionq_devices.py
peterse/Cirq
31daa9410a0e1e1ac3da38109aa8ce3a15aed17b
[ "Apache-2.0" ]
865
2018-07-18T23:30:24.000Z
2022-03-30T11:43:23.000Z
# Copyright 2021 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 wr...
41.661157
100
0.659195
fcff8621bb9031e20714d47cc5cc24ed47de3313
2,915
py
Python
odoo-13.0/addons/hr_contract/tests/test_auto_status.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/hr_contract/tests/test_auto_status.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/hr_contract/tests/test_auto_status.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import date, datetime from dateutil.relativedelta import relativedelta from odoo.addons.hr_contract.tests.common import TestContractBase class TestHrContracts(TestContractBase): def setUp(self): ...
42.867647
102
0.683019
c62c841db5df2294fb3a60e8a0b19fe8d389c2ce
79,669
py
Python
python/ray/_private/services.py
amzn/amazon-ray
86156dc5c2401e1bcbd799211ee793d546553530
[ "Apache-2.0" ]
39
2021-02-02T23:09:31.000Z
2022-03-28T16:39:12.000Z
python/ray/_private/services.py
amzn/amazon-ray
86156dc5c2401e1bcbd799211ee793d546553530
[ "Apache-2.0" ]
65
2021-02-04T08:23:41.000Z
2022-03-16T19:16:20.000Z
python/ray/_private/services.py
amzn/amazon-ray
86156dc5c2401e1bcbd799211ee793d546553530
[ "Apache-2.0" ]
20
2021-02-05T05:51:39.000Z
2022-03-04T21:13:24.000Z
import base64 import collections import errno import io import json import logging import multiprocessing import os from pathlib import Path import mmap import random import shutil import signal import socket import subprocess import sys import time from typing import Optional import colorama import psutil # Ray modul...
41.667887
92
0.627923
c59822f4e267127003d865fb8f3441c7aaaba41c
370
py
Python
setup.py
shanefagan/snapcraft_gen_yaml
e25246257b74b2e2424e7a2b104df8e29255f8a3
[ "MIT" ]
null
null
null
setup.py
shanefagan/snapcraft_gen_yaml
e25246257b74b2e2424e7a2b104df8e29255f8a3
[ "MIT" ]
null
null
null
setup.py
shanefagan/snapcraft_gen_yaml
e25246257b74b2e2424e7a2b104df8e29255f8a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sys import platform import subprocess from setuptools import setup setup(name='test', version='0.1', description='Bla', author='Shane Fagan', author_email='mail@example.com', url='http://example.com', license='MIT', packages=['bin'], install_...
18.5
38
0.602703
74b515f0b4bb9c034c1ab91cf4d837158a646049
8,855
py
Python
tests/transforms/test_tensor_transforms.py
lonestar686/torchsample
79076d991019b7c81d72a0dd460536909e1f8c9f
[ "MIT" ]
null
null
null
tests/transforms/test_tensor_transforms.py
lonestar686/torchsample
79076d991019b7c81d72a0dd460536909e1f8c9f
[ "MIT" ]
null
null
null
tests/transforms/test_tensor_transforms.py
lonestar686/torchsample
79076d991019b7c81d72a0dd460536909e1f8c9f
[ "MIT" ]
null
null
null
""" Tests for torchsample/transforms/image_transforms.py """ import torch as th from torchsample.transforms import (ToTensor, ToCuda, ToFile, ChannelsLast, HWC, ChannelsFirs...
28.937908
66
0.57651
43620e8a6d0c1e51a1e1e2585d1542b574df1c2d
2,626
py
Python
spyne/util/appreg.py
DXist/spyne
f185e44c0cf3c71c99471133a44c17f4a47ab46e
[ "BSD-3-Clause" ]
1
2021-06-07T16:19:41.000Z
2021-06-07T16:19:41.000Z
spyne/util/appreg.py
lemanyk/spyne
12bea0be357ceebec1cf877270ce240424357c7b
[ "BSD-3-Clause" ]
null
null
null
spyne/util/appreg.py
lemanyk/spyne
12bea0be357ceebec1cf877270ce240424357c7b
[ "BSD-3-Clause" ]
null
null
null
# # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This libra...
32.02439
81
0.624524
75719eceacd15af1d1ef3815c1f118e76f7c1d01
37,722
py
Python
aries_cloudagent/protocols/present_proof/v1_0/tests/test_manager.py
vitalrev/aries-cloudagent-python
7da54521eddd731a58281ae4647945a6ffba92a9
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/present_proof/v1_0/tests/test_manager.py
vitalrev/aries-cloudagent-python
7da54521eddd731a58281ae4647945a6ffba92a9
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/present_proof/v1_0/tests/test_manager.py
vitalrev/aries-cloudagent-python
7da54521eddd731a58281ae4647945a6ffba92a9
[ "Apache-2.0" ]
null
null
null
import json from time import time from asynctest import TestCase as AsyncTestCase from asynctest import mock as async_mock from .....core.in_memory import InMemoryProfile from .....indy.holder import IndyHolder from .....indy.sdk.holder import IndySdkHolder from .....indy.issuer import IndyIssuer from .....ledger.ba...
38.808642
88
0.556651
3e34cec5f7ea033df37c3219c3fed69160dd018a
26,339
py
Python
sleekxmpp/plugins/xep_0050/adhoc.py
szarsti/SleekXMPP
7075a3b7fa857fc8f9db60da9d01fa1a11806659
[ "BSD-3-Clause" ]
499
2015-01-04T21:45:16.000Z
2022-02-14T13:04:08.000Z
sleekxmpp/plugins/xep_0050/adhoc.py
numanturle/SleekXMPP
1aeefd88accf45947c6376e9fac3abae9cbba8aa
[ "BSD-3-Clause" ]
159
2015-01-02T19:09:47.000Z
2020-02-12T08:29:54.000Z
sleekxmpp/plugins/xep_0050/adhoc.py
numanturle/SleekXMPP
1aeefd88accf45947c6376e9fac3abae9cbba8aa
[ "BSD-3-Clause" ]
209
2015-01-07T16:23:16.000Z
2022-01-26T13:02:20.000Z
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import logging import time from sleekxmpp import Iq from sleekxmpp.exceptions import IqError, XMPPError from sleekxmpp.xmlstre...
37.519943
78
0.535062
705cd13a2a4336c67f408830cb76b7b0525254fb
26,898
py
Python
main/call_snake.py
ph1001/GA_learning_Snake
6341310ce41e45e71fceb084232d7a4867f9ebfb
[ "MIT" ]
null
null
null
main/call_snake.py
ph1001/GA_learning_Snake
6341310ce41e45e71fceb084232d7a4867f9ebfb
[ "MIT" ]
null
null
null
main/call_snake.py
ph1001/GA_learning_Snake
6341310ce41e45e71fceb084232d7a4867f9ebfb
[ "MIT" ]
3
2021-04-26T12:56:11.000Z
2021-06-09T20:12:58.000Z
# -*- coding: utf-8 -*- """ Created on Mon Apr 26 16:36:47 2021 @author: utente """ # This script is heavily inspired by this blogpost: https://thingsidobysanil.wordpress.com/2018/11/12/87/ # Import libraries and components from snake from snake import controlled_run, dis_width, dis_height, snake_block, automatic_mo...
48.994536
184
0.491263
794ef040c3a7f25257f7612ec1f908c19e848ed0
2,424
py
Python
doc/sphinx/example-acoustics-1d/setplot_3.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
doc/sphinx/example-acoustics-1d/setplot_3.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
doc/sphinx/example-acoustics-1d/setplot_3.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
""" Single figure with two axes ============================= The pressure q[0] and q[1] are plotted on two sets of axes in a single figure. """ #-------------------------- def setplot(plotdata): #-------------------------- """ Specify what is to be plotted at each frame. Input: plotdata, an i...
31.076923
74
0.616749
f40475639d8535520bb8c05bec4e8b69858b4d8b
7,819
py
Python
chain_joiner/make_model.py
leelasd/chain_joiner
3d8f03b1b0a19a1ca06a345f826dcbd67ad22491
[ "MIT" ]
3
2017-09-16T23:34:08.000Z
2018-03-09T11:43:42.000Z
chain_joiner/make_model.py
leelasd/chain_joiner
3d8f03b1b0a19a1ca06a345f826dcbd67ad22491
[ "MIT" ]
1
2018-03-09T12:24:23.000Z
2018-05-18T11:56:31.000Z
chain_joiner/make_model.py
mc-robinson/chain_joiner
3d8f03b1b0a19a1ca06a345f826dcbd67ad22491
[ "MIT" ]
1
2017-10-19T16:07:56.000Z
2017-10-19T16:07:56.000Z
#!/usr/bin/env python # File name: make_model.py # Author: Matt Robinson # Date created: 5/24/2017 # Date last modified: 9/05/2017 # Python Version: 3.6 """ Description: This script uses the alignment file, alignment.ali, to make a homology model that includes the previously missing residues. In this case, the origina...
32.443983
124
0.620795
638d0c0cf33b91e0e3a6b2cda272bf2ae3e9a583
13,394
py
Python
opencga-client/src/main/python/pyopencga/commons.py
mwhamgenomics/opencga
a6b521f441fbefa35f6fbaadd6dd97e33bb33e7b
[ "Apache-2.0" ]
146
2015-03-05T19:14:22.000Z
2022-03-30T03:46:48.000Z
opencga-client/src/main/python/pyopencga/commons.py
mwhamgenomics/opencga
a6b521f441fbefa35f6fbaadd6dd97e33bb33e7b
[ "Apache-2.0" ]
1,623
2015-01-27T00:30:36.000Z
2022-03-31T14:42:33.000Z
opencga-client/src/main/python/pyopencga/commons.py
mwhamgenomics/opencga
a6b521f441fbefa35f6fbaadd6dd97e33bb33e7b
[ "Apache-2.0" ]
93
2015-01-28T17:13:01.000Z
2022-03-09T20:46:47.000Z
import sys import threading from time import sleep import warnings import requests from pyopencga.exceptions import OpencgaInvalidToken, OpencgaAuthorisationError try: from Queue import Queue except ImportError: from queue import Queue _CALL_BATCH_SIZE = 2000 _NUM_THREADS_DEFAULT = 4 def deprecated(func):...
39.744807
109
0.56809
7bcc5851612cfd2ded4ac2e7e4c57dcc4cc3d661
4,649
py
Python
tomviz/python/AutoTiltAxisShiftAlignment.py
alvarosan/tomviz
b53ccb0a07bfe7a33c3fb984c28d9b2658faa64b
[ "BSD-3-Clause" ]
null
null
null
tomviz/python/AutoTiltAxisShiftAlignment.py
alvarosan/tomviz
b53ccb0a07bfe7a33c3fb984c28d9b2658faa64b
[ "BSD-3-Clause" ]
null
null
null
tomviz/python/AutoTiltAxisShiftAlignment.py
alvarosan/tomviz
b53ccb0a07bfe7a33c3fb984c28d9b2658faa64b
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.interpolate import interp1d import tomviz.operators class AutoTiltAxisShiftAlignmentOperator(tomviz.operators.CancelableOperator): def transform_scalars(self, dataset): """Automatic align the tilt axis to the center of images""" self.progress.maximum = 1 fro...
33.207143
78
0.560336
5584836de19f8760469e908b92c03f9b600d14ce
24,345
py
Python
vectorbt/_settings.py
polakowo/vectorbt
0a0077e42e74c24a2633453b98bf975626efbb70
[ "Apache-2.0" ]
1,787
2019-08-25T02:53:56.000Z
2022-03-31T23:28:01.000Z
vectorbt/_settings.py
polakowo/vectorbt
0a0077e42e74c24a2633453b98bf975626efbb70
[ "Apache-2.0" ]
251
2020-02-25T09:14:51.000Z
2022-03-29T22:31:49.000Z
vectorbt/_settings.py
polakowo/vectorbt
0a0077e42e74c24a2633453b98bf975626efbb70
[ "Apache-2.0" ]
304
2019-08-18T13:37:35.000Z
2022-03-31T16:00:44.000Z
# Copyright (c) 2021 Oleg Polakow. All rights reserved. # This code is licensed under Apache 2.0 with Commons Clause license (see LICENSE.md for details) """Global settings. `settings` config is also accessible via `vectorbt.settings`. Here are the main properties of the `settings` config: * It's a nested config, t...
30.055556
112
0.50647
1da9d0991247c7f7511969da2d8c2124712be8b9
21,974
py
Python
nova/virt/block_device.py
jeckxie/gxzw-nova
edbc620439cf3dfc959c6eb8355ab35adc8268d7
[ "Apache-2.0" ]
null
null
null
nova/virt/block_device.py
jeckxie/gxzw-nova
edbc620439cf3dfc959c6eb8355ab35adc8268d7
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/virt/block_device.py
jeckxie/gxzw-nova
edbc620439cf3dfc959c6eb8355ab35adc8268d7
[ "Apache-2.0" ]
1
2020-07-22T22:06:24.000Z
2020-07-22T22:06:24.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...
38.34904
79
0.608264
489cd9aba3797310f6d67e5d2fb143ec3580e6fc
10,732
py
Python
practice/pycxsimulator.py
nalyd88/modeling-and-simulation
96e5fc3994ded8782229425e43ed9237966c9567
[ "MIT" ]
null
null
null
practice/pycxsimulator.py
nalyd88/modeling-and-simulation
96e5fc3994ded8782229425e43ed9237966c9567
[ "MIT" ]
null
null
null
practice/pycxsimulator.py
nalyd88/modeling-and-simulation
96e5fc3994ded8782229425e43ed9237966c9567
[ "MIT" ]
null
null
null
## "pycxsimulator.py" ## Realtime Simulation GUI for PyCX ## ## Developed by: ## Chun Wong ## email@chunwong.net ## ## Revised by: ## Hiroki Sayama ## sayama@binghamton.edu ## ## Copyright 2012 Chun Wong & Hiroki Sayama ## ## Simulation control & GUI extensions ## Copyright 2013 Przemyslaw Szufel & Bogumi...
43.449393
190
0.630544
694728f1549a14ad8a33bdc621d327384f473dcd
9,839
py
Python
actions/scripts.py
SainTurDaY27/beattosetto
980b240f72fbd057a8d7bbd4e669de80eca3193b
[ "MIT" ]
null
null
null
actions/scripts.py
SainTurDaY27/beattosetto
980b240f72fbd057a8d7bbd4e669de80eca3193b
[ "MIT" ]
16
2021-11-17T08:34:10.000Z
2022-03-08T19:23:50.000Z
actions/scripts.py
Siraphop4Nene/beattosetto
78911428092c9c157c835e70d8abd4a08c48da8b
[ "MIT" ]
null
null
null
""" Script for using in worker. """ import logging import os import time import requests import traceback from django.core.files import File from django.core.files.temp import NamedTemporaryFile from django.db.models.functions import datetime from django.utils import timezone from .logging import setup_logger, log_two_...
59.271084
149
0.592642
a481c83ce434635c6055ff965a54617b28a5f40d
280
py
Python
tests/CRAFT/MFW/ET_SG.py
idaholab/SR2ML
2aa5e0be02786523cdeaf898d42411a7068d30b7
[ "Apache-2.0" ]
5
2021-01-25T02:01:22.000Z
2021-12-27T03:14:49.000Z
tests/CRAFT/MFW/ET_SG.py
idaholab/SR2ML
2aa5e0be02786523cdeaf898d42411a7068d30b7
[ "Apache-2.0" ]
32
2021-01-12T18:43:29.000Z
2022-02-17T19:45:27.000Z
tests/CRAFT/testMC_timeDep/ET_SG.py
idaholab/SR2ML
2aa5e0be02786523cdeaf898d42411a7068d30b7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, Battelle Energy Alliance, LLC # ALL RIGHTS RESERVED import numpy as np import math import random from scipy.integrate import quad def run(self,Input): # intput: t, T (max time) # output: outcome self.outcome_SG = self.p_SG * np.ones(Input['time'].size)
20
59
0.728571
c7e5437ac9ec0be4e4abe23e679e16330bb9eaff
743
py
Python
test/test_compute_project_vm_iso_create.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
test/test_compute_project_vm_iso_create.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
test/test_compute_project_vm_iso_create.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
""" HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import sys import unittest import h1 from h1.model.compute_project_vm_iso_create import ComputeProjectVmIsoCreate class TestComputeProjectVmIsoCreate(unittest.TestCa...
20.638889
79
0.697174
469c7876e50ed53bfc77d57416e29f5e5303d477
979
py
Python
portfolios/equally_weighted.py
NizarGhandri/Optimal_Portfolios
d3656aa044bb8d81035ac11ee8b24dbb01b9c6c3
[ "MIT" ]
null
null
null
portfolios/equally_weighted.py
NizarGhandri/Optimal_Portfolios
d3656aa044bb8d81035ac11ee8b24dbb01b9c6c3
[ "MIT" ]
null
null
null
portfolios/equally_weighted.py
NizarGhandri/Optimal_Portfolios
d3656aa044bb8d81035ac11ee8b24dbb01b9c6c3
[ "MIT" ]
null
null
null
from dask import dataframe import pandas as pd import yfinance as yf import os import logging class EquallyWeighted(): def __init__(self, cfg): self.cfg = cfg self.data = self.load_data() def load_data(self): return self.preprocess(pd.concat([pd.read_parquet(os.path.join(se...
26.459459
144
0.642492
0d3aca1713dea38cffa45eeecfecdc8b19ef7e62
48,176
py
Python
pymatgen/analysis/structure_matcher.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
pymatgen/analysis/structure_matcher.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
pymatgen/analysis/structure_matcher.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides classes to perform fitting of structures. """ import abc import itertools import numpy as np from monty.json import MSONable from pymatgen.analysis.defects.core import Defect, Interstitial, Substitu...
37.6375
119
0.597082
b58aad33c798c3b631d3cc38fcf1da78660dd58c
176
py
Python
ABC148/ABC148f.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
ABC148/ABC148f.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
ABC148/ABC148f.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
# ABC148f def main(): import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) #再帰関数を使わない限りPypyで出すこと if __name__ == '__main__': main()
14.666667
32
0.619318
ae8d9a27076077cf9a428490d5b4a66fbbe77aae
107
py
Python
reports/urls.py
Mortaza-Seydi/Task-Manager
2e3f9c87814bfa993e27ca3e0dee918c66975653
[ "MIT" ]
12
2021-03-01T08:07:16.000Z
2022-02-27T06:33:10.000Z
reports/urls.py
Mortaza-Seydi/Task-Manager
2e3f9c87814bfa993e27ca3e0dee918c66975653
[ "MIT" ]
null
null
null
reports/urls.py
Mortaza-Seydi/Task-Manager
2e3f9c87814bfa993e27ca3e0dee918c66975653
[ "MIT" ]
2
2021-06-04T14:39:40.000Z
2022-02-24T05:48:22.000Z
from django.urls import path from .views import Report urlpatterns = [ path('', Report.as_view()), ]
13.375
31
0.682243
084dff9172831d872c75a1af5d6d19983e23a1b3
6,155
py
Python
lib/reda/importers/eit_version_2010.py
j-hase/reda
b6419c39842cfbdd9380a27a5c6e9a04ccaeb294
[ "MIT" ]
12
2017-12-11T08:32:46.000Z
2021-06-09T05:41:57.000Z
lib/reda/importers/eit_version_2010.py
j-hase/reda
b6419c39842cfbdd9380a27a5c6e9a04ccaeb294
[ "MIT" ]
58
2017-11-12T11:10:42.000Z
2021-06-11T13:52:44.000Z
lib/reda/importers/eit_version_2010.py
geophysics-ubonn/REDA
8f0399031121f5a937171231a25f9ab03a3c8873
[ "MIT" ]
11
2017-11-12T12:02:35.000Z
2021-02-16T06:54:04.000Z
"""Research Center Jülich - EIT40 system importer (2010 version) """ import datetime import numpy as np import pandas as pd def _average_swapped_current_injections(df): AB = df[['a', 'b']].values # get unique injections abu = np.unique( AB.flatten().view(AB.dtype.descr * 2) ).view(AB.dtype)....
29.309524
78
0.497969
6f0bc04faea7a4fb72d92db41a817e5d93733504
1,766
py
Python
setup.py
dnorthcote/rfsoc_studio
76b9eeb194d34333d95cad25d8cae918938cbc16
[ "BSD-3-Clause" ]
null
null
null
setup.py
dnorthcote/rfsoc_studio
76b9eeb194d34333d95cad25d8cae918938cbc16
[ "BSD-3-Clause" ]
null
null
null
setup.py
dnorthcote/rfsoc_studio
76b9eeb194d34333d95cad25d8cae918938cbc16
[ "BSD-3-Clause" ]
null
null
null
import os import shutil from distutils.dir_util import copy_tree from setuptools import find_packages, setup # global variables board = os.environ['BOARD'] nb_dir = os.environ['PYNQ_JUPYTER_NOTEBOOKS'] package_name = 'rfsoc_studio' pip_name = 'rfsoc-studio' data_files = [] # check whether board is supported def che...
33.961538
103
0.68573
83529d17decaf0e3fe0594152f12fcb149f8a577
35,757
py
Python
pygments/lexers/shell.py
Liam-Stevens/pygments
49f1a5c6d5734734edca3766f88a698c4172ff59
[ "BSD-2-Clause" ]
null
null
null
pygments/lexers/shell.py
Liam-Stevens/pygments
49f1a5c6d5734734edca3766f88a698c4172ff59
[ "BSD-2-Clause" ]
null
null
null
pygments/lexers/shell.py
Liam-Stevens/pygments
49f1a5c6d5734734edca3766f88a698c4172ff59
[ "BSD-2-Clause" ]
null
null
null
""" pygments.lexers.shell ~~~~~~~~~~~~~~~~~~~~~ Lexers for various shells. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, do_insertions, bygroups, \ include, default, this,...
39.293407
87
0.470845
c95b70164433c47f43340eb21c6d916cf1d00737
523
py
Python
textClassifier/scoring_methods.py
vikash06131721/autoMltext
96f41161947d78c663e7f6b4ff452fc5bf2462e8
[ "MIT" ]
null
null
null
textClassifier/scoring_methods.py
vikash06131721/autoMltext
96f41161947d78c663e7f6b4ff452fc5bf2462e8
[ "MIT" ]
null
null
null
textClassifier/scoring_methods.py
vikash06131721/autoMltext
96f41161947d78c663e7f6b4ff452fc5bf2462e8
[ "MIT" ]
null
null
null
from sklearn.metrics import f1_score, \ precision_score, recall_score, roc_auc_score, \ accuracy_score import warnings warnings.filterwarnings("ignore") def scorer_f1(y_true,y_pred): return f1_score(y_true,y_pred) def scorer_precision(y_true,y_pred): return precision_score(y_true,y_pred) def scorer_recall(y...
26.15
47
0.799235
50e1511b561d67d134805d2bf28e2b5b30a67585
2,472
py
Python
tests/test_multipart.py
ambrozic/http3
5442006a41f94a3e41186910d7a6e8546adf0f89
[ "BSD-3-Clause" ]
null
null
null
tests/test_multipart.py
ambrozic/http3
5442006a41f94a3e41186910d7a6e8546adf0f89
[ "BSD-3-Clause" ]
null
null
null
tests/test_multipart.py
ambrozic/http3
5442006a41f94a3e41186910d7a6e8546adf0f89
[ "BSD-3-Clause" ]
null
null
null
import cgi import io import pytest from http3 import ( CertTypes, Client, Dispatcher, Request, Response, TimeoutTypes, VerifyTypes, ) class MockDispatch(Dispatcher): def send( self, request: Request, verify: VerifyTypes = None, cert: CertTypes = None, ...
36.352941
92
0.66788
5ed575a5954a5a1791269e7a7422eddd0c664537
157
py
Python
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_Hour_NoAR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_Hour_NoAR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_Hour_NoAR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Fisher'] , ['MovingMedian'] , ['Seasonal_Hour'] , ['NoAR'] );
39.25
84
0.751592
ef1a01ecc7f56144db74bf9c3be7c5033f38a5c8
1,582
py
Python
lldb/test/API/lang/swift/completion/TestSwiftREPLCompletion.py
WYK15/swift-Ollvm10
ea68224ab23470963b68dfcc28b5ac769a070ea3
[ "Apache-2.0" ]
3
2021-06-11T17:30:05.000Z
2022-01-29T13:46:47.000Z
lldb/test/API/lang/swift/completion/TestSwiftREPLCompletion.py
WYK15/swift-Ollvm10
ea68224ab23470963b68dfcc28b5ac769a070ea3
[ "Apache-2.0" ]
null
null
null
lldb/test/API/lang/swift/completion/TestSwiftREPLCompletion.py
WYK15/swift-Ollvm10
ea68224ab23470963b68dfcc28b5ac769a070ea3
[ "Apache-2.0" ]
null
null
null
import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import PExpectTest class SwiftCompletionTest(PExpectTest): mydir = TestBase.compute_mydir(__file__) # This test is failing sporadically on the bots (rdar://66291543) due to # some cl...
34.391304
82
0.670038
343d0f86976e0113be6c3e327c4d9684ab8a6f8d
9,317
py
Python
tests/agents/student/test_goals.py
e-kolpakov/study-model
e10dd9f0d876c8d434fef99c5ffea80b385ec9ed
[ "MIT" ]
2
2019-04-25T04:59:02.000Z
2019-05-09T06:14:04.000Z
tests/agents/student/test_goals.py
e-kolpakov/study-model
e10dd9f0d876c8d434fef99c5ffea80b385ec9ed
[ "MIT" ]
null
null
null
tests/agents/student/test_goals.py
e-kolpakov/study-model
e10dd9f0d876c8d434fef99c5ffea80b385ec9ed
[ "MIT" ]
null
null
null
from unittest import mock from unittest.mock import PropertyMock import pytest from model.agents.resource import Resource from model.agents.student.goals import StudyCompetenciesGoal, PassExamGoal from model.knowledge_representation import Competency, Fact from model.knowledge_representation.lesson_type import Exam, ...
44.366667
120
0.599549
df0c96f9c79cc404036dabf55965837140de0d78
968
py
Python
tests/workflows/test_wrappers.py
mfarrera/algorithm-reference-library
7331812aa7cc3501a15d3392cecf6ea65b43f91e
[ "Apache-2.0" ]
null
null
null
tests/workflows/test_wrappers.py
mfarrera/algorithm-reference-library
7331812aa7cc3501a15d3392cecf6ea65b43f91e
[ "Apache-2.0" ]
null
null
null
tests/workflows/test_wrappers.py
mfarrera/algorithm-reference-library
7331812aa7cc3501a15d3392cecf6ea65b43f91e
[ "Apache-2.0" ]
null
null
null
""" Unit tests for json helpers """ import logging import unittest from data_models.parameters import arl_path from workflows.arlexecute.processing_component_interface.processing_component_interface \ import initialise_config_wrapper from workflows.arlexecute.processing_component_interface.execution_helper impor...
33.37931
112
0.711777
8001ec2ceef0adddd340965147132ff941ce8317
410
py
Python
examples/simple_auth.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
2
2022-03-16T10:18:38.000Z
2022-03-16T13:08:51.000Z
examples/simple_auth.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
1
2022-03-16T12:52:28.000Z
2022-03-16T13:08:30.000Z
examples/simple_auth.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
4
2022-03-16T09:33:05.000Z
2022-03-30T05:46:58.000Z
from gitflic import Gitflic, GitflicAuth # Your authentication token. # See: https://gitflic.ru/settings/oauth/token/create token = "token_here" # Creating authorized session with our token. gf_session = GitflicAuth(token) gf = Gitflic(gf_session) def main(): # Call method to get authorized user from API. ...
20.5
53
0.712195
60fd86e72296d8de8636a581200b69921cbcbd67
4,634
py
Python
docarray/document/mixins/text.py
fastflair/docarray
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
[ "Apache-2.0" ]
1
2022-03-16T14:05:32.000Z
2022-03-16T14:05:32.000Z
docarray/document/mixins/text.py
fastflair/docarray
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
[ "Apache-2.0" ]
null
null
null
docarray/document/mixins/text.py
fastflair/docarray
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
[ "Apache-2.0" ]
null
null
null
from collections import Counter from typing import Tuple, Dict, Union, Optional, TYPE_CHECKING import numpy as np from .helper import _uri_to_blob, _to_datauri if TYPE_CHECKING: from ...types import T class TextDataMixin: """Provide helper functions for :class:`Document` to support text data. """ def ...
36.777778
123
0.611135
0986bcd21821ac806ebbe0f7d10798feea61cc7b
1,144
py
Python
emulator/tests/test_binja.py
joshwatson/f-ing-around-with-binaryninja
2f7e907952a15305541820ac11ff0a86645c631d
[ "MIT" ]
88
2019-01-13T20:11:13.000Z
2022-02-08T01:13:46.000Z
emulator/tests/test_binja.py
joshwatson/f-ing-around-with-binaryninja
2f7e907952a15305541820ac11ff0a86645c631d
[ "MIT" ]
4
2019-03-20T03:02:49.000Z
2020-10-31T11:57:56.000Z
emulator/tests/test_binja.py
joshwatson/f-ing-around-with-binaryninja
2f7e907952a15305541820ac11ff0a86645c631d
[ "MIT" ]
10
2019-04-26T08:59:56.000Z
2020-08-19T03:19:27.000Z
from binaryninja import (BinaryView, LowLevelILFunction, PluginCommand, SegmentFlag) from emulator import Executor def setup_stack(view: BinaryView, function: LowLevelILFunction) -> None: emulator = view.session_data['emulator'] memory_view = view.session_data['emulator.memory.view'] ...
27.238095
72
0.640734
eafdacc7f22d3cb3f0b31cc6fbbecf32d19dc157
2,196
py
Python
getsitemap/main.py
hsiaofongw/watson
bd8939e198d747633db00582a9f5bb00bdc04acc
[ "MIT" ]
null
null
null
getsitemap/main.py
hsiaofongw/watson
bd8939e198d747633db00582a9f5bb00bdc04acc
[ "MIT" ]
null
null
null
getsitemap/main.py
hsiaofongw/watson
bd8939e198d747633db00582a9f5bb00bdc04acc
[ "MIT" ]
null
null
null
import argparse from urlhandle import URLHandler from inputhandle import InputHandler from crawler import Crawler from sitemap import SiteMapParser # import default configuration from config import USER_AGENT from config import SITEMAP_PATH # do those when it is invoke from commandline def main(): # parse com...
27.111111
72
0.666667
eb041db7d63e94382c58ebefc99e26b5a2225bee
515
py
Python
Examples/Foundation/Scripts/super-call.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
Examples/Foundation/Scripts/super-call.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
Examples/Foundation/Scripts/super-call.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
# # Demonstrates that the super-class implementation of an overridden method # can be called in the same way as with normal objects. # from Foundation import NSObject from objc import super N = 1 class MyObject(NSObject): def init(self): global N if N == 1: print("Calling super.init")...
19.807692
74
0.609709
9d9990e9d52da1aacaa9ac433d43fd884c3d7dfe
7,656
py
Python
src/NetCloud-Failover-Reporter.py
CC-Digital-Innovation/NetCloud-Failover-Reporter
b5034009938e6a6a161439c1dd7020516b6fe940
[ "MIT" ]
null
null
null
src/NetCloud-Failover-Reporter.py
CC-Digital-Innovation/NetCloud-Failover-Reporter
b5034009938e6a6a161439c1dd7020516b6fe940
[ "MIT" ]
null
null
null
src/NetCloud-Failover-Reporter.py
CC-Digital-Innovation/NetCloud-Failover-Reporter
b5034009938e6a6a161439c1dd7020516b6fe940
[ "MIT" ]
null
null
null
import configparser from datetime import datetime import os import pandas as pd import pytz import requests import time_uuid # Module information. __author__ = 'Anthony Farina' __copyright__ = 'Copyright 2021, NetCloud Monthly Failover Reporter' __credits__ = ['Anthony Farina'] __license__ = 'MIT' __version__ = '1.1...
43.748571
79
0.662487
38167803e96f2d73bb49b4ccad1e0e45ad4100ca
942
py
Python
cmachines_site/cmachines/urls.py
JinpengLI/gpu_share_platform
53d7f2b45acd9340cf49908fe9809f8d2856757c
[ "MIT" ]
18
2018-02-21T00:39:37.000Z
2019-05-21T08:03:49.000Z
cmachines_site/cmachines/urls.py
JinpengLI/gpu_share_platform
53d7f2b45acd9340cf49908fe9809f8d2856757c
[ "MIT" ]
1
2020-08-08T18:05:31.000Z
2020-08-08T19:57:05.000Z
cmachines_site/cmachines/urls.py
JinpengLI/gpu_share_platform
53d7f2b45acd9340cf49908fe9809f8d2856757c
[ "MIT" ]
12
2018-02-22T07:22:58.000Z
2020-01-06T07:45:52.000Z
"""cmachines URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
34.888889
79
0.690021
f33c05029150313b113774972ccc24ccbe622cc0
10,338
py
Python
tools_webrtc/libs/generate_licenses.py
wnpllrzodiac/webrtc_code_mirror
0e7b3a9dadc64266eba82b0fc1265b36b7794839
[ "BSD-3-Clause" ]
2
2021-01-27T16:03:00.000Z
2022-02-16T08:07:37.000Z
tools_webrtc/libs/generate_licenses.py
wnpllrzodiac/webrtc_code_mirror
0e7b3a9dadc64266eba82b0fc1265b36b7794839
[ "BSD-3-Clause" ]
1
2021-09-22T12:27:53.000Z
2021-09-22T12:27:53.000Z
tools_webrtc/libs/generate_licenses.py
wnpllrzodiac/webrtc_code_mirror
0e7b3a9dadc64266eba82b0fc1265b36b7794839
[ "BSD-3-Clause" ]
2
2021-01-21T01:51:02.000Z
2021-01-21T06:09:09.000Z
#!/usr/bin/env python # Copyright 2016 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All...
38.574627
84
0.6568
6728026c1fd7120439b32f83a9931670f7b8e3c9
2,140
py
Python
src/bibox/api.py
gjwang/trading_robot
81713875d63c1596483bdbc61e7d0ccab140b331
[ "MIT" ]
null
null
null
src/bibox/api.py
gjwang/trading_robot
81713875d63c1596483bdbc61e7d0ccab140b331
[ "MIT" ]
null
null
null
src/bibox/api.py
gjwang/trading_robot
81713875d63c1596483bdbc61e7d0ccab140b331
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- import hmac import hashlib import json, requests #1-买,2-卖 ORDER_SIDE_BUY = 1 ORDER_SIDE_SELL = 2 #订单类型,2-限价单 #ORDER_TYPE_MARKET = ? ORDER_TYPE_LIMIT = 2 ACCOUNT_TYPE_COMMON = 0 #0-普通账户 account_type = ACCOUNT_TYPE_COMMON BIBOX_API = "https://api.bibox.com/v1/orderpending" class BiboxClient(o...
28.157895
105
0.558879
d0b9884c39f9557e94552d4b0e92b7493a81cbbd
11,824
py
Python
odoo/addons/base/tests/test_user_has_group.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
odoo/addons/base/tests/test_user_has_group.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
odoo/addons/base/tests/test_user_has_group.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests.common import TransactionCase from odoo.exceptions import ValidationError class TestHasGroup(TransactionCase): def setUp(self): super(TestHasGroup, self).setUp() self.group0 = 'test...
46.920635
130
0.622294
f47baf3714d79b9a71b8cef9bcfec5413651163b
2,803
py
Python
tests/unit_tests/common/test_imcversion.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
tests/unit_tests/common/test_imcversion.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
tests/unit_tests/common/test_imcversion.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
# Copyright 2015 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
29.197917
74
0.704245
e20a5994755e20ea8f47c51ee5def578f1c3135f
1,248
py
Python
Competitive_Coding/First_Pattern_Match.py
Arko98/Alogirthms
ce56faaaf847dbf077de935a98814c37275f8a5f
[ "MIT" ]
5
2020-08-02T16:31:09.000Z
2022-02-21T22:58:59.000Z
Competitive_Coding/First_Pattern_Match.py
Arko98/Alogirthms
ce56faaaf847dbf077de935a98814c37275f8a5f
[ "MIT" ]
null
null
null
Competitive_Coding/First_Pattern_Match.py
Arko98/Alogirthms
ce56faaaf847dbf077de935a98814c37275f8a5f
[ "MIT" ]
3
2020-09-27T11:23:58.000Z
2020-10-01T05:47:39.000Z
# Problem Statement: # Solution class Solution: def strStr(self, haystack: str, needle: str) -> int: if needle == "": return 0 if haystack == "": return -1 found = 0 found_idx = 0 needle_length = len...
27.130435
90
0.426282
b595a9cd1f4bd2011ccb223bc17c5f0f597d9fb1
356
py
Python
src/cogent3/recalculation/__init__.py
xingjianleng/cogent3
a85d08a948f6903e4e04eea8292f588cc0b4907e
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/recalculation/__init__.py
xingjianleng/cogent3
a85d08a948f6903e4e04eea8292f588cc0b4907e
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/recalculation/__init__.py
xingjianleng/cogent3
a85d08a948f6903e4e04eea8292f588cc0b4907e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/envthon __all__ = ["calculation", "definition", "scope", "setting"] __author__ = "Peter Maxwell" __copyright__ = "Copyright 2007-2022, The Cogent Project" __credits__ = ["Peter Maxwell", "Gavin Huttley"] __license__ = "BSD-3" __version__ = "2022.4.20a1" __maintainer__ = "Peter Maxwell" __email__ = "pm67nz@g...
29.666667
59
0.730337
409da00d34e5ca485a34ca9c70927c0423f7ad5f
17,240
py
Python
python/ray/serve/replica.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
3
2021-06-24T17:00:18.000Z
2021-09-20T15:49:11.000Z
python/ray/serve/replica.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
227
2021-10-01T08:00:01.000Z
2021-12-28T16:47:26.000Z
python/ray/serve/replica.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
1
2020-12-02T06:26:20.000Z
2020-12-02T06:26:20.000Z
import asyncio import logging import pickle import inspect from typing import Any, Callable, Optional, Tuple, Dict import time import aiorwlock import starlette.responses import ray from ray import cloudpickle from ray.actor import ActorHandle from ray._private.async_compat import sync_to_async from ray.serve.autosc...
42.358722
79
0.621578
ca5599be28d1ff969217ab1070e38e71cc3670c7
1,786
py
Python
First_bad_version.py.py
raniyer/Learning-competitive-coding
e79ab7f1cd74bd635ccc1d817db65d8101289c9c
[ "MIT" ]
2
2020-05-16T03:38:32.000Z
2020-06-04T13:41:28.000Z
First_bad_version.py.py
raniyer/30daysofcode-May-leetcode
e79ab7f1cd74bd635ccc1d817db65d8101289c9c
[ "MIT" ]
null
null
null
First_bad_version.py.py
raniyer/30daysofcode-May-leetcode
e79ab7f1cd74bd635ccc1d817db65d8101289c9c
[ "MIT" ]
null
null
null
""" You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad. Suppose you have n versions [1, 2, ..., n]...
33.074074
270
0.576148