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
039a87da24731d9945fbf910de549448bbe251f4
13,536
py
Python
pagebotnano_060/toolbox/loremipsum.py
petrvanblokland/TYPE-TRY
11910e1c0581019d5dbab28b638042379460cf68
[ "MIT" ]
null
null
null
pagebotnano_060/toolbox/loremipsum.py
petrvanblokland/TYPE-TRY
11910e1c0581019d5dbab28b638042379460cf68
[ "MIT" ]
null
null
null
pagebotnano_060/toolbox/loremipsum.py
petrvanblokland/TYPE-TRY
11910e1c0581019d5dbab28b638042379460cf68
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T N A N O # # Copyright (c) 2020+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # ---...
81.542169
877
0.680408
46a7a1bb36309be52458f1861e398b26b2954d3e
2,953
py
Python
aggregators/fedavg.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
aggregators/fedavg.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
aggregators/fedavg.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
from .aggregator_base import Aggregator from collections import OrderedDict import torch import numpy as np import copy class FedAvg(Aggregator): def aggregate(self, local_models, global_model): if self.args.get_portion_uploaded() == 1: return super().aggregate(local_models, global_model) ...
49.216667
136
0.644768
80475f4d9e2e36588329b1f39e0339f94169ff4a
131,477
py
Python
tensorflow/python/data/ops/dataset_ops.py
Sonata-Wang/tensorflow
8bbef0cd77879d05ed69bf30e76087847a8ca4a2
[ "Apache-2.0" ]
6
2019-02-05T22:36:51.000Z
2022-01-14T03:50:57.000Z
tensorflow/python/data/ops/dataset_ops.py
YaoYaoZhi/tensorflow
83903c9dd9b5235996ec9158c30a1607fcfb4c73
[ "Apache-2.0" ]
1
2019-09-14T04:40:07.000Z
2020-11-18T18:16:17.000Z
tensorflow/python/data/ops/dataset_ops.py
YaoYaoZhi/tensorflow
83903c9dd9b5235996ec9158c30a1607fcfb4c73
[ "Apache-2.0" ]
8
2016-01-14T13:12:56.000Z
2021-04-09T10:20:53.000Z
# Copyright 2017 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...
39.364371
116
0.695954
a12c0734046e24d168f4e6e6dc777646f99cb860
845
py
Python
restapi/urls.py
SmartC2016/drf_another_tut
d71a4259796442824bd62633b429ceb7bb09cd61
[ "MIT" ]
null
null
null
restapi/urls.py
SmartC2016/drf_another_tut
d71a4259796442824bd62633b429ceb7bb09cd61
[ "MIT" ]
null
null
null
restapi/urls.py
SmartC2016/drf_another_tut
d71a4259796442824bd62633b429ceb7bb09cd61
[ "MIT" ]
null
null
null
"""restapi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
33.8
77
0.707692
f86e48982627c4e9e8d40aeeda20718107d03e5e
1,086
py
Python
tests/molecular/bonds/bond/with_ids/test_with_ids.py
andrewtarzia/stk
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
tests/molecular/bonds/bond/with_ids/test_with_ids.py
JelfsMaterialsGroup/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
tests/molecular/bonds/bond/with_ids/test_with_ids.py
supramolecular-toolkit/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
from __future__ import annotations import stk from collections import abc def test_with_ids( bond: stk.Bond, get_id_map: abc.Callable[[stk.Bond], dict[int, int]], ) -> None: """ Test :meth:`.Bond.with_ids`. Parameters: bond : :class:`.Bond` The bond to test. get_id_...
24.133333
66
0.616943
47227e7e8a0eb0ac2d8b1da72cbe24ca1616a30c
9,757
py
Python
data_loader.py
LucilleN/dv-classifier
0b4dc0f0589dcf1bcb1f9f4f000d37de53ef4621
[ "MIT" ]
5
2020-11-13T00:46:19.000Z
2022-01-25T05:00:48.000Z
data_loader.py
LucilleN/dv-classifier
0b4dc0f0589dcf1bcb1f9f4f000d37de53ef4621
[ "MIT" ]
3
2020-12-02T04:18:41.000Z
2020-12-07T18:24:55.000Z
data_loader.py
LucilleN/dv-classifier
0b4dc0f0589dcf1bcb1f9f4f000d37de53ef4621
[ "MIT" ]
null
null
null
""" This file is used for two purposes: to (1) load the data from existing CSV's in order for our models to train/test on, and (2) when run independently, to generate new augmented data. The `load_data` file is imported into the model files and run within their scripts. To generate augmented data, run this file with...
40.654167
156
0.67695
0a10baec0ebacf60b40d56f8cb413bc542414cc6
1,312
py
Python
ttJson.py
satendrapandeymp/pytextrank
f5e6042e360896fbb6954cba0d6b658e52eaa27b
[ "Apache-2.0" ]
null
null
null
ttJson.py
satendrapandeymp/pytextrank
f5e6042e360896fbb6954cba0d6b658e52eaa27b
[ "Apache-2.0" ]
null
null
null
ttJson.py
satendrapandeymp/pytextrank
f5e6042e360896fbb6954cba0d6b658e52eaa27b
[ "Apache-2.0" ]
null
null
null
from glob import glob import argparse, json, re WORD = re.compile(r'[\w\.]+') def ttJson(name, directory=False): if directory: name = glob(name + "/*.txt") else: name = [name] for ids, fname in enumerate(name): with open("".join(fname.split(".")[:-1]) + ".json", 'w') as writer: ...
32.8
129
0.545732
7989d45f5aac9f3d662a8becc520133275896d31
3,763
py
Python
travis_pypi_setup.py
rochacbruno-archive/import_string
85c5de803a4de900afcd3ca5087b85d6c3131c68
[ "ISC" ]
12
2016-07-01T03:06:44.000Z
2019-03-28T06:49:01.000Z
travis_pypi_setup.py
rochacbruno-archive/import_string
85c5de803a4de900afcd3ca5087b85d6c3131c68
[ "ISC" ]
3
2016-06-30T17:00:19.000Z
2017-03-15T15:52:24.000Z
travis_pypi_setup.py
rochacbruno-archive/import_string
85c5de803a4de900afcd3ca5087b85d6c3131c68
[ "ISC" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Update encrypted deploy password in Travis config file """ from __future__ import print_function import base64 import json import os from getpass import getpass import yaml from cryptography.hazmat.primitives.serialization import load_pem_public_key from cryptography.h...
30.593496
79
0.701036
9ede891d2663650f65d14a656549dfe6d4195732
404
py
Python
terra/projects/migrations/0051_layer_use_cog_tiles.py
dymaxionlabs/platform
98fe893d4632d62fea3e2357f16d970014037cdf
[ "BSD-3-Clause" ]
null
null
null
terra/projects/migrations/0051_layer_use_cog_tiles.py
dymaxionlabs/platform
98fe893d4632d62fea3e2357f16d970014037cdf
[ "BSD-3-Clause" ]
null
null
null
terra/projects/migrations/0051_layer_use_cog_tiles.py
dymaxionlabs/platform
98fe893d4632d62fea3e2357f16d970014037cdf
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.5 on 2021-03-03 18:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0050_project_redash_dashboard_url'), ] operations = [ migrations.AddField( model_name='layer', name='use...
21.263158
58
0.616337
70c82e8eba39cc06d69b2d1a1cb08aa084ff8f8f
12,042
py
Python
train_3dpyranet.py
ihsanafredi/EmoP3D
7e8dfd6b1b75da8674ea7cf737efece7a1096144
[ "MIT" ]
1
2019-02-19T14:19:56.000Z
2019-02-19T14:19:56.000Z
train_3dpyranet.py
EmanuelOverflow/EmoP3D
db3d08eb6f6dfc7ca305a9846962f84faf7b6e49
[ "MIT" ]
null
null
null
train_3dpyranet.py
EmanuelOverflow/EmoP3D
db3d08eb6f6dfc7ca305a9846962f84faf7b6e49
[ "MIT" ]
null
null
null
from __future__ import print_function import tensorflow as tf import numpy as np from datasets import input_data import layers import os import time from tqdm import trange from packaging import version flags = tf.app.flags # Checkpoint settings flags.DEFINE_float("evaluate_every", 1, "Number of epoch for each evalu...
41.66782
119
0.63129
14320fcf8ed30e15ae9a5b76f936ee3e52a961d0
1,072
py
Python
scripts/python/scrapy_based_scrapers/simple_crawler/spiders/reddit_crawl.py
duttashi/scrapers
aa6527d5ae9b734feec9fb284ce1adbfff21a202
[ "MIT" ]
3
2019-02-12T13:28:43.000Z
2021-12-04T16:43:39.000Z
scripts/python/scrapy_based_scrapers/simple_crawler/spiders/reddit_crawl.py
duttashi/scrapers
aa6527d5ae9b734feec9fb284ce1adbfff21a202
[ "MIT" ]
128
2018-08-24T02:53:21.000Z
2021-08-17T04:51:21.000Z
scripts/python/scrapy_based_scrapers/simple_crawler/spiders/reddit_crawl.py
duttashi/project-scrapy
aa6527d5ae9b734feec9fb284ce1adbfff21a202
[ "MIT" ]
2
2016-11-24T16:03:36.000Z
2016-12-17T11:23:21.000Z
# Tutorial from: http://seanmckaybeck.com/scrapy-the-basics.html from scrapy.spiders import CrawlSpider from scrapy.selector import Selector from scrapy.item import Item, Field class RedditCrawler(CrawlSpider): name = "reddit-crawler" allowed_domains = ['reddit.com'] start_urls = ['https://www.reddit.com/...
34.580645
96
0.63806
557fb78ee76a29855016ec33725f22e5ed485fb2
4,011
py
Python
scraper.py
DocBlack89/PastebinCrawler
f012364d0d6c12e56ea8706db1b617451802fe07
[ "MIT" ]
null
null
null
scraper.py
DocBlack89/PastebinCrawler
f012364d0d6c12e56ea8706db1b617451802fe07
[ "MIT" ]
null
null
null
scraper.py
DocBlack89/PastebinCrawler
f012364d0d6c12e56ea8706db1b617451802fe07
[ "MIT" ]
null
null
null
#check pastebin archive #verifier à une fréquence entre 1 et 5 minutes import requests from lxml.html import fromstring from itertools import cycle from bs4 import BeautifulSoup import traceback #from stem import Signal #from stem.control import Controller from fake_useragent import UserAgent import re import sqlite3 ...
24.162651
92
0.643979
f5e9176910756cdfca6d33fe0d6e773992ba8971
46,940
py
Python
homeassistant/core.py
m2hofi94/home-assistant
288ae8b1e7cdbbdcb6d055eaea09445cc3dc4064
[ "Apache-2.0" ]
1
2019-11-16T11:25:44.000Z
2019-11-16T11:25:44.000Z
homeassistant/core.py
m2hofi94/home-assistant
288ae8b1e7cdbbdcb6d055eaea09445cc3dc4064
[ "Apache-2.0" ]
null
null
null
homeassistant/core.py
m2hofi94/home-assistant
288ae8b1e7cdbbdcb6d055eaea09445cc3dc4064
[ "Apache-2.0" ]
1
2019-07-05T15:43:35.000Z
2019-07-05T15:43:35.000Z
""" Core components of Home Assistant. Home Assistant is a Home Automation framework for observing the state of entities and react to changes. """ import asyncio from concurrent.futures import ThreadPoolExecutor import datetime import enum import functools import logging import os import pathlib import threading from ...
31.823729
88
0.610758
76ea963c7c4123464e9050dc1612a88d04181999
3,095
py
Python
labs/07_seq2seq/solutions/beam_search.py
soufiomario/labs-Deep-learning
0ae8be9afb69a4761a4901f694480bb16947d52a
[ "MIT" ]
1,398
2017-02-24T07:34:02.000Z
2022-03-29T01:59:50.000Z
labs/07_seq2seq/solutions/beam_search.py
soufiomario/labs-Deep-learning
0ae8be9afb69a4761a4901f694480bb16947d52a
[ "MIT" ]
12
2017-03-28T19:51:12.000Z
2022-03-10T21:36:35.000Z
labs/07_seq2seq/solutions/beam_search.py
soufiomario/labs-Deep-learning
0ae8be9afb69a4761a4901f694480bb16947d52a
[ "MIT" ]
637
2017-02-24T09:40:33.000Z
2022-03-29T01:59:51.000Z
def beam_translate(model, source_sequence, shared_vocab, rev_shared_vocab, word_level_source=True, word_level_target=True, beam_size=10, return_ll=False): """Decode candidate translations with a beam search strategy If return_ll is False, only the best candidate string is ...
46.893939
82
0.62391
1dec808c646251d9eb1c3b88df8edd54f6c5490b
1,008
py
Python
dashboard.py
rohanj-qxf2/social-media-dashboard
538f64b3bf823d6898d492cce6e8fcd9c6ad8dff
[ "MIT" ]
null
null
null
dashboard.py
rohanj-qxf2/social-media-dashboard
538f64b3bf823d6898d492cce6e8fcd9c6ad8dff
[ "MIT" ]
null
null
null
dashboard.py
rohanj-qxf2/social-media-dashboard
538f64b3bf823d6898d492cce6e8fcd9c6ad8dff
[ "MIT" ]
null
null
null
from flask import Flask, render_template import requests,json import sqlite3 from conf import credentials_conf as conf app = Flask(__name__) @app.route('/') def home(): conn = sqlite3.connect(conf.DB_NAME) c = conn.cursor() c.execute("SELECT * FROM stats ORDER BY id DESC LIMIT 1") result = c.fetchone(...
36
315
0.747024
d1e59fbe6e4d9b761f9c6288a3366d165938de34
6,075
py
Python
contrib/findbugs/tests/python/pants_test/contrib/findbugs/tasks/test_findbugs_integration.py
sammy-1234/pants
889016952a248cf229c78c014d9f6c95422d98b8
[ "Apache-2.0" ]
1
2020-08-26T03:30:31.000Z
2020-08-26T03:30:31.000Z
contrib/findbugs/tests/python/pants_test/contrib/findbugs/tasks/test_findbugs_integration.py
sammy-1234/pants
889016952a248cf229c78c014d9f6c95422d98b8
[ "Apache-2.0" ]
1
2021-09-02T21:06:31.000Z
2021-09-02T21:06:31.000Z
contrib/findbugs/tests/python/pants_test/contrib/findbugs/tasks/test_findbugs_integration.py
pierrechevalier83/pants
57500373dbc1ea6edf5e023197f0e71291537f09
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from textwrap import dedent from pants.base.build_environment import get_buildroot from pants.util.contextutil import temporary_file from pants_test.pants_run_integration_test import Pant...
46.374046
100
0.706996
744e3ce3c3274eaf53785b4d8ad4e90c8972226a
527
py
Python
math_ops_advanced_function/tf_reduce_min.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
7
2017-10-19T13:59:24.000Z
2019-11-26T03:40:08.000Z
math_ops_advanced_function/tf_reduce_min.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
null
null
null
math_ops_advanced_function/tf_reduce_min.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
5
2018-08-22T02:57:03.000Z
2020-03-05T07:14:21.000Z
import tensorflow as tf """tf.reduce_min(input_tensor, axis=None, keep_dims=False, name=None, reduction_indices=None) 功能:沿着维度axis计算最小值,除非keep_dims=True,输出tensor保持维度为1。 输入:axis:默认为None,即沿所有维度求和。""" a = tf.constant([[1, 2, 3], [4, 5, 6]]) z = tf.reduce_min(a) z2 = tf.reduce_min(a, 0) z3 = tf.reduce_min(a, 1) z4 = tf.re...
21.08
93
0.652751
f7ce55e85b7b83306d91fa12e8c86e007ff4eef1
3,581
py
Python
fraqbot/Local/helpers/text.py
IDHalverson/fraqbot
273f8426d94e8ccb9cbb8e005c73fec5d8885fa8
[ "BSD-3-Clause" ]
4
2020-01-12T21:10:49.000Z
2021-06-26T06:29:21.000Z
fraqbot/Local/helpers/text.py
IDHalverson/fraqbot
273f8426d94e8ccb9cbb8e005c73fec5d8885fa8
[ "BSD-3-Clause" ]
17
2020-01-11T13:50:42.000Z
2021-10-06T20:44:51.000Z
fraqbot/Local/helpers/text.py
IDHalverson/fraqbot
273f8426d94e8ccb9cbb8e005c73fec5d8885fa8
[ "BSD-3-Clause" ]
7
2020-01-10T23:08:57.000Z
2021-05-17T21:25:29.000Z
import re from tabulate import tabulate def format_table(data, fields=None, margin=None, sep=None, border=None): if not fields or not isinstance(fields, list): field_order = sorted(data[0].keys()) fields = {f: {} for f in field_order} else: field_order = [f['field'] for f in fields] ...
26.330882
76
0.536163
45adeaf9d3546a5af1b992f7c3ecdf652aed6580
213
py
Python
run.py
azbshiri/tas
f75450faf9b4cc99e2c0189fa846e57b3b0b624f
[ "MIT" ]
null
null
null
run.py
azbshiri/tas
f75450faf9b4cc99e2c0189fa846e57b3b0b624f
[ "MIT" ]
null
null
null
run.py
azbshiri/tas
f75450faf9b4cc99e2c0189fa846e57b3b0b624f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from tas import make_schedule from tabulate import tabulate if __name__ == '__main__': table = make_schedule() tabular = tabulate(list(table), tablefmt="plain") print(tabular)
21.3
53
0.71831
f3c4e3f939625686c2f3358c19c2c503c8563e5b
103,266
py
Python
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2018_01_01_preview/models/_models_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2018_01_01_preview/models/_models_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2018_01_01_preview/models/_models_py3.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
37.881878
172
0.654107
6a7677bc0d8e8a4ea23804a3adb8e3880695e637
237
py
Python
scripts/utils/testing/batch/execute.py
Oleksii-Kshenskyi/purple_tools
3c3a7fde0865e3458c5e885a5a5b68677a55cd1b
[ "0BSD" ]
null
null
null
scripts/utils/testing/batch/execute.py
Oleksii-Kshenskyi/purple_tools
3c3a7fde0865e3458c5e885a5a5b68677a55cd1b
[ "0BSD" ]
27
2019-10-06T20:14:48.000Z
2020-03-31T20:42:16.000Z
scripts/utils/testing/batch/execute.py
Oleksii-Kshenskyi/purple_tools
3c3a7fde0865e3458c5e885a5a5b68677a55cd1b
[ "0BSD" ]
null
null
null
import unittest def run_tests_in_directory(dir_name, out_stream = None): loader = unittest.TestLoader() suite = loader.discover(dir_name) runner = unittest.TextTestRunner(verbosity=2, stream=out_stream) return runner.run(suite)
29.625
66
0.78481
d8c30244582ee83c9a1d4c909b565a77a5bca13d
792
py
Python
setup.py
Sirse/zha-device-handlers
a3648331163e57b0852a45beef6be9f25e3fb108
[ "Apache-2.0" ]
null
null
null
setup.py
Sirse/zha-device-handlers
a3648331163e57b0852a45beef6be9f25e3fb108
[ "Apache-2.0" ]
null
null
null
setup.py
Sirse/zha-device-handlers
a3648331163e57b0852a45beef6be9f25e3fb108
[ "Apache-2.0" ]
null
null
null
"""Setup module for ZHAQuirks.""" from setuptools import find_packages, setup VERSION = "0.0.60" def readme(): """Print long description.""" with open("README.md") as f: return f.read() setup( name="zha-quirks", version=VERSION, description="Library implementing Zigpy quirks for ZHA in...
26.4
78
0.683081
1623b75018ff301a9cd06a2d0dec71b80c33025a
3,171
py
Python
tao/setup.py
zhiqwang/BladeDISC
ae4ce5b914a860645e1e4a91b2512148f0885003
[ "Apache-2.0" ]
null
null
null
tao/setup.py
zhiqwang/BladeDISC
ae4ce5b914a860645e1e4a91b2512148f0885003
[ "Apache-2.0" ]
null
null
null
tao/setup.py
zhiqwang/BladeDISC
ae4ce5b914a860645e1e4a91b2512148f0885003
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os import re import subprocess from setuptools import find_packages, setup # Package meta-data. NAME_PREFIX = 'blade-disc' DESCRIPTION = 'TensorFlow wrapper for Blade DISC compiler.' URL = 'https://github.com/pai_disc/aicompiler' EMAIL = 'tashuang.zk@ali...
28.3125
81
0.66919
eb1f6bd88d91f2f020703c58f84e4c89e54a9050
245
py
Python
app/src/database/__init__.py
Speccy-Rom/My-web-service-architecture
01a5c70284f37fc5c4c8c70458d80f5a908bc50b
[ "MIT" ]
null
null
null
app/src/database/__init__.py
Speccy-Rom/My-web-service-architecture
01a5c70284f37fc5c4c8c70458d80f5a908bc50b
[ "MIT" ]
null
null
null
app/src/database/__init__.py
Speccy-Rom/My-web-service-architecture
01a5c70284f37fc5c4c8c70458d80f5a908bc50b
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import declarative_base from app.settings import database_settings engine = create_engine(database_settings.uri) DeclarativeBase = declarative_base() from .models import * # noqa F401
24.5
45
0.832653
52f2dbe41334a14e6f645897241e85959b6c4524
1,188
py
Python
corrswitching.py
andim/transitions-paper
538e30fa92517fbc43c9c3768acb1b5eddd2e86e
[ "MIT" ]
null
null
null
corrswitching.py
andim/transitions-paper
538e30fa92517fbc43c9c3768acb1b5eddd2e86e
[ "MIT" ]
null
null
null
corrswitching.py
andim/transitions-paper
538e30fa92517fbc43c9c3768acb1b5eddd2e86e
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np get_ipython().magic(u'matplotlib inline') import matplotlib.pyplot as plt plt.style.use(['transitions.mplstyle']) import matplotlib colors = matplotlib.rcParams['axes.prop_cycle'].by_key()['color'] black = matplotlib.rcParams['text.color'] import sys sys.path.append('lib/') import...
25.826087
97
0.677609
a189004a6801f80b4e82040e72395d44e72c3628
8,172
py
Python
greedy.py
albert-espin/graph-matching
72d2014c46c8d31282a654df3534870ab7c27064
[ "MIT" ]
null
null
null
greedy.py
albert-espin/graph-matching
72d2014c46c8d31282a654df3534870ab7c27064
[ "MIT" ]
null
null
null
greedy.py
albert-espin/graph-matching
72d2014c46c8d31282a654df3534870ab7c27064
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Comentari general: l'algorisme de matching d'aquest fitxer prioritza que tots els nodes siguin connectats al fet d'obtenir una suma de pesos òptima, fins al punt que sempre que un algorisme qualsevol (exhaustiu, per exemple) pugui aconseguir emparellar tots els nodes (que...
61.443609
826
0.649902
09aeb9d49f0c04c068f7c9aa942eb4f63ffefb6d
1,570
py
Python
alotofeffort/s3.py
pydanny/alotofeffort
49e14f06cfc112e6f6ce1e419439c43fd2afa698
[ "BSD-3-Clause" ]
1
2016-03-17T21:52:20.000Z
2016-03-17T21:52:20.000Z
alotofeffort/s3.py
pydanny/alotofeffort
49e14f06cfc112e6f6ce1e419439c43fd2afa698
[ "BSD-3-Clause" ]
null
null
null
alotofeffort/s3.py
pydanny/alotofeffort
49e14f06cfc112e6f6ce1e419439c43fd2afa698
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import socket import boto from boto.s3.key import Key def deploy_file(root, f, bucket): """ Uploads a file to an S3 bucket, as a public file. """ # Normalize path to remove dot # Paths look like: # index.html # css/bootstrap.min.css f...
28.545455
82
0.647771
45eea2a29e829f03eb10e487f18bcb11f742448a
1,802
py
Python
pythonx/clap/fzy.py
Avi-D-coder/vim-clap
8ba3e75d1fb274b1a67aa46d2b530ca27b563c43
[ "MIT" ]
null
null
null
pythonx/clap/fzy.py
Avi-D-coder/vim-clap
8ba3e75d1fb274b1a67aa46d2b530ca27b563c43
[ "MIT" ]
null
null
null
pythonx/clap/fzy.py
Avi-D-coder/vim-clap
8ba3e75d1fb274b1a67aa46d2b530ca27b563c43
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import vim from clap.scorer import fzy_scorer, substr_scorer def str2bool(v): # For neovim, vim.eval("a:enable_icon") is str # For vim, vim.eval("a:enable_icon") is bool if isinstance(v, bool): return v else: return v.lower() in ("yes", ...
26.5
76
0.573807
1967daee95b6b8d37fabe4a0fa02378173c960a3
9,914
py
Python
tests/ut/python/parallel/test_comm_fusion.py
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
1
2022-03-05T02:59:21.000Z
2022-03-05T02:59:21.000Z
tests/ut/python/parallel/test_comm_fusion.py
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
null
null
null
tests/ut/python/parallel/test_comm_fusion.py
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.481172
117
0.687714
deed26de3fba748badbd91cac403d16a51d3a43b
1,463
py
Python
modelseedpy/fbapkg/elementuptakepkg.py
freiburgermsu/ModelSEEDpy
f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016
[ "MIT" ]
5
2021-06-22T18:22:29.000Z
2022-03-02T02:17:49.000Z
modelseedpy/fbapkg/elementuptakepkg.py
freiburgermsu/ModelSEEDpy
f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016
[ "MIT" ]
8
2021-06-18T07:12:48.000Z
2022-03-30T15:35:06.000Z
modelseedpy/fbapkg/elementuptakepkg.py
freiburgermsu/ModelSEEDpy
f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016
[ "MIT" ]
7
2021-05-05T22:54:01.000Z
2022-03-11T10:18:43.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import logging from modelseedpy.fbapkg.basefbapkg import BaseFBAPkg #Base class for FBA packages class ElementUptakePkg(BaseFBAPkg): def __init__(self,model): BaseFBAPkg.__init__(self,model,"element uptake",{"elements":"string"},{"elements":"...
41.8
100
0.615174
5809ac3f3df8e6a4760b21eb03e314bb84945442
232
py
Python
exp06_range.py
psb2509/learning-python3
38bd16f85d458b69ed677c72315c1023f83afc3d
[ "MIT" ]
null
null
null
exp06_range.py
psb2509/learning-python3
38bd16f85d458b69ed677c72315c1023f83afc3d
[ "MIT" ]
4
2018-09-09T16:47:46.000Z
2018-09-10T12:18:43.000Z
exp06_range.py
psb2509/learning-python3
38bd16f85d458b69ed677c72315c1023f83afc3d
[ "MIT" ]
null
null
null
# Use range when u dont have a list to loop through for x in range(10): print(x); print('-----------'); for y in range(3,10): print(y); print('-----------'); for z in range(2,10,2): print(z);
16.571429
52
0.469828
28ae4112c1a48bed94098c3972ca800d1585f619
658
py
Python
BurstCube/NoahSim/__init__.py
nkasmanoff/Simulation
38d47db79cebe8504a03424c564f2207ae2275ac
[ "MIT" ]
null
null
null
BurstCube/NoahSim/__init__.py
nkasmanoff/Simulation
38d47db79cebe8504a03424c564f2207ae2275ac
[ "MIT" ]
null
null
null
BurstCube/NoahSim/__init__.py
nkasmanoff/Simulation
38d47db79cebe8504a03424c564f2207ae2275ac
[ "MIT" ]
null
null
null
try: import healpy except: print("Healpy module is not installed. Please enter 'pip install healpy' before proceeding.") try: import numpy except: print("Numpy module is not installed. Please enter 'pip install numpy' before proceeding.") try: import random except: print("Random module is ...
24.37037
97
0.717325
f1b3974a5ffea00eda78cffe1a887c78c6ade7ab
612
py
Python
discordtr/__init__.py
FENIX-Development/discordtr
f228b5a506e1d4b0f12a266f35d53d1e262178ea
[ "MIT" ]
1
2020-03-19T18:53:42.000Z
2020-03-19T18:53:42.000Z
discordtr/__init__.py
FENIX-Development/discordtr
f228b5a506e1d4b0f12a266f35d53d1e262178ea
[ "MIT" ]
null
null
null
discordtr/__init__.py
FENIX-Development/discordtr
f228b5a506e1d4b0f12a266f35d53d1e262178ea
[ "MIT" ]
null
null
null
__title__ = 'discordtr' __author__ = 'JaimiTR' __license__ = 'MIT' __copyright__ = 'Copyright 2019-2020 JaimiTR' __version__ = '0.9' from collections import namedtuple from .komutlar import Bilgi, Emoji, Bot, Embed, JSON import logging VersionInfo = namedtuple('VersionInfo', 'major minor micro releaselevel serial') ...
26.608696
85
0.746732
dbc598ea27e54968cc4ef2a73c5bb65b8230b348
12,457
py
Python
python/test/mapreduce/namespace_range_test.py
rolepoint/appengine-mapreduce
8710047353b8cb37938ec170c3019dfb099e5697
[ "Apache-2.0" ]
null
null
null
python/test/mapreduce/namespace_range_test.py
rolepoint/appengine-mapreduce
8710047353b8cb37938ec170c3019dfb099e5697
[ "Apache-2.0" ]
1
2015-01-30T02:50:09.000Z
2015-01-30T02:52:00.000Z
python/test/mapreduce/namespace_range_test.py
rolepoint/appengine-mapreduce
8710047353b8cb37938ec170c3019dfb099e5697
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.928125
80
0.588826
2177a72724ebf6ec82cb9bdf8803245bb6cc9496
7,126
py
Python
test/test_generate.py
mosra/flextgl
0ab7b54afc909a4e2b1427f7a6c01cf09bd7e936
[ "MIT" ]
119
2018-05-31T19:11:17.000Z
2022-03-29T04:56:46.000Z
test/test_generate.py
mosra/flextgl
0ab7b54afc909a4e2b1427f7a6c01cf09bd7e936
[ "MIT" ]
5
2018-06-06T15:52:50.000Z
2021-02-13T16:31:16.000Z
test/test_generate.py
mosra/flextgl
0ab7b54afc909a4e2b1427f7a6c01cf09bd7e936
[ "MIT" ]
6
2018-10-23T12:17:19.000Z
2020-12-14T20:04:17.000Z
import os import re import shutil import subprocess import sys import unittest from types import SimpleNamespace as Empty import flextGLgen # https://stackoverflow.com/a/12867228 _camelcase_to_snakecase = re.compile('((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))') # The test files are automatically detected from derived...
37.114583
109
0.660399
375e5811db4bf138ead88f489a86ceb5375cf16a
7,326
py
Python
mcenter_client/tests/mcenter_server_api/models/data_view.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
7
2019-04-08T02:31:55.000Z
2021-11-15T14:40:49.000Z
mcenter_client/tests/mcenter_server_api/models/data_view.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
31
2019-02-22T22:23:26.000Z
2021-08-02T17:17:06.000Z
mcenter_client/tests/mcenter_server_api/models/data_view.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
8
2019-03-15T23:46:08.000Z
2020-02-06T09:16:02.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from mcenter_server_api.models.base_model_ import Model from mcenter_server_api import util class DataView(Model): """NOTE: This class is auto generated by OpenAP...
24.501672
179
0.576167
89c76353f0e9b35681897c33e7676202f80aec67
1,913
py
Python
ga4gh/configtest.py
dkucsc/mavas
db3f7bd35944b7d0f510c62760eaa071bf53d7d8
[ "Apache-2.0" ]
83
2015-01-05T22:21:11.000Z
2017-02-20T01:25:28.000Z
ga4gh/configtest.py
dkucsc/mavas
db3f7bd35944b7d0f510c62760eaa071bf53d7d8
[ "Apache-2.0" ]
1,508
2015-01-02T14:06:12.000Z
2017-03-08T19:49:18.000Z
ga4gh/configtest.py
dkucsc/mavas
db3f7bd35944b7d0f510c62760eaa071bf53d7d8
[ "Apache-2.0" ]
99
2015-01-14T20:48:56.000Z
2017-03-08T18:35:06.000Z
""" Tests for the server configuration. Run via configtest_dev.py Tests are standard python unittest tests. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import flask import os class TestConfig(unittest.TestCase): """ This c...
34.160714
76
0.649242
e5c9265b503ef46208a10cd4d9883de2bc43476e
337
py
Python
jarviscli/plugins/newyear.py
youyahya/Jarvis
1cbd26e61a7224eb5da1e9d698f05761714f45a9
[ "MIT" ]
2,605
2017-03-10T22:44:36.000Z
2022-03-31T15:33:17.000Z
jarviscli/plugins/newyear.py
nikiboura/Jarvis
eb22f7c84a345e9ae5925b4b98adbc4f2e4a93f3
[ "MIT" ]
729
2017-03-11T00:06:46.000Z
2022-03-31T22:04:44.000Z
jarviscli/plugins/newyear.py
nikiboura/Jarvis
eb22f7c84a345e9ae5925b4b98adbc4f2e4a93f3
[ "MIT" ]
1,181
2017-03-10T23:24:55.000Z
2022-03-31T03:59:46.000Z
from plugin import plugin @plugin("christmas") def newyear(jarvis, s): tree = " *\n"\ " ###\n"\ " #####\n"\ " ###\n"\ " #####\n"\ " #######\n"\ " #####\n"\ " #######\n"\ " ###\n"\ " ###" ...
19.823529
25
0.237389
792d6ccc11974484e176e07b5b6ee61a5ed9f6d0
569
py
Python
content/en/api/screenboards/code_snippets/result.api-screenboard-create.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
content/en/api/screenboards/code_snippets/result.api-screenboard-create.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
content/en/api/screenboards/code_snippets/result.api-screenboard-create.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
{ 'description': 'An informative screenboard.', 'created': '2015-12-17T21:29:40.890824+00:00', 'modified': '2015-12-17T21:29:40.890824+00:00', 'read_only': False, 'widgets': [{'height': 20, 'type': 'image', 'url': 'https://path/to/image.jpg', 'width...
28.45
52
0.463972
4b185407eef40de6c7ddbbeb97e66ed57e7b51b7
1,077
py
Python
dusty/models/meta.py
hunkom/dusty-1
04ec2dc26f395f5d97b58354473ba6f280c4efb0
[ "Apache-2.0" ]
6
2019-02-25T08:22:24.000Z
2021-11-02T04:34:35.000Z
dusty/models/meta.py
hunkom/dusty-1
04ec2dc26f395f5d97b58354473ba6f280c4efb0
[ "Apache-2.0" ]
7
2019-01-08T17:32:38.000Z
2021-05-27T08:03:23.000Z
dusty/models/meta.py
hunkom/dusty-1
04ec2dc26f395f5d97b58354473ba6f280c4efb0
[ "Apache-2.0" ]
19
2018-12-13T07:42:32.000Z
2021-07-21T09:07:29.000Z
#!/usr/bin/python3 # coding=utf-8 # pylint: disable=I0011,R0903 # Copyright 2019 getcarrier.io # # 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/license...
26.925
76
0.654596
462f08274d109880d977e8d62ace5a7ef89d34cd
931
py
Python
corehq/messaging/smsbackends/smsgh/views.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/messaging/smsbackends/smsgh/views.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/messaging/smsbackends/smsgh/views.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
from corehq.apps.sms.api import incoming from corehq.apps.sms.views import IncomingBackendView from corehq.messaging.smsbackends.smsgh.models import SMSGHBackend from django.http import HttpResponse, HttpResponseBadRequest class SMSGHIncomingView(IncomingBackendView): urlname = 'smsgh_sms_in' def get(self, r...
37.24
74
0.688507
db282ee0575697c654c6e53a194b84f9ea555855
66
py
Python
Aryan_Sindhi_101703110_outlier_removal/__init__.py
aryansindhi18/Aryan_Sindhi_101703110_outlier_removal
51cf31e32f404ddc32c0cd70a9d60c1822806e95
[ "MIT" ]
null
null
null
Aryan_Sindhi_101703110_outlier_removal/__init__.py
aryansindhi18/Aryan_Sindhi_101703110_outlier_removal
51cf31e32f404ddc32c0cd70a9d60c1822806e95
[ "MIT" ]
null
null
null
Aryan_Sindhi_101703110_outlier_removal/__init__.py
aryansindhi18/Aryan_Sindhi_101703110_outlier_removal
51cf31e32f404ddc32c0cd70a9d60c1822806e95
[ "MIT" ]
null
null
null
from Aryan_Sindhi_101703110_outlier_removal.outlier import rem_out
66
66
0.939394
6be4a9b6ad415ce27a109a6551a3e05ff4806aab
447
py
Python
algos_torch/rnd_curiosity.py
supermina999/rl_games
71a2a76060e339cec7e6d90fe8389baaa4c63bf9
[ "MIT" ]
null
null
null
algos_torch/rnd_curiosity.py
supermina999/rl_games
71a2a76060e339cec7e6d90fe8389baaa4c63bf9
[ "MIT" ]
null
null
null
algos_torch/rnd_curiosity.py
supermina999/rl_games
71a2a76060e339cec7e6d90fe8389baaa4c63bf9
[ "MIT" ]
null
null
null
import torch from torch import nn class RNDCuriosity(nn.Module): def __init__(self, config, observation_space) self.random_network = None self.network = None self.obs_shape = observation_space.shape def forward(self, obs): with torch.no_grads(): rnd_res = self.rand...
19.434783
49
0.606264
f7c721e4e07c0381936f0e5fabe3b00597e4cb16
506
py
Python
school/migrations/0011_payment_status.py
munisisazade/demo_programs
ec80b6f7eb0161c124d0512f5075779714726b2d
[ "MIT" ]
null
null
null
school/migrations/0011_payment_status.py
munisisazade/demo_programs
ec80b6f7eb0161c124d0512f5075779714726b2d
[ "MIT" ]
null
null
null
school/migrations/0011_payment_status.py
munisisazade/demo_programs
ec80b6f7eb0161c124d0512f5075779714726b2d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-29 16:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('school', '0010_auto_20170329_1755'), ] operations = [ migrations.AddField( ...
24.095238
107
0.604743
fe6a91d739d0d5779ba26f073bb83364ebe94354
939
py
Python
stage4.py
manueltrinidad/ICY0006
aa5f65edac1341ecee675a7b24578fe9ebc441d2
[ "MIT" ]
null
null
null
stage4.py
manueltrinidad/ICY0006
aa5f65edac1341ecee675a7b24578fe9ebc441d2
[ "MIT" ]
null
null
null
stage4.py
manueltrinidad/ICY0006
aa5f65edac1341ecee675a7b24578fe9ebc441d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from math import factorial as f from math import ceil as ceil def c(a, b): return f(a) / (f(b) * f(a - b)) # Global variables for faster computation r = 6 n = 56 # Probability to get the Additional Number P_ADD = f(n - r) / (1 * f(n - r - 1)) P_ALL = c(n, r) def melate(k, additional=Fal...
22.902439
83
0.483493
324d3fc8858afe348aaa5404492f300ff1f5b0e6
306
py
Python
test/zhuanshiqi.py
xin1195/smart
11815b8a63f2459300e8aaad82b539cfef8a7546
[ "Apache-2.0" ]
1
2016-05-09T12:29:47.000Z
2016-05-09T12:29:47.000Z
test/zhuanshiqi.py
xin1195/smartSearch
11815b8a63f2459300e8aaad82b539cfef8a7546
[ "Apache-2.0" ]
null
null
null
test/zhuanshiqi.py
xin1195/smartSearch
11815b8a63f2459300e8aaad82b539cfef8a7546
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # _*_coding:utf-8_*_ # Created by "LiuXin" # Time def my_auth(func): def inner(): print("before") func() print("after") return inner @my_auth def f1(): print("f1") # f1() def f2(arg): arg() def func(): print("func") f2(func)
9.272727
23
0.526144
24e079a97d9f24fb0c6abb4ad8dc2625dd4b9d60
8,981
py
Python
src/ecpy/ecdsa.py
afsym/ECPy
4fc1dab3e771cb00d77f470609497c2f2328f532
[ "Apache-2.0" ]
null
null
null
src/ecpy/ecdsa.py
afsym/ECPy
4fc1dab3e771cb00d77f470609497c2f2328f532
[ "Apache-2.0" ]
null
null
null
src/ecpy/ecdsa.py
afsym/ECPy
4fc1dab3e771cb00d77f470609497c2f2328f532
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Cedric Mesnil <cedric.mesnil@ubinity.com>, Ubinity SAS # # 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 ...
37.894515
170
0.623984
8504ff4c68d1470eee8c718505204c0056b9bfbd
1,343
py
Python
sdks/python/apache_beam/examples/snippets/transforms/element_wise/values.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
sdks/python/apache_beam/examples/snippets/transforms/element_wise/values.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
28
2020-03-04T22:01:48.000Z
2022-03-12T00:59:47.000Z
sdks/python/apache_beam/examples/snippets/transforms/element_wise/values.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
# coding=utf-8 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License");...
31.232558
74
0.661206
d1664568cd45775a291472dc879c0cbf6cab96a7
698
py
Python
skimage/restoration/__init__.py
bvnayak/scikit-image
a6654763f1445aa198dcaab8bd77fe0e2a699c72
[ "BSD-3-Clause" ]
null
null
null
skimage/restoration/__init__.py
bvnayak/scikit-image
a6654763f1445aa198dcaab8bd77fe0e2a699c72
[ "BSD-3-Clause" ]
5
2016-05-23T22:14:40.000Z
2022-02-25T21:10:23.000Z
skimage/restoration/__init__.py
bvnayak/scikit-image
a6654763f1445aa198dcaab8bd77fe0e2a699c72
[ "BSD-3-Clause" ]
2
2016-05-23T08:44:29.000Z
2021-06-23T00:26:23.000Z
# -*- coding: utf-8 -*- """Image restoration module. """ from .deconvolution import wiener, unsupervised_wiener, richardson_lucy from .unwrap import unwrap_phase from ._denoise import (denoise_tv_chambolle, denoise_tv_bregman, denoise_bilateral, denoise_wavelet, estimate_sigma) from .non_local_...
29.083333
74
0.664756
d19dd7c8e54c9420beae0018df80b2515e0e4e66
6,831
py
Python
delirious/__init__.py
shivamsharma16-beep/Delirious
24c871c70a979fb8bc3a05abf46f7ffc40bfb3e4
[ "Apache-2.0" ]
1
2021-07-31T13:49:14.000Z
2021-07-31T13:49:14.000Z
delirious/__init__.py
shivamsharma16-beep/Delirious
24c871c70a979fb8bc3a05abf46f7ffc40bfb3e4
[ "Apache-2.0" ]
null
null
null
delirious/__init__.py
shivamsharma16-beep/Delirious
24c871c70a979fb8bc3a05abf46f7ffc40bfb3e4
[ "Apache-2.0" ]
null
null
null
import logging import os import sys import time import telegram.ext as tg import spamwatch StartTime = time.time() from telethon import TelegramClient VERSION = "6.0" # enable logging logging.basicConfig( format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO) LOGGER = lo...
21.214286
151
0.687308
525672148ed39fc1084d580757f601d8a56c8950
2,730
py
Python
app/core/test/test_models.py
Omar2B/recipe-app-api
8031bf1e1f0050bac6ad60ceff9615365f1a5720
[ "MIT" ]
null
null
null
app/core/test/test_models.py
Omar2B/recipe-app-api
8031bf1e1f0050bac6ad60ceff9615365f1a5720
[ "MIT" ]
6
2021-03-19T01:47:22.000Z
2021-09-08T01:54:59.000Z
app/core/test/test_models.py
Omar2B/recipe-app-api
8031bf1e1f0050bac6ad60ceff9615365f1a5720
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='testkingcode.mx', password='testpass'): """Create a sample user""" return get_user_model().objects.create_user(email, password) class ModelTests(Te...
29.354839
70
0.632967
c070eb59bf5e0d3c274d08fa3ea1a2266a21035c
436
py
Python
blog/forms.py
calvinyonathan/django_patronous3
fdf6a11822042b29f7e8fb84834611ed8f4ddba7
[ "MIT" ]
null
null
null
blog/forms.py
calvinyonathan/django_patronous3
fdf6a11822042b29f7e8fb84834611ed8f4ddba7
[ "MIT" ]
null
null
null
blog/forms.py
calvinyonathan/django_patronous3
fdf6a11822042b29f7e8fb84834611ed8f4ddba7
[ "MIT" ]
null
null
null
from django import forms from .models import Comment class EmailPostForm(forms.Form): name = forms.CharField(max_length=25) email = forms.EmailField() to = forms.EmailField() comments = forms.CharField(required=False,widget=forms.Textarea) class CommentForm(forms.ModelForm): class Meta: mo...
27.25
68
0.699541
555211f01e7dac59953fc0bb1567ff884844ad66
1,780
py
Python
src/fess/test/ui/admin/user/update.py
codelibs/fess-test-ui
8082cdda55d6d3bc7b533baa6b632b614e83e68c
[ "Apache-2.0" ]
null
null
null
src/fess/test/ui/admin/user/update.py
codelibs/fess-test-ui
8082cdda55d6d3bc7b533baa6b632b614e83e68c
[ "Apache-2.0" ]
1
2021-12-27T14:06:59.000Z
2022-01-13T09:09:06.000Z
src/fess/test/ui/admin/user/update.py
codelibs/fess-test-ui
8082cdda55d6d3bc7b533baa6b632b614e83e68c
[ "Apache-2.0" ]
null
null
null
from playwright.sync_api import Playwright, sync_playwright def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False, slow_mo=500) context = browser.new_context() # Open new page page = context.new_page() # Go to http://localhost:8080/login/ page.goto("htt...
26.567164
82
0.624719
af9385cd45aea29539aaf658cdd4af14bb4553d1
41,570
py
Python
nova/virt/libvirt/vif.py
arvindn05/nova
1d335b333245198dbf39841eedd221377beb58c2
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/vif.py
arvindn05/nova
1d335b333245198dbf39841eedd221377beb58c2
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/vif.py
arvindn05/nova
1d335b333245198dbf39841eedd221377beb58c2
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2011 Midokura KK # Copyright (C) 2011 Nicira, Inc # Copyright 2011 OpenStack Foundation # All Rights Reserved. # Copyright 2016 Red Hat, 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...
40.556098
79
0.602478
a191a10d1935143fbce6f3ef746e840a9ceebfa9
13,959
py
Python
bitcointalk/bitcointalk.py
DS-DataMining/bitcointalk-scraper
2c152aa5093f884ddb5a15c77e3097ae50152038
[ "MIT" ]
null
null
null
bitcointalk/bitcointalk.py
DS-DataMining/bitcointalk-scraper
2c152aa5093f884ddb5a15c77e3097ae50152038
[ "MIT" ]
null
null
null
bitcointalk/bitcointalk.py
DS-DataMining/bitcointalk-scraper
2c152aa5093f884ddb5a15c77e3097ae50152038
[ "MIT" ]
null
null
null
""" Module for requesting data from bitcointalk.org and parsing it. """ import codecs from datetime import datetime, timedelta from html.parser import HTMLParser import lxml.html import requests import time import random baseUrl = "https://bitcointalk.org/index.php" countRequested = 0 interReqTime = 2 lastReqTime = No...
36.351563
137
0.575829
0889aa7ebe588c17d2e388d93707808be33cd643
2,029
py
Python
utils/boilerplate/test_crab.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
utils/boilerplate/test_crab.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
utils/boilerplate/test_crab.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
import unittest from pysapets.crab import Crab from pysapets.animal import Animal import pysapets.constants as constants from unittest.mock import patch from io import StringIO from copy import deepcopy class CrabTest(unittest.TestCase): def setUp(self): self.crab = Crab() self.friends = [self.crab, Animal...
30.283582
93
0.733859
d0fc1ad0f4b297d1c4de539bcd2d9ffea9b84e91
86,892
py
Python
src/transformers/modeling_utils.py
ArneBinder/transformers
ddaafd78fb9c98d4f7b5009fb1998deff4c3d6f1
[ "Apache-2.0" ]
67
2021-06-09T01:34:23.000Z
2022-03-29T08:40:39.000Z
src/transformers/modeling_utils.py
ArneBinder/transformers
ddaafd78fb9c98d4f7b5009fb1998deff4c3d6f1
[ "Apache-2.0" ]
13
2021-08-22T04:05:55.000Z
2022-03-29T08:19:23.000Z
src/transformers/modeling_utils.py
ArneBinder/transformers
ddaafd78fb9c98d4f7b5009fb1998deff4c3d6f1
[ "Apache-2.0" ]
8
2020-12-12T09:03:46.000Z
2021-12-10T04:50:49.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA 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 L...
48.597315
197
0.630046
133fe8d2efaaadf89544c49115a952dab3916a2a
948
py
Python
wiki/migrations/0002_auto_20170603_1644.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
wiki/migrations/0002_auto_20170603_1644.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
wiki/migrations/0002_auto_20170603_1644.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-03 14:44 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import rich_editor.fields class Migration(migrations.Migration): dependencies = [ ('wiki', '0...
27.882353
136
0.742616
ffef90f65edb9e7fbdf38374e570668da59263e8
1,258
py
Python
QaManagement/QaManagement/urls.py
phammin1/QaManagement
79c56febfe1c1cab567a02f5de7064e97fe39cf6
[ "MIT" ]
null
null
null
QaManagement/QaManagement/urls.py
phammin1/QaManagement
79c56febfe1c1cab567a02f5de7064e97fe39cf6
[ "MIT" ]
null
null
null
QaManagement/QaManagement/urls.py
phammin1/QaManagement
79c56febfe1c1cab567a02f5de7064e97fe39cf6
[ "MIT" ]
null
null
null
""" Definition of urls for QaManagement. """ from datetime import datetime from django.conf.urls import patterns, url from app.forms import BootstrapAuthenticationForm # Uncomment the next lines to enable the admin: # from django.conf.urls import include # from django.contrib import admin # admin.autodiscover() urlp...
28.590909
71
0.59539
4f3d8cbd872d8a4b9de9eeb101292543ed49e1c1
5,089
py
Python
python3/genome2.py
iceihehe/pipeg
c5ed0a3bde23862bc4fffb0751df0bd2c0334a90
[ "MIT" ]
null
null
null
python3/genome2.py
iceihehe/pipeg
c5ed0a3bde23862bc4fffb0751df0bd2c0334a90
[ "MIT" ]
null
null
null
python3/genome2.py
iceihehe/pipeg
c5ed0a3bde23862bc4fffb0751df0bd2c0334a90
[ "MIT" ]
2
2020-01-31T15:17:27.000Z
2020-05-28T13:49:53.000Z
#!/usr/bin/env python3 # Copyright © 2012-13 Qtrac Ltd. All rights reserved. # This program or module 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 3 of the # License, or (at your option) any ...
30.473054
75
0.680094
9853e37c61a2047d6c8fdce8afceb995fcb84e27
37,901
py
Python
Python-3.7.12/Lib/os.py
TimS-ml/CPython-internals-Note
8dcf9e9db3a42926689ed426ec271bcae7db8178
[ "Xnet", "X11" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
Python-3.7.12/Lib/os.py
TimS-ml/CPython-internals-Note
8dcf9e9db3a42926689ed426ec271bcae7db8178
[ "Xnet", "X11" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
Python-3.7.12/Lib/os.py
TimS-ml/CPython-internals-Note
8dcf9e9db3a42926689ed426ec271bcae7db8178
[ "Xnet", "X11" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
r"""OS routines for NT or Posix depending on what system we're on. This exports: - all functions from posix or nt, e.g. unlink, stat, etc. - os.path is either posixpath or ntpath - os.name is either 'posix' or 'nt' - os.curdir is a string representing the current directory (always '.') - os.pardir is a strin...
34.964022
95
0.621778
9ad6b1a1d0c5c2894343b702feb8957477751f31
12,388
py
Python
clients/client-linux.py
v2xu/ServerStatus
3afa3ffe20f4e288d8b86e4549236c85a432fabc
[ "MIT" ]
null
null
null
clients/client-linux.py
v2xu/ServerStatus
3afa3ffe20f4e288d8b86e4549236c85a432fabc
[ "MIT" ]
null
null
null
clients/client-linux.py
v2xu/ServerStatus
3afa3ffe20f4e288d8b86e4549236c85a432fabc
[ "MIT" ]
1
2020-03-19T17:25:37.000Z
2020-03-19T17:25:37.000Z
#!/usr/bin/env python # coding: utf-8 # Update by : https://github.com/cppla/ServerStatus # 支持Python版本:2.7 to 3.7 # 支持操作系统: Linux, OSX, FreeBSD, OpenBSD and NetBSD, both 32-bit and 64-bit architectures # 时间: 20191224 # 说明: 默认情况下修改server和user就可以了。 SERVER = "127.0.0.1" USER = "s01" NET_IN = 0 NET_OUT = 0 OLDNET_IN = 0 ...
30.362745
249
0.504682
787bfca31400a866b893aac911d8798b1c1672cb
16,313
py
Python
tornado/test/locks_test.py
bdrung/tornado
aaad182ae6b1a00f20fe3f15c7d454109c42f6ec
[ "Apache-2.0" ]
1
2019-05-09T06:53:38.000Z
2019-05-09T06:53:38.000Z
tornado/test/locks_test.py
bdrung/tornado
aaad182ae6b1a00f20fe3f15c7d454109c42f6ec
[ "Apache-2.0" ]
null
null
null
tornado/test/locks_test.py
bdrung/tornado
aaad182ae6b1a00f20fe3f15c7d454109c42f6ec
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under th...
30.663534
87
0.599583
f6d6548c1fce81afedd6b63d770c2db3f32bcdfa
2,156
py
Python
tencent/callback_url_blog.py
wangjinyu124419/long_audio_asr
d8dabf6cb10b282e3bd4981207c4a0f478977c9b
[ "MIT" ]
null
null
null
tencent/callback_url_blog.py
wangjinyu124419/long_audio_asr
d8dabf6cb10b282e3bd4981207c4a0f478977c9b
[ "MIT" ]
null
null
null
tencent/callback_url_blog.py
wangjinyu124419/long_audio_asr
d8dabf6cb10b282e3bd4981207c4a0f478977c9b
[ "MIT" ]
1
2019-11-15T10:29:52.000Z
2019-11-15T10:29:52.000Z
import time import logging import logging.handlers import json import tornado.ioloop import tornado.web import tornado.httpserver def setup_logging(level=logging.DEBUG, stream=True, stream_level=logging.DEBUG, *, save_file=True, filename=''): formatter = logging.Formatter( '[%(levelnam...
28
85
0.618738
83011ec9de993610748eefa515491df86617403a
2,652
py
Python
foursquare/tests/__init__.py
timgates42/foursquare
093487a43e544e7bd25cc59dc68aaa43f58cf613
[ "MIT" ]
235
2015-01-09T02:20:32.000Z
2022-03-26T09:59:22.000Z
foursquare/tests/__init__.py
timgates42/foursquare
093487a43e544e7bd25cc59dc68aaa43f58cf613
[ "MIT" ]
30
2015-01-30T15:09:06.000Z
2021-07-06T04:49:20.000Z
foursquare/tests/__init__.py
mLewisLogic/foursquare
0a59f169b4de0634d33d2fdb753e13f70362a756
[ "MIT" ]
73
2015-01-12T09:08:56.000Z
2021-07-03T20:28:53.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # (c) 2020 Mike Lewis import os import time import unittest import foursquare if ( "CLIENT_ID" in os.environ and "CLIENT_SECRET" in os.environ and "ACCESS_TOKEN" in os.environ ): CLIENT_ID = os.environ["CLIENT_ID"] CLIENT_SECRET = os.environ["CLIENT_S...
30.837209
88
0.671946
96c8cf7d48a9ec893b661917ac5d8a961a316455
2,442
py
Python
models/mobilenet.py
kiyoshitaro/pytorch_segmentation
56d77536b4cdb32708dc61aebf8e9800984b7115
[ "MIT" ]
null
null
null
models/mobilenet.py
kiyoshitaro/pytorch_segmentation
56d77536b4cdb32708dc61aebf8e9800984b7115
[ "MIT" ]
null
null
null
models/mobilenet.py
kiyoshitaro/pytorch_segmentation
56d77536b4cdb32708dc61aebf8e9800984b7115
[ "MIT" ]
null
null
null
"""MobileNet in PyTorch. See the paper "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications" for more details. """ import torch import torch.nn as nn import torch.nn.functional as F class Block(nn.Module): """Depthwise conv + Pointwise conv""" def __init__(self, in_planes, out...
26.835165
98
0.572072
b44dcc38b9552b8e1fa4cf8690a3ebd5a583b472
4,951
py
Python
treadmill/api/instance.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
2
2017-03-20T07:13:33.000Z
2017-05-03T03:39:53.000Z
treadmill/api/instance.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
12
2017-07-10T07:04:06.000Z
2017-07-26T09:32:54.000Z
treadmill/api/instance.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
2
2017-05-04T11:25:32.000Z
2017-07-11T09:10:01.000Z
"""Implementation of instance API. """ import fnmatch import importlib import logging from treadmill import admin from treadmill import authz from treadmill import context from treadmill import exc from treadmill import master from treadmill import schema from treadmill import utils from treadmill.api import app _...
32.149351
78
0.556655
a5829fb720b501446da8c24c269760089c711777
4,157
py
Python
nipype/interfaces/fsl/tests/test_FILMGLS.py
nicholsn/nipype
6601b00aac39d17bb9fb3a6801f5a740a6ebb1e3
[ "BSD-3-Clause" ]
1
2018-04-18T12:13:37.000Z
2018-04-18T12:13:37.000Z
nipype/interfaces/fsl/tests/test_FILMGLS.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/fsl/tests/test_FILMGLS.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
1
2021-09-08T14:31:47.000Z
2021-09-08T14:31:47.000Z
from nipype.testing import assert_equal from nipype.interfaces.fsl.model import FILMGLS, FILMGLSInputSpec def test_filmgls(): input_map = dict(args = dict(argstr='%s',), autocorr_estimate_only = dict(xor=['autocorr_estimate_only', 'fit_armodel', 'tukey_window', 'multitaper_product', 'use_pava'...
75.581818
186
0.587443
f3d2547b7768af4dad61f2b42f5edeec853cfe48
1,414
py
Python
pywinrt/winsdk/windows/system/diagnostics/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
3
2022-02-14T14:53:08.000Z
2022-03-29T20:48:54.000Z
pywinrt/winsdk/windows/system/diagnostics/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
4
2022-01-28T02:53:52.000Z
2022-02-26T18:10:05.000Z
pywinrt/winsdk/windows/system/diagnostics/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
null
null
null
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4 import enum import winsdk _ns_module = winsdk._import_ns_module("Windows.System.Diagnostics") try: import winsdk.windows.data.json except Exception: pass try: import winsdk.windows.foundation except Exception: pa...
27.192308
86
0.821782
3126a67de4cbe3d84417e240219b023f125f886a
33,084
py
Python
eth/vm/base.py
jmcph4/py-evm
0cd3ebac9c7c336b07f2f52c52b069fbe400bcef
[ "MIT" ]
null
null
null
eth/vm/base.py
jmcph4/py-evm
0cd3ebac9c7c336b07f2f52c52b069fbe400bcef
[ "MIT" ]
null
null
null
eth/vm/base.py
jmcph4/py-evm
0cd3ebac9c7c336b07f2f52c52b069fbe400bcef
[ "MIT" ]
null
null
null
from __future__ import absolute_import from abc import ( ABC, abstractmethod, ) import contextlib import itertools import logging from typing import ( Any, Iterable, Iterator, Optional, Tuple, Type, ) from typing import Set # noqa: F401 from eth_hash.auto import keccak from eth_typing ...
34.002055
100
0.585812
c1dffddd6ca38be644407b69416dbe4610a1ddda
2,893
py
Python
chunkymonkey/controllers/view.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
1
2016-10-24T15:16:26.000Z
2016-10-24T15:16:26.000Z
chunkymonkey/controllers/view.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
null
null
null
chunkymonkey/controllers/view.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
null
null
null
# # Copyright 2011 Shopzilla.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this 1 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...
28.087379
139
0.649499
5d4b2d2aa0efc0b73ec266389a5823dab91c820d
20,208
py
Python
Lib/test/test_asyncio/test_futures.py
ralic/python3.62mac
6f18095357e354a7b0be47909a9914fa418241f2
[ "PSF-2.0" ]
8
2018-12-06T05:18:14.000Z
2021-01-21T21:28:26.000Z
Lib/test/test_asyncio/test_futures.py
ralic/python3.62mac
6f18095357e354a7b0be47909a9914fa418241f2
[ "PSF-2.0" ]
null
null
null
Lib/test/test_asyncio/test_futures.py
ralic/python3.62mac
6f18095357e354a7b0be47909a9914fa418241f2
[ "PSF-2.0" ]
1
2020-12-01T04:20:38.000Z
2020-12-01T04:20:38.000Z
"""Tests for futures.py.""" import concurrent.futures import re import sys import threading import unittest from unittest import mock import asyncio from asyncio import test_utils from asyncio import futures try: from test import support except ImportError: from asyncio import test_support as support def _f...
32.178344
78
0.630097
7df8c5ef4fad2550d2fca5e5e012bd2062f7eb24
4,137
py
Python
edward2/tracers.py
FrancescoPinto/edward2
94c5ddbcbd08f9c8643dc8fb52672acb731eda6e
[ "Apache-2.0" ]
591
2019-08-13T20:48:00.000Z
2022-03-31T03:34:32.000Z
edward2/tracers.py
FrancescoPinto/edward2
94c5ddbcbd08f9c8643dc8fb52672acb731eda6e
[ "Apache-2.0" ]
162
2019-08-15T00:39:09.000Z
2022-03-25T07:19:15.000Z
edward2/tracers.py
FrancescoPinto/edward2
94c5ddbcbd08f9c8643dc8fb52672acb731eda6e
[ "Apache-2.0" ]
78
2019-08-13T20:45:13.000Z
2022-03-10T11:54:18.000Z
# coding=utf-8 # Copyright 2021 The Edward2 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...
32.574803
80
0.701716
611e7c14fa5e6f57c77ec8fdd9d11e4d4c8daf5a
2,386
py
Python
sk_qqdianzan.py
kaikai-sk/wechat_jump_game
708c5c5e7abb7a286a49d40543a9e7a1feaf7b15
[ "Apache-2.0" ]
null
null
null
sk_qqdianzan.py
kaikai-sk/wechat_jump_game
708c5c5e7abb7a286a49d40543a9e7a1feaf7b15
[ "Apache-2.0" ]
null
null
null
sk_qqdianzan.py
kaikai-sk/wechat_jump_game
708c5c5e7abb7a286a49d40543a9e7a1feaf7b15
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, division import os import time import datetime import re import cv2 from common.auto_adb import auto_adb VERSION = "1.1.4" scale = 1 # 加载QQ空间/微博/朋友圈中的那只点赞的手 template = cv2.imread('./resource/image/weibozan.png') template = cv2.resize(template, (0, 0), fx...
22.942308
105
0.597653
94343109adcb817f902d4906ad3b44f5ef17a01c
7,924
py
Python
tests/test_deployer.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
2
2018-08-30T14:14:13.000Z
2022-03-24T15:19:29.000Z
tests/test_deployer.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
null
null
null
tests/test_deployer.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Joseph Benden <joe@benden.us> # # 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...
35.061947
110
0.715169
b7309cf58bca94539f84c434814723fef52e8158
5,203
py
Python
var/spack/repos/builtin/packages/extrae/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2021-09-29T02:14:40.000Z
2022-01-27T20:50:36.000Z
var/spack/repos/builtin/packages/extrae/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-01-08T08:41:11.000Z
2022-03-14T19:28:07.000Z
var/spack/repos/builtin/packages/extrae/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "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 os from spack import * # typical working line with extrae 3.0.1 # ./configure # --prefix=/usr/local # --with-...
37.431655
95
0.625216
2a8a52201f92931c2bfd050abfacde64a449b9b9
5,740
py
Python
libs/datasets/cihp.py
htcr/deeplab-pytorch
8cea35415112fefb6a886d0d98ab64350ed09601
[ "MIT" ]
null
null
null
libs/datasets/cihp.py
htcr/deeplab-pytorch
8cea35415112fefb6a886d0d98ab64350ed09601
[ "MIT" ]
null
null
null
libs/datasets/cihp.py
htcr/deeplab-pytorch
8cea35415112fefb6a886d0d98ab64350ed09601
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Author: Congrui Hetang # URL: https://github.com/htcr # Date: 21 March 2019 from __future__ import absolute_import, print_function import os.path as osp import cv2 import numpy as np import torch from PIL import Image from torch.utils import data from .base import _Bas...
35
119
0.564286
92543efbd95ac52382e375700ccdcd5a85dc39de
3,220
py
Python
libqtile/configurable.py
body20002/qtile
e0f1968a96e9acf2b6c9562fae44802ffc9951ec
[ "MIT" ]
null
null
null
libqtile/configurable.py
body20002/qtile
e0f1968a96e9acf2b6c9562fae44802ffc9951ec
[ "MIT" ]
null
null
null
libqtile/configurable.py
body20002/qtile
e0f1968a96e9acf2b6c9562fae44802ffc9951ec
[ "MIT" ]
null
null
null
# Copyright (c) 2012, Tycho Andersen. All rights reserved. # # 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, including without limitation the rights # to use, copy, modif...
37.44186
81
0.679814
198c537fa942689cf15793a506c73b523478550e
4,936
py
Python
code/align.py
s231644/IMSurReal
186a9f72bdf1b5319d1a4b37f5d5cd160ebbd36d
[ "MIT" ]
null
null
null
code/align.py
s231644/IMSurReal
186a9f72bdf1b5319d1a4b37f5d5cd160ebbd36d
[ "MIT" ]
null
null
null
code/align.py
s231644/IMSurReal
186a9f72bdf1b5319d1a4b37f5d5cd160ebbd36d
[ "MIT" ]
null
null
null
import sys import random import Levenshtein from code.data import read_conllu, Token def check_constraints(pairs): fdict = {k['tid']:v for k,v in pairs} for t, u in pairs: try: domain = sorted(t['domain'], key=lambda x: fdict[x['tid']]['tid']) except: print(t['domain']...
34.277778
117
0.476094
2668c0cecfcae065d3f68a7bd5c5563519676a40
6,099
py
Python
tests/components/google_assistant/test_smart_home.py
patrickeasters/home-assistant
1d579587c1d6605f144fb98f23935d7a40993660
[ "Apache-2.0" ]
null
null
null
tests/components/google_assistant/test_smart_home.py
patrickeasters/home-assistant
1d579587c1d6605f144fb98f23935d7a40993660
[ "Apache-2.0" ]
null
null
null
tests/components/google_assistant/test_smart_home.py
patrickeasters/home-assistant
1d579587c1d6605f144fb98f23935d7a40993660
[ "Apache-2.0" ]
null
null
null
"""The tests for the Google Actions component.""" # pylint: disable=protected-access import asyncio from homeassistant import const from homeassistant.components import climate from homeassistant.components import google_assistant as ga from homeassistant.util.unit_system import (IMPERIAL_SYSTEM, METRIC_SYSTEM) DETER...
30.193069
76
0.606329
cfae1782eb3bcf5b2ef68983de690bf8ef1e599b
495
py
Python
covimerage/logger.py
hattya/covimerage
47805d9d7933b7960443bfd55d6214833d6aa0ed
[ "MIT" ]
45
2017-09-24T02:25:38.000Z
2022-02-17T08:53:46.000Z
covimerage/logger.py
hattya/covimerage
47805d9d7933b7960443bfd55d6214833d6aa0ed
[ "MIT" ]
87
2017-09-24T00:07:01.000Z
2022-03-28T04:09:19.000Z
covimerage/logger.py
hattya/covimerage
47805d9d7933b7960443bfd55d6214833d6aa0ed
[ "MIT" ]
8
2017-10-03T19:41:14.000Z
2020-01-30T02:58:42.000Z
import logging import sys logger = logging.getLogger('covimerage') logger.setLevel(logging.INFO) class AlwaysStderrHandler(logging.StreamHandler): def __init__(self, level=logging.NOTSET): logging.Handler.__init__(self, level) @property def stream(self): return sys.stderr def handle...
22.5
60
0.729293
dbe8a2ca6b545a940a1f69a127887e118f9772bb
2,391
py
Python
chattenge/users/tests/test_views.py
kvaldivia/chattenge
c307657a3f91a982882f0942bd27320e0736420e
[ "BSD-3-Clause" ]
null
null
null
chattenge/users/tests/test_views.py
kvaldivia/chattenge
c307657a3f91a982882f0942bd27320e0736420e
[ "BSD-3-Clause" ]
2
2022-03-01T04:05:25.000Z
2022-03-02T04:04:56.000Z
chattenge/users/tests/test_views.py
kvaldivia/chattenge
c307657a3f91a982882f0942bd27320e0736420e
[ "BSD-3-Clause" ]
null
null
null
import pytest from django.contrib.auth.models import AnonymousUser from django.http.response import Http404 from django.test import RequestFactory from chattenge.users.models import User from chattenge.users.tests.factories import UserFactory from chattenge.users.views import ( UserRedirectView, UserUpdateView...
29.8875
74
0.673777
01f6bc20f41997bd4fe788fbc1a367ca5549c82b
144,675
py
Python
src/config/fabric-ansible/ansible-playbooks/filter_plugins/fabric.py
leibaihuan/tf-controller-master
7276b83fc159af63a8055ae31b8a5130c50e33d8
[ "Apache-2.0" ]
null
null
null
src/config/fabric-ansible/ansible-playbooks/filter_plugins/fabric.py
leibaihuan/tf-controller-master
7276b83fc159af63a8055ae31b8a5130c50e33d8
[ "Apache-2.0" ]
null
null
null
src/config/fabric-ansible/ansible-playbooks/filter_plugins/fabric.py
leibaihuan/tf-controller-master
7276b83fc159af63a8055ae31b8a5130c50e33d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2018 Juniper Networks, Inc. All rights reserved. # # This file contains implementation for fabric related Ansible filter plugins # from __future__ import print_function import argparse from builtins import object from builtins import range from builtins import str import copy import...
38.901586
121
0.546107
769ddaea27743277efdd208b684ee05a35326c02
87,750
py
Python
nova/tests/test_db_api.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
1
2021-04-18T15:23:15.000Z
2021-04-18T15:23:15.000Z
nova/tests/test_db_api.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
null
null
null
nova/tests/test_db_api.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # encoding=UTF8 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file ...
44.385432
79
0.60514
7934ee181f5cf7eeeca1ef843d177d33ce41058c
7,752
py
Python
2020-06-01/openn-manuscript-reader-compatible.py
python-for-humanists-penn/python-for-humanists-penn.github.io
45e0c6d7d5151195e0a5efeddfed9bf5687986be
[ "MIT" ]
2
2019-04-11T18:14:43.000Z
2019-05-10T02:32:51.000Z
2020-06-01/openn-manuscript-reader-compatible.py
python-for-humanists-penn/python-for-humanists-penn.github.io
45e0c6d7d5151195e0a5efeddfed9bf5687986be
[ "MIT" ]
null
null
null
2020-06-01/openn-manuscript-reader-compatible.py
python-for-humanists-penn/python-for-humanists-penn.github.io
45e0c6d7d5151195e0a5efeddfed9bf5687986be
[ "MIT" ]
3
2018-02-18T04:53:16.000Z
2019-04-25T19:20:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Feb 10 12:33:00 2020 @author: davidnelson """ # test using LJS465, collection ID 0001 # download images and metadata X # run via wget using subprocess run() to get images X # $ wget -nd -np -r -A_web.jpg -A.xml -P openn/ljs225 \ # http://openn.li...
28.925373
157
0.655573
45fe774edeb9f9944b6fff86f865371321aba7a8
547
py
Python
hesabres/basics/migrations/0002_auto_20200706_0023.py
Sepehr-Al/hesabres
5a7b9df468a95f1e96d76df136ec15fbbab20bca
[ "MIT" ]
null
null
null
hesabres/basics/migrations/0002_auto_20200706_0023.py
Sepehr-Al/hesabres
5a7b9df468a95f1e96d76df136ec15fbbab20bca
[ "MIT" ]
null
null
null
hesabres/basics/migrations/0002_auto_20200706_0023.py
Sepehr-Al/hesabres
5a7b9df468a95f1e96d76df136ec15fbbab20bca
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-05 19:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('basics', '0001_initial'), ] operations = [ migrations.AlterField( model_name='menu', name='discount', fi...
22.791667
63
0.572212
9e21857c2c55cce341ac723273aea8fb41926f2b
12,463
py
Python
docfish/apps/main/views/describe.py
vsoch/wordfish
effa923cf7f41dedd4625f247a8a99a1f71d21a1
[ "MIT" ]
null
null
null
docfish/apps/main/views/describe.py
vsoch/wordfish
effa923cf7f41dedd4625f247a8a99a1f71d21a1
[ "MIT" ]
7
2017-04-27T00:04:36.000Z
2017-05-15T15:44:40.000Z
docfish/apps/main/views/describe.py
vsoch/wordfish
effa923cf7f41dedd4625f247a8a99a1f71d21a1
[ "MIT" ]
1
2021-08-14T05:09:14.000Z
2021-08-14T05:09:14.000Z
''' describe views Copyright (c) 2017 Vanessa Sochat 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, including without limitation the rights to use, copy, modify, merge, pub...
41.962963
106
0.574902
6e905837e45b406e6792be650de33ed34423db09
1,038
py
Python
samples/test/fail_parameter_value_missing.py
votti/pipelines
1c3e2768e6177d5d6e3f4b8eff8fafb9a3b76c1f
[ "Apache-2.0" ]
1
2022-03-30T05:22:19.000Z
2022-03-30T05:22:19.000Z
samples/test/fail_parameter_value_missing.py
votti/pipelines
1c3e2768e6177d5d6e3f4b8eff8fafb9a3b76c1f
[ "Apache-2.0" ]
1
2020-02-06T12:53:44.000Z
2020-02-06T12:53:44.000Z
samples/test/fail_parameter_value_missing.py
votti/pipelines
1c3e2768e6177d5d6e3f4b8eff8fafb9a3b76c1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow 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 or agreed to in...
28.054054
91
0.735067
d38327141636d1567b42279ed3a8c0aecedd9c07
4,275
py
Python
utils.py
supachaic/techjam_online_audition
df6f383e8e70776cb57fde1d0c2aff65de401418
[ "MIT" ]
3
2018-08-05T13:10:04.000Z
2020-01-12T10:50:37.000Z
utils.py
supachaic/techjam_online_audition
df6f383e8e70776cb57fde1d0c2aff65de401418
[ "MIT" ]
null
null
null
utils.py
supachaic/techjam_online_audition
df6f383e8e70776cb57fde1d0c2aff65de401418
[ "MIT" ]
null
null
null
import os import json import datetime import numpy as np import pandas as pd from sklearn.metrics import accuracy_score, recall_score, cohen_kappa_score from sklearn.metrics import precision_score, f1_score, roc_auc_score def write_result(predict, label_list, timestamp): save_path = 'results/' file...
28.885135
75
0.606316
abd2a1452485f3238cf7da8a404309cf3b7461c7
15,724
py
Python
improver/generate_ancillaries/generate_timezone_mask.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
improver/generate_ancillaries/generate_timezone_mask.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
improver/generate_ancillaries/generate_timezone_mask.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown copyright. The Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
40.630491
88
0.62942
2d8d1b3f4373d96dc7426eb31af4fb45fd529f84
1,339
py
Python
.github/make_badges.py
NathanY3G/raspberrypi-pio-poc
97a19174666bd8cb820ca825390b10d3dfeacd75
[ "Apache-2.0" ]
6
2021-05-24T08:08:37.000Z
2022-02-16T05:28:06.000Z
.github/make_badges.py
NathanY3G/rp2040-pio-emulator
97a19174666bd8cb820ca825390b10d3dfeacd75
[ "Apache-2.0" ]
null
null
null
.github/make_badges.py
NathanY3G/rp2040-pio-emulator
97a19174666bd8cb820ca825390b10d3dfeacd75
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Nathan Young # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
29.755556
75
0.725915
35715caec4bcd68b38011ec97d73a1877b43104b
1,484
py
Python
setup.py
iknite/rudolf
4a33a26a3aff867846db46c6fb82dc5b3f04aace
[ "ZPL-2.1" ]
1
2019-05-01T05:57:10.000Z
2019-05-01T05:57:10.000Z
setup.py
iknite/rudolf
4a33a26a3aff867846db46c6fb82dc5b3f04aace
[ "ZPL-2.1" ]
null
null
null
setup.py
iknite/rudolf
4a33a26a3aff867846db46c6fb82dc5b3f04aace
[ "ZPL-2.1" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name="rudolf", version="0.4", download_url="http://pypi.python.org/pypi/rudolf/", description="Colour output plugin for the nose testing framework", author="John J. Lee", author_email="jjl@pobox.com", license="ZPL 2.1", platfor...
29.68
79
0.66442
0bf3cc572f13c67b4b1f4f2eb39a0b4b4f49ea51
843
py
Python
kmp.py
ejydavis/pattern-search-py
f0f0b1346a8e3742111e27974dbc98ba3437f521
[ "MIT" ]
null
null
null
kmp.py
ejydavis/pattern-search-py
f0f0b1346a8e3742111e27974dbc98ba3437f521
[ "MIT" ]
null
null
null
kmp.py
ejydavis/pattern-search-py
f0f0b1346a8e3742111e27974dbc98ba3437f521
[ "MIT" ]
null
null
null
# Knuth Morris Pratt, Pattern Searching # O(n) in worst case def KMPPreprocessing(pat): matches = 0 lps = [0] for i in range(1, len(pat)): if pat[i] == pat[i-1]: matches += 1 lps[i] = matches else: if matches != 0: matches = lps[matches-1] ...
19.604651
47
0.419929
4486cfa452986dad32ec431c1839636bf46b3d9d
7,475
py
Python
serpent/game_agent.py
meongithub/SerpentAI
3bdb7926a0ce9d081e52a821d44ed0e86d70b6b8
[ "MIT" ]
1
2020-07-11T18:28:26.000Z
2020-07-11T18:28:26.000Z
serpent/game_agent.py
meongithub/SerpentAI
3bdb7926a0ce9d081e52a821d44ed0e86d70b6b8
[ "MIT" ]
null
null
null
serpent/game_agent.py
meongithub/SerpentAI
3bdb7926a0ce9d081e52a821d44ed0e86d70b6b8
[ "MIT" ]
null
null
null
import offshoot from serpent.config import config import time import uuid import pickle import os import os.path import serpent.cv import serpent.ocr import serpent.utilities from serpent.frame_grabber import FrameGrabber from serpent.game_frame_buffer import GameFrameBuffer from serpent.sprite_identifier import S...
34.606481
122
0.694448
9dc650fcf47735506cbac6daa4854a912809d506
1,200
py
Python
Funhouse_Door_Alert/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
Funhouse_Door_Alert/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
Funhouse_Door_Alert/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # SPDX-FileCopyrightText: Copyright (c) 2021 Melissa LeBlanc-Williams & John Park for Adafruit # # SPDX-License-Identifier: MIT import board from digitalio import DigitalInOut, Direction, Pull from adafruit_funhouse import FunHouse from ad...
25.531915
94
0.740833
de348f896e6462fa7c2e4d54846f9a204d8f4e3b
2,406
py
Python
mlchain/cache/remote.py
Nguyen-ATrung/mlchain-public-dev
7d5609d4d556e706e67d8759f2be7ffd55b25557
[ "MIT" ]
1
2020-08-26T03:35:39.000Z
2020-08-26T03:35:39.000Z
mlchain/cache/remote.py
Nguyen-ATrung/mlchain-public-dev
7d5609d4d556e706e67d8759f2be7ffd55b25557
[ "MIT" ]
4
2021-03-25T23:55:12.000Z
2022-03-12T00:36:03.000Z
mlchain/cache/remote.py
attrung/mlchain-public-travisci-test
9dca6ad2e05ae85068e2ca09f7bce2dc1bc916fa
[ "MIT" ]
1
2020-08-12T08:34:42.000Z
2020-08-12T08:34:42.000Z
from cachetools import Cache from redis import StrictRedis import pickle import atexit import time from mlchain.config import redis_config class RedisCache(Cache): def __init__(self, maxsize, client=None, host=None, port=None, password=None, db=None, ttl=15 * 60, clear_on_exit=False, ...
28.987952
106
0.567332
1de12771de49104b6bee56345200209702a3bcde
17,741
py
Python
packages/w3af/w3af/core/data/parsers/utils/tests/test_form_params.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/data/parsers/utils/tests/test_form_params.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/data/parsers/utils/tests/test_form_params.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the h...
39.163355
99
0.578265
01bff2d4e61fc542597beccf484a3cf1425ac430
8,000
py
Python
src/modlunky2/ui/pack.py
Nobledez/modlunky2
34052d963bdc2f7aeeea38a75c72afb0ccd6a24c
[ "Apache-2.0" ]
null
null
null
src/modlunky2/ui/pack.py
Nobledez/modlunky2
34052d963bdc2f7aeeea38a75c72afb0ccd6a24c
[ "Apache-2.0" ]
null
null
null
src/modlunky2/ui/pack.py
Nobledez/modlunky2
34052d963bdc2f7aeeea38a75c72afb0ccd6a24c
[ "Apache-2.0" ]
null
null
null
import logging import shutil import tkinter as tk import webbrowser from pathlib import Path from tkinter import ttk from PIL import Image, ImageTk from modlunky2.assets.assets import AssetStore from modlunky2.assets.exc import MissingAsset from modlunky2.assets.hashing import md5sum_path from modlunky2.assets.patche...
34.782609
110
0.6015
c7f7d5a6f7212e8b43bcf5fee2e2968451215058
3,468
py
Python
manila/db/migrations/alembic/versions/e8ea58723178_remove_host_from_driver_private_data.py
mail2nsrajesh/manila
ec052a6cff2ddc722e3b78ab208801e6b94ab55a
[ "Apache-2.0" ]
null
null
null
manila/db/migrations/alembic/versions/e8ea58723178_remove_host_from_driver_private_data.py
mail2nsrajesh/manila
ec052a6cff2ddc722e3b78ab208801e6b94ab55a
[ "Apache-2.0" ]
null
null
null
manila/db/migrations/alembic/versions/e8ea58723178_remove_host_from_driver_private_data.py
mail2nsrajesh/manila
ec052a6cff2ddc722e3b78ab208801e6b94ab55a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 EMC 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...
32.111111
78
0.642734
b8191f59b501eec7499b52d7fa9642dd2bb3692f
23
py
Python
python-midonetclient/src/midonetclient/__init__.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
19
2015-04-13T06:52:38.000Z
2018-04-12T07:08:30.000Z
python-midonetclient/src/midonetclient/__init__.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
14
2015-04-12T12:28:18.000Z
2019-02-06T20:54:33.000Z
python-midonetclient/src/midonetclient/__init__.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
3
2015-09-07T10:01:31.000Z
2016-10-11T09:42:05.000Z
__version__ = "master"
11.5
22
0.73913