hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
cf5f57c54695b2726f5512f5d89c6a05d0d7b355
23,158
py
Python
demos/python_demos/face_recognition_demo_Azure_IoT/face_recognition_demo.py
henry1758f/open_model_zoo
a436ece4dc3610f03b080ddc03139cd632644b68
[ "Apache-2.0" ]
null
null
null
demos/python_demos/face_recognition_demo_Azure_IoT/face_recognition_demo.py
henry1758f/open_model_zoo
a436ece4dc3610f03b080ddc03139cd632644b68
[ "Apache-2.0" ]
null
null
null
demos/python_demos/face_recognition_demo_Azure_IoT/face_recognition_demo.py
henry1758f/open_model_zoo
a436ece4dc3610f03b080ddc03139cd632644b68
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import logging as log import os.path as osp import sys import time from argparse import ArgumentParser import cv2 import numpy as np # Azure IoT import random import time # Using the Python Device SDK for IoT Hub: # https://github.com/Azure/azure-iot-sdk-python # The sample connects to a devi...
43.448405
167
0.594913
c03af9793aeefbf4b401a4924fecc61dddae2178
11,348
py
Python
flask1/.venv/Lib/site-packages/pip/_vendor/urllib3/contrib/appengine.py
kerwin-yang-yang/Bigplatform
575ebb3c494ce28e820ab5ad0a91f194451eec76
[ "MIT" ]
32
2021-05-03T09:03:57.000Z
2022-03-17T09:18:59.000Z
flask1/.venv/Lib/site-packages/pip/_vendor/urllib3/contrib/appengine.py
kerwin-yang-yang/Bigplatform
575ebb3c494ce28e820ab5ad0a91f194451eec76
[ "MIT" ]
4
2021-05-29T20:42:52.000Z
2022-03-16T03:01:12.000Z
flask1/.venv/Lib/site-packages/pip/_vendor/urllib3/contrib/appengine.py
kerwin-yang-yang/Bigplatform
575ebb3c494ce28e820ab5ad0a91f194451eec76
[ "MIT" ]
27
2021-11-10T08:44:10.000Z
2022-03-30T08:19:46.000Z
""" This module provides a pool manager that uses Google App Engine's `URLFetch Service <https://cloud.google.com/appengine/docs/python/urlfetch>`_. Example usage:: from pip._vendor.urllib3 import PoolManager from pip._vendor.urllib3.contrib.appengine import AppEngineManager, is_appengine_sandbox ...
36.025397
93
0.611738
83c3da5c2411376f5e209b026cffab813e15548a
1,060
py
Python
livefeedback_hub/db.py
fritterhoff/livefeedback-hub
c737baf9d7564ca54cdfe89671b60ac224f481af
[ "BSD-3-Clause" ]
3
2021-06-30T14:30:30.000Z
2021-09-12T08:32:00.000Z
livefeedback_hub/db.py
fritterhoff/livefeedback-hub
c737baf9d7564ca54cdfe89671b60ac224f481af
[ "BSD-3-Clause" ]
66
2021-09-11T12:45:45.000Z
2022-03-31T20:45:58.000Z
livefeedback_hub/db.py
fritterhoff/livefeedback-hub
c737baf9d7564ca54cdfe89671b60ac224f481af
[ "BSD-3-Clause" ]
null
null
null
import enum from sqlalchemy import Column from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from sqlalchemy.schema import UniqueConstraint from sqlalchemy.sql.schema import ForeignKey from sqlalchemy.types import BLOB, Enum, Integer, String Base = declarative_base() GUID...
25.853659
87
0.712264
2dc0d3afc39cb5a4b3284c7e1ed687685d86afea
77
py
Python
deepracer/utils.py
eedlez/deepracer-utils
dadb932677796d8ab54936b0620c2217ca0e4458
[ "MIT-0" ]
2
2020-03-11T22:01:19.000Z
2020-05-10T21:16:41.000Z
deepracer/utils.py
eedlez/deepracer-utils
dadb932677796d8ab54936b0620c2217ca0e4458
[ "MIT-0" ]
14
2021-01-24T17:33:12.000Z
2022-03-16T08:39:43.000Z
deepracer/utils.py
eedlez/deepracer-utils
dadb932677796d8ab54936b0620c2217ca0e4458
[ "MIT-0" ]
10
2020-03-24T08:11:01.000Z
2022-03-09T04:25:56.000Z
import os DEEPRACER_UTILS_ROOT = os.path.dirname(os.path.abspath(__file__))
19.25
65
0.805195
121f976cf1fb7efb2993f5d0af29d2f02858d9ba
1,521
py
Python
classifier/compute_normalization_coefficients.py
theovincent/birdClassification
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
[ "MIT" ]
null
null
null
classifier/compute_normalization_coefficients.py
theovincent/birdClassification
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
[ "MIT" ]
null
null
null
classifier/compute_normalization_coefficients.py
theovincent/birdClassification
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
[ "MIT" ]
null
null
null
import sys import numpy as np from tqdm import tqdm from classifier.loader import loader def compute_normalization_coefficients_cli(argvs=sys.argv[1:]): import argparse parser = argparse.ArgumentParser("Pipeline to get the normalization coefficients.") parser.add_argument( "-ptn", "--pa...
31.040816
113
0.65023
f186322ad047435a3f28856b40eee31364730ca3
3,557
py
Python
extract_features.py
AbhinavDS/mac-network
fe92fa5a30d5a428f31b05d01072b654bb720860
[ "Apache-2.0" ]
481
2018-04-14T21:02:16.000Z
2022-03-17T05:41:07.000Z
extract_features.py
AbhinavDS/mac-network
fe92fa5a30d5a428f31b05d01072b654bb720860
[ "Apache-2.0" ]
46
2018-05-03T03:40:16.000Z
2021-11-21T03:54:55.000Z
extract_features.py
AbhinavDS/mac-network
fe92fa5a30d5a428f31b05d01072b654bb720860
[ "Apache-2.0" ]
141
2018-04-16T16:42:06.000Z
2022-03-01T21:45:27.000Z
# Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import argparse, os, json import h5py import numpy as np from scipy.misc import imread, imresize import torch import torchvision p...
31.201754
69
0.663762
2b0ed19c84e87894d58988dd09540abe0db377f7
2,339
py
Python
jenkinsapi/__init__.py
imsardine/jenkinsapi
d4bfac62a4d01394ff41540c4d8d897ab566f4eb
[ "MIT" ]
null
null
null
jenkinsapi/__init__.py
imsardine/jenkinsapi
d4bfac62a4d01394ff41540c4d8d897ab566f4eb
[ "MIT" ]
null
null
null
jenkinsapi/__init__.py
imsardine/jenkinsapi
d4bfac62a4d01394ff41540c4d8d897ab566f4eb
[ "MIT" ]
null
null
null
""" About this library ================== Jenkins is the market leading continuous integration system, originally created by Kohsuke Kawaguchi. This API makes Jenkins even easier to use by providing an easy to use conventional python interface. Jenkins (and It's predecessor Hudson) are fantastic projects - but they a...
32.041096
104
0.743908
02a4e38fa8003b572f715348b5193d987aa9273c
496
py
Python
scripts/takesystem/takesystem_LoopTakes.py
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
113
2015-12-11T11:00:49.000Z
2022-03-27T01:33:12.000Z
scripts/takesystem/takesystem_LoopTakes.py
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
3
2016-04-04T12:45:28.000Z
2019-04-12T08:33:38.000Z
scripts/takesystem/takesystem_LoopTakes.py
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
50
2015-11-16T11:13:02.000Z
2022-03-26T07:05:25.000Z
import c4d from c4d import gui #Author: s_bach #TakeSystem Example def main(): takeData = doc.GetTakeData() if takeData is None: return # This example loops through all takes that are direct child takes of the main take. mainTake = takeData.GetMainTake() take = mainTake.G...
18.37037
88
0.600806
eb5deb2fd096e39013a31d07ce4b699f978f83a4
166
py
Python
solutions/python3/345.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/345.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/345.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def reverseVowels(self, s): r = [c for c in s if c in "aeiouAEIOU"] return "".join(c in "aeiouAEIOU" and r.pop() or c for c in s)
41.5
70
0.590361
06638e11c9ac97a1a5636349fb84ff1ceab03f61
293
py
Python
src/collect_drugs/pipelines.py
ianshan0915/ade-extraction
c18b157c90d2ea3903a0340eb2b600990411f21c
[ "MIT" ]
1
2019-05-28T10:23:19.000Z
2019-05-28T10:23:19.000Z
src/collect_drugs/pipelines.py
ianshan0915/ade-extraction
c18b157c90d2ea3903a0340eb2b600990411f21c
[ "MIT" ]
null
null
null
src/collect_drugs/pipelines.py
ianshan0915/ade-extraction
c18b157c90d2ea3903a0340eb2b600990411f21c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class CollectDrugsPipeline(object): def process_item(self, item, spider): return item
24.416667
65
0.716724
661da15337ac41af483c1e639e186c3b112a8ebf
5,699
py
Python
kingfisher_scrapy/spiders/armenia.py
open-contracting/kingfisher-scrape
88b818a97d9d28b1ab241f5a6459b324b39a566b
[ "BSD-3-Clause" ]
1
2019-05-19T11:50:12.000Z
2019-05-19T11:50:12.000Z
kingfisher_scrapy/spiders/armenia.py
open-contracting/kingfisher-scrape
88b818a97d9d28b1ab241f5a6459b324b39a566b
[ "BSD-3-Clause" ]
234
2019-01-15T16:30:24.000Z
2020-04-27T22:01:10.000Z
kingfisher_scrapy/spiders/armenia.py
open-contracting/kingfisher-scrape
88b818a97d9d28b1ab241f5a6459b324b39a566b
[ "BSD-3-Clause" ]
4
2019-02-01T09:11:17.000Z
2019-07-12T10:52:39.000Z
import scrapy from kingfisher_scrapy.base_spiders import LinksSpider from kingfisher_scrapy.util import get_parameter_value, parameters, replace_parameters MILLISECONDS_PER_DAY = 86400000 EXPONENT_LIMIT = 10 # 1024 days THRESHOLD = 2700000 # 45 minutes / 5 iterations within 1 day class Armenia(LinksSpider): "...
51.809091
119
0.66152
cf460b02039f14a38f04738ceb2de722bdfe5185
3,611
py
Python
python/tests/temperatures_integration_test.py
Bengt/FanControl
6b3958230e5eacf175e84d9a5927d74cd3f6b83a
[ "MIT" ]
9
2015-11-25T13:39:22.000Z
2018-10-16T21:09:10.000Z
python/tests/temperatures_integration_test.py
Bengt/FanControl
6b3958230e5eacf175e84d9a5927d74cd3f6b83a
[ "MIT" ]
6
2019-07-04T13:45:08.000Z
2022-01-15T18:30:10.000Z
python/tests/temperatures_integration_test.py
Bengt/FanControl
6b3958230e5eacf175e84d9a5927d74cd3f6b83a
[ "MIT" ]
3
2020-08-12T13:31:50.000Z
2021-06-16T22:12:20.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) from unittest.case import TestCase from fancontrol.sense import temperatures class NoneTests(TestCase): def test_get_temps_None_only(self): chips = [None] features = [None] temps...
33.435185
70
0.640266
8e0fa36787c7ac3f7623e1ec97a78603a8ac1faf
2,674
py
Python
examples/Python/Basic/mesh_sampling.py
Forest75/Open3D
61b90a6e06a2c209ad2b9f1c57fbd5f21e879dae
[ "MIT" ]
7
2018-02-01T02:52:38.000Z
2021-09-28T08:40:09.000Z
examples/Python/Basic/mesh_sampling.py
Forest75/Open3D
61b90a6e06a2c209ad2b9f1c57fbd5f21e879dae
[ "MIT" ]
1
2020-03-21T09:27:50.000Z
2020-03-21T12:31:24.000Z
examples/Python/Basic/mesh_sampling.py
Forest75/Open3D
61b90a6e06a2c209ad2b9f1c57fbd5f21e879dae
[ "MIT" ]
4
2018-04-02T08:19:10.000Z
2020-02-29T07:07:22.000Z
# Open3D: www.open3d.org # The MIT License (MIT) # See license file or visit www.open3d.org for details # examples/Python/Basic/mesh_sampling.py import numpy as np import time import open3d as o3d import os import sys dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(dir_path, '../M...
34.727273
88
0.703441
13b08f8ef828b4a919fc7a2d4f959d28646f073a
2,697
py
Python
kinto/core/cache/__init__.py
hafeez3000/kinto
2b741cf3f34dbb532b595caa4dbb9de2a991938d
[ "Apache-2.0" ]
null
null
null
kinto/core/cache/__init__.py
hafeez3000/kinto
2b741cf3f34dbb532b595caa4dbb9de2a991938d
[ "Apache-2.0" ]
null
null
null
kinto/core/cache/__init__.py
hafeez3000/kinto
2b741cf3f34dbb532b595caa4dbb9de2a991938d
[ "Apache-2.0" ]
null
null
null
import random from kinto.core.logs import logger _HEARTBEAT_DELETE_RATE = 0.5 _HEARTBEAT_KEY = '__heartbeat__' _HEARTBEAT_TTL_SECONDS = 3600 class CacheBase(object): def __init__(self, *args, **kwargs): self.prefix = kwargs['cache_prefix'] self.max_size_bytes = kwargs.get('cache_max_size_bytes...
27.804124
76
0.611049
b679a05d9c168844313b0ee2adc09e17349661b7
2,320
py
Python
agent/agent/runner/base.py
NeolithEra/arxiv-submission-core
d4f20be62a882d2d5f3d1584eda69e7d90ca2c12
[ "MIT" ]
14
2019-05-26T22:52:17.000Z
2021-11-05T12:26:46.000Z
agent/agent/runner/base.py
NeolithEra/arxiv-submission-core
d4f20be62a882d2d5f3d1584eda69e7d90ca2c12
[ "MIT" ]
30
2018-01-31T19:16:08.000Z
2018-12-08T08:41:04.000Z
agent/agent/runner/base.py
NeolithEra/arxiv-submission-core
d4f20be62a882d2d5f3d1584eda69e7d90ca2c12
[ "MIT" ]
8
2019-01-10T22:01:39.000Z
2021-11-20T21:44:51.000Z
"""Provides a base implementation of a process runner.""" from typing import Optional, Any, Callable from retry.api import retry_call from arxiv.submission.domain.submission import Submission from arxiv.submission.domain.event import Event from arxiv.submission.domain.agent import Agent from arxiv.submission import ...
38.032787
77
0.628879
810523a2d52f9ea09397eb55e360d811b4d3015d
12,999
py
Python
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_currency_dependent_estimates_currency.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_currency_dependent_estimates_currency.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_currency_dependent_estimates_currency.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Stocks API For Digital Portals The stocks API features a screener to search for equity instruments based on stock-specific parameters. Parameters for up to three fiscal years might now be used in one request; data is available for the ten most recent completed fiscal years. Estimates are available for the...
48.503731
1,585
0.6022
0653c598353811f9ee3f4f8880f80631c45ff923
556
py
Python
MultiSC/MultiServer/protocols/protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
8
2019-05-25T21:17:07.000Z
2020-10-18T11:46:12.000Z
MultiSC/MultiServer/protocols/protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
1
2019-05-25T21:28:06.000Z
2019-05-25T21:28:06.000Z
MultiSC/MultiServer/protocols/protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
null
null
null
from __config__.protocol_code_config import arg_not_found class Protocol: def __init__(self, name, functions): self.name = name self.functions = functions def handle(self, query): function_name = query["function"] if function_name not in self.functions: query.add_e...
26.47619
81
0.620504
e05e88b90812bf873e44fedf4af6957765274398
173
py
Python
tests/test_server.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
tests/test_server.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
tests/test_server.py
waynew/todo-flask
3cb3c7b50e4c1b6370d63e21b23dca0ec56e9313
[ "BSD-2-Clause" ]
null
null
null
import unittest import todo.server as server class TestServer(unittest.TestCase): def test_a_thing(self): self.assertTrue(True, "Yeah, this was wrong anyway")
21.625
60
0.739884
30c7042e1ce20762d15eab1377c5ed54ff11aed0
591
py
Python
Source/Module/memory.py
Prodject/PcapXray
7f28233772ec7b97a7c600cfed3127923e897a09
[ "MIT" ]
null
null
null
Source/Module/memory.py
Prodject/PcapXray
7f28233772ec7b97a7c600cfed3127923e897a09
[ "MIT" ]
null
null
null
Source/Module/memory.py
Prodject/PcapXray
7f28233772ec7b97a7c600cfed3127923e897a09
[ "MIT" ]
null
null
null
#class memorySetting(): global packet_db packet_db = {} # Schema # Key for access is MAC Address/IP Address # * Initially had mac address (assuming unique) as the only key # - CTF problems sometime cause a scenario of same mac with different IP address so segregated this # * Otherwise each key holds # - Mac Vend...
22.730769
101
0.763113
fbf4e74f60f2629eb8be8cca26802045f43e39e8
5,648
py
Python
smartshark/forms.py
benjaminLedel/serverSHARK
97decc03ba7bde8ad9c5f55d446d21ed5a26709c
[ "Apache-2.0" ]
1
2019-11-09T21:18:05.000Z
2019-11-09T21:18:05.000Z
smartshark/forms.py
ArtyMandy/serverSHARK
7d3ce83c2bf310aeea7832dedbdaccd44ae7b1df
[ "Apache-2.0" ]
34
2017-09-28T12:38:15.000Z
2022-01-21T06:59:01.000Z
smartshark/forms.py
midasdev711/serverSHARK-backend
989f242c5454aaf913734cdb5779e90408be74cb
[ "Apache-2.0" ]
8
2018-05-23T12:46:45.000Z
2021-12-04T09:23:48.000Z
from difflib import SequenceMatcher from django.forms import HiddenInput from django.shortcuts import get_object_or_404 from form_utils.forms import BetterForm from server.base import SUBSTITUTIONS from .datacollection.pluginmanagementinterface import PluginManagementInterface from .models import Plugin, Argument, Ex...
45.918699
182
0.651204
cf0b22d7d446f8a202467e0cef7ac65bd2db76b5
16,629
py
Python
pytorch_lightning/loggers/base.py
wdmwhh/pytorch-lightning
5d10a36762776c4b6f6a9c55b4e6bf7bd258137f
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/loggers/base.py
wdmwhh/pytorch-lightning
5d10a36762776c4b6f6a9c55b4e6bf7bd258137f
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/loggers/base.py
wdmwhh/pytorch-lightning
5d10a36762776c4b6f6a9c55b4e6bf7bd258137f
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.861635
113
0.608275
62790fd3dcbf828ce9d424e125513fd58a594519
304
py
Python
search.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
search.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
search.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def getLastTweetId(api): timeline = api.home_timeline() return max([tweet.id for tweet in timeline]) def findDogPark(api, lastTweetId=None): if lastTweetId is None: lastTweetId = getLastTweetId(api) return api.search(q='#dogpark', since_id=lastTweetId)
25.333333
57
0.6875
6c836c6a20e0a0b3ca05914ee771005da8b6c85e
278
py
Python
tiler/test.py
LWollatz/MCTV-tiler
b847051325eb97fbbae990670259e6c598e6ad3e
[ "Apache-2.0" ]
null
null
null
tiler/test.py
LWollatz/MCTV-tiler
b847051325eb97fbbae990670259e6c598e6ad3e
[ "Apache-2.0" ]
null
null
null
tiler/test.py
LWollatz/MCTV-tiler
b847051325eb97fbbae990670259e6c598e6ad3e
[ "Apache-2.0" ]
null
null
null
points = [1,3,2,6,2,7,8,5,6,4,6,4,6,4,5,4,6,4,4,4,4,4,4,5,6,6,7,0,5,5] points.sort() print len(points) print int(0.1*len(points)), int(0.9*len(points)) print points[int(0.1*len(points))], points[int(0.9*len(points))] counts = [[x,points.count(x)] for x in points] print counts
30.888889
70
0.647482
8b6b3df4046622ac67bbed09d78322e022647440
14,460
py
Python
tf1x/vis/vis_corrupt.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2017-04-27T17:19:31.000Z
2021-11-07T03:37:59.000Z
tf1x/vis/vis_corrupt.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2018-03-21T01:16:25.000Z
2022-02-10T00:21:58.000Z
tf1x/vis/vis_corrupt.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2017-02-01T19:49:57.000Z
2021-12-08T03:16:58.000Z
import matplotlib matplotlib.use('Agg') import os import sys import numpy as np import matplotlib import matplotlib.pyplot as plt from matplotlib import ticker import matplotlib.gridspec as gridspec import skimage import seaborn as sn import pandas as pd import pickle ROOT_DIR = os.path.dirname(os.path.dirname(os.get...
32.494382
127
0.677109
d399a0cd2b79c4c14250dd4155f4d7d3a3f5b055
13,540
py
Python
tests/backends/test_db_url.py
wankata/tortoise-orm
677fa16431218d274c2a261dfb81124b6f6b2fe3
[ "Apache-2.0" ]
2,847
2018-08-27T12:02:21.000Z
2022-03-31T01:30:40.000Z
tests/backends/test_db_url.py
Tomes111/tortoise-orm
8b55499a228e44f33fec9099f4d559c77c73beb7
[ "Apache-2.0" ]
983
2018-08-24T16:42:41.000Z
2022-03-30T05:14:49.000Z
tests/backends/test_db_url.py
Tomes111/tortoise-orm
8b55499a228e44f33fec9099f4d559c77c73beb7
[ "Apache-2.0" ]
323
2018-09-04T23:38:42.000Z
2022-03-31T06:49:17.000Z
from tortoise.backends.base.config_generator import expand_db_url, generate_config from tortoise.contrib import test from tortoise.exceptions import ConfigurationError class TestConfigGenerator(test.SimpleTestCase): def test_unknown_scheme(self): with self.assertRaises(ConfigurationError): exp...
33.349754
98
0.412334
f23c44b62d0dc14dada68173ed5ec3fa43673094
89
py
Python
theblog/apps.py
kanovotn/turtles-blog
832d3c4771f4ec94326937ac765b1ceeb90b30b9
[ "MIT" ]
8
2021-10-01T13:29:58.000Z
2021-10-06T16:19:50.000Z
theblog/apps.py
kanovotn/turtles-blog
832d3c4771f4ec94326937ac765b1ceeb90b30b9
[ "MIT" ]
31
2021-09-30T17:45:36.000Z
2021-10-12T04:57:21.000Z
theblog/apps.py
kanovotn/turtles-blog
832d3c4771f4ec94326937ac765b1ceeb90b30b9
[ "MIT" ]
31
2021-09-30T19:49:54.000Z
2021-10-05T17:32:42.000Z
from django.apps import AppConfig class TheblogConfig(AppConfig): name = 'theblog'
14.833333
33
0.752809
46bb162a3d772600af171c3886560c71120dec00
571
py
Python
14-Python/Demos/Day-04/encapsulation_02.py
helghareeb/OSTrack2019
3ef5af0f56f8640e92c1f3c3b3d76b8df2783f48
[ "MIT" ]
5
2019-08-04T22:30:35.000Z
2020-02-24T11:18:22.000Z
14-Python/Demos/Day-04/encapsulation_02.py
helghareeb/OSTrack2019
3ef5af0f56f8640e92c1f3c3b3d76b8df2783f48
[ "MIT" ]
2
2019-08-11T21:51:32.000Z
2019-08-21T11:12:22.000Z
14-Python/Demos/Day-04/encapsulation_02.py
helghareeb/OSTrack2019
3ef5af0f56f8640e92c1f3c3b3d76b8df2783f48
[ "MIT" ]
14
2019-08-05T21:11:03.000Z
2019-09-29T16:05:52.000Z
# بسم الله الرحمن الرحيم # using property class Celsius: def __init__(self, temperature = 0): self.temperature = temperature def to_fahrenheit(self): return (self.temperature * 1.8) + 32 def get_temperature(self): print("Getting value") return self._temperature def s...
24.826087
70
0.654991
428661e38d16e6d02645f8c50e9e3210d5a1d8ce
2,773
py
Python
src/command_parser.py
matthewtwarren/SpotifyDJ
6cd65377138dc6b399e0c130a161cf8bca270c71
[ "MIT" ]
null
null
null
src/command_parser.py
matthewtwarren/SpotifyDJ
6cd65377138dc6b399e0c130a161cf8bca270c71
[ "MIT" ]
null
null
null
src/command_parser.py
matthewtwarren/SpotifyDJ
6cd65377138dc6b399e0c130a161cf8bca270c71
[ "MIT" ]
null
null
null
"""A command parser class to recieve and execute instructions via the command line""" from .playlist_library import PlaylistLibrary from .user_account import UserAccount class CommandException(Exception): pass class CommandParser: """A class to parse and execute user commands""" def __init__(self, playl...
37.986301
108
0.623152
7849ea62ea3726b4ccc03322ced96ca7aa5cdec6
615
py
Python
papery/site/statics.py
radonlab/papery
1ec8d844adb8cc76cd9ca86a7e5b13a2d1f8967a
[ "MIT" ]
null
null
null
papery/site/statics.py
radonlab/papery
1ec8d844adb8cc76cd9ca86a7e5b13a2d1f8967a
[ "MIT" ]
null
null
null
papery/site/statics.py
radonlab/papery
1ec8d844adb8cc76cd9ca86a7e5b13a2d1f8967a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2015, Radmon. Use of this source code is governed by the MIT license that can be found in the LICENSE file. """ from functools import partial from flask import url_for from .utils.avatar import url_for_avatar def url_for_static(name): return url_for('static', filename=na...
21.964286
66
0.691057
684e05aabd4b9b5c01ea40ce0830a9b9f2b31e8d
459
py
Python
039_problem.py
kupresanin99/euler
85a120e41cf0a526369887453777fdebc795bd2f
[ "MIT" ]
null
null
null
039_problem.py
kupresanin99/euler
85a120e41cf0a526369887453777fdebc795bd2f
[ "MIT" ]
null
null
null
039_problem.py
kupresanin99/euler
85a120e41cf0a526369887453777fdebc795bd2f
[ "MIT" ]
null
null
null
max_num = 0 max_count = 0 for p in range(1000, 1, -1): my_count = 0 for c in range(round(0.4 * p) + 1, round(0.5 * p)): remainder = p - c for b in range(1, int(remainder / 2 + 1)): a = p - c - b if a < c and b < c and a * a + b * b == c * c: my_count += 1 print(f"p={p}, c={c}, b=...
30.6
58
0.522876
70bc6d781081a457746cfdbaba59ec0ee3e5eb56
90
py
Python
AWS Lambda/AWSIoTPythonSDK/__init__.py
swizes/IoTWorkshopAmazonEcho
cea3666d343fb5a8b3d2cc223ee9da2478ce217e
[ "Apache-2.0" ]
1
2019-04-06T11:47:25.000Z
2019-04-06T11:47:25.000Z
AWS Lambda/AWSIoTPythonSDK/__init__.py
swizes/IoTWorkshopAmazonEcho
cea3666d343fb5a8b3d2cc223ee9da2478ce217e
[ "Apache-2.0" ]
null
null
null
AWS Lambda/AWSIoTPythonSDK/__init__.py
swizes/IoTWorkshopAmazonEcho
cea3666d343fb5a8b3d2cc223ee9da2478ce217e
[ "Apache-2.0" ]
1
2020-12-18T14:27:15.000Z
2020-12-18T14:27:15.000Z
import os import sys sys.path.insert(0, os.path.dirname(__file__)) __version__ = "1.0.0"
15
45
0.733333
677d4b997680cc9b07f149a2ace2703ada0c6457
5,133
py
Python
mysite_env/Lib/encodings/utf_32.py
Hongyil1/Django-learning-project
13d4a5731f81a538e91d8fc7fad0587245056aea
[ "Apache-2.0" ]
null
null
null
mysite_env/Lib/encodings/utf_32.py
Hongyil1/Django-learning-project
13d4a5731f81a538e91d8fc7fad0587245056aea
[ "Apache-2.0" ]
null
null
null
mysite_env/Lib/encodings/utf_32.py
Hongyil1/Django-learning-project
13d4a5731f81a538e91d8fc7fad0587245056aea
[ "Apache-2.0" ]
null
null
null
""" Python 'utf-32' Codec """ import codecs, sys ### Codec APIs encode = codecs.utf_32_encode def decode(input, errors='strict'): return codecs.utf_32_decode(input, errors, True) class IncrementalEncoder(codecs.IncrementalEncoder): def __init__(self, errors='strict'): codecs.IncrementalEncoder.__ini...
33.993377
75
0.602766
1f3cecd47d913c70f157d5df7e7ace2061a298c0
3,034
py
Python
tests/integration/docusaurus/connecting_to_your_data/database/mysql_yaml_example.py
benoitLebreton-perso/great_expectations
5f8856c9ab6e24e627c386c07ae56896b08403e5
[ "Apache-2.0" ]
null
null
null
tests/integration/docusaurus/connecting_to_your_data/database/mysql_yaml_example.py
benoitLebreton-perso/great_expectations
5f8856c9ab6e24e627c386c07ae56896b08403e5
[ "Apache-2.0" ]
null
null
null
tests/integration/docusaurus/connecting_to_your_data/database/mysql_yaml_example.py
benoitLebreton-perso/great_expectations
5f8856c9ab6e24e627c386c07ae56896b08403e5
[ "Apache-2.0" ]
null
null
null
from ruamel import yaml import great_expectations as ge from great_expectations.core.batch import BatchRequest, RuntimeBatchRequest CONNECTION_STRING = "mysql+pymysql://root@localhost/test_ci" # This utility is not for general use. It is only to support testing. from util import load_data_into_database load_data_in...
34.477273
86
0.785761
b2ffbf6f3d1ecd8f44b7279570fe69c686237a8f
18,034
py
Python
libra/dashboard/LibEDA.py
KartikChugh/Libra
c609ce894210aa723ed174e6ce1ab6e659efc534
[ "MIT" ]
2,060
2020-06-11T01:04:08.000Z
2022-03-26T06:31:18.000Z
libra/dashboard/LibEDA.py
KartikChugh/Libra
c609ce894210aa723ed174e6ce1ab6e659efc534
[ "MIT" ]
157
2020-06-11T01:39:25.000Z
2020-12-18T16:41:40.000Z
libra/dashboard/LibEDA.py
KartikChugh/Libra
c609ce894210aa723ed174e6ce1ab6e659efc534
[ "MIT" ]
127
2020-06-22T13:12:36.000Z
2021-12-22T09:41:50.000Z
import altair as alt import base64 import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import streamlit as st import sys sys.path.insert(1, '.') from libra.query.dimensionality_red_queries import dimensionality_RF, dimensionality_PCA, dimensionality_ICA from libra import client class edaDashboa...
44.20098
158
0.530942
e59163d8597da45fb4c018a77528ac3b1a81fefb
18,437
py
Python
tests/keras/test_graph_model.py
insdeep/keras
616201255b434a224fd83430d89810744a6ebc22
[ "MIT" ]
20
2018-01-08T02:13:33.000Z
2021-09-17T12:20:52.000Z
tests/keras/test_graph_model.py
insdeep/keras
616201255b434a224fd83430d89810744a6ebc22
[ "MIT" ]
14
2019-06-22T01:56:29.000Z
2022-03-11T23:14:30.000Z
tests/keras/test_graph_model.py
insdeep/keras
616201255b434a224fd83430d89810744a6ebc22
[ "MIT" ]
24
2017-12-25T13:44:27.000Z
2021-06-27T15:48:57.000Z
from __future__ import absolute_import from __future__ import print_function import pytest import os import numpy as np np.random.seed(1337) from keras import backend as K from keras.models import Graph, Sequential from keras.layers.core import Dense, Activation, Merge, Lambda from keras.utils.test_utils import get_te...
40.971111
111
0.62879
e1c7a2af1323b3c067bd5b3759a871d5284a1cf5
649
py
Python
ordered_model/tests/settings.py
sturmf/django-ordered-model
2cc1bea9d8707be305566aa4294712804ba3a104
[ "BSD-3-Clause" ]
null
null
null
ordered_model/tests/settings.py
sturmf/django-ordered-model
2cc1bea9d8707be305566aa4294712804ba3a104
[ "BSD-3-Clause" ]
null
null
null
ordered_model/tests/settings.py
sturmf/django-ordered-model
2cc1bea9d8707be305566aa4294712804ba3a104
[ "BSD-3-Clause" ]
null
null
null
# Django < 1.3 DATABASE_ENGINE = 'sqlite3' # Django >= 1.3 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3' } } ROOT_URLCONF = 'ordered_model.tests.urls' INSTALLED_APPS = [ 'ordered_model', 'ordered_model.tests', ] SECRET_KEY = 'topsecret' MIDDLEWARE_CLASSES = ( 'django.cont...
28.217391
62
0.728814
018c3283e323a7553ccc535381f7b1eea5b92fe3
1,049
py
Python
src/estate/migrations/0031_auto_20210817_0936.py
Rey092/SwipeApp
8451912aeb8b1a8fcd52bd9c58afb09b3e49768d
[ "MIT" ]
null
null
null
src/estate/migrations/0031_auto_20210817_0936.py
Rey092/SwipeApp
8451912aeb8b1a8fcd52bd9c58afb09b3e49768d
[ "MIT" ]
null
null
null
src/estate/migrations/0031_auto_20210817_0936.py
Rey092/SwipeApp
8451912aeb8b1a8fcd52bd9c58afb09b3e49768d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-08-17 09:36 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('estate', '0030_auto_20210817_0908'), ] operations = [ migrations.AlterField( model_name='advertisement', ...
29.971429
94
0.597712
133d8dd325046b2b2ec871f96810cc106497e1b1
7,732
py
Python
models/beam.py
wch18735/Korean-Speech-Recognition
9b33ce86d238ddcc805a2014309dddaafc40eacb
[ "Apache-2.0" ]
null
null
null
models/beam.py
wch18735/Korean-Speech-Recognition
9b33ce86d238ddcc805a2014309dddaafc40eacb
[ "Apache-2.0" ]
null
null
null
models/beam.py
wch18735/Korean-Speech-Recognition
9b33ce86d238ddcc805a2014309dddaafc40eacb
[ "Apache-2.0" ]
null
null
null
import torch from package.definition import char2id class Beam: r""" Applying Beam-Search during decoding process. Args: k (int) : size of beam decoder (torch.nn.Module) : get pointer of decoder object to get multiple parameters at once batch_size (int) : mini-batch size during in...
39.44898
115
0.625323
204dee1b7730e02f51dc2fc853e06c19881967cc
39,447
py
Python
sauronlab/viz/_kvrc_utils.py
dmyersturnbull/sauronlab
c458b622efd3cb70c2547ec64ea9d11c293ab8f6
[ "Apache-2.0" ]
null
null
null
sauronlab/viz/_kvrc_utils.py
dmyersturnbull/sauronlab
c458b622efd3cb70c2547ec64ea9d11c293ab8f6
[ "Apache-2.0" ]
73
2021-02-03T21:32:44.000Z
2022-03-28T05:14:24.000Z
sauronlab/viz/_kvrc_utils.py
dmyersturnbull/sauronlab
c458b622efd3cb70c2547ec64ea9d11c293ab8f6
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import ast import textwrap from functools import total_ordering import matplotlib import matplotlib.cm as cmaps from matplotlib import colors as mcolors from matplotlib.figure import Figure from matplotlib.markers import MarkerStyle from pocketutils.plotting.color_schemes import * f...
27.721012
147
0.538926
2b1a4c6401377c4e288636ef5d988082a1d4df90
28
py
Python
snakebids/resources/__init__.py
pvandyken/snakebids
10186d116dc016769e6b43c67f10e0d50264d053
[ "MIT" ]
null
null
null
snakebids/resources/__init__.py
pvandyken/snakebids
10186d116dc016769e6b43c67f10e0d50264d053
[ "MIT" ]
2
2022-02-11T22:08:36.000Z
2022-02-11T22:08:47.000Z
snakebids/resources/__init__.py
pvandyken/snakebids
10186d116dc016769e6b43c67f10e0d50264d053
[ "MIT" ]
null
null
null
# flake8: noqa __all__ = []
9.333333
14
0.607143
f32453154616dec5107296ea8f2e28c309f0c2fd
6,989
py
Python
MLTL_Compiler/MLTLparse.py
zpcore/Web_MLTL_Compiler
c1747e800fd7777cb0862cbe0d516e6067d630ba
[ "MIT" ]
null
null
null
MLTL_Compiler/MLTLparse.py
zpcore/Web_MLTL_Compiler
c1747e800fd7777cb0862cbe0d516e6067d630ba
[ "MIT" ]
null
null
null
MLTL_Compiler/MLTLparse.py
zpcore/Web_MLTL_Compiler
c1747e800fd7777cb0862cbe0d516e6067d630ba
[ "MIT" ]
null
null
null
# ------------------------------------------------------------ # MLTLparse.py # # Parser for MTL formula. # Construct observer abstract syntax tree # Syntax : https://ti.arc.nasa.gov/m/profile/kyrozier/PANDA/PANDA.html # Reference: https://www.dabeaz.com/ply/ply.html # --------------------------------------------------...
33.600962
112
0.50837
5a44ee673d4b69f9a5b1bd4cbf966b6306bc335b
1,822
py
Python
examples/node.py
neo-goo/neo-python
82082b624a417a6631ef9effe40556e876f4ea9e
[ "MIT" ]
15
2018-02-27T13:07:00.000Z
2021-01-29T10:27:41.000Z
examples/node.py
kjhdigit/neo-project
82082b624a417a6631ef9effe40556e876f4ea9e
[ "MIT" ]
null
null
null
examples/node.py
kjhdigit/neo-project
82082b624a417a6631ef9effe40556e876f4ea9e
[ "MIT" ]
6
2018-07-13T05:00:44.000Z
2020-10-28T19:41:54.000Z
""" Minimal NEO node with custom code in a background thread. It will log events from all smart contracts on the blockchain as they are seen in the received blocks. """ import threading from time import sleep from logzero import logger from twisted.internet import reactor, task from neo.Network.NodeLeader import Nod...
32.535714
110
0.741493
bf5c42d202e8f62fa0dc7a856979921bea9278e6
887
py
Python
cfteamrateextractor.py
PIE0/icpc-amarchi
9272002a2d0d9e07d7fe20349ced830129fb68fc
[ "MIT" ]
1
2020-10-14T05:29:38.000Z
2020-10-14T05:29:38.000Z
cfteamrateextractor.py
PIE0/icpc-amarchi
9272002a2d0d9e07d7fe20349ced830129fb68fc
[ "MIT" ]
null
null
null
cfteamrateextractor.py
PIE0/icpc-amarchi
9272002a2d0d9e07d7fe20349ced830129fb68fc
[ "MIT" ]
null
null
null
from normalizer import normalize from utils import get_html_soup, parse_table LINK = 'https://codeforces.com/blog/entry/65061' LOCAL_PATH = 'htmls/cfteamrate.html' def team_rate_extractor(local=False): soup = get_html_soup(LOCAL_PATH, LINK, local) con = soup.find(id='pageContent').find(attrs={'class': 'cont...
27.71875
76
0.633596
f06714f89cd5da95709898ff4382ffcd60b2b3d7
1,235
py
Python
docs/conf.py
QMSS-G5072-2021/cipher_zhou_tianqing
9ad6654c7b9e181eefe19d92fd4ceb7268bb505a
[ "MIT" ]
null
null
null
docs/conf.py
QMSS-G5072-2021/cipher_zhou_tianqing
9ad6654c7b9e181eefe19d92fd4ceb7268bb505a
[ "MIT" ]
1
2021-11-11T22:16:24.000Z
2021-11-11T22:16:24.000Z
docs/conf.py
QMSS-G5072-2021/cipher_zhou_tianqing
9ad6654c7b9e181eefe19d92fd4ceb7268bb505a
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Project information ----------------------------------------------------- project...
33.378378
78
0.644534
c8cd97dd9d02a15a5a8fa69d11f29b8872f7c458
6,143
py
Python
doc/source/conf.py
m-kru/fusesoc
517d40c01074ab32b84bde658ce2ef714da17697
[ "BSD-2-Clause" ]
null
null
null
doc/source/conf.py
m-kru/fusesoc
517d40c01074ab32b84bde658ce2ef714da17697
[ "BSD-2-Clause" ]
null
null
null
doc/source/conf.py
m-kru/fusesoc
517d40c01074ab32b84bde658ce2ef714da17697
[ "BSD-2-Clause" ]
null
null
null
# Copyright FuseSoC contributors # Licensed under the 2-Clause BSD License, see LICENSE for details. # SPDX-License-Identifier: BSD-2-Clause # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # ht...
29.533654
84
0.653264
d4725ca568d7aac450d8482174f215a3cb7cd68d
868
py
Python
dp/198.py
lidongdongbuaa/leetcode
ca5507c30f1177df14e488221b7cc92bb1a747c1
[ "MIT" ]
1,232
2018-04-20T07:30:43.000Z
2022-03-31T09:34:56.000Z
dp/198.py
lidongdongbuaa/leetcode
ca5507c30f1177df14e488221b7cc92bb1a747c1
[ "MIT" ]
98
2018-06-25T16:13:28.000Z
2021-06-28T21:46:15.000Z
dp/198.py
lidongdongbuaa/leetcode
ca5507c30f1177df14e488221b7cc92bb1a747c1
[ "MIT" ]
283
2018-04-20T07:30:46.000Z
2022-03-20T01:14:10.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Author: Yu Zhou # 198. House Robber # DP的思路是比对dp[i-2]+nums[i] 和dp[i-1]的值 # 状态:从0到i,不能选择相邻节点得到的最大值 # DP # 时间/空间 O(N) class Solution(object): def rob(self, nums): """ :type nums: List[int] :rtype: int 数学公式 f(0) = nums[0] f...
19.727273
51
0.422811
481a09737abdf2857d76975b78e575c11a3bfe15
4,284
py
Python
yt_dlp/extractor/atvat.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
2
2022-03-14T15:34:14.000Z
2022-03-23T17:05:42.000Z
yt_dlp/extractor/atvat.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
null
null
null
yt_dlp/extractor/atvat.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
2
2022-01-05T08:23:25.000Z
2022-03-06T21:33:37.000Z
# coding: utf-8 from __future__ import unicode_literals import datetime from .common import InfoExtractor from ..utils import ( float_or_none, jwt_encode_hs256, try_get, ExtractorError, ) class ATVAtIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?atv\.at/tv/(?:[^/]+/){2,3}(?P<id>.*)' _...
37.911504
134
0.573529
c57e38cde1f53ffe544f4d7c08dd325b11d18544
3,528
py
Python
hifiberrydsp/hardware/adau145x.py
hftsai256/hifiberry-dsp
e4668ec862c0b878840fcaaa57d173155069138d
[ "MIT" ]
92
2018-07-09T18:45:57.000Z
2022-02-01T11:33:15.000Z
hifiberrydsp/hardware/adau145x.py
hftsai256/hifiberry-dsp
e4668ec862c0b878840fcaaa57d173155069138d
[ "MIT" ]
35
2018-07-31T07:38:23.000Z
2022-01-13T00:49:33.000Z
hifiberrydsp/hardware/adau145x.py
hftsai256/hifiberry-dsp
e4668ec862c0b878840fcaaa57d173155069138d
[ "MIT" ]
30
2018-09-23T08:39:57.000Z
2021-12-22T13:40:19.000Z
''' Copyright (c) 2018 Modul 9/HiFiBerry 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, publish, distribu...
28.451613
110
0.62415
040072983efe09215c7ed4725db5e02f8d3cf930
113
py
Python
mbtai/mbtai/tests/test_server.py
DouglasOrr/Snippets
026e15a422b518ee7d9ce4849f971c4403ad9fe8
[ "MIT" ]
null
null
null
mbtai/mbtai/tests/test_server.py
DouglasOrr/Snippets
026e15a422b518ee7d9ce4849f971c4403ad9fe8
[ "MIT" ]
1
2020-04-11T18:07:19.000Z
2020-04-11T18:07:19.000Z
mbtai/mbtai/tests/test_server.py
DouglasOrr/Snippets
026e15a422b518ee7d9ce4849f971c4403ad9fe8
[ "MIT" ]
null
null
null
from .. import server from nose.tools import eq_ def test_hello(): eq_('Welcome to MBTAI', server.hello())
16.142857
43
0.699115
76f216caeb09d6f9144cb7393f4942cfa4d558b7
236
py
Python
src/srf.py
ricardosevero/SRF
8e47ee6121397073f87f80f0a8e571508c2be3bc
[ "MIT" ]
1
2020-02-26T03:28:42.000Z
2020-02-26T03:28:42.000Z
src/srf.py
ricardosantosdev/SRF
8e47ee6121397073f87f80f0a8e571508c2be3bc
[ "MIT" ]
null
null
null
src/srf.py
ricardosantosdev/SRF
8e47ee6121397073f87f80f0a8e571508c2be3bc
[ "MIT" ]
2
2018-10-31T22:34:15.000Z
2018-11-01T02:01:27.000Z
# coding: utf-8 import os import glob def current_directory(): return os.getcwd() def browser(dir): return os.chdir(dir) def to_cleaner(char): for file in glob.glob(char): print(file) os.remove(file)
11.8
32
0.635593
5348383f5daa82f16f774b928c5cedf3821e3a98
6,335
py
Python
europarl/db/rules.py
bockstaller/europarl-crawler
5d4497da068cfe5dc10d250b232b0473821b4877
[ "MIT" ]
null
null
null
europarl/db/rules.py
bockstaller/europarl-crawler
5d4497da068cfe5dc10d250b232b0473821b4877
[ "MIT" ]
null
null
null
europarl/db/rules.py
bockstaller/europarl-crawler
5d4497da068cfe5dc10d250b232b0473821b4877
[ "MIT" ]
null
null
null
from europarl import rules from europarl.db.sessionDay import SessionDay from europarl.db.url import URLs from europarl.rules.rule import rule_registry from . import DBInterface from .tables import Table def init_rules(config): temp_db = DBInterface(config=config["General"]) r = Rules(temp_db) r.register...
29.741784
118
0.52423
f3826fc2fc39a5505b38632b0cd6acb51f7f870e
4,594
py
Python
warthog/tests/models.py
timsavage/django-warthog
b7042e5b66a1a591579f553aff90d06b8ece1294
[ "BSD-3-Clause" ]
2
2016-05-03T15:40:36.000Z
2019-05-11T19:35:38.000Z
warthog/tests/models.py
timsavage/django-warthog
b7042e5b66a1a591579f553aff90d06b8ece1294
[ "BSD-3-Clause" ]
null
null
null
warthog/tests/models.py
timsavage/django-warthog
b7042e5b66a1a591579f553aff90d06b8ece1294
[ "BSD-3-Clause" ]
null
null
null
import datetime from django import test from django.core.exceptions import ValidationError from django.utils import timezone from warthog.models import Resource THIRTY_MINUTES = datetime.timedelta(minutes=30) FUTURE = timezone.now() + THIRTY_MINUTES PAST = timezone.now() - THIRTY_MINUTES TEST_RESOURCES = { 'dele...
35.612403
103
0.735742
a8ad1ed64b9418266db8bcea68bc130f8b29cffa
3,832
py
Python
box/config_box.py
ipspace/Box
51042b8ed33b1fab652b52f0ca0541b4492005eb
[ "MIT" ]
2,051
2017-03-23T14:19:22.000Z
2022-03-23T12:59:16.000Z
box/config_box.py
ipspace/Box
51042b8ed33b1fab652b52f0ca0541b4492005eb
[ "MIT" ]
210
2017-03-11T06:40:05.000Z
2022-03-29T19:17:55.000Z
box/config_box.py
ipspace/Box
51042b8ed33b1fab652b52f0ca0541b4492005eb
[ "MIT" ]
104
2017-03-24T18:12:26.000Z
2022-03-31T06:35:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from box.box import Box class ConfigBox(Box): """ Modified box object to add object transforms. Allows for build in transforms like: cns = ConfigBox(my_bool='yes', my_int='5', my_list='5,4,3,3,2') cns.bool('my_bool') # True cns.int('my_int') # ...
28.81203
103
0.561587
b2306a57cfe1e602df8df82e3cfa874fc9b7af2d
596
py
Python
src/apps/cobertura/migrations/0002_auto_20190612_1046.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/cobertura/migrations/0002_auto_20190612_1046.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/cobertura/migrations/0002_auto_20190612_1046.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-06-12 15:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cobertura', '0001_initial'), ] operations = [ migrations.AlterField( model_name='cobertura', name='cob', ...
24.833333
81
0.597315
33c8714b9b33b781866dd35a5212e98c81f201cf
4,601
py
Python
bootstrap.py
lenoch/tagsetbench
98c5474197af3087a28f73b54398abec0534c7d8
[ "MIT" ]
null
null
null
bootstrap.py
lenoch/tagsetbench
98c5474197af3087a28f73b54398abec0534c7d8
[ "MIT" ]
null
null
null
bootstrap.py
lenoch/tagsetbench
98c5474197af3087a28f73b54398abec0534c7d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Preprocessing: očíslovat, vyčistit a uložit v zjednodušené a čisté struktuře TODO: hvězdičky: vyhazovat, když jsou na začátku věty měnit na tečku, když jsou uprostřed (i když by bylo lepší vytvořit novou větu) uvozovky: stačí jim kI, anebo potřebujou specifičtější značk...
36.228346
79
0.535318
0458809b76975c7743ea81364e789a21d30dff8d
5,081
py
Python
phoenix_config.py
SenseiOfficial/Probable-garuda
be5ded58e262197388ba1daf8820d81d0e92c85f
[ "MIT" ]
1
2021-08-13T16:53:53.000Z
2021-08-13T16:53:53.000Z
phoenix_config.py
SenseiOfficial/Probable-garuda
be5ded58e262197388ba1daf8820d81d0e92c85f
[ "MIT" ]
null
null
null
phoenix_config.py
SenseiOfficial/Probable-garuda
be5ded58e262197388ba1daf8820d81d0e92c85f
[ "MIT" ]
1
2021-08-13T16:34:13.000Z
2021-08-13T16:34:13.000Z
# IF YOU ARE HOSTING 😈𝕻𝖍𝖔𝖊𝖓𝖎𝖝 𝕭𝖔𝖙😈 ON OTHER VPS OR LOCALLY RATHER THAN HEROKU # THEN DON'T EDIT THIS FILE. # GO AND EDIT ex_config.py AND RENAME IT TO config.py # AND FILL THE REQUIRED VARS THERE. # ONCE AGAIN!! # """DO NOT EDIT THIS FILE""" import os from telethon.tl.types import ChatBannedRights class...
46.614679
112
0.705176
b89b5896554f485d1572262ad082b28794ffd367
9,545
py
Python
src/scse/metrics/national_grid_cash_accounting.py
Cam-MLPW-MLMI-21-22/supply-chain-simulation-environment
c0fe20cc5451968302fdaf1fc561b7b0e3e754d8
[ "Apache-2.0" ]
null
null
null
src/scse/metrics/national_grid_cash_accounting.py
Cam-MLPW-MLMI-21-22/supply-chain-simulation-environment
c0fe20cc5451968302fdaf1fc561b7b0e3e754d8
[ "Apache-2.0" ]
null
null
null
src/scse/metrics/national_grid_cash_accounting.py
Cam-MLPW-MLMI-21-22/supply-chain-simulation-environment
c0fe20cc5451968302fdaf1fc561b7b0e3e754d8
[ "Apache-2.0" ]
1
2022-01-27T16:32:29.000Z
2022-01-27T16:32:29.000Z
""" Rewards for the simulation, cash accounting """ import logging from os.path import dirname, join import csv from scse.constants.national_grid_constants import ( DEFAULT_BALANCE_SOURCE, DEFAULT_BALANCE_SINK, ELECTRICITY_ASIN ) from scse.default_run_parameters.national_grid_default_run_parameters import ( DEF...
39.605809
95
0.609429
b432e477954cbb051022413c101e516ca107cf7b
1,879
py
Python
linode_plugin/tests/test_plugin.py
displague/cloudify-linode-plugin
dbcdfe9ca10c95634ef17e9c8bde3aab286ac497
[ "Apache-2.0" ]
1
2017-03-08T21:48:20.000Z
2017-03-08T21:48:20.000Z
linode_plugin/tests/test_plugin.py
displague/cloudify-linode-plugin
dbcdfe9ca10c95634ef17e9c8bde3aab286ac497
[ "Apache-2.0" ]
2
2015-03-05T16:53:31.000Z
2015-03-31T13:51:53.000Z
linode_plugin/tests/test_plugin.py
displague/cloudify-linode-plugin
dbcdfe9ca10c95634ef17e9c8bde3aab286ac497
[ "Apache-2.0" ]
6
2015-03-04T22:45:31.000Z
2020-11-30T16:56:21.000Z
######## # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
33.553571
81
0.623736
6dadd66219af44c32acb890fd3adb9891775b1ab
3,657
py
Python
colight-master/run_wrapper.py
utkachenko/Con-MATSCo
4f8a0299feb8d523462c9ed998c7cb498d99d4a2
[ "Apache-2.0" ]
1
2022-03-15T19:15:51.000Z
2022-03-15T19:15:51.000Z
colight-master/run_wrapper.py
utkachenko/Con-MATSCo
4f8a0299feb8d523462c9ed998c7cb498d99d4a2
[ "Apache-2.0" ]
null
null
null
colight-master/run_wrapper.py
utkachenko/Con-MATSCo
4f8a0299feb8d523462c9ed998c7cb498d99d4a2
[ "Apache-2.0" ]
null
null
null
import os import copy from datetime import datetime from runexp import main_exp from runexp import parse_args_exp from run_baseline import main_base from run_baseline import parse_args_base from summary_multi_anon import parse_args_sum from summary_multi_anon import summary_detail_test from summary_multi_anon impo...
23.901961
101
0.697566
820e6c9b705837e3ec02471cb980d1cebb06dca5
18,819
py
Python
log_complete/model_622.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete/model_622.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete/model_622.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
91.354369
710
0.806525
4d03925ae734319e68ffa5ecf2f3150190f27588
2,135
py
Python
ocean_lib/web3_internal/account.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
null
null
null
ocean_lib/web3_internal/account.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
1
2021-02-16T18:31:53.000Z
2021-02-16T18:31:53.000Z
ocean_lib/web3_internal/account.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
null
null
null
"""Accounts module.""" # Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 import logging import os from ocean_lib.web3_internal.utils import privateKeyToAddress logger = logging.getLogger("account") class Account: """Class representing an account.""" def __init__( ...
28.092105
93
0.631382
9f466c0c668cc8c17db74a66d7d1b914ee0675b5
99
py
Python
python/testData/quickFixes/PyMoveExceptQuickFixTest/simple_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/quickFixes/PyMoveExceptQuickFixTest/simple_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/quickFixes/PyMoveExceptQuickFixTest/simple_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def foo(): pass try: foo() except UnboundLocalError: pass except NameError: pass
9
25
0.626263
9d56d48cbacd69fd4abcf3e135fd703fd2f72a6a
552
py
Python
python/python-algorithm-intervew/15-heap/55-kth-largest-element-in-an-array-2.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/python-algorithm-intervew/15-heap/55-kth-largest-element-in-an-array-2.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/python-algorithm-intervew/15-heap/55-kth-largest-element-in-an-array-2.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
""" * 배열의 K번째 큰 요소 정렬되지 않은 배열에서 k번째 큰 요소를 추출하라. - Example 1 Input : [3, 2, 3, 1, 2, 4, 5, 5, 6], k = 4 Output : 4 """ import heapq from typing import List class Solution: # heapq 모듈의 heapify 이용 def findKthLargest(self, nums: List[int], k: int) -> int: # 모든 값을 꺼내어 푸시하지 않고도 한 번에 heapify()하여 처리할 수 있다. ...
21.230769
68
0.581522
bf977e377f06e70b7c2b2bbd8e6a8c90b537282d
3,084
py
Python
taiwanpeaks/photos/migrations/0005_auto_20201205_0822.py
bhomnick/taiwanpeaks
0ac3aee6493bc5e982646efd4afad5ede5db005f
[ "MIT" ]
1
2020-11-17T15:17:01.000Z
2020-11-17T15:17:01.000Z
taiwanpeaks/photos/migrations/0005_auto_20201205_0822.py
bhomnick/taiwanpeaks
0ac3aee6493bc5e982646efd4afad5ede5db005f
[ "MIT" ]
16
2020-12-04T11:05:25.000Z
2020-12-05T09:00:05.000Z
taiwanpeaks/photos/migrations/0005_auto_20201205_0822.py
bhomnick/taiwanpeaks
0ac3aee6493bc5e982646efd4afad5ede5db005f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-12-05 08:22 from django.db import migrations, models import photos.models import sorl.thumbnail.fields import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0003_taggeditem_add_unique_index'), ('photos', '0004_photo_default...
45.352941
301
0.60668
4a1f534f96b10e15980d6e7db7bf87318539cd6b
748
py
Python
spid_cie_oidc/entity/migrations/0013_alter_federationentityconfiguration_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
4
2022-03-08T09:05:13.000Z
2022-03-16T17:59:43.000Z
spid_cie_oidc/entity/migrations/0013_alter_federationentityconfiguration_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
64
2022-03-08T01:11:40.000Z
2022-03-31T17:23:49.000Z
spid_cie_oidc/entity/migrations/0013_alter_federationentityconfiguration_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
8
2022-03-09T12:00:08.000Z
2022-03-31T13:52:14.000Z
# Generated by Django 4.0.2 on 2022-03-13 00:41 from django.db import migrations, models import spid_cie_oidc.entity.validators class Migration(migrations.Migration): dependencies = [ ('spid_cie_oidc_entity', '0012_delete_publicjwk'), ] operations = [ migrations.AlterField( ...
37.4
337
0.691176
c1d84016cc0c78a057dadc7a1919be57a2f54c57
31,902
py
Python
pylinkvalidator/crawler.py
glisignoli/pylinkvalidator
9af220529dc56a1b16998d0c5bf9e37c45d31448
[ "MIT" ]
null
null
null
pylinkvalidator/crawler.py
glisignoli/pylinkvalidator
9af220529dc56a1b16998d0c5bf9e37c45d31448
[ "MIT" ]
null
null
null
pylinkvalidator/crawler.py
glisignoli/pylinkvalidator
9af220529dc56a1b16998d0c5bf9e37c45d31448
[ "MIT" ]
1
2021-11-13T04:24:16.000Z
2021-11-13T04:24:16.000Z
# -*- coding: utf-8 -*- """ Contains the crawling logic. """ from __future__ import unicode_literals, absolute_import import base64 from collections import defaultdict import logging import sys import time from pylinkvalidator.included.bs4 import BeautifulSoup, UnicodeDammit import pylinkvalidator.compat as compat f...
37.052265
83
0.600809
26fb9ac8713b03ca6c964e71e09d7620b8a4d72c
2,011
py
Python
extract_avi.py
faymanns/Qbio_2018
c5dd3361a1a0ed12ea19d369dcb914e7237a38d1
[ "MIT" ]
null
null
null
extract_avi.py
faymanns/Qbio_2018
c5dd3361a1a0ed12ea19d369dcb914e7237a38d1
[ "MIT" ]
null
null
null
extract_avi.py
faymanns/Qbio_2018
c5dd3361a1a0ed12ea19d369dcb914e7237a38d1
[ "MIT" ]
null
null
null
#! /anaconda3/bin/python import os.path import shutil from subprocess import call import csv import argh import numpy as np import cv2 import time from skimage import io def main(input_dir, max_frame = 18000): print('start to read : '+input_dir) roi_file = input_dir + '/corrected_ROIs.txt' orient_file = i...
29.573529
80
0.565888
aa9629ec2b9b9bf3057b12143ec8389ed691352a
22,262
py
Python
hw/ip/otbn/util/shared/information_flow.py
vpalatin/opentitan
3dab726bc1ece248cba95611400ca55ceaa5a848
[ "Apache-2.0" ]
null
null
null
hw/ip/otbn/util/shared/information_flow.py
vpalatin/opentitan
3dab726bc1ece248cba95611400ca55ceaa5a848
[ "Apache-2.0" ]
null
null
null
hw/ip/otbn/util/shared/information_flow.py
vpalatin/opentitan
3dab726bc1ece248cba95611400ca55ceaa5a848
[ "Apache-2.0" ]
null
null
null
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 from typing import Dict, List, Optional, Sequence, Set from serialize.parse_helpers import check_keys, check_list, check_str from .operand import Operand, RegOperandType ...
39.967684
97
0.604887
4e475501f69bdccd261428af0b4c2b04edb2b4a7
369
py
Python
ProdirectScraper/spiders/TrainersSpider.py
krishnaprasanthg/ProdirectScraper
536b49be1a6bbe1b707dd6be8731667befa1c2e8
[ "MIT" ]
12
2017-07-06T09:10:02.000Z
2020-12-11T13:57:13.000Z
ProdirectScraper/spiders/TrainersSpider.py
krishnaprasanthg/ProdirectScraper
536b49be1a6bbe1b707dd6be8731667befa1c2e8
[ "MIT" ]
24
2017-10-08T16:22:46.000Z
2021-03-25T05:06:34.000Z
ProdirectScraper/spiders/TrainersSpider.py
krishnaprasanthg/ProdirectScraper
536b49be1a6bbe1b707dd6be8731667befa1c2e8
[ "MIT" ]
20
2017-10-08T18:59:55.000Z
2021-03-25T10:23:31.000Z
from ..helpers import Configuration from .PageSpider import PageSpider class TrainersSpider(PageSpider): name = 'trainers' config = Configuration('trainers_spider') start_urls = \ [PageSpider.home_url + '/lists/trainers.aspx?listname=trainers&cur=' + config.currency + '&pp=' + config.pp +...
33.545455
95
0.666667
f88c751408071971c9e796b15692ae0d2c1668b1
1,270
py
Python
manage.py
essamgoda/ChatBot-Framework
67c0d059e70e1b0ee44e5d0268302fcee2f9d0ac
[ "MIT" ]
null
null
null
manage.py
essamgoda/ChatBot-Framework
67c0d059e70e1b0ee44e5d0268302fcee2f9d0ac
[ "MIT" ]
null
null
null
manage.py
essamgoda/ChatBot-Framework
67c0d059e70e1b0ee44e5d0268302fcee2f9d0ac
[ "MIT" ]
null
null
null
from flask_script import Manager from app import app manager = Manager(app) @manager.command def install_nltk_dependencies(): # Downloading necessary NLTK datasets from nltk import download download("stopwords") download("wordnet") download('averaged_perceptron_tagger') download('punkt') ...
23.962264
74
0.637008
acb17510a3e5d89b1c3fce01278fe7ca19e19922
18,350
py
Python
ISY/_isyvar.py
m-shahbaz-kharal/isy-lib-python3
dd34531a11bcdfe4d7a32065a91da9046f4dace4
[ "BSD-2-Clause" ]
null
null
null
ISY/_isyvar.py
m-shahbaz-kharal/isy-lib-python3
dd34531a11bcdfe4d7a32065a91da9046f4dace4
[ "BSD-2-Clause" ]
null
null
null
ISY/_isyvar.py
m-shahbaz-kharal/isy-lib-python3
dd34531a11bcdfe4d7a32065a91da9046f4dace4
[ "BSD-2-Clause" ]
null
null
null
""" This is a subfile for IsyClass.py These funtions are accessable via the Isy class opj """ __author__ = 'Peter Shipley <peter.shipley@gmail.com>' __copyright__ = "Copyright (C) 2015 Peter Shipley" __license__ = "BSD" import xml.etree.ElementTree as ET from ISY.IsyVarClass import IsyVar from ISY.IsyExceptionClass...
28.058104
108
0.558038
334f7a736da285b0683e9b51d7d3211150b2e01f
1,912
py
Python
Scrapy_spiders/Scrapy_spiders/spiders/a77_Waterfields.py
YuruHuang/MenuTracker
cbe6a2e3ec9edc72ae49ddc1e87e508c5a8077cf
[ "MIT" ]
1
2022-03-14T10:19:00.000Z
2022-03-14T10:19:00.000Z
Scrapy_spiders/Scrapy_spiders/spiders/a77_Waterfields.py
YuruHuang/MenuTracker
cbe6a2e3ec9edc72ae49ddc1e87e508c5a8077cf
[ "MIT" ]
null
null
null
Scrapy_spiders/Scrapy_spiders/spiders/a77_Waterfields.py
YuruHuang/MenuTracker
cbe6a2e3ec9edc72ae49ddc1e87e508c5a8077cf
[ "MIT" ]
null
null
null
from datetime import date from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule class A76WaterfieldsSpider(CrawlSpider): name = '77_Waterfields' allowed_domains = ['www.waterfields-bakers.co.uk'] start_urls = ['https://www.waterfields-bakers.co.uk/category/our-produ...
41.565217
114
0.560669
cff3dcd4fed9a7ab3543d766502bef8eb8348000
350
py
Python
cache.py
bkellerman/CachingPipeline
cc6386bf5b3c16f8c8a7b27d226e11fad46368c4
[ "MIT" ]
null
null
null
cache.py
bkellerman/CachingPipeline
cc6386bf5b3c16f8c8a7b27d226e11fad46368c4
[ "MIT" ]
null
null
null
cache.py
bkellerman/CachingPipeline
cc6386bf5b3c16f8c8a7b27d226e11fad46368c4
[ "MIT" ]
null
null
null
import os import numpy as np import hashlib def subsample_hash(a): """ Returns a unique hash for a numpy array by sampling values """ rng = np.random.RandomState(113) inds = rng.randint(low=0, high=a.size, size=1000) b = a.flat[inds] m = hashlib.sha256() s = b.tostring() m.update(b.tostring...
23.333333
70
0.651429
7c49c5b73c7f0e66cf52cf61a52738231c2f23f5
390
py
Python
ch2/dsu/M836.py
cloud-mist/Acwing_BasicAlgC
9479b1da5ed5247efa69dfc065cd5536b0c3244f
[ "MIT" ]
2
2021-12-24T09:48:12.000Z
2021-12-26T05:09:53.000Z
ch2/dsu/M836.py
cloud-mist/Acwing_BasicAlgC
9479b1da5ed5247efa69dfc065cd5536b0c3244f
[ "MIT" ]
null
null
null
ch2/dsu/M836.py
cloud-mist/Acwing_BasicAlgC
9479b1da5ed5247efa69dfc065cd5536b0c3244f
[ "MIT" ]
null
null
null
# 并查集 def find(x): if p[x]!=x: p[x] = find(p[x]) return p[x] n,m=map(int, input().split()) p=[i for i in range(n+10)] while m: m-=1 op,a,b=input().split() a,b=int(a),int(b) if op=='M': if find(a)!=find(b): p[find(a)]=find(b) else: if find(a)!=find(b): ...
14.444444
30
0.412821
85d2d8232a2540bc08e6743d9a417246bf8495c2
2,882
py
Python
otter/json_schema/model_schemas.py
alex/otter
e46316634ae4c211f7436aa4d41321ac1edba0af
[ "Apache-2.0" ]
1
2015-11-08T12:58:44.000Z
2015-11-08T12:58:44.000Z
otter/json_schema/model_schemas.py
alex/otter
e46316634ae4c211f7436aa4d41321ac1edba0af
[ "Apache-2.0" ]
null
null
null
otter/json_schema/model_schemas.py
alex/otter
e46316634ae4c211f7436aa4d41321ac1edba0af
[ "Apache-2.0" ]
null
null
null
""" JSON schema to be used to verify the return values from implementations of the model interface. This is only going to be used internally to verify the schemas returned by the interface. Probably easier to test just by asserting simplified dictionaries so that all the correct data doesn't have to be mocked. Pleas...
28.534653
80
0.585704
997121c51c1c64245c864c6a932144d34845f751
4,269
py
Python
influxdb_client/domain/notification_rule.py
rhajek/influxdb-client-python
852e6f1b1161df4d67eabc19cdb6b323a46b88e2
[ "MIT" ]
null
null
null
influxdb_client/domain/notification_rule.py
rhajek/influxdb-client-python
852e6f1b1161df4d67eabc19cdb6b323a46b88e2
[ "MIT" ]
null
null
null
influxdb_client/domain/notification_rule.py
rhajek/influxdb-client-python
852e6f1b1161df4d67eabc19cdb6b323a46b88e2
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from influxd...
34.152
398
0.583041
cebd3653434958e404b64d0adf13502d8933c77c
818
py
Python
scripts/experience_test.py
lsteck/java-spring-app-original
d7e4721d9e4400c6d45dfe28985139b393d80bde
[ "Apache-2.0" ]
null
null
null
scripts/experience_test.py
lsteck/java-spring-app-original
d7e4721d9e4400c6d45dfe28985139b393d80bde
[ "Apache-2.0" ]
4
2021-03-22T17:43:41.000Z
2021-03-22T20:13:54.000Z
scripts/experience_test.py
lsteck/java-spring-app-original
d7e4721d9e4400c6d45dfe28985139b393d80bde
[ "Apache-2.0" ]
1
2021-06-06T23:31:39.000Z
2021-06-06T23:31:39.000Z
import os, time, sys, datetime from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys # Do an action on the app's landing page options = Options() options.add_argument('--headless') options.add_argument('--no-sandbox') options.add_argument('...
35.565217
83
0.766504
50c04ae392d08e7cfaebc6a6891d02c042f75ef3
331
py
Python
tests/test_news_data_handling.py
jonathanharg/covid_dashboard
a1bc18d971911cc4db35af96f973da636c91190e
[ "MIT" ]
null
null
null
tests/test_news_data_handling.py
jonathanharg/covid_dashboard
a1bc18d971911cc4db35af96f973da636c91190e
[ "MIT" ]
null
null
null
tests/test_news_data_handling.py
jonathanharg/covid_dashboard
a1bc18d971911cc4db35af96f973da636c91190e
[ "MIT" ]
null
null
null
from covid_news_handling import get_news, news_API_request, remove_article, update_news def test_news_API_request(): assert news_API_request() assert news_API_request("Covid COVID-19 coronavirus") == news_API_request() def test_update_news(): assert update_news("test") def test_get_news(): assert ...
22.066667
87
0.770393
005d1a6dbcca814bd6fa5f0bc48125a39c5bdabd
2,683
py
Python
tests/env/packages/env_test_alabaster.py
patkan/foxbms-2
329216a5b0739362512b4c744975a136f674f60c
[ "CC-BY-4.0", "BSD-3-Clause" ]
47
2021-04-01T21:14:55.000Z
2022-03-30T12:19:18.000Z
tests/env/packages/env_test_alabaster.py
patkan/foxbms-2
329216a5b0739362512b4c744975a136f674f60c
[ "CC-BY-4.0", "BSD-3-Clause" ]
6
2021-06-01T08:25:54.000Z
2021-11-17T07:55:05.000Z
tests/env/packages/env_test_alabaster.py
patkan/foxbms-2
329216a5b0739362512b4c744975a136f674f60c
[ "CC-BY-4.0", "BSD-3-Clause" ]
24
2021-04-01T21:15:04.000Z
2022-03-29T06:18:10.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # # Redistribution and use in source and binary forms, with or without # modification, are permitted provid...
35.773333
98
0.733135
f9d1d20e51cd350e07d80ec30a1f6a2f9477f097
51,184
py
Python
src/olympia/reviewers/utils.py
ankushduacodes/addons-server
5ff2fd40dbe28852ad53caa42ce804cc64a4bbdc
[ "BSD-3-Clause" ]
null
null
null
src/olympia/reviewers/utils.py
ankushduacodes/addons-server
5ff2fd40dbe28852ad53caa42ce804cc64a4bbdc
[ "BSD-3-Clause" ]
null
null
null
src/olympia/reviewers/utils.py
ankushduacodes/addons-server
5ff2fd40dbe28852ad53caa42ce804cc64a4bbdc
[ "BSD-3-Clause" ]
null
null
null
import random from collections import OrderedDict from datetime import datetime, timedelta import django_tables2 as tables import olympia.core.logger from django.conf import settings from django.contrib.humanize.templatetags.humanize import naturaltime from django.db.models import Count, F, Q from django.template impo...
38.834598
88
0.609898
9fbed9d0c74fa1a144cb7437164921c328a93358
5,508
py
Python
mnist/train.py
chunhua-ccny/FixedPoint
408edaeb6b75fb84421e170490557808fddb6f20
[ "MIT" ]
22
2019-05-10T18:14:35.000Z
2022-02-13T20:26:32.000Z
mnist/train.py
chunhua-ccny/FixedPoint
408edaeb6b75fb84421e170490557808fddb6f20
[ "MIT" ]
3
2019-09-25T06:35:53.000Z
2019-11-13T07:08:13.000Z
mnist/train.py
chunhua-ccny/FixedPoint
408edaeb6b75fb84421e170490557808fddb6f20
[ "MIT" ]
11
2018-09-27T03:53:17.000Z
2022-01-21T09:25:18.000Z
import argparse import os import time from utee import misc import torch import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import dataset import model parser = argparse.ArgumentParser(description='PyTorch MNIST Example') parser.add_argument('--wd', type=float, default=0....
43.03125
125
0.633442
39d4ca791a661be0994558227e36bff3f5858589
16,207
py
Python
payflowpro/client.py
bkeating/python-payflowpro
dc6ef0476ba7de035a86f345c867349dad983c8e
[ "Apache-2.0" ]
18
2015-01-03T22:53:32.000Z
2021-09-01T04:48:20.000Z
payflowpro/client.py
bkeating/python-payflowpro
dc6ef0476ba7de035a86f345c867349dad983c8e
[ "Apache-2.0" ]
5
2016-03-03T16:08:57.000Z
2019-07-29T11:45:02.000Z
payflowpro/client.py
bkeating/python-payflowpro
dc6ef0476ba7de035a86f345c867349dad983c8e
[ "Apache-2.0" ]
14
2015-02-18T01:50:37.000Z
2021-09-09T20:02:49.000Z
# -*- coding: utf-8 -*- """ Copyright 2008 Online Agility (www.onlineagility.com) Copyright 2009 John D'Agostino (http://www.mercurycomplex.com) Copyright 02011 Ben Keating (http://bpk.deepdream.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with th...
37.866822
121
0.598939
792cffd8e09602037ce2ffba07967418fdb30652
26,756
py
Python
backend/venv/Lib/site-packages/sphinx/domains/python.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
backend/venv/Lib/site-packages/sphinx/domains/python.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
backend/venv/Lib/site-packages/sphinx/domains/python.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# -*- coding: utf-8 -*- """ sphinx.domains.python ~~~~~~~~~~~~~~~~~~~~~ The Python domain. :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from docutils import nodes from docutils.parsers.rst import directives from sphinx im...
37.631505
80
0.534833
10913e4e6196a40d24f879930794fac65918a606
365
py
Python
authapp/management/commands/create_users.py
H0oxy/sportcars
dcd76736bfe88630b3ccce7e4ee0ad9398494f08
[ "MIT" ]
null
null
null
authapp/management/commands/create_users.py
H0oxy/sportcars
dcd76736bfe88630b3ccce7e4ee0ad9398494f08
[ "MIT" ]
null
null
null
authapp/management/commands/create_users.py
H0oxy/sportcars
dcd76736bfe88630b3ccce7e4ee0ad9398494f08
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from authapp.models import UserProfile class Command(BaseCommand): help = "Creates default users" def handle(self, *args, **options): UserProfile.objects.create_superuser('kpk', password='pass') UserProfile.objects.create_user('user1', pass...
26.071429
68
0.715068
e291e40d9231d7ce7459f84a35b02a26a2ea3a32
10,167
py
Python
auth-api/src/auth_api/services/entity.py
vysakh-menon-aot/sbc-auth
b5c18df3b7586cb7d9761f7fc0809cb2cbb3b096
[ "Apache-2.0" ]
3
2020-04-22T18:51:00.000Z
2020-04-22T18:54:12.000Z
auth-api/src/auth_api/services/entity.py
vysakh-menon-aot/sbc-auth
b5c18df3b7586cb7d9761f7fc0809cb2cbb3b096
[ "Apache-2.0" ]
31
2019-06-19T22:12:45.000Z
2020-09-09T17:29:39.000Z
auth-api/src/auth_api/services/entity.py
vysakh-menon-aot/sbc-auth
b5c18df3b7586cb7d9761f7fc0809cb2cbb3b096
[ "Apache-2.0" ]
1
2019-06-21T16:57:58.000Z
2019-06-21T16:57:58.000Z
# Copyright © 2019 Province of British Columbia # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
37.516605
111
0.687617
646bb2d11550605bc2af98632a2fe8997595a007
12,651
py
Python
GUI/gui-pys/scpt_GUI_vulnerability_search.py
shiky8/scpt
3fe34b219e197c6c7064a8f497f6fed5c06f94d9
[ "MIT" ]
null
null
null
GUI/gui-pys/scpt_GUI_vulnerability_search.py
shiky8/scpt
3fe34b219e197c6c7064a8f497f6fed5c06f94d9
[ "MIT" ]
null
null
null
GUI/gui-pys/scpt_GUI_vulnerability_search.py
shiky8/scpt
3fe34b219e197c6c7064a8f497f6fed5c06f94d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'scpt_gui_vulnerability_search.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQ...
47.205224
95
0.705557
a7c39af71d3042b12bd8a9858bbf2dc4359462c7
26,185
py
Python
actions_includes/expressions.py
drdanz/actions-includes
b9102cc4c78433b2d8974423d3da171c39c35cb6
[ "Apache-2.0" ]
null
null
null
actions_includes/expressions.py
drdanz/actions-includes
b9102cc4c78433b2d8974423d3da171c39c35cb6
[ "Apache-2.0" ]
null
null
null
actions_includes/expressions.py
drdanz/actions-includes
b9102cc4c78433b2d8974423d3da171c39c35cb6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
22.534423
115
0.487455
9e62a1d129d8523991ee8f3c56dee99034e9bc74
424
py
Python
dataset.py
liuchenxjtu/WassersteinGAN-master
2b08cbfd1ef456df96936adad50241140c10f2eb
[ "BSD-3-Clause" ]
null
null
null
dataset.py
liuchenxjtu/WassersteinGAN-master
2b08cbfd1ef456df96936adad50241140c10f2eb
[ "BSD-3-Clause" ]
null
null
null
dataset.py
liuchenxjtu/WassersteinGAN-master
2b08cbfd1ef456df96936adad50241140c10f2eb
[ "BSD-3-Clause" ]
null
null
null
import torch.utils.data import pandas as pd import numpy as np class DatasetFromPandas(torch.utils.data.Dataset): def __init__(self, file_path): super(DatasetFromPandas, self).__init__() df = pd.read_csv(file_path) self.data = df def __getitem__(self, index): return torch.from_n...
28.266667
72
0.683962
4b701c59bf9cc540f4015c3e1f8b0ad31c64971e
96
py
Python
ditat_etl/utils/__init__.py
ditat-llc/ditat_etl
3d4846ecb9663f9d3de2473aaf4bbcf52f735beb
[ "MIT" ]
4
2021-08-11T23:05:37.000Z
2022-03-22T18:43:35.000Z
ditat_etl/utils/__init__.py
ditat-llc/ditat_etl
3d4846ecb9663f9d3de2473aaf4bbcf52f735beb
[ "MIT" ]
null
null
null
ditat_etl/utils/__init__.py
ditat-llc/ditat_etl
3d4846ecb9663f9d3de2473aaf4bbcf52f735beb
[ "MIT" ]
null
null
null
from .time_functions import time_it from .phones import Phone from .functions import load_table
24
35
0.84375
64e8822d4d35eb57d0e56e06d6371d85b01c5e42
43
py
Python
secret.py
RodrigoErico/enviar_email_com_python
bd4cb8720b1ac383a0fce6f1f3ad36cd0ee973f3
[ "MIT" ]
null
null
null
secret.py
RodrigoErico/enviar_email_com_python
bd4cb8720b1ac383a0fce6f1f3ad36cd0ee973f3
[ "MIT" ]
null
null
null
secret.py
RodrigoErico/enviar_email_com_python
bd4cb8720b1ac383a0fce6f1f3ad36cd0ee973f3
[ "MIT" ]
null
null
null
# Senha do seu e-mail password = '********'
21.5
21
0.534884
28b0e0d21db874043036c1c3eea8ac4a99e92146
14,528
py
Python
lib/exaproxy/supervisor.py
ema/exaproxy
0e34a59994478e7bf7183705903282faafcbfc2d
[ "BSD-2-Clause" ]
1
2016-02-17T23:59:39.000Z
2016-02-17T23:59:39.000Z
lib/exaproxy/supervisor.py
ema/exaproxy
0e34a59994478e7bf7183705903282faafcbfc2d
[ "BSD-2-Clause" ]
null
null
null
lib/exaproxy/supervisor.py
ema/exaproxy
0e34a59994478e7bf7183705903282faafcbfc2d
[ "BSD-2-Clause" ]
null
null
null
# encoding: utf-8 """ supervisor.py Created by Thomas Mangin on 2011-11-29. Copyright (c) 2011-2013 Exa Networks. All rights reserved. """ import os import sys import signal import traceback from socket import has_ipv6 from .util.pid import PID from .util.daemon import Daemon from .reactor.content.manager import C...
34.183529
185
0.71758
4ec0e7d09b73a93e345143a6aeb1de64d185d43d
6,887
py
Python
artists/map_art.py
CMA2401PT/BDXWorkShop
b42e8d72a6e19ed7d3ee12c3c2469472cc62c690
[ "MIT" ]
null
null
null
artists/map_art.py
CMA2401PT/BDXWorkShop
b42e8d72a6e19ed7d3ee12c3c2469472cc62c690
[ "MIT" ]
null
null
null
artists/map_art.py
CMA2401PT/BDXWorkShop
b42e8d72a6e19ed7d3ee12c3c2469472cc62c690
[ "MIT" ]
null
null
null
from importlib import import_module from PIL import Image import numpy as np from numba import jit from canvas import Canvas import json,os with open(os.path.join(os.path.dirname(__file__), "cmap.json"),'r') as f: cmap=json.load(f) def light_pixel(rgb): return [round(255/220*rgb[0]), 255/220*rgb[1], 255/220*rg...
33.595122
129
0.586322
56d615813417f580e21985de4dafdf5a5f7e92cc
6,800
py
Python
cal_emb.py
AngranLi/deep-person-reid
cb8a9b8ee4684f6d7a391ec1cf9ab1fba6471d97
[ "MIT" ]
null
null
null
cal_emb.py
AngranLi/deep-person-reid
cb8a9b8ee4684f6d7a391ec1cf9ab1fba6471d97
[ "MIT" ]
null
null
null
cal_emb.py
AngranLi/deep-person-reid
cb8a9b8ee4684f6d7a391ec1cf9ab1fba6471d97
[ "MIT" ]
null
null
null
import cv2 import os import torch import torchreid import numpy as np import matplotlib.pyplot as plt from torchvision.transforms import functional as F from torchvision import models class Person(): def __init__(self, num=None, bounding_box=[], prob=0, file_name='', embedding=0): self.id = num ...
29.824561
163
0.572059
065e78a352c216703c6f1226a435a549f5d56e56
4,198
py
Python
conans/client/source.py
conanci/conan
8f6978290d095778eff6a9a84ea3f06f723fcfea
[ "MIT" ]
3
2016-11-11T01:09:44.000Z
2017-07-19T13:30:17.000Z
conans/client/source.py
conanci/conan
8f6978290d095778eff6a9a84ea3f06f723fcfea
[ "MIT" ]
6
2017-06-14T11:40:15.000Z
2020-05-23T01:43:28.000Z
conans/client/source.py
conanci/conan
8f6978290d095778eff6a9a84ea3f06f723fcfea
[ "MIT" ]
2
2017-11-29T14:05:22.000Z
2018-09-19T12:43:33.000Z
import os import shutil import six from conans import tools from conans.errors import ConanException, conanfile_exception_formatter, \ ConanExceptionInUserConanfileMethod from conans.paths import EXPORT_TGZ_NAME, EXPORT_SOURCES_TGZ_NAME, CONANFILE, CONAN_MANIFEST from conans.util.files import rmdir, set_dirty, is...
39.603774
92
0.636732
d8fefd12cd11e8f4e53a0faf0c0d8b0ec632971a
4,596
py
Python
tackle/providers/toml/hooks/toml.py
geometry-labs/tackle-box
83424a10416955ba983f0c14ec89bd79673a4282
[ "BSD-3-Clause" ]
1
2021-04-13T23:10:11.000Z
2021-04-13T23:10:11.000Z
tackle/providers/toml/hooks/toml.py
geometry-labs/tackle-box
83424a10416955ba983f0c14ec89bd79673a4282
[ "BSD-3-Clause" ]
4
2021-01-27T00:06:12.000Z
2021-02-12T01:20:32.000Z
tackle/providers/toml/hooks/toml.py
geometry-labs/tackle-box
83424a10416955ba983f0c14ec89bd79673a4282
[ "BSD-3-Clause" ]
1
2021-05-07T05:07:29.000Z
2021-05-07T05:07:29.000Z
"""Hook plugin that inherits a base class and is made available through `type`.""" from __future__ import print_function from __future__ import unicode_literals import logging import re import toml from typing import Union, Dict, List, Any from tackle.models import BaseHook from tackle.utils import merge_configs log...
35.083969
86
0.607267
26130a58535d99a844ac788f6b05017571a665f3
3,678
py
Python
setup.py
CatalinOAlexandru/SRGAN-PyTorch
c3564bf1cef1daf1b5fce4cfdb7f239a0a1a7913
[ "Apache-2.0" ]
null
null
null
setup.py
CatalinOAlexandru/SRGAN-PyTorch
c3564bf1cef1daf1b5fce4cfdb7f239a0a1a7913
[ "Apache-2.0" ]
null
null
null
setup.py
CatalinOAlexandru/SRGAN-PyTorch
c3564bf1cef1daf1b5fce4cfdb7f239a0a1a7913
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Dakewe Biotech 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 required by...
29.190476
101
0.652257
8ae45120273f9884ba6dad062e2dc2143707a1f0
1,674
py
Python
onepassword/utils.py
HoxinhLuo/onepassword
d6a7de9f5d744b1307315823cd0052ce9490b0e3
[ "MIT" ]
null
null
null
onepassword/utils.py
HoxinhLuo/onepassword
d6a7de9f5d744b1307315823cd0052ce9490b0e3
[ "MIT" ]
null
null
null
onepassword/utils.py
HoxinhLuo/onepassword
d6a7de9f5d744b1307315823cd0052ce9490b0e3
[ "MIT" ]
null
null
null
from random import choice, randint, sample from onepassword._import import lower, upper, num, symbols def check_lower_upper(password:str): u, l = 0, 0 for p in password: if p.islower(): l += 1 if p.isupper(): u += 1 return u > 0 and l > 0 def check_digit(password:...
21.189873
69
0.539427
f4412b4e422ad28eda89cf7fa344ddf9ca219590
14,080
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_cfgmgr_rollback_act.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_cfgmgr_rollback_act.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_cfgmgr_rollback_act.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-22T04:04:44.000Z
2020-07-22T04:04:44.000Z
""" Cisco_IOS_XR_cfgmgr_rollback_act This module contains a collection of YANG definitions for Cisco IOS\-XR action package configuration. Copyright (c) 2016 by Cisco Systems, Inc. All rights reserved. """ from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, Y...
30.542299
143
0.570739
49ed461b3d5b8ed27e23ee42f87708c2b1c07632
1,920
py
Python
django_server/olmap/migrations/0011_auto_20210512_1138.py
ForumViriumHelsinki/OLMap
f700a8c84b87714af68840a37cfd8667dde6758c
[ "MIT" ]
null
null
null
django_server/olmap/migrations/0011_auto_20210512_1138.py
ForumViriumHelsinki/OLMap
f700a8c84b87714af68840a37cfd8667dde6758c
[ "MIT" ]
39
2020-12-30T11:03:49.000Z
2021-11-10T12:16:29.000Z
django_server/olmap/migrations/0011_auto_20210512_1138.py
ForumViriumHelsinki/OLMap
f700a8c84b87714af68840a37cfd8667dde6758c
[ "MIT" ]
1
2020-12-08T13:19:33.000Z
2020-12-08T13:19:33.000Z
# Generated by Django 3.1.7 on 2021-05-12 08:38 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('olmap', '0010_link_image_note_addresses'), ] operations = [ migrations.AddField( model_name='ba...
38.4
128
0.623958
a20c2748474d357177a148f4c53f948b1baa7537
551
py
Python
authentication/migrations/0016_adult_favouritebooks.py
shayweitzman/MyAutoBook
b5451e6d2db07c839b61802f94b57824a6b17da8
[ "Unlicense" ]
1
2022-01-24T15:49:32.000Z
2022-01-24T15:49:32.000Z
authentication/migrations/0016_adult_favouritebooks.py
shayweitzman/MyAutoBook
b5451e6d2db07c839b61802f94b57824a6b17da8
[ "Unlicense" ]
null
null
null
authentication/migrations/0016_adult_favouritebooks.py
shayweitzman/MyAutoBook
b5451e6d2db07c839b61802f94b57824a6b17da8
[ "Unlicense" ]
2
2021-01-03T15:19:05.000Z
2021-01-14T08:14:12.000Z
# Generated by Django 3.1.3 on 2020-12-30 15:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('book_catalog', '0011_auto_20201130_2307'), ('authentication', '0015_auto_20201230_1746'), ] operations = [ ...
26.238095
117
0.653358