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
632f50ce657bd31338db5ba020bec2b0f1357596
6e155cd7444e69b719d129e9dcaed2b788d4359b
/shop/shop/celery.py
2582d795673aac826732cb8f19387b7702df0cf7
[]
no_license
tishmanoni/My-store
0ac1beb26fd4c3176f90346b23b9e9c955e90729
79bec452be871089edd6415b00bd094dc6288443
refs/heads/master
2022-12-06T05:33:21.163835
2020-08-29T19:39:45
2020-08-29T19:39:45
291,334,250
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shop.settings') app = Celery('shop') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks()
[ "66375712+tishmanoni@users.noreply.github.com" ]
66375712+tishmanoni@users.noreply.github.com
2ca74b87fb00d97fdb9b1cd2746f2e542e60938b
b65c1f6000af4ddeb7280e7d93bf861fbf1964bc
/contracts/tests/test_load_data.py
e385455a7533122a2a8978adbb1a3792d745a638
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
EricSchles/calc
ef00aaddfec010321867a8287db0a565dbb7985e
eaa1ab227a5a07f5f4f7d2c64a278977cd43cb18
refs/heads/develop
2021-01-25T14:33:58.124300
2017-10-11T19:29:20
2017-10-11T19:29:20
72,668,485
1
0
null
2016-11-02T18:17:57
2016-11-02T18:17:57
null
UTF-8
Python
false
false
483
py
import pathlib from django.core.management import call_command from django.test import TestCase from contracts.models import Contract MY_DIR = pathlib.Path(__file__).resolve().parent class LoadS70TestCase(TestCase): sample_filename = MY_DIR.parent / 'docs' / 'hourly_prices_sample.csv' def test_loads_sample...
[ "varmaa@gmail.com" ]
varmaa@gmail.com
dba58d500dc281d3b42ffe31ba813201ef1ff43f
e4abeab73f2aa2de037aa84d195dce986af5208a
/lmp/script/sample_from_dataset.py
758446f580908db34133a1f847dfbd2745eb7d72
[ "Beerware" ]
permissive
france5289/language-model-playground
1792fc712bace3ca3e7a0b8b3ba4745b2d6c9b5c
02181561107dac13d52e411bc970e245277854d4
refs/heads/main
2023-08-07T01:59:56.928232
2021-09-22T06:57:28
2021-09-22T06:57:28
409,092,012
0
0
NOASSERTION
2021-09-22T06:39:53
2021-09-22T06:39:52
null
UTF-8
Python
false
false
2,896
py
r"""Sample dataset using index. Tool for observing data point in specified dataset. Use index to sample from dataset. See Also ======== lmp.dset All available dataset. Examples ======== The following example sample index ``0`` from :py:class:`lmp.dset.WikiText2Dset` ``train`` dataset. .. code-block:: sh py...
[ "ProFatXuanAll@gmail.com" ]
ProFatXuanAll@gmail.com
0d1cb7925a58261d9e23d04bfa835151026b290e
d968882c6bdecb2347307aea7381b9495911a0a6
/microconventions/type_conventions.py
743a0db4e8a8e19220b9f89b9415898b16077566
[]
no_license
fagan2888/microconventions
a070bddf94c0788ed4ff3ab31941d0daccf30fd5
037f9fcc67caa28916c6b81f4742a68afaf296b0
refs/heads/master
2022-11-10T21:52:53.632179
2020-07-02T14:28:59
2020-07-02T14:28:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
from typing import List, Union, Any, Optional KeyList = List[Optional[str]] NameList = List[Optional[str]] Value = Union[str,int] ValueList = List[Optional[Value]] DelayList = List[Optional[int]]
[ "info@3za.org" ]
info@3za.org
d38ad13d5b90a52d56ed6d9da5384a5f4df4d21f
746bf62ae3599f0d2dcd620ae37cd11370733cc3
/leetcode/spiralmatrixtwo.py
c0075822c99847054ebdbfc8e1a03cd68cd9c653
[]
no_license
wanglinjie/coding
ec0e614343b39dc02191455165eb1a5c9e6747ce
350f28cad5ec384df476f6403cb7a7db419de329
refs/heads/master
2021-04-22T14:00:48.825959
2017-05-02T12:49:05
2017-05-02T12:49:05
48,011,510
0
0
null
null
null
null
UTF-8
Python
false
false
2,106
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # date:20160711 class Solution(object): def generateMatrix(self, n): """ :type n: int :rtype: List[List[int]] Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should ...
[ "hitwhwlj@163.com" ]
hitwhwlj@163.com
2541bc3717df13f38034e534423c96eec29b2d31
9cadeb694a677c4ad567d514eee042891c65eeaf
/apiServer/wsgi.py
64aabb0e27969ed54fed3cc2e2a79148e4e57375
[]
no_license
epikjjh/Stock-Seeker
b8267fda13df6579f3883f66f94007d6ca11187a
934d97c0ceb89c1fcdfb469c1807d09c2671cc67
refs/heads/master
2022-12-22T23:38:24.947593
2020-09-22T11:50:56
2020-09-22T11:50:56
297,632,451
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for stockSeeker project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
[ "epikjjh@gmail.com" ]
epikjjh@gmail.com
440bfdebbceb6eaef3277aca9941a759e42ae116
7beff965d7b0e6155d6d52b27d71c557421d5ada
/aoj/grl_7_a.py
830ad7ec1ba09ea22f3deb70e180d4910bd89f7e
[]
no_license
uk-ar/competitive_programming
82a53a1007798843ac006b9c7d313826e6cb45c3
d2523cf303f47644cada3b03e9eed2349bdbe394
refs/heads/master
2023-03-28T13:20:07.728861
2021-03-30T20:25:55
2021-03-30T20:25:55
249,638,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,613
py
#!/usr/bin/env python3 # N,M = map(int,sys.stdin.readline().split()) # a = tuple(map(int,sys.stdin.readline().split())) # single line with multi param # a = tuple(int(sys.stdin.readline()) for _ in range(N)) # multi line with single param # a = tuple(tuple(map(int,sys.stdin.readline().rstrip().split())) for _ in range(...
[ "yuuki.ari@gmail.com" ]
yuuki.ari@gmail.com
d973a98d468f699d88ed22bda3be21818e1727e8
4c44c593048fa4e00fb0334209632a286886efd9
/import_template_supplierinfo/wizards/import_file.py
6e86c4502afe621620950784d04bcf17a2bff77f
[]
no_license
treytux/trey-addons
0c3fec43c584d46bd299b4bca47dcc334bedca60
1cda42c0eae702684badce769f9ec053c59d6e42
refs/heads/12.0
2023-06-08T21:56:09.945084
2023-05-29T10:05:53
2023-05-29T10:05:53
114,281,765
19
49
null
2023-05-29T10:05:55
2017-12-14T18:10:39
Python
UTF-8
Python
false
false
1,065
py
############################################################################### # For copyright and license notices, see __manifest__.py file in root directory ############################################################################### import base64 import io import logging from odoo import models _log = logging....
[ "roberto@trey.es" ]
roberto@trey.es
da88288f281baad769af1ccbf83b2777ed6a91a0
3f7c27ccd0ab1fcbd2583cf4b764b81bd27dd718
/apps/members/urls.py
03acc1cb09f082fefdc65dd6e430675e3a4ac2b6
[]
no_license
adamtlord/foreverland
001ca1a91a3cc468405efb80fe7981e75b82021c
8206ddeeb8cfbd2752ef6fa9839424718cb96e07
refs/heads/master
2020-04-16T00:50:51.582008
2016-09-21T03:27:39
2016-09-21T03:27:39
11,668,672
0
0
null
2016-09-04T03:46:51
2013-07-25T19:05:55
Python
UTF-8
Python
false
false
144
py
from django.conf.urls import patterns, url urlpatterns = patterns('members.views', url(r'^$', 'list_members', {}, name='list_members'), )
[ "adam.lord@gmail.com" ]
adam.lord@gmail.com
269093e40a4014ea89ecd80de5f371b123bd4fa7
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/srsly/tests/cloudpickle/cloudpickle_file_test.py
02c568f8652ef647b699a151dff037527a6e8836
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:a058ea411ee874062513e922cfd60cc7f362eda3000cc849fc6af9c828f1412b size 3430
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com
c3df0ac58a6da679590d7b4d309dd0b86190657c
863a1f5091f1faad2beaf2a6037e3a5c0ebdc194
/Backuper.glyphsPlugin/Contents/Resources/plugin.py
8a21cdbee8b408df2b4ca9d675f6a38770426e11
[]
no_license
schriftgestalt/Backuper
e65f08ec016770564131c05dbd888fe6841c6612
2b738600c4a8cb288184ae2c216bcfcbf64e266b
refs/heads/master
2023-07-17T19:50:00.265070
2021-09-01T21:38:34
2021-09-01T21:38:34
109,949,694
1
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
# encoding: utf-8 ########################################################################################################### # # # General Plugin # # Read the docs: # https://github.com/schriftgestalt/GlyphsSDK/tree/master/Python%20Templates/General%20Plugin # # #######################################################...
[ "georg.seifert@mac.com" ]
georg.seifert@mac.com
ffa39f22831b11734d04b3e3eea7856437400115
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0401_0450/LeetCode422_ValidWordSquare.py
ee694477735ad1d5c38aa096a5f0bfdceae3713d
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
449
py
''' Created on Apr 13, 2017 @author: MT ''' c_ Solution(o.. ___ validWordSquare words __ n.. words: r.. F.. ___ i, word1 __ e..(words word2 '' ___ j __ r..(l..(word1: __ j >_ l..(words r.. F.. __ i >_ l..(words[j] ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
23936645c5429dbbbaad5e2fbb69f5df836ab631
dd4d1a61ec680a86d4b569490bf2a898ea0d7557
/appengine/predator/common/model/chrome_crash_analysis.py
4473ea72c94ffcc660fa5ff6418f3923faf801aa
[ "BSD-3-Clause" ]
permissive
mcgreevy/chromium-infra
f1a68914b47bcbe3cd8a424f43741dd74fedddf4
09064105713603f7bf75c772e8354800a1bfa256
refs/heads/master
2022-10-29T23:21:46.894543
2017-05-16T06:22:50
2017-05-16T06:22:50
91,423,078
1
1
BSD-3-Clause
2022-10-01T18:48:03
2017-05-16T06:23:34
Python
UTF-8
Python
false
false
1,079
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from google.appengine.ext import ndb from common.model.crash_analysis import CrashAnalysis class ChromeCrashAnalysis(CrashAnalysis): # pylint: disable=W0...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
d926c78d9ca4a0ffd80d8aefc3bac5797f7db7a1
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_LinearTrend_BestCycle_AR.py
b8625fb2fc2806fe6e615c6b2e4052c583dac9c1
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
155
py
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['BoxCox'] , ['LinearTrend'] , ['BestCycle'] , ['AR'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
38c15c39a97e7ab3d51118f6386f186dda7696d8
a0f1bfea522d5917ae6f18d3a4ab980870feac77
/modules/hs/analysis/instruction.py
9c6896ba3c8d225b4552a2b47164300ff9cdddce
[ "MIT" ]
permissive
sinsai/Sahana_eden
1d9768d19266010caf2753b66d17925fe708007a
798688dcf206fc81d586d9af1c57a99e6f1573c5
refs/heads/master
2020-06-07T21:10:17.416723
2011-06-10T08:57:23
2011-06-10T08:57:23
1,659,383
3
0
null
null
null
null
UTF-8
Python
false
false
4,114
py
""" Healthscapes Geolytics Module ...
[ "fran@aidiq.com" ]
fran@aidiq.com
a794b38e5b1c9bc25dfef36a9d955d9cf54a7d8b
2f0aa66e14c6595289f6a0de2bdf71e9922052a7
/nextApi/user/migrations/0003_auto_20200818_2008.py
6d6e0a8b8d3ab39d197ff070024c08b0dd3e56ff
[]
no_license
aimethierry/NextApi
8f83a2b0f499fdf5118eb930baa051584cfd9aa5
90884ee6d900ce71116b40276dda0e97bec0b521
refs/heads/master
2022-12-11T09:03:54.981284
2020-09-19T12:40:36
2020-09-19T12:40:36
296,866,571
0
0
null
null
null
null
UTF-8
Python
false
false
943
py
# Generated by Django 3.1 on 2020-08-18 18:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0002_companyacc'), ] operations = [ migrations.AddField( model_name='companyacc', name='email', fi...
[ "aime.thierry97@gmail.com" ]
aime.thierry97@gmail.com
803331d02c81b15dd9eeeb88fb58de707d4c9897
287c663c97e7840239794fbe84ce285773b72985
/virtual/bin/mako-render
ff06d7a97fb70f3f26a64dd2325bf6138e8c7d31
[ "MIT" ]
permissive
mzazakeith/flask-blog
ea8e5b2da9a581eb026564c1b9e500fa0532ee88
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
refs/heads/master
2020-03-21T21:24:57.296282
2018-07-02T20:20:24
2018-07-02T20:20:24
139,062,052
0
0
null
null
null
null
UTF-8
Python
false
false
253
#!/home/mzaza/Desktop/flask_blog/virtual/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from mako.cmd import cmdline if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(cmdline())
[ "mzazakeith@gmail.com" ]
mzazakeith@gmail.com
e650793603ccf2cefac008d1c76270721b8d1367
57061e611a549f9afe4f5201730a85d76a7e505f
/setup.py
5323723ba2f8215b16c769148b156602f63760fc
[ "MIT" ]
permissive
briostack/chrome-printtopdf
35ee5da836878107f7586a7e61f1adf6b7d8c4cb
6b4f91ab50cbc3570c27cfd8511f3964387c356e
refs/heads/master
2022-03-08T14:58:51.843698
2022-03-01T22:32:14
2022-03-01T22:32:14
94,803,813
1
0
null
2017-06-19T17:38:03
2017-06-19T17:38:03
null
UTF-8
Python
false
false
1,069
py
#!/usr/bin/env python from __future__ import print_function import os import codecs from setuptools import setup, find_packages def read(*parts): filename = os.path.join(os.path.dirname(__file__), *parts) with codecs.open(filename, encoding='utf-8') as fp: return fp.read() setup( name="chrome...
[ "mail@stefanwehrmeyer.com" ]
mail@stefanwehrmeyer.com
4020c3b3e7e7165b0196c1585615c9b95e9e33fd
11211916f39b9d98027b64d778e52743d0c519a1
/L3/tmp/assignments/outline.py
e7bba9d3d9acf2c3e969914fff659f06fe1cd781
[]
no_license
mantasruigys3000/Group-Task
87baf1bc2747323c0508f6f32ef733c3f4b50978
6790d74ae7fa0fe6b13733efcd75a9f4aca70ab0
refs/heads/master
2020-04-23T20:54:09.696659
2019-02-22T01:29:53
2019-02-22T01:29:53
171,454,102
0
0
null
2019-02-19T10:31:09
2019-02-19T10:31:08
null
UTF-8
Python
false
false
343
py
Amet velit etincidunt porro est quaerat etincidunt. Velit ut velit dolor consectetur est dolor. Voluptatem quisquam quiquia quisquam sed ut. Non voluptatem voluptatem etincidunt. Username: Marcus Password: titten Dolorem velit labore velit amet ipsum ipsum adipisci. Quaerat labore est dolore quaerat aliquam. Amet sit c...
[ "mantasruigys101@gmail.com" ]
mantasruigys101@gmail.com
d205eeabe1230372e52454c55429cccf3659b362
614cad3588af9c0e51e0bb98963075e3195e92f5
/utils/completeness.py
bd6b0845fa36983abbad225f1ed473385db12e64
[]
no_license
dragonlong/haoi-pose
2810dae7f9afd0a26b3d0a5962fd9ae8a5abac58
43388efd911feecde588b27a753de353b8e28265
refs/heads/master
2023-07-01T14:18:29.029484
2021-08-10T10:57:42
2021-08-10T10:57:42
294,602,794
0
0
null
null
null
null
UTF-8
Python
false
false
3,738
py
import argparse import os import torch import numpy as np from scipy.spatial import cKDTree as KDTree import trimesh import glob from joblib import Parallel, delayed def directed_hausdorff(point_cloud1:torch.Tensor, point_cloud2:torch.Tensor, reduce_mean=True): """ :param point_cloud1: (B, 3, N) :param p...
[ "lxiaol9@vt.edu" ]
lxiaol9@vt.edu
d1e535da617f09a037448c3df23b3b182bcedd53
c0578b14ebaef889ffc75551ebcc7e5c80b6069e
/src/811_subdomain_visit_count.py
87eb66cd63973d2c0ce2d010c3afb1f86145ce1f
[]
no_license
BrianQcq/LeetCode
88ee122aa2b358c61d6980c159008e8ccac6cc8c
127ca7d82fa15214da8d5e9fbc461831cdb6b60b
refs/heads/master
2020-06-10T04:20:33.798787
2019-11-12T07:56:58
2019-11-12T07:56:58
193,580,067
1
0
null
null
null
null
UTF-8
Python
false
false
326
py
class Solution(object): def subdomainVisit(self, cpdomains): d = {} for item in cpdomains: n, domains = item.split() n, domains = int(n), domains.split('.') for i in range(len(domains)): temp = '.'.join(domains[i:]) d[temp] = d[temp] + n if temp in d else n return [str(d[i]) + ' ' + i for i ...
[ "qiuchuanqin@gmail.com" ]
qiuchuanqin@gmail.com
40b606a75f2a3ea6ee7f290d627b798e157e9894
2b31366107bd56244564c196c852f39ff024e278
/example.py
095c2818d3c45494ec74d905b086705256aa66a9
[ "BSD-3-Clause" ]
permissive
toastdriven/pubsubittyhub
444a7b0d5b26abf0a1cd820d3d57a1d92346a4c4
8d3a0b135b0a284f52234c06cfc586cc5e6f5c6d
refs/heads/master
2020-05-05T01:39:51.073435
2009-12-17T09:22:31
2009-12-17T09:22:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
842
py
import urllib2 import sys from urllib import urlencode try: import json except ImportError: import simplejson as json print 'Testing index...' content = urllib2.urlopen('http://localhost:8080/').read() print 'Creating a channel...' content = urllib2.urlopen('http://localhost:8080/channels', data={}).read() pr...
[ "daniel@toastdriven.com" ]
daniel@toastdriven.com
ee66c9dd4a0d630c6ecb661c22a3acf967691125
58ce8a45d03ec24b89e7502f149bef42d77ad777
/tests/test_models_artist.py
96a9afac325c6d5076dbf3cec399a9ae628b3fc7
[ "MIT" ]
permissive
AndyTempel/spotify.py
db9ba8523d6dbd9bf233f963ea04fac4bf555d5e
d5a18ee59ddffd9026b36f510b45b4cc391ac557
refs/heads/master
2022-12-12T14:46:41.780249
2020-08-28T23:35:09
2020-08-28T23:35:09
291,162,036
0
0
MIT
2020-08-28T23:02:23
2020-08-28T23:02:22
null
UTF-8
Python
false
false
618
py
import asyncio import unittest from types import ModuleType from common import * class TestArtist(unittest.TestCase): @async_with_client(SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET) async def test_artist(self, *, client): for artist_uri in TEST_ARTISTS: artist = await client.get_artist(artis...
[ "m3nta1@yahoo.com" ]
m3nta1@yahoo.com
b2763a3a3c9318b24e36592eed8791533faf27d4
4786216d2a8e9221cc3624366152f47ae513e5c7
/北京房屋交易/00.py
3738ce39b9fbe67fc5d1c47c31d9d290e2cc619a
[]
no_license
injuredangel/-
b6a2502ee026320b96947d41c223edebe3ec65cc
7988c6aa5e825504ff59b006c37d4383b3bb1da8
refs/heads/master
2020-05-25T02:21:15.654253
2019-05-20T06:27:42
2019-05-20T06:27:42
187,575,531
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
import requests from bs4 import BeautifulSoup url = 'http://www.bjjs.gov.cn/bjjs/fwgl/fdcjy/fwjy/index.shtml' headers = { 'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Encoding':'gzip, deflate', 'Accept-Language':'zh-CN,z...
[ "you@example.com" ]
you@example.com
5e15489107b3c51fb2cfad091143fbf0e6ceb0fc
9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa
/cf-540-a.py
44dd74a1dc85a6de815348507461f004dcdbb3da
[]
no_license
luctivud/Coding-Trash
42e880624f39a826bcaab9b6194add2c9b3d71fc
35422253f6169cc98e099bf83c650b1fb3acdb75
refs/heads/master
2022-12-12T00:20:49.630749
2020-09-12T17:38:30
2020-09-12T17:38:30
241,000,584
0
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
# JAI SHREE RAM import math; from collections import * import sys; from functools import reduce # sys.setrecursionlimit(10**6) def get_ints(): return map(int, input().strip().split()) def get_list(): return list(get_ints()) def get_string(): return list(input().strip().split()) def printxsp(*...
[ "luctivud@gmail.com" ]
luctivud@gmail.com
36d766acb64d266f4988a64145c619c6d89a0910
17331ee8285a1f19e4ca1abd89dac64da381959d
/03-accessing-web-data/reading-webpages.py
537e39244e68328b3514cbd9f43c78a7595785c4
[]
no_license
chaochaocodes/PY4E
3681367ce548fe9a423adb895fe76efda60521bb
09930f6187c3388b61903680bcd4a1533b0b4f82
refs/heads/main
2023-03-28T11:29:09.209120
2021-04-01T02:34:58
2021-04-01T02:34:58
333,506,525
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
''' Reading Webpages like Files using urllib ''' import urllib.request, urllib.parse, urllib.error # 1. Read like a File fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt') for line in fhand: print(line.decode().strip()) # reads the HTML file! # returns header + body, but header not returne...
[ "57464564+chaochaocodes@users.noreply.github.com" ]
57464564+chaochaocodes@users.noreply.github.com
a4b161d665baf8d27aecbdb191e60e06308b2f62
8c7fba506eb022e627537e6017b97508ca453b65
/models/dbsetup.py
7b7c8e89cda78eb02cff7f6496740a112f1c6dcd
[ "MIT" ]
permissive
laminko/wBlog
4a6851ba159c5cf30461fd08b428647c14622c14
c2bdecede8bf589eabb57bd080e90d995261aafd
refs/heads/master
2020-04-06T07:05:22.722787
2016-09-15T09:01:34
2016-09-15T09:01:34
65,677,117
0
0
null
null
null
null
UTF-8
Python
false
false
6,885
py
from datetime import datetime SYM_PAGE_BREAKER = " {LMK:PAGE-BREAK} " SINGLE_SPACE = " " # Tables db.define_table('post', Field('title', 'string'), Field('body', 'text'), Field('body_pagebreak', compute=lambda r: ( r['bod...
[ "=" ]
=
f7881b2609d4092aa8e483ad9b8bc0d585901f87
67d8173a716da10a7350213d98938aae9f2115ce
/ProgrammingCourses/CS61A/project/maps/data/__init__.py
41d0dcae71d4be63e17e6aabe7e0795053028508
[]
no_license
jxie0755/Learning_Python
94490d41bdf93acf8396f843328e38b6da310b0f
143422321cbc3715ca08f6c3af8f960a55887ced
refs/heads/master
2021-11-02T22:47:35.790239
2021-09-26T04:26:23
2021-09-26T04:26:23
101,445,132
0
2
null
2019-02-19T15:48:44
2017-08-25T22:00:16
Python
UTF-8
Python
false
false
3,054
py
import collections import os from abstractions import * import data.jsonl DATA_DIRECTORY = "data" USER_DIRECTORY = "users" def load_data(user_dataset, review_dataset, restaurant_dataset): with open(os.path.join(DATA_DIRECTORY, user_dataset)) as f: user_data = jsonl.load(f) with open(os.path.join(DATA...
[ "30805062+jxie0755@users.noreply.github.com" ]
30805062+jxie0755@users.noreply.github.com
d3c366292f09c31949649f09f59f18df63e790be
1cad3fa574350c9be29282f518f4927efb26e18f
/http_api/api_intro.py
0c1edd60bc8199386fc7a5c103448f64018fc4dc
[]
no_license
EvgeniyBudaev/python_learn
c72fdc2c5a84dae03bfd6e5afc5453b795ada17f
1a5385e3412832dd9017536dad1140138143600e
refs/heads/main
2023-05-27T04:41:50.754525
2021-05-27T02:11:18
2021-05-27T02:11:18
337,162,792
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
import requests # url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2014-01-01&endtime=2014-01-02' # response = requests.get(url, headers={'Accept':'application/json'}) url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?' response = requests.get(url, headers={'Accept':'application/...
[ "49036840+EvgeniyBudaev@users.noreply.github.com" ]
49036840+EvgeniyBudaev@users.noreply.github.com
9301f373603392c31e4ef37ab57d6eace6eb163f
cf470f7d3fd0ea481970bcdedcd869258f692d05
/aces_1.2/python/bin/create_aces_config
198eabe513ced3b60c560b6793299b56d29d36e7
[ "LicenseRef-scancode-unknown-license-reference", "AMPAS" ]
permissive
colour-science/OpenColorIO-Configs
3acef083127b698eb3252b45d724dfd4f5346c1a
b0a3ae218c24ed452e01ac1282d0b40e31dede6e
refs/heads/master
2023-09-03T11:51:31.862794
2022-04-14T20:17:13
2022-04-14T20:17:13
54,505,320
619
440
NOASSERTION
2022-04-14T20:17:14
2016-03-22T20:06:48
Roff
UTF-8
Python
false
false
802
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: AMPAS # Copyright Academy of Motion Picture Arts and Sciences """ Creates the *ACES* configuration. """ from __future__ import division import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from aces_ocio.generate...
[ "thomas.mansencal@gmail.com" ]
thomas.mansencal@gmail.com
e58b36b05c142642d3001d70c865a8a112804449
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/projecteuler/ProjectEuler-master(2)/ProjectEuler-master/156.py
aafe0dea8075d2124fd3dc79cbb842ba780bd38f
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
2,015
py
import sys class Problem(): def __init__(self): self.found = None def solve(self): count = 0 for digit in range(1, 10): solution_sum = self.s(digit) print(digit, solution_sum) count += solution_sum print(count) def s(self, digit...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
b34734bccd0addbe7a3f95e5866fe250ba44c343
e6ebd1f9e3968f6ed613e9f35e46716115e6e9c3
/chapter4/demo2.py
9d025bcb4070abbf880ddf67f5d49444fcbfdbdb
[]
no_license
huwanping001/Python
897046d3d6d1b420befeefcaa2b9544efa7d1881
3c76278f7a9b216b28b8880e0108af3c550b9372
refs/heads/main
2023-08-21T00:45:17.991833
2021-10-18T13:47:52
2021-10-18T13:47:52
409,586,414
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
# 学校:四川轻化工大学 # 学院:自信学院 # 学生:胡万平 # 开发时间:2021/9/18 9:54 #测试对象的bool值 print(bool(False)) #False print(bool(0)) #False print(bool(0.0)) #False print(bool(None)) #False print(bool('')) #False print(bool("")) #False print(bool(list())) #空列表 False print(bool([])) #空列表 False print(bool(())) #空元组 False prin...
[ "noreply@github.com" ]
huwanping001.noreply@github.com
3df69c8078977d9b51a98b936360a4cf6bcf6b89
1260ce7869ce32d6b434afbf273273b7b1ebea2d
/lorentz_equivariant_gnn/architectures/EquivariantGNN/egnn_base.py
ddcd258aec9bfcb6cb6915b699a963195d25437c
[]
no_license
savvy379/Lorentz-Equivariant-GNN
b3b30e964cfa9af39adcb4e8b73bc78b4f8b7b5e
3d1c74081bdd43387a7c530bce73580db379d22d
refs/heads/master
2023-08-01T06:43:13.229014
2021-09-22T18:35:15
2021-09-22T18:35:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,499
py
import sys, os import logging import pytorch_lightning as pl from pytorch_lightning import LightningModule import torch.nn.functional as F from torch.nn import Linear from torch_geometric.data import DataLoader import torch import numpy as np from sklearn.metrics import roc_auc_score, roc_curve from .utils import loa...
[ "murnanedaniel@hotmail.com" ]
murnanedaniel@hotmail.com
300dc5d3cf9ec6b7d67dca8ceb272fa0ad0e6d80
6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a
/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_py3.py
0f8b6dc1a56b4743ed087bfac58ebfdafeb3318d
[ "MIT" ]
permissive
ashirey-msft/azure-sdk-for-python
d92381d11c48f194ec9f989f5f803db614fb73f2
e04778e13306dad2e8fb044970215bad6296afb6
refs/heads/master
2020-03-23T06:05:39.283442
2018-09-15T00:18:26
2018-09-15T00:18:26
141,188,192
0
1
MIT
2018-07-16T20:02:52
2018-07-16T20:02:52
null
UTF-8
Python
false
false
7,668
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "noreply@github.com" ]
ashirey-msft.noreply@github.com
d05ce141ecc9bf14ab3e7757f48348f9ccdd9d61
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/171/61531/submittedfiles/testes.py
0394990bdadaa06eebff3565e0697e79fea81b66
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
# -*- coding: utf-8 -*- import math #COMECE AQUI ABAIXO def media(a): soma=0 for i in range(0,len(a),1): soma=soma+a[i] media=soma/(len(a)) return(media) n=int(input('digite numero de elementos da lista:')) a=[] for i in range(0,n,1): numero=float(input('digite numero á ser inserido na lista...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c61d403099fed6fbcb69b33fa047ee2d16e137e1
5eb52c07e5b1bd00af77306f927f382b684cd6ff
/indy_common/generates_request.py
b70eefee0dfbe79d777c07d732f89f1458602edb
[ "Apache-2.0" ]
permissive
hyperledger/indy-node
bce39486988f5114581cff4f6d14fc1b7684143c
e6bb87d4c605aff9914491d062248b6ec857334c
refs/heads/main
2023-09-03T15:33:08.187153
2023-05-08T22:48:21
2023-05-08T22:48:21
77,021,566
691
783
Apache-2.0
2023-05-09T15:42:43
2016-12-21T05:45:04
Python
UTF-8
Python
false
false
328
py
from abc import abstractmethod class GeneratesRequest: @abstractmethod def _op(self): pass @abstractmethod def ledgerRequest(self): """ Generates a Request object to be submitted to the ledger. :return: a Request to be submitted, or None if it shouldn't be written ...
[ "alexander.sherbakov@dsr-company.com" ]
alexander.sherbakov@dsr-company.com
7c30c30dcc7cc854a841fbb8a6e3e7b45eb5bcf8
22aa900e70c8cc6005ecadbb2ae710526af8d3ba
/course/forms.py
8da7a5b70959e28879bb8df24e4db2ededff90aa
[]
no_license
skafis/career_choice
f79ac3df223122a19a7718d9247ca4e2e72ee22e
84d3ec752ba6da60e7130f132bd329ff72d66cae
refs/heads/master
2021-01-13T02:50:44.580867
2016-12-22T16:32:40
2016-12-22T16:32:40
77,144,113
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from django import forms from .models import Courses class add_coursesForm(forms.ModelForm): class Meta: model = Courses fields = [ 'name', 'time', 'cost' ]
[ "franciskipchumba5@gmail.com" ]
franciskipchumba5@gmail.com
1999644c558f0f3bf2fc69e88aea396932927a64
f3ad39ebf9654c99edb33c0fee843a53f9b6c31a
/backend/wesmusicmedia_20833/settings.py
66d308873bed16394e0b2159023b8a1dcdfc1907
[]
no_license
crowdbotics-apps/wesmusicmedia-20833
306814d32b3acd43c446cd004351c9fb93009afa
474162c36a486c6028cfec8214d93d83fda4e235
refs/heads/master
2022-12-25T19:45:48.328522
2020-09-29T17:51:09
2020-09-29T17:51:09
299,693,724
0
0
null
null
null
null
UTF-8
Python
false
false
5,900
py
""" Django settings for wesmusicmedia_20833 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
454994b05910daee4f982348fb1beb8bab821645
cf5bfac1e203ae0da1802cf539f32250b57e7224
/4.exceptions/exception101.py
dafb2cf845bdff6ba846e02634c5ec0ab88084d4
[]
no_license
jnepal/OReilly-Python-Beyond-the-Basics-OOP
fba2229ffd31b87e2ceab48c6c3f7f445ab47493
05050a7ecd0db5c9f18cc6e5ae49a07ddf6054cf
refs/heads/master
2021-05-01T07:16:26.957247
2018-02-11T18:16:36
2018-02-11T18:16:36
121,152,291
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
''' Handling Exceptions ''' import sys mydict = {'a': 1, 'b': 2, 'c': 3, 'd': 4} key = input('please input a key: ') try: print("The value for {0} is {1}".format(key, mydict[key])) except KeyError as err: print('the key ' + key + ' does not exists') print(err) # print(sys.exc_info()[0]) ''' ...
[ "johndoe@example.com" ]
johndoe@example.com
58be87c385080aa2d8610c062e6534b8eb59cef9
06adea92d1e66d653d0884e8469b7352f5de4f04
/matplotlibMine/change/ACF_PACFPlot.py
525672a6ccb4aba2cba6966636059490d812989e
[]
no_license
Gedanke/FigureDemo
a3cf1f0998fb0dc7acce9b90ff55453372759575
e37164521d9c4e8c5a05592749f1779bed2b0903
refs/heads/master
2023-04-19T08:47:35.417971
2021-05-05T05:09:48
2021-05-05T05:09:48
361,770,137
1
0
null
null
null
null
UTF-8
Python
false
false
842
py
# -*- coding:utf-8 -*- import pandas import matplotlib.pyplot as plt from statsmodels.graphics.tsaplots import plot_acf, plot_pacf # Import Data df = pandas.read_csv('../dataset/AirPassengers.csv') # Draw Plot fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 6), dpi=80) plot_acf(df.value.tolist(), ax=ax1, lags=50) ...
[ "13767927306@163.com" ]
13767927306@163.com
47a973711a8b923b936e2065c5d59905c74acf35
810412fc189697eaad5731cd66cc291f1d82c3b5
/cap2/extensions/experimental/strains/merge_snp_graph.py
17ef682831a202a1ef92a7392795e9a09cedac61
[ "MIT" ]
permissive
MetaSUB/CAP2
c511655ed15a7e886d5216a358fc6e5904b25f24
5ccdc0af310dd4ee382a81c7330e04927d9ef5fe
refs/heads/master
2022-12-03T15:50:59.694245
2021-12-29T17:03:50
2021-12-29T17:03:50
213,112,026
12
7
MIT
2022-11-22T09:28:20
2019-10-06T05:09:18
Python
UTF-8
Python
false
false
1,890
py
from .tasks import StrainCapGroupTask from ....pipeline.config import PipelineConfig from .strainotyping import ( VERSION, merge_filter_graphs_from_filepaths, write_graph_to_filepath, graph_node_table, ) from .make_snp_graph import MakeSNPGraph class MergeSNPGraph(StrainCapGroupTask): MIN_WEIGH...
[ "dcdanko@gmail.com" ]
dcdanko@gmail.com
235f8543683b0f8e93ab3658fce247f2507db2ac
2a3743ced45bd79826dcdc55f304da049f627f1b
/venv/lib/python3.7/site-packages/deribit_api.py
29835d45975a42ff171d83291465e8b8813c9460
[ "MIT" ]
permissive
Dimasik007/Deribit_funding_rate_indicator
12cc8cd7c0be564d6e34d9eae91940c62492ae2a
3251602ae5249069489834f9afb57b11ff37750e
refs/heads/master
2023-05-26T10:14:20.395939
2019-08-03T11:35:51
2019-08-03T11:35:51
198,705,946
5
3
MIT
2023-05-22T22:29:24
2019-07-24T20:32:19
Python
UTF-8
Python
false
false
5,534
py
# -*- coding: utf-8 -*- import time, hashlib, requests, base64, sys from collections import OrderedDict class RestClient(object): def __init__(self, key=None, secret=None, url=None): self.key = key self.secret = secret self.session = requests.Session() if url: self.url...
[ "dmitriy00vn@gmail.com" ]
dmitriy00vn@gmail.com
00e9f5fe14e266706112b3eda5db3a81edd109a1
4fdd98d5e82385393d4eb2f6526cddb15563c477
/src/morphforge/core/quantities/__init__.py
8ed61d5caaf565c48693fc05504751f56db48a69
[ "BSD-2-Clause" ]
permissive
bmerrison/morphforge
f8541d4471ce13519986c42d4ebb3714a238e390
6d06845493bf01aae94a706bfde5d4eb9c733659
refs/heads/master
2021-01-18T07:49:47.645031
2012-09-26T20:54:13
2012-09-26T20:54:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,047
py
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
[ "mikehulluk@googlemail.com" ]
mikehulluk@googlemail.com
95b4ba670fad9aa6e2ada7300f4aa62646de42ef
897d82d4953ed7b609746a0f252f3f3440b650cb
/day07/exercise_personal/08_exercise.py
36811015b50dfbbced51178172c00201a0a3c549
[]
no_license
haiou90/aid_python_core
dd704e528a326028290a2c18f215b1fd399981bc
bd4c7a20950cf7e22e8e05bbc42cb3b3fdbe82a1
refs/heads/master
2022-11-26T19:13:36.721238
2020-08-07T15:05:17
2020-08-07T15:05:17
285,857,695
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
list_poker = [] for r in range(1,7): for c in range(1,7): for v in range(1,7): list_poker.append((r,c,v)) print(list_poker)
[ "caoho@outlook.com" ]
caoho@outlook.com
8a752594fbaede8a55376c2bb862d7962842e631
fa67314df981eb8c72790819ca29f45c37c52c69
/Assignment-1_CS16BTECH11036/Question4/Dtree.py
a37b07fb18afb5767de65c0ba9122cf331dccafb
[]
no_license
omsitapara23/AML
5ce142751354cee72a8007ba952c55ae8a90d193
7d320ef6ce342590dfbce9e70d9d9fff7561939b
refs/heads/master
2020-04-20T01:45:41.095561
2019-03-12T17:13:57
2019-03-12T17:13:57
168,553,812
0
0
null
null
null
null
UTF-8
Python
false
false
2,800
py
import numpy as np import csv import json from sklearn.neighbors import KNeighborsClassifier from sklearn import preprocessing from collections import Counter from sklearn.naive_bayes import GaussianNB from sklearn.naive_bayes import MultinomialNB from sklearn.naive_bayes import BernoulliNB from sklearn import tree ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
828e53f2e62d6cc45ed309a2d29a4778afa6d5a6
057bdbd048d8b99064eb06af45d9e40beff6fe80
/examples/app.py
5726ced00da4c2d832a28e7d5bce9fbca39c9927
[ "MIT" ]
permissive
miguelgrinberg/APIFairy
5a058f9763c381b765a4139366e35e579b4a1723
ed2c9b99e8ed8b7cd61a1b95f7f295bd2a902590
refs/heads/main
2023-07-24T14:22:21.282560
2023-07-15T23:01:50
2023-07-15T23:01:50
299,060,489
303
28
MIT
2023-01-05T15:49:05
2020-09-27T15:24:33
Python
UTF-8
Python
false
false
2,202
py
"""Welcome to the APIFairy Simple Example project! ## Overview This is a short and simple example that demonstrates many of the features of APIFairy. """ from typing import Annotated from uuid import uuid4 from flask import Flask, abort from flask_marshmallow import Marshmallow from apifairy import APIFairy, body, re...
[ "miguel.grinberg@gmail.com" ]
miguel.grinberg@gmail.com
91c04102d7309c5dc96caf9dbaefa29ae8dc3d40
ecb113be53f2fe1768e85a1004d571c74d87ae8d
/tests/fmlaas/model/model.py
0621cd46327918a951006e15f1e784933fe91ece
[]
no_license
Internet-SmokeAlarm/core
39351e4d5bddf19bd59faf51bbc225c0e0521905
87b66a10042ec41916c490bb20cb4117f3caf1ba
refs/heads/master
2023-02-17T18:40:12.822530
2020-07-05T20:28:38
2020-07-05T20:28:38
216,093,027
0
0
null
null
null
null
UTF-8
Python
false
false
1,953
py
import unittest from dependencies.python.fmlaas.s3_storage import JobAggregateModelPointer from dependencies.python.fmlaas.model import Model class ModelTestCase(unittest.TestCase): def test_to_json_pass(self): model = Model("1234", str(JobAggregateModelPointer("4456", "5567", "1234")), "123552") ...
[ "valetolpegin@gmail.com" ]
valetolpegin@gmail.com
33e0f6e0f58713cd6b9e0bf434b0190abffc395a
a47e4480d1584c5a2bb4c31ac512c864d0c2c240
/core/settings.py
8e44faed4463d4a577291f1a56a01053b9a77cef
[ "MIT" ]
permissive
shaymk1/ke-nako-shop
014bd960e2048d4e2b5cc77c0b2d99f2058208d4
5c6f3dfb6b1e89efe111c1c6daa21434c7843ddc
refs/heads/main
2023-08-02T08:19:31.702068
2021-09-20T19:21:53
2021-09-20T19:21:53
406,715,370
0
0
null
null
null
null
UTF-8
Python
false
false
3,243
py
from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key...
[ "mkekae@gmail.com" ]
mkekae@gmail.com
78b752d117f11c2a5a5d056b47227a18ba096e0b
185b7529d9d439a0d554db2fc7b60a1531a5a836
/scrappy_settings/asgi.py
2d14dbc27187113e3031e51b3b38ab18a5531eeb
[]
no_license
cavidanhasanli/Scrappy_price
8901baeaa40beb7102042d687d405258ae20d7fe
b5cc50010f727ba95686d89cac29f76533d860c2
refs/heads/main
2023-03-11T00:14:56.576016
2021-02-16T09:58:00
2021-02-16T09:58:00
338,854,431
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" ASGI config for scrappy_settings 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('DJA...
[ "cavidan.hasanli@mail.ru" ]
cavidan.hasanli@mail.ru
6b7df363e07c32497d7b6a3ae77012127a2fb79a
789f108a849be99052f13cdec68953266458e646
/nfe_mde/nfe_schedule.py
c0e580b66329ba0eeea7f4afc2737145ed796e5a
[]
no_license
rick-romero/odoo-brazil-eletronic-documents
6ebe1b30deaa854861aa632ee62b022b8eeb2d8a
2a1f144612ef23b77b57b9edcf2089a2b2b3077a
refs/heads/8.0
2021-01-14T14:07:27.728313
2016-07-12T22:11:29
2016-07-12T22:11:29
59,238,349
0
0
null
2016-05-19T19:58:39
2016-05-19T19:58:39
null
UTF-8
Python
false
false
7,908
py
# coding=utf-8 ############################################################################### # # # Copyright (C) 2015 Danimar Ribeiro www.trustcode.com.br # # ...
[ "danimaribeiro@gmail.com" ]
danimaribeiro@gmail.com
94e544a15e0e29b8f771385dfbdcefcb09413fcd
30467bd47c29412687a384d824655daa7400cef4
/examples/dockerbuild.py
d7f0e1ae2176bdb6508f530e8a2f4f6e916f5b3c
[]
no_license
dpedu/shipper
556409843c6da888338d2a791d4f06b17c709a52
e5544416c2b0ee818285b9a13761f1c351d7676f
refs/heads/master
2020-05-17T17:39:45.645549
2019-02-03T00:59:34
2019-02-03T00:59:34
183,860,592
0
0
null
null
null
null
UTF-8
Python
false
false
1,308
py
from shipper.lib import ShipperJob, SshConnection, GiteaCheckoutTask, LambdaTask, \ DockerBuildTask, DockerTagTask, DockerPushTask # This job accepts gitea webooks and builds docker images. If the "imagename" parameter is passed, it will be used to # name the image. Otherwise, a repo named "docker-image-name" wou...
[ "dave@davepedu.com" ]
dave@davepedu.com
3bd68f15f1ba900bd732975bf7fe77e8c8d0874c
c4cfce852c59bdd65d5ab5e77021e42cb7b02ff8
/eng_to_kana_test/test_eng_to_kana.py
c7f683673655332c566e7794109d70e9fe281858
[ "MIT" ]
permissive
yokolet/transcript
5749be490a7f53e907b2143696afaa592647dc59
4a83cc70d868bb243846ebee8c322c63c2092141
refs/heads/master
2020-05-28T09:47:27.771042
2019-06-15T21:46:53
2019-06-15T21:46:59
188,961,209
3
0
null
null
null
null
UTF-8
Python
false
false
683
py
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import unittest from eng_to_kana.eng_to_kana import EngToKana class TestEngToKana(unittest.TestCase): def setUp(self): self.list_func = EngToKana().fromWordList self.file_func = EngToKana().fromFile def test_1(...
[ "yokolet@gmail.com" ]
yokolet@gmail.com
4094dc115614d752fdc61bd95ecac6cfb7797367
7b3711d4c6d7284255ba0270d49d120f984bf7c6
/problems/2361_minimum_cost_using_the_train_line.py
546dcff817a1d4ba91ccab3ae95614fb4d2f1ff7
[]
no_license
loganyu/leetcode
2d336f30feb55379aaf8bf0273d00e11414e31df
77c206305dd5cde0a249365ce7591a644effabfc
refs/heads/master
2023-08-18T09:43:10.124687
2023-08-18T00:44:51
2023-08-18T00:44:51
177,875,222
0
0
null
null
null
null
UTF-8
Python
false
false
2,677
py
''' A train line going through a city has two routes, the regular route and the express route. Both routes go through the same n + 1 stops labeled from 0 to n. Initially, you start on the regular route at stop 0. You are given two 1-indexed integer arrays regular and express, both of length n. regular[i] describes the...
[ "yu.logan@gmail.com" ]
yu.logan@gmail.com
cc15539f09c655e2a85fd8d417d67c0477c45e87
a323fc11db97690c4ea50d92766d9d5db0418aac
/article/migrations/0020_auto_20200719_1016.py
ae9b1b99f0de83746e98a9195dcf7750dc6193a6
[]
no_license
sparshjaincs/articleplus
ad909f937ebf856b6da87bd623af0776f8faafc3
0fa34a5384d8cfc52181be42c130aadd03ad8ef2
refs/heads/master
2023-08-10T23:21:44.845993
2021-09-30T22:29:13
2021-09-30T22:29:13
279,252,336
0
0
null
null
null
null
UTF-8
Python
false
false
1,419
py
# Generated by Django 2.2.6 on 2020-07-19 04:46 import datetime from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('article', '0019_auto_20200719_0951'), ...
[ "sparshjaincs@gmail.com" ]
sparshjaincs@gmail.com
2e0fad46c16958cbd3582723916a0ac1dda5a23e
0bd14d7590db43af015433edc95c101b325f2b45
/simple_sso/sso_server/admin.py
e21b92dc68b986e617291c935f1c31c63bf08af1
[ "BSD-3-Clause" ]
permissive
chrisglass/django-simple-sso
21f390535c012af4bba9a1b78a23b298592611df
b63d37ac64450ff5a506e6b1c2e34e42109b8cd8
refs/heads/master
2020-12-25T03:22:00.352693
2011-08-10T15:40:09
2011-08-10T15:40:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
# -*- coding: utf-8 -*- from django.contrib import admin from simple_sso.sso_server.models import Client admin.site.register(Client)
[ "jonas.obrist@divio.ch" ]
jonas.obrist@divio.ch
0b7ff06c8aa9f6a941ff4fe8a749d7d0a028286b
4da0c8906c9cd671e3a4bee3a6ee801a353e3d9a
/Water/watres/migrations/0012_targetusewo_checkin.py
82f4465901163fac353bd3219380d8d3cb10db6e
[]
no_license
avpakh/GVK
2a5a699caa8a986a3fd0dadbe2160fc9da5bf193
ac8b8d8ad5cd5ef8485e98cd532a29cd420e0cae
refs/heads/master
2020-06-13T10:35:36.663668
2017-01-06T09:01:42
2017-01-06T09:01:42
75,392,559
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-02 14:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('watres', '0011_auto_20160816_1523'), ] operations = [ migrations.AddField( ...
[ "aliaksandr.pakhomau@gmail.com" ]
aliaksandr.pakhomau@gmail.com
2445f62695bc503243d90b47fd380b81e2c25e92
3528abad46b15133b2108c237f926a1ab252cbd5
/Core/ableton/v2/control_surface/elements/optional.py
86a72e77d342aa7dee2a59777b27af577769514a
[]
no_license
scottmudge/MPK261_Ableton
20f08234f4eab5ba44fde6e5e745752deb968df2
c2e316b8347367bd157276f143b9f1a9bc2fe92c
refs/heads/master
2020-03-20T10:56:32.421561
2018-06-14T19:12:47
2018-06-14T19:12:47
137,389,086
1
0
null
null
null
null
UTF-8
Python
false
false
1,241
py
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/ableton/v2/control_surface/elements/optional.py # Compiled at: 2018-04-23 20:27:04 from __future__ import absolute_import, print_function, unicode_literals from ...base import listens from .combo import T...
[ "mail@scottmudge.com" ]
mail@scottmudge.com
140475678049842dcc7a9513455b15a220182ac9
fe8d49331e73fe89be9195bf748159830d2c3622
/zerver/views/drafts.py
47b5c6fa242f0d66e718fb84c1ffb31a7fce178b
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
lizzzp1/zulip
13e1a4428b5ed6d9cdc06cb291b126ee127a03e8
4e8067aadc7d5a4b2644e383898c5c731740ffd5
refs/heads/master
2022-12-13T23:44:52.351757
2020-09-12T19:04:24
2020-09-12T19:04:24
295,025,435
1
0
Apache-2.0
2020-09-12T21:00:35
2020-09-12T21:00:34
null
UTF-8
Python
false
false
5,766
py
import time from typing import Any, Dict, List, Set from django.core.exceptions import ValidationError from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ from zerver.lib.actions import recipient_for_user_profiles from zerver.lib.addressee import get_user_profiles_by_i...
[ "tabbott@zulip.com" ]
tabbott@zulip.com
a83a11d7de133095f348d5920113cb836562415e
8e95e79840005f6c34dfb978e8fe6e0ec4f7f643
/7_Image Processing in Python_/29_Edges.py
f4953bd068a7dbf38dcc7620a093d0b9b0858f0d
[]
no_license
Naysla/Machine_Learning
a0593cac41ef1561f14bec55780570b82fc37720
e75d5cd2894ccb005228ab3da87dde9025385a08
refs/heads/master
2023-02-01T17:19:32.413609
2020-12-22T20:36:45
2020-12-22T20:36:45
323,708,628
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
#Edges #In this exercise you will identify the shapes in a grapefruit image by detecting the edges, using the Canny algorithm. #Image preloaded as grapefruit. #The color module has already been preloaded for you. # Import the canny edge detector from skimage.feature import canny # Convert image to grayscale grapefru...
[ "60472499+Naysla@users.noreply.github.com" ]
60472499+Naysla@users.noreply.github.com
b1c806080769dbbd96a828a4f775b7cd730fbd53
8eeef7742573a8b671648d94e448d5614272c5d6
/core2web/week2/day7/printNumber.py
33b2619d33b2dfbf88f662253e9577e0f68a5cc6
[]
no_license
damodardikonda/Python-Basics
582d18bc9d003d90b1a1930c68b9b39a85778ea7
fd239722fc6e2a7a02dae3e5798a5f1172f40378
refs/heads/master
2023-01-28T16:22:19.153514
2020-12-11T06:36:49
2020-12-11T06:36:49
270,733,918
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
""" Program 1: Write a program that accepts an integer from user and print it. Input: 11 Output: 11 """ v=(int)(input("enter the number")) print("output",v)
[ "damodar2dikonda@gmail.com" ]
damodar2dikonda@gmail.com
b87d3c6c3e1f49c4c0cfbc2f7d0ecab4016fc060
fb2cc597f319380d228fc15c4008760a82203687
/var/spack/repos/builtin/packages/py-linear-operator/package.py
8133edf5144a33322dd069c679c2a2a0f9be91e9
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-2.1-only" ]
permissive
JayjeetAtGithub/spack
c41b5debcbe139abb2eab626210505b7f930d637
6c2df00443a2cd092446c7d84431ae37e64e4296
refs/heads/develop
2023-03-21T02:35:58.391230
2022-10-08T22:57:45
2022-10-08T22:57:45
205,764,532
0
0
MIT
2019-09-02T02:44:48
2019-09-02T02:44:47
null
UTF-8
Python
false
false
888
py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyLinearOperator(PythonPackage): """A linear operator implementation, primarily de...
[ "noreply@github.com" ]
JayjeetAtGithub.noreply@github.com
6b89749fe8823ae962abbaa45373e75891ef3212
15e6385746ccf4b8eb6c6e302aca236021bb8781
/LintcodePartII/li405_submatrixSum.py
443777a2c60f7562a7b839a401d41945fa35145d
[]
no_license
akb46mayu/Data-Structures-and-Algorithms
11c4bbddc9b4d286e1aeaa9481eb6a620cd54746
de98494e14fff3e2a468da681c48d60b4d1445a1
refs/heads/master
2021-01-12T09:51:32.618362
2018-05-16T16:37:18
2018-05-16T16:37:18
76,279,268
3
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
""" Given an integer matrix, find a submatrix where the sum of numbers is zero. Your code should return the coordinate of the left-up and right-down number. Have you met this question in a real interview? Yes Example Given matrix [ [1 ,5 ,7], [3 ,7 ,-8], [4 ,-8 ,9], ] return [(1,1), (2,2)] """ class Solution...
[ "noreply@github.com" ]
akb46mayu.noreply@github.com
2ae16a9e9e78108fc155c5ad03fae33bc317ad74
d63222abe326a3c8debd59bb8d24cb7eab3de09e
/leetcode/mock-interviews/reorganize_string/solve2.py
457e7f2208383c86f7b71461edd8321eeb4e2c1e
[]
no_license
tariqrahiman/pyComPro
91f47e93eb0a077d489659fcf0a75d5c1a65fc17
86ec13f47506a2495ab6b6bbb58d4e8b2a21538b
refs/heads/master
2022-02-10T04:15:40.194828
2019-06-16T10:22:38
2019-06-16T10:22:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
948
py
class Solution(object): def reorganizeString(self, S): count_letter = [[0, i] for i in xrange(25)] for char in S: count_letter[ord(char) - 97][0] += 1 count_letter.sort(reverse=True) count_letter = [k for k in count_letter if k[0] > 0] res = [""] def decrease(index): ...
[ "alexsolbiati@hotmail.it" ]
alexsolbiati@hotmail.it
185c7b7f95c8487e2f85422f38c93095e8bd3438
3f36a8e71ea13a135467ea64367d6e3358333f74
/movie_details.py
b88daf458d68088e861cd4d0c53e98e1ee709f51
[ "MIT" ]
permissive
gorpo/Exemplos-Python
4257873af5a23b79d51cc60e8ea84185b7e299c4
2cc11e0604d83c4f0a46645ceef0b209e467e6e6
refs/heads/master
2023-03-09T00:24:27.404626
2020-08-24T04:49:59
2020-08-24T04:49:59
264,974,378
4
4
MIT
2021-02-26T02:53:36
2020-05-18T15:02:56
Python
UTF-8
Python
false
false
1,600
py
import urllib.request import mechanize from bs4 import BeautifulSoup # Create a Browser browser = mechanize.Browser() # Disable loading robots.txt browser.set_handle_robots(False) browser.addheaders = [('User-agent', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows 98;)')] movie_title = input("En...
[ "noreply@github.com" ]
gorpo.noreply@github.com
8b4b8b5b6d763fd2a7db57022a79bde58116674a
9692a20a1e7a224a72785e4495f31421639b9f3b
/frex/stores/sparql_queryable.py
ca7711df4642f8043fbcf8e36450204ce9c9d5df
[]
no_license
solashirai/FREx
6b0cb040930761a0e269f4591d7dde36e3f636d1
36ad09a0cb0020661ee990c7800bafd110e2ec04
refs/heads/master
2023-08-14T08:49:49.270281
2021-09-29T14:58:23
2021-09-29T14:58:23
291,760,109
0
0
null
2021-09-24T22:41:19
2020-08-31T15:57:47
Python
UTF-8
Python
false
false
526
py
from abc import ABC, abstractmethod from rdflib.query import Result class SparqlQueryable(ABC): """ SparqlQueryable is the base class for stores that can be queried in some way using SPARQL queries. """ @abstractmethod def query(self, *, sparql: str) -> Result: """ Query the sparq...
[ "solashakashirai@gmail.com" ]
solashakashirai@gmail.com
58bcf3d3d7a9e42fa01ca8b29a710f6e81cfde90
b086a1caa4e3457c1faa0889d7a7291e653a0248
/tests/test_decontaminate.py
ed588a42754b1f20fbaafdd1f11bfdc4e4ef65af
[ "MIT" ]
permissive
hover2pi/specialsoss
a29381bbfcf7cc15a82e0aba8e607b99192dc48f
6afde9fbd83bb33afa9e606e681c330b64e64aa2
refs/heads/master
2023-01-12T19:22:03.636104
2022-11-30T18:51:16
2022-11-30T18:51:16
152,112,781
1
1
MIT
2022-12-26T20:46:35
2018-10-08T16:36:32
Jupyter Notebook
UTF-8
Python
false
false
500
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `decontaminate` module.""" import unittest from pkg_resources import resource_filename from specialsoss import decontaminate class TestDecontaminate(unittest.TestCase): """Test functions in decontaminate.py""" def setUp(self): """Test insta...
[ "jfilippazzo@stsci.edu" ]
jfilippazzo@stsci.edu
24b225f065ed151eb22a92e8b8d904ab8f8a5b5d
ad01faab6dd663dc5193eb8383fdc2d24c2df23d
/_flask/_flask/src/models.py
65bcffc85e3d1501298f09252d2b8c292996163d
[]
no_license
jurgeon018/snippets
585db91b8120076b37deaa37393b34f7c61fec66
e0ab24a99791c3b25422a3208f02919cf98ca084
refs/heads/master
2023-05-14T12:31:48.139452
2023-01-23T03:33:41
2023-01-23T03:33:41
222,001,233
0
0
null
2023-05-01T22:16:48
2019-11-15T20:51:27
Python
UTF-8
Python
false
false
2,368
py
from flask_security import UserMixin, RoleMixin from datetime import datetime import re from app import db def slugify(s): pattern = r'[^\w+]' return re.sub(pattern, '-', str(s)) post_tags = db.Table( 'post_tags', db.Column('post_id', db.Integer, db.ForeignKey('post.id')), db.Column('tag_id', d...
[ "jurgeon018@gmail.com" ]
jurgeon018@gmail.com
552ab2bbd2ef44a5026c219a56b2ffd8ce677ca4
c73fc798764f40ea6fa466a573fb01223e367ce3
/recursion/dequeue.py
0cb394faf20083a3b1185caeaf1124bf8907044b
[]
no_license
mohitsh/python_work
b1385f62104aa6b932f5452ca5c2421526345455
223a802dea5cdb73f44a159856c7432983655668
refs/heads/master
2020-04-24T00:34:15.427060
2018-08-21T19:12:07
2018-08-21T19:12:07
37,491,449
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
''' in this deque example I have considered position 0 to be FRONT in other deque exmaples like Palindrome checker last element has been considered as front. Usually first element is considered rear and last one is considered front. I have to manipulate 0 twice to make this code compatible with 0 as rear and last a...
[ "mohitsh114@gmail.com" ]
mohitsh114@gmail.com
8939cb11b44574e3ae4666bb7ed1698550d192c4
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5756407898963968_0/Python/eding/A-small-code.py
e5ebfa779d5c7ca729204629dbea0f829a594e03
[]
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
939
py
import codecs import sys N_ROWS = 4 def main(): file = codecs.open(sys.argv[1], "r", "utf-8-sig") lines = [line.strip() for line in file] T = int(lines[0]) cards1 = [] cards2 = [] index = 1 for trial in xrange(0,T): ans1 = int(lines[index]) ca...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
90bd6692ba1c920aebf545909f10a2d5fe660622
c8036cb365243439b4a3593124eafdfba933a034
/src/loss/normal_6_class.py
445ac4273311e941f342bfc5794d5eeaf8cc2e37
[]
no_license
koike-ya/rsna
3a1150dc878bde6320ae4c1d965675460dd7de0d
c88c45cfa280b47f0fb48cc9df88954f83a551b4
refs/heads/master
2022-03-16T00:36:55.846905
2019-11-02T00:49:15
2019-11-02T00:49:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,715
py
dir_csv = '../../input/' dir_train_img = '../../input/stage_1_train_pngs/' dir_test_img = '../../input/stage_1_test_pngs/' # Parameters n_classes = 6 n_epochs = 5 batch_size = 32 import glob import os from pathlib import Path import cv2 import numpy as np import pandas as pd import pydicom import torch import to...
[ "makeffort134@gmail.com" ]
makeffort134@gmail.com
a10d864424683827df934951ff4cb07416e8d969
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_12_01/aio/operations/_private_link_resources_operations.py
a7c4a66aa9351e0ab6a575929711ac78f42085cb
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
5,000
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
scbedd.noreply@github.com
ab1409aaf95d2bf69bc496ba2c8a4938816631bd
3b7b6648b72910046b6a227db30f71aeee2cba9c
/2020-12-18-neural-style-transfer/deeptools/preprocessing/RandomSingleCropPreprocessor.py
4ddf0ecef9eedb517ec472e48447e933c6d54b45
[]
no_license
ken2190/deep-learning-study
f2abeb1cd302e405a15bbb52188ae44ffb414e2f
f2998be89d0c931176f158ae5f48ca562786e171
refs/heads/main
2023-04-02T05:07:08.504212
2021-04-11T15:11:22
2021-04-11T15:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
from sklearn.feature_extraction.image import extract_patches_2d # this processor randomly crop an image of fixed size. class RandomSingleCropPreprocessor: def __init__(self, width, height): self.width = width self.height = height def preprocess(self, image): return extract_patches_2d...
[ "machingclee@gmail.com" ]
machingclee@gmail.com
f4056f860df1771e62dd5010d3a51ea2059537d3
6dc761a30cf5efa045f1154aaff2acfa139b835a
/LeetCode/Python/majorityElement.py
2c3a07d29edec31ce28f3cebf1b76d1b29269efe
[]
no_license
snail15/AlgorithmPractice
4e58beee3ff76498a389268dd4cc207dcabf778e
9e8885953ad50e966454c45c460e81dbb6e48be0
refs/heads/master
2021-08-17T06:30:02.290260
2021-06-08T01:15:07
2021-06-08T01:15:07
98,246,912
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
# Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. # You may assume that the array is non-empty and the majority element always exist in the array. # Example 1: # Input: [3,2,3] # Output: 3 # Example 2: # Input: [2,2,1,1,1,2,2] # Output: 2 ...
[ "jungs@uchicago.edu" ]
jungs@uchicago.edu
883b131aab7cc6403a4eb04a14315ce599a3fb52
60d6b8501d0be546437b26a6ee1f9fab97ec3897
/platypush/message/event/zigbee/mqtt.py
e3179407f6aa9291e1c47fb4fbf836c0c6dbf740
[ "MIT" ]
permissive
BlackLight/platypush
68284a85b2f9eef303d26b04530f075927b5834a
446bc2f67493d3554c5422242ff91d5b5c76d78a
refs/heads/master
2023-08-31T21:01:53.519960
2023-08-29T22:05:38
2023-08-29T22:05:38
109,421,017
265
25
MIT
2023-09-01T23:15:49
2017-11-03T16:56:24
Python
UTF-8
Python
false
false
5,542
py
from typing import Dict, Any from platypush.message.event import Event class ZigbeeMqttEvent(Event): pass class ZigbeeMqttOnlineEvent(ZigbeeMqttEvent): """ Triggered when a zigbee2mqtt service goes online. """ def __init__(self, host: str, port: int, *args, **kwargs): super().__init__(*...
[ "blacklight86@gmail.com" ]
blacklight86@gmail.com
a472c103c0b1f3c1f8c566e750f7ba8e53639190
65cc6a8877896ef69dd03d7b5eee5bed56e5371f
/example/attpc-daq/web/attpcdaq/daq/templatetags/daq_model_tags.py
600bbc1d51d3e665f9f57b9b0ce19ce3797deda5
[]
no_license
wuhongyi/DjangoNote
34bdb9e82fc379e19b1df0bd7c90e504fa70a40d
81ad949ff895feda8131d8bdf5fa1439f962ae37
refs/heads/master
2020-05-02T17:54:12.270297
2019-05-22T14:37:32
2019-05-22T14:37:32
178,112,720
2
0
null
null
null
null
UTF-8
Python
false
false
762
py
from django import template from ..models import DataSource register = template.Library() def get_datasource_attr_from_choices(attr_name, choices): value = getattr(DataSource, attr_name, None) # Verify that the result is a valid member of the set of choices. # This also ensures that we're not just retur...
[ "wuhongyi@pku.edu.cn" ]
wuhongyi@pku.edu.cn
cc16d1697225baee47a86dda51adb9016bdd330c
3f394cd47a1aaf0ae2f8de5ab9854f52341e017a
/tests/conftest.py
0ec2f5ef473a93e1446046c292552c5de1df0cff
[ "MIT" ]
permissive
devildeveloper/Clay
e3771d97d23ae3ba7d866d8921102d50e95a6562
ca419ee4cfe191724ed68e3507515a5b258bb4bb
refs/heads/master
2021-01-18T02:27:22.094481
2013-11-18T20:24:02
2013-11-18T20:24:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
# -*- coding: utf-8 -*- """ Directory-specific fixtures, hooks, etc. for py.test """ from clay import Clay import pytest from .helpers import TESTS @pytest.fixture() def c(): return Clay(TESTS) @pytest.fixture() def t(c): return c.get_test_client()
[ "juanpablo@lucumalabs.com" ]
juanpablo@lucumalabs.com
42dc6d18884578c84f4ca5272b7590683a423d4d
532549735aab20e7948511b63e0fb77cc5aedacf
/chaussette/backend/_fastgevent.py
c43809bd8d374be7c03b29174b2ce058a6b65653
[ "Apache-2.0" ]
permissive
ericem/chaussette
f71ac35990b2b7aa41610ec4be867321ce3be89f
fe62725ca1d018bb26c024f796447b6c761f00e0
refs/heads/master
2021-01-18T10:52:43.720192
2013-05-02T13:38:23
2013-05-02T13:38:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
import socket from gevent.wsgi import WSGIServer from gevent import monkey from chaussette.util import create_socket class Server(WSGIServer): address_family = socket.AF_INET socket_type = socket.SOCK_STREAM def __init__(self, listener, application=None, backlog=None, spawn='default', ...
[ "tarek@ziade.org" ]
tarek@ziade.org
f7d0ebc5b5c74035f2e5e648525b0bdabb67d31e
ee53b0262007b2f0db0fe15b2ad85f65fafa4e25
/Leetcode/441. Arranging Coins.py
dfa616241b4d3e2f18fe71fc819dff41930a76d6
[]
no_license
xiaohuanlin/Algorithms
bd48caacb08295fc5756acdac609be78e143a760
157cbaeeff74130e5105e58a6b4cdf66403a8a6f
refs/heads/master
2023-08-09T05:18:06.221485
2023-08-08T11:53:15
2023-08-08T11:53:15
131,491,056
1
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
''' You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number of full staircase rows that can be formed. n is a non-negative integer and fits within the range of a 32-bit signed integer. Example 1: n = 5 The coins can for...
[ "derek.xiao@loftk.us" ]
derek.xiao@loftk.us
cfc155b48e7139b1bf1bea71e66f59e91f6f6b50
d7c527d5d59719eed5f8b7e75b3dc069418f4f17
/main/_pythonSnippet1_backup/61/views.py
3e9bacefeb4c0afffa4042075dad295c84f00a02
[]
no_license
Aivree/SnippetMatcher
3e348cea9a61e4342e5ad59a48552002a03bf59a
c8954dfcad8d1f63e6e5e1550bc78df16bc419d1
refs/heads/master
2021-01-21T01:20:59.144157
2015-01-07T04:35:29
2015-01-07T04:35:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,894
py
from django.shortcuts import render_to_response from django.template import Template, Context, RequestContext from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.template.loader import get_template import datetime from django import forms from runner.forms import Doc...
[ "prateek1404@gmail.com" ]
prateek1404@gmail.com
078e7534de86ed7c579a2ba0c616d3db8756b6be
d32a1eff193052dd62ad05f638346c7132796c2e
/python/pyspark/pandas/tests/connect/test_parity_groupby_slow.py
375dc703d956f229358f88f2ca4bde9e8f96075a
[ "CC0-1.0", "MIT", "Python-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "EPL-1.0", "Classpath-exception-2.0", "GCC-exception...
permissive
Kyligence/spark
c266dc19c7c2e2914eea34c9922f97ba17011075
f29502acf2fe96e23525268b0a29a6338b41bce6
refs/heads/master
2023-08-31T08:42:15.254881
2023-04-22T00:30:53
2023-04-22T00:30:53
100,349,194
6
61
Apache-2.0
2023-09-14T06:29:07
2017-08-15T07:04:07
Scala
UTF-8
Python
false
false
2,010
py
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ "gurwls223@apache.org" ]
gurwls223@apache.org
e9222d3599e353156217730a4903521d6e392997
90c6262664d013d47e9a3a9194aa7a366d1cabc4
/tests/storage/cases/test_KT1QHRKLkwaHDV6TyY9H4ZU9ZwGuwZ1TWPfg_babylon.py
69dc0227141ef450501ea7063314cad598bd84b6
[ "MIT" ]
permissive
tqtezos/pytezos
3942fdab7aa7851e9ea81350fa360180229ec082
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
refs/heads/master
2021-07-10T12:24:24.069256
2020-04-04T12:46:24
2020-04-04T12:46:24
227,664,211
1
0
MIT
2020-12-30T16:44:56
2019-12-12T17:47:53
Python
UTF-8
Python
false
false
1,170
py
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1QHRKLkwaHDV6TyY9H4ZU9ZwGuwZ1TWPfg_babylon(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None ...
[ "mz@baking-bad.org" ]
mz@baking-bad.org
fb3c1d8faf3f4c7f4a59af63fb46a030978ecd4e
f167dffa2f767a0419aa82bf434852069a8baeb8
/lib/youtube_dl/extractor/einthusan.py
4e0f8bc819c70730a476ca31cd4320cecdc25b3d
[ "MIT" ]
permissive
firsttris/plugin.video.sendtokodi
d634490b55149adfdcb62c1af1eb77568b8da3f5
1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3
refs/heads/master
2023-08-18T10:10:39.544848
2023-08-15T17:06:44
2023-08-15T17:06:44
84,665,460
111
31
MIT
2022-11-11T08:05:21
2017-03-11T16:53:06
Python
UTF-8
Python
false
false
3,720
py
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..compat import ( compat_b64decode, compat_str, compat_urlparse, ) from ..utils import ( extract_attributes, ExtractorError, get_elements_by_class, urlencode_postdata, ) c...
[ "noreply@github.com" ]
firsttris.noreply@github.com
2d441b942de17b1981ea070088659addc116d4ac
4f3a4c194451eae32f1ff7cf3b0db947e3892365
/142/main.py
7dd2d69286c4280a2dc6408e5232b45fffb6d8a6
[]
no_license
szhongren/leetcode
84dd848edbfd728b344927f4f3c376b89b6a81f4
8cda0518440488992d7e2c70cb8555ec7b34083f
refs/heads/master
2021-12-01T01:34:54.639508
2021-11-30T05:54:45
2021-11-30T05:54:45
83,624,410
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
""" Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked list. Follow up: Can you solve it without using extra space? """ # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x ...
[ "shao.zhongren@gmail.com" ]
shao.zhongren@gmail.com
1b2708b9fd69527e897aec7549fa95a9ed7fafd3
6d11eda98e529286c775942f63013619f37246c5
/examples/potsdam/semantic_segmentation.py
a3ad3085dd6f3c7d8d3532839dfb3cf35057feda
[ "Apache-2.0" ]
permissive
Pandinosaurus/raster-vision-examples
388438ddd58c2c0fd8a7eced5be02cc5518e80f8
d6957a5de6d49fbe7d419da67979725eaab43ee7
refs/heads/master
2021-07-18T08:17:33.274224
2020-07-03T02:52:20
2020-07-03T02:52:20
184,796,275
1
0
NOASSERTION
2020-07-03T04:10:43
2019-05-03T17:38:55
Jupyter Notebook
UTF-8
Python
false
false
5,610
py
import os from os.path import join import rastervision as rv from examples.utils import str_to_bool, save_image_crop class PotsdamSemanticSegmentation(rv.ExperimentSet): def exp_main(self, raw_uri, processed_uri, root_uri, test=False, use_tf=False): """Run an experiment on the ISPRS Potsdam dataset. ...
[ "lewfish@gmail.com" ]
lewfish@gmail.com
f4be1784fe13e6274c766985a165f620b822bcb1
930309163b930559929323647b8d82238724f392
/abc216_e.py
b2c5d66d2e922c823160cdcb8e9ca31ca835c4d4
[]
no_license
GINK03/atcoder-solvers
874251dffc9f23b187faa77c439b445e53f8dfe1
b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7
refs/heads/master
2021-11-07T14:16:52.138894
2021-09-12T13:32:29
2021-09-12T13:32:29
11,724,396
3
1
null
null
null
null
UTF-8
Python
false
false
1,123
py
import sys import logging def main(): n, k = map(int, input().split()) a = list(map(int, input().split())) a = sorted(a, reverse=True) + [0] def cumsum(x): return x * (x + 1) // 2 k_remaining = k ans = 0 for i in range(n): if a[i] == a[i + 1]: continue ...
[ "gim.kobayashi@gmail.com" ]
gim.kobayashi@gmail.com
e7b69c6f075b17d67552da7d91dd5b80b77ed235
5f0eeef355fa84b165d4e0707e8874755cc03259
/chp02_forces/Exercise_2_10_attractrepel/Attractor.py
b265f28a642f9d31b8c7540541527dd188cd2d56
[]
no_license
kidult00/NatureOfCode-Examples-Python
5835fbed114f3991b9986852f31d29a0a46d7e53
42461590deebbe305d5815ff0d207ff974335ad5
refs/heads/master
2021-05-11T04:47:53.999705
2018-03-07T15:54:12
2018-03-07T15:54:12
117,946,895
0
0
null
null
null
null
UTF-8
Python
false
false
2,195
py
# The Nature of Code - Python Version # [kidult00](https://github.com/kidult00) # A class for a draggable attractive body in our world # Attraction = G * M1 * M2 / Distance^2 class Attractor(object): def __init__(self): self.mass = 10.0 # Mass, tied to size self.g = 1.0 # Gravitational Constan...
[ "sysulj@gmail.com" ]
sysulj@gmail.com
9b0612a4597a28b9bfac2f4dc745eb4104ab302c
384d0be5ac54b306b945cf38c10d9b0a44c975ea
/devstack/tools/uec/meta.py
5b845d81a69b19773c66ea4fb61a1a9065a88c47
[]
no_license
ashokcse/openstack-bill
05ae313637b3cfecba946d2a9b32e8c7609fc721
1a3d7575d4b341f64fa1764ed47e47a7504a9bcc
refs/heads/master
2021-01-18T14:05:24.696165
2012-09-12T11:29:20
2012-09-12T11:29:20
5,424,267
5
2
null
null
null
null
UTF-8
Python
false
false
827
py
import sys from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler from SimpleHTTPServer import SimpleHTTPRequestHandler def main(host, port, HandlerClass = SimpleHTTPRequestHandler, ServerClass = HTTPServer, protocol="HTTP/1.0"): """simple http server that listens on a give address:port""" ser...
[ "ashokcse@live.com" ]
ashokcse@live.com
afef5e088c4a797fddf972b908f3d05308a8a5c5
a512b8893b0d2de827d6292e810f3a98b41e132c
/Week6/Day1/Solutions/Python/prog4.py
8f234ad7cc815e2ff244fd79557baa2595b427a1
[]
no_license
Audarya07/Daily-Flash-Codes
d771079fd0d470e2d3e05679f17f32fb64b4f426
cf96ca2b1676b038e243fac67be778381492ffeb
refs/heads/master
2022-11-06T15:37:47.180729
2020-06-25T16:20:55
2020-06-25T16:20:55
274,960,651
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
for i in range(5): num = 5 for j in range(5): if i>j: print(" ",end=" ") else: print(num,end=" ") num-=1 print()
[ "audiuttarwar2000@gmail.com" ]
audiuttarwar2000@gmail.com
bef4ed0adc518bd890aba6eb08948e612e7755b4
9eaa2c64a777bd24a3cccd0230da5f81231ef612
/study/1905/month01/code/Stage1/day04/exercise02.py
4527340f5bf057badc200a68d1b1fcc8edce6772
[ "MIT" ]
permissive
Dython-sky/AID1908
4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c
46cd54a7b36b5f009974f2bbb7005a4ad440ca1a
refs/heads/master
2022-04-14T12:23:30.426270
2020-04-01T18:05:19
2020-04-01T18:05:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
""" 一张纸的厚度是0.01mm 对折多少次厚度能超过珠穆朗玛峰(8844.43米) """ thickness = 0.01 / 1000 count = 0 while thickness <= 8848.43: thickness *= 2 count += 1 # print(thickness) print("一张纸对折{}次能超过珠穆朗玛峰".format(count))
[ "dong_1998_dream@163.com" ]
dong_1998_dream@163.com
d49ea65ea1d608754984e1885d288d255efbf3a9
a8f615e6f2e00bcc72cd67475c5dd4a9ff0e6c14
/imdemo/imdemo/pages/nodes/pin.py
15058ecdfab3a662b795bd45d0d98c33f047f968
[ "MIT" ]
permissive
KangWeon/arcade-imgui
fcf43f2399f56960b5249bd80e4e16d8639be8e2
24a8d423440cd9adaf3373a9c2492d04d8862062
refs/heads/master
2023-01-01T03:04:05.605347
2020-10-18T08:04:21
2020-10-18T08:04:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
class Pin: def __init__(self, node, name): self.node = node self.name = name self.x = 0 self.y = 0 def set_position(self, pos): self.x, self.y = pos def get_position(self): return (self.x, self.y) def draw(self): pass class Input(Pin): pass...
[ "kurtisfields@gmail.com" ]
kurtisfields@gmail.com
8da13cd142ec6b62a14d15b73cfe977ec43475ff
a97fb0584709e292a475defc8506eeb85bb24339
/source code/code/ch203.py
3aa2f981b9a6399e15c03b0b1aeb0e4e562fef35
[]
no_license
AAQ6291/PYCATCH
bd297858051042613739819ed70c535901569079
27ec4094be785810074be8b16ef84c85048065b5
refs/heads/master
2020-03-26T13:54:57.051016
2018-08-17T09:05:19
2018-08-17T09:05:19
144,963,014
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
#!/usr/bin/env python #coding=utf-8 from __future__ import print_function ## 宣告x, y, z變數,各分別為tuple, list, dict資料型態。 x, y, z = (), [], {} ## 雖然都是空的結構,但是它們之間並不相等。 if x == y == z: print(x, y, z, "相等") else: print(x, y, z, "不相等") if x == None: print(x, " 相等 None") else: print(x, " 不相等 None") if y == None: ...
[ "angelak.tw@gmail.com" ]
angelak.tw@gmail.com
a1b3558b03ae177a9ec695640ddab9481f1cfb65
093b9569be9d1c4e5daf92efbebc38f680917b2d
/.history/base/views_20210829090123.py
bfec5c7dacaf07d85a118c58236ec494edd47b23
[]
no_license
Justin-Panagos/todoList
95b1e97ff71af1b0be58e7f8937d726a687cea4d
10539219b59fcea00f8b19a406db3d4c3f4d289e
refs/heads/master
2023-08-04T13:27:13.309769
2021-08-29T14:06:43
2021-08-29T14:06:43
400,827,602
0
0
null
null
null
null
UTF-8
Python
false
false
2,107
py
from django.shortcuts import render from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView, FormView from django.urls import reverse_lazy from django.contrib.auth.views import LoginView from django.contr...
[ "justpanagos@gmail.com" ]
justpanagos@gmail.com
b983070276e9108430c515665fa30b6bce8cb8fb
f6841d5626d87e836f6012d88c783706fa46d769
/web_crawler.py
c736c3b9c98f9e2dabb384fc0182472094e813d0
[]
no_license
Jack-Valentine/python-seminar-4
850b22cd7c552b570e25e9432abf98a25cf0b7d6
cd6c8945f436fa5dc0d6dec14551d07e6dd3562a
refs/heads/master
2021-01-22T07:42:35.044924
2017-05-25T03:46:59
2017-05-25T03:46:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,010
py
from bs4 import BeautifulSoup from gevent import monkey import sys import gevent import time import urllib.request def crawling_product_price(product_url): try: with urllib.request.urlopen(product_url) as response: html = response.read() soup = BeautifulSoup(html, 'html.parser') ...
[ "kd980311@naver.com" ]
kd980311@naver.com
69e51fdfc4869a7c3cbfdeaf0cb52e5fa0558a74
f69eccca4970bc898983b149bbadfc6a79e77916
/befh/api_socket.py
9252264f83791eecb5cd78803add2d6948531050
[ "Apache-2.0" ]
permissive
chrischris292/MarketDataGdax
a3cd911edafe7a246a1d553180e1edb66a125c8c
95dc398123f7878526df4af2402af3cbeee67057
refs/heads/master
2021-05-06T17:38:19.949472
2017-11-24T22:24:40
2017-11-24T22:24:40
111,900,487
1
0
null
null
null
null
UTF-8
Python
false
false
887
py
#!/bin/python class ApiSocket: """ API socket """ def __init__(self): pass @classmethod def parse_l2_depth(cls, instmt, raw): """ Parse raw data to L2 depth :param instmt: Instrument :param raw: Raw data in JSON """ return None @...
[ "gavincyi@gmail.com" ]
gavincyi@gmail.com
5f8d714422c7d691696299d9f7a93d52b2168c5c
59166105545cdd87626d15bf42e60a9ee1ef2413
/test/test_space_shuttle_api.py
f91c3cfb0e3cfbade624d087754e5913f39e478a
[]
no_license
mosoriob/dbpedia_api_client
8c594fc115ce75235315e890d55fbf6bd555fa85
8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc
refs/heads/master
2022-11-20T01:42:33.481024
2020-05-12T23:22:54
2020-05-12T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
995
py
# coding: utf-8 """ DBpedia This is the API of the DBpedia Ontology # noqa: E501 The version of the OpenAPI document: v0.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import dbpedia from dbpedia.api.space_shuttle_api import SpaceShutt...
[ "maxiosorio@gmail.com" ]
maxiosorio@gmail.com
165d038ef67c6e5d9650811fb8eebb4c215a8874
1ad12a71c3d5d2b3810ce03e8bd138c4ffb66eb8
/xlsxwriter/test/comparison/test_chart_axis17.py
d77b584fbddf1629eaf7474c77dea6cb5512ae61
[ "BSD-2-Clause-Views" ]
permissive
idreamsfy/XlsxWriter
b52929229b16e2ee1eaca0cda9980a5a0aad5769
129044ed821de67895b4562c6b71f90eba5be6b4
refs/heads/master
2021-01-02T20:39:20.415882
2020-02-07T21:07:55
2020-02-07T21:07:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
ac0032fb8c3c73b7de8979c896fcd0df0b3a547f
263dc86ea58278d6e1db448c245f692049c73199
/employeedetails/customer/urls.py
00350cd841b461cd5617ec8e73ffdbac809561d7
[]
no_license
krishnanunni-pr/MyDjangoProjects
c3a81b193a659c47fd6aec01777d6f689479eb9f
3d644d2a261243be40f5678e9a61d508a5980143
refs/heads/master
2023-08-05T20:10:08.509167
2021-09-27T09:21:21
2021-09-27T09:21:21
394,686,590
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
from django.urls import path from customer import views urlpatterns=[ path("accounts/signup",views.signup,name="signup"), path("accounts/signin",views.signin,name="signin"), path("accounts/signout",views.signout,name="signout"), path("",views.home,name="home") ]
[ "krishna@gmail.com" ]
krishna@gmail.com
9b8abd96e7a9d1cf1657b05be3e7327c9595c874
f64e31cb76909a6f7fb592ad623e0a94deec25ae
/tests/test_p0380_insert_delete_getrandom_o1.py
6fb1b572dadda2d8a17a49d0331190489c5cd47b
[]
no_license
weak-head/leetcode
365d635cb985e1d154985188f6728c18cab1f877
9a20e1835652f5e6c33ef5c238f622e81f84ca26
refs/heads/main
2023-05-11T14:19:58.205709
2023-05-05T20:57:13
2023-05-05T20:57:13
172,853,059
0
1
null
2022-12-09T05:22:32
2019-02-27T05:58:54
Python
UTF-8
Python
false
false
1,572
py
# flake8: noqa: F403, F405 import pytest from leetcode.p0380_insert_delete_getrandom_o1 import * solutions = [ RandomizedSet, ] # ([args], expectation), test_cases = [ [ ("d", 2, False), ("i", 1, True), ("i", 1, False), ("r", None, {1}), ], [ ("d", 2, False), ...
[ "zinchenko@live.com" ]
zinchenko@live.com
27eeeb653c05caa760b8785076bda08a096fb674
0eb599c3bbfa6e5b31516913b88cc9db3a1311ce
/AtCoder_unofficial/chokudai_speedrun_001_i.py
5148ec2cff2560f0cb7e129c29a7606713c0aa9f
[]
no_license
Linus-MK/AtCoder
5b84dc88c2d2773d0f97ed18265d303290da7879
a587e89a9e0c2ab4d36b09176bcc95e901e14326
refs/heads/master
2022-11-25T05:37:12.148722
2022-11-17T16:04:10
2022-11-17T16:04:10
169,840,698
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
n = int(input()) nums = list(map(int, input().split())) # 累積和 + α # 累積和が単調増加であることを利用して二分探索で解くか(NlogN) # 1からの相異なる数の和がnに達するのは割と早いことを利用して逐次計算で解くか(最悪N√Nだがそれより小さいはず) # 後者でやってみよう # 369ms, 余裕を持って間に合う cumsum = [0] * (n+1) for i in range(n): cumsum[i+1] = cumsum[i] + nums[i] ans = 0 for i in range(n+1): for j in ran...
[ "13600386+Linus-MK@users.noreply.github.com" ]
13600386+Linus-MK@users.noreply.github.com
5225cec94bbd84fd01b937451ec2e442f10c6b36
64aadced1900d9791099228fa91995c2f8444633
/python/prices.py
1865f0e7dfe64d2745c9ef79321c2b43b4be11fc
[]
no_license
ctmakro/playground
821a8c668b58ebd81cd48309e6f4c6cd16badea7
5d6e8e528f1913b6089322ef388213cec5264ae1
refs/heads/master
2020-12-25T01:51:12.041611
2020-07-14T19:17:24
2020-07-14T19:17:24
57,165,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
wg = '''<!-- TradingView Widget BEGIN --> <div class="tradingview-widget-container"> <div class="asdf">{}</div> <div class="tradingview-widget-container__widget"></div> <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-mini-symbol-overview.js" async> {{ "symbol": "...
[ "ctmakro@gmail.com" ]
ctmakro@gmail.com