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
28315abcf0204c882e0c33b7e5c500d4b3db6aac
7,700
py
Python
pyprocessor/processor/simplewallet_tp.py
1sn0s/sawtooth-simplewallet
93108b462af8aa87d8fd9ffff29226d5fba9e5a8
[ "Apache-2.0" ]
null
null
null
pyprocessor/processor/simplewallet_tp.py
1sn0s/sawtooth-simplewallet
93108b462af8aa87d8fd9ffff29226d5fba9e5a8
[ "Apache-2.0" ]
null
null
null
pyprocessor/processor/simplewallet_tp.py
1sn0s/sawtooth-simplewallet
93108b462af8aa87d8fd9ffff29226d5fba9e5a8
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
38.888889
94
0.630909
bb69b7148f0179ce393dfa08ef09075e8c8c4835
21,437
py
Python
tests/test_transaction.py
Ashiq5/dnspython
5449af5318d88bada34f661247f3bcb16f58f057
[ "ISC" ]
1
2021-11-30T03:16:58.000Z
2021-11-30T03:16:58.000Z
tests/test_transaction.py
Ashiq5/dnspython
5449af5318d88bada34f661247f3bcb16f58f057
[ "ISC" ]
22
2021-05-11T06:07:30.000Z
2022-03-28T07:13:51.000Z
tests/test_transaction.py
Ashiq5/dnspython
5449af5318d88bada34f661247f3bcb16f58f057
[ "ISC" ]
null
null
null
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license import time import pytest import dns.name import dns.rdataclass import dns.rdatatype import dns.rdataset import dns.rrset import dns.transaction import dns.versioned import dns.zone class DB(dns.transaction.TransactionManager): def __i...
35.085106
80
0.588189
c0cddc253e2417d2b35a4227793c9e0b2a3a72a6
1,894
py
Python
splitlog.py
mchlt/splitlog
71d2961f8fa699ea6a638c1a1da14509f25b8358
[ "MIT" ]
null
null
null
splitlog.py
mchlt/splitlog
71d2961f8fa699ea6a638c1a1da14509f25b8358
[ "MIT" ]
null
null
null
splitlog.py
mchlt/splitlog
71d2961f8fa699ea6a638c1a1da14509f25b8358
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Split a large text file (log) into smaller pieces. # Written by Michiel Tiller (https://github.com/mchlt) import sys, os numargs = len(sys.argv) if numargs>=3: try: numsplits=int(sys.argv[2]) if not 2 <= numsplits <= 1024: raise ValueError('Split arg...
25.945205
71
0.564414
b7c75ebd778fbabb17b0ad0e1dc97be355ea8292
62,711
py
Python
src/genie/libs/parser/nxos/tests/test_show_mcast.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
2
2021-01-27T03:37:39.000Z
2021-01-27T03:40:50.000Z
src/genie/libs/parser/nxos/tests/test_show_mcast.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/nxos/tests/test_show_mcast.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
null
null
null
# Python import unittest from unittest.mock import Mock # ATS from pyats.topology import Device # Metaparset from genie.metaparser.util.exceptions import SchemaEmptyParserError, \ SchemaMissingKeyError # Parser from genie.libs.parser.nxos.show_mcast import ShowIpMrouteVrfAll,\ ...
52.521776
145
0.34289
523137bb204f3f4f91827d82695eb12208446a84
8,992
py
Python
nesi/softbox/api/models/ont_models.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
1
2021-04-26T23:15:33.000Z
2021-04-26T23:15:33.000Z
nesi/softbox/api/models/ont_models.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
null
null
null
nesi/softbox/api/models/ont_models.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
null
null
null
# This file is part of the NESi software. # # Copyright (c) 2020 # Original Software Design by Ilya Etingof <https://github.com/etingof>. # # Software adapted by inexio <https://github.com/inexio>. # - Janis Groß <https://github.com/unkn0wn-user> # - Philip Konrath <https://github.com/Connyko65> # - Alexander Dincher <...
58.012903
131
0.672598
4363b77fe2c0cbfc23c2ecffcf299a395a8f623a
1,695
py
Python
docxperiments/pathutils.py
davidseibert/docxperiments
e146e8ae965dd9c75f251215a7bb6c8e2b7d61bb
[ "MIT" ]
1
2019-10-21T22:02:55.000Z
2019-10-21T22:02:55.000Z
docxperiments/pathutils.py
davidseibert/docxperiments
e146e8ae965dd9c75f251215a7bb6c8e2b7d61bb
[ "MIT" ]
1
2019-10-21T22:18:32.000Z
2020-04-30T00:16:56.000Z
docxperiments/pathutils.py
davidseibert/docxperiments
e146e8ae965dd9c75f251215a7bb6c8e2b7d61bb
[ "MIT" ]
1
2019-10-21T22:16:53.000Z
2019-10-21T22:16:53.000Z
# coding: utf-8 import os def _save_path(*args): return os.path.join(*args) PACKAGE_DIR = _save_path(os.path.dirname(__file__)) PROJECT_DIR = _save_path(os.path.dirname(PACKAGE_DIR)) DATA_DIR = _save_path(PACKAGE_DIR, 'data') SPECIMENS_DIR = _save_path(DATA_DIR, 'specimens') EXPERIMENTS_DIR = _save_path(DATA_DIR...
27.33871
101
0.697935
2037e62e9eaa27d4ff1cef1658eb68c98c8b1ab5
29,736
py
Python
test/test_dhcp6.py
chavit/fast-acl-plugin
3ecac10d386edbb7d30ce8ae1facd003391b828f
[ "Apache-2.0" ]
3
2019-11-22T13:24:26.000Z
2021-02-22T12:33:10.000Z
test/test_dhcp6.py
ayourtch/vpp
9e9ba6bd72d3c57d32d2100e4249549ba1295798
[ "Apache-2.0" ]
null
null
null
test/test_dhcp6.py
ayourtch/vpp
9e9ba6bd72d3c57d32d2100e4249549ba1295798
[ "Apache-2.0" ]
1
2021-07-30T13:44:50.000Z
2021-07-30T13:44:50.000Z
from socket import AF_INET6 from scapy.layers.dhcp6 import DHCP6_Advertise, DHCP6OptClientId, \ DHCP6OptStatusCode, DHCP6OptPref, DHCP6OptIA_PD, DHCP6OptIAPrefix, \ DHCP6OptServerId, DHCP6_Solicit, DHCP6_Reply, DHCP6_Request, DHCP6_Renew, \ DHCP6_Rebind, DUID_LL, DHCP6_Release, DHCP6OptElapsedTime, DHCP6Op...
37.880255
79
0.593052
2ee873d6f9f42d58dfae004cdc89d445e5381a58
135
py
Python
src/orders/apps.py
BergLucas/DjangoMollieExample
6cdc28aabe15811fbcf2f50dbaef8c96fab32eb3
[ "MIT" ]
1
2022-01-28T12:06:45.000Z
2022-01-28T12:06:45.000Z
src/orders/apps.py
BergLucas/DjangoMollieExample
6cdc28aabe15811fbcf2f50dbaef8c96fab32eb3
[ "MIT" ]
null
null
null
src/orders/apps.py
BergLucas/DjangoMollieExample
6cdc28aabe15811fbcf2f50dbaef8c96fab32eb3
[ "MIT" ]
null
null
null
from django.apps import AppConfig class OrdersConfig(AppConfig): """This type represents the app config.""" name = "orders"
16.875
46
0.703704
9dda64b1ae8971e3c420c5048f671f0472b22c4a
2,264
py
Python
src/benchmark/scsnet/inference_simulated.py
stephenllh/bcs-unet
be534a25e28cbe3501278d0ee6e2417b2cd737d3
[ "MIT" ]
5
2021-05-04T12:46:32.000Z
2022-03-17T09:33:39.000Z
src/benchmark/scsnet/inference_simulated.py
stephenllh/bcs-unet
be534a25e28cbe3501278d0ee6e2417b2cd737d3
[ "MIT" ]
null
null
null
src/benchmark/scsnet/inference_simulated.py
stephenllh/bcs-unet
be534a25e28cbe3501278d0ee6e2417b2cd737d3
[ "MIT" ]
null
null
null
import os import argparse import numpy as np from pathlib import Path import warnings import cv2 import scipy.ndimage from data.emnist import EMNISTDataModule from data.svhn import SVHNDataModule from data.stl10 import STL10DataModule from .learner import SCSNetLearner from utils import load_config parser = argparse....
28.658228
106
0.681095
cddfccdab080743e87f2d449174bf6a9b51c7d42
5,266
py
Python
deckhand/tests/unit/control/test_api_initialization.py
airshipit/deckhand
3f4458690ddb424c075891badd5b76c9884cbb9e
[ "Apache-2.0" ]
2
2019-05-24T08:36:25.000Z
2019-05-31T17:40:19.000Z
deckhand/tests/unit/control/test_api_initialization.py
airshipit/deckhand
3f4458690ddb424c075891badd5b76c9884cbb9e
[ "Apache-2.0" ]
1
2021-08-31T15:59:27.000Z
2021-08-31T15:59:27.000Z
deckhand/tests/unit/control/test_api_initialization.py
airshipit/deckhand
3f4458690ddb424c075891badd5b76c9884cbb9e
[ "Apache-2.0" ]
4
2019-09-19T18:00:54.000Z
2021-07-19T05:03:18.000Z
# Copyright 2017 AT&T Intellectual Property. All other 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...
45.008547
79
0.642993
87859742c1685989b34d731c249a73b85b0d6889
859
py
Python
remote_ikernel/compat.py
bryan-lunt/remote_ikernel
b6b586bbf690c62a421cbb5314625de354d7a0ef
[ "BSD-2-Clause" ]
18
2016-09-22T01:27:42.000Z
2022-02-10T08:11:32.000Z
remote_ikernel/compat.py
bryan-lunt/remote_ikernel
b6b586bbf690c62a421cbb5314625de354d7a0ef
[ "BSD-2-Clause" ]
1
2020-05-06T08:13:06.000Z
2021-09-23T22:16:09.000Z
remote_ikernel/compat.py
cfriedline/remote_ikernel
07b06df7625e2695242c020a55f822bf25f8929b
[ "BSD-2-Clause" ]
8
2016-02-03T23:21:49.000Z
2021-03-26T09:45:49.000Z
""" compat.py Compatibility layer for transitions from IPython 3.0 to Jupyter structure. Will attempt to import Jupyter versions of modules, but will fall back to IPython if it is not available. Provides the following modules: kernelspec -> {jupyter_client,IPython}.kernel.kernelspec tempdir -> {tempfile,IP...
26.84375
63
0.752037
d15368ffa09172be4b3fb98460736b42e2cfa578
2,967
py
Python
rover/core/science/arduino_pi_Mongo.py
CSUFTitanRover/TitanRover2018
4926d377322a37ba644d7e852faa305fb8bb9b55
[ "Apache-2.0" ]
16
2017-09-01T23:33:17.000Z
2021-01-04T02:41:19.000Z
rover/core/science/arduino_pi_Mongo.py
CSUFTitanRover/TitanRover2018
4926d377322a37ba644d7e852faa305fb8bb9b55
[ "Apache-2.0" ]
56
2017-08-30T01:14:46.000Z
2021-02-28T22:18:44.000Z
rover/core/science/arduino_pi_Mongo.py
CSUFTitanRover/TitanRover2018
4926d377322a37ba644d7e852faa305fb8bb9b55
[ "Apache-2.0" ]
15
2017-09-14T19:55:55.000Z
2020-05-03T19:44:39.000Z
import datetime import serial from pymongo import MongoClient NoOfValues = 14 #No of values written by Arduino to Serial ArduinoPort = '/dev/ttyACM0' BaudRate = 57600 MongoServer = '127.0.0.1' MongoPort = 27017 def getArduinoValues(): printValues = False sensorValues = [] listIndex = 0 ser ...
25.358974
77
0.593192
a6ecd697922fc56c1c8c0af8076810d1ec389df4
11,488
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/container/util.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/container/util.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/container/util.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 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 by applicable law or ag...
34.917933
80
0.703081
76e32fbb1a42658fdd7fe5bf17cc896b05cf29c9
3,348
py
Python
dogechia/server/start_wallet.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
27
2021-07-06T16:33:50.000Z
2022-02-19T21:11:25.000Z
dogechia/server/start_wallet.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
15
2021-07-07T02:32:59.000Z
2021-10-15T21:19:51.000Z
dogechia/server/start_wallet.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
12
2021-07-08T15:36:20.000Z
2022-03-15T08:34:01.000Z
import pathlib from multiprocessing import freeze_support from typing import Dict from dogechia.consensus.constants import ConsensusConstants from dogechia.consensus.default_constants import DEFAULT_CONSTANTS from dogechia.rpc.wallet_rpc_api import WalletRpcApi from dogechia.server.outbound_message import NodeType fro...
33.148515
86
0.707885
6d21a5531c315b362aed54fc79b42cbaf16e6fcd
846
py
Python
docs/source/pytest-example.py
TheMatrix97/gabbi
c8244db323af4591a80e19915d461451d4ad3170
[ "Apache-2.0" ]
145
2015-01-16T23:19:35.000Z
2022-03-15T00:21:54.000Z
docs/source/pytest-example.py
TheMatrix97/gabbi
c8244db323af4591a80e19915d461451d4ad3170
[ "Apache-2.0" ]
250
2015-01-02T11:20:06.000Z
2022-03-22T19:55:18.000Z
docs/source/pytest-example.py
TheMatrix97/gabbi
c8244db323af4591a80e19915d461451d4ad3170
[ "Apache-2.0" ]
49
2015-01-14T16:14:52.000Z
2022-03-21T11:37:26.000Z
"""A sample pytest module.""" # For pathname munging import os # The module that build_tests comes from. from gabbi import driver # We need access to the WSGI application that hosts our service from myapp import wsgiapp # We're using fixtures in the YAML files, we need to know where to # load them from. from myapp....
27.290323
66
0.731678
b48e4407f4edbb013beb0fd338ff7b2765a56eaf
1,325
py
Python
getxwlb/digest.py
ptthisdan/xwdigest
298795ca9580788369a061ad62eee6a8691a10fc
[ "MIT" ]
1
2017-02-16T08:40:44.000Z
2017-02-16T08:40:44.000Z
getxwlb/digest.py
ptthisdan/xwdigest
298795ca9580788369a061ad62eee6a8691a10fc
[ "MIT" ]
null
null
null
getxwlb/digest.py
ptthisdan/xwdigest
298795ca9580788369a061ad62eee6a8691a10fc
[ "MIT" ]
null
null
null
# coding: UTF-8 # Keywords module # To find and sort keywords in news content body # from subprocess import * import os import csv def gen_words(today): cmd = "rm " + today + "*.txt" os.system(cmd) cmd = "scrapy crawl xwlb" os.system(cmd) if os.stat(today+"-content.txt"): cmd = "scws -c ut...
30.813953
162
0.564528
833bec856259def5a71e2062143ac130b24d9160
1,558
py
Python
ebook_converter_bot/bot.py
amrelnagar286/ebook-converter-bot
3cab2afb8360fc8d402c594b391bc68bb3256dba
[ "MIT" ]
31
2021-08-28T08:16:17.000Z
2022-03-22T10:31:02.000Z
ebook_converter_bot/bot.py
amrelnagar286/ebook-converter-bot
3cab2afb8360fc8d402c594b391bc68bb3256dba
[ "MIT" ]
11
2021-08-28T20:09:17.000Z
2022-03-11T11:03:15.000Z
ebook_converter_bot/bot.py
yshalsager/ebook-converter-bot
35c635be61d7e6b31ed9bbdd54e16945c2739447
[ "MIT" ]
3
2021-08-28T19:38:42.000Z
2021-11-09T09:58:16.000Z
#!/usr/bin/env python3.9 """ Telegram Bot""" import asyncio import logging import pickle from pathlib import Path from telethon.sync import TelegramClient from ebook_converter_bot import API_KEY, API_HASH, BOT_TOKEN from ebook_converter_bot.db.curd import generate_analytics_columns from ebook_converter_bot.modules im...
34.622222
110
0.719512
5d67e44b17a135f3c552084162ea2eb5bc966fc0
1,640
py
Python
tdworkflow/schedule.py
CyrillSolomon/tdworkflow
44bdadf832951521396de19a244ca446509316ad
[ "Apache-2.0" ]
2
2021-02-03T09:35:13.000Z
2021-03-26T09:35:00.000Z
tdworkflow/schedule.py
CyrillSolomon/tdworkflow
44bdadf832951521396de19a244ca446509316ad
[ "Apache-2.0" ]
4
2020-07-15T02:49:46.000Z
2021-02-02T00:52:41.000Z
tdworkflow/schedule.py
CyrillSolomon/tdworkflow
44bdadf832951521396de19a244ca446509316ad
[ "Apache-2.0" ]
3
2020-07-15T02:51:21.000Z
2021-08-24T05:41:48.000Z
import dataclasses from datetime import datetime from typing import Dict, List from .attempt import Attempt from .project import Project from .resource import Resource from .util import parse_iso8601 from .workflow import Workflow @dataclasses.dataclass class Schedule(Resource): id: int project: Project ...
25.230769
65
0.687805
391908c384e8acef0a61e5426cd24e7c5db55ca8
11,153
py
Python
marshmallow/utils.py
Nobatek/marshmallow
07c80899c542246da8e69bbff8ba7f78a2d2dd38
[ "MIT" ]
null
null
null
marshmallow/utils.py
Nobatek/marshmallow
07c80899c542246da8e69bbff8ba7f78a2d2dd38
[ "MIT" ]
null
null
null
marshmallow/utils.py
Nobatek/marshmallow
07c80899c542246da8e69bbff8ba7f78a2d2dd38
[ "MIT" ]
1
2022-02-16T15:03:20.000Z
2022-02-16T15:03:20.000Z
# -*- coding: utf-8 -*- """Utility methods for marshmallow.""" from __future__ import absolute_import, unicode_literals import collections import functools import datetime import inspect import json import time import types from calendar import timegm from decimal import Decimal, ROUND_HALF_EVEN, Context, Inexact from...
30.724518
103
0.66305
61efeef9ce1ad08ca0ebe0233ee1386c09f38db6
6,862
py
Python
aries_cloudagent/protocols/discovery/v2_0/tests/test_routes.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
4
2019-07-01T13:12:50.000Z
2019-07-02T20:01:37.000Z
aries_cloudagent/protocols/discovery/v2_0/tests/test_routes.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
51
2021-01-12T05:50:50.000Z
2022-03-25T06:03:13.000Z
aries_cloudagent/protocols/discovery/v2_0/tests/test_routes.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
12
2019-06-24T22:17:44.000Z
2019-07-02T19:49:31.000Z
from asynctest import TestCase as AsyncTestCase from asynctest import mock as async_mock from .....admin.request_context import AdminRequestContext from .....storage.error import StorageError from .. import routes as test_module from ..manager import V20DiscoveryMgr from ..messages.queries import Queries, QueryItem ...
38.550562
86
0.617604
49812cf6d559a21fd6b7b60b587f06bbfec7d690
2,314
py
Python
tesseract_tupianchuli.py
nengchibawanfan/zhihuuser
bcea1a047d9f6c89cecd93eebb2133499493192e
[ "Apache-2.0" ]
null
null
null
tesseract_tupianchuli.py
nengchibawanfan/zhihuuser
bcea1a047d9f6c89cecd93eebb2133499493192e
[ "Apache-2.0" ]
null
null
null
tesseract_tupianchuli.py
nengchibawanfan/zhihuuser
bcea1a047d9f6c89cecd93eebb2133499493192e
[ "Apache-2.0" ]
null
null
null
import requests from bs4 import BeautifulSoup import urllib.request import pytesseract from PIL import Image from PIL import ImageEnhance def shibie(filepath): # 打开图片 img = Image.open(filepath) img = img.convert('RGB') enhancer = ImageEnhance.Color(img) enhancer = enhancer.enhance(0) enhancer =...
19.283333
133
0.650389
45f5a6a3cb168d7a82e49acb9143639bf500285c
2,488
py
Python
extends.py
SagaFav/etlpy
5cc98ecc2b8e6590a7410195174dbe85beeb4927
[ "Apache-2.0" ]
448
2016-03-17T13:00:57.000Z
2022-02-17T06:00:25.000Z
extends.py
Hanfee/etlpy
5cc98ecc2b8e6590a7410195174dbe85beeb4927
[ "Apache-2.0" ]
6
2016-03-17T12:06:25.000Z
2019-08-31T01:12:18.000Z
extends.py
Hanfee/etlpy
5cc98ecc2b8e6590a7410195174dbe85beeb4927
[ "Apache-2.0" ]
204
2016-03-17T04:00:00.000Z
2022-03-22T10:28:05.000Z
# encoding: UTF-8 import re; spacere = re.compile("[ ]{2,}"); spacern = re.compile("(^\r\n?)|(\r\n?$)") def getkeys(generator): count=0; s=set(); for r in generator: s=s|r.keys(); count+=1; if count>=20: return list(s); return list(s) def ReplaceLongSpace(txt): ...
19.286822
137
0.526527
a6b5c5c05cfde1134f9e2d6fb4bb7fca2644d791
1,125
py
Python
emukit/test_functions/branin.py
EmuKit/Emukit
2df951e42c82400192220eb18af428f3eb764f6c
[ "Apache-2.0" ]
272
2018-09-18T11:56:37.000Z
2020-10-10T22:21:25.000Z
emukit/test_functions/branin.py
EmuKit/Emukit
2df951e42c82400192220eb18af428f3eb764f6c
[ "Apache-2.0" ]
278
2018-09-19T15:38:50.000Z
2020-10-14T13:45:24.000Z
emukit/test_functions/branin.py
EmuKit/Emukit
2df951e42c82400192220eb18af428f3eb764f6c
[ "Apache-2.0" ]
88
2018-09-18T11:56:48.000Z
2020-09-23T13:33:55.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import numpy as np from emukit.core import ContinuousParameter, ParameterSpace def branin_function(): """ Two-dimensional Branin, often used as an optimization benchmark. Based on: https://w...
21.634615
107
0.539556
080c41b1b7d2abbdfd622ba471889be2d07939a7
1,454
py
Python
python/tests/test_nessie_client.py
harshm-dremio/nessie
865205d906e7ca97d2476211fb3d771bb68e906a
[ "Apache-2.0" ]
432
2020-10-01T14:59:45.000Z
2022-03-31T22:34:22.000Z
python/tests/test_nessie_client.py
harshm-dremio/nessie
865205d906e7ca97d2476211fb3d771bb68e906a
[ "Apache-2.0" ]
3,114
2020-10-01T15:06:04.000Z
2022-03-31T16:29:56.000Z
python/tests/test_nessie_client.py
harshm-dremio/nessie
865205d906e7ca97d2476211fb3d771bb68e906a
[ "Apache-2.0" ]
61
2020-10-01T14:59:31.000Z
2022-03-23T09:56:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `pynessie` package.""" import pytest from pynessie import init from pynessie.error import NessieConflictException from pynessie.model import Branch from pynessie.model import Entries @pytest.mark.vcr def test_client_interface_e2e() -> None: """Test clien...
38.263158
89
0.713893
089b605e0fce6362212cd212569c2ffb894ba453
1,001
py
Python
LeetCode_Solutions/938. Range Sum of BST.py
foxfromworld/Coding-Interview-Preparation-with-LeetCode-and-An-Algorithm-Book
e0c704d196fe0d8452ea639a92f2a75c3b46a9b0
[ "BSD-2-Clause" ]
null
null
null
LeetCode_Solutions/938. Range Sum of BST.py
foxfromworld/Coding-Interview-Preparation-with-LeetCode-and-An-Algorithm-Book
e0c704d196fe0d8452ea639a92f2a75c3b46a9b0
[ "BSD-2-Clause" ]
null
null
null
LeetCode_Solutions/938. Range Sum of BST.py
foxfromworld/Coding-Interview-Preparation-with-LeetCode-and-An-Algorithm-Book
e0c704d196fe0d8452ea639a92f2a75c3b46a9b0
[ "BSD-2-Clause" ]
null
null
null
# Source : https://leetcode.com/problems/range-sum-of-bst/ # Author : foxfromworld # Date : 27/04/2021 # Second attempt (recursive) class Solution: def rangeSumBST(self, root: TreeNode, low: int, high: int) -> int: self.retV = 0 def sub_rangeSumBST(root): if root: if low <= root.val <= high: ...
27.054054
68
0.594406
e68cf191f47244567398e16ca5b1aaaca20afacb
28
py
Python
__init__.py
craigyk/pystar
985e1c0dab718e9ab8459df4fe11ae4364585fa9
[ "MIT" ]
null
null
null
__init__.py
craigyk/pystar
985e1c0dab718e9ab8459df4fe11ae4364585fa9
[ "MIT" ]
null
null
null
__init__.py
craigyk/pystar
985e1c0dab718e9ab8459df4fe11ae4364585fa9
[ "MIT" ]
1
2019-12-02T22:28:22.000Z
2019-12-02T22:28:22.000Z
from star import load, save
14
27
0.785714
4c280eb8458b885fd3a46f3d0f0ab5a844fa353e
2,440
py
Python
mythril/laser/ethereum/function_managers/exponent_function_manager.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
1
2021-12-20T06:12:20.000Z
2021-12-20T06:12:20.000Z
mythril/laser/ethereum/function_managers/exponent_function_manager.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
null
null
null
mythril/laser/ethereum/function_managers/exponent_function_manager.py
ljhOfGithub/mythril
7f543571643685595ade954ba6c6315d5f748730
[ "MIT" ]
null
null
null
import logging from typing import Dict, List, Optional, Tuple from mythril.laser.smt import ( And, BitVec, Bool, Function, URem, symbol_factory, ) log = logging.getLogger(__name__) class ExponentFunctionManager: """ Uses an uninterpreted function for exponentiation with the followin...
32.972973
88
0.621311
b41d31a97731af8ce110b7c2dd463543ba9e88a8
36,109
py
Python
tests/providers/google/cloud/operators/test_bigquery.py
wegamekinglc/incubator-airflow
fc174635b0729253a86e8c877d6d8551a815a2cb
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
7
2018-11-19T12:05:13.000Z
2020-01-17T08:30:38.000Z
tests/providers/google/cloud/operators/test_bigquery.py
wegamekinglc/incubator-airflow
fc174635b0729253a86e8c877d6d8551a815a2cb
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/providers/google/cloud/operators/test_bigquery.py
wegamekinglc/incubator-airflow
fc174635b0729253a86e8c877d6d8551a815a2cb
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-03-03T01:44:08.000Z
2021-03-03T01:44:08.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
37.770921
110
0.638677
9e8de039baf2e4c740083ba939b9b839240393ed
977
py
Python
patreon/schemas/deliverable_spec.py
CircuitSacul/patreon-python
9fd21760e68ee838d153a6cfc2c580ffcc00df40
[ "Apache-2.0" ]
100
2015-11-30T03:04:00.000Z
2022-03-16T08:55:49.000Z
patreon/schemas/deliverable_spec.py
CircuitSacul/patreon-python
9fd21760e68ee838d153a6cfc2c580ffcc00df40
[ "Apache-2.0" ]
23
2016-06-12T08:00:00.000Z
2021-08-31T03:39:45.000Z
patreon/schemas/deliverable_spec.py
CircuitSacul/patreon-python
9fd21760e68ee838d153a6cfc2c580ffcc00df40
[ "Apache-2.0" ]
40
2015-12-02T03:05:08.000Z
2022-03-22T08:55:20.000Z
# deliverable_spec.py # This file is auto-generated from the same code that generates # https://docs.patreon.com. Community pull requests against this # file may not be accepted. import pytest from patreon.schemas import deliverable @pytest.fixture def attributes(): return [ 'completed_at', 'deli...
25.710526
75
0.713408
7896706b271203e7634bb4b142e2d0b300b5814a
2,582
py
Python
Bucket_and_subfolders.py
evohnave/myAWS
b35548c2d1189792b7b2d02de0b9c0982b12598c
[ "MIT" ]
null
null
null
Bucket_and_subfolders.py
evohnave/myAWS
b35548c2d1189792b7b2d02de0b9c0982b12598c
[ "MIT" ]
null
null
null
Bucket_and_subfolders.py
evohnave/myAWS
b35548c2d1189792b7b2d02de0b9c0982b12598c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Eric Vanhove """ # Imports import boto3 # Constants #Make sure you provide / in the end unless no prefix prefix = '' bucket_name = 'aws-logs-079119988851-us-west-2' path = '231856634451o.jpg' fileName = '231856634451o.jpg' # Ensure that your credentials are in place s3client =...
31.108434
85
0.569713
e20e3363f76144c440e362722c23d662926fb7eb
716
py
Python
galry/__init__.py
fiath/test
b50898dafa90e93da48f573e0b3feb1bb6acd8de
[ "MIT", "BSD-3-Clause" ]
55
2015-01-12T06:08:36.000Z
2021-08-13T17:24:50.000Z
galry/__init__.py
fiath/test
b50898dafa90e93da48f573e0b3feb1bb6acd8de
[ "MIT", "BSD-3-Clause" ]
2
2017-03-08T12:04:22.000Z
2017-07-27T07:13:00.000Z
galry/__init__.py
fiath/test
b50898dafa90e93da48f573e0b3feb1bb6acd8de
[ "MIT", "BSD-3-Clause" ]
10
2015-01-01T10:51:38.000Z
2021-12-10T02:53:45.000Z
"""Galry: high-performance interactive visualization package in Python.""" from debugtools import * # import PyQT or Pyside # from python_qt_binding import * from qtools.qtpy import * from qtools.utils import * from colors import * from manager import * from cursors import * from icons import * from tools import...
22.375
74
0.773743
b69d1a8a454945e42f94c87d8c6dbca53aafc06b
20,519
py
Python
PythonWorkspace/Evaluation/GenerateTopology2Data.py
marvsz/Proactive-Caching-ACDC
fd580698fad9278f45c64f5bf012f165da02be80
[ "Apache-2.0" ]
8
2018-06-25T23:44:04.000Z
2021-12-10T14:11:50.000Z
PythonWorkspace/Evaluation/GenerateTopology2Data.py
marvsz/Proactive-Caching-ACDC
fd580698fad9278f45c64f5bf012f165da02be80
[ "Apache-2.0" ]
1
2018-04-03T03:50:15.000Z
2018-04-03T03:50:15.000Z
PythonWorkspace/Evaluation/GenerateTopology2Data.py
marvsz/Proactive-Caching-ACDC
fd580698fad9278f45c64f5bf012f165da02be80
[ "Apache-2.0" ]
2
2018-12-05T21:01:53.000Z
2020-04-17T08:49:27.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns import glob import os import math import datetime as dt from matplotlib.ticker import FuncFormatter import matplotlib.dates as mdate pd.__version__ def parseData(filename): Results={'Run':[],'Repetition':[],'Admission':[],...
50.539409
268
0.524587
01711badb2cbfd146f9d15b5f56b6cae810d0e1c
6,297
py
Python
ppapi/generate_ppapi_include_tests.py
Gitman1989/chromium
2b1cceae1075ef012fb225deec8b4c8bbe4bc897
[ "BSD-3-Clause" ]
2
2017-09-02T19:08:28.000Z
2021-11-15T15:15:14.000Z
ppapi/generate_ppapi_include_tests.py
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
null
null
null
ppapi/generate_ppapi_include_tests.py
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2020-11-04T07:22:28.000Z
2020-11-04T07:22:28.000Z
#!/usr/bin/python # Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script should be run manually on occasion to make sure the gyp file and # the includes tests are up to date. # It does the foll...
36.610465
80
0.735271
8a3c0f03126e25cbd17946a5a7c81e22d30b3f4d
821
py
Python
palm_tree/coconut_1/models.py
m-hintz-42/a-palm-tree
57656874335f4dfae13cf720668f2c5391621618
[ "MIT" ]
null
null
null
palm_tree/coconut_1/models.py
m-hintz-42/a-palm-tree
57656874335f4dfae13cf720668f2c5391621618
[ "MIT" ]
null
null
null
palm_tree/coconut_1/models.py
m-hintz-42/a-palm-tree
57656874335f4dfae13cf720668f2c5391621618
[ "MIT" ]
null
null
null
from palm_tree import db class Data(db.Model): id = db.Column(db.Integer, primary_key=True) uuid = db.Column(db.Integer) response = db.Column(db.Text) datetime = db.Column(db.DateTime) def __init__(self, uuid, response, datetime): self.uuid = uuid self.response = response ...
25.65625
50
0.613886
4ccc8df1356db8bd08571c1845f788cd223e8846
2,082
py
Python
rignet/train_.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-03-20T08:10:29.000Z
2022-03-20T08:10:29.000Z
rignet/train_.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-03-21T04:54:10.000Z
2022-03-21T04:54:10.000Z
rignet/train_.py
lelechen63/CIPS-3D
49e34ecab7410ac357a3d467e347cd39ee442bd5
[ "MIT" ]
1
2022-02-25T01:28:10.000Z
2022-02-25T01:28:10.000Z
import os from argparse import ArgumentParser from collections import OrderedDict import torch import torch.nn as nn import random import pickle import pytorch_lightning as pl from options.train_options import TrainOptions from pytorch_lightning.callbacks import ModelCheckpoint import numpy as np import sys sys.path.ap...
30.173913
132
0.670029
3ec2c09c1aad7e2424ae5ce5022b9abe96043e0b
1,552
py
Python
plotConfiguration2D.py
Tongming0710/DataGenerationPlastic
ccaaecf8d793af954a83dce175539c95b82eb349
[ "MIT" ]
1
2022-01-21T07:48:52.000Z
2022-01-21T07:48:52.000Z
plotConfiguration2D.py
guanshaoheng/MCCDataGeneration
11cd3f0398f18f1b6c1ab4f63dd6e90aea829642
[ "MIT" ]
null
null
null
plotConfiguration2D.py
guanshaoheng/MCCDataGeneration
11cd3f0398f18f1b6c1ab4f63dd6e90aea829642
[ "MIT" ]
1
2022-03-31T09:00:27.000Z
2022-03-31T09:00:27.000Z
import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import numpy as np def plotConfiguration2D(epsList, scaleFactor=1., sampleIndex=None): """ :param epsList: List of the strain [00, 11, 01] :return: """ epsList *= scaleFactor n = len(epsList) nodeCoordinate = n...
29.283019
109
0.603737
fb6277c6f2f1eee146708eb13eb9b208f04bb938
106
py
Python
src/teras/dataset/__init__.py
greyblue9/teras
22ea292f746d92730250986aeebbe6a839ad9349
[ "MIT" ]
8
2017-07-02T14:24:18.000Z
2021-12-18T08:17:41.000Z
src/teras/dataset/__init__.py
greyblue9/teras
22ea292f746d92730250986aeebbe6a839ad9349
[ "MIT" ]
1
2018-03-01T10:18:45.000Z
2018-03-01T13:59:47.000Z
src/teras/dataset/__init__.py
greyblue9/teras
22ea292f746d92730250986aeebbe6a839ad9349
[ "MIT" ]
4
2019-01-22T01:03:05.000Z
2020-05-26T07:45:20.000Z
from teras.dataset import loader # NOQA from teras.dataset.dataset import Dataset, BucketDataset # NOQA
35.333333
64
0.801887
98fed41bc8d21d5b09020779576d474da7b8b972
961
py
Python
openbrain/models.py
jsheunis/online-brain
5d9cc3e2bb6170af4fa668f37044ed2520a79e17
[ "MIT" ]
null
null
null
openbrain/models.py
jsheunis/online-brain
5d9cc3e2bb6170af4fa668f37044ed2520a79e17
[ "MIT" ]
12
2019-08-23T09:31:13.000Z
2022-02-09T10:56:38.000Z
openbrain/models.py
jsheunis/online-brain
5d9cc3e2bb6170af4fa668f37044ed2520a79e17
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy # Define the SQLAlchemy instance here in order to avoid circular imports db = SQLAlchemy() class GeneratedImage(db.Model): volume_id = db.Column(db.Integer, primary_key=True) experiment_name = db.Column(db.ForeignKey('experiment.experiment_name')) volume_name = db....
34.321429
76
0.716961
9f4c898e6196be0d98e7a72f6741bc4529fa8ea1
7,482
py
Python
var/spack/repos/builtin/packages/singularity/package.py
asmaahassan90/spack
b6779d2e31170eb77761f59bed640afbc469e4ec
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/singularity/package.py
asmaahassan90/spack
b6779d2e31170eb77761f59bed640afbc469e4ec
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/singularity/package.py
asmaahassan90/spack
b6779d2e31170eb77761f59bed640afbc469e4ec
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-10-29T09:08:17.000Z
2019-10-29T09:08:17.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import llnl.util.tty as tty import os import shutil class Singularity(MakefilePackage): '''Sing...
42.754286
104
0.66092
ed35825cd82806d3be1ec20b7ee7ae70e3169134
998
py
Python
tests/test_faction_load.py
minsis/pyxwb2
e3f9c898a5669b47bb5b8ab344fdcb37fc98d7f0
[ "MIT" ]
null
null
null
tests/test_faction_load.py
minsis/pyxwb2
e3f9c898a5669b47bb5b8ab344fdcb37fc98d7f0
[ "MIT" ]
null
null
null
tests/test_faction_load.py
minsis/pyxwb2
e3f9c898a5669b47bb5b8ab344fdcb37fc98d7f0
[ "MIT" ]
null
null
null
import unittest from pyxwb2.models.base import Faction from pyxwb2.models.exceptions import FactionMissingException class TestFactionLoad(unittest.TestCase): def setUp(self): self.known_faction = "scumandvillainy" self.unknown_faction = "lukeskywalkerisababy" self.uncanonical_known = "Re...
27.722222
68
0.725451
486d06581557bd19869a0370dfcaaf61b7c618cb
213
py
Python
aula07/ex03.py
FelipeMachad0/python
20b4e4264beca6914815c5c4c11ec7805d99e8d2
[ "MIT" ]
1
2021-12-10T21:48:12.000Z
2021-12-10T21:48:12.000Z
aula07/ex03.py
FelipeMachad0/python
20b4e4264beca6914815c5c4c11ec7805d99e8d2
[ "MIT" ]
null
null
null
aula07/ex03.py
FelipeMachad0/python
20b4e4264beca6914815c5c4c11ec7805d99e8d2
[ "MIT" ]
null
null
null
n = int(input('digite um número: ')) dobro = n*2 triplo = n*3 raiz_quadrada = n**(1/2) print('o dobro de {} é {}\no triplo de {} é {}\na raiz quadrada de {:.2f} é {}'.format(n, dobro, n, triplo, n, raiz_quadrada))
42.6
126
0.615023
33e9aefa0c17a6b18b0866f66492d5585186fbcd
3,223
py
Python
py/bot/commands/auto_align_gear.py
Team5045/2017-bot
e97902c7efa46b8c85245d389ce85e4274c7fd73
[ "Unlicense", "MIT" ]
null
null
null
py/bot/commands/auto_align_gear.py
Team5045/2017-bot
e97902c7efa46b8c85245d389ce85e4274c7fd73
[ "Unlicense", "MIT" ]
null
null
null
py/bot/commands/auto_align_gear.py
Team5045/2017-bot
e97902c7efa46b8c85245d389ce85e4274c7fd73
[ "Unlicense", "MIT" ]
null
null
null
""" auto_align_turret.py ========= """ from wpilib.command import Command TARGET_FOUND = 'gear_target_found' TARGET_CENTER = 'gear_target_details--center' X, Y = 0, 1 # Coordinate indices DESIRED_X_POSITION = 0.4 DESIRED_Y_POSITION = 0.3 CENTERING_X_TOLERANCE = 0.02 CENTERING_Y_TOLERANCE = 0.02 SPEEDS = { 'x_...
30.40566
79
0.579274
165ad5ddf2b348324a33702f62b1e16c34217953
1,641
py
Python
proj_folio/urls.py
kirillperesh/project_portfolio
dc9205b658aba6cf0434e610f367b4d090160279
[ "MIT" ]
null
null
null
proj_folio/urls.py
kirillperesh/project_portfolio
dc9205b658aba6cf0434e610f367b4d090160279
[ "MIT" ]
null
null
null
proj_folio/urls.py
kirillperesh/project_portfolio
dc9205b658aba6cf0434e610f367b4d090160279
[ "MIT" ]
null
null
null
"""proj_folio URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
34.1875
107
0.725168
4da95f4f72257fa82d18b08a1af4872097a883b6
8,263
py
Python
horovod/run/http/http_server.py
hcyang99/horovod
825cc197468548da47dcd38872d5b4ba6e6a125b
[ "Apache-2.0" ]
1
2020-05-07T08:26:36.000Z
2020-05-07T08:26:36.000Z
horovod/run/http/http_server.py
kyocen/horovod
e9b1e228ff92eb7f65d9aea2d36f23b327df28bd
[ "Apache-2.0" ]
null
null
null
horovod/run/http/http_server.py
kyocen/horovod
e9b1e228ff92eb7f65d9aea2d36f23b327df28bd
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Uber Technologies, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.920319
92
0.624834
636631ed397af67975df99a9e19b5ddd5648d150
366
py
Python
PROGATE/PYTHON_V_page01_class01.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
PROGATE/PYTHON_V_page01_class01.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
PROGATE/PYTHON_V_page01_class01.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
class MenuItem: def __init__(self, name, price): self.name = name self.price = price def info(self): return self.name + ': ¥' + str(self.price) def get_total_price(self, count): total_price = self.price * count if count >= 3: total_price *= 0.9 ...
21.529412
50
0.532787
bac04f2436e88fb4b608a2adf275aef6a24c6791
701
py
Python
testcoco.py
thesuperorange/Domain-Adaptive-Faster-RCNN-PyTorch
bcde744a486b25ec1d6e4b023da3ce0c8e5d72a7
[ "MIT" ]
null
null
null
testcoco.py
thesuperorange/Domain-Adaptive-Faster-RCNN-PyTorch
bcde744a486b25ec1d6e4b023da3ce0c8e5d72a7
[ "MIT" ]
null
null
null
testcoco.py
thesuperorange/Domain-Adaptive-Faster-RCNN-PyTorch
bcde744a486b25ec1d6e4b023da3ce0c8e5d72a7
[ "MIT" ]
null
null
null
import torch from maskrcnn_benchmark.data.datasets.coco import COCODataset ann_path = 'datasets/MI3/annotations/instances_test.json' #ann_path = 'datasets/MI3_simple.json' image_root = 'datasets/MI3/JPEGImages' #ann_path='datasets/cityscapes/annotations/instancesonly_filtered_gtFine_test.json' #ann_path='datasets/c...
29.208333
83
0.824536
c892792fb613ab683e00cec61fa4bbf8f409f0ce
665
py
Python
documents/mobi.py
masonasons/quinread
242d61b6e0863752bf8bac73614840b7b306f6de
[ "MIT" ]
null
null
null
documents/mobi.py
masonasons/quinread
242d61b6e0863752bf8bac73614840b7b306f6de
[ "MIT" ]
null
null
null
documents/mobi.py
masonasons/quinread
242d61b6e0863752bf8bac73614840b7b306f6de
[ "MIT" ]
null
null
null
from .base import BaseDocument import mobi import shutil from . html import HtmlDocument from .epub import EpubDocument from .pdf import PdfDocument class MobiDocument(BaseDocument): def __init__(self, path): self.path = path def read(self): final = "" dir, file = mobi.extract(self.path) if file.lower().end...
22.931034
71
0.703759
ee1e9148a8f0ea8740745168fdc9f9fb766da69a
1,570
py
Python
RFIDIOt-master/hitag2brute.py
kaosbeat/datakamp
7ac90249b34aa4c3604fa4965ab124ab82d64ac3
[ "MIT" ]
null
null
null
RFIDIOt-master/hitag2brute.py
kaosbeat/datakamp
7ac90249b34aa4c3604fa4965ab124ab82d64ac3
[ "MIT" ]
null
null
null
RFIDIOt-master/hitag2brute.py
kaosbeat/datakamp
7ac90249b34aa4c3604fa4965ab124ab82d64ac3
[ "MIT" ]
null
null
null
#!/usr/bin/python # hitag2brute.py - Brute Force hitag2 password # # Adam Laurie <adam@algroup.co.uk> # http://rfidiot.org/ # # This code is copyright (c) Adam Laurie, 2008, All rights reserved. # For non-commercial use only, the following terms apply - for all other # uses, please contact the author: # # ...
22.428571
73
0.67707
c5e2e118cdf64a1b6ca02bc1466cba59dbcfa892
3,483
py
Python
scrapers/management/commands/grab_rcr_srp.py
sunlightlabs/realtimecongress-server-old
885a1bc87f87afb9bfcd35b53c1585f73ba78f51
[ "BSD-3-Clause" ]
null
null
null
scrapers/management/commands/grab_rcr_srp.py
sunlightlabs/realtimecongress-server-old
885a1bc87f87afb9bfcd35b53c1585f73ba78f51
[ "BSD-3-Clause" ]
null
null
null
scrapers/management/commands/grab_rcr_srp.py
sunlightlabs/realtimecongress-server-old
885a1bc87f87afb9bfcd35b53c1585f73ba78f51
[ "BSD-3-Clause" ]
null
null
null
from BeautifulSoup import BeautifulSoup, SoupStrainer from congress_utils import extract_legislation, congress_from_year, clean_bill_num #from docserver.public_site.models import Document, DocumentLegislation from django.core.management.base import NoArgsCommand from scrape_utils import * import datetime, time import r...
63.327273
228
0.589434
26b14cb47b1cd9851c52e603072dcf23bf8b870a
1,391
py
Python
homedisplay/repeating_tasks/migrations/0007_auto_20150224_1046.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2016-11-28T04:35:06.000Z
2016-11-28T04:35:06.000Z
homedisplay/repeating_tasks/migrations/0007_auto_20150224_1046.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
160
2015-01-01T20:59:29.000Z
2016-04-25T13:36:52.000Z
homedisplay/repeating_tasks/migrations/0007_auto_20150224_1046.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2015-02-25T21:24:01.000Z
2015-02-25T21:24:01.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('repeating_tasks', '0006_auto_20150211_2020'), ] operations = [ migrations.AddField( model_name='task', ...
38.638889
174
0.598131
3e2177e4dc15b80f0a4594c720d2f24876899c25
52,435
py
Python
linkedin_api/linkedin.py
deermeapart/linkedin-api
1ec8a827790a450da96f69b12a0409b176d8954e
[ "MIT" ]
null
null
null
linkedin_api/linkedin.py
deermeapart/linkedin-api
1ec8a827790a450da96f69b12a0409b176d8954e
[ "MIT" ]
null
null
null
linkedin_api/linkedin.py
deermeapart/linkedin-api
1ec8a827790a450da96f69b12a0409b176d8954e
[ "MIT" ]
null
null
null
""" Provides linkedin api-related code """ import base64 import json import logging import random import uuid from operator import itemgetter from time import sleep, time from urllib.parse import quote, urlencode from linkedin_api.client import Client from linkedin_api.utils.helpers import ( append_update_post_fie...
36.013049
195
0.578202
f87f94815f0c5164723c4475e6f8d9d6372e1773
5,088
py
Python
src/recommenders/itembased.py
JouniVatanen/NLP-and-Deep-Learning
2fddcc2c39787713d33d17e80565de4ed073ca60
[ "MIT" ]
1
2020-05-24T06:55:31.000Z
2020-05-24T06:55:31.000Z
Machine Learning/recommenders/itembased.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
null
null
null
Machine Learning/recommenders/itembased.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
1
2020-03-16T13:11:14.000Z
2020-03-16T13:11:14.000Z
# https://udemy.com/recommender-systems # https://deeplearningcourses.com/recommender-systems from __future__ import print_function, division from builtins import range, input # Note: you may need to update your version of future # sudo pip install -U future import pickle import numpy as np import pandas as pd import ...
29.581395
82
0.689858
b2594187016653096352a753e529db4597a565e4
69,321
py
Python
Switchboard/switchboard_dialog.py
naong2/UEPython
9c3317b7a3e61cb5b8d6d62abeca0ccb5cd0c45a
[ "MIT" ]
null
null
null
Switchboard/switchboard_dialog.py
naong2/UEPython
9c3317b7a3e61cb5b8d6d62abeca0ccb5cd0c45a
[ "MIT" ]
null
null
null
Switchboard/switchboard_dialog.py
naong2/UEPython
9c3317b7a3e61cb5b8d6d62abeca0ccb5cd0c45a
[ "MIT" ]
1
2022-03-23T09:24:11.000Z
2022-03-23T09:24:11.000Z
# Copyright Epic Games, Inc. All Rights Reserved. import datetime import logging import os import threading from typing import List, Optional, Set from PySide2 import QtCore from PySide2 import QtGui from PySide2 import QtUiTools from PySide2 import QtWidgets from switchboard import config from switchboard import co...
41.018343
159
0.690887
4b53c7ed39bc259cc64a988ac5dbad2dde72609b
61,099
py
Python
python/ccxt/async_support/exmo.py
yrossslav/ccxt
45b3887cfc9cef3d9cf2539ba61d2098d56e0235
[ "MIT" ]
3
2020-03-04T06:38:18.000Z
2022-01-23T13:40:12.000Z
python/ccxt/async_support/exmo.py
yrossslav/ccxt
45b3887cfc9cef3d9cf2539ba61d2098d56e0235
[ "MIT" ]
null
null
null
python/ccxt/async_support/exmo.py
yrossslav/ccxt
45b3887cfc9cef3d9cf2539ba61d2098d56e0235
[ "MIT" ]
1
2021-02-05T13:45:24.000Z
2021-02-05T13:45:24.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
44.467977
365
0.490401
214c853d7fce65dab909e3cfd43176ce2d9244e2
6,489
py
Python
canvas_workflow_helpers/tests/test_banner_alerts_for_contacts.py
canvas-medical/open-source-sdk
a7a17f1950f63c59646037358c9a437dbd827413
[ "Apache-2.0" ]
12
2022-02-25T18:15:43.000Z
2022-03-30T18:43:02.000Z
canvas_workflow_helpers/tests/test_banner_alerts_for_contacts.py
ReyBernDia/open-source-sdk
d6570a6096658e5da70262bb4fbcedae12ca8523
[ "Apache-2.0" ]
1
2022-03-18T22:21:03.000Z
2022-03-18T22:22:36.000Z
canvas_workflow_helpers/tests/test_banner_alerts_for_contacts.py
ReyBernDia/open-source-sdk
d6570a6096658e5da70262bb4fbcedae12ca8523
[ "Apache-2.0" ]
4
2022-02-25T18:15:33.000Z
2022-02-25T19:14:17.000Z
from pathlib import Path from canvas_workflow_kit.constants import CHANGE_TYPE from canvas_workflow_kit.utils import parse_class_from_python_source from .base import WorkflowHelpersBaseTest from canvas_workflow_kit import events from canvas_workflow_kit.intervention import BannerAlertIntervention from canvas_workflow_...
41.33121
79
0.672369
c9f23da152c2f02001d0d8d96f5fe2d252717176
1,830
py
Python
ecosante/api/schemas/indice_atmo.py
betagouv/ecosante
cc7dd76bb65405ba44f432197de851dc7e22ed38
[ "MIT" ]
null
null
null
ecosante/api/schemas/indice_atmo.py
betagouv/ecosante
cc7dd76bb65405ba44f432197de851dc7e22ed38
[ "MIT" ]
167
2020-06-30T08:59:38.000Z
2021-03-18T14:36:22.000Z
ecosante/api/schemas/indice_atmo.py
betagouv/ecosante
cc7dd76bb65405ba44f432197de851dc7e22ed38
[ "MIT" ]
2
2020-04-08T11:56:17.000Z
2020-04-09T14:04:15.000Z
from marshmallow.utils import pprint from .indice import FullIndiceSchema, IndiceDetailsSchema, IndiceSchema, NestedIndiceSchema from marshmallow import fields, pre_dump from datetime import timedelta class NestedIndiceATMOSchema(NestedIndiceSchema): value = fields.Integer(attribute='valeur') color = fields.S...
35.882353
91
0.606011
b139d4710141d5dc208c7e4bd99a37f6ef08ffa0
1,755
py
Python
ambari-server/src/main/resources/stacks/HDP/2.0._/services/HBASE/package/scripts/hbase_master.py
flipkart-incubator/incubator-ambari
bf747346312170834c6beb89a60c8624b47aa288
[ "Apache-2.0" ]
2
2015-07-29T22:50:10.000Z
2021-11-10T16:05:59.000Z
ambari-server/src/main/resources/stacks/HDP/2.0._/services/HBASE/package/scripts/hbase_master.py
flipkart-incubator/incubator-ambari
bf747346312170834c6beb89a60c8624b47aa288
[ "Apache-2.0" ]
1
2021-11-04T13:31:30.000Z
2021-11-04T13:31:30.000Z
ambari-server/src/main/resources/stacks/HDP/2.0._/services/HBASE/package/scripts/hbase_master.py
isabella232/incubator-ambari
bf747346312170834c6beb89a60c8624b47aa288
[ "Apache-2.0" ]
9
2016-01-08T21:11:06.000Z
2021-11-10T16:05:51.000Z
#!/usr/bin/env python2.6 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License...
25.808824
72
0.720798
60b47ef0e1a348c1e2125d6072707ef489fb69c4
12,238
py
Python
src/boardcomputer/uart_handler/ticp_message.py
eddex/pren2
336afade5a6f46eb955b1e9c0c1e5ebda9e19b9b
[ "MIT" ]
null
null
null
src/boardcomputer/uart_handler/ticp_message.py
eddex/pren2
336afade5a6f46eb955b1e9c0c1e5ebda9e19b9b
[ "MIT" ]
null
null
null
src/boardcomputer/uart_handler/ticp_message.py
eddex/pren2
336afade5a6f46eb955b1e9c0c1e5ebda9e19b9b
[ "MIT" ]
null
null
null
import logging import sys from uart_handler.ticp_common import TICPCommand, TICPMessageType class TICPMessagePrototype(object): def __init__(self, message_type: TICPMessageType, payload: bytes): """ Object representation of TICP Messages with their corresponding payload. This class is de...
33.346049
99
0.612355
9377e79a4db059d9ee541fb5d17eb0c1a9bfadf9
1,900
py
Python
lib/processors/logic.py
webyaml/core
3820c61c24624375e2d993c2817b6ff3cadb9960
[ "Apache-2.0" ]
10
2018-05-05T17:11:08.000Z
2022-02-09T20:28:11.000Z
lib/processors/logic.py
webyaml/core
3820c61c24624375e2d993c2817b6ff3cadb9960
[ "Apache-2.0" ]
6
2018-05-07T20:15:31.000Z
2018-09-27T23:27:26.000Z
lib/processors/logic.py
webyaml/core
3820c61c24624375e2d993c2817b6ff3cadb9960
[ "Apache-2.0" ]
1
2021-08-09T04:21:56.000Z
2021-08-09T04:21:56.000Z
# path: lib/processors # filename: logic.py # description: WSGI application logic processors ''' # make python2 strings and dictionaries behave like python3 from __future__ import unicode_literals try: from builtins import dict, str except ImportError: from __builtin__ import dict, str Copyright 2017 Mark Mader...
18.269231
73
0.644737
12cb85e24ed6a262750f04b35fefadb638fbb037
1,206
py
Python
settings/configurations/BioCARS, Allio Diffractometer_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
settings/configurations/BioCARS, Allio Diffractometer_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
settings/configurations/BioCARS, Allio Diffractometer_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
Ensemble.ip_address = 'nih-instrumentation.aps.anl.gov:2000' MicroscopeCamera.ImageWindow.Center = (680, 512) MicroscopeCamera.Mirror = True MicroscopeCamera.NominalPixelSize = 0.000526 MicroscopeCamera.Orientation = 0 MicroscopeCamera.camera.IP_addr = 'id14b-prosilica1.cars.aps.anl.gov' MicroscopeCamera.x_scale = 1.0 ...
38.903226
69
0.798507
c3c31a95b2dbd6bff7e7e86d3201bb00f1222b81
3,606
py
Python
bl2_skingen/props.py
Square789/BL2_skingen
801cfcc42dcbaab95c3cacae257f33cf5e55176a
[ "MIT" ]
1
2019-11-14T10:37:43.000Z
2019-11-14T10:37:43.000Z
bl2_skingen/props.py
Square789/BL2_skingen
801cfcc42dcbaab95c3cacae257f33cf5e55176a
[ "MIT" ]
15
2019-10-30T23:46:33.000Z
2021-05-31T20:03:53.000Z
bl2_skingen/props.py
Square789/BL2_skingen
801cfcc42dcbaab95c3cacae257f33cf5e55176a
[ "MIT" ]
1
2019-11-14T10:41:30.000Z
2019-11-14T10:41:30.000Z
""" Module for processing and unifying the props files. """ class SkippedNonNodelikeWarning(Warning): pass class UnifiedProps(): """ Serves as a namespace to make root attributes, ScalarParameterValues, TextureParameterValues and VectorParameterValues more accessible. """ def __init__(self, proc_dict): """ ...
24.530612
83
0.704382
ce2318413f6454abd0104763272368cb3194a7ad
1,938
py
Python
src/yass/detect/deduplication.py
jaib1/yass
9899c7d63c522a26b160ac7a223c794dfd3e23c6
[ "Apache-2.0" ]
59
2017-10-29T02:21:17.000Z
2022-03-23T01:12:27.000Z
src/yass/detect/deduplication.py
jaib1/yass
9899c7d63c522a26b160ac7a223c794dfd3e23c6
[ "Apache-2.0" ]
257
2017-10-25T17:11:36.000Z
2021-10-21T19:12:00.000Z
src/yass/detect/deduplication.py
jaib1/yass
9899c7d63c522a26b160ac7a223c794dfd3e23c6
[ "Apache-2.0" ]
24
2017-10-28T19:59:44.000Z
2021-07-14T09:56:45.000Z
import numpy as np import torch def deduplicate_gpu(spike_index_torch, energy_torch, recording_shape, channel_index, max_window=5): #os.environ["CUDA_VISIBLE_DEVICES"] = str(CONFIG.resources.gpu_id) # find device device = spike_index_torch.device # initialize e...
36.566038
88
0.647059
f099e068649a3baae44db53bfeba7e211acc691d
595
py
Python
tsdata/migrations/0007_auto_20170316_1215.py
OpenDataPolicingNC/Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
25
2015-09-12T23:10:52.000Z
2021-03-24T08:39:46.000Z
tsdata/migrations/0007_auto_20170316_1215.py
OpenDataPolicingNC/Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
159
2015-07-01T03:57:23.000Z
2021-04-17T21:09:19.000Z
tsdata/migrations/0007_auto_20170316_1215.py
copelco/NC-Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
8
2015-10-02T16:56:40.000Z
2020-10-18T01:16:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tsdata', '0006_create_statefacts'), ] operations = [ migrations.AddField( model_name='dataset', name...
23.8
64
0.596639
63096c2d17a23010f6a47786a0986ebb5a2b16b7
13,939
py
Python
dags/cm360_segmentology_dag.py
isabella232/starthinker
d6bbecce5ef4a543fa2a19ce981c3381061e003a
[ "Apache-2.0" ]
null
null
null
dags/cm360_segmentology_dag.py
isabella232/starthinker
d6bbecce5ef4a543fa2a19ce981c3381061e003a
[ "Apache-2.0" ]
1
2021-06-18T14:54:19.000Z
2021-06-18T14:54:19.000Z
dags/cm360_segmentology_dag.py
isabella232/starthinker
d6bbecce5ef4a543fa2a19ce981c3381061e003a
[ "Apache-2.0" ]
null
null
null
########################################################################### # # 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 # # https://www.apache.org/l...
31.044543
568
0.44501
b10063e245c7a943865b8eef375a1de9d32bafce
2,373
py
Python
project_1_func.py
ruejo2013/udacity_data_science_project_1
de9950ac028720dca2935c7964ccda3363e0b5df
[ "CNRI-Python" ]
null
null
null
project_1_func.py
ruejo2013/udacity_data_science_project_1
de9950ac028720dca2935c7964ccda3363e0b5df
[ "CNRI-Python" ]
null
null
null
project_1_func.py
ruejo2013/udacity_data_science_project_1
de9950ac028720dca2935c7964ccda3363e0b5df
[ "CNRI-Python" ]
null
null
null
import pandas as py import numpy as np from collections import defaultdict # function to fillna in the property type column def fill_property(df, col_1, col_2): """ Function to fillna in the property type column Inputs: df : a pandas dataframe col_1 : column with missing values col_2 : colu...
25.793478
74
0.626212
d725b2ade4e7dc201cff42183207a97cfebadc30
8,507
py
Python
blockchain.py
marmul2/blockchain
b1ed15b6ec6f8397c0a26f23b2e7c91a2cdd12ca
[ "MIT" ]
null
null
null
blockchain.py
marmul2/blockchain
b1ed15b6ec6f8397c0a26f23b2e7c91a2cdd12ca
[ "MIT" ]
null
null
null
blockchain.py
marmul2/blockchain
b1ed15b6ec6f8397c0a26f23b2e7c91a2cdd12ca
[ "MIT" ]
null
null
null
# Updated by Wei Cui, on May 2nd, 2018 for GitChat import hashlib import json from time import time from urllib.parse import urlparse from uuid import uuid4 import requests from flask import Flask, jsonify, request class Blockchain: def __init__(self): self.current_transactions = [] self.chain =...
28.075908
102
0.599859
5d7a168472665d3e15fd6b51a53f9ab55154334f
4,478
py
Python
tests/PexpectTestCase.py
stesser/pexpect
000a8684bd109c3f9c9b5fabd95add4743b7f45a
[ "0BSD" ]
null
null
null
tests/PexpectTestCase.py
stesser/pexpect
000a8684bd109c3f9c9b5fabd95add4743b7f45a
[ "0BSD" ]
null
null
null
tests/PexpectTestCase.py
stesser/pexpect
000a8684bd109c3f9c9b5fabd95add4743b7f45a
[ "0BSD" ]
null
null
null
''' PEXPECT LICENSE This license is approved by the OSI and FSF as GPL-compatible. http://opensource.org/licenses/isc-license.txt Copyright (c) 2012, Noah Spurrier <noah@noah.org> PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY PURPOSE WITH OR WITHOUT FEE IS HEREBY GR...
41.082569
79
0.649844
734f9a889edbfaa80f4a42d7127672d1c7ae8f97
1,117
py
Python
trade_strategy.py
tiuln2010/Tradingtest
98fbde80eba7c40d460b4696f0937e7d4fc0df29
[ "MIT" ]
null
null
null
trade_strategy.py
tiuln2010/Tradingtest
98fbde80eba7c40d460b4696f0937e7d4fc0df29
[ "MIT" ]
null
null
null
trade_strategy.py
tiuln2010/Tradingtest
98fbde80eba7c40d460b4696f0937e7d4fc0df29
[ "MIT" ]
null
null
null
from settings import defaults import random class Strategy(): def __init__(self, **kwargs): trade_defaults = { "profit_rate" : defaults["profit_rate"], "loss_rate" : defaults["loss_rate"], "profit_probability" : defaults["profit_probability"], "budget" : defaults["budget"], "number_of_tra...
20.685185
58
0.588183
4da61d109c1b1bbd49efebf30eff1b38943cef7c
11,120
py
Python
tests/test_basic_train.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
4
2020-06-01T17:17:47.000Z
2020-06-02T03:42:55.000Z
tests/test_basic_train.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
4
2019-11-22T20:48:34.000Z
2022-02-26T06:04:09.000Z
tests/test_basic_train.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
1
2022-01-09T00:28:15.000Z
2022-01-09T00:28:15.000Z
""" module: basic_train.py - Model fitting methods docs : https://docs.fast.ai/train.html """ import pytest from fastai.vision import * from fastai.utils.mem import * from fastai.gen_doc.doctest import this_tests from utils.fakes import * from utils.text import * from utils.mem import * from math import isclose torc...
39.15493
301
0.71232
643abc816a4022e3f5f854b92ca13dae4ae01747
7,090
py
Python
models/DecoderRNN.py
LiahimRatman/StacMR
b5acea55c4eb8a2fa933edd7c648938d3e7cf7d9
[ "Apache-2.0" ]
238
2019-08-20T02:23:18.000Z
2022-03-26T06:07:12.000Z
models/DecoderRNN.py
jingliang95/VSRN
777ae74326fdb6abe69dbd3911d0e545322520d1
[ "Apache-2.0" ]
23
2019-09-20T07:23:37.000Z
2022-01-19T10:18:57.000Z
models/DecoderRNN.py
jingliang95/VSRN
777ae74326fdb6abe69dbd3911d0e545322520d1
[ "Apache-2.0" ]
49
2019-09-09T01:17:04.000Z
2022-03-30T15:59:39.000Z
import random import torch import torch.nn as nn import torch.nn.functional as F from .Attention import Attention class DecoderRNN(nn.Module): """ Provides functionality for decoding in a seq2seq framework, with an option for attention. Args: vocab_size (int): size of the vocabulary...
40.982659
122
0.565303
6314a6d5aa14dd4c4d4b0adfdddcca55b001979b
1,584
py
Python
Linked Lists/remove_nth_ll.py
accbest/coding-problems
e6833ff49cb149f1200f9f2c5251b7502ef53acc
[ "MIT" ]
1
2020-05-17T12:05:13.000Z
2020-05-17T12:05:13.000Z
Linked Lists/remove_nth_ll.py
accbest/coding-problems
e6833ff49cb149f1200f9f2c5251b7502ef53acc
[ "MIT" ]
null
null
null
Linked Lists/remove_nth_ll.py
accbest/coding-problems
e6833ff49cb149f1200f9f2c5251b7502ef53acc
[ "MIT" ]
1
2021-01-12T01:49:56.000Z
2021-01-12T01:49:56.000Z
''' Remove Nth Node From End of List Given a linked list, remove the n-th node from the end of list and return its head. Input: 1 -> 2 -> 3 -> 4 -> 5, 2. Output: 1 -> 2 -> 3 -> 5 ========================================= Playing with the pointers. Time Complexity: O(N) Space Complexity: O(1) Recursive s...
22.956522
83
0.603535
81219a483dcbdeeb90e9be1d82faf3e04d5dbaeb
336
py
Python
posthog/migrations/0138_featureflag_name_optional.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
7,409
2020-02-09T23:18:10.000Z
2022-03-31T22:36:25.000Z
posthog/migrations/0138_featureflag_name_optional.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
5,709
2020-02-09T23:26:13.000Z
2022-03-31T20:20:01.000Z
posthog/migrations/0138_featureflag_name_optional.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
647
2020-02-13T17:50:55.000Z
2022-03-31T11:24:19.000Z
# Generated by Django 3.0.11 on 2021-03-19 23:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0137_team_timezone"), ] operations = [ migrations.AlterField(model_name="featureflag", name="name", field=models.TextField(blank...
22.4
106
0.675595
fc1df3d8dc946d9204e8215dd6e76753383665ad
32,012
py
Python
lib/bitcoin.py
ysy/electrum_lbtc
e77154face5236b0d09d6c80854d52779d61a38c
[ "MIT" ]
null
null
null
lib/bitcoin.py
ysy/electrum_lbtc
e77154face5236b0d09d6c80854d52779d61a38c
[ "MIT" ]
null
null
null
lib/bitcoin.py
ysy/electrum_lbtc
e77154face5236b0d09d6c80854d52779d61a38c
[ "MIT" ]
1
2018-05-05T07:06:42.000Z
2018-05-05T07:06:42.000Z
# -*- coding: utf-8 -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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 wit...
30.989351
133
0.64657
974470023883646a2f68db60d64e3719c46db9c5
2,029
py
Python
examples/python/compile_mandelbrot.py
kl4w3i/ppci
f3be0d4ebc1ac57907fd9c21e886ab70b2805c21
[ "BSD-2-Clause" ]
161
2020-05-31T03:29:42.000Z
2022-03-07T08:36:19.000Z
examples/python/compile_mandelbrot.py
pfalcon/ppci
ea72967c8984757b4665a2fb0db095f32687eabf
[ "BSD-2-Clause" ]
74
2020-05-26T18:05:48.000Z
2021-02-13T21:55:39.000Z
examples/python/compile_mandelbrot.py
pfalcon/ppci
ea72967c8984757b4665a2fb0db095f32687eabf
[ "BSD-2-Clause" ]
19
2020-05-27T19:22:11.000Z
2022-02-17T18:53:52.000Z
""" Epic demo of compiling some python code together with some C code into a linux executable file. """ import io import logging from ppci.lang.python import python_to_ir from ppci.irutils import verify_module, print_module from ppci.api import ir_to_object, link, cc, objcopy from ppci.utils.reporting import html_rep...
19.892157
93
0.627403
bf0f8a324226a9a5e1dd8eaa1a8ae43758c806ce
8,799
py
Python
src/OpenDrive/client_side/gui/explorer/config_synchronization.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
1
2021-03-18T16:20:46.000Z
2021-03-18T16:20:46.000Z
src/OpenDrive/client_side/gui/explorer/config_synchronization.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
2
2019-06-04T21:50:23.000Z
2019-06-14T13:20:50.000Z
src/OpenDrive/client_side/gui/explorer/config_synchronization.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
null
null
null
""" :module: OpenDrive. :synopsis: :author: Julian Sobott public classes --------------- .. autoclass:: XXX :members: public functions ---------------- .. autofunction:: XXX private functions ----------------- """ import os from typing import Tuple, List from kivy.properties import ObjectProperty, Boolean...
34.505882
117
0.689624
36c87736ee5b73cbc70d581c2685184d9377ce39
1,903
py
Python
Beginner/03. Python/searchinXml/users.py
herambchaudhari4121/Hacktoberfest-4
19771bcb4ce7ff73953b797e069b26cb5e7e31d7
[ "MIT" ]
null
null
null
Beginner/03. Python/searchinXml/users.py
herambchaudhari4121/Hacktoberfest-4
19771bcb4ce7ff73953b797e069b26cb5e7e31d7
[ "MIT" ]
null
null
null
Beginner/03. Python/searchinXml/users.py
herambchaudhari4121/Hacktoberfest-4
19771bcb4ce7ff73953b797e069b26cb5e7e31d7
[ "MIT" ]
2
2021-10-31T07:40:09.000Z
2021-11-22T05:10:54.000Z
# This program searches within an xml file to find information, # in this example the information of file "Users.xml" will be used to implement an SQL statement. # Hope this will useful for you! - ernecto-ca # Imports to read a xml and time import xml.etree.ElementTree as ET from datetime import datetime # Create th...
38.836735
101
0.59958
c32e689536d64879174ef72f73436e5e1d77d063
2,265
py
Python
cea/tests/test_config.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
cea/tests/test_config.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
cea/tests/test_config.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
"""Test the cea.config.Configuration()""" import unittest import pickle import os import tempfile import cea.config class TestConfiguration(unittest.TestCase): def test_can_be_pickled(self): config = cea.config.Configuration() config = pickle.loads(pickle.dumps(config)) self.assertIsNotNo...
39.736842
103
0.70287
40f3f0acc2b871507312688ad9b723cd9451027f
968
py
Python
examples/test_server_actions.py
rlrossiter/cinnamon-role
89c818f4803b721973f41018f7997abcfd0580a6
[ "Apache-2.0" ]
2
2016-05-26T17:14:24.000Z
2019-08-13T16:45:25.000Z
examples/test_server_actions.py
rlrossiter/cinnamon-role
89c818f4803b721973f41018f7997abcfd0580a6
[ "Apache-2.0" ]
null
null
null
examples/test_server_actions.py
rlrossiter/cinnamon-role
89c818f4803b721973f41018f7997abcfd0580a6
[ "Apache-2.0" ]
2
2016-05-26T17:19:24.000Z
2016-05-26T17:19:48.000Z
# Copyright (c) 2016 Ryan Rossiter # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
37.230769
74
0.775826
9b8547ce686967949c56adc52cc86e95eecf368d
4,135
py
Python
take_a_number/settings.py
take-a-number/api
fd44f8b328e76511dcb248d330faa1d3faf0ff6f
[ "MIT" ]
1
2019-02-12T16:23:37.000Z
2019-02-12T16:23:37.000Z
take_a_number/settings.py
take-a-number/api
fd44f8b328e76511dcb248d330faa1d3faf0ff6f
[ "MIT" ]
8
2019-02-17T23:06:29.000Z
2019-02-26T02:53:29.000Z
take_a_number/settings.py
take-a-number/api
fd44f8b328e76511dcb248d330faa1d3faf0ff6f
[ "MIT" ]
null
null
null
""" Django settings for take_a_number project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import...
27.384106
91
0.708585
6150cd9bdfd16895bfdcaba985289c7cb4b24cfb
8,452
py
Python
astropy/coordinates/tests/accuracy/test_altaz_icrs.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
3
2018-03-20T15:09:16.000Z
2021-05-27T11:17:33.000Z
astropy/coordinates/tests/accuracy/test_altaz_icrs.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/tests/accuracy/test_altaz_icrs.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Accuracy tests for AltAz to ICRS coordinate transformations. We use "known good" examples computed with other coordinate libraries. Note that we use very low precision asserts because some people run tests on 32-bit machines and we want the tests to p...
44.484211
431
0.664695
0d53fd6ffce2fe997d23472eb0af83596f782e8b
8,235
py
Python
experiments/ashvin/icra2021/widowx/sawyer_ccrig_drawervertical_close1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/widowx/sawyer_ccrig_drawervertical_close1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/widowx/sawyer_ccrig_drawervertical_close1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.t...
35.649351
104
0.590893
899c4891463252efa3fcdabd7ef504a486ce139d
7,076
py
Python
gpMgmt/test/behave/mgmt_utils/environment.py
gp-releng/gpdb
b587100923e2963ee3c54a1db86a3f740be84b9b
[ "PostgreSQL", "Apache-2.0" ]
1
2021-06-03T09:19:23.000Z
2021-06-03T09:19:23.000Z
gpMgmt/test/behave/mgmt_utils/environment.py
gp-releng/gpdb
b587100923e2963ee3c54a1db86a3f740be84b9b
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/test/behave/mgmt_utils/environment.py
gp-releng/gpdb
b587100923e2963ee3c54a1db86a3f740be84b9b
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
import os import platform import shutil import behave from test.behave_utils.utils import drop_database_if_exists, start_database_if_not_started,\ create_database, \ run_command, check_user_permissions, run_gpcommand from steps.mi...
47.173333
139
0.689796
65092e837d0441ca57839376288bdb35c2d1c125
1,450
py
Python
faster_rcnn/utils/blob.py
anhlt/faster_rcnn
97bf8a153db704cba9b2d753bf87ec2fa2938c84
[ "MIT" ]
24
2018-01-07T15:15:38.000Z
2021-08-17T03:39:01.000Z
faster_rcnn/utils/blob.py
anhlt/faster_rcnn
97bf8a153db704cba9b2d753bf87ec2fa2938c84
[ "MIT" ]
1
2018-11-07T04:32:52.000Z
2018-11-07T04:39:14.000Z
faster_rcnn/utils/blob.py
anhlt/faster_rcnn
97bf8a153db704cba9b2d753bf87ec2fa2938c84
[ "MIT" ]
5
2018-07-02T13:30:34.000Z
2021-08-17T03:39:12.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Blob helper functions.""" import numpy as np import cv2 def im_li...
32.222222
75
0.601379
eb03534b0c30bb1de0955ed297d4ba169e41f57c
1,875
py
Python
xlsx2csv.py
Sinirlan/xlsx2csv
7c0cc68d96a8265a326123f2ab6808141cdd0bba
[ "MIT" ]
null
null
null
xlsx2csv.py
Sinirlan/xlsx2csv
7c0cc68d96a8265a326123f2ab6808141cdd0bba
[ "MIT" ]
null
null
null
xlsx2csv.py
Sinirlan/xlsx2csv
7c0cc68d96a8265a326123f2ab6808141cdd0bba
[ "MIT" ]
null
null
null
import sys import os import pandas as pd import argparse #set arguments from entered paramters parser = argparse.ArgumentParser(description='Utility converting xlsx files to csv with optional custom delimiter') parser.add_argument('-i', '--input', action="store", help='Input xlsx file', required=True) parser.add_arg...
36.057692
211
0.752533
5c676b673c1f8c4bbfdb8c27a0855a21c8cd6677
1,107
py
Python
basic_authentication_spider.py
hanhanwu/Hanhan_NLP
3a01675f14e964d50c011890c284cc22a7711594
[ "MIT" ]
5
2016-09-17T05:04:52.000Z
2018-07-25T12:48:13.000Z
basic_authentication_spider.py
hanhanwu/Hanhan_NLP
3a01675f14e964d50c011890c284cc22a7711594
[ "MIT" ]
null
null
null
basic_authentication_spider.py
hanhanwu/Hanhan_NLP
3a01675f14e964d50c011890c284cc22a7711594
[ "MIT" ]
2
2020-07-28T21:35:35.000Z
2021-02-14T18:27:02.000Z
# Test Login Spider import scrapy from scrapy.selector import HtmlXPathSelector from scrapy.http import Request login_url = "[your login url]" user_name = b"[your user id]" pswd = b"[your passwd]" response_page = "[response page url]" class MySpider(scrapy.Spider): name = 'myspider' def start_requests(self...
25.744186
74
0.616983
123a04c70d83c2fa53b45b9d9f4037a7e02dbaae
1,167
py
Python
synapse/tests/test_servers_cryotank.py
cmd-not-found/synapse
a768c441623d369c0c0ef59bc0d1278cd63bb8de
[ "Apache-2.0" ]
1
2021-02-15T22:07:05.000Z
2021-02-15T22:07:05.000Z
synapse/tests/test_servers_cryotank.py
cmd-not-found/synapse
a768c441623d369c0c0ef59bc0d1278cd63bb8de
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_servers_cryotank.py
cmd-not-found/synapse
a768c441623d369c0c0ef59bc0d1278cd63bb8de
[ "Apache-2.0" ]
null
null
null
import synapse.cryotank as s_cryo import synapse.tests.utils as s_t_utils class CryoServerTest(s_t_utils.SynTest): async def test_server(self): recs = ( ('hehe', {'haha': 1}), ('woah', {'dude': 1}), ) with self.getTestDir() as dirn, self.withSetLoggingMock() as m...
33.342857
87
0.532991
bf1caf96cd3216bc336948967d13344501b5cb16
720
py
Python
tests/test_codontable.py
Edinburgh-Genome-Foundry/GeneAlloy
e96e7e1da0d64cc0baf543be2992f763238161a5
[ "MIT" ]
1
2020-03-19T16:43:46.000Z
2020-03-19T16:43:46.000Z
tests/test_codontable.py
Edinburgh-Genome-Foundry/GeneAlloy
e96e7e1da0d64cc0baf543be2992f763238161a5
[ "MIT" ]
null
null
null
tests/test_codontable.py
Edinburgh-Genome-Foundry/GeneAlloy
e96e7e1da0d64cc0baf543be2992f763238161a5
[ "MIT" ]
null
null
null
import pytest import genealloy as ga def test_make_transition_dictionary(): transition_dictionary = ga.make_transition_dictionary( ga.aa_to_codon_extended, ga.allowed_aa_transitions ) assert transition_dictionary["A"] == [ "GGX", "GCX", "GTX", "TTR", "CTX",...
23.225806
76
0.647222
340031276ecd09a583036941e2d171e41e4120ad
901
py
Python
src/matrix_factorization.py
marcsans/cf-cold-start
cf893992ca2b985a79d6b511bd1f98c1fa7ef996
[ "MIT" ]
null
null
null
src/matrix_factorization.py
marcsans/cf-cold-start
cf893992ca2b985a79d6b511bd1f98c1fa7ef996
[ "MIT" ]
null
null
null
src/matrix_factorization.py
marcsans/cf-cold-start
cf893992ca2b985a79d6b511bd1f98c1fa7ef996
[ "MIT" ]
null
null
null
import numpy def matrix_factorization(R, P, Q, K, steps=5000, alpha=0.0002, beta=0.02): Q = Q.T for step in range(steps): for i in range(len(R)): for j in range(len(R[i])): if R[i][j] > 0: eij = R[i][j] - numpy.dot(P[i,:],Q[:,j]) for k...
39.173913
88
0.36515
fcc3ceec5fc164ce5917386512ea2b4b887ec9ec
32,086
py
Python
tests/test_connection_pool.py
omstrumpf/redis-py
a890532cbb93a85f6ae0bc23e014e6749d39b43b
[ "MIT" ]
null
null
null
tests/test_connection_pool.py
omstrumpf/redis-py
a890532cbb93a85f6ae0bc23e014e6749d39b43b
[ "MIT" ]
null
null
null
tests/test_connection_pool.py
omstrumpf/redis-py
a890532cbb93a85f6ae0bc23e014e6749d39b43b
[ "MIT" ]
null
null
null
import os import mock import pytest import re import redis import time from threading import Thread from redis.connection import ssl_available, to_bool from .conftest import skip_if_server_version_lt, _get_client from .test_pubsub import wait_for_message class DummyConnection(object): description_format = "Dummy...
37.926714
79
0.592127
e54758625b2644ef734d24eaed167546aa0947b0
1,182
py
Python
tests/test_notebooks.py
qinfeng2011/wltp
317ad38fb96599a29d22e40f69b6aeb4d205611d
[ "Apache-2.0" ]
null
null
null
tests/test_notebooks.py
qinfeng2011/wltp
317ad38fb96599a29d22e40f69b6aeb4d205611d
[ "Apache-2.0" ]
null
null
null
tests/test_notebooks.py
qinfeng2011/wltp
317ad38fb96599a29d22e40f69b6aeb4d205611d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2013-2019 European Commission (JRC); # Licensed under the EUPL (the 'Licence'); # You may not use this work except in compliance with the Licence. # You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl from pathlib import Path import pytest ...
26.863636
77
0.670897
4e1187205d08034d193610fa7f927500a8d2b36b
3,669
py
Python
baselines/a2c/utils.py
seungjaeryanlee/baselines-tf2
299c2e6fb0b1dc8dd5f25c826eb004cf276a5bfe
[ "MIT" ]
10
2019-06-18T16:20:20.000Z
2021-01-10T04:18:07.000Z
baselines/a2c/utils.py
seungjaeryanlee/baselines-tf2
299c2e6fb0b1dc8dd5f25c826eb004cf276a5bfe
[ "MIT" ]
5
2019-07-02T03:11:00.000Z
2020-07-27T17:32:41.000Z
baselines/a2c/utils.py
seungjaeryanlee/baselines-tf2
299c2e6fb0b1dc8dd5f25c826eb004cf276a5bfe
[ "MIT" ]
6
2019-06-03T23:03:40.000Z
2021-03-09T06:51:28.000Z
import os import numpy as np import tensorflow as tf from collections import deque def ortho_init(scale=1.0): def _ortho_init(shape, dtype, partition_info=None): #lasagne ortho init for tf shape = tuple(shape) if len(shape) == 2: flat_shape = shape elif len(shape) == 4: ...
42.172414
114
0.649496
c6db3ffd3e147c179bbca5211b4a8cf3be83d18b
13,029
py
Python
installVulkanSDK.py
sunbearc22/InstallVulkanSDK
95ca4d09077e0feb74d5e25d43ee1c680c2b37a8
[ "MIT" ]
7
2017-10-21T19:56:38.000Z
2021-02-22T08:27:03.000Z
installVulkanSDK.py
sunbearc22/InstallVulkanSDK
95ca4d09077e0feb74d5e25d43ee1c680c2b37a8
[ "MIT" ]
null
null
null
installVulkanSDK.py
sunbearc22/InstallVulkanSDK
95ca4d09077e0feb74d5e25d43ee1c680c2b37a8
[ "MIT" ]
null
null
null
#!/usr/bin/python3.6 # -*- coding: utf-8 -*- # A Python 3.6 script to install LunarG's Vulkan SDK in Ubuntu 18.04. # Author : sunbearc22 # Created on : 2018-07-27 # Modified on : 2018-08-13 # Modified on : 2020-06-19 Added SDK versions 1.1.121.1 to 1.2.141.2 import getpass import textwrap import sys from path...
38.433628
138
0.580628
a8c3b590656cb3e7073086c9d5afbaafc0ed1a79
9,461
py
Python
Tinker.py
youngbee12/DP4-AI
cda4fe9b4f45d8c98dc9aaae3e57eaf7b7bbd466
[ "MIT" ]
1
2021-03-11T02:34:02.000Z
2021-03-11T02:34:02.000Z
Tinker.py
youngbee12/DP4-AI
cda4fe9b4f45d8c98dc9aaae3e57eaf7b7bbd466
[ "MIT" ]
null
null
null
Tinker.py
youngbee12/DP4-AI
cda4fe9b4f45d8c98dc9aaae3e57eaf7b7bbd466
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jun 12 12:52:21 2015 @author: ke291 Contains all of the Tinker specific code for input generation, calculation execution and output interpretation. Called by PyDP4.py. """ import os import sys import subprocess import PyDP4 # Please modify the line below to give the path t...
32.624138
150
0.572138
eab09706eb9e26b8cde0baf356ea3f4ae6f7ae7d
7,317
py
Python
SVM/svm_model/featureExtraction.py
suyongeum/PML
837c9f124a8a2a39d63a517074a3ca06146028c2
[ "MIT" ]
null
null
null
SVM/svm_model/featureExtraction.py
suyongeum/PML
837c9f124a8a2a39d63a517074a3ca06146028c2
[ "MIT" ]
null
null
null
SVM/svm_model/featureExtraction.py
suyongeum/PML
837c9f124a8a2a39d63a517074a3ca06146028c2
[ "MIT" ]
null
null
null
import os import nltk import pandas as pd import urllib.request from bs4 import BeautifulSoup import math import random import dill import re import time import difflib class FeatureExtraction: # 'len', 'vrlen', 'weblio', 'google_log', 'freq_guten', 'pos' def __init__(self): self.len = 0 self...
29.987705
192
0.553506
20fbe5f6a4a9671b1d77a9b754885033e5fe277b
13,031
py
Python
arancino/port/ArancinoPort.py
smartmeio/arancino-daemon
952b4d0d5ad99c21bb6e7f46e57dd48b0a4c6134
[ "Apache-2.0" ]
2
2021-05-26T10:00:23.000Z
2021-10-13T08:01:40.000Z
arancino/port/ArancinoPort.py
smartmeio/arancino-daemon
952b4d0d5ad99c21bb6e7f46e57dd48b0a4c6134
[ "Apache-2.0" ]
null
null
null
arancino/port/ArancinoPort.py
smartmeio/arancino-daemon
952b4d0d5ad99c21bb6e7f46e57dd48b0a4c6134
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ SPDX-license-identifier: Apache-2.0 Copyright (c) 2020 SmartMe.IO Authors: Sergio Tomasello <sergio@smartme.io> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apac...
29.956322
214
0.660732
ed1f8a64766fa1552178732fa9a7270ed45c81fc
3,708
py
Python
TCN/char_cnn/utils.py
whdc/TCN
182a57da7790a8ddb3a94cc3c33e1476551e0b54
[ "MIT" ]
null
null
null
TCN/char_cnn/utils.py
whdc/TCN
182a57da7790a8ddb3a94cc3c33e1476551e0b54
[ "MIT" ]
null
null
null
TCN/char_cnn/utils.py
whdc/TCN
182a57da7790a8ddb3a94cc3c33e1476551e0b54
[ "MIT" ]
null
null
null
import unidecode import torch from torch.autograd import Variable from collections import Counter import observations import os import pickle import numpy as np cuda = torch.cuda.is_available() def data_generator(args): if hasattr(observations, args.dataset): trainfile, testfile, validfile = getattr(obser...
29.428571
98
0.636731
c78cb66be44b748150ab50fd2a906b11751b9c91
391
py
Python
docs/examples/types_color.py
parthjoshi2007/pydantic
aac6853e82eeb67d06d84953e7827de3ffda9d6d
[ "MIT" ]
1
2020-02-25T15:28:47.000Z
2020-02-25T15:28:47.000Z
docs/examples/types_color.py
parthjoshi2007/pydantic
aac6853e82eeb67d06d84953e7827de3ffda9d6d
[ "MIT" ]
1
2020-01-17T17:12:45.000Z
2020-01-17T17:12:45.000Z
docs/examples/types_color.py
parthjoshi2007/pydantic
aac6853e82eeb67d06d84953e7827de3ffda9d6d
[ "MIT" ]
1
2020-12-19T18:00:19.000Z
2020-12-19T18:00:19.000Z
from pydantic import BaseModel, ValidationError from pydantic.color import Color c = Color('ff00ff') print(c.as_named()) print(c.as_hex()) c2 = Color('green') print(c2.as_rgb_tuple()) print(c2.original()) print(repr(Color('hsl(180, 100%, 50%)'))) class Model(BaseModel): color: Color print(Model(color='purple')) t...
20.578947
47
0.70844
f649daad0c05a74935428b7ad506444a76f026e1
2,394
py
Python
tools/scons/site_scons/site_tools/emscripten/emscripten.py
sgsaenger/emscripten
beee1d65f05187412d59d74952bb1d03251c59fb
[ "MIT" ]
1
2021-02-10T04:30:14.000Z
2021-02-10T04:30:14.000Z
tools/scons/site_scons/site_tools/emscripten/emscripten.py
sgsaenger/emscripten
beee1d65f05187412d59d74952bb1d03251c59fb
[ "MIT" ]
null
null
null
tools/scons/site_scons/site_tools/emscripten/emscripten.py
sgsaenger/emscripten
beee1d65f05187412d59d74952bb1d03251c59fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright 2012 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. from __future__ import print_function import o...
41.275862
104
0.696742
5f511f4fca0f7f09a390806ef7d89a3f926ce0d7
223
py
Python
area_of_a_circle.py
krish-1010/mycaptain
2ec046644d213e5eff4c4979e1fea59811681344
[ "MIT" ]
null
null
null
area_of_a_circle.py
krish-1010/mycaptain
2ec046644d213e5eff4c4979e1fea59811681344
[ "MIT" ]
null
null
null
area_of_a_circle.py
krish-1010/mycaptain
2ec046644d213e5eff4c4979e1fea59811681344
[ "MIT" ]
null
null
null
radius = float(input("Input the radius of the circle :")) import math PI = math.pi def The_area(): area = radius*radius*PI print( "The area of the circle with radius", radius ," is: %.2f" %area ) The_area()
20.272727
74
0.641256
b194349b3f4a735c4e30acb49cb67b171b1323ef
576
py
Python
script_python/angulo_seno_cosseno_tangente_018.py
carlos-freitas-gitHub/Python_Basico_Avancado
e1ee25d125cb20ba07d3777f74d1ac85c96c6f4d
[ "Apache-2.0" ]
1
2020-07-31T20:31:12.000Z
2020-07-31T20:31:12.000Z
script_python/angulo_seno_cosseno_tangente_018.py
carlos-freitas-gitHub/python_basico_avancado
e1ee25d125cb20ba07d3777f74d1ac85c96c6f4d
[ "Apache-2.0" ]
null
null
null
script_python/angulo_seno_cosseno_tangente_018.py
carlos-freitas-gitHub/python_basico_avancado
e1ee25d125cb20ba07d3777f74d1ac85c96c6f4d
[ "Apache-2.0" ]
null
null
null
'''entre no programa com um angulo qualquer e mostre na tela o valor do seno, cosseno, tangente desse angulo''' from math import radians, sin, cos, tan cores = {'limpa': '\033[m', 'vermelho': '\033[1;31m'} print('{:-^40}'.format('SENO | COSENO | TANGENTE | RADIANOS')) angulo = int(input('Digite um Ângulo: ')) print(co...
41.142857
98
0.664931