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
930dfe4b34f879e793ca67eeaa01c43a64b3839b
8,089
py
Python
src/T2D23D.py
WYGNG/USTC_SSE_Project
1c0cd4056f40445aed13ec1ae584608d625b9127
[ "MIT" ]
null
null
null
src/T2D23D.py
WYGNG/USTC_SSE_Project
1c0cd4056f40445aed13ec1ae584608d625b9127
[ "MIT" ]
null
null
null
src/T2D23D.py
WYGNG/USTC_SSE_Project
1c0cd4056f40445aed13ec1ae584608d625b9127
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import xlrd import math from scipy import optimize # 计算角度,(x1, y1, z1)为顶点 def get_angle1(x1,y1,z1,x2,y2,z2,x3,y3,z3): a=math.sqrt((x2-x3)**2+(y2-y3)**2+(z2-z3)**2) b=math.sqrt((x1-x3)**2+(y1-y3)**2+(z1-z3)**2) c=math.sqrt((x2-x1)**2+(y2-y1)**2+(z2-z1)**2) ...
48.14881
129
0.491532
83f3bb07bc302b2491d0d82b05b82098c462eaf8
777
py
Python
minigest/tributi/models/tributo/inps.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
null
null
null
minigest/tributi/models/tributo/inps.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
1
2021-09-22T19:10:20.000Z
2021-09-22T19:10:20.000Z
minigest/tributi/models/tributo/inps.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
null
null
null
from django.db import models from .tributo import Tributo class TributoSezInps(models.Model): imposta = models.ForeignKey( Tributo, on_delete=models.CASCADE, related_name="sezione_inps" ) sede = models.CharField(max_length=10, verbose_name="codice sede") causale = models.CharField(max_lengt...
26.793103
80
0.707851
3745c76ade618dc18df531964a9859090af4d097
3,062
py
Python
twentyc/vodka/tools/django.py
20c/vodka1
34fb1c23a27c9a3b2eb59821a6bf967e04c18941
[ "Apache-2.0" ]
null
null
null
twentyc/vodka/tools/django.py
20c/vodka1
34fb1c23a27c9a3b2eb59821a6bf967e04c18941
[ "Apache-2.0" ]
null
null
null
twentyc/vodka/tools/django.py
20c/vodka1
34fb1c23a27c9a3b2eb59821a6bf967e04c18941
[ "Apache-2.0" ]
null
null
null
# django <-> vodka synergy """ Xbahn replication receiver to replicate django-namespace-perms data to valid vodka perms using the vodkatools module manager """ import twentyc.xbahn.couchdb.replication as replication import twentyc.vodka.tools.module_manager as modman import twentyc.database as database from twentyc.t...
31.56701
130
0.643697
a9dce7f39a2b646d80e4acbbe5ce59549d4ab9f4
626
py
Python
plugins/groupinfo.py
fosslife/grambot
fbec1a8df939823b18915d4689e9da6f5adb871b
[ "MIT" ]
7
2020-05-28T04:08:02.000Z
2022-02-22T18:11:03.000Z
plugins/groupinfo.py
fosslife/grambot
fbec1a8df939823b18915d4689e9da6f5adb871b
[ "MIT" ]
1
2021-07-28T10:12:25.000Z
2021-12-13T15:09:43.000Z
plugins/groupinfo.py
fosslife/grambot
fbec1a8df939823b18915d4689e9da6f5adb871b
[ "MIT" ]
4
2020-03-30T18:27:08.000Z
2022-02-25T16:28:06.000Z
from userbot import bot, logger from telethon import TelegramClient, events from config import groupinfo @bot.on(events.NewMessage(**groupinfo)) async def fn(event): logger.info("group info plugin called") try: id = event.message.to_id.channel_id logger.info(f"sending group id - {id}") ...
29.809524
61
0.662939
07bdafc18774bfcd6fa8cf5e347de36ff0a4e666
12,308
py
Python
generated/intermediate/ansible-module-rest/azure_rm_apimanagementnotificationrecipientemail.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
generated/intermediate/ansible-module-rest/azure_rm_apimanagementnotificationrecipientemail.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
generated/intermediate/ansible-module-rest/azure_rm_apimanagementnotificationrecipientemail.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2019 Zim Kalinowski, (@zikalino) # # 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_version': '1.1', ...
33.720548
113
0.53843
c9fb9128994d65e802fe7e09c5ea25c6fdc37c5a
2,290
py
Python
tests/test_plotting.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
1
2020-11-20T17:17:50.000Z
2020-11-20T17:17:50.000Z
tests/test_plotting.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
12
2020-11-19T05:22:13.000Z
2020-12-15T03:50:33.000Z
tests/test_plotting.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
null
null
null
import unittest from desc.plotting import Plot class TestPlot(unittest.TestCase): def setUp(self): self.names = ['B', '|B|', 'B^zeta', 'B_zeta', 'B_r', 'B^zeta_r', 'B_zeta_r', 'B**2', 'B_r**2', 'B^zeta**2', 'B_zeta**2', 'B^zeta_r**2', 'B_zeta_r**2'] self.bases = ['...
43.207547
88
0.461135
932b93c10975f6027c651fddd480d265b5c3415e
461
py
Python
pygsuite/docs/doc_elements/paragraph_elements/horizontal_rule.py
gitter-badger/pygsuite
536766c36f653edbc7585141f1c3327f508e19da
[ "MIT" ]
null
null
null
pygsuite/docs/doc_elements/paragraph_elements/horizontal_rule.py
gitter-badger/pygsuite
536766c36f653edbc7585141f1c3327f508e19da
[ "MIT" ]
null
null
null
pygsuite/docs/doc_elements/paragraph_elements/horizontal_rule.py
gitter-badger/pygsuite
536766c36f653edbc7585141f1c3327f508e19da
[ "MIT" ]
null
null
null
from pygsuite.docs.doc_elements.paragraph_elements.base_paragraph_element import ( BaseParagraphElement, ) class HorizontalRule(BaseParagraphElement): def __init__(self, element, presentation): BaseParagraphElement.__init__(self, element, presentation) self._detail = element.get("textRun") ...
27.117647
82
0.720174
7436114e673ba22378b51b3f6dc2a27ca24646eb
529
py
Python
SecondExamPrepare/trainers.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
SecondExamPrepare/trainers.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
SecondExamPrepare/trainers.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
n = int(input()) teams = {'Theoretical': 0.0, 'Technical': 0.0, 'Practical': 0.0} for i in range(n): dist = float(input()) cargo = float(input()) team = input() try: teams[team] += (cargo * 100 * 15) - (7 * dist * 16 * 25) except: teams[team] = (cargo * 100 * 15) - (7 * dist * 16 *...
23
64
0.52552
0e2ec1ba014ff3379d60684153d2cf9e40b1479b
11,208
py
Python
HTMLgen/HTMLcalendar.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
4
2021-10-17T11:17:59.000Z
2022-02-28T16:58:40.000Z
HTMLgen/HTMLcalendar.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
17
2021-10-05T21:44:06.000Z
2022-03-31T16:58:40.000Z
HTMLgen/HTMLcalendar.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
8
2021-09-02T18:55:49.000Z
2022-03-09T21:05:28.000Z
#!/usr/bin/env python # COPYRIGHT (C) 1997 ROBIN FRIEDRICH # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this per...
36.747541
82
0.584939
68a569e5724f42db636a67c027a5b4ddb386a2f5
396
py
Python
nrc/nrc/geocode.py
SkyTruth/scraper
c1903a74c717a7b36a05f0f466c51544911c4499
[ "MIT" ]
2
2016-07-01T02:41:17.000Z
2020-04-04T16:16:55.000Z
nrc/nrc/geocode.py
SkyTruth/scraper
c1903a74c717a7b36a05f0f466c51544911c4499
[ "MIT" ]
4
2015-01-14T17:00:12.000Z
2015-06-29T19:36:27.000Z
nrc/nrc/geocode.py
SkyTruth/scraper
c1903a74c717a7b36a05f0f466c51544911c4499
[ "MIT" ]
null
null
null
# Nrc Geocoder #Sample query # http://maps.google.com/maps/geo?output=xml&q=25443&key=ABQIAAAA9E7RFHw8xvp1qJV2sqmcnhRzLYtVAEvZxjHSR41mZtuamhVQghSkixo_dpWZfJxxjhJsEwWBcmEhTw #Problem - want to use the spider to perform the request? class NrcGeocoder (object): def __init__(self): pass def ...
24.75
143
0.691919
c04a3d09fe0d2fdea3200b765ba203507a753d41
762
py
Python
src/Python/tests/test_neo4j_access.py
PathwayAnalysisPlatform/ProteoformNetworks
3d31e5b3cb4abc45e6419fa982c08b3dc5c2624e
[ "Apache-2.0" ]
1
2019-08-16T12:40:14.000Z
2019-08-16T12:40:14.000Z
src/Python/tests/test_neo4j_access.py
LuisFranciscoHS/ProteoformNetworks
a6baa87fe6f76905f6d58a2f7cb66aad5d8d56c5
[ "Apache-2.0" ]
9
2019-08-16T07:33:33.000Z
2022-03-04T22:20:02.000Z
src/Python/tests/test_neo4j_access.py
LuisFranciscoHS/ProteoformNetworks
a6baa87fe6f76905f6d58a2f7cb66aad5d8d56c5
[ "Apache-2.0" ]
1
2022-02-21T17:42:48.000Z
2022-02-21T17:42:48.000Z
import pytest import pandas as pd from lib.graph_database_access import get_query_result def test_get_query_result(): query = "MATCH (p:Pathway{stId:\"R-HSA-9634600\"}) RETURN p.displayName as Name" result = get_query_result(query) assert len(result) == 1 assert type(result) == pd.DataFrame asser...
34.636364
103
0.721785
0c1aac6c79860b47233380412cdfd204f83d237a
12,467
py
Python
tweetsearch.py
codykingham/spacex_smartweets
b2beddbe544d0b7ae23434fc3ade24bbae778e78
[ "MIT" ]
1
2020-06-26T18:17:41.000Z
2020-06-26T18:17:41.000Z
tweetsearch.py
codykingham/spacex_smartweets
b2beddbe544d0b7ae23434fc3ade24bbae778e78
[ "MIT" ]
1
2020-02-09T21:19:29.000Z
2020-02-09T21:19:29.000Z
tweetsearch.py
codykingham/spacex_smartweets
b2beddbe544d0b7ae23434fc3ade24bbae778e78
[ "MIT" ]
1
2019-06-04T14:37:27.000Z
2019-06-04T14:37:27.000Z
import os, twitter, re, json, requests, time, pytz from datetime import datetime # NLP tools import nltk from nltk.stem import WordNetLemmatizer from nltk.tokenize import TweetTokenizer from nltk.corpus import wordnet lemma = WordNetLemmatizer() # NB: splits off #s and @s; otherwise, use TweetTokenizer().tokenize to...
31.012438
120
0.556028
b9cbf71730c34edbc31cfeb01925f0ab9323c67a
1,056
py
Python
setup.py
xbanke/matpy
a136f0a264f97510f749a2eec46a813ccb5d388e
[ "MIT" ]
null
null
null
setup.py
xbanke/matpy
a136f0a264f97510f749a2eec46a813ccb5d388e
[ "MIT" ]
null
null
null
setup.py
xbanke/matpy
a136f0a264f97510f749a2eec46a813ccb5d388e
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @version: 0.1 @author: quantpy @file: setup.py @time: 2018/4/10 14:53 """ try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='matlab-python', version='0.1.2', description='Call matlab from ...
24.55814
59
0.609848
5b828690455eb62bf68ace2079cf96e6b77ad43a
5,536
py
Python
pangramsolver.py
zambrey/pangram-solver
9ee60c6c5312ccc51bb49b8e191c50d12fafbfb3
[ "MIT" ]
null
null
null
pangramsolver.py
zambrey/pangram-solver
9ee60c6c5312ccc51bb49b8e191c50d12fafbfb3
[ "MIT" ]
null
null
null
pangramsolver.py
zambrey/pangram-solver
9ee60c6c5312ccc51bb49b8e191c50d12fafbfb3
[ "MIT" ]
1
2021-02-25T00:45:22.000Z
2021-02-25T00:45:22.000Z
import pygtrie as trie import requests from requests.exceptions import HTTPError from typing import List, Set, Tuple class pangramgame: def __init__(self, letters: List[str], required: List[str], lenRange: Tuple[int, int]): self._letters = set([s.lower() for s in letters]) self._vowels = ...
36.662252
195
0.501987
71193cfecacfe903b295491e05007d0f2cb0e91f
5,903
py
Python
models/official/mask_rcnn/mask_rcnn_main.py
aman2930/tpu
1724c0ee08523ecb4e10872026afd2d8391137c1
[ "Apache-2.0" ]
5,098
2018-02-09T16:56:49.000Z
2022-03-31T13:50:40.000Z
models/official/mask_rcnn/mask_rcnn_main.py
aman2930/tpu
1724c0ee08523ecb4e10872026afd2d8391137c1
[ "Apache-2.0" ]
550
2018-02-07T05:30:06.000Z
2022-03-13T22:00:09.000Z
models/official/mask_rcnn/mask_rcnn_main.py
aman2930/tpu
1724c0ee08523ecb4e10872026afd2d8391137c1
[ "Apache-2.0" ]
1,920
2018-02-07T23:44:49.000Z
2022-03-29T03:11:08.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.993902
80
0.737591
8e97c9479931a780a49d64dbd6bf6d07aebe4cb1
937
py
Python
product/urls.py
KylebitXY/myline
dce12e1575ea709e4ee6d35ba84df0fc17a6a961
[ "MIT" ]
null
null
null
product/urls.py
KylebitXY/myline
dce12e1575ea709e4ee6d35ba84df0fc17a6a961
[ "MIT" ]
null
null
null
product/urls.py
KylebitXY/myline
dce12e1575ea709e4ee6d35ba84df0fc17a6a961
[ "MIT" ]
null
null
null
from django.urls import path from .api import CategoryAPI from .api import BrandAPI from .api import ProductAPI from .api import Product_FilterAPI #from .api import Product_Filter_name_API from product.api import GetProductById from product.api import GetPicturesByProductId from product.api import GetCommentsByProductI...
37.48
84
0.739594
60058beb0be9a8efb2c729106c60f9e2964219fe
36,181
py
Python
youtube_dl/extractor/extractors.py
s200801005/youtube-dl
9979184eb9e643bb87b6172547b9af6366671a00
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/extractors.py
s200801005/youtube-dl
9979184eb9e643bb87b6172547b9af6366671a00
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/extractors.py
s200801005/youtube-dl
9979184eb9e643bb87b6172547b9af6366671a00
[ "Unlicense" ]
null
null
null
# flake8: noqa from __future__ import unicode_literals from .abc import ( ABCIE, ABCIViewIE, ) from .abcnews import ( AbcNewsIE, AbcNewsVideoIE, ) from .abcotvs import ( ABCOTVSIE, ABCOTVSClipsIE, ) from .academicearth import AcademicEarthCourseIE from .acast import ( ACastIE, ACastChan...
21.927879
90
0.765125
93d89c8e755269c9f22298b41db5b8d3aedf6c62
11,592
py
Python
sppas/sppas/src/anndata/aio/anvil.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/anndata/aio/anvil.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/anndata/aio/anvil.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ ...
34.19469
79
0.515183
d5878ef1831a4fc06f6d927242f0d88d1cac5efa
4,347
py
Python
docs/fabfile.py
mattvonrocketstein/ymir
a16117ec64c60ec52b0daa3b19eb711ec42b5070
[ "MIT" ]
3
2015-10-14T04:07:28.000Z
2017-09-09T11:12:51.000Z
docs/fabfile.py
mattvonrocketstein/ymir
a16117ec64c60ec52b0daa3b19eb711ec42b5070
[ "MIT" ]
36
2015-05-07T11:46:32.000Z
2021-09-23T23:20:56.000Z
docs/fabfile.py
mattvonrocketstein/ymir
a16117ec64c60ec52b0daa3b19eb711ec42b5070
[ "MIT" ]
3
2016-01-05T17:04:07.000Z
2016-03-14T09:08:22.000Z
# -*- coding: utf-8 -*- from fabric import api import os import shutil from fabric import colors PORT = 8000 PROJECT_NAME = 'ymir' DOC_ROOT = os.path.dirname(__file__) SRC_ROOT = os.path.dirname(DOC_ROOT) GEN_PATH = os.path.join(DOC_ROOT, 'ymir') DEPLOY_PATH = "~/code/ghio/{0}".format(PROJECT_NAME) DEPLOY_PATH = os.pa...
28.98
96
0.590522
43c84dc12a5f4200a375f099ad8dfb1a247ace17
1,728
py
Python
misc/webdriver-w3c-tests/element_location/element_location_test.py
chenxix/crosswalk-test-suite
a2353dd2df912334cf6489f99bc0af4e091079a0
[ "BSD-3-Clause" ]
null
null
null
misc/webdriver-w3c-tests/element_location/element_location_test.py
chenxix/crosswalk-test-suite
a2353dd2df912334cf6489f99bc0af4e091079a0
[ "BSD-3-Clause" ]
null
null
null
misc/webdriver-w3c-tests/element_location/element_location_test.py
chenxix/crosswalk-test-suite
a2353dd2df912334cf6489f99bc0af4e091079a0
[ "BSD-3-Clause" ]
null
null
null
# -*- mode: python; fill-column: 100; comment-column: 100; -*- import os import sys import unittest sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) import base_test class ElementLocationTest(base_test.WebDriverBaseTest): def test_find_element_by_id(self): self....
38.4
89
0.712384
0ce3770fdd33ade486b57b2531eec0488cd463fb
94
py
Python
python/GUI/POM/KnowledgePage/__init__.py
toilatester/sample-automation-frameworks-across-languages
4c1ceb3f8fff14ed838f94c92be7d92013c95d4a
[ "Apache-2.0" ]
8
2020-12-11T06:57:12.000Z
2021-10-11T12:53:49.000Z
python/GUI/POM/KnowledgePage/__init__.py
toilatester/sample-automation-frameworks-across-languages
4c1ceb3f8fff14ed838f94c92be7d92013c95d4a
[ "Apache-2.0" ]
null
null
null
python/GUI/POM/KnowledgePage/__init__.py
toilatester/sample-automation-frameworks-across-languages
4c1ceb3f8fff14ed838f94c92be7d92013c95d4a
[ "Apache-2.0" ]
2
2021-04-06T08:14:35.000Z
2021-08-05T01:43:54.000Z
from .KnowledgePage import KnowledgePage from .KnowledgeValidation import KnowledgeValidation
31.333333
52
0.893617
198e4fde4425ad21eb92fa4d7c696b4e1f7875eb
36,416
py
Python
test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/models/_models_py3.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
4
2020-10-22T20:35:38.000Z
2021-12-21T07:29:01.000Z
test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/models/_models_py3.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
3
2020-09-09T15:16:15.000Z
2021-12-20T15:25:18.000Z
test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/models/_models_py3.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
2
2020-11-10T07:16:23.000Z
2020-12-30T11:03:14.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
32.427427
364
0.609732
073724f9391e2cf30c500883f0f7d2d9200545ba
30,773
py
Python
tensorflow_probability/python/distributions/transformed_distribution.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
1
2020-07-12T22:40:42.000Z
2020-07-12T22:40:42.000Z
tensorflow_probability/python/distributions/transformed_distribution.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
2
2019-08-01T18:31:41.000Z
2019-08-01T19:42:15.000Z
tensorflow_probability/python/distributions/transformed_distribution.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
1
2020-04-17T18:01:47.000Z
2020-04-17T18:01:47.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
44.469653
92
0.695057
64eb65d1ee9cc975d88d3b144b3084cd83a02010
4,220
py
Python
examples/common/python/connectors/direct/tcs_listener/tcs_worker_encryption_key_handler.py
AvalonRelease5/avalon
0bd78b907fba0896c512678b5b560c3f358e787c
[ "Apache-2.0" ]
null
null
null
examples/common/python/connectors/direct/tcs_listener/tcs_worker_encryption_key_handler.py
AvalonRelease5/avalon
0bd78b907fba0896c512678b5b560c3f358e787c
[ "Apache-2.0" ]
null
null
null
examples/common/python/connectors/direct/tcs_listener/tcs_worker_encryption_key_handler.py
AvalonRelease5/avalon
0bd78b907fba0896c512678b5b560c3f358e787c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Intel Corporation # # 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 wri...
37.678571
98
0.618009
4a79aedfd54a0fe66fba31a8ec102a707e448c98
6,860
py
Python
heronpy/api/bolt/window_bolt.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
3,348
2016-05-25T16:04:31.000Z
2018-03-28T17:46:14.000Z
heronpy/api/bolt/window_bolt.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
1,542
2016-05-25T16:46:44.000Z
2018-03-29T17:30:23.000Z
heronpy/api/bolt/window_bolt.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
702
2016-05-25T16:07:43.000Z
2018-03-27T06:31:07.000Z
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apach...
37.692308
85
0.737172
2fea8a9d70b1bd43d7dcaf6be79aca3578470574
552
py
Python
cx_Freeze/samples/openpyxl/test_openpyxl.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
358
2020-07-02T13:00:02.000Z
2022-03-29T10:03:57.000Z
cx_Freeze/samples/openpyxl/test_openpyxl.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
372
2020-07-02T20:47:57.000Z
2022-03-31T19:35:05.000Z
cx_Freeze/samples/openpyxl/test_openpyxl.py
lexa/cx_Freeze
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
[ "PSF-2.0" ]
78
2020-07-09T14:24:03.000Z
2022-03-22T19:06:52.000Z
#!/usr/bin/env python # NOTE: this code is the sample code found in the openpyxl documentation which # can be found at https://openpyxl.readthedocs.io/en/default. from openpyxl import Workbook wb = Workbook() # grab the active worksheet ws = wb.active # Data can be assigned directly to cells ws["A1"] = 42 # Rows ...
19.714286
78
0.731884
94511dde67831616cc29c4fc7f1784a7a54f99b8
1,444
py
Python
pyppium/driver.py
leomenezessz/pyppium
1ef2b27901fb67070bdc882eef987266804a33ce
[ "MIT" ]
17
2020-07-19T16:29:08.000Z
2021-08-20T20:28:16.000Z
pyppium/driver.py
leomenezessz/pyppium
1ef2b27901fb67070bdc882eef987266804a33ce
[ "MIT" ]
12
2020-07-21T06:42:48.000Z
2020-09-05T18:08:16.000Z
pyppium/driver.py
leomenezessz/pyppium
1ef2b27901fb67070bdc882eef987266804a33ce
[ "MIT" ]
6
2020-07-19T16:28:56.000Z
2020-11-12T00:29:51.000Z
from os import environ from appium import webdriver from pyppium import exception from pyppium.settings import config _driver: webdriver.Remote class PyppiumDriver(object): def __init__( self, caps, appium_url=config["driver"]["appium_url"], use_browserstack=False, **kwar...
22.5625
85
0.567867
38143d3293d51ba65466d53dfc95cb4881f4f217
2,957
py
Python
lib/fast_rcnn/bbox_transform.py
autumnqin/caffe_multi_gpu
20d94967691352588f354d45385886bc0ab8a5aa
[ "BSD-2-Clause" ]
null
null
null
lib/fast_rcnn/bbox_transform.py
autumnqin/caffe_multi_gpu
20d94967691352588f354d45385886bc0ab8a5aa
[ "BSD-2-Clause" ]
null
null
null
lib/fast_rcnn/bbox_transform.py
autumnqin/caffe_multi_gpu
20d94967691352588f354d45385886bc0ab8a5aa
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import numpy as np def bbox_transform(ex_rois, gt_rois): ex_widths...
34.383721
79
0.551573
268c77abf90159e91c7c74c80e1face78874add1
5,519
py
Python
django/smartcity/vagent/backups/test_vagent.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
django/smartcity/vagent/backups/test_vagent.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
django/smartcity/vagent/backups/test_vagent.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
''' This python script will listen to the defined vip address for specific topics. The user can modify the settings.py file to set the specific topics to listen to. With a volttron activated shell this script can be run like: python standalonelistener.py This script prints all output ...
38.326389
146
0.623664
254f298cd6e30eb5763688934134c6d886a3d7a6
1,118
py
Python
data_stru_nd_algo/prime_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
3
2018-02-08T21:09:27.000Z
2021-06-15T04:48:46.000Z
analysis_of_algorithms/prime_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
null
null
null
analysis_of_algorithms/prime_vi.py
vishwasks32/python3-learning
39f39238428727ef0c97c74c8de2570bd84da403
[ "Apache-2.0" ]
1
2018-02-08T21:09:31.000Z
2018-02-08T21:09:31.000Z
#!/usr/bin/env python3 # # Author: Vishwas K Singh # Email: vishwasks32@gmail.com # To Generate all the list of prime numbers less than a number import math def prime_nums_list(n): ''' Sieve of Eratosthenes returns list of prime numbers''' p_list = list() t_list = list() for i in range(2,n): p...
22.816327
73
0.575134
396b2267bec27c9eea8644466b6e3bb0fb2d26d4
714
py
Python
seeker/migrations/0006_auto_20190625_1139.py
salsburj/django-seeker
679b9e022949a3f2ef28fb6f9ced0bac88d65fd8
[ "BSD-2-Clause" ]
null
null
null
seeker/migrations/0006_auto_20190625_1139.py
salsburj/django-seeker
679b9e022949a3f2ef28fb6f9ced0bac88d65fd8
[ "BSD-2-Clause" ]
null
null
null
seeker/migrations/0006_auto_20190625_1139.py
salsburj/django-seeker
679b9e022949a3f2ef28fb6f9ced0bac88d65fd8
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.21 on 2019-06-25 15:39 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('seeker', '0005_auto_20180330_1708'), ] operations = [ migrations.AlterModelOptions...
29.75
135
0.630252
34cdaee75252552bd64be202946ed6672b3153b9
343
py
Python
Solutions1/countPrimes.py
mohamedsugal/Leetcode-Solutions
c67720af4cb36d07d758c57efffac7a28e4f8b9f
[ "MIT" ]
3
2020-11-12T06:51:44.000Z
2021-09-19T00:26:33.000Z
Solutions1/countPrimes.py
mohamedsugal/Leetcode-Solutions
c67720af4cb36d07d758c57efffac7a28e4f8b9f
[ "MIT" ]
null
null
null
Solutions1/countPrimes.py
mohamedsugal/Leetcode-Solutions
c67720af4cb36d07d758c57efffac7a28e4f8b9f
[ "MIT" ]
null
null
null
import math def countPrimes(n): if n < 2: return 0 isPrime = [1] * n isPrime[0] = isPrime[1] = 0 for i in range(2, int(math.sqrt(n))): if isPrime[i] != 0: for j in range(i * i, n, i): isPrime[j] = 0 return [c for c, v in enumerate(isPrime) if v != 0] ...
19.055556
55
0.504373
d18cc4f9e910c8cf02d6543d985e92af8a6750c0
1,398
py
Python
config.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
1
2019-06-03T14:56:05.000Z
2019-06-03T14:56:05.000Z
config.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
3
2021-03-31T19:10:28.000Z
2021-12-13T20:03:54.000Z
config.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = '435hiud6gdb73bsjh^&G&^fg3bh*&GH' # MAIL_SERVER = os.environ.get('MAIL_SERVER', 'smtp.googlemail.com') # MAIL_PORT = int(os.environ.get('MAIL_PORT', '587')) # MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS', 'true'...
29.744681
80
0.688841
6b549034805331aae7c61cd2c650153f5c5c7dcc
6,111
py
Python
cdsfeatures.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
1
2018-03-26T09:00:42.000Z
2018-03-26T09:00:42.000Z
cdsfeatures.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
null
null
null
cdsfeatures.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
null
null
null
import sys, pickle sys.path.append('./mobtypingmodules') from mobmods import unlist from Bio import Entrez, SeqIO #this script extracts details on CDS features of untyped plasmid(s) from a Genbank file, or from a tsv file; then appends these details to pickle.CDSfeatures_original dictionary CDSfeatures_dict={} acces...
42.734266
194
0.639503
8d50585bd3e9f81f454dd45f609327c5817b96ff
2,221
py
Python
examples/dfp/v201608/placement_service/update_placements.py
agencia-watermelons/googleads-python-lib
d2e55863ecf7e5090c225d74b3f4c1f948cd5a21
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201608/placement_service/update_placements.py
agencia-watermelons/googleads-python-lib
d2e55863ecf7e5090c225d74b3f4c1f948cd5a21
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201608/placement_service/update_placements.py
agencia-watermelons/googleads-python-lib
d2e55863ecf7e5090c225d74b3f4c1f948cd5a21
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2015 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...
33.149254
79
0.717244
3a7a6c0cd0c6cf3104b1eb7f89d594da2ea84122
714
py
Python
script/SpiderLianjia/SpiderLianjia/items.py
jiming-liu/overpick_Scrapy
0fd9995f6a4560285804371608216ec527c2a793
[ "MIT" ]
null
null
null
script/SpiderLianjia/SpiderLianjia/items.py
jiming-liu/overpick_Scrapy
0fd9995f6a4560285804371608216ec527c2a793
[ "MIT" ]
null
null
null
script/SpiderLianjia/SpiderLianjia/items.py
jiming-liu/overpick_Scrapy
0fd9995f6a4560285804371608216ec527c2a793
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class SpiderlianjiaItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() houseTitle = scrapy.Field() ...
24.62069
51
0.686275
076becc4c9d3bcdcb5db62dcdf349db1313d912b
2,983
py
Python
docs/confluence/epsgrams/epsboxplot.py
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
41
2018-12-07T23:10:50.000Z
2022-02-19T03:01:49.000Z
docs/confluence/epsgrams/epsboxplot.py
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
59
2019-01-04T15:43:30.000Z
2022-03-31T09:48:15.000Z
docs/confluence/epsgrams/epsboxplot.py
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
13
2019-01-07T14:36:33.000Z
2021-09-06T14:48:36.000Z
# (C) Copyright 1996-2016 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergov...
27.878505
89
0.668455
45be31ad43a0572967a191fc536db344bd9216c0
607
py
Python
setup.py
tagordon/dynamoon
b3ef4d13f2d8771c4d1440d96a38cb240a25811a
[ "MIT" ]
1
2021-11-25T21:39:22.000Z
2021-11-25T21:39:22.000Z
setup.py
tagordon/dynamoon
b3ef4d13f2d8771c4d1440d96a38cb240a25811a
[ "MIT" ]
null
null
null
setup.py
tagordon/dynamoon
b3ef4d13f2d8771c4d1440d96a38cb240a25811a
[ "MIT" ]
null
null
null
from setuptools import setup import pathlib HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() setup(name='dynamoon', version='0.1', description='Photodynamics for exoplanet+moon systems', long_description=README, long_description_content_type="text/markdown", ...
30.35
61
0.61944
ce37d54bc93ec63e11194840bbeacccaa5ebf08a
1,511
py
Python
main.py
LeviHuang0824/Lanes_identification
5e580e12f4828bc67ce9365115b7cbc9f78b4ed0
[ "Unlicense" ]
null
null
null
main.py
LeviHuang0824/Lanes_identification
5e580e12f4828bc67ce9365115b7cbc9f78b4ed0
[ "Unlicense" ]
null
null
null
main.py
LeviHuang0824/Lanes_identification
5e580e12f4828bc67ce9365115b7cbc9f78b4ed0
[ "Unlicense" ]
null
null
null
import numpy as np import cv2 # 使用自訂義的模組 from packages import module as m ''' 辨識車道線流程: 1. 圖像進行灰階處理減少計算量 2. 進行高斯模糊,降低影像雜訊 3. Canny邊緣偵測 4. ROI抓出感興趣的部分 5. Hough Transform,取得直線線段的座標 6. 最小平方法,找出最適配的直線 ''' ''' []代表可以省略 OpenCV 讀取影像: cv2.imread(影像檔案路徑[, 選項]) 選項: cv2.IMREAD_COLOR, (Default)彩色模式(BGR)讀取影像 cv2.IMREAD_GRAYSCALE, 以...
26.051724
97
0.567174
5fad621b66f65d8ae21d806152ad825eb7779c32
1,797
py
Python
powersimdata/utility/tests/test_helpers.py
c-voegele/PowerSimData
5b1500e573f00a34571316796ff442bfa753871a
[ "MIT" ]
27
2021-02-20T20:55:31.000Z
2022-02-07T17:27:14.000Z
powersimdata/utility/tests/test_helpers.py
c-voegele/PowerSimData
5b1500e573f00a34571316796ff442bfa753871a
[ "MIT" ]
147
2021-01-21T03:55:09.000Z
2022-03-28T19:28:03.000Z
powersimdata/utility/tests/test_helpers.py
c-voegele/PowerSimData
5b1500e573f00a34571316796ff442bfa753871a
[ "MIT" ]
27
2021-02-03T18:24:47.000Z
2022-01-26T08:56:17.000Z
import pytest from powersimdata.utility.helpers import MemoryCache, PrintManager, cache_key def test_print_is_disabled(capsys): pm = PrintManager() pm.block_print() print("printout are disabled") captured = capsys.readouterr() assert captured.out == "" pm.enable_print() print("printout a...
23.96
77
0.622148
748b603ae3c08ef4f69e81deb59f70290865897e
430
py
Python
src/cmcandy/Python_language_Answers/_0020.py
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
null
null
null
src/cmcandy/Python_language_Answers/_0020.py
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
null
null
null
src/cmcandy/Python_language_Answers/_0020.py
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
1
2020-11-26T03:01:12.000Z
2020-11-26T03:01:12.000Z
class Solution: def isValid(self, s: str) -> bool: stack = [] map = {')': '(', '}': '{', ']': '['} for c in s: if c in [')', '}', ']']: ex = map[c] if len(stack) > 0 and ex == stack[-1]: stack.pop() else: ...
28.666667
54
0.32093
f9b14984b18674a9292d2dc2d6e79430f9000dae
11,585
py
Python
Z_ALL_FILE/Py/InsUpd._11232020-234.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
null
null
null
Z_ALL_FILE/Py/InsUpd._11232020-234.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
null
null
null
Z_ALL_FILE/Py/InsUpd._11232020-234.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
1
2021-04-29T21:46:02.000Z
2021-04-29T21:46:02.000Z
import pandas as pd import os, datetime, time from datetime import * #import cx_Oracle, pyodbc, requests, os #from mysql import * #from sqlalchemy import create_engine #user = 'root' #password = 'admin' #host = '127.0.0.1:3306' #db = 'omdb' #constr = 'mysql+mysqlconnector://' + user + ':' + password + '@' + host + '/...
34.479167
120
0.408718
faca8cb934154621082c26bd1bff606cc375361a
14,787
py
Python
fuzzers/005-tilegrid/ps7_int/top.py
lromor/prjxray
3586df58703a8a9ef1f2dbd4f71311a4074cf172
[ "ISC" ]
1
2019-04-18T15:18:35.000Z
2019-04-18T15:18:35.000Z
fuzzers/005-tilegrid/ps7_int/top.py
lromor/prjxray
3586df58703a8a9ef1f2dbd4f71311a4074cf172
[ "ISC" ]
null
null
null
fuzzers/005-tilegrid/ps7_int/top.py
lromor/prjxray
3586df58703a8a9ef1f2dbd4f71311a4074cf172
[ "ISC" ]
null
null
null
import os import random random.seed(int(os.getenv("SEED"), 16)) from prjxray import util def write_params(params): pinstr = 'tile,val\n' for tile, (val) in sorted(params.items()): pinstr += '%s,%s\n' % (tile, val) open('params.csv', 'w').write(pinstr) def run(): print( ''' module top...
21.681818
103
0.585785
28a6cd67583aaea23b8d40e9061ec596cdb2ce3c
34,063
py
Python
chapisha/create/create.py
whythawk/chapisha
ddaa028a48d10ff5396e18d1c0ae01fd56c9f465
[ "BSD-3-Clause" ]
2
2021-05-29T12:56:05.000Z
2021-10-31T04:56:32.000Z
chapisha/create/create.py
whythawk/chapisha
ddaa028a48d10ff5396e18d1c0ae01fd56c9f465
[ "BSD-3-Clause" ]
1
2021-01-29T13:12:28.000Z
2021-01-30T16:14:04.000Z
chapisha/create/create.py
whythawk/chapisha
ddaa028a48d10ff5396e18d1c0ae01fd56c9f465
[ "BSD-3-Clause" ]
null
null
null
""" .. module:: create :synopsis: Import a Word `docx` document, define its metadata, cover and rights, and publish it as an EPUB3. .. moduleauthor:: Gavin Chait <github.com/turukawa> CreateWork ========== Publish a standards compliant EPUB3 creative work from a source Microsoft Word `docx` document, and define it...
46.661644
551
0.648622
d9695d34f435d9aa053d553c03138c8821cdbea4
174
py
Python
nonebot_plugin_analysis_bilibili/config.py
RainChain-Zero/Jasmine_Nonebot2_Plugins_Center
40e78f01bf020faa66dcffe76070fe8a24687e1b
[ "MIT" ]
1
2022-03-29T16:12:43.000Z
2022-03-29T16:12:43.000Z
nonebot_plugin_analysis_bilibili/config.py
RainChain-Zero/Jasmine_Nonebot2_Plugins_Center
40e78f01bf020faa66dcffe76070fe8a24687e1b
[ "MIT" ]
1
2022-03-30T02:36:12.000Z
2022-03-30T08:50:04.000Z
nonebot_plugin_analysis_bilibili/config.py
RainChain-Zero/Jasmine_Nonebot2_Plugins_Center
40e78f01bf020faa66dcffe76070fe8a24687e1b
[ "MIT" ]
null
null
null
from pydantic import BaseSettings class Config(BaseSettings): # Your Config Here #! 不解析以下群 group_ignore = [660991956] class Config: extra = "ignore"
19.333333
33
0.666667
330818423322df768f91a2c5741a900ce508c785
1,841
py
Python
vt_police_tools/depts/uvmps.py
brianmwaters/vt-police-tools
2619cec4fbf1a9fba4fbbfab7d5c14b83b6e6be0
[ "CC0-1.0" ]
1
2020-06-22T20:05:34.000Z
2020-06-22T20:05:34.000Z
vt_police_tools/depts/uvmps.py
brianmwaters/vt-police-tools
2619cec4fbf1a9fba4fbbfab7d5c14b83b6e6be0
[ "CC0-1.0" ]
null
null
null
vt_police_tools/depts/uvmps.py
brianmwaters/vt-police-tools
2619cec4fbf1a9fba4fbbfab7d5c14b83b6e6be0
[ "CC0-1.0" ]
null
null
null
# Vermont Police Tools - Tools for cleaning Vermont police data # # Written in 2020 by BTV CopWatch <info@btvcopwatch.org> # # To the extent possible under law, the author(s) have dedicated all copyright # and related and neighboring rights to this software to the public domain # worldwide. This software is distributed...
32.875
78
0.66377
82a9d44870bcd5ac48fd0657768a624d81cafdcb
547
py
Python
var/spack/repos/builtin/packages/py-systemd-python/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/py-systemd-python/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/py-systemd-python/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 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 spack import * class PySystemdPython(PythonPackage): """Python interface for libsystemd""" homepage = "htt...
34.1875
93
0.758684
5ac40bf44933038bc77556a34e9a218292e6ff94
1,352
py
Python
2.py
chintan02/autism-aid
fae417c5b363e775a8d2046e51ecdb60740d01cc
[ "MIT" ]
null
null
null
2.py
chintan02/autism-aid
fae417c5b363e775a8d2046e51ecdb60740d01cc
[ "MIT" ]
null
null
null
2.py
chintan02/autism-aid
fae417c5b363e775a8d2046e51ecdb60740d01cc
[ "MIT" ]
null
null
null
import pyrebase from datetime import datetime import matplotlib.pyplot as plt firebaseConfig ={ "apiKey": "AIzaSyDbEslT3tpBwDTDQfP_8ZOMRBGObKEUjao", "authDomain": "autism-aid.firebaseapp.com", "databaseURL": "https://autism-aid.firebaseio.com", "projectId": "autism...
23.310345
83
0.602071
d31ef9537baafc26911561f39d0f6c16641db819
1,099
py
Python
weekorm/exception.py
mitrofun/weakorm
8b45d7f6dc1c34b6219f632e1f187f9df33e60e8
[ "MIT" ]
1
2019-03-17T19:05:27.000Z
2019-03-17T19:05:27.000Z
weekorm/exception.py
mitrofun/weakorm
8b45d7f6dc1c34b6219f632e1f187f9df33e60e8
[ "MIT" ]
null
null
null
weekorm/exception.py
mitrofun/weakorm
8b45d7f6dc1c34b6219f632e1f187f9df33e60e8
[ "MIT" ]
null
null
null
class ModelFieldNameException(Exception): """ Raise for model name field exception """ def __init__(self, *args, **kwargs): if kwargs: field_name = kwargs['field_name'] model_name = kwargs['model_name'] msg = f'Model {model_name}: Field with name `{field_name}...
36.633333
87
0.596906
c3e77651516b68ddd081d47509a90dd76260314a
1,717
py
Python
test/runtime/frontend_test/keras_test/layers_test/pooling_test/average_pooling_2d_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
test/runtime/frontend_test/keras_test/layers_test/pooling_test/average_pooling_2d_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
test/runtime/frontend_test/keras_test/layers_test/pooling_test/average_pooling_2d_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
import numpy as np from test.runtime.frontend_test.keras_test.util import keras, KerasConverter from test.util import generate_kernel_test_case, wrap_template @wrap_template def template(pool_size=(3, 3), shape=(15, 17, 16), strides=(2, 2), padding="valid", data_format=None, description: str = ""): ...
29.603448
120
0.680256
f953f2e99fae0374be62e505f2dae180777796d7
1,333
py
Python
examples/tutorials/structured_configs/4_defaults/my_app.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
examples/tutorials/structured_configs/4_defaults/my_app.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
examples/tutorials/structured_configs/4_defaults/my_app.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from dataclasses import dataclass, field from typing import Any, List from omegaconf import MISSING, OmegaConf # Do not confuse with dataclass.MISSING import hydra from hydra.core.config_store import ConfigStore @dataclass class MySQLConfig: ...
22.982759
81
0.701425
0e077af24d0807413e25dce3fa41b28466b1451b
10,633
py
Python
kubernetes_asyncio/client/models/v1_rbd_volume_source.py
opsani/kubernetes_asyncio
55283bf6f3690e5c0a0c589cd752221511e2be51
[ "Apache-2.0" ]
196
2018-05-23T16:55:41.000Z
2022-03-31T10:09:40.000Z
kubernetes_asyncio/client/models/v1_rbd_volume_source.py
tomplus/kubernetes_asyncio
e8c8686ec11be3a5295ae9d5d8728299492a61f8
[ "Apache-2.0" ]
164
2018-05-20T20:39:03.000Z
2022-03-29T22:57:04.000Z
kubernetes_asyncio/client/models/v1_rbd_volume_source.py
opsani/kubernetes_asyncio
55283bf6f3690e5c0a0c589cd752221511e2be51
[ "Apache-2.0" ]
41
2018-06-08T00:39:53.000Z
2022-01-12T18:19:06.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.18.20 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
33.332288
312
0.612433
ab20ebaf04a666cb522c7816a13cbd876c36b486
492
py
Python
mmdet/core/bbox/assigners/__init__.py
Zebraside/RRPDet
31dd0b3e158dcd18edb9890ff1ac84b639a9e3e9
[ "Apache-2.0" ]
null
null
null
mmdet/core/bbox/assigners/__init__.py
Zebraside/RRPDet
31dd0b3e158dcd18edb9890ff1ac84b639a9e3e9
[ "Apache-2.0" ]
null
null
null
mmdet/core/bbox/assigners/__init__.py
Zebraside/RRPDet
31dd0b3e158dcd18edb9890ff1ac84b639a9e3e9
[ "Apache-2.0" ]
1
2021-12-17T12:39:36.000Z
2021-12-17T12:39:36.000Z
from .base_assigner import BaseAssigner from .max_iou_assigner import MaxIoUAssigner from .approx_max_iou_assigner import ApproxMaxIoUAssigner from .assign_result import AssignResult from .max_iou_assigner_hbb_cy import MaxIoUAssignerCy from .max_iou_assigner_rbbox import MaxIoUAssignerRbbox from .point_assigner import...
37.846154
77
0.839431
618652adb5d0e5210ff03aff9aed1dad6364259a
7,946
py
Python
core/generators/schedule/DefaultScheduleGenerator.py
AluBhorta/UCSPy-Engine
917eea6ab98338c5763c9fd07e24da7fa2ee1cda
[ "MIT" ]
6
2021-09-29T06:18:55.000Z
2021-09-29T18:56:13.000Z
core/generators/schedule/DefaultScheduleGenerator.py
AluBhorta/UCSPy-Engine
917eea6ab98338c5763c9fd07e24da7fa2ee1cda
[ "MIT" ]
1
2021-10-01T00:00:15.000Z
2021-10-01T00:14:24.000Z
core/generators/schedule/DefaultScheduleGenerator.py
AluBhorta/UCSPy-Engine
917eea6ab98338c5763c9fd07e24da7fa2ee1cda
[ "MIT" ]
3
2020-06-26T05:59:56.000Z
2021-09-29T06:25:23.000Z
from typing import List import random from core.models import ScheduleParam, Schedule, Class, Section, Course, Instructor, Timeslot, Room from core.models.ScheduleGenerator import ScheduleGenerator from core.models import ScheduleParam class DefaultScheduleGenerator(ScheduleGenerator): def __init__(self, schedul...
43.900552
199
0.575636
dcb0f3e71789b630ec1f7de6194a7822d66a2827
7,157
py
Python
beartype/roar/__init__.py
qiujiangkun/beartype
d3ee7e617f1c2281d438321e2c2ec3fd6b4cec8c
[ "MIT" ]
null
null
null
beartype/roar/__init__.py
qiujiangkun/beartype
d3ee7e617f1c2281d438321e2c2ec3fd6b4cec8c
[ "MIT" ]
null
null
null
beartype/roar/__init__.py
qiujiangkun/beartype
d3ee7e617f1c2281d438321e2c2ec3fd6b4cec8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2022 Beartype authors. # See "LICENSE" for further details. ''' **Beartype exception and warning hierarchies.** This submodule publishes a hierarchy of: * :mod:`beartype`-specific exceptions ra...
49.358621
91
0.764846
09f69d5ee8ecbafe047509f1441558f1f3125282
956
py
Python
bigml/tests/read_external_steps.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
137
2015-01-12T06:04:10.000Z
2022-03-06T21:00:04.000Z
bigml/tests/read_external_steps.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
78
2015-01-13T18:28:51.000Z
2022-03-04T19:18:28.000Z
bigml/tests/read_external_steps.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
144
2015-01-16T06:13:33.000Z
2022-03-29T17:53:16.000Z
# -*- coding: utf-8 -*- # # Copyright 2020-2021 BigML # # 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 ...
35.407407
75
0.746862
92c86e97ce6a82dce8f63e659668a5cd70e92fce
8,990
py
Python
appserver/neo4japp/services/annotations/enrichment_annotation_service.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
8
2022-01-28T08:43:07.000Z
2022-03-23T11:18:10.000Z
appserver/neo4japp/services/annotations/enrichment_annotation_service.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
23
2022-02-14T15:25:00.000Z
2022-03-28T15:30:45.000Z
appserver/neo4japp/services/annotations/enrichment_annotation_service.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
5
2022-01-28T15:45:44.000Z
2022-03-14T11:36:49.000Z
import bisect import itertools import time from collections import defaultdict from typing import Dict, List, Set, Tuple from flask import current_app from neo4japp.constants import LogEventType from neo4japp.utils.logger import EventLog from .annotation_service import AnnotationService from .annotation_db_service ...
42.009346
138
0.630367
0648d08cf28c283d79938d1e87a6732fda447339
1,027
py
Python
src/data/tests/test_all.py
terryf82/boston-crash-modeling
9c2659387fcee1a426e07de6284c15d703312b1c
[ "MIT" ]
null
null
null
src/data/tests/test_all.py
terryf82/boston-crash-modeling
9c2659387fcee1a426e07de6284c15d703312b1c
[ "MIT" ]
null
null
null
src/data/tests/test_all.py
terryf82/boston-crash-modeling
9c2659387fcee1a426e07de6284c15d703312b1c
[ "MIT" ]
null
null
null
import os import subprocess import json import shutil def test_all(tmpdir): # Copy test data into temp directory orig_path = os.path.dirname( os.path.abspath(__file__)) + '/data/' path = tmpdir.strpath + '/data' shutil.copytree(orig_path, path) filename = path + '/raw/ma_cob_spatially_joi...
20.959184
67
0.562804
ad0a99e58759a474bbe510cd1da98da18d9c4dbf
6,558
py
Python
magnum/api/controllers/v1/types.py
Linaro/magnum
b2e3f2346b8550f71e1ed2c737e82aa6050bcfec
[ "Apache-2.0" ]
2
2020-07-15T14:43:39.000Z
2021-05-02T14:42:13.000Z
magnum/api/controllers/v1/types.py
Linaro/magnum
b2e3f2346b8550f71e1ed2c737e82aa6050bcfec
[ "Apache-2.0" ]
null
null
null
magnum/api/controllers/v1/types.py
Linaro/magnum
b2e3f2346b8550f71e1ed2c737e82aa6050bcfec
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Red Hat, 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 by...
29.674208
79
0.632815
6bfb4392a91c301feb4cf7d305a20efc3cf26005
5,008
py
Python
vistrails/packages/tabledata/init.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
vistrails/packages/tabledata/init.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
vistrails/packages/tabledata/init.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2013-2014, NYU-Poly. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
39.746032
79
0.565495
237765ded0de6cb80504fd273e42becfae0ad541
2,443
py
Python
thermodynamics/introToThermodynamics/GasContainers.py
dsmith2598/FlipItPhysics-Physics2
41b105dcf849e1bbd4cc8d132859db2476f90617
[ "MIT" ]
1
2021-06-16T07:28:46.000Z
2021-06-16T07:28:46.000Z
thermodynamics/introToThermodynamics/GasContainers.py
Rohit212/FlipItPhysics-Physics2
41b105dcf849e1bbd4cc8d132859db2476f90617
[ "MIT" ]
null
null
null
thermodynamics/introToThermodynamics/GasContainers.py
Rohit212/FlipItPhysics-Physics2
41b105dcf849e1bbd4cc8d132859db2476f90617
[ "MIT" ]
null
null
null
# coding=utf-8 """ A container contains 133 moles of Gas A and 115 moles of Gas B separated by a movable airtight divider. Part A: Initially, we will assume that the container is cylindrical. If the cylinder is 2.2 m long, how far from the left side of the cylinder will we find the equilibrium position of the divider?...
29.083333
102
0.743348
2cf51b1ced847d1b4db4dcdeed73033d45f39ff0
3,304
py
Python
chapters/03_tensorflow_fundamentals/vectorized_graph.py
Asurada2015/TF-_for_MI
5fafdb78286b122036fa9aecf2a4be72ea4673e1
[ "Apache-2.0" ]
8
2018-01-09T05:29:01.000Z
2019-03-03T13:40:51.000Z
chapters/03_tensorflow_fundamentals/vectorized_graph.py
Asurada2015/TF-_for_MI
5fafdb78286b122036fa9aecf2a4be72ea4673e1
[ "Apache-2.0" ]
null
null
null
chapters/03_tensorflow_fundamentals/vectorized_graph.py
Asurada2015/TF-_for_MI
5fafdb78286b122036fa9aecf2a4be72ea4673e1
[ "Apache-2.0" ]
6
2017-10-25T02:17:59.000Z
2018-11-08T01:58:32.000Z
import tensorflow as tf import numpy as np # 新建一个图的对象,并将其设置为默认图 # 显式创建一个图加以使用,而非使用默认的图 graph = tf.Graph() with graph.as_default(): # 在图中有两个"全局风格"的Variable对象由于这些对象在本质上是全局的,因此在声明时与数据流图中其他节点区分开,将他们放入自己的名称作用域 with tf.name_scope("variables"): # 记录数据流程图运行次数的Variable对象 global_step = tf.Variable(0, dt...
30.592593
98
0.701877
02b7d853ead94805d4e0ed54206fcbfe5abac1d5
404
py
Python
uwcsvote/wsgi.py
ericthelemur/uwcs-vote
616b635014289962de84c800966c98fe230b802f
[ "MIT" ]
null
null
null
uwcsvote/wsgi.py
ericthelemur/uwcs-vote
616b635014289962de84c800966c98fe230b802f
[ "MIT" ]
null
null
null
uwcsvote/wsgi.py
ericthelemur/uwcs-vote
616b635014289962de84c800966c98fe230b802f
[ "MIT" ]
null
null
null
""" WSGI config for uwcsvote 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.764706
79
0.789604
4e61636e78a6d72422853e9c21bb8428f5b6b613
8,666
py
Python
clodius/tiles/multivec.py
zhangzhen/clodius
d66aa6dcc4d27a16752ecfe2738289db8085b2b6
[ "MIT" ]
14
2018-11-14T23:58:32.000Z
2021-09-12T13:56:19.000Z
clodius/tiles/multivec.py
zhangzhen/clodius
d66aa6dcc4d27a16752ecfe2738289db8085b2b6
[ "MIT" ]
71
2018-10-30T15:31:24.000Z
2022-03-20T21:10:19.000Z
clodius/tiles/multivec.py
zhangzhen/clodius
d66aa6dcc4d27a16752ecfe2738289db8085b2b6
[ "MIT" ]
15
2018-10-30T15:31:44.000Z
2021-12-22T02:23:00.000Z
import base64 import json import math import h5py import numpy as np from .utils import abs2genomic def tiles(filename, tile_ids): """ Retrieve multiple multivec tiles from tids. ---------- filename: string The multires file containing the multivec data tile_ids: [str,...] A list...
31.97786
117
0.587584
f742240ea53e33fcd737210f6c04b29b16bb4de3
413
py
Python
build/lib/admintool_command/command.py
jayvdb/django-admintool-command
aee5f8f003b5956e3a3e7df4957c5b839ffd8341
[ "MIT" ]
3
2019-08-07T23:33:19.000Z
2021-03-26T11:08:12.000Z
build/lib/admintool_command/command.py
jayvdb/django-admintool-command
aee5f8f003b5956e3a3e7df4957c5b839ffd8341
[ "MIT" ]
6
2020-04-27T13:09:42.000Z
2020-08-16T06:36:02.000Z
build/lib/admintool_command/command.py
jayvdb/django-admintool-command
aee5f8f003b5956e3a3e7df4957c5b839ffd8341
[ "MIT" ]
1
2020-08-07T05:52:46.000Z
2020-08-07T05:52:46.000Z
from abc import ABC, abstractmethod from django import forms from django.core.management import BaseCommand class AdminCommand(BaseCommand, ABC): name = None template = "admintool_command/command.html" class Form(forms.Form): pass def init_context(self, request=None, **kwargs): retu...
20.65
51
0.7046
9d30a7f13a8f7f15bbf6652f5d3cd1d7675d95a4
2,252
py
Python
g3doc/build_docs.py
amad-person/privacy
aaf4c252a0bbfa41670ddefd3798bdf2066c0e21
[ "Apache-2.0" ]
1
2021-05-10T10:48:44.000Z
2021-05-10T10:48:44.000Z
g3doc/build_docs.py
amad-person/privacy
aaf4c252a0bbfa41670ddefd3798bdf2066c0e21
[ "Apache-2.0" ]
null
null
null
g3doc/build_docs.py
amad-person/privacy
aaf4c252a0bbfa41670ddefd3798bdf2066c0e21
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2021 Google LLC. 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 ...
32.637681
76
0.742451
90d8a3ee74741d995de13686c92e49d07f29d3b2
505
py
Python
Moderate/Reverse And Add/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Moderate/Reverse And Add/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Moderate/Reverse And Add/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
import sys def isPalindrome(x): text = str(x) halfLength = int(len(text) / 2) offset = len(text) % 2 return text[0:halfLength][::-1] == text[(halfLength + offset)::] lines = open(sys.argv[1], 'r') for line in lines: line = line.replace('\n', '').replace('\r', '') if len(line) > 0: ...
24.047619
69
0.473267
e24eadedb9cc189ecd5ef4626c7e43d069bdebca
5,460
py
Python
Tests/test_SearchIO_hmmer3_domtab_index.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
2,856
2015-01-01T07:10:06.000Z
2022-03-31T18:17:25.000Z
Tests/test_SearchIO_hmmer3_domtab_index.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
3,429
2015-01-05T11:11:42.000Z
2022-03-31T13:08:10.000Z
Tests/test_SearchIO_hmmer3_domtab_index.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
1,619
2015-01-05T13:07:11.000Z
2022-03-31T19:19:52.000Z
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Tests for SearchIO hmmer3-domtab indexing.""" import os import unittest from search_t...
65
249
0.608425
4ffdafd7dae7c89e2d04b54de8732a3e2afb38de
5,768
py
Python
src/controller/python/build-chip-wheel.py
fkjagodzinski/connectedhomeip
c4411cf81d4b63384c790f91c8e5329b4da97dfe
[ "Apache-2.0" ]
3
2021-01-28T04:52:17.000Z
2021-05-17T10:37:53.000Z
src/controller/python/build-chip-wheel.py
fkjagodzinski/connectedhomeip
c4411cf81d4b63384c790f91c8e5329b4da97dfe
[ "Apache-2.0" ]
5
2020-07-23T21:30:13.000Z
2020-10-07T13:56:33.000Z
src/controller/python/build-chip-wheel.py
fkjagodzinski/connectedhomeip
c4411cf81d4b63384c790f91c8e5329b4da97dfe
[ "Apache-2.0" ]
1
2020-10-02T18:18:37.000Z
2020-10-02T18:18:37.000Z
# # Copyright (c) 2020 Project CHIP Authors # Copyright (c) 2019 Google LLC. # 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.apa...
34.957576
150
0.652219
41e0df292e62a9793c0459d1c5142f8ce8fe5675
262
py
Python
thaisummit/thaisummit/doctype/deleted_qr_checkin/deleted_qr_checkin.py
thispl/thaisummit
697a43068a87916dedf1e8de10249152a9fd2735
[ "MIT" ]
null
null
null
thaisummit/thaisummit/doctype/deleted_qr_checkin/deleted_qr_checkin.py
thispl/thaisummit
697a43068a87916dedf1e8de10249152a9fd2735
[ "MIT" ]
null
null
null
thaisummit/thaisummit/doctype/deleted_qr_checkin/deleted_qr_checkin.py
thispl/thaisummit
697a43068a87916dedf1e8de10249152a9fd2735
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, TEAMPRO and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class DeletedQRCheckin(Document): pass
23.818182
49
0.778626
eec44848248c4ab1c55bc3484fd9d6e34c55c46d
156
py
Python
macOS/New Tab.py
no7dw/autokey-macos
9b5cce0781806ae1fc0bb21bcdfb5223a6c2c23f
[ "MIT" ]
38
2019-04-06T01:20:26.000Z
2022-02-22T03:02:40.000Z
macOS/New Tab.py
no7dw/autokey-macos
9b5cce0781806ae1fc0bb21bcdfb5223a6c2c23f
[ "MIT" ]
null
null
null
macOS/New Tab.py
no7dw/autokey-macos
9b5cce0781806ae1fc0bb21bcdfb5223a6c2c23f
[ "MIT" ]
8
2019-04-06T01:20:34.000Z
2022-03-31T14:10:04.000Z
if window.get_active_class() != 'gnome-terminal-server.Gnome-terminal': keyboard.send_keys("<ctrl>+t") else: keyboard.send_keys("<ctrl>+<shift>+t")
31.2
71
0.698718
2ee74c81491494c488b2cb5c0c50f6bddb179067
5,216
py
Python
score_manual.py
Dorcoh4/bleurt
9cd100a7953a157f23faf2e1b7c5a48f71fe2b7b
[ "Apache-2.0" ]
null
null
null
score_manual.py
Dorcoh4/bleurt
9cd100a7953a157f23faf2e1b7c5a48f71fe2b7b
[ "Apache-2.0" ]
null
null
null
score_manual.py
Dorcoh4/bleurt
9cd100a7953a157f23faf2e1b7c5a48f71fe2b7b
[ "Apache-2.0" ]
null
null
null
print("importing") from datasets import load_dataset from datasets import load_metric from transformers import AutoTokenizer, AutoModelForSequenceClassification from transformers import TrainingArguments, DefaultFlowCallback, PrinterCallback from transformers import Trainer import torch from torch import nn import num...
56.086022
1,917
0.717983
aba56b08342dd28e9fbbd9340c4715ff582b906d
4,470
py
Python
benchmarks/tests/test_cvrp_augerat.py
Halvaros/vrpy
c471aed87e821140e57737ca209e106e544b38df
[ "MIT" ]
null
null
null
benchmarks/tests/test_cvrp_augerat.py
Halvaros/vrpy
c471aed87e821140e57737ca209e106e544b38df
[ "MIT" ]
1
2020-07-27T13:58:29.000Z
2020-07-27T15:18:39.000Z
benchmarks/tests/test_cvrp_augerat.py
Halvaros/vrpy
c471aed87e821140e57737ca209e106e544b38df
[ "MIT" ]
null
null
null
from benchmarks.augerat_dataset import AugeratDataSet from vrpy import VehicleRoutingProblem class TestsAugerat: def setup(self): """ Augerat instance P-n16-k8.vrp """ data = AugeratDataSet(path="benchmarks/data/cvrp/", instance_name="P-n16-k8.vrp") ...
38.205128
79
0.567338
ef7ed17ea663eaf2869330273e93240697d4582d
4,165
py
Python
integration_tests/urls_helpers.py
jairhenrique/thumbor
fa29ba0efab2dd420c6840616a079756fd75293a
[ "MIT" ]
6,837
2015-01-01T14:33:12.000Z
2022-03-31T22:21:05.000Z
integration_tests/urls_helpers.py
jairhenrique/thumbor
fa29ba0efab2dd420c6840616a079756fd75293a
[ "MIT" ]
1,055
2015-01-03T22:22:05.000Z
2022-03-31T21:56:17.000Z
integration_tests/urls_helpers.py
jairhenrique/thumbor
fa29ba0efab2dd420c6840616a079756fd75293a
[ "MIT" ]
744
2015-01-05T03:49:31.000Z
2022-03-30T02:35:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import logging from itertools import product from colorama import Fore DEBUGS = ["", "debug"] METAS = ["meta"] TRIMS = [ "trim", "trim:top-left", "trim:bottom-right", "trim:top-left:10", "trim:bottom-right:20", ] CROPS = ["10x10:100x100"] FITINS = ["f...
23.664773
83
0.57575
df3630845d812366ac97ad99a2d398464bc157fa
6,992
py
Python
sdk/python/pulumi_azure_nextgen/securityinsights/v20190101preview/bookmark_relation.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/securityinsights/v20190101preview/bookmark_relation.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/securityinsights/v20190101preview/bookmark_relation.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 from ... import _utilities, _tables __a...
41.619048
150
0.646024
5ebbcd3ae013c440eb582b280affc73e5900d10e
1,807
py
Python
St. Ours_MountainBikeGame.py
astours17/Mountain-Biking-2.0
62d5db5b90bf67dc7f3bc46626109bc61ad290f9
[ "MIT" ]
null
null
null
St. Ours_MountainBikeGame.py
astours17/Mountain-Biking-2.0
62d5db5b90bf67dc7f3bc46626109bc61ad290f9
[ "MIT" ]
null
null
null
St. Ours_MountainBikeGame.py
astours17/Mountain-Biking-2.0
62d5db5b90bf67dc7f3bc46626109bc61ad290f9
[ "MIT" ]
null
null
null
#Andrew St. Ours #3/28/17 #Mountain bike game #welcome print("Welcome to Whistler Mountain Bike Park. \nToday you are going to" "have a choice of three trails to ride on. \nA green circle trail, a blue" " square trail and a black diamond trail.") print("\nMake sure you pick the trail that appli...
24.418919
83
0.60653
d81a6839aba73831d310bff1def4f18053118a96
13,326
py
Python
bpy_lambda/2.78/scripts/addons_contrib/archipack/archipack_reference_point.py
resultant-gamedev/bpy_lambda
c8cf46c10c69e74a0892b621d76c62edaa5b04bc
[ "MIT" ]
null
null
null
bpy_lambda/2.78/scripts/addons_contrib/archipack/archipack_reference_point.py
resultant-gamedev/bpy_lambda
c8cf46c10c69e74a0892b621d76c62edaa5b04bc
[ "MIT" ]
null
null
null
bpy_lambda/2.78/scripts/addons_contrib/archipack/archipack_reference_point.py
resultant-gamedev/bpy_lambda
c8cf46c10c69e74a0892b621d76c62edaa5b04bc
[ "MIT" ]
1
2019-11-24T18:43:42.000Z
2019-11-24T18:43:42.000Z
# -*- coding:utf-8 -*- # ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # ...
36.113821
102
0.59005
1cf2ed93645b6a28329b87a0662338cde67f45ef
7,425
py
Python
aae497-f19/share/glib-2.0/gdb/glib_gdb.py
winstonlevin/aae497-f19
1226f924d054e7448a91142c1637816c24388fc8
[ "BSD-3-Clause" ]
null
null
null
aae497-f19/share/glib-2.0/gdb/glib_gdb.py
winstonlevin/aae497-f19
1226f924d054e7448a91142c1637816c24388fc8
[ "BSD-3-Clause" ]
null
null
null
aae497-f19/share/glib-2.0/gdb/glib_gdb.py
winstonlevin/aae497-f19
1226f924d054e7448a91142c1637816c24388fc8
[ "BSD-3-Clause" ]
null
null
null
import gdb import sys if sys.version_info[0] >= 3: long = int # This is not quite right, as local vars may override symname def read_global_var (symname): return gdb.selected_frame().read_var(symname) def g_quark_to_string (quark): if quark is None: return None quark = long(quark) if quar...
28.339695
122
0.532256
57e19a4023bbda7582afd0c4d527599bf6a2315a
736
py
Python
src/products/migrations/0011_auto_20151120_0137.py
damansinghh/digital-marketplace
3d1797716f39459950fcf10042603890335f7f55
[ "MIT" ]
104
2015-12-11T10:33:17.000Z
2022-03-26T04:36:13.000Z
src/products/migrations/0011_auto_20151120_0137.py
damansinghh/digital-marketplace
3d1797716f39459950fcf10042603890335f7f55
[ "MIT" ]
6
2020-06-06T01:20:49.000Z
2022-03-12T00:32:27.000Z
src/products/migrations/0011_auto_20151120_0137.py
damansinghh/digital-marketplace
3d1797716f39459950fcf10042603890335f7f55
[ "MIT" ]
85
2015-12-12T11:26:21.000Z
2022-03-02T21:12:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import products.models class Migration(migrations.Migration): dependencies = [ ('products', '0010_product_managers'), ] operations = [ migrations.Add...
27.259259
116
0.648098
036fb500200547d60871ab316ab4c9aba5aded4e
152,746
py
Python
regolith/schemas.py
shogho0/regolith
a65305fb9a66484e639461b8079de6a80116c2b4
[ "CC0-1.0" ]
null
null
null
regolith/schemas.py
shogho0/regolith
a65305fb9a66484e639461b8079de6a80116c2b4
[ "CC0-1.0" ]
null
null
null
regolith/schemas.py
shogho0/regolith
a65305fb9a66484e639461b8079de6a80116c2b4
[ "CC0-1.0" ]
null
null
null
"""Database schemas, examples, and tools""" import copy from warnings import warn from cerberus import Validator from .sorters import POSITION_LEVELS SORTED_POSITION = sorted(POSITION_LEVELS.keys(), key=POSITION_LEVELS.get) PRESENTATIONS_TYPE = ["award", "colloquium", "contributed_oral", "invited", "keynote", ...
38.034363
145
0.421707
a7dd33eb926933aab749f4920ecc264e472a96b6
640
py
Python
vme/data_store.py
oskar-j/visualize-my-expenses
c96595c32df7d6abf7f646bd7bad4102d7b12c0e
[ "MIT" ]
null
null
null
vme/data_store.py
oskar-j/visualize-my-expenses
c96595c32df7d6abf7f646bd7bad4102d7b12c0e
[ "MIT" ]
null
null
null
vme/data_store.py
oskar-j/visualize-my-expenses
c96595c32df7d6abf7f646bd7bad4102d7b12c0e
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd class CalculatorBase(object): def _verify(self, verbose) -> bool: pass def print_to_console(self): pass class Calculator(CalculatorBase): def __init__(self): self.verbose = False def _prepare(self, verbose): pass def ins...
17.297297
39
0.559375
3cb53234b2ef14e87ab6f7c1ecebf58c114dc720
1,205
py
Python
messier_objects/migrations/0001_initial.py
DanielPDWalker/Astrophoto
9a7ee59deb291617baa3ab8724b8ce5970e6ea9f
[ "MIT" ]
null
null
null
messier_objects/migrations/0001_initial.py
DanielPDWalker/Astrophoto
9a7ee59deb291617baa3ab8724b8ce5970e6ea9f
[ "MIT" ]
12
2020-07-26T06:20:22.000Z
2022-03-12T00:43:09.000Z
messier_objects/migrations/0001_initial.py
DanielPDWalker/Astrophoto-API
9a7ee59deb291617baa3ab8724b8ce5970e6ea9f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2020-07-22 14:04 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='MessierObject', fields=[ ('id', models.Auto...
35.441176
114
0.568465
99536858ad20563d5cadba03958bc1515fce0d6b
1,558
py
Python
run_simulation.py
TrungDinhT/link-layer-simulator
b57532e43f2ae27e568baf967e016f16444fd4d8
[ "MIT" ]
null
null
null
run_simulation.py
TrungDinhT/link-layer-simulator
b57532e43f2ae27e568baf967e016f16444fd4d8
[ "MIT" ]
null
null
null
run_simulation.py
TrungDinhT/link-layer-simulator
b57532e43f2ae27e568baf967e016f16444fd4d8
[ "MIT" ]
null
null
null
import numpy as np from ABP import SimulatorABP, SimulatorABP_NAK from baseclasses import StatsManager, Protocol def simulate(protocol): # Input parameters H = 54*8 # bits l = 1500*8 # bits delta_rate = np.array([2.5, 5, 7.5, 10, 12.5]) # delta_rate*tau = delta = timeout C = 5*1e6*8 # 5MB/s ...
31.795918
85
0.587291
69ea0b944e108b77f7d0ad987828766bf69c1326
3,764
py
Python
foolspider/foolspider/spiders/proxy_spider.py
foolcage/foolcage
3558f23d319dd4393c786bd6b606548deaf12c08
[ "MIT" ]
1
2017-08-03T07:36:56.000Z
2017-08-03T07:36:56.000Z
foolspider/foolspider/spiders/proxy_spider.py
foolcage/foolcage
3558f23d319dd4393c786bd6b606548deaf12c08
[ "MIT" ]
null
null
null
foolspider/foolspider/spiders/proxy_spider.py
foolcage/foolcage
3558f23d319dd4393c786bd6b606548deaf12c08
[ "MIT" ]
null
null
null
import json import scrapy from scrapy import Request from scrapy import Selector from scrapy import signals from foolspider.consts import HIDEME_NAME_HEADER from foolspider.proxy.proxy_manager import g_socks2http_proxy_items from foolspider.utils.utils import get_forecast_event_path class ProxySpider(scrapy.Spider)...
37.267327
108
0.493624
fdc1d918ff71706a94fe53a9dd5e58f6e0800bff
45,072
py
Python
tests/http/federation/test_matrix_federation_agent.py
cuongnv/synapse
bb6c9008f1bba3c8e7e13051f0f8333f62ed8f31
[ "Apache-2.0" ]
1
2021-05-31T23:35:36.000Z
2021-05-31T23:35:36.000Z
tests/http/federation/test_matrix_federation_agent.py
cuongnv/synapse
bb6c9008f1bba3c8e7e13051f0f8333f62ed8f31
[ "Apache-2.0" ]
null
null
null
tests/http/federation/test_matrix_federation_agent.py
cuongnv/synapse
bb6c9008f1bba3c8e7e13051f0f8333f62ed8f31
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 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.0 # # Unless required by applicable la...
36.26066
90
0.641795
55c8772efe0a41172ce7a0a60370431ce1fc74f1
2,060
py
Python
app_community/models.py
visoon0012/plover.cloud
04542628758d969085eb6172928165fddb5d2677
[ "Apache-2.0" ]
1
2018-05-15T08:34:14.000Z
2018-05-15T08:34:14.000Z
app_community/models.py
visoon0012/plover.cloud
04542628758d969085eb6172928165fddb5d2677
[ "Apache-2.0" ]
7
2020-06-05T18:09:20.000Z
2022-03-11T23:20:49.000Z
app_community/models.py
visoon0012/plover.cloud
04542628758d969085eb6172928165fddb5d2677
[ "Apache-2.0" ]
null
null
null
from django.db import models from app_user.models import User class CommunityKeyword(models.Model): """ 圈子 - 关键字 """ name = models.CharField(max_length=190) # 关键字名称 info = models.TextField() # 关键字简介 created_time = models.DateTimeField(auto_now_add=True) updated_time = models.DateTimeFi...
33.770492
115
0.715049
44c2cc349063127e30071e77c337dbdc19f26ab5
78
py
Python
data/micro-benchmark/classes/static_method_call/main.py
vitsalis/pycg-evaluation
ce37eb5668465b0c17371914e863d699826447ee
[ "Apache-2.0" ]
121
2020-12-16T20:31:37.000Z
2022-03-21T20:32:43.000Z
data/micro-benchmark/classes/static_method_call/main.py
vitsalis/pycg-evaluation
ce37eb5668465b0c17371914e863d699826447ee
[ "Apache-2.0" ]
24
2021-03-13T00:04:00.000Z
2022-03-21T17:28:11.000Z
data/micro-benchmark/classes/static_method_call/main.py
vitsalis/pycg-evaluation
ce37eb5668465b0c17371914e863d699826447ee
[ "Apache-2.0" ]
19
2021-03-23T10:58:47.000Z
2022-03-24T19:46:50.000Z
class MyClass: @staticmethod def func(): pass MyClass.func()
11.142857
17
0.589744
c37688e623bdc7407c85b21af2c6678c4b756bd1
2,493
py
Python
version_increment.py
pfeerick/platformio_version_increment
6afffabd2a254c679a5a3fbd5a08e609b3f3b3c2
[ "MIT" ]
null
null
null
version_increment.py
pfeerick/platformio_version_increment
6afffabd2a254c679a5a3fbd5a08e609b3f3b3c2
[ "MIT" ]
null
null
null
version_increment.py
pfeerick/platformio_version_increment
6afffabd2a254c679a5a3fbd5a08e609b3f3b3c2
[ "MIT" ]
null
null
null
# # version_increment.py - Simple versioning script for Platformio # # Copyright (C) 2020 Davide Perini # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal # in the Software without restriction, inc...
33.24
89
0.662655
2e22e67c633c5f2f3bcd20f65a8bf557213ba809
3,524
py
Python
softlearning/policies/base_policy.py
YaoYao1995/mbpo
b9571e469459ce3a632b19dc3fee68c9ac3857b2
[ "MIT" ]
null
null
null
softlearning/policies/base_policy.py
YaoYao1995/mbpo
b9571e469459ce3a632b19dc3fee68c9ac3857b2
[ "MIT" ]
null
null
null
softlearning/policies/base_policy.py
YaoYao1995/mbpo
b9571e469459ce3a632b19dc3fee68c9ac3857b2
[ "MIT" ]
null
null
null
from contextlib import contextmanager from collections import OrderedDict import numpy as np from serializable import Serializable class BasePolicy(Serializable): def __init__(self): self._deterministic = False def reset(self): """Reset and clean the policy.""" raise Not...
35.59596
80
0.643019
1bdb75a28d65173fedb3e415bd76767183ccbe49
2,195
py
Python
setup.py
Yelp/data_pipeline_avro_util
25397406bccbd0553e6ba822b0425d5e8bdea73f
[ "Apache-2.0" ]
30
2016-11-17T18:30:18.000Z
2019-09-23T17:06:22.000Z
setup.py
tomzhang/data_pipeline_avro_util
25397406bccbd0553e6ba822b0425d5e8bdea73f
[ "Apache-2.0" ]
3
2016-11-17T19:41:11.000Z
2017-09-08T04:41:42.000Z
setup.py
tomzhang/data_pipeline_avro_util
25397406bccbd0553e6ba822b0425d5e8bdea73f
[ "Apache-2.0" ]
9
2016-11-29T22:38:05.000Z
2020-07-04T18:26:46.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ag...
35.403226
72
0.691572
a756a7d042f85713027cad2cc069998b03460491
1,463
py
Python
examples/full_simple_example.py
kciesielski/spacy-ru
b2e578a0a542613be739cfa82c387dbb88f4acc1
[ "MIT" ]
234
2018-08-17T12:56:52.000Z
2022-03-12T08:24:58.000Z
examples/full_simple_example.py
kciesielski/spacy-ru
b2e578a0a542613be739cfa82c387dbb88f4acc1
[ "MIT" ]
21
2018-08-24T12:47:54.000Z
2021-07-15T18:10:39.000Z
examples/full_simple_example.py
kciesielski/spacy-ru
b2e578a0a542613be739cfa82c387dbb88f4acc1
[ "MIT" ]
39
2018-07-17T08:14:22.000Z
2021-11-12T07:23:41.000Z
import pandas import spacy from tabulate import tabulate def pbool(x): return '+' if x else '-' def entity_at(t): # print(t.i, t.idx, dir(t)) entity = [e for e in t.doc.ents if e.start == t.i] if entity: return "{}: {}".format(t.ent_type_, entity[0].text) return '' def print_tokens(nlp...
34.023256
106
0.61039
6cdb552ab6eacfd2803593719da8fa673f914c01
5,197
py
Python
src/third_party/wiredtiger/test/suite/test_txn23.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_txn23.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_txn23.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Public Domain 2014-present MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a com...
41.91129
96
0.659226
96ff2e8fe487ef33d4331560cb364feb5a8c8221
8,832
py
Python
tests/test_rfc3709.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
2
2021-06-15T16:24:39.000Z
2022-03-28T04:41:59.000Z
tests/test_rfc3709.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
null
null
null
tests/test_rfc3709.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
1
2022-01-25T16:00:09.000Z
2022-01-25T16:00:09.000Z
# # This file is part of pyasn1-alt-modules software. # # Copyright (c) 2019-2022, Vigil Security, LLC # License: http://vigilsec.com/pyasn1-alt-modules-license.txt # import sys import unittest from pyasn1.codec.der.decoder import decode as der_decoder from pyasn1.codec.der.encoder import encode as der_encoder from p...
45.525773
83
0.809103
ac1b357bb8c893d29a52df09742119fd238a3502
3,160
py
Python
setup.py
deralexxx/timesketch
61b83da377b589438a00ab4ca40aaf048e6907c7
[ "Apache-2.0" ]
null
null
null
setup.py
deralexxx/timesketch
61b83da377b589438a00ab4ca40aaf048e6907c7
[ "Apache-2.0" ]
null
null
null
setup.py
deralexxx/timesketch
61b83da377b589438a00ab4ca40aaf048e6907c7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015 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 ...
31.919192
84
0.698734
d13026c4b3b6bdddfa0fd74d3318b68c5df7e79b
8,145
py
Python
selfdrive/loggerd/uploader.py
KexianShen/openpilot
bf58e2f7edce20e4fed5bb8c147aca40cd1d91bc
[ "MIT" ]
null
null
null
selfdrive/loggerd/uploader.py
KexianShen/openpilot
bf58e2f7edce20e4fed5bb8c147aca40cd1d91bc
[ "MIT" ]
null
null
null
selfdrive/loggerd/uploader.py
KexianShen/openpilot
bf58e2f7edce20e4fed5bb8c147aca40cd1d91bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import bz2 import json import os import random import requests import threading import time import traceback from pathlib import Path from cereal import log import cereal.messaging as messaging from common.api import Api from common.params import Params from common.realtime import set_core_affin...
28.679577
156
0.661142
1b4cdc0fb780a43d555c13348853d1be6ca412a9
332
py
Python
fundamentals/13_modules_python.py
fabiangothman/Python
0df6828a4f435a9092667b328f78434d419e6a5b
[ "MIT" ]
null
null
null
fundamentals/13_modules_python.py
fabiangothman/Python
0df6828a4f435a9092667b328f78434d419e6a5b
[ "MIT" ]
null
null
null
fundamentals/13_modules_python.py
fabiangothman/Python
0df6828a4f435a9092667b328f78434d419e6a5b
[ "MIT" ]
null
null
null
#Libraries: there are three types: # Own: Create by ourself # third-party: https://pypi.org # Python: https://docs.python.org/3/py-modindex.html import time from datetime import date, timedelta print(type(date.today())) print(date.today()) print(type(timedelta(minutes=70))) print(timedelta(minutes=70)) print(time.l...
20.75
52
0.743976
713d59aefa6e3626d31f1e1ae1e2ff9646c95add
2,069
py
Python
custom_components/react/tasks/base.py
gertjanstulp/ha-mapper
9cc84a4856e5f3e45077fd7d2586188b199f83d8
[ "Apache-2.0" ]
null
null
null
custom_components/react/tasks/base.py
gertjanstulp/ha-mapper
9cc84a4856e5f3e45077fd7d2586188b199f83d8
[ "Apache-2.0" ]
null
null
null
custom_components/react/tasks/base.py
gertjanstulp/ha-mapper
9cc84a4856e5f3e45077fd7d2586188b199f83d8
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta from logging import Handler from time import monotonic from typing import Callable, Union from homeassistant.core import Event from ..base import ReactBase from ..enums import ReactStage class ReactTask: """React task base.""" events: Union[list[str], None] = None events_w...
33.918033
105
0.628323
659771bcea51c5876cfb8b879aa4ddf22f95a4b0
399
py
Python
tests/_scopedvar/test_template.py
hsfzxjy/decup
8ad9819bc1daa332adbfb2a3ae60cca6055aac44
[ "Apache-2.0" ]
2
2021-07-25T11:15:05.000Z
2021-09-27T06:55:44.000Z
tests/_scopedvar/test_template.py
hsfzxjy/decup
8ad9819bc1daa332adbfb2a3ae60cca6055aac44
[ "Apache-2.0" ]
null
null
null
tests/_scopedvar/test_template.py
hsfzxjy/decup
8ad9819bc1daa332adbfb2a3ae60cca6055aac44
[ "Apache-2.0" ]
1
2021-07-26T01:08:06.000Z
2021-07-26T01:08:06.000Z
from mocona.scopedvar import Template, S, V from test_refcnt import isolate_testcase class Dummy(Template, ns=V.dummy[...]): foo: int bar: str @isolate_testcase def test_get_from_template(): S.assign(S._varfor(V.dummy.foo), 1) assert Dummy.foo == 1 @isolate_testcase @S.inject def test_set_via_temp...
19
53
0.711779
1bccae6a4f9271c725f4a8eb263d4fcb856da9da
552
py
Python
backend/code/iep/auth/drivers/query.py
socek/iep
793e35ca5304eef7b7dacb5dd8d486622f497759
[ "Apache-2.0" ]
null
null
null
backend/code/iep/auth/drivers/query.py
socek/iep
793e35ca5304eef7b7dacb5dd8d486622f497759
[ "Apache-2.0" ]
null
null
null
backend/code/iep/auth/drivers/query.py
socek/iep
793e35ca5304eef7b7dacb5dd8d486622f497759
[ "Apache-2.0" ]
null
null
null
from sapp import Decorator from iep import app from iep.application.drivers.query import GetActiveByUidForModel from iep.application.drivers.query import ListActiveForModel from .dbmodels import UserData list_active = ListActiveForModel(UserData) get_active_by_uid = GetActiveByUidForModel(UserData) @Decorator(app,...
27.6
75
0.778986
90badcc3fda43c4b738141e3bc900c6cf5c5650d
1,862
py
Python
selective.py
blue-cosmos/object_detection_tflite
c02fa9b8aa1588bf8e112407ccd762818a27305f
[ "MIT" ]
1
2021-07-08T17:35:24.000Z
2021-07-08T17:35:24.000Z
selective.py
blue-cosmos/object_detection_tflite
c02fa9b8aa1588bf8e112407ccd762818a27305f
[ "MIT" ]
null
null
null
selective.py
blue-cosmos/object_detection_tflite
c02fa9b8aa1588bf8e112407ccd762818a27305f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from __future__ import annotations from typing import List from PIL import Image import cv2 import numpy as np from decode import non_maximum_supression # mode of selective search segmentation # 'single' or 'fast' or 'quality' SELECTIVE_MODE = 'single' # minimum are of seg...
26.985507
70
0.625671