blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
d6aed8570dd9b38237b7ac416631ce53169734af
8ccb705d50d3d122015906a0a66c5c5254137f86
/v2exsign
7ea58c5f1b1422c0fd78c563f5ea1f63b1c53f30
[ "MIT" ]
permissive
itisthecon/myscripts
b0e15a7fecf6d1b4ce2f46bda19513e29803a59f
2506d750d91f9978581daf162e3e989c92b0f83e
refs/heads/master
2023-09-03T20:22:05.355119
2023-08-24T06:54:09
2023-08-24T06:54:09
63,137,465
0
0
null
null
null
null
UTF-8
Python
false
false
1,699
v2exsign
#!/usr/bin/env python3 # coding:utf-8 import re import os import requests import time from bs4 import BeautifulSoup session = requests.Session() username = 'yourname' password = 'yourpass' base_headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.71 S...
449f1e8fdfc8474105ab0dc1aa015c1c6e2e7bad
daff1cbff9777826132c498b98f76886d456cd16
/tf_cnnvis/__init__.py
f5aa1a799490bdccc3fbebcdbdbe16f44a891509
[ "MIT" ]
permissive
MonteWa/tf_cnnvis
cd7bb19c7981e5f1b5ac2da2221e339b7b7320db
df45c8c78ae2ff39ba787acee78e01b27bc604b6
refs/heads/master
2021-08-20T08:55:36.030975
2017-11-28T17:11:46
2017-11-28T17:11:46
107,191,818
0
0
null
2017-10-16T22:59:03
2017-10-16T22:59:03
null
UTF-8
Python
false
false
414
py
__init__.py
from .tf_cnnvis import activation_visualization from .tf_cnnvis import deconv_visualization from .tf_cnnvis import deepdream_visualization from .tf_cnnvis import get_deconv_results from .utils import convert_into_grid from .utils import image_normalization __all__ = ["activation_visualization", "deconv_visualization"...
e2f6d4cc805bf00dc6755a5dbc7061b92d5c7d1a
f1e57b0031044ae62ec99b01bb1011a131529302
/generateworld.py
b14e21acfa6754d5c41e1a17f9d6c571f6a818f4
[]
no_license
Machine100/CatCollector
2b4ff393f5a18bcc859bd133579171517f4505b2
b0603d09a5bf60cb6eab1354b57bb2033aac530f
refs/heads/master
2023-01-11T10:25:15.130721
2019-10-04T13:19:10
2019-10-04T13:19:10
182,324,155
1
0
null
2023-01-04T00:47:42
2019-04-19T20:50:47
JavaScript
UTF-8
Python
false
false
260
py
generateworld.py
import boto3 #dynamoresource=boto3.resource('dynamodb') stepfunctionclient = boto3.client('stepfunctions') response = stepfunctionclient.start_execution( stateMachineArn='arn:aws:states:us-east-1:980965586942:stateMachine:CatCollectorStepFunction', )
8fb50836a2e9d30c0ae2a19c10d291e9519a02d4
4348c47ca6f28ac6d403bfdcccd4001861d0959e
/bankaccount.py
1d447983ea32570e50402a6fe6370d210b564519
[]
no_license
elephantebae/PythonStack
26d9e6488ccb4aa80e3a9d35d3e95b3715793a50
6f6f5bf8b620793bf8680ed106869ed9661f59d3
refs/heads/master
2020-04-08T14:46:10.634128
2018-11-28T05:57:33
2018-11-28T05:57:33
159,451,024
0
0
null
null
null
null
UTF-8
Python
false
false
888
py
bankaccount.py
class BankAccount: def __init__(self, name_account, interest, amount): self.name_account= name_account self.balance= amount self.interest = interest def deposit(self,amount): self.balance += amount return self def withdraw(self,amount): self.balance ...
107206b797ad9e6e6711121ab07758581e086821
7920e8f879a37ee62591fa78a4024a22eac5d947
/templates/lstm_fully_train_and_save_model.py
c01f8baeca2303a8ae0869c41795e6036204721d
[]
no_license
1michaelmasterson/LSTM_political_science
bada2656230adc62f6491200d1a6067faff875fd
28280ac0fa792bc213fad8ce284596eafb83e180
refs/heads/master
2020-04-21T19:05:01.371687
2019-10-24T21:34:34
2019-10-24T21:34:34
169,793,667
0
0
null
null
null
null
UTF-8
Python
false
false
8,999
py
lstm_fully_train_and_save_model.py
######################################## # Library packages ######################################## import pandas as pd import numpy as np import keras from keras.layers import LSTM from keras.models import Sequential from keras.layers.core import Dense, Dropout from keras.layers.wrappers import Bidirectional from ker...
0426769c2f52282e54b18a620335c435526758d2
9e0b6f67f6be296a0dcbc9735dc983fa42fa2314
/smtp.py
8757e63eba25aa9cc57fad844ff479b8fa9fb835
[]
no_license
SinaHo/codes-in-python
17a82eb84daa7e2f8c1817e1c5c0e98680c3d65b
83cbda2eea0a68e68bd0d2f9e76bd660df052466
refs/heads/master
2021-01-09T16:27:08.989795
2020-02-22T16:52:05
2020-02-22T16:52:05
242,371,296
1
0
null
null
null
null
UTF-8
Python
false
false
272
py
smtp.py
import smtplib sender = "yohoo@yahoo.com" receivers = ['sina.ho79@gmail.com'] message = """ Hello Test from me """ try: smtpObj = smtplib.SMTP('5.122.31.67) smtpObj.sendmail(sender, receivers, message) print("done") except Exception as e: print(str(e))
41fdb3da17ee4c6983d74b59b5bf86cb93ab6ed9
b3b359763782c682d6fee9cc24ad9167f534107b
/OneDrive/Desktop/projects/producthunt2-project/products/views.py
a43ea99c0cb7f9b19cb324befd73e658a8a80733
[]
no_license
ayushpayasi/Product_hunt_django
5b724c59081d3bff61a1dd4d86c8c003a03eedfe
70f7174da0c13bc9915e460012e5d72dd5a84b61
refs/heads/master
2022-07-01T21:45:36.043689
2020-04-30T20:41:52
2020-04-30T20:41:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,319
py
views.py
from django.shortcuts import render,redirect from django.contrib.auth.decorators import login_required from .models import products from django.utils import timezone # Create your views here. @login_required def create(request): if request.method =='POST': if(request.POST['title'] and request.POST['body'] a...
8f3f1362a049dec2c294d254e8a021fa4c015021
89f87663ce56997612b9018d6bc566d26090bd13
/AnnotatedData/crawler.py
7278e401789342999d384f1ab9c4f4418082bb64
[]
no_license
imclab/Twitter_DA_Recognition
9e43de05994648afe59446c912ad7ac6f8fc8802
16617dcac8620782207a8c77942baf7dba4fe1f2
refs/heads/master
2021-01-17T20:35:28.684891
2015-05-18T09:03:19
2015-05-18T09:03:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,097
py
crawler.py
__author__ = 'snownettle' # Crawling tweets for annotated data, put in the DB. from mongoDB import queries from mongoDB import mongoDB_configuration import json import tweepy import time from general import read_file def get_all_ids(collection): records = queries.find_all(collection) tweet_id_list = set() ...
f708bddb474e9f5d8ab71dbc768e14c5165f672f
c8d6cfc2148fe15a272110277d511fb8522c4c26
/Numpyy/ArrayByteConsume.py
a0c0e2379ab7cdb6d7028fea1f5d6e13bacdc781
[]
no_license
n1e2h4a/AllBasicProgram
9d1705315cf08678cf615a77921e17728ed41f94
88f27c24906de3ea2b2ee1f94adaa648ef1e51c3
refs/heads/master
2021-01-04T06:40:49.207179
2020-03-11T13:40:52
2020-03-11T13:40:52
240,428,706
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
ArrayByteConsume.py
import numpy as np sample = np.array([1,2,3], dtype=np.float64) print("size of the array:", sample.size) print("length of the each array element in bytes:", sample.itemsize) print("Total bytes consumed by the elements of the array:", sample.nbytes)
d434fde8a21b2fc2760ee8fa79f76ac14cb20c8b
3fbf42864ad8ee4f53597a1cf5b2e5a54268f571
/Dynamic-Programming/(11057)오르막 수.py
5b54ac924984fe26d6ddc8141e4d70dfa561c2a3
[]
no_license
upskyy/Baekjoon-Online-Judge
1542f7c99b1a34ca0fbc810aa2cefd493d783103
35389d54ea2c1a25b9f0ebe07d417debff2651ac
refs/heads/main
2023-04-26T05:51:20.306414
2021-05-06T07:40:54
2021-05-06T07:40:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
(11057)오르막 수.py
N = int(input()) num_list = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0] for _ in range(N)] for i in range(N): if i == 0: for j in range(10): num_list[i][j] = 1 else: for j in range(10): for k in range(j + 1): num_list[i][j] += num_list[i - 1][k] num_lis...
bf320d7fe8017415a3159f6df55e810f27854122
eeb4e32a8e5c020684666582c0cd581411443c77
/rob_remotecontrol.py
c6b8c25e4dd3cbdc55c6c57327efe8ac9031b777
[]
no_license
wmmurrah/robotics
0ced0fb43336965bf84a6695d4c6140c3c5625b4
c3b358e6821605433bb4e9dc786b37080f8a53c1
refs/heads/master
2021-01-17T05:35:13.824229
2020-12-04T01:50:48
2020-12-04T01:50:48
42,783,964
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
rob_remotecontrol.py
import Tkinter as tk import rob_moves as mv def key_input(event): mv.init() print'Key:', event.char key_press = event.char st = 0.030 if key_press.lower() == 'w': mv.forward(st) elif key_press.lower() == 's': mv.reverse(st) elif key_press.lower() == 'a': mv.turn_lef...
01ddb32ed932b9e12751c413dd412ad26ce6825b
fc3acd4dfe913e377d16bb795fc4957978f71704
/covid_plotting.py
9a833fa1dec38c65a523edaa421da2a5e0d8239f
[]
no_license
ssalteko/Corona_w_pandas
b47148f3f0f5d8eaa900ef2b2a2a71028da36b6c
b2442c1d2a73a269f31dcd9b0f675993e4d717be
refs/heads/master
2022-04-25T07:27:04.997165
2020-04-30T19:53:23
2020-04-30T19:53:23
255,525,346
0
0
null
null
null
null
UTF-8
Python
false
false
2,061
py
covid_plotting.py
import matplotlib.pyplot as plt from covid_panda import * import pandas as pd def plot_global_regions(df, dtype, regions,start): ''' plot global df and label for legend. ''' df = df.set_index('Country/Region').T[regions] l = df.count() for region in regions: plt.plot(df[f'{region}'][...
9f5f59eb0fd03c7a4762405894145f10c89cad67
a43e4d428b2fe31fe6bf23e4c4924dc77f3dafc3
/add_linked_list2.py
80430a773bd382b1f9628e9f37b36ebd3cfb4135
[]
no_license
paulhtremblay/algorithms
45bbfd69e0c9206252b59880c49a878e1a32adff
4dc8f73d986e3c5f6a642a88ddafce0d82cdbf51
refs/heads/master
2020-03-10T16:03:19.459391
2018-04-13T23:55:52
2018-04-13T23:55:52
129,464,631
0
0
null
null
null
null
UTF-8
Python
false
false
1,633
py
add_linked_list2.py
import unittest import linked_list import node class TestAddList(unittest.TestCase): def setUp(self): l1 = linked_list.LinkedList() l1.add_node(7) l1.add_node(1) l1.add_node(6) l2 = linked_list.LinkedList() l2.add_node(2) l2.add_node(1) l2.add_node(...
b28ed017af78519c6aa96cba6b31f82690b5fd3a
63b20ca92be0dbd09d2555b71c793217c7c642d4
/predicterapp/PreProcesamiento.py
12ff3214cf28447a5a3c48df9def7fe4561886fb
[]
no_license
sanframar/tfg
d68cbbfa6e397b7f35add14cd75d20391c3228ed
b70e406c88bffbe40f6033edf98ab8776858b48f
refs/heads/master
2022-01-19T01:17:54.641691
2019-02-01T20:07:13
2019-02-01T20:07:13
141,915,357
0
0
null
null
null
null
UTF-8
Python
false
false
5,374
py
PreProcesamiento.py
import pandas_datareader.data as web from sklearn import preprocessing import datetime import pandas as pd import numpy as np import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) from predicterapp.CargarDatos import obtenerDatosApi, datosYahoo from predicterapp.Utils import * ...
bf5045c8fb61c0f1057b7ad87bcd786bcec938f3
12022ca08c348b6c1df6e1fcc39d7cf96a048003
/lesson-1/geekshop/mainapp/views.py
af865602f39f84208fc93c30bc0e1dd12e2adfa4
[]
no_license
kkulikoff/Course_Django
0a2cae8980835c784dfeb3c4f5a38639c34a7f0b
235fc53f218c1c78e99d5e3b87aa7b316bff277e
refs/heads/master
2023-06-23T20:26:10.122836
2021-07-02T07:23:42
2021-07-02T07:23:42
361,477,319
0
0
null
2021-07-02T07:23:44
2021-04-25T16:16:55
HTML
UTF-8
Python
false
false
647
py
views.py
from django.shortcuts import render def main(request): return render(request, 'mainapp/index.html') def about(request): return render(request, 'mainapp/about.html') def checkout(request): return render(request, 'mainapp/checkout.html') def contact(request): return render(request, 'mainapp/contac...
1e94ea0ac0721b4d60cdeb2ba9f27561a76c3dc1
e08060bddd196feb938aeda32675e0efb62cbf6d
/EM_KDE_optimized/utils.py
cd30c76746f8af29f0eb319352e162a73c588158
[]
no_license
lauraperge/AML-EM4KDE
c8a2d16b8f0db4663de011122505652a2cb86e13
7000a7e0730a308fa73296247a73098d06b659aa
refs/heads/master
2020-04-28T22:37:06.306217
2019-05-16T20:07:45
2019-05-16T20:07:45
175,624,283
0
0
null
null
null
null
UTF-8
Python
false
false
4,459
py
utils.py
from scipy.io import loadmat import numpy as np import matplotlib.pyplot as plt from scipy.stats import multivariate_normal def e_step(a_test, a_train, R): num_test, num_train = len(a_test), len(a_train) responsibility = np.zeros([num_train, num_test]) pi = 1.0 / num_train for k, train i...
f0254f4967a3da5777742da3e8d863d0f83835d0
4c0a2707cc33b8fa4c37b4852945d5f37454679e
/chapter-1/1-20.py
c92dbf36345d4047d3462f4285d74ee2bb21ee88
[]
no_license
jpdoherty90/data-structures-and-algorithms-in-python
b20edbdbe3f4060805f5d878ba6c5e250e1046e6
1bd2d3a81898f3d760ed5b34cf7bc1b755199477
refs/heads/master
2021-01-01T17:25:27.723999
2019-05-23T01:32:57
2019-05-23T01:32:57
98,069,624
0
1
null
null
null
null
UTF-8
Python
false
false
147
py
1-20.py
import random def shuffle(data): index = random.randint(0, len(data) - 1) return data[index] print shuffle([1, 2, 3, 4, 5, 6, 7, 8, 9])
e415625a7693762383cc5aebd969f70c56f3f033
20ee0c81c1cb32b4c7c3442cc80213bf45378c54
/prog13.py
5a918f4446fa173f60451308500d0ec757fb2a5c
[]
no_license
dimitrismoschou/Python-project-for-1st-Semester
83246b7fdf2c874687dd4d85ea7a27270f4b68b7
e9b59135003ebbc777f214bdc1106caf7a97b476
refs/heads/master
2020-04-23T03:14:25.967685
2019-02-15T13:50:26
2019-02-15T13:50:26
170,872,170
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
prog13.py
# -*-coding:utf-8-*- list1=[1,2,3,4,5] def maxDistance (list1,x): #ορίζω την συνάρτηση sum = 0 for i in list1: sum = sum + i if sum > x : sum = sum - i return ('το μεγαλύτερο άθροι...
5adb90e2805aec4b12f57fb6dce4c8d4113f3ecf
0d488286c56e0a240ed194f9cf973212441551c2
/step6_evaluation/ncit_comparison.py
fb2cfa15e93c70bfdcd017b79b5b1722728f8507
[]
no_license
sorgerlab/famplex_paper
dc73158726f0ad9bf360b6822a6aba57c3817e7d
a8c9be593be9d818fd38c9323bd275728cf35284
refs/heads/master
2021-09-14T10:29:04.719936
2018-05-11T20:18:56
2018-05-11T20:18:56
111,571,681
0
0
null
null
null
null
UTF-8
Python
false
false
1,257
py
ncit_comparison.py
"""This script looks up all the mappings from FPLX to NCIT and checks if the NCIT entry has any child concepts.""" import os import csv import requests import zipfile from collections import defaultdict from util import load_equivalences flat_file = 'https://evs.nci.nih.gov/ftp1/NCI_Thesaurus/Thesaurus_18.02d.FLAT.zi...
a8b6918b8bd6b63c39c33f9a36e233424198d9ec
4b4f9b988d0a465d9bf2c35d8a3f35f01555b99b
/brokenVSCADA2_23/vscada/gui/ui_main_window.py
b672a81f02771108783dc26b27302949b86587bf
[]
no_license
LafayetteFormulaElectricVehicle/Dyno
bfe9bd049a751798af9faa61dfee722edcf31f96
a994f3318bd96ec32945c7fcc60a1e6472358a73
refs/heads/master
2021-01-19T19:05:56.082013
2017-02-23T21:24:47
2017-02-23T21:24:51
80,381,205
0
0
null
null
null
null
UTF-8
Python
false
false
50,754
py
ui_main_window.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './src/main-window.ui' # # Created by: PyQt4 UI code generator 4.11.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _from...
a8a10ba3abfde9953900b8b72d9d4e1687dc6358
5c33ac6a51abc48109736929f323cc92dfb7b401
/learn_python/lixiong/learn_flask/study/request_obj/upload_file.py
6eddc459f794e4942faa31ead866099b515a7951
[]
no_license
WAWLixiong/collectors
9f46a0c39a422776e9369fc64c8144d4218e7b97
ece70e09bbb0e6e673af5f5bf4675fef28647609
refs/heads/master
2022-12-09T08:14:20.734620
2020-03-29T11:50:19
2020-03-29T11:50:19
195,070,320
0
0
null
2022-12-08T07:01:36
2019-07-03T14:27:16
Python
UTF-8
Python
false
false
482
py
upload_file.py
from flask import Flask, request app = Flask(__name__) @app.route('/upload', methods=['POST']) def upload(): """ 接收前端传过来的文件对象 """ file_obj = request.files.get('pic') if file_obj is None: return '未上传文件' # 将文件保存到本地 with open('./mm.gif', 'wb') as f: data = file_obj.read() ...
3b52d65ae55b4952445961a93ddd0ad8cd770b51
23e5fb43db02af2dc1a9840ddc84b263b103c0f4
/Python/gpioI2C.py
0de15403de763b2cdaf776b742471bff3fbbc558
[]
no_license
escharf72/Engineering_4_Notebook
bc64b1b614f5ec21195979f2b82a83a3b1d7378b
bcfd7edf74791cedc2519be66ac79246670116f3
refs/heads/main
2023-02-21T22:24:49.802928
2021-01-30T22:42:28
2021-01-30T22:42:28
308,409,038
1
0
null
null
null
null
UTF-8
Python
false
false
2,230
py
gpioI2C.py
# Here is the file for the code that I will be writing/compiling for the gpioI2C assignment # Author: Tony DiCola # License: Public Domain import time #Library for the accelerometer import Adafruit_GPIO.SPI as SPI import Adafruit_SSD1306 from PIL import Image from PIL import ImageDraw from PIL import ImageFont # Libra...
3fd5bf38fa6b99d3904032dfbbd21f51b4051037
77080d780c7eaf4a2d98e7113a32408ddace81b9
/trip_sorter/algorithms/bfs.py
c19c01f528610fbaf70d4b1d1b4c7bb93017ab67
[]
no_license
kujbol/trip-sorter
c9a9b201030187622ba4f97945d3706dfb2a97b8
4be888ee275edecd5fdf90f6588fe4f573e92f37
refs/heads/master
2020-03-22T18:59:49.920891
2018-07-10T23:36:06
2018-07-10T23:36:06
140,496,903
1
0
null
null
null
null
UTF-8
Python
false
false
2,976
py
bfs.py
from collections import defaultdict, deque from trip_sorter.errors import InvalidData class BFSAlgorithm: """ This algorithm can be used only for simplest case. It can be applied for case where all trips needs to be used and there are no round trips. If there is: - loop - multiple candidates...
77dd14b69d817e7aaebf5d275689a93bcb377298
e9a08404751aee4891ed01fc7ef42c05761e853a
/postgreTest/create_user.py
12c0b01288a0a04ef841c6a0440503c357e2fea0
[]
no_license
kathirm/TNPLTRPA
8eed651ff46a02bcfe5de48153ec198751ee6c20
db170bd8ad686543188c6aac82d2e9c12c72b0e7
refs/heads/master
2022-12-17T10:26:27.049538
2020-07-24T09:35:43
2020-07-24T09:35:43
171,221,067
0
0
null
2022-12-08T06:21:54
2019-02-18T05:35:17
Python
UTF-8
Python
false
false
2,381
py
create_user.py
import sys, os import json import xmlrpclib import requests import psycopg2 from passlib.context import CryptContext portal_url = "http://18.229.201.107:8069" portal_db = "MAP8" admin_username = "admin" admin_password = "admin" def connect_sqldb(): try: conn = psycopg2.connect(database="MAP8", user = "postgre...
0a8a3afd8979dc7e43fcb5046b2371ba72b4df6c
c34dcc469ed65f4daa87e72ee9a9a8a18c9e5088
/Big_O/11_14_19.py
dbe4e43013b6cfb07b65b8ee09eb5948888e5286
[]
no_license
cocoitali/lambda_tech_coaching
e39c1937cb21631aa820d45f9efd21ee67d12e0d
a60d7b3bd1a776fd32b71626fa71121b93ba7618
refs/heads/master
2020-09-08T21:51:55.217081
2019-12-03T03:09:35
2019-12-03T03:09:35
221,252,565
1
0
null
null
null
null
UTF-8
Python
false
false
2,118
py
11_14_19.py
# linear in the number of operands def evaluate(operator, operands): # if operator == '&': # reduce over the operands using `&` # if operator == '|': # reduce over the operands using `|` # if operator == '!': # flip the first operand ​ # return our evaluated answer ​ example = '[|, 1, 0]' ​ def ...
bf535960601f8eda5fd1ea325bd2c6f4c039fe56
7eee94df78e707647bee76f6043f68c6928db805
/h_99.py
fd4cb38fc29e7f4c2eb1a64943d32b315852f258
[]
no_license
drstrange11/code
d158d76bdd05beecce3c27bf2cbf06dea3a2046d
c733e65df1866c5fcec5b95034a9542efbf76406
refs/heads/master
2020-06-14T09:59:42.254915
2019-08-17T14:10:51
2019-08-17T14:10:51
194,975,316
0
2
null
null
null
null
UTF-8
Python
false
false
128
py
h_99.py
#AJ_99 x,y,z=map(int,input().split()) count=0 for i in range(x,y+1): if str(z)in str(i): count+=1 print(count)
45ffd8bbbee8fa878019a15aafa6e445229e5cc5
a0dda8be5892a390836e19bf04ea1d098e92cf58
/视频+刷题/6章2/-求两组整数的或集.py
ca1d8454edd01551187e1c4dbe096ba3a89c4dc1
[]
no_license
wmm98/homework1
d9eb67c7491affd8c7e77458ceadaf0357ea5e6b
cd1f7f78e8dbd03ad72c7a0fdc4a8dc8404f5fe2
refs/heads/master
2020-04-14T19:22:21.733111
2019-01-08T14:09:58
2019-01-08T14:09:58
164,055,018
1
0
null
null
null
null
UTF-8
Python
false
false
1,397
py
-求两组整数的或集.py
'''【问题描述】从标准输入中输入两组整数(每行不超过20个整数,每组整数中元素不重复),合并两组整数,每个整数只出现一次(重复整数只保留一个), 并从小到大排序输出(即两组整数的或集)。 【输入形式】第一行输入第一组整数的个数,第二行输入第一组整数,整数间以空格分隔;然后第三行输入第二组整数的个数,第四行输入第二组整数, 整数间以空格分隔。 【输出形式】按从小到大顺序排序输出合并后的整数,并不含重复整数。 【样例输入】 8 5 1 4 3 8 7 9 6 4 5 2 8 10 【样例输出】1 2 3 4 5 6 7 8 9 10 【样例说明】第一组整数个数为8,分别为5 1 4 3 8 7 9 6,第二组整数个数为4,分别为5 ...
197d8789bef16041cb2b8da28bb1923c3f63f994
77b646a5929e71205d9b3a62fe63764f3ff2fc3d
/exams/migrations/0002_auto_20201205_2107.py
0f4fad2fb7b51397f845102f39c9f054cfe16242
[]
no_license
Sagar-Saini-IIITS/Student-Portal
7336bb4ad47e00b8b2dea8ffb232dab4617a34f9
ec50a98e4c032ca2b26a862cc572798e2c4b523b
refs/heads/master
2023-08-26T13:04:17.236632
2021-11-10T05:32:32
2021-11-10T05:32:32
426,479,706
0
0
null
null
null
null
UTF-8
Python
false
false
869
py
0002_auto_20201205_2107.py
# Generated by Django 3.1.1 on 2020-12-05 15:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('exams', '0001_initial'), ] operations = [ migrations.AlterField( model_name='examination', name='roll_number', ...
75a068175dd23bd786319ab2df60e61aee8dbfa1
150fe23ed84a027b7d76f589f7eea8d984b5382e
/oop/inheritance Animal.py
e0db119b42d19abfb9568cbf7f5e8436999f8a34
[]
no_license
ugant2/python-snippate
c13d62a477b9f85b5fe3957c8164df551cb19ad4
82807e015e33b7694bfe878752cfdcb6cd7a9818
refs/heads/master
2020-03-07T22:44:31.837319
2018-04-02T13:53:03
2018-04-02T13:53:03
127,761,408
0
0
null
null
null
null
UTF-8
Python
false
false
651
py
inheritance Animal.py
# Inheritance provides a way to share functionality between classes. # Imagine several classes, Cat, Dog, Rabbit and so on. Although they may # differ in some ways (only Dog might have the method bark), # they are likely to be similar in others (all having the attributes color and name). class Animal: def __init...
20bae11e4c13c0e053da82c704d7b466f2677fd3
8df7fa5a5669fab2ec25efea335ab5a8b90d8f76
/04-drawing/03-DrawAllDemo.py
25d828c2b991e27b8898277a2f02db55823841a7
[]
no_license
HackettHsu/PyQt5Tutorial
76b458b7c15a5707a7c6ef01e4c5cc5f48296ade
01c3f782e48742a57a1152ec114f8c8cec71c323
refs/heads/master
2022-09-21T00:39:27.710977
2020-06-01T06:53:29
2020-06-01T06:53:29
259,819,043
0
0
null
null
null
null
UTF-8
Python
false
false
2,218
py
03-DrawAllDemo.py
# lesson 52 2020年5月1日 20:35:54-21:12:34 # 绘制各种图形 import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class QDrawAllDemo(QWidget): def __init__(self): super(QDrawAllDemo, self).__init__() self.setWindowTitle("QDrawAllDemo") self.resize(600, 600) ...
4cd72813d77cce7b08b432d92e8a71de943314ab
346f678e81d846dd1b17831e856d949dd0605320
/reinforcement_learning/environment/environments.py
dbe6501c99dd12e6abd8107480d8eba0f186e5bd
[]
no_license
FelixRottler/deep-learning
58471cd4afe3fd0dab213c9eb68c62f63f5dc731
16e330b2376467c0f59cacd3a14b6f85c842c4df
refs/heads/master
2023-09-06T07:54:01.047144
2021-11-23T09:39:39
2021-11-23T09:39:39
393,311,850
0
0
null
2021-11-03T16:10:55
2021-08-06T08:32:14
Python
UTF-8
Python
false
false
318
py
environments.py
class Environment: done = False def __init__(self) -> None: pass def step(self): # should return state reward etc pass def render(self): pass def reset(self): pass def calculate_reward(self): pass def get_observation(self): pass
9653702242ce997d399bf2aeac427b032ac40dc5
a8ff6b80fdfff7b52789aefbab1a76fb50d46486
/wine-quality.py
2691de1c5cd30ec0bfc43c8797af82ee6b53bc16
[]
no_license
rjn01/WineQuality
c15bf8326cccea60061012db5506d3e5a16b34db
cd1f1376fe696c863b654a127b63cbb087f70612
refs/heads/master
2022-04-16T03:42:05.450216
2020-04-12T20:14:54
2020-04-12T20:14:54
254,746,804
0
0
null
null
null
null
UTF-8
Python
false
false
2,917
py
wine-quality.py
import matplotlib.pyplot as plt import pandas as pd import numpy as np df=pd.read_csv("wine.csv") bins = (2, 6.5, 8) group_names = ['bad', 'good'] df['quality'] = pd.cut(df['quality'], bins = bins, labels = group_names) y=df.iloc[:,-1].values x=df.iloc[:,:-1] y=df['quality'] #ENCODING from sklearn.preprocessing imp...
4ff12197f7a7f212ed23fb692c85e34680a9b69e
4809067e03841758fc3fe704a2af4288af88b6b9
/PythonProjects_DataFlair/B4_EmailSlicer/emailSlicer.py
af060b7b3d1e02aa3910c1af78e8d4394909ea1b
[]
no_license
luismartindepablo/Python
cd93cbb6c30ce6fb6ad8d52a7032780a50c38921
e65598ef333ae57dad9ce0639711cc2b9be95404
refs/heads/master
2023-02-04T13:40:49.885422
2020-12-12T12:15:09
2020-12-12T12:15:09
319,061,421
1
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
emailSlicer.py
import tkinter as tk from tkinter.font import Font # Window root = tk.Tk() root.title("Email Slicer") root.geometry("400x240") # Globals Usertxt = "" Domaintxt = "" # Function def Slicer(event): global Usertxt global Domaintxt email = Entry.get() if "@" in email: emailSplit = email.split("...
c0101cb961ed703c6a969d6f4d425ad4c63368c7
59cd3ca83aadc9a4c830e6dda57922e682e7a317
/django_project/geocontext/serializers/cache.py
282d35d9ffde182c8242a950f5e995e1418d1d1a
[]
no_license
kartoza/geocontext
a8df6f4f17086301a6e7384056e49784fa6e2580
ae35b96356e3e21c18412b3e5fc529d8568866b4
refs/heads/develop
2022-09-11T06:15:15.108151
2022-09-01T13:37:01
2022-09-01T13:37:01
126,920,992
6
11
null
2022-09-01T13:37:02
2018-03-27T03:05:13
Python
UTF-8
Python
false
false
1,025
py
cache.py
from rest_framework import serializers from rest_framework_gis.serializers import ( GeoFeatureModelSerializer, GeometrySerializerMethodField ) from geocontext.models.cache import Cache class CacheSerializer(serializers.ModelSerializer): """JSON serializer for cache.""" key = serializers.ReadOnlyField...
dc02d17d96db8a347af961961404331a27b1074f
7eaf34a261f2157872d6e23ce51ad6e644b40c1c
/ryderscooters/webapp.py
7b5230e80d53721304c37925bf9c9421f98ba205
[]
no_license
baileymteply/CapstoneProject
7b0f88707c59c79728c7dfda3ce126cb4497087f
b2e095c4d466be844f6a38025b7535574737a68d
refs/heads/main
2023-01-13T16:04:55.462703
2020-11-23T22:56:11
2020-11-23T22:56:11
310,114,677
0
0
null
2020-11-23T22:56:13
2020-11-04T20:49:34
HTML
UTF-8
Python
false
false
15,515
py
webapp.py
from flask import Flask, render_template, request, redirect import markdown as md import csv, os import sqlite3 from datetime import datetime from datetime import timedelta import psycopg2 import uuid import matplotlib.pyplot as plt import pandas as pd from pandas import DataFrame, Series app = Flask(__name__) conn ...
caae81d4b1e33c47646e8c96dbb92cab0641c7f6
2859435d5680743bd28dfd7294d069d1c5dedb11
/storyruntime/utils/TypeUtils.py
0fac1799710a7e1de02ff79206243c857d5d5b3b
[ "Apache-2.0" ]
permissive
adnrs96/runtime
ec3dc173f59b5c4cc1c60e8ed3b4bf2c065e117b
e824224317e6aa108cf06968474fc44fa33488d6
refs/heads/master
2020-07-19T21:46:43.154428
2019-09-05T04:51:45
2019-09-05T04:51:45
206,519,757
0
0
Apache-2.0
2019-09-05T08:58:53
2019-09-05T08:58:53
null
UTF-8
Python
false
false
2,184
py
TypeUtils.py
import re from requests.structures import CaseInsensitiveDict from ..Exceptions import StoryscriptRuntimeError from ..Types import InternalCommand, \ InternalService, SafeInternalCommand, \ SafeStreamingService, StreamingService from ..entities.Multipart import \ FileFormField, FormField class TypeUtils...
1a977986e1325c813056e4629a231fc7a3fe8471
cffc460605febc80e8bb7c417266bde1bd1988eb
/since2020/CodeForces/381A.py
263d79c670032f36a674ed1ae3e207c1c634980f
[]
no_license
m80126colin/Judge
f79b2077f2bf67a3b176d073fcdf68a8583d5a2c
56258ea977733e992b11f9e0cb74d630799ba274
refs/heads/master
2021-06-11T04:25:27.786735
2020-05-21T08:55:03
2020-05-21T08:55:03
19,424,030
7
4
null
null
null
null
UTF-8
Python
false
false
361
py
381A.py
''' @judge CodeForces @id 381A @name Sereja and Dima @tag Simulation, Two Pointers, Card Game ''' def solve(arr, n): L, R = 0, n - 1 ans = [0, 0] for t in range(n): if arr[L] < arr[R]: ans[t & 1] += arr[R] R -= 1 else: ans[t & 1] += arr[L] L += 1 return ans n = int(input()) arr = list(map(int,...
7e34d6a5aeb137efa53d3dbfd364b693255a6f1b
6c137e70bb6b1b618fbbceddaeb74416d387520f
/spyre/spyre/spyrelets/threepulsephotonecho_spyrelet.py
7c1d8e3a517351af830f2aeb2dcbae23d16eb744
[ "BSD-2-Clause" ]
permissive
zhong-lab/code
fe497c75662f8c3b7ab3c01e7e351bff6d5e8d15
b810362e06b44387f0768353c602ec5d29b551a2
refs/heads/master
2023-01-28T09:46:01.448833
2022-06-12T22:53:47
2022-06-12T22:53:47
184,670,765
2
7
BSD-2-Clause
2022-12-08T21:46:15
2019-05-02T23:37:39
Python
UTF-8
Python
false
false
16,006
py
threepulsephotonecho_spyrelet.py
import numpy as np import pyqtgraph as pg import time import csv import os from PyQt5.Qsci import QsciScintilla, QsciLexerPython import matplotlib.pyplot as plt from spyre import Spyrelet, Task, Element from spyre.widgets.task import TaskWidget from spyre.plotting import LinePlotWidget from spyre.widgets.rangespace i...
8db8641fb532dce70e7e5d4c2eacecf8f4800755
9dc3e7d0496fa3ea2d7020ded287cc973a7f46d5
/base/webdriverFactory.py
8a4277d48876258a54f566c059a8bb3e9d834a38
[]
no_license
nerdy-glasses-tester/XomePython3
bae8b4a18ee37b1fc799591b5e9f7c62aa7304be
bb0c572c8d6c48bd341cb1a8cef5ace0c0affb86
refs/heads/master
2022-02-19T12:12:50.955515
2020-02-07T23:45:26
2020-02-07T23:45:26
190,115,776
0
0
null
null
null
null
UTF-8
Python
false
false
5,193
py
webdriverFactory.py
""" WebDriver Factory class implementation It creates a webdriver instance based on browser or os configurations Example: wdf = WebDriverFactory(browser, os) wdf.getWebDriverInstance() """ from selenium import webdriver as webdriver from appium import webdriver as appdriver from path import Path import time i...
29fedb9602c452aefdfb79061b2922f15cf79f93
2b026a53f9554ed2ce19198b313fcc8db9b73abb
/abc071/b/solver.py.org
7c72503b4da068e3f6ca196af9c797b16ae2c4c4
[]
no_license
shinobe179/atcoder
528b97c2e9a9cea6cccbf1de6d055bdd8e250191
debd24ec73936ac9592b96f723a1cd73bb93067a
refs/heads/master
2020-05-16T05:19:09.096587
2019-05-06T13:08:12
2019-05-06T13:08:12
182,812,943
0
0
null
null
null
null
UTF-8
Python
false
false
237
org
solver.py.org
#!/home/shino/.anyenv/envs/pyenv/shims/python import sys from collections import Counter s_set = set(input()) alph = 'abcdefghijklmnopqrstuvwxyz' for i in alph: if not i in s_set: print(i) sys.exit() print('None')
b79c4ce50529005808d5157842ae11cfb59d3312
e34ca7775edbd449bbfb1084d92d2eca73262554
/projects/07/VMTranslator.py
cf1531f18fac1b54349fc1dc565e361d0ebe21c6
[]
no_license
ganesshkumar/Computer-0.1
feb55153ceea79ff4e2a143ab3aa9279429e5bba
1eaa8b5e7e43b8d66e4b42f700696ca4ccdfd14f
refs/heads/master
2021-01-19T15:40:07.671941
2014-02-26T18:01:53
2014-02-26T18:01:53
16,638,758
1
0
null
null
null
null
UTF-8
Python
false
false
744
py
VMTranslator.py
#/usr/bin/python import sys from Parser import Parser from Coder import Coder if len(sys.argv) < 3: print 'Please enter input and output filenames' sys.exit(1) else: input_files = sys.argv[1:len(sys.argv)-1] output_file = sys.argv[len(sys.argv)-1:] coder = Coder(output_file[0]) for input_file in inp...
1be51c63efc54bdfbf58d785dc5616057613f3e6
490ac0f7e92c0cbe65eeb313c1168f82b8bc1b96
/VinfenClientPhoneTool/vinfenclientphonetool/Database/PopulateStaff.py
aae053d3c9f34988fee8b7cd6015c3d2d49a7f3c
[]
no_license
ktnerney/Capstone2021
aa3c58e666f984b617dfd147c5216dd5348a16ce
cfcdf44647eaf66b89e62daaae5a8beb628375c1
refs/heads/main
2023-04-08T01:01:05.207687
2021-03-23T03:37:54
2021-03-23T03:37:54
344,278,335
0
0
null
2021-03-23T03:37:54
2021-03-03T22:14:00
Python
UTF-8
Python
false
false
1,693
py
PopulateStaff.py
from datetime import datetime import sys import mysql.connector import pandas as pd import yaml from constants import DB_NAME from Database.utils import generate_insert def populate_db_from_staff_report(filename: str): with open(r'../vinfen_config.yaml') as file: # The FullLoader parameter handles the c...
c7179367c543f0371665ed6866695d1003f7d340
210d838801f8bc74302617bbff0a267277012ca4
/problems/lc46 - Permutations.py
05e09910d44d37beca7a367d43449da0fc9fb60e
[]
no_license
osbetel/LeetCode
4dbf839a23379e0772acaaa6499905ff30ee5d22
721a80505c0fcbfa3b0c19f0659e0cdb91af0789
refs/heads/master
2021-12-15T02:19:48.367527
2021-12-01T19:23:38
2021-12-01T19:23:38
155,050,328
0
0
null
null
null
null
UTF-8
Python
false
false
2,023
py
lc46 - Permutations.py
def permute(nums: [int], orig_len): """ :param nums: input list :param orig_len: the length of the original input list. Determines which permutations go in the final result :return: all possible ORDERINGS of the input list eg: [1,2,3] -> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] app...
72b417b79f0d8cfd54e5585e486fa8db358fd1e0
74a6a8f8ac93f81dc714ba979e837dc78238a9e7
/2-AddTwoNumber-Loop-Ans.py
c23ae9f670f98df141626c75239d450bbfe3a368
[ "MIT" ]
permissive
kokokuo/oh-leetcode
15cfe7a5860cb85173b54a77c05f42019f9045a0
253ccd7005acb28b9d14176d4b65fe0d114442a4
refs/heads/master
2021-06-17T15:25:38.760574
2019-09-02T08:10:28
2019-09-02T08:10:28
199,809,064
1
0
MIT
2021-04-20T18:29:37
2019-07-31T08:01:27
Python
UTF-8
Python
false
false
1,258
py
2-AddTwoNumber-Loop-Ans.py
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: carry = 0 add1 = l1 add2 = l2 # 建立一個起始的 Head 與 一個指向為前一個紀錄的 Node h...
a30e2eee2f0d81bf54b0dd88a653c641081abbea
7071e10ac6a1b524c330811252f41b6f03171455
/wordcards/views.py
9565ff357f4b2a4ca9377788c57e7d15abbf19c6
[]
no_license
spencerzhang91/Crow
61afff9a161d107cd44236ea5ae601c6aba166f1
1efa1ad8f7af4994ac9ca1e1c2e503d9622e2259
refs/heads/master
2021-10-09T08:33:31.354003
2018-12-24T10:36:33
2018-12-24T10:36:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,780
py
views.py
from django.shortcuts import render, redirect from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from django.http import JsonResponse from django.template import loader from .models import Word, Image from .tools import modifyDB from pprint import pprint def index(request): ...
cc861d418b526515739fba2fed6af3daf5bf7349
f3507c805a9bf9e2611dbc458cce24240508b077
/Full.py
ac5ecd377c15a73f2deada46553de4977f95d8d6
[ "MIT" ]
permissive
PenguinOwl/RaspberryPiHydroponics
8a5b1bc9f31c7d495f046868e4748423f7bfc00f
aeec3fe649ac25ec5abb66be86b44b5877f5b578
refs/heads/master
2020-03-08T07:45:21.062029
2017-11-25T01:25:59
2017-11-25T01:25:59
128,002,626
0
0
null
2018-04-04T03:35:58
2018-04-04T03:35:58
null
UTF-8
Python
false
false
1,216
py
Full.py
#!/usr/bin/env python # Made by Multipixelone # Automatic Ebb and Flow Hydroponics control from time import sleep import RPi.GPIO as GPIO import schedule import atexit import threading GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) GPIO.setup(22, GPIO.OUT) GPIO.output(17, 0) GPIO.output(22, 0) print("Welcome to Raspbe...
27cbbdb459a59f5b086b661e4e9dbcf0bc74c652
2be2324ae6219ad4c6d6328e0ee7704c31d68622
/bot.py
89a4592cee26cb7f6da9d8fc06f5214a65c2e6de
[ "MIT" ]
permissive
ZacJoffe/zombies-randomizer
160d5454a96b97aeceb7fc379d4758f4900bf5aa
82a347359da58e799930954faf682867cb016331
refs/heads/master
2022-12-11T01:49:52.259781
2020-08-17T20:02:59
2020-08-17T20:02:59
269,738,276
0
0
null
null
null
null
UTF-8
Python
false
false
3,425
py
bot.py
#!/usr/bin/env python3 import os import random from dotenv import load_dotenv from discord.ext import commands # load .env file if exists # DISCORD_TOKEN env var is set as a config var within Heroku load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') random.seed() default_bo1_maps = [ "Kino Der Toten", "Five",...
e0a65f1e6b65b4f46aed9949bce88118a85d53dc
d8ac3982ad6aa394dbb24e911c546b73ceccdc66
/aux.py
b2b33952eac527b45b6c394a98dd8c6c666fdc17
[ "MIT" ]
permissive
paleobiodb/data_archiver
289df8ac748021e1113644f6f708e2e79ab1e41c
2e1658c1def0f4cb312f4ddc52fbd2c5e13f567d
refs/heads/master
2021-06-08T07:19:30.754560
2020-02-11T21:56:52
2020-02-11T21:56:52
144,185,467
3
0
MIT
2021-05-06T19:13:38
2018-08-09T17:46:22
Python
UTF-8
Python
false
false
10,830
py
aux.py
from flask import make_response, jsonify def responder(msg, status, pbdb_id=None): """Format a JSON response.""" if pbdb_id: return make_response(jsonify({'message': msg, 'status': status, 'pbdb_id': pbdb_id}), status) els...
1c9302da42eb387f50282e52ac257f1065e26186
6fd5d30cf21716893388442eb0f9c16e13b91315
/ABC/panasonic2020/d.py
efe15d88bcae985da3fbc9478a2bad2cb86ad290
[]
no_license
mgmk2/atcoder-python
23d45f3195977f1f5839f6a6315e19cac80da2be
beec5857a8df2957ff7b688f717d4253b4196e10
refs/heads/master
2021-06-09T20:00:22.500222
2021-05-04T15:36:39
2021-05-04T15:36:39
179,711,330
1
0
null
null
null
null
UTF-8
Python
false
false
265
py
d.py
c = 'abcdefghij' def join(s, k, n): if len(s) == n: return [s] ans = [] for i in range(k): ans += join(s + c[i], k, n) ans += join(s + c[k], k + 1, n) return ans n = int(input()) ans = join('', 0, n) for x in ans: print(x)
696a869ad795b2b93c3f905b9b08dd95c4a2599f
7c6a9fc5daf773aa0d9b1bd5d07b0a45690ecd5e
/day9/part2.py
ebf731dc4d118982d8f3be2dbc2ca019053c7782
[]
no_license
Segmev/AdventOfCode2020
91533b841c295590b6ee022a2bd56da2234da75e
f6095827aedd88b47d32f74542ab51871fe577fd
refs/heads/master
2023-02-12T08:30:40.706328
2021-01-01T15:29:15
2021-01-01T15:29:15
318,764,137
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
part2.py
class HackCodeCal: def __init__(self): self.nbs = [] self.canditates = [] def printWeaknesses(self, weakness): for index, _ in enumerate(self.nbs): total = 0 istart = index while index < len(self.nbs): total += self.nbs[index] ...
c7e3fafd1db8ea16001b0cdd8fe8fe302053ed76
ae43c5eaa5c4a7bcb38eda758c7e1baa576b1873
/source/task1.py
e0ea367797bcc6db89b6181aedd82f66ebbb6dd2
[]
no_license
chravi414/PythonICP2
9925f50e0c8bd628086cb324594c664bfb6234eb
97fd936f9568525d2687e86af395cda256d5a163
refs/heads/master
2022-10-23T19:34:59.643428
2020-06-11T18:24:59
2020-06-11T18:24:59
271,615,194
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
task1.py
weight_lbs = [] weight_kgs = [] CONVERSION_FACTOR = 0.453592 n = int(input('No.of Students: \n')) i = 1 while i <= n: wt = int(input()) weight_lbs.append(wt) i = i + 1 for i in weight_lbs: weight_kgs.append(round((i * CONVERSION_FACTOR), 2)) print(weight_kgs)
cbae1470e46184c8a3b830ff5ad9076fe0f1864f
5affcdc64adaa36d226664c9171169559f4c290f
/programming-exercises/ch4/population.py
85f66d46bfab4ddf10e4986aabf538c1536a47ea
[]
no_license
lima-BEAN/python-workbook
4936f1db93d21131785c3d6caa3b44e775bf1fb5
6829b380ce921ca0edf895e7e0da99fe19ee7e38
refs/heads/master
2021-01-18T05:36:13.514336
2016-11-29T23:10:28
2016-11-29T23:10:28
68,326,522
1
0
null
null
null
null
UTF-8
Python
false
false
720
py
population.py
# Write a program that predicts the approximate size of a population of organisms # The application should use text boxes to allow the user to enter the starting # number of organisms, the average daily population increase (as percentage), # and the number of days the organisms will be left to multiply. number_organis...
d3a817c4f8be5973e1e3522878e1c0173f621d6b
a05a98eaffaa4dbe0a0be792242486165f7d798f
/lib/euclidean_algorithm.py
bc60069736a6d09e177dd028da84a038b2e52afa
[]
no_license
iangallagherm/math_scripts
96fd5f61130e54e6ef08d3708ae997d06e6651ee
54204170533608761a9f9650696f6a37de36fc54
refs/heads/main
2023-01-01T23:57:12.393981
2020-10-21T00:18:16
2020-10-21T00:18:16
305,823,374
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
euclidean_algorithm.py
""" Computes the gcd of two integers a and b """ def gcd(a, b): while b != 0: t = b b = a % b a = t # Absolute value necessary otherwise -gcd(a, b) may be returned return abs(a) """ Takes two integers a and b and computes values which satisfy Bezout's identity. Returns...
77f3d8c4a72d91b2c6e1d986747f8dae3ce9a925
bc53e2268eaa8e4b2cbea837375b60f89a2f9e6d
/scripts/python/tests/test_gene_cache.py
36300f4ca59e9b997269bf2348126377a58a3162
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
eweitz/ideogram
f2375203a2d7cfcacde1e42197e6d8cc8ca05ac4
4f904b49eecf6a4d47937da995550acc76802262
refs/heads/master
2023-08-17T08:37:00.713360
2023-08-11T12:54:22
2023-08-11T12:54:22
30,278,442
275
87
NOASSERTION
2023-09-05T11:29:35
2015-02-04T03:05:48
JavaScript
UTF-8
Python
false
false
1,620
py
test_gene_cache.py
"""Tests for Wikipedia view counts and derived metrics To run: $ pwd python $ cd tests $ pytest -s """ import sys # Ensures `cache` package (and any subpackages) can be imported # TODO: Find way to avoid this kludge sys.path += ['..', '../cache'] from cache.gene_cache import GeneCache def test_writ...
62290dd7ad166d80b039fbf5bf03799ef6eff6ae
05a70c12df808455100598d8a6fdb5635c641ab8
/Ene-Jun-2018/Claudia Saldivar/practica2/try_it_yourself9/Ice Cream Stand.py
dc53529564abe1db1d7ff1027311000dd75ccac9
[ "MIT" ]
permissive
Jonathan-aguilar/DAS_Sistemas
991edcc929c33ba9bb8bc84e741b55c10a8420a3
4d02efc64161871084df1bff258112351e5d1241
refs/heads/development
2023-07-24T12:26:54.698452
2021-09-02T20:52:26
2021-09-02T20:52:26
289,764,892
1
0
MIT
2021-09-02T20:52:27
2020-08-23T20:54:55
Python
UTF-8
Python
false
false
1,572
py
Ice Cream Stand.py
class Restaurant(): """A class representing a restaurant.""" def __init__(self, name, cuisine_type): """Initialize the restaurant.""" self.name = name.title() self.cuisine_type = cuisine_type self.number_served = 0 def describe_restaurant(self): """Display a summary...
0bcc5e9b0ab187627b6e50357b344c8af20884c1
41b031bd7449c75d215478dbb109c823c1c2bccc
/spectrocrunch/io/xiaedftonexus.py
dd5578955cdcfcfa43f596ac4a6a390c4175b232
[ "MIT" ]
permissive
woutdenolf/spectrocrunch
dfa667528aa2bb9845d371fef29c4659bcd7392e
944637c76671adc2fdb909f7a62196bde27c9d22
refs/heads/master
2022-12-10T14:31:28.101355
2022-11-30T10:00:49
2022-11-30T10:00:49
79,220,131
4
0
MIT
2022-11-30T10:00:49
2017-01-17T11:16:57
Python
UTF-8
Python
false
false
16,035
py
xiaedftonexus.py
# -*- coding: utf-8 -*- from __future__ import division import numpy as np from psutil import virtual_memory from collections import defaultdict import logging from . import xiaedf from . import nxfs from . import spec from ..utils import units from ..instruments.configuration import getinstrument logger = logging.g...
4a765216c171096468b2d27a14208ca9d80c15b5
c8c9bf1957068008ea5d4ccdc4cdf799b42fca7b
/registry/views.py
d1ea743d131506698bdc1b996e55d290a2796139
[]
no_license
blackdre/contact_api
1f85b4a13c31e0920754c650bf35e53d731bee76
b94adab2a10ff091b0098432e1c7337bb4ddddcb
refs/heads/main
2023-04-21T10:54:44.124799
2021-04-30T20:31:56
2021-04-30T20:31:56
363,236,467
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
views.py
from django.contrib.auth import get_user_model from rest_framework import viewsets from .models import Contact from .serializers import ContactSerializer, UserSerializer class ContactViewSet(viewsets.ModelViewSet): queryset = Contact.objects.all() serializer_class = ContactSerializer class UserViewSet(views...
04f59500343afbe0a4b16ba3ab0bff279701371b
e34b1682433449375985dc3256eaec31c87dd9fb
/multicolor_led.py
ce517814a90d463fff6118aa9fdd8ec99b1d1e5c
[]
no_license
SPConrad/grand_pi_experiments
1c9cba1838a9dbe06adc8b367a43e19b6c62556f
13934a0bfe11ff41cf07f6a11070cd0e9a4ce53f
refs/heads/master
2021-04-28T15:41:59.826531
2018-12-11T23:55:11
2018-12-11T23:55:11
121,996,461
0
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
multicolor_led.py
#!/usr/local/bin/python import RPi.GPIO as GPIO import time,random RUNNING = True GPIO.setmode(GPIO.BCM) red = 26 green = 16 blue = 19 GPIO.setup(red, GPIO.OUT) GPIO.setup(green, GPIO.OUT) GPIO.setup(blue, GPIO.OUT) Freq = 100 #hz RED = GPIO.PWM(red, Freq) RED.start(0) GREEN = GPIO.PWM(green, Freq) GREEN.start(0)...
13636d9f7956f782e4de624c45f475781d70b86f
0259ca9a5d8b162919405bf65c53fa392f6654e5
/src/game/__init__.py
825f47318b8d643f46948abab20d61643185fe59
[]
no_license
timothy-breitenfeldt/mtg-audio
bd7ffc55a65df3344f833a1e8f1dc8fd89bfd318
66af6f87ad0932575f8ae06f9086821ee61d1e29
refs/heads/master
2021-05-21T03:45:20.356505
2020-04-17T15:33:09
2020-04-17T15:33:09
252,527,666
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
__init__.py
from game.player import Player from game.databaseManager import DatabaseManager from game.gameController import GameController
0b89ced83147cff02978cd9c4c98cdeaa3945f22
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03286/s917193163.py
0ae08d2a21080c1e0f730c57d8ebfd08e1388691
[]
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
245
py
s917193163.py
N = int(input()) digits = [] i = 1 while N != 0: if N % pow(2,i) == 0: digits.append('0') else: digits.append('1') N -= pow(-2,i-1) i += 1 if digits: print("".join(reversed(digits))) else: print("0")
2b2eb87eec6f904d664704389ead133fec07fc75
6cc61a499cb919c1d36a71f698e32a3d88f43ecd
/gb_portfolio/main.py
02a505702b18e702f22542bd213a6b2ee2c6affc
[]
no_license
gbotev/gb_portfolio
5b9f0f5074aa470999340f8ee4d03c6e139863a5
ffce9de1b8e74b5f9e4c72ccf91678dbbf496392
refs/heads/master
2020-05-02T18:38:01.762639
2019-03-28T06:02:44
2019-03-28T06:02:44
178,134,916
0
0
null
null
null
null
UTF-8
Python
false
false
5,400
py
main.py
import os import time from argparse import ArgumentParser from gbportfolio.tools.utils import create_timespan import logging import json from gbportfolio.constants import * import gbportfolio.tools.configprocess as conf from gbportfolio.data.data import GlobalData from gbportfolio.data.data import CoinsDataframe from g...
92d109c3584bcb0763562570316fe902a3755434
3aa180ea97515801e853c4ff328d5d3f9741577c
/main.py
f0bc4f0abbe4f5e81a48c8aee5b7ce521ddc8ab1
[ "MIT" ]
permissive
megler/Day3-Treasure-Island
7488248c9d9a1f2ea4f9a9291b001d6776c4709d
b5886879670b1429f71c493ae5df45b03acb68b0
refs/heads/main
2023-09-04T05:27:31.807160
2021-10-30T01:45:22
2021-10-30T01:45:22
422,757,225
0
0
null
null
null
null
UTF-8
Python
false
false
3,048
py
main.py
# treasureIsland.py # # Python Bootcamp Day 3 - Treasure Island # Usage: # Easy Choose Your Own Adventure Game # # Marceia Egler Sept 23, 2021 print(''' ******************************************************************************* | | | | _____...
1d766bf7cb9880795c985659b34be8297751a8df
21029526425941d3fabde07526d83005de6b5d5d
/review/core/migrations/0020_auto_20201006_1810.py
dec0a74dc365c678c5427fc6e39e209939481438
[]
no_license
kgolezardi/Performance-Review-Backend
f8a22684963c72a600e4acb024318689cbf1cc9b
75a825f53cbdf165756062c6b2789a9130770b4d
refs/heads/master
2023-04-30T07:31:11.187767
2022-08-21T06:28:42
2022-08-21T06:28:42
225,005,319
8
2
null
2023-04-21T21:09:27
2019-11-30T11:59:04
Python
UTF-8
Python
false
false
2,465
py
0020_auto_20201006_1810.py
# Generated by Django 3.1.2 on 2020-10-06 18:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core', '0019_auto_202010...
64c6c62ad6083c345bfaba80286e2f1fb48cfdd7
3a890c9e579d747d4ad5966079b628ddcc0fa665
/Genetic.py
3ee17a7731519640935b47dc876aae4ca4019920
[]
no_license
mohammad-hasani/Forecasting
4164eb99f59e5fcd541395c779f5d52f67cdb150
a476119671835afdc8e4052c5a792d22327a41a0
refs/heads/master
2022-12-31T21:45:17.185820
2020-10-26T06:56:05
2020-10-26T06:56:05
307,275,015
3
0
null
null
null
null
UTF-8
Python
false
false
3,068
py
Genetic.py
import numpy as np from Tools import * from Model import Model from keras.losses import MeanSquaredError class GA(object): def __init__(self, model, X_train, y_train, n_population=200, n_iteration=20): self.n_population = n_population self.population = list() self.mates = None sel...
b98945091b6d10d5a72c8ebcfe9e34d1880dd83e
e4c9b404912d177ae9951d8c8668438c35095641
/corcu/pagina/models.py
8f5ede907465d5c14f49deb9c4e0049d054114e2
[]
no_license
pablinho6699/corcubion-pagina
28c66f993d6fad5cf2aae8dd924853f4b223a3d8
9dbcaa1d5c181c19d65dc1b026f530eb708bcd61
refs/heads/master
2021-01-20T15:19:35.673701
2017-05-15T19:39:44
2017-05-15T19:39:44
90,754,713
0
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
models.py
from __future__ import unicode_literals from django.db import models # Create your models here. class Equipos(models.Model): nombreEquipo = models.CharField(max_length=50) categoria = models.CharField(max_length=50) socios = models.CharField(max_length=100) def __unicode__(self): return self.nombreEquipo cl...
59422b6efc29f5bc92a1ee86458b4c0f31cbeca7
68395d07a052039474ee09f96c8f9de1131ca0fa
/metoffice_test.py
60960c27f42464eb02bd1f6615d8486aa2fc0b61
[ "MIT" ]
permissive
will675/rpi-weather
ee459d8081de22a1996c98b7ca3aaf3b03a7db5e
a192162438d4316e18d753059c201c7c8da47410
refs/heads/master
2021-01-24T19:37:35.156176
2016-11-15T15:56:46
2016-11-15T15:56:46
65,365,227
0
0
null
2016-10-16T07:09:53
2016-08-10T08:35:50
Python
UTF-8
Python
false
false
6,953
py
metoffice_test.py
import time import httplib import sys import json import ConfigParser METOFFICE_URL = "datapoint.metoffice.gov.uk" REQ_BASE = r"/public/data/val/wxfcs/all/json/" CONFIG_FILE = "./weather.cfg" API_KEY = None LOCATION_ID = None ICON_MAP = { # Day forecast codes only # Met Office weather code LED 8x8 ico...
d6325c61452639822bf065569a212383fe097b18
eb3683f9127befb9ef96d8eb801206cf7b84d6a7
/stypy/sgmc/sgmc_cache/unittest/__main__.py
a41f8352d21d1ff5c6c6c9f92051b7fc638d406f
[]
no_license
ComputationalReflection/stypy
61ec27333a12f76ac055d13f8969d3e0de172f88
be66ae846c82ac40ba7b48f9880d6e3990681a5b
refs/heads/master
2021-05-13T18:24:29.005894
2018-06-14T15:42:50
2018-06-14T15:42:50
116,855,812
2
0
null
null
null
null
UTF-8
Python
false
false
7,269
py
__main__.py
# -*- coding: utf-8 -*- """ ORIGINAL PROGRAM SOURCE CODE: 1: '''Main entry point''' 2: 3: import sys 4: if sys.argv[0].endswith("__main__.py"): 5: sys.argv[0] = "python -m unittest" 6: 7: __unittest = True 8: 9: from .main import main, TestProgram, USAGE_AS_MAIN 10: TestProgram.USAGE = USAGE_AS_MAIN 11: 12: m...
89de725f6f8efd1df760f3d62641dc5d9b26ac12
ea4ca37cf33ffb6e90c492802f61c2ec303e52f6
/BinaryPattern/train_binary.py
e2281b5b3c57826d1df26df926819ab469dc662c
[]
no_license
webstorage119/Iris_pattern_classification
a59ac27864078c5a2475a4bfcf743ce412c09aa9
6050627f39034638239b83ccc9f752a8557ff0e9
refs/heads/master
2023-04-08T18:50:46.723478
2021-04-18T05:38:55
2021-04-18T05:38:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,545
py
train_binary.py
from BinaryPattern.util.constants import * from BinaryPattern.util.dataloader import DataLoader from BinaryPattern.util.output import makeoutput, make_dir from BinaryPattern.util.gendataloader import ImageGenerator from keras import backend as K from tensorflow.keras.losses import binary_crossentropy, categorical_cross...
ab9131f12e5017f63c5d74fa2f0baa0f788f2f57
d3c1b32aae5a4b902046673b0b2b8c8cf538e2f5
/test/conftest.py
4abd970cedd358d02c94db133463f35b0bb9fc9d
[ "MIT" ]
permissive
zachary124/sqlalchemy-drill
9cdb26ef96397fd912b2e56a12b1fddd70803d66
7161bd62ebdf669c9d8067a832a909a72d15b445
refs/heads/master
2020-07-16T08:36:57.344949
2019-05-23T12:32:54
2019-05-23T12:32:54
205,755,841
8
1
NOASSERTION
2019-09-02T01:38:34
2019-09-02T01:38:34
null
UTF-8
Python
false
false
344
py
conftest.py
from sqlalchemy.dialects import registry registry.register("drill", "sqlalchemy_drill.pyodbc", "DrillDialect_pyodbc") registry.register("drill.pyodbc", "sqlalchemy_drill.pyodbc", "DrillDialect_pyodbc") registry.register("drill.pydrill", "sqlalchemy_drill.pydrill", "DrillDialect_pydrill") from sqlalchemy.testing.plugi...
bc755294ac2f97cccd3e97b947320559ea117654
3b6c321904994941e0fa5f3fdd74c694fc6d8828
/moni.py
3b3797a51c787a9e8f8e451f95fe024c73d72041
[]
no_license
Moni62070/PythonLearningRepo
4bdf8ae4035fb1100c6bc7a21149dc454d7b04ee
bf7705fbcc94ec170870733d073fbf7485ef7e27
refs/heads/master
2023-06-01T22:41:22.803310
2021-06-14T07:12:14
2021-06-14T07:12:14
376,368,415
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
moni.py
x=int(input("Enter first number: ")) y=int(input("Enter second number: ")) x,y=y,x print('The value of x after swapping: {}'.format(x)) print('The value of y after swapping: {}'.format(y))
838476ada67e9cdeb90c91757d27287b0b131339
0c4a6e526056371c4979b5a72b8f29e5a34334d6
/inference.py
0ccac1dbc181027189f843c3828b463d42633e95
[]
no_license
source-hub/pytorch-boilerplate
2a0d7e4ed0b1f62f3167d4c6146316df3c39f472
8441db908609df2c9441ea6c13e8350626ad73a6
refs/heads/master
2022-11-19T21:20:41.015907
2020-07-26T09:33:07
2020-07-26T09:33:07
282,598,644
0
0
null
null
null
null
UTF-8
Python
false
false
1,635
py
inference.py
import torch from config import Config as cfg from nets.simple_conv import Network from skimage import io, transform import argparse import pickle def load_model(path=None): device=cfg["device"] model=Network(10) models.load_state_dict(torch.load(path)) model.eval() model.to(devi...
287a82d43b712a820e70910841fef00a5a1b04a6
d19f46c0635d73a4d767c7e6f89e7beacfc9c9c5
/audio.py
27b08279597f9c85a5147579d7b2129a4ac165af
[]
no_license
isrivastav99/AudioSplit
e91311524734f3d4e6b50667c88595b7a81f06e2
48f6ae8ef2c07225ef1f0fca467534956d32b01f
refs/heads/master
2020-12-21T07:31:33.086290
2020-01-26T18:52:04
2020-01-26T18:52:04
236,359,363
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
audio.py
from pydub import AudioSegment #from pydub.playback import play # read in audio file and get the two mono tracks sound_stereo = AudioSegment.from_file("/home/ishaan/Documents/py/ay.mp3", format="mp3") sound_monoL = sound_stereo.split_to_mono()[0] sound_monoR = sound_stereo.split_to_mono()[1] # Invert phase of the Rig...
952201f497980978e765c426431da7652037ed8c
69d7289d4a771e13a3ef9549266b51aad178a8ab
/model/fund_symbol.py
f4d3c1eea1ac2b5442ad43eade0ea741fae08181
[]
no_license
sunaaron/trading
aa54e2ef4c1339c0f9b19d993b6d9eb34d53848b
5b4fd392fbe722cfd787a55d8340fe393f94deb5
refs/heads/master
2021-09-04T07:52:10.956938
2018-01-17T06:17:39
2018-01-17T06:17:39
110,321,051
0
0
null
null
null
null
UTF-8
Python
false
false
4,438
py
fund_symbol.py
''' Created on Dec 9, 2017 @author: Aaron ''' from tools import misc from ioutil import format from model.symbol import Symbol class FundSymbol(Symbol): dict_attrs = [ "symbol", "symbol_type", "desc", "history_prices", "attr_d...
4940329f6603dd2dd1bb222a4b2f5b612a927f2b
e95e27ecd0ca5b3acf28ec4d61c8c1c8cbcc38dd
/tools/factory.py
665a2f9e31b83056df13eb88b090dca02a5393f8
[ "MIT" ]
permissive
skyleaworlder/mips-disassembler.py
5c27d0ab582219fd0a90f58b6205828d200a48e0
3fc392fef1caa7a14a21ce2e4bc2c94cfe691a43
refs/heads/main
2023-02-05T06:46:51.839767
2020-12-23T14:17:17
2020-12-23T14:17:17
321,319,832
6
0
null
null
null
null
UTF-8
Python
false
false
7,300
py
factory.py
from .utils import hexCat class Instr_Factory: def __init__( self, instr: str, OP: int, Rs: int, Rt: int, Rd: int, SA: int, FUNCT: int ): self.instr = instr self.OP = OP self.Rs = Rs self.Rt = Rt self.Rd = Rd self.SA = SA self.FUNCT = FUNC...
02b05c97b2a7fb332f244567608fa35fb34014f7
cebd36ed4a4de77ba9b862980a5bb394dfa31f58
/tests/business_layer_test.py
bafef331a319e0b252bee3d4b45240e7cda490fd
[]
no_license
RomanBoiko/smk_betfair_api_adapter
40de341e4db596acf36f76c6351519fa67d4e8d6
9f09676d243e23c3cb0cdeef0d3ad16105ce7637
refs/heads/master
2016-09-06T18:10:42.818689
2013-05-13T04:02:06
2013-05-13T04:02:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
business_layer_test.py
import time import unittest import smkadapter.adapter_context as adapter_context import smkadapter.smk_api as smk_api from smkadapter.business_layer import SessionStorage from smarkets.exceptions import SocketDisconnected class SessionStorageTest(unittest.TestCase): storage = SessionStorage() def test_that_...
bce9a59c0ceff19558c45959c1de2005469b5669
0b762073f0d2ba5bff205c80fb1785c9222d6745
/projects/newsline/apps/web/newsworm/apps.py
c7f8b8ceba464938c454c42f4b887dcd444a1f44
[]
no_license
derrandz/python-news-crawler
b97bd43e9e77c9fab938e28cede65096143668df
ad4eb60d354c6e0c3aa467b186d588f97874d1df
refs/heads/master
2023-02-16T10:10:27.834962
2021-01-09T21:24:14
2021-01-09T21:24:14
328,246,814
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
apps.py
from django.apps import AppConfig class NewswormConfig(AppConfig): name = 'newsworm'
c4ef58bfa4f7262237ae204016500797e1ddbfe0
2f306f73283d5f0b078430f16f8d6b9ff2e26cba
/Line Search in TensorFlow/linesearchers/np/graphs/__init__.py
70f52299b051c0af9714c8038c24e58808ccc1e9
[]
no_license
charlesfrye/tensorflow_fiddles
0678e77920d4f9848d68c05189f0afb7209e6fd7
494d18ebd67657b074eb01b9590833e5f0beca7a
refs/heads/master
2020-03-07T12:53:33.455719
2018-03-31T01:24:59
2018-03-31T01:24:59
127,487,611
0
0
null
null
null
null
UTF-8
Python
false
false
24
py
__init__.py
from . import quadratics
e5c7056d1eb4c7af25f7785f47d96835c71bc327
73670aa7199188e2f0b1afd49a41eee1234764cc
/webapp/Prototype/suggest_tour/main/migrations/0002_auto_20201024_1618.py
d3b2222d9ca3c1f7159e6b9fc1f1eb502e08bcd7
[]
no_license
MinjiKim77/bigdata2020
26c752e646e73853afbc912e70fb8c2094dd26a7
fceb356e3af055bc8be64818f02fdf90d9baa6f6
refs/heads/master
2023-01-12T22:34:05.694104
2020-11-25T06:58:53
2020-11-25T06:58:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
0002_auto_20201024_1618.py
# Generated by Django 3.0.3 on 2020-10-24 07:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0001_initial'), ] operations = [ migrations.AlterModelTable( name='tourlistuser', table='TOURLIST_USER', ), ...
4b1392c3f07ceac6e4d9b697e099610db40bed04
41ddc1b9cf9b258c1aa5c0acba043210483e20ce
/assignment 3_to print given number in words .py
a5ad27703fb2e6eb2f5f07c1d543fab45919ba41
[]
no_license
Dhanya1234/python-assignment-3
e97891065fcc4b57cd88b39ccdf46eb7b4642bc6
0b77b07c228959e46ebe37b7dedaa2cd8068e95d
refs/heads/master
2022-11-11T01:10:30.349745
2020-06-21T04:12:31
2020-06-21T04:12:31
273,694,719
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
assignment 3_to print given number in words .py
a=int(input("enter a number(1-5")) if(a==1): print("one") elif(a==2): print("two") elif(a==3): print("three") elif(a==4): print("four") elif(a==5): print("five")
db124987d263dd26cb6b6ec7baacb428995c33d4
bbd69601912a3361d788efd03a47f9d4e3bac09e
/demo/MultiSplitterWindow.py
61414dc1f6850dcae5beb7bd8aa69a0a9d7a5ab7
[]
no_license
wxWidgets/Phoenix
56929484460a0399a8f1d9582bc77c20aa14748d
a1184286703cf24c4b88e5bc14cf2979c1b1ea00
refs/heads/master
2023-09-01T07:10:17.437093
2023-08-31T05:38:01
2023-08-31T05:38:01
5,078,061
2,268
677
null
2023-09-09T17:06:59
2012-07-17T06:22:25
Python
UTF-8
Python
false
false
4,796
py
MultiSplitterWindow.py
#!/usr/bin/env python import wx from wx.lib.splitter import MultiSplitterWindow #---------------------------------------------------------------------- class SamplePane(wx.Panel): """ Just a simple test window to put into the splitter. """ def __init__(self, parent, colour, label): wx.Panel._...
b454146d99e6e9e8940fa6b3437e6d2f46709313
64da2ffac0a4c325bb9abc2910862e39de4d6204
/reinforcement_learning/trainers.py
95f727daaa141832e8175fc27c5bc8234e94598c
[]
no_license
bryonkucharski/text-based-rl-generalization
5fd5422cc6ab34503a247ab7ee19a56f73df579c
16724d4af1fe52b6eba304abfd42fb646ce6ac2f
refs/heads/master
2022-10-16T01:57:36.190507
2020-06-11T01:27:54
2020-06-11T01:27:54
269,798,263
1
0
null
null
null
null
UTF-8
Python
false
false
47,933
py
trainers.py
import torch import torch.nn as nn import torch.optim as optim import torch.autograd as autograd import torch.nn.functional as F import torch.multiprocessing as mp from torch.utils.data import DataLoader, RandomSampler, SubsetRandomSampler from transformers import AdamW, BertConfig from transformers import get_linear...
7ec57adf492805aa317685581ecffb1788809ccd
294d11adc999fc1360d94dbbcf2c729df2868d42
/remove-all-starred-github-repos.py
06dfad3782f0ba456330a2664bfef9923e30296e
[]
no_license
silvrwolfboy/github-tools
134734442e84e744508543ec817ca8de39bae92a
1a4c26948f6327bb9c867ae97b508a015f895b97
refs/heads/master
2021-02-24T05:31:29.370242
2017-08-29T10:09:11
2017-08-29T10:09:11
245,421,128
0
1
null
2020-03-06T13:01:53
2020-03-06T13:01:53
null
UTF-8
Python
false
false
1,073
py
remove-all-starred-github-repos.py
import sys import getpass import github def login(): a = raw_input("Account: ") p = getpass.getpass("Password: ") g = github.Github(a, p) u = g.get_user() try: logged_in = u.login except github.BadCredentialsException, e: print "\nCouldn't log in. Again? (y)" if raw_i...
0a5e394402319a30ca54afb032dbc1f40db5a92c
8aa5f9b995e102cb2a544da80267e177eea87476
/b24project/centerpokupok/translation.py
6755b46a660bc87af3c5d7e34d804f6fa74e3aea
[]
no_license
alexvnukoff/project
c20d2d36b8b600971e2c64d1287ba738f3e4110d
32e71879751393a8b54de49f41a11835c7830712
refs/heads/master
2022-12-13T03:44:43.081137
2017-06-04T16:07:39
2017-06-04T16:07:39
93,338,611
0
1
null
2022-11-22T01:28:07
2017-06-04T20:09:25
HTML
UTF-8
Python
false
false
477
py
translation.py
from modeltranslation.decorators import register from modeltranslation.translator import TranslationOptions from centerpokupok.models import B2CProduct, B2CProductCategory, Coupon @register(B2CProductCategory) class B2CProductCategoryTranslationOptions(TranslationOptions): fields = ('name', 'slug',) @register(...
c7cc12435abaf7ea0e72cd7962b185c181284b94
51430366dbc826744c34e4d897ecf46406bf1f9d
/pathology/extract_patches.py
6fcf937912163da1cbb63643d0058bb8592f9e1e
[]
no_license
drewlinsley/pathology_data
0c3b1d9f88398ceb89c31288d596e752729e8b1d
571024a7578546f83e8c6daf1a039b73e40ccf6f
refs/heads/master
2021-01-19T06:10:22.081487
2017-08-17T17:24:57
2017-08-17T17:24:57
100,628,380
0
0
null
null
null
null
UTF-8
Python
false
false
11,134
py
extract_patches.py
import xml.etree.ElementTree as ET from pathology_config import PATHOLOGYconfig import openslide as ops from openslide import ImageSlide, open_slide from openslide.deepzoom import DeepZoomGenerator from PIL import Image from shapely import geometry from matplotlib import pyplot as plt from scipy.misc import imread from...
df38749a561a908589133c06a0946424166c3c4d
bc4c6706a662bff2118c5df4838f87aa057a2198
/testcase/TC_005_search.py
7532b98062328125ba72c81e99cb6a4120924257
[]
no_license
suwinphyu/selenium-python
11556cf6cb29bc292b707ad050297aa11ef14c5a
a47a5fc2f87a31feaa9e9be01d56726b83e5aadf
refs/heads/master
2022-06-12T15:26:17.546593
2020-05-07T04:45:50
2020-05-07T04:45:50
261,951,109
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
TC_005_search.py
''' Created on Nov 22, 2017 @author: nex-user001 ''' import unittest from common.driverCreation import DriverStart from common.checkExpectedURL import CheckURL class SearchProduct(DriverStart,CheckURL,unittest.TestCase): def testSearch(self): driver=self.driver #Search ...
5206315d9ced51d870b78c0394aba50c8acd9643
98ce1592cbe541a2c417562444414123b6915cef
/lead_mgt/migrations/0014_interaction_database_date.py
12e493431c4cc3f13610dc512762293031a0c0fe
[]
no_license
RayJowa/Gene
6de1a039491da68a22db344d5c293b005faacbf5
ddc1491c80157ff4192577f7ebe1dbc9b16d7cc7
refs/heads/master
2020-04-16T07:23:37.775727
2019-01-12T12:20:56
2019-01-12T12:20:56
165,363,957
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
0014_interaction_database_date.py
# Generated by Django 2.1.3 on 2018-12-05 12:42 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('lead_mgt', '0013_auto_20181205_1401'), ] operations = [ migrations.AddField( model_name='interactio...
2e571b590455436ec5dcd3be1bd9b7641cab70dc
8a2d18e98ea2410945feebb652fc8fffe94fee71
/Ass 1 - basic/Task 2 Titanic Kaggle/Cleaner.py
8c5d033953593aabdbf6b06217ae5eb2451abf04
[]
no_license
DCCdelang/DataMining
959d18903a615fb6f289bf74bda54ddc7fc243b2
d4de4cc970adfb94193fc1e987efbbdf9c1e95ab
refs/heads/main
2023-05-06T04:31:57.827392
2021-05-21T16:01:16
2021-05-21T16:01:16
353,309,799
0
0
null
null
null
null
UTF-8
Python
false
false
6,150
py
Cleaner.py
from sklearn.preprocessing import OneHotEncoder from sklearn.model_selection import train_test_split import pandas as pd import numpy as np from sklearn import linear_model import math from sklearn.metrics import mean_squared_error, r2_score from sklearn.model_selection import cross_validate def fill_age(df): ...
7b2b53534202a235d62562163b85240438de458a
7c8ea6acc58e2206c87116286318830cef18c768
/python/xxxx.py
43ed43f4f01c9e2ad1bb4b57e907781ad8ef62c8
[]
no_license
vishnu-meera/Algorithms-And-DTs
32478a024e0603caf0043caf40fa8d5c68d8c048
c57a1e8eb9284c8e63f565994fe802c923e464be
refs/heads/master
2021-06-23T15:35:33.029960
2020-03-11T06:36:18
2020-03-11T06:36:18
191,425,105
0
0
null
null
null
null
UTF-8
Python
false
false
1,482
py
xxxx.py
vowels = ['a', 'e', 'i', 'o', 'u'] mapping = {'a': 0, 'e': 1, 'i': 2, 'o': 3, 'u': 4} def isValidSequence(subList): for vowel in vowels: if vowel not in subList: return False return True def longestSubsequence(string, subList, index): if index == len(string): if isValidSequence(...
78057c8cd5002f634dcd9143ad34acdfb2290be9
73ea04fa71e0513ceb58e4bec14a559c7f23716c
/mdpage/feeds.py
3bb10eeab703bb0404fe52c72bfd604537a725e7
[ "MIT" ]
permissive
dakrauth/django-markdown-page
2659f539fe1a01e46ee0c519f3010921d2de416b
77610b929b44ebafa5539b5e7ecdfa6773f565ea
refs/heads/main
2023-01-20T11:02:13.789035
2022-12-25T09:02:27
2022-12-25T09:02:27
30,908,949
1
0
null
null
null
null
UTF-8
Python
false
false
594
py
feeds.py
from django.contrib.syndication.feeds import Feed from django.utils.feedgenerator import Atom1Feed from .models import MarkdownPageArchive class AtomMarkdownPageFeed(Feed): feed_type = Atom1Feed title = 'Markdown Page RSS' description = 'Latest page changes' subtitle = description link = '' ...
e7b88e7cc4754907d6b6618a563465da9270f610
a3e7e4ca858fe0bae7cad54e20a76749e19d2073
/main/submissions.py
2bbac7c4fa2356486bdbfdaa64548740458a74ca
[]
no_license
huyln13/CS2225.CH1501
c9cb0b499a0b2b5279d23f1345e15d0848e8ddc4
8a3d822e9a94a28a4e6c0f92208450caf8aae709
refs/heads/master
2023-02-26T13:17:01.848723
2021-02-07T12:26:25
2021-02-07T12:26:25
297,031,429
0
0
null
null
null
null
UTF-8
Python
false
false
2,316
py
submissions.py
import os import time from os.path import basename import numpy as np import pandas as pd import torch from torch.utils.data import DataLoader from tqdm import tqdm from dataset import dataloader from preprocess import preproc os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # data and model paths test_data = './diabetic-re...
6fcd86927964473b24f2cfa6064bbc32c4a76382
caa72788fdae6b05c5ce4c132b45fc00d55bb607
/47Tkinter/Text文本输入/14-1Text中Indexes的用法.py
f247a3f1008309857010cb68b3677f25abc691df
[]
no_license
DamonZCR/PythonStu
dcc2ba49195f5859fd63227fe0f8f78b36ed46df
88fec97e3bccff47ba1c5f521f53a69af6ca2b2d
refs/heads/master
2023-07-05T06:29:53.300920
2021-08-13T12:22:30
2021-08-13T12:22:30
302,256,563
1
0
null
null
null
null
UTF-8
Python
false
false
202
py
14-1Text中Indexes的用法.py
from tkinter import * root = Tk() text = Text(root, width=30, height=30) text.pack() text.insert(INSERT, 'Damon wants to sleep') print(text.get(1.2, 1.6)) print(text.get("1.2", "1.end")) mainloop()
11cff339a57cb0536257c2e437d84cd763e919b4
3e56b19b96200f65743d3fb6456f11daf2937994
/exercises/bond_ex.py
ab0ca5f48e1b8724e38dd7f2828c832a44828b3c
[]
no_license
matteosan1/finance_course
9c24cb795d59dbbb2e3d36eea023b76cf62399b4
8b44b553aa0f55c945883c4037f8e81ee6a44dde
refs/heads/master
2023-08-31T09:01:47.533712
2023-01-27T11:50:34
2023-01-27T11:50:34
203,589,630
0
1
null
null
null
null
UTF-8
Python
false
false
2,220
py
bond_ex.py
import numpy as np from scipy.optimize import brentq N = 1000 maturity = 10 coupon = 0.09 tenor = 0.5 rates = {i:0.08 for i in range(1, int((maturity/tenor)+1))} price = 0 for tau in range(1, int((maturity/tenor)+1)): price += N * coupon*tenor / (1+rates[tau]*tenor)**(tau) price += N / (1+rates[tau]*tenor)**(tau)...
dde3b343e17a628f518c5fc197efc89459baaf99
92e81b7be041716644df1dd5e59576226b983264
/Task_14.py
2db1471c32d43e07deeff5bef90ab4c916139290
[]
no_license
Dalliya/Home_Work
7d49053f6e9a84f40e9709095a1841a9060b30ca
da80081b216bb6d22bdb9a5c9b827765ff4cf62c
refs/heads/master
2022-10-27T14:42:20.612045
2018-02-01T06:44:33
2018-02-01T06:44:33
115,354,520
0
1
null
2022-10-15T01:03:37
2017-12-25T17:46:53
Python
UTF-8
Python
false
false
86
py
Task_14.py
number = input() def is_even(number): return (number % 2) == 0 print("True")
2d7cd3b3f0ddeceb02f38fd5d4d9a58c9e7b96f8
a1dd933696b27695b58a9b15f9527d2119ded02d
/factorial_recursive.py
2b6e7232fd5284086352baa8926387c0acc3561d
[]
no_license
konradzicho/python-algorithms
5274567473eb30dc7b88b8b6fdb16e35b75ce476
d353d469e336ee1450d91039199fe17aae17076f
refs/heads/master
2021-12-14T14:56:54.974958
2021-11-18T12:22:49
2021-11-18T12:22:49
90,283,559
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
factorial_recursive.py
def factorial_recurrent(n): if(n < 0): return -1 if(n == 0): return 1 else: factorial = n * factorial_recurrent(n-1) return factorial print(factorial_recurrent(-1)) print(1 == factorial_recurrent(0)) print(1 == factorial_recurrent(1)) print(2 == factorial_recurrent(2)) print(6 == factorial_recur...
b8c61c7a6f72f90e7d3114ec4d1c4b56d35d2d80
1b85d00c8ed35776d1206a880921fd8ca65a2f23
/formula/quarterly_is.py
c57b364209ca45a76194632dc0c26326a2f3375d
[]
no_license
harn2412/StockProcess_v2
121c45118c889c4a83e9f1f591b833edd5e50e7c
d3fbf46cf97702ece498a394d98e4c6a18e372f0
refs/heads/master
2021-03-12T10:19:39.708884
2020-04-02T14:34:16
2020-04-02T14:34:16
246,611,527
0
0
null
null
null
null
UTF-8
Python
false
false
3,140
py
quarterly_is.py
"""Cac cong thuc tinh toan lien quan den bang Quarterly IS""" class F1: # F1: Cong thuc tinh toan tu du lieu co san @staticmethod def f_tong_chi_phi_hoat_dong(ser): """Tinh toan tong chi phi hoat dong cua QUY (21017) 21017 = 20007 + 20010 _20011 20007: Chi phi tai chinh 2...
e9a56ca1886f0d1f5104991a04917d9ed6a39cc2
88dda5e76cef286c7db3ae7e5d1a32d28f7815a3
/reviewboard/webapi/resources/default_reviewer.py
ba0cb84a2ec606705f6a1eb661dd3b22347b8a64
[ "MIT" ]
permissive
reviewboard/reviewboard
f4d3bada08ba9d6ef53add2d1fdb82bd6cc63a1e
c3a991f1e9d7682239a1ab0e8661cee6da01d537
refs/heads/master
2023-08-31T09:03:14.170335
2023-08-30T08:22:43
2023-08-30T08:22:43
285,304
1,141
353
MIT
2023-06-07T16:51:02
2009-08-22T21:39:49
Python
UTF-8
Python
false
false
13,996
py
default_reviewer.py
from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from djblets.util.decorators import augment_method_from from djblets.webapi.decorators import (webapi_login_required, webapi_response_errors, we...
e8ccc3ad7bcca7303ef4b17749439e4fb90eabf6
32531c7363a34b9e6c7b2c71be6db7f4927a88ec
/calculator.py
add2d08ff6549bcd8c74eee118c0c0d5ec92ea6b
[]
no_license
InspyrePython/PythonCT
a94389835ce055c756bf0d8b27c5e936c7e00662
9ab5dd0a328762f819a82570bf406277f479225f
refs/heads/master
2022-09-30T12:09:10.228377
2020-06-05T22:57:04
2020-06-05T22:57:04
267,842,664
0
0
null
null
null
null
UTF-8
Python
false
false
2,153
py
calculator.py
CalculatorAppOpened=True while CalculatorAppOpened: try: print('Type add to do addition.') print('Type sub to do subtraction.') print('Type mul to do multipication.') print('Type div to do division.') print('Type mem plus to make the program remember a number.') print('Type mem rec to retrive the number ...
8e8bc97177a237e0609b6a41781332ff9e264477
be6a7e4c8d4e075379b0f82009c272f7657abba4
/logic/userInterface.py
257949973e4ecdddd45d5923736b8e93a7a45669
[]
no_license
Eli212/SoccerStats2
63db4013dd5f2851904700e98073781f74f91827
2c320f6ae416fa24e5f1aed55c1a4b9d348bf50c
refs/heads/master
2023-06-05T19:07:44.570866
2021-06-28T08:57:08
2021-06-28T08:57:08
323,895,469
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
userInterface.py
import tkinter as tk def start_ui(game): window = tk.Tk()
6c22d99dc0d0ce327b4ae5cad49ea0d3673643b8
4484eb7a43de0d5e113944d0bca3d3df3553057a
/python_level_3/chapter3/openSource.py
04695e491f8212f5a4b7477138cd4f36119aceba
[]
no_license
Darkphilip/Python_Study
76b69d257ac1ed87c5eb7e6e004e432d84fb9861
8c927804ab4289070e1503b98579286e2321ee3b
refs/heads/main
2023-06-30T18:45:30.393914
2021-08-09T06:29:52
2021-08-09T06:29:52
391,577,785
0
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
openSource.py
""" * 오픈 소스 장점 1. 개발과정에서 개발 역량 향상 및 보유 스킬 능력 제시 2. In-house 개발과 달리 수많은 디버깅, 개선 등을 통해 신뢰성 및 안정성 높은 어플리케이션 도출 3. 적시에 사용 가능(아키텍처 효용성, 고품질) 4. 문서, 개선가능성, 지적재산권(라이센스) 주의 ** 오픈 소스 참가 장점 1. 답변, 기능추가, 사명감(누군가에게 도움) 2. 다양한 이슈 해결을 통한 개발 역량 강화(개발 실력 상승) 3. 코드퀄리티, 알고리즘, 다양한 지식 향상 4. 구직시 합격 가능성 매우 높음(이미 알려짐, 인지도), 창업시 좋은 팀원 셋업 가능...
ef6f16c9d3b7cd2d38d29ef040290396ab762737
e86b767e4dbf1baede20c3943e7e3c4b7433fdd6
/phonebook.py
8ff14738e22065fd1de38df422284b7daa2cc612
[]
no_license
jogspokoen/gingerpayments_test
6007be98ee1e8685faf7e5da8b4111fa92a7116b
cb3998beaffadfe90ed122b8a7d10a4a37d77871
refs/heads/master
2020-12-01T06:18:21.358758
2016-08-26T10:10:19
2016-08-26T10:10:19
66,630,991
0
0
null
null
null
null
UTF-8
Python
false
false
7,680
py
phonebook.py
import os import re import pickle class AddressBookException(Exception): pass class AddressBookValueError(ValueError): def __init__(self, data): message = 'Following data is not found: {0}'.format(data) super(AddressBookValueError, self).__init__(message) class AddressBookInvalidDataExcept...