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
31fe857b5336046fc4b93282f053a38847cfe0bf
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/program/model/listing/Bookmark.pyi
daf5c68be46b4922037f73b7817afe92f2eb5835
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
2,124
pyi
import ghidra.program.model.address import ghidra.program.model.listing import java.lang class Bookmark(java.lang.Comparable, object): """ Interface for bookmarks. Bookmarks are locations that are marked within the program so that they can be easily found. """ def compareTo(self, __a0: ...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
475b498730558cf3635706a19a5fa90410feb142
5e8a936891f0687a28425cef248a49480511119d
/pydl/photoop/sdssio/sdssflux2ab.py
47c8f6487d8d12f42405f6e9f4201e85ccf8ddba
[ "BSD-3-Clause" ]
permissive
bsipocz/pydl
426a4cdae003b8c4e86249ec36005925d8ffa341
f8719699c71806f9b55dd41f843e5f35c64c770b
refs/heads/master
2020-12-07T15:43:01.554352
2015-09-24T03:15:14
2015-09-24T03:15:14
45,721,009
0
0
null
2015-11-07T03:30:30
2015-11-07T03:30:29
null
UTF-8
Python
false
false
1,515
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- def sdssflux2ab(flux,magnitude=False,ivar=False): """Convert the SDSS calibrated fluxes (magnitudes) into AB fluxes (magnitudes) Parameters ---------- flux : :class:`numpy.ndarray` Array of calibrated fluxes...
[ "benjamin.weaver@nyu.edu" ]
benjamin.weaver@nyu.edu
2029faea3ce5dd5bad299577b11c46950ad7913a
9ddee35a496f1b99d4f9b634711d30ad9f05a2fa
/case/httpdns/1070.py
7e2515e5721ac05c0e0485a9afdee9851e57738d
[]
no_license
namesuqi/pirate
79824f231990030bdce9e092b300bb58d4ba0024
9308fbfa021f1238c2bd6faeb7d82c2934570140
refs/heads/master
2020-03-07T04:19:07.041355
2018-03-29T08:44:29
2018-03-29T08:44:29
127,263,075
0
0
null
null
null
null
UTF-8
Python
false
false
2,818
py
#!/usr/bin/env python # coding=utf-8 # author: zengyuetian from libs.database.etcd_handler import * if __name__ == "__main__": # 需要根据当前实际配置修改 ttl_conf_old = {"report.crazycdn.com": {"ips": {"default": ["47.104.178.217"]}, "ttl": 1800}, "channel.crazycdn.com": {"ips": {"default": ["47.104.178....
[ "suqi_name@163.com" ]
suqi_name@163.com
0f4cf276661a0de3bf63c88b9d994d2d5f69c7d8
4b8724ec7bb224ff942264384dd7cb9c96676789
/car_project/apps/car_app/apps.py
5918e5de83ee63f6642071520899f8fe9ebc0126
[]
no_license
JeffLawrence1/Python-Django-Advanced
b4822528bbaa5a235817121b32407c11408d8932
b41018d907f06aeb7ca05f1f4b030eedf58471e7
refs/heads/master
2020-03-09T07:59:11.954262
2018-04-08T20:15:45
2018-04-08T20:15:45
128,678,232
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class CarAppConfig(AppConfig): name = 'car_app'
[ "jefflaw13@hotmail.com" ]
jefflaw13@hotmail.com
82c22ab3f3403a1a2baf72e25753d76f9ac0fb61
761b013bc7cd98850f3f26e3f0b0a8e4ec8fdf7d
/arm.py
833bd4af8bd165347ac2ea8e3bc4affa52299173
[]
no_license
tjmode/placement
72e6bca120cb785cac3fc829d84b921af8add01a
ac5af6394e74212bf44510af837a144254ca2f99
refs/heads/master
2020-04-15T16:36:03.489076
2019-07-31T06:14:51
2019-07-31T06:14:51
164,842,584
2
1
null
null
null
null
UTF-8
Python
false
false
189
py
num = int(input()) order = len(str(num)) sum = 0 temp = num while temp > 0: digit = temp % 10 sum += digit ** order temp //= 10 if num == sum: print("yes") else: print("no")
[ "noreply@github.com" ]
tjmode.noreply@github.com
f0e6d7d0c53802aa01ca3c267ba04ebe3f7bb546
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-1/vse-naloge-brez-testov/DN7-M-182.py
4b4ce11c5808c697cbb1e47ed4e9be02e9751e48
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
6,845
py
# To funkcijo prijazno podarjam vsem, ki bodo programirali v eni vrstici. :) # Kako jo uporabiti, je v navodilih. Kdor je ne potrebuje, naj jo ignorira. def vsa_polja(s, v): """ Generiraj vse koordinate (x, y) za polje s podano širino in višino Args: s (int): širina v (int): višina Retu...
[ "lenart.motnikar@gmail.com" ]
lenart.motnikar@gmail.com
a63c062cdb9013fbce1c5eaec2a18d8d71f46f16
220dd5d666b85b716d5762097fb2d320bb8587fd
/test/int/kth_largest.py
0deb333531b86715608b4220b28bf4dfb7edd0fa
[]
no_license
bensenberner/ctci
011946a335396def198acaa596d2b5902af7b993
1e1ba64580ee96392c92aa95904c4751e32d4e30
refs/heads/master
2021-01-10T14:09:01.698323
2020-09-06T04:17:53
2020-09-06T04:17:53
45,659,115
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
import unittest from int.kth_largest import kth_largest class Test(unittest.TestCase): def test(self): arr = [7, 5, 2, 7, 1, 8, 3] self.assertEqual(5, kth_largest(arr, 4)) def test_simple(self): arr = [3, 2, 1] self.assertEqual(3, kth_largest(arr, 1)) self.assertEqual...
[ "benlerner95@gmail.com" ]
benlerner95@gmail.com
9c9fec3a233bcb7fb1af897298b1c336ccdc7b53
f6c103bd11b6a7fe92a2fc48562a06c87a60ac51
/lard/data.py
e20f63ae7dd15b080427aa653f9a03ea5b66aa0e
[]
no_license
brettviren/lard
d17405ab2df1e8f8ef22a2706f0dcad3fe5b06e7
429d71c9912b62f47d18e25c5063eb66d36f6d93
refs/heads/master
2021-01-10T14:21:59.327286
2015-05-25T02:59:01
2015-05-25T02:59:01
36,177,192
0
0
null
null
null
null
UTF-8
Python
false
false
1,255
py
#!/usr/bin/env python '''The lard data model. The objects in this module make up an internal, transient data schema. Modules under lard.adapters produce this data model and modules under lard.renderers accept it to produce some end form. ''' from collections import namedtuple ScalarPoint = namedtuple('ScalarPoint'...
[ "brett.viren@gmail.com" ]
brett.viren@gmail.com
8a65e97c3ab254c2ee98390b1357635b7e212d35
d768f07ed90c0274e2d9d935eaf5ecfe734a1f56
/fit_mcmc_ps.py
2f483e28f42d7cbdab267fa0e28c4998c1cd56ba
[]
no_license
bvillasen/simulation_analysis
cfd0b5de865d2fb5992d828b2824079e6798774b
645f0c397172ed30a713368942eec9ca68a9761a
refs/heads/master
2023-06-02T19:06:39.851760
2021-06-25T18:40:58
2021-06-25T18:40:58
298,894,454
0
0
null
null
null
null
UTF-8
Python
false
false
4,117
py
import os, sys import numpy as np import pickle import matplotlib.pyplot as plt sys.path.append('tools') from tools import * #Append analysis directories to path extend_path() from parameters_UVB_rates import param_UVB_Rates from simulation_grid import Simulation_Grid from simulation_parameters import * from mcmc_funct...
[ "bvillasen@gmail.com" ]
bvillasen@gmail.com
da37392ae50890a6cbecaf0cfad0d4d00faaf40f
d6c66cea8c8a91681c2c913f663c2d3ea5d73f0c
/0. Introduction/copyspecial/copyspecial.py
bfe916fef6a1405d9a91d828836e8660b2a43ad1
[]
no_license
drewlinsley/CLPS1950_assignments
28cc578cd981b417078a14af0fd362801a805a72
10f1df11d8270b0865ad03eb02e36e7b2f010159
refs/heads/master
2020-03-28T03:51:11.884643
2018-09-06T13:14:02
2018-09-06T13:14:02
147,675,900
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
#!/usr/bin/python # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # https://developers.google.com/edu/python/exercises/copy-special import sys import re import os import shutil import commands """Copy Special exercise ...
[ "drewlinsley@gmail.com" ]
drewlinsley@gmail.com
81035d4ccc746d19a13221ac8581635b6ffb7cda
ba66da3901361854b9bb621586f1e49ad0121ee0
/正式开班/第十三天/网络编程/deepin_test.py
9fb856a8503ceb648ae75190f86d2fa1bd0780e4
[]
no_license
luobodage/PythonBasis
c4739920055afbda03774d90151ab183a83583f8
ea65536e759fec221a70d7647ae86120277d5459
refs/heads/master
2023-05-14T15:51:56.213282
2021-05-31T00:57:56
2021-05-31T00:57:56
322,145,745
3
1
null
null
null
null
UTF-8
Python
false
false
300
py
import socket def main(): # while True: ip_addrs = ('192.168.56.1', 8899) udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) cotent = input('请输入您要发送的内容:') udp.sendto(cotent.encode('gbk'), ip_addrs) udp.close() if __name__ == '__main__': main()
[ "fuyu16032001@gmail.com" ]
fuyu16032001@gmail.com
17f14936cb5142adcf736ab599ebe5d21785778c
6a95112805b64322953429270a305d01fef3faea
/dist/weewx-4.6.2/bin/weewx/__init__.py
57b8d45778a75f501f7d386c6d2692212d3bb389
[ "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0" ]
permissive
tomdotorg/docker-weewx
c6d59dc492a9e53f3bc898f7b9f593717092d72c
7085654f455d39b06acc688738fde27e1f78ad1e
refs/heads/main
2023-06-08T17:57:44.184399
2023-01-30T11:21:23
2023-01-30T11:21:23
54,113,384
21
16
Apache-2.0
2022-10-19T23:46:26
2016-03-17T11:39:29
Dockerfile
UTF-8
Python
false
false
5,375
py
# # Copyright (c) 2009-2021 Tom Keffer <tkeffer@gmail.com> # # See the file LICENSE.txt for your full rights. # """Package weewx, containing modules specific to the weewx runtime engine.""" from __future__ import absolute_import import time __version__="4.6.2" # Holds the program launch time in unix epoch secon...
[ "tom@tom.org" ]
tom@tom.org
dceefecc0bbc05158cdf9888075288b412680302
a7b175357e1ed29dc8332a950e320e64f5db6703
/venv/Lib/site-packages/wx/py/PyShell.py
c42152a96a555923eeaae65935079cb89adcf6cc
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
saleguas/deskOrg
f65b8603464dbb0e17363ca8a724c12d45da8116
c21d9abf56e1756fa8073ccc3547ec9a85d83e2a
refs/heads/master
2022-12-13T18:06:33.029636
2020-04-05T20:19:56
2020-04-05T20:19:56
164,255,371
3
1
MIT
2022-12-08T01:42:51
2019-01-05T22:15:27
Python
UTF-8
Python
false
false
2,201
py
#!/usr/bin/env python """PyShell is a python shell application.""" # The next two lines, and the other code below that makes use of # ``__main__`` and ``original``, serve the purpose of cleaning up the # main namespace to look as much as possible like the regular Python # shell environment. import __main__ original = ...
[ "salvadoraleguas@gmail.com" ]
salvadoraleguas@gmail.com
406e36bcff2429592f817d0372069bb75415b0aa
ba7c4862dfbc9d0469f389c0cdb3fed01f99ebe3
/plotting/threeD_round3.py
3fb154b6f963dffcfabc6254d6d1fefc940621cf
[]
no_license
cmontalvo251/Python
293cbdf8832d7637d5c0b31eadd02d3ccf2f2c05
2b12ce043ee41e08537cfb62301c6a55d4661e04
refs/heads/master
2023-06-22T21:50:21.225067
2023-06-14T13:42:16
2023-06-14T13:42:16
229,313,158
8
3
null
2021-07-31T16:01:54
2019-12-20T18:03:52
Python
UTF-8
Python
false
false
2,738
py
# Import data import time import numpy as np import plotly.graph_objects as go def frame_args(duration): return {"frame": {"duration": duration}, "mode": "immediate", "fromcurrent": True, "transition": {"duration": duration, "easing": "linear"}, } # Generate curve d...
[ "cmontalvo@southalabama.edu" ]
cmontalvo@southalabama.edu
860b34a29b05c457ba52d4db8cddb722d4684c96
ba7c4862dfbc9d0469f389c0cdb3fed01f99ebe3
/controls/bode/lead_lag_compensation.py
d939d88fe4fb919bdb196d213749e47cd1052ba7
[]
no_license
cmontalvo251/Python
293cbdf8832d7637d5c0b31eadd02d3ccf2f2c05
2b12ce043ee41e08537cfb62301c6a55d4661e04
refs/heads/master
2023-06-22T21:50:21.225067
2023-06-14T13:42:16
2023-06-14T13:42:16
229,313,158
8
3
null
2021-07-31T16:01:54
2019-12-20T18:03:52
Python
UTF-8
Python
false
false
314
py
import control as ctl import numpy as np import matplotlib.pyplot as plt plt.close("all") g= 9.81 L = 2.0 wn = np.sqrt(g/L) G = ctl.tf([1],[1,0,wn**2]) print(G) C = ctl.tf([1,1],[1,100]) print(C) ctl.bode(C*G,dB=True) plt.grid() `gm,pm,wg,wp = ctl.margin(C*G) print(gm,pm,wg,wp) ctl.rlocus(C*G) plt.show()
[ "cmontalvo@southalabama.edu" ]
cmontalvo@southalabama.edu
e57fbf4a5c2ba63f9063c9c5e88e364270db2ecb
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/core/2016/8/test_device_sun_light_trigger.py
88c0bae60ec02bf1f88b3d8c7d9fb1e9ee41e430
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
3,997
py
"""The tests device sun light trigger component.""" # pylint: disable=too-many-public-methods,protected-access import os import unittest import homeassistant.loader as loader from homeassistant.const import CONF_PLATFORM, STATE_HOME, STATE_NOT_HOME from homeassistant.components import ( device_tracker, light, sun,...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
69982d63985cd4d63ce892aefb685f295fde5def
892c7bd301eeadf57b546f039faf499448112ddc
/organizacion/migrations/0003_auto_20160803_2128.py
bd7797b580ff3d4c5a0737d23d02286217f6d4cc
[ "MIT" ]
permissive
ErickMurillo/aprocacaho
beed9c4b031cf26a362e44fc6a042b38ab246c27
eecd216103e6b06e3ece174c89d911f27b50585a
refs/heads/master
2022-11-23T15:03:32.687847
2019-07-01T19:16:37
2019-07-01T19:16:37
53,867,804
0
1
MIT
2022-11-22T01:02:51
2016-03-14T15:23:39
HTML
UTF-8
Python
false
false
1,552
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-03 21:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organizacion', '0002_auto_20160609_1700'), ] operations = [ migrations.Alter...
[ "erickmurillo22@gmail.com" ]
erickmurillo22@gmail.com
d8e6ca33f5737e8e3a8c6b75975ab03d158cca5c
97221d2166bc075d83c64d346434c11f11f44007
/vmscope/accounts/urls.py
65fb3fa431f1bd1f5a11e0e591f2d309cd887dc6
[]
no_license
likit/vmscope-django
a89aba3bd0d8abfc0d154be5872a7206fe1778fb
9b2c315c049d240764892e718c1d49962d4935f4
refs/heads/master
2022-12-09T05:59:31.234466
2021-01-11T15:20:09
2021-01-11T15:20:09
143,836,786
0
0
null
2022-12-08T02:20:57
2018-08-07T07:32:37
Python
UTF-8
Python
false
false
215
py
from django.urls import path from .views import SignUpView, update_profile urlpatterns = [ path('signup/', SignUpView.as_view(), name='signup'), path('edit_profile/', update_profile, name='edit_profile') ]
[ "likit.pre@mahidol.edu" ]
likit.pre@mahidol.edu
d5014679f0e7629571ed4e5ec13dc761302636a4
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_293/ch87_2020_05_12_23_44_25_135873.py
5916eb298f5abbe724807df98f3a1a378325eeec
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
with open('churras.txt','r') as churrasco: chur = churrasco.read() churchur = chur.split() soma = 0 for e in churchur: lista_churras = e.split(",") total = int(lista_churras[1])*float(lista_churras[2]) soma += total print(soma)
[ "you@example.com" ]
you@example.com
fd99b671f08d3b5252eed81c98ca24bff841fff4
1d2542fbc29c52ccd125c48ab957790ba2640e87
/holdle/asyncio_spider.py
077ca19872a83d7946eaa3654389ca5f90ec8b03
[]
no_license
sixuerain/CrawlMan
0a6c9b26f6e4e469b7b04dee82b93eeff3a026ae
5b525417dd87d4f5db9b46b428001dd4c8a24d29
refs/heads/master
2023-03-18T11:00:16.297194
2021-02-26T08:22:54
2021-02-26T08:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,525
py
# -*- coding: utf-8 -*- # website: http://30daydo.com # @Time : 2020/9/22 10:07 # 异步爬取首页与列表 import sys sys.path.append('..') import asyncio import datetime import aiohttp import re import time from parsel import Selector from configure.settings import DBSelector from common.BaseService import BaseService SLEEP = 2 ...
[ "jinweizsu@gmail.com" ]
jinweizsu@gmail.com
d98234efa40fb798d6faa30258566f5240281566
52b5773617a1b972a905de4d692540d26ff74926
/.history/smallestWindow_20200707160434.py
7409791c55ac7cf067acac42549d2f5fd582c808
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
def min(s,t): no_of_chars = 256 count = 0 start = 0 start_index = -1 min_len = float('inf') print(start,start_index,min_len) # first check if the length of the string is less than the string of the given pattern if len(t)> len(s): return "" else: # store the occurr...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
9c6ef08a4f2ad7ea43a9ad6e3577602aba3521a9
f3f76d228f7de399831f31d7d3ca8942e0c27d58
/tutorial_coding_example.py
1ac17fa1231e79284ce32ef860c65fa73bb9304f
[]
no_license
emylincon/line_encoding
3cac93630d8416c0f513c172982b561c7fd7469a
80a79b22501bac2371b6ad63ca6fe955608291f2
refs/heads/master
2021-01-04T11:54:42.411696
2020-02-15T21:40:13
2020-02-15T21:40:13
240,536,066
1
0
null
null
null
null
UTF-8
Python
false
false
3,775
py
import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(411) ax2 = fig.add_subplot(412) ax3 = fig.add_subplot(413) ax4 = fig.add_subplot(414) names = {1: "Unipolar NRZ", 2: "Unipolar RZ", 3: "Manchester coding", 4: "Differential Manchester coding"} def line_convert(bits, no): ax1.grid() x1 ...
[ "emylincon@gmail.com" ]
emylincon@gmail.com
4730d785505d4b447c0411e7674925389bef38ed
b6c7f367306f8f3d9fad7551810c68b392a1b879
/omoide/tests/unit/test_utils.py
92cf7e3191f512d335d542af0351cc8503a66dc8
[ "MIT" ]
permissive
TaXeH/Omoide
c96ef35b1394125fc98367e8a9ef1674718e7e9e
8ccc9d47e802433bb2de21ff930e6630658cd5e3
refs/heads/main
2023-07-18T12:00:15.469707
2021-08-28T11:37:23
2021-08-28T11:37:23
400,773,814
0
0
MIT
2021-08-28T11:17:55
2021-08-28T11:17:55
null
UTF-8
Python
false
false
2,579
py
# -*- coding: utf-8 -*- """Tests. """ from omoide import utils def test_byte_count_to_text_ru(): """Must convert to readable size in russian.""" func = utils.byte_count_to_text assert func(-2_000, language='RU') == '-2.0 КиБ' assert func(-2_048, language='RU') == '-2.0 КиБ' assert func(0, languag...
[ "nicord@yandex.ru" ]
nicord@yandex.ru
56805d4ddf91239e2f1e5d9219a569abc53ef185
48deb00f51be78bd0e2eac898428a783b1fb95da
/ejemplos/funcion_palindromo.py
0dcef6a2c971bfd2d1ed5d36358323128864c922
[]
no_license
jkaalexkei/TrabajosEnPython
435bc77982bc3b44f080e28732ff0c439a2c41cd
764965ddc6736e94e61d7ab8419cc5e33a767a0b
refs/heads/master
2023-06-04T21:35:56.522264
2021-06-22T02:04:51
2021-06-22T02:04:51
352,990,890
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
def palindromo(texto): lista =[] for i in texto: lista.append(i) print(lista) lista_inversa = lista[::-1]#se invierte la lista print(lista_inversa) if lista == lista_inversa: print("verdadero, si es palindromo") else: print("Falso, no es palindromo") palindr...
[ "jkaalexkei@gmail.com" ]
jkaalexkei@gmail.com
3ac66d934734757dcd65a9fc45415ee138398ade
ec9431bc95f5b832876e16351967aef19b1395d7
/ci-hpc/visualisation/www/plot/highcharts.py
2f107515cadada74fee026073ba8c3fbe4d2c584
[ "MIT" ]
permissive
elichad/ci-hpc
743b828c1e410d6dc1d457121e9508ee2de6f420
62c45a2e12a515a7034edafc2f3139f820f8bfeb
refs/heads/master
2020-03-26T06:09:45.508223
2018-08-10T09:30:25
2018-08-10T09:30:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,640
py
#!/usr/bin/python3 # author: Jan Hybs import collections import copy import pandas as pd import numpy as np import utils.dateutils as dateutils from artifacts.db.mongo import Fields as db from utils.datautils import ensure_iterable from utils.logging import logger from utils.timer import Timer from visualisation.www...
[ "jan.hybs@tul.cz" ]
jan.hybs@tul.cz
ae2ec3f90bade82ccddeed661b5e315c0a5f5a14
1fdad1e45625edf2fdaf26ca284054461839a2d4
/rmzfzc/rmzfzc/spiders/jilin_zwgk.py
0bdaaba3f5ff6751cf7f78211ea6d56d11d32b53
[]
no_license
Mdxue/crawler-scrapy
b99a61f2fa0eff7a1194495314acdb7907018369
ed4dcf5ffc15b60f9efa5d7e5093872343d2bbd0
refs/heads/master
2020-12-09T08:02:53.134473
2020-01-11T13:44:28
2020-01-11T13:44:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,292
py
# -*- coding: utf-8 -*- import scrapy import logging from scrapy_splash import SplashRequest from rmzfzc.items import rmzfzcItem import time from utils.tools.attachment import get_attachments,get_times script = """ function wait_for_element(splash, css, maxwait) -- Wait until a selector matches an element -- in th...
[ "sn_baby@qq.com" ]
sn_baby@qq.com
a42429003c82135a616d13a78e0327d1159b7f2f
84350ae13162c3bb1978ab4340ebb95abca55d34
/SampleSize/get_ns_sample_sizes.py
e4e48efead29bdd9cf1973e52e8cfb3520a37592
[ "MIT" ]
permissive
poldracklab/ScanningTheHorizon
5bd6b31bd7028f4724719c78cca3e89410d4f3e8
09b9f64eda5fc5c82e64679aa33d4c3c2685928b
refs/heads/master
2021-06-14T08:24:59.989406
2021-02-10T14:25:27
2021-02-10T14:25:27
63,067,849
8
8
null
2016-12-10T23:50:12
2016-07-11T12:55:22
Jupyter Notebook
UTF-8
Python
false
false
3,259
py
# get_ns_sample_sizes.py - extract estimated sample size data from neurosynth # Tal Yarkoni, 2016 import re import traceback def text2int(textnum, numwords={}): if not numwords: units = [ "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven...
[ "poldrack@gmail.com" ]
poldrack@gmail.com
7a4b19779b85a11de4e2f07e299d2bdc2245323b
b6284d558812f07251adfbcda389611028043a4c
/brands/migrations/0006_auto_20180604_0913.py
ffda114cfc851f64bdc47cc39cd8afb239c1100c
[]
no_license
markmurimi/shoe-blog
980c63c184007cadd5f59fa546f7328a38bed54e
669f260dfcdb196e47a37d9e12bf7a377f709362
refs/heads/master
2020-03-19T00:07:00.550739
2018-06-04T13:47:11
2018-06-04T13:47:11
135,454,230
4
0
null
null
null
null
UTF-8
Python
false
false
539
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-04 06:13 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('brands', '0005_brand_profile'), ] operations = [ ...
[ "murimimg180@gmail.com" ]
murimimg180@gmail.com
6759042deacc240255f80367f88e6bf8224b325a
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_server_with_cloud_init_response.py
cfb9cc2e4bdefdc4bf87295e0a15170c6d533e4b
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,105
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ReinstallServerWithCloudInitResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dic...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
9f2c43f0d001e0f731da8d1a66178d1408dda476
384b9368ee0731ed62e48f38c40fc027f08a4b7f
/PycharmProjects/DeepLearning/MachineLearning/Mnist_layers.py
29702c0870d337404ee60fb79d0cb8c60633bc17
[]
no_license
secrecy27/MachineLearning
2ff2d438a91d5b906c61b388deeebeb774f933d3
f88e6477ec6e4087a347beb168e36b7fe0ea8359
refs/heads/master
2021-05-10T07:44:45.703761
2019-03-04T02:11:27
2019-03-04T02:11:27
118,853,812
1
0
null
null
null
null
UTF-8
Python
false
false
3,876
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data tf.set_random_seed(777) mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) learning_rate = 0.001 training_epochs = 15 batch_size = 100 class Model: def __init__(self, sess, name): self.sess = sess se...
[ "secrecy418@naver.com" ]
secrecy418@naver.com
65b9d19d5490262f91494a7fbd37661c397b0a1e
6f3647ede6498a09dd2556130aebe30c9f80db43
/백트래킹/2580.py
6e6d1a09d26aca6b9b285868286ec5a891ad63b6
[]
no_license
dohee479/BAEKJOON
727a4eb1ce15879017e8edc1662b623babfa3801
77ed46da7e0de17d7f3ec9faf5b1bb1efa7b9d6b
refs/heads/master
2023-03-20T01:30:22.997774
2021-03-02T14:54:38
2021-03-02T14:54:38
275,624,349
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
# 스도쿠 import sys sys.stdin = open('input.txt', 'r') # 가로 체크 def horizontal(x, val): if val in sudoku[x]: return False return True # 세로 체크 def vertical(y, val): for i in range(9): if val == sudoku[i][y]: return False return True # 3x3 체크 def square(x, y, val): nx = x...
[ "dohee479@naver.com" ]
dohee479@naver.com
625838e78bffab40389132c5f4db754939aa0280
67a95330832e8bb83d65b22c6a58badaf416c043
/01_examples/my_close.py
262b66cd95fb7ba89ec9cb991ac7dea5fd98c4f0
[ "MIT" ]
permissive
jabbalaci/GUI-Dev-with-Python
af57fdccd59cd48cd2172988fdaa4074d4ac8c09
a4ac137965156621f3cf418018ef28f2c20541d9
refs/heads/master
2020-09-07T04:41:18.920856
2019-11-09T15:56:20
2019-11-09T15:56:20
220,657,859
1
0
null
null
null
null
UTF-8
Python
false
false
856
py
#!/usr/bin/env python3 import sys from PyQt5.QtGui import QKeySequence from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, QShortcut class Window(QMainWindow): def __init__(self): super().__init__() self.shortcutQuit = QShortcut(QKeySequence("Ctrl+Q"), self) self.shortcutQui...
[ "jabba.laci@gmail.com" ]
jabba.laci@gmail.com
88f4d105da6bb88b15b7a37352e9b8f00e417880
e1de075ee032cf0cebc3e467aa222e35e6e370e9
/groups/migrations/0004_group_image.py
a09be9649caa8921f8835f234a2c8fe9a5de4a99
[]
no_license
benaka-tech/scientract
b6c5d2f6ddc483d4023531b9904590f1fa24f35f
9d89e80778ac1a44e5def4832fc2311a99d77f89
refs/heads/master
2022-11-21T12:32:12.217925
2020-10-18T05:16:25
2020-10-18T05:16:25
230,889,764
0
1
null
null
null
null
UTF-8
Python
false
false
412
py
# Generated by Django 2.1 on 2019-07-17 04:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('groups', '0003_auto_20190706_1030'), ] operations = [ migrations.AddField( model_name='group', name='image', ...
[ "cjayanth35@gmail.com" ]
cjayanth35@gmail.com
5532e746db3d8d199fa70f0b181057bac3d9c0d6
d9d8b097197baeaadafdacccd86b520773c32d85
/erifying an Alien Dictionary.py
26271222349b60aacedd2074ccdf9257cdacb9cc
[]
no_license
RiddhiRex/Leetcode
5e2f382182c735c6fc721120c6f32726d4cb7414
eeaa632e4d2b103c79925e823a05072a7264460e
refs/heads/master
2021-12-23T23:57:31.574066
2021-08-14T22:00:23
2021-08-14T22:00:23
136,531,450
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
class Solution(object): def isAlienSorted(self, words, order): """ :type words: List[str] :type order: str :rtype: bool """ l = len(words) o = {w: i for i,w in enumerate(order)} for i in range(len(words)-1): w1= words[i] w2= wor...
[ "noreply@github.com" ]
RiddhiRex.noreply@github.com
2dcadf604ebbbfe0a8359400a37f53b2daecfeea
c88d702ef4b64ae90788f5bff007f6c8bc901cd3
/the-versatile-sieve-of-eratosthenes/eratosthenessievestest.py
d133112a611a16a6552f5bbe0ba76592edd43c03
[]
no_license
ehem/Nayuki-web-published-code
566d3cc06d3d94405fa797098914884c8f8164fd
22003ffb91fd6f63e206dd15b870065f664976f8
refs/heads/master
2020-07-30T00:47:27.107344
2016-11-18T21:44:29
2016-11-18T21:44:29
73,651,938
1
0
null
2016-11-14T00:19:06
2016-11-14T00:19:06
null
UTF-8
Python
false
false
1,690
py
# # Test of variants of the sieve of Eratosthenes (Python) # by Project Nayuki, 2016. Public domain. # https://www.nayuki.io/page/the-versatile-sieve-of-eratosthenes # import eratosthenessieves, sys def main(): test_values() test_prefix_consistency() def test_values(): assert eratosthenessieves.sieve_primenes...
[ "me@nayuki.io" ]
me@nayuki.io
ce0f1fd01e0c92f3db50f007aee37f83ec422233
1afa1b1929d1cd463cd9970174dd58ce2ca6eb1e
/configs/dnlnet/dnl_r101-d8_512x1024_40k_cityscapes.py
35486efd42f3d22eaed88e076420094ab7358379
[ "Apache-2.0" ]
permissive
CAU-HE/CMCDNet
2328594bf4b883384c691099c72e119b65909121
31e660f81f3b625916a4c4d60cd606dcc8717f81
refs/heads/main
2023-08-08T17:21:57.199728
2023-07-28T07:34:40
2023-07-28T07:34:40
589,927,845
12
1
null
null
null
null
UTF-8
Python
false
false
133
py
_base_ = './dnl_r50-d8_512x1024_40k_cityscapes.py' model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
[ "flyhxn@qq.com" ]
flyhxn@qq.com
d83ecf1d144629c8d144fbf6023add38a6bfd419
106983cf0b8df622f514ecff2bb2fa4c794c9dac
/Misc/Raspberry Pi Things/SimpleCV/sportsballs.py
49c60bf7ccc25b67065b125f48b3a7fd61125480
[]
no_license
michael5486/Senior-Design
2d9ae521c637abf7c0825f85b32752ad61c62744
6b6c78bed5f20582a9753a9c10020c709d6b6e53
refs/heads/master
2021-01-19T09:58:35.378164
2017-05-26T17:17:13
2017-05-26T17:17:13
67,556,475
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
from SimpleCV import Color, Image import time img = Image("sportsballs.jpg") circles = img.findCircle(canny=200, thresh=250, distance=15) circles.sortArea() circles.draw(width=4) circles[0].draw(color=Color.RED, width = 4) img_with_circles = img.applyLayers() edges_in_image = img.edges(t2=200) final = img.sideBySide(e...
[ "michael5486@gmail.com" ]
michael5486@gmail.com
0356ceefabfd8f1609a9c3d6d709691476e619e4
7506c49859870af9e62c3e919857ffcdf2e9a19e
/book2/tf_test/keras_inception2.py
b85281630d569a8b110336815cd45ff6cc371f84
[]
no_license
Git2191866109/BookStudy
d363717285a5e9767e582f6efd1258680fa26f80
f172244218871372ca94286c3db64cf334627ef3
refs/heads/master
2022-11-08T00:15:00.963332
2020-06-28T10:28:33
2020-06-28T10:28:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,550
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- # coding=utf-8 """ @author: Li Tian @contact: 694317828@qq.com @software: pycharm @file: keras_inception2.py @time: 2019/5/6 15:43 @desc: 用原生态的Keras实现Inception """ from keras.layers import Conv2D, MaxPooling2D, Input, Dense, Flatten import keras from keras...
[ "694317828@qq.com" ]
694317828@qq.com
5a7f4fcc5349f7c3cf44fdf7599a2ecb726ac6e8
bec623f2fab5bafc95eb5bd95e7527e06f6eeafe
/django-gc-shared/profiles/migrations/0016_userprofile_risk_appetite.py
5289f7c30df4582aa664b83ef65249cc6c01a66d
[]
no_license
riyanhax/a-demo
d714735a8b59eceeb9cd59f788a008bfb4861790
302324dccc135f55d92fb705c58314c55fed22aa
refs/heads/master
2022-01-21T07:24:56.468973
2017-10-12T13:48:55
2017-10-12T13:48:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0015_auto_20170118_1908'), ] operations = [ migrations.AddField( model_name='userprofile', ...
[ "ibalyko@ubuntu-server-16-04" ]
ibalyko@ubuntu-server-16-04
7efa3c706308d3f3fb706e4ca6d7d04a22d29144
399dae0b5ad9ca27cde175d25b5435958674eb50
/Network/Renew IP Configuration/renew-ip-configuration.py
40ebc13c2dc4e93b13e23b39afab411ca5f3fb03
[]
no_license
kannanch/pythonscripts
61e3ea9e8ebf6a6b0ec2a4a829664e4507b803ba
843a522236f9c2cc2aadc68d504c71bb72600bd9
refs/heads/master
2020-06-12T11:18:00.404673
2019-06-28T11:24:37
2019-06-28T11:24:37
194,282,297
1
0
null
2019-06-28T13:55:56
2019-06-28T13:55:56
null
UTF-8
Python
false
false
644
py
import os import ctypes class disable_file_system_redirection: _disable = ctypes.windll.kernel32.Wow64DisableWow64FsRedirection _revert = ctypes.windll.kernel32.Wow64RevertWow64FsRedirection def __enter__(self): self.old_value = ctypes.c_long() self.success = self._disable(ctypes.by...
[ "noreply@github.com" ]
kannanch.noreply@github.com
579cc5aad5e975d5285f65e46ab296b71ec91288
87d33dc5f071d00723da819a62f01ecda6db0244
/backend/api/models/vehicle_fuel_type.py
2f0cbf5e8cddfbcce7a7c0b79bd69bf917dd03c2
[ "Apache-2.0" ]
permissive
AntonCoetzer/zeva
bc961d1cf1e520ddc4a88e4dc826e317772737dc
500ed05694348f9084784ca8ec9aafa9b7f4371f
refs/heads/master
2020-12-23T06:33:04.149965
2020-01-28T20:00:09
2020-01-28T20:00:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
from django.db import models from api.models.mixins.effective_dates import EffectiveDates from auditable.models import Auditable from .mixins.named import Description class FuelType(Auditable, Description, EffectiveDates): vehicle_fuel_code = models.CharField( blank=False, db_comment="Fuel type (...
[ "31664961+kuanfandevops@users.noreply.github.com" ]
31664961+kuanfandevops@users.noreply.github.com
24911b11fad215799ee373c5a29640eef7216591
26fdd3419c1855f180d7e9bea3b59459ba9e6446
/venv/lib/python3.6/site-packages/oauthlib/oauth2/rfc6749/endpoints/base.py
c0fc72691170a3514b88711fe5b0a2a7fbc25395
[]
permissive
vansh1999/fashion-ecomm
eed52884ac007928260f50a885bec963d85a88d2
5879d0b1c64411485e861dfc9bcca6b4a82afc57
refs/heads/master
2021-06-24T21:58:26.931849
2021-04-10T08:37:50
2021-04-10T08:37:50
219,543,353
1
0
Apache-2.0
2021-04-10T08:37:51
2019-11-04T16:14:06
Python
UTF-8
Python
false
false
3,007
py
# -*- coding: utf-8 -*- """ oauthlib.oauth2.rfc6749 ~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of various logic needed for consuming and providing OAuth 2.0 RFC6749. """ from __future__ import absolute_import, unicode_literals import functools import logging from ..errors import (FatalClientError, OAut...
[ "vansh.bhardwaj1999@gmail.com" ]
vansh.bhardwaj1999@gmail.com
5f02870079502ff2794bbb095db80ebed49dd7d1
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/93f36b6c867e49c3bdbf84c064b0c842.py
e8e6a56b31f03144abc8f05a090f50e82b90b7b7
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
297
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals def hey(s): if s.isupper(): return 'Whoa, chill out!' elif s != '' and s[-1] == '?' : return 'Sure.' elif s == '' or s.isspace(): return 'Fine. Be that way!' else: return "Whatever."
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
74f014742fb35dcae65ffef8e6013a171fbea7a2
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2321/60623/305900.py
95c8cdd08e3c24d9183b9dc840807c8375262ddf
[]
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
176
py
a=input().split(',') b=input() if a==['1','3','5','7'] and b='100': print(20) elif a[0]=='1': print(29523) elif a[0]=='20': print(8) else: print(a) print(b)
[ "1069583789@qq.com" ]
1069583789@qq.com
8779357df2161b13bec2458e00e29592b9255a79
8c3755e907a8f7fbae4e5e3334aa9332f8f705bb
/oop/duck_private.py
d8ba463099236eceb21c50f4216f1aa2592ed915
[]
no_license
xaneon/PythonProgrammingBasics
20c9db82f621a41735856a0b008bf2c328d8e4b5
accf4d16034d33e616b5ebe46f69c1130b09f85e
refs/heads/master
2020-06-13T13:47:02.995326
2019-07-01T13:45:29
2019-07-01T13:45:29
194,235,103
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
class Ente: def __init__(self, name): self.name = name self.pub = "Ich bin öffentlich" self._prot = "Ich bin protected" self.__priv = "Ich bin private" meineEnte = Ente("Ente Helga") print(meineEnte.name) print(meineEnte.pub) print(meineEnte._prot) # print(meineEnte.__priv) # funk...
[ "bonne.habekost@gmail.com" ]
bonne.habekost@gmail.com
50a41939dcaece2ee62cb4ecfa69a3b42812e2d6
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-alloydb/samples/generated_samples/alloydb_v1_generated_alloy_db_admin_failover_instance_sync.py
5378712384df36085d5bf053c22c3a0de018eeca
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
1,928
py
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
googleapis.noreply@github.com
973d62af79f23603d12e59d2936310822445ccff
497535fd65de15c1c39c53ceacc778aa557b42c8
/penn_treebank_reader.py
6d6915ad5c9b774211b5bf804fa53e5d5f6d18cd
[]
no_license
mrdrozdov/chart-parser
d44936f1872d2e8e18469dba5f6e8d6172ace53a
5dfa79ed1aea2a11112a4320618e78c752520f46
refs/heads/master
2020-06-20T14:21:49.709284
2019-07-16T08:06:45
2019-07-16T08:06:45
197,149,402
0
0
null
null
null
null
UTF-8
Python
false
false
4,788
py
import json import os import nltk from nltk.corpus import ptb # For tests. import unittest #################### # Reader (raw PTB) # #################### class RawPTBReader(object): def __init__(self): section2fileid = {} for fileid in ptb.fileids(): if not fileid.startswith('WSJ')...
[ "andrew@mrdrozdov.com" ]
andrew@mrdrozdov.com
e2fb370681ad6a240332bc2274c752d6b9e04960
c9fd8f943918e3fa3f19edeea96cff2303368ab6
/apps/quotes/urls.py
9bb2416f6570f34f8eea50e8d98c4ef48e3e35f5
[]
no_license
fgomesc/system_stocks
e363181837d4efe3e563d49e1a80869b91f0048c
190e855c5e95f4459dfcf1204e8939ccac6f7778
refs/heads/master
2022-06-25T13:33:44.428654
2020-05-08T19:34:19
2020-05-08T19:34:19
262,412,052
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
from django.urls import path, include from .views import home from . import views urlpatterns = [ path('', views.home, name='home'), path('about/', views.about, name='about'), path('add_stocks.html', views.add_stocks, name='add_stocks'), path('delete/<stock_id>', views.delete, name='delete'), path(...
[ "fgomesc0586@gmail.com" ]
fgomesc0586@gmail.com
48902b3ddf518fcde7dd331a6fd0e765785f9e38
af82475dc7eb45c478414372c222e7b6016359d4
/python书籍/Python For Finance Code/Code of Python For Finance/4375OS_04_Code/4375OS_04_03_cumulative_standard_normal_CND.py
2a6c8a23cd889e5cbf7786369ec7bdeffe6ba0ba
[]
no_license
enfangzhong/PythonBaseCode
8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433
9ab4a578b2692fdbb6aeeacb310251d51f72e953
refs/heads/master
2020-05-17T16:26:02.598344
2019-04-27T20:49:40
2019-04-27T20:49:40
183,817,172
4
1
null
null
null
null
UTF-8
Python
false
false
883
py
""" Name : 4375OS_04_03_cumulative_standard_normal_CND.py Book : Python for Finance Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 12/25/2013 email : yany@canisius.edu paulyxy@hotmail.com """ from math import * def CND(X): """ Objective: cumulative starda...
[ "944727327@qq.com" ]
944727327@qq.com
7a1b05fc18498fd91411554f68ba46fa469f7957
26329cc5464a2aa69a2bc1636c71772efafdd467
/lab 6/GameObjects/Player.py
9396ad525308790419f076230f419f2fe9e46221
[]
no_license
ThomasMGilman/ETGG-2801_2
e71030d7368a929a24e20efddae346bd6b3a6173
209b37e79bd32fc41a544c29bf050e77f91bc71f
refs/heads/master
2020-07-11T13:44:58.623191
2019-12-04T04:22:32
2019-12-04T04:22:32
204,556,761
0
0
null
null
null
null
UTF-8
Python
false
false
3,302
py
from sdl2.keycode import * from utilityLibs import glCommands, ImageTexture2DArray from toolLibs import math3d from GameObjects import Bullet, Shapes #from GameObjects.Entity import * import array, globs class Player:#(Entity): vbuff = None tbuff = None ibuff = None vao = None tex = None def __...
[ "Thomas.Gilman@ymail.com" ]
Thomas.Gilman@ymail.com
d55024cc1d14013dab3c9fdb65756c1e8cb97845
1864af9eda58307024acbf7fe5d5f2f39f435e44
/quickstart_guides/recursion/python/reverse_linked_list.py
244a165ff3027aacc2733b2dde26717f6a2260f6
[]
no_license
vprusso/6-Weeks-to-Interview-Ready
c393bbfe071d97cba12f0f0668e53a25fb25986f
8105e1b20bf450a03a9bb910f344fc140e5ba703
refs/heads/master
2021-08-11T04:48:34.252178
2020-08-09T22:54:55
2020-08-09T22:54:55
210,997,768
6
2
null
2019-09-26T04:12:44
2019-09-26T04:12:44
null
UTF-8
Python
false
false
2,103
py
""" Title: Reverse linked list Problem: Given a linked list, write a function that prints the nodes of the list in reverse order. Execution: python reverse_linked_list.py """ import unittest class Node: """Node class for linked list.""" def __init__(self, data) -> None: self.data = data ...
[ "vincentrusso1@gmail.com" ]
vincentrusso1@gmail.com
5840d6184e90ee1b3c4b1a42b7b7153e6c2fd7d5
b2203c60193d7707407fa269e47200f6e1804f0c
/deid/dicom/fields.py
a47e8d6b6c6fa43fb1fe67cd83d4287c18c96806
[ "MIT" ]
permissive
ticlazau/deid
4790c3f09a731a656dbe2e55570c1776bb1cbd86
827844dac2b06ce2221068697a9662779447ee81
refs/heads/master
2020-04-17T20:53:37.988381
2019-01-18T21:14:02
2019-01-18T21:14:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,522
py
''' Copyright (c) 2017-2019 Vanessa Sochat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
[ "vsochat@stanford.edu" ]
vsochat@stanford.edu
4b1bb2a44f75ecdfb99ce83063c562e36192098b
00af09f4ac6f98203910d86c3791c152184ace9a
/Lib/email/iterators.py
881b2439a615ee50f496dc7c4be7e91b56a1ac07
[]
no_license
orf53975/CarnosOS
621d641df02d742a2452fde2f28a28c74b32695a
d06849064e4e9f30ef901ad8cf90960e1bec0805
refs/heads/master
2023-03-24T08:06:48.274566
2017-01-05T16:41:01
2017-01-05T16:41:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,545
py
<<<<<<< HEAD <<<<<<< HEAD # Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Various types of useful iterators and generators.""" __all__ = [ 'body_line_iterator', 'typed_subpart_iterator', 'walk', # Do not include _structure() since it's par...
[ "Weldon@athletech.org" ]
Weldon@athletech.org
4a355ab43b857bd830f0d81558594437970485f1
6c2ecefb12be6b04f597e3fb887d9389050aa7e1
/DjangoCourse/第七周/freshshop/fs_goods/models.py
928b9f8ce8a000fcae1b280535926d0418865cc1
[]
no_license
GmyLsh/learngit
99d3c75843d2b0b873f26e098025832985c635b3
3e7993c7119b79216fea24e5e35035336e4f5f5b
refs/heads/master
2020-04-12T09:11:55.068312
2018-12-19T07:19:42
2018-12-19T07:19:42
162,395,001
0
0
null
null
null
null
UTF-8
Python
false
false
1,927
py
from django.db import models # 商品类型分类模型 class TypeInfo(models.Model): title = models.CharField(max_length=20, verbose_name='分类标题') is_delete = models.BooleanField(default=False, verbose_name='是否删除') def __str__(self): return self.title class Meta: verbose_name = '商品类型' verbos...
[ "469192981@qq.com" ]
469192981@qq.com
e015ea8cfa5f548fa912b28984f7499b639d1bed
255021fadf9f739db042809ca95f5b9f75609ec5
/Adv/5650 핀볼게임.py
771fdbfb2a006e5ee03930ac9293d0be077fa50d
[]
no_license
unsung107/Algorithm_study
13bfff518fc1bd0e7a020bb006c88375c9ccacb2
fb3b8563bae7640c52dbe9324d329ca9ee981493
refs/heads/master
2022-12-13T02:10:31.173333
2020-09-13T11:32:10
2020-09-13T11:32:10
295,137,458
0
0
null
null
null
null
UTF-8
Python
false
false
3,745
py
directions = {1:(0, -1), 2:(0, 1), 3:(-1, 0), 4:(1, 0)} aside = {1:2, 2:1, 3:4, 4:3} def meet1(y, x, d): if d == 1: d = 2 elif d == 2: d = 4 elif d == 3: d = 1 else: d = 3 return y + directions[d][1], x + directions[d][0], d def meet2(y, x, d): if d == 1: ...
[ "unsung102@naver.com" ]
unsung102@naver.com
abbde3fd251b2dccc42da4c3a43154a3c9c35846
1ffc17893d9e15fd939628bbc41c3d2633713ebd
/skl2onnx/operator_converters/pipelines.py
c7b3ba34da23d9d118749da61a273cb421c92735
[ "Apache-2.0" ]
permissive
xadupre/sklearn-onnx
646e8a158cdded725064964494f0f8a760630aa8
b05e4864cedbf4f2a9e6c003781d1db8b53264ac
refs/heads/master
2023-09-01T15:58:38.112315
2022-12-21T01:59:45
2022-12-21T01:59:45
382,323,831
0
2
Apache-2.0
2023-01-04T13:41:33
2021-07-02T11:22:00
Python
UTF-8
Python
false
false
1,971
py
# SPDX-License-Identifier: Apache-2.0 from sklearn.base import is_classifier from ..common._registration import register_converter from ..common._topology import Scope, Operator from ..common._container import ModelComponentContainer from .._parse import _parse_sklearn def convert_pipeline(scope: Scope, operator: Op...
[ "noreply@github.com" ]
xadupre.noreply@github.com
c0190465b828f87abbc3ab7021fb9c721401241b
1705e97ef5613685e142e3f78a2057399b09858c
/Code/asiportal/rquests/services/emailer.py
78a33d7d3764f695eb5e9b690d2725d5eb245dbb
[]
no_license
FIU-SCIS-Senior-Projects/Academic-Success-Initiative---ASI-PantherCentric-1.0
0b956175efb031022ed32412195531c7f0c162c5
8ee64b58e2634384d5905defd3701a453b49b966
refs/heads/master
2022-11-24T00:07:52.458186
2017-08-02T01:36:32
2017-08-02T01:36:32
91,715,982
0
0
null
2022-11-22T01:31:04
2017-05-18T16:37:10
SQLPL
UTF-8
Python
false
false
2,813
py
from django.core.mail import EmailMessage from django.template.loader import get_template def no_room_available_email(request): title = '[ASI] Tutoring Request Unable To Be Scheduled' email_template = get_template('no_room_available.txt') email_context = {'firstName' : request.submitted_by.first_name, ...
[ "jakedlopez@gmail.com" ]
jakedlopez@gmail.com
49f4d6d252100b0b949ba1b7bf23ef3ea84a80f8
faf793376991092615975a559c6bed4e093acc44
/SECTION 10 lists in python/52 multidimentional list.py
56299802d4b05bc3d9ab01da570d5b5a043afac8
[]
no_license
jdiaz-dev/practicing-python
2385f2541759cfc9ed221b62030c28e8cf6ddde4
139b7dd4332e9ab3dd73abee0308cff41f4657fe
refs/heads/master
2023-04-05T06:13:53.590830
2023-03-19T16:06:00
2023-03-19T16:06:00
320,443,146
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
contacts = [ [ 'junior', 234234 ], [ 'yessy', 1234 ], [ 'frank', 543 ], [ 'esteban', 54645 ], ] for contac in contacts : for element in contac : if type(element) == int : print(element)
[ "lordgelsin26@gmail.com" ]
lordgelsin26@gmail.com
710509fda1ddbdba3b9d7389f504685c47ba5004
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03060/s036965559.py
d6d7712aa32946ddbf4bfd84f61f44f5d904de74
[]
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
203
py
N=int(input()) V=list(map(int, input().split())) C=list(map(int, input().split())) ans=0 for i in range(2**N): X=0 for j in range(N): if (i>>j)&1: X+=(V[j]-C[j]) ans=max(ans,X) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b90ad803daea0eea82e9295f45004cdbba4b9f07
f0b741f24ccf8bfe9bd1950425d83b6291d21b10
/kubernetes_platform/python/test/unit/test_volume.py
87835ff6a63c9b890b3b70da6dde13dbc3de3e3b
[ "Apache-2.0" ]
permissive
kubeflow/pipelines
e678342b8a325559dec0a6e1e484c525fdcc8ce8
3fb199658f68e7debf4906d9ce32a9a307e39243
refs/heads/master
2023-09-04T11:54:56.449867
2023-09-01T19:07:33
2023-09-01T19:12:27
133,100,880
3,434
1,675
Apache-2.0
2023-09-14T20:19:06
2018-05-12T00:31:47
Python
UTF-8
Python
false
false
6,215
py
# Copyright 2023 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
[ "noreply@github.com" ]
kubeflow.noreply@github.com
b5328046f6cdb5aa66427ffe9e2707dabca2be0e
d9c95cd0efad0788bf17672f6a4ec3b29cfd2e86
/disturbance/migrations/0216_proposal_fee_invoice_references.py
6f6dc55ec362b2eba775bf211d8f1b787e1e6f82
[ "Apache-2.0" ]
permissive
Djandwich/disturbance
cb1d25701b23414cd91e3ac5b0207618cd03a7e5
b1ba1404b9ca7c941891ea42c00b9ff9bcc41237
refs/heads/master
2023-05-05T19:52:36.124923
2021-06-03T06:37:53
2021-06-03T06:37:53
259,816,629
1
1
NOASSERTION
2021-06-03T09:46:46
2020-04-29T03:39:33
Python
UTF-8
Python
false
false
622
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-02-05 06:04 from __future__ import unicode_literals import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('disturbance', '0215_merge_20210202_1343'), ] ...
[ "katsufumi.shibata@dbca.wa.gov.au" ]
katsufumi.shibata@dbca.wa.gov.au
5ed73b5cde48e571ff3a4f5ef8a0ff1133755556
675e4c77ea4f1053f1acf5b76b9711b53157d841
/questions/serializers.py
5cdbc43af6b1978b33f1b6684fb86a672d0fd672
[]
no_license
moh-hosseini98/django-rest-quora-like
6d67717be5afd708eacdd74bba706be90a73a1e9
7bf020515145a54dcc822d50584e12c0398e7ee5
refs/heads/master
2023-04-09T04:56:03.783036
2021-04-29T04:18:12
2021-04-29T04:18:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,629
py
from rest_framework import serializers from .models import Question,Answer,qlike,alike,Reply class AnswerSerializer(serializers.ModelSerializer): author = serializers.StringRelatedField(read_only=True) answer_likes = serializers.SerializerMethodField() number_of_replies = serializers.SerializerMethodField...
[ "mamadhss@yahoo.com" ]
mamadhss@yahoo.com
95bacd72df21ee4e7d6eba5d398151122f814f1e
fd18ce27b66746f932a65488aad04494202e2e0d
/d03_socket_http/pro_2.py
d3a7e2e1ff30f43c75d905ad8fb338e68a45f33f
[]
no_license
daofeng123/ClassCodes
1acbd843836e550c9cebf67ef21dfca9f6b9fc87
fbcd1f24d79b8bb56ad0669b07ad118064609612
refs/heads/master
2020-06-24T12:34:28.148197
2019-08-15T03:56:40
2019-08-15T03:56:40
198,963,469
3
0
null
2019-07-26T06:53:45
2019-07-26T06:53:44
null
UTF-8
Python
false
false
193
py
# coding=utf-8 import os pipe_file = 'io.pipe' os.mkfifo(pipe_file) fd = os.open(pipe_file, os.O_RDONLY) while True: s = os.read(fd, 10) if not s: break print(s.decode())
[ "38395870@qq.com" ]
38395870@qq.com
0203efcddf9cbe42574c145dec465a59c98bc2b0
54df8336b50e8f2d7dbe353f0bc51a2b3489095f
/Django/Django_DB/Django_mysql/mysqlpro/mysqlpro/asgi.py
e8daa3c14429a4891a272b7a5bf0977492bd3708
[]
no_license
SurendraKumarAratikatla/MyLenovolapCodes1
42d5bb7a14bfdf8d773ee60719380ee28ff4947a
12c56200fcfd3e5229bfeec209fd03b5fc35b823
refs/heads/master
2023-06-17T15:44:18.312398
2021-07-19T10:28:11
2021-07-19T10:28:11
387,358,266
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" ASGI config for mysqlpro project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "suendra.aratikatla1608@gmail.com" ]
suendra.aratikatla1608@gmail.com
7aa31c841c9d3967ee889869937a5741cd46cf68
ed2389b9c0f8b45f4d1ac2e52815846ed37bc127
/train_deep_logo_cnn.py
c95a538c88e80aa52713c4c770b95ccb8dbe4aea
[ "MIT" ]
permissive
tracxpoint/AIC_DeepLogo
161281c443a6d1bc96556fa41d1818ff4609c5fa
9b936208fcb785cc0affb6e2e9087d1bb83744d4
refs/heads/master
2021-09-06T22:03:45.942170
2018-01-04T08:27:55
2018-01-04T08:27:55
116,278,954
1
0
null
null
null
null
UTF-8
Python
false
false
7,980
py
# The MIT License (MIT) # Copyright (c) 2016 satojkovic # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, m...
[ "satojkovic@gmail.com" ]
satojkovic@gmail.com
3eb78ccf566602282c5c3dfa11e4a7b6bad48b99
b7fab13642988c0e6535fb75ef6cb3548671d338
/tools/ydk-py-master/cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_Ethernet_SPAN_datatypes.py
5cf1f786c1167dbd94086d2115a83fb0bc7c7ecc
[ "Apache-2.0" ]
permissive
juancsosap/yangtraining
6ad1b8cf89ecdebeef094e4238d1ee95f8eb0824
09d8bcc3827575a45cb8d5d27186042bf13ea451
refs/heads/master
2022-08-05T01:59:22.007845
2019-08-01T15:53:08
2019-08-01T15:53:08
200,079,665
0
1
null
2021-12-13T20:06:17
2019-08-01T15:54:15
Python
UTF-8
Python
false
false
1,120
py
""" Cisco_IOS_XR_Ethernet_SPAN_datatypes This module contains a collection of generally useful derived YANG data types. Copyright (c) 2013\-2016 by Cisco Systems, Inc. All rights reserved. """ from ydk.entity_utils import get_relative_entity_path as _get_relative_entity_path from ydk.types import Entity, EntityPath...
[ "juan.c.sosa.p@gmail.com" ]
juan.c.sosa.p@gmail.com
8692b572824530ddb8d707d7d9cd3e25d74df493
3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be
/google-cloud-sdk/lib/googlecloudsdk/appengine/lib/external/admin/tools/conversion/yaml_schema.py
a5982a4efc0f604246f9948bda038bf50a2a5432
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
twistedpair/google-cloud-sdk
37f04872cf1ab9c9ce5ec692d2201a93679827e3
1f9b424c40a87b46656fc9f5e2e9c81895c7e614
refs/heads/master
2023-08-18T18:42:59.622485
2023-08-15T00:00:00
2023-08-15T12:14:05
116,506,777
58
24
null
2022-02-14T22:01:53
2018-01-06T18:40:35
Python
UTF-8
Python
false
false
5,782
py
# Copyright 2015 Google Inc. All Rights Reserved. """Definition for conversion between legacy YAML and One Platform protos.""" from googlecloudsdk.appengine.lib.external.admin.tools.conversion import converters as c from googlecloudsdk.appengine.lib.external.admin.tools.conversion import schema as s SCHEMA = s.Messa...
[ "joe@longreen.io" ]
joe@longreen.io
b945506a9f4a29f2511783145f6af33587bc473c
3e5b2eb741f5ae52752328274a616b475dbb401a
/services/core-api/tests/now_applications/resources/test_now_application_put.py
ea8ee6fa40ba11e0a78d8a568d69b0bf9ac3409d
[ "Apache-2.0" ]
permissive
bcgov/mds
165868f97d0002e6be38680fe4854319a9476ce3
60277f4d71f77857e40587307a2b2adb11575850
refs/heads/develop
2023-08-29T22:54:36.038070
2023-08-29T05:00:28
2023-08-29T05:00:28
131,050,605
29
63
Apache-2.0
2023-09-14T21:40:25
2018-04-25T18:54:47
JavaScript
UTF-8
Python
false
false
1,253
py
import json, decimal, pytest from flask_restplus import marshal, fields from app.api.now_applications.response_models import NOW_APPLICATION_MODEL from tests.now_application_factories import NOWApplicationIdentityFactory, NOWApplicationFactory class TestNOWApplication: """PUT mines/now-applications/<guid>""" ...
[ "noreply@github.com" ]
bcgov.noreply@github.com
0412431b0da4e6ff054478296cc9d25714eb67c8
fa8036fd416aecab3f1ca617acf0989f032f02ce
/abc165/A.py
d0cee18d96e021925e06a71e9d431a57b9a655f3
[]
no_license
MitsuruFujiwara/Atcoder
e2e2e82014e33e3422ea40eca812c6fdd8bcaaaa
bc73c4cd35a80c106d0e9b14cee34a064d89d343
refs/heads/master
2022-12-14T23:50:56.843336
2020-09-17T22:25:57
2020-09-17T22:25:57
252,980,448
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
K = int(input()) A, B = map(int, input().split()) ans = 'NG' for n in range(A,B+1): if n%K ==0: ans = 'OK' print(ans)
[ "fujiwara52jp@gmail.com" ]
fujiwara52jp@gmail.com
4cc0049abb138568478357ab24aa4bfb3ca4fffb
dd4d2589d1f14303cacd3b7ee1dd5f6bacd3bf3c
/company/amazon/linked_list/intersection.py
962fdaf38fc28e16cedeeda12cb343a8230f6c91
[]
no_license
salujaharkirat/ds-algo
ec22eaae81bdb78f2818248508325a536aedbb7b
819b5971826d97ec600b92776c5158518c9cbf22
refs/heads/master
2023-05-02T17:20:49.425484
2021-05-23T07:54:29
2021-05-23T07:54:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def get_length(self, head): length = 0 while head: length += 1 head = head.next return length #...
[ "saluja.harkirat@gmail.com" ]
saluja.harkirat@gmail.com
c69ab5d34d637db9d7131d63900bcf5f52226b04
f17a78351f53086ce2f9a42bb4b67a0528e3f651
/backend/main/urls.py
5f6aa88e52359ba7cffc7b901f523ce4f9264e64
[ "MIT" ]
permissive
tony/futurecoder
556dad5c28d4317f0928d821e3e22592d03d09b3
986e23137ef9ea2ca267c8b51ab6e1dfe10e530e
refs/heads/master
2022-11-19T06:20:20.703834
2020-07-21T20:37:24
2020-07-21T20:37:24
282,333,435
0
0
MIT
2020-07-24T23:21:20
2020-07-24T23:21:19
null
UTF-8
Python
false
false
1,182
py
"""book URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "alex.mojaki@gmail.com" ]
alex.mojaki@gmail.com
bbac5a99758351de35a1c9ee434cc4b0470a6ae4
394b5d87d193071e10d7f875e874edeb1720adbb
/staff/views.py
1b780d23c1a05dde4c12d9f3c2a137c7137bf4f8
[]
no_license
Andreyglass1989/Academy
346f3f6d468f44aeed2f0e73b3ac6c1ef206fba4
79527e9752324cf820314114e1dc97962c92f2fc
refs/heads/master
2021-01-20T15:12:49.542352
2017-05-26T07:11:57
2017-05-26T07:11:57
90,734,162
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
# from django.shortcuts import render, render_to_response # from .models import Staff # # # Create your views here. # # def main_menu(request): # staffs = Staff.objects.all() # title = "Staff" # context = {"title_docum":title, "staffs": staffs} # return render_to_response(request,"base.html",context)
[ "1989andreyglass@gmail.com" ]
1989andreyglass@gmail.com
7f82070c300a6bc1d32d4659948899e75073d7f1
e82245a9e623ef3e2b4b9c02f0fd932c608c4484
/pramp.com/07-busiest_time_in_the_mall-scratch_work.py
7d56bc26cc311d181c29572540e87d3ffc59e514
[]
no_license
Zylophone/Programming-for-Sport
33e8161028cfddce3b7a1243eb092070107342e3
193d6184f939303d8661f68d6fd06bdec95df351
refs/heads/master
2020-06-16T23:11:44.719286
2017-05-21T17:10:46
2017-05-21T17:10:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,524
py
# doesn't handle case where people enter and exit at the same second maintain a var that tracks the number of people in the mall time count type number_of_people 1 4 enter 4 3 3 exit 1 10 10 enter 11 14 20 enter 31 19 5 exi...
[ "jfv33@cornell.edu" ]
jfv33@cornell.edu
48e110407f51f654dff1452b5eb1425e8cd86c75
cc310e5586d7f7b6824802d290ba15e72832b76e
/ssil_sso_ms/global_function.py
97e7fd35cd07a01843dedf068f4176bf2aee5601
[]
no_license
abhisek11/my_django_boiler
9bccc1d57c8bab83f54f6083919531a7b6b97ff6
af36011a86376291af01a1c3a569f999bed4cb0d
refs/heads/master
2022-12-13T19:43:26.500510
2020-03-02T07:03:13
2020-03-02T07:03:13
244,302,032
0
0
null
2022-12-08T01:51:32
2020-03-02T06:57:59
Python
UTF-8
Python
false
false
3,086
py
from django.shortcuts import render from rest_framework import generics from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated from rest_framework.authentication import TokenAuthentication from hrms.models import * from hrms.serializers import * from pagination import CSLim...
[ "abhishek.singh@shyamfuture.com" ]
abhishek.singh@shyamfuture.com
2aa9aa7a5e03efbfd148d48e3641f8958d935c5c
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_117/682.py
fdb052b6206ab635aa8befdf177223b0490ce73e
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from numpy import empty, array, reshape, zeros def read_pattern(m,n): ar = array(map(int, sum([sys.stdin.readline().strip().split(' ') for a in range(m)],[]))) return reshape(ar, (m,n)) def solve(n): m, n = map(int, sys.stdin.readline().split(' ')) patt...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
9a6cf0b3eef8453bda85efcb047570913328df11
fc3f784c8d00f419b11cbde660fe68a91fb080ca
/algoritm/20하반기 코딩테스트/.카카오기출/쿠키구입.py
7aec711f931dadca16ca4ad6e2314022f0adfae9
[]
no_license
choo0618/TIL
09f09c89c8141ba75bf92657ac39978913703637
70437a58015aecee8f3d86e6bfd0aa8dc11b5447
refs/heads/master
2021-06-25T07:01:34.246642
2020-12-21T04:57:13
2020-12-21T04:57:13
163,782,782
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
def solution(cookie): Len=len(cookie) answer=0 Sum=sum(cookie) def Chk(A,B): if B%2:return 0 for m in range(a,b+1): A+=cookie[m] B-=cookie[m] if A==B:return A elif A>B:return 0 for a in range(Len-1): tmp=Sum for b in r...
[ "choo0618@naver.com" ]
choo0618@naver.com
3661e9be4ba4631580df807c9d3591b2478fc8ea
b34c2e2ccb3dcda09bab17e3082627c8401cc67b
/bank/api/bank_api.py
a60dab611be6a0126475132c99c93a73ee80bd38
[]
no_license
udwivedi394/django_api_app
7cc80c68064e9349bd0ca21b1f794be21ec78dfc
bcc918a3dc6263017e54a3ea34086ed51aa7e7cb
refs/heads/master
2020-05-07T21:45:02.960050
2019-04-14T17:09:37
2019-04-14T17:09:37
180,916,904
0
0
null
null
null
null
UTF-8
Python
false
false
1,709
py
import json from django.db import transaction from django.http import HttpResponse from django.utils.decorators import method_decorator from rest_framework.exceptions import APIException from rest_framework.views import APIView from bank.api.bank_api_processor import BranchDetails, BranchFinderInCity from bank.api.se...
[ "utkarshdwivedi394@gmail.com" ]
utkarshdwivedi394@gmail.com
96247780730626ed382d3dfaee4df66524f0fc30
59080f5116b9e8f625b5cc849eb14b7ff9d19f3d
/124 rpc/msg_pb2.py
23fe08aa72bfcbf531911d26beccb3cd695daaf0
[]
no_license
yyq1609/Python_road
eda2bcd946b480a05ec31cdcb65e35b3f3e739d1
e9ba2f47c8dd2d00a6e5ddff03c546152efd8f49
refs/heads/master
2020-09-11T11:51:35.903284
2019-11-11T13:02:21
2019-11-11T13:02:21
222,054,462
1
0
null
2019-11-16T05:58:13
2019-11-16T05:58:12
null
UTF-8
Python
false
true
3,570
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: msg.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import ...
[ "958976577@qq.com" ]
958976577@qq.com
8caada00d03e7730fef604f1bac57dc6925a29f7
f51c6d0cebb27c377ce9830deec4b727b9b2ee90
/AI/BOOK - Problem Solving with Algorithms and Data Structures - EXAMPLES/Listings/listing_1_1.py
401dd53d09553f35e9b4e840ee00ed270ecae51c
[]
no_license
dbbudd/Python-Experiments
1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8
b6d294bf11a5c92b8578d16aa2f63cc27fc47b07
refs/heads/master
2020-04-17T02:21:36.693593
2019-01-17T00:18:34
2019-01-17T00:18:34
166,130,283
1
0
null
null
null
null
UTF-8
Python
false
false
151
py
def squareroot(n): root = n/2 #initial guess will be 1/2 of n for k in range(20): root = (1/2)*(root + (n / root)) return root
[ "dbbudd@gmail.com" ]
dbbudd@gmail.com
addaa8d9c141661d40806d61bb19fb4cc977f2ec
01fa2aca31eb73a559d192fd29e44350f26a13a9
/HAX/18.CocoJoe/script.module.lambdascrapers/lib/lambdascrapers/sources_overeasy/en_de/iwantmyshow.py
b4f83e473feaf904ab832be9fa246515efd676a8
[ "Beerware" ]
permissive
RandomIntermition/k4y108837s
b4beedeff375645bd4fa9ad348631a9a9f3640b6
e9115aad49795dfe30a96c278cedaf089abcc11d
refs/heads/master
2022-05-01T18:45:57.298903
2022-03-30T03:41:08
2022-03-30T03:41:08
109,356,425
1
0
null
2019-11-08T02:20:47
2017-11-03T05:36:48
Python
UTF-8
Python
false
false
7,914
py
# -*- coding: utf-8 -*- ''' This program 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, either version 3 of the License, or (at your option) any later version. This program is distributed in...
[ "github+github@github.github" ]
github+github@github.github
6e3fc1ac707dd1993a33342c09e738411880714c
7ab16fa64eedde37cefabdbb8b7e176b28590c36
/controller/connector/docs/simple/reverse_tcp_agent.py
c4d562d1dd7a744c3adb1120a436effb3943dd28
[]
no_license
how2how/PlayGround
240b5ab512dc1992f551f4af9289362b5018dba3
cc10ee74ee3ee86b8b769cbf6237745bf1614adb
refs/heads/master
2020-03-07T00:49:02.530872
2018-05-08T15:09:13
2018-05-08T15:09:13
127,166,699
0
0
null
null
null
null
UTF-8
Python
false
false
1,802
py
from server.core.orchestration import SimpleOrchestrator orch_obj = SimpleOrchestrator( "Our passphrase can be anything! &^&%{}", out_length = 20, in_length = 20, ) import socket s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(("127.0.0.1",1234)) def send( data ) : ...
[ "test@test.com" ]
test@test.com
93978618a6ba0603136f2dbec1dfdfb4e5fe055a
1e297340a3c85a29bbad1b27b076d8ad50086e7a
/algorithm/BinarySearch/BOJ_10815(binary_search).py
47e0f364a9bb5bf3c8855715e7b29fec31491ba4
[]
no_license
onewns/TIL
a5ee524604feb77d0d982ead2ea0265fa78c9349
fa53ede5194979ccc54eeae882399799afe08bcf
refs/heads/master
2023-08-29T02:50:19.982012
2021-10-11T12:24:59
2021-10-11T12:24:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
import sys sys.stdin = open('../input.txt', 'r') def binary_search(num, start, end): left, right = start, end - 1 mid = (left + right) // 2 if left > right: return 0 if num == cards[mid]: return 1 elif num > cards[mid]: return binary_search(num, mid + 1, end) else: ...
[ "wonjun9090@naver.com" ]
wonjun9090@naver.com
a55a94207d6eebdfea63144d689f0a8ed1c3a00b
ce8a7ed7afb9a11a22df905f55749c1e06a98b63
/amazon/python/17. Letter Combinations of a Phone Number.py
e72e9ed254f36f029c3b55ccb3e87fde05050a16
[]
no_license
suruisunstat/leetcode_practice
9da68247263d9b9bec98ab7e0f78bfe58e9dc830
1c0ff616ee3753ac9d4571301313f7a6b8ba6f37
refs/heads/master
2022-11-09T05:05:55.946361
2022-11-05T08:24:41
2022-11-05T08:24:41
147,136,224
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
class Solution(object): def letterCombinations(self, digits): """ :type digits: str :rtype: List[str] """ dict_num = {'2':['a','b','c'],'3':['d','e','f'],'4':['g','h','i'],'5':['j','k','l'],'6':['m','n','o'],'7':['p','q','r','s'], '8':['t','u','v'], '9':['w','x','y','z']} ...
[ "noreply@github.com" ]
suruisunstat.noreply@github.com
09e30b7fd5c4de83950b8216c5b2fdaeae13dbbf
17c280ade4159d4d8d5a48d16ba3989470eb3f46
/16/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisWprime4500.py
0c7712eb078cfa84197fb5056d2af33b0c4f59b9
[]
no_license
chengchen1993/run2_ntuple
798ff18489ff5185dadf3d1456a4462e1dbff429
c16c2b203c05a3eb77c769f63a0bcdf8b583708d
refs/heads/master
2021-06-25T18:27:08.534795
2021-03-15T06:08:01
2021-03-15T06:08:01
212,079,804
0
2
null
null
null
null
UTF-8
Python
false
false
2,256
py
from WMCore.Configuration import Configuration config = Configuration() config.section_("General") config.General.requestName = 'Wprime_4500_weight_v2' config.General.transferLogs = True config.section_("JobType") config.JobType.pluginName='Analysis' config.JobType.sendExternalFolder=True# = 'Analysis' config.JobTy...
[ "c.chen@cern.ch" ]
c.chen@cern.ch
3b3a117221d6b53dde8de16074a991941662ffdb
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r8/Gen/DecFiles/options/11146113.py
693fb033baff53bcb422a63ef8bda36e903bc01f
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/11146113.py generated: Fri, 27 Mar 2015 15:47:59 # # Event Type: 11146113 # # ASCII decay Descriptor: [B0 -> (J/psi(1S) -> mu+ mu-) (phi(1020) -> K+ K-) (K_S0 -> pi+ pi-)]cc # from Gaudi.Configuration import * importOptions( "$DECFILESROOT/options/KKmumuI...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
0d61e717f8f7e75de0fcb1bd47dc911cd7bd82c8
137ba8a70dfcf94dfe7aeef1599341ecc06ca48f
/project_ex/10_lotto.py
a2e74e17dec7fa2d55a90d94167acf5e665eabba
[]
no_license
smtamh/oop_python_ex
e1d3a16ade54717d6cdf1759b6eba7b27cfc974e
bd58ee3bf13dad3de989d5fd92e503d5ff949dd9
refs/heads/master
2020-09-22T08:35:19.847656
2019-11-13T02:47:06
2019-11-13T02:47:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,200
py
""" Created on 2014. 8. 10. @author: uyu423@gmail.com http://luckyyowu.tistory.com/209 """ import random # 0. 객체지향을 통해 크게 3가지 형태의 클래스가 나온다. Data, B.O, U.I # 1. 데이터를 클래스로 만들 수 있음(Data) # 2. 프로그램이 해야하는 기능을 모아서 클래스로 만들 수 있음(Business Object(B.O). B.O는 입출력을 처리하지 않음(중요) # 3. 실제 입출력을 담당하는 UI 클래스도 있음(UI) # 4. 모든 프로그램은 CRUD(...
[ "kadragon@sasa.hs.kr" ]
kadragon@sasa.hs.kr
e15fbbc01d14573d8ad538799b6a7f1880f85372
d03a31d080267010c7bbd5ac9cbaa94cffa23292
/tests/test_utils.py
19edf3ba3488d535380466b4472b639ffe03e69d
[]
no_license
chmouel/python-nonobot
0d654f4e608f77bb85d0adb16b9d3639a2586f0b
4e07ec1a4ba755a6f7070f5778fe734a3180ad70
refs/heads/master
2021-01-01T18:02:30.832406
2014-12-05T10:48:14
2014-12-05T10:48:14
17,373,952
0
4
null
2014-03-15T09:04:21
2014-03-03T17:34:52
Python
UTF-8
Python
false
false
1,231
py
# -*- coding: utf-8 -*- # Author: Chmouel Boudjnah <chmouel@chmouel.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 require...
[ "chmouel@chmouel.com" ]
chmouel@chmouel.com
835478f976795573d8355bbee93293234d4cb55f
c87ae09a0229b4b4620c511b0c51eb685ec22b99
/Python全栈学习/第四模块 网络编程进阶&数据库开发/practise/基于多进程的socket通信/队列的使用.py
b186e6d31bb0a9672c52aa8b644e8f974705eaaf
[]
no_license
caideyang/python2018
050f4c29c37b5bec963e77e0724cd05a9350deed
b7a3a728ef36b43448dc5ff594fdba500b67ad53
refs/heads/master
2020-03-25T06:02:54.699941
2018-11-01T23:04:29
2018-11-01T23:04:29
143,480,652
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
#!/usr/bin/python3 #@Author:CaiDeyang #@Time: 2018/9/26 10:41 from multiprocessing import Queue import time if __name__ == "__main__": q = Queue(3) # 创建队列,最大深度3 q.put("hello") # 往队列存放消息 q.put([1,2,3,4]) q.put({"name": "caideyang"}) # time.sleep(1) print(q.empty()) # 判断队列是否为空 print(q.full(...
[ "deyangcai@163.com" ]
deyangcai@163.com
515436b4d5fe3ddd0030470fde74f0965147a76f
96cfaaa771c2d83fc0729d8c65c4d4707235531a
/Configuration/Spring08Production/python/Spring08_PhotonJetpt30-50_GEN_cfg.py
8cf29fde0fbca5f06b831fcb9e3f0f9fe8054a8d
[]
no_license
khotilov/cmssw
a22a160023c7ce0e4d59d15ef1f1532d7227a586
7636f72278ee0796d0203ac113b492b39da33528
refs/heads/master
2021-01-15T18:51:30.061124
2013-04-20T17:18:07
2013-04-20T17:18:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
import FWCore.ParameterSet.Config as cms process = cms.Process("Gen") process.load("FWCore.MessageService.MessageLogger_cfi") # control point for all seeds process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff") process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("C...
[ "sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch" ]
sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch
2d4343cd3084b61e1e48672feeb7de774d2d4833
6f3b3f29b0ed43f056526a7d96df27c623cf8a29
/czsc/enum.py
ccd2fd8436e1ff3e6e6431b4b1183683bb279deb
[ "MIT" ]
permissive
dst1213/czsc
a163c362d162110557e64e8ea8b41350d4d90a00
939803a9b196c19db3d8498f63276a4fdb8a442b
refs/heads/master
2023-04-22T04:17:22.703347
2021-04-30T13:53:40
2021-04-30T13:53:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,016
py
# coding: utf-8 from enum import Enum class Mark(Enum): D = "底分型" G = "顶分型" class Direction(Enum): Up = "向上" Down = "向下" class Freq(Enum): F1 = "1分钟" F5 = "5分钟" F15 = "15分钟" F30 = "30分钟" F60 = "60分钟" D = "日线" W = "周线" M = "月线" class Signals(Enum): Other = "Other~...
[ "zeng_bin8888@163.com" ]
zeng_bin8888@163.com
cc8b434ce82b6e1625a617bbbd89b70bd16b8524
f225b35d49562e7a1114968bdf9128dbc4cd91ab
/myspider/items.py
fa8e60c784f6743287563124add7390aebc383f6
[]
no_license
15032373556/scrapy_exercise
1948ce42102f99e414ae214b27163eb1d9e3b338
7a6e8b7a395044bda3acb649ab8f5a74bc854d82
refs/heads/master
2022-11-25T13:29:28.726984
2020-07-25T03:09:41
2020-07-25T03:09:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class ItcastItem(scrapy.Item): # 抓取 1.讲师姓名 2.讲师职称 3.讲师个人信息 # 测试提交代码 name = scrapy.Field() title = scrapy.Field() info = scrapy.Field()
[ "1798549164@qq.com" ]
1798549164@qq.com
705796328fb21af7633d2c714b02f3ea143c60d9
bd6e9f4f6261795fd876107b21b04cafec00b5d7
/web/code/src/my_proj/settings/base.py
e4e7135dce4402369d49d6a25f66aef51faf12d5
[]
no_license
hema71024/StudentPortal
774f4a7167ce624c60e5b6c8a3c8ccac18860616
2aa53f57120acfd93178e5a5eee49c69a1527fdd
refs/heads/master
2021-04-24T07:21:05.921571
2018-04-03T08:56:59
2018-04-03T08:56:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,286
py
""" Django settings for my_proj project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from django.core.urlresolvers import reverse_lazy from os.path import dirna...
[ "ashutoshhathidara98@gmail.com" ]
ashutoshhathidara98@gmail.com
80d6314141d4f24833a5ea2410e5ce6f0c2c9472
074afd26d00bb742b03c12891b057ab263e640bf
/LeetCode 30 days/week1.2.py
ffcfa748b1935152b9419bb6cf112f940f619277
[]
no_license
IsmailTitas1815/Data-Structure
7a898800b1e53c778b1f2f11b0df259e52c20140
fece8dd97d3e162e39fc31d5f3498a6dac49b0f0
refs/heads/master
2023-02-05T10:39:49.349484
2020-12-21T13:37:22
2020-12-21T13:37:22
296,343,627
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
# import re # s = '123 456-7890' # new_s = [int(i) for i in re.findall('\d', s)] # unformattedPhone = "1239084590348509 456-7890" # numbersList = [int(s) for s in unformattedPhone if s.isdigit()] # print(numbersList) class Solution: def isHappy(self,num): setofvalue = set() while num!=1: ...
[ "titas.sarker1234@gmail.com" ]
titas.sarker1234@gmail.com
def2f5d76a06abfa75bee8540d5a5982b97fa204
9fb1c85a6d39c08e2a3cc235335bc482ad909b71
/prowler/providers/aws/services/route53/route53_domains_transferlock_enabled/route53_domains_transferlock_enabled.py
d49160981b34ad878af72233ab6ebf3869bfae89
[ "Apache-2.0" ]
permissive
muharihar/prowler
06dbdeaa0696dd65d72c33ff3c9f957b97f83d7a
25c9bc07b219cc02004cc0b84adcfdcf18d5ad2b
refs/heads/master
2023-02-18T01:26:54.161003
2023-02-10T11:38:13
2023-02-10T11:38:13
238,623,868
0
0
null
2020-02-06T06:36:36
2020-02-06T06:36:35
null
UTF-8
Python
false
false
1,012
py
from prowler.lib.check.models import Check, Check_Report_AWS from prowler.providers.aws.services.route53.route53domains_client import ( route53domains_client, ) class route53_domains_transferlock_enabled(Check): def execute(self) -> Check_Report_AWS: findings = [] for domain in route53domains...
[ "noreply@github.com" ]
muharihar.noreply@github.com
15d8600fcc62bae425faaf90085a8f09360ab77e
df038c9a84ca9b11bbef86d84d2e6feb6fd733bf
/setup.py
d7698c8b3fa3d0b9da3a92af8fb21d3751e3cf58
[ "BSD-2-Clause" ]
permissive
wybaby/PSpider
d31ff8cbde1a3f23d05c1684c455beea2b48c915
5087fc20589878fa123daa113213fbf17282a35b
refs/heads/master
2021-01-22T01:55:16.258596
2017-06-23T03:35:04
2017-06-23T07:40:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
# _*_ coding: utf-8 _*_ """ install script: python3 setup.py install """ from setuptools import setup, find_packages setup( name="spider", version="2.4.5", author="xianhu", keywords=["spider", "crawler", "multi-threads", "asyncio", "distributed"], packages=find_packages(exclude=("otherfiles", "te...
[ "qixianhu@qq.com" ]
qixianhu@qq.com
99cbb1c2c9693fe423a01b59ef5289715abab28f
396ee8958eb753d96a62b1199103c2c1194c08e0
/creme/ensemble/bagging.py
a8509f03c6ffe22b2ed05d0f2a2d8f770954a48a
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ZuoMatthew/creme
fe1499a9071a994587172f908a530522be6b915b
27d40fa7a5014c94d7f95dee259368c0adc7115c
refs/heads/master
2020-04-22T20:46:58.100005
2019-02-12T17:13:15
2019-02-12T17:13:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,843
py
import collections import copy from sklearn import utils from .. import base __all__ = ['BaggingClassifier'] class BaggingClassifier(base.BinaryClassifier): """Bagging for classification. For each incoming observation, each model's `fit_one` method is called `k` times where `k` is sampled from a Pois...
[ "maxhalford25@gmail.com" ]
maxhalford25@gmail.com
ee819a6e8372d9aa07f36cdf730a81eaea0c1055
18b977dccd70e9e5a1b553b28ab0413fb3f54f4b
/SoftUni/Python Developmen/Python-Fundamentals/04_Lists/the_office.py
12c13b6f4c2e6e1f5e8584f7e661696c2d418881
[]
no_license
stevalang/Coding-Lessons
7203e3a18b20e33e8d596e3dfb58d26c50b74530
2d0060c2268ad966efdcae4e6e994ac15e57243a
refs/heads/master
2023-06-05T08:28:33.290530
2021-06-16T19:37:29
2021-06-16T19:37:29
284,852,565
1
0
null
null
null
null
UTF-8
Python
false
false
632
py
employees = input().split() factor = int(input()) employee_happiness = list(map(lambda x: int(x) * factor, employees)) avg_happiness = sum(employee_happiness) / len(employee_happiness) # above_avg_happy = [employee for employee in employee_happiness if employee >= avg_happiness] above_avg_happy = list(filter(lambda em...
[ "rbeecommerce@gmail.com" ]
rbeecommerce@gmail.com
e0315093c2111b0b43b0c96efd9f3b6ae0dd7d10
1a639d185f9c883b7bebf33c577c58b22ac93c7e
/other/sound.py
d69bb732b93754a0a9bbad2d5b75c7350984b2d5
[]
no_license
gofr1/python-learning
bd09da5b5850b1533a88b858690ed4380b55d33e
19343c985f368770dc01ce415506506d62a23285
refs/heads/master
2023-09-02T15:42:27.442735
2021-11-12T10:17:13
2021-11-12T10:17:13
237,828,887
0
0
null
2021-11-12T10:17:14
2020-02-02T20:03:42
Python
UTF-8
Python
false
false
568
py
#!/usr/bin/env python3 # gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API # sudo pip3 install gtts from io import BytesIO from pygame import mixer from gtts import gTTS def speak(text): with BytesIO() as f: gTTS(text=text, lang="en").write_...
[ "gofr.one@gmail.com" ]
gofr.one@gmail.com
59602afbce466d3a9113e0c7e330db6597cd02fa
cb242b1fdf3889d4df347f3102daf6584a0c40a4
/threeandthrees/words.py
d562ed188fda92eba7607308a68f44f8b4960f5d
[ "MIT" ]
permissive
bwarren2/threeandthrees
d927711f0927a8e3493cd201ffdd8d930e5586f2
2a09a398ab332c27e2e7722e612fa18318b50e60
refs/heads/master
2023-05-25T23:28:11.706181
2021-04-30T15:12:45
2021-04-30T15:12:45
68,949,353
0
0
MIT
2021-04-30T15:12:46
2016-09-22T18:18:05
Python
UTF-8
Python
false
false
2,546
py
from collections import defaultdict, OrderedDict import random from colorama import init, Fore import os import re init(autoreset=True) safe_pattern = re.compile('^[a-z]{9}$') def extract_words(): dir_path = os.path.dirname(os.path.realpath(__file__)) with open(dir_path + '/american-english.txt', 'r') as f:...
[ "bwarren2@gmail.com" ]
bwarren2@gmail.com
7f21a3c4b4eab2603971a2c036ccf0062bc692a0
92d5c15b92356de9f66d2d4738f3c6f00ef2796f
/alembic/versions/11a00705ac61_added_a_bunch_of_gra.py
125da279586118ae1e213bc3e51a31aadf58a062
[]
no_license
colinmorris/moz-graphs
2f88472b7ad23ee0c63977c2151ac102af475769
f412c0564fb210327436da0468f78932bd21dca0
refs/heads/master
2016-09-06T04:36:39.322822
2013-07-27T22:00:14
2013-07-27T22:00:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
"""added a bunch of graph vars for assignee Revision ID: 11a00705ac61 Revises: 48044ce97c4f Create Date: 2013-04-08 10:21:12.247290 """ # revision identifiers, used by Alembic. revision = '11a00705ac61' down_revision = '48044ce97c4f' from alembic import op import sqlalchemy as sa def upgrade(): ### commands a...
[ "colin.morris2@gmail.com" ]
colin.morris2@gmail.com