blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
25c1583f338462adcda09716bc7a799535e2b80c
9817081963d03259c666074aad04e2b77d3fd43a
/EIC-Beamtest-FW/scripts/new_scripts/BMD_TXConfig_mod.py
ee4c85ae42fd0b94d7f200bd804208c0af198178
[]
no_license
nathankp/mRICH-FW
b3553f768cc82007c2d4381a5cbbca8d694aadea
a189edc039e989db136d15ffb2686b55dc6c41cb
refs/heads/master
2021-06-04T13:17:30.771931
2020-06-23T01:24:41
2020-06-23T01:24:41
148,863,832
1
2
null
null
null
null
UTF-8
Python
false
false
37,807
py
#!/usr/bin/env python ''' University of Hawaii at Manoa Instrumentation Development Lab (IDLab), WAT214 AUTHORS: khanh le 9/6/17 DESCRIPTION: Mode 0: sets detector to default values (DAC:0.95V and TH: 1550) Mode 1: Does Baseline scan over DAC range set below for selected raw HV or rechecks baseline if scan ...
[ "nathankp@hawaii.edu" ]
nathankp@hawaii.edu
2d571fe40d4c9c9c2c0af5d5ac30b5bd3da99678
c7711e041637464339b962b18289bbd324165171
/Pyside2Examples/widgets/itemviews/addressbook/addresswidget.py
ae8396b736b7884ca5eb4f0549dc9f39a2eb2fb4
[]
no_license
FlysongMH/MyQtProject
57281fd1dfc6aa6cc823226f26635d0c74c76f75
42437313d55bbfc512eb512c31cb0b856d3d8a5f
refs/heads/master
2020-12-11T11:17:53.560032
2020-09-29T10:58:42
2020-09-29T10:58:42
233,833,664
0
0
null
null
null
null
UTF-8
Python
false
false
10,452
py
############################################################################# ## ## Copyright (C) 2011 Arun Srinivasan <rulfzid@gmail.com> ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## ## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_...
[ "song.m.h@163.com" ]
song.m.h@163.com
333f6a2ec3a9229e86c9318beb30008c51908041
591a1a5b334efc878d890c2492a2f1b6cf475b6c
/fixJobAccountant.py
41d6c79ffadfea61bdaa333e5338c42660fc5f43
[]
no_license
amaltaro/ProductionTools
b827fa8a80006443b00004f90658791fdea4fc26
df85a4d4ae35e4f4c7523fcba9b22a1300329e06
refs/heads/master
2023-06-08T22:59:19.377928
2023-05-24T18:04:26
2023-05-24T18:04:26
22,791,862
0
3
null
2021-03-22T11:41:18
2014-08-09T17:55:03
Python
UTF-8
Python
false
false
2,519
py
""" __fixJobAccountant.py__ Fixes Report.pkl files when JobAccountant crashes reporting that TaskName does not exist in the FJR. Created on Oct 15, 2014. @author: amaltaro """ import sys, os, subprocess import threading import logging import time from pprint import pprint from optparse import OptionParser try: f...
[ "alan.malta@cern.ch" ]
alan.malta@cern.ch
e34efb2f69885545cb196dd08028295eb2dd8f74
9b807920506b6a040a4160c0ad1c5d430ccfa051
/Praktikum/PraktikumModul4/PraktikumGUI.py
e86279459a939d05c0d9c99b31792db218f7b795
[]
no_license
raihaniqbalpasya/19104030_Raihan_PermogramanGUI
6d34318f2996b400d6a0eead978b3e561cc0f101
56595ea6a45551be9160338372505ecfea0dc371
refs/heads/main
2023-08-25T02:58:38.240550
2021-10-16T15:58:52
2021-10-16T15:58:52
357,081,001
0
1
null
2021-10-16T15:58:53
2021-04-12T06:23:09
Python
UTF-8
Python
false
false
2,198
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Praktikum GUI.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 imp...
[ "noreply@github.com" ]
raihaniqbalpasya.noreply@github.com
2b231cb9f9367c5766f23ddf11ce88e499e8e2d3
d5b7b9af176e6fd876c8d5733c12b91235f06d52
/common_tools.py
0b2c11768ecacc60e665c3eeb1343befbf1a1712
[]
no_license
zcrwind/AUFS_ZSL
fb73d307bd2df06a8ea3dbc3d2bad9ccb9a11108
1bbd137fdfdfed3f22cfced3e82ce4d54582157b
refs/heads/master
2020-12-27T03:02:39.939993
2020-02-22T07:17:44
2020-02-22T07:17:44
237,742,362
2
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
# -*- coding: utf-8 -*- import numpy as np import torch import torch.nn.init as init def print_args(args): print('-' * 50) for arg, content in args.__dict__.items(): print("{}: {}".format(arg, content)) print('-' * 50) def weights_init(m): classname = m.__class__.__name__ if 'Linear' in ...
[ "“chenrui.zhang@pku.edu.cn" ]
“chenrui.zhang@pku.edu.cn
37e1eee4e4fa451c4a6ac46503cd57f10cb451c1
4372db190a7ac83942998eda7bc767c26de4ff23
/faster-rcnn.pytorch/lib/build/lib.linux-x86_64-3.6/datasets/factory.py
4ad0eb79fae998dd01bc30478c14f875c3ed8bc7
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
zhangyanyu0722/Carla_3D_Tracking
8321deb574f71ef63f7b97f7d139a19e9fa26c76
72673713bb798023e82ccc257e8c05459c34a4b9
refs/heads/main
2023-01-24T19:50:14.847136
2020-12-05T20:13:43
2020-12-05T20:13:43
301,830,367
4
1
null
null
null
null
UTF-8
Python
false
false
3,552
py
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Factory method for easily getting imdbs by name.""" from __future__ ...
[ "noreply@github.com" ]
zhangyanyu0722.noreply@github.com
f1a9d3a80e913e79ebefb3bb97b8d73847274d9b
109071bedd5c78afdfeacfa7b3976e0849acd6a4
/function2vec2.py
dae099857b80d58f1975f4301141b1f2ffa272dc
[]
no_license
Woffee/dlvp
aa2a3271e3ca66316f9194a3b703b223398ca116
c031c42f25cf80c8df8da9b2405b6525b56912ed
refs/heads/master
2023-07-08T21:26:39.223475
2021-08-14T20:53:19
2021-08-14T20:53:19
372,368,219
0
0
null
null
null
null
UTF-8
Python
false
false
19,250
py
""" Functions 2 vectors. The functions are generated by Scitools Understand. @Time : 7/18/21 @Author : Wenbo """ import pandas as pd import argparse import json import os import tempfile import subprocess import time import logging import hashlib import preprocess_code import longpath from pathlib import Path B...
[ "iwoffee@gmail.com" ]
iwoffee@gmail.com
f1165503372a4e749c7fe0702f75e3d609d4c87b
3a26e45eced38e1a264ac01f5ee6c91aad40345d
/backend/model.py
f6794fb8c66a3d226a85ea2acbd20b362d31fc6a
[]
no_license
Johnxjp/sudoku_draw
b425376bfd658fe4a21016eacf5b1fbd81c2bdeb
483542bd51470c762a74266c4303ec89e98b82d9
refs/heads/master
2022-04-08T20:43:12.913061
2020-02-07T17:10:21
2020-02-07T17:10:21
237,917,210
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
import torch.nn as nn import torch.nn.functional as F class MNIST_CNN(nn.Module): def __init__(self): super().__init__() self.img_h = 28 self.img_w = 28 self.out_channels = 32 self.conv1 = nn.Conv2d(1, self.out_channels, 3) self.pool1 = nn.MaxPool2d(2, 2) se...
[ "lingijohn23@gmail.com" ]
lingijohn23@gmail.com
86536deb1e9adc5337b8f85e1c47f7477eece646
fd0778b19a58ff77b8511bef3131720ece115e7d
/cleanup.py
37e7d80448d23cf53f10dc86d228b7d1c2c4f457
[]
no_license
MakeSchool-17/twitter-bot-python-gordoneliel
05ee6cae30ebc362da4026afb6ad04d4336302d5
e71c401a4e07e0e6bb1165c7bf5b1d99cdc5e276
refs/heads/master
2021-01-10T17:03:51.143986
2015-11-10T03:32:38
2015-11-10T03:32:38
43,092,937
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
''' cleanup.py Module for cleaning up a source text fromt the web '''
[ "gordoneliel@gmail.com" ]
gordoneliel@gmail.com
38059ca498d3f9141b84156a522fd5bca676ddfa
0afc72deeb8928e6d488a1c3cb762ed0c4bd73fc
/scripts/02.transform/02.encode.py
da3e9cc96bd537a4a9ab5f8a61a53ebb8d4cb6cf
[]
no_license
Asky-M/dscnf-06
cb5cd4a402938bcc53723dbc7bbf4e95b548c0f0
cbe021d568c94b14929759e905592a11cefc7626
refs/heads/master
2023-03-27T03:28:05.390087
2021-04-03T06:30:51
2021-04-03T06:30:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# encode/decode base64 with codecs import codecs s = b"Satria Ady Pradana" t = codecs.encode(s, "base64") print(t) u = codecs.decode(t, "base64") print(u) # encode/decode base64 with base64 import base64 s = b"Satria Ady Pradana" t = base64.b64encode(s) print(t) u = base64.b64decode(t) print(u) # encode/decode...
[ "me@xathrya.id" ]
me@xathrya.id
90c0e47be33b46ea4a6bbb50a30265b352d84775
e621f5f49b77ff8824039464d684d8b5f8476152
/Code/Backend/OpenCV/face.py
7bbe2dd45646c96ea216486459beaeb34b69489f
[]
no_license
moktadirkhan/CSE499-Spring21-Project
bbc95b9b20a474ed86bde9998ee50506e5f326a9
a4daa37308cecbddf6bbb2d980e5c63db36a19c1
refs/heads/main
2023-07-12T21:43:16.301130
2021-08-26T08:59:17
2021-08-26T08:59:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,936
py
import numpy as np import cv2 as cv import pickle from datetime import datetime face_cascade = cv.CascadeClassifier('D:\\Django\\OpenCV\\Cascades\\data\\haarcascade_frontalface_alt2.xml') recognizer = cv.face.LBPHFaceRecognizer_create() recognizer.read("trainner.yml") def markAttendance(name): with open('attendanc...
[ "moktadir@algomatrix.co" ]
moktadir@algomatrix.co
df9b64e6d3a54ef70c3d1c8dfbb4fa7f779cb0be
cc06f6d886adafb4777b9f3791ef40097cc4faf3
/adminuser/models.py
4a4801053b75aa547270c9b07d872e7f903c7562
[]
no_license
nomitv/udaan-test
80b66e998c89938e645711538faf491d7a6ae05a
816ce5aa9890939ba0974aed01925f3c7e2bdfbf
refs/heads/main
2023-06-24T14:14:26.439957
2021-07-11T11:33:47
2021-07-11T11:33:47
384,872,595
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
from django.db import models # Create your models here. class AdminUser(models.Model): name = models.CharField(max_length=255) phone = models.CharField(max_length=15) pincode = models.CharField(max_length=6)
[ "37868827+nomitv@users.noreply.github.com" ]
37868827+nomitv@users.noreply.github.com
72abe96e55888b2f816aee1fbf0a969dc95b4989
ba602dc67ad7bb50133aeb312f3c6c54627b3dec
/data/3919/AC_py/508160.py
e46139c365eab6e0455d028613d93c2cc248b297
[]
no_license
Dearyyyyy/TCG
0d21d89275906157372d775f33309ce337e6bc95
7b80de16de2d3f5d95a7c4ed95d45a9e38882e67
refs/heads/master
2020-12-27T23:19:44.845918
2020-02-04T01:59:23
2020-02-04T01:59:23
238,101,032
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# coding=utf-8 import sys while True: a,b,c=map(int,input().split()) if(a+b>c and a+c>b and b+c>a): if a==b and b==c: print("DB") else: if a==b or b==c: print('DY') else: if b*b+c*c==a*a or a*a+c*c==b*b or a*a+b*b==c*c: ...
[ "543271544@qq.com" ]
543271544@qq.com
dade48e1ed146077252f6aa02953c7b1e9d9ee13
63d9d4101f3c63f3d86d50c39c2fd0087e8368cd
/lianjia_ershoufnag/district.py
c43be38892ed14f7bd579c01ad923c0800bad74e
[]
no_license
weiropan/Python_spider_coding
c820e7a8e2ab19a986cf26d40095624373bc1914
f21dac0435ed1addf40a1d8cd3b169b95d7c5636
refs/heads/master
2020-03-31T15:40:32.861255
2018-11-04T09:07:08
2018-11-04T09:07:08
152,346,358
4
1
null
null
null
null
UTF-8
Python
false
false
1,274
py
# -*- coding: utf-8 -*- """ Created on Wed Sep 5 20:06:23 2018 @author: weiro """ from lxml import etree import citys def get_city_url(url): '''根据输入的城市名查得该城市网址''' citys_url = citys.anly_citys_url(url) city_name = input("请输入您想查询的城市:") city_url = citys_url.get(city_name) print(city_name, city_url)...
[ "weirongpan@outlook.com" ]
weirongpan@outlook.com
e3c6b66cc35e29ae5017db91041accc814070b1e
dab8655edb5d1bc5a8cb9895f049b516ad73a23f
/ClassAndMethods.py
6c41bb1be56600283f549e5af165dd8935456df7
[]
no_license
arjungprs/pythonlearning
52a385f9ef5db54b59842a8ca58366176874bdcd
c70f01cbd4ecd305d7399bdaf11e1c7df2bf0382
refs/heads/master
2020-03-09T20:14:46.615675
2018-04-11T01:30:46
2018-04-11T01:30:46
128,979,434
0
0
null
null
null
null
UTF-8
Python
false
false
779
py
students = [] class Student: school_name = "Springfield Elementary" def __init__(self,name,student_id=121): self.name = name self.student_id = student_id # student = {"name": name, "student_id" : student_id} students.append(self) def __str__(self): return "Studdent" ...
[ "ar.ar@com" ]
ar.ar@com
1d02bf3cd55532e014713817af8ee6a118c59f9a
3ab08e0758f9e4da3f078327395d8f733686d90c
/pytorch-maml-rl/maml-rl-env/bin/easy_install
c203ca1891c386af51a109d6cdd43f59de1af362
[ "MIT" ]
permissive
benkha/deep_rl_maml
1a6a8ad61b4a26bea3de38fd6518680145a6f2cb
f9c49df6ff55ddfb27abf3fee997e8d956b8d741
refs/heads/master
2020-04-06T13:27:06.210089
2018-11-18T01:17:58
2018-11-18T01:17:58
157,500,727
0
1
null
null
null
null
UTF-8
Python
false
false
272
#!/Users/Research/pytorch-maml-rl/maml-rl-env/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ennsharma@berkeley.edu" ]
ennsharma@berkeley.edu
2ff7ad057b524be260d7ec4e86557e3aca3f6173
09dda5862259a76c850f9cfc9fa21e2c83a806ea
/app/__init__.py
e81a1e451af28fe195e5f9d51c12c371da0d40b5
[]
no_license
RashikShahjahan/Control-Toolbox
44e33f602fdb692178db7caed5864c2414a3d27a
e421a50e9f0755a6e688e4815e68b80079907680
refs/heads/master
2022-07-12T19:08:28.649855
2020-11-05T05:13:39
2020-11-05T05:13:39
254,261,429
0
0
null
2022-06-22T02:56:09
2020-04-09T03:25:17
Python
UTF-8
Python
false
false
241
py
# -*- coding: utf-8 -*- """ Created on Mon Apr 6 15:52:00 2020 @author: rashi """ from flask import Flask from config import Config app = Flask(__name__) app.config.from_object(Config) app.config["DEBUG"] = True from app import routes
[ "rashikshahjahan@protonmail.com" ]
rashikshahjahan@protonmail.com
095e09b9d540748e279077922e0350cb923a5e0e
f89c9dc3926a9bbb86bac530d3ecd96b65b78152
/ex2.py
3eeecfa66eb5cbda95a244bff276d59ce77d9272
[]
no_license
elitsuri/EX2EliyhoTsuri-MachineLearning
b33d4c996a0f240b5b1cbd451249c4168bda11a1
c19c2075f5baae9dafd3825bb419c49f621e1356
refs/heads/master
2023-07-09T15:51:39.990082
2021-08-03T14:49:44
2021-08-03T14:49:44
392,351,672
0
0
null
null
null
null
UTF-8
Python
false
false
9,903
py
import numpy from sklearn import datasets from sklearn.model_selection import cross_val_predict import matplotlib.pyplot as plt from sklearn import datasets, svm, metrics from sklearn import linear_model from sklearn import preprocessing from mpl_toolkits.mplot3d import Axes3D import array as arr # -----------------...
[ "zelitesuri@gmail.com" ]
zelitesuri@gmail.com
860dd9f86a28532a563d0339d919bdca8685f06e
c70883df912c252031e0e70faea6e528d873324d
/DT24.py
ae11724e7c84fd22c9010bebcc31afc54f321fb0
[]
no_license
DipeshBuffon/python_assignment
5ebb869f47dc58c1a269f14f281d107925353323
a225bcce257fa50ecdbe7d8a2e36578577a9281c
refs/heads/master
2022-11-10T07:59:15.372528
2020-06-28T12:23:52
2020-06-28T12:23:52
275,578,807
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
#Write a Python program to clone or copy a list. list1=['Dipesh',10,"Pokhara","Ktm",7] list2=list1.copy() print(list2)
[ "noreply@github.com" ]
DipeshBuffon.noreply@github.com
a621ea6583493a3ba9c5c5cb0c4cede434987aa6
461b481e09d142e487199857188d6868d6cedf17
/nrv/new_dash.py
4b86983a33113ad08cc8c6fea0df5e8cffaeb02c
[]
no_license
giorgostsilivis/microservices_cvs
d5703ebedd5ced8405b48f5548d0e66dc30b3545
0104e8d78c0a01d6432dac88301ef6d2e77b8dbc
refs/heads/main
2023-06-10T17:24:24.720401
2021-07-06T22:14:28
2021-07-06T22:14:28
378,599,776
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
import requests message = requests.get('http://localhost:3000') print(message.index)
[ "tsilivisgeo@gmail.com" ]
tsilivisgeo@gmail.com
bc6beb319e98e7dd3cf482c062f4ddbe5511abb3
254eeebbe97996eb9f777669e893544197baef05
/kmeans-process.py
4b402130cd99e63a1f2361485f4828f53185b081
[]
no_license
nayan-paul/spark.examples.project
ad08af8b1b07393244430f8a81a2e24256921ee1
8cd3f664b93b6f707b83f6c8eac17576b078ab85
refs/heads/master
2020-12-24T12:13:16.551159
2016-11-08T16:30:06
2016-11-08T16:30:06
73,065,600
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
import traceback import numpy as np from pyspark import SparkContext from pyspark.mllib.clustering import KMeans #spark-submit --master local kmeans-process.py #spark-submit --master yarn-cluster kmeans-process.py #######################################################################################################...
[ "nayan.j.paul@gmail.com" ]
nayan.j.paul@gmail.com
ef4cee0358b0d3288bd58b719411d43109da4105
34e550cf37833a5ef440758a295074299a1d169a
/alphabets.py
fde292dd09c5897df1c14996a5f09157610feb58
[]
no_license
Vladkas888/BOT_Encrypt-Decrypt
986c6f68755204fc0fcbe3a39f1ff1e6879a1e6c
22dae8d9f029e53578e4257b34ccf763d29a548e
refs/heads/main
2023-04-08T09:49:00.943155
2021-04-25T06:58:26
2021-04-25T06:58:26
361,358,171
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
alphabetrus = ['а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ъ', 'ы', 'ь', 'э', 'ю', 'я'] alphabeteng = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x...
[ "vovkasyanov888@gmail.com" ]
vovkasyanov888@gmail.com
ca6c12b375806ebb7dad3c5ec0d86232dea9bc7f
40d90ca378dac8d8442c4f6a17f24078c974d394
/Chap_4-7/buffet.py
557308562342620e0361b9c9310f5c30f909969e
[]
no_license
adamthurtell/crash_course_python
3465b39ccfff5f3c30180b80aeae9f77ee9db77c
b79482fb0d274913d19bc1cae85262e854940b18
refs/heads/master
2021-01-23T03:48:44.335773
2017-04-11T12:30:40
2017-04-11T12:30:40
86,127,639
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
# p. 71 foods = ('hoagies', 'grinders', 'navy beans', 'meatloaf sandwich', 'sloppy joes') for food in foods: print(food) print("\n") foods = ('macaroni & cheese', 'garlic bread', 'navy beans', 'meatloaf sandwich', 'sloppy joes') for food in foods: print(food)
[ "adamthurtell@gmail.com" ]
adamthurtell@gmail.com
b528bfb1f19e47d8bd43f86d689eaa069c15b2e7
ac34cad5e20b8f46c0b0aa67df829f55ed90dcb6
/src/assets/ba_data/python/baclassic/_store.py
8caf49500330f885ef7fe97f84c4efa66d039832
[ "MIT" ]
permissive
sudo-logic/ballistica
fd3bf54a043717f874b71f4b2ccd551d61c65008
9aa73cd20941655e96b0e626017a7395ccb40062
refs/heads/master
2023-07-26T19:52:06.113981
2023-07-12T21:32:56
2023-07-12T21:37:46
262,056,617
0
0
null
null
null
null
UTF-8
Python
false
false
23,317
py
# Released under the MIT License. See LICENSE for details. # """Store related functionality for classic mode.""" from __future__ import annotations import logging from typing import TYPE_CHECKING import babase import bascenev1 if TYPE_CHECKING: from typing import Any class StoreSubsystem: """Wrangles clas...
[ "ericfroemling@gmail.com" ]
ericfroemling@gmail.com
be55ecd39c7da4b3bf7187af36a296340218d62b
901081598af761be3539f6cbe1ec003ab42a54fc
/google_cloud.py
bb813b036fa6421fd57f640c94fc9b8241118c26
[]
no_license
Narukodo/speechrecognition_test
c810f8a12804c8c3961fec2e9fc1f28eb1b788df
26f9c86091bd4fac22c5e608ff6f514d6313a8b3
refs/heads/master
2021-04-08T17:24:05.638849
2020-05-22T00:02:14
2020-05-22T00:02:14
248,794,208
0
0
null
2020-05-22T00:02:15
2020-03-20T15:50:21
Python
UTF-8
Python
false
false
1,298
py
from google.api_core.exceptions import GoogleAPICallError from google.cloud import speech_v1 from google.cloud.speech_v1 import enums import speech_recognition as sr import os r = sr.Recognizer() os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = './google-cloud-credentials.json' # completely disregarding uploading a f...
[ "mrnarukodo@gmail.com" ]
mrnarukodo@gmail.com
b963c51132ab882ce13274a44a7edfca1693899d
db145b61a930b303dc68524849253d712b8af29a
/collateral.py
89137bf6b38fc3b2e096d03176a5daf582039616
[]
no_license
Normsome/noms_coh_calculator
62ae3f7da408067ed35a221f22cd9bba6bd414af
9543c6b36cd95b1793d78c7f51cb0a7db45874ae
refs/heads/master
2022-12-21T06:38:24.337384
2020-09-19T02:47:00
2020-09-19T02:47:00
296,771,160
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
from coh_chain.globals import init_globals from coh_chain.powersets import stalker_elec_shield from coh_chain.attack_chain import AttackChain if __name__ == "__main__": init_globals( mob_count=1, damage_modifier=1.0, base_end_recovery=100.0, base_end_drain=0.52, to...
[ "norm@DESKTOP-TINRC94.localdomain" ]
norm@DESKTOP-TINRC94.localdomain
8979a3f0f4e222c2f67089aad5cbdfe4ce15d7a2
a8dae8f7886ed65ddb401d1c3ac9c7afb6a5daca
/examples/python/pendulum.py
03b6e57f9abc5815250c7c995ec1b53a77afe3a9
[ "MIT" ]
permissive
smkyle90/skydy
833caefcbf8535823b347c7cbab8c0d66e188a00
c7c24e821b1bd2a2591adfd3bbb35cd98599a07a
refs/heads/main
2023-06-16T06:14:46.924351
2021-07-04T15:06:56
2021-07-04T15:06:56
376,147,720
1
0
MIT
2021-07-04T15:02:41
2021-06-11T21:39:27
Python
UTF-8
Python
false
false
1,100
py
#!/usr/bin/python3 from skydy.connectors import DOF, Connection, Joint from skydy.multibody import MultiBody from skydy.rigidbody import Body, BodyCoordinate, BodyTorque, Ground, GroundCoordinate l_pen = 2 w_pen = 0 h_pen = 0 pen_name = "1" # Define the body b_pen = Body(pen_name) # Instantiate the pen's dimension...
[ "scott.m.kyle@gmail.com" ]
scott.m.kyle@gmail.com
8cba0007402b607bc1aaacc14aa0d59e280c678c
c2622bc8b8e856bfd9458380bf4db5b0c8a65b55
/Understanding_and_Creating_Binary_Classification_NNs/util/paramInitializer.py
f57d1f26d0905de0183cba38507cfaf63662e07a
[ "MIT" ]
permissive
sampathrajapaksha/NothingButNumPy
58f252f55eed6f912c3b964a7fcb0ee554f50702
5cc32a517684c7e68cce44412f7d7c759ecb299e
refs/heads/master
2023-03-18T00:10:28.783322
2020-12-08T17:52:02
2020-12-08T17:52:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,251
py
import numpy as np def initialize_parameters(n_in, n_out, ini_type='plain'): """ Helper function to initialize some form of random weights and Zero biases Args: n_in: size of input layer n_out: size of output/number of neurons ini_type: set initialization type for weights ...
[ "rafayak16@gmail.com" ]
rafayak16@gmail.com
545190750e0f798776770b7a707528433112d478
f4c8291744cf8640d0b169ee62b82f2909945103
/tasks.py
9544785f050be2f2695addb7978f0a2d3e185f0f
[]
no_license
raimon49/raimon49.github.io
4dfc64a6c50efd00f2d9faa2ec5cab10114f1da1
50e8efff0b55dd12d5c61bd638092c46eed87426
refs/heads/source
2023-08-02T19:28:23.874029
2023-07-20T15:17:46
2023-07-20T15:17:46
26,396,939
2
1
null
2023-07-20T15:18:05
2014-11-09T13:48:27
Python
UTF-8
Python
false
false
2,227
py
# -*- coding: utf-8 -*- import os import shutil import sys import datetime from invoke import task from invoke.util import cd from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer CONFIG = { # Local path configuration (can be absolute or relative to tasks.py) 'deploy_path': 'output', # G...
[ "raimon49@hotmail.com" ]
raimon49@hotmail.com
93a22282cda616f83a604f6a000e6c295705eb3d
c0f364a3607153fbdaf2addef6c6dda09b8a730d
/legacy files/logisothermgenerator.py
58253e27c9529ea033423102580579de3767ef47
[]
no_license
jrhmanning/Music_python
ac9496f736048333f81b2b97165d5e815179419f
158d36f733c0f588136001331e2c2de47deb90af
refs/heads/master
2020-07-01T05:49:27.464393
2019-11-28T11:08:24
2019-11-28T11:08:24
201,065,821
0
0
null
null
null
null
UTF-8
Python
false
false
6,108
py
#Hi there! I'm a python script who's job it is to automatically generate isotherms for your Music simulations #I eat Antoine equation parameters (hardcoded in), sorbent chemical names, temperatures in Kelvin, and desired number of isotherm points #Using these, I determine the saturation pressure of the chemical Species...
[ "noreply@github.com" ]
jrhmanning.noreply@github.com
d33c3d0bc0f509999dd2ca1132e50bf6291c76f8
4ebdc7053d9341ce7ad45f1e859ff86ef1455177
/52_global.py
e2b5ca2d678a6f222101e9a4cc221547301aa89d
[]
no_license
daikiante/python
1f4d55e1fd04eef22702b364148b8e1a2beea2d3
9d604b8dcd9e3cbe8b4db24ef16c5c969f6f894f
refs/heads/master
2020-09-17T00:14:24.034179
2019-12-02T09:03:25
2019-12-02T09:03:25
223,928,994
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
# global ''' def関数の中(local)ではglobal変数は使えない。 global変数を使う場合はlocalの中でglobal変数宣言をして使う。 ''' name = 'lohit' age = 20 def person(): global age print('my age is',age) per = 'lohit badiger' print('my name is',per) person() print('global name are',name) print('global age is',age) # Exsample num1 = 1...
[ "daikiante@gmail.com" ]
daikiante@gmail.com
7253306f66c2fc15c0af49a52781a29628b0bb9f
8e216c3e3d4e9887d02311c82b2a7a747f0e093a
/py/2021/day2/part1.py
825d389c41042c1478b9386840563369ceb74fff
[]
no_license
Antetokounpo/Advent-of-Code
9f07f09a6c08f69db4a8dc3559e354549e4aa215
607d5754cdf27f52858214563dccbc23f8f1b5a9
refs/heads/master
2023-07-21T19:30:15.845750
2023-07-10T01:32:11
2023-07-10T01:32:11
224,746,966
2
0
null
null
null
null
UTF-8
Python
false
false
307
py
from AOC import read_input inp = read_input() inp = inp.splitlines() horizontal = 0 vertical = 0 for i in inp: d, j = i.split() j = int(j) if d == "forward": horizontal += j if d == "down": vertical += j if d == "up": vertical -= j print(vertical*horizontal)
[ "antor.232@outlook.com" ]
antor.232@outlook.com
752fa07c2f1d3efcd0ad719baeee8923f78aacde
3ff803aab74129a0e1daae7beda2ce0b66a31a71
/baseNLP.py
76eff8cbc5b13c989232f99460b97df2cfd61400
[]
no_license
dataScientist11/Machine_Learning_base_NLP
6e51ee06636c77232122733d3f10ec2a8bb77226
216d5f5c9ef0a065efc6dfde8c17a4e0958365d3
refs/heads/master
2020-04-06T07:53:10.649866
2018-11-16T20:05:09
2018-11-16T20:05:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,968
py
import dask.dataframe as dd #pip install dask[complete] toolz cloudpickle import pandas as pd import matplotlib.pyplot as plt import numpy as np from scipy.stats import norm from sklearn.preprocessing import StandardScaler from scipy import stats import warnings warnings.filterwarnings('ignore') import seabor...
[ "jobin@superiordatascience.com" ]
jobin@superiordatascience.com
988e4a4ea56c347a5b6641d6283315ce241c7248
884a128552b5f7e698194de22e4a8b4fd43e5db6
/setup.py
f89439a6f5392e8b10d0a0504621730a8a2d2e6d
[ "Apache-2.0" ]
permissive
naivenlp/naivenlp-legacy
b3057bdeb54bc54b1df3de8fd3eb5a1af909690b
dbe0d6ac3b422618fe41a763c256077b27f75347
refs/heads/master
2022-11-25T11:48:18.411506
2020-07-22T08:01:25
2020-07-22T08:01:25
269,890,191
1
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
import os import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="naivenlp", version="0.0.9", description="NLP toolkit, including tokenization, sequence tagging, etc.", long_description=long_description, long_description_content_type="text/mar...
[ "zhouyang.luo@gmail.com" ]
zhouyang.luo@gmail.com
973a61a26ac84e4e05090648b90766dfa8c7258a
316f78656f3f574a71c6edbb85c60ec2b1f9324a
/DjangoDataSet/asgi.py
5fad87e1a2f7099cf790b19e1cfe64bfd9078b40
[]
no_license
DominiDeliya/DjangoDataSet
bd993317fffa34b846794d27e781470cc1a539e8
608abcbf6f0f458c364cb3be6f1fbf11fec8e1e7
refs/heads/master
2023-04-21T03:48:55.813873
2021-05-12T10:28:53
2021-05-12T10:28:53
366,677,440
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" ASGI config for DjangoDataSet project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
[ "dominideliyak@gmail.com" ]
dominideliyak@gmail.com
0178d443f876ef3dd5a2ff3c7f29a1cf4ca8e581
477a730f9c1203569cfcbdfaa5063634bd2c0b59
/models/PropertyAction.py
e08a7b7d6fc07b5c0cb7a761685707157cab9958
[]
no_license
gkamtzir/HouseApi
b9882ef96cf952ba6cf0faf9fdc199f9ddc26965
968945e332aa91c6dc769f8229c18ec79b5267cf
refs/heads/master
2023-05-12T13:29:20.081413
2019-10-28T13:41:38
2019-10-28T13:41:38
162,980,737
0
0
null
2023-05-01T20:31:43
2018-12-24T10:49:02
Python
UTF-8
Python
false
false
1,103
py
from marshmallow import fields from flask_marshmallow import Marshmallow from marshmallow_enum import EnumField from common.Enumerations import PropertyActionEnum from models.Shared import db ma = Marshmallow() class PropertyAction(db.Model): __tablename__ = "property_action" property_id = db.Column(db.Integ...
[ "georgekam96@gmail.com" ]
georgekam96@gmail.com
dd481a8700e475bd2c82b82241d3ad689f39f95f
56b60cb4e3dfa065839ce0dce5a50e163a4f9f3a
/api_part/__init__.py
fe26d15ead612aa115e93e6bb3c25e8b71983fcf
[]
no_license
Humbertzhang/DocTrans
8acdd6634361130cb4f0d960baabd2a28de07332
242c0efbdbb660325df0de33910449566148bdb5
refs/heads/master
2021-01-20T05:13:58.521265
2017-08-31T08:07:11
2017-08-31T08:07:11
101,422,930
3
0
null
null
null
null
UTF-8
Python
false
false
70
py
from ._init_ import __init__content from .static import static_content
[ "504490160@qq.com" ]
504490160@qq.com
abca53737516877bf7175d46be87cc30a14f50a4
9f237149a8a832a7a895cc2272e16b5a42f9910c
/doculabs/samon/environment.py
20c3a873dac3c8c7ba39f33730c7b9abce314d5f
[ "MIT" ]
permissive
doculabs/samon
f629b60e70f17303370b0b5fb106e398d55755b8
5211b136a6a9c12272a517b1845fc753a5ab86b7
refs/heads/master
2022-12-16T11:03:17.332426
2020-09-20T04:17:16
2020-09-20T04:17:16
274,360,584
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
from copy import copy from doculabs.samon import registry from doculabs.samon.loaders import BaseLoader from doculabs.samon.parser import DefaultParser from doculabs.samon.template import Template class Environment: DEFAULT_TEMPLATE_CLASS = Template def __init__(self, loader: BaseLoader): self.loade...
[ "lovas.bence@drescher.hu" ]
lovas.bence@drescher.hu
96709882180daa80d03a5e458f4929c0688d6049
df24ca71b094021c1e2daf9090b5a397cb001083
/CuiBono/wsgi.py
45477762b4698ba53abd5b8618ff1aa15a235c0f
[]
no_license
evanmosseri/CuiBono
ab1e41eed002b8d292633c242118a890c6f5fa1b
c0842094dff4912069f1fd398f1ee41ab6773013
refs/heads/master
2021-06-05T15:05:51.973805
2016-07-12T23:15:36
2016-07-12T23:15:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
from tempMain import app if __name__ == "__main__": app.run()
[ "evan.mosseri@gmail.com" ]
evan.mosseri@gmail.com
8353cc7bb8452e9ef9ae1467ef3f8ec6c9d9f34e
2a24dba82767419cf7d2269875bf0a297f41580c
/vispy/app/backends/_pyside.py
00949a4951a577f056a9c62b2874f44b3055f725
[ "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
shjoshi/vispy
58b300d23486b7478b786977b3548dd7225de847
2f3d169aa60c738467e766c59096f51570483d6f
refs/heads/master
2020-12-25T12:40:36.545768
2014-08-06T22:59:35
2014-08-06T22:59:35
22,704,584
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ PySide proxy backend for the qt backend. """ import sys from .. import backends try: # Try importing from PySide import QtGui, QtCore, QtOpenGL # noqa except E...
[ "almar.klein@gmail.com" ]
almar.klein@gmail.com
8f35d4c41507b90aebbd6bbc8468424fbc44fcd5
93c2418ddae134adea9460d163da50553d511672
/dl_project/preprocessingfunctions.py
f82fea60bb65a10830a83a48b57525e308328b8f
[]
no_license
kawu/deep_learning_project
18e585190bccb65a862c93e6ed46cf4c61f6f136
4399343a45cc59a96b04c142932e7eb57d5a4183
refs/heads/master
2023-03-18T11:30:58.008477
2021-02-24T14:08:02
2021-02-24T14:08:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,179
py
from PIL import Image from PIL import ImageOps import cv2 as cv2 import numpy as np import scipy.ndimage as ndi from scipy.ndimage import center_of_mass import matplotlib.image as mpimg ########################################################### # erste Variante des Pre-Processings ###################################...
[ "larissa0898mx.de" ]
larissa0898mx.de
681146d519c96ab21ee41989174fb88f8eb0d875
fc7a28107c2b3697917c348252ee987509c3270e
/backend/python/api/ble_frankenware_test.py
27cf34bc4a9845d0af8a89763e754a29fe8dadd7
[ "MIT" ]
permissive
fridgeresearch/kitchen
790ad2dade5b0cd9fd0f4214409e1ee6a570042c
0bbe864e6418da3bda5b55ceb292763406d149ea
refs/heads/master
2021-01-20T20:24:35.139232
2016-06-25T21:47:24
2016-06-25T21:47:24
61,166,640
0
0
null
null
null
null
UTF-8
Python
false
false
6,180
py
""" The MIT License (MIT) Copyright (c) 2016 Jake Lussier (Stanford University) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
[ "jake.t.lussier@gmail.com" ]
jake.t.lussier@gmail.com
c106337e8afaead4c564ade27ada1238a357d26a
72dc728b3d2bbcc0bf37db7a6cdb7dbfb1717b0a
/rpicenter/commands/basic.py
09f92944cc1a8581a7f918d970ce4f450754d116
[ "MIT" ]
permissive
flipsee/rpicenter
3a6766510caf04c3d86c4e065b555897a569029b
f73908da96eb0de9d73dfd5e431f1b9ee1e91c0c
refs/heads/master
2021-01-09T07:03:36.774670
2016-12-16T02:28:20
2016-12-16T02:28:20
65,887,126
0
0
null
2016-08-17T07:46:28
2016-08-17T07:46:27
null
UTF-8
Python
false
false
1,583
py
import logging from commands import commands from devices import devices from rpicenterModel import * import rpicenter logger = logging.getLogger("rpicenter.commands.basic") @commands.register def list_devices(msg=None): """ list Devices in RPiCenter""" #if msg is not None: print("Msg: " + str(msg)) #for ...
[ "kn1ght7id@yahoo.com" ]
kn1ght7id@yahoo.com
030eb6da27cae4ea65d35f762fb79921dd2c1fb7
a3fcbcb1360669df5c2fe5d5286950296bafb04b
/ecomapp/migrations/0008_broadcast_email.py
addc6b39e1f037e77db966e940ddd3123110e613
[]
no_license
Emadfaried-div/new-ecommerce
f5a4165d4a8d7f7215735e86e9617012aa3f04fb
48842649c82291e2fb7c584b71294202d263962d
refs/heads/master
2023-05-15T08:50:30.184259
2021-06-11T15:49:59
2021-06-11T15:49:59
355,204,543
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
# Generated by Django 3.2 on 2021-05-17 21:34 import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ecomapp', '0007_faq'), ] operations = [ migrations.CreateModel( name='BroadCast_Email', fields=...
[ "78530477+Emadfaried-div@users.noreply.github.com" ]
78530477+Emadfaried-div@users.noreply.github.com
d458b27375d8eadb606441a04abcd9b20947e15f
a832ad52a2ee31006d615ad44d038557a3c13ebf
/Controllers/MenuController.py
125956f1a638e9a63e7ce98de01e3d78aa28fa2a
[]
no_license
GRTerpstra/Embedded-Systems
549769e940adca17831c0ce0b7933f247b053fa5
adfccbbe9578f9d4bb4dec75a25328eaed42f85e
refs/heads/master
2020-08-13T12:12:29.555010
2019-11-18T13:38:54
2019-11-18T13:38:54
214,966,421
0
1
null
null
null
null
UTF-8
Python
false
false
153
py
class MenuController: def __init__(self, mainModel, menuModel): self.mainModel = mainModel self.menuModel = menuModel return
[ "a.j.witwerts@st.hanze.nl" ]
a.j.witwerts@st.hanze.nl
737ec987dfe8f44ec60ce95839fb21130c803793
2a1a175efc9c482db0e6d96569f92b9583990acc
/eventex/subscriptions/tests/test_view_new.py
351daeb6ab3b8abda88f2861141510e7c1378d8c
[]
no_license
mazulo/wttd_eventex
2e97e3724f2b8396b8cc73175d15defd09b4a86b
691008562d2143cc57c8b4bb5042aa2c1fdc6602
refs/heads/master
2021-01-10T07:29:20.343157
2016-03-16T18:21:10
2016-03-16T18:21:10
48,304,195
0
0
null
null
null
null
UTF-8
Python
false
false
3,017
py
from django.core import mail from django.test import TestCase from django.shortcuts import resolve_url as r from eventex.subscriptions.forms import SubscriptionForm from eventex.subscriptions.models import Subscription class SubscriptionsNewGet(TestCase): def setUp(self): self.resp = self.client.get(r('...
[ "pmazulo@gmail.com" ]
pmazulo@gmail.com
44e9934e9e2aafd04f6991d39415b44cee2581f8
d6a1c73104b9f1e3c829d18812e9bf2dd6d535a1
/main/serializers.py
11275c8b893ca85e2aeac26ca856e9989492d972
[]
no_license
koreicnurs/blog_drf
2623eec6c4d41f564bd2754359823b4d56d4221f
8c6660fc92387ef9349753aea61e0e500736802a
refs/heads/master
2022-12-04T13:53:14.184924
2020-08-13T14:35:21
2020-08-13T14:35:21
286,912,496
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
from rest_framework import serializers from main.models import Post, Category class CategorySerializer(serializers.ModelSerializer): class Meta: model = Category fields = '__all__' class PostSerializer(serializers.ModelSerializer): category = CategorySerializer() author = serializers.Em...
[ "koreicnurs@gmail.com" ]
koreicnurs@gmail.com
327bf3ff951ee285a77e0a2dfa30a0a852ac1426
cceb97ce3d74ac17090786bc65f7ed30e37ad929
/server/newfirst/migrations/0005_auto_20201024_0316.py
baaa7f017786874e8c0a9b6e7a9c50db448d3ef2
[]
no_license
Catxiaobai/project
b47310efe498421cde794e289b4e753d843c8e40
76e346f69261433ccd146a3cbfa92b4e3864d916
refs/heads/master
2023-01-08T04:37:59.232492
2020-11-10T12:00:34
2020-11-10T12:00:34
291,014,545
1
4
null
2020-11-09T01:22:11
2020-08-28T10:08:16
Python
UTF-8
Python
false
false
424
py
# Generated by Django 3.1.1 on 2020-10-23 19:16 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('newfirst', '0004_scenes'), ] operations = [ migrations.RemoveField( model_name='item', name='item_date', ), ...
[ "2378960008@qq.com" ]
2378960008@qq.com
a7674052427235928b433b28c816bb74d1b1557b
831a23e731a2e9afcd7469e80cd8145c03ed8ddb
/[OPMan]/Seasonals [TV]/2008-1 - Winter/[a5406] Ookami to Koushinryou/SWBD_NCED1.py
e65fcb7231770e400c8470d02e1327da07e30a1c
[ "MIT" ]
permissive
LightArrowsEXE/Encoding-Projects
d1edf910de8ded679a1874dc7aba7bac7c75c3f5
fc9ea0d15bffa5a53719ad587b5591cbd28812ce
refs/heads/master
2023-04-06T08:11:37.210381
2023-03-28T17:44:19
2023-03-28T17:44:19
167,544,468
77
14
MIT
2022-06-26T14:21:15
2019-01-25T12:31:36
Python
UTF-8
Python
false
false
5,596
py
import os from pathlib import Path from typing import Any, Dict, List, Tuple, Union import vapoursynth as vs from lvsfunc.misc import source from lvsfunc.types import Range from vardautomation import FileInfo, PresetBD, PresetFLAC, VPath from project_module import enc, flt core = vs.core shader_file = 'assets/FSRC...
[ "Lightarrowsreboot@gmail.com" ]
Lightarrowsreboot@gmail.com
91db8116494945ac4447f2c14fec8b83a4d5f470
66d184a2b36ab1db564305ea36be891aaf0e236b
/py/Python_Crash_Course/project2/two_d8.py
52743e7fbb2329663e1615be5f979d1fb0082ff0
[]
no_license
joyDDT/python_code
bef57936a1167fa65e28b6c52ab7857b34dc74a8
3aae56c51660579a4eaaa087ac2459c9bf2f2e23
refs/heads/master
2021-10-30T10:22:21.328633
2019-04-26T04:45:01
2019-04-26T04:45:01
112,004,435
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
import pygal from die import Die #创建两个个D8 die_1 = Die(8) die_2 = Die(8) #投掷色子多次,并将结果储存在一个列表中 results = [ ] for roll_num in range(1000): result = die_1.roll( ) + die_2.roll( ) results.append(result) #结果分析 frequencies = [ ] max_num = die_1.num_sides + die_2.num_sides for value in range(2, max_num+1): frequ...
[ "15894500833@163.com" ]
15894500833@163.com
5bfe3d1f77f682918b308d34e6672e738b9adc16
7b2bd8923a175aa8c1e71fd52447a710aff38949
/archive/book/main.py
53da229f935c7f0a312772d52d1c5a3fdcd8c36a
[]
no_license
thomplth/hash-code-2021
dfa7190af38f4f19e8d62525b544c1712eba2bc2
a2b397fac4df9077d8111f2ee7f76df05579a9b9
refs/heads/main
2023-03-12T04:32:52.032830
2021-03-01T19:08:36
2021-03-01T19:08:36
332,442,534
0
0
null
null
null
null
UTF-8
Python
false
false
2,071
py
""" dataset_format = { "nbook" : int, // number of books "nlib": int, // number of librarys "nday": in // number of day allowed "lib": // list of dict of libraries and books data [ { "index": int //original index of the library "books": list<int>, /...
[ "29663345+thomplth@users.noreply.github.com" ]
29663345+thomplth@users.noreply.github.com
05f3cbf560213a1004237cd81daf92637628f3b9
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/panpanpandas_ultrafinance/ultrafinance-master/deprecated/example/usTradingStrategy.py
ed1e6d309c7080a44956603b6c80661f73986aa1
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
216
py
''' Created on July 17, 2010 @author: ppa ''' from ultrafinance.processChain.processChain import runProcessChain if __name__ == '__main__': configFile1 = 'usTradingStrategy.ini' runProcessChain(configFile1)
[ "659338505@qq.com" ]
659338505@qq.com
4b020a78c06ed68c6022b0436f48c8ddb6233754
763c29a65335a25ce0017a8470a3f2968eadd51e
/apps/users/migrations/0001_initial.py
4ebeb7e0ad7cdf60ff5de832cc794de6d8c606c1
[]
no_license
simon-martineau/portfolio-api
2b58ba0edd67d7905ec479145b8ce02548449d3f
d6eea8a917962d96059946a069eeee0656e7be88
refs/heads/main
2023-03-08T23:00:19.042853
2021-03-02T21:40:43
2021-03-02T21:40:43
342,440,084
0
0
null
null
null
null
UTF-8
Python
false
false
1,649
py
# Generated by Django 3.1.7 on 2021-02-25 03:23 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
[ "simon.martineau.3@ulaval.ca" ]
simon.martineau.3@ulaval.ca
cea465796b8fce53c1a8fcb1e94b6c554c15aa25
84c7873c296c4c06038eaf0ee842987014d791d8
/alumnos/57089-agustin-aguero/clases/clase1/ejercitacion1.py
41270055a67c902edb17b1e12db68d385a211c8e
[]
no_license
agustinaguero97/lab
0c2338456ef367c3a0d066c61f89dfb3b944e271
436e4303ddcd3cba433ac08f14b37a72ec0a7fad
refs/heads/main
2021-11-27T20:20:00.380362
2021-08-19T03:01:31
2021-08-19T03:01:31
348,434,234
0
0
null
2021-03-16T17:24:55
2021-03-16T17:24:54
null
UTF-8
Python
false
false
609
py
""" 1 - realize un programa que lea todos los datos ingresados desde stdin, e invierta el orden de las letras en cada palabra, enviandolo a stdout. Ejemplo de funcionamiento # echo -e "hola mundo \n nos vemos" | ./invierte.py aloh odnum son somev """ #!/usr/bin/python3 import sys while True: stdin_file...
[ "agustin1997aguero@gmail.com" ]
agustin1997aguero@gmail.com
d867b62b99227ba02054237442fe629f1f9f3a34
bf8d984a6bd87dc047d4d0566f505fefd5eb93d5
/acedview/wsgi.py
53f71dc2ac560702ea9e25c54ec33309109d5c30
[]
no_license
abhilasha1996/MyApp
93386f3d8e2e45be25fbfabf1ec7c267569c2a61
7a01c262a7f43a41415c882aca10fd621c93aed4
refs/heads/master
2021-01-19T14:12:58.175049
2017-08-20T20:12:28
2017-08-20T20:12:28
100,885,990
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
""" WSGI config for acedview 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
[ "abhilashasethi1996@gmail.com" ]
abhilashasethi1996@gmail.com
6445f3a26e78e27b3d6a4ab25b04ae736c139d9a
3c6447fb440f8331a83a09064983fad473ab6d68
/src/train_rDL_SiS_Model.py
a8c4da38c618f7cd9866ba0a89747058d0910361
[ "MIT" ]
permissive
qc17-THU/rDL-SIM
7366cfbafe614a3ce402933d5bca98b4387d0c00
8d370cd853c492e9173036cbdb2490e3d5dabcb3
refs/heads/main
2023-03-16T11:31:25.693791
2022-10-08T12:55:24
2022-10-08T12:55:24
541,160,709
21
3
null
null
null
null
UTF-8
Python
false
false
9,224
py
import os import argparse import glob import numpy as np import datetime import tifffile as tiff import tensorflow as tf from models import * from tensorflow.keras import optimizers from utils.utils import ReduceLROnPlateau, prctile_norm from utils.loss import mse_gar # -----------------------------------------------...
[ "noreply@github.com" ]
qc17-THU.noreply@github.com
b113e7e6e71c42480977c18e82a7bf4d3ecbfc8a
2e10314f0a6a32cbfdce6b80c7767b84de421741
/精品真题/精品-one.py
e2135999ef9f92009ca10a79d4df38384cd13fdb
[]
no_license
tang1323/Ing_Interview
06a9cb19c932b2852dd55655b0d46b814ffa9095
a1068d3739d2088a2edcf8314e18659e0e9003f8
refs/heads/master
2023-04-06T14:17:37.757618
2021-04-14T14:14:01
2021-04-14T14:14:01
357,929,558
1
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
# def add_Run(L=None): # if L is None: # L = [] # L.append('Run') # return L # add_Run() # add_Run() # print(add_Run(['Lying'])) # ds = {'av':2, 'vr':4, 'ls':9, 'path':6} # print(ds.popitem(), len(ds)) # with open('D:/Py-Project/Ing_Interview/精品真题/txt/a', 'r') as f: # print(f.read().split(...
[ "1171242903@qq.com" ]
1171242903@qq.com
46183352278dccebb8b04ef8a8ad9433ab6dc02c
0be31b914365fd06d201f3d2a3f10863805678e9
/MachineLearnn/venv/LogisticRegression.py
54a7fecc1b9e7e64df6a8cb2cff3136af1da2a66
[]
no_license
huanchilin/MachineLearning
aa682e47a6803ad3cf5dd772972a5ba62c841718
48c091f3dbb2cfaaea26d78eeaf3288396d9be53
refs/heads/main
2023-03-29T11:57:49.377194
2021-04-11T09:21:56
2021-04-11T09:21:56
356,818,661
0
0
null
null
null
null
UTF-8
Python
false
false
3,522
py
import numpy as np from sklearn.linear_model import LogisticRegression from exam import hours_studied_scaled, passed_exam, exam_features_scaled_train,\ exam_features_scaled_test, passed_exam_2_train, passed_exam_2_test, guessed_hours_scaled # Create and fit logistic regression model here model = LogisticRegression...
[ "noreply@github.com" ]
huanchilin.noreply@github.com
3768f45c0c9890b403aa36c2f3d6a85d1d0ae4fb
02c7f9eb8cb9cd58aa9f37221d0de56c8fe91a90
/src/ques_gen_model/reinforce_evaluate.py
c9d94d1a20b780e1ab52878f8c695f062a60b3f0
[]
no_license
pajenterprise/style_clarification_question_generation
71c89eacae1e3b65f0f2414999a44ebd4049992c
e0ef9e015e77d497d93f657147473c83b17eded1
refs/heads/master
2020-12-11T16:28:51.044964
2019-05-02T21:46:55
2019-05-02T21:46:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,330
py
from .constants import * from .helper import * from ques_gen_model.helper import * import numpy as np import torch from torch.autograd import Variable def evaluate_relevance(context_model, question_model, relevance_model, c, cl, q, ql, args): with torch.no_grad(): context_model.eval() question_mod...
[ "sudhra@microsoft.com" ]
sudhra@microsoft.com
b7044b5e11a30bb0ed1d82430f08f2377f6f5145
9bb93695591f5792357f8740202dca3bfc331b5f
/latex/code/rejectionsample.py
3df3227cf0689b6fc5b42206f4db5de80abfd389
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
ciphergoth/sansreplace
7e2c153b5c567624417c99f36a87f15ed63ecb93
ae01be85ea5d164d6616209c2bc6efe97cacd606
refs/heads/master
2023-01-10T18:20:38.893389
2023-01-09T00:06:16
2023-01-09T00:23:20
153,832,473
13
0
null
null
null
null
UTF-8
Python
false
false
185
py
def random_choose(n, k): d = [] r = set() while len(d) < k: x = random.randrange(n) if x not in r: d.append(x) r.add(x) return d
[ "paulcrowley@google.com" ]
paulcrowley@google.com
ae8370a890bcf5fce614f8df6b15ff1cb153f540
e48a5534277cabce9ab6c02c2247a7af7ae1a298
/apprest/tests/views/test_users.py
c40855638809b0d25a81fdfcbf8e51235f09f375
[ "MIT" ]
permissive
dsanchez-cells/calipsoplus-backend
671a1dbe27a0919c9478be3bd819320a23781f31
a199bc5af4e636fe95e82444b4471519820409ae
refs/heads/master
2020-04-17T22:54:16.057899
2019-01-22T14:46:54
2019-01-22T14:46:54
166,428,164
0
0
MIT
2019-01-18T15:42:13
2019-01-18T15:42:13
null
UTF-8
Python
false
false
2,573
py
from django.contrib.auth.models import User import logging from rest_framework import status from rest_framework.utils import json from apprest.tests.utils import CalipsoTestCase logger = logging.getLogger(__name__) class UserViewsTestCase(CalipsoTestCase): logger = logging.getLogger(__name__) def setUp...
[ "acampsm@cells.es" ]
acampsm@cells.es
b203bcc7a5daf7db43e5600f125c31d1404bb997
0a1db233b58fd4c12325447ea5783130a4760124
/src/lightSource.py
2f6a7e55af5bb209c659236f5391fc886e91eb48
[]
no_license
anthonykawa/Intro-Python-II
9bf936c47448dd1cc859f1d7b11f55bda5db4275
8e2bd7e4b10c2a5bd42fd34f74cb61567a5a6168
refs/heads/master
2022-11-17T08:39:43.721551
2020-07-15T16:55:29
2020-07-15T16:55:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
from item import Item class LightSource(Item): def __init__(self, name, description): super().__init__(name, description)
[ "anthonyk2020@gmail.com" ]
anthonyk2020@gmail.com
beebb21a85bdef1dce90ba8d97d52f96682ff140
4979596576baa5b9306664d418f4a20b486d9fc9
/src/movies/migrations/0012_movie_number_of_views.py
13f1482e00980d0b684869bdce1103ff27ba8a13
[]
no_license
AleksandarFa/pocket-imdb-backend
23b6fad944831d8d70f82bff3c0030c1ae64fd92
6315dfddcf896fcf8348e456b27b9a2e71540f86
refs/heads/master
2023-05-12T12:20:03.967050
2021-06-04T09:15:47
2021-06-04T09:15:47
368,444,715
0
0
null
2021-06-04T09:15:48
2021-05-18T07:48:19
Python
UTF-8
Python
false
false
390
py
# Generated by Django 3.1.7 on 2021-05-26 08:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movies', '0011_auto_20210525_0954'), ] operations = [ migrations.AddField( model_name='movie', name='number_of_views...
[ "aleksandar.fa@vivifyideas.com" ]
aleksandar.fa@vivifyideas.com
d5ee690578c3bfc570f357bece4bc75e99aa569d
45860b4c7a289f053d22a7638608703634cb66b9
/main.py
8cb045cec686070f1feaf1ad86e30a81643da157
[]
no_license
ksesalebangim/camera
407a62ed04723e8386bc60006fed90764d913d9b
b99acd0969179df1aa89da4c21e02bf49c4b175c
refs/heads/master
2022-01-06T17:52:16.643711
2019-06-03T13:10:31
2019-06-03T13:10:31
114,571,430
0
0
null
null
null
null
UTF-8
Python
false
false
1,667
py
from flask import Flask import io import base64 from PIL import Image import time import glob import subprocess dropboxInLocation = "" dropboxOutLocation = "" printerMac = "" app = Flask(__name__,static_folder='public', static_url_path='/public') def getCamImage(): return Image.open("/home/ben/1.jpg") #TODO:add p...
[ "ben.feher@cyiot.net" ]
ben.feher@cyiot.net
f4b489d712dd7cfe2283e05c6c133a882fdcbb32
8be9ae66465536f343ab4f86a5c90b27de8f5fc7
/until/readConfig.py
e665622847576ce1f4dfea813f15670de90a94e2
[]
no_license
obj1/autotest
3db6d8dbcca0ae8979557f654fbc18bd9f911498
4a962cf88b877fd633a07103fa17cef16758a664
refs/heads/master
2023-03-12T21:58:26.157960
2021-02-24T07:40:17
2021-02-24T07:40:17
339,034,246
0
0
null
null
null
null
UTF-8
Python
false
false
2,135
py
'''1.读取配置文件 2.项目下所有文件的相对路径 ''' import yaml,os # 1.读取配置文件 class YamlRead: def __init__(self,yamlPath): '''如果是第一次调用,读取yaml文件,否则直接返回之前保存的数据''' if os.path.exists(yamlPath): self.yamlPath=yamlPath else: raise FileNotFoundError('yaml文件不存在') self._data=None #保存y...
[ "1364283713@qq.com" ]
1364283713@qq.com
5a2d36688d95ca553c9c799a2e0ad167f48d382e
1a626613c7d3be8cf4db765d4c9f1c5de138a9ab
/execicio3.py
78077643e177e49500d158e1dca95b7aae61024b
[]
no_license
leonardo111003/Infosatc-lp-avaliativo-02
c629c5621e436b008bb2f552907ddc280c833b17
28a2e1fdffefd0a4e0560c41149bb44dcafe3d38
refs/heads/master
2022-12-22T19:33:47.703641
2020-09-30T20:05:04
2020-09-30T20:05:04
293,796,707
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
lista = [ 5 , 1 , 4 , 3 ] print ( sum ( lista ))
[ "leocatra123@hotmail.com" ]
leocatra123@hotmail.com
73a0f05630281ebbc6d8ccf164f1b66426de58d4
4fe3fae28227272ddbe18009f8a0b08436bc8308
/ProblemSolving/Staircase/Solution.py
1581513ae436ef159be7619a8165d825abd89cf9
[]
no_license
alexhong2020/HackerRank
4ec4ce82b6e72efce2fb206cb14f27b712773946
e900f204703388e87f0816cb1dfb88dc4bdc69a4
refs/heads/main
2023-05-12T21:34:37.209476
2021-05-28T20:59:01
2021-05-28T20:59:01
364,686,150
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
#!/bin/python3 import math import os import random import re import sys # # Complete the 'staircase' function below. # # The function accepts INTEGER n as parameter. # def staircase(n): # Write your code here for i in range(1, n+1): for j in range(0, n - i): print(" ", end="") for...
[ "alexhong2020@gmail.com" ]
alexhong2020@gmail.com
65be7aa9587f2f337ee74a04b8fb020b199fa90b
ded2e06b4cd01bbdb1db1fe553c1f62e0a70376a
/py_action_pkg/py_action_pkg/maze_action_client.py
36e29d8286114201167c42ed44f67d6ffe869edc
[]
no_license
maxpark/gcamp_ros2_basic
b716a457f8ae8da90ee51196306877bb2e26362e
67fd8d2ba83cc683402bb374c0a11e4c2cd7fa76
refs/heads/main
2023-07-18T03:52:45.620235
2021-09-11T07:49:08
2021-09-11T07:49:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,033
py
#!/usr/bin/env/ python3 # # Copyright 2021 Seoul Business Agency Inc. # # 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...
[ "tge1375@naver.com" ]
tge1375@naver.com
02533cd4d4d9f6d1ef621cfbd2a2b01cbc88a02b
42d88f2cef9f919328ca7576a4b87d4a6b31c56b
/hw7_release/util.py
d9ab309351418ab8684d1db8c24a8d2d4629aa19
[]
no_license
zx563147474/standford-CS131
a0a041b97b21f15c37c9f456ac1e6db89a7e9445
eb3c436253749201d07511e725deda7c63a15649
refs/heads/master
2023-01-29T05:31:40.296839
2020-12-03T05:30:58
2020-12-03T05:30:58
311,215,221
0
0
null
null
null
null
UTF-8
Python
false
false
4,767
py
import numpy as np from detection import * from skimage.transform import rescale, resize, downscale_local_mean from skimage.filters import gaussian # def read_face_labels(image_paths): # label_path = "list_bbox_celeba.txt" # n_images = len(image_paths) # f = open(label_path, "r") # f.readline() # f...
[ "zx563147474@gmail.com" ]
zx563147474@gmail.com
33ec3d2938d023c2ff70848a180de6d531405866
34253092df18677cd616bb984c96b412781c3e93
/solve.py
d5fdf6d7f416e173c531ea6b62ce10d6672c3e3c
[ "BSD-2-Clause" ]
permissive
lacop/BubbleSolver
003b20957f376f9537448e1165b0b07e398e9493
2e31a83b87a537af4fc5ddc3610100d63043d8ec
refs/heads/master
2020-06-06T11:15:01.693088
2014-08-06T18:38:18
2014-08-06T18:38:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,577
py
import memo # 1: blue, 2: yellow, 3: green, 4: red next = {'1': '2', '2': '3', '3': '4', '4': '.'} def solve(level, width, moves): #print('solve', level, moves) if moves == 0: # Test for empty board for c in level: if c != '.': return None return [] ...
[ "lacop@lacop.net" ]
lacop@lacop.net
697dbd3b72ffe02a00fcfbaa0642539839c37fc2
c74b417bc9c9e036045051139a798841b94831b9
/tests/features/terrain/html/offsite_page.py
aeca5690595f8e7d07eb2395b80387e6c61b7af3
[]
no_license
pculture/unisubs-testing
ea2406389b1a91da1615de02093442288e6b7a19
0fc5a398d9c9448d5a9d6dd1a315740b341ed3bf
refs/heads/master
2020-05-17T15:07:10.269386
2012-07-20T04:58:34
2012-07-20T04:58:34
729,217
2
1
null
null
null
null
UTF-8
Python
false
false
1,640
py
#!/usr/bin/env python from unisubs_page import UnisubsPage class OffsitePage(UnisubsPage): """Main page for all offsite testing to drive playback and menus. """ _CAPTIONS = "span.unisubs-captionSpan" _WIDGET_MENU = "span.unisubs-tabTextchoose" def start_playback(self, video_position): ...
[ "jed@pculture" ]
jed@pculture
acf787541822adce48bbe0cfee1ec25c650fcc59
1ed96881640ecc5a7fbeda14611512ae890d7f6d
/team12.py
e5fed2c18c0715bb93f978719970839cba2b0cdc
[]
no_license
CSP-WHSPeriod2/iterative-prisoners-dilemma
387eece5101c7a9932db1715c2618d131d2c091e
646f4c463b8af0d3b905bc198266fa94b14d92d5
refs/heads/master
2020-03-31T22:33:03.398285
2018-10-18T19:44:32
2018-10-18T19:44:32
152,622,380
0
30
null
2018-10-18T17:00:49
2018-10-11T16:26:53
Python
UTF-8
Python
false
false
1,944
py
#### # Each team's file must define four tokens: # team_name: a string # strategy_name: a string # strategy_description: a string # move: A function that returns 'c' or 'b' #### team_name = 'team_IslandRoyale' # Only 10 chars displayed. strategy_name = 'Check for majority' strategy_descriptio...
[ "noreply@github.com" ]
CSP-WHSPeriod2.noreply@github.com
7ada0a9c9a71e609284946d53a7496cb678e7804
f839e5533e23380df02778378dafe0df674a60c9
/sphinx_rosmsgs/__init__.py
d5dd32c573f72aa1fae119c7b2b17a07553bd39c
[]
no_license
MatteoRagni/sphinx_rosmsgs
cd332cafa2815b5eb6490b8527f2cc060ed20488
8b30cfe779ece3c97e67dfdbd9f0fd4b61d40f66
refs/heads/master
2022-04-28T16:44:50.918822
2020-04-28T12:25:05
2020-04-28T12:25:05
259,610,124
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
from sphinx_rosmsgs.__version__ import __version__ from sphinx_rosmsgs.message_directive import MessageDirective from sphinx_rosmsgs.message_indexer import MessageIndexer def on_config_inited(app, *args): r""" The event is used to collect the user configuration and register a global message indexe...
[ "matteo.ragni.it@gmail.com" ]
matteo.ragni.it@gmail.com
8799587af23d45f613e72c763c6650d93bba8f46
ecee6e84ba18100b621c7e06f493ae48e44a34fe
/devel/lib/python2.7/dist-packages/costmap_2d/cfg/VoxelPluginConfig.py
ca382f3ac25f62dda8cec625bd10f2ab8217430e
[]
no_license
theleastinterestingcoder/Thesis
6d59e06b16cbe1588a6454689248c88867de2094
3f6945f03a58f0eff105fe879401a7f1df6f0166
refs/heads/master
2016-09-05T15:30:26.501946
2015-05-11T14:34:15
2015-05-11T14:34:15
31,631,628
0
0
null
null
null
null
UTF-8
Python
false
false
4,597
py
## ********************************************************* ## ## File autogenerated for the costmap_2d package ## by the dynamic_reconfigure package. ## Please do not edit. ## ## ********************************************************/ from dynamic_reconfigure.encoding import extract_params inf = float('inf') ...
[ "quanzhou64@gmail.com" ]
quanzhou64@gmail.com
e330b2c4ec0d709e389aa70c7b230a248e40cdff
500b03fa6cb776c1d51db4a3a3aa252ddf5a50e6
/book_exercise/py_intro/basics/Chapter 3: Numbers/name_random.py
f71fc4d460bda5325b87858fc9109a256951f46c
[]
no_license
carloslvm/learning-python
b3796a0a5b751baae8c551a9f6fe262f98980691
07f885454cf21b7d215a58da7fcb907715e546bd
refs/heads/master
2022-07-27T21:39:11.937801
2022-07-09T17:47:56
2022-07-09T17:47:56
163,447,616
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
#!/usr/bin/python3 # Printing a name randomly between 1 and 10. from random import randint for name in range(randint(1, 10)+ 1): name = 'David' print(name)
[ "cvaldez553@gmail.com" ]
cvaldez553@gmail.com
af77dd42ce1cca29d442ec4fcf465c879a990a29
3bb5f04a697143f0b64b36c5928ba34a0ee83597
/searchalgorithms/binarysearch.py
f83b198a5f2b2c269e7fd0b5c312219f6f714ae6
[]
no_license
abhisheksaxena1998/DataStructures-Algorithms-Python
0ed5f74a8e6ff4f864c5d6cbe68fb5d76cfb44f6
318b042b5ca14dd0b251d762c61765f06cede89e
refs/heads/master
2022-12-19T19:19:00.725383
2020-10-01T05:32:09
2020-10-01T05:32:09
300,156,985
2
0
null
2020-10-01T05:31:16
2020-10-01T05:31:15
null
UTF-8
Python
false
false
523
py
''' Key Points Binary Search is only applied on sorted array Time Complexity O(logn) T(n) = T(n/2) + 1 ''' def binSearch(arr,key,left,right): if left > right: return -1 mid = (left + right) // 2 if arr[mid]==key: return mid elif arr[mid] < key: return binSearch(arr,key,mid+1,righ...
[ "princegaur1998@gmail.com" ]
princegaur1998@gmail.com
9ca0718f800bb4b6ae81f84aeac29ecbf4a10ee1
2a73bb7d1ff60a778fea56918af93932a1406c2a
/tests/data_loader/tests_data_filter.py
baddd7e518b64025f54b8d00118de8b4b41fbfb5
[ "MIT" ]
permissive
usert5432/slice_lid
0b7acc6ced17bb13092ea74551a26658cbce23f0
731eda41364aa0b4f292fe60ee6577b95b9c6752
refs/heads/master
2023-01-13T03:05:11.843510
2020-11-20T20:32:12
2020-11-20T20:35:25
272,578,796
0
1
null
null
null
null
UTF-8
Python
false
false
3,480
py
"""Test `IDataLoader` data filtering by a `DataFilter` decorator""" import unittest from lstm_ee.data.data_loader.dict_loader import DictLoader from slice_lid.data.data_loader.data_filter import DataFilter from .tests_data_loader_base import FuncsDataLoaderBase class TestsDataFilter(unittest.TestCase, FuncsDataLo...
[ "torbu001@umn.edu" ]
torbu001@umn.edu
819c11fb2ff6e9bbda0cb03380c26525458095b7
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=35/sched.py
a3b742d5b6b87242902b200cb99b1c50add5a6e7
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
-X FMLP -Q 0 -L 3 120 400 -X FMLP -Q 0 -L 3 93 400 -X FMLP -Q 0 -L 3 80 400 -X FMLP -Q 1 -L 2 73 400 -X FMLP -Q 1 -L 2 63 250 -X FMLP -Q 2 -L 1 55 200 -X FMLP -Q 2 -L 1 45 400 -X FMLP -Q 3 -L 1 35 125 -X FMLP -Q 3 -L 1 35 150 22 100 21 100
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
491c9aea69c437d575dd966a6e72e1d9b9ab14f3
1436f58d5673dba004371fceb5e90af53e64d26e
/errors_life_long.py
e35d1af4c66699e192c1ee65077180a6bc6f8b28
[ "MIT" ]
permissive
mfkiwl/uav-autonomous-landing
8bf9d45dcacbb0ae1cb070319cb596f77f047167
555aae11046b85b1cae20a91c49580771470f5e1
refs/heads/master
2022-04-05T16:58:09.555100
2020-03-02T11:22:13
2020-03-02T11:22:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,442
py
import matplotlib import matplotlib.pyplot as plt import pandas as pd import os import sys import itertools import statistics as st DPI = 5000 ########################################################################################### input_dir = "/home/pablo/ws/log/errors" print("Reading from", input_dir) #######...
[ "pablorpalafox@gmail.com" ]
pablorpalafox@gmail.com
917db0f72decd79edcafec2875bee0865c643e64
26d6c34df00a229dc85ad7326de6cb5672be7acc
/msgraph-cli-extensions/v1_0/identitydirmgt_v1_0/azext_identitydirmgt_v1_0/vendored_sdks/identitydirmgt/aio/_identity_directory_management.py
8f6baa89e013ef5e2e83f0e742393afc730fc7cf
[ "MIT" ]
permissive
BrianTJackett/msgraph-cli
87f92471f68f85e44872939d876b9ff5f0ae6b2c
78a4b1c73a23b85c070fed2fbca93758733f620e
refs/heads/main
2023-06-23T21:31:53.306655
2021-07-09T07:58:56
2021-07-09T07:58:56
386,993,555
0
0
NOASSERTION
2021-07-17T16:56:05
2021-07-17T16:56:05
null
UTF-8
Python
false
false
9,603
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 ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
cdbdb1570651243d1a2166dee11b37fe1b42826e
4f0437097dc18ea19c1b9fbd2671f6296158b429
/etl.py
10832390832cca9829f3286431f65630e7fb26ae
[ "MIT" ]
permissive
keyanyang/udacity-data-engineering-capstone
e915da5205a6697ef07fd392743b1595589655c3
457ead73c99220002f1555b4d3916df9f8f89c3c
refs/heads/main
2023-02-15T09:10:26.558118
2021-01-15T17:42:27
2021-01-15T17:42:27
328,462,841
0
0
null
null
null
null
UTF-8
Python
false
false
2,323
py
import pandas as pd import os from dotenv import load_dotenv, find_dotenv from src.utility import * from src.data_model import * # load environment variables load_dotenv(find_dotenv()) DATABASE_URL = os.getenv("DB_URL") def main(): """ - Load data from different sources - Process Spark Dataframes ...
[ "kxy156@case.edu" ]
kxy156@case.edu
fc80dafb1d1d6e219b60357d8bd2a5f407c26ca4
228ebc9fb20f25dd3ed2a6959aac41fd31314e64
/google/cloud/aiplatform_v1beta1/types/index.py
289ef763b8977f8503af013acbc9cfaa2abd7f63
[ "Apache-2.0" ]
permissive
orionnye/python-aiplatform
746e3df0c75025582af38223829faeb2656dc653
e3ea683bf754832340853a15bdb0a0662500a70f
refs/heads/main
2023-08-03T06:14:50.689185
2021-09-24T03:24:14
2021-09-24T03:24:14
410,091,957
1
0
Apache-2.0
2021-09-24T20:21:01
2021-09-24T20:21:00
null
UTF-8
Python
false
false
5,038
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" ]
orionnye.noreply@github.com
0fbd59a2bd71646db731adef431c5bf3708e5a7e
612f8c06db1660fb364adcd0c666308400230620
/Lecture4-Python/add2numbers.py
8410f87b26a12758073e558d056e848c273b83fa
[]
no_license
zackychan97/Stanford-Code-in-Place
b349e167f10ec45efe9315936448c5e7821ce976
5e694afb835a8ee195bf39653782a18efacdffbf
refs/heads/master
2022-09-01T02:29:00.824593
2020-05-28T00:26:34
2020-05-28T00:26:34
255,403,203
2
1
null
null
null
null
UTF-8
Python
false
false
560
py
""" File: add2numbers.py -------------------- Another python program to get some practice with variables. This program asks the user for two integers and prints their sum. """ def main(): print("This program adds two numbers.") num1 = input("Enter first number: ") num1 = int(num1) num2 = input("Enter s...
[ "upwork.ztb@gmail.com" ]
upwork.ztb@gmail.com
2c3b054d93f45003c87f98cb0129da2c90a07b02
5551361c02ee4a78036e2452fea615fc912f406b
/tut4.py
465358ee61083a2301be6d3e8df1a5bc8be26084
[ "MIT" ]
permissive
Demfier/cs116-tut-solns
3d93752e4ca2d3debbb36c901a13e7201e5bf0fe
8277dae848ebf66522245fe15492ab91e48dac93
refs/heads/master
2020-12-13T13:32:52.551815
2020-02-14T05:25:45
2020-02-14T05:25:45
234,433,306
2
1
null
null
null
null
UTF-8
Python
false
false
3,503
py
# This file contains solutions to CS116, Tutorial 4 import math import check # CQ1: E) def create_cards(values, suits): """ Purpose, Contracts & Requirements, and Examples go here """ return list(map(lambda x, y: [x, y], values, suits)) def create_cards_alt(values, suits): """ Purpose, Cont...
[ "sahu.gaurav719@gmail.com" ]
sahu.gaurav719@gmail.com
c0d9310f0cd5790e4e0888b620c63cf325dc4d58
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_log_items_response.py
4e3d6377a22a133cbef0e053c955f2b4d0817543
[ "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
5,115
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListLogItemsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the va...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
8a832fba39554e5d8e91909eebf256b825a84b89
53e8762caede13acfdc2071a2b8def57128dd3e4
/Arshia_phase_2/hyperstar_for_glove_w2v/identity3.py
1b153e432a90b6ccbdd0720bd66358b1db24de53
[]
no_license
manikyaswathi/SemEval2018HypernymDiscovery
8c17cf4d16fa48b2719381752b18386acde6c4ee
03ee054bf0266fed5337b2a8bba14e8d7fec31aa
refs/heads/master
2020-03-10T14:52:28.582128
2017-12-15T20:40:32
2017-12-15T20:40:32
129,437,112
4
1
null
null
null
null
UTF-8
Python
false
false
3,389
py
#!/usr/bin/env python import argparse import csv import sys import gensim import numpy as np import os parser = argparse.ArgumentParser(description='Identity Evaluation.') parser.add_argument('--w2v', default='all.norm-sz100-w10-cb0-it1-min100.w2v', nargs='?', help='Path to the word2vec model.') parser.add_a...
[ "noreply-github@umn.edu" ]
noreply-github@umn.edu
c616722734885ced6763e3ca047faf01fab36c81
89fac230fd073774fe3236e49c7fb0e471413e4b
/Customer Churn prediction/logistic_regression.py
c56e28081a514c992ae5d7378cb85a957bd63688
[]
no_license
Venkat-Rajgopal/Kaggle-projects
31bb6afc54f5c5e382696defab75f90513698d86
a93daf2cb84348a4d8a19d6985307ba3955b9ebe
refs/heads/master
2021-11-24T07:44:50.409523
2021-11-08T20:49:38
2021-11-08T20:49:38
148,202,061
0
0
null
null
null
null
UTF-8
Python
false
false
2,502
py
import os from os import chdir, getcwd wd=getcwd() chdir(wd) import numpy as np import pandas as pd # Modelling imports from Sklearn from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split, GridSearchCV from sklearn.linear_model import LogisticRegression from sklearn.me...
[ "venkatramani.r@gmail.com" ]
venkatramani.r@gmail.com
1ac116f975e16120cbbd8caa43dc5181d2366329
2185217abc9d39919d4e7efd796f0dfb4dc70303
/advent_of_code_2019/day_02.py
8f1385437d7f8b866d2131fd27dae5590d1c30ce
[]
no_license
HappyTreeBeard/Advent_of_Code_2019
78b6061da74bb427e1b2b70c17eb6e630a0618e4
7d6cb8c04c6d509095b8c61bcd5b1a93f19a68b4
refs/heads/master
2020-11-24T17:42:01.344355
2020-01-08T02:34:03
2020-01-08T02:34:03
228,277,688
0
0
null
null
null
null
UTF-8
Python
false
false
4,688
py
import copy import unittest from enum import IntEnum from pathlib import Path from typing import List class OpCode(IntEnum): """ Opcodes (like 1, 2, or 99) mark the beginning of an instruction. The values used immediately after an opcode, if any, are called the instruction's parameters.""" ADD = 1 MUL...
[ "34220817+HappyTreeBeard@users.noreply.github.com" ]
34220817+HappyTreeBeard@users.noreply.github.com
2527f247fec61f2141bb48302517b78430fe6068
4e85fc9a611cab613a1a5fa19ceb3d0cca8a49ad
/citcall/settings.py
77d081b90d6680066fa90ed12ed049e15c81a5f5
[]
no_license
novanBule/citcall-django
dc08063428e6c24b0f9d450a859caee142f3081d
be04cc79d0816b1d1009d0ff89dd37708d4a0603
refs/heads/master
2021-01-02T15:24:17.516279
2020-02-21T11:16:38
2020-02-21T11:16:38
239,680,838
0
0
null
null
null
null
UTF-8
Python
false
false
3,244
py
""" Django settings for citcall project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
[ "maaf.emailgualupa@gmail.com" ]
maaf.emailgualupa@gmail.com
02afa1f3ac1912f2e42968b1a9f8c171135d839e
fa795af74cda4d92604fa3332179ba939460a9b5
/JUBioactivities/QSARDB/Papa_Property_pkNO3_Degradation_by_NO3_radicals_as_logkNO3/__init__.py
ed8bd3df2d2321a9d042e6cc65b02e98c183d8a1
[]
no_license
JenniferHemmerich/JUBioactivities
7329a89db0e2790aff9bcfe153ab4dcd2c19a489
87054ac135d91e034dcfb6028562b4a7930a3433
refs/heads/master
2020-04-26T03:56:36.177955
2019-03-07T13:08:08
2019-03-07T13:08:08
173,284,341
1
1
null
null
null
null
UTF-8
Python
false
false
1,003
py
import os.path import glob import pandas as pd import numpy as np from ... import utils __data_src__ = list(sorted(glob.glob(os.path.join(__path__[0], "compounds/0*.mol")))) __data_src__ += [os.path.join(__path__[0], "properties/pkNO3.txt")] def read_data(raw=False): df = pd.DataFrame({'pkNO3_Index_Papa': np.l...
[ "jennifer.hemmerich@univie.ac.at" ]
jennifer.hemmerich@univie.ac.at
25ab3da1de0c4e34d1d09e361769c36803cd8317
e37a1088cd272a88765c4c232f4432bc43b8b558
/Cyber_News/game_pages/migrations/0002_auto_20191207_0122.py
8e2faed42baefe1ef7c535b599ee2f42f5545b11
[]
no_license
Farad2020/Cyber_News
79931c613a7e766b0bcf92b94fc9e077c1113db4
46b6001504d7e85b014306c2bca9eee58c43611f
refs/heads/master
2020-08-29T01:18:51.879649
2019-12-10T13:24:45
2019-12-10T13:24:45
217,876,405
1
0
null
null
null
null
UTF-8
Python
false
false
806
py
# Generated by Django 2.2.6 on 2019-12-06 19:22 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('game...
[ "fnirc@mail.ru" ]
fnirc@mail.ru
134a7fdb80d75f63678b62ea1e3d5cf549604860
838c166ed4b416d25bcd0089ec58c2306fe67c4c
/hsbro_port/run_all_case.py
522714bca57908ec22b53ef371725702b10b0ec5
[]
no_license
wuyuchao1992/hsbTest
df9f039f3ba35f2437c64383ea40bee722d7e640
9dd41f28778cfa984aca924d924b03abfadc2737
refs/heads/master
2020-04-08T21:41:49.701211
2019-08-15T03:08:44
2019-08-15T03:08:44
159,754,744
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
#coding:utf-8 import unittest import HTMLTestRunner import os def all_case(): # 执行用例目录 case_dir = "C:\\Python35\\hsbro_prot\\case" testCase = unittest.TestSuite() discover = unittest.defaultTestLoader.discover(case_dir,pattern="test*.py",top_level_dir=None) for test_suite in discover: for ...
[ "550535582@qq.com" ]
550535582@qq.com
422ed439d6cd3fa32bc7b7b30dcfab4aeb976286
07926ae91fe78d850b8db916163934d1d6333371
/contest/w29/day-of-the-programmer.py
7ffcda39dea19bc40d4e7c2530b171b4c75289d0
[]
no_license
wllmnc/hackerRank
a3ec8e7866474788944c765eb61cf18c714fa57b
410bc5a2fd0139052e8180abf897ba89ecec09fa
refs/heads/master
2021-10-22T14:04:52.181345
2021-10-11T05:46:58
2021-10-11T05:46:58
57,273,948
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
#https://www.hackerrank.com/contests/w29/challenges/day-of-the-programmer #!/bin/python import sys y = int(raw_input().strip()) # your code goes here day='0' month='09' if y<1918: day=('12' if y%4==0 else '13') elif y==1918: day='31' mont='08' else: day=('12' if ((y%4==0 and y%100!=0) or y%400==0) el...
[ "noreply@github.com" ]
wllmnc.noreply@github.com
1ba39a261ac7344665d4fd8f17200b7e46f003d4
67b10cc09fa31d82c3c1961366ae56875449185b
/Jerry/Ling-4375473-hw6/exer2.py
e6cb8acb19ebffacd46ec7623e85c0bbebe07d38
[ "WTFPL" ]
permissive
Moelf/S19-129L
b698b65ab138d2ecacf6bb773afc0f8c620557c7
6085ad5b1e09aedc81319090f1187c0d9bee423e
refs/heads/master
2020-04-18T08:48:33.925210
2019-03-23T19:42:55
2019-03-23T19:42:55
167,409,038
0
1
null
null
null
null
UTF-8
Python
false
false
1,352
py
import math import numpy as np import matplotlib.pyplot as plt fig, ax = plt.subplots() # constants given in the problem N = int(input("N = ")) mu = int(input("mu = ")) sigma = float(input("sigma = ")) # pick 100 spaced fixed x's, S>0 xs = np.linspace(0, 20, 2000) # normal(3,0.5) virtually don't have anything small...
[ "jerryling315@gmail.com" ]
jerryling315@gmail.com
3879b85ac5c2d9040cb6c9f5d03562f767ce762e
4d2979e9b1804a1b8f37353cc9aae70e989390db
/ngrams.py
5281a412c203f5a95ef17656e37d49523b888497
[]
no_license
chjunginger/charts2
a4fed8ef18aed7a4eae9f497831e4e5f3cfa4692
eaed6de715bc1cc814f66f2d49b72e03e10766a5
refs/heads/master
2016-09-05T19:37:09.649356
2015-06-25T09:02:39
2015-06-25T09:02:39
31,538,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,227
py
__author__ = 'christianjunginger' #gets all ngrams and counts how many distinct songs use it (per year) import re import json n=3 #length of ngram def PreprocessLyric(lyric): lyric = re.sub(r'[^\w\s\']',' ',lyric) lyric=lyric.lower() return lyric.split() def GetNgramSongCountsForYear(AllLyricsOfYear):...
[ "chjunginger@users.noreply.github.com" ]
chjunginger@users.noreply.github.com
2cc437f24c473125f7825b073b35dbc910657b40
963cac9e78c4b742f7e7800200de8d1582799955
/lib/veetou/pzh/pzhmodel_.py
fe393d78cc1da6d7aec46d2741a126f14b156e44
[]
no_license
ptomulik/veetou
c79ceb3ca3d7ef7b261b2219489b6f0a7a83e1fa
b30be2a604f4426f832ec9805547ecd6cc9083fe
refs/heads/master
2021-01-22T17:28:57.271251
2019-01-05T01:46:43
2020-05-04T16:23:44
85,016,513
0
1
null
null
null
null
UTF-8
Python
false
false
2,677
py
# -*- coding: utf8 -*- """`veetou.pzh.pzmodel_` Defines data model for pzh (Protokół Zaliczeń - HTML) """ from veetou.model import * __all__ = ( 'PzHReport', 'PzHPreamble', 'PzHTr', 'PzHSummary', 'PzHDataModel' ) ##def strn(s=None): ## if s is None: ## retur...
[ "ptomulik@meil.pw.edu.pl" ]
ptomulik@meil.pw.edu.pl
558316d2d02f00c53809d2a6dc8daad74994b50e
f0b2de121b17169b3decaadc39d87de85b6b7fdb
/yahoo_options_data.py
917423fb80897dde66956640a8432def6efe05a0
[]
no_license
lchen0113/APT_lab1
531b5c6885ebee46c723f37aa2082ca3dfd2aaaa
1c4ff3922190497b392ffdea813f92f9f9cec23e
refs/heads/master
2016-09-06T10:23:19.837301
2015-09-12T04:41:22
2015-09-12T04:41:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
import re import urllib import locale from bs4 import BeautifulSoup def contractAsJson(filename): file=open(filename,'r') soup=BeautifulSoup(file,'html.parser') jsonQuoteData = {"currPrice":0.0,"dateUrls":[],"optionQuotes":[]} # find the currPrice currPrice=soup.find( attrs={"class","time_rtq_ticker"...
[ "lchen0113@gmail.com" ]
lchen0113@gmail.com
6ee20a4a8435db0bfc40638cceef71df51f88e65
4e4c5827ed94024d499982279ce611b893c03572
/Azure Firewall/Script - Migrate Checkpoint config to Azure Firewall Policy/chkp2azfw.py
3d99c0cb6d834b73264997c9c8125e14c234c1a6
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/Azure-Network-Security
19a51076e5eda76e9808845792421b82ea5afb84
32141bb734518d5ae51bed5f7ca824a01b04ab49
refs/heads/master
2023-08-30T20:53:07.435480
2023-08-28T15:55:12
2023-08-28T15:55:12
215,905,001
690
264
MIT
2023-09-11T06:38:17
2019-10-17T23:46:28
Python
UTF-8
Python
false
false
43,780
py
import argparse import json import re import os import sys import copy # https://docs.python.org/3/library/ipaddress.html import ipaddress # Helper functions # Arguments parser = argparse.ArgumentParser(description='Generate an ARM template to create a Rule Collection Group from a Checkpoint ruleset exported with the...
[ "noreply@github.com" ]
Azure.noreply@github.com
7f2fb82245f1aad011c002e5e5e19e127851738f
0561de867928b827115a855ed3a9943657e7ad71
/src/api/config/config.py
91fa24bf24e3b429a99776e3fc210e19d49cd0da
[]
no_license
homemix/flask_api_sample
c3c57742e2dc07f5a0451a5b6508551716e262ae
0e23a61cdfb26fb8ae32a004d4811adebce3e7ef
refs/heads/master
2023-06-15T16:09:11.353193
2021-07-01T10:02:35
2021-07-01T10:02:35
381,985,326
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
import os class Config(object): DEBUG = True TESTING = False SQLALCHEMY_TRACK_MODIFICATIONS = False class ProductionConfig(Config): SQLALCHEMY_DATABASE_URI = "mysql+pymysql://<db_url>:<port>/<db_name>" SQLALCHEMY_ECHO = False JWT_SECRET_KEY = 'JWT-SECRET' SECRET_KEY = 'SECRET-KEY' SE...
[ "kenmutati@gmail.com" ]
kenmutati@gmail.com
6f18042887b709dbed8c5c7127dfd8b31351d80f
bafa89d999fd2a06063d7c0768670525d3b9b60e
/example/web-demo/session.py
5aa1a3fab0336539d8305e3bffde9880af4a3c17
[]
no_license
yifangyun/fangcloud-python-sdk
0a54bc5054579a28d72d7aa7ac35d12f1c2ee1b4
ffefd6d2d625841643160c3c9d5a4b55190bc49f
refs/heads/master
2021-01-19T21:00:40.555935
2018-10-10T13:16:04
2018-10-10T13:16:04
88,589,490
3
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
import hashlib import time def md5(): m = hashlib.md5() m.update(bytes(str(time.time()), encoding='utf-8')) return m.hexdigest() class MemorySession: container = {} def __init__(self, handler): random_str = handler.get_cookie('yfy_session_id') if random_str: if rand...
[ "linrenjun@egeio.com" ]
linrenjun@egeio.com