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
a5c493e1d669f69638902e752cc34fbeef904ee1
1,757
py
Python
groups/views.py
Murtuza47/Star-Social
c15aa6e313ffee00d603482f684556c35a6e713e
[ "MIT" ]
null
null
null
groups/views.py
Murtuza47/Star-Social
c15aa6e313ffee00d603482f684556c35a6e713e
[ "MIT" ]
null
null
null
groups/views.py
Murtuza47/Star-Social
c15aa6e313ffee00d603482f684556c35a6e713e
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.views.generic import CreateView, DetailView, ListView, RedirectView from django.contrib.auth.mixins import PermissionRequiredMixin from django.urls import reverse from django.contrib import messages from .models import Group, GroupMembers # Create your ...
35.14
79
0.668184
df8982df80cf7b26ab28db4f23145cdae466c9bf
1,874
py
Python
src/zojax/catalog/context.py
Zojax/zojax.catalog
1be9ef2cd4516d6c1dcfe7da52c4d438852e7ea6
[ "ZPL-2.1" ]
null
null
null
src/zojax/catalog/context.py
Zojax/zojax.catalog
1be9ef2cd4516d6c1dcfe7da52c4d438852e7ea6
[ "ZPL-2.1" ]
null
null
null
src/zojax/catalog/context.py
Zojax/zojax.catalog
1be9ef2cd4516d6c1dcfe7da52c4d438852e7ea6
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
30.225806
78
0.610459
cc01ef2587c8eea7f3dd25afba881c01e3521a4b
8,279
py
Python
tests/client_tests.py
yo-my-bard/calpads
ea5861a8bbd2c3ef111a99299754e75a8e05aa88
[ "MIT" ]
null
null
null
tests/client_tests.py
yo-my-bard/calpads
ea5861a8bbd2c3ef111a99299754e75a8e05aa88
[ "MIT" ]
5
2020-05-17T21:28:42.000Z
2020-05-26T01:43:51.000Z
tests/client_tests.py
yo-my-bard/calpads
ea5861a8bbd2c3ef111a99299754e75a8e05aa88
[ "MIT" ]
null
null
null
import unittest import os import logging from tempfile import TemporaryDirectory from calpads.client import CALPADSClient #Might explore adding colors to the output for tests #https://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output #Currently this might only work for Linux/Unix? # logging.addL...
47.58046
127
0.550791
d4509390a4dd0b7cc182fa2b4d37d3d8d9410c10
19,580
py
Python
tests/test_code_generator.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2016-06-10T05:55:05.000Z
2016-06-10T05:55:05.000Z
tests/test_code_generator.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2016-02-05T06:59:46.000Z
2016-02-05T06:59:46.000Z
tests/test_code_generator.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2019-03-12T07:49:01.000Z
2019-03-12T07:49:01.000Z
#!/usr/bin/env python """Test for code_generator.py""" import unittest from shatter import code_generator as c from shatter import solver as s from shatter.rules import Rules from shatter.util.helpers import get_function_inputs from tests.generated_code import code_generator_functions as f from tests.testing_helpers ...
36.598131
117
0.541011
1c607ef03cb86592ad0a0684f5dab9a8545602c4
4,269
py
Python
validate_error_messages.py
manu0218/ltfs
bd7d5730af304c0b567c79a14b8a860fd13bca7f
[ "BSD-3-Clause" ]
121
2017-10-12T10:25:24.000Z
2022-03-15T16:27:19.000Z
validate_error_messages.py
manu0218/ltfs
bd7d5730af304c0b567c79a14b8a860fd13bca7f
[ "BSD-3-Clause" ]
174
2017-10-15T01:41:33.000Z
2022-03-26T03:12:43.000Z
validate_error_messages.py
manu0218/ltfs
bd7d5730af304c0b567c79a14b8a860fd13bca7f
[ "BSD-3-Clause" ]
52
2017-10-12T13:41:31.000Z
2022-03-10T03:34:15.000Z
#!/usr/bin/env python2.7 import os import re re_msgid_all = r'(?P<id>(?P<val>[I0-9][0-9]{3,4})[EWID])' re_msgid_all2 = r'"LTFS(?P<id>(?P<val>[0-9]{4,5})[EWID])' re_msgid_bundle = r'(^|[^0-9])(?P<id>(?P<val>[0-9]{4,5})[EWID]):string' msg_used = set() msg_unref = set() def check_line(path, linenum, x): m...
28.651007
83
0.596393
501322ce3c21622dacd21df0cf48e426775cec7a
7,093
py
Python
holidays/countries/united_arab_emirates.py
LaudateCorpus1/python-holidays
57dd2ed2b8659c76f776f10207456e5231c82099
[ "MIT" ]
null
null
null
holidays/countries/united_arab_emirates.py
LaudateCorpus1/python-holidays
57dd2ed2b8659c76f776f10207456e5231c82099
[ "MIT" ]
null
null
null
holidays/countries/united_arab_emirates.py
LaudateCorpus1/python-holidays
57dd2ed2b8659c76f776f10207456e5231c82099
[ "MIT" ]
3
2022-01-28T19:47:20.000Z
2022-03-17T09:26:58.000Z
# -*- coding: utf-8 -*- # python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Authors: dr-prodigy <maurizio....
39.187845
135
0.553785
e77dcc5e96e54a8b76b701946f6fa57c8eaeace3
1,820
py
Python
src/pain.py
Quintenvw/Maki
f88d5a40e14e3ba810787feb16ba888872d82f66
[ "Apache-2.0" ]
6
2020-12-28T11:01:10.000Z
2022-02-16T05:26:00.000Z
src/pain.py
Quintenvw/Maki
f88d5a40e14e3ba810787feb16ba888872d82f66
[ "Apache-2.0" ]
null
null
null
src/pain.py
Quintenvw/Maki
f88d5a40e14e3ba810787feb16ba888872d82f66
[ "Apache-2.0" ]
1
2021-09-01T16:26:24.000Z
2021-09-01T16:26:24.000Z
import numpy as np sz = 35 amt = 1 ts = .07 ps = .02 a = 1 b = 1 pepe = 2 dogs = 5 shrek = 1 cats = sz * dogs * 3 / (8 * (shrek + pepe)) il = np.fromiter(".,-~:;=!*#$@", dtype="<U1") def poggers(a: float, b: float): fuck = np.cos(a) really = np.sin(a) hating = np.cos(b) mathematics = np.sin(b) out...
32.5
108
0.563736
98b124699f33f4fe54cf8f621ef1379958ac13a6
3,396
py
Python
core/reststarter.py
jazlee/centric-ibridge
27158ff64e742f30d789bd46123cb7af7c81d975
[ "Apache-2.0" ]
null
null
null
core/reststarter.py
jazlee/centric-ibridge
27158ff64e742f30d789bd46123cb7af7c81d975
[ "Apache-2.0" ]
1
2022-02-04T06:59:12.000Z
2022-02-04T06:59:12.000Z
core/reststarter.py
jazlee/centric-ibridge
27158ff64e742f30d789bd46123cb7af7c81d975
[ "Apache-2.0" ]
4
2022-02-02T16:51:01.000Z
2022-02-03T04:28:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2022 Busana Apparel Group. All rights reserved. # # This product and it's source code is protected by patents, copyright laws and # international copyright treaties, as well as other intellectual property # laws and treaties. The product is licensed, not s...
36.516129
85
0.623969
17a1004ae0ef74dd4775c1a026b07b94aa1a192c
2,213
py
Python
tornadoshortener/utils.py
nellessen/tornado-shortener
5e611729f4fe3710b6512b4c4cac6e4086b34ea2
[ "MIT" ]
21
2015-01-26T13:00:29.000Z
2021-11-08T08:54:07.000Z
tornadoshortener/utils.py
nellessen/tornado-shortener
5e611729f4fe3710b6512b4c4cac6e4086b34ea2
[ "MIT" ]
3
2015-12-20T18:26:17.000Z
2022-01-25T14:14:19.000Z
tornadoshortener/utils.py
nellessen/tornado-shortener
5e611729f4fe3710b6512b4c4cac6e4086b34ea2
[ "MIT" ]
11
2015-07-04T14:24:08.000Z
2021-12-19T21:24:05.000Z
import re import urllib.error import urllib.parse import urllib.request import time from hashids import Hashids # Compile the regular expression for validating URLs. url_regex = re.compile( r'^(?:http|ftp)s?://' # http:// or https:// r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+' r'(?:[A-Z]{2,6}\.?|[A...
31.614286
87
0.632174
8dd1300a94fbc67d4f766eee0d6eeb32806d351a
14,146
py
Python
sdk/python/pulumi_azure_native/dbformysql/v20171201/get_server.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/dbformysql/v20171201/get_server.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/dbformysql/v20171201/get_server.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
41.605882
493
0.677223
9f63f58cc0574bc23512e5e5f2542d95afc067d6
2,565
py
Python
nodes/binary_operation_node.py
badochov/fun-lang-interpreter
189784b2dbcf8d6b52f671ab0a853c60966431c6
[ "MIT" ]
null
null
null
nodes/binary_operation_node.py
badochov/fun-lang-interpreter
189784b2dbcf8d6b52f671ab0a853c60966431c6
[ "MIT" ]
null
null
null
nodes/binary_operation_node.py
badochov/fun-lang-interpreter
189784b2dbcf8d6b52f671ab0a853c60966431c6
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING from errors.rt_error import RTError from keywords import KEYWORDS from lang_types.lang_type import LangType from nodes.node import Node from token_types import * if TYPE_CHECKING: from context import Context from tokens.lang_token import Tok...
38.283582
82
0.654971
b02a91ede17cfe63b164b2e256b7df8b645963fd
5,286
py
Python
manubot/cite/tests/test_cite_command.py
shuvro-zz/manubot
9023b7fbfa0b235c14a4d702516bc0cd6d3101ed
[ "BSD-3-Clause" ]
1
2019-11-11T05:17:28.000Z
2019-11-11T05:17:28.000Z
manubot/cite/tests/test_cite_command.py
shuvro-zz/manubot
9023b7fbfa0b235c14a4d702516bc0cd6d3101ed
[ "BSD-3-Clause" ]
null
null
null
manubot/cite/tests/test_cite_command.py
shuvro-zz/manubot
9023b7fbfa0b235c14a4d702516bc0cd6d3101ed
[ "BSD-3-Clause" ]
null
null
null
import json import pathlib import shutil import subprocess import pytest from manubot.util import shlex_join from manubot.pandoc.util import get_pandoc_version def test_cite_command_empty(): process = subprocess.run( ["manubot", "cite"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, ...
30.912281
129
0.657397
af340c6d2e270016c3547054a7700660aab0eea1
1,146
py
Python
tests/plugins/test_cdnbg.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
null
null
null
tests/plugins/test_cdnbg.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
1
2021-01-16T14:13:39.000Z
2022-02-09T10:43:44.000Z
tests/plugins/test_cdnbg.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
null
null
null
import pytest from streamlink.plugins.cdnbg import CDNBG valid_urls = [ ("http://bgonair.bg/tvonline",), ("http://bgonair.bg/tvonline/",), ("http://www.nova.bg/live",), ("http://nova.bg/live",), ("http://tv.bnt.bg/bnt1",), ("http://tv.bnt.bg/bnt2",), ("http://tv.bnt.bg/bnt3",), ("http:...
27.95122
69
0.60733
8c86e663fc4e3a1ee3094a165596a3fb06334f28
3,379
py
Python
temboo/core/Library/InfluenceExplorer/LocalBreakdown.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/InfluenceExplorer/LocalBreakdown.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/InfluenceExplorer/LocalBreakdown.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # LocalBreakdown # Returns a breakdown of how much of the money raised was from contributors in the politician's state versus outside the politician's state. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, T...
38.397727
205
0.694288
33d70ab1d7bed3f3d8a467fef09a1fef90900e17
4,411
py
Python
aleph/views/base_api.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
1
2017-07-28T12:54:09.000Z
2017-07-28T12:54:09.000Z
aleph/views/base_api.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
7
2017-08-16T12:49:23.000Z
2018-02-16T10:22:11.000Z
aleph/views/base_api.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
6
2017-07-26T12:29:53.000Z
2017-08-18T09:35:50.000Z
import os import six import logging from apikit import jsonify from flask import render_template, current_app, Blueprint, request from jsonschema import ValidationError from elasticsearch import TransportError from dalet import COUNTRY_NAMES, LANGUAGE_NAMES from aleph.core import get_config, app_title, app_url, schema...
31.507143
72
0.646565
56ba6ec0758e9b6094630995c887879929433573
21,122
py
Python
ckan/lib/dictization/model_save.py
eccenca/ckan
4097fcabd435e50eed8ba672f55c8b6f974a618a
[ "Apache-2.0" ]
1
2015-09-15T22:50:06.000Z
2015-09-15T22:50:06.000Z
ckan/lib/dictization/model_save.py
ODHK/ckan
6eed9b8ce4974c15a869d4c571af12f876eb6ba1
[ "Apache-2.0" ]
null
null
null
ckan/lib/dictization/model_save.py
ODHK/ckan
6eed9b8ce4974c15a869d4c571af12f876eb6ba1
[ "Apache-2.0" ]
3
2017-01-06T23:05:55.000Z
2019-06-13T03:10:53.000Z
import datetime import uuid import logging from sqlalchemy.orm import class_mapper import ckan.lib.dictization as d import ckan.lib.helpers as h import ckan.new_authz as new_authz log = logging.getLogger(__name__) def resource_dict_save(res_dict, context): model = context["model"] session = context["session...
33.903692
92
0.635357
7595262c3a9b9b357412737c112beccb409e066f
1,578
py
Python
qa327/models.py
lucidorangee/CISC-327-Course-Project
b86fe58e809f10a90134cbe33202c9e68a46d13b
[ "MIT" ]
null
null
null
qa327/models.py
lucidorangee/CISC-327-Course-Project
b86fe58e809f10a90134cbe33202c9e68a46d13b
[ "MIT" ]
null
null
null
qa327/models.py
lucidorangee/CISC-327-Course-Project
b86fe58e809f10a90134cbe33202c9e68a46d13b
[ "MIT" ]
null
null
null
from qa327 import app from flask_sqlalchemy import SQLAlchemy """ This file defines all models used by the server These models provide us a object-oriented access to the underlying database, so we don't need to write SQL queries such as 'select', 'update' etc. """ db = SQLAlchemy() db.init_app(app) class User(db.M...
29.773585
118
0.681876
4451bdab6625665264a6d8018e235cd466473a69
9,319
py
Python
src/pytest/test_synonyms.py
filipecosta90/RediSearch
5baf48bdb90c36c08f4ab36bd517ebfecd705d88
[ "Ruby", "MIT" ]
null
null
null
src/pytest/test_synonyms.py
filipecosta90/RediSearch
5baf48bdb90c36c08f4ab36bd517ebfecd705d88
[ "Ruby", "MIT" ]
null
null
null
src/pytest/test_synonyms.py
filipecosta90/RediSearch
5baf48bdb90c36c08f4ab36bd517ebfecd705d88
[ "Ruby", "MIT" ]
1
2019-02-04T11:54:56.000Z
2019-02-04T11:54:56.000Z
def testBasicSynonymsUseCase(env): r = env env.assertOk(r.execute_command( 'ft.create', 'idx', 'schema', 'title', 'text', 'body', 'text')) env.assertEqual(r.execute_command('ft.synadd', 'idx', 'boy', 'child'), 0) env.assertOk(r.execute_command('ft.add', 'idx', 'doc1', 1.0, 'fields', ...
45.019324
154
0.575384
7b294b5de1723078688ab987a8e037a098ab211a
8,949
py
Python
main.py
jionmezc11/IOSDeviceManager
983ae864838c8b6835b182f7b883405a54bdb26a
[ "MIT" ]
null
null
null
main.py
jionmezc11/IOSDeviceManager
983ae864838c8b6835b182f7b883405a54bdb26a
[ "MIT" ]
null
null
null
main.py
jionmezc11/IOSDeviceManager
983ae864838c8b6835b182f7b883405a54bdb26a
[ "MIT" ]
1
2020-07-30T00:18:56.000Z
2020-07-30T00:18:56.000Z
from __future__ import print_function import argparse import os import shutil import subprocess import tempfile import time from collections import defaultdict from concurrent.futures import ThreadPoolExecutor from functools import partial import requests import tornado.web from logzero import logger from tornado imp...
31.510563
76
0.562744
7ab34290a738c3672d557b0e49b0f4f390479340
9,062
py
Python
beta/test/Field_test.py
Odusseus/python
98380cfab0f147fa0b3ac652006e11f482ebbcfc
[ "MIT" ]
null
null
null
beta/test/Field_test.py
Odusseus/python
98380cfab0f147fa0b3ac652006e11f482ebbcfc
[ "MIT" ]
null
null
null
beta/test/Field_test.py
Odusseus/python
98380cfab0f147fa0b3ac652006e11f482ebbcfc
[ "MIT" ]
null
null
null
import Config import Constant from Field import Field from StumpObject import StumpObject def test_Field_Black_Oddline(): Config.Init() field = Field(1) assert field.color.id == Constant.BLACK assert field.color.name == Constant.BLACKNAME def test_Field_Black_evenline(): Config.Init() field = Field(10) ...
27.712538
79
0.709887
94ed4596f9120d4555e8abd4093d328b4545a794
4,584
py
Python
test/functional/mempool_reorg.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
test/functional/mempool_reorg.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
test/functional/mempool_reorg.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool re-org scenarios. Test re-org scenarios with a mempool that contains transactions that sp...
48.252632
123
0.691099
8ab708bd6717e778926945b00e9821204a857b8c
7,451
py
Python
core/evaluate.py
brian220/sketch2pointcloud
55f9011dff89963af57d1bb842f763d2fa3603d2
[ "MIT" ]
1
2021-04-26T01:17:52.000Z
2021-04-26T01:17:52.000Z
core/evaluate.py
brian220/sketch2pointcloud
55f9011dff89963af57d1bb842f763d2fa3603d2
[ "MIT" ]
null
null
null
core/evaluate.py
brian220/sketch2pointcloud
55f9011dff89963af57d1bb842f763d2fa3603d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Developed by Haozhe Xie <cshzxie@gmail.com> import json import numpy as np import os, sys import torch import torch.backends.cudnn import torch.utils.data import cv2 from shutil import copyfile import utils.point_cloud_visualization import utils.data_loaders import utils.data_transforms i...
40.275676
148
0.601262
1dbf56218721b7a8ce1020a07812800a426f54ea
4,978
py
Python
before.py
ArjanCodes/2021-pythonic-factory
da411eb42706a78b3118599a77c4fb8cd0616f54
[ "MIT" ]
3
2021-09-10T19:14:00.000Z
2022-02-23T13:44:20.000Z
before.py
ArjanCodes/2021-pythonic-factory
da411eb42706a78b3118599a77c4fb8cd0616f54
[ "MIT" ]
null
null
null
before.py
ArjanCodes/2021-pythonic-factory
da411eb42706a78b3118599a77c4fb8cd0616f54
[ "MIT" ]
1
2021-12-26T22:48:55.000Z
2021-12-26T22:48:55.000Z
""" Basic video exporting example """ from abc import ABC, abstractmethod from pathlib import Path class VideoExporter(ABC): """Basic representation of video exporting codec.""" @abstractmethod def prepare_export(self, video_data: str) -> None: """Prepares video data for exporting.""" @abst...
28.445714
90
0.683809
e8a0cc9e7231e2ee3a6c2c4ade85288d3b373a44
7,274
py
Python
sdk/python/pulumi_azure_nextgen/timeseriesinsights/v20200515/get_reference_data_set.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/timeseriesinsights/v20200515/get_reference_data_set.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/timeseriesinsights/v20200515/get_reference_data_set.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
41.804598
335
0.680918
191cfd7615beda5cd04e4285ad337832b8ecd442
10,550
py
Python
Full Stack Web Developer Nanodegree/P2 - Multi User Blog/main.py
vkbhandare/Udacity-1
da3e5df92857421609f9ed101e029c6d533cbb72
[ "MIT" ]
149
2017-01-14T09:54:05.000Z
2022-03-06T20:55:08.000Z
Full Stack Web Developer Nanodegree/P2 - Multi User Blog/main.py
vkbhandare/Udacity-1
da3e5df92857421609f9ed101e029c6d533cbb72
[ "MIT" ]
10
2021-03-11T03:48:47.000Z
2022-02-27T09:24:33.000Z
Full Stack Web Developer Nanodegree/P2 - Multi User Blog/main.py
vkbhandare/Udacity-1
da3e5df92857421609f9ed101e029c6d533cbb72
[ "MIT" ]
130
2016-12-30T07:14:29.000Z
2022-01-03T13:05:46.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
31.029412
108
0.577915
4d25b93730c09a9806b835a2a34df37ef973cd77
21,918
py
Python
src/azure-cli/azure/cli/command_modules/acr/_utils.py
WCollins3/azure-cli
1639f71f25e926376e3af7014325329702e028ec
[ "MIT" ]
1
2019-07-27T11:23:36.000Z
2019-07-27T11:23:36.000Z
src/azure-cli/azure/cli/command_modules/acr/_utils.py
WCollins3/azure-cli
1639f71f25e926376e3af7014325329702e028ec
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/acr/_utils.py
WCollins3/azure-cli
1639f71f25e926376e3af7014325329702e028ec
[ "MIT" ]
1
2020-12-22T00:28:33.000Z
2020-12-22T00:28:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.79292
116
0.655534
527cae199f14488a9899e7982cf493bca26672e1
2,066
py
Python
hail/python/setup.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
hail/python/setup.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
hail/python/setup.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import re from setuptools import setup, find_packages with open('hail/hail_pip_version') as f: hail_pip_version = f.read().strip() with open("README.md", "r") as fh: long_description = fh.read() dependencies = [] with open('requirements.txt', 'r') as f: for line in f: ...
30.835821
80
0.608906
bc8d028dda7a85fe78395a5283bde1eb05b8b4f0
3,901
py
Python
main.py
nellsel/yolor-gradcam
9c9d7d2a134b402ae6be19a3086f03d2b25b45fc
[ "MIT" ]
null
null
null
main.py
nellsel/yolor-gradcam
9c9d7d2a134b402ae6be19a3086f03d2b25b45fc
[ "MIT" ]
null
null
null
main.py
nellsel/yolor-gradcam
9c9d7d2a134b402ae6be19a3086f03d2b25b45fc
[ "MIT" ]
null
null
null
import os import time import argparse import numpy as np from models.gradcam import YOLOV5GradCAM from models.yolo_v5_object_detector import YOLOV5TorchObjectDetector import cv2 from deep_utils import Box, split_extension # Arguments parser = argparse.ArgumentParser() parser.add_argument('--model-path', type=str, defa...
43.344444
168
0.675468
07907871de2dcdacc9bb46f125f1ab175089c257
763
py
Python
migrations/versions/6fd085268f00_.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
migrations/versions/6fd085268f00_.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
migrations/versions/6fd085268f00_.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
"""empty message Revision ID: 6fd085268f00 Revises: 089ac06935df Create Date: 2018-12-30 19:07:44.459923 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6fd085268f00' down_revision = '089ac06935df' branch_labels = None depends_on = None def upgrade(): # ...
24.612903
78
0.689384
17128d5c98c237366d97b8984e916cf6276a639c
8,995
py
Python
pysnmp/Dell-SMARTPORTS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/Dell-SMARTPORTS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/Dell-SMARTPORTS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Dell-SMARTPORTS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Dell-SMARTPORTS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:41:52 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
109.695122
1,513
0.801223
591cae7da62794eb4ecaa17d4db41b22c1493997
368
py
Python
pyppeteer_stealth/webgl_vendor.py
MeiK2333/pyppeteer-stealth
0f04fcfbf596052bbbe102d5e68f82956af57338
[ "MIT" ]
138
2019-08-29T21:36:53.000Z
2022-03-28T09:45:22.000Z
pyppeteer_stealth/webgl_vendor.py
mcolella14/pyppeteer_stealth
e511902e2531f63d4329d95a395a55a0102cf461
[ "MIT" ]
15
2020-02-04T18:49:45.000Z
2022-01-23T16:59:46.000Z
pyppeteer_stealth/webgl_vendor.py
mcolella14/pyppeteer_stealth
e511902e2531f63d4329d95a395a55a0102cf461
[ "MIT" ]
33
2019-09-09T15:23:44.000Z
2022-03-31T17:45:11.000Z
from pathlib import Path from pyppeteer.page import Page async def webgl_vendor( page: Page, webgl_vendor: str = "Intel Inc.", renderer: str = "Intel Iris OpenGL Engine", **kwargs ) -> None: await page.evaluateOnNewDocument( Path(__file__).parent.joinpath("js/webgl.vendor.js").read_text()...
21.647059
73
0.654891
317ec3ab7ef9a148e0d14f4d003e9f30f8402a11
1,174
py
Python
src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statements_response_body.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-03-24T21:06:20.000Z
2021-03-24T21:07:58.000Z
src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statements_response_body.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statements_response_body.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.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 ...
35.575758
83
0.618399
6d092ad64180d9cf6af2b3dcc5eb6db8c5145ce4
2,005
py
Python
project/calcification/models.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
31
2019-12-08T14:22:52.000Z
2021-12-27T04:58:12.000Z
project/calcification/models.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
193
2019-12-07T23:27:43.000Z
2022-03-05T08:05:46.000Z
project/calcification/models.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
null
null
null
from django.contrib.postgres.fields import JSONField from django.db import models from images.models import Source class CalcifyRateTable(models.Model): name = models.CharField(max_length=80) description = models.TextField(max_length=500, blank=True) date = models.DateTimeField(auto_now=True, editable=Fa...
34.568966
79
0.623441
3875ca677709f0899f883488f27494a596ab6c7b
2,603
py
Python
sdk/monitor/opentelemetry-exporter-azuremonitor/setup.py
ljos/azure-sdk-for-python
f64b1e269fc4f05a5a2ca68dda3c8f8b4ed0301e
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/monitor/opentelemetry-exporter-azuremonitor/setup.py
ljos/azure-sdk-for-python
f64b1e269fc4f05a5a2ca68dda3c8f8b4ed0301e
[ "MIT" ]
null
null
null
sdk/monitor/opentelemetry-exporter-azuremonitor/setup.py
ljos/azure-sdk-for-python
f64b1e269fc4f05a5a2ca68dda3c8f8b4ed0301e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------...
32.135802
116
0.614675
0b4bde695cb2676548cbfd846be212ea71eabb20
762
py
Python
Chapter06/scapy_ping_collection.py
Jolium/Mastering-Python-Networking-Third-Edition
f8086fc9a28e441cf8c31099d16839c2e868c7fc
[ "MIT" ]
1
2020-05-26T14:44:20.000Z
2020-05-26T14:44:20.000Z
Chapter06/scapy_ping_collection.py
muzhang90/Mastering-Python-Networking-Third-Edition
f8086fc9a28e441cf8c31099d16839c2e868c7fc
[ "MIT" ]
null
null
null
Chapter06/scapy_ping_collection.py
muzhang90/Mastering-Python-Networking-Third-Edition
f8086fc9a28e441cf8c31099d16839c2e868c7fc
[ "MIT" ]
4
2020-05-08T17:53:33.000Z
2021-01-03T04:34:20.000Z
#!/usr/bin/env python3 from scapy.all import * def icmp_ping(destination): # regular ICMP ping ans, unans = sr(IP(dst=destination)/ICMP()) return ans def tcp_ping(destination, dport): ans, unans = sr(IP(dst=destination)/TCP(dport=dport,flags="S")) return ans def udp_ping(destination): ans, u...
22.411765
67
0.62336
f96dd604d2d3bd9a9ab6f0f4bd0cccd91f008c2e
773
py
Python
Django-Curso/tasks/migrations/0001_initial.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Django-Curso/tasks/migrations/0001_initial.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Django-Curso/tasks/migrations/0001_initial.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-19 22:53 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Task', fields=[ ('id', models.AutoField(aut...
29.730769
114
0.564036
cf6e2d91dda9a4d50c1a56498d42114c3518659e
7,260
py
Python
ansible/library/show_interface.py
daall/sonic-mgmt
a4cec7a71181d1782caab46cf1a1d23d5093ba73
[ "Apache-2.0" ]
1
2020-05-29T16:56:38.000Z
2020-05-29T16:56:38.000Z
ansible/library/show_interface.py
daall/sonic-mgmt
a4cec7a71181d1782caab46cf1a1d23d5093ba73
[ "Apache-2.0" ]
1
2018-07-24T06:51:24.000Z
2018-07-24T06:52:13.000Z
ansible/library/show_interface.py
daall/sonic-mgmt
a4cec7a71181d1782caab46cf1a1d23d5093ba73
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from ansible.module_utils.basic import * import time import re DOCUMENTATION = ''' module: show_interface.py version_added: 2.0.0.2 Short_description: Retrieve the show interface status and show interface counter output values Description: - Retrieve the show interface status and show interface...
43.473054
143
0.543664
fc3a842c7dfeca6c758a57b7b6f71fb67d6dd056
5,315
py
Python
lib/webob_0_9/webob/cachecontrol.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/webob_0_9/webob/cachecontrol.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/webob_0_9/webob/cachecontrol.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
""" Represents the Cache-Control header """ import re from webob.updatedict import UpdateDict token_re = re.compile( r'([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?') need_quote_re = re.compile(r'[^a-zA-Z0-9._-]') class exists_property(object): """ Represents a property that either is listed i...
32.018072
92
0.587394
f9dd0f062b2d5d2c057172e1131c42e277a09ec7
760
py
Python
Crop_Images.py
currymike123/DataScience_CNN
1ad96321166a79804f51fbaae07f0f39e8f50a6e
[ "MIT" ]
null
null
null
Crop_Images.py
currymike123/DataScience_CNN
1ad96321166a79804f51fbaae07f0f39e8f50a6e
[ "MIT" ]
1
2021-12-07T23:04:58.000Z
2021-12-07T23:04:58.000Z
Crop_Images.py
currymike123/DataScience_CNN
1ad96321166a79804f51fbaae07f0f39e8f50a6e
[ "MIT" ]
null
null
null
#**Crop to bounding box. Only run with full resolution images.** import PIL import os import os.path from PIL import Image f = r'./cars196_train' #f = r'./cars196_test' index = 0 for file in sorted(os.listdir(f)): # x1 = test_annotations[index][1][0] # y1 = test_annotations[index][1][1] # x2 = test...
23.75
65
0.593421
1b9a1b346ea929f2cb166d79ace9b2682dbc93e6
415
py
Python
line formater/textdef.py
rajkaranswain/line-format
750686202fbaaf9a3142af8ca714b2e84f78effa
[ "MIT" ]
null
null
null
line formater/textdef.py
rajkaranswain/line-format
750686202fbaaf9a3142af8ca714b2e84f78effa
[ "MIT" ]
null
null
null
line formater/textdef.py
rajkaranswain/line-format
750686202fbaaf9a3142af8ca714b2e84f78effa
[ "MIT" ]
null
null
null
def lineformater(phrase): intro = ("who","why","why","how") if phrase.startswith(intro): return f"{phrase.capitalize()}?" else : return f"{phrase.capitalize()}." fineline = [] while True: user_input = input("say to format") if user_input == "\end": break else:...
27.666667
50
0.563855
9aaf103acfe8a312516f2c2aa392a729dc7de9c3
2,552
py
Python
test_Inputs.py
viswambhar-yasa/IGTO
03001db03b17d1d2120740b9d3d7f0efe1f93faf
[ "MIT" ]
4
2020-11-23T15:55:08.000Z
2022-01-15T17:47:19.000Z
test_Inputs.py
bhan5426/IGTO
03001db03b17d1d2120740b9d3d7f0efe1f93faf
[ "MIT" ]
null
null
null
test_Inputs.py
bhan5426/IGTO
03001db03b17d1d2120740b9d3d7f0efe1f93faf
[ "MIT" ]
3
2021-12-27T01:21:33.000Z
2022-03-24T10:50:31.000Z
#AUTHOR : YASA VISWAMBHAR REDDY #MATRICULATION NUMBER : 65074 #Personal Programming Project #------------------------------------# #A python test file to check input.py # command to run all test cases # pytest test_Inputs.py # -----------------------------------# from Preprocessing import Inputs from numpy import ar...
41.836066
185
0.65047
3492d6bdddee45e5b8812d0fe622d8cf7f3168fc
81,427
py
Python
rpython/memory/gctransform/framework.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/memory/gctransform/framework.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/memory/gctransform/framework.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from __future__ import print_function from rpython.annotator import model as annmodel from rpython.rtyper.llannotation import SomeAddress, SomePtr from rpython.rlib import rgc from rpython.rlib.objectmodel import specialize from rpython.rlib.unroll import unrolling_iterable from rpython.rtyper import rmodel, annlowleve...
45.439174
178
0.584892
577cd5db22216d2e539c9bb5cba2cfc89ee5cddc
2,372
py
Python
cle/backends/externs/simdata/__init__.py
zeroSteiner/cle
340fb11d4f6c8f04a5273fe43203dea83e10c22c
[ "BSD-2-Clause" ]
null
null
null
cle/backends/externs/simdata/__init__.py
zeroSteiner/cle
340fb11d4f6c8f04a5273fe43203dea83e10c22c
[ "BSD-2-Clause" ]
null
null
null
cle/backends/externs/simdata/__init__.py
zeroSteiner/cle
340fb11d4f6c8f04a5273fe43203dea83e10c22c
[ "BSD-2-Clause" ]
null
null
null
from collections import defaultdict from typing import List from ...relocation import Relocation from ...symbol import Symbol, SymbolType # pylint: disable=unused-argument,no-self-use class SimData(Symbol): """ A SimData class is used to provide data when there is an unresolved data import symbol. To us...
32.054054
102
0.682125
e0a5c1667a2e83672312c55ef272b446901d6b9d
1,070
py
Python
examples/addons/websocket-inject-message.py
aarnaut/mitmproxy
a8b6f48374b28954f9d8fb5cabbc4fdcaebe9e3a
[ "MIT" ]
null
null
null
examples/addons/websocket-inject-message.py
aarnaut/mitmproxy
a8b6f48374b28954f9d8fb5cabbc4fdcaebe9e3a
[ "MIT" ]
null
null
null
examples/addons/websocket-inject-message.py
aarnaut/mitmproxy
a8b6f48374b28954f9d8fb5cabbc4fdcaebe9e3a
[ "MIT" ]
null
null
null
""" Inject a WebSocket message into a running connection. This example shows how to inject a WebSocket message into a running connection. """ import asyncio from mitmproxy import ctx, http # Simple example: Inject a message as a response to an event def websocket_message(flow: http.HTTPFlow): assert flow.webso...
31.470588
96
0.727103
dc485ec9730c48ba69272cb3bdee329543195919
6,104
py
Python
atoman/filtering/filters/tests/test_coordinationNumber.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
9
2015-11-23T12:13:34.000Z
2021-11-18T05:23:35.000Z
atoman/filtering/filters/tests/test_coordinationNumber.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
1
2017-07-17T20:27:50.000Z
2017-07-23T05:27:15.000Z
atoman/filtering/filters/tests/test_coordinationNumber.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
4
2015-11-23T12:13:37.000Z
2017-05-03T08:24:19.000Z
""" Unit tests for the coordination number filter """ from __future__ import absolute_import from __future__ import unicode_literals import unittest import numpy as np from ....lattice_gen import lattice_gen_fcc, lattice_gen_bcc from .. import coordinationNumberFilter from .. import base from ....system.atoms impor...
33.355191
106
0.610256
d632ea602753784fe42d70b9c87e99ddbcdfea11
2,879
py
Python
Derivate/session1_exercise3.py
jan-philipp-hoffmann/Derivate
0397f75a3afb84a833170b1e89b832d20910d898
[ "BSD-Source-Code" ]
null
null
null
Derivate/session1_exercise3.py
jan-philipp-hoffmann/Derivate
0397f75a3afb84a833170b1e89b832d20910d898
[ "BSD-Source-Code" ]
null
null
null
Derivate/session1_exercise3.py
jan-philipp-hoffmann/Derivate
0397f75a3afb84a833170b1e89b832d20910d898
[ "BSD-Source-Code" ]
null
null
null
# -*- coding: utf-8 -*- # Derivate # -------- # Derivative Finanzinstrumente (created by auxilium) # # Author: Jan-Philipp Hoffmann # Version: 0.1, copyright Friday, 14 January 2022 # Website: https://www.h-da.de # License: No License (private use only) (see LICENSE file) from dcf import CashFlowLegList as _Cas...
33.870588
79
0.65752
eaa325fb15e16c598c8f1b50a6e6b11ead6ffc6a
8,036
py
Python
test/functional/wallet_listreceivedby.py
boris-gleec/GleecBTC
219769f6ed50a5f0d54f0db7e1b7f6d03c1cf500
[ "MIT" ]
5
2020-06-19T11:29:40.000Z
2021-08-20T08:57:24.000Z
test/functional/wallet_listreceivedby.py
boris-gleec/GleecBTC
219769f6ed50a5f0d54f0db7e1b7f6d03c1cf500
[ "MIT" ]
3
2021-03-25T14:28:32.000Z
2021-06-11T04:17:57.000Z
test/functional/wallet_listreceivedby.py
boris-gleec/GleecBTC
219769f6ed50a5f0d54f0db7e1b7f6d03c1cf500
[ "MIT" ]
2
2020-04-17T15:50:08.000Z
2020-08-27T15:32:34.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The GleecBTC Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listreceivedbyaddress RPC.""" from decimal import Decimal from test_framework.test_framework...
47.270588
197
0.640119
354849d6301daf40f1044daf0c0c3a2e883b0403
9,421
py
Python
tests/__init__.py
t-pimpisa/pythainlp17
cc6bc4991dfffd68953dcdb26fd99c22d60a4c1f
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
t-pimpisa/pythainlp17
cc6bc4991dfffd68953dcdb26fd99c22d60a4c1f
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
t-pimpisa/pythainlp17
cc6bc4991dfffd68953dcdb26fd99c22d60a4c1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from collections import Counter import unittest import sys from pythainlp.change import texttoeng, texttothai from pythainlp.collation import collation from pythainlp.corpus import ( alphabet, country, newthaiword, provinc...
31.195364
79
0.502388
37b3dff418ec186d66008279ea52b1efc443ca5e
1,425
py
Python
serverwamp/adapters/asyncio.py
JustinTArthur/server_wamp
bb9fb59c45fb8a4ef6ea9f6b5b266f866f2b00fb
[ "MIT" ]
14
2019-08-08T20:01:54.000Z
2022-01-11T03:38:35.000Z
serverwamp/adapters/asyncio.py
JustinTArthur/aiohttp-server-wamp
bb9fb59c45fb8a4ef6ea9f6b5b266f866f2b00fb
[ "MIT" ]
3
2020-06-22T04:48:06.000Z
2021-11-19T02:32:31.000Z
serverwamp/adapters/asyncio.py
JustinTArthur/aiohttp-server-wamp
bb9fb59c45fb8a4ef6ea9f6b5b266f866f2b00fb
[ "MIT" ]
2
2020-06-22T05:34:39.000Z
2021-11-11T04:04:45.000Z
import asyncio from typing import Set from serverwamp.adapters.async_base import AsyncSupport, AsyncTaskGroup from serverwamp.context import asynccontextmanager _schedule_in_loop = getattr(asyncio, 'create_task', asyncio.ensure_future) class AsyncioAsyncSupport(AsyncSupport): @classmethod @asynccontextmanag...
26.886792
74
0.65614
050024d70fd273aaca04fd5abf6a2ba12aed7bc5
2,023
py
Python
models/notifications/event_schedule.py
tervay/the-blue-alliance
e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
models/notifications/event_schedule.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
models/notifications/event_schedule.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import calendar import logging from models.notifications.notification import Notification class EventScheduleNotification(Notification): def __init__(self, event, next_match=None): self.event = event if not next_match: from helpers.match_helper import MatchHelper upcomin...
34.288136
106
0.628769
8f4333cfa0dc88ab2a8db3493fb67faec27e1faa
1,714
py
Python
src/parser_problem.py
pan-lei/doctor
8b80bae35598d932f795f354cf11bd401831e008
[ "Apache-2.0" ]
2
2020-02-16T09:46:47.000Z
2021-07-15T05:44:59.000Z
src/parser_problem.py
pan-lei/doctor
8b80bae35598d932f795f354cf11bd401831e008
[ "Apache-2.0" ]
null
null
null
src/parser_problem.py
pan-lei/doctor
8b80bae35598d932f795f354cf11bd401831e008
[ "Apache-2.0" ]
2
2018-05-28T10:27:25.000Z
2018-08-01T04:10:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/3/30 13:46 # @Author : 潘磊 # @function: 根据获取到的问题 url ,得到关于病情的对话 import re from bs4 import BeautifulSoup import urllib.parse as up class ProblemParser(object): def parseProblem(self, name, url, html_cont): if url is None or html_cont is None: ...
34.979592
86
0.500583
fcc693dc74f56be6e9f523cd2d601a052adc0b17
172,617
py
Python
scipy/sparse/tests/test_base.py
SuperFluffy/scipy
90534919e139d2a81c24bf08341734ff41a3db12
[ "FSFAP" ]
1
2021-08-23T17:13:43.000Z
2021-08-23T17:13:43.000Z
scipy/sparse/tests/test_base.py
SuperFluffy/scipy
90534919e139d2a81c24bf08341734ff41a3db12
[ "FSFAP" ]
null
null
null
scipy/sparse/tests/test_base.py
SuperFluffy/scipy
90534919e139d2a81c24bf08341734ff41a3db12
[ "FSFAP" ]
null
null
null
# # Authors: Travis Oliphant, Ed Schofield, Robert Cimrman, Nathan Bell, and others """ Test functions for sparse matrices. Each class in the "Matrix class based tests" section become subclasses of the classes in the "Generic tests" section. This is done by the functions in the "Tailored base class for generic tests" ...
36.84461
122
0.532572
53838691a2efb9dc19bf53ab1224804c3a309c5d
29,151
py
Python
tests/models/test_restore.py
mythravarun/pytorch-lightning
5d2a3eab69f80b3c2b7d4f7c40b40a83b0200c39
[ "Apache-2.0" ]
null
null
null
tests/models/test_restore.py
mythravarun/pytorch-lightning
5d2a3eab69f80b3c2b7d4f7c40b40a83b0200c39
[ "Apache-2.0" ]
null
null
null
tests/models/test_restore.py
mythravarun/pytorch-lightning
5d2a3eab69f80b3c2b7d4f7c40b40a83b0200c39
[ "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.869617
116
0.695482
e184c80e8234eb2bddd01aa6a30b9314d5a5104b
3,897
py
Python
examples/adspygoogle/adwords/v201109_1/account_management/get_account_hierarchy.py
nearlyfreeapps/python-googleadwords
b30d90f74248cfd5ca52967e9ee77fc4cd1b9abc
[ "Apache-2.0" ]
2
2020-03-24T10:02:39.000Z
2020-04-22T09:01:59.000Z
examples/adspygoogle/adwords/v201109_1/account_management/get_account_hierarchy.py
nearlyfreeapps/python-googleadwords
b30d90f74248cfd5ca52967e9ee77fc4cd1b9abc
[ "Apache-2.0" ]
null
null
null
examples/adspygoogle/adwords/v201109_1/account_management/get_account_hierarchy.py
nearlyfreeapps/python-googleadwords
b30d90f74248cfd5ca52967e9ee77fc4cd1b9abc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.108108
79
0.66795
a05b049366dcd5da337e0cec27ec53df19d59d41
663
py
Python
faraday/manage.py
stashito/Faraday
1cd232f349195454bed32592930e381444b51f71
[ "MIT" ]
2
2021-02-28T07:34:43.000Z
2021-02-28T16:29:33.000Z
faraday/manage.py
stashito/Faraday
1cd232f349195454bed32592930e381444b51f71
[ "MIT" ]
1
2021-02-28T18:43:15.000Z
2021-02-28T18:43:15.000Z
faraday/manage.py
stashito/Faraday
1cd232f349195454bed32592930e381444b51f71
[ "MIT" ]
1
2021-02-28T16:30:10.000Z
2021-02-28T16:30:10.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'faraday.settings') try: from django.core.management import execute_from_command_line except Impo...
28.826087
73
0.678733
58aa060ae1f376c2a7cf9402a4e5300d5d6005eb
651
py
Python
main.py
sbessai/NN_lib
76778370ff32066cea3e805437113c4d27304eaf
[ "MIT" ]
null
null
null
main.py
sbessai/NN_lib
76778370ff32066cea3e805437113c4d27304eaf
[ "MIT" ]
null
null
null
main.py
sbessai/NN_lib
76778370ff32066cea3e805437113c4d27304eaf
[ "MIT" ]
null
null
null
from mpi4py import MPI from utils import CheckFCNN, PrintFCNN from load import GenerateFCNN, SombreroLoad from evaluate import EvaluateNN import time # # ZONE DE TEST # comm = MPI.COMM_WORLD world_size = comm.Get_size() rank = comm.Get_rank() weights = [] bias = [] func = [] x = [0,0] if rank == 0: # [weights,...
18.083333
55
0.680492
cc8880afc65b23819aec323d43760055138790e7
21,038
py
Python
tests/gce_virtual_machine_test.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
2
2019-04-09T11:15:13.000Z
2019-09-10T11:28:49.000Z
tests/gce_virtual_machine_test.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
null
null
null
tests/gce_virtual_machine_test.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
1
2020-11-04T05:09:39.000Z
2020-11-04T05:09:39.000Z
# Copyright 2019 PerfKitBenchmarker 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 appli...
39.03154
80
0.667697
f29ce5b8c5714c168a3fd07c71cd67c7455f3cdf
409
py
Python
middleware/remote_addr.py
yyyyyyyan/esquer.dev
eb43dc3a8e2db2bba42f3d487c721a69d55ff361
[ "MIT" ]
9
2020-03-02T17:31:07.000Z
2022-01-03T03:36:02.000Z
middleware/remote_addr.py
yyyyyyyan/esquer.dev
eb43dc3a8e2db2bba42f3d487c721a69d55ff361
[ "MIT" ]
6
2021-04-03T21:45:57.000Z
2022-02-10T08:13:13.000Z
middleware/remote_addr.py
yyyyyyyan/esquer.dev
eb43dc3a8e2db2bba42f3d487c721a69d55ff361
[ "MIT" ]
1
2020-06-08T10:53:35.000Z
2020-06-08T10:53:35.000Z
class RemoteAddrMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): request = self.process_request(request) response = self.get_response(request) return response def process_request(self, request): request.META...
31.461538
85
0.679707
77f4c450bc27db724ead34154c8edd18abf37fd3
332
py
Python
exercises/ja/test_02_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/test_02_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/test_02_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert person_hash == nlp.vocab.strings["PERSON"], "正しいhashを代入しましたか?" assert 'nlp.vocab.strings["PERSON"]' in __solution__, "正しいhashを代入しましたか?" assert person_string == "PERSON", "正しい文字列を取得しましたか?" assert "nlp.vocab.strings[person_hash]" in __solution__, "hashから文字列を取得しましたか?" __msg__.good("...
41.5
81
0.710843
effda6f24d25857ca2c90ff50a08c20484de1abc
1,436
py
Python
sandbox/StoneMasonKarel-v1.py
mori-c/cs106a
b7764d9dec1d3abb6968ded265a0c4c4d96920c5
[ "MIT" ]
1
2020-04-13T18:38:26.000Z
2020-04-13T18:38:26.000Z
sandbox/StoneMasonKarel-v1.py
mori-c/cs106a
b7764d9dec1d3abb6968ded265a0c4c4d96920c5
[ "MIT" ]
null
null
null
sandbox/StoneMasonKarel-v1.py
mori-c/cs106a
b7764d9dec1d3abb6968ded265a0c4c4d96920c5
[ "MIT" ]
null
null
null
from karel.stanfordkarel import * """ File: StoneMasonKarel.py ------------------------ When you finish writing code in this file, StoneMasonKarel should solve the "repair the quad" problem from Assignment 1. You should make sure that your program works for all of the sample worlds supplied in the starter folder. ""...
17.728395
66
0.601671
a6154518cf758eb345910b97df9b4a5231f0d811
3,328
py
Python
tests/test_checks.py
Thermondo/django-heroku-connect
609ad3206731af3f6414a604a3559ffb559f0e26
[ "Apache-2.0" ]
18
2017-11-30T12:52:56.000Z
2021-06-30T21:37:28.000Z
tests/test_checks.py
thermondo/django-heroku-connect
609ad3206731af3f6414a604a3559ffb559f0e26
[ "Apache-2.0" ]
105
2017-12-01T10:46:14.000Z
2021-11-22T13:54:31.000Z
tests/test_checks.py
Thermondo/django-heroku-connect
609ad3206731af3f6414a604a3559ffb559f0e26
[ "Apache-2.0" ]
5
2019-07-23T12:28:49.000Z
2020-10-12T18:28:24.000Z
import pytest from django.core import checks from django.core.management import call_command from django.core.management.base import SystemCheckError from heroku_connect.checks import _check_foreign_key, _check_unique_sf_object_name from heroku_connect.db.models import HerokuConnectModel def test_check_foreign_key_t...
29.192982
83
0.595853
209367f12b9de6ec90a2feae07ef2c5803ddd996
1,558
py
Python
emailLambda.py
Derek-Ashmore/AWSLambda-Python-Example
4a7e08fcfe4c8b1536451b76675cd4ad7c6866b6
[ "Apache-2.0" ]
null
null
null
emailLambda.py
Derek-Ashmore/AWSLambda-Python-Example
4a7e08fcfe4c8b1536451b76675cd4ad7c6866b6
[ "Apache-2.0" ]
3
2020-06-05T17:40:11.000Z
2021-06-01T21:56:36.000Z
emailLambda.py
Derek-Ashmore/AWSLambda-Python-Example
4a7e08fcfe4c8b1536451b76675cd4ad7c6866b6
[ "Apache-2.0" ]
null
null
null
""" Email sending Lambda that will email out a message passed to it """ from pysendpulse.pysendpulse import PySendPulse import logging def start(a, b): """ This doesn't matter, but Django's handler requires it. """ return def lambda_handler(event, context): # SendPulse account information and...
32.458333
161
0.612965
b9f18768f1292148f8dc7a2493f73c395d94d69c
34,409
py
Python
zerver/worker/queue_processors.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
null
null
null
zerver/worker/queue_processors.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
null
null
null
zerver/worker/queue_processors.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
null
null
null
# Documented in https://zulip.readthedocs.io/en/latest/subsystems/queuing.html import base64 import copy import datetime import email import email.policy import logging import os import signal import smtplib import socket import tempfile import time import urllib from abc import ABC, abstractmethod from collections imp...
43.500632
133
0.653666
14bdcfbf02df6df44fdbcf93b1ba1672b92886b7
9,997
py
Python
tests/test_versioning.py
bahag-raesenerm/drf-spectacular
fb4c8410357b8a987991888d026167496165e95a
[ "BSD-3-Clause" ]
1,025
2020-03-03T19:29:49.000Z
2022-03-30T03:23:30.000Z
tests/test_versioning.py
bahag-raesenerm/drf-spectacular
fb4c8410357b8a987991888d026167496165e95a
[ "BSD-3-Clause" ]
677
2020-03-06T15:17:31.000Z
2022-03-31T20:59:12.000Z
tests/test_versioning.py
bahag-raesenerm/drf-spectacular
fb4c8410357b8a987991888d026167496165e95a
[ "BSD-3-Clause" ]
145
2020-03-10T09:45:44.000Z
2022-03-26T19:38:43.000Z
# type: ignore import re from unittest import mock import pytest import yaml from django.conf.urls import include from django.db import models from django.urls import path, re_path from rest_framework import generics, mixins, routers, serializers, viewsets from rest_framework.test import APIClient, APIRequestFactory f...
37.724528
104
0.696209
e19979893de789d2842c7c45b9b0224669ae623a
4,271
py
Python
syncli/api/files.py
comodit/synapse-client
9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39
[ "MIT" ]
2
2016-06-23T05:57:37.000Z
2021-02-02T06:47:35.000Z
syncli/api/files.py
comodit/synapse-client
9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39
[ "MIT" ]
null
null
null
syncli/api/files.py
comodit/synapse-client
9bc7fcc09367bc1f6ac7baff6f38fde9cbcdbf39
[ "MIT" ]
2
2017-09-23T00:05:51.000Z
2019-05-13T15:43:48.000Z
from syncli.api.resources import Resources class FilesApi(Resources): _collection = "files" def infos(self, path, md5=False, content=False): """Retrieves the meta data of the file. Owner, group, mode, modification time. @param path: The file path @type path: String @...
27.203822
80
0.568017
a3a2fab94b476c6219c4d3c62b659362002fc4e0
478
py
Python
basic_grammar/logical_operator.py
OnoYuta/python_programing
5d191bef5666c0a826f6daa0bd45bc9dd6603d59
[ "MIT" ]
null
null
null
basic_grammar/logical_operator.py
OnoYuta/python_programing
5d191bef5666c0a826f6daa0bd45bc9dd6603d59
[ "MIT" ]
null
null
null
basic_grammar/logical_operator.py
OnoYuta/python_programing
5d191bef5666c0a826f6daa0bd45bc9dd6603d59
[ "MIT" ]
null
null
null
x = True y = False # 等しい print(x == y) # 等しくない print(x != y) # どちらかがtrue print(x or y) # 両方がtrue print(x and y) # 否定 print(not x) y = [1, 2, 3] x = 1 if x in y: print('in') if 100 not in y: print('not in') is_OK = False if not is_OK: print('NG') l = [1, 2, 3] if len(l) > 0: print('in') else: ...
10.391304
38
0.537657
ccfc94a55b450631730f9939fd421dbd4e2053ad
1,874
py
Python
src/steamspider/menu.py
VinaLx/steam-spider
5e5ed1a3a6978fdddab9104972167ac679f173e2
[ "MIT" ]
null
null
null
src/steamspider/menu.py
VinaLx/steam-spider
5e5ed1a3a6978fdddab9104972167ac679f173e2
[ "MIT" ]
null
null
null
src/steamspider/menu.py
VinaLx/steam-spider
5e5ed1a3a6978fdddab9104972167ac679f173e2
[ "MIT" ]
null
null
null
from workerpool import WorkerPool from worker import Worker from extractor import extractor from database import gamedb import json import crawler import sys class Menu: def __init__(self, db_config, work_config, argv): self._db_config = db_config self._work_config = work_config self._argv ...
26.771429
66
0.595518
900d11aedc3aa70ad91e5ffd4183fa0f21043a15
14,868
py
Python
draw_num_ue.py
T610/MEC
351b83362e0c8a7128bd95d20de2a720a87b5c48
[ "MIT" ]
null
null
null
draw_num_ue.py
T610/MEC
351b83362e0c8a7128bd95d20de2a720a87b5c48
[ "MIT" ]
null
null
null
draw_num_ue.py
T610/MEC
351b83362e0c8a7128bd95d20de2a720a87b5c48
[ "MIT" ]
null
null
null
import numpy as np from wolf_agent import WoLFAgent from matrix_game_local_only import MatrixGame_local from matrix_game_mec_only import MatrixGame_mec from matrix_game import MatrixGame from queue_relay import QueueRelay import matplotlib.pyplot as plt from gpd import GPD ## TLIU from dataToExcel import DTE ...
36.263415
128
0.523742
56e72523cdcf673f0ae8627b800691674b77e279
3,354
py
Python
flax/nn/pooling.py
mfuntowicz/flax
385e9a41f483f6f4997c602ad570b2418e32568f
[ "Apache-2.0" ]
null
null
null
flax/nn/pooling.py
mfuntowicz/flax
385e9a41f483f6f4997c602ad570b2418e32568f
[ "Apache-2.0" ]
null
null
null
flax/nn/pooling.py
mfuntowicz/flax
385e9a41f483f6f4997c602ad570b2418e32568f
[ "Apache-2.0" ]
1
2020-04-06T14:50:58.000Z
2020-04-06T14:50:58.000Z
# Copyright 2020 The Flax 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 wr...
39.458824
78
0.703936
c06298448289e8333379b4bc800015b10e699794
5,812
py
Python
code.py
slott56/gemma-boat-beacon
78fc466351d3ce9104eecdf607ded05ac27c6b43
[ "MIT" ]
null
null
null
code.py
slott56/gemma-boat-beacon
78fc466351d3ce9104eecdf607ded05ac27c6b43
[ "MIT" ]
null
null
null
code.py
slott56/gemma-boat-beacon
78fc466351d3ce9104eecdf607ded05ac27c6b43
[ "MIT" ]
null
null
null
# Gemma IO demo # Adafruit CircuitPython 4.0.0-beta.7 on 2019-04-13; Adafruit CircuitPlayground Express with samd21g18 # V2 -- better FSA design. from digitalio import DigitalInOut, Direction, Pull from touchio import TouchIn import adafruit_dotstar as dotstar import board import time # One pixel connected internally...
25.603524
102
0.587922
4419761313de4300ce0df3c706c464c17c6dca58
412
py
Python
freshbooks/builders/__init__.py
OpenRoadMedia/freshbooks-python-sdk
0bac1f47f2ddbcd353fe54e46242ad71c519e034
[ "MIT" ]
5
2020-11-12T23:18:15.000Z
2021-03-12T09:59:35.000Z
freshbooks/builders/__init__.py
OpenRoadMedia/freshbooks-python-sdk
0bac1f47f2ddbcd353fe54e46242ad71c519e034
[ "MIT" ]
8
2020-12-17T10:51:32.000Z
2021-12-14T15:45:23.000Z
freshbooks/builders/__init__.py
OpenRoadMedia/freshbooks-python-sdk
0bac1f47f2ddbcd353fe54e46242ad71c519e034
[ "MIT" ]
3
2020-12-03T14:44:00.000Z
2022-02-04T17:22:45.000Z
class Builder: def build(self, resource_name: str) -> str: # pragma: no cover """Builds the query string parameters from the Builder. Args: resource_name: The type of resource to generate the query string for. Eg. AccountingResource, ProjectsResource ...
29.428571
81
0.599515
49ea4a330a22d5ee7e85e69ea7190a2fdd5278c6
642
py
Python
kale/types/blockchain_format/sub_epoch_summary.py
grayfallstown/kale-blockchain
1c426a15967813ece30f77b9b7584f2dc5ed554a
[ "Apache-2.0" ]
23
2021-07-05T00:55:47.000Z
2022-02-09T04:30:08.000Z
kale/types/blockchain_format/sub_epoch_summary.py
grayfallstown/kale-blockchain
1c426a15967813ece30f77b9b7584f2dc5ed554a
[ "Apache-2.0" ]
14
2021-07-05T13:08:25.000Z
2021-08-23T18:57:02.000Z
kale/types/blockchain_format/sub_epoch_summary.py
grayfallstown/kale-blockchain
1c426a15967813ece30f77b9b7584f2dc5ed554a
[ "Apache-2.0" ]
5
2021-07-06T23:24:39.000Z
2022-03-15T08:43:03.000Z
from dataclasses import dataclass from typing import Optional from kale.types.blockchain_format.sized_bytes import bytes32 from kale.util.ints import uint8, uint64 from kale.util.streamable import Streamable, streamable @dataclass(frozen=True) @streamable class SubEpochSummary(Streamable): prev_subepoch_summary_...
37.764706
81
0.794393
a9574ac94263e8e77bee0a83bec54407ca2f0fee
1,630
py
Python
experiments/models/__init__.py
oval-group/dfw
212cca7355e7fbdfc6168fd50efd3e3862496c2e
[ "MIT" ]
50
2018-11-23T08:53:01.000Z
2022-03-04T04:15:26.000Z
experiments/models/__init__.py
oval-group/dfw
212cca7355e7fbdfc6168fd50efd3e3862496c2e
[ "MIT" ]
5
2018-12-18T19:15:40.000Z
2019-05-21T12:08:56.000Z
experiments/models/__init__.py
oval-group/dfw
212cca7355e7fbdfc6168fd50efd3e3862496c2e
[ "MIT" ]
11
2018-11-26T17:46:15.000Z
2020-06-13T03:01:37.000Z
import os import torch from .densenet import DenseNet3 from .wide_resnet import WideResNet from collections import OrderedDict def get_model(args): assert args.dataset in ('cifar10', 'cifar100') if args.densenet: model = DenseNet3(args.depth, args.n_classes, args.growth, bottleneck=bool(args.bottlene...
31.346154
100
0.63681
f08907b851c718ad23cb3d416d84eaff95e07cdb
47,386
py
Python
testes/atores_testes.py
sambiase/pythonbirds
5f2d2c00a9189791f0230b28480b4f799c16f0f7
[ "MIT" ]
null
null
null
testes/atores_testes.py
sambiase/pythonbirds
5f2d2c00a9189791f0230b28480b4f799c16f0f7
[ "MIT" ]
null
null
null
testes/atores_testes.py
sambiase/pythonbirds
5f2d2c00a9189791f0230b28480b4f799c16f0f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from os import path import sys project_dir = path.dirname(__file__) project_dir = path.join('..') sys.path.append(project_dir) import unittest from unittest.case import TestCase from atores import Ator, DESTRUIDO, ATIVO, Obstaculo, Porco, PassaroAmarelo...
61.942484
122
0.710252
b810d8a5c9cc4401cfaeb0615473a77da8fc8b19
27,781
py
Python
src/stk/databases/mongo_db/constructed_molecule.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
src/stk/databases/mongo_db/constructed_molecule.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
src/stk/databases/mongo_db/constructed_molecule.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
""" Constructed Molecule MongoDB ============================ """ import itertools from functools import lru_cache from stk.serialization import ( ConstructedMoleculeDejsonizer, ConstructedMoleculeJsonizer, ) from stk.utilities import dedupe from ..constructed_molecule import ConstructedMoleculeDatabase fro...
33.551932
71
0.545445
102f4e9ab86238f60a1ec7864eb11646fa3631cb
1,947
py
Python
2_factory/abstract_factory.py
aodiwei/Python_design_pattern
c2b77e83a234a3b09a444c382b8173fe15257461
[ "MIT" ]
null
null
null
2_factory/abstract_factory.py
aodiwei/Python_design_pattern
c2b77e83a234a3b09a444c382b8173fe15257461
[ "MIT" ]
null
null
null
2_factory/abstract_factory.py
aodiwei/Python_design_pattern
c2b77e83a234a3b09a444c382b8173fe15257461
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 """ __title__ = '' __author__ = 'David Ao' __mtime__ = '2018/7/20' # 抽象工厂方法: 类爆炸 """ from abc import ABCMeta, abstractmethod class PizzaFactory(metaclass=ABCMeta): def __init__(self): pass @abstractmethod def create_veg_pizza(self): pass @abstrac...
21.163043
86
0.664612
b49a2d7ef9eb623646c28e47a8823e75724d226c
5,111
py
Python
news/src/python/train_mf.py
kaplanjs/sample-apps
0c5371de4e9da8a2169cdbf3177d12293bcdcabf
[ "Apache-2.0" ]
null
null
null
news/src/python/train_mf.py
kaplanjs/sample-apps
0c5371de4e9da8a2169cdbf3177d12293bcdcabf
[ "Apache-2.0" ]
null
null
null
news/src/python/train_mf.py
kaplanjs/sample-apps
0c5371de4e9da8a2169cdbf3177d12293bcdcabf
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. import os import sys import numpy import random import torch from mind_data import MindData from metrics import ndcg, mrr, group_auc data_dir = sys.argv[1] if len(sys.argv) > 1 els...
32.762821
111
0.692037
58428864997ecd7f28ecb1b02d1ce3f66c312bb0
5,872
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_home_api/course_metadata/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_home_api/course_metadata/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_home_api/course_metadata/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" General view for the Course Home that contains metadata every page needs. """ from opaque_keys.edx.keys import CourseKey from rest_framework.generics import RetrieveAPIView from rest_framework.response import Response from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication from edx_res...
41.942857
108
0.7047
cd1df19f6afb3dd74fc3877c0e0b286ebaaf919e
1,005
py
Python
roctnet/contrib/sites/migrations/0003_set_site_domain_and_name.py
harshSoni082/roctnet
3d41393bfb643021be8586c38425f85ab656784c
[ "MIT" ]
null
null
null
roctnet/contrib/sites/migrations/0003_set_site_domain_and_name.py
harshSoni082/roctnet
3d41393bfb643021be8586c38425f85ab656784c
[ "MIT" ]
1
2022-03-30T22:28:02.000Z
2022-03-30T22:28:02.000Z
roctnet/contrib/sites/migrations/0003_set_site_domain_and_name.py
harshSoni082/roctnet
3d41393bfb643021be8586c38425f85ab656784c
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
28.714286
129
0.685572
20940138d66b9b7a0c721817b16d2689c9f4108c
31,897
py
Python
fairseq/models/wav2vec/decoar2.py
lingss0918/fairseq
45fbd419c9020eb782eab96e194a1d76a90ee524
[ "MIT" ]
null
null
null
fairseq/models/wav2vec/decoar2.py
lingss0918/fairseq
45fbd419c9020eb782eab96e194a1d76a90ee524
[ "MIT" ]
null
null
null
fairseq/models/wav2vec/decoar2.py
lingss0918/fairseq
45fbd419c9020eb782eab96e194a1d76a90ee524
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from typing import List, Tu...
32.514781
200
0.56695
cd0f104183af36b51fc8b7b19529b91794011c01
3,346
py
Python
grow/sdk/installers/gerrit_installer_test.py
akashkalal/grow
e4813efecb270e00c52c4bb1cb317766a8c92e29
[ "MIT" ]
335
2016-04-02T20:12:21.000Z
2022-03-28T18:55:26.000Z
grow/sdk/installers/gerrit_installer_test.py
kmcnellis/grow
4787f5a01681ef0800e9b4388a56cdbc48209368
[ "MIT" ]
784
2016-04-01T16:56:41.000Z
2022-03-05T01:25:34.000Z
grow/sdk/installers/gerrit_installer_test.py
kmcnellis/grow
4787f5a01681ef0800e9b4388a56cdbc48209368
[ "MIT" ]
54
2016-05-03T13:06:15.000Z
2021-09-24T04:46:23.000Z
"""Tests for Gerrit Installer.""" import unittest import mock from grow.common import base_config from grow.common import utils from grow.pods import pods from grow import storage from grow.sdk.installers import base_installer from grow.sdk.installers import gerrit_installer from grow.testing import testing class Ge...
36.769231
81
0.661088
415de4507781de9374f5d55569ecba157d05744d
2,005
py
Python
setup.py
firerogue/willie
c84cafee3ec5ae192a397c0d5b3a01fcdd4405a0
[ "EFL-2.0" ]
null
null
null
setup.py
firerogue/willie
c84cafee3ec5ae192a397c0d5b3a01fcdd4405a0
[ "EFL-2.0" ]
null
null
null
setup.py
firerogue/willie
c84cafee3ec5ae192a397c0d5b3a01fcdd4405a0
[ "EFL-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf8 from __future__ import unicode_literals, print_function from sopel import __version__ import sys try: from setuptools import setup except ImportError: print( 'You do not have setuptools, and can not install Sopel. The easiest ' 'way to fix this is to install...
33.983051
79
0.670823
8ea9b0cc484fbd4fc5134a6172375bdca9e448f8
466
py
Python
yurlungur/adapters/renderdoc.py
sho7noka/PyDCC
f41315fcb8724781e0c3ea07f51c09019a7c5a95
[ "BSD-3-Clause" ]
47
2018-04-19T12:44:29.000Z
2022-02-04T07:31:53.000Z
yurlungur/adapters/renderdoc.py
sho7noka/PyDCC
f41315fcb8724781e0c3ea07f51c09019a7c5a95
[ "BSD-3-Clause" ]
20
2018-04-11T15:35:30.000Z
2021-07-21T02:28:52.000Z
yurlungur/adapters/renderdoc.py
sho7noka/PyDCC
f41315fcb8724781e0c3ea07f51c09019a7c5a95
[ "BSD-3-Clause" ]
7
2019-01-09T15:38:02.000Z
2022-02-24T21:34:06.000Z
# coding: utf-8 import sys as __sys try: __sys.modules[__name__] = __sys.modules["renderdoc"] import yurlungur for obj in [obj for obj in dir(yurlungur) if obj[0] != "_" and obj != "Qt"]: setattr(__sys.modules[__name__], obj, getattr(yurlungur, obj)) except (ImportError, KeyError): from yurlu...
27.411765
80
0.660944
fef786a268dddc7c99e7951a2c46f9236dfa5399
137
py
Python
scripts/export_claims.py
d-e-h-i-o/bachelor_thesis
64bc5fb2c65621f7a8265bade0328d3f8c950ff3
[ "MIT" ]
1
2021-12-20T12:56:32.000Z
2021-12-20T12:56:32.000Z
scripts/export_claims.py
DFKI-NLP/covid19-law-matching
c704a926977ef5f7fd4867125a2e79f352efd163
[ "MIT" ]
null
null
null
scripts/export_claims.py
DFKI-NLP/covid19-law-matching
c704a926977ef5f7fd4867125a2e79f352efd163
[ "MIT" ]
1
2021-11-24T11:21:33.000Z
2021-11-24T11:21:33.000Z
from training.preprocessing.datasets_ import LawMatchingDatasets datasets = LawMatchingDatasets.load_from_database(for_inspection=True)
34.25
70
0.890511
9b336f81af13513fa27fa254cdd907da835195de
969
py
Python
draw_gephi.py
bnusss/flow_network_embedding
23ff5665ccddf2798bae85192747a4a9dcdf6b44
[ "MIT" ]
2
2020-06-26T01:30:51.000Z
2020-10-23T13:52:59.000Z
draw_gephi.py
bnusss/flow_network_embedding
23ff5665ccddf2798bae85192747a4a9dcdf6b44
[ "MIT" ]
null
null
null
draw_gephi.py
bnusss/flow_network_embedding
23ff5665ccddf2798bae85192747a4a9dcdf6b44
[ "MIT" ]
1
2020-10-23T13:53:02.000Z
2020-10-23T13:53:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Oct 28 21:54:46 2017 @author: shawnwang """ # Basic import from gephistreamer import graph from gephistreamer import streamer # Create a Streamer # adapt if needed : streamer.GephiWS(hostname="localhost", port=8080, workspace="workspace0") # You can ...
27.685714
84
0.739938
04cde6096d610759e150c4f8365831e496a73787
7,274
py
Python
eventory/ext/inktory/pink/engine/value.py
siku2/Eventory
8a88b3328ae83b369a185a1ea266031e9eef04e8
[ "MIT" ]
1
2018-04-06T00:34:46.000Z
2018-04-06T00:34:46.000Z
eventory/ext/inktory/pink/engine/value.py
siku2/Eventory
8a88b3328ae83b369a185a1ea266031e9eef04e8
[ "MIT" ]
null
null
null
eventory/ext/inktory/pink/engine/value.py
siku2/Eventory
8a88b3328ae83b369a185a1ea266031e9eef04e8
[ "MIT" ]
null
null
null
from enum import IntEnum, auto from typing import Any, Optional, TYPE_CHECKING, Tuple from .ink_list import InkList from .object import Object from .path import Path from .story_exception import StoryException if TYPE_CHECKING: from .ink_list import InkListItem class ValueType(IntEnum): Int = auto Float...
27.763359
111
0.610943
82565b9d68ab14924167cb8b4ffdecc05558cb4d
3,685
py
Python
sdk/python/pulumi_aws_native/greengrass/get_subscription_definition.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/greengrass/get_subscription_definition.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/greengrass/get_subscription_definition.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
35.432692
150
0.67137
3c1f72dd628fc6f5c20d42233f1f8ccc8ac8881f
5,942
py
Python
sdk/python/pulumi_azure_native/eventhub/v20180101preview/get_cluster.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventhub/v20180101preview/get_cluster.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventhub/v20180101preview/get_cluster.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
32.293478
157
0.617469
a0c3d55409816997b0b37411d8d9eae7df3afb8d
7,358
py
Python
specAugment/sparse_image_warp_np.py
gotogotogo/Speech-Transformer
100c4f30be68b9a8d852e975d2aaf83d00491db6
[ "MIT" ]
88
2019-04-01T01:34:45.000Z
2022-01-07T15:18:34.000Z
specAugment/sparse_image_warp_np.py
gotogotogo/Speech-Transformer
100c4f30be68b9a8d852e975d2aaf83d00491db6
[ "MIT" ]
14
2019-07-02T05:37:18.000Z
2020-10-21T02:57:59.000Z
specAugment/sparse_image_warp_np.py
gotogotogo/Speech-Transformer
100c4f30be68b9a8d852e975d2aaf83d00491db6
[ "MIT" ]
28
2019-08-20T11:38:18.000Z
2022-01-05T10:45:15.000Z
"""Image warping using sparse flow defined at control points.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import scipy as sp from scipy.interpolate import interp2d from skimage.transform import warp def _get_grid_locations(image_h...
44.325301
89
0.67464
56b8486dd95051e0992c7bc8d6838215834055d9
3,047
py
Python
hw2_code/scripts/surf_bow_generator.py
codinglara/11775-hws
1af6f1458234ab2e44940fc78bd9134dc03a3f27
[ "Apache-2.0" ]
null
null
null
hw2_code/scripts/surf_bow_generator.py
codinglara/11775-hws
1af6f1458234ab2e44940fc78bd9134dc03a3f27
[ "Apache-2.0" ]
null
null
null
hw2_code/scripts/surf_bow_generator.py
codinglara/11775-hws
1af6f1458234ab2e44940fc78bd9134dc03a3f27
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import pickle from sklearn.feature_extraction.text import CountVectorizer from collections import Counter from pathlib import Path file_path = "../surf/" def get_surf_features(list_path, pickle_file, num_clusters, save_path): fileObject = open(pickle_file,'rb') # Get ...
31.739583
108
0.633082
ffe9ff879d93f4f85727b01c88d9cefe2a369dd8
6,623
py
Python
Lecture 9/L9_lecture.py
ShengmiaoJ/uwo-pa-python-course
7890701b63cbdd56deb2fbb7845724ad9809a220
[ "MIT" ]
5
2017-04-21T23:16:12.000Z
2018-12-31T03:01:53.000Z
Lecture 9/L9_lecture.py
ShengmiaoJ/uwo-pa-python-course
7890701b63cbdd56deb2fbb7845724ad9809a220
[ "MIT" ]
null
null
null
Lecture 9/L9_lecture.py
ShengmiaoJ/uwo-pa-python-course
7890701b63cbdd56deb2fbb7845724ad9809a220
[ "MIT" ]
3
2018-05-06T23:09:57.000Z
2022-02-28T00:18:32.000Z
from __future__ import print_function, division ### Multiprocessing and parallelization # See file: PyDomanParallelizer.py ### ######################################### ### Exceptions ### # Let's cause some errors just for fun, and see what happens: # # Zero division: # print(5/0) # # Accessing non-existent e...
24.992453
109
0.63657
d61076e8bb5ff0a5f7eab69f4772fd165513361f
349
py
Python
src/NodeList/SmoothingScaleBaseInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
src/NodeList/SmoothingScaleBaseInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/NodeList/SmoothingScaleBaseInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
text = """ //------------------------------------------------------------------------------ // Explicit instantiation. //------------------------------------------------------------------------------ #include "SmoothingScaleBase.cc" #include "Geometry/Dimension.hh" namespace Spheral { template class SmoothingScaleBa...
29.083333
80
0.381089
dc7b9ddda612513ef184a783a737154029fe0596
8,196
py
Python
thingsboard_gateway/storage/event_storage_reader.py
jaysonjh/thingsboard-gateway
497bbbb415c4c8e63e45ba7f77c56d231dc9bc31
[ "Apache-2.0" ]
1
2020-03-24T06:35:10.000Z
2020-03-24T06:35:10.000Z
thingsboard_gateway/storage/event_storage_reader.py
earldom/thingsboard-gateway
a318ce998900ab78ed010c417645db4f0a98cab9
[ "Apache-2.0" ]
null
null
null
thingsboard_gateway/storage/event_storage_reader.py
earldom/thingsboard-gateway
a318ce998900ab78ed010c417645db4f0a98cab9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020. ThingsBoard # # 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 ...
45.533333
136
0.596144
7c62cbdcbc565aa51ac1eafe0d54c94055074a8e
35,853
py
Python
sklearn/preprocessing/_encoders.py
sparkingdark/scikit-learn
73e8b7d0a984fac8420cb4f948d53470ef9b5abf
[ "BSD-3-Clause" ]
null
null
null
sklearn/preprocessing/_encoders.py
sparkingdark/scikit-learn
73e8b7d0a984fac8420cb4f948d53470ef9b5abf
[ "BSD-3-Clause" ]
null
null
null
sklearn/preprocessing/_encoders.py
sparkingdark/scikit-learn
73e8b7d0a984fac8420cb4f948d53470ef9b5abf
[ "BSD-3-Clause" ]
null
null
null
# Authors: Andreas Mueller <amueller@ais.uni-bonn.de> # Joris Van den Bossche <jorisvandenbossche@gmail.com> # License: BSD 3 clause import warnings import numpy as np from scipy import sparse import numbers from ..base import BaseEstimator, TransformerMixin from ..utils import check_array, is_scalar_nan fro...
39.616575
79
0.564109
935dae97e9d1e90b6457adf93fbc3c17ddecf983
566
py
Python
LC_problems/942.py
Howardhuang98/Blog
cf58638d6d0bbf55b95fe08e43798e7dd14219ac
[ "MIT" ]
null
null
null
LC_problems/942.py
Howardhuang98/Blog
cf58638d6d0bbf55b95fe08e43798e7dd14219ac
[ "MIT" ]
null
null
null
LC_problems/942.py
Howardhuang98/Blog
cf58638d6d0bbf55b95fe08e43798e7dd14219ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : 942.py @Contact : huanghoward@foxmail.com @Modify Time : 2022/5/9 20:48 ------------ """ import collections from typing import List class Solution: def diStringMatch(self, s: str) -> List[int]: low = 0 high = len(s) ...
20.214286
49
0.452297
b263c1817d1f0332d200da6201a0446914a56512
1,385
py
Python
dice_rl/tests/create_dataset_test.py
rajatvd/dice_rl
0e9e1a0963cb99ae3d995aa302fa19094c580d35
[ "Apache-2.0" ]
85
2020-08-05T18:20:15.000Z
2022-03-23T08:44:16.000Z
tests/create_dataset_test.py
google-research/dice_rl
3d9f74fe43c49dfd5d0ce7405a59226a9c139381
[ "Apache-2.0" ]
7
2020-08-16T09:31:11.000Z
2021-07-15T00:41:53.000Z
tests/create_dataset_test.py
rajatvd/dice_rl
0e9e1a0963cb99ae3d995aa302fa19094c580d35
[ "Apache-2.0" ]
10
2020-08-16T04:24:43.000Z
2022-03-11T23:27:20.000Z
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
30.777778
74
0.756679
896a7891bddab068c588c6ff935505e6b589dcb7
448
py
Python
30 Days of Code/30DoC-day-20/30DoC_day_20.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-20/30DoC_day_20.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-20/30DoC_day_20.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
#!/bin/python3 import sys n = int(input().strip()) a = list(map(int, input().strip().split(' '))) swapCount = 0 # bubble sort for i in range(n): for j in range(n - 1): if a[j] > a[j + 1]: temp = a[j] a[j] = a[j + 1] a[j + 1] = temp swapCount += 1 print("Arr...
22.4
59
0.475446
e404b5747d4c9cf9acd19461d5e3407e8cd05c5a
795
py
Python
leanerp/erpadmin/urls.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
null
null
null
leanerp/erpadmin/urls.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
6
2018-02-20T13:59:07.000Z
2018-03-06T17:35:41.000Z
leanerp/erpadmin/urls.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
1
2018-03-06T17:28:07.000Z
2018-03-06T17:28:07.000Z
"""Arya URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
31.8
79
0.699371
2aab4554c4fad3ad775102f44f912afd73847295
2,072
py
Python
day11-b.py
grumble1965/advent2021
039cfeb4e58cbbeb5592b21d37820d492a718b5b
[ "CC0-1.0" ]
null
null
null
day11-b.py
grumble1965/advent2021
039cfeb4e58cbbeb5592b21d37820d492a718b5b
[ "CC0-1.0" ]
null
null
null
day11-b.py
grumble1965/advent2021
039cfeb4e58cbbeb5592b21d37820d492a718b5b
[ "CC0-1.0" ]
null
null
null
import sys from queue import LifoQueue def print_board(board): for row in board: print(row) def valid_point(board, y, x): return y in range(len(board)) and x in range(len(board[0])) def main(): if len(sys.argv) != 2: sys.exit("Please provide a file name for input data") board = []...
27.263158
94
0.453668
258e5c96d0b9f8e5a895995a42b80f74b115b921
163
py
Python
app/db/base.py
murgle2/api-template
ad284ea34ff66b09d9c385c0fa983da35d6a0aad
[ "MIT" ]
null
null
null
app/db/base.py
murgle2/api-template
ad284ea34ff66b09d9c385c0fa983da35d6a0aad
[ "MIT" ]
null
null
null
app/db/base.py
murgle2/api-template
ad284ea34ff66b09d9c385c0fa983da35d6a0aad
[ "MIT" ]
null
null
null
# Import all the models, so that Base has them before being # imported by Alembic from app.db.base_class import Base # noqa from app.model.user import User # noqa
32.6
59
0.773006