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
b6d49ab3fa4d411e1f5a9c8d489a2420cc8d543b
ecff4b18a49ce5952c5f9125dc027cebdecf10a8
/azure-mgmt-storage/azure/mgmt/storage/models/resource.py
b7efc0442fafac938527f649b3b7c86678c98b23
[ "Apache-2.0" ]
permissive
jehine-MSFT/azure-sdk-for-python
a56c18020ecd5f4c245c093fd6a33e1b1d7c95e1
6d0f94b39406eab374906c683bd2150217132a9c
refs/heads/master
2020-12-06T19:17:38.153819
2016-04-08T21:03:16
2016-04-08T21:03:16
55,809,131
0
0
null
2016-04-08T20:54:00
2016-04-08T20:54:00
null
UTF-8
Python
false
false
1,774
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
f9133e888173fa493f944e0097fef6adb23d7163
e191eaf0c3885805f7be0eaecb4ed94c0d27aa20
/src/Bayse_Gaussian_Metropolis.py
b888bd04a77d448c9cb0c02359577e848f80375c
[]
no_license
kajyuuen/zero-mcmc-python
57065c3e9b171f9aa0d236efd5793221dcc9ce51
1cd806167298861f45a4f51a2f8154878d1d814f
refs/heads/master
2022-12-15T06:15:47.852015
2020-08-23T16:52:22
2020-08-23T16:52:22
288,741,559
3
0
null
null
null
null
UTF-8
Python
false
false
2,151
py
import numpy as np # イテレーション回数 n_iter = 1000 # n個のサンプル {x, y} = {{x_1, y_1}, ... ,{x_n, y_n}} n_sample = 100 # n個のサンプルx, yを用いた平均 av_x = -0.0930181 av_y = 0.0475899 av_xx = 1.06614 av_yy = 1.28152 av_xy = -0.504944 # step step_A = 0.1 step_mu = 0.1 n_skip = 10 # 作用の計算 def calc_action(A, mu): action = A[0][0] ...
[ "kajyuuen@gmail.com" ]
kajyuuen@gmail.com
cd31b0dee6bad4764ed63497231455c420076133
abc1fb3fd7db34775387bf44e24202d0375cbaa7
/main/core/apps.py
f71ae18316f9148070a4e3743e7644fefd85c9bd
[]
no_license
sengarrohit/jasmin-web-panel
85e37492e9b036423071f65905d7e567a9865e99
ca7dc87d414410820c588054a8de9c456ca91cab
refs/heads/master
2023-08-17T04:36:23.530388
2021-09-16T13:43:23
2021-09-16T13:43:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class CoreConfig(AppConfig): name = "main.core" verbose_name = _("Preferences")
[ "tarek.it.eng@gmail.com" ]
tarek.it.eng@gmail.com
8c998f057debac7af838f8eff3bc2a15912b5bfa
86fc644c327a8d6ea66fd045d94c7733c22df48c
/scripts/cpedeployment_grouping_lib/wanop_domain_def_type2_customization.py
3db038b67ef7509cbbe4477ccb8031727c63c322
[]
no_license
lucabrasi83/anutacpedeployment
bfe703657fbcf0375c92bcbe7560051817f1a526
96de3a4fd4adbbc0d443620f0c53f397823a1cad
refs/heads/master
2021-09-24T16:44:05.305313
2018-10-12T02:41:18
2018-10-12T02:41:18
95,190,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,478
py
from servicemodel import util from servicemodel import yang from servicemodel import devicemgr import copy from cpedeployment.cpedeployment_lib import getLocalObject from cpedeployment.cpedeployment_lib import getDeviceObject from cpedeployment.cpedeployment_lib import getCurrentObjectConfig from cpedeployment.cped...
[ "sebastien.pouplin@tatacommunications.com" ]
sebastien.pouplin@tatacommunications.com
42562148e186afc3cdbe0081b0f712cde3b1e40c
e8b5fde61cda3752507c3d8309c9d7075047a8d0
/cadence/desi_pz.py
c314042de6cd74fc80d7d4ea747198b70ea6baa4
[]
no_license
michaelJwilson/LBGCMB
f83af41d80d1991644607d473cd00246432fe601
fca7d0cd515b756233dfd530e9f779c637730bc4
refs/heads/master
2021-08-15T19:40:43.151033
2020-04-22T17:42:11
2020-04-22T17:42:11
163,872,551
2
1
null
null
null
null
UTF-8
Python
false
false
4,371
py
import numpy as np import pylab as pl import matplotlib.pyplot as plt from utils import latexify from scipy.interpolate import interp1d from whitebook_pz import Ng, lsst_chang_pz from schmittfull_bz import boss_lrg, desi_bgs, desi_lrg...
[ "mjw@roe.ac.uk" ]
mjw@roe.ac.uk
3ab728b91b8d2092cb808a875e0e40797e23c787
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_34/221.py
28ed5102c07013996802fc851fc65a6081497b63
[]
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
903
py
#!/usr/bin/env python from __future__ import print_function, division __metaclass__ = type import sys, re def run(filename): words = [] cases = [] with open(filename) as f: L, D, N = map(int, f.readline().strip().split()) for line in f: words.append(line.strip()) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
19136b9b2c2046fcfcafaf289da00d71c88408f4
462682b3b29304b561eaea3833c29e84d1e95c0e
/ExceptionHandling/02-TryElse.py
4629ed21dc0e26bf644e8a8796b985d147f33e33
[]
no_license
ravi4all/PythonDecMorning
4452b8340ce0b4ab067bd769725c5a6f831b7f45
1e20da3c90d407dbef714770ad54e72f16be0eec
refs/heads/master
2021-09-02T11:01:28.686860
2018-01-02T05:05:06
2018-01-02T05:05:06
113,133,365
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
main = True try: file = open('demo.txt') if main: data = file.read() print(data) except BaseException as ex: print(ex) else: print("Inside Else Block")
[ "noreply@github.com" ]
ravi4all.noreply@github.com
404b63e9f89f4c4cf31e53ab51b56d24521adbe0
1f18ec36e2b96843118ac0c767af19bfabc4a72a
/make
8e05b4a38b1f6c8a035189489612d9798b8c5df1
[]
no_license
IronCore864/datalake-databricks-azure
4d89b97eaa0b64ae3a781d6acc60b231a50466b9
ed23918f946f6d98da6f21f4689de7c7c1c14b32
refs/heads/master
2020-05-03T22:18:41.125276
2019-04-01T10:39:03
2019-04-01T10:39:03
178,841,481
0
0
null
null
null
null
UTF-8
Python
false
false
977
#!/usr/bin/env python3 import jinja2 import os import configparser import argparse parser = argparse.ArgumentParser() parser.add_argument("--env", required=True, help="Environment, dev|prod") args = parser.parse_args() config = configparser.ConfigParser() config.read(os.path.join(os.path.dirname(__file__), "cfg.ini")...
[ "guotiexin@gmail.com" ]
guotiexin@gmail.com
3e489feb459734a4ef60261640f5f4361cd412eb
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_LinearTrend_NoCycle_MLP.py
db0346a81b0f417368cc129249ee0710356d632b
[ "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
149
py
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Fisher'] , ['LinearTrend'] , ['NoCycle'] , ['MLP'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
10ef8c2902850b3ccc61d118e0748a6fb87e30ea
ea00f60f8f690536ad27d4a75586ae5d74a23e13
/Book/AppA/AppA_2_3b.py
ae6e7ad47fe6e3cc4cf20d7a057baa53952c01a4
[]
no_license
ricky4235/Python
3603a085567d1554358a52c8ad47be70fdb463e9
fdeecadc7e156f517cb4ec2eff2bb28423dc1d79
refs/heads/master
2023-07-20T06:17:18.443342
2020-12-23T04:27:53
2020-12-23T04:27:53
221,387,521
2
2
null
2023-07-06T21:21:28
2019-11-13T06:22:25
Jupyter Notebook
UTF-8
Python
false
false
212
py
a = True b = False print(type(a)) # 顯示 "<class 'bool'>" 布林值(True or False print(a and b) # 邏輯AND: 顯示 "False" print(a or b) # 邏輯OR: 顯示"True" print(not a) # 邏輯NOT: 顯示 "False"
[ "ricky1229x@gmail.com" ]
ricky1229x@gmail.com
e3b6139551a51032eb980131e91e1d1bb9f22e76
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/lib/python2.7/site-packages/nltk/corpus/reader/__init__.py
bf905dcc22ef57de6fc24b83fb416ba9918748bf
[ "Python-2.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
6,222
py
# Natural Language Toolkit: Corpus Readers # # Copyright (C) 2001-2015 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # Edward Loper <edloper@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ NLTK corpus readers. The modules in this package provide functi...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
14172739ced6bdf36334aa5b69277f47cd0ea616
cf3645e1bbfde328aec2175b3fa5d6eda6b5e2b1
/test/test_celery.py
1eba6fa979622ac96c20fc0b304c6ed7280ffd1b
[]
no_license
ShichaoMa/old-spider
f74f00d6a6c114aa6878662907c70ebe42f9ea09
cf030b655434a3adb6094302b1d2650f6521d1d3
refs/heads/master
2020-03-06T15:53:49.709223
2018-03-27T09:36:58
2018-03-27T09:36:58
126,963,707
2
0
null
null
null
null
UTF-8
Python
false
false
152
py
# -*- coding:utf-8 -*- from celery import Celery app = Celery() @app.task def add(x, y): return x + y if __name__ == '__main__': app.worker_main()
[ "308299269@qq.com" ]
308299269@qq.com
4cf24f127b5c2fe42fb4371826cc73521dc5be3a
e3a30242cb6481f0bd218c560cf4cfd1da125fc8
/백준/기타/폴리오미노.py
725e574d2596f6a5cfcfe1f53dfe633abc37d37c
[]
no_license
su-ram/Problem-Solving
2f7897a00b807c527bf5354655c6f8daf318b72a
dd24808346dee9ba7fd3b4899fd375aa0476f886
refs/heads/master
2023-08-27T23:35:46.342362
2021-10-29T05:27:24
2021-10-29T05:27:24
290,809,045
0
0
null
2020-09-21T18:05:36
2020-08-27T15:14:09
Python
UTF-8
Python
false
false
653
py
board = list(input()) poli = ['AAAA','BB'] index = 0 def can_place(start, poli): substring = ''.join(board[start:start+len(poli)]) if len(substring) == len(poli) and substring.count('.') == 0 : return True return False while index < len(board): if board[index] == 'X': if can_place(ind...
[ "swamys@naver.com" ]
swamys@naver.com
b15a0b3552fba3ac75e7e80686876b58def00d42
aaa7e60db97aedd02eeb6ad21966eb1d070a3f2c
/sobek/physical_geometry.py
d3cb1e03eb029239c75e6d381647c37b659084b1
[]
no_license
ivanredbread/sobek
147388080edcdd531d6277613581b45fba429261
8484b6eb4a78d524a20c0bfa71ed11ac0104d0ba
refs/heads/master
2020-03-20T16:16:41.971150
2016-06-16T12:00:26
2016-06-16T12:00:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
import math def planar_area(r): return 1 def planar_volume(r): return r def cylindrical_area(r): return 2.0*math.pi*r def cylindrical_volume(r): return math.pi*r**2 def spherical_area(r): return 4.0*math.pi*r**2 def spherical_volume(r): return 4.0*math.pi*r**3/3.0...
[ "almog.yalin@gmail.com" ]
almog.yalin@gmail.com
79eaa027515b09a1ae74269e360237e73b77a7de
a670da26e590e2ef0055099e9d334fbf2265de10
/cpsaprof/cpsa.py
399aa28dfe109689470f920893d43cc85b3ce589
[ "MIT" ]
permissive
csudcy/CPSAProf
1a4295253b9b2ae7a462358bb41d3b46b17d60ed
1368777cb16f74fcfc221f7b8342ed29d3d2f762
refs/heads/master
2021-01-10T23:53:22.524373
2016-10-20T14:36:18
2016-10-20T14:36:18
70,092,352
0
0
null
null
null
null
UTF-8
Python
false
false
1,644
py
""" Example of how to setup a cherrypy/sqlalchemy profiler """ import hashlib import logging import os import cherrypy from .publisher import Publisher from .profilers.saprofiler import SAProfiler from .profilers.cpprofiler import CPProfiler logger = logging.getLogger(__name__) HERE = os.path.dirname(os.path.abspat...
[ "csudcy@gmail.com" ]
csudcy@gmail.com
708c6ed4e4c6d34517cfc977f3de0b860691dfdd
1f920606452645d8ae03af3238b445d846d4c8f0
/april/django/pages-2.0/pages2_project/asgi.py
d6519f1c3112d7c5194ce83e91f7de532ec623e8
[]
no_license
NeoWhiteHatA/all_my_python
07e35f77f7447473e408934f3cb168029af24152
68126ac2f8cc622d14227273cf7d5e2fcac6d2bc
refs/heads/main
2023-04-01T13:20:57.113716
2021-04-03T11:02:46
2021-04-03T11:02:46
354,266,298
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" ASGI config for pages2_project project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANG...
[ "neowhitehata@gmail.com" ]
neowhitehata@gmail.com
b772ff733f994c13c6c0c6a66282c7b14af5613e
ade7b1699bbe32d028c5de31ce46456279495be3
/hr_ykp_appraisal/__manifest__.py
f3254261ce1f264ec039d8654e61a9effbac24cb
[]
no_license
Jacky-odoo/HRIS-YKP-Flectra
1a3806f672cfb85fc5ccdb2aae03875dc323a2a3
3528dd0d7999f66ed1f891fc09a9fd19b54568f2
refs/heads/main
2023-06-22T18:23:52.746293
2021-07-16T06:48:37
2021-07-16T06:48:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
# -*- coding: utf-8 -*- { 'name': "hr_ykp_appraisal", 'summary': """ Short (1 phrase/line) summary of the module's purpose, used as subtitle on modules listing or apps.openerp.com""", 'description': """ Long description of module's purpose """, 'author': "My Company", ...
[ "87510026+bambangbc@users.noreply.github.com" ]
87510026+bambangbc@users.noreply.github.com
3806525bf60674c762bf5466748f173fb6d7d4f1
8d35b8aa63f3cae4e885e3c081f41235d2a8f61f
/discord/ext/dl/extractor/weibo.py
75a191414cd130fe9afdf5f9e528a8e8bc0dfec8
[ "MIT" ]
permissive
alexyy802/Texus
1255f4e54c8d3cc067f0d30daff1cf24932ea0c9
c282a836f43dfd588d89d5c13f432896aebb540f
refs/heads/master
2023-09-05T06:14:36.217601
2021-11-21T03:39:55
2021-11-21T03:39:55
429,390,575
0
0
MIT
2021-11-19T09:22:22
2021-11-18T10:43:11
Python
UTF-8
Python
false
false
4,829
py
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor import json import random import re from ..compat import ( compat_parse_qs, compat_str, ) from ..utils import ( js_to_json, strip_jsonp, urlencode_postdata, ) class WeiboIE(InfoExtractor): _VALID_URL =...
[ "noreply@github.com" ]
alexyy802.noreply@github.com
0c869237e66d20c6b08de92c083563ba06d794a4
01175abc7d44d788a322ad2c6cdc7ea5daee4165
/vistrails_current/vistrails/packages/persistence/find_workflows.py
80140e9dc88eb3984f4e1e61cf24eb641d878337
[ "BSD-3-Clause" ]
permissive
lumig242/VisTrailsRecommendation
917c53fbd940b3075e629d15ed41725c01db6ce3
23ef56ec24b85c82416e1437a08381635328abe5
refs/heads/master
2020-04-11T01:20:50.193303
2016-01-20T23:30:10
2016-01-20T23:30:10
50,065,923
3
0
null
2016-01-20T22:49:17
2016-01-20T22:49:17
null
UTF-8
Python
false
false
5,638
py
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
[ "you@example.com" ]
you@example.com
3ea1ec62e1ab34cab696f9e793c32def089aedb8
a560269290749e10466b1a29584f06a2b8385a47
/Notebooks/py/srb256/random-forests-on-titanic-dataset/random-forests-on-titanic-dataset.py
b007921e9dcd2f585220a5f0426fac81e49aa01a
[]
no_license
nischalshrestha/automatic_wat_discovery
c71befad1aa358ae876d5494a67b0f4aa1266f23
982e700d8e4698a501afffd6c3a2f35346c34f95
refs/heads/master
2022-04-07T12:40:24.376871
2020-03-15T22:27:39
2020-03-15T22:27:39
208,379,586
2
1
null
null
null
null
UTF-8
Python
false
false
7,338
py
#!/usr/bin/env python # coding: utf-8 # In[ ]: # data analysis and wrangling import pandas as pd import numpy as np import random as rnd # visualization import seaborn as sns import matplotlib.pyplot as plt get_ipython().magic(u'matplotlib inline') # machine learning from sklearn.linear_model import LogisticRegres...
[ "bitsorific@gmail.com" ]
bitsorific@gmail.com
c585b8660057c5e07ae6d901b15834b8fac76733
7b270cf5f9d0a3e26b5afd758563c6cff73a5248
/criacionais/factory_method/fabrica_de_carros/carro/modelos/carro.py
3d55bc2393d5e440a1177337018a86cf79b39883
[]
no_license
reginaldosantarosa/DesignPatterns
10810672d3831e562ec636a5f66bd709c797ca34
bec4247f52b8d2e1fe41c570408816a5d4b22608
refs/heads/master
2020-04-04T06:54:19.757054
2018-01-04T03:06:05
2018-01-04T03:06:05
155,761,201
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
from abc import ABC, abstractmethod class Carro(ABC): """ Classe abstrata para criação de carros. """ @abstractmethod def mostra_informacao(self): """ Mostra informações do carro. """ pass
[ "victorhad@gmail.com" ]
victorhad@gmail.com
33bbbd8338faebd53c8ec26f20e0cf878ce8b120
110044654f706e920380dad2779bb32a77f1f26f
/test/Docbook/basic/man/man.py
843e82b578f4500c7cb6a90ed391b854eebde31f
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SCons/scons
89327bb9635cee6e7cc59249edca9cd859d7d1ff
b2a7d7066a2b854460a334a5fe737ea389655e6e
refs/heads/master
2023-09-01T19:37:03.603772
2023-08-28T04:32:42
2023-08-28T04:32:42
104,670,160
1,827
342
MIT
2023-09-14T15:13:21
2017-09-24T19:23:46
Python
UTF-8
Python
false
false
1,766
py
#!/usr/bin/env python # # Copyright (c) 2001-2010 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use,...
[ "dl9obn@darc.de" ]
dl9obn@darc.de
41cd326e8c717564501e4bb9de24f769d45b1360
44fb2fe531a0ff2144e4f0c2d4dd611f86f93cfb
/FuckLeetcode/102. 二叉树的层序遍历.py
8bea9c205cd15f3124b285c9bd1f8fdaa5895891
[]
no_license
Alex-Beng/ojs
d9f1a49f76dc6b6429951330af526e0df2152be8
26a467dfe8acd8ae4be0cd2784d79eebf09c06ce
refs/heads/master
2023-07-12T05:36:36.176271
2023-07-07T15:09:39
2023-07-07T15:09:39
152,544,110
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
from util import * class Solution: def levelOrder(self, root: TreeNode) -> [[int]]: ans = [] def layer_view(nodes): layer = [] next_layer = [] for node in nodes: layer.append(node.val) if node.left is not None: n...
[ "599267065@qq.com" ]
599267065@qq.com
35f1f9532992c35c09a7fe83944a17933e489d24
9ebbbcf2e7a887c1863bdcb4a444bf7438660e22
/yrrgpbqr/p0438/__init__.py
12277041328aa2967b9b296e753d2187ad2e9521
[]
no_license
nazarov-yuriy/contests
a0a070bd55b0b20dd03cf96e50eb06aa9558525e
8f7527adee017f986089a4586947bdfa68a1b93c
refs/heads/master
2021-06-18T07:34:14.967575
2021-04-04T14:07:45
2021-04-04T14:07:45
46,584,643
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
import unittest from typing import List from collections import Counter class Solution: def findAnagrams(self, s: str, p: str) -> List[int]: pc = Counter(p) l, r = 0, len(p) sc = Counter(s[l:r]) res = [] if pc == sc: res.append(l) while r < len(s): ...
[ "nazarov.yuriy.pavlovich@gmail.com" ]
nazarov.yuriy.pavlovich@gmail.com
fc46ac5d72df2bb2cef0e6ac0ab53af2deee216a
c37876a063c5af3dedbb0232daf8a0301ceafbf8
/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}_job.py
615831ab17ecc31b70b76d649ac5b49ab4dbe95c
[]
no_license
kecorbin/cookiecutter-pyats
ad388096e3acaee4d1422d82d2e5530783c7a767
b828f4155c66d6292e65a17822fbd543328f55ff
refs/heads/master
2020-03-26T11:42:00.913592
2019-04-01T04:52:02
2019-04-01T04:52:02
144,855,560
1
0
null
null
null
null
UTF-8
Python
false
false
8,106
py
'''{{cookiecutter.project_name}}_job.py This is an example docstring for an a job file. The header should describe which scripts are included as part of this job, their required topology, and any other information which may concern the person that runs this job. Purpose: This job file examines the `testscripts` d...
[ "kecorbin@cisco.com" ]
kecorbin@cisco.com
a1767ec9885d12ce1e6ba7bdddd857098894930b
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5738606668808192_1/Python/shimakaze/solution.py
73a43eaa473d264a96688d890cc92d3f931e2053
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,644
py
import math import sys def solve(input_file): f = open(input_file, 'r') output_file = input_file.split('.')[0] + ".out" o = open(output_file, 'w') num_tests = int(f.readline()) found = 0 for nt in xrange(num_tests): o.write("Case #%d:\n" % (nt+1)) [N,J] = map(int, f.readline().split(' ')) print...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
3446b016112ad0b1521f90ddc5bb89c280aab911
00ee6a3c859362bbc20342c568a27ea2a493e427
/src/x007007007/djapp/localnet/zeroconf/models/addr_ip.py
78f06d8f8bddab511ec1623c0fe1ae1f54cd6b29
[ "MIT" ]
permissive
x007007007/raspberrypi
7721b1fde2763fd28db579ca65217b81ee2193ae
9dfe49666c029b8bb617830a5c5a873a6106d853
refs/heads/master
2022-10-04T04:51:29.974216
2022-10-03T16:36:00
2022-10-03T16:36:00
56,951,270
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
from x007007007.djapp import _models class AddrIpModel(_models.Model): ip = _models.GenericIPAddressField() def __str__(self): return f"<IP {self.ip}>"
[ "x007007007@hotmail.com" ]
x007007007@hotmail.com
a69d409feb5a77992cae4fed0f23763035bc631d
dc0b6b680fd1fc0ab86ed7a3460137cde3a8612d
/Cursos e Vídeos/Python/Corey Schafer (Youtube)/56 __name__/first_module.py
e0943dc44adab189084558c1a33596d506f833cb
[]
no_license
pedromfnakashima/codigos_versionados
6c8c692bc08a0dda39a82bf91c5245f28d9be330
c40c94d69f1ee3dd4317786f1c25bcc1bbcc2bb9
refs/heads/main
2023-03-21T20:32:53.677701
2021-03-20T00:03:10
2021-03-20T00:03:10
305,754,740
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
# -*- coding: utf-8 -*- """ Created on Thu Dec 31 10:53:21 2020 @author: pedro """ # https://www.youtube.com/watch?v=sugvnHA7ElY&list=PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU&index=56 # print(__name__) print(f"Isso sempre serah rodado. Nome = {__name__}") def main(): print("First Module's Main Method") if __name__ =...
[ "pedromfnakashima@gmail.com" ]
pedromfnakashima@gmail.com
990a38a054d3b0cb92358a24840f9c76a6f04709
00b405a49ac6108d24986243c4b52fa53fb58acc
/0048-Rotate_Image.py
3b85f1a9907682615f3666b018e1493e378578be
[]
no_license
Shin-jay7/LeetCode
0325983fff95bfbc43a528812582cbf9b7c0c2f2
953b0b19764744753f01c661da969bdab6521504
refs/heads/master
2023-07-19T07:17:21.513531
2023-07-15T06:05:06
2023-07-15T06:05:06
231,285,199
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
from __future__ import annotations class Solution: def rotate(self, matrix: List[List[int]]) -> None: matrix.reverse() # print(matrix) for i in range(len(matrix)): for j in range(i): matrix[i][j], matrix[j][i] = matrix[j][i], matrix[i][j] # print...
[ "shin@jay7.net" ]
shin@jay7.net
30120cb94749242ff10d5bfbe8af673837b8eea8
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/2985.py
4f981c7652b021ae5d7746fa10b8efee6416ada9
[]
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
540
py
def listar(num): lista = [int(i) for i in str(num)] return lista def fun(num): lis = listar(num) for i in range(1,len(lis)): if lis[-i] < lis[-i-1]: lis[-i] = 9 lis[-i-1] -= 1 aux = 0 for i in range(len(lis)): if aux == 9: lis[i] = 9 e...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
f1f06dd086e27e571c44fa03ec7e1f721be84d21
0fd49b4779351c68bbe51ee978939f39c8e57d7c
/400-1000/454-4Sum II.py
58654c4de90b3b85c30e5fa873cca48c23374572
[]
no_license
jia0713/leetcode
8f632b96d0bc900cf4357ab1b8affd6068964dec
13565941f16c74d32124020285ce887a4cb31b27
refs/heads/master
2023-06-17T20:41:47.185832
2021-07-16T09:42:39
2021-07-16T09:42:39
247,866,418
1
0
null
null
null
null
UTF-8
Python
false
false
552
py
from collections import Counter class Solution(object): def fourSumCount(self, nums1, nums2, nums3, nums4): """ :type nums1: List[int] :type nums2: List[int] :type nums3: List[int] :type nums4: List[int] :rtype: int """ counter, res = Counter(), 0 ...
[ "pkuljn@gmail.com" ]
pkuljn@gmail.com
48675ac6d87f64b4b301d8794d24387a5d9e2df9
31e32761e3572f8adeb690053ebfcc26390a87b5
/printDirectory.py
d61410990f4406b4ad8972c341d2f1d9e1dc1d56
[]
no_license
sanshitsharma/pySamples
738b95c758d65e3360f3ee7221591d7b78c7ba1d
ce06f1e38e0c7a142af26e8883c81b7a5dfc7edc
refs/heads/master
2021-06-05T19:01:40.279148
2021-02-02T21:52:31
2021-02-02T21:52:31
110,218,258
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
#!/usr/bin/python import sys import os def print_directory_contents(sPath): for sChild in os.listdir(sPath): sChildPath = os.path.join(sPath, sChild) if os.path.isdir(sChildPath): print_directory_contents(sChildPath) else: print sChildPath def main(): if len(sys.argv) != 2: print "Invalid number of ...
[ "sansshar@cisco.com" ]
sansshar@cisco.com
a3d333fbe80adcf88e8819a33b8d93f7768102ed
320e22d6a11f34d821d105e10aebfe55015e1549
/topobuilder/virtual/VirtualReverse.py
51c0391bf2b9839961d20441680b7e67842b3f6f
[]
no_license
yangche7/topobuilder
b6bae4c38e55e7758ae59463caba2ced1397887a
4f0c0bdc5b83eda2ebef34e5ed07f53642b2f7ad
refs/heads/master
2022-02-22T20:29:23.024166
2019-09-11T12:10:39
2019-09-11T12:10:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,545
py
# -*- coding: utf-8 -*- # @Author: bonet # @Date: 2016-04-28 15:16:13 # @Last Modified by: bonet # @Last Modified time: 2016-05-02 18:19:31 import copy import numpy as np import scipy.spatial from VirtualStructure import VirtualStructure as VS from transforms3d.euler import euler2mat DEFAULT_MODULE = 20 class V...
[ "jaume.bonet@gmail.com" ]
jaume.bonet@gmail.com
b27accd1b67519e770e6d3c62cd14b12cda06912
61a72b019346d10c502f7ed4d4894adbfe03c8cb
/legacy/cuda_ipc.py
a78a789f026c0f1a35c70ed1954bcf50c5bc0d02
[ "BSD-2-Clause" ]
permissive
numba/numba-examples
10617ced993e1f756595152711c1b6abe8d180a9
c423f5419a459f5ab8874fda6d39bb5ea05d04b2
refs/heads/master
2023-08-23T15:33:21.729427
2022-06-27T22:54:27
2022-06-27T22:54:27
96,823,247
168
62
BSD-2-Clause
2022-09-29T19:24:53
2017-07-10T21:32:44
Jupyter Notebook
UTF-8
Python
false
false
1,225
py
from __future__ import absolute_import, division, print_function import multiprocessing as mp import numpy as np from numba import cuda def parent(): arr = np.arange(10) darr = cuda.to_device(arr) ipch = darr.get_ipc_handle() # launch child proc mpc = mp.get_context('spawn') queue = mpc.Qu...
[ "stuart.archibald@googlemail.com" ]
stuart.archibald@googlemail.com
04c86cf6f1480d049b041979f2cf770bc695f1dc
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2098/60707/276506.py
a3524839d88c005770e937bba4fd3b827d6b20b9
[]
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
225
py
a = int(input()) str1 = [] while a > 26: tmp = a % 26 a = int(a / 26) if tmp == 0: tmp = 26 a -= 1 str1.insert(0, chr(tmp + 64)) str1.insert(0, chr(a + 64)) print(''.join(str(i) for i in str1))
[ "1069583789@qq.com" ]
1069583789@qq.com
baefebf79c47f84a25cd1ece2b81167bb1dc4be2
78c3082e9082b5b50435805723ae00a58ca88e30
/03.AI알고리즘 소스코드/venv/Lib/site-packages/caffe2/python/record_queue.py
2c01fce230f4fc916e620087b5956ce78dd277c9
[]
no_license
jinStar-kimmy/algorithm
26c1bc456d5319578110f3d56f8bd19122356603
59ae8afd8d133f59a6b8d8cee76790fd9dfe1ff7
refs/heads/master
2023-08-28T13:16:45.690232
2021-10-20T08:23:46
2021-10-20T08:23:46
419,217,105
0
1
null
null
null
null
UTF-8
Python
false
false
4,571
py
## @package record_queue # Module caffe2.python.record_queue """ Implementation of a queue wrapper. """ from caffe2.python import core from caffe2.python.dataio import Reader, Writer from caffe2.python.schema import ( Struct, Field, from_column_list) class _QueueReader(Reader): def __ini...
[ "gudwls3126@gmail.com" ]
gudwls3126@gmail.com
49815ac5c49632a1e23d374107b725774087e095
be7ea638669f92cee2fe2f678fdd860e6609be89
/euler/test5.py
3a54cbf4d560b7549ab1ecfa4e3696cb30cc9f75
[]
no_license
bazerk/katas
4ab995f6cad467d7515a0096798a14ad4a7fdd95
0c0876459644fea3589a9a9b6fcccbf853f44874
refs/heads/master
2021-01-02T08:19:03.368809
2015-03-25T20:29:59
2015-03-25T20:29:59
8,090,094
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
import unittest from problem5 import euler_problem5 class Promblem4Tests(unittest.TestCase): def setUp(self): pass def test_check_number_is_palindrome(self): self.assertEqual(euler_problem5(range(1, 11)), 2520) if __name__ == '__main__': unittest.main()
[ "bazerk@gmail.com" ]
bazerk@gmail.com
6873f8d9978356c191b0c5dfc095350b2136218b
499fc7e223551d434582417353203ecd53b7d731
/DataTypeandManipulation/TwoDigitNumber/TwoDigitNumber-start.py
f99c1a767cff5a6be5f619db25f080461e6b03f0
[]
no_license
pravinherester/LearnPython
df53045e4b098a9923e7ecbbeffedb75f6c82f81
05c06dccd9ac45fc30cf0675f89f0bb2c7db6644
refs/heads/master
2023-08-11T10:12:50.494666
2021-06-19T04:44:12
2021-09-10T01:20:58
338,636,734
0
1
null
null
null
null
UTF-8
Python
false
false
211
py
# 🚨 Don't change the code below 👇 two_digit_number = input("Type a two digit number: ") # 🚨 Don't change the code above 👆 #################################### #Write your code below this line 👇
[ "replituser@example.com" ]
replituser@example.com
1e90da8ad014ff755e636be4f58d7dcce9a60117
8e3bf1e8eb1b237451fe9b757127e7f26ea7d155
/data/datasets/PatchDataSection.py
11e9c801debd1637b9f871ef3fc9329213708ac2
[ "MIT" ]
permissive
cxzhangqi/CNNs-for-Wind-Field-Downscaling
fdd7e14191fe7afe6d8f81a22026fc5f7dacebe7
eb8418d4d893fcb2beb929abb241281b7a9b6a95
refs/heads/master
2022-12-11T07:32:10.467042
2020-09-09T16:10:13
2020-09-09T16:10:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
from .PatchData import PatchData from . DataSection import DataSection class PatchDataSection(PatchData): def __init__(self, dataset, patch_size_lr=None): assert isinstance(dataset, DataSection) super(PatchDataSection, self).__init__(dataset, patch_size_lr) self.region = dataset.region ...
[ "kevin.hoehlein@tum.de" ]
kevin.hoehlein@tum.de
af4705bf9aaba6994b3e0d6606cae8cd842a7cec
f86404e650ed160b7963a75d6fc697159be22903
/content/migrations/0003_auto_20150809_1957.py
bd38487d741b1e86be09fd5f1f148124899e9165
[]
no_license
shashisp/random
c425bbc3dfdb0814f1141ab1ac37fac9d70d5e2d
24e1b835816e22cdf6b68c8fbd87d831b46f407c
refs/heads/master
2021-01-19T12:55:05.415247
2016-03-13T12:30:05
2016-03-13T12:30:05
30,982,818
2
0
null
null
null
null
UTF-8
Python
false
false
932
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('content', '0002_content_category'), ] operations = [ migrations.CreateModel( name='Collection', fiel...
[ "shashiessp@gmail.com" ]
shashiessp@gmail.com
fb1133a81b4bfb46738d2bcc9d78ba8f6b69dfeb
8e8acc57b63a66cb1450fa4d015d4ddcd74cce85
/leetcode/units/test_roman_to_int.py
e912edc324c20d15a01663edf6f471d616bc846c
[]
no_license
indeyo/PythonStudy
fc2241db7cec8075a59a307ff47c9de83494844b
099feb4e4c8dec9e68887cedd95705d831e51b0f
refs/heads/master
2021-03-29T19:04:24.553848
2020-06-05T15:07:33
2020-06-05T15:07:33
247,978,205
0
1
null
null
null
null
UTF-8
Python
false
false
841
py
# !/usr/bin/env python3 # -*- coding: utf-8 -*- """ @Project : PythonStudy @File : test_roman_to_int.py @Time : 2020-04-28 21:05:37 @Author : indeyo_lin """ import pytest from leetcode.roman_to_int import RomanToInt class TestRomanToInt: def setup(self): self.s = RomanToInt() # 注意要是合法的罗马数字才行...
[ "indeyo@git.com" ]
indeyo@git.com
9b0e44a034e1c5b400700c3359a5b2a32ecdbe5b
ddea27a6580dca40e7808123edccf701b3e34e60
/jsonify.py
03808fd10a7b2834fa089382dda0c1f560373e13
[ "MIT" ]
permissive
toastwaffle/nhtg15
38d6a6dde1a840e8935018ea5d089d90fcb7082c
ab6e33f182b2ba3af7a4bf04e9d2297c640c8c74
refs/heads/master
2016-09-06T11:27:24.013727
2015-03-22T14:19:56
2015-03-22T14:19:56
32,629,346
0
1
null
null
null
null
UTF-8
Python
false
false
955
py
#!/usr/bin/env python2 import sys import bs4 import feedparser import gflags import json import re FLAGS = gflags.FLAGS gflags.DEFINE_string('url', 'http://www.food.gov.uk/test-foodalerts-rss', 'URL to fetch feed from') def main(argv): try: argv = FLAGS(argv) ...
[ "samuel.littley@toastwaffle.com" ]
samuel.littley@toastwaffle.com
33cdf068171f383afd7b3bcff3f23fb26cdcb5c1
55ef08cfcd1cc7bad7b7478a7e9b30e04759755d
/avg.py
7bb5be1e0bccb2b3e5d01ff3f60b7c9295ed78fa
[]
no_license
Thilagaa22/python-codes
135a6365fb02c1b4517c1f9eab9c56b09af4b69f
2f20c1f66ca67bde428d7bbc4a4aefff55f433a4
refs/heads/master
2020-05-05T06:30:40.527575
2019-05-12T17:45:41
2019-05-12T17:45:41
179,791,098
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
n = int(input("Enter number to calculate to sum:")) avg = 0 sum = 0 for num in range(0,n+1,1): sum = sum + num print("sum of first ",n ,"numbers is:",sum) print(sum/n)
[ "noreply@github.com" ]
Thilagaa22.noreply@github.com
bef26ba3cef33e867500cdaecf1aa1097a0693b7
0a193b5c986906f9907337111a7791ce19766e1b
/bot_template/logger.py
16c728923c1a8f9d6e4bdb7825049cdc6ddf00f5
[]
no_license
mkhfring/telegram_bot_mvc_temp
355f226476e035089f4d41a91b829e4f56a6faf6
a94226938f8500ea563ea223b52a9d0381cca489
refs/heads/master
2020-09-04T08:44:53.920256
2019-11-05T10:45:56
2019-11-05T10:45:56
219,696,352
0
0
null
null
null
null
UTF-8
Python
false
false
1,974
py
import logging import graypy from btn_bot.main_config import LogConfig class Logger: logger = None @staticmethod def init_logger(): use_graylog = LogConfig.use_graylog source = LogConfig.source graylog_host = LogConfig.graylog_host graylog_port = LogConfig.graylog_port ...
[ "khajezade.mohamad@gmail.com" ]
khajezade.mohamad@gmail.com
fe17c9d23fd5bac395c9db0006c020465d21c167
b2be653bdc6759cadf4e05773f5489b47ea85562
/sample/config.py
84a14e4586bbcaf8caad4a39e1994cdaff6a2000
[]
no_license
ammubhave/draconium
6bd3a21e9dbdddd056292663d87cfbe4c00048f1
40196084964baebc7b703264b3f43acd1006aab5
refs/heads/master
2021-01-02T22:58:31.297621
2014-07-22T21:55:49
2014-07-22T21:55:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
class config: rules = None SOURCES_DIRS = [ 'sample/templates', ] SOURCES_FILES = [ ] entityref_allowed = ['amp', 'nbsp', 'lt', 'gt'] @staticmethod def import_rules(): import importlib config.rules = importlib.import_module('rules')
[ "ammubhave@gmail.com" ]
ammubhave@gmail.com
940cd8ea04ced5ea9576d3b8494044c07fb42002
8a3c1c66828008941dffad983ad79936830045d7
/single/dwango2015_prelims_2.py
462ba3d53e45ba1d1bafcf746651c6511e35b3fb
[ "MIT" ]
permissive
nishio/atcoder
71130c7923f557b5269ffd8063dab1f7e2732a30
8db36537b5d8580745d5f98312162506ad7d7ab4
refs/heads/master
2023-04-15T07:41:00.322297
2021-04-25T09:00:26
2021-04-25T09:00:26
273,831,891
1
0
null
null
null
null
UTF-8
Python
false
false
137
py
import re S = input() def tri(x): return x * (x + 1) // 2 ret = 0 print(sum(tri(len(s) // 2) for s in re.findall("(?:25)+", S)))
[ "nishio.hirokazu@gmail.com" ]
nishio.hirokazu@gmail.com
1f096518b7fac98bd2d33322e92765f37772853c
7f2612e5132e1583e5ba9758f299a8f301f0dc70
/F_reverse-vowels-of-a-string.py
a75673537bd201327a826d5d3b1a3da2f3b36c6c
[]
no_license
taeheechoi/coding-practice
380e263a26ed4de9e542c51e3baa54315127ae4f
9528b5e85b0ea2960c994ffea62b5be86481dc38
refs/heads/main
2022-07-09T11:22:18.619712
2022-06-28T14:55:51
2022-06-28T14:55:51
447,082,854
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
# Example 1: # Input: s = "hello" # Output: "holle" # Example 2: # Input: s = "leetcode" # Output: "leotcede" def reverseVowels(self, s: str) -> str: v = ['a','e','i','o','u','A','E','I','O','U'] p1 = 0 p2 = len(s) - 1 result = list(s) while p1 <= p2: if result[p1] not in v: ...
[ "dadac76@hotmail.com" ]
dadac76@hotmail.com
f989fbd6340c730eb71d0c6da3f0c0d992cd880e
c3c31ce9a8822ac0352475934f5b3fbdacac62a1
/ssseg/modules/backbones/bricks/transformer/__init__.py
b522ee6d1a47d77a5f8a52292cddbf3a3efb38b7
[ "MIT" ]
permissive
guofenggitlearning/sssegmentation
1e51b5b14bff3b5ad0d469ac98d711adb79cef11
7a405b1a4949606deae067223ebd68cceec6b225
refs/heads/main
2023-08-28T03:26:39.204259
2021-11-03T00:51:30
2021-11-03T00:51:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
'''initialize''' from .ffn import FFN from .embed import PatchEmbed from .mha import MultiheadAttention from .misc import nchwtonlc, nlctonchw
[ "1159254961@qq.com" ]
1159254961@qq.com
f5ae999eea2b3d354d47f4a7eb0cee51259adb9e
f654f5f07dd8109c0ee31ba89dd4804e6b288343
/src/programy/parser/template/maps/successor.py
e6c4dbbfb57113b8370d7b99a4b436ef4c26f63f
[ "MIT" ]
permissive
sprinteroz/program-y
3d1f5f28e4f3be770705d4bef15410b8b78f19da
454c6bde225dce7c3fb01c549d46249248caf7b5
refs/heads/master
2021-01-19T16:05:25.636700
2017-08-22T03:56:33
2017-08-22T03:56:33
100,986,551
1
0
null
2017-08-21T19:43:43
2017-08-21T19:43:43
null
UTF-8
Python
false
false
1,723
py
""" Copyright (c) 2016-17 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
[ "keith@keithsterling.com" ]
keith@keithsterling.com
5e7f8527bbe19c54469d8ac45ed92755e5d5be66
3b00f143f858c495df46cf88a27a18bee388c6b6
/Array and Lists/rotate_array.py
831e6aa16ace6a5d5989979e655a75ecf5090b2e
[]
no_license
deepcpatel/data_structures_and_algorithms
5a4d70e9d74e933a16b132d6701a0dc6b19d9203
2c7849f1e31c5c60924eb70830e524b44306d652
refs/heads/master
2023-01-01T04:47:19.704199
2020-10-27T17:35:48
2020-10-27T17:35:48
307,295,841
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
# Link: https://leetcode.com/problems/rotate-array/ # Link: https://practice.geeksforgeeks.org/problems/rotate-array-by-n-elements-1587115621/1/ # Approach: Reverse array from 0 to l and again reverse from 0 to k and k to l. If k is greater than l the we only need k-l shifts to simulate k rotations (line 15). class S...
[ "deepcpatel@yahoo.in" ]
deepcpatel@yahoo.in
32c758014aad7d70800b02f7d2e7e8c1b8a87f9b
8b606215d26314c046b24f779cad1d29679de73f
/GroundSegment/Scripts/TimeScaleDB/TimeDiffScript.py
8a9aeb9d2d5da3b196b1ef7341301cdb42683f7b
[]
no_license
unlamgidsa/unlam_gs_backend
b5a76660458fd43557602840eb24f838aabc4ce2
6284a5d55b8fe3b5b7c8f3a8def505409f7ea735
refs/heads/master
2023-07-20T10:30:30.618320
2022-12-29T21:55:51
2022-12-29T21:55:51
244,700,010
0
0
null
null
null
null
UTF-8
Python
false
false
4,050
py
''' Created on 26 oct. 2020 @author: pablo ''' ''' Created on 10 jun. 2020 @author: pablo ''' #source /home/pablo/.local/share/virtualenvs/GroundSegment-P2spt5oE/bin/activate #python /home/pablo/git/GroundSegment/GroundSegment/Scripts/TimeScaleDB/TimeScaleResultPlots.py from numpy.random.mtrand import randint impor...
[ "pablosoligo1976@gmail.com" ]
pablosoligo1976@gmail.com
afa4faa06662f7e951f8f790baa29cc67a2f73c1
3fbd26091ebbc13913f9c7be1aaf10d477c79536
/week01/zuoye/requests_maoyan/.history/maoyan_20200628010423.py
8207f08585ebb5eb9b2853eb2f7d03ababe443c8
[]
no_license
shuncon/Python001-class01
d28faf3d5d8e9ea4cee93bcae7143a26fd8c472e
df19758181cdaf37f30d4b518600fc4612590499
refs/heads/master
2022-11-13T19:31:27.019214
2020-07-10T14:58:25
2020-07-10T14:58:25
273,135,541
0
0
null
2020-06-18T03:46:56
2020-06-18T03:46:55
null
UTF-8
Python
false
false
700
py
#-*-conding:utf-8 -*- import requests import lxml from bs4 import BeautifulSoup as bfs user_agent= 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36' # header = {'user-agent' : user_agent} myurl = 'https://maoyan.com/films?showType=3' header = {} head...
[ "1428834423@qq.com" ]
1428834423@qq.com
00a76423184a6474cb62d15d0d483e7060a12d2d
acd41dc7e684eb2e58b6bef2b3e86950b8064945
/res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/clans/popover/RangeRequirementsVehiclePopover.py
a94a16cf8794b93b293db21064e7ff03363d8e9a
[]
no_license
webiumsk/WoT-0.9.18.0
e07acd08b33bfe7c73c910f5cb2a054a58a9beea
89979c1ad547f1a1bbb2189f5ee3b10685e9a216
refs/heads/master
2021-01-20T09:37:10.323406
2017-05-04T13:51:43
2017-05-04T13:51:43
90,268,530
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,149
py
# 2017.05.04 15:23:03 Střední Evropa (letní čas) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/clans/popover/RangeRequirementsVehiclePopover.py from gui.Scaleform.daapi.view.meta.RangeRequirementsVehiclePopoverMeta import RangeRequirementsVehiclePopoverMeta from gui.Scaleform.locale.CLANS import C...
[ "info@webium.sk" ]
info@webium.sk
c0a379e6c402ea03b37e6f074dde0ca41d3f8579
9185ddefedb06f88769e0995cfed8e687b0e5e0d
/6_data_encode_processing/13_sum_data_perform_stats.py
044f84a97b431af0125a99e41e86d408f2b541de
[]
no_license
mccarvik/cookbook_python
bbc069175f2281df3823152989aedf7637f6994a
3ad0aa7933613aef50a01931fa2ef04a980b08a2
refs/heads/master
2020-12-05T03:09:39.386470
2020-07-31T00:27:30
2020-07-31T00:27:30
231,992,516
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
import pandas # Read a CSV file, skipping last line rats = pandas.read_csv('rats.csv', skip_footer=1) print(rats) # Investigate range of values for a certain field print(rats['Current Activity'].unique()) # Filter the data crew_dispatched = rats[rats['Current Activity'] == 'Dispatch Crew'] print(len(crew_dispatched))...
[ "ec2-user@ip-172-31-91-31.ec2.internal" ]
ec2-user@ip-172-31-91-31.ec2.internal
9e3b60deb0b26c4568ffea89deaac4d3fbc21e7a
4e3ce5a1fc39c00d28b42f61c15cc54f65e706f0
/leetcode/001-100/T99_Recover_Binary_Search_Tree.py
6f8ca1e40855f16453e4969d1ddf2d8b4b7557a7
[]
no_license
PemLer/Journey_of_Algorithm
6c2a1d1f2bb9e1cff5239857dd33747b14127dfd
c0a51f0054446d54f476cf8f1cd3e6268dcd2b35
refs/heads/master
2023-03-31T01:57:09.223491
2020-06-23T11:25:27
2020-06-23T11:25:27
178,988,861
2
0
null
2020-06-23T11:25:29
2019-04-02T03:06:47
Python
UTF-8
Python
false
false
1,444
py
# 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: """ Do not return anything, modify root in-place instead. 1 中序遍历 ...
[ "1130527871@qq.com" ]
1130527871@qq.com
db99a3f94257c447a5c7711b47017989a528b417
8dc84558f0058d90dfc4955e905dab1b22d12c08
/third_party/android_ndk/prebuilt/linux-x86_64/bin/2to3
5cdb3d322c4a2d7b5c87af330aa34792648d63a3
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-python-cwi", "Artistic-1.0", "Python-2.0", "GPL-2.0-only", "Artistic-1.0-Perl", "LGPL-2.0-only", "LicenseRef-sca...
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
Python
false
false
146
#!/buildbot/tmp/buildhost/linux-x86_64/install/host-tools/bin/python2.7 import sys from lib2to3.main import main sys.exit(main("lib2to3.fixes"))
[ "arnaud@geometry.ee" ]
arnaud@geometry.ee
00f398a7177fded9a89df713b79af4a4f888dbab
648fbac90569e520540a14ad7be6714dc3aa303d
/scripts/cell/card_10000192.py
e7e2ba4120718ce5abad7498ea403072c040c524
[]
no_license
zhlhmjz/kbe_lscs
e573c1eac74c12005cb6c50288a952b2874e231b
6dc4eae5ab7fee66e929204abc80125f4f6be8f6
refs/heads/master
2021-08-24T13:43:42.208183
2017-11-21T08:39:14
2017-11-21T08:39:14
111,522,225
0
0
null
null
null
null
UTF-8
Python
false
false
920
py
# -*- coding: utf-8 -*- import KBEngine from KBEDebug import * from interfaces.GameObj import GameObj class card_10000192(GameObj): #卡牌名称:蒸发 #卡牌描述:<b>奥秘:</b>当一个随从攻击你的英雄,将其消灭。 def __init__(self): GameObj.__init__(self) #-------------------------------------------------------------------------------------------- ...
[ "752612571@qq.com" ]
752612571@qq.com
849f5474cf57345e87fed7f1f18c261e3d9f7fce
8c917dc4810e2dddf7d3902146280a67412c65ea
/v_11/Common/branches/account_check_printing_custom/report/bank_transfer_report.py
d129e46d061689338eb8c56df62e3aab6701bd8e
[]
no_license
musabahmed/baba
d0906e03c1bbd222d3950f521533f3874434b993
0b997095c260d58b026440967fea3a202bef7efb
refs/heads/master
2021-10-09T02:37:32.458269
2018-12-20T06:00:00
2018-12-20T06:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,712
py
# -*- coding: utf-8 -*- ############################################################################## # # NCTR, Nile Center for Technology Research # Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>). # ############################################################################## import time import decimal f...
[ "bakry@exp-sa.com" ]
bakry@exp-sa.com
13de107ea6c1f518124d575bfa7e092256f25795
3a5ea75a5039207104fd478fb69ac4664c3c3a46
/vega/trainer/callbacks/progress_logger.py
924866c62e308de5071a286b277e652ae6c03da3
[ "MIT" ]
permissive
fmsnew/vega
e3df25efa6af46073c441f41da4f2fdc4929fec5
8e0af84a57eca5745fe2db3d13075393838036bb
refs/heads/master
2023-06-10T04:47:11.661814
2021-06-26T07:45:30
2021-06-26T07:45:30
285,174,199
0
0
MIT
2020-08-11T14:19:09
2020-08-05T03:59:49
Python
UTF-8
Python
false
false
6,675
py
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
[ "zhangjiajin@huawei.com" ]
zhangjiajin@huawei.com
bbb1aa2857f68b7e227d1ca1d62944baaaba1d7d
dd6e870a400353c123529999555517c84c864474
/migrations/versions/40ee26ae5327_.py
a6b6a640c33349b8ead2293f53e48adb2b674c8f
[]
no_license
fenriz07/flask-hippooks
7bfea8e397603d74426725c31cf135758cc5e0d2
a7e88fce2d588bca49d63a9800c8344f117a4469
refs/heads/master
2020-04-30T20:09:08.550402
2019-03-22T03:02:30
2019-03-22T03:02:30
177,058,010
2
0
null
null
null
null
UTF-8
Python
false
false
3,100
py
"""Remove photo album dependency on class photos. Revision ID: 40ee26ae5327 Revises: 494a749ea22e Create Date: 2015-10-30 00:41:40.856139 """ # revision identifiers, used by Alembic. revision = '40ee26ae5327' down_revision = '494a749ea22e' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects impo...
[ "servio.za@gmail.com" ]
servio.za@gmail.com
6872b5ee9d8c8a91d2de59d0c0507f1b7e980d3f
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_connect.py
1f701534043d7c9983f0d5198ead6dc06abe3ad6
[ "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
664
py
#calss header class _CONNECT(): def __init__(self,): self.name = "CONNECT" self.definitions = [u'to join or be joined with something else: ', u'to consider or show a person or thing to be related to someone or something else: ', u'to feel close to someone or have a good relationship with them: ', u'to make it p...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f8ee4e69fd7275adf0ab01dbbb432d4235921ed3
2b468b1d22ecc5668529255676a1d43936829074
/codes/personal_backend/tuoen/model/store/model_track_event.py
0c51287fcc37f3702837684cde35b974929fd54c
[]
no_license
MaseraTiGo/4U
5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c
f572830aa996cfe619fc4dd8279972a2f567c94c
refs/heads/master
2023-07-26T09:44:21.014294
2023-07-13T03:43:34
2023-07-13T03:43:34
149,217,706
0
0
null
2020-06-05T20:38:16
2018-09-18T02:34:29
Python
UTF-8
Python
false
false
534
py
# coding=UTF-8 ''' Created on 2016年7月22日 @author: Administrator ''' from django.db.models import * from django.utils import timezone from model.store.model_customer import Customer from model.store.model_event_base import EventBase class TrackEvent(EventBase): """跟踪事件表""" customer = ForeignKey(Customer, on...
[ "344627181@qq.com" ]
344627181@qq.com
6a0fce69bb28e81f4c6efd9927b59f95d4012a74
dcc9d1dbee5b3dc37f8c8a97ba3045a5a6227bf0
/Maximum Length of Pair Chain - LeetCode.py
67d76d67c77064613a5c23ac1de8e67dfa1c6925
[]
no_license
alex-bo/leetcode
1786d450e50efb52fcb3748efa89ae1d5feb7d4f
c3cc49250a564801b82bac89115de94c75569dce
refs/heads/master
2022-11-12T00:15:41.860752
2022-11-05T21:07:12
2022-11-05T21:07:12
184,185,382
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
from typing import List class Solution: def findLongestChain(self, pairs: List[List[int]]) -> int: if not pairs: return 0 return bottom_up_solution(pairs) def bottom_up_solution(pairs: List[List[int]]) -> int: pairs.sort() dp = [1 for _ in pairs] for i in range(1, len(pai...
[ "bojenko.alex@gmail.com" ]
bojenko.alex@gmail.com
71bac0a738c5fd9fd53bb7827dba1708dc60e016
fae4b87a9454e255545027f16ffea97c92815758
/scrapy01/scrapy01/settings.py
15d9de9e5805065fc8b025b5d9e9c29283112a71
[]
no_license
AlexYangLong/SimpleSpiders
944d2b16c39ed209af98697a8f9e37b1b2df4d45
8593eec1834b5e945ee147b328570aba04743a92
refs/heads/master
2020-03-17T00:03:35.356899
2018-08-03T12:13:53
2018-08-03T12:13:53
133,101,856
1
0
null
null
null
null
UTF-8
Python
false
false
3,266
py
# -*- coding: utf-8 -*- # Scrapy settings for scrapy01 project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/topi...
[ "alex@alex.com" ]
alex@alex.com
86bbf66b71f1245ce26b7052a2757fdacab683c1
578095fd9733350861591b6bc422b224e4d682b7
/tests/descriptors/__init__.py
bbcdae1983be56fec87e006caa0eab2c218a893b
[ "MIT" ]
permissive
3con/cleo
7d4602731ece4074efea2560723a712eed8d6201
961067b7f4c7a9fee508614332bb1298d939ffdd
refs/heads/master
2021-01-23T20:00:21.015593
2017-08-07T12:22:49
2017-08-07T12:22:49
102,842,755
1
0
null
2017-09-08T09:14:10
2017-09-08T09:14:10
null
UTF-8
Python
false
false
2,795
py
# -*- coding: utf-8 -*- import os from .. import CleoTestCase from .objects_provider import ObjectsProvider from cleo.outputs import BufferedOutput from cleo.commands import BaseCommand class DescriptorTestCase(CleoTestCase): def setUp(self): super(DescriptorTestCase, self).setUp() self.origina...
[ "sebastien.eustace@gmail.com" ]
sebastien.eustace@gmail.com
35caf1db71a7bdc7063807244020f403dbd3f178
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/merra_scripts/01_netCDF_extraction/merra902TG/68-tideGauge.py
f07aa71ded37d42426957b7bb13771a7b917b1a6
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
5,073
py
# -*- coding: utf-8 -*- """ Created on Mon Jun 01 10:00:00 2020 MERRAv2 netCDF extraction script - template To create an extraction script for each tide gauge @author: Michael Tadesse """ import os import pandas as pd from d_merra_define_grid import Coordinate, findPixels, findindx from c_merra_read_netcdf import r...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
f5ada70198445685285819b1a8d43d39e6f85067
d4c7552f34e77cd0b7d27de0debbdf59847201c9
/domains/tests.py
4d321e8aa7d6e8a417ccd794b6b2e21ef317f37d
[]
no_license
rizumu/django-domains
594588a6dccc517117526fd5d594e05c4a2f77de
83d48ea78caacc3588926ac3a3224c9773ba5240
refs/heads/master
2020-12-11T05:38:06.274822
2015-05-22T04:12:35
2015-05-22T04:12:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,604
py
# coding: utf-8 from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from __future__ import division from django import test, get_version from django.core.exceptions import ImproperlyConfigured from django.conf import settings from django.conf.urls import...
[ "marazmiki@gmail.com" ]
marazmiki@gmail.com
07510100d99b7bff745db255011515f046b73dc1
e6bc1f55371786dad70313eb468a3ccf6000edaf
/Extras/person/Correct/12.py
0af1531de4c00ab65a6f76562237e09801a41c9f
[]
no_license
prateksha/Source-Code-Similarity-Measurement
9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0
fb371b837917794d260a219a1ca09c46a5b15962
refs/heads/master
2023-01-04T07:49:25.138827
2020-10-25T14:43:57
2020-10-25T14:43:57
285,744,963
3
0
null
null
null
null
UTF-8
Python
false
false
686
py
from functools import reduce def processlists(f,l1,l2) : return f(l1,l2) def addlists(l1,l2) : temp = list(zip(l1,l2)) result=[] for i in range(len(temp)) : result.append(reduce(lambda x,y : x+y,temp[i])) return result def maxlist(l1,l2) : temp = list(zip(l1,l2)) result=[] for i in range(len(temp)) : result....
[ "pratekshau@gmail.com" ]
pratekshau@gmail.com
d7db756e8f6cf1ff785228968db979eb5d870f23
4442e44211ef94c03f8a8b6795ccd8ac0eed198d
/Coroutine/coroutine_exception_handling.py
0d25eb51b13d99231e1e511d37f9d52cd9430ad4
[ "MIT" ]
permissive
xlui/PythonExamples
e599801fb960c784c97907c8db29a9081c96b278
0389efb84e01dc1310bb2bab7aa2433c0e1b45c4
refs/heads/master
2021-08-19T12:35:11.170853
2017-11-26T09:14:20
2017-11-26T09:14:20
102,260,817
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
# coroutine_exception_handling.py class DemoException(Exception): """define a special exception for test""" def demo_exception_handling(): print('-> coroutine started') while True: try: x = yield except DemoException: print('*** DemoException handled. Continuing...'...
[ "liuqi0315@gmail.com" ]
liuqi0315@gmail.com
4bc90b6569ae27dd1e4deb7f2be2c41b7f204f41
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/funnelarea/_customdatasrc.py
3cd257563fcd306767a098686605b59860480bc3
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
414
py
import _plotly_utils.basevalidators class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="customdatasrc", parent_name="funnelarea", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=paren...
[ "noreply@github.com" ]
hugovk.noreply@github.com
caf9b48a5567c35597c3fe8a64e170c0b099e5d1
06f7ffdae684ac3cc258c45c3daabce98243f64f
/vsts/vsts/task/v4_0/models/task_reference.py
3ff1dd7b330b4eec3a46f8278f3e6a913515a13c
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
kenkuo/azure-devops-python-api
7dbfb35f1c9637c9db10207824dd535c4d6861e8
9ac38a97a06ee9e0ee56530de170154f6ed39c98
refs/heads/master
2020-04-03T17:47:29.526104
2018-10-25T17:46:09
2018-10-25T17:46:09
155,459,045
0
0
MIT
2018-10-30T21:32:43
2018-10-30T21:32:42
null
UTF-8
Python
false
false
1,263
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "tedchamb@microsoft.com" ]
tedchamb@microsoft.com
4eec6c04671de66eb4b82f1c35ed0d3848e57cde
e302dfb02a376c20096122b07b162f64fa78258e
/f5restapi/apps.py
40438940ffef854d7db997401dc3117d47fe00f7
[]
no_license
parkjunhyo/machinegate
e5689ab9cd6cea4270d6fcc0cc0755947775412c
a2c140066c166e2bd6d53628bef6e48012952943
refs/heads/master
2021-01-23T13:35:52.963480
2017-07-14T09:30:33
2017-07-14T09:30:33
56,733,267
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
from __future__ import unicode_literals from django.apps import AppConfig class F5RestapiConfig(AppConfig): name = 'f5restapi'
[ "you@example.com" ]
you@example.com
6f05c6575fb0de6e1bae80c61a03ec49e07eeb78
a4f3e7f4f0d28f2c072a6378487760a067e838e6
/Projet Euler - Pandigital Prime.py
88b0aaed050bc00ecf2d2e0deb71d50681ccc50a
[]
no_license
algebra-det/Python
50cacdb517a863ef914dd8ce8b835091f28aa9f6
c4506f4df0c2ec103b1bcebcfedca78cbe705541
refs/heads/master
2020-12-14T15:35:26.727430
2020-05-01T10:21:09
2020-05-01T10:21:09
234,789,421
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
from math import * def prime(y): for z in range(2 ,ceil(sqrt(y))): if y% z == 0: break else: print(y, " is prime") for i in range(7000001,8000000,2): stri = str(i) for j in range(1,8): k = str(j) if k not in stri: break else: ...
[ "noreply@github.com" ]
algebra-det.noreply@github.com
6f38b5ce927f9ea70b0218e15052784c4443039b
f48af39290a4e77d95f0f5d9d7eb527f20430366
/venv/bin/sqlformat
20e27a6e426f417f53f20115a3b9a522d0446c06
[]
no_license
bhobbs20/coop-supply
432625f06c380db882e04f23b4d94b9ff23df7e6
54318995a41f7cc543bb87478bb3774f125ef565
refs/heads/master
2020-08-20T14:59:36.355575
2019-10-23T19:09:02
2019-10-23T19:09:02
216,036,338
0
0
null
null
null
null
UTF-8
Python
false
false
252
#!/Users/pigeon/BHP/Projects/store-ex/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "brianhobbs216@gmail.com" ]
brianhobbs216@gmail.com
1194ea39bfe83dc932767ba5c99add99b452517e
6299f52c40adf370444692cfff8a1bdc454fcfdc
/JAN21/robottino_vestitino.py
9b09421d3d88432632c380d54bd8fbbbb1370eda
[]
no_license
aliseas/ProgrammingLab
a0931f0f83827f1607e91fb66360380da886eab3
c659766e71e1972328254280eff9f66f5e79e0b9
refs/heads/main
2023-03-01T12:28:29.884505
2021-02-08T10:13:59
2021-02-08T10:13:59
310,652,066
0
0
null
null
null
null
UTF-8
Python
false
false
3,143
py
""" exercise one: Eccezioni e sanitizzazione: Un androide deve simulare il comportamento umano dell’atto di vestirsi """ #INIZIO print("Starting to run your script") import random #Funzione per una generica azione di indossare un indumento def indossare(capo_vestiario): #value = 1 value = random.randint(0,1)...
[ "replituser@example.com" ]
replituser@example.com
a9ea4ad8fa9144bf3ccef5d8c0f6b6bc1f89eedc
3577d2e20c79cbbbc0a8a91a73be322be61cf384
/5.3 Data Strucutres/3 Lists/10 Scantron.py
d883c5e9a6dbad39fa54c5d827b8848a49b259dd
[]
no_license
KETULPADARIYA/Computing-in-Python
cb30a807fa92a816f53f3254a63f07883977406d
02c69a3c074924a70f68f00fd756436aa207dcf6
refs/heads/master
2020-04-24T04:47:18.342215
2019-03-17T03:21:46
2019-03-17T03:21:46
171,716,015
1
0
null
null
null
null
UTF-8
Python
false
false
1,465
py
#Write a function called grade_scantron. grade_scantron should #take as input two lists: answers and key. Each list contain #strings. Each string will be only one letter, a character #from A to E. grade_scantron should return how many questions #the student got "right", where a student gets a question #right if their a...
[ "ketulpadariya79@gmail.com" ]
ketulpadariya79@gmail.com
265d0d4f96e121e25e89efb07ad3eb8b4730da19
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_Integration/trend_LinearTrend/cycle_0/ar_12/test_artificial_128_Integration_LinearTrend_0_12_20.py
e85378f9fe58a14505a5b537d215bde982631c5f
[ "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
269
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 0, transform = "Integration", sigma = 0.0, exog_count = 20, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
f05ad8ed0d3e89e5229faa773c30d86b46a1c592
f82107f045898f0300aa414780f1d406a6c3398a
/mldp/tests/transformers/test_vocab_mapper.py
0c5b9c3778527ad2296e3fdd3df4d3d502d8dc56
[ "MIT" ]
permissive
DanielGutmann/mltoolkit
9b609bb2976e4492473d0692d1a2b26fa8b448d4
acc192bafc66b7661d541ef4f604b5e5ab7df5ca
refs/heads/master
2022-03-09T05:31:46.317003
2019-11-07T12:03:31
2019-11-07T12:03:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,493
py
import unittest from mldp.tests.common import read_data_from_csv_file from mldp.utils.tools import Vocabulary, DataChunk from mldp.steps.transformers.nlp import VocabMapper from mldp.steps.readers import CsvReader import copy import numpy as np class TestVocabMapper(unittest.TestCase): def test_vocabulary_ma...
[ "bulletdll@gmail.com" ]
bulletdll@gmail.com
69145675cdbdc1de8d25630f0c6dbe2ad0f3a7f7
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2622/60727/236651.py
9aa1401283a60c5f56dc658c039cddfa248b4def
[]
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
250
py
num=0 a=input() li=a.split(",") bound = len(li)//2 flag = 0 for i in range(0,len(li)): count = 0 for j in range(0,len(li)): if(li[j]==li[i]): count+=1 if count>bound or count==bound: print(li[i]) break
[ "1069583789@qq.com" ]
1069583789@qq.com
03a781428180e8852fef06dfe4ef30342c2543c7
ce0b0a1e665bf7807255bcf4fbe633f0430712a4
/mpikat/meerkat/test/test_katportalclient_wrapper.py
e8b62d69b4032711d48cdc1b4466c42071024c25
[ "MIT" ]
permissive
MPIfR-BDG/mpikat
44b01b3921a1b70454bef1b6f3938176e930d595
618205f1376fee4e5e2593cf05e2f1f78ea19780
refs/heads/dev
2022-12-05T07:16:08.199631
2020-08-31T12:09:23
2020-08-31T12:09:23
140,822,520
0
1
MIT
2020-08-14T12:28:14
2018-07-13T08:51:44
Python
UTF-8
Python
false
false
3,448
py
""" Copyright (c) 2018 Ewan Barr <ebarr@mpifr-bonn.mpg.de> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
[ "ewan.d.barr@googlemail.com" ]
ewan.d.barr@googlemail.com
518c97199170a10d284e6d53ee14524d2fbf799c
e288ae44d875568e6bb679982943dfa6544c0d5a
/unical_accounts/migrations/0004_auto_20190815_2356.py
b7778c837e913bfc0395f6c7cdce5afecb7536d4
[ "Apache-2.0" ]
permissive
sebbalex/uniAuth
98e8c525143b7045d7e7353cbc977a1fe4663073
b93734eba00290a7efcf9a5e95a917cbe58bfd8e
refs/heads/master
2022-12-13T18:50:19.151275
2020-08-14T19:57:54
2020-08-14T19:57:54
258,162,057
0
0
Apache-2.0
2020-04-23T09:59:06
2020-04-23T09:59:05
null
UTF-8
Python
false
false
1,032
py
# Generated by Django 2.2.4 on 2019-08-15 23:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('unical_accounts', '0003_auto_20190730_1101'), ] operations = [ migrations....
[ "giuseppe.demarco@unical.it" ]
giuseppe.demarco@unical.it
58d0b76a7a13b03fd285472a78f902dd21cfe5be
426ac560659612c2a4adca6032ed9b205919f9fc
/rctkdemos/controls_window.py
539db6b73cb8a9395aeec882384b594ce488ac63
[ "BSD-2-Clause" ]
permissive
dimitrs/demos
3719de9cd0a62b8b2bbe76e5d70d7b2dce4237ec
d859bc5ed8d62ebf13367e92f49b729febf4708e
refs/heads/master
2020-12-25T17:03:47.357982
2011-09-06T11:01:37
2011-09-06T11:01:37
2,996,600
0
0
null
null
null
null
UTF-8
Python
false
false
2,493
py
from rctkdemos.demos import serve_demo, standalone from rctk.widgets import Button, Window, StaticText class Demo(object): title = "Window" description = "Demonstrates the Window control" def open_modal(self, e): if self.modal_window: self.modal_window.shut() self.modal_win...
[ "github@in.m3r.nl" ]
github@in.m3r.nl
e2d7dffaf155a1b9d348c73dd57016264e36d0cf
353e6685be6737a828b8770d4d71e389ca2853b9
/0x06-python-classes/3-square.py
64e7e7ecc103927ec30e974db532556f92bc7649
[]
no_license
adebudev/holbertonschool-higher_level_programming
912af3f7caab3197beb062b5389f5b464b2ed177
cb0510ed0b6d7b7c43d0fd6949139b62e2bdede7
refs/heads/master
2022-12-18T17:40:28.539558
2020-09-25T04:29:45
2020-09-25T04:29:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
#!/usr/bin/python3 """Class Square that defines a square""" class Square: """Class Square Attributes: size -- size of square""" def __init__(self, size=0): """Class Method Private instance attribute""" if type(size) is int: if size < 0: """Raised when the Va...
[ "delaasuncionbuelvasadrian@gmail.com" ]
delaasuncionbuelvasadrian@gmail.com
118c6b087a153ff2d14ca0ff87936b7323af497c
b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1
/vmraid/email/test_email_body.py
3920e7c4a4bf20ed69b4326ba7869a824224c117
[ "MIT" ]
permissive
vmraid/vmraid
a52868c57b1999a8d648441eb9cd05815204345d
3c2e2a952003ba7ea2cf13673b9e79e127f4166e
refs/heads/main
2022-07-29T18:59:28.585133
2022-04-22T08:02:52
2022-04-22T08:02:52
372,473,120
0
0
null
null
null
null
UTF-8
Python
false
false
5,608
py
# Copyright (c) 2021, VMRaid and Contributors # License: MIT. See LICENSE import base64 import os import unittest from vmraid import safe_decode from vmraid.email.doctype.email_queue.email_queue import QueueBuilder, SendMailContext from vmraid.email.email_body import ( get_email, get_header, inline_style_in_html, ...
[ "sowrisurya@outlook.com" ]
sowrisurya@outlook.com
f3307d8b278db4c5e5db84c692a524e2c2dc6110
cca89a7bbe2da907a38eb00e9a083f57597273f0
/5. 最长回文子串/pythonCode.py
ba67d7ae03eaed9e32d7d6545d4a92c3c5cc995c
[]
no_license
xerprobe/LeetCodeAnswer
cc87941ef2a25c6aa1366e7a64480dbd72750670
ea1822870f15bdb1a828a63569368b7cd10c6ab8
refs/heads/master
2022-09-23T09:15:42.628793
2020-06-06T16:29:59
2020-06-06T16:29:59
270,215,362
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
class Solution: def longestPalindrome(self, s: str) -> str: tranStr = '#' if(len(s) < 1): return '' for i in s: tranStr = tranStr + i + '#' radius = [0 for _ in tranStr] R = -1 #边界点 c = -1 #中心点 maxRadius = 0 maxCenter = 0 ...
[ "changwenhao1@qq.com" ]
changwenhao1@qq.com
b9118c1acab3587355428178f225098e2988e2ef
8d014a0120864b42748ef63dddfa3c733370118c
/test/test_notifications.py
c75da3cfae5130d19e4dd9f7a62a4385c7cc3c94
[ "Apache-2.0" ]
permissive
LayeredInsight/layint_api_python
3a6cf0bf62219f09010b828d7e02c2f3852a6f6f
a5c9a5b24098bd823c5102b7ab9e4745432f19b4
refs/heads/develop
2020-03-27T05:43:35.831400
2018-10-15T22:28:54
2018-10-15T22:28:54
146,044,385
0
0
Apache-2.0
2018-10-15T22:28:55
2018-08-24T22:11:08
Python
UTF-8
Python
false
false
1,260
py
# coding: utf-8 """ Layered Insight Assessment, Compliance, Witness & Control LI Assessment & Compliance performs static vulnerability analysis, license and package compliance. LI Witness provides deep insight and analytics into containerized applications. Control provides dynamic runtime security and analyti...
[ "Scott Oberg" ]
Scott Oberg
8ca337ff9a79257993b7c856f930bd2e210d7b0f
2c74bb301f1ed83b79254944183ac5a18a639fdf
/tests/components/advantage_air/test_switch.py
6e16d8d743acd1d24bc25002c62d4dd897447f43
[ "Apache-2.0" ]
permissive
Adminiuga/home-assistant
5bec93007ddac1a268cc359bf7e48530c5f73b38
dcf68d768e4f628d038f1fdd6e40bad713fbc222
refs/heads/dev
2023-02-22T22:03:31.013931
2022-11-09T00:27:20
2022-11-09T00:27:20
123,929,062
5
4
Apache-2.0
2023-02-22T06:14:31
2018-03-05T14:11:09
Python
UTF-8
Python
false
false
2,365
py
"""Test the Advantage Air Switch Platform.""" from json import loads from homeassistant.components.advantage_air.const import ( ADVANTAGE_AIR_STATE_OFF, ADVANTAGE_AIR_STATE_ON, ) from homeassistant.components.switch import ( DOMAIN as SWITCH_DOMAIN, SERVICE_TURN_OFF, SERVICE_TURN_ON, ) from homeass...
[ "noreply@github.com" ]
Adminiuga.noreply@github.com
bc941310d4d678442f6e35588cc68830c6e4c74a
85b2c758837e37937d431f6e71ca1d6a39685b3f
/1706-exploits/jad158-overflow.txt
11392ced25fa617a9bd49d462c52bbd08fdde91d
[]
no_license
Silentsoul04/packetstorm-exploits
e737f4ed192b47866aff113df8818117410615e3
f6c0733c76b2c8f86d8e05e70f80a87faa0e0267
refs/heads/master
2023-02-01T21:56:43.721503
2020-12-16T15:48:54
2020-12-16T15:48:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,492
txt
#!/usr/bin/python # Exploit Author: Juan Sacco <juan.sacco@kpn.com> at KPN Red Team - http://www.kpn.com # Developed using Exploit Pack - http://exploitpack.com - <jsacco@exploitpack.com> # Tested on: GNU/Linux - Kali 2017.1 Release # # Description: JAD ( Java Decompiler ) 1.5.8e-1kali1 and prior is prone to a stack-ba...
[ "sepehrdad.dev@gmail.com" ]
sepehrdad.dev@gmail.com
ab2a10c9ab3f1a9f135b0f196504f20e7c5994cf
545bdb267ecc33ead36fadbbb94b0b9584a0d281
/train_test/analysis.py
a0f41d97857794ed8f1646ce8cfb6840bab60bb0
[]
no_license
Sardhendu/DeepFaceRecognition
20fb19fccd330505953a7a8796152caff224e8ae
b360a6df8c11f6ddcb5fd58aa55e2b70bb1df23d
refs/heads/master
2021-09-10T15:08:39.868773
2018-03-28T08:28:12
2018-03-28T08:28:12
112,471,536
21
7
null
null
null
null
UTF-8
Python
false
false
2,519
py
import os import numpy as np import pandas as pd from config import path_dict, myNet batch_num_image_idx_info_path = os.path.join(path_dict['batchFolderPath'], 'batch_num_image_idx_info.csv') person_name_image_num_info_path = os.path.join(path_dict['data_model_path'], 'person_name_image_num_info.csv') batch_num_image...
[ "sardhendumishra@gmail.com" ]
sardhendumishra@gmail.com
22104e2b21358994c26c638c430413b9c6893f3f
48a6cc11e61ee75d7649f4e5e005527eaf0f5781
/pug/data/constant.py
65bbfe9aff7fad55b39144aeb37041f03867b730
[ "MIT" ]
permissive
totalgood/pug-data
703f8d406e6a93f10d2dd1415126adfafbb879a8
a261e707906ca1a43debc5338f88afa19fa926d4
refs/heads/master
2021-01-21T04:54:30.874879
2016-06-06T05:28:18
2016-06-06T05:28:18
41,777,513
0
0
null
null
null
null
UTF-8
Python
false
false
921
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Constants (paths, translation dictionaries) >>> os.path.isdir(DATA_PATH) True >>> DICT_ROMAN2INT['IX'] 9 >>> DICT_ROMAN2INT['XLII'] 42 >>> DICT_ROMAN2INT['XXX'] 30 >>> DICT_ROMAN2INT['LXXV'] 85 """ import os MODULE_PATH = os.path.abspath(os.path.dirname(__file__)) DATA...
[ "github@totalgood.com" ]
github@totalgood.com
614494c992f5742a89a36542aab757d90b97c86c
4e0f2938b003f5d68a57f213e652fbffb2f72ba2
/scrapyFiled/Csdn/Csdn/pipelines.py
617f5db0b34742bd656e63198d4ff0098484f4af
[]
no_license
adcGG/Lianxi
e4b1ce0d3cfc76e625e1e1caca0a58f25ba5d692
3659c3ca11a13b4ad54dbd2e669949701bae10b5
refs/heads/master
2022-12-13T05:45:41.312292
2019-08-14T07:38:19
2019-08-14T07:38:19
201,189,540
0
1
null
2022-04-22T22:08:16
2019-08-08T06:07:53
Python
UTF-8
Python
false
false
792
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html from Csdn import settings import pymongo class CsdnPipeline(object): def process_item(self, item, spider): print(...
[ "979818137@11.com" ]
979818137@11.com
7686a25c08982533a6c92e44f829229a12e22ead
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/YzcnFjMEKQfyHAg6B_13.py
fd81df682961669408e518553683d33b3acb4d61
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
def simon_says(lst1, lst2): len_lst1 = len(lst1) for i in range(len_lst1-1): if lst1[i] != lst2[i+1]: return False return True
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
19e402159319b81626113dc50d1e8f937fbaa3e9
7234e6c72eb3f09c4a66dbe91f00fdf7742f010f
/algo/arrays/3SumWithMultiplicity.py
5a64e4bf9a5fdb2a2627c3568086888ead93e62c
[]
no_license
srinathalla/python
718ac603473e7bed060ba66aa3d39a90cf7ef69d
b6c546070b1738350303df3939888d1b0e90e89b
refs/heads/master
2021-06-13T06:11:42.653311
2021-02-19T06:01:41
2021-02-19T06:01:41
150,374,828
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
from typing import List class Solution: def threeSumMulti(self, A: List[int], target: int) -> int: A.sort() i = 0 count = 0 while i < len(A) - 2: j = i + 1 k = len(A) - 1 while j < k: if A[i] + A[j] + A[k] == target: ...
[ "srinathb10j.ik@gmail.com" ]
srinathb10j.ik@gmail.com
ae79d50416b875f06e372dd5baf4ceb12a3eb995
09d2f319d0ba014bc8ef4cd48f3e86ae1fcf685a
/setup.py
83c38d0e61d2119213d121696ecc8bbb9e1f0b87
[ "MIT" ]
permissive
dakrauth/castaway
0898cb6bf4e3d9a47ab5706498988c467d265e6e
b430241f9cddde319cd5617ff29f903230c93183
refs/heads/main
2023-04-03T02:20:24.070260
2021-04-04T05:25:10
2021-04-04T20:19:48
354,438,376
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
from setuptools import setup django_extras = ['dj-email-url==1.0.2', 'dj-database-url==0.5.0'] test_extras = ['pytest-cov'] with open('README.rst', 'r') as f: long_description = f.read() setup( name='castaway', version='0.4.1', description='Simple wrapper for dotenv, with casting', long_descripti...
[ "dakrauth@gmail.com" ]
dakrauth@gmail.com
63dcf9c78f105f5a7f484443d961cd878569b35e
c1456d1a4dcf4a8459fded7171bcfdf2117d6cd9
/aoe2stats/gameutils.py
76653c82e88c3cb8214417a4f79ad2d6e08f6482
[]
no_license
serg-bloim/aoe2-cheat
ef13160e08f36a3bfd27f6091ff641b19e672ccc
4754bf43ef0512442b71c409f0892798a992acf0
refs/heads/master
2021-06-18T20:54:35.171515
2019-06-17T20:16:50
2019-06-17T20:16:50
188,526,779
1
0
null
2021-03-20T01:05:35
2019-05-25T05:57:47
Python
UTF-8
Python
false
false
514
py
from aoe2stats.memutils import getMemOps def explainBuilding(buldingA): mem = getMemOps() print("building: " + hex(buldingA)) print("buldingA + 0x1CC: " + hex(mem.readInteger(buldingA + 0x1CC))) print("buldingA + 0x1CC, 8: " + hex(mem.readInteger(buldingA + 0x1CC, 8))) print("queueItemA: " + hex(m...
[ "email" ]
email
a89d095230f4885eb6300fdf3fab2fad5fb2bf37
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/GZ5gCe5jnbNRWqc5J_13.py
f216bb9ae3ebc857c96209490ac58a264f8176bc
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
import datetime def first_tuesday_of_the_month(year, month): for i in range(1,8): x=datetime.datetime(year,month,i) if x.strftime("%A")=='Tuesday': return str(x)[:10]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
7b9f3b2123379b551b1db9ec35d7c450b1800447
ab84572e99301037491f5a4f9a9701d49d7b82c4
/facebook/__init__.py
8b5a8ee70025a3e9bedc957d803460f4b855ae03
[]
no_license
anhdhbn/vinhome
bbb44176727796212a4e740fa3e271e884048773
a585f4d3b7f71af098c0975ec0929cf05155fe0b
refs/heads/master
2020-12-14T22:59:59.932442
2020-01-20T12:28:05
2020-01-20T12:28:05
234,901,538
0
0
null
null
null
null
UTF-8
Python
false
false
2,494
py
from easydict import EasyDict as edict from pathlib import Path import os, sys from facebook.driver.firefox import FirefoxDriver from facebook.driver.chrome import ChromeDriver from facebook.constant import constant from dotenv import load_dotenv env_path = Path('.') / '.env' load_dotenv(dotenv_path=env_path, verbose=...
[ "anhdhbn@gmail.com" ]
anhdhbn@gmail.com
c80276578b338eefbc4fcbc58eecf8bc7fa8564d
c25a17f0f82c2eebca55bbe180f4c2ccbbf00292
/02_Coding_Skill/CodingDojang/No16_Self Number.py
ef29ab628ba3b15218f451c94634648ff65d22f0
[]
no_license
superbeom97/jumpjump
a0a4da6f0df0483ef0cef9833b5fe0402ec63c9c
fc45efce2a2b00c614aa5aa54b36be1572ed40ce
refs/heads/master
2021-09-15T09:35:16.903857
2018-05-30T00:00:59
2018-05-30T00:00:59
111,883,402
0
0
null
null
null
null
UTF-8
Python
false
false
3,416
py
# 넥슨 입사문제 중에서 # # 어떤 자연수 n이 있을 때, d(n)을 n의 각 자릿수 숫자들과 n 자신을 더한 숫자라고 정의하자. # 예를 들어 # d(91) = 9 + 1 + 91 = 101 # 이 때, n을 d(n)의 제네레이터(generator)라고 한다. 위의 예에서 91은 101의 제네레이터이다. # 어떤 숫자들은 하나 이상의 제네레이터를 가지고 있는데, 101의 제네레이터는 91 뿐 아니라 100도 있다. # # 그런데 반대로, 제네레이터가 없는 숫자들도 있으며 # 이런 숫자를 인도의 수학자 Kaprekar가 셀프 넘버(self-number)라 이름 붙였...
[ "beom9790@naver.com" ]
beom9790@naver.com
66b0454111f7340682966774452eb52b378ef6b2
45b9beebad2f297486c9c12da537a0e28cbcd597
/users/tests/test_users.py
017dc5ee47ac3b1382d710b179c9f91cc3cb0c98
[]
no_license
thinkingserious/flask-microservices-users
27a00c3a0e5194a2ab8b7c244365cf343e8b6d57
943d0717db72600be590df3df9b8d21e8cf5c4a3
refs/heads/master
2021-09-08T08:49:48.978016
2018-03-08T22:30:19
2018-03-08T22:30:19
115,350,010
2
0
null
null
null
null
UTF-8
Python
false
false
7,393
py
import json from users.tests.base import BaseTestCase from users import db from users.api.models import User def add_user(username, email): user = User(username=username, email=email) db.session.add(user) db.session.commit() return user class TestUserService(BaseTestCase): """Tests for the User...
[ "elmer@thinkingserious.com" ]
elmer@thinkingserious.com
5d0973bb79ab21471316ead1cda6340560c62c15
3378bf2ebcd3cd794b26b74f033932cb0c6a6590
/tuframework/network_architecture/cotr/DeTrans/position_encoding.py
1d11df0bf4b469925b1512e6d8bc06b22fb700a5
[ "Apache-2.0" ]
permissive
Magnety/tuFramework
d3d81f0663edbffbdd9b45138cbca82ffb78f03e
b31cb34d476ef306b52da955021f93c91c14ddf4
refs/heads/master
2023-05-01T04:36:04.873112
2021-05-18T01:07:54
2021-05-18T01:07:54
361,652,585
0
0
null
null
null
null
UTF-8
Python
false
false
2,976
py
import math import torch from torch import nn from typing import Optional from torch import Tensor class PositionEmbeddingSine(nn.Module): """ This is a more standard version of the position embedding, very similar to the one used by the Attention is all you need paper, generalized to work on images. ""...
[ "liuyiyao0916@163.com" ]
liuyiyao0916@163.com