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
806c0d4bfb02f750662a45711cbf31d002796237
205861f3dc228f78eb6544ef5ed987175938eb84
/celery/wait_rabbitmq.py
eb3b23a6c7d7cd6ca05112587be942d710b9cd5a
[]
no_license
Muzque/nicetomeetyou
c2e0e4e9fdccdf4969b1b721ad95654e486da84b
baf2db0d2a60ab51fce956f70c9acc55a3181bf9
refs/heads/master
2020-04-05T06:25:24.316156
2018-11-11T11:08:01
2018-11-11T11:08:01
156,637,397
0
0
null
2018-11-08T02:16:50
2018-11-08T02:16:49
null
UTF-8
Python
false
false
1,169
py
import argparse import pika import time parser = argparse.ArgumentParser(description='Check connection.') parser.add_argument('--server', default='rabbitmq') parser.add_argument('--virtual_host', default='celery_vhost') parser.add_argument('--ssl', action='store_true') parser.add_argument('--port', type=int, default='...
[ "zerosky1943@gmail.com" ]
zerosky1943@gmail.com
a7cc0d1ab36a3ee26d3b0a4230bda54f1ea0db08
246e9200a834261eebcf1aaa54da5080981a24ea
/ctci/arrays-and-strings/1-unique-characters-in-string.py
73a46444484f9c5f684bb78e31fca563eff94d32
[]
no_license
kalsotra2001/practice
db435514b7b57ce549b96a8baf64fad8f579da18
bbc8a458718ad875ce5b7caa0e56afe94ae6fa68
refs/heads/master
2021-12-15T20:48:21.186658
2017-09-07T23:01:56
2017-09-07T23:01:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
import sys def unique(s): char = [False] * 128 if len(s) > 128: return False for c in s: if char[ord(c)] == True: return False else: char[ord(c)] = True return True s = sys.stdin.readline().strip() if unique(s): print "Unique." else: print "Not u...
[ "jacquelineluo95@gmail.com" ]
jacquelineluo95@gmail.com
aa686c33f11968bbdc3d862cf0fce99117109547
b76e39e535499704368eddc26237dc0016ef7d06
/LF/fn_ProportionValve_V3.py
5557424e4d8b523e9634e2cbfadd48247997997f
[]
no_license
BUBAIMITRA2018/castersimulation
0532e53df7d346c2824e577cc91cd0ac2ce4694c
eca5fddff5c0f33f785168f6b1e9f572c1622be0
refs/heads/master
2022-12-10T02:45:04.207196
2020-09-09T05:35:54
2020-09-09T05:35:54
260,110,682
0
0
null
null
null
null
UTF-8
Python
false
false
3,700
py
import time from event_V2 import * from clientcomm_v1 import * from readgeneral_v2 import * from writegeneral_v2 import * import logging import gc logger = logging.getLogger("main.log") __all__ = ['FN_ProportionalValve'] class FN_ProportionalValve(Eventmanager): def __init__(self,com,df,idxNo,filename): ...
[ "subrata.mitra@sms-group.com" ]
subrata.mitra@sms-group.com
860b79c446c1239bedd54c874410e6b544f97def
2aace9bb170363e181eb7520e93def25f38dbe5c
/build/idea-sandbox/system/python_stubs/-57053121/win32net.py
ff9e6a1b782e3fcae5c883d127212d2b12f61488
[]
no_license
qkpqkp/PlagCheck
13cb66fd2b2caa2451690bb72a2634bdaa07f1e6
d229904674a5a6e46738179c7494488ca930045e
refs/heads/master
2023-05-28T15:06:08.723143
2021-06-09T05:36:34
2021-06-09T05:36:34
375,235,940
1
0
null
null
null
null
UTF-8
Python
false
false
5,797
py
# encoding: utf-8 # module win32net # from C:\Users\Doly\Anaconda3\lib\site-packages\win32\win32net.pyd # by generator 1.147 """ A module encapsulating the Windows Network API. """ # imports from pywintypes import error # Variables with simple values SERVICE_SERVER = 'LanmanServer' SERVICE_WORKSTATION = 'LanmanWork...
[ "qinkunpeng2015@163.com" ]
qinkunpeng2015@163.com
ab763d211a9c24f4b40133a63293a7644e5bc85f
19ab1499f904fc7065cf76eb518a457d1cad08c9
/accounts/models.py
6a9b925e0f4b3cfd73ab40258c5cce0c4c4d91d5
[]
no_license
mathemartins/moli
5a2637c94ec8953b42fba369b2fed5bdd3a83be6
c945b90920659025013fe6133dfd5a0abac61788
refs/heads/master
2021-05-03T06:27:21.472267
2018-03-04T18:50:18
2018-03-04T18:50:18
120,595,424
0
0
null
null
null
null
UTF-8
Python
false
false
2,327
py
from django.db import models from django.db.models.signals import pre_save, post_save from django.contrib.auth import get_user_model from django.utils.text import slugify from django.utils.safestring import mark_safe from django.utils import timezone # Create your models here. from imagekit.models import ProcessedIm...
[ "mathegeniuse@gmail.com" ]
mathegeniuse@gmail.com
58aede70705c5b0dd846bea68d5953645bf246f6
65f9576021285bc1f9e52cc21e2d49547ba77376
/cdsp_proc/core/securemsm/cryptodrivers/prng/build/SConscript
ac11a7dc6ab6c6c833edf3300ae6c0378f6e7fc7
[]
no_license
AVCHD/qcs605_root_qcom
183d7a16e2f9fddc9df94df9532cbce661fbf6eb
44af08aa9a60c6ca724c8d7abf04af54d4136ccb
refs/heads/main
2023-03-18T21:54:11.234776
2021-02-26T11:03:59
2021-02-26T11:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,839
#=============================================================================== # # Crypto Driver Libraries # # GENERAL DESCRIPTION # build script # # Copyright (c) 2012 by QUALCOMM, Incorporated. # All Rights Reserved. # QUALCOMM Proprietary/GTDR # #-----------------------------------------------------------------...
[ "jagadeshkumar.s@pathpartnertech.com" ]
jagadeshkumar.s@pathpartnertech.com
5b49340e964b98109030cd66ae3252c3ba525436
d2ad4a42770cd3b5c8738cdc6f11a3b63689123a
/examples/DeepQNetwork/common.py
5e53e5c9192924e6f3562c328dcf02a1bdee57e0
[ "Apache-2.0" ]
permissive
cpehle/tensorpack
bcdc55418e2e07779fd08f03742e9080a0854651
7e91eb48ce59b303b580140abbbfa42dc0319b21
refs/heads/master
2021-01-11T15:35:03.578953
2017-01-29T06:48:50
2017-01-29T06:48:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,462
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: common.py # Author: Yuxin Wu <ppwwyyxxc@gmail.com> import random import time import threading import multiprocessing import numpy as np from tqdm import tqdm from six.moves import queue from tensorpack import * from tensorpack.predict import get_predict_func from t...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
17cc2d6112cbf07ea283510a6a4186bda20bb213
8246092010e656920e7199f889f9cbf54b83a729
/pycoin/wallet/SQLite3Persistence.py
23c29337a9bc3cb77f61dce4e3bb11dd047b7512
[ "MIT" ]
permissive
richardkiss/pycoin
5717411a11445773ac922c1d1c1b7dbe4835cd77
b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0
refs/heads/main
2023-08-07T12:14:04.974934
2023-04-18T02:27:15
2023-04-18T02:27:15
10,917,677
1,306
489
MIT
2023-06-03T23:24:50
2013-06-24T19:17:52
Python
UTF-8
Python
false
false
7,582
py
from pycoin.encoding.hexbytes import b2h, h2b, b2h_rev, h2b_rev from pycoin.key.BIP32Node import BIP32Node class SQLite3Persistence(object): def __init__(self, sqlite3_db): self.db = sqlite3_db self._init_tables() def _exec_sql(self, sql, *args): c = self.db.cursor() c.execute...
[ "him@richardkiss.com" ]
him@richardkiss.com
0271004bd53c6495bea1b7d09dd2f9cd713b5bab
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_348/ch28_2020_04_01_16_19_34_337220.py
510b48ff825567842eb0ccd1c5f6ae918874c9eb
[]
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
130
py
contador = 0 numero = 0 while contador < 99: numero = numero + (1/2**contador) contador = contador + 1 print(numero)
[ "you@example.com" ]
you@example.com
7dc694c928307813f2ccde47e1ff6de0f120e660
33d77a6caf1813fcb378671fd89e5bb1dec7f6f8
/tsai/callback/core.py
449505e7e55f4945889568ef0a8510b4d9be93d9
[ "Apache-2.0" ]
permissive
kusumy/tsai
6a1f3d4137131084062d1a5f942e8f7d23662abd
d6994896dd804cfed441adbb2b8dd4836b1dac4a
refs/heads/master
2023-02-25T14:13:08.275441
2021-01-29T20:44:21
2021-01-29T20:44:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,198
py
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/010_callback.core.ipynb (unless otherwise specified). __all__ = ['GamblersCallback', 'TransformScheduler', 'ShowGraph', 'ShowGraphCallback2', 'UBDAug'] # Cell from ..imports import * from ..utils import * from ..data.preprocessing import * from ..data.transforms import ...
[ "“oguiza@gmail.com”" ]
“oguiza@gmail.com”
9c4e3df78a6a526942f1747c2c3ab68138a6105d
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_retracting.py
7a0b51d0632af5dd821d4f03d4dee4fe35e094e4
[ "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
230
py
#calss header class _RETRACTING(): def __init__(self,): self.name = "RETRACTING" self.definitions = retract self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['retract']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
97de807d29418219e7285b76b289be1bafcc58c8
c609c9e9da9b716dde810334fe32cb65a3ddcff9
/ddsc/remotestore.py
f5c98790fe650c115cff91c020eda36391e45622
[ "MIT" ]
permissive
erichhuang/DukeDSClient
16f858e743b7823f1797214b9ede1e520f73af4a
feccdbd0caed524e0728268be29a3987121712fa
refs/heads/master
2020-12-24T21:45:24.371369
2016-02-22T18:30:06
2016-02-22T18:30:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,257
py
from localstore import LocalContent, HashUtil class RemoteContentFetch(object): def __init__(self, data_service): self.data_service = data_service def fetch_remote_project(self, project_name, path_list): project = self._get_my_project(project_name) if project: self._add_pr...
[ "johnbradley2008@gmail.com" ]
johnbradley2008@gmail.com
d022fe38183e5587f2f636e2c586849ef8486f56
8b5e08a5c2ae9779a362e4a1eb15e9205585288b
/mysite/account/views.py
a8780cbdccf21ad701a253bed72a0ae7507e6d5c
[]
no_license
wuchunlongcom/admin-upimg
2b6dcc453e91040f0e9154d6255afdcf9aaa4e62
35e0dd0584d7e090d8922de704cd26ff0543679e
refs/heads/master
2022-05-02T02:59:18.691844
2020-02-21T10:23:17
2020-02-21T10:23:17
240,830,450
0
0
null
2022-04-22T23:02:11
2020-02-16T04:21:17
JavaScript
UTF-8
Python
false
false
805
py
# -*- coding: utf-8 -*- from django.contrib.auth.decorators import login_required from django.shortcuts import render from .models import Image from myAPI.pageAPI import djangoPage, PAGE_NUM # http://localhost:8000/ #@login_required def index(request): meg = '最简单代码,实现图像文件上传。 <br>登录Admin后台, 上传图像文件并在前台显...
[ "wcl6005@163.com" ]
wcl6005@163.com
a0cfe1555eae52ff7fc71807259a1992ae6af19e
8163d8f03aea22cb4fa1e60d809781049fff4bb4
/MODEL11/first/urls.py
64c7bb7d97725ed170ff93fe6248f7b4ddae533c
[]
no_license
shubham454/Django-Devlopment
694b973d31a82d2ded11f95138bd766130d7d3c9
43a2c3b98dbe9f582f2394fcfb3beb133c37b145
refs/heads/master
2022-12-04T14:34:05.093402
2020-08-13T18:35:33
2020-08-13T18:35:33
287,353,684
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
from django.urls import path from first import views urlpatterns = [ path('list/',views.GetBankData.as_view()), path('add/', views.AddBankData.as_view()), path('<int:ano>/', views.DeleteView.as_view()), path('update/<int:ano>/', views.UpdateView.as_view()), ]
[ "moreshubham203@gmail.com" ]
moreshubham203@gmail.com
0df4506dacd545abd91b163d9de4b2880bf748cb
753938feae47c1ce8edeaa35099c634fbafa3b99
/store/store_convergence.py
569d2102921bf041a6e060c55c2a75cb8a7ce3c3
[ "MIT" ]
permissive
dayoladejo/SwarmOptimization
c11cc799ec5a16a3a341ea0f2b5b9df1ea5f65d9
5445b6f90ab49339ca0fdb71e98d44e6827c95a8
refs/heads/main
2023-07-17T09:14:16.266657
2021-09-10T17:10:56
2021-09-10T17:10:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,228
py
# # file: store_convergence.py # # Plot store convergence as function of iteration. # # RTK, 24-Sep-2020 # Last update: 24-Sep-2020 # ################################################################ import pickle import numpy as np import matplotlib.pylab as plt def geny(m,gbest,giter): y = np.zeros(m) f...
[ "oneelkruns@hotmail.com" ]
oneelkruns@hotmail.com
03139a6a7f7c39063ba8cd75ec2ed4dc60c632a8
5619eb14e8c46a70ba228f96c4afcebbae557189
/url_tester/migrations/0004_auto_20190107_1552.py
cb82a2213547b9a90915b99fee210e96dd484ea7
[]
no_license
eduarde/URLTester
3d7b6be6f43886559264189f70f126c3ee74678d
32c158943b4892b7f00d328ed26d63d813287106
refs/heads/master
2020-04-15T05:36:25.856274
2019-02-06T13:54:29
2019-02-06T13:54:29
164,430,052
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Generated by Django 2.1.5 on 2019-01-07 13:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('url_tester', '0003_auto_20190107_1551'), ] operations = [ migrations.AlterField( model_name='url', name='name', ...
[ "eduard.erja@gmail.com" ]
eduard.erja@gmail.com
e6643bc565b34a1eaed02f17519df6cbdb69e7a0
23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9
/shared/data_collection/scribeutil.py
94a572426b9ecabc72323e87e3a64c7180ca6ad3
[]
no_license
Cuick/traversing
210fcfb1c780037de59343fffeb4fa4d3f2eae32
c78982580af7f63c8bff4dcb37005b7f7c682b5b
refs/heads/master
2021-01-10T17:38:37.899460
2016-11-18T06:06:55
2016-11-18T06:06:55
55,397,540
0
1
null
null
null
null
UTF-8
Python
false
false
2,918
py
# -*- coding:utf-8 -*- """ created by server on 14-8-27下午4:16. """ try: from scribe import scribe from thrift.transport import TTransport, TSocket from thrift.protocol import TBinaryProtocol SCRIBE_AVAILABLE = True # 检查scribe相关库正常,不要影响业务系统 except ImportError, e: print '<------->' print e ...
[ "zxzxck@163.com" ]
zxzxck@163.com
bd9632f645cbdef8be36b04fe17ef06be5f9b4d1
280079e18b506ec7ed85a49587e10db795947922
/accounting/libs/templatetags/introspection_filters.py
d7e06cce56fa0b40cd5dd3cd0442d8fda47ee202
[ "MIT" ]
permissive
Abdur-rahmaanJ/django-accounting
6a4d30fd0070f4b11b50490a801b0dece58dd474
4ec094544873843722db964ea9283a7947c4ba32
refs/heads/master
2020-03-22T17:02:47.120624
2018-07-10T10:49:19
2018-07-10T10:49:19
140,368,614
0
0
MIT
2018-07-10T10:49:20
2018-07-10T02:52:28
Python
UTF-8
Python
false
false
920
py
from django import template from django.forms import ModelForm, BaseFormSet from django.db.models import Model from django_select2.fields import ( AutoModelSelect2Field, AutoModelSelect2MultipleField) register = template.Library() @register.filter def get_model_verbose_name(instance): if isinstance(ins...
[ "dulacpier@gmail.com" ]
dulacpier@gmail.com
f8619e156fdfa736e2afaac94ee691bc3ff1978b
e473f04f5dd4e40393bc1047e6f326e589204530
/law/notification.py
880ccec0117a02ee59dc937376dc76f77458dd42
[ "BSD-3-Clause" ]
permissive
yrath/law
bc9848aa1238538af7cb9a335e0fa9fad90bbecf
807306d6b2113e6c546c01fcaa134bba551b4759
refs/heads/master
2020-07-15T11:01:30.517171
2019-12-12T11:56:41
2019-12-12T11:56:41
205,548,161
0
0
BSD-3-Clause
2019-08-31T13:29:23
2019-08-31T13:29:22
null
UTF-8
Python
false
false
1,203
py
# coding: utf-8 """ Notification functions. """ __all__ = ["notify_mail"] import logging from law.config import Config from law.util import send_mail logger = logging.getLogger(__name__) def notify_mail(title, message, recipient=None, sender=None, smtp_host=None, smtp_port=None, **kwargs): """ ...
[ "marcelrieger@me.com" ]
marcelrieger@me.com
fc087e51acf67938797c340946b8cda20e017f72
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/archivers/py-brotli/files/patch-setup.py
9f97287a706fdfc4c9aa658f8632f588dd3bf945
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
Python
false
false
3,962
py
--- setup.py.orig 2020-08-27 06:24:08 UTC +++ setup.py @@ -25,7 +25,7 @@ CURR_DIR = os.path.abspath(os.path.dirname(os.path.rea def get_version(): """ Return BROTLI_VERSION string as defined in 'common/version.h' file. """ - version_file_path = os.path.join(CURR_DIR, 'c', 'common', 'version.h') + version_...
[ "sunpoet@FreeBSD.org" ]
sunpoet@FreeBSD.org
257fdf4bf5c379f7a73f67693f5512683c6c3822
1a6cbe035adb81fea66615323a836327d06f9e72
/year2020/run.py
9cf6233087187489d27412c4e5c11f9fc5271ba4
[]
no_license
ecurtin2/advent-of-code
a2607d857408d722b07d4cfc66855edcd019cda7
216db926c5bab9bf1ec3cac2aa912c1a2ff70d6c
refs/heads/main
2022-12-15T10:06:51.202608
2022-12-14T17:28:15
2022-12-14T17:28:15
160,612,467
0
0
null
null
null
null
UTF-8
Python
false
false
2,876
py
import importlib from dataclasses import dataclass from pathlib import Path from statistics import mean, stdev from time import time from typing import Any, List, Optional, Tuple, get_type_hints import cattr import click AVAILABLE_DAYS: List[int] = sorted( int(str(p.name).replace("d", "").replace(".py", "")) ...
[ "ecurtin2@illinois.edu" ]
ecurtin2@illinois.edu
b3066063ef59fcb92ab7a88089fc8ce41b881999
bd1db30fd3c593e8dc4f2e21de630668456ed28f
/educational-resources/robotics/gym-gazebo-master/examples/turtlebot/circuit2_turtlebot_lidar_sarsa.py
ed521957b28cc965d5848020afaef371190c0b89
[ "MIT", "GPL-3.0-only" ]
permissive
vicb1/miscellaneous-notes
c50d759729b4d0067b3c4cb51a69350db5a941b9
eb63641a8156a4dcd78924b5d0f6f0618479ceaf
refs/heads/master
2023-05-11T06:04:03.254582
2023-05-09T12:34:18
2023-05-09T12:34:18
227,648,115
1
0
MIT
2022-12-11T17:00:50
2019-12-12T16:20:38
Python
UTF-8
Python
false
false
2,709
py
#!/usr/bin/env python import gym from gym import wrappers import gym_gazebo import time import numpy import random import time import liveplot import sarsa if __name__ == '__main__': env = gym.make('GazeboCircuit2TurtlebotLidar-v0') outdir = '/tmp/gazebo_gym_experiments' env = gym.wrappers.Monitor(env,...
[ "vbajenaru@gmail.com" ]
vbajenaru@gmail.com
52cff6065e5fb915053715a160ce650b4c2235d8
923f9270a12be35fdd297d8f27e522c601e94eab
/doc/slides/src/decay/src-decay/decay_mod_unittest.py
807c314773b07bb8b1fb368b785a75891694aec8
[]
no_license
t-bltg/INF5620
a06b6e06b6aba3bc35e933abd19c58cd78584c1f
d3e000462302839b49693cfe06a2f2df924c5027
refs/heads/master
2021-05-31T00:41:41.624838
2016-03-22T09:29:00
2016-03-22T09:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,015
py
import numpy as np import matplotlib.pyplot as plt import sys from math import log def solver(I, a, T, dt, theta): """ Solve u'=-a*u, u(0)=I, for t in (0,T] with steps of dt. >>> u, t = solver(I=0.8, a=1.2, T=4, dt=0.5, theta=0.5) >>> for t_n, u_n in zip(t, u): ... print 't=%.1f, u=%.14f' % (...
[ "hpl@simula.no" ]
hpl@simula.no
0545fda410ccd767130446d92bd5540e4debe9be
c4c9fd6bb97f8d0d16de36f67365b76278c93959
/proj/proj03/tests/q1_10.py
fa4a5049dd509f6c35ecf0afb423b3be88f203d0
[]
no_license
ds-connectors/DATA-88-EconModels-sp20
d71795dad299031add94e52a60206b5840b144c7
6a8297cf20f8afe8ef52e4bfa93aca3cfff1afc5
refs/heads/master
2023-08-30T03:47:51.417760
2020-04-27T19:35:16
2020-04-27T19:35:16
231,190,728
1
0
null
2023-08-14T21:55:19
2020-01-01T08:09:44
Jupyter Notebook
UTF-8
Python
false
false
447
py
test = { 'name': 'q1_10', 'points': 1, 'suites': [ { 'cases': [ {'code': '>>> -4000 <= default_beta <= -3000\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> 51000 <= default_alpha <= 52000\nTrue', 'hidden': False, 'locked': False}], 'scor...
[ "cpyles@berkeley.edu" ]
cpyles@berkeley.edu
3a0dcd089e8fecfa5fd81aa3848aa8220b1e2507
0e820627e68413aebe27fbc32dde66a3c99651d3
/flamingo/core/parser.py
186d7d11e2fd1b1da243823e9c6d051bca7a2bdc
[ "Apache-2.0" ]
permissive
ejoerns/flamingo
17de116008561a4a64613b2b6528eb6d52706281
1d61c99c9ad34dd0a2a652f80783226051e07238
refs/heads/master
2020-04-11T02:53:47.295752
2018-12-14T11:17:23
2018-12-14T11:37:39
161,460,547
0
0
Apache-2.0
2018-12-12T09:00:34
2018-12-12T09:00:34
null
UTF-8
Python
false
false
2,022
py
from configparser import ConfigParser, Error as ConfigParserError from io import StringIO import os from flamingo.core.errors import FlamingoError class ParsingError(FlamingoError): pass class ContentParser: FILE_EXTENSIONS = [] def __init__(self): self.configparser = ConfigParser(interpolatio...
[ "f.scherf@pengutronix.de" ]
f.scherf@pengutronix.de
c29e057c72aa360392571f06201dd466d58bf1fa
79f1e7932c27eb01483f8764720c672242052e1f
/training_horovod_single_aa.py
4d7e93d81b64226a254dda09ec2813e09755c295
[]
no_license
pk-organics/uniparc_modeling
3b16ae5b85dc178fdcab4be3b4ddbdab02c80897
ab9faaad00c20416ea2ac86f6f91b83f86ffb7a4
refs/heads/master
2023-02-13T19:58:29.841889
2019-12-05T18:53:05
2019-12-05T18:53:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,457
py
import os import argparse parser = argparse.ArgumentParser(description='BERT model training') parser.add_argument('--modelName', default='bert', help='model name for directory saving') parser.add_argument('--batchSize', type=int, default=20, help='batch size per gpu') parser.add_argument('--stepsPerEpoch', type=int, d...
[ "peterc.stjohn@gmail.com" ]
peterc.stjohn@gmail.com
e312d6d3314dc67c99a82a7d258f106f69278143
c70aa626cb96e5a62b8f4789c6bb885229375134
/ProjectOne/card.py
4cf7f030878e1e681a71fdbc247088b3836ae994
[]
no_license
BaranAkcakaya/PythonProject
279b62907ba9598199fdf1f7642bfb3af9aa98be
486389196b22df7134b02190de636c949fbb08a1
refs/heads/main
2023-01-08T14:51:14.735863
2020-11-02T10:34:15
2020-11-02T10:34:15
309,336,442
0
0
null
null
null
null
UTF-8
Python
false
false
1,321
py
#SUIT HEARTS = 0 #RED DIAMONDS = 1 #RED CLUBS = 2 #BLACK SPADES = 3 #BLACk #RANK TWO = 0 THREE = 1 FOUR = 2 FIVE = 3 SIX = 4 SEVEN = 5 EIGHT = 6 NINE = 7 TEN = 8 JACK = 9 QUEEN = 10 KING = 11 ACE = 12 def get_suit(card): return int((card % 4) - 1) #Suit 4 oldugu için...
[ "noreply@github.com" ]
BaranAkcakaya.noreply@github.com
701c7372e4483add670bc094a28089806a2fd902
0dfa97730b9ad9c077868a045d89cc0d4b09f433
/tests/integration/goldens/redis/samples/generated_samples/redis_generated_redis_v1_cloud_redis_create_instance_sync.py
d2e83c8ed0211cc443a3c114985748bbc9997b66
[ "Apache-2.0" ]
permissive
anukaal/gapic-generator-python
546c303aaf2e722956133b07abb0fb1fe581962f
e3b06895fa179a2038ee2b28e43054e1df617975
refs/heads/master
2023-08-24T23:16:32.305652
2021-10-09T15:12:14
2021-10-09T15:12:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,773
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
anukaal.noreply@github.com
4b52610a596acae2c84caeeeab48b5fe380dafce
c4a8f3200add74f4c42fe34b2f3b284d6249a481
/sciwx/demo/mesh2_mesh_demo.py
076d254d04a5dd678a223fd6c388ca83397f2f19
[ "BSD-2-Clause" ]
permissive
pengguanjun/imagepy
1908e83a7ec2a6472524f443aefeaade12c2b649
d96ef98c2c3e93d368131fd2753bce164e1247cd
refs/heads/master
2022-12-15T11:48:04.841436
2020-09-14T11:59:49
2020-09-14T11:59:49
275,398,356
1
0
NOASSERTION
2020-06-27T15:18:59
2020-06-27T15:18:58
null
UTF-8
Python
false
false
1,249
py
import sys, wx sys.path.append('../../') from sciwx.mesh import Canvas3D, MCanvas3D, MeshSet from sciapp.util import surfutil from sciapp.object import Surface from sciwx.mesh import Canvas3DFrame, Canvas3DNoteBook, Canvas3DNoteFrame vts, fs, ns, cs = surfutil.build_ball((100,100,100),50, (1,0,0)) def add_with_para(...
[ "imagepy@sina.com" ]
imagepy@sina.com
c996297347ac933fba624d954a3d78dd294d33ff
75ec986d34d5391d46d6469c513626f69f5d978d
/Incepator/cycles/cycles3.py
e733dc4092d410e8ac117846f3fbe5203f2b7e44
[]
no_license
CatrunaMarius/python
d9f8dc221458e4b65c3f801daf3b59aa2b946358
d063bffb4eafa56ac1e205c2d39fc893ab50e992
refs/heads/master
2020-04-24T05:23:22.756002
2020-01-06T11:56:12
2020-01-06T11:56:12
171,703,482
0
0
null
2019-02-20T16:12:39
2019-02-20T15:59:08
null
UTF-8
Python
false
false
150
py
#multiplication table (while) i=1 while i<10: j=1 while j<10: print("%4d" % (i*j), end="") j+=1 print() i+=1
[ "noreply@github.com" ]
CatrunaMarius.noreply@github.com
bc89c88a357f13ea1706d544aa08b81f6fb6036f
1bad7d2b7fc920ecf2789755ed7f44b039d4134d
/A other/エイシング プログラミング コンテスト 2020/B.py
77e2b68e5bde2a0361da7ee0c237f62e8c1262a4
[]
no_license
kanekyo1234/AtCoder_solve
ce95caafd31f7c953c0fc699f0f4897dddd7a159
e5ea7b080b72a2a2fd3fcb826cd10c4ab2e2720e
refs/heads/master
2023-04-01T04:01:15.885945
2021-04-06T04:03:31
2021-04-06T04:03:31
266,151,065
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
n = int(input()) a = list(map(int, input().split())) ans = 0 for i in range(n): if (i+1) % 2 == 1 and a[i] % 2 == 1: ans += 1 print(ans)
[ "kanekyohunter.0314@softbank.ne.jp" ]
kanekyohunter.0314@softbank.ne.jp
dffe88ae437ac28f4a3898604f43f1694690b380
8ee8fe3c2acea497a85428bfb3dfde19e58b2bc3
/test-examples/range_one_image.py
5b8657935e4171ac7ebfc64c064995200cabb8e0
[ "BSD-3-Clause" ]
permissive
sofroniewn/image-demos
a6e46f08fd4ce621aa96d6b6378b50f63ac2b381
2eeeb23f34a47798ae7be0987182724ee3799eb8
refs/heads/master
2022-11-02T23:50:23.098830
2022-10-30T04:38:19
2022-10-30T04:38:19
179,378,745
11
1
null
null
null
null
UTF-8
Python
false
false
298
py
""" Test adding an image with a range one dimensions. There should be no slider shown for the axis corresponding to the range one dimension. """ import numpy as np from skimage import data import napari with napari.gui_qt(): viewer = napari.view_image(np.random.random((4, 4, 1, 30, 40)))
[ "sofroniewn@gmail.com" ]
sofroniewn@gmail.com
d15b12f713424c1f85485dd0dbc9c96a2b451d2c
63f443df12960b3eda3ac23e4a2c343b2c8a04f8
/text/1.py
1debf0c03aa5d4f7cbddfe0b3a77a13991bcc068
[]
no_license
persontianshuang/crapy500m
7c30e101da6f578c475a63117fa062000ce9460f
0e725f037a460fc01926000e023d4f5dbb6c1f4e
refs/heads/master
2021-08-09T02:54:49.102719
2017-11-12T00:52:37
2017-11-12T00:52:37
102,925,201
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
import os file="C:\\Users\Administrator\Desktop\不侵权\沙拉盘不侵权-38.xls" with open(file, 'r',encoding='gbk') as f: lines = f.readlines() for line in lines: line = line print(line)
[ "mengyouhan@gmail.com" ]
mengyouhan@gmail.com
cecd22f5838eed05a65114d0526a5383ebf2af83
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/build/config/linux/pkg-config.py
32068ada80b0b4a41d1a52a4c379f1fec68a3456
[ "BSD-3-Clause" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
Python
false
false
7,689
py
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import os import subprocess import sys import re from optparse import OptionParser # This script runs pkg-config, opti...
[ "jacob-chen@iotwrt.com" ]
jacob-chen@iotwrt.com
69743a42fb64f06773a238d89bfac39069777e78
39d4504ec1da8975fac526d6801b94f4348b6b61
/research/object_detection/dataset_tools/create_oid_tf_record.py
c5f409af4da470ff0c9da20f6a8793306a1016f3
[ "Apache-2.0" ]
permissive
vincentcheny/models
fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad
afb1a59fc1bc792ac72d1a3e22e2469020529788
refs/heads/master
2020-07-23T21:38:24.559521
2019-11-15T07:50:11
2019-11-15T07:50:11
207,712,649
1
0
Apache-2.0
2019-09-11T03:12:31
2019-09-11T03:12:31
null
UTF-8
Python
false
false
5,315
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "1155107977@link.cuhk.edu.hk" ]
1155107977@link.cuhk.edu.hk
0abd0228cbd16d4d2350bd9c779f9884e2e9aa4a
e1bdbd08afec39c1ee56a3885a837ec966543a2d
/Section_07_code/extract_freq_features.py
00d66469084172389834335b106181bd1cd6dc6e
[ "MIT" ]
permissive
PacktPublishing/Python-Machine-Learning-Solutions-V-
507bd8b285f051d2761a5348e4a8c9a50329287a
8bb80a43a7c64032c25c1023faaa29bbfbd39d45
refs/heads/master
2023-02-28T05:19:49.782472
2021-01-20T09:11:09
2021-01-20T09:11:09
188,817,647
0
2
null
null
null
null
UTF-8
Python
false
false
836
py
import numpy as np import matplotlib.pyplot as plt from scipy.io import wavfile from python_speech_features import mfcc, logfbank # Read input sound file sampling_freq, audio = wavfile.read("input_freq.wav") # Extract MFCC and Filter bank features mfcc_features = mfcc(audio, sampling_freq) filterbank_features = logfb...
[ "sonalis@packtpub.com" ]
sonalis@packtpub.com
02dd1640ec63d777df0a4a38be03877dc2b326dc
df64b9d1851d3b5770ef4cd726bb6898911d8aff
/protos/final_tree.py
66152b4264328ecb47431aed5f8376566a9027e7
[]
no_license
lampts/kaggle_quora
10bbd5e16f659719bb4eee5bd5adaf2cc9a08737
d35d2619e8f2762cc648eb0829a4c54e698871ea
refs/heads/master
2021-07-11T04:33:46.640082
2017-05-28T08:43:01
2017-05-28T08:43:01
108,620,557
0
1
null
2017-10-28T04:49:50
2017-10-28T04:49:50
null
UTF-8
Python
false
false
4,147
py
from sklearn.model_selection import cross_val_predict from sklearn.tree.tree import DecisionTreeClassifier from sklearn.linear_model import LogisticRegression from lightgbm.sklearn import LGBMClassifier import pandas import pickle import numpy as np from tqdm import tqdm from sklearn.model_selection import GridSearchCV...
[ "you@example.com" ]
you@example.com
c519d75ba0c468f9c100a50c6b1a7cdb34ba4573
f1679e8c872e7e5d12d947a47920d5bad4d3b92a
/paciente/migrations/0002_paciente_imagem.py
7ed0e6a8112b42ff40c7a8f125867af6457ec1e6
[]
no_license
lldenisll/doctor_backend
d03e6090fae704bae9eabd002aefeb63de5a9d78
071911186b1f2940feff7549ca9c49b9f8c7ce22
refs/heads/master
2023-03-27T21:28:49.571818
2021-04-04T22:27:45
2021-04-04T22:27:45
354,152,189
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# Generated by Django 3.1.7 on 2021-04-03 19:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('paciente', '0001_initial'), ] operations = [ migrations.AddField( model_name='paciente', name='imagem', ...
[ "namorado@TFGcos-MacBook-Pro.local" ]
namorado@TFGcos-MacBook-Pro.local
e88613a1e28d2556c2ad8050f5e8ab0266b4c4d4
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_282/ch23_2020_03_04_22_50_49_571106.py
e8af7c8bab6de99ba6d7382438bd6a574da48447
[]
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
161
py
velocidade = int(input('qual eh a velocidade? ')) if velocidade>80: print('multa de R${0:.2f}'.format((velocidade-80)*5)) else: print('Não foi multado')
[ "you@example.com" ]
you@example.com
931ad54b3f9cc8bcf4700cad46f9d5985056e646
bd435e3ff491d13c3cb1ffcf34771ac1c80f7859
/code/flask/bookshare/app/views.py
a4a2b0f8c1669efd4097e629e116ff3682494636
[]
no_license
luningcowboy/PythonTutorial
8f4b6d16e0fad99a226540a6f12639ccdff402ff
9024efe8ed22aca0a1271a2c1c388d3ffe1e6690
refs/heads/master
2021-06-16T23:03:22.153473
2020-04-09T13:52:12
2020-04-09T13:52:12
187,571,993
0
0
null
2021-03-25T23:02:36
2019-05-20T05:16:13
Python
UTF-8
Python
false
false
2,211
py
from flask import render_template, url_for, redirect from app import app books = [ {'name':'呐喊1','author':'鲁迅1','id':0,'desc':'这是一本关于呐喊的书','contents':['xxxxx','xxxx','xxxx'],'download':['https://www.baidu.com','https://www.baidu.com'],'pic_url':'http://haodoo.net/covers/17Z7.jpg'}, {'name':'呐喊2','autho...
[ "luningcowboy@gmail.com" ]
luningcowboy@gmail.com
0b099bf370ff65eb2b99e6e3a29c31e8d1e4e3b5
5d1892f6db3c7bba1699455d934b6193840346c6
/swig/swig_example/cppfunctions.py
09785e80b6dd21e7d3ccd60aaa2a23f80b3096e8
[]
no_license
sylvaus/python_bindings
ecd6595324e73ec66753cb5c12d86788b10beaa8
ddf3ed7a59497c2f73fc47dfaa752d629ae98d99
refs/heads/master
2021-03-22T09:07:54.492561
2020-03-14T20:49:41
2020-03-14T20:49:41
247,351,299
0
0
null
null
null
null
UTF-8
Python
false
false
7,024
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.1 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
[ "pierreyves.breches74@gmail.com" ]
pierreyves.breches74@gmail.com
49df7f342de48948163f94f572a958289a1e794f
442fd46c2647d4988d409563d50a841fc1cdf259
/tasks/__init__.py
1412a06ab5b6c8a385eaddc2bf7482c04fd97226
[ "MIT" ]
permissive
pycontw/mail_handler
211278ac64facd106e8a85c40d0b3b3e56ba3603
5181d7ded2a8e43c11798ceb2e77bf87b6218276
refs/heads/master
2022-12-09T15:34:21.031968
2022-04-22T22:53:16
2022-04-22T22:53:16
203,540,182
10
16
MIT
2022-12-09T06:15:13
2019-08-21T08:25:24
Python
UTF-8
Python
false
false
308
py
from invoke import Collection from tasks import doc, env, git, secure, style, test from tasks.build import build_ns ns = Collection() ns.add_collection(env) ns.add_collection(git) ns.add_collection(test) ns.add_collection(style) ns.add_collection(build_ns) ns.add_collection(doc) ns.add_collection(secure)
[ "weilee.rx@gmail.com" ]
weilee.rx@gmail.com
e4656b2fa445618865fe0cc04e2b7a95eaf810e5
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/core/2017/4/unifi.py
42b5070b0461bc90cbbea23482de85c0cd25bb7f
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
3,383
py
""" Support for Unifi WAP controllers. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.unifi/ """ import logging import urllib import voluptuous as vol import homeassistant.helpers.config_validation as cv import homeassistant.loader as loa...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
e549afef111dba3869240fa2b3c410db40d5f07c
e6fea6eb27c169642454674f20e6b2db0dc2f738
/word2vec/get_close_words.py
8cd7902e4b7dc56529a133344553ebabbe2ca9bd
[]
no_license
muntakimrafi/insbcn
1db79e03cf6440f57da90a6e4fa8f047bee63d38
25e1b8394d1727a792591f5fb3f9e309e245cc50
refs/heads/master
2021-03-25T13:45:17.047609
2018-08-03T10:40:12
2018-08-03T10:40:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,245
py
from gensim import models lans = ['en','es','ca'] model_name = 'word2vec_model_instaBarcelona_lan.model' model_path = '../../../datasets/instaBarcelona/models/word2vec/' + model_name models_list = [] print "Loading models ... " for l in lans: models_list.append(models.Word2Vec.load(model_path.replace('lan',l))) ...
[ "raulgombru@gmail.com" ]
raulgombru@gmail.com
ac2872f4a29ec3412b06173421e13d01004ea1da
3536c71ef08e52088a10e1b62e943386e32ccc1e
/docs/conf.py
6feb5b7f670bbd6f19eb7ad996857aa5ed817a20
[ "Apache-2.0" ]
permissive
Aspire1Inspire2/tdameritrade
66698ef9a1444f930bf9a57f29d233d3f1e5215a
00d93ca355b7f4f9a7f5041ea5096e9b6f3bb228
refs/heads/master
2020-05-17T11:30:48.443511
2019-04-03T21:29:42
2019-04-03T21:29:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,287
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # tdameritrade documentation build configuration file, created by # sphinx-quickstart on Fri Jan 12 22:07:11 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this...
[ "t.paine154@gmail.com" ]
t.paine154@gmail.com
5f8e18df7e9043614b5b0ecf4d2dfbb9fdbba54b
a0dda8be5892a390836e19bf04ea1d098e92cf58
/叶常春视频例题/chap07/7-3-1-用while检测列表为空.py
07d112954fbb6a310ba170b0ffbb0422ca5eee39
[]
no_license
wmm98/homework1
d9eb67c7491affd8c7e77458ceadaf0357ea5e6b
cd1f7f78e8dbd03ad72c7a0fdc4a8dc8404f5fe2
refs/heads/master
2020-04-14T19:22:21.733111
2019-01-08T14:09:58
2019-01-08T14:09:58
164,055,018
1
0
null
null
null
null
UTF-8
Python
false
false
722
py
#例7-3-1 用while语句检测列表是否为空 # 首先,创建一个待验证用户列表 # 和一个用于存储已验证用户的空列表 unconfirmed_users = ['alice', 'brian', 'candace'] confirmed_users = [] # 验证每个用户,直到没有未验证用户为止 # 将每个经过验证的列表都移到已验证用户列表中 while unconfirmed_users: #当unconfirmed_users列表不为空,则... current_user = unconfirmed_users.pop() print("正在验证用户: " + current_user.title()...
[ "792545884@qq.com" ]
792545884@qq.com
34d2334c3931b648f94be9e0a25b6ca4b2b4d527
0042c37405a7865c50b7bfa19ca531ec36070318
/20_selenium/test_incontrol/incontrol_picture.py
b06cfca4773c8ba95547cdb313b520192666e3fb
[]
no_license
lu-judong/untitled1
b7d6e1ad86168673283917976ef0f5c2ad97d9e0
aa158e7541bae96332633079d67b5ab19ea29e71
refs/heads/master
2022-05-23T18:55:45.272216
2020-04-28T09:55:38
2020-04-28T09:55:38
257,822,681
0
0
null
null
null
null
UTF-8
Python
false
false
5,831
py
from selenium import webdriver from new_selenium.bin.login import Login from new_selenium.bin.main import Method import time from new_selenium.tech_incontrol.incontrol_config import * from config.config import path_dir from config.log_config import logger class Fault: def log_file_out(self,msg): fo = op...
[ "ljd_python@163.com" ]
ljd_python@163.com
d5acc9da01fcf37cdad10fb33e9391c39115bb87
b68c92fe89b701297f76054b0f284df5466eb698
/Sorting/InsertionSort.py
c42a74592fdfb36e35685e6e8cbc61a47c65daaa
[]
no_license
makrandp/python-practice
32381a8c589f9b499ab6bde8184a847b066112f8
60218fd79248bf8138158811e6e1b03261fb38fa
refs/heads/master
2023-03-27T18:11:56.066535
2021-03-28T04:02:00
2021-03-28T04:02:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
# Insertion sort is an algorithm that functions by iterating from 0 to n where n is the size of the input dataset # For every iteration of i from 0 to n, we then swap from i to 0 given a situation where the variable is swappable ## Best ## Avrg ## Wrst ## Spce ## ## n # n^2 # n^2 # 1 ## # Insertion sort is...
[ "awalexweber99@gmail.com" ]
awalexweber99@gmail.com
f74f921086196d7e6c01a153fed48f3f0806ffdb
d1ff466d7a230409020ebc88aa2f2ffac8c45c15
/cournot/pages.py
68eecd9c2f47d2ed52156f48cc24aadc29827df9
[ "MIT" ]
permissive
Muhammadahmad06/oTree
224ef99a2ca55c8f2d7e67fec944b8efd0b21884
789fb2c2681aa5fbb8385f2f65a633e02592b225
refs/heads/master
2020-08-25T19:12:36.929702
2019-10-03T09:29:54
2019-10-03T09:29:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Introduction(Page): pass class Decide(Page): form_model = 'player' form_fields = ['units'] class ResultsWaitPage(WaitPage): body_text = "Waiting for the other participant to...
[ "chris@otree.org" ]
chris@otree.org
cff5b0ce9bad60d2be0a2346e00bfc63ed894ca8
6eea60bcbf206dafc5fe578b996267ce2bc9ae6e
/interviewbit/Magician_and_Chocolates.py
5949fe44831449b74974a2e3381a8c91ec4d1949
[]
no_license
SueAli/cs-problems
491fef79f3e352d7712cd622d3b80ec15d38642b
b321116d135f868d88bd849b5ea7172feb74fb4c
refs/heads/master
2023-08-31T10:46:30.374394
2023-08-24T20:14:04
2023-08-24T20:14:04
95,930,918
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
import heapq import math class Solution: # @param A : integer # @param B : list of integers # @return an integer # Time complexity is O(n) + k * log (n) # Space Complexity if we can not make any changes in the input array, extra space memory of O(n) will be # required to build the heap def n...
[ "souad.hassanien@gmail.com" ]
souad.hassanien@gmail.com
19a0fd4d3939243857e88c8327c49561837841ab
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/xlsxwriter/test/comparison/test_textbox29.py
46aabfa9a927938c6129ee8a9c355269cb61109c
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
798
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
bd23ea04dc04e328739dd86a97a65296c5e7aa4e
3d91c09bca4e68bf7a527cb40ed70ac208495b93
/library/templatetags/get_lended.py
dc9e1d23ec96ed29f427b8fd2cf57aa40028802e
[]
no_license
Kaik-a/OCR-Projet13
02e9d8c9228d6d7a09013b4ab2570304c01dfc28
ac339002279397f43316e33a869cce797b5d92b2
refs/heads/main
2023-02-17T09:39:11.184120
2021-01-11T15:50:58
2021-01-11T15:50:58
311,875,691
0
0
null
2021-01-11T15:50:59
2020-11-11T05:51:34
CSS
UTF-8
Python
false
false
590
py
"""Get lended games""" from typing import Union from django import template from django.core.exceptions import ObjectDoesNotExist from library.models import LendedGame register = template.Library() @register.filter(name="get_lended") def get_lended(owned_game_id) -> Union[LendedGame, bool]: """ Get lended ...
[ "mehdi.bichari@outscale.com" ]
mehdi.bichari@outscale.com
87a207a046ec88b78484e7b0c816fccf6e4be3bc
ea05a89f4df49323eb630960c31bfbf3eb812e48
/events/migrations/0001_initial.py
7bae2e4599ed9154b47d3475390f388f1749a0db
[]
no_license
psteichen/aperta-cms-lts
3dff06fbf17e4a8c4a124c826b36f083451d613e
cf46e82cd71e7acddb900e558bc155cdd7999d9c
refs/heads/master
2021-01-20T00:08:06.012978
2017-08-11T13:58:10
2017-08-11T13:58:10
89,083,140
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-23 16:28 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import events.models class Migration(migrations.Migration): initial = True dependencies = [ ('locations', '0001_in...
[ "pst@libre.lu" ]
pst@libre.lu
6ccd0fd80e07bc2409e0b4c4d5708a7161fb5fa9
6b1b506139088aa30de9fd65cff9e3b6a3a36874
/sofia_redux/instruments/hawc/steps/__init__.py
dac31389261c9c2edcb7bfdcbb30788994698992
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SOFIA-USRA/sofia_redux
df2e6ad402b50eb014b574ea561734334d70f84d
493700340cd34d5f319af6f3a562a82135bb30dd
refs/heads/main
2023-08-17T11:11:50.559987
2023-08-13T19:52:37
2023-08-13T19:52:37
311,773,000
12
2
null
null
null
null
UTF-8
Python
false
false
3,262
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst __all__ = ['StepBinPixels', 'StepBgSubtract', 'StepCalibrate', 'StepCheckhead', 'StepCombine', 'StepDemodulate', 'StepDmdCut', 'StepDmdPlot', 'StepFlat', 'StepFluxjump', 'StepFocus', 'StepImgMap', 'StepIP', 'StepLabChop', ...
[ "melanie.j.clarke@nasa.gov" ]
melanie.j.clarke@nasa.gov
5aa75852540563db657a5c4fe15b75e585fcdfa2
37dd16e4e48511e5dab789c57d97ab47ccffd561
/src/apps/domain/engagement_assignment/admin.py
b5e547f63e46b70a8c0c61b622b47c81dc3b62fd
[]
no_license
willow/scone-api
c9473a043996639024ae028bb3d7bf420eb3d75b
c786915bc0535cb0ed78726afa4ee3c0772a8c0e
refs/heads/production
2016-09-05T18:43:22.953283
2014-08-18T23:16:47
2014-08-18T23:18:23
18,448,114
1
0
null
2014-08-08T16:40:35
2014-04-04T18:21:18
Python
UTF-8
Python
false
false
769
py
from django.contrib import admin from src.apps.domain.engagement_assignment.models import AssignedProspect class AssignedProspectAdmin(admin.ModelAdmin): actions = None def has_delete_permission(self, request, obj=None): return False def has_add_permission(self, request): return False # Allow view...
[ "scoarescoare@gmail.com" ]
scoarescoare@gmail.com
122fdbad2d4235c0448a9c191ffe41de3a7b7478
fa064f5ef48b29dcf2e90d9e4e30199a32c5e2af
/case/theater/myparser/legacy.py
97480ea593d418b0cf66e9aafc17bc502f89c3bf
[]
no_license
gsrr/Crawler
ed05971bf6be31f6dae32d6e82bbae9cb93a8d02
1e109eeaaf518e699e591fa8e72909e6f965be0c
refs/heads/master
2020-04-07T06:40:08.492069
2017-06-13T03:42:04
2017-06-13T03:42:04
44,025,883
27
5
null
null
null
null
UTF-8
Python
false
false
5,099
py
# -*- coding: utf-8 -*- import mylib import re import urlparse import urllib import parseplatform import copy def getContent(data, item): if item == "price": return data.replace("<span class='ticket_content'></span>", ",").replace("<br />", "\n") return data class Parser: def __init__(self, pa...
[ "jerrycheng1128@gmail.com" ]
jerrycheng1128@gmail.com
b0e8975a3841436d1056fbc76ca39921dc2e3f5b
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/token/Schema+Instance/NISTXML-SV-IV-atomic-token-enumeration-3-2.py
617a90346e1a437b02be47eb86f0aa348ed0dd9c
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
511
py
from output.models.nist_data.atomic.token.schema_instance.nistschema_sv_iv_atomic_token_enumeration_3_xsd.nistschema_sv_iv_atomic_token_enumeration_3 import NistschemaSvIvAtomicTokenEnumeration3 from output.models.nist_data.atomic.token.schema_instance.nistschema_sv_iv_atomic_token_enumeration_3_xsd.nistschema_sv_iv_at...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
d61c6018bc90c2c057e06d9f8d891a4a72b7b642
77f63e447ef93bd77ce4315b6d4220da86abffdf
/setup.py
cf8f789dcd9fdad981b8de82177b1b99dc6dbd2a
[ "WTFPL" ]
permissive
wsxxhx/TorchSUL
8d1625989b5f5ef5aeb879e01019ddf850848961
46ee6aab4367d8a02ddb6de66d24455dbfa465c4
refs/heads/master
2023-05-25T16:52:10.321801
2021-06-12T09:34:56
2021-06-12T09:34:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup_args = dict( name='TorchSUL', version='0.1.26', description='Simple but useful layers for Pytorch', packages=find_packages(), long_description=long_description, long_descripti...
[ "cy960823@outlook.com" ]
cy960823@outlook.com
f9018da09e837ffe4443e04232a0b7cf548b49d9
472905e7a5f26465af4eee0fcfaa592de52eed17
/server/apps/memories/migrations/0002_auto_20191201_1010.py
824245ab101e92788bc10412075f16655229495e
[]
no_license
backpropogation/memories
7c72bfeca8a4ab07a2c19960c5af91ed4da24304
0da75bcffccbe5d3f4e2d5b30ee3f224f70aa81b
refs/heads/master
2022-12-24T08:27:24.838744
2019-12-01T16:14:04
2019-12-01T16:14:04
225,188,993
0
0
null
2019-12-01T16:06:24
2019-12-01T16:03:37
JavaScript
UTF-8
Python
false
false
756
py
# Generated by Django 2.2.1 on 2019-12-01 10:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('memories', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='memory', options={'ordering': ('-po...
[ "jack.moriarty@mail.ru" ]
jack.moriarty@mail.ru
64ba6ec501d975d541fea1dd55faa1b766c24658
6444622ad4a150993955a0c8fe260bae1af7f8ce
/djangoenv/bin/django-admin
b9210326fb809c5ec6c08d9923a99c16f9a46121
[]
no_license
jeremyrich/Lesson_RestAPI_jeremy
ca965ef017c53f919c0bf97a4a23841818e246f9
a44263e45b1cc1ba812059f6984c0f5be25cd234
refs/heads/master
2020-04-25T23:13:47.237188
2019-03-22T09:26:58
2019-03-22T09:26:58
173,138,073
0
0
null
2019-03-22T09:26:59
2019-02-28T15:34:19
Python
UTF-8
Python
false
false
349
#!/home/mymy/Desktop/Python_agility/cours/Hugo/Lessons_RestAPI/Lesson_RestAPI/djangoenv/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(...
[ "jeremyrich@free.fr" ]
jeremyrich@free.fr
2401aaa2a42cd0e7892df3be26c15c536640cfef
ccb81eef3cd4f5562cab89b51695756ab8dbc736
/message_ler_17076/wsgi.py
f1c921791698157a52064050940c5b21f2e0dd40
[]
no_license
crowdbotics-apps/message-ler-17076
4e847a2ccd333b77414bf9b913e7705c203accbb
135b68325e04caf669fd9fe281244c460e71068c
refs/heads/master
2023-05-16T11:16:10.937234
2020-05-16T19:12:53
2020-05-16T19:12:53
264,508,470
0
0
null
2021-06-10T11:01:47
2020-05-16T19:11:07
Python
UTF-8
Python
false
false
411
py
""" WSGI config for message_ler_17076 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
24ce83491fbb7e1866d1b8b4a18150fc82c28ee5
79479634cd8da72fc912b11ec43e237726f7c5e5
/scripts/subreddit_submissions.py
5d74fcf29545b78a2ba70950c7140671f3e4f73d
[ "MIT" ]
permissive
PhantomInsights/subreddit-analyzer
594235169f58d5b2c9de886625464ced5be02790
ba5e6250797515d664d6cfa6df011f8cec1b2729
refs/heads/master
2020-11-25T10:46:13.771188
2020-04-02T12:50:12
2020-04-02T12:50:12
228,625,357
513
47
MIT
2019-12-24T13:35:32
2019-12-17T13:42:42
Python
UTF-8
Python
false
false
2,915
py
""" This script uses the Pushshift API to download posts from the specified subreddits. By default it downloads 10,000 posts starting from the newest one. """ import csv import time from datetime import datetime import requests import tldextract SUBREDDITS = ["mexico"] HEADERS = {"User-Agent": "Submissions Download...
[ "phantom@phantom.im" ]
phantom@phantom.im
1e189ea6efb35bf1d8f0ab74b3f558a83fc5ab98
35b460a5e72e3cb40681861c38dc6d5df1ae9b92
/CodeFights/Arcade/Intro/throughTheFog/circleOfNumbers.py
aef33d190af0cb87515c13db64c6284b45fdb0e4
[]
no_license
robgoyal/CodingChallenges
9c5f3457a213cf54193a78058f74fcf085ef25bc
0aa99d1aa7b566a754471501945de26644558d7c
refs/heads/master
2021-06-23T09:09:17.085873
2019-03-04T04:04:59
2019-03-04T04:04:59
94,391,412
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
# Name: circleOfNumbers.py # Author: Robin Goyal # Last-Modified: July 13, 2017 # Purpose: Given a circular radius n and an input number, # find the number which is opposite the input number def circleOfNumbers(n, firstNumber): return (firstNumber + n / 2) % n
[ "goyal.rob@gmail.com" ]
goyal.rob@gmail.com
2e6d663e1f9f0847d490f1af6ae277c83881bfaa
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/twentemilieu/calendar.py
f4d1e51b171eedd978a3de9419f2265296cd7c7b
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
3,653
py
"""Support for Twente Milieu Calendar.""" from __future__ import annotations from datetime import date, datetime, timedelta from twentemilieu import WasteType from homeassistant.components.calendar import CalendarEntity, CalendarEvent from homeassistant.config_entries import ConfigEntry from homeassistant.const impo...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
0750081985acee30b91acb274a9231071fbedfeb
d531f502304f4f314a2e5d2e28a98d184b143e42
/elastic/documents.py
498ceec138557a0e21834f5db9bfdec2efd61514
[]
no_license
mikohan/djangoblogtest
6a0d4704fb51a8ca935ea329cb007b7e48fecb54
3af986cd8be3d83ad5b01d2583464e243309dd50
refs/heads/master
2020-06-13T15:39:13.686997
2019-07-02T05:25:06
2019-07-02T05:25:06
194,696,685
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
from django_elasticsearch_dsl import DocType, Index from elastic.models import Post post = Index('posts') @post.doc_type class PostDocument(DocType): class Meta: model = Post fields = [ 'title', 'content', 'timestamp' ]
[ "angara99@gmail.com" ]
angara99@gmail.com
44338e41bb946806695a6fb18d70a1d6fa64fd0e
5e989188eb0cfde46f57e033679bd7817eae6620
/liteeth/phy/common.py
a290dfb1bd84798bfb3c5ab3213b22d8bb6a7865
[ "BSD-2-Clause" ]
permissive
telantan/liteeth
1f85b086a7740013f4adfcecc92644fd147085e3
73bd27b506211f12f8c515ad93a3cc65a3624dc3
refs/heads/master
2020-12-13T16:37:47.229699
2020-01-16T14:29:49
2020-01-16T14:46:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,186
py
# This file is Copyright (c) 2015-2018 Florent Kermarrec <florent@enjoy-digital.fr> # License: BSD from liteeth.common import * from migen.genlib.cdc import MultiReg from migen.fhdl.specials import Tristate class LiteEthPHYHWReset(Module): def __init__(self): self.reset = Signal() # # # ...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr
521703d00dde8fdf3755df816b625447ecc002e5
4a0c047f73458d089dc62bc2be7c3bd098a08ee2
/data_structor/datetime_format.py
b7c87e2848cb10ed5974e929f4beb7d26f13f2f4
[]
no_license
sunghyungi/pandas_study
b53e53d88abe733b292c06e2658e2fa21428ffca
b861724995914a4a4644c8b08b3b38070d5abc51
refs/heads/master
2020-11-28T02:05:22.565760
2020-01-08T03:09:37
2020-01-08T03:09:37
229,675,769
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
import pandas as pd df = pd.read_csv('stock-data.csv') pd.set_option('display.max_columns', 15) pd.set_option('display.max_colwidth', 20) pd.set_option('display.unicode.east_asian_width', True) pd.set_option('display.width', 600) print("# 문자열인 날짜 데이터를 판다스 Timestamp로 변환") df['new_Date'] = pd.to_datetime(df['Date']) p...
[ "tjdgusrlek@gmail.com" ]
tjdgusrlek@gmail.com
63b51da8acb55197f2b5cf0b3f435534ad187add
bf21cd0ef7a94fa106ccd9f91a4bbfdcda7f94ed
/Deep-Learning/scratch/chapter02/ex01.py
2c5dc92731ed2fa6ccaecca539c46eeb6749499f
[]
no_license
juneglee/Deep_Learning
fdf8cae1b962aaa0ce557cb53f78a22b6d5ae1e8
17a448cf6a7c5b61b967dd78af3d328d63378205
refs/heads/master
2023-07-15T03:02:55.739619
2021-08-19T14:04:55
2021-08-19T14:04:55
273,253,872
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
# 시그모이드 함수 구현하기 import numpy as np import matplotlib.pylab as plt def sigmoid(x): return 1/(1 + np.exp(-x)) x = np.arange(-5.0, 5.0, 0.1) y = sigmoid(x) plt.plot(x, y) plt.ylim(-0.1, 1.1) plt.show() # 시그모이드 = s자 모양 함수 # 계단형 함수와 시그모이드 함수는 둘다 비선형 함수이다.
[ "klcpop1@gmail.com" ]
klcpop1@gmail.com
555f97472640862d217d8dc672bc2c246ae663fb
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_158/624.py
2a3abc64d2cdf70a551ac5e03e6ac90bbaed9216
[]
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
1,118
py
#!/usr/bin/python import requests, logging, string, sys def createOutput(result): f = open(sys.argv[2], "w") for i in range(0, len(result)): f.write("Case #" + str(i + 1) + ": " + result[i] + "\n") f.close(); return def processResults(X, R, C): volume = R * C if volume % X != 0: return "RICHARD" if X == 1...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
cfd620bb6fbedecd779cce1cc00f2d22eddeb425
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Generators/MadGraphModels/python/models/HeavyHiggsTHDM/__init__.py
948b99c911ee93b63f7295fe1003ccaa5fc58319
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
905
py
import particles import couplings import lorentz import parameters import vertices import coupling_orders import write_param_card import propagators all_particles = particles.all_particles all_vertices = vertices.all_vertices all_couplings = couplings.all_couplings all_lorentz = lorentz.all_lorentz all_parameters = ...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
d36ac047086b61bb183185f54828352106cbdb9e
c7a94e7b1956c79f3c390508e60902a6bb56f3c5
/xlsxwriter/core.py
905736f039167206a9cfb1549c151f8e084c2bb7
[ "BSD-2-Clause" ]
permissive
alexander-beedie/XlsxWriter
635b68d98683efb8404d58f5d896f8e6d433e379
03f76666df9ce5ac0ab6bb8ff866d424dc8fea58
refs/heads/main
2023-05-27T15:33:36.911705
2023-05-04T00:00:04
2023-05-04T00:00:04
144,862,072
0
0
null
2018-08-15T14:15:51
2018-08-15T14:15:50
null
UTF-8
Python
false
false
5,656
py
############################################################################### # # Core - A class for writing the Excel XLSX Worksheet file. # # SPDX-License-Identifier: BSD-2-Clause # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org # # Standard packages. from datetime import datetime # Package imports. from ...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
c7f48720bb0d186381903465c450342a3c0e979a
2b82b45edf199488e45cef97571e57dff4a3e824
/programs/spectralnorm/spectralnorm-numba-2.py
e373f4c513a9114fd405c25ea2883f5c37f7a01e
[ "BSD-3-Clause" ]
permissive
abilian/python-benchmarks
cf8b82d97c0836c65ff00337b649a53bc9af965e
37a519a2ee835cf53ca0bb78e7e7c83da69d664e
refs/heads/main
2023-08-05T18:50:53.490042
2021-10-01T10:49:33
2021-10-01T10:49:33
321,367,812
1
0
null
null
null
null
UTF-8
Python
false
false
686
py
# The Computer Language Benchmarks Game # http://benchmarksgame.alioth.debian.org/ # # Contributed by Sebastien Loisel # Fixed by Isaac Gouy # Sped up by Josh Goldfoot # Dirtily sped up by Simon Descarpentries # Sped up with numpy by Kittipong Piyawanno # 2to3 from numba import jit from sys import argv from numpy impor...
[ "sf@fermigier.com" ]
sf@fermigier.com
7d21255d581e353aca38239ac109c88f33e37acd
13a5a2ab12a65d65a5bbefce5253c21c6bb8e780
/dnainfo/crimemaps/migrations/0024_nycschoolswatertesting.py
8679bb07a5f901d7e3c0d9f930f5754ade2f377c
[]
no_license
NiJeLorg/DNAinfo-CrimeMaps
535b62205fe1eb106d0f610d40f2f2a35e60a09e
63f3f01b83308294a82565f2dc8ef6f3fbcdb721
refs/heads/master
2021-01-23T19:28:12.642479
2017-05-11T06:04:08
2017-05-11T06:04:08
34,847,724
2
0
null
2016-11-25T15:56:14
2015-04-30T10:02:41
JavaScript
UTF-8
Python
false
false
1,689
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('crimemaps', '0023_nyctrainsitstand'), ] operations = [ migrations.CreateModel( name='NYCschoolsWaterTesting', ...
[ "jd@nijel.org" ]
jd@nijel.org
5559ceb97c6a0b3e8d421323d1656c568b83aa72
912c4445e7041869d1c8535a493b78d7ee35424b
/status/tests.py
034f0f6f61543636b32a1de55226078cabb8a2f1
[]
no_license
maltezc/Udemy-DjangoRestAPI
3f243ec97ea5e8e9d6ddc2005986b6a05aa11097
de6f885cf0cddaf22fb6fd72d18fc805b9ce48d2
refs/heads/master
2022-12-14T06:04:43.011691
2018-08-05T01:10:17
2018-08-05T01:10:17
140,590,753
0
0
null
2022-11-22T02:48:04
2018-07-11T14:56:08
Python
UTF-8
Python
false
false
602
py
from django.test import TestCase from django.contrib.auth import get_user_model from status.models import Status User = get_user_model() class StatusTestCase(TestCase): def setUp(self): user = User.objects.create(username='cfe', email='hello@cfe.com') user.set_password("yeahhhcfe") user...
[ "cflux.maltez@live.com" ]
cflux.maltez@live.com
564a8dc4667af1a3fb616136ef6739ca876695e8
c9c94fcc33b25ebef73ce7c117ea20721a504701
/tests/spatial_operator/test_rectangle_knn.py
1f9a5b64d1da90b85cfa670891069534998dfa1b
[ "Apache-2.0" ]
permissive
Imbruced/geo_pyspark
46468cc95658fa156144246a45df32116d7ff20e
26da16d48168789c5f2bb75b5fdec1f515bf9cb1
refs/heads/master
2022-12-16T18:56:54.675038
2020-02-24T20:32:38
2020-02-24T20:32:38
204,563,687
8
3
Apache-2.0
2022-12-08T03:32:18
2019-08-26T21:21:00
Python
UTF-8
Python
false
false
2,730
py
import os import pytest from shapely.geometry import Point from geo_pyspark.core.SpatialRDD import RectangleRDD from geo_pyspark.core.enums import IndexType, FileDataSplitter from geo_pyspark.core.geom_types import Envelope from geo_pyspark.core.spatialOperator import KNNQuery from tests.test_base import TestBase fro...
[ "pawel93kocinski@gmail.com" ]
pawel93kocinski@gmail.com
0cc4a2fbc3d553407bee5160d9a38847be8d9dd1
f3b233e5053e28fa95c549017bd75a30456eb50c
/bace_input/L3C/3C-7G_MD_NVT_rerun/set_7.py
0f46d20e708063854de9926a0271f971f5bca6db
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
import os dir = '/mnt/scratch/songlin3/run/bace/L3C/MD_NVT_rerun/ti_one-step/3C_7G/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_7.in' temp_pbs = filesdir + 'temp_7.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lam...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
e989e386a134506b91ae97587f771f0c11f17115
3fa8eead6e001c4d5a6dc5b1fd4c7b01d7693292
/ros_final_exam/src/path_exam/src/drone_takeoff.py
72614d2c3d72572785aac0f590f96c7dbe3cb835
[]
no_license
MarzanShuvo/Ros_from_the_construct
09261902841cdd832672658947790ec5fbba4cd3
4798234284d9d0bab3751e9d8ac2df95ae34a5bf
refs/heads/master
2023-08-24T17:28:09.182113
2021-10-23T07:57:02
2021-10-23T07:57:02
339,105,075
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
#! /usr/bin/env python import rospy from std_msgs.msg import Empty pub = rospy.Publisher('/drone/takeoff', Empty, queue_size=1) rospy.init_node('taking_off', anonymous=True) i=0 takeoff_msg = Empty() while not (i==3): rospy.loginfo("Taking off....... ") pub.publish(takeoff_msg) rospy.sleep(1) i +=1
[ "marzanalam3@gmail.com" ]
marzanalam3@gmail.com
4fc4e6b6c216cafeb53c0703782cfe3a9f1fdd53
730f89724aca038c15191f01d48e995cb94648bc
/entrances/migrations/0009_auto_20141110_1309.py
17928096718feb7f3db7ab280502d06f3d51621d
[]
no_license
Happyandhappy/django_email
14bc3f63376f2568754292708ec8ca7f2e2cf195
ea858c9fac79112542551b7ba6e899e348f24de3
refs/heads/master
2020-03-22T14:22:08.431334
2018-07-21T13:41:23
2018-07-21T13:41:23
140,174,033
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('entrances', '0008_auto_20141110_1307'), ] operations = [ migrations.AddField( model_name='apartment', ...
[ "greyfrapp@gmail.com" ]
greyfrapp@gmail.com
4ee9e4930ad0c277ac82dc545653ba3ef880b7e6
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/sklearn/metrics/_scorer.py
4bc04f4d204ed29c114a974229d0a44f0ba6f1b8
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:8f37b7f3b8da7123e4a98b2e1da0d724580dcc50f279d05bd2498a751b565c7c size 29542
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com
5078acc63f2d24dd99dc18787c02cd2665fb8670
48894ae68f0234e263d325470178d67ab313c73e
/sa/profiles/Alentis/NetPing/highlight.py
60164c4a96843307785a0cc7612ad8968ecfa497
[ "BSD-3-Clause" ]
permissive
DreamerDDL/noc
7f949f55bb2c02c15ac2cc46bc62d957aee43a86
2ab0ab7718bb7116da2c3953efd466757e11d9ce
refs/heads/master
2021-05-10T18:22:53.678588
2015-06-29T12:28:20
2015-06-29T12:28:20
118,628,133
0
0
null
2018-01-23T15:19:51
2018-01-23T15:19:51
null
UTF-8
Python
false
false
1,558
py
# -*- coding: utf-8 -*- ##---------------------------------------------------------------------- ## Alentis.NetPing highlight lexers ##---------------------------------------------------------------------- ## Copyright (C) 2007-2014 The NOC Project ## See LICENSE for details ##------------------------------------------...
[ "dmitryluhtionov@gmail.com" ]
dmitryluhtionov@gmail.com
eadd7513a637a4fbfe75dbf5f146bd0eb9c4b2a3
e768a26a03283628ceccf98a021e9441101aae0c
/lstail/util/timestamp.py
937ec3dd3a7938b64cdc4058ff09eb367a7a4a9f
[ "MIT" ]
permissive
eht16/lstail
d8a4ecadf41b71c72bcc54ab59ce7229f7060d00
8fb61e9d07b05b27e3d45e988afe0c198010248d
refs/heads/master
2023-01-24T02:11:54.864001
2021-06-24T20:09:07
2021-06-24T20:09:07
231,070,462
6
2
null
null
null
null
UTF-8
Python
false
false
1,881
py
# -*- coding: utf-8 -*- # # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from datetime import datetime, timedelta from lstail.constants import ELASTICSEARCH_TIMESTAMP_FORMATS from lstail.error import InvalidTimeRangeFormatError, InvalidTimestam...
[ "enrico.troeger@uvena.de" ]
enrico.troeger@uvena.de
21b40d08fed1635c5fe1d8ce52d30d0da90e50af
786de89be635eb21295070a6a3452f3a7fe6712c
/pyana_examples/tags/V00-00-22/src/myana_epics.py
43a50ac4ee210d95837b5b08f3fe499855f1f31f
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,275
py
#-------------------------------------------------------------------------- # File and Version Information: # $Id$ # # Description: # Pyana user analysis module myana_epics... # #------------------------------------------------------------------------ """User analysis module for pyana framework. This software was d...
[ "salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7" ]
salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7
2493c1cc3a4b0fe3b2854c9e23fc45bfface1968
d50f50f455a2f96e7fbd9fb76fcdcdd71b8cc27c
/Day-23/Day23_Shahazada(ST).py
c48889980ab7f74e9d0a9c64863664893954a65a
[]
no_license
Rushi21-kesh/30DayOfPython
9b2cc734c553b81d98593031a334b9a556640656
d9741081716c3cf67823e2acf37f015b5906b913
refs/heads/main
2023-06-29T13:18:09.635799
2021-07-30T13:33:04
2021-07-30T13:33:04
384,316,331
1
0
null
2021-07-09T04:01:24
2021-07-09T04:01:23
null
UTF-8
Python
false
false
695
py
'''This program rotate list cyclically by user choice''' if __name__ == '__main__': n=int(input("Enter the size of list:- ")) print("Enter element of list") elementList=[] for i in range(n): ele=int(input()) elementList.append(ele) rotatedlist=[] rotateBy=int(input("By ...
[ "noreply@github.com" ]
Rushi21-kesh.noreply@github.com
eca0c55b107bd3d4779cf6d82077c32e6d204a7c
d7d524d1c0ba1cf62cdbc2f9bf5b9c66fa56726b
/47high.py
7e7773c0544de60d34e249dd843254966da9d18b
[]
no_license
ramyasutraye/pythonproject
d997ca5ada024e211b6bf087d0d56684daf9df8b
38975a99eb3ee1ad9e79a9efd538cc992d249fc3
refs/heads/master
2020-04-23T19:30:10.128774
2018-05-25T06:18:53
2018-05-25T06:18:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
n=int(input("enter the number:")) a=[] for i in range(0,n): b=int(input("Enter number:")) a.append(b) a.sort() print(min(a),max(a))
[ "noreply@github.com" ]
ramyasutraye.noreply@github.com
e0a183e93aadcfada6ef5a4998601ae0e7797837
6f9a5717fed38b0a79c399f7e5da55c6a461de6d
/Baekjoon/CardPurchase.py
9a394075fa2e93607643af50ef1def9dbd576b48
[]
no_license
Alfred-Walker/pythonps
d4d3b0f7fe93c138d02651e05ca5165825676a5e
81ef8c712c36aa83d1c53aa50886eb845378d035
refs/heads/master
2022-04-16T21:34:39.316565
2020-04-10T07:50:46
2020-04-10T07:50:46
254,570,527
1
1
null
null
null
null
UTF-8
Python
false
false
2,845
py
# 요즘 민규네 동네에서는 스타트링크에서 만든 PS카드를 모으는 것이 유행이다. # # PS카드는 PS(Problem Solving)분야에서 유명한 사람들의 아이디와 얼굴이 적혀있는 카드이다. # 각각의 카드에는 등급을 나타내는 색이 칠해져 있고, 다음과 같이 8가지가 있다. # # 전설카드 # 레드카드 # 오렌지카드 # 퍼플카드 # 블루카드 # 청록카드 # 그린카드 # 그레이카드 # 카드는 카드팩의 형태로만 구매할 수 있고, 카드팩의 종류는 카드 # 1개가 포함된 카드팩, 카드 2개가 포함된 카드팩, ... 카드 N개가 포함된 카드팩 # 과 같이 총 N가지가 존재...
[ "studio.alfred.walker@gmail.com" ]
studio.alfred.walker@gmail.com
97952047d650f3e84518e6583fe08909eb2da9a6
9ac19e6733e1f91bb9cb0fe47967491a5e856040
/test/test_revoke.py
8c0a82737e93f456dc810b7cc587fccd0bb78a27
[ "MIT" ]
permissive
DS4SD/project-mognet
7898b41046a31b82052b1424e6910cb65b14e5c5
9e415e88404da0a0eab3b379d6cd7b7d15ca71a6
refs/heads/main
2023-05-23T22:02:10.406590
2022-07-13T11:53:28
2022-07-13T11:53:28
474,094,219
5
1
MIT
2022-07-13T11:53:29
2022-03-25T16:55:53
Python
UTF-8
Python
false
false
1,402
py
import asyncio import uuid from mognet.model.result import ResultFailed from mognet.model.result_state import ResultState import pytest from mognet import App, Request, Context, task @pytest.mark.asyncio async def test_revoke(test_app: App): req = Request(name="test.sleep", args=(10,)) await test_app.submit(...
[ "dol@zurich.ibm.com" ]
dol@zurich.ibm.com
9c26d10ade54eaa70dce931bd5513bb7e4b1f601
1b5802806cdf2c3b6f57a7b826c3e064aac51d98
/tensorrt-basic-1.10-3rd-plugin/TensorRT-main/demo/HuggingFace/NNDF/general_utils.py
64717b1eb53c28be3c1809bc124766cc218189cd
[ "MIT", "BSD-3-Clause", "Apache-2.0", "ISC", "BSD-2-Clause" ]
permissive
jinmin527/learning-cuda-trt
def70b3b1b23b421ab7844237ce39ca1f176b297
81438d602344c977ef3cab71bd04995c1834e51c
refs/heads/main
2023-05-23T08:56:09.205628
2022-07-24T02:48:24
2022-07-24T02:48:24
517,213,903
36
18
null
2022-07-24T03:05:05
2022-07-24T03:05:05
null
UTF-8
Python
false
false
6,519
py
# # Copyright (c) 2021, 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 License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ "dujw@deepblueai.com" ]
dujw@deepblueai.com
056c67711ce448d1738be23298e3ca357a3e5980
6800da49fb74cbc0079d3106762122ea102562be
/channel_manager.py
a7711d6079828cd8d5634f7a70a045f8e2856764
[]
no_license
legoktm/adminbots
8f9e03eb2002addf0e0589d627202cd977bafd7e
0b0a913c8b1ad3d92b77d6352660a05af54f5e06
refs/heads/master
2016-09-05T19:17:30.683600
2013-11-21T01:51:20
2013-11-21T01:51:20
10,352,998
1
0
null
null
null
null
UTF-8
Python
false
false
903
py
# -*- coding: utf-8 -*- # (C) Legoktm, 2013 # Licensed under the MIT License # Assists with joining/parting channels import os import yaml from mtirc import hooks filename = os.path.expanduser('~/channels.yml') def get_channel_list(): with open(filename) as f: raw = f.read() data = yaml.load(raw) ...
[ "legoktm@gmail.com" ]
legoktm@gmail.com
da01bc57ce96ce7a637d80966352e5dd5539954c
b2ff7365dda9fa9290c2eae04988e3bda9cae23a
/13_top_k/8.py
74578e1adccfe804dc3394e7b47b49305637cb5f
[]
no_license
terrifyzhao/educative3
cd6ccdb0fc4b9ba7f5058fe2e3d2707f022d8b16
5c7db9ef6cf58ca5e68bb5aec8ed95af1d5c0f47
refs/heads/master
2022-12-26T23:53:30.645339
2020-10-10T00:48:22
2020-10-10T00:48:22
298,991,655
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
from heapq import * def find_closest_elements(arr, K, X): result = [] min_heap = [] for i in range(len(arr)): heappush(min_heap, [abs(arr[i] - X), i]) for i in range(K): index = heappop(min_heap)[1] result.append(arr[index]) return result def main(): print("'K' cl...
[ "zjiuzhou@gmail.com" ]
zjiuzhou@gmail.com
aaacb65e368ef4189378c6a8e678963699b64664
8b8351c8d0431a95d2e1ad88a1ef42470ff6f66c
/python/exceptions_hierarchy.py
d02f55310a599e914c6972c208f5bba08b75fd07
[]
no_license
miso-belica/playground
2d771197cca8d8a0031466c97317bfa38bb2faff
6c68f648301801785db8b3b26cb3f31b782389ec
refs/heads/main
2022-11-29T09:17:24.661966
2022-11-23T22:19:50
2022-11-24T07:20:13
30,124,960
14
8
null
2022-11-24T07:20:14
2015-01-31T20:18:53
Python
UTF-8
Python
false
false
386
py
# -*- coding: utf-8 -*- import sys import time if __name__ == "__main__": try: # time.sleep(5) # sys.exit(1) raise ValueError("value") except Exception as e: print("Catched ValueError!", e) try: sys.exit(1) except Exception: print("Catched exit by Excep...
[ "miso.belica@gmail.com" ]
miso.belica@gmail.com
40bb5c70b623f899a77f7317d99cbb2312d64a19
086ece6952b56602c20709bfa219037b0375ab0c
/ENGLISH_DETECTION.py
085150b7a9dbb3fd571fb2f0c15a3e22448c73fd
[]
no_license
pseudo11235813/Random-Python-Ciphers
71aca8561b003ab8818e4d934288aef8d2779e9c
48f04b2e6a32ea67a2bc88d0bb283a51fd5150e5
refs/heads/master
2022-12-20T03:53:04.643760
2020-09-21T19:16:41
2020-09-21T19:16:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,508
py
#Self-dev English Detector module #you need to download an English dictionary Text File to use this module #go to google or any search engine and download an English Dictionary File #a one you can use : #import eng #eng.isEnglish(message) ; will return false or true. #eng.DictLoader() ; will ask you for a the English ...
[ "=" ]
=
42db80f31e7be0f63eda0be8f66f974d95ed6f61
dbd23b5c9ead096ea1b4c4ddd2acba3f6b4eb0db
/testing/test_delete_job_when_finished.py
62808bad32277674cc8859516c778e703e7e1ef6
[]
no_license
NGTS/real-time-transmission
b067b9572d02ae99c7cbd6c569c4ac36eb14bc25
f70901dbc9ae59515e7786d5d3a5978c46adc312
refs/heads/master
2020-06-07T16:11:45.860569
2018-02-26T11:15:49
2018-02-26T11:15:49
42,189,235
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
import pytest import pymysql from ngts_transmission.watching import fetch_transmission_jobs @pytest.yield_fixture def cursor(): connection = pymysql.connect(user='ops', db='ngts_ops') cursor = connection.cursor() try: yield cursor finally: connection.rollback() connection.clos...
[ "s.r.walker101@googlemail.com" ]
s.r.walker101@googlemail.com
3a0df4406e2172b099f147aac840fbdf997001a3
620cd7d12a3d241da9fe59f30bbbc97c3ffa61e2
/apptools/apptools-android-tests/apptools/build_path.py
2ceabab85becaf578c47fac647bd2d36b0cc4829
[ "BSD-3-Clause" ]
permissive
playbar/crosswalk-test-suite
e46db96343f4a47f1a19fddaedc519818c10d992
29686407e8b3106cf2b0e87080f927609e745f8e
refs/heads/master
2021-05-29T15:33:01.099059
2015-10-09T06:03:22
2015-10-09T06:03:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,717
py
#!/usr/bin/env python # # Copyright (c) 2015 Intel Corporation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of works must retain the original copyright notice, this # list of conditions and t...
[ "yunx.liu@intel.com" ]
yunx.liu@intel.com
2ba5addce7fd9b7cb325e48d5c45b3ce7fd59344
57fc5d54f5df359c7a53020fb903f36479d3a322
/controllers/.history/supervisor/test_20201127155537.py
e3b792d9d8e09cd6b8a393ddf0de55beb40da8d5
[]
no_license
shenwuyue-xie/webots_testrobots
929369b127258d85e66c5275c9366ce1a0eb17c7
56e476356f3cf666edad6449e2da874bb4fb4da3
refs/heads/master
2023-02-02T11:17:36.017289
2020-12-20T08:22:59
2020-12-20T08:22:59
323,032,362
0
0
null
null
null
null
UTF-8
Python
false
false
3,372
py
import numpy import math import os # def normalize_to_range(value, min, max, newMin, newMax): # value = float(value) # min = float(min) # max = float(max) # newMin = float(newMin) # newMax = float(newMax) # return (newMax - newMin) / (max - min) * (value - max) + newMax # k = normalize_to_r...
[ "1092673859@qq.com" ]
1092673859@qq.com
4282f0f0a003d44a67bb0595b6cc543a4271a345
4920b6c12dc2427036077d38ed8fa513130418a8
/bipad_api/bipad_api/models/inline_response20053.py
a52d1c5a3839994bdacc9f2ef436923135b09853
[]
no_license
laxmitimalsina/covid_dashboard
d51a43d3ba2ad8a9754f723383f6395c1dccdda5
ccba8a3f5dd6dbd2b28e2479bda6e581eb23805f
refs/heads/master
2023-05-29T15:07:32.524640
2021-05-03T11:15:43
2021-05-03T11:15:43
273,698,762
0
0
null
null
null
null
UTF-8
Python
false
false
5,265
py
# coding: utf-8 """ BIPAD API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six cl...
[ "laxmitimalsina2017@gmail.com" ]
laxmitimalsina2017@gmail.com
d5fef288e77bbef2f70188793ca31f94dd4b090c
d1fb8bb087564052674cb33ac6d75daca4ae586a
/Amazon 11月VO真题/1/1181. Diameter of Binary Tree.py
feaeae0a737d49417a450acd9d2dc1468f37fd6f
[]
no_license
YunsongZhang/lintcode-python
7db4ca48430a05331e17f4b79d05da585b1611ca
ea6a0ff58170499c76e9569074cb77f6bcef447a
refs/heads/master
2020-12-24T03:05:43.487532
2020-01-30T19:58:37
2020-01-30T19:58:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None class Solution: """ @param root: a root of binary tree @return: return a integer """ def __init__(self): self.diameter = 0 def diameterOfBinaryTree(self, root): if not...
[ "haixiang6123@gmail.com" ]
haixiang6123@gmail.com
d355b7ca1605808368bffb45037fb5f9c0de8c1b
31f5c200fbaded1f3670b94042b9c47182a160ca
/ch17/q17.py
9d33c61cbee9a9322dbd698c19e807c63a45bd91
[]
no_license
AeroX2/advent-of-code-2020
d86f15593ceea442515e2853003d3a1ec6527475
e47c02e4d746ac88f105bf5a8c55dcd519f4afe8
refs/heads/main
2023-02-03T02:24:58.494613
2020-12-22T10:15:29
2020-12-22T10:15:29
317,873,883
0
0
null
null
null
null
UTF-8
Python
false
false
1,610
py
import sys data = open(sys.argv[1]).read().strip() data = [list(x) for x in data.split('\n')] print(data) cube = {} for y,v in enumerate(data): h = len(v)//2 for x,v2 in enumerate(v): cube[(x-h,y-h,0)] = v2 print(cube) width = len(data[0]) height = width depth = 0 print('Dimensions') print((width, h...
[ "james@ridey.email" ]
james@ridey.email
aceeca9c2d8787ad6a846e833d5d569f4584213e
4a191e5aecd53c4cea28482a0179539eeb6cd74b
/comments/forms.py
5ba7334316083549b5600318794c46b4b51310b5
[]
no_license
jiangjingwei/blogproject
631a2e8e2f72420cce45ddaf152174852376d831
daf14e88092dc030a3ab0c295ee06fb6b2164372
refs/heads/master
2020-03-14T23:29:08.052253
2018-05-10T11:35:59
2018-05-10T11:35:59
131,846,149
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
from django import forms from comments.models import Comments class CommentForm(forms.ModelForm): class Meta: model = Comments fields = ['name', 'email', 'url', 'text']
[ "270159429@qq.com" ]
270159429@qq.com
852adc191b890bbcb734581a6f26bd32495378c8
ec21d4397a1939ac140c22eca12491c258ed6a92
/Zope-2.9/lib/python/Testing/dispatcher.py
a309a4937442b12ebedc1492329a89a0f71071bb
[]
no_license
wpjunior/proled
dc9120eaa6067821c983b67836026602bbb3a211
1c81471295a831b0970085c44e66172a63c3a2b0
refs/heads/master
2016-08-08T11:59:09.748402
2012-04-17T07:37:43
2012-04-17T07:37:43
3,573,786
0
0
null
null
null
null
UTF-8
Python
false
false
5,469
py
############################################################################## # # Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFT...
[ "root@cpro5106.publiccloud.com.br" ]
root@cpro5106.publiccloud.com.br
d624d83e089f1a87248f66a4ca5b174c8b084b89
99a2d82d2a10c0af77731885f80307edcdc48535
/maildir-cat
c6e018e5ef5f707ebd50c8ae0030ce0ce56bf5cd
[ "WTFPL", "LicenseRef-scancode-public-domain" ]
permissive
mk-fg/fgtk
be60c102f6ad6cd0d0e364c3863c36a1902a15a3
90de180b0d4184f3040d85a4ff2ac38319a992af
refs/heads/master
2023-09-06T08:41:33.852815
2023-08-19T07:25:54
2023-08-19T07:25:54
3,831,498
149
46
null
2017-08-15T19:23:59
2012-03-26T09:58:03
Python
UTF-8
Python
false
false
4,883
#!/usr/bin/env python3 import itertools as it, operator as op, functools as ft import mailbox, email, email.header, email.charset, email.errors import os, sys, re, pathlib as pl, collections as cs def bytes_decode(b, enc, errors='strict'): try: return b.decode(enc, errors) except LookupError as err: # Try to han...
[ "mk.fraggod@gmail.com" ]
mk.fraggod@gmail.com