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
8a38e648645b712d393ed725150df3d75963cd5d
2,084
py
Python
PyScripts/Set-KeeperFolderLink.py
tonylanglet/keepersecurity-powershell
5446e6ff789372d92bc7e7c9e22e4179dcec6c0f
[ "MIT" ]
2
2021-09-08T03:00:24.000Z
2022-02-07T17:52:28.000Z
PyScripts/Set-KeeperFolderLink.py
tonylanglet/keepersecurity-powershell
5446e6ff789372d92bc7e7c9e22e4179dcec6c0f
[ "MIT" ]
1
2022-02-07T13:49:38.000Z
2022-02-07T13:49:38.000Z
PyScripts/Set-KeeperFolderLink.py
tonylanglet/keepersecurity-powershell
5446e6ff789372d92bc7e7c9e22e4179dcec6c0f
[ "MIT" ]
1
2021-12-09T23:29:22.000Z
2021-12-09T23:29:22.000Z
import sys import getopt import getpass import string import argparse from keepercommander.record import Record from keepercommander.commands.folder import FolderLinkCommand from keepercommander.params import KeeperParams from keepercommander import display, api my_params = KeeperParams() # MAIN FUNCTION def m...
34.733333
139
0.706814
78ab521f3d0719db9312228c03ebe666175755e8
2,248
py
Python
modules/debugger/adapters/python.py
kortschak/sublime_debugger
3fb4d231fe6459727000f6635e38eb88f88335f9
[ "MIT" ]
null
null
null
modules/debugger/adapters/python.py
kortschak/sublime_debugger
3fb4d231fe6459727000f6635e38eb88f88335f9
[ "MIT" ]
null
null
null
modules/debugger/adapters/python.py
kortschak/sublime_debugger
3fb4d231fe6459727000f6635e38eb88f88335f9
[ "MIT" ]
null
null
null
import shutil from ...typecheck import * from ..import adapter from ..settings import Settings import sublime class Python(adapter.AdapterConfiguration): @property def type(self): return 'python' async def start(self, log, configuration): if configuration.request == "attach": connect = configuration.get("co...
31.661972
198
0.741548
cb81a51d5e9ad1f2f9d2904e1ed6731c97202cb7
5,421
py
Python
src/ccount/optimization.py
mbannick/CorrelatedCounts
067486289a20b64e2ba6554be46e5c4b4453b4de
[ "MIT" ]
3
2019-12-10T22:59:46.000Z
2020-02-03T21:02:01.000Z
src/ccount/optimization.py
ihmeuw-msca/CorrelatedCounts
067486289a20b64e2ba6554be46e5c4b4453b4de
[ "MIT" ]
4
2019-11-17T17:57:34.000Z
2019-12-27T16:45:07.000Z
src/ccount/optimization.py
mbannick/CorrelatedCounts
067486289a20b64e2ba6554be46e5c4b4453b4de
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ optimization ~~~~~~~~~~~~ Optimization module for the Correlated Count. """ import numpy as np import scipy.optimize as sopt from . import utils import logging LOG = logging.getLogger(__name__) class OptimizationInterface: """Optimization interface for correlated model. ...
29.950276
81
0.531636
2cc986c80b48b1a4eed83f6ed48564a07a69df68
1,753
py
Python
tests/py/test_anonymous_json.py
venmo/www.gittip.com
fa71f5afa774cd319d3319a1cc566fcae890b7a4
[ "CC0-1.0" ]
1
2017-07-17T07:31:19.000Z
2017-07-17T07:31:19.000Z
tests/py/test_anonymous_json.py
Acidburn0zzz/www.gittip.com
a411c64d7a1894fef8f4d3b57a1993d0b18b54dd
[ "CC0-1.0" ]
1
2021-02-24T07:06:36.000Z
2021-02-24T07:06:36.000Z
tests/py/test_anonymous_json.py
isabella232/www.gittip.com
fa71f5afa774cd319d3319a1cc566fcae890b7a4
[ "CC0-1.0" ]
2
2020-03-09T17:05:41.000Z
2020-11-07T10:40:03.000Z
from __future__ import print_function, unicode_literals from aspen import json from gittip.testing import Harness class Tests(Harness): def setUp(self): Harness.setUp(self) self.make_participant('alice') def hit_anonymous(self, method='GET', expected_code=200, **kw): response = self...
38.108696
90
0.679977
3fca9b2ea023f68b1193cbd0c47b17c0da7d06ac
1,023
py
Python
manage.py
Kobi-Dadon/django_demo
e5c9a6bb8e64032540586321606520cd0d38d7be
[ "MIT" ]
null
null
null
manage.py
Kobi-Dadon/django_demo
e5c9a6bb8e64032540586321606520cd0d38d7be
[ "MIT" ]
null
null
null
manage.py
Kobi-Dadon/django_demo
e5c9a6bb8e64032540586321606520cd0d38d7be
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure tha...
33
77
0.653959
8b738ebbcc7e8ac6f0e5ddcfaa51598536747d40
1,422
py
Python
test/scripts/get.py
aws-samples/serverless-statemachine
6f8977de715030f6c7a79ed29d8bfa582282a298
[ "MIT-0" ]
2
2021-02-06T01:58:24.000Z
2021-06-05T06:04:01.000Z
test/scripts/get.py
aws-samples/serverless-statemachine
6f8977de715030f6c7a79ed29d8bfa582282a298
[ "MIT-0" ]
null
null
null
test/scripts/get.py
aws-samples/serverless-statemachine
6f8977de715030f6c7a79ed29d8bfa582282a298
[ "MIT-0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without ...
35.55
87
0.7391
185d0ad9cc8ec0ef507f1583206e39818713a8ab
2,137
py
Python
garnets/trajectory.py
klarh/garnets
b273872eb478971fdf47c0b260ad77aa01c62b5c
[ "MIT" ]
null
null
null
garnets/trajectory.py
klarh/garnets
b273872eb478971fdf47c0b260ad77aa01c62b5c
[ "MIT" ]
null
null
null
garnets/trajectory.py
klarh/garnets
b273872eb478971fdf47c0b260ad77aa01c62b5c
[ "MIT" ]
null
null
null
import collections import functools import numpy as np from garnett.trajectory import * from garnett.trajectory import Trajectory as GarnettTrajectory from garnett.trajectory import Frame as GarnettFrame _FRAME_OVERRIDES = { '_garnett_frame', } class Frame: def __init__(self, garnett_frame): self._g...
29.680556
72
0.639682
fb837242197b5de7d1722416b7e7d871d149ca23
13,506
py
Python
tests/testcases/test_pqos_l3cat.py
Axecalever/intel-cmt-cat
50e77aaeca0734ad037d64fec1c20d07f2546d26
[ "BSD-3-Clause" ]
null
null
null
tests/testcases/test_pqos_l3cat.py
Axecalever/intel-cmt-cat
50e77aaeca0734ad037d64fec1c20d07f2546d26
[ "BSD-3-Clause" ]
null
null
null
tests/testcases/test_pqos_l3cat.py
Axecalever/intel-cmt-cat
50e77aaeca0734ad037d64fec1c20d07f2546d26
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # BSD LICENSE # # Copyright(c) 2019 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ...
33.934673
98
0.620021
9e61e0f2223501f440664443f37d9a06ac9025f0
1,250
py
Python
ceasar cryptage.py
alexandre-o/XOR-isn-projet-python-
0e2bf4f7ba91f7f615710bcacc2275882765128f
[ "CC0-1.0" ]
null
null
null
ceasar cryptage.py
alexandre-o/XOR-isn-projet-python-
0e2bf4f7ba91f7f615710bcacc2275882765128f
[ "CC0-1.0" ]
null
null
null
ceasar cryptage.py
alexandre-o/XOR-isn-projet-python-
0e2bf4f7ba91f7f615710bcacc2275882765128f
[ "CC0-1.0" ]
null
null
null
mon_fichier = open("mdp.txt" , "r") crypt = mon_fichier.read() mon_fichier.close() mon_fichier = open("encrypt.txt" , "r") decrypt1 = mon_fichier.read() mon_fichier.close() def encrypt(crypt): number=input("donner une cle de cryptage (numero)") b=list(crypt) str(b) c=[ord(x)for x in(b)] ...
22.321429
56
0.5472
5d05e5161be0462e46e90f60c0e0c8bd1c929aaa
2,173
py
Python
euca2ools/__init__.py
Juniper/euca2ools
67879bf3513eba2b5329fa9ba6919a080e2e7e0b
[ "BSD-2-Clause" ]
null
null
null
euca2ools/__init__.py
Juniper/euca2ools
67879bf3513eba2b5329fa9ba6919a080e2e7e0b
[ "BSD-2-Clause" ]
null
null
null
euca2ools/__init__.py
Juniper/euca2ools
67879bf3513eba2b5329fa9ba6919a080e2e7e0b
[ "BSD-2-Clause" ]
2
2016-06-24T20:19:40.000Z
2020-02-05T10:50:19.000Z
# Copyright 2009-2014 Eucalyptus Systems, Inc. # # Redistribution and use of this software in source and binary forms, # with or without modification, are permitted provided that the following # conditions are met: # # Redistributions of source code must retain the above copyright notice, # this list of conditions ...
41
77
0.712379
73e18747af8819676acf14f9630cfe2a58bd64fd
551
py
Python
src/Install/test/test_Utility.py
DBrianKimmel/PyHouse_Install
9c7ff397299e0f2e63782d4a955d2f8bf840ef6f
[ "MIT" ]
1
2015-10-13T15:01:48.000Z
2015-10-13T15:01:48.000Z
src/Install/test/test_Utility.py
DBrianKimmel/PyHouse_Install
9c7ff397299e0f2e63782d4a955d2f8bf840ef6f
[ "MIT" ]
null
null
null
src/Install/test/test_Utility.py
DBrianKimmel/PyHouse_Install
9c7ff397299e0f2e63782d4a955d2f8bf840ef6f
[ "MIT" ]
null
null
null
""" @name: PyHouse_Install/src/Install/test/test_Utility.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2015 by D. Brian Kimmel @license: MIT License @note: Created on Oct 27, 2015 @Summary: """ # Import system type stuff import unittest # Import PyH...
18.366667
61
0.633394
7b826430911bee0fb333519e59da2cb6f3ba2af8
14,006
py
Python
uweb3/libs/sqltalk/mysql/cursor.py
stefvanhouten/uweb3
bd6b03a3c819582afd845b31970b8a49312d1245
[ "ISC" ]
null
null
null
uweb3/libs/sqltalk/mysql/cursor.py
stefvanhouten/uweb3
bd6b03a3c819582afd845b31970b8a49312d1245
[ "ISC" ]
3
2020-05-20T09:53:14.000Z
2020-07-12T21:42:37.000Z
uweb3/libs/sqltalk/mysql/cursor.py
stefvanhouten/uweb3
bd6b03a3c819582afd845b31970b8a49312d1245
[ "ISC" ]
3
2020-04-29T09:49:07.000Z
2020-12-03T09:51:22.000Z
#!/usr/bin/python """SQLTalk MySQL Cursor class.""" __author__ = 'Elmer de Looff <elmer@underdark.nl>' __version__ = '0.13' # Standard modules import warnings import weakref import pymysql class ReturnObject(tuple): """An object that functions as a tuple but has more required attributes.""" def __new__(cls, conn...
39.122905
80
0.646794
0c54a8e3b4e942040b5a1f73a55e91bc66093a7b
51,866
py
Python
tests/test_reloading.py
rmtew/livecoding
9c5619c9653d4cd83977fc1f3aae51da004f1e8b
[ "BSD-3-Clause" ]
null
null
null
tests/test_reloading.py
rmtew/livecoding
9c5619c9653d4cd83977fc1f3aae51da004f1e8b
[ "BSD-3-Clause" ]
null
null
null
tests/test_reloading.py
rmtew/livecoding
9c5619c9653d4cd83977fc1f3aae51da004f1e8b
[ "BSD-3-Clause" ]
null
null
null
# # Q. Unit tests failing and not clear why? # # A. Set the logger to log at DEBUG level. Go to the bottom of this file # and change one of the last lines. # import unittest import os, sys, time, math import inspect, copy import logging if __name__ == "__main__": currentPath = sys.path[0] parentPath = os....
46.267618
159
0.691783
ad6f1f6c3175cd558e9935a16ef71a4d2115617d
6,761
py
Python
framework/framework/execute/definitions.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
framework/framework/execute/definitions.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
framework/framework/execute/definitions.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
import ast import typing from .base_converter import Converter, ConverterError from vkbottle.utils import random_string CALL_REPLACEMENTS = { "append": "push", } CALL_STRING = ["join", "strip", "split"] converter = Converter() find = converter.find_definition def dispatch_keywords(keywords: dict, assigner: str ...
22.167213
104
0.629493
ad172b0577157e589e2112a4facbab72099bde18
9,792
py
Python
gen2-record-replay/libraries/depthai_record.py
tomek-l/depthai-experiments
7f43e206f0e005879bd611875ac36d1c0ac64ed2
[ "MIT" ]
1
2022-02-03T02:04:18.000Z
2022-02-03T02:04:18.000Z
gen2-record-replay/libraries/depthai_record.py
calvinlua/depthai-experiments
f9576b1df3a124e7bd4cf3c3edf35393b8e10024
[ "MIT" ]
null
null
null
gen2-record-replay/libraries/depthai_record.py
calvinlua/depthai-experiments
f9576b1df3a124e7bd4cf3c3edf35393b8e10024
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pathlib import Path from multiprocessing import Queue from threading import Thread import depthai as dai from enum import Enum import cv2 class EncodingQuality(Enum): BEST = 1 # Lossless MJPEG HIGH = 2 # MJPEG Quality=97 (default) MEDIUM = 3 # MJPEG Quality=93 LOW = 4 # H265...
39.967347
151
0.586806
55bc06231e1a446fc70f473cb2a21d5ebcf96c4a
2,110
py
Python
init.py
Lusorede/lr-hr-cr
fa4244517db2c778d3f09762599007be26b88f3c
[ "MIT" ]
null
null
null
init.py
Lusorede/lr-hr-cr
fa4244517db2c778d3f09762599007be26b88f3c
[ "MIT" ]
null
null
null
init.py
Lusorede/lr-hr-cr
fa4244517db2c778d3f09762599007be26b88f3c
[ "MIT" ]
null
null
null
# Simple test for NeoPixels on Raspberry Pi import time import board import neopixel # Choose an open pin connected to the Data In of the NeoPixel strip, i.e. board.D18 # NeoPixels must be connected to D10, D12, D18 or D21 to work. pixel_pin = board.D12 # The number of NeoPixels num_pixels = 59 # The order of the p...
27.402597
89
0.609479
29cef49a26a1f947f98b349505667f8173f48c06
14,953
py
Python
slim/nets/vgg.py
apacha/Mensural-Detector
d924a651bca5ccb97c7b45861b9ef5ef6e4cb26e
[ "MIT" ]
9
2018-12-21T15:11:43.000Z
2021-04-28T06:49:30.000Z
slim/nets/vgg.py
apacha/Mensural-Detector
d924a651bca5ccb97c7b45861b9ef5ef6e4cb26e
[ "MIT" ]
null
null
null
slim/nets/vgg.py
apacha/Mensural-Detector
d924a651bca5ccb97c7b45861b9ef5ef6e4cb26e
[ "MIT" ]
6
2019-01-25T02:53:39.000Z
2021-04-28T06:49:33.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
48.391586
86
0.625025
e296c9af9512dc654e66c5797f85f65079f66178
4,144
py
Python
analyze-results.py
asubah/pixeltrack-standalone
859ffeb0454cc09dc7b1c166fc94548caf5ae02d
[ "Apache-2.0" ]
null
null
null
analyze-results.py
asubah/pixeltrack-standalone
859ffeb0454cc09dc7b1c166fc94548caf5ae02d
[ "Apache-2.0" ]
null
null
null
analyze-results.py
asubah/pixeltrack-standalone
859ffeb0454cc09dc7b1c166fc94548caf5ae02d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import argparse import statistics import collections cpuCoresSet = None def analyzeList(names, inputData, peakName): data = {x:[] for x in names} for meas in inputData[1:-1]: # skip first and last for key, lst in data.items(): if key in meas: ...
37
148
0.528475
9bd880cc8fd1a6e338f3af2c9fd6b42c23a40186
1,315
py
Python
Dynamic Programming/split_coins.py
techsavvyy/coding-problems
84c6c8b5955ccd03e231a4fe6d2b82c3bbdf6e81
[ "MIT" ]
2,647
2019-12-16T13:52:07.000Z
2022-03-31T08:38:35.000Z
Dynamic Programming/split_coins.py
thebeastadi/coding-problems
62b8da6bb99a564bec33b7864a61122b7bab8df0
[ "MIT" ]
16
2019-12-16T17:06:17.000Z
2022-03-24T18:08:06.000Z
Dynamic Programming/split_coins.py
thebeastadi/coding-problems
62b8da6bb99a564bec33b7864a61122b7bab8df0
[ "MIT" ]
556
2019-12-16T14:05:05.000Z
2022-03-31T02:41:34.000Z
''' Split Coins You have a number of coins with various amounts. You need to split the coins in two groups so that the difference between those groups in minimal. Input: [1, 1, 1, 3, 5, 10, 18] Output: 1 Output explanation: First group 1, 3, 5, 10 (or 1, 1, 3, 5, 10) and second group 1, 1, 18 (or 1, 18). ===========...
24.811321
101
0.536122
cfecd737ce946f7ef43ee4d51adb95b2683d9e52
3,220
py
Python
src/lib/docker/images/create/utils/build_context_hasher.py
SimonDudanski/integration-test-docker-environment
3ea81172248f770596d81ff378772677ab5656ea
[ "MIT" ]
null
null
null
src/lib/docker/images/create/utils/build_context_hasher.py
SimonDudanski/integration-test-docker-environment
3ea81172248f770596d81ff378772677ab5656ea
[ "MIT" ]
null
null
null
src/lib/docker/images/create/utils/build_context_hasher.py
SimonDudanski/integration-test-docker-environment
3ea81172248f770596d81ff378772677ab5656ea
[ "MIT" ]
null
null
null
import base64 import hashlib from typing import Dict from ......lib.docker.images.create.utils.file_directory_list_hasher import FileDirectoryListHasher from ......lib.docker.images.image_info import ImageInfo, ImageDescription # TODO add hash config to the hash class BuildContextHasher: def __init__(self, logg...
47.352941
116
0.676398
d3412ff21f26a2b881a111d1e04d77500f1c1e70
462
py
Python
game/layer.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
game/layer.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
game/layer.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'eeneku' class Layer(object): """ This class represents one layer in map. """ def __init__(self): self.width = 0 self.height = 0 self.name = "" self.type = "" self.opacity = 0 self.visible = True self.x = 0 ...
20.086957
43
0.497835
9bab3658206531c3b813c0888415cab7d38eccbf
386
py
Python
plotly/validators/table/_ids.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/table/_ids.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/table/_ids.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name='ids', parent_name='table', **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_typ...
27.571429
73
0.637306
e6ea200b722eb5d62432ba1c76110bb33fa37079
307
py
Python
smanager/machines/permissions/machines.py
Ferald89/deicaphone
52d0c8ee1818a655257c222f7a0d8f9cc5c52bd3
[ "MIT" ]
null
null
null
smanager/machines/permissions/machines.py
Ferald89/deicaphone
52d0c8ee1818a655257c222f7a0d8f9cc5c52bd3
[ "MIT" ]
1
2020-08-03T16:35:56.000Z
2020-08-03T16:35:56.000Z
smanager/machines/permissions/machines.py
Ferald89/deicaphone
52d0c8ee1818a655257c222f7a0d8f9cc5c52bd3
[ "MIT" ]
null
null
null
"""Project permissions classes.""" # Django REST Framework from rest_framework.permissions import BasePermission class IsMachineAdmin(BasePermission): """Allow acess. only to project admins.""" def has_permission(self, request, view): return bool(request.user and request.user.is_admin)
25.583333
59
0.749186
729e8a2450b303858331c743661301f75be0d24b
5,384
py
Python
api/admin/controller/metadata_services.py
vbessonov/circulation
3f522130242298181ce3f5e8392da70a1328fb74
[ "Apache-2.0" ]
null
null
null
api/admin/controller/metadata_services.py
vbessonov/circulation
3f522130242298181ce3f5e8392da70a1328fb74
[ "Apache-2.0" ]
null
null
null
api/admin/controller/metadata_services.py
vbessonov/circulation
3f522130242298181ce3f5e8392da70a1328fb74
[ "Apache-2.0" ]
null
null
null
from nose.tools import set_trace import flask from flask import Response from flask_babel import lazy_gettext as _ from api.admin.problem_details import * from api.nyt import NYTBestSellerAPI from api.novelist import NoveListAPI from core.opds_import import MetadataWranglerOPDSLookup from core.model import ( Extern...
35.421053
129
0.636887
cbe0863f63125f4678c8c3d83c3df5eae19357c6
5,975
py
Python
tests.py
elswob/ga4gh-variant-sim
b108d55a5a92e59cb6cfd738127938506a1ced91
[ "MIT" ]
1
2021-08-09T13:28:37.000Z
2021-08-09T13:28:37.000Z
tests.py
elswob/ga4gh-variant-sim
b108d55a5a92e59cb6cfd738127938506a1ced91
[ "MIT" ]
2
2021-08-03T19:06:14.000Z
2022-02-28T15:32:08.000Z
tests.py
elswob/ga4gh-variant-sim
b108d55a5a92e59cb6cfd738127938506a1ced91
[ "MIT" ]
3
2021-07-30T09:30:45.000Z
2022-02-24T17:20:06.000Z
import tempfile import pathlib import itertools import pytest import msprime import numpy as np import sgkit as sg import sgkit.io.vcf as sg_vcf import click.testing import cyvcf2 import simulator class TestSgkitRoundTrip: def verify(self, ts, variant_chunk_size=10, sample_chunk_size=10): with tempfile....
38.548387
79
0.590962
cc0ff917e2242a1e526ebea941094a66b7cf6220
838
py
Python
clientcompat/pycompat/setup.py
darioielardi/twirk
ce0c2874f75831ca70081910246e0ca6fb6bead2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
clientcompat/pycompat/setup.py
darioielardi/twirk
ce0c2874f75831ca70081910246e0ca6fb6bead2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
clientcompat/pycompat/setup.py
darioielardi/twirk
ce0c2874f75831ca70081910246e0ca6fb6bead2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 Twitch Interactive, 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. A copy of the License is # located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in...
33.52
79
0.74105
9fc9bbe52bcbea50a49ef639132abf57b1861478
3,825
py
Python
large-data/preprocessingdata.py
shivank01/DeepLearning
d94dc2f8f3d5bfc509f0ec8a1a4b794f0b846ad4
[ "MIT" ]
2
2018-01-18T13:32:28.000Z
2018-06-10T02:14:11.000Z
large-data/preprocessingdata.py
shivank01/DeepLearning
d94dc2f8f3d5bfc509f0ec8a1a4b794f0b846ad4
[ "MIT" ]
null
null
null
large-data/preprocessingdata.py
shivank01/DeepLearning
d94dc2f8f3d5bfc509f0ec8a1a4b794f0b846ad4
[ "MIT" ]
null
null
null
import nltk from nltk.tokenize import word_tokenize from nltk.stem import WordNetLemmatizer import pickle import numpy as np import pandas as pd lemmatizer = WordNetLemmatizer() ''' polarity 0 = negative. 2 = neutral. 4 = positive. id date query user tweet ''' def init_process(fin, fout): ou...
29.198473
85
0.530458
0d0c16a4bc81aed8612d94e00fb31b17f39278dd
725
py
Python
src/apps/manager/purpleserver/manager/serializers/parcel.py
blueprin4/purplship-server
e4817d6f6fb358adb10eab81153cf564fdcbc784
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/apps/manager/purpleserver/manager/serializers/parcel.py
blueprin4/purplship-server
e4817d6f6fb358adb10eab81153cf564fdcbc784
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/apps/manager/purpleserver/manager/serializers/parcel.py
blueprin4/purplship-server
e4817d6f6fb358adb10eab81153cf564fdcbc784
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from purpleserver.core.serializers import ParcelData from purpleserver.manager.models import Parcel class ParcelSerializer(ParcelData): def __init__(self, *args, **kwargs): if 'data' in kwargs and isinstance(kwargs['data'], str): kwargs.update( data=ParcelData(Parcel.objects.g...
30.208333
75
0.646897
d1118cc6d33ff50faf2e5a76bde97a760d81a1ca
3,298
py
Python
gman.py
digitalcircuits/g_man
530f895a33694f068823a9754aa3ccd558a9ae02
[ "MIT" ]
2
2020-12-10T01:32:07.000Z
2021-10-18T07:46:29.000Z
gman.py
digitalcircuits/g_man
530f895a33694f068823a9754aa3ccd558a9ae02
[ "MIT" ]
2
2021-12-04T00:24:39.000Z
2022-02-10T04:41:45.000Z
gman.py
digitalcircuits/g_man
530f895a33694f068823a9754aa3ccd558a9ae02
[ "MIT" ]
1
2020-12-10T01:34:59.000Z
2020-12-10T01:34:59.000Z
import asyncio import bot_info import database as db import discord from discord.ext import commands import media_cache import os import re import sys import traceback # If any videos were not deleted while the bot was last up, remove them vid_files = [f for f in os.listdir('vids') if os.path.isfile(os.path.join('vid...
32.98
169
0.687993
711a3bcc8e464ffc361ccd8dfa5405bb9cd55f25
667
py
Python
src/ajusteCurvas/gaussElimination.py
MendozaEmerson/AriMath
97e75db6d3508d78d103eda07afbbfeb525958a9
[ "Apache-2.0" ]
null
null
null
src/ajusteCurvas/gaussElimination.py
MendozaEmerson/AriMath
97e75db6d3508d78d103eda07afbbfeb525958a9
[ "Apache-2.0" ]
2
2021-12-22T21:32:08.000Z
2021-12-22T21:32:09.000Z
src/ajusteCurvas/gaussElimination.py
MendozaEmerson/AriMath
97e75db6d3508d78d103eda07afbbfeb525958a9
[ "Apache-2.0" ]
2
2021-12-02T20:35:45.000Z
2021-12-05T19:03:24.000Z
def gaussElimination(m): # Eliminacion de columnas for col in range(len(m[0])): for row in range(col+1, len(m)): r = [(rowValue * (-(m[row][col] / m[col][col]))) for rowValue in m[col]] m[row] = [sum(pair) for pair in zip(m[row], r)] ans = [] m.reverse() # makes it easier...
37.055556
84
0.464768
28a529cd2ed650730f653e33877de8774ad198f5
3,790
py
Python
tests/test_cmd_renumber_lans.py
gordon-shumway-net/peeringdb
a6260ff38ded13ae29d20f13f6d6955a4ad08189
[ "BSD-2-Clause" ]
null
null
null
tests/test_cmd_renumber_lans.py
gordon-shumway-net/peeringdb
a6260ff38ded13ae29d20f13f6d6955a4ad08189
[ "BSD-2-Clause" ]
null
null
null
tests/test_cmd_renumber_lans.py
gordon-shumway-net/peeringdb
a6260ff38ded13ae29d20f13f6d6955a4ad08189
[ "BSD-2-Clause" ]
null
null
null
import io from .util import ClientCase, Group from django.core.management import call_command from django.contrib.auth import get_user_model from django.conf import settings from peeringdb_server.models import REFTAG_MAP class TestRenumberLans(ClientCase): @classmethod def setUpTestData(cls): super...
29.379845
85
0.573615
3be6a0a5a5676f960dd2f425e47e397dc053c197
2,065
py
Python
deposit_withdraw.py
menonu/zaif_to_koinly
c73e14135458dfd0a16e6ead092b081f0cecde0a
[ "MIT" ]
null
null
null
deposit_withdraw.py
menonu/zaif_to_koinly
c73e14135458dfd0a16e6ead092b081f0cecde0a
[ "MIT" ]
null
null
null
deposit_withdraw.py
menonu/zaif_to_koinly
c73e14135458dfd0a16e6ead092b081f0cecde0a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests import json import os import hmac import hashlib import sys import time from datetime import datetime, timedelta, timezone from urllib.parse import urlencode from dotenv import load_dotenv import csv load_dotenv() currencies = [ "jpy", "btc", "xem", "XYM", "ETH", "BCH", ] metho...
29.927536
98
0.60678
9f4129c851ba2f0cd0a6d9c6ccb62e81df838784
623
py
Python
Testing/__init__.py
geosharma/PyNite
b7419ac352b48d7cd92b1a34a30d0083e19cfb78
[ "MIT" ]
199
2019-04-12T05:30:43.000Z
2022-03-29T23:42:01.000Z
Testing/__init__.py
mohashrafy/PyNite
efffccdbff6727d3b271ba2937e35892d9df8c00
[ "MIT" ]
103
2019-07-22T19:41:26.000Z
2022-03-31T22:18:32.000Z
Testing/__init__.py
mohashrafy/PyNite
efffccdbff6727d3b271ba2937e35892d9df8c00
[ "MIT" ]
69
2019-02-07T12:02:01.000Z
2022-03-24T13:24:38.000Z
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2020 D. Craig Brinck, SE; tamalone1 """ import unittest # Run the tests in this module # Use warnings flag to suppress the PendingDeprecationWarning # from numpy.matrix # unittest.main(warnings='ignore') test_suite = unittest.TestLoader().discover("Testing", pat...
24.92
91
0.730337
404ad784778666989b0ab6955fc73eecd6154ef8
462
py
Python
boolean_parser/parsers/__init__.py
linozen/boolean_parser
2483106add3afceb27cc30f63bef304c3e41a08a
[ "BSD-3-Clause" ]
6
2020-09-25T06:55:37.000Z
2022-03-24T20:17:11.000Z
boolean_parser/parsers/__init__.py
linozen/boolean_parser
2483106add3afceb27cc30f63bef304c3e41a08a
[ "BSD-3-Clause" ]
6
2020-11-10T16:32:30.000Z
2022-03-31T20:59:33.000Z
boolean_parser/parsers/__init__.py
linozen/boolean_parser
2483106add3afceb27cc30f63bef304c3e41a08a
[ "BSD-3-Clause" ]
1
2020-12-16T12:19:11.000Z
2020-12-16T12:19:11.000Z
## !/usr/bin/env python # -*- coding: utf-8 -*- # # Filename: __init__.py # Project: parsers # Author: Brian Cherinka # Created: Sunday, 17th February 2019 12:40:21 pm # License: BSD 3-clause "New" or "Revised" License # Copyright (c) 2019 Brian Cherinka # Last Modified: Sunday, 17th February 2019 3:44:50 pm # Modified...
25.666667
64
0.738095
b61f5e7bcae8e5647a904f5572e5f5ca36d89381
29,102
py
Python
env/lib/python3.6/site-packages/numpy/core/numerictypes.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
env/lib/python3.6/site-packages/numpy/core/numerictypes.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
13
2020-01-28T22:20:14.000Z
2022-03-11T23:20:14.000Z
env/lib/python3.6/site-packages/numpy/core/numerictypes.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
""" numerictypes: Define the numeric type objects This module is designed so "from numerictypes import \\*" is safe. Exported symbols include: Dictionary with all registered number types (including aliases): typeDict Type objects (not all will be available, depends on platform): see variable sctypes fo...
28.117874
88
0.573912
0e70c7c70f04a12931abe0384362e95639091d66
30,660
bzl
Python
pkg/tests/mappings/mappings_test.bzl
alexeagle/rules_pkg
2835cfd02a7e53f57b2c27e68ff0c945dd10bca4
[ "Apache-2.0" ]
null
null
null
pkg/tests/mappings/mappings_test.bzl
alexeagle/rules_pkg
2835cfd02a7e53f57b2c27e68ff0c945dd10bca4
[ "Apache-2.0" ]
null
null
null
pkg/tests/mappings/mappings_test.bzl
alexeagle/rules_pkg
2835cfd02a7e53f57b2c27e68ff0c945dd10bca4
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Bazel 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 applicable la...
32.004175
109
0.61696
983e7963963c09dd32ed03891b65bfd3455fdde5
8,353
py
Python
openmp/mpic3/mpic3_py/fmpic3.py
gcasabona/cuda
064cfa02398e2402c113d45153d7ba36ae930f7e
[ "W3C" ]
51
2017-03-22T04:06:03.000Z
2022-01-18T22:48:51.000Z
openmp/mpic3/mpic3_py/fmpic3.py
gcasabona/cuda
064cfa02398e2402c113d45153d7ba36ae930f7e
[ "W3C" ]
null
null
null
openmp/mpic3/mpic3_py/fmpic3.py
gcasabona/cuda
064cfa02398e2402c113d45153d7ba36ae930f7e
[ "W3C" ]
25
2017-02-22T05:21:32.000Z
2022-01-02T14:53:19.000Z
#----------------------------------------------------------------------- # Skeleton 3D Electrostatic OpenMP PIC code # written by Viktor K. Decyk, Adam Tableman, and Qiyang Hu, UCLA import math import numpy from fmpush3 import * from dtimer import * from fomplib import * int_type = numpy.int32 double_type = numpy.floa...
33.546185
73
0.671376
9db6c4d55cbf1d4bd63207f023756205852d4c34
1,463
py
Python
django_auth/p_library/migrations/0002_auto_20200626_0952.py
bobruk76/D7
f5167ac40d093d49a89c36b3465e5073e6530ed1
[ "MIT" ]
null
null
null
django_auth/p_library/migrations/0002_auto_20200626_0952.py
bobruk76/D7
f5167ac40d093d49a89c36b3465e5073e6530ed1
[ "MIT" ]
7
2021-04-08T21:29:04.000Z
2022-01-13T03:05:35.000Z
django_auth/p_library/migrations/0002_auto_20200626_0952.py
bobruk76/D7
f5167ac40d093d49a89c36b3465e5073e6530ed1
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-26 06:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('p_library', '0001_initial'), ] operations = [ migrations.CreateModel( name='BookPublishing', ...
40.638889
177
0.625427
bdd9f79b6cdef101ef2449ec76b229dbee1261a3
9,844
py
Python
deploy/virenv/lib/python2.7/site-packages/sphinx/make_mode.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/sphinx/make_mode.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/sphinx/make_mode.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.make_mode ~~~~~~~~~~~~~~~~ sphinx-build -M command-line handling. This replaces the old, platform-dependent and once-generated content of Makefile / make.bat. This is in its own module so that importing it is fast. It should not import the main Sphinx m...
37.861538
89
0.588582
23a7196c77d19d89be9309ee72b566e11733343c
120,035
py
Python
src/azure-cli/azure/cli/command_modules/acs/custom.py
WCollins3/azure-cli
1639f71f25e926376e3af7014325329702e028ec
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/acs/custom.py
WCollins3/azure-cli
1639f71f25e926376e3af7014325329702e028ec
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/acs/custom.py
WCollins3/azure-cli
1639f71f25e926376e3af7014325329702e028ec
[ "MIT" ]
1
2019-09-30T22:27:10.000Z
2019-09-30T22:27:10.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.889678
222
0.656717
b1ba3ccefa98ee194a1e12a59f3a02e20a2798ec
641
py
Python
setup.py
matthewwen/QueueUp-Bot
68d8c438b23deaf6e3a96afda862acf3c98ff7cd
[ "MIT" ]
null
null
null
setup.py
matthewwen/QueueUp-Bot
68d8c438b23deaf6e3a96afda862acf3c98ff7cd
[ "MIT" ]
1
2021-04-17T00:23:32.000Z
2021-04-17T00:23:32.000Z
setup.py
matthewwen/QueueUp-Bot
68d8c438b23deaf6e3a96afda862acf3c98ff7cd
[ "MIT" ]
2
2021-04-04T15:39:38.000Z
2021-04-16T03:20:36.000Z
import setuptools with open('requirements.txt') as f: requirements = f.read().splitlines() setuptools.setup( name='queue_bot', version="0.0.1", install_requires=requirements, author="Matthew Wen", author_email="mattwen2018@gmail.com", description="QueueUpBot", packages=setuptools.find_...
27.869565
48
0.633385
456246384c0556393d228263bd2b20e7fd5668a3
30,244
py
Python
tests/luke/test_tokenization_luke.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
3
2022-01-15T08:06:07.000Z
2022-03-10T07:13:18.000Z
tests/luke/test_tokenization_luke.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
2
2022-03-14T10:13:16.000Z
2022-03-14T11:50:27.000Z
tests/luke/test_tokenization_luke.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
2
2022-03-21T04:32:39.000Z
2022-03-22T01:02:49.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Team. 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 requir...
45.548193
213
0.616949
81237c7dfde67ecc4f8ebed4e41d4afc3b78b1d7
2,352
py
Python
masif/input_output/save_ply.py
edraizen/masif
d8b96275d8b32ba36db1d459bb52c0629a4bd7dd
[ "Apache-2.0" ]
2
2022-02-24T00:47:03.000Z
2022-02-24T00:47:10.000Z
masif/input_output/save_ply.py
edraizen/masif
d8b96275d8b32ba36db1d459bb52c0629a4bd7dd
[ "Apache-2.0" ]
null
null
null
masif/input_output/save_ply.py
edraizen/masif
d8b96275d8b32ba36db1d459bb52c0629a4bd7dd
[ "Apache-2.0" ]
2
2021-10-21T00:53:24.000Z
2021-11-14T05:26:32.000Z
import sys import pymesh import numpy as np """ read_ply.py: Save a ply file to disk using pymesh and load the attributes used by MaSIF. Pablo Gainza - LPDI STI EPFL 2019 Released under an Apache License 2.0 """ def save_ply( filename, vertices, faces=[], normals=None, charges=None, vertex_cb=...
29.4
92
0.635204
612d706321037bebf6abd5dd22d89aeae680bf32
4,130
py
Python
userbot/plugins/converttomp3.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/converttomp3.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/converttomp3.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
"""File Converter .convert mp3 """ import asyncio import os import time from datetime import datetime from userbot.utils import lightning_cmd, progress @borg.on(lightning_cmd(pattern="convert (.*)")) # pylint:disable=E0602 async def _(event): if event.fwd_from: return input_str = event.pattern_matc...
35
89
0.549395
5a8bb7448e87ccd97d397103304f4818e87950fb
3,744
py
Python
ext/help.py
CutieRei/growtube-news
e9cc1775364f1d9563b86aa84067a632f6a23deb
[ "WTFPL" ]
2
2021-11-23T09:05:21.000Z
2021-11-23T14:17:37.000Z
ext/help.py
ReyterYT/growtube-news
e9cc1775364f1d9563b86aa84067a632f6a23deb
[ "WTFPL" ]
3
2021-12-09T07:17:03.000Z
2021-12-16T04:01:49.000Z
ext/help.py
ReyterYT/growtube-news
e9cc1775364f1d9563b86aa84067a632f6a23deb
[ "WTFPL" ]
1
2021-12-09T07:10:48.000Z
2021-12-09T07:10:48.000Z
from typing import Coroutine, Dict, List, Mapping, Optional, Set, Union from discord.ext import commands from bot import GrowTube import discord embed_color = GrowTube.EMBED_COLOUR class Help(commands.HelpCommand): command: str async def prepare_help_command(self, ctx, command): self.command = com...
34.036364
101
0.593483
259b0cf338a28f9894000d0d615be2dfdc3b9673
2,430
py
Python
manga_py/crypt/viz_com.py
paulolimac/manga-py
3d180846750a4e770b5024eb8cd15629362875b1
[ "MIT" ]
null
null
null
manga_py/crypt/viz_com.py
paulolimac/manga-py
3d180846750a4e770b5024eb8cd15629362875b1
[ "MIT" ]
null
null
null
manga_py/crypt/viz_com.py
paulolimac/manga-py
3d180846750a4e770b5024eb8cd15629362875b1
[ "MIT" ]
null
null
null
import re from typing import List, Optional, Tuple from PIL import Image from sys import stderr WIDTH = 256 HEIGHT = 257 KEY = 42016 class VizComMatrix: @classmethod def solve_image(cls, path: str, metadata: dict) -> Optional[Image.Image]: orig = Image.open(path) # type: Image.Image new_size...
31.153846
89
0.51893
3312176d0a1a68a032884a53b73ec3ff9325b9b5
100
py
Python
lovecraftian_fasttext.py
Wonqu/SMAA2019_Team5
37236eace226ff9e30744b43869447a4e9def897
[ "MIT" ]
null
null
null
lovecraftian_fasttext.py
Wonqu/SMAA2019_Team5
37236eace226ff9e30744b43869447a4e9def897
[ "MIT" ]
5
2020-01-28T23:11:18.000Z
2022-02-10T00:40:37.000Z
lovecraftian_fasttext.py
Wonqu/SMAA2019_Team5
37236eace226ff9e30744b43869447a4e9def897
[ "MIT" ]
null
null
null
import fasttext model = fasttext.train_supervised(input="data/cooking.stackexchange/cooking.train")
33.333333
83
0.84
ac304cf38d073a2f29072a0318961ef9bd4bff21
512
py
Python
ex058.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
ex058.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
ex058.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
from random import randint pc = randint(0, 10) cont = 0 print('Pensei em um número entre 0 e 10.') n = int(input('Você consegue adivinhar? :> Então diga: ')) while pc != n: if pc > n: print('Maior...') elif pc < n: print('Menor...') n = int(input('Tente novamente: ')) cont += 1 if cont =...
30.117647
106
0.605469
6180ef58e5cc7d5a751a7199aa621048c2c6ae10
1,482
py
Python
django/contrib/localflavor/sk/forms.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
3
2016-07-08T23:49:32.000Z
2018-04-15T22:55:01.000Z
django/contrib/localflavor/sk/forms.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
27
2017-02-05T15:57:04.000Z
2018-04-15T22:57:26.000Z
django/contrib/localflavor/sk/forms.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
null
null
null
""" Slovak-specific form helpers """ from django.forms.fields import Select, RegexField from django.utils.translation import ugettext_lazy as _ class SKRegionSelect(Select): """ A select widget widget with list of Slovak regions as choices. """ def __init__(self, attrs=None): from ...
33.681818
80
0.650472
e9f85440c58f173d8982d8d5808b0e6db03a68cd
3,643
py
Python
1 Assainment 2021 3/3.py
Mohammed20201991/Python
95c1998ad1c96868b239b9f692b59901433bc13a
[ "MIT" ]
null
null
null
1 Assainment 2021 3/3.py
Mohammed20201991/Python
95c1998ad1c96868b239b9f692b59901433bc13a
[ "MIT" ]
null
null
null
1 Assainment 2021 3/3.py
Mohammed20201991/Python
95c1998ad1c96868b239b9f692b59901433bc13a
[ "MIT" ]
null
null
null
''' The Home Work #2 done by Mohammed Al-Hitawy (P622VN) Supervision of teacher Mr.A Alwahab Date 4/4/2021''' #Home work3 # make dictonary to stor char and letters with key : value letter_dic = {"A": 10, "B": 11, "C": 12, "D": 13, "E": 14, "F": 15, "G": 16, "H": 17, "I": 18, "J": 19, "K": 20, "L...
39.597826
129
0.601976
c77d5b42f0cdd83c5b0167f7332ceaa694f08e56
4,037
py
Python
src/tests.py
LoryPack/KL-divergence-estimators
051415977d324d3d5d735a7a25be8099ad3781c4
[ "MIT" ]
30
2018-09-04T09:17:11.000Z
2022-02-13T19:25:44.000Z
src/tests.py
LoryPack/KL-divergence-estimators
051415977d324d3d5d735a7a25be8099ad3781c4
[ "MIT" ]
1
2021-03-06T15:58:22.000Z
2021-03-06T15:58:22.000Z
src/tests.py
LoryPack/KL-divergence-estimators
051415977d324d3d5d735a7a25be8099ad3781c4
[ "MIT" ]
13
2018-07-07T10:28:31.000Z
2021-03-28T09:55:38.000Z
""" Basic statistical analysis of KL divergence estimators Provides a few (ducktyped) classes implementing analyses of KL-divergence estimators. Each analysis defines two probability distributions to be compared, and produces the KL-Divergence estimate along with an error estimate (the central 68% of value...
46.402299
105
0.693584
68105b468995b6600a3c762e40faf9134e70dc4b
15,552
py
Python
PlotMaps.py
pinjaliina/AnalyseCommutes
a9ba964f10a49d8784fe87ab0f64f87fa5191b3d
[ "MIT" ]
null
null
null
PlotMaps.py
pinjaliina/AnalyseCommutes
a9ba964f10a49d8784fe87ab0f64f87fa5191b3d
[ "MIT" ]
null
null
null
PlotMaps.py
pinjaliina/AnalyseCommutes
a9ba964f10a49d8784fe87ab0f64f87fa5191b3d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Loop through selected (hardcoded!) RunAnalysis.R output tables and plot chosen parts of the data on Bokeh maps. Created on Wed Apr 15 15:26:30 2020 @author: Pinja-Liina Jalkanen (pinjaliina@iki.fi) """ # Silence FutureWarnings of Pandas import warnings warnings.simp...
38.49505
85
0.562371
4a3ce79bb912ad63717e516ab537b0d5fdf592be
2,373
py
Python
script/editor/editor_main.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
script/editor/editor_main.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
script/editor/editor_main.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
import toy import PySide2 from PySide2 import QtWidgets, QtCore from .qtui import ui_main_window import toyentry class GameWidget(QtWidgets.QWidget): def __init__(self, parent=None): super().__init__(parent) def resizeEvent(self, event: PySide2.QtGui.QResizeEvent) -> None: self.repositio...
27.917647
86
0.674252
300552022f1ec2e9e44c0d001ee477ac690ec60e
1,264
py
Python
algorithms/12. Integer to Roman.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/12. Integer to Roman.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/12. Integer to Roman.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
""" 1. Clarification 2. Possible solutions - Simulation - Hard-coding 3. Coding 4. Tests """ # T=O(1), S=O(1), see also leetcode 13. class Solution: VALUE_SYMBOLS = [ (1000, 'M'), (900, 'CM'), (500, 'D'), (400, 'CD'), (100, 'C'), (90, 'XC'), (50, 'L...
23.407407
75
0.416139
466ad42628dec0b783357f6a01b8865c6679f231
2,551
py
Python
boto/cloudsearch/__init__.py
adastreamer/boto
ce472cbbcffd06298fdd0c980d5bfcdcee875498
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
boto/cloudsearch/__init__.py
adastreamer/boto
ce472cbbcffd06298fdd0c980d5bfcdcee875498
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
boto/cloudsearch/__init__.py
adastreamer/boto
ce472cbbcffd06298fdd0c980d5bfcdcee875498
[ "MIT" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. # All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without...
43.237288
75
0.671893
221197b7887bdea6adb200fd860a3cc1022d366e
1,575
py
Python
aliyun-python-sdk-push/aliyunsdkpush/request/v20160801/BindTagRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-push/aliyunsdkpush/request/v20160801/BindTagRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-push/aliyunsdkpush/request/v20160801/BindTagRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.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 u...
32.8125
62
0.753016
b6aa892d554163f7c323ee5ad109dd192456a960
11,640
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper This module contains a collection of YANG definitions for Cisco IOS\-XR fretta\-bcm\-dpa\-drop\-stats package operational data. This module contains definitions for the following management objects\: drop\: Drop stats data Copyright (c) 2013\-2018 by Cisco Systems, ...
39.863014
228
0.507131
8433d1e17de716ccf709b1d1b401c98ed70fc151
3,936
py
Python
qa/rpc-tests/wallet.py
DimaPuz/DMTC
8af08b77a80a1f188307bc790603edb3a240fcf4
[ "MIT" ]
3
2018-12-22T16:39:21.000Z
2019-01-25T10:31:31.000Z
qa/rpc-tests/wallet.py
DimaPuz/DMTC
8af08b77a80a1f188307bc790603edb3a240fcf4
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet.py
DimaPuz/DMTC
8af08b77a80a1f188307bc790603edb3a240fcf4
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Exercise the wallet. Ported from wallet.sh. # Does the following: # a) creates 3 nodes, with an emp...
38.970297
98
0.662093
7cce7f036b95a9ff794c71d2f27654d1919e8f69
633
py
Python
TitanicWebApp/manage.py
Vicktron/Titanic-Experience
9013d283e092cc8d6262b13b39ff313a32a41f53
[ "MIT" ]
null
null
null
TitanicWebApp/manage.py
Vicktron/Titanic-Experience
9013d283e092cc8d6262b13b39ff313a32a41f53
[ "MIT" ]
null
null
null
TitanicWebApp/manage.py
Vicktron/Titanic-Experience
9013d283e092cc8d6262b13b39ff313a32a41f53
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TitanicWebApp.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ...
28.772727
77
0.685624
083a005dbd42261169c3a34141e24dc5e7513437
7,135
py
Python
gen_tacotron.py
dmylzenova/ForwardTacotron
065e4ba3d11ac24d52dfa3c0ae0e4e027f3dc665
[ "MIT" ]
10
2021-07-23T04:32:29.000Z
2021-07-23T09:21:30.000Z
gen_tacotron.py
dmylzenova/ForwardTacotron
065e4ba3d11ac24d52dfa3c0ae0e4e027f3dc665
[ "MIT" ]
1
2021-07-28T15:54:37.000Z
2021-07-28T15:54:37.000Z
gen_tacotron.py
dmylzenova/ForwardTacotron
065e4ba3d11ac24d52dfa3c0ae0e4e027f3dc665
[ "MIT" ]
1
2021-11-29T01:56:02.000Z
2021-11-29T01:56:02.000Z
import torch from models.fatchord_version import WaveRNN from utils import hparams as hp from utils.text.symbols import phonemes from utils.paths import Paths from models.tacotron import Tacotron import argparse from utils.text import text_to_sequence, clean_text from utils.display import save_attention, simple_table f...
42.470238
137
0.611913
69104b27a65a9bf651dec5347c78f8fabd3c7151
4,125
py
Python
tensorflow_examples/lite/model_maker/cli/cli_test.py
bookbnnbnn/TFLite_example
9c0585e7977ff4344b68ed8d4cc365da734846b4
[ "Apache-2.0" ]
null
null
null
tensorflow_examples/lite/model_maker/cli/cli_test.py
bookbnnbnn/TFLite_example
9c0585e7977ff4344b68ed8d4cc365da734846b4
[ "Apache-2.0" ]
4
2021-06-08T21:40:57.000Z
2022-03-12T00:32:50.000Z
tensorflow_examples/lite/model_maker/cli/cli_test.py
bookbnnbnn/TFLite_example
9c0585e7977ff4344b68ed8d4cc365da734846b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
34.663866
81
0.658424
5ee44fe3d29601553301750a120b25477ed91b20
908
py
Python
ch1/q11.py
kylepw/ctci
7e2fcc6775db3789d0e425f4fb969acf6c44aad5
[ "MIT" ]
null
null
null
ch1/q11.py
kylepw/ctci
7e2fcc6775db3789d0e425f4fb969acf6c44aad5
[ "MIT" ]
null
null
null
ch1/q11.py
kylepw/ctci
7e2fcc6775db3789d0e425f4fb969acf6c44aad5
[ "MIT" ]
null
null
null
""" q11.py ~~~~~~ Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures? """ import unittest def is_unique(s): if not isinstance(s, str): return False if len(s) <= 1: return True exists = {} for c ...
22.146341
78
0.5
ccabfc4a979bed6e312b60f57a34109681c5e980
1,024
py
Python
src/pybel/struct/summary/provenance.py
djinnome/pybel
6ffc1df662fef51f4d740daf6d7643010a9d5be8
[ "MIT" ]
null
null
null
src/pybel/struct/summary/provenance.py
djinnome/pybel
6ffc1df662fef51f4d740daf6d7643010a9d5be8
[ "MIT" ]
null
null
null
src/pybel/struct/summary/provenance.py
djinnome/pybel
6ffc1df662fef51f4d740daf6d7643010a9d5be8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Summary functions for citation and provenance information in BEL graphs.""" from typing import Iterable, Set from ..filters.edge_predicates import has_pubmed from ...constants import CITATION, CITATION_IDENTIFIER __all__ = [ 'iterate_pubmed_identifiers', 'get_pubmed_identifiers', ...
28.444444
84
0.711914
94e31493f662906d8ff005a027848d36c63b6edb
9,618
py
Python
src/lysate_urea_denaturation/preprocessing/4_clustering.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/lysate_urea_denaturation/preprocessing/4_clustering.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/lysate_urea_denaturation/preprocessing/4_clustering.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
import os, functools import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import skfuzzy as fuzz from kneed import KneeLocator from sklearn.decomposition import PCA from GEN_Utils import FileHandling from loguru import logger logger.info("Import ok") def multiple_PCAs(test_di...
42.370044
159
0.676752
4a0c010da778b9a837c7324c63abf00287661451
15,820
py
Python
msiaLex/modifier.py
yuenkeiwac/msiaLex
344e6e6dede6a28a56f7ee4b787240f224f9be9c
[ "MIT" ]
null
null
null
msiaLex/modifier.py
yuenkeiwac/msiaLex
344e6e6dede6a28a56f7ee4b787240f224f9be9c
[ "MIT" ]
null
null
null
msiaLex/modifier.py
yuenkeiwac/msiaLex
344e6e6dede6a28a56f7ee4b787240f224f9be9c
[ "MIT" ]
null
null
null
def negation(lang): if(lang == 'en'): return ['no', 'not', 'none', 'nobody', 'nothing', 'neither', 'never', 'cannot'] elif(lang == 'zsm'): return ['tidak', 'tiada', 'tak', 'bukan'] elif(lang == 'zh'): return { '不甚': {'intensity': -1, 'tag': 'd'}, '别无':...
55.704225
308
0.359671
89c735072e7ea569d2fdf3867ae5d90b326be64d
917
py
Python
blockstuff/models.py
polkapolka/pybay
3eb3fb5ac8711192fe45d8a7319f05acd3e5a869
[ "MIT" ]
11
2017-05-31T03:45:02.000Z
2021-09-01T02:53:52.000Z
blockstuff/models.py
polkapolka/pybay
3eb3fb5ac8711192fe45d8a7319f05acd3e5a869
[ "MIT" ]
137
2017-04-19T13:16:09.000Z
2021-09-04T22:06:01.000Z
blockstuff/models.py
polkapolka/pybay
3eb3fb5ac8711192fe45d8a7319f05acd3e5a869
[ "MIT" ]
35
2017-04-20T02:45:26.000Z
2021-09-01T02:53:57.000Z
from django.db import models class Col3(models.Model): overall_title = models.CharField(max_length=255, blank=True) icon_1 = models.CharField(max_length=50, blank=True, help_text="Choose from " + "http://themes-pixeden.com/font-demos/7-stroke/") ...
32.75
79
0.679389
967060e4eaa8f3a7442ce062aa4a360efe115d63
2,232
py
Python
day14.py
drewbrew/advent-of-code-2017
b39c19846317dddd51b1ac9943b94c7e5d4eee53
[ "Apache-2.0" ]
null
null
null
day14.py
drewbrew/advent-of-code-2017
b39c19846317dddd51b1ac9943b94c7e5d4eee53
[ "Apache-2.0" ]
null
null
null
day14.py
drewbrew/advent-of-code-2017
b39c19846317dddd51b1ac9943b94c7e5d4eee53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from day10 import generate_checksums, format_checksums, generate_part_two_input TEST_INPUT = 'flqrgnkx' REAL_INPUT = '<paste input here>' def part_one(input_string): checksum_inputs = [ f'{input_string}-{i}' for i in range(128) ] score = 0 rows = [] for inde...
27.555556
79
0.564516
e50f8680628731960c723351f8a5558118420fc6
387
py
Python
com/anjie/spider/AnJuKePipeline.py
anzaizai/EasySpider
1d24c02bd9879a4c7eb5d801b7b0d3fa4efb2a28
[ "Apache-2.0" ]
null
null
null
com/anjie/spider/AnJuKePipeline.py
anzaizai/EasySpider
1d24c02bd9879a4c7eb5d801b7b0d3fa4efb2a28
[ "Apache-2.0" ]
null
null
null
com/anjie/spider/AnJuKePipeline.py
anzaizai/EasySpider
1d24c02bd9879a4c7eb5d801b7b0d3fa4efb2a28
[ "Apache-2.0" ]
null
null
null
from com.anjie.base.pipeline import BasePipeline; class AnJuKePipeline(BasePipeline): def __init__(self): super(AnJuKePipeline, self).__init__(); self.belongToSpider = 'AnJuKe' def piplineData(self, data): for v in data: print("<------------------------->") pri...
29.769231
81
0.571059
3896d4ff1fc192087f486b120da70178e4eab946
2,621
py
Python
disease/models.py
deadlycoder07/disease-predictor
6bf1fb41fe54a5185b17ad5c151446020f0b604a
[ "MIT" ]
1
2020-05-18T10:44:52.000Z
2020-05-18T10:44:52.000Z
disease/models.py
deadlycoder07/disease-predictor
6bf1fb41fe54a5185b17ad5c151446020f0b604a
[ "MIT" ]
59
2020-05-16T14:52:57.000Z
2021-09-22T19:01:34.000Z
disease/models.py
deadlycoder07/disease-predictor
6bf1fb41fe54a5185b17ad5c151446020f0b604a
[ "MIT" ]
3
2020-05-16T13:43:48.000Z
2020-06-13T21:29:29.000Z
from django.db import models from datetime import datetime, timedelta #from .tocsv import modeltocsv from django.core.management.base import BaseCommand, CommandError import csv import sys from pytz import unicode # Create your models here. class Diseases(models.Model): CHOICES=( ('HI','Highly ...
36.402778
80
0.682182
e83abed536cfa21e9f31cad906819f6ad3afb326
660
py
Python
var/spack/repos/builtin/packages/ruby-asciidoctor/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/ruby-asciidoctor/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/ruby-asciidoctor/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class RubyAsciidoctor(RubyPackage): """A fast, open source text processor and publishing toolchain for converting...
38.823529
96
0.736364
b3bbd72c35b6baf3209b1afb24394ddd01682dc4
903
py
Python
Leetcode/UniquePathsII.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
null
null
null
Leetcode/UniquePathsII.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
1
2019-09-24T22:04:03.000Z
2019-09-24T22:04:03.000Z
Leetcode/UniquePathsII.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
null
null
null
class Solution(object): def uniquePathsWithObstacles(self, obstacleGrid): """ :type obstacleGrid: List[List[int]] :rtype: int """ m = len(obstacleGrid) n = len(obstacleGrid[0]) for row in obstacleGrid: for col, num in enumerate(row): if num == 1: row[col] = -1 ...
27.363636
64
0.516058
3a297424b4c6bff3d839330bff4c3d8bda64a87e
1,098
py
Python
manager/cluster_config_env.py
SSITB/cortex
cb9b64d466fedaceb1cb9171914ffb31409927fe
[ "Apache-2.0" ]
1
2019-11-25T05:47:35.000Z
2019-11-25T05:47:35.000Z
manager/cluster_config_env.py
SSITB/cortex
cb9b64d466fedaceb1cb9171914ffb31409927fe
[ "Apache-2.0" ]
null
null
null
manager/cluster_config_env.py
SSITB/cortex
cb9b64d466fedaceb1cb9171914ffb31409927fe
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Cortex Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.272727
82
0.642077
213573020321d06de14e2a5be0f43b102e3d0591
703
py
Python
Materials/migrations/0006_auto_20180731_2319.py
Gguidini/artheart-db-explorer
8e854248ff799f74f2702f767e5614e154e4a7f8
[ "MIT" ]
null
null
null
Materials/migrations/0006_auto_20180731_2319.py
Gguidini/artheart-db-explorer
8e854248ff799f74f2702f767e5614e154e4a7f8
[ "MIT" ]
null
null
null
Materials/migrations/0006_auto_20180731_2319.py
Gguidini/artheart-db-explorer
8e854248ff799f74f2702f767e5614e154e4a7f8
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-08-01 02:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Materials', '0005_auto_20180731_2308'), ] operations = [ migrations.AlterField( model_name='apostila', name='file', ...
29.291667
197
0.620199
52da5f7702505b93610ad4a9b4647c75eb44ecfa
3,834
py
Python
test/test-app/vendor/kubeflow/core/jupyterhub_spawner.py
wgliang/tf-operator
e38058023f722f8bffb87163676e47563d252f0b
[ "Apache-2.0" ]
4
2019-09-07T12:47:20.000Z
2021-03-24T15:24:06.000Z
test/test-app/vendor/kubeflow/core/jupyterhub_spawner.py
wgliang/tf-operator
e38058023f722f8bffb87163676e47563d252f0b
[ "Apache-2.0" ]
9
2020-09-05T10:33:44.000Z
2022-03-08T22:50:31.000Z
test/test-app/vendor/kubeflow/core/jupyterhub_spawner.py
wgliang/tf-operator
e38058023f722f8bffb87163676e47563d252f0b
[ "Apache-2.0" ]
2
2019-09-07T12:47:11.000Z
2021-04-14T06:25:32.000Z
import json import os from kubespawner.spawner import KubeSpawner from jhub_remote_user_authenticator.remote_user_auth import RemoteUserAuthenticator from oauthenticator.github import GitHubOAuthenticator class KubeFormSpawner(KubeSpawner): def _options_form_default(self): return ''' <label for='image'>Ima...
35.5
98
0.632499
cea4c21107d25dedc856cbcb2ff600941e569310
9,945
py
Python
gammapy/data/hdu_index_table.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
3
2019-01-28T12:21:14.000Z
2019-02-10T19:58:07.000Z
gammapy/data/hdu_index_table.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
gammapy/data/hdu_index_table.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import sys import numpy as np from astropy.io import fits from astropy.table import Table from astropy.utils import lazyproperty from ..utils.scripts import make_path __all...
34.53125
98
0.597084
16a050a4bab162196710fa68af8edd9d5c61615a
897
py
Python
bot/test/test_config.py
Catdontpat/uitabot
bade0822e828812e2acc67ba15e51a3db3f762fe
[ "ISC" ]
5
2018-05-20T17:41:08.000Z
2022-01-16T14:23:29.000Z
bot/test/test_config.py
Catdontpat/uitabot
bade0822e828812e2acc67ba15e51a3db3f762fe
[ "ISC" ]
8
2020-06-06T17:43:17.000Z
2022-01-25T20:15:53.000Z
bot/test/test_config.py
tedle/uitabot
d4850483132d94841a58dbb349383fe9e29bcded
[ "ISC" ]
2
2020-07-18T05:30:19.000Z
2022-01-09T18:07:20.000Z
import json import uita.config def test_load(data_dir): filename = data_dir / "config.test.json" uita_config = uita.config.load(filename) json_config = json.load(filename) def check(uita_obj, json_obj): for key, json_value in json_obj.items(): uita_value = getattr(uita_obj, key, ...
35.88
99
0.622074
e61005267d038556e572c206cc28eac800a5ad79
1,087
py
Python
cea/utilities/physics.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
121
2017-08-15T20:10:22.000Z
2022-03-24T01:25:42.000Z
cea/utilities/physics.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
2,121
2017-07-27T12:02:01.000Z
2022-03-31T16:39:28.000Z
cea/utilities/physics.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
42
2017-09-19T09:59:56.000Z
2022-02-19T20:19:56.000Z
# -*- coding: utf-8 -*- """ Physical functions """ __author__ = "Jimeno A. Fonseca" __copyright__ = "Copyright 2016, Architecture and Building Systems - ETH Zurich" __credits__ = ["Jimeno A. Fonseca", "Gabriel Happle"] __license__ = "MIT" __version__ = "0.1" __maintainer__ = "Daren Thomas" __email__ = "cea@arch.eth...
24.704545
80
0.678013
d4a0563da6f8b2225a1aa43392e1cf2e3c5e6a07
1,273
py
Python
tests/test_utils.py
HackSoftware/simple_schema_validator
703aaff3f3596521589450f65fbb3844ff13e723
[ "MIT" ]
26
2019-02-06T14:54:35.000Z
2021-06-11T07:11:27.000Z
tests/test_utils.py
HackSoftware/simple_schema_validator
703aaff3f3596521589450f65fbb3844ff13e723
[ "MIT" ]
2
2019-02-13T09:55:00.000Z
2020-07-06T07:20:28.000Z
tests/test_utils.py
HackSoftware/simple_schema_validator
703aaff3f3596521589450f65fbb3844ff13e723
[ "MIT" ]
null
null
null
from unittest import TestCase from simple_schema_validator.utils import get_paths, set_nested class UtilsTests(TestCase): def test_get_paths(self): data = { 'a': 1, 'b': { 'c': 2, 'd': { 'f': 3 } } ...
21.216667
63
0.317361
7595b5cef73547b928cafd9eb081fea973686df6
1,292
py
Python
demo/users/tests/test_admin.py
Anning01/cookiecutter-django-demo
ceb43c25a9ad1dad825c30c1e84f81e757f0d82e
[ "MIT" ]
null
null
null
demo/users/tests/test_admin.py
Anning01/cookiecutter-django-demo
ceb43c25a9ad1dad825c30c1e84f81e757f0d82e
[ "MIT" ]
1
2022-03-28T13:44:58.000Z
2022-03-28T13:44:58.000Z
demo/users/tests/test_admin.py
Anning01/cookiecutter-django-demo
ceb43c25a9ad1dad825c30c1e84f81e757f0d82e
[ "MIT" ]
null
null
null
import pytest from django.urls import reverse from demo.users.models import User pytestmark = pytest.mark.django_db class TestUserAdmin: def test_changelist(self, admin_client): url = reverse("admin:users_user_changelist") response = admin_client.get(url) assert response.status_code == 2...
31.512195
79
0.626161
1fef2cb3a30478d52601c415fb47bfdb2624663a
233
py
Python
ninja/__init__.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
ninja/__init__.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
ninja/__init__.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
"""Django Ninja - Fast Django REST framework""" __version__ = "0.2.0" from ninja.main import NinjaAPI from ninja.params import Query, Path, Header, Cookie, Body, Form from ninja.router import Router from ninja.schema import Schema
25.888889
64
0.76824
e4973f499ccb54b40d020dc2d2ecfe0d92be3b6e
4,374
py
Python
danceschool/private_events/models.py
benjwrdill/django-danceschool
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
[ "BSD-3-Clause" ]
1
2019-02-04T02:11:32.000Z
2019-02-04T02:11:32.000Z
danceschool/private_events/models.py
benjwrdill/django-danceschool
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
[ "BSD-3-Clause" ]
2
2019-03-26T22:37:49.000Z
2019-12-02T15:39:35.000Z
danceschool/private_events/models.py
benjwrdill/django-danceschool
9ecb2754502e62d0f49aa23d08ca6de6cae3c99a
[ "BSD-3-Clause" ]
1
2019-03-19T22:49:01.000Z
2019-03-19T22:49:01.000Z
from django.db import models from django.contrib.auth.models import User, Group from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from colorful.fields import RGBColorField from danceschool.core.models import Event, EventCategory, EventOccurrence class Private...
44.181818
224
0.697074
81c2124037faf4a11052a8e05833e446c13ed6a7
366
py
Python
images-processing/processing/transformation.py
saldanhayg/ProJeto_Criacao_Pacotes_de_Imagens_Python
e9321afcaecd297182ddbb4b9f37c6cad8e7ab8f
[ "MIT" ]
1
2020-10-06T12:40:07.000Z
2020-10-06T12:40:07.000Z
images-processing/processing/transformation.py
saldanhayg/ProJeto_Criacao_Pacotes_de_Imagens_Python
e9321afcaecd297182ddbb4b9f37c6cad8e7ab8f
[ "MIT" ]
null
null
null
images-processing/processing/transformation.py
saldanhayg/ProJeto_Criacao_Pacotes_de_Imagens_Python
e9321afcaecd297182ddbb4b9f37c6cad8e7ab8f
[ "MIT" ]
7
2020-08-24T00:35:10.000Z
2022-03-27T16:48:58.000Z
#Author: Karina Tiemi Kato from skimage.transform import resize def resize_image(image, proportion): assert 0 <= proportion <=1, "Specify a valid proportion between 0 and 1." height = round(image.shape[0]*proportion) width = round(image.shape[1]*proportion) image_resized = resize(image, (height, width)...
40.666667
77
0.737705
12cf50e5524a24c2e642c01cd8c55d51b191795a
11,099
py
Python
BioSTEAM 2.x.x/biorefineries/HP/analyses/1_full_evaluation.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-03T21:04:41.000Z
2020-01-09T01:15:48.000Z
BioSTEAM 2.x.x/biorefineries/HP/analyses/1_full_evaluation.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
6
2020-01-03T21:31:27.000Z
2020-02-28T13:53:56.000Z
BioSTEAM 2.x.x/biorefineries/HP/analyses/1_full_evaluation.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-07T14:04:06.000Z
2020-01-08T23:05:25.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com> # Bioindustrial-Park: BioSTEAM's Premier Biorefinery Models and Results # Copyright (C) 2020, Yalin Li <mailto.yalin.li@gmail.com>, # S...
34.684375
155
0.657357
a2184b2955c41492b39995a8cbf778401397c5db
805
py
Python
pymbari/o2sat.py
sghowell/pymbari
ded1a73c86b242196b0541b30d26173fefc265f8
[ "MIT" ]
null
null
null
pymbari/o2sat.py
sghowell/pymbari
ded1a73c86b242196b0541b30d26173fefc265f8
[ "MIT" ]
null
null
null
pymbari/o2sat.py
sghowell/pymbari
ded1a73c86b242196b0541b30d26173fefc265f8
[ "MIT" ]
null
null
null
#! import numpy as np def o2sat(s, t): """ Calculate oxygen concentration at saturation Source: The solubility of nitrogen, oxygen and argon in water and seawater - Weiss (1970) Deep Sea Research V17(4): 721-735. Molar volume of oxygen at STP obtained from NIST website on the thermophysical properties of f...
24.393939
72
0.688199
eca96cb8af0f9e9ac48dc0bfc69bde8dd68ddaf0
108,668
py
Python
lnrpc_generated/routerrpc/router_pb2.py
velomig/lndpytools
40966ba2e6c9c420e49728b09019b72f2dc6662d
[ "MIT" ]
54
2021-07-02T21:50:15.000Z
2022-03-30T17:40:43.000Z
lnrpc_generated/routerrpc/router_pb2.py
velomig/lndpytools
40966ba2e6c9c420e49728b09019b72f2dc6662d
[ "MIT" ]
12
2021-07-07T18:45:56.000Z
2021-10-20T03:46:17.000Z
lnrpc_generated/routerrpc/router_pb2.py
velomig/lndpytools
40966ba2e6c9c420e49728b09019b72f2dc6662d
[ "MIT" ]
13
2021-07-02T21:54:04.000Z
2022-02-08T23:24:19.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: routerrpc/router.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goog...
42.332684
10,525
0.771497
ac01e0796c736f4f1776525812c4762ce27d1226
12,157
py
Python
piccolo/apps/schema/commands/generate.py
AbhijithGanesh/piccolo
8ec9d10313c9ac44916f01e27c9ef58eb22ae0d9
[ "MIT" ]
null
null
null
piccolo/apps/schema/commands/generate.py
AbhijithGanesh/piccolo
8ec9d10313c9ac44916f01e27c9ef58eb22ae0d9
[ "MIT" ]
null
null
null
piccolo/apps/schema/commands/generate.py
AbhijithGanesh/piccolo
8ec9d10313c9ac44916f01e27c9ef58eb22ae0d9
[ "MIT" ]
null
null
null
from __future__ import annotations import dataclasses import typing as t import black from typing_extensions import Literal from piccolo.apps.migrations.auto.serialisation import serialise_params from piccolo.columns.base import Column from piccolo.columns.column_types import ( JSON, JSONB, UUID, Big...
29.579075
91
0.622851
17bcd826886ec512d33b14501c3a9533912453fb
5,028
py
Python
saladier/db/sqlalchemy/models.py
chmouel/kitchen-saladier
0edd5a20c5da551c7924b02062076cf3a1b65263
[ "Apache-2.0" ]
1
2016-01-18T16:05:50.000Z
2016-01-18T16:05:50.000Z
saladier/db/sqlalchemy/models.py
chmouel/kitchen-saladier
0edd5a20c5da551c7924b02062076cf3a1b65263
[ "Apache-2.0" ]
null
null
null
saladier/db/sqlalchemy/models.py
chmouel/kitchen-saladier
0edd5a20c5da551c7924b02062076cf3a1b65263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2014 eNovance SAS <licensing@enovance.com> # # 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...
38.090909
78
0.619332
474af442a1c0ccf81d36b11a46b4f3b7779cc3cf
70,609
py
Python
salt/utils/schedule.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2019-09-17T17:48:55.000Z
2019-09-17T17:48:55.000Z
salt/utils/schedule.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
salt/utils/schedule.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # See doc/topics/jobs/index.rst ''' Scheduling routines are located here. To activate the scheduler make the ``schedule`` option available to the master or minion configurations (master config file or for the minion via config or pillar). Detailed tutorial about scheduling jobs can be found :r...
41.099534
120
0.497642
6348ade04719a26ba5f46b969fd7331660a15888
2,680
py
Python
src/kyc_311_to_esri.py
CityOfLosAngeles/civis-gcp-transition
f322616e9f51b615cee1e35ef741f34690907ff2
[ "Apache-2.0" ]
null
null
null
src/kyc_311_to_esri.py
CityOfLosAngeles/civis-gcp-transition
f322616e9f51b615cee1e35ef741f34690907ff2
[ "Apache-2.0" ]
7
2021-03-25T17:35:48.000Z
2021-08-04T17:35:56.000Z
src/kyc_311_to_esri.py
CityOfLosAngeles/civis-gcp-transition
f322616e9f51b615cee1e35ef741f34690907ff2
[ "Apache-2.0" ]
null
null
null
""" KYC 311 to ESRI Connect to BigQuery. Export as ESRI layer. """ import datetime import ibis import os import pandas from common_utils import utils from google.cloud import bigquery #Set GCP credentials only for local testing #CREDENTIAL = "./ita-datalake-1ba73cf7af69.json" #os.environ['GOOGLE_APPLICATION_CREDEN...
29.777778
106
0.698134
55377f5f8f5f91e06f9f78678080a7909438b69b
817
py
Python
solutions/warbler-solution/part-three/config.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
null
null
null
solutions/warbler-solution/part-three/config.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
null
null
null
solutions/warbler-solution/part-three/config.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
null
null
null
from dotenv import dotenv_values settings = dotenv_values("/Users/yu/sb/conf/.env") DB_CONFIG = { 'driver': settings['PGDRIVER'], 'user': settings['PGUSER'], 'pw': settings['PGPASSWORD'], 'db': 'warb1', 'host': settings['PGHOST'], 'port': settings['PGPORT'], } def config_app(app): app.conf...
30.259259
109
0.669523
b5343594b7201618ab77ad1577ae6aacabe7b458
255
py
Python
django/cms/management/commands/cms_remarkdown.py
dellsystem/notes-from-below
413804a4ece14d5f2af338c4a282ebcef37d610e
[ "MIT" ]
7
2018-02-04T04:20:27.000Z
2021-11-02T16:51:12.000Z
django/cms/management/commands/cms_remarkdown.py
dellsystem/notes-from-below
413804a4ece14d5f2af338c4a282ebcef37d610e
[ "MIT" ]
49
2018-01-31T17:51:58.000Z
2022-03-11T23:16:58.000Z
django/cms/management/commands/cms_remarkdown.py
dellsystem/notes-from-below
413804a4ece14d5f2af338c4a282ebcef37d610e
[ "MIT" ]
1
2020-04-23T15:25:56.000Z
2020-04-23T15:25:56.000Z
from django.core.management.base import BaseCommand from cms.models import * class Command(BaseCommand): help = 'Refreshes formatted_* fields' def handle(self, *args, **options): for page in Page.objects.all(): page.save()
21.25
51
0.670588
96e7fc4aa2ba80a6b1691492a3c374f72ea85f48
58,465
py
Python
lib/DriverUtility/EmDriverCommonUtilityDB.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
lib/DriverUtility/EmDriverCommonUtilityDB.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
lib/DriverUtility/EmDriverCommonUtilityDB.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
1
2020-04-02T01:17:43.000Z
2020-04-02T01:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2019 Nippon Telegraph and Telephone Corporation # Filename: EmDriverCommonUtilityDB.py ''' Common utility (DB) module for the driver. ''' import json import datetime import traceback import GlobalModule from EmCommonLog import decorater_log from E...
41.523438
118
0.563465
73a070045bc0910c7ef3e9ee583b45c71445577a
2,470
py
Python
dataapps/Operations/02_concat_ndarrays.py
shapelets/shapelets-solo-examples
4ceb9b4742543af698c4618fb997ac07dc5c4fc9
[ "MIT" ]
6
2021-06-22T06:51:33.000Z
2021-07-23T13:23:38.000Z
dataapps/Operations/02_concat_ndarrays.py
shapelets/shapelets-solo-examples
4ceb9b4742543af698c4618fb997ac07dc5c4fc9
[ "MIT" ]
23
2021-07-07T08:24:12.000Z
2021-09-13T10:47:01.000Z
dataapps/Operations/02_concat_ndarrays.py
shapelets/shapelets-examples
4ceb9b4742543af698c4618fb997ac07dc5c4fc9
[ "MIT" ]
1
2021-07-07T12:08:17.000Z
2021-07-07T12:08:17.000Z
# Copyright (c) 2021 Grumpy Cat Software S.L. # # This Source Code is licensed under the MIT 2.0 license. # the terms can be found in LICENSE.md at the root of # this project, or at http://mozilla.org/MPL/2.0/. import numpy as np from typing import Tuple from shapelets import init_session from shapelets.dsl.data_app ...
28.068182
102
0.760729
1dad314994fab93f769534c1ec52c7b96db2fdd2
89
py
Python
setup.py
nyancat3/slack-bot-sentiment-analysis
631b9b820806524677a5c098e1154e2f2fd09012
[ "MIT" ]
null
null
null
setup.py
nyancat3/slack-bot-sentiment-analysis
631b9b820806524677a5c098e1154e2f2fd09012
[ "MIT" ]
null
null
null
setup.py
nyancat3/slack-bot-sentiment-analysis
631b9b820806524677a5c098e1154e2f2fd09012
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="sentimentanalysis", version="1.0.0" )
12.714286
29
0.685393
645238aebc442a7443be9d7aefb3b829fa8f293c
7,082
py
Python
shop/views/checkout.py
2000-ion/TIDPP-Lab3
3fc97e6214b6e51f40df39f1692d4deec4bb0cc2
[ "BSD-3-Clause" ]
2,160
2016-01-24T05:08:59.000Z
2022-03-31T12:15:30.000Z
shop/views/checkout.py
2000-ion/TIDPP-Lab3
3fc97e6214b6e51f40df39f1692d4deec4bb0cc2
[ "BSD-3-Clause" ]
455
2016-01-29T22:41:33.000Z
2022-03-23T08:28:01.000Z
shop/views/checkout.py
2000-ion/TIDPP-Lab3
3fc97e6214b6e51f40df39f1692d4deec4bb0cc2
[ "BSD-3-Clause" ]
818
2016-02-01T15:09:07.000Z
2022-03-28T19:52:26.000Z
from django.core.exceptions import ImproperlyConfigured from django.db import transaction from django.utils.module_loading import import_string from django.utils.translation import gettext_lazy as _ from rest_framework import status from rest_framework.decorators import action from rest_framework.exceptions import Vali...
49.524476
107
0.662384
5e473f808b09ef3f5c3dd40dc7a92602b6343e07
1,513
py
Python
slack_channel/get_leader_board_event_handler.py
UnityRobbie/bottomly
ae5f1b9c6ee74392a8525a1c0d611927fe0d7cda
[ "MIT" ]
4
2018-03-12T09:16:49.000Z
2021-07-15T08:21:32.000Z
slack_channel/get_leader_board_event_handler.py
UnityRobbie/bottomly
ae5f1b9c6ee74392a8525a1c0d611927fe0d7cda
[ "MIT" ]
5
2018-03-17T20:27:31.000Z
2020-11-17T09:50:48.000Z
slack_channel/get_leader_board_event_handler.py
UnityRobbie/bottomly
ae5f1b9c6ee74392a8525a1c0d611927fe0d7cda
[ "MIT" ]
7
2018-03-12T10:01:31.000Z
2022-01-18T14:55:00.000Z
import os from commands import GetLeaderBoardCommand from slack_channel.abstract_event_handler import AbstractEventHandler command_symbol = "leaderboard" def _build_response(result: list) -> str: # result example: [{"username": "<username>", "net_karma": <karma value>}] response = "" for r ...
30.877551
103
0.660939
49eed6d8dcaff133953733dca48ff491cfc8c1d4
6,014
py
Python
data_utils/utility.py
fanlu/deepspeech.mxnet
5a948d9d393107e1505d33b7ef7591d862d0be80
[ "Apache-2.0" ]
1
2017-11-24T01:08:27.000Z
2017-11-24T01:08:27.000Z
data_utils/utility.py
fanlu/deepspeech.mxnet
5a948d9d393107e1505d33b7ef7591d862d0be80
[ "Apache-2.0" ]
null
null
null
data_utils/utility.py
fanlu/deepspeech.mxnet
5a948d9d393107e1505d33b7ef7591d862d0be80
[ "Apache-2.0" ]
1
2020-03-07T13:29:08.000Z
2020-03-07T13:29:08.000Z
"""Contains data helper functions.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import codecs import os import tarfile import time from Queue import Queue from threading import Thread from multiprocessing import Process, Manager from paddle...
33.786517
79
0.646492
79c2fa1442cfc700ab55d91871ab90e192780c1d
8,377
py
Python
DeepRL-PT/model/dose_engine/dose_engine.py
amanpreetsingh-BE/DeepRL-Protontherapy
09ebcdcf73000b8c4d1876c3c369bd85d76ba455
[ "MIT" ]
1
2021-08-11T14:36:40.000Z
2021-08-11T14:36:40.000Z
DeepRL-PT/model/dose_engine/dose_engine.py
amanpreetsingh-BE/DeepRL-Protontherapy
09ebcdcf73000b8c4d1876c3c369bd85d76ba455
[ "MIT" ]
null
null
null
DeepRL-PT/model/dose_engine/dose_engine.py
amanpreetsingh-BE/DeepRL-Protontherapy
09ebcdcf73000b8c4d1876c3c369bd85d76ba455
[ "MIT" ]
1
2022-03-18T01:49:03.000Z
2022-03-18T01:49:03.000Z
import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap import numpy as np from get_voxel_index import get_voxel_index from cdirect import cdirect # Generate stopping power database SP_water = np.loadtxt("data/SP_water.txt", 'float', '#', None, None, 8) SP_bone = np.loadtxt("data/SP_bone....
40.665049
225
0.64307
228c1503091f5ca17b52916178a7b1e66d62f379
1,059
py
Python
tasky.py
Sudiukil/Tasky
934353f429c15f7e84e5b4466873384296acef44
[ "0BSD" ]
null
null
null
tasky.py
Sudiukil/Tasky
934353f429c15f7e84e5b4466873384296acef44
[ "0BSD" ]
null
null
null
tasky.py
Sudiukil/Tasky
934353f429c15f7e84e5b4466873384296acef44
[ "0BSD" ]
null
null
null
"""Main Tasky file""" import os import argparse from taskfile import Taskfile def parse_args(): """Return the parser for command line arguments""" parser = argparse.ArgumentParser(description="KISS task manager") parser_grp = parser.add_mutually_exclusive_group() parser_grp.add_argument('-l', action=...
27.153846
93
0.688385
7f64d4d979b52d9f2ec8b29da1526fed2932c614
400
py
Python
utils/py_generate_secrets.py
robotet/sensors-connectivity
47c830f83747524229bad0f77882f353a0f04dbe
[ "BSD-3-Clause" ]
5
2020-06-24T09:10:05.000Z
2021-02-10T16:45:27.000Z
utils/py_generate_secrets.py
robotet/sensors-connectivity
47c830f83747524229bad0f77882f353a0f04dbe
[ "BSD-3-Clause" ]
13
2020-05-01T15:30:13.000Z
2022-03-16T15:38:18.000Z
utils/py_generate_secrets.py
robotet/sensors-connectivity
47c830f83747524229bad0f77882f353a0f04dbe
[ "BSD-3-Clause" ]
7
2020-05-26T12:34:57.000Z
2021-12-29T10:36:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import nacl.signing def main(): signing_key = nacl.signing.SigningKey.generate() signing_key_hex = bytes(signing_key).hex() print(f"Signing key: {signing_key_hex}") verify_key = signing_key.verify_key verify_key_hex = bytes(verify_key).hex() pr...
20
52
0.68