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
76fa13ebb809c0d96b5283163e49de9cd30ee7b8
a1a934e69050884560074a633dfe33d21a8acfcb
/examples/scikit-learn/wine-quality/pyfunc_predict.py
7c172de9a2b0fc2d98a8ae608c1cb2eceea55122
[]
no_license
SkilledMinds/mlflow-fun
977a8bf0e052e72f2b98ee8a17ed017034e6a9a2
3caa0e5f61739357733cc165338c1d5a3c93f456
refs/heads/master
2020-04-29T00:56:28.995924
2019-03-13T23:57:14
2019-03-13T23:57:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
863
py
# Serve predictions with mlflow.pyfunc.load_pyfunc() from __future__ import print_function import sys import mlflow import mlflow.pyfunc import mlflow.tracking import util if __name__ == "__main__": if len(sys.argv) < 1: println("ERROR: Expecting RUN_ID PREDICTION_FILE") sys.exit(1) print("ML...
[ "amesar@users.noreply.github.co" ]
amesar@users.noreply.github.co
af7495869c9a3fb0198ffbf102eb36b70a3ba9c1
52efcaacf23e2345d09a1de61610a74df457057f
/auto_derby/scenes/single_mode/aoharu_battle_confirm.py
435e426f1990e5313b1c92abcfc2746f849e3917
[ "MIT" ]
permissive
debi-derby/auto-derby
78bc726e8243c8a25ddc13b364b7289f322caaaa
c2e5c138125cac6dc13dbd74045161ca03f6e5cf
refs/heads/master
2023-09-03T09:03:35.305321
2021-11-02T16:18:45
2021-11-02T16:18:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,371
py
# -*- coding=UTF-8 -*- # pyright: strict from __future__ import annotations from PIL.Image import Image from auto_derby import constants, template from typing import Any, Dict, Iterator, Text, Tuple from ... import action, templates, mathtools from ...scenes import Scene from ..scene import Scene, SceneHolder def...
[ "NateScarlet@Gmail.com" ]
NateScarlet@Gmail.com
4266fac216ad1d316fc296b75728ee21f701d3c9
509823ea14f04d5791486b56a592d7e7499d7d51
/parte11/11.1_intro_funciones.py
ee051acf132ed8184e654c6fdfe566647698afbb
[]
no_license
Fhernd/Python-CursoV2
7613144cbed0410501b68bedd289a4d7fbefe291
1ce30162d4335945227f7cbb875f99bc5f682b98
refs/heads/master
2023-08-08T05:09:44.167755
2023-08-05T19:59:38
2023-08-05T19:59:38
239,033,656
64
38
null
null
null
null
UTF-8
Python
false
false
2,212
py
# Introducción a las funciones - Unidades de reutilización y encapsulación de información: # 1. Creación de una función: print('1. Creación de una función:') def sumar(numero_1, numero_2): """ Suma dos números (sean enteros o punto flotante). Parameters: numero_1: primer valor a sumar. numero_2: ...
[ "johnortizo@outlook.com" ]
johnortizo@outlook.com
6ecc8fecb6fb0874525588a2bd17ddb89ac54107
ce083128fa87ca86c65059893aa8882d088461f5
/python/flask-admin-examples/layout_bootstrap3/.venv/bin/flask
ceac5d8fcd84d5ec7c11f2c2125baa483fdaae5c
[]
no_license
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
287
#!/root/NetBeansProjects/fedora/python/flask-admin-examples/layout_bootstrap3/.venv/bin/python # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
4b8b01a2cbf64cf1df9453d4779d4dae791226e7
d33bb5d51c432058d2c8efa0882f24c8dad2bb4f
/setup.py
31ab4adf42f3560f9bdf10a9780f3d01f23951c9
[ "Apache-2.0" ]
permissive
anuragarnab/fvcore
351e8a50fe27993646f774823f09331f62d161ae
da9d3658590c9f672998850542817acecd98facc
refs/heads/master
2023-03-08T23:21:27.825110
2021-02-24T22:30:32
2021-02-24T22:30:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os from os import path from setuptools import find_packages, setup def get_version(): init_py_path = path.join( path.abspath(path.dirname(__file__)), "fvcore", "__init__.py" ) init_py = open(ini...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
900590a83b7d3240581c458f12d539d50dab438f
e3ec7260806c1e2b045a0de93a150a5c3fc1b9df
/test/ResultsAndPrizes/top-3/test_top_3_winning_numbers_of_the_last_4_draws.py
e44b5657bb3991bf27e30b9fabd015acfc7b59ef
[ "Apache-2.0" ]
permissive
FearFactor1/SPA
58a21c9ec7a72a78f5ff50214e58faac43a3059d
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
refs/heads/master
2021-07-07T04:25:12.525595
2020-11-16T14:35:33
2020-11-16T14:35:33
204,684,720
1
0
null
null
null
null
UTF-8
Python
false
false
624
py
# Топ-3 + Выигрышные номера последних 4 тиражей def test_top_3_winning_numbers_last_4_draws(app): app.ResultAndPrizes.open_page_results_and_prizes() app.ResultAndPrizes.click_game_top_3() app.ResultAndPrizes.click_winning_numbers_of_the_last_4_draws() app.ResultAndPrizes.button_get_report_winners() ...
[ "zelezodoroznik@yandex.ru" ]
zelezodoroznik@yandex.ru
339b0f19ded0667fb6df857d1218b8eef24f7bde
4415f0a06536b66d4e7425b3995c4009516c180d
/World1/Challenge026.py
0091692c182ee489a19bb63c2c350ef621f2301b
[]
no_license
AndreisSirlene/Python-Exercises-Curso-em-Video-World-1-2-and-3
c73c2df958f5b83744af6288d26bb270aa30f8fd
62f59383eee9b8ab43ff78495cf30eb390638013
refs/heads/master
2023-03-30T11:34:12.672180
2021-03-24T23:34:17
2021-03-24T23:34:17
290,814,841
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
phrase = str(input('Type any phrase:')).upper().strip() print('In this phrase the letter I appears {} times'.format(phrase.count('I'))) print('The first letter I appears in the position {}'.format(phrase.find('I')+1)) print('The last position that letter I appears is {}'.format(phrase.rfind('I')+1))
[ "andreissirlene@gmail.com" ]
andreissirlene@gmail.com
2f2f1517049db9c6fdfb700fba9d62aacad883c3
c9aa34a74e9f095c4dec21acf0f63ce33ea54757
/UndocumentedScripts/CheckPnRDistanceAndTime.py
1258464347152b538a8564eff4fc80b7360d2030
[]
no_license
dvrpc/TIM3AnalysisScripts
d4a5308987279da421d4e9e76ca3ff6efe4e6490
cb8d50eead676b2950051a6d527be7a13de19b9f
refs/heads/main
2023-07-30T01:20:52.457588
2021-10-01T15:34:47
2021-10-01T15:34:47
372,885,969
0
0
null
null
null
null
UTF-8
Python
false
false
2,827
py
import pandas as pd import numpy as np import VisumPy.helpers as h def log(msg): Visum.Log(20480, msg) log('Reading Skims') zones = np.array(h.GetMulti(Visum.Net.Zones, "No")) def read_skim_tofrom_pnr(matno): global zones skim = pd.DataFrame(h.GetMatrix(Visum, matno), zones, zones) return skim skims...
[ "jflood@dvrpc.org" ]
jflood@dvrpc.org
aa90679fd2eaab72c0d8b81a0e0311920984962f
7db04177060d1b1d13bdf4e0f77cda83488d08bd
/backend/auth/email.py
d6bd5a020d88428569dc96d602dbacd15c3c499c
[]
no_license
AlenAlic/mailserver
6ed5aa32e7f97b732e3630c1c435f233851a4a6a
a37f022feb2e3a2433bf7bf15c1cef0fc364901b
refs/heads/master
2023-02-02T09:17:00.192475
2019-11-08T21:12:11
2019-11-08T21:12:11
220,267,001
0
0
null
2023-01-09T22:33:19
2019-11-07T15:21:32
CSS
UTF-8
Python
false
false
689
py
from flask import render_template from backend.email import send_email def send_password_reset_email(user): token = user.get_reset_password_token() send_email('Password reset', recipients=[user.email], text_body=render_template('email/reset_password.txt', user=user, token=token), ...
[ "aalic89@gmail.com" ]
aalic89@gmail.com
8bad4dd94e501f270bd800aaa6a30a287cc857bf
f0cec246e2f30f6b4ee5656f1cb6406dd0f7879a
/thingsboard_client/models/entity_relations_query.py
3809b31c1629f825572c4525d74a841698f3feae
[]
no_license
ascentio-tech/thingsboard-swagger-client
4e2f7c943e243ec8505c32dab0aa3d6cf1559105
1e8bf7664c281c29612fd5b44261f049ca7c44fd
refs/heads/master
2021-07-20T07:18:12.969459
2020-06-17T02:35:54
2020-06-17T02:35:54
184,322,192
1
1
null
null
null
null
UTF-8
Python
false
false
4,072
py
# coding: utf-8 """ Thingsboard REST API For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>. # noqa: E501 OpenAPI spec version: 2.0 Contact: info@thingsboard.io Generated by: https://github.com/swagger-...
[ "gmatheu@ascentio.com.ar" ]
gmatheu@ascentio.com.ar
04ce739cc903974beed995d84e696a06f1ca6a8c
a3366c118bb0b899cb436d89fc76f231d63366d2
/fc_toolbelt/tasks/project.py
7556d39a8d8e5356d343934d48baaa0b65a33e90
[]
no_license
futurecolors/fc-toolbelt
cd25ac1f6fc3e2414d12d8235374220944e5136e
2f0d33f612a676bf9ff2f8e769c4d4638b5e9212
refs/heads/master
2021-01-10T19:55:36.062097
2013-10-31T10:56:51
2013-10-31T10:56:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,897
py
# coding: utf-8 import os from functools import partial from fabric.colors import green from fabric.context_managers import cd, prefix from fabric.operations import run, sudo from fabric.state import env from fabric.tasks import Task, execute from fabric.utils import puts from fc_toolbelt.tasks.gitlab import BaseGitla...
[ "baryshev@gmail.com" ]
baryshev@gmail.com
5bb63b411ea64c0b78942432783bb9e0c6f28e02
51e7336e8bb447187cbe6ede2910f40700316dc1
/simics/monitorCore/hapCleaner.py
221c8265c08cba073d1765b15bf20f581efc1275
[]
no_license
hacker-steroids/RESim
69bac74a1b119c54d03b9ea0fda7a85cc45ea854
94498c699575f5078de415fac8c517d520cb2f94
refs/heads/master
2020-05-30T12:33:53.799610
2019-06-01T00:51:20
2019-06-01T00:51:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,388
py
''' Structures for cleaning up stop haps used in reverse execution ''' class HapCleaner(): hlist = None def __init__(self, cpu): self.hlist = [] self.cpu = cpu class HapType(): def __init__(self, htype, hap): self.htype = htype self.hap = hap def add(se...
[ "mfthomps@nps.edu" ]
mfthomps@nps.edu
ecb0e899bf03e3016709f291990968cbabf79748
ad054cebf4198f25d6ca9b37b0eef4783762ac04
/Algorithm/개념정리/Memoization/Memoization_새꼼달꼼 장사.py
a40cd5afd48fe22ef6fc0fc0565a9c744e7da794
[]
no_license
ges0531/TIL
4888d0bde5f84ad80caac63ffecf247d22daa0bf
54389b30e0a67f9c9a3329b1b59c43cdbb33a62c
refs/heads/master
2023-01-10T23:51:37.409124
2020-08-01T07:42:23
2020-08-01T07:42:23
195,916,245
0
0
null
2023-01-05T01:18:07
2019-07-09T02:17:43
Python
UTF-8
Python
false
false
1,470
py
def max_profit_memo(price_list, count, cache): # Base Case: 0개 혹은 1개면 부분 문제로 나눌 필요가 없기 때문에 가격을 바로 리턴한다 if count < 2: cache[count] = price_list[count] return price_list[count] # 이미 계산한 값이면 cache에 저장된 값을 리턴한다 if count in cache: return cache[count] # profit은 count개를 팔아서 가능한 최대...
[ "dmstndlekd@gmail.com" ]
dmstndlekd@gmail.com
2525c9a1cf70f389e645dc0637b9f0e5cb23f128
90bbeb45b900f1ccf57652d5439fc27be891f4c3
/Chapter 4/tests/test_plain_text_email.py
ce514bccc4dbd2a4fc127170ca723ae5ecbb9009
[]
no_license
RancyChepchirchir/ThoughtfulMachineLearningWithPython-py38
cdab296c063c5764e4255105b7c627ed022fbf75
d83959b9c21179b2e1a9d1f85428bc8d18d1fb36
refs/heads/master
2022-11-19T07:48:07.008197
2020-07-20T17:42:21
2020-07-20T17:42:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
import unittest import io import re from email_object import EmailObject class TestPlaintextEmailObject(unittest.TestCase): CLRF = "\n\n" def setUp(self): self.plain_file = 'fixtures/plain.eml' with io.open(self.plain_file, 'rb') as plaintext: self.text = plaintext.read().decode(...
[ "A.Fettouhi@gmail.com" ]
A.Fettouhi@gmail.com
4ddd105253fe7cf2e3d05abbd6b48b0b249eb296
2da798f1b31c6482d8f47bce394d78ccfae9d279
/raw_data_processing/GSE155513/SRS7124070/scripts/add_uns.py
ff439b564ac76b82fb7bfd77e135d2333a4e4386
[]
no_license
mariafiruleva/sc_athero_itmo_master
47378083201e0dbad327b98291bbf4e65d5d3cc5
e3c8c1b55d61b551957da13d109c8dfb56aa3173
refs/heads/main
2023-05-20T11:49:23.202549
2021-06-07T16:26:15
2021-06-07T16:26:15
373,524,898
0
0
null
null
null
null
UTF-8
Python
false
false
4,597
py
import argparse import re from urllib.request import urlopen, Request from xml.etree.ElementTree import parse import numpy as np import pandas as pd import scanpy def get_markers(markers_file: str) -> dict: markers = pd.read_csv(markers_file, sep='\t') return {k: np.array(list(v.values())) for k, v in markers...
[ "mmfiruleva@gmail.com" ]
mmfiruleva@gmail.com
4bfff399a77f0d64ddfa5d94b522b8f764483c1e
95ef92ea4cafc8865268f38a7cb03dc078f39846
/content/migrations/0001_initial.py
5a939b52afa3ff5b4b53b3217f9a31501ee95989
[ "MIT" ]
permissive
enterstudio/digihel
ec8ea7d714897c8b041f91ff3d0e89e2e9ec364a
b0f99a0be768df3b3a0cae20fe29a4018cd67ef7
refs/heads/master
2022-05-25T17:42:29.419062
2017-04-24T08:55:08
2017-04-24T08:55:08
89,243,603
1
0
MIT
2022-05-17T02:21:20
2017-04-24T13:30:06
CSS
UTF-8
Python
false
false
1,124
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-05 11:57 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtailimages.blocks class Migration(migrations....
[ "juha.yrjola@iki.fi" ]
juha.yrjola@iki.fi
d70d778641730cf8a69624e5b36c83a7e9a896d1
c2a46158a91d3dd41e962230d182c80bfc88886e
/test/test_documents_builddoc_model.py
38d2e7aeecf21fdb98dcccb36ce2c9e117678aaf
[]
no_license
martinsauve/doli-swagger-client-python
e5f4308b6a38c34c4c0bcc796f6863e983b6d7da
b2606e6f9f3064fe55f81ab90ec524921086a159
refs/heads/master
2023-08-14T00:04:02.228383
2021-10-06T15:34:02
2021-10-06T15:34:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
# coding: utf-8 """ Restler API Explorer Live API Documentation # noqa: E501 OpenAPI spec version: 1 Contact: arul@luracast.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client...
[ "martin@billesandco.paris" ]
martin@billesandco.paris
b8377b2e248859ff49ac04507a18cd900f528562
d8edd97f8f8dea3f9f02da6c40d331682bb43113
/networks1147.py
4f426f1b851598c40bd8914d2ca5ee2a706e642e
[]
no_license
mdubouch/noise-gan
bdd5b2fff3aff70d5f464150443d51c2192eeafd
639859ec4a2aa809d17eb6998a5a7d217559888a
refs/heads/master
2023-07-15T09:37:57.631656
2021-08-27T11:02:45
2021-08-27T11:02:45
284,072,311
0
0
null
null
null
null
UTF-8
Python
false
false
6,187
py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np __version__ = 205 # Number of continuous features (E, t, dca) n_features = 3 geom_dim = 2 class Gen(nn.Module): def __init__(self, ngf, latent_dims, seq_len, encoded_dim, n_wires): super().__init__() se...
[ "m.dubouchet18@imperial.ac.uk" ]
m.dubouchet18@imperial.ac.uk
6b52b6ec4e126f452e972de1e72f08164c5c6e7a
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_RelativeDifference/trend_ConstantTrend/cycle_30/ar_12/test_artificial_1024_RelativeDifference_ConstantTrend_30_12_0.py
d0ff3e622857b909a929bdfb980a69ece6beb1b9
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
279
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 30, transform = "RelativeDifference", sigma = 0.0, exog_count = 0, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
39f835403646b080d5decc274d92fe1f6d778d3e
9cedfd5b519f2ef7608313b5b0f1b361aeac8cc6
/resources/onelinelog.py
c9de6b2a8eea995b7052359e31ab3c538d2b9536
[]
no_license
fdev31/archx
50a5bb6e8525ef87048345e40928a05e735cb758
5345bee7cc1a9cb0b98490749d9bbb5969b9a8f9
refs/heads/master
2020-05-21T03:08:18.532179
2019-12-16T21:23:25
2019-12-16T21:23:25
50,664,593
0
1
null
null
null
null
UTF-8
Python
false
false
1,126
py
#!/usr/bin/env python import sys import codecs import shutil import fileinput import time PROMPT='> ' DEBUG=0 def univ_file_read(name, mode): # WARNING: ignores mode argument passed to this function return open(name, 'rU') linelen=0 twidth = shutil.get_terminal_size()[0] logfile=codecs.open('stdout.log', 'w+...
[ "fdev31@gmail.com" ]
fdev31@gmail.com
79ffe575c9f5608527ae2bbd1b2642208f7b21da
af1e8fd6bf305cce661262a4289df74ab886425e
/Troubleshooting and Debugging Techniques/examples/binary_search.py
c173182fb2fc1aba41f2418902e078a744676067
[]
no_license
Nahid-Hassan/online-learning
95bf80f205ed33b5071da63c1939baa5e08f13d5
aee087bc42cba60ef2c3129fb8e96f68de1f44b4
refs/heads/main
2023-02-25T23:11:58.008425
2021-02-02T09:37:34
2021-02-02T09:37:34
306,249,918
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
def binary_search(list, key): """Returns the position of key in the list if found, -1 otherwise. List must be sorted. """ left = 0 right = len(list) - 1 while left <= right: middle = (left + right) // 2 if list[middle] == key: return middle if list[midd...
[ "nahid.cseru@gmail.com" ]
nahid.cseru@gmail.com
17fd2ad5ff1c32c21c6b8e6b7ec8a3bac988e23c
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/NMHFTCMqW6j8sXkNd_21.py
c5fbf2a525560148a2a09327ec38d12348248a53
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
""" Create a function that takes a list of two numbers and checks if the **square root** of the first number is equal to the **cube root** of the second number. ### Examples check_square_and_cube([4, 8]) ➞ True check_square_and_cube([16, 48]) ➞ False check_square_and_cube([9, 27]) ➞ True ###...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f3cdc9b4d2cdd55e81a5b35f33ac217dd6cc97a4
58a0ba5ee99ec7a0bba36748ba96a557eb798023
/Olympiad Solutions/URI/1059.py
a9a1b307c1fe96c5d3f1bca45a294bc8510db5d7
[ "MIT" ]
permissive
adityanjr/code-DS-ALGO
5bdd503fb5f70d459c8e9b8e58690f9da159dd53
1c104c33d2f56fe671d586b702528a559925f875
refs/heads/master
2022-10-22T21:22:09.640237
2022-10-18T15:38:46
2022-10-18T15:38:46
217,567,198
40
54
MIT
2022-10-18T15:38:47
2019-10-25T15:50:28
C++
UTF-8
Python
false
false
240
py
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1059 # -*- coding: utf-8 -*- ''' Escreva a sua solução aqui Code your solution here Escriba su solución aquí ''' for i in xrange(2,101,2): print i
[ "samant04aditya@gmail.com" ]
samant04aditya@gmail.com
7b1074e18796d2cef670d1ffbc15893dee538894
fc2d2163e790741de0c0e1aa337948cfeb5b6ba9
/tests/syntax/UnpackTwoStars32.py
3a8683cbd4fd3072ce5acf7dcabd04fe814e5bdc
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
nmoehrle/Nuitka
bcd20531f150ada82c8414620dca6c5424be64d1
317d1e4e49ef8b3bdfe2f80f2464040d644588b2
refs/heads/master
2023-06-22T09:56:23.604822
2017-11-29T14:10:01
2017-11-29T14:10:01
122,110,166
0
0
Apache-2.0
2018-02-19T19:29:05
2018-02-19T19:29:05
null
UTF-8
Python
false
false
809
py
# Copyright 2017, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
8d417242c48459b312ed486523acbd941413aea9
4ef688b93866285bcc27e36add76dc8d4a968387
/tests/test_kms/test_model.py
523b1d748ffd9690156bc05d2f272747a9687192
[ "Apache-2.0" ]
permissive
localstack/moto
cec77352df216cac99d5e0a82d7ada933950a0e6
b0b2947e98e05d913d7ee2a0379c1bec73f7d0ff
refs/heads/localstack
2023-09-01T05:18:16.680470
2023-07-10T09:00:26
2023-08-07T14:10:06
118,838,444
22
42
Apache-2.0
2023-09-07T02:07:17
2018-01-25T00:10:03
Python
UTF-8
Python
false
false
1,183
py
import pytest from moto.kms.models import KmsBackend PLAINTEXT = b"text" REGION = "us-east-1" @pytest.fixture(name="backend") def fixture_backend(): return KmsBackend(REGION) @pytest.fixture(name="key") def fixture_key(backend): return backend.create_key( None, "ENCRYPT_DECRYPT", "SYMMETRIC_DEFAUL...
[ "noreply@github.com" ]
localstack.noreply@github.com
feccd33264447c92abf14e4458ead9f06a2faa3f
d4f1bd5e52fe8d85d3d0263ede936928d5811bff
/Python/Problem Solving/ETC_algorithm_problem/5-11-2 max heap.py
d2ff607ea6054165b71bd00604e33c7b4fd62e91
[]
no_license
ambosing/PlayGround
37f7d071c4402599995a50cac1e7f1a85c6d10dd
0d5262dbb2fa2128ecb3fd969244fa647b104928
refs/heads/master
2023-04-08T04:53:31.747838
2023-03-23T06:32:47
2023-03-23T06:32:47
143,112,370
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
import heapq h = [] while True: n = int(input()) if n == -1: break elif n == 0: print(heapq.heappop(h)[1]) else: heapq.heappush(h, (-n, n))
[ "ambosing_@naver.com" ]
ambosing_@naver.com
d38db2fa69e1cec7a307c36300e70bf1c784d05c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04043/s722084447.py
63049b4fc35548c7e3243a14c504967fc3f86476
[]
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
148
py
A, B, C = map(int, input().split()) num = [0]*11 num[A] += 1 num[B] += 1 num[C] += 1 ans = 'YES' if num[5] == 2 and num[7] == 1 else 'NO' print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9f0b2d91751a39fb0928cb1695e4ef33be1ad02d
d260f1492f1d3cffb72bd4e8c67da7b0724fa5d5
/kubeflow/fairing/preprocessors/full_notebook.py
84ff8f31a9bf417bb912c022cc61bddfa05ca6e0
[ "Apache-2.0" ]
permissive
wyw64962771/fairing
3be92ab22d596a360c6f8d70f678b3ada265e649
0cc639870ea3f773c5ae8a53c0ab16d4cda2ea6c
refs/heads/master
2020-08-19T13:28:24.778189
2019-10-17T12:08:39
2019-10-17T12:08:39
215,924,578
1
0
Apache-2.0
2019-10-18T02:23:58
2019-10-18T02:23:58
null
UTF-8
Python
false
false
2,380
py
import os from kubeflow.fairing.preprocessors.base import BasePreProcessor from kubeflow.fairing.constants import constants from kubeflow.fairing.notebook import notebook_util class FullNotebookPreProcessor(BasePreProcessor): """ The Full notebook preprocess for the context which comes from BasePreProcessor. ...
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
50d1f8e859d7710b2a71797166f82bbf97dcfb1f
df1ed60ce7d95a31565c5963ccda404d16b780ba
/src/h02_learn/dataset/dep_label.py
2667a9d3378c4777ae28ec7222d485504c635aef
[ "MIT" ]
permissive
imperialite/info-theoretic-probing
471a3c726e8b4e433ae8acaa070fbd964c6640a1
70414d5466e8c372187730c018064dd9309dd09a
refs/heads/master
2022-04-23T00:53:23.283886
2020-04-27T16:19:07
2020-04-27T16:19:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,315
py
import numpy as np import pandas as pd from sklearn.decomposition import PCA import torch from torch.utils.data import Dataset from h01_data.process import get_data_file_base as get_file_names from util import constants from util import util from .pos_tag import PosTagDataset class DepLabelDataset(PosTagDataset): ...
[ "tiagopms@gmail.com" ]
tiagopms@gmail.com
806c4c878888711dca3ec79b8fe335bae9900008
430b9e03e36e355bba475df49505011f99fa0819
/web/第4课:页面交互操作/d5_鼠标操作.py
7d4eb25bce43899556d622d03e2e63d1e93a663c
[]
no_license
gaoyang1224/mysite
b43e5d5e378b810b94dd60ffcac1c992173cc11a
72150c67b9590b0498241a1eacb2669a836520ff
refs/heads/master
2023-05-01T21:42:40.096287
2021-05-20T14:40:30
2021-05-20T14:40:30
368,254,604
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
import time from selenium import webdriver from selenium.webdriver import ActionChains driver = webdriver.Firefox() driver.implicitly_wait(4) driver.get('file:///D:/classes/web_auto_testing/%E7%AC%AC4%E8%AF%BE%EF%BC%9A%E9%A1%B5%E9%9D%A2%E4%BA%A4%E4%BA%92%E6%93%8D%E4%BD%9C/alert_demo.html') # 复杂版: # 初始化 ActionChains...
[ "15195989321@163.com" ]
15195989321@163.com
a4da331d66a9bc9ab226ec4306a45994e44a8df7
3e59c64c78aa3ffc4ca6ee358ee1a3ba61e2d4af
/energy/activation.py
596fbb09332eba316b94d644fc50b0773c482779
[ "MIT" ]
permissive
pminervini/DeepKGC
de35f75fac9c64ca6e09e4ab244552792669678d
ed55d0a28d7607324def7c48ebde98786c11d5e1
refs/heads/master
2016-09-06T02:36:47.748324
2015-07-06T12:35:07
2015-07-06T12:35:07
38,617,255
5
5
null
null
null
null
UTF-8
Python
false
false
366
py
# -*- coding: utf-8 -*- import theano.tensor as T # Activation functions def htanh(x): return -1. * (x < -1.) + x * (x < 1.) * (x >= -1.) + 1. * (x >= 1) def hsigm(x): return x * (x < 1) * (x > 0) + 1. * (x >= 1) def rect(x): return x * (x > 0) def sigm(x): return T.nnet.sigmoid(x) def tanh(x): ...
[ "p.minervini@gmail.com" ]
p.minervini@gmail.com
d42e178adedceb3d83a4176e7940c42721a0994f
a2b23a8ab40a01903438b22cf964704ad90ea414
/0x0A-python-inheritance/10-square.py
945e59b894388c2c68e3a4beff404c0670f4ff3b
[]
no_license
Katorea132/higher_level_programming
b78809d5d2a052c1e9680d24cc547d12ac69c41e
746f094c10fed8c2497b65c7a18c782e1b7cd3a9
refs/heads/master
2022-12-17T04:39:57.794263
2020-09-24T19:30:57
2020-09-24T19:30:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
#!/usr/bin/python3 """THis module is for squares """ Rekt = __import__("9-rectangle").Rectangle class Square(Rekt): """The square class from the super class rectangle from the super class geometry Args: Rekt (class): super class """ def __init__(self, size): """Initializer ...
[ "katorea132@gmail.com" ]
katorea132@gmail.com
3fcee134c03e33b7dcf94b71921e4a066cf3c566
105ef2d5f8bba13c15deb8c4a2a9af307b4e547a
/Baekjoon/python/11053.py
212a1537f73cd5c4d20725f1cd212c45c8474320
[]
no_license
caniro/algo-note
1ec4c0e08adcb542d3356daf7b6e943af722394f
d237a5b58a67ca453dc7a1a335f99428af2c5df5
refs/heads/master
2023-08-29T22:39:35.189711
2021-11-04T11:18:07
2021-11-04T11:18:07
260,473,565
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
# 가장 긴 증가하는 부분 수열 : https://www.acmicpc.net/problem/11053 from sys import stdin input = stdin.readline INF = 1e9 def lis(arr): if not arr: return 0 c = [-INF] + [INF] * len(arr) c[1] = arr[0] max_length = 1 def search(low, high, value): if low == high: return low ...
[ "caniro@naver.com" ]
caniro@naver.com
6af8e050da68bfdedfdc86850a2cfb29c077ba0a
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Projects/twilio/twilio/rest/preview/trusted_comms/business/__init__.py
f8c935fdadfa88c9e90f8212fc00caf550491736
[ "LicenseRef-scancode-other-permissive" ]
permissive
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:4568e5a8fab302e3c70ed11607b218146e4027e860e186373a1901bf7e49b1cc size 8394
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
375a99607fd2f2f1a217329571e15ee926971bc9
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/1332.py
14d48f941dcb48478886f954b0ba13b7112a23ce
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
def line(f): return f.readline().strip() f = open("A-small-attempt0.in", "r") o = open("1.out", "w") T = int(line(f)) for t in xrange(T): ans1 = int(line(f)) arr1 = [] for i in xrange(4): arr1.append(map(int, line(f).split())) ans2 = int(line(f)) arr2 = [] for i in xrange(4): arr2.append(map(in...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
45792ef3fd3e901732b4fa5547b889acb1f5ba55
baf8ccd12b27d0882c75a9c3845a0679e831f618
/22_numerai/rl/sarsa.py
b42dcf00bd73335c856a2ee0f4ee839362e9fd06
[ "MIT" ]
permissive
Tjorriemorrie/trading
c55d545a0a09e3fb92673696e95dd66b02858ab6
aafa15a6c564bfa86948ab30e33d554172b38a3e
refs/heads/master
2022-12-13T20:57:23.591343
2021-07-07T20:28:34
2021-07-07T20:28:34
28,739,306
2
2
MIT
2022-07-06T20:01:28
2015-01-03T08:55:17
q
UTF-8
Python
false
false
2,238
py
import gzip import logging import operator import os import pickle from world import World logging.getLogger(__name__) class Sarsa(): def __init__(self, filename): self.filename = filename self.world = World() self.alpha = 0. self.epsilon = self.alpha / 2. self.delta = No...
[ "jacoj82@gmail.com" ]
jacoj82@gmail.com
c0b2dc52c6067fe4d6acf3ac56599bffd2491b3e
e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488
/minfraud/komand_minfraud/actions/email_lookup/action.py
9925063bfcaa673b4be293d6606ed91c7b12b331
[ "MIT" ]
permissive
OSSSP/insightconnect-plugins
ab7c77f91c46bd66b10db9da1cd7571dfc048ab7
846758dab745170cf1a8c146211a8bea9592e8ff
refs/heads/master
2023-04-06T23:57:28.449617
2020-03-18T01:24:28
2020-03-18T01:24:28
248,185,529
1
0
MIT
2023-04-04T00:12:18
2020-03-18T09:14:53
null
UTF-8
Python
false
false
2,803
py
import komand from .schema import EmailLookupInput, EmailLookupOutput # Custom imports below import minfraud class EmailLookup(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='email_lookup', description='Query email info', inpu...
[ "jonschipp@gmail.com" ]
jonschipp@gmail.com
2e0cec4b5e1bec814164ba1d46fcb45d8a657b93
42d3d37a3dd22402154da4f4bd020afd7b7bad58
/examples/adspygoogle/adwords/v201109/basic_operations/add_ad_groups.py
af1d61fdd7c560ea8a6a05c35e2fac85f4c8c218
[ "Apache-2.0" ]
permissive
nearlyfreeapps/python-googleadwords
1388316ec4f8d9d6074688ec4742872b34b67636
b30d90f74248cfd5ca52967e9ee77fc4cd1b9abc
refs/heads/master
2020-06-03T23:05:08.865535
2012-08-02T21:46:16
2012-08-02T21:46:16
5,278,295
2
0
null
null
null
null
UTF-8
Python
false
false
2,856
py
#!/usr/bin/python # # Copyright 2011 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 b...
[ "ahalligan@nearlyfreehosting.com" ]
ahalligan@nearlyfreehosting.com
57999ae9ce2381856766849022c89cd3e153c7e4
9b4fe9c2693abc6ecc614088665cbf855971deaf
/744.find-smallest-letter-greater-than-target.py
49625d5f3841c1e6060e6f275b7326d894db8a48
[ "MIT" ]
permissive
windard/leeeeee
e795be2b9dcabfc9f32fe25794878e591a6fb2c8
0dd67edca4e0b0323cb5a7239f02ea46383cd15a
refs/heads/master
2022-08-12T19:51:26.748317
2022-08-07T16:01:30
2022-08-07T16:01:30
222,122,359
0
0
null
null
null
null
UTF-8
Python
false
false
1,823
py
# coding=utf-8 # # @lc app=leetcode id=744 lang=python # # [744] Find Smallest Letter Greater Than Target # # https://leetcode.com/problems/find-smallest-letter-greater-than-target/description/ # # algorithms # Easy (43.56%) # Likes: 245 # Dislikes: 376 # Total Accepted: 46.6K # Total Submissions: 104.9K # Testca...
[ "windard@qq.com" ]
windard@qq.com
52c105db51a9729ca761c5db76853562fb4dd51a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03044/s052008101.py
8dc7ecea338f828c998221cffb71731fd4019ce9
[]
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
768
py
import sys from collections import deque read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines sys.setrecursionlimit(10 ** 9) INF = 1 << 60 def main(): N = int(readline()) G = [[] for _ in range(N)] for _ in range(N - 1): u, v, w = map(int, readline().split()) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
069e8afc3bae88fc490dc7db80adf1c3c2ff5992
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2375/60595/257705.py
dfc1e79a8269cf592621f58eb91b8d16b18a863c
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,701
py
class Graph(object): def __init__(self, maps): self.maps = maps self.nodenum = self.get_nodenum() self.edgenum = self.get_edgenum() def get_nodenum(self): return len(self.maps) def get_edgenum(self): count = 0 for i in range(self.nodenum): for j in...
[ "1069583789@qq.com" ]
1069583789@qq.com
615e70e685775ea91236d4f9d8bf8ffa6acd6d50
9e28200b71d43de1e122a964e88f1b547bfde465
/question_leetcode/159_3.py
ac9e41c85595c93128f7e311a207156c3c39e650
[]
no_license
paul0920/leetcode
6f8a7086eefd3e9bccae83752ef41cbfee1acaea
474886c5c43a6192db2708e664663542c2e39548
refs/heads/master
2023-08-19T14:10:10.494355
2021-09-16T20:26:50
2021-09-16T20:26:50
290,560,326
1
0
null
null
null
null
UTF-8
Python
false
false
406
py
import collections s = "ecebaa" s = "bacc" start = 0 count = collections.defaultdict(int) res = 0 res_string = [] for idx, c in enumerate(s): count[c] += 1 if len(count) > 2: count[s[start]] -= 1 if not count[s[start]]: count.pop(s[start]) start += 1 res = max(re...
[ "39969716+paul0920@users.noreply.github.com" ]
39969716+paul0920@users.noreply.github.com
853bd821d4c8c5ac1a86b930a9840d78d132224a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02873/s837577213.py
b7d5cafe31946f81d03165a317e1a59b8ade8854
[]
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
342
py
s=input() l=[] i=0 while i<len(s): k=0 while s[i]=='<' if i<len(s) else False: k+=1 i+=1 if k>0: l.append(k) k=0 while s[i]=='>' if i<len(s) else False: k+=1 i+=1 if k>0: l.append(k) sm=0 for i in l: sm+=(i*(i+1))//2 for i in range(0 if s[0]=='<' else 1,len(l)-1,2): sm-=min(l[i],...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0986e209f3f4491736d25bff9acd114e0c92e812
4c9eb8584b16bb103a1401a8f297f62589941c01
/flo/cli/Rdr2Geo.py
37d70f06ef8cebd48f5ae3fad9407d2f1276678c
[]
no_license
pyre/flo
d62e0bba61926fd395df1c2767198c5743ade531
7b61a7a4cf12d4448b99f1b841866fe31a27bb61
refs/heads/master
2023-03-08T11:21:55.874526
2021-09-28T06:47:10
2021-09-28T06:47:10
156,036,991
5
0
null
2023-02-28T17:42:13
2018-11-04T00:51:52
JavaScript
UTF-8
Python
false
false
509
py
#-*- coding: utf-8 -*- # support import flo # superclass from .Workflow import Workflow # declaration class Rdr2Geo(Workflow, family="flo.cli.rdr2geo"): """ Invoke the {rdr2geo} workflow to compute the transformation from radar coordinates to geodetic coordinates for a given SLC """ # public s...
[ "michael.aivazis@para-sim.com" ]
michael.aivazis@para-sim.com
cd1eb7e40c810db20c3ae7b49d3798be2f3e58b5
34597ad1d89ee507473c5d91f03a5819143ec48f
/EBOs/UserV1/model.py
ab856ee1f233ace7266afeb7b415be1894a6ca4b
[]
no_license
rmetcalf9/dockPondSampleEBOs
082c3a18961665e02402f0f14e3180019fc75bde
abd8d973feee03bcbf52938d6364c93d38aa2d5c
refs/heads/master
2020-03-12T16:26:11.636502
2018-06-29T10:58:17
2018-06-29T10:58:17
130,716,032
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
from flask_restplus import fields def getModel(flaskRestPlusAPI): #Function must be declared inside getModel function as this is the only part that is imported by dockPond def getTypeModel(flaskRestPlusAPI, typeName): if typeName=='http://ic.ac.uk/AIAMetaData/AIAComponents/EnterpriseObjectLibrary/Core/IC_EBO/...
[ "rmetcalf9@googlemail.com" ]
rmetcalf9@googlemail.com
02cca8d92f564c91c6c3d266eaef9202830aaabd
2fdc719bea50f10e2a4fc507d25b83ff4e612071
/projects/buck/bucklets/tools/download_all.py
a70cbda5baa067b219192369df1ce9371cbd8098
[ "Apache-2.0" ]
permissive
aslamz/appium
5610b61598b5d74a41c43b2d6729f21f6978b7c8
778fe9c92041c99f06d9d074caed2f9c61c8bbb0
refs/heads/master
2022-06-01T18:46:07.210870
2021-01-04T12:56:25
2021-01-04T12:56:25
40,705,347
0
0
Apache-2.0
2022-05-20T20:52:31
2015-08-14T08:53:27
Ruby
UTF-8
Python
false
false
1,306
py
#!/usr/bin/python # Copyright (C) 2013 The Android Open Source Project # # 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 ap...
[ "code@bootstraponline.com" ]
code@bootstraponline.com
5d60063af802f6cb1f0a9b6e580171f272016318
9ce3080999a69f1d330356645fe3e655052cf954
/aiida_registry/make_pages.py
0c4911cf752d6d8c8ef644290e6d20c49269cc15
[]
no_license
chrisjsewell/aiida-registry
b0969b8298e8e5108653ec56ac54a8807e3cc1e6
a2cc2cf6c61e835e535d6af6125efcdf7dcae33b
refs/heads/master
2021-06-16T10:17:19.887994
2019-10-30T18:00:55
2019-10-30T18:00:55
148,847,505
0
0
null
null
null
null
UTF-8
Python
false
false
6,634
py
# -*- coding: utf-8 -*- """Generate HTML pages for plugin registry. Reads plugin-metadata.json produced by fetch_metadata. """ from __future__ import absolute_import from __future__ import print_function import codecs import json import os import shutil from collections import defaultdict from jinja2 import Environme...
[ "leopold.talirz@gmail.com" ]
leopold.talirz@gmail.com
54af66ff4d6027355a3710a71ff0203770426322
c81d7dfef424b088bf2509a1baf406a80384ea5a
/venv/Lib/site-packages/whitenoise/httpstatus_backport.py
fcb1c22f1d45ec7f7fc3b25ffc361c1df72b45bc
[]
no_license
Goutham2591/OMK_PART2
111210d78fc4845481ed55c852b8f2f938918f4a
cb54fb21ebf472bffc6ee4f634bf1e68303e113d
refs/heads/master
2022-12-10T01:43:08.213010
2018-04-05T02:09:41
2018-04-05T02:09:41
124,828,094
0
1
null
2022-12-07T23:43:03
2018-03-12T03:20:14
Python
UTF-8
Python
false
false
558
py
""" Very partial backport of the `http.HTTPStatus` enum from Python 3.5 This implements just enough of the interface for our purposes, it does not attempt to be a full implementation. """ class HTTPStatus(int): phrase = None def __new__(cls, code, phrase): instance = int.__new__(cls, c...
[ "amatar@unomaha.edu" ]
amatar@unomaha.edu
39cd46f95479b5459cef6c53ce8edc1945642153
79bb7105223895235263fd391906144f9f9645fd
/python/kernel_tests/identity_op_py_test.py
7cde987900cb2e034c0d925eba85540adc313147
[]
no_license
ml-lab/imcl-tensorflow
f863a81bfebe91af7919fb45036aa05304fd7cda
54ab3ec2e32087ce70ecae2f36b56a8a92f2ba89
refs/heads/master
2021-01-22T06:37:18.129405
2016-06-08T15:53:28
2016-06-08T15:53:28
63,518,098
1
2
null
2016-07-17T06:29:14
2016-07-17T06:29:13
null
UTF-8
Python
false
false
2,365
py
# Copyright 2015 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 ...
[ "mrlittlezhu@gmail.com" ]
mrlittlezhu@gmail.com
00c674bec719f04e064532c7307ee71bc50f8bbc
8b6cd902deb20812fba07f1bd51a4460d22adc03
/back-end/.history/djreact/users/serializers_20191221131418.py
4a84b43397e2a944a5fd21996d7d0d6712fd600d
[]
no_license
vishaldenzil/Django-react-
f3a49d141e0b6882685b7eaa4dc43c84857f335a
35b6d41f6dacb3bddcf7858aa4dc0d2fe039ff98
refs/heads/master
2022-11-08T09:27:02.938053
2020-05-29T04:53:52
2020-05-29T04:53:52
267,768,028
0
1
null
2022-10-15T14:08:30
2020-05-29T04:52:20
Python
UTF-8
Python
false
false
190
py
from rest_framework import serializers from .models import User class UserRegistrationSerializer(serializers.ModelSerializer): class Meta: model = User fields = __all__
[ "vishal.denzil@ezedox.com" ]
vishal.denzil@ezedox.com
f89422d908d4ded0742b533ea5c45917262a21e9
e47b6d86c2309c857c9af4e84ff2e30455030681
/Bridge.py
0c456d90f8e0be7e8fb10b816da313a991482ee8
[]
no_license
bigeyesung/DesignPattern
39aec1d9c549ec7fce5bfe5a67a65267692786d8
4d2e48f6f053b5a9b6a87e73cdb79c5978592ab6
refs/heads/master
2020-08-17T11:05:42.104343
2020-07-07T20:02:42
2020-07-07T20:02:42
215,656,773
0
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
from abc import ABC, abstractmethod class Abstraction: def __init__(self, implementation: Implementation): self.implementation = implementation def operation(self): return self.implementation.operation_implementation() class ExtendedAbstraction(Abstraction): def operation(self): ...
[ "sungchenhsi@gmail.com" ]
sungchenhsi@gmail.com
ee92648ad5b8a4be878dc87469075f80bd3a442d
cdd79cef15bdf6a0b9098e27028bbe38607bc288
/蟻本/2-3_最長共通部分文字列問題_配るDP.py
d9e557cf8591cc2a57a19eb9d8c300f6120fd617
[]
no_license
nord2sudjp/atcoder
ee35a3eb35717485dc62627172de24c9dac102fb
6b1cc5102a615492cc7ff8a33813bbb954641782
refs/heads/master
2023-08-25T11:27:14.205593
2021-09-27T05:43:04
2021-09-27T05:43:04
302,855,505
0
0
null
null
null
null
SHIFT_JIS
Python
false
false
620
py
N,M=map(int,input().split()) S=input() T=input() MAX_N=N+2 MAX_M=M+2 DP=[[0]*(MAX_N) for _ in range(MAX_M)] #DP[i+1][j+1] : S[i]T[j]に対するLCSの長さ for i in range(N): for j in range(M): # i,jは文字列としては現在を見ている # DPとしては過去のDPを見ている # DP[i][j]は文字列S[i]T[j]までの共通文字列の長さを表す DP[i][j+1]=max(DP[i][...
[ "nord2sudjp@gmail.com" ]
nord2sudjp@gmail.com
8055239902f815052d3b4a078afeb5a0d13730b7
459929ce79538ec69a6f8c32e608f4e484594d68
/venv/Lib/site-packages/kubernetes/client/models/extensions_v1beta1_ingress_backend.py
efa600d193b4a86f19a2dcc154c8bf3990938050
[]
no_license
yychai97/Kubernetes
ec2ef2a98a4588b7588a56b9d661d63222278d29
2955227ce81bc21f329729737b5c528b02492780
refs/heads/master
2023-07-02T18:36:41.382362
2021-08-13T04:20:27
2021-08-13T04:20:27
307,412,544
0
0
null
null
null
null
UTF-8
Python
false
false
4,474
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Exten...
[ "49704239+yychai97@users.noreply.github.com" ]
49704239+yychai97@users.noreply.github.com
bbb90548f8bac0d1b4062e9b26e835791376a92c
a94c446a0d9ce77df965674f63be54d54b2be577
/raspy/components/potentiometers/microchip/register_memory_address.py
2c00349ad860e9bab97439a83e7dadd9917a5182
[ "MIT" ]
permissive
cyrusbuilt/RasPy
3434e02c2bff09ef9f3ff4995bda14edc781c14b
1e34840cc90ea7f19317e881162209d3d819eb09
refs/heads/master
2020-03-18T20:19:27.426002
2018-08-03T17:07:25
2018-08-03T17:07:25
135,207,376
0
0
MIT
2018-08-03T17:07:26
2018-05-28T20:42:17
Python
UTF-8
Python
false
false
480
py
"""Register memory addresses.""" WIPER0 = 0x00 """Wiper 0.""" WIPER1 = 0x01 """Wiper 1.""" WIPER0_NV = 0x02 """Wiper 0 non-volatile.""" WIPER1_NV = 0x03 """Wiper 1 non-volatile.""" TCON01 = 0x04 """Terminal control for wipers 0 and 1.""" WIPER2 = 0x06 """Wiper 2.""" WIPER3 = 0x07 """Wiper 3.""" WIPER2_NV = 0x0...
[ "cyrusbuilt@gmail.com" ]
cyrusbuilt@gmail.com
e7b7bc0fa2a5b32fb56f559e5bdd1a625c0572ed
8f439e50c741483ffefd5bad16f11d4b60da8fe9
/examples/infomax_transductive.py
785c7864d2eb6dd43726820bbc8b4e4abf238b6c
[ "MIT" ]
permissive
sumanthratna/pytorch_geometric
19d66b6cc874fbce9207efc204a0ed1f9bb04d88
9c6a069c995cac38e4f3a2f1e9cfc7cebac889c6
refs/heads/master
2023-08-29T09:58:33.807755
2021-09-08T16:00:09
2021-09-08T16:00:09
404,423,682
2
0
MIT
2021-09-08T20:58:23
2021-09-08T16:44:15
null
UTF-8
Python
false
false
1,720
py
import os.path as osp import torch import torch.nn as nn from torch_geometric.datasets import Planetoid from torch_geometric.nn import GCNConv, DeepGraphInfomax dataset = 'Cora' path = osp.join(osp.dirname(osp.realpath(__file__)), '..', 'data', dataset) dataset = Planetoid(path, dataset) class Encoder(nn.Module): ...
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
24696d3d7d1ec6758135a501519de7bf80fc9c3f
1208ac3718420c4a118ab6b777d99980b85f952a
/123.py
5f73d229ebcbe9954cec2122d838cef49c4cf56b
[]
no_license
deimelperez/150_Py_challenges
6ab9aea77c9c117b682790bfe36fb5e280cb8afc
b58f55312e7abf30cb7cb6d68b249bb5dcd3c862
refs/heads/master
2023-03-13T02:30:15.095467
2021-03-04T19:02:11
2021-03-04T19:02:11
344,579,979
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
import os import csv clear = lambda: os.system('cls') def prompt(): ch = 0 while ch != 1 and ch != 2 and ch != 3 and ch != 4: clear() print('1- Add to file') print('2- View all records') print('3- Delete record') print('4- Exit') ch = int(input('Select an optio...
[ "deimelperez@gmail.com" ]
deimelperez@gmail.com
cff764949b2ed11e5a93eb1010ee840f4c990c13
f7d3c8483521ec45bf0bb0927c0c57a275e03996
/ch04-linear/linear_ml.py
fe394af134bee53da6a57b9be7d233d6d95f245d
[]
no_license
buzzzzx/DataScienceLearning
2fe7fef6fb8538e2acd46d19643ff4fc50dc249a
af38157f01ba3682141b11788276daf6d6002b37
refs/heads/master
2020-03-23T16:40:21.517239
2018-07-24T15:10:17
2018-07-24T15:10:17
141,699,329
0
0
null
null
null
null
UTF-8
Python
false
false
3,808
py
# -*- coding: utf-8 -*- __author__ = 'buzz' __date__ = '2018/7/16 下午2:42' """ 1. spit the data: trainData, testData 2. train the model 3. evaluate the model, get the MSE and COD 4. visualization """ import os import sys from sklearn import linear_model import numpy as np import matplotlib.pyplot as plt import pandas...
[ "buzzzzx233@gmail.com" ]
buzzzzx233@gmail.com
ccb6cff749499176fa4d9de1366c42f43483fafb
0add7953d3e3ce2df9e8265102be39b758579753
/built-in/TensorFlow/Official/cv/image_segmentation/UNet_Industrial_for_TensorFlow/model/layers/__init__.py
a7816ce0045ac92926203a79ec08c91e0727c967
[ "Apache-2.0" ]
permissive
Huawei-Ascend/modelzoo
ae161c0b4e581f8b62c77251e9204d958c4cf6c4
df51ed9c1d6dbde1deef63f2a037a369f8554406
refs/heads/master
2023-04-08T08:17:40.058206
2020-12-07T08:04:57
2020-12-07T08:04:57
319,219,518
1
1
Apache-2.0
2023-03-24T22:22:00
2020-12-07T06:01:32
Python
UTF-8
Python
false
false
2,506
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================== # # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
[ "1571856591@qq.com" ]
1571856591@qq.com
db27d9c00b53a47982cfeea67dd63ecb1da8129b
b9cda298b1e8da3a657aea29080a467055bae421
/scandium/tpl/project_template/setup.pyt
cc777de4496e074ae1f3fefcdbd641970330004f
[]
no_license
vasfili/scandium
9fa98c18100b18f8dac60955e5602ca038e681db
843757d13a70a407626a0a7d5f6407a21d74e5f9
refs/heads/master
2020-12-13T22:34:50.661608
2015-10-14T13:14:27
2015-10-14T13:14:27
44,236,746
0
0
null
2015-10-14T09:11:37
2015-10-14T09:11:36
Python
UTF-8
Python
false
false
5,219
pyt
from setuptools import setup, find_packages from py2exe.build_exe import py2exe as build_exe from distutils.sysconfig import get_python_lib import fnmatch import py2exe import sys import os # If run without args, build executables, in quiet mode. if len(sys.argv) == 1: sys.argv.append("py2exe") sys.argv.append...
[ "matt@bennett.name" ]
matt@bennett.name
8449cd14afa4652b75eadf140e87adf6909ad3d1
1539f86f91ce0ee6150fba7363976d32cd37ece2
/codes_auto/99.recover-binary-search-tree.py
71f632672d901d70aa7038b3688b89a5cf53aea0
[]
no_license
zhpbo/LeetCode_By_Python
fdee0a8b7ea7ed1f61a99f0041e1c748e50f138c
0017b9db891d36789116f7299d32510a373e68da
refs/heads/master
2023-07-09T15:38:45.003002
2020-08-18T07:04:51
2020-08-18T07:04:51
281,598,190
0
0
null
2021-08-18T04:58:39
2020-07-22T06:47:05
null
UTF-8
Python
false
false
995
py
# # @lc app=leetcode.cn id=99 lang=python3 # # [99] recover-binary-search-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 recoverTree(self, root: TreeNode) -> None: "...
[ "liuyang0001@outlook.com" ]
liuyang0001@outlook.com
6ece9e8b26aba619307519cdbbc359223e72c41a
57d5ebeece91f5759d54e898154f11e97c6e5609
/tests/add_trailing_comma_test.py
ee7bed3b6df646ee1055c45a784166a530c78b5b
[ "MIT" ]
permissive
chriskuehl/add-trailing-comma
0c50e16fd6d25057d025f75a23ddde0aafec4dbd
d26f8ca449eb12cfaec3d3cd1f8ced789bd73e9a
refs/heads/master
2020-12-02T07:46:50.317774
2017-07-10T01:29:14
2017-07-10T01:29:14
96,725,169
0
0
null
2017-07-10T01:53:11
2017-07-10T01:53:11
null
UTF-8
Python
false
false
3,624
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import ast import sys import pytest from add_trailing_comma import _fix_calls from add_trailing_comma import main @pytest.mark.parametrize( 'src', ( # No relevant multiline calls 'x = 5', ...
[ "asottile@umich.edu" ]
asottile@umich.edu
607b14e2c65395162c1e43a9e0046c08f05de656
7465148de5d656ebfe68b588a2f271a11384ed6a
/examples/multiple_actions_docker/second.py
e1f78138fe14078b2864bf7a2b3a58b404a44222
[]
no_license
fiefdx/LitePipeline
1462dacdd1a0f2c67972b6014b428c2c45d46949
09608f8c5f248d2ba10e5840bf00d69e76ed6291
refs/heads/master
2023-04-14T11:45:18.929249
2023-04-02T06:48:30
2023-04-02T06:48:30
226,355,739
2
0
null
2023-04-01T17:49:14
2019-12-06T15:17:33
Python
UTF-8
Python
false
false
1,206
py
# -*- coding: utf-8 -*- import os import sys import time import json import logging import datetime from pathlib import Path import tornado from litepipeline_helper.models.action import Action import logger LOG = logging.getLogger(__name__) home = str(Path.home()) if __name__ == "__main__": workspace, input_...
[ "fiefdx@163.com" ]
fiefdx@163.com
51a5adfbaade61004be3dca483ae4850f82444ba
a2b20597759990445081057d35d113434cfcf970
/stubs/integration_test/fixture_stubs/django/db/__init__.pyi
5319b5a66ff2a2a4b828e875de269690e72683c4
[ "MIT" ]
permissive
facebook/pyre-check
34059599c02b65605c574f13555229f3b931fd4e
fe8ccedc572cc1faa1fd01e9138f65e982875002
refs/heads/main
2023-09-03T19:10:11.587028
2023-09-02T07:40:35
2023-09-02T07:40:35
110,274,488
6,703
575
MIT
2023-09-13T17:02:32
2017-11-10T17:31:36
OCaml
UTF-8
Python
false
false
843
pyi
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe from typing import Any from django.db.backends.base.base import BaseDatabaseWrapper from django.db.utils import ( Connec...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
3e0591086d651f921210267a7a24e4842272772c
62fc811f203f041c07d4bc782ce5f7f5cb8dd7c6
/test.py
01b7128de9357da4fab8a70928f00beee19546bf
[]
no_license
riaz/Recee
71dba563383059bac474bf361f216adfdebab8ae
a68c356a5c77ef0365f45c557d945d50fadcb430
refs/heads/master
2021-01-10T05:07:40.018566
2015-11-16T04:46:31
2015-11-16T04:46:31
46,204,411
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
from openalpr import Alpr import sys alpr = Alpr("eu", "nplate_train/openalpr.conf.in", "nplate_train/runtime_data") if not alpr.is_loaded(): print("Error loading OpenALPR") sys.exit(1) #alpr.set_top_n(20) alpr.set_default_region("eu") results = alpr.recognize_file("/home/riaz/Desktop/hack/2009_09_08_drive_0...
[ "riaz.2012@gmail.com" ]
riaz.2012@gmail.com
a2c55b36e5abd15a11aed5da04519c8e52823407
17be0e9275082c3239fedc11bc617ecd5856136c
/letor/offline/train_one_state.py
ee6031ab06d7a984a088428fc91a8abe491fd882
[]
no_license
mdkmongo/semantichealth.github.io
8bb814bfd3b0b3a71828625a2acebfd8013e2eef
6462ba2cc406967b0371b09822e4c26860e96c91
refs/heads/master
2021-01-21T08:24:07.128484
2016-08-19T05:35:04
2016-08-19T05:35:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
from s3_helpers import * from get_rank_for_state_plan import * from query_characterizer import * import pickle def train_one_state(click_data, state, log, s3_fea): ''' ''' # set folder name of S3 s3clnt = s3_helper() log.trace('characterize queries for state %s' %state) s_rows = click_data[cli...
[ "ynglei@gmail.com" ]
ynglei@gmail.com
8df1690d1f23f89363ab4c98e63ee1b3d812a469
505dc9404c89e56aea70f2db9fc1b3fb311fc5d9
/usr/lib/enigma2/python/Components/Renderer/speedyflipclockfortuna_metall1.py
ec87abf72fe3c8bbce8261dc3e619d1ce0ca2573
[]
no_license
e2plugins/4ATV_speedy_blue
ae8181ed4017beb4b48e58fe7cbbcbe2a1696057
c84da50a0d872a2e74812214eed5532ed0893534
refs/heads/master
2022-11-14T17:09:41.134795
2020-07-12T06:24:24
2020-07-12T06:24:24
277,350,143
1
0
null
null
null
null
UTF-8
Python
false
false
2,136
py
# FlipClock # Copyright (c) .:TBX:. 2016 # Mod by Maggy # Th4ATV_2_2_speedy_black_mod program 4ATV_2_2_speedy_black_mod free software: you can red4ATV_2_2_speedy_black_modtribute it and/or modify # it under the terms of the GNU General Public License as publ4ATV_2_2_speedy_black_modhed by # the Free Software Foundation...
[ "captain.onboard@web.de" ]
captain.onboard@web.de
77028e65d46a2e748e17451d5f7ea8d70505ece8
afdda41e01518db1a2685e9eb7fad524d7b5c69b
/ABC161/D/test.py
a064933ef448b042dd8bc488c08b80b5cdfacac1
[]
no_license
kame3niku9/atcoder
4bea5598b6529b7dd5d84a4b342b7ef650b81141
b5042f31d43425e4ca1e02cc4bbfecbd5a738b49
refs/heads/master
2022-07-10T11:37:47.560392
2020-11-22T13:47:08
2020-11-22T13:47:08
233,927,925
0
0
null
null
null
null
UTF-8
Python
false
false
961
py
from main import resolve import sys from io import StringIO import unittest class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdout, sys.stdin = StringIO(), StringIO(input) resolve() sys.stdout.seek(0) out = sys...
[ "kame3niku9@gmail.com" ]
kame3niku9@gmail.com
fb3292faa83df637e9541d37e4a20e7c4c8eaabc
3562a01673bc62df91fdff621e48b82b15cb330c
/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/data_preprocess.py
4a7456da3e023a18c6b161a2a1cd77ee4e089c56
[]
no_license
laksh10-stan/Machine-Learning-A-Z
16bf070a6ddbde812b053b84d9f09186cf9a0257
ba2ac016879dc5ea4be4d670e7a8de5e24abbae2
refs/heads/master
2021-02-08T20:46:36.892343
2020-03-01T17:54:16
2020-03-01T17:54:16
244,195,310
1
0
null
null
null
null
UTF-8
Python
false
false
1,303
py
# -*- coding: utf-8 -*- """ Created on Wed Oct 23 00:25:37 2019 @author: laksh """ #importing libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd #import dataset dataset = pd.read_csv('Data.csv') X = dataset.iloc[:,:-1].values y = dataset.iloc[:,3].values #taking care of the missing da...
[ "43860070+Kushjadaun@users.noreply.github.com" ]
43860070+Kushjadaun@users.noreply.github.com
6fcb98bf130d6fe7794dcbb0f39cba96ea071f2b
316eada5e13da6207801831b115cb8bc0a8ed970
/politician/urls.py
60abfdbfc4ac76261894f1a93d0a5ba1e3722102
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
edward-ly/WeVoteServer
d942ecba975e2b5a2082a078c9bd2b35ad58d3d3
24b9f0d0cd065f933707dd08391f3883bab9fb37
refs/heads/develop
2021-01-23T21:21:39.227475
2019-05-09T16:04:36
2019-05-09T16:04:36
102,893,733
0
0
null
2017-09-08T18:51:44
2017-09-08T18:44:40
Python
UTF-8
Python
false
false
1,260
py
# politician/urls.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from . import views_admin from django.conf.urls import url urlpatterns = [ url(r'^$', views_admin.politician_list_view, name='politician_list',), url(r'^edit_process/$', views_admin.politician_edit_process_view, name='politici...
[ "dale.mcgrew@wevoteusa.org" ]
dale.mcgrew@wevoteusa.org
2971a3b1ec52cbc72aa4073ad4c8172d91dccafd
4b265adfae6d91d614a628705571805a2c3d241e
/migrations/versions/3e4b752d4b66_.py
4be97e84029f717fc303084c944902289e0ab040
[]
no_license
1010784344/mybbs
02d85a661f42b648cd0939c0550959d758f0717d
0787c77c32f78de6e6cf16db55c3502bf43307d2
refs/heads/master
2022-12-22T17:45:55.908981
2020-03-02T06:44:10
2020-03-02T06:44:10
244,299,839
0
0
null
2022-09-16T18:18:56
2020-03-02T06:45:01
Python
UTF-8
Python
false
false
1,042
py
"""empty message Revision ID: 3e4b752d4b66 Revises: 907d0dec1971 Create Date: 2018-06-10 22:55:59.028570 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3e4b752d4b66' down_revision = '907d0dec1971' branch_labels = None depends_on = None def upgrade(): # ...
[ "1010784344@qq.com" ]
1010784344@qq.com
b441d0ca2ecfaf7defd1eaf369f3be18a2441a4e
2a1f4c4900693c093b2fcf4f84efa60650ef1424
/py/cli/factory_env_unittest.py
d04bc714f33ffe86931dfcac330040122dbf74b8
[ "BSD-3-Clause" ]
permissive
bridder/factory
b925f494303728fa95017d1ba3ff40ac5cf6a2fd
a1b0fccd68987d8cd9c89710adc3c04b868347ec
refs/heads/master
2023-08-10T18:51:08.988858
2021-09-21T03:25:28
2021-09-21T03:25:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,655
py
#!/usr/bin/env python3 # Copyright 2020 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import glob import os import unittest from cros.factory.cli import factory_env from cros.factory.utils import process_utils FAC...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
bfe2741feb16a2c462c0fd4040ed8d43e1017389
c5c56d7c14b4518e53bcde2527b9cc6e53a7e1b9
/doctests/yatzy.py
6dc991e1845f9366663dfba8bb5396adf434c97b
[]
no_license
lancelote/pluralsight-unit-testing-python
0402a39e3800eec49f2be529e684d028689d3b47
fd5ce8264bc95ed66109c4fa575a177248c3d49a
refs/heads/master
2021-01-10T08:06:39.605195
2016-03-23T08:15:25
2016-03-23T08:15:25
51,952,064
4
6
null
null
null
null
UTF-8
Python
false
false
3,470
py
# coding=utf-8 """" Yatzy Game """ from operator import itemgetter def dice_counts(dice): """Make a dictionary of how many of each value are in the dice Args: dice (lst): A sorted list of 5 integers indicating the dice rolled Returns: dict: How many of each value are in the dice E...
[ "karateev.pavel@ya.ru" ]
karateev.pavel@ya.ru
91b0db98ecd89c19b85d3d89b875b8fb59e63615
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/unit/modules/test_devmap.py
f7fc9f09ea1f41f68a666b5c0b0b0a4431769644
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
991
py
""" :codeauthor: Rupesh Tare <rupesht@saltstack.com> """ import os.path import pytest import salt.modules.devmap as devmap from tests.support.mock import MagicMock, patch @pytest.fixture def configure_loader_modules(): return {devmap: {}} def test_multipath_list(): """ Test for Device-Mapper Mul...
[ "mwilhite@vmware.com" ]
mwilhite@vmware.com
db3caed3bea7b8e75f04ec4721bc0ebd0e3624b1
ede96590eee4880ff83d1f1d8db5229e92c6e919
/leasing/metadata.py
0639d907861c764c94129916cc3f6a2315f07bc7
[ "MIT" ]
permissive
igordavydsson/mvj
a4c5b39e7be9f95e15a2e906ad61b98611998063
b467c6229f9d458d56b66f628b0841adb67a2970
refs/heads/master
2020-04-22T20:42:06.650182
2019-02-12T13:50:57
2019-02-12T13:50:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,833
py
from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ from enumfields.drf import EnumField from rest_framework.fields import ChoiceField, DecimalField from rest_framework.metadata import SimpleMetadata from rest_framework.relations import PrimaryKeyRelatedField from field...
[ "mikko.keskinen@anders.fi" ]
mikko.keskinen@anders.fi
66228a98b7aef124fd015c3823c8dd4f0b4d939d
a34a6861adabdffba0dec1bf9ba2d6b48c4564cb
/model.py
db2d48ca5676c1d6378ff82589047949cbfd1179
[]
no_license
AotY/gumbel_softx_vae
d4095212117cdbdd71434fd47f51ae0aef42869f
f345efe797fb9adc00f5d4e288da80102f23850e
refs/heads/master
2020-04-02T03:31:28.336284
2018-10-21T05:11:36
2018-10-21T05:11:36
153,970,643
0
0
null
null
null
null
UTF-8
Python
false
false
1,875
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright © 2018 LeonTao # # Distributed under terms of the MIT license. """ """ import torch import torch.nn as nn import torch.funtional as F from gumbel_softmax import GumbelSoftmax class GumbelVAE(nn.Module): def __init__(self, input_size=7...
[ "694731929@qq.com" ]
694731929@qq.com
c4bc04bf5d469f3e5315f2941b33cfd2a704a7ed
35ab93904c03c1494b470fe60ff17a6e3b8858e4
/tests/mocks/committees.py
56d14dbb8a5c2c603ea525703c8a13ac295bf0d4
[ "MIT" ]
permissive
alefbt/knesset-data-pipelines
cb6220fc96c95f50925e4b99d8682760729cf067
ed743fb4c84ce9e9ae0b935d686d05673d868416
refs/heads/master
2021-06-22T20:06:17.254073
2017-08-13T17:08:40
2017-08-13T17:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,195
py
from datapackage_pipelines_knesset.committees.processors.download_committee_meeting_protocols import DownloadCommitteeMeetingProtocolsProcessor from datapackage_pipelines_knesset.committees.processors.parse_committee_meeting_protocols import ParseCommitteeMeetingProtocolsProcessor from datapackage_pipelines_knesset.com...
[ "ori@uumpa.com" ]
ori@uumpa.com
5b8612f3e472db95cd9fdaa093ba14d6411ec101
dd89a85bbefa12a6c8e8b66ffc84c08767f0e841
/backend/task_profile/migrations/0001_initial.py
c7740497962e5be06a671658b9c15cad0b155cb6
[]
no_license
crowdbotics-apps/sample-27023
ac5f358cba9432b02080d3f3177efd23d35a08ed
e2e1f0d918e6cc47a87bfd7f318f1b6797f19d2d
refs/heads/master
2023-04-30T14:24:59.449141
2021-05-21T03:01:21
2021-05-21T03:01:21
369,397,318
0
0
null
null
null
null
UTF-8
Python
false
false
3,239
py
# Generated by Django 2.2.20 on 2021-05-21 03:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
f8b2e6eb000e9bb4ab907381ef8afbef0d9ae96e
453df013de5dc74291db65436011b661d969e4b6
/soccer/gameplay2/plays/restarts/kick_penalty.py
3476f67818ae84d74caf1477ebca2fda655fab5d
[]
no_license
david2194/robocup-software
3f04eb7de4b84cafdab1a956df7cc48c3d3d4604
6f98c38ddb129ca49be357fc230990c16eadf9d4
refs/heads/master
2021-01-17T21:39:47.832797
2014-07-15T01:31:51
2014-07-15T01:31:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
import play import behavior import robocup import main import tactics.line_up import tactics.penalty # one robot kicks the ball, the others just line up and wait class KickPenalty(play.Play): def __init__(self): super().__init__(continuous=True) self.add_transition(behavior.Behavior.State.start,...
[ "justbuchanan@gmail.com" ]
justbuchanan@gmail.com
0d6c12a20b87eb1a3983e038e756badb1c55e1c1
55c24645dd63a1c41037dcfb9fb45bc7bcdea4be
/venv/lib/python3.7/site-packages/sqlalchemy/__init__.py
a8209abb0731906a86b9be969f0404a04d25f2f6
[]
no_license
abdullah-nawaz/flask-boilerplate
7c42801a21ee3e6a647cc8a7d92e0285f8e86cad
01bc7fe1140e8ec613de4a38546a07ddfbdbd254
refs/heads/master
2022-12-02T05:06:08.297759
2020-06-24T21:36:32
2020-06-24T21:36:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,659
py
# sqlalchemy/__init__.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from . import util as _util # noqa from .inspection import inspect # noqa f...
[ "muhammadabdullah@wanclouds.net" ]
muhammadabdullah@wanclouds.net
6822f81d9f94b272ee76b01d65f926ac917a2f80
dfaf6f7ac83185c361c81e2e1efc09081bd9c891
/k8sdeployment/k8sstat/python/kubernetes/test/test_runtime_raw_extension.py
ee67e7a373c69490627d5edc9482fa2e486fd0ae
[ "Apache-2.0", "MIT" ]
permissive
JeffYFHuang/gpuaccounting
d754efac2dffe108b591ea8722c831d979b68cda
2c63a63c571240561725847daf1a7f23f67e2088
refs/heads/master
2022-08-09T03:10:28.185083
2022-07-20T00:50:06
2022-07-20T00:50:06
245,053,008
0
0
MIT
2021-03-25T23:44:50
2020-03-05T02:44:15
JavaScript
UTF-8
Python
false
false
968
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
[ "JeffYFHuang@github.com" ]
JeffYFHuang@github.com
50c91ad80d12b49cb8dd5fa2e3e23d87d64c3ce0
46667df8344db58698838d677bdae377b3c3c53c
/Data Manipulation with Pandas/Part 2/25.upsampling-data.py
18d91a2eac217beb607b6e8648ee86d48cbb6b62
[]
no_license
bennysetiawan/DQLab-Career-2021
278577cdddb3852c57f799cd1207b4ff45962960
0822d15e3b24cf0146c23456d4b65b0fb00a53fc
refs/heads/master
2023-06-06T13:24:21.289929
2021-06-23T17:09:14
2021-06-23T17:09:14
379,657,598
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
import pandas as pd # Load dataset https://dqlab-dataset.s3-ap-southeast-1.amazonaws.com/LO4/global_air_quality_4000rows.csv gaq = pd.read_csv('https://dqlab-dataset.s3-ap-southeast-1.amazonaws.com/LO4/global_air_quality_4000rows.csv') gaq['timestamp'] = pd.to_datetime(gaq['timestamp']) gaq = gaq.set_index('timestamp')...
[ "setiawanb25@gmail.com" ]
setiawanb25@gmail.com
f04775a90eb47f46df8bc83f530d0483eb919a60
b08d42933ac06045905d7c005ca9c114ed3aecc0
/src/coefSubset/evaluate/ranks/tenth/rank_1ay7_O.py
0e06f6a99063b4335484694384ed33130ec83f0a
[]
no_license
TanemuraKiyoto/PPI-native-detection-via-LR
d148d53f5eb60a4dda5318b371a3048e3f662725
897e7188b0da94e87126a4acc0c9a6ff44a64574
refs/heads/master
2022-12-05T11:59:01.014309
2020-08-10T00:41:17
2020-08-10T00:41:17
225,272,083
1
0
null
null
null
null
UTF-8
Python
false
false
3,204
py
# 9 July 2019 # Kiyoto Aramis Tanemura # Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess...
[ "tanemur1@msu.edu" ]
tanemur1@msu.edu
556405e629f0f2151963bc39b08f1197eac1b386
78b160d8131f3c4b7aef0d051b040825a9c50e0d
/algoexpert/easy/palindromeCheck.py
67e4ca78dd3bd4d9c8bce9e602b51280a4a5ece4
[ "MIT" ]
permissive
ardakkk/Algorithms-and-Data-Structures
744f8c9ffb233b95040e5bdcbddb9f5d2ff7a5ba
c428bb0bd7eeb6c34448630f88f13e1329b54636
refs/heads/master
2021-07-08T22:40:40.361282
2020-07-20T10:39:58
2020-07-20T10:39:58
156,005,721
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
# Time: O(n^2) | Space: O(n) # def isPalindrome(string): # reversedString = "" # # for i in reversed(range(len(string))): # reversedString += string[i] # return string == reversedString # Time: O(n) | Space: O(n) # def isPlaindrome(string): # reversedChars = [] # # for i in reversed(range(l...
[ "ardakfuse@gmail.com" ]
ardakfuse@gmail.com
e73bc712fb8c9aaa9b6e279837ea9cba1a4624f9
09dd58f46b1e914278067a69142230c7af0165c2
/blackmamba/lib/flake8/options/aggregator.py
5b8ab9c33b475d3ad576e839636fd2baf3f73f86
[ "MIT" ]
permissive
zrzka/blackmamba
4e70262fbe3702553bf5d285a81b33eb6b3025ea
b298bc5d59e5aea9d494282910faf522c08ebba9
refs/heads/master
2021-01-01T18:43:19.490953
2020-01-20T08:26:33
2020-01-20T08:26:33
98,410,391
72
12
MIT
2020-01-20T08:26:35
2017-07-26T10:21:15
Python
UTF-8
Python
false
false
3,255
py
"""Aggregation function for CLI specified options and config file options. This holds the logic that uses the collected and merged config files and applies the user-specified command-line configuration on top of it. """ import logging from flake8.options import config LOG = logging.getLogger(__name__) def aggregat...
[ "rvojta@me.com" ]
rvojta@me.com
6d41bc6c5b7e28373bc88fa9ad52239f056dbc2c
36821b9fcdbefe88a60f584e7d39695ca5fe6177
/codeforces/1453/A.py
a93ebbcf9a29319282fbae77a215b4aaceb35e41
[]
no_license
shubham409/CodeSubmits
231fc40a64ad97323e558ba2fa252c62f34c7809
5da4d9cc87d4ac8f54175723c2acf77fc5784f21
refs/heads/master
2023-06-26T06:17:30.255973
2021-06-03T18:24:00
2021-07-29T20:35:01
329,399,083
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
def fun(ls, lt): st = set(ls) count = 0 for i in lt: if(i in st): count += 1 print(count) T = int(input()) for i in range(T): n, k = list(map(int, input().split())) ls = list(map(int, input().split())) lt = list(map(int, input().split())) fun(ls, lt)
[ "sm091274@gmail.com" ]
sm091274@gmail.com
58789926c4ec41d87ecb91c85728560a035ea6c8
2c3e2d7da1e62bd75229fad0c8e18431a420b8a1
/tidy_headers/_parse_array.py
ac1f4780b57b533b14d09b060e35fe2b661aa445
[ "MIT" ]
permissive
ksunden/tidy_headers
9526c3b522257f9dec4729fcdbcc09e7db68b6b3
060942204b5bb87a8b209e81e1b64fd3cbb0691f
refs/heads/master
2020-03-13T02:55:24.394455
2017-11-13T03:08:06
2017-11-13T03:08:06
130,934,077
0
0
null
2018-04-25T01:34:24
2018-04-25T01:34:24
null
UTF-8
Python
false
false
2,092
py
"""Parse array.""" # --- import ------------------------------------------------------------------------------------- import re import numpy as np from ._utilities import flatten_list # --- parse -------------------------------------------------------------------------------------- def array2string(array, sep...
[ "blaise@untzag.com" ]
blaise@untzag.com
d8bb8e646968f06a0614abc39cd6ba7e62e1df63
ddd35c693194aefb9c009fe6b88c52de7fa7c444
/Live 10.1.18/VCM600/VCM600.py
d7805481023c57c96160c4fb4feb1534cdf912e5
[]
no_license
notelba/midi-remote-scripts
819372d9c22573877c7912091bd8359fdd42585d
e3ec6846470eed7da8a4d4f78562ed49dc00727b
refs/heads/main
2022-07-30T00:18:33.296376
2020-10-04T00:00:12
2020-10-04T00:00:12
301,003,961
0
0
null
null
null
null
UTF-8
Python
false
false
6,780
py
# uncompyle6 version 3.7.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00) # [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] # Embedded file name: c:\Jenkins\live\output\Live\win_64_static\Release\python-bundle\MIDI Remote Scripts\VCM600\VCM600.py # Compiled at: 2020-07-14 15:33...
[ "notelba@example.com" ]
notelba@example.com
c63fca29896bfff9b615895fc46e9674f2c87b44
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_292/ch79_2020_04_07_15_56_18_513329.py
d012de9b08ecbc09c2525d1628c5a9a84c203598
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
def monta_dicionario(l1,l2): dicionario = {} for i in range(len(l1)): dicionario[l1[i]]=l2[i] return dicionario
[ "you@example.com" ]
you@example.com
08959099af5bd095a8dc537ede88a16da5dbe231
797e83cd492c22c8b7e456b76ae9efb45e102e30
/chapter1_A_Sneak_Preview/Step2/dump_db_pickle.py
2efbafd3db26064e7f0fb1eacb1af56595a51304
[]
no_license
skyaiolos/ProgrammingPython4th
013e2c831a6e7836826369d55aa9435fe91c2026
a6a98077440f5818fb0bd430a8f9a5d8bf0ce6d7
refs/heads/master
2021-01-23T11:20:38.292728
2017-07-20T03:22:59
2017-07-20T03:22:59
93,130,254
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
import pickle # dbfile = open('people-pickle', 'rb') # use binary mode files in 3.X with open('people-pickle', 'rb') as f: db = pickle.load(f) for key in db: print(key, '=>\n ', db[key]) print(db['sue']['name']) # bob => # {'name': 'Bob Smith', 'age': 42, 'pay': 30000, 'job': 'dev'} # sue => # {'name':...
[ "skyaiolos@aliyun.com" ]
skyaiolos@aliyun.com
00c0734af882609c9d0bb4bb27ff77f501034d52
cdbaec17aa8411a1455b42520154cc9f30da3550
/Leetcode 5/Pacific Atlantic Water Flow 2.py
5ad9ed017d084ffd7100e845cc4497821387d475
[]
no_license
PiyushChaturvedii/My-Leetcode-Solutions-Python-
bad986978a7e72a3fda59b652cda79802377ab2f
86138195f6f343f0acc97da286f4f4811a0d0e48
refs/heads/master
2021-10-09T20:19:11.186191
2019-01-03T05:15:33
2019-01-03T05:15:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
class Solution(object): def pacificAtlantic(self, matrix): """ :type matrix: List[List[int]] :rtype: List[List[int]] """ m = len(matrix) n = len(matrix[0]) if m else 0 if m * n == 0: return [] topEdge = [(0, y) for y in range(n)] left...
[ "noreply@github.com" ]
PiyushChaturvedii.noreply@github.com
1fbe035cdeff7017e360ea5dbf43f22876d2e3a9
af7df9d77a2545b54d8cd03e7f4633dce6125f4a
/ch08/viewer-pil.py
a954ddc59ca3ec169dfbc48de4909a0fb22381eb
[]
no_license
socrates77-sh/PP4E
71e6522ea2e7cfd0c68c1e06ceb4d0716cc0f0bd
c92e69aea50262bfd63e95467ae4baf7cdc2f22f
refs/heads/master
2020-05-29T08:46:47.380002
2018-11-16T10:38:44
2018-11-16T10:38:44
69,466,298
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
""" show one image with PIL photo replacement object handles many more image types; install PIL first: placed in Lib\site-packages """ import os import sys from tkinter import * from PIL.ImageTk import PhotoImage # <== use PIL replacement class # rest of code unchanged imgdir = 'E:\\workspace\\PP4E-Examples-1.2\...
[ "zhwenrong@sina.com" ]
zhwenrong@sina.com
4b1f81a7f96f17aceb49489dc87ce9196f26aebb
8f24e443e42315a81028b648e753c50967c51c78
/rllib/models/jax/jax_action_dist.py
864cd065cee6c7efd858dbb23cc9e1fbc01c5e88
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
simon-mo/ray
d07efdada8d05c6e10417f96e8dfc35f9ad33397
1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8
refs/heads/master
2023-03-06T00:09:35.758834
2022-12-23T18:46:48
2022-12-23T18:46:48
122,156,396
4
2
Apache-2.0
2023-03-04T08:56:56
2018-02-20T04:47:06
Python
UTF-8
Python
false
false
2,423
py
import time from ray.rllib.models.action_dist import ActionDistribution from ray.rllib.models.modelv2 import ModelV2 from ray.rllib.utils.annotations import override from ray.rllib.utils.framework import try_import_jax, try_import_tfp from ray.rllib.utils.typing import TensorType, List jax, flax = try_import_jax() tf...
[ "noreply@github.com" ]
simon-mo.noreply@github.com
1578d7b129691847b352ad44b707bf582bf35fbd
673e829dda9583c8dd2ac8d958ba1dc304bffeaf
/data/multilingual/Latn.TOP/Sun-ExtA_12/pdf_to_json_test_Latn.TOP_Sun-ExtA_12.py
e426ed44c203532496b95fe8493f518f68f56d58
[ "BSD-3-Clause" ]
permissive
antoinecarme/pdf_to_json_tests
58bab9f6ba263531e69f793233ddc4d33b783b7e
d57a024fde862e698d916a1178f285883d7a3b2f
refs/heads/master
2021-01-26T08:41:47.327804
2020-02-27T15:54:48
2020-02-27T15:54:48
243,359,934
2
1
null
null
null
null
UTF-8
Python
false
false
311
py
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.TOP/Sun-ExtA_12/udhr_Latn.TOP_Sun-ExtA_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
9e8c98d739ff55d5f3cdf1c3ed99ca911570979e
7b750c5c9df2fb05e92b16a43767c444404de7ae
/src/leetcode/python3/leetcode5.py
857e394520e476e114ce1ce401e547ae69f40be6
[]
no_license
renaissance-codes/leetcode
a68c0203fe4f006fa250122614079adfe6582d78
de6db120a1e709809d26e3e317c66612e681fb70
refs/heads/master
2022-08-18T15:05:19.622014
2022-08-05T03:34:01
2022-08-05T03:34:01
200,180,049
0
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ 寻找最长回文字符串 """ # 比较朴素的思路,使用额外空间存储短字符串是否是回文字符串,时间5968ms, 效率不够高 class Solution: def longestPalindrome(self, s: str) -> str: if len(s) < 2: return s s_metric = [[1 if i == j else 0 for j in range(len(s))] for i in range(len(s))] ...
[ "jack.li@eisoo.com" ]
jack.li@eisoo.com
5f518d5a2d3485884b423ab1d9f6a7b2e6acd87b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03200/s568843924.py
40d7ef36da7f147dcae37fe4fd5f54e43d59e969
[]
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
261
py
s = list(input()) len_s = len(s) len_b = s.count('B') b_index_list = [] for i in range(len_s): if s[i] == 'B': b_index_list.append(i) b_index_list.reverse() l0 = len_s - 1 cnt = 0 for b in b_index_list: cnt += l0 - b l0 -= 1 print(cnt)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7dd7415ee5474dea20b15224b3b981dc2bb0b6cc
33f32d78087491e989289c46e5d2df5400e23946
/leetcode/Unsorted_Algorthm_Problems/Split_a_String_in_Balanced_Strings.py
f69cac1b2923e15b2c29e2164c5e53af3d96043f
[]
no_license
xulleon/algorithm
1b421989423640a44339e6edb21c054b6eb47a30
b1f93854006a9b1e1afa4aadf80006551d492f8a
refs/heads/master
2022-10-08T19:54:18.123628
2022-09-29T05:05:23
2022-09-29T05:05:23
146,042,161
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
# https://leetcode.com/problems/split-a-string-in-balanced-strings/ class Solution: def balancedStringSplit(self, s: str) -> int: # variable labled assume start with R. RLLLLRRRLR count, l, r, = 0, 0, 0 for char in s: if char == 'R': r += 1 else: ...
[ "leonxu@yahoo.com" ]
leonxu@yahoo.com
e17020abef3c21e15e8849965d0e461d1633248a
ffcd795f30483a19d2717f08b1aaf59a7fd4fd7e
/Math Quiz.py
6f82a81c20f6e0ab747e6c4a7bd8755010a2179d
[]
no_license
Botany-Downs-Secondary-College/mathsquiz-simonbargh
5791b4810790128878e7cd28678c3d4af3beb07d
d5aba85e9d522248827301130976fe5d5a45e11a
refs/heads/main
2023-03-13T18:05:25.291569
2021-02-22T21:28:58
2021-02-22T21:28:58
337,539,960
0
0
null
null
null
null
UTF-8
Python
false
false
4,402
py
from tkinter import * from tkinter import ttk import random import time class Welcome: def __init__(self, parent): def Questions(): # Checking whether the user's entry details meet the requirements '''def show_questions(): ...
[ "noreply@github.com" ]
Botany-Downs-Secondary-College.noreply@github.com
8221804a8b71f27558952a6fff2ea180d901387e
0e1a0329e1b96405d3ba8426fd4f935aa4d8b04b
/scraper/merge.py
15c94f3e038d5c181e3f5898d9c5efcb34e92473
[]
no_license
ugik/Blitz
6e3623a4a03309e33dcc0b312800e8cadc26d28c
740f65ecaab86567df31d6a0055867be193afc3d
refs/heads/master
2021-05-03T20:15:20.516014
2015-03-11T12:33:34
2015-03-11T12:33:34
25,015,963
0
0
null
null
null
null
UTF-8
Python
false
false
2,418
py
import xlrd, xlwt import glob, os.path def merge_xls (in_dir="./", out_file="merged_output.xls"): xls_files = glob.glob(in_dir + "*.xls") sheet_names = [os.path.basename(v)[:-4] for v in xls_files] sheet_excl = [os.path.basename(v)[:-4] for v in xls_files if len(os.path.basename(v)[:-4]) > 29] merg...
[ "georgek@gmail.com" ]
georgek@gmail.com
4f774788f282a41dee2b12ddc84f99a3129f478b
d1a8d250cf6e3e61f90b5d122e389d8488a9ff8c
/Travel/urls.py
92e0a1b5647b5b2c19167ecdbde5cdc9f7fe538a
[]
no_license
dusty-g/Travel
89501d156a3ea86f4478f7bb41e1f968c7087bd3
5ca6061884e7630a0b0365adfa640da3ce1a6c37
refs/heads/master
2021-01-20T02:23:18.066638
2017-04-30T19:00:56
2017-04-30T19:00:56
89,401,516
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
"""Travel URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
[ "dustygalindo@gmail.com" ]
dustygalindo@gmail.com
f1c2edcac27a6ce135430dbd9554ede1eecf2db1
caeec99c6a0e7d0dd625891c5adacd23ff311892
/trunk/config.py.sample
797bfa19df19a436c7f0371bef0150aa14ea9801
[]
no_license
BGCX067/faccbk-svn-to-git
fad0e44a3ce675d390751a4ff4cc8afbe9a4ebe8
82a5a801a9a2e19a2a72cbbdce0324a42ad699a4
refs/heads/master
2016-09-01T08:53:29.582184
2015-12-28T14:36:39
2015-12-28T14:36:39
48,699,781
0
0
null
null
null
null
UTF-8
Python
false
false
1,867
sample
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Created on Aug 15, 2010 @author: Wang Yuanyi ''' #please change follow 2 row by your family numbers google account Admin = '@gmail.com' Users = ['@gmail.com','@gmail.com'] TEST = False from wiwikai.faccbk import TransPurposeCategory, TransAccount, Payee, \ trans_typ...
[ "you@example.com" ]
you@example.com