blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
967cd0a9fdaedfc7ac4e017aea380c1dd7e3838b
d094ba0c8a9b1217fbf014aa79a283a49aabe88c
/env/lib/python3.6/site-packages/traits/util/tests/test_deprecated.py
ead58b2f27d7d3149d34c03bf439b923de0956b4
[ "Apache-2.0" ]
permissive
Raniac/NEURO-LEARN
d9274e0baadd97bb02da54bdfcf6ca091fc1c703
3c3acc55de8ba741e673063378e6cbaf10b64c7a
refs/heads/master
2022-12-25T23:46:54.922237
2020-09-06T03:15:14
2020-09-06T03:15:14
182,013,100
9
2
Apache-2.0
2022-12-09T21:01:00
2019-04-18T03:57:00
CSS
UTF-8
Python
false
false
2,061
py
# ------------------------------------------------------------------------------ # Copyright (c) 2005-2014, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in /LICENSE.txt and may be redistributed only # under the conditions described i...
[ "leibingye@outlook.com" ]
leibingye@outlook.com
1303e073dc84ebad408b0edac7e5fb07bdf84434
099b57613250ae0a0c3c75cc2a9b8095a5aac312
/leetcode/Hashtable/3. 没有重复字符的最长子串长度(hashmap滑动窗口).py
8ee74e2f67fcb006783210aefdb598862a6b8705
[]
no_license
MitsurugiMeiya/Leetcoding
36e41c8d649b777e5c057a5241007d04ad8f61cd
87a6912ab4e21ab9be4dd6e90c2a6f8da9c68663
refs/heads/master
2022-06-17T19:48:41.692320
2020-05-13T16:45:54
2020-05-13T16:45:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,908
py
class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ hashmap = {} left = -1 maxLen = 0 for right in range(len(s)): # s[right] in hashmap # abca,left = -1 -> left = 1 if s[...
[ "yifu3@ualberta.ca" ]
yifu3@ualberta.ca
50215d61361227c827e4df2011348c8fd87d275b
be7a1a6bfe16729e5e11451f16ef3205e2ce9208
/cabinet/migrations/0001_initial.py
9b190e622f8fa48737c9f55c599777a7314537c2
[]
no_license
xiaoyaolaotou/django-rest_framework
b790e4926f430d1125f455812344babe9b1c1179
2e2d792633996f05780e22f226a3e1afa4178ea0
refs/heads/master
2020-03-22T19:30:30.319249
2018-07-11T06:51:28
2018-07-11T06:51:28
140,533,850
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-07-03 04:50 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('idcs', '0001_initial'), ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
1159e47d3ec5b74c128ba41c3b3197930fa38b79
030724b60fb4f8b63953b7401702a98072993e94
/python/796.rotate_string.py
6b29b2bfd77e32fbbd1bb6e616ff612beb4d84c1
[]
no_license
MtTsai/Leetcode
5f51a892b78cf6427ce2b4891a10bc2d4ed4d972
21e83294aee779a16a8c1b96089da4a40eb03035
refs/heads/master
2021-01-24T17:17:52.909429
2019-08-04T06:53:53
2019-08-04T06:54:23
123,228,705
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
class Solution(object): def rotateString(self, A, B): """ :type A: str :type B: str :rtype: bool """ if len(A) != len(B): return False if not len(A): return True for i in range(len(B)): if A == B[i:...
[ "mttsai@gmail.com" ]
mttsai@gmail.com
bde6df60ba0a98d920ec3727a93a12ec6bf5347d
233208e64f4f977a94e2a8675e0af4ed5bc094b8
/crux/schema/dataset.py
81618fc4beb58911e8e4c06db4ea4b732dcfb47b
[]
no_license
thomasjpfan/crux-v2-backend
74589cade29e45490c413a805e2194506dd95ab4
d4fe26aca9d696f5c97d4fbb7e747e074c3d956f
refs/heads/master
2022-04-29T08:18:48.961678
2021-03-19T02:19:58
2021-03-19T02:19:58
182,922,124
0
0
null
2022-04-22T21:10:09
2019-04-23T03:28:35
Python
UTF-8
Python
false
false
3,644
py
import graphene from graphene import relay from graphene_django.filter import DjangoFilterConnectionField from graphql_jwt.decorators import login_required from graphql_relay import from_global_id from .nodes import DatasetNode from ..models import DatasetTag from ..models import Dataset from ..models import Task cl...
[ "thomasjpfan@gmail.com" ]
thomasjpfan@gmail.com
63032003a234d3872ffe883b21527821e270be33
55d560fe6678a3edc9232ef14de8fafd7b7ece12
/tools/build/src/tools/types/cpp.py
f4edec8ff445a07226c5aecc344e3a94ae05dc07
[ "BSL-1.0" ]
permissive
stardog-union/boost
ec3abeeef1b45389228df031bf25b470d3d123c5
caa4a540db892caa92e5346e0094c63dea51cbfb
refs/heads/stardog/develop
2021-06-25T02:15:10.697006
2020-11-17T19:50:35
2020-11-17T19:50:35
148,681,713
0
0
BSL-1.0
2020-11-17T19:50:36
2018-09-13T18:38:54
C++
UTF-8
Python
false
false
385
py
# Copyright David Abrahams 2004. Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) from b2.build import type as type_ type_.register_type('CPP', ['cpp', 'cxx', 'cc']) type_.register_type('H', ['h']) type_.regi...
[ "james.pack@stardog.com" ]
james.pack@stardog.com
a6e95d1edb7dda366e388cd121406f406675eaed
d00a72ae536b77667e8544c0a7c91a5be4faeddc
/PIONEER-ROBOT/pioneer_yolov3/scripts/utils/parse_config.py
de593d6ebcae059505d8d9c7724d39068beb7c1f
[]
no_license
ahanjaya/THORMANG3-OPC
079b441dd2ae3575fbf6f78b97bfb31685355d8d
15d707e4206999d95a2e5922cb1a531b1499ef7e
refs/heads/master
2020-07-11T01:46:23.626851
2020-05-22T12:40:26
2020-05-22T12:40:26
204,421,062
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
#!/usr/bin/env python3 def parse_model_config(path): """Parses the yolo-v3 layer configuration file and returns module definitions""" file = open(path, 'r') lines = file.read().split('\n') lines = [x for x in lines if x and not x.startswith('#')] lines = [x.rstrip().lstrip() for x in lines] # get r...
[ "hanjaya_mandala@yahoo.com" ]
hanjaya_mandala@yahoo.com
65ce8fc2c42afb3ab3f77c14bc8f6a40c1d081d6
dce8dad6067ff3f6f59e1fa8185d249fd0bd9c58
/tests/performance/microbenchmarks/MicroPerf_BuildCommon/run.py
7f3e5deb21cdf956d50eba26df41d4a9a34feb07
[ "Apache-2.0" ]
permissive
xpybuild/xpybuild
ccd6c22d4aa0560ee5583004b94dccc03c0cad52
9e0aa0ae268cf3fcc759572a026e1ed2a03379e0
refs/heads/master
2023-07-12T03:04:08.687644
2023-06-29T13:57:34
2023-06-29T13:57:34
81,104,277
9
5
Apache-2.0
2022-01-07T18:48:57
2017-02-06T15:58:02
Python
UTF-8
Python
false
false
452
py
from pysys.constants import * from xpybuild.microperf_basetest import MicroPerfPySysTest class PySysTest(MicroPerfPySysTest): OPERATIONS = [ # resultKey (must be a valid filename), command, setup ('xpybuild.buildcommon.isDirPath()','isDirPath(OUTPUT_DIR)', ""), ('xpybuild.fileutils.isDirPath()','fileutils_isDirP...
[ "ben-spiller@users.noreply.github.com" ]
ben-spiller@users.noreply.github.com
ea3039cb62c55b38b78a273a04f80356332081b1
14675f0c66fb4f4eeaa6ad1e8e691b9edf8f0bdb
/All other combo programs/Program_to_count_elements_in_list_till_its_tuple.py
64b4dce0759b39546bea2ccdb184cb48dc15a24f
[]
no_license
abhishekjoshi1991/Python_Learning
9a94529643eac7394615289e2ecd96106e70ddb8
a74293d0776304638b5cf976b3534481e57b17f2
refs/heads/master
2023-04-16T02:21:30.588052
2021-04-21T13:58:29
2021-04-21T13:58:29
360,176,922
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
# Count the elements in a list until an element is a Tuple a=(10,20,30,40,(1,2,3),90) count=0 for i in a: if type(i)!=tuple: count+=1 else: break print(count)
[ "abhijsh61@gmail.com" ]
abhijsh61@gmail.com
4ba72c068ca253243de27fffa171e4b35a6ea7f3
bf07c592fbbe7b44e32b08b2489f63f4ce7ad33a
/blog/migrations/0002_auto_20210315_1954.py
d22e82ec669eed1f23be79eb91248c7f57e4a97b
[]
no_license
dabslee/BrandonsSandbox
46f032a3227c786d74ac4cae7545e753bf35dbd4
07b624f66d71b315cf6dce35bf46e2fbb8f96b9c
refs/heads/master
2023-07-26T13:27:55.054558
2021-09-12T01:33:04
2021-09-12T01:33:04
347,568,825
0
1
null
null
null
null
UTF-8
Python
false
false
362
py
# Generated by Django 3.1.6 on 2021-03-16 00:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterField( model_name='post', name='created', field...
[ "brandon.sangmin.lee@gmail.com" ]
brandon.sangmin.lee@gmail.com
d4e2787173097729d2b66f77e7d7a6c3bc5ec4e6
9a7904a3ee4abd4c352a746b13963073aa62314b
/04. AI/1.Machin Learning/199_cross_iris.py
18057a0caf6b4b34224bcf768ee67a6f732720ad
[]
no_license
cat-holic/Python-Bigdata
4ab1528fa9e804206a2381ac08293088c3e9e250
2cb6c75eb02b3b0dc3a16a63c0446c1fc6f04f71
refs/heads/master
2020-03-15T09:27:33.944887
2018-08-02T08:16:35
2018-08-02T08:16:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,459
py
from sklearn import svm, metrics import random, re # 붓꽃의 csv 파일 읽어 들이기 --- 1 lines = open('iris.csv', 'r', encoding='utf-8').read().split('\n') f_tonum = lambda n: float(n) if re.match(r'^[0`9\.]+$', n) else n f_cols = lambda li: list(map(f_tonum, li.strip().split(','))) csv = list(map(f_cols, lines)) del csv[0] # 헤더...
[ "lilith4802@gmail.com" ]
lilith4802@gmail.com
937bf12bb07ce110f75155d56b1317e89abf2930
492ec6be99affb752aa7cb887cfef7c1f29028c4
/js_rss_articles/migrations/0001_initial.py
f272f7ac1828432946ee63c852f86be71681028a
[]
no_license
compoundpartners/js-rss-articles
e49c4498eae5b3998854dc4f39b37289742ff599
f8ab5f0a4240e1ab2c15ff24cdf1935f61fdc357
refs/heads/master
2020-04-22T16:14:10.854225
2019-02-13T12:12:18
2019-02-13T12:12:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-12-04 04:49 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('cms', '0020_old_tree_cleanup'), ] ...
[ "evgeny.dmi3ev@gmail.com" ]
evgeny.dmi3ev@gmail.com
2ba25ab9a95aba75b53be5c4c308be120ae61d3a
3ba20a18943f70f748189f10fe7c4081f5de528f
/docs/Week3_Python /OOP_Exercises/OOP_class2.py
482daee69b71d53ac1a826950d66aa1389b34fd3
[]
no_license
naistangz/Technical_Training
c18dfb7c1986ade227292ebc9f6bf89adb6d9291
daaee180f650ab3d0ddb1fd9456b9a5d79af4fcc
refs/heads/master
2022-12-03T22:28:12.317308
2020-08-25T23:11:45
2020-08-25T23:11:45
272,961,392
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
class Animal: # class variable outside functions - dangerous animal_kind = "canine" def __init__(self, name, colour, breed, hunger): self.name = name self.colour = colour self.breed = breed self.hunger = hunger def bark(self): self.animal_kind return "wo...
[ "a6anaistang@hotmail.co.uk" ]
a6anaistang@hotmail.co.uk
8f0a5971c0ef750fd2dbbdcd78fefd7adadb2005
d8d8144ade3b53d54d47e9115723c9e330351916
/backend/Himalaya/himalaya/urls.py
15774d13ce57ab4dfa6d179c22165584dfe75834
[ "MIT" ]
permissive
djs2082/StoreManagement-Freelancing
28d70875651824a6ab310c68e1711142199e7797
11057cb4f155c0d36a8456c9ea3395b779516384
refs/heads/master
2023-07-20T09:12:50.718294
2020-08-23T14:54:28
2020-08-23T14:54:28
288,665,134
0
0
null
null
null
null
UTF-8
Python
false
false
2,558
py
"""himalaya URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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-base...
[ "dilipjoshis98@gmail.com" ]
dilipjoshis98@gmail.com
172031f7d80db86782e254084bbad7ebd5ce4a62
0a65d42f4f0e491cb2aada408401b94909f821c2
/django_media/src/newApp/urls.py
fe401a8af347fd71e8d6964625edd673c714c70c
[]
no_license
jmadlansacay/_Office
3acde7655784e91c7dcecfc853d4f36cdfeef028
7f46449b9f7e8e892e2e0025ba493259197fa592
refs/heads/main
2023-07-28T10:23:54.680822
2021-09-11T02:28:07
2021-09-11T02:28:07
379,155,026
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
from django.urls import path from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ path('', views.index, name = 'index'), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
[ "Q034800@mhi.co.jp" ]
Q034800@mhi.co.jp
24488570c952f56d7c5f1fa6372ce288f2dfa114
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_legroom.py
66f2fec81e858dcd1a1df2ae9270c9e5c37adfdc
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
#calss header class _LEGROOM(): def __init__(self,): self.name = "LEGROOM" self.definitions = [u'the amount of space available for your legs when you are sitting behind another seat: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
33d36a2f0e5308056479a9b773d00196e6c6399d
26f8a8782a03693905a2d1eef69a5b9f37a07cce
/test/test_destiny_definitions_sockets_destiny_plug_whitelist_entry_definition.py
a26dc9eb8d8129c6fb82ad55f027d2db7e632795
[]
no_license
roscroft/openapi3-swagger
60975db806095fe9eba6d9d800b96f2feee99a5b
d1c659c7f301dcfee97ab30ba9db0f2506f4e95d
refs/heads/master
2021-06-27T13:20:53.767130
2017-08-31T17:09:40
2017-08-31T17:09:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
# coding: utf-8 """ Bungie.Net API These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. OpenAPI spec version: 2.0.0 Contact: support@bungie.com Generated by: ...
[ "adherrling@gmail.com" ]
adherrling@gmail.com
cc58d94c31115839eacb037326313e180039794b
be2931f7bb9ed71d42e92cd11709cd466e9486f2
/app/api/task_api.py
1f1054a2ebd82602064856c3e208204da1a2f8d6
[ "BSD-3-Clause" ]
permissive
orf53975/Apfell
44ca8a3a508353f0c3bf48ad67199e2aa4c3b6d8
7f4adb1fa7178137d2b78c2862a767712446e0e1
refs/heads/master
2020-03-29T21:20:33.312506
2018-09-22T02:18:19
2018-09-22T02:18:19
150,361,542
3
0
null
2018-09-26T03:09:36
2018-09-26T03:09:37
null
UTF-8
Python
false
false
5,219
py
from app import apfell, db_objects from sanic.response import json from app.database_models.model import Callback, Operator, Task, Command, FileMeta, Operation from urllib.parse import unquote_plus import datetime from sanic_jwt.decorators import protected, inject_user from app.api.utils import breakout_quoted_params ...
[ "codybthomas@gmail.com" ]
codybthomas@gmail.com
e39b0900c10267e355514f90c0edadec2b928e73
a1e17363c5fbb5e1e70c38c91108cc84b0a2e98a
/expyfun/_externals/ndarraysource.py
2ef142c93f62ca66ac5cae3f189cb8898e8eec78
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
mmittag/expyfun
daa3332c8b228abaa60e2893210e7598d761a89b
ca52135ace62baf7419f4708e54ebf648a21c9cc
refs/heads/master
2021-01-16T19:59:47.671278
2014-07-03T20:57:53
2014-07-03T20:57:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
# -*- coding: utf-8 -*- try: from pyglet.media import NdarraySource except ImportError: from pyglet.media import StaticMemorySource, AudioFormat class NdarraySource(StaticMemorySource): """Play sound from numpy array :Parameters: `data` : ndarray float data wit...
[ "larson.eric.d@gmail.com" ]
larson.eric.d@gmail.com
69b55b7eae0532801ad2677e109a8824ef180527
4dbc4d9c864ac4565193f412d1a2928f34d28da5
/Educational Codeforces Round 91 (Rated for Div. 2)/.history/D_Berserk_And_Fireball_20200714175533.py
c57c462fe3a7e046e49bf7e8ae5dc3eb0d04a592
[]
no_license
TomChan1991/codeforce
91807fd9b62abc48eaed8c0bfac17a38707a2b5c
d23c882d9194ff09f8b41bd76c9cddc3af5c9b21
refs/heads/master
2022-12-08T09:23:05.599194
2020-07-20T13:54:35
2020-07-20T13:54:35
281,128,634
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
import sys inpy = [int(x) for x in sys.stdin.read().split()] n, m, x, k, y = inpy[0:5] a, b = inpy[5:5+n], inpy[5+n:] prei = -1 i, j = 0, 0 res = 0 while i < len(a) and j < len(b): print(i, j) if a[i] == b[j]: flag = True maxV = 0 for j in range(prei + 1, i): maxV = max(maxV...
[ "chen_yanhua123@126.com" ]
chen_yanhua123@126.com
94ac20b87ff92b36f7406e2ef2b2dfcb4d534a0b
17d5736896e79d4b8a11ed8d8ecddd6ede56b2a6
/day_159_AddtoArrayFormofInteger.py
02a99cfacee4532a28914a1aa701427853144533
[]
no_license
parulsharma-121/CodingQuestions
e733e5b24c30f137593267d8464721a83df3f241
9c3a99501878edd22052505b8bda9863e5855fd7
refs/heads/master
2021-04-23T19:19:13.651753
2020-10-22T16:30:29
2020-10-22T16:30:29
249,979,493
5
0
null
null
null
null
UTF-8
Python
false
false
655
py
''' For a non-negative integer X, the array-form of X is an array of its digits in left to right order. For example, if X = 1231, then the array form is [1,2,3,1]. Given the array-form A of a non-negative integer X, return the array-form of the integer X+K. Example 1: Input: A = [1,2,0,0], K = 34 Output: [1,2,3,...
[ "contactparulsharma11@gmail.com" ]
contactparulsharma11@gmail.com
d7a5d281599ae77fdda2fbf31690cc3d93d99a0b
463c8ba5baad086d37819804af4ee10f43ab6dd5
/06_django_advance/01_DJANGO_RECAP/poll/views.py
e768d7b81c353ad198972ae2e64c97b315bc5f02
[]
no_license
sooya14/TIL
dbbb0608d45ce273ddef6f7cea1b1195285f269d
232b0d38d8f6ee2e6e5517bfd6a2a15cf1000dad
refs/heads/master
2023-01-11T17:12:39.370178
2020-05-11T12:06:41
2020-05-11T12:06:41
195,916,241
0
0
null
2023-01-05T18:22:56
2019-07-09T02:17:42
Jupyter Notebook
UTF-8
Python
false
false
651
py
from django.shortcuts import render, redirect, get_object_or_404 from .models import Question, Choice from .forms import ChoiceModelForm from django.views.decorators.http import require_GET, require_POST, require_http_methods def question_detail(request, question_id): question = get_object_or_404(Question, id=qu...
[ "soosmile9653@gmail.com" ]
soosmile9653@gmail.com
69268ae1f4ab71c81fc10a27196e5b30bd979016
91b80ef798cbcdaab7f6ae0be994f5a3b12f1515
/709.py
2f8a0323dfd3f9e25176ed78d7adcb8763a4e366
[]
no_license
luckkyzhou/leetcode
13377565a1cc2c7861601ca5d55f6b83c63d490e
43bcf65d31f1b729ac8ca293635f46ffbe03c80b
refs/heads/master
2021-06-21T11:26:06.114096
2021-03-24T21:06:15
2021-03-24T21:06:15
205,568,339
0
1
null
null
null
null
UTF-8
Python
false
false
167
py
class Solution: def toLowerCase(self, str: str) -> str: res = [] for s in str: res.append(chr(ord(s) | 32)) return "".join(res)
[ "luckky_zhou@163.com" ]
luckky_zhou@163.com
ffedc98b8e7a736467f154ddf564e6d90d606fa5
bddd0b5e00906380bd45e3d948efdbe5ab9c5063
/tests/test_marshmallow.py
93854b69f4b8e04592b1959a4fee32865e8a04a6
[ "MIT" ]
permissive
life4/vaa
2e1f3f01c88e7d592b977db4715fa9e14225267c
d934e073966cacc1810419bed0ed8e5dca83fac8
refs/heads/master
2020-08-04T10:57:29.791563
2020-04-16T13:34:31
2020-04-16T13:34:31
212,113,705
5
0
MIT
2021-12-14T09:53:17
2019-10-01T14:12:54
Python
UTF-8
Python
false
false
720
py
import marshmallow import vaa @vaa.marshmallow class Scheme(marshmallow.Schema): name = marshmallow.fields.Str(required=True) mail = marshmallow.fields.Email(required=True) count = marshmallow.fields.Int(required=True) def test_valid(): data = {'name': 'Gram', 'mail': 'master_fess@mail.ru', 'count':...
[ "master_fess@mail.ru" ]
master_fess@mail.ru
bf84f9c5adfa9e7583673be3f2010094b0ec0812
ad4c2aa0398406ccb7e70562560e75fa283ffa1a
/invert-binary-tree/invert-binary-tree.py
5d741a14934dc5b2a736ed7eb2ffb43c88227147
[ "Apache-2.0" ]
permissive
kmgowda/kmg-leetcode-python
427d58f1750735618dfd51936d33240df5ba9ace
4d32e110ac33563a8bde3fd3200d5804db354d95
refs/heads/main
2023-08-22T06:59:43.141131
2021-10-16T14:04:32
2021-10-16T14:04:32
417,841,590
0
1
null
null
null
null
UTF-8
Python
false
false
647
py
// https://leetcode.com/problems/invert-binary-tree # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def invertTree(self, root): """ :type root: TreeNode :rtype:...
[ "keshava.gowda@gmail.com" ]
keshava.gowda@gmail.com
6995ee1e78fd36068874a000c4c37ef1b646d8d8
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/RenewAdditionalBandwidthRequest.py
13003abc6ba6cd98917539ae4400928484b4e505
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
3,305
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 u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
322aa78a81d83983090c878e3f2a5fb4415a64d9
7635ccca81bb3c2cfce123ebf14831522b8ba6ee
/cvutils/DropboxFileWatcherUpload.py
94effc0c120f720bfc9c5da82e3a446119cacc3f
[]
no_license
youngsoul/cvutils
6ef45f26e56d06cc445ae41066eb2028f8d08e3b
75d8249b2a5724e4c168b598943edeca87f15335
refs/heads/master
2023-02-19T10:13:36.143823
2021-01-24T16:44:51
2021-01-24T16:44:51
332,498,689
0
0
null
null
null
null
UTF-8
Python
false
false
1,972
py
from cvutils.BackgroundFileProcessor import BackgroundFileProcessor from pathlib import Path import dropbox from dropbox.exceptions import ApiError class DropboxFileWatcherUpload(BackgroundFileProcessor): def _upload_file(self, file_from, file_to): dbx = dropbox.Dropbox(self.dropbox_access_token) ...
[ "theyoungsoul@gmail.com" ]
theyoungsoul@gmail.com
4946e7e6f3ef0a2ca51d0b3bf91574e342693917
8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b
/enthought/mayavi/filters/greedy_terrain_decimation.py
e50f1acf66bc4db6845b7ab0a9e5811695c35ea2
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
enthought/etsproxy
5660cf562c810db2ceb6b592b6c12274bce96d73
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
refs/heads/master
2023-03-27T04:51:29.297305
2020-12-02T09:05:18
2020-12-02T09:05:18
1,632,969
3
1
NOASSERTION
2020-12-02T09:05:20
2011-04-18T22:29:56
Python
UTF-8
Python
false
false
109
py
# proxy module from __future__ import absolute_import from mayavi.filters.greedy_terrain_decimation import *
[ "ischnell@enthought.com" ]
ischnell@enthought.com
8527a180c4f68c8b4694e5badaf03b66f91d6750
8d472f9facb895dda9e1df81f3bb6c2f81b9c357
/master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/SaleInvoiceTransaction_init.py
bfbac88099e23111059502c1988eb88e8a08d087
[]
no_license
SlapOS/slapos.core
852485eed9382685f3df6ba8532f8192bb1389c4
369e8d56636e1c59a745e68dc68154abfc5b7840
refs/heads/master
2023-08-31T04:42:34.722241
2023-08-30T15:13:08
2023-08-30T15:13:08
1,825,920
11
4
null
null
null
null
UTF-8
Python
false
false
350
py
if kw.get('created_by_builder', 0): return context.newContent(portal_type='Sale Invoice Transaction Line', id='income',) context.newContent(portal_type='Sale Invoice Transaction Line', id='receivable', ) context.newContent(portal_type='Sale Invoice Transaction Line', ...
[ "alain.takoudjou@nexedi.com" ]
alain.takoudjou@nexedi.com
9655ab9b5ab81ccda6e6117b91a292de0f007db0
b424a13f032d5a607e6df4dd78bc47ad1d06a147
/lhc/io/fastq/iterator.py
d620bee09bebc387ba2e493048ec1f2d2c782158
[]
no_license
EnjoyLifeFund/macSierra-py36-pkgs
1e7eeb9b55415da6eb12465d67730d76e9cc619a
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
refs/heads/master
2021-01-20T10:23:50.044019
2017-09-05T02:53:26
2017-09-05T02:53:26
90,333,987
0
1
null
null
null
null
UTF-8
Python
false
false
838
py
from collections import namedtuple from lhc.itertools.chunked_iterator import ChunkedIterator class FastqEntry(namedtuple('FastqEntry', ('hdr', 'seq', 'qual_hdr', 'qual'))): def __str__(self): return '@{}\n{}\n{}+\n{}\n'.format(self.hdr, self.seq, self.qual_hdr, self.qual) class FastqEntryIterator(objec...
[ "raliclo@gmail.com" ]
raliclo@gmail.com
cac7b511c6a80009d9336e269018d5ebaff5f0fc
bce492a540213327e524a528a0bde3fe13e4cbdc
/hospital/get_data.py
b6f86359acb215f804128dae3f84c1350a97b5b7
[]
no_license
RympeR/hospital
e8277ce895b321f3fcc434cbddc388b07887458f
7a682a1a9a936f6257e9f7f28de0376f88447cf9
refs/heads/master
2021-04-08T13:16:50.716211
2020-04-17T13:46:42
2020-04-17T13:46:42
248,779,058
0
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
with open('Hospinfo.txt') as f: data = f.read().split('"') # print(data[:200]) for row, row_data in enumerate(data): if row == 1: # print(row_data) print(len(row_data.split(','))) cols = """Provider ID,Hospital Name,Address,City,State,ZIP Code,County Name,Phone Number,Hospi...
[ "georg.rashkov@gmail.com" ]
georg.rashkov@gmail.com
0a43eb71f8d79b57e3e6eeac7e51f86e76c91464
47deebe6fefedb01fdce5d4e82f58bb08f8e1e92
/python core/Lesson_10/matrix_13.py
bfaf79444f2715dffed23a8b328deda5812089c2
[]
no_license
developeryuldashev/python-core
5bb162603bdb5782acf05e3fb25ca5dd6347067a
08fca77c9cfde69d93a7875b3fb65b98f3dabd78
refs/heads/main
2023-08-21T03:33:12.160133
2021-10-19T04:56:53
2021-10-19T04:56:53
393,383,696
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
from methods import makeMatrix,Print n=5 a=makeMatrix(n) Print(a) for i in range(n): for j in range(n-i): print(a[i][j],end=' ') print() for k in range(1+i,n): print(a[k][n-1-i],end=' ') print()
[ "81365808+developeryuldashev@users.noreply.github.com" ]
81365808+developeryuldashev@users.noreply.github.com
0baeae710bb003d24d9f5571745cc95246b97e50
5b5a49643c75aa43d5a876608383bc825ae1e147
/python99/arithmetic/p206.py
052c679c71877459f7b22b02df25cd6179ae3ee8
[]
no_license
rscai/python99
281d00473c0dc977f58ba7511c5bcb6f38275771
3fa0cb7683ec8223259410fb6ea2967e3d0e6f61
refs/heads/master
2020-04-12T09:08:49.500799
2019-10-06T07:47:17
2019-10-06T07:47:17
162,393,238
0
0
null
null
null
null
UTF-8
Python
false
false
790
py
# A list of Goldbach compositions from python99.arithmetic.p201 import is_prime from python99.arithmetic.p204 import prime_generator import math def goldbach_list(lower, upper, min_prime_factor=0): return [x for x in [goldbach(even, min_prime_factor) for even in even_nums(lower, upper, mi...
[ "ray.s.cai@icloud.com" ]
ray.s.cai@icloud.com
f15c94f47d7cf0fbb915e73bca37f4000fee172b
8fc999f5262b5a2dadc830f1cc345f51b6dde862
/samples/conceptual_samples/functions/enumerate_function.py
11fdfb523aa3b9139a195ffe0c46779ab406a3cd
[]
no_license
pandiyan07/python_2.x_tutorial_for_beginners_and_intermediate
5ca5cb5fcfe7ce08d109fb32cdf8138176ac357a
a4c14deaa518fea1f8e95c2cc98783c8ca3bd4ae
refs/heads/master
2022-04-09T20:33:28.527653
2020-03-27T06:35:50
2020-03-27T06:35:50
250,226,804
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
# this is a sample python script program which is used to demonstrate the concept of enumerate built in function in the python scripting # language. for i,v in enumerate(['tic','tack','toe']): print i,'-',v # this is the end of the program file. happy coding..!!
[ "becool.pandiyan@gmail.com" ]
becool.pandiyan@gmail.com
85242539aeb51faefb57164d622aa34a9f448586
89812f6ab80008222bcf93a9b2ca614a60291738
/river/time_series/holt_winters.py
11afd133036663f6c9e404b62eaa8a6edfe84a8a
[ "BSD-3-Clause" ]
permissive
Pandinosaurus/river
47135f5b7e612f83d96f4a50f9d746dec834b16d
09a24d35c1f548239c54c1244973241bfe5c4edc
refs/heads/master
2023-08-27T21:08:12.553115
2021-11-09T22:10:17
2021-11-09T22:10:17
409,610,355
0
0
BSD-3-Clause
2021-11-10T04:13:30
2021-09-23T13:47:27
Python
UTF-8
Python
false
false
6,329
py
import operator import statistics from collections import deque from .base import Forecaster __all__ = ["HoltWinters"] class Component(deque): ... class AdditiveLevel(Component): def __init__(self, alpha): super().__init__([], maxlen=2) self.alpha = alpha def update(self, y, trend, se...
[ "noreply@github.com" ]
Pandinosaurus.noreply@github.com
c933e757285db1011743a3f267fcb8c3576b6e2f
bec6d5e1dc94c7229530aefd33a801953637acb5
/3ch/mnist.py
0d69dfebcb128690eec0c0861219e6ec2427fbfe
[]
no_license
WebAppEngineer/hands_on_ml
6b3f3c5b0ce69289c975dc42db9fc82766bc9beb
62a19624466d7d00caa47f760172efcb04b6dea1
refs/heads/master
2020-06-19T00:36:37.720951
2018-10-12T01:56:07
2018-10-12T01:56:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,517
py
import os, pdb import numpy as np import pandas as pd import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from sklearn.datasets import fetch_mldata from sklearn.linear_model import SGDClassifier from sklearn.model_selection import cross_val_score, StratifiedKFold, cross_val_predict from sklearn.metr...
[ "mccarviks@gmail.com" ]
mccarviks@gmail.com
12d9546549889ef6154b5507be8052e83c67feb5
711756b796d68035dc6a39060515200d1d37a274
/output_cog_tags/initial_2508.py
c688c4238de404a6dfd37ac60813eb1cd942d180
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,330
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
6f55f23df459c4493cdb78acf117563e94831ef7
b8755b5f0b5a3c1bba1270cc8f20dc172abb0634
/02-10分钟如何创建一个可以管理职位的后台/recruitment/recruitment/settings.py
a58ce1e0e7660f068ae68e04c0dd88a341fa0dff
[]
no_license
AndersonHJB/Django_Leraning
bf44af05b0e604342fd97cb8699385461cbbb965
95c34057f643b234478e72665c6454ebd99cb6cd
refs/heads/main
2023-07-12T02:47:34.289089
2021-08-15T10:17:32
2021-08-15T10:17:32
367,765,444
3
2
null
null
null
null
UTF-8
Python
false
false
3,088
py
""" Django settings for recruitment project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pat...
[ "1432803776@qq.com" ]
1432803776@qq.com
3bae43f7bd877325511010cbed8dd0ed6d313794
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/6/ps8.py
12394cdb453ca7d6f1fee3301fb9bd900bc94f8c
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
b405cb126d3e976154d3534a211d7c924676e808
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02682/s857771361.py
d205ccdcbde00b6bd04ef1defef77f456a20c864
[]
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
219
py
a, b, c, k = map(int, input().split()) max_val = 0 if k <= a: max_val += k else: max_val += a k -= a if k <= b: pass # break else: k -= b max_val -= k print(max_val)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b43322d399185982d5b64b3d61a54d2011130ca6
bdfdd067b98b0c93fab49dc0b61eb6160edc1175
/Day 1 sum of numbers in a string.py
23477d8ba2ef4eeaa9dac87ba223c44c656a2d6c
[]
no_license
AprajitaChhawi/365DaysOfCode.FEBRUARY
7b049ac92df68cb7162f68a66cfdb014a0bb45ba
6f9619e33e200247473543b0f9cbaa17b55782a2
refs/heads/main
2023-03-09T16:54:21.545637
2021-03-01T17:58:02
2021-03-01T17:58:02
336,838,447
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
#User function Template for python3 ''' Your task is to return the sum of all the numbers appearing in the given string. Function Arguments: s (given string) Return Type: integer ''' import re def findSum(s): a=[] a=[int(i) for i in re.split("[a-z]",s) if i.isdigit()] return sum(a) ...
[ "achhawip@gmail.com" ]
achhawip@gmail.com
3d41bb59afbe0048d46debc82e42718ccb3d96d5
2c7f40ad997de27ef13c368f84da6df2d2f3a565
/oci/auth.py
e71268e72f6333d2d3e553114b7b7349603e3d44
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
mliepold/cc-utils
ff88ba9f95064b598f33649005c8b6764a0dce3a
3f8c4b0d11d6a52d1605026f478371411daab81e
refs/heads/master
2023-06-01T18:36:44.089480
2021-06-14T14:42:47
2021-06-14T14:42:47
377,459,403
0
0
Apache-2.0
2021-06-16T10:43:02
2021-06-16T10:35:30
null
UTF-8
Python
false
false
3,538
py
import dataclasses import enum import operator import typing import oci.util class AuthType(enum.Enum): BASIC_AUTH = 'basic_auth' class Privileges(enum.Enum): READONLY = 'readonly' READWRITE = 'readwrite' def _asint(self, privileges): if privileges is self.READONLY: return 0 ...
[ "christian.cwienk@sap.com" ]
christian.cwienk@sap.com
01bde579ac5e8282b572898002630a3b05d69be0
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/N/NinaC/obesity_scraper_3_us.py
d60baf370cc2cca6e73d62152bc797eb7f588e6f
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,316
py
################################################################################### # Twitter API scraper - designed to be forked and used for more interesting things ################################################################################### import scraperwiki import simplejson import urllib2 # Get results f...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
1b85cda45f6371da032a7c90d41f74ee9956e9d4
bfa100593b7fc67ae65593bdddb357fa3d9e27cf
/quotes/migrations/0001_initial.py
9b07bac95358e974f2fd108e3f0c319e3ee86360
[]
no_license
wall-e-08/medigap-wagtail
e2342631004de047a4b3d09571dd88f2a6fc2286
1d7b77759f071eec89e29591e814523d4c433655
refs/heads/master
2020-05-20T17:27:43.966094
2019-04-30T06:25:58
2019-04-30T06:25:58
185,688,386
0
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
# Generated by Django 2.1.7 on 2019-04-07 09:58 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Lead', fields=[ ('id', models.AutoField(aut...
[ "debashis.buet08@gmail.com" ]
debashis.buet08@gmail.com
980b3f033059374e13f3f5fe9614b19c68e86ac1
51d0377511a5da902033fb9d80184db0e096fe2c
/18-linear-classifiers-in-python/2-loss-functions/03-comparing-the-logistic-and-hinge-losses.py
69c140b9a46811245c800484fcf7d7e5197fd13d
[]
no_license
sashakrasnov/datacamp
c28c6bda178163337baed646220b2f7dcc36047d
759f4cec297883907e21118f24a3449d84c80761
refs/heads/master
2021-12-07T02:54:51.190672
2021-09-17T21:05:29
2021-09-17T21:05:29
157,093,632
6
5
null
null
null
null
UTF-8
Python
false
false
874
py
''' Comparing the logistic and hinge losses In this exercise you'll create a plot of the logistic and hinge losses using their mathematical expressions, which are provided to you. The loss function diagram from the video is shown on the right. ''' import numpy as np import matplotlib.pyplot as plt ''' INSTRUCTIONS ...
[ "a@skrasnov.com" ]
a@skrasnov.com
f49f2e35c58478490b43d51f112079f4c750f693
2194b6c17f3153c5976d6ac4a9ab78211027adab
/otoroshi_admin_api_client/api/templates/otoroshicontrollersadminapi_templates_controllerinitiate_api_key_templates.py
fcb0e751d7ce49d5a2c84428e89ff712f4d09b14
[]
no_license
krezreb/otoroshi-admin-api-client
7fab5e873c9c5950d77fffce6bcf80d3fdf4c319
9b3156c11eac227024cfe4a26c0129618deb2c4d
refs/heads/master
2023-05-08T08:32:00.982987
2021-05-27T09:55:00
2021-05-27T09:55:00
371,324,636
0
0
null
null
null
null
UTF-8
Python
false
false
2,580
py
from typing import Any, Dict, Optional, Union import httpx from ...client import AuthenticatedClient from ...models.error_response import ErrorResponse from ...models.otoroshimodels_api_key import OtoroshimodelsApiKey from ...types import Response def _get_kwargs( *, client: AuthenticatedClient, ) -> Dict[s...
[ "josephbeeson@gmail.com" ]
josephbeeson@gmail.com
2dfa3b839998cf326bc38e466629f82853dae124
0a9cfe3d7c07e2a5997647ddbc04a73e7a0dc69d
/hivetools/lost_bee.py
23763356df196decad810b15952f20c16d07b8e0
[ "MIT" ]
permissive
brianoflondon/hivetools
7120ec87bb608ea17daae395c42f637fc8e9fe44
dbf97370503d2891cc953e136d226b098defa5ee
refs/heads/master
2022-04-21T01:30:15.289781
2020-04-16T15:30:14
2020-04-16T15:30:14
255,656,686
0
0
null
2020-04-14T16:03:25
2020-04-14T16:03:24
null
UTF-8
Python
false
false
627
py
#!/usr/bin/env python3 from getpass import getpass from beemgraphenebase.account import PasswordKey from tabulate import tabulate hive_id = "thecrazygm" hive_id = input("Hive User ID: ") brain_key = getpass(prompt='Master Password: ') roles = ["owner", "active", "posting", "memo"] data = [] for role in roles: ke...
[ "thecrazygm@gmail.com" ]
thecrazygm@gmail.com
68b80d00366ec28ca9861a1364f27fda71ec94d4
b137493f8d8167acfd4cedeb39fbc4abb8edf147
/tensor2tensor/models/research/next_frame_sv2p.py
910993303093ec38a0e537e21eaeb05e7afbdd6b
[ "Apache-2.0" ]
permissive
yufengm/tensor2tensor
254cd8600b68f92d8567ec775426a8aac33115ac
c88edeae7c5578b487f234ca8842d3580a082d99
refs/heads/master
2020-03-25T12:43:49.747320
2018-08-06T22:00:10
2018-08-06T22:00:32
143,790,807
1
0
null
2018-08-06T22:42:26
2018-08-06T22:42:25
null
UTF-8
Python
false
false
28,785
py
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
[ "copybara-piper@google.com" ]
copybara-piper@google.com
c1810bdae8eb260c21b70432f9e0091da1d8ee3a
c61798997614f4430a6a56b16e8d17fe75fb2f9c
/Yurii_Khomych/l_6_files/csv_examples/csv_read_dictionary.py
521b595e29954d34abd71fca21273664147b2280
[]
no_license
YuriiKhomych/ITEA_AC
ad944bbe74be88f306a45f38efa70765c5286162
f9eb147da1135a978929ae370d9c9fcd8dc59d21
refs/heads/master
2022-12-18T14:55:56.162451
2020-05-03T12:45:02
2020-05-03T12:45:02
234,373,863
0
9
null
2022-12-08T03:46:33
2020-01-16T17:26:50
Python
UTF-8
Python
false
false
480
py
import csv with open("employee_birthday.csv", mode="r") as csv_file: csv_reader = csv.DictReader(csv_file) line_count = 0 for row in csv_reader: if line_count == 0: print(f'Column names are {", ".join(row)}') line_count += 1 print( f'\t{row["name"]} works...
[ "yuriykhomich@gmail.com" ]
yuriykhomich@gmail.com
ac382ddbbaef11f5a3db3f6a26cb1703eeac2af9
949908be7a522279bc5947ee0be436ef058767a9
/code/generate_mcts_games.py
c6a85e7062e56d3eeeb9474ee28d5d3435bb39d0
[]
no_license
maxpumperla/deep_learning_and_the_game_of_go
3bd2bddce228b6696fb716eb0f18a2e9c82bb20c
c70cfe4a03dd2365dcb4295236755cca7a7178b7
refs/heads/master
2023-08-21T14:48:53.899001
2022-09-17T13:03:09
2022-09-17T13:03:09
108,328,408
955
402
null
2022-09-17T13:03:10
2017-10-25T21:32:32
Python
UTF-8
Python
false
false
3,187
py
# tag::generate_mcts_imports[] import argparse import numpy as np from dlgo.encoders import get_encoder_by_name from dlgo import goboard_fast as goboard from dlgo import mcts from dlgo.utils import print_board, print_move # end::generate_mcts_imports[] # tag::generate_mcts[] def generate_game(board_size, rounds, max...
[ "max.pumperla@googlemail.com" ]
max.pumperla@googlemail.com
d845487c0e8cfd54401601e8139b2f3acf4ad17a
3e63608e1cad90bc845c4580723e57ae7ca3f61d
/cartography/intel/oci/utils.py
e92ab4552703c97a1d2b485e2a3694912bb35905
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
lyft/cartography
06dcbf13907cbb9a31b75cd8b21f5721f7cc1b01
830b8944879a01f52b21ee12b6fddf245f9733cb
refs/heads/master
2023-08-31T12:27:59.752452
2023-08-28T20:42:12
2023-08-28T20:42:12
172,811,550
2,778
334
Apache-2.0
2023-09-13T04:59:46
2019-02-27T00:16:29
Python
UTF-8
Python
false
false
3,223
py
# Copyright (c) 2020, Oracle and/or its affiliates. # OCI intel module - utility functions import json from typing import Any from typing import Dict from typing import List import neo4j # Generic way to turn a OCI python object into the json response that you would see from calling the REST API. def oci_object_to_j...
[ "noreply@github.com" ]
lyft.noreply@github.com
1aaca2801000e12f5206239db1426efe9c79af26
e3bdb7844f634efd89109079d22cade713c4899d
/test/test_tele_check_cbp_payment_method.py
bc5d46fb45107545f525634ef2eb3c58cb505e6f
[]
no_license
pc-coholic/Python
5170c27da09b066c353e09539e404961f7ad50b7
b7251c31339b579f71fb7ee9db05be51e9e43361
refs/heads/master
2023-04-19T02:42:02.914726
2021-04-26T16:07:37
2021-04-26T16:07:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
# coding: utf-8 """ Payment Gateway API Specification. The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501 The ve...
[ "emargules@bluepay.com" ]
emargules@bluepay.com
4f90609902c001000dd8541fb9265dbecca5a894
7eebbfaee45fdc57c4fc6ba32c87c35be1e62b14
/airbyte-integrations/connectors/source-shopify/main.py
583c32023bc0f39e94d299da40e63db51016e230
[ "MIT", "Elastic-2.0" ]
permissive
Velocity-Engineering/airbyte
b6e1fcead5b9fd7c74d50b9f27118654604dc8e0
802a8184cdd11c1eb905a54ed07c8732b0c0b807
refs/heads/master
2023-07-31T15:16:27.644737
2021-09-28T08:43:51
2021-09-28T08:43:51
370,730,633
0
1
MIT
2021-06-08T05:58:44
2021-05-25T14:55:43
Java
UTF-8
Python
false
false
248
py
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import sys from airbyte_cdk.entrypoint import launch from source_shopify import SourceShopify if __name__ == "__main__": source = SourceShopify() launch(source, sys.argv[1:])
[ "noreply@github.com" ]
Velocity-Engineering.noreply@github.com
7f438642a7db1531b61af45a6b30465cec4404e4
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/python_all/116_13.py
c7ed19f6baf638e4c0f6144bd59a54b0499a494f
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
2,694
py
Python | Retain K consecutive elements Sometimes while working with data, we can have a problem in which we need to select some of the elements that occur K times consecutively. This problem can occur in many domains. Let’s discuss certain ways in which this problem can be solved. **Method #1 : Usinggroup...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
b2b118c86d4de3a1e077197eb9735bf522e54fbc
5ddcaa63a665b91b4928517a8463db497d581e79
/run.py
efa32721e6a61deed9332f8194da40c53460c644
[]
no_license
vgoklani/aiohttpvsgrequests
5c1144977a94dfad7fe1f5866004b37d69a232e0
ef260649ff16c886a8d0e7f0d1a85dee89af3e15
refs/heads/master
2021-01-19T20:47:00.745877
2016-12-08T08:03:05
2016-12-08T08:03:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,650
py
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Compare aiohttp and grequests ''' import logging import hashlib import asyncio import time import aiohttp import grequests from hdx.data.resource import Resource from hdx.facades.simple import facade from requests import HTTPError from requests import Session from requests...
[ "rans@email.com" ]
rans@email.com
ed607b1844d38659474ab6f087fdead0907d0fe9
4a6d784fd44b57d6b2aabae9d2381884cc880aea
/form_cuotas_vencidas_30dias.py
120d8721442c011b7db999e92002e91e49ab82c2
[]
no_license
blueautomatic/Slam_Sistema_creditos
0e46c2f23d396793122739f838073eff77df88e3
7eb20a90abce53f10dcd18e3d47e9a5f330acbbd
refs/heads/master
2020-03-26T19:13:36.634824
2018-02-05T15:46:42
2018-02-05T15:46:42
145,254,325
0
0
null
2018-08-18T21:37:23
2018-08-18T21:37:23
null
UTF-8
Python
false
false
8,848
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'form_cuotas_vencidas_30dias.ui' # # Created: Fri Feb 24 11:25:32 2017 # by: PyQt5 UI code generator 5.2.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_form_cuotas_vencida...
[ "lriccombene@gmail.com" ]
lriccombene@gmail.com
e7bd2854db85a4f829ca05755bd0a9ded7ee7c71
a79b734bec4bb0dacfee46f0fb8f33f2872581a9
/p_gen_data.py
dc876af9fb474224758838e2b4821abbead64689
[]
no_license
ryosuke071111/cnn_seq2seq
530d27e0efa96fe9181c0708000897261ca489b6
fda5ffa68b37d3f537ccb8b5ec142c1904c455a8
refs/heads/master
2020-07-02T15:53:20.137133
2019-08-12T11:23:49
2019-08-12T11:23:49
201,579,242
0
0
null
null
null
null
UTF-8
Python
false
false
2,564
py
import glob from tensorflow.core.example import example_pb2 import struct from nltk.tokenize import word_tokenize, sent_tokenize from utils import * from tqdm import tqdm PATH="/home/ryosuke/desktop/data_set/cnn_stories_tokenized/" def sent_split(text): words =[sent for sent in sent_tokenize(text)] words = ...
[ "ryosuke0711993@gmail.com" ]
ryosuke0711993@gmail.com
ea43039889c71780bfb652cd23a7ffd233c9b35a
81fe7f2faea91785ee13cb0297ef9228d832be93
/AdventOfCode/19/day09.py
2aa42d5b34b1bbbd2b3ff0b8293a3fedf050b62b
[]
no_license
blegloannec/CodeProblems
92349c36e1a35cfc1c48206943d9c2686ea526f8
77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e
refs/heads/master
2022-05-16T20:20:40.578760
2021-12-30T11:10:25
2022-04-22T08:11:07
54,330,243
5
1
null
null
null
null
UTF-8
Python
false
false
2,371
py
#!/usr/bin/env python3 import sys from collections import deque P = list(map(int,sys.stdin.readline().strip().split(','))) class IntcodeComputer: def __init__(self, P, In=None): self.P = P[:] + [0]*10**3 # program copy & padding self.i = 0 if In is None: self.In = deque() ...
[ "blg@gmx.com" ]
blg@gmx.com
b15823ed5db74a6e8478495832ba2993301dad62
73e147e1d49656fafba5d4bf84df5ded2c4dca73
/team_9/cocos/test/test_tmx_autotest.py
bd9efdc51d8246157010fa676a115abee804a8b4
[ "LGPL-2.1-only", "CC-BY-NC-4.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-proprietary-license", "CC-BY-NC-SA-2.0", "BSD-3-Clause" ]
permissive
Donnyvdm/dojo19
2278747366c57bfc80eb9ee28ca617ec0a79bae3
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
refs/heads/master
2020-07-26T12:22:15.882800
2019-09-15T20:34:36
2019-09-15T20:34:36
208,642,183
1
0
BSD-3-Clause
2019-09-15T18:57:53
2019-09-15T18:57:52
null
UTF-8
Python
false
false
1,628
py
from __future__ import division, print_function, unicode_literals # This code is so you can run the samples without installing the package import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) # testinfo = "t 0.1, s, t 1.1, s, t 2.1, s, t 3.1, s, t 4.1, s, t 5.1, s, t 6.1, s, q" tags ...
[ "a.campello@wellcome.ac.uk" ]
a.campello@wellcome.ac.uk
ff895b5631505fd586f59614875869e82b3a902e
3468fe20cd1128eb8e18354c30490421e504e4af
/portal/settings.py
8b7e702f2ea68b929c9a21e3e46a15e97cb220eb
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
djpeluca/utopia-cms
7da45422ffc4f1f397f385ea37243f2745a758de
1e444afea565fdc734abf449b8ebe9b7c2c47d80
refs/heads/main
2023-08-19T23:04:44.666527
2021-10-27T01:55:11
2021-10-27T01:55:11
387,323,009
0
0
BSD-3-Clause
2021-07-19T03:03:48
2021-07-19T03:03:48
null
UTF-8
Python
false
false
14,263
py
# -*- coding: utf-8 -*- import sys from os.path import abspath, basename, dirname, join, realpath from datetime import datetime import mimetypes from freezegun import freeze_time from django.contrib.messages import constants as messages LAST_OLD_DAY = datetime(2014, 7, 22) FIRST_DAY = datetime(2009, 8, 1) PROJECT_A...
[ "apacheco@ladiaria.com.uy" ]
apacheco@ladiaria.com.uy
f19cac3711c4c978703670b4f20e4a32000bc39d
573a66e4f4753cc0f145de8d60340b4dd6206607
/JS-CS-Detection-byExample/Dataset (ALERT 5 GB)/362764/shogun-2.0.0/shogun-2.0.0/examples/undocumented/python_modular/kernel_linear_byte_modular.py
b06ecaf888f155e9958d54c81554c292997b5de8
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
mkaouer/Code-Smells-Detection-in-JavaScript
3919ec0d445637a7f7c5f570c724082d42248e1b
7130351703e19347884f95ce6d6ab1fb4f5cfbff
refs/heads/master
2023-03-09T18:04:26.971934
2022-03-23T22:04:28
2022-03-23T22:04:28
73,915,037
8
3
null
2023-02-28T23:00:07
2016-11-16T11:47:44
null
UTF-8
Python
false
false
974
py
#!/usr/bin/env python ########################################################################### # linear kernel on byte features ########################################################################### from tools.load import LoadMatrix from numpy import ubyte lm=LoadMatrix() traindat = ubyte(lm.load_numbers('../d...
[ "mmkaouer@umich.edu" ]
mmkaouer@umich.edu
c172f69311e43071b174976da7a5783ee9d8d304
e7fcc1d64cd95805918ab1b5786bf81a92f973ef
/2016/day01/day01.py
7d9cd2be2ff4f76e40d4eb42d46a8370f43b0be6
[]
no_license
trolen/advent-of-code
8145c1e36fea04e53d4b7a885efcc2da71fbfe57
0a4e022a6a810d86e044a15036a2f5778f0d38af
refs/heads/master
2023-02-26T13:11:58.341006
2023-02-20T23:22:27
2023-02-20T23:22:27
54,579,550
0
0
null
null
null
null
UTF-8
Python
false
false
1,847
py
#! /usr/bin/env python3 DIRECTIONS = [(0, 1), (1, 0), (0, -1), (-1, 0)] # N, E, S, W class Position: def __init__(self): self.reset() def reset(self): self._x, self._y = (0, 0) self._direction = 0 self._positions = [] def get_distance(self): return abs(self._x) + ...
[ "timothy.rolen@gmail.com" ]
timothy.rolen@gmail.com
be73b3b89032e500668e954d0d7cbf1e4e038763
ba0e07b34def26c37ee22b9dac1714867f001fa5
/azure-graphrbac/azure/graphrbac/models/password_credential_paged.py
f4d5ef494856e72642ca0a714abfe73012a38552
[ "MIT" ]
permissive
CharaD7/azure-sdk-for-python
b11a08ac7d24a22a808a18203072b4c7bd264dfa
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
refs/heads/master
2023-05-12T12:34:26.172873
2016-10-26T21:35:20
2016-10-26T21:35:20
72,448,760
1
0
MIT
2023-05-04T17:15:01
2016-10-31T15:14:09
Python
UTF-8
Python
false
false
914
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 ...
[ "autorestci@microsoft.com" ]
autorestci@microsoft.com
8e39496238ae7abc1a45eade812fa000e74ef3bb
11e81ec279ec17196bdbc75ce334305e95929b52
/8주차 이분탐색,그래프/파티/김승욱.py
526773d77fb4084503893cb8d8223ccb823b07d7
[]
no_license
wheejoo/PythonCodeStudy
70992e1723d621fec933786dd2b3faa5d2518763
9e324f9deee1be044c07b64e7480c6bfac42876c
refs/heads/main
2023-07-28T23:11:19.335117
2021-10-03T11:37:09
2021-10-03T11:37:09
382,866,256
1
4
null
null
null
null
UTF-8
Python
false
false
1,227
py
# x를 시작으로 가장 먼곳 간다음 그 곳에서 다시 x까지 거리 구하려햇는데 # 왕복 거리가 다르므로 이렇게 풀면 안됨 # 모든 정점에서 x까지 최단거리 구하고 # 다시 x에서 모든 거리까지 최단거리 구해서 서로 더한다음 # 가장 큰 값구함 import heapq import sys input = sys.stdin.readline n, m, x = map(int,input().split()) INF = sys.maxsize grpah = [[] for _ in range(n+1)] maxx = 0 for i in range(m): a,b,c = map...
[ "rlatmd0829@naver.com" ]
rlatmd0829@naver.com
ddc056b2b37e8b40bdb6264c89407197605144ef
566ce57c0a56a492895dc5b2e4b7ae1b49b301dd
/job/urls.py
2ca32cf10b8d4220993e331027bcaabdfa5591c6
[]
no_license
ingafter60/job-portal
178e81c0f1d3fc4527242cf8c9bcc29c5d413ac9
6af2460927a29c914df74ea10172a731fcd528c6
refs/heads/master
2022-11-26T09:27:23.543390
2020-07-15T03:40:47
2020-07-15T03:40:47
279,142,881
1
0
null
null
null
null
UTF-8
Python
false
false
214
py
# job/urls.py from django.contrib import admin from django.urls import path, include urlpatterns = [ path('users/', include('users.urls')), path('', include('jobs.urls')), path('admin/', admin.site.urls), ]
[ "inyoman_gurnitha@yahoo.com" ]
inyoman_gurnitha@yahoo.com
68adf7e197ced3869d0d0a33c74355024394305e
0beaf9d78d03100b2aebaaac38fb343d425f2b6a
/tests/regression/gsheet/test_chrome_gsheet_100r_number_chars_image.py
bc85a9757ae1b561082d29b318d73a1b600482a8
[]
no_license
digitarald/Hasal
462fc044bb4a754c8d76c0bfb0df519f1786fdcc
c496afae6ec2e3743148f3a6288b78f120100513
refs/heads/master
2021-01-13T14:29:44.471037
2016-11-04T10:49:19
2016-11-04T10:49:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
from lib.perfBaseTest import PerfBaseTest class TestSikuli(PerfBaseTest): def setUp(self): super(TestSikuli, self).setUp() def test_chrome_gsheet_100r_number_chars_image(self): self.test_url = self.env.GSHEET_TEST_URL_SPEC % self.env.TEST_TARGET_ID_100R_NUMBER_ENCHAR_IMAGE self.sikul...
[ "sho@mozilla.com" ]
sho@mozilla.com
f89f2605057672e195be30599e8b17bd6843fffa
3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be
/google-cloud-sdk/lib/googlecloudsdk/command_lib/container/gkeonprem/flags.py
65a11cb83a4f743b2ab1aef526415180dfa7ce70
[ "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
3,400
py
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "gcloud@google.com" ]
gcloud@google.com
02cc868019621649a62b17392c2f8891804a69a6
696e35ccdf167c3f6b1a7f5458406d3bb81987c9
/mash/DEPS
681fd163d9adfc6508b88a7df485d548ae8c59da
[ "BSD-3-Clause" ]
permissive
mgh3326/iridium-browser
064e91a5e37f4e8501ea971483bd1c76297261c3
e7de6a434d2659f02e94917be364a904a442d2d0
refs/heads/master
2023-03-30T16:18:27.391772
2019-04-24T02:14:32
2019-04-24T02:14:32
183,128,065
0
0
BSD-3-Clause
2019-11-30T06:06:02
2019-04-24T02:04:51
null
UTF-8
Python
false
false
279
include_rules = [ "+ash/public", "+components/prefs", "+components/viz/common", "+mojo/converters", "+mojo/public", "+services/catalog/public", "+services/service_manager", "+services/ws/common", "+services/ws/public", "+third_party/skia/include", "+ui", ]
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
40ce2d0ef01f6a45b190fa3ad50ad6e90dda63f5
b500996a0b29829fde6afe8b23178ca9df4a239d
/rydinfap/src/apps/vehfifthwkday.py
f0553cf45ea5c4557c83129f4448663dcbf8cd3f
[]
no_license
eocampo2000/test-code
48c4d444e323eef5e6fe7e61b018952ef3cd4134
49328664243e1a9daf9c567d1aaaa19fd4654c02
refs/heads/master
2016-08-11T07:35:31.346464
2016-02-13T12:33:55
2016-02-13T12:33:55
51,642,188
0
0
null
null
null
null
UTF-8
Python
false
false
10,311
py
''' Created on June 18, 2015 @author: eocampo Vehicle DB2 Conversion 5th workday Following is the list of wkf that need to be ran in sequential order: wkf_part_dimension_monthly wkf_rfp_parts_us_can_monthly wkf_rfp_compliance_monthly wkf_jobr_compliance_monthly wkf_ser_compliance_monthly wk...
[ "eocampo1000@hotmail.com" ]
eocampo1000@hotmail.com
6a83f1a2c02e53428cf6622fc3cc28737370842f
c47340ae6bcac6002961cc2c6d2fecb353c1e502
/test/test_known_hosts.py
1c2c8b6867e85b61f8a35c508543f3fccb4a802f
[ "MIT" ]
permissive
rafaeldelrey/controlm_py
6d9f56b8b6e72750f329d85b932ace6c41002cbd
ed1eb648d1d23e587321227217cbfcc5065535ab
refs/heads/main
2023-04-23T09:01:32.024725
2021-05-19T00:25:53
2021-05-19T00:25:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.20.115 Contact: customer_support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import con...
[ "dcompane@gmail.com" ]
dcompane@gmail.com
c0367113441a8db2c3f75729fd8ff004260f1624
fdbcbb95a34e05e015c3ece6a071b04915c70346
/code_interview/settings.py
abae8f9ec0cbf5a01bc576629629e91621ec3687
[ "Apache-2.0" ]
permissive
nonbeing/codeinterview-backend
ed0e8f4d4dddbc25e235a817cfbc22e491c5c5c9
f44a592640a4a663daebef06561063c062c8acb0
refs/heads/master
2022-09-04T11:28:04.105984
2020-06-01T05:13:22
2020-06-01T05:13:22
268,828,769
1
0
Apache-2.0
2020-06-02T14:49:35
2020-06-02T14:49:35
null
UTF-8
Python
false
false
3,870
py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'j%4s9n79np!^nrq3&h4=6a8r2c^ex9s)gg3s(zsx((o@qll2yj' DEBUG = True ALLOWED_HOSTS = [] # Celery config CELERY_BROKER_URL = 'pyamqp://' CELERY_RESULT_BACKEND = 'redis://' CELERY_TASK_ROUTES = { # WARNING: room.tasks stil...
[ "areebbeigh@gmail.com" ]
areebbeigh@gmail.com
3e02711859000bf568d3065860caad09b02d70f6
8aa5b087176a5de567664a9377eda56641cda628
/binaryapi/ws/chanels/contract_update_history.py
3a6a664953571745700447201f3bdf44426e7027
[]
no_license
pabloapdz/binaryapi
ce55d2f4d125b2725ae0c5b23b953521c792cf27
c2cca1ec144d10b885df7aeda03c7c63dbe673de
refs/heads/master
2022-11-19T16:10:04.567328
2020-07-23T03:00:40
2020-07-23T03:00:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
"""Module for Binary contract_update_history websocket chanel.""" from binaryapi.ws.chanels.base import Base # https://developers.binary.com/api/#contract_update_history class ContractUpdateHistory(Base): """Class for Binary contract_update_history websocket chanel.""" name = "contract_update_history" ...
[ "mdn522@gmail.com" ]
mdn522@gmail.com
b91f7696711118f9d042b44bc9aa22203a40a6ba
ef3d4130f28c7c589c646b15d19010cf426fc0f6
/doc/src/LectureNotes/_build/jupyter_execute/chapter3.py
d14bfd161844b30e6a3a7b6032fbca948f26603f
[ "CC0-1.0" ]
permissive
CompPhysics/MachineLearning
54e1123a96060d824307f270415646494783cff5
00a2bd1a7efde5fbfd9b9d6d6c365dcd82fe8baf
refs/heads/master
2023-09-06T02:34:28.559589
2023-09-05T13:16:27
2023-09-05T13:16:27
103,986,991
154
136
CC0-1.0
2022-11-18T11:01:02
2017-09-18T20:11:45
null
UTF-8
Python
false
false
58,293
py
# Getting started, our first data and Machine Learning encounters ## Introduction Our emphasis throughout this series of lectures is on understanding the mathematical aspects of different algorithms used in the fields of data analysis and machine learning. However, where possible we will emphasize the importance ...
[ "morten.hjorth-jensen@fys.uio.no" ]
morten.hjorth-jensen@fys.uio.no
2fba0ba36775b47980f0366230afbcb1da18fd79
749efa5eb1ea53a5372b31832ed74d85dc15f641
/temporal_graph/structure_network/structure_graph.py
75ee3f2cae8ea41f57d59fa4cfb7acf6a2211fdc
[]
no_license
summukhe/TemporalGraph
ac8f7be103620b5d53aeae6e6f462d2f74cd5f8c
722fedaf737950ac32d4dabd830afbd241a03a2c
refs/heads/master
2020-05-05T03:17:05.918359
2019-06-01T05:40:49
2019-06-01T05:40:49
179,666,707
0
0
null
null
null
null
UTF-8
Python
false
false
5,220
py
import numpy as np from copy import deepcopy from temporal_graph.network_analysis import GeometricGraph3d from temporal_graph.spatial_ds import * from temporal_graph.pdb_processor import * from temporal_graph.force_field import * __version__ = "1.0" __all__ = ['contact_graph', 'potential_contact_graph', ...
[ "sumant199@gmail.com" ]
sumant199@gmail.com
58e4e79d5aff5d675c44d475f8eb78c71f373b12
20d9130fdc21756c4f8fe255583922352f5c5762
/src/DIRAC/DataManagementSystem/Service/LcgFileCatalogProxyHandler.py
ba7ea68222b2cc3e09dd20556e2c46165ff46f1b
[]
no_license
bopopescu/bes3-jinr
095314e43f41f08bd48b248fe3ca627a5c009f58
fdfd852c92a56192b8ee9970b66f0136e6e0afff
refs/heads/master
2022-11-26T06:01:36.718508
2014-03-17T06:03:50
2014-03-17T06:03:50
282,113,617
0
0
null
2020-07-24T03:30:10
2020-07-24T03:30:09
null
UTF-8
Python
false
false
3,628
py
######################################################################## # $HeadURL $ # File: LcgFileCatalogProxyHandler.py ######################################################################## """ :mod: LcgFileCatalogProxyHandler ================================ .. module: LcgFileCatalogProxyHandler ...
[ "gavelock@gmail.com" ]
gavelock@gmail.com
ff091989b08d7360d35edcde8d929dbfa9826630
185960fa68ac9ff6377eff50e3afc3900827c264
/one_model_n_data.py
29e8ab68e888ca6f56013c0a4b34873b52af055a
[]
no_license
enjoysport2022/Incident_Detection
0a9158e163ff5c74c7d2bb1ebae6fad8adb53de4
87b6848ae3f038e7eab9c0c40c0ea19efa27208c
refs/heads/master
2023-02-22T11:29:00.385996
2015-12-07T03:21:07
2015-12-07T03:21:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,730
py
# -*- coding: UTF-8 -*- #运行程序需要安装numpy,scipy,sklearn # 需要导入的库: import time import requests import conf start=time.clock() import csv from sklearn.svm import SVC import numpy as np from sklearn import preprocessing,neighbors from sklearn.cross_validation import train_test_split from sklearn.metrics import confusion_mat...
[ "946691288@qq.com" ]
946691288@qq.com
1352905030391c025ff13e169795a5a478951b82
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/LJ4250-MIB.py
31ae0e9723d805ae04c3db23ae971db782eaad75
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
416,747
py
# # PySNMP MIB module LJ4250-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LJ4250-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:07:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
280d992fa5b09c52dc7e19f51da135e40cdd64ec
d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4
/AtCoder/ABC-C/112probC3.py
c3bbb316c6ac065245c203087a439022efbf8c8b
[]
no_license
wattaihei/ProgrammingContest
0d34f42f60fa6693e04c933c978527ffaddceda7
c26de8d42790651aaee56df0956e0b206d1cceb4
refs/heads/master
2023-04-22T19:43:43.394907
2021-05-02T13:05:21
2021-05-02T13:05:21
264,400,706
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
N = int(input()) P = [list(map(int, input().split())) for _ in range(N)] for cx in range(101): for cy in range(101): H = -1 ok = True for x, y, h in P: if h == 0: continue Hi = abs(x-cx) + abs(y-cy) + h if H == -1: H = Hi ...
[ "wattaihei.rapyuta@gmail.com" ]
wattaihei.rapyuta@gmail.com
caf26437cd133ac65dc531abaf3190336ec1705c
a9e608a9af7ccd94f4581b29c61e6cf0ac7a5080
/macOS/bee1.app/Contents/Resources/python/lib/python3.6/test/test_platform.py
5756e1cccd15dfc38b5fa177d74c9ffd849485b0
[ "Python-2.0", "BSD-3-Clause" ]
permissive
leewonmoh/macrepo1
0d32ec61ee57af6b5018457dec5604848f246338
d8f15145fac127c1c7294f01ad39187f76b76ac2
refs/heads/master
2022-11-12T20:51:18.832798
2018-05-31T04:35:17
2018-05-31T04:35:17
134,810,313
0
1
BSD-3-Clause
2022-10-26T07:05:14
2018-05-25T06:01:32
Python
UTF-8
Python
false
false
15,022
py
from unittest import mock import os import platform import subprocess import sys import tempfile import unittest import warnings from test import support class PlatformTest(unittest.TestCase): def test_architecture(self): res = platform.architecture() @support.skip_unless_symlink @unittest.skipU...
[ "lee.wonmoh@gmail.com" ]
lee.wonmoh@gmail.com
388b1376ecae66dea21f6eb31224085c51938a87
426f216e3d38d2030d337c8be6463cc4cd7af6c3
/day08/monitor/server/conf/services/generic.py
abc781d82c426c6dae6cf7b1f236a2e0e65bc7f2
[ "Apache-2.0" ]
permissive
zhangyage/Python-oldboy
c7b43801935fc9e08e973ee0b852daa8e8667fb7
a95c1b465929e2be641e425fcb5e15b366800831
refs/heads/master
2021-01-23T02:59:37.574638
2019-10-27T05:35:58
2019-10-27T05:35:58
86,039,220
1
0
null
null
null
null
UTF-8
Python
false
false
364
py
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' 通用的 定义的是基本的监控项目 service ''' class BaseService(object): def __init__(self): self.name = 'BaseService' self.interval = 300 #监控间隔 self.last_time = 0 self.plugin_name = 'your_plugin' #监控插件 self.triggers = {} #监控阈值
[ "zhangyage2015@163.com" ]
zhangyage2015@163.com
3af48aef1784b977a278aaf5bba88fe616c0c1b5
cc64a1dfa57d4b667129efdadb97506bafce73f0
/letsencrypt-nginx/setup.py
a37b8222b05d005279f96320447da3dd50ac18f6
[ "Apache-2.0", "MIT" ]
permissive
ryanwinchester-forks/letsencrypt
83e027e3f4e78c5b4fad5fc3cc5676d2cde1f8e9
9bff9c0edf0f1fa28684332c17729473aa42ebca
refs/heads/master
2021-01-18T02:00:13.041678
2015-10-20T16:43:55
2015-10-20T16:43:55
44,626,314
0
1
null
null
null
null
UTF-8
Python
false
false
1,631
py
import sys from setuptools import setup from setuptools import find_packages version = '0.1.0.dev0' install_requires = [ 'acme=={0}'.format(version), 'letsencrypt=={0}'.format(version), 'PyOpenSSL', 'pyparsing>=1.5.5', # Python3 support; perhaps unnecessary? 'setuptools', # pkg_resources '...
[ "jakub@warmuz.org" ]
jakub@warmuz.org
68a7b0ac67b7143ea278c5563671863e3fc5a2e8
b8ba03b7aa90556aebda6940f7d49daf32bd5ed9
/debug_toolbar_autoreload/__init__.py
e12f64e055d013d7e5df1f0be7ecc4d9aafaf9d2
[ "BSD-3-Clause" ]
permissive
OndrejIT/django-debug-toolbar-autoreload
056df2f92213e5f4189cda4d7236dbc8811a7eff
8cbdb06b9b40f2548bcccfd9dcb04ef56166771a
refs/heads/master
2020-03-21T05:32:28.276348
2014-04-23T19:20:42
2014-04-23T19:20:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
from .panels import AutoreloadPanel __version__ = '0.2.0'.split('.')
[ "gregor@muellegger.de" ]
gregor@muellegger.de
ae580464cc83075118e66de8f98e34b16370cc90
52b5773617a1b972a905de4d692540d26ff74926
/.history/fractions_20200802121517.py
abb8224836def842553093f1a7ab4d84e93a4fd7
[]
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,432
py
def fractions(numerator,denominator): if denominator == 0 : return str(numerator) number = numerator / denominator if numerator % denominator == 0: return str(numerator // denominator) newStr = str(number) print(newStr) largeStr = newStr.split(".") if len(largeStr[1]) > 1: ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
aed016ed1a15167c9ddb335b87695a86c7f128b7
0738d9f85b98a7e30d7f33b4fe94ceb58f44b123
/Algorithm/Backtracking/Python/N_queen_problem.py
69015ddf23b8dd022f18b5baa90d480ccbfc7420
[]
no_license
arifkhan1990/Competitive-Programming
e51606b6bafc0671e8799df4297529b27eb6488e
9b8ca6e8f2ec4c74ea314e8d80657ac97489a315
refs/heads/master
2022-10-28T19:31:16.818123
2022-10-14T21:32:51
2022-10-14T21:32:51
199,027,360
5
4
null
null
null
null
UTF-8
Python
false
false
778
py
def solveNQ(n): col = set() posDiag = set() # r+c negDiag = set() # r-c ans = [] board = [['0'] * n for _ in range(n)] def backtraking(r): if r == n: copy = ["".join(r) for r in board] ans.append(copy) return for c in range(n...
[ "arifkhanshubro@gmail.com" ]
arifkhanshubro@gmail.com
2e559d799618df295505bb747e712d4de41097c4
09efb7c148e82c22ce6cc7a17b5140aa03aa6e55
/env/lib/python3.6/site-packages/pandas/tests/tslibs/test_parse_iso8601.py
a6e7aee46b485b6b524f363351f1bb011b8b0b0e
[ "MIT" ]
permissive
harryturr/harryturr_garmin_dashboard
53071a23b267116e1945ae93d36e2a978c411261
734e04f8257f9f84f2553efeb7e73920e35aadc9
refs/heads/master
2023-01-19T22:10:57.374029
2020-01-29T10:47:56
2020-01-29T10:47:56
235,609,069
4
0
MIT
2023-01-05T05:51:27
2020-01-22T16:00:13
Python
UTF-8
Python
false
false
2,108
py
from datetime import datetime import pytest from pandas._libs import tslib @pytest.mark.parametrize( "date_str, exp", [ ("2011-01-02", datetime(2011, 1, 2)), ("2011-1-2", datetime(2011, 1, 2)), ("2011-01", datetime(2011, 1, 1)), ("2011-1", datetime(2011, 1, 1)), ("201...
[ "griffin.harrisonn@gmail.com" ]
griffin.harrisonn@gmail.com
ea41839b6a0a26d593362635192d222831c3f1b4
18ad97292b34a679b8dea8a85090541c5bbf6174
/candlebox.py
72e9d35d1aae4302ce3baca36368789c9c7073a3
[]
no_license
Jyotirm0y/kattis
b941044e39dc36d169450480fc33fd33bd2e0f8e
2b9c1819ba29419bbea3db2e8ad7851155abbb3a
refs/heads/master
2023-05-31T21:11:38.350044
2021-06-12T08:21:47
2021-06-12T08:21:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
import math d = int(input()) r = int(input()) t = int(input()) x = math.ceil(math.sqrt(2*(r+6))) y = x - d while (x*(x+1)//2)-6 + (y*(y+1)//2)-3 != r + t: x -= 1 y -= 1 print(r-((x*(x+1)//2)-6))
[ "ainunnajib@gmail.com" ]
ainunnajib@gmail.com
9684ed8877dc1d5f50b40a958207c71a45c2687a
259cc507d97bfeff84d21de3a0ab56640676a9eb
/venv1/Lib/site-packages/tensorflow/contrib/eager/python/datasets.py
f9b6f54e4482a424f8f775e0fbbf659cfb0a31e7
[ "MIT", "Apache-2.0" ]
permissive
Soum-Soum/Tensorflow_Face_Finder
c3ef71b6f718f6720b80f8760d28b6ca6e11e6d2
fec6c15d2df7012608511ad87f4b55731bf99478
refs/heads/master
2020-03-22T20:31:39.606644
2018-07-12T13:47:56
2018-07-12T13:47:56
140,607,068
0
0
null
null
null
null
UTF-8
Python
false
false
8,168
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "pes.carceller@gmail.com" ]
pes.carceller@gmail.com
5b645ba1468371a926405216b7d6b9b209180c2f
a87f791370ca99a5bbc45e9230f786aa212ba34c
/gif.py
acb1515dcdbeb869aacce18692864e311889db67
[]
no_license
muffleyd/fullgif
97129b64d499273de97c08e7df9489a20cdb6c39
fcbc375f3f135a07ecd9db28659c2868e0cc0428
refs/heads/main
2023-07-18T06:23:37.777841
2023-07-10T08:22:50
2023-07-10T08:22:50
403,776,647
0
0
null
null
null
null
UTF-8
Python
false
false
21,814
py
import sys import time VERBOSE = False USABLE = True ENFORCE_VERSION = False COERCE_DISPOSAL_METHOD = True # If the gif provides 0 as a frame delay, use this instead DEFAULT_FRAME_DELAY = 10 # The minimum allowed frame delay. Any non-zero lower frame delay will be set to this instead. MINIMUM_FRAME_DELAY ...
[ "devnull@localhost" ]
devnull@localhost
66358a8cd5f8c3683912d15e44b84dc84ab92762
0b2ffe7092e4008c73fdbf8791d107a2ce583c5d
/terraform_builder/release.py
e459a6e688e3c9d51565d16f56827ef2e2a73d4d
[ "MIT" ]
permissive
mrlesmithjr/terraform-builder
1f960741ca5a37a862e2498b8ad81a31dffc13b2
08ed71333e988682ce50c6ef865fdd8ba27de395
refs/heads/master
2022-10-16T03:05:34.351002
2020-06-19T03:53:53
2020-06-19T03:53:53
248,327,103
8
0
MIT
2022-09-30T20:02:28
2020-03-18T19:43:30
Python
UTF-8
Python
false
false
160
py
"""terraform_builder/release.py""" # Version tracking for package. __author__ = 'Larry Smith Jr.' __version__ = '0.1.0' __package_name__ = 'terraform_builder'
[ "mrlesmithjr@gmail.com" ]
mrlesmithjr@gmail.com
bcabfd47909ebc6b12e84806dd30400748c428f8
60aae6fe961b6fadcbefa0154976012e84d29e6a
/molotov/tests/example5.py
4228ca09bfcc30279829df5c3a827295e5b6c979
[ "Apache-2.0" ]
permissive
tarekziade/molotov
33aefd27e08be35b0f010a4d125f287e798a24c2
27f7599d9d04d86964878f3cac78e91c8b231d61
refs/heads/main
2023-08-03T12:07:54.036876
2023-07-18T06:58:50
2023-07-18T06:58:50
35,025,578
45
4
Apache-2.0
2023-07-20T16:33:12
2015-05-04T09:17:25
Python
UTF-8
Python
false
false
534
py
""" This Molotov script demonstrates how to hook events. """ import molotov @molotov.events() async def print_request(event, **info): if event == "sending_request": print("=>") @molotov.events() async def print_response(event, **info): if event == "response_received": print("<=") @molot...
[ "tarek@ziade.org" ]
tarek@ziade.org
28f0d6e887ed8e595a30430734c4e3014c1d8068
641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2
/third_party/typ/typ/runner.py
a2f5c3df76df6af61852427cadf5157e4188e34b
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
massnetwork/mass-browser
7de0dfc541cbac00ffa7308541394bac1e945b76
67526da9358734698c067b7775be491423884339
refs/heads/master
2022-12-07T09:01:31.027715
2017-01-19T14:29:18
2017-01-19T14:29:18
73,799,690
4
4
BSD-3-Clause
2022-11-26T11:53:23
2016-11-15T09:49:29
null
UTF-8
Python
false
false
34,092
py
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "xElvis89x@gmail.com" ]
xElvis89x@gmail.com
1d65e5ff19c250a211d18eccd6cf2e6535690ff3
17c0eeede746d8dc164d27ef1f1eea3167aa0484
/array/215.kth_largest.py
0fce094deb14b5fdfde0e6bb5179c82d2c0c7d95
[]
no_license
mirzasaad/leetcode-solutions
a778c70e6ea5a94f9874fb90ec24d16d877ca5f2
53a3eb91411d5b732c91cbe7dafe44ed0ea7335f
refs/heads/master
2022-12-11T11:45:57.830633
2020-09-03T16:23:01
2020-09-03T16:23:01
264,158,622
0
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
def findKthLargest(self, nums: List[int], k: int) -> int: def partition(A, lo, hi): pivot = A[hi] left = lo for i in range(lo, hi): if A[i] < pivot: A[left], A[i] = A[i], A[left] left += 1 A[left], A[hi] = A[hi], A[left] return left lo, hi...
[ "saaad.mirxa@gmail.com" ]
saaad.mirxa@gmail.com
94426764e95cea8186ebe4c61ad187969f144777
010c5fbc97731286be00028ff33fc981d943bca3
/primal/src/code/impute/tests/color/TestHapColorGrouping.py
88894fe62015aa4406f73eff414b5c2598929575
[]
no_license
orenlivne/ober
6ce41e0f75d3a8baebc53e28d7f6ae4aeb645f30
810b16b2611f32c191182042240851152784edea
refs/heads/master
2021-01-23T13:48:49.172653
2014-04-03T13:57:44
2014-04-03T13:57:44
6,902,212
7
1
null
null
null
null
UTF-8
Python
false
false
8,304
py
''' ============================================================ Test haplotype coloring - older Group algorithm. Created on January 11, 2012 @author: Oren Livne <livne@uchicago.edu> ============================================================ ''' import unittest, numpy as np, impute as im from numpy.ma.testutils imp...
[ "oren.livne@gmail.com" ]
oren.livne@gmail.com
7ab2d68fe32381cc7e34646cb4a849d9d429ff60
9981e61fd113fac5af9825b78b57617e001160e0
/test/test/spiders/dmoz_spider.py
a88147643fae839c825207112f340fcb96388b17
[]
no_license
yfjelley/scrapy
9191ee94e4ed3732287bd040b5d2d2c16476ec12
dc9f1dc1e76603ea623e0ab9608084f0aedba802
refs/heads/master
2020-03-29T12:02:38.981328
2014-09-30T08:29:28
2014-09-30T08:29:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
from scrapy.spider import Spider class DmozSpider(Spider): name = "dmoz" allowed_domains = ["dmoz.org"] start_urls = [ "http://www.dmoz.org/Computers/Programming/Languages/Python/Books/", "http://www.dmoz.org/Computers/Programming/Languages/Python/Resources/" ] def parse(self, ...
[ "549636719@qq.com" ]
549636719@qq.com
38b7548ce83a179d7b6f7597294f350513664810
d7516481db51c31ae1690892a4bb19246c831ac4
/examples/reinforcement_learning_examples/dueling_ddqn_cartpole.py
4ebc65acb4014e727a5930cfdab6c1a1c501ad0b
[ "MIT" ]
permissive
gyunt/polyaxon
0f7c3b026635ad62d28316bf68fc806c51fc4ccb
0c99cca9ae9a2a4e957febe1970bf6508225f292
refs/heads/master
2021-09-01T07:02:51.453682
2017-12-20T23:02:37
2017-12-20T23:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from polyaxon_schemas.losses import HuberLossConfig from polyaxon_schemas.optimizers import SGDConfig from polyaxon_schemas.rl.explorations import DecayExplorationConfig import polyaxon as plx import tensorflow as tf def main(*...
[ "mouradmourafiq@gmail.com" ]
mouradmourafiq@gmail.com
29ad398e603eb50a181b953682529ba792218ca0
a8750439f200e4efc11715df797489f30e9828c6
/HackerEarth/lcs_3.py
dbc637ba24752327cc743e3495ecfbebd8558e33
[]
no_license
rajlath/rkl_codes
f657174305dc85c3fa07a6fff1c7c31cfe6e2f89
d4bcee3df2f501349feed7a26ef9828573aff873
refs/heads/master
2023-02-21T10:16:35.800612
2021-01-27T11:43:34
2021-01-27T11:43:34
110,989,354
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
def longest_increasing_subsequence(d): 'Return one of the L.I.S. of list d' l = [] for i in range(len(d)): l.append(max([l[j] for j in range(i) if l[j][-1] < d[i]] or [[]], key=len) + [d[i]]) return max(l, key=len) if __name__ == '__main__': for d in [[4,2,6,3,8]]: ...
[ "raj.lath@gmail.com" ]
raj.lath@gmail.com
8b80f1b6b8ed8568ac76e0489c295bc5f828cb2f
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/codewar/_CodeWars-Python-master/solutions/All_that_is_open_must_be_closed.py
d1806dce261468de3df26a597cc6e422df9c3fe6
[]
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
1,259
py
""" All that is open must be closed... http://www.codewars.com/kata/55679d644c58e2df2a00009c/train/python """ ___ is_balanced(source, caps count # dict stack # list ___ c __ source: __ c __ caps: i caps.i.. c) __ i % 2 __ 0: __ caps[i] __ caps[i + 1]: ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
7bb259878309e08221c4eed095a0919d1ca02770
314cf05e7acdfb2b83bf4a56de4ee65310bd28f2
/tests/outcomes/plot/bar/universal_tests/data_simple/matplotlib_x_column_string_plt.py
c460d965e0851ce752035f391d3b6331c3e2f2a1
[]
no_license
hyperskill/hs-test-python
9f0201904cb68f3eb35275bb0c3b9bb70164a1e7
260313395d0534d148738e031753eb8f60de2e13
refs/heads/master
2023-05-10T17:49:26.400853
2023-04-26T11:49:52
2023-04-26T11:49:52
214,279,373
20
7
null
2023-04-26T11:49:53
2019-10-10T20:28:03
Python
UTF-8
Python
false
false
343
py
def plot(): try: import pandas as pd import numpy as np import matplotlib.pyplot as plt except ModuleNotFoundError: return df = pd.DataFrame(np.array([[1, 2], [2, 3], [3, 4], [4, 5], [5, 6]]), columns=['one', 'two']) plt.bar(df['one'], df['two']) ...
[ "aaaaaa2493@yandex.ru" ]
aaaaaa2493@yandex.ru
73af4638f94ae74093fb40dec034e500c1ac23d7
5b3bd326998606188b45a7870852643eda024a97
/utils/test_utils_test.py
9ad7254bc0a5ca873d88901f4d4b83e24ee085cc
[]
no_license
KuznetsovIllya/clearml_od_toy
31556d0726d15a054c1c18317c361d97801381a4
92f15f04a023d4e0e165a250fddc3129144913d0
refs/heads/main
2023-04-11T05:55:56.248478
2021-04-14T15:59:40
2021-04-14T15:59:40
357,827,336
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:27f15ba16a39d8a04be71ec29510f423d102dac19cdfa5d0e7f09e8e55f55b4b size 3328
[ "illia.kuznietsov@modern-expo.com" ]
illia.kuznietsov@modern-expo.com
883988c4f6204ea5858a3976c048f2751e24b4f0
0c66e605e6e4129b09ea14dbb6aa353d18aaa027
/diventi/feedbacks/migrations/0006_auto_20181007_2139.py
b9a3a92a2f8c2db58839655d1c35c38662b0de2a
[ "Apache-2.0" ]
permissive
flavoi/diventi
58fbc8c947f387cbcc1ce607878a59a6f2b72313
c0b1efe2baa3ff816d6ee9a8e86623f297973ded
refs/heads/master
2023-07-20T09:32:35.897661
2023-07-11T19:44:26
2023-07-11T19:44:26
102,959,477
2
1
Apache-2.0
2023-02-08T01:03:17
2017-09-09T14:10:51
Python
UTF-8
Python
false
false
556
py
# Generated by Django 2.0.8 on 2018-10-07 19:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('feedbacks', '0005_auto_20181007_1951'), ] operations = [ migrations.RemoveField( model_name='question', name='survey...
[ "flavius476@gmail.com" ]
flavius476@gmail.com